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
|
@@ -10,24 +10,39 @@ const node_crypto_1 = require("node:crypto");
|
|
|
10
10
|
* The credential formats a note may hold, each recognisable by its prefix. Minimums are short on
|
|
11
11
|
* purpose: a search preview can cut a key off, and a cut-off key still identifies an account.
|
|
12
12
|
* Order matters where prefixes nest: Anthropic's `sk-ant-` before the generic `sk-`.
|
|
13
|
+
*
|
|
14
|
+
* No pattern with a prefix of its own asks for a word boundary (RFX-82): a key with a character
|
|
15
|
+
* glued in front of it is still the key, and a boundary there let `x` + key be read back in clear.
|
|
16
|
+
* The generic `sk-` is the exception, since `task-…` and `risk-…` slugs hold it: it keeps its
|
|
17
|
+
* boundary, and a second pattern takes a glued one only when it looks like a key, a run of twenty
|
|
18
|
+
* characters with a digit and no hyphen.
|
|
13
19
|
*/
|
|
14
20
|
const secretPatterns = [
|
|
15
21
|
{ label: 'private key', pattern: /-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]*?(?:-----END [A-Z ]*PRIVATE KEY-----|$)/g },
|
|
16
|
-
{ label: 'GitHub token', pattern:
|
|
17
|
-
{ label: 'Google API key', pattern:
|
|
18
|
-
{ label: 'Anthropic key', pattern:
|
|
22
|
+
{ label: 'GitHub token', pattern: /(?:github_pat_|gh[pousr]_)[A-Za-z0-9_]{10,}/g },
|
|
23
|
+
{ label: 'Google API key', pattern: /AIza[0-9A-Za-z_-]{10,}/g },
|
|
24
|
+
{ label: 'Anthropic key', pattern: /sk-ant-[A-Za-z0-9_-]{10,}/g },
|
|
19
25
|
{ label: 'API key', pattern: /\bsk-[A-Za-z0-9_-]{20,}/g },
|
|
20
|
-
{ label: '
|
|
21
|
-
{ label: '
|
|
26
|
+
{ label: 'API key', pattern: /sk-(?:[A-Za-z0-9_]+-){0,3}(?=[A-Za-z0-9_]*\d)[A-Za-z0-9_]{20,}[A-Za-z0-9_-]*/g },
|
|
27
|
+
{ label: 'Slack token', pattern: /xox[abposr]-[A-Za-z0-9-]{10,}/g },
|
|
28
|
+
{ label: 'AWS key', pattern: /(?:AKIA|ASIA)[0-9A-Z]{16}/g }
|
|
22
29
|
];
|
|
23
30
|
/** `[hidden GitHub token #1a2b3c4d]`: what the model sees instead of a secret, and copies back verbatim. */
|
|
24
31
|
const placeholderPattern = /\[hidden [A-Za-z][A-Za-z ]* #([0-9a-f]{8})\]/g;
|
|
32
|
+
/** A character that would make a restored secret part of a longer word, which the patterns above may not recognise. */
|
|
33
|
+
const wordCharacter = /[A-Za-z0-9_]/;
|
|
34
|
+
/** Shorter than this, a remembered value is too likely to be ordinary text to hide wherever it appears. */
|
|
35
|
+
const minimumKnownLength = 8;
|
|
25
36
|
/** Eight hex digits of the value's sha256: stable across reads, so one secret is one placeholder, and no help in recovering it. */
|
|
26
37
|
function secretPlaceholder(label, value) {
|
|
27
38
|
return `[hidden ${label} #${(0, node_crypto_1.createHash)('sha256').update(value).digest('hex').slice(0, 8)}]`;
|
|
28
39
|
}
|
|
29
|
-
/**
|
|
30
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Replaces every credential-shaped string with its placeholder, and says which placeholder stands for
|
|
42
|
+
* which value. `known` is what was hidden before: such a value is hidden again wherever it appears,
|
|
43
|
+
* whatever now surrounds it, so a secret moved into a shape no pattern matches is still not shown.
|
|
44
|
+
*/
|
|
45
|
+
function maskSecrets(text, known) {
|
|
31
46
|
const secrets = new Map();
|
|
32
47
|
let masked = text;
|
|
33
48
|
for (const { label, pattern } of secretPatterns) {
|
|
@@ -37,39 +52,63 @@ function maskSecrets(text) {
|
|
|
37
52
|
return placeholder;
|
|
38
53
|
});
|
|
39
54
|
}
|
|
55
|
+
if (known) {
|
|
56
|
+
for (const [placeholder, value] of known) {
|
|
57
|
+
if (value.length < minimumKnownLength || !masked.includes(value))
|
|
58
|
+
continue;
|
|
59
|
+
masked = masked.split(value).join(placeholder);
|
|
60
|
+
secrets.set(placeholder, value);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
40
63
|
return { text: masked, secrets };
|
|
41
64
|
}
|
|
42
65
|
/**
|
|
43
66
|
* Puts the real values back where the model copied a placeholder, so a note rewritten from a masked
|
|
44
67
|
* read keeps its secret. A placeholder this process never produced cannot be restored and is
|
|
45
68
|
* reported instead, so the caller refuses the call rather than write the placeholder into a note.
|
|
69
|
+
* So is one written against a letter, digit or underscore: the value would become part of a longer
|
|
70
|
+
* word, which is how a secret was once read back in clear (RFX-82).
|
|
46
71
|
* `encode` adapts a value to where the placeholder sits, such as inside a JSON string.
|
|
47
72
|
*/
|
|
48
73
|
function restoreSecrets(text, known, encode = (value) => value) {
|
|
49
74
|
const missing = [];
|
|
50
|
-
const
|
|
75
|
+
const embedded = [];
|
|
76
|
+
const restored = text.replace(placeholderPattern, (placeholder, _digest, offset) => {
|
|
51
77
|
const value = known.get(placeholder);
|
|
52
78
|
if (value === undefined) {
|
|
53
79
|
missing.push(placeholder);
|
|
54
80
|
return placeholder;
|
|
55
81
|
}
|
|
82
|
+
if (wordBefore(text, offset) || wordCharacter.test(text[offset + placeholder.length] ?? '')) {
|
|
83
|
+
embedded.push(placeholder);
|
|
84
|
+
return placeholder;
|
|
85
|
+
}
|
|
56
86
|
return encode(value);
|
|
57
87
|
});
|
|
58
|
-
return { text: restored, missing };
|
|
88
|
+
return { text: restored, missing, embedded };
|
|
89
|
+
}
|
|
90
|
+
/** Whether a letter, digit or underscore sits right before `offset`; one that ends an escape such as `\\n` in JSON text is not one. */
|
|
91
|
+
function wordBefore(text, offset) {
|
|
92
|
+
if (!wordCharacter.test(text[offset - 1] ?? ''))
|
|
93
|
+
return false;
|
|
94
|
+
let backslashes = 0;
|
|
95
|
+
for (let index = offset - 2; index >= 0 && text[index] === '\\'; index -= 1)
|
|
96
|
+
backslashes += 1;
|
|
97
|
+
return backslashes % 2 === 0;
|
|
59
98
|
}
|
|
60
|
-
/** Masks every string inside a tool result, keeping its shape; the values found are added to `found`. */
|
|
61
|
-
function maskValue(value, found) {
|
|
99
|
+
/** Masks every string inside a tool result, keeping its shape; the values found are added to `found`. `known` as in `maskSecrets`. */
|
|
100
|
+
function maskValue(value, found, known) {
|
|
62
101
|
if (typeof value === 'string') {
|
|
63
|
-
const masked = maskSecrets(value);
|
|
102
|
+
const masked = maskSecrets(value, known);
|
|
64
103
|
for (const [placeholder, secret] of masked.secrets)
|
|
65
104
|
found.set(placeholder, secret);
|
|
66
105
|
return masked.text;
|
|
67
106
|
}
|
|
68
107
|
if (Array.isArray(value))
|
|
69
|
-
return value.map((item) => maskValue(item, found));
|
|
108
|
+
return value.map((item) => maskValue(item, found, known));
|
|
70
109
|
if (value && typeof value === 'object') {
|
|
71
110
|
if (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null) {
|
|
72
|
-
return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, maskValue(item, found)]));
|
|
111
|
+
return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, maskValue(item, found, known)]));
|
|
73
112
|
}
|
|
74
113
|
// Anything else reaches the model as its JSON form, so that form is what gets masked.
|
|
75
114
|
let plain;
|
|
@@ -79,7 +118,7 @@ function maskValue(value, found) {
|
|
|
79
118
|
catch {
|
|
80
119
|
return value;
|
|
81
120
|
}
|
|
82
|
-
return maskValue(plain, found);
|
|
121
|
+
return maskValue(plain, found, known);
|
|
83
122
|
}
|
|
84
123
|
return value;
|
|
85
124
|
}
|
|
@@ -34,17 +34,62 @@ function maskFunctionTool(tool, vault) {
|
|
|
34
34
|
return {
|
|
35
35
|
...tool,
|
|
36
36
|
invoke: async (runContext, input, details) => {
|
|
37
|
-
|
|
38
|
-
const restored = (0, secret_masking_1.restoreSecrets)(input, vault.known(), (value) => JSON.stringify(value).slice(1, -1));
|
|
37
|
+
const restored = restoreArguments(input, vault.known());
|
|
39
38
|
if (restored.missing.length)
|
|
40
39
|
return hiddenSecretUnavailable(restored.missing);
|
|
40
|
+
if (restored.embedded.length)
|
|
41
|
+
return hiddenSecretEmbedded(restored.embedded);
|
|
41
42
|
const found = new Map();
|
|
42
|
-
|
|
43
|
+
// What this agent hid before is hidden again wherever it now appears, not only where a pattern finds it.
|
|
44
|
+
const result = (0, secret_masking_1.maskValue)(await invoke(runContext, restored.text, details), found, vault.known());
|
|
43
45
|
vault.remember(found);
|
|
44
46
|
return result;
|
|
45
47
|
}
|
|
46
48
|
};
|
|
47
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* A tool's arguments with their placeholders restored. Arguments arrive as JSON text, and each string
|
|
52
|
+
* in them is restored as the text it is, so what sits beside a placeholder is judged on the real
|
|
53
|
+
* character and never on a JSON escape. Arguments without a placeholder are passed on untouched.
|
|
54
|
+
*/
|
|
55
|
+
function restoreArguments(input, known) {
|
|
56
|
+
if (!input.includes('[hidden '))
|
|
57
|
+
return { text: input, missing: [], embedded: [] };
|
|
58
|
+
let parsed;
|
|
59
|
+
// Not JSON: the tool will refuse it on its own; restore as before, each value escaped as a JSON string body.
|
|
60
|
+
try {
|
|
61
|
+
parsed = JSON.parse(input);
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
return (0, secret_masking_1.restoreSecrets)(input, known, (value) => JSON.stringify(value).slice(1, -1));
|
|
65
|
+
}
|
|
66
|
+
const missing = [];
|
|
67
|
+
const embedded = [];
|
|
68
|
+
const walk = (value) => {
|
|
69
|
+
if (typeof value === 'string') {
|
|
70
|
+
const restored = (0, secret_masking_1.restoreSecrets)(value, known);
|
|
71
|
+
missing.push(...restored.missing);
|
|
72
|
+
embedded.push(...restored.embedded);
|
|
73
|
+
return restored.text;
|
|
74
|
+
}
|
|
75
|
+
if (Array.isArray(value))
|
|
76
|
+
return value.map(walk);
|
|
77
|
+
if (value && typeof value === 'object')
|
|
78
|
+
return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, walk(item)]));
|
|
79
|
+
return value;
|
|
80
|
+
};
|
|
81
|
+
return { text: JSON.stringify(walk(parsed)), missing, embedded };
|
|
82
|
+
}
|
|
83
|
+
function hiddenSecretEmbedded(placeholders) {
|
|
84
|
+
return {
|
|
85
|
+
ok: false,
|
|
86
|
+
error: {
|
|
87
|
+
code: 'hidden_secret_embedded',
|
|
88
|
+
message: 'This call writes a hidden secret directly against other text, so nothing was run. A placeholder must stand on its own: put a space, a quote, punctuation or a line break on both sides of it.',
|
|
89
|
+
placeholders
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
48
93
|
function hiddenSecretUnavailable(placeholders) {
|
|
49
94
|
return {
|
|
50
95
|
ok: false,
|
|
@@ -10,6 +10,7 @@ const yaml_1 = require("yaml");
|
|
|
10
10
|
const errors_1 = require("./errors");
|
|
11
11
|
const resource_mutex_1 = require("./resource-mutex");
|
|
12
12
|
const session_1 = require("./session");
|
|
13
|
+
const types_1 = require("./types");
|
|
13
14
|
class SessionRegistry {
|
|
14
15
|
registryPath;
|
|
15
16
|
sessionDirectory;
|
|
@@ -213,8 +214,8 @@ function validateModelSelection(value) {
|
|
|
213
214
|
if (!entry || typeof entry.providerId !== 'string' || !/^[a-z0-9][a-z0-9_-]{0,63}$/.test(entry.providerId) || typeof entry.modelId !== 'string' || !entry.modelId.trim() || entry.modelId.length > 200) {
|
|
214
215
|
throw new errors_1.GraphAgentError('malformed_session_registry', 'Session model selections must contain valid providerId and modelId values.');
|
|
215
216
|
}
|
|
216
|
-
if (entry.reasoningEffort !== undefined && !
|
|
217
|
-
throw new errors_1.GraphAgentError('malformed_session_registry', 'Session reasoning effort
|
|
217
|
+
if (entry.reasoningEffort !== undefined && !(0, types_1.isModelReasoningEffort)(entry.reasoningEffort)) {
|
|
218
|
+
throw new errors_1.GraphAgentError('malformed_session_registry', 'Session reasoning effort is not one the model runtime accepts.');
|
|
218
219
|
}
|
|
219
220
|
return { providerId: entry.providerId, modelId: entry.modelId, ...(entry.reasoningEffort ? { reasoningEffort: entry.reasoningEffort } : {}) };
|
|
220
221
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsRegistry = exports.defaultAppSettings = exports.defaultLoggingSettings = exports.defaultLogStreamLoginSettings = exports.defaultLogStreamCallsSettings = exports.logRotationPolicies =
|
|
3
|
+
exports.SettingsRegistry = exports.defaultAppSettings = exports.defaultLoggingSettings = exports.defaultLogStreamLoginSettings = exports.defaultLogStreamCallsSettings = exports.logRotationPolicies = void 0;
|
|
4
4
|
exports.validateAppSettings = validateAppSettings;
|
|
5
5
|
const node_crypto_1 = require("node:crypto");
|
|
6
6
|
const promises_1 = require("node:fs/promises");
|
|
@@ -9,21 +9,10 @@ const yaml_1 = require("yaml");
|
|
|
9
9
|
const errors_1 = require("./errors");
|
|
10
10
|
const resource_mutex_1 = require("./resource-mutex");
|
|
11
11
|
const agent_context_1 = require("./agent-context");
|
|
12
|
+
const types_1 = require("./types");
|
|
12
13
|
const security_settings_1 = require("./security-settings");
|
|
13
14
|
const auth_registry_1 = require("./auth-registry");
|
|
14
|
-
const board_registry_1 = require("./board-registry");
|
|
15
15
|
const spaces_rename_migration_1 = require("./spaces-rename-migration");
|
|
16
|
-
exports.noteEditorFontFamilies = ['system', 'serif', 'monospace'];
|
|
17
|
-
exports.noteEditorOpenLinksModes = ['off', 'on', 'ask'];
|
|
18
|
-
exports.noteEditorToolbarUnavailableModes = ['disable', 'hide'];
|
|
19
|
-
const maximumToolbarItems = 100;
|
|
20
|
-
/** `system` follows the device's colour scheme; the other two pin the app regardless of it. */
|
|
21
|
-
exports.appearanceThemes = ['light', 'dark', 'system'];
|
|
22
|
-
exports.defaultNoteEditorDateTimeFormats = Object.freeze({
|
|
23
|
-
date: 'yyyy-MM-dd',
|
|
24
|
-
time: 'HH:mm',
|
|
25
|
-
dateTime: 'yyyy-MM-dd HH:mm'
|
|
26
|
-
});
|
|
27
16
|
exports.logRotationPolicies = ['daily', 'hourly', 'size-only'];
|
|
28
17
|
exports.defaultLogStreamCallsSettings = Object.freeze({
|
|
29
18
|
enabled: true,
|
|
@@ -43,10 +32,8 @@ exports.defaultLoggingSettings = Object.freeze({
|
|
|
43
32
|
login: { ...exports.defaultLogStreamLoginSettings }
|
|
44
33
|
});
|
|
45
34
|
exports.defaultAppSettings = {
|
|
46
|
-
noteEditor: { fontFamily: 'system', fontSize: 16, dateTime: { ...exports.defaultNoteEditorDateTimeFormats } },
|
|
47
35
|
model: { defaultProviderId: 'openai', defaultModelId: 'gpt-5.4' },
|
|
48
|
-
agent: { variables: {} }
|
|
49
|
-
appearance: { theme: 'system' }
|
|
36
|
+
agent: { variables: {} }
|
|
50
37
|
};
|
|
51
38
|
class SettingsRegistry {
|
|
52
39
|
settingsPath;
|
|
@@ -191,85 +178,27 @@ exports.SettingsRegistry = SettingsRegistry;
|
|
|
191
178
|
function validateAppSettings(value) {
|
|
192
179
|
if (!value || typeof value !== 'object')
|
|
193
180
|
throw malformed('settings.yaml must contain a settings object.');
|
|
194
|
-
const noteEditor = readNoteEditor(value.noteEditor);
|
|
195
181
|
const model = readModelSettings(value.model);
|
|
196
182
|
const agent = readAgentSettings(value.agent);
|
|
197
|
-
const appearance = readAppearance(value.appearance);
|
|
198
|
-
const boards = readBoards(value.boards);
|
|
199
183
|
const settingsSectionOrder = readSettingsSectionOrder(value.settingsSectionOrder);
|
|
200
184
|
const logging = readLogging(value.logging);
|
|
201
|
-
const
|
|
202
|
-
return {
|
|
185
|
+
const advancedSecurity = readAdvancedSecurity(value.advancedSecurity);
|
|
186
|
+
return { model, agent, ...(settingsSectionOrder ? { settingsSectionOrder } : {}), ...(logging ? { logging } : {}), ...(advancedSecurity ? { advancedSecurity } : {}) };
|
|
203
187
|
}
|
|
204
188
|
/** Fills in records absent from an older settings.yaml while retaining strict validation for writes. */
|
|
205
189
|
function normalizeStoredAppSettings(value) {
|
|
206
190
|
if (!value || typeof value !== 'object')
|
|
207
191
|
throw malformed('settings.yaml must contain a settings object.');
|
|
208
|
-
const storedNoteEditor = value.noteEditor;
|
|
209
192
|
const storedModel = value.model;
|
|
210
193
|
const storedAgent = value.agent;
|
|
211
|
-
const storedAppearance = value.appearance;
|
|
212
194
|
return validateAppSettings({
|
|
213
|
-
noteEditor: storedNoteEditor === undefined ? exports.defaultAppSettings.noteEditor : storedNoteEditor,
|
|
214
195
|
model: storedModel === undefined ? exports.defaultAppSettings.model : storedModel,
|
|
215
196
|
agent: storedAgent === undefined ? exports.defaultAppSettings.agent : storedAgent,
|
|
216
|
-
appearance: storedAppearance === undefined ? exports.defaultAppSettings.appearance : storedAppearance,
|
|
217
|
-
boards: value.boards,
|
|
218
197
|
settingsSectionOrder: value.settingsSectionOrder,
|
|
219
198
|
logging: value.logging,
|
|
220
|
-
|
|
199
|
+
advancedSecurity: value.advancedSecurity
|
|
221
200
|
});
|
|
222
201
|
}
|
|
223
|
-
/** Absent leaves no record, so a file that never configured logging does not change. */
|
|
224
|
-
const extensionPattern = /^[a-z0-9][a-z0-9+_-]{0,15}$/;
|
|
225
|
-
function readCodeEditor(value) {
|
|
226
|
-
if (value === undefined)
|
|
227
|
-
return undefined;
|
|
228
|
-
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
229
|
-
throw malformed('codeEditor must be an object.');
|
|
230
|
-
const formatting = value.formatting;
|
|
231
|
-
if (formatting === undefined)
|
|
232
|
-
return {};
|
|
233
|
-
if (!formatting || typeof formatting !== 'object' || Array.isArray(formatting))
|
|
234
|
-
throw malformed('codeEditor.formatting must be an object.');
|
|
235
|
-
const { formatOnSave, defaults, byExtension } = formatting;
|
|
236
|
-
if (formatOnSave !== undefined && typeof formatOnSave !== 'boolean')
|
|
237
|
-
throw malformed('codeEditor.formatting.formatOnSave must be true or false.');
|
|
238
|
-
let extensions;
|
|
239
|
-
if (byExtension !== undefined) {
|
|
240
|
-
if (!byExtension || typeof byExtension !== 'object' || Array.isArray(byExtension))
|
|
241
|
-
throw malformed('codeEditor.formatting.byExtension must map file extensions to rules.');
|
|
242
|
-
extensions = {};
|
|
243
|
-
for (const [extension, rules] of Object.entries(byExtension)) {
|
|
244
|
-
if (!extensionPattern.test(extension))
|
|
245
|
-
throw malformed(`codeEditor.formatting.byExtension: '${extension}' is not a file extension; name it in lowercase without the dot, such as css.`);
|
|
246
|
-
extensions[extension] = readFormatRules(rules, `codeEditor.formatting.byExtension.${extension}`);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return { formatting: { ...(formatOnSave === undefined ? {} : { formatOnSave }), ...(defaults === undefined ? {} : { defaults: readFormatRules(defaults, 'codeEditor.formatting.defaults') }), ...(extensions ? { byExtension: extensions } : {}) } };
|
|
250
|
-
}
|
|
251
|
-
function readFormatRules(value, at) {
|
|
252
|
-
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
253
|
-
throw malformed(`${at} must be an object of formatting rules.`);
|
|
254
|
-
const rules = value;
|
|
255
|
-
const out = {};
|
|
256
|
-
for (const key of ['useTabs', 'singleQuote', 'semi']) {
|
|
257
|
-
if (rules[key] === undefined)
|
|
258
|
-
continue;
|
|
259
|
-
if (typeof rules[key] !== 'boolean')
|
|
260
|
-
throw malformed(`${at}.${key} must be true or false.`);
|
|
261
|
-
out[key] = rules[key];
|
|
262
|
-
}
|
|
263
|
-
const numbers = [['tabWidth', 1, 16], ['printWidth', 20, 400]];
|
|
264
|
-
for (const [key, min, max] of numbers) {
|
|
265
|
-
if (rules[key] === undefined)
|
|
266
|
-
continue;
|
|
267
|
-
if (typeof rules[key] !== 'number' || !Number.isInteger(rules[key]) || rules[key] < min || rules[key] > max)
|
|
268
|
-
throw malformed(`${at}.${key} must be a whole number from ${min} to ${max}.`);
|
|
269
|
-
out[key] = rules[key];
|
|
270
|
-
}
|
|
271
|
-
return out;
|
|
272
|
-
}
|
|
273
202
|
function readLogging(value) {
|
|
274
203
|
if (value === undefined)
|
|
275
204
|
return undefined;
|
|
@@ -313,20 +242,6 @@ function readLogStream(value, streamName, defaultStream) {
|
|
|
313
242
|
rotationPolicy: rotationPolicy ?? defaultStream.rotationPolicy
|
|
314
243
|
};
|
|
315
244
|
}
|
|
316
|
-
/** Absent, or with no default chosen, leaves no record, so a settings file that never set it does not change. */
|
|
317
|
-
function readBoards(value) {
|
|
318
|
-
if (value === undefined)
|
|
319
|
-
return undefined;
|
|
320
|
-
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
321
|
-
throw malformed('boards must be an object.');
|
|
322
|
-
const removeCard = value.removeCard;
|
|
323
|
-
if (removeCard === undefined)
|
|
324
|
-
return undefined;
|
|
325
|
-
const deleteNote = removeCard?.deleteNote;
|
|
326
|
-
if (typeof deleteNote !== 'string' || !board_registry_1.boardRemoveCardNoteActions.includes(deleteNote))
|
|
327
|
-
throw malformed(`boards.removeCard.deleteNote must be one of ${board_registry_1.boardRemoveCardNoteActions.join(', ')}.`);
|
|
328
|
-
return { removeCard: { deleteNote: deleteNote } };
|
|
329
|
-
}
|
|
330
245
|
/** Absent or empty leaves no record, so a file that never reordered the page does not change. */
|
|
331
246
|
function readSettingsSectionOrder(value) {
|
|
332
247
|
if (value === undefined)
|
|
@@ -339,13 +254,19 @@ function readSettingsSectionOrder(value) {
|
|
|
339
254
|
throw malformed('settingsSectionOrder must not repeat a section id.');
|
|
340
255
|
return value.length ? (0, spaces_rename_migration_1.renameSettingsSectionOrder)(value) : undefined;
|
|
341
256
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
if (typeof
|
|
347
|
-
throw malformed('
|
|
348
|
-
|
|
257
|
+
/** Only a switch that is on is kept, so a file that never turned one on does not change. */
|
|
258
|
+
function readAdvancedSecurity(value) {
|
|
259
|
+
if (value === undefined)
|
|
260
|
+
return undefined;
|
|
261
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
262
|
+
throw malformed('advancedSecurity must be an object.');
|
|
263
|
+
const { askBeforeRemoteImages, keepDiagramsLocal } = value;
|
|
264
|
+
for (const [name, flag] of [['askBeforeRemoteImages', askBeforeRemoteImages], ['keepDiagramsLocal', keepDiagramsLocal]]) {
|
|
265
|
+
if (flag !== undefined && typeof flag !== 'boolean')
|
|
266
|
+
throw malformed(`advancedSecurity.${name} must be true or false.`);
|
|
267
|
+
}
|
|
268
|
+
const kept = { ...(askBeforeRemoteImages === true ? { askBeforeRemoteImages: true } : {}), ...(keepDiagramsLocal === true ? { keepDiagramsLocal: true } : {}) };
|
|
269
|
+
return Object.keys(kept).length ? kept : undefined;
|
|
349
270
|
}
|
|
350
271
|
function readAgentSettings(value) {
|
|
351
272
|
if (!value || typeof value !== 'object')
|
|
@@ -363,87 +284,9 @@ function readModelSettings(value) {
|
|
|
363
284
|
throw malformed('model.defaultProviderId is invalid.');
|
|
364
285
|
if (typeof defaultModelId !== 'string' || !defaultModelId.trim() || defaultModelId.length > 200)
|
|
365
286
|
throw malformed('model.defaultModelId is invalid.');
|
|
366
|
-
if (defaultReasoningEffort !== undefined && !
|
|
287
|
+
if (defaultReasoningEffort !== undefined && !(0, types_1.isModelReasoningEffort)(defaultReasoningEffort))
|
|
367
288
|
throw malformed('model.defaultReasoningEffort is invalid.');
|
|
368
|
-
return { defaultProviderId, defaultModelId, ...(defaultReasoningEffort ? { defaultReasoningEffort
|
|
369
|
-
}
|
|
370
|
-
function readNoteEditor(value) {
|
|
371
|
-
if (!value || typeof value !== 'object')
|
|
372
|
-
throw malformed('settings.yaml must contain note editor settings.');
|
|
373
|
-
const fontFamily = value.fontFamily;
|
|
374
|
-
const fontSize = value.fontSize;
|
|
375
|
-
const dateTime = readNoteEditorDateTimeFormats(value.dateTime);
|
|
376
|
-
const fastCreate = value.fastCreate;
|
|
377
|
-
if (fastCreate !== undefined && typeof fastCreate !== 'boolean')
|
|
378
|
-
throw malformed('Note editor fastCreate must be true or false.');
|
|
379
|
-
const foldableLists = value.foldableLists;
|
|
380
|
-
if (foldableLists !== undefined && typeof foldableLists !== 'boolean')
|
|
381
|
-
throw malformed('Note editor foldableLists must be true or false.');
|
|
382
|
-
const checklistSwipe = value.checklistSwipe;
|
|
383
|
-
if (checklistSwipe !== undefined && typeof checklistSwipe !== 'boolean')
|
|
384
|
-
throw malformed('Note editor checklistSwipe must be true or false.');
|
|
385
|
-
const openLinksInNewTab = value.openLinksInNewTab;
|
|
386
|
-
if (openLinksInNewTab !== undefined && (typeof openLinksInNewTab !== 'string' || !exports.noteEditorOpenLinksModes.includes(openLinksInNewTab))) {
|
|
387
|
-
throw malformed('Note editor openLinksInNewTab must be off, on, or ask.');
|
|
388
|
-
}
|
|
389
|
-
if (typeof fontFamily !== 'string' || !exports.noteEditorFontFamilies.includes(fontFamily))
|
|
390
|
-
throw malformed('Note editor fontFamily must be system, serif, or monospace.');
|
|
391
|
-
if (!Number.isInteger(fontSize) || fontSize < 12 || fontSize > 32)
|
|
392
|
-
throw malformed('Note editor fontSize must be an integer from 12 to 32.');
|
|
393
|
-
const toolbars = readNoteEditorToolbars(value.toolbars);
|
|
394
|
-
return { fontFamily: fontFamily, fontSize: fontSize, dateTime, ...(fastCreate === undefined ? {} : { fastCreate }), ...(foldableLists === undefined ? {} : { foldableLists }), ...(checklistSwipe === undefined ? {} : { checklistSwipe }), ...(openLinksInNewTab === undefined ? {} : { openLinksInNewTab: openLinksInNewTab }), ...(toolbars ? { toolbars } : {}) };
|
|
395
|
-
}
|
|
396
|
-
function readNoteEditorToolbars(value) {
|
|
397
|
-
if (value === undefined)
|
|
398
|
-
return undefined;
|
|
399
|
-
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
400
|
-
throw malformed('Note editor toolbars must be an object.');
|
|
401
|
-
const desktop = readNoteEditorToolbarSurface(value, 'desktop');
|
|
402
|
-
const mobile = readNoteEditorToolbarSurface(value, 'mobile');
|
|
403
|
-
return { ...(desktop ? { desktop } : {}), ...(mobile ? { mobile } : {}) };
|
|
404
|
-
}
|
|
405
|
-
function readNoteEditorToolbarSurface(value, surface) {
|
|
406
|
-
const stored = value[surface];
|
|
407
|
-
if (stored === undefined)
|
|
408
|
-
return undefined;
|
|
409
|
-
if (!stored || typeof stored !== 'object' || Array.isArray(stored))
|
|
410
|
-
throw malformed(`Note editor toolbars.${surface} must be an object.`);
|
|
411
|
-
const items = stored.items;
|
|
412
|
-
const whenUnavailable = stored.whenUnavailable;
|
|
413
|
-
if (whenUnavailable !== undefined && !exports.noteEditorToolbarUnavailableModes.includes(whenUnavailable))
|
|
414
|
-
throw malformed(`Note editor toolbars.${surface}.whenUnavailable must be disable or hide.`);
|
|
415
|
-
if (items !== undefined && (!Array.isArray(items) || items.length > maximumToolbarItems))
|
|
416
|
-
throw malformed(`Note editor toolbars.${surface}.items must be a list of up to ${maximumToolbarItems} items.`);
|
|
417
|
-
return {
|
|
418
|
-
...(items === undefined ? {} : { items: items.map((item) => readNoteEditorToolbarItem(item, surface)) }),
|
|
419
|
-
...(whenUnavailable === undefined ? {} : { whenUnavailable: whenUnavailable })
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
function readNoteEditorToolbarItem(item, surface) {
|
|
423
|
-
if (item && typeof item === 'object' && item.separator === true)
|
|
424
|
-
return { separator: true };
|
|
425
|
-
const tool = item && typeof item === 'object' ? item.tool : undefined;
|
|
426
|
-
if (typeof tool !== 'string' || !/^[a-z][a-z0-9-]{0,63}$/.test(tool))
|
|
427
|
-
throw malformed(`Note editor toolbars.${surface}.items must each be { tool: <id> } or { separator: true }.`);
|
|
428
|
-
return { tool };
|
|
429
|
-
}
|
|
430
|
-
function readNoteEditorDateTimeFormats(value) {
|
|
431
|
-
if (value === undefined)
|
|
432
|
-
return { ...exports.defaultNoteEditorDateTimeFormats };
|
|
433
|
-
if (!value || typeof value !== 'object')
|
|
434
|
-
throw malformed('Note editor dateTime formats must be an object.');
|
|
435
|
-
return {
|
|
436
|
-
date: readDateTimeFormat(value, 'date'),
|
|
437
|
-
time: readDateTimeFormat(value, 'time'),
|
|
438
|
-
dateTime: readDateTimeFormat(value, 'dateTime')
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
function readDateTimeFormat(value, key) {
|
|
442
|
-
const format = value[key];
|
|
443
|
-
if (typeof format !== 'string' || !format.trim() || format.length > 200 || /[\r\n\u0000-\u001F\u007F]/u.test(format)) {
|
|
444
|
-
throw malformed(`Note editor dateTime.${key} must be non-empty single-line text up to 200 characters.`);
|
|
445
|
-
}
|
|
446
|
-
return format;
|
|
289
|
+
return { defaultProviderId, defaultModelId, ...(defaultReasoningEffort ? { defaultReasoningEffort } : {}) };
|
|
447
290
|
}
|
|
448
291
|
function malformed(message) { return new errors_1.GraphAgentError('malformed_settings', message); }
|
|
449
292
|
function isNodeError(error) { return error instanceof Error && 'code' in error; }
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vaultSettingsResetParts = exports.vaultResetParts = exports.validateVaultResetParts = exports.validateResetParts = exports.resetVaultSettings = void 0;
|
|
4
|
+
var settings_reset_1 = require("./settings-reset");
|
|
5
|
+
Object.defineProperty(exports, "resetVaultSettings", { enumerable: true, get: function () { return settings_reset_1.resetVaultSettings; } });
|
|
6
|
+
Object.defineProperty(exports, "validateResetParts", { enumerable: true, get: function () { return settings_reset_1.validateResetParts; } });
|
|
7
|
+
Object.defineProperty(exports, "validateVaultResetParts", { enumerable: true, get: function () { return settings_reset_1.validateVaultResetParts; } });
|
|
8
|
+
Object.defineProperty(exports, "vaultResetParts", { enumerable: true, get: function () { return settings_reset_1.vaultResetParts; } });
|
|
9
|
+
Object.defineProperty(exports, "vaultSettingsResetParts", { enumerable: true, get: function () { return settings_reset_1.vaultSettingsResetParts; } });
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vaultSettingsResetParts = exports.vaultResetParts = void 0;
|
|
4
|
+
exports.validateResetParts = validateResetParts;
|
|
5
|
+
exports.validateVaultResetParts = validateVaultResetParts;
|
|
6
|
+
exports.resetVaultSettings = resetVaultSettings;
|
|
7
|
+
// Resetting a vault by part (ENG-433): what the owner ticks returns to its default or is deleted, and nothing else.
|
|
8
|
+
// Types, note keys, daily notes and journal setup, where files and recordings land, share links and Safe
|
|
9
|
+
// Notes' folders and keys are never touched: switching a feature back on restores what it had.
|
|
10
|
+
const errors_1 = require("../errors");
|
|
11
|
+
const navigation_settings_1 = require("../navigation-settings");
|
|
12
|
+
/**
|
|
13
|
+
* `visual`: fonts, date and time formats, editor toolbars, saved colours, QR defaults, tab style and the menu layout
|
|
14
|
+
* (the browser clears everything it stored, too). `behavior`: fast create, folding, checklist swipe, external links,
|
|
15
|
+
* preview update, Kanban's delete-note default, RSS's Open Inbox, IDE formatting, which hidden files show and how files
|
|
16
|
+
* save, what a new recording starts with, and the Agent Tools and editing switches. `features`: every switch back to a
|
|
17
|
+
* new vault's, Notes alone on, each feature's own data kept. `ai-instructions`: the vault's agent instructions,
|
|
18
|
+
* variables and semantic bindings deleted. `ai-agents`: every custom agent and their routing deleted. `rss-profiles`: every RSS
|
|
19
|
+
* evaluation profile deleted.
|
|
20
|
+
*/
|
|
21
|
+
exports.vaultResetParts = ['visual', 'behavior', 'features', 'ai-instructions', 'ai-agents', 'rss-profiles'];
|
|
22
|
+
/** The parts `vault.yaml` alone holds, which the `reset_settings` operation applies. */
|
|
23
|
+
exports.vaultSettingsResetParts = ['visual', 'behavior', 'features', 'ai-instructions'];
|
|
24
|
+
const featureRecords = ['chat', 'boards', 'calendars', 'files', 'types', 'graph', 'rss', 'ide', 'mcp', 'attachments', 'recordings', 'journal', 'versioning', 'matrices', 'dashboards', 'spaces', 'discovery', 'shares', 'safeNotes', 'dailyNotes'];
|
|
25
|
+
function validateParts(value, allowed) {
|
|
26
|
+
if (!Array.isArray(value) || !value.length || value.some((part) => !allowed.includes(part)))
|
|
27
|
+
throw new errors_1.GraphAgentError('malformed_settings', `parts must name at least one of ${allowed.join(', ')}.`);
|
|
28
|
+
return [...new Set(value)];
|
|
29
|
+
}
|
|
30
|
+
function validateResetParts(value) { return validateParts(value, exports.vaultSettingsResetParts); }
|
|
31
|
+
function validateVaultResetParts(value) { return validateParts(value, exports.vaultResetParts); }
|
|
32
|
+
/** Applies the reset in place and returns the settings; validation follows in the registry. */
|
|
33
|
+
function resetVaultSettings(settings, parts) {
|
|
34
|
+
const has = (part) => parts.includes(part);
|
|
35
|
+
const editor = { ...settings.noteEditor };
|
|
36
|
+
if (has('visual')) {
|
|
37
|
+
delete editor.fontFamily;
|
|
38
|
+
delete editor.fontSize;
|
|
39
|
+
delete editor.dateTime;
|
|
40
|
+
delete editor.toolbars;
|
|
41
|
+
delete settings.colorSlots;
|
|
42
|
+
delete settings.qrCode;
|
|
43
|
+
delete settings.workspace;
|
|
44
|
+
settings.navigation = structuredClone(navigation_settings_1.defaultNavigationSettings);
|
|
45
|
+
}
|
|
46
|
+
if (has('behavior')) {
|
|
47
|
+
delete editor.fastCreate;
|
|
48
|
+
delete editor.foldableLists;
|
|
49
|
+
delete editor.checklistSwipe;
|
|
50
|
+
delete editor.openLinksInNewTab;
|
|
51
|
+
const { previewUpdate: _preview, ...notes } = settings.notes;
|
|
52
|
+
settings.notes = notes;
|
|
53
|
+
if (settings.boards)
|
|
54
|
+
settings.boards = { enabled: settings.boards.enabled };
|
|
55
|
+
if (settings.rss)
|
|
56
|
+
settings.rss = { enabled: settings.rss.enabled };
|
|
57
|
+
if (settings.ide)
|
|
58
|
+
settings.ide = { enabled: settings.ide.enabled };
|
|
59
|
+
if (settings.files)
|
|
60
|
+
settings.files = { enabled: settings.files.enabled };
|
|
61
|
+
if (settings.recordings) {
|
|
62
|
+
const { defaults: _defaults, ...recordings } = settings.recordings;
|
|
63
|
+
settings.recordings = recordings;
|
|
64
|
+
}
|
|
65
|
+
const { tools: _tools, editing: _editing, ...agent } = settings.agent;
|
|
66
|
+
settings.agent = agent;
|
|
67
|
+
}
|
|
68
|
+
if (Object.keys(editor).length)
|
|
69
|
+
settings.noteEditor = editor;
|
|
70
|
+
else
|
|
71
|
+
delete settings.noteEditor;
|
|
72
|
+
if (has('ai-instructions')) {
|
|
73
|
+
const { instructions: _instructions, ...agent } = settings.agent;
|
|
74
|
+
settings.agent = { ...agent, variables: {}, entityBindings: [] };
|
|
75
|
+
}
|
|
76
|
+
if (has('features')) {
|
|
77
|
+
settings.notes = { ...settings.notes, enabled: true };
|
|
78
|
+
// Only the switch: Shared notes keeps its links and Safe Notes its folders, so turning either on again restores them.
|
|
79
|
+
const records = settings;
|
|
80
|
+
for (const feature of featureRecords)
|
|
81
|
+
if (records[feature])
|
|
82
|
+
records[feature] = { ...records[feature], enabled: false };
|
|
83
|
+
}
|
|
84
|
+
return settings;
|
|
85
|
+
}
|
|
@@ -5,24 +5,25 @@ exports.addedFileReferences = addedFileReferences;
|
|
|
5
5
|
exports.namesAFile = namesAFile;
|
|
6
6
|
// What an edit link's save may not add: references to files. The pure half of the rule.
|
|
7
7
|
const vault_sdk_1 = require("@braian/vault-sdk");
|
|
8
|
-
const
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const vault_fs_sdk_1 = require("@braian/vault-fs-sdk");
|
|
9
|
+
/**
|
|
10
|
+
* Every wikilink, embed and relative Markdown link in a body, with the vault path it names; external
|
|
11
|
+
* URLs are left out. Read with the extractors the file reference index is built from, and nothing
|
|
12
|
+
* else: a link serves the files its notes reference, so a body the index reads one way and this
|
|
13
|
+
* check another is a way to reference a file unseen (RFX-83).
|
|
14
|
+
*/
|
|
12
15
|
function bodyFileReferences(markdown) {
|
|
13
16
|
const references = [];
|
|
14
|
-
for (const link of (0,
|
|
15
|
-
const target = (0, vault_sdk_1.fileReferenceTarget)(link.
|
|
17
|
+
for (const link of (0, vault_fs_sdk_1.extractLinks)(markdown)) {
|
|
18
|
+
const target = (0, vault_sdk_1.fileReferenceTarget)(link.target, 'wikilink');
|
|
16
19
|
if (target)
|
|
17
|
-
references.push({ reference: link.
|
|
20
|
+
references.push({ reference: link.target, form: 'wikilink', target });
|
|
21
|
+
}
|
|
22
|
+
for (const destination of (0, vault_fs_sdk_1.extractMarkdownDestinations)(markdown)) {
|
|
23
|
+
const target = (0, vault_sdk_1.fileReferenceTarget)(destination, 'markdown');
|
|
24
|
+
if (target)
|
|
25
|
+
references.push({ reference: destination, form: 'markdown', target });
|
|
18
26
|
}
|
|
19
|
-
(0, markdown_wikilink_1.forEachMarkdownText)(markdown, (text) => {
|
|
20
|
-
for (const match of text.matchAll(markdownLink)) {
|
|
21
|
-
const target = (0, vault_sdk_1.fileReferenceTarget)(match[1], 'markdown');
|
|
22
|
-
if (target)
|
|
23
|
-
references.push({ reference: match[1], form: 'markdown', target });
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
27
|
return references;
|
|
27
28
|
}
|
|
28
29
|
/** The references `after` has that `before` did not, compared by form and the path they name. */
|