mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:30:45 +00:00
fix: typecheck sparse plugin metadata handling
This commit is contained in:
@@ -112,7 +112,9 @@ export function createModelListAuthIndex(
|
||||
addProvider(provider);
|
||||
}
|
||||
}
|
||||
const primaryModelProvider = params.cfg.agents?.defaults?.model?.primary?.split("/", 1)[0];
|
||||
const defaultModel = params.cfg.agents?.defaults?.model;
|
||||
const primaryModel = typeof defaultModel === "string" ? defaultModel : defaultModel?.primary;
|
||||
const primaryModelProvider = primaryModel?.split("/", 1)[0];
|
||||
if (primaryModelProvider === "openai-codex" || primaryModelProvider === "codex") {
|
||||
addSyntheticProvider("codex");
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ function loadPluginMetadataSnapshotImpl(
|
||||
config: params.config,
|
||||
workspaceDir: params.workspaceDir,
|
||||
env: params.env,
|
||||
diagnostics: index.diagnostics,
|
||||
diagnostics: [...index.diagnostics],
|
||||
installRecords: index.installRecords,
|
||||
})
|
||||
: loadPluginManifestRegistryForInstalledIndex({
|
||||
|
||||
Reference in New Issue
Block a user