export { openDatabase, openDatabaseReadOnly, applySchema, initializeMeta, getSchemaVersion, ensureCortexSchema, UnopenableStoreError, NewerSchemaError, CorruptSchemaVersionError, SCHEMA_VERSION } from './db/schema.js'; export { DELETABLE_SOURCE_TABLES, CortexStore, parseCommandRunRow, parseEpisodeRow, parseMemoryItemRow, parseMemoryItemSemanticRow, parseCurrentAppGraphRow, parseMemoryReferenceRow, parseRetrievalLogRow, type SessionRow, type EventRow, type ParsedEvent, type NoteRow, type ParsedNote, type NoteConflict, type InsertedNote, type StateRow, type LedgerRow, type BranchSnapshotRow, type CommandRunRow, type ParsedCommandRun, type EpisodeRow, type ParsedEpisode, type ProjectSnapshotRow, type MemoryItemRow, type ParsedMemoryItem, type MemoryItemSemanticRow, type ParsedMemoryItemSemantic, type CurrentAppGraphRow, type ParsedCurrentAppGraph, type MemoryReferenceStatus, type MemoryReferenceRow, type ParsedMemoryReference, type SemanticMemoryItemResult, type SearchMemoryItemResult, type RetrievalLogRow, type ParsedRetrievalLog, type CreateSessionOpts, type InsertEventOpts, type InsertNoteOpts, type InsertStateOpts, type InsertLedgerOpts, type InsertCommandRunOpts, type InsertEpisodeOpts, type UpsertBranchSnapshotOpts, type UpsertProjectSnapshotOpts, type UpsertMemoryItemOpts, type UpsertMemoryItemSemanticOpts, type UpsertCurrentAppGraphOpts, type UpsertMemoryReferenceOpts, type InsertRetrievalLogOpts, type UpdateMemoryItemStateOpts, type MemoryItemFilter, type ListMemoryItemsOpts, type ParsedMemoryCorrection, type RecordMemoryCorrectionOpts, type TableCounts, parseContentDigestRow, type ContentDigestRow, type ParsedContentDigest, type UpsertContentDigestOpts, type LedgerDirection, type LedgerEvidence, type LedgerTypeTotals, type LedgerDirectionTotals, type SessionLedgerTotalRow, LEDGER_DIRECTIONS, foldLedgerDirectionTotals, type SubagentDispatchRow, type ParsedSubagentDispatch, type InsertSubagentDispatchOpts, type SubagentDispatchKey } from './db/store.js'; export { handleReadEvent, handleEditEvent, handleWriteEvent, handleCmdEvent, handleAgentEvent } from './capture/hooks.js'; export { computeFileDigest, createDigestCache, resolveDigestMaxBytes, DEFAULT_DIGEST_MAX_BYTES, type FileDigest, type DigestCache, type DigestDeps } from './capture/digest.js'; export { writeDigestIndex, collectIndexRecords, renderDigestIndex, formatIndexLine, parseIndexLine, escapeIndexField, unescapeIndexField, deriveDigestIndexPath, digestIndexExists, indexLookupNeedle, DIGEST_INDEX_FILENAME, INDEX_ABSENT, INDEX_TEMP_SUFFIX, type DigestIndexRecord, type IndexWriteDeps } from './capture/digest-index.js'; export { redactCommand, redactSensitiveText, captureOutputTail, classifyCommand, extractTouchedFiles } from './capture/redact.js'; export { consolidateLevel1, renderCompressed, getPendingConsolidation, writeSessionSummary, mergeProjectState, type CompressedEvent } from './capture/consolidate.js'; export { computeMemoryHotness, deriveMemoryItemState, refreshMemoryHotness, selectWorkingMemoryItems, type ScoredMemoryItem } from './memory/hotness.js'; export { demoteMemoryState, isSupersededMemoryItem, isSupersededMemoryText, noteTrailerLines } from './memory/items.js'; export { extractMemoryReferences, type ExtractedMemoryReference, type MemoryReferenceType } from './memory/references.js'; export { detectContradiction, type ContradictionEvidence } from './memory/conflict.js'; export { normalizeFilePathKey, toScopeRelativeKey, isAbsoluteFileKey, normalizeScopePath, deriveProjectScopeKey, deriveBranchScopeKey, deriveDetachedScopeKey, formatScopeLabel, type ScopeType } from './scope/keys.js'; export { detectGitScope, type GitScopeIdentity, type GitCommandRunner } from './scope/git.js'; export { refreshCurrentAppGraph, listCurrentAppFiles, type RefreshCurrentAppGraphOptions } from './scope/app-graph.js'; export { ensureScopedSession, resolveAgentSessionId, syncBranchSnapshotForSession, type ScopeSessionOptions } from './scope/runtime.js'; export { resolveStoreIdentity, resolveRealPath, cortexHome, sanitizeLabel, computeStoreId, storeLabelFor, readRootCommitOid, STORE_ID_LENGTH, STORE_FILENAME, LEGACY_STORE_FILENAME, DEFAULT_HOME_DIR_NAME, type StoreIdentity, type ResolveStoreIdentityOptions, } from './scope/identity.js'; export { resolveProjectStore, openProjectStore, clearProjectStoreCache, migrateLegacyStore, verifyStoreCopy, findAdoptionCandidates, adoptStore, recordStoreIdentityMeta, VERIFIED_TABLES, type ResolvedProjectStore, type OpenedProjectStore, type MigrationOutcome, type MigrationAction, type CopyVerification, type AdoptionCandidate, type AdoptionOutcome, type MigrateOptions, } from './scope/store-migration.js'; export { buildHeader, buildFullState } from './query/state.js'; export { recall } from './query/recall.js'; export { brief } from './query/brief.js'; export { CONTESTED_MARKER, isContested, groupContestedAdjacent } from './query/render.js'; export { ALREADY_REJECTED_PREFIX, renderedAlternatives } from './query/render.js'; export { buildRetrievalContext, retrieveMemory, logRetrieval, type RetrievedMemoryItem, type RetrievalContext, type RetrievalResult, type RetrieveMemoryOptions, type SemanticMode, type SemanticProvider } from './query/retrieval.js'; export { validateMemoryReferences, referenceValidationScore, ReferenceValidator, type MemoryReferenceValidation, type MovedReference, type ReferenceValidatorOptions } from './query/reference-validation.js'; export { validateMemory, type MemoryValidationReport, type MemoryValidationReportItem } from './query/validate-memory.js'; export { listMemory, inspectMemory, resolvePageLimit, resolvePageOffset, DEFAULT_PAGE_LIMIT, MAX_PAGE_LIMIT, MEMORY_LIST_ORDER, ACCESS_HISTORY_LIMIT, type MemoryListOptions, type MemoryListPage, type MemoryInspection, type MemoryConflictStatus, type MemoryConflictCounterpart, type MemoryReferenceDetail, type MemoryAccessHistory, type MemoryAccessRetrieval, type MemoryCorrectionEntry } from './query/inspect.js'; export { editMemory, deleteMemory, previewMemoryDeletion, type EditMemoryResult, type MemoryDeletionPreview, type MemoryDeletionResult, type DeletionCounterpart } from './query/correct.js'; export { runDoctor, hookTemplateDigest, readTemplateStamp, expandHookPath, tokenizeCommand, resolveExecutable, extractBakedPaths, collectHookCommands, commandSatisfiesWiring, wiringKey, HOOK_SCRIPTS, TEMPLATE_ID_PLACEHOLDER, SPOOL_THRESHOLD_BYTES, SPOOL_STALE_MS, REQUIRED_WIRING, type CheckStatus, type DoctorCheck, type DoctorReport, type DoctorOptions, type RequiredWiring } from './query/doctor.js'; export { runInstall, renderHookScript, installedMatchesTemplate, classifyInstalledScript, mergeHookWiring, mergeMcpServer, mergeIgnoreEntries, writeFileAtomic, IGNORE_ENTRIES, type InstallOptions, type InstallResult, type InstallAction, type ActionOutcome, type ScriptState, type BakedPaths, type MergeResult } from './query/install.js'; export { suggestNotes, type SuggestedNote, type SuggestedNoteKind } from './query/suggest-notes.js'; export { buildSessionSummary } from './query/summarize.js'; export { buildSessionBrief, type SessionBriefOptions } from './query/session-brief.js'; export { buildSubagentBrief, briefAlreadyInPrompt, summarizeDispatchPrompt, normalizeForComparison, dispatchHorizonSeconds, dispatchCutoff, subagentBriefEnabled, SUBAGENT_BRIEF_BUDGET, SUBAGENT_BRIEF_LIMIT, PROMPT_PREFIX_MAX_CHARS, DEFAULT_DISPATCH_HORIZON_SECONDS, MAX_DISPATCH_HORIZON_SECONDS, DISPATCH_HORIZON_ENV, SUBAGENT_BRIEF_ENV, type SubagentBriefOptions, type SubagentBriefResult, type DispatchPromptSummary } from './query/subagent-brief.js'; export { buildStatsReport, renderStatsReport, MOST_RETRIEVED_LIMIT, STATS_ITEM_TEXT_MAX, type StatsReport, type StatsReportOptions, type StatsTokenBlock, type StatsMostRetrievedEntry } from './query/stats.js'; export { flushSpool, appendSpoolEntry, deriveSpoolPath, spoolSizeBytes, type SpoolEntry, type SpoolFlushResult } from './capture/spool.js'; export { isSubstitutionEnabled, setSubstitutionEnabled, renderHotPathStateLines, deriveSubstitutionFlagPath, deriveTurnReadsPath, resolveSubstMinBytes, resolveSubstMaxBytes, SUBSTITUTION_FLAG_FILENAME, TURN_READS_FILENAME, HOT_PATH_STATE_KEYS, DEFAULT_SUBST_MIN_BYTES, DEFAULT_SUBST_MAX_BYTES, type HotPathStateFacts } from './capture/substitution.js'; export { computeRootCensus, resolveCensusMaxFiles, resolveCensusMaxBytes, CENSUS_DEFAULT_MAX_FILES, CENSUS_DEFAULT_MAX_BYTES, type RootCensus, type CensusLimits } from './capture/census.js'; export { canonicalSearchQuery, searchQueryKey, normalizeSearchRoot, isCertifiableSearch, CERTIFIABLE_PATTERN, CERTIFIABLE_GLOB, CERTIFIABLE_TYPES, type SearchQuery } from './capture/search-query.js'; export { querySearchLedger, renderSearchLedger, renderSearchLedgerLine, SEARCH_LEDGER_MAX_QUERIES, SEARCH_LEDGER_TOKENS_PER_QUERY, type SearchLedgerResult, type SearchLedgerVerdict, type SearchLedgerDeps } from './query/search-ledger.js'; export { runGc, shouldAutoGc, type GcOptions, type GcReport, type GcCategoryReport } from './db/gc.js'; export { estimateTokens, buildTextMetric, evaluateStore, evaluateDatabase, type TextMetric, type TopicEvaluation, type EvaluationResult, type EvaluationOptions, type QualityComparison, type QualityEvaluation, type QualityFixture, type QualityFixtureEvaluation, type QualityScoreBreakdown } from './eval/harness.js'; export { seedStoreFromScenario, createSeededStore, type EvaluationScenario, type ScenarioMemoryItem, type ScenarioAppGraph, type SeededStore } from './eval/seed.js'; export { runEvalGate, regenerateBaseline, checkKindCoverage, checkBaselineJustification, BASELINE_TRAILER, type EvalGateOptions, type GateResult, type GateSuiteResult, type GateKindCoverage, type RegenerationReport, type BaselineJustificationVerdict, type CommitRecord } from './eval/gate.js'; export { createMcpServer, startServer, handleToolCall, TOOL_DEFINITIONS, deriveEngagementPath } from './transports/mcp.js'; export { createProgram } from './transports/cli.js'; //# sourceMappingURL=index.d.ts.map