Repository navigation
OpenCode plugin 0.2.0 (OpenCode 2.x support)
·
1 commit
to master
since this release
OpenCode plugin for JIT Context OS, now compatible with OpenCode 2.x.
Install (OpenCode 2.x)
mkdir -p ~/.config/opencode/plugins
curl -fsSL -o ~/.config/opencode/plugins/jit-context.js \
https://github.com/wojciechwiesner/jit-context/releases/download/opencode-v0.2.0/jit-context-opencode-v2.js
opencode plugin list # shows: jit-context localOpenCode 1.x: use jit-context-opencode-v1.js instead (unchanged V1 entry).
Added
- V2 entry (
{ id, setup }). Toolsget_jit_context,record_jit_observationandget_project_stateare registered viactx.tool.transformwith JSON Schema inputs. Nothing fromeffector@opencode/pluginis needed at runtime. - The capsule is injected via the session
contexthook. The edit trail is recorded via toolexecute.after, including V2FileDiffmetadata.
Fixed
- OpenCode 2.x rejected the V1 module. Plugin activation never finished and every server request returned 503.
Verification
- CI green on the release commit (typecheck + 24 tests + build).
- A real
opencode runon OpenCode 2.1.4 calledget_project_state, which returned statuscompletedwith the correct STATE.md heading.
Checksums: SHA256SUMS.txt.