- Create src/agent/providers/ with registry.ts and resolver.ts - registry.ts: Provider metadata, status checking, login instructions - resolver.ts: API key resolution, model resolution - oauth/providers.ts now re-exports from providers/ (deprecated) - tools.ts: Remove PROVIDER_ALIAS and DEFAULT_MODELS (moved to providers/) - Update imports in runner.ts and chat.ts This separates concerns: - oauth/ only handles OAuth credential reading - providers/ manages all provider metadata and resolution
20 lines
506 B
TypeScript
20 lines
506 B
TypeScript
/**
|
|
* @deprecated This file is deprecated. Import from '../providers/index.js' instead.
|
|
*
|
|
* This file re-exports from the new providers/ module for backwards compatibility.
|
|
* Will be removed in a future version.
|
|
*/
|
|
|
|
export {
|
|
type AuthMethod,
|
|
type ProviderInfo,
|
|
type ProviderConfig,
|
|
isOAuthProvider,
|
|
isProviderAvailable,
|
|
getCurrentProvider,
|
|
getProviderList,
|
|
getAvailableProviders,
|
|
formatProviderStatus,
|
|
getLoginInstructions,
|
|
resolveProviderConfig,
|
|
} from "../providers/index.js";
|