@integrity-labs/agt-cli 0.28.799 → 0.28.800

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
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-BPAGPPAN.js";
43
+ } from "../chunk-BHF5IROA.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-M3IVSY6S.js";
48
+ } from "../chunk-6DSTKWCZ.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-XEPLW5LY.js";
82
+ } from "../chunk-MJ3YHZSR.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.799" : "dev";
5470
+ var cliVersion = true ? "0.28.800" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.799" : "dev";
6661
+ var cliVersion2 = true ? "0.28.800" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -18,7 +18,7 @@ import {
18
18
  rotateDailySession,
19
19
  sessionFileExists,
20
20
  todayLocalIso
21
- } from "./chunk-XEPLW5LY.js";
21
+ } from "./chunk-MJ3YHZSR.js";
22
22
  import {
23
23
  reapOrphanChannelMcps
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -5166,4 +5166,4 @@ export {
5166
5166
  stopAllSessionsAndWait,
5167
5167
  getProjectDir
5168
5168
  };
5169
- //# sourceMappingURL=chunk-M3IVSY6S.js.map
5169
+ //# sourceMappingURL=chunk-6DSTKWCZ.js.map
@@ -14,7 +14,7 @@ import {
14
14
  parseEnvFileEntries,
15
15
  parseEnvIntegrations,
16
16
  shellQuote
17
- } from "./chunk-M3IVSY6S.js";
17
+ } from "./chunk-6DSTKWCZ.js";
18
18
  import {
19
19
  BIND_FAILURE_QUARANTINE_THRESHOLD,
20
20
  INTEGRATIONS_SECTION_END,
@@ -69,7 +69,7 @@ import {
69
69
  sessionTranscriptDir,
70
70
  worseConnectivityOutcome,
71
71
  wrapScheduledTaskPrompt
72
- } from "./chunk-XEPLW5LY.js";
72
+ } from "./chunk-MJ3YHZSR.js";
73
73
  import {
74
74
  parsePsRows
75
75
  } from "./chunk-XWVM4KPK.js";
@@ -6521,7 +6521,7 @@ function exchangeFailureKind(err) {
6521
6521
  }
6522
6522
 
6523
6523
  // src/lib/api-client.ts
6524
- var agtCliVersion = true ? "0.28.799" : "dev";
6524
+ var agtCliVersion = true ? "0.28.800" : "dev";
6525
6525
  var lastConfigHash = null;
6526
6526
  function setConfigHash(hash) {
6527
6527
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10765,4 +10765,4 @@ export {
10765
10765
  managerInstallSystemUnitCommand,
10766
10766
  managerUninstallSystemUnitCommand
10767
10767
  };
10768
- //# sourceMappingURL=chunk-BPAGPPAN.js.map
10768
+ //# sourceMappingURL=chunk-BHF5IROA.js.map
@@ -10292,6 +10292,19 @@ async function probeMcpHttp(config, fetchImpl = fetch) {
10292
10292
 
10293
10293
  // ../../packages/core/dist/integrations/composio-fetch.js
10294
10294
  var COMPOSIO_API_BASE = "https://backend.composio.dev";
10295
+ var transportResolver = null;
10296
+ async function getComposioTransport() {
10297
+ if (!transportResolver)
10298
+ return null;
10299
+ try {
10300
+ return await transportResolver();
10301
+ } catch (err) {
10302
+ console.error("[composio] transport resolver failed; using direct egress", {
10303
+ error: err instanceof Error ? err.message : String(err)
10304
+ });
10305
+ return null;
10306
+ }
10307
+ }
10295
10308
 
10296
10309
  // ../../packages/core/dist/integrations/composio-linkage.js
10297
10310
  function assessAuthConfigLinkage(input) {
@@ -10394,7 +10407,8 @@ async function readBoundedBody(res, controller) {
10394
10407
  }
10395
10408
  return new TextDecoder().decode(merged);
10396
10409
  }
10397
- async function probeComposioAccount(params, fetchImpl = fetch) {
10410
+ async function probeComposioAccount(params, fetchImpl) {
10411
+ const impl = fetchImpl ?? await getComposioTransport() ?? fetch;
10398
10412
  const { connectedAccountId, apiKey, expectedUserId } = params;
10399
10413
  const base = params.apiBase ?? COMPOSIO_API_BASE;
10400
10414
  if (!connectedAccountId) {
@@ -10411,7 +10425,7 @@ async function probeComposioAccount(params, fetchImpl = fetch) {
10411
10425
  }
10412
10426
  let res;
10413
10427
  try {
10414
- res = await timedFetch(fetchImpl, `${base}/api/v3/connected_accounts/${encodeURIComponent(connectedAccountId)}`, { headers: { "x-api-key": apiKey } });
10428
+ res = await timedFetch(impl, `${base}/api/v3/connected_accounts/${encodeURIComponent(connectedAccountId)}`, { headers: { "x-api-key": apiKey } });
10415
10429
  } catch (err) {
10416
10430
  const isAbort = err?.name === "AbortError";
10417
10431
  return {
@@ -10480,7 +10494,7 @@ async function probeComposioAccount(params, fetchImpl = fetch) {
10480
10494
  }
10481
10495
  const accountAuthConfigId = data.auth_config_id ?? data.auth_config?.id;
10482
10496
  if (params.serverId) {
10483
- const serverAuthConfigIds = await fetchServerAuthConfigIds(fetchImpl, base, params.serverId, apiKey);
10497
+ const serverAuthConfigIds = await fetchServerAuthConfigIds(impl, base, params.serverId, apiKey);
10484
10498
  const linkage = assessAuthConfigLinkage({
10485
10499
  accountAuthConfigId,
10486
10500
  serverAuthConfigIds,
@@ -13630,4 +13644,4 @@ export {
13630
13644
  peekCurrentSession,
13631
13645
  readDailySessionPin
13632
13646
  };
13633
- //# sourceMappingURL=chunk-XEPLW5LY.js.map
13647
+ //# sourceMappingURL=chunk-MJ3YHZSR.js.map