mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
38b08fec0c0849d456e5611a633d71dade2eac68
Server-side: - Add StructuredToolResult discriminated union type with command, file_write, file_edit, file_read, and generic variants - Implement buildStructuredToolResult in claude-agent.ts to detect tool types and emit properly structured results - Update codex-agent.ts to emit structured command results Client-side: - Add type guard and extraction functions for structured results - Render tool calls based on result.type when available: - command: show command, output, exit code - file_write/file_edit: show diff viewer with proper +/- format - file_read: show file content - generic: show raw JSON - Fall back to heuristic parsing for backwards compatibility This fixes file writes showing as "Command: success message" - they now properly show as diffs with +line additions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Languages
TypeScript
98.1%
JavaScript
1.3%
Shell
0.1%
Swift
0.1%