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
@@ -8,20 +8,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.VersioningService = void 0;
13
16
  const common_1 = require("@nestjs/common");
14
17
  const node_path_1 = require("node:path");
15
18
  const vault_versioning_1 = require("@braian/vault-versioning");
16
19
  const graph_agent_1 = require("@braian/graph-agent");
20
+ const vault_link_sessions_service_1 = require("../auth/vault-link-sessions.service");
17
21
  const content_tickets_1 = require("../http/content-tickets");
18
22
  const data_workspace_provider_1 = require("../workspace/data-workspace.provider");
23
+ /** A change a vault link may see: its path, and the path it was renamed from, both within the link's reach. */
24
+ function visibleChange(change) { return (0, graph_agent_1.vaultPathVisible)(change.path) && (change.previousPath === undefined || (0, graph_agent_1.vaultPathVisible)(change.previousPath)); }
19
25
  let VersioningService = class VersioningService {
20
26
  workspace;
27
+ links;
21
28
  engine;
22
29
  tickets = new content_tickets_1.ContentTickets();
23
- constructor(workspace) {
30
+ constructor(workspace, links) {
24
31
  this.workspace = workspace;
32
+ this.links = links;
25
33
  this.engine = new vault_versioning_1.VaultVersioning((0, node_path_1.join)(workspace.getRootPath(), 'versioning-identities.yaml'));
26
34
  }
27
35
  /** Every operation resolves its context first, so the vault's feature switch is checked in exactly one place. */
@@ -32,29 +40,60 @@ let VersioningService = class VersioningService {
32
40
  throw new vault_versioning_1.VersioningError('versioning_inactive', 'Versioning is not active. Enable it in Settings.');
33
41
  return { vaultId, vaultPath: vault.vaultPath, locksPath: vault.locksPath };
34
42
  }
35
- async status(vaultId) { return this.engine.status(await this.context(vaultId)); }
36
- async preview(vaultId, changeId, revision, profile) { return this.engine.preview(await this.context(vaultId), changeId, revision, profile); }
37
- async commit(vaultId, changes, message) { return this.engine.commit(await this.context(vaultId), changes, message); }
38
- async discard(vaultId, changes) { return this.engine.discard(await this.context(vaultId), changes); }
43
+ /** A vault link sees, previews, commits and discards only changes whose paths it may reach: never `.brian`, `.git`, or hidden entries it was not granted (ENG-430). */
44
+ async status(vaultId) {
45
+ const status = await this.engine.status(await this.context(vaultId));
46
+ return (0, graph_agent_1.currentVaultAccessScope)() ? { ...status, changes: status.changes.filter(visibleChange) } : status;
47
+ }
48
+ async preview(vaultId, changeId, revision, profile) { const context = await this.context(vaultId); await this.requireVisible(context, [changeId]); return this.engine.preview(context, changeId, revision, profile); }
49
+ async commit(vaultId, changes, message) { const context = await this.context(vaultId); await this.requireVisible(context, changes.map((change) => change.id)); await (0, graph_agent_1.revalidateVaultAccess)(); return this.engine.commit(context, changes, message); }
50
+ async discard(vaultId, changes) { const context = await this.context(vaultId); await this.requireVisible(context, changes.map((change) => change.id)); await (0, graph_agent_1.revalidateVaultAccess)(); return this.engine.discard(context, changes); }
39
51
  async initialize(vaultId) { return this.engine.initialize(await this.context(vaultId)); }
40
52
  async identity(vaultId) { const context = await this.context(vaultId); return this.engine.identity(context); }
41
53
  async saveIdentity(vaultId, identity) { return this.engine.saveIdentity(await this.context(vaultId), identity); }
42
54
  async createTicket(vaultId, changeId, revision, side, disposition = 'inline') {
43
55
  const context = await this.context(vaultId);
56
+ const paths = await this.requireVisible(context, [changeId]);
44
57
  await this.engine.authorizeContent(context, changeId, revision, side);
45
- const { ticket, expiresAt } = this.tickets.issue({ context, changeId, revision, side, disposition });
58
+ const scope = (0, graph_agent_1.currentVaultAccessScope)();
59
+ const { ticket, expiresAt } = this.tickets.issue({ context, changeId, revision, side, disposition, securityRevision: await this.securityRevision(), ...(scope ? { link: { vaultId: scope.vaultId, linkKey: scope.linkKey, paths } } : {}) });
46
60
  return { url: `/api/versioning-content/${ticket}`, expiresAt };
47
61
  }
48
62
  async consumeTicket(token) {
49
63
  const ticket = this.tickets.redeem(token);
50
- if (!ticket)
64
+ if (!ticket || ticket.securityRevision !== await this.securityRevision())
51
65
  return undefined;
66
+ // The vault's switch as it is now: versioning turned off ends its links too.
67
+ await this.context(ticket.context.vaultId);
68
+ if (ticket.link) {
69
+ // Issued to a vault link: it opens only while that link does, with Versioning, and over paths it still reaches.
70
+ const access = await this.links?.access(ticket.link.vaultId, ticket.link.linkKey).catch(() => undefined);
71
+ if (!access || !access.features.has('versioning') || ticket.link.paths.some((path) => !(0, graph_agent_1.vaultLinkPathAccess)(path, access).allowed))
72
+ return undefined;
73
+ }
52
74
  const content = await this.engine.content(ticket.context, ticket.changeId, ticket.revision, ticket.side);
53
75
  return { ...ticket, ...content };
54
76
  }
77
+ /** The paths of the named changes, refused for a vault link when any lies outside its reach or is not a change it can see. */
78
+ async requireVisible(context, ids) {
79
+ if (!(0, graph_agent_1.currentVaultAccessScope)())
80
+ return [];
81
+ const changes = new Map((await this.engine.status(context)).changes.map((change) => [change.id, change]));
82
+ const paths = [];
83
+ for (const id of ids) {
84
+ const change = changes.get(id);
85
+ if (change && !visibleChange(change))
86
+ throw new graph_agent_1.VaultAccessDeniedError('protected_path', { path: change.path });
87
+ if (change)
88
+ paths.push(change.path, ...(change.previousPath ? [change.previousPath] : []));
89
+ }
90
+ return paths;
91
+ }
92
+ async securityRevision() { return (await this.workspace.get().readSecuritySettings()).revision; }
55
93
  };
56
94
  exports.VersioningService = VersioningService;
57
95
  exports.VersioningService = VersioningService = __decorate([
58
96
  (0, common_1.Injectable)(),
59
- __metadata("design:paramtypes", [data_workspace_provider_1.DataWorkspaceProvider])
97
+ __param(1, (0, common_1.Optional)()),
98
+ __metadata("design:paramtypes", [data_workspace_provider_1.DataWorkspaceProvider, vault_link_sessions_service_1.VaultLinkSessions])
60
99
  ], VersioningService);
@@ -5,8 +5,8 @@ exports.resolveWorkspaceConfig = resolveWorkspaceConfig;
5
5
  exports.describeVaultSource = describeVaultSource;
6
6
  exports.formatElapsed = formatElapsed;
7
7
  const node_path_1 = require("node:path");
8
- /** The repository `.data` folder, the development default for application data. */
9
- exports.defaultDataPath = (0, node_path_1.resolve)(__dirname, '../../../..', '.data');
8
+ /** The repository `.data/.braianrc` folder, the development default for application data. */
9
+ exports.defaultDataPath = (0, node_path_1.resolve)(__dirname, '../../../..', '.data', '.braianrc');
10
10
  /**
11
11
  * Resolves the workspace layout from the environment.
12
12
  *
@@ -30,7 +30,7 @@ function resolveWorkspaceConfig(env, fallbackRootPath = exports.defaultDataPath)
30
30
  const singleVaultPath = vault && isVaultFolder(vault) ? (0, node_path_1.resolve)(vault) : undefined;
31
31
  return {
32
32
  rootPath: (0, node_path_1.resolve)(env.BRAIAN_DATA_PATH ?? fallbackRootPath),
33
- vaultsPath: readPath(env.BRAIAN_VAULTS_ROOT),
33
+ vaultsPath: readPath(env.BRAIAN_VAULTS_ROOT) ?? (!env.BRAIAN_DATA_PATH && fallbackRootPath === exports.defaultDataPath ? (0, node_path_1.resolve)(exports.defaultDataPath, '..', 'vaults') : undefined),
34
34
  singleVaultPath,
35
35
  singleVaultId: singleVaultPath ? env.BRAIAN_VAULT_ID?.trim() || undefined : undefined,
36
36
  discoveryPath: readPath(env.BRAIAN_VAULTS),
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.planLegacyEmbeddingConnection = exports.testConnectionEndpoint = exports.runJevDecision = exports.selectRoutingModel = exports.routingModelTier = exports.supportsUse = exports.connectionCapabilities = exports.validateConnection = exports.defaultConnection = exports.supportedCapabilities = exports.emptyProviderCatalog = exports.capabilityLabels = exports.providerCapabilities = exports.ProviderCatalog = exports.isChatModelId = exports.resolveProviderIntegrations = exports.providerRiskNotice = exports.providerCallbackURL = exports.defaultProviderIntegrations = exports.selectionFromModel = exports.sameModel = exports.providersModels = exports.providerUsesModelDiscovery = exports.fallbackModels = exports.defaultModelSelection = exports.configuredModels = void 0;
3
+ exports.testConnectionEndpoint = exports.catalogModelLabel = exports.parseOpenRouterCatalog = exports.runJevYesNo = exports.runJevDecision = exports.runJevChoice = exports.runJev = exports.selectRoutingModel = exports.routingModelTier = exports.withoutConnection = exports.validateShortlist = exports.supportsUse = exports.connectionCapabilities = exports.validateConnection = exports.defaultConnection = exports.supportedCapabilities = exports.emptyProviderCatalog = exports.capabilityLabels = exports.providerCapabilities = exports.ProviderCatalog = exports.isChatModelId = exports.resolveProviderIntegrations = exports.providerRiskNotice = exports.providerCallbackURL = exports.defaultProviderIntegrations = exports.selectionFromModel = exports.sameModel = exports.providersModels = exports.providerUsesModelDiscovery = exports.fallbackModels = exports.shortlistSeed = exports.providerUsesShortlist = exports.providerReasoningEfforts = exports.effortLabel = exports.defaultModelSelection = exports.configuredModels = void 0;
4
4
  var providers_models_1 = require("./providers-models");
5
5
  Object.defineProperty(exports, "configuredModels", { enumerable: true, get: function () { return providers_models_1.configuredModels; } });
6
6
  Object.defineProperty(exports, "defaultModelSelection", { enumerable: true, get: function () { return providers_models_1.defaultModelSelection; } });
7
+ Object.defineProperty(exports, "effortLabel", { enumerable: true, get: function () { return providers_models_1.effortLabel; } });
8
+ Object.defineProperty(exports, "providerReasoningEfforts", { enumerable: true, get: function () { return providers_models_1.providerReasoningEfforts; } });
9
+ Object.defineProperty(exports, "providerUsesShortlist", { enumerable: true, get: function () { return providers_models_1.providerUsesShortlist; } });
10
+ Object.defineProperty(exports, "shortlistSeed", { enumerable: true, get: function () { return providers_models_1.shortlistSeed; } });
7
11
  Object.defineProperty(exports, "fallbackModels", { enumerable: true, get: function () { return providers_models_1.fallbackModels; } });
8
12
  Object.defineProperty(exports, "providerUsesModelDiscovery", { enumerable: true, get: function () { return providers_models_1.providerUsesModelDiscovery; } });
9
13
  Object.defineProperty(exports, "providersModels", { enumerable: true, get: function () { return providers_models_1.providersModels; } });
@@ -25,12 +29,18 @@ Object.defineProperty(exports, "defaultConnection", { enumerable: true, get: fun
25
29
  Object.defineProperty(exports, "validateConnection", { enumerable: true, get: function () { return provider_catalog_1.validateConnection; } });
26
30
  Object.defineProperty(exports, "connectionCapabilities", { enumerable: true, get: function () { return provider_catalog_1.connectionCapabilities; } });
27
31
  Object.defineProperty(exports, "supportsUse", { enumerable: true, get: function () { return provider_catalog_1.supportsUse; } });
32
+ Object.defineProperty(exports, "validateShortlist", { enumerable: true, get: function () { return provider_catalog_1.validateShortlist; } });
33
+ Object.defineProperty(exports, "withoutConnection", { enumerable: true, get: function () { return provider_catalog_1.withoutConnection; } });
28
34
  var routing_model_1 = require("./routing-model");
29
35
  Object.defineProperty(exports, "routingModelTier", { enumerable: true, get: function () { return routing_model_1.routingModelTier; } });
30
36
  Object.defineProperty(exports, "selectRoutingModel", { enumerable: true, get: function () { return routing_model_1.selectRoutingModel; } });
31
37
  var jev_routing_1 = require("./jev-routing");
38
+ Object.defineProperty(exports, "runJev", { enumerable: true, get: function () { return jev_routing_1.runJev; } });
39
+ Object.defineProperty(exports, "runJevChoice", { enumerable: true, get: function () { return jev_routing_1.runJevChoice; } });
32
40
  Object.defineProperty(exports, "runJevDecision", { enumerable: true, get: function () { return jev_routing_1.runJevDecision; } });
41
+ Object.defineProperty(exports, "runJevYesNo", { enumerable: true, get: function () { return jev_routing_1.runJevYesNo; } });
42
+ var openrouter_catalog_1 = require("./openrouter-catalog");
43
+ Object.defineProperty(exports, "parseOpenRouterCatalog", { enumerable: true, get: function () { return openrouter_catalog_1.parseOpenRouterCatalog; } });
44
+ Object.defineProperty(exports, "catalogModelLabel", { enumerable: true, get: function () { return openrouter_catalog_1.catalogModelLabel; } });
33
45
  var connection_test_1 = require("./connection-test");
34
46
  Object.defineProperty(exports, "testConnectionEndpoint", { enumerable: true, get: function () { return connection_test_1.testConnectionEndpoint; } });
35
- var legacy_embedding_migration_1 = require("./legacy-embedding-migration");
36
- Object.defineProperty(exports, "planLegacyEmbeddingConnection", { enumerable: true, get: function () { return legacy_embedding_migration_1.planLegacyEmbeddingConnection; } });
@@ -1,22 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runJev = runJev;
4
+ exports.runJevYesNo = runJevYesNo;
5
+ exports.runJevChoice = runJevChoice;
3
6
  exports.runJevDecision = runJevDecision;
4
- /** Native TypeSafe Choice API, deliberately separate from chat/Responses transports. */
5
- async function runJevDecision(input, fetcher = fetch) {
6
- const response = await fetcher(`${input.baseUrl.replace(/\/$/, '')}/systemone`, { method: 'POST', headers: { Authorization: `Bearer ${input.apiKey}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ model: input.model, state: input.state, questions: { profile: { type: 'choice', instructions: input.instructions, criteria: input.criteria } } }), signal: input.signal, redirect: 'error' });
7
+ const probability = (value) => typeof value === 'number' && Number.isFinite(value) && value >= 0 && value <= 1;
8
+ /** Asks every question about one state in one request; an answer of the wrong type, or outside 0 to 1, is refused. */
9
+ async function runJev(input, fetcher = fetch) {
10
+ const response = await fetcher(`${input.baseUrl.replace(/\/$/, '')}/systemone`, { method: 'POST', headers: { Authorization: `Bearer ${input.apiKey}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ model: input.model, state: input.state, questions: input.questions }), signal: input.signal, redirect: 'error' });
7
11
  if (!response.ok) {
8
12
  await response.body?.cancel();
9
- throw Object.assign(new Error(`Jev routing answered HTTP ${response.status}.`), { status: response.status });
13
+ throw Object.assign(new Error(`Jev answered HTTP ${response.status}.`), { status: response.status });
10
14
  }
11
15
  const body = await response.json();
12
- const answer = body.answers?.profile;
13
- if (answer?.type !== 'choice' || typeof answer.choice !== 'string' || !Object.hasOwn(input.criteria, answer.choice))
14
- throw new Error('Jev returned an invalid profile choice.');
15
- const probabilities = answer.probabilities;
16
- if (!probabilities || Object.keys(input.criteria).some(id => typeof probabilities[id] !== 'number' || !Number.isFinite(probabilities[id]) || probabilities[id] < 0 || probabilities[id] > 1))
17
- throw new Error('Jev returned invalid choice probabilities.');
18
- const ordered = Object.keys(input.criteria).map(id => probabilities[id]).sort((a, b) => b - a);
19
- const clear = probabilities[answer.choice] === ordered[0] && probabilities[answer.choice] >= 0.6 && ordered[0] - (ordered[1] ?? 0) >= 0.1;
16
+ const answers = Object.fromEntries(Object.entries(input.questions).map(([key, question]) => {
17
+ const answer = body.answers?.[key];
18
+ if (question.type === 'noul') {
19
+ if (answer?.type !== 'noul' || !probability(answer.noul))
20
+ throw new Error(`Jev returned an invalid yes/no answer for ${key}.`);
21
+ return [key, { type: 'noul', probability: answer.noul }];
22
+ }
23
+ if (answer?.type !== 'choice' || typeof answer.choice !== 'string' || !Object.hasOwn(question.criteria, answer.choice))
24
+ throw new Error('Jev returned an invalid choice.');
25
+ const probabilities = answer.probabilities;
26
+ if (!probabilities || Object.keys(question.criteria).some(id => !probability(probabilities[id])))
27
+ throw new Error('Jev returned invalid choice probabilities.');
28
+ return [key, { type: 'choice', choice: answer.choice, probabilities: Object.fromEntries(Object.keys(question.criteria).map(id => [id, probabilities[id]])) }];
29
+ }));
20
30
  const tokens = (value) => typeof value === 'number' && Number.isFinite(value) && value >= 0 ? value : 0;
21
- return { profileId: clear ? answer.choice : 'default', usage: { inputTokens: tokens(body.usage?.input_tokens), outputTokens: tokens(body.usage?.output_tokens) } };
31
+ return { answers, usage: { inputTokens: tokens(body.usage?.input_tokens), outputTokens: tokens(body.usage?.output_tokens) } };
32
+ }
33
+ /** Yes/no questions only: each question's probability of yes, as an RSS profile's judge reads them (`like`, `tag:<name>`). */
34
+ async function runJevYesNo(input, fetcher = fetch) {
35
+ const { answers, usage } = await runJev(input, fetcher);
36
+ return { probabilities: Object.fromEntries(Object.entries(answers).map(([key, answer]) => [key, answer.type === 'noul' ? answer.probability : 0])), usage };
37
+ }
38
+ /** One choice among `criteria`, with every criterion's probability. */
39
+ async function runJevChoice(input, fetcher = fetch) {
40
+ const { answers, usage } = await runJev({ ...input, questions: { profile: { type: 'choice', instructions: input.instructions, criteria: input.criteria } } }, fetcher);
41
+ const answer = answers.profile;
42
+ return { choice: answer.choice, probabilities: answer.probabilities, usage };
43
+ }
44
+ /** Routing's reading of a choice: the chosen profile when it is clearly ahead, otherwise `default`. */
45
+ async function runJevDecision(input, fetcher = fetch) {
46
+ const { choice, probabilities, usage } = await runJevChoice(input, fetcher);
47
+ const ordered = Object.values(probabilities).sort((a, b) => b - a);
48
+ const clear = probabilities[choice] === ordered[0] && probabilities[choice] >= 0.6 && ordered[0] - (ordered[1] ?? 0) >= 0.1;
49
+ return { profileId: clear ? choice : 'default', usage };
22
50
  }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseOpenRouterCatalog = parseOpenRouterCatalog;
4
+ exports.catalogModelLabel = catalogModelLabel;
5
+ const providers_models_1 = require("./providers-models");
6
+ /**
7
+ * Reads OpenRouter's `GET /api/v1/models` (chat) or `GET /api/v1/embeddings/models`. For chat only
8
+ * models that call tools are kept, since the agent works on the vault through tools; embedding models
9
+ * take no tools and no effort. A malformed entry is skipped rather than failing the list.
10
+ */
11
+ function parseOpenRouterCatalog(value, use = 'chat') {
12
+ const data = record(value)?.data;
13
+ if (!Array.isArray(data))
14
+ return [];
15
+ const seen = new Set();
16
+ return data.flatMap((entry) => {
17
+ const item = record(entry);
18
+ const id = typeof item?.id === 'string' ? item.id.trim() : '';
19
+ if (!item || !id || seen.has(id))
20
+ return [];
21
+ const parameters = Array.isArray(item.supported_parameters) ? item.supported_parameters : [];
22
+ if (use === 'chat' && !parameters.includes('tools'))
23
+ return [];
24
+ seen.add(id);
25
+ const name = typeof item.name === 'string' && item.name.trim() ? item.name.trim() : id;
26
+ const pricing = record(item.pricing);
27
+ // An embedding model prices only its input; its output is free whether or not the catalog says so.
28
+ const input = price(pricing?.prompt), output = price(pricing?.completion) ?? (use === 'embeddings' ? 0 : undefined);
29
+ const reasoning = record(item.reasoning);
30
+ const efforts = use === 'embeddings' ? [] : Array.isArray(reasoning?.supported_efforts)
31
+ ? providers_models_1.providerReasoningEfforts.filter(effort => reasoning.supported_efforts.includes(effort)).reverse()
32
+ : parameters.includes('reasoning') ? ['high', 'medium', 'low'] : [];
33
+ const defaultEffort = efforts.find(effort => effort === reasoning?.default_effort);
34
+ return [{
35
+ id,
36
+ name,
37
+ label: catalogModelLabel(name),
38
+ ...(typeof item.context_length === 'number' && item.context_length > 0 ? { contextLength: item.context_length } : {}),
39
+ ...(input !== undefined && output !== undefined ? { pricePerMillion: { input, output } } : {}),
40
+ free: input === 0 && output === 0,
41
+ efforts,
42
+ ...(defaultEffort ? { defaultEffort } : {})
43
+ }];
44
+ });
45
+ }
46
+ /** `OpenAI: GPT-5.6 Luna` reads as `GPT-5.6 Luna`; a name without a vendor prefix is kept. */
47
+ function catalogModelLabel(name) {
48
+ const separator = name.indexOf(': ');
49
+ return separator > 0 && separator < name.length - 2 ? name.slice(separator + 2).trim() : name.trim();
50
+ }
51
+ function price(value) {
52
+ const parsed = typeof value === 'string' || typeof value === 'number' ? Number(value) : Number.NaN;
53
+ return Number.isFinite(parsed) && parsed >= 0 ? Math.round(parsed * 1_000_000 * 1_000_000) / 1_000_000 : undefined;
54
+ }
55
+ function record(value) {
56
+ return value && typeof value === 'object' && !Array.isArray(value) ? value : undefined;
57
+ }
@@ -4,9 +4,12 @@ exports.ProviderCatalog = exports.emptyProviderCatalog = exports.capabilityLabel
4
4
  exports.supportedCapabilities = supportedCapabilities;
5
5
  exports.defaultConnection = defaultConnection;
6
6
  exports.validateConnection = validateConnection;
7
+ exports.validateShortlist = validateShortlist;
7
8
  exports.connectionCapabilities = connectionCapabilities;
8
9
  exports.supportsUse = supportsUse;
10
+ exports.withoutConnection = withoutConnection;
9
11
  exports.isChatModelId = isChatModelId;
12
+ const providers_models_1 = require("./providers-models");
10
13
  exports.providerCapabilities = ['chat', 'transcription', 'embeddings', 'speech', 'routing'];
11
14
  exports.capabilityLabels = { chat: 'Chat', transcription: 'Speech to text', embeddings: 'Embeddings', speech: 'Text to speech', routing: 'Decision routing' };
12
15
  const emptyProviderCatalog = () => ({ version: 1, migrated: false, connections: [], transcription: { enabled: false } });
@@ -67,7 +70,30 @@ function validateConnection(input) {
67
70
  if (('modelId' in config ? config.modelId : config.model).length > 200)
68
71
  throw new Error('The model name is too long.');
69
72
  }
70
- return { ...input, label: input.label.trim(), enabledCapabilities: [...new Set(input.enabledCapabilities)] };
73
+ const models = input.models === undefined ? undefined : validateShortlist(input.adapter, input.models);
74
+ return { ...input, label: input.label.trim(), enabledCapabilities: [...new Set(input.enabledCapabilities)], ...(models ? { models } : {}) };
75
+ }
76
+ /** A shortlist keeps each model once per effort, with an ID and a label a picker can show. */
77
+ function validateShortlist(adapter, input) {
78
+ if (!(0, providers_models_1.providerUsesShortlist)(adapter))
79
+ throw new Error('This connection does not keep a model shortlist.');
80
+ if (!Array.isArray(input) || input.length > 100)
81
+ throw new Error('A model shortlist holds at most 100 models.');
82
+ const seen = new Set();
83
+ return input.map((item) => {
84
+ const id = typeof item?.id === 'string' ? item.id.trim() : '';
85
+ const label = typeof item?.label === 'string' && item.label.trim() ? item.label.trim() : id;
86
+ const effort = item?.reasoningEffort;
87
+ if (!id || id.length > 200 || label.length > 200)
88
+ throw new Error('Each shortlisted model needs an ID and a label of at most 200 characters.');
89
+ if (effort !== undefined && !providers_models_1.providerReasoningEfforts.includes(effort))
90
+ throw new Error(`'${String(effort)}' is not a reasoning effort.`);
91
+ const key = `${id}\n${effort ?? ''}`;
92
+ if (seen.has(key))
93
+ throw new Error(`${label} is already in the shortlist at that effort.`);
94
+ seen.add(key);
95
+ return { id, label, ...(effort ? { reasoningEffort: effort } : {}) };
96
+ });
71
97
  }
72
98
  function connectionCapabilities(connection, chatModels = []) {
73
99
  const models = {};
@@ -97,7 +123,16 @@ class ProviderCatalog {
97
123
  await this.storage.update(document => ({ ...document, connections: [...document.connections.filter(item => item.id !== connection.id), connection] }));
98
124
  }
99
125
  async remove(id) {
100
- await this.storage.update(document => ({ ...document, connections: document.connections.filter(item => item.id !== id), transcription: document.transcription.activeProviderId === id ? { enabled: document.transcription.enabled } : document.transcription }));
126
+ await this.storage.update(document => withoutConnection(document, id));
127
+ }
128
+ /** Chooses the install's embedding connection, or clears the choice with no ID. */
129
+ async selectEmbeddings(activeProviderId) {
130
+ await this.storage.update(document => {
131
+ if (activeProviderId && !document.connections.some(item => item.id === activeProviderId && item.embeddings && item.enabledCapabilities.includes('embeddings')))
132
+ throw new Error('Select a connection with embeddings enabled.');
133
+ const { embeddings: _previous, ...rest } = document;
134
+ return activeProviderId ? { ...rest, embeddings: { activeProviderId } } : rest;
135
+ });
101
136
  }
102
137
  async selectTranscription(enabled, activeProviderId) {
103
138
  await this.storage.update(document => {
@@ -112,6 +147,16 @@ class ProviderCatalog {
112
147
  }
113
148
  }
114
149
  exports.ProviderCatalog = ProviderCatalog;
150
+ /** The catalog without connection `id`, with any use that chose it cleared in the same write. */
151
+ function withoutConnection(document, id) {
152
+ const { embeddings, ...rest } = document;
153
+ return {
154
+ ...rest,
155
+ connections: document.connections.filter(item => item.id !== id),
156
+ transcription: document.transcription.activeProviderId === id ? { enabled: document.transcription.enabled } : document.transcription,
157
+ ...(embeddings && embeddings.activeProviderId !== id ? { embeddings } : {})
158
+ };
159
+ }
115
160
  /** Exclude known non-chat catalogs from the Responses chat transport. Custom server IDs remain user-defined. */
116
161
  function isChatModelId(id) {
117
162
  return !/^(?:text-embedding-|whisper(?:-|$)|tts(?:-|$)|dall-e|gpt-image|sora|babbage|davinci)/i.test(id) && !/(?:transcrib|audio|realtime|moderation)/i.test(id);
@@ -1,14 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.providersModels = void 0;
3
+ exports.providersModels = exports.providerReasoningEfforts = void 0;
4
4
  exports.configuredModels = configuredModels;
5
5
  exports.fallbackModels = fallbackModels;
6
6
  exports.providerUsesModelDiscovery = providerUsesModelDiscovery;
7
+ exports.providerUsesShortlist = providerUsesShortlist;
8
+ exports.shortlistSeed = shortlistSeed;
9
+ exports.effortLabel = effortLabel;
7
10
  exports.defaultModelSelection = defaultModelSelection;
8
11
  exports.selectionFromModel = selectionFromModel;
9
12
  exports.sameModel = sameModel;
13
+ /** Every effort the Agents SDK accepts, lowest first. Most providers offer only low, medium and high. */
14
+ exports.providerReasoningEfforts = ['none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max'];
10
15
  const codexModels = reasoningModels('', ['luna', 'terra', 'sol']);
11
- const openRouterModels = reasoningModels('openai/', ['luna', 'terra', 'sol']);
16
+ /** OpenRouter's Free Models Router: priced 0, and it routes to models that call tools. */
17
+ const openRouterSeed = [{ id: 'openrouter/free', label: 'Free Models Router' }];
12
18
  /**
13
19
  * Subscription OAuth serves Haiku to third-party clients and answers larger models with a
14
20
  * policy 429 dressed as a rate limit, so only Haiku is offered. An API-key Claude provider
@@ -26,9 +32,10 @@ exports.providersModels = {
26
32
  fallbackModels: [{ id: 'gpt-5.4', label: 'gpt-5.4' }]
27
33
  },
28
34
  openrouter: {
29
- defaultModel: { modelId: 'openai/gpt-5.6-luna', reasoningEffort: 'low' },
30
- models: openRouterModels,
31
- fallbackModels: openRouterModels
35
+ defaultModel: { modelId: 'openrouter/free' },
36
+ models: openRouterSeed,
37
+ fallbackModels: openRouterSeed,
38
+ shortlist: true
32
39
  },
33
40
  /** Groq's catalog also lists speech and safety-classifier models, so the chat models are an allowlist. */
34
41
  groq: {
@@ -66,8 +73,21 @@ function providerUsesModelDiscovery(providerId) {
66
73
  const models = configuredModels(providerId);
67
74
  return models === undefined || models.length === 0;
68
75
  }
76
+ /** Whether this adapter's chat models are a shortlist the owner keeps on the connection. */
77
+ function providerUsesShortlist(adapter) {
78
+ return definition(adapter)?.shortlist === true;
79
+ }
80
+ /** What a shortlist connection offers until it saves its own list. */
81
+ function shortlistSeed(adapter) {
82
+ return providerUsesShortlist(adapter) ? [...(definition(adapter)?.models ?? [])] : [];
83
+ }
84
+ /** How an effort reads after a model's name: `medium` is shortened to `mid`, as the pickers always showed it. */
85
+ function effortLabel(effort) {
86
+ return effort === 'medium' ? 'mid' : effort;
87
+ }
69
88
  function defaultModelSelection(providerId, availableModels) {
70
- const preferred = definition(providerId)?.defaultModel;
89
+ // A shortlist is in the owner's order, so its first entry is the default rather than the policy's.
90
+ const preferred = availableModels !== undefined && providerUsesShortlist(providerId) ? undefined : definition(providerId)?.defaultModel;
71
91
  if (availableModels === undefined)
72
92
  return preferred ? { providerId, ...preferred } : undefined;
73
93
  if (preferred && availableModels.some((model) => sameModel(model, preferred))) {
@@ -92,7 +112,7 @@ function reasoningModels(prefix, names) {
92
112
  function effortModels(models) {
93
113
  return models.flatMap(([id, label]) => ['low', 'medium', 'high'].map((reasoningEffort) => ({
94
114
  id,
95
- label: `${label} · ${reasoningEffort === 'medium' ? 'mid' : reasoningEffort}`,
115
+ label: `${label} · ${effortLabel(reasoningEffort)}`,
96
116
  reasoningEffort
97
117
  })));
98
118
  }
@@ -4,4 +4,4 @@ group: writing
4
4
  summary: Keep topology changes minimal; includes the schema-editing guide.
5
5
  ---
6
6
 
7
- Keep schema changes minimal and coherent. A missing type for an independently addressable entity is a schema change. Schema reading and schema mutation are always available; the Topology view being off never prevents a schema change. Prefer one canonical stored direction and derive reverse relationships through incoming traversal. Existing declared inverses are honored by reconciliation; do not maintain their reverse manually.
7
+ Keep schema changes minimal and coherent. A missing type for an independently addressable entity is a schema change. Schema reading and schema mutation are always available; the Types view being off never prevents a schema change. Prefer one canonical stored direction and derive reverse relationships through incoming traversal. Existing declared inverses are honored by reconciliation; do not maintain their reverse manually.
@@ -85,7 +85,7 @@ async function composeAgentFeatures(settings, input) {
85
85
  instructions: feature.instructions ? await featureInstructionText(feature.instructions) : '',
86
86
  ...(await feature.activate?.(dependencies) ?? { tools: [] })
87
87
  })));
88
- const destinations = ['settings', ...['chat', 'notes', 'files', 'boards', 'calendars', 'topology', 'graph'].filter((feature) => (0, vault_settings_registry_1.isFeatureEnabled)(settings, feature)), ...(settings.matrices?.enabled ? ['matrices'] : [])].map((id) => `[[app:${id}]]`);
88
+ const destinations = ['settings', ...['chat', 'notes', 'types', 'files', 'boards', 'calendars', 'graph'].filter((feature) => (0, vault_settings_registry_1.isFeatureEnabled)(settings, feature)), ...(settings.matrices?.enabled ? ['matrices'] : [])].map((id) => `[[app:${id}]]`);
89
89
  return {
90
90
  tools: contributions.flatMap((item) => item.tools),
91
91
  providers: contributions.flatMap((item) => item.provider ? [item.provider] : []),
@@ -63,6 +63,15 @@ class AgentProfileRegistry {
63
63
  const path = this.path(id);
64
64
  await new resource_mutex_1.ResourceMutex(this.directory).run(async () => { assertRevision(await optionalRead(path), expected); this.changes?.expectOwnWrite(path); await (0, promises_1.unlink)(path); this.changes?.record({ kind: 'agent-profiles', action: 'deleted', id }); });
65
65
  }
66
+ /** Deletes every custom agent and the routing between them (Reset vault settings › AI: delete custom agents, ENG-433). */
67
+ async removeAll() {
68
+ const profiles = await this.list();
69
+ for (const profile of profiles)
70
+ await this.remove(profile.id, profile.revision);
71
+ if (await optionalRead(this.routingPath) !== undefined)
72
+ await new resource_mutex_1.ResourceMutex(this.routingPath).run(async () => { this.changes?.expectOwnWrite(this.routingPath); await (0, promises_1.rm)(this.routingPath, { force: true }); this.changes?.record({ kind: 'agent-profiles', action: 'deleted', id: 'routing' }); });
73
+ return profiles.length;
74
+ }
66
75
  async routing() {
67
76
  const stored = await optionalRead(this.routingPath);
68
77
  const settings = stored === undefined ? (0, routing_1.defaultAgentRoutingSettings)() : (0, routing_1.parseAgentRoutingSettings)(stored);
@@ -18,19 +18,19 @@ exports.agentToolCatalog = [
18
18
  { name: 'graph_read', label: 'Read notes', description: 'Read notes and feature objects, including full note content.', access: 'read', group: 'notes' },
19
19
  { name: 'graph_panel_read', label: 'Read note panels', description: 'Read the results of a note panel.', access: 'read', group: 'notes' },
20
20
  { name: 'graph_traverse', label: 'Follow relationships', description: 'Follow relationships between graph objects.', access: 'read', group: 'notes' },
21
- { name: 'graph_mutate', label: 'Change notes', description: 'Create, edit, move and delete notes and their properties.', access: 'write', group: 'notes' },
21
+ { name: 'graph_mutate', label: 'Change notes', description: 'Create, edit, move and delete notes and their properties.', access: 'write', group: 'notes', destructive: true },
22
22
  { name: 'graph_topology_read', label: 'Read types', description: 'Read the vault’s types, properties and note templates.', access: 'read', group: 'schema' },
23
23
  { name: 'graph_validation_errors', label: 'Read validation errors', description: 'Read schema violations and broken references.', access: 'read', group: 'schema' },
24
24
  { name: 'graph_topology_mutate', label: 'Change types', description: 'Create and change types, properties and panels.', access: 'write', group: 'schema' },
25
- { name: 'graph_topology_folder_migrate', label: 'Move notes to their type’s folder', description: 'Move notes into a type’s folder after confirmation.', access: 'write', group: 'schema' },
25
+ { name: 'graph_topology_folder_migrate', label: 'Move notes to their type’s folder', description: 'Move notes into a type’s folder after confirmation.', access: 'write', group: 'schema', destructive: true },
26
26
  { name: 'vault_files_list', label: 'List folders', description: 'List a folder’s subfolders and files.', access: 'read', group: 'files', feature: 'files' },
27
27
  { name: 'vault_file_read', label: 'Read files', description: 'Read a text file that is not a note.', access: 'read', group: 'files', feature: 'files' },
28
28
  { name: 'vault_entries_delete_preview', label: 'Preview a delete', description: 'Show what deleting files or folders would leave behind.', access: 'read', group: 'files', feature: 'files' },
29
29
  { name: 'vault_file_write', label: 'Edit files', description: 'Replace the text of a file that is not a note.', access: 'write', group: 'files', feature: 'files' },
30
30
  { name: 'vault_file_create', label: 'Create files', description: 'Create a new text file that is not a note.', access: 'write', group: 'files', feature: 'files' },
31
31
  { name: 'vault_folder_create', label: 'Create folders', description: 'Create a folder.', access: 'write', group: 'files', feature: 'files' },
32
- { name: 'vault_entry_move', label: 'Rename and move files', description: 'Rename or move a file or folder; links follow it.', access: 'write', group: 'files', feature: 'files' },
33
- { name: 'vault_entries_delete', label: 'Delete files', description: 'Delete files or folders after the user confirms.', access: 'write', group: 'files', feature: 'files' },
32
+ { name: 'vault_entry_move', label: 'Rename and move files', description: 'Rename or move a file or folder; links follow it.', access: 'write', group: 'files', feature: 'files', destructive: true },
33
+ { name: 'vault_entries_delete', label: 'Delete files', description: 'Delete files or folders after the user confirms.', access: 'write', group: 'files', feature: 'files', destructive: true },
34
34
  { name: 'boards_read', label: 'Read Kanban boards', description: 'Read boards, columns and cards.', access: 'read', group: 'boards', feature: 'boards' },
35
35
  { name: 'boards_mutate', label: 'Change Kanban boards', description: 'Change boards, columns and card placements.', access: 'write', group: 'boards', feature: 'boards' },
36
36
  { name: 'calendars_read', label: 'Read calendars', description: 'Read calendars, entries and external events.', access: 'read', group: 'calendars', feature: 'calendars' },
@@ -35,7 +35,7 @@ class AgentRunRegistry {
35
35
  if ((await this.listOwned(input.sessionId)).some(run_state_1.isAgentRunActive))
36
36
  throw new errors_1.GraphAgentError('session_busy', 'This conversation already has a running response. Stop it or wait before sending another message.');
37
37
  const now = new Date().toISOString();
38
- const run = { runId: input.requestId, sessionId: input.sessionId, prompt: input.prompt.trim(), confidence: input.confidence, model: input.model, timeZone: input.time.client.timeZone, createdAt: input.time.instant, updatedAt: now, ...(input.profileId ? { profileId: input.profileId } : {}), status: 'accepted', seq: 0, answer: '', tools: [] };
38
+ const run = { runId: input.requestId, sessionId: input.sessionId, prompt: input.prompt.trim(), confidence: input.confidence, model: input.model, timeZone: input.time.client.timeZone, createdAt: input.time.instant, updatedAt: now, ...(input.profileId ? { profileId: input.profileId } : {}), ...(input.initiator ? { initiator: { ...input.initiator } } : {}), status: 'accepted', seq: 0, answer: '', tools: [] };
39
39
  await this.storage.write(run); // Acceptance is durable before execution or the acknowledgement.
40
40
  const slot = { run, controller: new AbortController(), done: Promise.resolve(), listeners: new Set() };
41
41
  this.live.set(this.key(run.sessionId, run.runId), slot);
@@ -80,6 +80,20 @@ class AuthRegistry {
80
80
  await this.write(document);
81
81
  });
82
82
  }
83
+ /**
84
+ * Removes every stored credential record except those named in `keep` (System settings › Clear all settings, ENG-433):
85
+ * provider tokens and connections, the provider catalog, IMAP and embedding secrets go; the password record is separate.
86
+ */
87
+ async removeRecordsExcept(keep) {
88
+ await this.lock.run(async () => {
89
+ const document = await this.read();
90
+ const kept = Object.fromEntries(Object.entries(document.providers).filter(([id]) => keep.includes(id)));
91
+ if (Object.keys(kept).length === Object.keys(document.providers).length)
92
+ return;
93
+ document.providers = kept;
94
+ await this.write(document);
95
+ });
96
+ }
83
97
  /** Re-reads from disk on every call and takes the lock only to seed, so the auth guard stays cheap. */
84
98
  async readSecurity() {
85
99
  return this.effective(await this.readStoredSecurity());
@@ -94,6 +108,7 @@ class AuthRegistry {
94
108
  return structuredClone(document.security);
95
109
  document.security = (0, security_settings_1.createInitialSecuritySettings)(this.jwtSecret);
96
110
  await this.write(document);
111
+ await this.reportEarlierStore();
97
112
  return structuredClone(document.security);
98
113
  });
99
114
  }
@@ -142,6 +157,20 @@ class AuthRegistry {
142
157
  return true;
143
158
  });
144
159
  }
160
+ /**
161
+ * A store that starts empty beside an earlier one: the data folder moved, and the password, if
162
+ * there was one, did not come along. Said once, at the moment it happens (RFX-85).
163
+ */
164
+ async reportEarlierStore() {
165
+ const earlier = (0, node_path_1.resolve)((0, node_path_1.dirname)(this.path), '..', 'auth.yaml');
166
+ try {
167
+ await (0, promises_1.access)(earlier);
168
+ }
169
+ catch {
170
+ return;
171
+ }
172
+ console.warn(`A new secret store was started at ${this.path} with no password. An earlier one is still at ${earlier}: what it held, a password included, was not carried over. Set the password again in Settings › Login & Password.`);
173
+ }
145
174
  async read() {
146
175
  try {
147
176
  return validateDocument((0, yaml_1.parse)(await (0, promises_1.readFile)(this.path, 'utf8')));
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateBoardsSettings = validateBoardsSettings;
4
+ // Kanban's vault settings: its switch, and what Remove from board does to a card's note on every board that does not choose for itself (ENG-433).
5
+ const board_registry_1 = require("../board-registry");
6
+ const errors_1 = require("../errors");
7
+ const invalid = (message, field) => new errors_1.GraphAgentError('invalid_boards_settings', message, { field });
8
+ function validateBoardsSettings(value) {
9
+ if (!value || typeof value !== 'object' || Array.isArray(value))
10
+ throw new errors_1.GraphAgentError('invalid_boards_settings', 'boards must be an object.');
11
+ const { enabled, removeCard } = value;
12
+ if (typeof enabled !== 'boolean')
13
+ throw invalid('boards enabled must be true or false.', 'enabled');
14
+ if (removeCard === undefined)
15
+ return { enabled };
16
+ const deleteNote = removeCard?.deleteNote;
17
+ if (typeof deleteNote !== 'string' || !board_registry_1.boardRemoveCardNoteActions.includes(deleteNote))
18
+ throw invalid(`boards.removeCard.deleteNote must be one of ${board_registry_1.boardRemoveCardNoteActions.join(', ')}.`, 'removeCard');
19
+ return { enabled, removeCard: { deleteNote: deleteNote } };
20
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateBoardsSettings = void 0;
4
+ var boards_settings_1 = require("./boards-settings");
5
+ Object.defineProperty(exports, "validateBoardsSettings", { enumerable: true, get: function () { return boards_settings_1.validateBoardsSettings; } });