braian 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/braian.mjs +2 -0
- package/bin/node-version.mjs +72 -0
- package/dist/agent/graph-agent.service.js +43 -0
- package/dist/app.module.js +2 -0
- package/dist/auth/auth.controller.js +2 -2
- package/dist/auth/auth.guard.js +34 -5
- package/dist/auth/auth.module.js +13 -2
- package/dist/auth/auth.service.js +8 -2
- package/dist/auth/link-route-policies.js +267 -0
- package/dist/auth/link-route-policy.js +27 -0
- package/dist/auth/vault-access-denied.filter.js +30 -0
- package/dist/auth/vault-access.interceptor.js +45 -0
- package/dist/auth/vault-link-principal.js +15 -0
- package/dist/auth/vault-link-sessions.service.js +186 -0
- package/dist/bootstrap.js +6 -1
- package/dist/collab/collab.service.js +12 -2
- package/dist/desktop/exposure.js +7 -1
- package/dist/entity/entity.controller.js +9 -1
- package/dist/events/vault-events.service.js +17 -4
- package/dist/files/dto/vault-files.dto.js +113 -6
- package/dist/files/file-url-signer.js +37 -11
- package/dist/files/files-http-error.js +1 -1
- package/dist/files/vault-file-archive.service.js +19 -4
- package/dist/files/vault-file-content.controller.js +29 -1
- package/dist/files/vault-file-content.service.js +18 -2
- package/dist/http/api-controllers.js +6 -0
- package/dist/http/log-redaction.js +23 -0
- package/dist/http/published-page-address.js +58 -0
- package/dist/http/request-guards.js +51 -1
- package/dist/http/security-headers.js +2 -1
- package/dist/journal/active-journal.dto.js +4 -3
- package/dist/logging/logging.middleware.js +3 -3
- package/dist/navigation/navigation.service.js +16 -1
- package/dist/providers/claude-messages-model.js +2 -2
- package/dist/providers/model-provider.service.js +71 -8
- package/dist/providers/provider-catalog-storage.js +4 -3
- package/dist/providers/provider-model-catalog.js +46 -0
- package/dist/providers/provider.controller.js +83 -0
- package/dist/rss/rss-profiles.dto.js +4 -3
- package/dist/search/search-database.service.js +40 -24
- package/dist/search/search-embedding-settings.controller.js +82 -0
- package/dist/search/search-embedding.service.js +33 -28
- package/dist/search/search-index-health.js +1 -1
- package/dist/search/search-sync.service.js +8 -0
- package/dist/search/search.controller.js +34 -54
- package/dist/search/search.module.js +3 -3
- package/dist/sessions/agent-runs.controller.js +3 -3
- package/dist/sessions/dto/graph-session.dto.js +6 -5
- package/dist/sessions/sessions.service.js +33 -1
- package/dist/settings/settings.controller.js +11 -0
- package/dist/settings/settings.dto.js +29 -24
- package/dist/settings/settings.service.js +6 -0
- package/dist/shares/share-http-error.js +2 -2
- package/dist/shares/share.dto.js +74 -16
- package/dist/shares/shared-webpage-headers.js +45 -0
- package/dist/shares/shared-webpage.controller.js +179 -0
- package/dist/shares/shares.controller.js +3 -3
- package/dist/shares/shares.module.js +2 -1
- package/dist/shares/shares.service.js +11 -4
- package/dist/sqlite-files/vault-sqlite.service.js +1 -0
- package/dist/vault-access/vault-access.controller.js +73 -0
- package/dist/vault-access/vault-access.dto.js +28 -0
- package/dist/vault-access/vault-access.module.js +19 -0
- package/dist/vault-access/vault-access.service.js +49 -0
- package/dist/vaults/vault.controller.js +20 -0
- package/dist/vaults/vault.dto.js +114 -50
- package/dist/vaults/vaults.service.js +30 -2
- package/dist/versioning/versioning.service.js +47 -8
- package/node_modules/@braian/ai-providers/dist/index.js +10 -3
- package/node_modules/@braian/ai-providers/dist/openrouter-catalog.js +57 -0
- package/node_modules/@braian/ai-providers/dist/provider-catalog.js +47 -2
- package/node_modules/@braian/ai-providers/dist/providers-models.js +27 -7
- package/node_modules/@braian/graph-agent/assets/agent-instructions/default/26-schema.md +1 -1
- package/node_modules/@braian/graph-agent/dist/agent-features.js +1 -1
- package/node_modules/@braian/graph-agent/dist/agent-profiles/registry.js +9 -0
- package/node_modules/@braian/graph-agent/dist/agent-runs/run-registry.js +1 -1
- package/node_modules/@braian/graph-agent/dist/auth-registry.js +29 -0
- package/node_modules/@braian/graph-agent/dist/boards/boards-settings.js +20 -0
- package/node_modules/@braian/graph-agent/dist/boards/index.js +5 -0
- package/node_modules/@braian/graph-agent/dist/data-workspace.js +127 -14
- package/node_modules/@braian/graph-agent/dist/feature-switch.js +6 -2
- package/node_modules/@braian/graph-agent/dist/files-settings.js +10 -2
- package/node_modules/@braian/graph-agent/dist/ide/ide-settings.js +58 -0
- package/node_modules/@braian/graph-agent/dist/ide/index.js +6 -0
- package/node_modules/@braian/graph-agent/dist/ide-layout.js +1 -1
- package/node_modules/@braian/graph-agent/dist/index.js +30 -13
- package/node_modules/@braian/graph-agent/dist/journal-reflection.js +2 -1
- package/node_modules/@braian/graph-agent/dist/locked-graph-store.js +11 -2
- package/node_modules/@braian/graph-agent/dist/mentioned-notes-input.js +1 -1
- package/node_modules/@braian/graph-agent/dist/navigation-settings.js +20 -14
- package/node_modules/@braian/graph-agent/dist/note-collab-policy.js +4 -1
- package/node_modules/@braian/graph-agent/dist/note-collab-projection.js +4 -3
- package/node_modules/@braian/graph-agent/dist/note-collab-registry.js +12 -9
- package/node_modules/@braian/graph-agent/dist/note-collab-session.js +2 -1
- package/node_modules/@braian/graph-agent/dist/note-editor/index.js +13 -0
- package/node_modules/@braian/graph-agent/dist/note-editor/note-editor-settings.js +98 -0
- package/node_modules/@braian/graph-agent/dist/note-key-settings.js +34 -2
- package/node_modules/@braian/graph-agent/dist/rss/index.js +3 -1
- package/node_modules/@braian/graph-agent/dist/rss/rss-feed-parse.js +18 -1
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-store.js +9 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-use-cases.js +2 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-settings.js +15 -0
- package/node_modules/@braian/graph-agent/dist/screen-context-input.js +1 -1
- package/node_modules/@braian/graph-agent/dist/secret-masking.js +54 -15
- package/node_modules/@braian/graph-agent/dist/secret-vault.js +48 -3
- package/node_modules/@braian/graph-agent/dist/session-registry.js +3 -2
- package/node_modules/@braian/graph-agent/dist/settings-registry.js +21 -178
- package/node_modules/@braian/graph-agent/dist/settings-reset/index.js +9 -0
- package/node_modules/@braian/graph-agent/dist/settings-reset/settings-reset.js +85 -0
- package/node_modules/@braian/graph-agent/dist/share-edit-references.js +15 -14
- package/node_modules/@braian/graph-agent/dist/share-policy.js +86 -21
- package/node_modules/@braian/graph-agent/dist/share-registry.js +18 -11
- package/node_modules/@braian/graph-agent/dist/share-target-description.js +6 -0
- package/node_modules/@braian/graph-agent/dist/share-use-cases.js +99 -3
- package/node_modules/@braian/graph-agent/dist/share-webpage-links.js +40 -0
- package/node_modules/@braian/graph-agent/dist/shared-dashboard-view.js +2 -1
- package/node_modules/@braian/graph-agent/dist/spotlight-settings.js +2 -15
- package/node_modules/@braian/graph-agent/dist/standalone-pages.js +111 -0
- package/node_modules/@braian/graph-agent/dist/tools.js +4 -2
- package/node_modules/@braian/graph-agent/dist/types.js +7 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/index.js +36 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-access-policy.js +127 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-access-scope.js +60 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-link-features.js +48 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-link-grant.js +47 -0
- package/node_modules/@braian/graph-agent/dist/vault-access/vault-settings-access.js +44 -0
- package/node_modules/@braian/graph-agent/dist/vault-files.js +73 -14
- package/node_modules/@braian/graph-agent/dist/vault-settings-operations.js +41 -12
- package/node_modules/@braian/graph-agent/dist/vault-settings-registry.js +111 -20
- package/node_modules/@braian/html-standalone/dist/css.js +44 -0
- package/node_modules/@braian/html-standalone/dist/data-uri.js +48 -0
- package/node_modules/@braian/html-standalone/dist/html.js +118 -0
- package/node_modules/@braian/html-standalone/dist/index.js +9 -0
- package/node_modules/@braian/html-standalone/dist/local-reference.js +64 -0
- package/node_modules/@braian/html-standalone/dist/standalone.js +143 -0
- package/node_modules/@braian/html-standalone/package.json +22 -0
- package/node_modules/@braian/sqlite-browser/dist/execute.js +47 -2
- package/node_modules/@braian/vault-fs-sdk/dist/fs-vault-strategy.js +23 -0
- package/node_modules/@braian/vault-fs-sdk/dist/index.js +5 -1
- package/node_modules/@braian/vault-fs-sdk/dist/vault-index.js +5 -0
- package/package.json +5 -2
- package/public/assets/{ArrowClockwise.es-DWqWLk15.js → ArrowClockwise.es-3-WDmIeI.js} +1 -1
- package/public/assets/{ArrowDown.es-COHGTGu_.js → ArrowDown.es--soRLxEp.js} +1 -1
- package/public/assets/{ArrowLeft.es-Dvz_4AVp.js → ArrowLeft.es-CbZG51Gr.js} +1 -1
- package/public/assets/{ArrowSquareOut.es-ssfQ7LE-.js → ArrowSquareOut.es-yh2fX_Cs.js} +1 -1
- package/public/assets/{ArrowUp.es-DflnZKsA.js → ArrowUp.es-CIIkDrf9.js} +1 -1
- package/public/assets/{ArrowsClockwise.es-DSXy5pW3.js → ArrowsClockwise.es-D0399ubU.js} +1 -1
- package/public/assets/{ArrowsIn.es-B4Aie-uw.js → ArrowsIn.es-B54L_O6A.js} +1 -1
- package/public/assets/Browser.es-BqZU_2qv.js +1 -0
- package/public/assets/Circle.es-j7f1_WI9.js +1 -0
- package/public/assets/{Clock.es-D6bs8ZLR.js → Clock.es-DkUjmG8U.js} +1 -1
- package/public/assets/{Copy.es-CglRiQSZ.js → Copy.es-DfOdr0jv.js} +1 -1
- package/public/assets/CopySimple.es-BBthx5Du.js +1 -0
- package/public/assets/CornersOut.es-Cd9DgMlt.js +1 -0
- package/public/assets/Crosshair.es-9qdLaRA1.js +1 -0
- package/public/assets/{Desktop.es-DVtEXtRb.js → Desktop.es-DSRSg0hy.js} +1 -1
- package/public/assets/{DotsSixVertical.es-B7kGbvvH.js → DotsSixVertical.es-Cg2wLxmG.js} +1 -1
- package/public/assets/{Eye.es-DKoV8w-8.js → Eye.es-CxGbwLRS.js} +1 -1
- package/public/assets/{EyeSlash.es-C_H7lJGL.js → EyeSlash.es-DfTto7s1.js} +1 -1
- package/public/assets/{File.es-47KQbmb4.js → File.es-D3fdUSmS.js} +1 -1
- package/public/assets/FloppyDisk.es-CVEXDdFf.js +1 -0
- package/public/assets/{Folder.es-DKrkcRQj.js → Folder.es-BUMi6qzZ.js} +1 -1
- package/public/assets/{FolderOpen.es-DaW9wv8-.js → FolderOpen.es-FcjULnXZ.js} +1 -1
- package/public/assets/{FolderPlus.es-D0scempH.js → FolderPlus.es-Deuvtys5.js} +1 -1
- package/public/assets/GearSix.es-CWRB8Up2.js +1 -0
- package/public/assets/List.es-C0rMRBfB.js +1 -0
- package/public/assets/{ListBullets.es-DGeupXZ3.js → ListBullets.es-B7JvZb2M.js} +1 -1
- package/public/assets/{LockSimple.es-DiQO6y_F.js → LockSimple.es-D5Ul9U6c.js} +1 -1
- package/public/assets/LockSimpleOpen.es-C2JGRKEE.js +1 -0
- package/public/assets/{MagnifyingGlass.es-CHks7m9E.js → MagnifyingGlass.es-BPnvTl_3.js} +1 -1
- package/public/assets/{Microphone.es-CQat-MJ8.js → Microphone.es-BXBLW9YD.js} +1 -1
- package/public/assets/{Play.es-h1Fhb5wo.js → Play.es-BT5cMJ7L.js} +1 -1
- package/public/assets/{Plus.es-B-svcAlu.js → Plus.es-aakfbgmy.js} +1 -1
- package/public/assets/{Prohibit.es-M5ljYyQ3.js → Prohibit.es-pwiGfWLj.js} +1 -1
- package/public/assets/{QrCode.es-CVlyfpjq.js → QrCode.es-DCPGPGYZ.js} +1 -1
- package/public/assets/ShareNetwork-CTDRol5F.css +1 -0
- package/public/assets/ShareNetwork.es-Do0IWaE9.js +3 -0
- package/public/assets/SidebarSimple.es-UdNMyfL-.js +1 -0
- package/public/assets/{SlidersHorizontal.es-DkPz8o7o.js → SlidersHorizontal.es-957OxRrd.js} +1 -1
- package/public/assets/{TextAa.es-CymAJ91v.js → TextAa.es-8d8-rRe1.js} +1 -1
- package/public/assets/{Trash.es-B7UVM9v_.js → Trash.es-chxTwNhO.js} +1 -1
- package/public/assets/WarningCircle.es-CF4lQ1bU.js +1 -0
- package/public/assets/advanced-security-B_SegWCz.js +1 -0
- package/public/assets/agent-profiles-settings-DZv5BUzj.js +1 -0
- package/public/assets/appearance-settings-module-DlOVkZXP.js +1 -0
- package/public/assets/{ar-SA-G6X2FPQ2-R9ND2Rw0.js → ar-SA-G6X2FPQ2-DZP7qz6u.js} +1 -1
- package/public/assets/{attachment-embed-Bt5qCuKC.css → attachment-embed-CJkoG50a.css} +1 -1
- package/public/assets/attachment-embed-DVbcGTLJ.js +1 -0
- package/public/assets/attachments-settings-BuqoRFuK.js +1 -0
- package/public/assets/az-AZ-76LH7QW2-ByX_zd4F.js +1 -0
- package/public/assets/{bg-BG-XCXSNQG7-WKBfRf7q.js → bg-BG-XCXSNQG7-wxiUF1_6.js} +1 -1
- package/public/assets/blue-pgMgVzKw.css +1 -0
- package/public/assets/{bn-BD-2XOGV67Q-BmT7jnvl.js → bn-BD-2XOGV67Q-BBIhV1oq.js} +1 -1
- package/public/assets/{board-workspace-D9prroo0.css → board-workspace-CUeGZca9.css} +1 -1
- package/public/assets/board-workspace-pt2JAfWJ.js +1 -0
- package/public/assets/boards-settings-module-CaOcLdGN.js +1 -0
- package/public/assets/{boards-view-3JR36W_w.js → boards-view-DEVAYmzH.js} +1 -1
- package/public/assets/{ca-ES-6MX7JW3Y-CBR9ytrG.js → ca-ES-6MX7JW3Y-CKplVKfE.js} +1 -1
- package/public/assets/calendar-view-B-w_4BV-.js +1 -0
- package/public/assets/calendar-workspace-BiPYwfJr.js +1 -0
- package/public/assets/{calendars-settings-module-BWI1k_YA.js → calendars-settings-module-DuwhjpAm.js} +1 -1
- package/public/assets/card-fields-BJ9YVWI0.css +1 -0
- package/public/assets/{card-fields-eo7dqj1P.js → card-fields-iDvc1GXx.js} +1 -1
- package/public/assets/{chat-composer-editor-DCmWVP16.js → chat-composer-editor-CPfqqfXn.js} +1 -1
- package/public/assets/{chat-message-list-DPXjDBw1.js → chat-message-list-Ds52ru39.js} +1 -1
- package/public/assets/chunk-6U3AYISY-C6-Mtja1.js +12 -0
- package/public/assets/{chunk-EIO257PC-Bfdsn_q8.js → chunk-EIO257PC-DvUJi4Nw.js} +1 -1
- package/public/assets/chunk-K2UTITRG-ZTIxemJp.js +41 -0
- package/public/assets/chunk-SRAX5OIU-wzfotNc-.js +1 -0
- package/public/assets/chunk-Z3N5DIM6-D9TMVU7m.js +1 -0
- package/public/assets/{code-editor-CxLqzVwa.js → code-editor-BTcitmHE.js} +1 -1
- package/public/assets/code-editor-DIB7VOIc.css +1 -0
- package/public/assets/{color-picker-Cmg2HIDb.css → color-picker-BV0aOd4w.css} +1 -1
- package/public/assets/{color-picker-DK8V_DI0.js → color-picker-WHiWktCJ.js} +1 -1
- package/public/assets/{contents-view-DHRWEBwV.js → contents-view-DOVe1FVg.js} +1 -1
- package/public/assets/contents-view-XuasBH0m.css +1 -0
- package/public/assets/{conversation-debug-panel-zsrBEMxW.js → conversation-debug-panel-C73_GL9P.js} +1 -1
- package/public/assets/{settings-view-Bd65kLGK.css → core-settings-module-DNS3W-dj.css} +1 -1
- package/public/assets/core-settings-module-_wQSD6hP.js +4 -0
- package/public/assets/create-note-popup-B-wM8Q5O.js +1 -0
- package/public/assets/{cs-CZ-2BRQDIVT-fiabtlu1.js → cs-CZ-2BRQDIVT-CHlJO48i.js} +1 -1
- package/public/assets/{cypher-editor-ef6RdDgm.js → cypher-editor-M9g--02t.js} +1 -1
- package/public/assets/{da-DK-5WZEPLOC-C-5tRCvs.js → da-DK-5WZEPLOC-B2KbOKlk.js} +1 -1
- package/public/assets/daily-notes-settings-CrgXHhLI.js +1 -0
- package/public/assets/{dashboard-grid-DKMK4z_a.js → dashboard-grid-BZ8kYdV4.js} +2 -2
- package/public/assets/dashboard-workspace-CIhpZ3rj.js +4 -0
- package/public/assets/dashboard-workspace-ChhR6uFw.css +1 -0
- package/public/assets/{dashboards-settings-module-DmE0Krje.js → dashboards-settings-module-CUyrJjUX.js} +1 -1
- package/public/assets/dashboards-view-CkheD5RG.js +1 -0
- package/public/assets/{de-DE-XR44H4JA-4wneKMQi.js → de-DE-XR44H4JA-CraH52sB.js} +1 -1
- package/public/assets/{desktop-server-settings-DDd8PcxW.js → desktop-server-settings-CDuPB2R6.js} +1 -1
- package/public/assets/discovery-create-popup-aCpL7caq.js +1 -0
- package/public/assets/discovery-import-popup-qmw9XOW8.js +1 -0
- package/public/assets/{discovery-settings-module-DQMZismj.js → discovery-settings-module-BiY4ib2N.js} +1 -1
- package/public/assets/discovery-view-CPYP4CTN.js +1 -0
- package/public/assets/discovery-workspace-COn6jS_C.js +2 -0
- package/public/assets/{dist-B58c6eJE.js → dist-BmY58onI.js} +1 -1
- package/public/assets/drag-preview-i140CAXv.js +1 -0
- package/public/assets/{drawing-note-BytzAih9.js → drawing-note-CZIRcZb4.js} +1 -1
- package/public/assets/{el-GR-BZB4AONW-BUDxOK9m.js → el-GR-BZB4AONW-hWxkjrdo.js} +1 -1
- package/public/assets/en-B4ZKOASM-CDD2_KUt.js +1 -0
- package/public/assets/{es-ES-U4NZUMDT-gXLOOlpz.js → es-ES-U4NZUMDT-D3W7yrM9.js} +1 -1
- package/public/assets/{esm-BSlSeh8A.js → esm-BwVJXUDM.js} +1 -1
- package/public/assets/{eu-ES-A7QVB2H4-4kiV_opo.js → eu-ES-A7QVB2H4-C6t3pMxo.js} +1 -1
- package/public/assets/export-formats-BEyzF7fr.js +1 -0
- package/public/assets/{fa-IR-HGAKTJCU-C7F0Dl4h.js → fa-IR-HGAKTJCU-DJOOVnVh.js} +1 -1
- package/public/assets/{feature-switch-section-617S6UWP.js → feature-switch-section-DWkHmh9Q.js} +1 -1
- package/public/assets/{fi-FI-Z5N7JZ37-DEUSwc4a.js → fi-FI-Z5N7JZ37-DEhnpOQb.js} +1 -1
- package/public/assets/file-editor-BMcxRFx_.css +1 -0
- package/public/assets/file-editor-WXaKLCia.js +3 -0
- package/public/assets/{file-language-DjeubQk3.js → file-language-BAXzYrUs.js} +1 -1
- package/public/assets/file-picker-Bo4sE6ud.css +1 -0
- package/public/assets/file-picker-DalNc5HP.js +1 -0
- package/public/assets/file-preview-B2sjiYV9.css +1 -0
- package/public/assets/file-preview-CBXgB9qm.js +1 -0
- package/public/assets/{file-preview-media-DL2hGeeZ.js → file-preview-media-D5_7dD-7.js} +1 -1
- package/public/assets/file-references-api-IoK82adM.js +1 -0
- package/public/assets/files-settings-module-DTmzlXAF.js +1 -0
- package/public/assets/files-view-D7awxVSV.js +3 -0
- package/public/assets/{files-view-B6_Mlm9V.css → files-view-DyPI1vLx.css} +1 -1
- package/public/assets/{format-panel-value-vueBm4DQ.js → format-panel-value-Qry4ewBT.js} +1 -1
- package/public/assets/format-rules-BFnbjJsr.js +1 -0
- package/public/assets/{fr-FR-RHASNOE6-BKLo10bn.js → fr-FR-RHASNOE6-D9pFTuqa.js} +1 -1
- package/public/assets/{gl-ES-HMX3MZ6V-D_nHnidC.js → gl-ES-HMX3MZ6V-CIK6mfAj.js} +1 -1
- package/public/assets/graph-explorer-DEddRhZU.js +329 -0
- package/public/assets/graph-settings-module-CdwcXpWv.js +1 -0
- package/public/assets/{he-IL-6SHJWFNN-BXKK7JWx.js → he-IL-6SHJWFNN-sIPLWf4m.js} +1 -1
- package/public/assets/{hi-IN-IWLTKZ5I-D2utCBQM.js → hi-IN-IWLTKZ5I-BUJucdSj.js} +1 -1
- package/public/assets/{hu-HU-A5ZG7DT2-BENIngFF.js → hu-HU-A5ZG7DT2-B29-4soS.js} +1 -1
- package/public/assets/icons-BQSaMzmI.js +1 -0
- package/public/assets/{id-ID-SAP4L64H-Bw77jJOj.js → id-ID-SAP4L64H-CyIfHt3t.js} +1 -1
- package/public/assets/ide-settings-module-DmJJdyaW.js +1 -0
- package/public/assets/ide-view-BhQVUYYS.js +1 -0
- package/public/assets/ide-view-Cou_U3E6.css +1 -0
- package/public/assets/image-GAAHSSAO-BxryKUrU.js +1 -0
- package/public/assets/imap-accounts-my6l8ble.js +1 -0
- package/public/assets/index-CfVw4gte.js +9 -0
- package/public/assets/index-CuWXx5Sr.css +1 -0
- package/public/assets/{it-IT-JPQ66NNP-DiG4G8vQ.js → it-IT-JPQ66NNP-Dq23HshR.js} +1 -1
- package/public/assets/{ja-JP-DBVTYXUO-CILN9NGs.js → ja-JP-DBVTYXUO-8NNxRVWb.js} +1 -1
- package/public/assets/journal-create-popup-DsFTus7q.js +1 -0
- package/public/assets/journal-day-route-BX4-KaSl.js +1 -0
- package/public/assets/journal-folder-field-hSCfQuop.js +1 -0
- package/public/assets/journal-page-CoLcbMGG.css +1 -0
- package/public/assets/journal-page-CuUs4DCL.js +2 -0
- package/public/assets/journal-settings-BeM9sz5z.js +1 -0
- package/public/assets/journal-typography-BB4TqmXu.js +1 -0
- package/public/assets/journal-writing-route-Ba7mqWJS.js +1 -0
- package/public/assets/journals-view-Cf89lTyQ.js +1 -0
- package/public/assets/kaa-6HZHGXH3-DWQlZzTI.js +1 -0
- package/public/assets/{kab-KAB-ZGHBKWFO-yPJB-J7N.js → kab-KAB-ZGHBKWFO-BCP7pvXg.js} +1 -1
- package/public/assets/kk-KZ-P5N5QNE5-xOkOQsTw.js +1 -0
- package/public/assets/{km-KH-HSX4SM5Z-CSZjabru.js → km-KH-HSX4SM5Z-D0xjNROe.js} +1 -1
- package/public/assets/{ko-KR-MTYHY66A-CGEXYXZz.js → ko-KR-MTYHY66A-E5aEyLj-.js} +1 -1
- package/public/assets/{ku-TR-6OUDTVRD-DOfuZRKI.js → ku-TR-6OUDTVRD-CDQOo-yR.js} +1 -1
- package/public/assets/link-choices-CRTxLpuA.js +1 -0
- package/public/assets/link-entry-route-C1tWLndS.js +1 -0
- package/public/assets/link-file-browser-RuO2yY0g.js +1 -0
- package/public/assets/{link-kind-icon-BMfHfR_C.js → link-kind-icon-BgeZ5N-E.js} +1 -1
- package/public/assets/link-picker-CWK41zM0.js +2 -0
- package/public/assets/locked-shares-prompt-eH6sWg93.js +1 -0
- package/public/assets/{logging-settings-contribution-BLHCBnwO.js → logging-settings-contribution-Btq9ioZn.js} +1 -1
- package/public/assets/logic-CiFwn-O5.js +28 -0
- package/public/assets/long-press-C_vMz2E6.js +1 -0
- package/public/assets/{lt-LT-XHIRWOB4-CmbJTJAh.js → lt-LT-XHIRWOB4-CZPudjgc.js} +1 -1
- package/public/assets/{lv-LV-5QDEKY6T-Br-VqxTs.js → lv-LV-5QDEKY6T-BFIvtooB.js} +1 -1
- package/public/assets/markdown-message-BmuXZdEl.js +3 -0
- package/public/assets/markdown-message-CEFw-l9n.css +1 -0
- package/public/assets/markdown-task-toggle-BdNMBrC0.css +1 -0
- package/public/assets/markdown-task-toggle-j4VvSqsD.js +4 -0
- package/public/assets/{matrices-settings-module-DKGdrCad.js → matrices-settings-module-CoOYPwEU.js} +1 -1
- package/public/assets/matrices-view-CcjCls3L.js +1 -0
- package/public/assets/matrix-workspace-98WdHTfO.js +1 -0
- package/public/assets/{maximize-2-DATMN9kx.js → maximize-2-BOW9VTPW.js} +1 -1
- package/public/assets/mermaid-diagram-kld9fHwj.js +1 -0
- package/public/assets/{mobile-file-text-meniSeto.js → mobile-file-text-BqyOwF0N.js} +1 -1
- package/public/assets/mobile-note-content-editor-BPxespTd.js +2 -0
- package/public/assets/{mobile-panel-layer-2EcEm-JB.js → mobile-panel-layer-CA_yph77.js} +1 -1
- package/public/assets/model-provider-settings-contribution-CECr7FiG.js +1 -0
- package/public/assets/model-providers-Ptlz_trq.js +1 -0
- package/public/assets/move-destination-2AXvBdlJ.js +1 -0
- package/public/assets/move-entries-dialog-BEJJSv8J.js +1 -0
- package/public/assets/{mr-IN-CRQNXWMA-DwF8SFQB.js → mr-IN-CRQNXWMA-DmnSBhlL.js} +1 -1
- package/public/assets/my-MM-5M5IBNSE-DDu4zmzX.js +1 -0
- package/public/assets/{nb-NO-T6EIAALU-BelWzTQs.js → nb-NO-T6EIAALU-BLzt9sXj.js} +1 -1
- package/public/assets/{nl-NL-IS3SIHDZ-Ce06PPL4.js → nl-NL-IS3SIHDZ-FtFhrALS.js} +1 -1
- package/public/assets/{nn-NO-6E72VCQL-BbXlzJzR.js → nn-NO-6E72VCQL-B_SymEE5.js} +1 -1
- package/public/assets/note-body-focus-d1lrm6Vw.js +1 -0
- package/public/assets/note-collab-provider-B5sEpjH1.js +1 -0
- package/public/assets/note-collab-transport-HTl4Zdug.js +1 -0
- package/public/assets/note-create-settings-module-iEVdyRFV.js +1 -0
- package/public/assets/{note-documents-CcJDTkta.js → note-documents-BPTwtsVi.js} +2 -2
- package/public/assets/note-editor-container-Ct9S4xJq.css +1 -0
- package/public/assets/note-editor-container-DzXoYKkT.js +2 -0
- package/public/assets/note-editor-settings-module-BZalej3y.js +1 -0
- package/public/assets/note-excalidraw-editor-CYHK-nyq.js +118 -0
- package/public/assets/note-excalidraw-editor-DVHMAsgJ.css +1 -0
- package/public/assets/{note-export-api-CwuXGV0y.js → note-export-api-Cdb5DLzA.js} +1 -1
- package/public/assets/note-export-flow-CfLnfRzg.js +1 -0
- package/public/assets/{note-filter-rule-rows-DFSWBwql.js → note-filter-rule-rows-DmVis2Dw.js} +1 -1
- package/public/assets/note-folds-settings-module-DeVre4gm.js +1 -0
- package/public/assets/note-frontmatter-summary-DNdQjzv5.js +1 -0
- package/public/assets/note-history-retention-B5aE8fKh.js +1 -0
- package/public/assets/note-link-list-C2i2SrSh.css +1 -0
- package/public/assets/note-link-list-DD4FzeUb.js +2 -0
- package/public/assets/note-markdown-editor-BlWCUXb9.js +26 -0
- package/public/assets/note-markdown-editor-Dp1k8dWQ.css +1 -0
- package/public/assets/{note-outline-BFidIp-8.js → note-outline-C-dPTJrB.js} +2 -2
- package/public/assets/note-outline-DTpLzjGU.css +1 -0
- package/public/assets/note-page-content-CZH9UDn0.js +2 -0
- package/public/assets/{note-page-editor-BgcMK_4q.css → note-page-editor-D7Wt_Giv.css} +1 -1
- package/public/assets/{note-page-editor-DpVUxkCx.js → note-page-editor-D8M6gjmG.js} +4 -4
- package/public/assets/note-path-breadcrumb-CLfo-0XG.js +1 -0
- package/public/assets/{note-path-breadcrumb-YC4bHnwX.css → note-path-breadcrumb-Drkebhvm.css} +1 -1
- package/public/assets/{note-picker-B5i41l1u.js → note-picker-DIFcqGgZ.js} +1 -1
- package/public/assets/note-picker-KBB6aonj.css +1 -0
- package/public/assets/{note-picker-popover-B9VTeHiM.js → note-picker-popover-CoT73GG-.js} +1 -1
- package/public/assets/note-shares-popup-CmUAI6V-.js +1 -0
- package/public/assets/note-side-panel-BFno3955.js +1 -0
- package/public/assets/note-side-panel-DLOy2dVw.css +1 -0
- package/public/assets/note-side-panel-host-iIfi_4c4.js +1 -0
- package/public/assets/note-source-editor-CVo_ZXww.js +1 -0
- package/public/assets/{note-type-grid-CRCfpYZy.js → note-type-grid-Bfdc8U-T.js} +2 -2
- package/public/assets/{note-type-grid-BM33ZYF-.css → note-type-grid-BzMZLAzW.css} +1 -1
- package/public/assets/{note-values-6D6wWXPg.js → note-values-C4A12_CE.js} +1 -1
- package/public/assets/notes-settings-module-DBSeNBYj.js +1 -0
- package/public/assets/notes-view-C_mX24NH.js +1 -0
- package/public/assets/notes-view-D212ymqf.css +1 -0
- package/public/assets/{oc-FR-POXYY2M6-CyRgkETq.js → oc-FR-POXYY2M6-DM9hsX9Q.js} +1 -1
- package/public/assets/{open-journal-writing-Bub8Zn13.js → open-journal-writing-Da9CBYtR.js} +1 -1
- package/public/assets/{pa-IN-N4M65BXN-A1_Q9748.js → pa-IN-N4M65BXN-CJJQ9oPk.js} +1 -1
- package/public/assets/page-content-27iX_YpJ.js +1 -0
- package/public/assets/page-content-CdioJybS.css +1 -0
- package/public/assets/page-export-api-BqvyvK1O.js +1 -0
- package/public/assets/page-export-flow-HzZ0AmjW.js +1 -0
- package/public/assets/page-files-C30eoBCR.js +1 -0
- package/public/assets/page-note-7Oo1OmH0.js +1 -0
- package/public/assets/pane-layout-BaHTn1Oz.js +1 -0
- package/public/assets/{panel-columns-fields-ZlW6A4My.js → panel-columns-fields-B9Biz8Xm.js} +1 -1
- package/public/assets/pdf-view-B5Y12R4H.js +1 -0
- package/public/assets/pdf-view-X71jeHKm.css +1 -0
- package/public/assets/{pencil-xxFNyZzr.js → pencil-BQzjBcpa.js} +1 -1
- package/public/assets/percentages-BXMCSKIN-DRPvI3O-.js +1 -0
- package/public/assets/{phone-numbers-BQgyhfcH.js → phone-numbers-lV_IC3Pq.js} +1 -1
- package/public/assets/{pl-PL-T2D74RX3-DaINIVjz.js → pl-PL-T2D74RX3-BLAcchR-.js} +1 -1
- package/public/assets/progress-bar-BxjnW3uQ.js +1 -0
- package/public/assets/provider-configuration-DBW3Pa0C.js +8 -0
- package/public/assets/provider-configuration-dpnYrEZm.css +1 -0
- package/public/assets/provider-use-select-C0EI8kSQ.js +1 -0
- package/public/assets/{pt-BR-5N22H2LF-ENVHjTz_.js → pt-BR-5N22H2LF-BiLQ-V_W.js} +1 -1
- package/public/assets/{pt-PT-UZXXM6DQ-D5Uqv0Vz.js → pt-PT-UZXXM6DQ-DKEXacg3.js} +1 -1
- package/public/assets/qr-code-DgTUKCej.js +2 -0
- package/public/assets/{qr-code-svg-8ENstC8b.js → qr-code-svg-DdWw4ovA.js} +1 -1
- package/public/assets/qr-defaults-settings-BbbzxV5k.js +1 -0
- package/public/assets/qr-settings-fields-C8GCAxa_.js +1 -0
- package/public/assets/qr-viewer-DTCnaLOP.js +1 -0
- package/public/assets/queryOptions-Dfvzj6n2.js +1 -0
- package/public/assets/{reader-clock-7x7Yvzv1.js → reader-clock-s4x6Qtz_.js} +1 -1
- package/public/assets/{recording-bar-BcuvYwhh.js → recording-bar-C5jkIsLX.js} +1 -1
- package/public/assets/{recording-setup-D_MgrYb7.js → recording-setup-fZ6fe1MX.js} +1 -1
- package/public/assets/{recordings-api-Ds77lFsk.js → recordings-api-CxuXFNaM.js} +1 -1
- package/public/assets/{resource-overview-card-BainFWKz.js → resource-overview-card-CAxT9QxY.js} +1 -1
- package/public/assets/{ro-RO-JPDTUUEW-Dq_ouOp1.js → ro-RO-JPDTUUEW-DPtQ18Fr.js} +1 -1
- package/public/assets/rss-settings-module-Bg7BBsC4.js +1 -0
- package/public/assets/rss-view-DeSvhXEa.js +3 -0
- package/public/assets/{ru-RU-B4JR7IUQ-CqqISqJC.js → ru-RU-B4JR7IUQ-n-7DhzM7.js} +1 -1
- package/public/assets/{safe-block-copy-BOVhmncw.js → safe-block-copy-B7NrP_YX.js} +1 -1
- package/public/assets/{safe-block-qr-button-CD7cJG3N.js → safe-block-qr-button-DomQCK7l.js} +1 -1
- package/public/assets/safe-block-reader-BGmIVIwN.js +1 -0
- package/public/assets/safe-folder-conversion-Re-4B3nf.js +1 -0
- package/public/assets/{safe-folders-DmvM6dtV.js → safe-folders-B4zJo8qB.js} +1 -1
- package/public/assets/{safe-move-leaving-BT5e1h3p.js → safe-move-leaving-D4dKIwTJ.js} +1 -1
- package/public/assets/{safe-note-locked-BDCeVwpK.js → safe-note-locked-BGUjggd4.js} +1 -1
- package/public/assets/safe-notes-settings-module-zJbcwdU7.js +1 -0
- package/public/assets/{markdown-task-toggle-CuRdtBn0.css → safe-text-B4Q6DSRg.css} +1 -1
- package/public/assets/safe-text-MPRw9KNQ.js +2 -0
- package/public/assets/search-settings-module-CMWbEyvZ.js +1 -0
- package/public/assets/{secret-form-B-YAlbZf.js → secret-form-DoNXw27T.js} +1 -1
- package/public/assets/secret-popup-Vn5Xkv4s.js +1 -0
- package/public/assets/section-navigation-1mCyY2Gm.js +1 -0
- package/public/assets/{security-settings-contribution-BmcZq1hf.js → security-settings-contribution-BrPrGp5q.js} +1 -1
- package/public/assets/settings-CxK-AM0A.js +1 -0
- package/public/assets/settings-actions-DnTiS3-h.js +1 -0
- package/public/assets/{settings-edit-dialog-C_AeTz9Y.js → settings-edit-dialog-CE5ZTszW.js} +1 -1
- package/public/assets/settings-panel-BF5baIMl.js +1 -0
- package/public/assets/settings-surface-CDwMuN24.js +3 -0
- package/public/assets/settings-surface-DzW4lcds.css +1 -0
- package/public/assets/{setup-prompt-BbpHVdla.js → setup-prompt-Bmv_QxoH.js} +1 -1
- package/public/assets/{share-access-control-CzAVEv6b.js → share-access-control-CB7J42Dn.js} +1 -1
- package/public/assets/shared-board-CLRkwNKE.js +1 -0
- package/public/assets/shared-board-lanes-OZo3pA9j.js +1 -0
- package/public/assets/{shared-calendar-view-DTzDjSs0.js → shared-calendar-view-BSmK0NDE.js} +1 -1
- package/public/assets/shared-note-route-CnykVAYu.css +1 -0
- package/public/assets/shared-note-route-DtZVqLMu.js +4 -0
- package/public/assets/shared-note-text-C6nccM7z.js +1 -0
- package/public/assets/{shares-settings-module-pIdBLmCq.js → shares-settings-module-gI5s2PT6.js} +1 -1
- package/public/assets/si-LK-N5RQ5JYF-BpI-kBDz.js +1 -0
- package/public/assets/{sk-SK-C5VTKIMK-YiOZ-xKA.js → sk-SK-C5VTKIMK-BRXRBgRU.js} +1 -1
- package/public/assets/{sl-SI-NN7IZMDC-BKb37Hlu.js → sl-SI-NN7IZMDC-BXKt0fnN.js} +1 -1
- package/public/assets/{spaces-settings-module-BLU1RsTS.js → spaces-settings-module-BOkTwY_Z.js} +1 -1
- package/public/assets/spaces-view-K5_OKPoW.js +2 -0
- package/public/assets/sqlite-browser-BVA27ofB.css +1 -0
- package/public/assets/sqlite-browser-DCKBF2SI.js +2 -0
- package/public/assets/stack-widgets-CLUFu_vQ.js +1 -0
- package/public/assets/store-attachments-DQ63HVZo.js +1 -0
- package/public/assets/stored-color-picker-BLs1gClm.css +1 -0
- package/public/assets/stored-color-picker-CZ66rDog.js +1 -0
- package/public/assets/style-DPV_jdGg.css +1 -0
- package/public/assets/subset-shared.chunk-DYH4c2c2.js +1 -0
- package/public/assets/subset-worker.chunk-yCTTgC3G.js +1 -0
- package/public/assets/{sv-SE-XGPEYMSR-VT0snW-T.js → sv-SE-XGPEYMSR-nBH8YjQ4.js} +1 -1
- package/public/assets/{ta-IN-2NMHFXQM--MqIf2Jf.js → ta-IN-2NMHFXQM-f0oprEqN.js} +1 -1
- package/public/assets/{text-diff-BmKfp7mY.js → text-diff-BMS8apwf.js} +1 -1
- package/public/assets/th-TH-HPSO5L25-CUOH0u8u.js +2 -0
- package/public/assets/{theme-colors-zbTaiYL0.js → theme-colors-BcoD3SUn.js} +1 -1
- package/public/assets/{toolbar-items-DLi0bl0c.js → toolbar-items-DtGvJf3U.js} +1 -1
- package/public/assets/{topology-code-editor-CNnSyUQ3.js → topology-code-editor-ClyHjN--.js} +1 -1
- package/public/assets/topology-designer-DmhzdlOY.js +1 -0
- package/public/assets/{topology-editor-DUaww3cM.css → topology-editor-CZnvLbBi.css} +1 -1
- package/public/assets/topology-editor-YK_2uGkR.js +8 -0
- package/public/assets/{topology-folder-migration-popup-C0Wc3ViK.js → topology-folder-migration-popup-AZFR8-44.js} +1 -1
- package/public/assets/{tr-TR-DEFEU3FU-BVLSiyVW.js → tr-TR-DEFEU3FU-CTsS8Qy-.js} +1 -1
- package/public/assets/{transcription-settings-BldPwHO7.js → transcription-settings-D7_ViMfp.js} +2 -2
- package/public/assets/tree-header-CmCmDZKG.js +1 -0
- package/public/assets/tree-header-DlATpadF.css +1 -0
- package/public/assets/types-settings-module-L4wPTMty.js +1 -0
- package/public/assets/{uk-UA-QMV73CPH-DQ4YsZml.js → uk-UA-QMV73CPH-BJo17WQM.js} +1 -1
- package/public/assets/{unlock-prompt-CkkcVo9g.js → unlock-prompt-BQVrb-4k.js} +1 -1
- package/public/assets/{use-candidate-notes-jH4-EW29.js → use-candidate-notes-YOxWyJCJ.js} +1 -1
- package/public/assets/{directory-picker-columns-BpDkvDO0.css → use-directory-columns-DILivjwk.css} +1 -1
- package/public/assets/use-directory-columns-DYequGsf.js +1 -0
- package/public/assets/use-directory-listing-Bj3F5kA3.js +1 -0
- package/public/assets/use-folding-enabled-N7w9iIqy.js +1 -0
- package/public/assets/use-heading-location-BZ9wUH2j.js +1 -0
- package/public/assets/{use-live-document-D4PkZrbU.js → use-live-document-4fc8FCW3.js} +1 -1
- package/public/assets/use-mobile-layer-navigation-Il_7QdXn.js +1 -0
- package/public/assets/{use-note-attachments-Bew073Hl.js → use-note-attachments-DAFyHvYo.js} +1 -1
- package/public/assets/{use-note-delete-fFNH1Glk.js → use-note-delete-JQISrVQ4.js} +1 -1
- package/public/assets/{use-note-editor-session-R1wm0xDf.js → use-note-editor-session-BlLoBd41.js} +1 -1
- package/public/assets/use-note-maximize-offer-DpU6Ms0_.js +1 -0
- package/public/assets/use-note-side-column-CFBvrpKH.css +1 -0
- package/public/assets/use-note-side-column-CVs74c26.js +1 -0
- package/public/assets/use-provider-dialogs-BRoAomhX.css +1 -0
- package/public/assets/use-provider-dialogs-HkxDcuJv.js +1 -0
- package/public/assets/{use-reflection-request-C1DxtaYX.js → use-reflection-request-BuFnMuQC.js} +4 -4
- package/public/assets/use-safe-folder-moves-CjbmSWSM.js +1 -0
- package/public/assets/use-safe-folders-apply-D_7a5l_T.js +1 -0
- package/public/assets/{use-screen-source-CF-48NnC.js → use-screen-source-BZ0GGtml.js} +1 -1
- package/public/assets/use-share-actions-DBYaF7Wp.css +1 -0
- package/public/assets/use-share-actions-Tfr6NI4j.js +1 -0
- package/public/assets/use-tab-style-B5YK0cIz.js +2 -0
- package/public/assets/use-tab-style-CRx5AnD1.css +1 -0
- package/public/assets/use-vault-file-link-BCQahdir.js +1 -0
- package/public/assets/{use-voice-questions-DGVQlAST.js → use-voice-questions-DmxYfc8M.js} +1 -1
- package/public/assets/vault-entries-api-CZHdxv7-.js +1 -0
- package/public/assets/vault-file-links-D1RzhVkx.js +1 -0
- package/public/assets/vault-folder-field-C5b24MNS.js +1 -0
- package/public/assets/vault-folder-field-X-B1weCe.css +1 -0
- package/public/assets/vault-links-popup-zkFCHyoP.js +1 -0
- package/public/assets/vault-manager-CZnYayEU.js +1 -0
- package/public/assets/{vault-settings-module-CCMMSy4B.js → vault-settings-module-CL2DHG69.js} +1 -1
- package/public/assets/vault-shares-popup-Cnew0vMQ.js +1 -0
- package/public/assets/vault-workspace-settings-module-D_n4aQfC.js +1 -0
- package/public/assets/{versioning-preferences-DrNq-y_0.js → versioning-preferences-BK-mZYhi.js} +1 -1
- package/public/assets/{versioning-settings-module-Ddug486c.js → versioning-settings-module-lq4k7b3C.js} +1 -1
- package/public/assets/versioning-view-BdEZaF8n.js +2 -0
- package/public/assets/{vi-VN-M7AON7JQ-B-fHV7o8.js → vi-VN-M7AON7JQ-DpgVSDWc.js} +1 -1
- package/public/assets/video-recording-dialog-ByevPvCN.js +1 -0
- package/public/assets/{video-recording-settings-B2iE6IdW.js → video-recording-settings-Ce2plgiG.js} +1 -1
- package/public/assets/widget-frame-DzlpiABF.js +1 -0
- package/public/assets/widget-layouts-DS7nWc80.js +1 -0
- package/public/assets/workspace-layout-3hjN1Wng.js +1 -0
- package/public/assets/{zh-CN-LNUGB5OW-CUgxiiUV.js → zh-CN-LNUGB5OW-Cfb6--Ow.js} +1 -1
- package/public/assets/zh-HK-E62DVLB3-vaMRVwdL.js +1 -0
- package/public/assets/{zh-TW-RAJ6MFWO-BVaf47B6.js → zh-TW-RAJ6MFWO-CNUUB_PG.js} +1 -1
- package/public/index.html +6 -6
- package/dist/search/embedding-connection-migration.js +0 -57
- package/node_modules/@braian/ai-providers/dist/legacy-embedding-migration.js +0 -21
- package/public/assets/FileText.es-4c63tWmA.js +0 -1
- package/public/assets/TerminalWindow.es-DwLjQ_88.js +0 -1
- package/public/assets/Warning.es-4HWtj9Nt.js +0 -1
- package/public/assets/agent-profiles-settings-yElCnMJo.js +0 -1
- package/public/assets/appearance-settings-module-BFDKE-mZ.js +0 -1
- package/public/assets/attachment-embed-BX0XSPNZ.js +0 -1
- package/public/assets/attachments-settings-CSEjOoFg.js +0 -1
- package/public/assets/az-AZ-76LH7QW2-DpGlptKS.js +0 -1
- package/public/assets/blue-ezN0uv0j.css +0 -1
- package/public/assets/board-workspace-CmetKvXF.js +0 -1
- package/public/assets/boards-settings-module-Bh5dh9jG.js +0 -1
- package/public/assets/calendar-view-Cr1VSpj0.js +0 -1
- package/public/assets/calendar-workspace-B-2Himdy.js +0 -1
- package/public/assets/card-fields-C1JCmDVz.css +0 -1
- package/public/assets/code-editor-wFimHbMT.css +0 -1
- package/public/assets/contents-view-EQyMaey-.css +0 -1
- package/public/assets/create-note-popup-C9IB_IZr.js +0 -1
- package/public/assets/daily-notes-settings-CCotd1Iq.js +0 -1
- package/public/assets/dashboard-workspace-4u-QaXby.js +0 -4
- package/public/assets/dashboard-workspace-CW4tbadO.css +0 -1
- package/public/assets/dashboards-view-DxUAl6zg.js +0 -1
- package/public/assets/directory-picker-columns-CqPZNMT8.js +0 -1
- package/public/assets/discovery-create-popup-BSOSYM4o.js +0 -1
- package/public/assets/discovery-import-popup-NodFxSW1.js +0 -1
- package/public/assets/discovery-view-PiwStXSa.js +0 -1
- package/public/assets/discovery-workspace-BTrjBF19.js +0 -2
- package/public/assets/drag-preview-D61OK7zr.js +0 -1
- package/public/assets/en-B4ZKOASM-jB7I34Md.js +0 -1
- package/public/assets/file-editor-B-9eXvH3.css +0 -1
- package/public/assets/file-editor-DvP7rRI9.js +0 -3
- package/public/assets/file-preview-AkYowAab.js +0 -1
- package/public/assets/file-preview-Dynm8laQ.css +0 -1
- package/public/assets/file-references-api-C2G0bSy9.js +0 -1
- package/public/assets/files-settings-module-DsylYhrR.js +0 -1
- package/public/assets/files-view-DPSrj_WW.js +0 -3
- package/public/assets/folder-picker-dialog-CxiRBtQb.css +0 -1
- package/public/assets/folder-picker-dialog-D_VCqm_i.js +0 -1
- package/public/assets/format-rules-GzYB7Vvh.js +0 -1
- package/public/assets/graph-explorer-CHz-bFkx.js +0 -329
- package/public/assets/graph-settings-module-9hY9bkdT.js +0 -1
- package/public/assets/icons-CxH3_W-q.js +0 -1
- package/public/assets/ide-settings-module-BbIX3okW.js +0 -1
- package/public/assets/ide-view-0vK2duKI.js +0 -2
- package/public/assets/ide-view-isgMvraA.css +0 -1
- package/public/assets/image-GAAHSSAO-D4NDL8F6.js +0 -1
- package/public/assets/imap-accounts-BRbnITJv.js +0 -1
- package/public/assets/index-BVDhmwI8.js +0 -11
- package/public/assets/index-DjUUY3gd.css +0 -1
- package/public/assets/journal-create-popup-39y9ieVG.js +0 -1
- package/public/assets/journal-day-route-CYlyL-u0.js +0 -1
- package/public/assets/journal-folder-field-B8yNmuTt.css +0 -1
- package/public/assets/journal-folder-field-BfO-_ied.js +0 -1
- package/public/assets/journal-page-CAXrq4hj.css +0 -1
- package/public/assets/journal-page-TgyVFaPE.js +0 -2
- package/public/assets/journal-settings-CfjXOXzF.js +0 -1
- package/public/assets/journal-typography-D3O3AK2U.js +0 -1
- package/public/assets/journal-writing-route-CYhXzipC.js +0 -1
- package/public/assets/journals-view-DNomC0nF.js +0 -1
- package/public/assets/kaa-6HZHGXH3-BUua-YiR.js +0 -1
- package/public/assets/kk-KZ-P5N5QNE5-CAitSjw5.js +0 -1
- package/public/assets/link-file-browser-A_Mappx0.js +0 -1
- package/public/assets/link-picker-BfwWXJZg.js +0 -2
- package/public/assets/locked-shares-prompt-BsM-ai_V.js +0 -1
- package/public/assets/logic-DtHJ5GlU.js +0 -28
- package/public/assets/markdown-message-BIo2pHhE.js +0 -3
- package/public/assets/markdown-message-C2w22wrW.css +0 -1
- package/public/assets/markdown-task-toggle-9k1EldDD.js +0 -5
- package/public/assets/matrices-view-DYF7e5ES.js +0 -1
- package/public/assets/matrix-workspace-JZhH-HQ5.js +0 -1
- package/public/assets/mermaid-diagram-gUL2-JyE.js +0 -1
- package/public/assets/mobile-note-content-editor-C6TUyA4F.js +0 -2
- package/public/assets/model-provider-settings-contribution-CfHiu3nS.js +0 -1
- package/public/assets/model-providers-cQOCMmwX.js +0 -1
- package/public/assets/my-MM-5M5IBNSE-BEiMo9eJ.js +0 -1
- package/public/assets/note-body-focus-BKKGEgBj.js +0 -1
- package/public/assets/note-collab-provider-B9DpnE58.js +0 -1
- package/public/assets/note-collab-transport-BHZ891IL.js +0 -1
- package/public/assets/note-create-settings-module-rIZc1DjQ.js +0 -1
- package/public/assets/note-editor-container-8DkvXTPN.css +0 -1
- package/public/assets/note-editor-container-DL3yLdYs.js +0 -2
- package/public/assets/note-editor-settings-module-DI0jRyPy.js +0 -1
- package/public/assets/note-excalidraw-editor-CKSC5Oww.css +0 -1
- package/public/assets/note-excalidraw-editor-fDQ1JVBh.js +0 -168
- package/public/assets/note-export-flow-DcBoI5Pp.js +0 -1
- package/public/assets/note-folds-settings-module-CFfVg1Cp.js +0 -1
- package/public/assets/note-frontmatter-summary-iubFPHA_.js +0 -1
- package/public/assets/note-link-list-CI9-GM_3.js +0 -1
- package/public/assets/note-link-list-hmCbBMA2.css +0 -1
- package/public/assets/note-markdown-editor-DlBj1yv3.css +0 -1
- package/public/assets/note-markdown-editor-lG6gZT9i.js +0 -26
- package/public/assets/note-outline-CAyXKuOh.css +0 -1
- package/public/assets/note-page-content-8gzPBWMV.js +0 -2
- package/public/assets/note-path-breadcrumb-HmtWyYZP.js +0 -1
- package/public/assets/note-picker-BURTnmWF.css +0 -1
- package/public/assets/note-shares-popup-aUO1SNLN.js +0 -1
- package/public/assets/note-source-editor-BXPR_-41.js +0 -1
- package/public/assets/notes-settings-module-DcP9Hid-.js +0 -1
- package/public/assets/page-content-B3fNjwr-.js +0 -1
- package/public/assets/page-content-lnIaLh4X.css +0 -1
- package/public/assets/page-files-CSqFupDZ.js +0 -1
- package/public/assets/page-note-nmiinGCs.js +0 -1
- package/public/assets/pane-keys-DiGU3yVB.css +0 -1
- package/public/assets/pane-keys-osajBGnu.js +0 -1
- package/public/assets/pdf-view-BATpBLO5.js +0 -1
- package/public/assets/pdf-view-BK5qKL4y.css +0 -1
- package/public/assets/percentages-BXMCSKIN-DzsiA6IB.js +0 -1
- package/public/assets/provider-configuration-CSnNV6ps.css +0 -1
- package/public/assets/provider-configuration-DaFovElx.js +0 -8
- package/public/assets/provider-use-select-D-lJiZ2W.js +0 -1
- package/public/assets/qr-code-CDBCi1Cu.js +0 -2
- package/public/assets/qr-defaults-settings-C_8ybA4R.js +0 -1
- package/public/assets/qr-settings-fields-C2-DGF6a.js +0 -1
- package/public/assets/qr-viewer-DAOzDI8d.js +0 -1
- package/public/assets/rss-preferences-BafuZ3Ku.js +0 -1
- package/public/assets/rss-settings-module-Df-YS9tr.js +0 -1
- package/public/assets/rss-view-BORHnuIQ.js +0 -3
- package/public/assets/safe-block-reader-BkilW4Hj.js +0 -1
- package/public/assets/safe-folder-conversion-DWTRwvTH.js +0 -1
- package/public/assets/safe-notes-settings-module-BrZreYgf.js +0 -1
- package/public/assets/search-settings-module-CPnculiI.js +0 -1
- package/public/assets/secret-popup-CoVpeLZV.js +0 -1
- package/public/assets/settings-CU8YR8di.js +0 -1
- package/public/assets/settings-panel-Ds7lOtnD.js +0 -1
- package/public/assets/settings-view-BTz2XbnW.js +0 -4
- package/public/assets/share-label-CbjQ9iMF.js +0 -1
- package/public/assets/shared-board-lanes-CAbJAFk6.js +0 -1
- package/public/assets/shared-note-route-B5rcAeES.css +0 -1
- package/public/assets/shared-note-route-B_gfX0Nl.js +0 -4
- package/public/assets/shared-note-text-DFBEyL8Z.js +0 -1
- package/public/assets/si-LK-N5RQ5JYF-DmhE8IT5.js +0 -1
- package/public/assets/spaces-view-BhWD3mAw.js +0 -2
- package/public/assets/sqlite-browser-BKjuAUqe.css +0 -1
- package/public/assets/sqlite-browser-C98PFoRG.js +0 -2
- package/public/assets/store-attachments-DbqF7LgE.js +0 -1
- package/public/assets/stored-color-picker-BoVzUatG.css +0 -1
- package/public/assets/stored-color-picker-DLX-e5Nq.js +0 -1
- package/public/assets/style-DLioOiRN.css +0 -1
- package/public/assets/subset-shared.chunk-D8M638AI.js +0 -1
- package/public/assets/subset-worker.chunk-B9ZhBm-P.js +0 -1
- package/public/assets/th-TH-HPSO5L25-CTKAmQrO.js +0 -2
- package/public/assets/topology-designer-T54LYLYv.js +0 -1
- package/public/assets/topology-editor-aGtCktzA.js +0 -8
- package/public/assets/topology-settings-module-Dp-Sm37Z.js +0 -1
- package/public/assets/use-directory-listing-Cn9t21ra.js +0 -1
- package/public/assets/use-folding-enabled-DKvri2UA.js +0 -1
- package/public/assets/use-mobile-layer-navigation-BIC7HlT_.js +0 -1
- package/public/assets/use-note-export-flow-Dm7yhW5s.js +0 -2
- package/public/assets/use-provider-dialogs-CrxN9JCo.js +0 -1
- package/public/assets/use-safe-folder-moves-DjQUnMvz.js +0 -1
- package/public/assets/use-safe-folders-apply-B1V8l7WU.js +0 -1
- package/public/assets/use-share-actions-RxO2M3y0.css +0 -1
- package/public/assets/use-share-actions-kb7uFat_.js +0 -1
- package/public/assets/use-vault-file-link-B-ZRcKDu.js +0 -1
- package/public/assets/vault-entries-api-pFsJiGnJ.js +0 -1
- package/public/assets/vault-manager-YKz_Ib18.js +0 -1
- package/public/assets/vault-shares-popup-CaGnEIJA.js +0 -1
- package/public/assets/versioning-view-PR4R4gks.js +0 -2
- package/public/assets/video-recording-dialog-CxRs1eLE.js +0 -1
- package/public/assets/widget-frame-DiF4946k.js +0 -1
- package/public/assets/zh-HK-E62DVLB3-D-87W8QH.js +0 -1
- /package/public/assets/{blue-CDYoCZOg.js → blue-DQyE4k0K.js} +0 -0
- /package/public/assets/{use-safe-folders-apply-DGWTaX5A.css → progress-bar-DGWTaX5A.css} +0 -0
- /package/public/assets/{style-DA65Bz1d.js → style-CXzDJL_q.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-COiEfhsA.js";var t=Object.defineProperty,n=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r=(t=>typeof e<`u`?e:typeof Proxy<`u`?new Proxy(t,{get:(t,n)=>(typeof e<`u`?e:t)[n]}):t)(function(t){if(typeof e<`u`)return e.apply(this,arguments);throw Error(`Dynamic require of "`+t+`" is not supported`)}),i=e=>t=>{var n=e[t];if(n)return n();throw Error(`Module not found in bundle: `+t)},a=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},o=(e,t,r)=>(n(e,typeof t==`symbol`?t:t+``,r),r);export{o as i,i as n,a as r,r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=100,t=36,n={"ar-SA":94,"az-AZ":17,"bg-BG":71,"bn-BD":52,"ca-ES":83,"cs-CZ":86,"da-DK":61,"de-DE":100,"el-GR":80,en:100,"es-ES":96,"eu-ES":97,"fa-IR":84,"fi-FI":76,"fr-FR":99,"gl-ES":86,"he-IL":77,"hi-IN":76,"hu-HU":76,"id-ID":91,"it-IT":98,"ja-JP":90,kaa:36,"kab-KAB":76,"kk-KZ":18,"km-KH":83,"ko-KR":100,"ku-TR":87,"lt-LT":48,"lv-LV":77,"mr-IN":98,"my-MM":35,"nb-NO":93,"nl-NL":75,"nn-NO":67,"oc-FR":92,"pa-IN":78,"pl-PL":99,"pt-BR":91,"pt-PT":83,"ro-RO":99,"ru-RU":92,"si-LK":7,"sk-SK":100,"sl-SI":100,"sv-SE":100,"ta-IN":81,"th-TH":44,"tr-TR":87,"uk-UA":93,"vi-VN":49,"zh-CN":100,"zh-HK":22,"zh-TW":100};export{e as n,t as r,n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{Bt as t,St as n,Vt as r,Yt as i,zt as a}from"./codemirror-BqrpJAnL.js";import{m as o,t as s}from"./react-B3NTyEzE.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{Bt as t,St as n,Vt as r,Yt as i,zt as a}from"./codemirror-BqrpJAnL.js";import{m as o,t as s}from"./react-B3NTyEzE.js";import{jn as c}from"./index-CfVw4gte.js";import{a as l,i as u,n as d,r as f}from"./file-language-BAXzYrUs.js";var p=e(o(),1),m=s();function h(e){let t=(0,p.useRef)(null),o=(0,p.useRef)(null),s=(0,p.useRef)(e);s.current=e;let h=c(),g=(0,p.useRef)({language:new a,appearance:new a,custom:new a,setup:new a});return(0,p.useLayoutEffect)(()=>{if(!t.current)return;let e=s.current,{language:i,appearance:a,custom:c,setup:d}=g.current,p=new n({parent:t.current,state:r.create({doc:e.value,extensions:[d.of(u({gutters:e.gutters,wrap:e.wrap,indent:e.indent})),a.of(f(h===`dark`)),i.of([]),c.of(e.extensions??[]),n.contentAttributes.of({"aria-label":e.label,role:`textbox`,"aria-multiline":`true`,autocapitalize:`off`,autocorrect:`off`,spellcheck:`false`}),n.updateListener.of(e=>{e.docChanged&&!e.transactions.some(e=>e.annotation(l))&&s.current.onChange(e.state.doc.toString())})]})});return o.current=p,e.onReady?.(p),e.autoFocus&&p.focus(),()=>{p.destroy(),o.current=null}},[e.documentId]),(0,p.useEffect)(()=>{let t=o.current;if(!t||!e.path)return;let n=!1;return d(e.path).then(e=>{!n&&o.current===t&&t.dispatch({effects:g.current.language.reconfigure(e)})}),()=>{n=!0}},[e.documentId,e.path]),(0,p.useEffect)(()=>{o.current?.dispatch({effects:[g.current.appearance.reconfigure(f(h===`dark`)),g.current.custom.reconfigure(e.extensions??[]),g.current.setup.reconfigure(u({gutters:e.gutters,wrap:e.wrap,indent:e.indent}))]})},[e.documentId,h,e.extensions,e.gutters,e.wrap,e.indent?.useTabs,e.indent?.tabWidth]),(0,p.useEffect)(()=>{let t=o.current;t&&t.state.doc.toString()!==e.value&&t.dispatch({changes:{from:0,to:t.state.doc.length,insert:e.value},annotations:[l.of(!0),i.addToHistory.of(!1)]})},[e.value]),(0,m.jsx)(`div`,{ref:t,className:`code-editor`,"data-document-id":e.documentId})}function g(e,r){let i=Math.min(Math.max(r,0),e.state.doc.length);e.dispatch({selection:t.cursor(i),effects:n.scrollIntoView(i,{y:`center`})}),e.focus()}export{g as n,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.code-editor{flex:auto;height:100%;min-height:0;overflow:hidden}.code-editor .cm-editor{height:100%}.code-editor .cm-search input,.code-editor .cm-search button{font:inherit;color:var(--ui-text);background:var(--ui-control-bg);border:1px solid var(--ui-control-border);border-radius:var(--ui-control-radius)}.code-editor .cm-search input:focus-visible:where([data-focus-ring] *),.code-editor .cm-search button:focus-visible:where([data-focus-ring] *){outline:1px solid var(--ui-control-focus)}.code-schema-hover{max-width:420px;font:var(--ui-font-size-body)/1.5 var(--ui-font-sans);white-space:pre-wrap;overflow-wrap:anywhere;padding:8px 12px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.color-picker-trigger{width:100%;font-family:var(--ui-font-mono);justify-content:flex-start;gap:8px}.color-picker-chip{border:1px solid var(--border-strong);border-radius:4px;flex:none;width:16px;height:16px}.color-picker-hex{text-overflow:ellipsis;min-width:0;overflow:hidden}.color-picker-body{gap:10px;width:min(320px,100vw - 32px);padding:12px;display:grid}.color-picker-current{grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.color-picker-current:not(:has(.color-picker-clear)){grid-template-columns:40px minmax(0,1fr)}.color-picker-chip.none{background:0 0;border-style:dashed}.color-picker-native{border:1px solid var(--border-strong);border-radius:var(--ui-control-radius);cursor:pointer;background:0 0;width:40px;height:32px;padding:0}.color-picker-native::-webkit-color-swatch-wrapper{padding:2px}.color-picker-native::-webkit-color-swatch{border:0;border-radius:4px}.color-picker-hex-input{font-family:var(--ui-font-mono)}.color-picker-slots-header{justify-content:space-between;align-items:center;gap:8px;min-height:22px;display:flex}.color-picker-slots{grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;display:grid}.color-picker-slot{aspect-ratio:1;border:1px solid var(--border-strong);border-radius:var(--ui-control-radius);background:var(--color-picker-slot);cursor:pointer;min-width:0;padding:0;transition:transform .12s,box-shadow .12s;position:relative}.color-picker-slot:hover{transform:scale(1.06)}.color-picker-slot:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.color-picker-slot[aria-pressed=true]{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--accent)}.color-picker-slot-number{color:var(--ui-text);background:color-mix(in srgb, var(--surface) 80%, transparent);font:600 var(--ui-font-size-caption)/1.4 var(--ui-font-mono);border-radius:3px;padding:0 3px;position:absolute;bottom:1px;right:2px}.color-picker-slots-saving .color-picker-slot{border-style:dashed;border-color:var(--accent)}.color-picker-reset{justify-self:start}@media (pointer:coarse){.color-picker-slot-number{font-size:var(--ui-font-size-small)}}
|
|
1
|
+
.color-picker-trigger{width:100%;font-family:var(--ui-font-mono);justify-content:flex-start;gap:8px}.color-picker-chip{border:1px solid var(--border-strong);border-radius:4px;flex:none;width:16px;height:16px}.color-picker-hex{text-overflow:ellipsis;min-width:0;overflow:hidden}.color-picker-body{gap:10px;width:min(320px,100vw - 32px);padding:12px;display:grid}.color-picker-current{grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.color-picker-current:not(:has(.color-picker-clear)){grid-template-columns:40px minmax(0,1fr)}.color-picker-chip.none{background:0 0;border-style:dashed}.color-picker-native{border:1px solid var(--border-strong);border-radius:var(--ui-control-radius);cursor:pointer;background:0 0;width:40px;height:32px;padding:0}.color-picker-native::-webkit-color-swatch-wrapper{padding:2px}.color-picker-native::-webkit-color-swatch{border:0;border-radius:4px}.color-picker-hex-input{font-family:var(--ui-font-mono)}.color-picker-slots-header{justify-content:space-between;align-items:center;gap:8px;min-height:22px;display:flex}.color-picker-slots{grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;display:grid}.color-picker-slot{aspect-ratio:1;border:1px solid var(--border-strong);border-radius:var(--ui-control-radius);background:var(--color-picker-slot);cursor:pointer;min-width:0;padding:0;transition:transform .12s,box-shadow .12s;position:relative}.color-picker-slot:hover{transform:scale(1.06)}.color-picker-slot:focus-visible:where([data-focus-ring] *){outline:2px solid var(--accent);outline-offset:2px}.color-picker-slot[aria-pressed=true]{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--accent)}.color-picker-slot-number{color:var(--ui-text);background:color-mix(in srgb, var(--surface) 80%, transparent);font:600 var(--ui-font-size-caption)/1.4 var(--ui-font-mono);border-radius:3px;padding:0 3px;position:absolute;bottom:1px;right:2px}.color-picker-slots-saving .color-picker-slot{border-style:dashed;border-color:var(--accent)}.color-picker-reset{justify-self:start}@media (pointer:coarse){.color-picker-slot-number{font-size:var(--ui-font-size-small)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{br as r,hr as i,ur as a,wr as o}from"./index-CfVw4gte.js";import{al as s,cl as c,dl as l,il as u,ll as d,sl as f,ul as p}from"./logic-CiFwn-O5.js";var m=e(t(),1),h=n();function g({slots:e,value:t,saving:n,onPick:r}){let i=(0,m.useRef)([]);(0,m.useEffect)(()=>{let n=requestAnimationFrame(()=>{let n=e.indexOf(t);i.current[Math.max(0,n)]?.focus()});return()=>cancelAnimationFrame(n)},[]);function a(t,n){let r=f(n,t.key,e.length);r!==void 0&&(t.preventDefault(),i.current[r]?.focus())}return(0,h.jsx)(`div`,{className:`color-picker-slots${n?` color-picker-slots-saving`:``}`,role:`group`,"aria-label":`Saved colours`,children:e.map((e,o)=>(0,h.jsx)(`button`,{ref:e=>{i.current[o]=e},type:`button`,className:`color-picker-slot`,style:{"--color-picker-slot":e},"aria-label":n?`Replace slot ${o}, ${e}`:`Slot ${o}, ${e}`,"aria-keyshortcuts":d(o),title:n?`Replace slot ${o}`:e,"aria-pressed":!n&&e===t,onKeyDown:e=>a(e,o),onClick:()=>r(o),children:d(o)&&(0,h.jsx)(`span`,{className:`color-picker-slot-number`,"aria-hidden":`true`,children:d(o)})},o))})}function _({value:e,onChange:t,onClear:n,noneLabel:d=`No colour`,slots:f,onSlotsChange:_,label:v,disabled:y,open:b,onOpenChange:x}){let[S,C]=(0,m.useState)(!1),w=b??S,T=e=>{b===void 0&&C(e),x?.(e)},[E,D]=(0,m.useState)(!1),[O,k]=(0,m.useState)(e??``);(0,m.useEffect)(()=>{k(e??``)},[e]),(0,m.useEffect)(()=>{w||D(!1)},[w]);let A=f.length===l.length&&f.every((e,t)=>e===l[t]);function j(n){E&&e?(_?.(s(f,n,e)),D(!1)):t(f[n])}return(0,h.jsx)(o,{open:w&&!y,onOpenChange:e=>T(e&&!y),label:v,placement:`bottom-start`,mobileMode:`sheet`,className:`color-picker-popover`,trigger:(0,h.jsxs)(r,{size:`small`,className:`color-picker-trigger`,disabled:y,"aria-label":`${v}: ${e??d}`,children:[(0,h.jsx)(`span`,{className:`color-picker-chip${e?``:` none`}`,style:e?{background:e}:void 0,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`color-picker-hex`,children:e??d})]}),children:(0,h.jsxs)(`div`,{className:`color-picker-body`,onKeyDown:e=>{if(e.key===`Escape`&&E){e.preventDefault(),e.stopPropagation(),D(!1);return}let t=e.target instanceof HTMLInputElement&&e.target.type!==`color`?void 0:c(e);t===void 0||t>=f.length||(e.preventDefault(),j(t))},children:[(0,h.jsxs)(`div`,{className:`color-picker-current`,children:[(0,h.jsx)(i,{variant:`unstyled`,type:`color`,className:`color-picker-native`,"aria-label":`Pick any colour`,value:u(e??``)??`#000000`,onChange:e=>t(e.target.value.toLowerCase())}),(0,h.jsx)(i,{size:`small`,className:`color-picker-hex-input`,"aria-label":`Hex colour`,spellCheck:!1,value:O,onChange:e=>{k(e.target.value);let n=u(e.target.value);n&&t(n)},onBlur:()=>k(e??``)}),n&&(0,h.jsx)(r,{size:`small`,variant:`link-neutral`,className:`color-picker-clear`,title:d,disabled:!e,onClick:n,children:`Clear`})]}),(0,h.jsxs)(`div`,{className:`color-picker-slots-header`,children:[(0,h.jsx)(a,{size:`small`,tone:`muted`,children:E?`Press or type the slot ${e} replaces.`:`Saved colours · type ${p(f.length)}`}),_&&e&&(E?(0,h.jsx)(r,{size:`small`,variant:`link-neutral`,onClick:()=>D(!1),children:`Cancel`}):(0,h.jsx)(r,{size:`small`,variant:`link`,onClick:()=>D(!0),children:`Save to a slot`}))]}),(0,h.jsx)(g,{slots:f,value:e??``,saving:E,onPick:j}),_&&!E&&!A&&(0,h.jsx)(r,{size:`small`,variant:`link-neutral`,className:`color-picker-reset`,onClick:()=>_([...l]),children:`Reset to standard colours`})]})})}export{_ as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{br as r}from"./index-CfVw4gte.js";import{t as i}from"./note-open-intent-l6SCo3MI.js";var a=e(t(),1);function o(e,t,n){if(!(n<=0)){if(e===`ArrowDown`)return Math.min(n-1,t+1);if(e===`ArrowUp`)return Math.max(0,t-1);if(e===`Home`)return 0;if(e===`End`)return n-1}}var s=n();function c({label:e,entries:t,display:n=`list`,empty:c,className:l=``,currentKey:u,onOpen:d}){let[f,p]=(0,a.useState)(()=>Math.max(0,t.findIndex(e=>e.key===u))),m=(0,a.useRef)(null);if(!t.length)return(0,s.jsx)(s.Fragment,{children:c});let h=Math.min(f,t.length-1),g=(e,n)=>{if(e.defaultPrevented||e.nativeEvent.isComposing||e.altKey||e.shiftKey)return;if(e.key===`Enter`){e.preventDefault(),e.repeat||d(t[n].key,i(e));return}if(e.metaKey||e.ctrlKey)return;let r=o(e.key,n,t.length);r!==void 0&&(e.preventDefault(),e.stopPropagation(),p(r),m.current?.querySelectorAll(`.contents-view-row`)[r]?.focus())};return(0,s.jsx)(`ul`,{ref:m,className:`contents-view contents-view-${n} ${l}`.trim(),"aria-label":e,children:t.map((e,t)=>(0,s.jsx)(`li`,{className:`contents-view-item${e.muted?` muted`:``}`,children:(0,s.jsxs)(r,{variant:`ghost`,size:`small`,className:`contents-view-row`,"aria-current":e.key===u?`true`:void 0,tabIndex:t===h?0:-1,onFocus:()=>p(t),onKeyDown:e=>g(e,t),onClick:t=>d(e.key,i(t)),onAuxClick:t=>{t.button===1&&(t.preventDefault(),d(e.key,`new`))},children:[(0,s.jsx)(`span`,{className:`contents-view-icon`,"aria-hidden":`true`,children:e.icon}),(0,s.jsx)(`span`,{className:`contents-view-name`,children:e.name}),e.caption&&(0,s.jsx)(`span`,{className:`contents-view-caption`,children:e.caption})]})},e.key))})}export{c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.contents-view{min-width:0;margin:0;padding:6px;list-style:none}.contents-view-item{min-width:0}.ui-button.contents-view-row{width:100%;min-width:0;height:34px;color:var(--ui-text);font-size:var(--ui-font-size-body);text-align:left;grid-template-columns:18px minmax(0,1fr) auto;justify-content:stretch;gap:8px;padding:0 8px;font-weight:400;display:grid}.ui-button.contents-view-row:focus-visible:where([data-focus-ring] *):not(:disabled){color:var(--ui-text-strong);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.ui-button.contents-view-row:active:not(:disabled){transform:none}.ui-button.contents-view-row[aria-current=true]{color:var(--ui-text-strong);background:var(--surface-active)}.contents-view-icon{color:var(--accent);align-items:center;display:flex}.contents-view-icon>svg{width:16px;height:16px}.contents-view-name,.contents-view-caption{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.contents-view-caption{color:var(--text-faint);font-size:var(--ui-font-size-caption);font-variant-numeric:tabular-nums}.contents-view-item.muted .contents-view-row{color:var(--text-faint)}.contents-view-item.muted .contents-view-icon{color:color-mix(in srgb, var(--accent) 55%, var(--text-faint))}@media (width<=900px),(hover:none),(pointer:coarse){.contents-view{padding:4px 0}.contents-view-item{border-bottom:1px solid var(--border);border-radius:0}.ui-button.contents-view-row{height:auto;min-height:48px;font-size:var(--ui-font-size-body);border-radius:0;gap:12px;padding:8px 16px}.contents-view-icon>svg{width:18px;height:18px}.contents-view-caption{font-size:var(--ui-font-size-small)}}
|
package/public/assets/{conversation-debug-panel-zsrBEMxW.js → conversation-debug-panel-C73_GL9P.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{Bl as r,Ca as i,Ul as a,Wl as o,ba as s,jd as c,va as l}from"./logic-CiFwn-O5.js";import{t as u}from"./markdown-message-BmuXZdEl.js";import{Cn as d,br as f,ft as p}from"./index-CfVw4gte.js";var m=e(t(),1);function h(e,t){if(!e)return;let n=e=>`${(e/1e3).toFixed(1)} s`,r=e.steps.length,i=[`${r} model ${r===1?`step`:`steps`}`,n(e.durationMs)];return e.routingMs!==void 0&&i.push(`routing ${n(e.routingMs)}`),r&&i.push(`slowest step ${n(Math.max(...e.steps.map(e=>e.durationMs)))}`),t?.inputTokens&&i.push(`${Math.round((t.cachedInputTokens??0)/t.inputTokens*100)}% input cached`),i.join(` · `)}var g=n(),_=[];function v({open:e,prefetch:t=!1,vaultId:n,sessionId:u,liveRound:f,refreshVersion:h=0,bodyRef:v,toggleRequest:S,highlightedRoundIndex:C,onScroll:w,onRoundsChange:T,onExpandedRoundsChange:E,onActiveRoundChange:D,onHoveredRoundChange:O,onToggleRequestHandled:k,onClose:A}){let[j,M]=(0,m.useState)(),[N,P]=(0,m.useState)(),[F,I]=(0,m.useState)(!1),[L,R]=a(s,{min:440,max:900}),[z,B]=(0,m.useState)(()=>new Set),[V,H]=(0,m.useState)(),U=(0,m.useRef)(void 0),W=(0,m.useRef)(null),G=j?.sessionId===u?j.rounds:_,K=(0,m.useMemo)(()=>y(G,f),[G,f]);(0,m.useEffect)(()=>{if(!e&&!t||!u){M(void 0),P(void 0),I(!1);return}let r=new AbortController;return I(!0),P(void 0),U.current!==u&&M(void 0),i(u,n,(e,t)=>c(e,{...t,signal:r.signal})).then(e=>{U.current=u,M(e)}).catch(e=>{r.signal.aborted||P(e instanceof Error?e.message:String(e))}).finally(()=>{r.signal.aborted||I(!1)}),()=>r.abort()},[e,t,u,n,h]),(0,m.useEffect)(()=>{T?.(K)},[K,T]),(0,m.useEffect)(()=>{if(O?.(void 0),!e){E?.([]),D?.(void 0);return}let t=new Set(r(l,{vaultId:n,suffix:u})),i=[...t].at(-1);B(t),H(i),E?.([...t]),D?.(i)},[e,u,n]),(0,m.useEffect)(()=>{if(!e||!f)return;let t=K.findIndex(e=>b(e,f));t<0||(B(e=>{if(e.has(t))return e;let r=new Set(e).add(t);return o(l,[...r],{vaultId:n,suffix:u}),E?.([...r]),r}),H(t),D?.(t),requestAnimationFrame(()=>W.current?.querySelector(`[data-debug-round-index="${t}"]`)?.scrollIntoView({block:`nearest`})))},[e,u,n,f?.id]),(0,m.useEffect)(()=>{e&&S&&(q(S.index),k?.())},[e,S?.id]);function q(e){let t=new Set(z),r=!t.has(e);r?t.add(e):t.delete(e);let i=r?e:V===e?[...t].at(-1):V;B(t),H(i),o(l,[...t],{vaultId:n,suffix:u}),E?.([...t]),D?.(i)}return e?(0,g.jsx)(`div`,{ref:W,className:`conversation-debug-pane`,"aria-label":`Conversation debug panel`,children:(0,g.jsxs)(p,{className:`notes-panel conversation-log-panel`,title:`Conversation debug`,subtitle:`${u} · session and trace logs`,bodyClassName:`conversation-debug-content`,bodyLabel:`Conversation logs`,bodyRef:v,onBodyScroll:w,onClose:A,closeLabel:`Close conversation debug`,resize:{label:`Resize conversation debug`,value:L,min:440,max:900,onChange:R},children:[F&&!K.length?(0,g.jsx)(d,{status:`loading`,density:`inline`,children:`Loading conversation logs…`}):N?(0,g.jsx)(d,{status:`error`,density:`inline`,children:N}):j&&!K.length?(0,g.jsx)(d,{status:`empty`,density:`inline`,children:`No logged rounds for this conversation.`}):null,K.map((e,t)=>(0,g.jsx)(x,{round:e,number:t+1,expanded:z.has(t),active:V===t,highlighted:C===t,onToggle:()=>q(t),onHover:e=>O?.(e?t:void 0)},e.id))]})}):null}function y(e,t){if(!t)return e;let n=e.findIndex(e=>b(e,t));return n<0?[...e,t]:t.status!==`incomplete`&&e[n]?.status!==`incomplete`&&e[n]?.status!==`untraced`?e:e.map((e,r)=>r===n?{...e,...t}:e)}function b(e,t){return e.id===t.id||!!(e.traceId&&t.traceId&&e.traceId===t.traceId)}function x({round:e,number:t,expanded:n,active:r,highlighted:i,onToggle:a,onHover:o}){let s=S(e,t);return(0,g.jsxs)(`section`,{"data-debug-round-index":t-1,className:`debug-round${n?` expanded`:``}${r?` active`:``}${i?` hovered`:``}`,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,g.jsx)(`header`,{children:(0,g.jsxs)(f,{variant:`ghost`,className:`debug-round-toggle`,"aria-expanded":n,onClick:a,children:[(0,g.jsx)(`span`,{className:`debug-round-chevron`,"aria-hidden":`true`,children:`›`}),(0,g.jsxs)(`span`,{className:`debug-round-heading`,children:[(0,g.jsx)(`strong`,{children:s}),(0,g.jsx)(`code`,{title:e.id,children:`round-${String(t).padStart(3,`0`)}`})]}),(0,g.jsx)(`span`,{className:`debug-status ${e.status}`,children:e.status})]})}),(0,g.jsxs)(`div`,{className:`debug-round-meta`,children:[e.timestamp&&(0,g.jsx)(`time`,{dateTime:e.timestamp,children:new Date(e.timestamp).toLocaleString()}),e.vaultId&&(0,g.jsxs)(`span`,{children:[`Vault `,e.vaultId]}),e.profile&&(0,g.jsxs)(`span`,{title:e.profile.revision,children:[`Agent: `,e.profile.title,` · `,e.profile.reason,e.profile.router?.modelId?` · ${e.profile.router.modelId}`:``,e.profile.router?.fallback?` · ${e.profile.router.fallback}`:``]}),e.usage&&(0,g.jsxs)(`span`,{children:[e.usage.inputTokens.toLocaleString(),` in · `,e.usage.outputTokens.toLocaleString(),` out`]}),e.toolCalls!==void 0&&(0,g.jsxs)(`span`,{children:[e.toolCalls,` `,e.toolCalls===1?`tool call`:`tool calls`]}),h(e.performance,e.usage)&&(0,g.jsx)(`span`,{children:h(e.performance,e.usage)}),e.traceId&&(0,g.jsxs)(`code`,{title:e.traceId,children:[`Trace `,e.traceId]})]}),n&&(0,g.jsxs)(g.Fragment,{children:[e.error&&(0,g.jsxs)(`div`,{className:`debug-round-error`,children:[(0,g.jsx)(`strong`,{children:e.error.name??`Error`}),(0,g.jsx)(`span`,{children:e.error.message})]}),(0,g.jsxs)(`div`,{className:`debug-round-items`,children:[e.items.map((t,n)=>(0,g.jsx)(C,{item:t},`${e.id}-${n}`)),!e.items.length&&!e.error&&(0,g.jsx)(d,{status:`empty`,density:`inline`,children:`No persisted session items.`})]})]})]})}function S(e,t){let n=e.items.find(e=>e.kind===`message`&&e.role===`user`&&e.content?.trim());if(!n?.content)return`Round ${t}`;let r=n.content.replace(/\s+/g,` `).trim().split(` `);return`Round ${t} - ${r.slice(0,7).join(` `)}${r.length>7?`…`:``}`}function C({item:e}){return e.kind===`message`?(0,g.jsxs)(`article`,{className:`debug-message ${e.role??`unknown`}`,children:[(0,g.jsxs)(`header`,{children:[(0,g.jsx)(`strong`,{children:e.role===`user`?`User`:e.role===`assistant`?`Assistant`:e.role??`Message`}),e.status&&(0,g.jsx)(`span`,{children:e.status})]}),(0,g.jsx)(`div`,{className:`debug-message-body`,children:(0,g.jsx)(u,{content:e.content||`*(empty message)*`,remoteImages:`link`})}),(0,g.jsx)(T,{value:e.raw})]}):e.kind===`tool_call`||e.kind===`tool_result`?(0,g.jsx)(w,{item:e}):(0,g.jsxs)(`article`,{className:`debug-tool other`,children:[(0,g.jsx)(`header`,{children:(0,g.jsx)(`span`,{children:`Other log item`})}),(0,g.jsx)(E,{value:e.raw})]})}function w({item:e}){let[t,n]=(0,m.useState)(!1),r=e.kind===`tool_call`?`Tool call`:`Tool result`;return(0,g.jsxs)(`article`,{className:`debug-tool ${e.kind}${t?` expanded`:``}`,children:[(0,g.jsxs)(f,{variant:`ghost`,className:`debug-tool-toggle`,"aria-label":`${r} ${e.name??`unknown`}`,"aria-expanded":t,onClick:()=>n(e=>!e),children:[(0,g.jsx)(`span`,{className:`debug-tool-chevron`,"aria-hidden":`true`,children:`›`}),(0,g.jsx)(`span`,{children:r}),(0,g.jsx)(`code`,{children:e.name??`unknown`}),e.status&&(0,g.jsx)(`em`,{children:e.status})]}),t&&(0,g.jsxs)(`div`,{className:`debug-tool-details`,children:[e.callId&&(0,g.jsx)(`small`,{children:e.callId}),(0,g.jsx)(E,{value:e.payload}),(0,g.jsx)(T,{value:e.raw})]})]})}function T({value:e}){return(0,g.jsxs)(`details`,{className:`debug-raw`,children:[(0,g.jsx)(`summary`,{children:`Raw log entry`}),(0,g.jsx)(E,{value:e})]})}function E({value:e}){return(0,g.jsx)(`pre`,{children:D(e)})}function D(e){if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)??String(e)}catch{return String(e)}}export{v as ConversationDebugPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.editor-tools-configurator-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.editor-tools-configurator-body{gap:18px;padding-top:14px;display:grid}.editor-tools-configurator-section{gap:8px;display:grid}.editor-tools-configurator-mode{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}.editor-tools-row{border:1px solid var(--border-strong);background:var(--navigation);border-radius:8px;flex-wrap:wrap;align-items:center;gap:2px;min-height:46px;margin:0;padding:4px 6px;list-style:none;display:flex}.editor-tools-row.drop-end{box-shadow:inset -2px 0 0 var(--accent)}.editor-tools-row-empty{padding:0 6px}.editor-tools-row-item{cursor:grab;display:flex;position:relative}.editor-tools-row-item.dragging,.editor-tools-pool-item.dragging{opacity:.4}.editor-tools-row-item.drop-before:before{content:"";background:var(--accent);border-radius:1px;width:2px;position:absolute;top:2px;bottom:2px;left:-2px}.editor-tools-row-item .editor-tools-remove.editor-tools-remove{z-index:1;opacity:0;border:1px solid var(--ui-control-border);background:var(--ui-control-bg);border-radius:50%;width:16px;min-width:16px;height:16px;min-height:16px;padding:0;position:absolute;top:-6px;right:-6px}.editor-tools-row-item .editor-tools-remove.editor-tools-remove>svg{width:10px;height:10px}.editor-tools-row-item:
|
|
1
|
+
.editor-tools-configurator-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.editor-tools-configurator-body{gap:18px;padding-top:14px;display:grid}.editor-tools-configurator-section{gap:8px;display:grid}.editor-tools-configurator-mode{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}.editor-tools-row{border:1px solid var(--border-strong);background:var(--navigation);border-radius:8px;flex-wrap:wrap;align-items:center;gap:2px;min-height:46px;margin:0;padding:4px 6px;list-style:none;display:flex}.editor-tools-row.drop-end{box-shadow:inset -2px 0 0 var(--accent)}.editor-tools-row-empty{padding:0 6px}.editor-tools-row-item{cursor:grab;display:flex;position:relative}.editor-tools-row-item.dragging,.editor-tools-pool-item.dragging{opacity:.4}.editor-tools-row-item.drop-before:before{content:"";background:var(--accent);border-radius:1px;width:2px;position:absolute;top:2px;bottom:2px;left:-2px}.editor-tools-row-item .editor-tools-remove.editor-tools-remove{z-index:1;opacity:0;border:1px solid var(--ui-control-border);background:var(--ui-control-bg);border-radius:50%;width:16px;min-width:16px;height:16px;min-height:16px;padding:0;position:absolute;top:-6px;right:-6px}.editor-tools-row-item .editor-tools-remove.editor-tools-remove>svg{width:10px;height:10px}.editor-tools-row-item:focus-within .editor-tools-remove{opacity:1}@media (hover:hover){.editor-tools-row-item:hover .editor-tools-remove{opacity:1}}.editor-tools-pool{border:1px dashed var(--border-strong);border-radius:8px;flex-wrap:wrap;gap:4px;padding:8px;transition:border-color .16s,background-color .16s;display:flex}.editor-tools-pool.drop-over{border-color:var(--accent);background:var(--accent-soft)}.editor-tools-pool-item{cursor:grab;display:flex}.editor-tools-pool-item .editor-tools-tile{border:1px solid var(--ui-control-border);background:var(--ui-control-bg)}.editor-tools-separator-mark{background:var(--text-soft);width:1px;height:18px}.editor-tools-overlay{cursor:grabbing;border:1px solid var(--ui-control-border-hover);background:var(--ui-control-bg-hover);box-shadow:0 10px 18px color-mix(in srgb, var(--shadow-ink) 60%, transparent)}.popover-surface.editor-tools-tip{max-width:min(300px,100vw - 24px);color:var(--ui-text);font-size:var(--ui-font-size-body);pointer-events:none;padding:6px 10px;line-height:1.4}.editor-tools-tip strong{font-weight:600}.mcp-settings-value{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.mcp-settings-value>.ui-input{flex:260px;min-width:0}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{a as r,c as i,d as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./settings-CxK-AM0A.js";import{$n as f,Bn as p,Cr as m,Er as h,Gn as g,I as _,Jn as v,Ln as y,Sr as b,Tr as x,Xn as S,Yn as C,_r as w,ar as T,br as E,cn as D,cr as O,fr as k,gn as A,hr as j,ir as M,jt as N,lr as P,nt as ee,pr as te,qn as F,sr as I,un as L,ur as R,vr as ne,xr as z,yr as re}from"./index-CfVw4gte.js";import{S as ie,_ as ae,b as oe,l as se,p as ce,u as le,v as ue,x as de,y as fe}from"./interaction-BeNMN0Kn.js";import{t as pe}from"./EyeSlash.es-DfTto7s1.js";import{t as me}from"./Prohibit.es-pwiGfWLj.js";import{a as he,c as ge,i as _e,l as ve,n as ye,o as B,s as be,u as xe}from"./toolbar-items-DtGvJf3U.js";import{Bc as Se,Ic as Ce,Ka as we,Od as V,Tl as Te,Xu as Ee,bd as De,kd as Oe,kl as ke,t as Ae,ud as je,wd as Me,zc as Ne}from"./logic-CiFwn-O5.js";import{I as Pe,L as Fe}from"./icons-BQSaMzmI.js";import{n as Ie}from"./feature-switch-section-DWkHmh9Q.js";import{t as Le}from"./Plus.es-aakfbgmy.js";import{t as Re}from"./Trash.es-chxTwNhO.js";import{t as H}from"./settings-edit-dialog-CE5ZTszW.js";import{n as ze}from"./settings-actions-DnTiS3-h.js";function Be(){return Ie({title:`AI Agent`,label:`Enable the agent`,description:`Turns on the AI and agentic capabilities of the app: the Chat page, the assistant that floats over every other page, and the requests they make to the agent. Off, they are hidden and the API refuses them.`,operation:`set_chat_enabled`,checked:we.isEnabled})}var U=e(t(),1),W=n(),Ve=`Separator`,He=`A divider between groups of tools. Add as many as you like.`;function Ue(e){if(`separator`in e)return{name:Ve,description:He};let{name:t,description:n}=xe[e.tool];return{name:t,description:n}}var G=(0,U.forwardRef)(function({entry:e,className:t,onPointerDown:n,onFocus:r,onBlur:i,...a},o){let{name:s,description:c}=Ue(e),l=`separator`in e?void 0:xe[e.tool].icon,u=(0,U.useRef)(null),[d,f]=(0,U.useState)(!1),p=(0,U.useMemo)(()=>({getBoundingClientRect:()=>u.current?.getBoundingClientRect()??new DOMRect}),[]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(z,{ref:e=>{u.current=e,typeof o==`function`?o(e):o&&(o.current=e)},variant:`ghost`,size:`small`,"aria-label":s,title:``,className:[`editor-tools-tile`,t].filter(Boolean).join(` `),onPointerEnter:e=>{e.pointerType===`mouse`&&f(!0)},onPointerLeave:()=>f(!1),onPointerDown:e=>{f(!1),n?.(e)},onFocus:e=>{Ae(e.currentTarget)&&f(!0),r?.(e)},onBlur:e=>{f(!1),i?.(e)},...a,children:l?(0,W.jsx)(l,{size:18,"aria-hidden":`true`}):(0,W.jsx)(`span`,{className:`editor-tools-separator-mark`,"aria-hidden":`true`})}),d&&(0,W.jsx)(b,{open:!0,onOpenChange:e=>{e||f(!1)},anchor:p,placement:`bottom`,offset:6,children:(0,W.jsxs)(m,{className:`editor-tools-tip`,role:`tooltip`,children:[(0,W.jsx)(`strong`,{children:s}),` `,c]})})]})}),We=e=>`pool-${`separator`in e?`separator`:e.tool}`;function Ge({entries:e,disabled:t,onAdd:n}){let r=(0,U.useRef)(null),[i,a]=(0,U.useState)(0),{setNodeRef:o,isOver:s}=oe({id:`pool`,disabled:t}),c=Math.min(i,Math.max(0,e.length-1)),l=e=>{a(e),requestAnimationFrame(()=>r.current?.querySelectorAll(`[data-pool-tile]`)[e]?.focus())};function u(t){let n=[...r.current?.querySelectorAll(`[data-pool-tile]`)??[]].indexOf(document.activeElement);if(n<0||t.altKey||t.ctrlKey||t.metaKey)return;let i=e.length-1,a=t.key===`ArrowRight`||t.key===`ArrowDown`?Math.min(i,n+1):t.key===`ArrowLeft`||t.key===`ArrowUp`?Math.max(0,n-1):t.key===`Home`?0:t.key===`End`?i:void 0;a!==void 0&&(t.preventDefault(),l(a))}return(0,W.jsx)(`div`,{ref:e=>{r.current=e,o(e)},className:`editor-tools-pool${s?` drop-over`:``}`,role:`group`,"aria-label":`Available tools`,onKeyDown:u,children:e.map((e,r)=>(0,W.jsx)(Ke,{entry:e,tabbable:r===c,disabled:t,onFocus:()=>a(r),onAdd:()=>n(e)},We(e)))})}function Ke({entry:e,tabbable:t,disabled:n,onFocus:r,onAdd:i}){let a=fe({id:We(e),disabled:n,data:{from:`pool`,entry:e}});return(0,W.jsx)(`span`,{ref:a.setNodeRef,className:`editor-tools-pool-item${a.isDragging?` dragging`:``}`,children:(0,W.jsx)(G,{...a.listeners,entry:e,"data-pool-tile":``,tabIndex:t?0:-1,disabled:n,onFocus:r,onClick:i})})}var qe=e=>`row-${e}`;function Je(e,t,n){if(!e)return null;if(e.id===`pool`)return{kind:`pool`};if(e.id===`row`)return{kind:`row`,index:n};let r=/^row-(\d+)$/.exec(e.id);if(!r)return null;let i=Number(r[1]),a=t!==void 0&&t>e.rect.left+e.rect.width/2;return{kind:`row`,index:Math.min(n,i+ +!!a)}}function Ye({entries:e,dropIndex:t,disabled:n,onChange:r}){let i=(0,U.useRef)(null),[a,o]=(0,U.useState)(0),{setNodeRef:s,isOver:c}=oe({id:`row`,disabled:n}),l=Math.min(a,Math.max(0,e.length-1)),u=e=>{o(e),requestAnimationFrame(()=>i.current?.querySelectorAll(`[data-row-tile]`)[e]?.focus())};function d(t){let a=[...i.current?.querySelectorAll(`[data-row-tile]`)??[]].indexOf(document.activeElement);if(a<0||n)return;let o=e.length-1,s=!0;t.altKey&&t.key===`ArrowLeft`&&a>0?(r(_e(e,a,a-1)),u(a-1)):t.altKey&&t.key===`ArrowRight`&&a<o?(r(_e(e,a,a+2)),u(a+1)):t.altKey?s=!1:t.key===`ArrowLeft`?u(Math.max(0,a-1)):t.key===`ArrowRight`?u(Math.min(o,a+1)):t.key===`Home`?u(0):t.key===`End`?u(o):t.key===`Delete`||t.key===`Backspace`?(r(B(e,a)),u(Math.max(0,Math.min(a,o-1)))):s=!1,s&&t.preventDefault()}return(0,W.jsxs)(`ol`,{ref:e=>{i.current=e,s(e)},className:`editor-tools-row${c&&t===e.length?` drop-end`:``}`,"aria-label":`Toolbar`,onKeyDown:d,children:[e.map((i,a)=>(0,W.jsx)(Xe,{entry:i,index:a,tabbable:a===l,disabled:n,dropBefore:t===a,onFocus:()=>o(a),onRemove:()=>{r(B(e,a)),u(Math.max(0,Math.min(a,e.length-2)))}},a)),!e.length&&(0,W.jsx)(`li`,{className:`editor-tools-row-empty`,children:(0,W.jsx)(R,{size:`caption`,tone:`muted`,children:`Drag tools here, or press Enter on one below.`})})]})}function Xe({entry:e,index:t,tabbable:n,disabled:r,dropBefore:i,onFocus:a,onRemove:o}){let s=qe(t),c=fe({id:s,disabled:r,data:{from:`row`,index:t,entry:e}}),l=oe({id:s,disabled:r}),{name:u}=Ue(e);return(0,W.jsxs)(`li`,{ref:e=>{c.setNodeRef(e),l.setNodeRef(e)},className:`editor-tools-row-item${c.isDragging?` dragging`:``}${i?` drop-before`:``}`,children:[(0,W.jsx)(G,{...c.listeners,entry:e,"data-row-tile":``,tabIndex:n?0:-1,disabled:r,onFocus:a}),(0,W.jsx)(z,{variant:`ghost`,size:`compact`,tabIndex:-1,className:`editor-tools-remove`,"aria-label":`Remove ${u}`,title:`Remove ${u} (Delete)`,disabled:r,onMouseDown:e=>e.stopPropagation(),onClick:o,children:(0,W.jsx)(Fe,{"aria-hidden":`true`})})]})}function Ze(e){let{settings:t,ready:n,error:r,save:i}=D(),a=t.toolbars,o=ge(a,e),s=ve(a,e),c=n=>{let r=a?.[e]??{},o=n.items===void 0?r.items:n.items===null?void 0:be(n.items),s=n.whenUnavailable===void 0?r.whenUnavailable:n.whenUnavailable??void 0,c={...o?{items:o}:{},...s?{whenUnavailable:s}:{}},l={...a};delete l[e];let u=Object.keys(c).length?{...l,[e]:c}:l,d={...t};Object.keys(u).length?d.toolbars=u:delete d.toolbars,i(d)};return{entries:o,mode:s,ready:n,error:r,setEntries:e=>c({items:e}),setMode:e=>c({whenUnavailable:e}),copyFrom:e=>c({items:ge(a,e),whenUnavailable:ve(a,e)}),reset:()=>c({items:null,whenUnavailable:null})}}var Qe=[{value:`desktop`,label:`Desktop`},{value:`mobile`,label:`Mobile`}],$e=[{value:`disable`,label:`Disable`,icon:(0,W.jsx)(me,{})},{value:`hide`,label:`Hide`,icon:(0,W.jsx)(pe,{})}],et={separator:!0},tt=`Drag a tool into the toolbar, or press Enter on it to add it at the end.`,nt=e=>{let t=ae(e),n=t.find(({id:e})=>String(e).startsWith(`row-`));return n?[n]:t.length?t:ue(e)};function rt({onClose:e}){let[t,n]=(0,U.useState)(`desktop`),r=Ze(t),[i,a]=(0,U.useState)(),[o,s]=(0,U.useState)(null),c=ie(de(ce,{activationConstraint:{distance:5}})),l=!r.ready,u=[et,...he(r.entries).map(e=>({tool:e}))],d=e=>{let t=e.active.rect.current.translated;return Je(e.over?{id:String(e.over.id),rect:e.over.rect}:null,t?t.left+t.width/2:void 0,r.entries.length)},f=e=>s(d(e)),p=e=>{let t=e.active.data.current,n=d(e);a(void 0),s(null),t&&n&&(t.from===`pool`&&n.kind===`row`?r.setEntries(ye(r.entries,t.entry,n.index)):t.from===`row`&&t.index!==void 0&&n.kind===`row`?r.setEntries(_e(r.entries,t.index,n.index)):t.from===`row`&&t.index!==void 0&&n.kind===`pool`&&r.setEntries(B(r.entries,t.index)))},m=()=>{a(void 0),s(null)},h=Qe.find(e=>e.value!==t);return(0,W.jsx)(v,{className:`editor-tools-configurator`,title:`Configure editor tools`,description:`Changes save immediately.`,closeLabel:`Close editor tools configuration`,size:`large`,onCancel:e,children:(0,W.jsx)(A,{label:`Toolbar surface`,options:Qe,value:t,onChange:e=>n(e),action:(0,W.jsxs)(`div`,{className:`editor-tools-configurator-actions`,children:[(0,W.jsxs)(E,{variant:`ghost`,size:`small`,disabled:l,onClick:()=>r.copyFrom(h.value),children:[`Copy from `,h.label.toLowerCase()]}),(0,W.jsx)(E,{variant:`ghost`,size:`small`,disabled:l,onClick:r.reset,children:`Reset to default`})]}),children:(0,W.jsxs)(se,{sensors:c,collisionDetection:nt,onDragStart:e=>a(e.active.data.current),onDragMove:f,onDragOver:f,onDragEnd:p,onDragCancel:m,children:[(0,W.jsxs)(`div`,{className:`editor-tools-configurator-body`,"data-keyboard-layer":i?`true`:void 0,children:[(0,W.jsxs)(`section`,{className:`editor-tools-configurator-section`,children:[(0,W.jsx)(P,{as:`h3`,size:`subsection`,children:`Toolbar`}),(0,W.jsx)(Ye,{entries:r.entries,dropIndex:i&&o?.kind===`row`?o.index:void 0,disabled:l,onChange:r.setEntries})]}),(0,W.jsxs)(`section`,{className:`editor-tools-configurator-section`,children:[(0,W.jsx)(P,{as:`h3`,size:`subsection`,children:`Available tools`}),(0,W.jsx)(Ge,{entries:u,disabled:l,onAdd:e=>r.setEntries(ye(r.entries,e,r.entries.length))}),(0,W.jsx)(R,{as:`p`,size:`caption`,tone:`muted`,children:tt})]}),(0,W.jsxs)(`section`,{className:`editor-tools-configurator-section editor-tools-configurator-mode`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(P,{as:`h3`,size:`subsection`,children:`When a tool does not apply`}),(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`Each tool decides from the caret and the selection whether it applies. Disabled tools keep their place; hidden ones leave the row.`})]}),(0,W.jsx)(O,{label:`When a tool does not apply`,value:r.mode,options:$e,disabled:l,onValueChange:r.setMode})]}),r.error&&(0,W.jsxs)(R,{as:`p`,size:`caption`,tone:`danger`,role:`alert`,children:[`Unavailable: `,r.error]})]}),(0,W.jsx)(le,{dropAnimation:null,children:i?(0,W.jsx)(G,{entry:i.entry,tabIndex:-1,className:`editor-tools-overlay`}):null})]})})})}function it(){let[e,t]=(0,U.useState)(!1);return(0,W.jsxs)(i,{label:`Editor tools`,description:`Choose and order the note editor's tools, for the desktop and for the phone.`,persistence:`immediate`,availableOnMobile:!1,layout:`control`,children:[(0,W.jsx)(E,{onClick:()=>t(!0),children:`Configure editor tools…`}),e&&(0,W.jsx)(rt,{onClose:()=>t(!1)})]})}function at(e=fetch){return V(`${De}/vault`,e)}function ot(e,t=fetch){return V(Oe(e,`entity`),t)}var st={string:`Text`,number:`Number`,boolean:`Boolean`};function ct({title:e,description:t,variables:n,disabled:r,loading:i,externalError:a,bare:o,onSave:s}){let[c,l]=(0,U.useState)(),[u,d]=(0,U.useState)(),[p,m]=(0,U.useState)(!1),[h,g]=(0,U.useState)(!1),[_,y]=(0,U.useState)(),b=(0,U.useRef)(null),x=(0,U.useMemo)(()=>lt(Object.entries(n)),[n]);function S(e){l(e?{originalKey:e[0],key:e[0],type:typeof e[1],value:String(e[1])}:{key:``,type:`string`,value:``}),y(void 0)}function C(){if(!c)return;let e=c.originalKey?x.find(([e])=>e===c.originalKey):void 0;c.key!==(e?.[0]??``)||c.value!==(e?String(e[1]):``)||c.type!==(e?typeof e[1]:`string`)?m(!0):l(void 0)}async function T(e){try{g(!0),await s(e),l(void 0),d(void 0),y(void 0)}catch(e){y(e instanceof Error?e.message:String(e))}finally{g(!1)}}function D(){if(!c)return;let e;try{e=ut(x,c)}catch(e){y(e instanceof Error?e.message:String(e));return}T(e)}function O(e){l(t=>t&&{...t,...e}),y(void 0)}let A=`agent-variables-${e.toLowerCase().replaceAll(` `,`-`)}`,M=x.length===0&&!i&&!_&&!a,N=x.map(e=>({id:e[0],title:(0,W.jsxs)(`span`,{className:`agent-variable-name`,children:[e[0],(0,W.jsx)(R,{as:`span`,size:`caption`,tone:`muted`,children:st[typeof e[1]]})]}),subtitle:String(e[1]),ariaLabel:`Edit variable ${e[0]}`,disabled:r||h,actions:(0,W.jsx)(z,{size:`small`,variant:`ghost`,"aria-label":`Remove variable ${e[0]}`,disabled:r||h,onClick:()=>d(e[0]),children:(0,W.jsx)(Re,{"aria-hidden":`true`})})}));return(0,W.jsxs)(`section`,{className:`${o?`settings-edit-list`:`agent-variables`}${M?` is-empty`:``}`,"aria-labelledby":o?void 0:A,"aria-label":o?e:void 0,children:[(0,W.jsxs)(`div`,{className:o?`settings-edit-list-actions`:`agent-variables-heading`,children:[o?M&&(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`No variables yet.`}):(0,W.jsxs)(`div`,{children:[(0,W.jsx)(P,{as:`h3`,size:`subsection`,id:A,children:e}),(0,W.jsx)(R,{as:`p`,tone:`muted`,children:t})]}),(0,W.jsxs)(E,{size:`small`,disabled:r||i||h||x.length>=100,onClick:()=>S(),children:[(0,W.jsx)(Le,{"aria-hidden":`true`}),` Add variable`]})]}),i?(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`Loading variables…`}):N.length>0&&(0,W.jsx)(ee,{className:`settings-simple-list`,"aria-label":e,trailingSeparator:!1,items:N,onSelect:e=>S(x.find(t=>t[0]===e))}),(_||a)&&!c&&(0,W.jsx)(R,{as:`p`,size:`caption`,tone:`danger`,role:`alert`,children:_??a}),c&&(0,W.jsx)(v,{title:c.originalKey?`Edit variable`:`Add variable`,description:`Static data the agent can read.`,size:`small`,busy:h,initialFocusRef:b,onCancel:C,actions:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(E,{variant:`link-neutral`,disabled:h,onClick:C,children:`Cancel`}),(0,W.jsx)(f,{children:(0,W.jsx)(E,{variant:`primary`,disabled:h,onClick:D,children:h?`Saving…`:`Save variable`})})]}),children:(0,W.jsxs)(`div`,{className:`agent-variable-form`,children:[(0,W.jsx)(k,{label:`Key`,description:`Letters, numbers, hyphens, or underscores, starting with a letter.`,children:(0,W.jsx)(j,{ref:b,value:c.key,maxLength:64,autoComplete:`off`,disabled:h,onChange:e=>O({key:e.target.value})})}),(0,W.jsx)(k,{label:`Type`,children:(0,W.jsxs)(w,{value:c.type,disabled:h,onChange:e=>O({type:e.target.value,value:e.target.value===`boolean`?`false`:``}),children:[(0,W.jsx)(`option`,{value:`string`,children:`Text`}),(0,W.jsx)(`option`,{value:`number`,children:`Number`}),(0,W.jsx)(`option`,{value:`boolean`,children:`Boolean`})]})}),(0,W.jsx)(k,{label:`Value`,children:c.type===`boolean`?(0,W.jsxs)(w,{value:c.value,disabled:h,onChange:e=>O({value:e.target.value}),children:[(0,W.jsx)(`option`,{value:`false`,children:`False`}),(0,W.jsx)(`option`,{value:`true`,children:`True`})]}):(0,W.jsx)(j,{value:c.value,disabled:h,inputMode:c.type===`number`?`decimal`:void 0,onChange:e=>O({value:e.target.value})})}),_&&(0,W.jsx)(R,{as:`p`,size:`caption`,tone:`danger`,role:`alert`,children:_})]})}),p&&(0,W.jsx)(F,{title:`Discard variable changes?`,message:`Your unsaved changes will be lost.`,confirmLabel:`Discard`,tone:`warning`,onCancel:()=>m(!1),onConfirm:()=>{m(!1),l(void 0)}}),u&&(0,W.jsx)(F,{title:`Remove '${u}'?`,message:`The agent will no longer see this variable.`,confirmLabel:`Remove variable`,tone:`danger`,busy:h,onCancel:()=>d(void 0),onConfirm:()=>void T(Object.fromEntries(x.filter(([e])=>e!==u)))})]})}function lt(e){return[...e].sort(([e],[t])=>e<t?-1:+(e>t))}function ut(e,t){let n=t.key.normalize(`NFC`);if(!/^[A-Za-z][A-Za-z0-9_-]{0,63}$/.test(n))throw Error(`Invalid key '${t.key}'. Use 1–64 letters, numbers, hyphens, or underscores, starting with a letter.`);let r=e.filter(([e])=>e!==t.originalKey);if(r.some(([e])=>e===n))throw Error(`Variable key '${n}' is duplicated.`);if(r.length>=100)throw Error(`A scope supports at most 100 variables.`);return Object.fromEntries(lt([...r,[n,dt(n,t)]]))}function dt(e,t){if(t.type===`number`){let n=Number(t.value);if(!t.value.trim()||!Number.isFinite(n))throw Error(`${e} must be a finite number.`);return n}if(t.type===`boolean`)return t.value===`true`;let n=t.value.normalize(`NFC`);if(/[\u0000-\u001F\u007F\r\n]/u.test(n))throw Error(`${e} must be single-line text without control characters.`);return n}var K=16384,ft=`No secrets: this is sent to the model.`;function pt({title:e,description:t,instructions:n,disabled:i,loading:o,externalError:s,bare:u,hideWarning:d,autoFocus:f,rows:p=7,onDirtyChange:m,onSave:h}){let g=n??``,[_,v]=(0,U.useState)(g),[y,b]=(0,U.useState)(g),[x,S]=(0,U.useState)(!1),[C,w]=(0,U.useState)(),[T,E]=(0,U.useState)(!1),D=(0,U.useRef)(null),O=_!==y;(0,U.useEffect)(()=>{m?.(O)},[O,m]),(0,U.useEffect)(()=>{f&&D.current?.focus()},[f]),(0,U.useEffect)(()=>{let e=n??``;e!==y&&(v(e),b(e),w(void 0),E(!1))},[y,n]);async function k(){try{let e=mt(_);S(!0),E(!1),await h(e||void 0),v(e),b(e),w(void 0),E(!0)}catch(e){w(e instanceof Error?e.message:String(e)),requestAnimationFrame(()=>D.current?.focus())}finally{S(!1)}}let A=K-new TextEncoder().encode(_).length,j=`agent-instructions-${e.toLowerCase().replaceAll(` `,`-`)}`;return(0,W.jsxs)(`section`,{className:u?`agent-instructions-bare`:`agent-instructions`,"aria-labelledby":u?void 0:j,"aria-label":u?e:void 0,children:[!u&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(P,{as:`h3`,size:`subsection`,id:j,children:e}),(0,W.jsx)(R,{as:`p`,tone:`muted`,children:t})]}),!d&&(0,W.jsx)(R,{as:`p`,size:`caption`,tone:`warning`,children:`Do not enter passwords, tokens, or other secrets. These instructions are included in model requests.`}),o?(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`Loading instructions…`}):(0,W.jsxs)(r,{onSubmit:e=>{e.preventDefault(),k()},children:[(0,W.jsx)(l,{label:u?void 0:`Instructions`,children:(0,W.jsxs)(`div`,{className:`agent-instructions-textarea`,children:[(0,W.jsx)(a,{ref:D,className:`agent-instructions-input`,"aria-label":u?`Instructions`:void 0,rows:p,value:_,"data-popup-autofocus":f?`true`:void 0,disabled:i||x,"aria-invalid":!!C,onChange:e=>{v(e.target.value),w(void 0),E(!1)}}),(0,W.jsxs)(R,{as:`output`,size:`caption`,tone:A<0?`danger`:`muted`,className:`agent-instructions-character-count`,children:[A.toLocaleString(),` characters left`]})]})}),(C||s)&&(0,W.jsx)(R,{as:`p`,size:`caption`,tone:`danger`,role:`alert`,children:C??s}),T&&!O&&(0,W.jsx)(R,{as:`p`,size:`caption`,tone:`success`,role:`status`,children:`Instructions saved.`}),(0,W.jsx)(c,{dirty:O,busy:x,disabled:i,onCancel:()=>{v(y),w(void 0),E(!1)}})]})]})}function mt(e){let t=e.replace(/\r\n?/g,`
|
|
2
|
+
`).normalize(`NFC`).trim();if(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/u.test(t))throw Error(`Instructions contain unsupported control characters.`);if(new TextEncoder().encode(t).length>K)throw Error(`Instructions must not exceed ${K.toLocaleString()} UTF-8 bytes.`);return t}function ht({title:e,description:t,instructions:n,loading:r,disabled:i,externalError:a,onSave:o}){let s=Ee(),c=(n??``).length;return(0,W.jsx)(H,{title:e,description:t,summary:c?`${c.toLocaleString()} characters`:`Empty`,loading:r,mobileSubtitle:ft,className:`instructions-dialog`,children:({close:r,setDirty:c})=>(0,W.jsx)(pt,{title:e,description:t,instructions:n,disabled:i,externalError:a,bare:!0,autoFocus:!0,hideWarning:s,rows:s?4:14,onDirtyChange:c,onSave:async e=>{await o(e),r()}})})}function gt(e,t){return e===0?`None`:`${e.toLocaleString()} ${t}${e===1?``:`s`}`}function _t({bindings:e,entities:t,loading:n,error:r,onAdd:i,onUpdate:a,onRemove:o,bare:s}){let[c,l]=(0,U.useState)(),[u,d]=(0,U.useState)(``),[p,m]=(0,U.useState)(0),[h,g]=(0,U.useState)(!1),[_,y]=(0,U.useState)(),[b,x]=(0,U.useState)(!1),[S,C]=(0,U.useState)(),w=(0,U.useRef)(null),T=(0,U.useMemo)(()=>new Map(t.map(e=>[e.id,e])),[t]),D=(0,U.useMemo)(()=>new Set(e.map(e=>e.entityId).filter(e=>e!==c?.originalId)),[e,c?.originalId]),O=(0,U.useMemo)(()=>{let e=u.trim().toLowerCase();return t.filter(t=>!D.has(t.id)&&(!e||t.id.toLowerCase().includes(e)||t.label.toLowerCase().includes(e)||t.type.toLowerCase().includes(e)))},[t,u,D]);(0,U.useEffect)(()=>{m(e=>Math.min(e,Math.max(0,O.length-1)))},[O.length]);function A(e){l(e?{originalId:e.entityId,...e}:{entityId:``,meaning:``}),d(e?T.get(e.entityId)?.label??e.entityId:``),m(0),y(void 0)}function M(){if(!c)return;let t=c.originalId?e.find(e=>e.entityId===c.originalId):void 0;c.entityId!==(t?.entityId??``)||c.meaning!==(t?.meaning??``)?x(!0):l(void 0)}async function N(){if(!c)return;let e=c.meaning.replace(/\r\n?/g,`
|
|
3
|
+
`).normalize(`NFC`).trim();if(!c.entityId)y(`Select an existing note.`);else if(!e)y(`Describe what this note means to the agent.`);else try{g(!0);let t={entityId:c.entityId,meaning:e};c.originalId?await a(c.originalId,t):await i(t),l(void 0),y(void 0)}catch(e){y(e instanceof Error?e.message:String(e))}finally{g(!1)}}async function te(){if(S)try{g(!0),await o(S),C(void 0),y(void 0)}catch(e){y(e instanceof Error?e.message:String(e))}finally{g(!1)}}let I=e.length===0&&!n&&!_&&!r,L=e.map(e=>{let t=T.get(e.entityId);return{id:e.entityId,title:(0,W.jsx)(`span`,{className:`entity-binding-title`,children:t?(0,W.jsxs)(W.Fragment,{children:[t.label,(0,W.jsx)(R,{as:`span`,size:`caption`,tone:`muted`,children:t.type})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Pe,{"aria-hidden":`true`}),`Missing note`]})}),subtitle:e.entityId,description:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`entity-binding-meaning`,children:e.meaning}),!t&&(0,W.jsx)(R,{as:`span`,size:`caption`,tone:`warning`,className:`entity-binding-warning`,children:`This binding is excluded from agent context until its target exists again or the binding is removed.`})]}),ariaLabel:`Edit binding for ${e.entityId}`,disabled:h,actions:(0,W.jsx)(z,{size:`small`,variant:`ghost`,"aria-label":`Remove binding for ${e.entityId}`,disabled:h,onClick:()=>C(e.entityId),children:(0,W.jsx)(Re,{"aria-hidden":`true`})})}});return(0,W.jsxs)(`section`,{className:`${s?`settings-edit-list`:`entity-bindings`}${I?` is-empty`:``}`,"aria-labelledby":s?void 0:`entity-bindings-title`,"aria-label":s?`Semantic bindings`:void 0,children:[(0,W.jsxs)(`div`,{className:s?`settings-edit-list-actions`:`entity-bindings-heading`,children:[s?I&&(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`No bindings yet.`}):(0,W.jsxs)(`div`,{children:[(0,W.jsx)(P,{as:`h3`,size:`subsection`,id:`entity-bindings-title`,children:`Semantic bindings`}),(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`Teach the agent how natural-language subjects map to existing notes in this vault.`})]}),(0,W.jsxs)(E,{size:`small`,disabled:n||e.length>=100,onClick:()=>A(),children:[(0,W.jsx)(Le,{"aria-hidden":`true`}),` Add binding`]})]}),n?(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`Loading bindings…`}):L.length>0&&(0,W.jsx)(ee,{className:`settings-simple-list`,"aria-label":`Semantic bindings`,trailingSeparator:!1,items:L,onSelect:t=>{let n=e.find(e=>e.entityId===t);n&&A(n)}}),(_||r)&&!c&&(0,W.jsx)(R,{as:`p`,size:`caption`,tone:`danger`,role:`alert`,children:_??r}),c&&(0,W.jsx)(v,{title:c.originalId?`Edit semantic binding`:`Add semantic binding`,description:`Choose an existing note and describe the subject, aliases, or implicit references that should resolve to it.`,size:`medium`,busy:h,initialFocusRef:w,onCancel:M,actions:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(E,{variant:`link-neutral`,disabled:h,onClick:M,children:`Cancel`}),(0,W.jsx)(f,{children:(0,W.jsx)(E,{variant:`primary`,disabled:h,onClick:()=>void N(),children:h?`Saving…`:`Save binding`})})]}),children:(0,W.jsxs)(`div`,{className:`entity-binding-form`,children:[(0,W.jsx)(k,{label:`Find note`,description:`Search by title, ID, or type.`,children:(0,W.jsx)(j,{ref:w,role:`combobox`,"aria-expanded":`true`,"aria-controls":`entity-binding-options`,"aria-activedescendant":O[p]?`entity-binding-option-${O[p].id}`:void 0,autoComplete:`off`,value:u,disabled:h,onChange:e=>{d(e.target.value),m(0),y(void 0)},onKeyDown:e=>{if(O.length&&(e.key===`ArrowDown`&&(e.preventDefault(),m(e=>(e+1)%O.length)),e.key===`ArrowUp`&&(e.preventDefault(),m(e=>(e-1+O.length)%O.length)),e.key===`Enter`)){e.preventDefault();let t=O[p];l(e=>e&&{...e,entityId:t.id}),d(t.label),y(void 0)}}})}),(0,W.jsx)(`div`,{id:`entity-binding-options`,className:`entity-binding-options`,role:`listbox`,"aria-label":`Existing notes`,children:O.length?O.slice(0,100).map((e,t)=>(0,W.jsxs)(`div`,{id:`entity-binding-option-${e.id}`,role:`option`,"aria-selected":c.entityId===e.id,className:`${t===p?`active`:``} ${c.entityId===e.id?`selected`:``}`.trim(),onMouseDown:e=>e.preventDefault(),onClick:()=>{l(t=>t&&{...t,entityId:e.id}),d(e.label),y(void 0)},children:[(0,W.jsx)(`span`,{children:e.label}),(0,W.jsx)(R,{as:`code`,size:`small`,tone:`muted`,monospace:!0,children:e.id}),(0,W.jsx)(R,{as:`small`,size:`caption`,tone:`muted`,children:e.type})]},e.id)):(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`No matching unbound notes.`})}),c.entityId&&(0,W.jsxs)(R,{as:`p`,size:`caption`,tone:`muted`,children:[`Selected note: `,(0,W.jsx)(R,{as:`code`,size:`caption`,tone:`muted`,monospace:!0,children:c.entityId})]}),(0,W.jsx)(k,{label:`Meaning`,description:`Explain how this subject is referred to—for example: “The user speaking in first person: I, me, myself.”`,error:_,children:(0,W.jsx)(re,{rows:5,maxLength:4096,value:c.meaning,disabled:h,onChange:e=>{l(t=>t&&{...t,meaning:e.target.value}),y(void 0)}})})]})}),b&&(0,W.jsx)(F,{title:`Discard binding changes?`,message:`Your unsaved changes will be lost.`,confirmLabel:`Discard`,tone:`warning`,onCancel:()=>x(!1),onConfirm:()=>{x(!1),l(void 0)}}),S&&(0,W.jsx)(F,{title:`Remove semantic binding?`,message:`The note '${S}' will remain in the vault, but the agent will no longer use this meaning.`,confirmLabel:`Remove binding`,tone:`danger`,busy:h,onCancel:()=>C(void 0),onConfirm:()=>void te()})]})}function vt({settings:e,loading:t,disabled:n,externalError:i,onSave:a}){let[d,f]=(0,U.useState)(e.notes.typeKey??``),[p,m]=(0,U.useState)(e.notes.titleKey??``),[h,g]=(0,U.useState)(!1),[_,v]=(0,U.useState)(),y=(0,U.useRef)(null),b=(0,U.useRef)(null),x=(0,U.useMemo)(()=>yt(d,p),[p,d]),S=x.typeKey!==e.notes.typeKey||x.titleKey!==e.notes.titleKey;(0,U.useEffect)(()=>{f(e.notes.typeKey??``),m(e.notes.titleKey??``),v(void 0)},[e]);function C(){f(e.notes.typeKey??``),m(e.notes.titleKey??``),v(void 0)}async function w(){let e=bt(x);if(e)v(e),(e.field===`type`?y:b).current?.focus();else try{g(!0),await a(x),v(void 0)}catch(e){v({field:`type`,message:e instanceof Error?e.message:String(e)}),y.current?.focus()}finally{g(!1)}}let T=Ne({notes:x}),E=`Choose the keys BrAIan uses for each note’s type and title. Existing notes are not rewritten.`,D=`vault-note-keys-title`;return t?(0,W.jsx)(s,{children:(0,W.jsxs)(`section`,{className:`vault-note-keys-content`,"aria-labelledby":D,children:[(0,W.jsx)(P,{as:`h3`,size:`subsection`,id:D,children:`Note frontmatter keys`}),(0,W.jsx)(R,{as:`p`,tone:`muted`,children:E}),(0,W.jsx)(R,{as:`p`,tone:`muted`,children:`Loading vault settings…`})]})}):(0,W.jsx)(r,{className:`vault-note-keys`,onSubmit:e=>{e.preventDefault(),w()},children:(0,W.jsx)(s,{children:(0,W.jsxs)(`section`,{className:`vault-note-keys-content`,"aria-labelledby":D,children:[(0,W.jsx)(P,{as:`h3`,size:`subsection`,id:D,children:`Note frontmatter keys`}),(0,W.jsx)(R,{as:`p`,tone:`muted`,children:E}),(0,W.jsxs)(o,{children:[(0,W.jsx)(l,{label:`Type key`,error:_?.field===`type`?_.message:void 0,children:(0,W.jsx)(u,{ref:y,value:d,placeholder:Me.typeKey,disabled:n||h,onChange:e=>{f(e.target.value),v(void 0)}})}),(0,W.jsx)(l,{label:`Title key`,error:_?.field===`title`?_.message:void 0,children:(0,W.jsx)(u,{ref:b,value:p,placeholder:Me.titleKey,disabled:n||h,onChange:e=>{m(e.target.value),v(void 0)}})})]}),i&&(0,W.jsxs)(R,{as:`p`,size:`caption`,tone:`danger`,role:`alert`,children:[`Unavailable: `,i]}),(0,W.jsxs)(R,{as:`p`,size:`caption`,tone:`muted`,children:[`Effective keys: `,(0,W.jsx)(R,{as:`code`,monospace:!0,children:T.typeKey}),` and `,(0,W.jsx)(R,{as:`code`,monospace:!0,children:T.titleKey}),`.`]}),(0,W.jsx)(c,{dirty:S,busy:h,disabled:n,onCancel:C})]})})})}function yt(e,t){let n=e.normalize(`NFC`).trim(),r=t.normalize(`NFC`).trim();return{...n?{typeKey:n}:{},...r?{titleKey:r}:{}}}function bt(e){for(let[t,n]of[[`type`,e.typeKey],[`title`,e.titleKey]])if(n&&/[\r\n\u0000-\u001F\u007F]/u.test(n))return{field:t,message:`Use a single-line key without control characters.`};let t=Ne({notes:e});if(t.typeKey===t.titleKey)return{field:`title`,message:`The title key must differ from the type key.`}}var xt={notes:{label:`Notes`,description:`Find, read and change the vault’s notes and how they link.`},schema:{label:`Types`,description:`Read and change the vault’s types, properties and panels.`},files:{label:`Files`,description:`Browse and change files that are not notes. Needs Files on.`},boards:{label:`Kanban`,description:`Read and move cards on Kanban boards. Needs Kanban on.`},calendars:{label:`Calendars`,description:`Read and schedule calendar entries. Needs Calendars on.`},matrices:{label:`Prioritization`,description:`Read prioritization matrices. Needs Prioritization on.`}},St=[`notes`,`schema`,`files`,`boards`,`calendars`,`matrices`],Ct={files:`Files`,boards:`Kanban`,calendars:`Calendars`,matrices:`Prioritization`};function wt(e){return St.map(t=>({id:t,...xt[t],tools:e.filter(e=>e.group===t).sort((e,t)=>Number(e.access===`write`)-Number(t.access===`write`))})).filter(e=>e.tools.length>0)}var Tt=new Set([`graph_prepare`,`graph_index`,`graph_search`,`graph_read`]);function Et(e){let t=e.access===`write`?`Changes the vault. `:``,n=e.available?``:` Unavailable while ${Ct[e.feature??``]??`its feature`} is off.`,r=Tt.has(e.name)?` The agent can answer little from the vault without it.`:``;return`${t}${e.description}${n}${r}`}function Dt(e){let t=e.filter(e=>!e.enabled).length;return e.length?t?`${e.length-t} of ${e.length} tools on; ${t} turned off.`:`All ${e.length} tools on.`:`Every tool the agent can use, each on until you turn it off.`}function Ot(e){if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;let t=[...e.currentTarget.querySelectorAll(`input[role="switch"]:not(:disabled)`)],n=t.indexOf(document.activeElement);n<0||(e.preventDefault(),t[Math.min(t.length-1,Math.max(0,n+(e.key===`ArrowDown`?1:-1)))]?.focus())}function kt({tools:e,busy:t,onToggle:n,onClose:r}){return(0,W.jsx)(v,{title:`Agent Tools`,description:`What the main agent can do in this vault. Workflows keep their own lists.`,size:`large`,scrollableBody:!0,onCancel:r,actions:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(S,{children:[Dt(e),` A tool you turn off is hidden from the agent, which then names it when a request needs it.`]}),(0,W.jsx)(C,{primary:!0,onClick:r,children:`Done`})]}),children:(0,W.jsx)(`div`,{className:`agent-tools-list popup-sections`,onKeyDown:Ot,children:wt(e).map(e=>(0,W.jsx)(te,{legend:e.label,description:e.description,children:(0,W.jsx)(d,{children:e.tools.map(e=>(0,W.jsx)(i,{label:e.label,description:Et(e),persistence:`immediate`,layout:`control`,children:(0,W.jsx)(ne,{checked:e.enabled,disabled:t,onCheckedChange:t=>n(e.name,t),children:(0,W.jsx)(`span`,{className:`visually-hidden`,children:e.label})})},e.name))})},e.id))})})}function At(){let e=L(),t=p(),[n,r]=(0,U.useState)(!1),a=N(e.id),o=new Set(e.settings.agent.tools?.disabled??[]),s=a.tools.map(e=>({...e,enabled:!o.has(e.name)})),c=async(n,r)=>{try{await e.update({op:`set_agent_tools`,tools:{[n]:r}})}catch(e){t.error(e instanceof Error?e.message:String(e))}};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(i,{label:`Agent Tools`,description:Dt(s),persistence:`immediate`,layout:`control`,children:(0,W.jsx)(E,{disabled:e.loading||a.loading,onClick:()=>r(!0),children:`Manage Tools`})}),n&&(0,W.jsx)(kt,{tools:s,busy:e.loading,onToggle:(e,t)=>void c(e,t),onClose:()=>r(!1)})]})}var jt=[{key:`unknownNotes`,label:`Edit notes of an unknown type`,description:`Notes with no type, or a type this vault does not define.`}];function Mt(){let e=L(),t=p(),n=e.settings.agent.editing,r=async(n,r)=>{try{await e.update({op:`set_agent_editing`,editing:{[n]:r}})}catch(e){t.error(e instanceof Error?e.message:String(e))}};return(0,W.jsx)(W.Fragment,{children:jt.map(({key:t,label:a,description:o})=>(0,W.jsx)(i,{label:a,description:o,persistence:`immediate`,layout:`control`,children:(0,W.jsx)(ne,{checked:n?.[t]!==!1,disabled:e.loading,onCheckedChange:e=>void r(t,e),children:(0,W.jsx)(`span`,{className:`visually-hidden`,children:a})})},t))})}var Nt=e=>`${De}/vault/${encodeURIComponent(e)}/mcp-settings`,Pt={"Content-Type":`application/json`,Accept:`application/json`};function Ft(e,t=fetch){return V(Nt(e),t)}function It(e,t=fetch){return V(`${Nt(e)}/rotate`,t,{method:`POST`,headers:Pt})}function Lt(e,t){let n=e.lastIndexOf(`/`);return{address:new URL(e.slice(0,n),t).toString(),token:e.slice(n+1),urlWithToken:new URL(e,t).toString()}}function Rt(e){return`BRAIAN_${e.toUpperCase().replace(/[^A-Z0-9]+/g,`_`)}_MCP_TOKEN`}function zt(e){try{return/^(localhost|127(\.\d+){3}|\[::1\]|.+\.localhost)$/i.test(new URL(e).hostname)}catch{return!1}}var Bt=e=>`${e.serverName}-mcp-token`,Vt=`Never ask me to paste the token into this conversation, never put it on a command line, and never write it into a file yourself. Ask me for it only through a masked prompt that the client itself shows and that keeps the value in secure storage; where there is none, I set it myself in an environment variable.`,q=(e,t)=>`\`\`\`${e}\n${t}\n\`\`\``;function J(e,t,n){return[`Install the MCP server of my BrAIan vault "${e.vaultLabel}" in ${t}.`,``,`- Name: ${e.serverName}`,`- Transport: Streamable HTTP`,`- URL: ${e.url}`,`- Authentication: the header \`Authorization: Bearer <token>\`, ${n}`,``,`${Vt} The token is in BrAIan under Settings › AI MCP Server › Copy token.`,``]}function Ht(e,t){return[`Remove the MCP server of my BrAIan vault "${e.vaultLabel}" (named ${e.serverName}, at ${e.url}) from ${t}.`,``,`Never ask me to paste the token into this conversation and never print it. Show me what you are about to remove before you remove it.`,``]}var Y=(e,t=1)=>e.map((e,n)=>`${t+n}. ${e}`);function Ut(e,t,n){let r=e.tokenVariable,i=Bt(e);return[`${t} has no masked prompt of its own for this token, so guide me through keeping it safely on my machine, one step at a time: give me the exact command for my system, wait until I confirm it worked, then go on. Find my operating system and shell first (for example \`uname -s\` and \`echo $SHELL\`), and explain in one sentence what we are about to do. If \`${r}\` is already set (check with \`test -n "$${r}" && echo set\`, never printing it), another client already uses it: skip to configuring ${t}.`,`Have me store the token in my system's secret store, typing it only into a masked prompt in a terminal window of my own, never through your shell tool, never as a command argument and never in this chat. I copy it from BrAIan first.\n - macOS: \`security add-generic-password -U -a "$USER" -s ${i} -w\`, then I paste the token at "password data for new item" (nothing is shown) and once more to confirm.\n - Linux with a keyring (libsecret): \`secret-tool store --label='BrAIan ${e.vaultLabel} MCP token' service ${i}\`, then I paste it at the Password prompt.\n - Windows (PowerShell): \`$t = Read-Host 'BrAIan token' -AsSecureString; [Environment]::SetEnvironmentVariable('${r}', [Net.NetworkCredential]::new('', $t).Password, 'User')\`, which sets it as my user environment variable without echoing it; skip the next step.\n - With no secret store: I open my shell profile in a text editor myself (not \`echo\`, which leaves the token in my shell history), add \`export ${r}='<token>'\`, save, and make the file readable only by me (\`chmod 600\`); skip the next step.`,`Add the line that reads the token at login to my shell profile (for zsh ~/.zshrc, for bash ~/.bashrc or ~/.bash_profile); you may write this line yourself, since it holds no secret:\n - macOS: \`export ${r}="$(security find-generic-password -a "$USER" -s ${i} -w 2>/dev/null)"\`\n - Linux: \`export ${r}="$(secret-tool lookup service ${i} 2>/dev/null)"\``,`Have me open a new terminal and check the variable without printing it: \`test -n "$${r}" && echo set\` (PowerShell: \`if ($env:${r}) { 'set' }\`). It must print "set".`,n,`Tell me exactly how to restart ${t} so it sees the variable: quit it completely and open it again, and if it still does not see it (an app opened from the Dock or Start menu may not read my shell profile), start it from that new terminal. Then confirm the server lists its tools.`]}function Wt(e){let t=e.tokenVariable,n=Bt(e);return[`The token may also be kept in \`${t}\`. Ask me whether any other AI client on this computer still uses this vault's MCP server (Codex, Cursor, Claude Code without its plugin, or another); if one does, stop here and leave the variable alone. Otherwise guide me one step at a time, waiting for me to confirm each:\n - Remove the line that sets \`${t}\` from my shell profile (~/.zshrc, ~/.bashrc or ~/.bash_profile); you may edit it yourself, showing me the line first.\n - macOS: \`security delete-generic-password -a "$USER" -s ${n}\`.\n - Linux: \`secret-tool clear service ${n}\`.\n - Windows (PowerShell): \`[Environment]::SetEnvironmentVariable('${t}', $null, 'User')\`.\n - Open a new terminal and check that \`test -n "$${t}" && echo set\` prints nothing.`]}var X=`Tell me that if no AI should use this vault anymore, I can turn the server off in BrAIan (Settings › AI MCP Server), and that Rotate token there ends the old token at once if it may have been seen anywhere.`,Z=(...e)=>e.flat().join(`
|
|
4
|
+
`);function Gt(e,t,n){return Z(J(e,t,`with the token read from the environment variable \`${e.tokenVariable}\`.`),`Steps:`,Y(Ut(e,t,n)))}function Q(e,t,n){return Z(Ht(e,t),`Steps:`,Y([n,...Wt(e),X]))}var Kt=e=>`Add the server for my user, keeping the header's variable reference literal so Claude Code expands it when it starts: \`claude mcp add --scope user --transport http ${e.serverName} ${e.url} --header 'Authorization: Bearer \${${e.tokenVariable}}'\`. Use single quotes so my shell does not expand the variable.`,qt=`~/.claude/braian-mcp`,Jt=e=>`${e.serverName}@braian-local`;function Yt(e){let t=qt,n=e.serverName,r=Jt(e),i={name:`braian-local`,owner:{name:`BrAIan`},description:`MCP servers of BrAIan vaults`,plugins:[{name:n,source:`./plugins/${n}`,description:`The BrAIan vault ${e.vaultLabel} over MCP`}]},a={name:n,version:`1.0.0`,description:`The MCP server of the BrAIan vault ${e.vaultLabel}`,author:{name:`BrAIan`},userConfig:{token:{type:`string`,title:`BrAIan ${e.vaultLabel} MCP token`,description:`Copy it from BrAIan, Settings › AI MCP Server › Copy token`,required:!0,sensitive:!0}},mcpServers:{[e.serverName]:{type:`http`,url:e.url,headers:{Authorization:"Bearer ${user_config.token}"}}}};return Z(J(e,`Claude Code`,`with the token kept by Claude Code itself as a sensitive plugin option, which it asks me for in a masked field and stores in the system's secure credential store.`),`Steps:`,"1. Run `claude --version`. If it is older than 2.1.285, skip to the fallback below.",`2. Write a local plugin marketplace at ${t}. If ${t}/.claude-plugin/marketplace.json already exists, add this plugin to its \`plugins\` list (replacing one with the same name) instead of overwriting it. \`${t}/.claude-plugin/marketplace.json\`:`,q(`json`,JSON.stringify(i,null,2)),` and \`${t}/plugins/${n}/.claude-plugin/plugin.json\`, with \`\${user_config.token}\` kept literal:`,q(`json`,JSON.stringify(a,null,2)),`3. Run \`claude plugin validate ${t}\`, then \`claude plugin marketplace add ${t}\` (or \`claude plugin marketplace update braian-local\` if it is already added), then \`claude plugin install ${r} --scope user\`.`,`4. Ask me to type \`/plugin configure ${r}\` myself in this session and paste the token into its masked field. Claude Code keeps it in the system's secure credential store and it never enters this conversation. Never set it yourself with \`--config\` or \`--values-stdin\`. Wait until I confirm.`,`5. Run \`claude plugin configure ${r}\` and check that \`token\` reads "set" (it never prints the value), ask me to run \`/reload-plugins\`, then confirm in \`/mcp\` that the server lists its tools.`,``,"Fallback, for a Claude Code without `claude plugin configure`, or if the plugin cannot be installed:",Y(Ut(e,`Claude Code`,Kt(e))))}function Xt(e){let t=qt,n=Jt(e);return Z(Ht(e,`Claude Code`),`Steps:`,Y([`Run \`claude plugin list\` and \`claude mcp list\` to see how the server was installed: as the plugin \`${n}\`, as a server added with \`claude mcp add\`, or both.`,`For the plugin: run \`claude plugin uninstall ${n} --scope user\`, remove its entry from \`${t}/.claude-plugin/marketplace.json\` and its folder \`${t}/plugins/${e.serverName}\`; if no plugin is left in that marketplace, run \`claude plugin marketplace remove braian-local\` and delete \`${t}\`.`,`For a server added with \`claude mcp add\`: run \`claude mcp remove ${e.serverName} --scope user\`.`,...Wt(e),"Ask me to run `/reload-plugins` and check in `/mcp` that the server is gone.",X]))}function Zt(e){let t=e.local?`The address above is on this computer only, and Claude's connectors are called from Anthropic's cloud, which cannot reach it. Before anything else, ask me for the public HTTPS address where this BrAIan is reachable (for example a tunnel) and use it in place of \`${new URL(e.url).origin}\`, keeping the path. If I have none, stop: the connector cannot work without one.`:`Claude's connectors are called from Anthropic's cloud, so the address must be reachable from the internet over HTTPS.`;return Z(`Guide me, one step at a time, to add the MCP server of my BrAIan vault "${e.vaultLabel}" to my Claude account as a custom connector, so I can use it in Cowork, in Claude chats on the web, desktop and phone, and in Claude Code's cloud sessions. You cannot change these settings yourself: tell me what to click and wait until I confirm each step.`,``,`- Name: ${e.serverName}`,`- URL: ${e.url}`,"- Authentication: the header `Authorization: Bearer <token>`",``,`Never ask me to paste the token into this conversation. ${t}`,``,`Steps:`,Y([`Open Customize › Connectors, select Add, then Add custom connector. On a Team or Enterprise plan only an Owner can add one, in Organization settings › Connectors (Add › Custom › Web); if I am not an Owner, tell me to ask one and stop.`,`Enter the name ${e.serverName} and the server's HTTPS URL, then Continue.`,`For Authentication choose No sign-in.`,"If the dialog has a Request headers section: add the header `authorization`, mark it Required, and have me paste `Bearer ` (with the space) followed by the token, copied from BrAIan (Settings › AI MCP Server › Copy token), straight into its value field. Claude stores it securely and never shows it again.",`If there is no Request headers section (it is a beta some accounts lack), explain that the only other way is the URL with the token, which keeps the token inside the connector's address, and ask whether I accept that. If I do, have me copy it from BrAIan (Copy URL with token, with the public origin in place of a local one) and paste it as the URL instead, without the header.`,`Select Add, then Connect if it shows.`,`Have me open a Cowork task (or a chat), select + › Connectors, turn the connector on, and ask for something from the vault, approving the tool call, to confirm it works.`]))}function Qt(e){return Z(`Guide me, one step at a time, to remove the MCP server of my BrAIan vault "${e.vaultLabel}" (the custom connector ${e.serverName}) from my Claude account. You cannot change these settings yourself: tell me what to click and wait until I confirm each step.`,``,`Never ask me to paste the token into this conversation.`,``,`Steps:`,Y([`Open Customize › Connectors, select ${e.serverName} under Your connectors, open its three-dot menu and select Remove. On a Team or Enterprise plan an Owner removes it in Organization settings › Connectors.`,`Check that it is gone from + › Connectors in a Cowork task or a chat.`,`If the connector used the URL with the token, tell me to select Rotate token in BrAIan (Settings › AI MCP Server), since that address held the token.`,X]))}function $t(e){let t=`${e.serverName}-token`,n={inputs:[{type:`promptString`,id:t,description:`BrAIan ${e.vaultLabel} MCP token (Settings › AI MCP Server › Copy token)`,password:!0}],servers:{[e.serverName]:{type:`http`,url:e.url,headers:{Authorization:`Bearer \${input:${t}}`}}}};return Z(J(e,`VS Code`,`with the token asked for by VS Code itself through a password input, masked, the first time the server starts, and stored securely by VS Code.`),`Steps:`,'1. Open my user MCP configuration (the command "MCP: Open User Configuration"; on macOS the file is ~/Library/Application Support/Code/User/mcp.json) and merge this into it, keeping any inputs and servers already there and leaving `${input:…}` literal:',q(`json`,JSON.stringify(n,null,2)),`2. Ask me to start the server ${e.serverName} from the MCP servers list and paste the token into the masked box VS Code shows. Wait until I confirm.`,`3. Confirm the server lists its tools.`)}var en=e=>Z(Ht(e,`VS Code`),`Steps:`,Y([`Open my user MCP configuration (the command "MCP: Open User Configuration") and remove the server ${e.serverName} and the input ${e.serverName}-token, keeping everything else.`,`Check that the server is gone from the MCP servers list.`,X])),tn={id:`claude`,label:`Claude`,variants:[{id:`claude-code`,label:`Claude Code`,description:`The command line and the desktop app’s Code tab; asks for the token in a masked field`,pasteInto:`Claude Code`,install:Yt,uninstall:Xt},{id:`claude-cowork`,label:`Cowork and Claude apps`,description:`A custom connector on your account, for Cowork, chat and cloud sessions`,pasteInto:`Cowork or a Claude chat`,install:Zt,uninstall:Qt}]},$=e=>({id:e.id,label:e.label,variants:[e]}),nn=[tn,$({id:`codex`,label:`Codex`,description:`The codex command line and IDE extension`,pasteInto:`Codex`,install:e=>Gt(e,`Codex`,`Add this table to ~/.codex/config.toml, or replace one with the same name:\n\n${q(`toml`,`[mcp_servers.${e.serverName}]\nurl = "${e.url}"\nbearer_token_env_var = "${e.tokenVariable}"`)}`),uninstall:e=>Q(e,`Codex`,`Run \`codex mcp remove ${e.serverName}\`, or remove the table \`[mcp_servers.${e.serverName}]\` from ~/.codex/config.toml.`)}),$({id:`cursor`,label:`Cursor`,description:`Cursor’s agent`,pasteInto:`Cursor`,install:e=>Gt(e,`Cursor`,`Add this server to ~/.cursor/mcp.json under "mcpServers", keeping any servers already there:\n\n${q(`json`,`"${e.serverName}": {\n "url": "${e.url}",\n "headers": { "Authorization": "Bearer \${env:${e.tokenVariable}}" }\n}`)}`),uninstall:e=>Q(e,`Cursor`,`Remove "${e.serverName}" from "mcpServers" in ~/.cursor/mcp.json, keeping every other server.`)}),$({id:`vscode`,label:`VS Code`,description:`Copilot’s agent mode; asks for the token in a masked box`,pasteInto:`VS Code`,install:$t,uninstall:en}),$({id:`other`,label:`Another MCP client`,description:`Any client that speaks Streamable HTTP`,pasteInto:`your MCP client`,install:e=>Z(J(e,`my MCP client`,`with the token entered in the client's own masked prompt if it has one, otherwise read from the environment variable \`${e.tokenVariable}\`.`),`Steps:`,`1. Find where this client configures remote MCP servers. If it has its own masked prompt for a secret that it keeps in secure storage, add the server there with the URL above, use that prompt for the bearer header, ask me to enter the token in it, then confirm the server lists its tools; skip the steps below.`,Y(Ut(e,`my MCP client`,`Add the server where this client configures remote MCP servers, with the URL above and the bearer header read from the environment variable rather than a literal value. If the client cannot read a header from the environment, stop and tell me instead of storing the token.`),2)),uninstall:e=>Q(e,`my MCP client`,`Find where this client configures remote MCP servers and remove ${e.serverName}; if the client kept the token in its own secure storage, remove it there too.`)})];nn.flatMap(e=>e.variants);var rn=e=>e instanceof Error?e.message:String(e);function an(){let e=L(),t=p(),[n,r]=(0,U.useState)(),[a,o]=(0,U.useState)(!1),[s,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(!1),[d,f]=(0,U.useState)(!1),m=e.settings.mcp?.enabled===!0;(0,U.useEffect)(()=>{let n=!0;return r(void 0),Ft(e.id).then(e=>{n&&r(e)},e=>{n&&t.error(rn(e))}),()=>{n=!1}},[e.id,m,t]);let g=async e=>{o(!0);try{r(await e())}catch(e){t.error(rn(e))}finally{o(!1)}},_=n?.enabled&&n.path?Lt(n.path,window.location.origin):void 0,v=async(e,n)=>{try{await navigator.clipboard.writeText(e),t.success(n)}catch{t.error(`It could not be copied. Select it and copy it by hand.`)}},y=(t,n)=>{if(u(!1),!_)return;let r={serverName:`braian-${e.id}`,url:_.address,tokenVariable:Rt(e.id),vaultLabel:e.label,local:zt(_.address)};v(t[n](r),`${n===`install`?`Install`:`Uninstall`} prompt for ${t.label} copied. Paste it into ${t.pasteInto}.`)},b=e=>nn.map(t=>t.variants.length===1?(0,W.jsx)(h,{label:t.variants[0].label,description:t.variants[0].description,onClick:()=>y(t.variants[0],e)},t.id):(0,W.jsx)(T,{label:t.label,menuLabel:`${e===`install`?`Install`:`Uninstall`} in ${t.label}`,children:t.variants.map(t=>(0,W.jsx)(h,{label:t.label,description:t.description,onClick:()=>y(t,e)},t.id))},t.id));return(0,W.jsxs)(W.Fragment,{children:[_&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(i,{label:`Connect your AI`,description:`Copies a prompt for the AI you pick that installs the server, or removes it again. Where the AI can ask for the token in a masked field it does; otherwise it guides you to keep the token in your system’s secret store, so the token never goes through the chat.`,persistence:`immediate`,layout:`control`,children:(0,W.jsxs)(x,{open:l,onOpenChange:u,label:`Copy a prompt`,trigger:(0,W.jsx)(E,{variant:`primary`,"aria-haspopup":`menu`,children:`Copy prompt`}),children:[(0,W.jsx)(T,{label:`Install instructions`,menuLabel:`Install instructions for`,children:b(`install`)}),(0,W.jsx)(T,{label:`Uninstall instructions`,menuLabel:`Uninstall instructions for`,children:b(`uninstall`)})]})}),(0,W.jsx)(i,{label:`Server address`,description:`The address a client pairs with the token, sent as Authorization: Bearer.`,persistence:`immediate`,children:(0,W.jsxs)(`div`,{className:`mcp-settings-value`,children:[(0,W.jsx)(j,{readOnly:!0,value:_.address,"aria-label":`MCP server address`,onFocus:e=>e.currentTarget.select()}),(0,W.jsx)(E,{onClick:()=>void v(_.address,`MCP server address copied.`),children:`Copy`})]})}),(0,W.jsx)(i,{label:`Access token`,description:`Anyone with the token can read and change this vault. Keep it out of chats: the prompts above have your AI ask for it safely. An app that takes only a URL can use Copy URL with token from the menu instead.`,persistence:`immediate`,children:(0,W.jsxs)(`div`,{className:`mcp-settings-value`,children:[(0,W.jsx)(j,{readOnly:!0,type:`password`,value:_.token,"aria-label":`MCP access token`}),(0,W.jsxs)(M,{variant:`primary-soft`,label:`Copy token`,menuLabel:`Token actions`,menuOpen:d,onMenuOpenChange:f,disabled:a,onAction:()=>void v(_.token,`MCP token copied.`),children:[(0,W.jsx)(h,{onClick:()=>{f(!1),v(_.urlWithToken,`MCP URL with token copied.`)},children:`Copy URL with token`}),(0,W.jsx)(I,{}),(0,W.jsx)(h,{onClick:()=>{f(!1),c(!0)},children:`Rotate token…`})]})]})})]}),s&&(0,W.jsx)(F,{tone:`danger`,title:`Rotate the MCP token?`,message:`The current token stops working at once. Every client that uses it needs the new one.`,confirmLabel:`Rotate token`,busy:a,onCancel:()=>c(!1),onConfirm:()=>void g(()=>It(e.id)).then(()=>c(!1))})]})}var on=e=>e.mcp?.enabled===!0;function sn(){let e=L(),t=!we.isEnabled(e.settings);return Ie({title:`MCP server`,label:`Enable the MCP server`,description:`Serve this vault’s agent tools to Claude Code, Codex, Cursor or a Claude app. It runs the tools turned on in AI Agent › Agent Tools and needs no AI provider. Turning it off keeps the token, so clients work again when it is back on.${t?` AI Agent is off, so the server does not answer until it is turned on.`:``}`,operation:`set_mcp_enabled`,checked:on})}function cn(){let{onViewShortcuts:e}=ze();return e?(0,W.jsx)(i,{label:`Shortcuts`,persistence:`custom`,availableOnMobile:!1,layout:`control`,children:(0,W.jsx)(E,{onClick:e,children:`View shortcuts`})}):null}function ln(){return(0,W.jsx)(i,{label:`Avatar`,persistence:`custom`,layout:`control`,children:(0,W.jsx)(_,{variant:`ghost`,className:`self-avatar-setting`})})}function un(){let{onConfigureMobileMenu:e}=ze(),t=L();return e?(0,W.jsxs)(i,{label:`Mobile menu`,persistence:`custom`,availableOnMobile:!1,layout:`control`,children:[(0,W.jsx)(E,{disabled:t.loading,onClick:e,children:`Configure mobile menu`}),t.error&&(0,W.jsxs)(R,{as:`small`,size:`caption`,tone:`danger`,role:`alert`,children:[`Unavailable: `,t.error]})]}):null}function dn(){let{settings:e,ready:t,error:n,patch:r}=y();return(0,W.jsx)(ht,{title:`Global instructions`,description:`Behavior guidance applied in every vault, after BrAIan's built-in rules.`,instructions:e.agent.instructions,disabled:!t,loading:!t,externalError:n,onSave:e=>r({op:`replace_agent_instructions`,instructions:e}).then(()=>void 0)})}function fn(){let{settings:e,ready:t,error:n,patch:r}=y();return(0,W.jsx)(H,{title:`Global variables`,description:`Static data available to the agent in every vault.`,summary:gt(Object.keys(e.agent.variables).length,`variable`),loading:!t,children:()=>(0,W.jsx)(ct,{bare:!0,title:`Global variables`,description:`Static data available to the agent in every vault.`,variables:e.agent.variables,disabled:!t,externalError:n,onSave:e=>r({op:`replace_agent_variables`,variables:e}).then(()=>void 0)})})}function pn(){let e=L();return(0,W.jsx)(vt,{settings:e.settings,loading:e.loading,externalError:e.error,onSave:t=>e.update({op:`replace_note_keys`,notes:t}).then(()=>void 0)})}function mn(){let e=L();return(0,W.jsx)(ht,{title:`Vault instructions`,description:`Behavior guidance applied only while ${e.label} is active, after global instructions.`,instructions:e.settings.agent.instructions,loading:e.loading,externalError:e.error,onSave:t=>e.update({op:`replace_instructions`,instructions:t}).then(()=>void 0)})}function hn(){let e=L(),t=`Static data available only while ${e.label} is active.`;return(0,W.jsx)(H,{title:`Vault variables`,description:t,summary:gt(Object.keys(e.settings.agent.variables).length,`variable`),loading:e.loading,children:()=>(0,W.jsx)(ct,{bare:!0,title:`Vault variables`,description:t,variables:e.settings.agent.variables,loading:e.loading,externalError:e.error,onSave:t=>e.update({op:`replace_variables`,variables:t}).then(()=>void 0)})})}function gn(){let e=L(),[t,n]=(0,U.useState)([]),[r,i]=(0,U.useState)(!0),[a,o]=(0,U.useState)();return(0,U.useEffect)(()=>{let t=!0;return i(!0),o(void 0),n([]),ot(e.id).then(e=>{t&&n(e)}).catch(e=>{t&&o(e instanceof Error?e.message:String(e))}).finally(()=>{t&&i(!1)}),()=>{t=!1}},[e.id]),(0,W.jsx)(H,{title:`Semantic bindings`,description:`Teach the agent how natural-language subjects map to existing notes in this vault.`,summary:gt(e.settings.agent.entityBindings.length,`binding`),loading:e.loading,children:()=>(0,W.jsx)(_t,{bare:!0,bindings:e.settings.agent.entityBindings,entities:t,loading:e.loading||r,error:e.error??a,onAdd:t=>e.update({op:`add_entity_binding`,binding:t}).then(()=>void 0),onUpdate:(t,n)=>e.update({op:`update_entity_binding`,entityId:t,binding:n}).then(()=>void 0),onRemove:t=>e.update({op:`remove_entity_binding`,entityId:t}).then(()=>void 0)})})}var _n=[{value:`visual`,label:`Appearance and this device`,detail:`Fonts, date and time formats, editor tools, colours, QR defaults, tab style and menu layout, and everything this browser stored, for every vault.`},{value:`behavior`,label:`Behaviors`,detail:`Fast create, folding, checklists, links, previews, Kanban, RSS, IDE formatting, hidden files, recording defaults, Agent Tools and editing switches.`},{value:`features`,label:`Features`,detail:`Every feature off but Notes. Each keeps its data, links and keys, so switching it on again restores it.`},{value:`ai-instructions`,label:`AI: delete custom instructions, variables & bindings`,detail:`This vault's agent instructions, its variables and its semantic bindings.`},{value:`ai-agents`,label:`AI: delete custom agents`,detail:`Every custom agent and the routing between them.`},{value:`rss-profiles`,label:`RSS: delete evaluation profiles`,detail:`Every preference profile; the entries and your ratings stay.`}];function vn(){let e=L(),t=g(),n=p();async function r(){let r=await t.chooseMany({title:`Reset ${e.label}'s settings?`,message:`Tick what to reset or delete.`,detail:`Notes and types are never removed.`,confirmLabel:`Reset`,tone:`danger`,options:_n});if(r)try{await Ce(e.id,r),r.includes(`visual`)&&await je(),window.location.reload()}catch(t){n.error(`Could not reset ${e.label}: ${t instanceof Error?t.message:String(t)}`)}}return(0,W.jsx)(i,{label:`Reset vault settings`,description:`Choose what returns to its defaults or is deleted. Notes and types stay.`,persistence:`custom`,layout:`control`,children:(0,W.jsx)(E,{variant:`danger`,disabled:e.loading,onClick:()=>void r(),children:`Reset vault settings…`})})}var yn=`password`,bn=e=>`vault:${e}`;function xn(){let{clear:e}=y(),t=g(),n=p();async function r(){let r=[];try{r=await at()}catch{}let i=await t.chooseMany({title:`Clear all settings?`,message:`Tick what to remove as well.`,detail:`Disconnects every AI provider and removes its keys, IMAP accounts and search keys, restores the installation defaults and clears everything this browser stored. Share links, MCP tokens and calendar feeds stay. Each ticked vault is reset in full, deleting its custom instructions, variables, bindings, custom agents and RSS evaluation profiles; its notes and types stay.`,confirmLabel:`Clear all settings`,tone:`danger`,allowNone:!0,options:[{value:yn,label:`Remove the password`,detail:`Anyone who reaches this installation can open it until a new one is set.`},...r.map(e=>({value:bn(e.id),label:`Reset ${e.label}`,detail:e.id}))]});if(i)try{let t=await ke();for(let e of t.filter(e=>e.connected))await Te(e.id);for(let e of r)i.includes(bn(e.id))&&await Ce(e.id,Se);await e({removePassword:i.includes(yn)})}catch(e){n.error(`Could not clear all settings: ${e instanceof Error?e.message:String(e)}`)}}return(0,W.jsx)(i,{label:`Clear all settings`,description:`Disconnect AI providers, remove stored credentials, restore the installation defaults, clear this browser, and choose vaults to reset and whether the password goes.`,persistence:`custom`,layout:`control`,children:(0,W.jsx)(E,{variant:`danger`,onClick:()=>void r(),children:`Clear all settings…`})})}var Sn={sections:[{id:`general`,title:`General`,priority:105},{id:`editor`,title:`Editor`,priority:108},{id:`agent`,title:`AI Agent`,priority:190,useToggle:Be,toggleScope:`vault`,scopeInfo:{system:`Every vault inherits these instructions, variables and model defaults, and can add its own in its Vault settings. They are used only in vaults where the AI Agent feature is on.`}},{id:`mcp`,title:`AI MCP Server`,priority:191,useToggle:sn,toggleScope:`vault`},{id:`vault`,title:`Vault`,priority:100},{id:`danger`,title:`Danger Zone`,priority:1e4,danger:!0}],contributions:[{id:`self-avatar`,sectionId:`general`,scope:`vault`,priority:100,persistence:`custom`,Component:ln},{id:`mobile-menu`,sectionId:`general`,scope:`vault`,priority:300,persistence:`custom`,Component:un},{id:`editor-tools`,sectionId:`editor`,scope:`vault`,priority:350,persistence:`immediate`,Component:it},{id:`general-legacy`,sectionId:`general`,scope:`vault`,priority:400,persistence:`custom`,Component:cn},{id:`global-agent-instructions`,sectionId:`agent`,scope:`system`,priority:100,persistence:`explicit`,Component:dn},{id:`global-agent-variables`,sectionId:`agent`,scope:`system`,priority:200,persistence:`explicit`,Component:fn},{id:`vault-agent-instructions`,sectionId:`agent`,scope:`vault`,priority:300,persistence:`explicit`,Component:mn},{id:`vault-agent-variables`,sectionId:`agent`,scope:`vault`,priority:400,persistence:`explicit`,Component:hn},{id:`vault-entity-bindings`,sectionId:`agent`,scope:`vault`,priority:500,persistence:`custom`,Component:gn},{id:`vault-agent-tools`,sectionId:`agent`,scope:`vault`,priority:540,persistence:`immediate`,Component:At},{id:`vault-agent-editing`,sectionId:`agent`,scope:`vault`,priority:550,persistence:`immediate`,Component:Mt},{id:`vault-mcp-server`,sectionId:`mcp`,scope:`vault`,priority:100,persistence:`immediate`,Component:an},{id:`vault-note-keys`,sectionId:`vault`,scope:`vault`,priority:100,persistence:`explicit`,Component:pn},{id:`clear-settings`,sectionId:`danger`,scope:`system`,priority:100,persistence:`custom`,Component:xn},{id:`vault-reset`,sectionId:`danger`,scope:`vault`,priority:100,persistence:`custom`,Component:vn}]};export{Sn as coreSettingsModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{Ed as r,Hn as i,Vn as a,yc as o}from"./logic-CiFwn-O5.js";import{Cn as s,Jn as ee,Rt as c,Yn as l,fn as te,fr as u,hr as d,sn as ne,ur as f}from"./index-CfVw4gte.js";import{t as re}from"./template-icon-BeizIRn_.js";import{i as ie}from"./note-id-BmuLCV_i.js";import{a as ae}from"./topology-defaults-DfcGtVWa.js";import{r as oe}from"./template-utils-WHrDeSB1.js";import{a as se,g as ce,i as le,o as ue,t as de,u as fe}from"./note-type-grid-Bfdc8U-T.js";import{l as pe}from"./note-values-C4A12_CE.js";import{r as p}from"./page-note-7Oo1OmH0.js";var m=e(t(),1);function me({noteKeys:e,typeId:t,title:n,properties:r,page:i}){let a=Object.entries(r).filter(([,e])=>Array.isArray(e)?e.length:e!==``&&e!=null);return{...t?{[e.typeKey]:t}:{},[e.titleKey]:n,...Object.fromEntries(a),...i?p().frontmatter:{}}}function h({page:e,initialBody:t}){return e?p().body:t}function he({lockedType:e,lockedTemplate:t,typeCount:n,templateCount:r=0}){return[...!e&&n>0?[`type`]:[],...!t&&r>1?[`template`]:[],`details`]}function ge(e,t){let n=t.indexOf(e);return n>0?t[n-1]:void 0}function _e(e){return e?.defaultTemplate??e?.templates[0]?.id}function g(e,t,n){return e===`loading`?n?`loading`:t:e}function ve(e,t=300){let n=e===`loading`,[r,i]=(0,m.useState)(),[a,o]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{e!==`loading`&&i(e)},[e]),(0,m.useEffect)(()=>{if(!n)return;let e=window.setTimeout(()=>o(!0),t);return()=>{window.clearTimeout(e),o(!1)}},[t,n]),g(e,r,a)}var _=n(),v=``;function y({vaultId:e,noteKeys:t,request:n,onCancel:p,onCreated:g}){let y=(0,m.useId)(),b=(0,m.useRef)(null),[x,be]=(0,m.useState)([]),[S,xe]=(0,m.useState)(!1),{list:C,error:w}=c(e,`full`),T=(0,m.useMemo)(()=>C??[],[C]),E=C!==void 0||w!==void 0,[D,O]=(0,m.useState)(),[k,A]=(0,m.useState)(n.typeId),j=h(n)!==void 0,[M,N]=(0,m.useState)(n.templateId===void 0?j?{id:void 0}:void 0:{id:n.templateId}),P=S&&x.length>0&&!!n.typeId&&!x.some(e=>e.id===n.typeId),F=n.typeId!==void 0&&!P;(0,m.useEffect)(()=>{P&&(A(void 0),N(void 0))},[P]);let[Se,I]=(0,m.useState)(),[L,Ce]=(0,m.useState)(n.initialTitle??``),[we,Te]=(0,m.useState)(),[Ee,R]=(0,m.useState)({}),[z,B]=(0,m.useState)(),[V,H]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let t=!1;return i(e).then(e=>{t||be(e)}).catch(e=>{t||B(r(e))}).finally(()=>{t||xe(!0)}),()=>{t=!0}},[e]);let U=k??``;(0,m.useEffect)(()=>{if(!U){O({typeId:``});return}let t=!1;return O(void 0),a(U,e).then(e=>{t||(O({typeId:U,definition:e.definition}),R(ae(e.definition.properties)))}).catch(()=>{t||O({typeId:U})}),()=>{t=!0}},[U,e]);let W=D?.typeId===U?D.definition:void 0,De=!!U&&D?.typeId!==U,G=W?.templates??[],K=!!W&&!!n.templateId&&!G.some(e=>e.id===n.templateId),Oe=n.templateId!==void 0&&F&&!K;(0,m.useEffect)(()=>{K&&N(void 0)},[K]);let ke=M?M.id??v:_e(W)??v,Ae=ke||void 0,je=te(e),Me=k!==void 0||S&&!x.length||je,q=Se??(!F&&!S?`loading`:Me?De?`loading`:M?`details`:G.length>1?`template`:`details`:`type`),Ne=he({lockedType:F,lockedTemplate:Oe||j,typeCount:je?0:x.length,templateCount:G.length}),Pe=ne().fastCreate===!0,Fe=(n.fastCreate??Pe)&&!n.keepDetails,[J,Ie]=(0,m.useState)(!1),Le=(0,m.useRef)(!1),Y=Fe&&!J&&q===`details`,X=ve(Y?`loading`:q),Re=X===void 0||X===`loading`?void 0:ge(X,Ne);(0,m.useEffect)(()=>{q===`details`&&b.current?.focus()},[q]);let Z=n.directoryPath??W?.folder??``,Q=we??ie(L),ze=e=>e?`${Z?`${Z}/`:``}${e}.md`:``,$=ze(Q),Be=!!$&&T.some(e=>e.id===$),Ve=U?x.find(e=>e.id===U)?.name??W?.name??U:`Free note`,He=G.find(e=>e.id===Ae)?.name??`No template`,Ue=(0,m.useMemo)(()=>[...G.map(e=>({id:e.id,name:e.name,description:e.description||void 0,icon:(0,_.jsx)(re,{name:e.icon})})),{id:v,name:`Blank note`,description:`Start without a template`,icon:(0,_.jsx)(re,{})}],[G]);function We(e){e!==U&&R({}),A(e),N(Oe?{id:n.templateId}:j?{id:void 0}:void 0),I(void 0),B(void 0)}function Ge(e){N({id:e||void 0}),I(void 0),B(void 0)}(0,m.useEffect)(()=>{if(!Y||!E||Le.current)return;Le.current=!0;let e=ue({initialTitle:n.initialTitle,now:new Date,folder:Z,taken:new Set(T.map(e=>e.id))});Ce(e.title),Te(e.stem),Ke(e).then(e=>{e||Ie(!0)})},[Y,E]);async function Ke({title:i,stem:a}={title:L,stem:Q}){if(V)return!1;let s=ze(a);if(!a)return B(i.trim()?`Enter a title containing letters or numbers.`:`Enter a note title before saving.`),!1;if(T.some(e=>e.id===s))return B(`Note '${s}' already exists.`),!1;H(!0),B(void 0);try{let r=n.directoryPath!==void 0,ee=pe(me({noteKeys:t,typeId:U,title:i.trim()||a,properties:Ee,page:n.page})),c=await o({vault:e,id:r?s:`${a}.md`,type:U||void 0,placement:r?`explicit`:`default`,frontmatterSource:ee,body:h(n)??await oe(W,Ae)});if(Fe&&fe(e,c.id,{discardUntouched:n.discardUntouched??!0,titled:!!n.initialTitle?.trim()||J,frontmatterSource:c.frontmatterSource,body:c.body,revision:c.revision}),await g(c,{title:i.trim()||a}))return!0;B(`Created ${c.id}, but the follow-up action could not be completed.`)}catch(e){B(r(e))}finally{H(!1)}return!1}return X===void 0?null:(0,_.jsxs)(ee,{title:n.page?`New page`:`New note`,description:ye(X),size:`medium`,scrollableBody:!0,busy:V,initialFocusRef:b,onCancel:p,actions:(0,_.jsxs)(_.Fragment,{children:[Re&&(0,_.jsx)(l,{className:`create-note-back`,onClick:()=>I(Re),children:`Back`}),(0,_.jsx)(l,{onClick:p,children:`Cancel`}),X===`details`&&(0,_.jsx)(l,{primary:!0,type:`submit`,form:y,disabled:V||!Q||Be,children:V?`Saving…`:`Save`})]}),children:[X===`loading`&&(0,_.jsx)(s,{status:`loading`,density:`inline`,children:Y?`Creating the note…`:F||S?`Loading the note type…`:`Loading note types…`}),X===`type`&&(0,_.jsx)(de,{types:x,selectedId:k,onChoose:We},`type`),X===`template`&&(0,_.jsx)(se,{label:`Note template`,choices:Ue,selectedId:ke,onChoose:Ge},`template`),(X===`type`||X===`template`)&&(0,_.jsx)(le,{}),X===`details`&&(0,_.jsxs)(`form`,{id:y,className:`create-note-form`,onSubmit:e=>{e.preventDefault(),Ke()},children:[(0,_.jsxs)(`div`,{className:`create-note-summary`,children:[(0,_.jsx)(u,{label:`Note type`,children:(0,_.jsx)(f,{className:`create-note-locked`,size:`small`,children:Ve})}),!!G.length&&!j&&(0,_.jsx)(u,{label:`Template`,children:(0,_.jsx)(f,{className:`create-note-locked`,size:`small`,children:He})})]}),(0,_.jsx)(u,{label:`Title`,children:(0,_.jsx)(d,{ref:b,value:L,placeholder:`Note title`,onChange:e=>{Ce(e.target.value),B(void 0)}})}),(0,_.jsx)(u,{label:`File name`,description:`Saved as ${$||`${Z?`${Z}/`:``}note-id.md`}`,error:Be?`Note '${$}' already exists.`:void 0,children:(0,_.jsxs)(`span`,{className:`create-note-filename`,children:[Z&&(0,_.jsxs)(`span`,{className:`create-note-folder`,"aria-hidden":`true`,children:[Z,`/`]}),(0,_.jsx)(d,{value:Q,"aria-label":`File name`,placeholder:`note-id`,onChange:e=>{Te(ie(e.target.value)),B(void 0)}}),(0,_.jsx)(`span`,{className:`create-note-extension`,"aria-hidden":`true`,children:`.md`})]})}),!!W?.properties.length&&(0,_.jsxs)(`div`,{className:`create-note-properties note-properties-table`,children:[(0,_.jsx)(f,{as:`p`,size:`caption`,tone:`muted`,children:`Properties`}),(0,_.jsx)(ce,{allowLinkedNoteCreation:!1,definition:W,noteId:``,vaultId:e,frontmatter:Ee,allNotes:T,resolveNoteReference:e=>T.some(t=>t.id===e.trim())?e.trim():void 0,onChange:(e,t)=>R(n=>({...n,[e]:t}))})]})]}),(z??w)&&(0,_.jsx)(f,{as:`p`,size:`caption`,tone:`danger`,className:`topology-inline-error`,role:`alert`,children:z??w})]})}function ye(e){if(e===`type`)return`Choose the kind of note to create.`;if(e===`template`)return`Choose what this note starts from.`;if(e===`details`)return`Name the note and pre-fill what you already know.`}export{y as CreateNotePopup};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./
|
|
1
|
+
import"./chunk-SRAX5OIU-wzfotNc-.js";var e={paste:`Vložit`,pasteAsPlaintext:`Vložit jako prostý text`,pasteCharts:`Vložit grafy`,selectAll:`Vybrat vše`,multiSelect:`Přidat prvek do výběru`,moveCanvas:`Posunout plátno`,cut:`Vyjmout`,copy:`Kopírovat`,copyAsPng:`Zkopírovat do schránky jako PNG`,copyAsSvg:`Zkopírovat do schránky jako SVG`,copyText:`Zkopírovat do schránky jako text`,copySource:``,convertToCode:``,bringForward:`Přenést blíž`,sendToBack:`Přenést do pozadí`,bringToFront:`Přenést do popředí`,sendBackward:`Přenést dál`,delete:`Smazat`,copyStyles:`Kopírovat styly`,pasteStyles:`Vložit styly`,stroke:`Obrys`,background:`Pozadí`,fill:`Výplň`,strokeWidth:`Tloušťka tahu`,strokeStyle:`Styl tahu`,strokeStyle_solid:`Plný`,strokeStyle_dashed:`Čárkovaný`,strokeStyle_dotted:`Tečkovaný`,sloppiness:`Stylizace`,opacity:`Průhlednost`,textAlign:`Zarovnání textu`,edges:`Hrany`,sharp:`Ostré`,round:`Zaoblené`,arrowheads:`Styl šipky`,arrowhead_none:`Žádný`,arrowhead_arrow:`Šipka`,arrowhead_bar:`Kóta`,arrowhead_circle:``,arrowhead_circle_outline:``,arrowhead_triangle:`Trojúhelník`,arrowhead_triangle_outline:``,arrowhead_diamond:``,arrowhead_diamond_outline:``,fontSize:`Velikost písma`,fontFamily:`Písmo`,addWatermark:`Přidat "Vyrobeno s Excalidraw"`,handDrawn:`Od ruky`,normal:`Normální`,code:`Kód`,small:`Malé`,medium:`Střední`,large:`Velké`,veryLarge:`Velmi velké`,solid:`Plný`,hachure:`Hachure`,zigzag:`Klikatě`,crossHatch:`Křížový šrafování`,thin:`Tenký`,bold:`Tlustý`,left:`Vlevo`,center:`Na střed`,right:`Vpravo`,extraBold:`Extra tlustý`,architect:`Architekt`,artist:`Umělec`,cartoonist:`Kartoonista`,fileTitle:`Název souboru`,colorPicker:`Výběr barvy`,canvasColors:`Použito na plátně`,canvasBackground:`Pozadí plátna`,drawingCanvas:`Kreslicí plátno`,layers:`Vrstvy`,actions:`Akce`,language:`Jazyk`,liveCollaboration:`Živá spolupráce...`,duplicateSelection:`Duplikovat`,untitled:`Bez názvu`,name:`Název`,yourName:`Vaše jméno`,madeWithExcalidraw:`Vytvořeno v Excalidraw`,group:`Sloučit výběr do skupiny`,ungroup:`Zrušit sloučení skupiny`,collaborators:`Spolupracovníci`,showGrid:`Zobrazit mřížku`,addToLibrary:`Přidat do knihovny`,removeFromLibrary:`Odebrat z knihovny`,libraryLoadingMessage:`Načítání knihovny…`,libraries:`Procházet knihovny`,loadingScene:`Načítání scény…`,align:`Zarovnání`,alignTop:`Zarovnat nahoru`,alignBottom:`Zarovnat dolů`,alignLeft:`Zarovnat vlevo`,alignRight:`Zarovnejte vpravo`,centerVertically:`Vycentrovat svisle`,centerHorizontally:`Vycentrovat vodorovně`,distributeHorizontally:`Rozložit horizontálně`,distributeVertically:`Rozložit svisle`,flipHorizontal:`Převrátit vodorovně`,flipVertical:`Převrátit svisle`,viewMode:`Náhled`,share:`Sdílet`,showStroke:`Zobrazit výběr barvy`,showBackground:`Zobrazit výběr barev pozadí`,toggleTheme:`Přepnout tmavý řežim`,personalLib:`Osobní knihovna`,excalidrawLib:`Exkalidraw knihovna`,decreaseFontSize:`Zmenšit písmo`,increaseFontSize:`Zvětšit písmo`,unbindText:`Zrušit vazbu textu`,bindText:`Vázat text s kontejnerem`,createContainerFromText:`Zabalit text do kontejneru`,link:{edit:`Upravit odkaz`,editEmbed:``,create:`Vytvořit odkaz`,createEmbed:``,label:`Odkaz`,labelEmbed:``,empty:``},lineEditor:{edit:`Upravit čáru`,exit:`Ukončit editor řádků`},elementLock:{lock:`Uzamknout`,unlock:`Odemknout`,lockAll:`Uzamknout vše`,unlockAll:`Odemknout vše`},statusPublished:`Zveřejněno`,sidebarLock:`Ponechat postranní panel otevřený`,selectAllElementsInFrame:``,removeAllElementsFromFrame:``,eyeDropper:`Vyberte barvu z plátna`,textToDiagram:``,prompt:``},t={noItems:`Dosud neexistují žádné položky...`,hint_emptyLibrary:`Vyberte položku na plátně a přidejte ji sem nebo nainstalujte knihovnu z veřejného úložiště níže.`,hint_emptyPrivateLibrary:`Vyberte položku na plátně a přidejte ji sem.`},n={clearReset:`Resetovat plátno`,exportJSON:`Exportovat do souboru`,exportImage:`Exportovat obrázek...`,export:`Uložit jako...`,copyToClipboard:`Kopírovat do schránky`,save:`Uložit do aktuálního souboru`,saveAs:`Uložit jako`,load:`Otevřít`,getShareableLink:`Získat odkaz pro sdílení`,close:`Zavřít`,selectLanguage:`Zvolit jazyk`,scrollBackToContent:`Přejít zpět na obsah`,zoomIn:`Přiblížit`,zoomOut:`Oddálit`,resetZoom:`Resetovat přiblížení`,menu:`Menu`,done:`Hotovo`,edit:`Upravit`,undo:`Zpět`,redo:`Znovu`,resetLibrary:`Obnovit knihovnu`,createNewRoom:`Vytvořit novou místnost`,fullScreen:`Celá obrazovka`,darkMode:`Tmavý režim`,lightMode:`Světlý režim`,zenMode:`Zen mód`,objectsSnapMode:``,exitZenMode:`Opustit zen mód`,cancel:`Zrušit`,clear:`Vyčistit`,remove:`Odstranit`,embed:``,publishLibrary:`Zveřejnit`,submit:`Odeslat`,confirm:`Potvrdit`,embeddableInteractionButton:``},r={clearReset:`Toto vymaže celé plátno. Jste si jisti?`,couldNotCreateShareableLink:`Nepodařilo se vytvořit sdílitelný odkaz.`,couldNotCreateShareableLinkTooBig:`Nepodařilo se vytvořit sdílený odkaz: scéna je příliš velká`,couldNotLoadInvalidFile:`Nepodařilo se načíst neplatný soubor`,importBackendFailed:`Import z backendu se nezdařil.`,cannotExportEmptyCanvas:`Nelze exportovat prázdné plátno.`,couldNotCopyToClipboard:`Nelze zkopírovat do schránky.`,decryptFailed:`Nelze dešifrovat data.`,uploadedSecurly:`Nahrávání je zabezpečeno koncovým šifrováním, což znamená, že server Excalidraw ani třetí strany nemohou obsah přečíst.`,loadSceneOverridePrompt:`Načítání externího výkresu nahradí váš existující obsah. Přejete si pokračovat?`,collabStopOverridePrompt:`Zastavení relace přepíše vaše předchozí, lokálně uložené kresby. Jste si jisti?
|
|
2
2
|
|
|
3
3
|
(Pokud chcete zachovat místní kresbu, jednoduše zavřete kartu prohlížeče)`,errorAddingToLibrary:`Položku nelze přidat do knihovny`,errorRemovingFromLibrary:`Položku nelze odstranit z knihovny`,confirmAddLibrary:`Tímto přidáte {{numShapes}} tvarů do tvé knihovny. Jste si jisti?`,imageDoesNotContainScene:`Zdá se, že tento obrázek neobsahuje žádná data o scéně. Zapnuli jste při exportu vkládání scény?`,cannotRestoreFromImage:`Scénu nelze obnovit z tohoto souboru obrázku`,invalidSceneUrl:`Nelze importovat scénu z zadané URL. Je buď poškozená, nebo neobsahuje platná JSON data Excalidraw.`,resetLibrary:`Tímto vymažete vaši knihovnu. Jste si jisti?`,removeItemsFromsLibrary:`Smazat {{count}} položek z knihovny?`,invalidEncryptionKey:`Šifrovací klíč musí mít 22 znaků. Live spolupráce je zakázána.`,collabOfflineWarning:`Není k dispozici žádné internetové připojení.
|
|
4
4
|
Vaše změny nebudou uloženy!`},i={unsupportedFileType:`Nepodporovaný typ souboru.`,imageInsertError:`Nelze vložit obrázek. Zkuste to později...`,fileTooBig:`Soubor je příliš velký. Maximální povolená velikost je {{maxSize}}.`,svgImageInsertError:`Nelze vložit SVG obrázek. Značení SVG je neplatné.`,failedToFetchImage:``,invalidSVGString:`Neplatný SVG.`,cannotResolveCollabServer:`Nelze se připojit ke sdílenému serveru. Prosím obnovte stránku a zkuste to znovu.`,importLibraryError:`Nelze načíst knihovnu`,collabSaveFailed:`Nelze uložit do databáze na serveru. Pokud problémy přetrvávají, měli byste uložit soubor lokálně, abyste se ujistili, že neztratíte svou práci.`,collabSaveFailed_sizeExceeded:`Nelze uložit do databáze na serveru, plátno se zdá být příliš velké. Měli byste uložit soubor lokálně, abyste se ujistili, že neztratíte svou práci.`,imageToolNotSupported:``,brave_measure_text_error:{line1:`Vypadá to, že používáte Brave prohlížeč s povoleným nastavením <bold>Aggressively Block Fingerprinting</bold>.`,line2:`To by mohlo vést k narušení <bold>Textových elementů</bold> ve vašich výkresech.`,line3:`Důrazně doporučujeme zakázat toto nastavení. Můžete sledovat <link>tyto kroky</link> jak to udělat.`,line4:`Pokud vypnutí tohoto nastavení neopravuje zobrazení textových prvků, prosím, otevřete <issueLink>problém</issueLink> na našem GitHubu, nebo nám napište na <discordLink>Discord</discordLink>`},libraryElementTypeError:{embeddable:``,iframe:``,image:``},asyncPasteFailedOnRead:``,asyncPasteFailedOnParse:``,copyToSystemClipboardFailed:``},a={selection:`Výběr`,image:`Vložit obrázek`,rectangle:`Obdélník`,diamond:`Diamant`,ellipse:`Elipsa`,arrow:`Šipka`,line:`Čára`,freedraw:`Kreslení`,text:`Text`,library:`Knihovna`,lock:`Po kreslení ponechat vybraný nástroj aktivní`,penMode:`Režim Pera - zabránit dotyku`,link:`Přidat/aktualizovat odkaz pro vybraný tvar`,eraser:`Guma`,frame:``,magicframe:``,embeddable:``,laser:``,hand:`Ruka (nástroj pro posouvání)`,extraTools:``,mermaidToExcalidraw:``,magicSettings:``},o={canvasActions:`Akce plátna`,selectedShapeActions:`Akce vybraného tvaru`,shapes:`Tvary`},s={canvasPanning:`Chcete-li přesunout plátno, podržte kolečko nebo mezerník při tažení nebo použijte nástroj Ruka`,linearElement:`Kliknutím pro více bodů, táhnutím pro jednu čáru`,freeDraw:`Klikněte a táhněte, pro ukončení pusťte`,text:`Tip: Text můžete také přidat dvojitým kliknutím kdekoli pomocí nástroje pro výběr`,embeddable:``,text_selected:`Dvojklikem nebo stisknutím klávesy ENTER upravíte text`,text_editing:`Stiskněte Escape nebo Ctrl/Cmd+ENTER pro dokončení úprav`,linearElementMulti:`Klikněte na poslední bod nebo stiskněte Escape anebo Enter pro dokončení`,lockAngle:`Úhel můžete omezit podržením SHIFT`,resize:`Můžete omezit proporce podržením SHIFT při změně velikosti,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{L as t,O as n,S as r,T as i,Ut as a,a as o,jt as s,l as c,y as l}from"./codemirror-BqrpJAnL.js";import{m as u,t as d}from"./react-B3NTyEzE.js";import{t as f}from"./code-editor-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{L as t,O as n,S as r,T as i,Ut as a,a as o,jt as s,l as c,y as l}from"./codemirror-BqrpJAnL.js";import{m as u,t as d}from"./react-B3NTyEzE.js";import{t as f}from"./code-editor-BTcitmHE.js";var p=e(u(),1),m=`MATCH.OPTIONAL MATCH.WHERE.RETURN.WITH.UNWIND.ORDER BY.SKIP.LIMIT.DISTINCT.AND.OR.XOR.NOT.IN.STARTS WITH.ENDS WITH.CONTAINS.IS NULL.IS NOT NULL.AS.ASC.DESC.CASE.WHEN.THEN.ELSE.END.EXISTS.true.false.null`.split(`.`),h=String.raw`(?:=|<>|<=|>=|<|>|STARTS\s+WITH|ENDS\s+WITH|CONTAINS|IN\s*\[(?:[^\]]*,)?)`,g=new RegExp(String.raw`\b[A-Za-z_]\w*\.([A-Za-z_]\w*)\s*${h}\s*("[^"]*|[\w.-]*)$`,`i`),_=/[({,]\s*([A-Za-z_]\w*)\s*:\s*("[^"]*|[\w.-]*)$/,v=/\(\s*[A-Za-z_]?\w*\s*(?::\s*\w+\s*)*:\s*(\w*)$/,y=/\[\s*[A-Za-z_]?\w*\s*:\s*(?:\w+\s*\|\s*:?\s*)*(\w*)$/,b=/\b[A-Za-z_]\w*\.(\w*)$/;function x(e){let t=w(e);if(t===`{`){let t=_.exec(e);if(t)return{kind:`value`,property:t[1],prefix:t[2]};if(/[{,]\s*(\w*)$/.test(e))return{kind:`property`,prefix:/(\w*)$/.exec(e)[1]}}let n=g.exec(e);if(n)return{kind:`value`,property:n[1],prefix:n[2]};if(T(e))return{kind:`none`};if(t===`[`){let t=y.exec(e);if(t)return{kind:`relationship`,prefix:t[1]}}if(t===`(`){let t=v.exec(e);if(t)return{kind:`label`,prefix:t[1]}}let r=b.exec(e);return r&&!/\d\.\w*$/.test(e)?{kind:`property`,prefix:r[1]}:{kind:`clause`,prefix:/(\w*)$/.exec(e)[1]}}function S(e,t,n){let r=(e,t)=>e.toLowerCase().startsWith(t.replace(/^"/,``).toLowerCase());switch(e.kind){case`label`:return t.labels.filter(t=>r(t,e.prefix)).map(e=>({label:e,insertText:C(e),kind:`label`,detail:`label`}));case`relationship`:return t.relationshipTypes.filter(t=>r(t,e.prefix)).map(e=>({label:e,insertText:C(e),kind:`relationship`,detail:`relationship`}));case`property`:return t.propertyKeys.filter(t=>r(t,e.prefix)).map(e=>({label:e,insertText:C(e),kind:`property`,detail:`property`}));case`value`:return(t.propertyValues[e.property]??[]).filter(t=>r(t.replace(/^"/,``),e.prefix)).map(t=>({label:t,insertText:t,kind:`value`,detail:e.property}));case`clause`:return[...m.filter(t=>r(t,e.prefix)).map(e=>({label:e,insertText:e,kind:`keyword`})),...n.filter(t=>r(t,e.prefix)).map(e=>({label:`${e}()`,insertText:`${e}(`,kind:`function`,detail:`function`}))];case`none`:return[]}}function C(e){return/^[A-Za-z_][A-Za-z0-9_]*$/.test(e)?e:`\`${e.replace(/`/g,"``")}\``}function w(e){let t=[],n;for(let r of e)n?r===n&&(n=void 0):r===`"`||r===`'`?n=r:r===`(`||r===`[`||r===`{`?t.push(r):(r===`)`||r===`]`||r===`}`)&&t.length&&t.pop();return t.at(-1)}function T(e){let t;for(let n of e)t?n===t&&(t=void 0):(n===`"`||n===`'`)&&(t=n);return t!==void 0}var E=new Set(m.flatMap(e=>e.split(` `)).map(e=>e.toUpperCase())),D=t.define({name:`braian-cypher`,startState:()=>({afterColon:!1,afterDot:!1}),token(e,t){if(e.eatSpace())return null;if(e.match(`//`))return e.skipToEnd(),`comment`;let n=e.peek();if(n===`"`||n===`'`||n==="`"){e.next();let r=!1;for(;!e.eol();){let t=e.next();if(t===n&&!r)break;r=t===`\\`&&!r}return t.afterColon=t.afterDot=!1,n==="`"?`variableName`:`string`}if(e.match(/^[0-9]+(?:\.[0-9]+)?/))return`number`;if(e.match(/^[A-Za-z_]\w*/)){let n=e.current(),r=t.afterColon?`typeName`:t.afterDot?`propertyName`:/^(true|false|null)$/i.test(n)?`atom`:E.has(n.toUpperCase())?`keyword`:e.match(/^\s*\(/,!1)?`function(variableName)`:`variableName`;return t.afterColon=t.afterDot=!1,r}let r=e.next();return t.afterColon=r===`:`,t.afterDot=r===`.`,/[=<>!+*\/-]/.test(r??``)?`operator`:`punctuation`},languageData:{commentTokens:{line:`//`},closeBrackets:{brackets:[`(`,`[`,`{`,`"`,`'`]}}});function O(e,t,n){let r=e.state.sliceDoc(0,e.pos),i=x(r);if(i.kind===`none`||!e.explicit&&/\s$/.test(r)&&i.kind!==`value`)return null;let a=i.prefix;return{from:e.pos-a.length,options:S(i,t,n).map((e,t)=>({label:e.label,apply:e.insertText,detail:e.detail,type:{label:`class`,relationship:`interface`,property:`property`,value:`constant`,keyword:`keyword`,function:`function`}[e.kind],boost:-t}))}}function k(e,t){if(!t?.location)return[];let n=(t,n)=>{let r=e.doc.line(Math.max(1,Math.min(e.doc.lines,t)));return Math.min(r.to,r.from+Math.max(0,n-1))},{line:r,column:i,endLine:a,endColumn:o}=t.location,s=n(r,i);return[{from:s,to:Math.max(s,n(a,o)),severity:`error`,message:t.message}]}var A=d();function j(e){let t=(0,p.useRef)(null),u=(0,p.useRef)(e);u.current=e;let d=(0,p.useMemo)(()=>[D,r({override:[e=>O(e,u.current.schema,u.current.functions)]}),a.highest(s.of([{key:`Mod-Enter`,run:()=>(u.current.onRun(),!0)},{key:`Escape`,run:e=>n(e.state)?i(e):c(e.state)?o(e):(u.current.onEscape(),!0)}]))],[]);return(0,p.useEffect)(()=>{let n=t.current;n&&n.dispatch(l(n.state,k(n.state,e.error)))},[e.error,e.value]),(0,A.jsx)(`div`,{className:`cypher-editor`,style:{height:`100%`},children:(0,A.jsx)(f,{documentId:`cypher`,label:`Cypher query`,value:e.value,onChange:e.onChange,autoFocus:e.autoFocus,gutters:!1,wrap:!0,extensions:d,onReady:e=>{t.current=e,e.dispatch(l(e.state,k(e.state,u.current.error)))}})})}export{j as CypherEditor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./
|
|
1
|
+
import"./chunk-SRAX5OIU-wzfotNc-.js";var e={paste:`Indsæt`,pasteAsPlaintext:`Indsæt som klartekst`,pasteCharts:`Indsæt diagrammer`,selectAll:`Marker alle`,multiSelect:`Tilføj element til markering`,moveCanvas:`Flyt lærred`,cut:`Klip`,copy:`Kopier`,copyAsPng:`Kopier til klippebord som PNG`,copyAsSvg:`Kopier til klippebord som SVG`,copyText:`Kopiér til udklipsholder som tekst`,copySource:`Kopiér kilde til udklipsholder`,convertToCode:`Konvertér til kode`,bringForward:`Flyt fremad`,sendToBack:`Placer bagest`,bringToFront:`Placer forrest`,sendBackward:`Send bagud`,delete:`Fjern`,copyStyles:`Kopier stil`,pasteStyles:`Indsæt stil`,stroke:`Linje`,background:`Baggrund`,fill:`Udfyld`,strokeWidth:`Linjebredde`,strokeStyle:`Linjeform`,strokeStyle_solid:`Solid`,strokeStyle_dashed:`Stiplet`,strokeStyle_dotted:`Prikket`,sloppiness:`Sjuskethed`,opacity:`Gennemsigtighed`,textAlign:`Tekstjustering`,edges:`Kanter`,sharp:`Skarp`,round:`Rund`,arrowheads:`Pilehoveder`,arrowhead_none:`Ingen`,arrowhead_arrow:`Pil`,arrowhead_bar:`Bjælke`,arrowhead_circle:``,arrowhead_circle_outline:``,arrowhead_triangle:`Trekant`,arrowhead_triangle_outline:``,arrowhead_diamond:``,arrowhead_diamond_outline:``,fontSize:`Skriftstørrelse`,fontFamily:`Skrifttypefamilie`,addWatermark:`Tilføj "Lavet med Excalidraw"`,handDrawn:`Hånd-tegnet`,normal:`Normal`,code:`Kode`,small:`Lille`,medium:`Mellem`,large:`Stor`,veryLarge:`Meget stor`,solid:`Solid`,hachure:`Skravering`,zigzag:`Zigzag`,crossHatch:`Krydsskravering`,thin:`Tynd`,bold:`Fed`,left:`Venstre`,center:`Centrere`,right:`Højre`,extraBold:`Extra fed`,architect:`Arkitekt`,artist:`Kunstner`,cartoonist:`Tegneserietegner`,fileTitle:`Filnavn`,colorPicker:`Farvevælger`,canvasColors:`Brugt på lærred`,canvasBackground:`Lærredsbaggrund`,drawingCanvas:`Tegnelærred`,layers:`Lag`,actions:`Handlinger`,language:`Sprog`,liveCollaboration:`Live samarbejde...`,duplicateSelection:`Duplikér`,untitled:`Unavngivet`,name:`Navn`,yourName:`Dit navn`,madeWithExcalidraw:`Fremstillet med Excalidraw`,group:`Grupper valgte`,ungroup:`Opløs gruppe`,collaborators:`Deltagere`,showGrid:`Vis gitter`,addToLibrary:`Føj til Bibliotek`,removeFromLibrary:`Fjern fra biblioteket`,libraryLoadingMessage:`Indlæser bibliotek…`,libraries:`Gennemse biblioteker`,loadingScene:`Indlæser scene…`,align:`Justér`,alignTop:`Juster til top`,alignBottom:`Juster til bund`,alignLeft:`Venstrejusteret`,alignRight:`Juster højre`,centerVertically:`Center vertikalt`,centerHorizontally:`Vandret centreret`,distributeHorizontally:`Distribuer vandret`,distributeVertically:`Distribuer lodret`,flipHorizontal:`Spejlvend horisontalt`,flipVertical:`Vend lodret`,viewMode:`Visningstilstand`,share:`Del`,showStroke:`Vis stregfarve-vælger`,showBackground:`Vis baggrundsfarve-vælger`,toggleTheme:`Skift tema`,personalLib:`Personligt bibliotek`,excalidrawLib:`Excalidraw Bibliotek`,decreaseFontSize:`Gør skriften mindre`,increaseFontSize:`Gør skriften større`,unbindText:`Frigør tekst`,bindText:`Bind tekst til beholderen`,createContainerFromText:`Ombryd tekst i en beholder`,link:{edit:`Redigér link`,editEmbed:`Redigér link & indlejret`,create:`Link oprettet`,createEmbed:`Opret link & indlejret`,label:`Links`,labelEmbed:`Link & indlejret`,empty:`Intet link angivet`},lineEditor:{edit:`Rediger Linje`,exit:`Afslut linjeeditor`},elementLock:{lock:`Lås`,unlock:`Lås op`,lockAll:`Lås alle`,unlockAll:`Lås alle op`},statusPublished:`Udgiver`,sidebarLock:`Hold sidepanel åben`,selectAllElementsInFrame:`Vælg alle elementer i rammen`,removeAllElementsFromFrame:`Fjern alle elementer fra ramme`,eyeDropper:`Vælg farve fra lærred`,textToDiagram:`Tekst til diagram`,prompt:`Prompt`},t={noItems:`Ingen varer tilføjet endnu...`,hint_emptyLibrary:`Vælg et element på lærred for at tilføje det her, eller installer et bibliotek fra det offentlige arkiv, nedenfor.`,hint_emptyPrivateLibrary:`Vælg et element på lærred for at tilføje det her.`},n={clearReset:`Nulstil lærredet`,exportJSON:`Eksportér til fil`,exportImage:`Eksporter billede...`,export:`Gem til...`,copyToClipboard:`Kopier til klippebord`,save:`Gem til nuværende fil`,saveAs:`Gem som`,load:`Åbn`,getShareableLink:`Lav et delbart link`,close:`Luk`,selectLanguage:`Vælg sprog`,scrollBackToContent:`Scroll tilbage til indhold`,zoomIn:`Zoom ind`,zoomOut:`Zoom ud`,resetZoom:`Nulstil zoom`,menu:`Menu`,done:`Færdig`,edit:`Rediger`,undo:`Fortryd`,redo:`Gendan`,resetLibrary:`Nulstil bibliotek`,createNewRoom:`Opret nyt rum`,fullScreen:`Fuld skærm`,darkMode:`Mørk tilstand`,lightMode:`Lys baggrund`,zenMode:`Zentilstand`,objectsSnapMode:`Fastgør til objekter`,exitZenMode:`Stop zentilstand`,cancel:`Annuller`,clear:`Ryd`,remove:`Fjern`,embed:`Slå indlejring til/fra`,publishLibrary:`Publicér`,submit:`Gem`,confirm:`Bekræft`,embeddableInteractionButton:`Klik for at interagere`},r={clearReset:`Dette vil rydde hele lærredet. Er du sikker?`,couldNotCreateShareableLink:`Kunne ikke oprette delbart link.`,couldNotCreateShareableLinkTooBig:`Kunne ikke oprette delbart link: scenen er for stor`,couldNotLoadInvalidFile:`Kunne ikke indlæse ugyldig fil`,importBackendFailed:`Import fra backend mislykkedes.`,cannotExportEmptyCanvas:`Kan ikke eksportere tomt lærred.`,couldNotCopyToClipboard:`Kunne ikke kopiere til udklipsholderen.`,decryptFailed:`Kunne ikke dekryptere data.`,uploadedSecurly:`Upload er blevet sikret med ende-til-ende kryptering, hvilket betyder, at Excalidraw server og tredjeparter ikke kan læse indholdet.`,loadSceneOverridePrompt:`Indlæsning af ekstern tegning erstatter dit eksisterende indhold. Ønsker du at fortsætte?`,collabStopOverridePrompt:`Stopper sessionen vil overskrive din tidligere, lokalt gemte tegning. Er du sikker?
|
|
2
2
|
|
|
3
3
|
(Hvis du ønsker at beholde din lokale tegning, skal du blot lukke browserfanen i stedet.)`,errorAddingToLibrary:`Kunne ikke tilføje element til biblioteket`,errorRemovingFromLibrary:`Kunne ikke fjerne element fra biblioteket`,confirmAddLibrary:`Dette vil tilføje {{numShapes}} form(er) til dit bibliotek. Er du sikker?`,imageDoesNotContainScene:`Dette billede synes ikke at indeholde scene data. Har du aktiveret scene indlejring under eksport?`,cannotRestoreFromImage:`Scene kunne ikke gendannes fra denne billedfil`,invalidSceneUrl:`Kunne ikke importere scene fra den angivne URL. Det er enten misdannet eller indeholder ikke gyldige Excalidraw JSON data.`,resetLibrary:`Dette vil rydde hele lærredet. Er du sikker?`,removeItemsFromsLibrary:`Slet {{count}} vare(r) fra biblioteket?`,invalidEncryptionKey:`Krypteringsnøglen skal være på 22 tegn. Live-samarbejde er deaktiveret.`,collabOfflineWarning:`Ingen internetforbindelse tilgængelig.
|
|
4
4
|
Dine ændringer vil ikke blive gemt!`},i={unsupportedFileType:`Filtypen er ikke understøttet.`,imageInsertError:`Billedet kunne ikke indsættes. Prøv igen senere...`,fileTooBig:`Filen er for stor. Maksimal tilladt størrelse er {{maxSize}}.`,svgImageInsertError:`Kunne ikke indsætte SVG-billede. SVG-markup'en ser ugyldig ud.`,failedToFetchImage:`Dataene blev ikke hentet.`,invalidSVGString:`Ugyldig SVG.`,cannotResolveCollabServer:`Kunne ikke oprette forbindelse til samarbejdsserveren. Genindlæs siden og prøv igen.`,importLibraryError:`Biblioteket kunne ikke indlæses`,collabSaveFailed:`Kunne ikke gemme i databasen. Hvis problemerne fortsætter, bør du gemme din fil lokalt for at sikre, at du ikke mister dit arbejde.`,collabSaveFailed_sizeExceeded:`Kunne ikke gemme i databasen, lærredet lader til at være for stort. Du bør gemme filen lokalt for at sikre, at du ikke mister dit arbejde.`,imageToolNotSupported:`Billeder er deaktiveret.`,brave_measure_text_error:{line1:`Det ser ud til, at du bruger Brave browser med indstillingen <bold>Aggressively Block Fingerprinting</bold> aktiveret.`,line2:`Dette kan resultere i brud på <bold>tekstelementerne</bold> i dine tegninger.`,line3:`Vi anbefaler kraftigt at deaktivere denne indstilling. Du kan følge <link>disse trin</link> om, hvordan du gør det.`,line4:`Hvis deaktivering af denne indstilling ikke løser visning af tekstelementer, åbn venligst et <issueLink>issue</issueLink> på vores GitHub, eller skriv os på <discordLink>Discord</discordLink>`},libraryElementTypeError:{embeddable:`Indlejringselementer kan ikke tilføjes til biblioteket.`,iframe:`IFrame elementer kan ikke tilføjes til biblioteket.`,image:`Understøttelse af at tilføje billeder til biblioteket kommer snart!`},asyncPasteFailedOnRead:`Kunne ikke indsætte (kan ikke læse fra systemets udklipsholder).`,asyncPasteFailedOnParse:`Kunne ikke indsætte.`,copyToSystemClipboardFailed:`Kunne ikke kopiere til udklipsholderen.`},a={selection:`&Udvalg`,image:`Indsæt billeder`,rectangle:`Rektangler`,diamond:`Diamanter`,ellipse:`Ellipser`,arrow:`Pile`,line:`Linje`,freedraw:`Tegn`,text:`Tekster`,library:`~Bibliotek`,lock:`Behold valgte værktøj aktiv efter tegning`,penMode:`Pen-tilstand - forhindrer berøring`,link:`Tilføj/ Opdater link for en valgt form`,eraser:`Slet`,frame:`Rammeværktøj`,magicframe:`Wireframe til kode`,embeddable:`Web-indlejring`,laser:`Lasermarkør`,hand:`Hånd (panorering værktøj)`,extraTools:`Flere værktøjer`,mermaidToExcalidraw:`Mermaid til Excalidraw`,magicSettings:`AI indstillinger`},o={canvasActions:`Lærred handlinger`,selectedShapeActions:`Valgte figurhandlinger`,shapes:`Former`},s={canvasPanning:`For at flytte lærred, hold musehjulet eller mellemrumstasten mens du trækker, eller brug håndværktøjet`,linearElement:`Klik for at starte flere punkter, træk for enkelt linje`,freeDraw:`Klik og træk, slip når du er færdig`,text:`Tip: du kan også tilføje tekst ved at dobbeltklikke hvor som helst med det valgte værktøj`,embeddable:`Klik på træk for at oprette en hjemmeside indlejret`,text_selected:``,text_editing:``,linearElementMulti:``,lockAngle:``,resize:``,resizeImage:``,rotate:``,lineEditor_info:``,lineEditor_pointSelected:``,lineEditor_nothingSelected:``,placeImage:``,publishLibrary:``,bindTextToElement:``,deepBoxSelect:``,eraserRevert:``,firefox_clipboard_write:``,disableSnapping:``},c={cannotShowPreview:`Kan ikke vise forhåndsvisning`,canvasTooBig:`Lærredet kan være for stort.`,canvasTooBigTip:`Tip: Prøv at flytte de fjerneste elementer lidt tættere sammen.`},l={headingMain:`Der opstod en fejl. Prøv <button>at genindlæse siden</button>.`,clearCanvasMessage:``,clearCanvasCaveat:``,trackedToSentry:``,openIssueMessage:`<button></button> Kopiere og indsæt venligst oplysningerne nedenfor i et GitHub problem.`,sceneContent:`Scene indhold:`},u={desc_intro:`Du kan invitere folk til din nuværende scene, så de kan samarbejde med dig.`,desc_privacy:`Bare rolig, sessionen bruger end-to-end kryptering, så uanset hvad du tegner vil det forblive privat. Ikke engang vores server vil kunne se, hvad du kommer op med.`,button_startSession:`Start session`,button_stopSession:`Stop session`,desc_inProgressIntro:`Live-samarbejde session er nu begyndt.`,desc_shareLink:`Del dette link med enhver, du ønsker at samarbejde med:`,desc_exitSession:``,shareTitle:``},d={title:`Fejl`},f={disk_title:`Gem til disk`,disk_details:``,disk_button:``,link_title:``,link_details:``,link_button:``,excalidrawplus_description:``,excalidrawplus_button:``,excalidrawplus_exportError:``},p={blog:`Læs vores blog`,click:``,deepSelect:``,deepBoxSelect:``,curvedArrow:``,curvedLine:``,documentation:``,doubleClick:``,drag:``,editor:``,editLineArrowPoints:``,editText:``,github:``,howto:``,or:``,preventBinding:``,tools:``,shortcuts:``,textFinish:``,textNewLine:``,title:``,view:``,zoomToFit:``,zoomToSelection:``,toggleElementLock:``,movePageUpDown:``,movePageLeftRight:``},m={title:``},h={title:``,itemName:``,authorName:``,githubUsername:``,twitterUsername:``,libraryName:``,libraryDesc:``,website:``,placeholder:{authorName:``,libraryName:``,libraryDesc:``,githubHandle:``,twitterHandle:``,website:``},errors:{required:``,website:``},noteDescription:``,noteGuidelines:``,noteLicense:``,noteItems:``,atleastOneLibItem:``,republishWarning:``},g={title:``,content:``},_={resetLibrary:``,removeItemsFromLib:``},v={header:``,label:{withBackground:``,onlySelected:``,darkMode:``,embedScene:``,scale:``,padding:``},tooltip:{embedScene:``},title:{exportToPng:``,exportToSvg:``,copyPngToClipboard:``},button:{exportToPng:``,exportToSvg:``,copyPngToClipboard:``}},y={tooltip:``,link:``},b={angle:``,element:``,elements:``,height:``,scene:``,selected:``,storage:``,title:`Statistik for nørder`,total:``,version:``,versionCopy:`Klik for at kopiere`,versionNotAvailable:``,width:`Bredde`},x={addedToLibrary:``,copyStyles:`Kopieret stilarter.`,copyToClipboard:`Kopieret til klippebord.`,copyToClipboardAsPng:`Kopieret {{exportSelection}} til klippebord som PNG
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{m as t,t as n}from"./react-B3NTyEzE.js";import{I as r,yd as i}from"./logic-CiFwn-O5.js";import{a,c as o,o as s,r as c,s as l}from"./settings-CxK-AM0A.js";import{Bn as u,un as d,ur as f}from"./index-CfVw4gte.js";var p=e(t(),1),m=n();function h(){let e=d(),t=u(),[n,r]=(0,p.useState)(!1);async function i(n){r(!0);try{await e.update({op:`set_daily_notes_enabled`,enabled:n}),t.success(n?`Daily notes enabled.`:`Daily notes disabled.`)}catch(e){t.error(e instanceof Error?e.message:String(e))}finally{r(!1)}}return{label:`Enable Daily Notes`,description:`Offer one typed note per calendar date in the active vault, from Spotlight and the calendar.`,checked:e.settings.dailyNotes.enabled,disabled:e.loading||n,onCheckedChange:e=>void i(e)}}function g(){let e=d(),t=u(),n=(0,p.useRef)(null),h=(0,p.useRef)(null),[g,_]=(0,p.useState)(e.settings.dailyNotes.type),[v,y]=(0,p.useState)(e.settings.dailyNotes.dateFormat),[b,x]=(0,p.useState)({}),[S,C]=(0,p.useState)(!1),w=e.settings.dailyNotes,T=g!==w.type||v!==w.dateFormat;(0,p.useEffect)(()=>{_(w.type),y(w.dateFormat),x({})},[w.dateFormat,w.type,e.id]);function E(){_(w.type),y(w.dateFormat),x({})}async function D(a){a.preventDefault();let o=g.normalize(`NFC`).trim(),s=v.normalize(`NFC`).trim(),c=r(o,s);if(x(c),c.type)n.current?.focus(),t.error(c.type);else if(c.dateFormat)h.current?.focus(),t.error(c.dateFormat);else{C(!0);try{await e.update({op:`replace_daily_notes`,dailyNotes:{type:o,dateFormat:s}}),t.success(`Daily notes settings saved.`)}catch(e){let r=e instanceof Error?e.message:String(e),a=e instanceof i&&e.code===`invalid_daily_notes_settings`&&e.details?.field===`dateFormat`?`dateFormat`:`type`;x({[a]:r}),(a===`dateFormat`?h:n).current?.focus(),t.error(r)}finally{C(!1)}}}return(0,m.jsx)(o,{label:`Notes`,description:`Choose how a date's note is identified and where its file is created.`,persistence:`explicit`,help:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(f,{as:`p`,children:[(0,m.jsx)(f,{weight:`semibold`,children:`Type`}),`: a type with one singular date property named `,(0,m.jsx)(f,{as:`code`,monospace:!0,children:`date`}),`. It is created for you when it does not exist yet.`]}),(0,m.jsxs)(f,{as:`p`,children:[(0,m.jsx)(f,{weight:`semibold`,children:`Date format`}),`: use `,(0,m.jsx)(f,{as:`code`,monospace:!0,children:`yyyy`}),`, `,(0,m.jsx)(f,{as:`code`,monospace:!0,children:`mm`}),` and `,(0,m.jsx)(f,{as:`code`,monospace:!0,children:`dd`}),` once in the filename. Literal folders, such as `,(0,m.jsx)(f,{as:`code`,monospace:!0,children:`Daily/yyyy-mm-dd`}),`, must already exist.`]})]}),helpLabel:`About daily notes`,children:(0,m.jsxs)(a,{onSubmit:e=>void D(e),children:[(0,m.jsx)(c,{label:`Type`,required:!0,error:b.type,children:(0,m.jsx)(l,{ref:n,value:g,disabled:e.loading||S,onChange:e=>{_(e.target.value),x(e=>({...e,type:void 0}))}})}),(0,m.jsx)(c,{label:`Date format`,required:!0,error:b.dateFormat,children:(0,m.jsx)(l,{ref:h,value:v,disabled:e.loading||S,onChange:e=>{y(e.target.value),x(e=>({...e,dateFormat:void 0}))}})}),e.loading&&(0,m.jsx)(f,{as:`small`,tone:`muted`,children:`Loading vault settings…`}),e.error&&(0,m.jsxs)(f,{as:`small`,tone:`danger`,role:`alert`,children:[`Unavailable: `,e.error]}),(0,m.jsx)(s,{dirty:T,busy:S,disabled:e.loading||!!e.error,onCancel:E})]})})}var _={sections:[{id:`daily-notes`,title:`Daily Notes`,priority:220,useToggle:h,toggleScope:`vault`}],contributions:[{id:`daily-notes`,sectionId:`daily-notes`,scope:`vault`,priority:100,persistence:`explicit`,Component:g}]};export{_ as dailyNotesSettingsModule};
|