negotium 0.12.0 → 0.12.2

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.
Files changed (34) hide show
  1. package/dist/agent-helpers.js +14 -7
  2. package/dist/agent-helpers.js.map +8 -8
  3. package/dist/{chunk-tvx2tm5q.js → chunk-bw6mrsc6.js} +3 -3
  4. package/dist/{chunk-tvx2tm5q.js.map → chunk-bw6mrsc6.js.map} +2 -2
  5. package/dist/{chunk-4drjv7x2.js → chunk-jz4jf6t1.js} +5 -1
  6. package/dist/{chunk-4drjv7x2.js.map → chunk-jz4jf6t1.js.map} +4 -4
  7. package/dist/{chunk-q1fta5e3.js → chunk-v9vh52nc.js} +1 -1
  8. package/dist/hosted-agent.js +6 -2
  9. package/dist/hosted-agent.js.map +5 -5
  10. package/dist/main.js +17 -7
  11. package/dist/main.js.map +11 -11
  12. package/dist/mcp-factories.js +15 -7
  13. package/dist/mcp-factories.js.map +9 -9
  14. package/dist/query-runtime.js +2 -2
  15. package/dist/query-runtime.js.map +3 -3
  16. package/dist/registry.js +3 -3
  17. package/dist/rollout.js +2 -2
  18. package/dist/runtime/src/mcp/runtime-spec.ts +12 -0
  19. package/dist/runtime/src/mcp/session-comm/context.ts +3 -0
  20. package/dist/runtime/src/mcp/session-comm/default-host.ts +3 -0
  21. package/dist/runtime/src/platform/mcp-config.ts +6 -0
  22. package/dist/runtime/src/query/active-rooms.ts +3 -0
  23. package/dist/runtime/src/runtime/ask-callbacks.ts +2 -0
  24. package/dist/runtime/src/runtime/inbox.ts +9 -0
  25. package/dist/runtime/src/runtime/turn-runner.ts +24 -2
  26. package/dist/runtime/src/version.ts +1 -1
  27. package/dist/types/packages/core/src/mcp/runtime-spec.d.ts +8 -0
  28. package/dist/types/packages/core/src/mcp/session-comm/context.d.ts +2 -0
  29. package/dist/types/packages/core/src/query/active-rooms.d.ts +2 -0
  30. package/dist/types/packages/core/src/runtime/ask-callbacks.d.ts +2 -0
  31. package/dist/types/packages/core/src/runtime/turn-runner.d.ts +1 -0
  32. package/dist/types/packages/core/src/version.d.ts +1 -1
  33. package/package.json +1 -1
  34. /package/dist/{chunk-q1fta5e3.js.map → chunk-v9vh52nc.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  logger,
8
8
  parseJsonlText,
9
9
  writeJsonlFile
10
- } from "./chunk-4drjv7x2.js";
10
+ } from "./chunk-jz4jf6t1.js";
11
11
 
12
12
  // ../../packages/core/src/agents/rollout/claude.ts
13
13
  import { randomUUID } from "crypto";
@@ -606,6 +606,7 @@ function hostedMcpCacheIdentity(surface, ctx) {
606
606
  depth: ctx.depth ?? 0,
607
607
  silent: ctx.silent ?? false,
608
608
  agent: ctx.agent,
609
+ threadRootId: ctx.threadRootId ?? null,
609
610
  peerBridge: ctx.peerBridge ?? null
610
611
  };
611
612
  break;
@@ -952,6 +953,7 @@ function buildBuiltinMcpServer(surface, ctx, stdio) {
952
953
  ...ctx.queryId ? { queryId: ctx.queryId } : {},
953
954
  ...ctx.wikiTopicId ? { wikiTopicId: ctx.wikiTopicId } : {},
954
955
  ...ctx.subagentParentTopicId ? { subagentParentTopicId: ctx.subagentParentTopicId } : {},
956
+ ...ctx.threadRootId ? { threadRootId: ctx.threadRootId } : {},
955
957
  cwd: ctx.cwd ?? (ctx.topicId ? resolveTopicWorkspaceDir(ctx.topicId) : process.cwd()),
956
958
  agent,
957
959
  ...ctx.model ? { model: ctx.model } : {},
@@ -1139,6 +1141,7 @@ var MCP_CATALOG = {
1139
1141
  agent,
1140
1142
  depth = 0,
1141
1143
  silent,
1144
+ threadRootId,
1142
1145
  peerBridge
1143
1146
  } = ctx;
1144
1147
  const effectiveAgent = agent ?? FALLBACK_AGENT;
@@ -1152,6 +1155,7 @@ var MCP_CATALOG = {
1152
1155
  `--agent=${effectiveAgent}`,
1153
1156
  ...cronSessionId ? [`--cron-session-id=${cronSessionId}`] : [],
1154
1157
  ...silent ? ["--reply-only=true"] : [],
1158
+ ...threadRootId ? [`--thread-root-id=${threadRootId}`] : [],
1155
1159
  ...peerBridge ? [`--peer-host-query-id=${peerBridge.hostQueryId}`] : []
1156
1160
  ];
1157
1161
  return buildBuiltinMcpServer("session-comm", ctx, () => buildStdioMcpServer(effectiveAgent, SESSION_COMM_SERVER, args, peerBridge ? peerSessionBridgeIpcEnv() : undefined));
@@ -2495,7 +2499,7 @@ import { tmpdir } from "os";
2495
2499
  import { dirname as dirname5, join as join4 } from "path";
2496
2500
 
2497
2501
  // ../../packages/core/src/version.ts
2498
- var NEGOTIUM_VERSION = "0.12.0";
2502
+ var NEGOTIUM_VERSION = "0.12.2";
2499
2503
 
2500
2504
  // ../../packages/core/src/agents/codex-native-multi-agent.ts
2501
2505
  var moduleRequire = createRequire2(import.meta.url);
@@ -4333,4 +4337,4 @@ export {
4333
4337
  buildClaudeDisallowedTools
4334
4338
  };
4335
4339
 
4336
- //# debugId=D4ED7BEBC10573DD64756E2164756E21
4340
+ //# debugId=1B551F67FB4EB03364756E2164756E21