negotium 0.4.4 → 0.4.6
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/agent-helpers.js +12 -7
- package/dist/agent-helpers.js.map +4 -4
- package/dist/{chunk-dttcv3n7.js → chunk-bzbxgbgg.js} +11 -5
- package/dist/{chunk-dttcv3n7.js.map → chunk-bzbxgbgg.js.map} +3 -3
- package/dist/hosted-agent.js +12 -6
- package/dist/hosted-agent.js.map +4 -4
- package/dist/main.js +78 -31
- package/dist/main.js.map +5 -5
- package/dist/mcp-factories.js +12 -7
- package/dist/mcp-factories.js.map +4 -4
- package/dist/registry.js +3 -3
- package/dist/registry.js.map +2 -2
- package/dist/rollout.js +1 -1
- package/dist/runtime/src/platform/mcp-config.ts +22 -5
- package/dist/runtime/src/version.ts +1 -1
- package/dist/types/packages/core/src/platform/mcp-config.d.ts +1 -1
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/agent-helpers.js
CHANGED
|
@@ -938,8 +938,13 @@ function playwrightTransport(port, owner, capability, agent) {
|
|
|
938
938
|
function longLivedHttpMcp(agent, port) {
|
|
939
939
|
return agent === "codex" ? { url: `http://127.0.0.1:${port}/mcp` } : { type: "sse", url: `http://127.0.0.1:${port}/sse` };
|
|
940
940
|
}
|
|
941
|
-
function cuaRsHttpMcp(port) {
|
|
942
|
-
|
|
941
|
+
function cuaRsHttpMcp(agent, port, token) {
|
|
942
|
+
const url = `http://127.0.0.1:${port}/mcp`;
|
|
943
|
+
const headers = token ? { Authorization: `Bearer ${token}` } : undefined;
|
|
944
|
+
const base = { type: "http", url };
|
|
945
|
+
if (!headers)
|
|
946
|
+
return base;
|
|
947
|
+
return agent === "codex" ? { ...base, http_headers: headers } : { ...base, headers };
|
|
943
948
|
}
|
|
944
949
|
function backgroundBashTransport(agent, port, userId, topic) {
|
|
945
950
|
const capability = bgBashContextCapability(userId, topic);
|
|
@@ -1174,7 +1179,7 @@ function getMcpServersForQuery(opts) {
|
|
|
1174
1179
|
peerBridge: opts.peerBridge
|
|
1175
1180
|
});
|
|
1176
1181
|
}
|
|
1177
|
-
var _playwrightUnavailableNotifier, _playwrightUnavailableLastNotifiedAt, _PLAYWRIGHT_UNAVAILABLE_COOLDOWN_MS, _playwrightUnavailableThisTurn, CODEX_BROWSER_CAPABILITY_ENV = "NEGOTIUM_BROWSER_CAPABILITY", cuaRsMcpPort, MCP_CATALOG, allForumMcpServerNames, requiredForumMcpServers, REQUIRED_FORUM_MCP_SERVERS, optionalForumMcpServers, nodeMcpEntries;
|
|
1182
|
+
var _playwrightUnavailableNotifier, _playwrightUnavailableLastNotifiedAt, _PLAYWRIGHT_UNAVAILABLE_COOLDOWN_MS, _playwrightUnavailableThisTurn, CODEX_BROWSER_CAPABILITY_ENV = "NEGOTIUM_BROWSER_CAPABILITY", cuaRsMcpPort, cuaRsMcpToken, MCP_CATALOG, allForumMcpServerNames, requiredForumMcpServers, REQUIRED_FORUM_MCP_SERVERS, optionalForumMcpServers, nodeMcpEntries;
|
|
1178
1183
|
var init_mcp_config = __esm(() => {
|
|
1179
1184
|
init_canonical_bridge_config();
|
|
1180
1185
|
init_runtime_spec();
|
|
@@ -1392,8 +1397,8 @@ var init_mcp_config = __esm(() => {
|
|
|
1392
1397
|
},
|
|
1393
1398
|
"cua-rs": {
|
|
1394
1399
|
...commonRuntimeMcpPolicy("cua-rs"),
|
|
1395
|
-
build() {
|
|
1396
|
-
return cuaRsMcpPort ? cuaRsHttpMcp(cuaRsMcpPort) : null;
|
|
1400
|
+
build({ agent }) {
|
|
1401
|
+
return cuaRsMcpPort ? cuaRsHttpMcp(agent, cuaRsMcpPort, cuaRsMcpToken) : null;
|
|
1397
1402
|
}
|
|
1398
1403
|
}
|
|
1399
1404
|
};
|
|
@@ -2422,7 +2427,7 @@ var init_claude_registry = __esm(() => {
|
|
|
2422
2427
|
});
|
|
2423
2428
|
|
|
2424
2429
|
// ../../packages/core/src/version.ts
|
|
2425
|
-
var NEGOTIUM_VERSION = "0.4.
|
|
2430
|
+
var NEGOTIUM_VERSION = "0.4.6";
|
|
2426
2431
|
|
|
2427
2432
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
2428
2433
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -19145,4 +19150,4 @@ export {
|
|
|
19145
19150
|
DEFAULT_SELF_CONFIG_PRODUCT
|
|
19146
19151
|
};
|
|
19147
19152
|
|
|
19148
|
-
//# debugId=
|
|
19153
|
+
//# debugId=3AED260859E79C3264756E2164756E21
|