Implements Claude Code as a new AI provider that uses the Claude Code CLI without requiring API keys. This enables users to leverage Claude models through their local Claude Code installation. Key changes: - Add complete AI SDK v1 implementation for Claude Code provider - Custom SDK with streaming/non-streaming support - Session management for conversation continuity - JSON extraction for object generation mode - Support for advanced settings (maxTurns, allowedTools, etc.) - Integrate Claude Code into Task Master's provider system - Update ai-services-unified.js to handle keyless authentication - Add provider to supported-models.json with opus/sonnet models - Ensure correct maxTokens values are applied (opus: 32000, sonnet: 64000) - Fix maxTokens configuration issue - Add max_tokens property to getAvailableModels() output - Update setModel() to properly handle claude-code models - Create update-config-tokens.js utility for init process - Add comprehensive documentation - User guide with configuration examples - Advanced settings explanation and future integration options The implementation maintains full backward compatibility with existing providers while adding seamless Claude Code support to all Task Master commands.
17 lines
642 B
JavaScript
17 lines
642 B
JavaScript
/**
|
|
* src/ai-providers/index.js
|
|
* Central export point for all AI provider classes
|
|
*/
|
|
|
|
export { AnthropicAIProvider } from './anthropic.js';
|
|
export { PerplexityAIProvider } from './perplexity.js';
|
|
export { GoogleAIProvider } from './google.js';
|
|
export { OpenAIProvider } from './openai.js';
|
|
export { XAIProvider } from './xai.js';
|
|
export { OpenRouterAIProvider } from './openrouter.js';
|
|
export { OllamaAIProvider } from './ollama.js';
|
|
export { BedrockAIProvider } from './bedrock.js';
|
|
export { AzureProvider } from './azure.js';
|
|
export { VertexAIProvider } from './google-vertex.js';
|
|
export { ClaudeCodeProvider } from './claude-code.js';
|