From 71cbe727190ae6bdc619a169d40a84a9dfbf45f6 Mon Sep 17 00:00:00 2001 From: Nikolai Zhirinas <75691177+n-zhi@users.noreply.github.com> Date: Thu, 5 Mar 2026 00:47:26 +0200 Subject: [PATCH] fix(installer): resolve Antigravity command failures by alignment template names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Investigating the command-loading failures in Antigravity revealed a structural bug introduced in commit 27c18e0. The ConfigDrivenIdeSetup class resolves template names by appending an artifact type suffix to the platform’s template_type, expecting specific files like antigravity-workflow.md or antigravity-agent.md. Previously, only a generic antigravity.md was provided, causing the loadTemplate() fallback mechanism to silently use default-*.md templates. These default templates inject standard YAML frontmatter (name and quoted description) which Antigravity rejects. Changes: - Replaced generic antigravity.md with specific artifact-typed templates (antigravity-agent.md, antigravity-workflow.md, etc.) - Removed redundant 'name' field from Antigravity templates - Removed wrapping single quotes from 'description' field to satisfy Antigravity requirements --- .../ide/templates/combined/antigravity-agent.md | 14 ++++++++++++++ .../lib/ide/templates/combined/antigravity-task.md | 9 +++++++++ .../lib/ide/templates/combined/antigravity-tool.md | 9 +++++++++ .../combined/antigravity-workflow-yaml.md | 13 +++++++++++++ .../ide/templates/combined/antigravity-workflow.md | 5 +++++ .../lib/ide/templates/combined/antigravity.md | 8 -------- 6 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-task.md create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md delete mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity.md diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md new file mode 100644 index 000000000..a3160303a --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md @@ -0,0 +1,14 @@ +--- +description: {{description}} +--- + +You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command. + + +1. LOAD the FULL agent file from {project-root}/_bmad/{{path}} +2. READ its entire contents - this contains the complete agent persona, menu, and instructions +3. FOLLOW every step in the section precisely +4. DISPLAY the welcome/greeting as instructed +5. PRESENT the numbered menu +6. WAIT for user input before proceeding + diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md new file mode 100644 index 000000000..007c29b83 --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md @@ -0,0 +1,9 @@ +--- +description: {{description}} +--- + +# {{name}} + +Read the entire task file at: {project-root}/{{bmadFolderName}}/{{path}} + +Follow all instructions in the task file exactly as written. diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md new file mode 100644 index 000000000..16350cc09 --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md @@ -0,0 +1,9 @@ +--- +description: {{description}} +--- + +# {{name}} + +Read the entire tool file at: {project-root}/{{bmadFolderName}}/{{path}} + +Follow all instructions in the tool file exactly as written. diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md new file mode 100644 index 000000000..dd5f83034 --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md @@ -0,0 +1,13 @@ +--- +description: {{description}} +--- + +IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded: + + +1. Always LOAD the FULL {project-root}/{{bmadFolderName}}/core/tasks/workflow.xml +2. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config {project-root}/{{bmadFolderName}}/{{path}} +3. Pass the yaml path {project-root}/{{bmadFolderName}}/{{path}} as 'workflow-config' parameter to the workflow.xml instructions +4. Follow workflow.xml instructions EXACTLY as written to process and follow the specific workflow config and its instructions +5. Save outputs after EACH section when generating any documents from templates + diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md new file mode 100644 index 000000000..3834a5118 --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md @@ -0,0 +1,5 @@ +--- +description: {{description}} +--- + +IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL {project-root}/{{bmadFolderName}}/{{path}}, READ its entire contents and follow its directions exactly! diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity.md b/tools/cli/installers/lib/ide/templates/combined/antigravity.md deleted file mode 100644 index 88e806e9d..000000000 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: '{{name}}' -description: '{{description}}' ---- - -Read the entire workflow file at: {project-root}/_bmad/{{workflow_path}} - -Follow all instructions in the workflow file exactly as written.