feat(commands): support antigravity-cli workflow commands#2091
Merged
Conversation
The Antigravity CLI (agy) reads workflow slash commands from the shared Antigravity 2.0 .agents/workflows/ directory, but rulesync wired the commands feature only for antigravity-ide. Add AntigravityCliCommand (a thin AntigravitySharedCommand subclass mirroring AntigravityCliSkill): project workflows in .agents/workflows/ and a CLI-specific global tree at ~/.gemini/antigravity-cli/global_workflows/. Register it in commands-processor.ts and the commandsProcessorToolTargetTuple. The supported-tools tables regenerate from getToolTargets; gitignore is unchanged (the project path is already emitted by antigravity-ide). Resolves #2071 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Follow-up for Google Antigravity CLI upstream updates (#2071). The Antigravity CLI (
agy) shares the Antigravity 2.0 harness and reads workflow slash commands from.agents/workflows/, but rulesync wired thecommandsfeature only forantigravity-ide, soantigravity-cliemitted no command files.Changes
AntigravityCliCommand extends AntigravitySharedCommand(src/features/commands/antigravity-cli-command.ts), mirroringAntigravityCliSkill. Targets project.agents/workflows/and the CLI global tree~/.gemini/antigravity-cli/global_workflows/.antigravity-paths.ts(re-exported viaantigravity-cli-paths.ts).commands-processor.ts(project+global, native) and addedantigravity-clitocommandsProcessorToolTargetTuple.antigravity-cli-command.test.ts; extendedcommands-processor.test.ts; addedantigravity-clito the e2e Tool×Feature matrix (generate, orphan-delete, import, global). Regenerated supported-tools tables (Commands → ✅ 🌏).Note
The issue also suggested adding a
commands/commandsClassentry to theantigravity-cliconvention inrules-processor.ts. This was intentionally NOT done: thatadditionalConventions.commandsentry only fires for simulated commands, and Antigravity commands are native (the native siblingantigravity-idehas no such entry). Mirroring the native sibling is the correct interpretation.Verification
pnpm cicheckfully green: 294 test files, 6589 tests; lint/typecheck, sync-skill-docs, gitignore, supported-tools, cspell, secretlint all pass.References
Closes #2071