@integrity-labs/agt-cli 0.27.139 → 0.27.140

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
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-PSH4UXVY.js";
31
+ } from "../chunk-5UTHUT4E.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -4934,7 +4934,7 @@ import { execFileSync, execSync } from "child_process";
4934
4934
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4935
4935
  import chalk18 from "chalk";
4936
4936
  import ora16 from "ora";
4937
- var cliVersion = true ? "0.27.139" : "dev";
4937
+ var cliVersion = true ? "0.27.140" : "dev";
4938
4938
  async function fetchLatestVersion() {
4939
4939
  const host2 = getHost();
4940
4940
  if (!host2) return null;
@@ -5857,7 +5857,7 @@ function handleError(err) {
5857
5857
  }
5858
5858
 
5859
5859
  // src/bin/agt.ts
5860
- var cliVersion2 = true ? "0.27.139" : "dev";
5860
+ var cliVersion2 = true ? "0.27.140" : "dev";
5861
5861
  var program = new Command();
5862
5862
  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");
5863
5863
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7731,4 +7731,4 @@ export {
7731
7731
  managerInstallSystemUnitCommand,
7732
7732
  managerUninstallSystemUnitCommand
7733
7733
  };
7734
- //# sourceMappingURL=chunk-PSH4UXVY.js.map
7734
+ //# sourceMappingURL=chunk-5UTHUT4E.js.map
@@ -17,7 +17,7 @@ import {
17
17
  provisionStopHook,
18
18
  requireHost,
19
19
  safeWriteJsonAtomic
20
- } from "../chunk-PSH4UXVY.js";
20
+ } from "../chunk-5UTHUT4E.js";
21
21
  import {
22
22
  getProjectDir as getProjectDir2,
23
23
  getReadyTasks,
@@ -1138,7 +1138,12 @@ async function executeConnectivityProbe(target, deps = {}) {
1138
1138
  const descriptor = resolveConnectivityProbe({
1139
1139
  definitionId: target.definitionId,
1140
1140
  sourceType: target.sourceType,
1141
- authType: target.authType
1141
+ authType: target.authType,
1142
+ // ENG-6242: carry the toolkit's connectivity_test override so a managed
1143
+ // descriptor surfaces `probeTool`/`probeArgs` (the prescribed read-only tool)
1144
+ // — without this the hourly probe auto-picked a different tool than the Test
1145
+ // path, the false-RED that flagged every managed Linear install "unreachable".
1146
+ connectivityTest: target.connectivityTest ?? null
1142
1147
  });
1143
1148
  if (!descriptor.readOnly) {
1144
1149
  throw new Error(`Refusing non-read-only probe for ${target.definitionId}`);
@@ -1165,7 +1170,13 @@ async function executeConnectivityProbe(target, deps = {}) {
1165
1170
  if (deps.composioToolCallProbe) {
1166
1171
  const toolCall = await deps.composioToolCallProbe({
1167
1172
  serverKey: target.mcpServerKey ?? target.definitionId,
1168
- definitionId: target.definitionId
1173
+ definitionId: target.definitionId,
1174
+ // ENG-6242: thread the prescribed tool through to the live tool-call
1175
+ // leg. resolveConnectivityProbe only sets these for managed toolkits
1176
+ // with a stored override; the probe re-validates read-only and falls
1177
+ // back to auto-pick on drift, so a missing/invalid override is safe.
1178
+ toolName: descriptor.probeTool ?? null,
1179
+ toolArgs: descriptor.probeArgs ?? null
1169
1180
  });
1170
1181
  if (toolCall) outcomes.push(toolCall);
1171
1182
  }
@@ -1219,7 +1230,8 @@ async function runConnectivityProbes(integrations, options = {}) {
1219
1230
  authType: integ.auth_type ?? null,
1220
1231
  credentials: integ.credentials ?? {},
1221
1232
  cliBinary: integ.cli_binary,
1222
- mcpServerKey: integ.mcp_server_key
1233
+ mcpServerKey: integ.mcp_server_key,
1234
+ connectivityTest: integ.connectivity_test ?? null
1223
1235
  };
1224
1236
  let outcome;
1225
1237
  try {
@@ -4525,7 +4537,12 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
4525
4537
  const cfg = readMcpHttpServerConfig(projectDir, target.serverKey, probeEnv);
4526
4538
  if (!cfg) return null;
4527
4539
  if (cfg.unresolved.length > 0) return null;
4528
- return probeComposioMcpToolCall({ url: cfg.url, headers: cfg.headers });
4540
+ return probeComposioMcpToolCall({
4541
+ url: cfg.url,
4542
+ headers: cfg.headers,
4543
+ toolName: target.toolName,
4544
+ toolArgs: target.toolArgs
4545
+ });
4529
4546
  }
4530
4547
  };
4531
4548
  const intervalSec = Number(process.env.AGT_CONNECTIVITY_PROBE_INTERVAL_SECONDS) || 3600;
@@ -4544,7 +4561,9 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
4544
4561
  // (definition_id === toolkit_id, sanitised: non-alnum → '_', lowercased —
4545
4562
  // e.g. 'composio_outlook'). The executor looks this up in .mcp.json; an
4546
4563
  // unresolvable key degrades to transient_error, never a false 'down'.
4547
- mcp_server_key: i.source_type === "managed" || i.source_type === "mcp_server" ? i.definition_id.replace(/[^a-z0-9]/gi, "_").toLowerCase() : void 0
4564
+ mcp_server_key: i.source_type === "managed" || i.source_type === "mcp_server" ? i.definition_id.replace(/[^a-z0-9]/gi, "_").toLowerCase() : void 0,
4565
+ // ENG-6242: forward the prescribed connectivity-test tool to the executor.
4566
+ connectivity_test: i.connectivity_test ?? null
4548
4567
  })),
4549
4568
  { probeDeps, intervalMs: intervalSec * 1e3 }
4550
4569
  );
@@ -4738,7 +4757,7 @@ var cachedMaintenanceWindow = null;
4738
4757
  var lastVersionCheckAt = 0;
4739
4758
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
4740
4759
  var lastResponsivenessProbeAt = 0;
4741
- var agtCliVersion = true ? "0.27.139" : "dev";
4760
+ var agtCliVersion = true ? "0.27.140" : "dev";
4742
4761
  function resolveBrewPath(execFileSync4) {
4743
4762
  try {
4744
4763
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();