@brainervirus/workit-opencode 5.0.0 → 6.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 +9 -6
- package/dist/plugin.js +4142 -6240
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -36,21 +36,23 @@ OpenCode.
|
|
|
36
36
|
|
|
37
37
|
## What it provides
|
|
38
38
|
|
|
39
|
-
- **
|
|
39
|
+
- **Seven native operation tools** — `workit_task`, `workit_policy`, `workit_evidence`, `workit_finding`, `workit_decision`, `workit_worker`, and `workit_state`.
|
|
40
40
|
- **Read-only context and init tools** — `workit_context` accepts `{ "kind": "git" }` and the existing PR/YouTrack/changelog/release/affected context fields; `workit_init_apply` keeps confirmed configuration initialization.
|
|
41
41
|
- **Eleven policy-selected method skills** — shape, implement, review, debug, ship, continue, bdd, test-audit,
|
|
42
42
|
deslop, fanout, and verify-app.
|
|
43
|
-
- **Native lifecycle hooks** —
|
|
43
|
+
- **Native lifecycle hooks** — direct-child task workers and compact task bootstrap/restoration. Workit registers no question hooks.
|
|
44
44
|
|
|
45
45
|
## Host-native behavior
|
|
46
46
|
|
|
47
|
-
- **Receipts** — native `question` answers are purpose-bound, session-bound, fresh, and one-use; unrelated questions fail closed.
|
|
48
47
|
- **Delegation** — native `task` workers are direct-child-only; nested or uncertain lineage is denied (`delegation_lineage_denied`).
|
|
49
48
|
- **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`.
|
|
50
49
|
|
|
51
50
|
Workit does not register `workit_external_action` on OpenCode.
|
|
52
51
|
Use native tools for mutations under the host permissions and target conventions;
|
|
53
|
-
no Workit task
|
|
52
|
+
no Workit task or decision is needed merely to run an ordinary command. Decisions
|
|
53
|
+
are durable records that satisfy decision requirements; they never authorize an
|
|
54
|
+
effect. Delivery limits come from OpenCode permissions plus the workspace
|
|
55
|
+
autonomy grants (`workit grant show`).
|
|
54
56
|
Old action/decision history is preserved. Inspect and reconcile any uncertain
|
|
55
57
|
effect before retrying; removal does not settle or migrate it.
|
|
56
58
|
|
|
@@ -65,10 +67,11 @@ before retrying them.
|
|
|
65
67
|
|
|
66
68
|
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 eleven method skills ship under `assets/`.
|
|
67
69
|
|
|
68
|
-
The plugin registers
|
|
70
|
+
The plugin registers nine tools (the seven families, `workit_context` and
|
|
71
|
+
`workit_init_apply`) with `codemode: false`, the eleven
|
|
69
72
|
skills and up to eleven `wk-*` commands. Existing user skills and commands
|
|
70
73
|
are preserved; an alias is added only when its Workit skill is registered. It
|
|
71
|
-
also provides
|
|
74
|
+
also provides direct-child subagent
|
|
72
75
|
lineage with durable dispatch claims, and bootstrap/task/worker context plus
|
|
73
76
|
compaction injection. Its shell
|
|
74
77
|
permission hook adds branch-name policy denials for direct, unquoted literal
|