@integrity-labs/agt-cli 0.28.1231 → 0.28.1232
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.
- package/dist/bin/agt.js +11 -6
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-BFQKF46D.js → chunk-3CUCO6BU.js} +17 -3
- package/dist/{chunk-BFQKF46D.js.map → chunk-3CUCO6BU.js.map} +1 -1
- package/dist/{chunk-KJAY4IUW.js → chunk-BDXOVKWJ.js} +2 -2
- package/dist/{chunk-YQIXA6TX.js → chunk-LS27F6QF.js} +32 -6
- package/dist/chunk-LS27F6QF.js.map +1 -0
- package/dist/{chunk-FB7WULTV.js → chunk-QCBL7EBD.js} +2 -2
- package/dist/{chunk-IRIZBER7.js → chunk-XBADGTJP.js} +1 -1
- package/dist/chunk-XBADGTJP.js.map +1 -0
- package/dist/{claude-code-updater-HUMYEBO2.js → claude-code-updater-R7QSZDGD.js} +3 -3
- package/dist/{claude-pair-runtime-5PYUWRH6.js → claude-pair-runtime-BH7XN36C.js} +3 -3
- package/dist/lib/manager-worker.js +32 -21
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-73LJPKT2.js → persistent-session-LQ4GJ264.js} +4 -4
- package/dist/{responsiveness-probe-QVIGL5BH.js → responsiveness-probe-NN7XEPJM.js} +4 -4
- package/dist/{session-auth-dead-XLWG3MJF.js → session-auth-dead-ESB735FG.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-IRIZBER7.js.map +0 -1
- package/dist/chunk-YQIXA6TX.js.map +0 -1
- /package/dist/{chunk-KJAY4IUW.js.map → chunk-BDXOVKWJ.js.map} +0 -0
- /package/dist/{chunk-FB7WULTV.js.map → chunk-QCBL7EBD.js.map} +0 -0
- /package/dist/{claude-code-updater-HUMYEBO2.js.map → claude-code-updater-R7QSZDGD.js.map} +0 -0
- /package/dist/{claude-pair-runtime-5PYUWRH6.js.map → claude-pair-runtime-BH7XN36C.js.map} +0 -0
- /package/dist/{persistent-session-73LJPKT2.js.map → persistent-session-LQ4GJ264.js.map} +0 -0
- /package/dist/{responsiveness-probe-QVIGL5BH.js.map → responsiveness-probe-NN7XEPJM.js.map} +0 -0
- /package/dist/{session-auth-dead-XLWG3MJF.js.map → session-auth-dead-ESB735FG.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BDXOVKWJ.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-
|
|
54
|
+
} from "./chunk-XBADGTJP.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-
|
|
6199
|
+
//# sourceMappingURL=chunk-3CUCO6BU.js.map
|