@khalilgharbaoui/opencode-claude-code-plugin 0.53.0 → 0.53.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khalilgharbaoui/opencode-claude-code-plugin",
3
- "version": "0.53.0",
3
+ "version": "0.53.2",
4
4
  "description": "Claude Code CLI provider plugin for opencode",
5
5
  "homepage": "https://opencode-claude-code-plugin.dev/",
6
6
  "funding": {
@@ -270,6 +270,7 @@ Same package, same config. 2.x's native key is `plugins` (plural), but it still
270
270
  - Provider settings, lowest precedence first: `provider.claude-code.options` (1.x's spelling, still read on 2.x), `provider.claude-code.settings`, `providers.claude-code.settings` (2.x's own), and the plugin entry's own `options`, which wins over all three. Any option of this plugin can sit in any of them; the plugin entry is the usual home for `accounts`: `{"package": "@khalilgharbaoui/opencode-claude-code-plugin", "options": {"accounts": ["work"]}}`.
271
271
  - A local checkout is loaded by pointing `plugins` at its **`dist`** directory, never the repository root: 2.x resolves a configured plugin path as `<dir>/server` or `<dir>/index`.
272
272
  - Known 2.x differences: `/btw` is answered after the running turn rather than inside it, and there is no todo panel (2.x has no `todowrite` tool). Do not set `hostApi`; the 2.x entrypoint sets it, and forcing it on 1.x breaks every proxied tool call.
273
+ - Every form the plugin raises is answered through 2.x's own `Form` surface rather than a question tool, which changes nothing the operator does. The account-switch form and the plan-mode approval were measured live on 2.0.22, and the `subagentDispatch` form (including `Customise…`, `Per type…` accounts and `Same as last time` across a restart) on 2026-10-08. The by-hand account carry and the `accountGroups` guard were measured live there the same day: both behave exactly as on 1.x.
273
274
 
274
275
  #### V2 MCP and Code Mode
275
276
 
@@ -822,9 +823,12 @@ opencode 2 uses different envelopes and the plugin's tool descriptions follow th
822
823
  there a background dispatch answers in prose,
823
824
  `The subagent is working in the background (sessionID: ses_...)`, and the completion
824
825
  arrives as `<subagent sessionID="..." state="completed" description="...">`. The
825
- `sessionID` is the `task_id`. Both extra tools work on both majors (on opencode 2 over
826
+ `sessionID` is the `task_id`, and a cancel pushes the same envelope with
827
+ `state="cancelled"`. Both extra tools work on both majors (on opencode 2 over
826
828
  `session.context` and `session.interrupt`, the session routes a plugin is given there);
827
- verified live on 2.0.16.
829
+ verified live on 2.0.22, and before that on 2.0.16. With `subagentDispatch: "ask"` a
830
+ background dispatch is held for the same form a foreground one is and the answer reaches
831
+ the background child's own spawn, with the dispatch itself unchanged.
828
832
 
829
833
  Without it, opencode rejects a `background: true` call outright
830
834
  (`Background subagents require OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true`), losing