braian 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -7
- package/bin/braian.mjs +337 -60
- package/bin/launch-target.mjs +15 -27
- package/bin/run-state.mjs +203 -0
- package/dist/app.module.js +2 -0
- package/dist/bootstrap.js +4 -1
- package/dist/http/api-controllers.js +6 -0
- package/dist/http/vault-http-error.js +4 -1
- package/dist/http/web-app-fallback.js +37 -0
- package/dist/logging/logging.middleware.js +3 -1
- package/dist/main.js +3 -0
- package/dist/mcp/mcp-path.js +12 -0
- package/dist/mcp/mcp-settings.controller.js +78 -0
- package/dist/mcp/mcp.controller.js +147 -0
- package/dist/mcp/mcp.dto.js +53 -0
- package/dist/mcp/mcp.module.js +20 -0
- package/dist/mcp/mcp.service.js +117 -0
- package/dist/providers/model-provider.service.js +3 -3
- package/dist/rss/rss-profiles.controller.js +167 -0
- package/dist/rss/rss-profiles.dto.js +511 -0
- package/dist/rss/rss-profiles.service.js +149 -0
- package/dist/rss/rss.module.js +5 -2
- package/dist/search/search.controller.js +1 -1
- package/dist/vaults/vault.controller.js +41 -0
- package/dist/vaults/vault.dto.js +80 -6
- package/dist/vaults/vaults.module.js +2 -1
- package/dist/vaults/vaults.service.js +30 -2
- package/dist/workspace/workspace-config.js +3 -3
- package/node_modules/@braian/ai-providers/dist/index.js +4 -1
- package/node_modules/@braian/ai-providers/dist/jev-routing.js +41 -13
- package/node_modules/@braian/graph-agent/dist/agent-profiles/tool-catalog.js +4 -4
- package/node_modules/@braian/graph-agent/dist/data-workspace.js +44 -0
- package/node_modules/@braian/graph-agent/dist/demo-vaults.js +348 -0
- package/node_modules/@braian/graph-agent/dist/feature-switch.js +1 -1
- package/node_modules/@braian/graph-agent/dist/graph-agent.js +40 -7
- package/node_modules/@braian/graph-agent/dist/index.js +24 -2
- package/node_modules/@braian/graph-agent/dist/mcp-tokens.js +62 -0
- package/node_modules/@braian/graph-agent/dist/rss/index.js +43 -1
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-model.js +378 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-store.js +170 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-test.js +120 -0
- package/node_modules/@braian/graph-agent/dist/rss/rss-profile-use-cases.js +74 -0
- package/node_modules/@braian/graph-agent/dist/vault-changes.js +3 -0
- package/node_modules/@braian/graph-agent/dist/vault-settings-operations.js +3 -1
- package/node_modules/@braian/graph-agent/dist/vault-settings-registry.js +1 -1
- package/node_modules/@braian/voice-transcription/dist/transcribe.js +1 -1
- package/package.json +3 -1
- package/public/assets/{agent-profiles-settings-I5Ux2GnH.js → agent-profiles-settings-yElCnMJo.js} +1 -1
- package/public/assets/{appearance-settings-module-CD3bJpfR.js → appearance-settings-module-BFDKE-mZ.js} +1 -1
- package/public/assets/{ar-SA-G6X2FPQ2-BPq1dwIU.js → ar-SA-G6X2FPQ2-R9ND2Rw0.js} +1 -1
- package/public/assets/{attachment-embed-BkP-B_Pa.js → attachment-embed-BX0XSPNZ.js} +1 -1
- package/public/assets/{attachments-settings-BeAekkzf.js → attachments-settings-CSEjOoFg.js} +1 -1
- package/public/assets/{az-AZ-76LH7QW2-nXEHcVXP.js → az-AZ-76LH7QW2-DpGlptKS.js} +1 -1
- package/public/assets/{bg-BG-XCXSNQG7-CpTkmSSX.js → bg-BG-XCXSNQG7-WKBfRf7q.js} +1 -1
- package/public/assets/{bn-BD-2XOGV67Q-BDMEyCuA.js → bn-BD-2XOGV67Q-BmT7jnvl.js} +1 -1
- package/public/assets/board-workspace-CmetKvXF.js +1 -0
- package/public/assets/{boards-settings-module-CCN_ZNks.js → boards-settings-module-Bh5dh9jG.js} +1 -1
- package/public/assets/{boards-view-B1B8wHHn.js → boards-view-3JR36W_w.js} +1 -1
- package/public/assets/{ca-ES-6MX7JW3Y-D0UEot-K.js → ca-ES-6MX7JW3Y-CBR9ytrG.js} +1 -1
- package/public/assets/{calendar-view-BlTCcAzD.js → calendar-view-Cr1VSpj0.js} +1 -1
- package/public/assets/calendar-workspace-B-2Himdy.js +1 -0
- package/public/assets/{calendars-settings-module-ActBZM9v.js → calendars-settings-module-BWI1k_YA.js} +1 -1
- package/public/assets/{card-fields-nzhTsBAW.js → card-fields-eo7dqj1P.js} +1 -1
- package/public/assets/{chat-composer-editor-CRtsZz3W.js → chat-composer-editor-DCmWVP16.js} +1 -1
- package/public/assets/chat-message-list-DPXjDBw1.js +1 -0
- package/public/assets/{chunk-EIO257PC-CGqfS2j0.js → chunk-EIO257PC-Bfdsn_q8.js} +1 -1
- package/public/assets/{code-editor-DnrGU9QQ.js → code-editor-CxLqzVwa.js} +1 -1
- package/public/assets/color-picker-DK8V_DI0.js +1 -0
- package/public/assets/{contents-view-C6RdJxE2.js → contents-view-DHRWEBwV.js} +1 -1
- package/public/assets/{conversation-debug-panel-DIjQShXO.js → conversation-debug-panel-zsrBEMxW.js} +1 -1
- package/public/assets/create-note-popup-C9IB_IZr.js +1 -0
- package/public/assets/{cs-CZ-2BRQDIVT-DvEBYfBD.js → cs-CZ-2BRQDIVT-fiabtlu1.js} +1 -1
- package/public/assets/{cypher-editor-Cdd9vqJj.js → cypher-editor-ef6RdDgm.js} +1 -1
- package/public/assets/{da-DK-5WZEPLOC-nBVf9B0e.js → da-DK-5WZEPLOC-C-5tRCvs.js} +1 -1
- package/public/assets/{daily-notes-settings-DG9RUcYk.js → daily-notes-settings-CCotd1Iq.js} +1 -1
- package/public/assets/{dashboard-grid-BvlcalWZ.js → dashboard-grid-DKMK4z_a.js} +1 -1
- package/public/assets/dashboard-workspace-4u-QaXby.js +4 -0
- package/public/assets/{dashboards-settings-module-CMkRnuLc.js → dashboards-settings-module-DmE0Krje.js} +1 -1
- package/public/assets/{dashboards-view-BB1CRB2G.js → dashboards-view-DxUAl6zg.js} +1 -1
- package/public/assets/{de-DE-XR44H4JA-wIoI5uHM.js → de-DE-XR44H4JA-4wneKMQi.js} +1 -1
- package/public/assets/{desktop-server-settings-j8RrUDQh.js → desktop-server-settings-DDd8PcxW.js} +1 -1
- package/public/assets/{directory-picker-columns-BDdL8yxc.js → directory-picker-columns-CqPZNMT8.js} +1 -1
- package/public/assets/{discovery-create-popup-DpDB1MTg.js → discovery-create-popup-BSOSYM4o.js} +1 -1
- package/public/assets/{discovery-import-popup-BsyONSTT.js → discovery-import-popup-NodFxSW1.js} +1 -1
- package/public/assets/{discovery-settings-module-CSz3wdqd.js → discovery-settings-module-DQMZismj.js} +1 -1
- package/public/assets/{discovery-view-DOb6HJff.js → discovery-view-PiwStXSa.js} +1 -1
- package/public/assets/discovery-workspace-BTrjBF19.js +2 -0
- package/public/assets/{dist-tLZONR8L.js → dist-B58c6eJE.js} +1 -1
- package/public/assets/drag-preview-D61OK7zr.js +1 -0
- package/public/assets/{drawing-note-BZkhWRBb.js → drawing-note-BytzAih9.js} +1 -1
- package/public/assets/{el-GR-BZB4AONW-BoxDB0UD.js → el-GR-BZB4AONW-BUDxOK9m.js} +1 -1
- package/public/assets/{en-B4ZKOASM-D3_h4H29.js → en-B4ZKOASM-jB7I34Md.js} +1 -1
- package/public/assets/{es-ES-U4NZUMDT-BTF8-J9f.js → es-ES-U4NZUMDT-gXLOOlpz.js} +1 -1
- package/public/assets/{esm-zhVSGSwY.js → esm-BSlSeh8A.js} +1 -1
- package/public/assets/{eu-ES-A7QVB2H4-PqSQa04Y.js → eu-ES-A7QVB2H4-4kiV_opo.js} +1 -1
- package/public/assets/{fa-IR-HGAKTJCU-B03HX6BC.js → fa-IR-HGAKTJCU-C7F0Dl4h.js} +1 -1
- package/public/assets/{feature-switch-section-CDTUV6B-.js → feature-switch-section-617S6UWP.js} +1 -1
- package/public/assets/{fi-FI-Z5N7JZ37-D5Rn9AGc.js → fi-FI-Z5N7JZ37-DEUSwc4a.js} +1 -1
- package/public/assets/{file-editor-DTm2a8_D.js → file-editor-DvP7rRI9.js} +3 -3
- package/public/assets/{file-language-C8bPT8Wh.js → file-language-DjeubQk3.js} +1 -1
- package/public/assets/{file-preview-Bp9k2YvK.js → file-preview-AkYowAab.js} +1 -1
- package/public/assets/{file-preview-media-CNZHdx05.js → file-preview-media-DL2hGeeZ.js} +1 -1
- package/public/assets/{file-references-api-CSyFnFFm.js → file-references-api-C2G0bSy9.js} +1 -1
- package/public/assets/{files-settings-module-D4HPlkbW.js → files-settings-module-DsylYhrR.js} +1 -1
- package/public/assets/files-view-B6_Mlm9V.css +1 -0
- package/public/assets/files-view-DPSrj_WW.js +3 -0
- package/public/assets/{folder-picker-dialog-D57Q15N4.js → folder-picker-dialog-D_VCqm_i.js} +1 -1
- package/public/assets/{format-panel-value-DYwL3ttM.js → format-panel-value-vueBm4DQ.js} +1 -1
- package/public/assets/{fr-FR-RHASNOE6-BoIuGpVa.js → fr-FR-RHASNOE6-BKLo10bn.js} +1 -1
- package/public/assets/{gl-ES-HMX3MZ6V-R9gfMkm_.js → gl-ES-HMX3MZ6V-D_nHnidC.js} +1 -1
- package/public/assets/{graph-explorer-DtYVExeD.js → graph-explorer-CHz-bFkx.js} +5 -5
- package/public/assets/{graph-settings-module-D--vzqKr.js → graph-settings-module-9hY9bkdT.js} +1 -1
- package/public/assets/{he-IL-6SHJWFNN-DLh6r8yJ.js → he-IL-6SHJWFNN-BXKK7JWx.js} +1 -1
- package/public/assets/{hi-IN-IWLTKZ5I-DsP1yUVR.js → hi-IN-IWLTKZ5I-D2utCBQM.js} +1 -1
- package/public/assets/{hu-HU-A5ZG7DT2-ttWV7_mJ.js → hu-HU-A5ZG7DT2-BENIngFF.js} +1 -1
- package/public/assets/{id-ID-SAP4L64H-DIFD1Rmb.js → id-ID-SAP4L64H-Bw77jJOj.js} +1 -1
- package/public/assets/{ide-settings-module-Dsg4tJV6.js → ide-settings-module-BbIX3okW.js} +1 -1
- package/public/assets/ide-view-0vK2duKI.js +2 -0
- package/public/assets/{image-GAAHSSAO-C38PUNrv.js → image-GAAHSSAO-D4NDL8F6.js} +1 -1
- package/public/assets/{imap-accounts-QVDGlYad.js → imap-accounts-BRbnITJv.js} +1 -1
- package/public/assets/index-BVDhmwI8.js +11 -0
- package/public/assets/index-DjUUY3gd.css +1 -0
- package/public/assets/{it-IT-JPQ66NNP-D9CIdJgS.js → it-IT-JPQ66NNP-DiG4G8vQ.js} +1 -1
- package/public/assets/{ja-JP-DBVTYXUO-CYn7dH3E.js → ja-JP-DBVTYXUO-CILN9NGs.js} +1 -1
- package/public/assets/{journal-create-popup-DnYgWgDU.js → journal-create-popup-39y9ieVG.js} +1 -1
- package/public/assets/{journal-day-route-DpsYGWU7.js → journal-day-route-CYlyL-u0.js} +1 -1
- package/public/assets/{journal-folder-field-DuvIgT6Y.js → journal-folder-field-BfO-_ied.js} +1 -1
- package/public/assets/{journal-page-BdQlNdyB.js → journal-page-TgyVFaPE.js} +2 -2
- package/public/assets/{journal-settings-Dq-9Conv.js → journal-settings-CfjXOXzF.js} +1 -1
- package/public/assets/{journal-typography-QR4z5v0X.js → journal-typography-D3O3AK2U.js} +1 -1
- package/public/assets/journal-writing-route-CYhXzipC.js +1 -0
- package/public/assets/journals-view-DNomC0nF.js +1 -0
- package/public/assets/{kaa-6HZHGXH3-DmZqyxcr.js → kaa-6HZHGXH3-BUua-YiR.js} +1 -1
- package/public/assets/{kab-KAB-ZGHBKWFO-BnEoO3f6.js → kab-KAB-ZGHBKWFO-yPJB-J7N.js} +1 -1
- package/public/assets/{kk-KZ-P5N5QNE5-DcYcuRxx.js → kk-KZ-P5N5QNE5-CAitSjw5.js} +1 -1
- package/public/assets/{km-KH-HSX4SM5Z-DO6DHT6h.js → km-KH-HSX4SM5Z-CSZjabru.js} +1 -1
- package/public/assets/{ko-KR-MTYHY66A-Ch6OwlXE.js → ko-KR-MTYHY66A-CGEXYXZz.js} +1 -1
- package/public/assets/{ku-TR-6OUDTVRD-C9KHFYbx.js → ku-TR-6OUDTVRD-DOfuZRKI.js} +1 -1
- package/public/assets/{link-file-browser-BvVwFMvC.js → link-file-browser-A_Mappx0.js} +1 -1
- package/public/assets/{link-kind-icon-r9mUfWOh.js → link-kind-icon-BMfHfR_C.js} +1 -1
- package/public/assets/{link-picker-C90irWTA.js → link-picker-BfwWXJZg.js} +2 -2
- package/public/assets/{locked-shares-prompt-CA0MuZ_G.js → locked-shares-prompt-BsM-ai_V.js} +1 -1
- package/public/assets/{logging-settings-contribution-C55dtngt.js → logging-settings-contribution-BLHCBnwO.js} +1 -1
- package/public/assets/logic-DtHJ5GlU.js +28 -0
- package/public/assets/{lt-LT-XHIRWOB4-CrK3hZ26.js → lt-LT-XHIRWOB4-CmbJTJAh.js} +1 -1
- package/public/assets/{lv-LV-5QDEKY6T-BOA9oRt-.js → lv-LV-5QDEKY6T-Br-VqxTs.js} +1 -1
- package/public/assets/{markdown-message-9f2rcF0-.js → markdown-message-BIo2pHhE.js} +2 -2
- package/public/assets/{markdown-task-toggle-DiIwYCgC.js → markdown-task-toggle-9k1EldDD.js} +3 -3
- package/public/assets/{matrices-settings-module-DPI1_WsY.js → matrices-settings-module-DKGdrCad.js} +1 -1
- package/public/assets/{matrices-view-CQlirOdv.js → matrices-view-DYF7e5ES.js} +1 -1
- package/public/assets/matrix-workspace-JZhH-HQ5.js +1 -0
- package/public/assets/{maximize-2-C6N1RKlt.js → maximize-2-DATMN9kx.js} +1 -1
- package/public/assets/{mermaid-diagram-CnzQOrTI.js → mermaid-diagram-gUL2-JyE.js} +1 -1
- package/public/assets/{mobile-file-text-B4j-_eP4.js → mobile-file-text-meniSeto.js} +1 -1
- package/public/assets/{mobile-note-content-editor-znLhIM9A.js → mobile-note-content-editor-C6TUyA4F.js} +2 -2
- package/public/assets/{mobile-panel-layer-C2OowtdM.js → mobile-panel-layer-2EcEm-JB.js} +1 -1
- package/public/assets/model-provider-settings-contribution-CfHiu3nS.js +1 -0
- package/public/assets/model-providers-cQOCMmwX.js +1 -0
- package/public/assets/{mr-IN-CRQNXWMA-GWTqYMNI.js → mr-IN-CRQNXWMA-DwF8SFQB.js} +1 -1
- package/public/assets/{my-MM-5M5IBNSE-DnqvLQeM.js → my-MM-5M5IBNSE-BEiMo9eJ.js} +1 -1
- package/public/assets/{nb-NO-T6EIAALU-DyrWt8fZ.js → nb-NO-T6EIAALU-BelWzTQs.js} +1 -1
- package/public/assets/{nl-NL-IS3SIHDZ-COWPkkr8.js → nl-NL-IS3SIHDZ-Ce06PPL4.js} +1 -1
- package/public/assets/{nn-NO-6E72VCQL-8aH2uP9Y.js → nn-NO-6E72VCQL-BbXlzJzR.js} +1 -1
- package/public/assets/note-collab-provider-B9DpnE58.js +1 -0
- package/public/assets/note-collab-transport-BHZ891IL.js +1 -0
- package/public/assets/{note-create-settings-module-CV4dWr8t.js → note-create-settings-module-rIZc1DjQ.js} +1 -1
- package/public/assets/{note-documents-DCd2HaSQ.js → note-documents-CcJDTkta.js} +2 -2
- package/public/assets/note-editor-container-DL3yLdYs.js +2 -0
- package/public/assets/{note-editor-settings-module-CbPu_40k.js → note-editor-settings-module-DI0jRyPy.js} +1 -1
- package/public/assets/{note-excalidraw-editor-RjnG4My9.js → note-excalidraw-editor-fDQ1JVBh.js} +11 -11
- package/public/assets/{note-export-api-2u0sbOpc.js → note-export-api-CwuXGV0y.js} +1 -1
- package/public/assets/{note-export-flow-B3wRdMj0.js → note-export-flow-DcBoI5Pp.js} +1 -1
- package/public/assets/{note-filter-rule-rows-BajgD2k3.js → note-filter-rule-rows-DFSWBwql.js} +1 -1
- package/public/assets/{note-folds-settings-module-DZju6Mum.js → note-folds-settings-module-CFfVg1Cp.js} +1 -1
- package/public/assets/{note-frontmatter-summary-BSKg__aS.js → note-frontmatter-summary-iubFPHA_.js} +1 -1
- package/public/assets/{note-link-list-DKU2PqtO.js → note-link-list-CI9-GM_3.js} +1 -1
- package/public/assets/{note-markdown-editor-CXelEHqr.js → note-markdown-editor-lG6gZT9i.js} +10 -10
- package/public/assets/{note-outline-CNoqBtUP.js → note-outline-BFidIp-8.js} +1 -1
- package/public/assets/note-page-content-8gzPBWMV.js +2 -0
- package/public/assets/{note-page-editor-rhBoxKYB.js → note-page-editor-DpVUxkCx.js} +4 -4
- package/public/assets/{note-path-breadcrumb-uTSXCQK4.js → note-path-breadcrumb-HmtWyYZP.js} +1 -1
- package/public/assets/{note-picker-BD8rmAOq.js → note-picker-B5i41l1u.js} +1 -1
- package/public/assets/{note-picker-popover-DI9Wc706.js → note-picker-popover-B9VTeHiM.js} +1 -1
- package/public/assets/{note-shares-popup-9sJOmL1-.js → note-shares-popup-aUO1SNLN.js} +1 -1
- package/public/assets/{note-source-editor-DWyDYMCj.js → note-source-editor-BXPR_-41.js} +1 -1
- package/public/assets/{note-type-grid-BFX3oTAC.js → note-type-grid-CRCfpYZy.js} +2 -2
- package/public/assets/{note-values-BqD4746M.js → note-values-6D6wWXPg.js} +1 -1
- package/public/assets/{notes-settings-module-C5IPmwKt.js → notes-settings-module-DcP9Hid-.js} +1 -1
- package/public/assets/{oc-FR-POXYY2M6-C_R_VP74.js → oc-FR-POXYY2M6-CyRgkETq.js} +1 -1
- package/public/assets/{open-journal-writing-Bd-CppeX.js → open-journal-writing-Bub8Zn13.js} +1 -1
- package/public/assets/{pa-IN-N4M65BXN-B21EEaul.js → pa-IN-N4M65BXN-A1_Q9748.js} +1 -1
- package/public/assets/page-content-B3fNjwr-.js +1 -0
- package/public/assets/{page-files-BMj9IzfB.js → page-files-CSqFupDZ.js} +1 -1
- package/public/assets/page-note-nmiinGCs.js +1 -0
- package/public/assets/{pane-keys-CTLoUZZR.js → pane-keys-osajBGnu.js} +1 -1
- package/public/assets/{panel-columns-fields-DPjV39xn.js → panel-columns-fields-ZlW6A4My.js} +1 -1
- package/public/assets/{pdf-view-Cm78nuSA.js → pdf-view-BATpBLO5.js} +1 -1
- package/public/assets/{pencil-DQ9fAqT6.js → pencil-xxFNyZzr.js} +1 -1
- package/public/assets/{percentages-BXMCSKIN-CUt8fyAS.js → percentages-BXMCSKIN-DzsiA6IB.js} +1 -1
- package/public/assets/{phone-numbers-CHQaYRah.js → phone-numbers-BQgyhfcH.js} +1 -1
- package/public/assets/{pl-PL-T2D74RX3-Bdo_j9QK.js → pl-PL-T2D74RX3-DaINIVjz.js} +1 -1
- package/public/assets/provider-configuration-CSnNV6ps.css +1 -0
- package/public/assets/provider-configuration-DaFovElx.js +8 -0
- package/public/assets/provider-use-select-D-lJiZ2W.js +1 -0
- package/public/assets/{pt-BR-5N22H2LF-C9DRQ7CW.js → pt-BR-5N22H2LF-ENVHjTz_.js} +1 -1
- package/public/assets/{pt-PT-UZXXM6DQ-ColydZPV.js → pt-PT-UZXXM6DQ-D5Uqv0Vz.js} +1 -1
- package/public/assets/{qr-code-Bm7I0KYt.js → qr-code-CDBCi1Cu.js} +2 -2
- package/public/assets/{qr-code-svg-D0RAuUIk.js → qr-code-svg-8ENstC8b.js} +1 -1
- package/public/assets/qr-defaults-settings-C_8ybA4R.js +1 -0
- package/public/assets/qr-settings-fields-C2-DGF6a.js +1 -0
- package/public/assets/qr-viewer-DAOzDI8d.js +1 -0
- package/public/assets/{reader-clock-22DkpiWR.js → reader-clock-7x7Yvzv1.js} +1 -1
- package/public/assets/{recording-bar-DOm-SEGc.js → recording-bar-BcuvYwhh.js} +2 -2
- package/public/assets/{recording-setup-CV3LE2_1.js → recording-setup-D_MgrYb7.js} +1 -1
- package/public/assets/{recordings-api-C-Bxpzgo.js → recordings-api-Ds77lFsk.js} +1 -1
- package/public/assets/resource-overview-card-BainFWKz.js +1 -0
- package/public/assets/{ro-RO-JPDTUUEW-iJAQDPe9.js → ro-RO-JPDTUUEW-Dq_ouOp1.js} +1 -1
- package/public/assets/{rss-preferences-Bx1Wa4ri.js → rss-preferences-BafuZ3Ku.js} +1 -1
- package/public/assets/{rss-settings-module-BmDISWDk.js → rss-settings-module-Df-YS9tr.js} +1 -1
- package/public/assets/rss-view-BORHnuIQ.js +3 -0
- package/public/assets/rss-view-DIPQBTLT.css +1 -0
- package/public/assets/{ru-RU-B4JR7IUQ-CX_CWbT7.js → ru-RU-B4JR7IUQ-CqqISqJC.js} +1 -1
- package/public/assets/{safe-block-copy-DygjvDD4.js → safe-block-copy-BOVhmncw.js} +1 -1
- package/public/assets/{safe-block-qr-button-Cn9WpEkl.js → safe-block-qr-button-CD7cJG3N.js} +1 -1
- package/public/assets/{safe-block-reader-CNfzTExh.js → safe-block-reader-BkilW4Hj.js} +1 -1
- package/public/assets/safe-folder-conversion-DWTRwvTH.js +1 -0
- package/public/assets/{safe-folders-DCf8IdrM.js → safe-folders-DmvM6dtV.js} +1 -1
- package/public/assets/{safe-move-leaving-tN-IMhDo.js → safe-move-leaving-BT5e1h3p.js} +1 -1
- package/public/assets/{safe-note-locked-B_lt0XcX.js → safe-note-locked-BDCeVwpK.js} +1 -1
- package/public/assets/{safe-notes-settings-module-CMvkyfNG.js → safe-notes-settings-module-BrZreYgf.js} +1 -1
- package/public/assets/search-settings-module-CPnculiI.js +1 -0
- package/public/assets/{secret-form-DSD348Om.js → secret-form-B-YAlbZf.js} +1 -1
- package/public/assets/{secret-popup-y9W7WIrZ.js → secret-popup-CoVpeLZV.js} +1 -1
- package/public/assets/{security-settings-contribution-B_Syg5ab.js → security-settings-contribution-BmcZq1hf.js} +1 -1
- package/public/assets/settings-CU8YR8di.js +1 -0
- package/public/assets/{settings-edit-dialog-B5emNjJi.js → settings-edit-dialog-C_AeTz9Y.js} +1 -1
- package/public/assets/settings-panel-Ds7lOtnD.js +1 -0
- package/public/assets/settings-view-BTz2XbnW.js +4 -0
- package/public/assets/{settings-view-6_hMxTXD.css → settings-view-Bd65kLGK.css} +1 -1
- package/public/assets/{setup-prompt-6JRbE0oa.js → setup-prompt-BbpHVdla.js} +1 -1
- package/public/assets/{share-access-control-C5mpELVT.js → share-access-control-CzAVEv6b.js} +1 -1
- package/public/assets/share-label-CbjQ9iMF.js +1 -0
- package/public/assets/{shared-board-lanes-UWl9klys.js → shared-board-lanes-CAbJAFk6.js} +1 -1
- package/public/assets/{shared-calendar-view-DcCO3mNo.js → shared-calendar-view-DTzDjSs0.js} +1 -1
- package/public/assets/shared-note-route-B_gfX0Nl.js +4 -0
- package/public/assets/{shared-note-text-BdCw7a9a.js → shared-note-text-DFBEyL8Z.js} +1 -1
- package/public/assets/{shares-settings-module-9oF4v70A.js → shares-settings-module-pIdBLmCq.js} +1 -1
- package/public/assets/{si-LK-N5RQ5JYF-DfLSaLm6.js → si-LK-N5RQ5JYF-DmhE8IT5.js} +1 -1
- package/public/assets/{sk-SK-C5VTKIMK-DrAaUVFC.js → sk-SK-C5VTKIMK-YiOZ-xKA.js} +1 -1
- package/public/assets/{sl-SI-NN7IZMDC-WxYLW2Uj.js → sl-SI-NN7IZMDC-BKb37Hlu.js} +1 -1
- package/public/assets/{spaces-settings-module-Dh_QfANj.js → spaces-settings-module-BLU1RsTS.js} +1 -1
- package/public/assets/spaces-view-BhWD3mAw.js +2 -0
- package/public/assets/{sqlite-browser-BfIrq_0x.js → sqlite-browser-C98PFoRG.js} +2 -2
- package/public/assets/{store-attachments-DNyH0asy.js → store-attachments-DbqF7LgE.js} +1 -1
- package/public/assets/{stored-color-picker-CYL7LYdQ.js → stored-color-picker-DLX-e5Nq.js} +1 -1
- package/public/assets/subset-shared.chunk-D8M638AI.js +1 -0
- package/public/assets/{subset-worker.chunk-BrbK91mW.js → subset-worker.chunk-B9ZhBm-P.js} +1 -1
- package/public/assets/{sv-SE-XGPEYMSR-DOB2jm3x.js → sv-SE-XGPEYMSR-VT0snW-T.js} +1 -1
- package/public/assets/{ta-IN-2NMHFXQM-DfC3wGVU.js → ta-IN-2NMHFXQM--MqIf2Jf.js} +1 -1
- package/public/assets/{text-diff-BzNG8nfy.js → text-diff-BmKfp7mY.js} +1 -1
- package/public/assets/{th-TH-HPSO5L25-BsqplWuv.js → th-TH-HPSO5L25-CTKAmQrO.js} +1 -1
- package/public/assets/{theme-colors-2LJ6VIeK.js → theme-colors-zbTaiYL0.js} +1 -1
- package/public/assets/{toolbar-items-DF7H0MSb.js → toolbar-items-DLi0bl0c.js} +1 -1
- package/public/assets/{topology-code-editor-B7zxDyT3.js → topology-code-editor-CNnSyUQ3.js} +1 -1
- package/public/assets/topology-designer-T54LYLYv.js +1 -0
- package/public/assets/topology-editor-aGtCktzA.js +8 -0
- package/public/assets/{topology-folder-migration-popup-Bj4nu8HE.js → topology-folder-migration-popup-C0Wc3ViK.js} +1 -1
- package/public/assets/{topology-settings-module-cWWujj9j.js → topology-settings-module-Dp-Sm37Z.js} +1 -1
- package/public/assets/{tr-TR-DEFEU3FU-DWO1lNTH.js → tr-TR-DEFEU3FU-BVLSiyVW.js} +1 -1
- package/public/assets/{transcription-settings-HrJHl14H.js → transcription-settings-BldPwHO7.js} +4 -4
- package/public/assets/{uk-UA-QMV73CPH-ZHBKj9kv.js → uk-UA-QMV73CPH-DQ4YsZml.js} +1 -1
- package/public/assets/{unlock-prompt-C1AEyIR_.js → unlock-prompt-CkkcVo9g.js} +1 -1
- package/public/assets/{use-candidate-notes-Du1V_uun.js → use-candidate-notes-jH4-EW29.js} +1 -1
- package/public/assets/{use-directory-listing-BaYgcuHI.js → use-directory-listing-Cn9t21ra.js} +1 -1
- package/public/assets/{use-folding-enabled-CyYip5Go.js → use-folding-enabled-DKvri2UA.js} +1 -1
- package/public/assets/{use-live-document-Ck_XPFVd.js → use-live-document-D4PkZrbU.js} +1 -1
- package/public/assets/{use-mobile-layer-navigation-CBRepW9w.js → use-mobile-layer-navigation-BIC7HlT_.js} +1 -1
- package/public/assets/{use-note-attachments-SPgAe-M0.js → use-note-attachments-Bew073Hl.js} +1 -1
- package/public/assets/{use-note-delete-Dvrzq6Pl.js → use-note-delete-fFNH1Glk.js} +1 -1
- package/public/assets/use-note-editor-session-R1wm0xDf.js +1 -0
- package/public/assets/{use-note-export-flow-0uAfXAwf.js → use-note-export-flow-Dm7yhW5s.js} +2 -2
- package/public/assets/use-provider-dialogs-CrxN9JCo.js +1 -0
- package/public/assets/{use-reflection-request-DV5-_c14.js → use-reflection-request-C1DxtaYX.js} +3 -3
- package/public/assets/{use-safe-folder-moves-0nw2jjTX.js → use-safe-folder-moves-DjQUnMvz.js} +1 -1
- package/public/assets/{use-safe-folders-apply-C9pni8YW.js → use-safe-folders-apply-B1V8l7WU.js} +1 -1
- package/public/assets/{use-screen-source-BllYITR6.js → use-screen-source-CF-48NnC.js} +1 -1
- package/public/assets/use-share-actions-kb7uFat_.js +1 -0
- package/public/assets/{use-vault-file-link-C0ZO_VPm.js → use-vault-file-link-B-ZRcKDu.js} +1 -1
- package/public/assets/{use-voice-questions-Bjgb45Dc.js → use-voice-questions-DGVQlAST.js} +1 -1
- package/public/assets/{vault-entries-api-DVVjgeZh.js → vault-entries-api-pFsJiGnJ.js} +1 -1
- package/public/assets/vault-manager-YKz_Ib18.js +1 -0
- package/public/assets/{vault-settings-module-DMjLQmKz.js → vault-settings-module-CCMMSy4B.js} +1 -1
- package/public/assets/{vault-shares-popup-CCPGkRmF.js → vault-shares-popup-CaGnEIJA.js} +1 -1
- package/public/assets/{versioning-preferences-dvxhrMo9.js → versioning-preferences-DrNq-y_0.js} +1 -1
- package/public/assets/{versioning-settings-module-CnDDngKG.js → versioning-settings-module-Ddug486c.js} +1 -1
- package/public/assets/versioning-view-PR4R4gks.js +2 -0
- package/public/assets/{vi-VN-M7AON7JQ-uUfHJEho.js → vi-VN-M7AON7JQ-B-fHV7o8.js} +1 -1
- package/public/assets/video-recording-dialog-CxRs1eLE.js +1 -0
- package/public/assets/{video-recording-settings-D6YT_FW3.js → video-recording-settings-B2iE6IdW.js} +1 -1
- package/public/assets/{widget-frame-CjlAZSUy.js → widget-frame-DiF4946k.js} +1 -1
- package/public/assets/{zh-CN-LNUGB5OW-COz3oRg3.js → zh-CN-LNUGB5OW-CUgxiiUV.js} +1 -1
- package/public/assets/{zh-HK-E62DVLB3-C8ICkLhf.js → zh-HK-E62DVLB3-D-87W8QH.js} +1 -1
- package/public/assets/{zh-TW-RAJ6MFWO-AYdVqmV8.js → zh-TW-RAJ6MFWO-BVaf47B6.js} +1 -1
- package/public/index.html +3 -3
- package/public/assets/board-workspace-DPSlmJ8w.js +0 -1
- package/public/assets/calendar-workspace-6t1kuFgj.js +0 -1
- package/public/assets/chat-message-list-ClUR56GV.js +0 -1
- package/public/assets/color-picker-ClAn42eA.js +0 -1
- package/public/assets/create-note-popup-CRi210cC.js +0 -1
- package/public/assets/dashboard-workspace-D45MA_Wf.js +0 -4
- package/public/assets/discovery-workspace-Cyc70gQ1.js +0 -2
- package/public/assets/drag-preview-Cb6aidku.js +0 -1
- package/public/assets/files-view-BIDZtZgg.js +0 -3
- package/public/assets/files-view-Bo1uBB_W.css +0 -1
- package/public/assets/ide-view-DCvwb5Bx.js +0 -2
- package/public/assets/index-B8xguO4f.css +0 -1
- package/public/assets/index-CCUyKE6q.js +0 -11
- package/public/assets/journal-writing-route-JP-jPBGZ.js +0 -1
- package/public/assets/journals-view-No5xQN8-.js +0 -1
- package/public/assets/logic-BNk_20eJ.js +0 -28
- package/public/assets/matrix-workspace-C3LhTNPX.js +0 -1
- package/public/assets/model-provider-settings-contribution-DYmNbsgA.js +0 -1
- package/public/assets/model-providers-7VKk3K9H.js +0 -8
- package/public/assets/model-providers-DgRkVmP5.css +0 -1
- package/public/assets/note-collab-provider-969Kgyu8.js +0 -1
- package/public/assets/note-collab-transport-CQDYt_Db.js +0 -1
- package/public/assets/note-editor-container-CTnEE-98.js +0 -2
- package/public/assets/note-page-content-DIqkiMvt.js +0 -2
- package/public/assets/page-content-C1jtzs7H.js +0 -1
- package/public/assets/page-note-Chw2UF0u.js +0 -1
- package/public/assets/provider-use-select-DCSwSrlz.js +0 -1
- package/public/assets/qr-defaults-settings-2_Yt9x4N.js +0 -1
- package/public/assets/qr-settings-fields-DDO4XgMl.js +0 -1
- package/public/assets/qr-viewer-CvEfRC2r.js +0 -1
- package/public/assets/resource-overview-card-Co8aU6jw.js +0 -1
- package/public/assets/rss-view-5aqCVOCs.css +0 -1
- package/public/assets/rss-view-BCEFsYtS.js +0 -1
- package/public/assets/safe-folder-conversion-BOLpnv8P.js +0 -1
- package/public/assets/search-settings-module-DmczYjcQ.js +0 -1
- package/public/assets/settings-ChT117Ke.js +0 -1
- package/public/assets/settings-panel-Cl5kUs9O.js +0 -1
- package/public/assets/settings-view-C_lfjngd.js +0 -3
- package/public/assets/share-label-BU3So3s7.js +0 -1
- package/public/assets/shared-note-route-DaI6hm83.js +0 -4
- package/public/assets/spaces-view-Dw2uxDxU.js +0 -2
- package/public/assets/subset-shared.chunk-D1nlqSEH.js +0 -1
- package/public/assets/topology-designer-CvJN6QTV.js +0 -1
- package/public/assets/topology-editor-RZ0_yLuO.js +0 -8
- package/public/assets/use-note-editor-session-CRC-natg.js +0 -1
- package/public/assets/use-share-actions-ujEMhCfl.js +0 -1
- package/public/assets/vault-manager-CMQaGDss.js +0 -1
- package/public/assets/versioning-view-BsIFugt4.js +0 -2
- package/public/assets/video-recording-dialog-7IGrQMwx.js +0 -1
package/dist/rss/rss.module.js
CHANGED
|
@@ -7,14 +7,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.RssModule = void 0;
|
|
10
|
-
// The RSS routes: the feeds a vault follows, their entries and what the person marks and notes on them, and the background fetch.
|
|
10
|
+
// The RSS routes: the feeds a vault follows, their entries and what the person marks and notes on them, the preference profiles distilled from that, and the background fetch.
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
|
+
const providers_module_1 = require("../providers/providers.module");
|
|
12
13
|
const rss_controller_1 = require("./rss.controller");
|
|
14
|
+
const rss_profiles_controller_1 = require("./rss-profiles.controller");
|
|
15
|
+
const rss_profiles_service_1 = require("./rss-profiles.service");
|
|
13
16
|
const rss_feed_poller_service_1 = require("./rss-feed-poller.service");
|
|
14
17
|
const rss_service_1 = require("./rss.service");
|
|
15
18
|
let RssModule = class RssModule {
|
|
16
19
|
};
|
|
17
20
|
exports.RssModule = RssModule;
|
|
18
21
|
exports.RssModule = RssModule = __decorate([
|
|
19
|
-
(0, common_1.Module)({ controllers: [rss_controller_1.RssController], providers: [rss_service_1.RssService, rss_feed_poller_service_1.RssFeedPollerService] })
|
|
22
|
+
(0, common_1.Module)({ imports: [providers_module_1.ProvidersModule], controllers: [rss_controller_1.RssController, rss_profiles_controller_1.RssProfilesController], providers: [rss_service_1.RssService, rss_feed_poller_service_1.RssFeedPollerService, rss_profiles_service_1.RssProfilesService] })
|
|
20
23
|
], RssModule);
|
|
@@ -133,7 +133,7 @@ let SearchController = class SearchController {
|
|
|
133
133
|
async testEmbeddings(vaultId, input) {
|
|
134
134
|
const endpoint = await this.modelProvider.embeddingEndpoint(input.connectionId, input.modelId);
|
|
135
135
|
if (!endpoint)
|
|
136
|
-
throw new common_1.BadRequestException('Choose a connected provider with embeddings enabled in AI
|
|
136
|
+
throw new common_1.BadRequestException('Choose a connected provider with embeddings enabled in AI Providers.');
|
|
137
137
|
try {
|
|
138
138
|
return { message: `Embedded a test text with ${endpoint.modelId}: ${await this.embeddingService.testEndpoint(endpoint)} dimensions.` };
|
|
139
139
|
}
|
|
@@ -30,6 +30,22 @@ let VaultController = class VaultController {
|
|
|
30
30
|
return this.vaults.capabilities(this.vaults.fromNetwork(request));
|
|
31
31
|
}
|
|
32
32
|
async takenIds() { return { ids: await this.vaults.takenVaultIds() }; }
|
|
33
|
+
async demos() {
|
|
34
|
+
try {
|
|
35
|
+
return await this.vaults.listDemos();
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
(0, vault_http_error_1.throwVaultHttpError)(error);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async installDemo(request, demoId, input) {
|
|
42
|
+
try {
|
|
43
|
+
return await this.vaults.installDemo(demoId, input, this.vaults.fromNetwork(request));
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
(0, vault_http_error_1.throwVaultHttpError)(error);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
33
49
|
async folders(request, path) {
|
|
34
50
|
try {
|
|
35
51
|
return await this.vaults.listHostFolders(path, this.vaults.fromNetwork(request));
|
|
@@ -129,6 +145,31 @@ __decorate([
|
|
|
129
145
|
__metadata("design:paramtypes", []),
|
|
130
146
|
__metadata("design:returntype", Promise)
|
|
131
147
|
], VaultController.prototype, "takenIds", null);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, common_1.Get)('demos'),
|
|
150
|
+
(0, swagger_1.ApiOperation)({ summary: 'List the demo vaults published in getbraian/braian-demo, from its manifest' }),
|
|
151
|
+
(0, swagger_1.ApiOkResponse)({ type: [vault_dto_1.DemoVaultDto] }),
|
|
152
|
+
(0, swagger_1.ApiBadGatewayResponse)({ description: 'The demo list could not be fetched or read' }),
|
|
153
|
+
__metadata("design:type", Function),
|
|
154
|
+
__metadata("design:paramtypes", []),
|
|
155
|
+
__metadata("design:returntype", Promise)
|
|
156
|
+
], VaultController.prototype, "demos", null);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, common_1.Post)('demos/:demoId'),
|
|
159
|
+
(0, swagger_1.ApiOperation)({ summary: 'Download a demo vault, check it against the manifest, unpack it into a new folder and register it' }),
|
|
160
|
+
(0, swagger_1.ApiCreatedResponse)({ type: vault_dto_1.VaultDto }),
|
|
161
|
+
(0, swagger_1.ApiBadRequestResponse)({ description: 'Invalid vault ID or parent folder' }),
|
|
162
|
+
(0, swagger_1.ApiConflictResponse)({ description: 'The vault ID, or a folder of that name, already exists' }),
|
|
163
|
+
(0, swagger_1.ApiForbiddenResponse)({ description: 'The vault list cannot change here, or the desktop app: a device on the network, or no parent folder named' }),
|
|
164
|
+
(0, swagger_1.ApiNotFoundResponse)({ description: 'The manifest lists no demo with this ID' }),
|
|
165
|
+
(0, swagger_1.ApiBadGatewayResponse)({ description: 'The demo could not be downloaded, or did not match its manifest entry' }),
|
|
166
|
+
__param(0, (0, common_1.Req)()),
|
|
167
|
+
__param(1, (0, common_1.Param)('demoId')),
|
|
168
|
+
__param(2, (0, common_1.Body)()),
|
|
169
|
+
__metadata("design:type", Function),
|
|
170
|
+
__metadata("design:paramtypes", [Object, String, vault_dto_1.InstallDemoVaultDto]),
|
|
171
|
+
__metadata("design:returntype", Promise)
|
|
172
|
+
], VaultController.prototype, "installDemo", null);
|
|
132
173
|
__decorate([
|
|
133
174
|
openapi.ApiQuery({ name: "path", required: false }),
|
|
134
175
|
(0, common_1.Get)('folders'),
|
package/dist/vaults/vault.dto.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.VaultSettingsOperationDto = exports.SpotlightWritableSettingsDto = exports.EmbeddingsWritableSettingsDto = exports.VaultSettingsDto = exports.AttachmentSettingsDto = exports.RecordingSettingsDto = exports.DailyNotesSettingsDto = exports.SafeFolderDto = exports.SafeNotesWritableSettingsDto = exports.PasswordGeneratorDto = exports.DailyNotesWritableSettingsDto = exports.VaultNoteKeyOverridesDto = exports.HostFolderListingDto = exports.HostFolderDto = exports.VaultTakenIdsDto = exports.VaultCapabilitiesDto = exports.VaultStatsDto = exports.VaultDto = exports.UpdateVaultDto = exports.CreateVaultDto = void 0;
|
|
12
|
+
exports.VaultSettingsOperationDto = exports.SpotlightWritableSettingsDto = exports.EmbeddingsWritableSettingsDto = exports.VaultSettingsDto = exports.AttachmentSettingsDto = exports.RecordingSettingsDto = exports.DailyNotesSettingsDto = exports.SafeFolderDto = exports.SafeNotesWritableSettingsDto = exports.PasswordGeneratorDto = exports.DailyNotesWritableSettingsDto = exports.VaultNoteKeyOverridesDto = exports.HostFolderListingDto = exports.HostFolderDto = exports.VaultTakenIdsDto = exports.VaultCapabilitiesDto = exports.VaultStatsDto = exports.VaultDto = exports.UpdateVaultDto = exports.DemoVaultDto = exports.InstallDemoVaultDto = exports.CreateVaultDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
@@ -47,6 +47,73 @@ __decorate([
|
|
|
47
47
|
(0, class_validator_1.Matches)(/\S/, { message: 'dataPath must contain non-whitespace text' }),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], CreateVaultDto.prototype, "dataPath", void 0);
|
|
50
|
+
class InstallDemoVaultDto {
|
|
51
|
+
id;
|
|
52
|
+
label;
|
|
53
|
+
parentPath;
|
|
54
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
55
|
+
return { id: { required: true, type: () => String }, label: { required: false, type: () => String, maxLength: 200, pattern: "\\S" }, parentPath: { required: false, type: () => String, maxLength: 4096, pattern: "\\S" } };
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.InstallDemoVaultDto = InstallDemoVaultDto;
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({ example: 'office', pattern: graph_agent_1.vaultIdPattern.source }),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
(0, class_validator_1.Matches)(graph_agent_1.vaultIdPattern),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], InstallDemoVaultDto.prototype, "id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)({ example: 'Office', required: false, description: 'Optional display label; the ID is shown when omitted' }),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
(0, class_validator_1.MaxLength)(200),
|
|
70
|
+
(0, class_validator_1.Matches)(/\S/, { message: 'label must contain non-whitespace text' }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], InstallDemoVaultDto.prototype, "label", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, swagger_1.ApiProperty)({ example: '/Users/me/Documents', required: false, description: 'Absolute folder the demo is unpacked into as a new `<id>` subfolder. Required in the desktop app; elsewhere absent means BrAIan\'s vaults folder.' }),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.IsString)(),
|
|
77
|
+
(0, class_validator_1.MaxLength)(4_096),
|
|
78
|
+
(0, class_validator_1.Matches)(/\S/, { message: 'parentPath must contain non-whitespace text' }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], InstallDemoVaultDto.prototype, "parentPath", void 0);
|
|
81
|
+
class DemoVaultDto {
|
|
82
|
+
id;
|
|
83
|
+
name;
|
|
84
|
+
description;
|
|
85
|
+
version;
|
|
86
|
+
size;
|
|
87
|
+
fileCount;
|
|
88
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
89
|
+
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, description: { required: true, type: () => String }, version: { required: true, type: () => String }, size: { required: true, type: () => Number }, fileCount: { required: true, type: () => Number } };
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.DemoVaultDto = DemoVaultDto;
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, swagger_1.ApiProperty)({ example: 'office' }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], DemoVaultDto.prototype, "id", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)({ example: 'Office' }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], DemoVaultDto.prototype, "name", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, swagger_1.ApiProperty)({ example: 'A small company workspace.' }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], DemoVaultDto.prototype, "description", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({ example: '20261112-141428', description: 'The release of the demo, from its manifest.' }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], DemoVaultDto.prototype, "version", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, swagger_1.ApiProperty)({ example: 55858, description: 'Download size in bytes.' }),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], DemoVaultDto.prototype, "size", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, swagger_1.ApiProperty)({ example: 39 }),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], DemoVaultDto.prototype, "fileCount", void 0);
|
|
50
117
|
class UpdateVaultDto {
|
|
51
118
|
label;
|
|
52
119
|
static _OPENAPI_METADATA_FACTORY() {
|
|
@@ -412,6 +479,7 @@ class VaultSettingsDto {
|
|
|
412
479
|
chat;
|
|
413
480
|
rss;
|
|
414
481
|
ide;
|
|
482
|
+
mcp;
|
|
415
483
|
attachments;
|
|
416
484
|
recordings;
|
|
417
485
|
colorSlots;
|
|
@@ -419,7 +487,7 @@ class VaultSettingsDto {
|
|
|
419
487
|
transcription;
|
|
420
488
|
agent;
|
|
421
489
|
static _OPENAPI_METADATA_FACTORY() {
|
|
422
|
-
return { notes: { required: true, type: () => require("./vault.dto").VaultNoteKeyOverridesDto }, dailyNotes: { required: true, type: () => require("./vault.dto").DailyNotesSettingsDto }, navigation: { required: true, type: () => Object }, journal: { required: false, type: () => Object }, versioning: { required: false, type: () => Object }, matrices: { required: false, type: () => Object }, dashboards: { required: false, type: () => Object }, spaces: { required: false, type: () => Object }, spotlight: { required: false, type: () => Object }, shares: { required: false, type: () => Object }, safeNotes: { required: false, type: () => Object }, boards: { required: false, type: () => Object }, calendars: { required: false, type: () => Object }, files: { required: false, type: () => Object }, topology: { required: false, type: () => Object }, graph: { required: false, type: () => Object }, chat: { required: false, type: () => Object }, rss: { required: false, type: () => Object }, ide: { required: false, type: () => Object }, attachments: { required: false, type: () => Object }, recordings: { required: false, type: () => Object }, colorSlots: { required: false, type: () => [String] }, qrCode: { required: false, type: () => Object }, transcription: { required: false, type: () => Object }, agent: { required: true } };
|
|
490
|
+
return { notes: { required: true, type: () => require("./vault.dto").VaultNoteKeyOverridesDto }, dailyNotes: { required: true, type: () => require("./vault.dto").DailyNotesSettingsDto }, navigation: { required: true, type: () => Object }, journal: { required: false, type: () => Object }, versioning: { required: false, type: () => Object }, matrices: { required: false, type: () => Object }, dashboards: { required: false, type: () => Object }, spaces: { required: false, type: () => Object }, spotlight: { required: false, type: () => Object }, shares: { required: false, type: () => Object }, safeNotes: { required: false, type: () => Object }, boards: { required: false, type: () => Object }, calendars: { required: false, type: () => Object }, files: { required: false, type: () => Object }, topology: { required: false, type: () => Object }, graph: { required: false, type: () => Object }, chat: { required: false, type: () => Object }, rss: { required: false, type: () => Object }, ide: { required: false, type: () => Object }, mcp: { required: false, type: () => Object }, attachments: { required: false, type: () => Object }, recordings: { required: false, type: () => Object }, colorSlots: { required: false, type: () => [String] }, qrCode: { required: false, type: () => Object }, transcription: { required: false, type: () => Object }, agent: { required: true } };
|
|
423
491
|
}
|
|
424
492
|
}
|
|
425
493
|
exports.VaultSettingsDto = VaultSettingsDto;
|
|
@@ -538,6 +606,12 @@ __decorate([
|
|
|
538
606
|
(0, class_validator_1.IsObject)(),
|
|
539
607
|
__metadata("design:type", Object)
|
|
540
608
|
], VaultSettingsDto.prototype, "ide", void 0);
|
|
609
|
+
__decorate([
|
|
610
|
+
(0, swagger_1.ApiProperty)({ required: false, type: Object, example: { enabled: true }, description: 'MCP server feature record. Absent reads as off; the server answers only while chat is on as well. Its token is kept in auth.yaml, never here.' }),
|
|
611
|
+
(0, class_validator_1.IsOptional)(),
|
|
612
|
+
(0, class_validator_1.IsObject)(),
|
|
613
|
+
__metadata("design:type", Object)
|
|
614
|
+
], VaultSettingsDto.prototype, "mcp", void 0);
|
|
541
615
|
__decorate([
|
|
542
616
|
(0, swagger_1.ApiProperty)({ required: false, type: Object, example: { enabled: true, folderPath: './attachments', maxUploadBytes: 104857600 }, description: 'The Attachments switch, where uploads land and how large one may be. Absent reads as off, ./attachments and 100 MB; while off, every upload is refused.' }),
|
|
543
617
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -642,13 +716,13 @@ class VaultSettingsOperationDto {
|
|
|
642
716
|
binding;
|
|
643
717
|
entityId;
|
|
644
718
|
static _OPENAPI_METADATA_FACTORY() {
|
|
645
|
-
return { op: { required: true, enum: ["replace_note_keys", "replace_daily_notes", "set_daily_notes_enabled", "set_versioning_enabled", "replace_spotlight_config", "set_embeddings_enabled", "replace_embeddings_config", "set_matrices_enabled", "set_dashboards_enabled", "set_spaces_enabled", "set_discovery_enabled", "set_shares_enabled", "set_share_default_access", "set_share_save_limit", "set_safe_notes_enabled", "replace_safe_notes", "replace_safe_folders", "relink_safe_journal_folder", "set_boards_enabled", "set_calendars_enabled", "set_notes_enabled", "set_files_enabled", "replace_files", "set_topology_enabled", "set_graph_enabled", "set_chat_enabled", "set_rss_enabled", "set_ide_enabled", "set_attachments_enabled", "replace_attachments", "set_recordings_enabled", "replace_recordings", "replace_navigation", "replace_color_slots", "replace_qr_defaults", "replace_variables", "replace_transcription", "replace_instructions", "set_agent_editing", "set_agent_tools", "add_entity_binding", "update_entity_binding", "remove_entity_binding"], enum: ['replace_note_keys', 'replace_spotlight_config', 'set_embeddings_enabled', 'replace_embeddings_config', 'replace_daily_notes', 'set_daily_notes_enabled', 'set_versioning_enabled', 'set_matrices_enabled', 'set_dashboards_enabled', 'set_spaces_enabled', 'set_discovery_enabled', 'set_shares_enabled', 'set_share_default_access', 'set_share_save_limit', 'set_safe_notes_enabled', 'replace_safe_notes', 'replace_safe_folders', 'relink_safe_journal_folder', 'set_boards_enabled', 'set_calendars_enabled', 'set_notes_enabled', 'set_files_enabled', 'replace_files', 'set_topology_enabled', 'set_graph_enabled', 'set_chat_enabled', 'set_rss_enabled', 'set_ide_enabled', 'set_attachments_enabled', 'replace_attachments', 'set_recordings_enabled', 'replace_recordings', 'replace_navigation', 'replace_color_slots', 'replace_qr_defaults', 'replace_variables', 'replace_transcription', 'replace_instructions', 'set_agent_editing', 'set_agent_tools', 'add_entity_binding', 'update_entity_binding', 'remove_entity_binding'] }, defaultAccess: { required: false, enum: ["read", "write", "dictate"], enum: ['read', 'write', 'dictate'] }, notes: { required: false, type: () => require("./vault.dto").VaultNoteKeyOverridesDto }, dailyNotes: { required: false, type: () => require("./vault.dto").DailyNotesWritableSettingsDto }, safeNotes: { required: false, type: () => require("./vault.dto").SafeNotesWritableSettingsDto }, folders: { required: false, type: () => [require("./vault.dto").SafeFolderDto] }, journalId: { required: false, type: () => String }, folder: { required: false, type: () => String }, attachments: { required: false, type: () => require("./vault.dto").AttachmentSettingsDto }, recordings: { required: false, type: () => require("./vault.dto").RecordingSettingsDto }, files: { required: false, type: () => Object }, enabled: { required: false, type: () => Boolean }, maxShareSaveBytes: { required: false, type: () => Number, nullable: true, minimum: 1 }, qrCode: { required: false, type: () => Object }, colorSlots: { required: false, type: () => [String] }, navigation: { required: false, type: () => Object }, transcription: { required: false, type: () => Object }, variables: { required: false, type: "object", additionalProperties: true }, instructions: { required: false, type: () => String }, editing: { required: false, type: () => ({ unknownNotes: { required: false, type: () => Boolean } }) }, tools: { required: false, type: "object", additionalProperties: { type: "boolean" } }, binding: { required: false, type: () => ({ entityId: { required: true, type: () => String }, meaning: { required: true, type: () => String } }) }, entityId: { required: false, type: () => String } };
|
|
719
|
+
return { op: { required: true, enum: ["replace_note_keys", "replace_daily_notes", "set_daily_notes_enabled", "set_versioning_enabled", "replace_spotlight_config", "set_embeddings_enabled", "replace_embeddings_config", "set_matrices_enabled", "set_dashboards_enabled", "set_spaces_enabled", "set_discovery_enabled", "set_shares_enabled", "set_share_default_access", "set_share_save_limit", "set_safe_notes_enabled", "replace_safe_notes", "replace_safe_folders", "relink_safe_journal_folder", "set_boards_enabled", "set_calendars_enabled", "set_notes_enabled", "set_files_enabled", "replace_files", "set_topology_enabled", "set_graph_enabled", "set_chat_enabled", "set_rss_enabled", "set_ide_enabled", "set_mcp_enabled", "set_attachments_enabled", "replace_attachments", "set_recordings_enabled", "replace_recordings", "replace_navigation", "replace_color_slots", "replace_qr_defaults", "replace_variables", "replace_transcription", "replace_instructions", "set_agent_editing", "set_agent_tools", "add_entity_binding", "update_entity_binding", "remove_entity_binding"], enum: ['replace_note_keys', 'replace_spotlight_config', 'set_embeddings_enabled', 'replace_embeddings_config', 'replace_daily_notes', 'set_daily_notes_enabled', 'set_versioning_enabled', 'set_matrices_enabled', 'set_dashboards_enabled', 'set_spaces_enabled', 'set_discovery_enabled', 'set_shares_enabled', 'set_share_default_access', 'set_share_save_limit', 'set_safe_notes_enabled', 'replace_safe_notes', 'replace_safe_folders', 'relink_safe_journal_folder', 'set_boards_enabled', 'set_calendars_enabled', 'set_notes_enabled', 'set_files_enabled', 'replace_files', 'set_topology_enabled', 'set_graph_enabled', 'set_chat_enabled', 'set_rss_enabled', 'set_ide_enabled', 'set_mcp_enabled', 'set_attachments_enabled', 'replace_attachments', 'set_recordings_enabled', 'replace_recordings', 'replace_navigation', 'replace_color_slots', 'replace_qr_defaults', 'replace_variables', 'replace_transcription', 'replace_instructions', 'set_agent_editing', 'set_agent_tools', 'add_entity_binding', 'update_entity_binding', 'remove_entity_binding'] }, defaultAccess: { required: false, enum: ["read", "write", "dictate"], enum: ['read', 'write', 'dictate'] }, notes: { required: false, type: () => require("./vault.dto").VaultNoteKeyOverridesDto }, dailyNotes: { required: false, type: () => require("./vault.dto").DailyNotesWritableSettingsDto }, safeNotes: { required: false, type: () => require("./vault.dto").SafeNotesWritableSettingsDto }, folders: { required: false, type: () => [require("./vault.dto").SafeFolderDto] }, journalId: { required: false, type: () => String }, folder: { required: false, type: () => String }, attachments: { required: false, type: () => require("./vault.dto").AttachmentSettingsDto }, recordings: { required: false, type: () => require("./vault.dto").RecordingSettingsDto }, files: { required: false, type: () => Object }, enabled: { required: false, type: () => Boolean }, maxShareSaveBytes: { required: false, type: () => Number, nullable: true, minimum: 1 }, qrCode: { required: false, type: () => Object }, colorSlots: { required: false, type: () => [String] }, navigation: { required: false, type: () => Object }, transcription: { required: false, type: () => Object }, variables: { required: false, type: "object", additionalProperties: true }, instructions: { required: false, type: () => String }, editing: { required: false, type: () => ({ unknownNotes: { required: false, type: () => Boolean } }) }, tools: { required: false, type: "object", additionalProperties: { type: "boolean" } }, binding: { required: false, type: () => ({ entityId: { required: true, type: () => String }, meaning: { required: true, type: () => String } }) }, entityId: { required: false, type: () => String } };
|
|
646
720
|
}
|
|
647
721
|
}
|
|
648
722
|
exports.VaultSettingsOperationDto = VaultSettingsOperationDto;
|
|
649
723
|
__decorate([
|
|
650
|
-
(0, swagger_1.ApiProperty)({ enum: ['replace_note_keys', 'replace_spotlight_config', 'set_embeddings_enabled', 'replace_embeddings_config', 'replace_daily_notes', 'set_daily_notes_enabled', 'set_versioning_enabled', 'set_matrices_enabled', 'set_dashboards_enabled', 'set_spaces_enabled', 'set_discovery_enabled', 'set_shares_enabled', 'set_share_default_access', 'set_share_save_limit', 'set_safe_notes_enabled', 'replace_safe_notes', 'replace_safe_folders', 'relink_safe_journal_folder', 'set_boards_enabled', 'set_calendars_enabled', 'set_notes_enabled', 'set_files_enabled', 'replace_files', 'set_topology_enabled', 'set_graph_enabled', 'set_chat_enabled', 'set_rss_enabled', 'set_ide_enabled', 'set_attachments_enabled', 'replace_attachments', 'set_recordings_enabled', 'replace_recordings', 'replace_navigation', 'replace_color_slots', 'replace_qr_defaults', 'replace_variables', 'replace_transcription', 'replace_instructions', 'set_agent_editing', 'set_agent_tools', 'add_entity_binding', 'update_entity_binding', 'remove_entity_binding'] }),
|
|
651
|
-
(0, class_validator_1.IsIn)(['replace_note_keys', 'replace_spotlight_config', 'set_embeddings_enabled', 'replace_embeddings_config', 'replace_daily_notes', 'set_daily_notes_enabled', 'set_versioning_enabled', 'set_matrices_enabled', 'set_dashboards_enabled', 'set_spaces_enabled', 'set_discovery_enabled', 'set_shares_enabled', 'set_share_default_access', 'set_share_save_limit', 'set_safe_notes_enabled', 'replace_safe_notes', 'replace_safe_folders', 'relink_safe_journal_folder', 'set_boards_enabled', 'set_calendars_enabled', 'set_notes_enabled', 'set_files_enabled', 'replace_files', 'set_topology_enabled', 'set_graph_enabled', 'set_chat_enabled', 'set_rss_enabled', 'set_ide_enabled', 'set_attachments_enabled', 'replace_attachments', 'set_recordings_enabled', 'replace_recordings', 'replace_navigation', 'replace_color_slots', 'replace_qr_defaults', 'replace_variables', 'replace_transcription', 'replace_instructions', 'set_agent_editing', 'set_agent_tools', 'add_entity_binding', 'update_entity_binding', 'remove_entity_binding']),
|
|
724
|
+
(0, swagger_1.ApiProperty)({ enum: ['replace_note_keys', 'replace_spotlight_config', 'set_embeddings_enabled', 'replace_embeddings_config', 'replace_daily_notes', 'set_daily_notes_enabled', 'set_versioning_enabled', 'set_matrices_enabled', 'set_dashboards_enabled', 'set_spaces_enabled', 'set_discovery_enabled', 'set_shares_enabled', 'set_share_default_access', 'set_share_save_limit', 'set_safe_notes_enabled', 'replace_safe_notes', 'replace_safe_folders', 'relink_safe_journal_folder', 'set_boards_enabled', 'set_calendars_enabled', 'set_notes_enabled', 'set_files_enabled', 'replace_files', 'set_topology_enabled', 'set_graph_enabled', 'set_chat_enabled', 'set_rss_enabled', 'set_ide_enabled', 'set_mcp_enabled', 'set_attachments_enabled', 'replace_attachments', 'set_recordings_enabled', 'replace_recordings', 'replace_navigation', 'replace_color_slots', 'replace_qr_defaults', 'replace_variables', 'replace_transcription', 'replace_instructions', 'set_agent_editing', 'set_agent_tools', 'add_entity_binding', 'update_entity_binding', 'remove_entity_binding'] }),
|
|
725
|
+
(0, class_validator_1.IsIn)(['replace_note_keys', 'replace_spotlight_config', 'set_embeddings_enabled', 'replace_embeddings_config', 'replace_daily_notes', 'set_daily_notes_enabled', 'set_versioning_enabled', 'set_matrices_enabled', 'set_dashboards_enabled', 'set_spaces_enabled', 'set_discovery_enabled', 'set_shares_enabled', 'set_share_default_access', 'set_share_save_limit', 'set_safe_notes_enabled', 'replace_safe_notes', 'replace_safe_folders', 'relink_safe_journal_folder', 'set_boards_enabled', 'set_calendars_enabled', 'set_notes_enabled', 'set_files_enabled', 'replace_files', 'set_topology_enabled', 'set_graph_enabled', 'set_chat_enabled', 'set_rss_enabled', 'set_ide_enabled', 'set_mcp_enabled', 'set_attachments_enabled', 'replace_attachments', 'set_recordings_enabled', 'replace_recordings', 'replace_navigation', 'replace_color_slots', 'replace_qr_defaults', 'replace_variables', 'replace_transcription', 'replace_instructions', 'set_agent_editing', 'set_agent_tools', 'add_entity_binding', 'update_entity_binding', 'remove_entity_binding']),
|
|
652
726
|
__metadata("design:type", Object)
|
|
653
727
|
], VaultSettingsOperationDto.prototype, "op", void 0);
|
|
654
728
|
__decorate([
|
|
@@ -724,7 +798,7 @@ __decorate([
|
|
|
724
798
|
__metadata("design:type", Object)
|
|
725
799
|
], VaultSettingsOperationDto.prototype, "files", void 0);
|
|
726
800
|
__decorate([
|
|
727
|
-
(0, swagger_1.ApiProperty)({ required: false, type: Boolean, description: 'Feature switch for the set_<feature>_enabled operations: daily_notes, versioning, matrices, dashboards, spaces, boards, calendars, notes, files, topology, graph, chat, rss, ide, attachments, recordings.' }),
|
|
801
|
+
(0, swagger_1.ApiProperty)({ required: false, type: Boolean, description: 'Feature switch for the set_<feature>_enabled operations: daily_notes, versioning, matrices, dashboards, spaces, boards, calendars, notes, files, topology, graph, chat, rss, ide, mcp, attachments, recordings.' }),
|
|
728
802
|
(0, class_validator_1.ValidateIf)((input) => /^set_[a-z_]+_enabled$/.test(input.op) || input.enabled !== undefined),
|
|
729
803
|
(0, class_validator_1.IsBoolean)(),
|
|
730
804
|
__metadata("design:type", Boolean)
|
|
@@ -8,6 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.VaultsModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
|
+
const graph_agent_1 = require("@braian/graph-agent");
|
|
11
12
|
const vault_controller_1 = require("./vault.controller");
|
|
12
13
|
const vault_access_policy_1 = require("./vault-access-policy");
|
|
13
14
|
const vaults_service_1 = require("./vaults.service");
|
|
@@ -16,5 +17,5 @@ let VaultsModule = class VaultsModule {
|
|
|
16
17
|
};
|
|
17
18
|
exports.VaultsModule = VaultsModule;
|
|
18
19
|
exports.VaultsModule = VaultsModule = __decorate([
|
|
19
|
-
(0, common_1.Module)({ imports: [agent_module_1.AgentModule], controllers: [vault_controller_1.VaultController], providers: [vaults_service_1.VaultsService, vault_access_policy_1.VaultAccessPolicy], exports: [vault_access_policy_1.VaultAccessPolicy] })
|
|
20
|
+
(0, common_1.Module)({ imports: [agent_module_1.AgentModule], controllers: [vault_controller_1.VaultController], providers: [vaults_service_1.VaultsService, vault_access_policy_1.VaultAccessPolicy, { provide: graph_agent_1.DemoVaultCatalog, useFactory: () => new graph_agent_1.DemoVaultCatalog() }], exports: [vault_access_policy_1.VaultAccessPolicy] })
|
|
20
21
|
], VaultsModule);
|
|
@@ -8,9 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.VaultsService = void 0;
|
|
13
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
+
const node_path_1 = require("node:path");
|
|
14
18
|
const graph_agent_1 = require("@braian/graph-agent");
|
|
15
19
|
const vault_access_policy_1 = require("./vault-access-policy");
|
|
16
20
|
const vault_placement_1 = require("./vault-placement");
|
|
@@ -21,10 +25,12 @@ let VaultsService = class VaultsService {
|
|
|
21
25
|
workspace;
|
|
22
26
|
agents;
|
|
23
27
|
policy;
|
|
24
|
-
|
|
28
|
+
demos;
|
|
29
|
+
constructor(workspace, agents, policy, demos = new graph_agent_1.DemoVaultCatalog()) {
|
|
25
30
|
this.workspace = workspace;
|
|
26
31
|
this.agents = agents;
|
|
27
32
|
this.policy = policy;
|
|
33
|
+
this.demos = demos;
|
|
28
34
|
}
|
|
29
35
|
async listVaults() { return this.workspace.get().listVaults(); }
|
|
30
36
|
async getVault(vaultId) {
|
|
@@ -39,6 +45,27 @@ let VaultsService = class VaultsService {
|
|
|
39
45
|
throw new graph_agent_1.GraphAgentError('vault_folder_not_allowed', placement.message);
|
|
40
46
|
return this.workspace.get().addVault(placement.input);
|
|
41
47
|
}
|
|
48
|
+
/** The demo vaults published in braian-demo, from its manifest at a URL fixed in code. */
|
|
49
|
+
async listDemos() { return (await this.demos.list()).map(graph_agent_1.demoSummary); }
|
|
50
|
+
/**
|
|
51
|
+
* Downloads a demo, checks it against the manifest read now, unpacks it into a new folder and
|
|
52
|
+
* registers it. The folder is `<parentPath>/<id>` when a parent is named (the desktop app always
|
|
53
|
+
* names one), else the vaults folder's `<id>`; the same placement rules as Add vault apply.
|
|
54
|
+
*/
|
|
55
|
+
async installDemo(demoId, input, fromNetwork = false) {
|
|
56
|
+
const registration = this.registrationCapability();
|
|
57
|
+
if (!registration.canRegisterVaults)
|
|
58
|
+
throw new graph_agent_1.GraphAgentError('vault_registry_readonly', registration.registrationReason ?? 'Vaults cannot be added here.');
|
|
59
|
+
if (input.parentPath !== undefined && !(0, node_path_1.isAbsolute)(input.parentPath))
|
|
60
|
+
throw new graph_agent_1.GraphAgentError('invalid_vault_path', 'parentPath must be an absolute path.');
|
|
61
|
+
const dataPath = input.parentPath === undefined ? undefined : (0, node_path_1.join)(input.parentPath, input.id);
|
|
62
|
+
const placement = (0, vault_placement_1.placeVault)({ id: input.id, ...(input.label ? { label: input.label } : {}), ...(dataPath ? { dataPath } : {}) }, this.policy.rules(), fromNetwork);
|
|
63
|
+
if (placement.kind === 'refused')
|
|
64
|
+
throw new graph_agent_1.GraphAgentError('vault_folder_not_allowed', placement.message);
|
|
65
|
+
const demo = await this.demos.find(demoId);
|
|
66
|
+
const zip = await this.demos.download(demo);
|
|
67
|
+
return this.workspace.get().addVaultFromZip(placement.input, zip, this.demos.limits);
|
|
68
|
+
}
|
|
42
69
|
fromNetwork(request) { return this.policy.fromNetwork(request); }
|
|
43
70
|
/** IDs a new vault may not take, for the vault manager to suggest a free one as the name is typed. */
|
|
44
71
|
async takenVaultIds() { return (await this.workspace.get().vaultClaims()).ids; }
|
|
@@ -108,5 +135,6 @@ let VaultsService = class VaultsService {
|
|
|
108
135
|
exports.VaultsService = VaultsService;
|
|
109
136
|
exports.VaultsService = VaultsService = __decorate([
|
|
110
137
|
(0, common_1.Injectable)(),
|
|
111
|
-
|
|
138
|
+
__param(3, (0, common_1.Optional)()),
|
|
139
|
+
__metadata("design:paramtypes", [data_workspace_provider_1.DataWorkspaceProvider, graph_agent_cache_provider_1.GraphAgentCacheProvider, vault_access_policy_1.VaultAccessPolicy, graph_agent_1.DemoVaultCatalog])
|
|
112
140
|
], VaultsService);
|
|
@@ -5,8 +5,8 @@ exports.resolveWorkspaceConfig = resolveWorkspaceConfig;
|
|
|
5
5
|
exports.describeVaultSource = describeVaultSource;
|
|
6
6
|
exports.formatElapsed = formatElapsed;
|
|
7
7
|
const node_path_1 = require("node:path");
|
|
8
|
-
/** The repository `.data` folder, the development default for application data. */
|
|
9
|
-
exports.defaultDataPath = (0, node_path_1.resolve)(__dirname, '../../../..', '.data');
|
|
8
|
+
/** The repository `.data/.braianrc` folder, the development default for application data. */
|
|
9
|
+
exports.defaultDataPath = (0, node_path_1.resolve)(__dirname, '../../../..', '.data', '.braianrc');
|
|
10
10
|
/**
|
|
11
11
|
* Resolves the workspace layout from the environment.
|
|
12
12
|
*
|
|
@@ -30,7 +30,7 @@ function resolveWorkspaceConfig(env, fallbackRootPath = exports.defaultDataPath)
|
|
|
30
30
|
const singleVaultPath = vault && isVaultFolder(vault) ? (0, node_path_1.resolve)(vault) : undefined;
|
|
31
31
|
return {
|
|
32
32
|
rootPath: (0, node_path_1.resolve)(env.BRAIAN_DATA_PATH ?? fallbackRootPath),
|
|
33
|
-
vaultsPath: readPath(env.BRAIAN_VAULTS_ROOT),
|
|
33
|
+
vaultsPath: readPath(env.BRAIAN_VAULTS_ROOT) ?? (!env.BRAIAN_DATA_PATH && fallbackRootPath === exports.defaultDataPath ? (0, node_path_1.resolve)(exports.defaultDataPath, '..', 'vaults') : undefined),
|
|
34
34
|
singleVaultPath,
|
|
35
35
|
singleVaultId: singleVaultPath ? env.BRAIAN_VAULT_ID?.trim() || undefined : undefined,
|
|
36
36
|
discoveryPath: readPath(env.BRAIAN_VAULTS),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.planLegacyEmbeddingConnection = exports.testConnectionEndpoint = exports.runJevDecision = exports.selectRoutingModel = exports.routingModelTier = exports.supportsUse = exports.connectionCapabilities = exports.validateConnection = exports.defaultConnection = exports.supportedCapabilities = exports.emptyProviderCatalog = exports.capabilityLabels = exports.providerCapabilities = exports.ProviderCatalog = exports.isChatModelId = exports.resolveProviderIntegrations = exports.providerRiskNotice = exports.providerCallbackURL = exports.defaultProviderIntegrations = exports.selectionFromModel = exports.sameModel = exports.providersModels = exports.providerUsesModelDiscovery = exports.fallbackModels = exports.defaultModelSelection = exports.configuredModels = void 0;
|
|
3
|
+
exports.planLegacyEmbeddingConnection = exports.testConnectionEndpoint = exports.runJevYesNo = exports.runJevDecision = exports.runJevChoice = exports.runJev = exports.selectRoutingModel = exports.routingModelTier = exports.supportsUse = exports.connectionCapabilities = exports.validateConnection = exports.defaultConnection = exports.supportedCapabilities = exports.emptyProviderCatalog = exports.capabilityLabels = exports.providerCapabilities = exports.ProviderCatalog = exports.isChatModelId = exports.resolveProviderIntegrations = exports.providerRiskNotice = exports.providerCallbackURL = exports.defaultProviderIntegrations = exports.selectionFromModel = exports.sameModel = exports.providersModels = exports.providerUsesModelDiscovery = exports.fallbackModels = exports.defaultModelSelection = exports.configuredModels = void 0;
|
|
4
4
|
var providers_models_1 = require("./providers-models");
|
|
5
5
|
Object.defineProperty(exports, "configuredModels", { enumerable: true, get: function () { return providers_models_1.configuredModels; } });
|
|
6
6
|
Object.defineProperty(exports, "defaultModelSelection", { enumerable: true, get: function () { return providers_models_1.defaultModelSelection; } });
|
|
@@ -29,7 +29,10 @@ var routing_model_1 = require("./routing-model");
|
|
|
29
29
|
Object.defineProperty(exports, "routingModelTier", { enumerable: true, get: function () { return routing_model_1.routingModelTier; } });
|
|
30
30
|
Object.defineProperty(exports, "selectRoutingModel", { enumerable: true, get: function () { return routing_model_1.selectRoutingModel; } });
|
|
31
31
|
var jev_routing_1 = require("./jev-routing");
|
|
32
|
+
Object.defineProperty(exports, "runJev", { enumerable: true, get: function () { return jev_routing_1.runJev; } });
|
|
33
|
+
Object.defineProperty(exports, "runJevChoice", { enumerable: true, get: function () { return jev_routing_1.runJevChoice; } });
|
|
32
34
|
Object.defineProperty(exports, "runJevDecision", { enumerable: true, get: function () { return jev_routing_1.runJevDecision; } });
|
|
35
|
+
Object.defineProperty(exports, "runJevYesNo", { enumerable: true, get: function () { return jev_routing_1.runJevYesNo; } });
|
|
33
36
|
var connection_test_1 = require("./connection-test");
|
|
34
37
|
Object.defineProperty(exports, "testConnectionEndpoint", { enumerable: true, get: function () { return connection_test_1.testConnectionEndpoint; } });
|
|
35
38
|
var legacy_embedding_migration_1 = require("./legacy-embedding-migration");
|
|
@@ -1,22 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runJev = runJev;
|
|
4
|
+
exports.runJevYesNo = runJevYesNo;
|
|
5
|
+
exports.runJevChoice = runJevChoice;
|
|
3
6
|
exports.runJevDecision = runJevDecision;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
const probability = (value) => typeof value === 'number' && Number.isFinite(value) && value >= 0 && value <= 1;
|
|
8
|
+
/** Asks every question about one state in one request; an answer of the wrong type, or outside 0 to 1, is refused. */
|
|
9
|
+
async function runJev(input, fetcher = fetch) {
|
|
10
|
+
const response = await fetcher(`${input.baseUrl.replace(/\/$/, '')}/systemone`, { method: 'POST', headers: { Authorization: `Bearer ${input.apiKey}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ model: input.model, state: input.state, questions: input.questions }), signal: input.signal, redirect: 'error' });
|
|
7
11
|
if (!response.ok) {
|
|
8
12
|
await response.body?.cancel();
|
|
9
|
-
throw Object.assign(new Error(`Jev
|
|
13
|
+
throw Object.assign(new Error(`Jev answered HTTP ${response.status}.`), { status: response.status });
|
|
10
14
|
}
|
|
11
15
|
const body = await response.json();
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
const answers = Object.fromEntries(Object.entries(input.questions).map(([key, question]) => {
|
|
17
|
+
const answer = body.answers?.[key];
|
|
18
|
+
if (question.type === 'noul') {
|
|
19
|
+
if (answer?.type !== 'noul' || !probability(answer.noul))
|
|
20
|
+
throw new Error(`Jev returned an invalid yes/no answer for ${key}.`);
|
|
21
|
+
return [key, { type: 'noul', probability: answer.noul }];
|
|
22
|
+
}
|
|
23
|
+
if (answer?.type !== 'choice' || typeof answer.choice !== 'string' || !Object.hasOwn(question.criteria, answer.choice))
|
|
24
|
+
throw new Error('Jev returned an invalid choice.');
|
|
25
|
+
const probabilities = answer.probabilities;
|
|
26
|
+
if (!probabilities || Object.keys(question.criteria).some(id => !probability(probabilities[id])))
|
|
27
|
+
throw new Error('Jev returned invalid choice probabilities.');
|
|
28
|
+
return [key, { type: 'choice', choice: answer.choice, probabilities: Object.fromEntries(Object.keys(question.criteria).map(id => [id, probabilities[id]])) }];
|
|
29
|
+
}));
|
|
20
30
|
const tokens = (value) => typeof value === 'number' && Number.isFinite(value) && value >= 0 ? value : 0;
|
|
21
|
-
return {
|
|
31
|
+
return { answers, usage: { inputTokens: tokens(body.usage?.input_tokens), outputTokens: tokens(body.usage?.output_tokens) } };
|
|
32
|
+
}
|
|
33
|
+
/** Yes/no questions only: each question's probability of yes, as an RSS profile's judge reads them (`like`, `tag:<name>`). */
|
|
34
|
+
async function runJevYesNo(input, fetcher = fetch) {
|
|
35
|
+
const { answers, usage } = await runJev(input, fetcher);
|
|
36
|
+
return { probabilities: Object.fromEntries(Object.entries(answers).map(([key, answer]) => [key, answer.type === 'noul' ? answer.probability : 0])), usage };
|
|
37
|
+
}
|
|
38
|
+
/** One choice among `criteria`, with every criterion's probability. */
|
|
39
|
+
async function runJevChoice(input, fetcher = fetch) {
|
|
40
|
+
const { answers, usage } = await runJev({ ...input, questions: { profile: { type: 'choice', instructions: input.instructions, criteria: input.criteria } } }, fetcher);
|
|
41
|
+
const answer = answers.profile;
|
|
42
|
+
return { choice: answer.choice, probabilities: answer.probabilities, usage };
|
|
43
|
+
}
|
|
44
|
+
/** Routing's reading of a choice: the chosen profile when it is clearly ahead, otherwise `default`. */
|
|
45
|
+
async function runJevDecision(input, fetcher = fetch) {
|
|
46
|
+
const { choice, probabilities, usage } = await runJevChoice(input, fetcher);
|
|
47
|
+
const ordered = Object.values(probabilities).sort((a, b) => b - a);
|
|
48
|
+
const clear = probabilities[choice] === ordered[0] && probabilities[choice] >= 0.6 && ordered[0] - (ordered[1] ?? 0) >= 0.1;
|
|
49
|
+
return { profileId: clear ? choice : 'default', usage };
|
|
22
50
|
}
|
|
@@ -18,19 +18,19 @@ exports.agentToolCatalog = [
|
|
|
18
18
|
{ name: 'graph_read', label: 'Read notes', description: 'Read notes and feature objects, including full note content.', access: 'read', group: 'notes' },
|
|
19
19
|
{ name: 'graph_panel_read', label: 'Read note panels', description: 'Read the results of a note panel.', access: 'read', group: 'notes' },
|
|
20
20
|
{ name: 'graph_traverse', label: 'Follow relationships', description: 'Follow relationships between graph objects.', access: 'read', group: 'notes' },
|
|
21
|
-
{ name: 'graph_mutate', label: 'Change notes', description: 'Create, edit, move and delete notes and their properties.', access: 'write', group: 'notes' },
|
|
21
|
+
{ name: 'graph_mutate', label: 'Change notes', description: 'Create, edit, move and delete notes and their properties.', access: 'write', group: 'notes', destructive: true },
|
|
22
22
|
{ name: 'graph_topology_read', label: 'Read types', description: 'Read the vault’s types, properties and note templates.', access: 'read', group: 'schema' },
|
|
23
23
|
{ name: 'graph_validation_errors', label: 'Read validation errors', description: 'Read schema violations and broken references.', access: 'read', group: 'schema' },
|
|
24
24
|
{ name: 'graph_topology_mutate', label: 'Change types', description: 'Create and change types, properties and panels.', access: 'write', group: 'schema' },
|
|
25
|
-
{ name: 'graph_topology_folder_migrate', label: 'Move notes to their type’s folder', description: 'Move notes into a type’s folder after confirmation.', access: 'write', group: 'schema' },
|
|
25
|
+
{ name: 'graph_topology_folder_migrate', label: 'Move notes to their type’s folder', description: 'Move notes into a type’s folder after confirmation.', access: 'write', group: 'schema', destructive: true },
|
|
26
26
|
{ name: 'vault_files_list', label: 'List folders', description: 'List a folder’s subfolders and files.', access: 'read', group: 'files', feature: 'files' },
|
|
27
27
|
{ name: 'vault_file_read', label: 'Read files', description: 'Read a text file that is not a note.', access: 'read', group: 'files', feature: 'files' },
|
|
28
28
|
{ name: 'vault_entries_delete_preview', label: 'Preview a delete', description: 'Show what deleting files or folders would leave behind.', access: 'read', group: 'files', feature: 'files' },
|
|
29
29
|
{ name: 'vault_file_write', label: 'Edit files', description: 'Replace the text of a file that is not a note.', access: 'write', group: 'files', feature: 'files' },
|
|
30
30
|
{ name: 'vault_file_create', label: 'Create files', description: 'Create a new text file that is not a note.', access: 'write', group: 'files', feature: 'files' },
|
|
31
31
|
{ name: 'vault_folder_create', label: 'Create folders', description: 'Create a folder.', access: 'write', group: 'files', feature: 'files' },
|
|
32
|
-
{ name: 'vault_entry_move', label: 'Rename and move files', description: 'Rename or move a file or folder; links follow it.', access: 'write', group: 'files', feature: 'files' },
|
|
33
|
-
{ name: 'vault_entries_delete', label: 'Delete files', description: 'Delete files or folders after the user confirms.', access: 'write', group: 'files', feature: 'files' },
|
|
32
|
+
{ name: 'vault_entry_move', label: 'Rename and move files', description: 'Rename or move a file or folder; links follow it.', access: 'write', group: 'files', feature: 'files', destructive: true },
|
|
33
|
+
{ name: 'vault_entries_delete', label: 'Delete files', description: 'Delete files or folders after the user confirms.', access: 'write', group: 'files', feature: 'files', destructive: true },
|
|
34
34
|
{ name: 'boards_read', label: 'Read Kanban boards', description: 'Read boards, columns and cards.', access: 'read', group: 'boards', feature: 'boards' },
|
|
35
35
|
{ name: 'boards_mutate', label: 'Change Kanban boards', description: 'Change boards, columns and card placements.', access: 'write', group: 'boards', feature: 'boards' },
|
|
36
36
|
{ name: 'calendars_read', label: 'Read calendars', description: 'Read calendars, entries and external events.', access: 'read', group: 'calendars', feature: 'calendars' },
|
|
@@ -13,6 +13,7 @@ const calendar_use_cases_1 = require("./calendar-use-cases");
|
|
|
13
13
|
const feed_sync_1 = require("./calendar-feed/feed-sync");
|
|
14
14
|
const feed_secrets_1 = require("./calendar-feed/feed-secrets");
|
|
15
15
|
const share_secrets_1 = require("./share-secrets");
|
|
16
|
+
const mcp_tokens_1 = require("./mcp-tokens");
|
|
16
17
|
const feed_cache_1 = require("./calendar-feed/feed-cache");
|
|
17
18
|
const activity_registry_1 = require("./activity-registry");
|
|
18
19
|
const creation_time_keeper_1 = require("./creation-time-keeper");
|
|
@@ -50,6 +51,7 @@ const vault_sdk_1 = require("@braian/vault-sdk");
|
|
|
50
51
|
const node_crypto_1 = require("node:crypto");
|
|
51
52
|
const promises_1 = require("node:fs/promises");
|
|
52
53
|
const node_path_1 = require("node:path");
|
|
54
|
+
const demo_vaults_1 = require("./demo-vaults");
|
|
53
55
|
const yaml_1 = require("yaml");
|
|
54
56
|
const navigation_catalog_1 = require("./navigation-catalog");
|
|
55
57
|
const journal_stats_1 = require("./journal-stats");
|
|
@@ -92,6 +94,7 @@ class DataWorkspace {
|
|
|
92
94
|
shares = new Map();
|
|
93
95
|
noteFolds = new Map();
|
|
94
96
|
rssFeeds = new Map();
|
|
97
|
+
rssProfileCases = new Map();
|
|
95
98
|
safeNotesRegistries = new Map();
|
|
96
99
|
/** Decrypted share copies and a posted vault key, per vault, for this process only. */
|
|
97
100
|
safeNoteMemories = new Map();
|
|
@@ -179,6 +182,24 @@ class DataWorkspace {
|
|
|
179
182
|
throw error;
|
|
180
183
|
}
|
|
181
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Unpacks a vault zip into a new folder, `dataPath` or the vaults folder's `<id>`, then registers
|
|
187
|
+
* it, keeping the settings its `.brian/vault.yaml` carries. A folder already there is
|
|
188
|
+
* `vault_path_conflict`; a registration that fails removes the folder it unpacked.
|
|
189
|
+
*/
|
|
190
|
+
async addVaultFromZip(input, zip, limits) {
|
|
191
|
+
this.registry.assertMutable();
|
|
192
|
+
(0, vault_registry_1.validateVaultId)(input.id);
|
|
193
|
+
const folder = input.dataPath ?? (0, node_path_1.resolve)(this.registry.vaultsPath, input.id);
|
|
194
|
+
await (0, demo_vaults_1.unpackVaultZip)(zip, folder, limits);
|
|
195
|
+
try {
|
|
196
|
+
return await this.addVault(input);
|
|
197
|
+
}
|
|
198
|
+
catch (error) {
|
|
199
|
+
await (0, promises_1.rm)(folder, { recursive: true, force: true }).catch(() => undefined);
|
|
200
|
+
throw error;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
182
203
|
/** Renames a vault; nothing cached holds the label, so no per-vault registry is rebuilt. */
|
|
183
204
|
relabelVault(vaultId, label) { return this.registry.relabel(vaultId, label); }
|
|
184
205
|
readSettings() { return this.settings.read(); }
|
|
@@ -189,6 +210,8 @@ class DataWorkspace {
|
|
|
189
210
|
authRegistry() { return this.settings.authRegistry; }
|
|
190
211
|
/** Shared secret store for IMAP accounts configured in auth.yaml. */
|
|
191
212
|
imapSecrets() { return new imap_account_secrets_1.ImapAccountSecrets(this.authRegistry()); }
|
|
213
|
+
/** Each vault's MCP access token, kept in auth.yaml. */
|
|
214
|
+
mcpTokens() { return new mcp_tokens_1.McpTokens(this.authRegistry()); }
|
|
192
215
|
updateSecuritySettings(operation) { return this.settings.updateSecurity(operation); }
|
|
193
216
|
async readVaultSettings(vaultId) { return (await this.vaultSettingsRegistry(vaultId)).read(); }
|
|
194
217
|
async writeVaultSettings(vaultId, input) {
|
|
@@ -502,6 +525,7 @@ class DataWorkspace {
|
|
|
502
525
|
await this.registry.remove(vaultId);
|
|
503
526
|
await new feed_secrets_1.CalendarFeedSecrets(this.authRegistry()).removeVault(vaultId);
|
|
504
527
|
await new share_secrets_1.ShareSecrets(this.authRegistry()).removeVault(vaultId);
|
|
528
|
+
await this.mcpTokens().removeVault(vaultId);
|
|
505
529
|
this.collabRegistries.get(vaultId)?.close();
|
|
506
530
|
this.collabRegistries.delete(vaultId);
|
|
507
531
|
this.vanishedWatches.get(vaultId)?.close();
|
|
@@ -1080,6 +1104,26 @@ class DataWorkspace {
|
|
|
1080
1104
|
throw error;
|
|
1081
1105
|
}
|
|
1082
1106
|
}
|
|
1107
|
+
/** The vault's RSS preference profiles in `.brian/rss/profiles/`, distilled from the rated entries. */
|
|
1108
|
+
async rssProfiles(vaultId) {
|
|
1109
|
+
let profiles = this.rssProfileCases.get(vaultId);
|
|
1110
|
+
if (!profiles) {
|
|
1111
|
+
profiles = this.resolveVault(vaultId).then((vault) => new rss_1.RssProfileUseCases({
|
|
1112
|
+
store: new rss_1.RssProfileStore(vault, this.changeFeedFor(vaultId, vault)),
|
|
1113
|
+
entries: async () => (await this.rss(vaultId)).entries({ includeHidden: true, limit: Number.MAX_SAFE_INTEGER }),
|
|
1114
|
+
enabled: async () => (await this.readVaultSettings(vaultId)).rss?.enabled === true,
|
|
1115
|
+
}));
|
|
1116
|
+
this.rssProfileCases.set(vaultId, profiles);
|
|
1117
|
+
}
|
|
1118
|
+
try {
|
|
1119
|
+
return await profiles;
|
|
1120
|
+
}
|
|
1121
|
+
catch (error) {
|
|
1122
|
+
if (this.rssProfileCases.get(vaultId) === profiles)
|
|
1123
|
+
this.rssProfileCases.delete(vaultId);
|
|
1124
|
+
throw error;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1083
1127
|
/** What is collapsed in the note, for every surface that shows it; none for a note that never folded. */
|
|
1084
1128
|
async readNoteFolds(vaultId, noteId) { return (await this.noteFoldRegistry(vaultId)).get(noteId); }
|
|
1085
1129
|
/** Replaces what is collapsed in an existing note; a note that is not there keeps no folds. */
|