feat(spec): add Kiro / Amazon Q CLI autocomplete spec#6
Merged
Conversation
Add `dist/amazon-q-spec/fastlane_cli.ts` — a Fig.Spec mirror of every subcommand, option, and argument in `lib/src/cli/`. The `run` and `list --category` arguments use a generator that shells out to `fastlane_cli list --json` so action ids never go stale when consumers add custom entries in their `cli_profile.yaml`. Companion `dist/amazon-q-spec/README.md` explains local dev-mode testing and standalone typecheck. The canonical destination is `withfig/autocomplete/src/fastlane_cli.ts`; the upstream PR is a sibling of this one. Bumps `pubspec.yaml` + the homebrew formula draft to 0.2.0 per the fastlane-cli-version-bump skill (new shipped surface = minor bump).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Fig.Spec autocomplete spec for
fastlane_cliconsumed by Amazon QDeveloper CLI for command line (formerly Fig) and Kiro CLI. Surfaces
inline AI ghost-text + rich dropdown completions for every subcommand,
option, and argument exposed by
lib/src/cli/.dist/amazon-q-spec/fastlane_cli.ts— the spec itself.dist/amazon-q-spec/README.md— how to test locally, how totypecheck standalone, where the upstream copy lives.
README.mdpointing users at the spec dir.pubspec.yaml+dist/homebrew/Formula/fastlane_cli.rbper the
fastlane-cli-version-bumpskill(new shipped surface => minor).
Why a copy lives here
The spec is mirrored upstream at
withfig/autocomplete/src/fastlane_cli.ts(the spec collection consumed by Q + Kiro). Tracking it in our own repo
means:
lib/src/cli/*_command.dart.their local dev-mode autocomplete clone at this file.
Generator pattern (no static action lists)
The
run <action-id>arg andlist --category <id>arg both use agenerator that runs
fastlane_cli list --jsonand parses the result. TheJSON shape (
id,title,description,category) is emitted bylist_command.dart. Cached for 5s inside the autocomplete runtime.This means the spec never goes stale when consumers add custom
actions in their
cli_profile.yaml— the dropdown reflects whateverfastlane_cli list --jsonreports.Opt-in (local dev-mode)
Until the upstream PR is merged, users can preview the spec locally:
Upstream PR
Sibling PR against
withfig/autocomplete:withfig/autocomplete#2625
Test plan
fvm dart analyze—No issues found!fvm dart test— 193/193 passing~5.5.4+@withfig/autocomplete-types@^1.31.0):passes against the entire upstream
src/tree.prettier --checkagainst the upstream config: passing.matching
lib/src/cli/*_command.dart.fastlane_cli list --jsonshape confirmed in code:id,title,description,category.