@equationalapplications/core-llm-wiki 4.14.0 → 4.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,12 @@ interface PromptOverrides {
22
22
  healSystemPrompt?: string;
23
23
  }
24
24
  interface WikiConfig {
25
+ /**
26
+ * Prefix applied to every SQL table/index/trigger name. Must match
27
+ * `^[A-Za-z][A-Za-z0-9_]{0,30}_$` (letter, then alphanumeric/underscore,
28
+ * ending in `_`, max 32 chars total) — enforced in the `WikiMemory` constructor.
29
+ * Default: `'llm_wiki_'`.
30
+ */
25
31
  tablePrefix?: string;
26
32
  maxResults?: number;
27
33
  /** @deprecated Use maxResults */
@@ -696,6 +702,13 @@ declare class JobManager {
696
702
  private _forgetKey;
697
703
  private _librarianKey;
698
704
  private _healKey;
705
+ /**
706
+ * Lookup table for acquireLock/releaseLock's dynamic-dispatch branch.
707
+ * Excludes 'ingest' | 'global_reembed' | 'global_import', which those
708
+ * methods already handle via explicit if/else branches before reaching
709
+ * this table.
710
+ */
711
+ private readonly lockKeyFns;
699
712
  private _isReembedActive;
700
713
  private _isImportActiveFor;
701
714
  private _isForgetActiveFor;
@@ -1004,11 +1017,12 @@ declare class RetrievalService {
1004
1017
  declare class WriteService {
1005
1018
  private db;
1006
1019
  private options;
1020
+ private entryRepo;
1007
1021
  private eventRepo;
1008
1022
  private metadataRepo;
1009
1023
  private jobManager;
1010
1024
  private maintenanceService;
1011
- constructor(db: SQLiteAdapter, options: WikiOptions, eventRepo: EventRepository, metadataRepo: MetadataRepository, jobManager: JobManager, maintenanceService: MaintenanceService);
1025
+ constructor(db: SQLiteAdapter, options: WikiOptions, entryRepo: EntryRepository, eventRepo: EventRepository, metadataRepo: MetadataRepository, jobManager: JobManager, maintenanceService: MaintenanceService);
1012
1026
  write(entityId: string, event: Omit<WikiEvent, 'id' | 'entity_id' | 'created_at'>): Promise<void>;
1013
1027
  private runLibrarianThenMaybeHeal;
1014
1028
  }
@@ -22,6 +22,12 @@ interface PromptOverrides {
22
22
  healSystemPrompt?: string;
23
23
  }
24
24
  interface WikiConfig {
25
+ /**
26
+ * Prefix applied to every SQL table/index/trigger name. Must match
27
+ * `^[A-Za-z][A-Za-z0-9_]{0,30}_$` (letter, then alphanumeric/underscore,
28
+ * ending in `_`, max 32 chars total) — enforced in the `WikiMemory` constructor.
29
+ * Default: `'llm_wiki_'`.
30
+ */
25
31
  tablePrefix?: string;
26
32
  maxResults?: number;
27
33
  /** @deprecated Use maxResults */
@@ -696,6 +702,13 @@ declare class JobManager {
696
702
  private _forgetKey;
697
703
  private _librarianKey;
698
704
  private _healKey;
705
+ /**
706
+ * Lookup table for acquireLock/releaseLock's dynamic-dispatch branch.
707
+ * Excludes 'ingest' | 'global_reembed' | 'global_import', which those
708
+ * methods already handle via explicit if/else branches before reaching
709
+ * this table.
710
+ */
711
+ private readonly lockKeyFns;
699
712
  private _isReembedActive;
700
713
  private _isImportActiveFor;
701
714
  private _isForgetActiveFor;
@@ -1004,11 +1017,12 @@ declare class RetrievalService {
1004
1017
  declare class WriteService {
1005
1018
  private db;
1006
1019
  private options;
1020
+ private entryRepo;
1007
1021
  private eventRepo;
1008
1022
  private metadataRepo;
1009
1023
  private jobManager;
1010
1024
  private maintenanceService;
1011
- constructor(db: SQLiteAdapter, options: WikiOptions, eventRepo: EventRepository, metadataRepo: MetadataRepository, jobManager: JobManager, maintenanceService: MaintenanceService);
1025
+ constructor(db: SQLiteAdapter, options: WikiOptions, entryRepo: EntryRepository, eventRepo: EventRepository, metadataRepo: MetadataRepository, jobManager: JobManager, maintenanceService: MaintenanceService);
1012
1026
  write(entityId: string, event: Omit<WikiEvent, 'id' | 'entity_id' | 'created_at'>): Promise<void>;
1013
1027
  private runLibrarianThenMaybeHeal;
1014
1028
  }
@@ -1,2 +1,2 @@
1
- export { t as EmbeddingService, I as ImportExportService, u as IngestionService, J as JobManager, J as JobManagerType, v as MaintenanceService, w as RetrievalService, x as SearchService, x as SearchServiceType, q as WikiMemoryTestAccess, y as WriteService } from './testing-CDIDE4Jd.mjs';
1
+ export { t as EmbeddingService, I as ImportExportService, u as IngestionService, J as JobManager, J as JobManagerType, v as MaintenanceService, w as RetrievalService, x as SearchService, x as SearchServiceType, q as WikiMemoryTestAccess, y as WriteService } from './testing-DW1qufP0.mjs';
2
2
  import 'minisearch';
package/dist/testing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { t as EmbeddingService, I as ImportExportService, u as IngestionService, J as JobManager, J as JobManagerType, v as MaintenanceService, w as RetrievalService, x as SearchService, x as SearchServiceType, q as WikiMemoryTestAccess, y as WriteService } from './testing-CDIDE4Jd.js';
1
+ export { t as EmbeddingService, I as ImportExportService, u as IngestionService, J as JobManager, J as JobManagerType, v as MaintenanceService, w as RetrievalService, x as SearchService, x as SearchServiceType, q as WikiMemoryTestAccess, y as WriteService } from './testing-DW1qufP0.js';
2
2
  import 'minisearch';