decocms 4.187.2 → 4.188.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DfAm4o9d.js → AlertCircle-BMWNVIy9.js} +1 -1
- package/dist/client/assets/{AreaChart-Dg_R-EHK.js → AreaChart-BrPv902p.js} +1 -1
- package/dist/client/assets/{ArrowUp-A7Mx0wQq.js → ArrowUp-BKKEXcNo.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-JxGVImer.js → ArrowUpRight-Btj7m-ck.js} +1 -1
- package/dist/client/assets/{Check-DCYpTX7L.js → Check-DPUPYW6l.js} +1 -1
- package/dist/client/assets/{CheckCircle-CAxEgYBD.js → CheckCircle-BmZEB9IH.js} +1 -1
- package/dist/client/assets/{ChevronDown-PFtiUBSQ.js → ChevronDown-D87zTD8t.js} +1 -1
- package/dist/client/assets/{ChevronRight-CxJTFr1Z.js → ChevronRight-CnDa_AcZ.js} +1 -1
- package/dist/client/assets/{ChevronUp-BdH75oDU.js → ChevronUp-BH3Cp92o.js} +1 -1
- package/dist/client/assets/{Copy01-Bc5VfVJK.js → Copy01-CiqiFqus.js} +1 -1
- package/dist/client/assets/{CpuChip01-DWLM6pni.js → CpuChip01-Cn_svuZr.js} +1 -1
- package/dist/client/assets/{CreditCard01-BT88WrjK.js → CreditCard01-v1W8RRlc.js} +1 -1
- package/dist/client/assets/{DotsVertical-BGKdNMuc.js → DotsVertical-CO4E9SfU.js} +1 -1
- package/dist/client/assets/{Eye-Bmz_K6Az.js → Eye-DGigjB3M.js} +1 -1
- package/dist/client/assets/{FilterLines-CoDG45q_.js → FilterLines-GhZh3XDu.js} +1 -1
- package/dist/client/assets/{HardDrive-BtIbx3qj.js → HardDrive-Dz6NAOI2.js} +1 -1
- package/dist/client/assets/{Key01-U9_ySw41.js → Key01-yak7h3IB.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Ct7sobUG.js → LayoutLeft-jgGi42mf.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DZBb956i.js → LinkExternal01-NuKLc8Yq.js} +1 -1
- package/dist/client/assets/{LogOut01-CVO6-MqX.js → LogOut01--3pbcFi8.js} +1 -1
- package/dist/client/assets/{Monitor01-CNIDIRyn.js → Monitor01-D4I2w61I.js} +1 -1
- package/dist/client/assets/{Palette-ieliJ9ri.js → Palette-z3Kcz7js.js} +1 -1
- package/dist/client/assets/{Play-YwjBxXxu.js → Play-9PZd6_Jf.js} +1 -1
- package/dist/client/assets/{Plus-DshatFPI.js → Plus-DYskn0cO.js} +1 -1
- package/dist/client/assets/{SearchLg-CA_csAv5.js → SearchLg-7mfGeopj.js} +1 -1
- package/dist/client/assets/{SearchMd-D51gG9yR.js → SearchMd-CYMySuzS.js} +1 -1
- package/dist/client/assets/{Settings02-DKxAMtG6.js → Settings02-C0fT0522.js} +1 -1
- package/dist/client/assets/{Shield01-DcD-RjAf.js → Shield01-4gfuTS9o.js} +1 -1
- package/dist/client/assets/{Star01-A6Co6I5T.js → Star01-CXabfWMZ.js} +1 -1
- package/dist/client/assets/{Stars01-GAsjgHvR.js → Stars01-XbAnQvBN.js} +1 -1
- package/dist/client/assets/{Stars02-CbrW-bl9.js → Stars02-Dh6Xvbrp.js} +1 -1
- package/dist/client/assets/{Sun-By6pya_9.js → Sun-CRXRDcl2.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-COkct-t0.js → SwitchHorizontal01-b-G9EH49.js} +1 -1
- package/dist/client/assets/{Tool01-DIokgqXj.js → Tool01-C2ehcAb6.js} +1 -1
- package/dist/client/assets/{Tool02-Ddkawasa.js → Tool02-lxMDm9YO.js} +1 -1
- package/dist/client/assets/{Trash01-BnkpBeyG.js → Trash01-iRtrxfoN.js} +1 -1
- package/dist/client/assets/{TrendUp01-C42-Wjl8.js → TrendUp01-DngpYRh4.js} +1 -1
- package/dist/client/assets/{Upload01-CL-S7mCf.js → Upload01-Kqahdb7o.js} +1 -1
- package/dist/client/assets/{User01-Dkl2AAm0.js → User01-rZT_49rW.js} +1 -1
- package/dist/client/assets/{Users01-C5V1wUhw.js → Users01-FeLu0_0d.js} +1 -1
- package/dist/client/assets/{Users03-DvXZQDEh.js → Users03-BFIho2bs.js} +1 -1
- package/dist/client/assets/{X-C0IBj9M7.js → X-BLfDucYz.js} +1 -1
- package/dist/client/assets/{XCircle-D4coMBPk.js → XCircle-DxAYGu_R.js} +1 -1
- package/dist/client/assets/{XClose-DubUci38.js → XClose-C2H4f2ik.js} +1 -1
- package/dist/client/assets/{Zap-cKHE_zIY.js → Zap-BV3ZuA7z.js} +1 -1
- package/dist/client/assets/{ZapSquare-B8T6rKNs.js → ZapSquare-DTR_l-jR.js} +1 -1
- package/dist/client/assets/{access-gate-DYNzAGYH.js → access-gate-CrfjOcNk.js} +1 -1
- package/dist/client/assets/{add-section-modal-CPpEOCSh.js → add-section-modal-DWF3pb1Z.js} +1 -1
- package/dist/client/assets/{agent-icon-kVYCkgDa.js → agent-icon-DaSVSKaK.js} +1 -1
- package/dist/client/assets/{agents-list-BnZIltxK.js → agents-list-Dlt3xEiZ.js} +1 -1
- package/dist/client/assets/{ai-providers-CWVLidjU.js → ai-providers-BY6_rI_n.js} +1 -1
- package/dist/client/assets/{alert-q-AWcpPi.js → alert-BB9s7EnV.js} +1 -1
- package/dist/client/assets/{alert-dialog-CgooVxEs.js → alert-dialog-Dso9NK6j.js} +1 -1
- package/dist/client/assets/{app-editor-GvS8ciIA.js → app-editor-BVuaSXDN.js} +1 -1
- package/dist/client/assets/{auth-catchall-BMoFkvv5.js → auth-catchall-CcQUYAbp.js} +1 -1
- package/dist/client/assets/{auth-entry-DjEw3RXW.js → auth-entry-BrpeW3YS.js} +1 -1
- package/dist/client/assets/{auth-CBvb6Xya.js → auth-jLJx_6PQ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CV0JvC41.js → auth-split-layout-Dey9ODtf.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-D6Cg3rRV.js → authenticate-and-persist-oauth-D3t7MXAy.js} +1 -1
- package/dist/client/assets/{automation-list-row-jyrfVLO8.js → automation-list-row-CUv6BAUz.js} +1 -1
- package/dist/client/assets/{automation-runs-DM4fJpM9.js → automation-runs-LXk2pBTf.js} +1 -1
- package/dist/client/assets/{automations-BnMqcz59.js → automations--M6FS2mS.js} +1 -1
- package/dist/client/assets/{avatar-ICdV2BRR.js → avatar-D134ORAo.js} +1 -1
- package/dist/client/assets/{badge-CCx5WpWL.js → badge-D4w47M6C.js} +1 -1
- package/dist/client/assets/{billing-CP0ccpix.js → billing-ARk9Reoa.js} +1 -1
- package/dist/client/assets/{block-document-DWCHIvSx.js → block-document-CPqyhIXG.js} +1 -1
- package/dist/client/assets/{brand-context-PdyFpIAJ.js → brand-context-C5l-jY5j.js} +1 -1
- package/dist/client/assets/{buckets-bCF5m_py.js → buckets-osNozj91.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CRrRQWZM.js → bulk-category-panel-Wi6U7nP_.js} +1 -1
- package/dist/client/assets/{capability-load-error-CqaJ2CyT.js → capability-load-error-DjmsXjn8.js} +1 -1
- package/dist/client/assets/{card-C96BA3_o.js → card-CtSASJwf.js} +1 -1
- package/dist/client/assets/{category-editor-fJIsMQon.js → category-editor-CT8-LW0I.js} +1 -1
- package/dist/client/assets/chat-context-RdUuzZpY.js +35 -0
- package/dist/client/assets/{checkbox-CWd555HO.js → checkbox-2yP3bFyj.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BFKi_3xZ.js → cli-auth-success-DTxeKgmu.js} +1 -1
- package/dist/client/assets/{collection-detail-Dqx7327X.js → collection-detail-BYmBoOQN.js} +1 -1
- package/dist/client/assets/{collection-display-button-C4OY7Wzq.js → collection-display-button-D23CpNqF.js} +1 -1
- package/dist/client/assets/{collection-search-k2eiLSTO.js → collection-search-BvUEQGS0.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D02H5hcq.js → collection-table-wrapper-CBrpAxFB.js} +1 -1
- package/dist/client/assets/{collection-tabs-BXsKWfGz.js → collection-tabs-BDJjEFL1.js} +1 -1
- package/dist/client/assets/{command-B6b6o_6w.js → command-DJkccxus.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DDERfVdl.js → commerce-onboarding-BkmIfAl1.js} +1 -1
- package/dist/client/assets/{connect-DMb2PMGs.js → connect-vlpJ409P.js} +1 -1
- package/dist/client/assets/{connection-DFe3W5IP.js → connection-B1oxDO6h.js} +1 -1
- package/dist/client/assets/{connection-card-D_9VNazf.js → connection-card-DpcRzNHf.js} +1 -1
- package/dist/client/assets/{connection-detail-f7JsMg2X.js → connection-detail-C9Gj6I-U.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DrJjgPbl.js → connection-form-helpers-CyEf-aTg.js} +1 -1
- package/dist/client/assets/{connections-BnxbwuD2.js → connections-Lq4g4hjP.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-GQur4M3a.js → decopilot-sse-pool-CLTnkOxl.js} +1 -1
- package/dist/client/assets/{dialog-C6qg7Ck8.js → dialog-OWEFrF7-.js} +1 -1
- package/dist/client/assets/{domain-settings-Co2WC3dD.js → domain-settings-BBtm67q5.js} +1 -1
- package/dist/client/assets/{drawer-DsX5bBE-.js → drawer-DgN6xCCy.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DU8DtkSC.js → dropdown-menu-D7ql_2Mm.js} +1 -1
- package/dist/client/assets/{empty-state-CkwReOEQ.js → empty-state-Ge1hsDqH.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Cad0ShHO.js → extract-connection-data-3MATwqVb.js} +1 -1
- package/dist/client/assets/{file-explorer-BkzLM1ah.js → file-explorer-BmLmS2fY.js} +1 -1
- package/dist/client/assets/{form-Dibti8iC.js → form-CYflWvZ8.js} +1 -1
- package/dist/client/assets/{general-CDsHR6d_.js → general-DZhS6fXp.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CppfYsNH.js → github-repo-picker-Dk6hx_ZV.js} +1 -1
- package/dist/client/assets/{hooks-XfMYeEIs.js → hooks-Cxavq7g1.js} +1 -1
- package/dist/client/assets/{index-ConrVmae.js → index-B61-lcC5.js} +1 -1
- package/dist/client/assets/{index-DbB3C14p.js → index-BU_IwEQv.js} +1 -1
- package/dist/client/assets/{index-Dw7ePJkF.js → index-BaV_AJez.js} +1 -1
- package/dist/client/assets/{index-B_MMsAiE.js → index-BewwAdak.js} +5 -5
- package/dist/client/assets/{index-Dm1vrjTR.js → index-BxKvMeE9.js} +1 -1
- package/dist/client/assets/{index-DA3i9gHG.js → index-CYCGKM36.js} +1 -1
- package/dist/client/assets/{index-la_NhVUv.js → index-ChEFpkJ4.js} +1 -1
- package/dist/client/assets/{index-Cgto-g9E.js → index-DT4Nzv2B.js} +1 -1
- package/dist/client/assets/{index-BMzn09lx.js → index-VzB452t-.js} +1 -1
- package/dist/client/assets/{index-y-47HFza.js → index-Z5GQqASS.js} +1 -1
- package/dist/client/assets/{index-redirect-UHGFLtkm.js → index-redirect-DrtK-Z3G.js} +1 -1
- package/dist/client/assets/{index-BXvFQMhX.js → index-rmLn3_ly.js} +47 -47
- package/dist/client/assets/{input-CDSeZvCx.js → input-DKE_aSbi.js} +1 -1
- package/dist/client/assets/{integration-icon-CvX-0tHP.js → integration-icon-JxAGGdcp.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-Bzlc-sDq.js → invite-member-dialog-BKE0JC_X.js} +1 -1
- package/dist/client/assets/{label-DMbGJZiR.js → label-CF5FLKOj.js} +1 -1
- package/dist/client/assets/{layout-oTtJ7CGf.js → layout-BwqJSGWK.js} +1 -1
- package/dist/client/assets/{login-CUR_dtLn.js → login-0LC9-pNH.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ymd3SFfg.js → mcp-oauth-BUEXZ5XF.js} +1 -1
- package/dist/client/assets/{members-CZiUUbnR.js → members-BhgO4jVd.js} +1 -1
- package/dist/client/assets/{monaco-editor-D1NyXstY.js → monaco-editor-CEa-HL0v.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Cf7X8yyx.js → monitoring-stats-row-E3SQfKQY.js} +1 -1
- package/dist/client/assets/{multi-select-CJHqj-l8.js → multi-select-pifNepmv.js} +1 -1
- package/dist/client/assets/{oauth-callback-_OQnoAnP.js → oauth-callback-C5FRppPn.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DQXvlvJU.js → oauth-callback-ai-provider-DzjPEmpw.js} +1 -1
- package/dist/client/assets/{onboarding-prj3JP9J.js → onboarding-C9AWxpuU.js} +1 -1
- package/dist/client/assets/{org-layout-bdLlCnF4.js → org-layout-BnJvN_k7.js} +1 -1
- package/dist/client/assets/{organization-choice-DN1sDygp.js → organization-choice-DGzsXN4e.js} +1 -1
- package/dist/client/assets/{orgs-3jgCg8uP.js → orgs-DwvRC_iP.js} +1 -1
- package/dist/client/assets/{page-seo-form-DuEcpMt8.js → page-seo-form-yR-_RiuJ.js} +1 -1
- package/dist/client/assets/{popover-Ds4SkgvE.js → popover-CcmX8ygf.js} +1 -1
- package/dist/client/assets/{post-editor-DyEwJwLC.js → post-editor-C7N-4ptM.js} +1 -1
- package/dist/client/assets/{primitives-Db1yM4BZ.js → primitives-BixS7j7z.js} +1 -1
- package/dist/client/assets/{profile-D226p6WC.js → profile-DsjmFh6t.js} +1 -1
- package/dist/client/assets/project-app-view-DBx9LDVk.js +1 -0
- package/dist/client/assets/record-editor-BdqdKqjA.js +1 -0
- package/dist/client/assets/{redirect-editor-GNNYWddM.js → redirect-editor-XxUNRDtY.js} +1 -1
- package/dist/client/assets/registry-CJLsO9qD.js +2 -0
- package/dist/client/assets/{registry-layout-hvt8-3Vh.js → registry-layout-DODdxKuc.js} +1 -1
- package/dist/client/assets/{reports-J6BlP8fs.js → reports-BaLmJS0u.js} +1 -1
- package/dist/client/assets/{require-capability-DaTvC6dg.js → require-capability-CPikzNf0.js} +1 -1
- package/dist/client/assets/{required-auth-layout-B4xElUex.js → required-auth-layout-BjIUtHND.js} +1 -1
- package/dist/client/assets/{reset-password-D-i8x1Hf.js → reset-password-DpuA42mw.js} +1 -1
- package/dist/client/assets/{roles-COKuWdD8.js → roles-CTTkFFJq.js} +1 -1
- package/dist/client/assets/{search-input-DMrgq14n.js → search-input-DXwvM6w7.js} +1 -1
- package/dist/client/assets/{secrets-EzmUheNk.js → secrets-Bc8ax66R.js} +1 -1
- package/dist/client/assets/{sections-editor-DYTv79VM.js → sections-editor-D6jA1c6m.js} +1 -1
- package/dist/client/assets/{select-vyt7fwjg.js → select-Bso8m6fL.js} +1 -1
- package/dist/client/assets/{select-model-Cp3i2y21.js → select-model-pUTc_wDB.js} +1 -1
- package/dist/client/assets/{self-tool-result-BwqRkK5H.js → self-tool-result-DqvmwuVd.js} +1 -1
- package/dist/client/assets/{seo-editor-CC2ug35A.js → seo-editor-1BZodRQ-.js} +1 -1
- package/dist/client/assets/{settings-layout-S0u8Yptq.js → settings-layout-ISB9tvcn.js} +1 -1
- package/dist/client/assets/{settings-section-DolAvAtQ.js → settings-section-BH6su5wB.js} +1 -1
- package/dist/client/assets/{shell-controls-B6WCNQyz.js → shell-controls-ftFITckP.js} +1 -1
- package/dist/client/assets/{shell-layout-C7OHxOgm.js → shell-layout-C3X12LxD.js} +1 -1
- package/dist/client/assets/{sidebar-BaKYje5H.js → sidebar-dweXjUY6.js} +1 -1
- package/dist/client/assets/{skeleton-DWhDXNUH.js → skeleton-DsGKZ9K5.js} +1 -1
- package/dist/client/assets/{spinner-CjAa-sPH.js → spinner-BC9oE0Nw.js} +1 -1
- package/dist/client/assets/{sso-Bj2UlJt6.js → sso-C7Yl6jfZ.js} +1 -1
- package/dist/client/assets/{store-YfD9Wnyh.js → store-D3S6xHl_.js} +1 -1
- package/dist/client/assets/store-registry-7ifB8Rnb.js +2 -0
- package/dist/client/assets/{studio-tools-Bt6twF2O.js → studio-tools-9acH9Fbh.js} +1 -1
- package/dist/client/assets/{switch-CLB543ZX.js → switch-ChRDZkeY.js} +1 -1
- package/dist/client/assets/{tab-id-E3-rpOnl.js → tab-id-BfjeITg7.js} +1 -1
- package/dist/client/assets/{table-BkUJwywN.js → table-Dgt-oQIC.js} +1 -1
- package/dist/client/assets/{tabs-CUrHUr0C.js → tabs-bQIeWdML.js} +1 -1
- package/dist/client/assets/{textarea-_kpFU1gC.js → textarea-D-pDgTqu.js} +1 -1
- package/dist/client/assets/{toggle-group-DzvX03Se.js → toggle-group-rBfniEBQ.js} +1 -1
- package/dist/client/assets/{toolbar-Bfscd_AO.js → toolbar-B1H2UqCs.js} +1 -1
- package/dist/client/assets/{tooltip-GW2DyJLV.js → tooltip-BNujbF_D.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BwjLzn7U.js → use-ai-providers-HcxatO-8.js} +1 -1
- package/dist/client/assets/{use-automations-CVabhFuJ.js → use-automations-Cu2OORsq.js} +1 -1
- package/dist/client/assets/{use-autosave-C-0TybV5.js → use-autosave-C-Av9W4I.js} +1 -1
- package/dist/client/assets/{use-capability-7F3PzOjI.js → use-capability-DAo_Bo-4.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DyK_4mkp.js → use-clock-tick-xzPuWbiJ.js} +1 -1
- package/dist/client/assets/{use-connection-KMNTjm45.js → use-connection-D_f-5Ob-.js} +1 -1
- package/dist/client/assets/{use-copy-ttE3tfUB.js → use-copy-CZ68rwPV.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DhQO9gA9.js → use-create-virtual-mcp-CXnJweKE.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D0ErO20C.js → use-debounced-autosave-BfI4CQZn.js} +1 -1
- package/dist/client/assets/{use-debounced-value-oFI-ZZu5.js → use-debounced-value-HZHTgMtD.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BEOen75e.js → use-deco-credits-4TdJbdFF.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DJCN9WmR.js → use-decopilot-events-DIYmMYyf.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BgPxGezM.js → use-delete-connection-783VvApC.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BdRe1jVl.js → use-deployment-admin-WOh3pjMU.js} +1 -1
- package/dist/client/assets/{use-file-configs-BvS6lKL3.js → use-file-configs-CJWVHFwx.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BEDxOpbR.js → use-infinite-scroll-CrsPbSXL.js} +1 -1
- package/dist/client/assets/{use-join-requests-Bs1r80wR.js → use-join-requests-D9Riiy6h.js} +1 -1
- package/dist/client/assets/{use-mcp-client-J2akoQCG.js → use-mcp-client-DGVnzynO.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B1AdDqZd.js → use-mcp-tools-PG7LKw5v.js} +1 -1
- package/dist/client/assets/{use-members-BSJzl9B_.js → use-members-cNpRURDx.js} +1 -1
- package/dist/client/assets/{use-mobile-B21Exqzk.js → use-mobile-CyZOZZwA.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BbUq2LGY.js → use-navigate-to-agent-BdZDXYkt.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-D5Yp4-ix.js → use-open-billing-url-CU8h2QCr.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CAbfHSfT.js → use-org-auth-client-_S64bKAQ.js} +1 -1
- package/dist/client/assets/{use-org-sso-DuHEve8n.js → use-org-sso-C7g62WsI.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DkvrCtr9.js → use-organization-roles-DDTa5ZM7.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CfB7lZCX.js → use-organization-settings-DR3MxOp3.js} +1 -1
- package/dist/client/assets/{use-registry-connections-D6aDbOx7.js → use-registry-connections-Deo4tYJC.js} +1 -1
- package/dist/client/assets/{use-secrets-P9Lsm-7m.js → use-secrets-CgnVMyWq.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DsQVB8cv.js → use-status-sounds-o8Nz_50d.js} +1 -1
- package/dist/client/assets/{use-tags-Dh5OlPEI.js → use-tags-CHFXyGqf.js} +1 -1
- package/dist/client/assets/{use-view-mode-BLAVUQ6i.js → use-view-mode-BhbQt1Zv.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BbsY8Sm2.js → use-virtual-mcp-DNbPKaKX.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-20LNan0H.js +1 -0
- package/dist/client/assets/{useRouterState-DHb6vPVl.js → useRouterState-IeOmXTug.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cu-1v6H0.js +1 -0
- package/dist/client/assets/{users-BisKIdWZ.js → users-CSdS1EDc.js} +1 -1
- package/dist/client/assets/{variant-calendar-B2ZCRsp-.js → variant-calendar-Da5zoY3p.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DZJkZ-64.js → view-mode-toggle--J7PzElf.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +407 -407
- package/dist/server/server.js +292 -292
- package/package.json +1 -1
- package/dist/client/assets/chat-context-DtQAFZGy.js +0 -35
- package/dist/client/assets/project-app-view-Dll8gpvf.js +0 -1
- package/dist/client/assets/record-editor-D7X_Qutr.js +0 -1
- package/dist/client/assets/registry-DV5pbA2j.js +0 -2
- package/dist/client/assets/store-registry-pcGrF9p4.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CM2CVHiC.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-qyvQUEBa.js +0 -1
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import{Z as S,_ as C,a4 as J,$ as i,a0 as ue,a3 as Ie,aP as Ce,cw as wt,bj as qe,b8 as ct,c as ie,J as dt,u as Be,o as He,F as ee,K as de,t as ce,I as be,G as ge,d as ut,f as It,r as v,n as Mt,e as Tt,j as Me,b as De,a as Ct,v as At,a8 as Pt,p as _t}from"./index-B_MMsAiE.js";import{d as Rt,s as Et,A as pt,t as Dt,u as $t,o as Ut,w as Ot}from"./tab-id-E3-rpOnl.js";import{S as Lt,s as Nt,u as Ft,f as qt,i as jt,b as Vt}from"./hooks-XfMYeEIs.js";import{u as Bt}from"./use-is-desktop-app-BNujXJc_.js";import{a as Ht,u as Kt,S as Qt}from"./use-mcp-client-J2akoQCG.js";import{u as Wt}from"./use-virtual-mcp-BbsY8Sm2.js";import{u as ht,p as zt,b as xe,i as Gt,c as Xt}from"./use-ai-providers-BwjLzn7U.js";import{u as Zt}from"./use-decopilot-events-DJCN9WmR.js";import{u as Yt,c as Jt}from"./studio-tools-Bt6twF2O.js";import{b as en}from"./use-organization-settings-CfB7lZCX.js";const we=S({connection_id:i().describe("Connection ID"),selected_tools:C(i()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:C(i()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:C(i()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),mt=we.extend({selected_tools:we.shape.selected_tools.optional(),selected_resources:we.shape.selected_resources.optional(),selected_prompts:we.shape.selected_prompts.optional()}),tn=S({connectionId:i(),toolName:i(),label:i(),icon:i().nullable().optional()}),nn=S({id:i().describe("Stable id; used as React key and ?tab= value"),title:i().describe("Tab label"),icon:i().optional().describe("Optional lucide icon name"),view:S({type:qe("ext-app"),appId:i(),args:Ie(i(),ct()).optional()})}),sn=S({defaultMainView:S({type:i(),id:i().optional(),toolName:i().optional()}).nullable().optional(),chatDefaultOpen:J().nullable().optional(),cmsDefaultOpen:J().nullable().optional(),tabs:C(nn).optional()}),st=S({tileId:i().optional(),connectionId:i().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:i().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:i().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Ie(i(),ct()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:Ce().int().positive().optional(),maxHeight:Ce().int().positive().optional()}),Ke=S({banner:i().nullable().optional(),bannerColor:i().nullable().optional(),icon:i().nullable().optional(),themeColor:i().nullable().optional(),pinnedViews:C(tn).nullable().optional(),layout:sn.nullable().optional(),homeTile:st.nullable().optional(),homeTiles:C(st).nullable().optional(),homePrompts:C(i()).nullable().optional()});function ms(t){const e=t?.homeTiles;if(Array.isArray(e)&&e.length>0)return e;const n=t?.homeTile;return n?[n]:[]}const on=/^[A-Za-z_][A-Za-z0-9_]*$/,ot=i().min(1).regex(on,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),an=wt("kind",[S({key:ot,kind:qe("literal"),value:i()}),S({key:ot,kind:qe("secret"),secretId:i().min(1)})]),rn=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,ln=S({host:i().min(1).regex(rn).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:i().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),Qe=S({selected:i().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:i().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:i().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:C(an).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:C(ln).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that Studio resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),We=S({url:i().describe("GitHub repository URL"),owner:i().describe("Repository owner"),name:i().describe("Repository name"),installationId:Ce().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:i().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),cn=ue(["agent-sandbox","user-desktop"]),dn=ue(["agent-sandbox","user-desktop","cluster"]);function ze(t){return t==="cluster"?"agent-sandbox":t}const ft={sandboxHandle:i().describe("Provider-specific handle"),previewUrl:i().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:i().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:cn.optional(),createdAt:Ce().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:S({packageManager:i().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:i().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:i().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},bt=S(ft),un=S({...ft,sandboxProviderKind:dn.optional()});function pn(t){const e=un.parse(t);return bt.parse({...e,sandboxProviderKind:e.sandboxProviderKind?ze(e.sandboxProviderKind):void 0})}function fs(t){if(!t||typeof t!="object"||Array.isArray(t))return{};const e=t,n={};for(const[s,o]of Object.entries(e)){if(!o||typeof o!="object"||s!=="cluster"&&s!=="agent-sandbox"&&s!=="user-desktop")continue;const a=ze(s);try{if(s==="cluster"&&n[a])continue;n[a]=pn(o)}catch{}}return n}const Ge=Ie(i().describe("userId"),Ie(i().describe("branch"),Ie(i().describe("sandboxProviderKind"),bt))),hn=S({id:i().describe("Stable identifier for this knowledge file"),name:i().describe("File name shown in the UI"),kind:ue(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:i().describe("Org filesystem (Library) volume the file lives in"),path:i().describe("Path within the volume"),url:i().describe("Same-origin URL to read the file (display/download)"),contentType:i().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:Ce().nullable().optional().describe("File size in bytes"),addedAt:i().describe("ISO timestamp when the file was attached")}),Xe=C(hn).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),mn=ue(["smart","code-review","open"]),Ze=mn.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),Ye=J().nullable().optional().describe("Enable Fast Preview: render the draft instantly on productionUrl's own page via a ?__draft pointer while the sandbox boots. Requires productionUrl to be set to take effect."),bs=S({id:i().describe("Unique identifier"),title:i().describe("Human-readable name"),description:i().nullable().describe("Description"),icon:i().nullable().describe("Icon URL"),created_at:i().describe("Creation timestamp"),updated_at:i().describe("Last update timestamp"),created_by:i().describe("User ID who created this item"),updated_by:i().optional().describe("User ID who last updated this item"),organization_id:i().describe("Organization ID this item belongs to"),status:ue(["active","inactive"]).describe("Current status"),pinned:J().describe("Whether this space is pinned to the sidebar"),metadata:S({instructions:i().nullable().describe("Instructions also used as system prompt"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,productionUrl:i().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking."),fieldDescriptionTooltips:J().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().describe("Metadata"),connections:C(we).describe("Connections with their selected tools, resources, and prompts")}),gt=S({title:i().min(1).max(120).describe("Short label shown on the chip"),description:i().max(280).optional().describe("One-line subtitle shown under the title"),text:i().min(1).describe("The message sent to the agent when the prompt is clicked")});S({title:i().min(1).max(255).describe("Name for the virtual MCP"),description:i().nullable().optional().describe("Optional description"),icon:i().nullish().describe("Optional icon URL"),status:ue(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:J().optional().default(!1).describe("Pin to sidebar"),metadata:S({instructions:i().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,productionUrl:i().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking."),fieldDescriptionTooltips:J().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(mt).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:C(gt).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});S({title:i().min(1).max(255).optional().describe("New name"),description:i().nullable().optional().describe("New description (null to clear)"),icon:i().nullish().describe("New icon URL"),status:ue(["active","inactive"]).optional().describe("New status"),pinned:J().optional().describe("Pin/unpin from sidebar"),metadata:S({instructions:i().nullable().optional().describe("MCP server instructions"),enabled_plugins:C(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:C(i()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:i().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:Ke.nullable().optional().describe("UI customization settings"),githubRepo:We.nullable().optional().describe("Linked GitHub repository"),runtime:Qe.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:Ge.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Xe,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:Ze,productionUrl:i().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking."),fieldDescriptionTooltips:J().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:Ye}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:C(mt).optional().describe("New connections (replaces existing)"),prompts:C(gt).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});function fn(t,e=[]){return t==="stop"?"completed":t==="tool-calls"?e.some(s=>s.type==="tool-user_ask"&&s.state==="input-available"||s.state==="approval-requested")?"requires_action":"completed":"failed"}const je={decopilot:{harness:"decopilot",sandbox:"agent-sandbox"},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"},"opencode-desktop":{harness:"opencode",sandbox:"user-desktop"}};function bn(t,e){if(!t)return null;const n=e?ze(e):null;if(t==="decopilot"&&(n===null||n==="user-desktop"))return"decopilot";for(const[s,o]of Object.entries(je))if(o.harness===t&&o.sandbox===n)return s;return null}function gn({pendingOption:t,lockedHarness:e}){return e==="claude-code"?"claude-code-desktop":e==="codex"?"codex-desktop":e==="opencode"?"opencode-desktop":t==="claude-code-desktop"||t==="codex-desktop"||t==="opencode-desktop"?t:null}function yn(t){return t.thread?.harness_id!=null?{}:{harnessId:"decopilot",sandboxProviderKind:"agent-sandbox",branch:t.globals.branch??null}}const vn="home",Sn=new Set(["output","upload","public","home"]),kn=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function gs(t){return Sn.has(t)||!kn.test(t)?"home":t}function xn(t){const e=t?t.split("/").filter(Boolean):[],n=e[0]==="public",s=n?e[1]??null:null,o=n?s?`public-${s}`:null:e[0]??null,a=(n?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:o,dirPath:a,isPublic:n,publicSet:s,readOnly:n,isHomeRoot:o===vn&&a===""}}function ys(t){return t==="public"?"skills":t}function vs(t,e){return t.isPublic&&t.publicSet?`public/${t.publicSet}/${e}`:t.volume?`${t.volume}/${e}`:e}const at="public-";function yt(t){return t.startsWith(at)?t.slice(at.length):null}function Ss(t,e){const n=yt(t);return n?`public/${n}/${e}`:`${t}/${e}`}function wn(t){const e=t.lastIndexOf("/");return e===-1?t:t.slice(e+1)}function In(t){const{volume:e,dirPath:n}=xn(t);if(!e)return null;let s;if(e==="home")s="org/home";else if(e==="outputs")s="org/.outputs";else if(e==="uploads")s="org/.uploads";else{const o=yt(e);s=o?`org/public/${o}`:`org/${e}`}return n?`${s}/${n}`:s}function Mn(t){const e=ie.c(21);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=n):n=e[0];const s=dt(n);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const a=Be(o);let l;e[2]!==a.brand||e[3]!==a.main||e[4]!==a.preview||e[5]!==a.skill?(l=(typeof a.main=="string"?Rt(a.main)?.path:void 0)??a.preview??a.skill??a.brand??null,e[2]=a.brand,e[3]=a.main,e[4]=a.preview,e[5]=a.skill,e[6]=l):l=e[6];const c=l;let h;if(e[7]!==s?.params.appSlug||e[8]!==s?.params.collectionName||e[9]!==s?.params.itemId||e[10]!==c||e[11]!==t){if(h=[],t&&h.push(`### Selected Agent
|
|
2
|
-
- ID: ${t}`),c){let f;e[13]!==c?(f=In(c),e[13]=c,e[14]=f):f=e[14];const k=f;let M;e[15]!==c?(M=wn(c),e[15]=c,e[16]=M):M=e[16],h.push(`### Currently Open File
|
|
3
|
-
The user has this file open in the Library and is most likely referring to it:
|
|
4
|
-
- Name: ${M}
|
|
5
|
-
- Library path: ${c}${k?`
|
|
6
|
-
- Read/edit it with your file tools at: \`${k}\``:""}
|
|
7
|
-
|
|
8
|
-
When a request is ambiguous about which file or resource it targets (e.g. "change the h1", "fix this", "what's in this file", "update the title"), assume it means this file unless the user clearly indicates otherwise.`)}let m;e[17]!==s?.params.appSlug||e[18]!==s?.params.collectionName||e[19]!==s?.params.itemId?(m=[],s?.params.appSlug&&m.push(`- Connection ID: ${s?.params.appSlug}`),s?.params.collectionName&&m.push(`- Collection: ${s?.params.collectionName}`),s?.params.itemId&&m.push(`- Item ID: ${s?.params.itemId}`),e[17]=s?.params.appSlug,e[18]=s?.params.collectionName,e[19]=s?.params.itemId,e[20]=m):m=e[20],m.length>0&&h.push(`### Current Resource
|
|
9
|
-
The user is viewing the following resource:
|
|
10
|
-
${m.join(`
|
|
11
|
-
`)}
|
|
12
|
-
|
|
13
|
-
Help the user understand and work with this resource.`),e[7]=s?.params.appSlug,e[8]=s?.params.collectionName,e[9]=s?.params.itemId,e[10]=c,e[11]=t,e[12]=h}else h=e[12];return h.join(`
|
|
14
|
-
|
|
15
|
-
`)}function Tn(){const t=ie.c(5),e=He(),{org:n}=ee();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},t[0]=s):s=t[0];const o=dt(s);let a;return t[1]!==o?.params||t[2]!==n||t[3]!==e?(a=l=>{const h=l.toolCall.toolName.match(/^COLLECTION_([A-Z_]+)_(CREATE|UPDATE|DELETE)$/);if(!h||!h[1])return;const m=h[1],f=o?.params.appSlug;if(!f)return;e.invalidateQueries({queryKey:de.collection(n.slug,f,m)});const k=m.toLowerCase().replace(/_/g," ");ce.success(`${k} updated`)},t[1]=o?.params,t[2]=n,t[3]=e,t[4]=a):a=t[4],a}function Cn(){const t=ie.c(4),{org:e,project:n}=ee(),s=`${e.id}/${n.id}`;let o;t[0]!==s?(o=ge.taskLastViewed(s),t[0]=s,t[1]=o):o=t[1];const[,a]=be(o,An);let l;return t[2]!==a?(l={markTaskRead:h=>{a(m=>({...m,[h]:new Date().toISOString()}))}},t[2]=a,t[3]=l):l=t[3],l}function An(t){return t??{}}function vt(){const t=ut(),{org:e}=ee(),n=Be({strict:!1}),s=It({strict:!1}),o=n.virtualmcpid??Ht(e.id).id,a=(h,m)=>{t({to:"/$org/$taskId",params:{org:e.slug,taskId:h},search:f=>{const k={},M=m?.virtualMcpId??f.virtualmcpid;M&&(k.virtualmcpid=M);const p=f.main;return p&&typeof p=="string"&&!Et(p)&&(k.main=p),(f.sidepanel==="chat"||f.sidepanel===0)&&(k.sidepanel=f.sidepanel),m?.autosend&&(k.autosend=pt),k}})},l=v.useRef(crypto.randomUUID()),c=s.taskId??l.current;return{virtualMcpId:o,taskId:c,navigateToTask:a}}function Pn(t,e){const{mimeType:n,data:s}=t;if(n.startsWith("text/"))try{const o=new TextDecoder().decode(Uint8Array.from(atob(s),a=>a.charCodeAt(0)));return[{type:"text",text:`${e}
|
|
16
|
-
${o}`}]}catch(o){console.error("Failed to decode text file:",o)}return[{type:"file",url:`data:${n};base64,${s}`,filename:e,mediaType:n}]}function it(t,e){const n=[];for(const s of t)!s||typeof s!="object"||("text"in s&&s.text?n.push({type:"text",text:`[${e}]
|
|
17
|
-
${s.text}`}):"blob"in s&&s.blob&&s.mimeType&&n.push({type:"file",url:`data:${s.mimeType};base64,${s.blob}`,filename:String(s.uri),mediaType:String(s.mimeType)}));return n}function _n(t,e){const n=(t.files??[]).filter(l=>l.content?.trim()),s=t.omittedPaths??[];if(n.length===0&&s.length===0)return[];const o=n.map(l=>`<skill-file path="${l.relPath}">
|
|
18
|
-
${l.content.trim()}
|
|
19
|
-
</skill-file>`).join(`
|
|
20
|
-
|
|
21
|
-
`),a=s.length>0?`
|
|
22
|
-
|
|
23
|
-
Other files in \`${t.sandboxPath}/\`: ${s.join(", ")}`:"";return[{type:"text",text:`[${e}]
|
|
24
|
-
${o}${a}`}]}function Rn(t,e){const n=[];for(const s of t){if(s.role!=="user"||!s.content)continue;const o=Array.isArray(s.content)?s.content:[s.content];for(const a of o)switch(a.type){case"text":{const l=a.text?.trim();if(!l)continue;n.push({type:"text",text:`[${e}]
|
|
25
|
-
${l}`});break}case"image":case"audio":{if(!a.data||!a.mimeType)continue;n.push({type:"file",url:`data:${a.mimeType};base64,${a.data}`,mediaType:a.mimeType});break}case"resource":{const l=a.resource;if(!l||!l.mimeType)continue;l&&("text"in l&&l.text?n.push({type:"text",text:`[${e}]
|
|
26
|
-
${l.text}`}):"blob"in l&&l.blob&&l.mimeType&&n.push({type:"file",url:`data:${l.mimeType};base64,${l.blob}`,filename:String(l.uri),mediaType:String(l.mimeType)}));break}}}return n}function St(t){if(!t)return[];const e=[];let n="";const s=o=>{if(o){if(o.type==="text"&&"text"in o&&typeof o.text=="string")n+=o.text;else if(o.type==="mention"&&o.attrs){const a=o.attrs.char??"/",l=`${a}${o.attrs.name}`;if(o.attrs.kind==="task"){const c=o.attrs.metadata,h=c?.title??o.attrs.name??"",m=c?.context?.trim()||[h,c?.description?.trim()].filter(Boolean).join(`
|
|
27
|
-
|
|
28
|
-
`);m&&e.push({type:"text",text:m});return}if(n+=l,a==="@"){const c=o.attrs.metadata;c&&typeof c=="object"&&!Array.isArray(c)&&"agentId"in c?e.push({type:"text",text:`[DELEGATE TO AGENT: ${c.title??o.attrs.name} (agent_id: ${c.agentId})]
|
|
29
|
-
Use the subtask tool to delegate this task to the agent above. Include the full relevant context from this conversation in the prompt field — the subagent has no conversation history.`}):Array.isArray(c)&&e.push(...it(c,l))}else if(o.attrs.kind==="skill"){const c=o.attrs.metadata;c&&!Array.isArray(c)&&Array.isArray(c.files)&&e.push(..._n(c,l))}else{const c=o.attrs.metadata||o.attrs.prompts||[];Array.isArray(c)&&c.length>0&&typeof c[0]=="object"&&c[0]!==null&&"role"in c[0]?e.push(...Rn(c,l)):Array.isArray(c)&&e.push(...it(c,l))}}else if(o.type==="file"&&o.attrs){const a=o.attrs,l=`[file:://${encodeURIComponent(a.name)}]`;n+=l,e.push(...Pn(a,l))}if("content"in o&&Array.isArray(o.content))for(const a of o.content)s(a)}};return s(t),n.trim()&&e.unshift({type:"text",text:n.trim()}),e}function ks(t){const e=St(t);return e.length===0?[]:[{id:crypto.randomUUID(),role:"user",parts:e,metadata:{tiptapDoc:t}}]}function xs(t){return new Set(t.filter(e=>e.status==="queued").map(e=>e.messageId))}function En(t){return(t??[]).map(e=>e?.type==="text"&&typeof e.text=="string"?e.text:"").join("").trim()}function ws(t){return t.filter(e=>e.status==="queued").sort((e,n)=>e.enqueuedAt-n.enqueuedAt)}function Dn(t,e){return t.some(n=>n.messageId===e.messageId)?t:[...t,e]}function $n(t,e){return t.filter(n=>n.messageId!==e)}const ye=new Map,Un=200;function On(t){if(ye.size<Un||ye.has(t))return;const e=ye.keys().next().value;if(e!==void 0){ye.delete(e),$e.delete(e);for(const n of ve.keys())n.startsWith(`${e}:`)&&ve.delete(n)}}const $e=new Set;function Ln(t){$e.add(t)}function Nn(t){return $e.has(t)}function Fn(t){$e.delete(t)}function Ae(t){let e=ye.get(t);return e||(On(t),e=new Lt([]),ye.set(t,e)),e}function kt(t,e){Ae(t).update(n=>Dn(n,e))}function Ve(t,e){Ae(t).update(n=>$n(n,e))}function qn(t,e){Ae(t).set(e)}const ve=new Map;function jn(t,e){ve.set(`${t}:${e.id}`,e)}function Vn(t,e){const n=`${t}:${e}`,s=ve.get(n);return ve.delete(n),s}function rt(t,e){ve.delete(`${t}:${e}`)}async function ae(t,e){try{const n=await fetch(`/api/${encodeURIComponent(t)}/decopilot/queue/${encodeURIComponent(e)}`,{credentials:"include"});if(!n.ok)return;const s=await n.json();qn(e,s.items??[])}catch{}}function Is(t){const e=ie.c(2);let n;e[0]!==t?(n=Ae(t),e[0]=t,e[1]=n):n=e[1];const s=n;return v.useSyncExternalStore(s.subscribe,s.get,s.get)}function Bn(){const{org:t}=ee();return{enqueue:kt,refresh:e=>ae(t.slug,e),cancel:async(e,n)=>{const s=`thread-run:${e}:${n}`;Ve(e,n);try{const o=await fetch(`/api/${encodeURIComponent(t.slug)}/decopilot/queue/${encodeURIComponent(e)}/cancel/${encodeURIComponent(s)}`,{method:"POST",credentials:"include"});if(!o.ok&&o.status!==404)throw new Error(`Cancel failed: ${o.status}`);return!0}catch(o){return ce.error(o instanceof Error?o.message:"Failed to cancel"),!1}finally{await ae(t.slug,e)}}}}function Ee(t,e){return t.find(n=>n!=null&&e.has(n.keyId))??null}function Hn(t,e,n){const s=o=>Ee([o],n);return{tiers:{fast:Ee([e.tiers.fast,t.tiers.fast],n),smart:Ee([e.tiers.smart,t.tiers.smart],n),thinking:Ee([e.tiers.thinking,t.tiers.thinking],n),image:s(t.tiers.image),web_search:s(t.tiers.web_search),deep_research:s(t.tiers.deep_research)}}}const Te={tiers:{}};function Kn(){const t=ie.c(7),{org:e}=ee();let n;t[0]!==e.id?(n=de.userModelPreferences(e.id),t[0]=e.id,t[1]=n):n=t[1];let s;t[2]!==e.slug?(s=async()=>{const a=await Jt(e.slug,"USER_MODEL_PREFERENCES_GET",{});return a?.tiers?a:Te},t[2]=e.slug,t[3]=s):s=t[3];let o;return t[4]!==n||t[5]!==s?(o={queryKey:n,queryFn:s,staleTime:6e4},t[4]=n,t[5]=s,t[6]=o):o=t[6],Mt(o)}function Qn(){return Kn().data??Te}function Ms(){const t=ie.c(19),{org:e}=ee(),n=Yt(),s=He();let o;t[0]!==e.id?(o=de.userModelPreferences(e.id),t[0]=e.id,t[1]=o):o=t[1];const a=o;let l;t[2]!==a||t[3]!==s||t[4]!==n?(l=async M=>{const p=s.getQueryData(a)??Te;return await n.call("USER_MODEL_PREFERENCES_UPDATE",p)??p},t[2]=a,t[3]=s,t[4]=n,t[5]=l):l=t[5];let c,h,m,f;t[6]!==a||t[7]!==s?(c=M=>{const{tier:p,slot:A}=M,F=s.getQueryData(a),q=F??Te;return s.setQueryData(a,{tiers:{...q.tiers,[p]:A}}),{prev:F}},h=(M,p,A)=>{s.setQueryData(a,A?.prev??Te)},m=M=>{s.setQueryData(a,M)},f=()=>{s.isMutating({mutationKey:a})===1&&s.invalidateQueries({queryKey:a})},t[6]=a,t[7]=s,t[8]=c,t[9]=h,t[10]=m,t[11]=f):(c=t[8],h=t[9],m=t[10],f=t[11]);let k;return t[12]!==a||t[13]!==l||t[14]!==c||t[15]!==h||t[16]!==m||t[17]!==f?(k={mutationKey:a,mutationFn:l,onMutate:c,onError:h,onSuccess:m,onSettled:f},t[12]=a,t[13]=l,t[14]=c,t[15]=h,t[16]=m,t[17]=f,t[18]=k):k=t[18],Tt(k)}function Wn(){const t=ie.c(4),e=en(),n=Qn(),s=ht();let o;return t[0]!==s||t[1]!==e||t[2]!==n?(o=Hn(e,n,new Set(s.map(zn))),t[0]=s,t[1]=e,t[2]=n,t[3]=o):o=t[3],o}function zn(t){return t.id}function le(t,e,n,s){if(!t)return null;const o=e.find(l=>l.id===t.keyId);if(!o)return null;const a=n.find(l=>l.modelId===t.modelId);return a?{...a,keyId:t.keyId}:{modelId:t.modelId,title:s??t.modelId,keyId:t.keyId,providerId:o.providerId,description:null,logo:null,capabilities:[],limits:null,costs:null}}function Gn(t){return t==="fast"||t==="smart"||t==="thinking"?t:"smart"}function Xn(t,e,n,s){if(!n||s.length===0)return null;const o=e.find(h=>h.id===n);if(!o)return null;const a=zt([o],{[n]:s}),l=t==="fast"?a.chat.fast:t==="thinking"?a.chat.thinking:a.chat.smart;if(!l)return null;const c=s.find(h=>h.modelId===l.modelId);return c?{...c,keyId:n}:null}const lt=new Set,oe=new Set;function fe(t){return v.useSyncExternalStore(t.subscribe,t.get,t.get)}function Zn(t){return t.kind==="loading"?"ready":t.kind}const Yn=1e4,Jn=10,Je=v.createContext(null),et=v.createContext(null),tt=v.createContext(null),xt=v.createContext(null);function es({children:t}){const{locator:e}=ee(),{virtualMcpId:n}=vt(),[s,o]=be(ge.chatSelectedImageModel(e),null),[a,l]=be(ge.chatSelectedWebSearchModel(e),null),[c,h]=be(ge.chatSelectedDeepResearchModel(e),null),[m,f]=v.useState(null),[k,M]=v.useState("default"),p=Wn(),[A,F]=be(ge.chatSimpleModeTier(e),null),q=Gn(A),x=ht(),T=p.tiers[q],j=x.some(r=>r.id===T?.keyId)?T?.keyId:void 0,W=m&&x.some(r=>r.id===m)?m:j??x[0]?.id??null,{models:V,isLoading:_}=xe(W??void 0),{models:G}=xe(j),$=x.some(r=>r.id===p.tiers.image?.keyId)?p.tiers.image?.keyId:void 0,{models:te}=xe($),B=x.some(r=>r.id===p.tiers.web_search?.keyId)?p.tiers.web_search?.keyId:void 0,{models:H}=xe(B),ne=x.some(r=>r.id===p.tiers.deep_research?.keyId)?p.tiers.deep_research?.keyId:void 0,{models:K}=xe(ne),z=le(T,x,G,T?.title)??Xn(q,x,W,V),se=_,X=V.filter(r=>r.capabilities?.includes("image")),b=le(s,x,X),E=le(p.tiers.image,x,te,p.tiers.image?.title)??b??X[0]??null,L=V.filter(Gt),P=le(a,x,L),Q=L.find(r=>r.modelId==="perplexity/sonar")??L[0]??null,pe=le(p.tiers.web_search,x,H,p.tiers.web_search?.title)??P??Q,Z=V.filter(Xt),N=le(c,x,Z),Se=Z.find(r=>r.modelId==="perplexity/deep-research")??Z.find(r=>r.asyncResearch===!0)??Z[0]??null,Ue=le(p.tiers.deep_research,x,K,p.tiers.deep_research?.title)??N??Se,Le=Wt(n)??{id:n,title:"",description:null,icon:null},[Pe,ke]=v.useState({}),_e=(r,g)=>{const O=[];for(const I of g.content??[])I.type==="text"&&I.text?.trim()&&O.push(I.text.trim());const R=O.join(`
|
|
30
|
-
`);if(!R){re(r);return}new TextEncoder().encode(R).length>Yn||ke(I=>Object.keys(I).length>=Jn&&!(r in I)?I:{...I,[r]:R})},re=r=>{ke(g=>{const{[r]:O,...R}=g;return R})},[Ne,Fe]=be(ge.chatLastAgentOption(e),r=>r&&r in je?r:null),Y=ss(),nt=Y?.isThreadLocked&&Y.lockedHarness!=null?bn(Y.lockedHarness,Y.lockedSandbox):null;gn({pendingOption:Ne,lockedHarness:Y?.isThreadLocked?Y.lockedHarness:null});const he=Y?.isThreadLocked?nt:"decopilot",Re=he?je[he]:null,d=Re?.harness??null,u=Re?.sandbox??null,[D,U]=v.useState(void 0),y=v.useRef(D);y.current=D;const w={selectedModel:z,setModel:()=>{},credentialId:W,setCredentialId:f,allModelsConnections:x,isModelsLoading:se,selectedVirtualMcp:Le,imageModel:E,setImageModel:r=>{o(r?.keyId?{keyId:r.keyId,modelId:r.modelId}:null)},webSearchModel:pe,setWebSearchModel:r=>{l(r?.keyId?{keyId:r.keyId,modelId:r.modelId}:null)},deepResearchModel:Ue,setDeepResearchModel:r=>{h(r?.keyId?{keyId:r.keyId,modelId:r.modelId}:null)},chatMode:k,setChatMode:M,appContexts:Pe,setAppContext:_e,clearAppContext:re,tiptapDoc:D,setTiptapDoc:U,tiptapDocRef:y,resetInteraction:()=>{},simpleModeTier:q,setSimpleModeTier:r=>F(r),pendingAgentOption:he,setPendingAgentOption:Fe,pendingHarnessId:d,pendingSandboxProviderKind:u};return Me.jsx(tt.Provider,{value:w,children:t})}function Ts(t){const e=ie.c(41),{virtualMcpId:n,task:s,children:o}=t,{locator:a}=ee(),{data:l}=Ct.useSession(),c=l?.user??null,{taskId:h,virtualMcpId:m,navigateToTask:f}=vt(),[k]=At(),{markTaskRead:M}=Cn(),p=Vt(),A=h,F=m,q=Mn(F);let x;e[0]!==M||e[1]!==f?(x=(P,Q)=>{M(P),f(P,{virtualMcpId:Q?.virtualMcpId,autosend:Q?.autosend})},e[0]=M,e[1]=f,e[2]=x):x=e[2];const T=x,j=A&&s?.id===A?s:null,W=j?.harness_id??null,V=j?.sandbox_provider_kind??null,_=j?.branch??null,G=W!=null,$=_;let te;e[3]!==$||e[4]!==T||e[5]!==p||e[6]!==n?(te=()=>{const P=crypto.randomUUID();return p.create({id:P,virtual_mcp_id:n,...$?{branch:$}:{}}).then(()=>T(P)).catch(()=>{T(P)}),P},e[3]=$,e[4]=T,e[5]=p,e[6]=n,e[7]=te):te=e[7];const B=te;let H;e[8]!==$||e[9]!==a||e[10]!==T||e[11]!==p||e[12]!==n?(H=P=>{const Q=crypto.randomUUID(),pe=P.virtualMcpId??n,Z=pe===n?$:null;Ot(sessionStorage,a,Q,P.message),p.create({id:Q,virtual_mcp_id:pe,...Z?{branch:Z}:{}}).then(()=>T(Q,{virtualMcpId:P.virtualMcpId,autosend:!0})).catch(()=>{T(Q,{virtualMcpId:P.virtualMcpId,autosend:!0})})},e[8]=$,e[9]=a,e[10]=T,e[11]=p,e[12]=n,e[13]=H):H=e[13];const ne=H;let K;e[14]!==A||e[15]!==p?(K=P=>{A&&p.setBranch(A,P)},e[14]=A,e[15]=p,e[16]=K):K=e[16];let z;e[17]!==j||e[18]!==B||e[19]!==ne||e[20]!==$||e[21]!==A||e[22]!==F||e[23]!==G||e[24]!==_||e[25]!==W||e[26]!==V||e[27]!==T||e[28]!==K?(z={virtualMcpId:F,taskId:A,openTask:T,createTask:B,createTaskWithMessage:ne,activeTask:j,isThreadLocked:G,lockedHarness:W,lockedSandbox:V,lockedBranch:_,currentBranch:$,setCurrentTaskBranch:K},e[17]=j,e[18]=B,e[19]=ne,e[20]=$,e[21]=A,e[22]=F,e[23]=G,e[24]=_,e[25]=W,e[26]=V,e[27]=T,e[28]=K,e[29]=z):z=e[29];const se=z;let X;e[30]!==q||e[31]!==k||e[32]!==f||e[33]!==c?(X={user:c,contextPrompt:q,preferences:k,rawNavigateToTask:f},e[30]=q,e[31]=k,e[32]=f,e[33]=c,e[34]=X):X=e[34];const b=X;let E;e[35]!==o||e[36]!==b?(E=Me.jsx(es,{children:Me.jsx(xt.Provider,{value:b,children:o})}),e[35]=o,e[36]=b,e[37]=E):E=e[37];let L;return e[38]!==E||e[39]!==se?(L=Me.jsx(et.Provider,{value:se,children:E}),e[38]=E,e[39]=se,e[40]=L):L=e[40],L}function Cs({taskId:t,children:e}){const n=De(),s=Bt(),{virtualMcpId:o,activeTask:a,currentBranch:l}=ts(),c=Nt({isDesktopApp:s,harnessId:a?.harness_id,sandboxProviderKind:a?.sandbox_provider_kind}),h=n("chat.input.codingAgentRequiresDesktop");t&&!lt.has(t)&&(lt.add(t),_t("chat_opened",{thread_id:t}));const{imageModel:m,webSearchModel:f,deepResearchModel:k,chatMode:M,setChatMode:p,appContexts:A,setTiptapDoc:F,simpleModeTier:q}=ns(),x=v.useContext(xt);if(!x)throw new Error(n("chat.chatContext.activeTaskProviderMissingContext"));const{user:T,contextPrompt:j,preferences:W,rawNavigateToTask:V}=x,{org:_,locator:G}=ee(),$=Bn(),[te,B]=v.useState(null),H=()=>{B(new Error(h))},ne=Tn(),K=He(),z=Ft(),se=ut(),X=Kt({connectionId:Qt,orgId:_.id,orgSlug:_.slug}),b=qt(_.slug,t,{client:X,batch:jt(a?.harness_id)});v.use(b.ready);const E=fe(b.messages),L=fe(b.status),P=fe(b.finishReason),Q=fe(b.runStatusStage),pe=fe(b.hasMoreOlder),Z=fe(b.isFetchingOlder),N=v.useRef({onToolCall:ne,queryClient:K,rawNavigateToTask:V,taskId:t,manager:z,navigate:se,orgId:_.id,orgSlug:_.slug});N.current={onToolCall:ne,queryClient:K,rawNavigateToTask:V,taskId:t,manager:z,navigate:se,orgId:_.id,orgSlug:_.slug},Zt({orgSlug:_.slug,taskId:t,onTaskStatus:d=>{const u=N.current,D=d.data.message_id;if(d.data.status==="in_progress"&&D){Ve(u.taskId,D);const U=Vn(u.taskId,D);U&&b.applyLocalMessage(U),ae(u.orgSlug,u.taskId)}Nn(u.taskId)&&(async()=>(await ae(u.orgSlug,u.taskId),await b.reconcileFromServer()&&Ae(u.taskId).get().length===0&&Fn(u.taskId)))()}}),v.useEffect(()=>{const d={onData:y=>{if(y.type==="data-thread-title"){const w=y.data;if(!w?.title)return;const r=N.current;if(!r.taskId)return;r.manager.patchThread({id:r.taskId,title:w.title,updated_at:new Date().toISOString()});return}if(y.type==="data-deck-updated"){const w=y.data;if(!w?.path)return;const r=w.path,g=N.current;g.queryClient.invalidateQueries({queryKey:de.orgFsStat(g.orgId,"home",r)}),g.queryClient.invalidateQueries({queryKey:de.orgFsRecent(g.orgId)}),g.navigate({to:".",search:O=>({...O,main:Ut(r)}),replace:!0});return}if(y.type==="data-open-preview"){const w=y.data,r=N.current,g=r.taskId;if(g){const O=r.manager.threads.get().find(R=>R.id===g);r.manager.patchThread({id:g,...w?.branch?{branch:w.branch}:{},...w?.sandboxProviderKind?{sandbox_provider_kind:w.sandboxProviderKind}:{},metadata:{...O?.metadata??{},...w?.githubRepo?{githubRepo:w.githubRepo}:{},...w?.sandboxMap?{sandboxMap:w.sandboxMap}:{}}})}r.navigate({to:".",search:O=>({...O,main:"preview"}),replace:!0});return}},onFinish:(y,w,r)=>{const g=N.current;g.taskId&&ae(g.orgSlug,g.taskId),g.taskId&&g.manager.patchThread({id:g.taskId,status:fn(r,y.parts),updated_at:new Date().toISOString()});const O=y.parts?.some(I=>{const me=I;return(me.type==="tool-share_with_user"||me.type==="tool-bash"||me.type==="tool-write")&&me.state==="output-available"});if(g.taskId&&O){const I=de.threadOutputs(g.taskId);for(const me of[0,1500,3e3,6e3,12e3,25e3])setTimeout(()=>{g.queryClient.invalidateQueries({queryKey:I})},me)}g.queryClient.invalidateQueries({queryKey:de.homeNextActions(g.orgSlug)});const R=y.metadata?.thread_id;R&&R!==g.taskId&&g.rawNavigateToTask(R)},onError:y=>{B(y),console.error("[chat] Error",y)},onToolCall:y=>N.current.onToolCall(y)};b.observer=d,ae(N.current.orgSlug,N.current.taskId);const u=y=>y==="submitted"||y==="streaming";let D=u(b.status.get().kind);const U=b.status.subscribe(()=>{const y=u(b.status.get().kind);if(y===D)return;D=y;const w=N.current;ae(w.orgSlug,w.taskId)});return()=>{b.observer===d&&(b.observer=null),U()}},[b]);const Se=L.kind==="submitted"||L.kind==="streaming",Ue=E.length===0,Oe=E.at(-1),Le=!Se&&Oe?.role==="assistant"&&Oe.parts.some(d=>"state"in d&&d.state==="approval-requested"),Pe=a,ke=(Pe?.status==="in_progress"||Pe?.status==="expired")&&L.kind==="ready"&&E.length>0;async function _e(d){const u=t,D=o;if(c)return H(),oe.delete(u),!1;const U=Object.entries(A),y=U.length>0?U.map(([R,I])=>`### App Context: ${R}
|
|
31
|
-
${I}`).join(`
|
|
32
|
-
|
|
33
|
-
`):"",w=[j,y].filter(Boolean).join(`
|
|
34
|
-
|
|
35
|
-
`);let r=M;r==="gen-image"&&!m&&(r="default"),r==="web-search"&&!f&&(r="default"),r==="deep-research"&&!k&&(r="default"),(r==="web-search"||r==="deep-research")&&p("default");const g=yn({thread:a?{harness_id:a.harness_id??null,sandbox_provider_kind:a.sandbox_provider_kind??null,branch:a.branch??null}:null,globals:{branch:l}});a?.harness_id||z.patchThread({id:u,harness_id:g.harnessId??"decopilot",updated_at:new Date().toISOString()});const O={tier:q,mode:r,toolApprovalLevel:W.toolApprovalLevel??Pt(),system:w||void 0,agent:{id:D},thread_id:u,...g};try{if(Se||ke){let R=!0;try{jn(u,d),await b.enqueue(d,O),kt(u,{workflowId:`thread-run:${u}:${d.id}`,messageId:d.id,text:En(d.parts),hasAttachments:d.parts.some(I=>I.type==="file"),status:"queued",enqueuedAt:Date.now(),optimistic:!0}),Ln(u)}catch(I){R=!1,rt(u,d.id),Ve(u,d.id),B(I instanceof Error?I:new Error(String(I))),ce.error(I instanceof Error?I.message:n("chat.chatContext.failedToQueueMessage"))}return ae(_.slug,u),R}return await b.submit({kind:"message",message:d},O),!0}finally{oe.delete(u)}}async function re(d){const u=d.parts??St(d.tiptapDoc);if(u.length===0||oe.has(t))return;oe.add(t),B(null),F(void 0);const D={tiptapDoc:d.tiptapDoc,created_at:new Date().toISOString(),user:{avatar:T?.image??void 0,name:T?.name??"you"}},U={id:crypto.randomUUID(),role:"user",parts:u,metadata:D};await _e(U)}async function Ne(d,u){if(c)return H(),!1;if(oe.has(t))return ce.info(n("chat.chatContext.stillSendingPreviousMessage")),!1;if(oe.add(t),!await $.cancel(t,d))return oe.delete(t),ce.error(n("chat.chatContext.couldNotRemoveOriginalMessage")),!1;rt(t,d),b.removeLocalMessage(d);const U={id:crypto.randomUUID(),role:"user",parts:[{type:"text",text:u}],metadata:{created_at:new Date().toISOString(),user:{avatar:T?.image??void 0,name:T?.name??"you"}}};try{return await _e(U)}catch(y){return ce.error(y instanceof Error?y.message:n("chat.chatContext.failedToSendEditedMessage")),!1}}const Fe=async()=>{b.stop();try{const d=await fetch(`/api/${_.slug}/decopilot/cancel/${t}`,{method:"POST",credentials:"include"});if(d.status===404)return;if(!d.ok){const u=await d.json().catch(()=>({}));throw new Error(u.message??n("chat.chatContext.cancelFailedStatus",{status:d.status}))}}catch(d){const u=d instanceof Error?d.message:n("chat.chatContext.failedToCancel");ce.error(u),console.error("[chat] cancelRun",d)}},Y=d=>d&&typeof d=="object"&&"type"in d?re({tiptapDoc:d}):re(d),he=Be({strict:!1}).autosend===pt;v.useEffect(()=>{if(!he||E.length>0||c)return;const d=Dt(sessionStorage,G,t);d&&re(d.message).then(()=>{$t(sessionStorage,G,t)})},[he,E.length,c,G,t,re]);const Re={messages:E,status:Zn(L),sendMessage:Y,editQueuedMessage:Ne,stop:()=>{if(c){H();return}Fe()},submit:async(d,u)=>{if(c){H();return}await b.submit(d,u)},removeLocalMessage:d=>b.removeLocalMessage(d),isSendInFlight:()=>oe.has(t),error:te,clearError:()=>B(null),finishReason:P,runStatusStage:Q,clearFinishReason:()=>b.finishReason.set(null),isStreaming:Se,isChatEmpty:Ue,isWaitingForApprovals:Le??!1,isRunInProgress:ke,hasMoreOlder:pe,isFetchingOlder:Z,fetchOlderMessages:b.fetchOlderMessages.bind(b)};return Me.jsx(Je.Provider,{value:Re,children:e})}function As(){const t=De(),e=v.useContext(Je);if(!e)throw new Error(t("chat.chatContext.useChatStreamMissingContext"));return e}function Ps(){return v.useContext(Je)}function ts(){const t=De(),e=v.useContext(et);if(!e)throw new Error(t("chat.chatContext.useChatTaskMissingContext"));return e}function ns(){const t=De(),e=v.useContext(tt);if(!e)throw new Error(t("chat.chatContext.useChatPrefsMissingContext"));return e}function _s(){return v.useContext(tt)}function ss(){return v.useContext(et)}export{Cs as A,vt as B,es as C,_s as D,on as E,vn as H,rn as S,bs as V,As as a,ts as b,Is as c,Bn as d,rt as e,Ee as f,Kn as g,Ms as h,Wn as i,Ps as j,ss as k,Ts as l,xs as m,ms as n,St as o,fs as p,xn as q,wn as r,ws as s,ks as t,ns as u,ys as v,gs as w,vs as x,yt as y,Ss as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,F as $,j as b}from"./index-B_MMsAiE.js";import{a as H,g as O,s as j}from"./automation-runs-DM4fJpM9.js";import{s as k,u as B}from"./use-mcp-client-J2akoQCG.js";import{b as V,c as Y}from"./use-mcp-tools-B1AdDqZd.js";import{u as q}from"./index-BXvFQMhX.js";import{c as F}from"./monaco-editor-D1NyXstY.js";import{g as G,M as K,a as D}from"./index-DbB3C14p.js";import{a as W,u as z}from"./chat-context-DtQAFZGy.js";import{u as J}from"./shell-layout-C7OHxOgm.js";import{O as Q}from"./tab-id-E3-rpOnl.js";import"./select-vyt7fwjg.js";import"./tooltip-GW2DyJLV.js";import"./Check-DCYpTX7L.js";import"./ChevronDown-PFtiUBSQ.js";import"./ChevronUp-BdH75oDU.js";import"./agent-icon-kVYCkgDa.js";import"./AlertCircle-DfAm4o9d.js";import"./Tool01-DIokgqXj.js";import"./ArrowUp-A7Mx0wQq.js";import"./Settings02-DKxAMtG6.js";import"./Tool02-Ddkawasa.js";import"./XCircle-D4coMBPk.js";import"./ArrowUpRight-JxGVImer.js";import"./TrendUp01-C42-Wjl8.js";import"./ZapSquare-B8T6rKNs.js";import"./Users03-DvXZQDEh.js";import"./CheckCircle-CAxEgYBD.js";import"./ChevronRight-CxJTFr1Z.js";import"./DotsVertical-BGKdNMuc.js";import"./Stars02-CbrW-bl9.js";import"./Copy01-Bc5VfVJK.js";import"./CpuChip01-DWLM6pni.js";import"./CreditCard01-BT88WrjK.js";import"./Eye-Bmz_K6Az.js";import"./FilterLines-CoDG45q_.js";import"./Star01-A6Co6I5T.js";import"./Palette-ieliJ9ri.js";import"./SwitchHorizontal01-COkct-t0.js";import"./HardDrive-BtIbx3qj.js";import"./Key01-U9_ySw41.js";import"./LayoutLeft-Ct7sobUG.js";import"./LinkExternal01-DZBb956i.js";import"./LogOut01-CVO6-MqX.js";import"./Monitor01-CNIDIRyn.js";import"./Sun-By6pya_9.js";import"./Play-YwjBxXxu.js";import"./Plus-DshatFPI.js";import"./SearchLg-CA_csAv5.js";import"./SearchMd-D51gG9yR.js";import"./Shield01-DcD-RjAf.js";import"./Stars01-GAsjgHvR.js";import"./Trash01-BnkpBeyG.js";import"./Upload01-CL-S7mCf.js";import"./User01-Dkl2AAm0.js";import"./Users01-C5V1wUhw.js";import"./XClose-DubUci38.js";import"./X-C0IBj9M7.js";import"./Zap-cKHE_zIY.js";import"./useInfiniteQuery-CM2CVHiC.js";import"./use-infinite-scroll-BEDxOpbR.js";import"./use-connection-KMNTjm45.js";import"./use-virtual-mcp-BbsY8Sm2.js";import"./card-C96BA3_o.js";import"./sidebar-BaKYje5H.js";import"./use-mobile-B21Exqzk.js";import"./table-BkUJwywN.js";import"./empty-state-CkwReOEQ.js";import"./use-members-BSJzl9B_.js";import"./use-org-auth-client-CAbfHSfT.js";import"./use-clock-tick-DyK_4mkp.js";import"./use-automations-CVabhFuJ.js";import"./studio-tools-Bt6twF2O.js";import"./useSuspenseInfiniteQuery-qyvQUEBa.js";import"./avatar-ICdV2BRR.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-ttE3tfUB.js";import"./dialog-C6qg7Ck8.js";import"./hooks-XfMYeEIs.js";import"./decopilot-sse-pool-GQur4M3a.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-CvX-0tHP.js";import"./use-navigate-to-agent-BbUq2LGY.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-Dg_R-EHK.js";import"./form-Dibti8iC.js";import"./label-DMbGJZiR.js";import"./input-CDSeZvCx.js";import"./spinner-CjAa-sPH.js";import"./auth-CBvb6Xya.js";import"./drawer-DsX5bBE-.js";import"./collection-search-k2eiLSTO.js";import"./tabs-CUrHUr0C.js";import"./toggle-group-DzvX03Se.js";import"./use-deco-credits-BEOen75e.js";import"./popover-Ds4SkgvE.js";import"./alert-dialog-CgooVxEs.js";import"./toolbar-Bfscd_AO.js";import"./skeleton-DWhDXNUH.js";import"./github-repo-picker-CppfYsNH.js";import"./use-debounced-value-oFI-ZZu5.js";import"./authenticate-and-persist-oauth-D6Cg3rRV.js";import"./mcp-oauth-ymd3SFfg.js";import"./extract-connection-data-Cad0ShHO.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-ufuvpGD9.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-D_9VNazf.js";import"./use-registry-connections-D6aDbOx7.js";import"./use-organization-settings-CfB7lZCX.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-_kpFU1gC.js";import"./connection-form-helpers-DrJjgPbl.js";import"./collection-tabs-BXsKWfGz.js";import"./badge-CCx5WpWL.js";import"./use-ai-providers-BwjLzn7U.js";import"./use-open-billing-url-D5Yp4-ix.js";import"./select-model-Cp3i2y21.js";import"./checkbox-CWd555HO.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DolAvAtQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./dropdown-menu-DU8DtkSC.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DsQVB8cv.js";import"./use-decopilot-events-DJCN9WmR.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-7F3PzOjI.js";import"./pt-BR-CLy76QW2.js";import"./switch-CLB543ZX.js";import"./use-debounced-autosave-D0ErO20C.js";import"./index-Dw7ePJkF.js";import"./search-input-DMrgq14n.js";import"./index-Dm1vrjTR.js";import"./use-secrets-P9Lsm-7m.js";import"./self-tool-result-BwqRkK5H.js";import"./use-tags-Dh5OlPEI.js";import"./get-initials-D-f_fDFw.js";import"./command-B6b6o_6w.js";import"./index-DA3i9gHG.js";import"./use-file-configs-BvS6lKL3.js";import"./automation-list-row-jyrfVLO8.js";import"./required-auth-layout-B4xElUex.js";import"./use-org-sso-DuHEve8n.js";const X="studio://navigate",Z=new Set(["vtex","ga4","gsc","github"]);function tt(v){const[t]=v;if(v.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let e=null,p=null;try{const o=new URL(t.uri).searchParams;e=o.get("main"),p=o.get("field")}catch{}return{isNavigate:!0,tab:e&&Q.has(e)?e:null,field:p&&Z.has(p)?p:null}}const ot={};function et(v){const t=L.c(38),{client:e,resourceURI:p,tool:o,connectionId:s,orgId:c,args:M}=v,{sendMessage:I}=W(),{setAppContext:g,clearAppContext:a}=z(),{openSidePanel:h,openTab:n}=J(),i=`${s}:${o.name}`;let u;t[0]!==n?(u=C=>C==="inline"?(n("0"),"inline"):"fullscreen",t[0]=n,t[1]=u):u=t[1];const m=u,l=M??ot;let d;t[2]!==e||t[3]!==o.name||t[4]!==l?(d={client:e,toolName:o.name,toolArguments:l},t[2]=e,t[3]=o.name,t[4]=l,t[5]=d):d=t[5];const{data:r}=Y(d);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=O(o._meta);x=j(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const S=x;let f;t[9]!==o.inputSchema?(f=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=f):f=t[10];let _;t[11]!==S||t[12]!==f||t[13]!==o?(_={...o,name:S,inputSchema:f},t[11]=S,t[12]=f,t[13]=o,t[14]=_):_=t[14];const E=_;let A;t[15]!==h||t[16]!==n||t[17]!==I?(A=C=>{const R=tt(C.content);if(R.isNavigate){R.tab&&n(R.tab,R.field?{field:R.field}:void 0);return}const w=F(C.content);w.content.length>0&&(h("chat"),I({tiptapDoc:w}))},t[15]=h,t[16]=n,t[17]=I,t[18]=A):A=t[18];const y=A;let N;t[19]!==E?(N={tool:E},t[19]=E,t[20]=N):N=t[20];let P;t[21]!==g||t[22]!==i?(P=C=>g(i,C),t[21]=g,t[22]=i,t[23]=P):P=t[23];let T;t[24]!==a||t[25]!==i?(T=()=>a(i),t[24]=a,t[25]=i,t[26]=T):T=t[26];let U;return t[27]!==e||t[28]!==y||t[29]!==m||t[30]!==c||t[31]!==p||t[32]!==N||t[33]!==P||t[34]!==T||t[35]!==l||t[36]!==r?(U=b.jsx(K,{resourceURI:p,orgId:c,toolInfo:N,toolInput:l,toolResult:r,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:e,onMessage:y,onUpdateModelContext:P,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=e,t[28]=y,t[29]=m,t[30]=c,t[31]=p,t[32]=N,t[33]=P,t[34]=T,t[35]=l,t[36]=r,t[37]=U):U=t[37],U}function Ve(v){const t=L.c(24),{connectionId:e,toolName:p,args:o}=v,{org:s}=$(),c=q();let M;t[0]!==e||t[1]!==c?(M=k(e)&&c.vmEntry?.sandboxProviderKind==="user-desktop"&&c.previewUrl?`${c.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=e,t[1]=c,t[2]=M):M=t[2];const I=M;let g;t[3]!==e||t[4]!==I||t[5]!==s.id||t[6]!==s.slug?(g={connectionId:e,orgId:s.id,orgSlug:s.slug,mcpUrl:I},t[3]=e,t[4]=I,t[5]=s.id,t[6]=s.slug,t[7]=g):g=t[7];const a=B(g);let h;t[8]!==a?(h={client:a},t[8]=a,t[9]=h):h=t[9];const{data:n}=V(h);let i,u,m;t[10]!==p||t[11]!==n.tools?(i=H(decodeURIComponent(p)),m=n.tools.find(r=>r.name===i)??n.tools.find(r=>{const x=O(r._meta);if(!x)return!1;if(j(r.name,x)===i)return!0;const f=j(i,x);return f!==i&&r.name===f}),u=m?._meta?G(m._meta):void 0,t[10]=p,t[11]=n.tools,t[12]=i,t[13]=u,t[14]=m):(i=t[12],u=t[13],m=t[14]);const l=u;if(!m||!l){let r;return t[15]!==i?(r=b.jsx("div",{className:"flex items-center justify-center h-full w-full",children:b.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',i,'" not found or has no UI']})}),t[15]=i,t[16]=r):r=t[16],r}let d;return t[17]!==o||t[18]!==a||t[19]!==e||t[20]!==s.id||t[21]!==l||t[22]!==m?(d=b.jsx(et,{client:a,resourceURI:l,tool:m,connectionId:e,orgId:s.id,args:o}),t[17]=o,t[18]=a,t[19]=e,t[20]=s.id,t[21]=l,t[22]=m,t[23]=d):d=t[23],d}export{Ve as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,b as A,j as r}from"./index-B_MMsAiE.js";import{I as O}from"./input-CDSeZvCx.js";import{L as F}from"./label-DMbGJZiR.js";import{S as R,a as z,b as V,c as D,d as J}from"./select-vyt7fwjg.js";import{T as M}from"./textarea-_kpFU1gC.js";import{O as Q,P as Y,Q as $,I as q,T as G,Y as H}from"./index-BXvFQMhX.js";import{s as I}from"./primitives-Db1yM4BZ.js";import{u as U}from"./use-autosave-C-0TybV5.js";import"./tooltip-GW2DyJLV.js";import"./Check-DCYpTX7L.js";import"./ChevronDown-PFtiUBSQ.js";import"./ChevronUp-BdH75oDU.js";import"./ArrowUp-A7Mx0wQq.js";import"./chat-context-DtQAFZGy.js";import"./tab-id-E3-rpOnl.js";import"./dialog-C6qg7Ck8.js";import"./X-C0IBj9M7.js";import"./Copy01-Bc5VfVJK.js";import"./hooks-XfMYeEIs.js";import"./use-mcp-client-J2akoQCG.js";import"./auth-CBvb6Xya.js";import"./decopilot-sse-pool-GQur4M3a.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-BbsY8Sm2.js";import"./use-ai-providers-BwjLzn7U.js";import"./studio-tools-Bt6twF2O.js";import"./use-decopilot-events-DJCN9WmR.js";import"./use-organization-settings-CfB7lZCX.js";import"./automation-runs-DM4fJpM9.js";import"./agent-icon-kVYCkgDa.js";import"./AlertCircle-DfAm4o9d.js";import"./Tool01-DIokgqXj.js";import"./Settings02-DKxAMtG6.js";import"./Tool02-Ddkawasa.js";import"./XCircle-D4coMBPk.js";import"./ArrowUpRight-JxGVImer.js";import"./TrendUp01-C42-Wjl8.js";import"./ZapSquare-B8T6rKNs.js";import"./Users03-DvXZQDEh.js";import"./CheckCircle-CAxEgYBD.js";import"./ChevronRight-CxJTFr1Z.js";import"./DotsVertical-BGKdNMuc.js";import"./Stars02-CbrW-bl9.js";import"./CpuChip01-DWLM6pni.js";import"./CreditCard01-BT88WrjK.js";import"./Eye-Bmz_K6Az.js";import"./FilterLines-CoDG45q_.js";import"./Star01-A6Co6I5T.js";import"./Palette-ieliJ9ri.js";import"./SwitchHorizontal01-COkct-t0.js";import"./HardDrive-BtIbx3qj.js";import"./Key01-U9_ySw41.js";import"./LayoutLeft-Ct7sobUG.js";import"./LinkExternal01-DZBb956i.js";import"./LogOut01-CVO6-MqX.js";import"./Monitor01-CNIDIRyn.js";import"./Sun-By6pya_9.js";import"./Play-YwjBxXxu.js";import"./Plus-DshatFPI.js";import"./SearchLg-CA_csAv5.js";import"./SearchMd-D51gG9yR.js";import"./Shield01-DcD-RjAf.js";import"./Stars01-GAsjgHvR.js";import"./Trash01-BnkpBeyG.js";import"./Upload01-CL-S7mCf.js";import"./User01-Dkl2AAm0.js";import"./Users01-C5V1wUhw.js";import"./XClose-DubUci38.js";import"./Zap-cKHE_zIY.js";import"./useInfiniteQuery-CM2CVHiC.js";import"./use-infinite-scroll-BEDxOpbR.js";import"./use-connection-KMNTjm45.js";import"./card-C96BA3_o.js";import"./sidebar-BaKYje5H.js";import"./use-mobile-B21Exqzk.js";import"./table-BkUJwywN.js";import"./empty-state-CkwReOEQ.js";import"./use-members-BSJzl9B_.js";import"./use-org-auth-client-CAbfHSfT.js";import"./use-clock-tick-DyK_4mkp.js";import"./use-automations-CVabhFuJ.js";import"./useSuspenseInfiniteQuery-qyvQUEBa.js";import"./avatar-ICdV2BRR.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-ttE3tfUB.js";import"./monaco-editor-D1NyXstY.js";import"./spinner-CjAa-sPH.js";import"./index-DbB3C14p.js";import"./shell-layout-C7OHxOgm.js";import"./required-auth-layout-B4xElUex.js";import"./use-org-sso-DuHEve8n.js";import"./integration-icon-CvX-0tHP.js";import"./use-navigate-to-agent-BbUq2LGY.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-Dg_R-EHK.js";import"./form-Dibti8iC.js";import"./drawer-DsX5bBE-.js";import"./collection-search-k2eiLSTO.js";import"./tabs-CUrHUr0C.js";import"./toggle-group-DzvX03Se.js";import"./use-deco-credits-BEOen75e.js";import"./popover-Ds4SkgvE.js";import"./alert-dialog-CgooVxEs.js";import"./toolbar-Bfscd_AO.js";import"./skeleton-DWhDXNUH.js";import"./github-repo-picker-CppfYsNH.js";import"./use-debounced-value-oFI-ZZu5.js";import"./authenticate-and-persist-oauth-D6Cg3rRV.js";import"./mcp-oauth-ymd3SFfg.js";import"./use-mcp-tools-B1AdDqZd.js";import"./extract-connection-data-Cad0ShHO.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-ufuvpGD9.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-D_9VNazf.js";import"./use-registry-connections-D6aDbOx7.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-DrJjgPbl.js";import"./collection-tabs-BXsKWfGz.js";import"./badge-CCx5WpWL.js";import"./use-open-billing-url-D5Yp4-ix.js";import"./select-model-Cp3i2y21.js";import"./checkbox-CWd555HO.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DolAvAtQ.js";import"./dropdown-menu-DU8DtkSC.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DsQVB8cv.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-7F3PzOjI.js";import"./pt-BR-CLy76QW2.js";import"./switch-CLB543ZX.js";import"./use-debounced-autosave-D0ErO20C.js";import"./index-Dw7ePJkF.js";import"./search-input-DMrgq14n.js";import"./index-Dm1vrjTR.js";import"./use-secrets-P9Lsm-7m.js";import"./self-tool-result-BwqRkK5H.js";import"./use-tags-Dh5OlPEI.js";import"./get-initials-D-f_fDFw.js";import"./command-B6b6o_6w.js";import"./index-DA3i9gHG.js";import"./use-file-configs-BvS6lKL3.js";import"./automation-list-row-jyrfVLO8.js";const W={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},X={authors:"sandbox.recordEditor.titleAuthor"};function Vr(C){const t=L.c(40),{orgSlug:K,virtualMcpId:h,branch:w,kind:a,blockKey:g,block:P}=C,i=A(),f=Q(h);let b;t[0]!==w||t[1]!==K||t[2]!==f||t[3]!==h?(b={orgSlug:K,virtualMcpId:h,branch:w,packagePath:f},t[0]=w,t[1]=K,t[2]=f,t[3]=h,t[4]=b):b=t[4];const p=Y(b);let k;t[5]!==P||t[6]!==a?(k=$(P,a),t[5]=P,t[6]=a,t[7]=k):k=t[7];const B=k;let v;t[8]!==g||t[9]!==a||t[10]!==p?(v=l=>{p.mutate({blockKey:g,data:G(g,a,l)})},t[8]=g,t[9]=a,t[10]=p,t[11]=v):v=t[11];const[e,S]=U(B,v);let j;t[12]!==e||t[13]!==S?(j=(l,o)=>S({...e,[l]:o}),t[12]=e,t[13]=S,t[14]=j):j=t[14];const s=j,T=X[a];let n;t[15]!==i||t[16]!==T?(n=i(T),t[15]=i,t[16]=T,t[17]=n):n=t[17];let c;t[18]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[18]=n,t[19]=c):c=t[19];let d;t[20]!==p.isError||t[21]!==p.isPending?(d=r.jsx(q,{isPending:p.isPending,isError:p.isError}),t[20]=p.isError,t[21]=p.isPending,t[22]=d):d=t[22];let y;t[23]!==c||t[24]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[23]=c,t[24]=d,t[25]=y):y=t[25];const N=W[a];let x;if(t[26]!==e||t[27]!==s||t[28]!==i||t[29]!==N){let l;t[31]!==e||t[32]!==s||t[33]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(H,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:I(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(z,{id:o.key,className:"h-10 w-full",children:r.jsx(V,{placeholder:i(o.labelKey)})}),r.jsx(D,{children:(o.options??[]).map(m=>r.jsx(J,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(M,{id:o.key,value:I(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(O,{id:o.key,value:I(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[31]=e,t[32]=s,t[33]=i,t[34]=l):l=t[34],x=N.map(l),t[26]=e,t[27]=s,t[28]=i,t[29]=N,t[30]=x}else x=t[30];let u;t[35]!==x?(u=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[35]=x,t[36]=u):u=t[36];let E;return t[37]!==y||t[38]!==u?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[37]=y,t[38]=u,t[39]=E):E=t[39],E}export{Vr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-hvt8-3Vh.js","assets/index-B_MMsAiE.js","assets/index-BQ5clB3L.css","assets/Tool02-Ddkawasa.js","assets/CheckCircle-CAxEgYBD.js","assets/Settings02-DKxAMtG6.js","assets/use-mcp-client-J2akoQCG.js","assets/auth-CBvb6Xya.js","assets/useInfiniteQuery-CM2CVHiC.js","assets/use-infinite-scroll-BEDxOpbR.js","assets/studio-tools-Bt6twF2O.js","assets/badge-CCx5WpWL.js","assets/input-CDSeZvCx.js","assets/dropdown-menu-DU8DtkSC.js","assets/Check-DCYpTX7L.js","assets/ChevronRight-CxJTFr1Z.js","assets/DotsVertical-BGKdNMuc.js","assets/table-BkUJwywN.js","assets/toggle-group-DzvX03Se.js","assets/use-view-mode-BLAVUQ6i.js","assets/use-mobile-B21Exqzk.js","assets/FilterLines-CoDG45q_.js","assets/SearchMd-D51gG9yR.js","assets/dialog-C6qg7Ck8.js","assets/X-C0IBj9M7.js","assets/AlertCircle-DfAm4o9d.js","assets/Upload01-CL-S7mCf.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CgooVxEs.js","assets/card-C96BA3_o.js","assets/Trash01-BnkpBeyG.js","assets/label-DMbGJZiR.js","assets/select-vyt7fwjg.js","assets/tooltip-GW2DyJLV.js","assets/ChevronDown-PFtiUBSQ.js","assets/ChevronUp-BdH75oDU.js","assets/switch-CLB543ZX.js","assets/textarea-_kpFU1gC.js","assets/XCircle-D4coMBPk.js","assets/checkbox-CWd555HO.js","assets/Eye-Bmz_K6Az.js","assets/LinkExternal01-DZBb956i.js","assets/use-copy-ttE3tfUB.js","assets/Copy01-Bc5VfVJK.js","assets/Key01-U9_ySw41.js","assets/Plus-DshatFPI.js","assets/mcp-oauth-ymd3SFfg.js","assets/Play-YwjBxXxu.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as i,j as e,r as s,k as a,aG as o}from"./index-B_MMsAiE.js";import{R as m}from"./require-capability-DaTvC6dg.js";import"./use-capability-7F3PzOjI.js";import"./access-gate-DYNzAGYH.js";import"./capability-load-error-CqaJ2CyT.js";const n=s.lazy(()=>o(()=>import("./registry-layout-hvt8-3Vh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-hvt8-3Vh.js","assets/index-B_MMsAiE.js","assets/index-BQ5clB3L.css","assets/Tool02-Ddkawasa.js","assets/CheckCircle-CAxEgYBD.js","assets/Settings02-DKxAMtG6.js","assets/use-mcp-client-J2akoQCG.js","assets/auth-CBvb6Xya.js","assets/useInfiniteQuery-CM2CVHiC.js","assets/use-infinite-scroll-BEDxOpbR.js","assets/studio-tools-Bt6twF2O.js","assets/badge-CCx5WpWL.js","assets/input-CDSeZvCx.js","assets/dropdown-menu-DU8DtkSC.js","assets/Check-DCYpTX7L.js","assets/ChevronRight-CxJTFr1Z.js","assets/DotsVertical-BGKdNMuc.js","assets/table-BkUJwywN.js","assets/toggle-group-DzvX03Se.js","assets/use-view-mode-BLAVUQ6i.js","assets/use-mobile-B21Exqzk.js","assets/FilterLines-CoDG45q_.js","assets/SearchMd-D51gG9yR.js","assets/dialog-C6qg7Ck8.js","assets/X-C0IBj9M7.js","assets/AlertCircle-DfAm4o9d.js","assets/Upload01-CL-S7mCf.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CgooVxEs.js","assets/card-C96BA3_o.js","assets/Trash01-BnkpBeyG.js","assets/label-DMbGJZiR.js","assets/select-vyt7fwjg.js","assets/tooltip-GW2DyJLV.js","assets/ChevronDown-PFtiUBSQ.js","assets/ChevronUp-BdH75oDU.js","assets/switch-CLB543ZX.js","assets/textarea-_kpFU1gC.js","assets/XCircle-D4coMBPk.js","assets/checkbox-CWd555HO.js","assets/Eye-Bmz_K6Az.js","assets/LinkExternal01-DZBb956i.js","assets/use-copy-ttE3tfUB.js","assets/Copy01-Bc5VfVJK.js","assets/Key01-U9_ySw41.js","assets/Plus-DshatFPI.js","assets/mcp-oauth-ymd3SFfg.js","assets/Play-YwjBxXxu.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,d as n,f as c,j as t,k as f,r as l,aG as p}from"./index-B_MMsAiE.js";import{R as u}from"./require-capability-DaTvC6dg.js";import"./use-capability-7F3PzOjI.js";import"./access-gate-DYNzAGYH.js";import"./capability-load-error-CqaJ2CyT.js";const g=l.lazy(()=>p(()=>import("./registry-layout-hvt8-3Vh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-BEDxOpbR.js";import{e5 as i}from"./index-B_MMsAiE.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-BEDxOpbR.js";import{e5 as u,b2 as n}from"./index-B_MMsAiE.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|