@integrity-labs/agt-cli 0.28.1231 → 0.28.1233

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 (32) hide show
  1. package/dist/bin/agt.js +11 -6
  2. package/dist/bin/agt.js.map +1 -1
  3. package/dist/{chunk-KJAY4IUW.js → chunk-4FLMCHQB.js} +2 -2
  4. package/dist/{chunk-FB7WULTV.js → chunk-DQEUE2X2.js} +2 -2
  5. package/dist/{chunk-BFQKF46D.js → chunk-HI4JD2K2.js} +17 -3
  6. package/dist/{chunk-BFQKF46D.js.map → chunk-HI4JD2K2.js.map} +1 -1
  7. package/dist/{chunk-YQIXA6TX.js → chunk-VGEMWYW3.js} +32 -6
  8. package/dist/chunk-VGEMWYW3.js.map +1 -0
  9. package/dist/{chunk-IRIZBER7.js → chunk-XXIALNTU.js} +213 -1
  10. package/dist/chunk-XXIALNTU.js.map +1 -0
  11. package/dist/{claude-code-updater-HUMYEBO2.js → claude-code-updater-UTFTOX3B.js} +3 -3
  12. package/dist/{claude-pair-runtime-5PYUWRH6.js → claude-pair-runtime-DI43DJ4P.js} +3 -3
  13. package/dist/lib/manager-worker.js +32 -21
  14. package/dist/lib/manager-worker.js.map +1 -1
  15. package/dist/mcp/direct-chat-channel.js +212 -0
  16. package/dist/mcp/index.js +212 -0
  17. package/dist/mcp/origami.js +212 -0
  18. package/dist/mcp/slack-channel.js +212 -0
  19. package/dist/mcp/telegram-channel.js +212 -0
  20. package/dist/{persistent-session-73LJPKT2.js → persistent-session-S57KHU34.js} +4 -4
  21. package/dist/{responsiveness-probe-QVIGL5BH.js → responsiveness-probe-TFPKYDPB.js} +4 -4
  22. package/dist/{session-auth-dead-XLWG3MJF.js → session-auth-dead-EYJAWW46.js} +3 -3
  23. package/package.json +1 -1
  24. package/dist/chunk-IRIZBER7.js.map +0 -1
  25. package/dist/chunk-YQIXA6TX.js.map +0 -1
  26. /package/dist/{chunk-KJAY4IUW.js.map → chunk-4FLMCHQB.js.map} +0 -0
  27. /package/dist/{chunk-FB7WULTV.js.map → chunk-DQEUE2X2.js.map} +0 -0
  28. /package/dist/{claude-code-updater-HUMYEBO2.js.map → claude-code-updater-UTFTOX3B.js.map} +0 -0
  29. /package/dist/{claude-pair-runtime-5PYUWRH6.js.map → claude-pair-runtime-DI43DJ4P.js.map} +0 -0
  30. /package/dist/{persistent-session-73LJPKT2.js.map → persistent-session-S57KHU34.js.map} +0 -0
  31. /package/dist/{responsiveness-probe-QVIGL5BH.js.map → responsiveness-probe-TFPKYDPB.js.map} +0 -0
  32. /package/dist/{session-auth-dead-XLWG3MJF.js.map → session-auth-dead-EYJAWW46.js.map} +0 -0
@@ -15,12 +15,14 @@ import {
15
15
  mergeEnvIntegrationsContent,
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
- shellQuote
19
- } from "./chunk-BFQKF46D.js";
18
+ requiresRemoteMcpToolGate,
19
+ shellQuote,
20
+ withheldRemoteMcpMessage
21
+ } from "./chunk-HI4JD2K2.js";
20
22
  import {
21
23
  readDailySessionPin,
22
24
  sessionTranscriptDir
23
- } from "./chunk-KJAY4IUW.js";
25
+ } from "./chunk-4FLMCHQB.js";
24
26
  import {
25
27
  classifyUnanswerablePane,
26
28
  isConsumerTermsDialogVisible,
@@ -93,7 +95,7 @@ import {
93
95
  scanConfigForLiteralSecrets,
94
96
  worseConnectivityOutcome,
95
97
  wrapScheduledTaskPrompt
96
- } from "./chunk-IRIZBER7.js";
98
+ } from "./chunk-XXIALNTU.js";
97
99
  import {
98
100
  claudeJsonPathFor,
99
101
  effectiveClaudeJsonPath,
@@ -6093,6 +6095,10 @@ function buildMcpJson(input) {
6093
6095
  mcpServers[serverKey] = tierGatedEntry;
6094
6096
  continue;
6095
6097
  }
6098
+ if (requiresRemoteMcpToolGate(integration.definition_id, integration.remoteMcp)) {
6099
+ console.error(withheldRemoteMcpMessage(integration.definition_id, integration.toolTiers == null ? "no_tier_table" : "no_gated_tool"));
6100
+ continue;
6101
+ }
6096
6102
  const entry = buildRemoteMcpEntry(integration.definition_id, integration.remoteMcp, connectionKey);
6097
6103
  if (entry) {
6098
6104
  mcpServers[serverKey] = entry;
@@ -7403,6 +7409,11 @@ ${sections}`
7403
7409
  this.writeMcpServer(codeName, serverKey, tierGatedEntry);
7404
7410
  continue;
7405
7411
  }
7412
+ if (requiresRemoteMcpToolGate(integration.definition_id, integration.remoteMcp)) {
7413
+ console.error(withheldRemoteMcpMessage(integration.definition_id, integration.toolTiers == null ? "no_tier_table" : "no_gated_tool"));
7414
+ this.removeMcpServer?.(codeName, serverKey);
7415
+ continue;
7416
+ }
7406
7417
  const entry = buildRemoteMcpEntry(integration.definition_id, integration.remoteMcp, connectionKey);
7407
7418
  if (entry) {
7408
7419
  this.writeMcpServer(codeName, serverKey, entry);
@@ -8084,7 +8095,7 @@ function exchangeFailureKind(err) {
8084
8095
  }
8085
8096
 
8086
8097
  // src/lib/api-client.ts
8087
- var agtCliVersion = true ? "0.28.1231" : "dev";
8098
+ var agtCliVersion = true ? "0.28.1233" : "dev";
8088
8099
  var lastConfigHash = null;
8089
8100
  function setConfigHash(hash) {
8090
8101
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11346,6 +11357,15 @@ async function runSessionToolBindProbes(integrations, options) {
11346
11357
  });
11347
11358
  continue;
11348
11359
  }
11360
+ if (integ.requires_tool_gate === true && options.forced !== true) {
11361
+ reports.push({
11362
+ integration_id: integ.id,
11363
+ scope: integ.scope,
11364
+ status: "missing",
11365
+ remediable: false
11366
+ });
11367
+ continue;
11368
+ }
11349
11369
  skipped += 1;
11350
11370
  skippedDetail.push({ definition_id: integ.definition_id, reason: "no-declared-server" });
11351
11371
  continue;
@@ -11979,6 +11999,9 @@ function deliveryFields(i) {
11979
11999
  }
11980
12000
  return out;
11981
12001
  }
12002
+ function toolGateField(i) {
12003
+ return i.remote_mcp?.requireToolTiers === true ? { requires_tool_gate: true } : {};
12004
+ }
11982
12005
  async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts) {
11983
12006
  if (integrations.length === 0) return null;
11984
12007
  let mcpRaw = null;
@@ -12045,6 +12068,8 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
12045
12068
  id: i.id,
12046
12069
  definition_id: i.definition_id,
12047
12070
  scope: i.scope,
12071
+ // CS-1561: a withheld gate-requiring remote MCP is reported, not skipped.
12072
+ ...toolGateField(i),
12048
12073
  last_session_tool_bind_at: i.last_session_tool_bind_at ?? null,
12049
12074
  // ENG-9114: forwarded by PRESENCE, not by value. `hasDeliverySignal` in
12050
12075
  // the runner asks "did the API speak about delivery at all?", and spreading
@@ -12075,6 +12100,7 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
12075
12100
  sessionLoadedServerKeys: opts.sessionLoadedServerKeys,
12076
12101
  sessionStartedMs: opts.sessionStartedMs,
12077
12102
  intervalMs: opts.intervalMs,
12103
+ ...opts.forced ? { forced: true } : {},
12078
12104
  ...opts.maxPerRun !== void 0 ? { maxPerRun: opts.maxPerRun } : {}
12079
12105
  }
12080
12106
  );
@@ -13724,4 +13750,4 @@ export {
13724
13750
  managerInstallSystemUnitCommand,
13725
13751
  managerUninstallSystemUnitCommand
13726
13752
  };
13727
- //# sourceMappingURL=chunk-YQIXA6TX.js.map
13753
+ //# sourceMappingURL=chunk-VGEMWYW3.js.map