(context: ToolUseContext)
| 47 | .replace(/^-|-$/g, ''); // Remove leading/trailing hyphens |
| 48 | } |
| 49 | async function exportWithReactRenderer(context: ToolUseContext): Promise<string> { |
| 50 | const tools = context.options.tools || []; |
| 51 | return renderMessagesToPlainText(context.messages, tools); |
| 52 | } |
| 53 | export async function call(onDone: LocalJSXCommandOnDone, context: ToolUseContext, args: string): Promise<React.ReactNode> { |
| 54 | // Render the conversation content |
| 55 | const content = await exportWithReactRenderer(context); |
no test coverage detected