decocms 4.131.2 → 4.131.4

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.
Files changed (224) hide show
  1. package/dist/client/assets/{AlertCircle-Dkv2twCy.js → AlertCircle-DevA0A1M.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Drb-WBuc.js → AreaChart-BWfAq2gc.js} +1 -1
  3. package/dist/client/assets/{ArrowRight-D1F_c8mU.js → ArrowRight-Dq4C6lJ4.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-CfejN6kE.js → ArrowUp-CLXut3hx.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-pyqwDg-l.js → ArrowUpRight-Bay5EW8Z.js} +1 -1
  6. package/dist/client/assets/{Check-Du2CH0Qx.js → Check-DN6IPn_3.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-pc0wi1b4.js → CheckCircle-ck8m-YN6.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-CIPwphYr.js → ChevronDown-cZoWRgvb.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-bpU9x4EL.js → ChevronRight-CmrokxXJ.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-f9GdHpvo.js → ChevronUp-CswOdRaR.js} +1 -1
  11. package/dist/client/assets/{Copy01-DBHRmMgp.js → Copy01-BGeJ_uJU.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-Dl3GV1z7.js → DotsVertical-Db5Rriwt.js} +1 -1
  13. package/dist/client/assets/{Eye-pDXTSR_y.js → Eye-BqdZYqpI.js} +1 -1
  14. package/dist/client/assets/{FilterLines-BFWPoe09.js → FilterLines-BFxvHa0q.js} +1 -1
  15. package/dist/client/assets/{HardDrive-BCPMH3VT.js → HardDrive-C1-SCHTe.js} +1 -1
  16. package/dist/client/assets/{Key01-CBwzTn3B.js → Key01-YwqEObkc.js} +1 -1
  17. package/dist/client/assets/{LayoutLeft-CWKaiAHc.js → LayoutLeft-BzJLVhVQ.js} +1 -1
  18. package/dist/client/assets/{LinkExternal01-DsH5I9jm.js → LinkExternal01-Dv9Aj-K0.js} +1 -1
  19. package/dist/client/assets/{LogOut01-YgIKEMFw.js → LogOut01-D1zBEUWi.js} +1 -1
  20. package/dist/client/assets/{Monitor01-q2Qybp9B.js → Monitor01-c_9oVNrI.js} +1 -1
  21. package/dist/client/assets/{Palette-BY72GXhm.js → Palette-CgoT-TdN.js} +1 -1
  22. package/dist/client/assets/{Play-9D0sdMED.js → Play-DY15eh3c.js} +1 -1
  23. package/dist/client/assets/{Plus-1ztWOFkn.js → Plus-D7R6BF5R.js} +1 -1
  24. package/dist/client/assets/{SearchLg-CBRhPi_g.js → SearchLg-B1avg8bD.js} +1 -1
  25. package/dist/client/assets/{SearchMd-CoeKfSSe.js → SearchMd-B-lbf8c2.js} +1 -1
  26. package/dist/client/assets/{Settings02-Dvu63VK8.js → Settings02-k_lwzmTv.js} +1 -1
  27. package/dist/client/assets/{Shield01-ByBFJvxc.js → Shield01-DFBgcYa0.js} +1 -1
  28. package/dist/client/assets/{Star01-B1Kn4-_i.js → Star01-Bv8b5o6W.js} +1 -1
  29. package/dist/client/assets/{Stars01-DpgpdjJr.js → Stars01-CAvqsR90.js} +1 -1
  30. package/dist/client/assets/{Stars02-D9_55K26.js → Stars02-Djd7mUzA.js} +1 -1
  31. package/dist/client/assets/{Sun-DMtwJS6D.js → Sun-DZlLfVSj.js} +1 -1
  32. package/dist/client/assets/{SwitchHorizontal01-BAtdmOhb.js → SwitchHorizontal01-C9T_FryU.js} +1 -1
  33. package/dist/client/assets/{Tool01-DMFHdvqO.js → Tool01-B14PZEqF.js} +1 -1
  34. package/dist/client/assets/{Tool02-CCso8U2x.js → Tool02-C-4pjcCY.js} +1 -1
  35. package/dist/client/assets/{Trash01-CTHwttyB.js → Trash01-DnjcslV5.js} +1 -1
  36. package/dist/client/assets/{TrendUp01-CnWDWhEF.js → TrendUp01-BVE2-KuE.js} +1 -1
  37. package/dist/client/assets/{Upload01-BY9ftwcq.js → Upload01-uhey7zjg.js} +1 -1
  38. package/dist/client/assets/{User01-BTBcFc9z.js → User01-DQzbx1Xu.js} +1 -1
  39. package/dist/client/assets/{Users01-Cql_e-31.js → Users01-Ct4A_zsW.js} +1 -1
  40. package/dist/client/assets/{Users03-o-LyclnZ.js → Users03-C-mvAxcs.js} +1 -1
  41. package/dist/client/assets/{X-DsUhkCER.js → X-DsJCvKBO.js} +1 -1
  42. package/dist/client/assets/{XCircle-qpPGG1wt.js → XCircle-Eu9CNvjp.js} +1 -1
  43. package/dist/client/assets/{XClose-B6aD5HLV.js → XClose-BcWYJ3jm.js} +1 -1
  44. package/dist/client/assets/{Zap-u5rNKW8G.js → Zap-BiPzgNTf.js} +1 -1
  45. package/dist/client/assets/{ZapSquare-qUxPDGDu.js → ZapSquare-DpSSWmnE.js} +1 -1
  46. package/dist/client/assets/{access-gate-CKUKLx71.js → access-gate-BUe45Oc3.js} +1 -1
  47. package/dist/client/assets/{add-section-modal-dEKzXkSV.js → add-section-modal-Cj4WcLQN.js} +1 -1
  48. package/dist/client/assets/{agent-icon-Cn-zdV8E.js → agent-icon-DW-jknHC.js} +1 -1
  49. package/dist/client/assets/{agents-list-CIQknPiT.js → agents-list-CnJm5oWk.js} +1 -1
  50. package/dist/client/assets/{ai-providers-pcs4cL5s.js → ai-providers-D9DCe_7q.js} +1 -1
  51. package/dist/client/assets/{alert-BrYvcVNo.js → alert-DM1JMd0G.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-DdeUN0gs.js → alert-dialog-B5UNzzAF.js} +1 -1
  53. package/dist/client/assets/{app-editor-BokdYxzt.js → app-editor-Des7fkeu.js} +1 -1
  54. package/dist/client/assets/{auth-DxnCXfEr.js → auth-Btre_1OW.js} +1 -1
  55. package/dist/client/assets/{auth-catchall-CfgT5x1l.js → auth-catchall-DEyYZDPo.js} +1 -1
  56. package/dist/client/assets/{auth-entry-z-RVgErJ.js → auth-entry-Bk6mD7w7.js} +1 -1
  57. package/dist/client/assets/{auth-split-layout-RjHJpu_H.js → auth-split-layout-Xx-1MkJu.js} +1 -1
  58. package/dist/client/assets/{authenticate-and-persist-oauth-BgQP48Df.js → authenticate-and-persist-oauth-DMOmyFRT.js} +1 -1
  59. package/dist/client/assets/{automation-list-row-BgQ-Sntx.js → automation-list-row-C0qxtH51.js} +1 -1
  60. package/dist/client/assets/{automation-runs-DJHP3Ebd.js → automation-runs-D_CI6v6C.js} +1 -1
  61. package/dist/client/assets/{automations-GH1d56mw.js → automations-DuYav8ee.js} +1 -1
  62. package/dist/client/assets/{avatar-CtA1rHBR.js → avatar-6012j4NF.js} +1 -1
  63. package/dist/client/assets/{badge-DLw-128i.js → badge-kM5UAKst.js} +1 -1
  64. package/dist/client/assets/{block-document-BJX5tnOk.js → block-document-Cuu1bHmR.js} +1 -1
  65. package/dist/client/assets/{brand-context-DkvpqsQ8.js → brand-context-QIm13fsq.js} +1 -1
  66. package/dist/client/assets/{buckets-DwZxLwtb.js → buckets-cXyEFJzj.js} +1 -1
  67. package/dist/client/assets/{bulk-category-panel-BRjHEgsf.js → bulk-category-panel-2liLzEa8.js} +1 -1
  68. package/dist/client/assets/{calendar-DDOXvi9j.js → calendar-MyVXyluP.js} +1 -1
  69. package/dist/client/assets/{capability-load-error-BSRBDTUF.js → capability-load-error-DXOesTij.js} +1 -1
  70. package/dist/client/assets/{card-C_7Dfz9P.js → card-LK3SgMlx.js} +1 -1
  71. package/dist/client/assets/{category-editor-Q5uFZ0SW.js → category-editor-Bpk_JSk7.js} +1 -1
  72. package/dist/client/assets/chat-context-4A5jyyEw.js +36 -0
  73. package/dist/client/assets/{checkbox-CTh8EHLV.js → checkbox-C9Nq068Z.js} +1 -1
  74. package/dist/client/assets/{cli-auth-success-wvSiqOx7.js → cli-auth-success-C3PdvGhV.js} +1 -1
  75. package/dist/client/assets/{collection-detail-BGIhyphq.js → collection-detail-COz359qR.js} +1 -1
  76. package/dist/client/assets/{collection-display-button-BK6TSoeX.js → collection-display-button-C9dL_fAH.js} +1 -1
  77. package/dist/client/assets/{collection-search-CgPrJD5s.js → collection-search-C63j6Zzd.js} +1 -1
  78. package/dist/client/assets/{collection-table-wrapper-BBK5Zjn2.js → collection-table-wrapper-B06IqYXO.js} +1 -1
  79. package/dist/client/assets/{collection-tabs-DQPFhmJa.js → collection-tabs-C_e51TYz.js} +1 -1
  80. package/dist/client/assets/{command-mkWdNJiA.js → command-DtoG6f_9.js} +1 -1
  81. package/dist/client/assets/{commerce-onboarding-Bs7-iua6.js → commerce-onboarding-E61cJuT5.js} +1 -1
  82. package/dist/client/assets/{companions-core-CCmjJd5y.js → companions-core-RUJyQPUT.js} +1 -1
  83. package/dist/client/assets/{connect-BteNxC1u.js → connect-B7aqLNJY.js} +1 -1
  84. package/dist/client/assets/{connect-desktop-dialog-DCNWmwTZ.js → connect-desktop-dialog-Dj9gRQkE.js} +1 -1
  85. package/dist/client/assets/{connection-card-5582YW8P.js → connection-card-BoF_KE8y.js} +1 -1
  86. package/dist/client/assets/{connection-detail-XbVgn9MH.js → connection-detail-DLH59AQX.js} +1 -1
  87. package/dist/client/assets/{connection-form-helpers-CmY0Q2Uk.js → connection-form-helpers-DB9ro8Ha.js} +1 -1
  88. package/dist/client/assets/{connection-CaaVbqW9.js → connection-vyIAo10g.js} +1 -1
  89. package/dist/client/assets/{connections-BXNw1IKw.js → connections-DfRW6lnA.js} +1 -1
  90. package/dist/client/assets/{decopilot-sse-pool-qYgFQjLn.js → decopilot-sse-pool-CFz6l2VG.js} +1 -1
  91. package/dist/client/assets/{dialog-DRzTNCF2.js → dialog-D370feZI.js} +1 -1
  92. package/dist/client/assets/{domain-settings-DHJNEbEZ.js → domain-settings-6514J2nW.js} +1 -1
  93. package/dist/client/assets/{drawer-SsJOHRPA.js → drawer-LhH6tqHN.js} +1 -1
  94. package/dist/client/assets/{dropdown-menu-BokfpNru.js → dropdown-menu-DBsO6utH.js} +1 -1
  95. package/dist/client/assets/{empty-state-CiJvvnog.js → empty-state-Cj1VbJ0y.js} +1 -1
  96. package/dist/client/assets/{extract-connection-data-Br5Lsj7z.js → extract-connection-data-C8zhfgGc.js} +1 -1
  97. package/dist/client/assets/{file-explorer-BzAb8PtM.js → file-explorer-CEKYwf0q.js} +1 -1
  98. package/dist/client/assets/{form-CQNziZWc.js → form-Dj_8GoDc.js} +1 -1
  99. package/dist/client/assets/{general-Ch6aAbGc.js → general-cez9yeo-.js} +1 -1
  100. package/dist/client/assets/{github-repo-picker-pUO4-UP7.js → github-repo-picker-CeuXOkGP.js} +1 -1
  101. package/dist/client/assets/{hooks-CAzZfDok.js → hooks-DJ2YKeR9.js} +1 -1
  102. package/dist/client/assets/{index-DX_PyEaT.js → index-8UQlPx-e.js} +1 -1
  103. package/dist/client/assets/{index-TW5Rc09W.js → index-9dxBGS0M.js} +1 -1
  104. package/dist/client/assets/{index-CJRST3_Z.js → index-B6pbxJBU.js} +35 -35
  105. package/dist/client/assets/{index-Da2mllxf.js → index-BtxByavv.js} +1 -1
  106. package/dist/client/assets/{index-CCb4vxYi.js → index-CZWx2CTD.js} +1 -1
  107. package/dist/client/assets/{index-DeO_SMjA.js → index-D6fjxFLg.js} +1 -1
  108. package/dist/client/assets/{index-DoQWemFd.js → index-DLoS2Gvr.js} +3 -3
  109. package/dist/client/assets/{index-B5Nibhwf.js → index-Dx1y19yx.js} +1 -1
  110. package/dist/client/assets/{index-CcuY69gd.js → index-DxEI9GBV.js} +1 -1
  111. package/dist/client/assets/{index-L0hE-NEv.js → index-YTROANcF.js} +1 -1
  112. package/dist/client/assets/{index-redirect-R3JpdyEK.js → index-redirect-DP7n2JdM.js} +1 -1
  113. package/dist/client/assets/{index-D3OCvKaU.js → index-tHM8NTfd.js} +3 -3
  114. package/dist/client/assets/{input-Bs4tcVhT.js → input-CtPcKTyA.js} +1 -1
  115. package/dist/client/assets/{integration-icon-DG6YOOMj.js → integration-icon-C-2mN9ni.js} +1 -1
  116. package/dist/client/assets/{invite-member-dialog-DH3jQ_Zb.js → invite-member-dialog-B_qNDeU_.js} +1 -1
  117. package/dist/client/assets/{label-DUiPU4TM.js → label-Dx1_DE-f.js} +1 -1
  118. package/dist/client/assets/{layout-DQcUE9z4.js → layout-CxQ_ZjYX.js} +1 -1
  119. package/dist/client/assets/{login-B9FnuorL.js → login-XiuCflbI.js} +1 -1
  120. package/dist/client/assets/{mcp-oauth-CVKUYIl9.js → mcp-oauth-Ch4TwOlY.js} +1 -1
  121. package/dist/client/assets/{members-BfVc1Xdw.js → members-Ci-qw088.js} +1 -1
  122. package/dist/client/assets/{monaco-editor-G_cJDJ93.js → monaco-editor-AliIqm4c.js} +1 -1
  123. package/dist/client/assets/{monitoring-stats-row-BxRM7k9X.js → monitoring-stats-row-DN9PtAZT.js} +1 -1
  124. package/dist/client/assets/{multi-select-CXzg904j.js → multi-select-YuTRMMq6.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-TGwV85BQ.js → oauth-callback-B5VSsFYW.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-ai-provider-PgVBkiBN.js → oauth-callback-ai-provider-DvHFF9AB.js} +1 -1
  127. package/dist/client/assets/{onboarding-DdQNQ4A0.js → onboarding-C1PGqPn5.js} +1 -1
  128. package/dist/client/assets/{org-install-DAHfRxpD.js → org-install-D3FG3YSl.js} +1 -1
  129. package/dist/client/assets/{org-layout-CRo4EKIA.js → org-layout-CC1aR_Ar.js} +1 -1
  130. package/dist/client/assets/{organization-choice-CvVH3S_L.js → organization-choice-QLXU0-_4.js} +1 -1
  131. package/dist/client/assets/{orgs--E_IaGAZ.js → orgs-urMoQKB9.js} +1 -1
  132. package/dist/client/assets/{page-seo-form-CJ3NlYkD.js → page-seo-form-CmZpKqZS.js} +1 -1
  133. package/dist/client/assets/{popover-DqHD4yxd.js → popover-C3OgPzQD.js} +1 -1
  134. package/dist/client/assets/{post-editor-BABr2CJx.js → post-editor-nU307FBm.js} +1 -1
  135. package/dist/client/assets/{primitives-DqZjRnu7.js → primitives-CK5MU42p.js} +1 -1
  136. package/dist/client/assets/{profile-BdUjk22-.js → profile-hYMdiEA5.js} +1 -1
  137. package/dist/client/assets/project-app-view-qdfNZvBx.js +1 -0
  138. package/dist/client/assets/record-editor-DWuuBfxd.js +1 -0
  139. package/dist/client/assets/{redirect-editor-DFcl2X7j.js → redirect-editor-BMgNAGHS.js} +1 -1
  140. package/dist/client/assets/registry-RIQmZ8qc.js +2 -0
  141. package/dist/client/assets/{registry-layout-DGnc-Dtp.js → registry-layout-BNIYUe33.js} +1 -1
  142. package/dist/client/assets/{reports-hna_6ROV.js → reports-BH4VUIWR.js} +1 -1
  143. package/dist/client/assets/{require-capability-BYjfZMZ1.js → require-capability-B-Sqx0zT.js} +1 -1
  144. package/dist/client/assets/{required-auth-layout-B9TfjBVw.js → required-auth-layout-C91T3YkY.js} +1 -1
  145. package/dist/client/assets/{reset-password-twiesJde.js → reset-password-DZU7Xnj2.js} +1 -1
  146. package/dist/client/assets/{roles-DT5JKVI3.js → roles-B1Km9s7i.js} +1 -1
  147. package/dist/client/assets/{search-input-Ce9IROHU.js → search-input-C_HmTn9N.js} +1 -1
  148. package/dist/client/assets/{secrets-DluwaWyV.js → secrets-w6471qmo.js} +1 -1
  149. package/dist/client/assets/{sections-editor-DwLNB7L7.js → sections-editor-EpO7m57q.js} +1 -1
  150. package/dist/client/assets/{select-CPtJAf28.js → select-QOGEC2YQ.js} +1 -1
  151. package/dist/client/assets/{select-model-D7Ovd4CR.js → select-model-BjPHv_Dr.js} +1 -1
  152. package/dist/client/assets/{self-tool-result-JL1AnTkc.js → self-tool-result-Wf62ha3A.js} +1 -1
  153. package/dist/client/assets/{seo-editor-BrV87B5V.js → seo-editor-CypChmsn.js} +1 -1
  154. package/dist/client/assets/{settings-layout-7SeTok6D.js → settings-layout-C-KR57M3.js} +1 -1
  155. package/dist/client/assets/{settings-section-Dgg5nCua.js → settings-section-B7sLcI44.js} +1 -1
  156. package/dist/client/assets/{shell-controls-CPbdWqkG.js → shell-controls-DtA7fOjc.js} +1 -1
  157. package/dist/client/assets/{shell-layout-BexOLm1f.js → shell-layout-DjpBxe62.js} +1 -1
  158. package/dist/client/assets/{sidebar-BjYwCtXi.js → sidebar-DS29jp1e.js} +1 -1
  159. package/dist/client/assets/{skeleton-BwfY4sYC.js → skeleton-CVx36MXd.js} +1 -1
  160. package/dist/client/assets/{sso-v56tNQF7.js → sso-BWUbQwJM.js} +1 -1
  161. package/dist/client/assets/{store-LUDpSYn5.js → store-BepPvAB9.js} +1 -1
  162. package/dist/client/assets/store-registry-DBscfyiP.js +2 -0
  163. package/dist/client/assets/{studio-tools-D5UPG7xq.js → studio-tools-DBJ4BlKP.js} +1 -1
  164. package/dist/client/assets/{switch-Br6uEAbX.js → switch-BAMPQcFC.js} +1 -1
  165. package/dist/client/assets/{tab-id-YHtlg7gF.js → tab-id-DLditg27.js} +1 -1
  166. package/dist/client/assets/{table-Ciw0rD4-.js → table-DunMqZev.js} +1 -1
  167. package/dist/client/assets/{tabs-BvhudmcJ.js → tabs-DXpVtqDW.js} +1 -1
  168. package/dist/client/assets/{textarea-dx3oQXX3.js → textarea-hljn8moZ.js} +1 -1
  169. package/dist/client/assets/{toggle-group-BQ-mtOqg.js → toggle-group-CugvhNWb.js} +1 -1
  170. package/dist/client/assets/{toolbar-Ba5XXE-M.js → toolbar-dY2heqgV.js} +1 -1
  171. package/dist/client/assets/{tooltip-DrF8Dycy.js → tooltip-C4NGAgAM.js} +1 -1
  172. package/dist/client/assets/use-ai-providers-COkTONXg.js +1 -0
  173. package/dist/client/assets/{use-api-keys-BMxSi9Mc.js → use-api-keys-BondmtJR.js} +1 -1
  174. package/dist/client/assets/{use-automations-BoP3NYfz.js → use-automations-RGeim-7x.js} +1 -1
  175. package/dist/client/assets/{use-autosave-DVJxzXG6.js → use-autosave-BBmT_CQu.js} +1 -1
  176. package/dist/client/assets/{use-capability-hQ0DXv0z.js → use-capability-nY6kVL8r.js} +1 -1
  177. package/dist/client/assets/{use-clock-tick-2gdnxIz7.js → use-clock-tick-GBpMaXwL.js} +1 -1
  178. package/dist/client/assets/{use-connection-BqPnQoRJ.js → use-connection-uKN5YWIx.js} +1 -1
  179. package/dist/client/assets/{use-copy-D32fta2h.js → use-copy-EWLYbeWi.js} +1 -1
  180. package/dist/client/assets/{use-create-virtual-mcp-BM65v9ER.js → use-create-virtual-mcp-DS8KPcoG.js} +1 -1
  181. package/dist/client/assets/{use-debounced-autosave-3BGJnmLE.js → use-debounced-autosave-_O3PoKoh.js} +1 -1
  182. package/dist/client/assets/{use-debounced-value-B5eH48Lw.js → use-debounced-value-DuOUoSmu.js} +1 -1
  183. package/dist/client/assets/{use-deco-credits-BzZz8lBr.js → use-deco-credits-ClFjXcZg.js} +1 -1
  184. package/dist/client/assets/{use-decopilot-events-CF5TQ0kC.js → use-decopilot-events-DSmTv1gx.js} +1 -1
  185. package/dist/client/assets/{use-delete-connection-CSsIa0wR.js → use-delete-connection-DjRlgLwA.js} +1 -1
  186. package/dist/client/assets/{use-deployment-admin-Do0J3fTo.js → use-deployment-admin-3EsHBbN1.js} +1 -1
  187. package/dist/client/assets/{use-file-configs-Bw1gACmS.js → use-file-configs-Bgb80job.js} +1 -1
  188. package/dist/client/assets/{use-infinite-scroll-CLgVcggv.js → use-infinite-scroll-DFYxMuWT.js} +1 -1
  189. package/dist/client/assets/{use-join-requests-CLtr7l1c.js → use-join-requests-CTLDVqMF.js} +1 -1
  190. package/dist/client/assets/{use-mcp-auth-status-CuDIWjse.js → use-mcp-auth-status-Bbnk5NX6.js} +1 -1
  191. package/dist/client/assets/{use-mcp-client-DBBu3lpa.js → use-mcp-client-BAwn-0AV.js} +1 -1
  192. package/dist/client/assets/{use-mcp-tools-BKx6eQVH.js → use-mcp-tools-CgtI4_xz.js} +1 -1
  193. package/dist/client/assets/{use-members-C1XPdRpt.js → use-members-C_p-7j4-.js} +1 -1
  194. package/dist/client/assets/{use-mobile-B9xC4LZs.js → use-mobile-B-9CWMAs.js} +1 -1
  195. package/dist/client/assets/{use-navigate-to-agent-B_NFjN6b.js → use-navigate-to-agent-DEAiy9mr.js} +1 -1
  196. package/dist/client/assets/{use-org-auth-client-BFAUjn-N.js → use-org-auth-client-GW_RbwIG.js} +1 -1
  197. package/dist/client/assets/{use-org-sso-Dx0HxB9Q.js → use-org-sso-C5GowRh9.js} +1 -1
  198. package/dist/client/assets/{use-organization-roles-Cw7KjQX3.js → use-organization-roles-CjrQlUME.js} +1 -1
  199. package/dist/client/assets/{use-organization-settings-BZ_WlMTx.js → use-organization-settings-D0V5wIDO.js} +1 -1
  200. package/dist/client/assets/{use-registry-app-D7Jfc22S.js → use-registry-app-D8hx17d1.js} +1 -1
  201. package/dist/client/assets/{use-registry-connections-CxLWLJ5V.js → use-registry-connections-o8h37zTy.js} +1 -1
  202. package/dist/client/assets/{use-secrets-DmXwh72p.js → use-secrets-C-31Hjoh.js} +1 -1
  203. package/dist/client/assets/{use-status-sounds-1iMDr_3s.js → use-status-sounds-DZIf-G4r.js} +1 -1
  204. package/dist/client/assets/{use-view-mode-BgyziSsp.js → use-view-mode-CyIY6QXB.js} +1 -1
  205. package/dist/client/assets/{use-virtual-mcp-Bymtbi-1.js → use-virtual-mcp-DXStXtw1.js} +1 -1
  206. package/dist/client/assets/useInfiniteQuery-DAxuc5L-.js +1 -0
  207. package/dist/client/assets/{useQueries-B_FHAwLH.js → useQueries-Dk_rR620.js} +1 -1
  208. package/dist/client/assets/{useRouterState-xO3EhEgx.js → useRouterState-CFblvFqM.js} +1 -1
  209. package/dist/client/assets/useSuspenseInfiniteQuery-BwVy3QbN.js +1 -0
  210. package/dist/client/assets/{users-C0hZEUyz.js → users-TcleqpoV.js} +1 -1
  211. package/dist/client/assets/{variant-calendar-DqDgry3x.js → variant-calendar-BH0fql5v.js} +1 -1
  212. package/dist/client/assets/{view-mode-toggle-C6H1y3Fg.js → view-mode-toggle-BMYy47UV.js} +1 -1
  213. package/dist/client/index.html +1 -1
  214. package/dist/server/cli.js +275 -275
  215. package/dist/server/server.js +197 -197
  216. package/package.json +1 -1
  217. package/dist/client/assets/chat-context-DcyOF_pB.js +0 -36
  218. package/dist/client/assets/project-app-view-N89P5i_H.js +0 -1
  219. package/dist/client/assets/record-editor-BGUbMaDe.js +0 -1
  220. package/dist/client/assets/registry-ohfLJ5M4.js +0 -2
  221. package/dist/client/assets/store-registry-BRGh_j8X.js +0 -2
  222. package/dist/client/assets/use-ai-providers-BiLZ6IzA.js +0 -1
  223. package/dist/client/assets/useInfiniteQuery-Cth5f35D.js +0 -1
  224. package/dist/client/assets/useSuspenseInfiniteQuery-C_27-SXB.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.131.2",
3
+ "version": "4.131.4",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1,36 +0,0 @@
1
- import{W as x,a1 as M,X as i,a4 as ke,a2 as ce,a3 as Se,aH as Ie,co as Mt,ba as Ue,a$ as rt,c as X,m as Tt,bt as Pt,j as z,F as Z,K as ne,n as lt,J as ct,u as Fe,o as qe,t as le,I as fe,G as ge,d as dt,f as At,r as S,e as Et,b as $e,p as Rt,a as _t,v as Dt,a8 as $t}from"./index-D3OCvKaU.js";import{d as Ot,q as Lt,A as ut,s as Ut,t as Nt,n as Ft,w as qt}from"./tab-id-YHtlg7gF.js";import{S as jt,u as Kt,d as Vt,b as Qt}from"./hooks-CAzZfDok.js";import{u as pt,c as Ht}from"./studio-tools-D5UPG7xq.js";import{a as Bt,u as Wt,S as Gt}from"./use-mcp-client-DBBu3lpa.js";import{u as zt}from"./use-virtual-mcp-Bymtbi-1.js";import{u as Xt,a as ye}from"./use-ai-providers-BiLZ6IzA.js";import{u as Zt}from"./use-decopilot-events-CF5TQ0kC.js";import{a as Yt}from"./use-organization-settings-BZ_WlMTx.js";const ve=x({connection_id:i().describe("Connection ID"),selected_tools:M(i()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:M(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:M(i()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),ht=ve.extend({selected_tools:ve.shape.selected_tools.optional(),selected_resources:ve.shape.selected_resources.optional(),selected_prompts:ve.shape.selected_prompts.optional()}),Jt=x({connectionId:i(),toolName:i(),label:i(),icon:i().nullable().optional()}),en=x({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:x({type:Ue("ext-app"),appId:i(),args:Se(i(),rt()).optional()})}),tn=x({defaultMainView:x({type:i(),id:i().optional(),toolName:i().optional()}).nullable().optional(),chatDefaultOpen:ke().nullable().optional(),cmsDefaultOpen:ke().nullable().optional(),tabs:M(en).optional()}),Je=x({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:Se(i(),rt()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:Ie().int().positive().optional(),maxHeight:Ie().int().positive().optional()}),je=x({banner:i().nullable().optional(),bannerColor:i().nullable().optional(),icon:i().nullable().optional(),themeColor:i().nullable().optional(),pinnedViews:M(Jt).nullable().optional(),layout:tn.nullable().optional(),homeTile:Je.nullable().optional(),homeTiles:M(Je).nullable().optional(),homePrompts:M(i()).nullable().optional()});function fs(t){const e=t?.homeTiles;if(Array.isArray(e)&&e.length>0)return e;const n=t?.homeTile;return n?[n]:[]}const nn=/^[A-Za-z_][A-Za-z0-9_]*$/,et=i().min(1).regex(nn,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),sn=Mt("kind",[x({key:et,kind:Ue("literal"),value:i()}),x({key:et,kind:Ue("secret"),secretId:i().min(1)})]),an=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,on=x({host:i().min(1).regex(an).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.")}),Ke=x({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:M(sn).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:M(on).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.")}),Ve=x({url:i().describe("GitHub repository URL"),owner:i().describe("Repository owner"),name:i().describe("Repository name"),installationId:Ie().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.")}),rn=ce(["agent-sandbox","user-desktop"]),ln=ce(["agent-sandbox","user-desktop","cluster"]);function Qe(t){return t==="cluster"?"agent-sandbox":t}const mt={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:rn.optional(),createdAt:Ie().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:x({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.")},ft=x(mt),cn=x({...mt,sandboxProviderKind:ln.optional()});function dn(t){const e=cn.parse(t);return ft.parse({...e,sandboxProviderKind:e.sandboxProviderKind?Qe(e.sandboxProviderKind):void 0})}function gs(t){if(!t||typeof t!="object"||Array.isArray(t))return{};const e=t,n={};for(const[s,a]of Object.entries(e)){if(!a||typeof a!="object"||s!=="cluster"&&s!=="agent-sandbox"&&s!=="user-desktop")continue;const o=Qe(s);try{if(s==="cluster"&&n[o])continue;n[o]=dn(a)}catch{}}return n}const He=Se(i().describe("userId"),Se(i().describe("branch"),Se(i().describe("sandboxProviderKind"),ft))),un=x({id:i().describe("Stable identifier for this knowledge file"),name:i().describe("File name shown in the UI"),kind:ce(["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:Ie().nullable().optional().describe("File size in bytes"),addedAt:i().describe("ISO timestamp when the file was attached")}),Be=M(un).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."),pn=ce(["smart","code-review","open"]),We=pn.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."),bs=x({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:ce(["active","inactive"]).describe("Current status"),pinned:ke().describe("Whether this space is pinned to the sidebar"),metadata:x({instructions:i().nullable().describe("Instructions also used as system prompt"),enabled_plugins:M(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:M(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:je.nullable().optional().describe("UI customization settings"),githubRepo:Ve.nullable().optional().describe("Linked GitHub repository"),runtime:Ke.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:He.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Be,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:We,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.")}).loose().describe("Metadata"),connections:M(ve).describe("Connections with their selected tools, resources, and prompts")}),gt=x({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")});x({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:ce(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:ke().optional().default(!1).describe("Pin to sidebar"),metadata:x({instructions:i().nullable().optional().describe("MCP server instructions"),enabled_plugins:M(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:M(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:je.nullable().optional().describe("UI customization settings"),githubRepo:Ve.nullable().optional().describe("Linked GitHub repository"),runtime:Ke.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:He.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Be,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:We,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.")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:M(ht).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:M(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.")});x({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:ce(["active","inactive"]).optional().describe("New status"),pinned:ke().optional().describe("Pin/unpin from sidebar"),metadata:x({instructions:i().nullable().optional().describe("MCP server instructions"),enabled_plugins:M(i()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:M(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:je.nullable().optional().describe("UI customization settings"),githubRepo:Ve.nullable().optional().describe("Linked GitHub repository"),runtime:Ke.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:He.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:Be,siteSlug:i().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:We,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.")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:M(ht).optional().describe("New connections (replaces existing)"),prompts:M(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).")});const hn={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"],"claude-code":["claude-code:haiku","claude-code:sonnet"],codex:["codex:gpt-5.6-luna"]},mn={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"],"claude-code":["claude-code:sonnet"],codex:["codex:gpt-5.6-terra"]},fn={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"],"claude-code":["claude-code:opus-1m","claude-code:opus","claude-code:sonnet"],codex:["codex:gpt-5.6-sol"]},gn={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},bn={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},yn={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function bt(t){return t.toLowerCase().replace(/[^a-z0-9]/g,"")}function vn(t){return bt(t).includes("deepresearch")}const Sn=["sonar","searchpreview","online"];function yt(t){const e=bt(t);return e.includes("deepresearch")?!1:Sn.some(n=>e.includes(n))}function vt(t){return t.asyncResearch!==!0&&yt(t.modelId)}function St(t){return t.asyncResearch===!0||vn(t.modelId)||yt(t.modelId)}function he(t,e,n,s){for(const a of n){const o=t.find(r=>r.modelId===a);if(o)return{keyId:e,modelId:o.modelId,title:o.title}}for(const a of n){const o=t.find(r=>r.modelId.includes(a));if(o)return{keyId:e,modelId:o.modelId,title:o.title}}if(s){const a=t.find(s);if(a)return{keyId:e,modelId:a.modelId,title:a.title}}return null}function xn(t,e){const n={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const s of t){const a=e[s.id]??[],o=s.providerId;n.chat.fast||(n.chat.fast=he(a,s.id,hn[o]??[])),n.chat.smart||(n.chat.smart=he(a,s.id,mn[o]??[])),n.chat.thinking||(n.chat.thinking=he(a,s.id,fn[o]??[])),n.image||(n.image=he(a,s.id,gn[o]??[],r=>r.capabilities?.includes("image")===!0)),n.webSearch||(n.webSearch=he(a,s.id,bn[o]??[],vt)),n.deepResearch||(n.deepResearch=he(a,s.id,yn[o]??[],St))}return n}const kn=Pt("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function ys(t){const e=X.c(10),{variant:n,size:s}=t;let a;e[0]!==s||e[1]!==n?(a=Tt(kn({variant:n,size:s})),e[0]=s,e[1]=n,e[2]=a):a=e[2];let o,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=z.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),r=z.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=o,e[4]=r):(o=e[3],r=e[4]);let l;e[5]!==a?(l=z.jsxs("svg",{"aria-hidden":"true",className:a,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o,r]}),e[5]=a,e[6]=l):l=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=z.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=p):p=e[7];let u;return e[8]!==l?(u=z.jsxs("div",{role:"status",children:[l,p]}),e[8]=l,e[9]=u):u=e[9],u}const tt={online:!1,capabilities:[],ready:!1};function In(t){const e=X.c(9),{org:n}=Z(),s=pt(),a=t?.fast??!1;let o;e[0]!==n.id?(o=ne.currentLink(n.id),e[0]=n.id,e[1]=o):o=e[1];let r;e[2]!==s?(r=async()=>{const v=await s.call("LINK_CURRENT_GET",{});return v?{...v,ready:!0}:{...tt,ready:!0}},e[2]=s,e[3]=r):r=e[3];const l=a?1e3:1e4,p=a?2e3:15e3;let u;e[4]!==o||e[5]!==r||e[6]!==l||e[7]!==p?(u={queryKey:o,queryFn:r,staleTime:l,refetchInterval:p,refetchOnWindowFocus:!0},e[4]=o,e[5]=r,e[6]=l,e[7]=p,e[8]=u):u=e[8];const{data:m}=lt(u);return m??tt}function wn(t,e=[]){return t==="stop"?e.filter(a=>a.type==="text"&&a.text).map(a=>a.text).join(`
2
- `).replace(/https?:\/\/[^\s)>\]]+/g,"").includes("?")?"requires_action":"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 _e={decopilot:{harness:"decopilot",sandbox:"agent-sandbox"},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"}};function Cn(t,e){if(!t)return null;const n=e?Qe(e):null;if(t==="decopilot"&&n===null)return"decopilot";for(const[s,a]of Object.entries(_e))if(a.harness===t&&a.sandbox===n)return s;return null}function vs(t){return t.claudeCode?"claude-code-desktop":t.codex?"codex-desktop":null}function Mn(t,e){return e&&t&&_e[t].sandbox==="user-desktop"?"decopilot":t}function Tn(t){return t.thread?.harness_id!=null?{}:{harnessId:t.globals.harnessId,sandboxProviderKind:t.globals.sandboxProviderKind,branch:t.globals.branch??null}}function Pn(t){const e=t?t.split("/").filter(Boolean):[],n=e[0]==="public",s=n?e[1]??null:null,a=n?s?`public-${s}`:null:e[0]??null,o=(n?e.slice(2):e.slice(1)).join("/");return{segments:e,volume:a,dirPath:o,isPublic:n,publicSet:s,readOnly:n}}function Ss(t,e){return t.isPublic&&t.publicSet?`public/${t.publicSet}/${e}`:t.volume?`${t.volume}/${e}`:e}const nt="public-";function xt(t){return t.startsWith(nt)?t.slice(nt.length):null}function xs(t,e){const n=xt(t);return n?`public/${n}/${e}`:`${t}/${e}`}function An(t){const e=t.lastIndexOf("/");return e===-1?t:t.slice(e+1)}function En(t){const{volume:e,dirPath:n}=Pn(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 a=xt(e);s=a?`org/public/${a}`:`org/${e}`}return n?`${s}/${n}`:s}function Rn(t){const e=X.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=ct(n);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const o=Fe(a);let r;e[2]!==o.brand||e[3]!==o.main||e[4]!==o.preview||e[5]!==o.skill?(r=(typeof o.main=="string"?Ot(o.main)?.path:void 0)??o.preview??o.skill??o.brand??null,e[2]=o.brand,e[3]=o.main,e[4]=o.preview,e[5]=o.skill,e[6]=r):r=e[6];const l=r;let p;if(e[7]!==s?.params.appSlug||e[8]!==s?.params.collectionName||e[9]!==s?.params.itemId||e[10]!==l||e[11]!==t){if(p=[],t&&p.push(`### Selected Agent
3
- - ID: ${t}`),l){let m;e[13]!==l?(m=En(l),e[13]=l,e[14]=m):m=e[14];const v=m;let w;e[15]!==l?(w=An(l),e[15]=l,e[16]=w):w=e[16],p.push(`### Currently Open File
4
- The user has this file open in the Library and is most likely referring to it:
5
- - Name: ${w}
6
- - Library path: ${l}${v?`
7
- - Read/edit it with your file tools at: \`${v}\``:""}
8
-
9
- 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 u;e[17]!==s?.params.appSlug||e[18]!==s?.params.collectionName||e[19]!==s?.params.itemId?(u=[],s?.params.appSlug&&u.push(`- Connection ID: ${s?.params.appSlug}`),s?.params.collectionName&&u.push(`- Collection: ${s?.params.collectionName}`),s?.params.itemId&&u.push(`- Item ID: ${s?.params.itemId}`),e[17]=s?.params.appSlug,e[18]=s?.params.collectionName,e[19]=s?.params.itemId,e[20]=u):u=e[20],u.length>0&&p.push(`### Current Resource
10
- The user is viewing the following resource:
11
- ${u.join(`
12
- `)}
13
-
14
- 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]=l,e[11]=t,e[12]=p}else p=e[12];return p.join(`
15
-
16
- `)}function _n(){const t=X.c(5),e=qe(),{org:n}=Z();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 a=ct(s);let o;return t[1]!==a?.params||t[2]!==n||t[3]!==e?(o=r=>{const p=r.toolCall.toolName.match(/^COLLECTION_([A-Z_]+)_(CREATE|UPDATE|DELETE)$/);if(!p||!p[1])return;const u=p[1],m=a?.params.appSlug;if(!m)return;e.invalidateQueries({queryKey:ne.collection(n.slug,m,u)});const v=u.toLowerCase().replace(/_/g," ");le.success(`${v} updated`)},t[1]=a?.params,t[2]=n,t[3]=e,t[4]=o):o=t[4],o}function Dn(){const t=X.c(4),{org:e,project:n}=Z(),s=`${e.id}/${n.id}`;let a;t[0]!==s?(a=ge.taskLastViewed(s),t[0]=s,t[1]=a):a=t[1];const[,o]=fe(a,$n);let r;return t[2]!==o?(r={markTaskRead:p=>{o(u=>({...u,[p]:new Date().toISOString()}))}},t[2]=o,t[3]=r):r=t[3],r}function $n(t){return t??{}}function kt(){const t=dt(),{org:e}=Z(),n=Fe({strict:!1}),s=At({strict:!1}),a=n.virtualmcpid??Bt(e.id).id,o=(p,u)=>{t({to:"/$org/$taskId",params:{org:e.slug,taskId:p},search:m=>{const v={},w=u?.virtualMcpId??m.virtualmcpid;w&&(v.virtualmcpid=w);const f=m.main;return f&&typeof f=="string"&&!Lt(f)&&(v.main=f),(m.sidepanel==="chat"||m.sidepanel===0)&&(v.sidepanel=m.sidepanel),u?.autosend&&(v.autosend=ut),v}})},r=S.useRef(crypto.randomUUID()),l=s.taskId??r.current;return{virtualMcpId:a,taskId:l,navigateToTask:o}}function On(t,e){const{mimeType:n,data:s}=t;if(n.startsWith("text/"))try{const a=new TextDecoder().decode(Uint8Array.from(atob(s),o=>o.charCodeAt(0)));return[{type:"text",text:`${e}
17
- ${a}`}]}catch(a){console.error("Failed to decode text file:",a)}return[{type:"file",url:`data:${n};base64,${s}`,filename:e,mediaType:n}]}function st(t,e){const n=[];for(const s of t)!s||typeof s!="object"||("text"in s&&s.text?n.push({type:"text",text:`[${e}]
18
- ${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 Ln(t,e){const n=(t.files??[]).filter(r=>r.content?.trim()),s=t.omittedPaths??[];if(n.length===0&&s.length===0)return[];const a=n.map(r=>`<skill-file path="${r.relPath}">
19
- ${r.content.trim()}
20
- </skill-file>`).join(`
21
-
22
- `),o=s.length>0?`
23
-
24
- Other files in \`${t.sandboxPath}/\`: ${s.join(", ")}`:"";return[{type:"text",text:`[${e}]
25
- ${a}${o}`}]}function Un(t,e){const n=[];for(const s of t){if(s.role!=="user"||!s.content)continue;const a=Array.isArray(s.content)?s.content:[s.content];for(const o of a)switch(o.type){case"text":{const r=o.text?.trim();if(!r)continue;n.push({type:"text",text:`[${e}]
26
- ${r}`});break}case"image":case"audio":{if(!o.data||!o.mimeType)continue;n.push({type:"file",url:`data:${o.mimeType};base64,${o.data}`,mediaType:o.mimeType});break}case"resource":{const r=o.resource;if(!r||!r.mimeType)continue;r&&("text"in r&&r.text?n.push({type:"text",text:`[${e}]
27
- ${r.text}`}):"blob"in r&&r.blob&&r.mimeType&&n.push({type:"file",url:`data:${r.mimeType};base64,${r.blob}`,filename:String(r.uri),mediaType:String(r.mimeType)}));break}}}return n}function It(t){if(!t)return[];const e=[];let n="";const s=a=>{if(a){if(a.type==="text"&&"text"in a&&typeof a.text=="string")n+=a.text;else if(a.type==="mention"&&a.attrs){const o=a.attrs.char??"/",r=`${o}${a.attrs.name}`;if(a.attrs.kind==="task"){const l=a.attrs.metadata,p=l?.title??a.attrs.name??"",u=l?.context?.trim()||[p,l?.description?.trim()].filter(Boolean).join(`
28
-
29
- `);u&&e.push({type:"text",text:u});return}if(n+=r,o==="@"){const l=a.attrs.metadata;l&&typeof l=="object"&&!Array.isArray(l)&&"agentId"in l?e.push({type:"text",text:`[DELEGATE TO AGENT: ${l.title??a.attrs.name} (agent_id: ${l.agentId})]
30
- 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(l)&&e.push(...st(l,r))}else if(a.attrs.kind==="skill"){const l=a.attrs.metadata;l&&!Array.isArray(l)&&Array.isArray(l.files)&&e.push(...Ln(l,r))}else{const l=a.attrs.metadata||a.attrs.prompts||[];Array.isArray(l)&&l.length>0&&typeof l[0]=="object"&&l[0]!==null&&"role"in l[0]?e.push(...Un(l,r)):Array.isArray(l)&&e.push(...st(l,r))}}else if(a.type==="file"&&a.attrs){const o=a.attrs,r=`[file:://${encodeURIComponent(o.name)}]`;n+=r,e.push(...On(o,r))}if("content"in a&&Array.isArray(a.content))for(const o of a.content)s(o)}};return s(t),n.trim()&&e.unshift({type:"text",text:n.trim()}),e}function ks(t){const e=It(t);return e.length===0?[]:[{id:crypto.randomUUID(),role:"user",parts:e,metadata:{tiptapDoc:t}}]}function Is(t){return new Set(t.filter(e=>e.status==="queued").map(e=>e.messageId))}function Nn(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 Fn(t,e){return t.some(n=>n.messageId===e.messageId)?t:[...t,e]}function qn(t,e){return t.filter(n=>n.messageId!==e)}const at=new Map,Ge=new Set;function jn(t){Ge.add(t)}function Kn(t){return Ge.has(t)}function Vn(t){Ge.delete(t)}function we(t){let e=at.get(t);return e||(e=new jt([]),at.set(t,e)),e}function wt(t,e){we(t).update(n=>Fn(n,e))}function Ne(t,e){we(t).update(n=>qn(n,e))}function Qn(t,e){we(t).set(e)}const De=new Map;function Hn(t,e){De.set(`${t}:${e.id}`,e)}function Bn(t,e){const n=`${t}:${e}`,s=De.get(n);return De.delete(n),s}function ot(t,e){De.delete(`${t}:${e}`)}async function te(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 Cs(t){const e=X.c(2);let n;e[0]!==t?(n=we(t),e[0]=t,e[1]=n):n=e[1];const s=n;return S.useSyncExternalStore(s.subscribe,s.get,s.get)}function Wn(){const{org:t}=Z();return{enqueue:wt,refresh:e=>te(t.slug,e),cancel:async(e,n)=>{const s=`thread-run:${e}:${n}`;Ne(e,n);try{const a=await fetch(`/api/${encodeURIComponent(t.slug)}/decopilot/queue/${encodeURIComponent(e)}/cancel/${encodeURIComponent(s)}`,{method:"POST",credentials:"include"});if(!a.ok&&a.status!==404)throw new Error(`Cancel failed: ${a.status}`);return!0}catch(a){return le.error(a instanceof Error?a.message:"Failed to cancel"),!1}finally{await te(t.slug,e)}}}}const xe={tiers:{}};function Gn(){const t=X.c(7),{org:e}=Z();let n;t[0]!==e.id?(n=ne.userModelPreferences(e.id),t[0]=e.id,t[1]=n):n=t[1];let s;t[2]!==e.slug?(s=async()=>{const o=await Ht(e.slug,"USER_MODEL_PREFERENCES_GET",{});return o?.tiers?o:xe},t[2]=e.slug,t[3]=s):s=t[3];let a;return t[4]!==n||t[5]!==s?(a={queryKey:n,queryFn:s,staleTime:6e4},t[4]=n,t[5]=s,t[6]=a):a=t[6],lt(a)}function zn(){return Gn().data??xe}function Ms(){const t=X.c(19),{org:e}=Z(),n=pt(),s=qe();let a;t[0]!==e.id?(a=ne.userModelPreferences(e.id),t[0]=e.id,t[1]=a):a=t[1];const o=a;let r;t[2]!==o||t[3]!==s||t[4]!==n?(r=async w=>{const f=s.getQueryData(o)??xe;return await n.call("USER_MODEL_PREFERENCES_UPDATE",f)??f},t[2]=o,t[3]=s,t[4]=n,t[5]=r):r=t[5];let l,p,u,m;t[6]!==o||t[7]!==s?(l=w=>{const{tier:f,slot:T}=w,q=s.getQueryData(o),U=q??xe;return s.setQueryData(o,{tiers:{...U.tiers,[f]:T}}),{prev:q}},p=(w,f,T)=>{s.setQueryData(o,T?.prev??xe)},u=w=>{s.setQueryData(o,w)},m=()=>{s.isMutating({mutationKey:o})===1&&s.invalidateQueries({queryKey:o})},t[6]=o,t[7]=s,t[8]=l,t[9]=p,t[10]=u,t[11]=m):(l=t[8],p=t[9],u=t[10],m=t[11]);let v;return t[12]!==o||t[13]!==r||t[14]!==l||t[15]!==p||t[16]!==u||t[17]!==m?(v={mutationKey:o,mutationFn:r,onMutate:l,onError:p,onSuccess:u,onSettled:m},t[12]=o,t[13]=r,t[14]=l,t[15]=p,t[16]=u,t[17]=m,t[18]=v):v=t[18],Et(v)}function Xn(){const t=X.c(5),e=Yt(),n=zn(),s=n.tiers.fast??e.tiers.fast,a=n.tiers.smart??e.tiers.smart,o=n.tiers.thinking??e.tiers.thinking;let r;return t[0]!==e.tiers||t[1]!==s||t[2]!==a||t[3]!==o?(r={tiers:{...e.tiers,fast:s,smart:a,thinking:o}},t[0]=e.tiers,t[1]=s,t[2]=a,t[3]=o,t[4]=r):r=t[4],r}function ie(t,e,n,s){if(!t)return null;const a=e.find(r=>r.id===t.keyId);if(!a)return null;const o=n.find(r=>r.modelId===t.modelId);return o?{...o,keyId:t.keyId}:{modelId:t.modelId,title:s??t.modelId,keyId:t.keyId,providerId:a.providerId,description:null,logo:null,capabilities:[],limits:null,costs:null}}function Zn(t){return t==="fast"||t==="smart"||t==="thinking"?t:"smart"}function Yn(t,e,n,s){if(!n||s.length===0)return null;const a=e.find(p=>p.id===n);if(!a)return null;const o=xn([a],{[n]:s}),r=t==="fast"?o.chat.fast:t==="thinking"?o.chat.thinking:o.chat.smart;if(!r)return null;const l=s.find(p=>p.modelId===r.modelId);return l?{...l,keyId:n}:null}const it=new Set,re=new Set;function me(t){return S.useSyncExternalStore(t.subscribe,t.get,t.get)}function Jn(t){return t.kind==="loading"?"ready":t.kind}const es=1e4,ts=10,ze=S.createContext(null),Xe=S.createContext(null),Ze=S.createContext(null),Ct=S.createContext(null);function ns({children:t}){const{locator:e}=Z(),{virtualMcpId:n}=kt(),[s,a]=fe(ge.chatSelectedImageModel(e),null),[o,r]=fe(ge.chatSelectedWebSearchModel(e),null),[l,p]=fe(ge.chatSelectedDeepResearchModel(e),null),[u,m]=S.useState(null),[v,w]=S.useState("default"),f=Xn(),[T,q]=fe(ge.chatSimpleModeTier(e),null),U=Zn(T),C=Xt(),P=f.tiers[U],N=u&&C.some(c=>c.id===u)?u:P?.keyId??C[0]?.id??null,{models:F,isLoading:E}=ye(N??void 0),{models:H}=ye(P?.keyId),{models:se}=ye(f.tiers.image?.keyId),{models:ae}=ye(f.tiers.web_search?.keyId),{models:j}=ye(f.tiers.deep_research?.keyId),J=ie(P,C,H,P?.title)??Yn(U,C,N,F),Y=E,B=F.filter(c=>c.capabilities?.includes("image")),K=ie(s,C,B),ee=ie(f.tiers.image,C,se,f.tiers.image?.title)??K??B[0]??null,g=F.filter(vt),L=ie(o,C,g),W=g.find(c=>c.modelId==="perplexity/sonar")??g[0]??null,G=ie(f.tiers.web_search,C,ae,f.tiers.web_search?.title)??L??W,V=F.filter(St),A=ie(l,C,V),Q=V.find(c=>c.modelId==="perplexity/deep-research")??V.find(c=>c.asyncResearch===!0)??V[0]??null,D=ie(f.tiers.deep_research,C,j,f.tiers.deep_research?.title)??A??Q,Oe=zt(n)??{id:n,title:"",description:null,icon:null},[Me,Te]=S.useState({}),Pe=(c,b)=>{const O=[];for(const I of b.content??[])I.type==="text"&&I.text?.trim()&&O.push(I.text.trim());const R=O.join(`
31
- `);if(!R){be(c);return}new TextEncoder().encode(R).length>es||Te(I=>Object.keys(I).length>=ts&&!(c in I)?I:{...I,[c]:R})},be=c=>{Te(b=>{const{[c]:O,...R}=b;return R})},[Ae,de]=fe(ge.chatLastAgentOption(e),c=>c&&c in _e?c:null),oe=os(),Le=oe?.isThreadLocked&&oe.lockedHarness!=null?Cn(oe.lockedHarness,oe.lockedSandbox):null,Ee=In(),Ye=Mn(Ae,Ee.ready&&!Ee.online),ue=oe?.isThreadLocked?Le:Ye,Re=ue?_e[ue]:null,d=Re?.harness??null,h=Re?.sandbox??null,[_,$]=S.useState(void 0),y=S.useRef(_);y.current=_;const k={selectedModel:J,setModel:()=>{},credentialId:N,setCredentialId:m,allModelsConnections:C,isModelsLoading:Y,selectedVirtualMcp:Oe,imageModel:ee,setImageModel:c=>{a(c?.keyId?{keyId:c.keyId,modelId:c.modelId}:null)},webSearchModel:G,setWebSearchModel:c=>{r(c?.keyId?{keyId:c.keyId,modelId:c.modelId}:null)},deepResearchModel:D,setDeepResearchModel:c=>{p(c?.keyId?{keyId:c.keyId,modelId:c.modelId}:null)},chatMode:v,setChatMode:w,appContexts:Me,setAppContext:Pe,clearAppContext:be,tiptapDoc:_,setTiptapDoc:$,tiptapDocRef:y,resetInteraction:()=>{},simpleModeTier:U,setSimpleModeTier:c=>q(c),pendingAgentOption:ue,setPendingAgentOption:de,pendingHarnessId:d,pendingSandboxProviderKind:h};return z.jsx(Ze.Provider,{value:k,children:t})}function Ts(t){const e=X.c(39),{virtualMcpId:n,task:s,children:a}=t,{locator:o}=Z(),{data:r}=_t.useSession(),l=r?.user??null,{taskId:p,virtualMcpId:u,navigateToTask:m}=kt(),[v]=Dt(),{markTaskRead:w}=Dn(),f=Qt(),T=p,q=u,U=Rn(q);let C;e[0]!==w||e[1]!==m?(C=(A,Q)=>{w(A),m(A,{virtualMcpId:Q?.virtualMcpId,autosend:Q?.autosend})},e[0]=w,e[1]=m,e[2]=C):C=e[2];const P=C,N=T&&s?.id===T?s:null,F=N?.harness_id??null,E=N?.sandbox_provider_kind??null,H=N?.branch??null,se=F!=null,ae=H;let j;e[3]!==P||e[4]!==f||e[5]!==n?(j=()=>{const A=crypto.randomUUID();return f.create({id:A,virtual_mcp_id:n}).then(()=>P(A)).catch(()=>{P(A)}),A},e[3]=P,e[4]=f,e[5]=n,e[6]=j):j=e[6];const J=j;let Y;e[7]!==o||e[8]!==P||e[9]!==f||e[10]!==n?(Y=A=>{const Q=crypto.randomUUID(),D=A.virtualMcpId??n;qt(sessionStorage,o,Q,A.message),f.create({id:Q,virtual_mcp_id:D}).then(()=>P(Q,{virtualMcpId:A.virtualMcpId,autosend:!0})).catch(()=>{P(Q,{virtualMcpId:A.virtualMcpId,autosend:!0})})},e[7]=o,e[8]=P,e[9]=f,e[10]=n,e[11]=Y):Y=e[11];const B=Y;let K;e[12]!==T||e[13]!==f?(K=A=>{T&&f.setBranch(T,A)},e[12]=T,e[13]=f,e[14]=K):K=e[14];let ee;e[15]!==N||e[16]!==J||e[17]!==B||e[18]!==ae||e[19]!==T||e[20]!==q||e[21]!==se||e[22]!==H||e[23]!==F||e[24]!==E||e[25]!==P||e[26]!==K?(ee={virtualMcpId:q,taskId:T,openTask:P,createTask:J,createTaskWithMessage:B,activeTask:N,isThreadLocked:se,lockedHarness:F,lockedSandbox:E,lockedBranch:H,currentBranch:ae,setCurrentTaskBranch:K},e[15]=N,e[16]=J,e[17]=B,e[18]=ae,e[19]=T,e[20]=q,e[21]=se,e[22]=H,e[23]=F,e[24]=E,e[25]=P,e[26]=K,e[27]=ee):ee=e[27];const g=ee;let L;e[28]!==U||e[29]!==v||e[30]!==m||e[31]!==l?(L={user:l,contextPrompt:U,preferences:v,rawNavigateToTask:m},e[28]=U,e[29]=v,e[30]=m,e[31]=l,e[32]=L):L=e[32];const W=L;let G;e[33]!==a||e[34]!==W?(G=z.jsx(ns,{children:z.jsx(Ct.Provider,{value:W,children:a})}),e[33]=a,e[34]=W,e[35]=G):G=e[35];let V;return e[36]!==G||e[37]!==g?(V=z.jsx(Xe.Provider,{value:g,children:G}),e[36]=G,e[37]=g,e[38]=V):V=e[38],V}function Ps({taskId:t,children:e}){const n=$e(),{virtualMcpId:s,activeTask:a,currentBranch:o}=ss();t&&!it.has(t)&&(it.add(t),Rt("chat_opened",{thread_id:t}));const{imageModel:r,webSearchModel:l,deepResearchModel:p,chatMode:u,setChatMode:m,appContexts:v,setTiptapDoc:w,simpleModeTier:f,pendingSandboxProviderKind:T,pendingHarnessId:q}=as(),U=S.useContext(Ct);if(!U)throw new Error(n("chat.chatContext.activeTaskProviderMissingContext"));const{user:C,contextPrompt:P,preferences:N,rawNavigateToTask:F}=U,{org:E,locator:H}=Z(),se=Wn(),[ae,j]=S.useState(null),J=_n(),Y=qe(),B=Kt(),K=dt(),ee=Wt({connectionId:Gt,orgId:E.id,orgSlug:E.slug}),g=Vt(E.slug,t,{client:ee});S.use(g.ready);const L=me(g.messages),W=me(g.status),G=me(g.finishReason),V=me(g.runStatusStage),A=me(g.hasMoreOlder),Q=me(g.isFetchingOlder),D=S.useRef({onToolCall:J,queryClient:Y,rawNavigateToTask:F,taskId:t,manager:B,navigate:K,orgId:E.id,orgSlug:E.slug});D.current={onToolCall:J,queryClient:Y,rawNavigateToTask:F,taskId:t,manager:B,navigate:K,orgId:E.id,orgSlug:E.slug},Zt({orgSlug:E.slug,taskId:t,onTaskStatus:d=>{const h=D.current,_=d.data.message_id;if(d.data.status==="in_progress"&&_){Ne(h.taskId,_);const $=Bn(h.taskId,_);$&&g.applyLocalMessage($),te(h.orgSlug,h.taskId)}Kn(h.taskId)&&(async()=>(await te(h.orgSlug,h.taskId),await g.reconcileFromServer()&&we(h.taskId).get().length===0&&Vn(h.taskId)))()}}),S.useEffect(()=>{const d={onData:y=>{if(y.type==="data-thread-title"){const k=y.data;if(!k?.title)return;const c=D.current;if(!c.taskId)return;c.manager.patchThread({id:c.taskId,title:k.title,updated_at:new Date().toISOString()});return}if(y.type==="data-deck-updated"){const k=y.data;if(!k?.path)return;const c=k.path,b=D.current;b.queryClient.invalidateQueries({queryKey:ne.orgFsStat(b.orgId,"home",c)}),b.queryClient.invalidateQueries({queryKey:ne.orgFsRecent(b.orgId)}),b.navigate({to:".",search:O=>({...O,main:Ft(c)}),replace:!0});return}if(y.type==="data-open-preview"){const k=y.data,c=D.current,b=c.taskId;if(b){const O=c.manager.threads.get().find(R=>R.id===b);c.manager.patchThread({id:b,...k?.branch?{branch:k.branch}:{},...k?.sandboxProviderKind?{sandbox_provider_kind:k.sandboxProviderKind}:{},metadata:{...O?.metadata??{},...k?.githubRepo?{githubRepo:k.githubRepo}:{},...k?.sandboxMap?{sandboxMap:k.sandboxMap}:{}}})}c.navigate({to:".",search:O=>({...O,main:"preview"}),replace:!0});return}},onFinish:(y,k,c)=>{const b=D.current;b.taskId&&te(b.orgSlug,b.taskId),b.taskId&&b.manager.patchThread({id:b.taskId,status:wn(c,y.parts),updated_at:new Date().toISOString()});const O=y.parts?.some(I=>{const pe=I;return(pe.type==="tool-share_with_user"||pe.type==="tool-bash"||pe.type==="tool-write")&&pe.state==="output-available"});if(b.taskId&&O){const I=ne.threadOutputs(b.taskId);for(const pe of[0,1500,3e3,6e3,12e3,25e3])setTimeout(()=>{b.queryClient.invalidateQueries({queryKey:I})},pe)}b.queryClient.invalidateQueries({queryKey:ne.homeNextActions(b.orgSlug)});const R=y.metadata?.thread_id;R&&R!==b.taskId&&b.rawNavigateToTask(R)},onError:y=>{j(y),console.error("[chat] Error",y)},onToolCall:y=>D.current.onToolCall(y)};g.observer=d,te(D.current.orgSlug,D.current.taskId);const h=y=>y==="submitted"||y==="streaming";let _=h(g.status.get().kind);const $=g.status.subscribe(()=>{const y=h(g.status.get().kind);if(y===_)return;_=y;const k=D.current;te(k.orgSlug,k.taskId)});return()=>{g.observer===d&&(g.observer=null),$()}},[g]);const Ce=W.kind==="submitted"||W.kind==="streaming",Oe=L.length===0,Me=L.at(-1),Te=!Ce&&Me?.role==="assistant"&&Me.parts.some(d=>"state"in d&&d.state==="approval-requested"),Pe=a,be=(Pe?.status==="in_progress"||Pe?.status==="expired")&&W.kind==="ready"&&L.length>0;async function Ae(d){const h=t,_=s,$=Object.entries(v),y=$.length>0?$.map(([R,I])=>`### App Context: ${R}
32
- ${I}`).join(`
33
-
34
- `):"",k=[P,y].filter(Boolean).join(`
35
-
36
- `);let c=u;c==="gen-image"&&!r&&(c="default"),c==="web-search"&&!l&&(c="default"),c==="deep-research"&&!p&&(c="default"),(c==="web-search"||c==="deep-research")&&m("default");const b=Tn({thread:a?{harness_id:a.harness_id??null,sandbox_provider_kind:a.sandbox_provider_kind??null,branch:a.branch??null}:null,globals:{harnessId:q??void 0,sandboxProviderKind:T??void 0,branch:o}});a?.harness_id||B.patchThread({id:h,harness_id:b.harnessId??"decopilot",updated_at:new Date().toISOString()});const O={tier:f,mode:c,toolApprovalLevel:N.toolApprovalLevel??$t(),system:k||void 0,agent:{id:_},thread_id:h,...b};try{if(Ce||be){let R=!0;try{Hn(h,d),await g.enqueue(d,O),wt(h,{workflowId:`thread-run:${h}:${d.id}`,messageId:d.id,text:Nn(d.parts),hasAttachments:d.parts.some(I=>I.type==="file"),status:"queued",enqueuedAt:Date.now(),optimistic:!0}),jn(h)}catch(I){R=!1,ot(h,d.id),Ne(h,d.id),j(I instanceof Error?I:new Error(String(I))),le.error(I instanceof Error?I.message:n("chat.chatContext.failedToQueueMessage"))}return te(E.slug,h),R}return await g.submit({kind:"message",message:d},O),!0}finally{re.delete(h)}}async function de(d){const h=d.parts??It(d.tiptapDoc);if(h.length===0||re.has(t))return;re.add(t),j(null),w(void 0);const _={tiptapDoc:d.tiptapDoc,created_at:new Date().toISOString(),user:{avatar:C?.image??void 0,name:C?.name??"you"}},$={id:crypto.randomUUID(),role:"user",parts:h,metadata:_};await Ae($)}async function oe(d,h){if(re.has(t))return le.info(n("chat.chatContext.stillSendingPreviousMessage")),!1;if(re.add(t),!await se.cancel(t,d))return re.delete(t),le.error(n("chat.chatContext.couldNotRemoveOriginalMessage")),!1;ot(t,d),g.removeLocalMessage(d);const $={id:crypto.randomUUID(),role:"user",parts:[{type:"text",text:h}],metadata:{created_at:new Date().toISOString(),user:{avatar:C?.image??void 0,name:C?.name??"you"}}};try{return await Ae($)}catch(y){return le.error(y instanceof Error?y.message:n("chat.chatContext.failedToSendEditedMessage")),!1}}const Le=async()=>{g.stop();try{const d=await fetch(`/api/${E.slug}/decopilot/cancel/${t}`,{method:"POST",credentials:"include"});if(d.status===404)return;if(!d.ok){const h=await d.json().catch(()=>({}));throw new Error(h.message??n("chat.chatContext.cancelFailedStatus",{status:d.status}))}}catch(d){const h=d instanceof Error?d.message:n("chat.chatContext.failedToCancel");le.error(h),console.error("[chat] cancelRun",d)}},Ee=d=>d&&typeof d=="object"&&"type"in d?de({tiptapDoc:d}):de(d),ue=Fe({strict:!1}).autosend===ut;S.useEffect(()=>{if(!ue||L.length>0)return;const d=Ut(sessionStorage,H,t);d&&de(d.message).then(()=>{Nt(sessionStorage,H,t)})},[ue,L.length,H,t,de]);const Re={messages:L,status:Jn(W),sendMessage:Ee,editQueuedMessage:oe,stop:()=>{Le()},submit:(d,h)=>g.submit(d,h),removeLocalMessage:d=>g.removeLocalMessage(d),isSendInFlight:()=>re.has(t),error:ae,clearError:()=>j(null),finishReason:G,runStatusStage:V,clearFinishReason:()=>g.finishReason.set(null),isStreaming:Ce,isChatEmpty:Oe,isWaitingForApprovals:Te??!1,isRunInProgress:be,hasMoreOlder:A,isFetchingOlder:Q,fetchOlderMessages:g.fetchOlderMessages.bind(g)};return z.jsx(ze.Provider,{value:Re,children:e})}function As(){const t=$e(),e=S.useContext(ze);if(!e)throw new Error(t("chat.chatContext.useChatStreamMissingContext"));return e}function Es(){return S.useContext(ze)}function ss(){const t=$e(),e=S.useContext(Xe);if(!e)throw new Error(t("chat.chatContext.useChatTaskMissingContext"));return e}function as(){const t=$e(),e=S.useContext(Ze);if(!e)throw new Error(t("chat.chatContext.useChatPrefsMissingContext"));return e}function Rs(){return S.useContext(Ze)}function os(){return S.useContext(Xe)}export{Ps as A,xs as B,ns as C,kt as D,nn as E,Rs as F,vt as G,St as H,xn as I,ys as S,bs as V,as as a,As as b,os as c,ss as d,Cs as e,Wn as f,ot as g,Gn as h,Ms as i,Xn as j,vs as k,Es as l,Ts as m,Is as n,gs as o,Yn as p,an as q,fs as r,ws as s,ks as t,In as u,It as v,Pn as w,An as x,Ss as y,xt as z};
@@ -1 +0,0 @@
1
- import{c as L,F as H,j as U}from"./index-D3OCvKaU.js";import{a as O,g as $,s as E}from"./automation-runs-DJHP3Ebd.js";import{r as k,u as B}from"./use-mcp-client-DBBu3lpa.js";import{b as V,c as Y}from"./use-mcp-tools-BKx6eQVH.js";import{u as q}from"./index-CJRST3_Z.js";import{c as G}from"./monaco-editor-G_cJDJ93.js";import{g as F,M as K,a as D}from"./index-B5Nibhwf.js";import{b as W,a as z}from"./chat-context-DcyOF_pB.js";import{u as J}from"./shell-layout-BexOLm1f.js";import{O as Q}from"./tab-id-YHtlg7gF.js";import"./select-CPtJAf28.js";import"./tooltip-DrF8Dycy.js";import"./Check-Du2CH0Qx.js";import"./ChevronDown-CIPwphYr.js";import"./ChevronUp-f9GdHpvo.js";import"./useInfiniteQuery-Cth5f35D.js";import"./use-infinite-scroll-CLgVcggv.js";import"./use-connection-BqPnQoRJ.js";import"./use-virtual-mcp-Bymtbi-1.js";import"./card-C_7Dfz9P.js";import"./sidebar-BjYwCtXi.js";import"./LayoutLeft-CWKaiAHc.js";import"./use-mobile-B9xC4LZs.js";import"./X-DsUhkCER.js";import"./table-Ciw0rD4-.js";import"./empty-state-CiJvvnog.js";import"./use-members-C1XPdRpt.js";import"./use-org-auth-client-BFAUjn-N.js";import"./use-clock-tick-2gdnxIz7.js";import"./AlertCircle-Dkv2twCy.js";import"./CheckCircle-pc0wi1b4.js";import"./DotsVertical-Dl3GV1z7.js";import"./agent-icon-Cn-zdV8E.js";import"./Tool01-DMFHdvqO.js";import"./ArrowUp-CfejN6kE.js";import"./Settings02-Dvu63VK8.js";import"./Tool02-CCso8U2x.js";import"./ArrowRight-D1F_c8mU.js";import"./ArrowUpRight-pyqwDg-l.js";import"./TrendUp01-CnWDWhEF.js";import"./ZapSquare-qUxPDGDu.js";import"./Users03-o-LyclnZ.js";import"./ChevronRight-bpU9x4EL.js";import"./Stars02-D9_55K26.js";import"./Copy01-DBHRmMgp.js";import"./Eye-pDXTSR_y.js";import"./FilterLines-BFWPoe09.js";import"./Star01-B1Kn4-_i.js";import"./Palette-BY72GXhm.js";import"./SwitchHorizontal01-BAtdmOhb.js";import"./HardDrive-BCPMH3VT.js";import"./Key01-CBwzTn3B.js";import"./XCircle-qpPGG1wt.js";import"./LinkExternal01-DsH5I9jm.js";import"./LogOut01-YgIKEMFw.js";import"./Monitor01-q2Qybp9B.js";import"./Sun-DMtwJS6D.js";import"./Play-9D0sdMED.js";import"./Plus-1ztWOFkn.js";import"./SearchLg-CBRhPi_g.js";import"./SearchMd-CoeKfSSe.js";import"./Shield01-ByBFJvxc.js";import"./Stars01-DpgpdjJr.js";import"./Trash01-CTHwttyB.js";import"./Upload01-BY9ftwcq.js";import"./User01-BTBcFc9z.js";import"./Users01-Cql_e-31.js";import"./XClose-B6aD5HLV.js";import"./Zap-u5rNKW8G.js";import"./use-automations-BoP3NYfz.js";import"./studio-tools-D5UPG7xq.js";import"./useSuspenseInfiniteQuery-C_27-SXB.js";import"./avatar-CtA1rHBR.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D32fta2h.js";import"./dialog-DRzTNCF2.js";import"./hooks-CAzZfDok.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-qYgFQjLn.js";import"./calendar-DDOXvi9j.js";import"./integration-icon-DG6YOOMj.js";import"./use-navigate-to-agent-B_NFjN6b.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-Drb-WBuc.js";import"./form-CQNziZWc.js";import"./label-DUiPU4TM.js";import"./input-Bs4tcVhT.js";import"./auth-DxnCXfEr.js";import"./drawer-SsJOHRPA.js";import"./collection-search-CgPrJD5s.js";import"./index-DoQWemFd.js";import"./get-initials-D-f_fDFw.js";import"./popover-DqHD4yxd.js";import"./use-registry-app-D7Jfc22S.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-BgQP48Df.js";import"./mcp-oauth-CVKUYIl9.js";import"./extract-connection-data-Br5Lsj7z.js";import"./metadata-dUsYcpuu.js";import"./use-decopilot-events-CF5TQ0kC.js";import"./dropdown-menu-BokfpNru.js";import"./command-mkWdNJiA.js";import"./index-CCb4vxYi.js";import"./use-organization-settings-BZ_WlMTx.js";import"./companions-core-CCmjJd5y.js";import"./tabs-BvhudmcJ.js";import"./toggle-group-BQ-mtOqg.js";import"./use-deco-credits-BzZz8lBr.js";import"./alert-dialog-DdeUN0gs.js";import"./toolbar-Ba5XXE-M.js";import"./skeleton-BwfY4sYC.js";import"./github-repo-picker-pUO4-UP7.js";import"./use-debounced-value-B5eH48Lw.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-5582YW8P.js";import"./use-registry-connections-CxLWLJ5V.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-dx3oQXX3.js";import"./connection-form-helpers-CmY0Q2Uk.js";import"./collection-tabs-DQPFhmJa.js";import"./badge-DLw-128i.js";import"./use-ai-providers-BiLZ6IzA.js";import"./connect-desktop-dialog-DCNWmwTZ.js";import"./select-model-D7Ovd4CR.js";import"./checkbox-CTh8EHLV.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Dgg5nCua.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-1iMDr_3s.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-hQ0DXv0z.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-CuDIWjse.js";import"./use-debounced-autosave-3BGJnmLE.js";import"./index-DeO_SMjA.js";import"./search-input-Ce9IROHU.js";import"./switch-Br6uEAbX.js";import"./use-secrets-DmXwh72p.js";import"./useQueries-B_FHAwLH.js";import"./use-file-configs-Bw1gACmS.js";import"./automation-list-row-BgQ-Sntx.js";import"./required-auth-layout-B9TfjBVw.js";import"./use-org-sso-Dx0HxB9Q.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:e,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=W(),{setAppContext:f,clearAppContext:l}=z(),{openSidePanel:g,openTab:s}=J(),i=`${p}:${e.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==e.name||t[4]!==n?(u={client:o,toolName:e.name,toolArguments:n},t[2]=o,t[3]=e.name,t[4]=n,t[5]=u):u=t[5];const{data:r}=Y(u);let h;if(t[6]!==e._meta||t[7]!==e.name){const x=$(e._meta);h=E(e.name,x),t[6]=e._meta,t[7]=e.name,t[8]=h}else h=t[8];const A=h;let d;t[9]!==e.inputSchema?(d=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=d):d=t[10];let R;t[11]!==A||t[12]!==d||t[13]!==e?(R={...e,name:A,inputSchema:d},t[11]=A,t[12]=d,t[13]=e,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==f||t[22]!==i?(N=x=>f(i,x),t[21]=f,t[22]=i,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==i?(T=()=>l(i),t[24]=l,t[25]=i,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==r?(S=U.jsx(K,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:r,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=r,t[37]=S):S=t[37],S}function Be(M){const t=L.c(24),{connectionId:o,toolName:I,args:e}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=k(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let f;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(f={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=f):f=t[7];const l=B(f);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let i,c,m;t[10]!==I||t[11]!==s.tools?(i=O(decodeURIComponent(I)),m=s.tools.find(r=>r.name===i)??s.tools.find(r=>{const h=$(r._meta);if(!h)return!1;if(E(r.name,h)===i)return!0;const d=E(i,h);return d!==i&&r.name===d}),c=m?._meta?F(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=i,t[13]=c,t[14]=m):(i=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let r;return t[15]!==i?(r=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.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 u;return t[17]!==e||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:e}),t[17]=e,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Be as AppViewContent};
@@ -1 +0,0 @@
1
- import{c as L,b as A,j as r}from"./index-D3OCvKaU.js";import{I as O}from"./input-Bs4tcVhT.js";import{L as F}from"./label-DUiPU4TM.js";import{S as R,a as z,b as V,c as D,d as J}from"./select-CPtJAf28.js";import{T as M}from"./textarea-dx3oQXX3.js";import{O as Q,P as Y,Q as $,I as q,T as G,Y as H}from"./index-CJRST3_Z.js";import{s as I}from"./primitives-DqZjRnu7.js";import{u as U}from"./use-autosave-DVJxzXG6.js";import"./tooltip-DrF8Dycy.js";import"./Check-Du2CH0Qx.js";import"./ChevronDown-CIPwphYr.js";import"./ChevronUp-f9GdHpvo.js";import"./ArrowUp-CfejN6kE.js";import"./chat-context-DcyOF_pB.js";import"./tab-id-YHtlg7gF.js";import"./hooks-CAzZfDok.js";import"./use-mcp-client-DBBu3lpa.js";import"./auth-DxnCXfEr.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-qYgFQjLn.js";import"./studio-tools-D5UPG7xq.js";import"./use-virtual-mcp-Bymtbi-1.js";import"./use-ai-providers-BiLZ6IzA.js";import"./use-decopilot-events-CF5TQ0kC.js";import"./use-organization-settings-BZ_WlMTx.js";import"./automation-runs-DJHP3Ebd.js";import"./useInfiniteQuery-Cth5f35D.js";import"./use-infinite-scroll-CLgVcggv.js";import"./use-connection-BqPnQoRJ.js";import"./card-C_7Dfz9P.js";import"./sidebar-BjYwCtXi.js";import"./LayoutLeft-CWKaiAHc.js";import"./use-mobile-B9xC4LZs.js";import"./X-DsUhkCER.js";import"./table-Ciw0rD4-.js";import"./empty-state-CiJvvnog.js";import"./use-members-C1XPdRpt.js";import"./use-org-auth-client-BFAUjn-N.js";import"./use-clock-tick-2gdnxIz7.js";import"./AlertCircle-Dkv2twCy.js";import"./CheckCircle-pc0wi1b4.js";import"./DotsVertical-Dl3GV1z7.js";import"./agent-icon-Cn-zdV8E.js";import"./Tool01-DMFHdvqO.js";import"./Settings02-Dvu63VK8.js";import"./Tool02-CCso8U2x.js";import"./ArrowRight-D1F_c8mU.js";import"./ArrowUpRight-pyqwDg-l.js";import"./TrendUp01-CnWDWhEF.js";import"./ZapSquare-qUxPDGDu.js";import"./Users03-o-LyclnZ.js";import"./ChevronRight-bpU9x4EL.js";import"./Stars02-D9_55K26.js";import"./Copy01-DBHRmMgp.js";import"./Eye-pDXTSR_y.js";import"./FilterLines-BFWPoe09.js";import"./Star01-B1Kn4-_i.js";import"./Palette-BY72GXhm.js";import"./SwitchHorizontal01-BAtdmOhb.js";import"./HardDrive-BCPMH3VT.js";import"./Key01-CBwzTn3B.js";import"./XCircle-qpPGG1wt.js";import"./LinkExternal01-DsH5I9jm.js";import"./LogOut01-YgIKEMFw.js";import"./Monitor01-q2Qybp9B.js";import"./Sun-DMtwJS6D.js";import"./Play-9D0sdMED.js";import"./Plus-1ztWOFkn.js";import"./SearchLg-CBRhPi_g.js";import"./SearchMd-CoeKfSSe.js";import"./Shield01-ByBFJvxc.js";import"./Stars01-DpgpdjJr.js";import"./Trash01-CTHwttyB.js";import"./Upload01-BY9ftwcq.js";import"./User01-BTBcFc9z.js";import"./Users01-Cql_e-31.js";import"./XClose-B6aD5HLV.js";import"./Zap-u5rNKW8G.js";import"./use-automations-BoP3NYfz.js";import"./useSuspenseInfiniteQuery-C_27-SXB.js";import"./avatar-CtA1rHBR.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D32fta2h.js";import"./dialog-DRzTNCF2.js";import"./monaco-editor-G_cJDJ93.js";import"./index-B5Nibhwf.js";import"./calendar-DDOXvi9j.js";import"./shell-layout-BexOLm1f.js";import"./required-auth-layout-B9TfjBVw.js";import"./use-org-sso-Dx0HxB9Q.js";import"./integration-icon-DG6YOOMj.js";import"./use-navigate-to-agent-B_NFjN6b.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-Drb-WBuc.js";import"./form-CQNziZWc.js";import"./drawer-SsJOHRPA.js";import"./collection-search-CgPrJD5s.js";import"./index-DoQWemFd.js";import"./get-initials-D-f_fDFw.js";import"./popover-DqHD4yxd.js";import"./use-registry-app-D7Jfc22S.js";import"./use-mcp-tools-BKx6eQVH.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-BgQP48Df.js";import"./mcp-oauth-CVKUYIl9.js";import"./extract-connection-data-Br5Lsj7z.js";import"./metadata-dUsYcpuu.js";import"./dropdown-menu-BokfpNru.js";import"./command-mkWdNJiA.js";import"./index-CCb4vxYi.js";import"./companions-core-CCmjJd5y.js";import"./tabs-BvhudmcJ.js";import"./toggle-group-BQ-mtOqg.js";import"./use-deco-credits-BzZz8lBr.js";import"./alert-dialog-DdeUN0gs.js";import"./toolbar-Ba5XXE-M.js";import"./skeleton-BwfY4sYC.js";import"./github-repo-picker-pUO4-UP7.js";import"./use-debounced-value-B5eH48Lw.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./connection-card-5582YW8P.js";import"./use-registry-connections-CxLWLJ5V.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-CmY0Q2Uk.js";import"./collection-tabs-DQPFhmJa.js";import"./badge-DLw-128i.js";import"./connect-desktop-dialog-DCNWmwTZ.js";import"./select-model-D7Ovd4CR.js";import"./checkbox-CTh8EHLV.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Dgg5nCua.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-1iMDr_3s.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-hQ0DXv0z.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-CuDIWjse.js";import"./use-debounced-autosave-3BGJnmLE.js";import"./index-DeO_SMjA.js";import"./search-input-Ce9IROHU.js";import"./switch-Br6uEAbX.js";import"./use-secrets-DmXwh72p.js";import"./useQueries-B_FHAwLH.js";import"./use-file-configs-Bw1gACmS.js";import"./automation-list-row-BgQ-Sntx.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-DGnc-Dtp.js","assets/index-D3OCvKaU.js","assets/index-CsfbOCjy.css","assets/Tool02-CCso8U2x.js","assets/CheckCircle-pc0wi1b4.js","assets/Settings02-Dvu63VK8.js","assets/use-mcp-client-DBBu3lpa.js","assets/auth-DxnCXfEr.js","assets/useInfiniteQuery-Cth5f35D.js","assets/use-infinite-scroll-CLgVcggv.js","assets/studio-tools-D5UPG7xq.js","assets/badge-DLw-128i.js","assets/input-Bs4tcVhT.js","assets/dropdown-menu-BokfpNru.js","assets/Check-Du2CH0Qx.js","assets/ChevronRight-bpU9x4EL.js","assets/DotsVertical-Dl3GV1z7.js","assets/table-Ciw0rD4-.js","assets/toggle-group-BQ-mtOqg.js","assets/use-view-mode-BgyziSsp.js","assets/use-mobile-B9xC4LZs.js","assets/FilterLines-BFWPoe09.js","assets/SearchMd-CoeKfSSe.js","assets/dialog-DRzTNCF2.js","assets/X-DsUhkCER.js","assets/AlertCircle-Dkv2twCy.js","assets/Upload01-BY9ftwcq.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DdeUN0gs.js","assets/card-C_7Dfz9P.js","assets/Trash01-CTHwttyB.js","assets/label-DUiPU4TM.js","assets/select-CPtJAf28.js","assets/tooltip-DrF8Dycy.js","assets/ChevronDown-CIPwphYr.js","assets/ChevronUp-f9GdHpvo.js","assets/switch-Br6uEAbX.js","assets/textarea-dx3oQXX3.js","assets/ArrowRight-D1F_c8mU.js","assets/XCircle-qpPGG1wt.js","assets/checkbox-CTh8EHLV.js","assets/Eye-pDXTSR_y.js","assets/LinkExternal01-DsH5I9jm.js","assets/use-copy-D32fta2h.js","assets/Copy01-DBHRmMgp.js","assets/Key01-CBwzTn3B.js","assets/Plus-1ztWOFkn.js","assets/mcp-oauth-CVKUYIl9.js","assets/Play-9D0sdMED.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-D3OCvKaU.js";import{R as m}from"./require-capability-BYjfZMZ1.js";import"./use-capability-hQ0DXv0z.js";import"./access-gate-CKUKLx71.js";import"./capability-load-error-BSRBDTUF.js";const n=s.lazy(()=>o(()=>import("./registry-layout-DGnc-Dtp.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,48])));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-DGnc-Dtp.js","assets/index-D3OCvKaU.js","assets/index-CsfbOCjy.css","assets/Tool02-CCso8U2x.js","assets/CheckCircle-pc0wi1b4.js","assets/Settings02-Dvu63VK8.js","assets/use-mcp-client-DBBu3lpa.js","assets/auth-DxnCXfEr.js","assets/useInfiniteQuery-Cth5f35D.js","assets/use-infinite-scroll-CLgVcggv.js","assets/studio-tools-D5UPG7xq.js","assets/badge-DLw-128i.js","assets/input-Bs4tcVhT.js","assets/dropdown-menu-BokfpNru.js","assets/Check-Du2CH0Qx.js","assets/ChevronRight-bpU9x4EL.js","assets/DotsVertical-Dl3GV1z7.js","assets/table-Ciw0rD4-.js","assets/toggle-group-BQ-mtOqg.js","assets/use-view-mode-BgyziSsp.js","assets/use-mobile-B9xC4LZs.js","assets/FilterLines-BFWPoe09.js","assets/SearchMd-CoeKfSSe.js","assets/dialog-DRzTNCF2.js","assets/X-DsUhkCER.js","assets/AlertCircle-Dkv2twCy.js","assets/Upload01-BY9ftwcq.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DdeUN0gs.js","assets/card-C_7Dfz9P.js","assets/Trash01-CTHwttyB.js","assets/label-DUiPU4TM.js","assets/select-CPtJAf28.js","assets/tooltip-DrF8Dycy.js","assets/ChevronDown-CIPwphYr.js","assets/ChevronUp-f9GdHpvo.js","assets/switch-Br6uEAbX.js","assets/textarea-dx3oQXX3.js","assets/ArrowRight-D1F_c8mU.js","assets/XCircle-qpPGG1wt.js","assets/checkbox-CTh8EHLV.js","assets/Eye-pDXTSR_y.js","assets/LinkExternal01-DsH5I9jm.js","assets/use-copy-D32fta2h.js","assets/Copy01-DBHRmMgp.js","assets/Key01-CBwzTn3B.js","assets/Plus-1ztWOFkn.js","assets/mcp-oauth-CVKUYIl9.js","assets/Play-9D0sdMED.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-D3OCvKaU.js";import{R as u}from"./require-capability-BYjfZMZ1.js";import"./use-capability-hQ0DXv0z.js";import"./access-gate-CKUKLx71.js";import"./capability-load-error-BSRBDTUF.js";const g=l.lazy(()=>p(()=>import("./registry-layout-DGnc-Dtp.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,48])));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{c as d,F as f,x as P,K as m,n as K}from"./index-D3OCvKaU.js";import{u as S,c as T}from"./studio-tools-D5UPG7xq.js";function g(s,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await T(s,"AI_PROVIDER_KEY_LIST",{})}}function R(){const s=d.c(7),{org:e}=f(),o=S();let i;s[0]!==e.id?(i=m.aiProviders(e.id),s[0]=e.id,s[1]=i):i=s[1];let t;s[2]!==o?(t=async()=>await o.call("AI_PROVIDERS_LIST",{}),s[2]=o,s[3]=t):t=s[3];let l;s[4]!==i||s[5]!==t?(l={queryKey:i,staleTime:1/0,queryFn:t},s[4]=i,s[5]=t,s[6]=l):l=s[6];const{data:n}=P(l);return n}function p(){const s=d.c(5),{org:e}=f();let o;s[0]!==e.id||s[1]!==e.slug?(o=g(e.slug,e.id),s[0]=e.id,s[1]=e.slug,s[2]=o):o=s[2];const{data:i}=P(o);let t;return s[3]!==i?.keys?(t=i?.keys??[],s[3]=i?.keys,s[4]=t):t=s[4],t}function q(s){const e=d.c(15),{org:o}=f(),i=S();let t;e[0]!==s||e[1]!==o.id?(t=m.aiProviderModels(o.id,s??""),e[0]=s,e[1]=o.id,e[2]=t):t=e[2];const l=!!s;let n;e[3]!==s||e[4]!==i?(n=async()=>await i.call("AI_PROVIDERS_LIST_MODELS",{keyId:s??""}),e[3]=s,e[4]=i,e[5]=n):n=e[5];let r;e[6]!==t||e[7]!==l||e[8]!==n?(r={queryKey:t,enabled:l,staleTime:6e4,queryFn:n},e[6]=t,e[7]=l,e[8]=n,e[9]=r):r=e[9];const{data:a,isLoading:_}=K(r);let u;e[10]!==a?.models?(u=a?.models??[],e[10]=a?.models,e[11]=u):u=e[11];const y=!!s&&_;let c;return e[12]!==u||e[13]!==y?(c={models:u,isLoading:y},e[12]=u,e[13]=y,e[14]=c):c=e[14],c}function A(s){const e=d.c(11),{org:o}=f(),i=S();let t;e[0]!==s||e[1]!==o.id?(t=m.aiProviderModels(o.id,s),e[0]=s,e[1]=o.id,e[2]=t):t=e[2];let l;e[3]!==s||e[4]!==i?(l=async()=>await i.call("AI_PROVIDERS_LIST_MODELS",{keyId:s}),e[3]=s,e[4]=i,e[5]=l):l=e[5];let n;e[6]!==t||e[7]!==l?(n={queryKey:t,staleTime:6e4,queryFn:l},e[6]=t,e[7]=l,e[8]=n):n=e[8];const{data:r}=P(n);let a;return e[9]!==r?.models?(a=r?.models??[],e[9]=r?.models,e[10]=a):a=e[10],a}export{q as a,R as b,A as c,p as u};
@@ -1 +0,0 @@
1
- import{I as u}from"./use-infinite-scroll-CLgVcggv.js";import{dW as i}from"./index-D3OCvKaU.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-CLgVcggv.js";import{dW as u,V as n}from"./index-D3OCvKaU.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};