@windyroad/jtbd 0.3.1 → 0.4.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/README.md CHANGED
@@ -39,8 +39,7 @@ This examines your existing features and asks about your user jobs, personas, an
39
39
  |------|---------|-------------|
40
40
  | `jtbd-eval.sh` | Every prompt | Evaluates whether the task involves user-facing UI |
41
41
  | `jtbd-enforce-edit.sh` | Edit or Write | Blocks edits until the JTBD agent has reviewed |
42
- | `jtbd-mark-reviewed.sh` | Agent completes | Marks the review as done |
43
- | `jtbd-reset-marker.sh` | Session end | Cleans up review markers |
42
+ | `jtbd-mark-reviewed.sh` | Agent completes | Marks the review as done (TTL: 1800s) |
44
43
 
45
44
  ## Agent
46
45
 
package/hooks/hooks.json CHANGED
@@ -8,9 +8,6 @@
8
8
  ],
9
9
  "PostToolUse": [
10
10
  { "matcher": "Agent", "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-mark-reviewed.sh" }] }
11
- ],
12
- "Stop": [
13
- { "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/hooks/jtbd-reset-marker.sh" }] }
14
11
  ]
15
12
  }
16
13
  }
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env bats
2
+
3
+ # P001 / ADR-009: Stop-hook marker reset removed.
4
+
5
+ setup() {
6
+ PLUGIN_DIR="$(cd "$(dirname "$BATS_TEST_FILENAME")/../.." && pwd)"
7
+ }
8
+
9
+ @test "jtbd: hooks.json has no Stop hook entry (ADR-009)" {
10
+ ! grep -q '"Stop"' "$PLUGIN_DIR/hooks/hooks.json"
11
+ }
12
+
13
+ @test "jtbd: jtbd-reset-marker.sh has been removed" {
14
+ [ ! -f "$PLUGIN_DIR/hooks/jtbd-reset-marker.sh" ]
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/jtbd",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Jobs-to-be-done enforcement for UI changes",
5
5
  "bin": {
6
6
  "windyroad-jtbd": "./bin/install.mjs"
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
- # Stop hook: Clears JTBD review session markers.
3
-
4
- INPUT=$(cat)
5
-
6
- SESSION_ID=$(echo "$INPUT" | jq -r '.session_id // empty') || true
7
-
8
- if [ -n "$SESSION_ID" ]; then
9
- rm -f "/tmp/jtbd-reviewed-${SESSION_ID}" \
10
- "/tmp/jtbd-reviewed-${SESSION_ID}.hash" \
11
- "/tmp/jtbd-verdict" \
12
- "/tmp/jtbd-plan-reviewed-${SESSION_ID}" \
13
- "/tmp/jtbd-plan-verdict"
14
- fi
15
-
16
- exit 0