braian 0.0.5 → 0.0.7

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 (681) hide show
  1. package/bin/braian.mjs +2 -0
  2. package/bin/node-version.mjs +72 -0
  3. package/dist/agent/graph-agent.service.js +43 -0
  4. package/dist/app.module.js +2 -0
  5. package/dist/auth/auth.controller.js +2 -2
  6. package/dist/auth/auth.guard.js +34 -5
  7. package/dist/auth/auth.module.js +13 -2
  8. package/dist/auth/auth.service.js +8 -2
  9. package/dist/auth/link-route-policies.js +267 -0
  10. package/dist/auth/link-route-policy.js +27 -0
  11. package/dist/auth/vault-access-denied.filter.js +30 -0
  12. package/dist/auth/vault-access.interceptor.js +45 -0
  13. package/dist/auth/vault-link-principal.js +15 -0
  14. package/dist/auth/vault-link-sessions.service.js +186 -0
  15. package/dist/bootstrap.js +6 -1
  16. package/dist/collab/collab.service.js +12 -2
  17. package/dist/desktop/exposure.js +7 -1
  18. package/dist/entity/entity.controller.js +9 -1
  19. package/dist/events/vault-events.service.js +17 -4
  20. package/dist/files/dto/vault-files.dto.js +113 -6
  21. package/dist/files/file-url-signer.js +37 -11
  22. package/dist/files/files-http-error.js +1 -1
  23. package/dist/files/vault-file-archive.service.js +19 -4
  24. package/dist/files/vault-file-content.controller.js +29 -1
  25. package/dist/files/vault-file-content.service.js +18 -2
  26. package/dist/http/api-controllers.js +6 -0
  27. package/dist/http/log-redaction.js +23 -0
  28. package/dist/http/published-page-address.js +58 -0
  29. package/dist/http/request-guards.js +51 -1
  30. package/dist/http/security-headers.js +2 -1
  31. package/dist/journal/active-journal.dto.js +4 -3
  32. package/dist/logging/logging.middleware.js +3 -3
  33. package/dist/navigation/navigation.service.js +16 -1
  34. package/dist/providers/claude-messages-model.js +2 -2
  35. package/dist/providers/model-provider.service.js +71 -8
  36. package/dist/providers/provider-catalog-storage.js +4 -3
  37. package/dist/providers/provider-model-catalog.js +46 -0
  38. package/dist/providers/provider.controller.js +83 -0
  39. package/dist/rss/rss-profiles.dto.js +4 -3
  40. package/dist/search/search-database.service.js +40 -24
  41. package/dist/search/search-embedding-settings.controller.js +82 -0
  42. package/dist/search/search-embedding.service.js +33 -28
  43. package/dist/search/search-index-health.js +1 -1
  44. package/dist/search/search-sync.service.js +8 -0
  45. package/dist/search/search.controller.js +34 -54
  46. package/dist/search/search.module.js +3 -3
  47. package/dist/sessions/agent-runs.controller.js +3 -3
  48. package/dist/sessions/dto/graph-session.dto.js +6 -5
  49. package/dist/sessions/sessions.service.js +33 -1
  50. package/dist/settings/settings.controller.js +11 -0
  51. package/dist/settings/settings.dto.js +29 -24
  52. package/dist/settings/settings.service.js +6 -0
  53. package/dist/shares/share-http-error.js +2 -2
  54. package/dist/shares/share.dto.js +74 -16
  55. package/dist/shares/shared-webpage-headers.js +45 -0
  56. package/dist/shares/shared-webpage.controller.js +179 -0
  57. package/dist/shares/shares.controller.js +3 -3
  58. package/dist/shares/shares.module.js +2 -1
  59. package/dist/shares/shares.service.js +11 -4
  60. package/dist/sqlite-files/vault-sqlite.service.js +1 -0
  61. package/dist/vault-access/vault-access.controller.js +73 -0
  62. package/dist/vault-access/vault-access.dto.js +28 -0
  63. package/dist/vault-access/vault-access.module.js +19 -0
  64. package/dist/vault-access/vault-access.service.js +49 -0
  65. package/dist/vaults/vault.controller.js +20 -0
  66. package/dist/vaults/vault.dto.js +114 -50
  67. package/dist/vaults/vaults.service.js +30 -2
  68. package/dist/versioning/versioning.service.js +47 -8
  69. package/node_modules/@braian/ai-providers/dist/index.js +10 -3
  70. package/node_modules/@braian/ai-providers/dist/openrouter-catalog.js +57 -0
  71. package/node_modules/@braian/ai-providers/dist/provider-catalog.js +47 -2
  72. package/node_modules/@braian/ai-providers/dist/providers-models.js +27 -7
  73. package/node_modules/@braian/graph-agent/assets/agent-instructions/default/26-schema.md +1 -1
  74. package/node_modules/@braian/graph-agent/dist/agent-features.js +1 -1
  75. package/node_modules/@braian/graph-agent/dist/agent-profiles/registry.js +9 -0
  76. package/node_modules/@braian/graph-agent/dist/agent-runs/run-registry.js +1 -1
  77. package/node_modules/@braian/graph-agent/dist/auth-registry.js +29 -0
  78. package/node_modules/@braian/graph-agent/dist/boards/boards-settings.js +20 -0
  79. package/node_modules/@braian/graph-agent/dist/boards/index.js +5 -0
  80. package/node_modules/@braian/graph-agent/dist/data-workspace.js +127 -14
  81. package/node_modules/@braian/graph-agent/dist/feature-switch.js +6 -2
  82. package/node_modules/@braian/graph-agent/dist/files-settings.js +10 -2
  83. package/node_modules/@braian/graph-agent/dist/ide/ide-settings.js +58 -0
  84. package/node_modules/@braian/graph-agent/dist/ide/index.js +6 -0
  85. package/node_modules/@braian/graph-agent/dist/ide-layout.js +1 -1
  86. package/node_modules/@braian/graph-agent/dist/index.js +30 -13
  87. package/node_modules/@braian/graph-agent/dist/journal-reflection.js +2 -1
  88. package/node_modules/@braian/graph-agent/dist/locked-graph-store.js +11 -2
  89. package/node_modules/@braian/graph-agent/dist/mentioned-notes-input.js +1 -1
  90. package/node_modules/@braian/graph-agent/dist/navigation-settings.js +20 -14
  91. package/node_modules/@braian/graph-agent/dist/note-collab-policy.js +4 -1
  92. package/node_modules/@braian/graph-agent/dist/note-collab-projection.js +4 -3
  93. package/node_modules/@braian/graph-agent/dist/note-collab-registry.js +12 -9
  94. package/node_modules/@braian/graph-agent/dist/note-collab-session.js +2 -1
  95. package/node_modules/@braian/graph-agent/dist/note-editor/index.js +13 -0
  96. package/node_modules/@braian/graph-agent/dist/note-editor/note-editor-settings.js +98 -0
  97. package/node_modules/@braian/graph-agent/dist/note-key-settings.js +34 -2
  98. package/node_modules/@braian/graph-agent/dist/rss/index.js +3 -1
  99. package/node_modules/@braian/graph-agent/dist/rss/rss-feed-parse.js +18 -1
  100. package/node_modules/@braian/graph-agent/dist/rss/rss-profile-store.js +9 -0
  101. package/node_modules/@braian/graph-agent/dist/rss/rss-profile-use-cases.js +2 -0
  102. package/node_modules/@braian/graph-agent/dist/rss/rss-settings.js +15 -0
  103. package/node_modules/@braian/graph-agent/dist/screen-context-input.js +1 -1
  104. package/node_modules/@braian/graph-agent/dist/secret-masking.js +54 -15
  105. package/node_modules/@braian/graph-agent/dist/secret-vault.js +48 -3
  106. package/node_modules/@braian/graph-agent/dist/session-registry.js +3 -2
  107. package/node_modules/@braian/graph-agent/dist/settings-registry.js +21 -178
  108. package/node_modules/@braian/graph-agent/dist/settings-reset/index.js +9 -0
  109. package/node_modules/@braian/graph-agent/dist/settings-reset/settings-reset.js +85 -0
  110. package/node_modules/@braian/graph-agent/dist/share-edit-references.js +15 -14
  111. package/node_modules/@braian/graph-agent/dist/share-policy.js +86 -21
  112. package/node_modules/@braian/graph-agent/dist/share-registry.js +18 -11
  113. package/node_modules/@braian/graph-agent/dist/share-target-description.js +6 -0
  114. package/node_modules/@braian/graph-agent/dist/share-use-cases.js +99 -3
  115. package/node_modules/@braian/graph-agent/dist/share-webpage-links.js +40 -0
  116. package/node_modules/@braian/graph-agent/dist/shared-dashboard-view.js +2 -1
  117. package/node_modules/@braian/graph-agent/dist/spotlight-settings.js +2 -15
  118. package/node_modules/@braian/graph-agent/dist/standalone-pages.js +111 -0
  119. package/node_modules/@braian/graph-agent/dist/tools.js +4 -2
  120. package/node_modules/@braian/graph-agent/dist/types.js +7 -0
  121. package/node_modules/@braian/graph-agent/dist/vault-access/index.js +36 -0
  122. package/node_modules/@braian/graph-agent/dist/vault-access/vault-access-policy.js +127 -0
  123. package/node_modules/@braian/graph-agent/dist/vault-access/vault-access-scope.js +60 -0
  124. package/node_modules/@braian/graph-agent/dist/vault-access/vault-link-features.js +48 -0
  125. package/node_modules/@braian/graph-agent/dist/vault-access/vault-link-grant.js +47 -0
  126. package/node_modules/@braian/graph-agent/dist/vault-access/vault-settings-access.js +44 -0
  127. package/node_modules/@braian/graph-agent/dist/vault-files.js +73 -14
  128. package/node_modules/@braian/graph-agent/dist/vault-settings-operations.js +41 -12
  129. package/node_modules/@braian/graph-agent/dist/vault-settings-registry.js +111 -20
  130. package/node_modules/@braian/html-standalone/dist/css.js +44 -0
  131. package/node_modules/@braian/html-standalone/dist/data-uri.js +48 -0
  132. package/node_modules/@braian/html-standalone/dist/html.js +118 -0
  133. package/node_modules/@braian/html-standalone/dist/index.js +9 -0
  134. package/node_modules/@braian/html-standalone/dist/local-reference.js +64 -0
  135. package/node_modules/@braian/html-standalone/dist/standalone.js +143 -0
  136. package/node_modules/@braian/html-standalone/package.json +22 -0
  137. package/node_modules/@braian/sqlite-browser/dist/execute.js +47 -2
  138. package/node_modules/@braian/vault-fs-sdk/dist/fs-vault-strategy.js +23 -0
  139. package/node_modules/@braian/vault-fs-sdk/dist/index.js +5 -1
  140. package/node_modules/@braian/vault-fs-sdk/dist/vault-index.js +5 -0
  141. package/package.json +5 -2
  142. package/public/assets/{ArrowClockwise.es-DWqWLk15.js → ArrowClockwise.es-3-WDmIeI.js} +1 -1
  143. package/public/assets/{ArrowDown.es-COHGTGu_.js → ArrowDown.es--soRLxEp.js} +1 -1
  144. package/public/assets/{ArrowLeft.es-Dvz_4AVp.js → ArrowLeft.es-CbZG51Gr.js} +1 -1
  145. package/public/assets/{ArrowSquareOut.es-ssfQ7LE-.js → ArrowSquareOut.es-yh2fX_Cs.js} +1 -1
  146. package/public/assets/{ArrowUp.es-DflnZKsA.js → ArrowUp.es-CIIkDrf9.js} +1 -1
  147. package/public/assets/{ArrowsClockwise.es-DSXy5pW3.js → ArrowsClockwise.es-D0399ubU.js} +1 -1
  148. package/public/assets/{ArrowsIn.es-B4Aie-uw.js → ArrowsIn.es-B54L_O6A.js} +1 -1
  149. package/public/assets/Browser.es-BqZU_2qv.js +1 -0
  150. package/public/assets/Circle.es-j7f1_WI9.js +1 -0
  151. package/public/assets/{Clock.es-D6bs8ZLR.js → Clock.es-DkUjmG8U.js} +1 -1
  152. package/public/assets/{Copy.es-CglRiQSZ.js → Copy.es-DfOdr0jv.js} +1 -1
  153. package/public/assets/CopySimple.es-BBthx5Du.js +1 -0
  154. package/public/assets/CornersOut.es-Cd9DgMlt.js +1 -0
  155. package/public/assets/Crosshair.es-9qdLaRA1.js +1 -0
  156. package/public/assets/{Desktop.es-DVtEXtRb.js → Desktop.es-DSRSg0hy.js} +1 -1
  157. package/public/assets/{DotsSixVertical.es-B7kGbvvH.js → DotsSixVertical.es-Cg2wLxmG.js} +1 -1
  158. package/public/assets/{Eye.es-DKoV8w-8.js → Eye.es-CxGbwLRS.js} +1 -1
  159. package/public/assets/{EyeSlash.es-C_H7lJGL.js → EyeSlash.es-DfTto7s1.js} +1 -1
  160. package/public/assets/{File.es-47KQbmb4.js → File.es-D3fdUSmS.js} +1 -1
  161. package/public/assets/FloppyDisk.es-CVEXDdFf.js +1 -0
  162. package/public/assets/{Folder.es-DKrkcRQj.js → Folder.es-BUMi6qzZ.js} +1 -1
  163. package/public/assets/{FolderOpen.es-DaW9wv8-.js → FolderOpen.es-FcjULnXZ.js} +1 -1
  164. package/public/assets/{FolderPlus.es-D0scempH.js → FolderPlus.es-Deuvtys5.js} +1 -1
  165. package/public/assets/GearSix.es-CWRB8Up2.js +1 -0
  166. package/public/assets/List.es-C0rMRBfB.js +1 -0
  167. package/public/assets/{ListBullets.es-DGeupXZ3.js → ListBullets.es-B7JvZb2M.js} +1 -1
  168. package/public/assets/{LockSimple.es-DiQO6y_F.js → LockSimple.es-D5Ul9U6c.js} +1 -1
  169. package/public/assets/LockSimpleOpen.es-C2JGRKEE.js +1 -0
  170. package/public/assets/{MagnifyingGlass.es-CHks7m9E.js → MagnifyingGlass.es-BPnvTl_3.js} +1 -1
  171. package/public/assets/{Microphone.es-CQat-MJ8.js → Microphone.es-BXBLW9YD.js} +1 -1
  172. package/public/assets/{Play.es-h1Fhb5wo.js → Play.es-BT5cMJ7L.js} +1 -1
  173. package/public/assets/{Plus.es-B-svcAlu.js → Plus.es-aakfbgmy.js} +1 -1
  174. package/public/assets/{Prohibit.es-M5ljYyQ3.js → Prohibit.es-pwiGfWLj.js} +1 -1
  175. package/public/assets/{QrCode.es-CVlyfpjq.js → QrCode.es-DCPGPGYZ.js} +1 -1
  176. package/public/assets/ShareNetwork-CTDRol5F.css +1 -0
  177. package/public/assets/ShareNetwork.es-Do0IWaE9.js +3 -0
  178. package/public/assets/SidebarSimple.es-UdNMyfL-.js +1 -0
  179. package/public/assets/{SlidersHorizontal.es-DkPz8o7o.js → SlidersHorizontal.es-957OxRrd.js} +1 -1
  180. package/public/assets/{TextAa.es-CymAJ91v.js → TextAa.es-8d8-rRe1.js} +1 -1
  181. package/public/assets/{Trash.es-B7UVM9v_.js → Trash.es-chxTwNhO.js} +1 -1
  182. package/public/assets/WarningCircle.es-CF4lQ1bU.js +1 -0
  183. package/public/assets/advanced-security-B_SegWCz.js +1 -0
  184. package/public/assets/agent-profiles-settings-DZv5BUzj.js +1 -0
  185. package/public/assets/appearance-settings-module-DlOVkZXP.js +1 -0
  186. package/public/assets/{ar-SA-G6X2FPQ2-R9ND2Rw0.js → ar-SA-G6X2FPQ2-DZP7qz6u.js} +1 -1
  187. package/public/assets/{attachment-embed-Bt5qCuKC.css → attachment-embed-CJkoG50a.css} +1 -1
  188. package/public/assets/attachment-embed-DVbcGTLJ.js +1 -0
  189. package/public/assets/attachments-settings-BuqoRFuK.js +1 -0
  190. package/public/assets/az-AZ-76LH7QW2-ByX_zd4F.js +1 -0
  191. package/public/assets/{bg-BG-XCXSNQG7-WKBfRf7q.js → bg-BG-XCXSNQG7-wxiUF1_6.js} +1 -1
  192. package/public/assets/blue-pgMgVzKw.css +1 -0
  193. package/public/assets/{bn-BD-2XOGV67Q-BmT7jnvl.js → bn-BD-2XOGV67Q-BBIhV1oq.js} +1 -1
  194. package/public/assets/{board-workspace-D9prroo0.css → board-workspace-CUeGZca9.css} +1 -1
  195. package/public/assets/board-workspace-pt2JAfWJ.js +1 -0
  196. package/public/assets/boards-settings-module-CaOcLdGN.js +1 -0
  197. package/public/assets/{boards-view-3JR36W_w.js → boards-view-DEVAYmzH.js} +1 -1
  198. package/public/assets/{ca-ES-6MX7JW3Y-CBR9ytrG.js → ca-ES-6MX7JW3Y-CKplVKfE.js} +1 -1
  199. package/public/assets/calendar-view-B-w_4BV-.js +1 -0
  200. package/public/assets/calendar-workspace-BiPYwfJr.js +1 -0
  201. package/public/assets/{calendars-settings-module-BWI1k_YA.js → calendars-settings-module-DuwhjpAm.js} +1 -1
  202. package/public/assets/card-fields-BJ9YVWI0.css +1 -0
  203. package/public/assets/{card-fields-eo7dqj1P.js → card-fields-iDvc1GXx.js} +1 -1
  204. package/public/assets/{chat-composer-editor-DCmWVP16.js → chat-composer-editor-CPfqqfXn.js} +1 -1
  205. package/public/assets/{chat-message-list-DPXjDBw1.js → chat-message-list-Ds52ru39.js} +1 -1
  206. package/public/assets/chunk-6U3AYISY-C6-Mtja1.js +12 -0
  207. package/public/assets/{chunk-EIO257PC-Bfdsn_q8.js → chunk-EIO257PC-DvUJi4Nw.js} +1 -1
  208. package/public/assets/chunk-K2UTITRG-ZTIxemJp.js +41 -0
  209. package/public/assets/chunk-SRAX5OIU-wzfotNc-.js +1 -0
  210. package/public/assets/chunk-Z3N5DIM6-D9TMVU7m.js +1 -0
  211. package/public/assets/{code-editor-CxLqzVwa.js → code-editor-BTcitmHE.js} +1 -1
  212. package/public/assets/code-editor-DIB7VOIc.css +1 -0
  213. package/public/assets/{color-picker-Cmg2HIDb.css → color-picker-BV0aOd4w.css} +1 -1
  214. package/public/assets/{color-picker-DK8V_DI0.js → color-picker-WHiWktCJ.js} +1 -1
  215. package/public/assets/{contents-view-DHRWEBwV.js → contents-view-DOVe1FVg.js} +1 -1
  216. package/public/assets/contents-view-XuasBH0m.css +1 -0
  217. package/public/assets/{conversation-debug-panel-zsrBEMxW.js → conversation-debug-panel-C73_GL9P.js} +1 -1
  218. package/public/assets/{settings-view-Bd65kLGK.css → core-settings-module-DNS3W-dj.css} +1 -1
  219. package/public/assets/core-settings-module-_wQSD6hP.js +4 -0
  220. package/public/assets/create-note-popup-B-wM8Q5O.js +1 -0
  221. package/public/assets/{cs-CZ-2BRQDIVT-fiabtlu1.js → cs-CZ-2BRQDIVT-CHlJO48i.js} +1 -1
  222. package/public/assets/{cypher-editor-ef6RdDgm.js → cypher-editor-M9g--02t.js} +1 -1
  223. package/public/assets/{da-DK-5WZEPLOC-C-5tRCvs.js → da-DK-5WZEPLOC-B2KbOKlk.js} +1 -1
  224. package/public/assets/daily-notes-settings-CrgXHhLI.js +1 -0
  225. package/public/assets/{dashboard-grid-DKMK4z_a.js → dashboard-grid-BZ8kYdV4.js} +2 -2
  226. package/public/assets/dashboard-workspace-CIhpZ3rj.js +4 -0
  227. package/public/assets/dashboard-workspace-ChhR6uFw.css +1 -0
  228. package/public/assets/{dashboards-settings-module-DmE0Krje.js → dashboards-settings-module-CUyrJjUX.js} +1 -1
  229. package/public/assets/dashboards-view-CkheD5RG.js +1 -0
  230. package/public/assets/{de-DE-XR44H4JA-4wneKMQi.js → de-DE-XR44H4JA-CraH52sB.js} +1 -1
  231. package/public/assets/{desktop-server-settings-DDd8PcxW.js → desktop-server-settings-CDuPB2R6.js} +1 -1
  232. package/public/assets/discovery-create-popup-aCpL7caq.js +1 -0
  233. package/public/assets/discovery-import-popup-qmw9XOW8.js +1 -0
  234. package/public/assets/{discovery-settings-module-DQMZismj.js → discovery-settings-module-BiY4ib2N.js} +1 -1
  235. package/public/assets/discovery-view-CPYP4CTN.js +1 -0
  236. package/public/assets/discovery-workspace-COn6jS_C.js +2 -0
  237. package/public/assets/{dist-B58c6eJE.js → dist-BmY58onI.js} +1 -1
  238. package/public/assets/drag-preview-i140CAXv.js +1 -0
  239. package/public/assets/{drawing-note-BytzAih9.js → drawing-note-CZIRcZb4.js} +1 -1
  240. package/public/assets/{el-GR-BZB4AONW-BUDxOK9m.js → el-GR-BZB4AONW-hWxkjrdo.js} +1 -1
  241. package/public/assets/en-B4ZKOASM-CDD2_KUt.js +1 -0
  242. package/public/assets/{es-ES-U4NZUMDT-gXLOOlpz.js → es-ES-U4NZUMDT-D3W7yrM9.js} +1 -1
  243. package/public/assets/{esm-BSlSeh8A.js → esm-BwVJXUDM.js} +1 -1
  244. package/public/assets/{eu-ES-A7QVB2H4-4kiV_opo.js → eu-ES-A7QVB2H4-C6t3pMxo.js} +1 -1
  245. package/public/assets/export-formats-BEyzF7fr.js +1 -0
  246. package/public/assets/{fa-IR-HGAKTJCU-C7F0Dl4h.js → fa-IR-HGAKTJCU-DJOOVnVh.js} +1 -1
  247. package/public/assets/{feature-switch-section-617S6UWP.js → feature-switch-section-DWkHmh9Q.js} +1 -1
  248. package/public/assets/{fi-FI-Z5N7JZ37-DEUSwc4a.js → fi-FI-Z5N7JZ37-DEhnpOQb.js} +1 -1
  249. package/public/assets/file-editor-BMcxRFx_.css +1 -0
  250. package/public/assets/file-editor-WXaKLCia.js +3 -0
  251. package/public/assets/{file-language-DjeubQk3.js → file-language-BAXzYrUs.js} +1 -1
  252. package/public/assets/file-picker-Bo4sE6ud.css +1 -0
  253. package/public/assets/file-picker-DalNc5HP.js +1 -0
  254. package/public/assets/file-preview-B2sjiYV9.css +1 -0
  255. package/public/assets/file-preview-CBXgB9qm.js +1 -0
  256. package/public/assets/{file-preview-media-DL2hGeeZ.js → file-preview-media-D5_7dD-7.js} +1 -1
  257. package/public/assets/file-references-api-IoK82adM.js +1 -0
  258. package/public/assets/files-settings-module-DTmzlXAF.js +1 -0
  259. package/public/assets/files-view-D7awxVSV.js +3 -0
  260. package/public/assets/{files-view-B6_Mlm9V.css → files-view-DyPI1vLx.css} +1 -1
  261. package/public/assets/{format-panel-value-vueBm4DQ.js → format-panel-value-Qry4ewBT.js} +1 -1
  262. package/public/assets/format-rules-BFnbjJsr.js +1 -0
  263. package/public/assets/{fr-FR-RHASNOE6-BKLo10bn.js → fr-FR-RHASNOE6-D9pFTuqa.js} +1 -1
  264. package/public/assets/{gl-ES-HMX3MZ6V-D_nHnidC.js → gl-ES-HMX3MZ6V-CIK6mfAj.js} +1 -1
  265. package/public/assets/graph-explorer-DEddRhZU.js +329 -0
  266. package/public/assets/graph-settings-module-CdwcXpWv.js +1 -0
  267. package/public/assets/{he-IL-6SHJWFNN-BXKK7JWx.js → he-IL-6SHJWFNN-sIPLWf4m.js} +1 -1
  268. package/public/assets/{hi-IN-IWLTKZ5I-D2utCBQM.js → hi-IN-IWLTKZ5I-BUJucdSj.js} +1 -1
  269. package/public/assets/{hu-HU-A5ZG7DT2-BENIngFF.js → hu-HU-A5ZG7DT2-B29-4soS.js} +1 -1
  270. package/public/assets/icons-BQSaMzmI.js +1 -0
  271. package/public/assets/{id-ID-SAP4L64H-Bw77jJOj.js → id-ID-SAP4L64H-CyIfHt3t.js} +1 -1
  272. package/public/assets/ide-settings-module-DmJJdyaW.js +1 -0
  273. package/public/assets/ide-view-BhQVUYYS.js +1 -0
  274. package/public/assets/ide-view-Cou_U3E6.css +1 -0
  275. package/public/assets/image-GAAHSSAO-BxryKUrU.js +1 -0
  276. package/public/assets/imap-accounts-my6l8ble.js +1 -0
  277. package/public/assets/index-CfVw4gte.js +9 -0
  278. package/public/assets/index-CuWXx5Sr.css +1 -0
  279. package/public/assets/{it-IT-JPQ66NNP-DiG4G8vQ.js → it-IT-JPQ66NNP-Dq23HshR.js} +1 -1
  280. package/public/assets/{ja-JP-DBVTYXUO-CILN9NGs.js → ja-JP-DBVTYXUO-8NNxRVWb.js} +1 -1
  281. package/public/assets/journal-create-popup-DsFTus7q.js +1 -0
  282. package/public/assets/journal-day-route-BX4-KaSl.js +1 -0
  283. package/public/assets/journal-folder-field-hSCfQuop.js +1 -0
  284. package/public/assets/journal-page-CoLcbMGG.css +1 -0
  285. package/public/assets/journal-page-CuUs4DCL.js +2 -0
  286. package/public/assets/journal-settings-BeM9sz5z.js +1 -0
  287. package/public/assets/journal-typography-BB4TqmXu.js +1 -0
  288. package/public/assets/journal-writing-route-Ba7mqWJS.js +1 -0
  289. package/public/assets/journals-view-Cf89lTyQ.js +1 -0
  290. package/public/assets/kaa-6HZHGXH3-DWQlZzTI.js +1 -0
  291. package/public/assets/{kab-KAB-ZGHBKWFO-yPJB-J7N.js → kab-KAB-ZGHBKWFO-BCP7pvXg.js} +1 -1
  292. package/public/assets/kk-KZ-P5N5QNE5-xOkOQsTw.js +1 -0
  293. package/public/assets/{km-KH-HSX4SM5Z-CSZjabru.js → km-KH-HSX4SM5Z-D0xjNROe.js} +1 -1
  294. package/public/assets/{ko-KR-MTYHY66A-CGEXYXZz.js → ko-KR-MTYHY66A-E5aEyLj-.js} +1 -1
  295. package/public/assets/{ku-TR-6OUDTVRD-DOfuZRKI.js → ku-TR-6OUDTVRD-CDQOo-yR.js} +1 -1
  296. package/public/assets/link-choices-CRTxLpuA.js +1 -0
  297. package/public/assets/link-entry-route-C1tWLndS.js +1 -0
  298. package/public/assets/link-file-browser-RuO2yY0g.js +1 -0
  299. package/public/assets/{link-kind-icon-BMfHfR_C.js → link-kind-icon-BgeZ5N-E.js} +1 -1
  300. package/public/assets/link-picker-CWK41zM0.js +2 -0
  301. package/public/assets/locked-shares-prompt-eH6sWg93.js +1 -0
  302. package/public/assets/{logging-settings-contribution-BLHCBnwO.js → logging-settings-contribution-Btq9ioZn.js} +1 -1
  303. package/public/assets/logic-CiFwn-O5.js +28 -0
  304. package/public/assets/long-press-C_vMz2E6.js +1 -0
  305. package/public/assets/{lt-LT-XHIRWOB4-CmbJTJAh.js → lt-LT-XHIRWOB4-CZPudjgc.js} +1 -1
  306. package/public/assets/{lv-LV-5QDEKY6T-Br-VqxTs.js → lv-LV-5QDEKY6T-BFIvtooB.js} +1 -1
  307. package/public/assets/markdown-message-BmuXZdEl.js +3 -0
  308. package/public/assets/markdown-message-CEFw-l9n.css +1 -0
  309. package/public/assets/markdown-task-toggle-BdNMBrC0.css +1 -0
  310. package/public/assets/markdown-task-toggle-j4VvSqsD.js +4 -0
  311. package/public/assets/{matrices-settings-module-DKGdrCad.js → matrices-settings-module-CoOYPwEU.js} +1 -1
  312. package/public/assets/matrices-view-CcjCls3L.js +1 -0
  313. package/public/assets/matrix-workspace-98WdHTfO.js +1 -0
  314. package/public/assets/{maximize-2-DATMN9kx.js → maximize-2-BOW9VTPW.js} +1 -1
  315. package/public/assets/mermaid-diagram-kld9fHwj.js +1 -0
  316. package/public/assets/{mobile-file-text-meniSeto.js → mobile-file-text-BqyOwF0N.js} +1 -1
  317. package/public/assets/mobile-note-content-editor-BPxespTd.js +2 -0
  318. package/public/assets/{mobile-panel-layer-2EcEm-JB.js → mobile-panel-layer-CA_yph77.js} +1 -1
  319. package/public/assets/model-provider-settings-contribution-CECr7FiG.js +1 -0
  320. package/public/assets/model-providers-Ptlz_trq.js +1 -0
  321. package/public/assets/move-destination-2AXvBdlJ.js +1 -0
  322. package/public/assets/move-entries-dialog-BEJJSv8J.js +1 -0
  323. package/public/assets/{mr-IN-CRQNXWMA-DwF8SFQB.js → mr-IN-CRQNXWMA-DmnSBhlL.js} +1 -1
  324. package/public/assets/my-MM-5M5IBNSE-DDu4zmzX.js +1 -0
  325. package/public/assets/{nb-NO-T6EIAALU-BelWzTQs.js → nb-NO-T6EIAALU-BLzt9sXj.js} +1 -1
  326. package/public/assets/{nl-NL-IS3SIHDZ-Ce06PPL4.js → nl-NL-IS3SIHDZ-FtFhrALS.js} +1 -1
  327. package/public/assets/{nn-NO-6E72VCQL-BbXlzJzR.js → nn-NO-6E72VCQL-B_SymEE5.js} +1 -1
  328. package/public/assets/note-body-focus-d1lrm6Vw.js +1 -0
  329. package/public/assets/note-collab-provider-B5sEpjH1.js +1 -0
  330. package/public/assets/note-collab-transport-HTl4Zdug.js +1 -0
  331. package/public/assets/note-create-settings-module-iEVdyRFV.js +1 -0
  332. package/public/assets/{note-documents-CcJDTkta.js → note-documents-BPTwtsVi.js} +2 -2
  333. package/public/assets/note-editor-container-Ct9S4xJq.css +1 -0
  334. package/public/assets/note-editor-container-DzXoYKkT.js +2 -0
  335. package/public/assets/note-editor-settings-module-BZalej3y.js +1 -0
  336. package/public/assets/note-excalidraw-editor-CYHK-nyq.js +118 -0
  337. package/public/assets/note-excalidraw-editor-DVHMAsgJ.css +1 -0
  338. package/public/assets/{note-export-api-CwuXGV0y.js → note-export-api-Cdb5DLzA.js} +1 -1
  339. package/public/assets/note-export-flow-CfLnfRzg.js +1 -0
  340. package/public/assets/{note-filter-rule-rows-DFSWBwql.js → note-filter-rule-rows-DmVis2Dw.js} +1 -1
  341. package/public/assets/note-folds-settings-module-DeVre4gm.js +1 -0
  342. package/public/assets/note-frontmatter-summary-DNdQjzv5.js +1 -0
  343. package/public/assets/note-history-retention-B5aE8fKh.js +1 -0
  344. package/public/assets/note-link-list-C2i2SrSh.css +1 -0
  345. package/public/assets/note-link-list-DD4FzeUb.js +2 -0
  346. package/public/assets/note-markdown-editor-BlWCUXb9.js +26 -0
  347. package/public/assets/note-markdown-editor-Dp1k8dWQ.css +1 -0
  348. package/public/assets/{note-outline-BFidIp-8.js → note-outline-C-dPTJrB.js} +2 -2
  349. package/public/assets/note-outline-DTpLzjGU.css +1 -0
  350. package/public/assets/note-page-content-CZH9UDn0.js +2 -0
  351. package/public/assets/{note-page-editor-BgcMK_4q.css → note-page-editor-D7Wt_Giv.css} +1 -1
  352. package/public/assets/{note-page-editor-DpVUxkCx.js → note-page-editor-D8M6gjmG.js} +4 -4
  353. package/public/assets/note-path-breadcrumb-CLfo-0XG.js +1 -0
  354. package/public/assets/{note-path-breadcrumb-YC4bHnwX.css → note-path-breadcrumb-Drkebhvm.css} +1 -1
  355. package/public/assets/{note-picker-B5i41l1u.js → note-picker-DIFcqGgZ.js} +1 -1
  356. package/public/assets/note-picker-KBB6aonj.css +1 -0
  357. package/public/assets/{note-picker-popover-B9VTeHiM.js → note-picker-popover-CoT73GG-.js} +1 -1
  358. package/public/assets/note-shares-popup-CmUAI6V-.js +1 -0
  359. package/public/assets/note-side-panel-BFno3955.js +1 -0
  360. package/public/assets/note-side-panel-DLOy2dVw.css +1 -0
  361. package/public/assets/note-side-panel-host-iIfi_4c4.js +1 -0
  362. package/public/assets/note-source-editor-CVo_ZXww.js +1 -0
  363. package/public/assets/{note-type-grid-CRCfpYZy.js → note-type-grid-Bfdc8U-T.js} +2 -2
  364. package/public/assets/{note-type-grid-BM33ZYF-.css → note-type-grid-BzMZLAzW.css} +1 -1
  365. package/public/assets/{note-values-6D6wWXPg.js → note-values-C4A12_CE.js} +1 -1
  366. package/public/assets/notes-settings-module-DBSeNBYj.js +1 -0
  367. package/public/assets/notes-view-C_mX24NH.js +1 -0
  368. package/public/assets/notes-view-D212ymqf.css +1 -0
  369. package/public/assets/{oc-FR-POXYY2M6-CyRgkETq.js → oc-FR-POXYY2M6-DM9hsX9Q.js} +1 -1
  370. package/public/assets/{open-journal-writing-Bub8Zn13.js → open-journal-writing-Da9CBYtR.js} +1 -1
  371. package/public/assets/{pa-IN-N4M65BXN-A1_Q9748.js → pa-IN-N4M65BXN-CJJQ9oPk.js} +1 -1
  372. package/public/assets/page-content-27iX_YpJ.js +1 -0
  373. package/public/assets/page-content-CdioJybS.css +1 -0
  374. package/public/assets/page-export-api-BqvyvK1O.js +1 -0
  375. package/public/assets/page-export-flow-HzZ0AmjW.js +1 -0
  376. package/public/assets/page-files-C30eoBCR.js +1 -0
  377. package/public/assets/page-note-7Oo1OmH0.js +1 -0
  378. package/public/assets/pane-layout-BaHTn1Oz.js +1 -0
  379. package/public/assets/{panel-columns-fields-ZlW6A4My.js → panel-columns-fields-B9Biz8Xm.js} +1 -1
  380. package/public/assets/pdf-view-B5Y12R4H.js +1 -0
  381. package/public/assets/pdf-view-X71jeHKm.css +1 -0
  382. package/public/assets/{pencil-xxFNyZzr.js → pencil-BQzjBcpa.js} +1 -1
  383. package/public/assets/percentages-BXMCSKIN-DRPvI3O-.js +1 -0
  384. package/public/assets/{phone-numbers-BQgyhfcH.js → phone-numbers-lV_IC3Pq.js} +1 -1
  385. package/public/assets/{pl-PL-T2D74RX3-DaINIVjz.js → pl-PL-T2D74RX3-BLAcchR-.js} +1 -1
  386. package/public/assets/progress-bar-BxjnW3uQ.js +1 -0
  387. package/public/assets/provider-configuration-DBW3Pa0C.js +8 -0
  388. package/public/assets/provider-configuration-dpnYrEZm.css +1 -0
  389. package/public/assets/provider-use-select-C0EI8kSQ.js +1 -0
  390. package/public/assets/{pt-BR-5N22H2LF-ENVHjTz_.js → pt-BR-5N22H2LF-BiLQ-V_W.js} +1 -1
  391. package/public/assets/{pt-PT-UZXXM6DQ-D5Uqv0Vz.js → pt-PT-UZXXM6DQ-DKEXacg3.js} +1 -1
  392. package/public/assets/qr-code-DgTUKCej.js +2 -0
  393. package/public/assets/{qr-code-svg-8ENstC8b.js → qr-code-svg-DdWw4ovA.js} +1 -1
  394. package/public/assets/qr-defaults-settings-BbbzxV5k.js +1 -0
  395. package/public/assets/qr-settings-fields-C8GCAxa_.js +1 -0
  396. package/public/assets/qr-viewer-DTCnaLOP.js +1 -0
  397. package/public/assets/queryOptions-Dfvzj6n2.js +1 -0
  398. package/public/assets/{reader-clock-7x7Yvzv1.js → reader-clock-s4x6Qtz_.js} +1 -1
  399. package/public/assets/{recording-bar-BcuvYwhh.js → recording-bar-C5jkIsLX.js} +1 -1
  400. package/public/assets/{recording-setup-D_MgrYb7.js → recording-setup-fZ6fe1MX.js} +1 -1
  401. package/public/assets/{recordings-api-Ds77lFsk.js → recordings-api-CxuXFNaM.js} +1 -1
  402. package/public/assets/{resource-overview-card-BainFWKz.js → resource-overview-card-CAxT9QxY.js} +1 -1
  403. package/public/assets/{ro-RO-JPDTUUEW-Dq_ouOp1.js → ro-RO-JPDTUUEW-DPtQ18Fr.js} +1 -1
  404. package/public/assets/rss-settings-module-Bg7BBsC4.js +1 -0
  405. package/public/assets/rss-view-DeSvhXEa.js +3 -0
  406. package/public/assets/{ru-RU-B4JR7IUQ-CqqISqJC.js → ru-RU-B4JR7IUQ-n-7DhzM7.js} +1 -1
  407. package/public/assets/{safe-block-copy-BOVhmncw.js → safe-block-copy-B7NrP_YX.js} +1 -1
  408. package/public/assets/{safe-block-qr-button-CD7cJG3N.js → safe-block-qr-button-DomQCK7l.js} +1 -1
  409. package/public/assets/safe-block-reader-BGmIVIwN.js +1 -0
  410. package/public/assets/safe-folder-conversion-Re-4B3nf.js +1 -0
  411. package/public/assets/{safe-folders-DmvM6dtV.js → safe-folders-B4zJo8qB.js} +1 -1
  412. package/public/assets/{safe-move-leaving-BT5e1h3p.js → safe-move-leaving-D4dKIwTJ.js} +1 -1
  413. package/public/assets/{safe-note-locked-BDCeVwpK.js → safe-note-locked-BGUjggd4.js} +1 -1
  414. package/public/assets/safe-notes-settings-module-zJbcwdU7.js +1 -0
  415. package/public/assets/{markdown-task-toggle-CuRdtBn0.css → safe-text-B4Q6DSRg.css} +1 -1
  416. package/public/assets/safe-text-MPRw9KNQ.js +2 -0
  417. package/public/assets/search-settings-module-CMWbEyvZ.js +1 -0
  418. package/public/assets/{secret-form-B-YAlbZf.js → secret-form-DoNXw27T.js} +1 -1
  419. package/public/assets/secret-popup-Vn5Xkv4s.js +1 -0
  420. package/public/assets/section-navigation-1mCyY2Gm.js +1 -0
  421. package/public/assets/{security-settings-contribution-BmcZq1hf.js → security-settings-contribution-BrPrGp5q.js} +1 -1
  422. package/public/assets/settings-CxK-AM0A.js +1 -0
  423. package/public/assets/settings-actions-DnTiS3-h.js +1 -0
  424. package/public/assets/{settings-edit-dialog-C_AeTz9Y.js → settings-edit-dialog-CE5ZTszW.js} +1 -1
  425. package/public/assets/settings-panel-BF5baIMl.js +1 -0
  426. package/public/assets/settings-surface-CDwMuN24.js +3 -0
  427. package/public/assets/settings-surface-DzW4lcds.css +1 -0
  428. package/public/assets/{setup-prompt-BbpHVdla.js → setup-prompt-Bmv_QxoH.js} +1 -1
  429. package/public/assets/{share-access-control-CzAVEv6b.js → share-access-control-CB7J42Dn.js} +1 -1
  430. package/public/assets/shared-board-CLRkwNKE.js +1 -0
  431. package/public/assets/shared-board-lanes-OZo3pA9j.js +1 -0
  432. package/public/assets/{shared-calendar-view-DTzDjSs0.js → shared-calendar-view-BSmK0NDE.js} +1 -1
  433. package/public/assets/shared-note-route-CnykVAYu.css +1 -0
  434. package/public/assets/shared-note-route-DtZVqLMu.js +4 -0
  435. package/public/assets/shared-note-text-C6nccM7z.js +1 -0
  436. package/public/assets/{shares-settings-module-pIdBLmCq.js → shares-settings-module-gI5s2PT6.js} +1 -1
  437. package/public/assets/si-LK-N5RQ5JYF-BpI-kBDz.js +1 -0
  438. package/public/assets/{sk-SK-C5VTKIMK-YiOZ-xKA.js → sk-SK-C5VTKIMK-BRXRBgRU.js} +1 -1
  439. package/public/assets/{sl-SI-NN7IZMDC-BKb37Hlu.js → sl-SI-NN7IZMDC-BXKt0fnN.js} +1 -1
  440. package/public/assets/{spaces-settings-module-BLU1RsTS.js → spaces-settings-module-BOkTwY_Z.js} +1 -1
  441. package/public/assets/spaces-view-K5_OKPoW.js +2 -0
  442. package/public/assets/sqlite-browser-BVA27ofB.css +1 -0
  443. package/public/assets/sqlite-browser-DCKBF2SI.js +2 -0
  444. package/public/assets/stack-widgets-CLUFu_vQ.js +1 -0
  445. package/public/assets/store-attachments-DQ63HVZo.js +1 -0
  446. package/public/assets/stored-color-picker-BLs1gClm.css +1 -0
  447. package/public/assets/stored-color-picker-CZ66rDog.js +1 -0
  448. package/public/assets/style-DPV_jdGg.css +1 -0
  449. package/public/assets/subset-shared.chunk-DYH4c2c2.js +1 -0
  450. package/public/assets/subset-worker.chunk-yCTTgC3G.js +1 -0
  451. package/public/assets/{sv-SE-XGPEYMSR-VT0snW-T.js → sv-SE-XGPEYMSR-nBH8YjQ4.js} +1 -1
  452. package/public/assets/{ta-IN-2NMHFXQM--MqIf2Jf.js → ta-IN-2NMHFXQM-f0oprEqN.js} +1 -1
  453. package/public/assets/{text-diff-BmKfp7mY.js → text-diff-BMS8apwf.js} +1 -1
  454. package/public/assets/th-TH-HPSO5L25-CUOH0u8u.js +2 -0
  455. package/public/assets/{theme-colors-zbTaiYL0.js → theme-colors-BcoD3SUn.js} +1 -1
  456. package/public/assets/{toolbar-items-DLi0bl0c.js → toolbar-items-DtGvJf3U.js} +1 -1
  457. package/public/assets/{topology-code-editor-CNnSyUQ3.js → topology-code-editor-ClyHjN--.js} +1 -1
  458. package/public/assets/topology-designer-DmhzdlOY.js +1 -0
  459. package/public/assets/{topology-editor-DUaww3cM.css → topology-editor-CZnvLbBi.css} +1 -1
  460. package/public/assets/topology-editor-YK_2uGkR.js +8 -0
  461. package/public/assets/{topology-folder-migration-popup-C0Wc3ViK.js → topology-folder-migration-popup-AZFR8-44.js} +1 -1
  462. package/public/assets/{tr-TR-DEFEU3FU-BVLSiyVW.js → tr-TR-DEFEU3FU-CTsS8Qy-.js} +1 -1
  463. package/public/assets/{transcription-settings-BldPwHO7.js → transcription-settings-D7_ViMfp.js} +2 -2
  464. package/public/assets/tree-header-CmCmDZKG.js +1 -0
  465. package/public/assets/tree-header-DlATpadF.css +1 -0
  466. package/public/assets/types-settings-module-L4wPTMty.js +1 -0
  467. package/public/assets/{uk-UA-QMV73CPH-DQ4YsZml.js → uk-UA-QMV73CPH-BJo17WQM.js} +1 -1
  468. package/public/assets/{unlock-prompt-CkkcVo9g.js → unlock-prompt-BQVrb-4k.js} +1 -1
  469. package/public/assets/{use-candidate-notes-jH4-EW29.js → use-candidate-notes-YOxWyJCJ.js} +1 -1
  470. package/public/assets/{directory-picker-columns-BpDkvDO0.css → use-directory-columns-DILivjwk.css} +1 -1
  471. package/public/assets/use-directory-columns-DYequGsf.js +1 -0
  472. package/public/assets/use-directory-listing-Bj3F5kA3.js +1 -0
  473. package/public/assets/use-folding-enabled-N7w9iIqy.js +1 -0
  474. package/public/assets/use-heading-location-BZ9wUH2j.js +1 -0
  475. package/public/assets/{use-live-document-D4PkZrbU.js → use-live-document-4fc8FCW3.js} +1 -1
  476. package/public/assets/use-mobile-layer-navigation-Il_7QdXn.js +1 -0
  477. package/public/assets/{use-note-attachments-Bew073Hl.js → use-note-attachments-DAFyHvYo.js} +1 -1
  478. package/public/assets/{use-note-delete-fFNH1Glk.js → use-note-delete-JQISrVQ4.js} +1 -1
  479. package/public/assets/{use-note-editor-session-R1wm0xDf.js → use-note-editor-session-BlLoBd41.js} +1 -1
  480. package/public/assets/use-note-maximize-offer-DpU6Ms0_.js +1 -0
  481. package/public/assets/use-note-side-column-CFBvrpKH.css +1 -0
  482. package/public/assets/use-note-side-column-CVs74c26.js +1 -0
  483. package/public/assets/use-provider-dialogs-BRoAomhX.css +1 -0
  484. package/public/assets/use-provider-dialogs-HkxDcuJv.js +1 -0
  485. package/public/assets/{use-reflection-request-C1DxtaYX.js → use-reflection-request-BuFnMuQC.js} +4 -4
  486. package/public/assets/use-safe-folder-moves-CjbmSWSM.js +1 -0
  487. package/public/assets/use-safe-folders-apply-D_7a5l_T.js +1 -0
  488. package/public/assets/{use-screen-source-CF-48NnC.js → use-screen-source-BZ0GGtml.js} +1 -1
  489. package/public/assets/use-share-actions-DBYaF7Wp.css +1 -0
  490. package/public/assets/use-share-actions-Tfr6NI4j.js +1 -0
  491. package/public/assets/use-tab-style-B5YK0cIz.js +2 -0
  492. package/public/assets/use-tab-style-CRx5AnD1.css +1 -0
  493. package/public/assets/use-vault-file-link-BCQahdir.js +1 -0
  494. package/public/assets/{use-voice-questions-DGVQlAST.js → use-voice-questions-DmxYfc8M.js} +1 -1
  495. package/public/assets/vault-entries-api-CZHdxv7-.js +1 -0
  496. package/public/assets/vault-file-links-D1RzhVkx.js +1 -0
  497. package/public/assets/vault-folder-field-C5b24MNS.js +1 -0
  498. package/public/assets/vault-folder-field-X-B1weCe.css +1 -0
  499. package/public/assets/vault-links-popup-zkFCHyoP.js +1 -0
  500. package/public/assets/vault-manager-CZnYayEU.js +1 -0
  501. package/public/assets/{vault-settings-module-CCMMSy4B.js → vault-settings-module-CL2DHG69.js} +1 -1
  502. package/public/assets/vault-shares-popup-Cnew0vMQ.js +1 -0
  503. package/public/assets/vault-workspace-settings-module-D_n4aQfC.js +1 -0
  504. package/public/assets/{versioning-preferences-DrNq-y_0.js → versioning-preferences-BK-mZYhi.js} +1 -1
  505. package/public/assets/{versioning-settings-module-Ddug486c.js → versioning-settings-module-lq4k7b3C.js} +1 -1
  506. package/public/assets/versioning-view-BdEZaF8n.js +2 -0
  507. package/public/assets/{vi-VN-M7AON7JQ-B-fHV7o8.js → vi-VN-M7AON7JQ-DpgVSDWc.js} +1 -1
  508. package/public/assets/video-recording-dialog-ByevPvCN.js +1 -0
  509. package/public/assets/{video-recording-settings-B2iE6IdW.js → video-recording-settings-Ce2plgiG.js} +1 -1
  510. package/public/assets/widget-frame-DzlpiABF.js +1 -0
  511. package/public/assets/widget-layouts-DS7nWc80.js +1 -0
  512. package/public/assets/workspace-layout-3hjN1Wng.js +1 -0
  513. package/public/assets/{zh-CN-LNUGB5OW-CUgxiiUV.js → zh-CN-LNUGB5OW-Cfb6--Ow.js} +1 -1
  514. package/public/assets/zh-HK-E62DVLB3-vaMRVwdL.js +1 -0
  515. package/public/assets/{zh-TW-RAJ6MFWO-BVaf47B6.js → zh-TW-RAJ6MFWO-CNUUB_PG.js} +1 -1
  516. package/public/index.html +6 -6
  517. package/dist/search/embedding-connection-migration.js +0 -57
  518. package/node_modules/@braian/ai-providers/dist/legacy-embedding-migration.js +0 -21
  519. package/public/assets/FileText.es-4c63tWmA.js +0 -1
  520. package/public/assets/TerminalWindow.es-DwLjQ_88.js +0 -1
  521. package/public/assets/Warning.es-4HWtj9Nt.js +0 -1
  522. package/public/assets/agent-profiles-settings-yElCnMJo.js +0 -1
  523. package/public/assets/appearance-settings-module-BFDKE-mZ.js +0 -1
  524. package/public/assets/attachment-embed-BX0XSPNZ.js +0 -1
  525. package/public/assets/attachments-settings-CSEjOoFg.js +0 -1
  526. package/public/assets/az-AZ-76LH7QW2-DpGlptKS.js +0 -1
  527. package/public/assets/blue-ezN0uv0j.css +0 -1
  528. package/public/assets/board-workspace-CmetKvXF.js +0 -1
  529. package/public/assets/boards-settings-module-Bh5dh9jG.js +0 -1
  530. package/public/assets/calendar-view-Cr1VSpj0.js +0 -1
  531. package/public/assets/calendar-workspace-B-2Himdy.js +0 -1
  532. package/public/assets/card-fields-C1JCmDVz.css +0 -1
  533. package/public/assets/code-editor-wFimHbMT.css +0 -1
  534. package/public/assets/contents-view-EQyMaey-.css +0 -1
  535. package/public/assets/create-note-popup-C9IB_IZr.js +0 -1
  536. package/public/assets/daily-notes-settings-CCotd1Iq.js +0 -1
  537. package/public/assets/dashboard-workspace-4u-QaXby.js +0 -4
  538. package/public/assets/dashboard-workspace-CW4tbadO.css +0 -1
  539. package/public/assets/dashboards-view-DxUAl6zg.js +0 -1
  540. package/public/assets/directory-picker-columns-CqPZNMT8.js +0 -1
  541. package/public/assets/discovery-create-popup-BSOSYM4o.js +0 -1
  542. package/public/assets/discovery-import-popup-NodFxSW1.js +0 -1
  543. package/public/assets/discovery-view-PiwStXSa.js +0 -1
  544. package/public/assets/discovery-workspace-BTrjBF19.js +0 -2
  545. package/public/assets/drag-preview-D61OK7zr.js +0 -1
  546. package/public/assets/en-B4ZKOASM-jB7I34Md.js +0 -1
  547. package/public/assets/file-editor-B-9eXvH3.css +0 -1
  548. package/public/assets/file-editor-DvP7rRI9.js +0 -3
  549. package/public/assets/file-preview-AkYowAab.js +0 -1
  550. package/public/assets/file-preview-Dynm8laQ.css +0 -1
  551. package/public/assets/file-references-api-C2G0bSy9.js +0 -1
  552. package/public/assets/files-settings-module-DsylYhrR.js +0 -1
  553. package/public/assets/files-view-DPSrj_WW.js +0 -3
  554. package/public/assets/folder-picker-dialog-CxiRBtQb.css +0 -1
  555. package/public/assets/folder-picker-dialog-D_VCqm_i.js +0 -1
  556. package/public/assets/format-rules-GzYB7Vvh.js +0 -1
  557. package/public/assets/graph-explorer-CHz-bFkx.js +0 -329
  558. package/public/assets/graph-settings-module-9hY9bkdT.js +0 -1
  559. package/public/assets/icons-CxH3_W-q.js +0 -1
  560. package/public/assets/ide-settings-module-BbIX3okW.js +0 -1
  561. package/public/assets/ide-view-0vK2duKI.js +0 -2
  562. package/public/assets/ide-view-isgMvraA.css +0 -1
  563. package/public/assets/image-GAAHSSAO-D4NDL8F6.js +0 -1
  564. package/public/assets/imap-accounts-BRbnITJv.js +0 -1
  565. package/public/assets/index-BVDhmwI8.js +0 -11
  566. package/public/assets/index-DjUUY3gd.css +0 -1
  567. package/public/assets/journal-create-popup-39y9ieVG.js +0 -1
  568. package/public/assets/journal-day-route-CYlyL-u0.js +0 -1
  569. package/public/assets/journal-folder-field-B8yNmuTt.css +0 -1
  570. package/public/assets/journal-folder-field-BfO-_ied.js +0 -1
  571. package/public/assets/journal-page-CAXrq4hj.css +0 -1
  572. package/public/assets/journal-page-TgyVFaPE.js +0 -2
  573. package/public/assets/journal-settings-CfjXOXzF.js +0 -1
  574. package/public/assets/journal-typography-D3O3AK2U.js +0 -1
  575. package/public/assets/journal-writing-route-CYhXzipC.js +0 -1
  576. package/public/assets/journals-view-DNomC0nF.js +0 -1
  577. package/public/assets/kaa-6HZHGXH3-BUua-YiR.js +0 -1
  578. package/public/assets/kk-KZ-P5N5QNE5-CAitSjw5.js +0 -1
  579. package/public/assets/link-file-browser-A_Mappx0.js +0 -1
  580. package/public/assets/link-picker-BfwWXJZg.js +0 -2
  581. package/public/assets/locked-shares-prompt-BsM-ai_V.js +0 -1
  582. package/public/assets/logic-DtHJ5GlU.js +0 -28
  583. package/public/assets/markdown-message-BIo2pHhE.js +0 -3
  584. package/public/assets/markdown-message-C2w22wrW.css +0 -1
  585. package/public/assets/markdown-task-toggle-9k1EldDD.js +0 -5
  586. package/public/assets/matrices-view-DYF7e5ES.js +0 -1
  587. package/public/assets/matrix-workspace-JZhH-HQ5.js +0 -1
  588. package/public/assets/mermaid-diagram-gUL2-JyE.js +0 -1
  589. package/public/assets/mobile-note-content-editor-C6TUyA4F.js +0 -2
  590. package/public/assets/model-provider-settings-contribution-CfHiu3nS.js +0 -1
  591. package/public/assets/model-providers-cQOCMmwX.js +0 -1
  592. package/public/assets/my-MM-5M5IBNSE-BEiMo9eJ.js +0 -1
  593. package/public/assets/note-body-focus-BKKGEgBj.js +0 -1
  594. package/public/assets/note-collab-provider-B9DpnE58.js +0 -1
  595. package/public/assets/note-collab-transport-BHZ891IL.js +0 -1
  596. package/public/assets/note-create-settings-module-rIZc1DjQ.js +0 -1
  597. package/public/assets/note-editor-container-8DkvXTPN.css +0 -1
  598. package/public/assets/note-editor-container-DL3yLdYs.js +0 -2
  599. package/public/assets/note-editor-settings-module-DI0jRyPy.js +0 -1
  600. package/public/assets/note-excalidraw-editor-CKSC5Oww.css +0 -1
  601. package/public/assets/note-excalidraw-editor-fDQ1JVBh.js +0 -168
  602. package/public/assets/note-export-flow-DcBoI5Pp.js +0 -1
  603. package/public/assets/note-folds-settings-module-CFfVg1Cp.js +0 -1
  604. package/public/assets/note-frontmatter-summary-iubFPHA_.js +0 -1
  605. package/public/assets/note-link-list-CI9-GM_3.js +0 -1
  606. package/public/assets/note-link-list-hmCbBMA2.css +0 -1
  607. package/public/assets/note-markdown-editor-DlBj1yv3.css +0 -1
  608. package/public/assets/note-markdown-editor-lG6gZT9i.js +0 -26
  609. package/public/assets/note-outline-CAyXKuOh.css +0 -1
  610. package/public/assets/note-page-content-8gzPBWMV.js +0 -2
  611. package/public/assets/note-path-breadcrumb-HmtWyYZP.js +0 -1
  612. package/public/assets/note-picker-BURTnmWF.css +0 -1
  613. package/public/assets/note-shares-popup-aUO1SNLN.js +0 -1
  614. package/public/assets/note-source-editor-BXPR_-41.js +0 -1
  615. package/public/assets/notes-settings-module-DcP9Hid-.js +0 -1
  616. package/public/assets/page-content-B3fNjwr-.js +0 -1
  617. package/public/assets/page-content-lnIaLh4X.css +0 -1
  618. package/public/assets/page-files-CSqFupDZ.js +0 -1
  619. package/public/assets/page-note-nmiinGCs.js +0 -1
  620. package/public/assets/pane-keys-DiGU3yVB.css +0 -1
  621. package/public/assets/pane-keys-osajBGnu.js +0 -1
  622. package/public/assets/pdf-view-BATpBLO5.js +0 -1
  623. package/public/assets/pdf-view-BK5qKL4y.css +0 -1
  624. package/public/assets/percentages-BXMCSKIN-DzsiA6IB.js +0 -1
  625. package/public/assets/provider-configuration-CSnNV6ps.css +0 -1
  626. package/public/assets/provider-configuration-DaFovElx.js +0 -8
  627. package/public/assets/provider-use-select-D-lJiZ2W.js +0 -1
  628. package/public/assets/qr-code-CDBCi1Cu.js +0 -2
  629. package/public/assets/qr-defaults-settings-C_8ybA4R.js +0 -1
  630. package/public/assets/qr-settings-fields-C2-DGF6a.js +0 -1
  631. package/public/assets/qr-viewer-DAOzDI8d.js +0 -1
  632. package/public/assets/rss-preferences-BafuZ3Ku.js +0 -1
  633. package/public/assets/rss-settings-module-Df-YS9tr.js +0 -1
  634. package/public/assets/rss-view-BORHnuIQ.js +0 -3
  635. package/public/assets/safe-block-reader-BkilW4Hj.js +0 -1
  636. package/public/assets/safe-folder-conversion-DWTRwvTH.js +0 -1
  637. package/public/assets/safe-notes-settings-module-BrZreYgf.js +0 -1
  638. package/public/assets/search-settings-module-CPnculiI.js +0 -1
  639. package/public/assets/secret-popup-CoVpeLZV.js +0 -1
  640. package/public/assets/settings-CU8YR8di.js +0 -1
  641. package/public/assets/settings-panel-Ds7lOtnD.js +0 -1
  642. package/public/assets/settings-view-BTz2XbnW.js +0 -4
  643. package/public/assets/share-label-CbjQ9iMF.js +0 -1
  644. package/public/assets/shared-board-lanes-CAbJAFk6.js +0 -1
  645. package/public/assets/shared-note-route-B5rcAeES.css +0 -1
  646. package/public/assets/shared-note-route-B_gfX0Nl.js +0 -4
  647. package/public/assets/shared-note-text-DFBEyL8Z.js +0 -1
  648. package/public/assets/si-LK-N5RQ5JYF-DmhE8IT5.js +0 -1
  649. package/public/assets/spaces-view-BhWD3mAw.js +0 -2
  650. package/public/assets/sqlite-browser-BKjuAUqe.css +0 -1
  651. package/public/assets/sqlite-browser-C98PFoRG.js +0 -2
  652. package/public/assets/store-attachments-DbqF7LgE.js +0 -1
  653. package/public/assets/stored-color-picker-BoVzUatG.css +0 -1
  654. package/public/assets/stored-color-picker-DLX-e5Nq.js +0 -1
  655. package/public/assets/style-DLioOiRN.css +0 -1
  656. package/public/assets/subset-shared.chunk-D8M638AI.js +0 -1
  657. package/public/assets/subset-worker.chunk-B9ZhBm-P.js +0 -1
  658. package/public/assets/th-TH-HPSO5L25-CTKAmQrO.js +0 -2
  659. package/public/assets/topology-designer-T54LYLYv.js +0 -1
  660. package/public/assets/topology-editor-aGtCktzA.js +0 -8
  661. package/public/assets/topology-settings-module-Dp-Sm37Z.js +0 -1
  662. package/public/assets/use-directory-listing-Cn9t21ra.js +0 -1
  663. package/public/assets/use-folding-enabled-DKvri2UA.js +0 -1
  664. package/public/assets/use-mobile-layer-navigation-BIC7HlT_.js +0 -1
  665. package/public/assets/use-note-export-flow-Dm7yhW5s.js +0 -2
  666. package/public/assets/use-provider-dialogs-CrxN9JCo.js +0 -1
  667. package/public/assets/use-safe-folder-moves-DjQUnMvz.js +0 -1
  668. package/public/assets/use-safe-folders-apply-B1V8l7WU.js +0 -1
  669. package/public/assets/use-share-actions-RxO2M3y0.css +0 -1
  670. package/public/assets/use-share-actions-kb7uFat_.js +0 -1
  671. package/public/assets/use-vault-file-link-B-ZRcKDu.js +0 -1
  672. package/public/assets/vault-entries-api-pFsJiGnJ.js +0 -1
  673. package/public/assets/vault-manager-YKz_Ib18.js +0 -1
  674. package/public/assets/vault-shares-popup-CaGnEIJA.js +0 -1
  675. package/public/assets/versioning-view-PR4R4gks.js +0 -2
  676. package/public/assets/video-recording-dialog-CxRs1eLE.js +0 -1
  677. package/public/assets/widget-frame-DiF4946k.js +0 -1
  678. package/public/assets/zh-HK-E62DVLB3-D-87W8QH.js +0 -1
  679. /package/public/assets/{blue-CDYoCZOg.js → blue-DQyE4k0K.js} +0 -0
  680. /package/public/assets/{use-safe-folders-apply-DGWTaX5A.css → progress-bar-DGWTaX5A.css} +0 -0
  681. /package/public/assets/{style-DA65Bz1d.js → style-CXzDJL_q.js} +0 -0
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StandalonePages = void 0;
4
+ exports.standaloneFileName = standaloneFileName;
5
+ // A vault's web pages as standalone documents: what the page export downloads or files, and what a standalone link serves.
6
+ const node_crypto_1 = require("node:crypto");
7
+ const html_standalone_1 = require("@braian/html-standalone");
8
+ const vault_sdk_1 = require("@braian/vault-sdk");
9
+ const errors_1 = require("./errors");
10
+ const share_policy_1 = require("./share-policy");
11
+ /** The name a page's standalone copy is filed or downloaded under: `index.html` gives `index.standalone.html`. */
12
+ function standaloneFileName(pagePath) {
13
+ const name = pagePath.slice(pagePath.lastIndexOf('/') + 1);
14
+ return `${name.replace(/\.(?:html?|xhtml)$/i, '')}.standalone.html`;
15
+ }
16
+ /**
17
+ * Builds a page's standalone document from the files its folder holds (`webpageCovers`: the page's
18
+ * folder and below, never a note or a hidden entry). A build is kept while the page and every file
19
+ * it asked about look as they did, found or missing, so a public link asked again costs a few stats
20
+ * and a changed stylesheet shows on the next load.
21
+ */
22
+ class StandalonePages {
23
+ ports;
24
+ limits;
25
+ maxCached;
26
+ cache = new Map();
27
+ constructor(ports, limits = html_standalone_1.defaultStandaloneLimits, maxCached = 8) {
28
+ this.ports = ports;
29
+ this.limits = limits;
30
+ this.maxCached = maxCached;
31
+ }
32
+ async build(pagePath) {
33
+ const path = pagePathOf(pagePath);
34
+ const files = this.ports.files();
35
+ const cached = this.cache.get(path);
36
+ if (cached && await unchanged(files, cached.stamps)) {
37
+ this.remember(path, cached);
38
+ return cached.build;
39
+ }
40
+ const stamps = new Map();
41
+ stamps.set(path, stampOf(await files.stat(path)));
42
+ const page = await (0, html_standalone_1.buildStandalonePage)({ path, html: new TextDecoder().decode(await readAll(files, path)) }, {
43
+ describe: async (candidate) => {
44
+ if (!(0, share_policy_1.webpageCovers)(path, candidate))
45
+ return 'outside';
46
+ const file = await statOrMissing(files, candidate);
47
+ stamps.set(candidate, file ? stampOf(file) : 'missing');
48
+ return file ? { size: file.size, mimeType: file.mimeType } : 'missing';
49
+ },
50
+ read: (candidate) => readAll(files, candidate)
51
+ }, this.limits);
52
+ const build = { html: page.html, digest: (0, node_crypto_1.createHash)('sha256').update(page.html).digest('hex'), embedded: page.embedded, skipped: page.skipped };
53
+ this.remember(path, { build, stamps });
54
+ return build;
55
+ }
56
+ /** The document filed in `folder` under a free name; the page itself is not touched. */
57
+ async save(pagePath, folder) {
58
+ if (!this.ports.write)
59
+ throw new errors_1.GraphAgentError('standalone_save_unavailable', 'This vault cannot save files.');
60
+ const build = await this.build(pagePath);
61
+ const file = await this.ports.write({ directory: folder, name: standaloneFileName(pagePathOf(pagePath)), source: once(Buffer.from(build.html, 'utf8')) });
62
+ return { file, build };
63
+ }
64
+ /** The most recent builds only: each can hold a whole site as text. */
65
+ remember(path, cached) {
66
+ this.cache.delete(path);
67
+ this.cache.set(path, cached);
68
+ while (this.cache.size > this.maxCached)
69
+ this.cache.delete(this.cache.keys().next().value);
70
+ }
71
+ }
72
+ exports.StandalonePages = StandalonePages;
73
+ function pagePathOf(pagePath) {
74
+ let path;
75
+ try {
76
+ path = (0, vault_sdk_1.normalizeVaultPath)(pagePath);
77
+ }
78
+ catch {
79
+ throw new errors_1.GraphAgentError('file_not_found', 'No such file in this vault.');
80
+ }
81
+ if (!(0, share_policy_1.isWebpagePath)(path))
82
+ throw new errors_1.GraphAgentError('not_a_web_page', 'Only an .html, .htm or .xhtml file is a web page.', { path });
83
+ return path;
84
+ }
85
+ function stampOf(file) { return `${file.size}\u0000${file.modifiedAt}`; }
86
+ async function statOrMissing(files, path) {
87
+ try {
88
+ return await files.stat(path);
89
+ }
90
+ catch (error) {
91
+ if (isMissing(error))
92
+ return undefined;
93
+ throw error;
94
+ }
95
+ }
96
+ /** A path that names no file the vault serves: gone, a note, a folder, or a name it does not accept. */
97
+ function isMissing(error) {
98
+ const code = error?.code;
99
+ return code === 'file_not_found' || code === 'invalid_node_id' || code === 'invalid_vault_path';
100
+ }
101
+ async function unchanged(files, stamps) {
102
+ const now = await Promise.all([...stamps].map(async ([path, stamp]) => { const file = await statOrMissing(files, path); return (file ? stampOf(file) : 'missing') === stamp; }));
103
+ return now.every(Boolean);
104
+ }
105
+ async function readAll(files, path) {
106
+ const chunks = [];
107
+ for await (const chunk of (await files.read(path)).stream)
108
+ chunks.push(chunk);
109
+ return Buffer.concat(chunks);
110
+ }
111
+ async function* once(bytes) { yield bytes; }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createGraphTools = createGraphTools;
4
+ const vault_access_1 = require("./vault-access");
4
5
  const link_property_values_1 = require("./link-property-values");
5
6
  const tool_input_errors_1 = require("./tool-input-errors");
6
7
  const note_id_input_1 = require("./note-id-input");
@@ -112,14 +113,15 @@ function createGraphTools(store, onTool, preparationContext = { semanticCapsules
112
113
  await onTool?.(name);
113
114
  return (0, graph_store_1.executeGraphTool)(operation);
114
115
  };
116
+ // Under a vault link (ENG-430) a note batch is a content write and a schema batch needs Vault settings; each re-reads the link before it commits.
115
117
  const executeMutation = (name, provider, operations, operation) => async () => {
116
118
  await onTool?.(name);
117
- return (0, mutation_ledger_1.executeMutationTool)(provider, operations, operation);
119
+ return (0, mutation_ledger_1.executeMutationTool)(provider, operations, async () => { await (0, vault_access_1.requireGraphTarget)(provider === 'topology' ? { kind: 'schema' } : { kind: 'note' }, 'write'); return operation(); });
118
120
  };
119
121
  const tools = [
120
122
  (0, tool_input_errors_1.defineTool)({ name: 'graph_topology_read', description: 'Read graph topology definitions.', parameters: zod_1.z.object({ types: optionalEntityTypes }), execute: ({ types }) => execute('graph_topology_read', () => store.topology(nonEmpty(types)))() }),
121
123
  (0, tool_input_errors_1.defineTool)({ name: 'graph_topology_mutate', description: 'Apply an ordered batch of schema changes. The committed-outcome ledger proves persistence and may warn about semantically ineffective panel plans; it does not prove panel results. After upsert_panel, verify behavior with graph_panel_read before claiming success.', parameters: zod_1.z.object({ operations: zod_1.z.array(topologyOperation).min(1).max(50) }), execute: ({ operations }) => executeMutation('graph_topology_mutate', 'topology', operations, () => store.mutateTopology(operations))() }),
122
- (0, tool_input_errors_1.defineTool)({ name: 'graph_topology_folder_migrate', description: 'Explicitly move selected nodes from a topology folder migration plan after revalidating topology and node revisions. Never call this without user confirmation of the selected candidates.', parameters: zod_1.z.object({ topologyId: entityType, topologyRevision: zod_1.z.string().regex(/^[a-f0-9]{64}$/), selections: zod_1.z.array(topologyMigrationSelection).min(1).max(100) }), execute: ({ topologyId, topologyRevision, selections }) => execute('graph_topology_folder_migrate', () => store.migrateTopologyFolder(topologyId, { topologyRevision, selections }))() }),
124
+ (0, tool_input_errors_1.defineTool)({ name: 'graph_topology_folder_migrate', description: 'Explicitly move selected nodes from a topology folder migration plan after revalidating topology and node revisions. Never call this without user confirmation of the selected candidates.', parameters: zod_1.z.object({ topologyId: entityType, topologyRevision: zod_1.z.string().regex(/^[a-f0-9]{64}$/), selections: zod_1.z.array(topologyMigrationSelection).min(1).max(100) }), execute: ({ topologyId, topologyRevision, selections }) => execute('graph_topology_folder_migrate', async () => { await (0, vault_access_1.requireGraphTarget)({ kind: 'schema' }, 'write'); return store.migrateTopologyFolder(topologyId, { topologyRevision, selections }); })() }),
123
125
  (0, tool_input_errors_1.defineTool)({ name: 'graph_validation_errors', description: 'List Markdown topology violations plus active provider diagnostics such as dangling note references. Use each issue\'s provider and canonical source to choose the owning mutation tool.', parameters: zod_1.z.object({ types: optionalEntityTypes, ids: optionalEntityIds, limit: optionalLimit(1000) }), execute: (input) => execute('graph_validation_errors', () => store.validationErrors({ types: nonEmpty(input.types), ids: nonEmpty(input.ids), limit: input.limit ?? undefined }))() }),
124
126
  (0, tool_input_errors_1.defineTool)({ name: 'graph_prepare', description: 'Perform one compact read-only preparation pass for an answer or logging decision. It returns current bindings, candidate evidence, relevant schema, revisions, and bounded relationshipPaths that expose matching incoming owners and two-hop role paths. An empty relationshipPaths array is not proof that no relationship exists; use graph_traverse before a negative relationship claim. bindingIds accepts only configured semantic bindings; ordinary note IDs belong in ids.', parameters: zod_1.z.object({
125
127
  operation: zod_1.z.enum(['answer', 'log_stable_fact', 'log_link', 'log_occurrence']),
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.modelReasoningEfforts = void 0;
4
+ exports.isModelReasoningEffort = isModelReasoningEffort;
5
+ /** The efforts the Agents SDK accepts, lowest first; a provider offers the subset its models take. */
6
+ exports.modelReasoningEfforts = ['none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max'];
7
+ function isModelReasoningEffort(value) {
8
+ return typeof value === 'string' && exports.modelReasoningEfforts.includes(value);
9
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.authorizeSettingsOperation = exports.VaultAccessDeniedError = exports.vaultPathVisible = exports.runWithVaultAccess = exports.revalidateVaultAccess = exports.requireVaultPath = exports.requireGraphTarget = exports.graphTargetVisible = exports.currentVaultAccessScope = exports.vaultLinkPathAccess = exports.resolveVaultLinkAccess = exports.narrowVaultSettingsForLink = exports.linkReachesContent = exports.linkSeesProvider = exports.linkSeesChange = exports.linkFilesVisibility = exports.authorizeLinkRoute = exports.authorizeGraphTarget = exports.validateVaultLinkGrant = exports.readStoredVaultLinkGrant = exports.defaultVaultLinkGrant = exports.vaultFeatureOn = exports.ownerOnlyVaultFeatures = exports.isVaultLinkFeature = exports.enabledOwnerOnlyFeatures = exports.enabledDelegableFeatures = exports.delegableVaultFeatures = exports.contentVaultFeatures = void 0;
4
+ var vault_link_features_1 = require("./vault-link-features");
5
+ Object.defineProperty(exports, "contentVaultFeatures", { enumerable: true, get: function () { return vault_link_features_1.contentVaultFeatures; } });
6
+ Object.defineProperty(exports, "delegableVaultFeatures", { enumerable: true, get: function () { return vault_link_features_1.delegableVaultFeatures; } });
7
+ Object.defineProperty(exports, "enabledDelegableFeatures", { enumerable: true, get: function () { return vault_link_features_1.enabledDelegableFeatures; } });
8
+ Object.defineProperty(exports, "enabledOwnerOnlyFeatures", { enumerable: true, get: function () { return vault_link_features_1.enabledOwnerOnlyFeatures; } });
9
+ Object.defineProperty(exports, "isVaultLinkFeature", { enumerable: true, get: function () { return vault_link_features_1.isVaultLinkFeature; } });
10
+ Object.defineProperty(exports, "ownerOnlyVaultFeatures", { enumerable: true, get: function () { return vault_link_features_1.ownerOnlyVaultFeatures; } });
11
+ Object.defineProperty(exports, "vaultFeatureOn", { enumerable: true, get: function () { return vault_link_features_1.vaultFeatureOn; } });
12
+ var vault_link_grant_1 = require("./vault-link-grant");
13
+ Object.defineProperty(exports, "defaultVaultLinkGrant", { enumerable: true, get: function () { return vault_link_grant_1.defaultVaultLinkGrant; } });
14
+ Object.defineProperty(exports, "readStoredVaultLinkGrant", { enumerable: true, get: function () { return vault_link_grant_1.readStoredVaultLinkGrant; } });
15
+ Object.defineProperty(exports, "validateVaultLinkGrant", { enumerable: true, get: function () { return vault_link_grant_1.validateVaultLinkGrant; } });
16
+ var vault_access_policy_1 = require("./vault-access-policy");
17
+ Object.defineProperty(exports, "authorizeGraphTarget", { enumerable: true, get: function () { return vault_access_policy_1.authorizeGraphTarget; } });
18
+ Object.defineProperty(exports, "authorizeLinkRoute", { enumerable: true, get: function () { return vault_access_policy_1.authorizeLinkRoute; } });
19
+ Object.defineProperty(exports, "linkFilesVisibility", { enumerable: true, get: function () { return vault_access_policy_1.linkFilesVisibility; } });
20
+ Object.defineProperty(exports, "linkSeesChange", { enumerable: true, get: function () { return vault_access_policy_1.linkSeesChange; } });
21
+ Object.defineProperty(exports, "linkSeesProvider", { enumerable: true, get: function () { return vault_access_policy_1.linkSeesProvider; } });
22
+ Object.defineProperty(exports, "linkReachesContent", { enumerable: true, get: function () { return vault_access_policy_1.linkReachesContent; } });
23
+ Object.defineProperty(exports, "narrowVaultSettingsForLink", { enumerable: true, get: function () { return vault_access_policy_1.narrowVaultSettingsForLink; } });
24
+ Object.defineProperty(exports, "resolveVaultLinkAccess", { enumerable: true, get: function () { return vault_access_policy_1.resolveVaultLinkAccess; } });
25
+ Object.defineProperty(exports, "vaultLinkPathAccess", { enumerable: true, get: function () { return vault_access_policy_1.vaultLinkPathAccess; } });
26
+ var vault_access_scope_1 = require("./vault-access-scope");
27
+ Object.defineProperty(exports, "currentVaultAccessScope", { enumerable: true, get: function () { return vault_access_scope_1.currentVaultAccessScope; } });
28
+ Object.defineProperty(exports, "graphTargetVisible", { enumerable: true, get: function () { return vault_access_scope_1.graphTargetVisible; } });
29
+ Object.defineProperty(exports, "requireGraphTarget", { enumerable: true, get: function () { return vault_access_scope_1.requireGraphTarget; } });
30
+ Object.defineProperty(exports, "requireVaultPath", { enumerable: true, get: function () { return vault_access_scope_1.requireVaultPath; } });
31
+ Object.defineProperty(exports, "revalidateVaultAccess", { enumerable: true, get: function () { return vault_access_scope_1.revalidateVaultAccess; } });
32
+ Object.defineProperty(exports, "runWithVaultAccess", { enumerable: true, get: function () { return vault_access_scope_1.runWithVaultAccess; } });
33
+ Object.defineProperty(exports, "vaultPathVisible", { enumerable: true, get: function () { return vault_access_scope_1.vaultPathVisible; } });
34
+ Object.defineProperty(exports, "VaultAccessDeniedError", { enumerable: true, get: function () { return vault_access_scope_1.VaultAccessDeniedError; } });
35
+ var vault_settings_access_1 = require("./vault-settings-access");
36
+ Object.defineProperty(exports, "authorizeSettingsOperation", { enumerable: true, get: function () { return vault_settings_access_1.authorizeSettingsOperation; } });
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveVaultLinkAccess = resolveVaultLinkAccess;
4
+ exports.linkReachesContent = linkReachesContent;
5
+ exports.authorizeLinkRoute = authorizeLinkRoute;
6
+ exports.authorizeGraphTarget = authorizeGraphTarget;
7
+ exports.vaultLinkPathAccess = vaultLinkPathAccess;
8
+ exports.linkFilesVisibility = linkFilesVisibility;
9
+ exports.linkSeesChange = linkSeesChange;
10
+ exports.narrowVaultSettingsForLink = narrowVaultSettingsForLink;
11
+ exports.linkSeesProvider = linkSeesProvider;
12
+ const vault_link_features_1 = require("./vault-link-features");
13
+ function resolveVaultLinkAccess(input) {
14
+ const features = new Set(input.grant.features.filter((feature) => (0, vault_link_features_1.vaultFeatureOn)(input.settings, feature)));
15
+ return { kind: 'vault-link', vaultId: input.vaultId, linkKey: input.linkKey, features, settings: input.grant.settings, hidden: input.grant.hidden, revision: input.revision };
16
+ }
17
+ /** Whether ordinary note content is reachable at all: any content grant is on. */
18
+ function linkReachesContent(access) {
19
+ return vault_link_features_1.contentVaultFeatures.some((feature) => access.features.has(feature));
20
+ }
21
+ const allowed = Object.freeze({ allowed: true });
22
+ const deny = (code) => ({ allowed: false, code });
23
+ function authorizeLinkRoute(policy, access) {
24
+ if (!policy)
25
+ return deny('owner_only');
26
+ switch (policy.access) {
27
+ case 'runtime': return allowed;
28
+ case 'content': return linkReachesContent(access) ? allowed : deny('feature_not_granted');
29
+ case 'feature': return policy.anyOf.some((feature) => access.features.has(feature)) ? allowed : deny('feature_not_granted');
30
+ case 'settings':
31
+ if (!access.settings)
32
+ return deny('settings_not_granted');
33
+ return !policy.anyOf || policy.anyOf.some((feature) => access.features.has(feature)) ? allowed : deny('feature_not_granted');
34
+ case 'handler':
35
+ if (policy.anyOf)
36
+ return policy.anyOf.some((feature) => access.features.has(feature)) ? allowed : deny('feature_not_granted');
37
+ return linkReachesContent(access) ? allowed : deny('feature_not_granted');
38
+ default: return deny('owner_only');
39
+ }
40
+ }
41
+ function authorizeGraphTarget(target, action, access) {
42
+ switch (target.kind) {
43
+ case 'note': return linkReachesContent(access) ? allowed : deny('feature_not_granted');
44
+ case 'feature-object': return access.features.has(target.feature) ? allowed : deny('feature_not_granted');
45
+ case 'schema':
46
+ if (action === 'read')
47
+ return linkReachesContent(access) ? allowed : deny('feature_not_granted');
48
+ return access.settings ? allowed : deny('settings_not_granted');
49
+ case 'configuration':
50
+ if (target.feature && !access.features.has(target.feature))
51
+ return deny('feature_not_granted');
52
+ if (action === 'read')
53
+ return allowed;
54
+ return access.settings ? allowed : deny('settings_not_granted');
55
+ default: return deny('owner_only');
56
+ }
57
+ }
58
+ /** The metadata folders no raw file route opens to a link, hidden granted or not: settings, secrets of the vault, grant storage and history. */
59
+ const protectedSegments = new Set(['.brian', '.git']);
60
+ /**
61
+ * Whether a link may touch a vault-relative path through a raw file route. Segments are compared
62
+ * case-insensitively, since the vault may sit on a case-insensitive disk where `.BRIAN` is `.brian`.
63
+ * The caller normalises the path first and resolves symlinks before it opens anything.
64
+ */
65
+ function vaultLinkPathAccess(path, access) {
66
+ const segments = path.split(/[\\/]+/).filter(Boolean);
67
+ if (segments.some((segment) => protectedSegments.has(segment.toLowerCase())))
68
+ return deny('protected_path');
69
+ if (segments.some((segment) => segment.startsWith('.')) && !access.hidden)
70
+ return deny('hidden_path_not_allowed');
71
+ return allowed;
72
+ }
73
+ /** What the vault's hidden-entry switches become for a link: ordinary dot-entries only with its grant, `.brian` and `.git` never. */
74
+ function linkFilesVisibility(files, access) {
75
+ return { ...files, showHidden: files.showHidden === true && access.hidden, showBrian: false, showGit: false };
76
+ }
77
+ /** The feature whose record a change feed entry names; `undefined` for note content and the vault's configuration, `null` for what no link sees. */
78
+ const changeFeatures = {
79
+ note: undefined, folds: undefined, topology: undefined, settings: undefined,
80
+ board: 'boards', calendar: 'calendars', feed: 'calendars', matrix: 'matrices', dashboard: 'dashboards', space: 'spaces', discovery: 'discovery',
81
+ journal: 'journal', rss: 'rss', 'rss-entries': 'rss', ide: 'ide', 'agent-profiles': 'chat', share: null
82
+ };
83
+ /**
84
+ * Whether a link's change stream carries an entry: a note or its folds only under a content grant and
85
+ * at a path it reaches, a feature's record only with that feature, the vault's settings and schema
86
+ * always (the workspace re-renders from them), and share links never. An unknown kind is withheld.
87
+ */
88
+ function linkSeesChange(change, access) {
89
+ if (!Object.hasOwn(changeFeatures, change.kind))
90
+ return false;
91
+ const feature = changeFeatures[change.kind];
92
+ if (feature === null)
93
+ return false;
94
+ if (feature)
95
+ return access.features.has(feature);
96
+ if (change.kind === 'settings')
97
+ return true;
98
+ if (!linkReachesContent(access))
99
+ return false;
100
+ if (change.kind === 'topology')
101
+ return true;
102
+ return [change.id, change.from].every((path) => path === undefined || vaultLinkPathAccess(path, access).allowed);
103
+ }
104
+ /**
105
+ * The vault's settings as a link's own agent sees them (ENG-430): every feature it may not use now
106
+ * is switched off, so that feature's tools, graph provider and instructions never exist for the run;
107
+ * sharing and MCP are off; and the Files switches show only what the link's hidden grant allows. A copy
108
+ * for reading only: nothing ever writes it back.
109
+ */
110
+ function narrowVaultSettingsForLink(settings, access) {
111
+ const narrowed = structuredClone(settings);
112
+ for (const feature of [...vault_link_features_1.delegableVaultFeatures, ...vault_link_features_1.ownerOnlyVaultFeatures]) {
113
+ const allowed = vault_link_features_1.delegableVaultFeatures.includes(feature) && access.features.has(feature);
114
+ const record = narrowed[feature];
115
+ if (record && typeof record === 'object')
116
+ record.enabled = record.enabled === true && allowed;
117
+ }
118
+ if (narrowed.files)
119
+ narrowed.files = linkFilesVisibility(narrowed.files, access);
120
+ return narrowed;
121
+ }
122
+ const providerFeatures = { boards: 'boards', calendars: 'calendars', matrices: 'matrices', dashboards: 'dashboards', spaces: 'spaces', discovery: 'discovery', journals: 'journal', journal: 'journal', ide: 'ide', rss: 'rss' };
123
+ /** Whether a link sees that a feature's record refers to a note: only with that feature; anything else (share links among them) is withheld. */
124
+ function linkSeesProvider(provider, access) {
125
+ const feature = Object.hasOwn(providerFeatures, provider) ? providerFeatures[provider] : undefined;
126
+ return feature !== undefined && access.features.has(feature);
127
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VaultAccessDeniedError = void 0;
4
+ exports.runWithVaultAccess = runWithVaultAccess;
5
+ exports.currentVaultAccessScope = currentVaultAccessScope;
6
+ exports.requireGraphTarget = requireGraphTarget;
7
+ exports.graphTargetVisible = graphTargetVisible;
8
+ exports.requireVaultPath = requireVaultPath;
9
+ exports.vaultPathVisible = vaultPathVisible;
10
+ exports.revalidateVaultAccess = revalidateVaultAccess;
11
+ // The vault link a piece of work runs for, carried with the work rather than through every signature (ENG-430).
12
+ const node_async_hooks_1 = require("node:async_hooks");
13
+ const errors_1 = require("../errors");
14
+ const vault_access_policy_1 = require("./vault-access-policy");
15
+ const storage = new node_async_hooks_1.AsyncLocalStorage();
16
+ /** Run `work`, and everything it starts, as the link `scope` names. */
17
+ function runWithVaultAccess(scope, work) { return storage.run(scope, work); }
18
+ /** The link the current work runs for; undefined for the owner. */
19
+ function currentVaultAccessScope() { return storage.getStore(); }
20
+ class VaultAccessDeniedError extends errors_1.GraphAgentError {
21
+ constructor(reason, detail = {}) {
22
+ super('vault_access_denied', reason === 'protected_path' || reason === 'hidden_path_not_allowed' ? 'This path is not available through this link.' : reason === 'settings_not_granted' ? 'This link cannot change the vault\'s settings.' : reason === 'owner_only' ? 'Only the vault\'s owner can do this.' : 'This feature is not available through this link.', { reason, ...detail });
23
+ }
24
+ }
25
+ exports.VaultAccessDeniedError = VaultAccessDeniedError;
26
+ function enforce(decision, detail = {}) {
27
+ if (!decision.allowed)
28
+ throw new VaultAccessDeniedError(decision.code, detail);
29
+ }
30
+ /**
31
+ * Asked by a generic graph operation for every target it resolves, before it reads, returns or writes
32
+ * it. A write first re-reads the link, so a grant withdrawn while the work waited stops the commit.
33
+ */
34
+ async function requireGraphTarget(target, action, detail = {}) {
35
+ const scope = storage.getStore();
36
+ if (!scope)
37
+ return;
38
+ const access = action === 'write' ? await scope.revalidate() : scope.current();
39
+ enforce((0, vault_access_policy_1.authorizeGraphTarget)(target, action, access), detail);
40
+ }
41
+ /** Whether the current link may see a target; true for the owner. For filtering results before they are counted or paginated. */
42
+ function graphTargetVisible(target) {
43
+ const scope = storage.getStore();
44
+ return !scope || (0, vault_access_policy_1.authorizeGraphTarget)(target, 'read', scope.current()).allowed;
45
+ }
46
+ /** Asked by a raw file route for every path it reads, lists or changes. */
47
+ function requireVaultPath(path) {
48
+ const scope = storage.getStore();
49
+ if (scope)
50
+ enforce((0, vault_access_policy_1.vaultLinkPathAccess)(path, scope.current()), { path });
51
+ }
52
+ /** Whether the current link may see a path; true for the owner. */
53
+ function vaultPathVisible(path) {
54
+ const scope = storage.getStore();
55
+ return !scope || (0, vault_access_policy_1.vaultLinkPathAccess)(path, scope.current()).allowed;
56
+ }
57
+ /** The commit gate: re-read the link immediately before an atomic mutation, so a revoked link commits nothing. A no-op for the owner. */
58
+ async function revalidateVaultAccess() {
59
+ await storage.getStore()?.revalidate();
60
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.contentVaultFeatures = exports.ownerOnlyVaultFeatures = exports.delegableVaultFeatures = void 0;
4
+ exports.isVaultLinkFeature = isVaultLinkFeature;
5
+ exports.vaultFeatureOn = vaultFeatureOn;
6
+ exports.enabledDelegableFeatures = enabledDelegableFeatures;
7
+ exports.enabledOwnerOnlyFeatures = enabledOwnerOnlyFeatures;
8
+ /**
9
+ * The features an owner may grant a vault link. Each is the key of its switch in `vault.yaml`, so an ID
10
+ * never changes with a label. A feature added later is absent from every stored grant, which denies it.
11
+ */
12
+ exports.delegableVaultFeatures = [
13
+ 'notes', 'types', 'files', 'ide', 'chat', 'boards', 'calendars', 'matrices', 'dashboards', 'spaces', 'discovery',
14
+ 'graph', 'journal', 'dailyNotes', 'rss', 'versioning', 'attachments', 'recordings', 'safeNotes'
15
+ ];
16
+ /**
17
+ * Features that stay the owner's while they are on: Shared notes manages links (re-sharing is not
18
+ * delegated in this step) and MCP hands out a credential. The owner's form lists them as Owner only.
19
+ */
20
+ exports.ownerOnlyVaultFeatures = ['shares', 'mcp'];
21
+ /**
22
+ * The grants that make ordinary note content reachable: a server-owned any-of set, so a request cannot
23
+ * pick its own policy by naming a feature. Utility grants (Attachments, Video recording, Safe notes)
24
+ * work inside a content view and never authorize note CRUD alone.
25
+ */
26
+ exports.contentVaultFeatures = [
27
+ 'notes', 'types', 'files', 'ide', 'chat', 'boards', 'calendars', 'matrices', 'dashboards', 'spaces', 'discovery',
28
+ 'graph', 'journal', 'dailyNotes', 'rss', 'versioning'
29
+ ];
30
+ function isVaultLinkFeature(value) {
31
+ return typeof value === 'string' && exports.delegableVaultFeatures.includes(value);
32
+ }
33
+ /** Whether the vault has a feature switched on now; an absent switch is off. */
34
+ function vaultFeatureOn(settings, feature) {
35
+ if (feature === 'notes')
36
+ return settings.notes?.enabled === true;
37
+ if (feature === 'dailyNotes')
38
+ return settings.dailyNotes?.enabled === true;
39
+ return settings[feature]?.enabled === true;
40
+ }
41
+ /** The delegable features the vault has on, in catalogue order: what a link's form offers. */
42
+ function enabledDelegableFeatures(settings) {
43
+ return exports.delegableVaultFeatures.filter((feature) => vaultFeatureOn(settings, feature));
44
+ }
45
+ /** The owner-only features the vault has on: the form's informational rows. */
46
+ function enabledOwnerOnlyFeatures(settings) {
47
+ return exports.ownerOnlyVaultFeatures.filter((feature) => vaultFeatureOn(settings, feature));
48
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultVaultLinkGrant = defaultVaultLinkGrant;
4
+ exports.validateVaultLinkGrant = validateVaultLinkGrant;
5
+ exports.readStoredVaultLinkGrant = readStoredVaultLinkGrant;
6
+ // What a vault link grants: an explicit list of features, Vault settings and hidden files (ENG-430).
7
+ const errors_1 = require("../errors");
8
+ const records_1 = require("../records");
9
+ const vault_link_features_1 = require("./vault-link-features");
10
+ /** A new link's starting point: every delegable feature the vault has on, settings and hidden off. */
11
+ function defaultVaultLinkGrant(enabled) {
12
+ return { features: vault_link_features_1.delegableVaultFeatures.filter((feature) => enabled.includes(feature)), settings: false, hidden: false };
13
+ }
14
+ /**
15
+ * The owner's input: an unknown or owner-only feature ID is an error, so a form never stores something
16
+ * that silently does nothing. Order and duplicates are normalised to the catalogue.
17
+ */
18
+ function validateVaultLinkGrant(value) {
19
+ if (!(0, records_1.isRecord)(value))
20
+ throw invalidGrant('A vault link grant must be { features, settings, hidden }.');
21
+ if (!Array.isArray(value.features))
22
+ throw invalidGrant('features must be a list of feature IDs.', 'features');
23
+ for (const feature of value.features) {
24
+ if (vault_link_features_1.ownerOnlyVaultFeatures.includes(feature))
25
+ throw invalidGrant(`${String(feature)} stays with the owner and cannot be granted.`, 'features');
26
+ if (!(0, vault_link_features_1.isVaultLinkFeature)(feature))
27
+ throw invalidGrant(`Unknown feature: ${String(feature)}.`, 'features');
28
+ }
29
+ if (value.settings !== undefined && typeof value.settings !== 'boolean')
30
+ throw invalidGrant('settings must be true or false.', 'settings');
31
+ if (value.hidden !== undefined && typeof value.hidden !== 'boolean')
32
+ throw invalidGrant('hidden must be true or false.', 'hidden');
33
+ return normalise(value.features, value.settings === true, value.hidden === true);
34
+ }
35
+ /**
36
+ * A grant as `shares.yaml` holds it. A feature ID this version does not know is dropped rather than
37
+ * failing the file: unknown grants deny, and the rest of the vault's links keep working.
38
+ */
39
+ function readStoredVaultLinkGrant(value) {
40
+ if (!(0, records_1.isRecord)(value) || !Array.isArray(value.features))
41
+ throw invalidGrant('A stored vault link needs a grant with features.');
42
+ return normalise(value.features.filter(vault_link_features_1.isVaultLinkFeature), value.settings === true, value.hidden === true);
43
+ }
44
+ function normalise(features, settings, hidden) {
45
+ return { features: vault_link_features_1.delegableVaultFeatures.filter((feature) => features.includes(feature)), settings, hidden };
46
+ }
47
+ function invalidGrant(message, field) { return new errors_1.GraphAgentError('invalid_share', message, { field: field ? `vault.${field}` : 'vault' }); }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.authorizeSettingsOperation = authorizeSettingsOperation;
4
+ /**
5
+ * Each operation a link may send, with the feature whose own setting it is. An operation not listed
6
+ * here (every `set_<feature>_enabled`, sharing, MCP, the reset) is the owner's: a link with Settings
7
+ * changes the vault's configuration inside its grant, never what the grant reaches, who else it is
8
+ * shared with, or the Danger Zone.
9
+ */
10
+ const linkSettingsOperations = {
11
+ replace_navigation: null, replace_note_editor: null, replace_note_keys: null, replace_color_slots: null, replace_qr_defaults: null,
12
+ set_workspace_tab_style: null, replace_transcription: null, replace_spotlight_config: null, set_embeddings_enabled: null,
13
+ replace_instructions: 'chat', replace_variables: 'chat', add_entity_binding: 'chat', update_entity_binding: 'chat', remove_entity_binding: 'chat', set_agent_editing: 'chat', set_agent_tools: 'chat',
14
+ replace_attachments: 'attachments', set_boards_remove_card: 'boards', replace_daily_notes: 'dailyNotes', replace_files: 'files', replace_ide_formatting: 'ide',
15
+ replace_recordings: 'recordings', replace_safe_folders: 'safeNotes', replace_safe_notes: 'safeNotes', relink_safe_journal_folder: 'safeNotes',
16
+ set_rss_open_inbox: 'rss', set_notes_home: 'notes', set_notes_preview_update: 'notes'
17
+ };
18
+ /**
19
+ * Whether a link may apply `operation` to `current`. Besides the table, two operations carry a field a
20
+ * link could use to widen itself or reach the owner's sharing: the Files switches that show hidden
21
+ * entries, and Safe notes' sharing mode for object links. Those fields must stay as they are.
22
+ */
23
+ function authorizeSettingsOperation(operation, current, access) {
24
+ if (!access.settings)
25
+ return { allowed: false, code: 'settings_not_granted' };
26
+ if (typeof operation.op !== 'string' || !Object.hasOwn(linkSettingsOperations, operation.op))
27
+ return { allowed: false, code: 'owner_only' };
28
+ const feature = linkSettingsOperations[operation.op];
29
+ if (feature && !access.features.has(feature))
30
+ return { allowed: false, code: 'feature_not_granted' };
31
+ if (operation.op === 'relink_safe_journal_folder' && !access.features.has('journal'))
32
+ return { allowed: false, code: 'feature_not_granted' };
33
+ // Showing more hidden entries would widen the link's own hidden reach: only the owner turns those on.
34
+ if (operation.op === 'replace_files') {
35
+ const next = (operation.files ?? {});
36
+ const files = (current.files ?? {});
37
+ if (['showHidden', 'showBrian', 'showGit'].some((key) => next[key] === true && files[key] !== true))
38
+ return { allowed: false, code: 'owner_only' };
39
+ }
40
+ // How object links carry encrypted text is the owner's sharing, not this vault's editing.
41
+ if (operation.op === 'replace_safe_notes' && operation.safeNotes?.sharing !== (current.safeNotes?.sharing ?? 'copy'))
42
+ return { allowed: false, code: 'owner_only' };
43
+ return { allowed: true };
44
+ }