SIGN IN SIGN UP

fix(autolink): use published codegen version in scaffold (#2628)

## Summary

- Align `create-lynx-extension` prompts with the `create-rspeedy` flow
using `create-rstack` controls.
- Support all-in-one extension scaffolds with native module, element,
and service selections.
- Replace scaffolded `@lynx-js/autolink-codegen` workspace placeholders
from published package metadata instead of hard-coding `^0.0.0`.
- Add tests, documentation, authoring instructions, and a changeset.

## Validation

- `pnpm dprint check .changeset/create-extension-dependency-version.md
.github/autolink-extension.instructions.md
packages/lynx/create-lynx-extension/README.md
packages/lynx/create-lynx-extension/package.json
packages/lynx/create-lynx-extension/template-common/package.json
packages/lynx/create-lynx-extension/src/cli.ts
packages/lynx/create-lynx-extension/src/index.ts
packages/lynx/create-lynx-extension/test/cli.test.ts
packages/lynx/create-lynx-extension/test/create.test.ts pnpm-lock.yaml`
- `pnpm --filter create-lynx-extension test`
- `pnpm --filter create-lynx-extension build`
- `pnpm exec tsc --build
packages/lynx/create-lynx-extension/tsconfig.json --pretty false`
- `pnpm eslint packages/lynx/create-lynx-extension/src/cli.ts
packages/lynx/create-lynx-extension/src/index.ts
packages/lynx/create-lynx-extension/test/cli.test.ts
packages/lynx/create-lynx-extension/test/create.test.ts`
- `git diff --check`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Enhanced interactive prompts with improved UI for selecting extension
types (Native Module, Element, Service).
  * Added `--type` as shorthand alias for `--types` option.
* Added `--types all` to generate all extension types in a single
package.
* Improved success messages with next steps and automatic package
manager detection.

* **Documentation**
* Updated CLI documentation with clearer interactive workflow
descriptions and expanded examples.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/lynx-family/lynx-stack/pull/2628)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
J
Jianliang Wang committed
66f6ecfabbbc3db848849618cd43844d254187a9
Parent: a973c54
Committed by GitHub <noreply@github.com> on 5/14/2026, 8:15:11 AM