BMAD-METHOD/tools/cli/installers/lib/ide
Sallvainian b3975f628f Implement OpenCode integration for BMAD Method V6
Adds full OpenCode IDE support following V6 architecture patterns.

Changes:
- Add comment-json dependency for JSONC parsing
- Implement tools/cli/installers/lib/ide/opencode.js (590 lines)
  * Generates opencode.json/opencode.jsonc with file references
  * Supports agent/command prefix configuration
  * Auto-generates AGENTS.md for system prompt
  * Handles expansion packs and module filtering
  * Idempotent merges with collision detection
- Add comprehensive implementation documentation

Features:
 JSON-only config with file references {file:./.bmad-core/...}
 Optional prefixes (bmad- for agents, bmad:tasks: for commands)
 AGENTS.md generation for OpenCode system prompt
 Metadata extraction (whenToUse, Purpose)
 Expansion pack support
 Reversible cleanup
 Auto-discovery by IDE manager

Architecture:
- Extends BaseIdeSetup following V6 patterns
- Uses shared bmad-artifacts utilities
- Implements collectConfiguration() for user preferences
- Supports selectedModules filtering
- No manual registration required

Based on V4 OpenCode implementation but adapted to V6's modular
architecture with improved module handling and shared utilities.

🤖 Generated with Claude Code
https://claude.com/claude-code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 16:26:45 -04:00
..
shared create-agent now adds agent to ide agents list also 2025-10-10 09:27:50 -05:00
_base-ide.js prd cleanup 2025-10-15 21:17:09 -05:00
auggie.js fix: install auggie commands to augment directory (#683) 2025-10-07 16:07:06 -05:00
claude-code.js prd cleanup 2025-10-15 21:17:09 -05:00
cline.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
codex.js clearer codex install note 2025-10-18 09:41:38 -05:00
crush.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
cursor.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
gemini.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
github-copilot.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
iflow.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
kilo.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
manager.js refactor(ide): delegate detection to handlers (#680) 2025-10-05 22:13:11 -05:00
opencode.js Implement OpenCode integration for BMAD Method V6 2025-10-19 16:26:45 -04:00
qwen.js Qwen tasks and agents 2025-10-01 18:29:07 -05:00
roo.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
trae.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
windsurf.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
workflow-command-generator.js feat(codex): activate with custom prompts instead of AGENTS.md (#679) 2025-10-05 17:52:48 -05:00
workflow-command-template.md bundle agents front matter optimized, along with the orchestrators activation instructions; 2025-10-03 21:46:53 -05:00