@equationalapplications/core-llm-wiki 9.16.2 → 9.17.0

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.
@@ -246,6 +246,16 @@ function resolveSystemOneTypeOnWrite(config) {
246
246
  }
247
247
  return typeOnWrite ?? "llm";
248
248
  }
249
+ function resolveSystemOneTypeOnIngest(config) {
250
+ const typeOnIngest = config?.systemOne?.typeOnIngest;
251
+ if (typeOnIngest !== void 0 && !isTypingMode(typeOnIngest)) {
252
+ warnOnce(
253
+ `[core-llm-wiki] systemOne: \`systemOne.typeOnIngest\` is ${formatConfigValue(typeOnIngest)}, which is not 'auto' or 'llm'. The key is treated as unset; the default ('llm') applies.`
254
+ );
255
+ return "llm";
256
+ }
257
+ return typeOnIngest ?? "llm";
258
+ }
249
259
  function resolveHealScreenMinConfidence(config) {
250
260
  if (resolveSystemOneHealScreen(config) !== "auto") return void 0;
251
261
  const floor = config?.systemOne?.minConfidence?.healScreen;
@@ -1800,8 +1810,14 @@ function isManifestRepresentable(manifest) {
1800
1810
  const slugs = manifest.node_types.map((n) => n.type);
1801
1811
  return slugs.length > 0 && slugs.length + 1 <= CLASSIFIER_MAX_CHOICES && !slugs.some((s) => isReservedAbstainSlug(s));
1802
1812
  }
1813
+ function typingEngages(site, provider, mode, manifest) {
1814
+ return site === "auto" && typeof provider.classify === "function" && mode !== "off" && isManifestRepresentable(manifest);
1815
+ }
1803
1816
  function canEngageWriteTyping(config, provider, mode, manifest) {
1804
- return resolveSystemOneTypeOnWrite(config) === "auto" && typeof provider.classify === "function" && mode !== "off" && isManifestRepresentable(manifest);
1817
+ return typingEngages(resolveSystemOneTypeOnWrite(config), provider, mode, manifest);
1818
+ }
1819
+ function canEngageIngestTyping(config, provider, mode, manifest) {
1820
+ return typingEngages(resolveSystemOneTypeOnIngest(config), provider, mode, manifest);
1805
1821
  }
1806
1822
  function buildTypingQuestion(manifest) {
1807
1823
  return {
@@ -1814,9 +1830,9 @@ function buildTypingQuestion(manifest) {
1814
1830
  function volunteeredTypeResolves(rawOkfType, manifest) {
1815
1831
  return typeof rawOkfType === "string" && resolveNodeTypeMatch(rawOkfType, manifest) !== null;
1816
1832
  }
1817
- async function classifyFactsForWrite(options, ctx, facts, manifest, floor) {
1833
+ async function classifyFactsForWrite(options, ctx, facts, manifest, floor, opts) {
1818
1834
  const question = buildTypingQuestion(manifest);
1819
- const rawConcurrency = options.config?.chunkConcurrency ?? 1;
1835
+ const rawConcurrency = opts?.concurrency ?? options.config?.chunkConcurrency ?? 1;
1820
1836
  const concurrency = Number.isFinite(rawConcurrency) && rawConcurrency >= 1 ? Math.floor(rawConcurrency) : 1;
1821
1837
  let stopped = false;
1822
1838
  return withConcurrency(
@@ -1847,6 +1863,10 @@ async function classifyFactsForWrite(options, ctx, facts, manifest, floor) {
1847
1863
  concurrency
1848
1864
  );
1849
1865
  }
1866
+ function toIngestCounters(c) {
1867
+ const { unattempted: _unattempted, ...rest } = c;
1868
+ return rest;
1869
+ }
1850
1870
  function emptyTypingCounters() {
1851
1871
  return { asked: 0, typed: 0, abstained: 0, lowConfidence: 0, invalid: 0, skipped: 0, unattempted: 0 };
1852
1872
  }
@@ -3815,7 +3835,9 @@ var IngestionService = class {
3815
3835
  }
3816
3836
  const { chunks: chunks2, truncated } = chunkText(params.documentChunk, maxChunkLength, chunkOverlap);
3817
3837
  if (chunks2.length === 0) return zeroChunkResult();
3818
- const ontologyContext = await this.ontologyService?.buildWritePromptContext(entityId, { engaged: false }) ?? null;
3838
+ const hoistedState = await this.ontologyService?.getEffectiveState(entityId) ?? { mode: "off", manifest: { node_types: [], edge_types: [] } };
3839
+ const engaged = this.ontologyService !== void 0 && canEngageIngestTyping(this.options.config, this.options.llmProvider, hoistedState.mode, hoistedState.manifest);
3840
+ const ontologyContext = await this.ontologyService?.buildWritePromptContext(entityId, { engaged }) ?? null;
3819
3841
  const { guidance, diagnostic } = PromptService.resolveGuidance(this.options.config, entityId);
3820
3842
  if (diagnostic) {
3821
3843
  emitDiagnostic(this.options, {
@@ -3971,16 +3993,42 @@ var IngestionService = class {
3971
3993
  chunks: chunks2.length
3972
3994
  });
3973
3995
  }
3996
+ const typing = { outcomes: /* @__PURE__ */ new Map(), counters: emptyTypingCounters() };
3997
+ let hashHeldElsewhere = false;
3998
+ if (engaged && failedChunks === 0 && onDuplicateHash === "ingest") {
3999
+ const holder = await this.sourceRefIndexRepo.findActiveByEntityAndHash(entityId, sourceHash);
4000
+ hashHeldElsewhere = holder !== null && holder !== sourceRef;
4001
+ }
4002
+ if (engaged && !hashHeldElsewhere) {
4003
+ const asked = [];
4004
+ for (const slot of orderedChunkFacts) {
4005
+ for (const fact of slot.facts) {
4006
+ if (!volunteeredTypeResolves(fact.okf_type, hoistedState.manifest)) asked.push(fact);
4007
+ }
4008
+ }
4009
+ const outcomes = await classifyFactsForWrite(
4010
+ this.options,
4011
+ { entityId, trigger: "call", operation: "ingest" },
4012
+ asked,
4013
+ hoistedState.manifest,
4014
+ resolveTypingMinConfidence(this.options.config),
4015
+ { concurrency: chunkConcurrency }
4016
+ );
4017
+ asked.forEach((fact, i) => {
4018
+ typing.outcomes.set(fact, outcomes[i]);
4019
+ tallyTypingOutcome(typing.counters, outcomes[i]);
4020
+ });
4021
+ }
3974
4022
  const insertedFacts = [];
3975
4023
  const deletedSourceFactIds = [];
3976
4024
  try {
3977
4025
  if (failedChunks === 0) {
3978
4026
  const fullResult = await this.db.withTransactionAsync(async (tx) => {
3979
- return await this.runFullUpsertGraph(entityId, sourceRef, sourceHash, orderedChunkFacts, tx, diagBuffer, factLedger);
4027
+ return await this.runFullUpsertGraph(entityId, sourceRef, sourceHash, orderedChunkFacts, tx, diagBuffer, factLedger, typing);
3980
4028
  });
3981
4029
  deletedSourceFactIds.push(...fullResult.deletedSourceFactIds);
3982
4030
  insertedFacts.push(...fullResult.insertedFacts);
3983
- if (ontologyContext !== null && insertedFacts.length === 0 && deletedSourceFactIds.length > 0) {
4031
+ if (hoistedState.mode !== "off" && insertedFacts.length === 0 && deletedSourceFactIds.length > 0) {
3984
4032
  diagBuffer.push({
3985
4033
  entityId,
3986
4034
  operation: "ingest",
@@ -3993,7 +4041,7 @@ var IngestionService = class {
3993
4041
  const partialResult = await this.db.withTransactionAsync(async (tx) => {
3994
4042
  const flat = [];
3995
4043
  for (const slot of orderedChunkFacts) flat.push(...slot.facts);
3996
- return await this.appendPartialFacts(entityId, sourceRef, flat, tx, diagBuffer, factLedger);
4044
+ return await this.appendPartialFacts(entityId, sourceRef, flat, tx, diagBuffer, factLedger, typing);
3997
4045
  });
3998
4046
  insertedFacts.push(...partialResult.insertedDescriptors);
3999
4047
  }
@@ -4045,6 +4093,7 @@ var IngestionService = class {
4045
4093
  failedChunks
4046
4094
  };
4047
4095
  if (failedChunks > 0) result.parseFailures = failures;
4096
+ if (engaged) result.typing = toIngestCounters(typing.counters);
4048
4097
  return result;
4049
4098
  } finally {
4050
4099
  releaseIngestLocks();
@@ -4254,10 +4303,11 @@ var IngestionService = class {
4254
4303
  * On the partial path the caller never invokes this method; the empty
4255
4304
  * arrays stay empty.
4256
4305
  */
4257
- async runFullUpsertGraph(entityId, sourceRef, sourceHash, orderedChunkFacts, tx, diagBuffer, factLedger = /* @__PURE__ */ new Map()) {
4306
+ async runFullUpsertGraph(entityId, sourceRef, sourceHash, orderedChunkFacts, tx, diagBuffer, factLedger = /* @__PURE__ */ new Map(), typing) {
4258
4307
  const deletedSourceFactIds = [];
4259
4308
  const insertedFacts = [];
4260
4309
  const nodeTrust = /* @__PURE__ */ new Map();
4310
+ const diagBase = { entityId, operation: "ingest", trigger: "call" };
4261
4311
  deletedSourceFactIds.push(...await this.entryRepo.findIdsBySource(entityId, sourceRef, null, tx, false));
4262
4312
  const titleIndex = /* @__PURE__ */ new Map();
4263
4313
  const existingFacts = await this.entryRepo.findRecentByEntityId(entityId, 500, tx, sourceRef);
@@ -4271,6 +4321,7 @@ var IngestionService = class {
4271
4321
  let { mode, manifest } = ontologyState;
4272
4322
  const hostNodes = [];
4273
4323
  const rawEdgeRequests = [];
4324
+ const typedAtDoor = [];
4274
4325
  const now = Date.now();
4275
4326
  for (const { facts, ontology_updates } of orderedChunkFacts) {
4276
4327
  if (mode === "emergent" && ontology_updates && this.ontologyService) {
@@ -4290,14 +4341,15 @@ var IngestionService = class {
4290
4341
  for (const fact of facts) {
4291
4342
  const ontologyFact = fact;
4292
4343
  const id = generateId("fact_");
4293
- const validationDrops = [];
4294
- const normalized = this.ontologyService?.validateAndNormalizeFact(ontologyFact, manifest, { strict: false, drops: validationDrops }) ?? { okf_type: null, edges: [] };
4295
- for (const drop of validationDrops) {
4344
+ const outcome = typing?.outcomes.get(fact);
4345
+ const slot = normalizeForWrite(this.ontologyService, ontologyFact, manifest, mode, outcome, diagBase, id);
4346
+ const normalized = slot.normalized;
4347
+ for (const drop of slot.drops) {
4296
4348
  diagBuffer.push(edgeDropDiagnostic(drop, { entityId, operation: "ingest", trigger: "call", sourceRef, factId: id }));
4297
4349
  }
4298
- hostNodes.push({
4350
+ const hostNode = {
4299
4351
  id,
4300
- type: ontologyFact.okf_type ?? "",
4352
+ type: "",
4301
4353
  title: fact.title,
4302
4354
  body: fact.body,
4303
4355
  // Forward the LLM-extracted tags/confidence through the
@@ -4309,18 +4361,20 @@ var IngestionService = class {
4309
4361
  // 'certain' as documented.
4310
4362
  tags: fact.tags,
4311
4363
  confidence: fact.confidence
4312
- });
4364
+ };
4365
+ hostNodes.push(hostNode);
4366
+ typedAtDoor.push({ node: hostNode, fact: ontologyFact, id, outcome, slotType: normalized.okf_type });
4313
4367
  const locator = factLedger.get(fact);
4314
4368
  if (locator?.verdict) {
4315
- const outcome = groundingOutcome(locator.verdict, now);
4316
- nodeTrust.set(id, outcome.trust);
4317
- if (outcome.diagnostic) {
4369
+ const outcome2 = groundingOutcome(locator.verdict, now);
4370
+ nodeTrust.set(id, outcome2.trust);
4371
+ if (outcome2.diagnostic) {
4318
4372
  diagBuffer.push({
4319
4373
  entityId,
4320
4374
  operation: "ingest",
4321
4375
  trigger: "call",
4322
- code: outcome.diagnostic.code,
4323
- detail: { factId: id, sourceRef, chunkIndex: locator.chunkIndex, itemIndex: locator.itemIndex, reason: outcome.diagnostic.reason }
4376
+ code: outcome2.diagnostic.code,
4377
+ detail: { factId: id, sourceRef, chunkIndex: locator.chunkIndex, itemIndex: locator.itemIndex, reason: outcome2.diagnostic.reason }
4324
4378
  });
4325
4379
  }
4326
4380
  }
@@ -4331,6 +4385,18 @@ var IngestionService = class {
4331
4385
  }
4332
4386
  }
4333
4387
  }
4388
+ const doorReceipts = [];
4389
+ for (const { node, fact, id, outcome, slotType } of typedAtDoor) {
4390
+ const final = normalizeForWrite(this.ontologyService, fact, manifest, mode, outcome, diagBase, id);
4391
+ for (const receipt of final.receipts) {
4392
+ doorReceipts.push({ ...receipt, detail: { ...receipt.detail, sourceRef } });
4393
+ }
4394
+ node.type = final.normalized.okf_type ?? "";
4395
+ if (final.typedByClassifier && typing) typing.counters.typed++;
4396
+ if (outcome?.kind === "accepted" && final.normalized.okf_type !== slotType) {
4397
+ titleIndex.set(normalizeTitleKey(fact.title), { id, okf_type: final.normalized.okf_type });
4398
+ }
4399
+ }
4334
4400
  const hostEdges = [];
4335
4401
  for (const req of rawEdgeRequests) {
4336
4402
  const resolveDrops = [];
@@ -4351,6 +4417,7 @@ var IngestionService = class {
4351
4417
  hostEdges.push({ type: e.edge_type, sourceId: e.source_id, targetId: e.target_id });
4352
4418
  }
4353
4419
  }
4420
+ for (const receipt of doorReceipts) diagBuffer.push(receipt);
4354
4421
  await this.upsertGraphCore(
4355
4422
  entityId,
4356
4423
  { sourceRef, sourceHash, nodes: hostNodes, edges: hostEdges },
@@ -4379,7 +4446,7 @@ var IngestionService = class {
4379
4446
  * Runs INSIDE the caller's `tx`. Does not open a nested transaction.
4380
4447
  * Returns `{ inserted, skippedDuplicate }` for observability.
4381
4448
  */
4382
- async appendPartialFacts(entityId, sourceRef, dedupedFacts, tx, diagBuffer, factLedger = /* @__PURE__ */ new Map()) {
4449
+ async appendPartialFacts(entityId, sourceRef, dedupedFacts, tx, diagBuffer, factLedger = /* @__PURE__ */ new Map(), typing) {
4383
4450
  const liveIds = await this.entryRepo.findIdsBySource(entityId, sourceRef, null, tx, false);
4384
4451
  const liveFacts = liveIds.length === 0 ? [] : await this.entryRepo.findByIds(liveIds, void 0, tx);
4385
4452
  const liveTitles = new Set(liveFacts.map((f) => normalizeTitleKey(f.title)));
@@ -4390,6 +4457,7 @@ var IngestionService = class {
4390
4457
  for (const f of indexedFacts) {
4391
4458
  titleIndex.set(normalizeTitleKey(f.title), { id: f.id, okf_type: f.okf_type ?? null });
4392
4459
  }
4460
+ const diagBase = { entityId, operation: "ingest", trigger: "call" };
4393
4461
  const pendingEdges = [];
4394
4462
  let inserted = 0;
4395
4463
  let skippedDuplicate = 0;
@@ -4416,22 +4484,22 @@ var IngestionService = class {
4416
4484
  });
4417
4485
  }
4418
4486
  const ontologyFact = fact;
4419
- const validationDrops = [];
4420
- const normalized = this.ontologyService?.validateAndNormalizeFact(ontologyFact, manifest, { strict: false, drops: validationDrops }) ?? { okf_type: null, edges: [] };
4487
+ const { normalized, drops: validationDrops, receipts, typedByClassifier } = normalizeForWrite(
4488
+ this.ontologyService,
4489
+ ontologyFact,
4490
+ manifest,
4491
+ mode,
4492
+ typing?.outcomes.get(fact),
4493
+ diagBase,
4494
+ id
4495
+ );
4421
4496
  for (const drop of validationDrops) {
4422
4497
  diagBuffer.push(edgeDropDiagnostic(drop, { entityId, operation: "ingest", trigger: "call", sourceRef, factId: id }));
4423
4498
  }
4424
- if (shouldEmitOntologyReceipt(mode)) {
4425
- for (const receipt of nodeTypeReceipts(
4426
- { entityId, operation: "ingest", trigger: "call" },
4427
- id,
4428
- ontologyFact.okf_type ?? "",
4429
- normalized.okf_type,
4430
- normalized.match
4431
- )) {
4432
- diagBuffer.push({ ...receipt, detail: { ...receipt.detail, sourceRef } });
4433
- }
4499
+ for (const receipt of receipts) {
4500
+ diagBuffer.push({ ...receipt, detail: { ...receipt.detail, sourceRef } });
4434
4501
  }
4502
+ if (typedByClassifier && typing) typing.counters.typed++;
4435
4503
  if (normalized.edges.length > 0) {
4436
4504
  pendingEdges.push({ sourceId: id, sourceType: normalized.okf_type, edges: normalized.edges });
4437
4505
  }
@@ -12436,6 +12504,6 @@ var WriteService = class {
12436
12504
  }
12437
12505
  };
12438
12506
 
12439
- export { BaseRepository, CLASSIFIER_MAX_CHOICES, CURRENT_SCHEMA_VERSION, CheckpointIncompleteError, DEFAULT_CHUNK_OVERLAP, DEFAULT_MAX_CHUNK_LENGTH, DEFAULT_MAX_EMBED_CHARS, DEFAULT_TYPING_MIN_CONFIDENCE, DiagnosticBuffer, EMBED_CHARS_CEILING, EdgeRepository, EmbeddingService, EraseStepError, FTS5_DRAIN_CHUNK, FTS5_REBUILD_SNAPSHOT_KEY, FTS5_REBUILD_WM_KEY, FTS5_RECLAIM_MERGE_PAGES, FTS5_RETIRED_COUNTER_KEY, FTS5_RETIRED_TABLES_KEY, FTS5_STATE_KEY, FTS5_SWEEP_CURSOR_KEY, HEAL_ANCHORS_PER_CANDIDATE, HEAL_BATCH_SIZE, HEAL_MAX_FACT_BODY_CHARS_L3, HEAL_MAX_TASKS, HEAL_RECHECK_MS, HOOK_TIMEOUT_MARKER, ImportExportService, IngestionService, JobManager, MAX_EMBED_ATTEMPTS, MIGRATIONS, MaintenanceService, MetadataRepository, ONTOLOGY_ABSTAIN_SENTINEL, ONTOLOGY_BACKFILL_BATCH_SIZE, ONTOLOGY_BACKFILL_MAX_PROMPT_CHARS, ONTOLOGY_BACKFILL_RECHECK_MS, ONTOLOGY_BACKFILL_SYSTEM_PROMPT, PromptService, PrunePartialFailureError, RetrievalService, SearchService, SourceStoreService, TemporalService, UnavailableIndexStrategy, UsageMeter, VectorRemovalRepository, VectorRemovalService, WikiBusyError, WikiDraftNotFound, WikiDuplicateHashError, WikiExternalDeletionError, WikiGraphNodeOwnershipConflict, WikiIngestEmptyError, WikiInvalidReadOptions, WikiMigrationRequiredError, WikiParseError, WikiSearchUnavailableError, WikiSourceRefHashCollision, WikiStrictOntologyViolation, WikiSupersedeError, WikiTransactionError, WriteService, __privateAdd, __privateGet, __privateSet, assertEntityId, assertEpochMs, canEngageWriteTyping, chunkText, configureRandomSource, createEntriesDeletedIndex, createLegacySourceTypeIndex, createdAtValue, detectSchemaVersion, drainChunkSql, drainHiSql, edgeTripleAllowed, emitDiagnostic, emptyManifest, entityDrainChunkSql, entityDrainHiSql, entitySummaryMetaKey, extractSqliteCode, factTokenCost, fts5LedgerDropSql, fts5PendingIndexesDdl, fts5TablesDdl, fts5TriggerNames, fts5TriggersDdl, generateId, idDrainChunkSql, idReindexChunkSql, isLiveAt, isReservedAbstainSlug, isRetiredTableName, isUsableDate, isWikiSearchUnavailableError, liveAtSql, nodeTypeReceipts, normalizeSourceHash, normalizeSourceRef, normalizeTitleKey, packFactsByBudget, parseEmbedding, parseJsonArray, parseJsonObject, parseStoredDerivedEvents, parseStoredSourcePointer, passageFtsTablesDdl, passageFtsTriggerNames, passageFtsTriggersDdl, probePendingWork, readRebuildProgress, reanchorRebuildFingerprint, resolveContextBudget, resolveContextBudgetOrThrow, resolveDefaultChunkLength, resolveEdgeDefinitions, resolveEdgesMinConfidence, resolveGrounding, resolveHealScreenMinConfidence, resolveLibrarianStrategy, resolveMaxPromptChars, resolveNodeType, resolveNodeTypeMatch, resolveResolveMinConfidence, resolveSystemOneEdges, resolveSystemOneHealScreen, resolveSystemOneResolve, resolveSystemOneTypeOnWrite, resolveSystemOneTyping, resolveTypingMinConfidence, retiredTableName, runSourceRefNormalize, safeSlice, serializeDerivedEvents, serializeSourcePointer, setupDatabase, shouldEmitOntologyReceipt, sweepChunkSql, sweepHiSql, typeSatisfies, validUsage, validateDerivedEventsValue, validateInlineEdges, validateManifest, validateSourcePointerValue, warnChangedDefaultsOnce, warnOnce, windowChunkSql, windowHiSql, writeNormalizeStamp, writeRebuildStart };
12440
- //# sourceMappingURL=chunk-64ZKSSY6.mjs.map
12441
- //# sourceMappingURL=chunk-64ZKSSY6.mjs.map
12507
+ export { BaseRepository, CLASSIFIER_MAX_CHOICES, CURRENT_SCHEMA_VERSION, CheckpointIncompleteError, DEFAULT_CHUNK_OVERLAP, DEFAULT_MAX_CHUNK_LENGTH, DEFAULT_MAX_EMBED_CHARS, DEFAULT_TYPING_MIN_CONFIDENCE, DiagnosticBuffer, EMBED_CHARS_CEILING, EdgeRepository, EmbeddingService, EraseStepError, FTS5_DRAIN_CHUNK, FTS5_REBUILD_SNAPSHOT_KEY, FTS5_REBUILD_WM_KEY, FTS5_RECLAIM_MERGE_PAGES, FTS5_RETIRED_COUNTER_KEY, FTS5_RETIRED_TABLES_KEY, FTS5_STATE_KEY, FTS5_SWEEP_CURSOR_KEY, HEAL_ANCHORS_PER_CANDIDATE, HEAL_BATCH_SIZE, HEAL_MAX_FACT_BODY_CHARS_L3, HEAL_MAX_TASKS, HEAL_RECHECK_MS, HOOK_TIMEOUT_MARKER, ImportExportService, IngestionService, JobManager, MAX_EMBED_ATTEMPTS, MIGRATIONS, MaintenanceService, MetadataRepository, ONTOLOGY_ABSTAIN_SENTINEL, ONTOLOGY_BACKFILL_BATCH_SIZE, ONTOLOGY_BACKFILL_MAX_PROMPT_CHARS, ONTOLOGY_BACKFILL_RECHECK_MS, ONTOLOGY_BACKFILL_SYSTEM_PROMPT, PromptService, PrunePartialFailureError, RetrievalService, SearchService, SourceStoreService, TemporalService, UnavailableIndexStrategy, UsageMeter, VectorRemovalRepository, VectorRemovalService, WikiBusyError, WikiDraftNotFound, WikiDuplicateHashError, WikiExternalDeletionError, WikiGraphNodeOwnershipConflict, WikiIngestEmptyError, WikiInvalidReadOptions, WikiMigrationRequiredError, WikiParseError, WikiSearchUnavailableError, WikiSourceRefHashCollision, WikiStrictOntologyViolation, WikiSupersedeError, WikiTransactionError, WriteService, __privateAdd, __privateGet, __privateSet, assertEntityId, assertEpochMs, canEngageIngestTyping, canEngageWriteTyping, chunkText, configureRandomSource, createEntriesDeletedIndex, createLegacySourceTypeIndex, createdAtValue, detectSchemaVersion, drainChunkSql, drainHiSql, edgeTripleAllowed, emitDiagnostic, emptyManifest, entityDrainChunkSql, entityDrainHiSql, entitySummaryMetaKey, extractSqliteCode, factTokenCost, fts5LedgerDropSql, fts5PendingIndexesDdl, fts5TablesDdl, fts5TriggerNames, fts5TriggersDdl, generateId, idDrainChunkSql, idReindexChunkSql, isLiveAt, isReservedAbstainSlug, isRetiredTableName, isUsableDate, isWikiSearchUnavailableError, liveAtSql, nodeTypeReceipts, normalizeSourceHash, normalizeSourceRef, normalizeTitleKey, packFactsByBudget, parseEmbedding, parseJsonArray, parseJsonObject, parseStoredDerivedEvents, parseStoredSourcePointer, passageFtsTablesDdl, passageFtsTriggerNames, passageFtsTriggersDdl, probePendingWork, readRebuildProgress, reanchorRebuildFingerprint, resolveContextBudget, resolveContextBudgetOrThrow, resolveDefaultChunkLength, resolveEdgeDefinitions, resolveEdgesMinConfidence, resolveGrounding, resolveHealScreenMinConfidence, resolveLibrarianStrategy, resolveMaxPromptChars, resolveNodeType, resolveNodeTypeMatch, resolveResolveMinConfidence, resolveSystemOneEdges, resolveSystemOneHealScreen, resolveSystemOneResolve, resolveSystemOneTypeOnIngest, resolveSystemOneTypeOnWrite, resolveSystemOneTyping, resolveTypingMinConfidence, retiredTableName, runSourceRefNormalize, safeSlice, serializeDerivedEvents, serializeSourcePointer, setupDatabase, shouldEmitOntologyReceipt, sweepChunkSql, sweepHiSql, typeSatisfies, validUsage, validateDerivedEventsValue, validateInlineEdges, validateManifest, validateSourcePointerValue, warnChangedDefaultsOnce, warnOnce, windowChunkSql, windowHiSql, writeNormalizeStamp, writeRebuildStart };
12508
+ //# sourceMappingURL=chunk-QRGFHMFR.mjs.map
12509
+ //# sourceMappingURL=chunk-QRGFHMFR.mjs.map