@integrity-labs/agt-cli 0.28.1253 → 0.28.1254
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/{api-client-5ZXNFF4W.js → api-client-EW7NBMWI.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-233HXJ2D.js → chunk-AZOT5URF.js} +2 -2
- package/dist/{chunk-UHT6L77A.js → chunk-EWD3K6YD.js} +40 -3
- package/dist/{chunk-UHT6L77A.js.map → chunk-EWD3K6YD.js.map} +1 -1
- package/dist/{chunk-2HF77X4C.js → chunk-FD3GWWVL.js} +3 -3
- package/dist/{chunk-UBGHZ2O2.js → chunk-SEXB6LTM.js} +194 -9
- package/dist/chunk-SEXB6LTM.js.map +1 -0
- package/dist/{chunk-CMLBFY5C.js → chunk-ZDON4IXL.js} +2 -2
- package/dist/{chunk-GRTMENH5.js → chunk-ZKLOPCWS.js} +20 -9
- package/dist/{chunk-GRTMENH5.js.map → chunk-ZKLOPCWS.js.map} +1 -1
- package/dist/{claude-code-updater-EKABTDXO.js → claude-code-updater-CHEL6LOF.js} +3 -3
- package/dist/{claude-pair-runtime-ZA24UQ7V.js → claude-pair-runtime-AGJH54AR.js} +3 -3
- package/dist/lib/manager-worker.js +50 -33
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +33 -2
- package/dist/mcp/index.js +33 -2
- package/dist/mcp/origami.js +33 -2
- package/dist/mcp/remote-oauth-proxy.js +142 -5
- package/dist/mcp/slack-channel.js +33 -2
- package/dist/mcp/telegram-channel.js +33 -2
- package/dist/{persistent-session-HXK2Z6GH.js → persistent-session-HQPQPNPK.js} +4 -4
- package/dist/{responsiveness-probe-TPKISRGQ.js → responsiveness-probe-6GNSPLD2.js} +4 -4
- package/dist/{session-auth-dead-KMB35KRB.js → session-auth-dead-4Z24MU6C.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-UBGHZ2O2.js.map +0 -1
- /package/dist/{api-client-5ZXNFF4W.js.map → api-client-EW7NBMWI.js.map} +0 -0
- /package/dist/{chunk-233HXJ2D.js.map → chunk-AZOT5URF.js.map} +0 -0
- /package/dist/{chunk-2HF77X4C.js.map → chunk-FD3GWWVL.js.map} +0 -0
- /package/dist/{chunk-CMLBFY5C.js.map → chunk-ZDON4IXL.js.map} +0 -0
- /package/dist/{claude-code-updater-EKABTDXO.js.map → claude-code-updater-CHEL6LOF.js.map} +0 -0
- /package/dist/{claude-pair-runtime-ZA24UQ7V.js.map → claude-pair-runtime-AGJH54AR.js.map} +0 -0
- /package/dist/{persistent-session-HXK2Z6GH.js.map → persistent-session-HQPQPNPK.js.map} +0 -0
- /package/dist/{responsiveness-probe-TPKISRGQ.js.map → responsiveness-probe-6GNSPLD2.js.map} +0 -0
- /package/dist/{session-auth-dead-KMB35KRB.js.map → session-auth-dead-4Z24MU6C.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EWD3K6YD.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-
|
|
247
|
+
//# sourceMappingURL=chunk-ZDON4IXL.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZDON4IXL.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-EWD3K6YD.js";
|
|
55
55
|
import {
|
|
56
56
|
CLAUDE_CONFIG_DIR_ENV,
|
|
57
57
|
approveApiKeyInClaudeConfig,
|
|
@@ -1125,20 +1125,31 @@ function buildLiveHeaderRemoteMcpProxyEntry(definitionId, dbSpec, paths, connect
|
|
|
1125
1125
|
}
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function isOAuthRemoteMcpDefinition(definitionId) {
|
|
1129
1129
|
const def = INTEGRATION_REGISTRY.find((d) => d.id === definitionId);
|
|
1130
1130
|
if (def?.remoteMcp)
|
|
1131
|
+
return false;
|
|
1132
|
+
return Boolean(OAUTH_PROVIDERS[definitionId]?.mcpUrl);
|
|
1133
|
+
}
|
|
1134
|
+
function buildOAuthRemoteMcpProxyEntry(definitionId, paths, connectionKey, toolTiers, brokerIntegrationId, brokerAgentId) {
|
|
1135
|
+
if (!isOAuthRemoteMcpDefinition(definitionId))
|
|
1131
1136
|
return null;
|
|
1132
1137
|
const provider = OAUTH_PROVIDERS[definitionId];
|
|
1133
|
-
|
|
1134
|
-
return null;
|
|
1138
|
+
const mcpUrl = provider.mcpUrl;
|
|
1135
1139
|
return {
|
|
1136
1140
|
command: "node",
|
|
1137
1141
|
args: [paths.proxyPath],
|
|
1138
1142
|
env: {
|
|
1139
|
-
AGT_REMOTE_MCP_URL:
|
|
1140
|
-
|
|
1141
|
-
|
|
1143
|
+
AGT_REMOTE_MCP_URL: mcpUrl,
|
|
1144
|
+
...brokerIntegrationId ? {
|
|
1145
|
+
[REMOTE_MCP_PROXY_ENV.integrationId]: brokerIntegrationId,
|
|
1146
|
+
// A literal `${...}` is a placeholder, never an id (ENG-4823). A plain
|
|
1147
|
+
// substring test, not a regex: linear on any input (CodeQL #200).
|
|
1148
|
+
...brokerAgentId && !brokerAgentId.includes("${") ? { AGT_AGENT_ID: brokerAgentId } : {}
|
|
1149
|
+
} : {
|
|
1150
|
+
AGT_REMOTE_MCP_TOKEN_FILE: paths.tokenFile,
|
|
1151
|
+
AGT_REMOTE_MCP_TOKEN_VAR: envVarForToken(definitionId, connectionKey)
|
|
1152
|
+
},
|
|
1142
1153
|
AGT_REMOTE_MCP_LABEL: remoteMcpConnectionLabel(definitionId, connectionKey),
|
|
1143
1154
|
// ENG-6948: cap the agent's exposed surface to the curated allowlist. The
|
|
1144
1155
|
// proxy filters tools/list and gates tools/call against this set. Omitted
|
|
@@ -6219,4 +6230,4 @@ export {
|
|
|
6219
6230
|
stopAllSessionsAndWait,
|
|
6220
6231
|
getProjectDir
|
|
6221
6232
|
};
|
|
6222
|
-
//# sourceMappingURL=chunk-
|
|
6233
|
+
//# sourceMappingURL=chunk-ZKLOPCWS.js.map
|