@brainervirus/workit-opencode 2.9.0 → 4.0.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.
- package/README.md +14 -11
- package/dist/plugin.js +4684 -16743
- package/index.ts +0 -1
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -12,24 +12,27 @@ OpenCode plugin for Workit — optional coordination, policy, delegation, handof
|
|
|
12
12
|
// opencode.json / opencode.jsonc
|
|
13
13
|
{
|
|
14
14
|
"$schema": "https://opencode.ai/config.json",
|
|
15
|
-
"
|
|
15
|
+
"plugins": ["@brainervirus/workit-opencode"]
|
|
16
16
|
}
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
OpenCode
|
|
19
|
+
OpenCode 2.x reads `"plugins"` and still normalizes the older `"plugin"` key.
|
|
20
20
|
|
|
21
|
-
Local dev variant (absolute path to this repo
|
|
21
|
+
Local dev variant (absolute path to this repo):
|
|
22
22
|
|
|
23
23
|
```jsonc
|
|
24
24
|
{
|
|
25
25
|
"$schema": "https://opencode.ai/config.json",
|
|
26
|
-
"
|
|
26
|
+
"plugins": ["file:///path/to/workit/packages/workit-opencode"]
|
|
27
27
|
}
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Requirements: OpenCode
|
|
31
|
-
|
|
32
|
-
(`
|
|
30
|
+
Requirements: OpenCode 2.0.18+, Node ≥ 24. The published plugin is a
|
|
31
|
+
self-contained Node bundle whose default export is the V2 plugin definition
|
|
32
|
+
(`{ id: "workit", setup }`). Workit 3.0 removed the OpenCode 1.x `server()`
|
|
33
|
+
adapter; OpenCode 1.x hosts must stay on Workit 2.x by pinning
|
|
34
|
+
`"plugin": ["@brainervirus/workit-opencode@2"]` (the V1 key) until they upgrade
|
|
35
|
+
OpenCode.
|
|
33
36
|
|
|
34
37
|
## What it provides
|
|
35
38
|
|
|
@@ -45,7 +48,7 @@ plugin is a self-contained Node bundle; its default export is a dual entry
|
|
|
45
48
|
- **Delegation** — native `task` workers are direct-child-only; nested or uncertain lineage is denied (`delegation_lineage_denied`).
|
|
46
49
|
- **Continuity** — compact task context carries the newest decisions and bounded redacted choice summaries, injected once on session start and once after compaction; unobservable shell surfaces are labeled `agent_guided`.
|
|
47
50
|
|
|
48
|
-
Workit does not register `workit_external_action` on
|
|
51
|
+
Workit does not register `workit_external_action` on OpenCode.
|
|
49
52
|
Use native tools for mutations under the host permissions and target conventions;
|
|
50
53
|
no Workit task, writer or decision is needed merely to run an ordinary command.
|
|
51
54
|
Old action/decision history is preserved. Inspect and reconcile any uncertain
|
|
@@ -60,10 +63,10 @@ before retrying them.
|
|
|
60
63
|
|
|
61
64
|
## Bundle / runtime model
|
|
62
65
|
|
|
63
|
-
The build bundles the `@opencode
|
|
66
|
+
The build bundles the `@opencode/plugin` SDK surface used by the adapter into `dist/plugin.js`, so the published plugin has **no** runtime dependency on the SDK (it stays a development/build-only pin). The plugin loads through its real package entry `dist/plugin.js`; only the sixteen method skills ship under `assets/`.
|
|
64
67
|
|
|
65
|
-
The
|
|
66
|
-
skills and up to
|
|
68
|
+
The plugin registers ten tools with `codemode: false`, the sixteen
|
|
69
|
+
skills and up to sixteen `wk-*` commands. Existing user skills and commands
|
|
67
70
|
are preserved; an alias is added only when its Workit skill is registered. It
|
|
68
71
|
also provides question receipts for `decision.record`, direct-child subagent
|
|
69
72
|
lineage with durable dispatch claims, and bootstrap/task/worker context plus
|