@windyroad/jtbd 0.14.4 → 0.14.5-preview.1243

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.
@@ -90,5 +90,5 @@
90
90
  }
91
91
  },
92
92
  "name": "wr-jtbd",
93
- "version": "0.14.4"
93
+ "version": "0.14.5"
94
94
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wr-jtbd",
3
- "version": "0.14.4",
3
+ "version": "0.14.5",
4
4
  "description": "Jobs-to-be-done governance for product changes",
5
5
  "author": {
6
6
  "name": "Windy Road Technology",
package/hooks/hooks.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "hooks": [
7
7
  {
8
8
  "type": "command",
9
- "command": "${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-oversight-nudge.sh"
9
+ "command": "${PLUGIN_ROOT}/hooks/jtbd-oversight-nudge.sh"
10
10
  }
11
11
  ]
12
12
  }
@@ -16,7 +16,7 @@
16
16
  "hooks": [
17
17
  {
18
18
  "type": "command",
19
- "command": "${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-eval.sh"
19
+ "command": "${PLUGIN_ROOT}/hooks/jtbd-eval.sh"
20
20
  }
21
21
  ]
22
22
  },
@@ -24,7 +24,7 @@
24
24
  "hooks": [
25
25
  {
26
26
  "type": "command",
27
- "command": "${CLAUDE_PLUGIN_ROOT}/hooks/staleness-check.sh"
27
+ "command": "${PLUGIN_ROOT}/hooks/staleness-check.sh"
28
28
  }
29
29
  ]
30
30
  }
@@ -53,7 +53,7 @@
53
53
  "hooks": [
54
54
  {
55
55
  "type": "command",
56
- "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/bash-write-dispatch.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-enforce-edit.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-oversight-marker-discipline.sh\""
56
+ "command": "\"${PLUGIN_ROOT}/hooks/bash-write-dispatch.sh\" \"${PLUGIN_ROOT}/hooks/jtbd-enforce-edit.sh\" \"${PLUGIN_ROOT}/hooks/jtbd-oversight-marker-discipline.sh\""
57
57
  }
58
58
  ]
59
59
  }
@@ -210,5 +210,12 @@ if check_review_gate "$SESSION_ID" "jtbd" "$JTBD_PATH"; then
210
210
  exit 0
211
211
  fi
212
212
 
213
+ if [ -n "${CODEX_THREAD_ID:-}" ]; then
214
+ case "$REVIEW_GATE_REASON" in
215
+ "No jtbd review marker found."*)
216
+ REVIEW_GATE_REASON="${REVIEW_GATE_REASON} After a genuine PASS from a completed wr-jtbd:agent task, call interrupt_agent once with that completed task's exact target, then retry the edit. If still blocked, run a fresh review and report the gate diagnostic. Do not create or edit review markers manually." ;;
217
+ esac
218
+ fi
219
+
213
220
  review_gate_deny "BLOCKED: Cannot edit '${BASENAME}' without JTBD review. You MUST first delegate to wr-jtbd:agent using the Agent tool (subagent_type: 'wr-jtbd:agent'). ${REVIEW_GATE_REASON}"
214
221
  exit 0
@@ -199,5 +199,5 @@ if (CLOSE_TOOLS.has(input.tool_name)) close(input);
199
199
  if (WAIT_TOOLS.has(input.tool_name)) wait(input);
200
200
  if (input.hook_event_name === "SubagentStop") {
201
201
  if (input.agent_type !== role) diagnostic("unrelated-subagent-stop", input);
202
- else complete(input, input.agent_id, input.last_assistant_message);
202
+ else complete(input, input.task_name || input.agent_name || input.agent_id, input.last_assistant_message);
203
203
  }
@@ -6,7 +6,7 @@
6
6
  "hooks": [
7
7
  {
8
8
  "type": "command",
9
- "command": "${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-oversight-nudge.sh"
9
+ "command": "${PLUGIN_ROOT}/hooks/jtbd-oversight-nudge.sh"
10
10
  }
11
11
  ]
12
12
  }
@@ -16,7 +16,7 @@
16
16
  "hooks": [
17
17
  {
18
18
  "type": "command",
19
- "command": "${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-eval.sh"
19
+ "command": "${PLUGIN_ROOT}/hooks/jtbd-eval.sh"
20
20
  }
21
21
  ]
22
22
  },
@@ -24,7 +24,7 @@
24
24
  "hooks": [
25
25
  {
26
26
  "type": "command",
27
- "command": "${CLAUDE_PLUGIN_ROOT}/hooks/staleness-check.sh"
27
+ "command": "${PLUGIN_ROOT}/hooks/staleness-check.sh"
28
28
  }
29
29
  ]
30
30
  }
@@ -53,7 +53,7 @@
53
53
  "hooks": [
54
54
  {
55
55
  "type": "command",
56
- "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/bash-write-dispatch.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-enforce-edit.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-oversight-marker-discipline.sh\""
56
+ "command": "\"${PLUGIN_ROOT}/hooks/bash-write-dispatch.sh\" \"${PLUGIN_ROOT}/hooks/jtbd-enforce-edit.sh\" \"${PLUGIN_ROOT}/hooks/jtbd-oversight-marker-discipline.sh\""
57
57
  }
58
58
  ]
59
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/jtbd",
3
- "version": "0.14.4",
3
+ "version": "0.14.5-preview.1243",
4
4
  "description": "Jobs-to-be-done enforcement for UI changes",
5
5
  "bin": {
6
6
  "windyroad-jtbd": "./bin/install.mjs"