Commit Graph

6 Commits

  • feat(coding-agent): configurable app name and config dir for forks (#95)
    - Add piConfig to package.json for app name and config directory
    - Consolidate paths.ts into config.ts with clearer naming
    - Fix Bun binary detection (changed from %7EBUN to $bunfs)
    - Update all hardcoded paths to use config.ts exports
    - getThemesDir() for built-in themes, getCustomThemesDir() for user themes
  • feat: enhance model cycling with thinking levels and --thinking flag
    PR #47 enhancements:
    - Add thinking level syntax to --models (e.g., --models sonnet:high,haiku:low)
    - First model in scope used as initial model when starting new session
    - Auto-apply thinking level when cycling models with Ctrl+P
    - Save both model and thinking to session AND settings for persistence
    - Simplify UX by removing autoThinkingDisabled flag
    - Fix model matching to prioritize exact matches over partial
    - Support provider/modelId format (e.g., openrouter/openai/gpt-5.1-codex)
    
    Issue #45:
    - Add --thinking CLI flag to set thinking level directly
    - Takes highest priority over all other thinking level sources
    
    Closes #45
  • WIP: Add theming system with /theme command
    - Consolidated theme system into single src/theme/ directory
    - Created Theme class with fg(), bg(), bold(), italic(), underline()
    - Added dark and light built-in themes with 36 color tokens
    - Support for custom themes in ~/.pi/agent/themes/*.json
    - JSON schema for theme validation
    - Theme selector UI with /theme command
    - Save theme preference to settings
    - Uses chalk for text formatting to preserve colors
    
    TODO:
    - Replace hardcoded colors throughout TUI components
    - Apply markdown theming to Markdown components
    - Add theme support to all TUI elements
  • Release v0.7.28
    - Add message queuing with configurable modes (one-at-a-time/all) (#15)
    - Add /queue command to select queue mode
    - Add TruncatedText component for proper viewport-aware text truncation
    - Queue mode setting persists in ~/.pi/agent/settings.json
    - Visual feedback for queued messages with proper ANSI handling
    - Press Escape to abort and restore queued messages to editor
  • v0.7.12: Custom models/providers support via models.json
    - Add ~/.pi/agent/models.json config for custom providers (Ollama, vLLM, etc.)
    - Support all 4 API types (openai-completions, openai-responses, anthropic-messages, google-generative-ai)
    - Live reload models.json on /model selector open
    - Smart model defaults per provider (claude-sonnet-4-5, gpt-5.1-codex, etc.)
    - Graceful session fallback when saved model missing or no API key
    - Validation errors show precise file/field info in CLI and TUI
    - Agent knows its own README.md path for self-documentation
    - Added gpt-5.1-codex (400k context, 128k output, reasoning)
    
    Fixes #21