@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cursor",
3
- "version": "2.5.0",
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.5.0",
48
- "@brainervirus/workit-mcp": "^2.5.0"
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, run it, and
20
- preserve the actual failure as evidence. Implement the smallest change, then
21
- run the same slice GREEN and record its result. Close enforces the order: a
22
- testing requirement with GREEN but no preceding RED evidence stays unsatisfied.
23
- 4. Add only another slice for a distinct behavior or risk. Reconcile stale
24
- evidence if the candidate changes.
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
- Use shared `evidence` operations for RED/GREEN results. Do not add a second
40
- lifecycle, approval chain, or test workflow outside the current task state.
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 | Mark it stale and retest the current candidate. |
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 checks.
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.