Commit Graph

6 Commits

  • fix(coding-agent): update Anthropic compaction model and HTTPS package test (#1960)
    * fix(coding-agent): use supported Anthropic compaction model
    
    The Anthropic compaction test was pinned to claude-3-7-sonnet-latest, which now fails with a 404 because that model line was retired. Switch the test to the existing claude-sonnet-4-5 convention used elsewhere in coding-agent tests.
    
    * test(coding-agent): disable git prompts in HTTPS parsing test
    
    The HTTPS URL parsing test intentionally clones a nonexistent GitHub repo to verify that bare HTTPS sources dispatch to git. Under a TTY, git can prompt on that path and hang the test run.
    
    Set GIT_TERMINAL_PROMPT=0 in that test so it still exercises real git but fails fast instead of waiting for terminal input.
  • fix(ai): use parametersJsonSchema for Google tool declarations, revert Antigravity opus model
    - Use parametersJsonSchema instead of parameters for Gemini tool declarations
      to support full JSON Schema (anyOf, oneOf, const, etc.)
    - Keep legacy parameters field for Claude models on Cloud Code Assist, where
      the API translates parameters into Anthropic's input_schema
    - Revert claude-opus-4-6-thinking back to claude-opus-4-5-thinking (model
      doesn't exist on the Antigravity endpoint)
    
    fixes #1398
  • fix(antigravity): fixes the tests for antigravitiy opus (#1369)
    * feat(antigravity): update model costs and tokens, migrate compaction tests to Claude 4.6
    
    - Update model costs for various models in `models.generated.ts` to reflect the latest pricing.
    - Update maxTokens for certain models.
    - Migrate compaction tests from `claude-opus-4-5-thinking` to `claude-opus-4-6-thinking` in `compaction-thinking-model.test.ts`.
    
    * fix: remove unnecessary peer dependencies in package-lock.json
    
    This commit removes the `peer: true` flag from several dependencies in `package-lock.json`. These dependencies (lit, tailwind-merge, tailwindcss, picomatch, @tailwindcss/typescript, vite, picomatch) do not need to be explicitly marked as peer dependencies in this context, as they are already managed as regular dependencies. Removing the `peer: true` flag simplifies the dependency graph and avoids potential conflicts during installation.
  • feat(coding-agent): ResourceLoader, package management, and /reload command (#645)
    - Add ResourceLoader interface and DefaultResourceLoader implementation
    - Add PackageManager for npm/git extension sources with install/remove/update
    - Add session.reload() and session.bindExtensions() APIs
    - Add /reload command in interactive mode
    - Add CLI flags: --skill, --theme, --prompt-template, --no-themes, --no-prompt-templates
    - Add pi install/remove/update commands for extension management
    - Refactor settings.json to use arrays for skills, prompts, themes
    - Remove legacy SkillsSettings source flags and filters
    - Update SDK examples and documentation for ResourceLoader pattern
    - Add theme registration and loadThemeFromPath for dynamic themes
    - Add getShellEnv to include bin dir in PATH for bash commands
  • fix(ai): ensure maxTokens > thinkingBudget for Claude thinking models
    Claude requires max_tokens > thinking.budget_tokens. When caller specifies
    a small maxTokens (e.g. compaction with ~13k tokens) and reasoning is enabled
    with high budget (16k tokens), the constraint was violated.
    
    Fix: In mapOptionsForApi, add thinkingBudget on top of caller's maxTokens
    (capped at model.maxTokens). If still not enough room, reduce thinkingBudget
    to leave space for output.
    
    Applied to both anthropic-messages and google-gemini-cli APIs.
    
    Also adds test utilities for OAuth credential resolution and tests for
    compaction with thinking models.
    
    fixes #413