@integrity-labs/agt-cli 0.28.927 → 0.28.929

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 (24) hide show
  1. package/dist/bin/agt.js +51 -6
  2. package/dist/bin/agt.js.map +1 -1
  3. package/dist/{chunk-Y7ERASS6.js → chunk-IIIMUCGD.js} +18 -1
  4. package/dist/{chunk-Y7ERASS6.js.map → chunk-IIIMUCGD.js.map} +1 -1
  5. package/dist/{chunk-LWLTSFH3.js → chunk-VZVCPJC7.js} +23 -8
  6. package/dist/{chunk-LWLTSFH3.js.map → chunk-VZVCPJC7.js.map} +1 -1
  7. package/dist/{chunk-NIUBYSLW.js → chunk-ZNVYUZSM.js} +2 -2
  8. package/dist/{claude-pair-runtime-RFY57WC3.js → claude-pair-runtime-MA4CLC6B.js} +2 -2
  9. package/dist/lib/manager-worker.js +49 -15
  10. package/dist/lib/manager-worker.js.map +1 -1
  11. package/dist/mcp/direct-chat-channel.js +17 -0
  12. package/dist/mcp/index.js +17 -0
  13. package/dist/mcp/origami.js +17 -0
  14. package/dist/mcp/slack-channel.js +17 -0
  15. package/dist/mcp/telegram-channel.js +17 -0
  16. package/dist/{persistent-session-O3AKW6IW.js → persistent-session-PYQ5U6FU.js} +3 -3
  17. package/dist/{responsiveness-probe-MIPUX3BG.js → responsiveness-probe-T4LKSNFO.js} +3 -3
  18. package/dist/{session-auth-dead-ZGZZLE4X.js → session-auth-dead-M5SFWTQH.js} +2 -2
  19. package/package.json +1 -1
  20. /package/dist/{chunk-NIUBYSLW.js.map → chunk-ZNVYUZSM.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-RFY57WC3.js.map → claude-pair-runtime-MA4CLC6B.js.map} +0 -0
  22. /package/dist/{persistent-session-O3AKW6IW.js.map → persistent-session-PYQ5U6FU.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-MIPUX3BG.js.map → responsiveness-probe-T4LKSNFO.js.map} +0 -0
  24. /package/dist/{session-auth-dead-ZGZZLE4X.js.map → session-auth-dead-M5SFWTQH.js.map} +0 -0
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvIntegrations,
17
17
  shellQuote,
18
18
  summarizeUnanswerablePane
19
- } from "./chunk-NIUBYSLW.js";
19
+ } from "./chunk-ZNVYUZSM.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -76,7 +76,7 @@ import {
76
76
  sessionTranscriptDir,
77
77
  worseConnectivityOutcome,
78
78
  wrapScheduledTaskPrompt
79
- } from "./chunk-Y7ERASS6.js";
79
+ } from "./chunk-IIIMUCGD.js";
80
80
  import {
81
81
  parsePsRows
82
82
  } from "./chunk-XWVM4KPK.js";
@@ -6942,7 +6942,7 @@ function exchangeFailureKind(err) {
6942
6942
  }
6943
6943
 
6944
6944
  // src/lib/api-client.ts
6945
- var agtCliVersion = true ? "0.28.927" : "dev";
6945
+ var agtCliVersion = true ? "0.28.929" : "dev";
6946
6946
  var lastConfigHash = null;
6947
6947
  function setConfigHash(hash) {
6948
6948
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8187,6 +8187,7 @@ function reapMissingMcpSessions(args) {
8187
8187
  state.quarantineLogged = false;
8188
8188
  state.continuouslyMissingSince = null;
8189
8189
  state.deadChannelLogged = false;
8190
+ state.quarantineWithheldLogged = false;
8190
8191
  state.gaveUp = false;
8191
8192
  if (state.stableLiveSince === null) state.stableLiveSince = now();
8192
8193
  if (now() - state.stableLiveSince >= BACKOFF_STABLE_RESET_MS) {
@@ -8213,6 +8214,8 @@ function reapMissingMcpSessions(args) {
8213
8214
  const newGenerationKeys = /* @__PURE__ */ new Set();
8214
8215
  const quarantined = [];
8215
8216
  const wouldQuarantine = [];
8217
+ const quarantineWithheld = [];
8218
+ const anyStdioServerLive = liveKeys.size > 0;
8216
8219
  const genuinelyDead = [];
8217
8220
  for (const key of missing) {
8218
8221
  const sk = stateKey(codeName, key);
@@ -8227,6 +8230,7 @@ function reapMissingMcpSessions(args) {
8227
8230
  stableLiveSince: null,
8228
8231
  continuouslyMissingSince: null,
8229
8232
  deadChannelLogged: false,
8233
+ quarantineWithheldLogged: false,
8230
8234
  gaveUp: false
8231
8235
  };
8232
8236
  if (state.continuouslyMissingSince === null) {
@@ -8280,7 +8284,15 @@ function reapMissingMcpSessions(args) {
8280
8284
  }
8281
8285
  if (quarantineMode !== "off" && !state.quarantineLogged && classifyKey(key) === "optional") {
8282
8286
  const dwellElapsed = quarantineDwellMs <= 0 || state.firstMissingAt !== null && nowMs - state.firstMissingAt >= quarantineDwellMs;
8283
- if (dwellElapsed) {
8287
+ if (dwellElapsed && !anyStdioServerLive) {
8288
+ quarantineWithheld.push(key);
8289
+ if (!state.quarantineWithheldLogged) {
8290
+ state.quarantineWithheldLogged = true;
8291
+ log2(
8292
+ `[mcp-presence-reaper] '${codeName}:${key}' given up but NOT quarantined - no declared stdio MCP server is live, so the restart budget was exhausted by a session that cannot spawn anything, not by this channel dying. Check the pane (tmux attach -t agt-${codeName}); the channel stays provisioned and will quarantine on a later tick if it is still missing once the session is up (ENG-10500)`
8293
+ );
8294
+ }
8295
+ } else if (dwellElapsed) {
8284
8296
  state.quarantineLogged = true;
8285
8297
  if (quarantineMode === "enforce") {
8286
8298
  quarantined.push(key);
@@ -8337,7 +8349,8 @@ function reapMissingMcpSessions(args) {
8337
8349
  rotationRespawnOutcomes: Object.keys(rotationRespawnOutcomes).length > 0 ? rotationRespawnOutcomes : void 0,
8338
8350
  quarantined: quarantined.length > 0 ? quarantined : void 0,
8339
8351
  wouldQuarantine: wouldQuarantine.length > 0 ? wouldQuarantine : void 0,
8340
- genuinelyDead: genuinelyDead.length > 0 ? genuinelyDead : void 0
8352
+ genuinelyDead: genuinelyDead.length > 0 ? genuinelyDead : void 0,
8353
+ quarantineWithheld: quarantineWithheld.length > 0 ? quarantineWithheld : void 0
8341
8354
  };
8342
8355
  }
8343
8356
  if (readPane) {
@@ -8384,7 +8397,8 @@ function reapMissingMcpSessions(args) {
8384
8397
  rotationRespawnOutcomes: Object.keys(rotationRespawnOutcomes).length > 0 ? rotationRespawnOutcomes : void 0,
8385
8398
  quarantined: quarantined.length > 0 ? quarantined : void 0,
8386
8399
  wouldQuarantine: wouldQuarantine.length > 0 ? wouldQuarantine : void 0,
8387
- genuinelyDead: genuinelyDead.length > 0 ? genuinelyDead : void 0
8400
+ genuinelyDead: genuinelyDead.length > 0 ? genuinelyDead : void 0,
8401
+ quarantineWithheld: quarantineWithheld.length > 0 ? quarantineWithheld : void 0
8388
8402
  };
8389
8403
  }
8390
8404
  }
@@ -8426,7 +8440,8 @@ function reapMissingMcpSessions(args) {
8426
8440
  rotationRespawnOutcomes: Object.keys(rotationRespawnOutcomes).length > 0 ? rotationRespawnOutcomes : void 0,
8427
8441
  quarantined: quarantined.length > 0 ? quarantined : void 0,
8428
8442
  wouldQuarantine: wouldQuarantine.length > 0 ? wouldQuarantine : void 0,
8429
- genuinelyDead: genuinelyDead.length > 0 ? genuinelyDead : void 0
8443
+ genuinelyDead: genuinelyDead.length > 0 ? genuinelyDead : void 0,
8444
+ quarantineWithheld: quarantineWithheld.length > 0 ? quarantineWithheld : void 0
8430
8445
  };
8431
8446
  }
8432
8447
 
@@ -11552,4 +11567,4 @@ export {
11552
11567
  managerInstallSystemUnitCommand,
11553
11568
  managerUninstallSystemUnitCommand
11554
11569
  };
11555
- //# sourceMappingURL=chunk-LWLTSFH3.js.map
11570
+ //# sourceMappingURL=chunk-VZVCPJC7.js.map