@vellumai/web 0.12.2 → 0.12.3-staging.2
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/dist/assets/{a2a-invite-BOdHy8O9.js → a2a-invite-YEhyUfHN.js} +1 -1
- package/dist/assets/about-page-DQ4Ec_gj.js +1 -0
- package/dist/assets/{account-page-CYNbvuWs.js → account-page-BghnPvuL.js} +1 -1
- package/dist/assets/{account-shell-CbiWTAQP.js → account-shell-CT_g1Cvn.js} +1 -1
- package/dist/assets/acp-run-detail-panel-ZMurb2U4.js +3 -0
- package/dist/assets/activation-list-route-B6gs5a1E.js +1 -0
- package/dist/assets/{activity-redirect-page-BWj7yOid.js → activity-redirect-page-XGaUoIu2.js} +1 -1
- package/dist/assets/activity-steps-panel-oPxwforM.js +1 -0
- package/dist/assets/add-credits-modal-DPxdUzMN.js +1 -0
- package/dist/assets/add-credits-modal-DQewP5v-.js +1 -0
- package/dist/assets/ai-page-CkRPZ6AS.js +1 -0
- package/dist/assets/{android-billing-handoff-CpzR7JDr.js → android-billing-handoff-BsKu5TdI.js} +1 -1
- package/dist/assets/api-key-screen-BQqbHhQW.js +1 -0
- package/dist/assets/app-Bt7_4qDf.css +2 -0
- package/dist/assets/app-CuJb51Ub.js +392 -0
- package/dist/assets/{app-info-B8Mqmeak.js → app-info-_UBZr9dH.js} +1 -1
- package/dist/assets/archive-redirect-page-RvHNp7Bj.js +1 -0
- package/dist/assets/assistant-handle-modal-BRiG9i6h.js +1 -0
- package/dist/assets/assistant-inbox-BTthGy8r.js +1 -0
- package/dist/assets/assistant-inbox-D9TUdSDf.js +1 -0
- package/dist/assets/assistant-inbox-DsdFMHPG.js +1 -0
- package/dist/assets/assistant-inbox-afWVgVXS.js +1 -0
- package/dist/assets/assistant-inbox-page-route-bl3sym1B.js +8 -0
- package/dist/assets/assistant-inbox-upgrade-body-vP7feu0-.js +1 -0
- package/dist/assets/assistant-status-panel-DyZG5B7d.js +1 -0
- package/dist/assets/auth-store-DaELMwxW.js +1 -0
- package/dist/assets/{auth-welcome-screen-D2mxoZEG.js → auth-welcome-screen-OOkWXm3h.js} +1 -1
- package/dist/assets/avatar-bundled-components-B17wqAfu.js +1 -0
- package/dist/assets/avatar-random-pfwnM7gG.js +2 -0
- package/dist/assets/{await-org-header-settled-CYxBtSPa.js → await-org-header-settled-BXDHXjvn.js} +1 -1
- package/dist/assets/background-task-detail-panel-ByKAldw1.js +1 -0
- package/dist/assets/billing-page-C8Kct5_W.js +3 -0
- package/dist/assets/{billing-redirect-page-nGTPWHMN.js → billing-redirect-page-C8yes4JF.js} +1 -1
- package/dist/assets/{bookmarks-page-CGd4Okx8.js → bookmarks-page-DMD8fJ_4.js} +1 -1
- package/dist/assets/{bundle-confirm-page-BuQ9wfYw.js → bundle-confirm-page-NBQ9F6Qf.js} +1 -1
- package/dist/assets/channel-transcript-panel-CTebK_R-.js +1 -0
- package/dist/assets/channels-page-route-DdD8wtc6.js +1 -0
- package/dist/assets/chat-BMvgjoaE.js +3 -0
- package/dist/assets/chat-CuuC3zzW.js +3 -0
- package/dist/assets/chat-Tf6vwiZF.js +3 -0
- package/dist/assets/chat-XTdwAIMs.js +3 -0
- package/dist/assets/chat-info-panel-ZWQoXKte.js +1 -0
- package/dist/assets/checkout-continuation-B4jzmA7d.js +1 -0
- package/dist/assets/checkout-page-DXa67FMK.js +1 -0
- package/dist/assets/checkout-return-target-BPGhcrkl.js +1 -0
- package/dist/assets/command-palette-BA8nwW7R.js +1 -0
- package/dist/assets/command-palette-fmZyoBR-.js +1 -0
- package/dist/assets/{command-palette-window-page-UeoQHE-2.js → command-palette-window-page-B7uBXbJY.js} +1 -1
- package/dist/assets/common-9xzLIcrw.js +1 -0
- package/dist/assets/common-Bs6eHe6c.js +1 -0
- package/dist/assets/common-DqBxs0W6.js +1 -0
- package/dist/assets/common-qa5Iw8ye.js +1 -0
- package/dist/assets/community-page-B8TI9Wcd.js +1 -0
- package/dist/assets/{companion-accent-C3xBrXHO.js → companion-accent-ggBv1xjm.js} +1 -1
- package/dist/assets/{companion-dock-zones-page-plFxxNVK.js → companion-dock-zones-page-DK4KtiQ3.js} +1 -1
- package/dist/assets/{companion-layout-Cu_j-nKV.js → companion-layout-BTsiJq0U.js} +1 -1
- package/dist/assets/{companion-popover-STvrRaku.js → companion-popover-CgAs-3Gu.js} +1 -1
- package/dist/assets/{companion-popover-page-Dvft1iSc.js → companion-popover-page-BeUJyhWH.js} +1 -1
- package/dist/assets/companion-surface-page-3XNMFxTQ.js +1 -0
- package/dist/assets/companion-watch-frame-page-dPkoED3s.js +1 -0
- package/dist/assets/connect-page-DbLeEQxF.js +1 -0
- package/dist/assets/consent-controls-DfR6IsHI.js +1 -0
- package/dist/assets/contacts-gateway-d-y646Z7.js +1 -0
- package/dist/assets/contacts-page-route-fdw7hTRm.js +1 -0
- package/dist/assets/copy-button-D4V65x9R.js +1 -0
- package/dist/assets/{credential-entry-page-CvXfQZPl.js → credential-entry-page-CC_NFEbF.js} +1 -1
- package/dist/assets/credentials-page-DB9ZdkHa.js +1 -0
- package/dist/assets/{csv-preview-TFV8b1Dq.js → csv-preview-DWddWd8B.js} +2 -2
- package/dist/assets/danger-zone-redirect-page-CSRwK5IS.js +1 -0
- package/dist/assets/debug-page-DhHfz_7g.js +4 -0
- package/dist/assets/deploy-dialogs-DR-3t8lu.js +1 -0
- package/dist/assets/deploy-dialogs-DjptDCDt.js +1 -0
- package/dist/assets/desktop-preview-content-DVu8RwqH.js +2 -0
- package/dist/assets/{desktop-status-CPR10G_B.js → desktop-status-D6XhFAXD.js} +1 -1
- package/dist/assets/{desktop-viewer-Cm09cFMg.js → desktop-viewer-CwGjxDiz.js} +2 -2
- package/dist/assets/{detail-card-pT0agbKq.js → detail-card-RBkdhZeE.js} +1 -1
- package/dist/assets/{detail-panel-stop-button-DWoO-nJN.js → detail-panel-stop-button-OKauZTzu.js} +1 -1
- package/dist/assets/detail-primitives-DUplMiby.js +1 -0
- package/dist/assets/developer-page-C2A5rbGd.js +1 -0
- package/dist/assets/devices-redirect-page-CEhKfx9w.js +1 -0
- package/dist/assets/{dictation-overlay-page-CG8S4p0x.js → dictation-overlay-page-DWi_654w.js} +1 -1
- package/dist/assets/document-load-BImJKE6b.js +1 -0
- package/dist/assets/document-load-DigzYkKe.js +1 -0
- package/dist/assets/document-viewer-page-Ba33RQu-.js +1 -0
- package/dist/assets/{ellipsis-vertical-Dbz00Lo-.js → ellipsis-vertical-Bg7ccW1x.js} +1 -1
- package/dist/assets/emails-page-DRgG2iU-.js +1 -0
- package/dist/assets/esm-BH0KFYVK.js +2 -0
- package/dist/assets/esm-BXFfs0Tk.js +2 -0
- package/dist/assets/{esm-BRap8C09.js → esm-CAEWVAik.js} +1 -1
- package/dist/assets/{esm-BfMa-HX2.js → esm-CG0ueXyz.js} +2 -2
- package/dist/assets/esm-CT0ZrwJA.js +2 -0
- package/dist/assets/{esm-C8i-Nf3-.js → esm-DOxardAg.js} +1 -1
- package/dist/assets/esm-KPTngYDV.js +1 -0
- package/dist/assets/esm-bM6TjnbQ.js +2 -0
- package/dist/assets/esm-baSLKmq7.js +1 -0
- package/dist/assets/esm-v_AdtkOG.js +2 -0
- package/dist/assets/{file-diff-view-CO2QJdSQ.js → file-diff-view-MJLG55XC.js} +1 -1
- package/dist/assets/file-editor-zljxVqM1.js +1 -0
- package/dist/assets/general-page-Cpso8KX8.js +2 -0
- package/dist/assets/hatching-screen-DxPhFMQU.js +1 -0
- package/dist/assets/home-B4mFw6dT.js +1 -0
- package/dist/assets/home-BzR8_HQU.js +1 -0
- package/dist/assets/home-CYyxII3D.js +1 -0
- package/dist/assets/home-CmNwqbst.js +1 -0
- package/dist/assets/hosting-screen-DCDIt-t-.js +1 -0
- package/dist/assets/icons-C0wyat6T.js +1 -0
- package/dist/assets/identity-page-route-BrQVfOp-.js +7 -0
- package/dist/assets/inspect-page-xaoUoICP.js +9 -0
- package/dist/assets/integrations-page-CLoQBZkk.js +1 -0
- package/dist/assets/{intelligence-C2fySq4l.js → intelligence-CpXzEjYF.js} +1 -1
- package/dist/assets/{intelligence-DFMbHITq.js → intelligence-DBi0b7qu.js} +1 -1
- package/dist/assets/{intelligence-dNqws_vC.js → intelligence-DGdtAPWo.js} +1 -1
- package/dist/assets/{intelligence-8J0ZD9Ph.js → intelligence-DNltjvNx.js} +1 -1
- package/dist/assets/intelligence-layout-CaIcPBw8.js +1 -0
- package/dist/assets/intelligence-layout-slots-store-DvsrWW-i.js +1 -0
- package/dist/assets/is-record-dXfGpgI1.js +1 -0
- package/dist/assets/keyboard-shortcuts-redirect-page-BPqjRP4K.js +1 -0
- package/dist/assets/{latest-assistant-text-CaZrfk6l.js → latest-assistant-text-BTp150tH.js} +3 -3
- package/dist/assets/library-Bf8joD86.js +1 -0
- package/dist/assets/library-Cx2cjKPf.js +1 -0
- package/dist/assets/library-DOKbGvUV.js +1 -0
- package/dist/assets/library-detail-page-BzSb6IEQ.js +1 -0
- package/dist/assets/library-page-CtJ9kssD.js +1 -0
- package/dist/assets/library-zJtAtUFf.js +1 -0
- package/dist/assets/local-mode-CaoN0Sn7.js +1 -0
- package/dist/assets/login-page-BjrVlKsv.js +1 -0
- package/dist/assets/logout-page-DUl9JwnN.js +1 -0
- package/dist/assets/{logs-layout-BqrW_P--.js → logs-layout-Xb4wGoWT.js} +1 -1
- package/dist/assets/markdown-preview-D0DqF7iz.js +1 -0
- package/dist/assets/{media-preview-DvdWd4rA.js → media-preview-DZN2yf7r.js} +1 -1
- package/dist/assets/memory-page-route-DbTGy5dS.js +2 -0
- package/dist/assets/memory-router-playground-page-DAFTIiv5.js +1 -0
- package/dist/assets/{message-files-panel-B4KcGaTu.js → message-files-panel-BuDKGaLT.js} +1 -1
- package/dist/assets/{metric-card-BLErTI6M.js → metric-card-BncToo74.js} +1 -1
- package/dist/assets/native-attachment-pickers-AncXy1zz.js +1 -0
- package/dist/assets/native-file-DM_uMrba.js +1 -0
- package/dist/assets/{notifications-page-wjJIxJdC.js → notifications-page-C3i9p5Vc.js} +1 -1
- package/dist/assets/{oauth-complete-page-DMvGhbPg.js → oauth-complete-page-DgqkoY_m.js} +1 -1
- package/dist/assets/{oauth-popup-complete-page-BjtYXKTi.js → oauth-popup-complete-page-BmxSR325.js} +2 -2
- package/dist/assets/onboarding-BKY3R-h7.js +1 -0
- package/dist/assets/onboarding-Bcx45nYG.js +1 -0
- package/dist/assets/onboarding-DPxPqQZZ.js +1 -0
- package/dist/assets/onboarding-xZiMELt_.js +1 -0
- package/dist/assets/paired-platform-identity-DGOgilFb.js +1 -0
- package/dist/assets/{pairing-page-BfrUX_YA.js → pairing-page-Dsbzq7L8.js} +1 -1
- package/dist/assets/password-reset-page-PdHEN7Fr.js +1 -0
- package/dist/assets/pdf-file-preview-CWJ0OMTa.js +1 -0
- package/dist/assets/{peeking-eyes-DJkKQl-G.js → peeking-eyes-CnCoikI6.js} +1 -1
- package/dist/assets/personality-page-DKo_lJxu.js +1 -0
- package/dist/assets/{personality-page-D03UdQms.js → personality-page-DlHUe2qc.js} +1 -1
- package/dist/assets/personality-sliders-BqmVzcmM.js +1 -0
- package/dist/assets/plans-page-BpFMs8mZ.js +1 -0
- package/dist/assets/{platform-loopback-page-C3a-am1y.js → platform-loopback-page-BzQhvfv_.js} +1 -1
- package/dist/assets/{plugin-detail-page-D52frrTx.js → plugin-detail-page-rt0R_AaV.js} +1 -1
- package/dist/assets/{plugins-page-RrhNT7og.js → plugins-page-Dl7GFK6d.js} +1 -1
- package/dist/assets/plugins-surface-iPrkdvkP.js +1 -0
- package/dist/assets/{preview-error-BlHGLqgj.js → preview-error-DuDAfoam.js} +1 -1
- package/dist/assets/privacy-page-Bh12czrY.js +1 -0
- package/dist/assets/privacy-screen-Cz6H68zD.js +1 -0
- package/dist/assets/profile-card-J_samGMh.js +1 -0
- package/dist/assets/provider-callback-page-C0UGaWIw.js +1 -0
- package/dist/assets/{provider-key-CHOBBf9E.js → provider-key-CbhZiNNN.js} +1 -1
- package/dist/assets/provider-signup-page-Drji-PwC.js +1 -0
- package/dist/assets/{provisioning-targets-B5flnyHy.js → provisioning-targets-DdCpl6ZX.js} +1 -1
- package/dist/assets/quick-input-page-DmpCyTr4.js +1 -0
- package/dist/assets/referral-modal-BSn13lRu.js +1 -0
- package/dist/assets/referral-modal-QJAdmDzx.js +1 -0
- package/dist/assets/{rehype-katex-Bp74Wkmo.js → rehype-katex-BYCIqkMD.js} +3 -3
- package/dist/assets/{research-mock-page-CHfDwifi.js → research-mock-page-8RHdSLhH.js} +1 -1
- package/dist/assets/research-onboarding-route-BqvFXKx_.js +50 -0
- package/dist/assets/review-terms-screen-CpSlI6us.js +1 -0
- package/dist/assets/routes-DRjjKNUc.js +1 -0
- package/dist/assets/schedules-Dusp4Vm1.js +1 -0
- package/dist/assets/schedules-page-B5_qnJEH.js +1 -0
- package/dist/assets/security-redirect-page-DDk2mqiF.js +1 -0
- package/dist/assets/select-assistant-screen-CFAo9xC-.js +1 -0
- package/dist/assets/{self-hosted-servers-CsZVedz3.js → self-hosted-servers-Cmtr5Sxi.js} +1 -1
- package/dist/assets/service-form-controls-DlTzRBdL.js +1 -0
- package/dist/assets/{setting-row-B9yebbEq.js → setting-row-DJHlwNfk.js} +1 -1
- package/dist/assets/settings-B3vTMNhh.js +3 -0
- package/dist/assets/settings-C3z9L8MJ.js +3 -0
- package/dist/assets/settings-DB7J6r5t.js +3 -0
- package/dist/assets/settings-divider-2hwVjQ2t.js +1 -0
- package/dist/assets/settings-fUw4hAbD.js +3 -0
- package/dist/assets/{settings-layout-D6972VFH.js → settings-layout-BO2YTV10.js} +1 -1
- package/dist/assets/share-feedback-modal-BCn8wVXT.js +1 -0
- package/dist/assets/share-feedback-modal-bqiJ8vPh.js +2 -0
- package/dist/assets/{sidebar-tree-C-XVAOgc.js → sidebar-tree-CTzyarHJ.js} +1 -1
- package/dist/assets/{signup-page-DdiJpBz3.js → signup-page-BKvCi12D.js} +1 -1
- package/dist/assets/{signup-shell-_mEn5UNl.js → signup-shell-gBjslY90.js} +1 -1
- package/dist/assets/skill-detail-page-zLTItuem.js +2 -0
- package/dist/assets/skill-detail-panel-_BKlfS5A.js +1 -0
- package/dist/assets/{skill-removal-dialog-CWQDV20Q.js → skill-removal-dialog-CJY2_gFa.js} +1 -1
- package/dist/assets/{skills-page-CkHlkDe4.js → skills-page-BkT3-aGG.js} +1 -1
- package/dist/assets/{sounds-page-DZ9H_Uhf.js → sounds-page-4d7iyYdU.js} +1 -1
- package/dist/assets/{start-screen-CPuK_kcL.js → start-screen-BIVBGox6.js} +1 -1
- package/dist/assets/{stt-language-picker-modal-vTox8Zp8.js → stt-language-picker-modal-D_LD1BqB.js} +1 -1
- package/dist/assets/subagent-detail-panel-DxQEOvTp.js +1 -0
- package/dist/assets/superpowers-page-BjEYHHMk.js +1 -0
- package/dist/assets/system-events-page-BZ7CDi5p.js +1 -0
- package/dist/assets/system-events-redirect-page-DqVcQQuk.js +1 -0
- package/dist/assets/{text-preview-BZ7GgUAU.js → text-preview-Nsx4hRjY.js} +1 -1
- package/dist/assets/{theme-stage-page-BBUhsE2D.js → theme-stage-page-SR2lpWko.js} +1 -1
- package/dist/assets/{tiptap-document-editor-DR6f403A.js → tiptap-document-editor-Dugai94Z.js} +3 -3
- package/dist/assets/tool-detail-panel-Bj8XNtkn.js +16 -0
- package/dist/assets/tool-detail-panel-CwG8CQh8.js +1 -0
- package/dist/assets/{trait-cycle-row-BRsd1qDW.js → trait-cycle-row-BF-99QGB.js} +1 -1
- package/dist/assets/{upgrade-cancel-page-Cb2Knf6m.js → upgrade-cancel-page-CsrYUn80.js} +1 -1
- package/dist/assets/upgrade-success-page-pgUoRwgU.js +1 -0
- package/dist/assets/{usage-redirect-page-DmacFGtX.js → usage-redirect-page-gcglHutp.js} +1 -1
- package/dist/assets/use-app-delete-6cqgxcYk.js +1 -0
- package/dist/assets/use-assistant-identity-details-CE2qbada.js +1 -0
- package/dist/assets/use-checkout-dismiss-refresh-DkBaF6E8.js +1 -0
- package/dist/assets/use-debounced-value-Dbgs3rOl.js +1 -0
- package/dist/assets/use-edge-swipe-back-DkP4tGf3.js +1 -0
- package/dist/assets/{use-hotkey-recorder-CVYKioKK.js → use-hotkey-recorder-Byjcx16O.js} +1 -1
- package/dist/assets/use-invite-link-dialog-EnK2z5A8.js +1 -0
- package/dist/assets/use-plugins-list-B6wYwnD_.js +1 -0
- package/dist/assets/use-return-to-short-circuit-H0BQmE_J.js +1 -0
- package/dist/assets/{use-side-list-room-XknEC6_F.js → use-side-list-room-T8KJvH7p.js} +1 -1
- package/dist/assets/use-skill-actions-DBpPjM48.js +1 -0
- package/dist/assets/use-skill-detail-files-DdP4ERwy.js +1 -0
- package/dist/assets/use-supports-credentials-settings-bnerf0ml.js +1 -0
- package/dist/assets/use-transcript-message-by-id-DMHKS6AX.js +1 -0
- package/dist/assets/vendor-CYmPHUS2.js +127 -0
- package/dist/assets/voice-page-BSofznRi.js +1 -0
- package/dist/assets/{wake-detail-panel-JG7TyKGn.js → wake-detail-panel-BrI4U7x3.js} +1 -1
- package/dist/assets/{weather-forecast-display-CZYQX4n1.js → weather-forecast-display-z2cn9Ylw.js} +1 -1
- package/dist/assets/{web-CQyztjRg.js → web-5CbNg5DV.js} +1 -1
- package/dist/assets/{web-Bb3bM_rE.js → web-BYVWYFiV.js} +1 -1
- package/dist/assets/{web-7w3Y8MVH.js → web-CI3vhYW4.js} +1 -1
- package/dist/assets/{web-ocPGQzbv.js → web-Ctv2Az05.js} +1 -1
- package/dist/assets/{web-CkN0uo01.js → web-CvkUifWd.js} +1 -1
- package/dist/assets/{web-B_ZkQa17.js → web-D2TFV4O3.js} +1 -1
- package/dist/assets/{web-DZd0e2iR.js → web-Dapt-meP.js} +1 -1
- package/dist/assets/{web-ZV0_2EZ9.js → web-DxZPopg-.js} +1 -1
- package/dist/assets/{web-DpFmNxr1.js → web-uMYezZUh.js} +1 -1
- package/dist/assets/welcome-screen-DwN2j4Gh.js +1 -0
- package/dist/assets/{workflow-detail-panel-rYCgZeUb.js → workflow-detail-panel-nERp7IVc.js} +1 -1
- package/dist/assets/workspace-CI_A5iz2.js +1 -0
- package/dist/assets/{workspace-DOerIby3.js → workspace-CUWfQ3RP.js} +1 -1
- package/dist/assets/workspace-DUGmDQIb.js +1 -0
- package/dist/assets/workspace-Dh6SfA9u.js +1 -0
- package/dist/assets/workspace-page-CAKrqiua.js +1 -0
- package/dist/images/integrations/ATTRIBUTION.md +19 -0
- package/dist/images/integrations/amplemarket-mcp.png +0 -0
- package/dist/images/integrations/ashby-mcp.png +0 -0
- package/dist/images/integrations/atlassian-mcp.png +0 -0
- package/dist/images/integrations/attio-mcp.png +0 -0
- package/dist/images/integrations/brex-mcp.png +0 -0
- package/dist/images/integrations/calendly-mcp.png +0 -0
- package/dist/images/integrations/circleback-mcp.png +0 -0
- package/dist/images/integrations/clay-mcp.png +0 -0
- package/dist/images/integrations/craft-mcp.png +0 -0
- package/dist/images/integrations/customer-io-mcp.png +0 -0
- package/dist/images/integrations/fathom-mcp.png +0 -0
- package/dist/images/integrations/fireflies-mcp.png +0 -0
- package/dist/images/integrations/gamma-mcp.png +0 -0
- package/dist/images/integrations/guru-mcp.png +0 -0
- package/dist/images/integrations/interactive-brokers-mcp.png +0 -0
- package/dist/images/integrations/intercom-mcp.png +0 -0
- package/dist/images/integrations/jotform-mcp.png +0 -0
- package/dist/images/integrations/juicebox-mcp.png +0 -0
- package/dist/images/integrations/klaviyo-mcp.png +0 -0
- package/dist/images/integrations/linear-mcp.png +0 -0
- package/dist/images/integrations/mailerlite-mcp.png +0 -0
- package/dist/images/integrations/meltwater-mcp.png +0 -0
- package/dist/images/integrations/mem-mcp.png +0 -0
- package/dist/images/integrations/mercury-mcp.png +0 -0
- package/dist/images/integrations/navan-mcp.png +0 -0
- package/dist/images/integrations/notion-mcp.png +0 -0
- package/dist/images/integrations/notion.svg +4 -1
- package/dist/images/integrations/otter-mcp.png +0 -0
- package/dist/images/integrations/profound-mcp.png +0 -0
- package/dist/images/integrations/ramp-mcp.png +0 -0
- package/dist/images/integrations/readwise-mcp.png +0 -0
- package/dist/images/integrations/semrush-mcp.png +0 -0
- package/dist/images/integrations/sentry-mcp.png +0 -0
- package/dist/images/integrations/stripe-mcp.png +0 -0
- package/dist/images/integrations/todoist-mcp.png +0 -0
- package/dist/images/integrations/typeform-mcp.png +0 -0
- package/dist/images/integrations/upwork-mcp.png +0 -0
- package/dist/images/integrations/webull-mcp.png +0 -0
- package/dist/index.html +4 -4
- package/package.json +1 -1
- package/dist/assets/about-page-COxmu2oQ.js +0 -1
- package/dist/assets/acp-run-detail-panel-B5vKfWQN.js +0 -3
- package/dist/assets/activation-list-route-BOb-rtBa.js +0 -1
- package/dist/assets/activity-steps-panel-DmC1H7g8.js +0 -1
- package/dist/assets/add-credits-modal-B0DI6Rs_.js +0 -1
- package/dist/assets/add-credits-modal-Clg9vuy6.js +0 -1
- package/dist/assets/ai-page-CUKc_nmb.js +0 -1
- package/dist/assets/api-key-screen-fY9JjhTe.js +0 -1
- package/dist/assets/app-BNL3dwNm.css +0 -2
- package/dist/assets/app-Tg6YU_tZ.js +0 -392
- package/dist/assets/archive-redirect-page-De-Keegk.js +0 -1
- package/dist/assets/assistant-status-panel-BALzwsAc.js +0 -1
- package/dist/assets/auth-store-D-6LI7o_.js +0 -1
- package/dist/assets/avatar-bundled-components-Bo-wVBBE.js +0 -1
- package/dist/assets/avatar-random-ZUs-wFAP.js +0 -2
- package/dist/assets/background-task-detail-panel-D4CYPLDN.js +0 -1
- package/dist/assets/billing-page-CqDMGSHe.js +0 -3
- package/dist/assets/channel-transcript-panel-Ca2IqSxd.js +0 -1
- package/dist/assets/channels-page-route-BrkM9cD0.js +0 -1
- package/dist/assets/chat-8C19KXOV.js +0 -3
- package/dist/assets/chat-B8bCjQZ1.js +0 -3
- package/dist/assets/chat-BMyAegHU.js +0 -3
- package/dist/assets/chat-info-panel-CFHg5G5C.js +0 -1
- package/dist/assets/chat-k0ASlCf6.js +0 -3
- package/dist/assets/checkout-continuation-ATko7N-k.js +0 -1
- package/dist/assets/checkout-page-CVp2T6mP.js +0 -1
- package/dist/assets/checkout-return-target-BM6j8E5w.js +0 -1
- package/dist/assets/command-palette-BuaJlwlj.js +0 -1
- package/dist/assets/command-palette-DkTYuZU8.js +0 -1
- package/dist/assets/common-Bj2G8_g5.js +0 -1
- package/dist/assets/common-CaTw6iFT.js +0 -1
- package/dist/assets/common-DvY3wB2D.js +0 -1
- package/dist/assets/common-HddDknEB.js +0 -1
- package/dist/assets/community-page-rNFPZE2f.js +0 -1
- package/dist/assets/companion-surface-page-DHxOTQOL.js +0 -1
- package/dist/assets/companion-watch-frame-page-DLTwthiI.js +0 -1
- package/dist/assets/connect-page-BtvEUJj6.js +0 -1
- package/dist/assets/consent-controls-CjyXQ2Ju.js +0 -1
- package/dist/assets/contacts-gateway-CZ3fJfK5.js +0 -1
- package/dist/assets/contacts-page-route-CNXEHOrf.js +0 -1
- package/dist/assets/credentials-page-DsxuB0Ui.js +0 -1
- package/dist/assets/danger-zone-redirect-page-C23hsdDS.js +0 -1
- package/dist/assets/debug-page-6PKrAjce.js +0 -4
- package/dist/assets/deploy-dialogs-BXYdSkVL.js +0 -1
- package/dist/assets/deploy-dialogs-C0gFbHA2.js +0 -1
- package/dist/assets/desktop-preview-content-Cc9hlQ4Q.js +0 -2
- package/dist/assets/detail-primitives-ue4wzzCx.js +0 -1
- package/dist/assets/developer-page-DcZbWcLH.js +0 -1
- package/dist/assets/devices-redirect-page-Bxu6ZvQb.js +0 -1
- package/dist/assets/document-load-B8iTfjYL.js +0 -1
- package/dist/assets/document-load-DShQChFM.js +0 -1
- package/dist/assets/document-viewer-page-BStfu3jJ.js +0 -1
- package/dist/assets/emails-page-BlP1KP70.js +0 -1
- package/dist/assets/environment-store-rH-YdiqT.js +0 -1
- package/dist/assets/esm-BarLUlPV.js +0 -2
- package/dist/assets/esm-C19uvbek.js +0 -2
- package/dist/assets/esm-CI79f_VT.js +0 -2
- package/dist/assets/esm-CtAM062C.js +0 -1
- package/dist/assets/esm-DGqMBGum.js +0 -1
- package/dist/assets/esm-DYrMpsGJ.js +0 -2
- package/dist/assets/esm-Y7e1KRCK.js +0 -2
- package/dist/assets/file-editor-EZsnOrB1.js +0 -1
- package/dist/assets/general-page-DjmqGNEh.js +0 -2
- package/dist/assets/hatching-screen-Vx631ARz.js +0 -1
- package/dist/assets/home-CQRYKQ5-.js +0 -1
- package/dist/assets/home-DQz-gw5J.js +0 -1
- package/dist/assets/home-jvtY7w4T.js +0 -1
- package/dist/assets/home-uZ5Qvj6E.js +0 -1
- package/dist/assets/hosting-screen-nVYKldkt.js +0 -1
- package/dist/assets/icons-QG1KAFmx.js +0 -1
- package/dist/assets/identity-page-route-B4R5hI3l.js +0 -7
- package/dist/assets/inspect-page-CYYIbGHx.js +0 -9
- package/dist/assets/integrations-page-BjXxWGKz.js +0 -1
- package/dist/assets/intelligence-layout-BUGM35jP.js +0 -1
- package/dist/assets/intelligence-layout-slots-store-nrEU1pdD.js +0 -1
- package/dist/assets/keyboard-shortcuts-redirect-page-UFsztRh3.js +0 -1
- package/dist/assets/library-BXLScXI1.js +0 -1
- package/dist/assets/library-D7tisF9R.js +0 -1
- package/dist/assets/library-IMXA70AZ.js +0 -1
- package/dist/assets/library-detail-page-BcqVyl-x.js +0 -1
- package/dist/assets/library-gTJv7Oz7.js +0 -1
- package/dist/assets/library-page-CK7LA8to.js +0 -1
- package/dist/assets/local-mode-B63ogN2h.js +0 -1
- package/dist/assets/login-page-Cw14hc03.js +0 -1
- package/dist/assets/logout-page-DpNGL-t4.js +0 -1
- package/dist/assets/markdown-preview-DsAfiAyB.js +0 -1
- package/dist/assets/memory-page-route-B98b_k6V.js +0 -2
- package/dist/assets/memory-router-playground-page-BmST7_Kw.js +0 -1
- package/dist/assets/native-attachment-pickers-DXW2YF-J.js +0 -1
- package/dist/assets/native-file-DIYnpRix.js +0 -1
- package/dist/assets/onboarding-4AB8OdqK.js +0 -1
- package/dist/assets/onboarding-Bv6Vw7rT.js +0 -1
- package/dist/assets/onboarding-C9uVVsD1.js +0 -1
- package/dist/assets/onboarding-CFxxcqra.js +0 -1
- package/dist/assets/paired-platform-identity-DyA-oZ1a.js +0 -1
- package/dist/assets/password-reset-page-DyCdaLlT.js +0 -1
- package/dist/assets/pdf-file-preview-Cv30v3e_.js +0 -1
- package/dist/assets/personality-page-CUwdmzId.js +0 -1
- package/dist/assets/personality-sliders-BZ5p3Svp.js +0 -1
- package/dist/assets/plans-page-Bt7rWPBi.js +0 -1
- package/dist/assets/plugins-surface-f4dAI31U.js +0 -1
- package/dist/assets/privacy-page-CKEUMx1C.js +0 -1
- package/dist/assets/privacy-screen-Bkjr2dIv.js +0 -1
- package/dist/assets/provider-callback-page-DGAy5DvE.js +0 -1
- package/dist/assets/provider-signup-page-BG1mhVYr.js +0 -1
- package/dist/assets/quick-input-page-CCDzeBSI.js +0 -1
- package/dist/assets/referral-modal-BTG7IbD5.js +0 -1
- package/dist/assets/referral-modal-BWGbrPeD.js +0 -1
- package/dist/assets/research-onboarding-route-DvnsATHR.js +0 -50
- package/dist/assets/review-terms-screen-C2vdbHvu.js +0 -1
- package/dist/assets/routes-64wTPHX3.js +0 -1
- package/dist/assets/schedules-AMG6VEfS.js +0 -1
- package/dist/assets/schedules-page-DQ0p71wD.js +0 -1
- package/dist/assets/security-redirect-page-C8sxzPnV.js +0 -1
- package/dist/assets/select-assistant-screen-B57uDK4U.js +0 -1
- package/dist/assets/service-form-controls-DTfO4j3O.js +0 -1
- package/dist/assets/settings-C-QPO0as.js +0 -3
- package/dist/assets/settings-D9OIWncF.js +0 -3
- package/dist/assets/settings-DGQfZ51D.js +0 -3
- package/dist/assets/settings-divider-BkQcvD1N.js +0 -1
- package/dist/assets/settings-gxBTr-j9.js +0 -3
- package/dist/assets/share-feedback-modal-CYWA8ArT.js +0 -1
- package/dist/assets/share-feedback-modal-DwmVNIDD.js +0 -2
- package/dist/assets/skill-detail-page-bMQCOgEU.js +0 -2
- package/dist/assets/skill-detail-panel-jkm8mNzk.js +0 -1
- package/dist/assets/subagent-detail-panel-p9ahsacR.js +0 -1
- package/dist/assets/superpowers-page-BiVUrsDa.js +0 -1
- package/dist/assets/system-events-page-CxJryFCX.js +0 -1
- package/dist/assets/system-events-redirect-page-CORiS4Xr.js +0 -1
- package/dist/assets/tool-detail-panel-Bia85tXo.js +0 -15
- package/dist/assets/tool-detail-panel-CEtClwDC.js +0 -1
- package/dist/assets/upgrade-success-page-5FOrQc3B.js +0 -1
- package/dist/assets/use-app-delete-C6E5CTp4.js +0 -1
- package/dist/assets/use-assistant-identity-details-BqNoC_Po.js +0 -1
- package/dist/assets/use-checkout-dismiss-refresh-DFYkYYpp.js +0 -1
- package/dist/assets/use-edge-swipe-back-DMaMp9xI.js +0 -1
- package/dist/assets/use-invite-link-dialog-ChgRhNyN.js +0 -1
- package/dist/assets/use-platform-assistant-id-CPNM_Svc.js +0 -1
- package/dist/assets/use-return-to-short-circuit-dsa2YMci.js +0 -1
- package/dist/assets/use-skill-actions-B7qsFEjO.js +0 -1
- package/dist/assets/use-skill-detail-files-Caa0kAOC.js +0 -1
- package/dist/assets/use-supports-credentials-settings-CxEHVJ-e.js +0 -1
- package/dist/assets/use-transcript-message-by-id-Bnbe06RA.js +0 -1
- package/dist/assets/vendor-DYOeoIwg.js +0 -127
- package/dist/assets/voice-page-D237ka3h.js +0 -1
- package/dist/assets/welcome-screen-CQo-_cIi.js +0 -1
- package/dist/assets/workspace-CrT6IjXz.js +0 -1
- package/dist/assets/workspace-D-j7Q1o1.js +0 -1
- package/dist/assets/workspace-Db-P5zkL.js +0 -1
- package/dist/assets/workspace-page-Bx0l3azH.js +0 -1
- /package/dist/assets/{account-BBvlSFcW.js → account-B6SZEbjB.js} +0 -0
- /package/dist/assets/{account-DV-tB0oh.js → account-BTCX8OvN.js} +0 -0
- /package/dist/assets/{account-1POZPT9m.js → account-CGF4YCs6.js} +0 -0
- /package/dist/assets/{account-n9xXc949.js → account-CJNvbYMo.js} +0 -0
- /package/dist/assets/{activation-BtZhlZ_s.js → activation-BIb8yZib.js} +0 -0
- /package/dist/assets/{activation-B2g-Oe-r.js → activation-BcmlXlki.js} +0 -0
- /package/dist/assets/{activation-dc_gRGWQ.js → activation-CtKKSwsj.js} +0 -0
- /package/dist/assets/{activation-CaYos65l.js → activation-D4Z8d600.js} +0 -0
- /package/dist/assets/{activation-tasks-CvYLTc0s.js → activation-tasks-0CJ2Ckhl.js} +0 -0
- /package/dist/assets/{activation-tasks-C5NV7wu7.js → activation-tasks-BUCVYC6O.js} +0 -0
- /package/dist/assets/{activation-tasks-CzjUeEj1.js → activation-tasks-CxKVYvoX.js} +0 -0
- /package/dist/assets/{activation-tasks-D057dozu.js → activation-tasks-DIl_NU8H.js} +0 -0
- /package/dist/assets/{app-types-2kvircdH.js → app-types-Bhv1QIYY.js} +0 -0
- /package/dist/assets/{build.umd-BWfbInTw.js → build.umd-D2Gn4hc9.js} +0 -0
- /package/dist/assets/{channels-LgPH3TQp.js → channels-BuZPelJ-.js} +0 -0
- /package/dist/assets/{channels-itxMVi8q.js → channels-CuNLefDI.js} +0 -0
- /package/dist/assets/{channels-QZtdATsC.js → channels-D8sm_qqv.js} +0 -0
- /package/dist/assets/{channels-BnJWh26Z.js → channels-Ig5E4zAW.js} +0 -0
- /package/dist/assets/{contacts-X4REeAsN.js → contacts-CK3oNIfb.js} +0 -0
- /package/dist/assets/{contacts-yIhQlpq2.js → contacts-Du0mkP7C.js} +0 -0
- /package/dist/assets/{contacts-D6N3gRLL.js → contacts-MUCkcGvC.js} +0 -0
- /package/dist/assets/{contacts-DP3Crat5.js → contacts-_nz42ZZ_.js} +0 -0
- /package/dist/assets/{credential-requests-DrJdsdeJ.js → credential-requests-BE0rJ0wR.js} +0 -0
- /package/dist/assets/{credential-requests-DKbR-6qV.js → credential-requests-Cp59Lsj5.js} +0 -0
- /package/dist/assets/{credential-requests-D6SU6G2Z.js → credential-requests-DkdgEuGe.js} +0 -0
- /package/dist/assets/{credential-requests-1WDcifE6.js → credential-requests-DubAqUiZ.js} +0 -0
- /package/dist/assets/{definitions-Qg1-j0J7.js → definitions-COMG0KSg.js} +0 -0
- /package/dist/assets/{definitions-DhwHuMC5.js → definitions-DaNVCwWR.js} +0 -0
- /package/dist/assets/{diff-rows-Bf-wMfUA.js → diff-rows-DXG1Tw8n.js} +0 -0
- /package/dist/assets/{emoji-catalog-data-Yyjk_IDu.js → emoji-catalog-data-CJSzZ2xi.js} +0 -0
- /package/dist/assets/{format-countdown-BEyU91h0.js → format-countdown-V7kp5VfL.js} +0 -0
- /package/dist/assets/{format-file-size-CEqN0m2h.js → format-file-size-BW7P6CE0.js} +0 -0
- /package/dist/assets/{link-click-BYgcUBN3.js → link-click-Dui3RyC1.js} +0 -0
- /package/dist/assets/{logs-gUmqmCAe.js → logs-Ax_rHiGT.js} +0 -0
- /package/dist/assets/{logs-itULWBC4.js → logs-B5trKA2g.js} +0 -0
- /package/dist/assets/{logs-DV_rbeyU.js → logs-BF5SeNKP.js} +0 -0
- /package/dist/assets/{logs-ji3E1A5W.js → logs-xFKvsM90.js} +0 -0
- /package/dist/assets/{machine-sizes-Cyr9sICv.js → machine-sizes-3x95p4n1.js} +0 -0
- /package/dist/assets/{onboarding-step-layout-XiwLE8P3.js → onboarding-step-layout-B7jTKWhx.js} +0 -0
- /package/dist/assets/{pdf-DZqed7HH.js → pdf-BxHYDuSN.js} +0 -0
- /package/dist/assets/{plugin-attribution-B2jD5Q1N.js → plugin-attribution-BxpfUKdX.js} +0 -0
- /package/dist/assets/{radio-card-nav-BtZq6gZp.js → radio-card-nav-DkCS-TkI.js} +0 -0
- /package/dist/assets/{remote-web-BqE5HtVx.js → remote-web-BNCSZhe7.js} +0 -0
- /package/dist/assets/{remote-web-Cy9y7nTE.js → remote-web-D7sTkxyl.js} +0 -0
- /package/dist/assets/{remote-web-BClKYDvU.js → remote-web-DBr-nqs0.js} +0 -0
- /package/dist/assets/{remote-web-BTqxQIZY.js → remote-web-DLWX5CP8.js} +0 -0
- /package/dist/assets/{schedules-BZCt6hXe.js → schedules-BM8Lza7o.js} +0 -0
- /package/dist/assets/{schedules-DO26F1mH.js → schedules-COt7uOT5.js} +0 -0
- /package/dist/assets/{schedules-DDJ36QQM.js → schedules-DR6w8i2K.js} +0 -0
- /package/dist/assets/{schedules-Capmqn71.js → schedules-Dg-sdjRQ.js} +0 -0
- /package/dist/assets/{signup-onboarding-handoff-CEICxhlG.js → signup-onboarding-handoff-eYcYQqY4.js} +0 -0
- /package/dist/assets/{skill-icon-DLqnaRMf.js → skill-icon-DcBBE55l.js} +0 -0
- /package/dist/assets/{status-badge-pill-Dw3L9IOE.js → status-badge-pill-DOZpKLHj.js} +0 -0
- /package/dist/assets/{terminal-BKHabeoN.js → terminal-B2CXYcEa.js} +0 -0
- /package/dist/assets/{terminal-1uiH9Lk0.js → terminal-B5az4g11.js} +0 -0
- /package/dist/assets/{terminal-CWSI_cvE.js → terminal-C2Mcr7Di.js} +0 -0
- /package/dist/assets/{terminal-DHtM2WSE.js → terminal-YHk7L5QT.js} +0 -0
- /package/dist/assets/{usage-window-DA_JAjjs.js → usage-window-ClzDdz34.js} +0 -0
- /package/dist/assets/{use-truncated-blob-text-BArL-keL.js → use-truncated-blob-text-Ch2wbCLN.js} +0 -0
- /package/dist/assets/{xterm-DuUTQzS6.js → xterm-BLrzNn2R.js} +0 -0
- /package/dist/assets/{xterm-addon-fit-DuSb5pvT.js → xterm-addon-fit-Dcf9juuw.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$u as t,Ao as n,Cx as r,F_ as i,Fo as a,Io as o,JS as s,Lo as c,Mo as l,No as u,Po as d,Qt as f,So as p,WS as m,Xa as h,ZS as g,Zt as _,Zu as v,_S as y,_l as b,_o as x,bo as S,cS as C,cf as w,dc as T,en as E,fc as D,gS as O,gl as k,it as A,jo as j,kS as M,lf as ee,mc as te,nt as N,ot as ne,pS as re,pc as ie,rt as ae,sh as oe,sx as se,vS as ce,vc as le,vo as ue,wS as P,wx as de,xo as fe,yS as pe,yo as me,yp as he}from"./app-CuJb51Ub.js";import{Qn as F,j as I,tr as ge}from"./vendor-CYmPHUS2.js";import{_ as L,n as _e,r as R,t as ve,x as ye}from"./react-B9IgSVeK.js";import{La as be,fr as z}from"./icons-C0wyat6T.js";import{t as B}from"./detail-card-RBkdhZeE.js";import{t as xe}from"./stt-language-picker-modal-D_LD1BqB.js";import{t as Se}from"./use-hotkey-recorder-Byjcx16O.js";var V=e(ye(),1),H=ve();function U({label:e,selected:t,recording:n=!1,onClick:r}){return(0,H.jsxs)(`button`,{type:`button`,onClick:r,className:[`inline-flex items-center gap-2 rounded-lg border px-3 py-1.5 text-body-medium-lighter transition-colors`,`border-[var(--border-subtle)]`,t?`bg-[var(--surface-active)]`:`bg-[var(--surface-lift)] hover:bg-[var(--surface-hover)]`,n?`animate-pulse`:``].filter(Boolean).join(` `),children:[(0,H.jsx)(`span`,{className:[`inline-block h-2.5 w-2.5 rounded-full border`,t?`border-[var(--primary-base)] bg-[var(--primary-base)]`:`border-[var(--border-element)]`].join(` `)}),(0,H.jsx)(`span`,{className:`text-[var(--content-default)]`,children:e})]})}function Ce(){let{t:e}=I(`settings`),{available:t,currentCode:n,configuredProviderId:r,selectLanguage:i,selecting:a}=A(N()),[o,c]=(0,V.useState)(!1);return t?(0,H.jsxs)(B,{title:e(`listeningLanguageCard.title`),subtitle:e(`listeningLanguageCard.subtitle`),children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(`span`,{className:`min-w-0 text-body-medium-lighter text-[var(--content-default)]`,children:ne(n,r)}),(0,H.jsx)(s,{variant:`outlined`,onClick:()=>c(!0),className:`shrink-0`,children:e(`listeningLanguageCard.change`)})]}),(0,H.jsx)(xe,{open:o,onOpenChange:c,title:e(`listeningLanguageCard.title`),currentCode:n,configuredProviderId:r,selectLanguage:i,selecting:a})]}):null}var W=`flux`;function we(e){return e===`vellum`}function Te(e,t){let n=e?.trim().toLowerCase();return!n||n===`multi`||t===void 0?!0:t.includes(n.split(`-`)[0]??n)}function Ee(){let{t:e}=I(`settings`),t=ge(),n=oe(),r=N(),[a,o]=(0,V.useState)(!1),{data:s}=F({...w({path:{assistant_id:r}}),enabled:n,staleTime:3e4}),c=s?.services?.stt,{data:l}=F({...he({path:{assistant_id:r}}),enabled:n,staleTime:5*6e4}),u=c?.roles?.liveVoice?.provider??c?.provider,d=l?.providers?.find(e=>e.id===u),f=d?.modelFamilies?.includes(W)??!1;if(!u||!f)return null;let p=Te(c?.language,d?.turnDetectionLanguages),m=c?.roles?.liveVoice,h=m?m.model:c?.providers?.[u]?.model,g=h===void 0?we(u)&&p:h===W,_=async n=>{o(!0);try{let{response:e}=await i({path:{assistant_id:r},body:{services:{stt:{roles:{liveVoice:{provider:u,model:n?W:d?.baseModelFamily}}}}},throwOnError:!1});if(!e?.ok)throw Error(String(e?.status??``));await t.invalidateQueries({queryKey:ee({path:{assistant_id:r}})})}catch{O.error(e(`voicePage.turnDetectionFailed`))}finally{o(!1)}};return(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsx)(`span`,{className:`text-body-medium-lighter text-[var(--content-default)]`,children:e(`voicePage.turnDetectionLabel`)}),(0,H.jsx)(`p`,{className:`text-body-small-lighter text-[var(--content-tertiary)]`,children:e(p?`voicePage.turnDetectionDescription`:`voicePage.turnDetectionLanguageUnsupported`)}),(0,H.jsx)(P,{checked:g,disabled:a||!p&&!g,onChange:e=>void _(e),"aria-label":e(`voicePage.turnDetectionLabel`)})]})}var G=`flex items-start gap-1 pt-1 text-body-small-lighter text-[var(--content-quiet)]`,K=`flex items-start gap-1 pt-1 text-body-small-lighter text-[var(--system-negative-strong)]`,De=2;function q(e){let t=[];return e.ctrlKey&&t.push(`control`),e.altKey&&t.push(`option`),e.shiftKey&&t.push(`shift`),e.metaKey&&t.push(`command`),c(t)}function Oe(){let{t:e}=I(`settings`),r=l(),i=x(e=>e.registered)===!1,[a,c]=(0,V.useState)(null),[d,f]=(0,V.useState)(!1),[p,m]=(0,V.useState)([]),[h,g]=(0,V.useState)(!1),_=(0,V.useRef)(null),y=(0,V.useCallback)(async()=>{c((await v())?.inputMonitoring.status??null)},[]);(0,V.useEffect)(()=>{y();let e=setInterval(()=>{y()},2e3);return()=>{clearInterval(e)}},[y]);let b=(0,V.useCallback)(()=>{t(`inputMonitoring`).then(y)},[y]),S=(0,V.useCallback)(e=>{u(e),f(!1),m([]),g(!1),e.kind!==`off`&&b()},[b]),C=(0,V.useCallback)(()=>{f(!0),m([]),g(!1),requestAnimationFrame(()=>{_.current?.focus()})},[]),w=(0,V.useCallback)(()=>{f(!1),m([]),g(!1)},[]),T=(0,V.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`){w();return}m(q(e))},[w]),E=(0,V.useCallback)(e=>{if(d&&!(q(e).length>0)){if(p.length>=De){S({kind:`modifierOnly`,modifiers:p});return}m([]),g(!0)}},[S,p,d]);(0,V.useEffect)(()=>{if(!d)return;let e=e=>{_.current&&!_.current.contains(e.target)&&w()};return window.addEventListener(`mousedown`,e),()=>window.removeEventListener(`mousedown`,e)},[w,d]);let D=j(r),O=r.kind===`modifierOnly`&&!D,k=r.kind!==`off`,A=r.kind===`modifierOnly`&&r.modifiers.includes(`control`)&&r.modifiers.includes(`option`),M=a===`granted`;return(0,H.jsx)(B,{title:e(`voiceKeyCard.title`),subtitle:e(`voiceKeyCard.subtitle`),children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsxs)(`div`,{ref:_,tabIndex:d?0:-1,onKeyDown:d?T:void 0,onKeyUp:d?E:void 0,className:`flex flex-wrap items-center gap-2 focus:outline-none`,children:[(0,H.jsx)(U,{label:e(`voiceKeyCard.fnLabel`),selected:D,onClick:()=>S(n)}),d?(0,H.jsx)(U,{label:p.length>0?o(p):e(`voiceKeyCard.recordingPrompt`),selected:!0,recording:!0,onClick:w}):(0,H.jsx)(U,{label:r.kind===`modifierOnly`&&!D?o(r.modifiers):e(`voiceKeyCard.customLabel`),selected:O,onClick:C}),(0,H.jsx)(U,{label:e(`voiceKeyCard.offLabel`),selected:!k,onClick:()=>S({kind:`off`})})]}),h&&(0,H.jsxs)(`div`,{className:G,children:[(0,H.jsx)(z,{className:`mt-0.5 h-3 w-3 shrink-0`}),(0,H.jsx)(`span`,{children:e(`voiceKeyCard.customHint`)})]}),k&&a!==null&&!M&&(0,H.jsxs)(`div`,{className:`flex flex-col items-start gap-2 pt-1`,children:[(0,H.jsxs)(`div`,{className:K,children:[(0,H.jsx)(z,{className:`mt-0.5 h-3 w-3 shrink-0`}),(0,H.jsx)(`span`,{children:e(`voiceKeyCard.needsInputMonitoring`)})]}),(0,H.jsx)(s,{variant:`outlined`,onClick:b,children:e(`voiceKeyCard.allowInputMonitoring`)})]}),k&&M&&i&&(0,H.jsxs)(`div`,{className:K,children:[(0,H.jsx)(z,{className:`mt-0.5 h-3 w-3 shrink-0`}),(0,H.jsx)(`span`,{children:e(`voiceKeyCard.refusedNote`)})]}),D&&(0,H.jsxs)(`div`,{className:G,children:[(0,H.jsx)(z,{className:`mt-0.5 h-3 w-3 shrink-0`}),(0,H.jsx)(`span`,{children:e(`voiceKeyCard.fnDictationNote`)})]}),A&&(0,H.jsxs)(`div`,{className:G,children:[(0,H.jsx)(z,{className:`mt-0.5 h-3 w-3 shrink-0`}),(0,H.jsx)(`span`,{children:e(`voiceKeyCard.voiceOverNote`)})]})]})})}function ke({assistantId:e,open:t,onOpenChange:n}){return(0,H.jsx)(y.Root,{open:t,onOpenChange:n,children:(0,H.jsx)(y.Content,{size:`md`,children:(0,H.jsx)(Ae,{assistantId:e,onDone:()=>n(!1)})})})}function Ae({assistantId:e,onDone:t}){let{t:n}=I(),{available:r,currentModel:i,selectModel:a,selecting:o}=h(e);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(y.Header,{children:[(0,H.jsx)(y.Title,{children:n(`voicePickerModal.title`)}),r&&(0,H.jsx)(y.Description,{children:`Uses Vellum credits, through providers like ElevenLabs and Deepgram.`})]}),(0,H.jsx)(y.Body,{children:(0,H.jsx)(f,{assistantId:e,filterBySource:!0,value:i,onChange:a,autoScrollToSelected:!0})}),(0,H.jsxs)(y.Footer,{className:`items-center justify-between gap-3`,children:[(0,H.jsx)(ae,{}),(0,H.jsx)(s,{variant:`primary`,onClick:t,disabled:o,className:`shrink-0`,children:n(`voicePickerModal.done`)})]})]})}function je(){let{t:e}=I(`settings`),t=N(),{available:n,settled:r,voices:i,currentModel:a}=h(t),o=i.find(e=>e.model===a)??i[0],[c,l]=(0,V.useState)(!1),u=se.use.name(),d=u?e(`voicePickerCard.titleWithName`,{name:u}):e(`voicePickerCard.title`);return r?n&&o?(0,H.jsxs)(B,{title:d,subtitle:e(`voicePickerCard.creditsNote`),children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(_,{description:o.description,className:`min-w-0 text-body-medium-lighter text-[var(--content-default)]`}),(0,H.jsx)(s,{variant:`outlined`,onClick:()=>l(!0),className:`shrink-0`,children:e(`voicePickerCard.changeButton`)})]}),(0,H.jsx)(ke,{assistantId:t,open:c,onOpenChange:l})]}):(0,H.jsx)(B,{title:d,children:(0,H.jsx)(E,{})}):(0,H.jsx)(B,{title:d,children:(0,H.jsx)(C,{as:`span`,role:`status`,"aria-label":e(`voicePickerCard.loadingAria`),className:`block h-9 w-48`})})}var Me=[{prefKey:`showUserTranscript`,label:`Show the words you say`,description:`Live transcription while you speak.`},{prefKey:`showAssistantTranscript`,label:`Show the words the assistant says`,description:`Text alongside the spoken response.`}],Ne=`We recommend keeping both off to start. It feels more like a real conversation.`;function Pe(){let{t:e}=I();return(0,H.jsx)(`span`,{className:`shrink-0 rounded-full bg-[var(--surface-active)] px-2 py-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:e(`voiceTranscriptToggles.recommendedOff`)})}function Fe({label:e,description:t,showBadge:n,checked:r,onChange:i}){return(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-3 py-1`,children:[(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,H.jsx)(`span`,{className:`truncate text-body-medium-lighter text-[var(--content-default)]`,children:e}),n?(0,H.jsx)(Pe,{}):null]}),t?(0,H.jsx)(`div`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:t}):null]}),(0,H.jsx)(P,{checked:r,onChange:i,"aria-label":e})]})}function Ie({showDescription:e=!1,showRecommendedBadge:t=!1}){let{t:n}=I(),r=b.use.showUserTranscript(),i=b.use.showAssistantTranscript(),a=b.use.setShowUserTranscript(),o=b.use.setShowAssistantTranscript(),s={showUserTranscript:{checked:r,onChange:a},showAssistantTranscript:{checked:i,onChange:o}},c=(e,t)=>n(e===`showUserTranscript`?`voiceTranscriptToggles.userTranscriptLabel`:`voiceTranscriptToggles.assistantTranscriptLabel`,t),l=(e,t)=>n(e===`showUserTranscript`?`voiceTranscriptToggles.userTranscriptDescription`:`voiceTranscriptToggles.assistantTranscriptDescription`,t);return(0,H.jsx)(H.Fragment,{children:Me.map(n=>{let r=s[n.prefKey];return(0,H.jsx)(Fe,{label:c(n.prefKey,n.label),description:e?l(n.prefKey,n.description):void 0,showBadge:t,checked:r.checked,onChange:r.onChange},n.prefKey)})})}var J=`text-body-small-default text-[var(--content-tertiary)]`;function Le(){let[e]=L(),t=e.get(`tab`);return t===`sounds`?(0,H.jsx)(R,{replace:!0,to:r.settings.sounds}):t===`services`?(0,H.jsx)(R,{replace:!0,to:r.settings.ai}):(0,H.jsx)(Re,{})}function Re(){let{t:e}=I(`settings`);return(0,H.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[(0,H.jsxs)(X,{heading:e(`voicePage.sectionOutputHeading`),description:e(`voicePage.sectionOutputDescription`),children:[(0,H.jsx)(je,{}),(0,H.jsx)(Y,{})]}),(0,H.jsxs)(X,{heading:e(`voicePage.sectionInputHeading`),description:e(`voicePage.sectionInputDescription`),children:[(0,H.jsx)(Be,{}),(0,H.jsx)(Ce,{}),le()?(0,H.jsx)(Oe,{}):(0,H.jsx)(Ue,{}),(0,H.jsx)(We,{})]}),(0,H.jsx)(X,{heading:e(`voicePage.sectionCaptionsHeading`),children:(0,H.jsx)(ze,{})})]})}function Y(){let{t:e}=I(`settings`),{available:t}=h(N());return t?(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 px-1 text-body-small-lighter text-[var(--content-tertiary)]`,children:[(0,H.jsx)(z,{className:`h-3.5 w-3.5 shrink-0 text-[var(--content-quiet)]`}),(0,H.jsx)(`span`,{children:e(`voicePage.speechServicesBannerPrompt`)}),(0,H.jsxs)(_e,{to:`${r.settings.ai}#text-to-speech`,className:g(M({tone:`quiet`}),`inline-flex items-center gap-1 text-[var(--content-secondary)] decoration-[var(--border-element)] underline-offset-2`),children:[e(`voicePage.speechServicesBannerLink`),(0,H.jsx)(be,{className:`h-3 w-3`})]})]}):null}function X({heading:e,description:t,children:n}){return(0,H.jsxs)(`section`,{className:`flex flex-col gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsx)(`h2`,{className:`text-label-medium-default uppercase tracking-wide text-[var(--content-tertiary)]`,children:e}),t&&(0,H.jsx)(`p`,{className:`text-body-small-default text-[var(--content-quiet)]`,children:t})]}),n]})}function ze(){let{t:e}=I(`settings`);return(0,H.jsx)(B,{title:e(`voicePage.captionsTitle`),subtitle:e(`voicePage.captionsSubtitle`),children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsx)(Ie,{showDescription:!0}),(0,H.jsx)(`p`,{className:`${J} pt-1`,children:e(`voicePage.captionsRecommendation`,Ne)})]})})}var Z=``;function Be(){let{t:e}=I(`settings`),[t,n]=(0,V.useState)([]),[r,i]=(0,V.useState)(!1),[a,o]=(0,V.useState)(!1),[c,l]=(0,V.useState)(()=>T()),u=(0,V.useCallback)(async()=>{if(!navigator.mediaDevices?.enumerateDevices)return;let e=await D();i(e.needsPermission),n(e.devices),o(e.known)},[]),d=(0,V.useCallback)(async()=>{try{let e=await navigator.mediaDevices.getUserMedia({audio:!0});for(let t of e.getTracks())t.stop()}catch{}u()},[u]);(0,V.useEffect)(()=>{u();let e=navigator.mediaDevices;if(!e?.addEventListener)return;let t=()=>void u();return e.addEventListener(`devicechange`,t),()=>e.removeEventListener(`devicechange`,t)},[u]);let f=(0,V.useMemo)(()=>{let n=t.map((t,n)=>({value:t.deviceId,label:t.label||e(`voicePage.microphoneFallbackLabel`,{index:n+1})})),r=c!==Z&&!n.some(e=>e.value===c);return[{value:null,label:e(`voicePage.systemDefault`)},...n,...r?[{value:c,label:e(a?`voicePage.savedMicrophoneNotConnected`:`voicePage.savedMicrophone`)}]:[]]},[t,c,a,e]),p=(0,V.useCallback)(e=>{l(e),ie(e)},[]);(0,V.useEffect)(()=>te(()=>{l(T())}),[]);let m=c===Z?null:c;return(0,H.jsx)(B,{title:e(`voicePage.microphoneTitle`),subtitle:e(`voicePage.microphoneSubtitle`),children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,H.jsx)(`div`,{className:`max-w-xs`,children:(0,H.jsx)(re,{options:f,value:m,onChange:p,onSelectNone:()=>p(Z),"aria-label":e(`voicePage.microphoneAriaLabel`)})}),r&&(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsx)(s,{variant:`outlined`,onClick:d,children:e(`voicePage.allowMicrophoneAccess`)}),(0,H.jsx)(`span`,{className:J,children:e(`voicePage.grantMicrophoneAccessHint`)})]})]})})}var Ve=new Set([`Control`,`Alt`,`Shift`,`Meta`]),Q=`toggleVoice`,He=[{label:`Ctrl+Shift`,activator:{kind:`modifierOnly`,modifiers:[`control`,`shift`]}},{label:`Alt`,activator:{kind:`modifierOnly`,modifiers:[`option`]}}];function Ue(){let{t:e}=I(`settings`),t=de(),[n,r]=(0,V.useState)(()=>S()),[i,s]=(0,V.useState)(!1),[l,u]=(0,V.useState)([]),[f,h]=(0,V.useState)(!1),g=(0,V.useRef)(null),_=(0,V.useMemo)(()=>{let e=me();return[{label:d(e),activator:e}]},[]),v=n.kind!==`off`,y=(0,V.useCallback)(e=>{r(e),p(e),s(!1),u([]),h(!1)},[]),b=Se({onBound:()=>y({kind:`off`})}),x=b.catalog.find(e=>e.key===Q)?.accelerator??``,C=b.recordingKey===Q,w=fe()?He:[],T=(0,V.useCallback)(e=>{y(e),b.removeHotkey(Q)},[b,y]),E=(0,V.useCallback)(()=>{y({kind:`off`}),b.removeHotkey(Q)},[b,y]),D=(0,V.useCallback)(()=>{s(!0),u([]),h(!1),requestAnimationFrame(()=>{g.current?.focus()})},[]),O=(0,V.useCallback)(()=>{s(!1),u([]),h(!1)},[]),k=(0,V.useCallback)(e=>{let t=[];return e.ctrlKey&&t.push(`control`),e.altKey&&t.push(`option`),e.shiftKey&&t.push(`shift`),e.metaKey&&t.push(`command`),t},[]),A=(0,V.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`){O();return}let t=k(e);if(Ve.has(e.key)){h(!1),u(c(t));return}if(t.length===0){h(!0);return}y({kind:`key`,label:e.key.length===1?e.key.toUpperCase():e.key,modifiers:c(t)})},[O,k,y]),j=(0,V.useCallback)(e=>{i&&k(e).length===0&&l.length>0&&(u([]),h(!0))},[k,i,l]);(0,V.useEffect)(()=>{if(!i)return;let e=e=>{g.current&&!g.current.contains(e.target)&&O()};return window.addEventListener(`mousedown`,e),()=>window.removeEventListener(`mousedown`,e)},[O,i]);let M=v&&!_.some(e=>a(e.activator,n));return t?(0,H.jsx)(B,{title:e(`voicePage.voiceShortcutTitle`),subtitle:e(`voicePage.voiceShortcutSubtitleDesktop`),children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[w.map(e=>(0,H.jsx)(U,{label:e.label,selected:a(e.activator,n),onClick:()=>T(e.activator)},e.label)),(0,H.jsx)(U,{label:C?e(`voicePage.recordingPrompt`):x?(0,H.jsx)(m,{accelerator:x}):e(`voicePage.customKey`),selected:x!==``,recording:C,onClick:C?b.stopRecording:()=>b.startRecording(Q)}),(0,H.jsx)(U,{label:e(`voicePage.offKeyLabel`),selected:n.kind===`off`&&!x&&!C,onClick:E})]}),b.conflict?.key===Q&&(0,H.jsxs)(`div`,{className:`flex items-start gap-1 pt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:[(0,H.jsx)(z,{className:`mt-0.5 h-3 w-3 shrink-0`}),(0,H.jsx)(`span`,{children:e(`voicePage.shortcutConflict`,{command:b.conflict.label})})]})]})}):(0,H.jsx)(B,{title:e(`voicePage.voiceShortcutTitle`),subtitle:e(`voicePage.voiceShortcutSubtitle`),children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,H.jsx)(P,{checked:v,onChange:e=>{y(e?ue():{kind:`off`})},label:e(`voicePage.enableVoiceShortcut`)}),v&&(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsx)(`span`,{className:J,children:e(`voicePage.activationKeyLabel`)}),(0,H.jsxs)(`div`,{ref:g,tabIndex:i?0:-1,onKeyDown:i?A:void 0,onKeyUp:i?j:void 0,className:`flex flex-wrap items-center gap-2 focus:outline-none`,children:[_.map(e=>(0,H.jsx)(U,{label:e.label,selected:a(e.activator,n),onClick:()=>y(e.activator)},e.label)),i?(0,H.jsx)(U,{label:l.length>0?o(l):e(`voicePage.pressShortcut`),selected:!0,recording:!0,onClick:O}):(0,H.jsx)(U,{label:M?d(n):e(`voicePage.customKey`),selected:M,onClick:D})]}),f&&(0,H.jsxs)(`div`,{className:`flex items-start gap-1 pt-1 text-body-small-lighter text-[var(--content-quiet)]`,children:[(0,H.jsx)(z,{className:`mt-0.5 h-3 w-3 shrink-0`}),(0,H.jsx)(`span`,{children:e(`voicePage.shortcutChordHint`)})]}),v&&(0,H.jsxs)(`div`,{className:`flex items-start gap-1 pt-1 text-body-small-lighter text-[var(--content-quiet)]`,children:[(0,H.jsx)(z,{className:`mt-0.5 h-3 w-3 shrink-0`}),(0,H.jsx)(`span`,{children:e(`voicePage.focusedTabNote`)})]})]})]})})}function We(){let{t:e}=I(`settings`),t=b.use.pauseBeforeReplyMs(),n=b.use.setPauseBeforeReplyMs(),r=b.use.interruptSensitivity(),i=b.use.setInterruptSensitivity(),a=(0,V.useMemo)(()=>[{value:`low`,label:e(`voicePage.interruptSensitivityLow`)},{value:`medium`,label:e(`voicePage.interruptSensitivityMedium`)},{value:`high`,label:e(`voicePage.interruptSensitivityHigh`)}],[e]),o=t!==null||r!==null;return(0,H.jsx)(B,{title:e(`voicePage.turnTakingTitle`),subtitle:e(`voicePage.turnTakingSubtitle`),children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,H.jsx)(Ee,{}),(0,H.jsx)($,{label:e(`voicePage.pauseBeforeReplyLabel`),description:e(`voicePage.pauseBeforeReplyDescription`),isDefault:t===null,children:(0,H.jsx)(`div`,{className:`max-w-xs`,children:(0,H.jsx)(ce,{value:(t??1200)/1e3,onValueChange:e=>{typeof e==`number`&&n(Math.round(e*1e3))},min:500/1e3,max:k/1e3,step:.1,showValue:!0,formatValue:e=>`${(typeof e==`number`?e:e[0]).toFixed(1)}s`,"aria-label":e(`voicePage.pauseBeforeReplyAriaLabel`)})})}),(0,H.jsx)($,{label:e(`voicePage.interruptSensitivityLabel`),description:e(`voicePage.interruptSensitivityDescription`),isDefault:r===null,children:(0,H.jsx)(`div`,{className:`max-w-xs`,children:(0,H.jsx)(pe,{items:a,value:r??`medium`,onChange:i,ariaLabel:e(`voicePage.interruptSensitivityAriaLabel`)})})}),o&&(0,H.jsx)(`div`,{children:(0,H.jsx)(s,{variant:`outlined`,onClick:()=>{n(null),i(null)},children:e(`voicePage.resetToDefaults`)})})]})})}function $({label:e,description:t,isDefault:n,children:r}){let{t:i}=I(`settings`);return(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(`span`,{className:`text-body-medium-lighter text-[var(--content-default)]`,children:e}),n&&(0,H.jsx)(`span`,{className:`shrink-0 rounded-full bg-[var(--surface-active)] px-2 py-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:i(`voicePage.defaultBadge`)})]}),(0,H.jsx)(`p`,{className:J,children:t}),r]})}export{Le as VoicePage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Dn as e,On as t,qn as n}from"./app-CuJb51Ub.js";import{j as r}from"./vendor-CYmPHUS2.js";import{t as i}from"./react-B9IgSVeK.js";import{$ as a}from"./icons-C0wyat6T.js";var o=i();function s({payload:e,onClose:i}){let{t:s}=r(`chat`),u=t(e.body);return(0,o.jsx)(n,{Glyph:a,title:e.title||s(`wakeDetailPanel.title`),closeLabel:s(`wakeDetailPanel.close`),closeTooltip:s(`wakeDetailPanel.close`),closeVariant:`outlined`,onClose:i,children:(0,o.jsxs)(`dl`,{className:`flex flex-col gap-6`,children:[u.workflow&&(0,o.jsx)(l,{label:s(`wakeDetailPanel.workflow`),children:u.workflow}),u.runStatus&&(0,o.jsx)(l,{label:s(`wakeDetailPanel.runStatus`),children:(0,o.jsx)(`span`,{className:`whitespace-pre-wrap break-words`,children:u.runStatus})}),u.result&&(0,o.jsx)(l,{label:s(`wakeDetailPanel.result`),children:(0,o.jsx)(c,{result:u.result})}),u.rest&&(0,o.jsx)(l,{label:s(`wakeDetailPanel.details`),children:(0,o.jsx)(`span`,{className:`whitespace-pre-wrap break-words`,children:u.rest})}),e.metadata.length>0&&(0,o.jsx)(`div`,{className:`flex flex-col gap-6`,children:e.metadata.map(e=>(0,o.jsx)(l,{label:e.label,children:e.value},e.label))})]})})}function c({result:t}){let n=e(t);return n?(0,o.jsx)(`div`,{className:`flex flex-col gap-4`,children:n.map((e,t)=>(0,o.jsx)(`div`,{className:t>0?`flex flex-col gap-2 border-t border-[var(--border-hover)] pt-4`:`flex flex-col gap-2`,children:e.map(e=>(0,o.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,o.jsx)(`span`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:e.key}),(0,o.jsx)(`span`,{className:`whitespace-pre-wrap break-words`,children:e.value})]},e.key))},t))}):(0,o.jsx)(`span`,{className:`whitespace-pre-wrap break-words`,children:t})}function l({label:e,children:t}){return(0,o.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,o.jsx)(`dt`,{className:`text-label-medium-default text-[var(--content-tertiary)]`,children:e}),(0,o.jsx)(`dd`,{className:`text-body-medium-default text-[var(--content-default)]`,children:t})]})}export{s as WakeDetailPanel};
|
package/dist/assets/{weather-forecast-display-CZYQX4n1.js → weather-forecast-display-z2cn9Ylw.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Ha as t,Jt as n,Xt as r,Yt as i,Zt as a}from"./app-Tg6YU_tZ.js";import{j as o}from"./vendor-DYOeoIwg.js";import{t as s,x as c}from"./react-B9IgSVeK.js";import{B as l,Si as u,_i as d,bi as f,c as p,et as m,gi as h,gn as g,ti as _,xi as v,yi as y}from"./icons-QG1KAFmx.js";var b=e(c(),1),x={"sun.max.fill":{icon:l,className:`text-orange-500`},"cloud.sun.fill":{icon:d,className:`text-amber-400`},"moon.fill":{icon:g,className:`text-blue-400`},"cloud.moon.fill":{icon:f,className:`text-blue-400`},"cloud.fill":{icon:h,className:`text-stone-400`},"cloud.rain.fill":{icon:y,className:`text-blue-400`},snowflake:{icon:m,className:`text-blue-300`},"cloud.bolt.fill":{icon:v,className:`text-orange-500`},"cloud.fog.fill":{icon:u,className:`text-stone-400`}},S={sunny:{icon:l,className:`text-orange-500`},clear:{icon:l,className:`text-orange-500`},"partly cloudy":{icon:d,className:`text-amber-400`},"mostly sunny":{icon:d,className:`text-amber-400`},cloudy:{icon:h,className:`text-stone-400`},overcast:{icon:h,className:`text-stone-400`},rainy:{icon:y,className:`text-blue-400`},rain:{icon:y,className:`text-blue-400`},drizzle:{icon:y,className:`text-blue-400`},snow:{icon:m,className:`text-blue-300`},snowy:{icon:m,className:`text-blue-300`},thunderstorm:{icon:v,className:`text-orange-500`},thunder:{icon:v,className:`text-orange-500`},foggy:{icon:u,className:`text-stone-400`},fog:{icon:u,className:`text-stone-400`},mist:{icon:u,className:`text-stone-400`},hazy:{icon:u,className:`text-stone-400`},night:{icon:g,className:`text-blue-400`},"mainly clear":{icon:l,className:`text-orange-500`},"mostly cloudy":{icon:h,className:`text-stone-400`},breezy:{icon:p,className:`text-stone-400`},windy:{icon:p,className:`text-stone-400`},cool:{icon:h,className:`text-stone-400`},warm:{icon:l,className:`text-orange-500`},hot:{icon:l,className:`text-orange-500`},cold:{icon:m,className:`text-blue-300`},"cold snap":{icon:m,className:`text-blue-300`},"warm, mostly sunny":{icon:d,className:`text-amber-400`},"cooler, breezy":{icon:p,className:`text-stone-400`}},C={icon:h,className:`text-stone-400`};function w(e){let t=x[e];if(t)return t;let n=e.toLowerCase(),r=S[n];if(r)return r;for(let[e,t]of Object.entries(S))if(n.includes(e))return t;return C}function T(e){if(typeof e==`string`){let t=e.match(/^(\d+)\s*mph\s*(.*)/i);if(t)return{speed:Number(t[1]),direction:t[2]?.trim()||void 0}}return{}}function E(e){let t;if(typeof e.location==`string`)t=e.location;else{let n=r(e.location);n&&typeof n.name==`string`&&(t=n.name)}if(!t)return null;let o=r(e.current),s=i(o?.temp)??i(e.currentTemp)??i(e.temperature)??i(e.temp),c=i(o?.feelsLike)??i(o?.feels_like)??i(o?.apparentTemperature)??i(e.feelsLike)??i(e.feels_like)??i(e.apparentTemperature),l=a(o?.condition)??a(e.condition),u=i(o?.humidity)??i(e.humidity),d=T(o?.wind??e.wind),f=i(o?.windSpeed)??i(o?.wind_speed)??i(e.windSpeed)??i(e.wind_speed)??d.speed,p=a(o?.windDirection)??a(o?.wind_direction)??a(e.windDirection)??a(e.wind_direction)??d.direction,m=r(e.units),h=a(m?.temperature)??a(o?.unit)??a(e.unit)??`F`,g=a(m?.speed)??a(e.windUnit)??a(e.wind_unit),_=n(e.hourly).map((e,t)=>({id:a(e.id)??String(t),time:a(e.time)??``,icon:a(e.icon)??a(e.condition)??`cloud.fill`,temp:i(e.tempC)??i(e.temp)??i(e.temperature),tempC:i(e.tempC)})),v=n([e.forecast,e.daily,e.days].find(Array.isArray)).map((e,t)=>({id:a(e.id)??String(t),day:a(e.day)??a(e.date),dayLabel:a(e.dayLabel)??a(e.date),icon:a(e.icon)??a(e.condition)??`cloud.fill`,low:i(e.low),high:i(e.high),lowC:i(e.lowC),highC:i(e.highC),precip:i(e.precip)??i(e.precipitation)??i(e.precipitationProbability),condition:a(e.condition)}));return{location:t,currentTemp:s,feelsLike:c,condition:l,humidity:u,windSpeed:f,windDirection:p,windUnit:g,unit:h,hourly:_.length>0?_:void 0,forecast:v.length>0?v:void 0}}function D(e){return e*9/5+32}function O(e){return(e-32)*5/9}function k(e,t,n){if(e===void 0)return null;let r=e;return t&&!n&&(r=O(e)),!t&&n&&(r=D(e)),`${Math.round(r)}`}function A(e,t,n){return e.tempC===void 0?e.temp===void 0?null:k(e.temp,t,n):k(e.tempC,!1,n)}function j(e,t,n){return e.lowC===void 0?k(e.low,t,n):k(e.lowC,!1,n)}function M(e,t,n){return e.highC===void 0?k(e.high,t,n):k(e.highC,!1,n)}var N=s();function P({icon:e,size:t=20}){let{icon:n,className:r}=w(e);return(0,N.jsx)(n,{width:t,height:t,className:r})}function F({useFahrenheit:e,onToggle:n}){let{t:r}=o(`chat`);return(0,N.jsxs)(`div`,{className:`flex overflow-hidden rounded-md border border-[var(--border-element)]`,children:[(0,N.jsx)(`button`,{type:`button`,onClick:()=>n(!0),className:t(`px-2 py-0.5 text-body-small-default transition-colors`,e?`bg-[var(--primary-base)] text-[var(--content-inset)]`:`bg-transparent text-[var(--content-quiet)]`),children:r(`weatherForecastDisplay.fahrenheit`)}),(0,N.jsx)(`button`,{type:`button`,onClick:()=>n(!1),className:t(`px-2 py-0.5 text-body-small-default transition-colors`,e?`bg-transparent text-[var(--content-quiet)]`:`bg-[var(--primary-base)] text-[var(--content-inset)]`),children:r(`weatherForecastDisplay.celsius`)})]})}function I({data:e,sourceIsFahrenheit:t,useFahrenheit:n,onToggle:r}){let{t:i}=o(`chat`),a=e.location,s=k(e.currentTemp,t,n),c=k(e.feelsLike,t,n),l=n?`F`:`C`,u=e.forecast?.[0],d=u?M(u,t,n):null,f=u?j(u,t,n):null,m=null;return e.windSpeed!==void 0&&(m=`${Math.round(e.windSpeed)} ${e.windUnit??`mph`}`,e.windDirection&&(m=`${e.windDirection} ${m}`)),(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`div`,{className:`flex items-start justify-between`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-tertiary)]`,children:a}),s!==null&&(0,N.jsxs)(`div`,{className:`mt-1 text-4xl font-light text-[var(--content-default)]`,children:[s,`°`,l]}),e.condition&&(0,N.jsx)(`div`,{className:`mt-0.5 text-body-small-default text-[var(--content-quiet)]`,children:e.condition})]}),(0,N.jsx)(F,{useFahrenheit:n,onToggle:r})]}),(0,N.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-3`,children:[c!==null&&(0,N.jsx)(`span`,{className:`text-body-small-default text-[var(--content-quiet)]`,children:i(`weatherForecastDisplay.feelsLike`,{temp:c})}),d!==null&&f!==null&&(0,N.jsx)(`span`,{className:`text-body-small-default text-[var(--content-quiet)]`,children:i(`weatherForecastDisplay.highLow`,{high:d,low:f})}),m&&(0,N.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full bg-[var(--tag-bg-neutral)] px-2 py-0.5 text-label-medium-default text-[var(--content-tertiary)]`,children:[(0,N.jsx)(p,{width:12,height:12}),m]}),e.humidity!==void 0&&(0,N.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full bg-[var(--tag-bg-neutral)] px-2 py-0.5 text-label-medium-default text-[var(--content-tertiary)]`,children:[(0,N.jsx)(_,{width:12,height:12}),e.humidity,`%`]})]})]})}function L({hourly:e,sourceIsFahrenheit:t,useFahrenheit:n}){let{t:r}=o(`chat`);return(0,N.jsx)(`div`,{className:`mt-3 border-t border-[var(--border-element)] pt-3`,children:(0,N.jsx)(`div`,{className:`flex gap-3 overflow-x-auto`,children:e.map((e,i)=>{let a=e.time.toLowerCase()===`now`,o=A(e,t,n);return(0,N.jsxs)(`div`,{className:`flex min-w-[3rem] shrink-0 flex-col items-center gap-1`,children:[(0,N.jsx)(`span`,{className:a?`text-body-small-emphasised text-[var(--content-default)]`:`text-label-medium-default text-[var(--content-quiet)]`,children:a?r(`weatherForecastDisplay.now`):e.time}),(0,N.jsx)(P,{icon:e.icon,size:18}),o!==null&&(0,N.jsxs)(`span`,{className:`text-body-small-default text-[var(--content-default)]`,children:[o,`°`]})]},e.id??i)})})})}function R({forecast:e,currentTemp:n,sourceIsFahrenheit:r,useFahrenheit:i}){let{globalMin:a,globalMax:o}=(0,b.useMemo)(()=>{let t=1/0,n=-1/0;for(let r of e){let e=r.lowC??r.low,i=r.highC??r.high;e!==void 0&&e<t&&(t=e),i!==void 0&&i>n&&(n=i)}return{globalMin:t===1/0?0:t,globalMax:n===-1/0?100:n}},[e]),s=o-a||1;return(0,N.jsx)(`div`,{className:`mt-3 border-t border-[var(--border-element)] pt-3`,children:(0,N.jsx)(`div`,{className:`flex flex-col gap-2`,children:e.map((e,c)=>{let l=e.dayLabel??e.day??`Day ${c+1}`,u=l.toLowerCase()===`today`,d=j(e,r,i),f=M(e,r,i),p=e.precip,m=e.lowC??e.low??a,h=e.highC??e.high??o,g=(m-a)/s*100,_=(h-a)/s*100,v=Math.max(_-g,2),y=null;if(u&&n!==void 0){let t=(e.lowC!==void 0||e.highC!==void 0)&&r?(n-32)*5/9:n;y=h===m?50:(Math.max(m,Math.min(h,t))-m)/(h-m)*100}return(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`span`,{className:t(`w-12 shrink-0 truncate text-body-small-default`,u?`text-[var(--content-default)]`:`text-[var(--content-quiet)]`),children:l}),(0,N.jsxs)(`div`,{className:`flex w-10 shrink-0 items-center justify-center gap-0.5`,children:[(0,N.jsx)(P,{icon:e.icon,size:16}),p!==void 0&&p>0&&(0,N.jsxs)(`span`,{className:`text-label-small-default text-blue-400`,children:[Math.round(p),`%`]})]}),(0,N.jsx)(`span`,{className:`w-7 shrink-0 text-right text-body-small-default text-[var(--content-faint)]`,children:d===null?`--`:`${d}°`}),(0,N.jsxs)(`div`,{className:`relative h-1.5 flex-1 overflow-hidden rounded-full bg-[var(--border-subtle)]`,children:[(0,N.jsx)(`div`,{className:`absolute top-0 h-full rounded-full bg-[var(--primary-base)]`,style:{left:`${g}%`,width:`${v}%`}}),y!==null&&(0,N.jsx)(`div`,{className:`absolute top-1/2 h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-[var(--aux-white)] bg-[var(--aux-white)] shadow-sm`,style:{left:`${g+y/100*v}%`}})]}),(0,N.jsx)(`span`,{className:`w-7 shrink-0 text-right text-body-small-default text-[var(--content-default)]`,children:f===null?`--`:`${f}°`})]},e.id??c)})})})}function z({templateData:e,fallback:t}){let n=(0,b.useMemo)(()=>E(e),[e]),r=n?.unit?.toUpperCase()===`F`||n?.unit?.toLowerCase()===`fahrenheit`,[i,a]=(0,b.useState)(null),o=i??r;return!n||n.currentTemp===void 0&&!n.forecast?.length?t??null:(0,N.jsxs)(`div`,{className:`mt-3`,children:[(0,N.jsx)(I,{data:n,sourceIsFahrenheit:r,useFahrenheit:o,onToggle:a}),n.hourly&&n.hourly.length>0&&(0,N.jsx)(L,{hourly:n.hourly,sourceIsFahrenheit:r,useFahrenheit:o}),n.forecast&&n.forecast.length>0&&(0,N.jsx)(R,{forecast:n.forecast,currentTemp:n.currentTemp,sourceIsFahrenheit:r,useFahrenheit:o})]})}export{z as WeatherForecastDisplay};
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{an as t,ho as n,in as r,on as i,rn as a}from"./app-CuJb51Ub.js";import{j as o}from"./vendor-CYmPHUS2.js";import{t as s,x as c}from"./react-B9IgSVeK.js";import{Ci as l,Si as u,V as d,_i as f,bi as p,c as m,ni as h,tt as g,vi as _,vn as v,xi as y}from"./icons-C0wyat6T.js";var b=e(c(),1),x={"sun.max.fill":{icon:d,className:`text-orange-500`},"cloud.sun.fill":{icon:_,className:`text-amber-400`},"moon.fill":{icon:v,className:`text-blue-400`},"cloud.moon.fill":{icon:y,className:`text-blue-400`},"cloud.fill":{icon:f,className:`text-stone-400`},"cloud.rain.fill":{icon:p,className:`text-blue-400`},snowflake:{icon:g,className:`text-blue-300`},"cloud.bolt.fill":{icon:u,className:`text-orange-500`},"cloud.fog.fill":{icon:l,className:`text-stone-400`}},S={sunny:{icon:d,className:`text-orange-500`},clear:{icon:d,className:`text-orange-500`},"partly cloudy":{icon:_,className:`text-amber-400`},"mostly sunny":{icon:_,className:`text-amber-400`},cloudy:{icon:f,className:`text-stone-400`},overcast:{icon:f,className:`text-stone-400`},rainy:{icon:p,className:`text-blue-400`},rain:{icon:p,className:`text-blue-400`},drizzle:{icon:p,className:`text-blue-400`},snow:{icon:g,className:`text-blue-300`},snowy:{icon:g,className:`text-blue-300`},thunderstorm:{icon:u,className:`text-orange-500`},thunder:{icon:u,className:`text-orange-500`},foggy:{icon:l,className:`text-stone-400`},fog:{icon:l,className:`text-stone-400`},mist:{icon:l,className:`text-stone-400`},hazy:{icon:l,className:`text-stone-400`},night:{icon:v,className:`text-blue-400`},"mainly clear":{icon:d,className:`text-orange-500`},"mostly cloudy":{icon:f,className:`text-stone-400`},breezy:{icon:m,className:`text-stone-400`},windy:{icon:m,className:`text-stone-400`},cool:{icon:f,className:`text-stone-400`},warm:{icon:d,className:`text-orange-500`},hot:{icon:d,className:`text-orange-500`},cold:{icon:g,className:`text-blue-300`},"cold snap":{icon:g,className:`text-blue-300`},"warm, mostly sunny":{icon:_,className:`text-amber-400`},"cooler, breezy":{icon:m,className:`text-stone-400`}},C={icon:f,className:`text-stone-400`};function w(e){let t=x[e];if(t)return t;let n=e.toLowerCase(),r=S[n];if(r)return r;for(let[e,t]of Object.entries(S))if(n.includes(e))return t;return C}function T(e){if(typeof e==`string`){let t=e.match(/^(\d+)\s*mph\s*(.*)/i);if(t)return{speed:Number(t[1]),direction:t[2]?.trim()||void 0}}return{}}function E(e){let n;if(typeof e.location==`string`)n=e.location;else{let r=t(e.location);r&&typeof r.name==`string`&&(n=r.name)}if(!n)return null;let o=t(e.current),s=r(o?.temp)??r(e.currentTemp)??r(e.temperature)??r(e.temp),c=r(o?.feelsLike)??r(o?.feels_like)??r(o?.apparentTemperature)??r(e.feelsLike)??r(e.feels_like)??r(e.apparentTemperature),l=i(o?.condition)??i(e.condition),u=r(o?.humidity)??r(e.humidity),d=T(o?.wind??e.wind),f=r(o?.windSpeed)??r(o?.wind_speed)??r(e.windSpeed)??r(e.wind_speed)??d.speed,p=i(o?.windDirection)??i(o?.wind_direction)??i(e.windDirection)??i(e.wind_direction)??d.direction,m=t(e.units),h=i(m?.temperature)??i(o?.unit)??i(e.unit)??`F`,g=i(m?.speed)??i(e.windUnit)??i(e.wind_unit),_=a(e.hourly).map((e,t)=>({id:i(e.id)??String(t),time:i(e.time)??``,icon:i(e.icon)??i(e.condition)??`cloud.fill`,temp:r(e.tempC)??r(e.temp)??r(e.temperature),tempC:r(e.tempC)})),v=a([e.forecast,e.daily,e.days].find(Array.isArray)).map((e,t)=>({id:i(e.id)??String(t),day:i(e.day)??i(e.date),dayLabel:i(e.dayLabel)??i(e.date),icon:i(e.icon)??i(e.condition)??`cloud.fill`,low:r(e.low),high:r(e.high),lowC:r(e.lowC),highC:r(e.highC),precip:r(e.precip)??r(e.precipitation)??r(e.precipitationProbability),condition:i(e.condition)}));return{location:n,currentTemp:s,feelsLike:c,condition:l,humidity:u,windSpeed:f,windDirection:p,windUnit:g,unit:h,hourly:_.length>0?_:void 0,forecast:v.length>0?v:void 0}}function D(e){return e*9/5+32}function O(e){return(e-32)*5/9}function k(e,t,n){if(e===void 0)return null;let r=e;return t&&!n&&(r=O(e)),!t&&n&&(r=D(e)),`${Math.round(r)}`}function A(e,t,n){return e.tempC===void 0?e.temp===void 0?null:k(e.temp,t,n):k(e.tempC,!1,n)}function j(e,t,n){return e.lowC===void 0?k(e.low,t,n):k(e.lowC,!1,n)}function M(e,t,n){return e.highC===void 0?k(e.high,t,n):k(e.highC,!1,n)}var N=s();function P({icon:e,size:t=20}){let{icon:n,className:r}=w(e);return(0,N.jsx)(n,{width:t,height:t,className:r})}function F({useFahrenheit:e,onToggle:t}){let{t:r}=o(`chat`);return(0,N.jsxs)(`div`,{className:`flex overflow-hidden rounded-md border border-[var(--border-element)]`,children:[(0,N.jsx)(`button`,{type:`button`,onClick:()=>t(!0),className:n(`px-2 py-0.5 text-body-small-default transition-colors`,e?`bg-[var(--primary-base)] text-[var(--content-inset)]`:`bg-transparent text-[var(--content-quiet)]`),children:r(`weatherForecastDisplay.fahrenheit`)}),(0,N.jsx)(`button`,{type:`button`,onClick:()=>t(!1),className:n(`px-2 py-0.5 text-body-small-default transition-colors`,e?`bg-transparent text-[var(--content-quiet)]`:`bg-[var(--primary-base)] text-[var(--content-inset)]`),children:r(`weatherForecastDisplay.celsius`)})]})}function I({data:e,sourceIsFahrenheit:t,useFahrenheit:n,onToggle:r}){let{t:i}=o(`chat`),a=e.location,s=k(e.currentTemp,t,n),c=k(e.feelsLike,t,n),l=n?`F`:`C`,u=e.forecast?.[0],d=u?M(u,t,n):null,f=u?j(u,t,n):null,p=null;return e.windSpeed!==void 0&&(p=`${Math.round(e.windSpeed)} ${e.windUnit??`mph`}`,e.windDirection&&(p=`${e.windDirection} ${p}`)),(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`div`,{className:`flex items-start justify-between`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-tertiary)]`,children:a}),s!==null&&(0,N.jsxs)(`div`,{className:`mt-1 text-4xl font-light text-[var(--content-default)]`,children:[s,`°`,l]}),e.condition&&(0,N.jsx)(`div`,{className:`mt-0.5 text-body-small-default text-[var(--content-quiet)]`,children:e.condition})]}),(0,N.jsx)(F,{useFahrenheit:n,onToggle:r})]}),(0,N.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-3`,children:[c!==null&&(0,N.jsx)(`span`,{className:`text-body-small-default text-[var(--content-quiet)]`,children:i(`weatherForecastDisplay.feelsLike`,{temp:c})}),d!==null&&f!==null&&(0,N.jsx)(`span`,{className:`text-body-small-default text-[var(--content-quiet)]`,children:i(`weatherForecastDisplay.highLow`,{high:d,low:f})}),p&&(0,N.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full bg-[var(--tag-bg-neutral)] px-2 py-0.5 text-label-medium-default text-[var(--content-tertiary)]`,children:[(0,N.jsx)(m,{width:12,height:12}),p]}),e.humidity!==void 0&&(0,N.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full bg-[var(--tag-bg-neutral)] px-2 py-0.5 text-label-medium-default text-[var(--content-tertiary)]`,children:[(0,N.jsx)(h,{width:12,height:12}),e.humidity,`%`]})]})]})}function L({hourly:e,sourceIsFahrenheit:t,useFahrenheit:n}){let{t:r}=o(`chat`);return(0,N.jsx)(`div`,{className:`mt-3 border-t border-[var(--border-element)] pt-3`,children:(0,N.jsx)(`div`,{className:`flex gap-3 overflow-x-auto`,children:e.map((e,i)=>{let a=e.time.toLowerCase()===`now`,o=A(e,t,n);return(0,N.jsxs)(`div`,{className:`flex min-w-[3rem] shrink-0 flex-col items-center gap-1`,children:[(0,N.jsx)(`span`,{className:a?`text-body-small-emphasised text-[var(--content-default)]`:`text-label-medium-default text-[var(--content-quiet)]`,children:a?r(`weatherForecastDisplay.now`):e.time}),(0,N.jsx)(P,{icon:e.icon,size:18}),o!==null&&(0,N.jsxs)(`span`,{className:`text-body-small-default text-[var(--content-default)]`,children:[o,`°`]})]},e.id??i)})})})}function R({forecast:e,currentTemp:t,sourceIsFahrenheit:r,useFahrenheit:i}){let{globalMin:a,globalMax:o}=(0,b.useMemo)(()=>{let t=1/0,n=-1/0;for(let r of e){let e=r.lowC??r.low,i=r.highC??r.high;e!==void 0&&e<t&&(t=e),i!==void 0&&i>n&&(n=i)}return{globalMin:t===1/0?0:t,globalMax:n===-1/0?100:n}},[e]),s=o-a||1;return(0,N.jsx)(`div`,{className:`mt-3 border-t border-[var(--border-element)] pt-3`,children:(0,N.jsx)(`div`,{className:`flex flex-col gap-2`,children:e.map((e,c)=>{let l=e.dayLabel??e.day??`Day ${c+1}`,u=l.toLowerCase()===`today`,d=j(e,r,i),f=M(e,r,i),p=e.precip,m=e.lowC??e.low??a,h=e.highC??e.high??o,g=(m-a)/s*100,_=(h-a)/s*100,v=Math.max(_-g,2),y=null;if(u&&t!==void 0){let n=(e.lowC!==void 0||e.highC!==void 0)&&r?(t-32)*5/9:t;y=h===m?50:(Math.max(m,Math.min(h,n))-m)/(h-m)*100}return(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(`span`,{className:n(`w-12 shrink-0 truncate text-body-small-default`,u?`text-[var(--content-default)]`:`text-[var(--content-quiet)]`),children:l}),(0,N.jsxs)(`div`,{className:`flex w-10 shrink-0 items-center justify-center gap-0.5`,children:[(0,N.jsx)(P,{icon:e.icon,size:16}),p!==void 0&&p>0&&(0,N.jsxs)(`span`,{className:`text-label-small-default text-blue-400`,children:[Math.round(p),`%`]})]}),(0,N.jsx)(`span`,{className:`w-7 shrink-0 text-right text-body-small-default text-[var(--content-faint)]`,children:d===null?`--`:`${d}°`}),(0,N.jsxs)(`div`,{className:`relative h-1.5 flex-1 overflow-hidden rounded-full bg-[var(--border-subtle)]`,children:[(0,N.jsx)(`div`,{className:`absolute top-0 h-full rounded-full bg-[var(--primary-base)]`,style:{left:`${g}%`,width:`${v}%`}}),y!==null&&(0,N.jsx)(`div`,{className:`absolute top-1/2 h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-[var(--aux-white)] bg-[var(--aux-white)] shadow-sm`,style:{left:`${g+y/100*v}%`}})]}),(0,N.jsx)(`span`,{className:`w-7 shrink-0 text-right text-body-small-default text-[var(--content-default)]`,children:f===null?`--`:`${f}°`})]},e.id??c)})})})}function z({templateData:e,fallback:t}){let n=(0,b.useMemo)(()=>E(e),[e]),r=n?.unit?.toUpperCase()===`F`||n?.unit?.toLowerCase()===`fahrenheit`,[i,a]=(0,b.useState)(null),o=i??r;return!n||n.currentTemp===void 0&&!n.forecast?.length?t??null:(0,N.jsxs)(`div`,{className:`mt-3`,children:[(0,N.jsx)(I,{data:n,sourceIsFahrenheit:r,useFahrenheit:o,onToggle:a}),n.hourly&&n.hourly.length>0&&(0,N.jsx)(L,{hourly:n.hourly,sourceIsFahrenheit:r,useFahrenheit:o}),n.forecast&&n.forecast.length>0&&(0,N.jsx)(R,{forecast:n.forecast,currentTemp:n.currentTemp,sourceIsFahrenheit:r,useFahrenheit:o})]})}export{z as WeatherForecastDisplay};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e}from"./vendor-
|
|
1
|
+
import{D as e}from"./vendor-CYmPHUS2.js";var t=class extends e{constructor(){super(),this._lastWindow=null}async open(e){this._lastWindow=window.open(e.url,e.windowName||`_blank`)}async close(){return new Promise((e,t)=>{this._lastWindow==null?t(`No active window to close!`):(this._lastWindow.close(),this._lastWindow=null,e())})}};new t;export{t as BrowserWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e}from"./vendor-
|
|
1
|
+
import{D as e}from"./vendor-CYmPHUS2.js";var t=class extends e{constructor(){super(...arguments),this.pending=[],this.deliveredNotifications=[],this.hasNotificationSupport=()=>{if(!(`Notification`in window)||!Notification.requestPermission)return!1;if(Notification.permission!==`granted`)try{new Notification(``)}catch(e){if(e instanceof Error&&e.name===`TypeError`)return!1}return!0}}async getDeliveredNotifications(){let e=[];for(let t of this.deliveredNotifications){let n={title:t.title,id:parseInt(t.tag),body:t.body};e.push(n)}return{notifications:e}}async removeDeliveredNotifications(e){for(let t of e.notifications){let e=this.deliveredNotifications.find(e=>e.tag===String(t.id));e?.close(),this.deliveredNotifications=this.deliveredNotifications.filter(()=>!e)}}async removeAllDeliveredNotifications(){for(let e of this.deliveredNotifications)e.close();this.deliveredNotifications=[]}async createChannel(){throw this.unimplemented(`Not implemented on web.`)}async deleteChannel(){throw this.unimplemented(`Not implemented on web.`)}async listChannels(){throw this.unimplemented(`Not implemented on web.`)}async schedule(e){if(!this.hasNotificationSupport())throw this.unavailable(`Notifications not supported in this browser.`);for(let t of e.notifications)this.sendNotification(t);return{notifications:e.notifications.map(e=>({id:e.id}))}}async getPending(){return{notifications:this.pending}}async registerActionTypes(){throw this.unimplemented(`Not implemented on web.`)}async cancel(e){this.pending=this.pending.filter(t=>!e.notifications.find(e=>e.id===t.id))}async areEnabled(){let{display:e}=await this.checkPermissions();return{value:e===`granted`}}async changeExactNotificationSetting(){throw this.unimplemented(`Not implemented on web.`)}async checkExactNotificationSetting(){throw this.unimplemented(`Not implemented on web.`)}async requestPermissions(){if(!this.hasNotificationSupport())throw this.unavailable(`Notifications not supported in this browser.`);return{display:this.transformNotificationPermission(await Notification.requestPermission())}}async checkPermissions(){if(!this.hasNotificationSupport())throw this.unavailable(`Notifications not supported in this browser.`);return{display:this.transformNotificationPermission(Notification.permission)}}transformNotificationPermission(e){switch(e){case`granted`:return`granted`;case`denied`:return`denied`;default:return`prompt`}}sendPending(){let e=[],t=new Date().getTime();for(let n of this.pending)n.schedule?.at&&n.schedule.at.getTime()<=t&&(this.buildNotification(n),e.push(n));this.pending=this.pending.filter(t=>!e.find(e=>e===t))}sendNotification(e){if(e.schedule?.at){let t=e.schedule.at.getTime()-new Date().getTime();this.pending.push(e),setTimeout(()=>{this.sendPending()},t);return}this.buildNotification(e)}buildNotification(e){let t=new Notification(e.title,{body:e.body,tag:String(e.id)});return t.addEventListener(`click`,this.onClick.bind(this,e),!1),t.addEventListener(`show`,this.onShow.bind(this,e),!1),t.addEventListener(`close`,()=>{this.deliveredNotifications=this.deliveredNotifications.filter(()=>!this)},!1),this.deliveredNotifications.push(t),t}onClick(e){let t={actionId:`tap`,notification:e};this.notifyListeners(`localNotificationActionPerformed`,t)}onShow(e){this.notifyListeners(`localNotificationReceived`,e)}};export{t as LocalNotificationsWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e}from"./vendor-
|
|
1
|
+
import{D as e}from"./vendor-CYmPHUS2.js";var t=class extends e{async canShare(){return typeof navigator>`u`||!navigator.share?{value:!1}:{value:!0}}async share(e){if(typeof navigator>`u`||!navigator.share)throw this.unavailable(`Share API not available in this browser`);return await navigator.share({title:e.title,text:e.text,url:e.url}),{}}};export{t as ShareWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,O as t}from"./vendor-
|
|
1
|
+
import{D as e,O as t}from"./vendor-CYmPHUS2.js";import{n}from"./definitions-COMG0KSg.js";function r(e){let t=e.split(`/`).filter(e=>e!==`.`),n=[];return t.forEach(e=>{e===`..`&&n.length>0&&n[n.length-1]!==`..`?n.pop():n.push(e)}),n.join(`/`)}function i(e,t){e=r(e),t=r(t);let n=e.split(`/`),i=t.split(`/`);return e!==t&&n.every((e,t)=>e===i[t])}var a=class r extends e{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME=`Disc`,this._writeCmds=[`add`,`put`,`delete`],this.downloadFile=async e=>{let n=t(e,e.webFetchExtra),r=await fetch(e.url,n),i;if(!e.progress)i=await r.blob();else if(!r?.body)i=new Blob;else{let t=r.body.getReader(),n=0,a=[],o=r.headers.get(`content-type`),s=parseInt(r.headers.get(`content-length`)||`0`,10);for(;;){let{done:r,value:i}=await t.read();if(r)break;a.push(i),n+=i?.length||0;let o={url:e.url,bytes:n,contentLength:s};this.notifyListeners(`progress`,o)}let c=new Uint8Array(n),l=0;for(let e of a)e!==void 0&&(c.set(e,l),l+=e.length);i=new Blob([c.buffer],{type:o||void 0})}return{path:(await this.writeFile({path:e.path,directory:e.directory??void 0,recursive:e.recursive??!1,data:i})).uri,blob:i}}}readFileInChunks(e,t){throw this.unavailable(`Method not implemented.`)}async initDb(){if(this._db!==void 0)return this._db;if(!(`indexedDB`in window))throw this.unavailable(`This browser doesn't support IndexedDB`);return new Promise((e,t)=>{let n=indexedDB.open(this.DB_NAME,this.DB_VERSION);n.onupgradeneeded=r.doUpgrade,n.onsuccess=()=>{this._db=n.result,e(n.result)},n.onerror=()=>t(n.error),n.onblocked=()=>{console.warn(`db blocked`)}})}static doUpgrade(e){let t=e.target.result;switch(e.oldVersion){default:t.objectStoreNames.contains(`FileStorage`)&&t.deleteObjectStore(`FileStorage`),t.createObjectStore(`FileStorage`,{keyPath:`path`}).createIndex(`by_folder`,`folder`)}}async dbRequest(e,t){let n=this._writeCmds.indexOf(e)===-1?`readonly`:`readwrite`;return this.initDb().then(r=>new Promise((i,a)=>{let o=r.transaction([`FileStorage`],n).objectStore(`FileStorage`)[e](...t);o.onsuccess=()=>i(o.result),o.onerror=()=>a(o.error)}))}async dbIndexRequest(e,t,n){let r=this._writeCmds.indexOf(t)===-1?`readonly`:`readwrite`;return this.initDb().then(i=>new Promise((a,o)=>{let s=i.transaction([`FileStorage`],r).objectStore(`FileStorage`).index(e)[t](...n);s.onsuccess=()=>a(s.result),s.onerror=()=>o(s.error)}))}getPath(e,t){let n=t===void 0?``:t.replace(/^[/]+|[/]+$/g,``),r=``;return e!==void 0&&(r+=`/`+e),t!==``&&(r+=`/`+n),r}async clear(){(await this.initDb()).transaction([`FileStorage`],`readwrite`).objectStore(`FileStorage`).clear()}async readFile(e){let t=this.getPath(e.directory,e.path),n=await this.dbRequest(`get`,[t]);if(n===void 0)throw Error(`File does not exist.`);return{data:n.content?n.content:``}}async writeFile(e){let t=this.getPath(e.directory,e.path),n=e.data,r=e.encoding,i=e.recursive,a=await this.dbRequest(`get`,[t]);if(a&&a.type===`directory`)throw Error(`The supplied path is a directory.`);let o=t.substr(0,t.lastIndexOf(`/`));if(await this.dbRequest(`get`,[o])===void 0){let t=o.indexOf(`/`,1);if(t!==-1){let n=o.substr(t);await this.mkdir({path:n,directory:e.directory,recursive:i})}}if(!r&&!(n instanceof Blob)&&(n=n.indexOf(`,`)>=0?n.split(`,`)[1]:n,!this.isBase64String(n)))throw Error(`The supplied data is not valid base64 content.`);let s=Date.now(),c={path:t,folder:o,type:`file`,size:n instanceof Blob?n.size:n.length,ctime:s,mtime:s,content:n};return await this.dbRequest(`put`,[c]),{uri:c.path}}async appendFile(e){let t=this.getPath(e.directory,e.path),n=e.data,r=e.encoding,i=t.substr(0,t.lastIndexOf(`/`)),a=Date.now(),o=a,s=await this.dbRequest(`get`,[t]);if(s&&s.type===`directory`)throw Error(`The supplied path is a directory.`);if(await this.dbRequest(`get`,[i])===void 0){let t=i.indexOf(`/`,1);if(t!==-1){let n=i.substr(t);await this.mkdir({path:n,directory:e.directory,recursive:!0})}}if(!r&&!this.isBase64String(n))throw Error(`The supplied data is not valid base64 content.`);if(s!==void 0){if(s.content instanceof Blob)throw Error(`The occupied entry contains a Blob object which cannot be appended to.`);n=s.content!==void 0&&!r?btoa(atob(s.content)+atob(n)):s.content+n,o=s.ctime}let c={path:t,folder:i,type:`file`,size:n.length,ctime:o,mtime:a,content:n};await this.dbRequest(`put`,[c])}async deleteFile(e){let t=this.getPath(e.directory,e.path);if(await this.dbRequest(`get`,[t])===void 0)throw Error(`File does not exist.`);if((await this.dbIndexRequest(`by_folder`,`getAllKeys`,[IDBKeyRange.only(t)])).length!==0)throw Error(`Folder is not empty.`);await this.dbRequest(`delete`,[t])}async mkdir(e){let t=this.getPath(e.directory,e.path),n=e.recursive,r=t.substr(0,t.lastIndexOf(`/`)),i=(t.match(/\//g)||[]).length,a=await this.dbRequest(`get`,[r]),o=await this.dbRequest(`get`,[t]);if(i===1)throw Error(`Cannot create Root directory`);if(o!==void 0)throw Error(`Current directory does already exist.`);if(!n&&i!==2&&a===void 0)throw Error(`Parent directory must exist`);if(n&&i!==2&&a===void 0){let t=r.substr(r.indexOf(`/`,1));await this.mkdir({path:t,directory:e.directory,recursive:n})}let s=Date.now(),c={path:t,folder:r,type:`directory`,size:0,ctime:s,mtime:s};await this.dbRequest(`put`,[c])}async rmdir(e){let{path:t,directory:n,recursive:r}=e,i=this.getPath(n,t),a=await this.dbRequest(`get`,[i]);if(a===void 0)throw Error(`Folder does not exist.`);if(a.type!==`directory`)throw Error(`Requested path is not a directory`);let o=await this.readdir({path:t,directory:n});if(o.files.length!==0&&!r)throw Error(`Folder is not empty`);for(let e of o.files){let i=`${t}/${e.name}`;(await this.stat({path:i,directory:n})).type===`file`?await this.deleteFile({path:i,directory:n}):await this.rmdir({path:i,directory:n,recursive:r})}await this.dbRequest(`delete`,[i])}async readdir(e){let t=this.getPath(e.directory,e.path),n=await this.dbRequest(`get`,[t]);if(e.path!==``&&n===void 0)throw Error(`Folder does not exist.`);let r=await this.dbIndexRequest(`by_folder`,`getAllKeys`,[IDBKeyRange.only(t)]);return{files:await Promise.all(r.map(async e=>{let n=await this.dbRequest(`get`,[e]);return n===void 0&&(n=await this.dbRequest(`get`,[e+`/`])),{name:e.substring(t.length+1),type:n.type,size:n.size,ctime:n.ctime,mtime:n.mtime,uri:n.path}}))}}async getUri(e){let t=this.getPath(e.directory,e.path),n=await this.dbRequest(`get`,[t]);return n===void 0&&(n=await this.dbRequest(`get`,[t+`/`])),{uri:n?.path||t}}async stat(e){let t=this.getPath(e.directory,e.path),n=await this.dbRequest(`get`,[t]);if(n===void 0&&(n=await this.dbRequest(`get`,[t+`/`])),n===void 0)throw Error(`Entry does not exist.`);return{name:n.path.substring(t.length+1),type:n.type,size:n.size,ctime:n.ctime,mtime:n.mtime,uri:n.path}}async rename(e){await this._copy(e,!0)}async copy(e){return this._copy(e,!1)}async requestPermissions(){return{publicStorage:`granted`}}async checkPermissions(){return{publicStorage:`granted`}}async _copy(e,t=!1){let{toDirectory:r}=e,{to:a,from:o,directory:s}=e;if(!a||!o)throw Error(`Both to and from must be provided`);r||=s;let c=this.getPath(s,o),l=this.getPath(r,a);if(c===l)return{uri:l};if(i(c,l))throw Error(`To path cannot contain the from path`);let u;try{u=await this.stat({path:a,directory:r})}catch{let e=a.split(`/`);e.pop();let t=e.join(`/`);if(e.length>0&&(await this.stat({path:t,directory:r})).type!==`directory`)throw Error(`Parent directory of the to path is a file`)}if(u&&u.type===`directory`)throw Error(`Cannot overwrite a directory with a file`);let d=await this.stat({path:o,directory:s}),f=async(e,t,n)=>{let i=this.getPath(r,e),a=await this.dbRequest(`get`,[i]);a.ctime=t,a.mtime=n,await this.dbRequest(`put`,[a])},p=d.ctime?d.ctime:Date.now();switch(d.type){case`file`:{let e=await this.readFile({path:o,directory:s});t&&await this.deleteFile({path:o,directory:s});let i;!(e.data instanceof Blob)&&!this.isBase64String(e.data)&&(i=n.UTF8);let c=await this.writeFile({path:a,directory:r,data:e.data,encoding:i});return t&&await f(a,p,d.mtime),c}case`directory`:{if(u)throw Error(`Cannot move a directory over an existing object`);try{await this.mkdir({path:a,directory:r,recursive:!1}),t&&await f(a,p,d.mtime)}catch{}let e=(await this.readdir({path:o,directory:s})).files;for(let n of e)await this._copy({from:`${o}/${n.name}`,to:`${a}/${n.name}`,directory:s,toDirectory:r},t);t&&await this.rmdir({path:o,directory:s})}}return{uri:l}}isBase64String(e){try{return btoa(atob(e))==e}catch{return!1}}};a._debug=!0;export{a as FilesystemWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e}from"./vendor-
|
|
1
|
+
import{D as e}from"./vendor-CYmPHUS2.js";var t=class extends e{async getSafeAreaInsets(){return{insets:{top:0,left:0,right:0,bottom:0}}}async getStatusBarHeight(){return{statusBarHeight:0}}setImmersiveNavigationBar(){throw this.unimplemented(`Method not supported on Web.`)}unsetImmersiveNavigationBar(){throw this.unimplemented(`Method not supported on Web.`)}};export{t as SafeAreaWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e}from"./vendor-
|
|
1
|
+
import{D as e}from"./vendor-CYmPHUS2.js";var t=class extends e{async start(e){return new Promise(async(t,n)=>{await navigator.mediaDevices.getUserMedia({audio:!e.disableAudio,video:!0}).then(e=>{e.getTracks().forEach(e=>e.stop())}).catch(e=>{n(e)});let r=document.getElementById(`video`),i=document.getElementById(e.parent);if(r)n({message:`camera already started`});else{let r=document.createElement(`video`);r.id=`video`,r.setAttribute(`class`,e.className||``),e.position!==`rear`&&r.setAttribute(`style`,`-webkit-transform: scaleX(-1); transform: scaleX(-1);`);let a=navigator.userAgent.toLowerCase();if(a.includes(`safari`)&&!a.includes(`chrome`)&&(r.setAttribute(`autoplay`,`true`),r.setAttribute(`muted`,`true`),r.setAttribute(`playsinline`,`true`)),i.appendChild(r),navigator.mediaDevices?.getUserMedia){let i={video:{width:{ideal:e.width},height:{ideal:e.height}}};e.position===`rear`?(i.video.facingMode=`environment`,this.isBackCamera=!0):this.isBackCamera=!1,navigator.mediaDevices.getUserMedia(i).then(function(e){r.srcObject=e,r.play(),t()},e=>{n(e)})}}})}async startRecordVideo(){throw this.unimplemented(`Not implemented on web.`)}async stopRecordVideo(){throw this.unimplemented(`Not implemented on web.`)}async stop(){let e=document.getElementById(`video`);if(e){e.pause();let t=e.srcObject.getTracks();for(let e of t)e.stop();e.remove()}}async capture(e){return new Promise(t=>{let n=document.getElementById(`video`),r=document.createElement(`canvas`),i=r.getContext(`2d`);r.width=n.videoWidth,r.height=n.videoHeight,this.isBackCamera||(i.translate(n.videoWidth,0),i.scale(-1,1)),i.drawImage(n,0,0,n.videoWidth,n.videoHeight);let a;a=e.quality==null?r.toDataURL(`image/png`).replace(`data:image/png;base64,`,``):r.toDataURL(`image/jpeg`,e.quality/100).replace(`data:image/jpeg;base64,`,``),t({value:a})})}async captureSample(e){return this.capture(e)}async getSupportedFlashModes(){throw Error(`getSupportedFlashModes not supported under the web platform`)}async setFlashMode(e){throw Error(`setFlashMode not supported under the web platform`)}async flip(){throw Error(`flip not supported under the web platform`)}async setOpacity(e){let t=document.getElementById(`video`);t&&e.opacity&&t.style.setProperty(`opacity`,e.opacity.toString())}async isCameraStarted(){throw this.unimplemented(`Not implemented on web.`)}};export{t as CameraPreviewWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e}from"./vendor-
|
|
1
|
+
import{D as e}from"./vendor-CYmPHUS2.js";var t=class extends e{constructor(){super(),this.handleVisibilityChange=()=>{let e={isActive:document.hidden!==!0};this.notifyListeners(`appStateChange`,e),document.hidden?this.notifyListeners(`pause`,null):this.notifyListeners(`resume`,null)},document.addEventListener(`visibilitychange`,this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented(`Not implemented on web.`)}async getInfo(){throw this.unimplemented(`Not implemented on web.`)}async getLaunchUrl(){return{url:``}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented(`Not implemented on web.`)}async toggleBackButtonHandler(){throw this.unimplemented(`Not implemented on web.`)}async getAppLanguage(){return{value:navigator.language.split(`-`)[0].toLowerCase()}}};export{t as AppWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e}from"./vendor-
|
|
1
|
+
import{D as e}from"./vendor-CYmPHUS2.js";function t(){let e=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,t=`unknown`,n=e?e.type||e.effectiveType:null;if(n&&typeof n==`string`)switch(n){case`bluetooth`:case`cellular`:t=`cellular`;break;case`none`:t=`none`;break;case`ethernet`:case`wifi`:case`wimax`:t=`wifi`;break;case`other`:case`unknown`:t=`unknown`;break;case`slow-2g`:case`2g`:case`3g`:t=`cellular`;break;case`4g`:t=`wifi`;break;default:break}return t}var n=class extends e{constructor(){super(),this.handleOnline=()=>{let e={connected:!0,connectionType:t()};this.notifyListeners(`networkStatusChange`,e)},this.handleOffline=()=>{this.notifyListeners(`networkStatusChange`,{connected:!1,connectionType:`none`})},typeof window<`u`&&(window.addEventListener(`online`,this.handleOnline),window.addEventListener(`offline`,this.handleOffline))}async getStatus(){if(!window.navigator)throw this.unavailable(`Browser does not support the Network Information API`);let e=window.navigator.onLine,n=t();return{connected:e,connectionType:e?n:`none`}}};new n;export{n as NetworkWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e}from"./vendor-
|
|
1
|
+
import{D as e}from"./vendor-CYmPHUS2.js";import{n as t,t as n}from"./definitions-DaNVCwWR.js";var r=class extends e{constructor(){super(...arguments),this.selectionStarted=!1}async impact(e){let t=this.patternForImpact(e?.style);this.vibrateWithPattern(t)}async notification(e){let t=this.patternForNotification(e?.type);this.vibrateWithPattern(t)}async vibrate(e){let t=e?.duration||300;this.vibrateWithPattern([t])}async selectionStart(){this.selectionStarted=!0}async selectionChanged(){this.selectionStarted&&this.vibrateWithPattern([70])}async selectionEnd(){this.selectionStarted=!1}patternForImpact(e=n.Heavy){return e===n.Medium?[43]:e===n.Light?[20]:[61]}patternForNotification(e=t.Success){return e===t.Warning?[30,40,30,50,60]:e===t.Error?[27,45,50]:[35,65,21]}vibrateWithPattern(e){if(navigator.vibrate)navigator.vibrate(e);else throw this.unavailable(`Browser does not support the vibrate API`)}};export{r as HapticsWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Cb as e,Cx as t,bi as n}from"./app-CuJb51Ub.js";import{j as r}from"./vendor-CYmPHUS2.js";import{f as i,t as a}from"./react-B9IgSVeK.js";import{t as o}from"./auth-welcome-screen-OOkWXm3h.js";var s=a();function c(){let{t:a}=r(`onboarding`),c=i();return(0,s.jsx)(o,{secondary:{label:a(`welcome.continueWithoutAccount`),onSelect:()=>{e()?c(t.selectAssistant,n):c(t.onboarding.hosting,n)}}})}export{c as WelcomeScreen};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Bn as t,Hn as n,JS as r,RS as i,Un as a,Yn as o,al as s,ol as c,qn as l,sl as u,yi as d}from"./app-CuJb51Ub.js";import{_ as f,f as p,g as m,j as h}from"./vendor-CYmPHUS2.js";import{t as g,x as _}from"./react-B9IgSVeK.js";import{Aa as v,D as y,Gi as b,Ha as x,Ki as S,o as C,y as w,zi as T}from"./icons-C0wyat6T.js";import{i as E,r as D,t as O}from"./metric-card-BncToo74.js";import{t as k}from"./detail-panel-stop-button-OKauZTzu.js";import{t as A}from"./status-badge-pill-DOZpKLHj.js";var j=e(_(),1),M=g();function N({title:e,body:t,emptyText:n}){return(0,M.jsxs)(`div`,{className:`mb-5`,children:[(0,M.jsx)(i,{variant:`body-medium-default`,as:`h3`,className:`mb-2 text-[var(--content-emphasised)]`,children:e}),t?(0,M.jsx)(i,{variant:`body-medium-lighter`,as:`p`,className:`whitespace-pre-wrap break-words leading-relaxed text-[var(--content-default)]`,children:t}):(0,M.jsx)(i,{variant:`body-medium-lighter`,as:`p`,className:`text-[var(--content-tertiary)]`,children:n})]})}function P({leaf:e}){let{t}=h(`chat`),n=e.status===`running`?t(`workflowLeafDetail.running`):t(`workflowLeafDetail.noResultSummary`);return(0,M.jsxs)(`div`,{children:[(0,M.jsxs)(`div`,{className:`mb-5 grid grid-cols-2 gap-3`,children:[(0,M.jsx)(O,{icon:(0,M.jsx)(x,{className:`h-4 w-4 shrink-0`,style:{color:`var(--content-secondary)`}}),target:e.inputTokens??0,format:e=>D(Math.round(e)),label:t(`workflowLeafDetail.input`)}),(0,M.jsx)(O,{icon:(0,M.jsx)(E,{className:`h-4 w-4 shrink-0`,style:{color:`var(--content-secondary)`}}),target:e.outputTokens??0,format:e=>D(Math.round(e)),label:t(`workflowLeafDetail.output`)})]}),(0,M.jsx)(N,{title:t(`workflowLeafDetail.prompt`),body:e.promptSummary,emptyText:t(`workflowLeafDetail.noPromptSummary`)}),(0,M.jsx)(N,{title:t(`workflowLeafDetail.result`),body:e.resultSummary,emptyText:n})]})}function F({status:e}){return(0,M.jsx)(A,{color:c(e),label:u(e)})}function I(e){switch(e){case`completed`:return`var(--system-positive-strong)`;case`failed`:return`var(--system-negative-strong)`;case`cancelled`:return`var(--content-secondary)`;default:return`var(--primary-base)`}}function L(e){switch(e){case`completed`:return`Completed`;case`failed`:return`Failed`;case`cancelled`:return`Cancelled`;default:return`Running`}}function R({status:e}){return(0,M.jsx)(A,{color:I(e),label:L(e)})}function z({status:e}){let{t:n}=h(`chat`),r=p(),i=`h-3.5 w-3.5 shrink-0`,a;return a=e===`running`?(0,M.jsx)(t,{className:`shrink-0`,dotSize:4,gap:2}):e===`completed`?(0,M.jsx)(T,{className:i,style:{color:`var(--system-positive-strong)`}}):e===`failed`?(0,M.jsx)(y,{className:i,style:{color:`var(--system-negative-strong)`}}):(0,M.jsx)(v,{className:i,style:{color:`var(--content-secondary)`},role:`img`,"aria-label":n(`workflowSubagentRow.cancelledAria`)}),(0,M.jsx)(f,{mode:`wait`,initial:!1,children:(0,M.jsx)(m.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:r?{duration:0}:{duration:.15,ease:[.16,1,.3,1]},className:`flex shrink-0 items-center`,children:a},e)})}function B({runId:e,leaf:t,components:r,onSelect:o}){let{t:s}=h(`chat`),c=t.label??`Subagent ${t.seq}`,l=t.promptSummary,u=n(`${e}:${t.seq}`);return(0,M.jsx)(`button`,{type:`button`,onClick:o,"aria-label":s(`workflowSubagentRow.openDetailsAria`,{title:c}),className:`flex w-full cursor-pointer items-center justify-between gap-2 rounded-[6px] px-2 py-1.5 text-left transition-colors hover:bg-[var(--surface-overlay)]`,children:(0,M.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,M.jsx)(z,{status:t.status}),r?(0,M.jsx)(a,{components:r,bodyShapeId:u.bodyShape,eyeStyleId:u.eyeStyle,colorId:u.color,size:16}):(0,M.jsx)(`div`,{style:{width:16,height:16,flexShrink:0},"aria-hidden":!0}),(0,M.jsx)(i,{variant:`body-medium-default`,title:c,className:`max-w-[60%] shrink-0 truncate text-[var(--content-default)]`,children:c}),l&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 text-[var(--content-tertiary)] opacity-10`,children:`|`}),(0,M.jsx)(i,{variant:`body-medium-lighter`,title:l,className:`min-w-0 truncate text-[var(--content-tertiary)]`,children:l})]})]})})}function V({entry:e,onClose:t,onStop:c,onRequestJournal:u}){let{t:f}=h(`chat`),g=s(e.status),_=p(),v=e.label??e.runId,y=e.agentsSpawned||e.leaves.size,T=d(),A=[...e.leaves.values()].sort((e,t)=>e.seq-t.seq),[N,I]=(0,j.useState)(null),[L,z]=(0,j.useState)(e.runId);L!==e.runId&&(z(e.runId),I(null));let V=N==null?void 0:e.leaves.get(N),H=V?n(`${e.runId}:${V.seq}`):void 0,U=(0,j.useCallback)(()=>I(null),[]),W=V?V.label??`Subagent ${V.seq}`:``,G=V?W:v,K=g?`live`:`final`;return(0,j.useEffect)(()=>{u?.(e.runId)},[e.runId,K,u]),(0,M.jsx)(l,{headerAbove:V&&(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-[var(--border-hover)] px-5 py-3`,children:[(0,M.jsx)(`button`,{type:`button`,onClick:U,title:v,className:`min-w-0 shrink cursor-pointer truncate text-left text-[var(--content-default)] hover:underline`,children:(0,M.jsx)(i,{variant:`body-small-default`,as:`span`,children:v})}),(0,M.jsx)(b,{className:`h-2.5 w-2.5 shrink-0 text-[var(--content-tertiary)]`,"aria-hidden":!0}),(0,M.jsx)(i,{variant:`body-small-default`,as:`span`,title:W,className:`min-w-0 shrink truncate text-[var(--content-secondary)]`,children:W})]}),icon:(0,M.jsxs)(M.Fragment,{children:[V&&(0,M.jsx)(r,{variant:`outlined`,iconOnly:(0,M.jsx)(S,{}),onClick:U,"aria-label":f(`workflowDetailPanel.backToSubagentsAria`),tooltip:f(`workflowDetailPanel.back`),className:`shrink-0`}),V?T&&H?(0,M.jsx)(a,{components:T,bodyShapeId:H.bodyShape,eyeStyleId:H.eyeStyle,colorId:H.color,size:32}):(0,M.jsx)(`div`,{style:{width:32,height:32,flexShrink:0},"aria-hidden":!0}):(0,M.jsx)(C,{className:`h-5 w-5 shrink-0 text-[var(--content-secondary)]`,"aria-hidden":!0})]}),title:G,headerTrailing:V?(0,M.jsx)(R,{status:V.status}):(0,M.jsx)(F,{status:e.status}),headerActions:g&&c?(0,M.jsx)(k,{onStop:()=>c(e.runId),ariaLabel:f(`workflowDetailPanel.stopWorkflow`)}):void 0,closeLabel:f(`workflowDetailPanel.closeDetail`),onClose:t,children:(0,M.jsx)(m.div,{initial:{opacity:0},animate:{opacity:1},transition:_?{duration:0}:{duration:.18,ease:[.16,1,.3,1]},children:V?(0,M.jsx)(P,{leaf:V}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`div`,{className:`mb-5 grid grid-cols-3 gap-3`,children:[(0,M.jsx)(O,{icon:(0,M.jsx)(x,{className:`h-4 w-4 shrink-0`,style:{color:`var(--content-secondary)`}}),target:e.inputTokens,format:e=>D(Math.round(e)),label:f(`workflowDetailPanel.input`)}),(0,M.jsx)(O,{icon:(0,M.jsx)(E,{className:`h-4 w-4 shrink-0`,style:{color:`var(--content-secondary)`}}),target:e.outputTokens,format:e=>D(Math.round(e)),label:f(`workflowDetailPanel.output`)}),(0,M.jsx)(O,{icon:(0,M.jsx)(w,{className:`h-4 w-4 shrink-0`,style:{color:`var(--content-secondary)`}}),target:y,format:e=>D(Math.round(e)),label:f(`workflowDetailPanel.agents`)})]}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(i,{variant:`body-medium-default`,as:`h3`,className:`mb-4 text-[var(--content-emphasised)]`,children:f(`workflowDetailPanel.subagents`)}),A.length===0?(0,M.jsx)(o,{children:f(`workflowDetailPanel.noSubagentsYet`)}):(0,M.jsx)(`div`,{className:`flex flex-col gap-1`,children:A.map(t=>(0,M.jsx)(B,{runId:e.runId,leaf:t,components:T,onSelect:()=>I(t.seq)},t.seq))})]})]})},V?String(V.seq):`list`)})}export{V as WorkflowDetailPanel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={heading:`文件`,newFile:`新建文件`,newFolder:`新建文件夹`,delete:`删除`,rename:`重命名`,renaming:`正在重命名…`,create:`创建`,creating:`正在创建…`,creatingHeading:`新建`,createTriggerAria:`创建新文件或文件夹`,createTriggerTitle:`新建文件或文件夹`,nameLabel:`名称`,nameError:`请输入不含斜杠的单个文件或文件夹名称。`,nameTaken:`此文件夹中已存在“{name}”。`,createFailed:`创建失败。请检查名称后重试。`,renameFailed:`重命名失败。请检查名称后重试。`,deleteFailed:`删除失败。请重试。`,cancel:`取消`,sortByNameAria:`按名称排序`,sortBySizeAria:`按大小排序`,sortedBySizeTitle:`已按大小排序,切换为按名称排序`,sortedByNameTitle:`已按名称排序,切换为按大小排序`,hideHiddenAria:`隐藏隐藏文件`,showHiddenAria:`显示隐藏文件`,searchPlaceholder:`搜索文件`,clearSearchAria:`清除搜索`,noFilesFound:`未找到文件`,searchScope:`正在搜索已展开的文件夹`,noSearchMatches:`已展开的文件夹中没有匹配项`,searchIncomplete:`部分文件夹未被搜索。展开文件夹即可在其中搜索。`,noMatches:`没有匹配项`,deleteFolderTitle:`删除文件夹`,deleteFileTitle:`删除文件`,deleteFileMessage:`确定要删除 <name>{name}</name> 吗?此操作无法撤消。`,deleteFolderMessage:`确定要删除 <name>{name}</name> 及其所有内容吗?此操作无法撤消。`,deleting:`正在删除…`},t={drawerTitle:`文件`},n={download:`下载`,downloading:`正在下载…`,downloadFailed:`下载失败。请重试。`,preview:`预览`,source:`源文件`,modifiedLabel:`修改时间:`,selectAFile:`选择一个文件以查看`,browseFiles:`浏览文件`,fileNotFound:`文件未找到`,saveFailed:`保存失败`,unknownSize:`大小未知`,downloadAria:`下载 {name}`},r={workspaceTree:e,workspaceBrowser:t,workspaceFileViewer:n};export{r as default,t as workspaceBrowser,n as workspaceFileViewer,e as workspaceTree};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={heading:`Файлы`,newFile:`Новый файл`,newFolder:`Новая папка`,delete:`Удалить`,rename:`Переименовать`,renaming:`Переименование…`,create:`Создать`,creating:`Создание…`,creatingHeading:`Создать`,createTriggerAria:`Создать файл или папку`,createTriggerTitle:`Новый файл или папка`,nameLabel:`Имя`,nameError:`Имя одного файла или папки без слэшей.`,nameTaken:`«{name}» уже есть в этой папке.`,createFailed:`Не удалось создать. Проверьте имя и повторите попытку.`,renameFailed:`Не удалось переименовать. Проверьте имя и повторите попытку.`,deleteFailed:`Не удалось удалить. Повторите попытку.`,cancel:`Отмена`,sortByNameAria:`Сортировать по имени`,sortBySizeAria:`Сортировать по размеру`,sortedBySizeTitle:`Сортировка по размеру, переключить на имя`,sortedByNameTitle:`Сортировка по имени, переключить на размер`,hideHiddenAria:`Скрыть скрытые файлы`,showHiddenAria:`Показать скрытые файлы`,searchPlaceholder:`Поиск файлов`,clearSearchAria:`Очистить поиск`,noFilesFound:`Файлы не найдены`,deleteFolderTitle:`Удалить папку`,deleteFileTitle:`Удалить файл`,deleteFileMessage:`Точно удалить <name>{name}</name>? Это нельзя отменить.`,deleteFolderMessage:`Точно удалить <name>{name}</name> и всё содержимое? Это нельзя отменить.`,deleting:`Удаление…`},t={drawerTitle:`Файлы`},n={download:`Скачать`,downloading:`Скачивание…`,downloadFailed:`Не удалось скачать. Повторите попытку.`,preview:`Просмотр`,source:`Исходник`,modifiedLabel:`Изменён:`,selectAFile:`Выбор файла для просмотра`,browseFiles:`Обзор файлов`,fileNotFound:`Файл не найден`,saveFailed:`Не удалось сохранить`,unknownSize:`Размер неизвестен`,downloadAria:`Скачать {name}`},r={workspaceTree:e,workspaceBrowser:t,workspaceFileViewer:n};export{r as default,t as workspaceBrowser,n as workspaceFileViewer,e as workspaceTree};
|
|
1
|
+
var e={heading:`Файлы`,newFile:`Новый файл`,newFolder:`Новая папка`,delete:`Удалить`,rename:`Переименовать`,renaming:`Переименование…`,create:`Создать`,creating:`Создание…`,creatingHeading:`Создать`,createTriggerAria:`Создать файл или папку`,createTriggerTitle:`Новый файл или папка`,nameLabel:`Имя`,nameError:`Имя одного файла или папки без слэшей.`,nameTaken:`«{name}» уже есть в этой папке.`,createFailed:`Не удалось создать. Проверьте имя и повторите попытку.`,renameFailed:`Не удалось переименовать. Проверьте имя и повторите попытку.`,deleteFailed:`Не удалось удалить. Повторите попытку.`,cancel:`Отмена`,sortByNameAria:`Сортировать по имени`,sortBySizeAria:`Сортировать по размеру`,sortedBySizeTitle:`Сортировка по размеру, переключить на имя`,sortedByNameTitle:`Сортировка по имени, переключить на размер`,hideHiddenAria:`Скрыть скрытые файлы`,showHiddenAria:`Показать скрытые файлы`,searchPlaceholder:`Поиск файлов`,clearSearchAria:`Очистить поиск`,noFilesFound:`Файлы не найдены`,searchScope:`Поиск в открытых папках`,noSearchMatches:`В открытых папках ничего не найдено`,searchIncomplete:`Некоторые папки не участвуют в поиске. Откройте папку, чтобы искать в ней.`,noMatches:`Совпадений нет`,deleteFolderTitle:`Удалить папку`,deleteFileTitle:`Удалить файл`,deleteFileMessage:`Точно удалить <name>{name}</name>? Это нельзя отменить.`,deleteFolderMessage:`Точно удалить <name>{name}</name> и всё содержимое? Это нельзя отменить.`,deleting:`Удаление…`},t={drawerTitle:`Файлы`},n={download:`Скачать`,downloading:`Скачивание…`,downloadFailed:`Не удалось скачать. Повторите попытку.`,preview:`Просмотр`,source:`Исходник`,modifiedLabel:`Изменён:`,selectAFile:`Выбор файла для просмотра`,browseFiles:`Обзор файлов`,fileNotFound:`Файл не найден`,saveFailed:`Не удалось сохранить`,unknownSize:`Размер неизвестен`,downloadAria:`Скачать {name}`},r={workspaceTree:e,workspaceBrowser:t,workspaceFileViewer:n};export{r as default,t as workspaceBrowser,n as workspaceFileViewer,e as workspaceTree};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={heading:`Archivos`,newFile:`Nuevo archivo`,newFolder:`Nueva carpeta`,delete:`Eliminar`,rename:`Cambiar el nombre`,renaming:`Cambiando el nombre…`,create:`Crear`,creating:`Creando…`,creatingHeading:`Crear`,createTriggerAria:`Crear un archivo o una carpeta`,createTriggerTitle:`Nuevo archivo o carpeta`,nameLabel:`Nombre`,nameError:`Escribe el nombre de un solo archivo o carpeta, sin barras.`,nameTaken:`«{name}» ya existe en esta carpeta.`,createFailed:`No se pudo crear. Revisa el nombre e inténtalo de nuevo.`,renameFailed:`No se pudo cambiar el nombre. Revisa el nombre e inténtalo de nuevo.`,deleteFailed:`No se pudo eliminar. Inténtalo de nuevo.`,cancel:`Cancelar`,sortByNameAria:`Ordenar por nombre`,sortBySizeAria:`Ordenar por tamaño`,sortedBySizeTitle:`Ordenado por tamaño, cambiar a nombre`,sortedByNameTitle:`Ordenado por nombre, cambiar a tamaño`,hideHiddenAria:`Ocultar los archivos ocultos`,showHiddenAria:`Mostrar los archivos ocultos`,searchPlaceholder:`Buscar archivos`,clearSearchAria:`Borrar la búsqueda`,noFilesFound:`No se han encontrado archivos`,searchScope:`Buscando en las carpetas abiertas`,noSearchMatches:`No hay coincidencias en las carpetas abiertas`,searchIncomplete:`Algunas carpetas no se incluyen en la búsqueda. Abre una carpeta para buscar dentro de ella.`,noMatches:`No hay coincidencias`,deleteFolderTitle:`Eliminar la carpeta`,deleteFileTitle:`Eliminar el archivo`,deleteFileMessage:`¿Seguro que quieres eliminar <name>{name}</name>? Esto no se puede deshacer.`,deleteFolderMessage:`¿Seguro que quieres eliminar <name>{name}</name> y todo su contenido? Esto no se puede deshacer.`,deleting:`Eliminando…`},t={drawerTitle:`Archivos`},n={download:`Descargar`,downloading:`Descargando…`,downloadFailed:`No se pudo descargar. Inténtalo de nuevo.`,preview:`Vista previa`,source:`Código`,modifiedLabel:`Modificado:`,selectAFile:`Selecciona un archivo para verlo`,browseFiles:`Explorar archivos`,fileNotFound:`Archivo no encontrado`,saveFailed:`No se pudo guardar`,unknownSize:`Tamaño desconocido`,downloadAria:`Descargar {name}`},r={workspaceTree:e,workspaceBrowser:t,workspaceFileViewer:n};export{r as default,t as workspaceBrowser,n as workspaceFileViewer,e as workspaceTree};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={heading:`檔案`,newFile:`新增檔案`,newFolder:`新增資料夾`,delete:`刪除`,rename:`重新命名`,renaming:`正在重新命名…`,create:`建立`,creating:`正在建立…`,creatingHeading:`建立新項目`,createTriggerAria:`建立新檔案或資料夾`,createTriggerTitle:`新檔案或資料夾`,nameLabel:`名稱`,nameError:`請輸入不含斜線的單一檔案或資料夾名稱。`,nameTaken:`此資料夾中已有「{name}」。`,createFailed:`建立失敗。請檢查名稱後再試一次。`,renameFailed:`重新命名失敗。請檢查名稱後再試一次。`,deleteFailed:`刪除失敗。請再試一次。`,cancel:`取消`,sortByNameAria:`依名稱排序`,sortBySizeAria:`依大小排序`,sortedBySizeTitle:`已依大小排序,切換為依名稱排序`,sortedByNameTitle:`已依名稱排序,切換為依大小排序`,hideHiddenAria:`隱藏隱藏檔案`,showHiddenAria:`顯示隱藏檔案`,searchPlaceholder:`搜尋檔案`,clearSearchAria:`清除搜尋`,noFilesFound:`找不到檔案`,searchScope:`正在搜尋已展開的資料夾`,noSearchMatches:`已展開的資料夾中沒有相符項目`,searchIncomplete:`部分資料夾未納入搜尋。展開資料夾即可在其中搜尋。`,noMatches:`沒有相符項目`,deleteFolderTitle:`刪除資料夾`,deleteFileTitle:`刪除檔案`,deleteFileMessage:`您確定要刪除 <name>{name}</name> 嗎?此操作無法復原。`,deleteFolderMessage:`您確定要刪除 <name>{name}</name> 及其所有內容嗎?此操作無法復原。`,deleting:`正在刪除…`},t={drawerTitle:`檔案`},n={download:`下載`,downloading:`正在下載…`,downloadFailed:`下載失敗。請再試一次。`,preview:`預覽`,source:`來源`,modifiedLabel:`修改時間:`,selectAFile:`選取檔案以檢視`,browseFiles:`瀏覽檔案`,fileNotFound:`找不到檔案`,saveFailed:`儲存失敗`,unknownSize:`大小不明`,downloadAria:`下載 {name}`},r={workspaceTree:e,workspaceBrowser:t,workspaceFileViewer:n};export{r as default,t as workspaceBrowser,n as workspaceFileViewer,e as workspaceTree};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Am as t,An as n,Bx as r,Ex as i,Fv as a,HS as o,Iv as s,JS as c,Lv as l,Nn as u,Nv as d,Pn as f,Pv as p,Qi as m,Rv as h,TS as g,US as _,_S as v,hS as y,ir as b,jm as x,jn as S,mS as C,nt as w,qS as T,zv as ee}from"./app-CuJb51Ub.js";import{$n as E,N as D,Qn as O,Yn as k,Zn as A,j,tr as te}from"./vendor-CYmPHUS2.js";import{_ as M,t as N,x as P}from"./react-B9IgSVeK.js";import{A as F,Br as I,Gi as ne,Lt as L,Mr as R,Rr as re,Ur as z,Xr as ie,Ya as ae,Yn as B,Yr as oe,Zt as se,g as V,i as ce,jr as H,kr as U,mr as W,qi as G,ri as le,vt as ue}from"./icons-C0wyat6T.js";import{n as K,r as q,t as J}from"./use-side-list-room-T8KJvH7p.js";import{t as Y}from"./format-file-size-BW7P6CE0.js";import{i as X,n as de,r as fe,t as pe}from"./file-editor-zljxVqM1.js";import{t as me}from"./use-debounced-value-Dbgs3rOl.js";var he=ae(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),ge=ae(`arrow-down-wide-narrow`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h10`,key:`1w87gc`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}]]),Z=e(P(),1);function _e(e){if(!e)return``;let t=e.indexOf(`;`);return(t===-1?e:e.slice(0,t)).trim()}function ve(e,t){return _e(t)===`application/json`?!0:(e??``).toLowerCase().endsWith(`.json`)}function ye(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function be(e){return e.split(`/`).some(e=>e.startsWith(`.`))}var Q=N();function xe(e){let{assistantId:t,path:n,name:r,showHidden:i}=e,[a,o]=(0,Z.useState)(!1),[s,c]=(0,Z.useState)(!1);return{isDownloading:a,error:s,download:(0,Z.useCallback)(async()=>{c(!1),o(!0);try{await b({assistantId:t,path:n,filename:r,showHidden:i})}catch{c(!0)}finally{o(!1)}},[t,n,r,i])}}function Se({assistantId:e,path:t,name:n,showHidden:r}){let{t:i}=j(`workspace`),{isDownloading:a,error:o,download:s}=xe({assistantId:e,path:t,name:n,showHidden:r});return(0,Q.jsx)(c,{variant:`ghost`,size:`regular`,loading:a,iconOnly:(0,Q.jsx)(le,{"aria-hidden":!0}),onClick:()=>void s(),disabled:a,"aria-label":i(`workspaceFileViewer.downloadAria`,{name:n}),tooltip:i(o?`workspaceFileViewer.downloadFailed`:`workspaceFileViewer.download`)})}function Ce(e){return A({queryFn:async()=>{let{data:t,error:n}=await a({path:e.path,query:{path:e.query.path,...e.query.showHidden?{showHidden:`true`}:{}}});if(n)throw n;return t},queryKey:[`assistantsWorkspaceFileRetrieve`,e]})}function we({mimeType:e}){let t=e.indexOf(`;`),n=(t===-1?e:e.slice(0,t)).trim(),r=I;return n.startsWith(`image/`)?r=W:n.startsWith(`video/`)?r=V:!n.startsWith(`text/`)&&n!==`application/json`&&n!==`application/octet-stream`&&(r=re),(0,Q.jsx)(`span`,{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded`,style:{backgroundColor:`color-mix(in oklab, var(--content-default) 10%, transparent)`},children:(0,Q.jsx)(r,{className:`h-3.5 w-3.5`,style:{color:`var(--content-default)`}})})}function Te({viewMode:e,onChange:t}){let{t:n}=j(`workspace`);return(0,Q.jsx)(`div`,{className:`inline-flex rounded-md p-0.5`,style:{backgroundColor:`color-mix(in oklab, var(--content-default) 6%, transparent)`},children:[`preview`,`source`].map(r=>{let i=e===r;return(0,Q.jsx)(c,{variant:`ghost`,onClick:()=>t(r),className:`h-auto rounded border-0 px-2.5 py-1 text-body-small-default hover:bg-transparent`,style:{backgroundColor:i?`var(--surface-lift)`:`transparent`,color:i?`var(--content-default)`:`var(--content-tertiary)`,boxShadow:i?`0 1px 2px rgba(0,0,0,0.15)`:void 0},children:n(r===`preview`?`workspaceFileViewer.preview`:`workspaceFileViewer.source`)},r)})})}function $({name:e,mimeType:t,size:n,rightContent:r}){return(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b px-3 py-2.5`,style:{borderColor:`var(--border-element)`},children:[(0,Q.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Q.jsx)(we,{mimeType:t}),(0,Q.jsx)(`span`,{className:`truncate text-body-medium-default`,style:{color:`var(--content-default)`},children:e}),n!=null&&(0,Q.jsx)(`span`,{className:`shrink-0 text-body-small-default`,style:{color:`var(--content-tertiary)`},children:Y(n)})]}),r]})}function Ee({assistantId:e,path:t,mimeType:n,showHidden:r}){let{data:i,isLoading:a}=O({queryFn:async()=>{let n=await p({path:{assistant_id:e},query:{path:t,...r?{showHidden:`true`}:{}},parseAs:`blob`});if(n.error)throw n.error;return n.data},queryKey:[`assistantsWorkspaceFileContentRetrieve`,{assistantId:e,path:t,showHidden:r}],enabled:!!t}),[o,s]=(0,Z.useState)(null);return(0,Z.useEffect)(()=>{if(!i)return;let e=URL.createObjectURL(i);return s(e),()=>{URL.revokeObjectURL(e),s(null)}},[i]),a?(0,Q.jsx)(`div`,{className:`flex items-center justify-center py-12`,children:(0,Q.jsx)(B,{className:`h-6 w-6 animate-spin`,style:{color:`var(--content-tertiary)`}})}):o?n.startsWith(`image/`)?(0,Q.jsx)(`div`,{className:`flex items-center justify-center p-4`,children:(0,Q.jsx)(`img`,{src:o,alt:t.split(`/`).pop()??`image`,className:`max-h-[70vh] max-w-full rounded object-contain`})}):n.startsWith(`video/`)?(0,Q.jsx)(`div`,{className:`flex items-center justify-center p-4`,children:(0,Q.jsx)(`video`,{src:o,controls:!0,className:`max-h-[70vh] max-w-full rounded`})}):null:null}function De({assistantId:e,path:t,name:n,mimeType:r,size:a,modifiedAt:o,showHidden:s}){let{t:l}=j(`workspace`),{isDownloading:u,error:d,download:f}=xe({assistantId:e,path:t,name:n,showHidden:s});return(0,Q.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,Q.jsx)($,{name:n,mimeType:r,size:a}),(0,Q.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-8`,children:(0,Q.jsxs)(`div`,{className:`w-full max-w-sm rounded-lg border p-6 text-center`,style:{borderColor:`var(--border-base)`,backgroundColor:`var(--surface-lift)`},children:[(0,Q.jsx)(re,{className:`mx-auto h-10 w-10`,style:{color:`var(--content-tertiary)`}}),(0,Q.jsx)(`p`,{className:`mt-3 text-body-medium-default`,style:{color:`var(--content-default)`},children:n}),(0,Q.jsxs)(`div`,{className:`mt-2 space-y-1`,children:[(0,Q.jsx)(`p`,{className:`text-body-small-default`,style:{color:`var(--content-secondary, var(--content-tertiary))`},children:r}),(0,Q.jsx)(`p`,{className:`text-body-small-default`,style:{color:`var(--content-secondary, var(--content-tertiary))`},children:Y(a,l(`workspaceFileViewer.unknownSize`))}),o&&(0,Q.jsxs)(`p`,{className:`text-body-small-default`,style:{color:`var(--content-secondary, var(--content-tertiary))`},children:[l(`workspaceFileViewer.modifiedLabel`),` `,new Date(o).toLocaleString(i())]})]}),(0,Q.jsx)(c,{variant:`outlined`,size:`compact`,loading:u,leftIcon:(0,Q.jsx)(le,{"aria-hidden":!0}),onClick:f,disabled:u,"aria-label":l(`workspaceFileViewer.downloadAria`,{name:n}),className:`mt-4`,children:l(u?`workspaceFileViewer.downloading`:`workspaceFileViewer.download`)}),d&&(0,Q.jsx)(`p`,{className:`mt-2 text-body-small-default`,style:{color:`var(--system-negative-strong)`},children:l(`workspaceFileViewer.downloadFailed`)})]})})]})}function Oe({assistantId:e,selectedPath:t,showHidden:n,viewMode:r,onChangeViewMode:i,onBrowse:a,pathRename:o,pathDelete:s}){let{t:l}=j(`workspace`),d=te(),{data:p,isLoading:m}=O({...Ce({path:{assistant_id:e},query:{path:t??``,showHidden:n}}),enabled:!!t}),[h,g]=(0,Z.useState)(null),[_,v]=(0,Z.useState)(null);(0,Z.useEffect)(()=>{if(!o)return;let{from:e,to:t}=o,n=n=>n===e?t:n.startsWith(`${e}/`)?t+n.slice(e.length):n;g(e=>e==null?e:n(e)),v(e=>e==null?e:{...e,path:n(e.path)})},[o]),(0,Z.useEffect)(()=>{if(!s)return;let{path:e}=s,t=t=>t===e||t.startsWith(`${e}/`);g(e=>e!=null&&t(e)?null:e),v(e=>e!=null&&t(e.path)?null:e)},[s]);let y=h!=null&&h===t,b=p?.content??``,x=_?.path===t?_.content:b,S=()=>{g(null),v(null)},C=k({mutationFn:async({path:t,content:n})=>{let{error:r,response:i}=await ee({path:{assistant_id:e},body:{path:t,content:n,encoding:`utf8`},throwOnError:!1});if(!i?.ok||r)throw Error(`Failed to save file`)},onSuccess:(e,t)=>{g(e=>e===t.path?null:e),v(e=>e?.path===t.path?null:e),d.invalidateQueries({queryKey:[`assistantsWorkspaceFileRetrieve`]})}}),w=x!==b,T=(0,Z.useCallback)(()=>{t&&w&&!C.isPending&&C.mutate({path:t,content:x})},[t,w,C,x]);if(!t)return(0,Q.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center gap-3`,children:[(0,Q.jsx)(`p`,{className:`text-body-medium-lighter`,style:{color:`var(--content-tertiary)`},children:l(`workspaceFileViewer.selectAFile`)}),a&&(0,Q.jsx)(c,{type:`button`,onClick:a,leftIcon:(0,Q.jsx)(R,{"aria-hidden":!0}),children:l(`workspaceFileViewer.browseFiles`)})]});if(m)return(0,Q.jsx)(`div`,{className:`flex h-full items-center justify-center`,children:(0,Q.jsx)(B,{className:`h-6 w-6 animate-spin`,style:{color:`var(--content-tertiary)`}})});if(!p)return(0,Q.jsx)(`div`,{className:`flex h-full items-center justify-center`,children:(0,Q.jsx)(`p`,{className:`text-body-medium-lighter`,style:{color:`var(--content-tertiary)`},children:l(`workspaceFileViewer.fileNotFound`)})});let E=p.mimeType??`application/octet-stream`,D=p.name??t.split(`/`).pop()??t,A=f(D,E),M=ve(D,E),N=p.content!=null&&!A&&!M,P=t?be(t):!0,F=y&&(0,Q.jsx)(de,{isDirty:w,isSaving:C.isPending,error:C.isError?l(`workspaceFileViewer.saveFailed`):null,onSave:T,onDiscard:S});if(A&&p.content!=null){let e=y?x:p.content;return(0,Q.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,Q.jsx)($,{name:D,mimeType:E,rightContent:(0,Q.jsx)(Te,{viewMode:r,onChange:e=>{y&&S(),i(e)}})}),(0,Q.jsxs)(`div`,{className:`relative flex-1 overflow-hidden`,children:[(0,Q.jsx)(pe,{content:e,fileName:D,mimeType:E,showEdit:!P&&r===`source`,isEditing:y,onToggleEdit:()=>y?S():g(t)}),r===`preview`?(0,Q.jsx)(`div`,{className:`h-full overflow-auto px-6 py-4`,style:{color:`var(--content-default)`},children:(0,Q.jsx)(u,{content:e})}):y?(0,Q.jsx)(fe,{value:x,onChange:e=>v({path:t,content:e}),onSave:T}):(0,Q.jsx)(X,{content:p.content,readOnly:P,onStartEdit:()=>g(t)})]}),F]})}if(M&&p.content!=null){let e=y?x:p.content,n=ye(e);return(0,Q.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,Q.jsx)($,{name:D,mimeType:E,rightContent:(0,Q.jsx)(Te,{viewMode:r,onChange:e=>{y&&S(),i(e)}})}),(0,Q.jsxs)(`div`,{className:`relative flex-1 overflow-hidden`,children:[(0,Q.jsx)(pe,{content:r===`preview`?n:e,downloadContent:e,fileName:D,mimeType:E,showEdit:!P&&r===`source`,isEditing:y,onToggleEdit:()=>y?S():g(t)}),r===`preview`?(0,Q.jsx)(X,{content:n,readOnly:!0,whiteSpace:`pre`}):y?(0,Q.jsx)(fe,{value:x,onChange:e=>v({path:t,content:e}),onSave:T}):(0,Q.jsx)(X,{content:p.content,readOnly:P,onStartEdit:()=>g(t)})]}),F]})}return N?(0,Q.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,Q.jsx)($,{name:D,mimeType:E,size:p.size}),(0,Q.jsxs)(`div`,{className:`relative flex-1 overflow-hidden`,children:[(0,Q.jsx)(pe,{content:y?x:p.content??``,fileName:D,mimeType:E,showEdit:!P,isEditing:y,onToggleEdit:()=>y?S():g(t)}),y?(0,Q.jsx)(fe,{value:x,onChange:e=>v({path:t,content:e}),onSave:T}):(0,Q.jsx)(X,{content:p.content??``,readOnly:P,onStartEdit:()=>g(t)})]}),F]}):E.startsWith(`image/`)||E.startsWith(`video/`)?(0,Q.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,Q.jsx)($,{name:D,mimeType:E,size:p.size,rightContent:(0,Q.jsx)(Se,{assistantId:e,path:t,name:D,showHidden:n})}),(0,Q.jsx)(`div`,{className:`flex-1 overflow-auto`,children:(0,Q.jsx)(Ee,{assistantId:e,path:t,mimeType:E,showHidden:n})})]}):(0,Q.jsx)(De,{assistantId:e,path:t,name:D,mimeType:E,size:p.size,modifiedAt:p.modifiedAt,showHidden:n})}function ke({entry:e}){let t={color:`var(--content-tertiary)`};return e.type===`directory`?(0,Q.jsx)(U,{className:`h-4 w-4 shrink-0`,style:t}):e.mimeType?.startsWith(`image/`)?(0,Q.jsx)(W,{className:`h-4 w-4 shrink-0`,style:t}):e.mimeType?.startsWith(`video/`)?(0,Q.jsx)(V,{className:`h-4 w-4 shrink-0`,style:t}):(0,Q.jsx)(I,{className:`h-4 w-4 shrink-0`,style:t})}var Ae=(0,Z.memo)(function({entry:e,depth:t,isExpanded:n,isSelected:r,onToggleExpand:i,onSelectPath:a,onRequestDelete:o,onRequestRename:s,onRequestCreate:c}){let{t:l}=j(`workspace`),u=e.type===`directory`,d=e.name.startsWith(`.`),f=!be(e.path),p={path:e.path,name:e.name,isDirectory:u},m=(0,Q.jsxs)(`button`,{type:`button`,onClick:()=>u?i(e.path):a(e.path),"aria-expanded":u?n:void 0,className:`flex w-full items-center gap-1.5 px-2 py-1 text-left text-body-medium-lighter transition-colors hover:bg-[var(--surface-hover)]`,style:{paddingLeft:`${t*14+8}px`,paddingRight:`8px`,color:d&&!r?`var(--content-tertiary)`:`var(--content-default)`,backgroundColor:r?`color-mix(in oklab, var(--primary-base) 12%, transparent)`:void 0,opacity:d&&!r?.7:1},children:[u?n?(0,Q.jsx)(G,{className:`h-3 w-3 shrink-0`,style:{color:`var(--content-tertiary)`}}):(0,Q.jsx)(ne,{className:`h-3 w-3 shrink-0`,style:{color:`var(--content-tertiary)`}}):(0,Q.jsx)(`span`,{className:`h-3 w-3 shrink-0`}),(0,Q.jsx)(ke,{entry:e}),(0,Q.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),e.size!==null&&(0,Q.jsx)(`span`,{className:`shrink-0 text-label-medium-default tabular-nums`,style:{color:`var(--content-tertiary)`},children:Y(e.size)})]});return f?(0,Q.jsxs)(C.Root,{children:[(0,Q.jsx)(C.Trigger,{children:m}),(0,Q.jsxs)(C.Content,{children:[u&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(C.Item,{leftIcon:(0,Q.jsx)(z,{className:`h-3.5 w-3.5`}),onSelect:()=>c({kind:`file`,parentPath:e.path}),children:l(`workspaceTree.newFile`)}),(0,Q.jsx)(C.Item,{leftIcon:(0,Q.jsx)(H,{className:`h-3.5 w-3.5`}),onSelect:()=>c({kind:`folder`,parentPath:e.path}),children:l(`workspaceTree.newFolder`)}),(0,Q.jsx)(C.Separator,{})]}),(0,Q.jsx)(C.Item,{leftIcon:(0,Q.jsx)(F,{className:`h-3.5 w-3.5`}),onSelect:()=>o(p),children:l(`workspaceTree.delete`)}),(0,Q.jsx)(C.Item,{leftIcon:(0,Q.jsx)(se,{className:`h-3.5 w-3.5`}),onSelect:()=>s(p),children:l(`workspaceTree.rename`)})]})]}):m});function je(e,t){if(t===`name`)return e;let n=e.slice();return n.sort((e,t)=>{let n=e.size??null,r=t.size??null;return n===null&&r===null?(e.name??``).localeCompare(t.name??``):n===null?1:r===null?-1:n===r?(e.name??``).localeCompare(t.name??``):r-n}),n}function Me(e,t){let n=[``];for(let r of e){if(!t&&be(r))continue;let i=r.split(`/`),a=!0;for(let t=1;t<i.length;t++)if(!e.has(i.slice(0,t).join(`/`))){a=!1;break}a&&n.push(r)}return n}function Ne(e){let t=new Map;for(let n of e){let e=x(n.path),r=t.get(e);r?r.push(n):t.set(e,[n])}return t}function Pe({listings:e,expandedPaths:t,sortMode:n,query:r}){let i=r.trim().toLowerCase();function a(r,o){let s=e.get(r);if(!s)return[];let c=[];for(let e of je(s,n)){let n=e.type===`directory`,r=n&&t.has(e.path),s=r||n&&i!==``?a(e.path,o+1):[];(i===``||e.name.toLowerCase().includes(i)||s.length>0)&&c.push({entry:e,depth:o,isExpanded:r||s.length>0},...s)}return c}return a(``,0)}function Fe({assistantId:e,expandedPaths:t,showHidden:n,sortMode:r}){let{data:i}=O(S({assistantId:e,showHidden:n,recursive:!0})),a=(0,Z.useMemo)(()=>i?.truncated===void 0?void 0:{listings:Ne(i.entries),truncated:i.truncated,skipped:i.skipped??[]},[i]),o=(0,Z.useMemo)(()=>Me(t,n),[t,n]),s=(0,Z.useCallback)(e=>{let t=new Map;return e.forEach((e,n)=>{e.data&&t.set(o[n],e.data.entries)}),{listings:t,isRootLoading:e[0]?.isLoading??!0}},[o]),c=E({queries:o.map(t=>S({assistantId:e,path:t,showHidden:n,includeDirSizes:r===`size`})),combine:s});return(0,Z.useMemo)(()=>{if(!a)return{listings:c.listings,isRootLoading:c.isRootLoading,searchScope:`open-folders`,isSearchIncomplete:!1};let e=new Map(a.listings);for(let[t,n]of c.listings)e.set(t,n);return{listings:e,isRootLoading:!1,searchScope:`workspace`,isSearchIncomplete:a.truncated||a.skipped.some(t=>!e.has(t))}},[a,c])}var Ie=class extends Error{takenName;constructor(e){super(`Workspace entry name is taken: ${e}`),this.name=`WorkspaceNameTakenError`,this.takenName=e}};function Le(e,t,n){if(e instanceof Ie)return n(`workspaceTree.nameTaken`,{name:e.takenName});switch(t){case`create`:return n(`workspaceTree.createFailed`);case`rename`:return n(`workspaceTree.renameFailed`);case`delete`:return n(`workspaceTree.deleteFailed`)}}var Re=200;async function ze(e,t,n,r){let i=n.toLowerCase(),a=r?.toLowerCase(),{data:o}=await h({path:{assistant_id:e},query:t?{path:t}:{}});if(o?.entries?.some(e=>{let t=e.name.toLowerCase();return t===i&&t!==a}))throw new Ie(n)}function Be({title:e,placeholder:t,confirmLabel:n,pendingLabel:r,initialName:i,onCancel:a,onConfirm:o,pending:s,error:l}){let{t:u}=j(`workspace`),d=(0,Z.useRef)(null),[f,p]=(0,Z.useState)(i??``),m=f.trim(),h=m.length>0&&(/[/\\]/.test(m)||m===`.`||m===`..`),_=m.length>0&&!h&&!s;return(0,Q.jsx)(v.Root,{open:!0,onOpenChange:e=>{!e&&!s&&a()},children:(0,Q.jsx)(v.Content,{size:`sm`,hideCloseButton:!0,"aria-describedby":void 0,onOpenAutoFocus:e=>{e.preventDefault();let t=d.current;t&&(t.focus(),requestAnimationFrame(()=>{t.setSelectionRange(0,t.value.length)}))},onEscapeKeyDown:e=>{e.preventDefault(),e.stopPropagation(),s||a()},children:(0,Q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),_&&o(m)},children:[(0,Q.jsx)(v.Header,{children:(0,Q.jsx)(v.Title,{children:e})}),(0,Q.jsx)(v.Body,{children:(0,Q.jsx)(g,{ref:d,label:u(`workspaceTree.nameLabel`),value:f,onChange:e=>p(e.target.value),placeholder:t,errorText:l??(h?u(`workspaceTree.nameError`):void 0),autoComplete:`off`,spellCheck:!1,fullWidth:!0})}),(0,Q.jsxs)(v.Footer,{children:[(0,Q.jsx)(c,{type:`button`,variant:`outlined`,onClick:a,disabled:s,children:u(`workspaceTree.cancel`)}),(0,Q.jsx)(c,{type:`submit`,variant:`primary`,disabled:!_,children:s?r:n})]})]})})})}function Ve({assistantId:e,expandedPaths:i,selectedPath:a,showHidden:o,sortMode:u,onToggleExpand:f,onExpandPath:p,onSelectPath:m,onToggleShowHidden:h,onChangeSortMode:_,onPathDeleted:v,onPathRenamed:b,search:S,onSearchChange:C}){let{t:w}=j(`workspace`),T=te(),[E,O]=(0,Z.useState)(!1),[A,M]=(0,Z.useState)(null),[N,P]=(0,Z.useState)(null),F=(0,Z.useCallback)(()=>{M(null),P(null)},[]),I=me(S,Re),ne=I.trim()!==``,L=(0,Z.useId)(),{listings:R,isRootLoading:re,searchScope:z,isSearchIncomplete:ae}=Fe({assistantId:e,expandedPaths:i,showHidden:o,sortMode:u}),B=ne?z===`open-folders`?w(`workspaceTree.searchScope`):ae?w(`workspaceTree.searchIncomplete`):null:null,se=(R.get(``)?.length??0)>0,V=(0,Z.useMemo)(()=>Pe({listings:R,expandedPaths:i,sortMode:u,query:I}),[R,i,u,I]),H=(0,Z.useCallback)(()=>{for(let e of[n,`assistantsWorkspaceFileRetrieve`,`assistantsWorkspaceFileContentRetrieve`])T.invalidateQueries({queryKey:[e]})},[T]),U=k({mutationFn:async t=>{let n=t.parentPath?`${t.parentPath}/${t.name}`:t.name;await ze(e,t.parentPath,t.name);let{error:i,response:a}=t.kind===`file`?await ee({path:{assistant_id:e},body:{path:n,content:``,encoding:`utf8`},throwOnError:!1}):await s({path:{assistant_id:e},body:{path:n},throwOnError:!1});if(i||!a?.ok)throw a?r(i,a):i;return{...t,path:n}},onSuccess:e=>{F(),H(),e.parentPath&&p(e.parentPath),e.kind===`file`?m(e.path):p(e.path)},onError:e=>{P(Le(e,`create`,w))}}),W=k({mutationFn:async n=>{let i=x(n.oldPath),a=t(n.oldPath),o=i?`${i}/${n.newName}`:n.newName;await ze(e,i,n.newName,a);let{error:s,response:c}=await l({path:{assistant_id:e},body:{oldPath:n.oldPath,newPath:o},throwOnError:!1});if(s||!c?.ok)throw c?r(s,c):s;return{oldPath:n.oldPath,newPath:o}},onSuccess:({oldPath:e,newPath:t})=>{F(),H(),b(e,t)},onError:e=>{P(Le(e,`rename`,w))}}),G=(0,Z.useCallback)(e=>{P(null),M({type:`create`,...e})},[]),le=(0,Z.useCallback)(e=>{P(null),M({type:`rename`,path:e.path,name:e.name})},[]),[K,q]=(0,Z.useState)(null),J=k({mutationFn:async t=>{let{error:n,response:i}=await d({path:{assistant_id:e},body:{path:t.path},throwOnError:!1});if(n||!i?.ok)throw i?r(n,i):n;return t},onSuccess:e=>{q(null),H(),v(e.path)}}),Y=(0,Z.useCallback)(e=>{J.reset(),q(e)},[J]);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`flex items-center justify-between border-b px-3 py-2.5`,style:{borderColor:`var(--border-element)`},children:[(0,Q.jsx)(`span`,{className:`text-body-medium-default`,style:{color:`var(--content-secondary)`},children:w(`workspaceTree.heading`)}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-0.5`,children:[(0,Q.jsx)(c,{type:`button`,variant:`ghost`,size:`compact`,iconOnly:u===`size`?(0,Q.jsx)(ge,{"aria-hidden":!0}):(0,Q.jsx)(he,{"aria-hidden":!0}),onClick:()=>_(u===`size`?`name`:`size`),"aria-label":w(u===`size`?`workspaceTree.sortByNameAria`:`workspaceTree.sortBySizeAria`),title:w(u===`size`?`workspaceTree.sortedBySizeTitle`:`workspaceTree.sortedByNameTitle`),tintColor:u===`size`?`var(--content-default)`:`var(--content-tertiary)`}),(0,Q.jsx)(c,{type:`button`,variant:`ghost`,size:`compact`,iconOnly:o?(0,Q.jsx)(oe,{"aria-hidden":!0}):(0,Q.jsx)(ie,{"aria-hidden":!0}),onClick:h,"aria-label":w(o?`workspaceTree.hideHiddenAria`:`workspaceTree.showHiddenAria`),title:w(o?`workspaceTree.hideHiddenAria`:`workspaceTree.showHiddenAria`),tintColor:o?`var(--content-default)`:`var(--content-tertiary)`}),(0,Q.jsx)(He,{open:E,onOpenChange:O,onSelectKind:e=>{O(!1),G({kind:e,parentPath:``})}})]})]}),(0,Q.jsxs)(`div`,{className:`px-3 py-2`,children:[(0,Q.jsxs)(`div`,{className:`relative`,children:[(0,Q.jsx)(g,{type:`text`,value:S,onChange:e=>C(e.target.value),placeholder:w(`workspaceTree.searchPlaceholder`),leftIcon:(0,Q.jsx)(ue,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),"aria-describedby":B?L:void 0,fullWidth:!0,spellCheck:!1,autoComplete:`off`}),S&&(0,Q.jsx)(c,{type:`button`,variant:`ghost`,size:`compact`,iconOnly:(0,Q.jsx)(ce,{"aria-hidden":!0}),onClick:()=>C(``),"aria-label":w(`workspaceTree.clearSearchAria`),className:`absolute right-1.5 top-1/2 -translate-y-1/2`,tintColor:`var(--content-tertiary)`})]}),B&&(0,Q.jsx)(`span`,{id:L,className:`mt-1 block text-body-small-default text-[var(--content-tertiary)]`,children:B})]}),(0,Q.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto py-1`,children:re?(0,Q.jsx)(`div`,{className:`flex items-center justify-center py-8`,children:(0,Q.jsx)(`div`,{className:`h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent`,style:{color:`var(--content-tertiary)`}})}):!se||V.length===0?(0,Q.jsx)(`p`,{className:`px-3 py-4 text-center text-body-medium-lighter`,style:{color:`var(--content-tertiary)`},children:w(se?z===`workspace`?`workspaceTree.noMatches`:`workspaceTree.noSearchMatches`:`workspaceTree.noFilesFound`)}):V.map(e=>(0,Q.jsx)(Ae,{entry:e.entry,depth:e.depth,isExpanded:e.isExpanded,isSelected:a===e.entry.path,onToggleExpand:f,onSelectPath:m,onRequestDelete:Y,onRequestRename:le,onRequestCreate:G},e.entry.path))}),A?.type===`create`&&(0,Q.jsx)(Be,{title:A.kind===`file`?w(`workspaceTree.newFile`):w(`workspaceTree.newFolder`),placeholder:A.kind===`file`?`filename.md`:`folder-name`,confirmLabel:w(`workspaceTree.create`),pendingLabel:w(`workspaceTree.creating`),onCancel:F,onConfirm:e=>{P(null),U.mutate({kind:A.kind,parentPath:A.parentPath,name:e})},pending:U.isPending,error:N},`create-${A.kind}-${A.parentPath}`),A?.type===`rename`&&(0,Q.jsx)(Be,{title:w(`workspaceTree.rename`),placeholder:A.name,confirmLabel:w(`workspaceTree.rename`),pendingLabel:w(`workspaceTree.renaming`),initialName:A.name,onCancel:F,onConfirm:e=>{if(e===A.name){F();return}P(null),W.mutate({oldPath:A.path,newName:e})},pending:W.isPending,error:N},`rename-${A.path}`),(0,Q.jsx)(y,{open:K!==null,title:K?.isDirectory?w(`workspaceTree.deleteFolderTitle`):w(`workspaceTree.deleteFileTitle`),message:(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(D,{i18nKey:K?.isDirectory?`workspaceTree.deleteFolderMessage`:`workspaceTree.deleteFileMessage`,ns:`workspace`,values:{name:K?.name??``},components:{name:(0,Q.jsx)(`span`,{style:{color:`var(--content-default)`}})}}),J.error&&(0,Q.jsx)(`span`,{className:`mt-2 block`,style:{color:`var(--system-negative-strong)`},children:Le(J.error,`delete`,w)})]}),confirmLabel:J.isPending?w(`workspaceTree.deleting`):w(`workspaceTree.delete`),destructive:!0,isPending:J.isPending,onConfirm:()=>{K&&J.mutate(K)},onCancel:()=>q(null)})]})}function He({open:e,onOpenChange:t,onSelectKind:n}){let{t:r}=j(`workspace`);return m()?(0,Q.jsxs)(T.Root,{open:e,onOpenChange:t,children:[(0,Q.jsx)(T.Trigger,{asChild:!0,children:(0,Q.jsx)(c,{type:`button`,variant:`ghost`,size:`compact`,iconOnly:(0,Q.jsx)(L,{"aria-hidden":!0}),"aria-label":r(`workspaceTree.createTriggerAria`),title:r(`workspaceTree.createTriggerTitle`),tintColor:`var(--content-tertiary)`})}),(0,Q.jsxs)(T.Content,{children:[(0,Q.jsx)(T.Header,{className:`sr-only`,children:(0,Q.jsx)(T.Title,{children:r(`workspaceTree.creatingHeading`)})}),(0,Q.jsxs)(T.Body,{className:`pt-0`,children:[(0,Q.jsx)(o,{icon:z,label:r(`workspaceTree.newFile`),onSelect:()=>n(`file`)}),(0,Q.jsx)(o,{icon:H,label:r(`workspaceTree.newFolder`),onSelect:()=>n(`folder`)})]})]})]}):(0,Q.jsxs)(_.Root,{open:e,onOpenChange:t,children:[(0,Q.jsx)(_.Trigger,{asChild:!0,children:(0,Q.jsx)(c,{type:`button`,variant:`ghost`,size:`compact`,iconOnly:(0,Q.jsx)(L,{"aria-hidden":!0}),"aria-label":r(`workspaceTree.createTriggerAria`),title:r(`workspaceTree.createTriggerTitle`),tintColor:`var(--content-tertiary)`})}),(0,Q.jsxs)(_.Content,{align:`end`,sideOffset:4,children:[(0,Q.jsx)(_.Item,{leftIcon:(0,Q.jsx)(z,{className:`h-3.5 w-3.5`}),onSelect:()=>n(`file`),children:r(`workspaceTree.newFile`)}),(0,Q.jsx)(_.Item,{leftIcon:(0,Q.jsx)(H,{className:`h-3.5 w-3.5`}),onSelect:()=>n(`folder`),children:r(`workspaceTree.newFolder`)})]})]})}function Ue(e){let t=e.split(`/`),n=new Set;for(let e=1;e<t.length;e++)n.add(t.slice(0,e).join(`/`));return n}function We({assistantId:e}){let{t}=j(`workspace`),[n,r]=M(),[i,a]=(0,Z.useState)(()=>{let e=n.get(`file`);return e?Ue(e):new Set}),[o,s]=(0,Z.useState)(()=>n.get(`file`)),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(()=>n.get(`sort`)===`size`?`size`:`name`),[f,p]=(0,Z.useState)(`preview`);(0,Z.useEffect)(()=>{let e=n.get(`file`);e&&(s(e),a(t=>{let n=new Set(t);for(let t of Ue(e))n.add(t);return n.size===t.size?t:n}),r(e=>{let t=new URLSearchParams(e);return t.delete(`file`),t},{replace:!0}))},[n,r]);let m=(0,Z.useCallback)(e=>{a(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),h=(0,Z.useCallback)(e=>{a(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n})},[]),{paneRef:g,hasRoomForList:_,drawerOpen:v,openDrawer:y,closeDrawer:b}=J(),[x,S]=(0,Z.useState)(``),C=(0,Z.useCallback)(e=>{s(e),b()},[b]),[w,T]=(0,Z.useState)(null),ee=(0,Z.useCallback)(e=>{let t=t=>t===e||t.startsWith(`${e}/`);s(e=>e!==null&&t(e)?null:e),a(e=>{let n=new Set([...e].filter(e=>!t(e)));return n.size===e.size?e:n}),T({path:e})},[]),[E,D]=(0,Z.useState)(null),O={assistantId:e,expandedPaths:i,selectedPath:o,showHidden:c,sortMode:u,onToggleExpand:m,onExpandPath:h,onSelectPath:C,onToggleShowHidden:()=>l(e=>!e),onChangeSortMode:d,onPathDeleted:ee,onPathRenamed:(0,Z.useCallback)((e,t)=>{let n=n=>n===e?t:n.startsWith(`${e}/`)?t+n.slice(e.length):n;s(e=>e===null?e:n(e)),a(e=>{let t=!1,r=new Set;for(let i of e){let e=n(i);e!==i&&(t=!0),r.add(e)}return t?r:e}),D({from:e,to:t})},[]),search:x,onSearchChange:S};return(0,Q.jsxs)(`div`,{ref:g,className:`flex h-full min-h-0 flex-col gap-4`,children:[_?null:(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`flex items-center`,children:(0,Q.jsx)(q,{onClick:y})}),(0,Q.jsx)(K,{open:v,onClose:b,title:t(`workspaceBrowser.drawerTitle`),children:(0,Q.jsx)(Ve,{...O})})]}),(0,Q.jsxs)(`div`,{className:`grid min-h-0 flex-1 gap-4 ${_?`grid-cols-[320px_1fr]`:`grid-cols-1`}`,children:[_?(0,Q.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-col overflow-hidden rounded-xl border`,style:{backgroundColor:`var(--surface-overlay)`,borderColor:`var(--border-base)`},children:(0,Q.jsx)(Ve,{...O})}):null,(0,Q.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-col overflow-hidden rounded-xl border`,style:{backgroundColor:`var(--surface-overlay)`,borderColor:`var(--border-base)`},children:(0,Q.jsx)(Oe,{assistantId:e,selectedPath:o,showHidden:c,viewMode:f,onChangeViewMode:p,onBrowse:_?void 0:y,pathRename:E,pathDelete:w})})]})]})}function Ge(){return(0,Q.jsx)(We,{assistantId:w()})}export{Ge as WorkspacePage};
|
|
@@ -27,6 +27,18 @@ the site's CSS custom properties resolved to the brand colours they carry there
|
|
|
27
27
|
(`#00D66F` circle, `#011E0F` mark). Link is a Stripe product with its own mark,
|
|
28
28
|
so the parent Stripe `S` is not a stand-in for it.
|
|
29
29
|
|
|
30
|
+
## MCP catalog additions
|
|
31
|
+
|
|
32
|
+
Each bundled local MCP plugin owns its canonical `icon.png` and an
|
|
33
|
+
`ICON_ATTRIBUTION.md` file under `plugins/mcp-catalog/<name>/`. The attribution
|
|
34
|
+
file ships with the installed plugin and records the reviewed source URL,
|
|
35
|
+
ownership, license when known, and any format conversion or background
|
|
36
|
+
treatment.
|
|
37
|
+
|
|
38
|
+
The `<name>-mcp.png` files in this directory are byte-identical derived copies
|
|
39
|
+
for the web integration catalog. Generate them with
|
|
40
|
+
`node scripts/plugins/sync-local-plugin-icons.mjs`. Do not edit them directly.
|
|
41
|
+
|
|
30
42
|
## Unrecorded provenance
|
|
31
43
|
|
|
32
44
|
`apple-notes`, `excel`, `figma`, `github`, `github-dark`, `gmail`,
|
|
@@ -42,6 +54,13 @@ Tracked in LUM-3144.
|
|
|
42
54
|
Of these, only `figma`, `github`, `linear-light-logo`, `notion`, `outlook` and
|
|
43
55
|
`slack` are referenced by `BUNDLED_LOGO_URLS`; the others are unused.
|
|
44
56
|
|
|
57
|
+
`notion` is the monochrome mark on the white rounded square it carries as an
|
|
58
|
+
app icon, so the black glyph keeps its contrast on a dark theme. The path data
|
|
59
|
+
and fill are byte-identical to the asset's earlier form; only the outer
|
|
60
|
+
`viewBox`, a wrapping group transform, and the white plate behind the mark were
|
|
61
|
+
added. `plugins/mcp-catalog/notion/icon.png` gives the same asset the same
|
|
62
|
+
treatment.
|
|
63
|
+
|
|
45
64
|
## MIT notice for glincker/thesvg
|
|
46
65
|
|
|
47
66
|
```
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" role="img" aria-label="Notion">
|
|
3
|
+
<rect width="32" height="32" rx="7" fill="rgb(100%, 100%, 100%)"/>
|
|
4
|
+
<g transform="translate(6 6) scale(1.111111)">
|
|
3
5
|
<path fill-rule="nonzero" fill="rgb(0%, 0%, 0%)" fill-opacity="1" d="M 3.34375 3.15625 C 3.902344 3.609375 4.113281 3.574219 5.164062 3.503906 L 15.078125 2.910156 C 15.285156 2.910156 15.113281 2.699219 15.042969 2.667969 L 13.394531 1.476562 C 13.078125 1.230469 12.660156 0.949219 11.855469 1.019531 L 2.257812 1.722656 C 1.90625 1.753906 1.835938 1.929688 1.976562 2.070312 Z M 3.9375 5.464844 L 3.9375 15.894531 C 3.9375 16.453125 4.21875 16.664062 4.847656 16.628906 L 15.742188 16 C 16.371094 15.964844 16.441406 15.578125 16.441406 15.125 L 16.441406 4.765625 C 16.441406 4.3125 16.269531 4.066406 15.882812 4.101562 L 4.5 4.765625 C 4.078125 4.800781 3.9375 5.011719 3.9375 5.464844 Z M 14.691406 6.023438 C 14.761719 6.339844 14.691406 6.65625 14.375 6.691406 L 13.851562 6.796875 L 13.851562 14.492188 C 13.394531 14.738281 12.976562 14.878906 12.625 14.878906 C 12.066406 14.878906 11.925781 14.703125 11.503906 14.179688 L 8.070312 8.789062 L 8.070312 14.003906 L 9.15625 14.25 C 9.15625 14.25 9.15625 14.878906 8.28125 14.878906 L 5.863281 15.019531 C 5.796875 14.878906 5.863281 14.53125 6.109375 14.460938 L 6.742188 14.285156 L 6.742188 7.390625 L 5.867188 7.320312 C 5.796875 7.003906 5.972656 6.550781 6.460938 6.515625 L 9.054688 6.339844 L 12.625 11.800781 L 12.625 6.96875 L 11.714844 6.867188 C 11.644531 6.480469 11.925781 6.199219 12.273438 6.164062 Z M 1.453125 0.777344 L 11.433594 0.0429688 C 12.660156 -0.0625 12.976562 0.0078125 13.746094 0.566406 L 16.933594 2.804688 C 17.457031 3.191406 17.632812 3.296875 17.632812 3.714844 L 17.632812 16 C 17.632812 16.769531 17.351562 17.222656 16.375 17.292969 L 4.78125 17.992188 C 4.042969 18.027344 3.695312 17.925781 3.308594 17.433594 L 0.960938 14.390625 C 0.542969 13.828125 0.367188 13.410156 0.367188 12.917969 L 0.367188 2 C 0.367188 1.371094 0.648438 0.84375 1.453125 0.777344 Z M 1.453125 0.777344 "/>
|
|
6
|
+
</g>
|
|
4
7
|
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.html
CHANGED
|
@@ -333,10 +333,10 @@
|
|
|
333
333
|
</style>
|
|
334
334
|
<script type="module" crossorigin src="/assistant/assets/rolldown-runtime-BM3Ffeng.js"></script>
|
|
335
335
|
<script type="module" crossorigin src="/assistant/assets/react-B9IgSVeK.js"></script>
|
|
336
|
-
<script type="module" crossorigin src="/assistant/assets/vendor-
|
|
337
|
-
<script type="module" crossorigin src="/assistant/assets/icons-
|
|
338
|
-
<script type="module" crossorigin src="/assistant/assets/app-
|
|
339
|
-
<link rel="stylesheet" crossorigin href="/assistant/assets/app-
|
|
336
|
+
<script type="module" crossorigin src="/assistant/assets/vendor-CYmPHUS2.js"></script>
|
|
337
|
+
<script type="module" crossorigin src="/assistant/assets/icons-C0wyat6T.js"></script>
|
|
338
|
+
<script type="module" crossorigin src="/assistant/assets/app-CuJb51Ub.js"></script>
|
|
339
|
+
<link rel="stylesheet" crossorigin href="/assistant/assets/app-Bt7_4qDf.css">
|
|
340
340
|
<script>window.__VELLUM_CONFIG__={"webUrl":"https://www.vellum.ai","platformUrl":"https://platform.vellum.ai"}</script></head>
|
|
341
341
|
<body>
|
|
342
342
|
<!--
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Db as t,nh as n}from"./app-Tg6YU_tZ.js";import{j as r}from"./vendor-DYOeoIwg.js";import{t as i,x as a}from"./react-B9IgSVeK.js";import{n as o,t as s}from"./app-info-B8Mqmeak.js";var c=e(a(),1),l=i();function u(){let{t:e}=r(),i=n(),[a,u]=(0,c.useState)(null);(0,c.useEffect)(()=>{s().then(u)},[]);let f=a??d;return(0,l.jsxs)(`div`,{className:`flex h-svh w-screen flex-col items-center justify-center bg-background px-8 pt-14 pb-8 text-center text-foreground select-none`,children:[(0,l.jsx)(`h1`,{className:`mt-4 text-2xl font-semibold`,children:f.appName}),(0,l.jsx)(`p`,{className:`text-muted-foreground mt-1 mb-7 text-xs`,children:e(i===`windows`?`aboutPage.taglineWindows`:`aboutPage.taglineMacOS`)}),(0,l.jsxs)(`dl`,{className:`mb-7 grid grid-cols-[auto_auto] gap-x-4 gap-y-1.5 text-sm`,children:[(0,l.jsx)(`dt`,{className:`text-muted-foreground text-right`,children:e(`aboutPage.version`)}),(0,l.jsx)(`dd`,{className:`text-left font-mono tabular-nums select-text`,children:f.version}),(0,l.jsx)(`dt`,{className:`text-muted-foreground text-right`,children:e(`aboutPage.build`)}),(0,l.jsx)(`dd`,{className:`text-left font-mono tabular-nums select-text`,children:f.commitSha})]}),(0,l.jsx)(`a`,{href:f.website,className:`text-primary text-sm hover:underline`,onClick:e=>{t()&&(e.preventDefault(),o())},children:new URL(f.website).host}),(0,l.jsx)(`div`,{className:`text-muted-foreground mt-auto pt-6 text-[11px]`,children:f.copyright})]})}var d={appName:`Vellum`,version:`—`,commitSha:`—`,copyright:`© ${new Date().getFullYear()} Vellum`,website:`https://vellum.ai`};export{u as AboutPage};
|