diff --git a/.claude/settings.json b/.claude/settings.json index f9c1cace..bb16b485 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -189,4 +189,4 @@ } ] } -} \ No newline at end of file +} diff --git a/manual_tests/test_infinite_block_command/test_infinite_block_command.py b/manual_tests/test_infinite_block_command/test_infinite_block_command.py index 22be16c7..e20a485d 100644 --- a/manual_tests/test_infinite_block_command/test_infinite_block_command.py +++ b/manual_tests/test_infinite_block_command/test_infinite_block_command.py @@ -12,7 +12,7 @@ === TEST CASE 1: Rule SHOULD fire (command fails, infinite block) === 1. Edit this file (add a comment below the marker) -2. Run: echo '{}' | python -m deepwork.hooks.rules_check +2. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 3. Expected: Block with command error AND promise skip instructions === TEST CASE 2: Rule should NOT fire (promise provided) === diff --git a/manual_tests/test_infinite_block_prompt/test_infinite_block_prompt.py b/manual_tests/test_infinite_block_prompt/test_infinite_block_prompt.py index 5c2ee508..a0aa8ad9 100644 --- a/manual_tests/test_infinite_block_prompt/test_infinite_block_prompt.py +++ b/manual_tests/test_infinite_block_prompt/test_infinite_block_prompt.py @@ -13,7 +13,7 @@ === TEST CASE 1: Rule SHOULD fire (infinite block) === 1. Edit this file (add a comment below the marker) -2. Run: echo '{}' | python -m deepwork.hooks.rules_check +2. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 3. Expected: "Manual Test: Infinite Block Prompt" appears in output with decision="block" 4. The block message should explain that a promise is required @@ -30,7 +30,7 @@ echo '{"role":"assistant","message":{"content":[{"type":"text","text":"Manual Test: Infinite Block Prompt"}]}}' > /tmp/transcript.jsonl 2. Run with transcript: - echo '{"transcript_path":"/tmp/transcript.jsonl"}' | python -m deepwork.hooks.rules_check + echo '{"transcript_path":"/tmp/transcript.jsonl"}' | deepwork hook deepwork.hooks.rules_check 3. Expected: {} (empty JSON = allow) diff --git a/manual_tests/test_multi_safety/test_multi_safety.py b/manual_tests/test_multi_safety/test_multi_safety.py index 27734025..1cf8ba12 100644 --- a/manual_tests/test_multi_safety/test_multi_safety.py +++ b/manual_tests/test_multi_safety/test_multi_safety.py @@ -11,19 +11,19 @@ === TEST CASE 1: Rule SHOULD fire === 1. Edit this file (add a comment below the marker) 2. Do NOT edit any safety files -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Multi Safety" appears in output === TEST CASE 2: Rule should NOT fire (changelog edited) === 1. Edit this file (add a comment below the marker) 2. ALSO edit test_multi_safety_changelog.md -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Multi Safety" does NOT appear === TEST CASE 3: Rule should NOT fire (version edited) === 1. Edit this file (add a comment below the marker) 2. ALSO edit test_multi_safety_version.txt -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Multi Safety" does NOT appear === RULE LOCATION === diff --git a/manual_tests/test_pair_mode/test_pair_mode_trigger.py b/manual_tests/test_pair_mode/test_pair_mode_trigger.py index 369dd18a..ebea40d3 100644 --- a/manual_tests/test_pair_mode/test_pair_mode_trigger.py +++ b/manual_tests/test_pair_mode/test_pair_mode_trigger.py @@ -11,19 +11,19 @@ === TEST CASE 1: Rule SHOULD fire === 1. Edit this file (add a comment below the marker) 2. Do NOT edit test_pair_mode_expected.md -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Pair Mode" appears in output === TEST CASE 2: Rule should NOT fire (both edited) === 1. Edit this file (add a comment below the marker) 2. ALSO edit test_pair_mode_expected.md -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Pair Mode" does NOT appear === TEST CASE 3: Rule should NOT fire (expected only) === 1. Do NOT edit this file 2. Edit ONLY test_pair_mode_expected.md -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Pair Mode" does NOT appear (This verifies the ONE-WAY nature of pair mode) diff --git a/manual_tests/test_set_mode/test_set_mode_source.py b/manual_tests/test_set_mode/test_set_mode_source.py index 6649e424..3edea5f6 100644 --- a/manual_tests/test_set_mode/test_set_mode_source.py +++ b/manual_tests/test_set_mode/test_set_mode_source.py @@ -10,13 +10,13 @@ === TEST CASE 1: Rule SHOULD fire === 1. Edit this file (add a comment below the marker) 2. Do NOT edit test_set_mode_test.py -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Set Mode" appears in output === TEST CASE 2: Rule should NOT fire === 1. Edit this file (add a comment below the marker) 2. ALSO edit test_set_mode_test.py -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Set Mode" does NOT appear === RULE LOCATION === diff --git a/manual_tests/test_trigger_safety_mode/test_trigger_safety_mode.py b/manual_tests/test_trigger_safety_mode/test_trigger_safety_mode.py index 68bf59b0..fb661fbc 100644 --- a/manual_tests/test_trigger_safety_mode/test_trigger_safety_mode.py +++ b/manual_tests/test_trigger_safety_mode/test_trigger_safety_mode.py @@ -9,13 +9,13 @@ === TEST CASE 1: Rule SHOULD fire === 1. Edit this file (add a comment below the marker) 2. Do NOT edit test_trigger_safety_mode_doc.md -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Trigger Safety" appears in output === TEST CASE 2: Rule should NOT fire === 1. Edit this file (add a comment below the marker) 2. ALSO edit test_trigger_safety_mode_doc.md -3. Run: echo '{}' | python -m deepwork.hooks.rules_check +3. Run: echo '{}' | deepwork hook deepwork.hooks.rules_check 4. Expected: "Manual Test: Trigger Safety" does NOT appear === RULE LOCATION ===