@brainervirus/workit-opencode 1.1.0 → 1.2.0

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.
Files changed (3) hide show
  1. package/README.md +10 -2
  2. package/dist/plugin.js +1529 -355
  3. package/package.json +4 -3
package/README.md CHANGED
@@ -25,7 +25,9 @@ Local dev variant (absolute path to this repo):
25
25
  }
26
26
  ```
27
27
 
28
- Requirements: OpenCode 1.18.30, Node ≥ 24 (the published plugin is a self-contained Node bundle).
28
+ Requirements: OpenCode 1.18.30+ (V1) or 2.0.3 (V2), Node ≥ 24. The published
29
+ plugin is a self-contained Node bundle; its default export is a dual entry
30
+ (`server()` for V1, `setup()` for V2), so the same pin works on both hosts.
29
31
 
30
32
  ## What it provides
31
33
 
@@ -42,7 +44,13 @@ Requirements: OpenCode 1.18.30, Node ≥ 24 (the published plugin is a self-cont
42
44
 
43
45
  ## Bundle / runtime model
44
46
 
45
- The build bundles the `@opencode-ai/plugin` SDK surface used by the adapter into `dist/plugin.js`, so the published plugin has **no** runtime `@opencode-ai/plugin` dependency (it stays a development/build-only pinned dependency). The plugin loads through its real package entry `dist/plugin.js`; only the fourteen method skills ship under `assets/`.
47
+ The build bundles the `@opencode-ai/plugin` (V1) and `@opencode/plugin` (V2) SDK surfaces used by the adapters into `dist/plugin.js`, so the published plugin has **no** runtime dependency on either SDK (both stay development/build-only pins). The plugin loads through its real package entry `dist/plugin.js`; only the fourteen method skills ship under `assets/`.
48
+
49
+ The V2 entry registers the same ten tools with `codemode: false`, the fourteen
50
+ skills and `wk-*` commands (user collisions preserved), question receipts for
51
+ `decision.record`, direct-child subagent lineage with durable dispatch claims,
52
+ shell route and worktree denial through `permission.evaluate`, and the
53
+ bootstrap/task/worker context plus compaction injection.
46
54
 
47
55
  ## Package scripts
48
56