@remnic/core 9.69.3 → 9.69.5

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 (233) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-admin-ops-surface.js +20 -20
  3. package/dist/access-authorization-probe.d.ts +1 -1
  4. package/dist/access-authorization-probe.js +21 -21
  5. package/dist/access-boundary.d.ts +1 -1
  6. package/dist/access-boundary.js +20 -20
  7. package/dist/access-cli.js +68 -68
  8. package/dist/access-extraction-force-flush.d.ts +1 -1
  9. package/dist/access-extraction-force-flush.js +20 -20
  10. package/dist/access-http-lcm-compaction.d.ts +1 -1
  11. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  12. package/dist/access-http-offline-stream.d.ts +1 -1
  13. package/dist/access-http-query.js +22 -22
  14. package/dist/access-http.d.ts +2 -2
  15. package/dist/access-http.js +36 -36
  16. package/dist/access-identity-continuity-surface.js +20 -20
  17. package/dist/access-lcm-surface.d.ts +1 -1
  18. package/dist/access-lcm-surface.js +20 -20
  19. package/dist/access-mcp.d.ts +1 -1
  20. package/dist/access-mcp.js +29 -29
  21. package/dist/access-namespace-preflight.js +20 -20
  22. package/dist/access-observe-write-surface.d.ts +1 -1
  23. package/dist/access-observe-write-surface.js +20 -20
  24. package/dist/access-operations-batch.js +23 -23
  25. package/dist/access-operations.d.ts +6 -6
  26. package/dist/access-operations.js +28 -28
  27. package/dist/access-recall-concurrency.d.ts +1 -1
  28. package/dist/access-recall-concurrency.js +20 -20
  29. package/dist/access-recall-response.d.ts +1 -1
  30. package/dist/access-recall-response.js +20 -20
  31. package/dist/access-recall-surface.d.ts +1 -1
  32. package/dist/access-recall-surface.js +20 -20
  33. package/dist/access-schema.d.ts +89 -89
  34. package/dist/access-schema.js +4 -4
  35. package/dist/access-service-helpers.d.ts +1 -1
  36. package/dist/access-service.d.ts +1 -1
  37. package/dist/access-service.js +20 -20
  38. package/dist/access-surface-catalog.d.ts +1 -1
  39. package/dist/access-surface-catalog.js +22 -22
  40. package/dist/briefing.js +8 -8
  41. package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
  42. package/dist/causal-consolidation.js +9 -9
  43. package/dist/{chunk-N3VPKMU3.js → chunk-3X7Z467X.js} +2 -2
  44. package/dist/{chunk-EB3V7PJC.js → chunk-4OH6FGAO.js} +13 -13
  45. package/dist/{chunk-EA2C5Z7V.js → chunk-5C4LXMSK.js} +26 -26
  46. package/dist/{chunk-YSD4MK5Q.js → chunk-5HP6LVWU.js} +2 -2
  47. package/dist/{chunk-OM4VYQPH.js → chunk-6EXRODDF.js} +2 -2
  48. package/dist/{chunk-2L5FSNPC.js → chunk-6F5WBXE2.js} +4 -4
  49. package/dist/{chunk-DZPX5WSG.js → chunk-6JYTP3JP.js} +3 -3
  50. package/dist/{chunk-RFYKLES2.js → chunk-6KQLDPKA.js} +2 -2
  51. package/dist/{chunk-J2R275FN.js → chunk-7DXW5V2W.js} +2 -2
  52. package/dist/chunk-7O5EW7KX.js +27 -0
  53. package/dist/chunk-7O5EW7KX.js.map +1 -0
  54. package/dist/{chunk-227UFSEQ.js → chunk-7RZJWZ46.js} +5 -5
  55. package/dist/{chunk-ATS6H6AC.js → chunk-7TCISOAJ.js} +210 -47
  56. package/dist/chunk-7TCISOAJ.js.map +1 -0
  57. package/dist/{chunk-3KURGLO7.js → chunk-7VA7PARC.js} +2 -2
  58. package/dist/{chunk-TOUZM2RQ.js → chunk-AJFKQJQK.js} +2 -2
  59. package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
  60. package/dist/{chunk-WZBDOI2C.js → chunk-C5FRCM4B.js} +2 -2
  61. package/dist/{chunk-PRCJDCDD.js → chunk-CGFDT752.js} +4 -4
  62. package/dist/{chunk-V63BBOFS.js → chunk-DD2BKHSD.js} +2 -2
  63. package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
  64. package/dist/{chunk-WJTB4SF5.js → chunk-EAG7YMIS.js} +2 -2
  65. package/dist/{chunk-DA2XDNS5.js → chunk-EJF6AV2U.js} +7 -7
  66. package/dist/{chunk-3HEYRDNF.js → chunk-EJJ57PTY.js} +2 -2
  67. package/dist/{chunk-YHSZTMM3.js → chunk-EVLHZ6F3.js} +2 -2
  68. package/dist/{chunk-35J5ABJC.js → chunk-FGV7V2N4.js} +2 -2
  69. package/dist/{chunk-6AYPXHOF.js → chunk-GM35IHF7.js} +2 -2
  70. package/dist/{chunk-MU4FAKGV.js → chunk-HDEQRI2O.js} +2 -2
  71. package/dist/{chunk-PBSZQBFM.js → chunk-IFHT77WK.js} +2 -2
  72. package/dist/{chunk-OZFHE6FY.js → chunk-IHFN3JTR.js} +3 -3
  73. package/dist/{chunk-LXMYIJOO.js → chunk-ISDSX7GW.js} +1 -1
  74. package/dist/{chunk-EZPBQVGZ.js → chunk-JJAOVJ3E.js} +5 -5
  75. package/dist/{chunk-76X3F4WV.js → chunk-LGVIKA7O.js} +6 -6
  76. package/dist/{chunk-7DQQYJKU.js → chunk-MDQXW235.js} +2 -2
  77. package/dist/{chunk-ASDK4GEV.js → chunk-MOUCCUET.js} +2 -2
  78. package/dist/{chunk-DT7LKLET.js → chunk-MVH7YAWY.js} +2 -2
  79. package/dist/{chunk-GH477IGR.js → chunk-NAB4MKTJ.js} +3 -3
  80. package/dist/{chunk-FGORNFTZ.js → chunk-NM5EOKN7.js} +2 -2
  81. package/dist/{chunk-LXBVTRBG.js → chunk-OUAK37ID.js} +2 -2
  82. package/dist/{chunk-HCERYDRI.js → chunk-PGD3DXZP.js} +2 -2
  83. package/dist/{chunk-6CT4HSVJ.js → chunk-PY5E3UOD.js} +2 -2
  84. package/dist/{chunk-HBOQO4GB.js → chunk-QDBG45NK.js} +7 -7
  85. package/dist/{chunk-EJCKJS4X.js → chunk-R3YVNAJB.js} +2 -2
  86. package/dist/{chunk-XVI2TR26.js → chunk-R4FPBSFD.js} +2 -2
  87. package/dist/{chunk-VVE5SLO5.js → chunk-SKVSBTFQ.js} +2 -2
  88. package/dist/{chunk-S7363OIV.js → chunk-SZ3SRRYZ.js} +2 -2
  89. package/dist/{chunk-WRPRUMUI.js → chunk-SZZGVXKC.js} +2 -2
  90. package/dist/{chunk-TFN3PPYO.js → chunk-TGDFKC7X.js} +2 -2
  91. package/dist/{chunk-7SL6EJLT.js → chunk-TP3N5364.js} +2 -2
  92. package/dist/{chunk-IPLYGWQF.js → chunk-VDX2J7OX.js} +6 -6
  93. package/dist/{chunk-VJERIMIX.js → chunk-W6V2XVUO.js} +3 -3
  94. package/dist/{chunk-5FBA6UXN.js → chunk-WTWHORVW.js} +7 -7
  95. package/dist/{chunk-UFY4G6EC.js → chunk-XOGYSWQZ.js} +10 -10
  96. package/dist/{chunk-J6SWAE74.js → chunk-YERBUSU2.js} +2 -2
  97. package/dist/{chunk-D65XGENZ.js → chunk-YPNTBYEV.js} +3 -3
  98. package/dist/{chunk-FNNWK7G7.js → chunk-ZET6A3OF.js} +2 -2
  99. package/dist/{cli-CFpMhqz5.d.ts → cli-Bvy4jdBu.d.ts} +1 -1
  100. package/dist/cli.d.ts +2 -2
  101. package/dist/cli.js +51 -51
  102. package/dist/coding/export-okf-codegraph.js +8 -8
  103. package/dist/compounding/engine.js +8 -8
  104. package/dist/connectors/codex-materialize-runner.js +8 -8
  105. package/dist/connectors/index.js +8 -8
  106. package/dist/convergence-refresh.js +10 -10
  107. package/dist/conversation-index/backend.js +2 -2
  108. package/dist/corpus-watermark.js +10 -10
  109. package/dist/entity-retrieval.js +8 -8
  110. package/dist/external-wiki-access.d.ts +1 -1
  111. package/dist/external-wiki-access.js +21 -21
  112. package/dist/external-wiki-mcp-tools.d.ts +1 -1
  113. package/dist/extraction.js +8 -8
  114. package/dist/harmonic-retrieval.js +1 -1
  115. package/dist/index.d.ts +757 -681
  116. package/dist/index.js +101 -91
  117. package/dist/lcm/engine.js +2 -2
  118. package/dist/lcm/index.js +5 -5
  119. package/dist/location/index.js +10 -10
  120. package/dist/maintenance/memory-governance.js +8 -8
  121. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +8 -8
  122. package/dist/maintenance/rebuild-memory-projection.js +9 -9
  123. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  124. package/dist/memory-subject-cli.d.ts +1 -1
  125. package/dist/memory-subject.d.ts +1 -1
  126. package/dist/namespaces/migrate.js +9 -9
  127. package/dist/namespaces/search.js +6 -6
  128. package/dist/namespaces/storage.js +8 -8
  129. package/dist/operator-doctor-corpus.js +11 -11
  130. package/dist/operator-toolkit.js +16 -16
  131. package/dist/orchestration/maintenance.js +16 -16
  132. package/dist/orchestrator.js +68 -68
  133. package/dist/{public-http-C9-CHc40.d.ts → public-http-2MyshWxl.d.ts} +1 -1
  134. package/dist/recall-navigate-link.d.ts +9 -3
  135. package/dist/recall-navigate-link.js +3 -15
  136. package/dist/recall-navigate-link.js.map +1 -1
  137. package/dist/recall-navigate-traverse.d.ts +21 -0
  138. package/dist/recall-navigate-traverse.js +44 -0
  139. package/dist/recall-navigate-traverse.js.map +1 -0
  140. package/dist/schemas.d.ts +176 -176
  141. package/dist/search/factory.js +5 -5
  142. package/dist/search/index.js +9 -9
  143. package/dist/semantic-consolidation.js +9 -9
  144. package/dist/semantic-rule-promotion.js +8 -8
  145. package/dist/semantic-rule-verifier.js +8 -8
  146. package/dist/shared-context/manager.d.ts +6 -6
  147. package/dist/source-agent-qualifier.js +8 -8
  148. package/dist/standup/build.js +8 -8
  149. package/dist/storage.js +7 -7
  150. package/dist/support-passport/index.d.ts +4 -4
  151. package/dist/support-passport/index.js +23 -23
  152. package/dist/transfer/autodetect.js +1 -1
  153. package/dist/transfer/backup.js +2 -2
  154. package/dist/transfer/capsule-export.js +3 -3
  155. package/dist/transfer/capsule-import.js +2 -2
  156. package/dist/transfer/export-okf.js +9 -9
  157. package/dist/transfer/types.d.ts +78 -78
  158. package/dist/verified-recall.js +8 -8
  159. package/dist/who-knows-cli.d.ts +1 -1
  160. package/dist/who-knows-cli.js +9 -9
  161. package/dist/who-knows.d.ts +1 -1
  162. package/dist/who-knows.js +8 -8
  163. package/package.json +2 -2
  164. package/src/activity/index.ts +2 -0
  165. package/src/activity/privacy-gate-resolve.test.ts +175 -0
  166. package/src/activity/privacy-gate-resolve.ts +84 -0
  167. package/src/activity/timeline/index.ts +1 -0
  168. package/src/activity/timeline/recap-fallback.test.ts +184 -0
  169. package/src/activity/timeline/recap-fallback.ts +106 -0
  170. package/src/activity/vault-dry-run.test.ts +114 -0
  171. package/src/activity/vault-dry-run.ts +76 -0
  172. package/src/dedup/index.ts +6 -0
  173. package/src/dedup/merge-content.test.ts +116 -0
  174. package/src/dedup/merge-content.ts +40 -0
  175. package/src/recall-navigate-link.test.ts +28 -6
  176. package/src/recall-navigate-link.ts +16 -2
  177. package/src/recall-navigate-traverse.test.ts +247 -0
  178. package/src/recall-navigate-traverse.ts +73 -0
  179. package/dist/chunk-ATS6H6AC.js.map +0 -1
  180. package/dist/{access-service-DcfM0Vf0.d.ts → access-service-LbwWl05g.d.ts} +64 -64
  181. /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
  182. /package/dist/{chunk-N3VPKMU3.js.map → chunk-3X7Z467X.js.map} +0 -0
  183. /package/dist/{chunk-EB3V7PJC.js.map → chunk-4OH6FGAO.js.map} +0 -0
  184. /package/dist/{chunk-EA2C5Z7V.js.map → chunk-5C4LXMSK.js.map} +0 -0
  185. /package/dist/{chunk-YSD4MK5Q.js.map → chunk-5HP6LVWU.js.map} +0 -0
  186. /package/dist/{chunk-OM4VYQPH.js.map → chunk-6EXRODDF.js.map} +0 -0
  187. /package/dist/{chunk-2L5FSNPC.js.map → chunk-6F5WBXE2.js.map} +0 -0
  188. /package/dist/{chunk-DZPX5WSG.js.map → chunk-6JYTP3JP.js.map} +0 -0
  189. /package/dist/{chunk-RFYKLES2.js.map → chunk-6KQLDPKA.js.map} +0 -0
  190. /package/dist/{chunk-J2R275FN.js.map → chunk-7DXW5V2W.js.map} +0 -0
  191. /package/dist/{chunk-227UFSEQ.js.map → chunk-7RZJWZ46.js.map} +0 -0
  192. /package/dist/{chunk-3KURGLO7.js.map → chunk-7VA7PARC.js.map} +0 -0
  193. /package/dist/{chunk-TOUZM2RQ.js.map → chunk-AJFKQJQK.js.map} +0 -0
  194. /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
  195. /package/dist/{chunk-WZBDOI2C.js.map → chunk-C5FRCM4B.js.map} +0 -0
  196. /package/dist/{chunk-PRCJDCDD.js.map → chunk-CGFDT752.js.map} +0 -0
  197. /package/dist/{chunk-V63BBOFS.js.map → chunk-DD2BKHSD.js.map} +0 -0
  198. /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
  199. /package/dist/{chunk-WJTB4SF5.js.map → chunk-EAG7YMIS.js.map} +0 -0
  200. /package/dist/{chunk-DA2XDNS5.js.map → chunk-EJF6AV2U.js.map} +0 -0
  201. /package/dist/{chunk-3HEYRDNF.js.map → chunk-EJJ57PTY.js.map} +0 -0
  202. /package/dist/{chunk-YHSZTMM3.js.map → chunk-EVLHZ6F3.js.map} +0 -0
  203. /package/dist/{chunk-35J5ABJC.js.map → chunk-FGV7V2N4.js.map} +0 -0
  204. /package/dist/{chunk-6AYPXHOF.js.map → chunk-GM35IHF7.js.map} +0 -0
  205. /package/dist/{chunk-MU4FAKGV.js.map → chunk-HDEQRI2O.js.map} +0 -0
  206. /package/dist/{chunk-PBSZQBFM.js.map → chunk-IFHT77WK.js.map} +0 -0
  207. /package/dist/{chunk-OZFHE6FY.js.map → chunk-IHFN3JTR.js.map} +0 -0
  208. /package/dist/{chunk-LXMYIJOO.js.map → chunk-ISDSX7GW.js.map} +0 -0
  209. /package/dist/{chunk-EZPBQVGZ.js.map → chunk-JJAOVJ3E.js.map} +0 -0
  210. /package/dist/{chunk-76X3F4WV.js.map → chunk-LGVIKA7O.js.map} +0 -0
  211. /package/dist/{chunk-7DQQYJKU.js.map → chunk-MDQXW235.js.map} +0 -0
  212. /package/dist/{chunk-ASDK4GEV.js.map → chunk-MOUCCUET.js.map} +0 -0
  213. /package/dist/{chunk-DT7LKLET.js.map → chunk-MVH7YAWY.js.map} +0 -0
  214. /package/dist/{chunk-GH477IGR.js.map → chunk-NAB4MKTJ.js.map} +0 -0
  215. /package/dist/{chunk-FGORNFTZ.js.map → chunk-NM5EOKN7.js.map} +0 -0
  216. /package/dist/{chunk-LXBVTRBG.js.map → chunk-OUAK37ID.js.map} +0 -0
  217. /package/dist/{chunk-HCERYDRI.js.map → chunk-PGD3DXZP.js.map} +0 -0
  218. /package/dist/{chunk-6CT4HSVJ.js.map → chunk-PY5E3UOD.js.map} +0 -0
  219. /package/dist/{chunk-HBOQO4GB.js.map → chunk-QDBG45NK.js.map} +0 -0
  220. /package/dist/{chunk-EJCKJS4X.js.map → chunk-R3YVNAJB.js.map} +0 -0
  221. /package/dist/{chunk-XVI2TR26.js.map → chunk-R4FPBSFD.js.map} +0 -0
  222. /package/dist/{chunk-VVE5SLO5.js.map → chunk-SKVSBTFQ.js.map} +0 -0
  223. /package/dist/{chunk-S7363OIV.js.map → chunk-SZ3SRRYZ.js.map} +0 -0
  224. /package/dist/{chunk-WRPRUMUI.js.map → chunk-SZZGVXKC.js.map} +0 -0
  225. /package/dist/{chunk-TFN3PPYO.js.map → chunk-TGDFKC7X.js.map} +0 -0
  226. /package/dist/{chunk-7SL6EJLT.js.map → chunk-TP3N5364.js.map} +0 -0
  227. /package/dist/{chunk-IPLYGWQF.js.map → chunk-VDX2J7OX.js.map} +0 -0
  228. /package/dist/{chunk-VJERIMIX.js.map → chunk-W6V2XVUO.js.map} +0 -0
  229. /package/dist/{chunk-5FBA6UXN.js.map → chunk-WTWHORVW.js.map} +0 -0
  230. /package/dist/{chunk-UFY4G6EC.js.map → chunk-XOGYSWQZ.js.map} +0 -0
  231. /package/dist/{chunk-J6SWAE74.js.map → chunk-YERBUSU2.js.map} +0 -0
  232. /package/dist/{chunk-D65XGENZ.js.map → chunk-YPNTBYEV.js.map} +0 -0
  233. /package/dist/{chunk-FNNWK7G7.js.map → chunk-ZET6A3OF.js.map} +0 -0
@@ -0,0 +1,27 @@
1
+ // src/recall-navigate-link.ts
2
+ var NAVIGATE_LINK_TYPES = [
3
+ "supports",
4
+ "contradicts",
5
+ "elaborates",
6
+ "causes",
7
+ "caused_by",
8
+ // Persisted MemoryLinkType values (types.ts) that real frontmatter carries.
9
+ "follows",
10
+ "references",
11
+ "related",
12
+ // The stepper's own navigation contract (recall-navigate.ts) accepts
13
+ // supersedes; omitting it here would reject a relation that surface is
14
+ // prepared to handle.
15
+ "supersedes"
16
+ ];
17
+ function parseNavigateLinkType(value) {
18
+ if (NAVIGATE_LINK_TYPES.includes(value)) {
19
+ return { ok: true, type: value };
20
+ }
21
+ return { ok: false, error: "unknown_link" };
22
+ }
23
+
24
+ export {
25
+ parseNavigateLinkType
26
+ };
27
+ //# sourceMappingURL=chunk-7O5EW7KX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/recall-navigate-link.ts"],"sourcesContent":["/**\n * Recall navigation link-type parse (issue #1956).\n *\n * One allow-list covering BOTH vocabularies a traversal can meet:\n * the navigation set this module originally defined and the persisted\n * `MemoryLinkType` values (`follows | references | related`) that real\n * memory frontmatter carries. Review found the narrower list silently\n * dropped every persisted `follows`/`references`/`related` edge and\n * rejected `relation: \"related\"` as unknown — a traversal over actual\n * stored links would lose valid neighbors. Surfaces wait.\n */\n\nconst NAVIGATE_LINK_TYPES = [\n \"supports\",\n \"contradicts\",\n \"elaborates\",\n \"causes\",\n \"caused_by\",\n // Persisted MemoryLinkType values (types.ts) that real frontmatter carries.\n \"follows\",\n \"references\",\n \"related\",\n // The stepper's own navigation contract (recall-navigate.ts) accepts\n // supersedes; omitting it here would reject a relation that surface is\n // prepared to handle.\n \"supersedes\",\n] as const;\n\nexport type NavigateLinkType = (typeof NAVIGATE_LINK_TYPES)[number];\n\nexport type ParseNavigateLinkTypeResult =\n | { ok: true; type: NavigateLinkType }\n | { ok: false; error: \"unknown_link\" };\n\nexport function parseNavigateLinkType(value: string): ParseNavigateLinkTypeResult {\n if ((NAVIGATE_LINK_TYPES as readonly string[]).includes(value)) {\n return { ok: true, type: value as NavigateLinkType };\n }\n return { ok: false, error: \"unknown_link\" };\n}\n"],"mappings":";AAYA,IAAM,sBAAsB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAIA;AACF;AAQO,SAAS,sBAAsB,OAA4C;AAChF,MAAK,oBAA0C,SAAS,KAAK,GAAG;AAC9D,WAAO,EAAE,IAAI,MAAM,MAAM,MAA0B;AAAA,EACrD;AACA,SAAO,EAAE,IAAI,OAAO,OAAO,eAAe;AAC5C;","names":[]}
@@ -1,3 +1,7 @@
1
+ import {
2
+ searchConversationIndex,
3
+ searchConversationIndexFaissFailOpen
4
+ } from "./chunk-A7Q43EUZ.js";
1
5
  import {
2
6
  failOpenFaissHealth
3
7
  } from "./chunk-ET356KSB.js";
@@ -5,10 +9,6 @@ import {
5
9
  rebuildConversationChunksFailOpen,
6
10
  upsertConversationChunksFailOpen
7
11
  } from "./chunk-72A4L5JJ.js";
8
- import {
9
- searchConversationIndex,
10
- searchConversationIndexFaissFailOpen
11
- } from "./chunk-A7Q43EUZ.js";
12
12
 
13
13
  // src/conversation-index/backend.ts
14
14
  function createConversationIndexBackend(options) {
@@ -235,4 +235,4 @@ function createFaissBackend(getFaiss) {
235
235
  export {
236
236
  createConversationIndexBackend
237
237
  };
238
- //# sourceMappingURL=chunk-227UFSEQ.js.map
238
+ //# sourceMappingURL=chunk-7RZJWZ46.js.map
@@ -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-EJF6AV2U.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-5C4LXMSK.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-QDBG45NK.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";
@@ -330,7 +330,7 @@ import {
330
330
  } from "./chunk-QW27DOHG.js";
331
331
  import {
332
332
  MeetingsInputError
333
- } from "./chunk-EB3V7PJC.js";
333
+ } from "./chunk-4OH6FGAO.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-S7363OIV.js";
347
+ } from "./chunk-SZ3SRRYZ.js";
348
348
  import {
349
349
  RecallResultFormatter,
350
350
  SessionContextCoordinator,
@@ -356,10 +356,10 @@ import {
356
356
  isTopLevelArchivePath,
357
357
  journalPath,
358
358
  writeJournalFile
359
- } from "./chunk-UFY4G6EC.js";
359
+ } from "./chunk-XOGYSWQZ.js";
360
360
  import {
361
361
  importCapsule
362
- } from "./chunk-J2R275FN.js";
362
+ } from "./chunk-7DXW5V2W.js";
363
363
  import {
364
364
  isCodingGraphInstalled
365
365
  } from "./chunk-VQ7B2Q6M.js";
@@ -410,13 +410,13 @@ import {
410
410
  } from "./chunk-7ZNJN5WZ.js";
411
411
  import {
412
412
  NamespaceStorageRouter
413
- } from "./chunk-3HEYRDNF.js";
413
+ } from "./chunk-EJJ57PTY.js";
414
414
  import {
415
415
  GraphIndex
416
416
  } from "./chunk-BIJAWZYW.js";
417
417
  import {
418
418
  buildChainFollowupGenerator
419
- } from "./chunk-DT7LKLET.js";
419
+ } from "./chunk-MVH7YAWY.js";
420
420
  import {
421
421
  QmdResultResolver,
422
422
  StorageManager,
@@ -435,7 +435,7 @@ import {
435
435
  reconstructFusionInputs,
436
436
  selfDeps,
437
437
  serializeFusionDay
438
- } from "./chunk-PBSZQBFM.js";
438
+ } from "./chunk-IFHT77WK.js";
439
439
  import {
440
440
  bodyIsEscaped,
441
441
  decodeTranscriptBody,
@@ -452,12 +452,12 @@ import {
452
452
  import {
453
453
  NamespaceSearchRouter,
454
454
  namespaceCollectionName
455
- } from "./chunk-FNNWK7G7.js";
455
+ } from "./chunk-ZET6A3OF.js";
456
456
  import {
457
457
  createConversationIndexRuntime,
458
458
  createSearchBackend,
459
459
  isSearchBackendEnabled
460
- } from "./chunk-EZPBQVGZ.js";
460
+ } from "./chunk-JJAOVJ3E.js";
461
461
  import {
462
462
  NoopSearchBackend
463
463
  } from "./chunk-CYEPCZN5.js";
@@ -27496,6 +27496,55 @@ function buildAnalysisRunMetadata(input) {
27496
27496
  return { provider, model, promptVersion, observationCount };
27497
27497
  }
27498
27498
 
27499
+ // src/activity/timeline/recap-fallback.ts
27500
+ var RECAP_SOURCE_KINDS = ["ai", "deterministic", "previous"];
27501
+ var SLOT_ORDER = [
27502
+ "ai",
27503
+ "previous",
27504
+ "deterministic"
27505
+ ];
27506
+ function isRecapSourceKind(value) {
27507
+ return typeof value === "string" && RECAP_SOURCE_KINDS.includes(value);
27508
+ }
27509
+ function selectRecapForDay(input) {
27510
+ let failure;
27511
+ if (input.failure !== void 0 && input.failure !== null) {
27512
+ if (!isAnalysisFailureKind(input.failure)) {
27513
+ throw new TypeError(
27514
+ `unknown recap failure kind; expected one of the analysis failure kinds, got a non-allow-listed value`
27515
+ );
27516
+ }
27517
+ failure = input.failure;
27518
+ }
27519
+ for (const slot of SLOT_ORDER) {
27520
+ const candidate = input[slot];
27521
+ if (candidate == null) continue;
27522
+ const kind = candidate.kind;
27523
+ if (!isRecapSourceKind(kind)) {
27524
+ throw new TypeError(
27525
+ `unknown recap source kind: ${String(kind)}; allowed kinds: ${RECAP_SOURCE_KINDS.join(", ")}`
27526
+ );
27527
+ }
27528
+ if (kind !== slot) {
27529
+ throw new TypeError(
27530
+ `recap candidate passed as "${slot}" has kind "${kind}"; kind must match its slot`
27531
+ );
27532
+ }
27533
+ if (typeof candidate.body !== "string") {
27534
+ throw new TypeError(
27535
+ `recap candidate body for slot "${slot}" must be a string`
27536
+ );
27537
+ }
27538
+ }
27539
+ for (const slot of SLOT_ORDER) {
27540
+ const candidate = input[slot];
27541
+ if (candidate == null) continue;
27542
+ if (candidate.body.trim() === "") continue;
27543
+ return failure === void 0 ? { ok: true, body: candidate.body, kind: candidate.kind } : { ok: true, body: candidate.body, kind: candidate.kind, failure };
27544
+ }
27545
+ return failure === void 0 ? { ok: false, error: "no_recap_available" } : { ok: false, error: "no_recap_available", failure };
27546
+ }
27547
+
27499
27548
  // src/activity/journal-vault-read.ts
27500
27549
  var REMNIC_OPEN = "<!-- remnic:";
27501
27550
  function readVaultJournal(input) {
@@ -28200,6 +28249,73 @@ function buildActivityHealth(input) {
28200
28249
  };
28201
28250
  }
28202
28251
 
28252
+ // src/activity/privacy-enabled.ts
28253
+ var ENABLED_TOKENS = {
28254
+ true: true,
28255
+ "1": true,
28256
+ yes: true,
28257
+ on: true,
28258
+ false: false,
28259
+ "0": false,
28260
+ no: false,
28261
+ off: false
28262
+ };
28263
+ function parsePrivacyEnabled(value) {
28264
+ if (typeof value === "boolean") return { ok: true, enabled: value };
28265
+ if (typeof value === "string") {
28266
+ const token = value.trim().toLowerCase();
28267
+ if (Object.hasOwn(ENABLED_TOKENS, token)) {
28268
+ return { ok: true, enabled: ENABLED_TOKENS[token] };
28269
+ }
28270
+ }
28271
+ return { ok: false, error: "invalid_enabled" };
28272
+ }
28273
+
28274
+ // src/activity/privacy-gate-resolve.ts
28275
+ var ACTIVITY_FEATURE_GATES = Object.freeze([
28276
+ "analysis",
28277
+ "journal",
28278
+ "weekly",
28279
+ "export",
28280
+ "memoryCreation"
28281
+ ]);
28282
+ function parseGateValue(key, value) {
28283
+ const parsed = parsePrivacyEnabled(value);
28284
+ if (!parsed.ok) {
28285
+ throw new TypeError(
28286
+ `invalid value for activity gate "${key}": ${JSON.stringify(value)} is not a boolean or known token`
28287
+ );
28288
+ }
28289
+ return parsed.enabled;
28290
+ }
28291
+ function resolveActivityGates(input) {
28292
+ const rawGates = input.gates;
28293
+ if (rawGates !== void 0 && (typeof rawGates !== "object" || rawGates === null || Array.isArray(rawGates))) {
28294
+ throw new TypeError("activity gates must be an object");
28295
+ }
28296
+ if (rawGates) {
28297
+ for (const key of Object.getOwnPropertyNames(rawGates)) {
28298
+ if (!ACTIVITY_FEATURE_GATES.includes(key)) {
28299
+ throw new TypeError(
28300
+ `unknown activity gate "${key}"; allowed gates: ${ACTIVITY_FEATURE_GATES.join(", ")}`
28301
+ );
28302
+ }
28303
+ }
28304
+ }
28305
+ const master = input.enabled === void 0 ? false : parseGateValue("enabled", input.enabled);
28306
+ const result = {};
28307
+ for (const gate of ACTIVITY_FEATURE_GATES) {
28308
+ const present = rawGates !== void 0 && Object.hasOwn(rawGates, gate);
28309
+ result[gate] = present ? parseGateValue(gate, rawGates[gate]) : false;
28310
+ }
28311
+ if (!master) {
28312
+ for (const gate of ACTIVITY_FEATURE_GATES) {
28313
+ result[gate] = false;
28314
+ }
28315
+ }
28316
+ return Object.freeze(result);
28317
+ }
28318
+
28203
28319
  // src/activity/privacy-window.ts
28204
28320
  function filterPrivacyWindow(items, options) {
28205
28321
  const { fromMs, toMs, retainDays } = options;
@@ -28601,6 +28717,48 @@ function joinVaultSegments(parts) {
28601
28717
  return parts.join("/");
28602
28718
  }
28603
28719
 
28720
+ // src/activity/vault-dry-run.ts
28721
+ function planVaultDryRun(inputs) {
28722
+ const results = [];
28723
+ for (const input of inputs) {
28724
+ if (typeof input !== "object" || input === null) {
28725
+ throw new TypeError(`vault dry-run inputs must be objects (got ${typeof input})`);
28726
+ }
28727
+ if (typeof input.path !== "string" || input.path.trim() === "") {
28728
+ throw new RangeError(`vault dry-run input requires a non-blank path (got ${JSON.stringify(input.path)})`);
28729
+ }
28730
+ for (const field of ["currentText", "nextText"]) {
28731
+ const value = input[field];
28732
+ if (value !== null && typeof value !== "string") {
28733
+ throw new TypeError(
28734
+ `vault dry-run input ${field} must be a string or null (got ${typeof value})`
28735
+ );
28736
+ }
28737
+ }
28738
+ if (input.nextText === null) {
28739
+ if (typeof input.skipReason !== "string" || input.skipReason.trim() === "") {
28740
+ throw new TypeError(
28741
+ `vault dry-run skip (nextText null) requires a non-blank skipReason (got ${JSON.stringify(input.skipReason)})`
28742
+ );
28743
+ }
28744
+ results.push({ path: input.path, outcome: "skipped", reason: input.skipReason });
28745
+ continue;
28746
+ }
28747
+ if (input.skipReason !== void 0) {
28748
+ throw new TypeError(
28749
+ `vault dry-run skipReason is only valid when nextText is null (path ${JSON.stringify(input.path)})`
28750
+ );
28751
+ }
28752
+ if (input.currentText === null) {
28753
+ results.push({ path: input.path, outcome: "skipped", reason: "missing_file" });
28754
+ continue;
28755
+ }
28756
+ const outcome = input.currentText === input.nextText ? "unchanged" : "updated";
28757
+ results.push({ path: input.path, outcome });
28758
+ }
28759
+ return summarizeVaultPublish(results);
28760
+ }
28761
+
28604
28762
  // src/session-summaries/index.ts
28605
28763
  import { createHash as createHash11 } from "crypto";
28606
28764
  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,6 +29847,8 @@ export {
29689
29847
  mergeRecapUserEdits,
29690
29848
  ANALYSIS_METADATA_MAX_FIELD_LENGTH,
29691
29849
  buildAnalysisRunMetadata,
29850
+ RECAP_SOURCE_KINDS,
29851
+ selectRecapForDay,
29692
29852
  readVaultJournal,
29693
29853
  VAULT_JOURNAL_PREREQUISITES,
29694
29854
  checkVaultJournalPrerequisites,
@@ -29703,6 +29863,8 @@ export {
29703
29863
  planActivityDeletion,
29704
29864
  ACTIVITY_ANALYSIS_STATUSES,
29705
29865
  buildActivityHealth,
29866
+ ACTIVITY_FEATURE_GATES,
29867
+ resolveActivityGates,
29706
29868
  filterPrivacyWindow,
29707
29869
  resolveVaultNotePath,
29708
29870
  applyManagedRegion,
@@ -29715,6 +29877,7 @@ export {
29715
29877
  validateRegionName,
29716
29878
  stripVaultMdSuffix,
29717
29879
  joinVaultSegments,
29880
+ planVaultDryRun,
29718
29881
  fuseMeeting,
29719
29882
  buildMeetingRecordsForDay,
29720
29883
  MeetingsBuilder,
@@ -29748,4 +29911,4 @@ export {
29748
29911
  blendGraphExpandedRecallScore,
29749
29912
  Orchestrator
29750
29913
  };
29751
- //# sourceMappingURL=chunk-ATS6H6AC.js.map
29914
+ //# sourceMappingURL=chunk-7TCISOAJ.js.map