@windyroad/architect 0.1.5-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
|
@@ -44,7 +44,6 @@ This walks you through creating an ADR in [MADR 4.0](https://adr.github.io/madr/
|
|
|
44
44
|
| `architect-plan-enforce.sh` | ExitPlanMode | Ensures plans are reviewed before execution |
|
|
45
45
|
| `architect-mark-reviewed.sh` | Agent completes | Marks the review as done (TTL: 1800s) |
|
|
46
46
|
| `architect-refresh-hash.sh` | After edit | Refreshes the content hash so the next edit triggers a fresh review |
|
|
47
|
-
| `architect-reset-marker.sh` | Session end | Cleans up review markers |
|
|
48
47
|
|
|
49
48
|
## Agent
|
|
50
49
|
|
package/hooks/hooks.json
CHANGED
|
@@ -10,9 +10,6 @@
|
|
|
10
10
|
"PostToolUse": [
|
|
11
11
|
{ "matcher": "Agent", "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/hooks/architect-mark-reviewed.sh" }] },
|
|
12
12
|
{ "matcher": "Edit|Write", "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/hooks/architect-refresh-hash.sh" }] }
|
|
13
|
-
],
|
|
14
|
-
"Stop": [
|
|
15
|
-
{ "hooks": [{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/hooks/architect-reset-marker.sh" }] }
|
|
16
13
|
]
|
|
17
14
|
}
|
|
18
15
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env bats
|
|
2
|
+
|
|
3
|
+
# P001 / ADR-009: Stop-hook marker reset removed. Marker lifecycle is
|
|
4
|
+
# governed by TTL + drift detection. This test asserts the Stop hook
|
|
5
|
+
# entry is absent from the plugin's hooks.json.
|
|
6
|
+
|
|
7
|
+
setup() {
|
|
8
|
+
PLUGIN_DIR="$(cd "$(dirname "$BATS_TEST_FILENAME")/../.." && pwd)"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@test "architect: hooks.json has no Stop hook entry (ADR-009)" {
|
|
12
|
+
! grep -q '"Stop"' "$PLUGIN_DIR/hooks/hooks.json"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@test "architect: architect-reset-marker.sh has been removed" {
|
|
16
|
+
[ ! -f "$PLUGIN_DIR/hooks/architect-reset-marker.sh" ]
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Architecture - Stop hook
|
|
3
|
-
# Removes the architect session marker so the next turn requires a fresh review.
|
|
4
|
-
# Mirrors: voice-tone-reset-marker.sh
|
|
5
|
-
|
|
6
|
-
INPUT=$(cat)
|
|
7
|
-
|
|
8
|
-
SESSION_ID=$(echo "$INPUT" | jq -r '.session_id // empty') || true
|
|
9
|
-
|
|
10
|
-
if [ -n "$SESSION_ID" ]; then
|
|
11
|
-
rm -f "/tmp/architect-reviewed-${SESSION_ID}"
|
|
12
|
-
rm -f "/tmp/architect-reviewed-${SESSION_ID}.hash"
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
exit 0
|