🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

sentoagent

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sentoagent - npm Package Compare versions

Comparing version
1.1.53
to
1.1.54
+1
-1
package.json
{
"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');