@integrity-labs/agt-cli 0.28.309 → 0.28.311

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
@@ -38,7 +38,7 @@ import {
38
38
  success,
39
39
  table,
40
40
  warn
41
- } from "../chunk-7QYIMU2Y.js";
41
+ } from "../chunk-OSVV4VFM.js";
42
42
  import {
43
43
  CHANNEL_REGISTRY,
44
44
  DEFAULT_FRAMEWORK,
@@ -67,7 +67,7 @@ import {
67
67
  renderTemplate,
68
68
  resolveChannels,
69
69
  serializeManifestForSlackCli
70
- } from "../chunk-62LAROZ4.js";
70
+ } from "../chunk-KJE5Y4GF.js";
71
71
  import "../chunk-XWVM4KPK.js";
72
72
 
73
73
  // src/bin/agt.ts
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
4826
4826
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4827
4827
  import chalk18 from "chalk";
4828
4828
  import ora16 from "ora";
4829
- var cliVersion = true ? "0.28.309" : "dev";
4829
+ var cliVersion = true ? "0.28.311" : "dev";
4830
4830
  async function fetchLatestVersion() {
4831
4831
  const host2 = getHost();
4832
4832
  if (!host2) return null;
@@ -5843,7 +5843,7 @@ function handleError(err) {
5843
5843
  }
5844
5844
 
5845
5845
  // src/bin/agt.ts
5846
- var cliVersion2 = true ? "0.28.309" : "dev";
5846
+ var cliVersion2 = true ? "0.28.311" : "dev";
5847
5847
  var program = new Command();
5848
5848
  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");
5849
5849
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -4494,6 +4494,14 @@ var UPSTREAM_AUTH_ERROR_PATTERNS = [
4494
4494
  "access denied",
4495
4495
  "forbidden"
4496
4496
  ];
4497
+ var SITE_RESOLUTION_ERROR_PATTERNS = [
4498
+ "dns resolution failed",
4499
+ "getaddrinfo",
4500
+ "enotfound",
4501
+ "could not resolve host",
4502
+ "name resolution",
4503
+ "name not resolved"
4504
+ ];
4497
4505
  function isReadonlyToolDescriptor(t) {
4498
4506
  if (!t?.name)
4499
4507
  return false;
@@ -4540,11 +4548,17 @@ function isUpstreamAuthError(message) {
4540
4548
  function isComposioFailureEnvelope(text) {
4541
4549
  return /["'\\]*(successful|successfull)["'\\\s]*:\s*false\b/i.test(text);
4542
4550
  }
4551
+ function isSiteResolutionError(message) {
4552
+ const m = message.toLowerCase();
4553
+ return SITE_RESOLUTION_ERROR_PATTERNS.some((p2) => m.includes(p2));
4554
+ }
4543
4555
  function classifyToolCallFailure(text) {
4544
4556
  if (isAccountResolutionError(text))
4545
4557
  return "account";
4546
4558
  if (isUpstreamAuthError(text))
4547
4559
  return "auth";
4560
+ if (isSiteResolutionError(text))
4561
+ return "site";
4548
4562
  return "benign";
4549
4563
  }
4550
4564
  async function parseRpc2(res, expectedId) {
@@ -4673,6 +4687,13 @@ async function probeComposioMcpToolCall(config, fetchImpl = fetch) {
4673
4687
  details: { ...baseDetails, reason: "upstream_auth_rejected" }
4674
4688
  };
4675
4689
  }
4690
+ if (kind === "site") {
4691
+ return {
4692
+ status: "down",
4693
+ message: `Live tool call '${toolName}' couldn't reach the provider's site - the connection has no valid site URL (reconnect and make sure a site/workspace is granted): ${snippet}`,
4694
+ details: { ...baseDetails, reason: "site_unresolved" }
4695
+ };
4696
+ }
4676
4697
  return { status: "ok", message: `Live tool call '${toolName}' resolved the account (tool error: ${snippet})`, details: baseDetails };
4677
4698
  }
4678
4699
  return { status: "ok", message: `Live tool call '${toolName}' resolved the connected account`, details: baseDetails };
@@ -9813,4 +9834,4 @@ export {
9813
9834
  stopAllSessionsAndWait,
9814
9835
  getProjectDir
9815
9836
  };
9816
- //# sourceMappingURL=chunk-62LAROZ4.js.map
9837
+ //# sourceMappingURL=chunk-KJE5Y4GF.js.map