decocms 4.513.8 → 4.514.1
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/{ActiveShapeUtils-uKFYSg4Y.js → ActiveShapeUtils-VLdZwTWH.js} +1 -1
- package/dist/client/assets/{AlertCircle-Q16nTVAa.js → AlertCircle-Chv0zwfM.js} +1 -1
- package/dist/client/assets/{AreaChart-k5WqYBKX.js → AreaChart-xRBpMPmy.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C_dTX_8N.js → ArrowLeft-P5MTc2kM.js} +1 -1
- package/dist/client/assets/{ArrowUp--4P0C-xl.js → ArrowUp-B9orjFiD.js} +1 -1
- package/dist/client/assets/{BarChart-VS3Ye-qY.js → BarChart-BLqplpUZ.js} +1 -1
- package/dist/client/assets/{Building02-Gub-pr-8.js → Building02-Bhj7SR-R.js} +1 -1
- package/dist/client/assets/{CartesianChart-BvH4QiKh.js → CartesianChart-BjPyBEv_.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CTrV8dYV.js → CategoricalChart-sikMJnQl.js} +1 -1
- package/dist/client/assets/{CheckCircle-CQxu_pm9.js → CheckCircle-BOOTvtN7.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-GBLm8Zpl.js → ChevronSelectorVertical-CKvNz838.js} +1 -1
- package/dist/client/assets/{ChevronUp-DK-Gvyk8.js → ChevronUp-UOllpHWY.js} +1 -1
- package/dist/client/assets/{Copy01-EWitDFCf.js → Copy01-CsZzLh_E.js} +1 -1
- package/dist/client/assets/{CreditCard01-wx_z4Iiz.js → CreditCard01-Bji4icQZ.js} +1 -1
- package/dist/client/assets/{DotsVertical-DIT5hu2b.js → DotsVertical-BaN_NJ8K.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C56oRnGq.js → ErrorBarContext-D_W32jld.js} +1 -1
- package/dist/client/assets/{Globe04-B45_cBRN.js → Globe04-BOt08kHg.js} +1 -1
- package/dist/client/assets/{Image01-BfGAREA7.js → Image01-Ffg_Ow_R.js} +1 -1
- package/dist/client/assets/{Key01-BV7tzZs6.js → Key01-BVuT8y7b.js} +1 -1
- package/dist/client/assets/{Link01-9civFIb9.js → Link01-Du3sgYhY.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DmmKNgpp.js → LinkBroken01-D3nON0AT.js} +1 -1
- package/dist/client/assets/Minus-qI5XA_m8.js +1 -0
- package/dist/client/assets/{Monitor01-BoSs_8gg.js → Monitor01-DPFmNrHU.js} +1 -1
- package/dist/client/assets/{Play-CleWZLOG.js → Play-CKRH5LhK.js} +1 -1
- package/dist/client/assets/{Plus-DQf-jm_3.js → Plus-Dr-ysAIN.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DtJF7ODu.js → ReferenceLine-DTjjPG4Y.js} +1 -1
- package/dist/client/assets/{SearchMd-D0zp0uee.js → SearchMd-D_t1juud.js} +1 -1
- package/dist/client/assets/{Sector-CWBWrJZQ.js → Sector-B0wid3BW.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-B7gta_qY.js → ShoppingBag01-CVVvTwrH.js} +1 -1
- package/dist/client/assets/{Sun-BfjJa3ru.js → Sun-Cgn1IQVJ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BJyDDPw9.js → SwitchHorizontal01-CEx9qTgC.js} +1 -1
- package/dist/client/assets/Tool01-Dys7Z5ab.js +1 -0
- package/dist/client/assets/{Trash01-Dlk_Sh-H.js → Trash01--FklAmhG.js} +1 -1
- package/dist/client/assets/{Upload01-DlF9Jqso.js → Upload01-BeT7SqGm.js} +1 -1
- package/dist/client/assets/{User01-BcekHhAV.js → User01-C3IPjJ5l.js} +1 -1
- package/dist/client/assets/{UserSquare-cdWcOBLL.js → UserSquare-CaU54i61.js} +1 -1
- package/dist/client/assets/{Users01-BIP-PxGt.js → Users01-BZXT5qAC.js} +1 -1
- package/dist/client/assets/{XClose-L_GNViCD.js → XClose-Cjrx49Z1.js} +1 -1
- package/dist/client/assets/{ZoomOut-B3s5275g.js → ZoomOut-Bi4ExiY7.js} +1 -1
- package/dist/client/assets/{access-gate-CsHtyNGi.js → access-gate-DMrwc1hr.js} +1 -1
- package/dist/client/assets/active-indicator-CCMhAsc_.js +1 -0
- package/dist/client/assets/add-connection-dialog-CtRrIzJJ.js +1 -0
- package/dist/client/assets/agent-analytics-Bnwy_Gqw.js +2 -0
- package/dist/client/assets/agent-app-ZIqUjeyR.js +1 -0
- package/dist/client/assets/agent-assets-DwMNxzbi.js +1 -0
- package/dist/client/assets/agent-automation-02Z5hyQu.js +20 -0
- package/dist/client/assets/agent-automations-CFPQlvb2.js +1 -0
- package/dist/client/assets/agent-connect-sources-Iuxi1z0Z.js +1 -0
- package/dist/client/assets/agent-deck-BbRRpKSj.js +1 -0
- package/dist/client/assets/agent-e2e-CF9xjkgd.js +1 -0
- package/dist/client/assets/agent-experiments-CFFDp5bP.js +1 -0
- package/dist/client/assets/agent-file-BMs4cJrj.js +1 -0
- package/dist/client/assets/agent-hosting-BkhWgDEP.js +1 -0
- package/dist/client/assets/agent-icon-sWZwj0Es.js +1 -0
- package/dist/client/assets/agent-library-B-Wls_Sg.js +1 -0
- package/dist/client/assets/agent-library-file-wqWJ8B3w.js +1 -0
- package/dist/client/assets/agent-monitor-5rJ2SPuO.js +1 -0
- package/dist/client/assets/agent-overview-c6SNk0le.js +1 -0
- package/dist/client/assets/agent-releases-D570Q4Mh.js +2 -0
- package/dist/client/assets/agent-settings-B8J4yqzP.js +1 -0
- package/dist/client/assets/agent-site-editor-code-KKCPuRYa.js +2 -0
- package/dist/client/assets/agent-site-editor-content-lFAgfEzB.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BtpIiq0Q.js +1 -0
- package/dist/client/assets/{agent-site-editor-DMCFUFgp.js → agent-site-editor-uS5XJ69l.js} +17 -17
- package/dist/client/assets/agent-view-DV9c8H6A.js +1 -0
- package/dist/client/assets/{agent-view-guard-AH_0N8JG.js → agent-view-guard-D6Xp5buw.js} +1 -1
- package/dist/client/assets/agents-list-DOombnHa.js +1 -0
- package/dist/client/assets/ai-providers-tmz_JP24.js +6 -0
- package/dist/client/assets/alert-VfejUnRf.js +1 -0
- package/dist/client/assets/alert-dialog-XdiY2J_y.js +7 -0
- package/dist/client/assets/analytics-sections-ji2C2qln.js +1 -0
- package/dist/client/assets/api-keys-DGmfxaaK.js +1 -0
- package/dist/client/assets/api-keys-wu5nx6nR.js +1 -0
- package/dist/client/assets/app-editor-Cu9bylSk.js +1 -0
- package/dist/client/assets/{asset-utils-Duz2qYol.js → asset-utils-CKM5FMXp.js} +1 -1
- package/dist/client/assets/{auth-BVkTFTOt.js → auth-CR47t1GM.js} +1 -1
- package/dist/client/assets/{auth-catchall-lx3pSppE.js → auth-catchall-B1w-i5RZ.js} +1 -1
- package/dist/client/assets/auth-entry-oRjY0cnq.js +1 -0
- package/dist/client/assets/{auth-split-layout-CFlGWfV0.js → auth-split-layout-CiycErWO.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-POYqGagt.js → authenticate-and-persist-oauth-D5GDklWs.js} +1 -1
- package/dist/client/assets/automation-list-row-CCxYnaw4.js +1 -0
- package/dist/client/assets/automation-runs-CbO3I7fA.js +1 -0
- package/dist/client/assets/automations-DFS7mz__.js +1 -0
- package/dist/client/assets/{autosend-CL2OZPvg.js → autosend-DnRIvL7O.js} +1 -1
- package/dist/client/assets/avatar-x6P8tYtf.js +1 -0
- package/dist/client/assets/badge-0pHsypn4.js +1 -0
- package/dist/client/assets/block-document-D_lHlXH9.js +3 -0
- package/dist/client/assets/{blocks-preview-workspace-context-DcqAhd0P.js → blocks-preview-workspace-context--l_lynd7.js} +1 -1
- package/dist/client/assets/blocks-tab-states-llhicB0-.js +20 -0
- package/dist/client/assets/blog-schema-XUQos-wQ.js +1 -0
- package/dist/client/assets/buckets-FE463cqq.js +1 -0
- package/dist/client/assets/{build-improve-prompt-doc-BJrt-jCW.js → build-improve-prompt-doc-R7g2gEoJ.js} +1 -1
- package/dist/client/assets/{calendar-sxNtZ9wG.js → calendar-Dt43s5dd.js} +1 -1
- package/dist/client/assets/{capability-load-error-CB4I7CRT.js → capability-load-error-BwHvNdC3.js} +1 -1
- package/dist/client/assets/category-editor-ChXNS4Vx.js +1 -0
- package/dist/client/assets/{chart-NRF3lK-V.js → chart-BtbkFiWd.js} +1 -1
- package/dist/client/assets/{chat-context-Dv2E4fnf.js → chat-context-DHXBy843.js} +6 -6
- package/dist/client/assets/{chat-draft-X1dGJc2x.js → chat-draft-DZ2UGoju.js} +1 -1
- package/dist/client/assets/checkbox-J7NM8Nxa.js +1 -0
- package/dist/client/assets/choose-editor-sfJnCc8D.js +1 -0
- package/dist/client/assets/{cli-auth-success-aITDjw-8.js → cli-auth-success-C3tfQ2C3.js} +1 -1
- package/dist/client/assets/{client-icons-DRk6JWY6.js → client-icons-Cv4YCEZF.js} +1 -1
- package/dist/client/assets/cms-settings-editor-DfS-CnoD.js +1 -0
- package/dist/client/assets/{collapsible-DHXUZre4.js → collapsible-C5IcK6_6.js} +1 -1
- package/dist/client/assets/collection-detail-CE3RN1bQ.js +1 -0
- package/dist/client/assets/collection-display-button-XyzcBi3s.js +1 -0
- package/dist/client/assets/{collection-search-Dcze6ySb.js → collection-search-EaUyhqe3.js} +1 -1
- package/dist/client/assets/collection-table-wrapper-AoIZEo7k.js +1 -0
- package/dist/client/assets/collection-tabs-CvrE77Fy.js +1 -0
- package/dist/client/assets/{column-rules-C_Hndp-C.js → column-rules-Uuv3kpod.js} +1 -1
- package/dist/client/assets/combobox-GJu0SOmd.js +1 -0
- package/dist/client/assets/{coming-soon-page-DsS1SnMg.js → coming-soon-page-C252kDGK.js} +1 -1
- package/dist/client/assets/command-CxL64Rh6.js +1 -0
- package/dist/client/assets/companion-mcps-section-dLU7TCqp.js +1 -0
- package/dist/client/assets/config-MIIbcSQe.js +1 -0
- package/dist/client/assets/connect-CPLWL7jD.js +9 -0
- package/dist/client/assets/connect-layout-DKbxeOaE.js +1 -0
- package/dist/client/assets/{connection-CEK3iDim.js → connection-Dwyi3srb.js} +1 -1
- package/dist/client/assets/{connection-card-Zhg6xn7V.js → connection-card-Fd6iPvoW.js} +1 -1
- package/dist/client/assets/connection-detail-2wc1W9tk.js +1 -0
- package/dist/client/assets/connection-form-helpers-Be0GZ2Fr.js +1 -0
- package/dist/client/assets/connections-CXtzZLwk.js +1 -0
- package/dist/client/assets/content-tab-C6Yd-gaA.js +22 -0
- package/dist/client/assets/context-CTmvExSC.js +1 -0
- package/dist/client/assets/{context-menu-BFA8rRfY.js → context-menu-Sl80TmNB.js} +1 -1
- package/dist/client/assets/context-shell-Luc3_ZNi.js +197 -0
- package/dist/client/assets/{core.esm-BO316fgf.js → core.esm-3Ntqpx6o.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-Cb6YY9K7.js → create-organization-dialog-Y8ioappi.js} +1 -1
- package/dist/client/assets/{daily-pulse-C0-1QTxZ.js → daily-pulse-BokyOzAt.js} +1 -1
- package/dist/client/assets/discover-NdJwdhLd.js +1 -0
- package/dist/client/assets/{domain-settings-B_QSN-on.js → domain-settings-DjKwxNmK.js} +1 -1
- package/dist/client/assets/{drawer-DL0G-oy-.js → drawer-2qaZT3bV.js} +1 -1
- package/dist/client/assets/{editor-B62-XQRE.js → editor-D4klHvzy.js} +1 -1
- package/dist/client/assets/editor-classes-BBdx-JSY.js +1 -0
- package/dist/client/assets/{empty-state-JTI0oLk7.js → empty-state-CLeOp2iF.js} +1 -1
- package/dist/client/assets/empty-state-kKu94zqY.js +1 -0
- package/dist/client/assets/{extract-connection-data-BlmKelwb.js → extract-connection-data-BRxw-vDj.js} +1 -1
- package/dist/client/assets/{feature-gate-DQ2MNs-B.js → feature-gate-DtQbinUr.js} +1 -1
- package/dist/client/assets/{feature-paywall-BSXK-EmV.js → feature-paywall-BvbLf2vN.js} +1 -1
- package/dist/client/assets/file-explorer-CRhBeOh6.js +2 -0
- package/dist/client/assets/file-preview-sewMgnQS.js +1 -0
- package/dist/client/assets/file-share-button-CvBuOPBB.js +3 -0
- package/dist/client/assets/{file-type-icon-HF5UcaS2.js → file-type-icon-L81OHsVz.js} +1 -1
- package/dist/client/assets/folder-icon-yKBQ26US.js +2 -0
- package/dist/client/assets/{form-DNjk4sZI.js → form-oexeEAr5.js} +1 -1
- package/dist/client/assets/general-DjPGqCh1.js +1 -0
- package/dist/client/assets/home-x3m8wBSJ.js +1 -0
- package/dist/client/assets/{hosted-publish-feedback-DtU7FOId.js → hosted-publish-feedback-GSHWRd1_.js} +1 -1
- package/dist/client/assets/{icon-button-WP5IJTs8.js → icon-button-DfIZISrS.js} +1 -1
- package/dist/client/assets/{index-B9qNCJbx.js → index-5UrkGUsp.js} +1 -1
- package/dist/client/assets/index-B-ZICxtp.js +1 -0
- package/dist/client/assets/{index-BaQyqQF-.js → index-B50XV3gp.js} +1 -1
- package/dist/client/assets/{index-CVLOGr5B.js → index-BAK2VowX.js} +1 -1
- package/dist/client/assets/index-BNHeiq0Q.js +1 -0
- package/dist/client/assets/index-C0_wKyXa.js +4 -0
- package/dist/client/assets/index-CWfwo1z9.css +1 -0
- package/dist/client/assets/{index-D6gxSs-5.js → index-CYAP4xje.js} +1 -1
- package/dist/client/assets/index-CiDUJoU5.js +4 -0
- package/dist/client/assets/{index-DCOsLpC6.js → index-Cyd8Z3z7.js} +23 -23
- package/dist/client/assets/{index-DtysKpnb.js → index-DlkvGq_Y.js} +1 -1
- package/dist/client/assets/index-DlxFtSYK.js +2 -0
- package/dist/client/assets/{index-a-46Uqqs.js → index-DpopmD-d.js} +1 -1
- package/dist/client/assets/{index-DEQvnIsm.js → index-DwUSgMrk.js} +38 -38
- package/dist/client/assets/{index-C13QaLdF.js → index-no3MX84i.js} +2 -2
- package/dist/client/assets/index-rABmEORU.js +5 -0
- package/dist/client/assets/{index-redirect-dS_ROPu1.js → index-redirect-B1_VIFp-.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BnP8vr6V.js → infiniteQueryObserver-fD19WDlu.js} +1 -1
- package/dist/client/assets/infra-billing-DeTird2m.js +1 -0
- package/dist/client/assets/input-BcdjLg5X.js +17 -0
- package/dist/client/assets/input-YsL3Z14x.js +1 -0
- package/dist/client/assets/{integration-icon-Bysyldtc.js → integration-icon-CGlpUTQF.js} +1 -1
- package/dist/client/assets/{jira-icon-DJANnyLA.js → jira-icon-DpMHb8bf.js} +1 -1
- package/dist/client/assets/{label-Cf2Qy475.js → label-9iahSV8V.js} +1 -1
- package/dist/client/assets/{layout-CQ47j80U.js → layout-4cUTvlr5.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BdSVZFZL.js → legacy-agents-deep-CE1ZIf89.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BaYQkGoI.js → legacy-main-redirect-BOOZ04G2.js} +1 -1
- package/dist/client/assets/library-BzLsSIpk.js +1 -0
- package/dist/client/assets/{location-BjlyegC2.js → location-V0VwTJTt.js} +1 -1
- package/dist/client/assets/{login-BCT_8F_z.js → login-Di_zn9Rr.js} +1 -1
- package/dist/client/assets/{markdown-DgDY2QmE.js → markdown-DQgkOB--.js} +3 -3
- package/dist/client/assets/{mcp-app-renderer-pDbHkuXF.js → mcp-app-renderer-E0Rb-X88.js} +2 -2
- package/dist/client/assets/{mcp-oauth-C_-ZUSLH.js → mcp-oauth-Bvn81zXq.js} +1 -1
- package/dist/client/assets/{mcp-oauth-aX1L4mRw.js → mcp-oauth-DQ15yEaL.js} +1 -1
- package/dist/client/assets/members-4brJt64W.js +1 -0
- package/dist/client/assets/{memory-CWT1ZdIC.js → memory-C7XTx0yg.js} +2 -2
- package/dist/client/assets/mini-report-page-Dd9QKBqa.js +1 -0
- package/dist/client/assets/mock-board-Ds2_Ixhv.js +81 -0
- package/dist/client/assets/{monaco-editor-DDuHJmyY.js → monaco-editor-pm8M8s-N.js} +2 -2
- package/dist/client/assets/monitoring-GFsyOhLD.js +1 -0
- package/dist/client/assets/monitoring-stats-row-DSg2pS6E.js +1 -0
- package/dist/client/assets/multi-select-uR1MVHE3.js +1 -0
- package/dist/client/assets/{mustache-DrIjKpei.js → mustache-Kcmg3c_A.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DKeFr4C7.js → new-project-dialog-zI2HVFQT.js} +1 -1
- package/dist/client/assets/{oauth-callback-B1G7saOE.js → oauth-callback-B-8An67A.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-mNgeHhki.js → oauth-callback-ai-provider-C2GrwmUm.js} +1 -1
- package/dist/client/assets/onboarding-C5CJ17Jm.js +1 -0
- package/dist/client/assets/openai-conversation-B8Y0DM4W.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-BaDUYmKF.js → optimistic-project-sidebar-views-DbcREcFy.js} +1 -1
- package/dist/client/assets/{order-monitor-day-C_yvKTz5.js → order-monitor-day-CkXiopdS.js} +1 -1
- package/dist/client/assets/organization-choice-BsHIbX2m.js +1 -0
- package/dist/client/assets/{orgs-BEJlYBbK.js → orgs-CYS6Kjbu.js} +1 -1
- package/dist/client/assets/{page-seo-form-N1KKSZaU.js → page-seo-form-DiFnoI3j.js} +1 -1
- package/dist/client/assets/pair-BVAQv2mv.js +48 -0
- package/dist/client/assets/plan-CFOdn8Gq.js +1 -0
- package/dist/client/assets/{plan-ladder-CFysCUYy.js → plan-ladder-hFJpqSg5.js} +1 -1
- package/dist/client/assets/popover-kKTDdvYS.js +1 -0
- package/dist/client/assets/post-calendar-fLDkPFOG.js +1 -0
- package/dist/client/assets/post-editor-kAgu7v4k.js +2 -0
- package/dist/client/assets/{preview-content-UW33EMCo.js → preview-content-BmpJoYAF.js} +1 -1
- package/dist/client/assets/{preview-dialog-DWW9xaMT.js → preview-dialog-1doPIjMd.js} +1 -1
- package/dist/client/assets/{preview-panel-C2ZH3x01.js → preview-panel-CD98bDar.js} +1 -1
- package/dist/client/assets/preview-tab-CNqKfb-E.js +551 -0
- package/dist/client/assets/product-picker-dialog-D5ZR-4jN.js +1 -0
- package/dist/client/assets/profile-Bx09OmQG.js +1 -0
- package/dist/client/assets/project-app-view-i9ZXlEA5.js +1 -0
- package/dist/client/assets/project-apps-DjY-pfpC.js +1 -0
- package/dist/client/assets/project-feed-AQtypsNP.js +1 -0
- package/dist/client/assets/project-icon-DzYy4wKu.js +1 -0
- package/dist/client/assets/project-reports-CkkyEEQq.js +1 -0
- package/dist/client/assets/project-tasks-C6uZ3VD_.js +1 -0
- package/dist/client/assets/projects-Bl4qWgcF.js +1 -0
- package/dist/client/assets/{projects-empty-state-SWDBQkN4.js → projects-empty-state-VSVQUIX3.js} +1 -1
- package/dist/client/assets/{prompts-oa8BoX1i.js → prompts-XJP0lHjx.js} +1 -1
- package/dist/client/assets/record-editor-DQnsC6va.js +1 -0
- package/dist/client/assets/redirect-editor-zBgb8pHu.js +1 -0
- package/dist/client/assets/{reports-BsyMPz_z.js → reports-BE9tpjsQ.js} +2 -2
- package/dist/client/assets/reports-BkHs6ceB.js +1 -0
- package/dist/client/assets/reports-onboarding-djvrypII.js +1 -0
- package/dist/client/assets/reports-tab-DTd-sN5F.js +2 -0
- package/dist/client/assets/repositories-jscn92Gx.js +1 -0
- package/dist/client/assets/repositories-lD386pbK.js +1 -0
- package/dist/client/assets/{repository-binding-DpSh0bkT.js → repository-binding-Ctv5jACU.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CmGbASze.js → repository-import-picker-DXFAIhGC.js} +1 -1
- package/dist/client/assets/{repository-picker-C86kcY-U.js → repository-picker-C-87Ak81.js} +1 -1
- package/dist/client/assets/{require-capability-D4dR1lZc.js → require-capability-BOhrH32F.js} +1 -1
- package/dist/client/assets/{required-auth-layout-RW5dOh2c.js → required-auth-layout-BOZelCHP.js} +1 -1
- package/dist/client/assets/{reset-password-lP2OGZgV.js → reset-password-D_RSIa3W.js} +1 -1
- package/dist/client/assets/{resizable-DueLEUEm.js → resizable-CcGplCtq.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-B66mDW53.js → resolve-tab-icon-Dy1gZT8r.js} +1 -1
- package/dist/client/assets/review-settings-DJRBjChO.js +1 -0
- package/dist/client/assets/roles-IPKUXurs.js +1 -0
- package/dist/client/assets/route-CEyEwTNJ.js +1 -0
- package/dist/client/assets/route-DYdh0lyb.js +1 -0
- package/dist/client/assets/route-DkxQ33qF.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-BIf8-4ZY.js → sandbox-lifecycle-context-B_iyl6NM.js} +1 -1
- package/dist/client/assets/{schema-BzqS-kNt.js → schema-C9VtMeBM.js} +1 -1
- package/dist/client/assets/{schema-Bcb37BRV.js → schema-CIU-vy-M.js} +1 -1
- package/dist/client/assets/{scroll-area-CIRLWlOA.js → scroll-area-BgPjdFUv.js} +1 -1
- package/dist/client/assets/search-input-6roNTbiB.js +1 -0
- package/dist/client/assets/search-toggle-6uVgZqDd.js +1 -0
- package/dist/client/assets/{secret-ciphertext-6VBjcV3b.js → secret-ciphertext-DFilJK15.js} +1 -1
- package/dist/client/assets/{secret-picker-NhuvO0ke.js → secret-picker-DRod6Suz.js} +1 -1
- package/dist/client/assets/secrets-wckAePsp.js +1 -0
- package/dist/client/assets/sections-editor-DvRXHJYg.js +4 -0
- package/dist/client/assets/{sections-DzoS45qS.js → sections-ogB-svMV.js} +1 -1
- package/dist/client/assets/select-DSSug2fd.js +1 -0
- package/dist/client/assets/select-model-qiewDWcs.js +1 -0
- package/dist/client/assets/seo-editor-BTHpHgYq.js +1 -0
- package/dist/client/assets/{separator-5oK4b-Mi.js → separator-RD1Gkb6T.js} +1 -1
- package/dist/client/assets/settings-tab-_PnJc2CP.js +1 -0
- package/dist/client/assets/sheet-B-tTREXV.js +1 -0
- package/dist/client/assets/shell-layout-CCN75UAi.js +1 -0
- package/dist/client/assets/site-editor-59L0Aud8.js +1 -0
- package/dist/client/assets/{site-editor-toast-CmNIWnCw.js → site-editor-toast-CWvkPJE7.js} +1 -1
- package/dist/client/assets/skills-BTCtj4sL.js +1 -0
- package/dist/client/assets/slider-axq58KTi.js +1 -0
- package/dist/client/assets/{sortable.esm-BuCSUlOk.js → sortable.esm-DUpSK4fM.js} +1 -1
- package/dist/client/assets/{sso-DX8PZk1N.js → sso-DIJKG0Gf.js} +1 -1
- package/dist/client/assets/{suggestion-DRP05M3-.js → suggestion-Be-l0Vt9.js} +2 -2
- package/dist/client/assets/switch-CPLmKtep.js +1 -0
- package/dist/client/assets/{symbol-C1zrmwNF.js → symbol-Bevi1KjX.js} +1 -1
- package/dist/client/assets/synced-repos-CDGSA9__.js +1 -0
- package/dist/client/assets/{tab-icon-glyph-D6mZxF_9.js → tab-icon-glyph-DYfErhsy.js} +1 -1
- package/dist/client/assets/{table-CltsOK_0.js → table-B1WNxn6C.js} +1 -1
- package/dist/client/assets/tabs-CBoEFGVa.js +1 -0
- package/dist/client/assets/task-assignee-avatar-DNUvYoRs.js +1 -0
- package/dist/client/assets/{task-board-DUTGhEiC.js → task-board-CDUMGTb-.js} +1 -1
- package/dist/client/assets/{task-route-BpmTIbg4.js → task-route-BpUah0sB.js} +1 -1
- package/dist/client/assets/{task-status-C72thlpO.js → task-status-Bxq1hmIf.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DiMdGRcj.js +1 -0
- package/dist/client/assets/tasks-C43XRe6P.js +4 -0
- package/dist/client/assets/tasks-D3vb1Iwc.js +1 -0
- package/dist/client/assets/textarea-CQ_TkrdE.js +1 -0
- package/dist/client/assets/thread-analytics-D_JGJCHX.js +1 -0
- package/dist/client/assets/{thread-intent-8kpZLcDE.js → thread-intent-DYNUY6FR.js} +1 -1
- package/dist/client/assets/{thread-route-DTbE-Col.js → thread-route-Cr8HKNDQ.js} +1 -1
- package/dist/client/assets/thread-route-xZCxiRJg.js +1 -0
- package/dist/client/assets/thread-sheet-body-CRJYPU36.js +1 -0
- package/dist/client/assets/{time-range-picker-BJ8aJbM7.js → time-range-picker-CsKO958P.js} +1 -1
- package/dist/client/assets/toggle-group-CaNHwi3W.js +1 -0
- package/dist/client/assets/{tool-namespace-CTeV292R.js → tool-namespace-D8-HQWQE.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BypH-a8F.js → toolbar-icon-button-pGWMZONn.js} +1 -1
- package/dist/client/assets/{tooltip-B6NbTX5P.js → tooltip-7xQKXZXx.js} +1 -1
- package/dist/client/assets/{tooltipContext-DNlXAkZZ.js → tooltipContext-BM_DUTQp.js} +1 -1
- package/dist/client/assets/{track-B0UUbkCz.js → track-5WqIg6Tn.js} +1 -1
- package/dist/client/assets/{types-m1Dsi5sG.js → types-DmsgcF8m.js} +6 -6
- package/dist/client/assets/{url-slug-CYvqbzge.js → url-slug-CMhgSj9A.js} +1 -1
- package/dist/client/assets/{usage-stats-BH4bqLoE.js → usage-stats-BKxLD2_l.js} +2 -2
- package/dist/client/assets/{use-ai-providers-W2Q5vYCk.js → use-ai-providers-Dp4Hkjtx.js} +1 -1
- package/dist/client/assets/{use-automations-Q-O37R-p.js → use-automations-J0jLeJwk.js} +1 -1
- package/dist/client/assets/{use-autosave-BWJWTtk0.js → use-autosave-DmDY7YGA.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-C-XHZ0Dd.js → use-chat-layout-state-DeeoSPAs.js} +1 -1
- package/dist/client/assets/{use-clock-tick-xpCK7CUB.js → use-clock-tick-C6h2MMIi.js} +1 -1
- package/dist/client/assets/use-connect-companion-hQGadPnV.js +1 -0
- package/dist/client/assets/{use-connection-Cqf7M1G6.js → use-connection-mXOC3Xuo.js} +1 -1
- package/dist/client/assets/{use-content-sync-D6XyiV7H.js → use-content-sync-mkwV3WFd.js} +1 -1
- package/dist/client/assets/{use-copy-Dkgb0DtI.js → use-copy-D9a2GtFe.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BZx-8s-I.js → use-create-virtual-mcp-DtlfKOSb.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-B1aPt2Gv.js → use-date-fns-locale-Dv1VJI3I.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Qji0VG0D.js → use-debounced-autosave-BZlwz5E9.js} +1 -1
- package/dist/client/assets/{use-debounced-value-vhgvmVq4.js → use-debounced-value-DJVnkGFg.js} +1 -1
- package/dist/client/assets/{use-deco-credits-k0aTLB-T.js → use-deco-credits-BCAKdpOu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Czwn8ZVj.js → use-decopilot-events-DYkAp_m7.js} +1 -1
- package/dist/client/assets/use-delete-connection-C00H7ulN.js +1 -0
- package/dist/client/assets/{use-deployment-admin-BrGfiqwj.js → use-deployment-admin-ByxIcPI9.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-oDwhtnfP.js → use-fast-preview-draft-url-apL5qVv1.js} +1 -1
- package/dist/client/assets/{use-file-configs-BIHMmAjW.js → use-file-configs-DJCoczIU.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-SkFacTLx.js → use-inbox-feed-CgTcDvrj.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B9sczgXI.js → use-infinite-scroll-AsnNIlBn.js} +1 -1
- package/dist/client/assets/{use-join-requests-DALj-BO-.js → use-join-requests-BJCQZeJg.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-Cv3Ydqwx.js → use-main-panel-tabs-CwksoiNK.js} +1 -1
- package/dist/client/assets/{use-main-schema-v8-Jzc_7tOC.js → use-main-schema-v8-Cys0il1A.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BKawZyTw.js → use-mcp-auth-status-mE5X1aBV.js} +1 -1
- package/dist/client/assets/use-mcp-client-CvE7itXw.js +10 -0
- package/dist/client/assets/{use-mcp-prompts-D1rnFTSb.js → use-mcp-prompts-B71f8Oap.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CPGj7A6a.js → use-mcp-tools-DT06t5rX.js} +1 -1
- package/dist/client/assets/{use-members-D-L919KG.js → use-members-CAjyx4dy.js} +1 -1
- package/dist/client/assets/{use-mobile-CSFJ-mhK.js → use-mobile-D6Ou0NEP.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B-QlLf3R.js → use-navigate-to-agent-DqPVTZYN.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DWsw6Alp.js → use-open-billing-url-NfOqGe8U.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Co_fa5Pp.js → use-org-auth-client-D54JUqPS.js} +1 -1
- package/dist/client/assets/{use-org-fs-CAwgni1d.js → use-org-fs-CnHNkGa0.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Cxt6puu1.js → use-org-repo-syncs-B-iMqLC4.js} +1 -1
- package/dist/client/assets/{use-org-sso-BhMczCH6.js → use-org-sso-CWjER8s_.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DZJHfOlV.js → use-organization-roles-BaFyhF9z.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BtOReG0H.js → use-organization-settings-B4xXaxr4.js} +1 -1
- package/dist/client/assets/use-panel-navigate-CwRBX20z.js +1 -0
- package/dist/client/assets/{use-project-native-view-presence-D4pR1T7b.js → use-project-native-view-presence-fFpbo52Y.js} +1 -1
- package/dist/client/assets/{use-project-scope-Dn4doId4.js → use-project-scope-CwXHOags.js} +1 -1
- package/dist/client/assets/use-recent-apps-Bm3Mq1hd.js +1 -0
- package/dist/client/assets/{use-releases-DoIKvYCz.js → use-releases-COy4R50l.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-COAemppC.js → use-reports-diagnostic-Bf7x0h8K.js} +1 -1
- package/dist/client/assets/{use-secrets-CA-kSu-4.js → use-secrets-Db7kDjN7.js} +1 -1
- package/dist/client/assets/use-section-preview-base-yuSGDzoI.js +1 -0
- package/dist/client/assets/use-sidebar-collapsed-2XEtdu2i.js +1 -0
- package/dist/client/assets/{use-tags-CUZ9CIka.js → use-tags-BPUktrrg.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-34pQYq8w.js → use-task-board-analytics-Dt--SO4K.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CmYlpSMI.js → use-task-board-events-DHmzNQpi.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Cu4afbvW.js → use-task-board-item-prs-DpiWhUD6.js} +1 -1
- package/dist/client/assets/{use-task-metadata-C0A64pXU.js → use-task-metadata-DJlGx95B.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DXbq3gl0.js → use-thread-analytics-RjdStU-G.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BUN4R0HD.js → use-thread-outputs-hOt5_FqT.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DLjfiCcz.js +1 -0
- package/dist/client/assets/{useQueries-DNx9dZks.js → useQueries-CTk9HeNu.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DJIJLbRA.js +1 -0
- package/dist/client/assets/users-DSisYmgQ.js +1 -0
- package/dist/client/assets/{utils-D-52h1Lf.js → utils-BtlQk18r.js} +1 -1
- package/dist/client/assets/variant-calendar-DM6JVe9j.js +1 -0
- package/dist/client/assets/{variant-draft-pointer-BY7yWri4.js → variant-draft-pointer-DGsbM6lw.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CPoLjKOt.js → virtual-mcp-C-TlHAqf.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-C7xRCtu5.js → watch-sse-pool-wUe9D5Rq.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +484 -484
- package/package.json +1 -1
- package/dist/client/assets/Tool01-Bp-TbrXi.js +0 -1
- package/dist/client/assets/add-connection-dialog-DwDvS8Uw.js +0 -1
- package/dist/client/assets/agent-analytics-bhSR3DTp.js +0 -2
- package/dist/client/assets/agent-app-D3AENVQT.js +0 -1
- package/dist/client/assets/agent-assets-BwCvdqkQ.js +0 -1
- package/dist/client/assets/agent-automation-BB_6G_CX.js +0 -20
- package/dist/client/assets/agent-automations-1AEGAcHU.js +0 -1
- package/dist/client/assets/agent-connect-sources-Dh_ELrva.js +0 -1
- package/dist/client/assets/agent-deck-Cd8T_xPW.js +0 -1
- package/dist/client/assets/agent-e2e-Bz8yllNo.js +0 -1
- package/dist/client/assets/agent-experiments-BmvDtQNl.js +0 -1
- package/dist/client/assets/agent-file-BoVEwoJD.js +0 -1
- package/dist/client/assets/agent-hosting-DtDQtjNQ.js +0 -1
- package/dist/client/assets/agent-icon-D6wS7rd0.js +0 -1
- package/dist/client/assets/agent-library-BeoJetpR.js +0 -1
- package/dist/client/assets/agent-library-file-DCYJT22p.js +0 -1
- package/dist/client/assets/agent-monitor-DduGwwal.js +0 -1
- package/dist/client/assets/agent-overview-Bj_gDP1X.js +0 -1
- package/dist/client/assets/agent-releases-CAjd1_1N.js +0 -2
- package/dist/client/assets/agent-settings-CnK9fsFs.js +0 -1
- package/dist/client/assets/agent-site-editor-code-C20F9ay-.js +0 -2
- package/dist/client/assets/agent-site-editor-content-ChnnFjhK.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BxDD-Aar.js +0 -1
- package/dist/client/assets/agent-view-3YMZSj3x.js +0 -1
- package/dist/client/assets/agents-list-ZmW8mXyl.js +0 -1
- package/dist/client/assets/ai-providers-CJqDCuAR.js +0 -6
- package/dist/client/assets/alert-PPdejvI2.js +0 -1
- package/dist/client/assets/alert-dialog-ygFmYcOa.js +0 -7
- package/dist/client/assets/analytics-sections-CveDF2n6.js +0 -1
- package/dist/client/assets/api-keys-BRV_KE0D.js +0 -1
- package/dist/client/assets/api-keys-CbBz_rxa.js +0 -1
- package/dist/client/assets/app-editor-Cio5Pq66.js +0 -1
- package/dist/client/assets/auth-entry-Dz_b1brR.js +0 -1
- package/dist/client/assets/automation-list-row-C69hu-tr.js +0 -1
- package/dist/client/assets/automation-runs-CefmsDTb.js +0 -1
- package/dist/client/assets/automations-C6R9dV-_.js +0 -1
- package/dist/client/assets/avatar-LfY3dprD.js +0 -1
- package/dist/client/assets/badge-CyDHDRPg.js +0 -1
- package/dist/client/assets/block-document-Di6OpT4O.js +0 -3
- package/dist/client/assets/blocks-tab-states-BjRnBrj4.js +0 -20
- package/dist/client/assets/blog-schema-C2heOfy2.js +0 -1
- package/dist/client/assets/board-analytics-fCGfPXJ7.js +0 -1
- package/dist/client/assets/buckets-j1BXX0Sb.js +0 -1
- package/dist/client/assets/category-editor-D_K2FWTB.js +0 -1
- package/dist/client/assets/checkbox-CaUezNgL.js +0 -1
- package/dist/client/assets/choose-editor-CDMfdVL-.js +0 -1
- package/dist/client/assets/cms-settings-editor-C_3APl39.js +0 -1
- package/dist/client/assets/collection-detail-BXabjop0.js +0 -1
- package/dist/client/assets/collection-display-button-Cdfgosxf.js +0 -1
- package/dist/client/assets/collection-table-wrapper-CWGTaBjx.js +0 -1
- package/dist/client/assets/collection-tabs-yg6VVFu9.js +0 -1
- package/dist/client/assets/combobox-B5xPQiKP.js +0 -1
- package/dist/client/assets/command-KXg0ZuU-.js +0 -1
- package/dist/client/assets/companion-mcps-section-Da_S5Z-R.js +0 -1
- package/dist/client/assets/config-UdFHLZs6.js +0 -1
- package/dist/client/assets/connect-CsG4Vqc-.js +0 -9
- package/dist/client/assets/connect-layout-DE_So4kH.js +0 -1
- package/dist/client/assets/connection-detail-lT3XwVgT.js +0 -1
- package/dist/client/assets/connection-form-helpers-DAFP702a.js +0 -1
- package/dist/client/assets/connections-Chwm450B.js +0 -1
- package/dist/client/assets/content-tab-DYpKep2J.js +0 -22
- package/dist/client/assets/context-Bfj5rpO_.js +0 -1
- package/dist/client/assets/context-shell-CUCiFtf6.js +0 -30
- package/dist/client/assets/discover-BqgmKYIf.js +0 -1
- package/dist/client/assets/editor-classes-BAKuqcj0.js +0 -1
- package/dist/client/assets/empty-state-lzzC-d42.js +0 -1
- package/dist/client/assets/file-explorer-CcePNy3q.js +0 -2
- package/dist/client/assets/file-preview-DFkUyLsr.js +0 -1
- package/dist/client/assets/file-share-button-CQ2Uf2PU.js +0 -3
- package/dist/client/assets/flat-project-B3HLdqxT.js +0 -1
- package/dist/client/assets/folder-icon-DaIPH_Nm.js +0 -2
- package/dist/client/assets/general-D2dbnN_J.js +0 -1
- package/dist/client/assets/get-initials-D-f_fDFw.js +0 -1
- package/dist/client/assets/home-CvMudobI.js +0 -1
- package/dist/client/assets/index-BdR6LNyh.js +0 -1
- package/dist/client/assets/index-ChfkzyhC.js +0 -81
- package/dist/client/assets/index-DAYXa7zL.js +0 -2
- package/dist/client/assets/index-DZLfyA8t.js +0 -4
- package/dist/client/assets/index-JvhyBpMR.js +0 -4
- package/dist/client/assets/index-mh7U_AKI.js +0 -1
- package/dist/client/assets/index-pFm7t22i.css +0 -1
- package/dist/client/assets/index-wkvFsHpn.js +0 -5
- package/dist/client/assets/infra-billing-BeLfFWAD.js +0 -1
- package/dist/client/assets/input-Brhdhig1.js +0 -17
- package/dist/client/assets/input-Bu2Qzwzh.js +0 -1
- package/dist/client/assets/library-DTps1LzJ.js +0 -1
- package/dist/client/assets/library-tab-C2aU1qmT.js +0 -168
- package/dist/client/assets/members-DNkbLBWU.js +0 -1
- package/dist/client/assets/mini-report-page-aWQFmVFz.js +0 -1
- package/dist/client/assets/mock-board-DWNU2n2-.js +0 -1
- package/dist/client/assets/monitoring-Cvbt9Za_.js +0 -1
- package/dist/client/assets/monitoring-stats-row-DyiPtUKv.js +0 -1
- package/dist/client/assets/multi-select-CfDYfsZ-.js +0 -1
- package/dist/client/assets/onboarding-kCa3Jkpy.js +0 -1
- package/dist/client/assets/openai-conversation-CLgg2Qod.js +0 -3
- package/dist/client/assets/organization-choice-BpI-_S8p.js +0 -1
- package/dist/client/assets/pair-ByV0vAAs.js +0 -48
- package/dist/client/assets/plan-BtuC_TCe.js +0 -1
- package/dist/client/assets/popover-CjfUWaC0.js +0 -1
- package/dist/client/assets/post-calendar-Bk6dx49G.js +0 -1
- package/dist/client/assets/post-editor-BUlsS3rc.js +0 -2
- package/dist/client/assets/preview-tab-DsWFy6nY.js +0 -551
- package/dist/client/assets/product-picker-dialog-ERcYwJUp.js +0 -1
- package/dist/client/assets/profile-BxA_I2_7.js +0 -1
- package/dist/client/assets/project-app-view-D-3K5nUJ.js +0 -1
- package/dist/client/assets/project-apps-D50B5nYg.js +0 -1
- package/dist/client/assets/project-feed-zQus1O7R.js +0 -1
- package/dist/client/assets/project-icon-ChTT5o1a.js +0 -1
- package/dist/client/assets/project-reports-B3JoeeH6.js +0 -1
- package/dist/client/assets/project-tasks-UglBCJxC.js +0 -1
- package/dist/client/assets/projects-CKCvSpxg.js +0 -1
- package/dist/client/assets/record-editor-C4fMBCCz.js +0 -1
- package/dist/client/assets/redirect-editor-vQorNOA7.js +0 -1
- package/dist/client/assets/reports-BTilnVW5.js +0 -1
- package/dist/client/assets/reports-onboarding-PNNHl11L.js +0 -1
- package/dist/client/assets/reports-tab-DA_8UL9O.js +0 -2
- package/dist/client/assets/repositories-BNK48Uq5.js +0 -1
- package/dist/client/assets/repositories-BpTNBXai.js +0 -1
- package/dist/client/assets/review-settings-JhWFefH3.js +0 -1
- package/dist/client/assets/roles-CT2aKtzc.js +0 -1
- package/dist/client/assets/route-C6Ybfjjx.js +0 -1
- package/dist/client/assets/route-CQTsC5_0.js +0 -1
- package/dist/client/assets/route-K-xr6t6Y.js +0 -1
- package/dist/client/assets/search-input-Br9i_Ft5.js +0 -1
- package/dist/client/assets/search-toggle-Dj92h38-.js +0 -1
- package/dist/client/assets/secrets-D4GRsD5W.js +0 -1
- package/dist/client/assets/sections-editor-C_iMM594.js +0 -4
- package/dist/client/assets/select-ChqJI0MI.js +0 -1
- package/dist/client/assets/select-model-CzvrFpf6.js +0 -1
- package/dist/client/assets/seo-editor-DUiWy8Gm.js +0 -1
- package/dist/client/assets/settings-tab-C1pr-l9r.js +0 -1
- package/dist/client/assets/sheet-CzJFx6b-.js +0 -1
- package/dist/client/assets/shell-layout-DKGS0yWx.js +0 -1
- package/dist/client/assets/site-editor-Bl1xnqtg.js +0 -1
- package/dist/client/assets/skills-DEb_PUzK.js +0 -1
- package/dist/client/assets/slider-BBmtNfbs.js +0 -1
- package/dist/client/assets/switch-CJc_fIEE.js +0 -1
- package/dist/client/assets/synced-repos-GT8waIWj.js +0 -1
- package/dist/client/assets/tabs-D0oiuUhC.js +0 -1
- package/dist/client/assets/task-assignee-avatar-BfUNDI59.js +0 -1
- package/dist/client/assets/taskboard-analytics-DG4Zz1H_.js +0 -1
- package/dist/client/assets/tasks-Cf4EZXG5.js +0 -4
- package/dist/client/assets/tasks-D-91kNhg.js +0 -1
- package/dist/client/assets/textarea-CWgoXXnV.js +0 -1
- package/dist/client/assets/thread-analytics-BjWUFe-q.js +0 -1
- package/dist/client/assets/thread-route-B_SMytnm.js +0 -1
- package/dist/client/assets/thread-sheet-body-OnJZloqZ.js +0 -1
- package/dist/client/assets/toggle-group-BWQRN38D.js +0 -1
- package/dist/client/assets/use-connect-companion-DJ8vj1p7.js +0 -1
- package/dist/client/assets/use-delete-connection-DbRA1FXb.js +0 -1
- package/dist/client/assets/use-ensure-project-folder-BvOs3JKp.js +0 -1
- package/dist/client/assets/use-mcp-client-CAdgJ_QT.js +0 -10
- package/dist/client/assets/use-panel-navigate-BwwjvhNB.js +0 -1
- package/dist/client/assets/use-recent-apps-B_BFFpi_.js +0 -1
- package/dist/client/assets/use-section-preview-base-DAksxTnD.js +0 -1
- package/dist/client/assets/use-sidebar-collapsed-Dv10z2iu.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bo5dbMM_.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CcFcpWuM.js +0 -1
- package/dist/client/assets/users-DWxowv8y.js +0 -1
- package/dist/client/assets/variant-calendar-BQESjgmt.js +0 -1
- package/dist/client/assets/view-mode-toggle-Bgum-rnB.js +0 -1
package/dist/client/assets/{use-main-schema-v8-Jzc_7tOC.js → use-main-schema-v8-Cys0il1A.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as d,o as f,m as h,
|
|
1
|
+
import{a2 as d,o as f,m as h,e0 as p,K as y,c as S}from"./index-DwUSgMrk.js";import{o as u,l as _,H as I}from"./thread-intent-DYNUY6FR.js";import{e as l,a as m}from"./repository-binding-Ctv5jACU.js";function E(e){if(typeof e!="object"||e===null)return!1;const r=e.repository?.url;return typeof r=="string"&&r.length>0}function j(e){return l(e).status==="attached"}function P(e){const t=l(e).status;return t==="attached"||t==="detached"}const V=5e3,g="main",C={"404 no_repository":!1,"403 feature_not_in_plan":!1,"409 site_not_owned":!0,[`503 ${I}`]:!0};async function T(e,t,r=(s,n)=>fetch(s,n)){const s=await r(`/api/${e}/decofile/${encodeURIComponent(t)}/${g}/rpc`,{method:"POST",cache:"no-store",headers:{"content-type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"schema.get"})}),n=await s.json().catch(()=>null);if(!s.ok){const o=C[`${s.status} ${n?.code}`];if(o!==void 0)return{isV8:o,schema:null,version:null};throw new Error(`main's schema: HTTP ${s.status}`)}if(!n?.result||!("schema"in n.result))throw new Error("main's schema: unexpected answer");const{schema:a,version:c}=n.result;return{isV8:_(a),schema:a??null,version:typeof c=="string"?c:null}}function N(e){return!e.hasProject||!e.asks?"v7":e.data!==void 0?e.data?"v8":"v7":e.isError?e.marked?"error":"v7":"loading"}function H(e){const{org:t}=d(),r=f(),s=m(e),n=s?.id??"",a=u(s?.metadata),c=!!t.id&&!!t.slug&&!!n&&E(s?.metadata),o=h({queryKey:y.mainSchemaV8(t.slug,n),queryFn:async()=>{const i=await T(t.slug,n);return i.isV8!==a&&p(r,t.id,"VIRTUAL_MCP"),i},enabled:c,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY,retry:2,refetchInterval:v});return N({asks:c,hasProject:!!s,data:o.data?.isV8,isError:o.isError||o.errorUpdateCount>0,marked:a})}function v(e){return e.state.status==="error"?V:!1}function M(e){const t=S.c(2),r=m(e)?.metadata;let s;return t[0]!==r?(s=u(r),t[0]=r,t[1]=s):s=t[1],s}export{E as a,P as b,M as c,j as d,H as u};
|
package/dist/client/assets/{use-mcp-auth-status-BKawZyTw.js → use-mcp-auth-status-mE5X1aBV.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,b as S,a3 as k,
|
|
1
|
+
import{c as b,b as S,a3 as k,aX as N,j as o,a2 as $,K as A,R as L}from"./index-DwUSgMrk.js";import{B as g}from"./badge-0pHsypn4.js";import{c as v,T,a as I,b as _}from"./tooltip-7xQKXZXx.js";import{g as H}from"./types-DmsgcF8m.js";import{s as P}from"./Image01-Ffg_Ow_R.js";import{u as R,aS as U}from"./agent-icon-sWZwj0Es.js";import{i as w}from"./mcp-oauth-DQ15yEaL.js";const O=[{key:"readOnlyHint",labelKey:"tools.toolsList.readOnly",Icon:P,variant:"secondary"},{key:"destructiveHint",labelKey:"tools.toolsList.destructive",Icon:k,variant:"destructive"},{key:"idempotentHint",labelKey:"tools.toolsList.idempotent",Icon:N,variant:"secondary"},{key:"openWorldHint",labelKey:"tools.toolsList.openWorld",Icon:R,variant:"outline"}];function Q(y){const e=b.c(22),{annotations:c,_meta:r}=y,t=S();let l;e[0]!==r?(l=H(r),e[0]=r,e[1]=l):l=e[1];const i=!!l;let s,n,a,u,d;if(e[2]!==c||e[3]!==i||e[4]!==t){d=Symbol.for("react.early_return_sentinel");e:{const x=c?O.filter(h=>c[h.key]===!0):[];if(x.length===0&&!i){d=null;break e}s=_,n="flex gap-1 flex-nowrap",e[10]!==i||e[11]!==t?(a=i&&o.jsxs(v,{children:[o.jsx(T,{asChild:!0,children:o.jsx(g,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(U,{})})}),o.jsx(I,{children:t("tools.toolsList.interactive")})]}),e[10]=i,e[11]=t,e[12]=a):a=e[12];let f;e[13]!==t?(f=h=>{const{labelKey:j,Icon:C,variant:K}=h;return o.jsxs(v,{children:[o.jsx(T,{asChild:!0,children:o.jsx(g,{asChild:!0,variant:K,className:"size-6 p-1",children:o.jsx(C,{})})}),o.jsx(I,{children:t(j)})]},j)},e[13]=t,e[14]=f):f=e[14],u=x.map(f)}e[2]=c,e[3]=i,e[4]=t,e[5]=s,e[6]=n,e[7]=a,e[8]=u,e[9]=d}else s=e[5],n=e[6],a=e[7],u=e[8],d=e[9];if(d!==Symbol.for("react.early_return_sentinel"))return d;let m;e[15]!==n||e[16]!==a||e[17]!==u?(m=o.jsxs("div",{className:n,children:[a,u]}),e[15]=n,e[16]=a,e[17]=u,e[18]=m):m=e[18];let p;return e[19]!==s||e[20]!==m?(p=o.jsx(s,{children:m}),e[19]=s,e[20]=m,e[21]=p):p=e[21],p}function X(y){const e=b.c(11),{connectionId:c}=y,{org:r}=$();let t,l,i;e[0]!==c||e[1]!==r.slug?(t=new URL(`/api/${r.slug}/mcp/${c}`,window.location.origin),i=L,l=A.isMCPAuthenticated(t.href,null),e[0]=c,e[1]=r.slug,e[2]=t,e[3]=l,e[4]=i):(t=e[2],l=e[3],i=e[4]);let s;e[5]!==t||e[6]!==r.id?(s=()=>w({url:t.href,token:null,orgId:r.id}),e[5]=t,e[6]=r.id,e[7]=s):s=e[7];let n;e[8]!==l||e[9]!==s?(n={queryKey:l,queryFn:s},e[8]=l,e[9]=s,e[10]=n):n=e[10];const{data:a}=i(n);return a}export{Q as T,X as u};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{ce,cf as le,cg as ue,ch as de,ci as he,cj as m,ck as g,cl as fe,cm as pe,cn as me,co as M,cp as _e,cq as F,cr as we,cs as q,ct as ge,cu as D,cv as Te,cw as ye,cx as ke,cy as z,cz as ve,cA as Se,cB as Ce,cC as ee,cD as be,cE as Re,cF as Ie,bl as Ee,cG as qe,cH as Pe,cI as A,cJ as $e,cK as Me,cL as Ae,cM as He,cN as Oe,cO as xe,cP as Ue,cQ as Ne,cR as je,cS as Fe,cT as De,cU as Le,cV as Ve,bc as V,cW as Qe,cX as U,K as te,J as ze,c as se,R as Je,m as We}from"./index-DwUSgMrk.js";import{U as P,b as H,c as J}from"./auth-CR47t1GM.js";function x(a){return!!a._zod}function b(a,e){return x(a)?ce(a,e):a.safeParse(e)}function re(a){if(!a)return;let e;if(x(a)?e=a._zod?.def?.shape:e=a.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function Ke(a){if(x(a)){const o=a._zod?.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}const t=a._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}const s=a.value;if(s!==void 0)return s}function R(a){return a==="completed"||a==="failed"||a==="cancelled"}function W(a){const t=re(a)?.method;if(!t)throw new Error("Schema is missing a method literal");const s=Ke(t);if(typeof s!="string")throw new Error("Schema method literal must be a string");return s}function K(a,e){const t=b(a,e);if(!t.success)throw t.error;return t.data}const Ge=6e4;class Be{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(le,t=>{this._oncancel(t)}),this.setNotificationHandler(ue,t=>{this._onprogress(t)}),this.setRequestHandler(de,t=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(he,async(t,s)=>{const r=await this._taskStore.getTask(t.params.taskId,s.sessionId);if(!r)throw new m(g.InvalidParams,"Failed to retrieve task: Task not found");return{...r}}),this.setRequestHandler(fe,async(t,s)=>{const r=async()=>{const o=t.params.taskId;if(this._taskMessageQueue){let i;for(;i=await this._taskMessageQueue.dequeue(o,s.sessionId);){if(i.type==="response"||i.type==="error"){const u=i.message,p=u.id,l=this._requestResolvers.get(p);if(l)if(this._requestResolvers.delete(p),i.type==="response")l(u);else{const h=u,f=new m(h.error.code,h.error.message,h.error.data);l(f)}else{const h=i.type==="response"?"Response":"Error";this._onerror(new Error(`${h} handler missing for request ${p}`))}continue}await this._transport?.send(i.message,{relatedRequestId:s.requestId})}}const n=await this._taskStore.getTask(o,s.sessionId);if(!n)throw new m(g.InvalidParams,`Task not found: ${o}`);if(!R(n.status))return await this._waitForTaskUpdate(o,s.signal),await r();if(R(n.status)){const i=await this._taskStore.getTaskResult(o,s.sessionId);return this._clearTaskQueue(o),{...i,_meta:{...i._meta,[q]:{taskId:o}}}}return await r()};return await r()}),this.setRequestHandler(pe,async(t,s)=>{try{const{tasks:r,nextCursor:o}=await this._taskStore.listTasks(t.params?.cursor,s.sessionId);return{tasks:r,nextCursor:o,_meta:{}}}catch(r){throw new m(g.InvalidParams,`Failed to list tasks: ${r instanceof Error?r.message:String(r)}`)}}),this.setRequestHandler(me,async(t,s)=>{try{const r=await this._taskStore.getTask(t.params.taskId,s.sessionId);if(!r)throw new m(g.InvalidParams,`Task not found: ${t.params.taskId}`);if(R(r.status))throw new m(g.InvalidParams,`Cannot cancel task in terminal status: ${r.status}`);await this._taskStore.updateTaskStatus(t.params.taskId,"cancelled","Client cancelled task execution.",s.sessionId),this._clearTaskQueue(t.params.taskId);const o=await this._taskStore.getTask(t.params.taskId,s.sessionId);if(!o)throw new m(g.InvalidParams,`Task not found after cancellation: ${t.params.taskId}`);return{_meta:{},...o}}catch(r){throw r instanceof m?r:new m(g.InvalidRequest,`Failed to cancel task: ${r instanceof Error?r.message:String(r)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,s,r,o=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:s,resetTimeoutOnProgress:o,onTimeout:r})}_resetTimeout(e){const t=this._timeoutInfo.get(e);if(!t)return!1;const s=Date.now()-t.startTime;if(t.maxTotalTimeout&&s>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),m.fromError(g.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:s});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){const t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;const t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};const s=this.transport?.onerror;this._transport.onerror=o=>{s?.(o),this._onerror(o)};const r=this._transport?.onmessage;this._transport.onmessage=(o,n)=>{r?.(o,n),M(o)||_e(o)?this._onresponse(o):F(o)?this._onrequest(o,n):we(o)?this._onnotification(o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(o)}`))},await this._transport.start()}_onclose(){const e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const s of this._timeoutInfo.values())clearTimeout(s.timeoutId);this._timeoutInfo.clear();for(const s of this._requestHandlerAbortControllers.values())s.abort();this._requestHandlerAbortControllers.clear();const t=m.fromError(g.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const s of e.values())s(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){const t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(s=>this._onerror(new Error(`Uncaught error in notification handler: ${s}`)))}_onrequest(e,t){const s=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,o=e.params?._meta?.[q]?.taskId;if(s===void 0){const l={jsonrpc:"2.0",id:e.id,error:{code:g.MethodNotFound,message:"Method not found"}};o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:l,timestamp:Date.now()},r?.sessionId).catch(h=>this._onerror(new Error(`Failed to enqueue error response: ${h}`))):r?.send(l).catch(h=>this._onerror(new Error(`Failed to send an error response: ${h}`)));return}const n=new AbortController;this._requestHandlerAbortControllers.set(e.id,n);const i=ge(e.params)?e.params.task:void 0,u=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,p={signal:n.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async l=>{if(n.signal.aborted)return;const h={relatedRequestId:e.id};o&&(h.relatedTask={taskId:o}),await this.notification(l,h)},sendRequest:async(l,h,f)=>{if(n.signal.aborted)throw new m(g.ConnectionClosed,"Request was cancelled");const w={...f,relatedRequestId:e.id};o&&!w.relatedTask&&(w.relatedTask={taskId:o});const y=w.relatedTask?.taskId??o;return y&&u&&await u.updateTaskStatus(y,"input_required"),await this.request(l,h,w)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:o,taskStore:u,taskRequestedTtl:i?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{i&&this.assertTaskHandlerCapability(e.method)}).then(()=>s(e,p)).then(async l=>{if(n.signal.aborted)return;const h={result:l,jsonrpc:"2.0",id:e.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:h,timestamp:Date.now()},r?.sessionId):await r?.send(h)},async l=>{if(n.signal.aborted)return;const h={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(l.code)?l.code:g.InternalError,message:l.message??"Internal error",...l.data!==void 0&&{data:l.data}}};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"error",message:h,timestamp:Date.now()},r?.sessionId):await r?.send(h)}).catch(l=>this._onerror(new Error(`Failed to send response: ${l}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===n&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){const{progressToken:t,...s}=e.params,r=Number(t),o=this._progressHandlers.get(r);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}const n=this._responseHandlers.get(r),i=this._timeoutInfo.get(r);if(i&&n&&i.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(u){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),n(u);return}o(s)}_onresponse(e){const t=Number(e.id),s=this._requestResolvers.get(t);if(s){if(this._requestResolvers.delete(t),M(e))s(e);else{const n=new m(e.error.code,e.error.message,e.error.data);s(n)}return}const r=this._responseHandlers.get(t);if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let o=!1;if(M(e)&&e.result&&typeof e.result=="object"){const n=e.result;if(n.task&&typeof n.task=="object"){const i=n.task;typeof i.taskId=="string"&&(o=!0,this._taskProgressTokens.set(i.taskId,t))}}if(o||this._progressHandlers.delete(t),M(e))r(e);else{const n=m.fromError(e.error.code,e.error.message,e.error.data);r(n)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,s){const{task:r}=s??{};if(!r){try{yield{type:"result",result:await this.request(e,t,s)}}catch(n){yield{type:"error",error:n instanceof m?n:new m(g.InternalError,String(n))}}return}let o;try{const n=await this.request(e,D,s);if(n.task)o=n.task.taskId,yield{type:"taskCreated",task:n.task};else throw new m(g.InternalError,"Task creation did not return a task");for(;;){const i=await this.getTask({taskId:o},s);if(yield{type:"taskStatus",task:i},R(i.status)){i.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:o},t,s)}:i.status==="failed"?yield{type:"error",error:new m(g.InternalError,`Task ${o} failed`)}:i.status==="cancelled"&&(yield{type:"error",error:new m(g.InternalError,`Task ${o} was cancelled`)});return}if(i.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:o},t,s)};return}const u=i.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(p=>setTimeout(p,u)),s?.signal?.throwIfAborted()}}catch(n){yield{type:"error",error:n instanceof m?n:new m(g.InternalError,String(n))}}}request(e,t,s){const{relatedRequestId:r,resumptionToken:o,onresumptiontoken:n,task:i,relatedTask:u}=s??{};return new Promise((p,l)=>{const h=c=>{l(c)};if(!this._transport){h(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),i&&this.assertTaskCapability(e.method)}catch(c){h(c);return}s?.signal?.throwIfAborted();const f=this._requestMessageId++,w={...e,jsonrpc:"2.0",id:f};s?.onprogress&&(this._progressHandlers.set(f,s.onprogress),w.params={...e.params,_meta:{...e.params?._meta||{},progressToken:f}}),i&&(w.params={...w.params,task:i}),u&&(w.params={...w.params,_meta:{...w.params?._meta||{},[q]:u}});const y=c=>{this._responseHandlers.delete(f),this._progressHandlers.delete(f),this._cleanupTimeout(f),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:f,reason:String(c)}},{relatedRequestId:r,resumptionToken:o,onresumptiontoken:n}).catch(v=>this._onerror(new Error(`Failed to send cancellation: ${v}`)));const _=c instanceof m?c:new m(g.RequestTimeout,String(c));l(_)};this._responseHandlers.set(f,c=>{if(!s?.signal?.aborted){if(c instanceof Error)return l(c);try{const _=b(t,c.result);_.success?p(_.data):l(_.error)}catch(_){l(_)}}}),s?.signal?.addEventListener("abort",()=>{y(s?.signal?.reason)});const T=s?.timeout??Ge,k=()=>y(m.fromError(g.RequestTimeout,"Request timed out",{timeout:T}));this._setupTimeout(f,T,s?.maxTotalTimeout,k,s?.resetTimeoutOnProgress??!1);const d=u?.taskId;if(d){const c=_=>{const v=this._responseHandlers.get(f);v?v(_):this._onerror(new Error(`Response handler missing for side-channeled request ${f}`))};this._requestResolvers.set(f,c),this._enqueueTaskMessage(d,{type:"request",message:w,timestamp:Date.now()}).catch(_=>{this._cleanupTimeout(f),l(_)})}else this._transport.send(w,{relatedRequestId:r,resumptionToken:o,onresumptiontoken:n}).catch(c=>{this._cleanupTimeout(f),l(c)})})}async getTask(e,t){return this.request({method:"tasks/get",params:e},Te,t)}async getTaskResult(e,t,s){return this.request({method:"tasks/result",params:e},t,s)}async listTasks(e,t){return this.request({method:"tasks/list",params:e},ye,t)}async cancelTask(e,t){return this.request({method:"tasks/cancel",params:e},ke,t)}async notification(e,t){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);const s=t?.relatedTask?.taskId;if(s){const i={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[q]:t.relatedTask}}};await this._enqueueTaskMessage(s,{type:"notification",message:i,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let i={...e,jsonrpc:"2.0"};t?.relatedTask&&(i={...i,params:{...i.params,_meta:{...i.params?._meta||{},[q]:t.relatedTask}}}),this._transport?.send(i,t).catch(u=>this._onerror(u))});return}let n={...e,jsonrpc:"2.0"};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[q]:t.relatedTask}}}),await this._transport.send(n,t)}setRequestHandler(e,t){const s=W(e);this.assertRequestHandlerCapability(s),this._requestHandlers.set(s,(r,o)=>{const n=K(e,r);return Promise.resolve(t(n,o))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){const s=W(e);this._notificationHandlers.set(s,r=>{const o=K(e,r);return Promise.resolve(t(o))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){const t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,s){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,s,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){const s=await this._taskMessageQueue.dequeueAll(e,t);for(const r of s)if(r.type==="request"&&F(r.message)){const o=r.message.id,n=this._requestResolvers.get(o);n?(n(new m(g.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(o)):this._onerror(new Error(`Resolver missing for request ${o} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let s=this._options?.defaultTaskPollInterval??1e3;try{const r=await this._taskStore?.getTask(e);r?.pollInterval&&(s=r.pollInterval)}catch{}return new Promise((r,o)=>{if(t.aborted){o(new m(g.InvalidRequest,"Request cancelled"));return}const n=setTimeout(r,s);t.addEventListener("abort",()=>{clearTimeout(n),o(new m(g.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,t){const s=this._taskStore;if(!s)throw new Error("No task store configured");return{createTask:async r=>{if(!e)throw new Error("No request provided");return await s.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async r=>{const o=await s.getTask(r,t);if(!o)throw new m(g.InvalidParams,"Failed to retrieve task: Task not found");return o},storeTaskResult:async(r,o,n)=>{await s.storeTaskResult(r,o,n,t);const i=await s.getTask(r,t);if(i){const u=z.parse({method:"notifications/tasks/status",params:i});await this.notification(u),R(i.status)&&this._cleanupTaskProgressHandler(r)}},getTaskResult:r=>s.getTaskResult(r,t),updateTaskStatus:async(r,o,n)=>{const i=await s.getTask(r,t);if(!i)throw new m(g.InvalidParams,`Task "${r}" not found - it may have been cleaned up`);if(R(i.status))throw new m(g.InvalidParams,`Cannot update task "${r}" from terminal status "${i.status}" to "${o}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await s.updateTaskStatus(r,o,n,t);const u=await s.getTask(r,t);if(u){const p=z.parse({method:"notifications/tasks/status",params:u});await this.notification(p),R(u.status)&&this._cleanupTaskProgressHandler(r)}},listTasks:r=>s.listTasks(r,t)}}}function G(a){return a!==null&&typeof a=="object"&&!Array.isArray(a)}function Ze(a,e){const t={...a};for(const s in e){const r=s,o=e[r];if(o===void 0)continue;const n=t[r];G(n)&&G(o)?t[r]={...n,...o}:t[r]=o}return t}var Ye=Se();const Xe=ve(Ye);function et(){const a=new Xe({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return Ce(a),a}class tt{constructor(e){this._ajv=e??et()}getValidator(e){const t="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return s=>t(s)?{valid:!0,data:s,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(t.errors)}}}class st{constructor(e){this._client=e}async*callToolStream(e,t=ee,s){const r=this._client,o={...s,task:s?.task??(r.isToolTask(e.name)?{}:void 0)},n=r.requestStream({method:"tools/call",params:e},t,o),i=r.getToolOutputValidator(e.name);for await(const u of n){if(u.type==="result"&&i){const p=u.result;if(!p.structuredContent&&!p.isError){yield{type:"error",error:new m(g.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`)};return}if(p.structuredContent)try{const l=i(p.structuredContent);if(!l.valid){yield{type:"error",error:new m(g.InvalidParams,`Structured content does not match the tool's output schema: ${l.errorMessage}`)};return}}catch(l){if(l instanceof m){yield{type:"error",error:l};return}yield{type:"error",error:new m(g.InvalidParams,`Failed to validate structured content: ${l instanceof Error?l.message:String(l)}`)};return}}yield u}}async getTask(e,t){return this._client.getTask({taskId:e},t)}async getTaskResult(e,t,s){return this._client.getTaskResult({taskId:e},t,s)}async listTasks(e,t){return this._client.listTasks(e?{cursor:e}:void 0,t)}async cancelTask(e,t){return this._client.cancelTask({taskId:e},t)}requestStream(e,t,s){return this._client.requestStream(e,t,s)}}function rt(a,e,t){if(!a)throw new Error(`${t} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!a.tools?.call)throw new Error(`${t} does not support task creation for tools/call (required for ${e})`);break}}function ot(a,e,t){if(!a)throw new Error(`${t} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!a.sampling?.createMessage)throw new Error(`${t} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!a.elicitation?.create)throw new Error(`${t} does not support task creation for elicitation/create (required for ${e})`);break}}function O(a,e){if(!(!a||e===null||typeof e!="object")){if(a.type==="object"&&a.properties&&typeof a.properties=="object"){const t=e,s=a.properties;for(const r of Object.keys(s)){const o=s[r];t[r]===void 0&&Object.prototype.hasOwnProperty.call(o,"default")&&(t[r]=o.default),t[r]!==void 0&&O(o,t[r])}}if(Array.isArray(a.anyOf))for(const t of a.anyOf)typeof t!="boolean"&&O(t,e);if(Array.isArray(a.oneOf))for(const t of a.oneOf)typeof t!="boolean"&&O(t,e)}}function at(a){if(!a)return{supportsFormMode:!1,supportsUrlMode:!1};const e=a.form!==void 0,t=a.url!==void 0;return{supportsFormMode:e||!e&&!t,supportsUrlMode:t}}let nt=class extends Be{constructor(e,t){super(t),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=t?.capabilities??{},this._jsonSchemaValidator=t?.jsonSchemaValidator??new tt,t?.listChanged&&(this._pendingListChangedConfig=t.listChanged)}_setupListChangedHandlers(e){e.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",be,e.tools,async()=>(await this.listTools()).tools),e.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",Re,e.prompts,async()=>(await this.listPrompts()).prompts),e.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",Ie,e.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new st(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Ze(this._capabilities,e)}setRequestHandler(e,t){const r=re(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let o;if(x(r)){const i=r;o=i._zod?.def?.value??i.value}else{const i=r;o=i._def?.value??i.value}if(typeof o!="string")throw new Error("Schema method literal must be a string");const n=o;if(n==="elicitation/create"){const i=async(u,p)=>{const l=b(je,u);if(!l.success){const c=l.error instanceof Error?l.error.message:String(l.error);throw new m(g.InvalidParams,`Invalid elicitation request: ${c}`)}const{params:h}=l.data;h.mode=h.mode??"form";const{supportsFormMode:f,supportsUrlMode:w}=at(this._capabilities.elicitation);if(h.mode==="form"&&!f)throw new m(g.InvalidParams,"Client does not support form-mode elicitation requests");if(h.mode==="url"&&!w)throw new m(g.InvalidParams,"Client does not support URL-mode elicitation requests");const y=await Promise.resolve(t(u,p));if(h.task){const c=b(D,y);if(!c.success){const _=c.error instanceof Error?c.error.message:String(c.error);throw new m(g.InvalidParams,`Invalid task creation result: ${_}`)}return c.data}const T=b(Fe,y);if(!T.success){const c=T.error instanceof Error?T.error.message:String(T.error);throw new m(g.InvalidParams,`Invalid elicitation result: ${c}`)}const k=T.data,d=h.mode==="form"?h.requestedSchema:void 0;if(h.mode==="form"&&k.action==="accept"&&k.content&&d&&this._capabilities.elicitation?.form?.applyDefaults)try{O(d,k.content)}catch{}return k};return super.setRequestHandler(e,i)}if(n==="sampling/createMessage"){const i=async(u,p)=>{const l=b(De,u);if(!l.success){const k=l.error instanceof Error?l.error.message:String(l.error);throw new m(g.InvalidParams,`Invalid sampling request: ${k}`)}const{params:h}=l.data,f=await Promise.resolve(t(u,p));if(h.task){const k=b(D,f);if(!k.success){const d=k.error instanceof Error?k.error.message:String(k.error);throw new m(g.InvalidParams,`Invalid task creation result: ${d}`)}return k.data}const y=h.tools||h.toolChoice?Le:Ve,T=b(y,f);if(!T.success){const k=T.error instanceof Error?T.error.message:String(T.error);throw new m(g.InvalidParams,`Invalid sampling result: ${k}`)}return T.data};return super.setRequestHandler(e,i)}return super.setRequestHandler(e,t)}assertCapability(e,t){if(!this._serverCapabilities?.[e])throw new Error(`Server does not support ${e} (required for ${t})`)}async connect(e,t){if(await super.connect(e),e.sessionId===void 0)try{const s=await this.request({method:"initialize",params:{protocolVersion:Ee,capabilities:this._capabilities,clientInfo:this._clientInfo}},qe,t);if(s===void 0)throw new Error(`Server sent invalid initialize result: ${s}`);if(!Pe.includes(s.protocolVersion))throw new Error(`Server's protocol version is not supported: ${s.protocolVersion}`);this._serverCapabilities=s.capabilities,this._serverVersion=s.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(s.protocolVersion),this._instructions=s.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(s){throw this.close(),s}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){switch(e){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${e})`);if(e==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${e})`);break}}assertNotificationCapability(e){switch(e){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${e})`);break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${e})`);break}}assertTaskCapability(e){rt(this._serverCapabilities?.tasks?.requests,e,"Server")}assertTaskHandlerCapability(e){this._capabilities&&ot(this._capabilities.tasks?.requests,e,"Client")}async ping(e){return this.request({method:"ping"},A,e)}async complete(e,t){return this.request({method:"completion/complete",params:e},$e,t)}async setLoggingLevel(e,t){return this.request({method:"logging/setLevel",params:{level:e}},A,t)}async getPrompt(e,t){return this.request({method:"prompts/get",params:e},Me,t)}async listPrompts(e,t){return this.request({method:"prompts/list",params:e},Ae,t)}async listResources(e,t){return this.request({method:"resources/list",params:e},He,t)}async listResourceTemplates(e,t){return this.request({method:"resources/templates/list",params:e},Oe,t)}async readResource(e,t){return this.request({method:"resources/read",params:e},xe,t)}async subscribeResource(e,t){return this.request({method:"resources/subscribe",params:e},A,t)}async unsubscribeResource(e,t){return this.request({method:"resources/unsubscribe",params:e},A,t)}async callTool(e,t=ee,s){if(this.isToolTaskRequired(e.name))throw new m(g.InvalidRequest,`Tool "${e.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);const r=await this.request({method:"tools/call",params:e},t,s),o=this.getToolOutputValidator(e.name);if(o){if(!r.structuredContent&&!r.isError)throw new m(g.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(r.structuredContent)try{const n=o(r.structuredContent);if(!n.valid)throw new m(g.InvalidParams,`Structured content does not match the tool's output schema: ${n.errorMessage}`)}catch(n){throw n instanceof m?n:new m(g.InvalidParams,`Failed to validate structured content: ${n instanceof Error?n.message:String(n)}`)}}return r}isToolTask(e){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(e):!1}isToolTaskRequired(e){return this._cachedRequiredTaskTools.has(e)}cacheToolMetadata(e){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(const t of e){if(t.outputSchema){const r=this._jsonSchemaValidator.getValidator(t.outputSchema);this._cachedToolOutputValidators.set(t.name,r)}const s=t.execution?.taskSupport;(s==="required"||s==="optional")&&this._cachedKnownTaskTools.add(t.name),s==="required"&&this._cachedRequiredTaskTools.add(t.name)}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,t){const s=await this.request({method:"tools/list",params:e},Ue,t);return this.cacheToolMetadata(s.tools),s}_setupListChangedHandler(e,t,s,r){const o=Ne.safeParse(s);if(!o.success)throw new Error(`Invalid ${e} listChanged options: ${o.error.message}`);if(typeof s.onChanged!="function")throw new Error(`Invalid ${e} listChanged options: onChanged must be a function`);const{autoRefresh:n,debounceMs:i}=o.data,{onChanged:u}=s,p=async()=>{if(!n){u(null,null);return}try{const h=await r();u(null,h)}catch(h){const f=h instanceof Error?h:new Error(String(h));u(f,null)}},l=()=>{if(i){const h=this._listChangedDebounceTimers.get(e);h&&clearTimeout(h);const f=setTimeout(p,i);this._listChangedDebounceTimers.set(e,f)}else p()};this.setNotificationHandler(t,l)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};const N=a=>[{type:"text",text:a}];function it(a){const e=V(a,typeof window<"u"?window.location.origin:void 0);if(!e)throw new Error("RestSelfClient requires either studioUrl or a browser environment.");const t={"Content-Type":"application/json",Accept:"application/json",...a.token?{Authorization:`Bearer ${a.token}`}:{}},s=u=>new URL(`/api/${encodeURIComponent(a.orgSlug)}${u}`,e).href,r=async u=>{let p;try{p=await fetch(s(`/tools/${encodeURIComponent(u.name)}`),{method:"POST",headers:t,credentials:"include",body:JSON.stringify(u.arguments??{})})}catch(h){const f=h instanceof Error?h.message:"Network error";return{content:N(f),isError:!0}}if(!p.ok){let h=`${u.name} failed (${p.status})`;try{const f=await p.json();f?.error&&(h=f.error)}catch{}return{content:N(h),isError:!0}}const l=await p.json().catch(()=>({}));return{content:N(typeof l=="string"?l:JSON.stringify(l)),structuredContent:l}},o=async()=>{const u=await fetch(s("/tools"),{method:"GET",headers:t,credentials:"include"});return u.ok?await u.json():{tools:[]}},n=u=>()=>Promise.reject(new Error(`RestSelfClient: ${u} is not supported over REST for the self connection`));return{callTool:r,listTools:o,listPrompts:n("listPrompts"),getPrompt:n("getPrompt"),listResources:n("listResources"),readResource:n("readResource"),listResourceTemplates:n("listResourceTemplates"),close:()=>Promise.resolve(),toJSON:()=>a.toJSONString}}function L(a){return a?a instanceof Headers?Object.fromEntries(a.entries()):Array.isArray(a)?Object.fromEntries(a):{...a}:{}}function ct(a=fetch,e){return e?async(t,s)=>{const r={...e,...s,headers:s?.headers?{...L(e.headers),...L(s.headers)}:e.headers};return a(t,r)}:a}class B extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}const Z=10,lt=13,I=32;function j(a){}function ut(a){if(typeof a=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:e=j,onError:t=j,onRetry:s=j,onComment:r}=a,o=[];let n=!0,i,u="",p=0,l;function h(d){if(n&&(n=!1,d.charCodeAt(0)===239&&d.charCodeAt(1)===187&&d.charCodeAt(2)===191&&(d=d.slice(3))),o.length===0){const v=f(d);v!==""&&o.push(v);return}if(d.indexOf(`
|
|
2
|
+
`)===-1&&d.indexOf("\r")===-1){o.push(d);return}o.push(d);const c=o.join("");o.length=0;const _=f(c);_!==""&&o.push(_)}function f(d){let c=0;if(d.indexOf("\r")===-1){let _=d.indexOf(`
|
|
3
|
+
`,c);for(;_!==-1;){if(c===_){p>0&&e({id:i,event:l,data:u}),i=void 0,u="",p=0,l=void 0,c=_+1,_=d.indexOf(`
|
|
4
|
+
`,c);continue}const v=d.charCodeAt(c);if(Y(d,c,v)){const S=d.charCodeAt(c+5)===I?c+6:c+5,C=d.slice(S,_);if(p===0&&d.charCodeAt(_+1)===Z){e({id:i,event:l,data:C}),i=void 0,u="",l=void 0,c=_+2,_=d.indexOf(`
|
|
5
|
+
`,c);continue}u=p===0?C:`${u}
|
|
6
|
+
${C}`,p++}else X(d,c,v)?l=d.slice(d.charCodeAt(c+6)===I?c+7:c+6,_)||void 0:w(d,c,_);c=_+1,_=d.indexOf(`
|
|
7
|
+
`,c)}return d.slice(c)}for(;c<d.length;){const _=d.indexOf("\r",c),v=d.indexOf(`
|
|
8
|
+
`,c);let S=-1;if(_!==-1&&v!==-1?S=_<v?_:v:_!==-1?_===d.length-1?S=-1:S=_:v!==-1&&(S=v),S===-1)break;w(d,c,S),c=S+1,d.charCodeAt(c-1)===lt&&d.charCodeAt(c)===Z&&c++}return d.slice(c)}function w(d,c,_){if(c===_){T();return}const v=d.charCodeAt(c);if(Y(d,c,v)){const E=d.charCodeAt(c+5)===I?c+6:c+5,Q=d.slice(E,_);u=p===0?Q:`${u}
|
|
9
|
+
${Q}`,p++;return}if(X(d,c,v)){l=d.slice(d.charCodeAt(c+6)===I?c+7:c+6,_)||void 0;return}if(v===105&&d.charCodeAt(c+1)===100&&d.charCodeAt(c+2)===58){const E=d.slice(d.charCodeAt(c+3)===I?c+4:c+3,_);i=E.includes("\0")?void 0:E;return}if(v===58){if(r){const E=d.slice(c,_);r(E.slice(d.charCodeAt(c+1)===I?2:1))}return}const S=d.slice(c,_),C=S.indexOf(":");if(C===-1){y(S,"",S);return}const ae=S.slice(0,C),ne=S.charCodeAt(C+1)===I?2:1,ie=S.slice(C+ne);y(ae,ie,S)}function y(d,c,_){switch(d){case"event":l=c||void 0;break;case"data":u=p===0?c:`${u}
|
|
10
|
+
${c}`,p++;break;case"id":i=c.includes("\0")?void 0:c;break;case"retry":/^\d+$/.test(c)?s(parseInt(c,10)):t(new B(`Invalid \`retry\` value: "${c}"`,{type:"invalid-retry",value:c,line:_}));break;default:t(new B(`Unknown field "${d.length>20?`${d.slice(0,20)}…`:d}"`,{type:"unknown-field",field:d,value:c,line:_}));break}}function T(){p>0&&e({id:i,event:l,data:u}),i=void 0,u="",p=0,l=void 0}function k(d={}){if(d.consume&&o.length>0){const c=o.join("");w(c,0,c.length)}n=!0,i=void 0,u="",p=0,l=void 0,o.length=0}return{feed:h,reset:k}}function Y(a,e,t){return t===100&&a.charCodeAt(e+1)===97&&a.charCodeAt(e+2)===116&&a.charCodeAt(e+3)===97&&a.charCodeAt(e+4)===58}function X(a,e,t){return t===101&&a.charCodeAt(e+1)===118&&a.charCodeAt(e+2)===101&&a.charCodeAt(e+3)===110&&a.charCodeAt(e+4)===116&&a.charCodeAt(e+5)===58}class dt extends TransformStream{constructor({onError:e,onRetry:t,onComment:s}={}){let r;super({start(o){r=ut({onEvent:n=>{o.enqueue(n)},onError(n){e==="terminate"?o.error(n):typeof e=="function"&&e(n)},onRetry:t,onComment:s})},transform(o){r.feed(o)}})}}const ht={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2};class $ extends Error{constructor(e,t){super(`Streamable HTTP error: ${t}`),this.code=e}}let ft=class{constructor(e,t){this._hasCompletedAuthFlow=!1,this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=t?.requestInit,this._authProvider=t?.authProvider,this._fetch=t?.fetch,this._fetchWithInit=ct(t?.fetch,t?.requestInit),this._sessionId=t?.sessionId,this._reconnectionOptions=t?.reconnectionOptions??ht}async _authThenStart(){if(!this._authProvider)throw new P("No auth provider");let e;try{e=await H(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(t){throw this.onerror?.(t),t}if(e!=="AUTHORIZED")throw new P;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){const e={};if(this._authProvider){const s=await this._authProvider.tokens();s&&(e.Authorization=`Bearer ${s.access_token}`)}this._sessionId&&(e["mcp-session-id"]=this._sessionId),this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);const t=L(this._requestInit?.headers);return new Headers({...e,...t})}async _startOrAuthSse(e){const{resumptionToken:t}=e;try{const s=await this._commonHeaders();s.set("Accept","text/event-stream"),t&&s.set("last-event-id",t);const r=await(this._fetch??fetch)(this._url,{method:"GET",headers:s,signal:this._abortController?.signal});if(!r.ok){if(await r.body?.cancel(),r.status===401&&this._authProvider)return await this._authThenStart();if(r.status===405)return;throw new $(r.status,`Failed to open SSE stream: ${r.statusText}`)}this._handleSseStream(r.body,e,!0)}catch(s){throw this.onerror?.(s),s}}_getNextReconnectionDelay(e){if(this._serverRetryMs!==void 0)return this._serverRetryMs;const t=this._reconnectionOptions.initialReconnectionDelay,s=this._reconnectionOptions.reconnectionDelayGrowFactor,r=this._reconnectionOptions.maxReconnectionDelay;return Math.min(t*Math.pow(s,e),r)}_scheduleReconnection(e,t=0){const s=this._reconnectionOptions.maxRetries;if(t>=s){this.onerror?.(new Error(`Maximum reconnection attempts (${s}) exceeded.`));return}const r=this._getNextReconnectionDelay(t);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(e).catch(o=>{this.onerror?.(new Error(`Failed to reconnect SSE stream: ${o instanceof Error?o.message:String(o)}`)),this._scheduleReconnection(e,t+1)})},r)}_handleSseStream(e,t,s){if(!e)return;const{onresumptiontoken:r,replayMessageId:o}=t;let n,i=!1,u=!1;(async()=>{try{const l=e.pipeThrough(new TextDecoderStream).pipeThrough(new dt({onRetry:w=>{this._serverRetryMs=w}})).getReader();for(;;){const{value:w,done:y}=await l.read();if(y)break;if(w.id&&(n=w.id,i=!0,r?.(w.id)),!!w.data&&(!w.event||w.event==="message"))try{const T=U.parse(JSON.parse(w.data));M(T)&&(u=!0,o!==void 0&&(T.id=o)),this.onmessage?.(T)}catch(T){this.onerror?.(T)}}(s||i)&&!u&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:n,onresumptiontoken:r,replayMessageId:o},0)}catch(l){if(this.onerror?.(new Error(`SSE stream disconnected: ${l}`)),(s||i)&&!u&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:n,onresumptiontoken:r,replayMessageId:o},0)}catch(w){this.onerror?.(new Error(`Failed to reconnect: ${w instanceof Error?w.message:String(w)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new P("No auth provider");if(await H(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new P("Failed to authorize")}async close(){this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),this._abortController?.abort(),this.onclose?.()}async send(e,t){try{const{resumptionToken:s,onresumptiontoken:r}=t||{};if(s){this._startOrAuthSse({resumptionToken:s,replayMessageId:F(e)?e.id:void 0}).catch(f=>this.onerror?.(f));return}const o=await this._commonHeaders();o.set("content-type","application/json"),o.set("accept","application/json, text/event-stream");const n={...this._requestInit,method:"POST",headers:o,body:JSON.stringify(e),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._url,n),u=i.headers.get("mcp-session-id");if(u&&(this._sessionId=u),!i.ok){const f=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new $(401,"Server returned 401 after successful authentication");const{resourceMetadataUrl:w,scope:y}=J(i);if(this._resourceMetadataUrl=w,this._scope=y,await H(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new P;return this._hasCompletedAuthFlow=!0,this.send(e)}if(i.status===403&&this._authProvider){const{resourceMetadataUrl:w,scope:y,error:T}=J(i);if(T==="insufficient_scope"){const k=i.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===k)throw new $(403,"Server returned 403 after trying upscoping");if(y&&(this._scope=y),w&&(this._resourceMetadataUrl=w),this._lastUpscopingHeader=k??void 0,await H(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new P;return this.send(e)}}throw new $(i.status,`Error POSTing to endpoint: ${f}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,i.status===202){await i.body?.cancel(),Qe(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(f=>this.onerror?.(f));return}const l=(Array.isArray(e)?e:[e]).filter(f=>"method"in f&&"id"in f&&f.id!==void 0).length>0,h=i.headers.get("content-type");if(l)if(h?.includes("text/event-stream"))this._handleSseStream(i.body,{onresumptiontoken:r},!1);else if(h?.includes("application/json")){const f=await i.json(),w=Array.isArray(f)?f.map(y=>U.parse(y)):[U.parse(f)];for(const y of w)this.onmessage?.(y)}else throw await i.body?.cancel(),new $(-1,`Unexpected content type: ${h}`);else await i.body?.cancel()}catch(s){throw this.onerror?.(s),s}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{const e=await this._commonHeaders(),t={...this._requestInit,method:"DELETE",headers:e,signal:this._abortController?.signal},s=await(this._fetch??fetch)(this._url,t);if(await s.body?.cancel(),!s.ok&&s.status!==405)throw new $(s.status,`Failed to terminate session: ${s.statusText}`);this._sessionId=void 0}catch(e){throw this.onerror?.(e),e}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}async resumeStream(e,t){await this._startOrAuthSse({resumptionToken:e,onresumptiontoken:t?.onresumptiontoken})}};class pt extends ft{constructor(e,t){super(e,t)}send(e,t){const s=mt(e);return s?.type==="emit"?(this.onmessage?.(s.message),Promise.resolve()):s?.type==="suppress"?Promise.resolve():super.send(e,t)}}function mt(a){const e=a;if(!e||typeof e!="object"||!("method"in e))return null;switch(e.method){case"initialize":{const t=e?.params?.protocolVersion;return t?{type:"emit",message:{result:{protocolVersion:t,capabilities:{tools:{},resources:{},prompts:{},tasks:{list:{},cancel:{},requests:{tool:{call:{}}}}},serverInfo:{name:"studio-virtual-mcp",version:"1.0.0"}},jsonrpc:e.jsonrpc??"2.0",id:e.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}const _t={name:"studio-sdk",version:"1.0.0"};function wt(a,e,t){const s=t??(typeof window<"u"?window.location.origin:void 0);if(!s)throw new Error("MCP client requires either studioUrl or a browser environment.");const r=`/api/${encodeURIComponent(e)}`,o=a?`${r}/mcp/${a}`:`${r}/mcp`;return new URL(o,s).href}async function gt({connectionId:a,orgId:e,orgSlug:t,token:s,studioUrl:r,meshUrl:o}){const n=V({studioUrl:r,meshUrl:o}),i=te.mcpClient(e,a??"self",s??"",n??"");if(!a||a===ze)return it({orgSlug:t,token:s,studioUrl:n,toJSONString:`mcp-client:${i.join(":")}`});const u=wt(a,t,n),p=new nt(_t,{capabilities:{tasks:{list:{},cancel:{},requests:{tool:{call:{}}}}}}),l=new pt(new URL(u),{requestInit:{headers:{"Content-Type":"application/json",Accept:"application/json, text/event-stream",...s?{Authorization:`Bearer ${s}`}:{}}}});return await p.connect(l),p.toJSON=()=>`mcp-client:${i.join(":")}`,p}function oe(a){const{connectionId:e,token:t,studioUrl:s,meshUrl:r,orgId:o}=a,n=V({studioUrl:s,meshUrl:r});return{queryKey:te.mcpClient(o,e??"self",t??"",n??""),queryFn:()=>gt(a),staleTime:1/0,gcTime:6e4}}function St(a){const e=se.c(2);let t;e[0]!==a?(t=oe(a),e[0]=a,e[1]=t):t=e[1];const{data:s}=Je(t);return s}function Ct(a,e){const t=se.c(7);let s;t[0]!==e?(s=e===void 0?{}:e,t[0]=e,t[1]=s):s=t[1];const{enabled:r}=s,o=r===void 0?!0:r;let n;t[2]!==a?(n=oe(a),t[2]=a,t[3]=n):n=t[3];let i;t[4]!==o||t[5]!==n?(i={...n,enabled:o},t[4]=o,t[5]=n,t[6]=i):i=t[6];const{data:u}=We(i);return u??null}export{Xe as A,nt as C,Be as P,ft as S,Ct as a,ut as b,gt as c,ct as d,oe as m,L as n,St as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,m as u,
|
|
1
|
+
import{c as l,m as u,cj as m,ck as f,R as y,K as n}from"./index-DwUSgMrk.js";async function c(r){if(!r.getServerCapabilities()?.prompts)return{prompts:[]};try{return await r.listPrompts()}catch(t){if(t instanceof m&&t.code===f.MethodNotFound)return{prompts:[]};throw t}}async function b(r,e,t){if(!r.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await r.getPrompt({name:e,arguments:t??{}})}function g(r){const e=l.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>c(t),e[5]=t,e[6]=o):o=e[6];const p=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==i||e[9]!==o||e[10]!==p?(a={...s,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=s,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],y(a)}function q(r){const e=l.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>c(t),e[5]=t,e[6]=o):o=e[6];const p=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==i||e[9]!==o||e[10]!==p?(a={...s,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=s,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],u(a)}export{q as a,b as g,c as l,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,R as p,m as q,K as m}from"./index-
|
|
1
|
+
import{c as f,R as p,m as q,K as m}from"./index-DwUSgMrk.js";function C(n){const e=f.c(12);let t,s;e[0]!==n?({client:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=m.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let i;e[5]!==t?(i=async()=>await t.listTools(),e[5]=t,e[6]=i):i=e[6];const r=s.staleTime??3e4;let o;return e[7]!==s||e[8]!==l||e[9]!==i||e[10]!==r?(o={...s,queryKey:l,queryFn:i,staleTime:r,retry:!1},e[7]=s,e[8]=l,e[9]=i,e[10]=r,e[11]=o):o=e[11],p(o)}function g(n){const e=f.c(12);let t,s;e[0]!==n?({client:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=m.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let i;e[5]!==t?(i=async()=>await t.listTools(),e[5]=t,e[6]=i):i=e[6];const r=s.staleTime??3e4;let o;return e[7]!==s||e[8]!==l||e[9]!==i||e[10]!==r?(o={...s,queryKey:l,queryFn:i,staleTime:r,retry:!1},e[7]=s,e[8]=l,e[9]=i,e[10]=r,e[11]=o):o=e[11],q(o)}function L(n){const e=f.c(21);let t,s,l,i;e[0]!==n?({client:t,toolName:i,toolArguments:l,...s}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=l,e[4]=i):(t=e[1],s=e[2],l=e[3],i=e[4]);let r,o,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==i){const T=JSON.stringify(l??{});u=p,r=s,o=m.mcpToolCall(t,i,T),e[5]=t,e[6]=s,e[7]=l,e[8]=i,e[9]=r,e[10]=o,e[11]=u}else r=e[9],o=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==i?(a=async()=>await t.callTool({name:i,arguments:l}),e[12]=t,e[13]=l,e[14]=i,e[15]=a):a=e[15];const y=s.staleTime??3e4;let c;return e[16]!==r||e[17]!==o||e[18]!==a||e[19]!==y?(c={...r,queryKey:o,queryFn:a,staleTime:y,retry:!1},e[16]=r,e[17]=o,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}export{C as a,L as b,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,a2 as m,m as b,R as M,K as f}from"./index-
|
|
1
|
+
import{c,a2 as m,m as b,R as M,K as f}from"./index-DwUSgMrk.js";import{u as y}from"./use-org-auth-client-D54JUqPS.js";const p=300*1e3;function d(){const t=c.c(7),{locator:e}=m(),o=y();let r;t[0]!==e?(r=f.members(e),t[0]=e,t[1]=r):r=t[1];let s;t[2]!==o?(s=()=>o.organization.listMembers(),t[2]=o,t[3]=s):s=t[3];let n;return t[4]!==r||t[5]!==s?(n={queryKey:r,queryFn:s},t[4]=r,t[5]=s,t[6]=n):n=t[6],M(n)}function q(t){const e=c.c(10);let o;e[0]!==t?(o=t===void 0?{}:t,e[0]=t,e[1]=o):o=e[1];const{enabled:r}=o,s=r===void 0?!0:r,{locator:n}=m(),a=y();let u;e[2]!==n?(u=f.members(n),e[2]=n,e[3]=u):u=e[3];let i;e[4]!==a?(i=()=>a.organization.listMembers(),e[4]=a,e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==u||e[8]!==i?(l={queryKey:u,queryFn:i,staleTime:p,enabled:s},e[6]=s,e[7]=u,e[8]=i,e[9]=l):l=e[9],b(l)}export{d as a,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s}from"./index-
|
|
1
|
+
import{r as s}from"./index-DwUSgMrk.js";const n=768,r=`(max-width: ${n-1}px)`;function o(e){const t=globalThis.matchMedia(r);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}const a=()=>globalThis.innerWidth<n,c=()=>!1;function h(){return s.useSyncExternalStore(o,a,c)}export{h as u};
|
package/dist/client/assets/{use-navigate-to-agent-B-QlLf3R.js → use-navigate-to-agent-DqPVTZYN.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,au as I,aw as D,m as S,K as A,ap as L,a2 as _,d as Y,o as V,a as J,aa as F,
|
|
1
|
+
import{c as g,au as I,aw as D,m as S,K as A,ap as L,a2 as _,d as Y,o as V,a as J,aa as F,da as j,db as k,df as W}from"./index-DwUSgMrk.js";import{r as v,h as C,g as $,d as x,i as z,j as X}from"./repository-binding-Ctv5jACU.js";import{h as Z,u as M,d as P,w as ee}from"./thread-intent-DYNUY6FR.js";const E=[],te=4;function ne(t,e){return[e,...t.filter(n=>n!==e)].slice(0,te)}function ae(t){const e=g.c(9);let n;e[0]!==t?(n=D.recentProjects(t),e[0]=t,e[1]=n):n=e[1];const[a,r]=I(n,E),o=Array.isArray(a)?a:E;let s,i;e[2]!==r?(s=c=>r(l=>ne(Array.isArray(l)?l:E,c)),i=c=>r(l=>(Array.isArray(l)?l:E).filter(m=>m!==c)),e[2]=r,e[3]=s,e[4]=i):(s=e[3],i=e[4]);let u;return e[5]!==o||e[6]!==s||e[7]!==i?(u={recent:o,remember:s,forget:i},e[5]=o,e[6]=s,e[7]=i,e[8]=u):u=e[8],u}function B(t,e){if(!e)return!0;if(t.partial)return!1;const n=Z(t.metadata?.runtime);return n===null||n===e}function O(t,e,n,a,r){let o=null;for(const s of t)s.virtual_mcp_id===e&&s.created_by===n&&(s.hidden||B(s,a)&&(r&&s.branch===r||(!o||s.updated_at>o.updated_at)&&(o=s)));return o}function Re(t,e,n,a){return t.find(r=>!r.hidden&&r.virtual_mcp_id===e&&r.created_by===n&&r.title==="New chat"&&!r.harness_id&&B(r,a))}function re(t,e,n,a,r,o){return r?O(t,e,n,a,o?.baseBranch)??void 0:O(t,e,n,a)??void 0}const se=6e4,U=3e4;function N(t){return{number:t.number,title:t.title,body:t.body,state:t.state==="open"?"open":"closed",merged:t.state==="merged",mergedAt:t.mergedAt,base:t.base,head:t.head,headSha:t.headSha,headRepoFullName:t.headRepoPath,htmlUrl:t.url,author:t.author,changedFiles:t.changedFiles}}function oe(t){return{id:t.id,name:t.name,status:t.state==="running"?"in_progress":t.state,conclusion:t.conclusion,htmlUrl:t.url??"",durationMs:t.durationMs}}function K(t){const{orgSlug:e,target:n,owner:a,repo:r,branch:o}=t;return{queryKey:A.githubPrState(e,v(n),a,r,o),queryFn:()=>L(e,"CHANGE_REQUEST_STATE",{...n,branch:o}),enabled:!!o&&C(n)&&!!a&&!!r,refetchInterval:se,refetchIntervalInBackground:!1,staleTime:U}}function ie(t){const e=g.c(4);let n;e[0]!==t?(n=K(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:ue},e[2]=n,e[3]=a):a=e[3],S(a)}function ue(t){return t.changeRequest?N(t.changeRequest):null}function Ee(t){const e=g.c(4);let n;e[0]!==t?(n=K(t),e[0]=t,e[1]=n):n=e[1];let a;return e[2]!==n?(a={...n,select:ce},e[2]=n,e[3]=a):a=e[3],S(a)}function ce(t){return t.changeRequest?.state==="open"?t.changeRequest.checkRuns.map(oe):[]}const le=5*6e4;function Se(t){const e=g.c(20),{orgSlug:n,target:a,owner:r,repo:o,base:s}=t;let i;e[0]!==s||e[1]!==n||e[2]!==r||e[3]!==o||e[4]!==a?(i=A.githubLastPublishedPr(n,v(a),r,o,s),e[0]=s,e[1]=n,e[2]=r,e[3]=o,e[4]=a,e[5]=i):i=e[5];let u;e[6]!==s||e[7]!==n||e[8]!==a?(u=()=>L(n,"CHANGE_REQUEST_LAST_MERGED",{...a,base:s}),e[6]=s,e[7]=n,e[8]=a,e[9]=u):u=e[9];let c;e[10]!==t.enabled||e[11]!==s||e[12]!==r||e[13]!==o||e[14]!==a?(c=(t.enabled??!0)&&!!s&&C(a)&&!!r&&!!o,e[10]=t.enabled,e[11]=s,e[12]=r,e[13]=o,e[14]=a,e[15]=c):c=e[15];let l;return e[16]!==i||e[17]!==u||e[18]!==c?(l={queryKey:i,queryFn:u,enabled:c,staleTime:le,select:de},e[16]=i,e[17]=u,e[18]=c,e[19]=l):l=e[19],S(l)}function de(t){return t.changeRequest?N(t.changeRequest):null}const fe=50;function Pe(t){const e=g.c(17),{orgSlug:n,target:a,owner:r,repo:o}=t;let s;e[0]!==n||e[1]!==r||e[2]!==o||e[3]!==a?(s=A.githubOpenPrs(n,v(a),r,o),e[0]=n,e[1]=r,e[2]=o,e[3]=a,e[4]=s):s=e[4];let i;e[5]!==n||e[6]!==a?(i=()=>L(n,"CHANGE_REQUEST_LIST_OPEN",{...a,limit:fe}),e[5]=n,e[6]=a,e[7]=i):i=e[7];let u;e[8]!==t.enabled||e[9]!==r||e[10]!==o||e[11]!==a?(u=(t.enabled??!0)&&C(a)&&!!r&&!!o,e[8]=t.enabled,e[9]=r,e[10]=o,e[11]=a,e[12]=u):u=e[12];let c;return e[13]!==s||e[14]!==i||e[15]!==u?(c={queryKey:s,queryFn:i,enabled:u,staleTime:U,select:he},e[13]=s,e[14]=i,e[15]=u,e[16]=c):c=e[16],S(c)}function he(t){return t.changeRequests.map(N)}function ge(t,e){const{org:n}=_(),a=$(t);return ie({orgId:n.id,orgSlug:n.slug,target:x(a),owner:a?.owner??"",repo:a?.name??"",branch:e??null}).data?.base??"main"}const me=[];function Ae(){const t=g.c(15),e=Y(),{org:n,locator:a}=_(),r=V(),o=z(),{data:s}=J.useSession(),i=M(),u=ge(void 0,null),c=F(),{remember:l}=ae(n.slug);let m;t[0]!==u||t[1]!==o||t[2]!==a||t[3]!==i?.threads||t[4]!==e||t[5]!==n.slug||t[6]!==c||t[7]!==l||t[8]!==s?.user?.id?(m=(d,f,y)=>{if(c&&!f?.panel){l(d),e(G(n.slug,d));return}const h=f?.panel??"overview";if(j(h).kind==="org-destination"){k(e,{tabId:h,org:n.slug,agentId:d,replace:!1});return}const p=(o??[]).find(H=>H.id===d),Q=!!(p&&$(p)),q=!f?.runtime,w=q?void 0:re(i?.threads.get()??me,d,s?.user?.id,y??(p?P(p.metadata):void 0),Q,{baseBranch:u}),R=q?void 0:w?.id??crypto.randomUUID();R&&!w&&f?.runtime&&ee(sessionStorage,a,R,{runtime:f.runtime}),k(e,{tabId:h,org:n.slug,agentId:d,search:()=>R?{thread:R}:{},replace:!1})},t[0]=u,t[1]=o,t[2]=a,t[3]=i?.threads,t[4]=e,t[5]=n.slug,t[6]=c,t[7]=l,t[8]=s?.user?.id,t[9]=m):m=t[9];const b=m;let T;return t[10]!==o||t[11]!==b||t[12]!==n||t[13]!==r?(T=(d,f)=>{if(j(f?.panel??"overview").kind==="org-destination")return b(d,f,void 0);const y=o.find(h=>h.id===d);if(f?.runtime)return b(d,f,f.runtime);if(y)return b(d,f,P(y.metadata));X(r,n).then(h=>h.find(p=>p.id===d)).catch(be).then(h=>b(d,f,h?P(h.metadata):void 0))},t[10]=o,t[11]=b,t[12]=n,t[13]=r,t[14]=T):T=t[14],T}function be(){}function G(t,e){return{to:"/$org/projects/$agentId",params:{org:t,agentId:e},search:n=>({...n,project:void 0,virtualmcpid:void 0,thread:void 0,mainpanel:void 0})}}function Le(){const t=g.c(3),{org:e}=_(),n=F();let a;return t[0]!==e.slug||t[1]!==n?(a=(r,o)=>{if(n&&!o)return G(e.slug,r);const s=W({tabId:o??"overview",org:e.slug,agentId:r});return{to:s.to,params:s.params,search:s.search}},t[0]=e.slug,t[1]=n,t[2]=a):a=t[2],a}export{Le as a,ae as b,ge as c,re as d,Pe as e,Re as f,ie as g,Se as h,Ee as i,K as p,Ae as u};
|
package/dist/client/assets/{use-open-billing-url-DWsw6Alp.js → use-open-billing-url-NfOqGe8U.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,an as f,b as p,e as T,t as m}from"./index-
|
|
1
|
+
import{c as l,an as f,b as p,e as T,t as m}from"./index-DwUSgMrk.js";function g(t,u){const s=l.c(9),i=f(),a=p();let e;s[0]!==i||s[1]!==t?(e=async r=>{const{url:c}=await i.call(t,t==="ORGANIZATION_BILLING_CHECKOUT_START"&&r?{planId:r}:{});return c},s[0]=i,s[1]=t,s[2]=e):e=s[2];let n;s[3]!==u||s[4]!==a?(n=r=>m.error(a(u,{message:r.message})),s[3]=u,s[4]=a,s[5]=n):n=s[5];let o;return s[6]!==e||s[7]!==n?(o={mutationFn:e,onSuccess:_,onError:n},s[6]=e,s[7]=n,s[8]=o):o=s[8],T(o)}function _(t){return window.open(t,"_blank","noopener,noreferrer")}export{g as u};
|
package/dist/client/assets/{use-org-auth-client-Co_fa5Pp.js → use-org-auth-client-D54JUqPS.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,a2 as j,a as i}from"./index-
|
|
1
|
+
import{c as x,a2 as j,a as i}from"./index-DwUSgMrk.js";function A(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,a2 as w,K as y,m as $,o as O,e as P}from"./index-DEQvnIsm.js";import{u as _}from"./useInfiniteQuery-Bo5dbMM_.js";function G(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function F(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function h(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Z(n,e,t){const s=p.c(16),{org:r}=w(),i=t?.enabled??!0;let a;s[0]!==r.id||s[1]!==e||s[2]!==n?(a=y.orgFsList(r.id,n,e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=a):a=s[3];let o;s[4]!==r.id||s[5]!==n?(o=(f,u)=>u?.queryKey[1]===r.id&&u.queryKey[2]===n?f:void 0,s[4]=r.id,s[5]=n,s[6]=o):o=s[6];let c;s[7]!==r.slug||s[8]!==e||s[9]!==n?(c=async()=>(await(await h(F(r.slug,n,"list",{path:e}))).json()).entries.toSorted(x),s[7]=r.slug,s[8]=e,s[9]=n,s[10]=c):c=s[10];let l;return s[11]!==i||s[12]!==a||s[13]!==o||s[14]!==c?(l={enabled:i,queryKey:a,placeholderData:o,queryFn:c},s[11]=i,s[12]=a,s[13]=o,s[14]=c,s[15]=l):l=s[15],$(l)}function x(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}async function E(n,e,t){const s=await h(F(n,e,"stat",{path:t}),void 0,{allow404:!0});return s.status===404?null:(await s.json()).entry}function v(n,e,t){const s=p.c(16),{org:r}=w();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=y.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const a=n!==null,o=t?.staleTime;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?u=>u.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let l;s[6]!==r.slug||s[7]!==e||s[8]!==n?(l=()=>E(r.slug,n??"",e),s[6]=r.slug,s[7]=e,s[8]=n,s[9]=l):l=s[9];let f;return s[10]!==i||s[11]!==a||s[12]!==o||s[13]!==c||s[14]!==l?(f={queryKey:i,enabled:a,staleTime:o,refetchInterval:c,queryFn:l},s[10]=i,s[11]=a,s[12]=o,s[13]=c,s[14]=l,s[15]=f):f=s[15],$(f)}function ee(n,e){const t=p.c(9),s=n===void 0?60:n,{org:r}=w();let i;t[0]!==r.id?(i=y.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const a=e?.enabled;let o;t[2]!==s||t[3]!==r.slug?(o=async()=>(await(await h(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=o):o=t[4];let c;return t[5]!==i||t[6]!==a||t[7]!==o?(c={queryKey:i,enabled:a,queryFn:o},t[5]=i,t[6]=a,t[7]=o,t[8]=c):c=t[8],$(c)}const R=200;function te(n){const e=p.c(9),{org:t}=w();let s;e[0]!==t.id||e[1]!==n?(s=y.orgFsVolumeFiles(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async a=>{const{pageParam:o}=a,c=new URLSearchParams({limit:String(R)});return o&&c.set("before",o),await(await h(`/api/${encodeURIComponent(t.slug)}/fs/${encodeURIComponent(n)}/files?${c}`)).json()},e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,initialPageParam:null,queryFn:r,getNextPageParam:C},e[6]=s,e[7]=r,e[8]=i):i=e[8],_(i)}function C(n){return n.next??void 0}const U=50;function se(n,e){const t=p.c(16),{org:s}=w();let r;t[0]!==s.id||t[1]!==n||t[2]!==e?.prefix||t[3]!==e?.volume?(r=y.orgFsSearch(s.id,n,e?.volume??"",e?.prefix??""),t[0]=s.id,t[1]=n,t[2]=e?.prefix,t[3]=e?.volume,t[4]=r):r=t[4];const i=n.length>0;let a;t[5]!==s.id?(a=(l,f)=>f?.queryKey[1]===s.id?l:void 0,t[5]=s.id,t[6]=a):a=t[6];let o;t[7]!==s.slug||t[8]!==n||t[9]!==e?(o=async()=>{const l=new URLSearchParams({q:n,limit:String(U)});return e&&(l.set("volume",e.volume),e.prefix&&l.set("prefix",e.prefix)),(await(await h(`/api/${encodeURIComponent(s.slug)}/fs/search?${l}`)).json()).entries},t[7]=s.slug,t[8]=n,t[9]=e,t[10]=o):o=t[10];let c;return t[11]!==r||t[12]!==i||t[13]!==a||t[14]!==o?(c={queryKey:r,enabled:i,placeholderData:a,queryFn:o},t[11]=r,t[12]=i,t[13]=a,t[14]=o,t[15]=c):c=t[15],$(c)}function ne(n){const e=p.c(8),{org:t}=w();let s;e[0]!==t.id?(s=y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const o=await h(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await o.json();return c.map(j)},e[2]=t.slug,e[3]=i):i=e[3];let a;return e[4]!==s||e[5]!==r||e[6]!==i?(a={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=a):a=e[7],$(a)}function j(n){return{volume:n.volume,path:n.path}}async function Q(n){const e=await h(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}function re(){const n=p.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.slashSkills(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=()=>Q(e.slug),n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,queryFn:s,staleTime:6e4},n[4]=t,n[5]=s,n[6]=r):r=n[6],$(r)}async function M(n,e,t){return(await h(F(n,e,"read",{path:t}))).text()}function ie(n,e){const t=p.c(8);let s;t[0]!==n?(s=y.fileText(n),t[0]=n,t[1]=s):s=t[1];const r=e?.enabled!==!1&&n!=="";let i;t[2]!==n?(i=async()=>{const o=await fetch(n,{credentials:"include"});return o.ok?await o.text():null},t[2]=n,t[3]=i):i=t[3];let a;return t[4]!==s||t[5]!==r||t[6]!==i?(a={queryKey:s,enabled:r,staleTime:6e4,retry:!1,queryFn:i},t[4]=s,t[5]=r,t[6]=i,t[7]=a):a=t[7],$(a)}const A=new Set(["md","mdx","markdown","txt","text"]),D=25,N=64*1024,H=256*1024,V=4;function W(n){const e=n.lastIndexOf(".");return e===-1?!1:A.has(n.slice(e+1).toLowerCase())}async function ae(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],a=[],o=[{path:t,depth:0}];for(;o.length>0;){const u=o.shift();if(!u)break;let g;try{g=(await(await h(F(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const d of[...g].sort((b,m)=>b.path.localeCompare(m.path))){if(d.kind==="dir"){u.depth<V&&o.push({path:d.path,depth:u.depth+1});continue}W(d.path)&&d.size<=N&&i.length<D?i.push(d.path):a.push(r(d.path))}}const c=await Promise.all(i.map(u=>M(n,e,u).catch(()=>null))),l=[];let f=0;return i.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>H){a.push(r(u));return}f+=d.length,l.push({relPath:r(u),content:d})}),l.sort((u,g)=>u.relPath==="SKILL.md"?-1:g.relPath==="SKILL.md"?1:u.relPath.localeCompare(g.relPath)),a.sort(),{files:l,omittedPaths:a}}function oe(){const n=p.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await h(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],$(r)}function le(n){const e=p.c(3),{org:t}=w();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>F(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function ce(){const n=p.c(2),{org:e}=w();let t;return n[0]!==e.slug?(t=(s,r)=>F(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function ue(n){const e=p.c(3),{org:t}=w();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await h(F(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],P(s)}async function fe(n,e,t,s,r,i="text/markdown; charset=utf-8"){const a={"content-type":i};r&&"absent"in r?a["if-none-match"]="*":r&&(a["if-match"]=`"${r.contentHash}"`);const o=await fetch(F(n,e,"file",{path:t}),{method:"PUT",headers:a,body:s});if(o.status===412)return{ok:!1,reason:"conflict"};if(o.status===403)return{ok:!1,reason:"forbidden"};if(!o.ok)throw new Error(`HTTP ${o.status}`);return{ok:!0,entry:(await o.json()).entry}}function de(n){const e=p.c(18),{org:t}=w(),s=O();let r;e[0]!==t||e[1]!==n?(r=async l=>(await(await h(F(t.slug,n,"public",{path:l.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:l.mode,password:l.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async l=>{const f=y.orgFsStat(t.id,n,l.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),g=l.mode!=="private";return s.setQueryData(f,d=>d&&{...d,readPublic:g,effectivePublic:g,shareMode:l.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let a;e[7]!==s?(a=(l,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let o;e[9]!==t||e[10]!==s||e[11]!==n?(o=(l,f,u)=>{s.invalidateQueries({queryKey:y.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:y.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:y.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=o):o=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==a||e[16]!==o?(c={mutationFn:r,onMutate:i,onError:a,onSettled:o},e[13]=r,e[14]=i,e[15]=a,e[16]=o,e[17]=c):c=e[17],P(c)}function X(n,e,t){n.invalidateQueries({queryKey:y.orgFsVolume(e,t)}),n.invalidateQueries({queryKey:y.orgFsRecent(e)}),n.invalidateQueries({queryKey:y.orgFsSearchRoot(e)})}function ge(n){const e=p.c(33),{org:t}=w(),s=O();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>X(s,t.id,n),e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let a;e[4]!==t||e[5]!==n?(a=async S=>{const L=(await Promise.allSettled(S.files.map(T=>{const q=S.dir?`${S.dir}/${T.name}`:T.name;return h(F(t.slug,n,"file",{path:q}),{method:"PUT",headers:{"content-type":T.type||"application/octet-stream"},body:T})}))).find(Y);if(L)throw L.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let o;e[7]!==i||e[8]!==a?(o={mutationFn:a,onSettled:i},e[7]=i,e[8]=a,e[9]=o):o=e[9];const c=P(o);let l;e[10]!==t||e[11]!==n?(l=async S=>{await h(F(t.slug,n,"dir",{path:S}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=l):l=e[12];let f;e[13]!==i||e[14]!==l?(f={mutationFn:l,onSuccess:i},e[13]=i,e[14]=l,e[15]=f):f=e[15];const u=P(f);let g;e[16]!==t||e[17]!==n?(g=async S=>{await h(F(t.slug,n,"file",{path:S}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=g):g=e[18];let d;e[19]!==i||e[20]!==g?(d={mutationFn:g,onSuccess:i},e[19]=i,e[20]=g,e[21]=d):d=e[21];const b=P(d);let m;e[22]!==t||e[23]!==n?(m=async S=>{await h(F(t.slug,n,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)})},e[22]=t,e[23]=n,e[24]=m):m=e[24];let I;e[25]!==i||e[26]!==m?(I={mutationFn:m,onSuccess:i},e[25]=i,e[26]=m,e[27]=I):I=e[27];const k=P(I);let K;return e[28]!==u||e[29]!==k||e[30]!==b||e[31]!==c?(K={upload:c,mkdir:u,remove:b,move:k},e[28]=u,e[29]=k,e[30]=b,e[31]=c,e[32]=K):K=e[32],K}function Y(n){return n.status==="rejected"}export{Q as a,le as b,ue as c,de as d,G as e,ae as f,ie as g,oe as h,ce as i,ge as j,Z as k,se as l,te as m,ee as n,X as o,re as p,ne as q,E as r,M as s,v as u,fe as w};
|
|
1
|
+
import{c as p,a2 as w,K as y,m as $,o as O,e as P}from"./index-DwUSgMrk.js";import{u as _}from"./useInfiniteQuery-DLjfiCcz.js";function G(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function F(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function h(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Z(n,e,t){const s=p.c(16),{org:r}=w(),i=t?.enabled??!0;let a;s[0]!==r.id||s[1]!==e||s[2]!==n?(a=y.orgFsList(r.id,n,e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=a):a=s[3];let o;s[4]!==r.id||s[5]!==n?(o=(f,u)=>u?.queryKey[1]===r.id&&u.queryKey[2]===n?f:void 0,s[4]=r.id,s[5]=n,s[6]=o):o=s[6];let c;s[7]!==r.slug||s[8]!==e||s[9]!==n?(c=async()=>(await(await h(F(r.slug,n,"list",{path:e}))).json()).entries.toSorted(x),s[7]=r.slug,s[8]=e,s[9]=n,s[10]=c):c=s[10];let l;return s[11]!==i||s[12]!==a||s[13]!==o||s[14]!==c?(l={enabled:i,queryKey:a,placeholderData:o,queryFn:c},s[11]=i,s[12]=a,s[13]=o,s[14]=c,s[15]=l):l=s[15],$(l)}function x(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}async function E(n,e,t){const s=await h(F(n,e,"stat",{path:t}),void 0,{allow404:!0});return s.status===404?null:(await s.json()).entry}function v(n,e,t){const s=p.c(16),{org:r}=w();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=y.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const a=n!==null,o=t?.staleTime;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?u=>u.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let l;s[6]!==r.slug||s[7]!==e||s[8]!==n?(l=()=>E(r.slug,n??"",e),s[6]=r.slug,s[7]=e,s[8]=n,s[9]=l):l=s[9];let f;return s[10]!==i||s[11]!==a||s[12]!==o||s[13]!==c||s[14]!==l?(f={queryKey:i,enabled:a,staleTime:o,refetchInterval:c,queryFn:l},s[10]=i,s[11]=a,s[12]=o,s[13]=c,s[14]=l,s[15]=f):f=s[15],$(f)}function ee(n,e){const t=p.c(9),s=n===void 0?60:n,{org:r}=w();let i;t[0]!==r.id?(i=y.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const a=e?.enabled;let o;t[2]!==s||t[3]!==r.slug?(o=async()=>(await(await h(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=o):o=t[4];let c;return t[5]!==i||t[6]!==a||t[7]!==o?(c={queryKey:i,enabled:a,queryFn:o},t[5]=i,t[6]=a,t[7]=o,t[8]=c):c=t[8],$(c)}const R=200;function te(n){const e=p.c(9),{org:t}=w();let s;e[0]!==t.id||e[1]!==n?(s=y.orgFsVolumeFiles(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async a=>{const{pageParam:o}=a,c=new URLSearchParams({limit:String(R)});return o&&c.set("before",o),await(await h(`/api/${encodeURIComponent(t.slug)}/fs/${encodeURIComponent(n)}/files?${c}`)).json()},e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,initialPageParam:null,queryFn:r,getNextPageParam:C},e[6]=s,e[7]=r,e[8]=i):i=e[8],_(i)}function C(n){return n.next??void 0}const U=50;function se(n,e){const t=p.c(16),{org:s}=w();let r;t[0]!==s.id||t[1]!==n||t[2]!==e?.prefix||t[3]!==e?.volume?(r=y.orgFsSearch(s.id,n,e?.volume??"",e?.prefix??""),t[0]=s.id,t[1]=n,t[2]=e?.prefix,t[3]=e?.volume,t[4]=r):r=t[4];const i=n.length>0;let a;t[5]!==s.id?(a=(l,f)=>f?.queryKey[1]===s.id?l:void 0,t[5]=s.id,t[6]=a):a=t[6];let o;t[7]!==s.slug||t[8]!==n||t[9]!==e?(o=async()=>{const l=new URLSearchParams({q:n,limit:String(U)});return e&&(l.set("volume",e.volume),e.prefix&&l.set("prefix",e.prefix)),(await(await h(`/api/${encodeURIComponent(s.slug)}/fs/search?${l}`)).json()).entries},t[7]=s.slug,t[8]=n,t[9]=e,t[10]=o):o=t[10];let c;return t[11]!==r||t[12]!==i||t[13]!==a||t[14]!==o?(c={queryKey:r,enabled:i,placeholderData:a,queryFn:o},t[11]=r,t[12]=i,t[13]=a,t[14]=o,t[15]=c):c=t[15],$(c)}function ne(n){const e=p.c(8),{org:t}=w();let s;e[0]!==t.id?(s=y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const o=await h(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await o.json();return c.map(j)},e[2]=t.slug,e[3]=i):i=e[3];let a;return e[4]!==s||e[5]!==r||e[6]!==i?(a={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=a):a=e[7],$(a)}function j(n){return{volume:n.volume,path:n.path}}async function Q(n){const e=await h(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}function re(){const n=p.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.slashSkills(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=()=>Q(e.slug),n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,queryFn:s,staleTime:6e4},n[4]=t,n[5]=s,n[6]=r):r=n[6],$(r)}async function M(n,e,t){return(await h(F(n,e,"read",{path:t}))).text()}function ie(n,e){const t=p.c(8);let s;t[0]!==n?(s=y.fileText(n),t[0]=n,t[1]=s):s=t[1];const r=e?.enabled!==!1&&n!=="";let i;t[2]!==n?(i=async()=>{const o=await fetch(n,{credentials:"include"});return o.ok?await o.text():null},t[2]=n,t[3]=i):i=t[3];let a;return t[4]!==s||t[5]!==r||t[6]!==i?(a={queryKey:s,enabled:r,staleTime:6e4,retry:!1,queryFn:i},t[4]=s,t[5]=r,t[6]=i,t[7]=a):a=t[7],$(a)}const A=new Set(["md","mdx","markdown","txt","text"]),D=25,N=64*1024,H=256*1024,V=4;function W(n){const e=n.lastIndexOf(".");return e===-1?!1:A.has(n.slice(e+1).toLowerCase())}async function ae(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],a=[],o=[{path:t,depth:0}];for(;o.length>0;){const u=o.shift();if(!u)break;let g;try{g=(await(await h(F(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const d of[...g].sort((b,m)=>b.path.localeCompare(m.path))){if(d.kind==="dir"){u.depth<V&&o.push({path:d.path,depth:u.depth+1});continue}W(d.path)&&d.size<=N&&i.length<D?i.push(d.path):a.push(r(d.path))}}const c=await Promise.all(i.map(u=>M(n,e,u).catch(()=>null))),l=[];let f=0;return i.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>H){a.push(r(u));return}f+=d.length,l.push({relPath:r(u),content:d})}),l.sort((u,g)=>u.relPath==="SKILL.md"?-1:g.relPath==="SKILL.md"?1:u.relPath.localeCompare(g.relPath)),a.sort(),{files:l,omittedPaths:a}}function oe(){const n=p.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await h(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],$(r)}function le(n){const e=p.c(3),{org:t}=w();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>F(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function ce(){const n=p.c(2),{org:e}=w();let t;return n[0]!==e.slug?(t=(s,r)=>F(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function ue(n){const e=p.c(3),{org:t}=w();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await h(F(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],P(s)}async function fe(n,e,t,s,r,i="text/markdown; charset=utf-8"){const a={"content-type":i};r&&"absent"in r?a["if-none-match"]="*":r&&(a["if-match"]=`"${r.contentHash}"`);const o=await fetch(F(n,e,"file",{path:t}),{method:"PUT",headers:a,body:s});if(o.status===412)return{ok:!1,reason:"conflict"};if(o.status===403)return{ok:!1,reason:"forbidden"};if(!o.ok)throw new Error(`HTTP ${o.status}`);return{ok:!0,entry:(await o.json()).entry}}function de(n){const e=p.c(18),{org:t}=w(),s=O();let r;e[0]!==t||e[1]!==n?(r=async l=>(await(await h(F(t.slug,n,"public",{path:l.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:l.mode,password:l.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async l=>{const f=y.orgFsStat(t.id,n,l.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),g=l.mode!=="private";return s.setQueryData(f,d=>d&&{...d,readPublic:g,effectivePublic:g,shareMode:l.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let a;e[7]!==s?(a=(l,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let o;e[9]!==t||e[10]!==s||e[11]!==n?(o=(l,f,u)=>{s.invalidateQueries({queryKey:y.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:y.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:y.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=o):o=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==a||e[16]!==o?(c={mutationFn:r,onMutate:i,onError:a,onSettled:o},e[13]=r,e[14]=i,e[15]=a,e[16]=o,e[17]=c):c=e[17],P(c)}function X(n,e,t){n.invalidateQueries({queryKey:y.orgFsVolume(e,t)}),n.invalidateQueries({queryKey:y.orgFsRecent(e)}),n.invalidateQueries({queryKey:y.orgFsSearchRoot(e)})}function ge(n){const e=p.c(33),{org:t}=w(),s=O();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>X(s,t.id,n),e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let a;e[4]!==t||e[5]!==n?(a=async S=>{const L=(await Promise.allSettled(S.files.map(T=>{const q=S.dir?`${S.dir}/${T.name}`:T.name;return h(F(t.slug,n,"file",{path:q}),{method:"PUT",headers:{"content-type":T.type||"application/octet-stream"},body:T})}))).find(Y);if(L)throw L.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let o;e[7]!==i||e[8]!==a?(o={mutationFn:a,onSettled:i},e[7]=i,e[8]=a,e[9]=o):o=e[9];const c=P(o);let l;e[10]!==t||e[11]!==n?(l=async S=>{await h(F(t.slug,n,"dir",{path:S}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=l):l=e[12];let f;e[13]!==i||e[14]!==l?(f={mutationFn:l,onSuccess:i},e[13]=i,e[14]=l,e[15]=f):f=e[15];const u=P(f);let g;e[16]!==t||e[17]!==n?(g=async S=>{await h(F(t.slug,n,"file",{path:S}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=g):g=e[18];let d;e[19]!==i||e[20]!==g?(d={mutationFn:g,onSuccess:i},e[19]=i,e[20]=g,e[21]=d):d=e[21];const b=P(d);let m;e[22]!==t||e[23]!==n?(m=async S=>{await h(F(t.slug,n,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)})},e[22]=t,e[23]=n,e[24]=m):m=e[24];let I;e[25]!==i||e[26]!==m?(I={mutationFn:m,onSuccess:i},e[25]=i,e[26]=m,e[27]=I):I=e[27];const k=P(I);let K;return e[28]!==u||e[29]!==k||e[30]!==b||e[31]!==c?(K={upload:c,mkdir:u,remove:b,move:k},e[28]=u,e[29]=k,e[30]=b,e[31]=c,e[32]=K):K=e[32],K}function Y(n){return n.status==="rejected"}export{Q as a,le as b,ue as c,de as d,G as e,ae as f,ie as g,re as h,ge as i,ce as j,ee as k,ne as l,X as m,oe as n,Z as o,se as p,te as q,E as r,M as s,v as u,fe as w};
|
package/dist/client/assets/{use-org-repo-syncs-Cxt6puu1.js → use-org-repo-syncs-B-iMqLC4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,a2 as f,an as y,K as S,m as _,o as d,e as R}from"./index-
|
|
1
|
+
import{c as r,a2 as f,an as y,K as S,m as _,o as d,e as R}from"./index-DwUSgMrk.js";const m=5e3;function p(e){return(e??[]).some(n=>!n.lastSyncedAt&&!n.lastSyncError)}function g(){const e=r.c(7),{org:n}=f(),t=y();let c;e[0]!==n.id?(c=S.orgRepoSyncs(n.id),e[0]=n.id,e[1]=c):c=e[1];let s;e[2]!==t?(s=async()=>(await t.call("ORG_REPO_SYNC_LIST",{})).configs,e[2]=t,e[3]=s):s=e[3];let o;return e[4]!==c||e[5]!==s?(o={queryKey:c,staleTime:6e4,refetchInterval:E,queryFn:s},e[4]=c,e[5]=s,e[6]=o):o=e[6],_(o)}function E(e){return p(e.state.data)?m:!1}function P(){const e=r.c(2),n=g();let t;return e[0]!==n.data?(t=new Set((n.data??[]).map(O)),e[0]=n.data,e[1]=t):t=e[1],t}function O(e){return e.volume}function q(){const e=r.c(12),{org:n}=f(),t=y(),c=d();let s;e[0]!==n||e[1]!==c?(s=()=>c.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[0]=n,e[1]=c,e[2]=s):s=e[2];const o=s;let i;e[3]!==t?(i=async u=>(await t.call("ORG_REPO_SYNC_CREATE",u)).config,e[3]=t,e[4]=i):i=e[4];let a;e[5]!==o||e[6]!==t?(a=u=>{t.call("ORG_REPO_SYNC_RUN",{id:u.id}).catch(C).then(o)},e[5]=o,e[6]=t,e[7]=a):a=e[7];let l;return e[8]!==o||e[9]!==i||e[10]!==a?(l={mutationFn:i,onSuccess:a,onSettled:o},e[8]=o,e[9]=i,e[10]=a,e[11]=l):l=e[11],R(l)}function C(){return null}function T(){const e=r.c(8),{org:n}=f(),t=y(),c=d();let s;e[0]!==t?(s=a=>t.call("ORG_REPO_SYNC_DELETE",{id:a}),e[0]=t,e[1]=s):s=e[1];let o;e[2]!==n||e[3]!==c?(o=()=>c.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[2]=n,e[3]=c,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i={mutationFn:s,onSettled:o},e[5]=s,e[6]=o,e[7]=i):i=e[7],R(i)}export{P as a,q as b,T as c,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as S,o as r,e as y,K as c}from"./index-
|
|
1
|
+
import{c as u,m as S,o as r,e as y,K as c}from"./index-DwUSgMrk.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function m(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{q as a,C as b,O as c,h as d,m as u};
|
package/dist/client/assets/{use-organization-roles-DZJHfOlV.js → use-organization-roles-BaFyhF9z.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as E}from"./use-org-auth-client-
|
|
1
|
+
import{u as E}from"./use-org-auth-client-D54JUqPS.js";import{a2 as I,m as N,K as b}from"./index-DwUSgMrk.js";const B="connections",d="*",m="!";function g(e){return`${m}${e}`}function _(e){return e.startsWith(m)?e.slice(m.length):null}function P(e){if(e.includes(g(d)))return{kind:"only",names:[]};const n=new Set,i=new Set;for(const t of e){const a=_(t);a!==null?n.add(a):t!==d&&i.add(t)}return e.includes(d)?n.size===0?{kind:"all"}:{kind:"except",names:[...n]}:{kind:"only",names:[...i].filter(t=>!n.has(t))}}function z(e){return[d,...e.names.map(g)]}const R="projects";function L(e){if(!e)return null;const n=e[R];return Array.isArray(n)?n:null}function j(e){return e===null?{kind:"all"}:P(e)}const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function F(e){return e.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function T(e){if(!e)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const t=[];let a=!1;const c=new Set;let r=!1,f=0,o=!1;for(const[l,s]of Object.entries(e)){if(l==="self"){s.includes("*")?i=!0:n.push(...s);continue}if(l==="models"){s.includes("*:*")?o=!0:f=s.length;continue}if(l!==R){if(l===B){P(s).kind!=="only"&&(a=!0,r=!0);continue}if(l==="*"){if(a=!0,s.includes("*"))r=!0;else for(const u of s)c.add(u);continue}if(t.push(l),s.includes("*"))r=!0;else for(const u of s)c.add(u)}}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:t,allowsAllConnections:a,toolNames:Array.from(c),allowsAllTools:r,modelCount:f,allowsAllModels:o}}function K(){const{locator:e}=I(),n=E(),{data:i,isLoading:t,error:a,refetch:c}=N({queryKey:b.organizationRoles(e),queryFn:async()=>{try{const o=await n.organization.listRoles();return o?.error?(console.error("[useOrganizationRoles] API error:",o.error),[]):o?.data??[]}catch(o){return console.error("[useOrganizationRoles] Fetch error:",o),[]}},staleTime:3e4}),r=w.map(o=>({role:o.value,label:o.label,isBuiltin:o.isBuiltin}));if(i&&Array.isArray(i))for(const o of i){const l=o.role;if(!l||w.some(O=>O.value===l))continue;const{staticPermissions:s,allowsAllStaticPermissions:u,connectionIds:S,allowsAllConnections:A,toolNames:y,allowsAllTools:p,modelCount:h,allowsAllModels:C}=T(o.permission);r.push({id:o.id,role:l,label:F(l),isBuiltin:!1,permission:o.permission??void 0,staticPermissionCount:u?-1:s.length,allowsAllStaticPermissions:u,connectionCount:A?-1:S.length,allowsAllConnections:A,toolCount:p?-1:y.length,allowsAllTools:p,modelCount:C?-1:h,allowsAllModels:C})}const f=r.filter(o=>!o.isBuiltin);return{roles:r,customRoles:f,builtinRoles:r.filter(o=>o.isBuiltin),isLoading:t,error:a,refetch:c}}export{B as C,R as P,d as a,P as b,g as d,L as g,z as l,j as p,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as T,c as u,
|
|
1
|
+
import{a as T,c as u,b6 as A,a2 as b,m as z,ap as D,K as E,an as O,o as C,e as I}from"./index-DwUSgMrk.js";import{D as G,o as x,a as P}from"./schema-C9VtMeBM.js";import{r as R}from"./task-board-CDUMGTb-.js";const F={organizationId:"",sidebar_items:null,coding_agent_mcp_excluded:null,simple_mode:null,default_home_agents:null,flags:null,submodule_credentials:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function k(t,e){return{queryKey:E.organizationSettings(e),queryFn:async()=>{try{return await D(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...F,organizationId:e}}},staleTime:6e4}}function d(t){const e=u.c(7),{org:n}=b();let s;e[0]!==n.id||e[1]!==n.slug?(s=k(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t,a=!!n.id;let i;return e[3]!==s||e[4]!==o||e[5]!==a?(i={...s,select:o,enabled:a},e[3]=s,e[4]=o,e[5]=a,e[6]=i):i=e[6],z(i)}function _(){const t=u.c(9),{org:e}=b(),n=O(),s=C();let o;t[0]!==e||t[1]!==n?(o=async l=>{const r=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...l});if(!r)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return r},t[0]=e,t[1]=n,t[2]=o):o=t[2];let a;t[3]!==e||t[4]!==s?(a=l=>{s.setQueryData(E.organizationSettings(e.id),r=>({...r??F,...l}))},t[3]=e,t[4]=s,t[5]=a):a=t[5];let i;return t[6]!==o||t[7]!==a?(i={mutationFn:o,onSuccess:a},t[6]=o,t[7]=a,t[8]=i):i=t[8],I(i)}function L(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:N}function B(){const{data:t}=d(Q);return t??N}function Q(t){return L(t.simple_mode)}function V(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i)=>e.mutate({simple_mode:a},i),s=(a,i)=>e.mutateAsync({simple_mode:a},i),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function W(){return c("reports_only")}function c(t){const e=u.c(5);let n;e[0]!==t?(n=a=>x(a.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=d(n);let o;return e[2]!==s||e[3]!==t?(o=s??G.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function H(t){const e=u.c(6);let n;e[0]!==t?(n=i=>x(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s,isError:o}=d(n);let a;return e[2]!==s||e[3]!==t||e[4]!==o?(a=s??(o?G.has(t):void 0),e[2]=s,e[3]=t,e[4]=o,e[5]=a):a=e[5],a}function J(){const t=c("chat_harness_sandbox_only");return A().runtime.agentSandbox&&t}function X(){const t=u.c(8),{org:e}=b(),n=O(),s=C();let o;t[0]!==n?(o=l=>n.call("ORGANIZATION_BLOCKS_EDITOR_SET",{enabled:l}),t[0]=n,t[1]=o):o=t[1];let a;t[2]!==e||t[3]!==s?(a=l=>{const{enabled:r}=l;s.setQueryData(E.organizationSettings(e.id),m=>m&&{...m,flags:{...m.flags,new_blocks_editor:r}})},t[2]=e,t[3]=s,t[4]=a):a=t[4];let i;return t[5]!==o||t[6]!==a?(i={mutationFn:o,onSuccess:a},t[5]=o,t[6]=a,t[7]=i):i=t[7],I(i)}function w(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function tt(){const{data:t}=T.useSession();return w(t?.user?.email)}function et(){const t=u.c(9),{data:e}=T.useSession(),n=A();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||w(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,a=n.hostingControlPlaneGa===!0,i=n.monitorGa===!0,l=c("hosting_enabled"),r=c("deco_analytics_enabled"),m=c("e2e_enabled"),M=c("monitor_enabled"),$=c("experiments_enabled"),g=o||a||l,S=o||a||r,p=o||a||m,y=o||i||M,h=o||a||$;let f;return t[3]!==g||t[4]!==S||t[5]!==p||t[6]!==y||t[7]!==h?(f={hosting:g,analytics:S,e2e:p,monitor:y,experiments:h},t[3]=g,t[4]=S,t[5]=p,t[6]=y,t[7]=h,t[8]=f):f=t[8],f}function nt(){const{data:t}=d(U);return t??!1}function U(t){return P(t.flags)}function st(){const{data:t}=d(q);return t??!0}function q(t){return R(t.flags)}function ot(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i,l)=>e.mutate({flags:{[a]:i}},l),s=(a,i,l)=>e.mutateAsync({flags:{[a]:i}},l),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function at(){const t=u.c(2),{data:e}=d(K);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function K(t){return t.coding_agent_mcp_excluded}function it(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutate({coding_agent_mcp_excluded:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutate:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function lt(){const t=u.c(2),{data:e}=d(Z);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function Z(t){return t.submodule_credentials}function ut(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutateAsync({submodule_credentials:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutateAsync:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}export{c as a,J as b,H as c,B as d,et as e,st as f,X as g,nt as h,ot as i,at as j,it as k,V as l,lt as m,ut as n,tt as o,W as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as p,f as g,u as S,d9 as _,d as b,k,da as P,db as E}from"./index-DwUSgMrk.js";import{b as I}from"./thread-route-Cr8HKNDQ.js";import{a as R}from"./use-project-scope-CwXHOags.js";function x(e){const t=e.destination==="agent",a={thread:t?e.previous.thread:void 0,sidepanel:e.previous.sidepanel,autosend:t?e.previous.autosend:void 0};return{...e.update?e.update(a):a,mainpanel:void 0}}function T(){const e=p.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={structuralSharing:!0,select:j},e[0]=t):t=e[0],k(t)}function j(e){for(let t=e.matches.length-1;t>=0;t--){const a=e.matches[t]?.staticData;if(a?.mainView||a?.siteEditorView)return{mainView:a.mainView,siteEditorView:a.siteEditorView}}return{mainView:void 0,siteEditorView:void 0}}function A(){const e=p.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const a=g(t);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const i=S(o),s={file:"file"in i&&typeof i.file=="string"?i.file:void 0,key:"key"in i&&typeof i.key=="string"?i.key:void 0,path:"path"in i&&typeof i.path=="string"?i.path:void 0},{mainView:r,siteEditorView:n}=T();return _({mainView:r,siteEditorView:n,params:a,search:s})}function D(){const e=p.c(11),t=b();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const o=g(a),i=I(),s=R(),r=o.org??"";let n;e[1]!==t||e[2]!==r||e[3]!==i||e[4]!==s?(n=(u,c)=>{const h=P(u),v=c?.virtualmcpid!==void 0||s!==null?"project":"organization",y=h.kind==="org-destination"||h.kind==="project-destination"&&v==="organization",V=w=>x({previous:w,destination:y?"organization":"agent",update:c?.search});E(t,{org:r,agentId:c?.virtualmcpid??i,tabId:u,destinationScope:v,taskKey:c?.taskKey,search:V,replace:c?.replace??!0})},e[1]=t,e[2]=r,e[3]=i,e[4]=s,e[5]=n):n=e[5];const m=n;let l;e[6]!==t?(l=u=>t({to:".",search:z,replace:u?.replace??!0}),e[6]=t,e[7]=l):l=e[7];const f=l;let d;return e[8]!==f||e[9]!==m?(d={openPanel:m,closePanel:f},e[8]=f,e[9]=m,e[10]=d):d=e[10],d}function z(e){return{...e,mainpanel:!1,sidepanel:!0}}export{D as a,x as r,A as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,a2 as N,
|
|
1
|
+
import{c as T,a2 as N,b6 as U,m as $,K as B}from"./index-DwUSgMrk.js";import{m as F}from"./match-site-slug-config-D3fUJ6vX.js";import{u as K}from"./use-file-configs-DJCoczIU.js";import{e as q}from"./use-organization-settings-B4xXaxr4.js";import{u as Q}from"./use-main-schema-v8-Cys0il1A.js";import{r as k,a as L}from"./site-slug-DebpOoQq.js";const d=["overview","reports","board","site-editor","assets","releases","hosting","e2e","analytics","cdn","automations","experiments"],Y=["overview","reports","board","site-editor"],z=1,G=["assets","releases","hosting","e2e","analytics","cdn","experiments"];function oe(t,e,n){if(!t)return{project:n??null,resolvedScopeId:null};const s=e?.id===t?e:n?.id===t?n:null;return{project:s,resolvedScopeId:s?t:null}}function ce(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function W(t,e){const n=new Set(t??[]);if(e!==z)for(const s of Y)n.add(s);return d.filter(s=>n.has(s))}function H(t){return d.some(e=>e===t)}function X(t){return G.some(e=>e===t)}function Z(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,releases:t&&e.releases,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:t&&e.experiments,automations:!0}}function ae(t,e,n){const s=Z(e,n);return t?s:{...s,overview:!0,reports:!0,board:!0}}function le(t,e,n){const s=new Set(W(t,n));return d.filter(r=>e[r]&&s.has(r))}function ue(t,e,n){return n||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function de(t){return d.filter(e=>t[e])}function M(t,e,n){return!H(t)||e[t]?!1:X(t)?t==="releases"?!n.releases:!(t==="assets"?n.assets:n.siteAccess):!0}function fe(t,e,n,s,r){return M(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,n)||t==="content"&&!s.includes("content")||t==="code"&&r&&!s.includes("code")}function me(t,e,n,s){const r=new Set(W(t,s));return n?r.add(e):r.delete(e),d.filter(i=>r.has(i))}function Pe(t){const e=T.c(22),{org:n}=N(),s=U(),r=q(),i=K(),o=Q(t?.id),f=o==="v8";let m;e[0]!==t?(m=k(t),e[0]=t,e[1]=m):m=e[1];const c=m,P=s.hostingEnabled===!0,S=s.monitorEnabled===!0||s.auth.localMode===!0,j=(P||S)&&!!c,C=O(n.slug,c,j);let p;e[2]!==t?(p=L(t),e[2]=t,e[3]=p):p=e[3];const V=p,w=S&&!!V&&V!==c,D=O(n.slug,V,w),u=C.data?.owned===!0,J=w?D.data?.owned===!0:u;let a;e[4]!==i.data?.configs?(a=i.data?.configs??[],e[4]=i.data?.configs,e[5]=a):a=e[5];let g;e[6]!==c||e[7]!==a?(g=F(a,c),e[6]=c,e[7]=a,e[8]=g):g=e[8];const E=!!g,y=f&&!!t?.metadata?.siteSlug,A=P&&u&&r.hosting,h=P&&u&&r.e2e,x=P&&u&&r.analytics,_=S&&(o==="v8"||o==="error"?u:J)&&r.monitor;let l;e[9]!==r.experiments||e[10]!==E||e[11]!==y||e[12]!==A||e[13]!==h||e[14]!==x||e[15]!==_?(l={assets:E,releases:y,hosting:A,e2e:h,analytics:x,cdn:_,experiments:r.experiments},e[9]=r.experiments,e[10]=E,e[11]=y,e[12]=A,e[13]=h,e[14]=x,e[15]=_,e[16]=l):l=e[16];const I=!!c&&i.isPending,R=!!t?.metadata?.siteSlug&&(o==="loading"||o==="error"),v=j&&C.isPending||w&&D.isPending;let b;return e[17]!==l||e[18]!==I||e[19]!==R||e[20]!==v?(b={presence:l,assetsPending:I,releasesPending:R,siteAccessPending:v},e[17]=l,e[18]=I,e[19]=R,e[20]=v,e[21]=b):b=e[21],b}function O(t,e,n){const s=T.c(10);let r;s[0]!==t||s[1]!==e?(r=B.hostingAccess(t,e??""),s[0]=t,s[1]=e,s[2]=r):r=s[2];let i;s[3]!==t||s[4]!==e?(i=async()=>{const f=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return f.ok?await f.json():{owned:!1,canWrite:!1}},s[3]=t,s[4]=e,s[5]=i):i=s[5];let o;return s[6]!==n||s[7]!==r||s[8]!==i?(o={queryKey:r,queryFn:i,enabled:n,staleTime:6e4},s[6]=n,s[7]=r,s[8]=i,s[9]=o):o=s[9],$(o)}export{G as P,z as a,oe as b,ae as c,fe as d,W as e,M as f,de as g,ue as h,Z as p,ce as r,le as s,me as t,Pe as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as I,f as P,u as y,d as T,ai as N,dc as R,db as E,ac as _}from"./index-DwUSgMrk.js";import{i as k,c as C,p as O}from"./repository-binding-Ctv5jACU.js";const M=1;function b(e){return(e??[]).filter(R)}function V(){const e=I.c(4);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const n=P(o);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const t=y(c);if(n.agentId)return n.agentId;let a;return e[2]!==t?(a="virtualmcpid"in t&&typeof t.virtualmcpid=="string"?t.virtualmcpid.trim():void 0,e[2]=t,e[3]=a):a=e[3],a||null}function B(){const e=I.c(16),o=T();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const c=P(n),t=N(),a=k(),i=b(a),s=V(),j=i.find(r=>r.id===s)??null;let l;e[1]!==a||e[2]!==s?(l=s&&a.length>0&&!a.some(r=>r.id===s)?s:null,e[1]=a,e[2]=s,e[3]=l):l=e[3];const h=C(l),u=j??b(h?[h]:[])[0]??null;let m;e[4]!==t||e[5]!==o||e[6]!==c||e[7]!==s?(m=r=>{if(r===s&&t!==void 0)return;const v=c.org??"",S=w;if(r){E(o,{org:v,agentId:r,tabId:t==="board"||t==="reports"?t:"overview",search:S,replace:!1});return}if(t==="board"){o({to:_.tasks,params:{org:v,taskKey:void 0},search:S});return}o({to:_.home,params:{org:v},search:S})},e[4]=t,e[5]=o,e[6]=c,e[7]=s,e[8]=m):m=e[8];const f=m,d=O(u),g=i.length>=M;let p;return e[9]!==u||e[10]!==i||e[11]!==s||e[12]!==f||e[13]!==d||e[14]!==g?(p={scopeId:s,project:u,repo:d,projects:i,hasProjects:g,setScope:f},e[9]=u,e[10]=i,e[11]=s,e[12]=f,e[13]=d,e[14]=g,e[15]=p):p=e[15],p}function w(e){return{...e,virtualmcpid:void 0,thread:void 0,mainpanel:void 0}}export{V as a,b as s,B as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m,c as f,k as I,au as A,aw as j,aj as y}from"./index-DwUSgMrk.js";import{P as N}from"./project-apps-DjY-pfpC.js";import{c as b}from"./repository-binding-Ctv5jACU.js";function C(n,t){const e=new Set(t);return e.size===0?n:n.filter(c=>e.has(c.connectionId))}function E(n){const t=n.metadata?.ui;return Array.isArray(t?.pinnedViews)?t.pinnedViews.filter(e=>!!e&&typeof e=="object"&&typeof e.connectionId=="string"&&typeof e.toolName=="string"&&["undefined","string"].includes(typeof e.label)&&(e.icon==null||typeof e.icon=="string")):[]}const P=4;function d(n,t){return n.app===t.app&&n.projectId===t.projectId}function R(n,t,e=P){return[t,...n.filter(c=>!d(c,t))].slice(0,e)}function w(n,t){return n.filter(e=>!d(e,t))}function h(n,t,e){const c=n.findLast(l=>l.staticData.mainView);if(!c)return null;const{mainView:r,siteEditorView:s,local:i}=c.staticData;if(!r)return null;const o=c.params,a=o?.agentId;if(a&&r==="app"&&o.connectionId&&o.toolName)return{app:e(o.connectionId,o.toolName),projectId:a,connection:{id:o.connectionId,toolName:o.toolName}};const p=s?"site-editor":r;return t(p)?a?{app:p,projectId:a}:i?{app:p,projectId:null}:null:null}const u=[];function V(n){const t=f.c(9);let e;t[0]!==n?(e=j.recentApps(n),t[0]=n,t[1]=e):e=t[1];const[c,r]=A(e,u),s=Array.isArray(c)?c:u;let i,o;t[2]!==r?(i=p=>r(l=>R(Array.isArray(l)?l:[],p)),o=p=>r(l=>w(Array.isArray(l)?l:[],p)),t[2]=r,t[3]=i,t[4]=o):(i=t[3],o=t[4]);let a;return t[5]!==s||t[6]!==i||t[7]!==o?(a={recent:s,remember:i,forget:o},t[5]=s,t[6]=i,t[7]=o,t[8]=a):a=t[8],a}function O(){const n=f.c(1);let t;return n[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:S,structuralSharing:!0},n[0]=t):t=n[0],I(t)}function S(n){return h(n.matches,T,y)}function T(n){return n in N}function g(n){const{remember:t}=V(n),e=O(),c=b(e?.projectId),r=e?.projectId&&c?.id===e.projectId?c.title:null,s=e?.connection&&c?E(c).find(o=>o.connectionId===e.connection?.id&&o.toolName===e.connection.toolName):void 0,i=e?.connection&&{id:e.connection.id,toolName:e.connection.toolName,label:s?.label||e.connection.toolName,icon:s?.icon};m.useEffect(()=>{!e?.projectId||!r||t({app:e.app,projectId:e.projectId,projectTitle:r,...i&&{connection:i}})},[n,e?.app,e?.projectId,r,i?.label,i?.icon])}export{O as a,V as b,C as k,E as p,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Q,a2 as _,o as k}from"./index-
|
|
1
|
+
import{c as Q,a2 as _,o as k}from"./index-DwUSgMrk.js";import{a as E,f as P}from"./repository-binding-Ctv5jACU.js";import{r as z}from"./serial-task-queue-CGOeQgpr.js";function O(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function F(t){return t?.name||t?.email?.split("@")[0]||void 0}function K(t){const e=O(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function T(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function V(t,e){return t.filter(s=>s.branch!==e)}function j(t,e,s){return t.map(r=>r.branch===e?{...r,name:s}:r)}const w=["orange","violet","blue","pink","amber","teal"];function W(t){return w[t%w.length]}function G(t,e){const s=`${e} `,r=t.reduce((c,m)=>{if(!m.name.startsWith(s))return c;const n=Number(m.name.slice(s.length));return Number.isInteger(n)&&n>c?n:c},0);return`${e} ${r+1}`}const v={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function H(t){return t&&v[t]||"bg-muted-foreground"}function J(t){const e=Q.c(27),s=E(t);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={silent:!0},e[0]=r):r=e[0];const c=P(r),{org:m}=_(),n=k();let b;e[1]!==s?.metadata?.releases?(b=s?.metadata?.releases??[],e[1]=s?.metadata?.releases,e[2]=b):b=e[2];const f=b;let d;e[3]!==m||e[4]!==t?(d=a=>a[1]===m.id&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"&&a[5]===t,e[3]=m,e[4]=t,e[5]=d):d=e[5];const u=d;let p;e[6]!==u||e[7]!==n||e[8]!==f?(p=()=>{for(const[,a]of n.getQueriesData({predicate:o=>u(o.queryKey)}))if(a?.item)return a.item.metadata?.releases??[];return f},e[6]=u,e[7]=n,e[8]=f,e[9]=p):p=e[9];const $=p;let h;e[10]!==c||e[11]!==u||e[12]!==n||e[13]!==$||e[14]!==t?(h=a=>z(`vm-releases:${t}`,async()=>{const o=$(),g=a(o);if(g!==o){n.setQueriesData({predicate:l=>u(l.queryKey)},l=>l?.item?{item:{...l.item,metadata:{...l.item.metadata,releases:g}}}:l);try{await c.update.mutateAsync({id:t,data:{metadata:{releases:g}}})}catch(l){const A=l;throw n.invalidateQueries({predicate:N=>u(N.queryKey)}),A}}}),e[10]=c,e[11]=u,e[12]=n,e[13]=$,e[14]=t,e[15]=h):h=e[15];const i=h;let R;e[16]!==i?(R=a=>i(o=>T(o,a)),e[16]=i,e[17]=R):R=e[17];const D=R;let C;e[18]!==i?(C=(a,o)=>i(g=>j(g,a,o)),e[18]=i,e[19]=C):C=e[19];const S=C;let x;e[20]!==i?(x=a=>i(o=>V(o,a)),e[20]=i,e[21]=x):x=e[21];const L=x;let y;return e[22]!==D||e[23]!==L||e[24]!==f||e[25]!==S?(y={releases:f,createRelease:D,renameRelease:S,deleteRelease:L},e[22]=D,e[23]=L,e[24]=f,e[25]=S,e[26]=y):y=e[26],y}export{G as a,F as b,K as g,W as n,H as r,J as u};
|
package/dist/client/assets/{use-reports-diagnostic-COAemppC.js → use-reports-diagnostic-Bf7x0h8K.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,
|
|
1
|
+
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,fd as L,Y as K,M}from"./index-DwUSgMrk.js";import{m as O}from"./use-mcp-client-CvE7itXw.js";import{u as h}from"./companions-core-DzyeM-yJ.js";function D(n){return n?n.scanned_at?"ready":n.run_in_progress?"generating":"none":"none"}function U(n){return n.connectionQueryPending?!0:!n.hasConnection||n.cdClientFailed?!1:n.diagnosticQueryPending}const b=2e4;function q(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function Y(){const n=N.c(24),{org:e}=Q(),t=F.REPORTS(e.id);let l;n[0]!==e.id||n[1]!==e.slug?(l=O({connectionId:A,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=l):l=n[2];const{data:p}=f(l),u=f({queryKey:T.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const R=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(R)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=T.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const R=await s.callTool({name:L,arguments:{}});return h(R).diagnostic??null},n[3]=s,n[4]=i):i=n[4];let d;n[5]!==C||n[6]!==E||n[7]!==i?(d={queryKey:C,enabled:E,retry:1,refetchInterval:v,queryFn:i},n[5]=C,n[6]=E,n[7]=i,n[8]=d):d=n[8];const r=f(d),o=m?.metadata?.siteUrl,P=r.data??null,w=r.isSuccess,I=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==I?(a=U({connectionQueryPending:u.isPending,hasConnection:I,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=I,n[13]=a):a=n[13];const S=typeof o=="string"&&o?o:null;let c;n[14]!==o?(c=q(o),n[14]=o,n[15]=c):c=n[15];const _=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==_||n[20]!==P||n[21]!==a||n[22]!==S?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:S,host:c,connectionId:t,cdClient:_},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=_,n[20]=P,n[21]=a,n[22]=S,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&D(n.state.data)==="generating"?b:!1}function j(n,e){return{to:K.app,params:{org:n.slug,agentId:M(n.id),connectionId:e,toolName:L},search:{}}}export{D as d,j as r,Y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a2 as c,an as r,K as l,R as d,o as f,e as S}from"./index-
|
|
1
|
+
import{c as u,a2 as c,an as r,K as l,R as d,o as f,e as S}from"./index-DwUSgMrk.js";function C(){const e=u.c(7),{org:i}=c(),n=r();let a;e[0]!==i.id?(a=l.secrets(i.id),e[0]=i.id,e[1]=a):a=e[1];let t;e[2]!==n?(t=async()=>await n.call("SECRET_LIST",{}),e[2]=n,e[3]=t):t=e[3];let s;e[4]!==a||e[5]!==t?(s={queryKey:a,staleTime:6e4,queryFn:t},e[4]=a,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:i}=c(),n=r(),a=f();let t;e[0]!==n?(t=async y=>await n.call("SECRET_CREATE",{...y}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==a?(s=()=>{a.invalidateQueries({queryKey:l.secrets(i.id)})},e[2]=i,e[3]=a,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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as M,b as ee,r as b,j as i,l as te,D as re,q as se,v as oe,I as ie,s as le}from"./index-DwUSgMrk.js";import{a as G,f as H}from"./UserSquare-CaU54i61.js";import{b as ne}from"./agent-icon-sWZwj0Es.js";import{i as ce}from"./SearchMd-D_t1juud.js";import{O as Y,Q as ae,T as _}from"./blocks-tab-states-llhicB0-.js";import{az as fe,ad as ue,w as de,aA as me,H as ve}from"./secret-ciphertext-DFilJK15.js";import{d as X,r as pe}from"./section-preview-url-7zfngvgW.js";import{a as xe}from"./input-BcdjLg5X.js";import{c as he,u as ge,K as we}from"./site-editor-toast-CWvkPJE7.js";function Se(r){return r.schema?.definitions??r.schema?.$defs??{}}function Z(r,e){const t=Se(e),s=t[btoa(r)];if(!s)return[];const o=[s];if(Array.isArray(s.allOf)){const n=s.allOf.find(l=>typeof l.$ref=="string")?.$ref;if(typeof n=="string"){const l=t[n.replace("#/definitions/","")];l&&o.push(l)}}return o}function be(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s?.includes("{{{"))return s}}function ze(r,e){if(!e)return;const t=fe(r);if(!t)return;const s=be(t.resolveType,e);if(!s)return;const o=ae(s,t.data);if(o)return Y(o)}function je(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s&&!s.includes("{{"))return Y(s)}}const ye=12,z=new Set,F=new Set;function Ne(){for(const r of F)r()}function Re(r){return z.has(r)?!0:z.size>=ye?!1:(z.add(r),!0)}function J(r){z.delete(r)&&Ne()}function Pe(r){return F.add(r),()=>{F.delete(r)}}function Ie(r,e){const t=b.useRef(!1),[s,o]=b.useState(!1),n=b.useRef(null),l=b.useRef(null),f=b.useRef(null),c=b.useRef(r);c.current=r;const[p]=b.useState(()=>{const u=()=>{f.current?.(),f.current=null},d=()=>t.current?!0:Re(e)?(t.current=!0,o(!0),u(),!0):!1;return a=>{if(l.current=a,n.current&&(n.current.disconnect(),n.current=null),u(),!a){t.current&&(J(e),t.current=!1,o(!1));return}queueMicrotask(()=>{if(l.current!==a)return;const w=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!d()&&!f.current&&(f.current=Pe(()=>{l.current===a&&d()}));return}u(),t.current&&(J(e),t.current=!1,o(!1))},{root:c.current.current,rootMargin:"160px 0px"});w.observe(a),n.current=w})}});return{ref:p,iframeActive:s}}function Te(r){const e=M.c(9),{previewUrl:t,title:s,scrollRootRef:o,slotId:n}=r,{ref:l,iframeActive:f}=Ie(o,n),[c,p]=b.useState(!1),u=_()?H:G;let d;e[0]!==u||e[1]!==f||e[2]!==c||e[3]!==t||e[4]!==s?(d=f?i.jsxs(i.Fragment,{children:[!c&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:i.jsx(u,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),i.jsx("iframe",{src:t,title:`Preview ${s}`,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:()=>p(!0)})]}):i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(u,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=u,e[1]=f,e[2]=c,e[3]=t,e[4]=s,e[5]=d):d=e[5];let a;return e[6]!==l||e[7]!==d?(a=i.jsx("div",{ref:l,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:d}),e[6]=l,e[7]=d,e[8]=a):a=e[8],a}function Ce(r){const e=M.c(3),{image:t}=r,s=_()?H:G;let o;return e[0]!==s||e[1]!==t?(o=i.jsx("div",{className:"relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-muted/40",children:t?i.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:"h-full w-full object-cover"}):i.jsx(s,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=s,e[1]=t,e[2]=o):o=e[2],o}function Ue(r){const e=M.c(28),{entry:t,previewUrl:s,image:o,scrollRootRef:n,onSelect:l}=r,c=_()?t.isSavedBlock?ne:H:G,p=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let u;e[0]!==p?(u=te("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors shadow-edge","hover:border-primary/40 hover:bg-accent",p),e[0]=p,e[1]=u):u=e[1];let d;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==o||e[5]!==s||e[6]!==n?(d=s?i.jsx(Te,{previewUrl:s,title:t.title,scrollRootRef:n,slotId:t.resolveType}):i.jsx(Ce,{image:o}),e[2]=t.resolveType,e[3]=t.title,e[4]=o,e[5]=s,e[6]=n,e[7]=d):d=e[7];let a;e[8]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ve}:void 0,e[8]=t.isSavedBlock,e[9]=a):a=e[9];let w;e[10]!==c||e[11]!==a?(w=i.jsx(c,{className:"h-4 w-4 shrink-0",style:a}),e[10]=c,e[11]=a,e[12]=w):w=e[12];let m;e[13]!==t.title?(m=i.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[13]=t.title,e[14]=m):m=e[14];let x;e[15]!==t.description?(x=t.description&&i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[15]=t.description,e[16]=x):x=e[16];let h;e[17]!==m||e[18]!==x?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[m,x]}),e[17]=m,e[18]=x,e[19]=h):h=e[19];let g;e[20]!==w||e[21]!==h?(g=i.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[w,h]}),e[20]=w,e[21]=h,e[22]=g):g=e[22];let S;return e[23]!==l||e[24]!==u||e[25]!==d||e[26]!==g?(S=i.jsxs("button",{type:"button",onClick:l,className:u,children:[d,g]}),e[23]=l,e[24]=u,e[25]=d,e[26]=g,e[27]=S):S=e[27],S}function qe(r){const e=M.c(51),{open:t,onOpenChange:s,meta:o,decofile:n,previewBaseUrl:l,onSelect:f}=r,c=ee(),[p,u]=b.useState(""),[d,a]=b.useState(t),w=b.useRef(null);t!==d&&(a(t),t&&u(""));let m,x,h,g,S,y,N,R,j,P,I;if(e[0]!==n||e[1]!==o||e[2]!==s||e[3]!==f||e[4]!==t||e[5]!==l||e[6]!==p||e[7]!==c){const q=t&&o&&n?ue(o,n):[],W=o?de(o):"",V=n?me(n):void 0,K=new Map;if(t&&W&&l)for(const v of q)K.set(v.resolveType,X(l,W,v.previewBlock,V));const E=p.trim().toLowerCase(),Q=E?q.filter(v=>v.title.toLowerCase().includes(E)||v.resolveType.toLowerCase().includes(E)||v.description?.toLowerCase().includes(E)):q;x=re,P=t,I=s,m=se,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let A;e[19]!==c?(A=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=A):A=e[20];let B;e[21]!==A?(B=i.jsx(oe,{children:A}),e[21]=A,e[22]=B):B=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=i.jsx(ce,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=$):$=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=v=>u(v.target.value),e[24]=D):D=e[24];let k;e[25]!==c?(k=c("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=c,e[26]=k):k=e[26];let L;e[27]!==p||e[28]!==k?(L=i.jsxs("div",{className:"relative pt-2",children:[$,i.jsx(ie,{value:p,onChange:D,placeholder:k,className:"h-9 pl-8"})]}),e[27]=p,e[28]=k,e[29]=L):L=e[29],e[30]!==B||e[31]!==L?(j=i.jsxs(le,{className:"shrink-0 border-b px-4 py-3 text-left",children:[B,L]}),e[30]=B,e[31]=L,e[32]=j):j=e[32],S=w,y="min-h-0 flex-1 overflow-y-auto",h="p-4",g=Q.length===0?i.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:c("sectionsEditor.addSectionModal.noSectionsFound")}):i.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Q.map(v=>i.jsx(Ue,{entry:v,scrollRootRef:w,previewUrl:l?K.get(v.resolveType)??X(l,W,v.previewBlock,V):null,image:l||!o?void 0:je(v.resolveType,o),onSelect:()=>f(v)},v.resolveType))}),e[0]=n,e[1]=o,e[2]=s,e[3]=f,e[4]=t,e[5]=l,e[6]=p,e[7]=c,e[8]=m,e[9]=x,e[10]=h,e[11]=g,e[12]=S,e[13]=y,e[14]=N,e[15]=R,e[16]=j,e[17]=P,e[18]=I}else m=e[8],x=e[9],h=e[10],g=e[11],S=e[12],y=e[13],N=e[14],R=e[15],j=e[16],P=e[17],I=e[18];let T;e[33]!==h||e[34]!==g?(T=i.jsx("div",{className:h,children:g}),e[33]=h,e[34]=g,e[35]=T):T=e[35];let C;e[36]!==T||e[37]!==S||e[38]!==y?(C=i.jsx("div",{ref:S,className:y,children:T}),e[36]=T,e[37]=S,e[38]=y,e[39]=C):C=e[39];let U;e[40]!==m||e[41]!==C||e[42]!==N||e[43]!==R||e[44]!==j?(U=i.jsxs(m,{closeButtonClassName:N,className:R,children:[j,C]}),e[40]=m,e[41]=C,e[42]=N,e[43]=R,e[44]=j,e[45]=U):U=e[45];let O;return e[46]!==x||e[47]!==U||e[48]!==P||e[49]!==I?(O=i.jsx(x,{open:P,onOpenChange:I,children:U}),e[46]=x,e[47]=U,e[48]=P,e[49]=I,e[50]=O):O=e[50],O}function We(r){const e=M.c(4),{previewServerUrl:t,runtime:s}=xe(r.virtualMcpId),{url:o}=he(r.virtualMcpId),n=ge(r.virtualMcpId,r.branch),l=s==="cms";if(we(n))return null;if(o)return o;let f;return e[0]!==l||e[1]!==r.sandboxUrl||e[2]!==t?(f=pe({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:l}),e[0]=l,e[1]=r.sandboxUrl,e[2]=t,e[3]=f):f=e[3],f}export{qe as A,ze as g,Z as s,We as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as C,c as j,j as o,l as y,by as A,aU as R,a4 as H,b5 as L,b as V,d as W,a2 as F}from"./index-DwUSgMrk.js";import{m as q}from"./use-chat-layout-state-DeeoSPAs.js";import{N as U}from"./agent-icon-sWZwj0Es.js";import{b as G,a as E,T as P,c as z}from"./tooltip-7xQKXZXx.js";import{T as J}from"./toolbar-icon-button-pGWMZONn.js";import{a as K}from"./shell-layout-CCN75UAi.js";import{u as Q}from"./use-mobile-D6Ou0NEP.js";import{b as X,c as Y,S as Z,d as ee,a as te}from"./sheet-B-tTREXV.js";const se="15rem",ae="18rem",ie="4.5rem",D=C.createContext(null);function I(){const s=C.useContext(D);if(!s)throw new Error("useSidebar must be used within a SidebarProvider.");return s}function ge(s){const e=j.c(19),{children:t,defaultOpen:a,open:i,onOpenChange:n}=s,d=a===void 0?!1:a,r=Q(),[l,c]=C.useState(d),[p,v]=C.useState(!1),u=i!==void 0,f=u?i:l;let h;e[0]!==u||e[1]!==n?(h=M=>{u||c(M),n?.(M)},e[0]=u,e[1]=n,e[2]=h):h=e[2];const b=h;let w;e[3]!==r||e[4]!==f||e[5]!==b?(w=()=>{r?v(ne):b(!f)},e[3]=r,e[4]=f,e[5]=b,e[6]=w):w=e[6];const N=w,x=f?"expanded":"collapsed";let m;e[7]!==r||e[8]!==f||e[9]!==p||e[10]!==b||e[11]!==x||e[12]!==N?(m={state:x,open:f,setOpen:b,isMobile:r,openMobile:p,setOpenMobile:v,toggleSidebar:N},e[7]=r,e[8]=f,e[9]=p,e[10]=b,e[11]=x,e[12]=N,e[13]=m):m=e[13];const S=m;let g;e[14]!==t?(g=o.jsx(G,{delayDuration:0,children:t}),e[14]=t,e[15]=g):g=e[15];let T;return e[16]!==S||e[17]!==g?(T=o.jsx(D.Provider,{value:S,children:g}),e[16]=S,e[17]=g,e[18]=T):T=e[18],T}function ne(s){return!s}function ve(s){const e=j.c(14);let t,a,i,n;e[0]!==s?({className:a,style:n,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n):(t=e[1],a=e[2],i=e[3],n=e[4]);let d;e[5]!==n?(d={"--sidebar-width":se,"--sidebar-width-icon":ie,...n},e[5]=n,e[6]=d):d=e[6];const r=d;let l;e[7]!==a?(l=y("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=l):l=e[8];let c;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==l?(c=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:l,...i,children:t}),e[9]=t,e[10]=i,e[11]=r,e[12]=l,e[13]=c):c=e[13],c}function Se(s){const e=j.c(36);let t,a,i,n,d;e[0]!==s?({side:n,variant:d,className:a,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5]);const r=n===void 0?"left":n,l=d===void 0?"sidebar":d,{isMobile:c,state:p,openMobile:v,setOpenMobile:u}=I();if(c){let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T={"--sidebar-width":ae},e[6]=T):T=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(Y,{className:"sr-only",children:[o.jsx(Z,{children:"Sidebar"}),o.jsx(ee,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=o.jsxs(te,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:T,side:r,children:[M,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let B;return e[13]!==v||e[14]!==i||e[15]!==u||e[16]!==_?(B=o.jsx(X,{open:v,onOpenChange:u,...i,children:_}),e[13]=v,e[14]=i,e[15]=u,e[16]=_,e[17]=B):B=e[17],B}const f=p==="expanded",h=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let b;e[18]!==h?(b=y("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",h),e[18]=h,e[19]=b):b=e[19];const w=f?void 0:"icon",N=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==N?(x=y("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",N,a),e[20]=a,e[21]=N,e[22]=x):x=e[22];let m;e[23]!==t?(m=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=m):m=e[24];let S;e[25]!==i||e[26]!==x||e[27]!==m?(S=o.jsx("div",{"data-slot":"sidebar-container",className:x,...i,children:m}),e[25]=i,e[26]=x,e[27]=m,e[28]=S):S=e[28];let g;return e[29]!==r||e[30]!==p||e[31]!==b||e[32]!==w||e[33]!==S||e[34]!==l?(g=o.jsx("div",{className:b,"data-state":p,"data-collapsible":w,"data-variant":l,"data-side":r,"data-slot":"sidebar",children:S}),e[29]=r,e[30]=p,e[31]=b,e[32]=w,e[33]=S,e[34]=l,e[35]=g):g=e[35],g}function je(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=y("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function we(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=y("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ne(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=y("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Te(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=y("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function ye(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=y("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const le=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ce(s){const e=j.c(28);let t,a,i,n,d,r,l;e[0]!==s?({asChild:i,isActive:n,variant:d,size:r,tooltip:l,className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r,e[7]=l):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6],l=e[7]);const c=i===void 0?!1:i,p=n===void 0?!1:n,v=d===void 0?"default":d,u=r===void 0?"default":r,f=c?A:"button",{isMobile:h}=I();let b;e[8]!==t||e[9]!==u||e[10]!==v?(b=y(le({variant:v,size:u}),t),e[8]=t,e[9]=u,e[10]=v,e[11]=b):b=e[11];let w;e[12]!==f||e[13]!==p||e[14]!==a||e[15]!==u||e[16]!==b?(w=o.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":p,className:b,...a}),e[12]=f,e[13]=p,e[14]=a,e[15]=u,e[16]=b,e[17]=w):w=e[17];const N=w;if(!l)return N;if(typeof l=="string"){let g;e[18]!==l?(g={children:l},e[18]=l,e[19]=g):g=e[19],l=g}let x;e[20]!==N?(x=o.jsx(P,{asChild:!0,children:N}),e[20]=N,e[21]=x):x=e[21];let m;e[22]!==h||e[23]!==l?(m=o.jsx(E,{side:"right",align:"center",hidden:h,...l}),e[22]=h,e[23]=l,e[24]=m):m=e[24];let S;return e[25]!==x||e[26]!==m?(S=o.jsxs(z,{children:[x,m]}),e[25]=x,e[26]=m,e[27]=S):S=e[27],S}function re(){const s=j.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},s[0]=e):e=s[0],!!H(e)}const O=C.createContext(null);function Me(s){const e=j.c(5),{children:t}=s,[a,i]=C.useState(null);let n;e[0]!==a?(n={target:a,setTarget:i},e[0]=a,e[1]=n):n=e[1];let d;return e[2]!==t||e[3]!==n?(d=o.jsx(O,{value:n,children:t}),e[2]=t,e[3]=n,e[4]=d):d=e[4],d}function oe(){const s=C.use(O);if(!s)throw new Error("Sidebar thread controls require a Layout");return s}function k(s){const e=j.c(17),{open:t,onToggle:a}=s,i=V(),{isMobile:n,setOpenMobile:d}=I(),r=t?"page.closeThread":"page.openThread";let l;e[0]!==i||e[1]!==r?(l=i(r),e[0]=i,e[1]=r,e[2]=l):l=e[2];const c=l;let p;e[3]!==n||e[4]!==a||e[5]!==d?(p=()=>{a(),n&&d(!1)},e[3]=n,e[4]=a,e[5]=d,e[6]=p):p=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(U,{size:16}),e[7]=v):v=e[7];let u;e[8]!==c||e[9]!==t||e[10]!==p?(u=o.jsx(P,{asChild:!0,children:o.jsx(J,{"aria-label":c,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:p,children:v})}),e[8]=c,e[9]=t,e[10]=p,e[11]=u):u=e[11];let f;e[12]!==c?(f=o.jsx(E,{side:"right",children:c}),e[12]=c,e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==f?(h=o.jsxs(z,{children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16],h}function $e(s){const e=j.c(3),t=C.use(O);let a;return e[0]!==s||e[1]!==t?(a=t?.target?L.createPortal(o.jsx(k,{...s}),t.target):null,e[0]=s,e[1]=t,e[2]=a):a=e[2],a}function _e(){const s=j.c(11),{setTarget:e}=oe(),t=re(),{isMobile:a}=I(),i=W(),{org:n}=F(),{openSidePanel:d}=K();let r;s[0]!==e?(r=o.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),s[0]=e,s[1]=r):r=s[1];let l;s[2]!==t||s[3]!==a||s[4]!==i||s[5]!==d||s[6]!==n?(l=o.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:o.jsx(k,{open:!1,onToggle:()=>{t?i({to:"/$org/home",params:{org:n.slug},search:{sidepanel:!0,mainpanel:!a}}):a?i({to:".",search:de,replace:!0}):d()}})}),s[2]=t,s[3]=a,s[4]=i,s[5]=d,s[6]=n,s[7]=l):l=s[7];let c;return s[8]!==r||s[9]!==l?(c=o.jsxs(o.Fragment,{children:[r,l]}),s[8]=r,s[9]=l,s[10]=c):c=s[10],c}function de(s){return{...s,...q("chat")}}function Ie(){const{state:s,isMobile:e}=I();return s==="collapsed"&&!e}export{Ce as S,Te as a,ye as b,I as c,we as d,_e as e,Ne as f,Se as g,re as h,ge as i,ve as j,Me as k,je as l,$e as m,Ie as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a2 as f,an as y,m,o as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,a2 as f,an as y,m,o as g,e as T,K as l,t as E}from"./index-DwUSgMrk.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 O,f,m as S,K as _,ap as R,a2 as i,an as l}from"./index-
|
|
1
|
+
import{c as O,f,m as S,K as _,ap as R,a2 as i,an as l}from"./index-DwUSgMrk.js";const K=["TASK_BOARD_OPERATION","TASK_BOARD_REWORK","TASK_BOARD_DELIVERY","TASK_BOARD_SPRINTS","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function B(){const t=O.c(8),o=f({strict:!1}).org??"";let e;t[0]!==o?(e=_.taskBoardAdminOrgs(o),t[0]=o,t[1]=e):e=t[1];const s=!!o;let c;t[2]!==o?(c=()=>R(o,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=o,t[3]=c):c=t[3];let n;return t[4]!==e||t[5]!==s||t[6]!==c?(n={queryKey:e,enabled:s,queryFn:c,staleTime:3e5},t[4]=e,t[5]=s,t[6]=c,t[7]=n):n=t[7],S(n)}function y(t,o){const e=O.c(14),{locator:s}=i(),c=l();let n;e[0]!==s||e[1]!==o.from||e[2]!==o.org||e[3]!==o.project||e[4]!==o.to||e[5]!==t?(n=_.taskBoardAnalytics(s,t,o.org??"",o.project??"",o.from,o.to),e[0]=s,e[1]=o.from,e[2]=o.org,e[3]=o.project,e[4]=o.to,e[5]=t,e[6]=n):n=e[6];let T;e[7]!==o||e[8]!==c||e[9]!==t?(T=()=>c.call(t,o),e[7]=o,e[8]=c,e[9]=t,e[10]=T):T=e[10];let A;return e[11]!==n||e[12]!==T?(A={queryKey:n,queryFn:T},e[11]=n,e[12]=T,e[13]=A):A=e[13],S(A)}function D(t,o){const e=O.c(15),{locator:s}=i(),c=l();let n;e[0]!==o||e[1]!==s||e[2]!==t.from||e[3]!==t.org||e[4]!==t.project||e[5]!==t.to?(n=_.taskBoardOperationTasks(s,t.org??"",t.project??"",t.from,t.to,o??""),e[0]=o,e[1]=s,e[2]=t.from,e[3]=t.org,e[4]=t.project,e[5]=t.to,e[6]=n):n=e[6];const T=o!==null;let A;e[7]!==o||e[8]!==t||e[9]!==c?(A=()=>c.call("TASK_BOARD_OPERATION_TASKS",{...t,drill:o??""}),e[7]=o,e[8]=t,e[9]=c,e[10]=A):A=e[10];let u;return e[11]!==n||e[12]!==T||e[13]!==A?(u={queryKey:n,enabled:T,queryFn:A},e[11]=n,e[12]=T,e[13]=A,e[14]=u):u=e[14],S(u)}export{K as A,y as a,D as b,B as u};
|
package/dist/client/assets/{use-task-board-events-CmYlpSMI.js → use-task-board-events-DHmzNQpi.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-CDUMGTb-.js";import{r as e}from"./index-DwUSgMrk.js";import{t as g}from"./watch-sse-pool-wUe9D5Rq.js";const p=()=>0;function v(E){const{orgSlug:r,enabled:t=!0,onUpdate:u,onDelete:c,onResync:o}=E,a=e.useRef(u);a.current=u;const f=e.useRef(c);f.current=c;const d=e.useRef(o);d.current=o;const s=e.useRef(null),R=e.useRef(t),i=e.useRef(r);(!s.current||R.current!==t||i.current!==r)&&(R.current=t,i.current=r,s.current=b=>{if(!t||!r)return()=>{};const S=l=>{let n;try{n=JSON.parse(l.data)}catch{return}n.data&&(l.type===m?f.current?.(n.data.id):a.current(n.data)),b()};return g.subscribe(r,S,()=>d.current?.())}),e.useSyncExternalStore(s.current,p,p)}export{v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,aw as _,c as h,a2 as R,an as T,o as k,m as O,K as A}from"./index-
|
|
1
|
+
import{r as y,aw as _,c as h,a2 as R,an as T,o as k,m as O,K as A}from"./index-DwUSgMrk.js";import{e as B}from"./watch-sse-pool-wUe9D5Rq.js";const w=()=>0;function C(e){const{orgSlug:t,itemId:s,onPrs:r}=e,o=y.useRef(r);o.current=r;const l=y.useRef(null),a=y.useRef(""),i=`${t}:${s??""}`;(!l.current||a.current!==i)&&(a.current=i,l.current=u=>{if(!t||!s)return()=>{};const d=c=>{let n;try{n=JSON.parse(c.data)}catch{return}n.data?.id!==s||!Array.isArray(n.data.prs)||(o.current(n.data.prs),u())};return B.subscribe(t,d)}),y.useSyncExternalStore(l.current,w,w)}const E=1440*60*1e3,D=40;function g(e){try{const t=window.localStorage.getItem(_.taskBoardPrs(e));return t?JSON.parse(t):{}}catch{return{}}}function L(e){const t=Date.now(),s=Object.entries(e).filter(([,r])=>t-r.updatedAt<=E);for(s.sort(([,r],[,o])=>r.updatedAt-o.updatedAt);s.length>D;)s.shift();return Object.fromEntries(s)}function P(e,t){if(typeof window>"u")return null;const s=g(e)[t];return!s||Date.now()-s.updatedAt>E?null:s}function b(e,t,s){if(!(typeof window>"u"))try{const r=g(e);r[t]={data:s,updatedAt:Date.now()},window.localStorage.setItem(_.taskBoardPrs(e),JSON.stringify(L(r)))}catch{}}const v=6e4,K=2e3,N=e=>e.state===null;function q(e){const t=h.c(25),{org:s,locator:r}=R(),o=T(),l=k();let a;t[0]!==e||t[1]!==r||t[2]!==l?(a=S=>{l.setQueryData(A.taskBoardItemPrs(r,e??""),S)},t[0]=e,t[1]=r,t[2]=l,t[3]=a):a=t[3];let i;t[4]!==e||t[5]!==s.slug||t[6]!==a?(i={orgSlug:s.slug,itemId:e,onPrs:a},t[4]=e,t[5]=s.slug,t[6]=a,t[7]=i):i=t[7],C(i);let u;t[8]!==e||t[9]!==r?(u=A.taskBoardItemPrs(r,e??""),t[8]=e,t[9]=r,t[10]=u):u=t[10];const d=!!e;let c,n;t[11]!==e||t[12]!==r?(c=()=>e?P(r,e)?.data??void 0:void 0,n=()=>e?P(r,e)?.updatedAt:void 0,t[11]=e,t[12]=r,t[13]=c,t[14]=n):(c=t[13],n=t[14]);let f;t[15]!==e||t[16]!==r||t[17]!==o?(f=async()=>{const{prs:S}=await o.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:e});return b(r,e,S),S},t[15]=e,t[16]=r,t[17]=o,t[18]=f):f=t[18];let p;return t[19]!==u||t[20]!==d||t[21]!==c||t[22]!==n||t[23]!==f?(p={queryKey:u,enabled:d,refetchInterval:M,initialData:c,initialDataUpdatedAt:n,queryFn:f},t[19]=u,t[20]=d,t[21]=c,t[22]=n,t[23]=f,t[24]=p):p=t[24],O(p)}function M(e){return e.state.data?.some(N)?K:v}export{q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as l,an as c,r as i,R as d,K as T}from"./index-
|
|
1
|
+
import{a2 as l,an as c,r as i,R as d,K as T}from"./index-DwUSgMrk.js";import{u as m}from"./thread-intent-DYNUY6FR.js";const p=[],S=()=>()=>{},h=()=>p;function f(t){const{org:s}=l(),r=c(),n=m(),o=i.useSyncExternalStore(n?.threads.subscribe??S,n?.threads.get??h),e=t===null?null:o.find(a=>a.id===t)??null,{data:u}=d({queryKey:T.ensureTask(s.id,t),queryFn:async()=>{if(t===null)return null;try{const{item:a}=await r.call("COLLECTION_THREADS_GET",{id:t});return a??null}catch{return null}},initialData:e&&!e.partial?e:void 0,select:a=>a?.metadata??null,staleTime:3e4});return e?.metadata??u??null}export{f as u};
|