@windyroad/style-guide 0.1.4 → 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 CSS, components, and design patterns, then asks abou
39
39
  |------|---------|-------------|
40
40
  | `style-guide-eval.sh` | Every prompt | Evaluates whether the task involves visual styling |
41
41
  | `style-guide-enforce-edit.sh` | Edit or Write | Blocks edits until the style-guide agent has reviewed |
42
- | `style-guide-mark-reviewed.sh` | Agent completes | Marks the review as done |
43
- | `style-guide-reset-marker.sh` | Session end | Cleans up review markers |
42
+ | `style-guide-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/style-guide-mark-reviewed.sh" }] }
11
- ],
12
- "Stop": [
13
- { "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/hooks/style-guide-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 "style-guide: hooks.json has no Stop hook entry (ADR-009)" {
10
+ ! grep -q '"Stop"' "$PLUGIN_DIR/hooks/hooks.json"
11
+ }
12
+
13
+ @test "style-guide: style-guide-reset-marker.sh has been removed" {
14
+ [ ! -f "$PLUGIN_DIR/hooks/style-guide-reset-marker.sh" ]
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/style-guide",
3
- "version": "0.1.4",
3
+ "version": "0.2.0-preview.59",
4
4
  "description": "Style guide enforcement for CSS and UI components",
5
5
  "bin": {
6
6
  "windyroad-style-guide": "./bin/install.mjs"
@@ -1,22 +0,0 @@
1
- #!/bin/bash
2
- # Style Guide - Stop hook
3
- # Removes the session marker so the next prompt requires a fresh style 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/style-guide-reviewed-${SESSION_ID}" \
16
- "/tmp/style-guide-reviewed-${SESSION_ID}.hash" \
17
- "/tmp/style-guide-verdict" \
18
- "/tmp/style-guide-plan-reviewed-${SESSION_ID}" \
19
- "/tmp/style-guide-plan-verdict"
20
- fi
21
-
22
- exit 0