negotium 0.5.8 → 0.5.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.
@@ -1022,7 +1022,7 @@ var init_claude_registry = __esm(() => {
1022
1022
  });
1023
1023
 
1024
1024
  // ../../packages/core/src/version.ts
1025
- var NEGOTIUM_VERSION = "0.5.8";
1025
+ var NEGOTIUM_VERSION = "0.5.9";
1026
1026
 
1027
1027
  // ../../packages/core/src/agents/codex-native-multi-agent.ts
1028
1028
  import { spawn } from "child_process";
@@ -10417,7 +10417,7 @@ function buildRuntimeToolSection(opts, extensions) {
10417
10417
  const decisionNamespace = "mcp__decision";
10418
10418
  const visualToolLine = agentKind === "codex" ? `To display charts, tables, or interactive HTML results to the user, call the \`show_html\` function in the \`${runtimeNamespace}\` namespace with { html: "<complete HTML string>", title?: "optional title" }.` : `To display charts, tables, or interactive HTML results to the user, call the MCP tool "${runtimeNamespace}__show_html" with { html: "<complete HTML string>", title?: "optional title" }.`;
10419
10419
  const mermaidToolLine = agentKind === "codex" ? `For diagrams that Mermaid supports, prefer the \`show_mermaid\` function in the \`${runtimeNamespace}\` namespace with { code: "<Mermaid DSL without markdown fences>", title?: "...", theme?: "neutral" }.` : `For diagrams that Mermaid supports, prefer the MCP tool "${runtimeNamespace}__show_mermaid" with { code: "<Mermaid DSL without markdown fences>", title?: "...", theme?: "neutral" }.`;
10420
- const mediaToolLine = agentKind === "codex" ? `To display an existing image or video in the visual panel, use \`show_image\` or \`show_video\` in the \`${runtimeNamespace}\` namespace with either { file_path: "...", title?: "..." } for a topic-workspace file or { file_id: "...", title?: "..." } for an uploaded file already attached in this topic.` : `To display an existing image or video in the visual panel, use MCP tool "${runtimeNamespace}__show_image" or "${runtimeNamespace}__show_video" with either { file_path: "...", title?: "..." } for a topic-workspace file or { file_id: "...", title?: "..." } for an uploaded file already attached in this topic.`;
10420
+ const mediaToolLine = agentKind === "codex" ? `To display an existing image in the visual panel, use \`show_image\` in the \`${runtimeNamespace}\` namespace with either { file_path: "...", title?: "..." } for a topic-workspace file or { file_id: "...", title?: "..." } for an uploaded file already attached in this topic.` : `To display an existing image in the visual panel, use MCP tool "${runtimeNamespace}__show_image" with either { file_path: "...", title?: "..." } for a topic-workspace file or { file_id: "...", title?: "..." } for an uploaded file already attached in this topic.`;
10421
10421
  const sendFileTool = agentKind === "codex" ? `\`send_file\` function in the \`${runtimeNamespace}\` namespace` : `MCP tool "${runtimeNamespace}__send_file"`;
10422
10422
  const askUserToolLine = agentKind === "codex" ? `When you need a blocking user choice, call the \`ask_user_question\` function in the \`${runtimeNamespace}\` namespace with { question: "...", choices: [{ label: "...", description?: "..." }] }.` : `When you need a blocking user choice, call the MCP tool "${runtimeNamespace}__ask_user_question" with { question: "...", choices: [{ label: "...", description?: "..." }] }.`;
10423
10423
  const scheduleSelfToolLine = agentKind === "codex" ? `For a one-shot delayed continuation within 24 hours, call the \`schedule_self\` function in the \`${runtimeNamespace}\` namespace with { delay_seconds: number, message: "self-contained future instruction" }. Only one pending self-schedule is allowed per topic; use \`get_self_schedule\`, \`update_self_schedule\`, or \`cancel_self_schedule\` in that namespace to manage it. Use cron-manager for recurring schedules.` : `For a one-shot delayed continuation within 24 hours, call the MCP tool "${runtimeNamespace}__schedule_self" with { delay_seconds: number, message: "self-contained future instruction" }. Only one pending self-schedule is allowed per topic; manage it with "${runtimeNamespace}__get_self_schedule", "${runtimeNamespace}__update_self_schedule", or "${runtimeNamespace}__cancel_self_schedule". Use cron-manager for recurring schedules.`;
@@ -15205,9 +15205,6 @@ function isVisualsShowMermaidTool(name) {
15205
15205
  function isVisualsShowImageTool(name) {
15206
15206
  return isRuntimeTool(name, "show_image") || isRuntimeTool(name, "show_png");
15207
15207
  }
15208
- function isVisualsShowVideoTool(name) {
15209
- return isRuntimeTool(name, "show_video");
15210
- }
15211
15208
  function normalizeToolUseId(value2) {
15212
15209
  const normalized = value2?.trim();
15213
15210
  return normalized ? normalized : undefined;
@@ -15586,9 +15583,9 @@ ${JSON.stringify(event.input ?? {})}`);
15586
15583
  broadcastStoredVisual(event, vizId, title, "mermaid");
15587
15584
  }
15588
15585
  }
15589
- } else if (isVisualsShowImageTool(event.name) || isVisualsShowVideoTool(event.name)) {
15586
+ } else if (isVisualsShowImageTool(event.name)) {
15590
15587
  const input = event.input;
15591
- const kind = isVisualsShowImageTool(event.name) ? "image" : "video";
15588
+ const kind = "image";
15592
15589
  const toolUseId = bindToolUseId(event.toolUseId);
15593
15590
  const label = formatToolUse(event.name, event.input);
15594
15591
  const failMediaVisual = (reason) => {
@@ -15608,14 +15605,10 @@ ${JSON.stringify(event.input ?? {})}`);
15608
15605
  failMediaVisual(media.error);
15609
15606
  break;
15610
15607
  }
15611
- if (kind === "image" && !media.mimeType.startsWith("image/")) {
15608
+ if (!media.mimeType.startsWith("image/")) {
15612
15609
  failMediaVisual(`expected image media, got ${media.mimeType}`);
15613
15610
  break;
15614
15611
  }
15615
- if (kind === "video" && !media.mimeType.startsWith("video/")) {
15616
- failMediaVisual(`expected video media, got ${media.mimeType}`);
15617
- break;
15618
- }
15619
15612
  try {
15620
15613
  const title = normalizeVisualTitle(input.title);
15621
15614
  if (peerBridge) {
@@ -16025,7 +16018,6 @@ __export(exports_turn_runner, {
16025
16018
  mergeSupersedingUserTurn: () => mergeSupersedingUserTurn,
16026
16019
  mentionsAi: () => mentionsAi,
16027
16020
  materializePromptAttachments: () => materializePromptAttachments,
16028
- isVisualsShowVideoTool: () => isVisualsShowVideoTool,
16029
16021
  isVisualsShowMermaidTool: () => isVisualsShowMermaidTool,
16030
16022
  isVisualsShowImageTool: () => isVisualsShowImageTool,
16031
16023
  isVisualsShowHtmlTool: () => isVisualsShowHtmlTool,
@@ -21450,4 +21442,4 @@ export {
21450
21442
  createAgentHealthMcpServer
21451
21443
  };
21452
21444
 
21453
- //# debugId=D668A94E43FEC52B64756E2164756E21
21445
+ //# debugId=17164AA2517551BA64756E2164756E21