@remnic/core 9.3.680 → 9.3.682

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 (167) hide show
  1. package/dist/access-boundary.d.ts +178 -0
  2. package/dist/access-boundary.js +121 -0
  3. package/dist/access-cli.js +115 -101
  4. package/dist/access-cli.js.map +1 -1
  5. package/dist/access-http.d.ts +1 -1
  6. package/dist/access-http.js +48 -46
  7. package/dist/access-mcp.d.ts +1 -1
  8. package/dist/access-mcp.js +44 -42
  9. package/dist/access-operations.d.ts +127 -0
  10. package/dist/access-operations.js +115 -0
  11. package/dist/access-operations.js.map +1 -0
  12. package/dist/access-schema.d.ts +34 -34
  13. package/dist/access-schema.js +6 -6
  14. package/dist/{access-service-S9oGKPZc.d.ts → access-service-DvA6jyHL.d.ts} +1 -1
  15. package/dist/access-service.d.ts +1 -1
  16. package/dist/access-service.js +40 -40
  17. package/dist/access-surface-catalog.d.ts +125 -0
  18. package/dist/access-surface-catalog.js +162 -0
  19. package/dist/access-surface-catalog.js.map +1 -0
  20. package/dist/adapters/index.js +7 -7
  21. package/dist/adapters/registry.js +3 -3
  22. package/dist/auto-sync-5CJBJMPZ.js +1 -1
  23. package/dist/briefing.js +8 -8
  24. package/dist/{capsule-crypto-YO5QJ6L3.js → capsule-crypto-7FJQINUR.js} +2 -2
  25. package/dist/capsule-crypto-7FJQINUR.js.map +1 -0
  26. package/dist/causal-behavior.js +5 -5
  27. package/dist/causal-chain.js +3 -3
  28. package/dist/causal-consolidation.js +16 -16
  29. package/dist/causal-retrieval.js +3 -3
  30. package/dist/causal-trajectory.js +1 -1
  31. package/dist/{chunk-BXLOS5AJ.js → chunk-2NLLXCJG.js} +2 -2
  32. package/dist/{chunk-JBPKEARU.js → chunk-2QSZNTDO.js} +7 -7
  33. package/dist/{chunk-3OKWZT7F.js → chunk-3IND7N4X.js} +2 -2
  34. package/dist/{chunk-GYSYLGNE.js → chunk-7MOTEVAA.js} +2 -2
  35. package/dist/{chunk-6T4LTI2F.js → chunk-7XH7VJN4.js} +4 -4
  36. package/dist/{chunk-AGNBY3VG.js → chunk-APJQ6UEA.js} +4 -4
  37. package/dist/{chunk-LZSMQHXC.js → chunk-ARLRTZZZ.js} +5 -5
  38. package/dist/{chunk-DL6H3D7S.js → chunk-ARV3AUOM.js} +2 -2
  39. package/dist/{chunk-Q2H5U37U.js → chunk-B2B2IHUH.js} +2 -2
  40. package/dist/{chunk-SECQS4G4.js → chunk-BTVX7ZXZ.js} +5 -5
  41. package/dist/{chunk-DGEZKYVI.js → chunk-DOCTITOP.js} +4 -4
  42. package/dist/{chunk-EQYP3HA6.js → chunk-EG4TCVMU.js} +2 -2
  43. package/dist/{chunk-SLTKP5WJ.js → chunk-EW5KFXHL.js} +4 -4
  44. package/dist/{chunk-5TEYIXMP.js → chunk-FDSOMA6M.js} +28 -41
  45. package/dist/chunk-FDSOMA6M.js.map +1 -0
  46. package/dist/{chunk-CTCPB57O.js → chunk-G7Z3C2X6.js} +2 -2
  47. package/dist/{chunk-OBM7EVFU.js → chunk-H4BDNIKQ.js} +53 -53
  48. package/dist/{chunk-MTJ2LFAJ.js → chunk-H6PMGMNP.js} +2 -2
  49. package/dist/{chunk-7AAKSHDG.js → chunk-I3HSKQT7.js} +136 -136
  50. package/dist/{chunk-NXBXM7Q6.js → chunk-I75DF4FZ.js} +2 -2
  51. package/dist/{chunk-RC3AFF6Z.js → chunk-JD4SCARD.js} +1 -1
  52. package/dist/{chunk-LVTTO3VC.js → chunk-KACIOX42.js} +2 -2
  53. package/dist/{chunk-VDX2J7OX.js → chunk-KQAFEZQX.js} +2 -2
  54. package/dist/{chunk-ATRB6Q25.js → chunk-KV6CX4ON.js} +2 -2
  55. package/dist/{chunk-VL5JJOOY.js → chunk-L5MUA6Q7.js} +5 -5
  56. package/dist/{chunk-W67ZZDHO.js → chunk-M4I3TREG.js} +75 -75
  57. package/dist/chunk-NHFXF4ZO.js +107 -0
  58. package/dist/chunk-NHFXF4ZO.js.map +1 -0
  59. package/dist/{chunk-MNUPGYIV.js → chunk-NQMBSSWW.js} +2 -2
  60. package/dist/{chunk-V4ZHKCGA.js → chunk-O2WELT5C.js} +5 -5
  61. package/dist/{chunk-Z6SEG36L.js → chunk-OUWAQVDJ.js} +4 -4
  62. package/dist/{chunk-57ME5VSI.js → chunk-Q5ZU3RNY.js} +4 -4
  63. package/dist/{chunk-ACYX37IM.js → chunk-QUA2JPH2.js} +6 -6
  64. package/dist/{chunk-DWQPM67F.js → chunk-QVWM4C24.js} +37 -32
  65. package/dist/chunk-QVWM4C24.js.map +1 -0
  66. package/dist/{chunk-2AP4QJX5.js → chunk-TOQEZ63C.js} +8 -8
  67. package/dist/{chunk-EUM7CZFM.js → chunk-TY5NT3T3.js} +17 -17
  68. package/dist/{chunk-ZCVPFDHB.js → chunk-UAODC6GJ.js} +14 -14
  69. package/dist/{chunk-JI6HWBYL.js → chunk-UDJLF3BO.js} +2 -2
  70. package/dist/{chunk-YJ4J2JJ2.js → chunk-UJDV2NLT.js} +9 -9
  71. package/dist/chunk-V254FAT5.js +85 -0
  72. package/dist/chunk-V254FAT5.js.map +1 -0
  73. package/dist/{chunk-3IE22DJ2.js → chunk-WEPMT6SC.js} +10 -10
  74. package/dist/{chunk-DQEMWVMT.js → chunk-X7Y7WX73.js} +1 -1
  75. package/dist/{chunk-EZ25VE3G.js → chunk-YNDLCWXS.js} +4 -4
  76. package/dist/{cli-B2Ve7R22.d.ts → cli-feUe-x3I.d.ts} +1 -1
  77. package/dist/cli.d.ts +2 -2
  78. package/dist/cli.js +75 -73
  79. package/dist/compounding/engine.js +9 -9
  80. package/dist/connectors/codex-materialize-runner.js +9 -9
  81. package/dist/connectors/index.js +9 -9
  82. package/dist/consolidation-provenance-check.js +2 -2
  83. package/dist/dashboard-runtime.js +2 -2
  84. package/dist/entity-retrieval.js +7 -7
  85. package/dist/extraction.js +2 -2
  86. package/dist/{first-start-migration-PG5HBC3K.js → first-start-migration-FF7YFGRP.js} +4 -4
  87. package/dist/index.d.ts +2 -2
  88. package/dist/index.js +209 -207
  89. package/dist/index.js.map +1 -1
  90. package/dist/lcm/engine.js +4 -4
  91. package/dist/lcm/index.js +12 -12
  92. package/dist/maintenance/memory-governance.js +8 -8
  93. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +7 -7
  94. package/dist/maintenance/rebuild-memory-projection.js +9 -9
  95. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  96. package/dist/namespaces/migrate.js +17 -17
  97. package/dist/namespaces/search.js +8 -8
  98. package/dist/namespaces/storage.js +8 -8
  99. package/dist/operator-toolkit.js +22 -22
  100. package/dist/orchestrator.js +70 -70
  101. package/dist/resume-bundles.js +1 -1
  102. package/dist/schemas.d.ts +28 -28
  103. package/dist/search/factory.js +7 -7
  104. package/dist/search/index.js +11 -11
  105. package/dist/search/lancedb-backend.js +3 -3
  106. package/dist/search/meilisearch-backend.js +3 -3
  107. package/dist/search/orama-backend.js +3 -3
  108. package/dist/semantic-consolidation.js +11 -11
  109. package/dist/semantic-rule-promotion.js +7 -7
  110. package/dist/semantic-rule-verifier.js +8 -8
  111. package/dist/storage.js +6 -6
  112. package/dist/transfer/backup.js +4 -4
  113. package/dist/transfer/capsule-export.js +4 -4
  114. package/dist/transfer/capsule-import.js +3 -3
  115. package/dist/transfer/import-sqlite.js +2 -2
  116. package/dist/transfer/types.d.ts +20 -20
  117. package/dist/verified-recall.js +8 -8
  118. package/package.json +2 -2
  119. package/src/access-boundary.test.ts +212 -0
  120. package/src/access-boundary.ts +235 -0
  121. package/src/access-cli.ts +32 -15
  122. package/src/access-http.ts +38 -28
  123. package/src/access-mcp.ts +41 -35
  124. package/src/access-operations.ts +157 -0
  125. package/src/access-surface-catalog.test.ts +772 -0
  126. package/src/access-surface-catalog.ts +218 -0
  127. package/dist/chunk-5TEYIXMP.js.map +0 -1
  128. package/dist/chunk-DWQPM67F.js.map +0 -1
  129. /package/dist/{capsule-crypto-YO5QJ6L3.js.map → access-boundary.js.map} +0 -0
  130. /package/dist/{chunk-BXLOS5AJ.js.map → chunk-2NLLXCJG.js.map} +0 -0
  131. /package/dist/{chunk-JBPKEARU.js.map → chunk-2QSZNTDO.js.map} +0 -0
  132. /package/dist/{chunk-3OKWZT7F.js.map → chunk-3IND7N4X.js.map} +0 -0
  133. /package/dist/{chunk-GYSYLGNE.js.map → chunk-7MOTEVAA.js.map} +0 -0
  134. /package/dist/{chunk-6T4LTI2F.js.map → chunk-7XH7VJN4.js.map} +0 -0
  135. /package/dist/{chunk-AGNBY3VG.js.map → chunk-APJQ6UEA.js.map} +0 -0
  136. /package/dist/{chunk-LZSMQHXC.js.map → chunk-ARLRTZZZ.js.map} +0 -0
  137. /package/dist/{chunk-DL6H3D7S.js.map → chunk-ARV3AUOM.js.map} +0 -0
  138. /package/dist/{chunk-Q2H5U37U.js.map → chunk-B2B2IHUH.js.map} +0 -0
  139. /package/dist/{chunk-SECQS4G4.js.map → chunk-BTVX7ZXZ.js.map} +0 -0
  140. /package/dist/{chunk-DGEZKYVI.js.map → chunk-DOCTITOP.js.map} +0 -0
  141. /package/dist/{chunk-EQYP3HA6.js.map → chunk-EG4TCVMU.js.map} +0 -0
  142. /package/dist/{chunk-SLTKP5WJ.js.map → chunk-EW5KFXHL.js.map} +0 -0
  143. /package/dist/{chunk-CTCPB57O.js.map → chunk-G7Z3C2X6.js.map} +0 -0
  144. /package/dist/{chunk-OBM7EVFU.js.map → chunk-H4BDNIKQ.js.map} +0 -0
  145. /package/dist/{chunk-MTJ2LFAJ.js.map → chunk-H6PMGMNP.js.map} +0 -0
  146. /package/dist/{chunk-7AAKSHDG.js.map → chunk-I3HSKQT7.js.map} +0 -0
  147. /package/dist/{chunk-NXBXM7Q6.js.map → chunk-I75DF4FZ.js.map} +0 -0
  148. /package/dist/{chunk-RC3AFF6Z.js.map → chunk-JD4SCARD.js.map} +0 -0
  149. /package/dist/{chunk-LVTTO3VC.js.map → chunk-KACIOX42.js.map} +0 -0
  150. /package/dist/{chunk-VDX2J7OX.js.map → chunk-KQAFEZQX.js.map} +0 -0
  151. /package/dist/{chunk-ATRB6Q25.js.map → chunk-KV6CX4ON.js.map} +0 -0
  152. /package/dist/{chunk-VL5JJOOY.js.map → chunk-L5MUA6Q7.js.map} +0 -0
  153. /package/dist/{chunk-W67ZZDHO.js.map → chunk-M4I3TREG.js.map} +0 -0
  154. /package/dist/{chunk-MNUPGYIV.js.map → chunk-NQMBSSWW.js.map} +0 -0
  155. /package/dist/{chunk-V4ZHKCGA.js.map → chunk-O2WELT5C.js.map} +0 -0
  156. /package/dist/{chunk-Z6SEG36L.js.map → chunk-OUWAQVDJ.js.map} +0 -0
  157. /package/dist/{chunk-57ME5VSI.js.map → chunk-Q5ZU3RNY.js.map} +0 -0
  158. /package/dist/{chunk-ACYX37IM.js.map → chunk-QUA2JPH2.js.map} +0 -0
  159. /package/dist/{chunk-2AP4QJX5.js.map → chunk-TOQEZ63C.js.map} +0 -0
  160. /package/dist/{chunk-EUM7CZFM.js.map → chunk-TY5NT3T3.js.map} +0 -0
  161. /package/dist/{chunk-ZCVPFDHB.js.map → chunk-UAODC6GJ.js.map} +0 -0
  162. /package/dist/{chunk-JI6HWBYL.js.map → chunk-UDJLF3BO.js.map} +0 -0
  163. /package/dist/{chunk-YJ4J2JJ2.js.map → chunk-UJDV2NLT.js.map} +0 -0
  164. /package/dist/{chunk-3IE22DJ2.js.map → chunk-WEPMT6SC.js.map} +0 -0
  165. /package/dist/{chunk-DQEMWVMT.js.map → chunk-X7Y7WX73.js.map} +0 -0
  166. /package/dist/{chunk-EZ25VE3G.js.map → chunk-YNDLCWXS.js.map} +0 -0
  167. /package/dist/{first-start-migration-PG5HBC3K.js.map → first-start-migration-FF7YFGRP.js.map} +0 -0
@@ -216,4 +216,4 @@ export {
216
216
  getCausalTrajectoryStoreStatus,
217
217
  searchCausalTrajectories
218
218
  };
219
- //# sourceMappingURL=chunk-RC3AFF6Z.js.map
219
+ //# sourceMappingURL=chunk-JD4SCARD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-EUM7CZFM.js";
3
+ } from "./chunk-TY5NT3T3.js";
4
4
  import {
5
5
  getCachedRuleMemories,
6
6
  setCachedRuleMemories
@@ -117,4 +117,4 @@ export {
117
117
  compareVerifiedSemanticRuleResults,
118
118
  searchVerifiedSemanticRules
119
119
  };
120
- //# sourceMappingURL=chunk-LVTTO3VC.js.map
120
+ //# sourceMappingURL=chunk-KACIOX42.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-WEHSQBFR.js";
7
7
  import {
8
8
  encryptCapsuleFile
9
- } from "./chunk-DQEMWVMT.js";
9
+ } from "./chunk-X7Y7WX73.js";
10
10
  import {
11
11
  CAPSULE_SCHEMA_VERSION,
12
12
  EXPORT_FORMAT
@@ -261,4 +261,4 @@ export {
261
261
  exportCapsule,
262
262
  isValidCapsuleSince
263
263
  };
264
- //# sourceMappingURL=chunk-VDX2J7OX.js.map
264
+ //# sourceMappingURL=chunk-KQAFEZQX.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  StorageManager,
3
3
  normalizeEntityName
4
- } from "./chunk-EUM7CZFM.js";
4
+ } from "./chunk-TY5NT3T3.js";
5
5
  import {
6
6
  extractJsonCandidates
7
7
  } from "./chunk-RGMVMVMF.js";
@@ -870,4 +870,4 @@ export {
870
870
  resolveBriefingSaveDir,
871
871
  briefingFilename
872
872
  };
873
- //# sourceMappingURL=chunk-ATRB6Q25.js.map
873
+ //# sourceMappingURL=chunk-KV6CX4ON.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-EUM7CZFM.js";
3
+ } from "./chunk-TY5NT3T3.js";
4
4
  import {
5
5
  assertPathInsideRoot
6
6
  } from "./chunk-5GPPACXK.js";
7
- import {
8
- decideLifecycleTransition
9
- } from "./chunk-TBBDFYXW.js";
10
7
  import {
11
8
  RECALL_FALLBACK_DIRS
12
9
  } from "./chunk-VS2IYZRU.js";
10
+ import {
11
+ decideLifecycleTransition
12
+ } from "./chunk-TBBDFYXW.js";
13
13
 
14
14
  // src/maintenance/memory-governance.ts
15
15
  import path from "path";
@@ -751,4 +751,4 @@ export {
751
751
  listMemoryGovernanceRuns,
752
752
  readMemoryGovernanceRunArtifact
753
753
  };
754
- //# sourceMappingURL=chunk-VL5JJOOY.js.map
754
+ //# sourceMappingURL=chunk-L5MUA6Q7.js.map
@@ -7,18 +7,12 @@ import {
7
7
  import {
8
8
  openclawReplayNormalizer
9
9
  } from "./chunk-7F7Z6MOS.js";
10
- import {
11
- importSqlite
12
- } from "./chunk-AGNBY3VG.js";
13
- import {
14
- exportJsonBundle
15
- } from "./chunk-UP6MOYCB.js";
16
- import {
17
- exportSqlite
18
- } from "./chunk-7VFZTJ7K.js";
19
10
  import {
20
11
  importMarkdownBundle
21
12
  } from "./chunk-HDDRVXX4.js";
13
+ import {
14
+ importSqlite
15
+ } from "./chunk-APJQ6UEA.js";
22
16
  import {
23
17
  detectImportFormat
24
18
  } from "./chunk-OZKVVUJB.js";
@@ -27,15 +21,16 @@ import {
27
21
  } from "./chunk-2DL3OFLD.js";
28
22
  import {
29
23
  backupMemoryDir
30
- } from "./chunk-BXLOS5AJ.js";
24
+ } from "./chunk-2NLLXCJG.js";
25
+ import {
26
+ exportJsonBundle
27
+ } from "./chunk-UP6MOYCB.js";
31
28
  import {
32
29
  exportMarkdownBundle
33
30
  } from "./chunk-765K3SAT.js";
34
31
  import {
35
- buildReplayNormalizerRegistry,
36
- clampBatchSize,
37
- runReplay
38
- } from "./chunk-HOJZMQ4J.js";
32
+ exportSqlite
33
+ } from "./chunk-7VFZTJ7K.js";
39
34
  import {
40
35
  TailscaleHelper
41
36
  } from "./chunk-EEC4PCG5.js";
@@ -43,49 +38,63 @@ import {
43
38
  WebDavServer
44
39
  } from "./chunk-PYIFUBRK.js";
45
40
  import {
46
- migrateObservations
47
- } from "./chunk-D6RIFG4O.js";
41
+ buildReplayNormalizerRegistry,
42
+ clampBatchSize,
43
+ runReplay
44
+ } from "./chunk-HOJZMQ4J.js";
48
45
  import {
49
46
  rebuildMemoryLifecycleLedger
50
- } from "./chunk-MTJ2LFAJ.js";
47
+ } from "./chunk-H6PMGMNP.js";
51
48
  import {
52
49
  rebuildMemoryProjection,
53
50
  repairMemoryProjection,
54
51
  verifyMemoryProjection
55
- } from "./chunk-ZCVPFDHB.js";
52
+ } from "./chunk-UAODC6GJ.js";
56
53
  import {
57
54
  rebuildObservations
58
55
  } from "./chunk-LZZNTPLR.js";
59
56
  import {
60
57
  archiveObservations
61
58
  } from "./chunk-WMWVO45V.js";
59
+ import {
60
+ migrateObservations
61
+ } from "./chunk-D6RIFG4O.js";
62
+ import {
63
+ runCompatChecks
64
+ } from "./chunk-GQL52GQ5.js";
62
65
  import {
63
66
  getBulkImportSource,
64
67
  listBulkImportSources,
65
68
  registerBulkImportSource,
66
69
  runBulkImportPipeline
67
70
  } from "./chunk-CKITWVWJ.js";
68
- import {
69
- runCompatChecks
70
- } from "./chunk-GQL52GQ5.js";
71
71
  import {
72
72
  migrateSessionTranscripts,
73
73
  planSessionTranscriptMigration
74
74
  } from "./chunk-EVWIEEKZ.js";
75
75
  import {
76
76
  promoteSemanticRuleFromMemory
77
- } from "./chunk-3OKWZT7F.js";
78
- import {
79
- resolveAgentAccessAuthToken
80
- } from "./chunk-TGQ2NTWH.js";
77
+ } from "./chunk-3IND7N4X.js";
81
78
  import {
82
79
  buildResumeBundleFromState,
83
80
  getResumeBundleStatus,
84
81
  recordResumeBundle
85
82
  } from "./chunk-ODWI5XU2.js";
83
+ import {
84
+ resolveAgentAccessAuthToken
85
+ } from "./chunk-TGQ2NTWH.js";
86
86
  import {
87
87
  parseXrayCliOptions
88
88
  } from "./chunk-GSTYVG5L.js";
89
+ import {
90
+ collectPatternMemories,
91
+ explainPatternMemory,
92
+ parsePatternsExplainOptions,
93
+ parsePatternsListOptions,
94
+ parseStrictCliDate,
95
+ renderPatternExplain,
96
+ renderPatternsList
97
+ } from "./chunk-3T74IZB3.js";
89
98
  import {
90
99
  runBenchmarkRecall,
91
100
  runOperatorConfigReview,
@@ -93,24 +102,15 @@ import {
93
102
  runOperatorInventory,
94
103
  runOperatorRepair,
95
104
  runOperatorSetup
96
- } from "./chunk-2AP4QJX5.js";
105
+ } from "./chunk-TOQEZ63C.js";
97
106
  import {
98
107
  listNamespaces,
99
108
  runNamespaceMigration,
100
109
  verifyNamespaces
101
- } from "./chunk-ACYX37IM.js";
102
- import {
103
- collectPatternMemories,
104
- explainPatternMemory,
105
- parsePatternsExplainOptions,
106
- parsePatternsListOptions,
107
- parseStrictCliDate,
108
- renderPatternExplain,
109
- renderPatternsList
110
- } from "./chunk-3T74IZB3.js";
110
+ } from "./chunk-QUA2JPH2.js";
111
111
  import {
112
112
  GraphDashboardServer
113
- } from "./chunk-EZ25VE3G.js";
113
+ } from "./chunk-YNDLCWXS.js";
114
114
  import {
115
115
  isReplaySource,
116
116
  normalizeReplaySessionKey
@@ -118,9 +118,6 @@ import {
118
118
  import {
119
119
  RoutingRulesStore
120
120
  } from "./chunk-X6IRLNOO.js";
121
- import {
122
- searchVerifiedEpisodes
123
- } from "./chunk-NXBXM7Q6.js";
124
121
  import {
125
122
  getUtilityLearningStatus,
126
123
  learnUtilityPromotionWeights
@@ -129,12 +126,15 @@ import {
129
126
  getUtilityTelemetryStatus,
130
127
  recordUtilityTelemetryEvent
131
128
  } from "./chunk-TERNBNJB.js";
129
+ import {
130
+ searchVerifiedEpisodes
131
+ } from "./chunk-I75DF4FZ.js";
132
132
  import {
133
133
  ThreadingManager
134
134
  } from "./chunk-W4RVMTHR.js";
135
135
  import {
136
136
  searchVerifiedSemanticRules
137
- } from "./chunk-LVTTO3VC.js";
137
+ } from "./chunk-KACIOX42.js";
138
138
  import {
139
139
  getWorkProductLedgerStatus,
140
140
  recordWorkProductLedgerEntry,
@@ -169,12 +169,12 @@ import {
169
169
  import {
170
170
  listConnectorStates
171
171
  } from "./chunk-6GUG4YNM.js";
172
- import {
173
- searchHarmonicRetrieval
174
- } from "./chunk-AV5ZEH4M.js";
175
172
  import {
176
173
  rescoreMemoryImportance
177
174
  } from "./chunk-JXS5PDQ7.js";
175
+ import {
176
+ searchHarmonicRetrieval
177
+ } from "./chunk-AV5ZEH4M.js";
178
178
  import {
179
179
  createEvalBaselineSnapshot,
180
180
  getEvalHarnessStatus,
@@ -184,15 +184,6 @@ import {
184
184
  runEvalStoredBaselineCiGate,
185
185
  validateEvalBenchmarkPack
186
186
  } from "./chunk-3PY7VHV7.js";
187
- import {
188
- getCueAnchorStoreStatus
189
- } from "./chunk-FZZ2QTJI.js";
190
- import {
191
- applyCommitmentLedgerLifecycle,
192
- getCommitmentLedgerStatus,
193
- recordCommitmentLedgerEntry,
194
- transitionCommitmentLedgerEntryState
195
- } from "./chunk-LMDRGRJ2.js";
196
187
  import {
197
188
  buildConnectorRowsFromDefinitions,
198
189
  parseConnectorsListOptions,
@@ -202,6 +193,15 @@ import {
202
193
  renderConnectorsRunResult,
203
194
  runConnectorPollOnce
204
195
  } from "./chunk-OKTXM5H4.js";
196
+ import {
197
+ getCueAnchorStoreStatus
198
+ } from "./chunk-FZZ2QTJI.js";
199
+ import {
200
+ applyCommitmentLedgerLifecycle,
201
+ getCommitmentLedgerStatus,
202
+ recordCommitmentLedgerEntry,
203
+ transitionCommitmentLedgerEntryState
204
+ } from "./chunk-LMDRGRJ2.js";
205
205
  import {
206
206
  resolveNamespaceChildRoot
207
207
  } from "./chunk-3UXOZBHV.js";
@@ -216,16 +216,16 @@ import {
216
216
  } from "./chunk-OADWQ5CR.js";
217
217
  import {
218
218
  EngramAccessHttpServer
219
- } from "./chunk-DWQPM67F.js";
219
+ } from "./chunk-QVWM4C24.js";
220
220
  import {
221
221
  WearablesInputError
222
222
  } from "./chunk-7WV3F5DQ.js";
223
223
  import {
224
224
  EngramMcpServer
225
- } from "./chunk-5TEYIXMP.js";
225
+ } from "./chunk-FDSOMA6M.js";
226
226
  import {
227
227
  EngramAccessService
228
- } from "./chunk-OBM7EVFU.js";
228
+ } from "./chunk-H4BDNIKQ.js";
229
229
  import {
230
230
  WorkStorage
231
231
  } from "./chunk-GDB4J2H3.js";
@@ -234,12 +234,6 @@ import {
234
234
  renderRecallExplain,
235
235
  renderXray
236
236
  } from "./chunk-OHX52AOS.js";
237
- import {
238
- listMemoryGovernanceRuns,
239
- readMemoryGovernanceRunArtifact,
240
- restoreMemoryGovernanceRun,
241
- runMemoryGovernance
242
- } from "./chunk-VL5JJOOY.js";
243
237
  import {
244
238
  getTrustZoneStoreStatus,
245
239
  promoteTrustZoneRecord,
@@ -248,9 +242,18 @@ import {
248
242
  import {
249
243
  getObjectiveStateStoreStatus
250
244
  } from "./chunk-6HMYUWXR.js";
245
+ import {
246
+ listMemoryGovernanceRuns,
247
+ readMemoryGovernanceRunArtifact,
248
+ restoreMemoryGovernanceRun,
249
+ runMemoryGovernance
250
+ } from "./chunk-L5MUA6Q7.js";
251
251
  import {
252
252
  analyzeGraphHealth
253
253
  } from "./chunk-2LDBXPLB.js";
254
+ import {
255
+ getCausalTrajectoryStoreStatus
256
+ } from "./chunk-JD4SCARD.js";
254
257
  import {
255
258
  assertPathInsideRoot
256
259
  } from "./chunk-5GPPACXK.js";
@@ -259,8 +262,13 @@ import {
259
262
  isRecallDisclosure
260
263
  } from "./chunk-FMSDA2D3.js";
261
264
  import {
262
- getCausalTrajectoryStoreStatus
263
- } from "./chunk-RC3AFF6Z.js";
265
+ RECALL_FALLBACK_DIRS
266
+ } from "./chunk-VS2IYZRU.js";
267
+ import {
268
+ buildActionConfidenceInputFromOptions,
269
+ evaluateActionConfidence,
270
+ renderActionConfidenceText
271
+ } from "./chunk-AH2JUU6X.js";
264
272
  import {
265
273
  selectRouteRule,
266
274
  validateRouteTarget
@@ -271,14 +279,6 @@ import {
271
279
  import {
272
280
  resolveHomeDir
273
281
  } from "./chunk-JUC24CTX.js";
274
- import {
275
- RECALL_FALLBACK_DIRS
276
- } from "./chunk-VS2IYZRU.js";
277
- import {
278
- buildActionConfidenceInputFromOptions,
279
- evaluateActionConfidence,
280
- renderActionConfidenceText
281
- } from "./chunk-AH2JUU6X.js";
282
282
 
283
283
  // src/cli.ts
284
284
  import path2 from "path";
@@ -3617,7 +3617,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
3617
3617
  }
3618
3618
  }
3619
3619
  if (sourceArchive.endsWith(".enc")) {
3620
- const { isEncryptedCapsuleFile } = await import("./capsule-crypto-YO5QJ6L3.js");
3620
+ const { isEncryptedCapsuleFile } = await import("./capsule-crypto-7FJQINUR.js");
3621
3621
  const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
3622
3622
  if (encDetected) {
3623
3623
  throw new Error(
@@ -3780,7 +3780,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
3780
3780
  const { parseExportBundle } = await import("./transfer/types.js");
3781
3781
  let decryptedBuf;
3782
3782
  try {
3783
- const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-YO5QJ6L3.js");
3783
+ const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-7FJQINUR.js");
3784
3784
  decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
3785
3785
  } catch (decErr) {
3786
3786
  const msg = decErr instanceof Error ? decErr.message : String(decErr);
@@ -7311,4 +7311,4 @@ export {
7311
7311
  listMemoryMarkdownFilePaths,
7312
7312
  registerCli
7313
7313
  };
7314
- //# sourceMappingURL=chunk-W67ZZDHO.js.map
7314
+ //# sourceMappingURL=chunk-M4I3TREG.js.map
@@ -0,0 +1,107 @@
1
+ import {
2
+ EngramAccessInputError
3
+ } from "./chunk-H4BDNIKQ.js";
4
+ import {
5
+ expandTildePath
6
+ } from "./chunk-EYIEWJNI.js";
7
+
8
+ // src/access-boundary.ts
9
+ import { z } from "zod";
10
+ function coerceBooleanLike(value) {
11
+ if (value === void 0 || value === null || value === "") return void 0;
12
+ if (typeof value === "boolean") return value;
13
+ if (typeof value === "string") {
14
+ const lower = value.trim().toLowerCase();
15
+ if (lower === "true" || lower === "1" || lower === "yes" || lower === "on") return true;
16
+ if (lower === "false" || lower === "0" || lower === "no" || lower === "off") return false;
17
+ }
18
+ throw new EngramAccessInputError(
19
+ `expected a boolean-like value (true|false|1|0|yes|no|on|off); got ${JSON.stringify(value)}`
20
+ );
21
+ }
22
+ function coercePositiveInteger(value, label) {
23
+ if (value === void 0 || value === null || value === "") return void 0;
24
+ if (typeof value === "number") {
25
+ if (!Number.isFinite(value) || value <= 0 || !Number.isInteger(value)) {
26
+ throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);
27
+ }
28
+ return value;
29
+ }
30
+ if (typeof value === "string") {
31
+ const trimmed = value.trim();
32
+ if (!/^[+-]?\d+$/.test(trimmed)) {
33
+ throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);
34
+ }
35
+ const parsed = Number(trimmed);
36
+ if (!Number.isSafeInteger(parsed) || parsed <= 0) {
37
+ throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);
38
+ }
39
+ return parsed;
40
+ }
41
+ throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);
42
+ }
43
+ function normalizeOptionalPath(value) {
44
+ if (value === void 0 || value === null || value === "") return void 0;
45
+ if (typeof value !== "string") {
46
+ throw new EngramAccessInputError(`expected a path string; got ${JSON.stringify(value)}`);
47
+ }
48
+ return expandTildePath(value);
49
+ }
50
+ function formatZodIssues(error) {
51
+ const parts = [];
52
+ for (const issue of error.issues) {
53
+ const path = issue.path.length > 0 ? issue.path.join(".") : "(root)";
54
+ const options = enumOptionsFromIssue(issue);
55
+ const suffix = options ? `. Valid: ${options.join(", ")}` : "";
56
+ parts.push(`${path}: ${issue.message}${suffix}`);
57
+ }
58
+ return parts.length > 0 ? `request validation failed: ${parts.join("; ")}` : "request validation failed";
59
+ }
60
+ function enumOptionsFromIssue(issue) {
61
+ if (issue.code === z.ZodIssueCode.invalid_enum_value) {
62
+ const rawOptions = issue.options;
63
+ if (Array.isArray(rawOptions)) {
64
+ return rawOptions.map((opt) => String(opt));
65
+ }
66
+ }
67
+ return void 0;
68
+ }
69
+ var registry = /* @__PURE__ */ new Map();
70
+ function defineOperation(spec) {
71
+ if (registry.has(spec.name)) {
72
+ throw new Error(`access-boundary: operation already registered: ${spec.name}`);
73
+ }
74
+ const bound = {
75
+ spec,
76
+ run: async (rawInput, ctx) => {
77
+ const parseResult = spec.schema.safeParse(rawInput);
78
+ if (!parseResult.success) {
79
+ throw new EngramAccessInputError(formatZodIssues(parseResult.error));
80
+ }
81
+ return spec.handler(parseResult.data, ctx);
82
+ }
83
+ };
84
+ registry.set(spec.name, bound);
85
+ return bound;
86
+ }
87
+ function getOperation(name) {
88
+ return registry.get(name);
89
+ }
90
+ function listRegisteredOperations() {
91
+ return [...registry.keys()];
92
+ }
93
+ function __resetRegistryForTest() {
94
+ registry.clear();
95
+ }
96
+
97
+ export {
98
+ coerceBooleanLike,
99
+ coercePositiveInteger,
100
+ normalizeOptionalPath,
101
+ formatZodIssues,
102
+ defineOperation,
103
+ getOperation,
104
+ listRegisteredOperations,
105
+ __resetRegistryForTest
106
+ };
107
+ //# sourceMappingURL=chunk-NHFXF4ZO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/access-boundary.ts"],"sourcesContent":["/**\n * Single input-validation and error boundary for the CLI/MCP/HTTP access\n * surfaces (issue #1525, epic #1520 Phase 1).\n *\n * Every operation that crosses the access-service facade passes through ONE\n * registry entry: a zod-validated request envelope, a shared error mapper,\n * and the \"reject invalid input and list valid options\" behavior that\n * CLAUDE.md rules 14/17/24/28/36/48/51 previously had to be re-implemented\n * per handler. The three surfaces become thin adapters — one operation\n * definition, three transports — so a validation fix lands everywhere at\n * once.\n *\n * Host-agnostic (rule 31): operation names carry no `openclaw-*`/`engram-*`\n * prefix. Session/namespace tenancy stays in the handler layer (resolved via\n * ScopePlan #1521); the boundary validates SHAPE, not tenancy.\n */\n\nimport { z } from \"zod\";\nimport { EngramAccessInputError, type EngramAccessService } from \"./access-service.js\";\nimport { expandTildePath } from \"./utils/path.js\";\n\n// ---------------------------------------------------------------------------\n// Canonical operation names — host-agnostic (rule 31)\n// ---------------------------------------------------------------------------\n\n/**\n * Canonical operation ids. One id is shared by the MCP tool, the HTTP route,\n * and the CLI command that expose the same operation. Add to this union as\n * each domain-group migration PR (memory ops → connectors → namespaces …)\n * lands; the fitness test in `access-surface-catalog.test.ts` treats the\n * registered set as the migration state.\n */\nexport type OperationName =\n | \"memory_get\"\n | \"memory_search\"\n | \"memory_store\";\n\n// ---------------------------------------------------------------------------\n// Operation context — what every handler receives\n// ---------------------------------------------------------------------------\n\n/**\n * Per-call context. `service` is the facade the handler delegates to; the\n * boundary never reaches past it. `authenticatedPrincipal` is resolved by\n * the SURFACE (MCP header / HTTP identity / CLI flag) before the boundary\n * runs, so handlers stay principal-source-agnostic. `hooks` carries\n * transport-level callbacks (e.g. HTTP write-quota enforcement) that must\n * fire atomically inside the service call; surfaces that have no such hook\n * leave it undefined.\n */\nexport interface OperationContext {\n readonly service: EngramAccessService;\n readonly authenticatedPrincipal?: string;\n readonly hooks?: OperationHooks;\n}\n\n/**\n * Transport-level callbacks a handler forwards into the service call. Kept\n * narrow on purpose: the boundary owns validation + dispatch shape, not\n * transport policy. Add fields here only when a surface genuinely needs a\n * callback the service itself consumes.\n */\nexport interface OperationHooks {\n /** HTTP write-quota gate; throws to reject the write when exhausted. */\n readonly enforceWriteQuota?: () => void | Promise<void>;\n}\n\n// ---------------------------------------------------------------------------\n// Operation spec + bound operation\n// ---------------------------------------------------------------------------\n\nexport interface OperationSpec<In, Out> {\n /** Canonical operation id; matches an {@link OperationName}. */\n readonly name: OperationName;\n readonly description: string;\n /** Zod schema validating the raw request envelope. */\n readonly schema: z.ZodType<In>;\n /** Handler invoked with the parsed input; throws EngramAccessInputError for domain faults. */\n readonly handler: (input: In, ctx: OperationContext) => Promise<Out>;\n}\n\nexport interface BoundOperation<In = unknown, Out = unknown> {\n readonly spec: OperationSpec<In, Out>;\n /** Validate the raw envelope, then invoke the handler. Throws EngramAccessInputError on any validation failure. */\n readonly run: (rawInput: unknown, ctx: OperationContext) => Promise<Out>;\n}\n\n// ---------------------------------------------------------------------------\n// Shared normalizers the boundary owns (rules 17, 28, 36, 48, 51)\n// ---------------------------------------------------------------------------\n\n/**\n * Coerce boolean-like strings at the edge (rule 36). Accepts actual booleans\n * and the string spellings clients send (\"true\"/\"false\"/\"1\"/\"0\"/\"yes\"/\"no\"/\n * \"on\"/\"off\", case-insensitive). Rejects anything else loudly — `Boolean(\"false\")`\n * would silently be `true`, which is the bug rule 36 exists to prevent.\n *\n * `undefined`/`null`/`\"\"` → `undefined`, so callers can keep treating an\n * absent flag as \"use the default\" without a separate presence check.\n */\nexport function coerceBooleanLike(value: unknown): boolean | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value === \"boolean\") return value;\n if (typeof value === \"string\") {\n const lower = value.trim().toLowerCase();\n if (lower === \"true\" || lower === \"1\" || lower === \"yes\" || lower === \"on\") return true;\n if (lower === \"false\" || lower === \"0\" || lower === \"no\" || lower === \"off\") return false;\n }\n throw new EngramAccessInputError(\n `expected a boolean-like value (true|false|1|0|yes|no|on|off); got ${JSON.stringify(value)}`,\n );\n}\n\n/**\n * Coerce + validate a positive integer from a numeric string or number\n * (rule 28). Loosely-typed MCP/CLI clients send `\"5\"`; `typeof saved === \"number\"`\n * on read-back would reject it later, so we coerce at the edge and reject\n * booleans/objects loudly (`Number(true) === 1` would silently pass otherwise).\n *\n * `undefined`/`null`/`\"\"` → `undefined`.\n */\nexport function coercePositiveInteger(value: unknown, label: string): number | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value === \"number\") {\n if (!Number.isFinite(value) || value <= 0 || !Number.isInteger(value)) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n return value;\n }\n if (typeof value === \"string\") {\n const trimmed = value.trim();\n if (!/^[+-]?\\d+$/.test(trimmed)) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n const parsed = Number(trimmed);\n if (!Number.isSafeInteger(parsed) || parsed <= 0) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n return parsed;\n }\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n}\n\n/**\n * Expand `~` in a path-shaped input (rule 17). Node `fs` does NOT expand `~`;\n * ad-hoc regex drifts. `undefined`/`null`/`\"\"` → `undefined`.\n */\nexport function normalizeOptionalPath(value: unknown): string | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value !== \"string\") {\n throw new EngramAccessInputError(`expected a path string; got ${JSON.stringify(value)}`);\n }\n return expandTildePath(value);\n}\n\n// ---------------------------------------------------------------------------\n// Error formatting — rule 51: list valid options, never silently default\n// ---------------------------------------------------------------------------\n\n/**\n * Turn a zod failure into an {@link EngramAccessInputError} whose message\n * names the offending field and — for enum/union issues — lists the valid\n * options, so the caller can correct rather than guess (rule 51).\n */\nexport function formatZodIssues(error: z.ZodError): string {\n const parts: string[] = [];\n for (const issue of error.issues) {\n const path = issue.path.length > 0 ? issue.path.join(\".\") : \"(root)\";\n const options = enumOptionsFromIssue(issue);\n const suffix = options ? `. Valid: ${options.join(\", \")}` : \"\";\n parts.push(`${path}: ${issue.message}${suffix}`);\n }\n return parts.length > 0\n ? `request validation failed: ${parts.join(\"; \")}`\n : \"request validation failed\";\n}\n\nfunction enumOptionsFromIssue(issue: z.ZodIssue): readonly string[] | undefined {\n // zod exposes accepted enum values on the issue for ZodEnum / ZodNativeEnum\n // and on the options of invalid_union discriminators. Reading them here\n // keeps \"list valid options\" in ONE place rather than per handler.\n if (issue.code === z.ZodIssueCode.invalid_enum_value) {\n const rawOptions = (issue as { options?: unknown }).options;\n if (Array.isArray(rawOptions)) {\n return rawOptions.map((opt) => String(opt));\n }\n }\n return undefined;\n}\n\n// ---------------------------------------------------------------------------\n// Registry\n// ---------------------------------------------------------------------------\n\nconst registry = new Map<OperationName, BoundOperation>();\n\n/**\n * Register an operation. Throws if the name is already registered — duplicate\n * registration is a programming error, not a runtime input fault, so it throws\n * a plain Error (not the input-error class surfaces translate for clients).\n */\nexport function defineOperation<In, Out>(spec: OperationSpec<In, Out>): BoundOperation<In, Out> {\n if (registry.has(spec.name)) {\n throw new Error(`access-boundary: operation already registered: ${spec.name}`);\n }\n const bound: BoundOperation<In, Out> = {\n spec,\n run: async (rawInput, ctx) => {\n const parseResult = spec.schema.safeParse(rawInput);\n if (!parseResult.success) {\n throw new EngramAccessInputError(formatZodIssues(parseResult.error));\n }\n return spec.handler(parseResult.data, ctx);\n },\n };\n // Store under the canonical name; the cast is safe because In/Out are\n // erased at the registry boundary and recovered by callers via getOperation.\n registry.set(spec.name, bound as unknown as BoundOperation);\n return bound;\n}\n\n/** Look up a registered operation by canonical name. */\nexport function getOperation(name: OperationName): BoundOperation | undefined {\n return registry.get(name);\n}\n\n/** All registered operation names. */\nexport function listRegisteredOperations(): readonly OperationName[] {\n return [...registry.keys()];\n}\n\n/** Test-only: clear the registry so pilot definitions can be re-registered. */\nexport function __resetRegistryForTest(): void {\n registry.clear();\n}\n"],"mappings":"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","names":[]}
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  compareEntityTimestamps,
6
6
  normalizeEntityName
7
- } from "./chunk-EUM7CZFM.js";
7
+ } from "./chunk-TY5NT3T3.js";
8
8
  import {
9
9
  sanitizeMemoryContent
10
10
  } from "./chunk-FVQJYWH7.js";
@@ -679,4 +679,4 @@ export {
679
679
  entityIndexVersion,
680
680
  entityRecentTranscriptLookbackHours
681
681
  };
682
- //# sourceMappingURL=chunk-MNUPGYIV.js.map
682
+ //# sourceMappingURL=chunk-NQMBSSWW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runPostConsolidationMaterialize
3
- } from "./chunk-CTCPB57O.js";
3
+ } from "./chunk-G7Z3C2X6.js";
4
4
  import {
5
5
  discoverMemoryExtensions,
6
6
  renderExtensionsBlock,
@@ -9,13 +9,13 @@ import {
9
9
  import {
10
10
  isSemanticConsolidationLlmOperator
11
11
  } from "./chunk-G7D6GZ5J.js";
12
+ import {
13
+ log
14
+ } from "./chunk-2ODBA7MQ.js";
12
15
  import {
13
16
  countRecallTokenOverlap,
14
17
  normalizeRecallTokens
15
18
  } from "./chunk-ZBJMUXZH.js";
16
- import {
17
- log
18
- } from "./chunk-2ODBA7MQ.js";
19
19
 
20
20
  // src/semantic-consolidation.ts
21
21
  function findSimilarClusters(memories, config) {
@@ -217,4 +217,4 @@ export {
217
217
  buildExtensionsBlockForConsolidation,
218
218
  materializeAfterSemanticConsolidation
219
219
  };
220
- //# sourceMappingURL=chunk-V4ZHKCGA.js.map
220
+ //# sourceMappingURL=chunk-O2WELT5C.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";
@@ -491,4 +491,4 @@ function isMissingVectorProviderColumnError(err) {
491
491
  export {
492
492
  LanceDbBackend
493
493
  };
494
- //# sourceMappingURL=chunk-Z6SEG36L.js.map
494
+ //# sourceMappingURL=chunk-OUWAQVDJ.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";
@@ -605,4 +605,4 @@ export {
605
605
  resolveOramaCollectionDbFilePath,
606
606
  OramaBackend
607
607
  };
608
- //# sourceMappingURL=chunk-57ME5VSI.js.map
608
+ //# sourceMappingURL=chunk-Q5ZU3RNY.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  NamespaceStorageRouter
3
- } from "./chunk-LZSMQHXC.js";
3
+ } from "./chunk-ARLRTZZZ.js";
4
4
  import {
5
5
  namespaceCollectionName
6
- } from "./chunk-EQYP3HA6.js";
6
+ } from "./chunk-EG4TCVMU.js";
7
7
  import {
8
8
  namespaceIdentityFromToken,
9
9
  namespaceIdentityToken
10
10
  } from "./chunk-ZFXCQPNO.js";
11
- import {
12
- isSafeRouteNamespace
13
- } from "./chunk-U3PN77QT.js";
14
11
  import {
15
12
  ALL_CATEGORY_DIRS
16
13
  } from "./chunk-VS2IYZRU.js";
14
+ import {
15
+ isSafeRouteNamespace
16
+ } from "./chunk-U3PN77QT.js";
17
17
 
18
18
  // src/namespaces/migrate.ts
19
19
  import path from "path";
@@ -204,4 +204,4 @@ export {
204
204
  verifyNamespaces,
205
205
  runNamespaceMigration
206
206
  };
207
- //# sourceMappingURL=chunk-ACYX37IM.js.map
207
+ //# sourceMappingURL=chunk-QUA2JPH2.js.map