openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
40 lines (39 loc) • 1.56 kB
JavaScript
import { t as resolveMemoryBackendConfig } from "./backend-config-D3tXhXDP.js";
import "./memory-core-host-runtime-files-CETo_g0W.js";
import { p as configureMemoryCoreDreamingState } from "./dreaming-state-B0qd2W7q.js";
import { n as closeMemorySearchManager, r as getMemorySearchManager, t as closeAllMemorySearchManagers } from "./memory-CH1HSb0C.js";
import { t as classifyWorkspaceMemoryPaths } from "./workspace-path-classifier-B-7ft2P5.js";
//#region extensions/memory-core/src/runtime-provider.ts
function createMemoryRuntime(host = {}) {
if (host.openKeyedStore) configureMemoryCoreDreamingState(host.openKeyedStore);
return {
async getMemorySearchManager(params) {
const { manager, debug, error } = await getMemorySearchManager({
...params,
...host.acquireLocalService ? { acquireLocalService: host.acquireLocalService } : {}
});
return {
manager,
debug,
error
};
},
resolveMemoryBackendConfig(params) {
return resolveMemoryBackendConfig(params);
},
async authorizeSearchHits(params) {
const { filterMemorySearchHitsBySessionVisibility } = await import("./session-search-visibility-ClyStEEy.js");
return await filterMemorySearchHitsBySessionVisibility(params);
},
classifyWorkspaceMemoryPaths,
async closeAllMemorySearchManagers() {
await closeAllMemorySearchManagers();
},
async closeMemorySearchManager(params) {
await closeMemorySearchManager(params);
}
};
}
const memoryRuntime = createMemoryRuntime();
//#endregion
export { memoryRuntime as n, createMemoryRuntime as t };