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.
@@ -1313,8 +1313,14 @@ function longLivedHttpMcp(agent, port) {
1313
1313
  return agent === "codex" ? { url: `http://127.0.0.1:${port}/mcp` } : { type: "sse", url: `http://127.0.0.1:${port}/sse` };
1314
1314
  }
1315
1315
  var cuaRsMcpPort;
1316
- function cuaRsHttpMcp(port) {
1317
- return { type: "http", url: `http://127.0.0.1:${port}/mcp` };
1316
+ var cuaRsMcpToken;
1317
+ function cuaRsHttpMcp(agent, port, token) {
1318
+ const url = `http://127.0.0.1:${port}/mcp`;
1319
+ const headers = token ? { Authorization: `Bearer ${token}` } : undefined;
1320
+ const base = { type: "http", url };
1321
+ if (!headers)
1322
+ return base;
1323
+ return agent === "codex" ? { ...base, http_headers: headers } : { ...base, headers };
1318
1324
  }
1319
1325
  function backgroundBashTransport(agent, port, userId, topic) {
1320
1326
  const capability = bgBashContextCapability(userId, topic);
@@ -1536,8 +1542,8 @@ var MCP_CATALOG = {
1536
1542
  },
1537
1543
  "cua-rs": {
1538
1544
  ...commonRuntimeMcpPolicy("cua-rs"),
1539
- build() {
1540
- return cuaRsMcpPort ? cuaRsHttpMcp(cuaRsMcpPort) : null;
1545
+ build({ agent }) {
1546
+ return cuaRsMcpPort ? cuaRsHttpMcp(agent, cuaRsMcpPort, cuaRsMcpToken) : null;
1541
1547
  }
1542
1548
  }
1543
1549
  };
@@ -2653,4 +2659,4 @@ function formatDateBucket(d) {
2653
2659
 
2654
2660
  export { __toESM, __require, logger, CLAUDE_EFFORT_VALUES, CODEX_EFFORT_VALUES, MAESTRO_EFFORT_VALUES, MODEL_SONNET, MODEL_OPUS, MODEL_FABLE, configureRolloutHost, assertUuidLike, ensureCwdExists, extractChatPairs, encodeClaudeCwd, writeClaudeRollout, repairPoisonedRollout, hostedCodexHomePath, extractLatestCodexPatchPreview, extractCodexPatchCallIds, readCodexPatchCallIds, readLatestCodexPatchPreview, extractLatestCodexContextUsage, readLatestCodexContextUsage, migrateCodexRolloutNativeMultiAgentMetadata, latestCodexRolloutPath, writeCodexRollout, decodeUuidV7Timestamp };
2655
2661
 
2656
- //# debugId=A47FDC961FB9CD8B64756E2164756E21
2662
+ //# debugId=82486D833E4D883764756E2164756E21