@integrity-labs/agt-cli 0.28.799 → 0.28.801

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.
@@ -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