import { o as statRegularFile } from "../regular-file-Dwz6p59y.js";
import { a as MEMORY_INDEX_STATE_TABLE, c as MEMORY_INDEX_FTS_TABLE, f as dropMemoryPathFtsTriggers, g as ensureMemoryRecallMetadataSchema, h as MEMORY_INDEX_CHUNK_RECALL_METADATA_TABLE, i as MEMORY_INDEX_META_TABLE, l as MEMORY_INDEX_PATHS_FTS_TABLE, o as MEMORY_INDEX_VECTOR_TABLE, p as ensureMemoryPathFtsTriggers, r as MEMORY_EMBEDDING_CACHE_TABLE, s as MEMORY_INDEX_CHUNKS_TABLE, t as ensureMemoryIndexSchema, u as MEMORY_INDEX_SOURCES_TABLE, v as MEMORY_INDEX_CHUNK_PROVENANCE_TABLE, y as ensureMemoryChunkProvenance } from "../memory-schema-CNbyRDR-.js";
import { i as resolveMemorySearchStaleness, n as isMemoryOriginEligibleForAutomaticInjection, r as resolveMemoryIndexIdentityReason, t as isAutomaticMemoryEntryEligible } from "../types-APVGzImc.js";
import { a as cosineSimilarity, c as listMemoryFiles, d as normalizeExtraMemoryPaths, f as parseEmbedding, h as splitCuratedMarkdownEntries, i as chunkMarkdown, l as matchesExtraMemoryPathEntry, m as runMemoryHostTasksWithConcurrency, n as buildFileEntry, o as ensureMemoryHostDir, p as remapChunkLines, r as buildMultimodalChunkForIndexing, t as MEMORY_CHUNKING_VERSION, u as normalizeExtraMemoryPathEntries } from "../internal-BcRx626h.js";
import { t as isFileMissingError } from "../fs-utils-DgC06wMX.js";
import { n as retryTransientMemoryRead, r as hashText, t as isTransientMemoryReadError } from "../read-retry-C0TTotIa.js";
import { i as stripMemoryAnnotationCarriers, n as extractProjectKeysFromCuratedEntry, r as normalizeProjectAnnotationKey, t as INVALID_PROJECT_ANNOTATION_KEY } from "../curated-annotations-mTWgerpx.js";
import { a as buildMemoryReadResult, i as DEFAULT_MEMORY_READ_MAX_CHARS, n as readMemoryFile, o as buildMemoryReadResultFromSlice, r as DEFAULT_MEMORY_READ_LINES } from "../read-file-BsYrPoCG.js";
import { t as resolveMemoryBackendConfig } from "../backend-config-D3tXhXDP.js";
import { t as loadSqliteVecExtension } from "../sqlite-vec-7qoh8Zei.js";
import { a as readCuratedProjectMemoryCandidates, i as readCuratedMemoryTriggerCandidates, n as configureMemorySqliteWalMaintenance, o as readMemoryRecallMetadata, r as requireMemoryHostNodeSqlite, t as closeMemorySqliteWalMaintenance } from "../engine-storage-MMPynmDa.js";
import "../memory-core-host-engine-storage-DrggEsvm.js";
export { DEFAULT_MEMORY_READ_LINES, DEFAULT_MEMORY_READ_MAX_CHARS, INVALID_PROJECT_ANNOTATION_KEY, 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, buildFileEntry, buildMemoryReadResult, buildMemoryReadResultFromSlice, buildMultimodalChunkForIndexing, chunkMarkdown, closeMemorySqliteWalMaintenance, configureMemorySqliteWalMaintenance, cosineSimilarity, dropMemoryPathFtsTriggers, ensureMemoryHostDir as ensureDir, ensureMemoryChunkProvenance, ensureMemoryIndexSchema, ensureMemoryPathFtsTriggers, ensureMemoryRecallMetadataSchema, extractProjectKeysFromCuratedEntry, hashText, isAutomaticMemoryEntryEligible, isFileMissingError, isMemoryOriginEligibleForAutomaticInjection, isTransientMemoryReadError, listMemoryFiles, loadSqliteVecExtension, matchesExtraMemoryPathEntry, normalizeExtraMemoryPathEntries, normalizeExtraMemoryPaths, normalizeProjectAnnotationKey, parseEmbedding, readCuratedMemoryTriggerCandidates, readCuratedProjectMemoryCandidates, readMemoryFile, readMemoryRecallMetadata, remapChunkLines, requireMemoryHostNodeSqlite as requireNodeSqlite, resolveMemoryBackendConfig, resolveMemoryIndexIdentityReason, resolveMemorySearchStaleness, retryTransientMemoryRead, runMemoryHostTasksWithConcurrency as runWithConcurrency, splitCuratedMarkdownEntries, statRegularFile, stripMemoryAnnotationCarriers };
