refactor: isolate provider sdk auth and model helpers

This commit is contained in:
Peter Steinberger
2026-03-16 21:47:21 -07:00
parent ad7924b0ac
commit dde89d2a83
35 changed files with 1118 additions and 1062 deletions

View File

@@ -1,7 +1,10 @@
import { normalizeApiKeyInput, validateApiKeyInput } from "../commands/auth-choice.api-key.js";
import { ensureApiKeyFromOptionEnvOrPrompt } from "../commands/auth-choice.apply-helpers.js";
import { applyPrimaryModel } from "../commands/model-picker.js";
import { applyAuthProfileConfig, buildApiKeyCredential } from "./provider-auth-helpers.js";
import {
ensureApiKeyFromOptionEnvOrPrompt,
normalizeApiKeyInput,
validateApiKeyInput,
} from "./provider-auth-input.js";
import { applyPrimaryModel } from "./provider-model-primary.js";
export {
applyAuthProfileConfig,