@equationalapplications/core-llm-wiki 9.13.0 → 9.14.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.
- package/dist/{chunk-4TG7RQF6.mjs → chunk-JX7VMQ55.mjs} +126 -12
- package/dist/chunk-JX7VMQ55.mjs.map +1 -0
- package/dist/index.d.mts +18 -3
- package/dist/index.d.ts +18 -3
- package/dist/index.js +125 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{testing-DkKZcrhE.d.mts → testing-BclOvn3q.d.mts} +52 -8
- package/dist/{testing-DkKZcrhE.d.ts → testing-BclOvn3q.d.ts} +52 -8
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +123 -9
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-4TG7RQF6.mjs.map +0 -1
|
@@ -2271,10 +2271,11 @@ Keep facts concise. Do not return markdown, just raw JSON.`;
|
|
|
2271
2271
|
var HEAL_SYSTEM_PROMPT = `You are a memory grooming agent. Your job is to review a full dump of facts and recent events to resolve contradictions, downgrade stale claims, and flag obsolete facts for deletion.
|
|
2272
2272
|
Return ONLY a valid JSON object matching this schema:
|
|
2273
2273
|
{
|
|
2274
|
-
"downgraded": ["string (fact
|
|
2275
|
-
"deleted": ["string (fact
|
|
2274
|
+
"downgraded": [{ "id": "string (fact ID)", "confidence": "number 0-1" }],
|
|
2275
|
+
"deleted": [{ "id": "string (fact ID)", "confidence": "number 0-1" }],
|
|
2276
2276
|
"newFacts": [{ "title": "string (max 80 chars)", "body": "string (max 800 chars)", "tags": ["string"], "confidence": "certain|inferred|tentative" }]
|
|
2277
2277
|
}
|
|
2278
|
+
For downgraded and deleted entries, "confidence" is your confidence in that verdict.
|
|
2278
2279
|
Do not return markdown, just raw JSON.`;
|
|
2279
2280
|
var INGEST_SYSTEM_PROMPT = `You are a document ingestion agent. Your job is to extract factual knowledge from the provided document chunk.
|
|
2280
2281
|
Return ONLY a valid JSON object matching this schema:
|
|
@@ -2829,6 +2830,8 @@ var SEVERITY = {
|
|
|
2829
2830
|
hook_failed: "warn",
|
|
2830
2831
|
background_job_failed: "error",
|
|
2831
2832
|
heal_skipped: "warn",
|
|
2833
|
+
heal_deleted: "info",
|
|
2834
|
+
heal_downgraded: "info",
|
|
2832
2835
|
grounding_missing: "warn",
|
|
2833
2836
|
grounding_failed: "warn",
|
|
2834
2837
|
classification_low_confidence: "info",
|
|
@@ -2882,6 +2885,8 @@ var MESSAGE = {
|
|
|
2882
2885
|
hook_failed: "A host hook threw or rejected.",
|
|
2883
2886
|
background_job_failed: "A background maintenance job failed.",
|
|
2884
2887
|
heal_skipped: "Heal skipped a candidate fact, or the whole LLM pass when keyword search is unavailable.",
|
|
2888
|
+
heal_deleted: "Heal soft-deleted a fact (or withheld the delete below the confidence floor).",
|
|
2889
|
+
heal_downgraded: "Heal downgraded a fact to tentative (or withheld the downgrade below the confidence floor).",
|
|
2885
2890
|
grounding_missing: "A fact carried no qualifying evidence and was stored as a draft.",
|
|
2886
2891
|
grounding_failed: "A fact carried evidence not found in its source and was stored as a draft.",
|
|
2887
2892
|
classification_low_confidence: "A classifier answer was below the confidence threshold and was not applied.",
|
|
@@ -4032,6 +4037,25 @@ function resolveResolveMinConfidence(config) {
|
|
|
4032
4037
|
);
|
|
4033
4038
|
return void 0;
|
|
4034
4039
|
}
|
|
4040
|
+
function resolveSystemOneHealScreen(config) {
|
|
4041
|
+
const healScreen = config?.systemOne?.healScreen;
|
|
4042
|
+
if (healScreen !== void 0 && !isTypingMode(healScreen)) {
|
|
4043
|
+
warnOnce(
|
|
4044
|
+
`[core-llm-wiki] systemOne: \`systemOne.healScreen\` is ${formatConfigValue(healScreen)}, which is not 'auto' or 'llm'. The key is treated as unset; the default ('llm') applies.`
|
|
4045
|
+
);
|
|
4046
|
+
return "llm";
|
|
4047
|
+
}
|
|
4048
|
+
return healScreen ?? "llm";
|
|
4049
|
+
}
|
|
4050
|
+
function resolveHealScreenMinConfidence(config) {
|
|
4051
|
+
if (resolveSystemOneHealScreen(config) !== "auto") return void 0;
|
|
4052
|
+
const floor = config?.systemOne?.minConfidence?.healScreen;
|
|
4053
|
+
if (isEdgesFloor(floor)) return floor;
|
|
4054
|
+
warnOnce(
|
|
4055
|
+
floor === void 0 ? "[core-llm-wiki] systemOne: `systemOne.minConfidence.healScreen` is required when `systemOne.healScreen` is 'auto'. The heal screen is off for this site; heal stays ungated." : `[core-llm-wiki] systemOne: \`systemOne.minConfidence.healScreen\` is ${formatConfigValue(floor)}, which is not a finite number in [0.5, 1]. The heal screen is off for this site; heal stays ungated.`
|
|
4056
|
+
);
|
|
4057
|
+
return void 0;
|
|
4058
|
+
}
|
|
4035
4059
|
|
|
4036
4060
|
// src/utils/classifier.ts
|
|
4037
4061
|
var isUnit = (v) => typeof v === "number" && Number.isFinite(v) && v >= 0 && v <= 1;
|
|
@@ -5015,6 +5039,8 @@ var CONTEXT_OVERFLOW_PATTERNS = [
|
|
|
5015
5039
|
// classify as input overflow (it would split the batch and stamp a cooldown).
|
|
5016
5040
|
/(input|prompt).{0,40}exceed(s|ed)? .{0,30}(context|maximum)/i,
|
|
5017
5041
|
/context limit/i,
|
|
5042
|
+
// llama.rn (RNLlamaJSI.cpp): prompt >= n_ctx with ctx_shift off
|
|
5043
|
+
/\bcontext is full\b/i,
|
|
5018
5044
|
/too long for (the )?requested model/i,
|
|
5019
5045
|
// vLLM dual-match wording (errata E2 ruling): the regex ENFORCES the dual-match —
|
|
5020
5046
|
// "max_tokens ... too large" PLUS a context clause; a bare message is NOT overflow
|
|
@@ -8333,6 +8359,17 @@ DROP TRIGGER IF EXISTS ${ad};`);
|
|
|
8333
8359
|
* `result.remaining > 0` for convergence — see {@link HealResult.remaining}
|
|
8334
8360
|
* for what convergence means here, and for the no-progress flags
|
|
8335
8361
|
* (`searchUnavailable`, `budgetStop`) a loop must also stop on.
|
|
8362
|
+
*
|
|
8363
|
+
* Heal screen (`systemOne.healScreen: 'auto'` + `minConfidence.healScreen`):
|
|
8364
|
+
* a model-directed delete or downgrade whose valid `confidence` is below the
|
|
8365
|
+
* floor is withheld from every reader (apply, sync, removals, counts, id
|
|
8366
|
+
* lists); a missing or invalid confidence is applied unscreened. Each
|
|
8367
|
+
* model-directed move emits a `heal_deleted` / `heal_downgraded` receipt
|
|
8368
|
+
* after commit (`applied`, `applied_unscreened`, or `below_floor`), in every
|
|
8369
|
+
* mode. An `applied` receipt records that the model VERDICT was applied
|
|
8370
|
+
* (`downgradeByIds` runs unconditionally): a fact that was already at
|
|
8371
|
+
* reduced confidence still gets an `applied` receipt. A withheld delete paired with a restating `newFact` leaves the fact
|
|
8372
|
+
* live and the restatement is skipped as `fact_deduplicated`.
|
|
8336
8373
|
*/
|
|
8337
8374
|
async doRunHeal(entityId, options) {
|
|
8338
8375
|
const promptOverride = options?.promptOverride;
|
|
@@ -8346,6 +8383,7 @@ DROP TRIGGER IF EXISTS ${ad};`);
|
|
|
8346
8383
|
if (!Number.isInteger(bodyTruncationChars) || bodyTruncationChars < 1) {
|
|
8347
8384
|
throw new Error("Invalid bodyTruncationChars: must be an integer >= 1");
|
|
8348
8385
|
}
|
|
8386
|
+
const healFloor = resolveHealScreenMinConfidence(this.options.config);
|
|
8349
8387
|
const now = Date.now();
|
|
8350
8388
|
const recheckCutoff = now - HEAL_RECHECK_MS;
|
|
8351
8389
|
const orphanAfterDays = this.options.config?.orphanAfterDays !== void 0 ? this.options.config?.orphanAfterDays : 30;
|
|
@@ -8384,6 +8422,8 @@ DROP TRIGGER IF EXISTS ${ad};`);
|
|
|
8384
8422
|
downgraded: staleDowngradedIds.length,
|
|
8385
8423
|
deleted: orphanedIds.length,
|
|
8386
8424
|
newFactsCreated: 0,
|
|
8425
|
+
downgradedIds: Array.from(new Set(staleDowngradedIds)),
|
|
8426
|
+
deletedIds: Array.from(new Set(orphanedIds)),
|
|
8387
8427
|
skipped: [],
|
|
8388
8428
|
degraded: [],
|
|
8389
8429
|
remaining: counts2.eligible,
|
|
@@ -8434,10 +8474,30 @@ DROP TRIGGER IF EXISTS ${ad};`);
|
|
|
8434
8474
|
call: (prompts) => callLlm(this.options, { operation: "heal", entityId, trigger, meter: options?.meter }, prompts),
|
|
8435
8475
|
parse: (responseText, batch, prompts) => {
|
|
8436
8476
|
const result = parseJsonResponse(responseText);
|
|
8477
|
+
const normalize = (raw) => {
|
|
8478
|
+
const ids = [];
|
|
8479
|
+
const confidence = /* @__PURE__ */ new Map();
|
|
8480
|
+
if (!Array.isArray(raw)) return { ids, confidence };
|
|
8481
|
+
for (const entry of raw) {
|
|
8482
|
+
const id = typeof entry === "string" ? entry : entry?.id;
|
|
8483
|
+
if (typeof id !== "string") continue;
|
|
8484
|
+
ids.push(id);
|
|
8485
|
+
const c = typeof entry === "object" && entry !== null ? entry.confidence : void 0;
|
|
8486
|
+
if (typeof c === "number" && Number.isFinite(c) && c >= 0 && c <= 1) {
|
|
8487
|
+
const prev = confidence.get(id);
|
|
8488
|
+
if (prev === void 0 || c < prev) confidence.set(id, c);
|
|
8489
|
+
}
|
|
8490
|
+
}
|
|
8491
|
+
return { ids, confidence };
|
|
8492
|
+
};
|
|
8493
|
+
const down = normalize(result.downgraded);
|
|
8494
|
+
const del = normalize(result.deleted);
|
|
8437
8495
|
return {
|
|
8438
8496
|
batch,
|
|
8439
|
-
downgraded:
|
|
8440
|
-
deleted:
|
|
8497
|
+
downgraded: down.ids,
|
|
8498
|
+
deleted: del.ids,
|
|
8499
|
+
downgradedConfidence: down.confidence,
|
|
8500
|
+
deletedConfidence: del.confidence,
|
|
8441
8501
|
newFacts: Array.isArray(result.newFacts) ? result.newFacts : [],
|
|
8442
8502
|
corpus: corpusByPrompt.get(prompts) ?? null
|
|
8443
8503
|
};
|
|
@@ -8477,8 +8537,42 @@ DROP TRIGGER IF EXISTS ${ad};`);
|
|
|
8477
8537
|
newFactCorpora.push(batchResult.corpus);
|
|
8478
8538
|
});
|
|
8479
8539
|
}
|
|
8540
|
+
const downgradeConfidence = /* @__PURE__ */ new Map();
|
|
8541
|
+
const deleteConfidence = /* @__PURE__ */ new Map();
|
|
8542
|
+
const mergeLowest = (into, id, c) => {
|
|
8543
|
+
if (c === void 0) return;
|
|
8544
|
+
const prev = into.get(id);
|
|
8545
|
+
if (prev === void 0 || c < prev) into.set(id, c);
|
|
8546
|
+
};
|
|
8547
|
+
for (const batchResult of outcome.results) {
|
|
8548
|
+
const mutableIds = new Set(batchResult.batch.map((f) => f.id));
|
|
8549
|
+
for (const id of batchResult.downgraded) if (mutableIds.has(id)) mergeLowest(downgradeConfidence, id, batchResult.downgradedConfidence.get(id));
|
|
8550
|
+
for (const id of batchResult.deleted) if (mutableIds.has(id)) mergeLowest(deleteConfidence, id, batchResult.deletedConfidence.get(id));
|
|
8551
|
+
}
|
|
8480
8552
|
const safeDowngraded = Array.from(safeDowngradedSet);
|
|
8481
8553
|
const safeDeleted = Array.from(safeDeletedSet);
|
|
8554
|
+
const withheldDowngraded = /* @__PURE__ */ new Map();
|
|
8555
|
+
const withheldDeleted = /* @__PURE__ */ new Map();
|
|
8556
|
+
let appliedDowngraded = safeDowngraded;
|
|
8557
|
+
let appliedDeleted = safeDeleted;
|
|
8558
|
+
if (healFloor !== void 0) {
|
|
8559
|
+
const screen = (ids, confidences, withheld) => {
|
|
8560
|
+
const applied = [];
|
|
8561
|
+
for (const id of ids) {
|
|
8562
|
+
const c = confidences.get(id);
|
|
8563
|
+
if (c !== void 0 && c < healFloor) withheld.set(id, c);
|
|
8564
|
+
else applied.push(id);
|
|
8565
|
+
}
|
|
8566
|
+
return applied;
|
|
8567
|
+
};
|
|
8568
|
+
appliedDowngraded = screen(safeDowngraded, downgradeConfidence, withheldDowngraded);
|
|
8569
|
+
appliedDeleted = screen(safeDeleted, deleteConfidence, withheldDeleted);
|
|
8570
|
+
if (appliedDowngraded.some((id) => !downgradeConfidence.has(id)) || appliedDeleted.some((id) => !deleteConfidence.has(id))) {
|
|
8571
|
+
warnOnce(
|
|
8572
|
+
'[core-llm-wiki] systemOne: heal returned downgraded/deleted verdicts without a valid `confidence` (out-of-range or non-numeric), so the heal screen could not gate them and they were applied. Restore the schema \u2014 or a `healSystemPrompt` override \u2014 to the `{ "id", "confidence" }` entry contract with confidences in 0-1 (see HEAL_SYSTEM_PROMPT).'
|
|
8573
|
+
);
|
|
8574
|
+
}
|
|
8575
|
+
}
|
|
8482
8576
|
const diagBuffer = new DiagnosticBuffer();
|
|
8483
8577
|
const validNewFacts = [];
|
|
8484
8578
|
const validNewFactItemIndexes = [];
|
|
@@ -8495,10 +8589,10 @@ DROP TRIGGER IF EXISTS ${ad};`);
|
|
|
8495
8589
|
}
|
|
8496
8590
|
});
|
|
8497
8591
|
const insertedFacts = [];
|
|
8498
|
-
const uniqueDeletedFactIds = Array.from(new Set(
|
|
8592
|
+
const uniqueDeletedFactIds = Array.from(new Set(appliedDeleted));
|
|
8499
8593
|
await this.db.withTransactionAsync(async (tx) => {
|
|
8500
|
-
await this.entryRepo.downgradeByIds(
|
|
8501
|
-
await this.entryRepo.softDeleteByIds(
|
|
8594
|
+
await this.entryRepo.downgradeByIds(appliedDowngraded, entityId, tx);
|
|
8595
|
+
await this.entryRepo.softDeleteByIds(appliedDeleted, entityId, tx);
|
|
8502
8596
|
const healFactsForDedupe = await this.entryRepo.findInferredTitlesByEntityId(entityId, tx);
|
|
8503
8597
|
for (const [k, fact] of validNewFacts.entries()) {
|
|
8504
8598
|
const newTokens = titleTokens(fact.title);
|
|
@@ -8562,11 +8656,29 @@ DROP TRIGGER IF EXISTS ${ad};`);
|
|
|
8562
8656
|
for (const { item, reason } of outcome.skipped) {
|
|
8563
8657
|
diagBuffer.push({ ...diagBase, code: "heal_skipped", detail: { factId: item.id, reason } });
|
|
8564
8658
|
}
|
|
8659
|
+
const pushReceipts = (code, applied, confidences, withheld) => {
|
|
8660
|
+
for (const factId of applied) {
|
|
8661
|
+
if (healFloor !== void 0 && !confidences.has(factId)) {
|
|
8662
|
+
diagBuffer.push({ ...diagBase, code, detail: { factId, reason: "applied_unscreened" } });
|
|
8663
|
+
} else {
|
|
8664
|
+
diagBuffer.push({ ...diagBase, code, detail: { factId, reason: "applied" } });
|
|
8665
|
+
}
|
|
8666
|
+
}
|
|
8667
|
+
for (const [factId, confidence] of withheld) {
|
|
8668
|
+
diagBuffer.push({
|
|
8669
|
+
...diagBase,
|
|
8670
|
+
code,
|
|
8671
|
+
detail: { factId, reason: "below_floor", confidence }
|
|
8672
|
+
});
|
|
8673
|
+
}
|
|
8674
|
+
};
|
|
8675
|
+
pushReceipts("heal_downgraded", appliedDowngraded, downgradeConfidence, withheldDowngraded);
|
|
8676
|
+
pushReceipts("heal_deleted", appliedDeleted, deleteConfidence, withheldDeleted);
|
|
8565
8677
|
diagBuffer.flush(this.options);
|
|
8566
8678
|
const healSyncIds = Array.from(/* @__PURE__ */ new Set([
|
|
8567
8679
|
...orphanedIds,
|
|
8568
8680
|
...staleDowngradedIds,
|
|
8569
|
-
...
|
|
8681
|
+
...appliedDowngraded,
|
|
8570
8682
|
...uniqueDeletedFactIds,
|
|
8571
8683
|
...insertedFacts.map((f) => f.id)
|
|
8572
8684
|
]));
|
|
@@ -8585,13 +8697,15 @@ DROP TRIGGER IF EXISTS ${ad};`);
|
|
|
8585
8697
|
}
|
|
8586
8698
|
let scanned = outcome.skipped.length;
|
|
8587
8699
|
for (const batchResult of outcome.results) scanned += batchResult.batch.length;
|
|
8588
|
-
const allDowngraded = /* @__PURE__ */ new Set([...staleDowngradedIds, ...
|
|
8700
|
+
const allDowngraded = /* @__PURE__ */ new Set([...staleDowngradedIds, ...appliedDowngraded]);
|
|
8589
8701
|
const allDeleted = /* @__PURE__ */ new Set([...orphanedIds, ...uniqueDeletedFactIds]);
|
|
8590
8702
|
const counts = await this.entryRepo.countHealCandidatesByEntityId(entityId, recheckCutoff);
|
|
8591
8703
|
return {
|
|
8592
8704
|
scanned,
|
|
8593
8705
|
downgraded: allDowngraded.size,
|
|
8594
8706
|
deleted: allDeleted.size,
|
|
8707
|
+
downgradedIds: Array.from(allDowngraded),
|
|
8708
|
+
deletedIds: Array.from(allDeleted),
|
|
8595
8709
|
newFactsCreated: insertedFacts.length,
|
|
8596
8710
|
skipped: outcome.skipped.map(({ item, reason }) => ({ id: item.id, reason })),
|
|
8597
8711
|
degraded: healedDegraded,
|
|
@@ -11878,6 +11992,6 @@ var WriteService = class {
|
|
|
11878
11992
|
}
|
|
11879
11993
|
};
|
|
11880
11994
|
|
|
11881
|
-
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, chunkText, configureRandomSource, 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, parseStoredSourcePointer, passageFtsTablesDdl, passageFtsTriggerNames, passageFtsTriggersDdl, probePendingWork, readRebuildProgress, reanchorRebuildFingerprint, resolveContextBudget, resolveContextBudgetOrThrow, resolveDefaultChunkLength, resolveEdgeDefinitions, resolveEdgesMinConfidence, resolveGrounding, resolveLibrarianStrategy, resolveMaxPromptChars, resolveNodeType, resolveNodeTypeMatch, resolveResolveMinConfidence, resolveSystemOneEdges, resolveSystemOneResolve, resolveSystemOneTyping, resolveTypingMinConfidence, retiredTableName, runSourceRefNormalize, safeSlice, serializeSourcePointer, setupDatabase, shouldEmitOntologyReceipt, sweepChunkSql, sweepHiSql, typeSatisfies, validUsage, validateInlineEdges, validateManifest, validateSourcePointerValue, warnChangedDefaultsOnce, warnOnce, windowChunkSql, windowHiSql, writeNormalizeStamp, writeRebuildStart };
|
|
11882
|
-
//# sourceMappingURL=chunk-
|
|
11883
|
-
//# sourceMappingURL=chunk-
|
|
11995
|
+
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, chunkText, configureRandomSource, 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, parseStoredSourcePointer, passageFtsTablesDdl, passageFtsTriggerNames, passageFtsTriggersDdl, probePendingWork, readRebuildProgress, reanchorRebuildFingerprint, resolveContextBudget, resolveContextBudgetOrThrow, resolveDefaultChunkLength, resolveEdgeDefinitions, resolveEdgesMinConfidence, resolveGrounding, resolveHealScreenMinConfidence, resolveLibrarianStrategy, resolveMaxPromptChars, resolveNodeType, resolveNodeTypeMatch, resolveResolveMinConfidence, resolveSystemOneEdges, resolveSystemOneHealScreen, resolveSystemOneResolve, resolveSystemOneTyping, resolveTypingMinConfidence, retiredTableName, runSourceRefNormalize, safeSlice, serializeSourcePointer, setupDatabase, shouldEmitOntologyReceipt, sweepChunkSql, sweepHiSql, typeSatisfies, validUsage, validateInlineEdges, validateManifest, validateSourcePointerValue, warnChangedDefaultsOnce, warnOnce, windowChunkSql, windowHiSql, writeNormalizeStamp, writeRebuildStart };
|
|
11996
|
+
//# sourceMappingURL=chunk-JX7VMQ55.mjs.map
|
|
11997
|
+
//# sourceMappingURL=chunk-JX7VMQ55.mjs.map
|