sentoagent
Advanced tools
+1
-1
| { | ||
| "name": "sentoagent", | ||
| "version": "1.1.62", | ||
| "version": "1.1.63", | ||
| "description": "Agents sent to fight your battles. Self-improving AI agents powered by Claude Code.", | ||
@@ -5,0 +5,0 @@ "author": "Gabriel Gil", |
@@ -31,2 +31,21 @@ export function renderWatchdog(config) { | ||
| # ─── Blocking-dialog guard (v1) ─── | ||
| # An interactive modal (model switch, permission confirm) freezes an autonomous | ||
| # agent: no human is there to click it, and incoming messages buffer BEHIND it, | ||
| # so the stuck-detection below never sees them (INCOMING reads 0 = "idle") and | ||
| # the agent stays frozen for hours. Detect known blocking prompts and send Esc | ||
| # to cancel them (keeps the current model / denies) — this PRESERVES the agent's | ||
| # work, unlike a restart. These signatures don't appear during normal | ||
| # processing, so Esc won't interrupt live work. | ||
| if echo "\$OUTPUT" | grep -qE "Switch model\\?|Do you want to proceed|Yes, and don.t ask again|❯ 1\\. Yes" && ! echo "\$OUTPUT" | grep -q "esc to interrupt"; then | ||
| # SAFETY: only fires when a blocking signature is present AND the agent is NOT | ||
| # actively processing (a real modal replaces the "esc to interrupt" bar). This | ||
| # guarantees Esc can never interrupt a working agent — only clear a true freeze. | ||
| tmux send-keys -t "\$SESSION" Escape 2>/dev/null | ||
| sleep 1 | ||
| tmux send-keys -t "\$SESSION" Escape 2>/dev/null | ||
| echo "\$(date): \$SESSION - blocking dialog detected; sent Esc to dismiss (work preserved)." >> "\$LOG" | ||
| exit 0 | ||
| fi | ||
| # ─── Count signals ─── | ||
@@ -33,0 +52,0 @@ INCOMING=$(echo "\$OUTPUT" | grep -c "← discord\\|← telegram\\|← slack\\|← imessage") |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 4 instances
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 5 instances
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
196941
0.62%4134
0.44%48
-2.04%