@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.
package/hooks/hooks.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
8
|
"type": "command",
|
|
9
|
-
"command": "${
|
|
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": "${
|
|
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": "${
|
|
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": "\"${
|
|
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
|
}
|
package/hooks-codex/hooks.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
8
|
"type": "command",
|
|
9
|
-
"command": "${
|
|
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": "${
|
|
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": "${
|
|
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": "\"${
|
|
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
|
}
|