@equationalapplications/core-llm-wiki 9.16.1 → 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.
- package/dist/{chunk-7DBDJBN3.mjs → chunk-QRGFHMFR.mjs} +173 -62
- package/dist/chunk-QRGFHMFR.mjs.map +1 -0
- package/dist/index.d.mts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +173 -60
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{testing-C8sYdo2S.d.mts → testing-BDYXXgaJ.d.mts} +78 -10
- package/dist/{testing-C8sYdo2S.d.ts → testing-BDYXXgaJ.d.ts} +78 -10
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +778 -667
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-7DBDJBN3.mjs.map +0 -1
|
@@ -9,8 +9,9 @@ import { OkfSource, OkfVerifiedEntry, OkfSourceUsageWindow } from '@equationalap
|
|
|
9
9
|
* the heal-screen step added the `'healScreen'` member. Each landed as one
|
|
10
10
|
* new line in
|
|
11
11
|
* `SystemOneThresholdSite`, so sibling PRs merged cleanly. The type-on-write
|
|
12
|
-
* step landed the `typeOnWrite` key
|
|
13
|
-
*
|
|
12
|
+
* step landed the `typeOnWrite` key and the ingest-time typing step landed
|
|
13
|
+
* `typeOnIngest`; both reuse the `'typing'` floor and added no
|
|
14
|
+
* `SystemOneThresholdSite` member. Nothing outside that boundary belongs
|
|
14
15
|
* here.
|
|
15
16
|
*/
|
|
16
17
|
/** Sites a System-One threshold can apply to. Exactly four members today: `'typing'`, `'edges'`, `'resolve'` and `'healScreen'` (§10 fence). */
|
|
@@ -72,9 +73,24 @@ interface SystemOneConfig {
|
|
|
72
73
|
* classifier does not type are written untyped exactly as today and stay
|
|
73
74
|
* eligible for backfill. Engages only when a classifier is present and the
|
|
74
75
|
* manifest is representable. Facts typed this way carry no
|
|
75
|
-
* manifest-drawn edges. There is no `'off'`.
|
|
76
|
+
* manifest-drawn edges. There is no `'off'`. Librarian only;
|
|
77
|
+
* `typeOnIngest` governs ingest.
|
|
76
78
|
*/
|
|
77
79
|
typeOnWrite?: 'auto' | 'llm';
|
|
80
|
+
/**
|
|
81
|
+
* Ingest-time typing for `ingestDocument()`. `'llm'` (default) keeps today's
|
|
82
|
+
* ingest path exactly: every chunk prompt carries the ontology block and the
|
|
83
|
+
* model types each fact inline, or leaves it for backfill. `'auto'` asks
|
|
84
|
+
* `llmProvider.classify` to type every extracted fact the call is about to
|
|
85
|
+
* insert, and the ontology block leaves the ingest prompt for that call.
|
|
86
|
+
* The classify calls are as metered as the call's generative chunk calls:
|
|
87
|
+
* `ingestDocument()` carries no token budget. Facts the classifier does
|
|
88
|
+
* not type are written untyped exactly as today and stay eligible for
|
|
89
|
+
* backfill. Engages only when a classifier is present and the manifest is
|
|
90
|
+
* representable. Facts typed this way carry no manifest-drawn edges.
|
|
91
|
+
* Independent of `typeOnWrite`. There is no `'off'`.
|
|
92
|
+
*/
|
|
93
|
+
typeOnIngest?: 'auto' | 'llm';
|
|
78
94
|
/** Per-site minimum confidence. Only the classifier path reads a floor. */
|
|
79
95
|
minConfidence?: Partial<Record<SystemOneThresholdSite, number>>;
|
|
80
96
|
/**
|
|
@@ -222,6 +238,23 @@ interface WriteOntologyPromptContext {
|
|
|
222
238
|
ontologyManifest: string;
|
|
223
239
|
ontologyModeInstructions: string;
|
|
224
240
|
}
|
|
241
|
+
/** Ingest-time typing counters (specs/ingest-time-typing §9), on `IngestDocumentResult.typing`.
|
|
242
|
+
* Only the fields ingest fills: there is no `unattempted` because `ingestDocument()` has no
|
|
243
|
+
* token budget to run out. */
|
|
244
|
+
interface IngestTypingCounters {
|
|
245
|
+
/** Classify calls made (one per kept winner whose own slug did not already resolve). */
|
|
246
|
+
asked: number;
|
|
247
|
+
/** Classifier types that reached a stored row. */
|
|
248
|
+
typed: number;
|
|
249
|
+
/** Facts the classifier declined (abstain sentinel). */
|
|
250
|
+
abstained: number;
|
|
251
|
+
/** Answers below the `systemOne.minConfidence.typing` floor. */
|
|
252
|
+
lowConfidence: number;
|
|
253
|
+
/** Invalid answers and thrown `classify` calls. */
|
|
254
|
+
invalid: number;
|
|
255
|
+
/** Calls skipped for context overflow. */
|
|
256
|
+
skipped: number;
|
|
257
|
+
}
|
|
225
258
|
/** Result of a single ontology backfill run. Omissions (facts the model declined
|
|
226
259
|
* to classify) are carried by `abstained`, not derived from the other counters. */
|
|
227
260
|
interface OntologyBackfillResult {
|
|
@@ -1602,6 +1635,10 @@ interface IngestDocumentResult {
|
|
|
1602
1635
|
failedChunks: number;
|
|
1603
1636
|
duplicateOf?: string;
|
|
1604
1637
|
parseFailures?: ChunkFailure[];
|
|
1638
|
+
/** Ingest-time typing counters (specs/ingest-time-typing §9). Present only when
|
|
1639
|
+
* `systemOne.typeOnIngest: 'auto'` engaged for this call. There is no `unattempted`
|
|
1640
|
+
* field: `ingestDocument()` carries no token budget. */
|
|
1641
|
+
typing?: IngestTypingCounters;
|
|
1605
1642
|
}
|
|
1606
1643
|
/**
|
|
1607
1644
|
* Thrown by `parseJsonResponse` when both the strict scanner pass and the
|
|
@@ -1782,7 +1819,11 @@ interface PendingMaintenance {
|
|
|
1782
1819
|
interface RunPendingMaintenanceOptions {
|
|
1783
1820
|
/** Default: every entity with pending work. */
|
|
1784
1821
|
entityIds?: string[];
|
|
1785
|
-
/**
|
|
1822
|
+
/**
|
|
1823
|
+
* generateText and classify tokens (provider-reported or chars/4). Omitted = unbounded.
|
|
1824
|
+
* Calls in flight hold budget before they start; admission tests the input
|
|
1825
|
+
* estimate, so a call's own output can pass the budget.
|
|
1826
|
+
*/
|
|
1786
1827
|
tokenBudget?: number;
|
|
1787
1828
|
/** Wall-clock milliseconds from the call. Checked between units; a unit in flight is never interrupted. */
|
|
1788
1829
|
deadlineMs?: number;
|
|
@@ -3751,8 +3792,9 @@ declare class PromptService {
|
|
|
3751
3792
|
backfillContext?: BackfillOntologyContext | null,
|
|
3752
3793
|
/**
|
|
3753
3794
|
* The ingest write context. Omitted: `writeContext`. `getInstructions`
|
|
3754
|
-
* passes the
|
|
3755
|
-
*
|
|
3795
|
+
* passes the context that follows `systemOne.typeOnIngest`: `null` when
|
|
3796
|
+
* ingest-time typing is engaged, the un-engaged context otherwise
|
|
3797
|
+
* (specs/ingest-time-typing §5).
|
|
3756
3798
|
*/
|
|
3757
3799
|
ingestContext?: OntologyPromptContext | null): WikiInstructions;
|
|
3758
3800
|
}
|
|
@@ -4078,15 +4120,41 @@ interface UsageRecord {
|
|
|
4078
4120
|
/** True when either figure came from estimateTokens rather than the provider. */
|
|
4079
4121
|
estimated: boolean;
|
|
4080
4122
|
}
|
|
4081
|
-
/**
|
|
4123
|
+
/** Opaque handle for tokens held by one in-flight metered call. */
|
|
4124
|
+
interface UsageReservation {
|
|
4125
|
+
readonly _brand: 'UsageReservation';
|
|
4126
|
+
}
|
|
4127
|
+
/**
|
|
4128
|
+
* One budget shared by every LLM call in a maintenance run (generateText and
|
|
4129
|
+
* classify). A call is admitted on its input estimate (`reserve`), holds
|
|
4130
|
+
* tokens against the budget while in flight so parallel calls cannot all
|
|
4131
|
+
* claim the same headroom, then `settle`s the real usage or `release`s on
|
|
4132
|
+
* failure (specs/meter-reservation). The budget stays an admission check on
|
|
4133
|
+
* the input estimate, not a hard ceiling on provider output.
|
|
4134
|
+
*/
|
|
4082
4135
|
declare class UsageMeter {
|
|
4083
4136
|
readonly budget: number | undefined;
|
|
4084
4137
|
used: number;
|
|
4085
4138
|
estimated: boolean;
|
|
4139
|
+
private heldTokens;
|
|
4086
4140
|
constructor(budget?: number);
|
|
4141
|
+
/** Tokens held by in-flight reservations. */
|
|
4142
|
+
get reserved(): number;
|
|
4143
|
+
/** budget - used - reserved, clamped at 0; Infinity when unbounded. */
|
|
4087
4144
|
get remaining(): number;
|
|
4088
4145
|
fits(estimate: number): boolean;
|
|
4089
4146
|
record(r: UsageRecord): void;
|
|
4147
|
+
/**
|
|
4148
|
+
* Admit a call on `estimate` (throws WikiBudgetExhausted when it does not
|
|
4149
|
+
* fit the unreserved remainder) and hold `max(estimate, hold)` tokens until
|
|
4150
|
+
* settle/release.
|
|
4151
|
+
*/
|
|
4152
|
+
reserve(estimate: number, hold?: number): UsageReservation;
|
|
4153
|
+
/** Free the hold, then charge the real usage. A closed handle is a no-op. */
|
|
4154
|
+
settle(handle: UsageReservation, actual: UsageRecord): void;
|
|
4155
|
+
/** Free the hold and charge nothing. A closed handle is a no-op. */
|
|
4156
|
+
release(handle: UsageReservation): void;
|
|
4157
|
+
private close;
|
|
4090
4158
|
}
|
|
4091
4159
|
|
|
4092
4160
|
/**
|
|
@@ -4095,7 +4163,7 @@ declare class UsageMeter {
|
|
|
4095
4163
|
* and the write site cannot drift; `MaintenanceService` re-exports it.
|
|
4096
4164
|
*/
|
|
4097
4165
|
declare const CLASSIFIER_MAX_CHOICES: 255;
|
|
4098
|
-
/** Per-pass typing counters (specs/type-on-write §8). */
|
|
4166
|
+
/** Per-pass typing counters (specs/type-on-write §8). Internal: the librarian's report carries them. */
|
|
4099
4167
|
interface TypingCounters {
|
|
4100
4168
|
asked: number;
|
|
4101
4169
|
typed: number;
|
|
@@ -5459,5 +5527,5 @@ declare class WikiMemory {
|
|
|
5459
5527
|
setGeneratedByTask(taskId: string, entityId: string, actor: string): Promise<void>;
|
|
5460
5528
|
}
|
|
5461
5529
|
|
|
5462
|
-
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
|
|
5463
|
-
export type {
|
|
5530
|
+
export { ONTOLOGY_BACKFILL_RECHECK_MS as $, HEAL_RECHECK_MS as A, HOOK_TIMEOUT_MARKER as B, CLASSIFIER_MAX_CHOICES as C, HEAL_BATCH_SIZE as H, ONTOLOGY_ABSTAIN_SENTINEL as Z, ONTOLOGY_BACKFILL_BATCH_SIZE as _, validateManifest as a$, WikiDraftNotFound as aB, WikiDuplicateHashError as aC, WikiExternalDeletionError as aF, WikiGraphNodeOwnershipConflict as aH, WikiIngestEmptyError as aI, WikiInvalidReadOptions as aK, WikiMigrationRequiredError as aN, WikiParseError as aP, WikiSearchUnavailableError as aQ, WikiSourceRefHashCollision as aS, WikiStrictOntologyViolation as aT, WikiSupersedeError as aU, WikiTransactionError as aX, isReservedAbstainSlug as aZ, isWikiSearchUnavailableError as a_, PromptService as aa, PrunePartialFailureError as ab, WikiBusyError as as, EmbeddingService as b0, ImportExportService as b1, IngestionService as b2, JobManager as b3, MaintenanceService as b4, RetrievalService as b5, SearchService as b6, WriteService as b7, WikiMemory as e, CheckpointIncompleteError as f, EraseStepError as r };
|
|
5531
|
+
export type { DegradedRecord as D, EmbedFactResult as E, FormatContextOptions as F, GraphNeighborhood as G, HealResult as I, ImportDumpResult as J, IngestDocumentResult as K, IngestTypingCounters as L, MemoryBundle as M, LLMProvider as N, OntologyMode as O, LibrarianConfig as P, LibrarianGateConfig as Q, ReadOptions as R, SQLiteAdapter as S, LockedMaintenanceJob as T, MaintenanceJob as U, MaintenanceStopReason as V, WikiConfig as W, MemoryDumpEntity as X, MigrationPolicy as Y, MemoryDump as a, OntologyBackfillResult as a0, OntologyEdgeType as a1, OntologyManifest as a2, OntologyNodeType as a3, OntologyPromptContext as a4, OntologyUpdates as a5, PendingMaintenance as a6, PendingMigrationWork as a7, PendingSourceStatus as a8, PromptOverrides as a9, WikiDiagnosticTrigger as aA, WikiEdge as aD, WikiEvent as aE, WikiFact as aG, WikiInstructions as aJ, WikiLintReport as aL, WikiMemoryTestAccess as aM, WikiOutboxEvent as aO, WikiSourcePointer as aR, WikiSupersedeReason as aV, WikiTask as aW, WriteOntologyPromptContext as aY, ReembedResult as ac, RememberInput as ad, RunPendingMaintenanceOptions as ae, RunPendingMaintenanceResult as af, SourcePassage as ag, StoreSourceResult as ah, StoredSource as ai, StoredSourceDump as aj, StoredSourceSummary as ak, SupersedeReplacement as al, SystemOneConfig as am, SystemOneThresholdSite as an, VectorRanker as ao, VectorRankerFallback as ap, VectorRankerRankArgs as aq, VectorRankerSemanticResult as ar, WikiBusyOperation as at, WikiCheckpoint as au, WikiDiagnostic as av, WikiDiagnosticCode as aw, WikiDiagnosticDetail as ax, WikiDiagnosticOperation as ay, WikiDiagnosticSeverity 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 };
|
|
@@ -9,8 +9,9 @@ import { OkfSource, OkfVerifiedEntry, OkfSourceUsageWindow } from '@equationalap
|
|
|
9
9
|
* the heal-screen step added the `'healScreen'` member. Each landed as one
|
|
10
10
|
* new line in
|
|
11
11
|
* `SystemOneThresholdSite`, so sibling PRs merged cleanly. The type-on-write
|
|
12
|
-
* step landed the `typeOnWrite` key
|
|
13
|
-
*
|
|
12
|
+
* step landed the `typeOnWrite` key and the ingest-time typing step landed
|
|
13
|
+
* `typeOnIngest`; both reuse the `'typing'` floor and added no
|
|
14
|
+
* `SystemOneThresholdSite` member. Nothing outside that boundary belongs
|
|
14
15
|
* here.
|
|
15
16
|
*/
|
|
16
17
|
/** Sites a System-One threshold can apply to. Exactly four members today: `'typing'`, `'edges'`, `'resolve'` and `'healScreen'` (§10 fence). */
|
|
@@ -72,9 +73,24 @@ interface SystemOneConfig {
|
|
|
72
73
|
* classifier does not type are written untyped exactly as today and stay
|
|
73
74
|
* eligible for backfill. Engages only when a classifier is present and the
|
|
74
75
|
* manifest is representable. Facts typed this way carry no
|
|
75
|
-
* manifest-drawn edges. There is no `'off'`.
|
|
76
|
+
* manifest-drawn edges. There is no `'off'`. Librarian only;
|
|
77
|
+
* `typeOnIngest` governs ingest.
|
|
76
78
|
*/
|
|
77
79
|
typeOnWrite?: 'auto' | 'llm';
|
|
80
|
+
/**
|
|
81
|
+
* Ingest-time typing for `ingestDocument()`. `'llm'` (default) keeps today's
|
|
82
|
+
* ingest path exactly: every chunk prompt carries the ontology block and the
|
|
83
|
+
* model types each fact inline, or leaves it for backfill. `'auto'` asks
|
|
84
|
+
* `llmProvider.classify` to type every extracted fact the call is about to
|
|
85
|
+
* insert, and the ontology block leaves the ingest prompt for that call.
|
|
86
|
+
* The classify calls are as metered as the call's generative chunk calls:
|
|
87
|
+
* `ingestDocument()` carries no token budget. Facts the classifier does
|
|
88
|
+
* not type are written untyped exactly as today and stay eligible for
|
|
89
|
+
* backfill. Engages only when a classifier is present and the manifest is
|
|
90
|
+
* representable. Facts typed this way carry no manifest-drawn edges.
|
|
91
|
+
* Independent of `typeOnWrite`. There is no `'off'`.
|
|
92
|
+
*/
|
|
93
|
+
typeOnIngest?: 'auto' | 'llm';
|
|
78
94
|
/** Per-site minimum confidence. Only the classifier path reads a floor. */
|
|
79
95
|
minConfidence?: Partial<Record<SystemOneThresholdSite, number>>;
|
|
80
96
|
/**
|
|
@@ -222,6 +238,23 @@ interface WriteOntologyPromptContext {
|
|
|
222
238
|
ontologyManifest: string;
|
|
223
239
|
ontologyModeInstructions: string;
|
|
224
240
|
}
|
|
241
|
+
/** Ingest-time typing counters (specs/ingest-time-typing §9), on `IngestDocumentResult.typing`.
|
|
242
|
+
* Only the fields ingest fills: there is no `unattempted` because `ingestDocument()` has no
|
|
243
|
+
* token budget to run out. */
|
|
244
|
+
interface IngestTypingCounters {
|
|
245
|
+
/** Classify calls made (one per kept winner whose own slug did not already resolve). */
|
|
246
|
+
asked: number;
|
|
247
|
+
/** Classifier types that reached a stored row. */
|
|
248
|
+
typed: number;
|
|
249
|
+
/** Facts the classifier declined (abstain sentinel). */
|
|
250
|
+
abstained: number;
|
|
251
|
+
/** Answers below the `systemOne.minConfidence.typing` floor. */
|
|
252
|
+
lowConfidence: number;
|
|
253
|
+
/** Invalid answers and thrown `classify` calls. */
|
|
254
|
+
invalid: number;
|
|
255
|
+
/** Calls skipped for context overflow. */
|
|
256
|
+
skipped: number;
|
|
257
|
+
}
|
|
225
258
|
/** Result of a single ontology backfill run. Omissions (facts the model declined
|
|
226
259
|
* to classify) are carried by `abstained`, not derived from the other counters. */
|
|
227
260
|
interface OntologyBackfillResult {
|
|
@@ -1602,6 +1635,10 @@ interface IngestDocumentResult {
|
|
|
1602
1635
|
failedChunks: number;
|
|
1603
1636
|
duplicateOf?: string;
|
|
1604
1637
|
parseFailures?: ChunkFailure[];
|
|
1638
|
+
/** Ingest-time typing counters (specs/ingest-time-typing §9). Present only when
|
|
1639
|
+
* `systemOne.typeOnIngest: 'auto'` engaged for this call. There is no `unattempted`
|
|
1640
|
+
* field: `ingestDocument()` carries no token budget. */
|
|
1641
|
+
typing?: IngestTypingCounters;
|
|
1605
1642
|
}
|
|
1606
1643
|
/**
|
|
1607
1644
|
* Thrown by `parseJsonResponse` when both the strict scanner pass and the
|
|
@@ -1782,7 +1819,11 @@ interface PendingMaintenance {
|
|
|
1782
1819
|
interface RunPendingMaintenanceOptions {
|
|
1783
1820
|
/** Default: every entity with pending work. */
|
|
1784
1821
|
entityIds?: string[];
|
|
1785
|
-
/**
|
|
1822
|
+
/**
|
|
1823
|
+
* generateText and classify tokens (provider-reported or chars/4). Omitted = unbounded.
|
|
1824
|
+
* Calls in flight hold budget before they start; admission tests the input
|
|
1825
|
+
* estimate, so a call's own output can pass the budget.
|
|
1826
|
+
*/
|
|
1786
1827
|
tokenBudget?: number;
|
|
1787
1828
|
/** Wall-clock milliseconds from the call. Checked between units; a unit in flight is never interrupted. */
|
|
1788
1829
|
deadlineMs?: number;
|
|
@@ -3751,8 +3792,9 @@ declare class PromptService {
|
|
|
3751
3792
|
backfillContext?: BackfillOntologyContext | null,
|
|
3752
3793
|
/**
|
|
3753
3794
|
* The ingest write context. Omitted: `writeContext`. `getInstructions`
|
|
3754
|
-
* passes the
|
|
3755
|
-
*
|
|
3795
|
+
* passes the context that follows `systemOne.typeOnIngest`: `null` when
|
|
3796
|
+
* ingest-time typing is engaged, the un-engaged context otherwise
|
|
3797
|
+
* (specs/ingest-time-typing §5).
|
|
3756
3798
|
*/
|
|
3757
3799
|
ingestContext?: OntologyPromptContext | null): WikiInstructions;
|
|
3758
3800
|
}
|
|
@@ -4078,15 +4120,41 @@ interface UsageRecord {
|
|
|
4078
4120
|
/** True when either figure came from estimateTokens rather than the provider. */
|
|
4079
4121
|
estimated: boolean;
|
|
4080
4122
|
}
|
|
4081
|
-
/**
|
|
4123
|
+
/** Opaque handle for tokens held by one in-flight metered call. */
|
|
4124
|
+
interface UsageReservation {
|
|
4125
|
+
readonly _brand: 'UsageReservation';
|
|
4126
|
+
}
|
|
4127
|
+
/**
|
|
4128
|
+
* One budget shared by every LLM call in a maintenance run (generateText and
|
|
4129
|
+
* classify). A call is admitted on its input estimate (`reserve`), holds
|
|
4130
|
+
* tokens against the budget while in flight so parallel calls cannot all
|
|
4131
|
+
* claim the same headroom, then `settle`s the real usage or `release`s on
|
|
4132
|
+
* failure (specs/meter-reservation). The budget stays an admission check on
|
|
4133
|
+
* the input estimate, not a hard ceiling on provider output.
|
|
4134
|
+
*/
|
|
4082
4135
|
declare class UsageMeter {
|
|
4083
4136
|
readonly budget: number | undefined;
|
|
4084
4137
|
used: number;
|
|
4085
4138
|
estimated: boolean;
|
|
4139
|
+
private heldTokens;
|
|
4086
4140
|
constructor(budget?: number);
|
|
4141
|
+
/** Tokens held by in-flight reservations. */
|
|
4142
|
+
get reserved(): number;
|
|
4143
|
+
/** budget - used - reserved, clamped at 0; Infinity when unbounded. */
|
|
4087
4144
|
get remaining(): number;
|
|
4088
4145
|
fits(estimate: number): boolean;
|
|
4089
4146
|
record(r: UsageRecord): void;
|
|
4147
|
+
/**
|
|
4148
|
+
* Admit a call on `estimate` (throws WikiBudgetExhausted when it does not
|
|
4149
|
+
* fit the unreserved remainder) and hold `max(estimate, hold)` tokens until
|
|
4150
|
+
* settle/release.
|
|
4151
|
+
*/
|
|
4152
|
+
reserve(estimate: number, hold?: number): UsageReservation;
|
|
4153
|
+
/** Free the hold, then charge the real usage. A closed handle is a no-op. */
|
|
4154
|
+
settle(handle: UsageReservation, actual: UsageRecord): void;
|
|
4155
|
+
/** Free the hold and charge nothing. A closed handle is a no-op. */
|
|
4156
|
+
release(handle: UsageReservation): void;
|
|
4157
|
+
private close;
|
|
4090
4158
|
}
|
|
4091
4159
|
|
|
4092
4160
|
/**
|
|
@@ -4095,7 +4163,7 @@ declare class UsageMeter {
|
|
|
4095
4163
|
* and the write site cannot drift; `MaintenanceService` re-exports it.
|
|
4096
4164
|
*/
|
|
4097
4165
|
declare const CLASSIFIER_MAX_CHOICES: 255;
|
|
4098
|
-
/** Per-pass typing counters (specs/type-on-write §8). */
|
|
4166
|
+
/** Per-pass typing counters (specs/type-on-write §8). Internal: the librarian's report carries them. */
|
|
4099
4167
|
interface TypingCounters {
|
|
4100
4168
|
asked: number;
|
|
4101
4169
|
typed: number;
|
|
@@ -5459,5 +5527,5 @@ declare class WikiMemory {
|
|
|
5459
5527
|
setGeneratedByTask(taskId: string, entityId: string, actor: string): Promise<void>;
|
|
5460
5528
|
}
|
|
5461
5529
|
|
|
5462
|
-
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
|
|
5463
|
-
export type {
|
|
5530
|
+
export { ONTOLOGY_BACKFILL_RECHECK_MS as $, HEAL_RECHECK_MS as A, HOOK_TIMEOUT_MARKER as B, CLASSIFIER_MAX_CHOICES as C, HEAL_BATCH_SIZE as H, ONTOLOGY_ABSTAIN_SENTINEL as Z, ONTOLOGY_BACKFILL_BATCH_SIZE as _, validateManifest as a$, WikiDraftNotFound as aB, WikiDuplicateHashError as aC, WikiExternalDeletionError as aF, WikiGraphNodeOwnershipConflict as aH, WikiIngestEmptyError as aI, WikiInvalidReadOptions as aK, WikiMigrationRequiredError as aN, WikiParseError as aP, WikiSearchUnavailableError as aQ, WikiSourceRefHashCollision as aS, WikiStrictOntologyViolation as aT, WikiSupersedeError as aU, WikiTransactionError as aX, isReservedAbstainSlug as aZ, isWikiSearchUnavailableError as a_, PromptService as aa, PrunePartialFailureError as ab, WikiBusyError as as, EmbeddingService as b0, ImportExportService as b1, IngestionService as b2, JobManager as b3, MaintenanceService as b4, RetrievalService as b5, SearchService as b6, WriteService as b7, WikiMemory as e, CheckpointIncompleteError as f, EraseStepError as r };
|
|
5531
|
+
export type { DegradedRecord as D, EmbedFactResult as E, FormatContextOptions as F, GraphNeighborhood as G, HealResult as I, ImportDumpResult as J, IngestDocumentResult as K, IngestTypingCounters as L, MemoryBundle as M, LLMProvider as N, OntologyMode as O, LibrarianConfig as P, LibrarianGateConfig as Q, ReadOptions as R, SQLiteAdapter as S, LockedMaintenanceJob as T, MaintenanceJob as U, MaintenanceStopReason as V, WikiConfig as W, MemoryDumpEntity as X, MigrationPolicy as Y, MemoryDump as a, OntologyBackfillResult as a0, OntologyEdgeType as a1, OntologyManifest as a2, OntologyNodeType as a3, OntologyPromptContext as a4, OntologyUpdates as a5, PendingMaintenance as a6, PendingMigrationWork as a7, PendingSourceStatus as a8, PromptOverrides as a9, WikiDiagnosticTrigger as aA, WikiEdge as aD, WikiEvent as aE, WikiFact as aG, WikiInstructions as aJ, WikiLintReport as aL, WikiMemoryTestAccess as aM, WikiOutboxEvent as aO, WikiSourcePointer as aR, WikiSupersedeReason as aV, WikiTask as aW, WriteOntologyPromptContext as aY, ReembedResult as ac, RememberInput as ad, RunPendingMaintenanceOptions as ae, RunPendingMaintenanceResult as af, SourcePassage as ag, StoreSourceResult as ah, StoredSource as ai, StoredSourceDump as aj, StoredSourceSummary as ak, SupersedeReplacement as al, SystemOneConfig as am, SystemOneThresholdSite as an, VectorRanker as ao, VectorRankerFallback as ap, VectorRankerRankArgs as aq, VectorRankerSemanticResult as ar, WikiBusyOperation as at, WikiCheckpoint as au, WikiDiagnostic as av, WikiDiagnosticCode as aw, WikiDiagnosticDetail as ax, WikiDiagnosticOperation as ay, WikiDiagnosticSeverity 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 { b0 as EmbeddingService, b1 as ImportExportService, b2 as IngestionService, b3 as JobManager, b3 as JobManagerType, b4 as MaintenanceService, b5 as RetrievalService, b6 as SearchService, b6 as SearchServiceType, aM as WikiMemoryTestAccess, b7 as WriteService } from './testing-BDYXXgaJ.mjs';
|
|
2
2
|
import '@equationalapplications/core-okf';
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { b0 as EmbeddingService, b1 as ImportExportService, b2 as IngestionService, b3 as JobManager, b3 as JobManagerType, b4 as MaintenanceService, b5 as RetrievalService, b6 as SearchService, b6 as SearchServiceType, aM as WikiMemoryTestAccess, b7 as WriteService } from './testing-BDYXXgaJ.js';
|
|
2
2
|
import '@equationalapplications/core-okf';
|