@brainervirus/workit-cursor 8.9.1 → 8.11.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/.cursor-plugin/plugin.json +1 -1
- package/dist/cursor-session-start.js +956 -643
- package/dist/mcp-server.js +151 -134
- package/dist/workit-hook.js +985 -648
- package/package.json +3 -3
- package/rules/workit-contract.mdc +4 -1
- package/skills/workit-fanout/references/brief.md +1 -1
- package/skills/workit-fanout/references/orchestration.md +16 -6
- package/skills/workit-implement/SKILL.md +3 -2
- package/skills/workit-review/SKILL.md +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-cursor",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.11.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit Cursor plugin — shared MCP transport, native hooks, and sixteen method skills",
|
|
6
6
|
"keywords": [
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"build": "bun scripts/build.ts"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@brainervirus/workit-core": "^8.
|
|
50
|
-
"@brainervirus/workit-mcp": "^8.
|
|
49
|
+
"@brainervirus/workit-core": "^8.11.0",
|
|
50
|
+
"@brainervirus/workit-mcp": "^8.11.0"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=24"
|
|
@@ -32,4 +32,7 @@ each runs in its own git worktree with a fixed brief, and its file scope is
|
|
|
32
32
|
checked at fan-in with `git diff --name-only <base>...<branch>`, not enforced
|
|
33
33
|
while it works. Verifiers and reviewers stay read-only and record
|
|
34
34
|
`workit ledger verdict` under a session the lead assigns
|
|
35
|
-
(`WORKIT_SESSION_ID=<lead
|
|
35
|
+
(`WORKIT_SESSION_ID=<lead>:verifier-<random hex>` in the brief, a fresh
|
|
36
|
+
suffix per verifier: Cursor's shell carries no session id, so this declared
|
|
37
|
+
child id is the verifier's session), never the
|
|
38
|
+
author's.
|
|
@@ -25,7 +25,7 @@ REPORT: branch, head SHA, files changed, each VERIFY command with its exit code,
|
|
|
25
25
|
each ACCEPTANCE line met / not met, rulings you made (`workit ledger ruling`),
|
|
26
26
|
anything out of scope as a follow-up, not a diff.
|
|
27
27
|
STANDING: <the standing orders, verbatim: `workit ledger standing add` records each one>
|
|
28
|
-
export WORKIT_SESSION_ID=<lead>-w<n> (set by the lead; a verifier brief
|
|
28
|
+
export WORKIT_SESSION_ID=<lead>-w<n> (set by the lead for a worker's commits; a verifier brief sets none: the host derives it)
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Worked example
|
|
@@ -72,12 +72,22 @@ Which session id a verdict carries, per host:
|
|
|
72
72
|
|
|
73
73
|
- Claude Code: subagents inherit your `WORKIT_SESSION_ID`, so the
|
|
74
74
|
SubagentStart hook names each `verifier` and `reviewer` its own session
|
|
75
|
-
(`<lead>:<agent id>`), passed as `--session
|
|
76
|
-
|
|
77
|
-
exports for its workit commands.
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
(`<lead>:<agent id>`), passed exactly as `--session`: the hook records the
|
|
76
|
+
ids it issues, and only those are accepted. An `implementer` uses the
|
|
77
|
+
session its brief exports for its workit commands.
|
|
78
|
+
- Codex: the `workit-verifier` and `workit-reviewer` agents get the same
|
|
79
|
+
issued `--session` from SubagentStart; any other verifier passes
|
|
80
|
+
`--as verifier`.
|
|
81
|
+
- OpenCode: a child session's shell already has
|
|
82
|
+
`WORKIT_SESSION_ID=<lead>:<child>`; Pi: a supervised worker's shell has
|
|
83
|
+
`<lead>:<worker session>`. Set nothing for a verifier there.
|
|
84
|
+
- Cursor (no session id in the shell): the brief sets the verifier's
|
|
85
|
+
`WORKIT_SESSION_ID=<lead>:verifier-<random hex>`, a fresh suffix per
|
|
86
|
+
verifier. Cursor cannot check it: it is declared, not derived.
|
|
87
|
+
- A worker's commits use `export WORKIT_SESSION_ID=<lead>-w-<slice>` from
|
|
88
|
+
`workit fanout brief`. A verdict under an id you made up (`<lead>-v1`,
|
|
89
|
+
`<lead>:v1`) is refused as `forged_session` on Claude Code, Codex,
|
|
90
|
+
OpenCode and Pi.
|
|
81
91
|
|
|
82
92
|
A batch verifier takes several slices on one surface in one session: for
|
|
83
93
|
each branch it checks out the head, runs that slice's VERIFY, and records its
|
|
@@ -33,8 +33,9 @@ description: Build a requested change in small verified steps - follow local pat
|
|
|
33
33
|
`workit ledger verdict tests-verified --self --how "<what you ran>"`; it
|
|
34
34
|
reads self-reviewed, never verified. High risk, a workspace with
|
|
35
35
|
`verification: independent` (`workit grant show`) or a verified merge needs
|
|
36
|
-
a fresh verifier with its own session (
|
|
37
|
-
|
|
36
|
+
a fresh verifier with its own host-derived session (Claude Code and Codex:
|
|
37
|
+
the `verifier` agent; OpenCode: a child session; Pi: a supervised worker),
|
|
38
|
+
never a hand-minted id. Before saying done, reconcile
|
|
38
39
|
every named deliverable against the target checkout and observe it (for a push:
|
|
39
40
|
`workit verify-delivery push`).
|
|
40
41
|
|
|
@@ -7,8 +7,10 @@ description: Independent review of a diff, branch or PR - intent fidelity and st
|
|
|
7
7
|
|
|
8
8
|
Review the candidate, never the author's summary of it. A session that wrote a
|
|
9
9
|
commit on the branch cannot record a passing verdict: if that is you, hand the
|
|
10
|
-
review to a fresh agent with its own session
|
|
11
|
-
|
|
10
|
+
review to a fresh agent with its own host-derived session: Claude Code and
|
|
11
|
+
Codex, the `reviewer` or `verifier` agent (`--session` from SubagentStart);
|
|
12
|
+
OpenCode, a child session; Pi, a supervised worker. Never hand-mint one such
|
|
13
|
+
as `<lead>-v1`: it is refused as `forged_session`.
|
|
12
14
|
An author's `--self` verdict reads self-reviewed and never counts as
|
|
13
15
|
independent; `type-check-only` never proves a behavior change.
|
|
14
16
|
|