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