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.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/features/continuation-enforcement.js +1 -1
- package/dist/features/continuation-enforcement.js.map +1 -1
- package/dist/hooks/bridge.d.ts.map +1 -1
- package/dist/hooks/bridge.js +6 -29
- package/dist/hooks/bridge.js.map +1 -1
- package/dist/hooks/persistent-mode/index.d.ts +2 -1
- package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
- package/dist/hooks/persistent-mode/index.js +7 -17
- package/dist/hooks/persistent-mode/index.js.map +1 -1
- package/dist/hooks/todo-continuation/index.d.ts.map +1 -1
- package/dist/hooks/todo-continuation/index.js +2 -15
- package/dist/hooks/todo-continuation/index.js.map +1 -1
- package/dist/installer/hooks.d.ts +8 -111
- package/dist/installer/hooks.d.ts.map +1 -1
- package/dist/installer/hooks.js +11 -124
- package/dist/installer/hooks.js.map +1 -1
- package/dist/installer/index.d.ts +2 -10
- package/dist/installer/index.d.ts.map +1 -1
- package/dist/installer/index.js +10 -23
- package/dist/installer/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/persistent-mode.mjs +26 -53
- package/templates/hooks/persistent-mode.mjs +26 -53
- package/templates/hooks/stop-continuation.mjs +6 -158
- package/hooks/keyword-detector.sh +0 -102
- package/hooks/persistent-mode.sh +0 -172
- package/hooks/session-start.sh +0 -62
- package/hooks/stop-continuation.sh +0 -40
- package/scripts/claude-sisyphus.sh +0 -9
- package/scripts/install.sh +0 -1673
- package/scripts/keyword-detector.sh +0 -71
- package/scripts/persistent-mode.sh +0 -311
- package/scripts/post-tool-verifier.sh +0 -196
- package/scripts/pre-tool-enforcer.sh +0 -76
- package/scripts/sisyphus-aliases.sh +0 -18
- 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" "$@"
|