Commit Graph

5 Commits

  • feat(ai): Migrate tests to Vitest and add provider test coverage
    - Switch from Node.js test runner to Vitest for better DX
    - Add test suites for Grok, Groq, Cerebras, and OpenRouter providers
    - Add Ollama test suite with automatic server lifecycle management
    - Include thinking mode and multi-turn tests for all providers
    - Remove example files (consolidated into test suite)
    - Add VS Code test configuration
  • docs: Update file paths after moving AI docs to packages/ai/docs/
    - Update task.md to reference docs in new location
    - Update CLAUDE.md with project instructions
    - Update analysis.md with implementation progress
  • agent: Add reasoning token support for OpenAI reasoning models
    - Extract and display reasoning tokens from both Chat Completions and Responses APIs
    - Add smart preflight detection to check reasoning support per model/API (cached per agent)
    - Support both reasoning_text (o1/o3) and summary_text (gpt-5) formats
    - Display reasoning tokens with  symbol in console and TUI renderers
    - Only send reasoning parameters to models that support them
    - Fix event type from "thinking" to "reasoning" for consistency
    
    Note: Chat Completions API only returns reasoning token counts, not content (by design).
    Only Responses API exposes actual thinking/reasoning events.
  • Display tool call metrics: Add ⚒ counter to token usage display
    - Show tool call count alongside token metrics in TUI and console renderers
    - TUI: Display at bottom with format "↑X ↓Y ⚒Z"
    - Console: Show metrics after assistant messages complete
    - Counter increments on each tool_call event