@brainervirus/workit-opencode 1.0.0 → 1.0.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.
@@ -28,8 +28,10 @@ selects requirements; do not wait for a rule that can only exist after assess.
28
28
  dependency order and recompute after every answer — a wall of questions is
29
29
  not an interview.
30
30
  4. Funnel every resolution: the moment a consequential choice settles, bind it
31
- with a receipt-shaped question (header `Workit decision: <purpose>`, exactly
32
- `approved`/`rejected`, the approved description carrying the exact content).
31
+ with a receipt-shaped question — header `Workit decision: <purpose>` and the
32
+ same label repeated in the question text (host UIs may not render headers) —
33
+ exactly `approved`/`rejected` options, the approved description carrying the
34
+ exact content.
33
35
  If the user already stated the choice in conversation and no receipt can be
34
36
  minted, record it in task progress and reassess so the settled requirement
35
37
  retires — never re-ask to mint a receipt, and never leave it for close to
package/dist/plugin.js CHANGED
@@ -10508,7 +10508,10 @@ check and review kinds auto-bind the current tree and need no digests. Record
10508
10508
  verification evidence last: later evidence or commits can reopen fixed findings
10509
10509
  for re-verification, so verify, resolve, then close with nothing in between.
10510
10510
  decision.record {binding with taskId/workspaceId from inspect plus presented and
10511
- approvedContent} only through a native approval question, task.close {outcome,
10511
+ approvedContent} only through a native approval question asked receipt-shaped:
10512
+ header Workit decision: <purpose>, the same label repeated in the question
10513
+ text (some host UIs do not render headers), exactly two options approved and
10514
+ rejected; ask once, never re-ask to mint a receipt. task.close {outcome,
10512
10515
  summary, decisionIds}. A completed native subagent run stops its bound worker
10513
10516
  by itself; if a worker strands in cancelling with its run verifiably over,
10514
10517
  repeat worker.cancel {reason} to confirm the stop. Check and review evidence
@@ -31120,7 +31123,7 @@ class NativeReceiptStore {
31120
31123
  if (expected.callID !== undefined && receipt.callID !== expected.callID || expected.selectedLabel !== undefined && receipt.selectedLabel !== expected.selectedLabel || expected.selectedDescription !== undefined && receipt.selectedDescription !== expected.selectedDescription || expected.decisionPurpose !== undefined && receipt.decisionPurpose !== expected.decisionPurpose || expected.contentDigest !== undefined && receipt.contentDigest !== expected.contentDigest || expected.question !== undefined && receipt.question !== expected.question)
31121
31124
  return {
31122
31125
  ok: false,
31123
- error: "permission_denied: native question receipt does not match the requested content " + "(binding questions must be asked receipt-shaped: header `Workit decision: <purpose>` " + "with exactly approved/rejected options)"
31126
+ error: "permission_denied: native question receipt does not match the requested content " + "(binding questions must be asked receipt-shaped: header `Workit decision: <purpose>` " + "with the same label in the question text and exactly approved/rejected options)"
31124
31127
  };
31125
31128
  queue.splice(i, 1);
31126
31129
  if (!queue.length)
@@ -31133,7 +31136,7 @@ class NativeReceiptStore {
31133
31136
  }
31134
31137
  return {
31135
31138
  ok: false,
31136
- error: "permission_denied: no native question receipt for this purpose " + "(ordinary multi-option questions mint no receipt; ask binding questions receipt-shaped: " + "header `Workit decision: <purpose>` with exactly approved/rejected options)"
31139
+ error: "permission_denied: no native question receipt for this purpose " + "(ordinary multi-option questions mint no receipt; ask binding questions receipt-shaped: " + "header `Workit decision: <purpose>`, the same label in the question text, with exactly " + "approved/rejected options)"
31137
31140
  };
31138
31141
  }
31139
31142
  verify(observation, sessionID, purpose) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-opencode",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "description": "Workit OpenCode plugin (thin wrapper over @brainervirus/workit-core)",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  "typecheck": "tsc --noEmit"
35
35
  },
36
36
  "dependencies": {
37
- "@brainervirus/workit-core": "^1.0.0"
37
+ "@brainervirus/workit-core": "^1.0.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@opencode-ai/plugin": "1.18.30"