decocms 4.321.6 → 4.322.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-CG7tfapy.js → AlertCircle-C2NBg9mc.js} +1 -1
- package/dist/client/assets/{AreaChart-CZiIuPwc.js → AreaChart-B9xdJ5uf.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Dexv6rHk.js → ArrowLeft-CsptIIdO.js} +1 -1
- package/dist/client/assets/{ArrowUp-CxKA4POx.js → ArrowUp-ChGaXEv5.js} +1 -1
- package/dist/client/assets/{Check-Jn0qXgT0.js → Check-BX2gygbe.js} +1 -1
- package/dist/client/assets/{CheckCircle-BnpxIwzg.js → CheckCircle-DliFzmTw.js} +1 -1
- package/dist/client/assets/{ChevronRight-CKftPemQ.js → ChevronRight-DbZJ7s91.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BPOo032l.js → ChevronSelectorVertical-kHOMBDm7.js} +1 -1
- package/dist/client/assets/{ChevronUp-BCwuiyHj.js → ChevronUp-CKAKUsLZ.js} +1 -1
- package/dist/client/assets/{Copy01-jXW2eGyY.js → Copy01-C__uU62x.js} +1 -1
- package/dist/client/assets/{CreditCard01-Zn4AjX46.js → CreditCard01-BOQ6PfLv.js} +1 -1
- package/dist/client/assets/{DotsVertical-C65YDOa_.js → DotsVertical-BAzYPODX.js} +1 -1
- package/dist/client/assets/{Download01-BpcIjY9x.js → Download01-BSiLOFk1.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-3KuuNxaa.js → ErrorBarContext-C8c_W04d.js} +1 -1
- package/dist/client/assets/{Eye-DvBjB5D4.js → Eye-C8bJ0pht.js} +1 -1
- package/dist/client/assets/{GitBranch01-Bde_Ik_K.js → GitBranch01-Bab5ZdgR.js} +1 -1
- package/dist/client/assets/{Globe01-D2uoGclE.js → Globe01-CChCtZhM.js} +1 -1
- package/dist/client/assets/{HardDrive-CBqO3DS3.js → HardDrive-85baSgBa.js} +1 -1
- package/dist/client/assets/{Image01-0uExgWAI.js → Image01-ys43utN0.js} +1 -1
- package/dist/client/assets/{Key01-BiKWCM1S.js → Key01-C-1aj8U9.js} +1 -1
- package/dist/client/assets/{Link01-C7a_h6ys.js → Link01-DGUdctuw.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D_IXdPPU.js → LinkExternal01-0jxUYeWb.js} +1 -1
- package/dist/client/assets/{Monitor01-CKYtARge.js → Monitor01-84uea3LL.js} +1 -1
- package/dist/client/assets/{Package-D0PXqO6P.js → Package-B18tBkuY.js} +1 -1
- package/dist/client/assets/{Palette-CQVEzzhe.js → Palette-CV1Ch2Ua.js} +1 -1
- package/dist/client/assets/{Play-CONIoWIl.js → Play-B9Jhx-_c.js} +1 -1
- package/dist/client/assets/{Plus-D7VA57q5.js → Plus-B5hmmemV.js} +1 -1
- package/dist/client/assets/{SearchMd-C1loDEwy.js → SearchMd-C_odO2p9.js} +1 -1
- package/dist/client/assets/{Sector-DWJi3JDL.js → Sector-CrSbN2_Q.js} +1 -1
- package/dist/client/assets/{Settings02-DfFNQquZ.js → Settings02-Bu5ySj3i.js} +1 -1
- package/dist/client/assets/{Share07-8oXDBqwk.js → Share07-DwzdoQ4a.js} +1 -1
- package/dist/client/assets/{Shield01-CrPC_5gY.js → Shield01-CeyvRCTS.js} +1 -1
- package/dist/client/assets/{Stars01-BTmtR5If.js → Stars01-m2rCV73l.js} +1 -1
- package/dist/client/assets/{Sun-N_eYVUUU.js → Sun-SCvGGuZ8.js} +1 -1
- package/dist/client/assets/{Tool01-CtOHcy0Y.js → Tool01-BZqaTMXK.js} +1 -1
- package/dist/client/assets/{Tool02-DHxIusmd.js → Tool02-pfppv5IR.js} +1 -1
- package/dist/client/assets/{Trash01-CHla-FrA.js → Trash01-CmUBt3qF.js} +1 -1
- package/dist/client/assets/{TrendUp01-BctNF4vg.js → TrendUp01-CHK-OeEA.js} +1 -1
- package/dist/client/assets/{Upload01-VP9EBYtl.js → Upload01-DORj1aoY.js} +1 -1
- package/dist/client/assets/{User01-8XeMepHg.js → User01-CgCTj81P.js} +1 -1
- package/dist/client/assets/{UserSquare-BEv1iIj5.js → UserSquare-Cis5hkvt.js} +1 -1
- package/dist/client/assets/{Users01-CvPFHBcf.js → Users01-BikFpVdm.js} +1 -1
- package/dist/client/assets/{Users03-cesUeOsp.js → Users03-C3hNO4vD.js} +1 -1
- package/dist/client/assets/{XCircle-DZJkY1-f.js → XCircle-DYwdtPEj.js} +1 -1
- package/dist/client/assets/{XClose-mJWP0IZB.js → XClose-eQ0IqAwM.js} +1 -1
- package/dist/client/assets/{Zap-JQtzyV8B.js → Zap-D1wJazPI.js} +1 -1
- package/dist/client/assets/{ZoomOut-D8t79aO2.js → ZoomOut-3_5bYJZJ.js} +1 -1
- package/dist/client/assets/{access-gate-DhjnuxYh.js → access-gate-Boh4pe2s.js} +1 -1
- package/dist/client/assets/{agent-icon-Dsw04fQF.js → agent-icon-Bxsxnhg4.js} +1 -1
- package/dist/client/assets/{agents-list-BazgXeqr.js → agents-list-B1SxyPHo.js} +1 -1
- package/dist/client/assets/{ai-providers-C59crxe5.js → ai-providers-BO-hpebX.js} +1 -1
- package/dist/client/assets/{alert-CctLdkUH.js → alert-cxJ-LX7R.js} +1 -1
- package/dist/client/assets/{alert-dialog-BU3enZKF.js → alert-dialog-CPeNK-tT.js} +1 -1
- package/dist/client/assets/{analytics-tab-BAIQskOJ.js → analytics-tab-BK1czsPB.js} +1 -1
- package/dist/client/assets/{api-keys-CwZoIgmV.js → api-keys-DKb1gCJq.js} +1 -1
- package/dist/client/assets/api-keys-DUKJrttJ.js +1 -0
- package/dist/client/assets/{app-editor-Bvzl_qDB.js → app-editor-Bp-6yK5T.js} +1 -1
- package/dist/client/assets/{auth-Ctf1zdSk.js → auth-C7ghbqGi.js} +1 -1
- package/dist/client/assets/{auth-catchall-DfbKNMqE.js → auth-catchall-D8dVOxlt.js} +1 -1
- package/dist/client/assets/{auth-entry-BsXiAQoR.js → auth-entry-DrKraRDW.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BwXlZwBP.js → auth-split-layout-DiTqoIfy.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-UjkEE9k3.js → authenticate-and-persist-oauth-_W6RIHUW.js} +1 -1
- package/dist/client/assets/{automation-list-row-CakAIrvQ.js → automation-list-row-Bli88vuo.js} +1 -1
- package/dist/client/assets/{automation-runs-BP4svOKv.js → automation-runs-ebCE4-Is.js} +1 -1
- package/dist/client/assets/{automations-47G1qGwp.js → automations-B7W8ASEw.js} +1 -1
- package/dist/client/assets/{avatar-ayySA21l.js → avatar-CIaf_qwP.js} +1 -1
- package/dist/client/assets/{badge-BJg3YTbr.js → badge-C_BaeWRr.js} +1 -1
- package/dist/client/assets/{block-document-DOFjntDc.js → block-document-Dlj6PFRl.js} +1 -1
- package/dist/client/assets/{breadcrumb-B5Tcv0Uh.js → breadcrumb-DF2ZBTYn.js} +1 -1
- package/dist/client/assets/{buckets-DCKwVcGS.js → buckets-79Vh3NA0.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BWY_YPZV.js → bulk-category-panel-CfikpV9P.js} +1 -1
- package/dist/client/assets/{capability-load-error-BERy8yZe.js → capability-load-error-CiU11Kky.js} +1 -1
- package/dist/client/assets/{cards-D9Ttj2cE.js → cards-CEeLhPFB.js} +1 -1
- package/dist/client/assets/{category-editor-BPZKWEN1.js → category-editor-BXhDT606.js} +1 -1
- package/dist/client/assets/{cdn-tab-BU_7vQmo.js → cdn-tab-CRKejAe6.js} +1 -1
- package/dist/client/assets/{chart-DxN2Cs4Z.js → chart-5CmmGIaw.js} +1 -1
- package/dist/client/assets/{chat-context-ffF_r7RU.js → chat-context-UTIz_Pyn.js} +1 -1
- package/dist/client/assets/{checkbox-DmweFMZg.js → checkbox-DuSP_QEG.js} +1 -1
- package/dist/client/assets/{choose-editor-ChPKiRJQ.js → choose-editor-CZMEh5aO.js} +1 -1
- package/dist/client/assets/{cli-auth-success-3b6OvqFq.js → cli-auth-success-Bsxziq7Q.js} +1 -1
- package/dist/client/assets/{client-icons-DX-H77xu.js → client-icons-Cfw7Qv9M.js} +1 -1
- package/dist/client/assets/{collection-detail-CDYBCwYK.js → collection-detail-3sH97jF8.js} +1 -1
- package/dist/client/assets/{collection-display-button-COCZggWW.js → collection-display-button-BR4yX-1T.js} +1 -1
- package/dist/client/assets/{collection-search-DUFT-3aZ.js → collection-search-M_RRr6Xl.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CSMTQGj2.js → collection-table-wrapper-B2QBY6HJ.js} +1 -1
- package/dist/client/assets/{collection-tabs-aHnkLK94.js → collection-tabs-C8VQp3Vj.js} +1 -1
- package/dist/client/assets/{command-CEQjEkRa.js → command-YM_TkZoa.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BVWKpNBX.js → commerce-onboarding-WjJ28WVH.js} +1 -1
- package/dist/client/assets/{connect-C6lph8Iz.js → connect-CLb5V7C4.js} +1 -1
- package/dist/client/assets/{connect-layout-CS-AhNLB.js → connect-layout-D5j21U1X.js} +1 -1
- package/dist/client/assets/{connection-qt8m11-c.js → connection-CtZLzycj.js} +1 -1
- package/dist/client/assets/{connection-card-Bwgx5OMm.js → connection-card-BjwMqpRy.js} +1 -1
- package/dist/client/assets/{connection-detail-DCF5hqwD.js → connection-detail-DnO7R809.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Cs1EiOkG.js → connection-form-helpers-Dwp_oeO7.js} +1 -1
- package/dist/client/assets/{connections-C_jYcs4m.js → connections-C4EYP7S1.js} +1 -1
- package/dist/client/assets/{create-organization-dialog--WflCODd.js → create-organization-dialog-CdygCT51.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Cp5pr9Ve.js → decopilot-sse-pool-CXw15f-z.js} +1 -1
- package/dist/client/assets/{dialog-DDd8wUS7.js → dialog-MZN5GEGy.js} +1 -1
- package/dist/client/assets/{domain-settings-b-Gf934e.js → domain-settings-BLCQcKA9.js} +1 -1
- package/dist/client/assets/{drawer-CxFI5tCn.js → drawer-DcQ3SCMM.js} +1 -1
- package/dist/client/assets/{dropdown-menu-C3Gdadki.js → dropdown-menu-g-JnC1d_.js} +1 -1
- package/dist/client/assets/{e2e-tab-9O9jlog6.js → e2e-tab-DHdWqMLc.js} +1 -1
- package/dist/client/assets/{editor-B0M9C5II.js → editor-CYkhTDNr.js} +1 -1
- package/dist/client/assets/{empty-state-Cs8gUH2e.js → empty-state-DSeNRJTF.js} +1 -1
- package/dist/client/assets/{empty-state-L8hCXC--.js → empty-state-D_K7q-Cu.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C2Ocp5Tk.js → extract-connection-data-UVgsucP8.js} +1 -1
- package/dist/client/assets/{file-explorer-DTbMKDAB.js → file-explorer-Tcq9KPqQ.js} +1 -1
- package/dist/client/assets/{file-type-icon-C5mq72Tm.js → file-type-icon-CMoqiRt4.js} +1 -1
- package/dist/client/assets/{folder-icon-Dt2zI1nQ.js → folder-icon-Di0Tlun6.js} +1 -1
- package/dist/client/assets/{form-DR4f8DO7.js → form-Dbv9rnRr.js} +1 -1
- package/dist/client/assets/{general-uVPlw24q.js → general-CPuIav3i.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Dyu49H5P.js → github-repo-picker-B7FKQdS9.js} +1 -1
- package/dist/client/assets/{hooks-J2gbnuVW.js → hooks-CbjISts1.js} +1 -1
- package/dist/client/assets/{hosting-tab-StoCQBLo.js → hosting-tab-2_OiYopv.js} +1 -1
- package/dist/client/assets/{index-DH6qLcGa.js → index-7XLklGtI.js} +44 -44
- package/dist/client/assets/{index-hsED2j2G.js → index-B5kT8ivb.js} +1 -1
- package/dist/client/assets/{index--9Kt6-Xb.js → index-BEfhoxFP.js} +1 -1
- package/dist/client/assets/{index-CP6R9dTL.js → index-BzUwR_Kj.js} +1 -1
- package/dist/client/assets/{index-DU91evk-.js → index-CsgWXHyv.js} +1 -1
- package/dist/client/assets/{index-DaThHROC.js → index-CwSF-fso.js} +1 -1
- package/dist/client/assets/{index-B7iA3R9e.js → index-DGJdtgkO.js} +1 -1
- package/dist/client/assets/{index-DNghV_Kw.js → index-DptfekUv.js} +1 -1
- package/dist/client/assets/{index-CAw6g9tV.js → index-DuTFQdyn.js} +4 -4
- package/dist/client/assets/{index-DahqZ1Pw.js → index-i_ZWmEy2.js} +1 -1
- package/dist/client/assets/{index-redirect-1FO2ZwBa.js → index-redirect-XzPFIWda.js} +1 -1
- package/dist/client/assets/{infra-billing-HsGxVjhH.js → infra-billing-BisEHsWH.js} +1 -1
- package/dist/client/assets/{input-CRq9rZYf.js → input-BQBB8gcC.js} +1 -1
- package/dist/client/assets/{integration-icon-gY5UnY38.js → integration-icon-CGkU-oJS.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-RPIPoLmq.js → invite-member-dialog-CXTnbtoa.js} +1 -1
- package/dist/client/assets/{label-ByckMHtZ.js → label-DMb6nlzF.js} +1 -1
- package/dist/client/assets/{layout-C0m5fUEQ.js → layout-Cpsi8IlG.js} +1 -1
- package/dist/client/assets/{login-nfCx3aQb.js → login-C2N7_8Z7.js} +1 -1
- package/dist/client/assets/{markdown-C1VdpJ5j.js → markdown-DGD7BNRG.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DwPFIejs.js → mcp-oauth-B16lXFdS.js} +1 -1
- package/dist/client/assets/{members-BA8vVu_F.js → members-DkXuhuK4.js} +1 -1
- package/dist/client/assets/{monaco-editor-DhRI2q0D.js → monaco-editor-BEVlomxQ.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DLrfuurv.js → monitoring-stats-row-vCbaSDyL.js} +1 -1
- package/dist/client/assets/{multi-select-BFhmckl1.js → multi-select-CYmy4E9A.js} +1 -1
- package/dist/client/assets/{oauth-callback-CWLRFYZ2.js → oauth-callback-BLS2JyU4.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-RePfP1QM.js → oauth-callback-ai-provider-zGSiXcVG.js} +1 -1
- package/dist/client/assets/{onboarding-BneVgO60.js → onboarding-2ZIwSwjs.js} +1 -1
- package/dist/client/assets/org-layout-DdQI863P.js +1 -0
- package/dist/client/assets/{organization-choice-BqV4sYyS.js → organization-choice-2Zo8x27v.js} +1 -1
- package/dist/client/assets/{orgs-DEjfIaJ0.js → orgs-BSHTf-uT.js} +1 -1
- package/dist/client/assets/{page-seo-form-D-Eqo-mJ.js → page-seo-form-CEAUfpru.js} +1 -1
- package/dist/client/assets/{popover-BIPtCsqc.js → popover-DF2wTNDa.js} +1 -1
- package/dist/client/assets/{post-calendar-Chm7CCue.js → post-calendar-Clyxzkna.js} +1 -1
- package/dist/client/assets/{post-editor-vBEo0v-g.js → post-editor-uKyIPqEc.js} +1 -1
- package/dist/client/assets/{primitives-CmYrjVpf.js → primitives-BLnYeH_y.js} +1 -1
- package/dist/client/assets/{profile-Ce2FGBxd.js → profile-Dh3wznp6.js} +1 -1
- package/dist/client/assets/{project-app-view-lSJv2DSd.js → project-app-view-pw2V2AiB.js} +1 -1
- package/dist/client/assets/{prompts-Dt2G3dg0.js → prompts-roTbW28U.js} +1 -1
- package/dist/client/assets/record-editor-DTAqCBXC.js +1 -0
- package/dist/client/assets/redirect-editor-Cu9Z1A5U.js +1 -0
- package/dist/client/assets/registry-CKyAbQZL.js +2 -0
- package/dist/client/assets/{registry-layout-D1fFgR3o.js → registry-layout-bsIYkhqK.js} +1 -1
- package/dist/client/assets/{reports-DILtNiYy.js → reports-ygkEOWFw.js} +1 -1
- package/dist/client/assets/{require-capability-DMuYJppW.js → require-capability-CbuOrbcP.js} +1 -1
- package/dist/client/assets/{required-auth-layout-632Nlbdk.js → required-auth-layout-tEyIPAEG.js} +1 -1
- package/dist/client/assets/{reset-password-Dt0s206r.js → reset-password-flovEuym.js} +1 -1
- package/dist/client/assets/{review-settings-BSEiFN9m.js → review-settings-kCQ3yxbO.js} +1 -1
- package/dist/client/assets/{roles-Ca_cW6OU.js → roles-C0_uA7X4.js} +1 -1
- package/dist/client/assets/{schema-BoK0jTZh.js → schema-D_IYS8Ao.js} +1 -1
- package/dist/client/assets/{scroll-area-BI805ul_.js → scroll-area-hWU0FBJA.js} +1 -1
- package/dist/client/assets/{search-input-CFyqYOfd.js → search-input-BwssAmEt.js} +1 -1
- package/dist/client/assets/{secrets-hJRzyq6I.js → secrets-BjgFhRhz.js} +1 -1
- package/dist/client/assets/{sections-editor-CVFGArcx.js → sections-editor-BJw5TyGm.js} +1 -1
- package/dist/client/assets/{select-Bnv10Fl8.js → select-Clrs7oqv.js} +1 -1
- package/dist/client/assets/{select-model-NQ0mnVuK.js → select-model-fiPpDkFD.js} +1 -1
- package/dist/client/assets/{self-tool-result-Dc4tPK9T.js → self-tool-result-D-TDvKxu.js} +1 -1
- package/dist/client/assets/{seo-editor-DlfpOYSl.js → seo-editor-DHznYr6H.js} +1 -1
- package/dist/client/assets/settings-layout-DP8bWEHI.js +1 -0
- package/dist/client/assets/{settings-sidebar-BGOdVjou.js → settings-sidebar-dtIAxt0-.js} +1 -1
- package/dist/client/assets/{shell-controls-B8r3Mj0T.js → shell-controls-CwEfzM6F.js} +1 -1
- package/dist/client/assets/{shell-layout-X5sLDjab.js → shell-layout-1ZMT0Tc1.js} +1 -1
- package/dist/client/assets/{skill-preview-DL4gp0ne.js → skill-preview-5H-VVc0-.js} +1 -1
- package/dist/client/assets/{skills-BLjeFnB6.js → skills-C0RKS-KM.js} +1 -1
- package/dist/client/assets/{sso-DmCj3IPC.js → sso-gFZXEyk2.js} +1 -1
- package/dist/client/assets/{store-h_GKYo0A.js → store-CE3VED82.js} +1 -1
- package/dist/client/assets/store-registry-zv33DlrJ.js +2 -0
- package/dist/client/assets/{switch-DlPMc1e_.js → switch-D7TGNQH3.js} +1 -1
- package/dist/client/assets/{synced-repos-BhYGq1he.js → synced-repos-DUtFzhYN.js} +1 -1
- package/dist/client/assets/{table-D_mk2-gB.js → table-BsrbjIcJ.js} +1 -1
- package/dist/client/assets/{tabs-xquvO62b.js → tabs-DiCn1dq1.js} +1 -1
- package/dist/client/assets/{task-board-DHq8t-_N.js → task-board-h1SC3xFJ.js} +1 -1
- package/dist/client/assets/{task-route-DWU-0q6w.js → task-route-DSgSPPEW.js} +1 -1
- package/dist/client/assets/{tasks-68OUM7rF.js → tasks-gokvPc92.js} +1 -1
- package/dist/client/assets/{textarea-BClvRA4H.js → textarea-5EDWymdh.js} +1 -1
- package/dist/client/assets/{thread-intent-C3PV-LRn.js → thread-intent-mGN-1FVs.js} +1 -1
- package/dist/client/assets/{thread-route-CxY5TjeM.js → thread-route-UpxprbYB.js} +1 -1
- package/dist/client/assets/{toggle-group-d_5STaVP.js → toggle-group-B7_qFUih.js} +1 -1
- package/dist/client/assets/{toolbar-D-SXcT0t.js → toolbar-DCd5b8V9.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DSBvSnFI.js → toolbar-icon-button-C71EiiMK.js} +1 -1
- package/dist/client/assets/{track-Cc1S4yMy.js → track-C7kVOg09.js} +1 -1
- package/dist/client/assets/{types-B2KcVByH.js → types-D59wnQVu.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CiO6eVCB.js → use-ai-providers-Dpe1dK4t.js} +1 -1
- package/dist/client/assets/{use-automations-VoPscQxA.js → use-automations-CnSncj8S.js} +1 -1
- package/dist/client/assets/{use-autosave-D-iSKxnB.js → use-autosave-C4mWVfcc.js} +1 -1
- package/dist/client/assets/{use-connection-GI8Focwr.js → use-connection-CS7s7hVb.js} +1 -1
- package/dist/client/assets/{use-copy-C0nulXNR.js → use-copy-CYJxwj1_.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D-L0PRaI.js → use-create-virtual-mcp-BS2Eranu.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DJCeP_ec.js → use-debounced-autosave-C_9hcG96.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CozflcUh.js → use-debounced-value-DQ0AhwnQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Bs4lGo6F.js → use-decopilot-events-ya7dVgqN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-T3Xjf9fU.js → use-delete-connection-AvH2v8uO.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-R-YLZcXi.js → use-deployment-admin-BwCASXu3.js} +1 -1
- package/dist/client/assets/{use-destination-route-C5lOfatk.js → use-destination-route-BNo7ZUVL.js} +1 -1
- package/dist/client/assets/{use-file-configs-CjjmtK39.js → use-file-configs-D7OlLpN6.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DHeLsiAD.js → use-infinite-scroll-Dt4fLfGW.js} +1 -1
- package/dist/client/assets/{use-join-requests-DP9WJAb0.js → use-join-requests-D9h8V8EK.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Dj0-A5Wa.js → use-mcp-auth-status-SA0Rp9TT.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BJohqqSd.js → use-mcp-client-BUvHJAtF.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DW-tAvJg.js → use-mcp-prompts-RQzihIv5.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-vt3UNphZ.js → use-mcp-tools-SGGGVKN4.js} +1 -1
- package/dist/client/assets/{use-members-C7ip6O59.js → use-members-eE2uqhkh.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-wxTo_2Wv.js → use-navigate-to-agent-CgD7hYim.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DVDqxM9c.js → use-org-auth-client-CI8Gk_jN.js} +1 -1
- package/dist/client/assets/{use-org-sso-3md051eT.js → use-org-sso-D2b1mjdF.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C7--at-2.js → use-organization-roles-9G-aBBDq.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dh58cpUx.js → use-organization-settings-BAFA--7u.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-9qdFpFC-.js → use-panel-navigate-CMHHm8JL.js} +1 -1
- package/dist/client/assets/{use-project-scope-NvD131m4.js → use-project-scope-CCn_7fuY.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DtpIh4N8.js → use-registry-connections-BbH5e5HY.js} +1 -1
- package/dist/client/assets/{use-secrets-N0I1WQgn.js → use-secrets-CySbZOGu.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DWl2Cfr4.js → use-section-preview-base-Di9BUx8I.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BpKA8nWD.js → use-status-sounds-DVdbgg-T.js} +1 -1
- package/dist/client/assets/{use-tags-EBwNPMg8.js → use-tags-BF1RK1hn.js} +1 -1
- package/dist/client/assets/{use-view-mode-CGTPphEX.js → use-view-mode-BM9KzSHZ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B2TPjUHz.js → use-virtual-mcp-nLa9DgC8.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DDm1RvPA.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-yiEBUT8w.js +1 -0
- package/dist/client/assets/{users-BPvwZmZl.js → users-D_EP1m-H.js} +1 -1
- package/dist/client/assets/{variant-calendar-CodpU1lu.js → variant-calendar-DE_JCwgE.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Ct7J-xLH.js → view-mode-toggle-DHzh7xSx.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/api-keys-8w-9P3dp.js +0 -1
- package/dist/client/assets/org-layout-CpgEGfxv.js +0 -1
- package/dist/client/assets/record-editor-BC2iQPGE.js +0 -1
- package/dist/client/assets/redirect-editor-C7uuK_jN.js +0 -1
- package/dist/client/assets/registry-DwUHQ8Lv.js +0 -2
- package/dist/client/assets/settings-layout-CypSCfpP.js +0 -1
- package/dist/client/assets/store-registry-Cre8_0ZD.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Nq5i14p1.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ByY64uZl.js +0 -1
package/dist/client/assets/{use-panel-navigate-9qdFpFC-.js → use-panel-navigate-CMHHm8JL.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,f as E,u as x,eN as O,d as R,y as k,eO as A}from"./index-
|
|
1
|
+
import{c as N,f as E,u as x,eN as O,d as R,y as k,eO as A}from"./index-DuTFQdyn.js";import{u as L,D as o}from"./use-destination-route-BNo7ZUVL.js";const F={board:o.tasks,files:o.library,reports:o.reports,overview:o.home,discover:o.discover};function w(){const e=N.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const a=E(t);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const s=x(c);let r;return e[2]!==a.panel||e[3]!==s?(r=O(a.panel,s),e[2]=a.panel,e[3]=s,e[4]=r):r=e[4],r}function B(){const e=N.c(15),t=R();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const c=E(a);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const r=x(s).virtualmcpid,i=c.org??"",b=L()===o.agents,d=c.taskId;let h;e[2]!==d?(h=(m,f,n)=>u=>{const l=f?{...u}:{thread:u.thread,sidepanel:u.sidepanel};return d&&(l.thread=d),{...n?.search?n.search(l):l,...m,mainpanel:void 0}},e[2]=d,e[3]=h):h=e[3];const y=h;let g;e[4]!==r||e[5]!==t||e[6]!==y||e[7]!==b||e[8]!==i?(g=(m,f)=>{const{panel:n,payload:u}=k(m),l=f?.replace??!0,T=!!n&&A(n),I=y(u,b&&!T,f);if(n&&T){const p=F[n];if(p===o.tasks){t({to:p,params:{org:i,taskKey:void 0},search:I,replace:l});return}t({to:p,params:{org:i},search:I,replace:l});return}const D=f?.virtualmcpid??r;t({to:o.agents,params:{org:i,panel:n},search:p=>({...I(p),virtualmcpid:D}),replace:l})},e[4]=r,e[5]=t,e[6]=y,e[7]=b,e[8]=i,e[9]=g):g=e[9];const P=g;let _;e[10]!==t?(_=m=>t({to:".",search:U,replace:m?.replace??!0}),e[10]=t,e[11]=_):_=e[11];const S=_;let v;return e[12]!==S||e[13]!==P?(v={openPanel:P,closePanel:S},e[12]=S,e[13]=P,e[14]=v):v=e[14],v}function U(e){return{...e,mainpanel:!1}}export{B as a,w as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,u as b,d as I}from"./index-
|
|
1
|
+
import{c as g,u as b,d as I}from"./index-DuTFQdyn.js";import{i as S,e as A}from"./constants-DNuUCxmW.js";import{e as P,f as j}from"./use-virtual-mcp-nLa9DgC8.js";import{r as p}from"./github-repo-BpKUwJal.js";const R={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function $(t){return`[data-tour="${R[t]}"]`}function E(t){if(typeof t!="object"||t===null)return!1;const o=t.githubRepo?.url;return typeof o=="string"&&o.length>0}function D(t){return p(t).status==="attached"}function G(t){const e=p(t).status;return e==="attached"||e==="detached"}function k(t){const e=new Set;for(const o of t??[]){const n=o.metadata?.liveAgentId;typeof n=="string"&&n&&e.add(o.id)}return e}function M(t,e){if(!t)return null;const o=t.metadata?.liveAgentId;if(typeof o=="string"&&o)return{mode:"dev",targetId:o};const n=(e??[]).find(s=>s.metadata?.liveAgentId===t.id);return n?{mode:"live",targetId:n.id}:null}const C=1;function h(t){const e=t??[],o=k(e);return e.filter(n=>!o.has(n.id)&&!S(n.id)&&!A(n.id))}function _(t){const e=p(t);return e.status==="none"?null:`${e.repo.owner}/${e.repo.name}`}function T(){const t=g.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0],b(e).virtualmcpid??null}function x(){const t=g.c(12),e=I(),o=P(),n=h(o),s=T(),v=n.find(r=>r.id===s)??null;let a;t[0]!==o||t[1]!==s?(a=s&&o.length>0&&!o.some(r=>r.id===s)?s:null,t[0]=o,t[1]=s,t[2]=a):a=t[2];const m=j(a),c=v??h(m?[m]:[])[0]??null;let u;t[3]!==e?(u=r=>e({to:".",search:y=>({...y,virtualmcpid:r??void 0})}),t[3]=e,t[4]=u):u=t[4];const l=u,d=_(c),f=n.length>=C;let i;return t[5]!==c||t[6]!==n||t[7]!==s||t[8]!==l||t[9]!==d||t[10]!==f?(i={scopeId:s,project:c,repo:d,projects:n,hasProjects:f,setScope:l},t[5]=c,t[6]=n,t[7]=s,t[8]=l,t[9]=d,t[10]=f,t[11]=i):i=t[11],i}export{R as L,T as a,E as b,D as c,G as d,M as f,k as g,$ as l,_ as p,h as s,x as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,W as R}from"./index-
|
|
1
|
+
import{c as C,W as R}from"./index-DuTFQdyn.js";import{u as p}from"./use-connection-CS7s7hVb.js";import{W as a}from"./constants-DNuUCxmW.js";import{h as y}from"./use-organization-settings-BAFA--7u.js";function M(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,W as c,a7 as r,K as l,x as d,n as f,e as S}from"./index-
|
|
1
|
+
import{c as u,W as c,a7 as r,K as l,x as d,n as f,e as S}from"./index-DuTFQdyn.js";function C(){const e=u.c(7),{org:n}=c(),a=r();let i;e[0]!==n.id?(i=l.secrets(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==a?(t=async()=>await a.call("SECRET_LIST",{}),e[2]=a,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:o}=d(s);return o.secrets}function m(){const e=u.c(8),{org:n}=c(),a=r(),i=f();let t;e[0]!==a?(t=async y=>await a.call("SECRET_CREATE",{...y}),e[0]=a,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:l.secrets(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let o;return e[5]!==t||e[6]!==s?(o={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=o):o=e[7],S(o)}export{m as a,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as q,b as K,r as w,j as s,l as Q}from"./index-
|
|
1
|
+
import{c as q,b as K,r as w,j as s,l as Q}from"./index-DuTFQdyn.js";import{ah as _}from"./agent-icon-Bxsxnhg4.js";import{i as Y}from"./SearchMd-C_odO2p9.js";import{D as Z,b as ee,d as te,c as se}from"./dialog-MZN5GEGy.js";import{I as re}from"./input-BQBB8gcC.js";import{k as le,l as oe,m as ie,o as X,G as ne,p as ce,q as ae}from"./index-7XLklGtI.js";const fe=12,D=new Set,F=new Set;function ue(){for(const r of F)r()}function de(r){return D.has(r)?!0:D.size>=fe?!1:(D.add(r),!0)}function J(r){D.delete(r)&&ue()}function me(r){return F.add(r),()=>{F.delete(r)}}function ve(r,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(r);l.current=r;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(J(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(J(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(r){const e=q.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=r,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?s.jsxs(s.Fragment,{children:[!l&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:s.jsx(_,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),s.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(_,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=s.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(r){const e=q.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=r,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=Q("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=s.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=s.jsx(_,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=s.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=s.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=s.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=s.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Ne(r){const e=q.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=r,l=K(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,N,R,y,g,C,T;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const z=t&&i&&o?le(i,o):[],W=i?oe(i):"",G=o?ie(o):void 0,H=new Map;if(t&&W)for(const p of z)H.set(p.resolveType,X(f,W,p.previewBlock,G));const M=a.trim().toLowerCase(),V=M?z.filter(p=>p.title.toLowerCase().includes(M)||p.resolveType.toLowerCase().includes(M)||p.description?.toLowerCase().includes(M)):z;h=Z,C=t,T=d,m=ee,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=s.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let k;e[27]!==a||e[28]!==B?(k=s.jsxs("div",{className:"relative pt-2",children:[O,s.jsx(re,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=k):k=e[29],e[30]!==A||e[31]!==k?(g=s.jsxs(se,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,k]}),e[30]=A,e[31]=k,e[32]=g):g=e[32],j=x,N="min-h-0 flex-1 overflow-y-auto",S="p-4",b=V.length===0?s.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:V.map(p=>s.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:H.get(p.resolveType)??X(f,W,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=g,e[17]=C,e[18]=T}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],R=e[14],y=e[15],g=e[16],C=e[17],T=e[18];let P;e[33]!==S||e[34]!==b?(P=s.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=P):P=e[35];let I;e[36]!==P||e[37]!==j||e[38]!==N?(I=s.jsx("div",{ref:j,className:N,children:P}),e[36]=P,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=s.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,e[44]=g,e[45]=L):L=e[45];let E;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==T?(E=s.jsx(h,{open:C,onOpenChange:T,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=T,e[50]=E):E=e[50],E}function Re(r){const e=q.c(4),{previewServerUrl:t,runtime:d}=ce(r.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==r.sandboxUrl||e[2]!==t?(o=ae({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=r.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Ne as A,Re as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,v as u}from"./index-
|
|
1
|
+
import{c as r,v as u}from"./index-DuTFQdyn.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-ya7dVgqN.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,W as f,a7 as y,m,n as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,W as f,a7 as y,m,n as g,e as T,K as l,t as E}from"./index-DuTFQdyn.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,M as c,A as d,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,I as w,r as f}from"./index-
|
|
1
|
+
import{c as p,I as w,r as f}from"./index-DuTFQdyn.js";function I(M,b){const e=p.c(12),d=b===void 0?"cards":b,o=w(),g=f.useRef(o),s=M?`deco-view-mode-${M}`:"deco-view-mode";let i;e[0]!==d||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:d},e[0]=d,e[1]=s,e[2]=i):i=e[2];const[t,m]=f.useState(i);let l;e[3]!==s?(l=r=>{m(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const u=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!g.current&&o&&t==="table"&&m("cards"),g.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==u||e[10]!==t?(n=[t,u],e[9]=u,e[10]=t,e[11]=n):n=e[11],n}export{I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,W as I,eP as S,c9 as _,K as A,eQ as y,m as M,eR as L,c8 as T,eS as U}from"./index-
|
|
1
|
+
import{c as C,W as I,eP as S,c9 as _,K as A,eQ as y,m as M,eR as L,c8 as T,eS as U}from"./index-DuTFQdyn.js";import{u as p,e as V,m as R}from"./use-mcp-client-BUvHJAtF.js";import{S as g}from"./constants-DNuUCxmW.js";function h(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=p(i);return S(s.id,"VIRTUAL_MCP",l,n)}function O(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=V(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 r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=M(u);let a;return t[12]!==d?(a=d??[],t[12]=d,t[13]=a):a=t[13],a}function w(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=V(n),i=o??void 0;let l;t[3]!==s||t[4]!==e.id||t[5]!==i?(l=y(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 r;t[7]!==l||t[8]!==c?(r={...l,enabled:c},t[7]=l,t[8]=c,t[9]=r):r=t[9];const{data:u}=M(r);return u?.item??null}async function E(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 k(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=V(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 r=!!l;let u;t[9]!==c||t[10]!==r?(u={...c,enabled:r},t[9]=c,t[10]=r,t[11]=u):u=t[11];const{data:d}=M(u);let a;t[12]!==d?.items?(a=d?.items??[],t[12]=d?.items,t[13]=a):a=t[13];const P=d?.totalCount,m=d?.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 v(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=p(n);return T(e.id,"VIRTUAL_MCP",o??void 0,s)}function x(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=p(n);let i,l,c;t[3]!==o||t[4]!==e.id?(i=[...o].sort(),c=M,l=A.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 r=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 d;return t[11]!==l||t[12]!==r||t[13]!==u?(d={queryKey:l,enabled:r,staleTime:3e4,queryFn:u},t[11]=l,t[12]=r,t[13]=u,t[14]=d):d=t[14],c(d)}function B(){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=p(e);return _(t.id,"VIRTUAL_MCP",n)}export{B as a,h as b,x as c,k as d,O as e,w as f,E as g,v as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./use-infinite-scroll-Dt4fLfGW.js";import{fg as i}from"./index-DuTFQdyn.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./use-infinite-scroll-Dt4fLfGW.js";import{fg as u,bU as n}from"./index-DuTFQdyn.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,P as I,K as J,t as Q,B as W}from"./index-
|
|
1
|
+
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-DuTFQdyn.js";import{C as G}from"./collection-table-wrapper-B2QBY6HJ.js";import{E as L}from"./empty-state-D_K7q-Cu.js";import{S as H}from"./search-input-BwssAmEt.js";import{A as X}from"./avatar-CIaf_qwP.js";import{B as D}from"./badge-C_BaeWRr.js";import{u as Z}from"./use-debounced-value-DQ0AhwnQ.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BnbuEtat.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-BsrbjIcJ.js";import"./ArrowUp-ChGaXEv5.js";import"./SearchMd-C_odO2p9.js";import"./User01-CgCTj81P.js";import"./differenceInSeconds-NQ4PDo0z.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(),P=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 y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:ae,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.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]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,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.Body,{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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as n,l as rt,a1 as ut,a4 as ht,B as tt,a2 as xt}from"./index-CAw6g9tV.js";import{y as gt,a4 as at,aF as bt}from"./agent-icon-Dsw04fQF.js";import{i as vt}from"./ChevronRight-CKftPemQ.js";import{L as yt}from"./label-ByckMHtZ.js";import{S as lt}from"./scroll-area-BI805ul_.js";import{S as jt}from"./switch-DlPMc1e_.js";import{V as Tt}from"./view-mode-toggle-Ct7J-xLH.js";import{bv as ct,bw as mt,bx as Nt,by as _t,bz as kt,bA as U,bB as wt}from"./index-DH6qLcGa.js";import"./AlertCircle-CG7tfapy.js";import"./Tool01-CtOHcy0Y.js";import"./ArrowUp-CxKA4POx.js";import"./ArrowLeft-Dexv6rHk.js";import"./Tool02-DHxIusmd.js";import"./XCircle-DZJkY1-f.js";import"./TrendUp01-BctNF4vg.js";import"./ZoomOut-D8t79aO2.js";import"./Users03-cesUeOsp.js";import"./CheckCircle-BnpxIwzg.js";import"./Check-Jn0qXgT0.js";import"./ChevronUp-BCwuiyHj.js";import"./ChevronSelectorVertical-BPOo032l.js";import"./DotsVertical-C65YDOa_.js";import"./UserSquare-BEv1iIj5.js";import"./Copy01-jXW2eGyY.js";import"./CreditCard01-Zn4AjX46.js";import"./Download01-BpcIjY9x.js";import"./Settings02-DfFNQquZ.js";import"./Eye-DvBjB5D4.js";import"./Share07-8oXDBqwk.js";import"./GitBranch01-Bde_Ik_K.js";import"./Globe01-D2uoGclE.js";import"./XClose-mJWP0IZB.js";import"./HardDrive-CBqO3DS3.js";import"./Image01-0uExgWAI.js";import"./Key01-BiKWCM1S.js";import"./Link01-C7a_h6ys.js";import"./LinkExternal01-D_IXdPPU.js";import"./Monitor01-CKYtARge.js";import"./Sun-N_eYVUUU.js";import"./Package-D0PXqO6P.js";import"./Palette-CQVEzzhe.js";import"./Play-CONIoWIl.js";import"./Plus-D7VA57q5.js";import"./SearchMd-C1loDEwy.js";import"./Shield01-CrPC_5gY.js";import"./Stars01-BTmtR5If.js";import"./Trash01-CHla-FrA.js";import"./Upload01-VP9EBYtl.js";import"./User01-8XeMepHg.js";import"./Users01-CvPFHBcf.js";import"./Zap-JQtzyV8B.js";import"./select-Bnv10Fl8.js";import"./chat-context-ffF_r7RU.js";import"./use-panel-navigate-9qdFpFC-.js";import"./use-destination-route-C5lOfatk.js";import"./thread-route-CxY5TjeM.js";import"./dialog-DDd8wUS7.js";import"./constants-DNuUCxmW.js";import"./thread-intent-C3PV-LRn.js";import"./slugify-CEUa2lfQ.js";import"./hooks-J2gbnuVW.js";import"./use-mcp-client-BJohqqSd.js";import"./auth-Ctf1zdSk.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-Cp5pr9Ve.js";import"./task-board-DHq8t-_N.js";import"./schema-BoK0jTZh.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-B2TPjUHz.js";import"./use-ai-providers-CiO6eVCB.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-Bs4lGo6F.js";import"./use-organization-settings-Dh58cpUx.js";import"./automation-runs-BP4svOKv.js";import"./useInfiniteQuery-Nq5i14p1.js";import"./use-infinite-scroll-DHeLsiAD.js";import"./use-connection-GI8Focwr.js";import"./table-D_mk2-gB.js";import"./empty-state-L8hCXC--.js";import"./use-members-C7ip6O59.js";import"./use-org-auth-client-DVDqxM9c.js";import"./use-automations-VoPscQxA.js";import"./useSuspenseInfiniteQuery-ByY64uZl.js";import"./avatar-ayySA21l.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-C0nulXNR.js";import"./markdown-C1VdpJ5j.js";import"./monaco-editor-DhRI2q0D.js";import"./editor-B0M9C5II.js";import"./types-B2KcVByH.js";import"./shell-layout-X5sLDjab.js";import"./use-project-scope-NvD131m4.js";import"./github-repo-BpKUwJal.js";import"./command-CEQjEkRa.js";import"./index-DU91evk-.js";import"./required-auth-layout-632Nlbdk.js";import"./use-org-sso-3md051eT.js";import"./integration-icon-gY5UnY38.js";import"./use-navigate-to-agent-wxTo_2Wv.js";import"./use-mcp-prompts-DW-tAvJg.js";import"./form-DR4f8DO7.js";import"./input-CRq9rZYf.js";import"./file-type-icon-C5mq72Tm.js";import"./drawer-CxFI5tCn.js";import"./collection-search-DUFT-3aZ.js";import"./use-mcp-tools-vt3UNphZ.js";import"./tabs-xquvO62b.js";import"./toggle-group-d_5STaVP.js";import"./task-route-DWU-0q6w.js";import"./toolbar-icon-button-DSBvSnFI.js";import"./popover-BIPtCsqc.js";import"./github-repo-picker-Dyu49H5P.js";import"./use-debounced-value-CozflcUh.js";import"./authenticate-and-persist-oauth-UjkEE9k3.js";import"./mcp-oauth-DwPFIejs.js";import"./extract-connection-data-C2Ocp5Tk.js";import"./metadata-dUsYcpuu.js";import"./connection-qt8m11-c.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./connection-card-Bwgx5OMm.js";import"./use-registry-connections-DtpIh4N8.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BClvRA4H.js";import"./connection-form-helpers-Cs1EiOkG.js";import"./collection-tabs-aHnkLK94.js";import"./badge-BJg3YTbr.js";import"./dropdown-menu-C3Gdadki.js";import"./get-initials-D-f_fDFw.js";import"./select-model-NQ0mnVuK.js";import"./checkbox-DmweFMZg.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-Dt2zI1nQ.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BpKA8nWD.js";import"./toolbar-D-SXcT0t.js";import"./use-file-configs-CjjmtK39.js";import"./site-slug-uya6Wp4-.js";import"./skill-preview-DL4gp0ne.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-BU3enZKF.js";import"./use-debounced-autosave-DJCeP_ec.js";import"./search-input-CFyqYOfd.js";import"./use-mcp-auth-status-Dj0-A5Wa.js";import"./use-secrets-N0I1WQgn.js";import"./client-icons-DX-H77xu.js";import"./connect-layout-CS-AhNLB.js";import"./self-tool-result-Dc4tPK9T.js";import"./track-Cc1S4yMy.js";import"./use-tags-EBwNPMg8.js";import"./breadcrumb-B5Tcv0Uh.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-CakAIrvQ.js";import"./site-error--i37Vnuw.js";import"./cards-D9Ttj2cE.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=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 i=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=i.getTime()?null:{start:i,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,i=[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 i)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 Q(e,t,r,o,s){if(Dt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);i.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<i.length;l++){const m=i[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Q(e[i],t,r,[...o,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&Q(a,t,r,[...o,i],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(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 i=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Bt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Bt}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ht(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=n.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=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&&n.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=Ht(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=n.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=n.jsx(xt,{children:n.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const nt=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 ${nt}px, #000 calc(100% - ${nt}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:i,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]!==i?(b=n.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=n.jsx(ut,{asChild:!0,children:n.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=n.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=n.jsxs(ht,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function tn(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,i]=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=n.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=n.jsx(gt,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=n.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 C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(vt,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==L||t[29]!==M?(w=n.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",M]}),t[28]=L,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=n.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&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(jt,{id:"show-ongoing",checked:l,onCheckedChange:m}),n.jsx(yt,{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 H;t[40]===Symbol.for("react.memo_cache_sentinel")?(H=n.jsx(at,{}),t[40]=H):H=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:H,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(bt,{}),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 B;t[53]!==P||t[54]!==s?(B=n.jsx(Tt,{value:s,onValueChange:i,options:P}),t[53]=P,t[54]=s,t[55]=B):B=t[55];let z;t[56]!==R||t[57]!==B?(z=n.jsxs("div",{className:"flex items-center gap-4",children:[R,B]}),t[56]=R,t[57]=B,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=n.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?n.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?n.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):n.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=n.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 i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==o||t[2]!==s?(a=n.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,o>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),n.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,it=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.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(Qt,0),T=st+E*(et+it)+8;return n.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 n.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:n.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+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return n.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&n.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=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=n.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]!==i||t[14]!==m||t[15]!==p?(h=n.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return n.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,i=r,a=U(r,J),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()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=i.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=n.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(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=n.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=n.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 C;t[13]!==x||t[14]!==u?(C=u!==null&&n.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:n.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]=C):C=t[15];const $=m.map(w=>{const[j,R]=w,H=dt(s,j),V=R[0]?.blockLabel??j;return n.jsxs("div",{children:[n.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:n.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>n.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[n.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[n.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),n.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),n.jsxs("div",{className:"relative flex-1 h-full",children:[n.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),i.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),B=h(new Date(O))-P;return n.jsx(ft,{variant:S,color:H,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${B}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==C||t[18]!==$?(L=n.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=L):L=t[19];let M;return t[20]!==b||t[21]!==L?(M=n.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=M):M=t[22],M}function ee(e,t){return n.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return n.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{tn as VariantCalendar};
|
|
1
|
+
import{c as K,b as X,r as Z,j as n,l as rt,a1 as ut,a4 as ht,B as tt,a2 as xt}from"./index-DuTFQdyn.js";import{y as gt,a4 as at,aF as bt}from"./agent-icon-Bxsxnhg4.js";import{i as vt}from"./ChevronRight-DbZJ7s91.js";import{L as yt}from"./label-DMb6nlzF.js";import{S as lt}from"./scroll-area-hWU0FBJA.js";import{S as jt}from"./switch-D7TGNQH3.js";import{V as Tt}from"./view-mode-toggle-DHzh7xSx.js";import{bv as ct,bw as mt,bx as Nt,by as _t,bz as kt,bA as U,bB as wt}from"./index-7XLklGtI.js";import"./AlertCircle-C2NBg9mc.js";import"./Tool01-BZqaTMXK.js";import"./ArrowUp-ChGaXEv5.js";import"./ArrowLeft-CsptIIdO.js";import"./Tool02-pfppv5IR.js";import"./XCircle-DYwdtPEj.js";import"./TrendUp01-CHK-OeEA.js";import"./ZoomOut-3_5bYJZJ.js";import"./Users03-C3hNO4vD.js";import"./CheckCircle-DliFzmTw.js";import"./Check-BX2gygbe.js";import"./ChevronUp-CKAKUsLZ.js";import"./ChevronSelectorVertical-kHOMBDm7.js";import"./DotsVertical-BAzYPODX.js";import"./UserSquare-Cis5hkvt.js";import"./Copy01-C__uU62x.js";import"./CreditCard01-BOQ6PfLv.js";import"./Download01-BSiLOFk1.js";import"./Settings02-Bu5ySj3i.js";import"./Eye-C8bJ0pht.js";import"./Share07-DwzdoQ4a.js";import"./GitBranch01-Bab5ZdgR.js";import"./Globe01-CChCtZhM.js";import"./XClose-eQ0IqAwM.js";import"./HardDrive-85baSgBa.js";import"./Image01-ys43utN0.js";import"./Key01-C-1aj8U9.js";import"./Link01-DGUdctuw.js";import"./LinkExternal01-0jxUYeWb.js";import"./Monitor01-84uea3LL.js";import"./Sun-SCvGGuZ8.js";import"./Package-B18tBkuY.js";import"./Palette-CV1Ch2Ua.js";import"./Play-B9Jhx-_c.js";import"./Plus-B5hmmemV.js";import"./SearchMd-C_odO2p9.js";import"./Shield01-CeyvRCTS.js";import"./Stars01-m2rCV73l.js";import"./Trash01-CmUBt3qF.js";import"./Upload01-DORj1aoY.js";import"./User01-CgCTj81P.js";import"./Users01-BikFpVdm.js";import"./Zap-D1wJazPI.js";import"./select-Clrs7oqv.js";import"./chat-context-UTIz_Pyn.js";import"./use-panel-navigate-CMHHm8JL.js";import"./use-destination-route-BNo7ZUVL.js";import"./thread-route-UpxprbYB.js";import"./dialog-MZN5GEGy.js";import"./constants-DNuUCxmW.js";import"./thread-intent-mGN-1FVs.js";import"./slugify-CEUa2lfQ.js";import"./hooks-CbjISts1.js";import"./use-mcp-client-BUvHJAtF.js";import"./auth-C7ghbqGi.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CXw15f-z.js";import"./task-board-h1SC3xFJ.js";import"./schema-D_IYS8Ao.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-nLa9DgC8.js";import"./use-ai-providers-Dpe1dK4t.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-ya7dVgqN.js";import"./use-organization-settings-BAFA--7u.js";import"./automation-runs-ebCE4-Is.js";import"./useInfiniteQuery-DDm1RvPA.js";import"./use-infinite-scroll-Dt4fLfGW.js";import"./use-connection-CS7s7hVb.js";import"./table-BsrbjIcJ.js";import"./empty-state-D_K7q-Cu.js";import"./use-members-eE2uqhkh.js";import"./use-org-auth-client-CI8Gk_jN.js";import"./use-automations-CnSncj8S.js";import"./useSuspenseInfiniteQuery-yiEBUT8w.js";import"./avatar-CIaf_qwP.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CYJxwj1_.js";import"./markdown-DGD7BNRG.js";import"./monaco-editor-BEVlomxQ.js";import"./editor-CYkhTDNr.js";import"./types-D59wnQVu.js";import"./shell-layout-1ZMT0Tc1.js";import"./use-project-scope-CCn_7fuY.js";import"./github-repo-BpKUwJal.js";import"./command-YM_TkZoa.js";import"./index-CsgWXHyv.js";import"./required-auth-layout-tEyIPAEG.js";import"./use-org-sso-D2b1mjdF.js";import"./integration-icon-CGkU-oJS.js";import"./use-navigate-to-agent-CgD7hYim.js";import"./use-mcp-prompts-RQzihIv5.js";import"./form-Dbv9rnRr.js";import"./input-BQBB8gcC.js";import"./file-type-icon-CMoqiRt4.js";import"./drawer-DcQ3SCMM.js";import"./collection-search-M_RRr6Xl.js";import"./use-mcp-tools-SGGGVKN4.js";import"./tabs-DiCn1dq1.js";import"./toggle-group-B7_qFUih.js";import"./task-route-DSgSPPEW.js";import"./toolbar-icon-button-C71EiiMK.js";import"./popover-DF2wTNDa.js";import"./github-repo-picker-B7FKQdS9.js";import"./use-debounced-value-DQ0AhwnQ.js";import"./authenticate-and-persist-oauth-_W6RIHUW.js";import"./mcp-oauth-B16lXFdS.js";import"./extract-connection-data-UVgsucP8.js";import"./metadata-dUsYcpuu.js";import"./connection-CtZLzycj.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./connection-card-BjwMqpRy.js";import"./use-registry-connections-BbH5e5HY.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-5EDWymdh.js";import"./connection-form-helpers-Dwp_oeO7.js";import"./collection-tabs-C8VQp3Vj.js";import"./badge-C_BaeWRr.js";import"./dropdown-menu-g-JnC1d_.js";import"./get-initials-D-f_fDFw.js";import"./select-model-fiPpDkFD.js";import"./checkbox-DuSP_QEG.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-Di0Tlun6.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DVdbgg-T.js";import"./toolbar-DCd5b8V9.js";import"./use-file-configs-D7OlLpN6.js";import"./site-slug-uya6Wp4-.js";import"./skill-preview-5H-VVc0-.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-CPeNK-tT.js";import"./use-debounced-autosave-C_9hcG96.js";import"./search-input-BwssAmEt.js";import"./use-mcp-auth-status-SA0Rp9TT.js";import"./use-secrets-CySbZOGu.js";import"./client-icons-Cfw7Qv9M.js";import"./connect-layout-D5j21U1X.js";import"./self-tool-result-D-TDvKxu.js";import"./track-C7kVOg09.js";import"./use-tags-BF1RK1hn.js";import"./breadcrumb-DF2ZBTYn.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-Bli88vuo.js";import"./site-error--i37Vnuw.js";import"./cards-CEeLhPFB.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=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 i=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=i.getTime()?null:{start:i,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,i=[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 i)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 Q(e,t,r,o,s){if(Dt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);i.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<i.length;l++){const m=i[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Q(e[i],t,r,[...o,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&Q(a,t,r,[...o,i],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(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 i=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Bt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Bt}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ht(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=n.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=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&&n.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=Ht(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=n.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=n.jsx(xt,{children:n.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const nt=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 ${nt}px, #000 calc(100% - ${nt}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:i,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]!==i?(b=n.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=n.jsx(ut,{asChild:!0,children:n.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=n.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=n.jsxs(ht,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function tn(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,i]=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=n.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=n.jsx(gt,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=n.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 C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(vt,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==L||t[29]!==M?(w=n.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",M]}),t[28]=L,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=n.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&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(jt,{id:"show-ongoing",checked:l,onCheckedChange:m}),n.jsx(yt,{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 H;t[40]===Symbol.for("react.memo_cache_sentinel")?(H=n.jsx(at,{}),t[40]=H):H=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:H,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(bt,{}),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 B;t[53]!==P||t[54]!==s?(B=n.jsx(Tt,{value:s,onValueChange:i,options:P}),t[53]=P,t[54]=s,t[55]=B):B=t[55];let z;t[56]!==R||t[57]!==B?(z=n.jsxs("div",{className:"flex items-center gap-4",children:[R,B]}),t[56]=R,t[57]=B,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=n.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?n.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?n.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):n.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=n.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 i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==o||t[2]!==s?(a=n.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,o>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),n.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,it=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.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(Qt,0),T=st+E*(et+it)+8;return n.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 n.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:n.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+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return n.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&n.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=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=n.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]!==i||t[14]!==m||t[15]!==p?(h=n.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return n.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,i=r,a=U(r,J),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()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=i.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=n.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(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=n.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=n.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 C;t[13]!==x||t[14]!==u?(C=u!==null&&n.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:n.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]=C):C=t[15];const $=m.map(w=>{const[j,R]=w,H=dt(s,j),V=R[0]?.blockLabel??j;return n.jsxs("div",{children:[n.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:n.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>n.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[n.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[n.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),n.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),n.jsxs("div",{className:"relative flex-1 h-full",children:[n.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),i.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),B=h(new Date(O))-P;return n.jsx(ft,{variant:S,color:H,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${B}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==C||t[18]!==$?(L=n.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=L):L=t[19];let M;return t[20]!==b||t[21]!==L?(M=n.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=M):M=t[22],M}function ee(e,t){return n.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return n.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{tn as VariantCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,r as C,l as f,j as i,a4 as k,a1 as I,a2 as P}from"./index-
|
|
1
|
+
import{c as $,r as C,l as f,j as i,a4 as k,a1 as I,a2 as P}from"./index-DuTFQdyn.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 A(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:L,fullWidth:R,className:z}=E,_=L===void 0?"sm":L,m=R===void 0?!1:R;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const T=C.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[d,S]=C.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=T.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),C.useEffect(g,p);const l=M[_];let n;t[6]!==z?(n=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==l||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{T.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(l.buttonWithLabel,"px-3"):l.button),children:[i.jsx("span",{className:f("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:f("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]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":l.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,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{A as V};
|
package/dist/client/index.html
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
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-
|
|
53
|
+
<script type="module" crossorigin src="/assets/index-DuTFQdyn.js"></script>
|
|
54
54
|
<link rel="stylesheet" crossorigin href="/assets/index-DrotPsL6.css">
|
|
55
55
|
</head>
|
|
56
56
|
<body>
|
package/dist/server/cli.js
CHANGED
|
@@ -1524,7 +1524,7 @@ Usage: deco services <up|down|status>`),process.exit(1)}}var up1=L(()=>{rf()});f
|
|
|
1524
1524
|
`.execute($);if(Number(W.rows[0]?.cnt)===0){console.warn(`Failed to migrate ${J}/${K}, keeping in old table`);continue}}await Py`
|
|
1525
1525
|
DELETE FROM kysely_migration WHERE name = ${X}
|
|
1526
1526
|
`.execute($)}}async function ma1($){await xs8($),await fs8($);let Z=new ca1({db:$,provider:{getMigrations:()=>Promise.resolve(Zn0)}}),{error:X,results:Q}=await Z.migrateToLatest(),Y=0;if(Q?.forEach((G)=>{if(G.status==="Success")Y++;else if(G.status==="Error")console.error(`Failed to execute migration "${G.migrationName}"`)}),X)throw console.error("Failed to migrate"),console.error(X),X;return Y}async function bs8($){let{keepOpen:Z=!1,database:X,skipBetterAuth:Q=!1}=$??{},Y="skipped";if(!Q&&!X)Y=await ml0();let G=X??h$(),J=async()=>{if(!Z&&!X)await ZO(G).catch((K)=>{console.warn("Warning: Error closing database:",K)})};try{let K=await ma1(G.db);return await J(),{betterAuth:Y,kysely:K}}catch(K){throw await J(),K}}async function ys8(){let $=h$(),Z=new ca1({db:$.db,provider:{getMigrations:()=>Promise.resolve(Zn0)}}),{error:X,results:Q}=await Z.migrateDown();if(Q?.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}"`)}),X)throw console.error("Failed to rollback migration"),console.error(X),X}var ia1=L(()=>{ua1();dl0();GX()});async function D70($){let Z={...process.env},X=W80($,Z);console.log(lw1(X.settings.encryptionKey));let Q=X.settings.betterAuthSecret||(X.settings.localMode?wt1(X.settings.dataDir):""),{ensureServices:Y}=await Promise.resolve().then(() => (zZ0(),jZ0)),{outputs:G,services:J}=await Y({home:X.settings.dataDir,externalDatabaseUrl:X.externalDatabaseUrl,externalNatsUrl:X.externalNatsUrl});if(!X.skipMigrations){let{migrateBetterAuth:W}=await Promise.resolve().then(() => (dl0(),jt1));await W(G.databaseUrl);let{createDatabase:H}=await Promise.resolve().then(() => (GX(),fn1)),{migrateToLatest:F}=await Promise.resolve().then(() => (ia1(),da1)),U=H(G.databaseUrl);await F({keepOpen:!0,database:U,skipBetterAuth:!0})}let K={...X.settings,betterAuthSecret:Q,databaseUrl:G.databaseUrl,natsUrls:G.natsUrls,...G.s3?{s3Endpoint:G.s3.endpoint,s3Bucket:G.s3.bucket,s3AccessKeyId:G.s3.accessKeyId,s3SecretAccessKey:G.s3.secretAccessKey,s3ForcePathStyle:G.s3.forcePathStyle}:{}};return cp1(K),{settings:K,services:J.map((W)=>({name:W.name==="PostgreSQL"?"Postgres":W.name,port:W.port})),managedServiceNames:J.filter((W)=>W.owner==="managed").map((W)=>W.name)}}var Xn0=L(()=>{rf();Et1();j$()});var oa1={};s(oa1,{updateService:()=>iE,subscribeCliState:()=>Gn0,setTuiConsoleIntercepted:()=>w70,setServerUrl:()=>Bp,setMigrationsDone:()=>Np,setDevMode:()=>hs8,resetCliStateForTests:()=>gs8,isTuiConsoleIntercepted:()=>E70,getCliState:()=>Yn0,addLogEntry:()=>WO});function pa1(){return[{name:"Postgres",status:"pending",port:0},{name:"NATS",status:"pending",port:0}]}function na1(){return{services:pa1(),migrationsStatus:"pending",serverUrl:null,logs:[]}}function gs8(){pQ=na1()}function Up(){for(let $ of Qn0)$()}function Yn0(){return pQ}function Gn0($){return Qn0.add($),()=>Qn0.delete($)}function iE($){pQ={...pQ,services:pQ.services.map((Z)=>Z.name===$.name?$:Z)},Up()}function Np(){pQ={...pQ,migrationsStatus:"done"},Up()}function Bp($){pQ={...pQ,serverUrl:$},Up()}function WO($){let Z=[...pQ.logs,$];pQ={...pQ,logs:Z.length>500?Z.slice(-500):Z},Up()}function hs8(){pQ={...pQ,services:[...pa1(),{name:"API",status:"pending",port:0},{name:"Vite",status:"pending",port:0}]},Up()}function w70($){ta1=$}function E70(){return ta1}var pQ,Qn0,ta1=!1;var pE=L(()=>{pQ=na1();Qn0=new Set});import{createServer as ra1}from"net";function us8($){return new Promise((Z)=>{let X=ra1();X.once("error",()=>Z(!1)),X.listen($,"0.0.0.0",()=>{X.close(()=>Z(!0))})})}async function Op($){if(await us8($))return $;let Z=await new Promise((X,Q)=>{let Y=ra1();Y.once("error",Q),Y.listen(0,"0.0.0.0",()=>{let G=Y.address(),J=typeof G==="object"&&G?G.port:0;Y.close(()=>X(J))})});return console.warn(`Port ${$} is in use, using port ${Z} instead.`),Z}var Jn0=()=>{};var Wn0={};s(Wn0,{startDevServer:()=>ls8,pipeToLogStore:()=>Kn0});import{join as cs8}from"path";function Kn0($){let Z=$.getReader(),X=new TextDecoder,Q="";function Y(){let G=Q.split(`
|
|
1527
|
-
`);Q=G.pop()??"";for(let J of G){let K=Bun.stripANSI(J).replace(/^\[\d+\]\s*/,"").trim();if(!K)continue;WO({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:K})}}(async()=>{try{for(;;){let{done:G,value:J}=await Z.read();if(G)break;Q+=X.decode(J,{stream:!0}),Y()}}catch{}if(Q.trim()){let G=Bun.stripANSI(Q).replace(/^\[\d+\]\s*/,"").trim();if(G)WO({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:G})}})()}async function ls8($){let{baseUrl:Z,noTui:X}=$,Q=process.env.HOST==="0.0.0.0"&&Boolean(process.env.PORT),Y=Q?process.env.PORT:$.vitePort,G=Z||`http://localhost:${Y}`,J=Q?await Op(Number(Y)+1):await Op(Number($.port)),{settings:K,services:W,managedServiceNames:H}=await D70({port:String(J),home:$.home,baseUrl:$.baseUrl,localMode:$.localMode,skipMigrations:$.skipMigrations,noTui:$.noTui,vitePort:$.vitePort});for(let D of W)iE({name:D.name,status:"ready",port:D.port});Np();let F=cs8(import.meta.dir,"..","..","..","..",".."),U=X===!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:G,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)Kn0(N.stdout),Kn0(N.stderr);Bp(G),iE({name:"Vite",status:"ready",port:Number(Y)}),iE({name:"API",status:"ready",port:Number(K.port)});let O=async(D)=>{if(N.kill(D),await N.exited,H.length>0){let{stopServices:w}=await Promise.resolve().then(() => (zZ0(),jZ0));await w(K.dataDir)}};return process.on("SIGINT",()=>O("SIGINT")),process.on("SIGTERM",()=>O("SIGTERM")),{port:Number(Y),process:N}}var Hn0=L(()=>{Xn0();pE();Jn0()});var j70;var Fn0=L(()=>{j70={name:"decocms",version:"4.321.6",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 ds8,Text as aa1}from"ink";import{jsx as is8,jsxs as sa1}from"react/jsx-runtime";function ea1({version:$}){return sa1(ds8,{flexDirection:"column",marginTop:1,children:[mZ0.map((Z,X)=>is8(aa1,{color:dZ0[X],children:Z},X)),sa1(aa1,{dimColor:!0,children:[" v",$]})]})}var $s1=L(()=>{ei()});import{Box as nE,Text as HO}from"ink";import{Spinner as ps8}from"@inkjs/ui";import{jsx as KG,jsxs as Ay}from"react/jsx-runtime";function Zs1({status:$}){if($==="pending")return KG(ps8,{label:""});return KG(HO,{color:"green",children:"\u2713"})}function ns8($){return`${$.name}: ${$.port||"...."}`}function Xs1({services:$,migrationsStatus:Z,home:X,serverUrl:Q}){return Ay(nE,{flexDirection:"column",paddingBottom:1,children:[KG(ea1,{version:j70.version}),KG(nE,{marginBottom:1,children:KG(HO,{dimColor:!0,children:"\u2500".repeat(80)})}),KG(nE,{children:Ay(HO,{dimColor:!0,children:["Home: ",X]})}),Ay(nE,{gap:2,children:[$.map((Y)=>Ay(nE,{gap:1,children:[KG(HO,{children:ns8(Y)}),KG(Zs1,{status:Y.status})]},Y.name)),Ay(nE,{gap:1,children:[KG(HO,{children:"Migrations"}),KG(Zs1,{status:Z})]})]}),KG(nE,{children:Q?Ay(HO,{children:["Open in browser: ",KG(HO,{color:"cyan",children:Q})]}):KG(HO,{dimColor:!0,children:"Starting..."})})]})}var Qs1=L(()=>{Fn0();$s1()});import{Box as ts8,Text as Lp}from"ink";import{jsx as Un0,jsxs as Nn0}from"react/jsx-runtime";function os8($){if($>=500)return"red";if($>=400)return"yellow";if($>=300)return"cyan";return"green"}function Ys1({logs:$}){return Un0(ts8,{flexDirection:"column",children:$.map((Z,X)=>{if(Z.rawLine)return Un0(Lp,{dimColor:!0,children:Z.rawLine},X);let Q=Z.duration<1000?`${Z.duration}ms`:`${(Z.duration/1000).toFixed(1)}s`;return Nn0(Lp,{children:[Nn0(Lp,{dimColor:!0,children:[Z.method.padEnd(6)," ",Z.path.padEnd(30)," "]}),Un0(Lp,{color:os8(Z.status),children:Z.status}),Nn0(Lp,{dimColor:!0,children:[" ",Q.padStart(8)]})]},X)})})}var Gs1=()=>{};var Bn0={};s(Bn0,{App:()=>ss8});import{Box as rs8}from"ink";import{useSyncExternalStore as as8}from"react";import{jsx as Js1,jsxs as es8}from"react/jsx-runtime";function ss8({home:$}){let Z=as8(Gn0,Yn0);return es8(rs8,{flexDirection:"column",children:[Js1(Xs1,{services:Z.services,migrationsStatus:Z.migrationsStatus,home:$,serverUrl:Z.serverUrl}),Js1(Ys1,{logs:Z.logs})]})}var On0=L(()=>{Qs1();Gs1();pE()});var m3="thread-gate",UU="decopilot-hosted-harness",NU="decopilot-hosted-harness-sandboxed",PJ="automations",FO="background-tools",tE="task-board-github-reads";var Ks1="11";function Ws1($){return{name:"decocms",systemDatabaseUrl:$.systemDatabaseUrl,systemDatabaseSchemaName:"dbos",systemDatabasePoolSize:$.poolSize,runAdminServer:!1,executorID:$.executorID,applicationVersion:Ks1,...$.listenQueues!==void 0?{listenQueues:$.listenQueues}:{}}}var Hs1=()=>{};import $e8 from"pg";async function Us1($,Z){let{databaseUrl:X,lockTimeoutMs:Q=Ze8}=$,Y=$.log??((W)=>console.log(W)),G=new $e8.Client({connectionString:X});await G.connect();let J=Date.now(),K=!1;try{while(!K){if(K=(await G.query("SELECT pg_try_advisory_lock($1) AS locked",[Fs1.toString()])).rows[0]?.locked===!0,K)break;if(Date.now()-J>=Q)throw Error(`Timed out after ${Q}ms waiting for the DBOS migration lock. Another process is still migrating the dbos schema; this pod will restart and retry.`);await H$(Xe8)}let W=Date.now()-J;if(W>1000)Y(`[dbos] waited ${W}ms for the migration lock; another process migrated first`);return await Z()}finally{if(K)try{await G.query("SELECT pg_advisory_unlock($1)",[Fs1.toString()])}catch{}await G.end().catch(()=>{})}}var Fs1=8314027461559302n,Ze8=600000,Xe8=500;var Ns1=L(()=>{n8()});function Qe8(){let $=(process.env.BUN_OPTIONS??"").split(/\s+/).filter(Boolean);return[...process.argv.slice(1),...$]}function Ln0($,Z){for(let X=0;X<$.length;X++){let Q=$[X];if(Q===void 0)continue;if(Q===Z)return $[X+1];if(Q.startsWith(`${Z}=`))return Q.slice(Z.length+1)}return}function Bs1(){let $=Qe8();if($.includes("--cpu-prof")){console.log(JSON.stringify({msg:"cpu-profiling-active",dir:Ln0($,"--cpu-prof-dir")??process.cwd(),name:Ln0($,"--cpu-prof-name"),markdown:$.includes("--cpu-prof-md"),intervalUs:Number(Ln0($,"--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 Os1(){if(process.env.HEAP_WATCH!=="1")return()=>{};let $=Number(process.env.HEAP_WATCH_INTERVAL_MS??60000),Z=async()=>{let X=cE();if(!X)return;let Q={};try{let{heapStats:Y}=await import("bun:jsc"),G=Y(),J=Object.entries(G.objectTypeCounts).sort((K,W)=>W[1]-K[1]).slice(0,20);Q={objectCount:G.objectCount,heapSize:G.heapSize,top:Object.fromEntries(J)}}catch{}console.log(JSON.stringify({msg:"heap-watch",ts:new Date().toISOString(),uptimeS:Math.round(process.uptime()),rss:X.rss,heapUsed:X.heapUsed,heapTotal:X.heapTotal,external:X.external,arrayBuffers:X.arrayBuffers,...Q}))};return Z().catch(()=>{}),z70=setInterval(()=>void Z().catch(()=>{}),$),z70.unref?.(),process.on("SIGUSR2",()=>{try{let X=Bun.generateHeapSnapshot("v8"),Q=typeof X==="string"?X:JSON.stringify(X),Y=`/tmp/heap-${process.pid}-${Date.now()}.heapsnapshot`;Bun.write(Y,Q),console.log(JSON.stringify({msg:"heap-snapshot-written",path:Y}))}catch(X){console.error("[heap-watch] snapshot failed:",X)}}),()=>{if(z70)clearInterval(z70)}}var z70;var Ls1=()=>{};import*as Ye8 from"bun:jsc";function Ds1(){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{Ge8()}catch(G){return console.error("[stall-watchdog] failed to start sampling profiler:",G),()=>{}}let X,Q=performance.now()+Z,Y=()=>{let G=performance.now(),J=G-Q;Q=G+Z;let K=[];try{K=Je8()?.traces??[]}catch{}if(J>$&&K.length>0){let W=new Map;for(let F of K){let U=F.frames.find((O)=>O.sourceURL&&!/Unknown Executable/.test(O.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(J),samplesInWindow:K.length,top:H}))}X=setTimeout(Y,Z),X.unref?.()};return X=setTimeout(Y,Z),X.unref?.(),()=>{if(X)clearTimeout(X)}}var Ge8,Je8;var ws1=L(()=>{({startSamplingProfiler:Ge8,samplingProfilerStackTraces:Je8}=Ye8)});function Es1(){Bs1();let $=[Os1(),Mn1(),Ds1()];return()=>{for(let Z of $)Z()}}var js1=L(()=>{xl0();Ls1();ws1()});var oE=v((zs1)=>{Object.defineProperty(zs1,"__esModule",{value:!0});zs1.RepublishHeaders=zs1.DirectMsgHeaders=zs1.JsHeaders=zs1.AdvisoryKind=void 0;zs1.isOrderedPushConsumerOptions=Ke8;zs1.isPullConsumer=We8;zs1.isPushConsumer=He8;zs1.isBoundPushConsumerOptions=Fe8;function Ke8($){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 We8($){return $.isPullConsumer()}function He8($){return $.isPushConsumer()}function Fe8($){if($&&typeof $==="object")return"deliver_subject"in $||"deliver_group"in $||"idle_heartbeat"in $;return!1}zs1.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"};zs1.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"};zs1.DirectMsgHeaders={Stream:"Nats-Stream",Sequence:"Nats-Sequence",TimeStamp:"Nats-Time-Stamp",Subject:"Nats-Subject",LastSequence:"Nats-Last-Sequence",NumPending:"Nats-Num-Pending"};zs1.RepublishHeaders={Stream:"Nats-Stream",Subject:"Nats-Subject",Sequence:"Nats-Sequence",LastSequence:"Nats-Last-Sequence",Size:"Nats-Msg-Size"}});var WG=v((As1)=>{Object.defineProperty(As1,"__esModule",{value:!0});As1.TD=As1.TE=As1.Empty=void 0;As1.encode=je8;As1.decode=ze8;As1.Empty=new Uint8Array(0);As1.TE=new TextEncoder;As1.TD=new TextDecoder;function Ee8(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let X=new Uint8Array(Z),Q=0;for(let Y=0;Y<$.length;Y++)X.set($[Y],Q),Q+=$[Y].length;return X}function je8(...$){let Z=[];for(let X=0;X<$.length;X++)Z.push(As1.TE.encode($[X]));if(Z.length===0)return As1.Empty;if(Z.length===1)return Z[0];return Ee8(...Z)}function ze8($){if(!$||$.length===0)return"";return As1.TD.decode($)}});var HG=v((Is1)=>{Object.defineProperty(Is1,"__esModule",{value:!0});Is1.errors=Is1.PermissionViolationError=Is1.NoRespondersError=Is1.TimeoutError=Is1.RequestError=Is1.ProtocolError=Is1.ConnectionError=Is1.DrainingConnectionError=Is1.ClosedConnectionError=Is1.AuthorizationError=Is1.UserAuthenticationExpiredError=Is1.InvalidOperationError=Is1.InvalidArgumentError=Is1.InvalidSubjectError=void 0;class wn0 extends Error{constructor($,Z){super(`illegal subject: '${$}'`,Z);this.name="InvalidSubjectError"}}Is1.InvalidSubjectError=wn0;class P70 extends Error{constructor($,Z){super($,Z);this.name="InvalidArgumentError"}static format($,Z,X){if(Array.isArray(Z)&&Z.length>1)Z=Z[0];if(Array.isArray($))$=$.map((Q)=>`'${Q}'`),$=$.join(",");else $=`'${$}'`;return new P70(`${$} ${Z}`,X)}}Is1.InvalidArgumentError=P70;class En0 extends Error{constructor($,Z){super($,Z);this.name="InvalidOperationError"}}Is1.InvalidOperationError=En0;class A70 extends Error{constructor($,Z){super($,Z);this.name="UserAuthenticationExpiredError"}static parse($){if($.toLowerCase().indexOf("user authentication expired")!==-1)return new A70($);return null}}Is1.UserAuthenticationExpiredError=A70;class T70 extends Error{constructor($,Z){super($,Z);this.name="AuthorizationError"}static parse($){let Z=["authorization violation","account authentication expired","authentication timeout"],X=$.toLowerCase();for(let Q=0;Q<Z.length;Q++)if(X.indexOf(Z[Q])!==-1)return new T70($);return null}}Is1.AuthorizationError=T70;class jn0 extends Error{constructor(){super("closed connection");this.name="ClosedConnectionError"}}Is1.ClosedConnectionError=jn0;class zn0 extends Error{constructor(){super("connection draining");this.name="DrainingConnectionError"}}Is1.DrainingConnectionError=zn0;class Pn0 extends Error{constructor($,Z){super($,Z);this.name="ConnectionError"}}Is1.ConnectionError=Pn0;class An0 extends Error{constructor($,Z){super($,Z);this.name="ProtocolError"}}Is1.ProtocolError=An0;class Tn0 extends Error{constructor($="",Z){super($,Z);this.name="RequestError"}isNoResponders(){return this.cause instanceof R70}}Is1.RequestError=Tn0;class Rn0 extends Error{constructor($){super("timeout",$);this.name="TimeoutError"}}Is1.TimeoutError=Rn0;class R70 extends Error{subject;constructor($,Z){super(`no responders: '${$}'`,Z);this.subject=$,this.name="NoResponders"}}Is1.NoRespondersError=R70;class I70 extends Error{operation;subject;queue;constructor($,Z,X,Q,Y){super($,Y);this.name="PermissionViolationError",this.operation=Z,this.subject=X,this.queue=Q}static parse($){if(($?$.toLowerCase():"").indexOf("permissions violation")===-1)return null;let X="publish",Q="",Y=void 0,G=$.match(/(Publish|Subscription) to "(\S+)"/);if(G){if(X=G[1].toLowerCase(),Q=G[2],X==="subscription"){let J=$.match(/using queue "(\S+)"/);if(J)Y=J[1]}}return new I70($,X,Q,Y)}}Is1.PermissionViolationError=I70;Is1.errors={AuthorizationError:T70,ClosedConnectionError:jn0,ConnectionError:Pn0,DrainingConnectionError:zn0,InvalidArgumentError:P70,InvalidOperationError:En0,InvalidSubjectError:wn0,NoRespondersError:R70,PermissionViolationError:I70,ProtocolError:An0,RequestError:Tn0,TimeoutError:Rn0,UserAuthenticationExpiredError:A70}});var d3=v((Ss1)=>{Object.defineProperty(Ss1,"__esModule",{value:!0});Ss1.SimpleMutex=Ss1.Perf=void 0;Ss1.extend=ye8;Ss1.render=ge8;Ss1.timeout=he8;Ss1.delay=ue8;Ss1.deadline=ce8;Ss1.deferred=qn0;Ss1.debugDeferred=le8;Ss1.shuffle=me8;Ss1.collect=de8;Ss1.jitter=ks1;Ss1.backoff=ie8;Ss1.nanos=pe8;Ss1.millis=ne8;Ss1.randomToken=re8;var be8=WG(),In0=HG();function ye8($,...Z){for(let X=0;X<Z.length;X++){let Q=Z[X];Object.keys(Q).forEach(function(Y){$[Y]=Q[Y]})}return $}function ge8($){return be8.TD.decode($).replace(/\n/g,"\u240A").replace(/\r/g,"\u240D")}function he8($,Z=!0){let X=Z?new In0.TimeoutError:null,Q,Y,G=new Promise((J,K)=>{Q={cancel:()=>{if(Y)clearTimeout(Y)}},Y=setTimeout(()=>{if(X===null)K(new In0.TimeoutError);else K(X)},$)});return Object.assign(G,Q)}function ue8($=0){let Z,X=new Promise((Q)=>{let Y=setTimeout(()=>{Q()},$);Z={cancel:()=>{if(Y)clearTimeout(Y),Q()}}});return Object.assign(X,Z)}async function ce8($,Z=1000){let X=qn0(),Q=setTimeout(()=>{X.reject(new In0.TimeoutError)},Z);try{return await Promise.race([$,X])}finally{clearTimeout(Q)}}function qn0(){let $={},Z=new Promise((X,Q)=>{$={resolve:X,reject:Q}});return Object.assign(Z,$)}function le8(){let $={},Z=new Promise((X,Q)=>{$={resolve:(Y)=>{console.trace("resolve",Y),X(Y)},reject:(Y)=>{console.trace("reject"),Q(Y)}}});return Object.assign(Z,$)}function me8($){for(let Z=$.length-1;Z>0;Z--){let X=Math.floor(Math.random()*(Z+1));[$[Z],$[X]]=[$[X],$[Z]]}return $}async function de8($){let Z=[];for await(let X of $)Z.push(X);return Z}class Ms1{timers;measures;constructor(){this.timers=new Map,this.measures=new Map}mark($){this.timers.set($,performance.now())}measure($,Z,X){let Q=this.timers.get(Z);if(Q===void 0)throw Error(`${Z} is not defined`);let Y=this.timers.get(X);if(Y===void 0)throw Error(`${X} is not defined`);this.measures.set($,Y-Q)}getEntries(){let $=[];return this.measures.forEach((Z,X)=>{$.push({name:X,duration:Z})}),$}}Ss1.Perf=Ms1;class Vs1{max;current;waiting;constructor($=1){this.max=$,this.current=0,this.waiting=[]}lock(){if(this.current++,this.current<=this.max)return Promise.resolve();let $=qn0();return this.waiting.push($),$}unlock(){this.current--,this.waiting.pop()?.resolve()}}Ss1.SimpleMutex=Vs1;function ks1($){if($===0)return 0;return Math.floor($/2+Math.random()*$)}function ie8($=[0,250,250,500,500,3000,5000]){if(!Array.isArray($))$=[0,250,250,500,500,3000,5000];let Z=$.length-1;return{backoff(X){return ks1(X>Z?$[Z]:$[X])}}}function pe8($){return $*1e6}function ne8($){return Math.floor($/1e6)}var te8="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",BU=new Uint8Array(62);for(let $=0;$<62;$++)BU[$]=te8.charCodeAt($);var oe8=218340105584896;function re8(){let $=Math.floor(Math.random()*oe8),Z=$%62,X=BU[Z];$=($-Z)/62,Z=$%62;let Q=BU[Z];$=($-Z)/62,Z=$%62;let Y=BU[Z];$=($-Z)/62,Z=$%62;let G=BU[Z];$=($-Z)/62,Z=$%62;let J=BU[Z];$=($-Z)/62,Z=$%62;let K=BU[Z];$=($-Z)/62,Z=$%62;let W=BU[Z];$=($-Z)/62;let H=BU[$];return String.fromCharCode(X,Q,Y,G,J,K,W,H)}});var gs1=v((bs1)=>{Object.defineProperty(bs1,"__esModule",{value:!0});bs1.nuid=bs1.NuidImpl=void 0;var N04="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",UO=62,M70=12,xs1=10,_s1=33,B04=333,vs1=M70+xs1,Vn0=new Uint8Array(UO);for(let $=0;$<UO;$++)Vn0[$]=N04.charCodeAt($);var q70=4294967296,fs1=BigInt(UO)**BigInt(xs1),Dp=Number(fs1/(1n<<32n)),Mn0=Number(fs1%(1n<<32n));function O04($){for(let Z=0;Z<$.length;Z++)$[Z]=Math.floor(Math.random()*256)}function L04($){if(globalThis?.crypto?.getRandomValues)globalThis.crypto.getRandomValues($);else O04($)}class kn0{buf;cbuf;seqHi;seqLo;inc;inited;constructor(){this.buf=new Uint8Array(vs1),this.cbuf=new Uint8Array(M70),this.inited=!1}init(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}initSeqAndInc(){let $=0;do this.seqHi=Math.floor(Math.random()*(Dp+1)),this.seqLo=Math.floor(Math.random()*q70);while($++<8&&this.seqHi===Dp&&this.seqLo>=Mn0);if(this.seqHi===Dp&&this.seqLo>=Mn0)this.seqLo=0;this.inc=Math.random()*(B04-_s1)+_s1|0}setPre(){L04(this.cbuf);for(let $=0;$<M70;$++)this.buf[$]=Vn0[this.cbuf[$]%UO]}fillSeq(){let $=this.seqHi,Z=this.seqLo;for(let X=vs1-1;X>=M70;X--){let Q=Math.floor($/UO),G=($-Q*UO)*q70+Z,J=Math.floor(G/UO),K=G-J*UO;this.buf[X]=Vn0[K],$=Q,Z=J}}next(){if(!this.inited)this.init();if(this.seqLo+=this.inc,this.seqLo>=q70)this.seqLo-=q70,this.seqHi+=1;if(this.seqHi>Dp||this.seqHi===Dp&&this.seqLo>=Mn0)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()}}bs1.NuidImpl=kn0;bs1.nuid=new kn0});var ls1=v((us1)=>{Object.defineProperty(us1,"__esModule",{value:!0});us1.nuid=us1.Nuid=void 0;var hs1=gs1();us1.Nuid=hs1.NuidImpl;us1.nuid=hs1.nuid});var k70=v((V70)=>{Object.defineProperty(V70,"__esModule",{value:!0});V70.nuid=V70.Nuid=void 0;var ms1=ls1();Object.defineProperty(V70,"Nuid",{enumerable:!0,get:function(){return ms1.Nuid}});Object.defineProperty(V70,"nuid",{enumerable:!0,get:function(){return ms1.nuid}})});var NO=v((ds1)=>{Object.defineProperty(ds1,"__esModule",{value:!0});ds1.DEFAULT_HOST=ds1.DEFAULT_PORT=ds1.Match=void 0;ds1.syncIterator=P04;ds1.createInbox=A04;var j04=k70(),z04=HG();ds1.Match={Exact:"exact",CanonicalMIME:"canonical",IgnoreCase:"insensitive"};function P04($){let Z=$[Symbol.asyncIterator]();return{async next(){let X=await Z.next();if(X.done)return Promise.resolve(null);return Promise.resolve(X.value)}}}function A04($=""){if($=$||"_INBOX",typeof $!=="string")throw TypeError("prefix must be a string");return $.split(".").forEach((Z)=>{if(Z==="*"||Z===">")throw z04.InvalidArgumentError.format("prefix",`cannot have wildcards ('${$}')`)}),`${$}.${j04.nuid.next()}`}ds1.DEFAULT_PORT=4222;ds1.DEFAULT_HOST="127.0.0.1"});var wp=v((ts1)=>{Object.defineProperty(ts1,"__esModule",{value:!0});ts1.DataBuffer=void 0;var ps1=WG();class ns1{buffers;byteLength;constructor(){this.buffers=[],this.byteLength=0}static concat(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let X=new Uint8Array(Z),Q=0;for(let Y=0;Y<$.length;Y++)X.set($[Y],Q),Q+=$[Y].length;return X}static fromAscii($){if(!$)$="";return ps1.TE.encode($)}static toAscii($){return ps1.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 X=0;X<this.buffers.length;X++)$.set(this.buffers[X],Z),Z+=this.buffers[X].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 X=this.byteLength;if($===void 0||$>X)$=X;let Q=Z.subarray(0,$);if(X>$)this.buffers.push(Z.subarray($));return this.byteLength=X-$,Q}}return new Uint8Array(0)}fill($,...Z){if($)this.buffers.push($),this.byteLength+=$.length;for(let X=0;X<Z.length;X++)if(Z[X]&&Z[X].length)this.buffers.push(Z[X]),this.byteLength+=Z[X].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}}ts1.DataBuffer=ns1});var rE=v((as1)=>{Object.defineProperty(as1,"__esModule",{value:!0});as1.LF=as1.CR=as1.CRLF=as1.CR_LF_LEN=as1.CR_LF=void 0;as1.setTransportFactory=S04;as1.defaultPort=C04;as1.getUrlParseFn=_04;as1.newTransport=v04;as1.getResolveFn=x04;as1.protoLen=rs1;as1.extractProtocolMessage=f04;var M04=WG(),V04=NO(),k04=wp(),FG;function S04($){FG=$}function C04(){return FG!==void 0&&FG.defaultPort!==void 0?FG.defaultPort:V04.DEFAULT_PORT}function _04(){return FG!==void 0&&FG.urlParseFn?FG.urlParseFn:void 0}function v04(){if(!FG||typeof FG.factory!=="function")throw Error("transport fn is not set");return FG.factory()}function x04(){return FG!==void 0&&FG.dnsResolveFn?FG.dnsResolveFn:void 0}as1.CR_LF=`\r
|
|
1527
|
+
`);Q=G.pop()??"";for(let J of G){let K=Bun.stripANSI(J).replace(/^\[\d+\]\s*/,"").trim();if(!K)continue;WO({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:K})}}(async()=>{try{for(;;){let{done:G,value:J}=await Z.read();if(G)break;Q+=X.decode(J,{stream:!0}),Y()}}catch{}if(Q.trim()){let G=Bun.stripANSI(Q).replace(/^\[\d+\]\s*/,"").trim();if(G)WO({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:G})}})()}async function ls8($){let{baseUrl:Z,noTui:X}=$,Q=process.env.HOST==="0.0.0.0"&&Boolean(process.env.PORT),Y=Q?process.env.PORT:$.vitePort,G=Z||`http://localhost:${Y}`,J=Q?await Op(Number(Y)+1):await Op(Number($.port)),{settings:K,services:W,managedServiceNames:H}=await D70({port:String(J),home:$.home,baseUrl:$.baseUrl,localMode:$.localMode,skipMigrations:$.skipMigrations,noTui:$.noTui,vitePort:$.vitePort});for(let D of W)iE({name:D.name,status:"ready",port:D.port});Np();let F=cs8(import.meta.dir,"..","..","..","..",".."),U=X===!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:G,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)Kn0(N.stdout),Kn0(N.stderr);Bp(G),iE({name:"Vite",status:"ready",port:Number(Y)}),iE({name:"API",status:"ready",port:Number(K.port)});let O=async(D)=>{if(N.kill(D),await N.exited,H.length>0){let{stopServices:w}=await Promise.resolve().then(() => (zZ0(),jZ0));await w(K.dataDir)}};return process.on("SIGINT",()=>O("SIGINT")),process.on("SIGTERM",()=>O("SIGTERM")),{port:Number(Y),process:N}}var Hn0=L(()=>{Xn0();pE();Jn0()});var j70;var Fn0=L(()=>{j70={name:"decocms",version:"4.322.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 ds8,Text as aa1}from"ink";import{jsx as is8,jsxs as sa1}from"react/jsx-runtime";function ea1({version:$}){return sa1(ds8,{flexDirection:"column",marginTop:1,children:[mZ0.map((Z,X)=>is8(aa1,{color:dZ0[X],children:Z},X)),sa1(aa1,{dimColor:!0,children:[" v",$]})]})}var $s1=L(()=>{ei()});import{Box as nE,Text as HO}from"ink";import{Spinner as ps8}from"@inkjs/ui";import{jsx as KG,jsxs as Ay}from"react/jsx-runtime";function Zs1({status:$}){if($==="pending")return KG(ps8,{label:""});return KG(HO,{color:"green",children:"\u2713"})}function ns8($){return`${$.name}: ${$.port||"...."}`}function Xs1({services:$,migrationsStatus:Z,home:X,serverUrl:Q}){return Ay(nE,{flexDirection:"column",paddingBottom:1,children:[KG(ea1,{version:j70.version}),KG(nE,{marginBottom:1,children:KG(HO,{dimColor:!0,children:"\u2500".repeat(80)})}),KG(nE,{children:Ay(HO,{dimColor:!0,children:["Home: ",X]})}),Ay(nE,{gap:2,children:[$.map((Y)=>Ay(nE,{gap:1,children:[KG(HO,{children:ns8(Y)}),KG(Zs1,{status:Y.status})]},Y.name)),Ay(nE,{gap:1,children:[KG(HO,{children:"Migrations"}),KG(Zs1,{status:Z})]})]}),KG(nE,{children:Q?Ay(HO,{children:["Open in browser: ",KG(HO,{color:"cyan",children:Q})]}):KG(HO,{dimColor:!0,children:"Starting..."})})]})}var Qs1=L(()=>{Fn0();$s1()});import{Box as ts8,Text as Lp}from"ink";import{jsx as Un0,jsxs as Nn0}from"react/jsx-runtime";function os8($){if($>=500)return"red";if($>=400)return"yellow";if($>=300)return"cyan";return"green"}function Ys1({logs:$}){return Un0(ts8,{flexDirection:"column",children:$.map((Z,X)=>{if(Z.rawLine)return Un0(Lp,{dimColor:!0,children:Z.rawLine},X);let Q=Z.duration<1000?`${Z.duration}ms`:`${(Z.duration/1000).toFixed(1)}s`;return Nn0(Lp,{children:[Nn0(Lp,{dimColor:!0,children:[Z.method.padEnd(6)," ",Z.path.padEnd(30)," "]}),Un0(Lp,{color:os8(Z.status),children:Z.status}),Nn0(Lp,{dimColor:!0,children:[" ",Q.padStart(8)]})]},X)})})}var Gs1=()=>{};var Bn0={};s(Bn0,{App:()=>ss8});import{Box as rs8}from"ink";import{useSyncExternalStore as as8}from"react";import{jsx as Js1,jsxs as es8}from"react/jsx-runtime";function ss8({home:$}){let Z=as8(Gn0,Yn0);return es8(rs8,{flexDirection:"column",children:[Js1(Xs1,{services:Z.services,migrationsStatus:Z.migrationsStatus,home:$,serverUrl:Z.serverUrl}),Js1(Ys1,{logs:Z.logs})]})}var On0=L(()=>{Qs1();Gs1();pE()});var m3="thread-gate",UU="decopilot-hosted-harness",NU="decopilot-hosted-harness-sandboxed",PJ="automations",FO="background-tools",tE="task-board-github-reads";var Ks1="11";function Ws1($){return{name:"decocms",systemDatabaseUrl:$.systemDatabaseUrl,systemDatabaseSchemaName:"dbos",systemDatabasePoolSize:$.poolSize,runAdminServer:!1,executorID:$.executorID,applicationVersion:Ks1,...$.listenQueues!==void 0?{listenQueues:$.listenQueues}:{}}}var Hs1=()=>{};import $e8 from"pg";async function Us1($,Z){let{databaseUrl:X,lockTimeoutMs:Q=Ze8}=$,Y=$.log??((W)=>console.log(W)),G=new $e8.Client({connectionString:X});await G.connect();let J=Date.now(),K=!1;try{while(!K){if(K=(await G.query("SELECT pg_try_advisory_lock($1) AS locked",[Fs1.toString()])).rows[0]?.locked===!0,K)break;if(Date.now()-J>=Q)throw Error(`Timed out after ${Q}ms waiting for the DBOS migration lock. Another process is still migrating the dbos schema; this pod will restart and retry.`);await H$(Xe8)}let W=Date.now()-J;if(W>1000)Y(`[dbos] waited ${W}ms for the migration lock; another process migrated first`);return await Z()}finally{if(K)try{await G.query("SELECT pg_advisory_unlock($1)",[Fs1.toString()])}catch{}await G.end().catch(()=>{})}}var Fs1=8314027461559302n,Ze8=600000,Xe8=500;var Ns1=L(()=>{n8()});function Qe8(){let $=(process.env.BUN_OPTIONS??"").split(/\s+/).filter(Boolean);return[...process.argv.slice(1),...$]}function Ln0($,Z){for(let X=0;X<$.length;X++){let Q=$[X];if(Q===void 0)continue;if(Q===Z)return $[X+1];if(Q.startsWith(`${Z}=`))return Q.slice(Z.length+1)}return}function Bs1(){let $=Qe8();if($.includes("--cpu-prof")){console.log(JSON.stringify({msg:"cpu-profiling-active",dir:Ln0($,"--cpu-prof-dir")??process.cwd(),name:Ln0($,"--cpu-prof-name"),markdown:$.includes("--cpu-prof-md"),intervalUs:Number(Ln0($,"--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 Os1(){if(process.env.HEAP_WATCH!=="1")return()=>{};let $=Number(process.env.HEAP_WATCH_INTERVAL_MS??60000),Z=async()=>{let X=cE();if(!X)return;let Q={};try{let{heapStats:Y}=await import("bun:jsc"),G=Y(),J=Object.entries(G.objectTypeCounts).sort((K,W)=>W[1]-K[1]).slice(0,20);Q={objectCount:G.objectCount,heapSize:G.heapSize,top:Object.fromEntries(J)}}catch{}console.log(JSON.stringify({msg:"heap-watch",ts:new Date().toISOString(),uptimeS:Math.round(process.uptime()),rss:X.rss,heapUsed:X.heapUsed,heapTotal:X.heapTotal,external:X.external,arrayBuffers:X.arrayBuffers,...Q}))};return Z().catch(()=>{}),z70=setInterval(()=>void Z().catch(()=>{}),$),z70.unref?.(),process.on("SIGUSR2",()=>{try{let X=Bun.generateHeapSnapshot("v8"),Q=typeof X==="string"?X:JSON.stringify(X),Y=`/tmp/heap-${process.pid}-${Date.now()}.heapsnapshot`;Bun.write(Y,Q),console.log(JSON.stringify({msg:"heap-snapshot-written",path:Y}))}catch(X){console.error("[heap-watch] snapshot failed:",X)}}),()=>{if(z70)clearInterval(z70)}}var z70;var Ls1=()=>{};import*as Ye8 from"bun:jsc";function Ds1(){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{Ge8()}catch(G){return console.error("[stall-watchdog] failed to start sampling profiler:",G),()=>{}}let X,Q=performance.now()+Z,Y=()=>{let G=performance.now(),J=G-Q;Q=G+Z;let K=[];try{K=Je8()?.traces??[]}catch{}if(J>$&&K.length>0){let W=new Map;for(let F of K){let U=F.frames.find((O)=>O.sourceURL&&!/Unknown Executable/.test(O.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(J),samplesInWindow:K.length,top:H}))}X=setTimeout(Y,Z),X.unref?.()};return X=setTimeout(Y,Z),X.unref?.(),()=>{if(X)clearTimeout(X)}}var Ge8,Je8;var ws1=L(()=>{({startSamplingProfiler:Ge8,samplingProfilerStackTraces:Je8}=Ye8)});function Es1(){Bs1();let $=[Os1(),Mn1(),Ds1()];return()=>{for(let Z of $)Z()}}var js1=L(()=>{xl0();Ls1();ws1()});var oE=v((zs1)=>{Object.defineProperty(zs1,"__esModule",{value:!0});zs1.RepublishHeaders=zs1.DirectMsgHeaders=zs1.JsHeaders=zs1.AdvisoryKind=void 0;zs1.isOrderedPushConsumerOptions=Ke8;zs1.isPullConsumer=We8;zs1.isPushConsumer=He8;zs1.isBoundPushConsumerOptions=Fe8;function Ke8($){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 We8($){return $.isPullConsumer()}function He8($){return $.isPushConsumer()}function Fe8($){if($&&typeof $==="object")return"deliver_subject"in $||"deliver_group"in $||"idle_heartbeat"in $;return!1}zs1.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"};zs1.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"};zs1.DirectMsgHeaders={Stream:"Nats-Stream",Sequence:"Nats-Sequence",TimeStamp:"Nats-Time-Stamp",Subject:"Nats-Subject",LastSequence:"Nats-Last-Sequence",NumPending:"Nats-Num-Pending"};zs1.RepublishHeaders={Stream:"Nats-Stream",Subject:"Nats-Subject",Sequence:"Nats-Sequence",LastSequence:"Nats-Last-Sequence",Size:"Nats-Msg-Size"}});var WG=v((As1)=>{Object.defineProperty(As1,"__esModule",{value:!0});As1.TD=As1.TE=As1.Empty=void 0;As1.encode=je8;As1.decode=ze8;As1.Empty=new Uint8Array(0);As1.TE=new TextEncoder;As1.TD=new TextDecoder;function Ee8(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let X=new Uint8Array(Z),Q=0;for(let Y=0;Y<$.length;Y++)X.set($[Y],Q),Q+=$[Y].length;return X}function je8(...$){let Z=[];for(let X=0;X<$.length;X++)Z.push(As1.TE.encode($[X]));if(Z.length===0)return As1.Empty;if(Z.length===1)return Z[0];return Ee8(...Z)}function ze8($){if(!$||$.length===0)return"";return As1.TD.decode($)}});var HG=v((Is1)=>{Object.defineProperty(Is1,"__esModule",{value:!0});Is1.errors=Is1.PermissionViolationError=Is1.NoRespondersError=Is1.TimeoutError=Is1.RequestError=Is1.ProtocolError=Is1.ConnectionError=Is1.DrainingConnectionError=Is1.ClosedConnectionError=Is1.AuthorizationError=Is1.UserAuthenticationExpiredError=Is1.InvalidOperationError=Is1.InvalidArgumentError=Is1.InvalidSubjectError=void 0;class wn0 extends Error{constructor($,Z){super(`illegal subject: '${$}'`,Z);this.name="InvalidSubjectError"}}Is1.InvalidSubjectError=wn0;class P70 extends Error{constructor($,Z){super($,Z);this.name="InvalidArgumentError"}static format($,Z,X){if(Array.isArray(Z)&&Z.length>1)Z=Z[0];if(Array.isArray($))$=$.map((Q)=>`'${Q}'`),$=$.join(",");else $=`'${$}'`;return new P70(`${$} ${Z}`,X)}}Is1.InvalidArgumentError=P70;class En0 extends Error{constructor($,Z){super($,Z);this.name="InvalidOperationError"}}Is1.InvalidOperationError=En0;class A70 extends Error{constructor($,Z){super($,Z);this.name="UserAuthenticationExpiredError"}static parse($){if($.toLowerCase().indexOf("user authentication expired")!==-1)return new A70($);return null}}Is1.UserAuthenticationExpiredError=A70;class T70 extends Error{constructor($,Z){super($,Z);this.name="AuthorizationError"}static parse($){let Z=["authorization violation","account authentication expired","authentication timeout"],X=$.toLowerCase();for(let Q=0;Q<Z.length;Q++)if(X.indexOf(Z[Q])!==-1)return new T70($);return null}}Is1.AuthorizationError=T70;class jn0 extends Error{constructor(){super("closed connection");this.name="ClosedConnectionError"}}Is1.ClosedConnectionError=jn0;class zn0 extends Error{constructor(){super("connection draining");this.name="DrainingConnectionError"}}Is1.DrainingConnectionError=zn0;class Pn0 extends Error{constructor($,Z){super($,Z);this.name="ConnectionError"}}Is1.ConnectionError=Pn0;class An0 extends Error{constructor($,Z){super($,Z);this.name="ProtocolError"}}Is1.ProtocolError=An0;class Tn0 extends Error{constructor($="",Z){super($,Z);this.name="RequestError"}isNoResponders(){return this.cause instanceof R70}}Is1.RequestError=Tn0;class Rn0 extends Error{constructor($){super("timeout",$);this.name="TimeoutError"}}Is1.TimeoutError=Rn0;class R70 extends Error{subject;constructor($,Z){super(`no responders: '${$}'`,Z);this.subject=$,this.name="NoResponders"}}Is1.NoRespondersError=R70;class I70 extends Error{operation;subject;queue;constructor($,Z,X,Q,Y){super($,Y);this.name="PermissionViolationError",this.operation=Z,this.subject=X,this.queue=Q}static parse($){if(($?$.toLowerCase():"").indexOf("permissions violation")===-1)return null;let X="publish",Q="",Y=void 0,G=$.match(/(Publish|Subscription) to "(\S+)"/);if(G){if(X=G[1].toLowerCase(),Q=G[2],X==="subscription"){let J=$.match(/using queue "(\S+)"/);if(J)Y=J[1]}}return new I70($,X,Q,Y)}}Is1.PermissionViolationError=I70;Is1.errors={AuthorizationError:T70,ClosedConnectionError:jn0,ConnectionError:Pn0,DrainingConnectionError:zn0,InvalidArgumentError:P70,InvalidOperationError:En0,InvalidSubjectError:wn0,NoRespondersError:R70,PermissionViolationError:I70,ProtocolError:An0,RequestError:Tn0,TimeoutError:Rn0,UserAuthenticationExpiredError:A70}});var d3=v((Ss1)=>{Object.defineProperty(Ss1,"__esModule",{value:!0});Ss1.SimpleMutex=Ss1.Perf=void 0;Ss1.extend=ye8;Ss1.render=ge8;Ss1.timeout=he8;Ss1.delay=ue8;Ss1.deadline=ce8;Ss1.deferred=qn0;Ss1.debugDeferred=le8;Ss1.shuffle=me8;Ss1.collect=de8;Ss1.jitter=ks1;Ss1.backoff=ie8;Ss1.nanos=pe8;Ss1.millis=ne8;Ss1.randomToken=re8;var be8=WG(),In0=HG();function ye8($,...Z){for(let X=0;X<Z.length;X++){let Q=Z[X];Object.keys(Q).forEach(function(Y){$[Y]=Q[Y]})}return $}function ge8($){return be8.TD.decode($).replace(/\n/g,"\u240A").replace(/\r/g,"\u240D")}function he8($,Z=!0){let X=Z?new In0.TimeoutError:null,Q,Y,G=new Promise((J,K)=>{Q={cancel:()=>{if(Y)clearTimeout(Y)}},Y=setTimeout(()=>{if(X===null)K(new In0.TimeoutError);else K(X)},$)});return Object.assign(G,Q)}function ue8($=0){let Z,X=new Promise((Q)=>{let Y=setTimeout(()=>{Q()},$);Z={cancel:()=>{if(Y)clearTimeout(Y),Q()}}});return Object.assign(X,Z)}async function ce8($,Z=1000){let X=qn0(),Q=setTimeout(()=>{X.reject(new In0.TimeoutError)},Z);try{return await Promise.race([$,X])}finally{clearTimeout(Q)}}function qn0(){let $={},Z=new Promise((X,Q)=>{$={resolve:X,reject:Q}});return Object.assign(Z,$)}function le8(){let $={},Z=new Promise((X,Q)=>{$={resolve:(Y)=>{console.trace("resolve",Y),X(Y)},reject:(Y)=>{console.trace("reject"),Q(Y)}}});return Object.assign(Z,$)}function me8($){for(let Z=$.length-1;Z>0;Z--){let X=Math.floor(Math.random()*(Z+1));[$[Z],$[X]]=[$[X],$[Z]]}return $}async function de8($){let Z=[];for await(let X of $)Z.push(X);return Z}class Ms1{timers;measures;constructor(){this.timers=new Map,this.measures=new Map}mark($){this.timers.set($,performance.now())}measure($,Z,X){let Q=this.timers.get(Z);if(Q===void 0)throw Error(`${Z} is not defined`);let Y=this.timers.get(X);if(Y===void 0)throw Error(`${X} is not defined`);this.measures.set($,Y-Q)}getEntries(){let $=[];return this.measures.forEach((Z,X)=>{$.push({name:X,duration:Z})}),$}}Ss1.Perf=Ms1;class Vs1{max;current;waiting;constructor($=1){this.max=$,this.current=0,this.waiting=[]}lock(){if(this.current++,this.current<=this.max)return Promise.resolve();let $=qn0();return this.waiting.push($),$}unlock(){this.current--,this.waiting.pop()?.resolve()}}Ss1.SimpleMutex=Vs1;function ks1($){if($===0)return 0;return Math.floor($/2+Math.random()*$)}function ie8($=[0,250,250,500,500,3000,5000]){if(!Array.isArray($))$=[0,250,250,500,500,3000,5000];let Z=$.length-1;return{backoff(X){return ks1(X>Z?$[Z]:$[X])}}}function pe8($){return $*1e6}function ne8($){return Math.floor($/1e6)}var te8="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",BU=new Uint8Array(62);for(let $=0;$<62;$++)BU[$]=te8.charCodeAt($);var oe8=218340105584896;function re8(){let $=Math.floor(Math.random()*oe8),Z=$%62,X=BU[Z];$=($-Z)/62,Z=$%62;let Q=BU[Z];$=($-Z)/62,Z=$%62;let Y=BU[Z];$=($-Z)/62,Z=$%62;let G=BU[Z];$=($-Z)/62,Z=$%62;let J=BU[Z];$=($-Z)/62,Z=$%62;let K=BU[Z];$=($-Z)/62,Z=$%62;let W=BU[Z];$=($-Z)/62;let H=BU[$];return String.fromCharCode(X,Q,Y,G,J,K,W,H)}});var gs1=v((bs1)=>{Object.defineProperty(bs1,"__esModule",{value:!0});bs1.nuid=bs1.NuidImpl=void 0;var N04="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",UO=62,M70=12,xs1=10,_s1=33,B04=333,vs1=M70+xs1,Vn0=new Uint8Array(UO);for(let $=0;$<UO;$++)Vn0[$]=N04.charCodeAt($);var q70=4294967296,fs1=BigInt(UO)**BigInt(xs1),Dp=Number(fs1/(1n<<32n)),Mn0=Number(fs1%(1n<<32n));function O04($){for(let Z=0;Z<$.length;Z++)$[Z]=Math.floor(Math.random()*256)}function L04($){if(globalThis?.crypto?.getRandomValues)globalThis.crypto.getRandomValues($);else O04($)}class kn0{buf;cbuf;seqHi;seqLo;inc;inited;constructor(){this.buf=new Uint8Array(vs1),this.cbuf=new Uint8Array(M70),this.inited=!1}init(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}initSeqAndInc(){let $=0;do this.seqHi=Math.floor(Math.random()*(Dp+1)),this.seqLo=Math.floor(Math.random()*q70);while($++<8&&this.seqHi===Dp&&this.seqLo>=Mn0);if(this.seqHi===Dp&&this.seqLo>=Mn0)this.seqLo=0;this.inc=Math.random()*(B04-_s1)+_s1|0}setPre(){L04(this.cbuf);for(let $=0;$<M70;$++)this.buf[$]=Vn0[this.cbuf[$]%UO]}fillSeq(){let $=this.seqHi,Z=this.seqLo;for(let X=vs1-1;X>=M70;X--){let Q=Math.floor($/UO),G=($-Q*UO)*q70+Z,J=Math.floor(G/UO),K=G-J*UO;this.buf[X]=Vn0[K],$=Q,Z=J}}next(){if(!this.inited)this.init();if(this.seqLo+=this.inc,this.seqLo>=q70)this.seqLo-=q70,this.seqHi+=1;if(this.seqHi>Dp||this.seqHi===Dp&&this.seqLo>=Mn0)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()}}bs1.NuidImpl=kn0;bs1.nuid=new kn0});var ls1=v((us1)=>{Object.defineProperty(us1,"__esModule",{value:!0});us1.nuid=us1.Nuid=void 0;var hs1=gs1();us1.Nuid=hs1.NuidImpl;us1.nuid=hs1.nuid});var k70=v((V70)=>{Object.defineProperty(V70,"__esModule",{value:!0});V70.nuid=V70.Nuid=void 0;var ms1=ls1();Object.defineProperty(V70,"Nuid",{enumerable:!0,get:function(){return ms1.Nuid}});Object.defineProperty(V70,"nuid",{enumerable:!0,get:function(){return ms1.nuid}})});var NO=v((ds1)=>{Object.defineProperty(ds1,"__esModule",{value:!0});ds1.DEFAULT_HOST=ds1.DEFAULT_PORT=ds1.Match=void 0;ds1.syncIterator=P04;ds1.createInbox=A04;var j04=k70(),z04=HG();ds1.Match={Exact:"exact",CanonicalMIME:"canonical",IgnoreCase:"insensitive"};function P04($){let Z=$[Symbol.asyncIterator]();return{async next(){let X=await Z.next();if(X.done)return Promise.resolve(null);return Promise.resolve(X.value)}}}function A04($=""){if($=$||"_INBOX",typeof $!=="string")throw TypeError("prefix must be a string");return $.split(".").forEach((Z)=>{if(Z==="*"||Z===">")throw z04.InvalidArgumentError.format("prefix",`cannot have wildcards ('${$}')`)}),`${$}.${j04.nuid.next()}`}ds1.DEFAULT_PORT=4222;ds1.DEFAULT_HOST="127.0.0.1"});var wp=v((ts1)=>{Object.defineProperty(ts1,"__esModule",{value:!0});ts1.DataBuffer=void 0;var ps1=WG();class ns1{buffers;byteLength;constructor(){this.buffers=[],this.byteLength=0}static concat(...$){let Z=0;for(let Y=0;Y<$.length;Y++)Z+=$[Y].length;let X=new Uint8Array(Z),Q=0;for(let Y=0;Y<$.length;Y++)X.set($[Y],Q),Q+=$[Y].length;return X}static fromAscii($){if(!$)$="";return ps1.TE.encode($)}static toAscii($){return ps1.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 X=0;X<this.buffers.length;X++)$.set(this.buffers[X],Z),Z+=this.buffers[X].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 X=this.byteLength;if($===void 0||$>X)$=X;let Q=Z.subarray(0,$);if(X>$)this.buffers.push(Z.subarray($));return this.byteLength=X-$,Q}}return new Uint8Array(0)}fill($,...Z){if($)this.buffers.push($),this.byteLength+=$.length;for(let X=0;X<Z.length;X++)if(Z[X]&&Z[X].length)this.buffers.push(Z[X]),this.byteLength+=Z[X].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}}ts1.DataBuffer=ns1});var rE=v((as1)=>{Object.defineProperty(as1,"__esModule",{value:!0});as1.LF=as1.CR=as1.CRLF=as1.CR_LF_LEN=as1.CR_LF=void 0;as1.setTransportFactory=S04;as1.defaultPort=C04;as1.getUrlParseFn=_04;as1.newTransport=v04;as1.getResolveFn=x04;as1.protoLen=rs1;as1.extractProtocolMessage=f04;var M04=WG(),V04=NO(),k04=wp(),FG;function S04($){FG=$}function C04(){return FG!==void 0&&FG.defaultPort!==void 0?FG.defaultPort:V04.DEFAULT_PORT}function _04(){return FG!==void 0&&FG.urlParseFn?FG.urlParseFn:void 0}function v04(){if(!FG||typeof FG.factory!=="function")throw Error("transport fn is not set");return FG.factory()}function x04(){return FG!==void 0&&FG.dnsResolveFn?FG.dnsResolveFn:void 0}as1.CR_LF=`\r
|
|
1528
1528
|
`;as1.CR_LF_LEN=as1.CR_LF.length;as1.CRLF=k04.DataBuffer.fromAscii(as1.CR_LF);as1.CR=new Uint8Array(as1.CRLF)[0];as1.LF=new Uint8Array(as1.CRLF)[1];function rs1($){for(let Z=0;Z<$.length;Z++){let X=Z+1;if($.byteLength>X&&$[Z]===as1.CR&&$[X]===as1.LF)return X+1}return 0}function f04($){let Z=rs1($);if(Z>0){let Q=new Uint8Array($).slice(0,Z);return M04.TD.decode(Q)}return""}});var xn0=v((Ge1)=>{Object.defineProperty(Ge1,"__esModule",{value:!0});Ge1.ipV4=Xe1;Ge1.isIP=p04;Ge1.parseIP=Qe1;var Ep=4,aE=16,S70=48,Ze1=57,es1=65,d04=70,$e1=97,i04=102,vn0=16777215;function Xe1($,Z,X,Q){let Y=new Uint8Array(aE);return[0,0,0,0,0,0,0,0,0,0,255,255].forEach((J,K)=>{Y[K]=J}),Y[12]=$,Y[13]=Z,Y[14]=X,Y[15]=Q,Y}function p04($){return Qe1($)!==void 0}function Qe1($){for(let Z=0;Z<$.length;Z++)switch($[Z]){case".":return Ye1($);case":":return n04($)}return}function Ye1($){let Z=new Uint8Array(Ep);for(let X=0;X<Ep;X++){if($.length===0)return;if(X>0){if($[0]!==".")return;$=$.substring(1)}let{n:Q,c:Y,ok:G}=t04($);if(!G||Q>255)return;$=$.substring(Y),Z[X]=Q}return Xe1(Z[0],Z[1],Z[2],Z[3])}function n04($){let Z=new Uint8Array(aE),X=-1;if($.length>=2&&$[0]===":"&&$[1]===":"){if(X=0,$=$.substring(2),$.length===0)return Z}let Q=0;while(Q<aE){let{n:Y,c:G,ok:J}=o04($);if(!J||Y>65535)return;if(G<$.length&&$[G]==="."){if(X<0&&Q!=aE-Ep)return;if(Q+Ep>aE)return;let K=Ye1($);if(K===void 0)return;Z[Q]=K[12],Z[Q+1]=K[13],Z[Q+2]=K[14],Z[Q+3]=K[15],$="",Q+=Ep;break}if(Z[Q]=Y>>8,Z[Q+1]=Y,Q+=2,$=$.substring(G),$.length===0)break;if($[0]!==":"||$.length==1)return;if($=$.substring(1),$[0]===":"){if(X>=0)return;if(X=Q,$=$.substring(1),$.length===0)break}}if($.length!==0)return;if(Q<aE){if(X<0)return;let Y=aE-Q;for(let G=Q-1;G>=X;G--)Z[G+Y]=Z[G];for(let G=X+Y-1;G>=X;G--)Z[G]=0}else if(X>=0)return;return Z}function t04($){let Z=0,X=0;for(Z=0;Z<$.length&&S70<=$.charCodeAt(Z)&&$.charCodeAt(Z)<=Ze1;Z++)if(X=X*10+($.charCodeAt(Z)-S70),X>=vn0)return{n:vn0,c:Z,ok:!1};if(Z===0)return{n:0,c:0,ok:!1};return{n:X,c:Z,ok:!0}}function o04($){let Z=0,X=0;for(X=0;X<$.length;X++){if(S70<=$.charCodeAt(X)&&$.charCodeAt(X)<=Ze1)Z*=16,Z+=$.charCodeAt(X)-S70;else if($e1<=$.charCodeAt(X)&&$.charCodeAt(X)<=i04)Z*=16,Z+=$.charCodeAt(X)-$e1+10;else if(es1<=$.charCodeAt(X)&&$.charCodeAt(X)<=d04)Z*=16,Z+=$.charCodeAt(X)-es1+10;else break;if(Z>=vn0)return{n:0,c:X,ok:!1}}if(X===0)return{n:0,c:X,ok:!1};return{n:Z,c:X,ok:!0}}});var un0=v((Ke1)=>{Object.defineProperty(Ke1,"__esModule",{value:!0});Ke1.Servers=Ke1.ServerImpl=void 0;Ke1.isIPV4OrHostname=Je1;Ke1.hostPort=hn0;var fn0=rE(),bn0=d3(),yn0=xn0(),e04=NO(),$14=HG();function Je1($){if($.indexOf("[")!==-1||$.indexOf("::")!==-1)return!1;if($.indexOf(".")!==-1)return!0;if($.split(":").length<=2)return!0;return!1}function gn0($){return!Je1($)}function Z14($){let X=$.toUpperCase().indexOf("::FFFF:");if(X!==-1&&$.indexOf(".")!==-1){let Q=$.substring(X+7);return Q=Q.replace("[",""),Q.replace("]","")}return $}function hn0($){if($=$.trim(),$.match(/^(.*:\/\/)(.*)/m))$=$.replace(/^(.*:\/\/)(.*)/gm,"$2");if($=Z14($),gn0($)&&$.indexOf("[")===-1)$=`[${$}]`;let Z=gn0($)?$.match(/(]:)(\d+)/):$.match(/(:)(\d+)/),X=Z&&Z.length===3&&Z[1]&&Z[2]?parseInt(Z[2]):e04.DEFAULT_PORT,Y=new URL(`${X===80?"https":"http"}://${$}`);Y.port=`${X}`;let G=Y.hostname;if(G.charAt(0)==="[")G=G.substring(1,G.length-1);return{listen:Y.host,hostname:G,port:X}}class Ty{src;listen;hostname;port;didConnect;reconnects;lastConnect;gossiped;tlsName;resolves;constructor($,Z=!1){this.src=$,this.tlsName="";let X=hn0($);this.listen=X.listen,this.hostname=X.hostname,this.port=X.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,yn0.isIP)(this.hostname))return[this];else{let X=await $.fn(this.hostname);if($.debug)console.log(`resolve ${this.hostname} = ${X.join(",")}`);for(let Q of X){let Y=this.port===80?"https":"http",G=new URL(`${Y}://${gn0(Q)?"["+Q+"]":Q}`);G.port=`${this.port}`;let J=new Ty(G.host,!1);J.tlsName=this.hostname,Z.push(J)}}if($.randomize)(0,bn0.shuffle)(Z);return this.resolves=Z,Z}}Ke1.ServerImpl=Ty;class C70{firstSelect;servers;currentServer;tlsName;randomize;constructor($={}){this.firstSelect=!0,this.servers=[],this.tlsName="",this.randomize=$.randomize||!1}setServers($){if(!Array.isArray($)||$.length===0)throw $14.InvalidArgumentError.format("servers","cannot be empty");let Z=(0,fn0.getUrlParseFn)(),X=new Map;for(let Y of this.servers)X.set(Y.listen,Y);let Q=[];for(let Y of $){Y=Z?Z(Y):Y;let{listen:G}=hn0(Y),J=X.get(G);if(J)J.gossiped=!1,Q.push(J);else Q.push(new Ty(Y))}if(this.randomize)(0,bn0.shuffle)(Q);if(this.servers=Q,this.currentServer===void 0||!Q.includes(this.currentServer))this.currentServer=Q[0],this.firstSelect=!0}clear(){this.servers.length=0}updateTLSName(){let $=this.getCurrentServer();if(!(0,yn0.isIP)($.hostname))this.tlsName=$.hostname,this.servers.forEach((Z)=>{if(Z.gossiped)Z.tlsName=this.tlsName})}getCurrentServer(){return this.currentServer}addServer($,Z=!1){let X=(0,fn0.getUrlParseFn)();$=X?X($):$;let Q=new Ty($,Z);if((0,yn0.isIP)(Q.hostname))Q.tlsName=this.tlsName;this.servers.push(Q)}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 C70.freezeAll(this.servers)}snapshotForHandler(){let $=this.currentServer;if(!$)return this.snapshot();let Z=this.servers.indexOf($);if(Z<=0)return this.snapshot();return C70.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 X=[],Q=[],Y=(0,fn0.getUrlParseFn)(),G=new Map;if($.connect_urls&&$.connect_urls.length>0)$.connect_urls.forEach((K)=>{K=Y?Y(K,Z):K;let W=new Ty(K,!0);G.set(K,W)});let J=[];if(this.servers.forEach((K,W)=>{let H=K.listen;if(K.gossiped&&this.currentServer.listen!==H&&G.get(H)===void 0)J.push(W);G.delete(H)}),J.reverse(),J.forEach((K)=>{let W=this.servers.splice(K,1);Q=Q.concat(W[0].listen)}),G.forEach((K,W)=>{this.servers.push(K),X.push(W)}),this.randomize&&X.length>0){let K=this.currentServer,W=this.servers.filter((H)=>H!==K);(0,bn0.shuffle)(W),this.servers=K?[K,...W]:W}return{added:X,deleted:Q}}}Ke1.Servers=C70});var _70=v((Ue1)=>{Object.defineProperty(Ue1,"__esModule",{value:!0});Ue1.QueuedIteratorImpl=void 0;var cn0=d3(),He1=HG();class Fe1{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,cn0.deferred)(),this.yields=[],this.iterClosed=(0,cn0.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(X){}}return}if(typeof $==="function")this.pendingFiltered++;this.yields.push($),this.signal.resolve()}async*iterate(){if(this.noIterator)throw new He1.InvalidOperationError("iterator cannot be used when a callback is registered");if(this.yielding)throw new He1.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 Q=$[Z];try{Q()}catch(Y){throw Y}if(this.err)throw this.err;continue}this.processed++,this.inflight--;let X=this.profile?Date.now():0;yield $[Z],this.time=this.profile?Date.now()-X:0}if(this.done)break;else if(this.yields.length===0)$.length=0,this.yields=$,this.signal=(0,cn0.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}}Ue1.QueuedIteratorImpl=Fe1});var ln0=v((Le1)=>{Object.defineProperty(Le1,"__esModule",{value:!0});Le1.MuxSubscription=void 0;var G14=NO(),Be1=HG();class Oe1{baseInbox;reqs;constructor(){this.reqs=new Map}size(){return this.reqs.size}init($){return this.baseInbox=`${(0,G14.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((X)=>{X.resolver(Z,{})}),!0;if(Z.operation==="publish"){let X=this.all().find((Q)=>{return Q.requestSubject===Z.subject});if(X)return X.resolver(Z,{}),!0}return!1}dispatcher(){return($,Z)=>{let X=this.getToken(Z);if(X){let Q=this.get(X);if(Q){if($===null)$=Z?.data?.length===0&&Z.headers?.code===503?new Be1.NoRespondersError(Q.requestSubject):null;Q.resolver($,Z)}}}}close(){let $=new Be1.RequestError("connection closed");this.reqs.forEach((Z)=>{Z.resolver($,{})})}}Le1.MuxSubscription=Oe1});var mn0=v((Ee1)=>{Object.defineProperty(Ee1,"__esModule",{value:!0});Ee1.Heartbeat=void 0;var J14=d3();class we1{ph;interval;maxOut;timer;pendings;constructor($,Z,X){this.ph=$,this.interval=Z,this.maxOut=X,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,J14.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})}}Ee1.Heartbeat=we1});var pn0=v((Te1)=>{Object.defineProperty(Te1,"__esModule",{value:!0});Te1.DenoBuffer=Te1.MAX_SIZE=Te1.AssertionError=void 0;Te1.assert=Pe1;Te1.concat=Ae1;Te1.append=W14;Te1.readAll=H14;Te1.writeAll=F14;var K14=WG();class dn0 extends Error{constructor($){super($);this.name="AssertionError"}}Te1.AssertionError=dn0;function Pe1($,Z="Assertion failed."){if(!$)throw new dn0(Z)}var ze1=32768;Te1.MAX_SIZE=4294967294;function v70($,Z,X=0){let Q=Z.byteLength-X;if($.byteLength>Q)$=$.subarray(0,Q);return Z.set($,X),$.byteLength}function Ae1($,Z){if($===void 0&&Z===void 0)return new Uint8Array(0);if($===void 0)return Z;if(Z===void 0)return $;let X=new Uint8Array($.length+Z.length);return X.set($,0),X.set(Z,$.length),X}function W14($,Z){return Ae1($,Uint8Array.of(Z))}class in0{_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($){Pe1($<=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=v70(this._buf.subarray(this._off),$);return this._off+=Z,Z}writeByte($){return this.write(Uint8Array.of($))}writeString($){return this.write(K14.TE.encode($))}write($){let Z=this._grow($.byteLength);return v70($,this._buf,Z)}_grow($){let Z=this.length;if(Z===0&&this._off!==0)this.reset();let X=this._tryGrowByReslice($);if(X>=0)return X;let Q=this.capacity;if($<=Math.floor(Q/2)-Z)v70(this._buf.subarray(this._off),this._buf);else if(Q+$>Te1.MAX_SIZE)throw Error("The buffer cannot be grown beyond the maximum size.");else{let Y=new Uint8Array(Math.min(2*Q+$,Te1.MAX_SIZE));v70(this._buf.subarray(this._off),Y),this._buf=Y}return this._off=0,this._reslice(Math.min(Z+$,Te1.MAX_SIZE)),Z}grow($){if($<0)throw Error("Buffer._grow: negative count");let Z=this._grow($);this._reslice(Z)}readFrom($){let Z=0,X=new Uint8Array(ze1);while(!0){let Q=this.capacity-this.length<ze1,Y=Q?X:new Uint8Array(this._buf.buffer,this.length),G=$.read(Y);if(G===null)return Z;if(Q)this.write(Y.subarray(0,G));else this._reslice(this.length+G);Z+=G}}}Te1.DenoBuffer=in0;function H14($){let Z=new in0;return Z.readFrom($),Z.bytes()}function F14($,Z){let X=0;while(X<Z.length)X+=$.write(Z.subarray(X))}});var on0=v((Ve1)=>{Object.defineProperty(Ve1,"__esModule",{value:!0});Ve1.cc=Ve1.State=Ve1.Parser=Ve1.Kind=void 0;Ve1.describe=w14;var nn0=pn0(),tn0=WG();Ve1.Kind={OK:0,ERR:1,MSG:2,INFO:3,PING:4,PONG:5};function w14($){let Z,X="";switch($.kind){case Ve1.Kind.MSG:Z="MSG";break;case Ve1.Kind.OK:Z="OK";break;case Ve1.Kind.ERR:Z="ERR",X=tn0.TD.decode($.data);break;case Ve1.Kind.PING:Z="PING";break;case Ve1.Kind.PONG:Z="PONG";break;case Ve1.Kind.INFO:Z="INFO",X=tn0.TD.decode($.data)}return`${Z}: ${X}`}function Ie1(){let $={};return $.sid=-1,$.hdr=-1,$.size=-1,$}var qe1=48,E14=57,Ry=67108864;class Me1{dispatcher;state;as;drop;hdr;ma;argBuf;msgBuf;constructor($){this.dispatcher=$,this.state=Ve1.State.OP_START,this.as=0,this.drop=0,this.hdr=0}parse($){let Z;for(Z=0;Z<$.length;Z++){let X=$[Z];switch(this.state){case Ve1.State.OP_START:switch(X){case Ve1.cc.M:case Ve1.cc.m:this.state=Ve1.State.OP_M,this.hdr=-1,this.ma=Ie1();break;case Ve1.cc.H:case Ve1.cc.h:this.state=Ve1.State.OP_H,this.hdr=0,this.ma=Ie1();break;case Ve1.cc.P:case Ve1.cc.p:this.state=Ve1.State.OP_P;break;case Ve1.cc.PLUS:this.state=Ve1.State.OP_PLUS;break;case Ve1.cc.MINUS:this.state=Ve1.State.OP_MINUS;break;case Ve1.cc.I:case Ve1.cc.i:this.state=Ve1.State.OP_I;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_H:switch(X){case Ve1.cc.M:case Ve1.cc.m:this.state=Ve1.State.OP_M;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_M:switch(X){case Ve1.cc.S:case Ve1.cc.s:this.state=Ve1.State.OP_MS;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_MS:switch(X){case Ve1.cc.G:case Ve1.cc.g:this.state=Ve1.State.OP_MSG;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_MSG:switch(X){case Ve1.cc.SPACE:case Ve1.cc.TAB:this.state=Ve1.State.OP_MSG_SPC;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_MSG_SPC:switch(X){case Ve1.cc.SPACE:case Ve1.cc.TAB:continue;default:this.state=Ve1.State.MSG_ARG,this.as=Z}break;case Ve1.State.MSG_ARG:switch(X){case Ve1.cc.CR:this.drop=1;break;case Ve1.cc.NL:{let Q=this.argBuf?this.argBuf.bytes():$.subarray(this.as,Z-this.drop);this.processMsgArgs(Q),this.drop=0,this.as=Z+1,this.state=Ve1.State.MSG_PAYLOAD,Z=this.as+this.ma.size-1;break}default:if(this.argBuf)this.argBuf.writeByte(X)}break;case Ve1.State.MSG_PAYLOAD:if(this.msgBuf)if(this.msgBuf.length>=this.ma.size){let Q=this.msgBuf.bytes({copy:!1});this.dispatcher.push({kind:Ve1.Kind.MSG,msg:this.ma,data:Q}),this.argBuf=void 0,this.msgBuf=void 0,this.state=Ve1.State.MSG_END}else{let Q=this.ma.size-this.msgBuf.length,Y=$.length-Z;if(Y<Q)Q=Y;if(Q>0)this.msgBuf.write($.subarray(Z,Z+Q)),Z=Z+Q-1;else this.msgBuf.writeByte(X)}else if(Z-this.as>=this.ma.size)this.dispatcher.push({kind:Ve1.Kind.MSG,msg:this.ma,data:$.subarray(this.as,Z)}),this.argBuf=void 0,this.msgBuf=void 0,this.state=Ve1.State.MSG_END;break;case Ve1.State.MSG_END:switch(X){case Ve1.cc.NL:this.drop=0,this.as=Z+1,this.state=Ve1.State.OP_START;break;default:continue}break;case Ve1.State.OP_PLUS:switch(X){case Ve1.cc.O:case Ve1.cc.o:this.state=Ve1.State.OP_PLUS_O;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_PLUS_O:switch(X){case Ve1.cc.K:case Ve1.cc.k:this.state=Ve1.State.OP_PLUS_OK;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_PLUS_OK:switch(X){case Ve1.cc.NL:this.dispatcher.push({kind:Ve1.Kind.OK}),this.drop=0,this.state=Ve1.State.OP_START;break}break;case Ve1.State.OP_MINUS:switch(X){case Ve1.cc.E:case Ve1.cc.e:this.state=Ve1.State.OP_MINUS_E;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_MINUS_E:switch(X){case Ve1.cc.R:case Ve1.cc.r:this.state=Ve1.State.OP_MINUS_ER;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_MINUS_ER:switch(X){case Ve1.cc.R:case Ve1.cc.r:this.state=Ve1.State.OP_MINUS_ERR;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_MINUS_ERR:switch(X){case Ve1.cc.SPACE:case Ve1.cc.TAB:this.state=Ve1.State.OP_MINUS_ERR_SPC;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_MINUS_ERR_SPC:switch(X){case Ve1.cc.SPACE:case Ve1.cc.TAB:continue;default:this.state=Ve1.State.MINUS_ERR_ARG,this.as=Z}break;case Ve1.State.MINUS_ERR_ARG:switch(X){case Ve1.cc.CR:this.drop=1;break;case Ve1.cc.NL:{let Q;if(this.argBuf)Q=this.argBuf.bytes(),this.argBuf=void 0;else Q=$.subarray(this.as,Z-this.drop);this.dispatcher.push({kind:Ve1.Kind.ERR,data:Q}),this.drop=0,this.as=Z+1,this.state=Ve1.State.OP_START;break}default:if(this.argBuf)this.argBuf.write(Uint8Array.of(X))}break;case Ve1.State.OP_P:switch(X){case Ve1.cc.I:case Ve1.cc.i:this.state=Ve1.State.OP_PI;break;case Ve1.cc.O:case Ve1.cc.o:this.state=Ve1.State.OP_PO;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_PO:switch(X){case Ve1.cc.N:case Ve1.cc.n:this.state=Ve1.State.OP_PON;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_PON:switch(X){case Ve1.cc.G:case Ve1.cc.g:this.state=Ve1.State.OP_PONG;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_PONG:switch(X){case Ve1.cc.NL:this.dispatcher.push({kind:Ve1.Kind.PONG}),this.drop=0,this.state=Ve1.State.OP_START;break}break;case Ve1.State.OP_PI:switch(X){case Ve1.cc.N:case Ve1.cc.n:this.state=Ve1.State.OP_PIN;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_PIN:switch(X){case Ve1.cc.G:case Ve1.cc.g:this.state=Ve1.State.OP_PING;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_PING:switch(X){case Ve1.cc.NL:this.dispatcher.push({kind:Ve1.Kind.PING}),this.drop=0,this.state=Ve1.State.OP_START;break}break;case Ve1.State.OP_I:switch(X){case Ve1.cc.N:case Ve1.cc.n:this.state=Ve1.State.OP_IN;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_IN:switch(X){case Ve1.cc.F:case Ve1.cc.f:this.state=Ve1.State.OP_INF;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_INF:switch(X){case Ve1.cc.O:case Ve1.cc.o:this.state=Ve1.State.OP_INFO;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_INFO:switch(X){case Ve1.cc.SPACE:case Ve1.cc.TAB:this.state=Ve1.State.OP_INFO_SPC;break;default:throw this.fail($.subarray(Z))}break;case Ve1.State.OP_INFO_SPC:switch(X){case Ve1.cc.SPACE:case Ve1.cc.TAB:continue;default:this.state=Ve1.State.INFO_ARG,this.as=Z}break;case Ve1.State.INFO_ARG:switch(X){case Ve1.cc.CR:this.drop=1;break;case Ve1.cc.NL:{let Q;if(this.argBuf)Q=this.argBuf.bytes(),this.argBuf=void 0;else Q=$.subarray(this.as,Z-this.drop);this.dispatcher.push({kind:Ve1.Kind.INFO,data:Q}),this.drop=0,this.as=Z+1,this.state=Ve1.State.OP_START;break}default:if(this.argBuf)this.argBuf.writeByte(X)}break;default:throw this.fail($.subarray(Z))}}if((this.state===Ve1.State.MSG_ARG||this.state===Ve1.State.MINUS_ERR_ARG||this.state===Ve1.State.INFO_ARG)&&!this.argBuf)this.argBuf=new nn0.DenoBuffer($.subarray(this.as,Z-this.drop));if(this.state===Ve1.State.MSG_PAYLOAD&&!this.msgBuf){if(!this.argBuf)this.cloneMsgArg();this.msgBuf=new nn0.DenoBuffer($.subarray(this.as))}}cloneMsgArg(){let $=this.ma.subject.length,Z=this.ma.reply?this.ma.reply.length:0,X=new Uint8Array($+Z);if(X.set(this.ma.subject),this.ma.reply)X.set(this.ma.reply,$);if(this.argBuf=new nn0.DenoBuffer(X),this.ma.subject=X.subarray(0,$),this.ma.reply)this.ma.reply=X.subarray($)}processMsgArgs($){if(this.hdr>=0)return this.processHeaderMsgArgs($);let Z=[],X=-1;for(let Q=0;Q<$.length;Q++)switch($[Q]){case Ve1.cc.SPACE:case Ve1.cc.TAB:case Ve1.cc.CR:case Ve1.cc.NL:if(X>=0)Z.push($.subarray(X,Q)),X=-1;break;default:if(X<0)X=Q}if(X>=0)Z.push($.subarray(X));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],Ry);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],Ry);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}: ${tn0.TD.decode($)}`)}processHeaderMsgArgs($){let Z=[],X=-1;for(let Q=0;Q<$.length;Q++)switch($[Q]){case Ve1.cc.SPACE:case Ve1.cc.TAB:case Ve1.cc.CR:case Ve1.cc.NL:if(X>=0)Z.push($.subarray(X,Q)),X=-1;break;default:if(X<0)X=Q}if(X>=0)Z.push($.subarray(X));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],Ry),this.ma.size=this.protoParseInt(Z[3],Ry);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],Ry),this.ma.size=this.protoParseInt(Z[4],Ry);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 X=0;for(let Q=0;Q<$.length;Q++){if($[Q]<qe1||$[Q]>E14)return-1;X=X*10+($[Q]-qe1)}return Z!==void 0&&X>Z?-1:X}}Ve1.Parser=Me1;Ve1.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};Ve1.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 b70=v((Se1)=>{Object.defineProperty(Se1,"__esModule",{value:!0});Se1.MsgHdrsImpl=void 0;Se1.canonicalMIMEHeaderKey=an0;Se1.headers=P14;var ke1=WG(),i3=NO(),f70=HG();function an0($){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 f70.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 P14($=0,Z=""){if($===0&&Z!=="")throw f70.InvalidArgumentError.format("code","is required");else if($>0&&Z==="")throw f70.InvalidArgumentError.format("description","is required");return new Iy($,Z)}var rn0="NATS/1.0";class Iy{_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,X]of this.headers){let Q=$.values(Z);if(X.length!==Q.length)return!1;let Y=[...X].sort(),G=[...Q].sort();for(let J=0;J<Y.length;J++)if(Y[J]!==G[J])return!1}return!0}return!1}static decode($){let Z=new Iy,Q=ke1.TD.decode($).split(`\r
|
|
1529
1529
|
`),Y=Q[0];if(Y!==rn0){let G=Y.replace(rn0,"").trim();if(G.length>0){if(Z._code=parseInt(G,10),isNaN(Z._code))Z._code=0;let J=Z._code.toString();G=G.replace(J,""),Z._description=G.trim()}}if(Q.length>=1)Q.slice(1).map((G)=>{if(G){let J=G.indexOf(":");if(J>-1){let K=G.slice(0,J),W=G.slice(J+1).trim();Z.append(K,W)}}});return Z}toString(){if(this.headers.size===0&&this._code===0)return"";let $=rn0;if(this._code>0&&this._description!=="")$+=` ${this._code} ${this._description}`;for(let[Z,X]of this.headers)for(let Q=0;Q<X.length;Q++)$=`${$}\r
|
|
1530
1530
|
${Z}: ${X[Q]}`;return`${$}\r
|