sentoagent
Advanced tools
+1
-1
| { | ||
| "name": "sentoagent", | ||
| "version": "1.1.53", | ||
| "version": "1.1.54", | ||
| "description": "Agents sent to fight your battles. Self-improving AI agents powered by Claude Code.", | ||
@@ -5,0 +5,0 @@ "author": "Gabriel Gil", |
@@ -134,6 +134,9 @@ export function renderGuardian(config) { | ||
| let lastDiscordUserTs = 0; | ||
| let lastBusyAt = 0; | ||
| // Initialize to startup time so first stall check has a sane baseline. | ||
| // Initializing to 0 caused "idle 56 years" false-positive at startup because | ||
| // now() - 0 always exceeds STALL_THRESHOLD. | ||
| let lastDiscordUserTs = Date.now(); | ||
| let lastBusyAt = Date.now(); | ||
| let lastStallCheck = 0; | ||
| let lastStallRestart = 0; | ||
| let lastStallRestart = Date.now(); | ||
@@ -187,3 +190,6 @@ async function checkDiscordStall() { | ||
| if (lastDiscordUserTs > lastBusyAt + STALL_THRESHOLD && now - lastBusyAt > STALL_THRESHOLD) { | ||
| // Require: msg newer than last-busy + 2min, agent idle > 2min, | ||
| // AND msg itself is at least 2min old (so plugin has had a fair shot at delivering). | ||
| const msgAge = now - lastDiscordUserTs; | ||
| if (lastDiscordUserTs > lastBusyAt + STALL_THRESHOLD && now - lastBusyAt > STALL_THRESHOLD && msgAge > STALL_THRESHOLD) { | ||
| if (now - lastStallRestart < RESTART_COOLDOWN) { | ||
@@ -190,0 +196,0 @@ log('Discord stall detected but auto-restarted recently, skipping'); |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
179746
0.25%3849
0.16%