@remnic/core 9.35.2 → 9.35.4

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.
Files changed (208) hide show
  1. package/dist/access-admin-ops-surface.d.ts +5 -5
  2. package/dist/access-admin-ops-surface.js +19 -18
  3. package/dist/access-authorization-probe.d.ts +5 -5
  4. package/dist/access-authorization-probe.js +20 -19
  5. package/dist/access-boundary.d.ts +5 -5
  6. package/dist/access-boundary.js +19 -18
  7. package/dist/access-cli.js +39 -38
  8. package/dist/access-cli.js.map +1 -1
  9. package/dist/access-extraction-force-flush.d.ts +5 -5
  10. package/dist/access-extraction-force-flush.js +19 -18
  11. package/dist/access-http-lcm-compaction.d.ts +5 -5
  12. package/dist/access-http-lifecycle-flush.d.ts +5 -5
  13. package/dist/access-http.d.ts +11 -5
  14. package/dist/access-http.js +24 -23
  15. package/dist/access-identity-continuity-surface.d.ts +4 -4
  16. package/dist/access-identity-continuity-surface.js +19 -18
  17. package/dist/access-lcm-surface.d.ts +5 -5
  18. package/dist/access-lcm-surface.js +19 -18
  19. package/dist/access-mcp.d.ts +5 -5
  20. package/dist/access-mcp.js +22 -21
  21. package/dist/access-namespace-preflight.js +19 -18
  22. package/dist/access-observe-write-surface.d.ts +5 -5
  23. package/dist/access-observe-write-surface.js +19 -18
  24. package/dist/access-operations-batch.js +20 -19
  25. package/dist/access-operations.d.ts +8 -8
  26. package/dist/access-operations.js +21 -20
  27. package/dist/access-recall-concurrency.d.ts +5 -5
  28. package/dist/access-recall-concurrency.js +19 -18
  29. package/dist/access-recall-response.d.ts +5 -5
  30. package/dist/access-recall-response.js +19 -18
  31. package/dist/access-recall-surface.d.ts +5 -5
  32. package/dist/access-recall-surface.js +19 -18
  33. package/dist/access-schema.d.ts +88 -88
  34. package/dist/{access-service-D9zIBlpp.d.ts → access-service-C2WYT1pO.d.ts} +3 -3
  35. package/dist/access-service-helpers.d.ts +5 -5
  36. package/dist/access-service.d.ts +5 -5
  37. package/dist/access-service.js +19 -18
  38. package/dist/access-surface-catalog.d.ts +5 -5
  39. package/dist/access-wearables-meetings-surface.d.ts +2 -2
  40. package/dist/bootstrap.d.ts +4 -4
  41. package/dist/briefing.d.ts +1 -1
  42. package/dist/briefing.js +10 -9
  43. package/dist/buffer.d.ts +1 -1
  44. package/dist/{capsule-merge-2H2IUTBT.js → capsule-merge-IDWJPCWK.js} +77 -8
  45. package/dist/capsule-merge-IDWJPCWK.js.map +1 -0
  46. package/dist/causal-consolidation.js +11 -10
  47. package/dist/causal-consolidation.js.map +1 -1
  48. package/dist/{chunk-65ZPVYTA.js → chunk-3CE77VAP.js} +55 -5
  49. package/dist/chunk-3CE77VAP.js.map +1 -0
  50. package/dist/chunk-4J7G5SY4.js +338 -0
  51. package/dist/chunk-4J7G5SY4.js.map +1 -0
  52. package/dist/{chunk-EO7X2LDK.js → chunk-4TAD3B56.js} +2 -2
  53. package/dist/{chunk-QHYB4MJV.js → chunk-5ZGHUWTT.js} +2 -2
  54. package/dist/{chunk-TCIWHK3N.js → chunk-6D5D5A4M.js} +5 -5
  55. package/dist/{chunk-BIXWNHIL.js → chunk-6TF4M2LB.js} +5 -5
  56. package/dist/{chunk-FBUE6PD3.js → chunk-BEQOZOYZ.js} +21 -4
  57. package/dist/chunk-BEQOZOYZ.js.map +1 -0
  58. package/dist/{chunk-SA3WJJF2.js → chunk-BGLDKAYY.js} +2 -2
  59. package/dist/{chunk-OPRP6Q4Z.js → chunk-DKKZ6SO2.js} +3 -3
  60. package/dist/{chunk-6TAUHL33.js → chunk-DLVPUX7U.js} +10 -2
  61. package/dist/chunk-DLVPUX7U.js.map +1 -0
  62. package/dist/{chunk-QNWXCJ76.js → chunk-ENTCVTQR.js} +18 -1
  63. package/dist/{chunk-QNWXCJ76.js.map → chunk-ENTCVTQR.js.map} +1 -1
  64. package/dist/{chunk-AEPYA55F.js → chunk-FE7MUX7M.js} +2 -2
  65. package/dist/{chunk-GHR7WHZX.js → chunk-GORHSN5C.js} +2 -2
  66. package/dist/{chunk-7TEZUUGM.js → chunk-HUS2XN3T.js} +2 -2
  67. package/dist/{chunk-SLPLPGJQ.js → chunk-IE2CS5BM.js} +17 -10
  68. package/dist/chunk-IE2CS5BM.js.map +1 -0
  69. package/dist/{chunk-XWDZQIYU.js → chunk-IJAQCBGV.js} +2 -2
  70. package/dist/{chunk-TJLLYV2X.js → chunk-IMEXE4XS.js} +7 -7
  71. package/dist/{chunk-IZXTZ7BF.js → chunk-JYLN6KHH.js} +6 -6
  72. package/dist/{chunk-EH5U2YCX.js → chunk-M3DBB2ND.js} +2 -2
  73. package/dist/{chunk-XABS455Y.js → chunk-NBAEGFXT.js} +5 -5
  74. package/dist/{chunk-T4HH5Q3U.js → chunk-OJRLTZQM.js} +3 -3
  75. package/dist/{chunk-7ZHGPX56.js → chunk-PRP3M5Y3.js} +2 -2
  76. package/dist/{chunk-Y2ZD2RVG.js → chunk-PYTUBWAS.js} +2 -2
  77. package/dist/{chunk-4TGZCYHH.js → chunk-Q3CVY7LV.js} +1954 -1642
  78. package/dist/chunk-Q3CVY7LV.js.map +1 -0
  79. package/dist/{chunk-PH3ZWL3W.js → chunk-Q53RLEW7.js} +2 -2
  80. package/dist/{chunk-Y6OWJ3V5.js → chunk-RY2XZTFN.js} +2 -2
  81. package/dist/{chunk-2SHIWGY7.js → chunk-RY7CHVGE.js} +2 -2
  82. package/dist/{chunk-7VUAG236.js → chunk-T3FVAHM7.js} +4 -4
  83. package/dist/{chunk-2LTDWSR6.js → chunk-TSH56VPU.js} +2 -2
  84. package/dist/{chunk-J6SLNQRO.js → chunk-UBWOCQ3I.js} +6 -2
  85. package/dist/chunk-UBWOCQ3I.js.map +1 -0
  86. package/dist/{chunk-5FHE4JI7.js → chunk-VEUVON5I.js} +2 -2
  87. package/dist/{chunk-KEWUNL7P.js → chunk-WET4M3R6.js} +2 -2
  88. package/dist/{chunk-HEVWWPTL.js → chunk-Y2UUEB4I.js} +17 -17
  89. package/dist/{chunk-AHZYNPLX.js → chunk-YVMVVE4B.js} +2 -2
  90. package/dist/{chunk-5HTAJCTO.js → chunk-ZB3YODID.js} +15 -15
  91. package/dist/{chunk-FHYGLITW.js → chunk-ZJMVZLPK.js} +217 -45
  92. package/dist/{chunk-FHYGLITW.js.map → chunk-ZJMVZLPK.js.map} +1 -1
  93. package/dist/{cli-mFX-QQvx.d.ts → cli-jkmzdT8P.d.ts} +3 -3
  94. package/dist/cli.d.ts +6 -6
  95. package/dist/cli.js +34 -33
  96. package/dist/compounding/engine.d.ts +1 -1
  97. package/dist/compounding/engine.js +10 -9
  98. package/dist/connectors/codex-materialize-runner.js +10 -9
  99. package/dist/connectors/index.js +10 -9
  100. package/dist/consolidation-provenance-check.d.ts +1 -1
  101. package/dist/consolidation-provenance-check.js +8 -2
  102. package/dist/consolidation-undo.d.ts +1 -1
  103. package/dist/consolidation-undo.js +10 -1
  104. package/dist/consolidation-undo.js.map +1 -1
  105. package/dist/contradiction/index.d.ts +1 -1
  106. package/dist/corpus-watermark.js +12 -11
  107. package/dist/entity-retrieval.d.ts +1 -1
  108. package/dist/entity-retrieval.js +10 -9
  109. package/dist/explicit-capture.d.ts +4 -4
  110. package/dist/explicit-capture.js +6 -3
  111. package/dist/extraction.js +10 -9
  112. package/dist/{forget-4UY2EOKH.js → forget-DNAJ66ZD.js} +2 -2
  113. package/dist/index.d.ts +396 -396
  114. package/dist/index.js +39 -38
  115. package/dist/maintenance/memory-governance.js +10 -9
  116. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +1 -1
  117. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +10 -9
  118. package/dist/maintenance/rebuild-memory-projection.d.ts +1 -1
  119. package/dist/maintenance/rebuild-memory-projection.js +11 -10
  120. package/dist/{maintenance-70Wq118b.d.ts → maintenance-Ha9Dg93M.d.ts} +1 -1
  121. package/dist/mcp-memory-inspector-app.d.ts +5 -5
  122. package/dist/memory-worth-outcomes.d.ts +1 -1
  123. package/dist/namespaces/migrate.d.ts +1 -1
  124. package/dist/namespaces/migrate.js +11 -10
  125. package/dist/namespaces/storage.d.ts +1 -1
  126. package/dist/namespaces/storage.js +10 -9
  127. package/dist/offline-sync-impression-drain.js +3 -3
  128. package/dist/operator-doctor-corpus.js +13 -12
  129. package/dist/operator-toolkit.d.ts +1 -1
  130. package/dist/operator-toolkit.js +17 -16
  131. package/dist/orchestration/compression-guideline-coordinator.d.ts +1 -1
  132. package/dist/orchestration/maintenance.d.ts +2 -2
  133. package/dist/orchestration/maintenance.js +15 -14
  134. package/dist/{orchestrator-BH8LT-NX.d.ts → orchestrator-DV_u9bfx.d.ts} +3 -3
  135. package/dist/orchestrator.d.ts +4 -4
  136. package/dist/orchestrator.js +39 -38
  137. package/dist/page-versioning.js +7 -1
  138. package/dist/schemas.d.ts +54 -54
  139. package/dist/semantic-consolidation.js +11 -10
  140. package/dist/semantic-rule-promotion.js +10 -9
  141. package/dist/semantic-rule-verifier.js +10 -9
  142. package/dist/{service-CrxXHz5T.d.ts → service-JxXXY-Eh.d.ts} +1 -1
  143. package/dist/shared-context/manager.d.ts +8 -8
  144. package/dist/source-agent-qualifier.js +10 -9
  145. package/dist/{storage-CyWa1Jm6.d.ts → storage-BbH4HDUS.d.ts} +30 -26
  146. package/dist/storage.d.ts +1 -1
  147. package/dist/storage.js +9 -8
  148. package/dist/temporal-supersession.d.ts +1 -1
  149. package/dist/tier-migration.d.ts +1 -1
  150. package/dist/transfer/capsule-import.js +8 -2
  151. package/dist/transfer/types.d.ts +66 -66
  152. package/dist/verified-recall.js +10 -9
  153. package/package.json +2 -2
  154. package/src/access-http.ts +14 -9
  155. package/src/binary-lifecycle/pipeline.ts +52 -1
  156. package/src/consolidation-undo.ts +4 -0
  157. package/src/curation/index.ts +41 -5
  158. package/src/lifecycle/tombstones.ts +40 -0
  159. package/src/maintenance/memory-governance.ts +4 -0
  160. package/src/page-versioning.ts +16 -1
  161. package/src/review/index.ts +97 -13
  162. package/src/spaces/index.ts +127 -6
  163. package/src/storage/citation-hash-source.ts +97 -0
  164. package/src/storage/entity-canonical-id-lock.ts +33 -0
  165. package/src/storage/entity-canonical-id-migration-adapter.ts +8 -4
  166. package/src/storage/entity-canonical-id-migration.ts +129 -77
  167. package/src/storage/entity-canonical-id-references.ts +557 -0
  168. package/src/storage/entity-ref-repair.ts +171 -0
  169. package/src/storage/entity-store.ts +163 -2
  170. package/src/storage/tombstone-blocked-capture-sync.ts +18 -0
  171. package/src/storage.ts +363 -396
  172. package/src/transfer/capsule-import.ts +91 -3
  173. package/src/transfer/capsule-merge.ts +128 -10
  174. package/dist/capsule-merge-2H2IUTBT.js.map +0 -1
  175. package/dist/chunk-4TGZCYHH.js.map +0 -1
  176. package/dist/chunk-65ZPVYTA.js.map +0 -1
  177. package/dist/chunk-6TAUHL33.js.map +0 -1
  178. package/dist/chunk-FBUE6PD3.js.map +0 -1
  179. package/dist/chunk-J6SLNQRO.js.map +0 -1
  180. package/dist/chunk-SLPLPGJQ.js.map +0 -1
  181. /package/dist/{chunk-EO7X2LDK.js.map → chunk-4TAD3B56.js.map} +0 -0
  182. /package/dist/{chunk-QHYB4MJV.js.map → chunk-5ZGHUWTT.js.map} +0 -0
  183. /package/dist/{chunk-TCIWHK3N.js.map → chunk-6D5D5A4M.js.map} +0 -0
  184. /package/dist/{chunk-BIXWNHIL.js.map → chunk-6TF4M2LB.js.map} +0 -0
  185. /package/dist/{chunk-SA3WJJF2.js.map → chunk-BGLDKAYY.js.map} +0 -0
  186. /package/dist/{chunk-OPRP6Q4Z.js.map → chunk-DKKZ6SO2.js.map} +0 -0
  187. /package/dist/{chunk-AEPYA55F.js.map → chunk-FE7MUX7M.js.map} +0 -0
  188. /package/dist/{chunk-GHR7WHZX.js.map → chunk-GORHSN5C.js.map} +0 -0
  189. /package/dist/{chunk-7TEZUUGM.js.map → chunk-HUS2XN3T.js.map} +0 -0
  190. /package/dist/{chunk-XWDZQIYU.js.map → chunk-IJAQCBGV.js.map} +0 -0
  191. /package/dist/{chunk-TJLLYV2X.js.map → chunk-IMEXE4XS.js.map} +0 -0
  192. /package/dist/{chunk-IZXTZ7BF.js.map → chunk-JYLN6KHH.js.map} +0 -0
  193. /package/dist/{chunk-EH5U2YCX.js.map → chunk-M3DBB2ND.js.map} +0 -0
  194. /package/dist/{chunk-XABS455Y.js.map → chunk-NBAEGFXT.js.map} +0 -0
  195. /package/dist/{chunk-T4HH5Q3U.js.map → chunk-OJRLTZQM.js.map} +0 -0
  196. /package/dist/{chunk-7ZHGPX56.js.map → chunk-PRP3M5Y3.js.map} +0 -0
  197. /package/dist/{chunk-Y2ZD2RVG.js.map → chunk-PYTUBWAS.js.map} +0 -0
  198. /package/dist/{chunk-PH3ZWL3W.js.map → chunk-Q53RLEW7.js.map} +0 -0
  199. /package/dist/{chunk-Y6OWJ3V5.js.map → chunk-RY2XZTFN.js.map} +0 -0
  200. /package/dist/{chunk-2SHIWGY7.js.map → chunk-RY7CHVGE.js.map} +0 -0
  201. /package/dist/{chunk-7VUAG236.js.map → chunk-T3FVAHM7.js.map} +0 -0
  202. /package/dist/{chunk-2LTDWSR6.js.map → chunk-TSH56VPU.js.map} +0 -0
  203. /package/dist/{chunk-5FHE4JI7.js.map → chunk-VEUVON5I.js.map} +0 -0
  204. /package/dist/{chunk-KEWUNL7P.js.map → chunk-WET4M3R6.js.map} +0 -0
  205. /package/dist/{chunk-HEVWWPTL.js.map → chunk-Y2UUEB4I.js.map} +0 -0
  206. /package/dist/{chunk-AHZYNPLX.js.map → chunk-YVMVVE4B.js.map} +0 -0
  207. /package/dist/{chunk-5HTAJCTO.js.map → chunk-ZB3YODID.js.map} +0 -0
  208. /package/dist/{forget-4UY2EOKH.js.map → forget-DNAJ66ZD.js.map} +0 -0
@@ -805,6 +805,13 @@ declare abstract class TombstoneBlockedCaptureIndexHost {
805
805
  protected writeTombstoneBlockedOfflineSyncFileChunks(target: string, chunks: AsyncIterable<Buffer>): Promise<void>;
806
806
  writeOfflineSyncFile(filePath: string, content: Buffer): Promise<void>;
807
807
  writeOfflineSyncFileChunks(filePath: string, chunks: AsyncIterable<Buffer>): Promise<void>;
808
+ /**
809
+ * Replicated bytes are opaque (possibly encrypted) and can carry legacy
810
+ * entity references a completed migration already renamed (issue #2213) —
811
+ * but only memory-tier markdown can, so transcript/state/other sync traffic
812
+ * must not trigger the full-corpus reconcile pass.
813
+ */
814
+ private requestSyncReconcileIfMemoryPath;
808
815
  deleteOfflineSyncFile(filePath: string): Promise<void>;
809
816
  protected deleteTombstoneBlockedOfflineSyncFile(target: string): Promise<void>;
810
817
  checkTombstoneBlockedExplicitCapture(...args: [string, string, string?]): Promise<{
@@ -1059,6 +1066,7 @@ declare class StorageManager extends TombstoneBlockedCaptureIndexHost {
1059
1066
  private static readonly artifactWriteVersionByDir;
1060
1067
  private static readonly memoryStatusVersionByDir;
1061
1068
  private static readonly memoryCorpusVersionByDir;
1069
+ private static readonly entityMutationVersionByDir;
1062
1070
  private static readonly secureStoreEntityCacheKeyIds;
1063
1071
  private static nextSecureStoreEntityCacheKeyId;
1064
1072
  private static readonly coldWriteVersionByDir;
@@ -1375,23 +1383,25 @@ declare class StorageManager extends TombstoneBlockedCaptureIndexHost {
1375
1383
  protected bumpMemoryStatusVersion(): void;
1376
1384
  getMemoryStatusVersion(): number;
1377
1385
  /**
1378
- * Corpus version sentinel for the hot-memories result cache (issue #1902).
1379
- * Distinct from memory-status: it bumps on EVERY memory-file mutation
1380
- * (create/update/delete/bulk) so the version-keyed hot cache stays coherent
1381
- * across processes, WITHOUT bumping memory-status — which would needlessly
1382
- * invalidate the version-keyed entity cache on every plain fact create (the
1383
- * ki-spike regression the sibling perf work removes). memory-status keeps its
1384
- * lifecycle/status/entity semantics unchanged.
1386
+ * Entity-mutation sentinel: advanced only by entity-store content writes.
1387
+ * The migration fingerprint keys on this instead of memory-status, so
1388
+ * supersede/archive/delete no longer re-trigger discovery scans (#2213).
1389
+ */
1390
+ getEntityMutationVersion(): number;
1391
+ protected bumpEntityMutationVersion(): void;
1392
+ /**
1393
+ * Corpus version sentinel for the hot-memories result cache (#1902).
1394
+ * Distinct from memory-status: bumps on EVERY memory-file mutation so the
1395
+ * version-keyed hot cache stays coherent across processes, WITHOUT
1396
+ * invalidating the version-keyed entity cache on every plain fact create.
1385
1397
  */
1386
1398
  getMemoryCorpusVersion(): number;
1387
1399
  protected bumpMemoryCorpusVersion(): void;
1388
1400
  /**
1389
- * Corpus bump that reports whether THIS process's append was the only one
1390
- * since the pre-bump size (issue #1902, Codex P1). appendFileSync is atomic
1391
- * per write, but a peer process can append concurrently; the `exclusive`
1392
- * flag lets patchHotMemoriesCache refuse to re-key its locally patched
1393
- * (peer-incomplete) corpus at a version that already reflects a peer's
1394
- * still-unread write.
1401
+ * Corpus bump reporting whether THIS process's append was the only one
1402
+ * since the pre-bump size (#1902, Codex P1): the `exclusive` flag lets
1403
+ * patchHotMemoriesCache refuse to re-key its locally patched corpus at a
1404
+ * version already reflecting a peer's still-unread concurrent append.
1395
1405
  */
1396
1406
  private bumpMemoryCorpusVersionExclusive;
1397
1407
  protected bumpArtifactWriteVersion(): number;
@@ -1662,7 +1672,11 @@ declare class StorageManager extends TombstoneBlockedCaptureIndexHost {
1662
1672
  * store loaded last rewrite every other store's canonical entity ids.
1663
1673
  */
1664
1674
  private userAliases;
1665
- private historicalEntityCanonicalIds;
1675
+ private readonly historicalEntityCanonicalIds;
1676
+ private currentHistoricalIds;
1677
+ /** Post-persist repair subsystem (issue #2213) — storage/entity-ref-repair.ts. */
1678
+ private _entityRefRepair;
1679
+ private get entityRefRepair();
1666
1680
  private readonly entityCanonicalIdMigration;
1667
1681
  normalizeEntityName(raw: string, type: string): string;
1668
1682
  /**
@@ -1679,7 +1693,6 @@ declare class StorageManager extends TombstoneBlockedCaptureIndexHost {
1679
1693
  */
1680
1694
  loadAliases(): Promise<void>;
1681
1695
  private loadAliasesSync;
1682
- private loadHistoricalEntityCanonicalIdsSync;
1683
1696
  private runLegacyEntityCanonicalIdMigration;
1684
1697
  ensureDirectories(): Promise<void>;
1685
1698
  /**
@@ -1904,6 +1917,7 @@ declare class StorageManager extends TombstoneBlockedCaptureIndexHost {
1904
1917
  * Returns the new file path on success, null on failure.
1905
1918
  */
1906
1919
  archiveMemory(memory: MemoryFile, lifecycle?: MemoryLifecycleEventWriteOptions): Promise<string | null>;
1920
+ /** Alias of listEntityNames (kept for legacy callers; sorted). */
1907
1921
  readEntities(): Promise<string[]>;
1908
1922
  readEntity(name: string): Promise<string>;
1909
1923
  listEntityNames(): Promise<string[]>;
@@ -2038,15 +2052,7 @@ declare class StorageManager extends TombstoneBlockedCaptureIndexHost {
2038
2052
  readIdentityReflections(): Promise<string | null>;
2039
2053
  writeIdentityReflections(content: string): Promise<void>;
2040
2054
  appendIdentityReflection(reflection: string): Promise<void>;
2041
- /**
2042
- * Add a relationship to an entity file.
2043
- * Deduplicates by target+label.
2044
- */
2045
2055
  addEntityRelationship(name: string, rel: EntityRelationship): Promise<void>;
2046
- /**
2047
- * Add an activity entry to an entity file.
2048
- * Prepends to the beginning, prunes oldest entries beyond maxEntries.
2049
- */
2050
2056
  addEntityActivity(name: string, entry: EntityActivityEntry, maxEntries: number): Promise<void>;
2051
2057
  addEntityAlias(name: string, alias: string): Promise<void>;
2052
2058
  updateEntitySynthesis(name: string, synthesis: string, options?: {
@@ -2057,9 +2063,7 @@ declare class StorageManager extends TombstoneBlockedCaptureIndexHost {
2057
2063
  updatedAt?: string;
2058
2064
  incrementVersion?: boolean;
2059
2065
  }): Promise<void>;
2060
- /**
2061
- * Backward-compatible alias for legacy callers/tests.
2062
- */
2066
+ /** Backward-compatible alias for legacy callers/tests. */
2063
2067
  updateEntitySummary(name: string, summary: string): Promise<void>;
2064
2068
  readEntitySynthesisQueue(): Promise<string[]>;
2065
2069
  refreshEntitySynthesisQueue(): Promise<string[]>;
package/dist/storage.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import './types-5398p7Zm.js';
2
- export { C as ContentHashIndex, t as ContentHashIndexLockOptions, u as FactHashIndexNotAuthoritativeError, v as MemoryLifecycleEventWriteOptions, M as MemoryWriteResult, R as ReextractJobRequest, w as SealedWriteExtras, S as StorageManager, W as WriteMemoryOptions, x as buildEntitySchemaCacheKey, y as compareEntityTimestamps, z as compileEntityFacts, A as countEntityStructuredFacts, B as fingerprintEntityStructuredFacts, D as isEntitySynthesisStale, E as isValidBufferSurpriseEvent, G as normalizeFrontmatterForPath, H as normalizeStructuredSectionFacts, p as parseEntityFile, I as parseFrontmatter, J as parseFrontmatterStringValue, s as serializeEntityFile } from './storage-CyWa1Jm6.js';
2
+ export { C as ContentHashIndex, t as ContentHashIndexLockOptions, u as FactHashIndexNotAuthoritativeError, v as MemoryLifecycleEventWriteOptions, M as MemoryWriteResult, R as ReextractJobRequest, w as SealedWriteExtras, S as StorageManager, W as WriteMemoryOptions, x as buildEntitySchemaCacheKey, y as compareEntityTimestamps, z as compileEntityFacts, A as countEntityStructuredFacts, B as fingerprintEntityStructuredFacts, D as isEntitySynthesisStale, E as isValidBufferSurpriseEvent, G as normalizeFrontmatterForPath, H as normalizeStructuredSectionFacts, p as parseEntityFile, I as parseFrontmatter, J as parseFrontmatterStringValue, s as serializeEntityFile } from './storage-BbH4HDUS.js';
3
3
  export { normalizeEntityName } from './entity-id-normalization.js';
4
4
  import './page-versioning.js';
5
5
  import './consolidation-operator.js';
package/dist/storage.js CHANGED
@@ -13,16 +13,14 @@ import {
13
13
  parseFrontmatter,
14
14
  parseFrontmatterStringValue,
15
15
  serializeEntityFile
16
- } from "./chunk-4TGZCYHH.js";
16
+ } from "./chunk-Q3CVY7LV.js";
17
17
  import "./chunk-UHVXE24Y.js";
18
- import "./chunk-QNWXCJ76.js";
18
+ import "./chunk-ENTCVTQR.js";
19
19
  import "./chunk-WIPEXG6R.js";
20
- import "./chunk-DNHVPZOD.js";
21
- import "./chunk-6CIAGZ6X.js";
22
20
  import "./chunk-HKF5VASQ.js";
23
21
  import "./chunk-J6A3CX5N.js";
24
22
  import "./chunk-HXDWZFNP.js";
25
- import "./chunk-7VUAG236.js";
23
+ import "./chunk-T3FVAHM7.js";
26
24
  import "./chunk-EGGE52UU.js";
27
25
  import "./chunk-ILGC6JH6.js";
28
26
  import "./chunk-SCU65EZI.js";
@@ -33,14 +31,13 @@ import "./chunk-LDXUBPMO.js";
33
31
  import {
34
32
  ContentHashIndex,
35
33
  FactHashIndexNotAuthoritativeError
36
- } from "./chunk-FBUE6PD3.js";
34
+ } from "./chunk-BEQOZOYZ.js";
37
35
  import "./chunk-CGASUJVP.js";
38
36
  import {
39
37
  normalizeAttributePairs,
40
38
  stripAttributesSuffix
41
39
  } from "./chunk-R3DJVOSM.js";
42
40
  import "./chunk-BT7NVCML.js";
43
- import "./chunk-FFAZ2XFU.js";
44
41
  import "./chunk-3CSX3ETE.js";
45
42
  import "./chunk-RL6NEVXT.js";
46
43
  import "./chunk-JYIJNNN3.js";
@@ -49,9 +46,13 @@ import {
49
46
  normalizeEntityName
50
47
  } from "./chunk-YXZG5TVN.js";
51
48
  import "./chunk-G7D6GZ5J.js";
52
- import "./chunk-6TAUHL33.js";
49
+ import "./chunk-DLVPUX7U.js";
53
50
  import "./chunk-IJ7HK452.js";
54
51
  import "./chunk-PDJTHRAW.js";
52
+ import "./chunk-4J7G5SY4.js";
53
+ import "./chunk-DNHVPZOD.js";
54
+ import "./chunk-6CIAGZ6X.js";
55
+ import "./chunk-FFAZ2XFU.js";
55
56
  import "./chunk-W5H6ZRPT.js";
56
57
  import "./chunk-XMMESCPD.js";
57
58
  import "./chunk-42JKGUFJ.js";
@@ -1,5 +1,5 @@
1
1
  import { l as MemoryFrontmatter } from './types-5398p7Zm.js';
2
- import { S as StorageManager } from './storage-CyWa1Jm6.js';
2
+ import { S as StorageManager } from './storage-BbH4HDUS.js';
3
3
  import './message-parts/index.js';
4
4
  import './bounded-jsonl-state.js';
5
5
  import './operator-doctor-types.js';
@@ -1,5 +1,5 @@
1
1
  import { M as MemoryFile } from './types-5398p7Zm.js';
2
- import { S as StorageManager } from './storage-CyWa1Jm6.js';
2
+ import { S as StorageManager } from './storage-BbH4HDUS.js';
3
3
  import { MemoryTier } from './tier-routing.js';
4
4
  import { SearchBackend } from './search/port.js';
5
5
  import './message-parts/index.js';
@@ -1,9 +1,13 @@
1
1
  import {
2
2
  importCapsule
3
- } from "../chunk-65ZPVYTA.js";
4
- import "../chunk-6TAUHL33.js";
3
+ } from "../chunk-3CE77VAP.js";
4
+ import "../chunk-DLVPUX7U.js";
5
5
  import "../chunk-IJ7HK452.js";
6
6
  import "../chunk-PDJTHRAW.js";
7
+ import "../chunk-4J7G5SY4.js";
8
+ import "../chunk-DNHVPZOD.js";
9
+ import "../chunk-6CIAGZ6X.js";
10
+ import "../chunk-FFAZ2XFU.js";
7
11
  import "../chunk-XMMESCPD.js";
8
12
  import "../chunk-42JKGUFJ.js";
9
13
  import "../chunk-WEHSQBFR.js";
@@ -13,7 +17,9 @@ import "../chunk-UKJAGEXH.js";
13
17
  import "../chunk-FP2373TW.js";
14
18
  import "../chunk-GCGJW34D.js";
15
19
  import "../chunk-A6XUJE5D.js";
20
+ import "../chunk-5UZXUTVO.js";
16
21
  import "../chunk-VS2IYZRU.js";
22
+ import "../chunk-3WCASNQZ.js";
17
23
  import "../chunk-PZ5AY32C.js";
18
24
  export {
19
25
  importCapsule
@@ -20,26 +20,26 @@ declare const ExportManifestV1Schema: z.ZodObject<{
20
20
  bytes: number;
21
21
  }>, "many">;
22
22
  }, "strip", z.ZodTypeAny, {
23
- format: "openclaw-engram-export";
23
+ schemaVersion: 1;
24
24
  createdAt: string;
25
- pluginVersion: string;
26
25
  files: {
27
26
  path: string;
28
27
  sha256: string;
29
28
  bytes: number;
30
29
  }[];
31
- schemaVersion: 1;
30
+ format: "openclaw-engram-export";
31
+ pluginVersion: string;
32
32
  includesTranscripts: boolean;
33
33
  }, {
34
- format: "openclaw-engram-export";
34
+ schemaVersion: 1;
35
35
  createdAt: string;
36
- pluginVersion: string;
37
36
  files: {
38
37
  path: string;
39
38
  sha256: string;
40
39
  bytes: number;
41
40
  }[];
42
- schemaVersion: 1;
41
+ format: "openclaw-engram-export";
42
+ pluginVersion: string;
43
43
  includesTranscripts: boolean;
44
44
  }>;
45
45
  type ExportManifestV1 = z.infer<typeof ExportManifestV1Schema>;
@@ -75,26 +75,26 @@ declare const ExportBundleV1Schema: z.ZodObject<{
75
75
  bytes: number;
76
76
  }>, "many">;
77
77
  }, "strip", z.ZodTypeAny, {
78
- format: "openclaw-engram-export";
78
+ schemaVersion: 1;
79
79
  createdAt: string;
80
- pluginVersion: string;
81
80
  files: {
82
81
  path: string;
83
82
  sha256: string;
84
83
  bytes: number;
85
84
  }[];
86
- schemaVersion: 1;
85
+ format: "openclaw-engram-export";
86
+ pluginVersion: string;
87
87
  includesTranscripts: boolean;
88
88
  }, {
89
- format: "openclaw-engram-export";
89
+ schemaVersion: 1;
90
90
  createdAt: string;
91
- pluginVersion: string;
92
91
  files: {
93
92
  path: string;
94
93
  sha256: string;
95
94
  bytes: number;
96
95
  }[];
97
- schemaVersion: 1;
96
+ format: "openclaw-engram-export";
97
+ pluginVersion: string;
98
98
  includesTranscripts: boolean;
99
99
  }>;
100
100
  records: z.ZodArray<z.ZodObject<{
@@ -109,15 +109,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
109
109
  }>, "many">;
110
110
  }, "strip", z.ZodTypeAny, {
111
111
  manifest: {
112
- format: "openclaw-engram-export";
112
+ schemaVersion: 1;
113
113
  createdAt: string;
114
- pluginVersion: string;
115
114
  files: {
116
115
  path: string;
117
116
  sha256: string;
118
117
  bytes: number;
119
118
  }[];
120
- schemaVersion: 1;
119
+ format: "openclaw-engram-export";
120
+ pluginVersion: string;
121
121
  includesTranscripts: boolean;
122
122
  };
123
123
  records: {
@@ -126,15 +126,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
126
126
  }[];
127
127
  }, {
128
128
  manifest: {
129
- format: "openclaw-engram-export";
129
+ schemaVersion: 1;
130
130
  createdAt: string;
131
- pluginVersion: string;
132
131
  files: {
133
132
  path: string;
134
133
  sha256: string;
135
134
  bytes: number;
136
135
  }[];
137
- schemaVersion: 1;
136
+ format: "openclaw-engram-export";
137
+ pluginVersion: string;
138
138
  includesTranscripts: boolean;
139
139
  };
140
140
  records: {
@@ -319,10 +319,10 @@ declare const CapsuleBlockSchema: z.ZodObject<{
319
319
  identityAnchors: boolean;
320
320
  peerProfiles: boolean;
321
321
  };
322
- description: string;
323
- id: string;
324
322
  schemaVersion: string;
323
+ id: string;
325
324
  version: string;
325
+ description: string;
326
326
  parentCapsule: string | null;
327
327
  parent: {
328
328
  version: string;
@@ -340,10 +340,10 @@ declare const CapsuleBlockSchema: z.ZodObject<{
340
340
  identityAnchors: boolean;
341
341
  peerProfiles: boolean;
342
342
  };
343
- description: string;
344
- id: string;
345
343
  schemaVersion: string;
344
+ id: string;
346
345
  version: string;
346
+ description: string;
347
347
  parentCapsule: string | null;
348
348
  retrievalPolicy: {
349
349
  tierWeights: Record<string, number>;
@@ -470,10 +470,10 @@ declare const ExportManifestV2Schema: z.ZodObject<{
470
470
  identityAnchors: boolean;
471
471
  peerProfiles: boolean;
472
472
  };
473
- description: string;
474
- id: string;
475
473
  schemaVersion: string;
474
+ id: string;
476
475
  version: string;
476
+ description: string;
477
477
  parentCapsule: string | null;
478
478
  parent: {
479
479
  version: string;
@@ -491,10 +491,10 @@ declare const ExportManifestV2Schema: z.ZodObject<{
491
491
  identityAnchors: boolean;
492
492
  peerProfiles: boolean;
493
493
  };
494
- description: string;
495
- id: string;
496
494
  schemaVersion: string;
495
+ id: string;
497
496
  version: string;
497
+ description: string;
498
498
  parentCapsule: string | null;
499
499
  retrievalPolicy: {
500
500
  tierWeights: Record<string, number>;
@@ -507,14 +507,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
507
507
  } | null | undefined;
508
508
  }>;
509
509
  }, "strip", z.ZodTypeAny, {
510
- format: "openclaw-engram-export";
510
+ schemaVersion: 2;
511
511
  createdAt: string;
512
- pluginVersion: string;
513
512
  files: {
514
513
  path: string;
515
514
  sha256: string;
516
515
  bytes: number;
517
516
  }[];
517
+ format: "openclaw-engram-export";
518
+ pluginVersion: string;
519
+ includesTranscripts: boolean;
518
520
  capsule: {
519
521
  includes: {
520
522
  procedural: boolean;
@@ -522,10 +524,10 @@ declare const ExportManifestV2Schema: z.ZodObject<{
522
524
  identityAnchors: boolean;
523
525
  peerProfiles: boolean;
524
526
  };
525
- description: string;
526
- id: string;
527
527
  schemaVersion: string;
528
+ id: string;
528
529
  version: string;
530
+ description: string;
529
531
  parentCapsule: string | null;
530
532
  parent: {
531
533
  version: string;
@@ -537,17 +539,17 @@ declare const ExportManifestV2Schema: z.ZodObject<{
537
539
  directAnswerEnabled: boolean;
538
540
  };
539
541
  };
540
- schemaVersion: 2;
541
- includesTranscripts: boolean;
542
542
  }, {
543
- format: "openclaw-engram-export";
543
+ schemaVersion: 2;
544
544
  createdAt: string;
545
- pluginVersion: string;
546
545
  files: {
547
546
  path: string;
548
547
  sha256: string;
549
548
  bytes: number;
550
549
  }[];
550
+ format: "openclaw-engram-export";
551
+ pluginVersion: string;
552
+ includesTranscripts: boolean;
551
553
  capsule: {
552
554
  includes: {
553
555
  procedural: boolean;
@@ -555,10 +557,10 @@ declare const ExportManifestV2Schema: z.ZodObject<{
555
557
  identityAnchors: boolean;
556
558
  peerProfiles: boolean;
557
559
  };
558
- description: string;
559
- id: string;
560
560
  schemaVersion: string;
561
+ id: string;
561
562
  version: string;
563
+ description: string;
562
564
  parentCapsule: string | null;
563
565
  retrievalPolicy: {
564
566
  tierWeights: Record<string, number>;
@@ -570,8 +572,6 @@ declare const ExportManifestV2Schema: z.ZodObject<{
570
572
  forkRoot: string;
571
573
  } | null | undefined;
572
574
  };
573
- schemaVersion: 2;
574
- includesTranscripts: boolean;
575
575
  }>;
576
576
  type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
577
577
  declare const ExportBundleV2Schema: z.ZodObject<{
@@ -689,10 +689,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
689
689
  identityAnchors: boolean;
690
690
  peerProfiles: boolean;
691
691
  };
692
- description: string;
693
- id: string;
694
692
  schemaVersion: string;
693
+ id: string;
695
694
  version: string;
695
+ description: string;
696
696
  parentCapsule: string | null;
697
697
  parent: {
698
698
  version: string;
@@ -710,10 +710,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
710
710
  identityAnchors: boolean;
711
711
  peerProfiles: boolean;
712
712
  };
713
- description: string;
714
- id: string;
715
713
  schemaVersion: string;
714
+ id: string;
716
715
  version: string;
716
+ description: string;
717
717
  parentCapsule: string | null;
718
718
  retrievalPolicy: {
719
719
  tierWeights: Record<string, number>;
@@ -726,14 +726,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
726
726
  } | null | undefined;
727
727
  }>;
728
728
  }, "strip", z.ZodTypeAny, {
729
- format: "openclaw-engram-export";
729
+ schemaVersion: 2;
730
730
  createdAt: string;
731
- pluginVersion: string;
732
731
  files: {
733
732
  path: string;
734
733
  sha256: string;
735
734
  bytes: number;
736
735
  }[];
736
+ format: "openclaw-engram-export";
737
+ pluginVersion: string;
738
+ includesTranscripts: boolean;
737
739
  capsule: {
738
740
  includes: {
739
741
  procedural: boolean;
@@ -741,10 +743,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
741
743
  identityAnchors: boolean;
742
744
  peerProfiles: boolean;
743
745
  };
744
- description: string;
745
- id: string;
746
746
  schemaVersion: string;
747
+ id: string;
747
748
  version: string;
749
+ description: string;
748
750
  parentCapsule: string | null;
749
751
  parent: {
750
752
  version: string;
@@ -756,17 +758,17 @@ declare const ExportBundleV2Schema: z.ZodObject<{
756
758
  directAnswerEnabled: boolean;
757
759
  };
758
760
  };
759
- schemaVersion: 2;
760
- includesTranscripts: boolean;
761
761
  }, {
762
- format: "openclaw-engram-export";
762
+ schemaVersion: 2;
763
763
  createdAt: string;
764
- pluginVersion: string;
765
764
  files: {
766
765
  path: string;
767
766
  sha256: string;
768
767
  bytes: number;
769
768
  }[];
769
+ format: "openclaw-engram-export";
770
+ pluginVersion: string;
771
+ includesTranscripts: boolean;
770
772
  capsule: {
771
773
  includes: {
772
774
  procedural: boolean;
@@ -774,10 +776,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
774
776
  identityAnchors: boolean;
775
777
  peerProfiles: boolean;
776
778
  };
777
- description: string;
778
- id: string;
779
779
  schemaVersion: string;
780
+ id: string;
780
781
  version: string;
782
+ description: string;
781
783
  parentCapsule: string | null;
782
784
  retrievalPolicy: {
783
785
  tierWeights: Record<string, number>;
@@ -789,8 +791,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
789
791
  forkRoot: string;
790
792
  } | null | undefined;
791
793
  };
792
- schemaVersion: 2;
793
- includesTranscripts: boolean;
794
794
  }>;
795
795
  records: z.ZodArray<z.ZodObject<{
796
796
  path: z.ZodString;
@@ -804,14 +804,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
804
804
  }>, "many">;
805
805
  }, "strip", z.ZodTypeAny, {
806
806
  manifest: {
807
- format: "openclaw-engram-export";
807
+ schemaVersion: 2;
808
808
  createdAt: string;
809
- pluginVersion: string;
810
809
  files: {
811
810
  path: string;
812
811
  sha256: string;
813
812
  bytes: number;
814
813
  }[];
814
+ format: "openclaw-engram-export";
815
+ pluginVersion: string;
816
+ includesTranscripts: boolean;
815
817
  capsule: {
816
818
  includes: {
817
819
  procedural: boolean;
@@ -819,10 +821,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
819
821
  identityAnchors: boolean;
820
822
  peerProfiles: boolean;
821
823
  };
822
- description: string;
823
- id: string;
824
824
  schemaVersion: string;
825
+ id: string;
825
826
  version: string;
827
+ description: string;
826
828
  parentCapsule: string | null;
827
829
  parent: {
828
830
  version: string;
@@ -834,8 +836,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
834
836
  directAnswerEnabled: boolean;
835
837
  };
836
838
  };
837
- schemaVersion: 2;
838
- includesTranscripts: boolean;
839
839
  };
840
840
  records: {
841
841
  content: string;
@@ -843,14 +843,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
843
843
  }[];
844
844
  }, {
845
845
  manifest: {
846
- format: "openclaw-engram-export";
846
+ schemaVersion: 2;
847
847
  createdAt: string;
848
- pluginVersion: string;
849
848
  files: {
850
849
  path: string;
851
850
  sha256: string;
852
851
  bytes: number;
853
852
  }[];
853
+ format: "openclaw-engram-export";
854
+ pluginVersion: string;
855
+ includesTranscripts: boolean;
854
856
  capsule: {
855
857
  includes: {
856
858
  procedural: boolean;
@@ -858,10 +860,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
858
860
  identityAnchors: boolean;
859
861
  peerProfiles: boolean;
860
862
  };
861
- description: string;
862
- id: string;
863
863
  schemaVersion: string;
864
+ id: string;
864
865
  version: string;
866
+ description: string;
865
867
  parentCapsule: string | null;
866
868
  retrievalPolicy: {
867
869
  tierWeights: Record<string, number>;
@@ -873,8 +875,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
873
875
  forkRoot: string;
874
876
  } | null | undefined;
875
877
  };
876
- schemaVersion: 2;
877
- includesTranscripts: boolean;
878
878
  };
879
879
  records: {
880
880
  content: string;
@@ -1,18 +1,16 @@
1
1
  import {
2
2
  compareVerifiedEpisodeResults,
3
3
  searchVerifiedEpisodes
4
- } from "./chunk-EO7X2LDK.js";
4
+ } from "./chunk-4TAD3B56.js";
5
5
  import "./chunk-B7RWBZXW.js";
6
- import "./chunk-4TGZCYHH.js";
6
+ import "./chunk-Q3CVY7LV.js";
7
7
  import "./chunk-UHVXE24Y.js";
8
- import "./chunk-QNWXCJ76.js";
8
+ import "./chunk-ENTCVTQR.js";
9
9
  import "./chunk-WIPEXG6R.js";
10
- import "./chunk-DNHVPZOD.js";
11
- import "./chunk-6CIAGZ6X.js";
12
10
  import "./chunk-HKF5VASQ.js";
13
11
  import "./chunk-J6A3CX5N.js";
14
12
  import "./chunk-HXDWZFNP.js";
15
- import "./chunk-7VUAG236.js";
13
+ import "./chunk-T3FVAHM7.js";
16
14
  import "./chunk-EGGE52UU.js";
17
15
  import "./chunk-ILGC6JH6.js";
18
16
  import "./chunk-SCU65EZI.js";
@@ -20,20 +18,23 @@ import "./chunk-WRJVB3C2.js";
20
18
  import "./chunk-GCASGYIO.js";
21
19
  import "./chunk-DM2T26WE.js";
22
20
  import "./chunk-LDXUBPMO.js";
23
- import "./chunk-FBUE6PD3.js";
21
+ import "./chunk-BEQOZOYZ.js";
24
22
  import "./chunk-CGASUJVP.js";
25
23
  import "./chunk-R3DJVOSM.js";
26
24
  import "./chunk-BT7NVCML.js";
27
- import "./chunk-FFAZ2XFU.js";
28
25
  import "./chunk-3CSX3ETE.js";
29
26
  import "./chunk-RL6NEVXT.js";
30
27
  import "./chunk-JYIJNNN3.js";
31
28
  import "./chunk-AAD2ZS6P.js";
32
29
  import "./chunk-YXZG5TVN.js";
33
30
  import "./chunk-G7D6GZ5J.js";
34
- import "./chunk-6TAUHL33.js";
31
+ import "./chunk-DLVPUX7U.js";
35
32
  import "./chunk-IJ7HK452.js";
36
33
  import "./chunk-PDJTHRAW.js";
34
+ import "./chunk-4J7G5SY4.js";
35
+ import "./chunk-DNHVPZOD.js";
36
+ import "./chunk-6CIAGZ6X.js";
37
+ import "./chunk-FFAZ2XFU.js";
37
38
  import "./chunk-W5H6ZRPT.js";
38
39
  import "./chunk-XMMESCPD.js";
39
40
  import "./chunk-42JKGUFJ.js";