@gakim-digital/dexter-bridge 0.11.21 → 0.11.22

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/agent.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gakim-digital/dexter-bridge",
3
- "version": "0.11.21",
3
+ "version": "0.11.22",
4
4
  "description": "Local bridge for InstaWebAI and Dexter — runs Codex, Claude Code, or OpenCode on your machine.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/agent.js CHANGED
@@ -1532,6 +1532,8 @@ function controlCancellationSource(response) {
1532
1532
  return 'unknown';
1533
1533
  }
1534
1534
 
1535
+ const MAX_OUTCOME_DURATION_MS = 24 * 60 * 60 * 1000;
1536
+
1535
1537
  function boundedDurationMs(value, fallback, minimum = 10, maximum = 60 * 60 * 1000) {
1536
1538
  const parsed = Number(value);
1537
1539
  if (!Number.isFinite(parsed)) return fallback;
@@ -2361,12 +2363,15 @@ async function executeOutcomeRun(run, send, agent, options = {}) {
2361
2363
  ? requestedModel.trim()
2362
2364
  : definition.model
2363
2365
  );
2366
+ // Dexter owns the run limit (a 2-hour safety limit for local runs), so it is
2367
+ // not clamped here; the inactivity timeout below is the stall guard.
2364
2368
  const outcomeMaxDurationMs = boundedDurationMs(
2365
2369
  run?.outcome?.maxDurationMs
2366
2370
  ?? options.maxDurationMs
2367
2371
  ?? options.env?.DEXTER_BRIDGE_AGENT_MAX_DURATION_MS,
2368
2372
  20 * 60_000,
2369
2373
  1_000,
2374
+ MAX_OUTCOME_DURATION_MS,
2370
2375
  );
2371
2376
  const outcomeInactivityTimeoutMs = Math.min(
2372
2377
  outcomeMaxDurationMs,