diff --git a/.env.example b/.env.example index da358abe..5069f843 100644 --- a/.env.example +++ b/.env.example @@ -232,6 +232,11 @@ DISPATCH_AGENT_TOKEN="your_agent_token_here" # disable. Default 1 800 000 (30 min). # DISPATCH_RECONCILE_INTERVAL_MS=1800000 +# Interval (ms) between automated `/api/agent-work/sweep` runs that reclaim +# agent-work leases abandoned by an agent that died mid-task. Set to "0" to +# disable. Default 300 000 (5 min). +# DISPATCH_STALE_WORK_INTERVAL_MS=300000 + # --- Framework / build-time vars (set by the platform, do not override) --- # NODE_ENV, NEXT_RUNTIME, and NEXT_PUBLIC_DISPATCH_VERSION are managed by the diff --git a/package.json b/package.json index bfc696b2..e25fe054 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "dev": "next dev", "build": "NODE_ENV=production next build", "start": "next start", - "audit": "npm audit --omit=dev --audit-level=high", + "audit": "npm audit --omit=dev --audit-level=high --fetch-retries=5 --fetch-timeout=120000 --fetch-retry-mintimeout=20000 --fetch-retry-maxtimeout=120000", "lint": "NODE_ENV=development eslint .", "test": "NODE_ENV=development vitest run", "test:watch": "NODE_ENV=development vitest",