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/hosted-agent.js
CHANGED
|
@@ -969,8 +969,14 @@ function longLivedHttpMcp(agent, port) {
|
|
|
969
969
|
return agent === "codex" ? { url: `http://127.0.0.1:${port}/mcp` } : { type: "sse", url: `http://127.0.0.1:${port}/sse` };
|
|
970
970
|
}
|
|
971
971
|
var cuaRsMcpPort;
|
|
972
|
-
|
|
973
|
-
|
|
972
|
+
var cuaRsMcpToken;
|
|
973
|
+
function cuaRsHttpMcp(agent, port, token) {
|
|
974
|
+
const url = `http://127.0.0.1:${port}/mcp`;
|
|
975
|
+
const headers = token ? { Authorization: `Bearer ${token}` } : undefined;
|
|
976
|
+
const base = { type: "http", url };
|
|
977
|
+
if (!headers)
|
|
978
|
+
return base;
|
|
979
|
+
return agent === "codex" ? { ...base, http_headers: headers } : { ...base, headers };
|
|
974
980
|
}
|
|
975
981
|
function backgroundBashTransport(agent, port, userId, topic) {
|
|
976
982
|
const capability = bgBashContextCapability(userId, topic);
|
|
@@ -1192,8 +1198,8 @@ var MCP_CATALOG = {
|
|
|
1192
1198
|
},
|
|
1193
1199
|
"cua-rs": {
|
|
1194
1200
|
...commonRuntimeMcpPolicy("cua-rs"),
|
|
1195
|
-
build() {
|
|
1196
|
-
return cuaRsMcpPort ? cuaRsHttpMcp(cuaRsMcpPort) : null;
|
|
1201
|
+
build({ agent }) {
|
|
1202
|
+
return cuaRsMcpPort ? cuaRsHttpMcp(agent, cuaRsMcpPort, cuaRsMcpToken) : null;
|
|
1197
1203
|
}
|
|
1198
1204
|
}
|
|
1199
1205
|
};
|
|
@@ -2393,7 +2399,7 @@ import { tmpdir } from "os";
|
|
|
2393
2399
|
import { dirname as dirname5, join as join4 } from "path";
|
|
2394
2400
|
|
|
2395
2401
|
// ../../packages/core/src/version.ts
|
|
2396
|
-
var NEGOTIUM_VERSION = "0.4.
|
|
2402
|
+
var NEGOTIUM_VERSION = "0.4.6";
|
|
2397
2403
|
|
|
2398
2404
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
2399
2405
|
var moduleRequire = createRequire2(import.meta.url);
|
|
@@ -4252,4 +4258,4 @@ export {
|
|
|
4252
4258
|
buildClaudeDisallowedTools
|
|
4253
4259
|
};
|
|
4254
4260
|
|
|
4255
|
-
//# debugId=
|
|
4261
|
+
//# debugId=405BC1708F86507764756E2164756E21
|