{"version":3,"file":"toolMessageProps.mjs","names":[],"sources":["../../../src/web/lib/toolMessageProps.ts"],"sourcesContent":["import type { ToolMessageRenderProps, WebPluginSlotProps } from '@agimon-ai/po-core/web';\n\nimport type { ToolEntry } from './sessionModel';\n\n/** The props a tool's message renderer receives: the slot actions plus the call and its newest result. */\nexport function toolMessageProps(\n  slotProps: WebPluginSlotProps,\n  entry: ToolEntry,\n  statuses: Readonly<Record<string, string>>,\n): ToolMessageRenderProps {\n  return {\n    ...slotProps,\n    toolCallId: entry.toolCallId,\n    toolName: entry.name,\n    args: entry.args,\n    statuses,\n    result: entry.result,\n    output: entry.output,\n    running: entry.running,\n    isError: entry.isError,\n  };\n}\n"],"mappings":";;AAKA,SAAgB,iBACd,WACA,OACA,UACwB;CACxB,OAAO;EACL,GAAG;EACH,YAAY,MAAM;EAClB,UAAU,MAAM;EAChB,MAAM,MAAM;EACZ;EACA,QAAQ,MAAM;EACd,QAAQ,MAAM;EACd,SAAS,MAAM;EACf,SAAS,MAAM;CACjB;AACF"}