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/mcp-factories.js
CHANGED
|
@@ -1017,7 +1017,7 @@ var init_claude_registry = __esm(() => {
|
|
|
1017
1017
|
});
|
|
1018
1018
|
|
|
1019
1019
|
// ../../packages/core/src/version.ts
|
|
1020
|
-
var NEGOTIUM_VERSION = "0.4.
|
|
1020
|
+
var NEGOTIUM_VERSION = "0.4.6";
|
|
1021
1021
|
|
|
1022
1022
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
1023
1023
|
import { spawn } from "child_process";
|
|
@@ -1809,8 +1809,13 @@ function playwrightTransport(port, owner, capability, agent) {
|
|
|
1809
1809
|
function longLivedHttpMcp(agent, port) {
|
|
1810
1810
|
return agent === "codex" ? { url: `http://127.0.0.1:${port}/mcp` } : { type: "sse", url: `http://127.0.0.1:${port}/sse` };
|
|
1811
1811
|
}
|
|
1812
|
-
function cuaRsHttpMcp(port) {
|
|
1813
|
-
|
|
1812
|
+
function cuaRsHttpMcp(agent, port, token) {
|
|
1813
|
+
const url = `http://127.0.0.1:${port}/mcp`;
|
|
1814
|
+
const headers = token ? { Authorization: `Bearer ${token}` } : undefined;
|
|
1815
|
+
const base = { type: "http", url };
|
|
1816
|
+
if (!headers)
|
|
1817
|
+
return base;
|
|
1818
|
+
return agent === "codex" ? { ...base, http_headers: headers } : { ...base, headers };
|
|
1814
1819
|
}
|
|
1815
1820
|
function backgroundBashTransport(agent, port, userId, topic) {
|
|
1816
1821
|
const capability = bgBashContextCapability(userId, topic);
|
|
@@ -2045,7 +2050,7 @@ function getMcpServersForQuery(opts) {
|
|
|
2045
2050
|
peerBridge: opts.peerBridge
|
|
2046
2051
|
});
|
|
2047
2052
|
}
|
|
2048
|
-
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;
|
|
2053
|
+
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;
|
|
2049
2054
|
var init_mcp_config = __esm(() => {
|
|
2050
2055
|
init_canonical_bridge_config();
|
|
2051
2056
|
init_runtime_spec();
|
|
@@ -2263,8 +2268,8 @@ var init_mcp_config = __esm(() => {
|
|
|
2263
2268
|
},
|
|
2264
2269
|
"cua-rs": {
|
|
2265
2270
|
...commonRuntimeMcpPolicy("cua-rs"),
|
|
2266
|
-
build() {
|
|
2267
|
-
return cuaRsMcpPort ? cuaRsHttpMcp(cuaRsMcpPort) : null;
|
|
2271
|
+
build({ agent }) {
|
|
2272
|
+
return cuaRsMcpPort ? cuaRsHttpMcp(agent, cuaRsMcpPort, cuaRsMcpToken) : null;
|
|
2268
2273
|
}
|
|
2269
2274
|
}
|
|
2270
2275
|
};
|
|
@@ -21376,4 +21381,4 @@ export {
|
|
|
21376
21381
|
createAgentHealthMcpServer
|
|
21377
21382
|
};
|
|
21378
21383
|
|
|
21379
|
-
//# debugId=
|
|
21384
|
+
//# debugId=F40B45AB2EFABC5F64756E2164756E21
|