@integrity-labs/agt-cli 0.28.287 → 0.28.289

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-GAPJUQFT.js";
21
+ } from "./chunk-GUCYHTCJ.js";
22
22
  import {
23
23
  parsePsRows
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -5882,7 +5882,7 @@ function requireHost() {
5882
5882
  }
5883
5883
 
5884
5884
  // src/lib/api-client.ts
5885
- var agtCliVersion = true ? "0.28.287" : "dev";
5885
+ var agtCliVersion = true ? "0.28.289" : "dev";
5886
5886
  var lastConfigHash = null;
5887
5887
  function setConfigHash(hash) {
5888
5888
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -7063,7 +7063,9 @@ function deriveMcpServerKey(input) {
7063
7063
  connectivityTest: input.connectivityTest ?? null
7064
7064
  }).kind;
7065
7065
  if (kind !== "mcp_tools_list" && kind !== "managed_composite") return void 0;
7066
- return input.definitionId.replace(/[^a-z0-9]/gi, "_").toLowerCase();
7066
+ const base = input.definitionId.replace(/[^a-z0-9]/gi, "_").toLowerCase();
7067
+ const key = input.connectionKey;
7068
+ return !key || key === "default" ? base : `${base}-${key}`;
7067
7069
  }
7068
7070
  function buildProbeEnv(projectDir) {
7069
7071
  const probeEnv = { ...process.env };
@@ -7124,8 +7126,7 @@ function buildConnectivityProbeDeps(projectDir, probeEnv) {
7124
7126
  // queries with. Inputs come from the agent's OWN wired MCP server: the
7125
7127
  // `x-api-key` header and the `user_id` query param (the agent already
7126
7128
  // authenticates with these), plus the recorded connected_account_id.
7127
- composioProbe: async (definitionId, credentials) => {
7128
- const serverKey = definitionId.replace(/[^a-z0-9]/gi, "_").toLowerCase();
7129
+ composioProbe: async (serverKey, credentials) => {
7129
7130
  const cfg = readMcpHttpServerConfig(projectDir, serverKey, probeEnv);
7130
7131
  if (!cfg) {
7131
7132
  return { status: "transient_error", message: `MCP server '${serverKey}' not resolvable from .mcp.json` };
@@ -7375,7 +7376,9 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
7375
7376
  definitionId: i.definition_id,
7376
7377
  sourceType: i.source_type ?? null,
7377
7378
  authType: i.auth_type,
7378
- connectivityTest: i.connectivity_test ?? null
7379
+ connectivityTest: i.connectivity_test ?? null,
7380
+ // ENG-7543: bind-probe this connection's own server (default fleet: 'default').
7381
+ connectionKey: i.connection_key ?? null
7379
7382
  })
7380
7383
  })),
7381
7384
  {
@@ -8040,7 +8043,7 @@ async function executeConnectivityProbe(target, deps = {}) {
8040
8043
  return probeHttpProvider(target.definitionId, target.credentials, deps.fetchImpl ?? fetch);
8041
8044
  case "composio_account":
8042
8045
  if (!deps.composioProbe) return null;
8043
- return deps.composioProbe(target.definitionId, target.credentials);
8046
+ return deps.composioProbe(target.mcpServerKey ?? target.definitionId, target.credentials);
8044
8047
  case "managed_composite": {
8045
8048
  const outcomes = [];
8046
8049
  if (deps.mcpProbe) {
@@ -8052,7 +8055,7 @@ async function executeConnectivityProbe(target, deps = {}) {
8052
8055
  );
8053
8056
  }
8054
8057
  if (deps.composioProbe) {
8055
- outcomes.push(await deps.composioProbe(target.definitionId, target.credentials));
8058
+ outcomes.push(await deps.composioProbe(target.mcpServerKey ?? target.definitionId, target.credentials));
8056
8059
  }
8057
8060
  if (deps.composioToolCallProbe) {
8058
8061
  const toolCall = await deps.composioToolCallProbe({
@@ -8162,4 +8165,4 @@ export {
8162
8165
  managerInstallSystemUnitCommand,
8163
8166
  managerUninstallSystemUnitCommand
8164
8167
  };
8165
- //# sourceMappingURL=chunk-5KMXIPB5.js.map
8168
+ //# sourceMappingURL=chunk-DIHZ2LMQ.js.map