decocms 4.372.3 → 4.373.0
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/client/assets/{AlertCircle-CMjsP_Tk.js → AlertCircle-3PzOAmGf.js} +1 -1
- package/dist/client/assets/{AreaChart-Bh_grNQZ.js → AreaChart-7E6DaaEO.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CjYy5Nhj.js → ArrowLeft-JCMxLp8E.js} +1 -1
- package/dist/client/assets/{ArrowRight-CLncCNat.js → ArrowRight-Cl3bzAIC.js} +1 -1
- package/dist/client/assets/{ArrowUp-Cii1LHW7.js → ArrowUp-Bmd2w7Fx.js} +1 -1
- package/dist/client/assets/{CartesianChart-CD-5y_pX.js → CartesianChart-D-MpJhL1.js} +1 -1
- package/dist/client/assets/{CheckCircle-DHXQFnpK.js → CheckCircle-Co3IBXeH.js} +1 -1
- package/dist/client/assets/{ChevronUp-DiYhGG4T.js → ChevronUp-Djmy8s04.js} +1 -1
- package/dist/client/assets/{Copy01-nMxlBfeT.js → Copy01-BYK2zIkj.js} +1 -1
- package/dist/client/assets/{CreditCard01-CWXVH3ZM.js → CreditCard01-C7PO4dVs.js} +1 -1
- package/dist/client/assets/DotsVertical-BozfeMf6.js +1 -0
- package/dist/client/assets/{Download01-BRrSA3Yx.js → Download01-Z6w2IrLj.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-fXvhmekg.js → ErrorBarContext-G3lO5Hsl.js} +1 -1
- package/dist/client/assets/{Eye-Dyg2WPG4.js → Eye-ChO6k3fk.js} +1 -1
- package/dist/client/assets/{Globe01-D6FaaFR2.js → Globe01-D3UtmZtY.js} +1 -1
- package/dist/client/assets/{Users03-Y0Jco4zL.js → Globe04-CCIm2Cf2.js} +1 -1
- package/dist/client/assets/{Image01-CxnjAzbb.js → Image01-Dx7ea-3O.js} +1 -1
- package/dist/client/assets/{Key01-CIXwHMRo.js → Key01-B8q0d-op.js} +1 -1
- package/dist/client/assets/LayoutLeft-DUo3bbMr.js +1 -0
- package/dist/client/assets/{Line-YO4Ozgbt.js → Line-DC3wc0Zn.js} +1 -1
- package/dist/client/assets/{Link01-C0FvgZZB.js → Link01-C-mBEv93.js} +1 -1
- package/dist/client/assets/{LinkExternal01-AWlhN5o7.js → LinkExternal01-uHE64k_w.js} +1 -1
- package/dist/client/assets/{Monitor01-Ccs1gh2Z.js → Monitor01-CevElukI.js} +1 -1
- package/dist/client/assets/{Package-nTbucmaQ.js → Package-C6yqPbb7.js} +1 -1
- package/dist/client/assets/{Palette-DSdn1Xis.js → Palette-B2v8R7_D.js} +1 -1
- package/dist/client/assets/{Play-lMuWOObF.js → Play-D26LBNWf.js} +1 -1
- package/dist/client/assets/{Plus-CVauOqLT.js → Plus-CoGTSnEd.js} +1 -1
- package/dist/client/assets/{SearchLg-BrrPVuXr.js → SearchLg-BvCfRAbg.js} +1 -1
- package/dist/client/assets/{SearchMd-C45D2PMI.js → SearchMd-C0e2gT30.js} +1 -1
- package/dist/client/assets/{Sector-9mXbxJ9i.js → Sector-Cztbz-wz.js} +5 -5
- package/dist/client/assets/{Settings02-Cyf85ea0.js → Settings02-azWHb0MO.js} +1 -1
- package/dist/client/assets/{Share07-wC47qn2E.js → Share07-CW1RSVqD.js} +1 -1
- package/dist/client/assets/{Stars01-oAh9h5b5.js → Stars01-Ch2E4B6o.js} +1 -1
- package/dist/client/assets/{Sun-0Ied-kyZ.js → Sun-Cx4zdBZx.js} +1 -1
- package/dist/client/assets/Tool01-DbFf2Je1.js +1 -0
- package/dist/client/assets/{Tool02-CATStXCy.js → Tool02-Hh7HLEzm.js} +1 -1
- package/dist/client/assets/{Trash01-nl-t4IoV.js → Trash01-D8ICnU7E.js} +1 -1
- package/dist/client/assets/{TrendUp01-BFAEMx9E.js → TrendUp01-ZTgT_kdi.js} +1 -1
- package/dist/client/assets/{Upload01-B4Fqdkae.js → Upload01-BoLmU8be.js} +1 -1
- package/dist/client/assets/{User01-ClMaVCaJ.js → User01-CQXsOD6P.js} +1 -1
- package/dist/client/assets/{UserSquare-B2lKdt4w.js → UserSquare-C4_QxRGQ.js} +1 -1
- package/dist/client/assets/{Users01-BFhxJVhO.js → Users01-mzXfNn0j.js} +1 -1
- package/dist/client/assets/{X-CFCE4a-Q.js → X-BmPcW1eb.js} +1 -1
- package/dist/client/assets/{XCircle-CleKT0Id.js → XCircle-jpeASVbU.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DpXsFGyJ.js → XClose-BhXJw65F.js} +1 -1
- package/dist/client/assets/{Zap-B6zkqKWB.js → Zap-Cc5rEM6R.js} +1 -1
- package/dist/client/assets/ZoomOut-DtzZmmbM.js +1 -0
- package/dist/client/assets/{access-gate-Ds4n25mC.js → access-gate-C720AIcS.js} +1 -1
- package/dist/client/assets/add-connection-dialog-DqhI8LLv.js +1 -0
- package/dist/client/assets/agent-analytics-CEaAXQWf.js +2 -0
- package/dist/client/assets/agent-app-DZehCYZl.js +1 -0
- package/dist/client/assets/agent-assets-QG4QLYi4.js +1 -0
- package/dist/client/assets/agent-automation-C9l9hEWB.js +20 -0
- package/dist/client/assets/agent-automations-7OvEQ1VY.js +1 -0
- package/dist/client/assets/agent-connect-sources-D4Eixo2_.js +1 -0
- package/dist/client/assets/agent-deck-BVRxo7rJ.js +1 -0
- package/dist/client/assets/agent-e2e-Dhn8AUR2.js +1 -0
- package/dist/client/assets/agent-experiments-DXXxqvO5.js +1 -0
- package/dist/client/assets/agent-file-CoPjYzW3.js +1 -0
- package/dist/client/assets/{agent-git-D4IYczGa.js → agent-git-Dz0OC5zZ.js} +2 -2
- package/dist/client/assets/agent-hosting-h_IXMzav.js +1 -0
- package/dist/client/assets/agent-icon-DbgbaBWC.js +1 -0
- package/dist/client/assets/agent-library-file-DLEwy6vn.js +1 -0
- package/dist/client/assets/agent-monitor-K9XcbQ8_.js +1 -0
- package/dist/client/assets/agent-overview-CHDp8hoe.js +1 -0
- package/dist/client/assets/agent-settings-Cw8w6Gap.js +1 -0
- package/dist/client/assets/{agent-site-editor-DJSdtoNU.js → agent-site-editor-DQY9pg4H.js} +13 -13
- package/dist/client/assets/agent-site-editor-code-B1APLc6I.js +2 -0
- package/dist/client/assets/agent-site-editor-content-N2XOogCr.js +2 -0
- package/dist/client/assets/agent-site-editor-preview-Dt5NU6JJ.js +518 -0
- package/dist/client/assets/agent-view-DVRDYkCo.js +1 -0
- package/dist/client/assets/{agent-view-guard-DHJpzCVR.js → agent-view-guard-DJyWI4yF.js} +1 -1
- package/dist/client/assets/agents-list-CLIUc54V.js +1 -0
- package/dist/client/assets/{ai-providers-jxGd6MbV.js → ai-providers-Dq0uWBim.js} +2 -2
- package/dist/client/assets/{alert-U2IStW1f.js → alert-D9Xs8r1J.js} +1 -1
- package/dist/client/assets/{alert-dialog-BI-B_8hq.js → alert-dialog-CMdGVc5y.js} +2 -2
- package/dist/client/assets/api-keys-BaELtPjJ.js +1 -0
- package/dist/client/assets/api-keys-DMJLQGyU.js +1 -0
- package/dist/client/assets/app-editor-CxVdHjkp.js +1 -0
- package/dist/client/assets/asset-utils-B2xrnUou.js +1 -0
- package/dist/client/assets/{auth-DhzAq_9m.js → auth-DvTDuEnH.js} +1 -1
- package/dist/client/assets/{auth-catchall-Dar7OygY.js → auth-catchall-CE_y-mnY.js} +1 -1
- package/dist/client/assets/auth-entry-BWD0wZ2A.js +1 -0
- package/dist/client/assets/{auth-split-layout-DLFqjvPt.js → auth-split-layout-tneb1o26.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DkJ4g-X5.js → authenticate-and-persist-oauth-CyEJ3ZKP.js} +1 -1
- package/dist/client/assets/automation-list-row-CJ0AVjPL.js +1 -0
- package/dist/client/assets/automation-runs-CbMZ10A-.js +1 -0
- package/dist/client/assets/automations-kGGjILm8.js +1 -0
- package/dist/client/assets/{autosend-BberXmli.js → autosend-CESqNA2a.js} +1 -1
- package/dist/client/assets/{avatar-C9HiP4eS.js → avatar-CsDZ0T22.js} +1 -1
- package/dist/client/assets/badge-BMuU0t5h.js +1 -0
- package/dist/client/assets/block-document-BydU2jcx.js +3 -0
- package/dist/client/assets/{blocks-preview-workspace-context-Bwmvvd4S.js → blocks-preview-workspace-context-CuzoVyh9.js} +1 -1
- package/dist/client/assets/breadcrumb-CV5rO8sh.js +1 -0
- package/dist/client/assets/{buckets-BndbOAGO.js → buckets-Dm9YtrYe.js} +1 -1
- package/dist/client/assets/build-improve-prompt-doc-EvTa14jr.js +2 -0
- package/dist/client/assets/bulk-category-panel-CY3h3K-9.js +1 -0
- package/dist/client/assets/calendar-BhMl9dZ9.js +1 -0
- package/dist/client/assets/capability-load-error-HRK6520w.js +1 -0
- package/dist/client/assets/category-editor-z_l9WPAc.js +1 -0
- package/dist/client/assets/{chart-8nXuVw9P.js → chart-pALnZlqd.js} +5 -5
- package/dist/client/assets/{chat-context-tZCX_cqt.js → chat-context-CHZ5Yehn.js} +6 -6
- package/dist/client/assets/{chat-draft-BCeqPSxA.js → chat-draft-CZ4LRf6I.js} +1 -1
- package/dist/client/assets/checkbox-BoN76eap.js +1 -0
- package/dist/client/assets/choose-editor-DHr5QgoP.js +1 -0
- package/dist/client/assets/{cli-auth-success-D39z_FO3.js → cli-auth-success-BOpU9sA8.js} +1 -1
- package/dist/client/assets/{client-icons-DpcP1bht.js → client-icons-BPRdY54C.js} +1 -1
- package/dist/client/assets/collapsible-D3vKPIBT.js +1 -0
- package/dist/client/assets/collection-detail-B44G83q8.js +1 -0
- package/dist/client/assets/collection-display-button-BndwflUf.js +1 -0
- package/dist/client/assets/{collection-search-J9Bt25gS.js → collection-search-BmT0oV8g.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DBeauaNS.js → collection-table-wrapper-UMxhNoR0.js} +1 -1
- package/dist/client/assets/collection-tabs-D6Sk9riW.js +1 -0
- package/dist/client/assets/combobox-BXOISFpW.js +1 -0
- package/dist/client/assets/command-bqq51nHs.js +1 -0
- package/dist/client/assets/{companion-mcps-section-xmRpNJBK.js → companion-mcps-section-7NiZEsE1.js} +1 -1
- package/dist/client/assets/connect-gdFpiJzg.js +8 -0
- package/dist/client/assets/connect-layout-BNcHFw2B.js +1 -0
- package/dist/client/assets/{connection-DD0omVHZ.js → connection-DlOqhGn3.js} +1 -1
- package/dist/client/assets/connection-card-Dh4yj-V8.js +1 -0
- package/dist/client/assets/connection-detail-Cjp3fFqG.js +1 -0
- package/dist/client/assets/{connection-form-helpers-CHlcdgAK.js → connection-form-helpers-DoXq4oCN.js} +1 -1
- package/dist/client/assets/connections-BTo7AfIR.js +1 -0
- package/dist/client/assets/{create-organization-dialog-1mI4Ad1B.js → create-organization-dialog-CjRZ3hmF.js} +1 -1
- package/dist/client/assets/{decofile-api-BNWbEMR6.js → decofile-api-DlO_JJTI.js} +1 -1
- package/dist/client/assets/{decopilot-BvepxP_-.js → decopilot-BbHxwoKU.js} +2 -2
- package/dist/client/assets/dialog-yUWKJPsU.js +1 -0
- package/dist/client/assets/discover-_mwx3kHk.js +1 -0
- package/dist/client/assets/domain-settings-DWfJmRnt.js +1 -0
- package/dist/client/assets/download-app-dialog-CnJNRM3l.js +1 -0
- package/dist/client/assets/{drawer-BIjkXMV3.js → drawer-CFueQivP.js} +1 -1
- package/dist/client/assets/{editor-D4Ls62vg.js → editor-9_pChBN4.js} +1 -1
- package/dist/client/assets/{empty-state-CyICQznD.js → empty-state-1TOptJ4i.js} +1 -1
- package/dist/client/assets/{empty-state-BdiOfgle.js → empty-state-DTENIvqH.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Dbm_cKaX.js → extract-connection-data-B7yRd0El.js} +1 -1
- package/dist/client/assets/{feature-gate-Bp7Cydio.js → feature-gate-DmyzkRdC.js} +1 -1
- package/dist/client/assets/feature-paywall-CFcsZgv5.js +1 -0
- package/dist/client/assets/file-explorer-BPttIqTX.js +2 -0
- package/dist/client/assets/{file-preview-CARebwHJ.js → file-preview-h8_PuEm0.js} +1 -1
- package/dist/client/assets/file-share-button-CYWl5jll.js +3 -0
- package/dist/client/assets/{file-type-icon-C9Qn36v4.js → file-type-icon-C7b31Eu-.js} +1 -1
- package/dist/client/assets/{folder-icon-BLBZBD_a.js → folder-icon-Cp3UZ2f7.js} +1 -1
- package/dist/client/assets/{form-CSXgIHLz.js → form-D4fabgxt.js} +1 -1
- package/dist/client/assets/{gateway-client-BuiOykcN.js → gateway-client-BqcIzR1f.js} +1 -1
- package/dist/client/assets/general-BVFviafD.js +1 -0
- package/dist/client/assets/{github-icon-huXDOAgf.js → github-icon-BJ-JIGKg.js} +1 -1
- package/dist/client/assets/home-D_wLSsVp.js +1 -0
- package/dist/client/assets/{hooks-BoX5BC-f.js → hooks-CzhqOgxt.js} +2 -2
- package/dist/client/assets/{hooks-DZOMRp7D.js → hooks-GmRpr8h8.js} +1 -1
- package/dist/client/assets/icon-button-BtmumYDv.js +1 -0
- package/dist/client/assets/index-BIAbKV8r.js +1 -0
- package/dist/client/assets/index-BiU3YmQL.js +235 -0
- package/dist/client/assets/{index-BD213WLU.js → index-Bxbv_23l.js} +1 -1
- package/dist/client/assets/index-CFPoNDBi.js +1 -0
- package/dist/client/assets/{index-Bb-Re5q8.js → index-CLccaHLm.js} +1 -1
- package/dist/client/assets/{index-BWpNlf6e.js → index-CLlrN2I7.js} +1 -1
- package/dist/client/assets/{index-DiULBiX9.js → index-CuhH8P7u.js} +1 -1
- package/dist/client/assets/index-CxyF2W3e.js +1 -0
- package/dist/client/assets/{index-DWw5wi2G.js → index-DAWDSRE3.js} +1 -1
- package/dist/client/assets/index-DEoa7bfP.js +5 -0
- package/dist/client/assets/index-DaUTlKSt.css +1 -0
- package/dist/client/assets/{index-DqT4mG5l.js → index-DmozmqiR.js} +1 -1
- package/dist/client/assets/{index-2gtoysbs.js → index-DyLXwR4J.js} +1 -1
- package/dist/client/assets/index-PXtwpYFZ.js +26 -0
- package/dist/client/assets/{index-redirect-BQTLrDGT.js → index-redirect-C_mVUP1U.js} +1 -1
- package/dist/client/assets/{index-tj4CWdxr.js → index-ui6lA5FC.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CjWlcBHD.js → infiniteQueryObserver-QHtAxfIQ.js} +1 -1
- package/dist/client/assets/infra-billing-BUNh4stc.js +1 -0
- package/dist/client/assets/input-4CSpUSQl.js +1 -0
- package/dist/client/assets/input-BGhe0a85.js +8 -0
- package/dist/client/assets/input-CRD8MdDS.js +1 -0
- package/dist/client/assets/{integration-icon-BeEdjsn9.js → integration-icon-1ySWGOUX.js} +1 -1
- package/dist/client/assets/{label-BMxIRiEr.js → label-BNElcQf4.js} +1 -1
- package/dist/client/assets/{last-preview-page-B_H0ubHa.js → last-preview-page-CriZ3Ybr.js} +1 -1
- package/dist/client/assets/layout-JObct3sA.js +1 -0
- package/dist/client/assets/legacy-agents-deep-Be8TTzCS.js +1 -0
- package/dist/client/assets/legacy-main-redirect-B7vEff38.js +1 -0
- package/dist/client/assets/library-DiWyPd02.js +161 -0
- package/dist/client/assets/{login-C4Dx9xMO.js → login-Cp8tUb0B.js} +1 -1
- package/dist/client/assets/{markdown-DGWjAeXL.js → markdown-Cyp9lJ5l.js} +3 -3
- package/dist/client/assets/{mcp-app-renderer-BTjC7Gse.js → mcp-app-renderer-swczxBq4.js} +2 -2
- package/dist/client/assets/{mcp-oauth-C4khbNJJ.js → mcp-oauth-S1Th8e_4.js} +1 -1
- package/dist/client/assets/members--h5oznU6.js +1 -0
- package/dist/client/assets/message-templates-B7sm0uFT.js +1 -0
- package/dist/client/assets/{mini-report-page-Ci4cxCz8.js → mini-report-page-gIgc_0u6.js} +1 -1
- package/dist/client/assets/mock-board-BgLaLM9b.js +90 -0
- package/dist/client/assets/{monaco-editor-CMRYkmyb.js → monaco-editor-BTTiRg3C.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-PncjnNwy.js → monitoring-stats-row-SqX44qyF.js} +1 -1
- package/dist/client/assets/multi-select-DlCEHd3Z.js +1 -0
- package/dist/client/assets/{mustache-CPZS2ebG.js → mustache-CgVU0pmm.js} +1 -1
- package/dist/client/assets/{oauth-callback-CETK2WZB.js → oauth-callback-DVF3P0k_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DqbbngEF.js → oauth-callback-ai-provider-DnZgYvOg.js} +1 -1
- package/dist/client/assets/{onboarding-B5zAGi2B.js → onboarding-KuoWylVw.js} +1 -1
- package/dist/client/assets/optimistic-project-sidebar-views-DbOixNPz.js +1 -0
- package/dist/client/assets/{org-file-open-context-BCUpiY_R.js → org-file-open-context-ZSKUsYTL.js} +1 -1
- package/dist/client/assets/{organization-choice-BNulT5zU.js → organization-choice-xHSL_jFs.js} +1 -1
- package/dist/client/assets/orgs-BZ30h814.js +1 -0
- package/dist/client/assets/{page-seo-form-BrHgBXF1.js → page-seo-form-uvAq8WeJ.js} +1 -1
- package/dist/client/assets/{pair-B46EBBjF.js → pair-TxCwxPu7.js} +8 -8
- package/dist/client/assets/plan-ladder-Jef48mB3.js +1 -0
- package/dist/client/assets/{popover-yk_ePqAA.js → popover-QnaOlHhb.js} +1 -1
- package/dist/client/assets/post-calendar-iJnYrJKe.js +1 -0
- package/dist/client/assets/post-editor-Bo6bvTrf.js +1 -0
- package/dist/client/assets/{preview-content-CfbsbElk.js → preview-content-BZw1CdZv.js} +1 -1
- package/dist/client/assets/{preview-dialog-CA2C3DS4.js → preview-dialog-CW8lM0wY.js} +1 -1
- package/dist/client/assets/primitives-K6663FBF.js +1 -0
- package/dist/client/assets/profile-SyCdTPAI.js +1 -0
- package/dist/client/assets/project-app-view-LEql7xV5.js +1 -0
- package/dist/client/assets/project-feed-B-N2eAAK.js +1 -0
- package/dist/client/assets/{project-icon-MWmzrrm8.js → project-icon-DeL96Npe.js} +1 -1
- package/dist/client/assets/project-reports-bArXCdyS.js +1 -0
- package/dist/client/assets/project-tasks-CK2bx81L.js +1 -0
- package/dist/client/assets/{prompts-4lILOzK9.js → prompts-xGBFLFgt.js} +1 -1
- package/dist/client/assets/record-editor-Bf769MFv.js +1 -0
- package/dist/client/assets/redirect-editor-DXB_8yBv.js +1 -0
- package/dist/client/assets/registry-lIOKlNUJ.js +2 -0
- package/dist/client/assets/registry-layout-hsve34X8.js +27 -0
- package/dist/client/assets/reports-CXzE7a39.js +1 -0
- package/dist/client/assets/{reports-BpxYdv2_.js → reports-cM3vPGFG.js} +2 -2
- package/dist/client/assets/reports-onboarding-VXLjX7pO.js +1 -0
- package/dist/client/assets/reports-tab-D8TZTv9m.js +2 -0
- package/dist/client/assets/repositories-CPa6SZ5V.js +1 -0
- package/dist/client/assets/repository-import-picker-IY5VTzNS.js +1 -0
- package/dist/client/assets/repository-picker-BZKrcN4Y.js +1 -0
- package/dist/client/assets/{require-capability-CmtOZnXt.js → require-capability-CimSbmsz.js} +1 -1
- package/dist/client/assets/{required-auth-layout-RoMNnMPO.js → required-auth-layout-C1pT7wzX.js} +1 -1
- package/dist/client/assets/{reset-password-BeUL8IgX.js → reset-password-BjWIunWT.js} +1 -1
- package/dist/client/assets/resizable-YNqh8MUH.js +1 -0
- package/dist/client/assets/review-settings-Be2fdXif.js +1 -0
- package/dist/client/assets/{rich-text-link-control-CHsxXHIo.js → rich-text-link-control-BExHOMAv.js} +2 -2
- package/dist/client/assets/roles-0e4U7If5.js +1 -0
- package/dist/client/assets/route-B5ZmPhcw.js +1 -0
- package/dist/client/assets/route-FGDifUW3.js +1 -0
- package/dist/client/assets/route-ajAF3k6E.js +1 -0
- package/dist/client/assets/route-page-header-DEpOaETW.js +1 -0
- package/dist/client/assets/runnable-block-editor-MngLlGqF.js +16 -0
- package/dist/client/assets/{sandbox-lifecycle-context-C7VKOJoV.js → sandbox-lifecycle-context-BfUCaKZp.js} +2 -2
- package/dist/client/assets/{schema-1zAO-l7e.js → schema-C2CxTC2d.js} +1 -1
- package/dist/client/assets/{scroll-area-C-wtbVS1.js → scroll-area-IfiqBxp0.js} +1 -1
- package/dist/client/assets/search-input-_eiEHUe0.js +1 -0
- package/dist/client/assets/search-toggle-Stpj_aWt.js +1 -0
- package/dist/client/assets/secrets-CDqpILuq.js +1 -0
- package/dist/client/assets/sections-editor-BBGWhCb9.js +2 -0
- package/dist/client/assets/select-47N7H1PV.js +1 -0
- package/dist/client/assets/select-model-BCgtIi3z.js +1 -0
- package/dist/client/assets/seo-editor-BrPfy2aB.js +1 -0
- package/dist/client/assets/separator-BlNapRt2.js +1 -0
- package/dist/client/assets/settings-tab-Dx5o1dO5.js +5 -0
- package/dist/client/assets/{sheet-i72Qx7sL.js → sheet-CvV2x5yz.js} +1 -1
- package/dist/client/assets/shell-layout-BMyUKhgs.js +1 -0
- package/dist/client/assets/{shell-layout-CuFt8bor.css → shell-layout-CE2Eihra.css} +1 -1
- package/dist/client/assets/sidebar-BMWTk3Ss.js +1 -0
- package/dist/client/assets/{skill-preview-gfYVdSdM.js → skill-preview-CqDKvwdL.js} +1 -1
- package/dist/client/assets/skills-CXSauL5l.js +1 -0
- package/dist/client/assets/sso-yxBZIEQo.js +1 -0
- package/dist/client/assets/store-registry-BsImLhdC.js +2 -0
- package/dist/client/assets/store-t7yAo4iS.js +1 -0
- package/dist/client/assets/{switch-BQFtt3BH.js → switch-DUPW32_G.js} +1 -1
- package/dist/client/assets/synced-repos-DWXwM86N.js +1 -0
- package/dist/client/assets/{table-6I6YKvFY.js → table-D1-dnD05.js} +1 -1
- package/dist/client/assets/{tabs-CLziM0Ww.js → tabs-uJDG1LT-.js} +1 -1
- package/dist/client/assets/{task-board-DrUf5p-Z.js → task-board-iF-5OywY.js} +1 -1
- package/dist/client/assets/task-route-D4VqZZFU.js +1 -0
- package/dist/client/assets/task-status-CUfsYmVV.js +1 -0
- package/dist/client/assets/taskboard-analytics-C0r-zgde.js +1 -0
- package/dist/client/assets/tasks-C5Yiiaae.js +1 -0
- package/dist/client/assets/{tasks-Drgd6az8.js → tasks-Dig9WuPL.js} +4 -4
- package/dist/client/assets/textarea-DbE6fIU0.js +1 -0
- package/dist/client/assets/thread-button-DcS2EMEc.js +1 -0
- package/dist/client/assets/{thread-intent-F-sZEflj.js → thread-intent-CnRICyzb.js} +1 -1
- package/dist/client/assets/thread-route-CTwlz0m2.js +1 -0
- package/dist/client/assets/thread-route-D_e3Th_q.js +1 -0
- package/dist/client/assets/thread-sheet-body-BPOqWNL-.js +1 -0
- package/dist/client/assets/toggle-group-ofCffann.js +1 -0
- package/dist/client/assets/toolbar-icon-button-DPZ8v-BD.js +1 -0
- package/dist/client/assets/{tooltip-DV2xHesQ.js → tooltip-BGb6Kdym.js} +1 -1
- package/dist/client/assets/{track-ZuOMvhd2.js → track-BtbUodA4.js} +1 -1
- package/dist/client/assets/{types-27TVsPN_.js → types-CyZPxJ7C.js} +3 -3
- package/dist/client/assets/usage-stats-UqDPk1rl.js +1 -0
- package/dist/client/assets/use-ai-providers-Cxi0vxkS.js +1 -0
- package/dist/client/assets/use-automations-CbK79XsB.js +1 -0
- package/dist/client/assets/{use-autosave-DOzyZumC.js → use-autosave-BEIVrcUg.js} +1 -1
- package/dist/client/assets/use-connect-companion-B3ql1eAJ.js +1 -0
- package/dist/client/assets/use-connection-C2XMAF5j.js +1 -0
- package/dist/client/assets/{use-copy-C_ctOeuP.js → use-copy-BhRM5JUh.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D1w9d4ex.js → use-create-virtual-mcp-CZM9_2b6.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-onM9TTf8.js → use-date-fns-locale-bOp1dUM9.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DqyNKPJM.js → use-debounced-autosave-DwFjgR25.js} +1 -1
- package/dist/client/assets/{use-debounced-value-B9nG3bW5.js → use-debounced-value-CoGGtS8x.js} +1 -1
- package/dist/client/assets/use-deco-credits-CKQJlHZi.js +1 -0
- package/dist/client/assets/{use-decopilot-events-BpuQrfKN.js → use-decopilot-events-CuJ7CkFw.js} +1 -1
- package/dist/client/assets/use-delete-connection-BF9eR-10.js +1 -0
- package/dist/client/assets/{use-deployment-admin-BVfgEagI.js → use-deployment-admin-5L_GV7bf.js} +1 -1
- package/dist/client/assets/{use-entitlements-Dl7pAsQ5.js → use-entitlements-BGdUcutE.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-mcfOeAAq.js → use-fast-preview-draft-url-JPVt7oTt.js} +1 -1
- package/dist/client/assets/use-file-configs-CrAdkDbm.js +1 -0
- package/dist/client/assets/use-in-settings-CaGFgkXe.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-PhBGPm8H.js → use-infinite-scroll-LXktD04_.js} +1 -1
- package/dist/client/assets/use-join-requests-Cju9AeLh.js +1 -0
- package/dist/client/assets/use-main-panel-tabs-C86PuGT_.js +1 -0
- package/dist/client/assets/use-mcp-auth-status-g0Tk-Phb.js +1 -0
- package/dist/client/assets/{use-mcp-client-e_hCatGm.js → use-mcp-client-Br7XFHza.js} +6 -6
- package/dist/client/assets/{use-mcp-prompts-DJRXjL4_.js → use-mcp-prompts-C6590AFl.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-g86k4oib.js → use-mcp-tools-DpaWZTAA.js} +1 -1
- package/dist/client/assets/use-members-buh6Kqlm.js +1 -0
- package/dist/client/assets/{use-mobile-hIijCK0k.js → use-mobile-DVkjqQzh.js} +1 -1
- package/dist/client/assets/use-navigate-to-agent-LXQlcEnV.js +1 -0
- package/dist/client/assets/use-open-billing-url-Bage8zng.js +1 -0
- package/dist/client/assets/use-org-auth-client-cknSmCL5.js +1 -0
- package/dist/client/assets/use-org-fs-CJMhF9AL.js +1 -0
- package/dist/client/assets/use-org-repo-syncs-D2u9tZI_.js +8 -0
- package/dist/client/assets/{use-org-sso-BvfIL0yq.js → use-org-sso-zl0gtui9.js} +1 -1
- package/dist/client/assets/use-organization-roles-DUhOIBRz.js +1 -0
- package/dist/client/assets/use-organization-settings-DalrVcZ1.js +1 -0
- package/dist/client/assets/{use-panel-navigate-WrD0KEYx.js → use-panel-navigate-DMG8fP2m.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-DB5jQXqg.js +1 -0
- package/dist/client/assets/use-project-scope-_WcnrAA6.js +1 -0
- package/dist/client/assets/use-registry-connections-BQknTkkv.js +1 -0
- package/dist/client/assets/use-releases-CKVB62Nw.js +1 -0
- package/dist/client/assets/use-reports-diagnostic-BezpL0wm.js +1 -0
- package/dist/client/assets/{use-route-default-main-Djaj_cL9.js → use-route-default-main-fIaACxCL.js} +1 -1
- package/dist/client/assets/use-secrets-BN4lI9QI.js +1 -0
- package/dist/client/assets/{use-section-preview-base-BOFovHh4.js → use-section-preview-base-UXUDJdZU.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BR1aW1y5.js → use-session-runtime-CGqfWswP.js} +1 -1
- package/dist/client/assets/use-tags-DUoR_C2Q.js +1 -0
- package/dist/client/assets/use-task-board-analytics-C5PpaVy-.js +1 -0
- package/dist/client/assets/use-task-metadata-Cd-4aUjL.js +1 -0
- package/dist/client/assets/use-thread-outputs-B1ptcJGL.js +1 -0
- package/dist/client/assets/{use-view-mode-B0LeaJg7.js → use-view-mode-IY2Xk-sG.js} +1 -1
- package/dist/client/assets/use-virtual-mcp-CmFx7CJY.js +1 -0
- package/dist/client/assets/useInfiniteQuery-KPKjfQBF.js +1 -0
- package/dist/client/assets/{useQueries-C-SV8tD7.js → useQueries-D09LYNgo.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-97L-Gf2j.js +1 -0
- package/dist/client/assets/{users-BiOPZ43X.js → users-Cd0bupzj.js} +1 -1
- package/dist/client/assets/utils-Bn3HByb8.js +4 -0
- package/dist/client/assets/variant-calendar-BKkugrKM.js +1 -0
- package/dist/client/assets/{variant-matcher-override-BFQoXu82.js → variant-matcher-override-dOY9vOi0.js} +1 -1
- package/dist/client/assets/view-mode-toggle-HCiL8YHS.js +1 -0
- package/dist/client/assets/{virtual-mcp-ldxphi5G.js → virtual-mcp-BaEt1QHH.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/Check-B3RSsr_D.js +0 -1
- package/dist/client/assets/ChevronRight-USKkhEpL.js +0 -1
- package/dist/client/assets/ChevronSelectorVertical-DpRb2z1l.js +0 -1
- package/dist/client/assets/Database01-C0YJpjc3.js +0 -1
- package/dist/client/assets/DotsVertical-CsjwfYzf.js +0 -1
- package/dist/client/assets/File02-BvR-HYxK.js +0 -1
- package/dist/client/assets/GitBranch01-rWb2SJK9.js +0 -1
- package/dist/client/assets/HardDrive-DNTPLPT4.js +0 -1
- package/dist/client/assets/MessageCircle01-DBcg2aiD.js +0 -1
- package/dist/client/assets/Printer-CvyxF9Jo.js +0 -1
- package/dist/client/assets/Shield01-CqB4I7qm.js +0 -1
- package/dist/client/assets/Tool01-DouqPjim.js +0 -1
- package/dist/client/assets/XClose-BgzK-Dwz.js +0 -1
- package/dist/client/assets/ZoomOut-BPxprY2s.js +0 -1
- package/dist/client/assets/add-connection-dialog-DZjTm9W3.js +0 -1
- package/dist/client/assets/agent-analytics-DmvdLg8B.js +0 -2
- package/dist/client/assets/agent-app-BvmFdS4C.js +0 -1
- package/dist/client/assets/agent-assets-czUGY90q.js +0 -1
- package/dist/client/assets/agent-automation-C5Kr5Oj3.js +0 -20
- package/dist/client/assets/agent-automations-D-3-Opoc.js +0 -1
- package/dist/client/assets/agent-connect-sources-CjhmYssY.js +0 -1
- package/dist/client/assets/agent-deck-BC5MWVm-.js +0 -1
- package/dist/client/assets/agent-e2e-DkL4Ltr6.js +0 -1
- package/dist/client/assets/agent-experiments--rXT-2aB.js +0 -1
- package/dist/client/assets/agent-file-C3XkHLMm.js +0 -1
- package/dist/client/assets/agent-hosting-DaIfm8Hu.js +0 -1
- package/dist/client/assets/agent-icon-CczrFEe7.js +0 -1
- package/dist/client/assets/agent-library-file-Dji653pU.js +0 -1
- package/dist/client/assets/agent-monitor-C-HIyaF_.js +0 -1
- package/dist/client/assets/agent-overview-cm15sxNU.js +0 -1
- package/dist/client/assets/agent-settings-XmhY1FOi.js +0 -1
- package/dist/client/assets/agent-site-editor-code-_Tz57RqE.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DOAcxz0t.js +0 -2
- package/dist/client/assets/agent-site-editor-preview-mg5Q6hoW.js +0 -518
- package/dist/client/assets/agent-view-ClMILC98.js +0 -1
- package/dist/client/assets/agents-list-rKFF5b3o.js +0 -1
- package/dist/client/assets/anchors-yqDzZN4K.js +0 -1
- package/dist/client/assets/api-keys-AIfL76r6.js +0 -1
- package/dist/client/assets/api-keys-B6ry5Bc6.js +0 -1
- package/dist/client/assets/app-editor-BZKFeBmU.js +0 -1
- package/dist/client/assets/asset-utils-DhbLEVKo.js +0 -1
- package/dist/client/assets/auth-entry-CwWjlqGu.js +0 -1
- package/dist/client/assets/automation-list-row-Btr-Kty6.js +0 -1
- package/dist/client/assets/automation-runs-CnOOOwZJ.js +0 -1
- package/dist/client/assets/automations-CtLmB1Eo.js +0 -1
- package/dist/client/assets/badge-Bu51Hlti.js +0 -1
- package/dist/client/assets/block-document-BLCekKXO.js +0 -3
- package/dist/client/assets/breadcrumb-Dhdru7Jh.js +0 -1
- package/dist/client/assets/build-improve-prompt-doc-Cedp3vV1.js +0 -2
- package/dist/client/assets/bulk-category-panel-D3c_qJDk.js +0 -1
- package/dist/client/assets/calendar-DIQx67oO.js +0 -1
- package/dist/client/assets/capability-load-error-CJMvYDf4.js +0 -1
- package/dist/client/assets/cards-BVw8sRdW.js +0 -8
- package/dist/client/assets/category-editor-C7sRrVfl.js +0 -1
- package/dist/client/assets/checkbox-jLf7fBuW.js +0 -1
- package/dist/client/assets/choose-editor-Cbu3-nVC.js +0 -1
- package/dist/client/assets/collapsible-CTgXdVQa.js +0 -1
- package/dist/client/assets/collection-detail-BF7WM7Gn.js +0 -1
- package/dist/client/assets/collection-display-button-C-4xB6xx.js +0 -1
- package/dist/client/assets/collection-tabs-CrXIJeNf.js +0 -1
- package/dist/client/assets/combobox-BHrqHmge.js +0 -1
- package/dist/client/assets/command-B-XD29Nx.js +0 -1
- package/dist/client/assets/command-palette-store-DK-56E2K.js +0 -1
- package/dist/client/assets/connect-D4qCE3TM.js +0 -8
- package/dist/client/assets/connect-layout-DGO84ImO.js +0 -1
- package/dist/client/assets/connection-card-fcMCwbTh.js +0 -1
- package/dist/client/assets/connection-detail-DS015J4e.js +0 -1
- package/dist/client/assets/connections-C98FMYyY.js +0 -1
- package/dist/client/assets/dialog-llvhXw2o.js +0 -1
- package/dist/client/assets/discover-DNPHmIfF.js +0 -1
- package/dist/client/assets/domain-settings-CXxEmIjB.js +0 -1
- package/dist/client/assets/download-app-dialog-D_4eQbbs.js +0 -1
- package/dist/client/assets/dropdown-menu-C5iafa8S.js +0 -1
- package/dist/client/assets/feature-paywall-DEy2mpV2.js +0 -1
- package/dist/client/assets/file-explorer-Bs7B2-rr.js +0 -2
- package/dist/client/assets/file-share-button-Dk1ugrdV.js +0 -3
- package/dist/client/assets/general-BYFfG0fF.js +0 -1
- package/dist/client/assets/home-DTaaCW3K.js +0 -1
- package/dist/client/assets/index-2eKztu7k.js +0 -5
- package/dist/client/assets/index-BH7uCYoT.js +0 -1
- package/dist/client/assets/index-CSd_k8Np.js +0 -1
- package/dist/client/assets/index-CiMUXLco.js +0 -26
- package/dist/client/assets/index-CpNTsElB.css +0 -1
- package/dist/client/assets/index-D4RUT3q0.js +0 -1
- package/dist/client/assets/index-D_X-LIyA.js +0 -1
- package/dist/client/assets/index-Dc7hzqoi.js +0 -235
- package/dist/client/assets/infra-billing-D6jrbNxA.js +0 -1
- package/dist/client/assets/input-DXlaTX4w.js +0 -1
- package/dist/client/assets/input-D_FfvHr0.js +0 -8
- package/dist/client/assets/input-uIV5S_EX.js +0 -1
- package/dist/client/assets/layout-Dli4i2a0.js +0 -1
- package/dist/client/assets/legacy-agents-deep-CoiLV3QJ.js +0 -1
- package/dist/client/assets/legacy-main-redirect-BZ4nzqkQ.js +0 -1
- package/dist/client/assets/library-Dste3SFA.js +0 -161
- package/dist/client/assets/members-CRtKrUle.js +0 -1
- package/dist/client/assets/message-templates-B8kOo0Kk.js +0 -1
- package/dist/client/assets/mock-board-DRa60E6i.js +0 -90
- package/dist/client/assets/multi-select-DzAZ8Rb8.js +0 -1
- package/dist/client/assets/optimistic-project-sidebar-views-CrZ9OeIk.js +0 -1
- package/dist/client/assets/orgs-B1TBklWZ.js +0 -1
- package/dist/client/assets/plan-ladder-B2pv9Y73.js +0 -1
- package/dist/client/assets/post-calendar-Bx8YiCbs.js +0 -1
- package/dist/client/assets/post-editor-B1fD7o8C.js +0 -1
- package/dist/client/assets/primitives-JiGRyPkw.js +0 -1
- package/dist/client/assets/profile-CDR0JVtv.js +0 -1
- package/dist/client/assets/project-app-view-8VWdrWMf.js +0 -1
- package/dist/client/assets/project-feed-ChJRKxhk.js +0 -1
- package/dist/client/assets/project-reports-D31utlHg.js +0 -1
- package/dist/client/assets/project-tasks-D2AAgqxo.js +0 -1
- package/dist/client/assets/record-editor-DPAL8Tq5.js +0 -1
- package/dist/client/assets/redirect-editor-EPs_GX-_.js +0 -1
- package/dist/client/assets/registry-Dw8UrRRZ.js +0 -2
- package/dist/client/assets/registry-layout-CC2lewiS.js +0 -27
- package/dist/client/assets/reports-Ch9UvBcS.js +0 -1
- package/dist/client/assets/reports-onboarding-Dhm8IBuD.js +0 -1
- package/dist/client/assets/reports-tab-BJWrZp37.js +0 -2
- package/dist/client/assets/repositories-CMIGVJwC.js +0 -1
- package/dist/client/assets/repository-import-picker-DhVniDI2.js +0 -1
- package/dist/client/assets/repository-picker-BkoSI-jm.js +0 -1
- package/dist/client/assets/resizable-Bt7dvMCc.js +0 -1
- package/dist/client/assets/review-settings-Cx_Yzx40.js +0 -1
- package/dist/client/assets/roles-BNleKwt9.js +0 -1
- package/dist/client/assets/route-CHqG9ihd.js +0 -1
- package/dist/client/assets/route-DqJoK5dW.js +0 -1
- package/dist/client/assets/route-x8jgkj5T.js +0 -1
- package/dist/client/assets/runnable-block-editor-xmOnaiFL.js +0 -16
- package/dist/client/assets/search-input-Pobww52G.js +0 -1
- package/dist/client/assets/secrets-BF5nuoR4.js +0 -1
- package/dist/client/assets/sections-editor-B1LpXw4X.js +0 -2
- package/dist/client/assets/select-BkKPcZFe.js +0 -1
- package/dist/client/assets/select-model-DPv-zVVj.js +0 -1
- package/dist/client/assets/seo-editor-9G7mQFJ5.js +0 -1
- package/dist/client/assets/settings-tab-D1V5Uszb.js +0 -5
- package/dist/client/assets/shell-layout-Ce0aCJuX.js +0 -1
- package/dist/client/assets/sidebar-C5KRz1Pj.js +0 -1
- package/dist/client/assets/skills-CgTiBPyO.js +0 -1
- package/dist/client/assets/sso-BK-aRT5P.js +0 -1
- package/dist/client/assets/store-Nm6KtwbD.js +0 -1
- package/dist/client/assets/store-registry-Cs6bPPkP.js +0 -2
- package/dist/client/assets/synced-repos-B1z4DDCt.js +0 -1
- package/dist/client/assets/task-route-BCTCy27Q.js +0 -1
- package/dist/client/assets/task-status-DhCT2ly_.js +0 -1
- package/dist/client/assets/taskboard-analytics-Cf1r1f7I.js +0 -1
- package/dist/client/assets/tasks-BNvHI7hJ.js +0 -1
- package/dist/client/assets/textarea-BU6xemAP.js +0 -1
- package/dist/client/assets/thread-route-BBf64Mwk.js +0 -1
- package/dist/client/assets/thread-route-BSYRqZDg.js +0 -1
- package/dist/client/assets/thread-sheet-body-B4OUWlMn.js +0 -1
- package/dist/client/assets/toggle-group-BiU_UDOq.js +0 -1
- package/dist/client/assets/toolbar-icon-button-PuQFE8Y9.js +0 -1
- package/dist/client/assets/usage-stats-vMRDbAUM.js +0 -1
- package/dist/client/assets/use-ai-providers-BnF5Rw_n.js +0 -1
- package/dist/client/assets/use-automations-Bo0S3g8m.js +0 -1
- package/dist/client/assets/use-connect-companion-CClQCUMS.js +0 -1
- package/dist/client/assets/use-connection-Ba04fHwa.js +0 -1
- package/dist/client/assets/use-deco-credits-BGBshlLi.js +0 -1
- package/dist/client/assets/use-delete-connection-Cns6x8UC.js +0 -1
- package/dist/client/assets/use-file-configs-DYGSdjth.js +0 -1
- package/dist/client/assets/use-join-requests-DjeVFQr9.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-sSRGo66A.js +0 -1
- package/dist/client/assets/use-mcp-auth-status-I377R0Kg.js +0 -1
- package/dist/client/assets/use-members-DPYHJDe2.js +0 -1
- package/dist/client/assets/use-navigate-to-agent-C8pu0B4z.js +0 -1
- package/dist/client/assets/use-open-billing-url-Df7K1DCF.js +0 -1
- package/dist/client/assets/use-org-auth-client-DbPU3bA-.js +0 -1
- package/dist/client/assets/use-org-fs-Du-ErRPs.js +0 -1
- package/dist/client/assets/use-org-notice-CyiiFkRG.js +0 -1
- package/dist/client/assets/use-organization-roles-FAEtbpE5.js +0 -1
- package/dist/client/assets/use-organization-settings-CKbX2SdA.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-DWzPH-Sc.js +0 -1
- package/dist/client/assets/use-project-scope-DU0-JxYr.js +0 -1
- package/dist/client/assets/use-registry-connections-SLFMHpqj.js +0 -1
- package/dist/client/assets/use-releases-CFNTwgY3.js +0 -1
- package/dist/client/assets/use-reports-diagnostic-8BvW2in8.js +0 -1
- package/dist/client/assets/use-secrets-DVry--sz.js +0 -1
- package/dist/client/assets/use-tags-CZXCbbwL.js +0 -1
- package/dist/client/assets/use-task-board-analytics-Ci1AhxvH.js +0 -1
- package/dist/client/assets/use-task-metadata-Dt9l5S_a.js +0 -1
- package/dist/client/assets/use-thread-outputs-Dq-RN0P_.js +0 -1
- package/dist/client/assets/use-virtual-mcp-DkK7ErtB.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CspLjV7h.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BiQYAhJn.js +0 -1
- package/dist/client/assets/utils-DsvmRe8M.js +0 -4
- package/dist/client/assets/variant-calendar-DImnsJnP.js +0 -1
- package/dist/client/assets/view-mode-toggle-DvGhnpsV.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as C,a0 as I,z as g,d2 as S,m,d3 as _,d4 as A,K as y,d5 as T,d6 as L,d7 as U}from"./index-BiU3YmQL.js";import{a as p,u as V,m as R}from"./use-mcp-client-Br7XFHza.js";function $(o){const t=C.c(5);let e;t[0]!==o?(e=o===void 0?{}:o,t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=V(i);return _(s.id,"VIRTUAL_MCP",l,n)}function h(o){const t=C.c(14);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=p(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=L(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const d=!!l;let u;t[9]!==c||t[10]!==d?(u={...c,enabled:d},t[9]=c,t[10]=d,t[11]=u):u=t[11];const{data:r}=m(u);let a;return t[12]!==r?(a=r??[],t[12]=r,t[13]=a):a=t[13],a}function O(o){const t=C.c(10),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=p(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=S(e.id,"VIRTUAL_MCP",i,s),t[3]=s,t[4]=e.id,t[5]=i,t[6]=l):l=t[6];const c=!!s&&!!o;let d;t[7]!==l||t[8]!==c?(d={...l,enabled:c},t[7]=l,t[8]=c,t[9]=d):d=t[9];const{data:u}=m(d);return u?.item??null}async function w(o,t,e={}){const n=await o.fetchQuery(R({connectionId:g,orgId:t.id,orgSlug:t.slug})),s=L(t.id,"VIRTUAL_MCP",n,e);return s.select(await o.fetchQuery(s))}function E(o){const t=C.c(18);let e;t[0]!==o?(e={},t[0]=o,t[1]=e):e=t[1];const n=e,{org:s}=I();let i;t[2]!==s.id||t[3]!==s.slug?(i={connectionId:g,orgId:s.id,orgSlug:s.slug},t[2]=s.id,t[3]=s.slug,t[4]=i):i=t[4];const l=p(i);let c;t[5]!==l||t[6]!==n||t[7]!==s.id?(c=U(s.id,"VIRTUAL_MCP",l,n),t[5]=l,t[6]=n,t[7]=s.id,t[8]=c):c=t[8];const d=!!l;let u;t[9]!==c||t[10]!==d?(u={...c,enabled:d},t[9]=c,t[10]=d,t[11]=u):u=t[11];const{data:r}=m(u);let a;t[12]!==r?.items?(a=r?.items??[],t[12]=r?.items,t[13]=a):a=t[13];const P=r?.totalCount,M=r?.hasMore;let f;return t[14]!==a||t[15]!==P||t[16]!==M?(f={items:a,totalCount:P,hasMore:M},t[14]=a,t[15]=P,t[16]=M,t[17]=f):f=t[17],f}function k(o){const t=C.c(3),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=V(n);return T(e.id,"VIRTUAL_MCP",o??void 0,s)}function v(o){const t=C.c(15),{org:e}=I();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=V(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=m,l=y.virtualMcpLastUsed(e.id,i),t[3]=o,t[4]=e.id,t[5]=i,t[6]=l,t[7]=c):(i=t[5],l=t[6],c=t[7]);const d=i.length>0;let u;t[8]!==s||t[9]!==i?(u=async()=>{const P=(await s.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:i}})).structuredContent??{items:[]},M=new Map;for(const f of P.items)M.set(f.id,f);return M},t[8]=s,t[9]=i,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==d||t[13]!==u?(r={queryKey:l,enabled:d,staleTime:3e4,queryFn:u},t[11]=l,t[12]=d,t[13]=u,t[14]=r):r=t[14],c(r)}function x(){const o=C.c(3),{org:t}=I();let e;o[0]!==t.id||o[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},o[0]=t.id,o[1]=t.slug,o[2]=e):e=o[2];const n=V(e);return A(t.id,"VIRTUAL_MCP",n)}export{k as a,$ as b,x as c,O as d,h as e,w as f,v as g,E as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-QHtAxfIQ.js";import{dF as i}from"./index-BiU3YmQL.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{dk as Q,dl as y,dm as w,dn as S,dp as C,o as k,dq as x,dr as q,r as p,ds as M,dt as H,du as L,dv as P,dw as O,dx as B,dy as A}from"./index-BiU3YmQL.js";function R(r,s){const e=new Set(s);return r.filter(t=>!e.has(t))}function T(r,s,e){const t=r.slice(0);return t[s]=e,t}var z=class extends Q{#i;#s;#n;#r;#e;#t;#o;#u;#h;#a=[];constructor(r,s,e){super(),this.#i=r,this.#r=e,this.#n=[],this.#e=[],this.#s=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#e.forEach(r=>{r.subscribe(s=>{this.#f(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#e.forEach(r=>{r.destroy()})}setQueries(r,s){this.#n=r,this.#r=s,y.batch(()=>{const e=this.#e,t=this.#d(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=e.length!==i.length,c=i.some((o,f)=>o!==e[f]),d=u||c,b=d?!0:n.some((o,f)=>{const g=this.#s[f];return!g||!w(o,g)});!d&&!b||(d&&(this.#a=t,this.#e=i),this.#s=n,this.hasListeners()&&(d&&(R(e,i).forEach(o=>{o.destroy()}),R(i,e).forEach(o=>{o.subscribe(f=>{this.#f(o,f)})})),this.#p()))})}getCurrentResult(){return this.#s}getQueries(){return this.#e.map(r=>r.getCurrentQuery())}getObservers(){return this.#e}getOptimisticResult(r,s){const e=this.#d(r),t=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=e.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,s,i),()=>this.#c(t,e)]}#c(r,s){return s.map((e,t)=>{const i=r[t];return e.defaultedQueryOptions.notifyOnChangeProps?i:e.observer.trackResult(i,n=>{s.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,s,e){if(s){const t=this.#h,i=e!==void 0&&t!==void 0&&(t.length!==e.length||e.some((n,u)=>n!==t[u]));return(!this.#t||this.#s!==this.#u||i||s!==this.#o)&&(this.#o=s,this.#u=this.#s,e!==void 0&&(this.#h=e),this.#t=S(this.#t,s(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#e.some((r,s)=>r.options.suspense&&this.#s[s]?.data===void 0)}#d(r){const s=new Map;this.#e.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=s.get(i);n?n.push(t):s.set(i,[t])});const e=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=s.get(i.queryHash)?.shift()??new C(this.#i,i);e.push({defaultedQueryOptions:i,observer:u})}),e}#f(r,s){const e=this.#e.indexOf(r);e!==-1&&(this.#s=T(this.#s,e,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#s,this.#a),s=this.#b(),e=this.#t,t=s?e:this.#l(r,this.#r?.combine);(s||e!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#s)})})}}};function U({queries:r,...s},e){const t=k(e),i=x(),n=q(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{M(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new z(t,u,s)),[d,b,o]=c.getOptimisticResult(u,s.combine),f=!i&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>f?c.subscribe(y.batchCalls(h)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,s)},[u,s,c]);const m=d.some((h,a)=>O(u[a],h))?d.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{U as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-QHtAxfIQ.js";import{dF as u,dg as n}from"./index-BiU3YmQL.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,
|
|
1
|
+
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as I,K as J,t as Q,B as W}from"./index-BiU3YmQL.js";import{C as G}from"./collection-table-wrapper-UMxhNoR0.js";import{E as L}from"./empty-state-1TOptJ4i.js";import{S as H}from"./search-input-_eiEHUe0.js";import{A as X}from"./avatar-CsDZ0T22.js";import{B as D}from"./badge-BMuU0t5h.js";import{u as Z}from"./use-debounced-value-CoGGtS8x.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BtXRrtv4.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-D1-dnD05.js";import"./ArrowUp-Bmd2w7Fx.js";import"./SearchMd-C0e2gT30.js";import"./User01-CQXsOD6P.js";import"./differenceInSeconds-C3x8sHUj.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),k=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:P,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=ie,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==P?.users?(b=P?.users??[],e[12]=P?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===k||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as W,s as E,i as w}from"./ZoomOut-DtzZmmbM.js";import{a as j}from"./Image01-Dx7ea-3O.js";function I(e){if(!e||e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;try{const t=decodeURIComponent(e);return!!(t.includes("\\")||t.includes("..")||t.includes("\0"))}catch{return!0}}function L(e){if(I(e))throw new Error(`Invalid block key: ${e||"(empty)"}`)}function C(e){try{return decodeURIComponent(e)}catch{return e}}function P(e){return L(e),encodeURIComponent(e)}function G(e){return`.deco/blocks/${P(e)}.json`}const v=1e4,F=3;function y(e){return e.trim()?(e.startsWith("/")?e:`/${e}`).replace(/\/+/g,"/"):"/"}function x(e){return e.startsWith("/")?e.slice(1):e}function z(e){const t=x(e);return!t||t.includes("..")||t.includes("\\")?!1:t.startsWith(".deco/blocks/")||!t.startsWith("/")&&!t.includes("://")}function h(e){return e.trim()?e.startsWith("/")?e:`/${e}`:"/"}function $(e){const t=h(e);if(t==="/")return"/";const n=t.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function D(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function _(e,t){return t==="directory"?e:$(e)}function M(e){const t=e.trim();return t?t.includes("/")||t.includes("\\")||t.includes("..")||t.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function B(e){const t=x(e);return t?t.split("/").filter(Boolean).length:0}function S(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function H(e,t){return B(e)>=F&&!t.has(e)}function q(e,t,n=[]){const r=x(e);if(t.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return t.some(o=>o.startsWith(s))||n.some(o=>o.startsWith(s))}function U(e){const t=x(e),n=".deco/blocks/";if(!t.startsWith(n)||!t.endsWith(".json"))return null;const r=t.slice(n.length,-5);return C(r)}function A(e){if(!e)return"plaintext";const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?"typescript":t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?"javascript":t.endsWith(".json")?"json":t.endsWith(".md")||t.endsWith(".mdx")?"markdown":t.endsWith(".css")?"css":t.endsWith(".scss")?"scss":t.endsWith(".html")?"html":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".xml")||t.endsWith(".svg")?"xml":t.endsWith(".py")?"python":t.endsWith(".sql")?"sql":t.endsWith(".sh")?"shell":"plaintext"}const T="#94a3b8";function X(e){const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?{Icon:W,color:"#3b82f6"}:t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?{Icon:W,color:"#d9a441"}:t.endsWith(".json")?{Icon:E,color:"#cb9b3f"}:t.endsWith(".css")||t.endsWith(".scss")?{Icon:W,color:"#06b6d4"}:t.endsWith(".html")||t.endsWith(".xml")?{Icon:W,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(t)?{Icon:j,color:"#a855f7"}:t.endsWith(".md")||t.endsWith(".mdx")?{Icon:w,color:"#64748b"}:{Icon:w,color:T}}function K(e){const t=y(e).split("/").filter(Boolean),n=["/"];let r="";for(const s of t.slice(0,-1))r+=`/${s}`,n.push(r);return n}function V(e,t=[]){const n={path:"/",children:[]},r=new Map,s=a=>{let i=r.get(a.path);return i||(i=new Map,r.set(a.path,i)),i},o=a=>{const c=y(a).split("/").filter(Boolean);let l=n,m="";for(const f of c){m+=`/${f}`;const g=s(l);let d=g.get(f);d?d.kind==="file"&&(d.kind="directory"):(d={name:f,path:m,kind:"directory",children:[]},l.children.push(d),g.set(f,d)),l=d}};for(const a of e){const c=y(a).split("/").filter(Boolean);let l=n,m="";c.forEach((f,g)=>{m+=`/${f}`;const d=g===c.length-1,k=s(l);let p=k.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),k.set(f,p)),l=p})}for(const a of t)o(h(a));const u=a=>{a.sort((i,c)=>i.kind!==c.kind?i.kind==="directory"?-1:1:i.name.localeCompare(c.name));for(const i of a)i.children.length>0&&u(i.children)};return u(n.children),n.children}function N(e,t,n=0){const r=[];for(const s of e)if(s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&t.has(s.path)))for(const o of N(s.children,t,n+1))r.push(o);return r}function J(e){const t=[];for(const n of e.split(`
|
|
2
|
+
`)){if(!n)continue;const r=n.indexOf(":");if(r<0)continue;const s=n.indexOf(":",r+1);if(s<0)continue;const o=Number.parseInt(n.slice(r+1,s),10);Number.isFinite(o)&&t.push({path:h(n.slice(0,r)),line:o,text:n.slice(s+1)})}return t}function Q(e,t,n){const r=t.trim().toLowerCase();if(!r)return[];const s=[];for(const o of e)if((o.split("/").pop()??o).toLowerCase().includes(r)&&(s.push(h(o)),s.length>=n))break;return s}const b=24;function Y(e,t){const n=e.replace(/^\s+/,""),r=t.trim().toLowerCase();if(!r)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const s=n.toLowerCase().indexOf(r);if(s<0)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const o=s>b,u=o?n.slice(s-b):n,a=u.toLowerCase(),i=[];let c=0;for(;;){const l=a.indexOf(r,c);if(l<0){c<u.length&&i.push({text:u.slice(c),match:!1});break}l>c&&i.push({text:u.slice(c,l),match:!1}),i.push({text:u.slice(l,l+r.length),match:!0}),c=l+r.length}return{leadingEllipsis:o,segments:i}}function Z(e){const t=[],n=new Map;for(const r of e){let s=n.get(r.path);s||(s={path:r.path,matches:[]},n.set(r.path,s),t.push(s)),s.matches.push(r)}return t}function tt(e){return e.split(`
|
|
3
|
+
`).map(t=>t.replace(/^\d+\t/,"")).join(`
|
|
4
|
+
`)}export{F as E,G as a,L as b,v as c,C as d,V as e,N as f,A as g,Z as h,z as i,_ as j,h as k,X as l,$ as m,K as n,Y as o,H as p,D as q,q as r,tt as s,x as t,Q as u,M as v,J as w,U as x,S as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as K,b as X,r as Z,j as i,l as rt,B as tt,an as ut}from"./index-BiU3YmQL.js";import{o as ht,Q as at,q as xt}from"./agent-icon-DbgbaBWC.js";import{L as gt}from"./label-BNElcQf4.js";import{S as lt}from"./scroll-area-IfiqBxp0.js";import{S as bt}from"./switch-DUPW32_G.js";import{T as vt,c as yt,a as jt}from"./tooltip-BGb6Kdym.js";import{V as Tt}from"./view-mode-toggle-HCiL8YHS.js";import{M as ct,q as mt,t as Nt,v as _t,w as kt,x as U,W as wt}from"./agent-site-editor-content-N2XOogCr.js";import"./AlertCircle-3PzOAmGf.js";import"./Tool01-DbFf2Je1.js";import"./ArrowUp-Bmd2w7Fx.js";import"./ArrowLeft-JCMxLp8E.js";import"./Tool02-Hh7HLEzm.js";import"./ArrowRight-Cl3bzAIC.js";import"./TrendUp01-ZTgT_kdi.js";import"./ZoomOut-DtzZmmbM.js";import"./Globe04-CCIm2Cf2.js";import"./CheckCircle-Co3IBXeH.js";import"./ChevronUp-Djmy8s04.js";import"./UserSquare-C4_QxRGQ.js";import"./Copy01-BYK2zIkj.js";import"./CreditCard01-C7PO4dVs.js";import"./DotsVertical-BozfeMf6.js";import"./Download01-Z6w2IrLj.js";import"./Settings02-azWHb0MO.js";import"./Eye-ChO6k3fk.js";import"./Share07-CW1RSVqD.js";import"./Globe01-D3UtmZtY.js";import"./XClose-BhXJw65F.js";import"./Image01-Dx7ea-3O.js";import"./Key01-B8q0d-op.js";import"./LayoutLeft-DUo3bbMr.js";import"./Link01-C-mBEv93.js";import"./LinkExternal01-uHE64k_w.js";import"./Monitor01-CevElukI.js";import"./Sun-Cx4zdBZx.js";import"./Package-C6yqPbb7.js";import"./Palette-B2v8R7_D.js";import"./Play-D26LBNWf.js";import"./Plus-CoGTSnEd.js";import"./SearchLg-BvCfRAbg.js";import"./SearchMd-C0e2gT30.js";import"./Stars01-Ch2E4B6o.js";import"./Trash01-D8ICnU7E.js";import"./Upload01-BoLmU8be.js";import"./User01-CQXsOD6P.js";import"./Users01-mzXfNn0j.js";import"./XCircle-jpeASVbU.js";import"./X-BmPcW1eb.js";import"./Zap-Cc5rEM6R.js";import"./select-47N7H1PV.js";import"./index-DAWDSRE3.js";import"./agent-view-guard-DJyWI4yF.js";import"./use-main-panel-tabs-C86PuGT_.js";import"./use-route-default-main-fIaACxCL.js";import"./use-connection-C2XMAF5j.js";import"./use-mcp-client-Br7XFHza.js";import"./auth-DvTDuEnH.js";import"./use-mcp-tools-DpaWZTAA.js";import"./use-virtual-mcp-CmFx7CJY.js";import"./types-CyZPxJ7C.js";import"./utils-CVEq3hMx.js";import"./use-project-scope-_WcnrAA6.js";import"./github-repo-BknN0SVI.js";import"./index-BIAbKV8r.js";import"./chat-context-CHZ5Yehn.js";import"./use-panel-navigate-DMG8fP2m.js";import"./thread-route-CTwlz0m2.js";import"./autosend-CESqNA2a.js";import"./thread-intent-CnRICyzb.js";import"./slugify-CEUa2lfQ.js";import"./hooks-GmRpr8h8.js";import"./backoff-8mStPHYB.js";import"./task-board-iF-5OywY.js";import"./schema-C2CxTC2d.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-BGdUcutE.js";import"./use-ai-providers-Cxi0vxkS.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CuJ7CkFw.js";import"./use-organization-settings-DalrVcZ1.js";import"./gateway-client-BqcIzR1f.js";import"./dialog-yUWKJPsU.js";import"./drawer-CFueQivP.js";import"./collection-search-BmT0oV8g.js";import"./use-mobile-DVkjqQzh.js";import"./use-mcp-prompts-C6590AFl.js";import"./index-CuhH8P7u.js";import"./form-D4fabgxt.js";import"./input-4CSpUSQl.js";import"./org-file-open-context-ZSKUsYTL.js";import"./input-BGhe0a85.js";import"./shell-layout-BMyUKhgs.js";import"./avatar-CsDZ0T22.js";import"./download-app-dialog-CnJNRM3l.js";import"./command-bqq51nHs.js";import"./index-Bxbv_23l.js";import"./integration-icon-1ySWGOUX.js";import"./project-icon-DeL96Npe.js";import"./required-auth-layout-C1pT7wzX.js";import"./use-org-sso-zl0gtui9.js";import"./chat-draft-CZ4LRf6I.js";import"./use-session-runtime-CGqfWswP.js";import"./usage-stats-UqDPk1rl.js";import"./use-copy-BhRM5JUh.js";import"./markdown-Cyp9lJ5l.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-uJDG1LT-.js";import"./use-deco-credits-CKQJlHZi.js";import"./toggle-group-ofCffann.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-Bage8zng.js";import"./decopilot-BbHxwoKU.js";import"./checkbox-BoN76eap.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-QnaOlHhb.js";import"./index-CLccaHLm.js";import"./input-CRD8MdDS.js";import"./hooks-CzhqOgxt.js";import"./use-org-fs-CJMhF9AL.js";import"./question-004-sINsf4GQ.js";import"./use-members-buh6Kqlm.js";import"./use-org-auth-client-cknSmCL5.js";import"./feature-paywall-CFcsZgv5.js";import"./plan-ladder-Jef48mB3.js";import"./add-connection-dialog-DqhI8LLv.js";import"./extract-connection-data-B7yRd0El.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-DlOqhGn3.js";import"./connection-card-Dh4yj-V8.js";import"./use-registry-connections-BQknTkkv.js";import"./useInfiniteQuery-KPKjfQBF.js";import"./infiniteQueryObserver-QHtAxfIQ.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DbE6fIU0.js";import"./connection-form-helpers-DoXq4oCN.js";import"./authenticate-and-persist-oauth-CyEJ3ZKP.js";import"./mcp-oauth-S1Th8e_4.js";import"./collection-tabs-D6Sk9riW.js";import"./badge-BMuU0t5h.js";import"./use-infinite-scroll-LXktD04_.js";import"./useSuspenseInfiniteQuery-97L-Gf2j.js";import"./pair-TxCwxPu7.js";import"./collapsible-D3vKPIBT.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-swczxBq4.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-CvV2x5yz.js";import"./use-navigate-to-agent-LXQlcEnV.js";import"./use-thread-outputs-B1ptcJGL.js";import"./file-type-icon-C7b31Eu-.js";import"./sandbox-lifecycle-context-BfUCaKZp.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-Cd-4aUjL.js";import"./use-project-native-view-presence-DB5jQXqg.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-CrAdkDbm.js";import"./site-slug-uya6Wp4-.js";import"./virtual-mcp-BaEt1QHH.js";import"./feature-gate-DmyzkRdC.js";import"./alert-dialog-CMdGVc5y.js";import"./runnable-block-editor-MngLlGqF.js";import"./decofile-api-DlO_JJTI.js";import"./utils-Bn3HByb8.js";import"./claim-phase-copy-0btUuJoC.js";import"./monaco-editor-BTTiRg3C.js";import"./editor-9_pChBN4.js";import"./calendar-BhMl9dZ9.js";import"./rich-text-link-control-BExHOMAv.js";import"./safe-image-url-D5z803Ot.js";import"./search-input-_eiEHUe0.js";import"./use-debounced-value-CoGGtS8x.js";import"./asset-utils-B2xrnUou.js";import"./sandbox-git-api-CMdpE2TE.js";import"./mustache-CgVU0pmm.js";import"./empty-state-1TOptJ4i.js";import"./github-icon-BJ-JIGKg.js";import"./repository-import-picker-IY5VTzNS.js";import"./repository-picker-BZKrcN4Y.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Mt=new Date(-864e13),Ct=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const n=o?new Date(t):Mt,a=s?new Date(r):Ct;return Number.isNaN(n.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=n.getTime()?null:{start:n,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,n=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of n)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function J(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);n.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<n.length;l++){const m=n[l];m&&typeof m=="object"&&J(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)J(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&J(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))J(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const n=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${n})`,text:"white",border:`oklch(0.50 0.14 ${n})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=i.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let n;t[2]!==r.innerPath?(n=r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=n):n=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=i.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(m=i.jsx(jt,{children:i.jsxs("div",{className:"text-xs",children:[s,n,a,l]})}),t[13]=s,t[14]=n,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const it=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${it}px, #000 calc(100% - ${it}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:n,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==n?(b=i.jsx("span",{className:"truncate",children:n}),t[16]=n,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=i.jsx(vt,{asChild:!0,children:i.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=i.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=i.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function wi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=i.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M=i.jsx(ut,{size:16}),t[22]=M):M=t[22];let $;t[23]!==d||t[24]!==k?($=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:M}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let C;t[26]!==a?(C=a.getFullYear(),t[26]=a,t[27]=C):C=t[27];let w;t[28]!==L||t[29]!==C?(w=i.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",C]}),t[28]=L,t[29]=C,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=i.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),i.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=i.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(xt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=i.jsx(Tt,{value:s,onValueChange:n,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==R||t[57]!==H?(z=i.jsxs("div",{className:"flex items-center gap-4",children:[R,H]}),t[56]=R,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=i.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?i.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?i.jsx(Qt,{monthStart:a,variants:f,colorMap:g}):i.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=i.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=n):n=t[0];let a;return t[1]!==o||t[2]!==s?(a=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[n,o>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,nt=2,st=28,qt=6;function Qt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Jt,0),T=st+E*(et+nt)+8;return i.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return i.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:i.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+nt),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,M=d.variant.openEnd&&x===f.length-1;return i.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:M,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&i.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else n=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=i.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==m||t[15]!==p?(h=i.jsx(n,{className:m,children:p}),t[13]=n,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Jt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return i.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const Q=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,n=r,a=U(r,Q),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-n.getTime(),h=w=>(Math.max(n.getTime(),Math.min(a.getTime(),w.getTime()))-n.getTime())/p*100;let f;t[0]!==n?(f=(w,j)=>U(n,j),t[0]=n,t[1]=f):f=t[1];const g=Array.from({length:Q},f),u=c.getTime()>=n.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=i.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=i.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=i.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let M;t[13]!==x||t[14]!==u?(M=u!==null&&i.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:i.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=M):M=t[15];const $=m.map(w=>{const[j,R]=w,B=dt(s,j),V=R[0]?.blockLabel??j;return i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:i.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>i.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),i.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),i.jsxs("div",{className:"relative flex-1 h-full",children:[i.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${Q}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),n.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),H=h(new Date(O))-P;return i.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==M||t[18]!==$?(L=i.jsxs("div",{className:T,children:[k,M,$]}),t[16]=k,t[17]=M,t[18]=$,t[19]=L):L=t[19];let C;return t[20]!==b||t[21]!==L?(C=i.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=C):C=t[22],C}function ee(e,t){return i.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return i.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{wi as VariantCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as f,G as $}from"./runnable-block-editor-
|
|
1
|
+
import{F as f,G as $}from"./runnable-block-editor-MngLlGqF.js";const l="x-deco-matchers-override";function h({pageKey:a,prefix:r,variants:t,selectedIndex:n,decofile:i,meta:s}){if(!a||n<0||n>=t.length)return[];const o=[];for(let e=0;e<=n;e++){const u=t[e];if(!u)continue;const c=u.rule,v=e===n?"1":"0",d=(f(c,i,s)?$(c,i,s):null)??`${a}@${r}.${e}.rule`;o.push(`${d}=${v}`)}return o}function B(a,r,t,n){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:a,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:n})}function P({pageKey:a,page:r,sectionIndex:t,sectionLazy:n,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value`:"sections"}.${t}${n?".section":""}.variants`,v=Array.isArray(i.variants)?i.variants:[];return h({pageKey:a,prefix:c,variants:v,selectedIndex:s,decofile:o,meta:e})}function x(a,r){if(r.length===0)return a;try{const t=new URL(a,"http://local");t.searchParams.delete(l);for(const n of r)t.searchParams.append(l,n);return a.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return a}}export{P as a,B as b,x as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as $,r as T,l as d,j as i}from"./index-BiU3YmQL.js";import{c as k,T as I,a as P}from"./tooltip-BGb6Kdym.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function B(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,b=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[f,S]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),m=R.current[e];m&&S({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.useEffect(g,p);const l=M[_];let n;t[6]!==z?(n=d("relative flex gap-0 bg-muted classic:rounded-lg compact:rounded-full",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==b||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,m)=>{const j=i.jsxs("button",{ref:V=>{R.current[m]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:d("relative z-10 flex items-center justify-center gap-2 classic:rounded-lg compact:rounded-full transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",b?"flex-1 h-12 px-4":e.label?d(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:d("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",l.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:d("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=l,t[9]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"h-12":l.button;let c;t[14]!==w?(c=d("absolute z-0 bg-background classic:rounded-lg compact:rounded-full border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=c):c=t[15];const W=`${f.left}px`,N=`${f.width}px`;let r;t[16]!==f.opacity||t[17]!==W||t[18]!==N?(r={left:W,width:N,opacity:f.opacity},t[16]=f.opacity,t[17]=W,t[18]=N,t[19]=r):r=t[19];let u;t[20]!==c||t[21]!==r?(u=i.jsx("div",{className:c,style:r}),t[20]=c,t[21]=r,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aa as a,ab as e,at as l,bq as t,bp as s,bs as o,cy as c,br as d,dI as A,cz as _,bt as v}from"./index-Dc7hzqoi.js";const w=a({connection_id:e().describe("Connection ID"),selected_tools:t(e()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),u=500,y=200,m=200,R=200,E=20,k=50,U=100,P=20,T=100,C=50,D=100,N=50,O=8192,S=w.extend({selected_tools:t(e()).max(u).nullable().optional().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).max(u).nullable().optional().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).max(u).nullable().optional().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),L=a({connectionId:e(),toolName:e(),label:e(),icon:e().nullable().optional()}),V=a({id:e().describe("Stable id; used as React key and ?tab= value"),title:e().describe("Tab label"),icon:e().optional().describe("Optional lucide icon name"),view:a({type:c("ext-app"),appId:e(),args:d(e(),v()).optional()})}),x=o(["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"]),ce=o(["on","off"]),X=new Map([["manual","on"],["auto","on"]]),B=o(["on","off","manual","auto"]);function F(n){if(!n)return null;const i=X.get(n);return i||(n==="on"||n==="off"?n:null)}const H=a({defaultMainView:a({type:e(),id:e().optional(),toolName:e().optional()}).nullable().optional(),chatDefaultOpen:s().nullable().optional(),cmsDefaultOpen:s().nullable().optional(),cms:B.nullable().optional().describe("How this agent offers content editing. Absent means on; the retired `manual` / `auto` read as on too."),sidebarViews:t(x).max(10).nullable().optional().describe("Deprecated layout-scoped sidebar selections. Read only as a fallback when metadata.sidebarViews is absent."),tabs:t(V).max(P).optional()});function de(n){return F(n?.cms)??"on"}function pe(n,i){const r=i==="off"&&n?.defaultMainView?.type==="content";return{...n,cms:i,cmsDefaultOpen:null,...r?{defaultMainView:{type:"site-editor"}}:{}}}const f=a({tileId:e().optional(),connectionId:e().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:e().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:e().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:d(e(),v()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:l().int().positive().optional(),maxHeight:l().int().positive().optional()}),G=a({banner:e().nullable().optional(),bannerColor:e().nullable().optional(),icon:e().nullable().optional(),themeColor:e().nullable().optional(),pinnedViews:t(L).max(U).nullable().optional(),layout:H.nullable().optional(),homeTile:f.nullable().optional(),homeTiles:t(f).max(E).nullable().optional(),homePrompts:t(e()).max(k).nullable().optional()}),j=/^[A-Za-z_][A-Za-z0-9_]*$/,g=e().min(1).regex(j,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),z=_("kind",[a({key:g,kind:c("literal"),value:e().max(O)}),a({key:g,kind:c("secret"),secretId:e().min(1)})]),q=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,K=a({host:e().min(1).regex(q).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:e().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),W=a({selected:e().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:e().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:e().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:t(z).max(D).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:t(K).max(N).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),Z=a({url:e().describe("GitHub repository URL"),owner:e().describe("Repository owner"),name:e().describe("Repository name"),installationId:l().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:e().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials."),repositoryId:e().optional().describe("First-class repository (REPOSITORY_LINK) backing this binding. When set, credentials come from the repository's git provider account rather than connectionId.")}),Y=o(["agent-sandbox","local-api"]),$={sandboxHandle:e().describe("Provider-specific handle"),previewUrl:e().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:e().nullable().optional().describe("Direct sandbox API URL for runtimes that expose one. Equal to previewUrl for local-api; null/absent for AgentSandbox, which routes control traffic through hosted Studio."),createdAt:l().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:a({packageManager:e().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:e().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:e().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},M=a($);function be(n){if(!n||typeof n!="object"||Array.isArray(n))return{};const i=n,r={};for(const[p,b]of Object.entries(i))if(!(!b||typeof b!="object")&&!(p!=="agent-sandbox"&&p!=="local-api"))try{r[p]=M.parse(b)}catch{}return r}const J=d(e().describe("userId"),d(e().describe("branch"),A(Y,M))),Q=a({id:e().describe("Stable identifier for this knowledge file"),name:e().describe("File name shown in the UI"),kind:o(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:e().describe("Org filesystem (Library) volume the file lives in"),path:e().describe("Path within the volume"),url:e().describe("Same-origin URL to read the file (display/download)"),contentType:e().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:l().nullable().optional().describe("File size in bytes"),addedAt:e().describe("ISO timestamp when the file was attached")}),ee=t(Q).max(T).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),te=o(["smart","code-review","open"]),ae=te.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),ne=s().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),ie=s().nullable().optional().describe("EXPERIMENTAL: with Fast Preview on, refresh content edits via an in-place /live/previews render (no commit, no reload) instead of a commit + re-navigation. Deco-runtime preview targets only. Requires fastPreview."),oe=e().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),se=a({branch:e().describe("Git branch backing this release"),name:e().describe('User-facing name, e.g. "Black Friday 2026"'),color:e().describe("Dot color token shown in the version switcher"),createdBy:e().optional().describe("User ID who created the release"),createdAt:e().optional().describe("ISO 8601 creation timestamp")}),le=t(se).max(C).nullable().optional().describe("Curated list of named, branch-backed releases shown in the version switcher. The base branch ('No ar') is derived, not stored here."),h={instructions:e().nullable().optional().describe("Instructions also used as system prompt"),enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs"),subAgents:t(e()).max(R).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:e().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:G.nullable().optional().describe("UI customization settings"),sidebarViews:t(x).max(10).nullable().optional().describe("Project views selected for the sidebar. Interpret as an exact list when sidebarViewsVersion is 1; unversioned values use legacy native-only semantics. Runtime presence gates still apply."),sidebarViewsVersion:c(1).optional().describe("Version 1 marks metadata.sidebarViews as an exact list that can disable legacy default rows."),githubRepo:Z.nullable().optional().describe("Linked GitHub repository"),runtime:W.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),knowledge:ee,siteSlug:e().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:ae,previewServerUrl:oe,productionUrl:e().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:s().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:ne,releases:le,fastPreviewInPlace:ie},ue=a({id:e().describe("Unique identifier"),title:e().describe("Human-readable name"),description:e().nullable().describe("Description"),icon:e().nullable().describe("Icon URL"),created_at:e().describe("Creation timestamp"),updated_at:e().describe("Last update timestamp"),created_by:e().describe("User ID who created this item"),updated_by:e().optional().describe("User ID who last updated this item"),organization_id:e().describe("Organization ID this item belongs to"),status:o(["active","inactive"]).describe("Current status"),pinned:s().describe("Whether this space is pinned to the sidebar"),metadata:a(h).extend({instructions:e().nullable().describe("Instructions also used as system prompt"),sandboxMap:J.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:t(w).describe("Connections with their selected tools, resources, and prompts")}),I=a({title:e().min(1).max(120).describe("Short label shown on the chip"),description:e().max(280).optional().describe("One-line subtitle shown under the title"),text:e().min(1).max(4e3).describe("The message sent to the agent when the prompt is clicked")});a({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().max(500).nullable().optional().describe("Optional description"),icon:e().nullish().describe("Optional icon URL"),status:o(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:s().optional().default(!1).describe("Pin to sidebar"),metadata:a(h).extend({enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs")}).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:t(I).max(20).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});a({title:e().min(1).max(255).optional().describe("New name"),description:e().max(500).nullable().optional().describe("New description (null to clear)"),icon:e().nullish().describe("New icon URL"),status:o(["active","inactive"]).optional().describe("New status"),pinned:s().optional().describe("Pin/unpin from sidebar"),metadata:a(h).extend({enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs")}).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).optional().describe("New connections (replaces existing)"),prompts:t(I).max(20).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});export{ce as C,j as E,q as S,ue as V,be as p,de as r,pe as w};
|
|
1
|
+
import{ao as a,ap as e,aI as l,bL as t,bK as s,bN as o,cU as c,bM as d,dR as A,cV as _,bO as v}from"./index-BiU3YmQL.js";const w=a({connection_id:e().describe("Connection ID"),selected_tools:t(e()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),u=500,y=200,m=200,R=200,E=20,U=50,k=100,P=20,T=100,C=50,D=100,N=50,O=8192,S=w.extend({selected_tools:t(e()).max(u).nullable().optional().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).max(u).nullable().optional().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).max(u).nullable().optional().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),L=a({connectionId:e(),toolName:e(),label:e(),icon:e().nullable().optional()}),V=a({id:e().describe("Stable id; used as React key and ?tab= value"),title:e().describe("Tab label"),icon:e().optional().describe("Optional lucide icon name"),view:a({type:c("ext-app"),appId:e(),args:d(e(),v()).optional()})}),x=o(["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"]),ce=o(["on","off"]),X=new Map([["manual","on"],["auto","on"]]),B=o(["on","off","manual","auto"]);function F(n){if(!n)return null;const i=X.get(n);return i||(n==="on"||n==="off"?n:null)}const H=a({defaultMainView:a({type:e(),id:e().optional(),toolName:e().optional()}).nullable().optional(),chatDefaultOpen:s().nullable().optional(),cmsDefaultOpen:s().nullable().optional(),cms:B.nullable().optional().describe("How this agent offers content editing. Absent means on; the retired `manual` / `auto` read as on too."),sidebarViews:t(x).max(10).nullable().optional().describe("Deprecated layout-scoped sidebar selections. Read only as a fallback when metadata.sidebarViews is absent."),tabs:t(V).max(P).optional()});function de(n){return F(n?.cms)??"on"}function pe(n,i){const r=i==="off"&&n?.defaultMainView?.type==="content";return{...n,cms:i,cmsDefaultOpen:null,...r?{defaultMainView:{type:"site-editor"}}:{}}}const f=a({tileId:e().optional(),connectionId:e().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:e().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:e().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:d(e(),v()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:l().int().positive().optional(),maxHeight:l().int().positive().optional()}),G=a({banner:e().nullable().optional(),bannerColor:e().nullable().optional(),icon:e().nullable().optional(),themeColor:e().nullable().optional(),pinnedViews:t(L).max(k).nullable().optional(),layout:H.nullable().optional(),homeTile:f.nullable().optional(),homeTiles:t(f).max(E).nullable().optional(),homePrompts:t(e()).max(U).nullable().optional()}),j=/^[A-Za-z_][A-Za-z0-9_]*$/,g=e().min(1).regex(j,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),z=_("kind",[a({key:g,kind:c("literal"),value:e().max(O)}),a({key:g,kind:c("secret"),secretId:e().min(1)})]),K=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,q=a({host:e().min(1).regex(K).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:e().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),W=a({selected:e().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:e().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:e().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:t(z).max(D).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:t(q).max(N).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),Z=a({url:e().describe("GitHub repository URL"),owner:e().describe("Repository owner"),name:e().describe("Repository name"),installationId:l().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:e().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials."),repositoryId:e().optional().describe("First-class repository (REPOSITORY_LINK) backing this binding. When set, credentials come from the repository's git provider account rather than connectionId.")}),Y=o(["agent-sandbox","local-api"]),$={sandboxHandle:e().describe("Provider-specific handle"),previewUrl:e().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:e().nullable().optional().describe("Direct sandbox API URL for runtimes that expose one. Equal to previewUrl for local-api; null/absent for AgentSandbox, which routes control traffic through hosted Studio."),createdAt:l().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:a({packageManager:e().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:e().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:e().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},M=a($);function be(n){if(!n||typeof n!="object"||Array.isArray(n))return{};const i=n,r={};for(const[p,b]of Object.entries(i))if(!(!b||typeof b!="object")&&!(p!=="agent-sandbox"&&p!=="local-api"))try{r[p]=M.parse(b)}catch{}return r}const J=d(e().describe("userId"),d(e().describe("branch"),A(Y,M))),Q=a({id:e().describe("Stable identifier for this knowledge file"),name:e().describe("File name shown in the UI"),kind:o(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:e().describe("Org filesystem (Library) volume the file lives in"),path:e().describe("Path within the volume"),url:e().describe("Same-origin URL to read the file (display/download)"),contentType:e().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:l().nullable().optional().describe("File size in bytes"),addedAt:e().describe("ISO timestamp when the file was attached")}),ee=t(Q).max(T).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),te=o(["smart","code-review","open"]),ae=te.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),ne=s().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),ie=s().nullable().optional().describe("EXPERIMENTAL: with Fast Preview on, refresh content edits via an in-place /live/previews render (no commit, no reload) instead of a commit + re-navigation. Deco-runtime preview targets only. Requires fastPreview."),oe=e().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),se=a({branch:e().describe("Git branch backing this release"),name:e().describe('User-facing name, e.g. "Black Friday 2026"'),color:e().describe("Dot color token shown in the version switcher"),createdBy:e().optional().describe("User ID who created the release"),createdAt:e().optional().describe("ISO 8601 creation timestamp")}),le=t(se).max(C).nullable().optional().describe("Curated list of named, branch-backed releases shown in the version switcher. The base branch ('No ar') is derived, not stored here."),h={instructions:e().nullable().optional().describe("Instructions also used as system prompt"),enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs"),subAgents:t(e()).max(R).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:e().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:G.nullable().optional().describe("UI customization settings"),sidebarViews:t(x).max(10).nullable().optional().describe("Project views selected for the sidebar. Interpret as an exact list when sidebarViewsVersion is 1; unversioned values use legacy native-only semantics. Runtime presence gates still apply."),sidebarViewsVersion:c(1).optional().describe("Version 1 marks metadata.sidebarViews as an exact list that can disable legacy default rows."),githubRepo:Z.nullable().optional().describe("Linked GitHub repository"),runtime:W.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),knowledge:ee,siteSlug:e().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:ae,previewServerUrl:oe,productionUrl:e().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:s().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:ne,releases:le,fastPreviewInPlace:ie},ue=a({id:e().describe("Unique identifier"),title:e().describe("Human-readable name"),description:e().nullable().describe("Description"),icon:e().nullable().describe("Icon URL"),created_at:e().describe("Creation timestamp"),updated_at:e().describe("Last update timestamp"),created_by:e().describe("User ID who created this item"),updated_by:e().optional().describe("User ID who last updated this item"),organization_id:e().describe("Organization ID this item belongs to"),status:o(["active","inactive"]).describe("Current status"),pinned:s().describe("Whether this space is pinned to the sidebar"),metadata:a(h).extend({instructions:e().nullable().describe("Instructions also used as system prompt"),sandboxMap:J.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:t(w).describe("Connections with their selected tools, resources, and prompts")}),I=a({title:e().min(1).max(120).describe("Short label shown on the chip"),description:e().max(280).optional().describe("One-line subtitle shown under the title"),text:e().min(1).max(4e3).describe("The message sent to the agent when the prompt is clicked")});a({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().max(500).nullable().optional().describe("Optional description"),icon:e().nullish().describe("Optional icon URL"),status:o(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:s().optional().default(!1).describe("Pin to sidebar"),metadata:a(h).extend({enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs")}).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:t(I).max(20).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});a({title:e().min(1).max(255).optional().describe("New name"),description:e().max(500).nullable().optional().describe("New description (null to clear)"),icon:e().nullish().describe("New icon URL"),status:o(["active","inactive"]).optional().describe("New status"),pinned:s().optional().describe("Pin/unpin from sidebar"),metadata:a(h).extend({enabled_plugins:t(e()).max(m).nullable().optional().describe("List of enabled plugin IDs")}).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).optional().describe("New connections (replaces existing)"),prompts:t(I).max(20).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});export{ce as C,j as E,K as S,ue as V,be as p,de as r,pe as w};
|
package/dist/client/index.html
CHANGED
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
<meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
|
|
51
51
|
<meta name="twitter:image" content="/og-image.png" />
|
|
52
52
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
53
|
-
<script type="module" crossorigin src="/assets/index-
|
|
54
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
53
|
+
<script type="module" crossorigin src="/assets/index-BiU3YmQL.js"></script>
|
|
54
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DaUTlKSt.css">
|
|
55
55
|
</head>
|
|
56
56
|
<body>
|
|
57
57
|
<div id="root"></div>
|
package/dist/server/cli.js
CHANGED
|
@@ -2076,7 +2076,7 @@ Usage: deco services <up|down|status>`),process.exit(1)}}var M0$=D(()=>{cg()});f
|
|
|
2076
2076
|
`.execute($);if(Number(W.rows[0]?.cnt)===0){console.warn(`Failed to migrate ${G}/${K}, keeping in old table`);continue}}await Lu`
|
|
2077
2077
|
DELETE FROM kysely_migration WHERE name = ${Q}
|
|
2078
2078
|
`.execute($)}}async function o6$($){await kX4($),await SX4($);let Z=new n6$({db:$,provider:{getMigrations:()=>Promise.resolve(bs0)}}),{error:Q,results:X}=await Z.migrateToLatest(),Y=0;if(X?.forEach((J)=>{if(J.status==="Success")Y++;else if(J.status==="Error")console.error(`Failed to execute migration "${J.migrationName}"`)}),Q)throw console.error("Failed to migrate"),console.error(Q),Q;return Y}async function CX4($){let{keepOpen:Z=!1,database:Q,skipBetterAuth:X=!1}=$??{},Y="skipped";if(!X&&!Q)Y=await Zt0();let J=Q??l$(),G=async()=>{if(!Z&&!Q)await bD(J).catch((K)=>{console.warn("Warning: Error closing database:",K)})};try{let K=await o6$(J.db);return await G(),{betterAuth:Y,kysely:K}}catch(K){throw await G(),K}}async function _X4(){let $=l$(),Z=new n6$({db:$.db,provider:{getMigrations:()=>Promise.resolve(bs0)}}),{error:Q,results:X}=await Z.migrateDown();if(X?.forEach((Y)=>{if(Y.status==="Success")console.log(`\u2705 Migration "${Y.migrationName}" rolled back successfully`);else if(Y.status==="Error")console.error(`\u274C Failed to rollback migration "${Y.migrationName}"`)}),Q)throw console.error("Failed to rollback migration"),console.error(Q),Q}var a6$=D(()=>{p6$();Qt0();dQ()});async function zJ0($){let Z={...process.env},Q=H90($,Z);console.log(VR1(Q.settings.encryptionKey));let X=Q.settings.betterAuthSecret||(Q.settings.localMode?Y$$(Q.settings.dataDir):""),{ensureServices:Y}=await Promise.resolve().then(() => (PY0(),zY0)),{outputs:J,services:G}=await Y({home:Q.settings.dataDir,externalDatabaseUrl:Q.externalDatabaseUrl,externalNatsUrl:Q.externalNatsUrl});if(!Q.skipMigrations){let{migrateBetterAuth:W}=await Promise.resolve().then(() => (Qt0(),G$$));await W(J.databaseUrl);let{createDatabase:H}=await Promise.resolve().then(() => (dQ(),A1$)),{migrateToLatest:F}=await Promise.resolve().then(() => (a6$(),r6$)),U=H(J.databaseUrl);await F({keepOpen:!0,database:U,skipBetterAuth:!0})}let K={...Q.settings,betterAuthSecret:X,databaseUrl:J.databaseUrl,natsUrls:J.natsUrls,...J.s3?{s3Endpoint:J.s3.endpoint,s3Bucket:J.s3.bucket,s3AccessKeyId:J.s3.accessKeyId,s3SecretAccessKey:J.s3.secretAccessKey,s3ForcePathStyle:J.s3.forcePathStyle}:{}};return I0$(K),{settings:K,services:G.map((W)=>({name:W.name==="PostgreSQL"?"Postgres":W.name,port:W.port})),managedServiceNames:G.filter((W)=>W.owner==="managed").map((W)=>W.name)}}var ys0=D(()=>{cg();J$$();o1()});var Z5$={};$0(Z5$,{updateService:()=>cz,subscribeCliState:()=>us0,setTuiConsoleIntercepted:()=>PJ0,setServerUrl:()=>ko,setMigrationsDone:()=>Vo,setDevMode:()=>xX4,resetCliStateForTests:()=>vX4,isTuiConsoleIntercepted:()=>AJ0,getCliState:()=>hs0,addLogEntry:()=>cD});function s6$(){return[{name:"Postgres",status:"pending",port:0},{name:"NATS",status:"pending",port:0}]}function e6$(){return{services:s6$(),migrationsStatus:"pending",serverUrl:null,logs:[]}}function vX4(){_Y=e6$()}function Io(){for(let $ of gs0)$()}function hs0(){return _Y}function us0($){return gs0.add($),()=>gs0.delete($)}function cz($){_Y={..._Y,services:_Y.services.map((Z)=>Z.name===$.name?$:Z)},Io()}function Vo(){_Y={..._Y,migrationsStatus:"done"},Io()}function ko($){_Y={..._Y,serverUrl:$},Io()}function cD($){let Z=[..._Y.logs,$];_Y={..._Y,logs:Z.length>500?Z.slice(-500):Z},Io()}function xX4(){_Y={..._Y,services:[...s6$(),{name:"API",status:"pending",port:0},{name:"Vite",status:"pending",port:0}]},Io()}function PJ0($){$5$=$}function AJ0(){return $5$}var _Y,gs0,$5$=!1;var mz=D(()=>{_Y=e6$();gs0=new Set});import{createServer as Q5$}from"net";function fX4($){return new Promise((Z)=>{let Q=Q5$();Q.once("error",()=>Z(!1)),Q.listen($,"0.0.0.0",()=>{Q.close(()=>Z(!0))})})}async function So($){if(await fX4($))return $;let Z=await new Promise((Q,X)=>{let Y=Q5$();Y.once("error",X),Y.listen(0,"0.0.0.0",()=>{let J=Y.address(),G=typeof J==="object"&&J?J.port:0;Y.close(()=>Q(G))})});return console.warn(`Port ${$} is in use, using port ${Z} instead.`),Z}var ls0=()=>{};var ms0={};$0(ms0,{startDevServer:()=>yX4,pipeToLogStore:()=>cs0});import{join as bX4}from"path";function cs0($){let Z=$.getReader(),Q=new TextDecoder,X="";function Y(){let J=X.split(`
|
|
2079
|
-
`);X=J.pop()??"";for(let G of J){let K=Bun.stripANSI(G).replace(/^\[\d+\]\s*/,"").trim();if(!K)continue;cD({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:K})}}(async()=>{try{for(;;){let{done:J,value:G}=await Z.read();if(J)break;X+=Q.decode(G,{stream:!0}),Y()}}catch{}if(X.trim()){let J=Bun.stripANSI(X).replace(/^\[\d+\]\s*/,"").trim();if(J)cD({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:J})}})()}async function yX4($){let{baseUrl:Z,noTui:Q}=$,X=process.env.HOST==="0.0.0.0"&&Boolean(process.env.PORT),Y=X?process.env.PORT:$.vitePort,J=Z||`http://localhost:${Y}`,G=X?await So(Number(Y)+1):await So(Number($.port)),{settings:K,services:W,managedServiceNames:H}=await zJ0({port:String(G),home:$.home,baseUrl:$.baseUrl,localMode:$.localMode,skipMigrations:$.skipMigrations,noTui:$.noTui,vitePort:$.vitePort});for(let O of W)cz({name:O.name,status:"ready",port:O.port});Vo();let F=bX4(import.meta.dir,"..","..","..","..",".."),U=Q===!0,N=Bun.spawn(["bun","run","dev:servers"],{cwd:F,env:{...process.env,PORT:String(K.port),VITE_PORT:String(Y),DATABASE_URL:K.databaseUrl,NATS_URL:K.natsUrls.join(","),NODE_ENV:K.nodeEnv,BASE_URL:J,DECOCMS_LOCAL_MODE:String(K.localMode),DECOCMS_HOME:K.dataDir,DATA_DIR:K.dataDir,DECO_CLI:"1",...K.betterAuthSecret?{BETTER_AUTH_SECRET:K.betterAuthSecret}:{},...K.s3Endpoint?{S3_ENDPOINT:K.s3Endpoint,S3_BUCKET:K.s3Bucket??"",S3_ACCESS_KEY_ID:K.s3AccessKeyId??"",S3_SECRET_ACCESS_KEY:K.s3SecretAccessKey??"",S3_FORCE_PATH_STYLE:String(K.s3ForcePathStyle)}:{},...K.natsCredsPath?{NATS_CREDS:K.natsCredsPath}:{}},stdio:["inherit",U?"inherit":"pipe",U?"inherit":"pipe"]});if(!U)cs0(N.stdout),cs0(N.stderr);ko(J),cz({name:"Vite",status:"ready",port:Number(Y)}),cz({name:"API",status:"ready",port:Number(K.port)});let L=async(O)=>{if(N.kill(O),await N.exited,H.length>0){let{stopServices:w}=await Promise.resolve().then(() => (PY0(),zY0));await w(K.dataDir)}};return process.on("SIGINT",()=>L("SIGINT")),process.on("SIGTERM",()=>L("SIGTERM")),{port:Number(Y),process:N}}var ds0=D(()=>{ys0();mz();ls0()});var TJ0;var is0=D(()=>{TJ0={name:"decocms",version:"4.372.3",description:"Deco CMS \u2014 Self-hostable MCP Gateway for managing AI connections and tools",author:"Deco team",repository:{type:"git",url:"git+https://github.com/decocms/studio.git",directory:"apps/api"},bugs:{url:"https://github.com/decocms/studio/issues"},type:"module",bin:{deco:"./dist/server/cli.js"},files:["dist/**/*"],scripts:{dev:"bun run migrate && bun run dev:server","dev:server":"bun run --cwd=../../packages/sandbox build && NODE_ENV=development bun --env-file=.env --hot run src/index.ts",build:"bun run build:server","build:server":"bun run scripts/bundle-server-script.ts --dist ./dist/server","generate:tool-contracts":"bun run scripts/generate-tool-contracts.ts","db:migrate":"bun run ./dist/server/migrate.js","db:migrate:dbos":"bun run ./dist/server/migrate-dbos.js",check:"tsc --noEmit",start:"bun run ./dist/server/server.js",migrate:"bun run src/database/migrate.ts","migrate:dbos":"bun run src/database/migrate-dbos.ts",test:"bun test src","better-auth:migrate":"bunx --bun @better-auth/cli migrate -y --config src/auth/index.ts",prepublishOnly:"bun run --cwd=../.. build:studio"},optionalDependencies:{"@duckdb/node-api":"^1.5.0-r.1"},dependencies:{"@ai-sdk/anthropic":"^3.0.85","@ai-sdk/google":"^3.0.83","@ai-sdk/openai":"^3.0.73","@anthropic-ai/sdk":"^0.105.0","@aws-sdk/client-s3":"^3.1013.0","@aws-sdk/client-sts":"^3.1013.0","@aws-sdk/lib-storage":"^3.1013.0","@aws-sdk/s3-request-presigner":"^3.1013.0","@clickhouse/client":"^1.8.1","@dbos-inc/dbos-sdk":"^4.21.6","@inkjs/ui":"^2.0.0","@nats-io/jetstream":"3.4.0","@nats-io/kv":"3.4.0","@nats-io/nats-core":"3.4.0","@nats-io/transport-node":"3.4.0","@openrouter/ai-sdk-provider":"^2.9.1","@opentelemetry/core":"^2.6.0","embedded-postgres":"^18.3.0-beta.16",ink:"^6.8.0",kysely:"^0.28.12","posthog-node":"^5.0.0",react:"^19.2.6","react-dom":"^19.2.6"},devDependencies:{"@ai-sdk/provider":"^3.0.10","@better-auth/sso":"1.4.1","@decocms/better-auth":"1.5.17","@decocms/bindings":"workspace:*","@decocms/mcp-utils":"workspace:*","@decocms/runtime":"workspace:*","@decocms/sandbox":"workspace:*","@decocms/shared":"workspace:*","@jitl/quickjs-wasmfile-release-sync":"0.31.0","@modelcontextprotocol/sdk":"1.29.0","@opentelemetry/api":"^1.9.0","@opentelemetry/api-logs":"^0.211.0","@opentelemetry/exporter-logs-otlp-proto":"^0.211.0","@opentelemetry/exporter-prometheus":"^0.208.0","@opentelemetry/exporter-trace-otlp-proto":"^0.207.0","@opentelemetry/instrumentation-runtime-node":"^0.24.0","@opentelemetry/resources":"^2.6.0","@opentelemetry/sdk-logs":"^0.211.0","@opentelemetry/sdk-metrics":"^2.2.0","@opentelemetry/sdk-node":"^0.207.0","@opentelemetry/sdk-trace-base":"^2.5.0","@types/bun":"^1.3.1","@types/google.maps":"^3.65.2","@types/pg":"^8.15.6","@types/react-syntax-highlighter":"^15.5.13","@vercel/nft":"^1.1.1",ai:"^6.0.208","better-auth":"1.4.22",croner:"^9.1.0",degit:"^2.8.4",hono:"^4.10.7",jose:"^6.0.11",nanoid:"^5.1.6",pg:"^8.16.3",typescript:"^7.0.2",typescript5:"npm:typescript@^5.9.3",zod:"4.3.6"},homepage:"https://github.com/decocms/studio",keywords:["mcp","model-context-protocol","ai","gateway","self-hosted","tools"],license:"MIT",publishConfig:{access:"public"}}});import{Box as hX4,Text as X5$}from"ink";import{jsx as uX4,jsxs as Y5$}from"react/jsx-runtime";function J5$({version:$}){return Y5$(hX4,{flexDirection:"column",marginTop:1,children:[dY0.map((Z,Q)=>uX4(X5$,{color:iY0[Q],children:Z},Q)),Y5$(X5$,{dimColor:!0,children:[" v",$]})]})}var G5$=D(()=>{Bo()});import{Box as dz,Text as mD}from"ink";import{Spinner as lX4}from"@inkjs/ui";import{jsx as aJ,jsxs as Du}from"react/jsx-runtime";function K5$({status:$}){if($==="pending")return aJ(lX4,{label:""});return aJ(mD,{color:"green",children:"\u2713"})}function cX4($){return`${$.name}: ${$.port||"...."}`}function W5$({services:$,migrationsStatus:Z,home:Q,serverUrl:X}){return Du(dz,{flexDirection:"column",paddingBottom:1,children:[aJ(J5$,{version:TJ0.version}),aJ(dz,{marginBottom:1,children:aJ(mD,{dimColor:!0,children:"\u2500".repeat(80)})}),aJ(dz,{children:Du(mD,{dimColor:!0,children:["Home: ",Q]})}),Du(dz,{gap:2,children:[$.map((Y)=>Du(dz,{gap:1,children:[aJ(mD,{children:cX4(Y)}),aJ(K5$,{status:Y.status})]},Y.name)),Du(dz,{gap:1,children:[aJ(mD,{children:"Migrations"}),aJ(K5$,{status:Z})]})]}),aJ(dz,{children:X?Du(mD,{children:["Open in browser: ",aJ(mD,{color:"cyan",children:X})]}):aJ(mD,{dimColor:!0,children:"Starting..."})})]})}var H5$=D(()=>{is0();G5$()});import{Box as mX4,Text as Co}from"ink";import{jsx as ps0,jsxs as ns0}from"react/jsx-runtime";function dX4($){if($>=500)return"red";if($>=400)return"yellow";if($>=300)return"cyan";return"green"}function F5$({logs:$}){return ps0(mX4,{flexDirection:"column",children:$.map((Z,Q)=>{if(Z.rawLine)return ps0(Co,{dimColor:!0,children:Z.rawLine},Q);let X=Z.duration<1000?`${Z.duration}ms`:`${(Z.duration/1000).toFixed(1)}s`;return ns0(Co,{children:[ns0(Co,{dimColor:!0,children:[Z.method.padEnd(6)," ",Z.path.padEnd(30)," "]}),ps0(Co,{color:dX4(Z.status),children:Z.status}),ns0(Co,{dimColor:!0,children:[" ",X.padStart(8)]})]},Q)})})}var U5$=()=>{};var ts0={};$0(ts0,{App:()=>nX4});import{Box as iX4}from"ink";import{useSyncExternalStore as pX4}from"react";import{jsx as N5$,jsxs as tX4}from"react/jsx-runtime";function nX4({home:$}){let Z=pX4(us0,hs0);return tX4(iX4,{flexDirection:"column",children:[N5$(W5$,{services:Z.services,migrationsStatus:Z.migrationsStatus,home:$,serverUrl:Z.serverUrl}),N5$(F5$,{logs:Z.logs})]})}var os0=D(()=>{H5$();U5$();mz()});var TG="thread-gate",gN="decopilot-hosted-harness",hN="decopilot-hosted-harness-sandboxed",RG="automations",dD="background-tools",iz="task-board-github-reads";var B5$="11";function L5$($){return{name:"decocms",systemDatabaseUrl:$.systemDatabaseUrl,systemDatabaseSchemaName:"dbos",systemDatabasePoolSize:$.poolSize,runAdminServer:!1,executorID:$.executorID,applicationVersion:B5$,...$.listenQueues!==void 0?{listenQueues:$.listenQueues}:{}}}var D5$=()=>{};import oX4 from"pg";async function w5$($,Z){let{databaseUrl:Q,lockTimeoutMs:X=rX4}=$,Y=$.log??((W)=>console.log(W)),J=new oX4.Client({connectionString:Q});await J.connect();let G=Date.now(),K=!1;try{while(!K){if(K=(await J.query("SELECT pg_try_advisory_lock($1) AS locked",[O5$.toString()])).rows[0]?.locked===!0,K)break;if(Date.now()-G>=X)throw Error(`Timed out after ${X}ms waiting for the DBOS migration lock. Another process is still migrating the dbos schema; this pod will restart and retry.`);await L$(aX4)}let W=Date.now()-G;if(W>1000)Y(`[dbos] waited ${W}ms for the migration lock; another process migrated first`);return await Z()}finally{if(K)try{await J.query("SELECT pg_advisory_unlock($1)",[O5$.toString()])}catch{}await J.end().catch(()=>{})}}var O5$=8314027461559302n,rX4=600000,aX4=500;var j5$=D(()=>{i$()});function sX4(){let $=(process.env.BUN_OPTIONS??"").split(/\s+/).filter(Boolean);return[...process.argv.slice(1),...$]}function rs0($,Z){for(let Q=0;Q<$.length;Q++){let X=$[Q];if(X===void 0)continue;if(X===Z)return $[Q+1];if(X.startsWith(`${Z}=`))return X.slice(Z.length+1)}return}function E5$(){let $=sX4();if($.includes("--cpu-prof")){console.log(JSON.stringify({msg:"cpu-profiling-active",dir:rs0($,"--cpu-prof-dir")??process.cwd(),name:rs0($,"--cpu-prof-name"),markdown:$.includes("--cpu-prof-md"),intervalUs:Number(rs0($,"--cpu-prof-interval")??1000),note:"profile is written on process exit"}));return}if(process.env.CPU_PROFILE)console.warn(JSON.stringify({msg:"cpu-profiling-requested-but-inactive",hint:'CPU profiling is a Bun launch flag. Set BUN_OPTIONS="--cpu-prof --cpu-prof-md --cpu-prof-dir=/tmp" before starting the process.'}))}function z5$(){if(process.env.HEAP_WATCH!=="1")return()=>{};let $=Number(process.env.HEAP_WATCH_INTERVAL_MS??60000),Z=async()=>{let Q=gz();if(!Q)return;let X={};try{let{heapStats:Y}=await import("bun:jsc"),J=Y(),G=Object.entries(J.objectTypeCounts).sort((K,W)=>W[1]-K[1]).slice(0,20);X={objectCount:J.objectCount,heapSize:J.heapSize,top:Object.fromEntries(G)}}catch{}console.log(JSON.stringify({msg:"heap-watch",ts:new Date().toISOString(),uptimeS:Math.round(process.uptime()),rss:Q.rss,heapUsed:Q.heapUsed,heapTotal:Q.heapTotal,external:Q.external,arrayBuffers:Q.arrayBuffers,...X}))};return Z().catch(()=>{}),RJ0=setInterval(()=>void Z().catch(()=>{}),$),RJ0.unref?.(),process.on("SIGUSR2",()=>{try{let Q=Bun.generateHeapSnapshot("v8"),X=typeof Q==="string"?Q:JSON.stringify(Q),Y=`/tmp/heap-${process.pid}-${Date.now()}.heapsnapshot`;Bun.write(Y,X),console.log(JSON.stringify({msg:"heap-snapshot-written",path:Y}))}catch(Q){console.error("[heap-watch] snapshot failed:",Q)}}),()=>{if(RJ0)clearInterval(RJ0)}}var RJ0;var P5$=()=>{};import*as eX4 from"bun:jsc";function A5$(){if(process.env.STALL_WATCHDOG!=="1")return()=>{};let $=Number(process.env.STALL_WATCHDOG_MS??100),Z=Number(process.env.STALL_WATCHDOG_TICK_MS??50);try{$Y4()}catch(J){return console.error("[stall-watchdog] failed to start sampling profiler:",J),()=>{}}let Q,X=performance.now()+Z,Y=()=>{let J=performance.now(),G=J-X;X=J+Z;let K=[];try{K=ZY4()?.traces??[]}catch{}if(G>$&&K.length>0){let W=new Map;for(let F of K){let U=F.frames.find((L)=>L.sourceURL&&!/Unknown Executable/.test(L.category??""))??F.frames[0];if(!U)continue;let N=(U.sourceURL??"?").replace(/^.*\/node_modules\//,"node_modules/"),B=`${U.name??"?"} @ ${N}:${U.line??"?"}`;W.set(B,(W.get(B)??0)+1)}let H=[...W.entries()].sort((F,U)=>U[1]-F[1]).slice(0,8).map(([F,U])=>({frame:F,count:U}));console.warn(JSON.stringify({msg:"stall-stack",ts:new Date().toISOString(),lagMs:Math.round(G),samplesInWindow:K.length,top:H}))}Q=setTimeout(Y,Z),Q.unref?.()};return Q=setTimeout(Y,Z),Q.unref?.(),()=>{if(Q)clearTimeout(Q)}}var $Y4,ZY4;var T5$=D(()=>{({startSamplingProfiler:$Y4,samplingProfilerStackTraces:ZY4}=eX4)});function R5$(){E5$();let $=[z5$(),L1$(),A5$()];return()=>{for(let Z of $)Z()}}var q5$=D(()=>{nn0();P5$();T5$()});var pz=v((M5$)=>{Object.defineProperty(M5$,"__esModule",{value:!0});M5$.RepublishHeaders=M5$.DirectMsgHeaders=M5$.JsHeaders=M5$.AdvisoryKind=void 0;M5$.isOrderedPushConsumerOptions=QY4;M5$.isPullConsumer=XY4;M5$.isPushConsumer=YY4;M5$.isBoundPushConsumerOptions=JY4;function QY4($){if($&&typeof $==="object")return"name_prefix"in $||"deliver_subject_prefix"in $||"filter_subjects"in $||"filter_subject"in $||"deliver_policy"in $||"opt_start_seq"in $||"opt_start_time"in $||"replay_policy"in $||"inactive_threshold"in $||"headers_only"in $||"deliver_prefix"in $;return!1}function XY4($){return $.isPullConsumer()}function YY4($){return $.isPushConsumer()}function JY4($){if($&&typeof $==="object")return"deliver_subject"in $||"deliver_group"in $||"idle_heartbeat"in $;return!1}M5$.AdvisoryKind={API:"api_audit",StreamAction:"stream_action",ConsumerAction:"consumer_action",SnapshotCreate:"snapshot_create",SnapshotComplete:"snapshot_complete",RestoreCreate:"restore_create",RestoreComplete:"restore_complete",MaxDeliver:"max_deliver",Terminated:"terminated",Ack:"consumer_ack",StreamLeaderElected:"stream_leader_elected",StreamQuorumLost:"stream_quorum_lost",ConsumerLeaderElected:"consumer_leader_elected",ConsumerQuorumLost:"consumer_quorum_lost"};M5$.JsHeaders={StreamSourceHdr:"Nats-Stream-Source",LastConsumerSeqHdr:"Nats-Last-Consumer",LastStreamSeqHdr:"Nats-Last-Stream",ConsumerStalledHdr:"Nats-Consumer-Stalled",MessageSizeHdr:"Nats-Msg-Size",RollupHdr:"Nats-Rollup",RollupValueSubject:"sub",RollupValueAll:"all",PendingMessagesHdr:"Nats-Pending-Messages",PendingBytesHdr:"Nats-Pending-Bytes",RequiredApiLevel:"Nats-Required-Api-Level"};M5$.DirectMsgHeaders={Stream:"Nats-Stream",Sequence:"Nats-Sequence",TimeStamp:"Nats-Time-Stamp",Subject:"Nats-Subject",LastSequence:"Nats-Last-Sequence",NumPending:"Nats-Num-Pending"};M5$.RepublishHeaders={Stream:"Nats-Stream",Subject:"Nats-Subject",Sequence:"Nats-Sequence",LastSequence:"Nats-Last-Sequence",Size:"Nats-Msg-Size"}});var sJ=v((V5$)=>{Object.defineProperty(V5$,"__esModule",{value:!0});V5$.TD=V5$.TE=V5$.Empty=void 0;V5$.encode=LY4;V5$.decode=DY4;V5$.Empty=new Uint8Array(0);V5$.TE=new TextEncoder;V5$.TD=new TextDecoder;function BY4(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let Q=new Uint8Array(Z),X=0;for(let Y=0;Y<$.length;Y++)Q.set($[Y],X),X+=$[Y].length;return Q}function LY4(...$){let Z=[];for(let Q=0;Q<$.length;Q++)Z.push(V5$.TE.encode($[Q]));if(Z.length===0)return V5$.Empty;if(Z.length===1)return Z[0];return BY4(...Z)}function DY4($){if(!$||$.length===0)return"";return V5$.TD.decode($)}});var eJ=v((C5$)=>{Object.defineProperty(C5$,"__esModule",{value:!0});C5$.errors=C5$.PermissionViolationError=C5$.NoRespondersError=C5$.TimeoutError=C5$.RequestError=C5$.ProtocolError=C5$.ConnectionError=C5$.DrainingConnectionError=C5$.ClosedConnectionError=C5$.AuthorizationError=C5$.UserAuthenticationExpiredError=C5$.InvalidOperationError=C5$.InvalidArgumentError=C5$.InvalidSubjectError=void 0;class ss0 extends Error{constructor($,Z){super(`illegal subject: '${$}'`,Z);this.name="InvalidSubjectError"}}C5$.InvalidSubjectError=ss0;class qJ0 extends Error{constructor($,Z){super($,Z);this.name="InvalidArgumentError"}static format($,Z,Q){if(Array.isArray(Z)&&Z.length>1)Z=Z[0];if(Array.isArray($))$=$.map((X)=>`'${X}'`),$=$.join(",");else $=`'${$}'`;return new qJ0(`${$} ${Z}`,Q)}}C5$.InvalidArgumentError=qJ0;class es0 extends Error{constructor($,Z){super($,Z);this.name="InvalidOperationError"}}C5$.InvalidOperationError=es0;class MJ0 extends Error{constructor($,Z){super($,Z);this.name="UserAuthenticationExpiredError"}static parse($){if($.toLowerCase().indexOf("user authentication expired")!==-1)return new MJ0($);return null}}C5$.UserAuthenticationExpiredError=MJ0;class IJ0 extends Error{constructor($,Z){super($,Z);this.name="AuthorizationError"}static parse($){let Z=["authorization violation","account authentication expired","authentication timeout"],Q=$.toLowerCase();for(let X=0;X<Z.length;X++)if(Q.indexOf(Z[X])!==-1)return new IJ0($);return null}}C5$.AuthorizationError=IJ0;class $e0 extends Error{constructor(){super("closed connection");this.name="ClosedConnectionError"}}C5$.ClosedConnectionError=$e0;class Ze0 extends Error{constructor(){super("connection draining");this.name="DrainingConnectionError"}}C5$.DrainingConnectionError=Ze0;class Qe0 extends Error{constructor($,Z){super($,Z);this.name="ConnectionError"}}C5$.ConnectionError=Qe0;class Xe0 extends Error{constructor($,Z){super($,Z);this.name="ProtocolError"}}C5$.ProtocolError=Xe0;class Ye0 extends Error{constructor($="",Z){super($,Z);this.name="RequestError"}isNoResponders(){return this.cause instanceof VJ0}}C5$.RequestError=Ye0;class Je0 extends Error{constructor($){super("timeout",$);this.name="TimeoutError"}}C5$.TimeoutError=Je0;class VJ0 extends Error{subject;constructor($,Z){super(`no responders: '${$}'`,Z);this.subject=$,this.name="NoResponders"}}C5$.NoRespondersError=VJ0;class kJ0 extends Error{operation;subject;queue;constructor($,Z,Q,X,Y){super($,Y);this.name="PermissionViolationError",this.operation=Z,this.subject=Q,this.queue=X}static parse($){if(($?$.toLowerCase():"").indexOf("permissions violation")===-1)return null;let Q="publish",X="",Y=void 0,J=$.match(/(Publish|Subscription) to "(\S+)"/);if(J){if(Q=J[1].toLowerCase(),X=J[2],Q==="subscription"){let G=$.match(/using queue "(\S+)"/);if(G)Y=G[1]}}return new kJ0($,Q,X,Y)}}C5$.PermissionViolationError=kJ0;C5$.errors={AuthorizationError:IJ0,ClosedConnectionError:$e0,ConnectionError:Qe0,DrainingConnectionError:Ze0,InvalidArgumentError:qJ0,InvalidOperationError:es0,InvalidSubjectError:ss0,NoRespondersError:VJ0,PermissionViolationError:kJ0,ProtocolError:Xe0,RequestError:Ye0,TimeoutError:Je0,UserAuthenticationExpiredError:MJ0}});var QW=v((b5$)=>{Object.defineProperty(b5$,"__esModule",{value:!0});b5$.SimpleMutex=b5$.Perf=void 0;b5$.extend=_Y4;b5$.render=vY4;b5$.timeout=xY4;b5$.delay=fY4;b5$.deadline=bY4;b5$.deferred=Ke0;b5$.debugDeferred=yY4;b5$.shuffle=gY4;b5$.collect=hY4;b5$.jitter=f5$;b5$.backoff=uY4;b5$.nanos=lY4;b5$.millis=cY4;b5$.randomToken=iY4;var CY4=sJ(),Ge0=eJ();function _Y4($,...Z){for(let Q=0;Q<Z.length;Q++){let X=Z[Q];Object.keys(X).forEach(function(Y){$[Y]=X[Y]})}return $}function vY4($){return CY4.TD.decode($).replace(/\n/g,"\u240A").replace(/\r/g,"\u240D")}function xY4($,Z=!0){let Q=Z?new Ge0.TimeoutError:null,X,Y,J=new Promise((G,K)=>{X={cancel:()=>{if(Y)clearTimeout(Y)}},Y=setTimeout(()=>{if(Q===null)K(new Ge0.TimeoutError);else K(Q)},$)});return Object.assign(J,X)}function fY4($=0){let Z,Q=new Promise((X)=>{let Y=setTimeout(()=>{X()},$);Z={cancel:()=>{if(Y)clearTimeout(Y),X()}}});return Object.assign(Q,Z)}async function bY4($,Z=1000){let Q=Ke0(),X=setTimeout(()=>{Q.reject(new Ge0.TimeoutError)},Z);try{return await Promise.race([$,Q])}finally{clearTimeout(X)}}function Ke0(){let $={},Z=new Promise((Q,X)=>{$={resolve:Q,reject:X}});return Object.assign(Z,$)}function yY4(){let $={},Z=new Promise((Q,X)=>{$={resolve:(Y)=>{console.trace("resolve",Y),Q(Y)},reject:(Y)=>{console.trace("reject"),X(Y)}}});return Object.assign(Z,$)}function gY4($){for(let Z=$.length-1;Z>0;Z--){let Q=Math.floor(Math.random()*(Z+1));[$[Z],$[Q]]=[$[Q],$[Z]]}return $}async function hY4($){let Z=[];for await(let Q of $)Z.push(Q);return Z}class v5${timers;measures;constructor(){this.timers=new Map,this.measures=new Map}mark($){this.timers.set($,performance.now())}measure($,Z,Q){let X=this.timers.get(Z);if(X===void 0)throw Error(`${Z} is not defined`);let Y=this.timers.get(Q);if(Y===void 0)throw Error(`${Q} is not defined`);this.measures.set($,Y-X)}getEntries(){let $=[];return this.measures.forEach((Z,Q)=>{$.push({name:Q,duration:Z})}),$}}b5$.Perf=v5$;class x5${max;current;waiting;constructor($=1){this.max=$,this.current=0,this.waiting=[]}lock(){if(this.current++,this.current<=this.max)return Promise.resolve();let $=Ke0();return this.waiting.push($),$}unlock(){this.current--,this.waiting.pop()?.resolve()}}b5$.SimpleMutex=x5$;function f5$($){if($===0)return 0;return Math.floor($/2+Math.random()*$)}function uY4($=[0,250,250,500,500,3000,5000]){if(!Array.isArray($))$=[0,250,250,500,500,3000,5000];let Z=$.length-1;return{backoff(Q){return f5$(Q>Z?$[Z]:$[Q])}}}function lY4($){return $*1e6}function cY4($){return Math.floor($/1e6)}var mY4="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",uN=new Uint8Array(62);for(let $=0;$<62;$++)uN[$]=mY4.charCodeAt($);var dY4=218340105584896;function iY4(){let $=Math.floor(Math.random()*dY4),Z=$%62,Q=uN[Z];$=($-Z)/62,Z=$%62;let X=uN[Z];$=($-Z)/62,Z=$%62;let Y=uN[Z];$=($-Z)/62,Z=$%62;let J=uN[Z];$=($-Z)/62,Z=$%62;let G=uN[Z];$=($-Z)/62,Z=$%62;let K=uN[Z];$=($-Z)/62,Z=$%62;let W=uN[Z];$=($-Z)/62;let H=uN[$];return String.fromCharCode(Q,X,Y,J,G,K,W,H)}});var d5$=v((c5$)=>{Object.defineProperty(c5$,"__esModule",{value:!0});c5$.nuid=c5$.NuidImpl=void 0;var KJ4="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",iD=62,CJ0=12,u5$=10,g5$=33,WJ4=333,h5$=CJ0+u5$,He0=new Uint8Array(iD);for(let $=0;$<iD;$++)He0[$]=KJ4.charCodeAt($);var SJ0=4294967296,l5$=BigInt(iD)**BigInt(u5$),_o=Number(l5$/(1n<<32n)),We0=Number(l5$%(1n<<32n));function HJ4($){for(let Z=0;Z<$.length;Z++)$[Z]=Math.floor(Math.random()*256)}function FJ4($){if(globalThis?.crypto?.getRandomValues)globalThis.crypto.getRandomValues($);else HJ4($)}class Fe0{buf;cbuf;seqHi;seqLo;inc;inited;constructor(){this.buf=new Uint8Array(h5$),this.cbuf=new Uint8Array(CJ0),this.inited=!1}init(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}initSeqAndInc(){let $=0;do this.seqHi=Math.floor(Math.random()*(_o+1)),this.seqLo=Math.floor(Math.random()*SJ0);while($++<8&&this.seqHi===_o&&this.seqLo>=We0);if(this.seqHi===_o&&this.seqLo>=We0)this.seqLo=0;this.inc=Math.random()*(WJ4-g5$)+g5$|0}setPre(){FJ4(this.cbuf);for(let $=0;$<CJ0;$++)this.buf[$]=He0[this.cbuf[$]%iD]}fillSeq(){let $=this.seqHi,Z=this.seqLo;for(let Q=h5$-1;Q>=CJ0;Q--){let X=Math.floor($/iD),J=($-X*iD)*SJ0+Z,G=Math.floor(J/iD),K=J-G*iD;this.buf[Q]=He0[K],$=X,Z=G}}next(){if(!this.inited)this.init();if(this.seqLo+=this.inc,this.seqLo>=SJ0)this.seqLo-=SJ0,this.seqHi+=1;if(this.seqHi>_o||this.seqHi===_o&&this.seqLo>=We0)this.setPre(),this.initSeqAndInc();this.fillSeq();let $=this.buf;return String.fromCharCode($[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],$[8],$[9],$[10],$[11],$[12],$[13],$[14],$[15],$[16],$[17],$[18],$[19],$[20],$[21])}reset(){this.init()}}c5$.NuidImpl=Fe0;c5$.nuid=new Fe0});var t5$=v((p5$)=>{Object.defineProperty(p5$,"__esModule",{value:!0});p5$.nuid=p5$.Nuid=void 0;var i5$=d5$();p5$.Nuid=i5$.NuidImpl;p5$.nuid=i5$.nuid});var vJ0=v((_J0)=>{Object.defineProperty(_J0,"__esModule",{value:!0});_J0.nuid=_J0.Nuid=void 0;var o5$=t5$();Object.defineProperty(_J0,"Nuid",{enumerable:!0,get:function(){return o5$.Nuid}});Object.defineProperty(_J0,"nuid",{enumerable:!0,get:function(){return o5$.nuid}})});var pD=v((r5$)=>{Object.defineProperty(r5$,"__esModule",{value:!0});r5$.DEFAULT_HOST=r5$.DEFAULT_PORT=r5$.Match=void 0;r5$.syncIterator=OJ4;r5$.createInbox=wJ4;var LJ4=vJ0(),DJ4=eJ();r5$.Match={Exact:"exact",CanonicalMIME:"canonical",IgnoreCase:"insensitive"};function OJ4($){let Z=$[Symbol.asyncIterator]();return{async next(){let Q=await Z.next();if(Q.done)return Promise.resolve(null);return Promise.resolve(Q.value)}}}function wJ4($=""){if($=$||"_INBOX",typeof $!=="string")throw TypeError("prefix must be a string");return $.split(".").forEach((Z)=>{if(Z==="*"||Z===">")throw DJ4.InvalidArgumentError.format("prefix",`cannot have wildcards ('${$}')`)}),`${$}.${LJ4.nuid.next()}`}r5$.DEFAULT_PORT=4222;r5$.DEFAULT_HOST="127.0.0.1"});var vo=v(($9$)=>{Object.defineProperty($9$,"__esModule",{value:!0});$9$.DataBuffer=void 0;var s5$=sJ();class e5${buffers;byteLength;constructor(){this.buffers=[],this.byteLength=0}static concat(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let Q=new Uint8Array(Z),X=0;for(let Y=0;Y<$.length;Y++)Q.set($[Y],X),X+=$[Y].length;return Q}static fromAscii($){if(!$)$="";return s5$.TE.encode($)}static toAscii($){return s5$.TD.decode($)}reset(){this.buffers.length=0,this.byteLength=0}pack(){if(this.buffers.length>1){let $=new Uint8Array(this.byteLength),Z=0;for(let Q=0;Q<this.buffers.length;Q++)$.set(this.buffers[Q],Z),Z+=this.buffers[Q].length;this.buffers.length=0,this.buffers.push($)}}shift(){if(this.buffers.length){let $=this.buffers.shift();if($)return this.byteLength-=$.length,$}return new Uint8Array(0)}drain($){if(this.buffers.length){this.pack();let Z=this.buffers.pop();if(Z){let Q=this.byteLength;if($===void 0||$>Q)$=Q;let X=Z.subarray(0,$);if(Q>$)this.buffers.push(Z.subarray($));return this.byteLength=Q-$,X}}return new Uint8Array(0)}fill($,...Z){if($)this.buffers.push($),this.byteLength+=$.length;for(let Q=0;Q<Z.length;Q++)if(Z[Q]&&Z[Q].length)this.buffers.push(Z[Q]),this.byteLength+=Z[Q].length}peek(){if(this.buffers.length)return this.pack(),this.buffers[0];return new Uint8Array(0)}size(){return this.byteLength}length(){return this.buffers.length}}$9$.DataBuffer=e5$});var nz=v((X9$)=>{Object.defineProperty(X9$,"__esModule",{value:!0});X9$.LF=X9$.CR=X9$.CRLF=X9$.CR_LF_LEN=X9$.CR_LF=void 0;X9$.setTransportFactory=qJ4;X9$.defaultPort=MJ4;X9$.getUrlParseFn=IJ4;X9$.newTransport=VJ4;X9$.getResolveFn=kJ4;X9$.protoLen=Q9$;X9$.extractProtocolMessage=SJ4;var AJ4=sJ(),TJ4=pD(),RJ4=vo(),$3;function qJ4($){$3=$}function MJ4(){return $3!==void 0&&$3.defaultPort!==void 0?$3.defaultPort:TJ4.DEFAULT_PORT}function IJ4(){return $3!==void 0&&$3.urlParseFn?$3.urlParseFn:void 0}function VJ4(){if(!$3||typeof $3.factory!=="function")throw Error("transport fn is not set");return $3.factory()}function kJ4(){return $3!==void 0&&$3.dnsResolveFn?$3.dnsResolveFn:void 0}X9$.CR_LF=`\r
|
|
2079
|
+
`);X=J.pop()??"";for(let G of J){let K=Bun.stripANSI(G).replace(/^\[\d+\]\s*/,"").trim();if(!K)continue;cD({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:K})}}(async()=>{try{for(;;){let{done:J,value:G}=await Z.read();if(J)break;X+=Q.decode(G,{stream:!0}),Y()}}catch{}if(X.trim()){let J=Bun.stripANSI(X).replace(/^\[\d+\]\s*/,"").trim();if(J)cD({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:J})}})()}async function yX4($){let{baseUrl:Z,noTui:Q}=$,X=process.env.HOST==="0.0.0.0"&&Boolean(process.env.PORT),Y=X?process.env.PORT:$.vitePort,J=Z||`http://localhost:${Y}`,G=X?await So(Number(Y)+1):await So(Number($.port)),{settings:K,services:W,managedServiceNames:H}=await zJ0({port:String(G),home:$.home,baseUrl:$.baseUrl,localMode:$.localMode,skipMigrations:$.skipMigrations,noTui:$.noTui,vitePort:$.vitePort});for(let O of W)cz({name:O.name,status:"ready",port:O.port});Vo();let F=bX4(import.meta.dir,"..","..","..","..",".."),U=Q===!0,N=Bun.spawn(["bun","run","dev:servers"],{cwd:F,env:{...process.env,PORT:String(K.port),VITE_PORT:String(Y),DATABASE_URL:K.databaseUrl,NATS_URL:K.natsUrls.join(","),NODE_ENV:K.nodeEnv,BASE_URL:J,DECOCMS_LOCAL_MODE:String(K.localMode),DECOCMS_HOME:K.dataDir,DATA_DIR:K.dataDir,DECO_CLI:"1",...K.betterAuthSecret?{BETTER_AUTH_SECRET:K.betterAuthSecret}:{},...K.s3Endpoint?{S3_ENDPOINT:K.s3Endpoint,S3_BUCKET:K.s3Bucket??"",S3_ACCESS_KEY_ID:K.s3AccessKeyId??"",S3_SECRET_ACCESS_KEY:K.s3SecretAccessKey??"",S3_FORCE_PATH_STYLE:String(K.s3ForcePathStyle)}:{},...K.natsCredsPath?{NATS_CREDS:K.natsCredsPath}:{}},stdio:["inherit",U?"inherit":"pipe",U?"inherit":"pipe"]});if(!U)cs0(N.stdout),cs0(N.stderr);ko(J),cz({name:"Vite",status:"ready",port:Number(Y)}),cz({name:"API",status:"ready",port:Number(K.port)});let L=async(O)=>{if(N.kill(O),await N.exited,H.length>0){let{stopServices:w}=await Promise.resolve().then(() => (PY0(),zY0));await w(K.dataDir)}};return process.on("SIGINT",()=>L("SIGINT")),process.on("SIGTERM",()=>L("SIGTERM")),{port:Number(Y),process:N}}var ds0=D(()=>{ys0();mz();ls0()});var TJ0;var is0=D(()=>{TJ0={name:"decocms",version:"4.373.0",description:"Deco CMS \u2014 Self-hostable MCP Gateway for managing AI connections and tools",author:"Deco team",repository:{type:"git",url:"git+https://github.com/decocms/studio.git",directory:"apps/api"},bugs:{url:"https://github.com/decocms/studio/issues"},type:"module",bin:{deco:"./dist/server/cli.js"},files:["dist/**/*"],scripts:{dev:"bun run migrate && bun run dev:server","dev:server":"bun run --cwd=../../packages/sandbox build && NODE_ENV=development bun --env-file=.env --hot run src/index.ts",build:"bun run build:server","build:server":"bun run scripts/bundle-server-script.ts --dist ./dist/server","generate:tool-contracts":"bun run scripts/generate-tool-contracts.ts","db:migrate":"bun run ./dist/server/migrate.js","db:migrate:dbos":"bun run ./dist/server/migrate-dbos.js",check:"tsc --noEmit",start:"bun run ./dist/server/server.js",migrate:"bun run src/database/migrate.ts","migrate:dbos":"bun run src/database/migrate-dbos.ts",test:"bun test src","better-auth:migrate":"bunx --bun @better-auth/cli migrate -y --config src/auth/index.ts",prepublishOnly:"bun run --cwd=../.. build:studio"},optionalDependencies:{"@duckdb/node-api":"^1.5.0-r.1"},dependencies:{"@ai-sdk/anthropic":"^3.0.85","@ai-sdk/google":"^3.0.83","@ai-sdk/openai":"^3.0.73","@anthropic-ai/sdk":"^0.105.0","@aws-sdk/client-s3":"^3.1013.0","@aws-sdk/client-sts":"^3.1013.0","@aws-sdk/lib-storage":"^3.1013.0","@aws-sdk/s3-request-presigner":"^3.1013.0","@clickhouse/client":"^1.8.1","@dbos-inc/dbos-sdk":"^4.21.6","@inkjs/ui":"^2.0.0","@nats-io/jetstream":"3.4.0","@nats-io/kv":"3.4.0","@nats-io/nats-core":"3.4.0","@nats-io/transport-node":"3.4.0","@openrouter/ai-sdk-provider":"^2.9.1","@opentelemetry/core":"^2.6.0","embedded-postgres":"^18.3.0-beta.16",ink:"^6.8.0",kysely:"^0.28.12","posthog-node":"^5.0.0",react:"^19.2.6","react-dom":"^19.2.6"},devDependencies:{"@ai-sdk/provider":"^3.0.10","@better-auth/sso":"1.4.1","@decocms/better-auth":"1.5.17","@decocms/bindings":"workspace:*","@decocms/mcp-utils":"workspace:*","@decocms/runtime":"workspace:*","@decocms/sandbox":"workspace:*","@decocms/shared":"workspace:*","@jitl/quickjs-wasmfile-release-sync":"0.31.0","@modelcontextprotocol/sdk":"1.29.0","@opentelemetry/api":"^1.9.0","@opentelemetry/api-logs":"^0.211.0","@opentelemetry/exporter-logs-otlp-proto":"^0.211.0","@opentelemetry/exporter-prometheus":"^0.208.0","@opentelemetry/exporter-trace-otlp-proto":"^0.207.0","@opentelemetry/instrumentation-runtime-node":"^0.24.0","@opentelemetry/resources":"^2.6.0","@opentelemetry/sdk-logs":"^0.211.0","@opentelemetry/sdk-metrics":"^2.2.0","@opentelemetry/sdk-node":"^0.207.0","@opentelemetry/sdk-trace-base":"^2.5.0","@types/bun":"^1.3.1","@types/google.maps":"^3.65.2","@types/pg":"^8.15.6","@types/react-syntax-highlighter":"^15.5.13","@vercel/nft":"^1.1.1",ai:"^6.0.208","better-auth":"1.4.22",croner:"^9.1.0",degit:"^2.8.4",hono:"^4.10.7",jose:"^6.0.11",nanoid:"^5.1.6",pg:"^8.16.3",typescript:"^7.0.2",typescript5:"npm:typescript@^5.9.3",zod:"4.3.6"},homepage:"https://github.com/decocms/studio",keywords:["mcp","model-context-protocol","ai","gateway","self-hosted","tools"],license:"MIT",publishConfig:{access:"public"}}});import{Box as hX4,Text as X5$}from"ink";import{jsx as uX4,jsxs as Y5$}from"react/jsx-runtime";function J5$({version:$}){return Y5$(hX4,{flexDirection:"column",marginTop:1,children:[dY0.map((Z,Q)=>uX4(X5$,{color:iY0[Q],children:Z},Q)),Y5$(X5$,{dimColor:!0,children:[" v",$]})]})}var G5$=D(()=>{Bo()});import{Box as dz,Text as mD}from"ink";import{Spinner as lX4}from"@inkjs/ui";import{jsx as aJ,jsxs as Du}from"react/jsx-runtime";function K5$({status:$}){if($==="pending")return aJ(lX4,{label:""});return aJ(mD,{color:"green",children:"\u2713"})}function cX4($){return`${$.name}: ${$.port||"...."}`}function W5$({services:$,migrationsStatus:Z,home:Q,serverUrl:X}){return Du(dz,{flexDirection:"column",paddingBottom:1,children:[aJ(J5$,{version:TJ0.version}),aJ(dz,{marginBottom:1,children:aJ(mD,{dimColor:!0,children:"\u2500".repeat(80)})}),aJ(dz,{children:Du(mD,{dimColor:!0,children:["Home: ",Q]})}),Du(dz,{gap:2,children:[$.map((Y)=>Du(dz,{gap:1,children:[aJ(mD,{children:cX4(Y)}),aJ(K5$,{status:Y.status})]},Y.name)),Du(dz,{gap:1,children:[aJ(mD,{children:"Migrations"}),aJ(K5$,{status:Z})]})]}),aJ(dz,{children:X?Du(mD,{children:["Open in browser: ",aJ(mD,{color:"cyan",children:X})]}):aJ(mD,{dimColor:!0,children:"Starting..."})})]})}var H5$=D(()=>{is0();G5$()});import{Box as mX4,Text as Co}from"ink";import{jsx as ps0,jsxs as ns0}from"react/jsx-runtime";function dX4($){if($>=500)return"red";if($>=400)return"yellow";if($>=300)return"cyan";return"green"}function F5$({logs:$}){return ps0(mX4,{flexDirection:"column",children:$.map((Z,Q)=>{if(Z.rawLine)return ps0(Co,{dimColor:!0,children:Z.rawLine},Q);let X=Z.duration<1000?`${Z.duration}ms`:`${(Z.duration/1000).toFixed(1)}s`;return ns0(Co,{children:[ns0(Co,{dimColor:!0,children:[Z.method.padEnd(6)," ",Z.path.padEnd(30)," "]}),ps0(Co,{color:dX4(Z.status),children:Z.status}),ns0(Co,{dimColor:!0,children:[" ",X.padStart(8)]})]},Q)})})}var U5$=()=>{};var ts0={};$0(ts0,{App:()=>nX4});import{Box as iX4}from"ink";import{useSyncExternalStore as pX4}from"react";import{jsx as N5$,jsxs as tX4}from"react/jsx-runtime";function nX4({home:$}){let Z=pX4(us0,hs0);return tX4(iX4,{flexDirection:"column",children:[N5$(W5$,{services:Z.services,migrationsStatus:Z.migrationsStatus,home:$,serverUrl:Z.serverUrl}),N5$(F5$,{logs:Z.logs})]})}var os0=D(()=>{H5$();U5$();mz()});var TG="thread-gate",gN="decopilot-hosted-harness",hN="decopilot-hosted-harness-sandboxed",RG="automations",dD="background-tools",iz="task-board-github-reads";var B5$="11";function L5$($){return{name:"decocms",systemDatabaseUrl:$.systemDatabaseUrl,systemDatabaseSchemaName:"dbos",systemDatabasePoolSize:$.poolSize,runAdminServer:!1,executorID:$.executorID,applicationVersion:B5$,...$.listenQueues!==void 0?{listenQueues:$.listenQueues}:{}}}var D5$=()=>{};import oX4 from"pg";async function w5$($,Z){let{databaseUrl:Q,lockTimeoutMs:X=rX4}=$,Y=$.log??((W)=>console.log(W)),J=new oX4.Client({connectionString:Q});await J.connect();let G=Date.now(),K=!1;try{while(!K){if(K=(await J.query("SELECT pg_try_advisory_lock($1) AS locked",[O5$.toString()])).rows[0]?.locked===!0,K)break;if(Date.now()-G>=X)throw Error(`Timed out after ${X}ms waiting for the DBOS migration lock. Another process is still migrating the dbos schema; this pod will restart and retry.`);await L$(aX4)}let W=Date.now()-G;if(W>1000)Y(`[dbos] waited ${W}ms for the migration lock; another process migrated first`);return await Z()}finally{if(K)try{await J.query("SELECT pg_advisory_unlock($1)",[O5$.toString()])}catch{}await J.end().catch(()=>{})}}var O5$=8314027461559302n,rX4=600000,aX4=500;var j5$=D(()=>{i$()});function sX4(){let $=(process.env.BUN_OPTIONS??"").split(/\s+/).filter(Boolean);return[...process.argv.slice(1),...$]}function rs0($,Z){for(let Q=0;Q<$.length;Q++){let X=$[Q];if(X===void 0)continue;if(X===Z)return $[Q+1];if(X.startsWith(`${Z}=`))return X.slice(Z.length+1)}return}function E5$(){let $=sX4();if($.includes("--cpu-prof")){console.log(JSON.stringify({msg:"cpu-profiling-active",dir:rs0($,"--cpu-prof-dir")??process.cwd(),name:rs0($,"--cpu-prof-name"),markdown:$.includes("--cpu-prof-md"),intervalUs:Number(rs0($,"--cpu-prof-interval")??1000),note:"profile is written on process exit"}));return}if(process.env.CPU_PROFILE)console.warn(JSON.stringify({msg:"cpu-profiling-requested-but-inactive",hint:'CPU profiling is a Bun launch flag. Set BUN_OPTIONS="--cpu-prof --cpu-prof-md --cpu-prof-dir=/tmp" before starting the process.'}))}function z5$(){if(process.env.HEAP_WATCH!=="1")return()=>{};let $=Number(process.env.HEAP_WATCH_INTERVAL_MS??60000),Z=async()=>{let Q=gz();if(!Q)return;let X={};try{let{heapStats:Y}=await import("bun:jsc"),J=Y(),G=Object.entries(J.objectTypeCounts).sort((K,W)=>W[1]-K[1]).slice(0,20);X={objectCount:J.objectCount,heapSize:J.heapSize,top:Object.fromEntries(G)}}catch{}console.log(JSON.stringify({msg:"heap-watch",ts:new Date().toISOString(),uptimeS:Math.round(process.uptime()),rss:Q.rss,heapUsed:Q.heapUsed,heapTotal:Q.heapTotal,external:Q.external,arrayBuffers:Q.arrayBuffers,...X}))};return Z().catch(()=>{}),RJ0=setInterval(()=>void Z().catch(()=>{}),$),RJ0.unref?.(),process.on("SIGUSR2",()=>{try{let Q=Bun.generateHeapSnapshot("v8"),X=typeof Q==="string"?Q:JSON.stringify(Q),Y=`/tmp/heap-${process.pid}-${Date.now()}.heapsnapshot`;Bun.write(Y,X),console.log(JSON.stringify({msg:"heap-snapshot-written",path:Y}))}catch(Q){console.error("[heap-watch] snapshot failed:",Q)}}),()=>{if(RJ0)clearInterval(RJ0)}}var RJ0;var P5$=()=>{};import*as eX4 from"bun:jsc";function A5$(){if(process.env.STALL_WATCHDOG!=="1")return()=>{};let $=Number(process.env.STALL_WATCHDOG_MS??100),Z=Number(process.env.STALL_WATCHDOG_TICK_MS??50);try{$Y4()}catch(J){return console.error("[stall-watchdog] failed to start sampling profiler:",J),()=>{}}let Q,X=performance.now()+Z,Y=()=>{let J=performance.now(),G=J-X;X=J+Z;let K=[];try{K=ZY4()?.traces??[]}catch{}if(G>$&&K.length>0){let W=new Map;for(let F of K){let U=F.frames.find((L)=>L.sourceURL&&!/Unknown Executable/.test(L.category??""))??F.frames[0];if(!U)continue;let N=(U.sourceURL??"?").replace(/^.*\/node_modules\//,"node_modules/"),B=`${U.name??"?"} @ ${N}:${U.line??"?"}`;W.set(B,(W.get(B)??0)+1)}let H=[...W.entries()].sort((F,U)=>U[1]-F[1]).slice(0,8).map(([F,U])=>({frame:F,count:U}));console.warn(JSON.stringify({msg:"stall-stack",ts:new Date().toISOString(),lagMs:Math.round(G),samplesInWindow:K.length,top:H}))}Q=setTimeout(Y,Z),Q.unref?.()};return Q=setTimeout(Y,Z),Q.unref?.(),()=>{if(Q)clearTimeout(Q)}}var $Y4,ZY4;var T5$=D(()=>{({startSamplingProfiler:$Y4,samplingProfilerStackTraces:ZY4}=eX4)});function R5$(){E5$();let $=[z5$(),L1$(),A5$()];return()=>{for(let Z of $)Z()}}var q5$=D(()=>{nn0();P5$();T5$()});var pz=v((M5$)=>{Object.defineProperty(M5$,"__esModule",{value:!0});M5$.RepublishHeaders=M5$.DirectMsgHeaders=M5$.JsHeaders=M5$.AdvisoryKind=void 0;M5$.isOrderedPushConsumerOptions=QY4;M5$.isPullConsumer=XY4;M5$.isPushConsumer=YY4;M5$.isBoundPushConsumerOptions=JY4;function QY4($){if($&&typeof $==="object")return"name_prefix"in $||"deliver_subject_prefix"in $||"filter_subjects"in $||"filter_subject"in $||"deliver_policy"in $||"opt_start_seq"in $||"opt_start_time"in $||"replay_policy"in $||"inactive_threshold"in $||"headers_only"in $||"deliver_prefix"in $;return!1}function XY4($){return $.isPullConsumer()}function YY4($){return $.isPushConsumer()}function JY4($){if($&&typeof $==="object")return"deliver_subject"in $||"deliver_group"in $||"idle_heartbeat"in $;return!1}M5$.AdvisoryKind={API:"api_audit",StreamAction:"stream_action",ConsumerAction:"consumer_action",SnapshotCreate:"snapshot_create",SnapshotComplete:"snapshot_complete",RestoreCreate:"restore_create",RestoreComplete:"restore_complete",MaxDeliver:"max_deliver",Terminated:"terminated",Ack:"consumer_ack",StreamLeaderElected:"stream_leader_elected",StreamQuorumLost:"stream_quorum_lost",ConsumerLeaderElected:"consumer_leader_elected",ConsumerQuorumLost:"consumer_quorum_lost"};M5$.JsHeaders={StreamSourceHdr:"Nats-Stream-Source",LastConsumerSeqHdr:"Nats-Last-Consumer",LastStreamSeqHdr:"Nats-Last-Stream",ConsumerStalledHdr:"Nats-Consumer-Stalled",MessageSizeHdr:"Nats-Msg-Size",RollupHdr:"Nats-Rollup",RollupValueSubject:"sub",RollupValueAll:"all",PendingMessagesHdr:"Nats-Pending-Messages",PendingBytesHdr:"Nats-Pending-Bytes",RequiredApiLevel:"Nats-Required-Api-Level"};M5$.DirectMsgHeaders={Stream:"Nats-Stream",Sequence:"Nats-Sequence",TimeStamp:"Nats-Time-Stamp",Subject:"Nats-Subject",LastSequence:"Nats-Last-Sequence",NumPending:"Nats-Num-Pending"};M5$.RepublishHeaders={Stream:"Nats-Stream",Subject:"Nats-Subject",Sequence:"Nats-Sequence",LastSequence:"Nats-Last-Sequence",Size:"Nats-Msg-Size"}});var sJ=v((V5$)=>{Object.defineProperty(V5$,"__esModule",{value:!0});V5$.TD=V5$.TE=V5$.Empty=void 0;V5$.encode=LY4;V5$.decode=DY4;V5$.Empty=new Uint8Array(0);V5$.TE=new TextEncoder;V5$.TD=new TextDecoder;function BY4(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let Q=new Uint8Array(Z),X=0;for(let Y=0;Y<$.length;Y++)Q.set($[Y],X),X+=$[Y].length;return Q}function LY4(...$){let Z=[];for(let Q=0;Q<$.length;Q++)Z.push(V5$.TE.encode($[Q]));if(Z.length===0)return V5$.Empty;if(Z.length===1)return Z[0];return BY4(...Z)}function DY4($){if(!$||$.length===0)return"";return V5$.TD.decode($)}});var eJ=v((C5$)=>{Object.defineProperty(C5$,"__esModule",{value:!0});C5$.errors=C5$.PermissionViolationError=C5$.NoRespondersError=C5$.TimeoutError=C5$.RequestError=C5$.ProtocolError=C5$.ConnectionError=C5$.DrainingConnectionError=C5$.ClosedConnectionError=C5$.AuthorizationError=C5$.UserAuthenticationExpiredError=C5$.InvalidOperationError=C5$.InvalidArgumentError=C5$.InvalidSubjectError=void 0;class ss0 extends Error{constructor($,Z){super(`illegal subject: '${$}'`,Z);this.name="InvalidSubjectError"}}C5$.InvalidSubjectError=ss0;class qJ0 extends Error{constructor($,Z){super($,Z);this.name="InvalidArgumentError"}static format($,Z,Q){if(Array.isArray(Z)&&Z.length>1)Z=Z[0];if(Array.isArray($))$=$.map((X)=>`'${X}'`),$=$.join(",");else $=`'${$}'`;return new qJ0(`${$} ${Z}`,Q)}}C5$.InvalidArgumentError=qJ0;class es0 extends Error{constructor($,Z){super($,Z);this.name="InvalidOperationError"}}C5$.InvalidOperationError=es0;class MJ0 extends Error{constructor($,Z){super($,Z);this.name="UserAuthenticationExpiredError"}static parse($){if($.toLowerCase().indexOf("user authentication expired")!==-1)return new MJ0($);return null}}C5$.UserAuthenticationExpiredError=MJ0;class IJ0 extends Error{constructor($,Z){super($,Z);this.name="AuthorizationError"}static parse($){let Z=["authorization violation","account authentication expired","authentication timeout"],Q=$.toLowerCase();for(let X=0;X<Z.length;X++)if(Q.indexOf(Z[X])!==-1)return new IJ0($);return null}}C5$.AuthorizationError=IJ0;class $e0 extends Error{constructor(){super("closed connection");this.name="ClosedConnectionError"}}C5$.ClosedConnectionError=$e0;class Ze0 extends Error{constructor(){super("connection draining");this.name="DrainingConnectionError"}}C5$.DrainingConnectionError=Ze0;class Qe0 extends Error{constructor($,Z){super($,Z);this.name="ConnectionError"}}C5$.ConnectionError=Qe0;class Xe0 extends Error{constructor($,Z){super($,Z);this.name="ProtocolError"}}C5$.ProtocolError=Xe0;class Ye0 extends Error{constructor($="",Z){super($,Z);this.name="RequestError"}isNoResponders(){return this.cause instanceof VJ0}}C5$.RequestError=Ye0;class Je0 extends Error{constructor($){super("timeout",$);this.name="TimeoutError"}}C5$.TimeoutError=Je0;class VJ0 extends Error{subject;constructor($,Z){super(`no responders: '${$}'`,Z);this.subject=$,this.name="NoResponders"}}C5$.NoRespondersError=VJ0;class kJ0 extends Error{operation;subject;queue;constructor($,Z,Q,X,Y){super($,Y);this.name="PermissionViolationError",this.operation=Z,this.subject=Q,this.queue=X}static parse($){if(($?$.toLowerCase():"").indexOf("permissions violation")===-1)return null;let Q="publish",X="",Y=void 0,J=$.match(/(Publish|Subscription) to "(\S+)"/);if(J){if(Q=J[1].toLowerCase(),X=J[2],Q==="subscription"){let G=$.match(/using queue "(\S+)"/);if(G)Y=G[1]}}return new kJ0($,Q,X,Y)}}C5$.PermissionViolationError=kJ0;C5$.errors={AuthorizationError:IJ0,ClosedConnectionError:$e0,ConnectionError:Qe0,DrainingConnectionError:Ze0,InvalidArgumentError:qJ0,InvalidOperationError:es0,InvalidSubjectError:ss0,NoRespondersError:VJ0,PermissionViolationError:kJ0,ProtocolError:Xe0,RequestError:Ye0,TimeoutError:Je0,UserAuthenticationExpiredError:MJ0}});var QW=v((b5$)=>{Object.defineProperty(b5$,"__esModule",{value:!0});b5$.SimpleMutex=b5$.Perf=void 0;b5$.extend=_Y4;b5$.render=vY4;b5$.timeout=xY4;b5$.delay=fY4;b5$.deadline=bY4;b5$.deferred=Ke0;b5$.debugDeferred=yY4;b5$.shuffle=gY4;b5$.collect=hY4;b5$.jitter=f5$;b5$.backoff=uY4;b5$.nanos=lY4;b5$.millis=cY4;b5$.randomToken=iY4;var CY4=sJ(),Ge0=eJ();function _Y4($,...Z){for(let Q=0;Q<Z.length;Q++){let X=Z[Q];Object.keys(X).forEach(function(Y){$[Y]=X[Y]})}return $}function vY4($){return CY4.TD.decode($).replace(/\n/g,"\u240A").replace(/\r/g,"\u240D")}function xY4($,Z=!0){let Q=Z?new Ge0.TimeoutError:null,X,Y,J=new Promise((G,K)=>{X={cancel:()=>{if(Y)clearTimeout(Y)}},Y=setTimeout(()=>{if(Q===null)K(new Ge0.TimeoutError);else K(Q)},$)});return Object.assign(J,X)}function fY4($=0){let Z,Q=new Promise((X)=>{let Y=setTimeout(()=>{X()},$);Z={cancel:()=>{if(Y)clearTimeout(Y),X()}}});return Object.assign(Q,Z)}async function bY4($,Z=1000){let Q=Ke0(),X=setTimeout(()=>{Q.reject(new Ge0.TimeoutError)},Z);try{return await Promise.race([$,Q])}finally{clearTimeout(X)}}function Ke0(){let $={},Z=new Promise((Q,X)=>{$={resolve:Q,reject:X}});return Object.assign(Z,$)}function yY4(){let $={},Z=new Promise((Q,X)=>{$={resolve:(Y)=>{console.trace("resolve",Y),Q(Y)},reject:(Y)=>{console.trace("reject"),X(Y)}}});return Object.assign(Z,$)}function gY4($){for(let Z=$.length-1;Z>0;Z--){let Q=Math.floor(Math.random()*(Z+1));[$[Z],$[Q]]=[$[Q],$[Z]]}return $}async function hY4($){let Z=[];for await(let Q of $)Z.push(Q);return Z}class v5${timers;measures;constructor(){this.timers=new Map,this.measures=new Map}mark($){this.timers.set($,performance.now())}measure($,Z,Q){let X=this.timers.get(Z);if(X===void 0)throw Error(`${Z} is not defined`);let Y=this.timers.get(Q);if(Y===void 0)throw Error(`${Q} is not defined`);this.measures.set($,Y-X)}getEntries(){let $=[];return this.measures.forEach((Z,Q)=>{$.push({name:Q,duration:Z})}),$}}b5$.Perf=v5$;class x5${max;current;waiting;constructor($=1){this.max=$,this.current=0,this.waiting=[]}lock(){if(this.current++,this.current<=this.max)return Promise.resolve();let $=Ke0();return this.waiting.push($),$}unlock(){this.current--,this.waiting.pop()?.resolve()}}b5$.SimpleMutex=x5$;function f5$($){if($===0)return 0;return Math.floor($/2+Math.random()*$)}function uY4($=[0,250,250,500,500,3000,5000]){if(!Array.isArray($))$=[0,250,250,500,500,3000,5000];let Z=$.length-1;return{backoff(Q){return f5$(Q>Z?$[Z]:$[Q])}}}function lY4($){return $*1e6}function cY4($){return Math.floor($/1e6)}var mY4="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",uN=new Uint8Array(62);for(let $=0;$<62;$++)uN[$]=mY4.charCodeAt($);var dY4=218340105584896;function iY4(){let $=Math.floor(Math.random()*dY4),Z=$%62,Q=uN[Z];$=($-Z)/62,Z=$%62;let X=uN[Z];$=($-Z)/62,Z=$%62;let Y=uN[Z];$=($-Z)/62,Z=$%62;let J=uN[Z];$=($-Z)/62,Z=$%62;let G=uN[Z];$=($-Z)/62,Z=$%62;let K=uN[Z];$=($-Z)/62,Z=$%62;let W=uN[Z];$=($-Z)/62;let H=uN[$];return String.fromCharCode(Q,X,Y,J,G,K,W,H)}});var d5$=v((c5$)=>{Object.defineProperty(c5$,"__esModule",{value:!0});c5$.nuid=c5$.NuidImpl=void 0;var KJ4="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",iD=62,CJ0=12,u5$=10,g5$=33,WJ4=333,h5$=CJ0+u5$,He0=new Uint8Array(iD);for(let $=0;$<iD;$++)He0[$]=KJ4.charCodeAt($);var SJ0=4294967296,l5$=BigInt(iD)**BigInt(u5$),_o=Number(l5$/(1n<<32n)),We0=Number(l5$%(1n<<32n));function HJ4($){for(let Z=0;Z<$.length;Z++)$[Z]=Math.floor(Math.random()*256)}function FJ4($){if(globalThis?.crypto?.getRandomValues)globalThis.crypto.getRandomValues($);else HJ4($)}class Fe0{buf;cbuf;seqHi;seqLo;inc;inited;constructor(){this.buf=new Uint8Array(h5$),this.cbuf=new Uint8Array(CJ0),this.inited=!1}init(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}initSeqAndInc(){let $=0;do this.seqHi=Math.floor(Math.random()*(_o+1)),this.seqLo=Math.floor(Math.random()*SJ0);while($++<8&&this.seqHi===_o&&this.seqLo>=We0);if(this.seqHi===_o&&this.seqLo>=We0)this.seqLo=0;this.inc=Math.random()*(WJ4-g5$)+g5$|0}setPre(){FJ4(this.cbuf);for(let $=0;$<CJ0;$++)this.buf[$]=He0[this.cbuf[$]%iD]}fillSeq(){let $=this.seqHi,Z=this.seqLo;for(let Q=h5$-1;Q>=CJ0;Q--){let X=Math.floor($/iD),J=($-X*iD)*SJ0+Z,G=Math.floor(J/iD),K=J-G*iD;this.buf[Q]=He0[K],$=X,Z=G}}next(){if(!this.inited)this.init();if(this.seqLo+=this.inc,this.seqLo>=SJ0)this.seqLo-=SJ0,this.seqHi+=1;if(this.seqHi>_o||this.seqHi===_o&&this.seqLo>=We0)this.setPre(),this.initSeqAndInc();this.fillSeq();let $=this.buf;return String.fromCharCode($[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],$[8],$[9],$[10],$[11],$[12],$[13],$[14],$[15],$[16],$[17],$[18],$[19],$[20],$[21])}reset(){this.init()}}c5$.NuidImpl=Fe0;c5$.nuid=new Fe0});var t5$=v((p5$)=>{Object.defineProperty(p5$,"__esModule",{value:!0});p5$.nuid=p5$.Nuid=void 0;var i5$=d5$();p5$.Nuid=i5$.NuidImpl;p5$.nuid=i5$.nuid});var vJ0=v((_J0)=>{Object.defineProperty(_J0,"__esModule",{value:!0});_J0.nuid=_J0.Nuid=void 0;var o5$=t5$();Object.defineProperty(_J0,"Nuid",{enumerable:!0,get:function(){return o5$.Nuid}});Object.defineProperty(_J0,"nuid",{enumerable:!0,get:function(){return o5$.nuid}})});var pD=v((r5$)=>{Object.defineProperty(r5$,"__esModule",{value:!0});r5$.DEFAULT_HOST=r5$.DEFAULT_PORT=r5$.Match=void 0;r5$.syncIterator=OJ4;r5$.createInbox=wJ4;var LJ4=vJ0(),DJ4=eJ();r5$.Match={Exact:"exact",CanonicalMIME:"canonical",IgnoreCase:"insensitive"};function OJ4($){let Z=$[Symbol.asyncIterator]();return{async next(){let Q=await Z.next();if(Q.done)return Promise.resolve(null);return Promise.resolve(Q.value)}}}function wJ4($=""){if($=$||"_INBOX",typeof $!=="string")throw TypeError("prefix must be a string");return $.split(".").forEach((Z)=>{if(Z==="*"||Z===">")throw DJ4.InvalidArgumentError.format("prefix",`cannot have wildcards ('${$}')`)}),`${$}.${LJ4.nuid.next()}`}r5$.DEFAULT_PORT=4222;r5$.DEFAULT_HOST="127.0.0.1"});var vo=v(($9$)=>{Object.defineProperty($9$,"__esModule",{value:!0});$9$.DataBuffer=void 0;var s5$=sJ();class e5${buffers;byteLength;constructor(){this.buffers=[],this.byteLength=0}static concat(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let Q=new Uint8Array(Z),X=0;for(let Y=0;Y<$.length;Y++)Q.set($[Y],X),X+=$[Y].length;return Q}static fromAscii($){if(!$)$="";return s5$.TE.encode($)}static toAscii($){return s5$.TD.decode($)}reset(){this.buffers.length=0,this.byteLength=0}pack(){if(this.buffers.length>1){let $=new Uint8Array(this.byteLength),Z=0;for(let Q=0;Q<this.buffers.length;Q++)$.set(this.buffers[Q],Z),Z+=this.buffers[Q].length;this.buffers.length=0,this.buffers.push($)}}shift(){if(this.buffers.length){let $=this.buffers.shift();if($)return this.byteLength-=$.length,$}return new Uint8Array(0)}drain($){if(this.buffers.length){this.pack();let Z=this.buffers.pop();if(Z){let Q=this.byteLength;if($===void 0||$>Q)$=Q;let X=Z.subarray(0,$);if(Q>$)this.buffers.push(Z.subarray($));return this.byteLength=Q-$,X}}return new Uint8Array(0)}fill($,...Z){if($)this.buffers.push($),this.byteLength+=$.length;for(let Q=0;Q<Z.length;Q++)if(Z[Q]&&Z[Q].length)this.buffers.push(Z[Q]),this.byteLength+=Z[Q].length}peek(){if(this.buffers.length)return this.pack(),this.buffers[0];return new Uint8Array(0)}size(){return this.byteLength}length(){return this.buffers.length}}$9$.DataBuffer=e5$});var nz=v((X9$)=>{Object.defineProperty(X9$,"__esModule",{value:!0});X9$.LF=X9$.CR=X9$.CRLF=X9$.CR_LF_LEN=X9$.CR_LF=void 0;X9$.setTransportFactory=qJ4;X9$.defaultPort=MJ4;X9$.getUrlParseFn=IJ4;X9$.newTransport=VJ4;X9$.getResolveFn=kJ4;X9$.protoLen=Q9$;X9$.extractProtocolMessage=SJ4;var AJ4=sJ(),TJ4=pD(),RJ4=vo(),$3;function qJ4($){$3=$}function MJ4(){return $3!==void 0&&$3.defaultPort!==void 0?$3.defaultPort:TJ4.DEFAULT_PORT}function IJ4(){return $3!==void 0&&$3.urlParseFn?$3.urlParseFn:void 0}function VJ4(){if(!$3||typeof $3.factory!=="function")throw Error("transport fn is not set");return $3.factory()}function kJ4(){return $3!==void 0&&$3.dnsResolveFn?$3.dnsResolveFn:void 0}X9$.CR_LF=`\r
|
|
2080
2080
|
`;X9$.CR_LF_LEN=X9$.CR_LF.length;X9$.CRLF=RJ4.DataBuffer.fromAscii(X9$.CR_LF);X9$.CR=new Uint8Array(X9$.CRLF)[0];X9$.LF=new Uint8Array(X9$.CRLF)[1];function Q9$($){for(let Z=0;Z<$.length;Z++){let Q=Z+1;if($.byteLength>Q&&$[Z]===X9$.CR&&$[Q]===X9$.LF)return Q+1}return 0}function SJ4($){let Z=Q9$($);if(Z>0){let X=new Uint8Array($).slice(0,Z);return AJ4.TD.decode(X)}return""}});var De0=v((U9$)=>{Object.defineProperty(U9$,"__esModule",{value:!0});U9$.ipV4=W9$;U9$.isIP=lJ4;U9$.parseIP=H9$;var xo=4,tz=16,xJ0=48,K9$=57,J9$=65,hJ4=70,G9$=97,uJ4=102,Le0=16777215;function W9$($,Z,Q,X){let Y=new Uint8Array(tz);return[0,0,0,0,0,0,0,0,0,0,255,255].forEach((G,K)=>{Y[K]=G}),Y[12]=$,Y[13]=Z,Y[14]=Q,Y[15]=X,Y}function lJ4($){return H9$($)!==void 0}function H9$($){for(let Z=0;Z<$.length;Z++)switch($[Z]){case".":return F9$($);case":":return cJ4($)}return}function F9$($){let Z=new Uint8Array(xo);for(let Q=0;Q<xo;Q++){if($.length===0)return;if(Q>0){if($[0]!==".")return;$=$.substring(1)}let{n:X,c:Y,ok:J}=mJ4($);if(!J||X>255)return;$=$.substring(Y),Z[Q]=X}return W9$(Z[0],Z[1],Z[2],Z[3])}function cJ4($){let Z=new Uint8Array(tz),Q=-1;if($.length>=2&&$[0]===":"&&$[1]===":"){if(Q=0,$=$.substring(2),$.length===0)return Z}let X=0;while(X<tz){let{n:Y,c:J,ok:G}=dJ4($);if(!G||Y>65535)return;if(J<$.length&&$[J]==="."){if(Q<0&&X!=tz-xo)return;if(X+xo>tz)return;let K=F9$($);if(K===void 0)return;Z[X]=K[12],Z[X+1]=K[13],Z[X+2]=K[14],Z[X+3]=K[15],$="",X+=xo;break}if(Z[X]=Y>>8,Z[X+1]=Y,X+=2,$=$.substring(J),$.length===0)break;if($[0]!==":"||$.length==1)return;if($=$.substring(1),$[0]===":"){if(Q>=0)return;if(Q=X,$=$.substring(1),$.length===0)break}}if($.length!==0)return;if(X<tz){if(Q<0)return;let Y=tz-X;for(let J=X-1;J>=Q;J--)Z[J+Y]=Z[J];for(let J=Q+Y-1;J>=Q;J--)Z[J]=0}else if(Q>=0)return;return Z}function mJ4($){let Z=0,Q=0;for(Z=0;Z<$.length&&xJ0<=$.charCodeAt(Z)&&$.charCodeAt(Z)<=K9$;Z++)if(Q=Q*10+($.charCodeAt(Z)-xJ0),Q>=Le0)return{n:Le0,c:Z,ok:!1};if(Z===0)return{n:0,c:0,ok:!1};return{n:Q,c:Z,ok:!0}}function dJ4($){let Z=0,Q=0;for(Q=0;Q<$.length;Q++){if(xJ0<=$.charCodeAt(Q)&&$.charCodeAt(Q)<=K9$)Z*=16,Z+=$.charCodeAt(Q)-xJ0;else if(G9$<=$.charCodeAt(Q)&&$.charCodeAt(Q)<=uJ4)Z*=16,Z+=$.charCodeAt(Q)-G9$+10;else if(J9$<=$.charCodeAt(Q)&&$.charCodeAt(Q)<=hJ4)Z*=16,Z+=$.charCodeAt(Q)-J9$+10;else break;if(Z>=Le0)return{n:0,c:Q,ok:!1}}if(Q===0)return{n:0,c:Q,ok:!1};return{n:Z,c:Q,ok:!0}}});var Pe0=v((B9$)=>{Object.defineProperty(B9$,"__esModule",{value:!0});B9$.Servers=B9$.ServerImpl=void 0;B9$.isIPV4OrHostname=N9$;B9$.hostPort=ze0;var Oe0=nz(),we0=QW(),je0=De0(),tJ4=pD(),oJ4=eJ();function N9$($){if($.indexOf("[")!==-1||$.indexOf("::")!==-1)return!1;if($.indexOf(".")!==-1)return!0;if($.split(":").length<=2)return!0;return!1}function Ee0($){return!N9$($)}function rJ4($){let Q=$.toUpperCase().indexOf("::FFFF:");if(Q!==-1&&$.indexOf(".")!==-1){let X=$.substring(Q+7);return X=X.replace("[",""),X.replace("]","")}return $}function ze0($){if($=$.trim(),$.match(/^(.*:\/\/)(.*)/m))$=$.replace(/^(.*:\/\/)(.*)/gm,"$2");if($=rJ4($),Ee0($)&&$.indexOf("[")===-1)$=`[${$}]`;let Z=Ee0($)?$.match(/(]:)(\d+)/):$.match(/(:)(\d+)/),Q=Z&&Z.length===3&&Z[1]&&Z[2]?parseInt(Z[2]):tJ4.DEFAULT_PORT,Y=new URL(`${Q===80?"https":"http"}://${$}`);Y.port=`${Q}`;let J=Y.hostname;if(J.charAt(0)==="[")J=J.substring(1,J.length-1);return{listen:Y.host,hostname:J,port:Q}}class Ou{src;listen;hostname;port;didConnect;reconnects;lastConnect;gossiped;tlsName;resolves;constructor($,Z=!1){this.src=$,this.tlsName="";let Q=ze0($);this.listen=Q.listen,this.hostname=Q.hostname,this.port=Q.port,this.didConnect=!1,this.reconnects=0,this.lastConnect=0,this.gossiped=Z}toString(){return this.listen}async resolve($){if(!$.fn||$.resolve===!1)return[this];let Z=[];if((0,je0.isIP)(this.hostname))return[this];else{let Q=await $.fn(this.hostname);if($.debug)console.log(`resolve ${this.hostname} = ${Q.join(",")}`);for(let X of Q){let Y=this.port===80?"https":"http",J=new URL(`${Y}://${Ee0(X)?"["+X+"]":X}`);J.port=`${this.port}`;let G=new Ou(J.host,!1);G.tlsName=this.hostname,Z.push(G)}}if($.randomize)(0,we0.shuffle)(Z);return this.resolves=Z,Z}}B9$.ServerImpl=Ou;class fJ0{firstSelect;servers;currentServer;tlsName;randomize;constructor($={}){this.firstSelect=!0,this.servers=[],this.tlsName="",this.randomize=$.randomize||!1}setServers($){if(!Array.isArray($)||$.length===0)throw oJ4.InvalidArgumentError.format("servers","cannot be empty");let Z=(0,Oe0.getUrlParseFn)(),Q=new Map;for(let Y of this.servers)Q.set(Y.listen,Y);let X=[];for(let Y of $){Y=Z?Z(Y):Y;let{listen:J}=ze0(Y),G=Q.get(J);if(G)G.gossiped=!1,X.push(G);else X.push(new Ou(Y))}if(this.randomize)(0,we0.shuffle)(X);if(this.servers=X,this.currentServer===void 0||!X.includes(this.currentServer))this.currentServer=X[0],this.firstSelect=!0}clear(){this.servers.length=0}updateTLSName(){let $=this.getCurrentServer();if(!(0,je0.isIP)($.hostname))this.tlsName=$.hostname,this.servers.forEach((Z)=>{if(Z.gossiped)Z.tlsName=this.tlsName})}getCurrentServer(){return this.currentServer}addServer($,Z=!1){let Q=(0,Oe0.getUrlParseFn)();$=Q?Q($):$;let X=new Ou($,Z);if((0,je0.isIP)(X.hostname))X.tlsName=this.tlsName;this.servers.push(X)}selectServer(){if(this.firstSelect)return this.firstSelect=!1,this.currentServer;let $=this.servers.shift();if($)this.servers.push($),this.currentServer=$;return $}removeCurrentServer(){this.removeServer(this.currentServer)}removeServer($){if($){let Z=this.servers.indexOf($);this.servers.splice(Z,1)}}snapshot(){return fJ0.freezeAll(this.servers)}snapshotForHandler(){let $=this.currentServer;if(!$)return this.snapshot();let Z=this.servers.indexOf($);if(Z<=0)return this.snapshot();return fJ0.freezeAll([$,...this.servers.slice(0,Z),...this.servers.slice(Z+1)])}static freezeAll($){return $.map((Z)=>Object.freeze({hostname:Z.hostname,port:Z.port,listen:Z.listen,src:Z.src,tlsName:Z.tlsName,reconnects:Z.reconnects,lastConnect:Z.lastConnect,gossiped:Z.gossiped,didConnect:Z.didConnect}))}find($){return this.servers.find((Z)=>Z.listen===$.listen)}setCurrent($){this.currentServer=$}length(){return this.servers.length}next(){return this.servers.length?this.servers[0]:void 0}getServers(){return this.servers}update($,Z){let Q=[],X=[],Y=(0,Oe0.getUrlParseFn)(),J=new Map;if($.connect_urls&&$.connect_urls.length>0)$.connect_urls.forEach((K)=>{K=Y?Y(K,Z):K;let W=new Ou(K,!0);J.set(K,W)});let G=[];if(this.servers.forEach((K,W)=>{let H=K.listen;if(K.gossiped&&this.currentServer.listen!==H&&J.get(H)===void 0)G.push(W);J.delete(H)}),G.reverse(),G.forEach((K)=>{let W=this.servers.splice(K,1);X=X.concat(W[0].listen)}),J.forEach((K,W)=>{this.servers.push(K),Q.push(W)}),this.randomize&&Q.length>0){let K=this.currentServer,W=this.servers.filter((H)=>H!==K);(0,we0.shuffle)(W),this.servers=K?[K,...W]:W}return{added:Q,deleted:X}}}B9$.Servers=fJ0});var bJ0=v((w9$)=>{Object.defineProperty(w9$,"__esModule",{value:!0});w9$.QueuedIteratorImpl=void 0;var Ae0=QW(),D9$=eJ();class O9${inflight;processed;received;noIterator;iterClosed;done;signal;yields;filtered;pendingFiltered;ctx;_data;err;time;profile;yielding;didBreak;constructor(){this.inflight=0,this.filtered=0,this.pendingFiltered=0,this.processed=0,this.received=0,this.noIterator=!1,this.done=!1,this.signal=(0,Ae0.deferred)(),this.yields=[],this.iterClosed=(0,Ae0.deferred)(),this.time=0,this.yielding=!1,this.didBreak=!1,this.profile=!1}[Symbol.asyncIterator](){return this.iterate()}push($){if(this.done)return;if(this.didBreak){if(typeof $==="function"){let Z=$;try{Z()}catch(Q){}}return}if(typeof $==="function")this.pendingFiltered++;this.yields.push($),this.signal.resolve()}async*iterate(){if(this.noIterator)throw new D9$.InvalidOperationError("iterator cannot be used when a callback is registered");if(this.yielding)throw new D9$.InvalidOperationError("iterator is already yielding");this.yielding=!0;try{while(!0){if(this.yields.length===0)await this.signal;if(this.err)throw this.err;let $=this.yields;this.inflight=$.length,this.yields=[];for(let Z=0;Z<$.length;Z++){if(typeof $[Z]==="function"){this.pendingFiltered--;let X=$[Z];try{X()}catch(Y){throw Y}if(this.err)throw this.err;continue}this.processed++,this.inflight--;let Q=this.profile?Date.now():0;yield $[Z],this.time=this.profile?Date.now()-Q:0}if(this.done)break;else if(this.yields.length===0)$.length=0,this.yields=$,this.signal=(0,Ae0.deferred)()}}finally{this.didBreak=!0,this.stop()}}stop($){if(this.done)return;this.err=$,this.done=!0,this.signal.resolve(),this.iterClosed.resolve($)}getProcessed(){return this.noIterator?this.received:this.processed}getPending(){return this.yields.length+this.inflight-this.pendingFiltered}getReceived(){return this.received-this.filtered}}w9$.QueuedIteratorImpl=O9$});var Te0=v((P9$)=>{Object.defineProperty(P9$,"__esModule",{value:!0});P9$.MuxSubscription=void 0;var $34=pD(),E9$=eJ();class z9${baseInbox;reqs;constructor(){this.reqs=new Map}size(){return this.reqs.size}init($){return this.baseInbox=`${(0,$34.createInbox)($)}.`,this.baseInbox}add($){if(!isNaN($.received))$.received=0;this.reqs.set($.token,$)}get($){return this.reqs.get($)}cancel($){this.reqs.delete($.token)}getToken($){let Z=$.subject||"";if(Z.indexOf(this.baseInbox)===0)return Z.substring(this.baseInbox.length);return null}all(){return Array.from(this.reqs.values())}handleError($,Z){if($)return this.all().forEach((Q)=>{Q.resolver(Z,{})}),!0;if(Z.operation==="publish"){let Q=this.all().find((X)=>{return X.requestSubject===Z.subject});if(Q)return Q.resolver(Z,{}),!0}return!1}dispatcher(){return($,Z)=>{let Q=this.getToken(Z);if(Q){let X=this.get(Q);if(X){if($===null)$=Z?.data?.length===0&&Z.headers?.code===503?new E9$.NoRespondersError(X.requestSubject):null;X.resolver($,Z)}}}}close(){let $=new E9$.RequestError("connection closed");this.reqs.forEach((Z)=>{Z.resolver($,{})})}}P9$.MuxSubscription=z9$});var Re0=v((R9$)=>{Object.defineProperty(R9$,"__esModule",{value:!0});R9$.Heartbeat=void 0;var Z34=QW();class T9${ph;interval;maxOut;timer;pendings;constructor($,Z,Q){this.ph=$,this.interval=Z,this.maxOut=Q,this.pendings=[]}start(){this.cancel(),this._schedule()}cancel($){if(this.timer)clearTimeout(this.timer),this.timer=void 0;if(this._reset(),$)this.ph.disconnect()}_schedule(){this.timer=setTimeout(()=>{if(this.ph.dispatchStatus({type:"ping",pendingPings:this.pendings.length+1}),this.pendings.length===this.maxOut){this.cancel(!0);return}let $=(0,Z34.deferred)();this.ph.flush($).then(()=>{this._reset()}).catch(()=>{this.cancel()}),this.pendings.push($),this._schedule()},this.interval)}_reset(){this.pendings=this.pendings.filter(($)=>{return $.resolve(),!1})}}R9$.Heartbeat=T9$});var Ie0=v((k9$)=>{Object.defineProperty(k9$,"__esModule",{value:!0});k9$.DenoBuffer=k9$.MAX_SIZE=k9$.AssertionError=void 0;k9$.assert=I9$;k9$.concat=V9$;k9$.append=X34;k9$.readAll=Y34;k9$.writeAll=J34;var Q34=sJ();class qe0 extends Error{constructor($){super($);this.name="AssertionError"}}k9$.AssertionError=qe0;function I9$($,Z="Assertion failed."){if(!$)throw new qe0(Z)}var M9$=32768;k9$.MAX_SIZE=4294967294;function yJ0($,Z,Q=0){let X=Z.byteLength-Q;if($.byteLength>X)$=$.subarray(0,X);return Z.set($,Q),$.byteLength}function V9$($,Z){if($===void 0&&Z===void 0)return new Uint8Array(0);if($===void 0)return Z;if(Z===void 0)return $;let Q=new Uint8Array($.length+Z.length);return Q.set($,0),Q.set(Z,$.length),Q}function X34($,Z){return V9$($,Uint8Array.of(Z))}class Me0{_buf;_off;constructor($){if(this._off=0,$==null){this._buf=new Uint8Array(0);return}this._buf=new Uint8Array($)}bytes($={copy:!0}){if($.copy===!1)return this._buf.subarray(this._off);return this._buf.slice(this._off)}empty(){return this._buf.byteLength<=this._off}get length(){return this._buf.byteLength-this._off}get capacity(){return this._buf.buffer.byteLength}truncate($){if($===0){this.reset();return}if($<0||$>this.length)throw Error("bytes.Buffer: truncation out of range");this._reslice(this._off+$)}reset(){this._reslice(0),this._off=0}_tryGrowByReslice($){let Z=this._buf.byteLength;if($<=this.capacity-Z)return this._reslice(Z+$),Z;return-1}_reslice($){I9$($<=this._buf.buffer.byteLength),this._buf=new Uint8Array(this._buf.buffer,0,$)}readByte(){let $=new Uint8Array(1);if(this.read($))return $[0];return null}read($){if(this.empty()){if(this.reset(),$.byteLength===0)return 0;return null}let Z=yJ0(this._buf.subarray(this._off),$);return this._off+=Z,Z}writeByte($){return this.write(Uint8Array.of($))}writeString($){return this.write(Q34.TE.encode($))}write($){let Z=this._grow($.byteLength);return yJ0($,this._buf,Z)}_grow($){let Z=this.length;if(Z===0&&this._off!==0)this.reset();let Q=this._tryGrowByReslice($);if(Q>=0)return Q;let X=this.capacity;if($<=Math.floor(X/2)-Z)yJ0(this._buf.subarray(this._off),this._buf);else if(X+$>k9$.MAX_SIZE)throw Error("The buffer cannot be grown beyond the maximum size.");else{let Y=new Uint8Array(Math.min(2*X+$,k9$.MAX_SIZE));yJ0(this._buf.subarray(this._off),Y),this._buf=Y}return this._off=0,this._reslice(Math.min(Z+$,k9$.MAX_SIZE)),Z}grow($){if($<0)throw Error("Buffer._grow: negative count");let Z=this._grow($);this._reslice(Z)}readFrom($){let Z=0,Q=new Uint8Array(M9$);while(!0){let X=this.capacity-this.length<M9$,Y=X?Q:new Uint8Array(this._buf.buffer,this.length),J=$.read(Y);if(J===null)return Z;if(X)this.write(Y.subarray(0,J));else this._reslice(this.length+J);Z+=J}}}k9$.DenoBuffer=Me0;function Y34($){let Z=new Me0;return Z.readFrom($),Z.bytes()}function J34($,Z){let Q=0;while(Q<Z.length)Q+=$.write(Z.subarray(Q))}});var Se0=v((x9$)=>{Object.defineProperty(x9$,"__esModule",{value:!0});x9$.cc=x9$.State=x9$.Parser=x9$.Kind=void 0;x9$.describe=N34;var Ve0=Ie0(),ke0=sJ();x9$.Kind={OK:0,ERR:1,MSG:2,INFO:3,PING:4,PONG:5};function N34($){let Z,Q="";switch($.kind){case x9$.Kind.MSG:Z="MSG";break;case x9$.Kind.OK:Z="OK";break;case x9$.Kind.ERR:Z="ERR",Q=ke0.TD.decode($.data);break;case x9$.Kind.PING:Z="PING";break;case x9$.Kind.PONG:Z="PONG";break;case x9$.Kind.INFO:Z="INFO",Q=ke0.TD.decode($.data)}return`${Z}: ${Q}`}function C9$(){let $={};return $.sid=-1,$.hdr=-1,$.size=-1,$}var _9$=48,B34=57,wu=67108864;class v9${dispatcher;state;as;drop;hdr;ma;argBuf;msgBuf;constructor($){this.dispatcher=$,this.state=x9$.State.OP_START,this.as=0,this.drop=0,this.hdr=0}parse($){let Z;for(Z=0;Z<$.length;Z++){let Q=$[Z];switch(this.state){case x9$.State.OP_START:switch(Q){case x9$.cc.M:case x9$.cc.m:this.state=x9$.State.OP_M,this.hdr=-1,this.ma=C9$();break;case x9$.cc.H:case x9$.cc.h:this.state=x9$.State.OP_H,this.hdr=0,this.ma=C9$();break;case x9$.cc.P:case x9$.cc.p:this.state=x9$.State.OP_P;break;case x9$.cc.PLUS:this.state=x9$.State.OP_PLUS;break;case x9$.cc.MINUS:this.state=x9$.State.OP_MINUS;break;case x9$.cc.I:case x9$.cc.i:this.state=x9$.State.OP_I;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_H:switch(Q){case x9$.cc.M:case x9$.cc.m:this.state=x9$.State.OP_M;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_M:switch(Q){case x9$.cc.S:case x9$.cc.s:this.state=x9$.State.OP_MS;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_MS:switch(Q){case x9$.cc.G:case x9$.cc.g:this.state=x9$.State.OP_MSG;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_MSG:switch(Q){case x9$.cc.SPACE:case x9$.cc.TAB:this.state=x9$.State.OP_MSG_SPC;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_MSG_SPC:switch(Q){case x9$.cc.SPACE:case x9$.cc.TAB:continue;default:this.state=x9$.State.MSG_ARG,this.as=Z}break;case x9$.State.MSG_ARG:switch(Q){case x9$.cc.CR:this.drop=1;break;case x9$.cc.NL:{let X=this.argBuf?this.argBuf.bytes():$.subarray(this.as,Z-this.drop);this.processMsgArgs(X),this.drop=0,this.as=Z+1,this.state=x9$.State.MSG_PAYLOAD,Z=this.as+this.ma.size-1;break}default:if(this.argBuf)this.argBuf.writeByte(Q)}break;case x9$.State.MSG_PAYLOAD:if(this.msgBuf)if(this.msgBuf.length>=this.ma.size){let X=this.msgBuf.bytes({copy:!1});this.dispatcher.push({kind:x9$.Kind.MSG,msg:this.ma,data:X}),this.argBuf=void 0,this.msgBuf=void 0,this.state=x9$.State.MSG_END}else{let X=this.ma.size-this.msgBuf.length,Y=$.length-Z;if(Y<X)X=Y;if(X>0)this.msgBuf.write($.subarray(Z,Z+X)),Z=Z+X-1;else this.msgBuf.writeByte(Q)}else if(Z-this.as>=this.ma.size)this.dispatcher.push({kind:x9$.Kind.MSG,msg:this.ma,data:$.subarray(this.as,Z)}),this.argBuf=void 0,this.msgBuf=void 0,this.state=x9$.State.MSG_END;break;case x9$.State.MSG_END:switch(Q){case x9$.cc.NL:this.drop=0,this.as=Z+1,this.state=x9$.State.OP_START;break;default:continue}break;case x9$.State.OP_PLUS:switch(Q){case x9$.cc.O:case x9$.cc.o:this.state=x9$.State.OP_PLUS_O;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_PLUS_O:switch(Q){case x9$.cc.K:case x9$.cc.k:this.state=x9$.State.OP_PLUS_OK;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_PLUS_OK:switch(Q){case x9$.cc.NL:this.dispatcher.push({kind:x9$.Kind.OK}),this.drop=0,this.state=x9$.State.OP_START;break}break;case x9$.State.OP_MINUS:switch(Q){case x9$.cc.E:case x9$.cc.e:this.state=x9$.State.OP_MINUS_E;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_MINUS_E:switch(Q){case x9$.cc.R:case x9$.cc.r:this.state=x9$.State.OP_MINUS_ER;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_MINUS_ER:switch(Q){case x9$.cc.R:case x9$.cc.r:this.state=x9$.State.OP_MINUS_ERR;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_MINUS_ERR:switch(Q){case x9$.cc.SPACE:case x9$.cc.TAB:this.state=x9$.State.OP_MINUS_ERR_SPC;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_MINUS_ERR_SPC:switch(Q){case x9$.cc.SPACE:case x9$.cc.TAB:continue;default:this.state=x9$.State.MINUS_ERR_ARG,this.as=Z}break;case x9$.State.MINUS_ERR_ARG:switch(Q){case x9$.cc.CR:this.drop=1;break;case x9$.cc.NL:{let X;if(this.argBuf)X=this.argBuf.bytes(),this.argBuf=void 0;else X=$.subarray(this.as,Z-this.drop);this.dispatcher.push({kind:x9$.Kind.ERR,data:X}),this.drop=0,this.as=Z+1,this.state=x9$.State.OP_START;break}default:if(this.argBuf)this.argBuf.write(Uint8Array.of(Q))}break;case x9$.State.OP_P:switch(Q){case x9$.cc.I:case x9$.cc.i:this.state=x9$.State.OP_PI;break;case x9$.cc.O:case x9$.cc.o:this.state=x9$.State.OP_PO;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_PO:switch(Q){case x9$.cc.N:case x9$.cc.n:this.state=x9$.State.OP_PON;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_PON:switch(Q){case x9$.cc.G:case x9$.cc.g:this.state=x9$.State.OP_PONG;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_PONG:switch(Q){case x9$.cc.NL:this.dispatcher.push({kind:x9$.Kind.PONG}),this.drop=0,this.state=x9$.State.OP_START;break}break;case x9$.State.OP_PI:switch(Q){case x9$.cc.N:case x9$.cc.n:this.state=x9$.State.OP_PIN;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_PIN:switch(Q){case x9$.cc.G:case x9$.cc.g:this.state=x9$.State.OP_PING;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_PING:switch(Q){case x9$.cc.NL:this.dispatcher.push({kind:x9$.Kind.PING}),this.drop=0,this.state=x9$.State.OP_START;break}break;case x9$.State.OP_I:switch(Q){case x9$.cc.N:case x9$.cc.n:this.state=x9$.State.OP_IN;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_IN:switch(Q){case x9$.cc.F:case x9$.cc.f:this.state=x9$.State.OP_INF;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_INF:switch(Q){case x9$.cc.O:case x9$.cc.o:this.state=x9$.State.OP_INFO;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_INFO:switch(Q){case x9$.cc.SPACE:case x9$.cc.TAB:this.state=x9$.State.OP_INFO_SPC;break;default:throw this.fail($.subarray(Z))}break;case x9$.State.OP_INFO_SPC:switch(Q){case x9$.cc.SPACE:case x9$.cc.TAB:continue;default:this.state=x9$.State.INFO_ARG,this.as=Z}break;case x9$.State.INFO_ARG:switch(Q){case x9$.cc.CR:this.drop=1;break;case x9$.cc.NL:{let X;if(this.argBuf)X=this.argBuf.bytes(),this.argBuf=void 0;else X=$.subarray(this.as,Z-this.drop);this.dispatcher.push({kind:x9$.Kind.INFO,data:X}),this.drop=0,this.as=Z+1,this.state=x9$.State.OP_START;break}default:if(this.argBuf)this.argBuf.writeByte(Q)}break;default:throw this.fail($.subarray(Z))}}if((this.state===x9$.State.MSG_ARG||this.state===x9$.State.MINUS_ERR_ARG||this.state===x9$.State.INFO_ARG)&&!this.argBuf)this.argBuf=new Ve0.DenoBuffer($.subarray(this.as,Z-this.drop));if(this.state===x9$.State.MSG_PAYLOAD&&!this.msgBuf){if(!this.argBuf)this.cloneMsgArg();this.msgBuf=new Ve0.DenoBuffer($.subarray(this.as))}}cloneMsgArg(){let $=this.ma.subject.length,Z=this.ma.reply?this.ma.reply.length:0,Q=new Uint8Array($+Z);if(Q.set(this.ma.subject),this.ma.reply)Q.set(this.ma.reply,$);if(this.argBuf=new Ve0.DenoBuffer(Q),this.ma.subject=Q.subarray(0,$),this.ma.reply)this.ma.reply=Q.subarray($)}processMsgArgs($){if(this.hdr>=0)return this.processHeaderMsgArgs($);let Z=[],Q=-1;for(let X=0;X<$.length;X++)switch($[X]){case x9$.cc.SPACE:case x9$.cc.TAB:case x9$.cc.CR:case x9$.cc.NL:if(Q>=0)Z.push($.subarray(Q,X)),Q=-1;break;default:if(Q<0)Q=X}if(Q>=0)Z.push($.subarray(Q));switch(Z.length){case 3:this.ma.subject=Z[0],this.ma.sid=this.protoParseInt(Z[1]),this.ma.reply=void 0,this.ma.size=this.protoParseInt(Z[2],wu);break;case 4:this.ma.subject=Z[0],this.ma.sid=this.protoParseInt(Z[1]),this.ma.reply=Z[2],this.ma.size=this.protoParseInt(Z[3],wu);break;default:throw this.fail($,"processMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail($,"processMsgArgs Bad or Missing Sid Error");if(this.ma.size<0)throw this.fail($,"processMsgArgs Bad or Missing Size Error")}fail($,Z=""){if(!Z)Z=`parse error [${this.state}]`;else Z=`${Z} [${this.state}]`;return Error(`${Z}: ${ke0.TD.decode($)}`)}processHeaderMsgArgs($){let Z=[],Q=-1;for(let X=0;X<$.length;X++)switch($[X]){case x9$.cc.SPACE:case x9$.cc.TAB:case x9$.cc.CR:case x9$.cc.NL:if(Q>=0)Z.push($.subarray(Q,X)),Q=-1;break;default:if(Q<0)Q=X}if(Q>=0)Z.push($.subarray(Q));switch(Z.length){case 4:this.ma.subject=Z[0],this.ma.sid=this.protoParseInt(Z[1]),this.ma.reply=void 0,this.ma.hdr=this.protoParseInt(Z[2],wu),this.ma.size=this.protoParseInt(Z[3],wu);break;case 5:this.ma.subject=Z[0],this.ma.sid=this.protoParseInt(Z[1]),this.ma.reply=Z[2],this.ma.hdr=this.protoParseInt(Z[3],wu),this.ma.size=this.protoParseInt(Z[4],wu);break;default:throw this.fail($,"processHeaderMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail($,"processHeaderMsgArgs Bad or Missing Sid Error");if(this.ma.hdr<0||this.ma.hdr>this.ma.size)throw this.fail($,"processHeaderMsgArgs Bad or Missing Header Size Error");if(this.ma.size<0)throw this.fail($,"processHeaderMsgArgs Bad or Missing Size Error")}protoParseInt($,Z){if($.length===0||$.length>15)return-1;let Q=0;for(let X=0;X<$.length;X++){if($[X]<_9$||$[X]>B34)return-1;Q=Q*10+($[X]-_9$)}return Z!==void 0&&Q>Z?-1:Q}}x9$.Parser=v9$;x9$.State={OP_START:0,OP_PLUS:1,OP_PLUS_O:2,OP_PLUS_OK:3,OP_MINUS:4,OP_MINUS_E:5,OP_MINUS_ER:6,OP_MINUS_ERR:7,OP_MINUS_ERR_SPC:8,MINUS_ERR_ARG:9,OP_M:10,OP_MS:11,OP_MSG:12,OP_MSG_SPC:13,MSG_ARG:14,MSG_PAYLOAD:15,MSG_END:16,OP_H:17,OP_P:18,OP_PI:19,OP_PIN:20,OP_PING:21,OP_PO:22,OP_PON:23,OP_PONG:24,OP_I:25,OP_IN:26,OP_INF:27,OP_INFO:28,OP_INFO_SPC:29,INFO_ARG:30};x9$.cc={CR:13,E:69,e:101,F:70,f:102,G:71,g:103,H:72,h:104,I:73,i:105,K:75,k:107,M:77,m:109,MINUS:45,N:78,n:110,NL:10,O:79,o:111,P:80,p:112,PLUS:43,R:82,r:114,S:83,s:115,SPACE:32,TAB:9}});var uJ0=v((b9$)=>{Object.defineProperty(b9$,"__esModule",{value:!0});b9$.MsgHdrsImpl=void 0;b9$.canonicalMIMEHeaderKey=_e0;b9$.headers=O34;var f9$=sJ(),XW=pD(),hJ0=eJ();function _e0($){let F=!0,U=Array($.length);for(let N=0;N<$.length;N++){let B=$.charCodeAt(N);if(B===58||B<33||B>126)throw hJ0.InvalidArgumentError.format("header",`'${$[N]}' is not a valid character in a header name`);if(F&&97<=B&&B<=122)B-=32;else if(!F&&65<=B&&B<=90)B+=32;U[N]=B,F=B==45}return String.fromCharCode(...U)}function O34($=0,Z=""){if($===0&&Z!=="")throw hJ0.InvalidArgumentError.format("code","is required");else if($>0&&Z==="")throw hJ0.InvalidArgumentError.format("description","is required");return new ju($,Z)}var Ce0="NATS/1.0";class ju{_code;headers;_description;constructor($=0,Z=""){this._code=$,this._description=Z,this.headers=new Map}[Symbol.iterator](){return this.headers.entries()}size(){return this.headers.size}equals($){if($&&this.headers.size===$.headers.size&&this._code===$._code){for(let[Z,Q]of this.headers){let X=$.values(Z);if(Q.length!==X.length)return!1;let Y=[...Q].sort(),J=[...X].sort();for(let G=0;G<Y.length;G++)if(Y[G]!==J[G])return!1}return!0}return!1}static decode($){let Z=new ju,X=f9$.TD.decode($).split(`\r
|
|
2081
2081
|
`),Y=X[0];if(Y!==Ce0){let J=Y.replace(Ce0,"").trim();if(J.length>0){if(Z._code=parseInt(J,10),isNaN(Z._code))Z._code=0;let G=Z._code.toString();J=J.replace(G,""),Z._description=J.trim()}}if(X.length>=1)X.slice(1).map((J)=>{if(J){let G=J.indexOf(":");if(G>-1){let K=J.slice(0,G),W=J.slice(G+1).trim();Z.append(K,W)}}});return Z}toString(){if(this.headers.size===0&&this._code===0)return"";let $=Ce0;if(this._code>0&&this._description!=="")$+=` ${this._code} ${this._description}`;for(let[Z,Q]of this.headers)for(let X=0;X<Q.length;X++)$=`${$}\r
|
|
2082
2082
|
${Z}: ${Q[X]}`;return`${$}\r
|