@brainervirus/workit-cursor 1.0.5 → 1.0.6

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.
@@ -2,7 +2,7 @@
2
2
  "name": "workit",
3
3
  "displayName": "Workit",
4
4
  "description": "Adaptive Workit workflow with shared MCP tools and native Cursor hooks",
5
- "version": "1.0.5",
5
+ "version": "1.0.6",
6
6
  "author": {
7
7
  "name": "Cristhofer Pincetti"
8
8
  },
@@ -10219,10 +10219,9 @@ function evaluateRequirements(task, workspace, capabilities, candidate, checkout
10219
10219
  if (requirement.dimension !== "review")
10220
10220
  return true;
10221
10221
  const reviewSession = sessionFromRef(entry.data.reviewContext);
10222
- const implementationSession = sessionFromRef(task.intent.provenance.session);
10223
- const sameImplementation = sameSession(reviewSession, implementationSession);
10222
+ const sameImplementation = sameSession(reviewSession, task.intent.provenance.session);
10224
10223
  const sameEvidenceSession = task.evidence.some((other) => other.id !== entry.id && sameSession(reviewSession, other.provenance.session));
10225
- return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && !sameImplementation && !sameEvidenceSession;
10224
+ return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && (requirement.ruleId === "self-review" || !sameImplementation && !sameEvidenceSession);
10226
10225
  });
10227
10226
  if (passed.length) {
10228
10227
  const withRed = requirement.dimension === "testing" ? passed.filter(({ entry }) => related.some((other) => other.entry.data.kind === "check" && other.evaluation.status === "failed" && other.entry.data.requirementIds.includes(requirement.id) && other.entry.recordedAt <= entry.recordedAt)) : passed;
@@ -10583,6 +10582,9 @@ revisions, policy.assess {assessment: {facts, signals, consequences,
10583
10582
  verification}} where facts are inferred or observed with file refs,
10584
10583
  writer.acquire {taskId} before product writes, evidence.record {evidence} where
10585
10584
  check and review kinds auto-bind the current tree and need no digests. Record
10585
+ self-review requirements with kind review and reviewContext matching your own
10586
+ host session; the lead may also record checks. Fresh-context review requires a
10587
+ session distinct from the task creator and every other evidence recorder. Record
10586
10588
  verification evidence last: later evidence or commits can reopen fixed findings
10587
10589
  for re-verification, so verify, resolve, then close with nothing in between.
10588
10590
  decision.record {binding with taskId/workspaceId from inspect plus presented and
@@ -23011,10 +23011,9 @@ function evaluateRequirements(task, workspace, capabilities, candidate, checkout
23011
23011
  if (requirement.dimension !== "review")
23012
23012
  return true;
23013
23013
  const reviewSession = sessionFromRef(entry.data.reviewContext);
23014
- const implementationSession = sessionFromRef(task.intent.provenance.session);
23015
- const sameImplementation = sameSession(reviewSession, implementationSession);
23014
+ const sameImplementation = sameSession(reviewSession, task.intent.provenance.session);
23016
23015
  const sameEvidenceSession = task.evidence.some((other) => other.id !== entry.id && sameSession(reviewSession, other.provenance.session));
23017
- return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && !sameImplementation && !sameEvidenceSession;
23016
+ return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && (requirement.ruleId === "self-review" || !sameImplementation && !sameEvidenceSession);
23018
23017
  });
23019
23018
  if (passed.length) {
23020
23019
  const withRed = requirement.dimension === "testing" ? passed.filter(({ entry }) => related.some((other) => other.entry.data.kind === "check" && other.evaluation.status === "failed" && other.entry.data.requirementIds.includes(requirement.id) && other.entry.recordedAt <= entry.recordedAt)) : passed;
@@ -10256,10 +10256,9 @@ function evaluateRequirements(task, workspace, capabilities, candidate, checkout
10256
10256
  if (requirement.dimension !== "review")
10257
10257
  return true;
10258
10258
  const reviewSession = sessionFromRef(entry.data.reviewContext);
10259
- const implementationSession = sessionFromRef(task.intent.provenance.session);
10260
- const sameImplementation = sameSession(reviewSession, implementationSession);
10259
+ const sameImplementation = sameSession(reviewSession, task.intent.provenance.session);
10261
10260
  const sameEvidenceSession = task.evidence.some((other) => other.id !== entry.id && sameSession(reviewSession, other.provenance.session));
10262
- return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && !sameImplementation && !sameEvidenceSession;
10261
+ return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && (requirement.ruleId === "self-review" || !sameImplementation && !sameEvidenceSession);
10263
10262
  });
10264
10263
  if (passed.length) {
10265
10264
  const withRed = requirement.dimension === "testing" ? passed.filter(({ entry }) => related.some((other) => other.entry.data.kind === "check" && other.evaluation.status === "failed" && other.entry.data.requirementIds.includes(requirement.id) && other.entry.recordedAt <= entry.recordedAt)) : passed;
@@ -10486,6 +10485,9 @@ revisions, policy.assess {assessment: {facts, signals, consequences,
10486
10485
  verification}} where facts are inferred or observed with file refs,
10487
10486
  writer.acquire {taskId} before product writes, evidence.record {evidence} where
10488
10487
  check and review kinds auto-bind the current tree and need no digests. Record
10488
+ self-review requirements with kind review and reviewContext matching your own
10489
+ host session; the lead may also record checks. Fresh-context review requires a
10490
+ session distinct from the task creator and every other evidence recorder. Record
10489
10491
  verification evidence last: later evidence or commits can reopen fixed findings
10490
10492
  for re-verification, so verify, resolve, then close with nothing in between.
10491
10493
  decision.record {binding with taskId/workspaceId from inspect plus presented and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cursor",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
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": "^1.0.5",
48
- "@brainervirus/workit-mcp": "^1.0.5"
47
+ "@brainervirus/workit-core": "^1.0.6",
48
+ "@brainervirus/workit-mcp": "^1.0.6"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=24"