refactor: finish provider auth extraction and canonicalize kimi

This commit is contained in:
Peter Steinberger
2026-03-16 20:49:31 -07:00
parent 3566e88c08
commit c64f6adc83
41 changed files with 837 additions and 662 deletions

View File

@@ -19,9 +19,11 @@ export function resolveBundledPluginsDir(env: NodeJS.ProcessEnv = process.env):
);
for (const packageRoot of packageRoots) {
// Local source checkouts stage a runtime-complete bundled plugin tree under
// dist-runtime/. Prefer that over release-shaped dist/extensions.
// dist-runtime/. Prefer that over source extensions only when the paired
// dist/ tree exists; otherwise wrappers can drift ahead of the last build.
const runtimeExtensionsDir = path.join(packageRoot, "dist-runtime", "extensions");
if (fs.existsSync(runtimeExtensionsDir)) {
const builtExtensionsDir = path.join(packageRoot, "dist", "extensions");
if (fs.existsSync(runtimeExtensionsDir) && fs.existsSync(builtExtensionsDir)) {
return runtimeExtensionsDir;
}
}

View File

@@ -33,7 +33,7 @@ export const BUNDLED_ENABLED_BY_DEFAULT = new Set<string>([
"google",
"huggingface",
"kilocode",
"kimi-coding",
"kimi",
"minimax",
"mistral",
"modelstudio",
@@ -62,6 +62,7 @@ export const BUNDLED_ENABLED_BY_DEFAULT = new Set<string>([
const PLUGIN_ID_ALIASES: Readonly<Record<string, string>> = {
"openai-codex": "openai",
"kimi-coding": "kimi",
"minimax-portal-auth": "minimax",
};

View File

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