BMAD-METHOD/bmad
Sallvainian 0544964a87 docs: add OpenCode preservation to merge-upstream workflow
Extends merge-upstream workflow to preserve OpenCode integration during
upstream merges alongside existing installer modification preservation.

Changes:
- Add Serena memory: CRITICAL-opencode-fork-integration
- Create claudedocs/opencode-integration-reference.md
  * Complete recovery procedures
  * Verification commands (3-tier checking)
  * Integration with merge workflow
- Update bmad/workflows/merge-upstream/instructions.md
  * Step 3: Document both modifications
  * Step 4: Verify both before merge
  * Step 7: Verify both after merge (7a installer, 7b OpenCode)
  * Step 8: Update both Serena memories

OpenCode Preservation Strategy:
 Additive modification (new file) = lower risk than inline changes
 3-tier verification: file existence, dependency, runtime discovery
 Recovery: restore from backup branch
 Dependencies: comment-json in package.json

Files to Preserve:
- tools/cli/installers/lib/ide/opencode.js (602 lines)
- "comment-json": "^4.2.5" in package.json
- OPENCODE_INTEGRATION_SUMMARY.md (documentation)

Verification Commands:
1. test -f tools/cli/installers/lib/ide/opencode.js
2. grep -q "comment-json" package.json
3. Node runtime check via IDE manager

Recovery: Restore files from backup-before-pull-* branch

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 00:38:22 -04:00
..
_cfg Add merge-upstream workflow and documentation 2025-10-19 02:15:13 -04:00
bmb workflow references to moved workflow status workflow 2025-10-17 22:34:21 -05:00
core workflow references to moved workflow status workflow 2025-10-17 22:34:21 -05:00
docs workflow references to moved workflow status workflow 2025-10-17 22:34:21 -05:00
workflows/merge-upstream docs: add OpenCode preservation to merge-upstream workflow 2025-10-20 00:38:22 -04:00