BMAD-METHOD/tools/cli/installers/lib/ide/templates/combined
Davor Racic 6bfc937bd3
fix(installer): OpenCode integration: replace `name` frontmatter with `mode: all` and update directory names (#1764)
* fix(opencode): use mode: all in agent template, remove name frontmatter, fix directory names

- Replace name: '{{name}}' with mode: all in opencode-agent.md
  mode: all enables both Tab-key agent switching in the TUI and @subagent
  invocation via the Task tool (mode: primary blocked subagent use)
- Remove name: '{{name}}' from opencode-task/tool/workflow/workflow-yaml templates
  OpenCode derives command name from filename, not from a name frontmatter field;
  the bare {{name}} value was overriding the bmad- prefixed filename causing
  name collisions with built-in OpenCode commands (fixes #1762)
- Fix deprecated singular directory names in platform-codes.yaml:
  .opencode/agent -> .opencode/agents, .opencode/command -> .opencode/commands
- Add legacy_targets migration: cleanup() now removes stale bmad-* files from
  old singular directories on reinstall so existing users don't get duplicates
- Fix removeEmptyParents to continue walking up to parent when starting dir is
  already absent instead of breaking early

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(opencode): address code review findings for cleanup and schema docs

- Add project boundary guard to removeEmptyParents() using path.resolve
  and startsWith check to prevent traversal outside projectDir (Augment)
- Fix JSDoc: "Recursively remove" -> "Walk up ancestor directories"
- Add user-visible migration log message when processing legacy_targets
- Document legacy_targets field in Installer Config Schema comment block
  in platform-codes.yaml (CodeRabbit + Augment)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(opencode): improve removeEmptyParents error handling and loop clarity

- Distinguish recoverable errors (ENOTEMPTY, ENOENT) from fatal errors in
  removeEmptyParents() catch block — skip level and continue upward on
  TOCTOU races or concurrent removal, break only on fatal errors (EACCES)
- Add comment clarifying loop invariant for missing-path continue branch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-02-25 11:12:05 -06:00
..
antigravity.md allow updates from any beta, warn on alpha and v4 2026-01-26 17:33:02 -06:00
claude-agent.md installer fix 2026-01-26 16:06:00 -06:00
claude-workflow-yaml.md installer fix 2026-01-26 16:06:00 -06:00
claude-workflow.md installer fix 2026-01-26 16:06:00 -06:00
default-agent.md feat(templates): remove disable-model-invocation to enable workflow skill calls 2026-02-22 16:38:05 -06:00
default-task.md fix(installer): Multiple installer fixes (#1492) 2026-02-03 17:36:54 -06:00
default-tool.md fix(installer): Multiple installer fixes (#1492) 2026-02-03 17:36:54 -06:00
default-workflow-yaml.md feat(templates): remove disable-model-invocation to enable workflow skill calls 2026-02-22 16:38:05 -06:00
default-workflow.md feat(templates): remove disable-model-invocation to enable workflow skill calls 2026-02-22 16:38:05 -06:00
gemini-agent.toml fix(ide): add support for Gemini CLI TOML format (#1431) 2026-01-27 21:56:12 -08:00
gemini-task.toml fix(installer): Multiple installer fixes (#1492) 2026-02-03 17:36:54 -06:00
gemini-tool.toml fix(installer): Multiple installer fixes (#1492) 2026-02-03 17:36:54 -06:00
gemini-workflow-yaml.toml fix(installer): remove double-escaping of quotes in CSV manifest pipeline (#1746) 2026-02-24 18:43:33 -06:00
gemini-workflow.toml fix(installer): remove double-escaping of quotes in CSV manifest pipeline (#1746) 2026-02-24 18:43:33 -06:00
kiro-agent.md feat: add Kiro IDE support via config-driven installer (#1589) 2026-02-08 09:18:28 -06:00
kiro-task.md feat: add Kiro IDE support via config-driven installer (#1589) 2026-02-08 09:18:28 -06:00
kiro-tool.md feat: add Kiro IDE support via config-driven installer (#1589) 2026-02-08 09:18:28 -06:00
kiro-workflow-yaml.md feat: add Kiro IDE support via config-driven installer (#1589) 2026-02-08 09:18:28 -06:00
kiro-workflow.md feat: add Kiro IDE support via config-driven installer (#1589) 2026-02-08 09:18:28 -06:00
opencode-agent.md fix(installer): OpenCode integration: replace `name` frontmatter with `mode: all` and update directory names (#1764) 2026-02-25 11:12:05 -06:00
opencode-task.md fix(installer): OpenCode integration: replace `name` frontmatter with `mode: all` and update directory names (#1764) 2026-02-25 11:12:05 -06:00
opencode-tool.md fix(installer): OpenCode integration: replace `name` frontmatter with `mode: all` and update directory names (#1764) 2026-02-25 11:12:05 -06:00
opencode-workflow-yaml.md fix(installer): OpenCode integration: replace `name` frontmatter with `mode: all` and update directory names (#1764) 2026-02-25 11:12:05 -06:00
opencode-workflow.md fix(installer): OpenCode integration: replace `name` frontmatter with `mode: all` and update directory names (#1764) 2026-02-25 11:12:05 -06:00
rovodev.md allow updates from any beta, warn on alpha and v4 2026-01-26 17:33:02 -06:00
trae.md allow updates from any beta, warn on alpha and v4 2026-01-26 17:33:02 -06:00
windsurf-workflow.md allow updates from any beta, warn on alpha and v4 2026-01-26 17:33:02 -06:00