/** * apps/worker — search-index module (TASK-0096). * * The single writer for the `factory-content` index: stream consumer * (primary), BullMQ reindex/reconcile/delete jobs (explicit ops), the * grant-snapshot + doc builders, and the `search_documents` mirror with its * `contentHash` reconciliation anchor. */ export { createSearchIndexConsumer, createSearchIndexWorker, ensureContentIndex, runReindex, runReconcile, handleSearchEvent, indexDocs, removeDoc, recordSearchDlq, searchIndexJobSchema, type SearchIndexOps, type ReindexCounts, type ReconcileResult, type SearchIndexJobData } from "./processor.js"; export { buildGrantSnapshot, workspaceFloorSnapshot, pageScopes, type GrantContext, type GrantScope, type GrantPrisma, type ShareLike } from "./grants.js"; export { buildPageDoc, buildBlockDocs, buildDatabaseDoc, buildRecordDoc, buildCommentDoc, buildFileDoc, buildUserDoc, contentHash, upsertMirror, deleteMirror, mirrorRefId, docIdFor, blockText, renderPropertyValue, type IndexerDeps } from "./builders.js";