@remnic/core 9.66.9 → 9.66.11

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 (204) hide show
  1. package/dist/access-admin-ops-surface.js +21 -20
  2. package/dist/access-authorization-probe.js +22 -21
  3. package/dist/access-boundary.js +21 -20
  4. package/dist/access-cli.js +87 -86
  5. package/dist/access-cli.js.map +1 -1
  6. package/dist/access-extraction-force-flush.js +21 -20
  7. package/dist/access-http-query.js +23 -22
  8. package/dist/access-http.js +38 -37
  9. package/dist/access-identity-continuity-surface.js +21 -20
  10. package/dist/access-lcm-surface.js +21 -20
  11. package/dist/access-mcp.js +30 -29
  12. package/dist/access-namespace-preflight.js +21 -20
  13. package/dist/access-observe-write-surface.js +21 -20
  14. package/dist/access-operations-batch.js +24 -23
  15. package/dist/access-operations.js +29 -28
  16. package/dist/access-recall-concurrency.js +21 -20
  17. package/dist/access-recall-response.js +21 -20
  18. package/dist/access-recall-surface.js +21 -20
  19. package/dist/access-schema.js +3 -3
  20. package/dist/access-service.js +21 -20
  21. package/dist/access-surface-catalog.js +23 -22
  22. package/dist/access-surface-catalog.js.map +1 -1
  23. package/dist/adapters/index.js +4 -4
  24. package/dist/adapters/registry.js +2 -2
  25. package/dist/briefing.js +8 -8
  26. package/dist/causal-consolidation.js +10 -9
  27. package/dist/causal-consolidation.js.map +1 -1
  28. package/dist/{chunk-5GZ6UWY5.js → chunk-245QROHZ.js} +5 -5
  29. package/dist/{chunk-A7GQBJP5.js → chunk-2L5FSNPC.js} +10 -10
  30. package/dist/{chunk-SJ5L4ZZX.js → chunk-2OXBS2LV.js} +2 -2
  31. package/dist/chunk-3UXOZBHV.js +20 -0
  32. package/dist/chunk-3UXOZBHV.js.map +1 -0
  33. package/dist/{chunk-G775FE2E.js → chunk-4PHT7KE2.js} +11 -11
  34. package/dist/{chunk-TKSBOV7N.js → chunk-4PWANX5V.js} +6 -6
  35. package/dist/{chunk-TEJKBBWS.js → chunk-4QKWBVEE.js} +11 -11
  36. package/dist/{chunk-MFI4QPW5.js → chunk-54BRW3BL.js} +2 -2
  37. package/dist/{chunk-23F7HGBV.js → chunk-5E7KXID5.js} +1 -1
  38. package/dist/{chunk-VX5YHEGJ.js → chunk-6H7JWYTC.js} +17 -12
  39. package/dist/chunk-6H7JWYTC.js.map +1 -0
  40. package/dist/{chunk-5CSKIWEB.js → chunk-7BS5UVXA.js} +3 -3
  41. package/dist/{chunk-Q5YKVBIV.js → chunk-7FLINMUE.js} +2 -2
  42. package/dist/{chunk-ZC5L6ME2.js → chunk-7MOYAT4Y.js} +3 -3
  43. package/dist/{chunk-NABJLNLU.js → chunk-BCM6ZAJ3.js} +190 -52
  44. package/dist/chunk-BCM6ZAJ3.js.map +1 -0
  45. package/dist/{chunk-KVXMN33W.js → chunk-C6TMLF3A.js} +4 -4
  46. package/dist/{chunk-47BX23NA.js → chunk-D3AUQXTJ.js} +2 -2
  47. package/dist/{chunk-3HHLOKKU.js → chunk-DJLH3XWM.js} +2 -2
  48. package/dist/{chunk-SRILZVR4.js → chunk-E2PORO7O.js} +2 -2
  49. package/dist/{chunk-G3TUQJFU.js → chunk-E62M4H4M.js} +2 -2
  50. package/dist/{chunk-GB4R6B5M.js → chunk-EG4FHU5C.js} +2 -2
  51. package/dist/{chunk-QU2V4IO3.js → chunk-EMAEDM2J.js} +2 -2
  52. package/dist/{chunk-FNYVWAIK.js → chunk-G3B3LP6A.js} +18 -18
  53. package/dist/{chunk-D6Q5EPOV.js → chunk-HCERYDRI.js} +2 -2
  54. package/dist/{chunk-5NZIRM4Q.js → chunk-HJQZQUPC.js} +7 -7
  55. package/dist/{chunk-CIWOW2FH.js → chunk-HPGXB56F.js} +2 -2
  56. package/dist/{chunk-KQAFEZQX.js → chunk-IPLYGWQF.js} +5 -5
  57. package/dist/{chunk-UAWSKMWQ.js → chunk-ISX7JODR.js} +2 -2
  58. package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
  59. package/dist/{chunk-HWWGPS2N.js → chunk-JNZSNJ43.js} +2 -2
  60. package/dist/{chunk-JHU543UU.js → chunk-K6PWPC7O.js} +2 -2
  61. package/dist/{chunk-JVGBDNXA.js → chunk-KT3ERTF6.js} +2 -2
  62. package/dist/{chunk-SOQLXIQX.js → chunk-KWLDB64F.js} +2 -2
  63. package/dist/{chunk-7JPKRZD5.js → chunk-LPSTQR26.js} +2 -2
  64. package/dist/{chunk-OT7WQ2I3.js → chunk-LTWFU6VJ.js} +2 -2
  65. package/dist/{chunk-NSP3HFJZ.js → chunk-PVV42HM4.js} +6 -3
  66. package/dist/chunk-PVV42HM4.js.map +1 -0
  67. package/dist/{chunk-TWMGWLHD.js → chunk-PWVRMD37.js} +2 -2
  68. package/dist/{chunk-AAJK3PZ6.js → chunk-QB66LBXA.js} +2 -2
  69. package/dist/{chunk-XVNDP3RO.js → chunk-QKTGCL6M.js} +2 -2
  70. package/dist/{chunk-LTDN5WYF.js → chunk-S47XNAWD.js} +2 -2
  71. package/dist/{chunk-IBHUZEKL.js → chunk-SQEIPTDV.js} +2 -2
  72. package/dist/{chunk-J67E4JNT.js → chunk-TGKLVAML.js} +2 -2
  73. package/dist/{chunk-VCYY7XEL.js → chunk-TS37MXC7.js} +2 -2
  74. package/dist/{chunk-ZJGHOPEO.js → chunk-UWOA5L6N.js} +70 -73
  75. package/dist/{chunk-ZJGHOPEO.js.map → chunk-UWOA5L6N.js.map} +1 -1
  76. package/dist/{chunk-ZVUGRXSY.js → chunk-WD424KYT.js} +2 -2
  77. package/dist/{chunk-B3TZLAO4.js → chunk-X5SDZMO7.js} +2 -2
  78. package/dist/{chunk-FUPIAP6Q.js → chunk-XN33JLRF.js} +3 -3
  79. package/dist/{chunk-MBDUNO7J.js → chunk-XZ7QLOTJ.js} +5 -21
  80. package/dist/chunk-XZ7QLOTJ.js.map +1 -0
  81. package/dist/{chunk-OJSCH7QT.js → chunk-Y2ECPAJI.js} +7 -7
  82. package/dist/{chunk-DGKVUPBM.js → chunk-Y6KDJQLK.js} +7 -7
  83. package/dist/{chunk-EZ25VE3G.js → chunk-YNDLCWXS.js} +4 -4
  84. package/dist/{chunk-Q3UMNZRK.js → chunk-ZIGSNLYI.js} +3 -3
  85. package/dist/{chunk-RF3LMSQW.js → chunk-ZRQPX2DW.js} +2 -2
  86. package/dist/cli.js +61 -60
  87. package/dist/coding/export-okf-codegraph.js +8 -8
  88. package/dist/compounding/engine.js +8 -8
  89. package/dist/connectors/codex-materialize-runner.js +9 -8
  90. package/dist/connectors/index.js +9 -8
  91. package/dist/convergence-refresh.js +10 -10
  92. package/dist/corpus-watermark.js +10 -10
  93. package/dist/dashboard-runtime.js +2 -2
  94. package/dist/entity-retrieval.js +8 -8
  95. package/dist/external-wiki-access.js +22 -21
  96. package/dist/extraction-span-tokens.d.ts +16 -0
  97. package/dist/extraction-span-tokens.js +34 -0
  98. package/dist/extraction-span-tokens.js.map +1 -0
  99. package/dist/extraction.js +9 -8
  100. package/dist/{first-start-migration-UG32BSG2.js → first-start-migration-KHIMCBIC.js} +4 -4
  101. package/dist/harmonic-retrieval.js +1 -1
  102. package/dist/index.d.ts +102 -1
  103. package/dist/index.js +126 -117
  104. package/dist/lcm/engine.js +4 -4
  105. package/dist/lcm/index.js +9 -9
  106. package/dist/location/index.js +10 -10
  107. package/dist/maintenance/memory-governance.js +8 -8
  108. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +8 -8
  109. package/dist/maintenance/rebuild-memory-projection.js +9 -9
  110. package/dist/namespaces/migrate.js +9 -9
  111. package/dist/namespaces/search.js +4 -4
  112. package/dist/namespaces/storage.js +8 -8
  113. package/dist/operator-doctor-corpus.js +11 -11
  114. package/dist/operator-toolkit.js +16 -16
  115. package/dist/orchestration/maintenance.js +16 -16
  116. package/dist/orchestrator.js +88 -87
  117. package/dist/recall-deep-frontier.d.ts +15 -0
  118. package/dist/recall-deep-frontier.js +29 -0
  119. package/dist/recall-deep-frontier.js.map +1 -0
  120. package/dist/search/factory.js +3 -3
  121. package/dist/search/index.js +7 -7
  122. package/dist/semantic-consolidation.js +10 -9
  123. package/dist/semantic-rule-promotion.js +8 -8
  124. package/dist/semantic-rule-verifier.js +8 -8
  125. package/dist/source-agent-qualifier.js +9 -8
  126. package/dist/standup/build.js +8 -8
  127. package/dist/storage.js +7 -7
  128. package/dist/support-passport/index.js +24 -23
  129. package/dist/transfer/autodetect.js +1 -1
  130. package/dist/transfer/backup.js +1 -1
  131. package/dist/transfer/capsule-export.js +2 -2
  132. package/dist/transfer/export-okf.d.ts +8 -0
  133. package/dist/transfer/export-okf.js +10 -9
  134. package/dist/verified-recall.js +8 -8
  135. package/dist/who-knows-cli.js +9 -9
  136. package/dist/who-knows.js +8 -8
  137. package/package.json +2 -2
  138. package/src/activity/index.ts +2 -0
  139. package/src/activity/privacy-status.test.ts +117 -0
  140. package/src/activity/privacy-status.ts +65 -0
  141. package/src/activity/timeline/index.ts +1 -0
  142. package/src/activity/timeline/week-previous.test.ts +119 -0
  143. package/src/activity/timeline/week-previous.ts +83 -0
  144. package/src/activity/vault-insert.test.ts +105 -0
  145. package/src/activity/vault-insert.ts +86 -0
  146. package/src/cli/okf-commands.ts +2 -5
  147. package/src/extraction-span-tokens.test.ts +69 -0
  148. package/src/extraction-span-tokens.ts +44 -0
  149. package/src/okf/render.ts +11 -2
  150. package/src/recall-deep-frontier.test.ts +85 -0
  151. package/src/recall-deep-frontier.ts +39 -0
  152. package/src/transfer/export-okf.test.ts +77 -1
  153. package/src/transfer/export-okf.ts +25 -9
  154. package/dist/chunk-MBDUNO7J.js.map +0 -1
  155. package/dist/chunk-NABJLNLU.js.map +0 -1
  156. package/dist/chunk-NSP3HFJZ.js.map +0 -1
  157. package/dist/chunk-VX5YHEGJ.js.map +0 -1
  158. /package/dist/{chunk-5GZ6UWY5.js.map → chunk-245QROHZ.js.map} +0 -0
  159. /package/dist/{chunk-A7GQBJP5.js.map → chunk-2L5FSNPC.js.map} +0 -0
  160. /package/dist/{chunk-SJ5L4ZZX.js.map → chunk-2OXBS2LV.js.map} +0 -0
  161. /package/dist/{chunk-G775FE2E.js.map → chunk-4PHT7KE2.js.map} +0 -0
  162. /package/dist/{chunk-TKSBOV7N.js.map → chunk-4PWANX5V.js.map} +0 -0
  163. /package/dist/{chunk-TEJKBBWS.js.map → chunk-4QKWBVEE.js.map} +0 -0
  164. /package/dist/{chunk-MFI4QPW5.js.map → chunk-54BRW3BL.js.map} +0 -0
  165. /package/dist/{chunk-23F7HGBV.js.map → chunk-5E7KXID5.js.map} +0 -0
  166. /package/dist/{chunk-5CSKIWEB.js.map → chunk-7BS5UVXA.js.map} +0 -0
  167. /package/dist/{chunk-Q5YKVBIV.js.map → chunk-7FLINMUE.js.map} +0 -0
  168. /package/dist/{chunk-ZC5L6ME2.js.map → chunk-7MOYAT4Y.js.map} +0 -0
  169. /package/dist/{chunk-KVXMN33W.js.map → chunk-C6TMLF3A.js.map} +0 -0
  170. /package/dist/{chunk-47BX23NA.js.map → chunk-D3AUQXTJ.js.map} +0 -0
  171. /package/dist/{chunk-3HHLOKKU.js.map → chunk-DJLH3XWM.js.map} +0 -0
  172. /package/dist/{chunk-SRILZVR4.js.map → chunk-E2PORO7O.js.map} +0 -0
  173. /package/dist/{chunk-G3TUQJFU.js.map → chunk-E62M4H4M.js.map} +0 -0
  174. /package/dist/{chunk-GB4R6B5M.js.map → chunk-EG4FHU5C.js.map} +0 -0
  175. /package/dist/{chunk-QU2V4IO3.js.map → chunk-EMAEDM2J.js.map} +0 -0
  176. /package/dist/{chunk-FNYVWAIK.js.map → chunk-G3B3LP6A.js.map} +0 -0
  177. /package/dist/{chunk-D6Q5EPOV.js.map → chunk-HCERYDRI.js.map} +0 -0
  178. /package/dist/{chunk-5NZIRM4Q.js.map → chunk-HJQZQUPC.js.map} +0 -0
  179. /package/dist/{chunk-CIWOW2FH.js.map → chunk-HPGXB56F.js.map} +0 -0
  180. /package/dist/{chunk-KQAFEZQX.js.map → chunk-IPLYGWQF.js.map} +0 -0
  181. /package/dist/{chunk-UAWSKMWQ.js.map → chunk-ISX7JODR.js.map} +0 -0
  182. /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
  183. /package/dist/{chunk-HWWGPS2N.js.map → chunk-JNZSNJ43.js.map} +0 -0
  184. /package/dist/{chunk-JHU543UU.js.map → chunk-K6PWPC7O.js.map} +0 -0
  185. /package/dist/{chunk-JVGBDNXA.js.map → chunk-KT3ERTF6.js.map} +0 -0
  186. /package/dist/{chunk-SOQLXIQX.js.map → chunk-KWLDB64F.js.map} +0 -0
  187. /package/dist/{chunk-7JPKRZD5.js.map → chunk-LPSTQR26.js.map} +0 -0
  188. /package/dist/{chunk-OT7WQ2I3.js.map → chunk-LTWFU6VJ.js.map} +0 -0
  189. /package/dist/{chunk-TWMGWLHD.js.map → chunk-PWVRMD37.js.map} +0 -0
  190. /package/dist/{chunk-AAJK3PZ6.js.map → chunk-QB66LBXA.js.map} +0 -0
  191. /package/dist/{chunk-XVNDP3RO.js.map → chunk-QKTGCL6M.js.map} +0 -0
  192. /package/dist/{chunk-LTDN5WYF.js.map → chunk-S47XNAWD.js.map} +0 -0
  193. /package/dist/{chunk-IBHUZEKL.js.map → chunk-SQEIPTDV.js.map} +0 -0
  194. /package/dist/{chunk-J67E4JNT.js.map → chunk-TGKLVAML.js.map} +0 -0
  195. /package/dist/{chunk-VCYY7XEL.js.map → chunk-TS37MXC7.js.map} +0 -0
  196. /package/dist/{chunk-ZVUGRXSY.js.map → chunk-WD424KYT.js.map} +0 -0
  197. /package/dist/{chunk-B3TZLAO4.js.map → chunk-X5SDZMO7.js.map} +0 -0
  198. /package/dist/{chunk-FUPIAP6Q.js.map → chunk-XN33JLRF.js.map} +0 -0
  199. /package/dist/{chunk-OJSCH7QT.js.map → chunk-Y2ECPAJI.js.map} +0 -0
  200. /package/dist/{chunk-DGKVUPBM.js.map → chunk-Y6KDJQLK.js.map} +0 -0
  201. /package/dist/{chunk-EZ25VE3G.js.map → chunk-YNDLCWXS.js.map} +0 -0
  202. /package/dist/{chunk-Q3UMNZRK.js.map → chunk-ZIGSNLYI.js.map} +0 -0
  203. /package/dist/{chunk-RF3LMSQW.js.map → chunk-ZRQPX2DW.js.map} +0 -0
  204. /package/dist/{first-start-migration-UG32BSG2.js.map → first-start-migration-KHIMCBIC.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";
10
13
  import {
11
14
  CompressionGuidelineCoordinator
12
15
  } from "./chunk-UXREWVW4.js";
13
16
  import {
14
17
  ActivityStore,
15
18
  MaintenanceScheduler
16
- } from "./chunk-5GZ6UWY5.js";
17
- import {
18
- runPeerProfileReasoner
19
- } from "./chunk-I74SUMNI.js";
19
+ } from "./chunk-245QROHZ.js";
20
20
  import {
21
21
  migrateFromEngram
22
22
  } from "./chunk-7HYPN2GC.js";
23
23
  import {
24
24
  LcmEngine
25
- } from "./chunk-A7GQBJP5.js";
25
+ } from "./chunk-2L5FSNPC.js";
26
26
  import {
27
27
  chunkTranscriptEntries
28
28
  } from "./chunk-TECVW3JP.js";
@@ -32,18 +32,21 @@ import {
32
32
  import {
33
33
  CompoundingEngine,
34
34
  defaultTierMigrationCycleBudget
35
- } from "./chunk-TWMGWLHD.js";
35
+ } from "./chunk-PWVRMD37.js";
36
36
  import {
37
37
  SharedContextManager
38
38
  } from "./chunk-VI637ILW.js";
39
- import {
40
- cleanArchivedUserMessage
41
- } from "./chunk-47DU4SGJ.js";
42
39
  import {
43
40
  applyUtilityPromotionRuntimePolicy,
44
41
  applyUtilityRankingRuntimeDelta,
45
42
  loadUtilityRuntimeValues
46
43
  } from "./chunk-SEF4IOFE.js";
44
+ import {
45
+ cleanArchivedUserMessage
46
+ } from "./chunk-47DU4SGJ.js";
47
+ import {
48
+ TierMigrationExecutor
49
+ } from "./chunk-YRFAYOFQ.js";
47
50
  import {
48
51
  decideTierTransition
49
52
  } from "./chunk-DD5JFCWM.js";
@@ -59,9 +62,6 @@ import {
59
62
  import {
60
63
  CODEX_THREAD_KEY_PREFIX
61
64
  } from "./chunk-4EX5WZ4M.js";
62
- import {
63
- TierMigrationExecutor
64
- } from "./chunk-YRFAYOFQ.js";
65
65
  import {
66
66
  HourlySummarizer
67
67
  } from "./chunk-IEZ6CGTW.js";
@@ -72,18 +72,6 @@ import {
72
72
  import {
73
73
  SessionObserverState
74
74
  } from "./chunk-ODZKV2F7.js";
75
- import {
76
- applyRuntimeRetrievalPolicy
77
- } from "./chunk-5IZL4DCV.js";
78
- import {
79
- RerankCache,
80
- reorderByRankedKeys,
81
- rerankLocalOrNoop
82
- } from "./chunk-LUDXM7MD.js";
83
- import {
84
- buildResponseGuidanceRecallSection,
85
- shouldRecallResponseGuidance
86
- } from "./chunk-6TCXIRP5.js";
87
75
  import {
88
76
  mergeWithAgentResults,
89
77
  runDirectAgent,
@@ -106,11 +94,23 @@ import {
106
94
  resolvePromptTagPrefilterAsync
107
95
  } from "./chunk-ZOKZIR5K.js";
108
96
  import {
109
- findUnresolvedEntityRefs
110
- } from "./chunk-X7XN6YU4.js";
97
+ applyRuntimeRetrievalPolicy
98
+ } from "./chunk-5IZL4DCV.js";
111
99
  import {
112
100
  RelevanceStore
113
101
  } from "./chunk-KATEWTQJ.js";
102
+ import {
103
+ RerankCache,
104
+ reorderByRankedKeys,
105
+ rerankLocalOrNoop
106
+ } 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-7JPKRZD5.js";
197
+ } from "./chunk-LPSTQR26.js";
198
198
  import {
199
199
  planEpisodeWindowsWithFallback
200
200
  } from "./chunk-T3GIETKV.js";
@@ -209,14 +209,14 @@ import {
209
209
  } from "./chunk-DFEODULB.js";
210
210
  import {
211
211
  refreshConvergedNamespaces
212
- } from "./chunk-GB4R6B5M.js";
212
+ } from "./chunk-EG4FHU5C.js";
213
213
  import {
214
214
  builtInConnectorPackageSpecifier,
215
215
  ensureBuiltInWearableConnectors,
216
216
  getWearableConnector,
217
217
  listWearableConnectors,
218
218
  screenCandidateFact
219
- } from "./chunk-ZJGHOPEO.js";
219
+ } from "./chunk-UWOA5L6N.js";
220
220
  import {
221
221
  normalizeReplaySessionKey
222
222
  } from "./chunk-AJVLDJU6.js";
@@ -226,14 +226,14 @@ import {
226
226
  import {
227
227
  compareVerifiedEpisodeResults,
228
228
  searchVerifiedEpisodes
229
- } from "./chunk-SOQLXIQX.js";
229
+ } from "./chunk-KWLDB64F.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-QU2V4IO3.js";
236
+ } from "./chunk-EMAEDM2J.js";
237
237
  import {
238
238
  searchWorkProductLedgerEntries
239
239
  } from "./chunk-NRLELHAY.js";
@@ -246,17 +246,17 @@ import {
246
246
  import {
247
247
  runNamespaceMaintenanceFanout,
248
248
  summarizeNamespaceMaintenanceHealth
249
- } from "./chunk-OJSCH7QT.js";
249
+ } from "./chunk-Y2ECPAJI.js";
250
250
  import {
251
251
  planNamespaceMaintenance
252
- } from "./chunk-FUPIAP6Q.js";
252
+ } from "./chunk-XN33JLRF.js";
253
253
  import {
254
254
  isAboveImportanceThreshold,
255
255
  scoreImportance
256
256
  } from "./chunk-UOBPK2OS.js";
257
257
  import {
258
258
  searchHarmonicRetrieval
259
- } from "./chunk-23F7HGBV.js";
259
+ } from "./chunk-5E7KXID5.js";
260
260
  import {
261
261
  EXTRACTION_JUDGE_VERDICT_CATEGORY,
262
262
  recordJudgeVerdict
@@ -284,7 +284,7 @@ import {
284
284
  materializeAfterSemanticConsolidation,
285
285
  parseConsolidationResponse,
286
286
  parseOperatorAwareConsolidationResponse
287
- } from "./chunk-JHU543UU.js";
287
+ } from "./chunk-K6PWPC7O.js";
288
288
  import {
289
289
  semanticChunkContent
290
290
  } from "./chunk-2GBFKHBZ.js";
@@ -330,7 +330,7 @@ import {
330
330
  } from "./chunk-QW27DOHG.js";
331
331
  import {
332
332
  MeetingsInputError
333
- } from "./chunk-TEJKBBWS.js";
333
+ } from "./chunk-4QKWBVEE.js";
334
334
  import {
335
335
  WearablesInputError,
336
336
  describeErrorForOperator
@@ -344,7 +344,7 @@ import {
344
344
  } from "./chunk-CEN6DW6X.js";
345
345
  import {
346
346
  NamespaceCatalog
347
- } from "./chunk-MFI4QPW5.js";
347
+ } from "./chunk-54BRW3BL.js";
348
348
  import {
349
349
  RecallResultFormatter,
350
350
  SessionContextCoordinator,
@@ -356,17 +356,13 @@ import {
356
356
  isTopLevelArchivePath,
357
357
  journalPath,
358
358
  writeJournalFile
359
- } from "./chunk-FNYVWAIK.js";
359
+ } from "./chunk-G3B3LP6A.js";
360
360
  import {
361
361
  importCapsule
362
362
  } from "./chunk-J2R275FN.js";
363
363
  import {
364
364
  isCodingGraphInstalled
365
365
  } from "./chunk-VQ7B2Q6M.js";
366
- import {
367
- listTrustZoneRecords,
368
- searchTrustZoneRecords
369
- } from "./chunk-5QZR2RA3.js";
370
366
  import {
371
367
  applyTrustScoreStage,
372
368
  buildTrustSignalsForRerank,
@@ -374,6 +370,10 @@ import {
374
370
  trustResultFor,
375
371
  trustResultKey
376
372
  } from "./chunk-GNVZQ5JN.js";
373
+ import {
374
+ listTrustZoneRecords,
375
+ searchTrustZoneRecords
376
+ } from "./chunk-5QZR2RA3.js";
377
377
  import {
378
378
  LastRecallStore,
379
379
  RecallHandleHistoryStore,
@@ -410,13 +410,13 @@ import {
410
410
  } from "./chunk-7ZNJN5WZ.js";
411
411
  import {
412
412
  NamespaceStorageRouter
413
- } from "./chunk-OT7WQ2I3.js";
413
+ } from "./chunk-LTWFU6VJ.js";
414
414
  import {
415
415
  GraphIndex
416
416
  } from "./chunk-YMOPYG3K.js";
417
417
  import {
418
418
  buildChainFollowupGenerator
419
- } from "./chunk-G3TUQJFU.js";
419
+ } from "./chunk-E62M4H4M.js";
420
420
  import {
421
421
  QmdResultResolver,
422
422
  StorageManager,
@@ -435,10 +435,7 @@ import {
435
435
  reconstructFusionInputs,
436
436
  selfDeps,
437
437
  serializeFusionDay
438
- } from "./chunk-G775FE2E.js";
439
- import {
440
- buildRetiredFactTombstoneInputs
441
- } from "./chunk-4ZWCQJNM.js";
438
+ } from "./chunk-4PHT7KE2.js";
442
439
  import {
443
440
  bodyIsEscaped,
444
441
  decodeTranscriptBody,
@@ -449,15 +446,18 @@ import {
449
446
  saveSpeakerRegistry,
450
447
  speakerRegistryKey
451
448
  } from "./chunk-UHVXE24Y.js";
449
+ import {
450
+ buildRetiredFactTombstoneInputs
451
+ } from "./chunk-4ZWCQJNM.js";
452
452
  import {
453
453
  NamespaceSearchRouter,
454
454
  namespaceCollectionName
455
- } from "./chunk-B3TZLAO4.js";
455
+ } from "./chunk-X5SDZMO7.js";
456
456
  import {
457
457
  createConversationIndexRuntime,
458
458
  createSearchBackend,
459
459
  isSearchBackendEnabled
460
- } from "./chunk-5NZIRM4Q.js";
460
+ } from "./chunk-HJQZQUPC.js";
461
461
  import {
462
462
  NoopSearchBackend
463
463
  } from "./chunk-CYEPCZN5.js";
@@ -15664,7 +15664,7 @@ var OrchestratorInitCoordinator = class {
15664
15664
  if (signal.aborted) return;
15665
15665
  if (lifecycleCaps.lifecyclePolicy && resolveQmdCapabilities(this.deps.config).qmdTierMigration) {
15666
15666
  try {
15667
- const { runFirstStartMigration } = await import("./first-start-migration-UG32BSG2.js");
15667
+ const { runFirstStartMigration } = await import("./first-start-migration-KHIMCBIC.js");
15668
15668
  const result = await runFirstStartMigration({
15669
15669
  storage: this.deps.storage,
15670
15670
  config: this.deps.config,
@@ -27193,6 +27193,46 @@ function renderWeekSnapshot(options) {
27193
27193
  ].join("\n");
27194
27194
  }
27195
27195
 
27196
+ // src/activity/timeline/week-previous.ts
27197
+ var DURATION_FIELDS = [
27198
+ "activeMs",
27199
+ "idleMs",
27200
+ "pauseMs",
27201
+ "gapMs",
27202
+ "unclassifiedMs"
27203
+ ];
27204
+ function assertFiniteTotals(totals, label) {
27205
+ for (const field of DURATION_FIELDS) {
27206
+ const value = totals[field];
27207
+ if (typeof value !== "number" || !Number.isFinite(value)) {
27208
+ throw new TypeError(`${label}.${field} must be a finite number; got ${String(value)}.`);
27209
+ }
27210
+ }
27211
+ }
27212
+ function compareWeeklyPreviousPeriod(input) {
27213
+ const { previous, current, previousStartUtc, previousEndUtc } = input;
27214
+ assertFiniteTotals(current, "current");
27215
+ if (previous === null || previous === void 0) {
27216
+ return { available: false };
27217
+ }
27218
+ assertFiniteTotals(previous, "previous");
27219
+ const start = previousStartUtc?.trim() ?? "";
27220
+ const end = previousEndUtc?.trim() ?? "";
27221
+ if (start === "" || end === "") {
27222
+ return { available: false };
27223
+ }
27224
+ return {
27225
+ available: true,
27226
+ previousStartUtc: start,
27227
+ previousEndUtc: end,
27228
+ deltaActiveMs: current.activeMs - previous.activeMs,
27229
+ deltaIdleMs: current.idleMs - previous.idleMs,
27230
+ deltaPauseMs: current.pauseMs - previous.pauseMs,
27231
+ deltaGapMs: current.gapMs - previous.gapMs,
27232
+ deltaUnclassifiedMs: current.unclassifiedMs - previous.unclassifiedMs
27233
+ };
27234
+ }
27235
+
27196
27236
  // src/activity/timeline/analysis-batch.ts
27197
27237
  function compareObservations(a, b) {
27198
27238
  const time = Date.parse(a.capturedAtUtc) - Date.parse(b.capturedAtUtc);
@@ -27757,6 +27797,42 @@ function observationsForExport(observations, policy) {
27757
27797
  return observations;
27758
27798
  }
27759
27799
 
27800
+ // src/activity/privacy-status.ts
27801
+ var ACTIVITY_ANALYSIS_STATUSES = ["ok", "failed", "skipped", "never"];
27802
+ var STATUS_ALLOW_LIST = ACTIVITY_ANALYSIS_STATUSES.join(", ");
27803
+ function buildActivityHealth(input) {
27804
+ const { enabled, retentionDays, observationCount, cardCount } = input;
27805
+ if (!Number.isInteger(retentionDays) || retentionDays < 0) {
27806
+ throw new RangeError("retentionDays must be a non-negative integer");
27807
+ }
27808
+ if (!Number.isInteger(observationCount) || observationCount < 0) {
27809
+ throw new RangeError("invalid count: observationCount must be a non-negative integer");
27810
+ }
27811
+ if (!Number.isInteger(cardCount) || cardCount < 0) {
27812
+ throw new RangeError("invalid count: cardCount must be a non-negative integer");
27813
+ }
27814
+ const rawRevision = input.sourceRevision;
27815
+ const trimmedRevision = typeof rawRevision === "string" ? rawRevision.trim() : "";
27816
+ const rawStatus = input.lastAnalysisStatus;
27817
+ let lastAnalysisStatus = "never";
27818
+ if (rawStatus !== void 0 && rawStatus !== null) {
27819
+ if (!ACTIVITY_ANALYSIS_STATUSES.includes(rawStatus)) {
27820
+ throw new TypeError(
27821
+ `unknown analysis status ${JSON.stringify(rawStatus)}; expected one of: ${STATUS_ALLOW_LIST}`
27822
+ );
27823
+ }
27824
+ lastAnalysisStatus = rawStatus;
27825
+ }
27826
+ return {
27827
+ enabled,
27828
+ retentionDays,
27829
+ sourceRevision: trimmedRevision === "" ? null : trimmedRevision,
27830
+ lastAnalysisStatus,
27831
+ observationCount,
27832
+ cardCount
27833
+ };
27834
+ }
27835
+
27760
27836
  // src/activity/privacy-window.ts
27761
27837
  function filterPrivacyWindow(items, options) {
27762
27838
  const { fromMs, toMs, retainDays } = options;
@@ -27947,6 +28023,64 @@ function publishVaultRegion(input) {
27947
28023
  return { ok: true, status: "updated" };
27948
28024
  }
27949
28025
 
28026
+ // src/activity/vault-insert.ts
28027
+ function insertMarkersUnderHeading(fileText, opts) {
28028
+ if (typeof opts.heading !== "string" || opts.heading.length === 0) {
28029
+ throw new RangeError("Heading must be non-empty.");
28030
+ }
28031
+ if (typeof opts.name !== "string" || opts.name.length === 0) {
28032
+ throw new RangeError("Region name must be non-empty.");
28033
+ }
28034
+ const startMarker = `<!-- remnic:${opts.name}:start -->`;
28035
+ const endMarker = `<!-- remnic:${opts.name}:end -->`;
28036
+ if (fileText.includes(startMarker) && fileText.includes(endMarker)) {
28037
+ return { ok: true, text: fileText, inserted: false };
28038
+ }
28039
+ const rows = fileLines2(fileText);
28040
+ const hits = [];
28041
+ for (const row of rows) {
28042
+ const heading = parseAtxHeading3(row.line);
28043
+ if (heading && heading.text === opts.heading) {
28044
+ hits.push({ row, level: heading.level });
28045
+ }
28046
+ }
28047
+ if (hits.length === 0) return { ok: false, reason: "no_heading", text: fileText };
28048
+ if (hits.length > 1) {
28049
+ return { ok: false, reason: "duplicate_heading", lines: hits.map((hit2) => hit2.row.number), text: fileText };
28050
+ }
28051
+ const hit = hits[0];
28052
+ const eol = fileText.includes("\r\n") ? "\r\n" : "\n";
28053
+ const prefix = hit.row.next === fileText.length && !fileText.endsWith("\n") && !fileText.endsWith("\r") ? `${fileText}${eol}` : fileText.slice(0, hit.row.next);
28054
+ let content = opts.content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
28055
+ if (eol === "\r\n") content = content.replace(/\n/g, "\r\n");
28056
+ if (content.length > 0 && !content.endsWith(eol)) content += eol;
28057
+ const text = `${prefix}${startMarker}${eol}${content}${endMarker}${eol}${fileText.slice(hit.row.next)}`;
28058
+ return { ok: true, text, inserted: true };
28059
+ }
28060
+ function fileLines2(fileText) {
28061
+ const rows = [];
28062
+ let start = 0;
28063
+ let number = 1;
28064
+ while (start < fileText.length) {
28065
+ let i = start;
28066
+ while (i < fileText.length && fileText[i] !== "\n" && fileText[i] !== "\r") i++;
28067
+ let next = i;
28068
+ if (fileText[i] === "\r" && fileText[i + 1] === "\n") next = i + 2;
28069
+ else if (fileText[i] === "\n" || fileText[i] === "\r") next = i + 1;
28070
+ else next = fileText.length;
28071
+ rows.push({ line: fileText.slice(start, i), start, next, number });
28072
+ number += 1;
28073
+ start = next;
28074
+ }
28075
+ return rows;
28076
+ }
28077
+ function parseAtxHeading3(line) {
28078
+ let level = 0;
28079
+ while (level < line.length && level < 6 && line[level] === "#") level++;
28080
+ if (level === 0 || line[level] !== " ") return null;
28081
+ return { level, text: line.slice(level + 1) };
28082
+ }
28083
+
27950
28084
  // src/activity/vault-frontmatter.ts
27951
28085
  function assertNoNewlineKey(key) {
27952
28086
  if (key.includes("\n") || key.includes("\r")) {
@@ -29115,6 +29249,7 @@ export {
29115
29249
  renderRecapMarkdown,
29116
29250
  exportDeterministicWeek,
29117
29251
  renderWeekSnapshot,
29252
+ compareWeeklyPreviousPeriod,
29118
29253
  batchObservations2 as batchObservations,
29119
29254
  boundEvidence,
29120
29255
  buildAnalysisPrompt,
@@ -29129,10 +29264,13 @@ export {
29129
29264
  parseActivityPrivacy,
29130
29265
  shouldRetain,
29131
29266
  observationsForExport,
29267
+ ACTIVITY_ANALYSIS_STATUSES,
29268
+ buildActivityHealth,
29132
29269
  filterPrivacyWindow,
29133
29270
  resolveVaultNotePath,
29134
29271
  applyManagedRegion,
29135
29272
  publishVaultRegion,
29273
+ insertMarkersUnderHeading,
29136
29274
  applyVaultFrontmatter,
29137
29275
  formatVaultWikilink,
29138
29276
  validateRegionName,
@@ -29171,4 +29309,4 @@ export {
29171
29309
  blendGraphExpandedRecallScore,
29172
29310
  Orchestrator
29173
29311
  };
29174
- //# sourceMappingURL=chunk-NABJLNLU.js.map
29312
+ //# sourceMappingURL=chunk-BCM6ZAJ3.js.map