@integrity-labs/agt-cli 0.28.1216 → 0.28.1217

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.
Files changed (29) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-B5ZQQ7Z2.js → chunk-4EY3CUZB.js} +31 -1
  3. package/dist/chunk-4EY3CUZB.js.map +1 -0
  4. package/dist/{chunk-QHO44YUB.js → chunk-DYEJT36T.js} +2 -2
  5. package/dist/{chunk-QCQYDXYP.js → chunk-G4TOCXOT.js} +3 -3
  6. package/dist/{chunk-U63NF4FC.js → chunk-IGNZSNKB.js} +2 -2
  7. package/dist/{chunk-KZMARLWR.js → chunk-WIWPIZFN.js} +37 -12
  8. package/dist/{chunk-KZMARLWR.js.map → chunk-WIWPIZFN.js.map} +1 -1
  9. package/dist/{claude-code-updater-FTIWTIDK.js → claude-code-updater-WJIPTVFL.js} +3 -3
  10. package/dist/{claude-pair-runtime-M3QT5MWP.js → claude-pair-runtime-P3EO7NO3.js} +3 -3
  11. package/dist/lib/manager-worker.js +19 -19
  12. package/dist/mcp/direct-chat-channel.js +34 -18
  13. package/dist/mcp/index.js +34 -18
  14. package/dist/mcp/origami.js +34 -18
  15. package/dist/mcp/slack-channel.js +34 -18
  16. package/dist/mcp/telegram-channel.js +34 -18
  17. package/dist/{persistent-session-WEQTZT4Z.js → persistent-session-3QL5YBCS.js} +4 -4
  18. package/dist/{responsiveness-probe-LMBZ5JOK.js → responsiveness-probe-BCVBNGYY.js} +4 -4
  19. package/dist/{session-auth-dead-NRVMU7CE.js → session-auth-dead-YJH56AWH.js} +3 -3
  20. package/package.json +1 -1
  21. package/dist/chunk-B5ZQQ7Z2.js.map +0 -1
  22. /package/dist/{chunk-QHO44YUB.js.map → chunk-DYEJT36T.js.map} +0 -0
  23. /package/dist/{chunk-QCQYDXYP.js.map → chunk-G4TOCXOT.js.map} +0 -0
  24. /package/dist/{chunk-U63NF4FC.js.map → chunk-IGNZSNKB.js.map} +0 -0
  25. /package/dist/{claude-code-updater-FTIWTIDK.js.map → claude-code-updater-WJIPTVFL.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-M3QT5MWP.js.map → claude-pair-runtime-P3EO7NO3.js.map} +0 -0
  27. /package/dist/{persistent-session-WEQTZT4Z.js.map → persistent-session-3QL5YBCS.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-LMBZ5JOK.js.map → responsiveness-probe-BCVBNGYY.js.map} +0 -0
  29. /package/dist/{session-auth-dead-NRVMU7CE.js.map → session-auth-dead-YJH56AWH.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-B5ZQQ7Z2.js";
7
+ } from "./chunk-4EY3CUZB.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-QHO44YUB.js.map
725
+ //# sourceMappingURL=chunk-DYEJT36T.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-U63NF4FC.js";
7
+ } from "./chunk-IGNZSNKB.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-B5ZQQ7Z2.js";
54
+ } from "./chunk-4EY3CUZB.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6173,4 +6173,4 @@ export {
6173
6173
  stopAllSessionsAndWait,
6174
6174
  getProjectDir
6175
6175
  };
6176
- //# sourceMappingURL=chunk-QCQYDXYP.js.map
6176
+ //# sourceMappingURL=chunk-G4TOCXOT.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-B5ZQQ7Z2.js";
3
+ } from "./chunk-4EY3CUZB.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -240,4 +240,4 @@ export {
240
240
  peekPreviousSession,
241
241
  readDailySessionPin
242
242
  };
243
- //# sourceMappingURL=chunk-U63NF4FC.js.map
243
+ //# sourceMappingURL=chunk-IGNZSNKB.js.map
@@ -16,11 +16,11 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-QCQYDXYP.js";
19
+ } from "./chunk-G4TOCXOT.js";
20
20
  import {
21
21
  readDailySessionPin,
22
22
  sessionTranscriptDir
23
- } from "./chunk-U63NF4FC.js";
23
+ } from "./chunk-IGNZSNKB.js";
24
24
  import {
25
25
  classifyUnanswerablePane,
26
26
  isConsumerTermsDialogVisible,
@@ -68,6 +68,7 @@ import {
68
68
  handshakeToolsListOutcome,
69
69
  isControlPlaneOnlyConfigKey,
70
70
  isDefaultRemoteMcpConnection,
71
+ isProbeRestrictedByProviderTerms,
71
72
  isSessionToolBindCandidate,
72
73
  isSlackInboundTransportDown,
73
74
  listFlagDefinitions,
@@ -92,7 +93,7 @@ import {
92
93
  scanConfigForLiteralSecrets,
93
94
  worseConnectivityOutcome,
94
95
  wrapScheduledTaskPrompt
95
- } from "./chunk-B5ZQQ7Z2.js";
96
+ } from "./chunk-4EY3CUZB.js";
96
97
  import {
97
98
  claudeJsonPathFor,
98
99
  effectiveClaudeJsonPath,
@@ -8083,7 +8084,7 @@ function exchangeFailureKind(err) {
8083
8084
  }
8084
8085
 
8085
8086
  // src/lib/api-client.ts
8086
- var agtCliVersion = true ? "0.28.1216" : "dev";
8087
+ var agtCliVersion = true ? "0.28.1217" : "dev";
8087
8088
  var lastConfigHash = null;
8088
8089
  function setConfigHash(hash) {
8089
8090
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11928,6 +11929,33 @@ import { execFileSync as syncExecFile } from "child_process";
11928
11929
  import { readFileSync as readFileSync9 } from "fs";
11929
11930
  import { join as join9 } from "path";
11930
11931
  import { dirname as dirname5 } from "path";
11932
+ function termsRestrictedServerKeys(integrations, isRestricted = isProbeRestrictedByProviderTerms) {
11933
+ const keys = /* @__PURE__ */ new Set();
11934
+ for (const i of integrations) {
11935
+ if (!isRestricted(i.definition_id)) continue;
11936
+ keys.add(i.definition_id);
11937
+ keys.add(sanitizeServerKey(i.definition_id));
11938
+ const derived = deriveMcpServerKey({
11939
+ definitionId: i.definition_id,
11940
+ sourceType: i.source_type ?? null,
11941
+ authType: i.auth_type,
11942
+ connectivityTest: i.connectivity_test ?? null,
11943
+ connectionKey: i.connection_key ?? null
11944
+ });
11945
+ if (typeof derived === "string" && derived.length > 0) keys.add(derived);
11946
+ }
11947
+ return keys;
11948
+ }
11949
+ function makeProbeHttp(mcpProbe, restrictedKeys) {
11950
+ return async (serverKey) => {
11951
+ if (restrictedKeys.has(serverKey)) return void 0;
11952
+ if (!mcpProbe) return void 0;
11953
+ const outcome = await mcpProbe({ serverKey, definitionId: serverKey });
11954
+ if (outcome.status === "ok") return true;
11955
+ if (outcome.status === "down") return false;
11956
+ return void 0;
11957
+ };
11958
+ }
11931
11959
  function deliveryFields(i) {
11932
11960
  const keys = ["source_type", "provider", "mcp_command", "mcp_url", "cli_binary", "cli_package"];
11933
11961
  const out = {};
@@ -11993,13 +12021,10 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
11993
12021
  const anyStdioServerLive = declaredCommandKeys.length === 0 || declaredCommandKeys.some((key) => !missingStdioKeys.has(key));
11994
12022
  const probeEnv = buildProbeEnv(projectDir, agent.agent_id);
11995
12023
  const probeDeps = buildConnectivityProbeDeps(projectDir, probeEnv);
11996
- const probeHttp = async (serverKey) => {
11997
- if (!probeDeps.mcpProbe) return void 0;
11998
- const outcome = await probeDeps.mcpProbe({ serverKey, definitionId: serverKey });
11999
- if (outcome.status === "ok") return true;
12000
- if (outcome.status === "down") return false;
12001
- return void 0;
12002
- };
12024
+ const probeHttp = makeProbeHttp(
12025
+ probeDeps.mcpProbe,
12026
+ termsRestrictedServerKeys(integrations)
12027
+ );
12003
12028
  return runSessionToolBindProbes(
12004
12029
  integrations.map((i) => ({
12005
12030
  id: i.id,
@@ -13684,4 +13709,4 @@ export {
13684
13709
  managerInstallSystemUnitCommand,
13685
13710
  managerUninstallSystemUnitCommand
13686
13711
  };
13687
- //# sourceMappingURL=chunk-KZMARLWR.js.map
13712
+ //# sourceMappingURL=chunk-WIWPIZFN.js.map