@equationalapplications/core-llm-wiki 9.4.0 → 9.4.2

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.
@@ -4763,7 +4763,8 @@ declare class WikiMemory {
4763
4763
  /**
4764
4764
  * End `oldId`'s validity and link it to its replacement (spec §4.3). One
4765
4765
  * transaction. Throws `WikiSupersedeError` for missing, foreign, already
4766
- * superseded, already expired, immutable-document, or cyclic targets.
4766
+ * superseded, already expired, immutable-document, or cyclic targets, and
4767
+ * for an inverted or empty interval (`invalid_interval`).
4767
4768
  */
4768
4769
  supersede(entityId: string, oldId: string, replacement: SupersedeReplacement, options?: {
4769
4770
  validFrom?: number;
@@ -4763,7 +4763,8 @@ declare class WikiMemory {
4763
4763
  /**
4764
4764
  * End `oldId`'s validity and link it to its replacement (spec §4.3). One
4765
4765
  * transaction. Throws `WikiSupersedeError` for missing, foreign, already
4766
- * superseded, already expired, immutable-document, or cyclic targets.
4766
+ * superseded, already expired, immutable-document, or cyclic targets, and
4767
+ * for an inverted or empty interval (`invalid_interval`).
4767
4768
  */
4768
4769
  supersede(entityId: string, oldId: string, replacement: SupersedeReplacement, options?: {
4769
4770
  validFrom?: number;
@@ -1,2 +1,2 @@
1
- export { aW as EmbeddingService, aX as ImportExportService, aY as IngestionService, aZ as JobManager, aZ as JobManagerType, a_ as MaintenanceService, a$ as RetrievalService, b0 as SearchService, b0 as SearchServiceType, aI as WikiMemoryTestAccess, b1 as WriteService } from './testing-C2HwksLd.mjs';
1
+ export { aW as EmbeddingService, aX as ImportExportService, aY as IngestionService, aZ as JobManager, aZ as JobManagerType, a_ as MaintenanceService, a$ as RetrievalService, b0 as SearchService, b0 as SearchServiceType, aI as WikiMemoryTestAccess, b1 as WriteService } from './testing-BVY5P6BS.mjs';
2
2
  import '@equationalapplications/core-okf';
package/dist/testing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { aW as EmbeddingService, aX as ImportExportService, aY as IngestionService, aZ as JobManager, aZ as JobManagerType, a_ as MaintenanceService, a$ as RetrievalService, b0 as SearchService, b0 as SearchServiceType, aI as WikiMemoryTestAccess, b1 as WriteService } from './testing-C2HwksLd.js';
1
+ export { aW as EmbeddingService, aX as ImportExportService, aY as IngestionService, aZ as JobManager, aZ as JobManagerType, a_ as MaintenanceService, a$ as RetrievalService, b0 as SearchService, b0 as SearchServiceType, aI as WikiMemoryTestAccess, b1 as WriteService } from './testing-BVY5P6BS.js';
2
2
  import '@equationalapplications/core-okf';
package/dist/testing.js CHANGED
@@ -3635,6 +3635,8 @@ var TemporalService = class {
3635
3635
  if (repl.superseded_by != null) throw new WikiSupersedeError("already_superseded");
3636
3636
  const { predecessors } = await this.entryRepo.findSupersessionChainIds(entityId, oldId, HISTORY_MAX_DEPTH, tx);
3637
3637
  if (predecessors.some((r) => r.id === newId)) throw new WikiSupersedeError("cycle");
3638
+ const start = old.valid_from ?? old.created_at;
3639
+ if (t <= start) throw new WikiSupersedeError("invalid_interval");
3638
3640
  await this.entryRepo.setTemporal(oldId, entityId, { valid_to: t, superseded_by: newId, superseded_at: now }, tx);
3639
3641
  if (repl.valid_from == null) {
3640
3642
  await this.entryRepo.setTemporal(newId, entityId, { valid_from: t }, tx);