openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
45 lines (44 loc) • 1.92 kB
JavaScript
import "./agent-scope-config-DcbEhP0R.js";
import "./model-selection-shared-BlLyx1r2.js";
import "./agent-scope-DbtJyKUL.js";
import "./model-selection-config-BrdmmqKD.js";
import "./provider-auth-aliases-DhA9c2am.js";
import "./model-catalog-DOgUhUHe.js";
import "./model-auth-markers-jBKQn38x.js";
import "./common-Bm6UTDDA.js";
import { a as loadPreparedModelCatalog, r as getPreparedModelCatalogSnapshot } from "./prepared-model-catalog-Bt4dYhnY.js";
import "./auth-profiles-BdUEhE7u.js";
import "./model-auth-C48_DZ-I.js";
import "./model-selection-di2kjKCB.js";
import { r as resolveThinkingDefaultWithRuntimeCatalogCore } from "./model-thinking-default-1g_x1V4J.js";
import "./identity-L3YWE18q.js";
import "./embedded-agent-utils-DLNh77Fj.js";
import "./embedded-agent-block-chunker-C_UhVcqR.js";
import "./tts-BFEZTfAP.js";
import "./agent-scope-runtime-h57Nypqc.js";
import "./identity-avatar-BaF1nma_.js";
import "./agent-command-DK8Hh-Mq.js";
//#region src/plugin-sdk/agent-runtime.ts
/** @deprecated Use loadPreparedModelCatalog or getPreparedModelCatalogSnapshot. */
async function loadModelCatalog(params = {}) {
const { agentId, agentDir, cacheOnly, config, env, readOnly, workspaceDir } = params;
const preparedParams = {
...agentId ? { agentId } : {},
...agentDir ? { agentDir } : {},
...config ? { config } : {},
...env ? { env } : {},
...readOnly !== void 0 ? { readOnly } : {},
...workspaceDir ? { workspaceDir } : {}
};
if (cacheOnly) return getPreparedModelCatalogSnapshot(preparedParams)?.entries ?? [];
return await loadPreparedModelCatalog(preparedParams);
}
function resolveThinkingDefaultWithRuntimeCatalog(params) {
const { loadModelCatalog: loadRuntimeCatalog, ...rest } = params;
return resolveThinkingDefaultWithRuntimeCatalogCore({
...rest,
loadRuntimeCatalog
});
}
//#endregion
export { resolveThinkingDefaultWithRuntimeCatalog as n, loadModelCatalog as t };