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.
@@ -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
- function cuaRsHttpMcp(port) {
973
- return { type: "http", url: `http://127.0.0.1:${port}/mcp` };
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.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=5948FB2BA3560C9864756E2164756E21
4261
+ //# debugId=405BC1708F86507764756E2164756E21