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.
- package/README.md +31 -7
- package/bin/braian.mjs +339 -60
- package/bin/launch-target.mjs +15 -27
- package/bin/node-version.mjs +72 -0
- package/bin/run-state.mjs +203 -0
- package/dist/agent/graph-agent.service.js +43 -0
- package/dist/app.module.js +4 -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 +9 -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 +12 -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/http/vault-http-error.js +4 -1
- package/dist/http/web-app-fallback.js +37 -0
- package/dist/journal/active-journal.dto.js +4 -3
- package/dist/logging/logging.middleware.js +3 -1
- package/dist/main.js +3 -0
- package/dist/mcp/mcp-path.js +12 -0
- package/dist/mcp/mcp-settings.controller.js +78 -0
- package/dist/mcp/mcp.controller.js +147 -0
- package/dist/mcp/mcp.dto.js +53 -0
- package/dist/mcp/mcp.module.js +20 -0
- package/dist/mcp/mcp.service.js +117 -0
- package/dist/navigation/navigation.service.js +16 -1
- package/dist/providers/claude-messages-model.js +2 -2
- package/dist/providers/model-provider.service.js +74 -11
- 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.controller.js +167 -0
- package/dist/rss/rss-profiles.dto.js +512 -0
- package/dist/rss/rss-profiles.service.js +149 -0
- package/dist/rss/rss.module.js +5 -2
- 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 +61 -0
- package/dist/vaults/vault.dto.js +188 -50
- package/dist/vaults/vaults.module.js +2 -1
- package/dist/vaults/vaults.service.js +58 -2
- package/dist/versioning/versioning.service.js +47 -8
- package/dist/workspace/workspace-config.js +3 -3
- package/node_modules/@braian/ai-providers/dist/index.js +13 -3
- package/node_modules/@braian/ai-providers/dist/jev-routing.js +41 -13
- 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-profiles/tool-catalog.js +4 -4
- 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 +171 -14
- package/node_modules/@braian/graph-agent/dist/demo-vaults.js +348 -0
- 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/graph-agent.js +40 -7
- 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 +45 -6
- 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/mcp-tokens.js +62 -0
- 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 +45 -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-model.js +378 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-store.js +179 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-test.js +120 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-use-cases.js +76 -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-changes.js +3 -0
- package/node_modules/@braian/graph-agent/dist/vault-files.js +73 -14
- package/node_modules/@braian/graph-agent/dist/vault-settings-operations.js +43 -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/node_modules/@braian/voice-transcription/dist/transcribe.js +1 -1
- package/package.json +7 -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-BPq1dwIU.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-CpTkmSSX.js → bg-BG-XCXSNQG7-wxiUF1_6.js} +1 -1
- package/public/assets/blue-pgMgVzKw.css +1 -0
- package/public/assets/{bn-BD-2XOGV67Q-BDMEyCuA.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-B1B8wHHn.js → boards-view-DEVAYmzH.js} +1 -1
- package/public/assets/{ca-ES-6MX7JW3Y-D0UEot-K.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-ActBZM9v.js → calendars-settings-module-DuwhjpAm.js} +1 -1
- package/public/assets/card-fields-BJ9YVWI0.css +1 -0
- package/public/assets/{card-fields-nzhTsBAW.js → card-fields-iDvc1GXx.js} +1 -1
- package/public/assets/{chat-composer-editor-CRtsZz3W.js → chat-composer-editor-CPfqqfXn.js} +1 -1
- package/public/assets/chat-message-list-Ds52ru39.js +1 -0
- package/public/assets/chunk-6U3AYISY-C6-Mtja1.js +12 -0
- package/public/assets/{chunk-EIO257PC-CGqfS2j0.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-DnrGU9QQ.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-WHiWktCJ.js +1 -0
- package/public/assets/{contents-view-C6RdJxE2.js → contents-view-DOVe1FVg.js} +1 -1
- package/public/assets/contents-view-XuasBH0m.css +1 -0
- package/public/assets/{conversation-debug-panel-DIjQShXO.js → conversation-debug-panel-C73_GL9P.js} +1 -1
- package/public/assets/{settings-view-6_hMxTXD.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-DvEBYfBD.js → cs-CZ-2BRQDIVT-CHlJO48i.js} +1 -1
- package/public/assets/{cypher-editor-Cdd9vqJj.js → cypher-editor-M9g--02t.js} +1 -1
- package/public/assets/{da-DK-5WZEPLOC-nBVf9B0e.js → da-DK-5WZEPLOC-B2KbOKlk.js} +1 -1
- package/public/assets/daily-notes-settings-CrgXHhLI.js +1 -0
- package/public/assets/{dashboard-grid-BvlcalWZ.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-CMkRnuLc.js → dashboards-settings-module-CUyrJjUX.js} +1 -1
- package/public/assets/dashboards-view-CkheD5RG.js +1 -0
- package/public/assets/{de-DE-XR44H4JA-wIoI5uHM.js → de-DE-XR44H4JA-CraH52sB.js} +1 -1
- package/public/assets/{desktop-server-settings-j8RrUDQh.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-CSz3wdqd.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-tLZONR8L.js → dist-BmY58onI.js} +1 -1
- package/public/assets/drag-preview-i140CAXv.js +1 -0
- package/public/assets/{drawing-note-BZkhWRBb.js → drawing-note-CZIRcZb4.js} +1 -1
- package/public/assets/{el-GR-BZB4AONW-BoxDB0UD.js → el-GR-BZB4AONW-hWxkjrdo.js} +1 -1
- package/public/assets/en-B4ZKOASM-CDD2_KUt.js +1 -0
- package/public/assets/{es-ES-U4NZUMDT-BTF8-J9f.js → es-ES-U4NZUMDT-D3W7yrM9.js} +1 -1
- package/public/assets/{esm-zhVSGSwY.js → esm-BwVJXUDM.js} +1 -1
- package/public/assets/{eu-ES-A7QVB2H4-PqSQa04Y.js → eu-ES-A7QVB2H4-C6t3pMxo.js} +1 -1
- package/public/assets/export-formats-BEyzF7fr.js +1 -0
- package/public/assets/{fa-IR-HGAKTJCU-B03HX6BC.js → fa-IR-HGAKTJCU-DJOOVnVh.js} +1 -1
- package/public/assets/{feature-switch-section-CDTUV6B-.js → feature-switch-section-DWkHmh9Q.js} +1 -1
- package/public/assets/{fi-FI-Z5N7JZ37-D5Rn9AGc.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-C8bPT8Wh.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-CNZHdx05.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-DyPI1vLx.css +1 -0
- package/public/assets/{format-panel-value-DYwL3ttM.js → format-panel-value-Qry4ewBT.js} +1 -1
- package/public/assets/format-rules-BFnbjJsr.js +1 -0
- package/public/assets/{fr-FR-RHASNOE6-BoIuGpVa.js → fr-FR-RHASNOE6-D9pFTuqa.js} +1 -1
- package/public/assets/{gl-ES-HMX3MZ6V-R9gfMkm_.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-DLh6r8yJ.js → he-IL-6SHJWFNN-sIPLWf4m.js} +1 -1
- package/public/assets/{hi-IN-IWLTKZ5I-DsP1yUVR.js → hi-IN-IWLTKZ5I-BUJucdSj.js} +1 -1
- package/public/assets/{hu-HU-A5ZG7DT2-ttWV7_mJ.js → hu-HU-A5ZG7DT2-B29-4soS.js} +1 -1
- package/public/assets/icons-BQSaMzmI.js +1 -0
- package/public/assets/{id-ID-SAP4L64H-DIFD1Rmb.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-D9CIdJgS.js → it-IT-JPQ66NNP-Dq23HshR.js} +1 -1
- package/public/assets/{ja-JP-DBVTYXUO-CYn7dH3E.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-BnEoO3f6.js → kab-KAB-ZGHBKWFO-BCP7pvXg.js} +1 -1
- package/public/assets/kk-KZ-P5N5QNE5-xOkOQsTw.js +1 -0
- package/public/assets/{km-KH-HSX4SM5Z-DO6DHT6h.js → km-KH-HSX4SM5Z-D0xjNROe.js} +1 -1
- package/public/assets/{ko-KR-MTYHY66A-Ch6OwlXE.js → ko-KR-MTYHY66A-E5aEyLj-.js} +1 -1
- package/public/assets/{ku-TR-6OUDTVRD-C9KHFYbx.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-r9mUfWOh.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-C55dtngt.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-CrK3hZ26.js → lt-LT-XHIRWOB4-CZPudjgc.js} +1 -1
- package/public/assets/{lv-LV-5QDEKY6T-BOA9oRt-.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-DPI1_WsY.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-C6N1RKlt.js → maximize-2-BOW9VTPW.js} +1 -1
- package/public/assets/mermaid-diagram-kld9fHwj.js +1 -0
- package/public/assets/{mobile-file-text-B4j-_eP4.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-C2OowtdM.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-GWTqYMNI.js → mr-IN-CRQNXWMA-DmnSBhlL.js} +1 -1
- package/public/assets/my-MM-5M5IBNSE-DDu4zmzX.js +1 -0
- package/public/assets/{nb-NO-T6EIAALU-DyrWt8fZ.js → nb-NO-T6EIAALU-BLzt9sXj.js} +1 -1
- package/public/assets/{nl-NL-IS3SIHDZ-COWPkkr8.js → nl-NL-IS3SIHDZ-FtFhrALS.js} +1 -1
- package/public/assets/{nn-NO-6E72VCQL-8aH2uP9Y.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-DCd2HaSQ.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-2u0sbOpc.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-BajgD2k3.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-CNoqBtUP.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-rhBoxKYB.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-BD8rmAOq.js → note-picker-DIFcqGgZ.js} +1 -1
- package/public/assets/note-picker-KBB6aonj.css +1 -0
- package/public/assets/{note-picker-popover-DI9Wc706.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-BFX3oTAC.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-BqD4746M.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-C_R_VP74.js → oc-FR-POXYY2M6-DM9hsX9Q.js} +1 -1
- package/public/assets/{open-journal-writing-Bd-CppeX.js → open-journal-writing-Da9CBYtR.js} +1 -1
- package/public/assets/{pa-IN-N4M65BXN-B21EEaul.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-DPjV39xn.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-DQ9fAqT6.js → pencil-BQzjBcpa.js} +1 -1
- package/public/assets/percentages-BXMCSKIN-DRPvI3O-.js +1 -0
- package/public/assets/{phone-numbers-CHQaYRah.js → phone-numbers-lV_IC3Pq.js} +1 -1
- package/public/assets/{pl-PL-T2D74RX3-Bdo_j9QK.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-C9DRQ7CW.js → pt-BR-5N22H2LF-BiLQ-V_W.js} +1 -1
- package/public/assets/{pt-PT-UZXXM6DQ-ColydZPV.js → pt-PT-UZXXM6DQ-DKEXacg3.js} +1 -1
- package/public/assets/qr-code-DgTUKCej.js +2 -0
- package/public/assets/{qr-code-svg-D0RAuUIk.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-22DkpiWR.js → reader-clock-s4x6Qtz_.js} +1 -1
- package/public/assets/{recording-bar-DOm-SEGc.js → recording-bar-C5jkIsLX.js} +2 -2
- package/public/assets/{recording-setup-CV3LE2_1.js → recording-setup-fZ6fe1MX.js} +1 -1
- package/public/assets/{recordings-api-C-Bxpzgo.js → recordings-api-CxuXFNaM.js} +1 -1
- package/public/assets/resource-overview-card-CAxT9QxY.js +1 -0
- package/public/assets/{ro-RO-JPDTUUEW-iJAQDPe9.js → ro-RO-JPDTUUEW-DPtQ18Fr.js} +1 -1
- package/public/assets/rss-settings-module-Bg7BBsC4.js +1 -0
- package/public/assets/rss-view-DIPQBTLT.css +1 -0
- package/public/assets/rss-view-DeSvhXEa.js +3 -0
- package/public/assets/{ru-RU-B4JR7IUQ-CX_CWbT7.js → ru-RU-B4JR7IUQ-n-7DhzM7.js} +1 -1
- package/public/assets/{safe-block-copy-DygjvDD4.js → safe-block-copy-B7NrP_YX.js} +1 -1
- package/public/assets/{safe-block-qr-button-Cn9WpEkl.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-DCf8IdrM.js → safe-folders-B4zJo8qB.js} +1 -1
- package/public/assets/{safe-move-leaving-tN-IMhDo.js → safe-move-leaving-D4dKIwTJ.js} +1 -1
- package/public/assets/{safe-note-locked-B_lt0XcX.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-DSD348Om.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-B_Syg5ab.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-B5emNjJi.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-6JRbE0oa.js → setup-prompt-Bmv_QxoH.js} +1 -1
- package/public/assets/{share-access-control-C5mpELVT.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-DcCO3mNo.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-9oF4v70A.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-DrAaUVFC.js → sk-SK-C5VTKIMK-BRXRBgRU.js} +1 -1
- package/public/assets/{sl-SI-NN7IZMDC-WxYLW2Uj.js → sl-SI-NN7IZMDC-BXKt0fnN.js} +1 -1
- package/public/assets/{spaces-settings-module-Dh_QfANj.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-DOB2jm3x.js → sv-SE-XGPEYMSR-nBH8YjQ4.js} +1 -1
- package/public/assets/{ta-IN-2NMHFXQM-DfC3wGVU.js → ta-IN-2NMHFXQM-f0oprEqN.js} +1 -1
- package/public/assets/{text-diff-BzNG8nfy.js → text-diff-BMS8apwf.js} +1 -1
- package/public/assets/th-TH-HPSO5L25-CUOH0u8u.js +2 -0
- package/public/assets/{theme-colors-2LJ6VIeK.js → theme-colors-BcoD3SUn.js} +1 -1
- package/public/assets/{toolbar-items-DF7H0MSb.js → toolbar-items-DtGvJf3U.js} +1 -1
- package/public/assets/{topology-code-editor-B7zxDyT3.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-Bj4nu8HE.js → topology-folder-migration-popup-AZFR8-44.js} +1 -1
- package/public/assets/{tr-TR-DEFEU3FU-DWO1lNTH.js → tr-TR-DEFEU3FU-CTsS8Qy-.js} +1 -1
- package/public/assets/transcription-settings-D7_ViMfp.js +4 -0
- 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-ZHBKj9kv.js → uk-UA-QMV73CPH-BJo17WQM.js} +1 -1
- package/public/assets/{unlock-prompt-C1AEyIR_.js → unlock-prompt-BQVrb-4k.js} +1 -1
- package/public/assets/{use-candidate-notes-Du1V_uun.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-Ck_XPFVd.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-SPgAe-M0.js → use-note-attachments-DAFyHvYo.js} +1 -1
- package/public/assets/{use-note-delete-Dvrzq6Pl.js → use-note-delete-JQISrVQ4.js} +1 -1
- package/public/assets/use-note-editor-session-BlLoBd41.js +1 -0
- 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-DV5-_c14.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-BllYITR6.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-Bjgb45Dc.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-DMjLQmKz.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-dvxhrMo9.js → versioning-preferences-BK-mZYhi.js} +1 -1
- package/public/assets/{versioning-settings-module-CnDDngKG.js → versioning-settings-module-lq4k7b3C.js} +1 -1
- package/public/assets/versioning-view-BdEZaF8n.js +2 -0
- package/public/assets/{vi-VN-M7AON7JQ-uUfHJEho.js → vi-VN-M7AON7JQ-DpgVSDWc.js} +1 -1
- package/public/assets/{video-recording-dialog-7IGrQMwx.js → video-recording-dialog-ByevPvCN.js} +1 -1
- package/public/assets/{video-recording-settings-D6YT_FW3.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-COz3oRg3.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-AYdVqmV8.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-I5Ux2GnH.js +0 -1
- package/public/assets/appearance-settings-module-CD3bJpfR.js +0 -1
- package/public/assets/attachment-embed-BkP-B_Pa.js +0 -1
- package/public/assets/attachments-settings-BeAekkzf.js +0 -1
- package/public/assets/az-AZ-76LH7QW2-nXEHcVXP.js +0 -1
- package/public/assets/blue-ezN0uv0j.css +0 -1
- package/public/assets/board-workspace-DPSlmJ8w.js +0 -1
- package/public/assets/boards-settings-module-CCN_ZNks.js +0 -1
- package/public/assets/calendar-view-BlTCcAzD.js +0 -1
- package/public/assets/calendar-workspace-6t1kuFgj.js +0 -1
- package/public/assets/card-fields-C1JCmDVz.css +0 -1
- package/public/assets/chat-message-list-ClUR56GV.js +0 -1
- package/public/assets/code-editor-wFimHbMT.css +0 -1
- package/public/assets/color-picker-ClAn42eA.js +0 -1
- package/public/assets/contents-view-EQyMaey-.css +0 -1
- package/public/assets/create-note-popup-CRi210cC.js +0 -1
- package/public/assets/daily-notes-settings-DG9RUcYk.js +0 -1
- package/public/assets/dashboard-workspace-CW4tbadO.css +0 -1
- package/public/assets/dashboard-workspace-D45MA_Wf.js +0 -4
- package/public/assets/dashboards-view-BB1CRB2G.js +0 -1
- package/public/assets/directory-picker-columns-BDdL8yxc.js +0 -1
- package/public/assets/discovery-create-popup-DpDB1MTg.js +0 -1
- package/public/assets/discovery-import-popup-BsyONSTT.js +0 -1
- package/public/assets/discovery-view-DOb6HJff.js +0 -1
- package/public/assets/discovery-workspace-Cyc70gQ1.js +0 -2
- package/public/assets/drag-preview-Cb6aidku.js +0 -1
- package/public/assets/en-B4ZKOASM-D3_h4H29.js +0 -1
- package/public/assets/file-editor-B-9eXvH3.css +0 -1
- package/public/assets/file-editor-DTm2a8_D.js +0 -3
- package/public/assets/file-preview-Bp9k2YvK.js +0 -1
- package/public/assets/file-preview-Dynm8laQ.css +0 -1
- package/public/assets/file-references-api-CSyFnFFm.js +0 -1
- package/public/assets/files-settings-module-D4HPlkbW.js +0 -1
- package/public/assets/files-view-BIDZtZgg.js +0 -3
- package/public/assets/files-view-Bo1uBB_W.css +0 -1
- package/public/assets/folder-picker-dialog-CxiRBtQb.css +0 -1
- package/public/assets/folder-picker-dialog-D57Q15N4.js +0 -1
- package/public/assets/format-rules-GzYB7Vvh.js +0 -1
- package/public/assets/graph-explorer-DtYVExeD.js +0 -329
- package/public/assets/graph-settings-module-D--vzqKr.js +0 -1
- package/public/assets/icons-CxH3_W-q.js +0 -1
- package/public/assets/ide-settings-module-Dsg4tJV6.js +0 -1
- package/public/assets/ide-view-DCvwb5Bx.js +0 -2
- package/public/assets/ide-view-isgMvraA.css +0 -1
- package/public/assets/image-GAAHSSAO-C38PUNrv.js +0 -1
- package/public/assets/imap-accounts-QVDGlYad.js +0 -1
- package/public/assets/index-B8xguO4f.css +0 -1
- package/public/assets/index-CCUyKE6q.js +0 -11
- package/public/assets/journal-create-popup-DnYgWgDU.js +0 -1
- package/public/assets/journal-day-route-DpsYGWU7.js +0 -1
- package/public/assets/journal-folder-field-B8yNmuTt.css +0 -1
- package/public/assets/journal-folder-field-DuvIgT6Y.js +0 -1
- package/public/assets/journal-page-BdQlNdyB.js +0 -2
- package/public/assets/journal-page-CAXrq4hj.css +0 -1
- package/public/assets/journal-settings-Dq-9Conv.js +0 -1
- package/public/assets/journal-typography-QR4z5v0X.js +0 -1
- package/public/assets/journal-writing-route-JP-jPBGZ.js +0 -1
- package/public/assets/journals-view-No5xQN8-.js +0 -1
- package/public/assets/kaa-6HZHGXH3-DmZqyxcr.js +0 -1
- package/public/assets/kk-KZ-P5N5QNE5-DcYcuRxx.js +0 -1
- package/public/assets/link-file-browser-BvVwFMvC.js +0 -1
- package/public/assets/link-picker-C90irWTA.js +0 -2
- package/public/assets/locked-shares-prompt-CA0MuZ_G.js +0 -1
- package/public/assets/logic-BNk_20eJ.js +0 -28
- package/public/assets/markdown-message-9f2rcF0-.js +0 -3
- package/public/assets/markdown-message-C2w22wrW.css +0 -1
- package/public/assets/markdown-task-toggle-DiIwYCgC.js +0 -5
- package/public/assets/matrices-view-CQlirOdv.js +0 -1
- package/public/assets/matrix-workspace-C3LhTNPX.js +0 -1
- package/public/assets/mermaid-diagram-CnzQOrTI.js +0 -1
- package/public/assets/mobile-note-content-editor-znLhIM9A.js +0 -2
- package/public/assets/model-provider-settings-contribution-DYmNbsgA.js +0 -1
- package/public/assets/model-providers-7VKk3K9H.js +0 -8
- package/public/assets/model-providers-DgRkVmP5.css +0 -1
- package/public/assets/my-MM-5M5IBNSE-DnqvLQeM.js +0 -1
- package/public/assets/note-body-focus-BKKGEgBj.js +0 -1
- package/public/assets/note-collab-provider-969Kgyu8.js +0 -1
- package/public/assets/note-collab-transport-CQDYt_Db.js +0 -1
- package/public/assets/note-create-settings-module-CV4dWr8t.js +0 -1
- package/public/assets/note-editor-container-8DkvXTPN.css +0 -1
- package/public/assets/note-editor-container-CTnEE-98.js +0 -2
- package/public/assets/note-editor-settings-module-CbPu_40k.js +0 -1
- package/public/assets/note-excalidraw-editor-CKSC5Oww.css +0 -1
- package/public/assets/note-excalidraw-editor-RjnG4My9.js +0 -168
- package/public/assets/note-export-flow-B3wRdMj0.js +0 -1
- package/public/assets/note-folds-settings-module-DZju6Mum.js +0 -1
- package/public/assets/note-frontmatter-summary-BSKg__aS.js +0 -1
- package/public/assets/note-link-list-DKU2PqtO.js +0 -1
- package/public/assets/note-link-list-hmCbBMA2.css +0 -1
- package/public/assets/note-markdown-editor-CXelEHqr.js +0 -26
- package/public/assets/note-markdown-editor-DlBj1yv3.css +0 -1
- package/public/assets/note-outline-CAyXKuOh.css +0 -1
- package/public/assets/note-page-content-DIqkiMvt.js +0 -2
- package/public/assets/note-path-breadcrumb-uTSXCQK4.js +0 -1
- package/public/assets/note-picker-BURTnmWF.css +0 -1
- package/public/assets/note-shares-popup-9sJOmL1-.js +0 -1
- package/public/assets/note-source-editor-DWyDYMCj.js +0 -1
- package/public/assets/notes-settings-module-C5IPmwKt.js +0 -1
- package/public/assets/page-content-C1jtzs7H.js +0 -1
- package/public/assets/page-content-lnIaLh4X.css +0 -1
- package/public/assets/page-files-BMj9IzfB.js +0 -1
- package/public/assets/page-note-Chw2UF0u.js +0 -1
- package/public/assets/pane-keys-CTLoUZZR.js +0 -1
- package/public/assets/pane-keys-DiGU3yVB.css +0 -1
- package/public/assets/pdf-view-BK5qKL4y.css +0 -1
- package/public/assets/pdf-view-Cm78nuSA.js +0 -1
- package/public/assets/percentages-BXMCSKIN-CUt8fyAS.js +0 -1
- package/public/assets/provider-use-select-DCSwSrlz.js +0 -1
- package/public/assets/qr-code-Bm7I0KYt.js +0 -2
- package/public/assets/qr-defaults-settings-2_Yt9x4N.js +0 -1
- package/public/assets/qr-settings-fields-DDO4XgMl.js +0 -1
- package/public/assets/qr-viewer-CvEfRC2r.js +0 -1
- package/public/assets/resource-overview-card-Co8aU6jw.js +0 -1
- package/public/assets/rss-preferences-Bx1Wa4ri.js +0 -1
- package/public/assets/rss-settings-module-BmDISWDk.js +0 -1
- package/public/assets/rss-view-5aqCVOCs.css +0 -1
- package/public/assets/rss-view-BCEFsYtS.js +0 -1
- package/public/assets/safe-block-reader-CNfzTExh.js +0 -1
- package/public/assets/safe-folder-conversion-BOLpnv8P.js +0 -1
- package/public/assets/safe-notes-settings-module-CMvkyfNG.js +0 -1
- package/public/assets/search-settings-module-DmczYjcQ.js +0 -1
- package/public/assets/secret-popup-y9W7WIrZ.js +0 -1
- package/public/assets/settings-ChT117Ke.js +0 -1
- package/public/assets/settings-panel-Cl5kUs9O.js +0 -1
- package/public/assets/settings-view-C_lfjngd.js +0 -3
- package/public/assets/share-label-BU3So3s7.js +0 -1
- package/public/assets/shared-board-lanes-UWl9klys.js +0 -1
- package/public/assets/shared-note-route-B5rcAeES.css +0 -1
- package/public/assets/shared-note-route-DaI6hm83.js +0 -4
- package/public/assets/shared-note-text-BdCw7a9a.js +0 -1
- package/public/assets/si-LK-N5RQ5JYF-DfLSaLm6.js +0 -1
- package/public/assets/spaces-view-Dw2uxDxU.js +0 -2
- package/public/assets/sqlite-browser-BKjuAUqe.css +0 -1
- package/public/assets/sqlite-browser-BfIrq_0x.js +0 -2
- package/public/assets/store-attachments-DNyH0asy.js +0 -1
- package/public/assets/stored-color-picker-BoVzUatG.css +0 -1
- package/public/assets/stored-color-picker-CYL7LYdQ.js +0 -1
- package/public/assets/style-DLioOiRN.css +0 -1
- package/public/assets/subset-shared.chunk-D1nlqSEH.js +0 -1
- package/public/assets/subset-worker.chunk-BrbK91mW.js +0 -1
- package/public/assets/th-TH-HPSO5L25-BsqplWuv.js +0 -2
- package/public/assets/topology-designer-CvJN6QTV.js +0 -1
- package/public/assets/topology-editor-RZ0_yLuO.js +0 -8
- package/public/assets/topology-settings-module-cWWujj9j.js +0 -1
- package/public/assets/transcription-settings-HrJHl14H.js +0 -4
- package/public/assets/use-directory-listing-BaYgcuHI.js +0 -1
- package/public/assets/use-folding-enabled-CyYip5Go.js +0 -1
- package/public/assets/use-mobile-layer-navigation-CBRepW9w.js +0 -1
- package/public/assets/use-note-editor-session-CRC-natg.js +0 -1
- package/public/assets/use-note-export-flow-0uAfXAwf.js +0 -2
- package/public/assets/use-safe-folder-moves-0nw2jjTX.js +0 -1
- package/public/assets/use-safe-folders-apply-C9pni8YW.js +0 -1
- package/public/assets/use-share-actions-RxO2M3y0.css +0 -1
- package/public/assets/use-share-actions-ujEMhCfl.js +0 -1
- package/public/assets/use-vault-file-link-C0ZO_VPm.js +0 -1
- package/public/assets/vault-entries-api-DVVjgeZh.js +0 -1
- package/public/assets/vault-manager-CMQaGDss.js +0 -1
- package/public/assets/vault-shares-popup-CCPGkRmF.js +0 -1
- package/public/assets/versioning-view-BsIFugt4.js +0 -2
- package/public/assets/widget-frame-CjlAZSUy.js +0 -1
- package/public/assets/zh-HK-E62DVLB3-C8ICkLhf.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,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveVaultLinkAccess = resolveVaultLinkAccess;
|
|
4
|
+
exports.linkReachesContent = linkReachesContent;
|
|
5
|
+
exports.authorizeLinkRoute = authorizeLinkRoute;
|
|
6
|
+
exports.authorizeGraphTarget = authorizeGraphTarget;
|
|
7
|
+
exports.vaultLinkPathAccess = vaultLinkPathAccess;
|
|
8
|
+
exports.linkFilesVisibility = linkFilesVisibility;
|
|
9
|
+
exports.linkSeesChange = linkSeesChange;
|
|
10
|
+
exports.narrowVaultSettingsForLink = narrowVaultSettingsForLink;
|
|
11
|
+
exports.linkSeesProvider = linkSeesProvider;
|
|
12
|
+
const vault_link_features_1 = require("./vault-link-features");
|
|
13
|
+
function resolveVaultLinkAccess(input) {
|
|
14
|
+
const features = new Set(input.grant.features.filter((feature) => (0, vault_link_features_1.vaultFeatureOn)(input.settings, feature)));
|
|
15
|
+
return { kind: 'vault-link', vaultId: input.vaultId, linkKey: input.linkKey, features, settings: input.grant.settings, hidden: input.grant.hidden, revision: input.revision };
|
|
16
|
+
}
|
|
17
|
+
/** Whether ordinary note content is reachable at all: any content grant is on. */
|
|
18
|
+
function linkReachesContent(access) {
|
|
19
|
+
return vault_link_features_1.contentVaultFeatures.some((feature) => access.features.has(feature));
|
|
20
|
+
}
|
|
21
|
+
const allowed = Object.freeze({ allowed: true });
|
|
22
|
+
const deny = (code) => ({ allowed: false, code });
|
|
23
|
+
function authorizeLinkRoute(policy, access) {
|
|
24
|
+
if (!policy)
|
|
25
|
+
return deny('owner_only');
|
|
26
|
+
switch (policy.access) {
|
|
27
|
+
case 'runtime': return allowed;
|
|
28
|
+
case 'content': return linkReachesContent(access) ? allowed : deny('feature_not_granted');
|
|
29
|
+
case 'feature': return policy.anyOf.some((feature) => access.features.has(feature)) ? allowed : deny('feature_not_granted');
|
|
30
|
+
case 'settings':
|
|
31
|
+
if (!access.settings)
|
|
32
|
+
return deny('settings_not_granted');
|
|
33
|
+
return !policy.anyOf || policy.anyOf.some((feature) => access.features.has(feature)) ? allowed : deny('feature_not_granted');
|
|
34
|
+
case 'handler':
|
|
35
|
+
if (policy.anyOf)
|
|
36
|
+
return policy.anyOf.some((feature) => access.features.has(feature)) ? allowed : deny('feature_not_granted');
|
|
37
|
+
return linkReachesContent(access) ? allowed : deny('feature_not_granted');
|
|
38
|
+
default: return deny('owner_only');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function authorizeGraphTarget(target, action, access) {
|
|
42
|
+
switch (target.kind) {
|
|
43
|
+
case 'note': return linkReachesContent(access) ? allowed : deny('feature_not_granted');
|
|
44
|
+
case 'feature-object': return access.features.has(target.feature) ? allowed : deny('feature_not_granted');
|
|
45
|
+
case 'schema':
|
|
46
|
+
if (action === 'read')
|
|
47
|
+
return linkReachesContent(access) ? allowed : deny('feature_not_granted');
|
|
48
|
+
return access.settings ? allowed : deny('settings_not_granted');
|
|
49
|
+
case 'configuration':
|
|
50
|
+
if (target.feature && !access.features.has(target.feature))
|
|
51
|
+
return deny('feature_not_granted');
|
|
52
|
+
if (action === 'read')
|
|
53
|
+
return allowed;
|
|
54
|
+
return access.settings ? allowed : deny('settings_not_granted');
|
|
55
|
+
default: return deny('owner_only');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** The metadata folders no raw file route opens to a link, hidden granted or not: settings, secrets of the vault, grant storage and history. */
|
|
59
|
+
const protectedSegments = new Set(['.brian', '.git']);
|
|
60
|
+
/**
|
|
61
|
+
* Whether a link may touch a vault-relative path through a raw file route. Segments are compared
|
|
62
|
+
* case-insensitively, since the vault may sit on a case-insensitive disk where `.BRIAN` is `.brian`.
|
|
63
|
+
* The caller normalises the path first and resolves symlinks before it opens anything.
|
|
64
|
+
*/
|
|
65
|
+
function vaultLinkPathAccess(path, access) {
|
|
66
|
+
const segments = path.split(/[\\/]+/).filter(Boolean);
|
|
67
|
+
if (segments.some((segment) => protectedSegments.has(segment.toLowerCase())))
|
|
68
|
+
return deny('protected_path');
|
|
69
|
+
if (segments.some((segment) => segment.startsWith('.')) && !access.hidden)
|
|
70
|
+
return deny('hidden_path_not_allowed');
|
|
71
|
+
return allowed;
|
|
72
|
+
}
|
|
73
|
+
/** What the vault's hidden-entry switches become for a link: ordinary dot-entries only with its grant, `.brian` and `.git` never. */
|
|
74
|
+
function linkFilesVisibility(files, access) {
|
|
75
|
+
return { ...files, showHidden: files.showHidden === true && access.hidden, showBrian: false, showGit: false };
|
|
76
|
+
}
|
|
77
|
+
/** The feature whose record a change feed entry names; `undefined` for note content and the vault's configuration, `null` for what no link sees. */
|
|
78
|
+
const changeFeatures = {
|
|
79
|
+
note: undefined, folds: undefined, topology: undefined, settings: undefined,
|
|
80
|
+
board: 'boards', calendar: 'calendars', feed: 'calendars', matrix: 'matrices', dashboard: 'dashboards', space: 'spaces', discovery: 'discovery',
|
|
81
|
+
journal: 'journal', rss: 'rss', 'rss-entries': 'rss', ide: 'ide', 'agent-profiles': 'chat', share: null
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Whether a link's change stream carries an entry: a note or its folds only under a content grant and
|
|
85
|
+
* at a path it reaches, a feature's record only with that feature, the vault's settings and schema
|
|
86
|
+
* always (the workspace re-renders from them), and share links never. An unknown kind is withheld.
|
|
87
|
+
*/
|
|
88
|
+
function linkSeesChange(change, access) {
|
|
89
|
+
if (!Object.hasOwn(changeFeatures, change.kind))
|
|
90
|
+
return false;
|
|
91
|
+
const feature = changeFeatures[change.kind];
|
|
92
|
+
if (feature === null)
|
|
93
|
+
return false;
|
|
94
|
+
if (feature)
|
|
95
|
+
return access.features.has(feature);
|
|
96
|
+
if (change.kind === 'settings')
|
|
97
|
+
return true;
|
|
98
|
+
if (!linkReachesContent(access))
|
|
99
|
+
return false;
|
|
100
|
+
if (change.kind === 'topology')
|
|
101
|
+
return true;
|
|
102
|
+
return [change.id, change.from].every((path) => path === undefined || vaultLinkPathAccess(path, access).allowed);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The vault's settings as a link's own agent sees them (ENG-430): every feature it may not use now
|
|
106
|
+
* is switched off, so that feature's tools, graph provider and instructions never exist for the run;
|
|
107
|
+
* sharing and MCP are off; and the Files switches show only what the link's hidden grant allows. A copy
|
|
108
|
+
* for reading only: nothing ever writes it back.
|
|
109
|
+
*/
|
|
110
|
+
function narrowVaultSettingsForLink(settings, access) {
|
|
111
|
+
const narrowed = structuredClone(settings);
|
|
112
|
+
for (const feature of [...vault_link_features_1.delegableVaultFeatures, ...vault_link_features_1.ownerOnlyVaultFeatures]) {
|
|
113
|
+
const allowed = vault_link_features_1.delegableVaultFeatures.includes(feature) && access.features.has(feature);
|
|
114
|
+
const record = narrowed[feature];
|
|
115
|
+
if (record && typeof record === 'object')
|
|
116
|
+
record.enabled = record.enabled === true && allowed;
|
|
117
|
+
}
|
|
118
|
+
if (narrowed.files)
|
|
119
|
+
narrowed.files = linkFilesVisibility(narrowed.files, access);
|
|
120
|
+
return narrowed;
|
|
121
|
+
}
|
|
122
|
+
const providerFeatures = { boards: 'boards', calendars: 'calendars', matrices: 'matrices', dashboards: 'dashboards', spaces: 'spaces', discovery: 'discovery', journals: 'journal', journal: 'journal', ide: 'ide', rss: 'rss' };
|
|
123
|
+
/** Whether a link sees that a feature's record refers to a note: only with that feature; anything else (share links among them) is withheld. */
|
|
124
|
+
function linkSeesProvider(provider, access) {
|
|
125
|
+
const feature = Object.hasOwn(providerFeatures, provider) ? providerFeatures[provider] : undefined;
|
|
126
|
+
return feature !== undefined && access.features.has(feature);
|
|
127
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VaultAccessDeniedError = void 0;
|
|
4
|
+
exports.runWithVaultAccess = runWithVaultAccess;
|
|
5
|
+
exports.currentVaultAccessScope = currentVaultAccessScope;
|
|
6
|
+
exports.requireGraphTarget = requireGraphTarget;
|
|
7
|
+
exports.graphTargetVisible = graphTargetVisible;
|
|
8
|
+
exports.requireVaultPath = requireVaultPath;
|
|
9
|
+
exports.vaultPathVisible = vaultPathVisible;
|
|
10
|
+
exports.revalidateVaultAccess = revalidateVaultAccess;
|
|
11
|
+
// The vault link a piece of work runs for, carried with the work rather than through every signature (ENG-430).
|
|
12
|
+
const node_async_hooks_1 = require("node:async_hooks");
|
|
13
|
+
const errors_1 = require("../errors");
|
|
14
|
+
const vault_access_policy_1 = require("./vault-access-policy");
|
|
15
|
+
const storage = new node_async_hooks_1.AsyncLocalStorage();
|
|
16
|
+
/** Run `work`, and everything it starts, as the link `scope` names. */
|
|
17
|
+
function runWithVaultAccess(scope, work) { return storage.run(scope, work); }
|
|
18
|
+
/** The link the current work runs for; undefined for the owner. */
|
|
19
|
+
function currentVaultAccessScope() { return storage.getStore(); }
|
|
20
|
+
class VaultAccessDeniedError extends errors_1.GraphAgentError {
|
|
21
|
+
constructor(reason, detail = {}) {
|
|
22
|
+
super('vault_access_denied', reason === 'protected_path' || reason === 'hidden_path_not_allowed' ? 'This path is not available through this link.' : reason === 'settings_not_granted' ? 'This link cannot change the vault\'s settings.' : reason === 'owner_only' ? 'Only the vault\'s owner can do this.' : 'This feature is not available through this link.', { reason, ...detail });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.VaultAccessDeniedError = VaultAccessDeniedError;
|
|
26
|
+
function enforce(decision, detail = {}) {
|
|
27
|
+
if (!decision.allowed)
|
|
28
|
+
throw new VaultAccessDeniedError(decision.code, detail);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Asked by a generic graph operation for every target it resolves, before it reads, returns or writes
|
|
32
|
+
* it. A write first re-reads the link, so a grant withdrawn while the work waited stops the commit.
|
|
33
|
+
*/
|
|
34
|
+
async function requireGraphTarget(target, action, detail = {}) {
|
|
35
|
+
const scope = storage.getStore();
|
|
36
|
+
if (!scope)
|
|
37
|
+
return;
|
|
38
|
+
const access = action === 'write' ? await scope.revalidate() : scope.current();
|
|
39
|
+
enforce((0, vault_access_policy_1.authorizeGraphTarget)(target, action, access), detail);
|
|
40
|
+
}
|
|
41
|
+
/** Whether the current link may see a target; true for the owner. For filtering results before they are counted or paginated. */
|
|
42
|
+
function graphTargetVisible(target) {
|
|
43
|
+
const scope = storage.getStore();
|
|
44
|
+
return !scope || (0, vault_access_policy_1.authorizeGraphTarget)(target, 'read', scope.current()).allowed;
|
|
45
|
+
}
|
|
46
|
+
/** Asked by a raw file route for every path it reads, lists or changes. */
|
|
47
|
+
function requireVaultPath(path) {
|
|
48
|
+
const scope = storage.getStore();
|
|
49
|
+
if (scope)
|
|
50
|
+
enforce((0, vault_access_policy_1.vaultLinkPathAccess)(path, scope.current()), { path });
|
|
51
|
+
}
|
|
52
|
+
/** Whether the current link may see a path; true for the owner. */
|
|
53
|
+
function vaultPathVisible(path) {
|
|
54
|
+
const scope = storage.getStore();
|
|
55
|
+
return !scope || (0, vault_access_policy_1.vaultLinkPathAccess)(path, scope.current()).allowed;
|
|
56
|
+
}
|
|
57
|
+
/** The commit gate: re-read the link immediately before an atomic mutation, so a revoked link commits nothing. A no-op for the owner. */
|
|
58
|
+
async function revalidateVaultAccess() {
|
|
59
|
+
await storage.getStore()?.revalidate();
|
|
60
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contentVaultFeatures = exports.ownerOnlyVaultFeatures = exports.delegableVaultFeatures = void 0;
|
|
4
|
+
exports.isVaultLinkFeature = isVaultLinkFeature;
|
|
5
|
+
exports.vaultFeatureOn = vaultFeatureOn;
|
|
6
|
+
exports.enabledDelegableFeatures = enabledDelegableFeatures;
|
|
7
|
+
exports.enabledOwnerOnlyFeatures = enabledOwnerOnlyFeatures;
|
|
8
|
+
/**
|
|
9
|
+
* The features an owner may grant a vault link. Each is the key of its switch in `vault.yaml`, so an ID
|
|
10
|
+
* never changes with a label. A feature added later is absent from every stored grant, which denies it.
|
|
11
|
+
*/
|
|
12
|
+
exports.delegableVaultFeatures = [
|
|
13
|
+
'notes', 'types', 'files', 'ide', 'chat', 'boards', 'calendars', 'matrices', 'dashboards', 'spaces', 'discovery',
|
|
14
|
+
'graph', 'journal', 'dailyNotes', 'rss', 'versioning', 'attachments', 'recordings', 'safeNotes'
|
|
15
|
+
];
|
|
16
|
+
/**
|
|
17
|
+
* Features that stay the owner's while they are on: Shared notes manages links (re-sharing is not
|
|
18
|
+
* delegated in this step) and MCP hands out a credential. The owner's form lists them as Owner only.
|
|
19
|
+
*/
|
|
20
|
+
exports.ownerOnlyVaultFeatures = ['shares', 'mcp'];
|
|
21
|
+
/**
|
|
22
|
+
* The grants that make ordinary note content reachable: a server-owned any-of set, so a request cannot
|
|
23
|
+
* pick its own policy by naming a feature. Utility grants (Attachments, Video recording, Safe notes)
|
|
24
|
+
* work inside a content view and never authorize note CRUD alone.
|
|
25
|
+
*/
|
|
26
|
+
exports.contentVaultFeatures = [
|
|
27
|
+
'notes', 'types', 'files', 'ide', 'chat', 'boards', 'calendars', 'matrices', 'dashboards', 'spaces', 'discovery',
|
|
28
|
+
'graph', 'journal', 'dailyNotes', 'rss', 'versioning'
|
|
29
|
+
];
|
|
30
|
+
function isVaultLinkFeature(value) {
|
|
31
|
+
return typeof value === 'string' && exports.delegableVaultFeatures.includes(value);
|
|
32
|
+
}
|
|
33
|
+
/** Whether the vault has a feature switched on now; an absent switch is off. */
|
|
34
|
+
function vaultFeatureOn(settings, feature) {
|
|
35
|
+
if (feature === 'notes')
|
|
36
|
+
return settings.notes?.enabled === true;
|
|
37
|
+
if (feature === 'dailyNotes')
|
|
38
|
+
return settings.dailyNotes?.enabled === true;
|
|
39
|
+
return settings[feature]?.enabled === true;
|
|
40
|
+
}
|
|
41
|
+
/** The delegable features the vault has on, in catalogue order: what a link's form offers. */
|
|
42
|
+
function enabledDelegableFeatures(settings) {
|
|
43
|
+
return exports.delegableVaultFeatures.filter((feature) => vaultFeatureOn(settings, feature));
|
|
44
|
+
}
|
|
45
|
+
/** The owner-only features the vault has on: the form's informational rows. */
|
|
46
|
+
function enabledOwnerOnlyFeatures(settings) {
|
|
47
|
+
return exports.ownerOnlyVaultFeatures.filter((feature) => vaultFeatureOn(settings, feature));
|
|
48
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultVaultLinkGrant = defaultVaultLinkGrant;
|
|
4
|
+
exports.validateVaultLinkGrant = validateVaultLinkGrant;
|
|
5
|
+
exports.readStoredVaultLinkGrant = readStoredVaultLinkGrant;
|
|
6
|
+
// What a vault link grants: an explicit list of features, Vault settings and hidden files (ENG-430).
|
|
7
|
+
const errors_1 = require("../errors");
|
|
8
|
+
const records_1 = require("../records");
|
|
9
|
+
const vault_link_features_1 = require("./vault-link-features");
|
|
10
|
+
/** A new link's starting point: every delegable feature the vault has on, settings and hidden off. */
|
|
11
|
+
function defaultVaultLinkGrant(enabled) {
|
|
12
|
+
return { features: vault_link_features_1.delegableVaultFeatures.filter((feature) => enabled.includes(feature)), settings: false, hidden: false };
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The owner's input: an unknown or owner-only feature ID is an error, so a form never stores something
|
|
16
|
+
* that silently does nothing. Order and duplicates are normalised to the catalogue.
|
|
17
|
+
*/
|
|
18
|
+
function validateVaultLinkGrant(value) {
|
|
19
|
+
if (!(0, records_1.isRecord)(value))
|
|
20
|
+
throw invalidGrant('A vault link grant must be { features, settings, hidden }.');
|
|
21
|
+
if (!Array.isArray(value.features))
|
|
22
|
+
throw invalidGrant('features must be a list of feature IDs.', 'features');
|
|
23
|
+
for (const feature of value.features) {
|
|
24
|
+
if (vault_link_features_1.ownerOnlyVaultFeatures.includes(feature))
|
|
25
|
+
throw invalidGrant(`${String(feature)} stays with the owner and cannot be granted.`, 'features');
|
|
26
|
+
if (!(0, vault_link_features_1.isVaultLinkFeature)(feature))
|
|
27
|
+
throw invalidGrant(`Unknown feature: ${String(feature)}.`, 'features');
|
|
28
|
+
}
|
|
29
|
+
if (value.settings !== undefined && typeof value.settings !== 'boolean')
|
|
30
|
+
throw invalidGrant('settings must be true or false.', 'settings');
|
|
31
|
+
if (value.hidden !== undefined && typeof value.hidden !== 'boolean')
|
|
32
|
+
throw invalidGrant('hidden must be true or false.', 'hidden');
|
|
33
|
+
return normalise(value.features, value.settings === true, value.hidden === true);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A grant as `shares.yaml` holds it. A feature ID this version does not know is dropped rather than
|
|
37
|
+
* failing the file: unknown grants deny, and the rest of the vault's links keep working.
|
|
38
|
+
*/
|
|
39
|
+
function readStoredVaultLinkGrant(value) {
|
|
40
|
+
if (!(0, records_1.isRecord)(value) || !Array.isArray(value.features))
|
|
41
|
+
throw invalidGrant('A stored vault link needs a grant with features.');
|
|
42
|
+
return normalise(value.features.filter(vault_link_features_1.isVaultLinkFeature), value.settings === true, value.hidden === true);
|
|
43
|
+
}
|
|
44
|
+
function normalise(features, settings, hidden) {
|
|
45
|
+
return { features: vault_link_features_1.delegableVaultFeatures.filter((feature) => features.includes(feature)), settings, hidden };
|
|
46
|
+
}
|
|
47
|
+
function invalidGrant(message, field) { return new errors_1.GraphAgentError('invalid_share', message, { field: field ? `vault.${field}` : 'vault' }); }
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.authorizeSettingsOperation = authorizeSettingsOperation;
|
|
4
|
+
/**
|
|
5
|
+
* Each operation a link may send, with the feature whose own setting it is. An operation not listed
|
|
6
|
+
* here (every `set_<feature>_enabled`, sharing, MCP, the reset) is the owner's: a link with Settings
|
|
7
|
+
* changes the vault's configuration inside its grant, never what the grant reaches, who else it is
|
|
8
|
+
* shared with, or the Danger Zone.
|
|
9
|
+
*/
|
|
10
|
+
const linkSettingsOperations = {
|
|
11
|
+
replace_navigation: null, replace_note_editor: null, replace_note_keys: null, replace_color_slots: null, replace_qr_defaults: null,
|
|
12
|
+
set_workspace_tab_style: null, replace_transcription: null, replace_spotlight_config: null, set_embeddings_enabled: null,
|
|
13
|
+
replace_instructions: 'chat', replace_variables: 'chat', add_entity_binding: 'chat', update_entity_binding: 'chat', remove_entity_binding: 'chat', set_agent_editing: 'chat', set_agent_tools: 'chat',
|
|
14
|
+
replace_attachments: 'attachments', set_boards_remove_card: 'boards', replace_daily_notes: 'dailyNotes', replace_files: 'files', replace_ide_formatting: 'ide',
|
|
15
|
+
replace_recordings: 'recordings', replace_safe_folders: 'safeNotes', replace_safe_notes: 'safeNotes', relink_safe_journal_folder: 'safeNotes',
|
|
16
|
+
set_rss_open_inbox: 'rss', set_notes_home: 'notes', set_notes_preview_update: 'notes'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Whether a link may apply `operation` to `current`. Besides the table, two operations carry a field a
|
|
20
|
+
* link could use to widen itself or reach the owner's sharing: the Files switches that show hidden
|
|
21
|
+
* entries, and Safe notes' sharing mode for object links. Those fields must stay as they are.
|
|
22
|
+
*/
|
|
23
|
+
function authorizeSettingsOperation(operation, current, access) {
|
|
24
|
+
if (!access.settings)
|
|
25
|
+
return { allowed: false, code: 'settings_not_granted' };
|
|
26
|
+
if (typeof operation.op !== 'string' || !Object.hasOwn(linkSettingsOperations, operation.op))
|
|
27
|
+
return { allowed: false, code: 'owner_only' };
|
|
28
|
+
const feature = linkSettingsOperations[operation.op];
|
|
29
|
+
if (feature && !access.features.has(feature))
|
|
30
|
+
return { allowed: false, code: 'feature_not_granted' };
|
|
31
|
+
if (operation.op === 'relink_safe_journal_folder' && !access.features.has('journal'))
|
|
32
|
+
return { allowed: false, code: 'feature_not_granted' };
|
|
33
|
+
// Showing more hidden entries would widen the link's own hidden reach: only the owner turns those on.
|
|
34
|
+
if (operation.op === 'replace_files') {
|
|
35
|
+
const next = (operation.files ?? {});
|
|
36
|
+
const files = (current.files ?? {});
|
|
37
|
+
if (['showHidden', 'showBrian', 'showGit'].some((key) => next[key] === true && files[key] !== true))
|
|
38
|
+
return { allowed: false, code: 'owner_only' };
|
|
39
|
+
}
|
|
40
|
+
// How object links carry encrypted text is the owner's sharing, not this vault's editing.
|
|
41
|
+
if (operation.op === 'replace_safe_notes' && operation.safeNotes?.sharing !== (current.safeNotes?.sharing ?? 'copy'))
|
|
42
|
+
return { allowed: false, code: 'owner_only' };
|
|
43
|
+
return { allowed: true };
|
|
44
|
+
}
|
|
@@ -38,6 +38,7 @@ function classifyMetadataPath(relativePath) {
|
|
|
38
38
|
case 'folds.yaml': return { kind: 'folds', action: 'changed' };
|
|
39
39
|
case 'ide.yaml': return { kind: 'ide', action: 'changed' };
|
|
40
40
|
case 'rss/feeds.yaml': return { kind: 'rss', action: 'changed' };
|
|
41
|
+
case 'rss/profiles.yaml': return { kind: 'rss', action: 'changed', id: 'profiles' };
|
|
41
42
|
case 'vault.yaml': return { kind: 'settings', action: 'changed' };
|
|
42
43
|
case 'safe-notes.yaml': return { kind: 'settings', action: 'changed', id: 'safe-notes' };
|
|
43
44
|
default: break;
|
|
@@ -47,6 +48,8 @@ function classifyMetadataPath(relativePath) {
|
|
|
47
48
|
const topology = /^topology\/([^/]+)\.ya?ml$/i.exec(path);
|
|
48
49
|
if (topology)
|
|
49
50
|
return { kind: 'topology', action: 'changed', id: topology[1] };
|
|
51
|
+
if (/^rss\/profiles\/\d{14}(\.test)?\.yaml$/.test(path))
|
|
52
|
+
return { kind: 'rss', action: 'changed', id: 'profiles' };
|
|
50
53
|
const rssFeed = /^rss\/feed-([a-z0-9]+(?:-[a-z0-9]+)*)\//.exec(path);
|
|
51
54
|
if (rssFeed)
|
|
52
55
|
return { kind: 'rss-entries', action: 'changed', id: rssFeed[1] };
|
|
@@ -91,28 +91,43 @@ class VaultFileUseCases {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* Stores a file in a folder the vault already has, under the attachment checks
|
|
95
|
-
* refused as hidden
|
|
94
|
+
* Stores a file in a folder the vault already has, under the attachment checks; `/` names the
|
|
95
|
+
* vault root. A hidden folder is refused as hidden and a missing one is not created. `subfolder`,
|
|
96
|
+
* a path below it such as a dropped folder's `Photos/2024`, is created as the file is written and
|
|
97
|
+
* may not be hidden either. A `.md` file becomes a note, as its raw text, under the same limit;
|
|
98
|
+
* any other file is stored as an attachment is. The Files view and Spaces both drop files here,
|
|
99
|
+
* so it is open while either Files or Attachments is on.
|
|
96
100
|
*/
|
|
97
101
|
uploadToFolder(folder, input) {
|
|
98
102
|
return (0, graph_store_errors_1.withAgentErrors)(async () => (await this.store(input, async (_folderPath, strategy) => {
|
|
99
|
-
if (!folder.trim()
|
|
100
|
-
throw new errors_1.GraphAgentError('upload_folder_root', 'Choose a folder to upload into; the vault root
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
if (!folder.trim())
|
|
104
|
+
throw new errors_1.GraphAgentError('upload_folder_root', 'Choose a folder to upload into; `/` names the vault root.', { folder });
|
|
105
|
+
const root = /^\/+$/.test(folder);
|
|
106
|
+
const path = root ? '' : (0, vault_sdk_1.normalizeVaultPath)(folder, () => false);
|
|
107
|
+
if (!root)
|
|
108
|
+
await strategy.listDirectory(path);
|
|
109
|
+
const below = input.subfolder?.replace(/^\/+|\/+$/g, '');
|
|
110
|
+
if (!below)
|
|
111
|
+
return path;
|
|
112
|
+
const nested = (0, vault_sdk_1.normalizeVaultPath)(path ? `${path}/${below}` : below, () => false);
|
|
113
|
+
if (path && !nested.startsWith(`${path}/`))
|
|
114
|
+
throw new errors_1.GraphAgentError('invalid_path', 'A subfolder must stay inside the folder it is uploaded to.', { subfolder: input.subfolder });
|
|
115
|
+
return nested;
|
|
116
|
+
}, (settings) => (0, files_settings_1.resolveFilesSettings)(settings).enabled, true)).file);
|
|
105
117
|
}
|
|
106
118
|
/**
|
|
107
|
-
* What every upload shares: the Attachments switch
|
|
108
|
-
* bytes stream, and the write, into the folder
|
|
119
|
+
* What every upload shares: the Attachments switch (or the caller's own, when `alsoOpen` allows
|
|
120
|
+
* it), the name, the size limit before and while the bytes stream, and the write, into the folder
|
|
121
|
+
* `directory` names once the settings are read.
|
|
109
122
|
*/
|
|
110
|
-
async store(input, directory) {
|
|
111
|
-
const
|
|
112
|
-
|
|
123
|
+
async store(input, directory, alsoOpen, notes = false) {
|
|
124
|
+
const raw = await this.ports.settings();
|
|
125
|
+
const settings = (0, attachment_settings_1.resolveAttachmentSettings)(raw);
|
|
126
|
+
if (!settings.enabled && !alsoOpen?.(raw))
|
|
113
127
|
throw new errors_1.GraphAgentError('attachments_disabled', 'Attachments are disabled for this vault.');
|
|
114
128
|
const name = attachmentFileName(input.name);
|
|
115
|
-
|
|
129
|
+
const note = name.toLocaleLowerCase().endsWith('.md');
|
|
130
|
+
if (note && !notes)
|
|
116
131
|
throw new errors_1.GraphAgentError('attachment_markdown_refused', 'Markdown files are notes; create a note instead of attaching one.', { name });
|
|
117
132
|
const vaultLimit = settings.maxUploadBytes === 'unlimited' ? undefined : settings.maxUploadBytes;
|
|
118
133
|
const own = input.maxBytes !== undefined && (vaultLimit === undefined || input.maxBytes < vaultLimit);
|
|
@@ -120,6 +135,8 @@ class VaultFileUseCases {
|
|
|
120
135
|
if (limit !== undefined && input.length !== undefined && input.length > limit)
|
|
121
136
|
throw tooLarge(limit, own);
|
|
122
137
|
const strategy = await this.ports.strategy();
|
|
138
|
+
if (note)
|
|
139
|
+
return { strategy, file: await this.storeNote(strategy, await directory(settings.folderPath, strategy), name, input.source, limit, own) };
|
|
123
140
|
const stored = await strategy.writeFile({ directory: await directory(settings.folderPath, strategy), name, source: input.source, maxBytes: limit }).catch((error) => {
|
|
124
141
|
if ((0, graph_store_errors_1.isVaultSdkError)(error) && error.code === 'file_too_large' && limit !== undefined)
|
|
125
142
|
throw tooLarge(limit, own);
|
|
@@ -127,6 +144,48 @@ class VaultFileUseCases {
|
|
|
127
144
|
});
|
|
128
145
|
return { strategy, file: describe(stored) };
|
|
129
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Writes an uploaded `.md` as a note holding its text as it is, frontmatter included, in `folder`,
|
|
149
|
+
* created on the way; a taken name is numbered as a file's is (`plan 1.md`). Text that is not
|
|
150
|
+
* UTF-8 is refused, and so is a note `checkNoteText` refuses.
|
|
151
|
+
*/
|
|
152
|
+
async storeNote(strategy, folder, name, source, limit, own) {
|
|
153
|
+
if (name.startsWith('.'))
|
|
154
|
+
throw new errors_1.GraphAgentError('invalid_file_name', `'${name}' is a hidden file, which the vault does not keep.`, { name });
|
|
155
|
+
const chunks = [];
|
|
156
|
+
let size = 0;
|
|
157
|
+
for await (const chunk of source) {
|
|
158
|
+
size += chunk.byteLength;
|
|
159
|
+
if (limit !== undefined && size > limit)
|
|
160
|
+
throw tooLarge(limit, own);
|
|
161
|
+
chunks.push(chunk);
|
|
162
|
+
}
|
|
163
|
+
let markdown;
|
|
164
|
+
try {
|
|
165
|
+
markdown = new TextDecoder('utf-8', { fatal: true }).decode(Buffer.concat(chunks));
|
|
166
|
+
}
|
|
167
|
+
catch {
|
|
168
|
+
throw new errors_1.GraphAgentError('note_not_text', `'${name}' is not UTF-8 text, so it cannot be a note.`, { name });
|
|
169
|
+
}
|
|
170
|
+
await this.ports.checkNoteText?.(markdown);
|
|
171
|
+
if (folder && strategy.ensureFolder)
|
|
172
|
+
await strategy.ensureFolder({ path: folder });
|
|
173
|
+
const stem = name.slice(0, -3);
|
|
174
|
+
for (let index = 0; index < 1000; index += 1) {
|
|
175
|
+
const candidate = index ? `${stem} ${index}.md` : name;
|
|
176
|
+
const nodeId = folder ? `${folder}/${candidate}` : candidate;
|
|
177
|
+
try {
|
|
178
|
+
await strategy.createNote({ nodeId: (0, vault_sdk_1.normalizeNodeId)(nodeId), markdown });
|
|
179
|
+
return { path: nodeId, name: candidate, size, modifiedAt: new Date().toISOString(), mimeType: 'text/markdown' };
|
|
180
|
+
}
|
|
181
|
+
catch (error) {
|
|
182
|
+
if ((0, graph_store_errors_1.isVaultSdkError)(error) && (error.code === 'note_exists' || error.code === 'note_path_exists'))
|
|
183
|
+
continue;
|
|
184
|
+
throw error;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
throw new errors_1.GraphAgentError('note_exists', `Every name like '${name}' is taken in this folder.`, { name });
|
|
188
|
+
}
|
|
130
189
|
/** The name and folder the zip of `paths` would have, checked against the vault as it is now. */
|
|
131
190
|
planArchive(paths) {
|
|
132
191
|
return (0, graph_store_errors_1.withAgentErrors)(async () => {
|
|
@@ -12,7 +12,12 @@ const daily_notes_settings_1 = require("./daily-notes-settings");
|
|
|
12
12
|
const dashboard_settings_1 = require("./dashboard-settings");
|
|
13
13
|
const discovery_settings_1 = require("./discovery-settings");
|
|
14
14
|
const errors_1 = require("./errors");
|
|
15
|
+
const boards_1 = require("./boards");
|
|
15
16
|
const feature_switch_1 = require("./feature-switch");
|
|
17
|
+
const ide_1 = require("./ide");
|
|
18
|
+
const note_editor_1 = require("./note-editor");
|
|
19
|
+
const rss_1 = require("./rss");
|
|
20
|
+
const settings_reset_1 = require("./settings-reset");
|
|
16
21
|
const files_settings_1 = require("./files-settings");
|
|
17
22
|
const matrix_settings_1 = require("./matrix-settings");
|
|
18
23
|
const navigation_settings_1 = require("./navigation-settings");
|
|
@@ -28,13 +33,19 @@ const transcription_settings_1 = require("./transcription-settings");
|
|
|
28
33
|
const versioning_settings_1 = require("./versioning-settings");
|
|
29
34
|
/** Applies `operation` to `settings` in place and returns it: a pure step, so a mutation can be checked without a file. */
|
|
30
35
|
function applyVaultSettingsOperation(settings, operation) {
|
|
31
|
-
if (!operation || typeof operation !== 'object' || !['replace_note_keys', 'replace_daily_notes', 'set_daily_notes_enabled', 'set_versioning_enabled', 'replace_spotlight_config', 'set_embeddings_enabled', '
|
|
36
|
+
if (!operation || typeof operation !== 'object' || !['replace_note_keys', 'replace_daily_notes', 'set_daily_notes_enabled', 'set_versioning_enabled', 'replace_spotlight_config', 'set_embeddings_enabled', 'set_matrices_enabled', 'set_dashboards_enabled', 'set_spaces_enabled', 'set_discovery_enabled', 'set_shares_enabled', 'set_share_default_access', 'set_share_save_limit', 'set_safe_notes_enabled', 'replace_safe_notes', 'replace_safe_folders', 'relink_safe_journal_folder', 'set_boards_enabled', 'set_calendars_enabled', 'set_notes_enabled', 'set_notes_home', 'set_files_enabled', 'replace_files', 'set_types_enabled', 'set_graph_enabled', 'set_chat_enabled', 'set_rss_enabled', 'set_ide_enabled', 'set_notes_preview_update', 'set_boards_remove_card', 'set_rss_open_inbox', 'replace_ide_formatting', 'replace_note_editor', 'set_workspace_tab_style', 'reset_settings', 'set_mcp_enabled', 'set_attachments_enabled', 'replace_attachments', 'set_recordings_enabled', 'replace_recordings', 'replace_navigation', 'replace_color_slots', 'replace_qr_defaults', 'replace_variables', 'replace_transcription', 'replace_instructions', 'set_agent_editing', 'set_agent_tools', 'add_entity_binding', 'update_entity_binding', 'remove_entity_binding'].includes(operation.op))
|
|
32
37
|
throw new errors_1.GraphAgentError('malformed_settings', 'Unknown vault settings operation.');
|
|
33
|
-
// The key form
|
|
38
|
+
// The key form, the Notes switch and the home note write the same record from different places, so each keeps what the others own.
|
|
34
39
|
if (operation.op === 'replace_note_keys')
|
|
35
|
-
settings.notes = (0, note_key_settings_1.validateNoteKeyOverrides)({ ...(settings.notes.enabled === undefined ? {} : { enabled: settings.notes.enabled }), ...operation.notes });
|
|
40
|
+
settings.notes = (0, note_key_settings_1.validateNoteKeyOverrides)({ ...(settings.notes.enabled === undefined ? {} : { enabled: settings.notes.enabled }), ...(settings.notes.home === undefined ? {} : { home: settings.notes.home }), ...(settings.notes.previewUpdate === undefined ? {} : { previewUpdate: settings.notes.previewUpdate }), ...operation.notes });
|
|
41
|
+
if (operation.op === 'set_notes_preview_update')
|
|
42
|
+
settings.notes = (0, note_key_settings_1.validateNoteKeyOverrides)({ ...settings.notes, previewUpdate: operation.previewUpdate });
|
|
36
43
|
if (operation.op === 'set_notes_enabled')
|
|
37
44
|
settings.notes = (0, note_key_settings_1.validateNoteKeyOverrides)({ ...settings.notes, enabled: operation.enabled });
|
|
45
|
+
if (operation.op === 'set_notes_home') {
|
|
46
|
+
const { home: _previous, ...notes } = settings.notes;
|
|
47
|
+
settings.notes = (0, note_key_settings_1.validateNoteKeyOverrides)({ ...notes, ...(operation.home === null ? {} : { home: operation.home }) });
|
|
48
|
+
}
|
|
38
49
|
// The switch and the form write the same record from different places, so each keeps what the other owns.
|
|
39
50
|
if (operation.op === 'replace_daily_notes')
|
|
40
51
|
settings.dailyNotes = (0, daily_notes_settings_1.validateDailyNotesSettings)({ ...operation.dailyNotes, enabled: settings.dailyNotes.enabled });
|
|
@@ -47,10 +58,6 @@ function applyVaultSettingsOperation(settings, operation) {
|
|
|
47
58
|
if (operation.op === 'set_embeddings_enabled')
|
|
48
59
|
settings.spotlight = (0, spotlight_settings_1.validateSpotlightSettings)({ ...(0, spotlight_settings_1.resolveSpotlightSettings)(settings), embeddings: { ...(0, spotlight_settings_1.resolveEmbeddingsSettings)(settings), enabled: operation.enabled } });
|
|
49
60
|
// The key lives in auth.yaml (the API's EmbeddingKeyStore): a config naming one is written without it.
|
|
50
|
-
if (operation.op === 'replace_embeddings_config') {
|
|
51
|
-
const { apiKey: _secret, ...config } = operation.config;
|
|
52
|
-
settings.spotlight = (0, spotlight_settings_1.validateSpotlightSettings)({ ...(0, spotlight_settings_1.resolveSpotlightSettings)(settings), embeddings: { ...config, enabled: (0, spotlight_settings_1.resolveEmbeddingsSettings)(settings).enabled } });
|
|
53
|
-
}
|
|
54
61
|
if (operation.op === 'set_matrices_enabled')
|
|
55
62
|
settings.matrices = (0, matrix_settings_1.validateMatrixSettings)({ enabled: operation.enabled });
|
|
56
63
|
if (operation.op === 'set_dashboards_enabled')
|
|
@@ -83,23 +90,47 @@ function applyVaultSettingsOperation(settings, operation) {
|
|
|
83
90
|
settings.safeNotes = (0, safe_notes_settings_1.validateSafeNotesSettings)({ ...current, folders: (0, safe_notes_1.withJournalSafeFolder)(current.folders, operation.journalId, operation.folder === undefined ? { unlink: true } : { folder: operation.folder }) });
|
|
84
91
|
}
|
|
85
92
|
if (operation.op === 'set_boards_enabled')
|
|
86
|
-
settings.boards = (0,
|
|
93
|
+
settings.boards = (0, boards_1.validateBoardsSettings)({ ...settings.boards, enabled: operation.enabled });
|
|
94
|
+
if (operation.op === 'set_boards_remove_card')
|
|
95
|
+
settings.boards = (0, boards_1.validateBoardsSettings)({ enabled: settings.boards?.enabled ?? false, removeCard: { deleteNote: operation.deleteNote } });
|
|
87
96
|
if (operation.op === 'set_calendars_enabled')
|
|
88
97
|
settings.calendars = (0, feature_switch_1.validateFeatureSwitch)({ enabled: operation.enabled }, 'calendars');
|
|
89
98
|
if (operation.op === 'set_files_enabled')
|
|
90
99
|
settings.files = (0, files_settings_1.validateFilesSettings)({ ...settings.files, enabled: operation.enabled });
|
|
91
100
|
if (operation.op === 'replace_files')
|
|
92
101
|
settings.files = (0, files_settings_1.validateFilesSettings)({ ...operation.files, enabled: (0, files_settings_1.resolveFilesSettings)(settings).enabled });
|
|
93
|
-
if (operation.op === '
|
|
94
|
-
settings.
|
|
102
|
+
if (operation.op === 'set_types_enabled')
|
|
103
|
+
settings.types = (0, feature_switch_1.validateFeatureSwitch)({ enabled: operation.enabled }, 'types');
|
|
95
104
|
if (operation.op === 'set_graph_enabled')
|
|
96
105
|
settings.graph = (0, feature_switch_1.validateFeatureSwitch)({ enabled: operation.enabled }, 'graph');
|
|
97
106
|
if (operation.op === 'set_chat_enabled')
|
|
98
107
|
settings.chat = (0, feature_switch_1.validateFeatureSwitch)({ enabled: operation.enabled }, 'chat');
|
|
99
108
|
if (operation.op === 'set_rss_enabled')
|
|
100
|
-
settings.rss = (0,
|
|
109
|
+
settings.rss = (0, rss_1.validateRssSettings)({ ...settings.rss, enabled: operation.enabled });
|
|
110
|
+
if (operation.op === 'reset_settings')
|
|
111
|
+
(0, settings_reset_1.resetVaultSettings)(settings, (0, settings_reset_1.validateResetParts)(operation.parts));
|
|
112
|
+
if (operation.op === 'replace_note_editor') {
|
|
113
|
+
const noteEditor = (0, note_editor_1.validateNoteEditorSettings)(operation.noteEditor ?? {});
|
|
114
|
+
if (noteEditor)
|
|
115
|
+
settings.noteEditor = noteEditor;
|
|
116
|
+
else
|
|
117
|
+
delete settings.noteEditor;
|
|
118
|
+
}
|
|
119
|
+
if (operation.op === 'set_workspace_tab_style') {
|
|
120
|
+
const workspace = (0, note_editor_1.validateWorkspaceSettings)({ tabStyle: operation.tabStyle });
|
|
121
|
+
if (workspace)
|
|
122
|
+
settings.workspace = workspace;
|
|
123
|
+
else
|
|
124
|
+
delete settings.workspace;
|
|
125
|
+
}
|
|
126
|
+
if (operation.op === 'set_rss_open_inbox')
|
|
127
|
+
settings.rss = (0, rss_1.validateRssSettings)({ enabled: settings.rss?.enabled ?? false, openInbox: operation.openInbox });
|
|
101
128
|
if (operation.op === 'set_ide_enabled')
|
|
102
|
-
settings.ide = (0,
|
|
129
|
+
settings.ide = (0, ide_1.validateIdeSettings)({ ...settings.ide, enabled: operation.enabled });
|
|
130
|
+
if (operation.op === 'replace_ide_formatting')
|
|
131
|
+
settings.ide = (0, ide_1.validateIdeSettings)({ enabled: settings.ide?.enabled ?? false, formatting: operation.formatting });
|
|
132
|
+
if (operation.op === 'set_mcp_enabled')
|
|
133
|
+
settings.mcp = (0, feature_switch_1.validateFeatureSwitch)({ enabled: operation.enabled }, 'mcp');
|
|
103
134
|
if (operation.op === 'set_attachments_enabled')
|
|
104
135
|
settings.attachments = (0, attachment_settings_1.validateAttachmentSettings)({ ...(0, attachment_settings_1.resolveAttachmentSettings)(settings), enabled: operation.enabled });
|
|
105
136
|
if (operation.op === 'replace_attachments')
|