@integrity-labs/agt-cli 0.28.989 → 0.28.990

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.
package/dist/bin/agt.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-DP443ICC.js";
43
+ } from "../chunk-P7B5IRH5.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -5472,7 +5472,7 @@ import { execFileSync, execSync } from "child_process";
5472
5472
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5473
5473
  import chalk18 from "chalk";
5474
5474
  import ora16 from "ora";
5475
- var cliVersion = true ? "0.28.989" : "dev";
5475
+ var cliVersion = true ? "0.28.990" : "dev";
5476
5476
  async function fetchLatestVersion() {
5477
5477
  const host2 = getHost();
5478
5478
  if (!host2) return null;
@@ -6732,7 +6732,7 @@ function handleError(err) {
6732
6732
  }
6733
6733
 
6734
6734
  // src/bin/agt.ts
6735
- var cliVersion2 = true ? "0.28.989" : "dev";
6735
+ var cliVersion2 = true ? "0.28.990" : "dev";
6736
6736
  var program = new Command();
6737
6737
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
6738
6738
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6963,7 +6963,7 @@ function exchangeFailureKind(err) {
6963
6963
  }
6964
6964
 
6965
6965
  // src/lib/api-client.ts
6966
- var agtCliVersion = true ? "0.28.989" : "dev";
6966
+ var agtCliVersion = true ? "0.28.990" : "dev";
6967
6967
  var lastConfigHash = null;
6968
6968
  function setConfigHash(hash) {
6969
6969
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9609,12 +9609,13 @@ function computeSessionToolBindStatus(input) {
9609
9609
  httpReachable,
9610
9610
  sessionLoadedServerKeys,
9611
9611
  coldStartActive = false,
9612
+ anyStdioServerLive = true,
9612
9613
  transportDownKeys
9613
9614
  } = input;
9614
9615
  if (stdioServerKeys.length === 0 && httpServerKeys.length === 0 && proxyServerKeys.length === 0)
9615
9616
  return "unknown";
9616
9617
  if (stdioServerKeys.some((k) => missingStdioKeys.has(k)) || proxyServerKeys.some((k) => missingStdioKeys.has(k))) {
9617
- return coldStartActive ? "unknown" : "missing";
9618
+ return coldStartActive || !anyStdioServerLive ? "unknown" : "missing";
9618
9619
  }
9619
9620
  if (transportDownKeys && transportDownKeys.size > 0) {
9620
9621
  if (stdioServerKeys.some((k) => transportDownKeys.has(k)) || httpServerKeys.some((k) => transportDownKeys.has(k)) || proxyServerKeys.some((k) => transportDownKeys.has(k))) {
@@ -9743,11 +9744,16 @@ async function runSessionToolBindProbes(integrations, options) {
9743
9744
  httpReachable,
9744
9745
  sessionLoadedServerKeys: options.sessionLoadedServerKeys ?? /* @__PURE__ */ new Set(),
9745
9746
  coldStartActive,
9747
+ ...options.anyStdioServerLive !== void 0 ? { anyStdioServerLive: options.anyStdioServerLive } : {},
9746
9748
  ...transportDown ? { transportDownKeys: transportDown } : {}
9747
9749
  });
9748
9750
  if (status === "unknown") {
9749
9751
  skipped += 1;
9750
- skippedDetail.push({ definition_id: integ.definition_id, reason: "inconclusive" });
9752
+ const missingOwnChild = stdio.some((k) => options.missingStdioKeys.has(k)) || proxy.some((k) => options.missingStdioKeys.has(k));
9753
+ skippedDetail.push({
9754
+ definition_id: integ.definition_id,
9755
+ reason: !coldStartActive && options.anyStdioServerLive === false && missingOwnChild ? "session-not-live" : "inconclusive"
9756
+ });
9751
9757
  continue;
9752
9758
  }
9753
9759
  reports.push({ integration_id: integ.id, scope: integ.scope, status });
@@ -10368,6 +10374,8 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
10368
10374
  if (hasDeclaredStdio) return null;
10369
10375
  }
10370
10376
  }
10377
+ const declaredCommandKeys = Object.entries(mcpJson.mcpServers).filter(([, entry]) => typeof entry?.command === "string").map(([key]) => key);
10378
+ const anyStdioServerLive = declaredCommandKeys.length === 0 || declaredCommandKeys.some((key) => !missingStdioKeys.has(key));
10371
10379
  const probeEnv = buildProbeEnv(projectDir, agent.agent_id);
10372
10380
  const probeDeps = buildConnectivityProbeDeps(projectDir, probeEnv);
10373
10381
  const probeHttp = async (serverKey) => {
@@ -10406,6 +10414,7 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
10406
10414
  {
10407
10415
  mcpJson,
10408
10416
  missingStdioKeys,
10417
+ anyStdioServerLive,
10409
10418
  transportDownKeys: () => readSlackTransportDownKeys(projectDir),
10410
10419
  probeHttp,
10411
10420
  sessionLoadedServerKeys: opts.sessionLoadedServerKeys,
@@ -11705,4 +11714,4 @@ export {
11705
11714
  managerInstallSystemUnitCommand,
11706
11715
  managerUninstallSystemUnitCommand
11707
11716
  };
11708
- //# sourceMappingURL=chunk-DP443ICC.js.map
11717
+ //# sourceMappingURL=chunk-P7B5IRH5.js.map