@brainervirus/workit-opencode 0.7.1 → 0.8.1
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 +36 -5
- package/dist/plugin.js +12798 -441
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -1,21 +1,52 @@
|
|
|
1
1
|
# @brainervirus/workit-opencode
|
|
2
2
|
|
|
3
|
-
OpenCode plugin for workit — workflow rails for agentic coding (specs, plans, YouTrack, CI-gated commits).
|
|
3
|
+
OpenCode plugin for workit — workflow rails for agentic coding (specs, plans, YouTrack, CI-gated commits), with host-native approval, delegation, handoff, and diagnostics.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```jsonc
|
|
8
|
-
// opencode.json
|
|
8
|
+
// opencode.json / opencode.jsonc
|
|
9
9
|
{
|
|
10
|
+
"$schema": "https://opencode.ai/config.json",
|
|
10
11
|
"plugin": ["@brainervirus/workit-opencode"]
|
|
11
12
|
}
|
|
12
13
|
```
|
|
13
14
|
|
|
15
|
+
Local dev variant (absolute path to this repo):
|
|
16
|
+
|
|
17
|
+
```jsonc
|
|
18
|
+
{
|
|
19
|
+
"$schema": "https://opencode.ai/config.json",
|
|
20
|
+
"plugin": ["file:///path/to/workit/packages/workit-opencode/src/plugin.ts"]
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Requirements: OpenCode ≥ 1.15.0, Node ≥ 22 (the published plugin is a self-contained Node bundle).
|
|
25
|
+
|
|
14
26
|
## What it provides
|
|
15
27
|
|
|
16
|
-
- 12 `wk-*` commands (wk-init
|
|
17
|
-
-
|
|
18
|
-
-
|
|
28
|
+
- **12 `wk-*` commands/skills** (`wk-init`, `wk-status`, `wk-verify`, `wk-commit`, `wk-pr`, `wk-changelog`, `wk-release-notes`, `wk-docs-refresh`, `wk-handoff`, `wk-implement`, `wk-meetings`, `wk-issue-update`).
|
|
29
|
+
- **Native plugin tools** (`workflow_*`) — branch setup, PR create/context, docs validate/promote, YouTrack post/log/time, templates, rules, presentation, doctor, and handoff.
|
|
30
|
+
- **Per-turn enforcement rails** — contract reminder, doc rendering, self-review gates, config guard, issue rails, and post-hoc detectors.
|
|
31
|
+
|
|
32
|
+
## Host-native behavior
|
|
33
|
+
|
|
34
|
+
- **Approvals** — flow gates (`workflow_spec_approve` / `workflow_plan_approve` / `workflow_plan_menu`) record native `question` receipts; the self-review validation runs automatically during the transition.
|
|
35
|
+
- **Delegation** — approved plans execute through subagent-driven task delegation (native `task`).
|
|
36
|
+
- **Commit** — `wk-commit` previews a Conventional Commit and confirms through a native `question`.
|
|
37
|
+
- **Handoff** — `wk-handoff` seeds and spawns a native OpenCode continuation session.
|
|
38
|
+
- **Diagnostics** — durable JSONL journal plus native `client.app.log()`; nothing is mirrored to `process.stderr` or the agent conversation.
|
|
39
|
+
|
|
40
|
+
## Bundle / runtime model
|
|
41
|
+
|
|
42
|
+
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`; commands, skills, vendor skills, and templates ship package-locally under `assets/`.
|
|
43
|
+
|
|
44
|
+
## Package scripts
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
bun run build # bundle dist/plugin.js + assets
|
|
48
|
+
bun run typecheck # tsc --noEmit
|
|
49
|
+
```
|
|
19
50
|
|
|
20
51
|
## Docs
|
|
21
52
|
|