@equationalapplications/core-llm-wiki 9.17.0 → 9.18.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.
@@ -375,7 +375,7 @@ var MESSAGE = {
375
375
  guidance_resolver_failed: "The per-entity guidance resolver failed; its value was not used for this pass.",
376
376
  source_pointer_unresolved: "A stored librarian fact carries no source pointer because the model answer could not yield one, or the librarian merged such an unattributed candidate into this fact in place (its derived_events list was not extended).",
377
377
  source_pointer_invalid: "Import met a malformed source pointer value and stored a null pointer.",
378
- source_event_gone: "A librarian candidate was dropped at apply time because the event it came from no longer exists (deleted outside the engine while the pass ran).",
378
+ source_event_gone: "A librarian candidate was dropped at apply time because the event it came from was no longer available: deleted (detail.reason gone) or forgotten with forget({ eventId }) (detail.reason forgotten) outside this instance while the pass ran.",
379
379
  derived_events_invalid: "Import met a malformed derived_events value and stored null.",
380
380
  source_store_source_too_large: "A source document exceeded the per-document size cap and was not stored.",
381
381
  source_store_budget_exceeded: "Storing a source document would exceed the store UTF-16 code-unit budget and it was not stored.",
@@ -2148,6 +2148,15 @@ var MetadataRepository = class extends BaseRepository {
2148
2148
  await this.db.execAsync(`VACUUM`);
2149
2149
  await this.checkpointTruncateVerified();
2150
2150
  }
2151
+ /**
2152
+ * True when `table` has `column`. A never-set-up or not-yet-migrated store
2153
+ * (the #316 recovery path) lacks columns later migrations add; callers that
2154
+ * must run there probe first.
2155
+ */
2156
+ async columnExists(table, column, tx) {
2157
+ const cols = await this.getExecutor(tx).getAllAsync(`PRAGMA table_info(${table})`);
2158
+ return cols.some((c) => c.name === column);
2159
+ }
2151
2160
  /**
2152
2161
  * Returns the set of distinct `entity_id` values across entries/tasks/events.
2153
2162
  *
@@ -2158,18 +2167,21 @@ var MetadataRepository = class extends BaseRepository {
2158
2167
  * is `entity_id COLLATE BINARY` for stable, locale-independent ordering.
2159
2168
  *
2160
2169
  * With `opts.softDeletedAtOrBefore` the walk is narrowed to entities holding
2161
- * at least one soft-deleted entry or task with `deleted_at` at or before
2170
+ * at least one soft-deleted entry, task or forgotten event with `deleted_at` at or before
2162
2171
  * that cutoff (erase's hard-delete walk, forget-erasure spec §2). Without
2163
2172
  * the option the host-facing semantics above are unchanged.
2164
2173
  */
2165
2174
  async getDistinctEntityIds(tx, opts) {
2166
2175
  const executor = this.getExecutor(tx);
2176
+ const eventTombstones = (opts?.softDeletedAll || opts?.softDeletedAtOrBefore !== void 0) && await this.columnExists(`${this.prefix}events`, "forgotten_at", tx);
2167
2177
  if (opts?.softDeletedAll) {
2168
2178
  const rows2 = await executor.getAllAsync(
2169
2179
  `SELECT DISTINCT entity_id FROM (
2170
2180
  SELECT entity_id FROM ${this.prefix}entries WHERE deleted_at IS NOT NULL
2171
2181
  UNION
2172
2182
  SELECT entity_id FROM ${this.prefix}tasks WHERE deleted_at IS NOT NULL
2183
+ ${eventTombstones ? `UNION
2184
+ SELECT entity_id FROM ${this.prefix}events WHERE forgotten_at IS NOT NULL` : ""}
2173
2185
  ) ORDER BY entity_id COLLATE BINARY`
2174
2186
  );
2175
2187
  return rows2.map((r) => r.entity_id);
@@ -2181,8 +2193,10 @@ var MetadataRepository = class extends BaseRepository {
2181
2193
  SELECT entity_id FROM ${this.prefix}entries WHERE deleted_at IS NOT NULL AND deleted_at <= ?
2182
2194
  UNION
2183
2195
  SELECT entity_id FROM ${this.prefix}tasks WHERE deleted_at IS NOT NULL AND deleted_at <= ?
2196
+ ${eventTombstones ? `UNION
2197
+ SELECT entity_id FROM ${this.prefix}events WHERE forgotten_at IS NOT NULL AND forgotten_at <= ?` : ""}
2184
2198
  ) ORDER BY entity_id COLLATE BINARY`,
2185
- [cutoff, cutoff]
2199
+ eventTombstones ? [cutoff, cutoff, cutoff] : [cutoff, cutoff]
2186
2200
  );
2187
2201
  return rows2.map((r) => r.entity_id);
2188
2202
  }
@@ -5673,7 +5687,8 @@ async function setupDatabase(db, prefix) {
5673
5687
  summary TEXT NOT NULL,
5674
5688
  related_entry_id TEXT,
5675
5689
  created_at INTEGER NOT NULL,
5676
- occurred_at INTEGER
5690
+ occurred_at INTEGER,
5691
+ forgotten_at INTEGER
5677
5692
  );
5678
5693
 
5679
5694
  CREATE INDEX IF NOT EXISTS ${prefix}events_entity_idx ON ${prefix}events(entity_id, created_at DESC);
@@ -6375,8 +6390,27 @@ var MIGRATIONS = [
6375
6390
  await addPriorValidToColumn(db, prefix);
6376
6391
  await addDerivedEventsColumn(db, prefix);
6377
6392
  }
6393
+ },
6394
+ {
6395
+ version: 19,
6396
+ description: "Nullable events.forgotten_at column and partial index marking events the host forgot with forget({ eventId }) (specs/forget-event-exclusion)",
6397
+ run: async (db, prefix) => {
6398
+ await addEventsForgottenAtColumn(db, prefix);
6399
+ await createEventsForgottenIndex(db, prefix);
6400
+ }
6378
6401
  }
6379
6402
  ];
6403
+ async function addEventsForgottenAtColumn(db, prefix) {
6404
+ const cols = await db.getAllAsync(`PRAGMA table_info(${prefix}events)`);
6405
+ if (!cols.some((c) => c.name === "forgotten_at")) {
6406
+ await db.execAsync(`ALTER TABLE ${prefix}events ADD COLUMN forgotten_at INTEGER`);
6407
+ }
6408
+ }
6409
+ async function createEventsForgottenIndex(db, prefix) {
6410
+ await db.execAsync(
6411
+ `CREATE INDEX IF NOT EXISTS ${prefix}events_forgotten_idx ON ${prefix}events(entity_id, forgotten_at) WHERE forgotten_at IS NOT NULL`
6412
+ );
6413
+ }
6380
6414
  async function addPriorValidToColumn(db, prefix) {
6381
6415
  const cols = await db.getAllAsync(`PRAGMA table_info(${prefix}entries)`);
6382
6416
  if (!cols.some((c) => c.name === "prior_valid_to")) {
@@ -6546,6 +6580,9 @@ var runLegacyLibrarianPass = async (deps, ctx) => {
6546
6580
  const { entityId, trigger } = ctx;
6547
6581
  const promptOverride = ctx.promptOverride;
6548
6582
  const events = await deps.eventRepo.getRecent(entityId, 50);
6583
+ if (events.length === 0 && await deps.eventRepo.count(entityId) > 0) {
6584
+ return { processedThrough: null, factsWritten: 0 };
6585
+ }
6549
6586
  const currentFactsRows = await deps.entryRepo.findRecentByEntityId(entityId, 100);
6550
6587
  const currentFacts = currentFactsRows.map((f) => {
6551
6588
  const { embedding: _embedding, embedding_blob: _blob, ...rest } = f;
@@ -7400,12 +7437,18 @@ async function applyOps(deps, ctx, input) {
7400
7437
  return id;
7401
7438
  };
7402
7439
  const sourceIds = [...new Set(input.gated.map((g) => g.candidate.sourceEventId).filter((x) => x !== null))];
7403
- const presentIds = sourceIds.length > 0 ? await deps.eventRepo.findExistingIds(entityId, sourceIds, tx) : /* @__PURE__ */ new Set();
7440
+ const presentIds = sourceIds.length > 0 ? await deps.eventRepo.findLiveIds(entityId, sourceIds, tx) : /* @__PURE__ */ new Set();
7441
+ const failedIds = sourceIds.filter((id) => !presentIds.has(id));
7442
+ const stillExist = failedIds.length > 0 ? await deps.eventRepo.findExistingIds(entityId, failedIds, tx) : /* @__PURE__ */ new Set();
7404
7443
  const gatedLive = [];
7405
7444
  for (const g of input.gated) {
7406
7445
  const ev = g.candidate.sourceEventId;
7407
7446
  if (ev !== null && !presentIds.has(ev)) {
7408
- input.diagnostics.push({ ...diagBase, code: "source_event_gone", detail: { itemIndex: g.candidate.index, sourceRef: ev } });
7447
+ input.diagnostics.push({
7448
+ ...diagBase,
7449
+ code: "source_event_gone",
7450
+ detail: { itemIndex: g.candidate.index, sourceRef: ev, reason: stillExist.has(ev) ? "forgotten" : "gone" }
7451
+ });
7409
7452
  continue;
7410
7453
  }
7411
7454
  gatedLive.push(g);
@@ -7847,6 +7890,21 @@ var _MaintenanceService = class _MaintenanceService {
7847
7890
  }
7848
7891
  }
7849
7892
  deletedTasks = await this.taskRepo.bulkDeletePruned(entityId, cutoff, tx, { noCutoff: softDeletedAll });
7893
+ const delOpts = { noCutoff: softDeletedAll };
7894
+ const hasForgottenCol = await this.metadataRepo.columnExists(`${this.prefix}events`, "forgotten_at", tx) && await this.eventRepo.hasDeletableForgotten(entityId, cutoff, tx, delOpts);
7895
+ const cpBefore = hasForgottenCol ? await this.metadataRepo.getCheckpoint(entityId, tx) : null;
7896
+ const memDrop = cpBefore && (cpBefore.memory ?? 0) > 0 ? await this.eventRepo.countForgottenInPrefix(entityId, cpBefore.memory, cutoff, tx, delOpts) : 0;
7897
+ const healDrop = cpBefore && (cpBefore.heal ?? 0) > 0 ? await this.eventRepo.countForgottenInPrefix(entityId, cpBefore.heal, cutoff, tx, delOpts) : 0;
7898
+ const forgottenGone = hasForgottenCol ? (await this.eventRepo.deleteForgotten(entityId, cutoff, tx, delOpts)).changes : 0;
7899
+ if (forgottenGone > 0) {
7900
+ deletedEvents += forgottenGone;
7901
+ const updates = {};
7902
+ if (memDrop > 0) updates.memory = Math.max(0, cpBefore.memory - memDrop);
7903
+ if (healDrop > 0) updates.heal = Math.max(0, cpBefore.heal - healDrop);
7904
+ if (updates.memory !== void 0 || updates.heal !== void 0) {
7905
+ await this.metadataRepo.updateCheckpoint(entityId, updates, tx);
7906
+ }
7907
+ }
7850
7908
  });
7851
7909
  if (hookLedger) {
7852
7910
  const keptSet = new Set(kept);
@@ -7867,18 +7925,20 @@ var _MaintenanceService = class _MaintenanceService {
7867
7925
  const cutoff = now - retainEventsFor * 864e5;
7868
7926
  const guarded = resolveMaintenanceMode(this.options.config) === "deferred" || resolveLibrarianStrategy(this.options.config) === "ops";
7869
7927
  let wm = null;
7928
+ let retentionDeleted = 0;
7870
7929
  await this.db.withTransactionAsync(async (tx) => {
7871
7930
  if (guarded) {
7872
7931
  wm = await this.metadataRepo.getLibrarianWatermark(entityId, tx);
7873
- deletedEvents = (await this.eventRepo.pruneThrough(entityId, cutoff, wm, tx)).changes;
7932
+ retentionDeleted = (await this.eventRepo.pruneThrough(entityId, cutoff, wm, tx)).changes;
7874
7933
  } else {
7875
- deletedEvents = (await this.eventRepo.prune(entityId, cutoff, tx)).changes;
7934
+ retentionDeleted = (await this.eventRepo.prune(entityId, cutoff, tx)).changes;
7876
7935
  }
7877
- if (deletedEvents > 0) {
7936
+ deletedEvents += retentionDeleted;
7937
+ if (retentionDeleted > 0) {
7878
7938
  const cp = await this.metadataRepo.getCheckpoint(entityId, tx);
7879
7939
  const updates = {};
7880
- if ((cp.memory ?? 0) > 0) updates.memory = Math.max(0, cp.memory - deletedEvents);
7881
- if ((cp.heal ?? 0) > 0) updates.heal = Math.max(0, cp.heal - deletedEvents);
7940
+ if ((cp.memory ?? 0) > 0) updates.memory = Math.max(0, cp.memory - retentionDeleted);
7941
+ if ((cp.heal ?? 0) > 0) updates.heal = Math.max(0, cp.heal - retentionDeleted);
7882
7942
  if (updates.memory !== void 0 || updates.heal !== void 0) {
7883
7943
  await this.metadataRepo.updateCheckpoint(entityId, updates, tx);
7884
7944
  }
@@ -8086,9 +8146,11 @@ var _MaintenanceService = class _MaintenanceService {
8086
8146
  if (report.skipped.length === 0 && report.holds.length === 0) {
8087
8147
  let remainingTombstones;
8088
8148
  try {
8149
+ const eventsTracked = await this.metadataRepo.columnExists(`${this.prefix}events`, "forgotten_at");
8089
8150
  const row = await this.db.getFirstAsync(
8090
8151
  `SELECT (SELECT COUNT(*) FROM ${this.prefix}entries WHERE deleted_at IS NOT NULL)
8091
- + (SELECT COUNT(*) FROM ${this.prefix}tasks WHERE deleted_at IS NOT NULL) AS n`
8152
+ + (SELECT COUNT(*) FROM ${this.prefix}tasks WHERE deleted_at IS NOT NULL)
8153
+ ${eventsTracked ? `+ (SELECT COUNT(*) FROM ${this.prefix}events WHERE forgotten_at IS NOT NULL)` : ""} AS n`
8092
8154
  );
8093
8155
  remainingTombstones = row?.n ?? 0;
8094
8156
  } catch (err) {
@@ -8501,6 +8563,7 @@ DROP TRIGGER IF EXISTS ${ad};`);
8501
8563
  let deletedEntries = 0;
8502
8564
  let deletedTasks = 0;
8503
8565
  let deletedEvents = 0;
8566
+ let eventMarked = 0;
8504
8567
  let chainIds = [];
8505
8568
  let chainTruncated = false;
8506
8569
  const deletedEntryIds = [];
@@ -8581,6 +8644,9 @@ DROP TRIGGER IF EXISTS ${ad};`);
8581
8644
  if (taskResult) deletedTasks++;
8582
8645
  deletedEntries += refResult;
8583
8646
  deletedEntries += pointerResult;
8647
+ if (params.eventId !== void 0) {
8648
+ eventMarked = await this.metadataRepo.columnExists(`${this.prefix}events`, "forgotten_at", tx) ? await this.eventRepo.markForgotten(entityId, params.eventId, now, tx) : 0;
8649
+ }
8584
8650
  }
8585
8651
  if (ledgerOn && this.vectorRemoval?.gate() === "hook" && deletedEntryIds.length > 0) {
8586
8652
  await this.vectorRemovalRepo?.backstopEnqueue(entityId, Array.from(new Set(deletedEntryIds)), now, tx);
@@ -8633,7 +8699,9 @@ DROP TRIGGER IF EXISTS ${ad};`);
8633
8699
  }
8634
8700
  }
8635
8701
  if (!params.clearAll) {
8636
- const base = { deleted: { entries: deletedEntries, tasks: deletedTasks } };
8702
+ const base = {
8703
+ deleted: params.eventId !== void 0 ? { entries: deletedEntries, tasks: deletedTasks, events: eventMarked } : { entries: deletedEntries, tasks: deletedTasks }
8704
+ };
8637
8705
  if (params.includeChain) {
8638
8706
  base.chainEntryIds = chainIds;
8639
8707
  if (chainTruncated) {
@@ -8739,7 +8807,8 @@ DROP TRIGGER IF EXISTS ${ad};`);
8739
8807
  }
8740
8808
  if (params.eventId !== void 0) {
8741
8809
  const entries2 = await this.entryRepo.countLiveByPointerEvent(entityId, params.eventId);
8742
- return { deleted: { entries: entries2, tasks: 0 } };
8810
+ const events = await this.metadataRepo.columnExists(`${this.prefix}events`, "forgotten_at") ? await this.eventRepo.countForgettable(entityId, params.eventId) : 0;
8811
+ return { deleted: { entries: entries2, tasks: 0, events } };
8743
8812
  }
8744
8813
  const sourceRef = params.sourceRef !== void 0 ? normalizeSourceRef(params.sourceRef) : null;
8745
8814
  if (params.sourceRef !== void 0 && !sourceRef) throw new Error("Invalid sourceRef");
@@ -10167,6 +10236,14 @@ var DEFAULT_MAX_TOTAL_CHARS = 5e6;
10167
10236
  function limitOr(value, fallback) {
10168
10237
  return typeof value === "number" && Number.isFinite(value) && value >= 0 ? Math.floor(value) : fallback;
10169
10238
  }
10239
+ function listStoredSourcesSql(prefix) {
10240
+ return `SELECT d.source_ref, d.source_hash, d.char_count, d.created_at,
10241
+ (SELECT COUNT(*) FROM ${prefix}source_passages p
10242
+ WHERE p.document_id = d.id AND +p.entity_id = d.entity_id) AS passage_count
10243
+ FROM ${prefix}source_documents d
10244
+ WHERE d.entity_id = ?
10245
+ ORDER BY d.source_ref COLLATE BINARY`;
10246
+ }
10170
10247
  var SourceStoreService = class {
10171
10248
  constructor(db, prefix, options, jobManager) {
10172
10249
  this.db = db;
@@ -10245,15 +10322,7 @@ var SourceStoreService = class {
10245
10322
  }
10246
10323
  /** Spec §4/§7: full store listing, including sources stored with no ingest. */
10247
10324
  async listStoredSources(entityId) {
10248
- const rows = await this.db.getAllAsync(
10249
- `SELECT d.source_ref, d.source_hash, d.char_count, d.created_at,
10250
- (SELECT COUNT(*) FROM ${this.prefix}source_passages p
10251
- WHERE p.entity_id = d.entity_id AND p.document_id = d.id) AS passage_count
10252
- FROM ${this.prefix}source_documents d
10253
- WHERE d.entity_id = ?
10254
- ORDER BY d.source_ref COLLATE BINARY`,
10255
- [entityId]
10256
- );
10325
+ const rows = await this.db.getAllAsync(listStoredSourcesSql(this.prefix), [entityId]);
10257
10326
  return rows.map((r) => ({
10258
10327
  sourceRef: r.source_ref,
10259
10328
  sourceHash: r.source_hash,
@@ -10526,7 +10595,7 @@ var ImportExportService = class {
10526
10595
  const [factsRaw, tasks, events, edges, summaryValue] = await Promise.all([
10527
10596
  opts?.includeBlobs ? this.entryRepo.findAllByEntityIdWithBlobs(entityId, void 0, incl) : this.entryRepo.findAllByEntityId(entityId, void 0, incl),
10528
10597
  this.taskRepo.findAllByEntityId(entityId, void 0, incl),
10529
- this.eventRepo.getByEntityId(entityId, opts?.maxEvents),
10598
+ this.eventRepo.getByEntityId(entityId, opts?.maxEvents, incl),
10530
10599
  this.edgeRepo.getByEntityId(entityId),
10531
10600
  this.metadataRepo.getMeta(entitySummaryMetaKey(entityId))
10532
10601
  ]);
@@ -10857,10 +10926,14 @@ var ImportExportService = class {
10857
10926
  summary: event.summary,
10858
10927
  related_entry_id: event.related_entry_id ?? null,
10859
10928
  created_at: stamp.createdAt,
10860
- occurred_at: stamp.occurredAt
10929
+ occurred_at: stamp.occurredAt,
10930
+ forgotten_at: event.forgotten_at ?? null
10861
10931
  },
10862
10932
  tx
10863
10933
  );
10934
+ if (!inserted && event.forgotten_at != null) {
10935
+ await this.eventRepo.markForgotten(entityId, event.id, event.forgotten_at, tx);
10936
+ }
10864
10937
  if (!inserted || stamp.reason === null) continue;
10865
10938
  if (stamp.reason === "future") clampedEvents++;
10866
10939
  else restamped[stamp.reason]++;
@@ -12504,6 +12577,6 @@ var WriteService = class {
12504
12577
  }
12505
12578
  };
12506
12579
 
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
12580
+ 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, createEventsForgottenIndex, 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 };
12581
+ //# sourceMappingURL=chunk-HH2BH2HS.mjs.map
12582
+ //# sourceMappingURL=chunk-HH2BH2HS.mjs.map