@brainervirus/workit-cursor 2.5.0 → 2.7.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 +607 -75
- package/dist/mcp-server.js +628 -112
- package/dist/workit-hook.js +615 -71
- package/package.json +3 -3
- package/skills/workit-behavioral-tdd/SKILL.md +15 -9
- package/skills/workit-debug/SKILL.md +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-cursor",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit Cursor plugin — shared MCP transport, native hooks, and fourteen method skills",
|
|
6
6
|
"keywords": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"build": "bun scripts/build.ts"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@brainervirus/workit-core": "^2.
|
|
48
|
-
"@brainervirus/workit-mcp": "^2.
|
|
47
|
+
"@brainervirus/workit-core": "^2.7.0",
|
|
48
|
+
"@brainervirus/workit-mcp": "^2.7.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=24"
|
|
@@ -16,12 +16,16 @@ Use this method when assessment selects the `testing` dimension.
|
|
|
16
16
|
2. State one behavior and its observable result. Choose the narrowest stable
|
|
17
17
|
boundary a caller or user depends on; avoid private helpers and incidental
|
|
18
18
|
representations.
|
|
19
|
-
3. Write one vertical RED slice that fails for the missing behavior
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
3. Write one vertical RED slice that fails for the missing behavior and run it
|
|
20
|
+
through the CLI so the failure is observed: `workit check test` (the repo's
|
|
21
|
+
configured `test` check; `npx -y @brainervirus/workit-cli check test` when
|
|
22
|
+
`workit` is not on PATH). Implement the smallest change, then run the same
|
|
23
|
+
check GREEN. Close accepts only a fresh passing run of the configured check
|
|
24
|
+
that `workit check` observed; a recorded "tests pass" is a note, and an
|
|
25
|
+
ad-hoc `workit check -- <cmd>` never satisfies the gate. If no `test` check
|
|
26
|
+
is configured or detected, add `workit.checks.json` (committed) with it.
|
|
27
|
+
4. Add only another slice for a distinct behavior or risk. Any edit makes the
|
|
28
|
+
observed check stale: re-run `workit check test` before closing.
|
|
25
29
|
|
|
26
30
|
## Reject noisy tests
|
|
27
31
|
|
|
@@ -36,8 +40,10 @@ Use this method when assessment selects the `testing` dimension.
|
|
|
36
40
|
type-only or CSS-class coupling. If the test still passes when every
|
|
37
41
|
imported function returns undefined, rewrite the assertion or delete it.
|
|
38
42
|
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
Run RED/GREEN through `workit check`, which records the observed result on the
|
|
44
|
+
current task; shared `evidence` operations are for notes and non-test evidence.
|
|
45
|
+
Do not add a second lifecycle, approval chain, or test workflow outside the
|
|
46
|
+
current task state.
|
|
41
47
|
|
|
42
48
|
## Common mistakes
|
|
43
49
|
|
|
@@ -45,4 +51,4 @@ lifecycle, approval chain, or test workflow outside the current task state.
|
|
|
45
51
|
| --- | --- |
|
|
46
52
|
| "The pin changed, so assert the new string" | Exercise the affected consumer behavior. |
|
|
47
53
|
| "The code is obvious" | A small vertical slice still proves the contract. |
|
|
48
|
-
| Keeping a passing test after the boundary moved |
|
|
54
|
+
| Keeping a passing test after the boundary moved | Re-run `workit check test` on the current tree. |
|
|
@@ -19,7 +19,8 @@ established root cause.
|
|
|
19
19
|
inferences, and unknowns with references; trace the failing value and all
|
|
20
20
|
relevant callers before editing.
|
|
21
21
|
3. State the root-cause hypothesis and the smallest in-scope fix. Write a focused
|
|
22
|
-
regression at the boundary when practical, then run RED and GREEN
|
|
22
|
+
regression at the boundary when practical, then run RED and GREEN through
|
|
23
|
+
`workit check <name>` so the results are observed, not reported.
|
|
23
24
|
4. Acquire writer authority through `writer` before mutation. Reconcile the
|
|
24
25
|
candidate, evidence, and findings after the change; investigate sibling paths
|
|
25
26
|
and stale conclusions rather than assuming the first patch worked.
|