braian 0.0.4 → 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 (712) hide show
  1. package/README.md +31 -7
  2. package/bin/braian.mjs +339 -60
  3. package/bin/launch-target.mjs +15 -27
  4. package/bin/node-version.mjs +72 -0
  5. package/bin/run-state.mjs +203 -0
  6. package/dist/agent/graph-agent.service.js +43 -0
  7. package/dist/app.module.js +4 -0
  8. package/dist/auth/auth.controller.js +2 -2
  9. package/dist/auth/auth.guard.js +34 -5
  10. package/dist/auth/auth.module.js +13 -2
  11. package/dist/auth/auth.service.js +8 -2
  12. package/dist/auth/link-route-policies.js +267 -0
  13. package/dist/auth/link-route-policy.js +27 -0
  14. package/dist/auth/vault-access-denied.filter.js +30 -0
  15. package/dist/auth/vault-access.interceptor.js +45 -0
  16. package/dist/auth/vault-link-principal.js +15 -0
  17. package/dist/auth/vault-link-sessions.service.js +186 -0
  18. package/dist/bootstrap.js +9 -1
  19. package/dist/collab/collab.service.js +12 -2
  20. package/dist/desktop/exposure.js +7 -1
  21. package/dist/entity/entity.controller.js +9 -1
  22. package/dist/events/vault-events.service.js +17 -4
  23. package/dist/files/dto/vault-files.dto.js +113 -6
  24. package/dist/files/file-url-signer.js +37 -11
  25. package/dist/files/files-http-error.js +1 -1
  26. package/dist/files/vault-file-archive.service.js +19 -4
  27. package/dist/files/vault-file-content.controller.js +29 -1
  28. package/dist/files/vault-file-content.service.js +18 -2
  29. package/dist/http/api-controllers.js +12 -0
  30. package/dist/http/log-redaction.js +23 -0
  31. package/dist/http/published-page-address.js +58 -0
  32. package/dist/http/request-guards.js +51 -1
  33. package/dist/http/security-headers.js +2 -1
  34. package/dist/http/vault-http-error.js +4 -1
  35. package/dist/http/web-app-fallback.js +37 -0
  36. package/dist/journal/active-journal.dto.js +4 -3
  37. package/dist/logging/logging.middleware.js +3 -1
  38. package/dist/main.js +3 -0
  39. package/dist/mcp/mcp-path.js +12 -0
  40. package/dist/mcp/mcp-settings.controller.js +78 -0
  41. package/dist/mcp/mcp.controller.js +147 -0
  42. package/dist/mcp/mcp.dto.js +53 -0
  43. package/dist/mcp/mcp.module.js +20 -0
  44. package/dist/mcp/mcp.service.js +117 -0
  45. package/dist/navigation/navigation.service.js +16 -1
  46. package/dist/providers/claude-messages-model.js +2 -2
  47. package/dist/providers/model-provider.service.js +74 -11
  48. package/dist/providers/provider-catalog-storage.js +4 -3
  49. package/dist/providers/provider-model-catalog.js +46 -0
  50. package/dist/providers/provider.controller.js +83 -0
  51. package/dist/rss/rss-profiles.controller.js +167 -0
  52. package/dist/rss/rss-profiles.dto.js +512 -0
  53. package/dist/rss/rss-profiles.service.js +149 -0
  54. package/dist/rss/rss.module.js +5 -2
  55. package/dist/search/search-database.service.js +40 -24
  56. package/dist/search/search-embedding-settings.controller.js +82 -0
  57. package/dist/search/search-embedding.service.js +33 -28
  58. package/dist/search/search-index-health.js +1 -1
  59. package/dist/search/search-sync.service.js +8 -0
  60. package/dist/search/search.controller.js +34 -54
  61. package/dist/search/search.module.js +3 -3
  62. package/dist/sessions/agent-runs.controller.js +3 -3
  63. package/dist/sessions/dto/graph-session.dto.js +6 -5
  64. package/dist/sessions/sessions.service.js +33 -1
  65. package/dist/settings/settings.controller.js +11 -0
  66. package/dist/settings/settings.dto.js +29 -24
  67. package/dist/settings/settings.service.js +6 -0
  68. package/dist/shares/share-http-error.js +2 -2
  69. package/dist/shares/share.dto.js +74 -16
  70. package/dist/shares/shared-webpage-headers.js +45 -0
  71. package/dist/shares/shared-webpage.controller.js +179 -0
  72. package/dist/shares/shares.controller.js +3 -3
  73. package/dist/shares/shares.module.js +2 -1
  74. package/dist/shares/shares.service.js +11 -4
  75. package/dist/sqlite-files/vault-sqlite.service.js +1 -0
  76. package/dist/vault-access/vault-access.controller.js +73 -0
  77. package/dist/vault-access/vault-access.dto.js +28 -0
  78. package/dist/vault-access/vault-access.module.js +19 -0
  79. package/dist/vault-access/vault-access.service.js +49 -0
  80. package/dist/vaults/vault.controller.js +61 -0
  81. package/dist/vaults/vault.dto.js +188 -50
  82. package/dist/vaults/vaults.module.js +2 -1
  83. package/dist/vaults/vaults.service.js +58 -2
  84. package/dist/versioning/versioning.service.js +47 -8
  85. package/dist/workspace/workspace-config.js +3 -3
  86. package/node_modules/@braian/ai-providers/dist/index.js +13 -3
  87. package/node_modules/@braian/ai-providers/dist/jev-routing.js +41 -13
  88. package/node_modules/@braian/ai-providers/dist/openrouter-catalog.js +57 -0
  89. package/node_modules/@braian/ai-providers/dist/provider-catalog.js +47 -2
  90. package/node_modules/@braian/ai-providers/dist/providers-models.js +27 -7
  91. package/node_modules/@braian/graph-agent/assets/agent-instructions/default/26-schema.md +1 -1
  92. package/node_modules/@braian/graph-agent/dist/agent-features.js +1 -1
  93. package/node_modules/@braian/graph-agent/dist/agent-profiles/registry.js +9 -0
  94. package/node_modules/@braian/graph-agent/dist/agent-profiles/tool-catalog.js +4 -4
  95. package/node_modules/@braian/graph-agent/dist/agent-runs/run-registry.js +1 -1
  96. package/node_modules/@braian/graph-agent/dist/auth-registry.js +29 -0
  97. package/node_modules/@braian/graph-agent/dist/boards/boards-settings.js +20 -0
  98. package/node_modules/@braian/graph-agent/dist/boards/index.js +5 -0
  99. package/node_modules/@braian/graph-agent/dist/data-workspace.js +171 -14
  100. package/node_modules/@braian/graph-agent/dist/demo-vaults.js +348 -0
  101. package/node_modules/@braian/graph-agent/dist/feature-switch.js +6 -2
  102. package/node_modules/@braian/graph-agent/dist/files-settings.js +10 -2
  103. package/node_modules/@braian/graph-agent/dist/graph-agent.js +40 -7
  104. package/node_modules/@braian/graph-agent/dist/ide/ide-settings.js +58 -0
  105. package/node_modules/@braian/graph-agent/dist/ide/index.js +6 -0
  106. package/node_modules/@braian/graph-agent/dist/ide-layout.js +1 -1
  107. package/node_modules/@braian/graph-agent/dist/index.js +45 -6
  108. package/node_modules/@braian/graph-agent/dist/journal-reflection.js +2 -1
  109. package/node_modules/@braian/graph-agent/dist/locked-graph-store.js +11 -2
  110. package/node_modules/@braian/graph-agent/dist/mcp-tokens.js +62 -0
  111. package/node_modules/@braian/graph-agent/dist/mentioned-notes-input.js +1 -1
  112. package/node_modules/@braian/graph-agent/dist/navigation-settings.js +20 -14
  113. package/node_modules/@braian/graph-agent/dist/note-collab-policy.js +4 -1
  114. package/node_modules/@braian/graph-agent/dist/note-collab-projection.js +4 -3
  115. package/node_modules/@braian/graph-agent/dist/note-collab-registry.js +12 -9
  116. package/node_modules/@braian/graph-agent/dist/note-collab-session.js +2 -1
  117. package/node_modules/@braian/graph-agent/dist/note-editor/index.js +13 -0
  118. package/node_modules/@braian/graph-agent/dist/note-editor/note-editor-settings.js +98 -0
  119. package/node_modules/@braian/graph-agent/dist/note-key-settings.js +34 -2
  120. package/node_modules/@braian/graph-agent/dist/rss/index.js +45 -1
  121. package/node_modules/@braian/graph-agent/dist/rss/rss-feed-parse.js +18 -1
  122. package/node_modules/@braian/graph-agent/dist/rss/rss-profile-model.js +378 -0
  123. package/node_modules/@braian/graph-agent/dist/rss/rss-profile-store.js +179 -0
  124. package/node_modules/@braian/graph-agent/dist/rss/rss-profile-test.js +120 -0
  125. package/node_modules/@braian/graph-agent/dist/rss/rss-profile-use-cases.js +76 -0
  126. package/node_modules/@braian/graph-agent/dist/rss/rss-settings.js +15 -0
  127. package/node_modules/@braian/graph-agent/dist/screen-context-input.js +1 -1
  128. package/node_modules/@braian/graph-agent/dist/secret-masking.js +54 -15
  129. package/node_modules/@braian/graph-agent/dist/secret-vault.js +48 -3
  130. package/node_modules/@braian/graph-agent/dist/session-registry.js +3 -2
  131. package/node_modules/@braian/graph-agent/dist/settings-registry.js +21 -178
  132. package/node_modules/@braian/graph-agent/dist/settings-reset/index.js +9 -0
  133. package/node_modules/@braian/graph-agent/dist/settings-reset/settings-reset.js +85 -0
  134. package/node_modules/@braian/graph-agent/dist/share-edit-references.js +15 -14
  135. package/node_modules/@braian/graph-agent/dist/share-policy.js +86 -21
  136. package/node_modules/@braian/graph-agent/dist/share-registry.js +18 -11
  137. package/node_modules/@braian/graph-agent/dist/share-target-description.js +6 -0
  138. package/node_modules/@braian/graph-agent/dist/share-use-cases.js +99 -3
  139. package/node_modules/@braian/graph-agent/dist/share-webpage-links.js +40 -0
  140. package/node_modules/@braian/graph-agent/dist/shared-dashboard-view.js +2 -1
  141. package/node_modules/@braian/graph-agent/dist/spotlight-settings.js +2 -15
  142. package/node_modules/@braian/graph-agent/dist/standalone-pages.js +111 -0
  143. package/node_modules/@braian/graph-agent/dist/tools.js +4 -2
  144. package/node_modules/@braian/graph-agent/dist/types.js +7 -0
  145. package/node_modules/@braian/graph-agent/dist/vault-access/index.js +36 -0
  146. package/node_modules/@braian/graph-agent/dist/vault-access/vault-access-policy.js +127 -0
  147. package/node_modules/@braian/graph-agent/dist/vault-access/vault-access-scope.js +60 -0
  148. package/node_modules/@braian/graph-agent/dist/vault-access/vault-link-features.js +48 -0
  149. package/node_modules/@braian/graph-agent/dist/vault-access/vault-link-grant.js +47 -0
  150. package/node_modules/@braian/graph-agent/dist/vault-access/vault-settings-access.js +44 -0
  151. package/node_modules/@braian/graph-agent/dist/vault-changes.js +3 -0
  152. package/node_modules/@braian/graph-agent/dist/vault-files.js +73 -14
  153. package/node_modules/@braian/graph-agent/dist/vault-settings-operations.js +43 -12
  154. package/node_modules/@braian/graph-agent/dist/vault-settings-registry.js +111 -20
  155. package/node_modules/@braian/html-standalone/dist/css.js +44 -0
  156. package/node_modules/@braian/html-standalone/dist/data-uri.js +48 -0
  157. package/node_modules/@braian/html-standalone/dist/html.js +118 -0
  158. package/node_modules/@braian/html-standalone/dist/index.js +9 -0
  159. package/node_modules/@braian/html-standalone/dist/local-reference.js +64 -0
  160. package/node_modules/@braian/html-standalone/dist/standalone.js +143 -0
  161. package/node_modules/@braian/html-standalone/package.json +22 -0
  162. package/node_modules/@braian/sqlite-browser/dist/execute.js +47 -2
  163. package/node_modules/@braian/vault-fs-sdk/dist/fs-vault-strategy.js +23 -0
  164. package/node_modules/@braian/vault-fs-sdk/dist/index.js +5 -1
  165. package/node_modules/@braian/vault-fs-sdk/dist/vault-index.js +5 -0
  166. package/node_modules/@braian/voice-transcription/dist/transcribe.js +1 -1
  167. package/package.json +7 -2
  168. package/public/assets/{ArrowClockwise.es-DWqWLk15.js → ArrowClockwise.es-3-WDmIeI.js} +1 -1
  169. package/public/assets/{ArrowDown.es-COHGTGu_.js → ArrowDown.es--soRLxEp.js} +1 -1
  170. package/public/assets/{ArrowLeft.es-Dvz_4AVp.js → ArrowLeft.es-CbZG51Gr.js} +1 -1
  171. package/public/assets/{ArrowSquareOut.es-ssfQ7LE-.js → ArrowSquareOut.es-yh2fX_Cs.js} +1 -1
  172. package/public/assets/{ArrowUp.es-DflnZKsA.js → ArrowUp.es-CIIkDrf9.js} +1 -1
  173. package/public/assets/{ArrowsClockwise.es-DSXy5pW3.js → ArrowsClockwise.es-D0399ubU.js} +1 -1
  174. package/public/assets/{ArrowsIn.es-B4Aie-uw.js → ArrowsIn.es-B54L_O6A.js} +1 -1
  175. package/public/assets/Browser.es-BqZU_2qv.js +1 -0
  176. package/public/assets/Circle.es-j7f1_WI9.js +1 -0
  177. package/public/assets/{Clock.es-D6bs8ZLR.js → Clock.es-DkUjmG8U.js} +1 -1
  178. package/public/assets/{Copy.es-CglRiQSZ.js → Copy.es-DfOdr0jv.js} +1 -1
  179. package/public/assets/CopySimple.es-BBthx5Du.js +1 -0
  180. package/public/assets/CornersOut.es-Cd9DgMlt.js +1 -0
  181. package/public/assets/Crosshair.es-9qdLaRA1.js +1 -0
  182. package/public/assets/{Desktop.es-DVtEXtRb.js → Desktop.es-DSRSg0hy.js} +1 -1
  183. package/public/assets/{DotsSixVertical.es-B7kGbvvH.js → DotsSixVertical.es-Cg2wLxmG.js} +1 -1
  184. package/public/assets/{Eye.es-DKoV8w-8.js → Eye.es-CxGbwLRS.js} +1 -1
  185. package/public/assets/{EyeSlash.es-C_H7lJGL.js → EyeSlash.es-DfTto7s1.js} +1 -1
  186. package/public/assets/{File.es-47KQbmb4.js → File.es-D3fdUSmS.js} +1 -1
  187. package/public/assets/FloppyDisk.es-CVEXDdFf.js +1 -0
  188. package/public/assets/{Folder.es-DKrkcRQj.js → Folder.es-BUMi6qzZ.js} +1 -1
  189. package/public/assets/{FolderOpen.es-DaW9wv8-.js → FolderOpen.es-FcjULnXZ.js} +1 -1
  190. package/public/assets/{FolderPlus.es-D0scempH.js → FolderPlus.es-Deuvtys5.js} +1 -1
  191. package/public/assets/GearSix.es-CWRB8Up2.js +1 -0
  192. package/public/assets/List.es-C0rMRBfB.js +1 -0
  193. package/public/assets/{ListBullets.es-DGeupXZ3.js → ListBullets.es-B7JvZb2M.js} +1 -1
  194. package/public/assets/{LockSimple.es-DiQO6y_F.js → LockSimple.es-D5Ul9U6c.js} +1 -1
  195. package/public/assets/LockSimpleOpen.es-C2JGRKEE.js +1 -0
  196. package/public/assets/{MagnifyingGlass.es-CHks7m9E.js → MagnifyingGlass.es-BPnvTl_3.js} +1 -1
  197. package/public/assets/{Microphone.es-CQat-MJ8.js → Microphone.es-BXBLW9YD.js} +1 -1
  198. package/public/assets/{Play.es-h1Fhb5wo.js → Play.es-BT5cMJ7L.js} +1 -1
  199. package/public/assets/{Plus.es-B-svcAlu.js → Plus.es-aakfbgmy.js} +1 -1
  200. package/public/assets/{Prohibit.es-M5ljYyQ3.js → Prohibit.es-pwiGfWLj.js} +1 -1
  201. package/public/assets/{QrCode.es-CVlyfpjq.js → QrCode.es-DCPGPGYZ.js} +1 -1
  202. package/public/assets/ShareNetwork-CTDRol5F.css +1 -0
  203. package/public/assets/ShareNetwork.es-Do0IWaE9.js +3 -0
  204. package/public/assets/SidebarSimple.es-UdNMyfL-.js +1 -0
  205. package/public/assets/{SlidersHorizontal.es-DkPz8o7o.js → SlidersHorizontal.es-957OxRrd.js} +1 -1
  206. package/public/assets/{TextAa.es-CymAJ91v.js → TextAa.es-8d8-rRe1.js} +1 -1
  207. package/public/assets/{Trash.es-B7UVM9v_.js → Trash.es-chxTwNhO.js} +1 -1
  208. package/public/assets/WarningCircle.es-CF4lQ1bU.js +1 -0
  209. package/public/assets/advanced-security-B_SegWCz.js +1 -0
  210. package/public/assets/agent-profiles-settings-DZv5BUzj.js +1 -0
  211. package/public/assets/appearance-settings-module-DlOVkZXP.js +1 -0
  212. package/public/assets/{ar-SA-G6X2FPQ2-BPq1dwIU.js → ar-SA-G6X2FPQ2-DZP7qz6u.js} +1 -1
  213. package/public/assets/{attachment-embed-Bt5qCuKC.css → attachment-embed-CJkoG50a.css} +1 -1
  214. package/public/assets/attachment-embed-DVbcGTLJ.js +1 -0
  215. package/public/assets/attachments-settings-BuqoRFuK.js +1 -0
  216. package/public/assets/az-AZ-76LH7QW2-ByX_zd4F.js +1 -0
  217. package/public/assets/{bg-BG-XCXSNQG7-CpTkmSSX.js → bg-BG-XCXSNQG7-wxiUF1_6.js} +1 -1
  218. package/public/assets/blue-pgMgVzKw.css +1 -0
  219. package/public/assets/{bn-BD-2XOGV67Q-BDMEyCuA.js → bn-BD-2XOGV67Q-BBIhV1oq.js} +1 -1
  220. package/public/assets/{board-workspace-D9prroo0.css → board-workspace-CUeGZca9.css} +1 -1
  221. package/public/assets/board-workspace-pt2JAfWJ.js +1 -0
  222. package/public/assets/boards-settings-module-CaOcLdGN.js +1 -0
  223. package/public/assets/{boards-view-B1B8wHHn.js → boards-view-DEVAYmzH.js} +1 -1
  224. package/public/assets/{ca-ES-6MX7JW3Y-D0UEot-K.js → ca-ES-6MX7JW3Y-CKplVKfE.js} +1 -1
  225. package/public/assets/calendar-view-B-w_4BV-.js +1 -0
  226. package/public/assets/calendar-workspace-BiPYwfJr.js +1 -0
  227. package/public/assets/{calendars-settings-module-ActBZM9v.js → calendars-settings-module-DuwhjpAm.js} +1 -1
  228. package/public/assets/card-fields-BJ9YVWI0.css +1 -0
  229. package/public/assets/{card-fields-nzhTsBAW.js → card-fields-iDvc1GXx.js} +1 -1
  230. package/public/assets/{chat-composer-editor-CRtsZz3W.js → chat-composer-editor-CPfqqfXn.js} +1 -1
  231. package/public/assets/chat-message-list-Ds52ru39.js +1 -0
  232. package/public/assets/chunk-6U3AYISY-C6-Mtja1.js +12 -0
  233. package/public/assets/{chunk-EIO257PC-CGqfS2j0.js → chunk-EIO257PC-DvUJi4Nw.js} +1 -1
  234. package/public/assets/chunk-K2UTITRG-ZTIxemJp.js +41 -0
  235. package/public/assets/chunk-SRAX5OIU-wzfotNc-.js +1 -0
  236. package/public/assets/chunk-Z3N5DIM6-D9TMVU7m.js +1 -0
  237. package/public/assets/{code-editor-DnrGU9QQ.js → code-editor-BTcitmHE.js} +1 -1
  238. package/public/assets/code-editor-DIB7VOIc.css +1 -0
  239. package/public/assets/{color-picker-Cmg2HIDb.css → color-picker-BV0aOd4w.css} +1 -1
  240. package/public/assets/color-picker-WHiWktCJ.js +1 -0
  241. package/public/assets/{contents-view-C6RdJxE2.js → contents-view-DOVe1FVg.js} +1 -1
  242. package/public/assets/contents-view-XuasBH0m.css +1 -0
  243. package/public/assets/{conversation-debug-panel-DIjQShXO.js → conversation-debug-panel-C73_GL9P.js} +1 -1
  244. package/public/assets/{settings-view-6_hMxTXD.css → core-settings-module-DNS3W-dj.css} +1 -1
  245. package/public/assets/core-settings-module-_wQSD6hP.js +4 -0
  246. package/public/assets/create-note-popup-B-wM8Q5O.js +1 -0
  247. package/public/assets/{cs-CZ-2BRQDIVT-DvEBYfBD.js → cs-CZ-2BRQDIVT-CHlJO48i.js} +1 -1
  248. package/public/assets/{cypher-editor-Cdd9vqJj.js → cypher-editor-M9g--02t.js} +1 -1
  249. package/public/assets/{da-DK-5WZEPLOC-nBVf9B0e.js → da-DK-5WZEPLOC-B2KbOKlk.js} +1 -1
  250. package/public/assets/daily-notes-settings-CrgXHhLI.js +1 -0
  251. package/public/assets/{dashboard-grid-BvlcalWZ.js → dashboard-grid-BZ8kYdV4.js} +2 -2
  252. package/public/assets/dashboard-workspace-CIhpZ3rj.js +4 -0
  253. package/public/assets/dashboard-workspace-ChhR6uFw.css +1 -0
  254. package/public/assets/{dashboards-settings-module-CMkRnuLc.js → dashboards-settings-module-CUyrJjUX.js} +1 -1
  255. package/public/assets/dashboards-view-CkheD5RG.js +1 -0
  256. package/public/assets/{de-DE-XR44H4JA-wIoI5uHM.js → de-DE-XR44H4JA-CraH52sB.js} +1 -1
  257. package/public/assets/{desktop-server-settings-j8RrUDQh.js → desktop-server-settings-CDuPB2R6.js} +1 -1
  258. package/public/assets/discovery-create-popup-aCpL7caq.js +1 -0
  259. package/public/assets/discovery-import-popup-qmw9XOW8.js +1 -0
  260. package/public/assets/{discovery-settings-module-CSz3wdqd.js → discovery-settings-module-BiY4ib2N.js} +1 -1
  261. package/public/assets/discovery-view-CPYP4CTN.js +1 -0
  262. package/public/assets/discovery-workspace-COn6jS_C.js +2 -0
  263. package/public/assets/{dist-tLZONR8L.js → dist-BmY58onI.js} +1 -1
  264. package/public/assets/drag-preview-i140CAXv.js +1 -0
  265. package/public/assets/{drawing-note-BZkhWRBb.js → drawing-note-CZIRcZb4.js} +1 -1
  266. package/public/assets/{el-GR-BZB4AONW-BoxDB0UD.js → el-GR-BZB4AONW-hWxkjrdo.js} +1 -1
  267. package/public/assets/en-B4ZKOASM-CDD2_KUt.js +1 -0
  268. package/public/assets/{es-ES-U4NZUMDT-BTF8-J9f.js → es-ES-U4NZUMDT-D3W7yrM9.js} +1 -1
  269. package/public/assets/{esm-zhVSGSwY.js → esm-BwVJXUDM.js} +1 -1
  270. package/public/assets/{eu-ES-A7QVB2H4-PqSQa04Y.js → eu-ES-A7QVB2H4-C6t3pMxo.js} +1 -1
  271. package/public/assets/export-formats-BEyzF7fr.js +1 -0
  272. package/public/assets/{fa-IR-HGAKTJCU-B03HX6BC.js → fa-IR-HGAKTJCU-DJOOVnVh.js} +1 -1
  273. package/public/assets/{feature-switch-section-CDTUV6B-.js → feature-switch-section-DWkHmh9Q.js} +1 -1
  274. package/public/assets/{fi-FI-Z5N7JZ37-D5Rn9AGc.js → fi-FI-Z5N7JZ37-DEhnpOQb.js} +1 -1
  275. package/public/assets/file-editor-BMcxRFx_.css +1 -0
  276. package/public/assets/file-editor-WXaKLCia.js +3 -0
  277. package/public/assets/{file-language-C8bPT8Wh.js → file-language-BAXzYrUs.js} +1 -1
  278. package/public/assets/file-picker-Bo4sE6ud.css +1 -0
  279. package/public/assets/file-picker-DalNc5HP.js +1 -0
  280. package/public/assets/file-preview-B2sjiYV9.css +1 -0
  281. package/public/assets/file-preview-CBXgB9qm.js +1 -0
  282. package/public/assets/{file-preview-media-CNZHdx05.js → file-preview-media-D5_7dD-7.js} +1 -1
  283. package/public/assets/file-references-api-IoK82adM.js +1 -0
  284. package/public/assets/files-settings-module-DTmzlXAF.js +1 -0
  285. package/public/assets/files-view-D7awxVSV.js +3 -0
  286. package/public/assets/files-view-DyPI1vLx.css +1 -0
  287. package/public/assets/{format-panel-value-DYwL3ttM.js → format-panel-value-Qry4ewBT.js} +1 -1
  288. package/public/assets/format-rules-BFnbjJsr.js +1 -0
  289. package/public/assets/{fr-FR-RHASNOE6-BoIuGpVa.js → fr-FR-RHASNOE6-D9pFTuqa.js} +1 -1
  290. package/public/assets/{gl-ES-HMX3MZ6V-R9gfMkm_.js → gl-ES-HMX3MZ6V-CIK6mfAj.js} +1 -1
  291. package/public/assets/graph-explorer-DEddRhZU.js +329 -0
  292. package/public/assets/graph-settings-module-CdwcXpWv.js +1 -0
  293. package/public/assets/{he-IL-6SHJWFNN-DLh6r8yJ.js → he-IL-6SHJWFNN-sIPLWf4m.js} +1 -1
  294. package/public/assets/{hi-IN-IWLTKZ5I-DsP1yUVR.js → hi-IN-IWLTKZ5I-BUJucdSj.js} +1 -1
  295. package/public/assets/{hu-HU-A5ZG7DT2-ttWV7_mJ.js → hu-HU-A5ZG7DT2-B29-4soS.js} +1 -1
  296. package/public/assets/icons-BQSaMzmI.js +1 -0
  297. package/public/assets/{id-ID-SAP4L64H-DIFD1Rmb.js → id-ID-SAP4L64H-CyIfHt3t.js} +1 -1
  298. package/public/assets/ide-settings-module-DmJJdyaW.js +1 -0
  299. package/public/assets/ide-view-BhQVUYYS.js +1 -0
  300. package/public/assets/ide-view-Cou_U3E6.css +1 -0
  301. package/public/assets/image-GAAHSSAO-BxryKUrU.js +1 -0
  302. package/public/assets/imap-accounts-my6l8ble.js +1 -0
  303. package/public/assets/index-CfVw4gte.js +9 -0
  304. package/public/assets/index-CuWXx5Sr.css +1 -0
  305. package/public/assets/{it-IT-JPQ66NNP-D9CIdJgS.js → it-IT-JPQ66NNP-Dq23HshR.js} +1 -1
  306. package/public/assets/{ja-JP-DBVTYXUO-CYn7dH3E.js → ja-JP-DBVTYXUO-8NNxRVWb.js} +1 -1
  307. package/public/assets/journal-create-popup-DsFTus7q.js +1 -0
  308. package/public/assets/journal-day-route-BX4-KaSl.js +1 -0
  309. package/public/assets/journal-folder-field-hSCfQuop.js +1 -0
  310. package/public/assets/journal-page-CoLcbMGG.css +1 -0
  311. package/public/assets/journal-page-CuUs4DCL.js +2 -0
  312. package/public/assets/journal-settings-BeM9sz5z.js +1 -0
  313. package/public/assets/journal-typography-BB4TqmXu.js +1 -0
  314. package/public/assets/journal-writing-route-Ba7mqWJS.js +1 -0
  315. package/public/assets/journals-view-Cf89lTyQ.js +1 -0
  316. package/public/assets/kaa-6HZHGXH3-DWQlZzTI.js +1 -0
  317. package/public/assets/{kab-KAB-ZGHBKWFO-BnEoO3f6.js → kab-KAB-ZGHBKWFO-BCP7pvXg.js} +1 -1
  318. package/public/assets/kk-KZ-P5N5QNE5-xOkOQsTw.js +1 -0
  319. package/public/assets/{km-KH-HSX4SM5Z-DO6DHT6h.js → km-KH-HSX4SM5Z-D0xjNROe.js} +1 -1
  320. package/public/assets/{ko-KR-MTYHY66A-Ch6OwlXE.js → ko-KR-MTYHY66A-E5aEyLj-.js} +1 -1
  321. package/public/assets/{ku-TR-6OUDTVRD-C9KHFYbx.js → ku-TR-6OUDTVRD-CDQOo-yR.js} +1 -1
  322. package/public/assets/link-choices-CRTxLpuA.js +1 -0
  323. package/public/assets/link-entry-route-C1tWLndS.js +1 -0
  324. package/public/assets/link-file-browser-RuO2yY0g.js +1 -0
  325. package/public/assets/{link-kind-icon-r9mUfWOh.js → link-kind-icon-BgeZ5N-E.js} +1 -1
  326. package/public/assets/link-picker-CWK41zM0.js +2 -0
  327. package/public/assets/locked-shares-prompt-eH6sWg93.js +1 -0
  328. package/public/assets/{logging-settings-contribution-C55dtngt.js → logging-settings-contribution-Btq9ioZn.js} +1 -1
  329. package/public/assets/logic-CiFwn-O5.js +28 -0
  330. package/public/assets/long-press-C_vMz2E6.js +1 -0
  331. package/public/assets/{lt-LT-XHIRWOB4-CrK3hZ26.js → lt-LT-XHIRWOB4-CZPudjgc.js} +1 -1
  332. package/public/assets/{lv-LV-5QDEKY6T-BOA9oRt-.js → lv-LV-5QDEKY6T-BFIvtooB.js} +1 -1
  333. package/public/assets/markdown-message-BmuXZdEl.js +3 -0
  334. package/public/assets/markdown-message-CEFw-l9n.css +1 -0
  335. package/public/assets/markdown-task-toggle-BdNMBrC0.css +1 -0
  336. package/public/assets/markdown-task-toggle-j4VvSqsD.js +4 -0
  337. package/public/assets/{matrices-settings-module-DPI1_WsY.js → matrices-settings-module-CoOYPwEU.js} +1 -1
  338. package/public/assets/matrices-view-CcjCls3L.js +1 -0
  339. package/public/assets/matrix-workspace-98WdHTfO.js +1 -0
  340. package/public/assets/{maximize-2-C6N1RKlt.js → maximize-2-BOW9VTPW.js} +1 -1
  341. package/public/assets/mermaid-diagram-kld9fHwj.js +1 -0
  342. package/public/assets/{mobile-file-text-B4j-_eP4.js → mobile-file-text-BqyOwF0N.js} +1 -1
  343. package/public/assets/mobile-note-content-editor-BPxespTd.js +2 -0
  344. package/public/assets/{mobile-panel-layer-C2OowtdM.js → mobile-panel-layer-CA_yph77.js} +1 -1
  345. package/public/assets/model-provider-settings-contribution-CECr7FiG.js +1 -0
  346. package/public/assets/model-providers-Ptlz_trq.js +1 -0
  347. package/public/assets/move-destination-2AXvBdlJ.js +1 -0
  348. package/public/assets/move-entries-dialog-BEJJSv8J.js +1 -0
  349. package/public/assets/{mr-IN-CRQNXWMA-GWTqYMNI.js → mr-IN-CRQNXWMA-DmnSBhlL.js} +1 -1
  350. package/public/assets/my-MM-5M5IBNSE-DDu4zmzX.js +1 -0
  351. package/public/assets/{nb-NO-T6EIAALU-DyrWt8fZ.js → nb-NO-T6EIAALU-BLzt9sXj.js} +1 -1
  352. package/public/assets/{nl-NL-IS3SIHDZ-COWPkkr8.js → nl-NL-IS3SIHDZ-FtFhrALS.js} +1 -1
  353. package/public/assets/{nn-NO-6E72VCQL-8aH2uP9Y.js → nn-NO-6E72VCQL-B_SymEE5.js} +1 -1
  354. package/public/assets/note-body-focus-d1lrm6Vw.js +1 -0
  355. package/public/assets/note-collab-provider-B5sEpjH1.js +1 -0
  356. package/public/assets/note-collab-transport-HTl4Zdug.js +1 -0
  357. package/public/assets/note-create-settings-module-iEVdyRFV.js +1 -0
  358. package/public/assets/{note-documents-DCd2HaSQ.js → note-documents-BPTwtsVi.js} +2 -2
  359. package/public/assets/note-editor-container-Ct9S4xJq.css +1 -0
  360. package/public/assets/note-editor-container-DzXoYKkT.js +2 -0
  361. package/public/assets/note-editor-settings-module-BZalej3y.js +1 -0
  362. package/public/assets/note-excalidraw-editor-CYHK-nyq.js +118 -0
  363. package/public/assets/note-excalidraw-editor-DVHMAsgJ.css +1 -0
  364. package/public/assets/{note-export-api-2u0sbOpc.js → note-export-api-Cdb5DLzA.js} +1 -1
  365. package/public/assets/note-export-flow-CfLnfRzg.js +1 -0
  366. package/public/assets/{note-filter-rule-rows-BajgD2k3.js → note-filter-rule-rows-DmVis2Dw.js} +1 -1
  367. package/public/assets/note-folds-settings-module-DeVre4gm.js +1 -0
  368. package/public/assets/note-frontmatter-summary-DNdQjzv5.js +1 -0
  369. package/public/assets/note-history-retention-B5aE8fKh.js +1 -0
  370. package/public/assets/note-link-list-C2i2SrSh.css +1 -0
  371. package/public/assets/note-link-list-DD4FzeUb.js +2 -0
  372. package/public/assets/note-markdown-editor-BlWCUXb9.js +26 -0
  373. package/public/assets/note-markdown-editor-Dp1k8dWQ.css +1 -0
  374. package/public/assets/{note-outline-CNoqBtUP.js → note-outline-C-dPTJrB.js} +2 -2
  375. package/public/assets/note-outline-DTpLzjGU.css +1 -0
  376. package/public/assets/note-page-content-CZH9UDn0.js +2 -0
  377. package/public/assets/{note-page-editor-BgcMK_4q.css → note-page-editor-D7Wt_Giv.css} +1 -1
  378. package/public/assets/{note-page-editor-rhBoxKYB.js → note-page-editor-D8M6gjmG.js} +4 -4
  379. package/public/assets/note-path-breadcrumb-CLfo-0XG.js +1 -0
  380. package/public/assets/{note-path-breadcrumb-YC4bHnwX.css → note-path-breadcrumb-Drkebhvm.css} +1 -1
  381. package/public/assets/{note-picker-BD8rmAOq.js → note-picker-DIFcqGgZ.js} +1 -1
  382. package/public/assets/note-picker-KBB6aonj.css +1 -0
  383. package/public/assets/{note-picker-popover-DI9Wc706.js → note-picker-popover-CoT73GG-.js} +1 -1
  384. package/public/assets/note-shares-popup-CmUAI6V-.js +1 -0
  385. package/public/assets/note-side-panel-BFno3955.js +1 -0
  386. package/public/assets/note-side-panel-DLOy2dVw.css +1 -0
  387. package/public/assets/note-side-panel-host-iIfi_4c4.js +1 -0
  388. package/public/assets/note-source-editor-CVo_ZXww.js +1 -0
  389. package/public/assets/{note-type-grid-BFX3oTAC.js → note-type-grid-Bfdc8U-T.js} +2 -2
  390. package/public/assets/{note-type-grid-BM33ZYF-.css → note-type-grid-BzMZLAzW.css} +1 -1
  391. package/public/assets/{note-values-BqD4746M.js → note-values-C4A12_CE.js} +1 -1
  392. package/public/assets/notes-settings-module-DBSeNBYj.js +1 -0
  393. package/public/assets/notes-view-C_mX24NH.js +1 -0
  394. package/public/assets/notes-view-D212ymqf.css +1 -0
  395. package/public/assets/{oc-FR-POXYY2M6-C_R_VP74.js → oc-FR-POXYY2M6-DM9hsX9Q.js} +1 -1
  396. package/public/assets/{open-journal-writing-Bd-CppeX.js → open-journal-writing-Da9CBYtR.js} +1 -1
  397. package/public/assets/{pa-IN-N4M65BXN-B21EEaul.js → pa-IN-N4M65BXN-CJJQ9oPk.js} +1 -1
  398. package/public/assets/page-content-27iX_YpJ.js +1 -0
  399. package/public/assets/page-content-CdioJybS.css +1 -0
  400. package/public/assets/page-export-api-BqvyvK1O.js +1 -0
  401. package/public/assets/page-export-flow-HzZ0AmjW.js +1 -0
  402. package/public/assets/page-files-C30eoBCR.js +1 -0
  403. package/public/assets/page-note-7Oo1OmH0.js +1 -0
  404. package/public/assets/pane-layout-BaHTn1Oz.js +1 -0
  405. package/public/assets/{panel-columns-fields-DPjV39xn.js → panel-columns-fields-B9Biz8Xm.js} +1 -1
  406. package/public/assets/pdf-view-B5Y12R4H.js +1 -0
  407. package/public/assets/pdf-view-X71jeHKm.css +1 -0
  408. package/public/assets/{pencil-DQ9fAqT6.js → pencil-BQzjBcpa.js} +1 -1
  409. package/public/assets/percentages-BXMCSKIN-DRPvI3O-.js +1 -0
  410. package/public/assets/{phone-numbers-CHQaYRah.js → phone-numbers-lV_IC3Pq.js} +1 -1
  411. package/public/assets/{pl-PL-T2D74RX3-Bdo_j9QK.js → pl-PL-T2D74RX3-BLAcchR-.js} +1 -1
  412. package/public/assets/progress-bar-BxjnW3uQ.js +1 -0
  413. package/public/assets/provider-configuration-DBW3Pa0C.js +8 -0
  414. package/public/assets/provider-configuration-dpnYrEZm.css +1 -0
  415. package/public/assets/provider-use-select-C0EI8kSQ.js +1 -0
  416. package/public/assets/{pt-BR-5N22H2LF-C9DRQ7CW.js → pt-BR-5N22H2LF-BiLQ-V_W.js} +1 -1
  417. package/public/assets/{pt-PT-UZXXM6DQ-ColydZPV.js → pt-PT-UZXXM6DQ-DKEXacg3.js} +1 -1
  418. package/public/assets/qr-code-DgTUKCej.js +2 -0
  419. package/public/assets/{qr-code-svg-D0RAuUIk.js → qr-code-svg-DdWw4ovA.js} +1 -1
  420. package/public/assets/qr-defaults-settings-BbbzxV5k.js +1 -0
  421. package/public/assets/qr-settings-fields-C8GCAxa_.js +1 -0
  422. package/public/assets/qr-viewer-DTCnaLOP.js +1 -0
  423. package/public/assets/queryOptions-Dfvzj6n2.js +1 -0
  424. package/public/assets/{reader-clock-22DkpiWR.js → reader-clock-s4x6Qtz_.js} +1 -1
  425. package/public/assets/{recording-bar-DOm-SEGc.js → recording-bar-C5jkIsLX.js} +2 -2
  426. package/public/assets/{recording-setup-CV3LE2_1.js → recording-setup-fZ6fe1MX.js} +1 -1
  427. package/public/assets/{recordings-api-C-Bxpzgo.js → recordings-api-CxuXFNaM.js} +1 -1
  428. package/public/assets/resource-overview-card-CAxT9QxY.js +1 -0
  429. package/public/assets/{ro-RO-JPDTUUEW-iJAQDPe9.js → ro-RO-JPDTUUEW-DPtQ18Fr.js} +1 -1
  430. package/public/assets/rss-settings-module-Bg7BBsC4.js +1 -0
  431. package/public/assets/rss-view-DIPQBTLT.css +1 -0
  432. package/public/assets/rss-view-DeSvhXEa.js +3 -0
  433. package/public/assets/{ru-RU-B4JR7IUQ-CX_CWbT7.js → ru-RU-B4JR7IUQ-n-7DhzM7.js} +1 -1
  434. package/public/assets/{safe-block-copy-DygjvDD4.js → safe-block-copy-B7NrP_YX.js} +1 -1
  435. package/public/assets/{safe-block-qr-button-Cn9WpEkl.js → safe-block-qr-button-DomQCK7l.js} +1 -1
  436. package/public/assets/safe-block-reader-BGmIVIwN.js +1 -0
  437. package/public/assets/safe-folder-conversion-Re-4B3nf.js +1 -0
  438. package/public/assets/{safe-folders-DCf8IdrM.js → safe-folders-B4zJo8qB.js} +1 -1
  439. package/public/assets/{safe-move-leaving-tN-IMhDo.js → safe-move-leaving-D4dKIwTJ.js} +1 -1
  440. package/public/assets/{safe-note-locked-B_lt0XcX.js → safe-note-locked-BGUjggd4.js} +1 -1
  441. package/public/assets/safe-notes-settings-module-zJbcwdU7.js +1 -0
  442. package/public/assets/{markdown-task-toggle-CuRdtBn0.css → safe-text-B4Q6DSRg.css} +1 -1
  443. package/public/assets/safe-text-MPRw9KNQ.js +2 -0
  444. package/public/assets/search-settings-module-CMWbEyvZ.js +1 -0
  445. package/public/assets/{secret-form-DSD348Om.js → secret-form-DoNXw27T.js} +1 -1
  446. package/public/assets/secret-popup-Vn5Xkv4s.js +1 -0
  447. package/public/assets/section-navigation-1mCyY2Gm.js +1 -0
  448. package/public/assets/{security-settings-contribution-B_Syg5ab.js → security-settings-contribution-BrPrGp5q.js} +1 -1
  449. package/public/assets/settings-CxK-AM0A.js +1 -0
  450. package/public/assets/settings-actions-DnTiS3-h.js +1 -0
  451. package/public/assets/{settings-edit-dialog-B5emNjJi.js → settings-edit-dialog-CE5ZTszW.js} +1 -1
  452. package/public/assets/settings-panel-BF5baIMl.js +1 -0
  453. package/public/assets/settings-surface-CDwMuN24.js +3 -0
  454. package/public/assets/settings-surface-DzW4lcds.css +1 -0
  455. package/public/assets/{setup-prompt-6JRbE0oa.js → setup-prompt-Bmv_QxoH.js} +1 -1
  456. package/public/assets/{share-access-control-C5mpELVT.js → share-access-control-CB7J42Dn.js} +1 -1
  457. package/public/assets/shared-board-CLRkwNKE.js +1 -0
  458. package/public/assets/shared-board-lanes-OZo3pA9j.js +1 -0
  459. package/public/assets/{shared-calendar-view-DcCO3mNo.js → shared-calendar-view-BSmK0NDE.js} +1 -1
  460. package/public/assets/shared-note-route-CnykVAYu.css +1 -0
  461. package/public/assets/shared-note-route-DtZVqLMu.js +4 -0
  462. package/public/assets/shared-note-text-C6nccM7z.js +1 -0
  463. package/public/assets/{shares-settings-module-9oF4v70A.js → shares-settings-module-gI5s2PT6.js} +1 -1
  464. package/public/assets/si-LK-N5RQ5JYF-BpI-kBDz.js +1 -0
  465. package/public/assets/{sk-SK-C5VTKIMK-DrAaUVFC.js → sk-SK-C5VTKIMK-BRXRBgRU.js} +1 -1
  466. package/public/assets/{sl-SI-NN7IZMDC-WxYLW2Uj.js → sl-SI-NN7IZMDC-BXKt0fnN.js} +1 -1
  467. package/public/assets/{spaces-settings-module-Dh_QfANj.js → spaces-settings-module-BOkTwY_Z.js} +1 -1
  468. package/public/assets/spaces-view-K5_OKPoW.js +2 -0
  469. package/public/assets/sqlite-browser-BVA27ofB.css +1 -0
  470. package/public/assets/sqlite-browser-DCKBF2SI.js +2 -0
  471. package/public/assets/stack-widgets-CLUFu_vQ.js +1 -0
  472. package/public/assets/store-attachments-DQ63HVZo.js +1 -0
  473. package/public/assets/stored-color-picker-BLs1gClm.css +1 -0
  474. package/public/assets/stored-color-picker-CZ66rDog.js +1 -0
  475. package/public/assets/style-DPV_jdGg.css +1 -0
  476. package/public/assets/subset-shared.chunk-DYH4c2c2.js +1 -0
  477. package/public/assets/subset-worker.chunk-yCTTgC3G.js +1 -0
  478. package/public/assets/{sv-SE-XGPEYMSR-DOB2jm3x.js → sv-SE-XGPEYMSR-nBH8YjQ4.js} +1 -1
  479. package/public/assets/{ta-IN-2NMHFXQM-DfC3wGVU.js → ta-IN-2NMHFXQM-f0oprEqN.js} +1 -1
  480. package/public/assets/{text-diff-BzNG8nfy.js → text-diff-BMS8apwf.js} +1 -1
  481. package/public/assets/th-TH-HPSO5L25-CUOH0u8u.js +2 -0
  482. package/public/assets/{theme-colors-2LJ6VIeK.js → theme-colors-BcoD3SUn.js} +1 -1
  483. package/public/assets/{toolbar-items-DF7H0MSb.js → toolbar-items-DtGvJf3U.js} +1 -1
  484. package/public/assets/{topology-code-editor-B7zxDyT3.js → topology-code-editor-ClyHjN--.js} +1 -1
  485. package/public/assets/topology-designer-DmhzdlOY.js +1 -0
  486. package/public/assets/{topology-editor-DUaww3cM.css → topology-editor-CZnvLbBi.css} +1 -1
  487. package/public/assets/topology-editor-YK_2uGkR.js +8 -0
  488. package/public/assets/{topology-folder-migration-popup-Bj4nu8HE.js → topology-folder-migration-popup-AZFR8-44.js} +1 -1
  489. package/public/assets/{tr-TR-DEFEU3FU-DWO1lNTH.js → tr-TR-DEFEU3FU-CTsS8Qy-.js} +1 -1
  490. package/public/assets/transcription-settings-D7_ViMfp.js +4 -0
  491. package/public/assets/tree-header-CmCmDZKG.js +1 -0
  492. package/public/assets/tree-header-DlATpadF.css +1 -0
  493. package/public/assets/types-settings-module-L4wPTMty.js +1 -0
  494. package/public/assets/{uk-UA-QMV73CPH-ZHBKj9kv.js → uk-UA-QMV73CPH-BJo17WQM.js} +1 -1
  495. package/public/assets/{unlock-prompt-C1AEyIR_.js → unlock-prompt-BQVrb-4k.js} +1 -1
  496. package/public/assets/{use-candidate-notes-Du1V_uun.js → use-candidate-notes-YOxWyJCJ.js} +1 -1
  497. package/public/assets/{directory-picker-columns-BpDkvDO0.css → use-directory-columns-DILivjwk.css} +1 -1
  498. package/public/assets/use-directory-columns-DYequGsf.js +1 -0
  499. package/public/assets/use-directory-listing-Bj3F5kA3.js +1 -0
  500. package/public/assets/use-folding-enabled-N7w9iIqy.js +1 -0
  501. package/public/assets/use-heading-location-BZ9wUH2j.js +1 -0
  502. package/public/assets/{use-live-document-Ck_XPFVd.js → use-live-document-4fc8FCW3.js} +1 -1
  503. package/public/assets/use-mobile-layer-navigation-Il_7QdXn.js +1 -0
  504. package/public/assets/{use-note-attachments-SPgAe-M0.js → use-note-attachments-DAFyHvYo.js} +1 -1
  505. package/public/assets/{use-note-delete-Dvrzq6Pl.js → use-note-delete-JQISrVQ4.js} +1 -1
  506. package/public/assets/use-note-editor-session-BlLoBd41.js +1 -0
  507. package/public/assets/use-note-maximize-offer-DpU6Ms0_.js +1 -0
  508. package/public/assets/use-note-side-column-CFBvrpKH.css +1 -0
  509. package/public/assets/use-note-side-column-CVs74c26.js +1 -0
  510. package/public/assets/use-provider-dialogs-BRoAomhX.css +1 -0
  511. package/public/assets/use-provider-dialogs-HkxDcuJv.js +1 -0
  512. package/public/assets/{use-reflection-request-DV5-_c14.js → use-reflection-request-BuFnMuQC.js} +4 -4
  513. package/public/assets/use-safe-folder-moves-CjbmSWSM.js +1 -0
  514. package/public/assets/use-safe-folders-apply-D_7a5l_T.js +1 -0
  515. package/public/assets/{use-screen-source-BllYITR6.js → use-screen-source-BZ0GGtml.js} +1 -1
  516. package/public/assets/use-share-actions-DBYaF7Wp.css +1 -0
  517. package/public/assets/use-share-actions-Tfr6NI4j.js +1 -0
  518. package/public/assets/use-tab-style-B5YK0cIz.js +2 -0
  519. package/public/assets/use-tab-style-CRx5AnD1.css +1 -0
  520. package/public/assets/use-vault-file-link-BCQahdir.js +1 -0
  521. package/public/assets/{use-voice-questions-Bjgb45Dc.js → use-voice-questions-DmxYfc8M.js} +1 -1
  522. package/public/assets/vault-entries-api-CZHdxv7-.js +1 -0
  523. package/public/assets/vault-file-links-D1RzhVkx.js +1 -0
  524. package/public/assets/vault-folder-field-C5b24MNS.js +1 -0
  525. package/public/assets/vault-folder-field-X-B1weCe.css +1 -0
  526. package/public/assets/vault-links-popup-zkFCHyoP.js +1 -0
  527. package/public/assets/vault-manager-CZnYayEU.js +1 -0
  528. package/public/assets/{vault-settings-module-DMjLQmKz.js → vault-settings-module-CL2DHG69.js} +1 -1
  529. package/public/assets/vault-shares-popup-Cnew0vMQ.js +1 -0
  530. package/public/assets/vault-workspace-settings-module-D_n4aQfC.js +1 -0
  531. package/public/assets/{versioning-preferences-dvxhrMo9.js → versioning-preferences-BK-mZYhi.js} +1 -1
  532. package/public/assets/{versioning-settings-module-CnDDngKG.js → versioning-settings-module-lq4k7b3C.js} +1 -1
  533. package/public/assets/versioning-view-BdEZaF8n.js +2 -0
  534. package/public/assets/{vi-VN-M7AON7JQ-uUfHJEho.js → vi-VN-M7AON7JQ-DpgVSDWc.js} +1 -1
  535. package/public/assets/{video-recording-dialog-7IGrQMwx.js → video-recording-dialog-ByevPvCN.js} +1 -1
  536. package/public/assets/{video-recording-settings-D6YT_FW3.js → video-recording-settings-Ce2plgiG.js} +1 -1
  537. package/public/assets/widget-frame-DzlpiABF.js +1 -0
  538. package/public/assets/widget-layouts-DS7nWc80.js +1 -0
  539. package/public/assets/workspace-layout-3hjN1Wng.js +1 -0
  540. package/public/assets/{zh-CN-LNUGB5OW-COz3oRg3.js → zh-CN-LNUGB5OW-Cfb6--Ow.js} +1 -1
  541. package/public/assets/zh-HK-E62DVLB3-vaMRVwdL.js +1 -0
  542. package/public/assets/{zh-TW-RAJ6MFWO-AYdVqmV8.js → zh-TW-RAJ6MFWO-CNUUB_PG.js} +1 -1
  543. package/public/index.html +6 -6
  544. package/dist/search/embedding-connection-migration.js +0 -57
  545. package/node_modules/@braian/ai-providers/dist/legacy-embedding-migration.js +0 -21
  546. package/public/assets/FileText.es-4c63tWmA.js +0 -1
  547. package/public/assets/TerminalWindow.es-DwLjQ_88.js +0 -1
  548. package/public/assets/Warning.es-4HWtj9Nt.js +0 -1
  549. package/public/assets/agent-profiles-settings-I5Ux2GnH.js +0 -1
  550. package/public/assets/appearance-settings-module-CD3bJpfR.js +0 -1
  551. package/public/assets/attachment-embed-BkP-B_Pa.js +0 -1
  552. package/public/assets/attachments-settings-BeAekkzf.js +0 -1
  553. package/public/assets/az-AZ-76LH7QW2-nXEHcVXP.js +0 -1
  554. package/public/assets/blue-ezN0uv0j.css +0 -1
  555. package/public/assets/board-workspace-DPSlmJ8w.js +0 -1
  556. package/public/assets/boards-settings-module-CCN_ZNks.js +0 -1
  557. package/public/assets/calendar-view-BlTCcAzD.js +0 -1
  558. package/public/assets/calendar-workspace-6t1kuFgj.js +0 -1
  559. package/public/assets/card-fields-C1JCmDVz.css +0 -1
  560. package/public/assets/chat-message-list-ClUR56GV.js +0 -1
  561. package/public/assets/code-editor-wFimHbMT.css +0 -1
  562. package/public/assets/color-picker-ClAn42eA.js +0 -1
  563. package/public/assets/contents-view-EQyMaey-.css +0 -1
  564. package/public/assets/create-note-popup-CRi210cC.js +0 -1
  565. package/public/assets/daily-notes-settings-DG9RUcYk.js +0 -1
  566. package/public/assets/dashboard-workspace-CW4tbadO.css +0 -1
  567. package/public/assets/dashboard-workspace-D45MA_Wf.js +0 -4
  568. package/public/assets/dashboards-view-BB1CRB2G.js +0 -1
  569. package/public/assets/directory-picker-columns-BDdL8yxc.js +0 -1
  570. package/public/assets/discovery-create-popup-DpDB1MTg.js +0 -1
  571. package/public/assets/discovery-import-popup-BsyONSTT.js +0 -1
  572. package/public/assets/discovery-view-DOb6HJff.js +0 -1
  573. package/public/assets/discovery-workspace-Cyc70gQ1.js +0 -2
  574. package/public/assets/drag-preview-Cb6aidku.js +0 -1
  575. package/public/assets/en-B4ZKOASM-D3_h4H29.js +0 -1
  576. package/public/assets/file-editor-B-9eXvH3.css +0 -1
  577. package/public/assets/file-editor-DTm2a8_D.js +0 -3
  578. package/public/assets/file-preview-Bp9k2YvK.js +0 -1
  579. package/public/assets/file-preview-Dynm8laQ.css +0 -1
  580. package/public/assets/file-references-api-CSyFnFFm.js +0 -1
  581. package/public/assets/files-settings-module-D4HPlkbW.js +0 -1
  582. package/public/assets/files-view-BIDZtZgg.js +0 -3
  583. package/public/assets/files-view-Bo1uBB_W.css +0 -1
  584. package/public/assets/folder-picker-dialog-CxiRBtQb.css +0 -1
  585. package/public/assets/folder-picker-dialog-D57Q15N4.js +0 -1
  586. package/public/assets/format-rules-GzYB7Vvh.js +0 -1
  587. package/public/assets/graph-explorer-DtYVExeD.js +0 -329
  588. package/public/assets/graph-settings-module-D--vzqKr.js +0 -1
  589. package/public/assets/icons-CxH3_W-q.js +0 -1
  590. package/public/assets/ide-settings-module-Dsg4tJV6.js +0 -1
  591. package/public/assets/ide-view-DCvwb5Bx.js +0 -2
  592. package/public/assets/ide-view-isgMvraA.css +0 -1
  593. package/public/assets/image-GAAHSSAO-C38PUNrv.js +0 -1
  594. package/public/assets/imap-accounts-QVDGlYad.js +0 -1
  595. package/public/assets/index-B8xguO4f.css +0 -1
  596. package/public/assets/index-CCUyKE6q.js +0 -11
  597. package/public/assets/journal-create-popup-DnYgWgDU.js +0 -1
  598. package/public/assets/journal-day-route-DpsYGWU7.js +0 -1
  599. package/public/assets/journal-folder-field-B8yNmuTt.css +0 -1
  600. package/public/assets/journal-folder-field-DuvIgT6Y.js +0 -1
  601. package/public/assets/journal-page-BdQlNdyB.js +0 -2
  602. package/public/assets/journal-page-CAXrq4hj.css +0 -1
  603. package/public/assets/journal-settings-Dq-9Conv.js +0 -1
  604. package/public/assets/journal-typography-QR4z5v0X.js +0 -1
  605. package/public/assets/journal-writing-route-JP-jPBGZ.js +0 -1
  606. package/public/assets/journals-view-No5xQN8-.js +0 -1
  607. package/public/assets/kaa-6HZHGXH3-DmZqyxcr.js +0 -1
  608. package/public/assets/kk-KZ-P5N5QNE5-DcYcuRxx.js +0 -1
  609. package/public/assets/link-file-browser-BvVwFMvC.js +0 -1
  610. package/public/assets/link-picker-C90irWTA.js +0 -2
  611. package/public/assets/locked-shares-prompt-CA0MuZ_G.js +0 -1
  612. package/public/assets/logic-BNk_20eJ.js +0 -28
  613. package/public/assets/markdown-message-9f2rcF0-.js +0 -3
  614. package/public/assets/markdown-message-C2w22wrW.css +0 -1
  615. package/public/assets/markdown-task-toggle-DiIwYCgC.js +0 -5
  616. package/public/assets/matrices-view-CQlirOdv.js +0 -1
  617. package/public/assets/matrix-workspace-C3LhTNPX.js +0 -1
  618. package/public/assets/mermaid-diagram-CnzQOrTI.js +0 -1
  619. package/public/assets/mobile-note-content-editor-znLhIM9A.js +0 -2
  620. package/public/assets/model-provider-settings-contribution-DYmNbsgA.js +0 -1
  621. package/public/assets/model-providers-7VKk3K9H.js +0 -8
  622. package/public/assets/model-providers-DgRkVmP5.css +0 -1
  623. package/public/assets/my-MM-5M5IBNSE-DnqvLQeM.js +0 -1
  624. package/public/assets/note-body-focus-BKKGEgBj.js +0 -1
  625. package/public/assets/note-collab-provider-969Kgyu8.js +0 -1
  626. package/public/assets/note-collab-transport-CQDYt_Db.js +0 -1
  627. package/public/assets/note-create-settings-module-CV4dWr8t.js +0 -1
  628. package/public/assets/note-editor-container-8DkvXTPN.css +0 -1
  629. package/public/assets/note-editor-container-CTnEE-98.js +0 -2
  630. package/public/assets/note-editor-settings-module-CbPu_40k.js +0 -1
  631. package/public/assets/note-excalidraw-editor-CKSC5Oww.css +0 -1
  632. package/public/assets/note-excalidraw-editor-RjnG4My9.js +0 -168
  633. package/public/assets/note-export-flow-B3wRdMj0.js +0 -1
  634. package/public/assets/note-folds-settings-module-DZju6Mum.js +0 -1
  635. package/public/assets/note-frontmatter-summary-BSKg__aS.js +0 -1
  636. package/public/assets/note-link-list-DKU2PqtO.js +0 -1
  637. package/public/assets/note-link-list-hmCbBMA2.css +0 -1
  638. package/public/assets/note-markdown-editor-CXelEHqr.js +0 -26
  639. package/public/assets/note-markdown-editor-DlBj1yv3.css +0 -1
  640. package/public/assets/note-outline-CAyXKuOh.css +0 -1
  641. package/public/assets/note-page-content-DIqkiMvt.js +0 -2
  642. package/public/assets/note-path-breadcrumb-uTSXCQK4.js +0 -1
  643. package/public/assets/note-picker-BURTnmWF.css +0 -1
  644. package/public/assets/note-shares-popup-9sJOmL1-.js +0 -1
  645. package/public/assets/note-source-editor-DWyDYMCj.js +0 -1
  646. package/public/assets/notes-settings-module-C5IPmwKt.js +0 -1
  647. package/public/assets/page-content-C1jtzs7H.js +0 -1
  648. package/public/assets/page-content-lnIaLh4X.css +0 -1
  649. package/public/assets/page-files-BMj9IzfB.js +0 -1
  650. package/public/assets/page-note-Chw2UF0u.js +0 -1
  651. package/public/assets/pane-keys-CTLoUZZR.js +0 -1
  652. package/public/assets/pane-keys-DiGU3yVB.css +0 -1
  653. package/public/assets/pdf-view-BK5qKL4y.css +0 -1
  654. package/public/assets/pdf-view-Cm78nuSA.js +0 -1
  655. package/public/assets/percentages-BXMCSKIN-CUt8fyAS.js +0 -1
  656. package/public/assets/provider-use-select-DCSwSrlz.js +0 -1
  657. package/public/assets/qr-code-Bm7I0KYt.js +0 -2
  658. package/public/assets/qr-defaults-settings-2_Yt9x4N.js +0 -1
  659. package/public/assets/qr-settings-fields-DDO4XgMl.js +0 -1
  660. package/public/assets/qr-viewer-CvEfRC2r.js +0 -1
  661. package/public/assets/resource-overview-card-Co8aU6jw.js +0 -1
  662. package/public/assets/rss-preferences-Bx1Wa4ri.js +0 -1
  663. package/public/assets/rss-settings-module-BmDISWDk.js +0 -1
  664. package/public/assets/rss-view-5aqCVOCs.css +0 -1
  665. package/public/assets/rss-view-BCEFsYtS.js +0 -1
  666. package/public/assets/safe-block-reader-CNfzTExh.js +0 -1
  667. package/public/assets/safe-folder-conversion-BOLpnv8P.js +0 -1
  668. package/public/assets/safe-notes-settings-module-CMvkyfNG.js +0 -1
  669. package/public/assets/search-settings-module-DmczYjcQ.js +0 -1
  670. package/public/assets/secret-popup-y9W7WIrZ.js +0 -1
  671. package/public/assets/settings-ChT117Ke.js +0 -1
  672. package/public/assets/settings-panel-Cl5kUs9O.js +0 -1
  673. package/public/assets/settings-view-C_lfjngd.js +0 -3
  674. package/public/assets/share-label-BU3So3s7.js +0 -1
  675. package/public/assets/shared-board-lanes-UWl9klys.js +0 -1
  676. package/public/assets/shared-note-route-B5rcAeES.css +0 -1
  677. package/public/assets/shared-note-route-DaI6hm83.js +0 -4
  678. package/public/assets/shared-note-text-BdCw7a9a.js +0 -1
  679. package/public/assets/si-LK-N5RQ5JYF-DfLSaLm6.js +0 -1
  680. package/public/assets/spaces-view-Dw2uxDxU.js +0 -2
  681. package/public/assets/sqlite-browser-BKjuAUqe.css +0 -1
  682. package/public/assets/sqlite-browser-BfIrq_0x.js +0 -2
  683. package/public/assets/store-attachments-DNyH0asy.js +0 -1
  684. package/public/assets/stored-color-picker-BoVzUatG.css +0 -1
  685. package/public/assets/stored-color-picker-CYL7LYdQ.js +0 -1
  686. package/public/assets/style-DLioOiRN.css +0 -1
  687. package/public/assets/subset-shared.chunk-D1nlqSEH.js +0 -1
  688. package/public/assets/subset-worker.chunk-BrbK91mW.js +0 -1
  689. package/public/assets/th-TH-HPSO5L25-BsqplWuv.js +0 -2
  690. package/public/assets/topology-designer-CvJN6QTV.js +0 -1
  691. package/public/assets/topology-editor-RZ0_yLuO.js +0 -8
  692. package/public/assets/topology-settings-module-cWWujj9j.js +0 -1
  693. package/public/assets/transcription-settings-HrJHl14H.js +0 -4
  694. package/public/assets/use-directory-listing-BaYgcuHI.js +0 -1
  695. package/public/assets/use-folding-enabled-CyYip5Go.js +0 -1
  696. package/public/assets/use-mobile-layer-navigation-CBRepW9w.js +0 -1
  697. package/public/assets/use-note-editor-session-CRC-natg.js +0 -1
  698. package/public/assets/use-note-export-flow-0uAfXAwf.js +0 -2
  699. package/public/assets/use-safe-folder-moves-0nw2jjTX.js +0 -1
  700. package/public/assets/use-safe-folders-apply-C9pni8YW.js +0 -1
  701. package/public/assets/use-share-actions-RxO2M3y0.css +0 -1
  702. package/public/assets/use-share-actions-ujEMhCfl.js +0 -1
  703. package/public/assets/use-vault-file-link-C0ZO_VPm.js +0 -1
  704. package/public/assets/vault-entries-api-DVVjgeZh.js +0 -1
  705. package/public/assets/vault-manager-CMQaGDss.js +0 -1
  706. package/public/assets/vault-shares-popup-CCPGkRmF.js +0 -1
  707. package/public/assets/versioning-view-BsIFugt4.js +0 -2
  708. package/public/assets/widget-frame-CjlAZSUy.js +0 -1
  709. package/public/assets/zh-HK-E62DVLB3-C8ICkLhf.js +0 -1
  710. /package/public/assets/{blue-CDYoCZOg.js → blue-DQyE4k0K.js} +0 -0
  711. /package/public/assets/{use-safe-folders-apply-DGWTaX5A.css → progress-bar-DGWTaX5A.css} +0 -0
  712. /package/public/assets/{style-DA65Bz1d.js → style-CXzDJL_q.js} +0 -0
@@ -34,6 +34,13 @@ class ShareRegistry {
34
34
  return this.lock.run(async () => { const share = (await this.read()).shares.find((item) => item.id === id); if (!share)
35
35
  throw notFound(id); return documentFor(share); });
36
36
  }
37
+ /** A link by its storage key, the sha256 digest of its ID: what a vault-link session carries instead of the secret (ENG-430). */
38
+ getByKey(key) {
39
+ if (!/^[a-f0-9]{64}$/.test(key))
40
+ throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
41
+ return this.lock.run(async () => { const share = (await this.read()).shares.find((item) => (0, share_storage_1.shareKey)(item.id) === key); if (!share)
42
+ throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.'); return documentFor(share); });
43
+ }
37
44
  create(target, draft) {
38
45
  return this.lock.run(async () => {
39
46
  const document = await this.read();
@@ -77,8 +84,8 @@ class ShareRegistry {
77
84
  * link that merely covers it, since deleting one note inside a shared folder ends no link.
78
85
  */
79
86
  referencesFor(noteId) { return this.lock.run(async () => (await this.read()).shares.filter((share) => share.target.kind === 'note' && share.target.path === noteId)); }
80
- /** The folder links at or below an entry, which deleting that entry ends. */
81
- referencesForEntry(path) { return this.lock.run(async () => (await this.read()).shares.filter((share) => (0, share_policy_1.shareFolderUnder)(share, path))); }
87
+ /** The folder and web page links at or below an entry, which deleting that entry ends. */
88
+ referencesForEntry(path) { return this.lock.run(async () => (await this.read()).shares.filter((share) => (0, share_policy_1.shareEntryUnder)(share, path))); }
82
89
  /** The space links rooted at these items of a tree, or anywhere in it, which removing them ends. */
83
90
  referencesForSpace(spaceId, itemIds) { return this.lock.run(async () => (await this.read()).shares.filter((share) => (0, share_policy_1.shareSpaceUnder)(share, spaceId, itemIds))); }
84
91
  /** The links that open this board, which deleting it ends. */
@@ -137,25 +144,25 @@ class ShareRegistry {
137
144
  return touched;
138
145
  });
139
146
  }
140
- /** A moved entry carries the folder links at or below it to the new path; orphans move too, since their folder moved as well. */
141
- relocateFolderTargetsReport(from, to) {
147
+ /** A moved entry carries the folder and web page links at or below it to the new path; orphans move too, since their entry moved as well. */
148
+ relocateEntryTargetsReport(from, to) {
142
149
  return this.lock.run(async () => {
143
150
  const document = await this.read();
144
- const { shares, touched } = (0, share_policy_1.relocateShareFolders)(document.shares, from, to, this.now());
151
+ const { shares, touched } = (0, share_policy_1.relocateShareEntries)(document.shares, from, to, this.now());
145
152
  let orphansMoved = false;
146
- const orphans = document.orphans.map((share) => { if (!(0, share_policy_1.shareFolderUnder)(share, from))
147
- return share; orphansMoved = true; return { ...share, target: { kind: 'folder', path: `${to}${share.target.path.slice(from.length)}` } }; });
153
+ const orphans = document.orphans.map((share) => { if (!(0, share_policy_1.shareEntryUnder)(share, from))
154
+ return share; orphansMoved = true; return { ...share, target: (0, share_policy_1.relocatedEntryTarget)(share.target, from, to) }; });
148
155
  if (touched.length || orphansMoved)
149
156
  await this.write({ ...document, shares, orphans });
150
157
  return touched;
151
158
  });
152
159
  }
153
- /** A deleted entry takes the folder links at or below it with it, their IDs included. */
154
- removeFolderTargetsReport(path) {
160
+ /** A deleted entry takes the folder and web page links at or below it with it, their IDs included. */
161
+ removeEntryTargetsReport(path) {
155
162
  return this.lock.run(async () => {
156
163
  const document = await this.read();
157
- const { shares, removed } = (0, share_policy_1.removeShareFolders)(document.shares, path);
158
- const orphans = document.orphans.filter((share) => !(share.target.kind === 'folder' && (0, share_policy_1.pathWithinFolder)(path, share.target.path)));
164
+ const { shares, removed } = (0, share_policy_1.removeShareEntries)(document.shares, path);
165
+ const orphans = document.orphans.filter((share) => !(0, share_policy_1.shareEntryUnder)(share, path));
159
166
  if (removed.length || orphans.length !== document.orphans.length)
160
167
  await this.write({ ...document, shares, orphans });
161
168
  if (removed.length)
@@ -16,6 +16,12 @@ async function describeShareTarget(target, keys, ports, includeSpaceName = true)
16
16
  const name = (0, node_path_1.basename)(target.path);
17
17
  return { title: name, name, type: 'folder', location: target.path, exists: await ports.folderExists(target.path) };
18
18
  }
19
+ if (target.kind === 'webpage') {
20
+ const name = (0, node_path_1.basename)(target.path);
21
+ return { title: name, name, type: 'webpage', location: target.path, exists: await (ports.files?.().stat(target.path).then(() => true, () => false) ?? false) };
22
+ }
23
+ if (target.kind === 'vault')
24
+ return { title: 'Whole vault', name: 'Whole vault', type: 'vault', location: '', exists: true };
19
25
  if (target.kind === 'board') {
20
26
  const board = await ports.board?.(target.boardId);
21
27
  const name = board?.board.name ?? target.boardId;
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ShareUseCases = void 0;
4
- // Sharing a note, a folder, a space or a board through a link: what the owner does to links, and what a link lets its holder do.
4
+ // Sharing a note, a folder, a space, a board or a web page through a link: what the owner does to links, and what a link lets its holder do.
5
5
  const node_path_1 = require("node:path");
6
6
  const node_crypto_1 = require("node:crypto");
7
7
  const yaml_1 = require("yaml");
8
8
  const excalidraw_markdown_1 = require("@braian/excalidraw-markdown");
9
9
  const page_notes_1 = require("@braian/page-notes");
10
10
  const safe_notes_1 = require("@braian/safe-notes");
11
+ const vault_sdk_1 = require("@braian/vault-sdk");
12
+ const entity_document_1 = require("./entity-document");
11
13
  const errors_1 = require("./errors");
12
14
  const space_model_1 = require("./space-model");
13
15
  const panel_evaluation_1 = require("./panel-evaluation");
@@ -19,10 +21,12 @@ const shared_space_site_1 = require("./shared-space-site");
19
21
  const shared_note_view_1 = require("./shared-note-view");
20
22
  const share_board_links_1 = require("./share-board-links");
21
23
  const share_space_links_1 = require("./share-space-links");
24
+ const share_webpage_links_1 = require("./share-webpage-links");
22
25
  const share_target_description_1 = require("./share-target-description");
23
26
  const shared_board_view_1 = require("./shared-board-view");
24
27
  const shared_safe_content_1 = require("./shared-safe-content");
25
28
  const note_key_settings_1 = require("./note-key-settings");
29
+ const share_storage_1 = require("./share-storage");
26
30
  class ShareUseCases {
27
31
  registry;
28
32
  ports;
@@ -60,6 +64,15 @@ class ShareUseCases {
60
64
  await this.boards.require(target);
61
65
  return this.item(await this.registry.create(target, draft));
62
66
  }
67
+ if (target.kind === 'webpage') {
68
+ if (!await this.fileExists(target.path))
69
+ throw new errors_1.GraphAgentError('entity_not_found', 'No such file.', { path: target.path });
70
+ (0, share_webpage_links_1.requirePublishableWebpage)(target, (0, share_policy_1.validateShareDraft)(draft).standalone === true);
71
+ return this.item(await this.registry.create(target, draft));
72
+ }
73
+ // A vault link opens the original app under its grant (ENG-430); only the grant is checked here.
74
+ if (target.kind === 'vault')
75
+ return this.item(await this.registry.create(target, draft));
63
76
  const note = await this.ports.getEntity(target.path);
64
77
  await this.refuseEncryptedEdit(note, draft);
65
78
  return this.item(await this.registry.create({ kind: 'note', path: note.id }, draft));
@@ -69,6 +82,8 @@ class ShareUseCases {
69
82
  await this.requireSaveLimit(draft);
70
83
  if (share.target.kind === 'space')
71
84
  await this.requireAddTypes(draft);
85
+ if (share.target.kind === 'webpage')
86
+ (0, share_webpage_links_1.requirePublishableWebpage)(share.target, (0, share_policy_1.validateShareDraft)(draft).standalone === true);
72
87
  if (share.target.kind === 'note')
73
88
  await this.ports.getEntity(share.target.path).then((note) => this.refuseEncryptedEdit(note, draft), (error) => { if (!(error instanceof errors_1.GraphAgentError && error.code === 'entity_not_found'))
74
89
  throw error; });
@@ -142,12 +157,17 @@ class ShareUseCases {
142
157
  /**
143
158
  * A note link answers its note; a folder link its folder's own name; a space link the site's
144
159
  * navigation, the owner's expansion and the landing item. A note or folder edit link that takes
145
- * uploads says so, with the vault's upload limit, as a site's actions do.
160
+ * uploads says so, with the vault's upload limit, as a site's actions do. A web page link answers
161
+ * only that it is one: the page is served by `openWebpage`, never as data.
146
162
  */
147
163
  async open(id) {
148
164
  const share = await this.authorize(id);
165
+ if (share.target.kind === 'vault')
166
+ throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
149
167
  if (share.target.kind === 'board')
150
168
  return this.boards.open(share);
169
+ if (share.target.kind === 'webpage')
170
+ return { kind: 'webpage', scope: 'read', ...(share.expiresAt ? { expiresAt: share.expiresAt } : {}), name: (0, node_path_1.basename)(share.target.path), ...(share.standalone ? { standalone: true } : {}) };
151
171
  const uploads = share.target.kind !== 'space' ? await this.uploadsOf(share) : {};
152
172
  if (share.target.kind === 'folder')
153
173
  return { kind: 'folder', scope: share.scope, ...(share.expiresAt ? { expiresAt: share.expiresAt } : {}), name: (0, node_path_1.basename)(share.target.path), ...uploads };
@@ -175,6 +195,9 @@ class ShareUseCases {
175
195
  /** Authorize a live note subscription without projecting or decrypting its content. */
176
196
  async events(id, insideInput) {
177
197
  const share = await this.authorize(id);
198
+ // A published page has no note to follow, write or dictate into.
199
+ if (share.target.kind === 'webpage')
200
+ throw (0, share_webpage_links_1.webpageNotFound)();
178
201
  let path;
179
202
  if (share.target.kind === 'note')
180
203
  path = share.target.path;
@@ -226,6 +249,7 @@ class ShareUseCases {
226
249
  if ((0, safe_notes_1.hasSafeContent)(after))
227
250
  throw new errors_1.GraphAgentError('share_collab_unavailable', 'Shared live editing cannot add encrypted text.');
228
251
  const note = await this.ports.getEntity(noteId);
252
+ refuseAddedFrontmatter(note, after);
229
253
  if (await this.addsFileReference(share, { ...note, body: before }, after, receipts))
230
254
  throw new errors_1.GraphAgentError('share_reference_refused', 'This link cannot add attachments or links to files.');
231
255
  }
@@ -430,6 +454,8 @@ class ShareUseCases {
430
454
  */
431
455
  async resolve(id, references, source) {
432
456
  const share = await this.authorize(id);
457
+ if (share.target.kind === 'webpage')
458
+ throw (0, share_webpage_links_1.webpageNotFound)();
433
459
  const reach = await this.reachOf(share);
434
460
  const sourceId = share.target.kind === 'note' ? share.target.path : share.target.kind === 'folder' ? await this.coveredSource(share.target.path, source) : share.target.kind === 'board' ? (await this.boards.cardNote(share, source)).id : await this.coveredSiteSource(share, source);
435
461
  const results = await this.ports.files().resolve(sourceId, references);
@@ -442,11 +468,59 @@ class ShareUseCases {
442
468
  /** The file a link may stream, checked against the link as it is now; `file_not_found` for anything else. */
443
469
  async authorizeFile(id, path) {
444
470
  const share = await this.authorize(id);
471
+ // Before the file is looked at: the Files view's switches decide what the owner sees, never what a link serves (RFX-81).
472
+ if ((0, vault_sdk_1.isHiddenVaultPath)(path))
473
+ throw new errors_1.GraphAgentError('file_not_found', 'No such file.');
445
474
  const file = await this.ports.files().stat(path);
446
475
  if (!await this.serves(await this.reachOf(share), file.path))
447
476
  throw new errors_1.GraphAgentError('file_not_found', 'No such file.');
448
477
  return file;
449
478
  }
479
+ /**
480
+ * One address of a published web page: the page for the empty address, else the file of its
481
+ * folder at that path below it. A standalone link serves its one built document and no other
482
+ * address. Read only by construction: there is no route that writes through this link.
483
+ */
484
+ async openWebpage(id, relative) {
485
+ const share = await this.authorize(id);
486
+ if (share.target.kind !== 'webpage')
487
+ throw (0, share_webpage_links_1.webpageNotFound)();
488
+ const path = (0, share_webpage_links_1.webpageFilePath)(share.target, relative);
489
+ if (share.standalone && path !== share.target.path)
490
+ throw (0, share_webpage_links_1.webpageNotFound)();
491
+ let file;
492
+ try {
493
+ file = await this.ports.files().stat(path);
494
+ }
495
+ catch (error) {
496
+ if (error instanceof errors_1.GraphAgentError && ['file_not_found', 'invalid_node_id', 'invalid_vault_path'].includes(error.code))
497
+ throw (0, share_webpage_links_1.webpageNotFound)();
498
+ throw error;
499
+ }
500
+ if (!share.standalone)
501
+ return (0, share_policy_1.isWebpagePath)(path) ? { kind: 'page', file } : { kind: 'file', file };
502
+ if (!this.ports.standalonePage)
503
+ throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
504
+ return { kind: 'page', file, standalone: await this.ports.standalonePage(path) };
505
+ }
506
+ /**
507
+ * A vault link's live state (ENG-430): it opens only while the vault shares at all, it exists, it is a
508
+ * vault link and it has not ended. Switched off, unknown, another kind and gone read the same; ended
509
+ * says so, so the recipient's page can tell expiry from revocation. Read by key, the digest a session
510
+ * carries, so no session holds the link's secret ID.
511
+ */
512
+ async vaultLink(lookup) {
513
+ const settings = await this.ports.settings();
514
+ if (settings.shares?.enabled !== true)
515
+ throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
516
+ const document = 'id' in lookup ? await this.registry.get(lookup.id) : await this.registry.getByKey(lookup.key);
517
+ const { share, revision } = document;
518
+ if (share.target.kind !== 'vault' || !share.vault)
519
+ throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
520
+ if ((0, share_policy_1.shareState)(share, this.now()) === 'expired')
521
+ throw new errors_1.GraphAgentError('share_expired', 'This share link has expired.');
522
+ return { share: share, revision, key: (0, share_storage_1.shareKey)(share.id), settings };
523
+ }
450
524
  /** A link answers only while the vault shares at all, it exists, it has not ended, and its target still does. Switched off, unknown and gone read the same. */
451
525
  async authorize(id) {
452
526
  (0, share_policy_1.validateShareId)(id);
@@ -454,6 +528,9 @@ class ShareUseCases {
454
528
  if (settings.shares?.enabled !== true)
455
529
  throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
456
530
  const { share } = await this.registry.get(id);
531
+ // A vault link is never an object link: every object-share route answers it as unknown (ENG-430).
532
+ if (share.target.kind === 'vault')
533
+ throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
457
534
  if ((0, share_policy_1.shareState)(share, this.now()) === 'expired')
458
535
  throw new errors_1.GraphAgentError('share_expired', 'This share link has expired.');
459
536
  if (share.target.kind === 'folder' && !await this.folderExists(share.target.path))
@@ -464,6 +541,9 @@ class ShareUseCases {
464
541
  // A board link publishes Boards the same way, and ends with its board.
465
542
  if (share.target.kind === 'board' && !await this.boards.works(settings, share.target))
466
543
  throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
544
+ // A web page link ends with its file.
545
+ if (share.target.kind === 'webpage' && !await this.fileExists(share.target.path))
546
+ throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
467
547
  return share;
468
548
  }
469
549
  /**
@@ -482,6 +562,7 @@ class ShareUseCases {
482
562
  if ((0, shared_safe_content_1.safeNoteReadOnly)(current.body, source))
483
563
  throw new errors_1.GraphAgentError('share_read_only', 'This link can only read the note.');
484
564
  const saved = await (0, shared_safe_content_1.recipientSave)(current.body, body, blockEdits, share.safeBlocks === true, source);
565
+ refuseAddedFrontmatter(current, saved.body);
485
566
  if (await this.addsFileReference(share, { ...current, body: saved.plainBefore }, saved.plainAfter, receipts)) {
486
567
  throw new errors_1.GraphAgentError('share_reference_refused', 'This link cannot add attachments or links to files. Remove the new one and the note saves again.');
487
568
  }
@@ -522,8 +603,11 @@ class ShareUseCases {
522
603
  throw new errors_1.GraphAgentError('share_not_found', 'This share link does not exist.');
523
604
  return (0, node_crypto_1.createHmac)('sha256', secret).update(`upload\u0000${noteId}\u0000${path}`).digest('hex');
524
605
  }
525
- /** The file rule: inside the coverage, or referenced by a covered note where the link follows references. */
606
+ /** The file rule: inside the coverage, or referenced by a covered note where the link follows references; never a hidden entry. */
526
607
  async serves(reach, path) {
608
+ // A dot-entry is in no link's cone: the folder a link shares is the one its listing shows (RFX-81).
609
+ if ((0, vault_sdk_1.isHiddenVaultPath)(path))
610
+ return false;
527
611
  if (reach.coversFile(path))
528
612
  return true;
529
613
  if (!reach.followsReferences)
@@ -581,6 +665,8 @@ class ShareUseCases {
581
665
  return new Map((await this.ports.notes()).map((note) => [note.nodeId, note]));
582
666
  }
583
667
  folderExists(path) { return this.ports.folderExists(path); }
668
+ /** Whether the vault serves a file at this path now: indexed, visible and not a note. */
669
+ fileExists(path) { return this.ports.files().stat(path).then(() => true, () => false); }
584
670
  /** The items a space target shares now; undefined when its tree or root item is gone. */
585
671
  async rootsOf(target) {
586
672
  return this.spaces.roots(target);
@@ -730,3 +816,13 @@ class ShareUseCases {
730
816
  }
731
817
  exports.ShareUseCases = ShareUseCases;
732
818
  function blockOf(block) { return { key: block.header?.key ?? '', source: block.source }; }
819
+ /**
820
+ * An edit link writes the body only. A note with no frontmatter is stored as its body alone, so a
821
+ * body that opens with a block between two `---` lines would be read back as frontmatter: the
822
+ * link's holder would be setting the note's type, title and properties (RFX-75).
823
+ */
824
+ function refuseAddedFrontmatter(note, body) {
825
+ if (!(0, entity_document_1.isEmptyFrontmatterSource)(note.frontmatterSource ?? '') || !/^---\r?\n[\s\S]*?\r?\n---(?:\r?\n|$)/.test(body))
826
+ return;
827
+ throw new errors_1.GraphAgentError('share_frontmatter_refused', 'This link cannot give a note properties, and a note that starts with a block between two lines of three dashes is read as its properties. Change the first line and it saves again.');
828
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webpageNotFound = webpageNotFound;
4
+ exports.webpageFilePath = webpageFilePath;
5
+ exports.requirePublishableWebpage = requirePublishableWebpage;
6
+ // What a web page link serves: the page itself, and the files of its folder by their path below it.
7
+ const errors_1 = require("./errors");
8
+ const share_policy_1 = require("./share-policy");
9
+ /** An address that is not part of the site: the link itself still works. */
10
+ function webpageNotFound() { return new errors_1.GraphAgentError('share_page_not_found', 'This address is not part of the published page.'); }
11
+ /**
12
+ * The vault path an address below a published page names; the empty address is the page. Decided
13
+ * from the link's own target, never from what the request claims: no empty, `.` or `..` segment,
14
+ * nothing `webpageCovers` refuses, and for a page at the vault root, whose folder is the whole
15
+ * vault, nothing but the page.
16
+ */
17
+ function webpageFilePath(target, relative) {
18
+ if (typeof relative !== 'string' || relative.length > 4_096)
19
+ throw webpageNotFound();
20
+ if (relative === '')
21
+ return target.path;
22
+ if (relative.split('/').some((segment) => segment === '' || segment === '.' || segment === '..' || /[\\\u0000-\u001f\u007f]/.test(segment)))
23
+ throw webpageNotFound();
24
+ const folder = (0, share_policy_1.webpageFolder)(target.path);
25
+ if (!folder)
26
+ throw webpageNotFound();
27
+ const path = `${folder}/${relative}`;
28
+ if (!(0, share_policy_1.webpageCovers)(target.path, path))
29
+ throw webpageNotFound();
30
+ return path;
31
+ }
32
+ /**
33
+ * A page at the vault root is published standalone or not at all: its folder is the vault, so a
34
+ * link serving that folder would hand out every file in it.
35
+ */
36
+ function requirePublishableWebpage(target, standalone) {
37
+ if (standalone || (0, share_policy_1.webpageFolder)(target.path))
38
+ return;
39
+ throw new errors_1.GraphAgentError('invalid_share', 'A page at the vault root can only be published standalone: its link would otherwise serve every file in the vault. Turn on Standalone, or move the page into a folder.', { field: 'standalone' });
40
+ }
@@ -71,8 +71,9 @@ async function sharedDashboardView(dashboard, ports, settings, entities, now, ad
71
71
  const items = result.items.flatMap((item) => { const found = row(item.note.id, item.values); return found ? [found] : []; });
72
72
  view.lists = [{ title: '', notes: items }];
73
73
  }
74
+ // A web address only: the share page frames it, and a definition that did not pass the owner's form may name anything (RFX-68).
74
75
  }
75
- else if (widget.type === 'web-page' && 'url' in config && typeof config.url === 'string')
76
+ else if (widget.type === 'web-page' && 'url' in config && typeof config.url === 'string' && /^https?:\/\//i.test(config.url))
76
77
  view.url = config.url;
77
78
  return view;
78
79
  }));
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveSpotlightSettings = resolveSpotlightSettings;
4
4
  exports.resolveEmbeddingsSettings = resolveEmbeddingsSettings;
5
5
  exports.validateSpotlightSettings = validateSpotlightSettings;
6
- // Spotlight: what the search leaves out, and the vault's embedding connection.
6
+ // Spotlight: what the search leaves out, and whether the vault's notes are embedded.
7
7
  const errors_1 = require("./errors");
8
8
  function resolveSpotlightSettings(settings) {
9
9
  return settings.spotlight ? structuredClone(settings.spotlight) : {};
@@ -23,20 +23,7 @@ function validateSpotlightSettings(value) {
23
23
  throw new errors_1.GraphAgentError('invalid_embeddings_settings', 'embeddings must be an object.');
24
24
  if (typeof raw.embeddings.enabled !== 'boolean')
25
25
  throw new errors_1.GraphAgentError('invalid_embeddings_settings', 'Embeddings enabled must be true or false.', { field: 'enabled' });
26
- const emb = { enabled: raw.embeddings.enabled };
27
- if (typeof raw.embeddings.connectionId === 'string')
28
- emb.connectionId = raw.embeddings.connectionId;
29
- if (typeof raw.embeddings.providerId === 'string')
30
- emb.providerId = raw.embeddings.providerId;
31
- if (typeof raw.embeddings.modelId === 'string')
32
- emb.modelId = raw.embeddings.modelId;
33
- if (typeof raw.embeddings.useAgentKey === 'boolean')
34
- emb.useAgentKey = raw.embeddings.useAgentKey;
35
- if (typeof raw.embeddings.apiKey === 'string')
36
- emb.apiKey = raw.embeddings.apiKey;
37
- if (typeof raw.embeddings.baseUrl === 'string')
38
- emb.baseUrl = raw.embeddings.baseUrl;
39
- result.embeddings = emb;
26
+ result.embeddings = { enabled: raw.embeddings.enabled };
40
27
  }
41
28
  return result;
42
29
  }
@@ -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; } });