openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
53 lines (52 loc) • 2.31 kB
JavaScript
import "./agent-scope-config-CDYpzA0r.mjs";
import "./agent-scope-CG17uXFn.mjs";
import "./provider-auth-aliases-DGVQj_99.mjs";
import "./model-selection-shared-DcM6hdAC.mjs";
import "./model-selection-config-BdeHEviO.mjs";
import "./model-auth-markers-BxCB9MeR.mjs";
import "./model-selection-CC48fyGE.mjs";
import { t as resolveThinkingDefaultWithRuntimeCatalogCore } from "./model-thinking-default-twlQ6xyp.mjs";
import "./auth-profiles-DnH-eEC0.mjs";
import "./model-catalog-CJEhcezW.mjs";
import "./model-auth-CU3YlZuV.mjs";
import { d as readPreparedModelCatalog, f as refreshExpiredPreparedModelCatalog } from "./prepared-model-catalog-CntkE0sm.mjs";
import "./common-Dyxcwsy8.mjs";
import "./identity-uzCeiPuC.mjs";
import "./agent-scope-runtime-DMJYuX7c.mjs";
import "./embedded-agent-utils-BYhIvAvm.mjs";
import "./tts-BwY0iFcF.mjs";
import "./embedded-agent-block-chunker-Ct-avwXe.mjs";
import "./identity-avatar-dF8y1aAa.mjs";
import "./agent-command-DDUZ1Cjb.mjs";
//#region src/plugin-sdk/agent-runtime.ts
/** Preserves the public SDK's writable default while internal catalog reads stay passive. */
async function loadPreparedModelCatalog(params = {}) {
return await readPreparedModelCatalog({
...params,
readOnly: params.readOnly ?? false
});
}
/** @deprecated Use loadPreparedModelCatalog or getPreparedModelCatalogSnapshot. */
async function loadModelCatalog(params = {}) {
const { agentId, agentDir, cacheOnly, config, env, readOnly, refreshFullCatalog, workspaceDir } = params;
const preparedParams = {
...agentId ? { agentId } : {},
...agentDir ? { agentDir } : {},
...config ? { config } : {},
...env ? { env } : {},
...readOnly !== void 0 ? { readOnly } : {},
...refreshFullCatalog !== void 0 ? { refreshFullCatalog } : {},
...workspaceDir ? { workspaceDir } : {}
};
if (cacheOnly) return refreshExpiredPreparedModelCatalog(preparedParams)?.entries ?? [];
return await loadPreparedModelCatalog(preparedParams);
}
function resolveThinkingDefaultWithRuntimeCatalog(params) {
const { loadModelCatalog: loadRuntimeCatalog, ...rest } = params;
return resolveThinkingDefaultWithRuntimeCatalogCore({
...rest,
loadRuntimeCatalog
});
}
//#endregion
export { loadPreparedModelCatalog as n, resolveThinkingDefaultWithRuntimeCatalog as r, loadModelCatalog as t };