@integrity-labs/agt-cli 0.28.210 → 0.28.211

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.
@@ -18,7 +18,7 @@ import {
18
18
  resolveConnectivityProbe,
19
19
  worseConnectivityOutcome,
20
20
  wrapScheduledTaskPrompt
21
- } from "./chunk-WFCCBTA6.js";
21
+ } from "./chunk-ZV4PUS7E.js";
22
22
  import {
23
23
  parsePsRows
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -4157,14 +4157,14 @@ ${sections}`
4157
4157
  const augDir = join2(homeDir, ".augmented");
4158
4158
  const agents = /* @__PURE__ */ new Set();
4159
4159
  try {
4160
- const { readdirSync: readdirSync2, statSync: statSync3 } = await import("fs");
4160
+ const { readdirSync: readdirSync2, statSync: statSync2 } = await import("fs");
4161
4161
  const entries = readdirSync2(augDir);
4162
4162
  for (const entry of entries) {
4163
4163
  if (entry.startsWith("_") || entry.startsWith("."))
4164
4164
  continue;
4165
4165
  const agentRoot = join2(augDir, entry);
4166
4166
  try {
4167
- if (!statSync3(agentRoot).isDirectory())
4167
+ if (!statSync2(agentRoot).isDirectory())
4168
4168
  continue;
4169
4169
  } catch {
4170
4170
  continue;
@@ -5529,7 +5529,7 @@ function requireHost() {
5529
5529
  }
5530
5530
 
5531
5531
  // src/lib/api-client.ts
5532
- var agtCliVersion = true ? "0.28.210" : "dev";
5532
+ var agtCliVersion = true ? "0.28.211" : "dev";
5533
5533
  var lastConfigHash = null;
5534
5534
  function setConfigHash(hash) {
5535
5535
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -6639,7 +6639,7 @@ function buildConnectivityProbeDeps(projectDir, probeEnv) {
6639
6639
 
6640
6640
  // src/lib/session-tool-bind-probe-host.ts
6641
6641
  import { execFileSync as syncExecFile } from "child_process";
6642
- import { readFileSync as readFileSync7, statSync as statSync2 } from "fs";
6642
+ import { readFileSync as readFileSync7 } from "fs";
6643
6643
  import { join as join6 } from "path";
6644
6644
 
6645
6645
  // src/lib/session-tool-probe.ts
@@ -6662,18 +6662,18 @@ function splitServerKeysByKind(mcpJson, serverKeys) {
6662
6662
  return { stdio, http };
6663
6663
  }
6664
6664
  function computeSessionToolBindStatus(input) {
6665
- const { stdioServerKeys, httpServerKeys, missingStdioKeys, httpReachable, httpSessionLoaded } = input;
6665
+ const { stdioServerKeys, httpServerKeys, missingStdioKeys, httpReachable, sessionLoadedServerKeys } = input;
6666
6666
  if (stdioServerKeys.length === 0 && httpServerKeys.length === 0) return "unknown";
6667
6667
  if (stdioServerKeys.some((k) => missingStdioKeys.has(k))) return "missing";
6668
6668
  let anyHttpUnconfirmed = false;
6669
6669
  for (const k of httpServerKeys) {
6670
- const reachable = httpReachable.get(k);
6671
- if (reachable === false) return "unreachable";
6672
- if (reachable === void 0) {
6673
- anyHttpUnconfirmed = true;
6674
- } else if (!httpSessionLoaded) {
6670
+ if (!sessionLoadedServerKeys.has(k)) {
6675
6671
  anyHttpUnconfirmed = true;
6672
+ continue;
6676
6673
  }
6674
+ const reachable = httpReachable.get(k);
6675
+ if (reachable === false) return "unreachable";
6676
+ if (reachable === void 0) anyHttpUnconfirmed = true;
6677
6677
  }
6678
6678
  if (anyHttpUnconfirmed && stdioServerKeys.length === 0) return "unknown";
6679
6679
  return "bound";
@@ -6741,7 +6741,7 @@ async function runSessionToolBindProbes(integrations, options) {
6741
6741
  httpServerKeys: http,
6742
6742
  missingStdioKeys: options.missingStdioKeys,
6743
6743
  httpReachable,
6744
- httpSessionLoaded: options.httpSessionLoaded ?? false
6744
+ sessionLoadedServerKeys: options.sessionLoadedServerKeys ?? /* @__PURE__ */ new Set()
6745
6745
  });
6746
6746
  if (status === "unknown") {
6747
6747
  skipped += 1;
@@ -6792,12 +6792,6 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
6792
6792
  if (outcome.status === "down") return false;
6793
6793
  return void 0;
6794
6794
  };
6795
- let httpSessionLoaded = false;
6796
- try {
6797
- const mcpMtimeMs = statSync2(join6(projectDir, ".mcp.json")).mtimeMs;
6798
- httpSessionLoaded = opts.sessionStartedMs != null && opts.sessionStartedMs >= mcpMtimeMs;
6799
- } catch {
6800
- }
6801
6795
  return runSessionToolBindProbes(
6802
6796
  integrations.map((i) => ({
6803
6797
  id: i.id,
@@ -6817,7 +6811,7 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
6817
6811
  mcpJson,
6818
6812
  missingStdioKeys,
6819
6813
  probeHttp,
6820
- httpSessionLoaded,
6814
+ sessionLoadedServerKeys: opts.sessionLoadedServerKeys,
6821
6815
  intervalMs: opts.intervalMs,
6822
6816
  ...opts.maxPerRun !== void 0 ? { maxPerRun: opts.maxPerRun } : {}
6823
6817
  }
@@ -7587,4 +7581,4 @@ export {
7587
7581
  managerInstallSystemUnitCommand,
7588
7582
  managerUninstallSystemUnitCommand
7589
7583
  };
7590
- //# sourceMappingURL=chunk-G42GLXB6.js.map
7584
+ //# sourceMappingURL=chunk-Y4IVPWJB.js.map