@equationalapplications/core-llm-wiki 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2037,10 +2037,10 @@ var MaintenanceService = class {
2037
2037
  const validNewFacts = newFacts.map(validateFact).filter((f) => f !== null);
2038
2038
  const insertedFacts = [];
2039
2039
  const uniqueDeletedFactIds = Array.from(new Set(safeDeleted));
2040
- const healFactsForDedupe = (await this.entryRepo.findInferredTitlesByEntityId(entityId)).filter((f) => !safeDeletedSet.has(f.id));
2041
2040
  await this.db.withTransactionAsync(async (tx) => {
2042
2041
  await this.entryRepo.downgradeByIds(safeDowngraded, entityId, tx);
2043
2042
  await this.entryRepo.softDeleteByIds(safeDeleted, entityId, tx);
2043
+ const healFactsForDedupe = await this.entryRepo.findInferredTitlesByEntityId(entityId, tx);
2044
2044
  for (const fact of validNewFacts) {
2045
2045
  const newTokens = titleTokens(fact.title);
2046
2046
  let skip = false;
@@ -3554,5 +3554,5 @@ var WriteService = class {
3554
3554
  };
3555
3555
 
3556
3556
  export { BaseRepository, DEFAULT_CHUNK_OVERLAP, DEFAULT_MAX_CHUNK_LENGTH, EmbeddingService, HEAL_BATCH_SIZE, HEAL_RECHECK_MS, HOOK_TIMEOUT_MARKER, ImportExportService, IngestionService, JobManager, MaintenanceService, MetadataRepository, ONTOLOGY_BACKFILL_BATCH_SIZE, ONTOLOGY_BACKFILL_MAX_PROMPT_CHARS, ONTOLOGY_BACKFILL_RECHECK_MS, ONTOLOGY_BACKFILL_SYSTEM_PROMPT, PromptService, PrunePartialFailureError, RetrievalService, SearchService, WikiBusyError, WikiTransactionError, WriteService, __privateAdd, __privateGet, __privateSet, chunkText, configureRandomSource, emptyManifest, entitySummaryMetaKey, extractSqliteCode, generateId, normalizeSourceHash, normalizeSourceRef, normalizeTitleKey, parseEmbedding, resolveEdgeDefinitions, resolveNodeType, safeSlice, validateInlineEdges, validateManifest };
3557
- //# sourceMappingURL=chunk-DM7BKDCV.mjs.map
3558
- //# sourceMappingURL=chunk-DM7BKDCV.mjs.map
3557
+ //# sourceMappingURL=chunk-YKXCMOHH.mjs.map
3558
+ //# sourceMappingURL=chunk-YKXCMOHH.mjs.map