UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

73 lines (72 loc) 4.83 kB
import { r as __exportAll } from "./rolldown-runtime-Dr7-SnC6.js"; import { n as getRuntimeConfig } from "./io.runtime-B9iJRs3w.js"; import { i as loadBundledPluginPublicSurfaceModuleSyncCore } from "./facade-loader-CVT-xVW5.js"; import "./config-Cs0XXL3x.js"; import { n as createPluginStateKeyedStore } from "./plugin-state-store-C6hmUuuk.js"; import { n as createConfiguredProviderLocalServiceAcquirer } from "./provider-local-service-D9Gl9HJT.js"; //#region src/plugin-sdk/memory-core-bundled-runtime.ts var memory_core_bundled_runtime_exports = /* @__PURE__ */ __exportAll({ auditDreamingArtifacts: () => auditDreamingArtifacts, auditShortTermPromotionArtifacts: () => auditShortTermPromotionArtifacts, createEmbeddingProvider: () => createEmbeddingProvider, dedupeDreamDiaryEntries: () => dedupeDreamDiaryEntries, getMissingLocalMemoryEmbeddingProviderMessage: () => getMissingLocalMemoryEmbeddingProviderMessage, loadShortTermPromotionDreamingStats: () => loadShortTermPromotionDreamingStats, previewGroundedRemMarkdown: () => previewGroundedRemMarkdown, removeBackfillDiaryEntries: () => removeBackfillDiaryEntries, removeGroundedShortTermCandidates: () => removeGroundedShortTermCandidates, repairDreamingArtifacts: () => repairDreamingArtifacts, repairShortTermPromotionArtifacts: () => repairShortTermPromotionArtifacts, writeBackfillDiaryEntries: () => writeBackfillDiaryEntries }); function loadApiFacadeModule() { const module = loadBundledPluginPublicSurfaceModuleSyncCore({ dirName: "memory-core", artifactBasename: "api.js" }); module.configureMemoryCoreDreamingState((options) => createPluginStateKeyedStore("memory-core", options)); return module; } function loadRuntimeFacadeModule() { const module = loadBundledPluginPublicSurfaceModuleSyncCore({ dirName: "memory-core", artifactBasename: "runtime-api.js" }); module.configureMemoryCoreDreamingState((options) => createPluginStateKeyedStore("memory-core", options)); return module; } /** Returns the memory-core-owned recovery message for an absent local provider plugin. */ function getMissingLocalMemoryEmbeddingProviderMessage() { return loadApiFacadeModule().MISSING_LOCAL_MEMORY_EMBEDDING_PROVIDER_MESSAGE; } const acquireLocalService = createConfiguredProviderLocalServiceAcquirer(getRuntimeConfig); /** Create a memory embedding provider with built-in fallback metadata. */ const createEmbeddingProvider = ((options) => { const createOptions = { ...options, acquireLocalService }; return loadRuntimeFacadeModule().createEmbeddingProvider(createOptions); }); /** 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)); /** Audit dreaming diary and session-corpus artifacts through the bundled runtime facade. */ const auditDreamingArtifacts = ((...args) => loadRuntimeFacadeModule().auditDreamingArtifacts(...args)); /** Audit short-term promotion artifacts through the bundled runtime facade. */ const auditShortTermPromotionArtifacts = ((...args) => loadRuntimeFacadeModule().auditShortTermPromotionArtifacts(...args)); /** Repair or archive problematic dreaming artifacts through the bundled runtime facade. */ const repairDreamingArtifacts = ((...args) => loadRuntimeFacadeModule().repairDreamingArtifacts(...args)); /** Repair short-term promotion artifacts through the bundled runtime facade. */ const repairShortTermPromotionArtifacts = ((...args) => loadRuntimeFacadeModule().repairShortTermPromotionArtifacts(...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)); //#endregion export { memory_core_bundled_runtime_exports as a, getMissingLocalMemoryEmbeddingProviderMessage as i, auditShortTermPromotionArtifacts as n, repairDreamingArtifacts as o, createEmbeddingProvider as r, repairShortTermPromotionArtifacts as s, auditDreamingArtifacts as t };