braian 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/braian.mjs +2 -0
- package/bin/node-version.mjs +72 -0
- package/dist/agent/graph-agent.service.js +43 -0
- package/dist/app.module.js +2 -0
- package/dist/auth/auth.controller.js +2 -2
- package/dist/auth/auth.guard.js +34 -5
- package/dist/auth/auth.module.js +13 -2
- package/dist/auth/auth.service.js +8 -2
- package/dist/auth/link-route-policies.js +267 -0
- package/dist/auth/link-route-policy.js +27 -0
- package/dist/auth/vault-access-denied.filter.js +30 -0
- package/dist/auth/vault-access.interceptor.js +45 -0
- package/dist/auth/vault-link-principal.js +15 -0
- package/dist/auth/vault-link-sessions.service.js +186 -0
- package/dist/bootstrap.js +6 -1
- package/dist/collab/collab.service.js +12 -2
- package/dist/desktop/exposure.js +7 -1
- package/dist/entity/entity.controller.js +9 -1
- package/dist/events/vault-events.service.js +17 -4
- package/dist/files/dto/vault-files.dto.js +113 -6
- package/dist/files/file-url-signer.js +37 -11
- package/dist/files/files-http-error.js +1 -1
- package/dist/files/vault-file-archive.service.js +19 -4
- package/dist/files/vault-file-content.controller.js +29 -1
- package/dist/files/vault-file-content.service.js +18 -2
- package/dist/http/api-controllers.js +6 -0
- package/dist/http/log-redaction.js +23 -0
- package/dist/http/published-page-address.js +58 -0
- package/dist/http/request-guards.js +51 -1
- package/dist/http/security-headers.js +2 -1
- package/dist/journal/active-journal.dto.js +4 -3
- package/dist/logging/logging.middleware.js +3 -3
- package/dist/navigation/navigation.service.js +16 -1
- package/dist/providers/claude-messages-model.js +2 -2
- package/dist/providers/model-provider.service.js +71 -8
- package/dist/providers/provider-catalog-storage.js +4 -3
- package/dist/providers/provider-model-catalog.js +46 -0
- package/dist/providers/provider.controller.js +83 -0
- package/dist/rss/rss-profiles.dto.js +4 -3
- package/dist/search/search-database.service.js +40 -24
- package/dist/search/search-embedding-settings.controller.js +82 -0
- package/dist/search/search-embedding.service.js +33 -28
- package/dist/search/search-index-health.js +1 -1
- package/dist/search/search-sync.service.js +8 -0
- package/dist/search/search.controller.js +34 -54
- package/dist/search/search.module.js +3 -3
- package/dist/sessions/agent-runs.controller.js +3 -3
- package/dist/sessions/dto/graph-session.dto.js +6 -5
- package/dist/sessions/sessions.service.js +33 -1
- package/dist/settings/settings.controller.js +11 -0
- package/dist/settings/settings.dto.js +29 -24
- package/dist/settings/settings.service.js +6 -0
- package/dist/shares/share-http-error.js +2 -2
- package/dist/shares/share.dto.js +74 -16
- package/dist/shares/shared-webpage-headers.js +45 -0
- package/dist/shares/shared-webpage.controller.js +179 -0
- package/dist/shares/shares.controller.js +3 -3
- package/dist/shares/shares.module.js +2 -1
- package/dist/shares/shares.service.js +11 -4
- package/dist/sqlite-files/vault-sqlite.service.js +1 -0
- package/dist/vault-access/vault-access.controller.js +73 -0
- package/dist/vault-access/vault-access.dto.js +28 -0
- package/dist/vault-access/vault-access.module.js +19 -0
- package/dist/vault-access/vault-access.service.js +49 -0
- package/dist/vaults/vault.controller.js +20 -0
- package/dist/vaults/vault.dto.js +114 -50
- package/dist/vaults/vaults.service.js +30 -2
- package/dist/versioning/versioning.service.js +47 -8
- package/node_modules/@braian/ai-providers/dist/index.js +10 -3
- package/node_modules/@braian/ai-providers/dist/openrouter-catalog.js +57 -0
- package/node_modules/@braian/ai-providers/dist/provider-catalog.js +47 -2
- package/node_modules/@braian/ai-providers/dist/providers-models.js +27 -7
- package/node_modules/@braian/graph-agent/assets/agent-instructions/default/26-schema.md +1 -1
- package/node_modules/@braian/graph-agent/dist/agent-features.js +1 -1
- package/node_modules/@braian/graph-agent/dist/agent-profiles/registry.js +9 -0
- package/node_modules/@braian/graph-agent/dist/agent-runs/run-registry.js +1 -1
- package/node_modules/@braian/graph-agent/dist/auth-registry.js +29 -0
- package/node_modules/@braian/graph-agent/dist/boards/boards-settings.js +20 -0
- package/node_modules/@braian/graph-agent/dist/boards/index.js +5 -0
- package/node_modules/@braian/graph-agent/dist/data-workspace.js +127 -14
- package/node_modules/@braian/graph-agent/dist/feature-switch.js +6 -2
- package/node_modules/@braian/graph-agent/dist/files-settings.js +10 -2
- package/node_modules/@braian/graph-agent/dist/ide/ide-settings.js +58 -0
- package/node_modules/@braian/graph-agent/dist/ide/index.js +6 -0
- package/node_modules/@braian/graph-agent/dist/ide-layout.js +1 -1
- package/node_modules/@braian/graph-agent/dist/index.js +30 -13
- package/node_modules/@braian/graph-agent/dist/journal-reflection.js +2 -1
- package/node_modules/@braian/graph-agent/dist/locked-graph-store.js +11 -2
- package/node_modules/@braian/graph-agent/dist/mentioned-notes-input.js +1 -1
- package/node_modules/@braian/graph-agent/dist/navigation-settings.js +20 -14
- package/node_modules/@braian/graph-agent/dist/note-collab-policy.js +4 -1
- package/node_modules/@braian/graph-agent/dist/note-collab-projection.js +4 -3
- package/node_modules/@braian/graph-agent/dist/note-collab-registry.js +12 -9
- package/node_modules/@braian/graph-agent/dist/note-collab-session.js +2 -1
- package/node_modules/@braian/graph-agent/dist/note-editor/index.js +13 -0
- package/node_modules/@braian/graph-agent/dist/note-editor/note-editor-settings.js +98 -0
- package/node_modules/@braian/graph-agent/dist/note-key-settings.js +34 -2
- package/node_modules/@braian/graph-agent/dist/rss/index.js +3 -1
- package/node_modules/@braian/graph-agent/dist/rss/rss-feed-parse.js +18 -1
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-store.js +9 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-use-cases.js +2 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-settings.js +15 -0
- package/node_modules/@braian/graph-agent/dist/screen-context-input.js +1 -1
- package/node_modules/@braian/graph-agent/dist/secret-masking.js +54 -15
- package/node_modules/@braian/graph-agent/dist/secret-vault.js +48 -3
- package/node_modules/@braian/graph-agent/dist/session-registry.js +3 -2
- package/node_modules/@braian/graph-agent/dist/settings-registry.js +21 -178
- package/node_modules/@braian/graph-agent/dist/settings-reset/index.js +9 -0
- package/node_modules/@braian/graph-agent/dist/settings-reset/settings-reset.js +85 -0
- package/node_modules/@braian/graph-agent/dist/share-edit-references.js +15 -14
- package/node_modules/@braian/graph-agent/dist/share-policy.js +86 -21
- package/node_modules/@braian/graph-agent/dist/share-registry.js +18 -11
- package/node_modules/@braian/graph-agent/dist/share-target-description.js +6 -0
- package/node_modules/@braian/graph-agent/dist/share-use-cases.js +99 -3
- package/node_modules/@braian/graph-agent/dist/share-webpage-links.js +40 -0
- package/node_modules/@braian/graph-agent/dist/shared-dashboard-view.js +2 -1
- package/node_modules/@braian/graph-agent/dist/spotlight-settings.js +2 -15
- package/node_modules/@braian/graph-agent/dist/standalone-pages.js +111 -0
- package/node_modules/@braian/graph-agent/dist/tools.js +4 -2
- package/node_modules/@braian/graph-agent/dist/types.js +7 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/index.js +36 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-access-policy.js +127 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-access-scope.js +60 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-link-features.js +48 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-link-grant.js +47 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-settings-access.js +44 -0
- package/node_modules/@braian/graph-agent/dist/vault-files.js +73 -14
- package/node_modules/@braian/graph-agent/dist/vault-settings-operations.js +41 -12
- package/node_modules/@braian/graph-agent/dist/vault-settings-registry.js +111 -20
- package/node_modules/@braian/html-standalone/dist/css.js +44 -0
- package/node_modules/@braian/html-standalone/dist/data-uri.js +48 -0
- package/node_modules/@braian/html-standalone/dist/html.js +118 -0
- package/node_modules/@braian/html-standalone/dist/index.js +9 -0
- package/node_modules/@braian/html-standalone/dist/local-reference.js +64 -0
- package/node_modules/@braian/html-standalone/dist/standalone.js +143 -0
- package/node_modules/@braian/html-standalone/package.json +22 -0
- package/node_modules/@braian/sqlite-browser/dist/execute.js +47 -2
- package/node_modules/@braian/vault-fs-sdk/dist/fs-vault-strategy.js +23 -0
- package/node_modules/@braian/vault-fs-sdk/dist/index.js +5 -1
- package/node_modules/@braian/vault-fs-sdk/dist/vault-index.js +5 -0
- package/package.json +5 -2
- package/public/assets/{ArrowClockwise.es-DWqWLk15.js → ArrowClockwise.es-3-WDmIeI.js} +1 -1
- package/public/assets/{ArrowDown.es-COHGTGu_.js → ArrowDown.es--soRLxEp.js} +1 -1
- package/public/assets/{ArrowLeft.es-Dvz_4AVp.js → ArrowLeft.es-CbZG51Gr.js} +1 -1
- package/public/assets/{ArrowSquareOut.es-ssfQ7LE-.js → ArrowSquareOut.es-yh2fX_Cs.js} +1 -1
- package/public/assets/{ArrowUp.es-DflnZKsA.js → ArrowUp.es-CIIkDrf9.js} +1 -1
- package/public/assets/{ArrowsClockwise.es-DSXy5pW3.js → ArrowsClockwise.es-D0399ubU.js} +1 -1
- package/public/assets/{ArrowsIn.es-B4Aie-uw.js → ArrowsIn.es-B54L_O6A.js} +1 -1
- package/public/assets/Browser.es-BqZU_2qv.js +1 -0
- package/public/assets/Circle.es-j7f1_WI9.js +1 -0
- package/public/assets/{Clock.es-D6bs8ZLR.js → Clock.es-DkUjmG8U.js} +1 -1
- package/public/assets/{Copy.es-CglRiQSZ.js → Copy.es-DfOdr0jv.js} +1 -1
- package/public/assets/CopySimple.es-BBthx5Du.js +1 -0
- package/public/assets/CornersOut.es-Cd9DgMlt.js +1 -0
- package/public/assets/Crosshair.es-9qdLaRA1.js +1 -0
- package/public/assets/{Desktop.es-DVtEXtRb.js → Desktop.es-DSRSg0hy.js} +1 -1
- package/public/assets/{DotsSixVertical.es-B7kGbvvH.js → DotsSixVertical.es-Cg2wLxmG.js} +1 -1
- package/public/assets/{Eye.es-DKoV8w-8.js → Eye.es-CxGbwLRS.js} +1 -1
- package/public/assets/{EyeSlash.es-C_H7lJGL.js → EyeSlash.es-DfTto7s1.js} +1 -1
- package/public/assets/{File.es-47KQbmb4.js → File.es-D3fdUSmS.js} +1 -1
- package/public/assets/FloppyDisk.es-CVEXDdFf.js +1 -0
- package/public/assets/{Folder.es-DKrkcRQj.js → Folder.es-BUMi6qzZ.js} +1 -1
- package/public/assets/{FolderOpen.es-DaW9wv8-.js → FolderOpen.es-FcjULnXZ.js} +1 -1
- package/public/assets/{FolderPlus.es-D0scempH.js → FolderPlus.es-Deuvtys5.js} +1 -1
- package/public/assets/GearSix.es-CWRB8Up2.js +1 -0
- package/public/assets/List.es-C0rMRBfB.js +1 -0
- package/public/assets/{ListBullets.es-DGeupXZ3.js → ListBullets.es-B7JvZb2M.js} +1 -1
- package/public/assets/{LockSimple.es-DiQO6y_F.js → LockSimple.es-D5Ul9U6c.js} +1 -1
- package/public/assets/LockSimpleOpen.es-C2JGRKEE.js +1 -0
- package/public/assets/{MagnifyingGlass.es-CHks7m9E.js → MagnifyingGlass.es-BPnvTl_3.js} +1 -1
- package/public/assets/{Microphone.es-CQat-MJ8.js → Microphone.es-BXBLW9YD.js} +1 -1
- package/public/assets/{Play.es-h1Fhb5wo.js → Play.es-BT5cMJ7L.js} +1 -1
- package/public/assets/{Plus.es-B-svcAlu.js → Plus.es-aakfbgmy.js} +1 -1
- package/public/assets/{Prohibit.es-M5ljYyQ3.js → Prohibit.es-pwiGfWLj.js} +1 -1
- package/public/assets/{QrCode.es-CVlyfpjq.js → QrCode.es-DCPGPGYZ.js} +1 -1
- package/public/assets/ShareNetwork-CTDRol5F.css +1 -0
- package/public/assets/ShareNetwork.es-Do0IWaE9.js +3 -0
- package/public/assets/SidebarSimple.es-UdNMyfL-.js +1 -0
- package/public/assets/{SlidersHorizontal.es-DkPz8o7o.js → SlidersHorizontal.es-957OxRrd.js} +1 -1
- package/public/assets/{TextAa.es-CymAJ91v.js → TextAa.es-8d8-rRe1.js} +1 -1
- package/public/assets/{Trash.es-B7UVM9v_.js → Trash.es-chxTwNhO.js} +1 -1
- package/public/assets/WarningCircle.es-CF4lQ1bU.js +1 -0
- package/public/assets/advanced-security-B_SegWCz.js +1 -0
- package/public/assets/agent-profiles-settings-DZv5BUzj.js +1 -0
- package/public/assets/appearance-settings-module-DlOVkZXP.js +1 -0
- package/public/assets/{ar-SA-G6X2FPQ2-R9ND2Rw0.js → ar-SA-G6X2FPQ2-DZP7qz6u.js} +1 -1
- package/public/assets/{attachment-embed-Bt5qCuKC.css → attachment-embed-CJkoG50a.css} +1 -1
- package/public/assets/attachment-embed-DVbcGTLJ.js +1 -0
- package/public/assets/attachments-settings-BuqoRFuK.js +1 -0
- package/public/assets/az-AZ-76LH7QW2-ByX_zd4F.js +1 -0
- package/public/assets/{bg-BG-XCXSNQG7-WKBfRf7q.js → bg-BG-XCXSNQG7-wxiUF1_6.js} +1 -1
- package/public/assets/blue-pgMgVzKw.css +1 -0
- package/public/assets/{bn-BD-2XOGV67Q-BmT7jnvl.js → bn-BD-2XOGV67Q-BBIhV1oq.js} +1 -1
- package/public/assets/{board-workspace-D9prroo0.css → board-workspace-CUeGZca9.css} +1 -1
- package/public/assets/board-workspace-pt2JAfWJ.js +1 -0
- package/public/assets/boards-settings-module-CaOcLdGN.js +1 -0
- package/public/assets/{boards-view-3JR36W_w.js → boards-view-DEVAYmzH.js} +1 -1
- package/public/assets/{ca-ES-6MX7JW3Y-CBR9ytrG.js → ca-ES-6MX7JW3Y-CKplVKfE.js} +1 -1
- package/public/assets/calendar-view-B-w_4BV-.js +1 -0
- package/public/assets/calendar-workspace-BiPYwfJr.js +1 -0
- package/public/assets/{calendars-settings-module-BWI1k_YA.js → calendars-settings-module-DuwhjpAm.js} +1 -1
- package/public/assets/card-fields-BJ9YVWI0.css +1 -0
- package/public/assets/{card-fields-eo7dqj1P.js → card-fields-iDvc1GXx.js} +1 -1
- package/public/assets/{chat-composer-editor-DCmWVP16.js → chat-composer-editor-CPfqqfXn.js} +1 -1
- package/public/assets/{chat-message-list-DPXjDBw1.js → chat-message-list-Ds52ru39.js} +1 -1
- package/public/assets/chunk-6U3AYISY-C6-Mtja1.js +12 -0
- package/public/assets/{chunk-EIO257PC-Bfdsn_q8.js → chunk-EIO257PC-DvUJi4Nw.js} +1 -1
- package/public/assets/chunk-K2UTITRG-ZTIxemJp.js +41 -0
- package/public/assets/chunk-SRAX5OIU-wzfotNc-.js +1 -0
- package/public/assets/chunk-Z3N5DIM6-D9TMVU7m.js +1 -0
- package/public/assets/{code-editor-CxLqzVwa.js → code-editor-BTcitmHE.js} +1 -1
- package/public/assets/code-editor-DIB7VOIc.css +1 -0
- package/public/assets/{color-picker-Cmg2HIDb.css → color-picker-BV0aOd4w.css} +1 -1
- package/public/assets/{color-picker-DK8V_DI0.js → color-picker-WHiWktCJ.js} +1 -1
- package/public/assets/{contents-view-DHRWEBwV.js → contents-view-DOVe1FVg.js} +1 -1
- package/public/assets/contents-view-XuasBH0m.css +1 -0
- package/public/assets/{conversation-debug-panel-zsrBEMxW.js → conversation-debug-panel-C73_GL9P.js} +1 -1
- package/public/assets/{settings-view-Bd65kLGK.css → core-settings-module-DNS3W-dj.css} +1 -1
- package/public/assets/core-settings-module-_wQSD6hP.js +4 -0
- package/public/assets/create-note-popup-B-wM8Q5O.js +1 -0
- package/public/assets/{cs-CZ-2BRQDIVT-fiabtlu1.js → cs-CZ-2BRQDIVT-CHlJO48i.js} +1 -1
- package/public/assets/{cypher-editor-ef6RdDgm.js → cypher-editor-M9g--02t.js} +1 -1
- package/public/assets/{da-DK-5WZEPLOC-C-5tRCvs.js → da-DK-5WZEPLOC-B2KbOKlk.js} +1 -1
- package/public/assets/daily-notes-settings-CrgXHhLI.js +1 -0
- package/public/assets/{dashboard-grid-DKMK4z_a.js → dashboard-grid-BZ8kYdV4.js} +2 -2
- package/public/assets/dashboard-workspace-CIhpZ3rj.js +4 -0
- package/public/assets/dashboard-workspace-ChhR6uFw.css +1 -0
- package/public/assets/{dashboards-settings-module-DmE0Krje.js → dashboards-settings-module-CUyrJjUX.js} +1 -1
- package/public/assets/dashboards-view-CkheD5RG.js +1 -0
- package/public/assets/{de-DE-XR44H4JA-4wneKMQi.js → de-DE-XR44H4JA-CraH52sB.js} +1 -1
- package/public/assets/{desktop-server-settings-DDd8PcxW.js → desktop-server-settings-CDuPB2R6.js} +1 -1
- package/public/assets/discovery-create-popup-aCpL7caq.js +1 -0
- package/public/assets/discovery-import-popup-qmw9XOW8.js +1 -0
- package/public/assets/{discovery-settings-module-DQMZismj.js → discovery-settings-module-BiY4ib2N.js} +1 -1
- package/public/assets/discovery-view-CPYP4CTN.js +1 -0
- package/public/assets/discovery-workspace-COn6jS_C.js +2 -0
- package/public/assets/{dist-B58c6eJE.js → dist-BmY58onI.js} +1 -1
- package/public/assets/drag-preview-i140CAXv.js +1 -0
- package/public/assets/{drawing-note-BytzAih9.js → drawing-note-CZIRcZb4.js} +1 -1
- package/public/assets/{el-GR-BZB4AONW-BUDxOK9m.js → el-GR-BZB4AONW-hWxkjrdo.js} +1 -1
- package/public/assets/en-B4ZKOASM-CDD2_KUt.js +1 -0
- package/public/assets/{es-ES-U4NZUMDT-gXLOOlpz.js → es-ES-U4NZUMDT-D3W7yrM9.js} +1 -1
- package/public/assets/{esm-BSlSeh8A.js → esm-BwVJXUDM.js} +1 -1
- package/public/assets/{eu-ES-A7QVB2H4-4kiV_opo.js → eu-ES-A7QVB2H4-C6t3pMxo.js} +1 -1
- package/public/assets/export-formats-BEyzF7fr.js +1 -0
- package/public/assets/{fa-IR-HGAKTJCU-C7F0Dl4h.js → fa-IR-HGAKTJCU-DJOOVnVh.js} +1 -1
- package/public/assets/{feature-switch-section-617S6UWP.js → feature-switch-section-DWkHmh9Q.js} +1 -1
- package/public/assets/{fi-FI-Z5N7JZ37-DEUSwc4a.js → fi-FI-Z5N7JZ37-DEhnpOQb.js} +1 -1
- package/public/assets/file-editor-BMcxRFx_.css +1 -0
- package/public/assets/file-editor-WXaKLCia.js +3 -0
- package/public/assets/{file-language-DjeubQk3.js → file-language-BAXzYrUs.js} +1 -1
- package/public/assets/file-picker-Bo4sE6ud.css +1 -0
- package/public/assets/file-picker-DalNc5HP.js +1 -0
- package/public/assets/file-preview-B2sjiYV9.css +1 -0
- package/public/assets/file-preview-CBXgB9qm.js +1 -0
- package/public/assets/{file-preview-media-DL2hGeeZ.js → file-preview-media-D5_7dD-7.js} +1 -1
- package/public/assets/file-references-api-IoK82adM.js +1 -0
- package/public/assets/files-settings-module-DTmzlXAF.js +1 -0
- package/public/assets/files-view-D7awxVSV.js +3 -0
- package/public/assets/{files-view-B6_Mlm9V.css → files-view-DyPI1vLx.css} +1 -1
- package/public/assets/{format-panel-value-vueBm4DQ.js → format-panel-value-Qry4ewBT.js} +1 -1
- package/public/assets/format-rules-BFnbjJsr.js +1 -0
- package/public/assets/{fr-FR-RHASNOE6-BKLo10bn.js → fr-FR-RHASNOE6-D9pFTuqa.js} +1 -1
- package/public/assets/{gl-ES-HMX3MZ6V-D_nHnidC.js → gl-ES-HMX3MZ6V-CIK6mfAj.js} +1 -1
- package/public/assets/graph-explorer-DEddRhZU.js +329 -0
- package/public/assets/graph-settings-module-CdwcXpWv.js +1 -0
- package/public/assets/{he-IL-6SHJWFNN-BXKK7JWx.js → he-IL-6SHJWFNN-sIPLWf4m.js} +1 -1
- package/public/assets/{hi-IN-IWLTKZ5I-D2utCBQM.js → hi-IN-IWLTKZ5I-BUJucdSj.js} +1 -1
- package/public/assets/{hu-HU-A5ZG7DT2-BENIngFF.js → hu-HU-A5ZG7DT2-B29-4soS.js} +1 -1
- package/public/assets/icons-BQSaMzmI.js +1 -0
- package/public/assets/{id-ID-SAP4L64H-Bw77jJOj.js → id-ID-SAP4L64H-CyIfHt3t.js} +1 -1
- package/public/assets/ide-settings-module-DmJJdyaW.js +1 -0
- package/public/assets/ide-view-BhQVUYYS.js +1 -0
- package/public/assets/ide-view-Cou_U3E6.css +1 -0
- package/public/assets/image-GAAHSSAO-BxryKUrU.js +1 -0
- package/public/assets/imap-accounts-my6l8ble.js +1 -0
- package/public/assets/index-CfVw4gte.js +9 -0
- package/public/assets/index-CuWXx5Sr.css +1 -0
- package/public/assets/{it-IT-JPQ66NNP-DiG4G8vQ.js → it-IT-JPQ66NNP-Dq23HshR.js} +1 -1
- package/public/assets/{ja-JP-DBVTYXUO-CILN9NGs.js → ja-JP-DBVTYXUO-8NNxRVWb.js} +1 -1
- package/public/assets/journal-create-popup-DsFTus7q.js +1 -0
- package/public/assets/journal-day-route-BX4-KaSl.js +1 -0
- package/public/assets/journal-folder-field-hSCfQuop.js +1 -0
- package/public/assets/journal-page-CoLcbMGG.css +1 -0
- package/public/assets/journal-page-CuUs4DCL.js +2 -0
- package/public/assets/journal-settings-BeM9sz5z.js +1 -0
- package/public/assets/journal-typography-BB4TqmXu.js +1 -0
- package/public/assets/journal-writing-route-Ba7mqWJS.js +1 -0
- package/public/assets/journals-view-Cf89lTyQ.js +1 -0
- package/public/assets/kaa-6HZHGXH3-DWQlZzTI.js +1 -0
- package/public/assets/{kab-KAB-ZGHBKWFO-yPJB-J7N.js → kab-KAB-ZGHBKWFO-BCP7pvXg.js} +1 -1
- package/public/assets/kk-KZ-P5N5QNE5-xOkOQsTw.js +1 -0
- package/public/assets/{km-KH-HSX4SM5Z-CSZjabru.js → km-KH-HSX4SM5Z-D0xjNROe.js} +1 -1
- package/public/assets/{ko-KR-MTYHY66A-CGEXYXZz.js → ko-KR-MTYHY66A-E5aEyLj-.js} +1 -1
- package/public/assets/{ku-TR-6OUDTVRD-DOfuZRKI.js → ku-TR-6OUDTVRD-CDQOo-yR.js} +1 -1
- package/public/assets/link-choices-CRTxLpuA.js +1 -0
- package/public/assets/link-entry-route-C1tWLndS.js +1 -0
- package/public/assets/link-file-browser-RuO2yY0g.js +1 -0
- package/public/assets/{link-kind-icon-BMfHfR_C.js → link-kind-icon-BgeZ5N-E.js} +1 -1
- package/public/assets/link-picker-CWK41zM0.js +2 -0
- package/public/assets/locked-shares-prompt-eH6sWg93.js +1 -0
- package/public/assets/{logging-settings-contribution-BLHCBnwO.js → logging-settings-contribution-Btq9ioZn.js} +1 -1
- package/public/assets/logic-CiFwn-O5.js +28 -0
- package/public/assets/long-press-C_vMz2E6.js +1 -0
- package/public/assets/{lt-LT-XHIRWOB4-CmbJTJAh.js → lt-LT-XHIRWOB4-CZPudjgc.js} +1 -1
- package/public/assets/{lv-LV-5QDEKY6T-Br-VqxTs.js → lv-LV-5QDEKY6T-BFIvtooB.js} +1 -1
- package/public/assets/markdown-message-BmuXZdEl.js +3 -0
- package/public/assets/markdown-message-CEFw-l9n.css +1 -0
- package/public/assets/markdown-task-toggle-BdNMBrC0.css +1 -0
- package/public/assets/markdown-task-toggle-j4VvSqsD.js +4 -0
- package/public/assets/{matrices-settings-module-DKGdrCad.js → matrices-settings-module-CoOYPwEU.js} +1 -1
- package/public/assets/matrices-view-CcjCls3L.js +1 -0
- package/public/assets/matrix-workspace-98WdHTfO.js +1 -0
- package/public/assets/{maximize-2-DATMN9kx.js → maximize-2-BOW9VTPW.js} +1 -1
- package/public/assets/mermaid-diagram-kld9fHwj.js +1 -0
- package/public/assets/{mobile-file-text-meniSeto.js → mobile-file-text-BqyOwF0N.js} +1 -1
- package/public/assets/mobile-note-content-editor-BPxespTd.js +2 -0
- package/public/assets/{mobile-panel-layer-2EcEm-JB.js → mobile-panel-layer-CA_yph77.js} +1 -1
- package/public/assets/model-provider-settings-contribution-CECr7FiG.js +1 -0
- package/public/assets/model-providers-Ptlz_trq.js +1 -0
- package/public/assets/move-destination-2AXvBdlJ.js +1 -0
- package/public/assets/move-entries-dialog-BEJJSv8J.js +1 -0
- package/public/assets/{mr-IN-CRQNXWMA-DwF8SFQB.js → mr-IN-CRQNXWMA-DmnSBhlL.js} +1 -1
- package/public/assets/my-MM-5M5IBNSE-DDu4zmzX.js +1 -0
- package/public/assets/{nb-NO-T6EIAALU-BelWzTQs.js → nb-NO-T6EIAALU-BLzt9sXj.js} +1 -1
- package/public/assets/{nl-NL-IS3SIHDZ-Ce06PPL4.js → nl-NL-IS3SIHDZ-FtFhrALS.js} +1 -1
- package/public/assets/{nn-NO-6E72VCQL-BbXlzJzR.js → nn-NO-6E72VCQL-B_SymEE5.js} +1 -1
- package/public/assets/note-body-focus-d1lrm6Vw.js +1 -0
- package/public/assets/note-collab-provider-B5sEpjH1.js +1 -0
- package/public/assets/note-collab-transport-HTl4Zdug.js +1 -0
- package/public/assets/note-create-settings-module-iEVdyRFV.js +1 -0
- package/public/assets/{note-documents-CcJDTkta.js → note-documents-BPTwtsVi.js} +2 -2
- package/public/assets/note-editor-container-Ct9S4xJq.css +1 -0
- package/public/assets/note-editor-container-DzXoYKkT.js +2 -0
- package/public/assets/note-editor-settings-module-BZalej3y.js +1 -0
- package/public/assets/note-excalidraw-editor-CYHK-nyq.js +118 -0
- package/public/assets/note-excalidraw-editor-DVHMAsgJ.css +1 -0
- package/public/assets/{note-export-api-CwuXGV0y.js → note-export-api-Cdb5DLzA.js} +1 -1
- package/public/assets/note-export-flow-CfLnfRzg.js +1 -0
- package/public/assets/{note-filter-rule-rows-DFSWBwql.js → note-filter-rule-rows-DmVis2Dw.js} +1 -1
- package/public/assets/note-folds-settings-module-DeVre4gm.js +1 -0
- package/public/assets/note-frontmatter-summary-DNdQjzv5.js +1 -0
- package/public/assets/note-history-retention-B5aE8fKh.js +1 -0
- package/public/assets/note-link-list-C2i2SrSh.css +1 -0
- package/public/assets/note-link-list-DD4FzeUb.js +2 -0
- package/public/assets/note-markdown-editor-BlWCUXb9.js +26 -0
- package/public/assets/note-markdown-editor-Dp1k8dWQ.css +1 -0
- package/public/assets/{note-outline-BFidIp-8.js → note-outline-C-dPTJrB.js} +2 -2
- package/public/assets/note-outline-DTpLzjGU.css +1 -0
- package/public/assets/note-page-content-CZH9UDn0.js +2 -0
- package/public/assets/{note-page-editor-BgcMK_4q.css → note-page-editor-D7Wt_Giv.css} +1 -1
- package/public/assets/{note-page-editor-DpVUxkCx.js → note-page-editor-D8M6gjmG.js} +4 -4
- package/public/assets/note-path-breadcrumb-CLfo-0XG.js +1 -0
- package/public/assets/{note-path-breadcrumb-YC4bHnwX.css → note-path-breadcrumb-Drkebhvm.css} +1 -1
- package/public/assets/{note-picker-B5i41l1u.js → note-picker-DIFcqGgZ.js} +1 -1
- package/public/assets/note-picker-KBB6aonj.css +1 -0
- package/public/assets/{note-picker-popover-B9VTeHiM.js → note-picker-popover-CoT73GG-.js} +1 -1
- package/public/assets/note-shares-popup-CmUAI6V-.js +1 -0
- package/public/assets/note-side-panel-BFno3955.js +1 -0
- package/public/assets/note-side-panel-DLOy2dVw.css +1 -0
- package/public/assets/note-side-panel-host-iIfi_4c4.js +1 -0
- package/public/assets/note-source-editor-CVo_ZXww.js +1 -0
- package/public/assets/{note-type-grid-CRCfpYZy.js → note-type-grid-Bfdc8U-T.js} +2 -2
- package/public/assets/{note-type-grid-BM33ZYF-.css → note-type-grid-BzMZLAzW.css} +1 -1
- package/public/assets/{note-values-6D6wWXPg.js → note-values-C4A12_CE.js} +1 -1
- package/public/assets/notes-settings-module-DBSeNBYj.js +1 -0
- package/public/assets/notes-view-C_mX24NH.js +1 -0
- package/public/assets/notes-view-D212ymqf.css +1 -0
- package/public/assets/{oc-FR-POXYY2M6-CyRgkETq.js → oc-FR-POXYY2M6-DM9hsX9Q.js} +1 -1
- package/public/assets/{open-journal-writing-Bub8Zn13.js → open-journal-writing-Da9CBYtR.js} +1 -1
- package/public/assets/{pa-IN-N4M65BXN-A1_Q9748.js → pa-IN-N4M65BXN-CJJQ9oPk.js} +1 -1
- package/public/assets/page-content-27iX_YpJ.js +1 -0
- package/public/assets/page-content-CdioJybS.css +1 -0
- package/public/assets/page-export-api-BqvyvK1O.js +1 -0
- package/public/assets/page-export-flow-HzZ0AmjW.js +1 -0
- package/public/assets/page-files-C30eoBCR.js +1 -0
- package/public/assets/page-note-7Oo1OmH0.js +1 -0
- package/public/assets/pane-layout-BaHTn1Oz.js +1 -0
- package/public/assets/{panel-columns-fields-ZlW6A4My.js → panel-columns-fields-B9Biz8Xm.js} +1 -1
- package/public/assets/pdf-view-B5Y12R4H.js +1 -0
- package/public/assets/pdf-view-X71jeHKm.css +1 -0
- package/public/assets/{pencil-xxFNyZzr.js → pencil-BQzjBcpa.js} +1 -1
- package/public/assets/percentages-BXMCSKIN-DRPvI3O-.js +1 -0
- package/public/assets/{phone-numbers-BQgyhfcH.js → phone-numbers-lV_IC3Pq.js} +1 -1
- package/public/assets/{pl-PL-T2D74RX3-DaINIVjz.js → pl-PL-T2D74RX3-BLAcchR-.js} +1 -1
- package/public/assets/progress-bar-BxjnW3uQ.js +1 -0
- package/public/assets/provider-configuration-DBW3Pa0C.js +8 -0
- package/public/assets/provider-configuration-dpnYrEZm.css +1 -0
- package/public/assets/provider-use-select-C0EI8kSQ.js +1 -0
- package/public/assets/{pt-BR-5N22H2LF-ENVHjTz_.js → pt-BR-5N22H2LF-BiLQ-V_W.js} +1 -1
- package/public/assets/{pt-PT-UZXXM6DQ-D5Uqv0Vz.js → pt-PT-UZXXM6DQ-DKEXacg3.js} +1 -1
- package/public/assets/qr-code-DgTUKCej.js +2 -0
- package/public/assets/{qr-code-svg-8ENstC8b.js → qr-code-svg-DdWw4ovA.js} +1 -1
- package/public/assets/qr-defaults-settings-BbbzxV5k.js +1 -0
- package/public/assets/qr-settings-fields-C8GCAxa_.js +1 -0
- package/public/assets/qr-viewer-DTCnaLOP.js +1 -0
- package/public/assets/queryOptions-Dfvzj6n2.js +1 -0
- package/public/assets/{reader-clock-7x7Yvzv1.js → reader-clock-s4x6Qtz_.js} +1 -1
- package/public/assets/{recording-bar-BcuvYwhh.js → recording-bar-C5jkIsLX.js} +1 -1
- package/public/assets/{recording-setup-D_MgrYb7.js → recording-setup-fZ6fe1MX.js} +1 -1
- package/public/assets/{recordings-api-Ds77lFsk.js → recordings-api-CxuXFNaM.js} +1 -1
- package/public/assets/{resource-overview-card-BainFWKz.js → resource-overview-card-CAxT9QxY.js} +1 -1
- package/public/assets/{ro-RO-JPDTUUEW-Dq_ouOp1.js → ro-RO-JPDTUUEW-DPtQ18Fr.js} +1 -1
- package/public/assets/rss-settings-module-Bg7BBsC4.js +1 -0
- package/public/assets/rss-view-DeSvhXEa.js +3 -0
- package/public/assets/{ru-RU-B4JR7IUQ-CqqISqJC.js → ru-RU-B4JR7IUQ-n-7DhzM7.js} +1 -1
- package/public/assets/{safe-block-copy-BOVhmncw.js → safe-block-copy-B7NrP_YX.js} +1 -1
- package/public/assets/{safe-block-qr-button-CD7cJG3N.js → safe-block-qr-button-DomQCK7l.js} +1 -1
- package/public/assets/safe-block-reader-BGmIVIwN.js +1 -0
- package/public/assets/safe-folder-conversion-Re-4B3nf.js +1 -0
- package/public/assets/{safe-folders-DmvM6dtV.js → safe-folders-B4zJo8qB.js} +1 -1
- package/public/assets/{safe-move-leaving-BT5e1h3p.js → safe-move-leaving-D4dKIwTJ.js} +1 -1
- package/public/assets/{safe-note-locked-BDCeVwpK.js → safe-note-locked-BGUjggd4.js} +1 -1
- package/public/assets/safe-notes-settings-module-zJbcwdU7.js +1 -0
- package/public/assets/{markdown-task-toggle-CuRdtBn0.css → safe-text-B4Q6DSRg.css} +1 -1
- package/public/assets/safe-text-MPRw9KNQ.js +2 -0
- package/public/assets/search-settings-module-CMWbEyvZ.js +1 -0
- package/public/assets/{secret-form-B-YAlbZf.js → secret-form-DoNXw27T.js} +1 -1
- package/public/assets/secret-popup-Vn5Xkv4s.js +1 -0
- package/public/assets/section-navigation-1mCyY2Gm.js +1 -0
- package/public/assets/{security-settings-contribution-BmcZq1hf.js → security-settings-contribution-BrPrGp5q.js} +1 -1
- package/public/assets/settings-CxK-AM0A.js +1 -0
- package/public/assets/settings-actions-DnTiS3-h.js +1 -0
- package/public/assets/{settings-edit-dialog-C_AeTz9Y.js → settings-edit-dialog-CE5ZTszW.js} +1 -1
- package/public/assets/settings-panel-BF5baIMl.js +1 -0
- package/public/assets/settings-surface-CDwMuN24.js +3 -0
- package/public/assets/settings-surface-DzW4lcds.css +1 -0
- package/public/assets/{setup-prompt-BbpHVdla.js → setup-prompt-Bmv_QxoH.js} +1 -1
- package/public/assets/{share-access-control-CzAVEv6b.js → share-access-control-CB7J42Dn.js} +1 -1
- package/public/assets/shared-board-CLRkwNKE.js +1 -0
- package/public/assets/shared-board-lanes-OZo3pA9j.js +1 -0
- package/public/assets/{shared-calendar-view-DTzDjSs0.js → shared-calendar-view-BSmK0NDE.js} +1 -1
- package/public/assets/shared-note-route-CnykVAYu.css +1 -0
- package/public/assets/shared-note-route-DtZVqLMu.js +4 -0
- package/public/assets/shared-note-text-C6nccM7z.js +1 -0
- package/public/assets/{shares-settings-module-pIdBLmCq.js → shares-settings-module-gI5s2PT6.js} +1 -1
- package/public/assets/si-LK-N5RQ5JYF-BpI-kBDz.js +1 -0
- package/public/assets/{sk-SK-C5VTKIMK-YiOZ-xKA.js → sk-SK-C5VTKIMK-BRXRBgRU.js} +1 -1
- package/public/assets/{sl-SI-NN7IZMDC-BKb37Hlu.js → sl-SI-NN7IZMDC-BXKt0fnN.js} +1 -1
- package/public/assets/{spaces-settings-module-BLU1RsTS.js → spaces-settings-module-BOkTwY_Z.js} +1 -1
- package/public/assets/spaces-view-K5_OKPoW.js +2 -0
- package/public/assets/sqlite-browser-BVA27ofB.css +1 -0
- package/public/assets/sqlite-browser-DCKBF2SI.js +2 -0
- package/public/assets/stack-widgets-CLUFu_vQ.js +1 -0
- package/public/assets/store-attachments-DQ63HVZo.js +1 -0
- package/public/assets/stored-color-picker-BLs1gClm.css +1 -0
- package/public/assets/stored-color-picker-CZ66rDog.js +1 -0
- package/public/assets/style-DPV_jdGg.css +1 -0
- package/public/assets/subset-shared.chunk-DYH4c2c2.js +1 -0
- package/public/assets/subset-worker.chunk-yCTTgC3G.js +1 -0
- package/public/assets/{sv-SE-XGPEYMSR-VT0snW-T.js → sv-SE-XGPEYMSR-nBH8YjQ4.js} +1 -1
- package/public/assets/{ta-IN-2NMHFXQM--MqIf2Jf.js → ta-IN-2NMHFXQM-f0oprEqN.js} +1 -1
- package/public/assets/{text-diff-BmKfp7mY.js → text-diff-BMS8apwf.js} +1 -1
- package/public/assets/th-TH-HPSO5L25-CUOH0u8u.js +2 -0
- package/public/assets/{theme-colors-zbTaiYL0.js → theme-colors-BcoD3SUn.js} +1 -1
- package/public/assets/{toolbar-items-DLi0bl0c.js → toolbar-items-DtGvJf3U.js} +1 -1
- package/public/assets/{topology-code-editor-CNnSyUQ3.js → topology-code-editor-ClyHjN--.js} +1 -1
- package/public/assets/topology-designer-DmhzdlOY.js +1 -0
- package/public/assets/{topology-editor-DUaww3cM.css → topology-editor-CZnvLbBi.css} +1 -1
- package/public/assets/topology-editor-YK_2uGkR.js +8 -0
- package/public/assets/{topology-folder-migration-popup-C0Wc3ViK.js → topology-folder-migration-popup-AZFR8-44.js} +1 -1
- package/public/assets/{tr-TR-DEFEU3FU-BVLSiyVW.js → tr-TR-DEFEU3FU-CTsS8Qy-.js} +1 -1
- package/public/assets/{transcription-settings-BldPwHO7.js → transcription-settings-D7_ViMfp.js} +2 -2
- package/public/assets/tree-header-CmCmDZKG.js +1 -0
- package/public/assets/tree-header-DlATpadF.css +1 -0
- package/public/assets/types-settings-module-L4wPTMty.js +1 -0
- package/public/assets/{uk-UA-QMV73CPH-DQ4YsZml.js → uk-UA-QMV73CPH-BJo17WQM.js} +1 -1
- package/public/assets/{unlock-prompt-CkkcVo9g.js → unlock-prompt-BQVrb-4k.js} +1 -1
- package/public/assets/{use-candidate-notes-jH4-EW29.js → use-candidate-notes-YOxWyJCJ.js} +1 -1
- package/public/assets/{directory-picker-columns-BpDkvDO0.css → use-directory-columns-DILivjwk.css} +1 -1
- package/public/assets/use-directory-columns-DYequGsf.js +1 -0
- package/public/assets/use-directory-listing-Bj3F5kA3.js +1 -0
- package/public/assets/use-folding-enabled-N7w9iIqy.js +1 -0
- package/public/assets/use-heading-location-BZ9wUH2j.js +1 -0
- package/public/assets/{use-live-document-D4PkZrbU.js → use-live-document-4fc8FCW3.js} +1 -1
- package/public/assets/use-mobile-layer-navigation-Il_7QdXn.js +1 -0
- package/public/assets/{use-note-attachments-Bew073Hl.js → use-note-attachments-DAFyHvYo.js} +1 -1
- package/public/assets/{use-note-delete-fFNH1Glk.js → use-note-delete-JQISrVQ4.js} +1 -1
- package/public/assets/{use-note-editor-session-R1wm0xDf.js → use-note-editor-session-BlLoBd41.js} +1 -1
- package/public/assets/use-note-maximize-offer-DpU6Ms0_.js +1 -0
- package/public/assets/use-note-side-column-CFBvrpKH.css +1 -0
- package/public/assets/use-note-side-column-CVs74c26.js +1 -0
- package/public/assets/use-provider-dialogs-BRoAomhX.css +1 -0
- package/public/assets/use-provider-dialogs-HkxDcuJv.js +1 -0
- package/public/assets/{use-reflection-request-C1DxtaYX.js → use-reflection-request-BuFnMuQC.js} +4 -4
- package/public/assets/use-safe-folder-moves-CjbmSWSM.js +1 -0
- package/public/assets/use-safe-folders-apply-D_7a5l_T.js +1 -0
- package/public/assets/{use-screen-source-CF-48NnC.js → use-screen-source-BZ0GGtml.js} +1 -1
- package/public/assets/use-share-actions-DBYaF7Wp.css +1 -0
- package/public/assets/use-share-actions-Tfr6NI4j.js +1 -0
- package/public/assets/use-tab-style-B5YK0cIz.js +2 -0
- package/public/assets/use-tab-style-CRx5AnD1.css +1 -0
- package/public/assets/use-vault-file-link-BCQahdir.js +1 -0
- package/public/assets/{use-voice-questions-DGVQlAST.js → use-voice-questions-DmxYfc8M.js} +1 -1
- package/public/assets/vault-entries-api-CZHdxv7-.js +1 -0
- package/public/assets/vault-file-links-D1RzhVkx.js +1 -0
- package/public/assets/vault-folder-field-C5b24MNS.js +1 -0
- package/public/assets/vault-folder-field-X-B1weCe.css +1 -0
- package/public/assets/vault-links-popup-zkFCHyoP.js +1 -0
- package/public/assets/vault-manager-CZnYayEU.js +1 -0
- package/public/assets/{vault-settings-module-CCMMSy4B.js → vault-settings-module-CL2DHG69.js} +1 -1
- package/public/assets/vault-shares-popup-Cnew0vMQ.js +1 -0
- package/public/assets/vault-workspace-settings-module-D_n4aQfC.js +1 -0
- package/public/assets/{versioning-preferences-DrNq-y_0.js → versioning-preferences-BK-mZYhi.js} +1 -1
- package/public/assets/{versioning-settings-module-Ddug486c.js → versioning-settings-module-lq4k7b3C.js} +1 -1
- package/public/assets/versioning-view-BdEZaF8n.js +2 -0
- package/public/assets/{vi-VN-M7AON7JQ-B-fHV7o8.js → vi-VN-M7AON7JQ-DpgVSDWc.js} +1 -1
- package/public/assets/video-recording-dialog-ByevPvCN.js +1 -0
- package/public/assets/{video-recording-settings-B2iE6IdW.js → video-recording-settings-Ce2plgiG.js} +1 -1
- package/public/assets/widget-frame-DzlpiABF.js +1 -0
- package/public/assets/widget-layouts-DS7nWc80.js +1 -0
- package/public/assets/workspace-layout-3hjN1Wng.js +1 -0
- package/public/assets/{zh-CN-LNUGB5OW-CUgxiiUV.js → zh-CN-LNUGB5OW-Cfb6--Ow.js} +1 -1
- package/public/assets/zh-HK-E62DVLB3-vaMRVwdL.js +1 -0
- package/public/assets/{zh-TW-RAJ6MFWO-BVaf47B6.js → zh-TW-RAJ6MFWO-CNUUB_PG.js} +1 -1
- package/public/index.html +6 -6
- package/dist/search/embedding-connection-migration.js +0 -57
- package/node_modules/@braian/ai-providers/dist/legacy-embedding-migration.js +0 -21
- package/public/assets/FileText.es-4c63tWmA.js +0 -1
- package/public/assets/TerminalWindow.es-DwLjQ_88.js +0 -1
- package/public/assets/Warning.es-4HWtj9Nt.js +0 -1
- package/public/assets/agent-profiles-settings-yElCnMJo.js +0 -1
- package/public/assets/appearance-settings-module-BFDKE-mZ.js +0 -1
- package/public/assets/attachment-embed-BX0XSPNZ.js +0 -1
- package/public/assets/attachments-settings-CSEjOoFg.js +0 -1
- package/public/assets/az-AZ-76LH7QW2-DpGlptKS.js +0 -1
- package/public/assets/blue-ezN0uv0j.css +0 -1
- package/public/assets/board-workspace-CmetKvXF.js +0 -1
- package/public/assets/boards-settings-module-Bh5dh9jG.js +0 -1
- package/public/assets/calendar-view-Cr1VSpj0.js +0 -1
- package/public/assets/calendar-workspace-B-2Himdy.js +0 -1
- package/public/assets/card-fields-C1JCmDVz.css +0 -1
- package/public/assets/code-editor-wFimHbMT.css +0 -1
- package/public/assets/contents-view-EQyMaey-.css +0 -1
- package/public/assets/create-note-popup-C9IB_IZr.js +0 -1
- package/public/assets/daily-notes-settings-CCotd1Iq.js +0 -1
- package/public/assets/dashboard-workspace-4u-QaXby.js +0 -4
- package/public/assets/dashboard-workspace-CW4tbadO.css +0 -1
- package/public/assets/dashboards-view-DxUAl6zg.js +0 -1
- package/public/assets/directory-picker-columns-CqPZNMT8.js +0 -1
- package/public/assets/discovery-create-popup-BSOSYM4o.js +0 -1
- package/public/assets/discovery-import-popup-NodFxSW1.js +0 -1
- package/public/assets/discovery-view-PiwStXSa.js +0 -1
- package/public/assets/discovery-workspace-BTrjBF19.js +0 -2
- package/public/assets/drag-preview-D61OK7zr.js +0 -1
- package/public/assets/en-B4ZKOASM-jB7I34Md.js +0 -1
- package/public/assets/file-editor-B-9eXvH3.css +0 -1
- package/public/assets/file-editor-DvP7rRI9.js +0 -3
- package/public/assets/file-preview-AkYowAab.js +0 -1
- package/public/assets/file-preview-Dynm8laQ.css +0 -1
- package/public/assets/file-references-api-C2G0bSy9.js +0 -1
- package/public/assets/files-settings-module-DsylYhrR.js +0 -1
- package/public/assets/files-view-DPSrj_WW.js +0 -3
- package/public/assets/folder-picker-dialog-CxiRBtQb.css +0 -1
- package/public/assets/folder-picker-dialog-D_VCqm_i.js +0 -1
- package/public/assets/format-rules-GzYB7Vvh.js +0 -1
- package/public/assets/graph-explorer-CHz-bFkx.js +0 -329
- package/public/assets/graph-settings-module-9hY9bkdT.js +0 -1
- package/public/assets/icons-CxH3_W-q.js +0 -1
- package/public/assets/ide-settings-module-BbIX3okW.js +0 -1
- package/public/assets/ide-view-0vK2duKI.js +0 -2
- package/public/assets/ide-view-isgMvraA.css +0 -1
- package/public/assets/image-GAAHSSAO-D4NDL8F6.js +0 -1
- package/public/assets/imap-accounts-BRbnITJv.js +0 -1
- package/public/assets/index-BVDhmwI8.js +0 -11
- package/public/assets/index-DjUUY3gd.css +0 -1
- package/public/assets/journal-create-popup-39y9ieVG.js +0 -1
- package/public/assets/journal-day-route-CYlyL-u0.js +0 -1
- package/public/assets/journal-folder-field-B8yNmuTt.css +0 -1
- package/public/assets/journal-folder-field-BfO-_ied.js +0 -1
- package/public/assets/journal-page-CAXrq4hj.css +0 -1
- package/public/assets/journal-page-TgyVFaPE.js +0 -2
- package/public/assets/journal-settings-CfjXOXzF.js +0 -1
- package/public/assets/journal-typography-D3O3AK2U.js +0 -1
- package/public/assets/journal-writing-route-CYhXzipC.js +0 -1
- package/public/assets/journals-view-DNomC0nF.js +0 -1
- package/public/assets/kaa-6HZHGXH3-BUua-YiR.js +0 -1
- package/public/assets/kk-KZ-P5N5QNE5-CAitSjw5.js +0 -1
- package/public/assets/link-file-browser-A_Mappx0.js +0 -1
- package/public/assets/link-picker-BfwWXJZg.js +0 -2
- package/public/assets/locked-shares-prompt-BsM-ai_V.js +0 -1
- package/public/assets/logic-DtHJ5GlU.js +0 -28
- package/public/assets/markdown-message-BIo2pHhE.js +0 -3
- package/public/assets/markdown-message-C2w22wrW.css +0 -1
- package/public/assets/markdown-task-toggle-9k1EldDD.js +0 -5
- package/public/assets/matrices-view-DYF7e5ES.js +0 -1
- package/public/assets/matrix-workspace-JZhH-HQ5.js +0 -1
- package/public/assets/mermaid-diagram-gUL2-JyE.js +0 -1
- package/public/assets/mobile-note-content-editor-C6TUyA4F.js +0 -2
- package/public/assets/model-provider-settings-contribution-CfHiu3nS.js +0 -1
- package/public/assets/model-providers-cQOCMmwX.js +0 -1
- package/public/assets/my-MM-5M5IBNSE-BEiMo9eJ.js +0 -1
- package/public/assets/note-body-focus-BKKGEgBj.js +0 -1
- package/public/assets/note-collab-provider-B9DpnE58.js +0 -1
- package/public/assets/note-collab-transport-BHZ891IL.js +0 -1
- package/public/assets/note-create-settings-module-rIZc1DjQ.js +0 -1
- package/public/assets/note-editor-container-8DkvXTPN.css +0 -1
- package/public/assets/note-editor-container-DL3yLdYs.js +0 -2
- package/public/assets/note-editor-settings-module-DI0jRyPy.js +0 -1
- package/public/assets/note-excalidraw-editor-CKSC5Oww.css +0 -1
- package/public/assets/note-excalidraw-editor-fDQ1JVBh.js +0 -168
- package/public/assets/note-export-flow-DcBoI5Pp.js +0 -1
- package/public/assets/note-folds-settings-module-CFfVg1Cp.js +0 -1
- package/public/assets/note-frontmatter-summary-iubFPHA_.js +0 -1
- package/public/assets/note-link-list-CI9-GM_3.js +0 -1
- package/public/assets/note-link-list-hmCbBMA2.css +0 -1
- package/public/assets/note-markdown-editor-DlBj1yv3.css +0 -1
- package/public/assets/note-markdown-editor-lG6gZT9i.js +0 -26
- package/public/assets/note-outline-CAyXKuOh.css +0 -1
- package/public/assets/note-page-content-8gzPBWMV.js +0 -2
- package/public/assets/note-path-breadcrumb-HmtWyYZP.js +0 -1
- package/public/assets/note-picker-BURTnmWF.css +0 -1
- package/public/assets/note-shares-popup-aUO1SNLN.js +0 -1
- package/public/assets/note-source-editor-BXPR_-41.js +0 -1
- package/public/assets/notes-settings-module-DcP9Hid-.js +0 -1
- package/public/assets/page-content-B3fNjwr-.js +0 -1
- package/public/assets/page-content-lnIaLh4X.css +0 -1
- package/public/assets/page-files-CSqFupDZ.js +0 -1
- package/public/assets/page-note-nmiinGCs.js +0 -1
- package/public/assets/pane-keys-DiGU3yVB.css +0 -1
- package/public/assets/pane-keys-osajBGnu.js +0 -1
- package/public/assets/pdf-view-BATpBLO5.js +0 -1
- package/public/assets/pdf-view-BK5qKL4y.css +0 -1
- package/public/assets/percentages-BXMCSKIN-DzsiA6IB.js +0 -1
- package/public/assets/provider-configuration-CSnNV6ps.css +0 -1
- package/public/assets/provider-configuration-DaFovElx.js +0 -8
- package/public/assets/provider-use-select-D-lJiZ2W.js +0 -1
- package/public/assets/qr-code-CDBCi1Cu.js +0 -2
- package/public/assets/qr-defaults-settings-C_8ybA4R.js +0 -1
- package/public/assets/qr-settings-fields-C2-DGF6a.js +0 -1
- package/public/assets/qr-viewer-DAOzDI8d.js +0 -1
- package/public/assets/rss-preferences-BafuZ3Ku.js +0 -1
- package/public/assets/rss-settings-module-Df-YS9tr.js +0 -1
- package/public/assets/rss-view-BORHnuIQ.js +0 -3
- package/public/assets/safe-block-reader-BkilW4Hj.js +0 -1
- package/public/assets/safe-folder-conversion-DWTRwvTH.js +0 -1
- package/public/assets/safe-notes-settings-module-BrZreYgf.js +0 -1
- package/public/assets/search-settings-module-CPnculiI.js +0 -1
- package/public/assets/secret-popup-CoVpeLZV.js +0 -1
- package/public/assets/settings-CU8YR8di.js +0 -1
- package/public/assets/settings-panel-Ds7lOtnD.js +0 -1
- package/public/assets/settings-view-BTz2XbnW.js +0 -4
- package/public/assets/share-label-CbjQ9iMF.js +0 -1
- package/public/assets/shared-board-lanes-CAbJAFk6.js +0 -1
- package/public/assets/shared-note-route-B5rcAeES.css +0 -1
- package/public/assets/shared-note-route-B_gfX0Nl.js +0 -4
- package/public/assets/shared-note-text-DFBEyL8Z.js +0 -1
- package/public/assets/si-LK-N5RQ5JYF-DmhE8IT5.js +0 -1
- package/public/assets/spaces-view-BhWD3mAw.js +0 -2
- package/public/assets/sqlite-browser-BKjuAUqe.css +0 -1
- package/public/assets/sqlite-browser-C98PFoRG.js +0 -2
- package/public/assets/store-attachments-DbqF7LgE.js +0 -1
- package/public/assets/stored-color-picker-BoVzUatG.css +0 -1
- package/public/assets/stored-color-picker-DLX-e5Nq.js +0 -1
- package/public/assets/style-DLioOiRN.css +0 -1
- package/public/assets/subset-shared.chunk-D8M638AI.js +0 -1
- package/public/assets/subset-worker.chunk-B9ZhBm-P.js +0 -1
- package/public/assets/th-TH-HPSO5L25-CTKAmQrO.js +0 -2
- package/public/assets/topology-designer-T54LYLYv.js +0 -1
- package/public/assets/topology-editor-aGtCktzA.js +0 -8
- package/public/assets/topology-settings-module-Dp-Sm37Z.js +0 -1
- package/public/assets/use-directory-listing-Cn9t21ra.js +0 -1
- package/public/assets/use-folding-enabled-DKvri2UA.js +0 -1
- package/public/assets/use-mobile-layer-navigation-BIC7HlT_.js +0 -1
- package/public/assets/use-note-export-flow-Dm7yhW5s.js +0 -2
- package/public/assets/use-provider-dialogs-CrxN9JCo.js +0 -1
- package/public/assets/use-safe-folder-moves-DjQUnMvz.js +0 -1
- package/public/assets/use-safe-folders-apply-B1V8l7WU.js +0 -1
- package/public/assets/use-share-actions-RxO2M3y0.css +0 -1
- package/public/assets/use-share-actions-kb7uFat_.js +0 -1
- package/public/assets/use-vault-file-link-B-ZRcKDu.js +0 -1
- package/public/assets/vault-entries-api-pFsJiGnJ.js +0 -1
- package/public/assets/vault-manager-YKz_Ib18.js +0 -1
- package/public/assets/vault-shares-popup-CaGnEIJA.js +0 -1
- package/public/assets/versioning-view-PR4R4gks.js +0 -2
- package/public/assets/video-recording-dialog-CxRs1eLE.js +0 -1
- package/public/assets/widget-frame-DiF4946k.js +0 -1
- package/public/assets/zh-HK-E62DVLB3-D-87W8QH.js +0 -1
- /package/public/assets/{blue-CDYoCZOg.js → blue-DQyE4k0K.js} +0 -0
- /package/public/assets/{use-safe-folders-apply-DGWTaX5A.css → progress-bar-DGWTaX5A.css} +0 -0
- /package/public/assets/{style-DA65Bz1d.js → style-CXzDJL_q.js} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.linkPolicyOf = linkPolicyOf;
|
|
4
|
+
const route_inventory_1 = require("../http/route-inventory");
|
|
5
|
+
const link_route_policies_1 = require("./link-route-policies");
|
|
6
|
+
const cache = new WeakMap();
|
|
7
|
+
/**
|
|
8
|
+
* The link policy of the handler a request reached, by the signature a client addresses it with.
|
|
9
|
+
* A handler registered under several signatures has a policy only when all of them carry the same one,
|
|
10
|
+
* so no alias widens a route. Reflected once per controller.
|
|
11
|
+
*/
|
|
12
|
+
function linkPolicyOf(controller, handler) {
|
|
13
|
+
let byHandler = cache.get(controller);
|
|
14
|
+
if (!byHandler) {
|
|
15
|
+
byHandler = new Map();
|
|
16
|
+
const signatures = new Map();
|
|
17
|
+
for (const route of (0, route_inventory_1.routesOf)(controller))
|
|
18
|
+
signatures.set(route.handler, [...(signatures.get(route.handler) ?? []), route.signature]);
|
|
19
|
+
for (const [name, list] of signatures) {
|
|
20
|
+
const policies = list.map((signature) => link_route_policies_1.linkRoutePolicies[signature]);
|
|
21
|
+
const first = policies[0];
|
|
22
|
+
byHandler.set(name, first && policies.every((policy) => policy && JSON.stringify(policy) === JSON.stringify(first)) ? first : undefined);
|
|
23
|
+
}
|
|
24
|
+
cache.set(controller, byHandler);
|
|
25
|
+
}
|
|
26
|
+
return byHandler.get(handler);
|
|
27
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.VaultAccessDeniedFilter = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const graph_agent_1 = require("@braian/graph-agent");
|
|
12
|
+
/**
|
|
13
|
+
* A refusal raised deep in a use case, a graph processor or a file operation for a vault link
|
|
14
|
+
* (ENG-430) answers 403 with its reason, wherever it was thrown and whatever error mapping the
|
|
15
|
+
* route's service does with other domain errors.
|
|
16
|
+
*/
|
|
17
|
+
let VaultAccessDeniedFilter = class VaultAccessDeniedFilter {
|
|
18
|
+
catch(exception, host) {
|
|
19
|
+
const response = host.switchToHttp().getResponse();
|
|
20
|
+
if (response.headersSent) {
|
|
21
|
+
response.end();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
response.status(403).json({ statusCode: 403, code: exception.code, message: exception.message, reason: exception.details.reason });
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.VaultAccessDeniedFilter = VaultAccessDeniedFilter;
|
|
28
|
+
exports.VaultAccessDeniedFilter = VaultAccessDeniedFilter = __decorate([
|
|
29
|
+
(0, common_1.Catch)(graph_agent_1.VaultAccessDeniedError)
|
|
30
|
+
], VaultAccessDeniedFilter);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.VaultAccessInterceptor = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const rxjs_1 = require("rxjs");
|
|
15
|
+
const graph_agent_1 = require("@braian/graph-agent");
|
|
16
|
+
const vault_link_principal_1 = require("./vault-link-principal");
|
|
17
|
+
const vault_link_sessions_service_1 = require("./vault-link-sessions.service");
|
|
18
|
+
/**
|
|
19
|
+
* Runs a link's request inside its access scope (ENG-430), so every use case, graph processor and
|
|
20
|
+
* file operation it reaches can ask what the link may do, and whatever it starts (a run, a stream)
|
|
21
|
+
* carries the same authority. Owner requests pass through untouched.
|
|
22
|
+
*/
|
|
23
|
+
let VaultAccessInterceptor = class VaultAccessInterceptor {
|
|
24
|
+
links;
|
|
25
|
+
constructor(links) {
|
|
26
|
+
this.links = links;
|
|
27
|
+
}
|
|
28
|
+
intercept(context, next) {
|
|
29
|
+
if (context.getType() !== 'http')
|
|
30
|
+
return next.handle();
|
|
31
|
+
const principal = (0, vault_link_principal_1.vaultLinkPrincipalOf)(context.switchToHttp().getRequest());
|
|
32
|
+
if (!principal)
|
|
33
|
+
return next.handle();
|
|
34
|
+
const scope = this.links.scope(principal.access);
|
|
35
|
+
return new rxjs_1.Observable((subscriber) => (0, graph_agent_1.runWithVaultAccess)(scope, () => {
|
|
36
|
+
const subscription = next.handle().subscribe(subscriber);
|
|
37
|
+
return () => subscription.unsubscribe();
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.VaultAccessInterceptor = VaultAccessInterceptor;
|
|
42
|
+
exports.VaultAccessInterceptor = VaultAccessInterceptor = __decorate([
|
|
43
|
+
(0, common_1.Injectable)(),
|
|
44
|
+
__metadata("design:paramtypes", [vault_link_sessions_service_1.VaultLinkSessions])
|
|
45
|
+
], VaultAccessInterceptor);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setVaultLinkPrincipal = setVaultLinkPrincipal;
|
|
4
|
+
exports.vaultLinkPrincipalOf = vaultLinkPrincipalOf;
|
|
5
|
+
exports.bearerToken = bearerToken;
|
|
6
|
+
const principalKey = Symbol.for('braian.vaultLinkPrincipal');
|
|
7
|
+
function setVaultLinkPrincipal(request, principal) { request[principalKey] = principal; }
|
|
8
|
+
function vaultLinkPrincipalOf(request) { return request[principalKey]; }
|
|
9
|
+
/** The bearer token a request carries, if any. */
|
|
10
|
+
function bearerToken(request) {
|
|
11
|
+
const header = request.headers.authorization;
|
|
12
|
+
const value = Array.isArray(header) ? header[0] : header;
|
|
13
|
+
const [scheme, token] = value?.split(' ') ?? [];
|
|
14
|
+
return scheme === 'Bearer' && token ? token : undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.VaultLinkSessions = exports.vaultLinkWatchdogMs = exports.vaultLinkSessionSeconds = exports.vaultLinkAudience = void 0;
|
|
13
|
+
exports.vaultLinkEnded = vaultLinkEnded;
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const jwt_1 = require("@nestjs/jwt");
|
|
16
|
+
const graph_agent_1 = require("@braian/graph-agent");
|
|
17
|
+
const data_workspace_provider_1 = require("../workspace/data-workspace.provider");
|
|
18
|
+
/** The audience a vault-link session token carries; an owner token's (`braian-web`) never verifies here, nor this one there. */
|
|
19
|
+
exports.vaultLinkAudience = 'braian-vault-link';
|
|
20
|
+
/** A link session lasts an hour; the tab exchanges its link again for the next one. */
|
|
21
|
+
exports.vaultLinkSessionSeconds = 60 * 60;
|
|
22
|
+
/** How often a held scope is re-read at the least: the bound on closing a stream after an external change or an expiry. */
|
|
23
|
+
exports.vaultLinkWatchdogMs = 1000;
|
|
24
|
+
/** What an ended link answers: never a 403 that a client could take for one feature, and never the owner's login. */
|
|
25
|
+
function vaultLinkEnded(code = 'share_not_found') {
|
|
26
|
+
return new common_1.UnauthorizedException({ message: code === 'share_expired' ? 'This vault link has expired.' : 'This vault link no longer works.', code: 'vault_link_ended', reason: code === 'share_expired' ? 'expired' : 'ended' });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Vault-link sessions (ENG-430): the exchange of a link for a session token, the live state of the
|
|
30
|
+
* link behind every request, and the scopes that streams and runs hold. The token names the vault and
|
|
31
|
+
* the link's storage key, never its secret ID, and carries no permission: every request reads the
|
|
32
|
+
* link again. It is signed with the installation's JWT secret under its own audience and the
|
|
33
|
+
* security revision, so rotating the secret or changing the password ends every link session too.
|
|
34
|
+
*/
|
|
35
|
+
let VaultLinkSessions = class VaultLinkSessions {
|
|
36
|
+
workspaceProvider;
|
|
37
|
+
jwt;
|
|
38
|
+
live = new Map();
|
|
39
|
+
timer;
|
|
40
|
+
/**
|
|
41
|
+
* The exposure gate (ENG-430): closed, no link is exchanged and no link token admitted. Open now
|
|
42
|
+
* that every route, graph processor, stream and the web app's link session are in place; it stays as
|
|
43
|
+
* the switch to close every link at once, before admission, should one ever need to be.
|
|
44
|
+
*/
|
|
45
|
+
ready = true;
|
|
46
|
+
constructor(workspaceProvider, jwt) {
|
|
47
|
+
this.workspaceProvider = workspaceProvider;
|
|
48
|
+
this.jwt = jwt;
|
|
49
|
+
}
|
|
50
|
+
onModuleDestroy() { if (this.timer)
|
|
51
|
+
clearInterval(this.timer); for (const scope of this.live.keys())
|
|
52
|
+
scope.end('shutdown'); this.live.clear(); }
|
|
53
|
+
/** Exchange a link's ID for a session of its vault. An unknown, switched-off, ended or other-kind link reads the same. */
|
|
54
|
+
async exchange(vaultId, linkId) {
|
|
55
|
+
if (!this.ready)
|
|
56
|
+
throw vaultLinkEnded();
|
|
57
|
+
const workspace = this.workspaceProvider.get();
|
|
58
|
+
let key;
|
|
59
|
+
try {
|
|
60
|
+
({ key } = await (await workspace.shareUseCases(vaultId)).vaultLink({ id: linkId }));
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
throw vaultLinkEnded(error instanceof graph_agent_1.GraphAgentError ? error.code : undefined);
|
|
64
|
+
}
|
|
65
|
+
const security = await workspace.readSecuritySettings();
|
|
66
|
+
const accessToken = await this.jwt.signAsync({ vault: vaultId, link: key, revision: security.revision }, this.signOptions(security));
|
|
67
|
+
const label = (await workspace.listVaults()).find((vault) => vault.id === vaultId)?.label ?? vaultId;
|
|
68
|
+
return { accessToken, expiresAt: new Date(Date.now() + exports.vaultLinkSessionSeconds * 1000).toISOString(), vault: { id: vaultId, label } };
|
|
69
|
+
}
|
|
70
|
+
/** Whether a bearer token is a link session's, decided before any owner check, passwordless mode or development bypass. */
|
|
71
|
+
isLinkToken(token) {
|
|
72
|
+
const decoded = this.jwt.decode(token);
|
|
73
|
+
return Boolean(decoded) && typeof decoded === 'object' && (decoded.aud === exports.vaultLinkAudience || (Array.isArray(decoded.aud) && decoded.aud.includes(exports.vaultLinkAudience)));
|
|
74
|
+
}
|
|
75
|
+
async verify(token) {
|
|
76
|
+
if (!this.ready)
|
|
77
|
+
throw vaultLinkEnded();
|
|
78
|
+
const security = await this.workspaceProvider.get().readSecuritySettings();
|
|
79
|
+
try {
|
|
80
|
+
const payload = await this.jwt.verifyAsync(token, this.verifyOptions(security));
|
|
81
|
+
if (payload.revision !== security.revision || typeof payload.vault !== 'string' || typeof payload.link !== 'string')
|
|
82
|
+
throw new Error('stale');
|
|
83
|
+
return { vaultId: payload.vault, linkKey: payload.link };
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
throw vaultLinkEnded();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/** The link's authority now: its record and the vault's switches, read again. Ended links throw `vault_link_ended`. */
|
|
90
|
+
async access(vaultId, linkKey) {
|
|
91
|
+
try {
|
|
92
|
+
const { share, revision, key, settings } = await (await this.workspaceProvider.get().shareUseCases(vaultId)).vaultLink({ key: linkKey });
|
|
93
|
+
return (0, graph_agent_1.resolveVaultLinkAccess)({ vaultId, linkKey: key, revision, grant: share.vault, settings });
|
|
94
|
+
}
|
|
95
|
+
catch (error) {
|
|
96
|
+
if (error instanceof graph_agent_1.GraphAgentError && (error.code === 'share_not_found' || error.code === 'share_expired'))
|
|
97
|
+
throw vaultLinkEnded(error.code);
|
|
98
|
+
throw error;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* A scope for one request, which streams and runs may hold beyond it. Re-reading it updates what
|
|
103
|
+
* `current` answers; an ended link, or one whose grant or switches changed, aborts `signal`, which
|
|
104
|
+
* closes held streams and stops pending work. The request itself is checked again where it commits.
|
|
105
|
+
*/
|
|
106
|
+
scope(initial) {
|
|
107
|
+
const controller = new AbortController();
|
|
108
|
+
let current = initial;
|
|
109
|
+
const entry = { held: 0, checkedAt: Date.now(), refresh: async () => { await scope.revalidate().catch(() => undefined); } };
|
|
110
|
+
const end = (reason) => { if (!controller.signal.aborted)
|
|
111
|
+
controller.abort(reason); this.live.delete(scope); };
|
|
112
|
+
const scope = {
|
|
113
|
+
vaultId: initial.vaultId,
|
|
114
|
+
linkKey: initial.linkKey,
|
|
115
|
+
current: () => current,
|
|
116
|
+
signal: controller.signal,
|
|
117
|
+
end,
|
|
118
|
+
revalidate: async () => {
|
|
119
|
+
entry.checkedAt = Date.now();
|
|
120
|
+
try {
|
|
121
|
+
const next = await this.access(initial.vaultId, initial.linkKey);
|
|
122
|
+
if (next.revision !== current.revision || !sameFeatures(next, current))
|
|
123
|
+
end('changed');
|
|
124
|
+
current = next;
|
|
125
|
+
return next;
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
end('ended');
|
|
129
|
+
throw error;
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
hold: () => {
|
|
133
|
+
if (controller.signal.aborted)
|
|
134
|
+
return () => undefined;
|
|
135
|
+
entry.held += 1;
|
|
136
|
+
this.live.set(scope, entry);
|
|
137
|
+
this.startWatchdog();
|
|
138
|
+
let released = false;
|
|
139
|
+
return () => { if (released)
|
|
140
|
+
return; released = true; entry.held -= 1; if (entry.held <= 0)
|
|
141
|
+
this.live.delete(scope); };
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
return scope;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* A change the owner made on this process (a link edited or revoked, sharing or a feature switched):
|
|
148
|
+
* every held scope of the vault is read again before the change is acknowledged, so its streams close
|
|
149
|
+
* and its pending work stops first.
|
|
150
|
+
*/
|
|
151
|
+
async invalidate(vaultId) {
|
|
152
|
+
await Promise.all([...this.live.entries()].filter(([scope]) => scope.vaultId === vaultId).map(([, entry]) => entry.refresh()));
|
|
153
|
+
}
|
|
154
|
+
/** The exposure gate: off, no link token is admitted. */
|
|
155
|
+
setAdmitting(admitting) { this.ready = admitting; }
|
|
156
|
+
startWatchdog() {
|
|
157
|
+
if (this.timer)
|
|
158
|
+
return;
|
|
159
|
+
this.timer = setInterval(() => {
|
|
160
|
+
if (!this.live.size) {
|
|
161
|
+
clearInterval(this.timer);
|
|
162
|
+
this.timer = undefined;
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const due = Date.now() - exports.vaultLinkWatchdogMs / 2;
|
|
166
|
+
for (const [, entry] of this.live)
|
|
167
|
+
if (entry.checkedAt <= due)
|
|
168
|
+
void entry.refresh();
|
|
169
|
+
}, exports.vaultLinkWatchdogMs / 2);
|
|
170
|
+
this.timer.unref?.();
|
|
171
|
+
}
|
|
172
|
+
signOptions(security) {
|
|
173
|
+
return { secret: Buffer.from(security.jwt.secret, 'base64url'), algorithm: 'HS256', expiresIn: exports.vaultLinkSessionSeconds, issuer: 'braian', audience: exports.vaultLinkAudience, subject: 'vault-link' };
|
|
174
|
+
}
|
|
175
|
+
verifyOptions(security) {
|
|
176
|
+
return { secret: Buffer.from(security.jwt.secret, 'base64url'), algorithms: ['HS256'], issuer: 'braian', audience: exports.vaultLinkAudience, subject: 'vault-link' };
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
exports.VaultLinkSessions = VaultLinkSessions;
|
|
180
|
+
exports.VaultLinkSessions = VaultLinkSessions = __decorate([
|
|
181
|
+
(0, common_1.Injectable)(),
|
|
182
|
+
__metadata("design:paramtypes", [data_workspace_provider_1.DataWorkspaceProvider, jwt_1.JwtService])
|
|
183
|
+
], VaultLinkSessions);
|
|
184
|
+
function sameFeatures(left, right) {
|
|
185
|
+
return left.settings === right.settings && left.hidden === right.hidden && left.features.size === right.features.size && [...left.features].every((feature) => right.features.has(feature));
|
|
186
|
+
}
|
package/dist/bootstrap.js
CHANGED
|
@@ -17,6 +17,7 @@ const trust_proxy_1 = require("./http/trust-proxy");
|
|
|
17
17
|
const request_guards_1 = require("./http/request-guards");
|
|
18
18
|
const dev_bypass_token_1 = require("./http/dev-bypass-token");
|
|
19
19
|
const security_headers_1 = require("./http/security-headers");
|
|
20
|
+
const published_page_address_1 = require("./http/published-page-address");
|
|
20
21
|
const docs_guard_1 = require("./http/docs-guard");
|
|
21
22
|
const process_guards_1 = require("./http/process-guards");
|
|
22
23
|
const auth_service_1 = require("./auth/auth.service");
|
|
@@ -40,13 +41,17 @@ async function createApiApp(options = {}) {
|
|
|
40
41
|
// Registered before listen() so it sits ahead of the static-file middleware in the
|
|
41
42
|
// Express stack. It is what makes the bundled web app affordable to serve remotely:
|
|
42
43
|
// the initial payload measures ~1.6 MB uncompressed against ~490 KB compressed.
|
|
44
|
+
// Before any route or guard: `/API/…` is not the API.
|
|
45
|
+
app.use((0, request_guards_1.apiPathSpellingGuard)());
|
|
46
|
+
// Next, so everything after it sees a published page as the share route that serves it.
|
|
47
|
+
app.use((0, published_page_address_1.publishedPageRewrite)());
|
|
43
48
|
app.use((0, security_headers_1.securityHeaders)());
|
|
44
49
|
app.use((0, compression_1.default)());
|
|
45
50
|
// Ahead of the body parsers, so a refused request is never buffered.
|
|
46
51
|
const auth = app.get(auth_service_1.AuthService);
|
|
47
52
|
const hostRules = (0, request_guards_1.readHostRules)(process.env);
|
|
48
53
|
app.use((0, request_guards_1.crossSiteGuard)(hostRules.webAppOrigin));
|
|
49
|
-
app.use((0, request_guards_1.passwordlessGuard)({ passwordRequired: () => auth.passwordRequired(), allowRemote: process.env.BRAIAN_ALLOW_REMOTE === '1', hostRules, publicSurface: (request) => (0, mcp_path_1.isMcpPath)(request.path) || options.publicSurface?.(request) === true }));
|
|
54
|
+
app.use((0, request_guards_1.passwordlessGuard)({ passwordRequired: () => auth.passwordRequired(), allowRemote: process.env.BRAIAN_ALLOW_REMOTE === '1', hostRules, publicSurface: (request) => (0, mcp_path_1.isMcpPath)(request.path) || options.publicSurface?.(request) === true, onPublicHost: (0, request_guards_1.warnOncePerPublicHost)() }));
|
|
50
55
|
const logging = app.get(logging_1.LoggingService);
|
|
51
56
|
app.use((0, logging_1.createApiLoggingMiddleware)(logging));
|
|
52
57
|
app.use((0, shared_page_middleware_1.sharedPageMiddleware)(app.get(shared_install_service_1.SharedInstallService)));
|
|
@@ -32,18 +32,24 @@ let CollabService = class CollabService {
|
|
|
32
32
|
throw new graph_agent_1.NoteCollabError('collab_client_expired', 'The shared note identity changed.');
|
|
33
33
|
this.events.assertStream(vault, input.stream, share, noteId);
|
|
34
34
|
const registry = await workspace.noteCollab(vault);
|
|
35
|
-
|
|
35
|
+
// A vault link edits as itself (ENG-430): never the owner, so its clients cannot be taken over by, or take over, anyone else's.
|
|
36
|
+
const scope = (0, graph_agent_1.currentVaultAccessScope)();
|
|
37
|
+
const principal = share ? { kind: 'share', shareId: share, scope: 'edit' } : scope ? { kind: 'link', linkKey: scope.linkKey } : { kind: 'owner' };
|
|
36
38
|
if (attached)
|
|
37
39
|
registry.assertClient(noteId, input.client, input.stream, principal);
|
|
38
40
|
return { registry, principal, useCases, noteId };
|
|
39
41
|
}
|
|
40
42
|
async attach(vault, input, share, path) {
|
|
41
43
|
const { registry, principal, noteId } = await this.authorized(vault, input, share, path, false);
|
|
42
|
-
|
|
44
|
+
// A link opens encrypted blocks with its own PIN only while it is granted Safe notes.
|
|
45
|
+
const unlocked = principal.kind === 'link' ? input.unlocked === true && (0, graph_agent_1.currentVaultAccessScope)().current().features.has('safeNotes') : input.unlocked;
|
|
46
|
+
return registry.attach(noteId, input.stream, input.client, principal, unlocked);
|
|
43
47
|
}
|
|
44
48
|
/** A share link's live edit is checked as its save is, with the upload receipts it carries. */
|
|
45
49
|
async update(vault, input, share, path) {
|
|
46
50
|
const { registry, useCases, noteId } = await this.authorized(vault, input, share, path);
|
|
51
|
+
// The commit point of a live edit: a link revoked while it waited writes nothing.
|
|
52
|
+
await (0, graph_agent_1.revalidateVaultAccess)();
|
|
47
53
|
const result = await registry.update(noteId, input, useCases ? (before, after) => useCases.validateCollaboration(share, path, before, after, input.receipts) : undefined);
|
|
48
54
|
if (useCases)
|
|
49
55
|
await useCases.recordCollaborationEdit(share, path);
|
|
@@ -52,6 +58,7 @@ let CollabService = class CollabService {
|
|
|
52
58
|
/** The queued block use case rechecks recipient permissions before encrypting a completed replacement. */
|
|
53
59
|
async replaceBlock(vault, input, share, path) {
|
|
54
60
|
const { registry, useCases, noteId } = await this.authorized(vault, input, share, path);
|
|
61
|
+
await (0, graph_agent_1.revalidateVaultAccess)();
|
|
55
62
|
const result = await registry.replaceBlock(noteId, input, source => useCases
|
|
56
63
|
? useCases.replaceCollaborationBlock(share, path, source, input.replacement, input.receipts)
|
|
57
64
|
: Promise.resolve(input.replacement));
|
|
@@ -69,6 +76,7 @@ let CollabService = class CollabService {
|
|
|
69
76
|
}
|
|
70
77
|
async flush(vault, input, share, path) {
|
|
71
78
|
const { registry, noteId } = await this.authorized(vault, input, share, path);
|
|
79
|
+
await (0, graph_agent_1.revalidateVaultAccess)();
|
|
72
80
|
await registry.flush(noteId, input.client, input.epoch, input.session);
|
|
73
81
|
}
|
|
74
82
|
async renew(vault, input) {
|
|
@@ -84,11 +92,13 @@ let CollabService = class CollabService {
|
|
|
84
92
|
async barrierReady(vault, input, share, path) { const { registry, noteId } = await this.authorized(vault, input, share, path); return registry.barrierReady(noteId, input); }
|
|
85
93
|
async convert(vault, input) {
|
|
86
94
|
const { registry, noteId } = await this.authorized(vault, input);
|
|
95
|
+
await (0, graph_agent_1.revalidateVaultAccess)();
|
|
87
96
|
return registry.convert(noteId, input);
|
|
88
97
|
}
|
|
89
98
|
/** The package validates the lease, complete applied prefix, conversion barrier and disk revision before writing ciphertext. */
|
|
90
99
|
async checkpoint(vault, input) {
|
|
91
100
|
const { registry, noteId } = await this.authorized(vault, input);
|
|
101
|
+
await (0, graph_agent_1.revalidateVaultAccess)();
|
|
92
102
|
return registry.checkpoint(noteId, input);
|
|
93
103
|
}
|
|
94
104
|
};
|
package/dist/desktop/exposure.js
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.exposureDecision = exposureDecision;
|
|
4
4
|
exports.requestPath = requestPath;
|
|
5
|
+
const request_guards_1 = require("../http/request-guards");
|
|
5
6
|
const shareApiPath = /^\/api\/vault\/[^/]+\/share\/[^/]+(?:\/.*)?$/;
|
|
6
7
|
const sharePagePath = /^\/[^/]+\/share\/[^/]+(?:\/.*)?$/;
|
|
8
|
+
/** A published web page's address, which the API serves through its share route (`published-page-address.ts`). */
|
|
9
|
+
const publishedPagePath = /^\/[^/]+\/site\/[^/]+(?:\/.*)?$/;
|
|
7
10
|
const readMethods = new Set(['GET', 'HEAD']);
|
|
8
11
|
function exposureDecision(method, path, exposure) {
|
|
9
|
-
if (hasDotSegment(path))
|
|
12
|
+
if (hasDotSegment(path) || (0, request_guards_1.isMisspelledApiPath)(path))
|
|
10
13
|
return 'refuse';
|
|
11
14
|
if (path === '/api' || path.startsWith('/api/')) {
|
|
12
15
|
if (shareApiPath.test(path))
|
|
@@ -20,6 +23,9 @@ function exposureDecision(method, path, exposure) {
|
|
|
20
23
|
return 'refuse';
|
|
21
24
|
if (!readMethods.has(method.toUpperCase()))
|
|
22
25
|
return 'refuse';
|
|
26
|
+
// A share-link route under another address: public surface, as its API route is.
|
|
27
|
+
if (publishedPagePath.test(path))
|
|
28
|
+
return 'share';
|
|
23
29
|
if (!exposure.sharesOnly)
|
|
24
30
|
return 'allow';
|
|
25
31
|
return sharePagePath.test(path) || isStaticFile(path) ? 'allow' : 'refuse';
|
|
@@ -37,7 +37,15 @@ let EntityController = class EntityController {
|
|
|
37
37
|
return this.map(async () => project(await this.entities.listViewEntities(type, view, vaultId, query.now, query.refresh)));
|
|
38
38
|
}
|
|
39
39
|
references(vaultId, query) {
|
|
40
|
-
return this.map(() =>
|
|
40
|
+
return this.map(async () => {
|
|
41
|
+
const report = await this.entities.getEntityReferences(query.id, vaultId);
|
|
42
|
+
const scope = (0, graph_agent_1.currentVaultAccessScope)();
|
|
43
|
+
if (!scope)
|
|
44
|
+
return report;
|
|
45
|
+
// A vault link (ENG-430) learns of references from the features it may use, and never of share links.
|
|
46
|
+
const external = report.external.filter((reference) => (0, graph_agent_1.linkSeesProvider)(reference.provider, scope.current()));
|
|
47
|
+
return { ...report, external, total: report.total - (report.external.length - external.length) };
|
|
48
|
+
});
|
|
41
49
|
}
|
|
42
50
|
panel(vaultId, query) {
|
|
43
51
|
return this.map(() => this.entities.getEntityPanel(query.id, query.panel, vaultId));
|
|
@@ -26,7 +26,8 @@ let VaultEventsService = class VaultEventsService {
|
|
|
26
26
|
addresses = new Map();
|
|
27
27
|
assertStream(vault, id, share, noteId) {
|
|
28
28
|
const stream = this.addresses.get(id);
|
|
29
|
-
|
|
29
|
+
// A stream belongs to the principal that opened it: the owner, an object link, or one vault link (ENG-430).
|
|
30
|
+
if (!stream || stream.vault !== vault || stream.share !== share || stream.link !== (0, graph_agent_1.currentVaultAccessScope)()?.linkKey || (share !== undefined && stream.noteId !== noteId))
|
|
30
31
|
throw new graph_agent_1.NoteCollabError('collab_stream_expired', 'This change stream cannot attach that client.');
|
|
31
32
|
}
|
|
32
33
|
streams = new Set();
|
|
@@ -37,7 +38,9 @@ let VaultEventsService = class VaultEventsService {
|
|
|
37
38
|
const feed = await this.workspaceProvider.get().changeFeed(vaultId);
|
|
38
39
|
const collaboration = await this.workspaceProvider.get().noteCollab(vaultId);
|
|
39
40
|
const address = (0, node_crypto_1.randomUUID)();
|
|
40
|
-
|
|
41
|
+
// A vault link's stream (ENG-430) carries what its grant reaches now, and closes when the link ends or changes.
|
|
42
|
+
const scope = (0, graph_agent_1.currentVaultAccessScope)();
|
|
43
|
+
const accepts = (entry) => (!scope || (0, graph_agent_1.linkSeesChange)(entry, scope.current())) && (noteId === undefined || (entry.kind === 'note' && entry.id === noteId) || (entry.kind === 'folds' && (entry.id === noteId || entry.id === undefined)) || entry.kind === 'share' || entry.kind === 'settings');
|
|
41
44
|
const replay = since === undefined ? undefined : feed.since(since);
|
|
42
45
|
const initial = (0, vault_events_frames_1.openingFrames)(feed.latestSeq, replay?.status === 'ok' ? { ...replay, changes: replay.changes.filter(accepts) } : replay);
|
|
43
46
|
for (const frame of initial)
|
|
@@ -46,7 +49,7 @@ let VaultEventsService = class VaultEventsService {
|
|
|
46
49
|
return {
|
|
47
50
|
initial,
|
|
48
51
|
subscribe: (sink) => {
|
|
49
|
-
this.addresses.set(address, { vault: vaultId, share, noteId });
|
|
52
|
+
this.addresses.set(address, { vault: vaultId, share, noteId, ...(scope ? { link: scope.linkKey } : {}) });
|
|
50
53
|
const forget = collaboration.subscribe(address, collab => sink.write({ event: 'collab', id: feed.latestSeq, data: { seq: feed.latestSeq, collab } }));
|
|
51
54
|
let buffer = [];
|
|
52
55
|
let timer;
|
|
@@ -79,7 +82,17 @@ let VaultEventsService = class VaultEventsService {
|
|
|
79
82
|
}
|
|
80
83
|
};
|
|
81
84
|
this.streams.add(stream);
|
|
82
|
-
|
|
85
|
+
if (scope) {
|
|
86
|
+
const release = scope.hold();
|
|
87
|
+
const end = () => { stream.close(); sink.close(); };
|
|
88
|
+
if (scope.signal.aborted)
|
|
89
|
+
end();
|
|
90
|
+
else
|
|
91
|
+
scope.signal.addEventListener('abort', end, { once: true });
|
|
92
|
+
const close = stream.close;
|
|
93
|
+
stream.close = () => { release(); scope.signal.removeEventListener('abort', end); close(); };
|
|
94
|
+
}
|
|
95
|
+
return () => stream.close();
|
|
83
96
|
}
|
|
84
97
|
};
|
|
85
98
|
}
|