@misterhuydo/sentinel 1.0.28 → 1.0.30
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/.cairn/session.json +2 -2
- package/lib/generate.js +6 -0
- package/package.json +1 -1
- package/python/sentinel/main.py +0 -1
package/.cairn/session.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"message": "Auto-checkpoint at 2026-03-21T20:
|
|
3
|
-
"checkpoint_at": "2026-03-21T20:
|
|
2
|
+
"message": "Auto-checkpoint at 2026-03-21T20:42:36.784Z",
|
|
3
|
+
"checkpoint_at": "2026-03-21T20:42:36.786Z",
|
|
4
4
|
"active_files": [],
|
|
5
5
|
"notes": [],
|
|
6
6
|
"mtime_snapshot": {}
|
package/lib/generate.js
CHANGED
|
@@ -45,6 +45,10 @@ if [[ -f "$PID_FILE" ]] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null; then
|
|
|
45
45
|
exit 0
|
|
46
46
|
fi
|
|
47
47
|
|
|
48
|
+
# Kill any orphaned sentinel processes for this project (stale PIDs not in PID file)
|
|
49
|
+
pkill -f "sentinel.main --config ${DIR}/config" 2>/dev/null || true
|
|
50
|
+
rm -f "$PID_FILE"
|
|
51
|
+
|
|
48
52
|
# Check Claude Code authentication
|
|
49
53
|
AUTH_OUT=$(claude --print \"hi\" 2>&1 || true)
|
|
50
54
|
if echo "$AUTH_OUT" | grep -Eqi "not logged in|/login"; then
|
|
@@ -140,6 +144,8 @@ if [[ -f "$PID_FILE" ]] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null; then
|
|
|
140
144
|
echo "[sentinel] __NAME__ already running (PID $(cat "$PID_FILE"))"
|
|
141
145
|
exit 0
|
|
142
146
|
fi
|
|
147
|
+
pkill -f "sentinel.main --config ${DIR}/config" 2>/dev/null || true
|
|
148
|
+
rm -f "$PID_FILE"
|
|
143
149
|
AUTH_OUT=$(claude --print \"hi\" 2>&1 || true)
|
|
144
150
|
if echo "$AUTH_OUT" | grep -Eqi "not logged in|/login"; then
|
|
145
151
|
echo "[sentinel] Claude Code is not authenticated. Run: claude then /login"
|
package/package.json
CHANGED
package/python/sentinel/main.py
CHANGED