mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 00:00:20 +00:00
refactor: finish provider auth extraction and canonicalize kimi
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user