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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataWorkspace = void 0;
|
|
4
|
+
const vault_access_1 = require("./vault-access");
|
|
4
5
|
const note_collab_registry_1 = require("./note-collab-registry");
|
|
5
6
|
const note_query_1 = require("./note-query");
|
|
6
7
|
const session_registry_1 = require("./session-registry");
|
|
@@ -14,6 +15,8 @@ const feed_sync_1 = require("./calendar-feed/feed-sync");
|
|
|
14
15
|
const feed_secrets_1 = require("./calendar-feed/feed-secrets");
|
|
15
16
|
const share_secrets_1 = require("./share-secrets");
|
|
16
17
|
const mcp_tokens_1 = require("./mcp-tokens");
|
|
18
|
+
const registry_1 = require("./agent-profiles/registry");
|
|
19
|
+
const settings_reset_1 = require("./settings-reset");
|
|
17
20
|
const feed_cache_1 = require("./calendar-feed/feed-cache");
|
|
18
21
|
const activity_registry_1 = require("./activity-registry");
|
|
19
22
|
const creation_time_keeper_1 = require("./creation-time-keeper");
|
|
@@ -38,12 +41,14 @@ const share_use_cases_1 = require("./share-use-cases");
|
|
|
38
41
|
const safe_notes_registry_1 = require("./safe-notes-registry");
|
|
39
42
|
const safe_notes_1 = require("@braian/safe-notes");
|
|
40
43
|
const safe_note_memory_1 = require("./safe-note-memory");
|
|
44
|
+
const standalone_pages_1 = require("./standalone-pages");
|
|
41
45
|
const share_policy_1 = require("./share-policy");
|
|
42
46
|
const imap_account_secrets_1 = require("./imap/imap-account-secrets");
|
|
43
47
|
const note_filter_1 = require("./note-filter");
|
|
44
48
|
const safe_notes_settings_1 = require("./safe-notes-settings");
|
|
45
49
|
const note_key_settings_1 = require("./note-key-settings");
|
|
46
50
|
const vault_settings_registry_1 = require("./vault-settings-registry");
|
|
51
|
+
const note_editor_1 = require("./note-editor");
|
|
47
52
|
const graph_error_1 = require("./graph-error");
|
|
48
53
|
const locked_graph_store_1 = require("./locked-graph-store");
|
|
49
54
|
const errors_1 = require("./errors");
|
|
@@ -98,6 +103,7 @@ class DataWorkspace {
|
|
|
98
103
|
safeNotesRegistries = new Map();
|
|
99
104
|
/** Decrypted share copies and a posted vault key, per vault, for this process only. */
|
|
100
105
|
safeNoteMemories = new Map();
|
|
106
|
+
standalonePageBuilders = new Map();
|
|
101
107
|
/** Changes with every process start: the owner's unlock prompt is dismissed for one boot. */
|
|
102
108
|
bootId = (0, node_crypto_1.randomUUID)();
|
|
103
109
|
activity = new Map();
|
|
@@ -105,6 +111,7 @@ class DataWorkspace {
|
|
|
105
111
|
collabRegistries = new Map();
|
|
106
112
|
vanishedWatches = new Map();
|
|
107
113
|
vanishedListeners = new Set();
|
|
114
|
+
removedListeners = new Set();
|
|
108
115
|
noteStores = new Map();
|
|
109
116
|
vaultStrategies = new Map();
|
|
110
117
|
changeFeeds = new Map();
|
|
@@ -213,6 +220,38 @@ class DataWorkspace {
|
|
|
213
220
|
/** Each vault's MCP access token, kept in auth.yaml. */
|
|
214
221
|
mcpTokens() { return new mcp_tokens_1.McpTokens(this.authRegistry()); }
|
|
215
222
|
updateSecuritySettings(operation) { return this.settings.updateSecurity(operation); }
|
|
223
|
+
/**
|
|
224
|
+
* Resets a vault by the parts the owner ticked (ENG-433): `vault.yaml`'s through `reset_settings`, then the custom
|
|
225
|
+
* agents and RSS evaluation profiles when those are ticked. Content and keys a part does not name are never touched.
|
|
226
|
+
*/
|
|
227
|
+
async resetVault(vaultId, parts) {
|
|
228
|
+
const chosen = (0, settings_reset_1.validateVaultResetParts)(parts);
|
|
229
|
+
const settingsParts = chosen.filter((part) => settings_reset_1.vaultSettingsResetParts.includes(part));
|
|
230
|
+
const settings = settingsParts.length ? await this.updateVaultSettings(vaultId, { op: 'reset_settings', parts: settingsParts }) : await this.readVaultSettings(vaultId);
|
|
231
|
+
// Safe Notes switched off is read mode, as from its own switch: the server forgets what it held in memory, never a key file.
|
|
232
|
+
if (chosen.includes('features'))
|
|
233
|
+
this.safeNoteMemories.get((await this.resolveVault(vaultId)).id)?.forget();
|
|
234
|
+
if (chosen.includes('ai-agents')) {
|
|
235
|
+
const vault = await this.resolveVault(vaultId);
|
|
236
|
+
await new registry_1.AgentProfileRegistry(vault, this.changeFeedFor(vaultId, vault)).removeAll();
|
|
237
|
+
}
|
|
238
|
+
if (chosen.includes('rss-profiles'))
|
|
239
|
+
await (await this.rssProfiles(vaultId)).removeAll();
|
|
240
|
+
return settings;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* System settings › Clear all settings (ENG-433): the installation's defaults, and every stored credential gone but
|
|
244
|
+
* share links, MCP tokens and private calendar feeds, which belong to the vaults. The password goes only when asked,
|
|
245
|
+
* and never one the environment sets. Each AI provider should be disconnected first, so its own clean-up runs.
|
|
246
|
+
*/
|
|
247
|
+
async clearInstallation(options) {
|
|
248
|
+
await this.settings.write(structuredClone(settings_registry_1.defaultAppSettings));
|
|
249
|
+
await this.authRegistry().removeRecordsExcept([share_secrets_1.shareLinksProviderId, mcp_tokens_1.mcpTokensProviderId, feed_secrets_1.calendarFeedsProviderId]);
|
|
250
|
+
if (!options.removePassword || this.authRegistry().passwordManaged)
|
|
251
|
+
return { passwordRemoved: false };
|
|
252
|
+
await this.updateSecuritySettings({ op: 'remove_password' });
|
|
253
|
+
return { passwordRemoved: true };
|
|
254
|
+
}
|
|
216
255
|
async readVaultSettings(vaultId) { return (await this.vaultSettingsRegistry(vaultId)).read(); }
|
|
217
256
|
async writeVaultSettings(vaultId, input) {
|
|
218
257
|
await Promise.all((input.agent.entityBindings ?? []).map((binding) => this.getEntity(vaultId, binding.entityId)));
|
|
@@ -278,6 +317,14 @@ class DataWorkspace {
|
|
|
278
317
|
this.vanishedListeners.add(listener);
|
|
279
318
|
return () => { this.vanishedListeners.delete(listener); };
|
|
280
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* Hears each vault unregistered, after its entry and records are gone, so a host can drop what it keeps for the vault outside
|
|
322
|
+
* this package (the API's search index, ENG-436); returns the unsubscribe.
|
|
323
|
+
*/
|
|
324
|
+
subscribeVaultRemoved(listener) {
|
|
325
|
+
this.removedListeners.add(listener);
|
|
326
|
+
return () => { this.removedListeners.delete(listener); };
|
|
327
|
+
}
|
|
281
328
|
async listTopologies(vaultId) { return this.readNotes(vaultId, (store) => store.listTopologies()); }
|
|
282
329
|
async getTopology(vaultId, topologyId) { return this.readNotes(vaultId, (store) => store.getTopology(topologyId)); }
|
|
283
330
|
async createTopology(vaultId, topologyId, source) { return this.readNotes(vaultId, (store) => store.createTopology(topologyId, source)); }
|
|
@@ -362,39 +409,75 @@ class DataWorkspace {
|
|
|
362
409
|
this.navigationCatalogs.set(vaultId, { key, catalog });
|
|
363
410
|
return catalog;
|
|
364
411
|
}
|
|
412
|
+
/**
|
|
413
|
+
* Under a vault link (ENG-430), every named path must be one the link reaches, and deleting a folder
|
|
414
|
+
* must not take with it a dot-entry the link could not reach itself: a `.git` inside a project, or
|
|
415
|
+
* hidden files it was not granted. The whole selection is checked before anything is deleted.
|
|
416
|
+
*/
|
|
417
|
+
async requireLinkDeletable(vaultId, paths) {
|
|
418
|
+
if (!(0, vault_access_1.currentVaultAccessScope)())
|
|
419
|
+
return;
|
|
420
|
+
for (const path of paths)
|
|
421
|
+
(0, vault_access_1.requireVaultPath)(path);
|
|
422
|
+
const strategy = await this.vaultStrategy(vaultId);
|
|
423
|
+
const everything = () => true;
|
|
424
|
+
const walk = async (folder) => {
|
|
425
|
+
const listing = await strategy.listDirectory(folder, { hidden: everything }).catch(() => undefined);
|
|
426
|
+
for (const entry of listing?.entries ?? []) {
|
|
427
|
+
(0, vault_access_1.requireVaultPath)(entry.path);
|
|
428
|
+
if (entry.kind === 'folder')
|
|
429
|
+
await walk(entry.path);
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
for (const path of paths)
|
|
433
|
+
await walk(path);
|
|
434
|
+
}
|
|
365
435
|
async noteTree(vaultId) { return this.sourceOperation(async () => ({ vaultId, ...await (await this.vaultStrategy(vaultId)).refresh() })); }
|
|
366
436
|
/** One folder of the vault; with `hidden`, the dot-entries the vault's Files settings show as well. */
|
|
367
|
-
async listVaultDirectory(vaultId, path = '', options = {}) {
|
|
437
|
+
async listVaultDirectory(vaultId, path = '', options = {}) { if (path)
|
|
438
|
+
(0, vault_access_1.requireVaultPath)(path); return this.sourceOperation(async () => ({ vaultId, ...await this.vaultTextFiles(vaultId).list(path, options) })); }
|
|
368
439
|
/** One existing file's whole text for the file editor: a note, an attachment, or a hidden file the vault shows. */
|
|
369
|
-
async readVaultTextFile(vaultId, path) { return this.sourceOperation(() => this.vaultTextFiles(vaultId).read(path)); }
|
|
440
|
+
async readVaultTextFile(vaultId, path) { (0, vault_access_1.requireVaultPath)(path); return this.sourceOperation(() => this.vaultTextFiles(vaultId).read(path)); }
|
|
370
441
|
/** Writes the file editor's text when the file is still at the revision it was read at; `file_changed` otherwise. */
|
|
371
|
-
async replaceVaultTextFile(vaultId, input) { return this.sourceOperation(() => this.vaultTextFiles(vaultId).replace(input)); }
|
|
442
|
+
async replaceVaultTextFile(vaultId, input) { (0, vault_access_1.requireVaultPath)(input.path); await (0, vault_access_1.revalidateVaultAccess)(); return this.sourceOperation(() => this.vaultTextFiles(vaultId).replace(input)); }
|
|
372
443
|
vaultTextFiles(vaultId) { return new vault_text_files_1.VaultTextFileUseCases({ strategy: () => this.vaultStrategy(vaultId), settings: () => this.readVaultSettings(vaultId) }); }
|
|
373
444
|
/** A new file, opened next in the file editor: any file in a hidden folder the vault shows, or a visible one that is not a note. */
|
|
374
|
-
async createVaultTextFile(vaultId, path, content = '') { return (0, vault_sdk_1.isHiddenVaultPath)(path) ? this.hiddenEntries(vaultId).createFile(path, content) : this.sourceOperation(() => this.vaultTextFiles(vaultId).create(path, content)); }
|
|
445
|
+
async createVaultTextFile(vaultId, path, content = '') { (0, vault_access_1.requireVaultPath)(path); await (0, vault_access_1.revalidateVaultAccess)(); return (0, vault_sdk_1.isHiddenVaultPath)(path) ? this.hiddenEntries(vaultId).createFile(path, content) : this.sourceOperation(() => this.vaultTextFiles(vaultId).create(path, content)); }
|
|
375
446
|
hiddenEntries(vaultId) { return new vault_hidden_entries_1.VaultHiddenEntryUseCases({ strategy: () => this.vaultStrategy(vaultId), settings: () => this.readVaultSettings(vaultId) }); }
|
|
376
447
|
async createNoteFolder(vaultId, path) { return this.readNotes(vaultId, async (store) => ({ vaultId, ...await store.createNoteFolder(path) })); }
|
|
377
448
|
async relocateNoteEntry(vaultId, sourcePath, destinationPath) { return this.readNotes(vaultId, async (store) => ({ vaultId, ...await store.relocateNoteEntry(sourcePath, destinationPath) })); }
|
|
378
449
|
async deleteNoteEntry(vaultId, path, force = false) { return this.readNotes(vaultId, async (store) => ({ vaultId, ...await store.deleteNoteEntry(path, force) })); }
|
|
379
450
|
// A hidden path, on either end of a move, changes on disk alone through `hiddenEntries`; a selection holding both kinds is split, each part answering for itself.
|
|
380
451
|
async createVaultFolder(vaultId, path) {
|
|
452
|
+
(0, vault_access_1.requireVaultPath)(path);
|
|
453
|
+
await (0, vault_access_1.revalidateVaultAccess)();
|
|
381
454
|
if ((0, vault_sdk_1.isHiddenVaultPath)(path))
|
|
382
455
|
return this.hiddenEntries(vaultId).createFolder(path);
|
|
383
456
|
await this.createNoteFolder(vaultId, path);
|
|
384
457
|
return this.vaultEntry(vaultId, path);
|
|
385
458
|
}
|
|
386
459
|
async moveVaultEntry(vaultId, sourcePath, destinationPath) {
|
|
460
|
+
(0, vault_access_1.requireVaultPath)(sourcePath);
|
|
461
|
+
(0, vault_access_1.requireVaultPath)(destinationPath);
|
|
462
|
+
await (0, vault_access_1.revalidateVaultAccess)();
|
|
387
463
|
if ((0, vault_hidden_entries_1.isHiddenMove)({ sourcePath, destinationPath })) {
|
|
388
464
|
const entry = await this.hiddenEntries(vaultId).move(sourcePath, destinationPath);
|
|
389
465
|
await this.forgetThumbnails(vaultId, [{ kind: 'moved', from: sourcePath, to: destinationPath }]);
|
|
390
466
|
await this.followHiddenInIde(vaultId, [{ kind: 'moved', from: sourcePath, to: destinationPath }]);
|
|
391
467
|
return entry;
|
|
392
468
|
}
|
|
393
|
-
|
|
469
|
+
// The answer is the moved entry alone, so the vault's tree is not built for it (a third of the request on a large vault).
|
|
470
|
+
await this.readNotes(vaultId, (store) => store.moveNoteEntry(sourcePath, destinationPath));
|
|
394
471
|
return this.vaultEntry(vaultId, destinationPath);
|
|
395
472
|
}
|
|
396
473
|
/** One lock, one storage pass; answers per move, and reads no listing back. */
|
|
397
474
|
async moveVaultEntries(vaultId, moves) {
|
|
475
|
+
// A vault link's batch is checked whole before anything moves (ENG-430).
|
|
476
|
+
for (const move of moves) {
|
|
477
|
+
(0, vault_access_1.requireVaultPath)(move.sourcePath);
|
|
478
|
+
(0, vault_access_1.requireVaultPath)(move.destinationPath);
|
|
479
|
+
}
|
|
480
|
+
await (0, vault_access_1.revalidateVaultAccess)();
|
|
398
481
|
const hidden = moves.filter(vault_hidden_entries_1.isHiddenMove);
|
|
399
482
|
const visible = moves.filter((move) => !(0, vault_hidden_entries_1.isHiddenMove)(move));
|
|
400
483
|
const indexed = visible.length ? await this.readNotes(vaultId, (store) => store.relocateNoteEntries(visible)) : { moved: [], failed: [] };
|
|
@@ -406,6 +489,8 @@ class DataWorkspace {
|
|
|
406
489
|
return { moved: [...indexed.moved, ...disk.moved], failed: [...indexed.failed, ...disk.failed] };
|
|
407
490
|
}
|
|
408
491
|
async deleteVaultEntries(vaultId, paths, force = false) {
|
|
492
|
+
await this.requireLinkDeletable(vaultId, paths);
|
|
493
|
+
await (0, vault_access_1.revalidateVaultAccess)();
|
|
409
494
|
const hidden = paths.filter(vault_sdk_1.isHiddenVaultPath);
|
|
410
495
|
const visible = paths.filter((path) => !(0, vault_sdk_1.isHiddenVaultPath)(path));
|
|
411
496
|
const indexed = visible.length ? await this.readNotes(vaultId, (store) => store.deleteNoteEntries(visible, force)) : { deleted: [], failed: [] };
|
|
@@ -418,10 +503,16 @@ class DataWorkspace {
|
|
|
418
503
|
}
|
|
419
504
|
/** Copies entries, best effort, never overwriting: a taken name lands as `name copy.ext`. A copied note is a new note in the index. */
|
|
420
505
|
async copyVaultEntries(vaultId, copies) {
|
|
506
|
+
for (const copy of copies) {
|
|
507
|
+
(0, vault_access_1.requireVaultPath)(copy.sourcePath);
|
|
508
|
+
(0, vault_access_1.requireVaultPath)(copy.destinationPath);
|
|
509
|
+
}
|
|
510
|
+
await (0, vault_access_1.revalidateVaultAccess)();
|
|
421
511
|
return new vault_entry_copy_1.VaultEntryCopyUseCases({ strategy: () => this.vaultStrategy(vaultId), settings: () => this.readVaultSettings(vaultId) }).copyMany(copies);
|
|
422
512
|
}
|
|
423
513
|
/** What deleting `paths` together would leave behind and end, without writing; the Files view confirms a selection's delete with it. */
|
|
424
514
|
async previewVaultEntriesDeletion(vaultId, paths) {
|
|
515
|
+
await this.requireLinkDeletable(vaultId, paths);
|
|
425
516
|
const hidden = paths.filter(vault_sdk_1.isHiddenVaultPath);
|
|
426
517
|
const visible = paths.filter((path) => !(0, vault_sdk_1.isHiddenVaultPath)(path));
|
|
427
518
|
if (!hidden.length)
|
|
@@ -433,9 +524,18 @@ class DataWorkspace {
|
|
|
433
524
|
const existing = new Set([...indexed.paths, ...disk.paths]);
|
|
434
525
|
return { ...indexed, paths: [...new Set(paths)].filter((path) => existing.has(path)) };
|
|
435
526
|
}
|
|
527
|
+
/** The vault's web pages as standalone documents (ENG-425, ENG-426): one builder per vault, so its builds outlive a request. */
|
|
528
|
+
standalonePages(vaultId) {
|
|
529
|
+
let pages = this.standalonePageBuilders.get(vaultId);
|
|
530
|
+
if (!pages) {
|
|
531
|
+
pages = new standalone_pages_1.StandalonePages({ files: () => this.vaultFiles(vaultId), write: async (input) => (await this.vaultStrategy(vaultId)).writeFile(input) });
|
|
532
|
+
this.standalonePageBuilders.set(vaultId, pages);
|
|
533
|
+
}
|
|
534
|
+
return pages;
|
|
535
|
+
}
|
|
436
536
|
/** The vault's non-Markdown files: resolving embeds, streaming bytes, storing uploads. */
|
|
437
537
|
vaultFiles(vaultId) {
|
|
438
|
-
return new vault_files_1.VaultFileUseCases({ strategy: () => this.vaultStrategy(vaultId), settings: () => this.readVaultSettings(vaultId) });
|
|
538
|
+
return new vault_files_1.VaultFileUseCases({ strategy: () => this.vaultStrategy(vaultId), settings: () => this.readVaultSettings(vaultId), checkNoteText: (markdown) => this.requireNoteKeys(vaultId, markdown) });
|
|
439
539
|
}
|
|
440
540
|
/**
|
|
441
541
|
* The Images picker's images and their thumbnails. `resize` draws a thumbnail; without it, cached
|
|
@@ -550,6 +650,7 @@ class DataWorkspace {
|
|
|
550
650
|
this.safeNotesRegistries.delete(vaultId);
|
|
551
651
|
this.safeNoteMemories.get(vaultId)?.close();
|
|
552
652
|
this.safeNoteMemories.delete(vaultId);
|
|
653
|
+
this.standalonePageBuilders.delete(vaultId);
|
|
553
654
|
this.activity.delete(vaultId);
|
|
554
655
|
const changes = this.changeFeeds.get(vaultId);
|
|
555
656
|
this.changeFeeds.delete(vaultId);
|
|
@@ -559,6 +660,12 @@ class DataWorkspace {
|
|
|
559
660
|
await (await strategy).close();
|
|
560
661
|
changes?.watcher.close();
|
|
561
662
|
changes?.feed.close();
|
|
663
|
+
for (const listener of this.removedListeners) {
|
|
664
|
+
try {
|
|
665
|
+
listener(vaultId);
|
|
666
|
+
}
|
|
667
|
+
catch { /* a listener's failure is its own */ }
|
|
668
|
+
}
|
|
562
669
|
}
|
|
563
670
|
async close() {
|
|
564
671
|
for (const registry of this.collabRegistries.values())
|
|
@@ -1131,9 +1238,9 @@ class DataWorkspace {
|
|
|
1131
1238
|
await this.getEntity(vaultId, noteId);
|
|
1132
1239
|
return (await this.noteFoldRegistry(vaultId)).replace(noteId, anchors);
|
|
1133
1240
|
}
|
|
1134
|
-
/** The note's folds as a share link serves them: none while the
|
|
1241
|
+
/** The note's folds as a share link serves them: none while the vault's Foldable lists switch is off. */
|
|
1135
1242
|
async sharedNoteFolds(vaultId, noteId) {
|
|
1136
|
-
if ((await this.
|
|
1243
|
+
if (!(0, note_editor_1.foldableListsEnabled)(await this.readVaultSettings(vaultId)))
|
|
1137
1244
|
return undefined;
|
|
1138
1245
|
return this.readNoteFolds(vaultId, noteId);
|
|
1139
1246
|
}
|
|
@@ -1193,6 +1300,7 @@ class DataWorkspace {
|
|
|
1193
1300
|
}
|
|
1194
1301
|
catch { /* the edit succeeded */ } },
|
|
1195
1302
|
files: () => this.vaultFiles(vaultId),
|
|
1303
|
+
standalonePage: (path) => this.standalonePages(vaultId).build(path),
|
|
1196
1304
|
fileReferences: async (path) => (await this.vaultStrategy(vaultId)).fileReferences(path),
|
|
1197
1305
|
listFolder: async (path) => (await this.vaultStrategy(vaultId)).listDirectory(path),
|
|
1198
1306
|
// The disk, through the strategy's own folder rules (a real directory at every segment, no symlink), so a folder removed outside the app ends its links before the watcher catches up.
|
|
@@ -1381,7 +1489,8 @@ class DataWorkspace {
|
|
|
1381
1489
|
id: 'vault-settings',
|
|
1382
1490
|
references: async (entityId) => (await this.vaultSettingsRegistry(vaultId)).references(entityId),
|
|
1383
1491
|
noteIds: async () => (await this.vaultSettingsRegistry(vaultId)).referencedNoteIds(),
|
|
1384
|
-
|
|
1492
|
+
// The Notes view's home note is cleared with it too, unnamed in the confirmation: the view opens the first note instead.
|
|
1493
|
+
cleanup: async (entityId) => { const registry = await this.vaultSettingsRegistry(vaultId); const references = await registry.references(entityId); await registry.removeEntityBinding(entityId); await registry.removeNotesHome(entityId); return { effects: references.map((reference) => ({ provider: 'notes', resource: { kind: 'semantic-binding', id: reference.label, noteId: entityId }, action: 'cleaned', origin: 'lifecycle-hook' })) }; }
|
|
1385
1494
|
},
|
|
1386
1495
|
{ id: 'boards', noteIds: async () => (await this.boardRegistry(vaultId)).referencedNoteIds(), cleanup: async (entityId) => { const items = await (await this.boardRegistry(vaultId)).removeNoteReferencesReport(entityId); return { effects: items.map((item) => ({ provider: 'boards', resource: { kind: 'board-card', id: item.cardRef, noteId: entityId }, action: 'cleaned', origin: 'lifecycle-hook' })) }; } },
|
|
1387
1496
|
{ id: 'calendars', noteIds: async () => (await this.calendarRegistry(vaultId)).referencedNoteIds(), cleanup: async (entityId) => { const items = await (await this.calendarRegistry(vaultId)).removeNoteReferencesReport(entityId); return { effects: items.map((item) => ({ provider: 'calendars', resource: { kind: 'calendar-entry', id: item.entryRef, noteId: entityId }, action: 'cleaned', origin: 'lifecycle-hook' })) }; } },
|
|
@@ -1425,7 +1534,7 @@ class DataWorkspace {
|
|
|
1425
1534
|
}
|
|
1426
1535
|
entityRenameHooks(vaultId) {
|
|
1427
1536
|
return [
|
|
1428
|
-
{ id: 'vault-settings', rename: async (fromId, toId) => { const registry = await this.vaultSettingsRegistry(vaultId); const references = await registry.references(fromId); await registry.renameEntityBinding(fromId, toId); return { effects: references.map((reference) => ({ provider: 'notes', resource: { kind: 'semantic-binding', id: reference.label, noteId: toId }, action: 'rewritten', origin: 'lifecycle-hook', fromId, toId })) }; } },
|
|
1537
|
+
{ id: 'vault-settings', rename: async (fromId, toId) => { const registry = await this.vaultSettingsRegistry(vaultId); const references = await registry.references(fromId); await registry.renameEntityBinding(fromId, toId); await registry.relocateNotesHome(fromId, toId); return { effects: references.map((reference) => ({ provider: 'notes', resource: { kind: 'semantic-binding', id: reference.label, noteId: toId }, action: 'rewritten', origin: 'lifecycle-hook', fromId, toId })) }; } },
|
|
1429
1538
|
{ id: 'boards', rename: async (fromId, toId) => { const items = await (await this.boardRegistry(vaultId)).renameNoteReferencesReport(fromId, toId); return { effects: items.map((item) => ({ provider: 'boards', resource: { kind: 'board-card', id: item.cardRef, noteId: toId }, action: 'rewritten', origin: 'lifecycle-hook', fromId, toId })) }; } },
|
|
1430
1539
|
{ id: 'calendars', rename: async (fromId, toId) => { const items = await (await this.calendarRegistry(vaultId)).renameNoteReferencesReport(fromId, toId); return { effects: items.map((item) => ({ provider: 'calendars', resource: { kind: 'calendar-entry', id: item.entryRef, noteId: toId }, action: 'rewritten', origin: 'lifecycle-hook', fromId, toId })) }; } },
|
|
1431
1540
|
{ id: 'matrices', rename: async (fromId, toId) => { const items = await (await this.matrixRegistry(vaultId)).renameNoteReferencesReport(fromId, toId); return { effects: items.map((item) => ({ provider: 'matrices', resource: { kind: 'matrix-card', id: item.cardRef, noteId: toId }, action: 'rewritten', origin: 'lifecycle-hook', fromId, toId })) }; } },
|
|
@@ -1437,17 +1546,19 @@ class DataWorkspace {
|
|
|
1437
1546
|
{ id: 'shares', rename: async (fromId, toId) => { const touched = await (await this.shareRegistry(vaultId)).renameNoteReferencesReport(fromId, toId); return { effects: touched.map((shareId) => ({ provider: 'shares', resource: { kind: 'share-link', id: shareId, noteId: toId }, action: 'rewritten', origin: 'lifecycle-hook', fromId, toId })) }; } }
|
|
1438
1547
|
];
|
|
1439
1548
|
}
|
|
1440
|
-
/** What holds on to a folder or file entry, named in the delete confirmation and ended by the forced delete: folder share links at or below it. The folder path stands where a note ID would. */
|
|
1549
|
+
/** What holds on to a folder or file entry, named in the delete confirmation and ended by the forced delete: folder and web page share links at or below it. The folder path stands where a note ID would. */
|
|
1441
1550
|
entryDeletionHooks(vaultId) {
|
|
1442
1551
|
return [
|
|
1443
1552
|
// Never fails the delete: `forget` swallows its own errors, and nothing holds on to a thumbnail, so the confirmation names none.
|
|
1444
1553
|
{ id: 'thumbnails', cleanup: async (path) => { await this.forgetThumbnails(vaultId, [{ kind: 'deleted', path }]); return { effects: [] }; } },
|
|
1445
1554
|
// A deleted file or folder closes in every IDE session, and a focus under it moves up.
|
|
1446
1555
|
{ id: 'ide', cleanup: async (path) => { await (await this.ideRegistry(vaultId)).removeEntry(path); return { effects: [] }; } },
|
|
1556
|
+
// A deleted folder holding the Notes view's home note clears it, as deleting the note does.
|
|
1557
|
+
{ id: 'notes-home', cleanup: async (path) => { await (await this.vaultSettingsRegistry(vaultId)).removeNotesHome(path); return { effects: [] }; } },
|
|
1447
1558
|
{
|
|
1448
1559
|
id: 'shares',
|
|
1449
1560
|
references: async (path) => (await (await this.shareRegistry(vaultId)).referencesForEntry(path)).map((share) => ({ provider: 'shares', kind: 'share-link', label: (0, share_policy_1.shareLabel)(share) })),
|
|
1450
|
-
cleanup: async (path) => { const removed = await (await this.shareRegistry(vaultId)).
|
|
1561
|
+
cleanup: async (path) => { const removed = await (await this.shareRegistry(vaultId)).removeEntryTargetsReport(path); return { effects: removed.map((shareId) => ({ provider: 'shares', resource: { kind: 'share-link', id: shareId, noteId: path }, action: 'cleaned', origin: 'lifecycle-hook' })) }; }
|
|
1451
1562
|
},
|
|
1452
1563
|
{
|
|
1453
1564
|
// A view's definition lives in its folder, so deleting the folder ends the view; the confirmation names it first.
|
|
@@ -1481,14 +1592,16 @@ class DataWorkspace {
|
|
|
1481
1592
|
}
|
|
1482
1593
|
];
|
|
1483
1594
|
}
|
|
1484
|
-
/** A moved entry carries the folder share links at or below it along, once per move, with the paths the caller named. */
|
|
1595
|
+
/** A moved entry carries the folder and web page share links at or below it along, once per move, with the paths the caller named. */
|
|
1485
1596
|
entryRelocationHooks(vaultId) {
|
|
1486
1597
|
return [
|
|
1487
1598
|
{ id: 'thumbnails', relocate: async (from, to) => { await this.forgetThumbnails(vaultId, [{ kind: 'moved', from, to }]); return { effects: [] }; } },
|
|
1488
1599
|
{ id: 'ide', relocate: async (from, to) => { await (await this.ideRegistry(vaultId)).relocateEntry(from, to); return { effects: [] }; } },
|
|
1600
|
+
// The Notes view's home note follows a moved folder that holds it, as it follows its own rename.
|
|
1601
|
+
{ id: 'notes-home', relocate: async (from, to) => { await (await this.vaultSettingsRegistry(vaultId)).relocateNotesHome(from, to); return { effects: [] }; } },
|
|
1489
1602
|
{ id: 'spaces', relocate: async (from, to) => { const touched = await (await this.spaceRegistry(vaultId)).relocateEntryReferencesReport(from, to); return { effects: touched.map((item) => ({ provider: 'spaces', resource: { kind: 'space-item', id: item.itemRef, noteId: to }, action: 'rewritten', origin: 'lifecycle-hook' })) }; } },
|
|
1490
1603
|
{ id: 'discovery', relocate: async (from, to) => { const touched = await (await this.discoveryRegistry(vaultId)).relocateFolders(from, to); return { effects: touched.map((id) => ({ provider: 'discovery', resource: { kind: 'discovery-view', id }, action: 'rewritten', origin: 'lifecycle-hook' })) }; } },
|
|
1491
|
-
{ id: 'shares', relocate: async (from, to) => { const touched = await (await this.shareRegistry(vaultId)).
|
|
1604
|
+
{ id: 'shares', relocate: async (from, to) => { const touched = await (await this.shareRegistry(vaultId)).relocateEntryTargetsReport(from, to); return { effects: touched.map((shareId) => ({ provider: 'shares', resource: { kind: 'share-link', id: shareId, noteId: to }, action: 'rewritten', origin: 'lifecycle-hook', fromId: from, toId: to })) }; } }
|
|
1492
1605
|
];
|
|
1493
1606
|
}
|
|
1494
1607
|
}
|
|
@@ -4,8 +4,12 @@ exports.defaultFeatureSwitch = exports.switchableFeatures = void 0;
|
|
|
4
4
|
exports.validateFeatureSwitch = validateFeatureSwitch;
|
|
5
5
|
// A feature whose whole vault-level configuration is whether it is on: the vocabulary the composite settings and their operations share.
|
|
6
6
|
const errors_1 = require("./errors");
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The switches a vault written before the off-by-default rule shows on once migrated. RSS, the IDE
|
|
9
|
+
* and MCP came after the rule and are never among them; neither is Notes, which became a view of its
|
|
10
|
+
* own (ENG-424) after it: the type browser it used to switch is Types.
|
|
11
|
+
*/
|
|
12
|
+
exports.switchableFeatures = ['chat', 'boards', 'calendars', 'files', 'types', 'graph'];
|
|
9
13
|
/** Every feature is off until a vault asks for it, so a new vault is quiet and turns on what it uses. */
|
|
10
14
|
exports.defaultFeatureSwitch = Object.freeze({ enabled: false });
|
|
11
15
|
function validateFeatureSwitch(value, feature) {
|
|
@@ -6,6 +6,7 @@ exports.resolveFilesSettings = resolveFilesSettings;
|
|
|
6
6
|
exports.hiddenEntryPolicy = hiddenEntryPolicy;
|
|
7
7
|
exports.protectedHiddenFolder = protectedHiddenFolder;
|
|
8
8
|
const errors_1 = require("./errors");
|
|
9
|
+
const vault_access_1 = require("./vault-access");
|
|
9
10
|
/** The largest file the file editor opens or saves: 2 MiB. */
|
|
10
11
|
exports.fileEditorMaxBytes = 2 * 1024 * 1024;
|
|
11
12
|
exports.filesSaveModes = ['explicit', 'autosave'];
|
|
@@ -29,8 +30,15 @@ function resolveFilesSettings(settings) {
|
|
|
29
30
|
const files = settings.files;
|
|
30
31
|
return { enabled: files?.enabled ?? false, showHidden: files?.showHidden ?? false, showBrian: files?.showBrian ?? false, showGit: files?.showGit ?? false, saveMode: files?.saveMode ?? 'explicit' };
|
|
31
32
|
}
|
|
32
|
-
/**
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Which dot-entries the settings let the Files view reach; `undefined` when they show none. Under a
|
|
35
|
+
* vault link (ENG-430) the link's own grant narrows them: ordinary dot-entries only when it grants
|
|
36
|
+
* hidden files, and `.brian` and `.git` never, whatever the vault shows its owner. Every raw file
|
|
37
|
+
* operation (listing, text, changes, archives, served content, images) asks this one function.
|
|
38
|
+
*/
|
|
39
|
+
function hiddenEntryPolicy(resolved) {
|
|
40
|
+
const scope = (0, vault_access_1.currentVaultAccessScope)();
|
|
41
|
+
const settings = scope ? (0, vault_access_1.linkFilesVisibility)(resolved, scope.current()) : resolved;
|
|
34
42
|
if (!settings.enabled || !settings.showHidden)
|
|
35
43
|
return undefined;
|
|
36
44
|
return (path) => {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateIdeSettings = validateIdeSettings;
|
|
4
|
+
exports.validateCodeFormatting = validateCodeFormatting;
|
|
5
|
+
// The IDE's vault settings: its switch, and how Format document lays the vault's files out (ENG-433: a feature's settings are the vault's).
|
|
6
|
+
const errors_1 = require("../errors");
|
|
7
|
+
const invalid = (message, field) => new errors_1.GraphAgentError('invalid_ide_settings', message, field ? { field } : {});
|
|
8
|
+
const extensionPattern = /^[a-z0-9][a-z0-9+_-]{0,15}$/;
|
|
9
|
+
function validateIdeSettings(value) {
|
|
10
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
11
|
+
throw invalid('ide must be an object.');
|
|
12
|
+
const { enabled, formatting } = value;
|
|
13
|
+
if (typeof enabled !== 'boolean')
|
|
14
|
+
throw invalid('ide enabled must be true or false.', 'enabled');
|
|
15
|
+
const rules = formatting === undefined ? undefined : validateCodeFormatting(formatting);
|
|
16
|
+
return { enabled, ...(rules && Object.keys(rules).length ? { formatting: rules } : {}) };
|
|
17
|
+
}
|
|
18
|
+
function validateCodeFormatting(value) {
|
|
19
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
20
|
+
throw invalid('ide.formatting must be an object.', 'formatting');
|
|
21
|
+
const { formatOnSave, defaults, byExtension } = value;
|
|
22
|
+
if (formatOnSave !== undefined && typeof formatOnSave !== 'boolean')
|
|
23
|
+
throw invalid('ide.formatting.formatOnSave must be true or false.', 'formatting');
|
|
24
|
+
let extensions;
|
|
25
|
+
if (byExtension !== undefined) {
|
|
26
|
+
if (!byExtension || typeof byExtension !== 'object' || Array.isArray(byExtension))
|
|
27
|
+
throw invalid('ide.formatting.byExtension must map file extensions to rules.', 'formatting');
|
|
28
|
+
extensions = {};
|
|
29
|
+
for (const [extension, rules] of Object.entries(byExtension)) {
|
|
30
|
+
if (!extensionPattern.test(extension))
|
|
31
|
+
throw invalid(`ide.formatting.byExtension: '${extension}' is not a file extension; name it in lowercase without the dot, such as css.`, 'formatting');
|
|
32
|
+
extensions[extension] = readFormatRules(rules, `ide.formatting.byExtension.${extension}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return { ...(formatOnSave === undefined ? {} : { formatOnSave }), ...(defaults === undefined ? {} : { defaults: readFormatRules(defaults, 'ide.formatting.defaults') }), ...(extensions && Object.keys(extensions).length ? { byExtension: extensions } : {}) };
|
|
36
|
+
}
|
|
37
|
+
function readFormatRules(value, at) {
|
|
38
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
39
|
+
throw invalid(`${at} must be an object of formatting rules.`, 'formatting');
|
|
40
|
+
const rules = value;
|
|
41
|
+
const out = {};
|
|
42
|
+
for (const key of ['useTabs', 'singleQuote', 'semi']) {
|
|
43
|
+
if (rules[key] === undefined)
|
|
44
|
+
continue;
|
|
45
|
+
if (typeof rules[key] !== 'boolean')
|
|
46
|
+
throw invalid(`${at}.${key} must be true or false.`, 'formatting');
|
|
47
|
+
out[key] = rules[key];
|
|
48
|
+
}
|
|
49
|
+
const numbers = [['tabWidth', 1, 16], ['printWidth', 20, 400]];
|
|
50
|
+
for (const [key, min, max] of numbers) {
|
|
51
|
+
if (rules[key] === undefined)
|
|
52
|
+
continue;
|
|
53
|
+
if (typeof rules[key] !== 'number' || !Number.isInteger(rules[key]) || rules[key] < min || rules[key] > max)
|
|
54
|
+
throw invalid(`${at}.${key} must be a whole number from ${min} to ${max}.`, 'formatting');
|
|
55
|
+
out[key] = rules[key];
|
|
56
|
+
}
|
|
57
|
+
return out;
|
|
58
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateIdeSettings = exports.validateCodeFormatting = void 0;
|
|
4
|
+
var ide_settings_1 = require("./ide-settings");
|
|
5
|
+
Object.defineProperty(exports, "validateCodeFormatting", { enumerable: true, get: function () { return ide_settings_1.validateCodeFormatting; } });
|
|
6
|
+
Object.defineProperty(exports, "validateIdeSettings", { enumerable: true, get: function () { return ide_settings_1.validateIdeSettings; } });
|
|
@@ -108,7 +108,7 @@ function readTabs(value) {
|
|
|
108
108
|
if (tab.view !== undefined && tab.view !== 'preview' && tab.view !== 'source')
|
|
109
109
|
throw invalid(`Tab ${index + 1} of an IDE layout shows its file as 'source' or 'preview'.`);
|
|
110
110
|
const path = readPath(tab.path, `Tab ${index + 1} of an IDE layout`);
|
|
111
|
-
return { path, ...(tab.preview ? { preview: true } : {}), ...(tab.view === 'preview' ? { view:
|
|
111
|
+
return { path, ...(tab.preview ? { preview: true } : {}), ...(tab.view === 'preview' || tab.view === 'source' ? { view: tab.view } : {}) };
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
/** One tab per path, kept where it first stood and kept for good if any copy of it was; then at most one preview, the first. */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.securityStatus = exports.hashPassword = exports.createJwtSecret = exports.createInitialSecuritySettings = exports.AuthRegistry = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.validateNoteQuery = exports.maximumNoteQueryLimit = exports.widgetTypePattern = exports.maximumWidgetTitleLength = exports.maximumRecentTabLabelLength = exports.maximumMobileWidgetRows = exports.dashboardWidgetTypes = exports.dashboardGridColumns = exports.shareSaveCeiling = exports.resolveShareSaveLimit = exports.formatByteSize = exports.defaultShareSaveBytes = exports.shareScopes = exports.pathWithinFolder = exports.maxShareDescriptionLength = exports.maxShareAddTypes = exports.maxSafeNoteServerKeys = exports.maxSafeNoteCopyBytes = exports.SafeNoteMemory = exports.maxNoteKeysPerWrite = exports.siblingPlacement = exports.outdentPlacement = exports.insertRow = exports.indentPlacement = exports.isNumericColumn = exports.colorValuePattern = exports.defaultDiscoveryExport = exports.DiscoveryUseCases = exports.tabKey = exports.spaceObjectTypes = exports.isObjectType = exports.rssJudgeSystemPrompt = exports.rssJudgeOutputSchema = exports.rssJudgeBatchSize = exports.rssJudgeBatchMessage = exports.readRssJudgeBatch = exports.extractJsonObject = exports.
|
|
6
|
-
exports.testImapConnection = exports.routeUsingStrategies = exports.selectAgentProfile = exports.routeProfileWithLlm = exports.boundedRoutingState = exports.defaultAgentRoutingSettings = exports.availableAgentTools = exports.instructionRuleCatalog = exports.serializeAgentProfile = exports.agentProfileIdPattern = exports.AgentProfileRegistry = exports.journalSupportMessages = exports.journalReflectionSafetyFallback = exports.journalReflectionInput = exports.validateJournalReflectionResult = exports.journalReflectionPromptVersion = exports.journalReflectionPrompt = exports.validateActiveJournalSettings = exports.defaultActiveJournalSettings = exports.projectAgentRunHistory = exports.isAgentRunActive = exports.agentRunIdPattern = exports.AgentRunRegistry = exports.NoteCollabError = exports.defaultVaultNoteKeys = exports.normalizeVaultPath = exports.normalizeNodeId = exports.VaultSdkError = exports.parseChangeSequence = exports.ownWriteWindowMs = exports.VaultChangeFeed = exports.inferFeatureId = exports.isEmptyVaultFolder = exports.installDemoInto = exports.demoSummary = exports.demoManifestUrl = exports.DemoVaultCatalog = exports.publicNetworkFetch = exports.fetchLinkPreview = exports.encodePng = exports.maximumBookmarkUrlLength = exports.maximumBookmarkTitleLength = exports.maximumBookmarkIconLength = exports.isSurfaceBookmark =
|
|
3
|
+
exports.securityStatus = exports.hashPassword = exports.createJwtSecret = exports.createInitialSecuritySettings = exports.AuthRegistry = exports.workspaceTabStyles = exports.noteEditorOpenLinksModes = exports.navigationItemIds = exports.mobilePrimaryLimit = exports.defaultNavigationSettings = exports.defaultLoggingSettings = exports.defaultLogStreamLoginSettings = exports.defaultLogStreamCallsSettings = exports.logRotationPolicies = exports.defaultAppSettings = exports.GraphAgentError = exports.resolveOccurrence = exports.parseDuration = exports.formatDuration = exports.durationUnits = exports.durationPattern = exports.maximumFeedRefreshMinutes = exports.maximumCalendarFeedSources = exports.maximumCalendarFeedNameLength = exports.calendarFeedSourceIdPattern = exports.calendarEntryTargetKey = exports.calendarEntryTarget = exports.calendarEntryObjectKinds = exports.maximumFeedLinkUidLength = exports.maximumFeedLinkRecurrenceIdLength = exports.calendarWeekdays = exports.maximumCalendarRules = exports.maximumCalendarRuleNameLength = exports.calendarRulePropertyPattern = exports.calendarRuleColorPattern = exports.applyBoardMutations = exports.boardSortCardFields = exports.boardRemoveCardNoteActions = exports.boardCardTitleLines = exports.noteFilterOperators = exports.noteFilterKeyPattern = exports.noteFilterFields = exports.maximumNoteFilterValues = exports.maximumNoteFilterRules = exports.matchesNoteFilter = exports.maximumCardFields = exports.cardRenders = exports.cardFieldNamePattern = exports.DataWorkspace = exports.createGraphAgent = void 0;
|
|
4
|
+
exports.PhaseTimer = exports.journalMetricRules = exports.journalMetricKeys = exports.notesPreviewUpdates = exports.vaultResetParts = exports.resolveFilesSettings = exports.validateRecordingSettings = exports.resolveRecordingSettings = exports.recordingSourceKinds = exports.maxRecordingStreams = exports.maxRecordingChunkBytes = exports.defaultRecordingSettings = exports.defaultRecordingDefaults = exports.maxImagePageSize = exports.defaultImagePageSize = exports.formatBytes = exports.fileMimeType = exports.validateAttachmentSettings = exports.resolveAttachmentSettings = exports.defaultAttachmentSettings = exports.reservedVaultIds = exports.isVaultId = exports.slug128Description = exports.sessionIdPattern = exports.columnIdPattern = exports.vaultIdPattern = exports.resolveClientTimeContext = exports.validateScreenContext = exports.safeBlockDisplayDefaults = exports.safeNotesSharingModes = exports.resolveSafeNotesSettings = exports.passwordLengthRange = exports.defaultPasswordGenerator = exports.defaultSafeNotesSettings = exports.defaultShareSettings = exports.defaultSpaceSettings = exports.defaultDashboardSettings = exports.defaultMatrixSettings = exports.resolveVersioningSettings = exports.defaultVersioningSettings = exports.resolveJournalSettings = exports.journalFontFamilies = exports.defaultJournalSettings = exports.defaultDailyNotesSettings = exports.resolveVaultNoteKeys = exports.defaultFeatureSwitch = exports.isFeatureEnabled = exports.VaultSettingsRegistry = exports.verifyPassword = exports.securityTokenTtlSeconds = void 0;
|
|
5
|
+
exports.isNoteBookmark = exports.isLinkBookmark = exports.systemClock = exports.clockFromIso = exports.validateNoteQuery = exports.maximumNoteQueryLimit = exports.widgetTypePattern = exports.maximumWidgetTitleLength = exports.maximumRecentTabLabelLength = exports.maximumMobileWidgetRows = exports.dashboardWidgetTypes = exports.dashboardGridColumns = exports.shareSaveCeiling = exports.resolveShareSaveLimit = exports.formatByteSize = exports.defaultShareSaveBytes = exports.standaloneFileName = exports.shareScopes = exports.pathWithinFolder = exports.maxShareDescriptionLength = exports.maxShareAddTypes = exports.maxSafeNoteServerKeys = exports.maxSafeNoteCopyBytes = exports.SafeNoteMemory = exports.maxNoteKeysPerWrite = exports.siblingPlacement = exports.outdentPlacement = exports.insertRow = exports.indentPlacement = exports.isNumericColumn = exports.colorValuePattern = exports.defaultDiscoveryExport = exports.DiscoveryUseCases = exports.tabKey = exports.spaceObjectTypes = exports.isObjectType = exports.rssJudgeSystemPrompt = exports.rssJudgeOutputSchema = exports.rssJudgeBatchSize = exports.rssJudgeBatchMessage = exports.readRssJudgeBatch = exports.extractJsonObject = exports.rssTagQuestion = exports.rssProfileJudgeRequest = exports.replaceNoteFolds = exports.maxFoldAnchorsPerNote = exports.maximumMatrixColorRules = exports.matrixQuadrant = exports.defaultMatrixDefinitionSettings = exports.defaultMatrixAxes = void 0;
|
|
6
|
+
exports.linkSeesChange = exports.linkReachesContent = exports.enabledOwnerOnlyFeatures = exports.currentVaultAccessScope = exports.authorizeSettingsOperation = exports.authorizeLinkRoute = exports.testImapConnection = exports.routeUsingStrategies = exports.selectAgentProfile = exports.routeProfileWithLlm = exports.boundedRoutingState = exports.defaultAgentRoutingSettings = exports.availableAgentTools = exports.instructionRuleCatalog = exports.serializeAgentProfile = exports.agentProfileIdPattern = exports.AgentProfileRegistry = exports.journalSupportMessages = exports.journalReflectionSafetyFallback = exports.journalReflectionInput = exports.validateJournalReflectionResult = exports.journalReflectionPromptVersion = exports.journalReflectionPrompt = exports.validateActiveJournalSettings = exports.defaultActiveJournalSettings = exports.projectAgentRunHistory = exports.isAgentRunActive = exports.agentRunIdPattern = exports.AgentRunRegistry = exports.NoteCollabError = exports.defaultVaultNoteKeys = exports.normalizeVaultPath = exports.normalizeNodeId = exports.VaultSdkError = exports.parseChangeSequence = exports.ownWriteWindowMs = exports.VaultChangeFeed = exports.inferFeatureId = exports.isEmptyVaultFolder = exports.installDemoInto = exports.demoSummary = exports.demoManifestUrl = exports.DemoVaultCatalog = exports.publicNetworkFetch = exports.fetchLinkPreview = exports.encodePng = exports.maximumBookmarkUrlLength = exports.maximumBookmarkTitleLength = exports.maximumBookmarkIconLength = exports.isSurfaceBookmark = void 0;
|
|
7
|
+
exports.vaultPathVisible = exports.vaultLinkPathAccess = exports.VaultAccessDeniedError = exports.runWithVaultAccess = exports.revalidateVaultAccess = exports.resolveVaultLinkAccess = exports.requireVaultPath = exports.narrowVaultSettingsForLink = exports.linkSeesProvider = void 0;
|
|
7
8
|
var graph_agent_1 = require("./graph-agent");
|
|
8
9
|
Object.defineProperty(exports, "createGraphAgent", { enumerable: true, get: function () { return graph_agent_1.createGraphAgent; } });
|
|
9
10
|
var data_workspace_1 = require("./data-workspace");
|
|
@@ -54,9 +55,7 @@ Object.defineProperty(exports, "resolveOccurrence", { enumerable: true, get: fun
|
|
|
54
55
|
var errors_1 = require("./errors");
|
|
55
56
|
Object.defineProperty(exports, "GraphAgentError", { enumerable: true, get: function () { return errors_1.GraphAgentError; } });
|
|
56
57
|
var settings_registry_1 = require("./settings-registry");
|
|
57
|
-
Object.defineProperty(exports, "appearanceThemes", { enumerable: true, get: function () { return settings_registry_1.appearanceThemes; } });
|
|
58
58
|
Object.defineProperty(exports, "defaultAppSettings", { enumerable: true, get: function () { return settings_registry_1.defaultAppSettings; } });
|
|
59
|
-
Object.defineProperty(exports, "noteEditorOpenLinksModes", { enumerable: true, get: function () { return settings_registry_1.noteEditorOpenLinksModes; } });
|
|
60
59
|
Object.defineProperty(exports, "logRotationPolicies", { enumerable: true, get: function () { return settings_registry_1.logRotationPolicies; } });
|
|
61
60
|
Object.defineProperty(exports, "defaultLogStreamCallsSettings", { enumerable: true, get: function () { return settings_registry_1.defaultLogStreamCallsSettings; } });
|
|
62
61
|
Object.defineProperty(exports, "defaultLogStreamLoginSettings", { enumerable: true, get: function () { return settings_registry_1.defaultLogStreamLoginSettings; } });
|
|
@@ -65,6 +64,9 @@ var navigation_settings_1 = require("./navigation-settings");
|
|
|
65
64
|
Object.defineProperty(exports, "defaultNavigationSettings", { enumerable: true, get: function () { return navigation_settings_1.defaultNavigationSettings; } });
|
|
66
65
|
Object.defineProperty(exports, "mobilePrimaryLimit", { enumerable: true, get: function () { return navigation_settings_1.mobilePrimaryLimit; } });
|
|
67
66
|
Object.defineProperty(exports, "navigationItemIds", { enumerable: true, get: function () { return navigation_settings_1.navigationItemIds; } });
|
|
67
|
+
var note_editor_1 = require("./note-editor");
|
|
68
|
+
Object.defineProperty(exports, "noteEditorOpenLinksModes", { enumerable: true, get: function () { return note_editor_1.noteEditorOpenLinksModes; } });
|
|
69
|
+
Object.defineProperty(exports, "workspaceTabStyles", { enumerable: true, get: function () { return note_editor_1.workspaceTabStyles; } });
|
|
68
70
|
var auth_registry_1 = require("./auth-registry");
|
|
69
71
|
Object.defineProperty(exports, "AuthRegistry", { enumerable: true, get: function () { return auth_registry_1.AuthRegistry; } });
|
|
70
72
|
var security_settings_1 = require("./security-settings");
|
|
@@ -136,6 +138,10 @@ Object.defineProperty(exports, "resolveRecordingSettings", { enumerable: true, g
|
|
|
136
138
|
Object.defineProperty(exports, "validateRecordingSettings", { enumerable: true, get: function () { return recordings_1.validateRecordingSettings; } });
|
|
137
139
|
var files_settings_1 = require("./files-settings");
|
|
138
140
|
Object.defineProperty(exports, "resolveFilesSettings", { enumerable: true, get: function () { return files_settings_1.resolveFilesSettings; } });
|
|
141
|
+
var settings_reset_1 = require("./settings-reset");
|
|
142
|
+
Object.defineProperty(exports, "vaultResetParts", { enumerable: true, get: function () { return settings_reset_1.vaultResetParts; } });
|
|
143
|
+
var note_key_settings_2 = require("./note-key-settings");
|
|
144
|
+
Object.defineProperty(exports, "notesPreviewUpdates", { enumerable: true, get: function () { return note_key_settings_2.notesPreviewUpdates; } });
|
|
139
145
|
var journal_stats_1 = require("./journal-stats");
|
|
140
146
|
Object.defineProperty(exports, "journalMetricKeys", { enumerable: true, get: function () { return journal_stats_1.journalMetricKeys; } });
|
|
141
147
|
Object.defineProperty(exports, "journalMetricRules", { enumerable: true, get: function () { return journal_stats_1.journalMetricRules; } });
|
|
@@ -150,15 +156,8 @@ var note_fold_model_1 = require("./note-fold-model");
|
|
|
150
156
|
Object.defineProperty(exports, "maxFoldAnchorsPerNote", { enumerable: true, get: function () { return note_fold_model_1.maxFoldAnchorsPerNote; } });
|
|
151
157
|
Object.defineProperty(exports, "replaceNoteFolds", { enumerable: true, get: function () { return note_fold_model_1.replaceNoteFolds; } });
|
|
152
158
|
var rss_1 = require("./rss");
|
|
153
|
-
Object.defineProperty(exports, "defaultRssProfileSample", { enumerable: true, get: function () { return rss_1.defaultRssProfileSample; } });
|
|
154
|
-
Object.defineProperty(exports, "defaultRssTagThreshold", { enumerable: true, get: function () { return rss_1.defaultRssTagThreshold; } });
|
|
155
|
-
Object.defineProperty(exports, "maximumRssProfileContext", { enumerable: true, get: function () { return rss_1.maximumRssProfileContext; } });
|
|
156
|
-
Object.defineProperty(exports, "maximumRssProfileSample", { enumerable: true, get: function () { return rss_1.maximumRssProfileSample; } });
|
|
157
|
-
Object.defineProperty(exports, "readRssJudgeAnswers", { enumerable: true, get: function () { return rss_1.readRssJudgeAnswers; } });
|
|
158
159
|
Object.defineProperty(exports, "rssProfileJudgeRequest", { enumerable: true, get: function () { return rss_1.rssProfileJudgeRequest; } });
|
|
159
|
-
Object.defineProperty(exports, "rssProfileOutputSchema", { enumerable: true, get: function () { return rss_1.rssProfileOutputSchema; } });
|
|
160
160
|
Object.defineProperty(exports, "rssTagQuestion", { enumerable: true, get: function () { return rss_1.rssTagQuestion; } });
|
|
161
|
-
Object.defineProperty(exports, "RssProfileUseCases", { enumerable: true, get: function () { return rss_1.RssProfileUseCases; } });
|
|
162
161
|
Object.defineProperty(exports, "extractJsonObject", { enumerable: true, get: function () { return rss_1.extractJsonObject; } });
|
|
163
162
|
Object.defineProperty(exports, "readRssJudgeBatch", { enumerable: true, get: function () { return rss_1.readRssJudgeBatch; } });
|
|
164
163
|
Object.defineProperty(exports, "rssJudgeBatchMessage", { enumerable: true, get: function () { return rss_1.rssJudgeBatchMessage; } });
|
|
@@ -194,6 +193,8 @@ Object.defineProperty(exports, "maxShareAddTypes", { enumerable: true, get: func
|
|
|
194
193
|
Object.defineProperty(exports, "maxShareDescriptionLength", { enumerable: true, get: function () { return share_policy_1.maxShareDescriptionLength; } });
|
|
195
194
|
Object.defineProperty(exports, "pathWithinFolder", { enumerable: true, get: function () { return share_policy_1.pathWithinFolder; } });
|
|
196
195
|
Object.defineProperty(exports, "shareScopes", { enumerable: true, get: function () { return share_policy_1.shareScopes; } });
|
|
196
|
+
var standalone_pages_1 = require("./standalone-pages");
|
|
197
|
+
Object.defineProperty(exports, "standaloneFileName", { enumerable: true, get: function () { return standalone_pages_1.standaloneFileName; } });
|
|
197
198
|
var share_save_limit_1 = require("./share-save-limit");
|
|
198
199
|
Object.defineProperty(exports, "defaultShareSaveBytes", { enumerable: true, get: function () { return share_save_limit_1.defaultShareSaveBytes; } });
|
|
199
200
|
Object.defineProperty(exports, "formatByteSize", { enumerable: true, get: function () { return share_save_limit_1.formatByteSize; } });
|
|
@@ -281,3 +282,19 @@ var strategy_router_1 = require("./agent-profiles/strategy-router");
|
|
|
281
282
|
Object.defineProperty(exports, "routeUsingStrategies", { enumerable: true, get: function () { return strategy_router_1.routeUsingStrategies; } });
|
|
282
283
|
var imap_1 = require("./imap");
|
|
283
284
|
Object.defineProperty(exports, "testImapConnection", { enumerable: true, get: function () { return imap_1.testImapConnection; } });
|
|
285
|
+
var vault_access_1 = require("./vault-access");
|
|
286
|
+
Object.defineProperty(exports, "authorizeLinkRoute", { enumerable: true, get: function () { return vault_access_1.authorizeLinkRoute; } });
|
|
287
|
+
Object.defineProperty(exports, "authorizeSettingsOperation", { enumerable: true, get: function () { return vault_access_1.authorizeSettingsOperation; } });
|
|
288
|
+
Object.defineProperty(exports, "currentVaultAccessScope", { enumerable: true, get: function () { return vault_access_1.currentVaultAccessScope; } });
|
|
289
|
+
Object.defineProperty(exports, "enabledOwnerOnlyFeatures", { enumerable: true, get: function () { return vault_access_1.enabledOwnerOnlyFeatures; } });
|
|
290
|
+
Object.defineProperty(exports, "linkReachesContent", { enumerable: true, get: function () { return vault_access_1.linkReachesContent; } });
|
|
291
|
+
Object.defineProperty(exports, "linkSeesChange", { enumerable: true, get: function () { return vault_access_1.linkSeesChange; } });
|
|
292
|
+
Object.defineProperty(exports, "linkSeesProvider", { enumerable: true, get: function () { return vault_access_1.linkSeesProvider; } });
|
|
293
|
+
Object.defineProperty(exports, "narrowVaultSettingsForLink", { enumerable: true, get: function () { return vault_access_1.narrowVaultSettingsForLink; } });
|
|
294
|
+
Object.defineProperty(exports, "requireVaultPath", { enumerable: true, get: function () { return vault_access_1.requireVaultPath; } });
|
|
295
|
+
Object.defineProperty(exports, "resolveVaultLinkAccess", { enumerable: true, get: function () { return vault_access_1.resolveVaultLinkAccess; } });
|
|
296
|
+
Object.defineProperty(exports, "revalidateVaultAccess", { enumerable: true, get: function () { return vault_access_1.revalidateVaultAccess; } });
|
|
297
|
+
Object.defineProperty(exports, "runWithVaultAccess", { enumerable: true, get: function () { return vault_access_1.runWithVaultAccess; } });
|
|
298
|
+
Object.defineProperty(exports, "VaultAccessDeniedError", { enumerable: true, get: function () { return vault_access_1.VaultAccessDeniedError; } });
|
|
299
|
+
Object.defineProperty(exports, "vaultLinkPathAccess", { enumerable: true, get: function () { return vault_access_1.vaultLinkPathAccess; } });
|
|
300
|
+
Object.defineProperty(exports, "vaultPathVisible", { enumerable: true, get: function () { return vault_access_1.vaultPathVisible; } });
|
|
@@ -9,6 +9,7 @@ exports.journalReflectionSafetyFallback = journalReflectionSafetyFallback;
|
|
|
9
9
|
exports.journalReflectionProse = journalReflectionProse;
|
|
10
10
|
// Active journal policy: settings, request bounds and the one versioned instruction.
|
|
11
11
|
const errors_1 = require("./errors");
|
|
12
|
+
const types_1 = require("./types");
|
|
12
13
|
exports.defaultActiveJournalSettings = Object.freeze({ enabled: false, historyCount: 7 });
|
|
13
14
|
exports.journalReflectionPromptVersion = 4;
|
|
14
15
|
exports.maxJournalReflectionCharacters = 32_000;
|
|
@@ -26,7 +27,7 @@ function validateActiveJournalSettings(value) {
|
|
|
26
27
|
let model;
|
|
27
28
|
if (v.model !== undefined) {
|
|
28
29
|
const m = v.model;
|
|
29
|
-
if (!m || typeof m !== 'object' || Array.isArray(m) || Object.keys(m).some((k) => !['providerId', 'modelId', 'reasoningEffort'].includes(k)) || typeof m.providerId !== 'string' || !m.providerId.trim() || m.providerId.length > 120 || typeof m.modelId !== 'string' || !m.modelId.trim() || m.modelId.length > 200 || (m.reasoningEffort !== undefined && !
|
|
30
|
+
if (!m || typeof m !== 'object' || Array.isArray(m) || Object.keys(m).some((k) => !['providerId', 'modelId', 'reasoningEffort'].includes(k)) || typeof m.providerId !== 'string' || !m.providerId.trim() || m.providerId.length > 120 || typeof m.modelId !== 'string' || !m.modelId.trim() || m.modelId.length > 200 || (m.reasoningEffort !== undefined && !(0, types_1.isModelReasoningEffort)(m.reasoningEffort)))
|
|
30
31
|
throw invalid('Choose a valid provider and model.');
|
|
31
32
|
model = { providerId: m.providerId, modelId: m.modelId, ...(m.reasoningEffort ? { reasoningEffort: m.reasoningEffort } : {}) };
|
|
32
33
|
}
|
|
@@ -100,8 +100,17 @@ class LockedGraphStore {
|
|
|
100
100
|
noteTree() { return this.lock.run(() => this.store.noteTree()); }
|
|
101
101
|
createNoteFolder(path) { return this.lock.run(() => this.store.createNoteFolder(path)); }
|
|
102
102
|
/** The per-note rename hooks run for every note the move renamed; the entry hooks run once, with the paths the caller named, so a folder link can follow its folder. */
|
|
103
|
-
relocateNoteEntry(sourcePath, destinationPath) { return this.lock.run(async () =>
|
|
104
|
-
|
|
103
|
+
relocateNoteEntry(sourcePath, destinationPath) { return this.lock.run(async () => (await this.relocate(sourcePath, destinationPath, true)).tree); }
|
|
104
|
+
/** The same move for a caller that reads no tree back, such as the explorer's move and the agent's: the vault's whole tree is not walked for an answer nobody reads. */
|
|
105
|
+
moveNoteEntry(sourcePath, destinationPath) { return this.lock.run(async () => { await this.relocate(sourcePath, destinationPath, false); }); }
|
|
106
|
+
async relocate(sourcePath, destinationPath, tree) {
|
|
107
|
+
const result = await this.store.relocateNoteEntry(sourcePath, destinationPath, { tree });
|
|
108
|
+
const renames = result.renames ?? (result.renamed ? [result.renamed] : []);
|
|
109
|
+
await this.cleanupRenamedEntities(renames);
|
|
110
|
+
if (sourcePath !== destinationPath)
|
|
111
|
+
await this.relocateEntry(sourcePath, destinationPath);
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
105
114
|
/**
|
|
106
115
|
* Moves a selection in one storage pass under one lock. Each renamed note runs only the rename
|
|
107
116
|
* hooks whose documents name it, and each move runs the entry hooks once with the paths asked; a
|