@integrity-labs/agt-cli 0.28.308 → 0.28.310

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-XPT5NDBD.js";
41
+ } from "../chunk-J7PAEPOU.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-QVYGYEBX.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.308" : "dev";
4829
+ var cliVersion = true ? "0.28.310" : "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.308" : "dev";
5846
+ var cliVersion2 = true ? "0.28.310" : "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) => {
@@ -18,7 +18,7 @@ import {
18
18
  resolveConnectivityProbe,
19
19
  worseConnectivityOutcome,
20
20
  wrapScheduledTaskPrompt
21
- } from "./chunk-QVYGYEBX.js";
21
+ } from "./chunk-KJE5Y4GF.js";
22
22
  import {
23
23
  parsePsRows
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -5900,7 +5900,7 @@ function requireHost() {
5900
5900
  }
5901
5901
 
5902
5902
  // src/lib/api-client.ts
5903
- var agtCliVersion = true ? "0.28.308" : "dev";
5903
+ var agtCliVersion = true ? "0.28.310" : "dev";
5904
5904
  var lastConfigHash = null;
5905
5905
  function setConfigHash(hash) {
5906
5906
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8199,4 +8199,4 @@ export {
8199
8199
  managerInstallSystemUnitCommand,
8200
8200
  managerUninstallSystemUnitCommand
8201
8201
  };
8202
- //# sourceMappingURL=chunk-XPT5NDBD.js.map
8202
+ //# sourceMappingURL=chunk-J7PAEPOU.js.map
@@ -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 };
@@ -7361,15 +7382,12 @@ var FLAG_REGISTRY = [
7361
7382
  // spend control, so mutations require explicit confirmation.
7362
7383
  sensitive: true
7363
7384
  },
7364
- {
7365
- key: "team-scoped-visibility",
7366
- description: "Restrict team-scoped reads to direct team members (ENG-7122). By default the API resolves X-Team-Slug for any org member (org-membership fallback), so a plain org member can read a sibling team they are not on (agents, kanban, run-derived spend) because the service-role API filters only by the org-resolved team_id. When ON for an org, the org-membership fallback is dropped for plain org member/viewer (they may only resolve teams they are a direct team_members of), while org owner/admin keep cross-team reach and the admin-onboarding bypass is preserved. The GET /teams listing is narrowed the same way. Boolean gate; default off (current behaviour).",
7367
- flagType: "boolean",
7368
- defaultValue: false,
7369
- // Tightening control: turning this flag OFF *relaxes* a visibility restriction,
7370
- // so mutations require explicit confirmation per ADR-0022 §4.
7371
- sensitive: true
7372
- },
7385
+ // ENG-7754: 'team-scoped-visibility' (ENG-7122) archived - the restriction it
7386
+ // gated is now the unconditional default for every org (a plain org
7387
+ // member/viewer only sees/resolves teams they directly belong to; owner/admin
7388
+ // keep cross-team reach). Enforced in code (routes/teams.ts, middleware/auth.ts,
7389
+ // lib/team-resolver.ts), no longer flag-gated. Override rows dropped by
7390
+ // migration 20260714000005. flag-archive-allow: team-scoped-visibility superseded by unconditional default (ENG-7754)
7373
7391
  {
7374
7392
  key: "channel-busy-ack",
7375
7393
  description: "Busy-but-alive ack notices when an agent is mid-task (ENG-6180). Boolean gate; ships dark.",
@@ -9816,4 +9834,4 @@ export {
9816
9834
  stopAllSessionsAndWait,
9817
9835
  getProjectDir
9818
9836
  };
9819
- //# sourceMappingURL=chunk-QVYGYEBX.js.map
9837
+ //# sourceMappingURL=chunk-KJE5Y4GF.js.map