@equationalapplications/core-llm-wiki 9.14.0 → 9.15.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.
- package/dist/{chunk-2FCE7ZAC.mjs → chunk-JCMA74YK.mjs} +3387 -3162
- package/dist/chunk-JCMA74YK.mjs.map +1 -0
- package/dist/index.d.mts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +1222 -949
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +53 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{testing-BclOvn3q.d.mts → testing-ziEQOLjo.d.mts} +97 -29
- package/dist/{testing-BclOvn3q.d.ts → testing-ziEQOLjo.d.ts} +97 -29
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +299 -63
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-2FCE7ZAC.mjs.map +0 -1
|
@@ -8,8 +8,10 @@ import { OkfSource, OkfVerifiedEntry, OkfSourceUsageWindow } from '@equationalap
|
|
|
8
8
|
* the `'edges'` member; the resolution step added the `'resolve'` member and
|
|
9
9
|
* the heal-screen step added the `'healScreen'` member. Each landed as one
|
|
10
10
|
* new line in
|
|
11
|
-
* `SystemOneThresholdSite`, so sibling PRs merged cleanly.
|
|
12
|
-
*
|
|
11
|
+
* `SystemOneThresholdSite`, so sibling PRs merged cleanly. The type-on-write
|
|
12
|
+
* step landed the `typeOnWrite` key; it reuses the `'typing'` floor and added
|
|
13
|
+
* no `SystemOneThresholdSite` member. Nothing outside that boundary belongs
|
|
14
|
+
* here.
|
|
13
15
|
*/
|
|
14
16
|
/** Sites a System-One threshold can apply to. Exactly four members today: `'typing'`, `'edges'`, `'resolve'` and `'healScreen'` (§10 fence). */
|
|
15
17
|
type SystemOneThresholdSite = 'typing' | 'edges' | 'resolve' | 'healScreen';
|
|
@@ -60,6 +62,19 @@ interface SystemOneConfig {
|
|
|
60
62
|
* configuration that can silently discard a model-directed heal action.
|
|
61
63
|
*/
|
|
62
64
|
healScreen?: 'auto' | 'llm';
|
|
65
|
+
/**
|
|
66
|
+
* Write-time typing for the librarian (both strategies). `'llm'` (default)
|
|
67
|
+
* keeps today's write path exactly: the generative prompt carries the
|
|
68
|
+
* ontology block and the model types each fact inline, or leaves it for
|
|
69
|
+
* backfill. `'auto'` asks `llmProvider.classify` to type every fact the
|
|
70
|
+
* librarian is about to insert, inside the pass's own token meter, and the
|
|
71
|
+
* ontology block leaves the write prompt for that pass. Facts the
|
|
72
|
+
* classifier does not type are written untyped exactly as today and stay
|
|
73
|
+
* eligible for backfill. Engages only when a classifier is present and the
|
|
74
|
+
* manifest is representable. Facts typed this way carry no
|
|
75
|
+
* manifest-drawn edges. There is no `'off'`.
|
|
76
|
+
*/
|
|
77
|
+
typeOnWrite?: 'auto' | 'llm';
|
|
63
78
|
/** Per-site minimum confidence. Only the classifier path reads a floor. */
|
|
64
79
|
minConfidence?: Partial<Record<SystemOneThresholdSite, number>>;
|
|
65
80
|
/**
|
|
@@ -196,6 +211,17 @@ interface OntologyPromptContext {
|
|
|
196
211
|
ontologyManifest: string;
|
|
197
212
|
ontologyModeInstructions: string;
|
|
198
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* The ontology prompt context for the WRITE builders (ingest, librarian, ops
|
|
216
|
+
* extract; specs/type-on-write §5). Same two fields as `OntologyPromptContext`
|
|
217
|
+
* plus a literal brand, so a write context and a backfill context are not
|
|
218
|
+
* interchangeable at compile time.
|
|
219
|
+
*/
|
|
220
|
+
interface WriteOntologyPromptContext {
|
|
221
|
+
site: 'write';
|
|
222
|
+
ontologyManifest: string;
|
|
223
|
+
ontologyModeInstructions: string;
|
|
224
|
+
}
|
|
199
225
|
/** Result of a single ontology backfill run. Omissions (facts the model declined
|
|
200
226
|
* to classify) are carried by `abstained`, not derived from the other counters. */
|
|
201
227
|
interface OntologyBackfillResult {
|
|
@@ -1008,7 +1034,7 @@ type WikiDiagnosticSeverity = 'info' | 'warn' | 'error';
|
|
|
1008
1034
|
* Closed for this release series, but new codes are added in minor versions:
|
|
1009
1035
|
* hosts must tolerate codes they do not recognize.
|
|
1010
1036
|
*/
|
|
1011
|
-
type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | 'heal_deleted' | 'heal_downgraded' | 'grounding_missing' | 'grounding_failed' | 'classification_low_confidence' | 'classification_invalid' | 'classification_abstained' | 'node_type_assigned' | 'context_overflow_skipped' | 'llm_usage' | 'librarian_gate' | 'librarian_op_rejected' | 'contradicts_document' | 'ontology_backfill_held' | 'resolve_failed' | 'read_budget' | 'event_retention_held' | 'prune_checkpoint_incomplete' | 'erase_secure_delete_off' | 'erase_entity_skipped' | 'erase_retired_vtab_undroppable' | 'erase_fts_orphan_cleared' | 'erase_retired_remaining' | 'erase_tombstones_remaining' | 'erase_retired_read_failed' | 'erase_registry_sweep_skipped' | 'import_tombstone_skipped' | 'event_created_at_clamped' | 'event_created_at_restamped' | 'external_deletion_pending' | 'external_deletion_discarded' | 'guidance_too_long' | 'guidance_resolver_failed' | 'source_pointer_unresolved' | 'source_pointer_invalid' | 'source_store_source_too_large' | 'source_store_budget_exceeded' | 'source_store_hash_mismatch' | 'source_store_duplicate_hash' | 'source_store_text_not_storable' | 'node_type_dropped' | 'node_type_folded' | 'ontology_update_rejected' | 'ingest_zero_facts';
|
|
1037
|
+
type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | 'heal_deleted' | 'heal_downgraded' | 'grounding_missing' | 'grounding_failed' | 'classification_low_confidence' | 'classification_invalid' | 'classification_abstained' | 'node_type_assigned' | 'context_overflow_skipped' | 'llm_usage' | 'librarian_gate' | 'librarian_op_rejected' | 'librarian_rewritten' | 'librarian_superseded' | 'contradicts_document' | 'ontology_backfill_held' | 'resolve_failed' | 'read_budget' | 'event_retention_held' | 'prune_checkpoint_incomplete' | 'erase_secure_delete_off' | 'erase_entity_skipped' | 'erase_retired_vtab_undroppable' | 'erase_fts_orphan_cleared' | 'erase_retired_remaining' | 'erase_tombstones_remaining' | 'erase_retired_read_failed' | 'erase_registry_sweep_skipped' | 'import_tombstone_skipped' | 'event_created_at_clamped' | 'event_created_at_restamped' | 'external_deletion_pending' | 'external_deletion_discarded' | 'guidance_too_long' | 'guidance_resolver_failed' | 'source_pointer_unresolved' | 'source_pointer_invalid' | 'source_store_source_too_large' | 'source_store_budget_exceeded' | 'source_store_hash_mismatch' | 'source_store_duplicate_hash' | 'source_store_text_not_storable' | 'node_type_dropped' | 'node_type_folded' | 'ontology_update_rejected' | 'ingest_zero_facts';
|
|
1012
1038
|
/** The service run that emitted the diagnostic. */
|
|
1013
1039
|
type WikiDiagnosticOperation = 'ingest' | 'upsertGraph' | 'librarian' | 'heal' | 'ontologyBackfill' | 'reembed' | 'importDump' | 'write' | 'supersede' | 'remember' | 'read' | 'prune' | 'externalDeletion' | 'sourceStore' | 'erase';
|
|
1014
1040
|
/** `'auto'` when a write threshold started the run (auto-librarian / auto-heal); `'call'` when the host did. */
|
|
@@ -1069,6 +1095,8 @@ interface WikiDiagnosticDetail {
|
|
|
1069
1095
|
to?: string;
|
|
1070
1096
|
/** `node_type_folded` only: always `'normalize'`. */
|
|
1071
1097
|
via?: 'normalize';
|
|
1098
|
+
/** `librarian_superseded` only: the id of the fact that replaced `factId`. */
|
|
1099
|
+
replacementId?: string;
|
|
1072
1100
|
/** `node_type_assigned` only: the manifest slug the fact was typed with (≤ 64 chars). */
|
|
1073
1101
|
okfType?: string;
|
|
1074
1102
|
/** `node_type_assigned` only: which path typed the fact. */
|
|
@@ -1767,6 +1795,12 @@ interface EntityMaintenanceReport {
|
|
|
1767
1795
|
ontologyBackfillPasses: number;
|
|
1768
1796
|
/** Facts that received an okf_type during this run's ontology-backfill passes. */
|
|
1769
1797
|
typed: number;
|
|
1798
|
+
/**
|
|
1799
|
+
* Facts typed by the classifier at the librarian write door during this run
|
|
1800
|
+
* (`systemOne.typeOnWrite: 'auto'`). Absent unless write-time typing engaged
|
|
1801
|
+
* for at least one pass. Kept apart from `typed` (backfill): two writers, two counters.
|
|
1802
|
+
*/
|
|
1803
|
+
typedOnWrite?: number;
|
|
1770
1804
|
/** Set when a lock was held elsewhere; nothing ran for that job. */
|
|
1771
1805
|
busy?: LockedMaintenanceJob[];
|
|
1772
1806
|
/**
|
|
@@ -3486,6 +3520,15 @@ declare class OntologyService {
|
|
|
3486
3520
|
manifest: OntologyManifest;
|
|
3487
3521
|
}>;
|
|
3488
3522
|
buildPromptContext(entityId: string): Promise<OntologyPromptContext | null>;
|
|
3523
|
+
/**
|
|
3524
|
+
* Ontology prompt context for the WRITE builders (specs/type-on-write §5).
|
|
3525
|
+
* `null` when the mode is `'off'` or when write-time typing is `engaged`
|
|
3526
|
+
* (the classifier types the fact, so the manifest leaves the write prompt).
|
|
3527
|
+
* Backfill keeps `buildPromptContext`.
|
|
3528
|
+
*/
|
|
3529
|
+
buildWritePromptContext(entityId: string, opts: {
|
|
3530
|
+
engaged: boolean;
|
|
3531
|
+
}): Promise<WriteOntologyPromptContext | null>;
|
|
3489
3532
|
mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
|
|
3490
3533
|
manifest: OntologyManifest;
|
|
3491
3534
|
rejected: string[];
|
|
@@ -3553,6 +3596,11 @@ interface GuidanceDiagnostic {
|
|
|
3553
3596
|
};
|
|
3554
3597
|
}
|
|
3555
3598
|
|
|
3599
|
+
/** Backfill builders accept the backfill context only: a write context (branded) is rejected. */
|
|
3600
|
+
type BackfillOntologyContext = OntologyPromptContext & {
|
|
3601
|
+
site?: never;
|
|
3602
|
+
};
|
|
3603
|
+
|
|
3556
3604
|
declare class PromptService {
|
|
3557
3605
|
private globalOverrides?;
|
|
3558
3606
|
private grounding;
|
|
@@ -3588,8 +3636,12 @@ declare class PromptService {
|
|
|
3588
3636
|
private hasOntologyPlaceholders;
|
|
3589
3637
|
/** Removes ontology placeholders until none remain, so a nested form cannot reassemble one (closes CodeQL #11). */
|
|
3590
3638
|
private stripOntologyPlaceholders;
|
|
3591
|
-
|
|
3592
|
-
private
|
|
3639
|
+
/** Write-site variant (ingest, librarian, ops extract). Body identical to the backfill variant by design (specs/type-on-write §5). */
|
|
3640
|
+
private buildWriteSystemPrompt;
|
|
3641
|
+
private appendWriteOntology;
|
|
3642
|
+
/** Backfill-site variant. Body identical to the write variant by design (specs/type-on-write §5). */
|
|
3643
|
+
private buildBackfillSystemPrompt;
|
|
3644
|
+
private appendBackfillOntology;
|
|
3593
3645
|
buildIngestPrompt(documentChunk: string, runtimeOverride?: string, ontologyContext?: OntologyPromptContext | null, guidance?: string): {
|
|
3594
3646
|
systemPrompt: string;
|
|
3595
3647
|
userPrompt: string;
|
|
@@ -3629,7 +3681,7 @@ declare class PromptService {
|
|
|
3629
3681
|
degraded: DegradedRecord[];
|
|
3630
3682
|
groundingCorpus?: string[];
|
|
3631
3683
|
};
|
|
3632
|
-
buildOntologyBackfillPrompt(facts: unknown[], runtimeOverride?: string, ontologyContext?:
|
|
3684
|
+
buildOntologyBackfillPrompt(facts: unknown[], runtimeOverride?: string, ontologyContext?: BackfillOntologyContext | null, candidateSections?: string): {
|
|
3633
3685
|
systemPrompt: string;
|
|
3634
3686
|
userPrompt: string;
|
|
3635
3687
|
};
|
|
@@ -3661,7 +3713,21 @@ declare class PromptService {
|
|
|
3661
3713
|
* placeholders and leaves data placeholders verbatim; heal never receives
|
|
3662
3714
|
* ontology context, matching `buildHealPrompt`.
|
|
3663
3715
|
*/
|
|
3664
|
-
buildInstructionTemplates(
|
|
3716
|
+
buildInstructionTemplates(writeContext: OntologyPromptContext | null, librarianStrategy: 'legacy' | 'ops', guidance?: string,
|
|
3717
|
+
/**
|
|
3718
|
+
* The backfill context (specs/type-on-write §5). Omitted: derived from
|
|
3719
|
+
* `writeContext`, which preserves the single-context behavior of this
|
|
3720
|
+
* method before the split. `WikiMemory.getInstructions` passes it
|
|
3721
|
+
* explicitly because an engaged entity's write context is `null` while
|
|
3722
|
+
* its backfill prompt still carries the manifest.
|
|
3723
|
+
*/
|
|
3724
|
+
backfillContext?: BackfillOntologyContext | null,
|
|
3725
|
+
/**
|
|
3726
|
+
* The ingest write context. Omitted: `writeContext`. `getInstructions`
|
|
3727
|
+
* passes the un-engaged context here because write-time typing governs the
|
|
3728
|
+
* librarian only (specs/type-on-write §5, step-14 seam).
|
|
3729
|
+
*/
|
|
3730
|
+
ingestContext?: OntologyPromptContext | null): WikiInstructions;
|
|
3665
3731
|
}
|
|
3666
3732
|
|
|
3667
3733
|
declare class IngestionService {
|
|
@@ -3991,18 +4057,21 @@ declare class UsageMeter {
|
|
|
3991
4057
|
}
|
|
3992
4058
|
|
|
3993
4059
|
/**
|
|
3994
|
-
*
|
|
3995
|
-
*
|
|
3996
|
-
*
|
|
3997
|
-
* editing the body. The verbatim legacy move lives in `legacy.ts`; the
|
|
3998
|
-
* dispatcher in `index.ts` is the only place that knows which strategies
|
|
3999
|
-
* exist. New strategies register there.
|
|
4000
|
-
*
|
|
4001
|
-
* `LibrarianStrategy` is the contract every implementation satisfies. The
|
|
4002
|
-
* pass is identified by its `(entityId, trigger, promptOverride?, meter?)`
|
|
4003
|
-
* context; the strategy returns what it processed so the caller can
|
|
4004
|
-
* advance checkpoints / watermarks.
|
|
4060
|
+
* Upper bound on one classifier choice question (specs/system-one-config §5):
|
|
4061
|
+
* manifest slugs plus the abstain sentinel. Owned here so the backfill site
|
|
4062
|
+
* and the write site cannot drift; `MaintenanceService` re-exports it.
|
|
4005
4063
|
*/
|
|
4064
|
+
declare const CLASSIFIER_MAX_CHOICES: 255;
|
|
4065
|
+
/** Per-pass typing counters (specs/type-on-write §8). */
|
|
4066
|
+
interface TypingCounters {
|
|
4067
|
+
asked: number;
|
|
4068
|
+
typed: number;
|
|
4069
|
+
abstained: number;
|
|
4070
|
+
lowConfidence: number;
|
|
4071
|
+
invalid: number;
|
|
4072
|
+
skipped: number;
|
|
4073
|
+
unattempted: number;
|
|
4074
|
+
}
|
|
4006
4075
|
|
|
4007
4076
|
/** Per-pass inputs the caller decides; the strategy cannot derive these. */
|
|
4008
4077
|
interface LibrarianContext {
|
|
@@ -4047,18 +4116,17 @@ interface LibrarianResult {
|
|
|
4047
4116
|
budgetStop?: {
|
|
4048
4117
|
requiredEstimate: number;
|
|
4049
4118
|
};
|
|
4119
|
+
/** Present only when write-time typing engaged for the pass (type-on-write §8). */
|
|
4120
|
+
typing?: TypingCounters;
|
|
4121
|
+
/** Ops only, internal: ids of existing facts the pass rewrote in place (type-on-write §9). */
|
|
4122
|
+
rewrittenIds?: string[];
|
|
4123
|
+
/** Ops only, internal: ids of facts the pass superseded (type-on-write §9). */
|
|
4124
|
+
supersededIds?: string[];
|
|
4050
4125
|
}
|
|
4051
4126
|
|
|
4052
4127
|
declare const ONTOLOGY_BACKFILL_BATCH_SIZE = 25;
|
|
4053
4128
|
|
|
4054
4129
|
declare const ONTOLOGY_BACKFILL_RECHECK_MS: number;
|
|
4055
|
-
/**
|
|
4056
|
-
* Upper bound on one classifier choice question (specs/system-one-config §5):
|
|
4057
|
-
* manifest slugs plus the abstain sentinel. A manifest with more slugs than
|
|
4058
|
-
* the cap allows, or carrying the reserved sentinel slug, falls back to the
|
|
4059
|
-
* generative path for the pass.
|
|
4060
|
-
*/
|
|
4061
|
-
declare const CLASSIFIER_MAX_CHOICES: 255;
|
|
4062
4130
|
|
|
4063
4131
|
/**
|
|
4064
4132
|
* Heal candidates fetched per pass. Bounds the pool runBatched draws from, not
|
|
@@ -4480,8 +4548,8 @@ declare class MaintenanceScheduler {
|
|
|
4480
4548
|
* `budget_too_small` > `complete`. `budget_too_small` means a job's smallest
|
|
4481
4549
|
* unit needs more than the WHOLE budget — that job is skipped this run and
|
|
4482
4550
|
* the run continues; `budget_exhausted` means a unit needs more than what
|
|
4483
|
-
* REMAINS — the run stops. The token budget meters
|
|
4484
|
-
*
|
|
4551
|
+
* REMAINS — the run stops. The token budget meters generation and classify
|
|
4552
|
+
* calls; embeddings are never metered.
|
|
4485
4553
|
*/
|
|
4486
4554
|
run(opts?: RunPendingMaintenanceOptions): Promise<RunPendingMaintenanceResult>;
|
|
4487
4555
|
/**
|
|
@@ -5331,5 +5399,5 @@ declare class WikiMemory {
|
|
|
5331
5399
|
setGeneratedByTask(taskId: string, entityId: string, actor: string): Promise<void>;
|
|
5332
5400
|
}
|
|
5333
5401
|
|
|
5334
|
-
export { HEAL_RECHECK_MS as A, HOOK_TIMEOUT_MARKER as B, CLASSIFIER_MAX_CHOICES as C, HEAL_BATCH_SIZE as H, ONTOLOGY_ABSTAIN_SENTINEL as Y, ONTOLOGY_BACKFILL_BATCH_SIZE as Z, ONTOLOGY_BACKFILL_RECHECK_MS as _,
|
|
5335
|
-
export type { OntologyBackfillResult as $, DegradedRecord as D, EmbedFactResult as E, FormatContextOptions as F, GraphNeighborhood as G, HealResult as I, ImportDumpResult as J, IngestDocumentResult as K, LLMProvider as L, MemoryBundle as M, LibrarianConfig as N, OntologyMode as O, LibrarianGateConfig as P, LockedMaintenanceJob as Q, ReadOptions as R, SQLiteAdapter as S, MaintenanceJob as T, MaintenanceStopReason as U, MemoryDumpEntity as V, WikiConfig as W, MigrationPolicy as X, MemoryDump as a, OntologyEdgeType as a0, OntologyManifest as a1, OntologyNodeType as a2, OntologyPromptContext as a3, OntologyUpdates as a4, PendingMaintenance as a5, PendingMigrationWork as a6, PendingSourceStatus as a7, PromptOverrides as a8, WikiEdge as aC, WikiEvent as aD, WikiFact as aF, WikiInstructions as aI, WikiLintReport as aK, WikiMemoryTestAccess as aL, WikiOutboxEvent as aN, WikiSourcePointer as aQ, WikiSupersedeReason as aU, WikiTask as aV, ReembedResult as ab, RememberInput as ac, RunPendingMaintenanceOptions as ad, RunPendingMaintenanceResult as ae, SourcePassage as af, StoreSourceResult as ag, StoredSource as ah, StoredSourceDump as ai, StoredSourceSummary as aj, SupersedeReplacement as ak, SystemOneConfig as al, SystemOneThresholdSite as am, VectorRanker as an, VectorRankerFallback as ao, VectorRankerRankArgs as ap, VectorRankerSemanticResult as aq, WikiBusyOperation as as, WikiCheckpoint as at, WikiDiagnostic as au, WikiDiagnosticCode as av, WikiDiagnosticDetail as aw, WikiDiagnosticOperation as ax, WikiDiagnosticSeverity as ay, WikiDiagnosticTrigger as az, FormattedMemoryDump as b, OntologyConfig as c, WikiOptions as d, ChunkFailure as g, ClassifierAnswer as h, ClassifierQuestion as i, ClassifyRequest as j, ClassifyResponse as k, DraftPage as l, EmbedFailureKind as m, EmbeddingMarkerKind as n, EntityMaintenanceReport as o, EntityStatus as p, EraseReport as q, ExtractedFact as s, ExtractedFactEdge as t, ExtractedFactWithOntology as u, ExtractedTask as v, ForgetParams as w, ForgetResult as x, GraphTraversalOptions as y, GroundingConfig as z };
|
|
5402
|
+
export { HEAL_RECHECK_MS as A, HOOK_TIMEOUT_MARKER as B, CLASSIFIER_MAX_CHOICES as C, HEAL_BATCH_SIZE as H, ONTOLOGY_ABSTAIN_SENTINEL as Y, ONTOLOGY_BACKFILL_BATCH_SIZE as Z, ONTOLOGY_BACKFILL_RECHECK_MS as _, EmbeddingService as a$, PromptService as a9, WikiDraftNotFound as aA, WikiDuplicateHashError as aB, WikiExternalDeletionError as aE, WikiGraphNodeOwnershipConflict as aG, WikiIngestEmptyError as aH, WikiInvalidReadOptions as aJ, WikiMigrationRequiredError as aM, WikiParseError as aO, WikiSearchUnavailableError as aP, WikiSourceRefHashCollision as aR, WikiStrictOntologyViolation as aS, WikiSupersedeError as aT, WikiTransactionError as aW, isReservedAbstainSlug as aY, isWikiSearchUnavailableError as aZ, validateManifest as a_, PrunePartialFailureError as aa, WikiBusyError as ar, ImportExportService as b0, IngestionService as b1, JobManager as b2, MaintenanceService as b3, RetrievalService as b4, SearchService as b5, WriteService as b6, WikiMemory as e, CheckpointIncompleteError as f, EraseStepError as r };
|
|
5403
|
+
export type { OntologyBackfillResult as $, DegradedRecord as D, EmbedFactResult as E, FormatContextOptions as F, GraphNeighborhood as G, HealResult as I, ImportDumpResult as J, IngestDocumentResult as K, LLMProvider as L, MemoryBundle as M, LibrarianConfig as N, OntologyMode as O, LibrarianGateConfig as P, LockedMaintenanceJob as Q, ReadOptions as R, SQLiteAdapter as S, MaintenanceJob as T, MaintenanceStopReason as U, MemoryDumpEntity as V, WikiConfig as W, MigrationPolicy as X, MemoryDump as a, OntologyEdgeType as a0, OntologyManifest as a1, OntologyNodeType as a2, OntologyPromptContext as a3, OntologyUpdates as a4, PendingMaintenance as a5, PendingMigrationWork as a6, PendingSourceStatus as a7, PromptOverrides as a8, WikiEdge as aC, WikiEvent as aD, WikiFact as aF, WikiInstructions as aI, WikiLintReport as aK, WikiMemoryTestAccess as aL, WikiOutboxEvent as aN, WikiSourcePointer as aQ, WikiSupersedeReason as aU, WikiTask as aV, WriteOntologyPromptContext as aX, ReembedResult as ab, RememberInput as ac, RunPendingMaintenanceOptions as ad, RunPendingMaintenanceResult as ae, SourcePassage as af, StoreSourceResult as ag, StoredSource as ah, StoredSourceDump as ai, StoredSourceSummary as aj, SupersedeReplacement as ak, SystemOneConfig as al, SystemOneThresholdSite as am, VectorRanker as an, VectorRankerFallback as ao, VectorRankerRankArgs as ap, VectorRankerSemanticResult as aq, WikiBusyOperation as as, WikiCheckpoint as at, WikiDiagnostic as au, WikiDiagnosticCode as av, WikiDiagnosticDetail as aw, WikiDiagnosticOperation as ax, WikiDiagnosticSeverity as ay, WikiDiagnosticTrigger as az, FormattedMemoryDump as b, OntologyConfig as c, WikiOptions as d, ChunkFailure as g, ClassifierAnswer as h, ClassifierQuestion as i, ClassifyRequest as j, ClassifyResponse as k, DraftPage as l, EmbedFailureKind as m, EmbeddingMarkerKind as n, EntityMaintenanceReport as o, EntityStatus as p, EraseReport as q, ExtractedFact as s, ExtractedFactEdge as t, ExtractedFactWithOntology as u, ExtractedTask as v, ForgetParams as w, ForgetResult as x, GraphTraversalOptions as y, GroundingConfig as z };
|
|
@@ -8,8 +8,10 @@ import { OkfSource, OkfVerifiedEntry, OkfSourceUsageWindow } from '@equationalap
|
|
|
8
8
|
* the `'edges'` member; the resolution step added the `'resolve'` member and
|
|
9
9
|
* the heal-screen step added the `'healScreen'` member. Each landed as one
|
|
10
10
|
* new line in
|
|
11
|
-
* `SystemOneThresholdSite`, so sibling PRs merged cleanly.
|
|
12
|
-
*
|
|
11
|
+
* `SystemOneThresholdSite`, so sibling PRs merged cleanly. The type-on-write
|
|
12
|
+
* step landed the `typeOnWrite` key; it reuses the `'typing'` floor and added
|
|
13
|
+
* no `SystemOneThresholdSite` member. Nothing outside that boundary belongs
|
|
14
|
+
* here.
|
|
13
15
|
*/
|
|
14
16
|
/** Sites a System-One threshold can apply to. Exactly four members today: `'typing'`, `'edges'`, `'resolve'` and `'healScreen'` (§10 fence). */
|
|
15
17
|
type SystemOneThresholdSite = 'typing' | 'edges' | 'resolve' | 'healScreen';
|
|
@@ -60,6 +62,19 @@ interface SystemOneConfig {
|
|
|
60
62
|
* configuration that can silently discard a model-directed heal action.
|
|
61
63
|
*/
|
|
62
64
|
healScreen?: 'auto' | 'llm';
|
|
65
|
+
/**
|
|
66
|
+
* Write-time typing for the librarian (both strategies). `'llm'` (default)
|
|
67
|
+
* keeps today's write path exactly: the generative prompt carries the
|
|
68
|
+
* ontology block and the model types each fact inline, or leaves it for
|
|
69
|
+
* backfill. `'auto'` asks `llmProvider.classify` to type every fact the
|
|
70
|
+
* librarian is about to insert, inside the pass's own token meter, and the
|
|
71
|
+
* ontology block leaves the write prompt for that pass. Facts the
|
|
72
|
+
* classifier does not type are written untyped exactly as today and stay
|
|
73
|
+
* eligible for backfill. Engages only when a classifier is present and the
|
|
74
|
+
* manifest is representable. Facts typed this way carry no
|
|
75
|
+
* manifest-drawn edges. There is no `'off'`.
|
|
76
|
+
*/
|
|
77
|
+
typeOnWrite?: 'auto' | 'llm';
|
|
63
78
|
/** Per-site minimum confidence. Only the classifier path reads a floor. */
|
|
64
79
|
minConfidence?: Partial<Record<SystemOneThresholdSite, number>>;
|
|
65
80
|
/**
|
|
@@ -196,6 +211,17 @@ interface OntologyPromptContext {
|
|
|
196
211
|
ontologyManifest: string;
|
|
197
212
|
ontologyModeInstructions: string;
|
|
198
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* The ontology prompt context for the WRITE builders (ingest, librarian, ops
|
|
216
|
+
* extract; specs/type-on-write §5). Same two fields as `OntologyPromptContext`
|
|
217
|
+
* plus a literal brand, so a write context and a backfill context are not
|
|
218
|
+
* interchangeable at compile time.
|
|
219
|
+
*/
|
|
220
|
+
interface WriteOntologyPromptContext {
|
|
221
|
+
site: 'write';
|
|
222
|
+
ontologyManifest: string;
|
|
223
|
+
ontologyModeInstructions: string;
|
|
224
|
+
}
|
|
199
225
|
/** Result of a single ontology backfill run. Omissions (facts the model declined
|
|
200
226
|
* to classify) are carried by `abstained`, not derived from the other counters. */
|
|
201
227
|
interface OntologyBackfillResult {
|
|
@@ -1008,7 +1034,7 @@ type WikiDiagnosticSeverity = 'info' | 'warn' | 'error';
|
|
|
1008
1034
|
* Closed for this release series, but new codes are added in minor versions:
|
|
1009
1035
|
* hosts must tolerate codes they do not recognize.
|
|
1010
1036
|
*/
|
|
1011
|
-
type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | 'heal_deleted' | 'heal_downgraded' | 'grounding_missing' | 'grounding_failed' | 'classification_low_confidence' | 'classification_invalid' | 'classification_abstained' | 'node_type_assigned' | 'context_overflow_skipped' | 'llm_usage' | 'librarian_gate' | 'librarian_op_rejected' | 'contradicts_document' | 'ontology_backfill_held' | 'resolve_failed' | 'read_budget' | 'event_retention_held' | 'prune_checkpoint_incomplete' | 'erase_secure_delete_off' | 'erase_entity_skipped' | 'erase_retired_vtab_undroppable' | 'erase_fts_orphan_cleared' | 'erase_retired_remaining' | 'erase_tombstones_remaining' | 'erase_retired_read_failed' | 'erase_registry_sweep_skipped' | 'import_tombstone_skipped' | 'event_created_at_clamped' | 'event_created_at_restamped' | 'external_deletion_pending' | 'external_deletion_discarded' | 'guidance_too_long' | 'guidance_resolver_failed' | 'source_pointer_unresolved' | 'source_pointer_invalid' | 'source_store_source_too_large' | 'source_store_budget_exceeded' | 'source_store_hash_mismatch' | 'source_store_duplicate_hash' | 'source_store_text_not_storable' | 'node_type_dropped' | 'node_type_folded' | 'ontology_update_rejected' | 'ingest_zero_facts';
|
|
1037
|
+
type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | 'heal_deleted' | 'heal_downgraded' | 'grounding_missing' | 'grounding_failed' | 'classification_low_confidence' | 'classification_invalid' | 'classification_abstained' | 'node_type_assigned' | 'context_overflow_skipped' | 'llm_usage' | 'librarian_gate' | 'librarian_op_rejected' | 'librarian_rewritten' | 'librarian_superseded' | 'contradicts_document' | 'ontology_backfill_held' | 'resolve_failed' | 'read_budget' | 'event_retention_held' | 'prune_checkpoint_incomplete' | 'erase_secure_delete_off' | 'erase_entity_skipped' | 'erase_retired_vtab_undroppable' | 'erase_fts_orphan_cleared' | 'erase_retired_remaining' | 'erase_tombstones_remaining' | 'erase_retired_read_failed' | 'erase_registry_sweep_skipped' | 'import_tombstone_skipped' | 'event_created_at_clamped' | 'event_created_at_restamped' | 'external_deletion_pending' | 'external_deletion_discarded' | 'guidance_too_long' | 'guidance_resolver_failed' | 'source_pointer_unresolved' | 'source_pointer_invalid' | 'source_store_source_too_large' | 'source_store_budget_exceeded' | 'source_store_hash_mismatch' | 'source_store_duplicate_hash' | 'source_store_text_not_storable' | 'node_type_dropped' | 'node_type_folded' | 'ontology_update_rejected' | 'ingest_zero_facts';
|
|
1012
1038
|
/** The service run that emitted the diagnostic. */
|
|
1013
1039
|
type WikiDiagnosticOperation = 'ingest' | 'upsertGraph' | 'librarian' | 'heal' | 'ontologyBackfill' | 'reembed' | 'importDump' | 'write' | 'supersede' | 'remember' | 'read' | 'prune' | 'externalDeletion' | 'sourceStore' | 'erase';
|
|
1014
1040
|
/** `'auto'` when a write threshold started the run (auto-librarian / auto-heal); `'call'` when the host did. */
|
|
@@ -1069,6 +1095,8 @@ interface WikiDiagnosticDetail {
|
|
|
1069
1095
|
to?: string;
|
|
1070
1096
|
/** `node_type_folded` only: always `'normalize'`. */
|
|
1071
1097
|
via?: 'normalize';
|
|
1098
|
+
/** `librarian_superseded` only: the id of the fact that replaced `factId`. */
|
|
1099
|
+
replacementId?: string;
|
|
1072
1100
|
/** `node_type_assigned` only: the manifest slug the fact was typed with (≤ 64 chars). */
|
|
1073
1101
|
okfType?: string;
|
|
1074
1102
|
/** `node_type_assigned` only: which path typed the fact. */
|
|
@@ -1767,6 +1795,12 @@ interface EntityMaintenanceReport {
|
|
|
1767
1795
|
ontologyBackfillPasses: number;
|
|
1768
1796
|
/** Facts that received an okf_type during this run's ontology-backfill passes. */
|
|
1769
1797
|
typed: number;
|
|
1798
|
+
/**
|
|
1799
|
+
* Facts typed by the classifier at the librarian write door during this run
|
|
1800
|
+
* (`systemOne.typeOnWrite: 'auto'`). Absent unless write-time typing engaged
|
|
1801
|
+
* for at least one pass. Kept apart from `typed` (backfill): two writers, two counters.
|
|
1802
|
+
*/
|
|
1803
|
+
typedOnWrite?: number;
|
|
1770
1804
|
/** Set when a lock was held elsewhere; nothing ran for that job. */
|
|
1771
1805
|
busy?: LockedMaintenanceJob[];
|
|
1772
1806
|
/**
|
|
@@ -3486,6 +3520,15 @@ declare class OntologyService {
|
|
|
3486
3520
|
manifest: OntologyManifest;
|
|
3487
3521
|
}>;
|
|
3488
3522
|
buildPromptContext(entityId: string): Promise<OntologyPromptContext | null>;
|
|
3523
|
+
/**
|
|
3524
|
+
* Ontology prompt context for the WRITE builders (specs/type-on-write §5).
|
|
3525
|
+
* `null` when the mode is `'off'` or when write-time typing is `engaged`
|
|
3526
|
+
* (the classifier types the fact, so the manifest leaves the write prompt).
|
|
3527
|
+
* Backfill keeps `buildPromptContext`.
|
|
3528
|
+
*/
|
|
3529
|
+
buildWritePromptContext(entityId: string, opts: {
|
|
3530
|
+
engaged: boolean;
|
|
3531
|
+
}): Promise<WriteOntologyPromptContext | null>;
|
|
3489
3532
|
mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
|
|
3490
3533
|
manifest: OntologyManifest;
|
|
3491
3534
|
rejected: string[];
|
|
@@ -3553,6 +3596,11 @@ interface GuidanceDiagnostic {
|
|
|
3553
3596
|
};
|
|
3554
3597
|
}
|
|
3555
3598
|
|
|
3599
|
+
/** Backfill builders accept the backfill context only: a write context (branded) is rejected. */
|
|
3600
|
+
type BackfillOntologyContext = OntologyPromptContext & {
|
|
3601
|
+
site?: never;
|
|
3602
|
+
};
|
|
3603
|
+
|
|
3556
3604
|
declare class PromptService {
|
|
3557
3605
|
private globalOverrides?;
|
|
3558
3606
|
private grounding;
|
|
@@ -3588,8 +3636,12 @@ declare class PromptService {
|
|
|
3588
3636
|
private hasOntologyPlaceholders;
|
|
3589
3637
|
/** Removes ontology placeholders until none remain, so a nested form cannot reassemble one (closes CodeQL #11). */
|
|
3590
3638
|
private stripOntologyPlaceholders;
|
|
3591
|
-
|
|
3592
|
-
private
|
|
3639
|
+
/** Write-site variant (ingest, librarian, ops extract). Body identical to the backfill variant by design (specs/type-on-write §5). */
|
|
3640
|
+
private buildWriteSystemPrompt;
|
|
3641
|
+
private appendWriteOntology;
|
|
3642
|
+
/** Backfill-site variant. Body identical to the write variant by design (specs/type-on-write §5). */
|
|
3643
|
+
private buildBackfillSystemPrompt;
|
|
3644
|
+
private appendBackfillOntology;
|
|
3593
3645
|
buildIngestPrompt(documentChunk: string, runtimeOverride?: string, ontologyContext?: OntologyPromptContext | null, guidance?: string): {
|
|
3594
3646
|
systemPrompt: string;
|
|
3595
3647
|
userPrompt: string;
|
|
@@ -3629,7 +3681,7 @@ declare class PromptService {
|
|
|
3629
3681
|
degraded: DegradedRecord[];
|
|
3630
3682
|
groundingCorpus?: string[];
|
|
3631
3683
|
};
|
|
3632
|
-
buildOntologyBackfillPrompt(facts: unknown[], runtimeOverride?: string, ontologyContext?:
|
|
3684
|
+
buildOntologyBackfillPrompt(facts: unknown[], runtimeOverride?: string, ontologyContext?: BackfillOntologyContext | null, candidateSections?: string): {
|
|
3633
3685
|
systemPrompt: string;
|
|
3634
3686
|
userPrompt: string;
|
|
3635
3687
|
};
|
|
@@ -3661,7 +3713,21 @@ declare class PromptService {
|
|
|
3661
3713
|
* placeholders and leaves data placeholders verbatim; heal never receives
|
|
3662
3714
|
* ontology context, matching `buildHealPrompt`.
|
|
3663
3715
|
*/
|
|
3664
|
-
buildInstructionTemplates(
|
|
3716
|
+
buildInstructionTemplates(writeContext: OntologyPromptContext | null, librarianStrategy: 'legacy' | 'ops', guidance?: string,
|
|
3717
|
+
/**
|
|
3718
|
+
* The backfill context (specs/type-on-write §5). Omitted: derived from
|
|
3719
|
+
* `writeContext`, which preserves the single-context behavior of this
|
|
3720
|
+
* method before the split. `WikiMemory.getInstructions` passes it
|
|
3721
|
+
* explicitly because an engaged entity's write context is `null` while
|
|
3722
|
+
* its backfill prompt still carries the manifest.
|
|
3723
|
+
*/
|
|
3724
|
+
backfillContext?: BackfillOntologyContext | null,
|
|
3725
|
+
/**
|
|
3726
|
+
* The ingest write context. Omitted: `writeContext`. `getInstructions`
|
|
3727
|
+
* passes the un-engaged context here because write-time typing governs the
|
|
3728
|
+
* librarian only (specs/type-on-write §5, step-14 seam).
|
|
3729
|
+
*/
|
|
3730
|
+
ingestContext?: OntologyPromptContext | null): WikiInstructions;
|
|
3665
3731
|
}
|
|
3666
3732
|
|
|
3667
3733
|
declare class IngestionService {
|
|
@@ -3991,18 +4057,21 @@ declare class UsageMeter {
|
|
|
3991
4057
|
}
|
|
3992
4058
|
|
|
3993
4059
|
/**
|
|
3994
|
-
*
|
|
3995
|
-
*
|
|
3996
|
-
*
|
|
3997
|
-
* editing the body. The verbatim legacy move lives in `legacy.ts`; the
|
|
3998
|
-
* dispatcher in `index.ts` is the only place that knows which strategies
|
|
3999
|
-
* exist. New strategies register there.
|
|
4000
|
-
*
|
|
4001
|
-
* `LibrarianStrategy` is the contract every implementation satisfies. The
|
|
4002
|
-
* pass is identified by its `(entityId, trigger, promptOverride?, meter?)`
|
|
4003
|
-
* context; the strategy returns what it processed so the caller can
|
|
4004
|
-
* advance checkpoints / watermarks.
|
|
4060
|
+
* Upper bound on one classifier choice question (specs/system-one-config §5):
|
|
4061
|
+
* manifest slugs plus the abstain sentinel. Owned here so the backfill site
|
|
4062
|
+
* and the write site cannot drift; `MaintenanceService` re-exports it.
|
|
4005
4063
|
*/
|
|
4064
|
+
declare const CLASSIFIER_MAX_CHOICES: 255;
|
|
4065
|
+
/** Per-pass typing counters (specs/type-on-write §8). */
|
|
4066
|
+
interface TypingCounters {
|
|
4067
|
+
asked: number;
|
|
4068
|
+
typed: number;
|
|
4069
|
+
abstained: number;
|
|
4070
|
+
lowConfidence: number;
|
|
4071
|
+
invalid: number;
|
|
4072
|
+
skipped: number;
|
|
4073
|
+
unattempted: number;
|
|
4074
|
+
}
|
|
4006
4075
|
|
|
4007
4076
|
/** Per-pass inputs the caller decides; the strategy cannot derive these. */
|
|
4008
4077
|
interface LibrarianContext {
|
|
@@ -4047,18 +4116,17 @@ interface LibrarianResult {
|
|
|
4047
4116
|
budgetStop?: {
|
|
4048
4117
|
requiredEstimate: number;
|
|
4049
4118
|
};
|
|
4119
|
+
/** Present only when write-time typing engaged for the pass (type-on-write §8). */
|
|
4120
|
+
typing?: TypingCounters;
|
|
4121
|
+
/** Ops only, internal: ids of existing facts the pass rewrote in place (type-on-write §9). */
|
|
4122
|
+
rewrittenIds?: string[];
|
|
4123
|
+
/** Ops only, internal: ids of facts the pass superseded (type-on-write §9). */
|
|
4124
|
+
supersededIds?: string[];
|
|
4050
4125
|
}
|
|
4051
4126
|
|
|
4052
4127
|
declare const ONTOLOGY_BACKFILL_BATCH_SIZE = 25;
|
|
4053
4128
|
|
|
4054
4129
|
declare const ONTOLOGY_BACKFILL_RECHECK_MS: number;
|
|
4055
|
-
/**
|
|
4056
|
-
* Upper bound on one classifier choice question (specs/system-one-config §5):
|
|
4057
|
-
* manifest slugs plus the abstain sentinel. A manifest with more slugs than
|
|
4058
|
-
* the cap allows, or carrying the reserved sentinel slug, falls back to the
|
|
4059
|
-
* generative path for the pass.
|
|
4060
|
-
*/
|
|
4061
|
-
declare const CLASSIFIER_MAX_CHOICES: 255;
|
|
4062
4130
|
|
|
4063
4131
|
/**
|
|
4064
4132
|
* Heal candidates fetched per pass. Bounds the pool runBatched draws from, not
|
|
@@ -4480,8 +4548,8 @@ declare class MaintenanceScheduler {
|
|
|
4480
4548
|
* `budget_too_small` > `complete`. `budget_too_small` means a job's smallest
|
|
4481
4549
|
* unit needs more than the WHOLE budget — that job is skipped this run and
|
|
4482
4550
|
* the run continues; `budget_exhausted` means a unit needs more than what
|
|
4483
|
-
* REMAINS — the run stops. The token budget meters
|
|
4484
|
-
*
|
|
4551
|
+
* REMAINS — the run stops. The token budget meters generation and classify
|
|
4552
|
+
* calls; embeddings are never metered.
|
|
4485
4553
|
*/
|
|
4486
4554
|
run(opts?: RunPendingMaintenanceOptions): Promise<RunPendingMaintenanceResult>;
|
|
4487
4555
|
/**
|
|
@@ -5331,5 +5399,5 @@ declare class WikiMemory {
|
|
|
5331
5399
|
setGeneratedByTask(taskId: string, entityId: string, actor: string): Promise<void>;
|
|
5332
5400
|
}
|
|
5333
5401
|
|
|
5334
|
-
export { HEAL_RECHECK_MS as A, HOOK_TIMEOUT_MARKER as B, CLASSIFIER_MAX_CHOICES as C, HEAL_BATCH_SIZE as H, ONTOLOGY_ABSTAIN_SENTINEL as Y, ONTOLOGY_BACKFILL_BATCH_SIZE as Z, ONTOLOGY_BACKFILL_RECHECK_MS as _,
|
|
5335
|
-
export type { OntologyBackfillResult as $, DegradedRecord as D, EmbedFactResult as E, FormatContextOptions as F, GraphNeighborhood as G, HealResult as I, ImportDumpResult as J, IngestDocumentResult as K, LLMProvider as L, MemoryBundle as M, LibrarianConfig as N, OntologyMode as O, LibrarianGateConfig as P, LockedMaintenanceJob as Q, ReadOptions as R, SQLiteAdapter as S, MaintenanceJob as T, MaintenanceStopReason as U, MemoryDumpEntity as V, WikiConfig as W, MigrationPolicy as X, MemoryDump as a, OntologyEdgeType as a0, OntologyManifest as a1, OntologyNodeType as a2, OntologyPromptContext as a3, OntologyUpdates as a4, PendingMaintenance as a5, PendingMigrationWork as a6, PendingSourceStatus as a7, PromptOverrides as a8, WikiEdge as aC, WikiEvent as aD, WikiFact as aF, WikiInstructions as aI, WikiLintReport as aK, WikiMemoryTestAccess as aL, WikiOutboxEvent as aN, WikiSourcePointer as aQ, WikiSupersedeReason as aU, WikiTask as aV, ReembedResult as ab, RememberInput as ac, RunPendingMaintenanceOptions as ad, RunPendingMaintenanceResult as ae, SourcePassage as af, StoreSourceResult as ag, StoredSource as ah, StoredSourceDump as ai, StoredSourceSummary as aj, SupersedeReplacement as ak, SystemOneConfig as al, SystemOneThresholdSite as am, VectorRanker as an, VectorRankerFallback as ao, VectorRankerRankArgs as ap, VectorRankerSemanticResult as aq, WikiBusyOperation as as, WikiCheckpoint as at, WikiDiagnostic as au, WikiDiagnosticCode as av, WikiDiagnosticDetail as aw, WikiDiagnosticOperation as ax, WikiDiagnosticSeverity as ay, WikiDiagnosticTrigger as az, FormattedMemoryDump as b, OntologyConfig as c, WikiOptions as d, ChunkFailure as g, ClassifierAnswer as h, ClassifierQuestion as i, ClassifyRequest as j, ClassifyResponse as k, DraftPage as l, EmbedFailureKind as m, EmbeddingMarkerKind as n, EntityMaintenanceReport as o, EntityStatus as p, EraseReport as q, ExtractedFact as s, ExtractedFactEdge as t, ExtractedFactWithOntology as u, ExtractedTask as v, ForgetParams as w, ForgetResult as x, GraphTraversalOptions as y, GroundingConfig as z };
|
|
5402
|
+
export { HEAL_RECHECK_MS as A, HOOK_TIMEOUT_MARKER as B, CLASSIFIER_MAX_CHOICES as C, HEAL_BATCH_SIZE as H, ONTOLOGY_ABSTAIN_SENTINEL as Y, ONTOLOGY_BACKFILL_BATCH_SIZE as Z, ONTOLOGY_BACKFILL_RECHECK_MS as _, EmbeddingService as a$, PromptService as a9, WikiDraftNotFound as aA, WikiDuplicateHashError as aB, WikiExternalDeletionError as aE, WikiGraphNodeOwnershipConflict as aG, WikiIngestEmptyError as aH, WikiInvalidReadOptions as aJ, WikiMigrationRequiredError as aM, WikiParseError as aO, WikiSearchUnavailableError as aP, WikiSourceRefHashCollision as aR, WikiStrictOntologyViolation as aS, WikiSupersedeError as aT, WikiTransactionError as aW, isReservedAbstainSlug as aY, isWikiSearchUnavailableError as aZ, validateManifest as a_, PrunePartialFailureError as aa, WikiBusyError as ar, ImportExportService as b0, IngestionService as b1, JobManager as b2, MaintenanceService as b3, RetrievalService as b4, SearchService as b5, WriteService as b6, WikiMemory as e, CheckpointIncompleteError as f, EraseStepError as r };
|
|
5403
|
+
export type { OntologyBackfillResult as $, DegradedRecord as D, EmbedFactResult as E, FormatContextOptions as F, GraphNeighborhood as G, HealResult as I, ImportDumpResult as J, IngestDocumentResult as K, LLMProvider as L, MemoryBundle as M, LibrarianConfig as N, OntologyMode as O, LibrarianGateConfig as P, LockedMaintenanceJob as Q, ReadOptions as R, SQLiteAdapter as S, MaintenanceJob as T, MaintenanceStopReason as U, MemoryDumpEntity as V, WikiConfig as W, MigrationPolicy as X, MemoryDump as a, OntologyEdgeType as a0, OntologyManifest as a1, OntologyNodeType as a2, OntologyPromptContext as a3, OntologyUpdates as a4, PendingMaintenance as a5, PendingMigrationWork as a6, PendingSourceStatus as a7, PromptOverrides as a8, WikiEdge as aC, WikiEvent as aD, WikiFact as aF, WikiInstructions as aI, WikiLintReport as aK, WikiMemoryTestAccess as aL, WikiOutboxEvent as aN, WikiSourcePointer as aQ, WikiSupersedeReason as aU, WikiTask as aV, WriteOntologyPromptContext as aX, ReembedResult as ab, RememberInput as ac, RunPendingMaintenanceOptions as ad, RunPendingMaintenanceResult as ae, SourcePassage as af, StoreSourceResult as ag, StoredSource as ah, StoredSourceDump as ai, StoredSourceSummary as aj, SupersedeReplacement as ak, SystemOneConfig as al, SystemOneThresholdSite as am, VectorRanker as an, VectorRankerFallback as ao, VectorRankerRankArgs as ap, VectorRankerSemanticResult as aq, WikiBusyOperation as as, WikiCheckpoint as at, WikiDiagnostic as au, WikiDiagnosticCode as av, WikiDiagnosticDetail as aw, WikiDiagnosticOperation as ax, WikiDiagnosticSeverity as ay, WikiDiagnosticTrigger as az, FormattedMemoryDump as b, OntologyConfig as c, WikiOptions as d, ChunkFailure as g, ClassifierAnswer as h, ClassifierQuestion as i, ClassifyRequest as j, ClassifyResponse as k, DraftPage as l, EmbedFailureKind as m, EmbeddingMarkerKind as n, EntityMaintenanceReport as o, EntityStatus as p, EraseReport as q, ExtractedFact as s, ExtractedFactEdge as t, ExtractedFactWithOntology as u, ExtractedTask as v, ForgetParams as w, ForgetResult as x, GraphTraversalOptions as y, GroundingConfig as z };
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a$ as EmbeddingService, b0 as ImportExportService, b1 as IngestionService, b2 as JobManager, b2 as JobManagerType, b3 as MaintenanceService, b4 as RetrievalService, b5 as SearchService, b5 as SearchServiceType, aL as WikiMemoryTestAccess, b6 as WriteService } from './testing-ziEQOLjo.mjs';
|
|
2
2
|
import '@equationalapplications/core-okf';
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a$ as EmbeddingService, b0 as ImportExportService, b1 as IngestionService, b2 as JobManager, b2 as JobManagerType, b3 as MaintenanceService, b4 as RetrievalService, b5 as SearchService, b5 as SearchServiceType, aL as WikiMemoryTestAccess, b6 as WriteService } from './testing-ziEQOLjo.js';
|
|
2
2
|
import '@equationalapplications/core-okf';
|