Files
openclaw/src/plugin-sdk/memory-core-host-engine-storage.ts
T
Peter Steinberger 8dbd30ba74 feat(memory): per-entry glob patterns for extraPaths (#121209)
* feat(memory): support globbed extra paths

Allow root-relative glob patterns on existing memory.search.extraPaths entries across discovery, watching, reindex identity, and QMD migration.

* fix(memory): drop stale lease type import

* fix(memory): enforce extra path glob scope
2026-08-09 13:05:24 -07:00

93 lines
2.4 KiB
TypeScript

/**
* Public SDK subpath for memory host storage, indexing, and search primitives.
*/
export {
buildFileEntry,
buildMemoryReadResult,
buildMemoryReadResultFromSlice,
buildMultimodalChunkForIndexing,
chunkMarkdown,
closeMemorySqliteWalMaintenance,
configureMemorySqliteWalMaintenance,
cosineSimilarity,
extractProjectKeysFromCuratedEntry,
DEFAULT_MEMORY_READ_LINES,
DEFAULT_MEMORY_READ_MAX_CHARS,
dropMemoryPathFtsTriggers,
ensureDir,
ensureMemoryChunkProvenance,
ensureMemoryIndexSchema,
ensureMemoryRecallMetadataSchema,
ensureMemoryPathFtsTriggers,
hashText,
INVALID_PROJECT_ANNOTATION_KEY,
isFileMissingError,
isTransientMemoryReadError,
listMemoryFiles,
loadSqliteVecExtension,
matchesExtraMemoryPathEntry,
MEMORY_CHUNKING_VERSION,
MEMORY_EMBEDDING_CACHE_TABLE,
MEMORY_INDEX_CHUNKS_TABLE,
MEMORY_INDEX_CHUNK_PROVENANCE_TABLE,
MEMORY_INDEX_CHUNK_RECALL_METADATA_TABLE,
MEMORY_INDEX_FTS_TABLE,
MEMORY_INDEX_META_TABLE,
MEMORY_INDEX_PATHS_FTS_TABLE,
MEMORY_INDEX_SOURCES_TABLE,
MEMORY_INDEX_STATE_TABLE,
MEMORY_INDEX_VECTOR_TABLE,
normalizeProjectAnnotationKey,
normalizeExtraMemoryPathEntries,
normalizeExtraMemoryPaths,
parseEmbedding,
readMemoryFile,
readCuratedProjectMemoryCandidates,
readCuratedMemoryTriggerCandidates,
readMemoryRecallMetadata,
retryTransientMemoryRead,
remapChunkLines,
requireNodeSqlite,
resolveMemoryBackendConfig,
resolveMemorySearchStaleness,
runWithConcurrency,
splitCuratedMarkdownEntries,
statRegularFile,
stripMemoryAnnotationCarriers,
} from "../../packages/memory-host-sdk/src/engine-storage.js";
export type {
CuratedMarkdownEntry,
CuratedProjectAnnotations,
MemoryEntryProvenance,
MemoryExtraPath,
MemoryOriginClass,
MemorySearchResult,
MemorySessionKind,
MemorySource,
} from "../../packages/memory-host-sdk/src/engine-storage.js";
/** Health probe result for embedding provider availability checks. */
export type MemoryEmbeddingProbeResult = {
ok: boolean;
error?: string;
checked?: boolean;
cached?: boolean;
checkedAtMs?: number;
cacheExpiresAtMs?: number;
};
export type {
MemoryChunk,
MemoryFileEntry,
MemoryProviderStatus,
MemoryReadResult,
MemorySearchManager,
MemorySearchRuntimeDebug,
MemorySyncProgressUpdate,
MemorySessionSyncTarget,
MemorySyncParams,
ResolvedMemoryBackendConfig,
MemoryVectorIndexState,
} from "../../packages/memory-host-sdk/src/engine-storage.js";