Commit Graph

12 Commits

  • Add --mode flag for CLI output control (text/json/rpc)
    - text mode: only outputs final assistant message text (default)
    - json mode: streams all events as JSON (same as session manager writes)
    - rpc mode: JSON output + listens for JSON input on stdin for headless operation
    - Suppress informational messages in json/rpc modes
  • Add /export command to export sessions as self-contained HTML
    - Add exportSessionToHtml function that generates beautifully formatted HTML exports
    - HTML includes session metadata, all messages, tool calls, tool results, thinking blocks, and images
    - Support for ANSI color codes in tool output (converted to HTML)
    - Self-contained with inline CSS (dark theme, responsive design, print-friendly)
    - Add /export slash command to TUI with optional filename parameter
    - Add agent and coding-agent to dev script for watch mode
    - Increment coding-agent version to 0.6.1
    
    Usage: /export [optional-filename.html]
  • Handle FinishReason.NO_IMAGE and fix optional chaining
    - Add NO_IMAGE to error finish reasons in Google provider
    - Fix non-null assertion after optional chaining in Anthropic provider
    - Migrate biome config to 2.3.5
    - Ignore Tailwind CSS file from biome checks
    - Bump all packages to version 0.6.0
  • Clean up TUI package and refactor component structure
    - Remove old TUI implementation and components (LoadingAnimation, MarkdownComponent, TextComponent, TextEditor, WhitespaceComponent)
    - Rename components-new to components with new API (Loader, Markdown, Text, Editor, Spacer)
    - Move Text and Input components to separate files in src/components/
    - Add render caching to Text component (similar to Markdown)
    - Add proper ANSI code handling in Text component using stripVTControlCharacters
    - Update coding-agent to use new TUI API (requires ProcessTerminal, uses custom Editor subclass for key handling)
    - Remove old test files, keep only chat-simple.ts and virtual-terminal.ts
    - Update README.md with new minimal API documentation
    - Switch from tsc to tsgo for type checking
    - Update package dependencies across monorepo