feat: add opencode compatibility layer (#68)

This commit is contained in:
Nathan Flurry 2026-02-04 13:43:05 -08:00 committed by GitHub
parent cc5a9e0d73
commit ef3e811c94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 18163 additions and 310 deletions

View file

@ -64,10 +64,22 @@ Universal schema guidance:
- `sandbox-agent api sessions reject-question``POST /v1/sessions/{sessionId}/questions/{questionId}/reject`
- `sandbox-agent api sessions reply-permission``POST /v1/sessions/{sessionId}/permissions/{permissionId}/reply`
## OpenCode CLI (Experimental)
`sandbox-agent opencode` starts a sandbox-agent server and attaches an OpenCode session (uses `/opencode`).
## Post-Release Testing
After cutting a release, verify the release works correctly. Run `/project:post-release-testing` to execute the testing agent.
## OpenCode Compatibility Tests
The OpenCode compatibility suite lives at `server/packages/sandbox-agent/tests/opencode-compat` and validates the `@opencode-ai/sdk` against the `/opencode` API. Run it with:
```bash
SANDBOX_AGENT_SKIP_INSPECTOR=1 pnpm --filter @sandbox-agent/opencode-compat-tests test
```
## Git Commits
- Do not include any co-authors in commit messages (no `Co-Authored-By` lines)