Repository navigation
chore(opencode): harden Lucky plugins and workflows - #238
Conversation
✅ Deploy Preview for regal-bunny-0c8efe ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughAdds OpenCode integration to Lucky including new policy and context plugins, helper scripts for remote attachment and skill synchronization, skill documentation, configuration file, and comprehensive documentation updates for OpenCode workflows and operations. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant Local as Local Terminal
participant SSH as SSH Tunnel
participant Remote as Remote Server
participant OpenCode as OpenCode Server
User->>Local: Run attach script
Local->>Remote: SSH exec verify serve exists
alt Serve not running
Remote->>Remote: Start serve in background
Remote->>Remote: Wait for port ready
end
Remote-->>Local: Port ready
Local->>SSH: Establish SSH tunnel<br/>(local:port -> remote:port)
SSH-->>Local: Tunnel active
Local->>OpenCode: opencode attach<br/>via localhost:port/dir
OpenCode-->>Local: Connected
User->>Local: Uses Lucky Codex
Note over Local,Remote: Tunnel handles all traffic
User->>Local: Exit/Ctrl+C
Local->>SSH: Close tunnel
Local-->>User: Cleanup complete
sequenceDiagram
actor User
participant Local as Local Script
participant Sources as Source Dirs<br/>(.cursor/skills, .agent-skills)
participant Dest as Destination<br/>(.opencode/skills)
participant Remote as Remote Host<br/>(rsync)
User->>Local: Run sync script
Local->>Dest: Clear old links/files
Local->>Sources: Scan for SKILL.md
Local->>Dest: Create symlinks
Local->>Local: Compute relative paths
Dest-->>Local: Symlinks created
Local->>Remote: rsync -aL --delete<br/>agents/ codex/
Remote-->>Local: Sync complete
Local-->>User: Skills synchronized
sequenceDiagram
participant User
participant Script as Verify Script
participant Local as Local System
participant Remote as Remote Host<br/>(SSH)
User->>Script: Run verify [--remote HOST]<br/>[--attach-smoke]
alt Local Verification
Script->>Local: node version check
Script->>Local: test suite execution
Script->>Local: opencode config
Script->>Local: opencode mcp list
Script->>Local: opencode run verify
Local-->>Script: Results
else Remote Verification
Script->>Remote: SSH exec opencode config
Script->>Remote: SSH exec opencode mcp list
Script->>Remote: SSH exec verify command
Remote-->>Script: Results
end
alt Attach-Smoke Enabled
Script->>Script: Launch smoke attach<br/>with timeout
Script->>Script: Trap signals for cleanup
end
Script-->>User: Verification complete
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ad2f595 to
950968c
Compare
|
|



Summary
Notes
opencode-shell-strategyis wired through the OpenCode community plugin resolver@tarquinen/opencode-dcp@latestserver-do-lukoperational setup was applied outside git: community plugin priming, remote serve helper hardening, and remote runtime verificationVerification
bash -n scripts/opencode-attach-server-do-luk.sh scripts/opencode-sync-global-skills.sh scripts/opencode-sync-project-skills.sh scripts/opencode-sync-server-do-luk-skills.sh scripts/opencode-install-community-plugins.sh scripts/opencode-verify.shnode --check .opencode/plugins/lucky-policy-lib.mjsnode --check .opencode/plugins/lucky-policy.mjsnode --check .opencode/plugins/lucky-context.mjsnode --check .opencode/plugins/lucky-doc-reminders.mjsnode --test .opencode/tests/lucky-policy.test.mjs./scripts/opencode-install-community-plugins.sh./scripts/opencode-verify.sh./scripts/opencode-install-community-plugins.sh --remote server-do-luk./scripts/opencode-verify.sh --remote server-do-lukserver-do-lukconfirmed the remote Lucky workspace and MCP core were reachable over SSH tunnelSummary by CodeRabbit
New Features
Documentation
Configuration
Tests