@integrity-labs/agt-cli 0.28.1216 → 0.28.1218

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-KZMARLWR.js → chunk-2TSVU3OU.js} +37 -12
  3. package/dist/{chunk-KZMARLWR.js.map → chunk-2TSVU3OU.js.map} +1 -1
  4. package/dist/{chunk-QCQYDXYP.js → chunk-F5R622EX.js} +3 -3
  5. package/dist/{chunk-U63NF4FC.js → chunk-HAQXH2J4.js} +2 -2
  6. package/dist/{chunk-B5ZQQ7Z2.js → chunk-MJXBNSJY.js} +31 -1
  7. package/dist/chunk-MJXBNSJY.js.map +1 -0
  8. package/dist/{chunk-QHO44YUB.js → chunk-QI5C2VCI.js} +2 -2
  9. package/dist/{claude-code-updater-FTIWTIDK.js → claude-code-updater-XZTIAQQ3.js} +3 -3
  10. package/dist/{claude-pair-runtime-M3QT5MWP.js → claude-pair-runtime-N7TZVTF7.js} +3 -3
  11. package/dist/lib/manager-worker.js +19 -19
  12. package/dist/mcp/direct-chat-channel.js +358 -21
  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-NQMAJQF2.js} +4 -4
  18. package/dist/{responsiveness-probe-LMBZ5JOK.js → responsiveness-probe-JGMZCQCI.js} +4 -4
  19. package/dist/{session-auth-dead-NRVMU7CE.js → session-auth-dead-DPMMX7QL.js} +3 -3
  20. package/package.json +1 -1
  21. package/dist/chunk-B5ZQQ7Z2.js.map +0 -1
  22. /package/dist/{chunk-QCQYDXYP.js.map → chunk-F5R622EX.js.map} +0 -0
  23. /package/dist/{chunk-U63NF4FC.js.map → chunk-HAQXH2J4.js.map} +0 -0
  24. /package/dist/{chunk-QHO44YUB.js.map → chunk-QI5C2VCI.js.map} +0 -0
  25. /package/dist/{claude-code-updater-FTIWTIDK.js.map → claude-code-updater-XZTIAQQ3.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-M3QT5MWP.js.map → claude-pair-runtime-N7TZVTF7.js.map} +0 -0
  27. /package/dist/{persistent-session-WEQTZT4Z.js.map → persistent-session-NQMAJQF2.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-LMBZ5JOK.js.map → responsiveness-probe-JGMZCQCI.js.map} +0 -0
  29. /package/dist/{session-auth-dead-NRVMU7CE.js.map → session-auth-dead-DPMMX7QL.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,17 +40,17 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-KZMARLWR.js";
43
+ } from "../chunk-2TSVU3OU.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-QCQYDXYP.js";
48
+ } from "../chunk-F5R622EX.js";
49
49
  import {
50
50
  markDailySessionSpawn,
51
51
  sessionFileExists,
52
52
  sessionTranscriptDir
53
- } from "../chunk-U63NF4FC.js";
53
+ } from "../chunk-HAQXH2J4.js";
54
54
  import "../chunk-HYQ7VOC3.js";
55
55
  import "../chunk-6HBXEJHO.js";
56
56
  import "../chunk-XWVM4KPK.js";
@@ -83,7 +83,7 @@ import {
83
83
  requiredMcpWildcard,
84
84
  resolveChannels,
85
85
  serializeManifestForSlackCli
86
- } from "../chunk-B5ZQQ7Z2.js";
86
+ } from "../chunk-MJXBNSJY.js";
87
87
  import "../chunk-AIUIMEUS.js";
88
88
  import "../chunk-DGUM43GV.js";
89
89
 
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
5200
5200
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
5201
5201
  import chalk17 from "chalk";
5202
5202
  import ora15 from "ora";
5203
- var cliVersion = true ? "0.28.1216" : "dev";
5203
+ var cliVersion = true ? "0.28.1218" : "dev";
5204
5204
  async function fetchLatestVersion() {
5205
5205
  const host2 = getHost();
5206
5206
  if (!host2) return null;
@@ -6460,7 +6460,7 @@ function handleError(err) {
6460
6460
  }
6461
6461
 
6462
6462
  // src/bin/agt.ts
6463
- var cliVersion2 = true ? "0.28.1216" : "dev";
6463
+ var cliVersion2 = true ? "0.28.1218" : "dev";
6464
6464
  var program = new Command();
6465
6465
  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");
6466
6466
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -16,11 +16,11 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-QCQYDXYP.js";
19
+ } from "./chunk-F5R622EX.js";
20
20
  import {
21
21
  readDailySessionPin,
22
22
  sessionTranscriptDir
23
- } from "./chunk-U63NF4FC.js";
23
+ } from "./chunk-HAQXH2J4.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-MJXBNSJY.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.1218" : "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-2TSVU3OU.js.map