@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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-IRIZBER7.js";
3
+ } from "./chunk-XXIALNTU.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -244,4 +244,4 @@ export {
244
244
  peekPreviousSession,
245
245
  readDailySessionPin
246
246
  };
247
- //# sourceMappingURL=chunk-KJAY4IUW.js.map
247
+ //# sourceMappingURL=chunk-4FLMCHQB.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-IRIZBER7.js";
7
+ } from "./chunk-XXIALNTU.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-FB7WULTV.js.map
725
+ //# sourceMappingURL=chunk-DQEUE2X2.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-KJAY4IUW.js";
7
+ } from "./chunk-4FLMCHQB.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-IRIZBER7.js";
54
+ } from "./chunk-XXIALNTU.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -1161,6 +1161,14 @@ function buildOAuthRemoteMcpProxyEntry(definitionId, paths, connectionKey, toolT
1161
1161
  }
1162
1162
  };
1163
1163
  }
1164
+ function requiresRemoteMcpToolGate(definitionId, dbSpec) {
1165
+ const spec = dbSpec ?? INTEGRATION_REGISTRY.find((d) => d.id === definitionId)?.remoteMcp;
1166
+ return spec?.requireToolTiers === true;
1167
+ }
1168
+ function withheldRemoteMcpMessage(definitionId, reason) {
1169
+ const why = reason === "no_tier_table" ? "no tool tier table arrived this cycle (did the tool_definitions read fail?)" : reason === "no_gated_tool" ? "its tier table has no gated tool, so no proxy was rendered" : "this framework cannot gate remote MCPs";
1170
+ return `[provisioning] CS-1561: remote MCP '${definitionId}' WITHHELD: it requires its tool tier gate and ${why}. It gets no entry rather than an ungated one, so the agent has no ${definitionId} tools until this clears.`;
1171
+ }
1164
1172
  function buildApiKeyRemoteMcpProxyEntry(definitionId, dbSpec, paths, connectionKey, toolTiers) {
1165
1173
  if (!hasGatedTool(toolTiers))
1166
1174
  return null;
@@ -1333,6 +1341,10 @@ function buildOpencodeIntegrationServers(integrations, ctx) {
1333
1341
  }
1334
1342
  for (const integration of integrations) {
1335
1343
  const def = INTEGRATION_REGISTRY.find((d) => d.id === integration.definition_id);
1344
+ if (requiresRemoteMcpToolGate(integration.definition_id, integration.remoteMcp ?? null)) {
1345
+ console.error(withheldRemoteMcpMessage(integration.definition_id, "framework_cannot_gate"));
1346
+ continue;
1347
+ }
1336
1348
  const remote = buildRemoteMcpEntry(integration.definition_id, integration.remoteMcp ?? null);
1337
1349
  if (remote) {
1338
1350
  servers[integration.definition_id] = toOpencodeRemoteEntry(remote);
@@ -6050,6 +6062,8 @@ export {
6050
6062
  buildRemoteMcpEntry,
6051
6063
  buildLiveHeaderRemoteMcpProxyEntry,
6052
6064
  buildOAuthRemoteMcpProxyEntry,
6065
+ requiresRemoteMcpToolGate,
6066
+ withheldRemoteMcpMessage,
6053
6067
  buildApiKeyRemoteMcpProxyEntry,
6054
6068
  buildNativeMcpEntry,
6055
6069
  shellQuote,
@@ -6182,4 +6196,4 @@ export {
6182
6196
  stopAllSessionsAndWait,
6183
6197
  getProjectDir
6184
6198
  };
6185
- //# sourceMappingURL=chunk-BFQKF46D.js.map
6199
+ //# sourceMappingURL=chunk-HI4JD2K2.js.map