@remnic/core 9.3.724 → 9.3.726

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 (170) hide show
  1. package/dist/access-boundary.js +26 -25
  2. package/dist/access-cli.js +64 -62
  3. package/dist/access-cli.js.map +1 -1
  4. package/dist/access-http.js +33 -32
  5. package/dist/access-mcp.js +30 -29
  6. package/dist/access-operations-batch.js +27 -26
  7. package/dist/access-operations.js +29 -28
  8. package/dist/access-schema.js +3 -3
  9. package/dist/access-service.js +25 -24
  10. package/dist/active-recall.js +1 -1
  11. package/dist/adapters/index.js +4 -4
  12. package/dist/adapters/registry.js +2 -2
  13. package/dist/briefing.js +6 -5
  14. package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-GWVG7LGC.js} +2 -2
  15. package/dist/causal-consolidation.js +7 -6
  16. package/dist/causal-consolidation.js.map +1 -1
  17. package/dist/{chunk-C6BWLYW5.js → chunk-2NBP25BG.js} +7 -7
  18. package/dist/{chunk-YUYPWJD3.js → chunk-3MS3QVX6.js} +2 -2
  19. package/dist/{chunk-FVZ2ISIX.js → chunk-3TUT4PWB.js} +2 -2
  20. package/dist/{chunk-HCVWF657.js → chunk-53EEQYE5.js} +7 -7
  21. package/dist/{chunk-TAPSNIMA.js → chunk-5CEJH5ZN.js} +4 -4
  22. package/dist/{chunk-D7EBTQ24.js → chunk-5NWYQUQC.js} +2 -2
  23. package/dist/{chunk-NT36GU6X.js → chunk-5OOA7SGX.js} +2 -2
  24. package/dist/{chunk-KQAFEZQX.js → chunk-5W7CTZ2E.js} +4 -4
  25. package/dist/{chunk-QR67FU5G.js → chunk-6AFVIOVZ.js} +2 -2
  26. package/dist/{chunk-UBHVAGO7.js → chunk-6WAJQKBS.js} +2 -2
  27. package/dist/{chunk-6CWGS2LY.js → chunk-7NS7AWMZ.js} +3 -3
  28. package/dist/{chunk-T55EGZSJ.js → chunk-BB57OZWC.js} +2 -2
  29. package/dist/{chunk-YQMPUYHE.js → chunk-BBIE7W52.js} +2 -2
  30. package/dist/{chunk-WAFDHKES.js → chunk-BEUCACTV.js} +2 -2
  31. package/dist/{chunk-4SF232E6.js → chunk-BIA7ELIB.js} +17 -5
  32. package/dist/chunk-BIA7ELIB.js.map +1 -0
  33. package/dist/{chunk-GZQXOQQ2.js → chunk-DCKNMLEQ.js} +4 -4
  34. package/dist/{chunk-ZUDM75KG.js → chunk-DCWIQFNA.js} +4 -4
  35. package/dist/{chunk-VI5SGGXB.js → chunk-DQXPJ6HD.js} +4 -4
  36. package/dist/{chunk-YNDLCWXS.js → chunk-EZ25VE3G.js} +4 -4
  37. package/dist/{chunk-Z3FGC3QE.js → chunk-EZNDNMRH.js} +139 -30
  38. package/dist/chunk-EZNDNMRH.js.map +1 -0
  39. package/dist/{chunk-FACTVMXQ.js → chunk-FO3HO52S.js} +2 -2
  40. package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
  41. package/dist/{chunk-JJJCVCCQ.js → chunk-JPUT5NGH.js} +2 -2
  42. package/dist/{chunk-5OPYYPJN.js → chunk-K4ZNARDO.js} +2 -2
  43. package/dist/{chunk-4WZ3J7M6.js → chunk-KJR66XOM.js} +2 -2
  44. package/dist/{chunk-LD53WPMU.js → chunk-LQ6JI4VH.js} +4 -4
  45. package/dist/chunk-LTHVM4XN.js +109 -0
  46. package/dist/chunk-LTHVM4XN.js.map +1 -0
  47. package/dist/{chunk-4R3CGCI5.js → chunk-MQVKHFIU.js} +16 -13
  48. package/dist/chunk-MQVKHFIU.js.map +1 -0
  49. package/dist/{chunk-FXCIOLRB.js → chunk-NPL7VDM6.js} +2 -2
  50. package/dist/{chunk-KLFYKC3K.js → chunk-OAHOL3ZC.js} +112 -72
  51. package/dist/chunk-OAHOL3ZC.js.map +1 -0
  52. package/dist/{chunk-2NLLXCJG.js → chunk-OWHERGF2.js} +2 -2
  53. package/dist/{chunk-I2HL5M6T.js → chunk-PLG6JHQS.js} +42 -42
  54. package/dist/{chunk-KGZF2VO3.js → chunk-Q6D75LVH.js} +15 -15
  55. package/dist/{chunk-SC2YAWRF.js → chunk-RRHHQYJS.js} +2 -2
  56. package/dist/{chunk-J334N6QV.js → chunk-TA3Y6GEX.js} +2 -2
  57. package/dist/{chunk-FN6QP7JQ.js → chunk-TQQH2FTX.js} +4 -4
  58. package/dist/{chunk-DF3I6JGP.js → chunk-UKTDXTWX.js} +15 -15
  59. package/dist/{chunk-ARV3AUOM.js → chunk-UNNDFYUX.js} +5 -5
  60. package/dist/{chunk-ZK2L72VN.js → chunk-UQSVUEN2.js} +2 -2
  61. package/dist/{chunk-X7Y7WX73.js → chunk-UVYI6VIX.js} +1 -1
  62. package/dist/{chunk-H7HUQIY7.js → chunk-V7CMKMHM.js} +3 -3
  63. package/dist/chunk-W5H6ZRPT.js +14 -0
  64. package/dist/chunk-W5H6ZRPT.js.map +1 -0
  65. package/dist/{chunk-TT5U3UDO.js → chunk-WGTWGDR5.js} +5 -5
  66. package/dist/{chunk-YQGHW5ML.js → chunk-WRFKZEO6.js} +4 -4
  67. package/dist/{chunk-WM7DNKBD.js → chunk-YTZ3VGC7.js} +2 -2
  68. package/dist/cli.js +54 -53
  69. package/dist/compounding/engine.js +6 -5
  70. package/dist/config.js +1 -1
  71. package/dist/connectors/codex-materialize-runner.js +6 -5
  72. package/dist/connectors/index.js +6 -5
  73. package/dist/content-hash.d.ts +14 -0
  74. package/dist/content-hash.js +10 -0
  75. package/dist/content-hash.js.map +1 -0
  76. package/dist/conversation-index/backend.js +2 -2
  77. package/dist/dashboard-runtime.js +2 -2
  78. package/dist/entity-retrieval.js +6 -5
  79. package/dist/extraction-redaction-rules.d.ts +33 -0
  80. package/dist/extraction-redaction-rules.js +14 -0
  81. package/dist/extraction-redaction-rules.js.map +1 -0
  82. package/dist/extraction.js +2 -2
  83. package/dist/{forget-OEE5OELK.js → forget-WYLR4ZFV.js} +2 -2
  84. package/dist/index.js +102 -100
  85. package/dist/index.js.map +1 -1
  86. package/dist/lcm/index.js +3 -3
  87. package/dist/maintenance/memory-governance.js +6 -5
  88. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +6 -5
  89. package/dist/maintenance/rebuild-memory-projection.js +7 -6
  90. package/dist/namespaces/migrate.js +16 -15
  91. package/dist/namespaces/search.js +9 -9
  92. package/dist/namespaces/storage.js +6 -5
  93. package/dist/operator-toolkit.js +24 -23
  94. package/dist/orchestration/maintenance.js +8 -7
  95. package/dist/orchestrator.js +48 -46
  96. package/dist/resume-bundles.js +2 -2
  97. package/dist/search/factory.js +8 -8
  98. package/dist/search/index.js +12 -12
  99. package/dist/search/lancedb-backend.js +2 -2
  100. package/dist/search/meilisearch-backend.js +2 -2
  101. package/dist/search/orama-backend.js +2 -2
  102. package/dist/semantic-consolidation.js +7 -6
  103. package/dist/semantic-rule-promotion.js +6 -5
  104. package/dist/semantic-rule-verifier.js +6 -5
  105. package/dist/storage.d.ts +2 -2
  106. package/dist/storage.js +6 -5
  107. package/dist/transfer/backup.js +2 -2
  108. package/dist/transfer/capsule-export.js +2 -2
  109. package/dist/transfer/capsule-import.js +2 -2
  110. package/dist/verified-recall.js +6 -5
  111. package/package.json +2 -2
  112. package/src/config.test.ts +50 -0
  113. package/src/config.ts +21 -4
  114. package/src/content-hash.ts +24 -0
  115. package/src/correction/correction-access-wiring.ts +104 -19
  116. package/src/correction/correction-contract.ts +68 -10
  117. package/src/correction/correction-executor.test.ts +112 -2
  118. package/src/correction/correction-executor.ts +65 -5
  119. package/src/correction/correction-planner.test.ts +47 -0
  120. package/src/correction/correction-planner.ts +40 -1
  121. package/src/correction/correction-storage-integration.test.ts +183 -0
  122. package/src/extraction-redaction-rules.test.ts +213 -0
  123. package/src/extraction-redaction-rules.ts +208 -0
  124. package/src/orchestrator.ts +52 -1
  125. package/src/storage.ts +6 -10
  126. package/dist/chunk-4R3CGCI5.js.map +0 -1
  127. package/dist/chunk-4SF232E6.js.map +0 -1
  128. package/dist/chunk-KLFYKC3K.js.map +0 -1
  129. package/dist/chunk-Z3FGC3QE.js.map +0 -1
  130. /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-GWVG7LGC.js.map} +0 -0
  131. /package/dist/{chunk-C6BWLYW5.js.map → chunk-2NBP25BG.js.map} +0 -0
  132. /package/dist/{chunk-YUYPWJD3.js.map → chunk-3MS3QVX6.js.map} +0 -0
  133. /package/dist/{chunk-FVZ2ISIX.js.map → chunk-3TUT4PWB.js.map} +0 -0
  134. /package/dist/{chunk-HCVWF657.js.map → chunk-53EEQYE5.js.map} +0 -0
  135. /package/dist/{chunk-TAPSNIMA.js.map → chunk-5CEJH5ZN.js.map} +0 -0
  136. /package/dist/{chunk-D7EBTQ24.js.map → chunk-5NWYQUQC.js.map} +0 -0
  137. /package/dist/{chunk-NT36GU6X.js.map → chunk-5OOA7SGX.js.map} +0 -0
  138. /package/dist/{chunk-KQAFEZQX.js.map → chunk-5W7CTZ2E.js.map} +0 -0
  139. /package/dist/{chunk-QR67FU5G.js.map → chunk-6AFVIOVZ.js.map} +0 -0
  140. /package/dist/{chunk-UBHVAGO7.js.map → chunk-6WAJQKBS.js.map} +0 -0
  141. /package/dist/{chunk-6CWGS2LY.js.map → chunk-7NS7AWMZ.js.map} +0 -0
  142. /package/dist/{chunk-T55EGZSJ.js.map → chunk-BB57OZWC.js.map} +0 -0
  143. /package/dist/{chunk-YQMPUYHE.js.map → chunk-BBIE7W52.js.map} +0 -0
  144. /package/dist/{chunk-WAFDHKES.js.map → chunk-BEUCACTV.js.map} +0 -0
  145. /package/dist/{chunk-GZQXOQQ2.js.map → chunk-DCKNMLEQ.js.map} +0 -0
  146. /package/dist/{chunk-ZUDM75KG.js.map → chunk-DCWIQFNA.js.map} +0 -0
  147. /package/dist/{chunk-VI5SGGXB.js.map → chunk-DQXPJ6HD.js.map} +0 -0
  148. /package/dist/{chunk-YNDLCWXS.js.map → chunk-EZ25VE3G.js.map} +0 -0
  149. /package/dist/{chunk-FACTVMXQ.js.map → chunk-FO3HO52S.js.map} +0 -0
  150. /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
  151. /package/dist/{chunk-JJJCVCCQ.js.map → chunk-JPUT5NGH.js.map} +0 -0
  152. /package/dist/{chunk-5OPYYPJN.js.map → chunk-K4ZNARDO.js.map} +0 -0
  153. /package/dist/{chunk-4WZ3J7M6.js.map → chunk-KJR66XOM.js.map} +0 -0
  154. /package/dist/{chunk-LD53WPMU.js.map → chunk-LQ6JI4VH.js.map} +0 -0
  155. /package/dist/{chunk-FXCIOLRB.js.map → chunk-NPL7VDM6.js.map} +0 -0
  156. /package/dist/{chunk-2NLLXCJG.js.map → chunk-OWHERGF2.js.map} +0 -0
  157. /package/dist/{chunk-I2HL5M6T.js.map → chunk-PLG6JHQS.js.map} +0 -0
  158. /package/dist/{chunk-KGZF2VO3.js.map → chunk-Q6D75LVH.js.map} +0 -0
  159. /package/dist/{chunk-SC2YAWRF.js.map → chunk-RRHHQYJS.js.map} +0 -0
  160. /package/dist/{chunk-J334N6QV.js.map → chunk-TA3Y6GEX.js.map} +0 -0
  161. /package/dist/{chunk-FN6QP7JQ.js.map → chunk-TQQH2FTX.js.map} +0 -0
  162. /package/dist/{chunk-DF3I6JGP.js.map → chunk-UKTDXTWX.js.map} +0 -0
  163. /package/dist/{chunk-ARV3AUOM.js.map → chunk-UNNDFYUX.js.map} +0 -0
  164. /package/dist/{chunk-ZK2L72VN.js.map → chunk-UQSVUEN2.js.map} +0 -0
  165. /package/dist/{chunk-X7Y7WX73.js.map → chunk-UVYI6VIX.js.map} +0 -0
  166. /package/dist/{chunk-H7HUQIY7.js.map → chunk-V7CMKMHM.js.map} +0 -0
  167. /package/dist/{chunk-TT5U3UDO.js.map → chunk-WGTWGDR5.js.map} +0 -0
  168. /package/dist/{chunk-YQGHW5ML.js.map → chunk-WRFKZEO6.js.map} +0 -0
  169. /package/dist/{chunk-WM7DNKBD.js.map → chunk-YTZ3VGC7.js.map} +0 -0
  170. /package/dist/{forget-OEE5OELK.js.map → forget-WYLR4ZFV.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-765K3SAT.js";
4
4
  import {
5
5
  encryptCapsuleFile
6
- } from "./chunk-X7Y7WX73.js";
6
+ } from "./chunk-UVYI6VIX.js";
7
7
  import {
8
8
  computeTransferOutputRel,
9
9
  isTransferPathExcluded
@@ -109,4 +109,4 @@ async function enforceRetention(outDirAbs, retentionDays) {
109
109
  export {
110
110
  backupMemoryDir
111
111
  };
112
- //# sourceMappingURL=chunk-2NLLXCJG.js.map
112
+ //# sourceMappingURL=chunk-OWHERGF2.js.map
@@ -7,27 +7,27 @@ import {
7
7
  import {
8
8
  openclawReplayNormalizer
9
9
  } from "./chunk-7F7Z6MOS.js";
10
+ import {
11
+ importMarkdownBundle
12
+ } from "./chunk-HDDRVXX4.js";
10
13
  import {
11
14
  importSqlite
12
15
  } from "./chunk-AGNBY3VG.js";
16
+ import {
17
+ backupMemoryDir
18
+ } from "./chunk-OWHERGF2.js";
13
19
  import {
14
20
  exportJsonBundle
15
21
  } from "./chunk-UP6MOYCB.js";
16
22
  import {
17
23
  exportSqlite
18
24
  } from "./chunk-7VFZTJ7K.js";
19
- import {
20
- importMarkdownBundle
21
- } from "./chunk-HDDRVXX4.js";
22
25
  import {
23
26
  detectImportFormat
24
27
  } from "./chunk-OZKVVUJB.js";
25
28
  import {
26
29
  importJsonBundle
27
30
  } from "./chunk-2DL3OFLD.js";
28
- import {
29
- backupMemoryDir
30
- } from "./chunk-2NLLXCJG.js";
31
31
  import {
32
32
  exportMarkdownBundle
33
33
  } from "./chunk-765K3SAT.js";
@@ -47,12 +47,12 @@ import {
47
47
  } from "./chunk-D6RIFG4O.js";
48
48
  import {
49
49
  rebuildMemoryLifecycleLedger
50
- } from "./chunk-UBHVAGO7.js";
50
+ } from "./chunk-6WAJQKBS.js";
51
51
  import {
52
52
  rebuildMemoryProjection,
53
53
  repairMemoryProjection,
54
54
  verifyMemoryProjection
55
- } from "./chunk-H7HUQIY7.js";
55
+ } from "./chunk-V7CMKMHM.js";
56
56
  import {
57
57
  rebuildObservations
58
58
  } from "./chunk-LZZNTPLR.js";
@@ -70,18 +70,27 @@ import {
70
70
  } from "./chunk-GQL52GQ5.js";
71
71
  import {
72
72
  promoteSemanticRuleFromMemory
73
- } from "./chunk-FACTVMXQ.js";
74
- import {
75
- resolveAgentAccessAuthToken
76
- } from "./chunk-TGQ2NTWH.js";
73
+ } from "./chunk-FO3HO52S.js";
77
74
  import {
78
75
  buildResumeBundleFromState,
79
76
  getResumeBundleStatus,
80
77
  recordResumeBundle
81
- } from "./chunk-D7EBTQ24.js";
78
+ } from "./chunk-5NWYQUQC.js";
79
+ import {
80
+ resolveAgentAccessAuthToken
81
+ } from "./chunk-TGQ2NTWH.js";
82
82
  import {
83
83
  parseXrayCliOptions
84
84
  } from "./chunk-ZOHMPFOB.js";
85
+ import {
86
+ collectPatternMemories,
87
+ explainPatternMemory,
88
+ parsePatternsExplainOptions,
89
+ parsePatternsListOptions,
90
+ parseStrictCliDate,
91
+ renderPatternExplain,
92
+ renderPatternsList
93
+ } from "./chunk-3T74IZB3.js";
85
94
  import {
86
95
  runBenchmarkRecall,
87
96
  runOperatorConfigReview,
@@ -89,24 +98,15 @@ import {
89
98
  runOperatorInventory,
90
99
  runOperatorRepair,
91
100
  runOperatorSetup
92
- } from "./chunk-DF3I6JGP.js";
101
+ } from "./chunk-UKTDXTWX.js";
93
102
  import {
94
103
  listNamespaces,
95
104
  runNamespaceMigration,
96
105
  verifyNamespaces
97
- } from "./chunk-6CWGS2LY.js";
98
- import {
99
- collectPatternMemories,
100
- explainPatternMemory,
101
- parsePatternsExplainOptions,
102
- parsePatternsListOptions,
103
- parseStrictCliDate,
104
- renderPatternExplain,
105
- renderPatternsList
106
- } from "./chunk-3T74IZB3.js";
106
+ } from "./chunk-7NS7AWMZ.js";
107
107
  import {
108
108
  GraphDashboardServer
109
- } from "./chunk-YNDLCWXS.js";
109
+ } from "./chunk-EZ25VE3G.js";
110
110
  import {
111
111
  isReplaySource,
112
112
  normalizeReplaySessionKey
@@ -114,6 +114,9 @@ import {
114
114
  import {
115
115
  RoutingRulesStore
116
116
  } from "./chunk-WIWPSQYU.js";
117
+ import {
118
+ searchVerifiedEpisodes
119
+ } from "./chunk-NPL7VDM6.js";
117
120
  import {
118
121
  getUtilityLearningStatus,
119
122
  learnUtilityPromotionWeights
@@ -122,15 +125,12 @@ import {
122
125
  getUtilityTelemetryStatus,
123
126
  recordUtilityTelemetryEvent
124
127
  } from "./chunk-TERNBNJB.js";
125
- import {
126
- searchVerifiedEpisodes
127
- } from "./chunk-FXCIOLRB.js";
128
128
  import {
129
129
  ThreadingManager
130
130
  } from "./chunk-QRDOSYOR.js";
131
131
  import {
132
132
  searchVerifiedSemanticRules
133
- } from "./chunk-T55EGZSJ.js";
133
+ } from "./chunk-BB57OZWC.js";
134
134
  import {
135
135
  getWorkProductLedgerStatus,
136
136
  recordWorkProductLedgerEntry,
@@ -145,7 +145,7 @@ import {
145
145
  } from "./chunk-33JBK2XP.js";
146
146
  import {
147
147
  formatNamespaceMaintenanceHealthText
148
- } from "./chunk-5OPYYPJN.js";
148
+ } from "./chunk-K4ZNARDO.js";
149
149
  import {
150
150
  analyzeSessionIntegrity,
151
151
  applySessionRepair,
@@ -168,12 +168,12 @@ import {
168
168
  import {
169
169
  listConnectorStates
170
170
  } from "./chunk-6GUG4YNM.js";
171
- import {
172
- rescoreMemoryImportance
173
- } from "./chunk-JXS5PDQ7.js";
174
171
  import {
175
172
  searchHarmonicRetrieval
176
173
  } from "./chunk-AV5ZEH4M.js";
174
+ import {
175
+ rescoreMemoryImportance
176
+ } from "./chunk-JXS5PDQ7.js";
177
177
  import {
178
178
  createEvalBaselineSnapshot,
179
179
  getEvalHarnessStatus,
@@ -209,13 +209,13 @@ import {
209
209
  } from "./chunk-UQ7RN5HK.js";
210
210
  import {
211
211
  parseConfig
212
- } from "./chunk-4SF232E6.js";
212
+ } from "./chunk-BIA7ELIB.js";
213
213
  import {
214
214
  getAbstractionNodeStoreStatus
215
215
  } from "./chunk-OADWQ5CR.js";
216
216
  import {
217
217
  EngramAccessHttpServer
218
- } from "./chunk-C6BWLYW5.js";
218
+ } from "./chunk-2NBP25BG.js";
219
219
  import {
220
220
  WearablesInputError
221
221
  } from "./chunk-7WV3F5DQ.js";
@@ -228,10 +228,10 @@ import {
228
228
  createProductionChatLlmAdapter,
229
229
  loadChatSession,
230
230
  sessionBelongsToPrincipal
231
- } from "./chunk-FN6QP7JQ.js";
231
+ } from "./chunk-TQQH2FTX.js";
232
232
  import {
233
233
  EngramAccessService
234
- } from "./chunk-KGZF2VO3.js";
234
+ } from "./chunk-Q6D75LVH.js";
235
235
  import {
236
236
  WorkStorage
237
237
  } from "./chunk-GDB4J2H3.js";
@@ -249,7 +249,7 @@ import {
249
249
  readMemoryGovernanceRunArtifact,
250
250
  restoreMemoryGovernanceRun,
251
251
  runMemoryGovernance
252
- } from "./chunk-WAFDHKES.js";
252
+ } from "./chunk-BEUCACTV.js";
253
253
  import {
254
254
  getTrustZoneStoreStatus,
255
255
  promoteTrustZoneRecord,
@@ -3575,7 +3575,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
3575
3575
  const idArg = typeof args[0] === "string" ? args[0] : "";
3576
3576
  const options = args[1] ?? {};
3577
3577
  const reason = typeof options.reason === "string" && options.reason.trim().length > 0 ? options.reason.trim() : void 0;
3578
- const { forgetMemory } = await import("./forget-OEE5OELK.js");
3578
+ const { forgetMemory } = await import("./forget-WYLR4ZFV.js");
3579
3579
  try {
3580
3580
  const result = await forgetMemory(orchestrator.storage, {
3581
3581
  id: idArg,
@@ -4133,7 +4133,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
4133
4133
  }
4134
4134
  }
4135
4135
  if (sourceArchive.endsWith(".enc")) {
4136
- const { isEncryptedCapsuleFile } = await import("./capsule-crypto-7FJQINUR.js");
4136
+ const { isEncryptedCapsuleFile } = await import("./capsule-crypto-GWVG7LGC.js");
4137
4137
  const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
4138
4138
  if (encDetected) {
4139
4139
  throw new Error(
@@ -4296,7 +4296,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
4296
4296
  const { parseExportBundle } = await import("./transfer/types.js");
4297
4297
  let decryptedBuf;
4298
4298
  try {
4299
- const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-7FJQINUR.js");
4299
+ const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-GWVG7LGC.js");
4300
4300
  decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
4301
4301
  } catch (decErr) {
4302
4302
  const msg = decErr instanceof Error ? decErr.message : String(decErr);
@@ -7505,4 +7505,4 @@ export {
7505
7505
  listMemoryMarkdownFilePaths,
7506
7506
  registerCli
7507
7507
  };
7508
- //# sourceMappingURL=chunk-I2HL5M6T.js.map
7508
+ //# sourceMappingURL=chunk-PLG6JHQS.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-GDB4J2H3.js";
9
9
  import {
10
10
  importCapsule
11
- } from "./chunk-ARV3AUOM.js";
11
+ } from "./chunk-UNNDFYUX.js";
12
12
  import {
13
13
  planSessionTranscriptMigration
14
14
  } from "./chunk-IQ7WCZRW.js";
@@ -23,6 +23,9 @@ import {
23
23
  import {
24
24
  toRecallExplainJson
25
25
  } from "./chunk-6SQQOJ4U.js";
26
+ import {
27
+ recordObjectiveStateSnapshotsFromObservedMessages
28
+ } from "./chunk-ICP53SKG.js";
26
29
  import {
27
30
  buildProposedActions,
28
31
  buildQualityScore,
@@ -30,12 +33,12 @@ import {
30
33
  listMemoryGovernanceRuns,
31
34
  readMemoryGovernanceRunArtifact,
32
35
  runMemoryGovernance
33
- } from "./chunk-WAFDHKES.js";
36
+ } from "./chunk-BEUCACTV.js";
34
37
  import {
35
38
  clusterByKey,
36
39
  createCorrectionService,
37
40
  isCorrectionFeatureEnabled
38
- } from "./chunk-Z3FGC3QE.js";
41
+ } from "./chunk-EZNDNMRH.js";
39
42
  import {
40
43
  getTrustZoneStoreStatus,
41
44
  isTrustZoneName,
@@ -52,8 +55,8 @@ import {
52
55
  estimateRecallTokens
53
56
  } from "./chunk-F3XZN24Z.js";
54
57
  import {
55
- namespaceCollectionName
56
- } from "./chunk-QR67FU5G.js";
58
+ objectiveStateStoreOverrideForNamespace
59
+ } from "./chunk-6HMYUWXR.js";
57
60
  import {
58
61
  combineNamespaces,
59
62
  defaultGitInvoker,
@@ -67,18 +70,15 @@ import {
67
70
  resolveWritableNamespaceValue,
68
71
  sanitizeFragment
69
72
  } from "./chunk-J6BH2OBA.js";
73
+ import {
74
+ namespaceCollectionName
75
+ } from "./chunk-6AFVIOVZ.js";
70
76
  import {
71
77
  namespaceIdentityFromToken
72
78
  } from "./chunk-ZFXCQPNO.js";
73
79
  import {
74
80
  recordMemoryOutcome
75
81
  } from "./chunk-EIR5VLIH.js";
76
- import {
77
- recordObjectiveStateSnapshotsFromObservedMessages
78
- } from "./chunk-ICP53SKG.js";
79
- import {
80
- objectiveStateStoreOverrideForNamespace
81
- } from "./chunk-6HMYUWXR.js";
82
82
  import {
83
83
  buildGraphSnapshot
84
84
  } from "./chunk-TQT3USCG.js";
@@ -116,10 +116,10 @@ import {
116
116
  buildBriefing,
117
117
  parseBriefingFocus,
118
118
  parseBriefingWindow
119
- } from "./chunk-4WZ3J7M6.js";
119
+ } from "./chunk-KJR66XOM.js";
120
120
  import {
121
121
  parseEntityFile
122
- } from "./chunk-4R3CGCI5.js";
122
+ } from "./chunk-MQVKHFIU.js";
123
123
  import {
124
124
  stripAttributesSuffix
125
125
  } from "./chunk-SVOZFLIQ.js";
@@ -146,7 +146,7 @@ import {
146
146
  } from "./chunk-VF4XKTX3.js";
147
147
  import {
148
148
  exportCapsule
149
- } from "./chunk-KQAFEZQX.js";
149
+ } from "./chunk-5W7CTZ2E.js";
150
150
  import {
151
151
  OFFLINE_SYNC_SNAPSHOT_FORMAT,
152
152
  applyOfflineSyncChangeset,
@@ -8393,4 +8393,4 @@ export {
8393
8393
  shapeMemorySummary,
8394
8394
  EngramAccessService
8395
8395
  };
8396
- //# sourceMappingURL=chunk-KGZF2VO3.js.map
8396
+ //# sourceMappingURL=chunk-Q6D75LVH.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZFXCQPNO.js";
5
5
  import {
6
6
  StorageManager
7
- } from "./chunk-4R3CGCI5.js";
7
+ } from "./chunk-MQVKHFIU.js";
8
8
  import {
9
9
  MutationSerializer
10
10
  } from "./chunk-LTJAMRGI.js";
@@ -336,4 +336,4 @@ export {
336
336
  resolveNamespaceStorageRoot,
337
337
  NamespaceStorageRouter
338
338
  };
339
- //# sourceMappingURL=chunk-SC2YAWRF.js.map
339
+ //# sourceMappingURL=chunk-RRHHQYJS.js.map
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  planNamespaceMaintenance,
12
12
  runNamespaceMaintenanceBatchPlan
13
- } from "./chunk-WM7DNKBD.js";
13
+ } from "./chunk-YTZ3VGC7.js";
14
14
  import {
15
15
  resolveHomeDir
16
16
  } from "./chunk-JUC24CTX.js";
@@ -441,4 +441,4 @@ var MaintenanceScheduler = class {
441
441
  export {
442
442
  MaintenanceScheduler
443
443
  };
444
- //# sourceMappingURL=chunk-J334N6QV.js.map
444
+ //# sourceMappingURL=chunk-TA3Y6GEX.js.map
@@ -9,13 +9,13 @@ import {
9
9
  } from "./chunk-T4WDJPEZ.js";
10
10
  import {
11
11
  validateRequest
12
- } from "./chunk-FVZ2ISIX.js";
12
+ } from "./chunk-3TUT4PWB.js";
13
13
  import {
14
14
  getOperation
15
- } from "./chunk-NT36GU6X.js";
15
+ } from "./chunk-5OOA7SGX.js";
16
16
  import {
17
17
  EngramAccessInputError
18
- } from "./chunk-KGZF2VO3.js";
18
+ } from "./chunk-Q6D75LVH.js";
19
19
  import {
20
20
  readEnvVar
21
21
  } from "./chunk-JUC24CTX.js";
@@ -3528,4 +3528,4 @@ export {
3528
3528
  sessionBelongsToPrincipal,
3529
3529
  EngramMcpServer
3530
3530
  };
3531
- //# sourceMappingURL=chunk-FN6QP7JQ.js.map
3531
+ //# sourceMappingURL=chunk-TQQH2FTX.js.map
@@ -1,23 +1,30 @@
1
1
  import {
2
2
  listNamespaces
3
- } from "./chunk-6CWGS2LY.js";
3
+ } from "./chunk-7NS7AWMZ.js";
4
4
  import {
5
5
  runConsolidationProvenanceCheck
6
6
  } from "./chunk-7XH7VJN4.js";
7
7
  import {
8
8
  reportBufferSurpriseDistribution
9
9
  } from "./chunk-YBPYIAA5.js";
10
+ import {
11
+ resolvePluginEntry
12
+ } from "./chunk-CMTINOFS.js";
10
13
  import {
11
14
  summarizeNamespaceMaintenanceHealth
12
- } from "./chunk-5OPYYPJN.js";
15
+ } from "./chunk-K4ZNARDO.js";
13
16
  import {
14
17
  analyzeSessionIntegrity,
15
18
  applySessionRepair,
16
19
  planSessionRepair
17
20
  } from "./chunk-KFY3SGN7.js";
18
21
  import {
19
- resolvePluginEntry
20
- } from "./chunk-CMTINOFS.js";
22
+ createEvalBaselineSnapshot,
23
+ getEvalHarnessStatus,
24
+ runEvalBaselineDeltaReport,
25
+ runEvalBenchmarkCiGate,
26
+ validateEvalBenchmarkPack
27
+ } from "./chunk-3PY7VHV7.js";
21
28
  import {
22
29
  readJudgeVerdictStats
23
30
  } from "./chunk-BVKCV2ZY.js";
@@ -26,20 +33,13 @@ import {
26
33
  resolveNativeKnowledgeStatePath,
27
34
  resolveOpenClawWorkspaceStatePath
28
35
  } from "./chunk-ZCWIH4LH.js";
29
- import {
30
- createEvalBaselineSnapshot,
31
- getEvalHarnessStatus,
32
- runEvalBaselineDeltaReport,
33
- runEvalBenchmarkCiGate,
34
- validateEvalBenchmarkPack
35
- } from "./chunk-3PY7VHV7.js";
36
36
  import {
37
37
  parseConfig
38
- } from "./chunk-4SF232E6.js";
38
+ } from "./chunk-BIA7ELIB.js";
39
39
  import {
40
40
  listMemoryGovernanceRuns,
41
41
  readMemoryGovernanceRunArtifact
42
- } from "./chunk-WAFDHKES.js";
42
+ } from "./chunk-BEUCACTV.js";
43
43
  import {
44
44
  resolveAccessSetupCapabilities,
45
45
  resolveCapabilities,
@@ -50,7 +50,7 @@ import {
50
50
  } from "./chunk-EHQ5HO5T.js";
51
51
  import {
52
52
  StorageManager
53
- } from "./chunk-4R3CGCI5.js";
53
+ } from "./chunk-MQVKHFIU.js";
54
54
  import {
55
55
  lintWorkspaceFiles
56
56
  } from "./chunk-DM2T26WE.js";
@@ -1448,4 +1448,4 @@ export {
1448
1448
  runBenchmarkRecall,
1449
1449
  runOperatorRepair
1450
1450
  };
1451
- //# sourceMappingURL=chunk-DF3I6JGP.js.map
1451
+ //# sourceMappingURL=chunk-UKTDXTWX.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createVersion
3
3
  } from "./chunk-VF4XKTX3.js";
4
- import {
5
- parseExportBundle
6
- } from "./chunk-WEHSQBFR.js";
7
4
  import {
8
5
  decryptCapsuleFileInMemory,
9
6
  isEncryptedCapsuleFile
10
- } from "./chunk-X7Y7WX73.js";
7
+ } from "./chunk-UVYI6VIX.js";
8
+ import {
9
+ parseExportBundle
10
+ } from "./chunk-WEHSQBFR.js";
11
11
  import {
12
12
  assertIsDirectoryNotSymlink,
13
13
  assertRealpathInsideRoot,
@@ -227,4 +227,4 @@ function mintForkId(capsuleId, originalId, now) {
227
227
  export {
228
228
  importCapsule
229
229
  };
230
- //# sourceMappingURL=chunk-ARV3AUOM.js.map
230
+ //# sourceMappingURL=chunk-UNNDFYUX.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-3UXOZBHV.js";
8
8
  import {
9
9
  StorageManager
10
- } from "./chunk-4R3CGCI5.js";
10
+ } from "./chunk-MQVKHFIU.js";
11
11
  import {
12
12
  isSafeRouteNamespace
13
13
  } from "./chunk-U3PN77QT.js";
@@ -118,4 +118,4 @@ export {
118
118
  runCodexMaterialize,
119
119
  runPostConsolidationMaterialize
120
120
  };
121
- //# sourceMappingURL=chunk-ZK2L72VN.js.map
121
+ //# sourceMappingURL=chunk-UQSVUEN2.js.map
@@ -246,4 +246,4 @@ export {
246
246
  decryptCapsuleFile,
247
247
  decryptCapsuleFileInMemory
248
248
  };
249
- //# sourceMappingURL=chunk-X7Y7WX73.js.map
249
+ //# sourceMappingURL=chunk-UVYI6VIX.js.map
@@ -10,10 +10,10 @@ import {
10
10
  import {
11
11
  listMemoryGovernanceRuns,
12
12
  readMemoryGovernanceRunArtifact
13
- } from "./chunk-WAFDHKES.js";
13
+ } from "./chunk-BEUCACTV.js";
14
14
  import {
15
15
  StorageManager
16
- } from "./chunk-4R3CGCI5.js";
16
+ } from "./chunk-MQVKHFIU.js";
17
17
  import {
18
18
  MEMORY_LIFECYCLE_EVENT_SORT_ORDER,
19
19
  buildLifecycleEventsForMemory,
@@ -929,4 +929,4 @@ export {
929
929
  verifyMemoryProjection,
930
930
  repairMemoryProjection
931
931
  };
932
- //# sourceMappingURL=chunk-H7HUQIY7.js.map
932
+ //# sourceMappingURL=chunk-V7CMKMHM.js.map
@@ -0,0 +1,14 @@
1
+ // src/content-hash.ts
2
+ import { createHash } from "crypto";
3
+ function normalizeContent(content) {
4
+ return content.toLowerCase().replace(/[^a-z0-9\s]/g, " ").replace(/\s+/g, " ").trim();
5
+ }
6
+ function computeContentHash(content) {
7
+ return createHash("sha256").update(normalizeContent(content)).digest("hex");
8
+ }
9
+
10
+ export {
11
+ normalizeContent,
12
+ computeContentHash
13
+ };
14
+ //# sourceMappingURL=chunk-W5H6ZRPT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/content-hash.ts"],"sourcesContent":["/**\n * content-hash.ts — standalone content normalization + SHA-256 hashing.\n *\n * Extracted from `ContentHashIndex` (storage.ts) so correction modules and\n * other consumers can hash content WITHOUT importing the storage god file\n * (issue #1533 directStorageImports ratchet). The static methods on\n * `ContentHashIndex` delegate here to guarantee identical results.\n */\n\nimport { createHash } from \"node:crypto\";\n\n/** Normalize content: lowercase, strip non-alphanumerics, collapse whitespace. */\nexport function normalizeContent(content: string): string {\n return content\n .toLowerCase()\n .replace(/[^a-z0-9\\s]/g, \" \")\n .replace(/\\s+/g, \" \")\n .trim();\n}\n\n/** Normalize content and compute SHA-256 hash. */\nexport function computeContentHash(content: string): string {\n return createHash(\"sha256\").update(normalizeContent(content)).digest(\"hex\");\n}\n"],"mappings":";AASA,SAAS,kBAAkB;AAGpB,SAAS,iBAAiB,SAAyB;AACxD,SAAO,QACJ,YAAY,EACZ,QAAQ,gBAAgB,GAAG,EAC3B,QAAQ,QAAQ,GAAG,EACnB,KAAK;AACV;AAGO,SAAS,mBAAmB,SAAyB;AAC1D,SAAO,WAAW,QAAQ,EAAE,OAAO,iBAAiB,OAAO,CAAC,EAAE,OAAO,KAAK;AAC5E;","names":[]}
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  memoryStoreRequestSchema
3
- } from "./chunk-FVZ2ISIX.js";
3
+ } from "./chunk-3TUT4PWB.js";
4
4
  import {
5
5
  defineOperation
6
- } from "./chunk-NT36GU6X.js";
6
+ } from "./chunk-5OOA7SGX.js";
7
7
  import {
8
8
  DECISION_SUBCOMMANDS,
9
9
  DELTA_SUBCOMMANDS,
10
10
  EngramAccessInputError,
11
11
  isCodegraphToolName
12
- } from "./chunk-KGZF2VO3.js";
12
+ } from "./chunk-Q6D75LVH.js";
13
13
  import {
14
14
  CorrectionContractError
15
- } from "./chunk-Z3FGC3QE.js";
15
+ } from "./chunk-EZNDNMRH.js";
16
16
 
17
17
  // src/access-operations.ts
18
18
  import { z } from "zod";
@@ -465,4 +465,4 @@ export {
465
465
  codegraphIngestTracesOperation,
466
466
  REGISTERED_OPERATIONS
467
467
  };
468
- //# sourceMappingURL=chunk-TT5U3UDO.js.map
468
+ //# sourceMappingURL=chunk-WGTWGDR5.js.map
@@ -1,10 +1,10 @@
1
+ import {
2
+ scanMemoryDir
3
+ } from "./chunk-AER6MT24.js";
1
4
  import {
2
5
  isSearchAborted,
3
6
  throwIfSearchAborted
4
7
  } from "./chunk-CINZGPSJ.js";
5
- import {
6
- scanMemoryDir
7
- } from "./chunk-AER6MT24.js";
8
8
  import {
9
9
  resolveEnsureCollectionArgs
10
10
  } from "./chunk-YNQ6DFSV.js";
@@ -245,4 +245,4 @@ function isMeilisearchIndexNotFoundError(err) {
245
245
  export {
246
246
  MeilisearchBackend
247
247
  };
248
- //# sourceMappingURL=chunk-YQGHW5ML.js.map
248
+ //# sourceMappingURL=chunk-WRFKZEO6.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot,
3
3
  resolveNamespaceStorageRoot
4
- } from "./chunk-SC2YAWRF.js";
4
+ } from "./chunk-RRHHQYJS.js";
5
5
  import {
6
6
  getConfiguredNamespaces
7
7
  } from "./chunk-J6BH2OBA.js";
@@ -1946,4 +1946,4 @@ export {
1946
1946
  runNamespaceMaintenancePlan,
1947
1947
  runNamespaceMaintenanceBatchPlan
1948
1948
  };
1949
- //# sourceMappingURL=chunk-WM7DNKBD.js.map
1949
+ //# sourceMappingURL=chunk-YTZ3VGC7.js.map