@equationalapplications/core-llm-wiki 9.7.0 → 9.9.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-6UTHJFXH.mjs → chunk-EN37KODZ.mjs} +258 -32
- package/dist/chunk-EN37KODZ.mjs.map +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +336 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -21
- package/dist/index.mjs.map +1 -1
- package/dist/{testing-T0GgG1L6.d.mts → testing-CDSfjx8j.d.mts} +46 -9
- package/dist/{testing-T0GgG1L6.d.ts → testing-CDSfjx8j.d.ts} +46 -9
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +222 -15
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-6UTHJFXH.mjs.map +0 -1
|
@@ -942,7 +942,7 @@ type WikiDiagnosticSeverity = 'info' | 'warn' | 'error';
|
|
|
942
942
|
* Closed for this release series, but new codes are added in minor versions:
|
|
943
943
|
* hosts must tolerate codes they do not recognize.
|
|
944
944
|
*/
|
|
945
|
-
type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | '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';
|
|
945
|
+
type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | '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';
|
|
946
946
|
/** The service run that emitted the diagnostic. */
|
|
947
947
|
type WikiDiagnosticOperation = 'ingest' | 'upsertGraph' | 'librarian' | 'heal' | 'ontologyBackfill' | 'reembed' | 'importDump' | 'write' | 'supersede' | 'remember' | 'read' | 'prune' | 'externalDeletion' | 'sourceStore' | 'erase';
|
|
948
948
|
/** `'auto'` when a write threshold started the run (auto-librarian / auto-heal); `'call'` when the host did. */
|
|
@@ -963,10 +963,6 @@ interface WikiDiagnosticDetail {
|
|
|
963
963
|
itemIndex?: number;
|
|
964
964
|
/** Machine-readable sub-reason, e.g. `'target_not_found'`. */
|
|
965
965
|
reason?: string;
|
|
966
|
-
/** `node_type_assigned` only: the manifest slug applied to the fact. */
|
|
967
|
-
okfType?: string;
|
|
968
|
-
/** Typing receipts only: which path produced the outcome. */
|
|
969
|
-
writer?: 'classifier' | 'llm';
|
|
970
966
|
/** Aggregated `ingest_chunk_failed` only; the first 20 failed chunk indexes. */
|
|
971
967
|
chunkIndexes?: number[];
|
|
972
968
|
/** Aggregated emissions only. */
|
|
@@ -999,6 +995,22 @@ interface WikiDiagnosticDetail {
|
|
|
999
995
|
guidanceSource?: 'per_entity' | 'default';
|
|
1000
996
|
/** `erase_retired_remaining` only: retired FTS table names still present after reclamation. */
|
|
1001
997
|
tables?: string[];
|
|
998
|
+
/** `node_type_dropped` / `node_type_folded` only: the manifest slug involved (slug only, ≤ 64 chars). */
|
|
999
|
+
nodeType?: string;
|
|
1000
|
+
/** `node_type_folded` only: the slug as supplied, before normalization (≤ 64 chars). */
|
|
1001
|
+
from?: string;
|
|
1002
|
+
/** `node_type_folded` only: the manifest's canonical slug (≤ 64 chars). */
|
|
1003
|
+
to?: string;
|
|
1004
|
+
/** `node_type_folded` only: always `'normalize'`. */
|
|
1005
|
+
via?: 'normalize';
|
|
1006
|
+
/** `node_type_assigned` only: the manifest slug the fact was typed with (≤ 64 chars). */
|
|
1007
|
+
okfType?: string;
|
|
1008
|
+
/** `node_type_assigned` only: which path typed the fact. */
|
|
1009
|
+
writer?: 'classifier' | 'llm' | 'inherited';
|
|
1010
|
+
/** `node_type_assigned` only: classifier confidence, when the path carries one. */
|
|
1011
|
+
confidence?: number;
|
|
1012
|
+
/** `ingest_zero_facts` only: chunk count of the empty re-ingest. */
|
|
1013
|
+
chunks?: number;
|
|
1002
1014
|
}
|
|
1003
1015
|
interface WikiDiagnostic {
|
|
1004
1016
|
code: WikiDiagnosticCode;
|
|
@@ -1597,6 +1609,8 @@ interface WikiLintReport {
|
|
|
1597
1609
|
manifestViolations: number;
|
|
1598
1610
|
/** Live facts with `okf_type` NULL. */
|
|
1599
1611
|
untypedFacts: number;
|
|
1612
|
+
/** Live facts whose stored `okf_type` is not resolvable against the effective manifest (normalized resolver). 0 when ontology is off or the manifest has no node_types. */
|
|
1613
|
+
nodeTypeViolations: number;
|
|
1600
1614
|
/** Live facts with `lifecycle_status = 'draft'`. */
|
|
1601
1615
|
drafts: number;
|
|
1602
1616
|
/** Live `librarian_inferred` facts with an empty `okf_verified`. */
|
|
@@ -1605,6 +1619,7 @@ interface WikiLintReport {
|
|
|
1605
1619
|
sample: {
|
|
1606
1620
|
danglingEdgeIds: string[];
|
|
1607
1621
|
manifestViolationEdgeIds: string[];
|
|
1622
|
+
nodeTypeViolationIds: string[];
|
|
1608
1623
|
};
|
|
1609
1624
|
}
|
|
1610
1625
|
/**
|
|
@@ -2270,9 +2285,12 @@ declare class EntryRepository extends BaseRepository {
|
|
|
2270
2285
|
/**
|
|
2271
2286
|
* Live untyped facts eligible for ontology backfill, oldest first.
|
|
2272
2287
|
* Skips facts checked within the recheck cooldown (ontology_checked_at > recheckCutoff).
|
|
2288
|
+
* The queue sees CURRENT facts only (ontology-curation Task 10): rows whose
|
|
2289
|
+
* validity window excludes "now" are invisible to typing, matching the
|
|
2290
|
+
* read-time liveness definition (utils/temporal.ts).
|
|
2273
2291
|
*/
|
|
2274
2292
|
findUntypedByEntityId(entityId: string, limit: number, recheckCutoff: number, tx?: SQLiteAdapter): Promise<WikiFact[]>;
|
|
2275
|
-
/** Counts live untyped facts: eligible (past cooldown) vs deferred (in cooldown). */
|
|
2293
|
+
/** Counts live untyped facts: eligible (past cooldown) vs deferred (in cooldown). Current facts only, as {@link findUntypedByEntityId}. */
|
|
2276
2294
|
countUntypedByEntityId(entityId: string, recheckCutoff: number, tx?: SQLiteAdapter): Promise<{
|
|
2277
2295
|
eligible: number;
|
|
2278
2296
|
deferred: number;
|
|
@@ -2475,7 +2493,10 @@ declare class MetadataRepository extends BaseRepository {
|
|
|
2475
2493
|
}, tx: SQLiteAdapter, opts?: {
|
|
2476
2494
|
ifAbsent?: boolean;
|
|
2477
2495
|
}): Promise<boolean>;
|
|
2478
|
-
mergeManifestUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<
|
|
2496
|
+
mergeManifestUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
|
|
2497
|
+
manifest: OntologyManifest;
|
|
2498
|
+
rejected: string[];
|
|
2499
|
+
}>;
|
|
2479
2500
|
}
|
|
2480
2501
|
|
|
2481
2502
|
/**
|
|
@@ -3388,7 +3409,10 @@ declare class OntologyService {
|
|
|
3388
3409
|
manifest: OntologyManifest;
|
|
3389
3410
|
}>;
|
|
3390
3411
|
buildPromptContext(entityId: string): Promise<OntologyPromptContext | null>;
|
|
3391
|
-
mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<
|
|
3412
|
+
mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
|
|
3413
|
+
manifest: OntologyManifest;
|
|
3414
|
+
rejected: string[];
|
|
3415
|
+
}>;
|
|
3392
3416
|
validateAndNormalizeFact(fact: ExtractedFactWithOntology, manifest: OntologyManifest, opts?: {
|
|
3393
3417
|
strict?: boolean;
|
|
3394
3418
|
entityId?: string;
|
|
@@ -3396,6 +3420,12 @@ declare class OntologyService {
|
|
|
3396
3420
|
}): {
|
|
3397
3421
|
okf_type: string | null;
|
|
3398
3422
|
edges: ExtractedFactEdge[];
|
|
3423
|
+
/** Resolution evidence. Absent on a miss. Callers must not re-run resolution. */
|
|
3424
|
+
match?: {
|
|
3425
|
+
raw: string;
|
|
3426
|
+
canonical: string;
|
|
3427
|
+
via: 'exact' | 'normalize';
|
|
3428
|
+
};
|
|
3399
3429
|
};
|
|
3400
3430
|
/**
|
|
3401
3431
|
* Pure resolver: given a source type, LLM-supplied edges, the manifest,
|
|
@@ -4096,6 +4126,8 @@ declare class MaintenanceService {
|
|
|
4096
4126
|
batchSize?: number;
|
|
4097
4127
|
classifier?: 'auto' | 'llm';
|
|
4098
4128
|
tokenBudget?: number;
|
|
4129
|
+
/** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
|
|
4130
|
+
recheckCheckedBefore?: number;
|
|
4099
4131
|
}): Promise<OntologyBackfillResult>;
|
|
4100
4132
|
/**
|
|
4101
4133
|
* Scheduler read view (specs/system-one-config §8): untyped facts still
|
|
@@ -4254,6 +4286,8 @@ declare class MaintenanceService {
|
|
|
4254
4286
|
batchSize?: number;
|
|
4255
4287
|
classifier?: 'auto' | 'llm';
|
|
4256
4288
|
tokenBudget?: number;
|
|
4289
|
+
/** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
|
|
4290
|
+
recheckCheckedBefore?: number;
|
|
4257
4291
|
meter?: UsageMeter;
|
|
4258
4292
|
/** Diagnostic trigger stamped on every diagnostic this pass emits. Default `'call'`. */
|
|
4259
4293
|
trigger?: WikiDiagnosticTrigger;
|
|
@@ -4527,7 +4561,8 @@ declare class RememberService {
|
|
|
4527
4561
|
private ontologyService;
|
|
4528
4562
|
private searchService;
|
|
4529
4563
|
private embeddingService;
|
|
4530
|
-
|
|
4564
|
+
private options?;
|
|
4565
|
+
constructor(db: SQLiteAdapter, entryRepo: EntryRepository, ontologyService: OntologyService, searchService: SearchService, embeddingService: EmbeddingService, options?: Pick<WikiOptions, "onDiagnostic"> | undefined);
|
|
4531
4566
|
remember(entityId: string, input: RememberInput): Promise<WikiFact>;
|
|
4532
4567
|
}
|
|
4533
4568
|
|
|
@@ -4857,6 +4892,8 @@ declare class WikiMemory {
|
|
|
4857
4892
|
batchSize?: number;
|
|
4858
4893
|
classifier?: 'auto' | 'llm';
|
|
4859
4894
|
tokenBudget?: number;
|
|
4895
|
+
/** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
|
|
4896
|
+
recheckCheckedBefore?: number;
|
|
4860
4897
|
}): Promise<OntologyBackfillResult>;
|
|
4861
4898
|
runReembed(entityId?: string, opts?: {
|
|
4862
4899
|
force?: boolean;
|
|
@@ -942,7 +942,7 @@ type WikiDiagnosticSeverity = 'info' | 'warn' | 'error';
|
|
|
942
942
|
* Closed for this release series, but new codes are added in minor versions:
|
|
943
943
|
* hosts must tolerate codes they do not recognize.
|
|
944
944
|
*/
|
|
945
|
-
type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | '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';
|
|
945
|
+
type WikiDiagnosticCode = 'ingest_chunk_failed' | 'fact_rejected' | 'task_rejected' | 'fact_deduplicated' | 'edge_dropped' | 'embedding_failed' | 'hook_failed' | 'background_job_failed' | 'heal_skipped' | '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';
|
|
946
946
|
/** The service run that emitted the diagnostic. */
|
|
947
947
|
type WikiDiagnosticOperation = 'ingest' | 'upsertGraph' | 'librarian' | 'heal' | 'ontologyBackfill' | 'reembed' | 'importDump' | 'write' | 'supersede' | 'remember' | 'read' | 'prune' | 'externalDeletion' | 'sourceStore' | 'erase';
|
|
948
948
|
/** `'auto'` when a write threshold started the run (auto-librarian / auto-heal); `'call'` when the host did. */
|
|
@@ -963,10 +963,6 @@ interface WikiDiagnosticDetail {
|
|
|
963
963
|
itemIndex?: number;
|
|
964
964
|
/** Machine-readable sub-reason, e.g. `'target_not_found'`. */
|
|
965
965
|
reason?: string;
|
|
966
|
-
/** `node_type_assigned` only: the manifest slug applied to the fact. */
|
|
967
|
-
okfType?: string;
|
|
968
|
-
/** Typing receipts only: which path produced the outcome. */
|
|
969
|
-
writer?: 'classifier' | 'llm';
|
|
970
966
|
/** Aggregated `ingest_chunk_failed` only; the first 20 failed chunk indexes. */
|
|
971
967
|
chunkIndexes?: number[];
|
|
972
968
|
/** Aggregated emissions only. */
|
|
@@ -999,6 +995,22 @@ interface WikiDiagnosticDetail {
|
|
|
999
995
|
guidanceSource?: 'per_entity' | 'default';
|
|
1000
996
|
/** `erase_retired_remaining` only: retired FTS table names still present after reclamation. */
|
|
1001
997
|
tables?: string[];
|
|
998
|
+
/** `node_type_dropped` / `node_type_folded` only: the manifest slug involved (slug only, ≤ 64 chars). */
|
|
999
|
+
nodeType?: string;
|
|
1000
|
+
/** `node_type_folded` only: the slug as supplied, before normalization (≤ 64 chars). */
|
|
1001
|
+
from?: string;
|
|
1002
|
+
/** `node_type_folded` only: the manifest's canonical slug (≤ 64 chars). */
|
|
1003
|
+
to?: string;
|
|
1004
|
+
/** `node_type_folded` only: always `'normalize'`. */
|
|
1005
|
+
via?: 'normalize';
|
|
1006
|
+
/** `node_type_assigned` only: the manifest slug the fact was typed with (≤ 64 chars). */
|
|
1007
|
+
okfType?: string;
|
|
1008
|
+
/** `node_type_assigned` only: which path typed the fact. */
|
|
1009
|
+
writer?: 'classifier' | 'llm' | 'inherited';
|
|
1010
|
+
/** `node_type_assigned` only: classifier confidence, when the path carries one. */
|
|
1011
|
+
confidence?: number;
|
|
1012
|
+
/** `ingest_zero_facts` only: chunk count of the empty re-ingest. */
|
|
1013
|
+
chunks?: number;
|
|
1002
1014
|
}
|
|
1003
1015
|
interface WikiDiagnostic {
|
|
1004
1016
|
code: WikiDiagnosticCode;
|
|
@@ -1597,6 +1609,8 @@ interface WikiLintReport {
|
|
|
1597
1609
|
manifestViolations: number;
|
|
1598
1610
|
/** Live facts with `okf_type` NULL. */
|
|
1599
1611
|
untypedFacts: number;
|
|
1612
|
+
/** Live facts whose stored `okf_type` is not resolvable against the effective manifest (normalized resolver). 0 when ontology is off or the manifest has no node_types. */
|
|
1613
|
+
nodeTypeViolations: number;
|
|
1600
1614
|
/** Live facts with `lifecycle_status = 'draft'`. */
|
|
1601
1615
|
drafts: number;
|
|
1602
1616
|
/** Live `librarian_inferred` facts with an empty `okf_verified`. */
|
|
@@ -1605,6 +1619,7 @@ interface WikiLintReport {
|
|
|
1605
1619
|
sample: {
|
|
1606
1620
|
danglingEdgeIds: string[];
|
|
1607
1621
|
manifestViolationEdgeIds: string[];
|
|
1622
|
+
nodeTypeViolationIds: string[];
|
|
1608
1623
|
};
|
|
1609
1624
|
}
|
|
1610
1625
|
/**
|
|
@@ -2270,9 +2285,12 @@ declare class EntryRepository extends BaseRepository {
|
|
|
2270
2285
|
/**
|
|
2271
2286
|
* Live untyped facts eligible for ontology backfill, oldest first.
|
|
2272
2287
|
* Skips facts checked within the recheck cooldown (ontology_checked_at > recheckCutoff).
|
|
2288
|
+
* The queue sees CURRENT facts only (ontology-curation Task 10): rows whose
|
|
2289
|
+
* validity window excludes "now" are invisible to typing, matching the
|
|
2290
|
+
* read-time liveness definition (utils/temporal.ts).
|
|
2273
2291
|
*/
|
|
2274
2292
|
findUntypedByEntityId(entityId: string, limit: number, recheckCutoff: number, tx?: SQLiteAdapter): Promise<WikiFact[]>;
|
|
2275
|
-
/** Counts live untyped facts: eligible (past cooldown) vs deferred (in cooldown). */
|
|
2293
|
+
/** Counts live untyped facts: eligible (past cooldown) vs deferred (in cooldown). Current facts only, as {@link findUntypedByEntityId}. */
|
|
2276
2294
|
countUntypedByEntityId(entityId: string, recheckCutoff: number, tx?: SQLiteAdapter): Promise<{
|
|
2277
2295
|
eligible: number;
|
|
2278
2296
|
deferred: number;
|
|
@@ -2475,7 +2493,10 @@ declare class MetadataRepository extends BaseRepository {
|
|
|
2475
2493
|
}, tx: SQLiteAdapter, opts?: {
|
|
2476
2494
|
ifAbsent?: boolean;
|
|
2477
2495
|
}): Promise<boolean>;
|
|
2478
|
-
mergeManifestUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<
|
|
2496
|
+
mergeManifestUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
|
|
2497
|
+
manifest: OntologyManifest;
|
|
2498
|
+
rejected: string[];
|
|
2499
|
+
}>;
|
|
2479
2500
|
}
|
|
2480
2501
|
|
|
2481
2502
|
/**
|
|
@@ -3388,7 +3409,10 @@ declare class OntologyService {
|
|
|
3388
3409
|
manifest: OntologyManifest;
|
|
3389
3410
|
}>;
|
|
3390
3411
|
buildPromptContext(entityId: string): Promise<OntologyPromptContext | null>;
|
|
3391
|
-
mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<
|
|
3412
|
+
mergeEmergentUpdates(entityId: string, updates: OntologyUpdates, tx: SQLiteAdapter): Promise<{
|
|
3413
|
+
manifest: OntologyManifest;
|
|
3414
|
+
rejected: string[];
|
|
3415
|
+
}>;
|
|
3392
3416
|
validateAndNormalizeFact(fact: ExtractedFactWithOntology, manifest: OntologyManifest, opts?: {
|
|
3393
3417
|
strict?: boolean;
|
|
3394
3418
|
entityId?: string;
|
|
@@ -3396,6 +3420,12 @@ declare class OntologyService {
|
|
|
3396
3420
|
}): {
|
|
3397
3421
|
okf_type: string | null;
|
|
3398
3422
|
edges: ExtractedFactEdge[];
|
|
3423
|
+
/** Resolution evidence. Absent on a miss. Callers must not re-run resolution. */
|
|
3424
|
+
match?: {
|
|
3425
|
+
raw: string;
|
|
3426
|
+
canonical: string;
|
|
3427
|
+
via: 'exact' | 'normalize';
|
|
3428
|
+
};
|
|
3399
3429
|
};
|
|
3400
3430
|
/**
|
|
3401
3431
|
* Pure resolver: given a source type, LLM-supplied edges, the manifest,
|
|
@@ -4096,6 +4126,8 @@ declare class MaintenanceService {
|
|
|
4096
4126
|
batchSize?: number;
|
|
4097
4127
|
classifier?: 'auto' | 'llm';
|
|
4098
4128
|
tokenBudget?: number;
|
|
4129
|
+
/** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
|
|
4130
|
+
recheckCheckedBefore?: number;
|
|
4099
4131
|
}): Promise<OntologyBackfillResult>;
|
|
4100
4132
|
/**
|
|
4101
4133
|
* Scheduler read view (specs/system-one-config §8): untyped facts still
|
|
@@ -4254,6 +4286,8 @@ declare class MaintenanceService {
|
|
|
4254
4286
|
batchSize?: number;
|
|
4255
4287
|
classifier?: 'auto' | 'llm';
|
|
4256
4288
|
tokenBudget?: number;
|
|
4289
|
+
/** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
|
|
4290
|
+
recheckCheckedBefore?: number;
|
|
4257
4291
|
meter?: UsageMeter;
|
|
4258
4292
|
/** Diagnostic trigger stamped on every diagnostic this pass emits. Default `'call'`. */
|
|
4259
4293
|
trigger?: WikiDiagnosticTrigger;
|
|
@@ -4527,7 +4561,8 @@ declare class RememberService {
|
|
|
4527
4561
|
private ontologyService;
|
|
4528
4562
|
private searchService;
|
|
4529
4563
|
private embeddingService;
|
|
4530
|
-
|
|
4564
|
+
private options?;
|
|
4565
|
+
constructor(db: SQLiteAdapter, entryRepo: EntryRepository, ontologyService: OntologyService, searchService: SearchService, embeddingService: EmbeddingService, options?: Pick<WikiOptions, "onDiagnostic"> | undefined);
|
|
4531
4566
|
remember(entityId: string, input: RememberInput): Promise<WikiFact>;
|
|
4532
4567
|
}
|
|
4533
4568
|
|
|
@@ -4857,6 +4892,8 @@ declare class WikiMemory {
|
|
|
4857
4892
|
batchSize?: number;
|
|
4858
4893
|
classifier?: 'auto' | 'llm';
|
|
4859
4894
|
tokenBudget?: number;
|
|
4895
|
+
/** Overrides the default recheck cooldown: facts stamped after this epoch ms stay deferred. */
|
|
4896
|
+
recheckCheckedBefore?: number;
|
|
4860
4897
|
}): Promise<OntologyBackfillResult>;
|
|
4861
4898
|
runReembed(entityId?: string, opts?: {
|
|
4862
4899
|
force?: boolean;
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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, aM as WikiMemoryTestAccess, b6 as WriteService } from './testing-
|
|
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, aM as WikiMemoryTestAccess, b6 as WriteService } from './testing-CDSfjx8j.mjs';
|
|
2
2
|
import '@equationalapplications/core-okf';
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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, aM as WikiMemoryTestAccess, b6 as WriteService } from './testing-
|
|
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, aM as WikiMemoryTestAccess, b6 as WriteService } from './testing-CDSfjx8j.js';
|
|
2
2
|
import '@equationalapplications/core-okf';
|