@windyroad/voice-tone 0.1.4-preview.56 → 0.2.0-preview.59

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 content and asks about your brand voice, target audi
39
39
  |------|---------|-------------|
40
40
  | `voice-tone-eval.sh` | Every prompt | Evaluates whether the task involves user-facing copy |
41
41
  | `voice-tone-enforce-edit.sh` | Edit or Write | Blocks edits until the voice-tone agent has reviewed |
42
- | `voice-tone-mark-reviewed.sh` | Agent completes | Marks the review as done |
43
- | `voice-tone-reset-marker.sh` | Session end | Cleans up review markers |
42
+ | `voice-tone-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/voice-tone-mark-reviewed.sh" }] }
11
- ],
12
- "Stop": [
13
- { "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/hooks/voice-tone-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 "voice-tone: hooks.json has no Stop hook entry (ADR-009)" {
10
+ ! grep -q '"Stop"' "$PLUGIN_DIR/hooks/hooks.json"
11
+ }
12
+
13
+ @test "voice-tone: voice-tone-reset-marker.sh has been removed" {
14
+ [ ! -f "$PLUGIN_DIR/hooks/voice-tone-reset-marker.sh" ]
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/voice-tone",
3
- "version": "0.1.4-preview.56",
3
+ "version": "0.2.0-preview.59",
4
4
  "description": "Voice and tone enforcement for user-facing copy",
5
5
  "bin": {
6
6
  "windyroad-voice-tone": "./bin/install.mjs"
@@ -1,22 +0,0 @@
1
- #!/bin/bash
2
- # Voice & Tone - Stop hook
3
- # Removes the session marker so the next prompt requires a fresh voice review.
4
- # This tightens the gate from per-session to per-turn.
5
-
6
- INPUT=$(cat)
7
-
8
- SESSION_ID=$(echo "$INPUT" | python3 -c "
9
- import sys, json
10
- data = json.load(sys.stdin)
11
- print(data.get('session_id', ''))
12
- " 2>/dev/null)
13
-
14
- if [ -n "$SESSION_ID" ]; then
15
- rm -f "/tmp/voice-tone-reviewed-${SESSION_ID}" \
16
- "/tmp/voice-tone-reviewed-${SESSION_ID}.hash" \
17
- "/tmp/voice-tone-verdict" \
18
- "/tmp/voice-tone-plan-reviewed-${SESSION_ID}" \
19
- "/tmp/voice-tone-plan-verdict"
20
- fi
21
-
22
- exit 0