negotium 0.23.8 → 0.23.9

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 (30) hide show
  1. package/dist/agent-helpers.js +4 -3
  2. package/dist/agent-helpers.js.map +4 -4
  3. package/dist/{chunk-g5etvfj3.js → chunk-jsv1te9a.js} +2 -2
  4. package/dist/{chunk-g5etvfj3.js.map → chunk-jsv1te9a.js.map} +2 -2
  5. package/dist/hosted-agent.js +2 -2
  6. package/dist/hosted-agent.js.map +2 -2
  7. package/dist/main.js +477 -338
  8. package/dist/main.js.map +12 -8
  9. package/dist/mcp-factories.js +310 -255
  10. package/dist/mcp-factories.js.map +10 -7
  11. package/dist/prompts.js +3 -2
  12. package/dist/prompts.js.map +3 -3
  13. package/dist/registry.js +1 -1
  14. package/dist/runtime/src/mcp/factories/session-comm.ts +16 -2
  15. package/dist/runtime/src/mcp/factories/session-history.ts +21 -306
  16. package/dist/runtime/src/mcp/session-comm/default-host.ts +14 -0
  17. package/dist/runtime/src/mcp/session-comm/history-target.ts +89 -0
  18. package/dist/runtime/src/mcp/session-comm/history-tools.ts +113 -0
  19. package/dist/runtime/src/mcp/session-comm/server.ts +16 -2
  20. package/dist/runtime/src/mcp/session-history-limits.ts +36 -0
  21. package/dist/runtime/src/mcp/session-history-reader.ts +359 -0
  22. package/dist/runtime/src/mcp/session-history-server.ts +2 -10
  23. package/dist/runtime/src/prompts/builders.ts +2 -1
  24. package/dist/runtime/src/version.ts +1 -1
  25. package/dist/types/packages/core/src/mcp/factories/session-comm.d.ts +6 -0
  26. package/dist/types/packages/core/src/mcp/session-comm/history-tools.d.ts +31 -0
  27. package/dist/types/packages/core/src/mcp/session-history-limits.d.ts +20 -0
  28. package/dist/types/packages/core/src/mcp/session-history-reader.d.ts +35 -0
  29. package/dist/types/packages/core/src/version.d.ts +1 -1
  30. package/package.json +1 -1
@@ -5321,7 +5321,7 @@ var init_codex = __esm(async () => {
5321
5321
  });
5322
5322
 
5323
5323
  // ../../packages/core/src/version.ts
5324
- var NEGOTIUM_VERSION = "0.23.8";
5324
+ var NEGOTIUM_VERSION = "0.23.9";
5325
5325
 
5326
5326
  // ../../packages/core/src/agents/codex-native-multi-agent.ts
5327
5327
  import { spawn as spawn2 } from "child_process";
@@ -9849,8 +9849,9 @@ function buildRuntimeToolSection(opts, extensions) {
9849
9849
  "The session-comm MCP server is the only cross-topic messaging surface. Its canonical tools are `list_sessions`, `peek_session`, `tell_session`, `ask_session`, and `abort_session`.",
9850
9850
  "`list_sessions` inspects topics; `ask_session` is for read-only questions whose answer must return here; `tell_session` is one-way delegation/handoff with no reply back. Do not call `tell_session` bidirectional, and do not claim `ask_session` is unavailable without first checking the session-comm tools."
9851
9851
  ],
9852
+ "To hand over context, point instead of pasting: in `tell_session`/`ask_session`, state the instruction and cite the relevant part of your own history (an entry range from `list_session_boundaries`, or a `sessionId`) rather than copying long transcripts. A session that receives such a message (`[from <topic>]`) reads the sender's history with `read_session_history_of`/`search_session_history_of` (`to` = the sender as `list_sessions` shows it). Only sessions listed by `list_sessions` are readable; if the sender is not listed, ask for the details instead.",
9852
9853
  ...agentKind === "maestro" ? [
9853
- subagentParentTitle ? "Session-comm schemas may initially be deferred. Activate `mcp__session-comm__list_sessions` and `mcp__session-comm__tell_session` with ToolSearch before use." : 'Session-comm schemas may initially be deferred. Before using or judging availability, call ToolSearch("select:mcp__session-comm__list_sessions,mcp__session-comm__peek_session,mcp__session-comm__tell_session,mcp__session-comm__ask_session,mcp__session-comm__abort_session") to activate the exact tools. Never substitute a similarly described runtime tool.'
9854
+ subagentParentTitle ? "Session-comm schemas may initially be deferred. Activate `mcp__session-comm__list_sessions` and `mcp__session-comm__tell_session` with ToolSearch before use." : 'Session-comm schemas may initially be deferred. Before using or judging availability, call ToolSearch("select:mcp__session-comm__list_sessions,mcp__session-comm__peek_session,mcp__session-comm__tell_session,mcp__session-comm__ask_session,mcp__session-comm__abort_session,mcp__session-comm__read_session_history_of,mcp__session-comm__search_session_history_of") to activate the exact tools. Never substitute a similarly described runtime tool.'
9854
9855
  ] : [],
9855
9856
  "Do not use session communication to make another topic perform destructive changes without the user's clear intent.",
9856
9857
  ...spawnSubagentSection,
@@ -23839,4 +23840,4 @@ export {
23839
23840
  DEFAULT_SELF_CONFIG_PRODUCT
23840
23841
  };
23841
23842
 
23842
- //# debugId=FA0D4C979A11209F64756E2164756E21
23843
+ //# debugId=E041CCB2870C69A364756E2164756E21