openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
42 lines (41 loc) • 3.12 kB
JavaScript
import { n as createPluginStateKeyedStore } from "./plugin-state-store-jd1pQXxt.js";
import { r as loadBundledPluginPublicSurfaceModuleSync } from "./facade-loader-Dp8IS24b.js";
//#region src/plugin-sdk/memory-core-bundled-runtime.ts
function loadApiFacadeModule() {
const module = loadBundledPluginPublicSurfaceModuleSync({
dirName: "memory-core",
artifactBasename: "api.js"
});
module.configureMemoryCoreDreamingState((options) => createPluginStateKeyedStore("memory-core", options));
return module;
}
function loadRuntimeFacadeModule() {
const module = loadBundledPluginPublicSurfaceModuleSync({
dirName: "memory-core",
artifactBasename: "runtime-api.js"
});
module.configureMemoryCoreDreamingState((options) => createPluginStateKeyedStore("memory-core", options));
return module;
}
/** Create a memory embedding provider with built-in fallback metadata. */
const createEmbeddingProvider = ((...args) => loadRuntimeFacadeModule().createEmbeddingProvider(...args));
/** Register all built-in memory embedding provider adapters with a host registry. */
const registerBuiltInMemoryEmbeddingProviders = ((...args) => loadRuntimeFacadeModule().registerBuiltInMemoryEmbeddingProviders(...args));
/** Remove short-term recall candidates already grounded into durable memory. */
const removeGroundedShortTermCandidates = ((...args) => loadRuntimeFacadeModule().removeGroundedShortTermCandidates(...args));
/** Load short-term dreaming stats for doctor/control status. */
const loadShortTermPromotionDreamingStats = ((...args) => loadRuntimeFacadeModule().loadShortTermPromotionDreamingStats(...args));
/** Repair or archive problematic dreaming artifacts through the bundled runtime facade. */
const repairDreamingArtifacts = ((...args) => loadRuntimeFacadeModule().repairDreamingArtifacts(...args));
/** Preview grounded REM markdown facts and candidates for selected input files. */
const previewGroundedRemMarkdown = ((...args) => loadApiFacadeModule().previewGroundedRemMarkdown(...args));
/** Remove duplicate dreaming diary entries while preserving canonical records. */
const dedupeDreamDiaryEntries = ((...args) => loadApiFacadeModule().dedupeDreamDiaryEntries(...args));
/** Write synthetic/backfill dreaming diary entries for harness or migration use. */
const writeBackfillDiaryEntries = ((...args) => loadApiFacadeModule().writeBackfillDiaryEntries(...args));
/** Remove dreaming diary entries previously written by the backfill helper. */
const removeBackfillDiaryEntries = ((...args) => loadApiFacadeModule().removeBackfillDiaryEntries(...args));
/** Preview REM harness output across dreaming, grounded, and deep promotion candidates. */
const previewRemHarness = ((...args) => loadApiFacadeModule().previewRemHarness(...args));
//#endregion
export { previewRemHarness as a, removeGroundedShortTermCandidates as c, previewGroundedRemMarkdown as i, repairDreamingArtifacts as l, dedupeDreamDiaryEntries as n, registerBuiltInMemoryEmbeddingProviders as o, loadShortTermPromotionDreamingStats as r, removeBackfillDiaryEntries as s, createEmbeddingProvider as t, writeBackfillDiaryEntries as u };