@remnic/core 9.69.4 → 9.69.6

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 (207) hide show
  1. package/dist/access-admin-ops-surface.js +20 -20
  2. package/dist/access-authorization-probe.js +21 -21
  3. package/dist/access-boundary.js +20 -20
  4. package/dist/access-cli.js +71 -71
  5. package/dist/access-extraction-force-flush.js +20 -20
  6. package/dist/access-http-query.js +22 -22
  7. package/dist/access-http.js +36 -36
  8. package/dist/access-identity-continuity-surface.js +20 -20
  9. package/dist/access-lcm-surface.js +20 -20
  10. package/dist/access-mcp.js +29 -29
  11. package/dist/access-namespace-preflight.js +20 -20
  12. package/dist/access-observe-write-surface.js +20 -20
  13. package/dist/access-operations-batch.js +23 -23
  14. package/dist/access-operations.js +28 -28
  15. package/dist/access-recall-concurrency.js +20 -20
  16. package/dist/access-recall-response.js +20 -20
  17. package/dist/access-recall-surface.js +20 -20
  18. package/dist/access-schema.js +4 -4
  19. package/dist/access-service.js +20 -20
  20. package/dist/access-surface-catalog.js +22 -22
  21. package/dist/active-recall.js +2 -2
  22. package/dist/briefing.js +8 -8
  23. package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
  24. package/dist/causal-consolidation.js +9 -9
  25. package/dist/{chunk-N3VPKMU3.js → chunk-3X7Z467X.js} +2 -2
  26. package/dist/{chunk-EB3V7PJC.js → chunk-4OH6FGAO.js} +13 -13
  27. package/dist/{chunk-YSD4MK5Q.js → chunk-5HP6LVWU.js} +2 -2
  28. package/dist/{chunk-OM4VYQPH.js → chunk-6EXRODDF.js} +2 -2
  29. package/dist/{chunk-2L5FSNPC.js → chunk-6F5WBXE2.js} +4 -4
  30. package/dist/{chunk-DZPX5WSG.js → chunk-6JYTP3JP.js} +3 -3
  31. package/dist/{chunk-RFYKLES2.js → chunk-6KQLDPKA.js} +2 -2
  32. package/dist/{chunk-J2R275FN.js → chunk-7DXW5V2W.js} +2 -2
  33. package/dist/chunk-7O5EW7KX.js +27 -0
  34. package/dist/chunk-7O5EW7KX.js.map +1 -0
  35. package/dist/{chunk-227UFSEQ.js → chunk-7RZJWZ46.js} +5 -5
  36. package/dist/{chunk-3KURGLO7.js → chunk-7VA7PARC.js} +2 -2
  37. package/dist/{chunk-TOUZM2RQ.js → chunk-AJFKQJQK.js} +2 -2
  38. package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
  39. package/dist/{chunk-WZBDOI2C.js → chunk-C5FRCM4B.js} +2 -2
  40. package/dist/{chunk-PRCJDCDD.js → chunk-CGFDT752.js} +4 -4
  41. package/dist/{chunk-V63BBOFS.js → chunk-DD2BKHSD.js} +2 -2
  42. package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
  43. package/dist/{chunk-WJTB4SF5.js → chunk-EAG7YMIS.js} +2 -2
  44. package/dist/{chunk-3HEYRDNF.js → chunk-EJJ57PTY.js} +2 -2
  45. package/dist/{chunk-YHSZTMM3.js → chunk-EVLHZ6F3.js} +2 -2
  46. package/dist/{chunk-35J5ABJC.js → chunk-FGV7V2N4.js} +2 -2
  47. package/dist/{chunk-6AYPXHOF.js → chunk-GM35IHF7.js} +2 -2
  48. package/dist/{chunk-MU4FAKGV.js → chunk-HDEQRI2O.js} +2 -2
  49. package/dist/{chunk-PBSZQBFM.js → chunk-IFHT77WK.js} +2 -2
  50. package/dist/{chunk-OZFHE6FY.js → chunk-IHFN3JTR.js} +3 -3
  51. package/dist/{chunk-LXMYIJOO.js → chunk-ISDSX7GW.js} +1 -1
  52. package/dist/{chunk-EZPBQVGZ.js → chunk-JJAOVJ3E.js} +5 -5
  53. package/dist/{chunk-VSWRJQQW.js → chunk-KJUWWN3T.js} +2 -1
  54. package/dist/{chunk-76X3F4WV.js → chunk-LGVIKA7O.js} +6 -6
  55. package/dist/{chunk-V3KLIYTW.js → chunk-M4MNLPO7.js} +2 -2
  56. package/dist/{chunk-7DQQYJKU.js → chunk-MDQXW235.js} +2 -2
  57. package/dist/{chunk-ASDK4GEV.js → chunk-MOUCCUET.js} +2 -2
  58. package/dist/{chunk-DT7LKLET.js → chunk-MVH7YAWY.js} +2 -2
  59. package/dist/{chunk-GH477IGR.js → chunk-NAB4MKTJ.js} +3 -3
  60. package/dist/{chunk-FGORNFTZ.js → chunk-NM5EOKN7.js} +2 -2
  61. package/dist/{chunk-LXBVTRBG.js → chunk-OUAK37ID.js} +2 -2
  62. package/dist/{chunk-HCERYDRI.js → chunk-PGD3DXZP.js} +2 -2
  63. package/dist/{chunk-6CT4HSVJ.js → chunk-PY5E3UOD.js} +2 -2
  64. package/dist/{chunk-YNF4ZT3X.js → chunk-QA6H4PIO.js} +2 -2
  65. package/dist/{chunk-EJCKJS4X.js → chunk-R3YVNAJB.js} +2 -2
  66. package/dist/{chunk-XVI2TR26.js → chunk-R4FPBSFD.js} +2 -2
  67. package/dist/{chunk-VVE5SLO5.js → chunk-SKVSBTFQ.js} +2 -2
  68. package/dist/{chunk-S7363OIV.js → chunk-SZ3SRRYZ.js} +2 -2
  69. package/dist/{chunk-WRPRUMUI.js → chunk-SZZGVXKC.js} +2 -2
  70. package/dist/{chunk-TFN3PPYO.js → chunk-TGDFKC7X.js} +2 -2
  71. package/dist/{chunk-7SL6EJLT.js → chunk-TP3N5364.js} +2 -2
  72. package/dist/{chunk-IPLYGWQF.js → chunk-VDX2J7OX.js} +6 -6
  73. package/dist/{chunk-VJERIMIX.js → chunk-W6V2XVUO.js} +3 -3
  74. package/dist/{chunk-DA2XDNS5.js → chunk-WAPSYHNR.js} +8 -8
  75. package/dist/{chunk-5FBA6UXN.js → chunk-WTWHORVW.js} +7 -7
  76. package/dist/{chunk-HBOQO4GB.js → chunk-X3DTN2RC.js} +8 -8
  77. package/dist/{chunk-UFY4G6EC.js → chunk-XOGYSWQZ.js} +10 -10
  78. package/dist/{chunk-J6SWAE74.js → chunk-YERBUSU2.js} +2 -2
  79. package/dist/{chunk-D65XGENZ.js → chunk-YPNTBYEV.js} +3 -3
  80. package/dist/{chunk-WOA7DS7O.js → chunk-YTCE2JQL.js} +251 -48
  81. package/dist/chunk-YTCE2JQL.js.map +1 -0
  82. package/dist/{chunk-FNNWK7G7.js → chunk-ZET6A3OF.js} +2 -2
  83. package/dist/{chunk-EA2C5Z7V.js → chunk-ZIZUB6VB.js} +28 -28
  84. package/dist/cli.js +54 -54
  85. package/dist/coding/export-okf-codegraph.js +8 -8
  86. package/dist/compounding/engine.js +8 -8
  87. package/dist/config.js +2 -2
  88. package/dist/connectors/codex-materialize-runner.js +8 -8
  89. package/dist/connectors/index.js +8 -8
  90. package/dist/convergence-refresh.js +10 -10
  91. package/dist/conversation-index/backend.js +2 -2
  92. package/dist/corpus-watermark.js +10 -10
  93. package/dist/entity-retrieval.js +8 -8
  94. package/dist/external-wiki-access.js +21 -21
  95. package/dist/extraction.js +8 -8
  96. package/dist/harmonic-retrieval.js +1 -1
  97. package/dist/index.d.ts +89 -1
  98. package/dist/index.js +106 -94
  99. package/dist/lcm/engine.js +2 -2
  100. package/dist/lcm/index.js +5 -5
  101. package/dist/location/index.js +10 -10
  102. package/dist/maintenance/memory-governance.js +8 -8
  103. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +8 -8
  104. package/dist/maintenance/rebuild-memory-projection.js +9 -9
  105. package/dist/namespaces/migrate.js +9 -9
  106. package/dist/namespaces/search.js +6 -6
  107. package/dist/namespaces/storage.js +8 -8
  108. package/dist/operator-doctor-corpus.js +11 -11
  109. package/dist/operator-toolkit.js +18 -18
  110. package/dist/orchestration/maintenance.js +17 -17
  111. package/dist/orchestrator.js +71 -71
  112. package/dist/recall-navigate-link.d.ts +9 -3
  113. package/dist/recall-navigate-link.js +3 -15
  114. package/dist/recall-navigate-link.js.map +1 -1
  115. package/dist/recall-navigate-traverse.d.ts +21 -0
  116. package/dist/recall-navigate-traverse.js +44 -0
  117. package/dist/recall-navigate-traverse.js.map +1 -0
  118. package/dist/resume-bundles.js +3 -3
  119. package/dist/search/factory.js +5 -5
  120. package/dist/search/index.js +9 -9
  121. package/dist/semantic-consolidation.js +9 -9
  122. package/dist/semantic-rule-promotion.js +8 -8
  123. package/dist/semantic-rule-verifier.js +8 -8
  124. package/dist/source-agent-qualifier.js +8 -8
  125. package/dist/standup/build.js +8 -8
  126. package/dist/storage.js +7 -7
  127. package/dist/support-passport/index.js +23 -23
  128. package/dist/transfer/autodetect.js +1 -1
  129. package/dist/transfer/backup.js +2 -2
  130. package/dist/transfer/capsule-export.js +3 -3
  131. package/dist/transfer/capsule-import.js +2 -2
  132. package/dist/transfer/export-okf.js +9 -9
  133. package/dist/verified-recall.js +8 -8
  134. package/dist/who-knows-cli.js +9 -9
  135. package/dist/who-knows.js +8 -8
  136. package/package.json +2 -2
  137. package/src/activity/index.ts +3 -0
  138. package/src/activity/journal-vault-provenance.test.ts +120 -0
  139. package/src/activity/journal-vault-provenance.ts +67 -0
  140. package/src/activity/privacy-gate-resolve.test.ts +175 -0
  141. package/src/activity/privacy-gate-resolve.ts +84 -0
  142. package/src/activity/timeline/index.ts +1 -0
  143. package/src/activity/timeline/recap-fallback.test.ts +184 -0
  144. package/src/activity/timeline/recap-fallback.ts +106 -0
  145. package/src/activity/vault-dry-run.test.ts +114 -0
  146. package/src/activity/vault-dry-run.ts +76 -0
  147. package/src/recall-navigate-link.test.ts +28 -6
  148. package/src/recall-navigate-link.ts +16 -2
  149. package/src/recall-navigate-traverse.test.ts +247 -0
  150. package/src/recall-navigate-traverse.ts +73 -0
  151. package/dist/chunk-WOA7DS7O.js.map +0 -1
  152. /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
  153. /package/dist/{chunk-N3VPKMU3.js.map → chunk-3X7Z467X.js.map} +0 -0
  154. /package/dist/{chunk-EB3V7PJC.js.map → chunk-4OH6FGAO.js.map} +0 -0
  155. /package/dist/{chunk-YSD4MK5Q.js.map → chunk-5HP6LVWU.js.map} +0 -0
  156. /package/dist/{chunk-OM4VYQPH.js.map → chunk-6EXRODDF.js.map} +0 -0
  157. /package/dist/{chunk-2L5FSNPC.js.map → chunk-6F5WBXE2.js.map} +0 -0
  158. /package/dist/{chunk-DZPX5WSG.js.map → chunk-6JYTP3JP.js.map} +0 -0
  159. /package/dist/{chunk-RFYKLES2.js.map → chunk-6KQLDPKA.js.map} +0 -0
  160. /package/dist/{chunk-J2R275FN.js.map → chunk-7DXW5V2W.js.map} +0 -0
  161. /package/dist/{chunk-227UFSEQ.js.map → chunk-7RZJWZ46.js.map} +0 -0
  162. /package/dist/{chunk-3KURGLO7.js.map → chunk-7VA7PARC.js.map} +0 -0
  163. /package/dist/{chunk-TOUZM2RQ.js.map → chunk-AJFKQJQK.js.map} +0 -0
  164. /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
  165. /package/dist/{chunk-WZBDOI2C.js.map → chunk-C5FRCM4B.js.map} +0 -0
  166. /package/dist/{chunk-PRCJDCDD.js.map → chunk-CGFDT752.js.map} +0 -0
  167. /package/dist/{chunk-V63BBOFS.js.map → chunk-DD2BKHSD.js.map} +0 -0
  168. /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
  169. /package/dist/{chunk-WJTB4SF5.js.map → chunk-EAG7YMIS.js.map} +0 -0
  170. /package/dist/{chunk-3HEYRDNF.js.map → chunk-EJJ57PTY.js.map} +0 -0
  171. /package/dist/{chunk-YHSZTMM3.js.map → chunk-EVLHZ6F3.js.map} +0 -0
  172. /package/dist/{chunk-35J5ABJC.js.map → chunk-FGV7V2N4.js.map} +0 -0
  173. /package/dist/{chunk-6AYPXHOF.js.map → chunk-GM35IHF7.js.map} +0 -0
  174. /package/dist/{chunk-MU4FAKGV.js.map → chunk-HDEQRI2O.js.map} +0 -0
  175. /package/dist/{chunk-PBSZQBFM.js.map → chunk-IFHT77WK.js.map} +0 -0
  176. /package/dist/{chunk-OZFHE6FY.js.map → chunk-IHFN3JTR.js.map} +0 -0
  177. /package/dist/{chunk-LXMYIJOO.js.map → chunk-ISDSX7GW.js.map} +0 -0
  178. /package/dist/{chunk-EZPBQVGZ.js.map → chunk-JJAOVJ3E.js.map} +0 -0
  179. /package/dist/{chunk-VSWRJQQW.js.map → chunk-KJUWWN3T.js.map} +0 -0
  180. /package/dist/{chunk-76X3F4WV.js.map → chunk-LGVIKA7O.js.map} +0 -0
  181. /package/dist/{chunk-V3KLIYTW.js.map → chunk-M4MNLPO7.js.map} +0 -0
  182. /package/dist/{chunk-7DQQYJKU.js.map → chunk-MDQXW235.js.map} +0 -0
  183. /package/dist/{chunk-ASDK4GEV.js.map → chunk-MOUCCUET.js.map} +0 -0
  184. /package/dist/{chunk-DT7LKLET.js.map → chunk-MVH7YAWY.js.map} +0 -0
  185. /package/dist/{chunk-GH477IGR.js.map → chunk-NAB4MKTJ.js.map} +0 -0
  186. /package/dist/{chunk-FGORNFTZ.js.map → chunk-NM5EOKN7.js.map} +0 -0
  187. /package/dist/{chunk-LXBVTRBG.js.map → chunk-OUAK37ID.js.map} +0 -0
  188. /package/dist/{chunk-HCERYDRI.js.map → chunk-PGD3DXZP.js.map} +0 -0
  189. /package/dist/{chunk-6CT4HSVJ.js.map → chunk-PY5E3UOD.js.map} +0 -0
  190. /package/dist/{chunk-YNF4ZT3X.js.map → chunk-QA6H4PIO.js.map} +0 -0
  191. /package/dist/{chunk-EJCKJS4X.js.map → chunk-R3YVNAJB.js.map} +0 -0
  192. /package/dist/{chunk-XVI2TR26.js.map → chunk-R4FPBSFD.js.map} +0 -0
  193. /package/dist/{chunk-VVE5SLO5.js.map → chunk-SKVSBTFQ.js.map} +0 -0
  194. /package/dist/{chunk-S7363OIV.js.map → chunk-SZ3SRRYZ.js.map} +0 -0
  195. /package/dist/{chunk-WRPRUMUI.js.map → chunk-SZZGVXKC.js.map} +0 -0
  196. /package/dist/{chunk-TFN3PPYO.js.map → chunk-TGDFKC7X.js.map} +0 -0
  197. /package/dist/{chunk-7SL6EJLT.js.map → chunk-TP3N5364.js.map} +0 -0
  198. /package/dist/{chunk-IPLYGWQF.js.map → chunk-VDX2J7OX.js.map} +0 -0
  199. /package/dist/{chunk-VJERIMIX.js.map → chunk-W6V2XVUO.js.map} +0 -0
  200. /package/dist/{chunk-DA2XDNS5.js.map → chunk-WAPSYHNR.js.map} +0 -0
  201. /package/dist/{chunk-5FBA6UXN.js.map → chunk-WTWHORVW.js.map} +0 -0
  202. /package/dist/{chunk-HBOQO4GB.js.map → chunk-X3DTN2RC.js.map} +0 -0
  203. /package/dist/{chunk-UFY4G6EC.js.map → chunk-XOGYSWQZ.js.map} +0 -0
  204. /package/dist/{chunk-J6SWAE74.js.map → chunk-YERBUSU2.js.map} +0 -0
  205. /package/dist/{chunk-D65XGENZ.js.map → chunk-YPNTBYEV.js.map} +0 -0
  206. /package/dist/{chunk-FNNWK7G7.js.map → chunk-ZET6A3OF.js.map} +0 -0
  207. /package/dist/{chunk-EA2C5Z7V.js.map → chunk-ZIZUB6VB.js.map} +0 -0
@@ -7,22 +7,22 @@ import {
7
7
  syncWearableSource,
8
8
  wearableSourceLabel
9
9
  } from "./chunk-3TSU662L.js";
10
- import {
11
- runPeerProfileReasoner
12
- } from "./chunk-I74SUMNI.js";
13
- import {
14
- CompressionGuidelineCoordinator
15
- } from "./chunk-UXREWVW4.js";
16
10
  import {
17
11
  ActivityStore,
18
12
  MaintenanceScheduler
19
- } from "./chunk-DA2XDNS5.js";
13
+ } from "./chunk-WAPSYHNR.js";
14
+ import {
15
+ runPeerProfileReasoner
16
+ } from "./chunk-I74SUMNI.js";
20
17
  import {
21
18
  migrateFromEngram
22
19
  } from "./chunk-7HYPN2GC.js";
20
+ import {
21
+ CompressionGuidelineCoordinator
22
+ } from "./chunk-UXREWVW4.js";
23
23
  import {
24
24
  LcmEngine
25
- } from "./chunk-2L5FSNPC.js";
25
+ } from "./chunk-6F5WBXE2.js";
26
26
  import {
27
27
  chunkTranscriptEntries
28
28
  } from "./chunk-TECVW3JP.js";
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  CompoundingEngine,
34
34
  defaultTierMigrationCycleBudget
35
- } from "./chunk-6AYPXHOF.js";
35
+ } from "./chunk-GM35IHF7.js";
36
36
  import {
37
37
  SharedContextManager
38
38
  } from "./chunk-VI637ILW.js";
@@ -41,9 +41,15 @@ import {
41
41
  applyUtilityRankingRuntimeDelta,
42
42
  loadUtilityRuntimeValues
43
43
  } from "./chunk-SEF4IOFE.js";
44
+ import {
45
+ extractTopics
46
+ } from "./chunk-KVDUKH5E.js";
44
47
  import {
45
48
  cleanArchivedUserMessage
46
49
  } from "./chunk-47DU4SGJ.js";
50
+ import {
51
+ CODEX_THREAD_KEY_PREFIX
52
+ } from "./chunk-4EX5WZ4M.js";
47
53
  import {
48
54
  TierMigrationExecutor
49
55
  } from "./chunk-YRFAYOFQ.js";
@@ -54,24 +60,22 @@ import {
54
60
  TmtBuilder
55
61
  } from "./chunk-ECZU5BJH.js";
56
62
  import {
57
- extractTopics
58
- } from "./chunk-KVDUKH5E.js";
63
+ buildTargetedFactRecallSection,
64
+ shouldRecallTargetedFactEvidence
65
+ } from "./chunk-T67LUYCR.js";
59
66
  import {
60
67
  buildTemporalTimelineRecallSection
61
68
  } from "./chunk-2NKY7OC6.js";
62
- import {
63
- CODEX_THREAD_KEY_PREFIX
64
- } from "./chunk-4EX5WZ4M.js";
65
69
  import {
66
70
  HourlySummarizer
67
71
  } from "./chunk-IEZ6CGTW.js";
68
- import {
69
- buildTargetedFactRecallSection,
70
- shouldRecallTargetedFactEvidence
71
- } from "./chunk-T67LUYCR.js";
72
72
  import {
73
73
  SessionObserverState
74
74
  } from "./chunk-ODZKV2F7.js";
75
+ import {
76
+ buildResponseGuidanceRecallSection,
77
+ shouldRecallResponseGuidance
78
+ } from "./chunk-6TCXIRP5.js";
75
79
  import {
76
80
  mergeWithAgentResults,
77
81
  runDirectAgent,
@@ -96,6 +100,9 @@ import {
96
100
  import {
97
101
  applyRuntimeRetrievalPolicy
98
102
  } from "./chunk-5IZL4DCV.js";
103
+ import {
104
+ findUnresolvedEntityRefs
105
+ } from "./chunk-X7XN6YU4.js";
99
106
  import {
100
107
  RelevanceStore
101
108
  } from "./chunk-KATEWTQJ.js";
@@ -104,13 +111,6 @@ import {
104
111
  reorderByRankedKeys,
105
112
  rerankLocalOrNoop
106
113
  } from "./chunk-LUDXM7MD.js";
107
- import {
108
- buildResponseGuidanceRecallSection,
109
- shouldRecallResponseGuidance
110
- } from "./chunk-6TCXIRP5.js";
111
- import {
112
- findUnresolvedEntityRefs
113
- } from "./chunk-X7XN6YU4.js";
114
114
  import {
115
115
  applyRecallStateViews
116
116
  } from "./chunk-FYDW33ZB.js";
@@ -194,7 +194,7 @@ import {
194
194
  buildEntityRecallSection,
195
195
  entityRecentTranscriptLookbackHours,
196
196
  readRecentEntityTranscriptEntries
197
- } from "./chunk-WZBDOI2C.js";
197
+ } from "./chunk-C5FRCM4B.js";
198
198
  import {
199
199
  planEpisodeWindowsWithFallback
200
200
  } from "./chunk-T3GIETKV.js";
@@ -209,31 +209,31 @@ import {
209
209
  } from "./chunk-DFEODULB.js";
210
210
  import {
211
211
  refreshConvergedNamespaces
212
- } from "./chunk-35J5ABJC.js";
212
+ } from "./chunk-FGV7V2N4.js";
213
213
  import {
214
214
  builtInConnectorPackageSpecifier,
215
215
  ensureBuiltInWearableConnectors,
216
216
  getWearableConnector,
217
217
  listWearableConnectors,
218
218
  screenCandidateFact
219
- } from "./chunk-EA2C5Z7V.js";
220
- import {
221
- normalizeReplaySessionKey
222
- } from "./chunk-AJVLDJU6.js";
219
+ } from "./chunk-ZIZUB6VB.js";
223
220
  import {
224
221
  RoutingRulesStore
225
222
  } from "./chunk-TBUEE7XF.js";
223
+ import {
224
+ normalizeReplaySessionKey
225
+ } from "./chunk-AJVLDJU6.js";
226
226
  import {
227
227
  compareVerifiedEpisodeResults,
228
228
  searchVerifiedEpisodes
229
- } from "./chunk-ASDK4GEV.js";
229
+ } from "./chunk-MOUCCUET.js";
230
230
  import {
231
231
  ThreadingManager
232
232
  } from "./chunk-OJP3N7UK.js";
233
233
  import {
234
234
  compareVerifiedSemanticRuleResults,
235
235
  searchVerifiedSemanticRules
236
- } from "./chunk-YHSZTMM3.js";
236
+ } from "./chunk-EVLHZ6F3.js";
237
237
  import {
238
238
  searchWorkProductLedgerEntries
239
239
  } from "./chunk-NRLELHAY.js";
@@ -246,13 +246,13 @@ import {
246
246
  import {
247
247
  runNamespaceMaintenanceFanout,
248
248
  summarizeNamespaceMaintenanceHealth
249
- } from "./chunk-HBOQO4GB.js";
249
+ } from "./chunk-X3DTN2RC.js";
250
250
  import {
251
251
  planNamespaceMaintenance
252
- } from "./chunk-OZFHE6FY.js";
252
+ } from "./chunk-IHFN3JTR.js";
253
253
  import {
254
254
  searchHarmonicRetrieval
255
- } from "./chunk-LXMYIJOO.js";
255
+ } from "./chunk-ISDSX7GW.js";
256
256
  import {
257
257
  isAboveImportanceThreshold,
258
258
  scoreImportance
@@ -284,7 +284,7 @@ import {
284
284
  materializeAfterSemanticConsolidation,
285
285
  parseConsolidationResponse,
286
286
  parseOperatorAwareConsolidationResponse
287
- } from "./chunk-J6SWAE74.js";
287
+ } from "./chunk-YERBUSU2.js";
288
288
  import {
289
289
  semanticChunkContent
290
290
  } from "./chunk-2GBFKHBZ.js";
@@ -317,20 +317,23 @@ import {
317
317
  applyNoveltyGate,
318
318
  detectMeetings,
319
319
  embeddingsFromCosineHits
320
- } from "./chunk-YNF4ZT3X.js";
320
+ } from "./chunk-QA6H4PIO.js";
321
321
  import {
322
322
  compileCorrectionRule,
323
323
  correctionsFilePath,
324
324
  loadCorrectionsFile,
325
325
  saveCorrectionsFile
326
326
  } from "./chunk-ZKOPY4WW.js";
327
+ import {
328
+ resolveJournalSource
329
+ } from "./chunk-KJUWWN3T.js";
327
330
  import {
328
331
  AMBIENT_CAPTURE_PROMPT_RULE,
329
332
  isHighImpactPersonalFact
330
333
  } from "./chunk-QW27DOHG.js";
331
334
  import {
332
335
  MeetingsInputError
333
- } from "./chunk-EB3V7PJC.js";
336
+ } from "./chunk-4OH6FGAO.js";
334
337
  import {
335
338
  WearablesInputError,
336
339
  describeErrorForOperator
@@ -344,7 +347,7 @@ import {
344
347
  } from "./chunk-CEN6DW6X.js";
345
348
  import {
346
349
  NamespaceCatalog
347
- } from "./chunk-S7363OIV.js";
350
+ } from "./chunk-SZ3SRRYZ.js";
348
351
  import {
349
352
  RecallResultFormatter,
350
353
  SessionContextCoordinator,
@@ -356,10 +359,10 @@ import {
356
359
  isTopLevelArchivePath,
357
360
  journalPath,
358
361
  writeJournalFile
359
- } from "./chunk-UFY4G6EC.js";
362
+ } from "./chunk-XOGYSWQZ.js";
360
363
  import {
361
364
  importCapsule
362
- } from "./chunk-J2R275FN.js";
365
+ } from "./chunk-7DXW5V2W.js";
363
366
  import {
364
367
  isCodingGraphInstalled
365
368
  } from "./chunk-VQ7B2Q6M.js";
@@ -410,13 +413,13 @@ import {
410
413
  } from "./chunk-7ZNJN5WZ.js";
411
414
  import {
412
415
  NamespaceStorageRouter
413
- } from "./chunk-3HEYRDNF.js";
416
+ } from "./chunk-EJJ57PTY.js";
414
417
  import {
415
418
  GraphIndex
416
419
  } from "./chunk-BIJAWZYW.js";
417
420
  import {
418
421
  buildChainFollowupGenerator
419
- } from "./chunk-DT7LKLET.js";
422
+ } from "./chunk-MVH7YAWY.js";
420
423
  import {
421
424
  QmdResultResolver,
422
425
  StorageManager,
@@ -435,7 +438,7 @@ import {
435
438
  reconstructFusionInputs,
436
439
  selfDeps,
437
440
  serializeFusionDay
438
- } from "./chunk-PBSZQBFM.js";
441
+ } from "./chunk-IFHT77WK.js";
439
442
  import {
440
443
  bodyIsEscaped,
441
444
  decodeTranscriptBody,
@@ -452,12 +455,12 @@ import {
452
455
  import {
453
456
  NamespaceSearchRouter,
454
457
  namespaceCollectionName
455
- } from "./chunk-FNNWK7G7.js";
458
+ } from "./chunk-ZET6A3OF.js";
456
459
  import {
457
460
  createConversationIndexRuntime,
458
461
  createSearchBackend,
459
462
  isSearchBackendEnabled
460
- } from "./chunk-EZPBQVGZ.js";
463
+ } from "./chunk-JJAOVJ3E.js";
461
464
  import {
462
465
  NoopSearchBackend
463
466
  } from "./chunk-CYEPCZN5.js";
@@ -27496,6 +27499,55 @@ function buildAnalysisRunMetadata(input) {
27496
27499
  return { provider, model, promptVersion, observationCount };
27497
27500
  }
27498
27501
 
27502
+ // src/activity/timeline/recap-fallback.ts
27503
+ var RECAP_SOURCE_KINDS = ["ai", "deterministic", "previous"];
27504
+ var SLOT_ORDER = [
27505
+ "ai",
27506
+ "previous",
27507
+ "deterministic"
27508
+ ];
27509
+ function isRecapSourceKind(value) {
27510
+ return typeof value === "string" && RECAP_SOURCE_KINDS.includes(value);
27511
+ }
27512
+ function selectRecapForDay(input) {
27513
+ let failure;
27514
+ if (input.failure !== void 0 && input.failure !== null) {
27515
+ if (!isAnalysisFailureKind(input.failure)) {
27516
+ throw new TypeError(
27517
+ `unknown recap failure kind; expected one of the analysis failure kinds, got a non-allow-listed value`
27518
+ );
27519
+ }
27520
+ failure = input.failure;
27521
+ }
27522
+ for (const slot of SLOT_ORDER) {
27523
+ const candidate = input[slot];
27524
+ if (candidate == null) continue;
27525
+ const kind = candidate.kind;
27526
+ if (!isRecapSourceKind(kind)) {
27527
+ throw new TypeError(
27528
+ `unknown recap source kind: ${String(kind)}; allowed kinds: ${RECAP_SOURCE_KINDS.join(", ")}`
27529
+ );
27530
+ }
27531
+ if (kind !== slot) {
27532
+ throw new TypeError(
27533
+ `recap candidate passed as "${slot}" has kind "${kind}"; kind must match its slot`
27534
+ );
27535
+ }
27536
+ if (typeof candidate.body !== "string") {
27537
+ throw new TypeError(
27538
+ `recap candidate body for slot "${slot}" must be a string`
27539
+ );
27540
+ }
27541
+ }
27542
+ for (const slot of SLOT_ORDER) {
27543
+ const candidate = input[slot];
27544
+ if (candidate == null) continue;
27545
+ if (candidate.body.trim() === "") continue;
27546
+ return failure === void 0 ? { ok: true, body: candidate.body, kind: candidate.kind } : { ok: true, body: candidate.body, kind: candidate.kind, failure };
27547
+ }
27548
+ return failure === void 0 ? { ok: false, error: "no_recap_available" } : { ok: false, error: "no_recap_available", failure };
27549
+ }
27550
+
27499
27551
  // src/activity/journal-vault-read.ts
27500
27552
  var REMNIC_OPEN = "<!-- remnic:";
27501
27553
  function readVaultJournal(input) {
@@ -27686,6 +27738,42 @@ function checkVaultJournalPrerequisites(input) {
27686
27738
  };
27687
27739
  }
27688
27740
 
27741
+ // src/activity/journal-vault-provenance.ts
27742
+ var DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
27743
+ function buildJournalMemoryProvenance(input) {
27744
+ if (typeof input.source !== "string") {
27745
+ throw new RangeError("journal provenance source must be a string");
27746
+ }
27747
+ const resolved = resolveJournalSource({
27748
+ source: input.source,
27749
+ // Provenance never consumes the heading; vault mode just requires a
27750
+ // non-empty one to resolve.
27751
+ heading: "journal"
27752
+ });
27753
+ if (!resolved.ok) {
27754
+ throw new RangeError(
27755
+ `journal provenance source must be one of "file", "vault": ${JSON.stringify(input.source)}`
27756
+ );
27757
+ }
27758
+ if (typeof input.date !== "string" || !DAY_PATTERN.test(input.date)) {
27759
+ throw new RangeError(
27760
+ `journal provenance date must be exactly YYYY-MM-DD: ${JSON.stringify(input.date)}`
27761
+ );
27762
+ }
27763
+ const [year, month, day] = input.date.split("-").map(Number);
27764
+ const utc = new Date(Date.UTC(year, month - 1, day));
27765
+ if (utc.getUTCFullYear() !== year || utc.getUTCMonth() !== month - 1 || utc.getUTCDate() !== day) {
27766
+ throw new RangeError(
27767
+ `journal provenance date must be a real calendar day: ${input.date}`
27768
+ );
27769
+ }
27770
+ return {
27771
+ tags: ["journal", `journal-day:${input.date}`],
27772
+ structuredAttributes: { journalSource: resolved.mode },
27773
+ validAt: `${input.date}T00:00:00.000Z`
27774
+ };
27775
+ }
27776
+
27689
27777
  // src/activity/journal-section.ts
27690
27778
  function parseAtxHeading2(line) {
27691
27779
  let level = 0;
@@ -28200,6 +28288,73 @@ function buildActivityHealth(input) {
28200
28288
  };
28201
28289
  }
28202
28290
 
28291
+ // src/activity/privacy-enabled.ts
28292
+ var ENABLED_TOKENS = {
28293
+ true: true,
28294
+ "1": true,
28295
+ yes: true,
28296
+ on: true,
28297
+ false: false,
28298
+ "0": false,
28299
+ no: false,
28300
+ off: false
28301
+ };
28302
+ function parsePrivacyEnabled(value) {
28303
+ if (typeof value === "boolean") return { ok: true, enabled: value };
28304
+ if (typeof value === "string") {
28305
+ const token = value.trim().toLowerCase();
28306
+ if (Object.hasOwn(ENABLED_TOKENS, token)) {
28307
+ return { ok: true, enabled: ENABLED_TOKENS[token] };
28308
+ }
28309
+ }
28310
+ return { ok: false, error: "invalid_enabled" };
28311
+ }
28312
+
28313
+ // src/activity/privacy-gate-resolve.ts
28314
+ var ACTIVITY_FEATURE_GATES = Object.freeze([
28315
+ "analysis",
28316
+ "journal",
28317
+ "weekly",
28318
+ "export",
28319
+ "memoryCreation"
28320
+ ]);
28321
+ function parseGateValue(key, value) {
28322
+ const parsed = parsePrivacyEnabled(value);
28323
+ if (!parsed.ok) {
28324
+ throw new TypeError(
28325
+ `invalid value for activity gate "${key}": ${JSON.stringify(value)} is not a boolean or known token`
28326
+ );
28327
+ }
28328
+ return parsed.enabled;
28329
+ }
28330
+ function resolveActivityGates(input) {
28331
+ const rawGates = input.gates;
28332
+ if (rawGates !== void 0 && (typeof rawGates !== "object" || rawGates === null || Array.isArray(rawGates))) {
28333
+ throw new TypeError("activity gates must be an object");
28334
+ }
28335
+ if (rawGates) {
28336
+ for (const key of Object.getOwnPropertyNames(rawGates)) {
28337
+ if (!ACTIVITY_FEATURE_GATES.includes(key)) {
28338
+ throw new TypeError(
28339
+ `unknown activity gate "${key}"; allowed gates: ${ACTIVITY_FEATURE_GATES.join(", ")}`
28340
+ );
28341
+ }
28342
+ }
28343
+ }
28344
+ const master = input.enabled === void 0 ? false : parseGateValue("enabled", input.enabled);
28345
+ const result = {};
28346
+ for (const gate of ACTIVITY_FEATURE_GATES) {
28347
+ const present = rawGates !== void 0 && Object.hasOwn(rawGates, gate);
28348
+ result[gate] = present ? parseGateValue(gate, rawGates[gate]) : false;
28349
+ }
28350
+ if (!master) {
28351
+ for (const gate of ACTIVITY_FEATURE_GATES) {
28352
+ result[gate] = false;
28353
+ }
28354
+ }
28355
+ return Object.freeze(result);
28356
+ }
28357
+
28203
28358
  // src/activity/privacy-window.ts
28204
28359
  function filterPrivacyWindow(items, options) {
28205
28360
  const { fromMs, toMs, retainDays } = options;
@@ -28601,6 +28756,48 @@ function joinVaultSegments(parts) {
28601
28756
  return parts.join("/");
28602
28757
  }
28603
28758
 
28759
+ // src/activity/vault-dry-run.ts
28760
+ function planVaultDryRun(inputs) {
28761
+ const results = [];
28762
+ for (const input of inputs) {
28763
+ if (typeof input !== "object" || input === null) {
28764
+ throw new TypeError(`vault dry-run inputs must be objects (got ${typeof input})`);
28765
+ }
28766
+ if (typeof input.path !== "string" || input.path.trim() === "") {
28767
+ throw new RangeError(`vault dry-run input requires a non-blank path (got ${JSON.stringify(input.path)})`);
28768
+ }
28769
+ for (const field of ["currentText", "nextText"]) {
28770
+ const value = input[field];
28771
+ if (value !== null && typeof value !== "string") {
28772
+ throw new TypeError(
28773
+ `vault dry-run input ${field} must be a string or null (got ${typeof value})`
28774
+ );
28775
+ }
28776
+ }
28777
+ if (input.nextText === null) {
28778
+ if (typeof input.skipReason !== "string" || input.skipReason.trim() === "") {
28779
+ throw new TypeError(
28780
+ `vault dry-run skip (nextText null) requires a non-blank skipReason (got ${JSON.stringify(input.skipReason)})`
28781
+ );
28782
+ }
28783
+ results.push({ path: input.path, outcome: "skipped", reason: input.skipReason });
28784
+ continue;
28785
+ }
28786
+ if (input.skipReason !== void 0) {
28787
+ throw new TypeError(
28788
+ `vault dry-run skipReason is only valid when nextText is null (path ${JSON.stringify(input.path)})`
28789
+ );
28790
+ }
28791
+ if (input.currentText === null) {
28792
+ results.push({ path: input.path, outcome: "skipped", reason: "missing_file" });
28793
+ continue;
28794
+ }
28795
+ const outcome = input.currentText === input.nextText ? "unchanged" : "updated";
28796
+ results.push({ path: input.path, outcome });
28797
+ }
28798
+ return summarizeVaultPublish(results);
28799
+ }
28800
+
28604
28801
  // src/session-summaries/index.ts
28605
28802
  import { createHash as createHash11 } from "crypto";
28606
28803
  import { lstat as lstat3, mkdir as mkdir7, readFile as readFile7, readdir as readdir4, rename, rm, stat as stat4, writeFile as writeFile7 } from "fs/promises";
@@ -29689,9 +29886,12 @@ export {
29689
29886
  mergeRecapUserEdits,
29690
29887
  ANALYSIS_METADATA_MAX_FIELD_LENGTH,
29691
29888
  buildAnalysisRunMetadata,
29889
+ RECAP_SOURCE_KINDS,
29890
+ selectRecapForDay,
29692
29891
  readVaultJournal,
29693
29892
  VAULT_JOURNAL_PREREQUISITES,
29694
29893
  checkVaultJournalPrerequisites,
29894
+ buildJournalMemoryProvenance,
29695
29895
  stripRemnicOwnedRegions2 as stripRemnicOwnedRegions,
29696
29896
  isEligibleActivityFact,
29697
29897
  generateActivityMemories,
@@ -29703,6 +29903,8 @@ export {
29703
29903
  planActivityDeletion,
29704
29904
  ACTIVITY_ANALYSIS_STATUSES,
29705
29905
  buildActivityHealth,
29906
+ ACTIVITY_FEATURE_GATES,
29907
+ resolveActivityGates,
29706
29908
  filterPrivacyWindow,
29707
29909
  resolveVaultNotePath,
29708
29910
  applyManagedRegion,
@@ -29715,6 +29917,7 @@ export {
29715
29917
  validateRegionName,
29716
29918
  stripVaultMdSuffix,
29717
29919
  joinVaultSegments,
29920
+ planVaultDryRun,
29718
29921
  fuseMeeting,
29719
29922
  buildMeetingRecordsForDay,
29720
29923
  MeetingsBuilder,
@@ -29748,4 +29951,4 @@ export {
29748
29951
  blendGraphExpandedRecallScore,
29749
29952
  Orchestrator
29750
29953
  };
29751
- //# sourceMappingURL=chunk-WOA7DS7O.js.map
29954
+ //# sourceMappingURL=chunk-YTCE2JQL.js.map