@integrity-labs/agt-cli 0.28.514 → 0.28.516

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.
@@ -42,7 +42,7 @@ import {
42
42
  resolveConnectivityProbe,
43
43
  worseConnectivityOutcome,
44
44
  wrapScheduledTaskPrompt
45
- } from "./chunk-S5RR4UHQ.js";
45
+ } from "./chunk-UQ3TQ7M4.js";
46
46
  import {
47
47
  parsePsRows
48
48
  } from "./chunk-XWVM4KPK.js";
@@ -5317,7 +5317,7 @@ function exchangeFailureKind(err) {
5317
5317
  }
5318
5318
 
5319
5319
  // src/lib/api-client.ts
5320
- var agtCliVersion = true ? "0.28.514" : "dev";
5320
+ var agtCliVersion = true ? "0.28.516" : "dev";
5321
5321
  var lastConfigHash = null;
5322
5322
  function setConfigHash(hash) {
5323
5323
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -7307,12 +7307,14 @@ function computeSessionToolBindStatus(input) {
7307
7307
  proxyServerKeys,
7308
7308
  missingStdioKeys,
7309
7309
  httpReachable,
7310
- sessionLoadedServerKeys
7310
+ sessionLoadedServerKeys,
7311
+ coldStartActive = false
7311
7312
  } = input;
7312
7313
  if (stdioServerKeys.length === 0 && httpServerKeys.length === 0 && proxyServerKeys.length === 0)
7313
7314
  return "unknown";
7314
- if (stdioServerKeys.some((k) => missingStdioKeys.has(k))) return "missing";
7315
- if (proxyServerKeys.some((k) => missingStdioKeys.has(k))) return "missing";
7315
+ if (stdioServerKeys.some((k) => missingStdioKeys.has(k)) || proxyServerKeys.some((k) => missingStdioKeys.has(k))) {
7316
+ return coldStartActive ? "unknown" : "missing";
7317
+ }
7316
7318
  for (const k of proxyServerKeys) {
7317
7319
  if (httpReachable.get(k) === false) return "unreachable";
7318
7320
  }
@@ -7389,13 +7391,16 @@ async function runSessionToolBindProbes(integrations, options) {
7389
7391
  }
7390
7392
  if (reachable !== void 0) httpReachable.set(key, reachable);
7391
7393
  }
7394
+ const nowMs = (options.now?.() ?? /* @__PURE__ */ new Date()).getTime();
7395
+ const coldStartActive = options.sessionStartedMs != null && nowMs - options.sessionStartedMs < DEFAULT_COLD_START_GRACE_MS;
7392
7396
  const status = computeSessionToolBindStatus({
7393
7397
  stdioServerKeys: stdio,
7394
7398
  httpServerKeys: http,
7395
7399
  proxyServerKeys: proxy,
7396
7400
  missingStdioKeys: options.missingStdioKeys,
7397
7401
  httpReachable,
7398
- sessionLoadedServerKeys: options.sessionLoadedServerKeys ?? /* @__PURE__ */ new Set()
7402
+ sessionLoadedServerKeys: options.sessionLoadedServerKeys ?? /* @__PURE__ */ new Set(),
7403
+ coldStartActive
7399
7404
  });
7400
7405
  if (status === "unknown") {
7401
7406
  skipped += 1;
@@ -7734,6 +7739,7 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
7734
7739
  missingStdioKeys,
7735
7740
  probeHttp,
7736
7741
  sessionLoadedServerKeys: opts.sessionLoadedServerKeys,
7742
+ sessionStartedMs: opts.sessionStartedMs,
7737
7743
  intervalMs: opts.intervalMs,
7738
7744
  ...opts.maxPerRun !== void 0 ? { maxPerRun: opts.maxPerRun } : {}
7739
7745
  }
@@ -8623,4 +8629,4 @@ export {
8623
8629
  managerInstallSystemUnitCommand,
8624
8630
  managerUninstallSystemUnitCommand
8625
8631
  };
8626
- //# sourceMappingURL=chunk-GJ6U2XU6.js.map
8632
+ //# sourceMappingURL=chunk-IBI6VSGP.js.map