oh-my-claude-sisyphus 3.8.11 → 3.8.12

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.
Files changed (37) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/features/continuation-enforcement.js +1 -1
  3. package/dist/features/continuation-enforcement.js.map +1 -1
  4. package/dist/hooks/bridge.d.ts.map +1 -1
  5. package/dist/hooks/bridge.js +6 -29
  6. package/dist/hooks/bridge.js.map +1 -1
  7. package/dist/hooks/persistent-mode/index.d.ts +2 -1
  8. package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
  9. package/dist/hooks/persistent-mode/index.js +7 -17
  10. package/dist/hooks/persistent-mode/index.js.map +1 -1
  11. package/dist/hooks/todo-continuation/index.d.ts.map +1 -1
  12. package/dist/hooks/todo-continuation/index.js +2 -15
  13. package/dist/hooks/todo-continuation/index.js.map +1 -1
  14. package/dist/installer/hooks.d.ts +8 -111
  15. package/dist/installer/hooks.d.ts.map +1 -1
  16. package/dist/installer/hooks.js +11 -124
  17. package/dist/installer/hooks.js.map +1 -1
  18. package/dist/installer/index.d.ts +2 -10
  19. package/dist/installer/index.d.ts.map +1 -1
  20. package/dist/installer/index.js +10 -23
  21. package/dist/installer/index.js.map +1 -1
  22. package/package.json +1 -1
  23. package/scripts/persistent-mode.mjs +26 -53
  24. package/templates/hooks/persistent-mode.mjs +26 -53
  25. package/templates/hooks/stop-continuation.mjs +6 -158
  26. package/hooks/keyword-detector.sh +0 -102
  27. package/hooks/persistent-mode.sh +0 -172
  28. package/hooks/session-start.sh +0 -62
  29. package/hooks/stop-continuation.sh +0 -40
  30. package/scripts/claude-sisyphus.sh +0 -9
  31. package/scripts/install.sh +0 -1673
  32. package/scripts/keyword-detector.sh +0 -71
  33. package/scripts/persistent-mode.sh +0 -311
  34. package/scripts/post-tool-verifier.sh +0 -196
  35. package/scripts/pre-tool-enforcer.sh +0 -76
  36. package/scripts/sisyphus-aliases.sh +0 -18
  37. package/scripts/stop-continuation.sh +0 -31
@@ -1,40 +0,0 @@
1
- #!/bin/bash
2
- # Sisyphus Stop Continuation Hook
3
- # Checks for incomplete todos and injects continuation prompt
4
- # Ported from oh-my-opencode's todo-continuation-enforcer
5
-
6
- # Read stdin
7
- INPUT=$(cat)
8
-
9
- # Get session ID if available
10
- SESSION_ID=""
11
- if command -v jq &> /dev/null; then
12
- SESSION_ID=$(echo "$INPUT" | jq -r '.sessionId // .session_id // ""' 2>/dev/null)
13
- fi
14
-
15
- # Check for incomplete todos in the Claude todos directory
16
- TODOS_DIR="$HOME/.claude/todos"
17
- if [ -d "$TODOS_DIR" ]; then
18
- # Look for any todo files with incomplete items
19
- INCOMPLETE_COUNT=0
20
- for todo_file in "$TODOS_DIR"/*.json; do
21
- if [ -f "$todo_file" ]; then
22
- if command -v jq &> /dev/null; then
23
- COUNT=$(jq '[.[] | select(.status != "completed" and .status != "cancelled")] | length' "$todo_file" 2>/dev/null || echo "0")
24
- INCOMPLETE_COUNT=$((INCOMPLETE_COUNT + COUNT))
25
- fi
26
- fi
27
- done
28
-
29
- if [ "$INCOMPLETE_COUNT" -gt 0 ]; then
30
- # Output continuation message
31
- cat << EOF
32
- {"continue": false, "reason": "[SYSTEM REMINDER - TODO CONTINUATION]\n\nIncomplete tasks remain in your todo list ($INCOMPLETE_COUNT remaining). Continue working on the next pending task.\n\n- Proceed without asking for permission\n- Mark each task complete when finished\n- Do not stop until all tasks are done"}
33
- EOF
34
- exit 0
35
- fi
36
- fi
37
-
38
- # No incomplete todos - allow stop
39
- echo '{"continue": true}'
40
- exit 0
@@ -1,9 +0,0 @@
1
- #!/bin/bash
2
- # Sisyphus Mode Wrapper for Claude CLI
3
- # Enforces task completion discipline through system prompt injection
4
-
5
- # Core Sisyphus enforcement prompt
6
- SISYPHUS_PROMPT="You are in SISYPHUS MODE. You CANNOT stop with incomplete todos. ALWAYS use TodoWrite to track tasks. Mark complete IMMEDIATELY when done. Verify ALL work before stopping. The boulder never stops rolling until EVERY task reaches completion."
7
-
8
- # Execute claude with appended system prompt, passing through all arguments
9
- exec claude --append-system-prompt "$SISYPHUS_PROMPT" "$@"