decocms 4.508.3 → 4.508.5

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 (383) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-BHLdYWjj.js → ActiveShapeUtils-hXW1kRcE.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-D9thrIug.js → AlertCircle-D-2plD68.js} +1 -1
  3. package/dist/client/assets/{AreaChart-DiFQVf42.js → AreaChart-CLSR0bTN.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DzG1mz53.js → ArrowLeft-H_5A5Gr5.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DXBQCjy6.js → ArrowUp-D7-4gYyo.js} +1 -1
  6. package/dist/client/assets/{BarChart-nWnAfTzl.js → BarChart-BXhJ7fMZ.js} +1 -1
  7. package/dist/client/assets/{Building02-1PI0gZEz.js → Building02-Ctqbg0eK.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-PGsEIZ7t.js → CategoricalChart-BeIwja-9.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-DZh-tLmy.js → CheckCircle-BCSEWiqx.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-Cpo2eTAs.js → ChevronSelectorVertical-D_0iGG6d.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-DsKwChbg.js → ChevronUp-CZwSTYLx.js} +1 -1
  12. package/dist/client/assets/{Copy01-6GcnKMxn.js → Copy01-CJKub2_o.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-B5XddQDh.js → CreditCard01-DD9EJ9xU.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-DF1xO3zA.js → DotsVertical-Mertu_bp.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-B7TpdDbe.js → ErrorBarContext-B0YkPhgE.js} +1 -1
  16. package/dist/client/assets/{Globe04-DV864n0g.js → Globe04-_fp1uYqG.js} +1 -1
  17. package/dist/client/assets/{Image01-aOLGRsh8.js → Image01-CMp-2bfg.js} +1 -1
  18. package/dist/client/assets/{Key01-p-rjlUjm.js → Key01-B3dXN-Y7.js} +1 -1
  19. package/dist/client/assets/{Link01-DyEmeKha.js → Link01-DPKsL39W.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-DCDOe2qB.js → LinkBroken01-MgsRpWo_.js} +1 -1
  21. package/dist/client/assets/{Monitor01-y3km-7x7.js → Monitor01-B-njRpwx.js} +1 -1
  22. package/dist/client/assets/{Play-_kLv9cdJ.js → Play-yJIE0YnV.js} +1 -1
  23. package/dist/client/assets/{Plus-DdZkIgr1.js → Plus-D1ujaH4P.js} +1 -1
  24. package/dist/client/assets/{SearchMd-4UaIKjot.js → SearchMd-CvTMXZGD.js} +1 -1
  25. package/dist/client/assets/{Sector-DD07FuoD.js → Sector-B2G9aCqg.js} +1 -1
  26. package/dist/client/assets/{ShoppingBag01-CgC2iUio.js → ShoppingBag01-P4qRpuf7.js} +1 -1
  27. package/dist/client/assets/{Sun-EtkbFR7f.js → Sun-BO4JpKlT.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-51WQeOkO.js → SwitchHorizontal01-GtnLThsz.js} +1 -1
  29. package/dist/client/assets/{Tool01-BiOFhXS9.js → Tool01-wa7smXXA.js} +1 -1
  30. package/dist/client/assets/{Trash01-BR014M9V.js → Trash01-ChpqYbJ5.js} +1 -1
  31. package/dist/client/assets/{Upload01-CMgTvDEq.js → Upload01-BS2FlEXW.js} +1 -1
  32. package/dist/client/assets/{User01-CJd0J8Rw.js → User01-BxtEyOFP.js} +1 -1
  33. package/dist/client/assets/{UserSquare-xZn1bKA0.js → UserSquare-BXbZgf1v.js} +1 -1
  34. package/dist/client/assets/{Users01-C9WOozU_.js → Users01-fW9b6DmN.js} +1 -1
  35. package/dist/client/assets/{XAxis-B9ggRkTe.js → XAxis-CiK4FE53.js} +1 -1
  36. package/dist/client/assets/{XClose-CAJwY04D.js → XClose-o28PhQrm.js} +1 -1
  37. package/dist/client/assets/{ZoomOut-CGZ5wA2M.js → ZoomOut-DilnRbYe.js} +1 -1
  38. package/dist/client/assets/{access-gate-BlV6ozL8.js → access-gate-DjCsf0Fn.js} +1 -1
  39. package/dist/client/assets/add-connection-dialog-Dd0MPW8q.js +1 -0
  40. package/dist/client/assets/{agent-analytics-C6UIapTu.js → agent-analytics-De-Il6xG.js} +1 -1
  41. package/dist/client/assets/agent-app-Up_QBSxH.js +1 -0
  42. package/dist/client/assets/{agent-assets-nDpAEjj9.js → agent-assets-DoGxTSQf.js} +1 -1
  43. package/dist/client/assets/{agent-automation-Dp6qJOD4.js → agent-automation-CWZ5MU2M.js} +1 -1
  44. package/dist/client/assets/{agent-automations-DxEwm2pf.js → agent-automations-BrZnB64u.js} +1 -1
  45. package/dist/client/assets/{agent-connect-sources-HPsxGqEN.js → agent-connect-sources-BGnBcpqN.js} +1 -1
  46. package/dist/client/assets/agent-deck-BbK3fHwc.js +1 -0
  47. package/dist/client/assets/{agent-e2e--cUCRTr8.js → agent-e2e-CObdKEhh.js} +1 -1
  48. package/dist/client/assets/{agent-experiments-DDB1iU1-.js → agent-experiments-BnrLrWAI.js} +1 -1
  49. package/dist/client/assets/{agent-file-DbuclJDV.js → agent-file-BKf5W0N3.js} +1 -1
  50. package/dist/client/assets/{agent-hosting-9lVEQty8.js → agent-hosting-TclQ-hec.js} +1 -1
  51. package/dist/client/assets/{agent-icon-vGqJXXmm.js → agent-icon-2gpOTQkx.js} +1 -1
  52. package/dist/client/assets/agent-library-file-CrCAOA39.js +1 -0
  53. package/dist/client/assets/agent-library-h_6C8rPz.js +1 -0
  54. package/dist/client/assets/{agent-monitor-1hiZvmGo.js → agent-monitor-CT2I8Nss.js} +1 -1
  55. package/dist/client/assets/{agent-overview-DOkf_wJh.js → agent-overview-B533nx0V.js} +1 -1
  56. package/dist/client/assets/{agent-releases-VmPTXGCD.js → agent-releases-V0JuDV2R.js} +1 -1
  57. package/dist/client/assets/agent-settings-D8SQ2v4q.js +1 -0
  58. package/dist/client/assets/agent-site-editor-code-BmzYclFK.js +2 -0
  59. package/dist/client/assets/agent-site-editor-content-E9taurPz.js +1 -0
  60. package/dist/client/assets/{agent-site-editor-CX7K6C2n.js → agent-site-editor-hrhFNpsc.js} +1 -1
  61. package/dist/client/assets/agent-site-editor-preview-CeGzwlhY.js +1 -0
  62. package/dist/client/assets/agent-view-H44BT6Z_.js +1 -0
  63. package/dist/client/assets/{agent-view-guard-BmMB2MVl.js → agent-view-guard-DeUqKRVd.js} +1 -1
  64. package/dist/client/assets/{agents-list-B66-8i18.js → agents-list-D52MXlei.js} +1 -1
  65. package/dist/client/assets/{ai-providers-h4jnHvlM.js → ai-providers-d1tex92N.js} +1 -1
  66. package/dist/client/assets/{alert-JW3yZ4C8.js → alert-DdIEyN02.js} +1 -1
  67. package/dist/client/assets/{alert-dialog-CQZCzT1M.js → alert-dialog-7mrPWx4-.js} +1 -1
  68. package/dist/client/assets/{analytics-sections-C3Z8Llin.js → analytics-sections-x64NA-v9.js} +1 -1
  69. package/dist/client/assets/api-keys-BeKH4V3B.js +1 -0
  70. package/dist/client/assets/{api-keys-D_B_H8FW.js → api-keys-DDiOk1xU.js} +1 -1
  71. package/dist/client/assets/{app-editor-BJpwsdbI.js → app-editor-BVC_i6D9.js} +1 -1
  72. package/dist/client/assets/{asset-utils-A30WeCN0.js → asset-utils-DTmB3p5M.js} +1 -1
  73. package/dist/client/assets/{auth-h2DZwiH-.js → auth-51drWU9x.js} +1 -1
  74. package/dist/client/assets/{auth-catchall-D20uwDJd.js → auth-catchall-BA7lTAD6.js} +1 -1
  75. package/dist/client/assets/{auth-entry-BLQBVp3J.js → auth-entry-BIPEnVhH.js} +1 -1
  76. package/dist/client/assets/{auth-split-layout-CRTIZR-N.js → auth-split-layout-2tsdGI-Y.js} +1 -1
  77. package/dist/client/assets/{authenticate-and-persist-oauth-D7GkdBpt.js → authenticate-and-persist-oauth-BObXpjW7.js} +1 -1
  78. package/dist/client/assets/{automation-list-row-DDK8Uluj.js → automation-list-row-DvE0Tb6_.js} +1 -1
  79. package/dist/client/assets/{automation-runs-Bo1Ohbqb.js → automation-runs-BrvXp5xI.js} +1 -1
  80. package/dist/client/assets/{automations-BOl1BSpt.js → automations-5OwoHi29.js} +1 -1
  81. package/dist/client/assets/{autosend-CUhG0ybC.js → autosend-bCA2jLWu.js} +1 -1
  82. package/dist/client/assets/{avatar-Bevxhrde.js → avatar-DxU_Qfsb.js} +1 -1
  83. package/dist/client/assets/{badge-GK4zjdK1.js → badge-bf_kmzeT.js} +1 -1
  84. package/dist/client/assets/{block-document-CdAERbT_.js → block-document-8kF3JQ6O.js} +1 -1
  85. package/dist/client/assets/{blocks-preview-workspace-context-D1Liyd7Z.js → blocks-preview-workspace-context-CsrNXYdY.js} +1 -1
  86. package/dist/client/assets/{blocks-tab-states-DpQqRvxC.js → blocks-tab-states-DPEM7Om6.js} +3 -3
  87. package/dist/client/assets/{blog-schema-B36WQDWo.js → blog-schema-BAVY2dFM.js} +1 -1
  88. package/dist/client/assets/{board-analytics-C3lQEDEp.js → board-analytics-CTT1q3_p.js} +1 -1
  89. package/dist/client/assets/{buckets-I0EeJE4X.js → buckets-a91CXckh.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-Dzlx1Yaa.js → build-improve-prompt-doc-DTR8hwq6.js} +1 -1
  91. package/dist/client/assets/{calendar-DnbkAfPT.js → calendar-DUMOgysv.js} +1 -1
  92. package/dist/client/assets/{capability-load-error-CZt11aLQ.js → capability-load-error-u2H-eGao.js} +1 -1
  93. package/dist/client/assets/{category-editor-gyOxax66.js → category-editor--4-w2BwN.js} +1 -1
  94. package/dist/client/assets/{chart-DDYqAoeo.js → chart-7wylDbu4.js} +1 -1
  95. package/dist/client/assets/{chat-context-BetXm9jo.js → chat-context-B0Aat-dR.js} +1 -1
  96. package/dist/client/assets/{chat-draft-EErQ0bWs.js → chat-draft-N_2yWfLy.js} +1 -1
  97. package/dist/client/assets/{checkbox-Bhzmuon5.js → checkbox-B2OkH7HB.js} +1 -1
  98. package/dist/client/assets/{choose-editor-Cz6hJNPo.js → choose-editor-CQg71sPP.js} +1 -1
  99. package/dist/client/assets/{cli-auth-success-CUyVUJQh.js → cli-auth-success-zCnuKimC.js} +1 -1
  100. package/dist/client/assets/{client-icons-gSVL8EdY.js → client-icons-D4oQWiPN.js} +1 -1
  101. package/dist/client/assets/cms-settings-editor-Cb-kOAs5.js +1 -0
  102. package/dist/client/assets/{collapsible-D4LE69na.js → collapsible-CThwzxzb.js} +1 -1
  103. package/dist/client/assets/{collection-detail-CHeJ7V6q.js → collection-detail-gNhr9yke.js} +1 -1
  104. package/dist/client/assets/{collection-display-button-Dd4pe29i.js → collection-display-button-B8Suk1kH.js} +1 -1
  105. package/dist/client/assets/{collection-search-DoPFVzzz.js → collection-search-B9NRCuDt.js} +1 -1
  106. package/dist/client/assets/{collection-table-wrapper-BN4b4Kk5.js → collection-table-wrapper-BAHMyRqv.js} +1 -1
  107. package/dist/client/assets/{collection-tabs-C6dyYtNY.js → collection-tabs-DP6T5Wck.js} +1 -1
  108. package/dist/client/assets/{column-rules-DX_-SChH.js → column-rules-BaqH9XB-.js} +1 -1
  109. package/dist/client/assets/{combobox-BZ4jxH7P.js → combobox-BM_yhrFm.js} +1 -1
  110. package/dist/client/assets/{command-CeHeWazV.js → command-CnIYQTfR.js} +1 -1
  111. package/dist/client/assets/{companion-mcps-section-o9BNJ9rc.js → companion-mcps-section-nfEMwDNI.js} +1 -1
  112. package/dist/client/assets/{config-gI4XuWBN.js → config-BWhGUBX_.js} +1 -1
  113. package/dist/client/assets/{connect-8qwOOefn.js → connect-47hq8W-H.js} +3 -3
  114. package/dist/client/assets/{connect-layout-CeAOwbE6.js → connect-layout-CfwS1zDx.js} +1 -1
  115. package/dist/client/assets/{connection-CA0FOvB-.js → connection-CGdx0xOO.js} +1 -1
  116. package/dist/client/assets/{connection-card-DEC_cVlm.js → connection-card-C_kbWssc.js} +1 -1
  117. package/dist/client/assets/{connection-detail--XwgBM0m.js → connection-detail-DM5963sl.js} +1 -1
  118. package/dist/client/assets/{connection-form-helpers-DAO6Zz1O.js → connection-form-helpers-DJWBYTHW.js} +1 -1
  119. package/dist/client/assets/connections-B-pHjJlQ.js +1 -0
  120. package/dist/client/assets/{content-tab-CdkhYCtY.js → content-tab-DD2BJqrE.js} +3 -3
  121. package/dist/client/assets/{context-BIMJLj5Y.js → context-D8rXihjF.js} +1 -1
  122. package/dist/client/assets/{context-menu-Cat3hNh-.js → context-menu-CZl6VIdy.js} +1 -1
  123. package/dist/client/assets/{core.esm-e8NU0naD.js → core.esm-D4GiYu9N.js} +1 -1
  124. package/dist/client/assets/{create-organization-dialog-DOuXusg0.js → create-organization-dialog-J8HBVqct.js} +1 -1
  125. package/dist/client/assets/{daily-pulse-rG77P6pM.js → daily-pulse-DveAzfRl.js} +1 -1
  126. package/dist/client/assets/{discover-Bv8G9tM4.js → discover-Bg9vo-Lm.js} +1 -1
  127. package/dist/client/assets/{domain-settings-kAcpDjO3.js → domain-settings-Dvm1qyJQ.js} +1 -1
  128. package/dist/client/assets/{drawer-CrQvk67u.js → drawer-CDiz76QL.js} +1 -1
  129. package/dist/client/assets/{editor-BlVTuSg-.js → editor-DJi6FAMO.js} +1 -1
  130. package/dist/client/assets/{editor-classes-R--V25dQ.js → editor-classes-OhEF-7rB.js} +1 -1
  131. package/dist/client/assets/{empty-state-BebcLJs0.js → empty-state-Dle2RfPB.js} +1 -1
  132. package/dist/client/assets/{empty-state-CSrpQJvC.js → empty-state-GDp-FJ53.js} +1 -1
  133. package/dist/client/assets/{extract-connection-data-BEieCg3Y.js → extract-connection-data-BAC9aj1c.js} +1 -1
  134. package/dist/client/assets/{feature-gate-BzVj5qsH.js → feature-gate-CVXAPW36.js} +1 -1
  135. package/dist/client/assets/{feature-paywall-CPanvzk1.js → feature-paywall-Cnhhg7Eu.js} +1 -1
  136. package/dist/client/assets/{file-explorer-D1WrKaOw.js → file-explorer-BVuD67U0.js} +1 -1
  137. package/dist/client/assets/{file-preview-uAnPHT4m.js → file-preview-BSboogEn.js} +1 -1
  138. package/dist/client/assets/{file-share-button-D3Nyx3Pz.js → file-share-button-Bsxyt6H1.js} +1 -1
  139. package/dist/client/assets/{file-type-icon-CVVFkdRl.js → file-type-icon-B_xAgef1.js} +1 -1
  140. package/dist/client/assets/flat-project-CJ2D_Q9C.js +1 -0
  141. package/dist/client/assets/{folder-icon-dPbm-okm.js → folder-icon-CUh2Y0uc.js} +2 -2
  142. package/dist/client/assets/{form-89nnZdCL.js → form-B3JjDNl0.js} +1 -1
  143. package/dist/client/assets/{general-CPeH19l7.js → general-DGkVuhtY.js} +1 -1
  144. package/dist/client/assets/{home-C1wu1P9U.js → home-B2Vohx6Q.js} +1 -1
  145. package/dist/client/assets/{hosted-publish-feedback-CXp4en4T.js → hosted-publish-feedback-L1KjD-PZ.js} +1 -1
  146. package/dist/client/assets/{icon-button-N-LlUrMx.js → icon-button-CO6DPeSm.js} +1 -1
  147. package/dist/client/assets/{index-J4Q1okGg.js → index-BsNqCvYj.js} +1 -1
  148. package/dist/client/assets/{index-BDJX7cur.js → index-CE9tu-r6.js} +1 -1
  149. package/dist/client/assets/{index-C0fgwI3q.js → index-CT-xO5mU.js} +12 -12
  150. package/dist/client/assets/{index-Cmkf9yPo.js → index-ChzmwfRS.js} +1 -1
  151. package/dist/client/assets/{index-B92sImn4.js → index-Cwl4zuYK.js} +1 -1
  152. package/dist/client/assets/{index-C5ekOpr6.js → index-D1ebKbYg.js} +1 -1
  153. package/dist/client/assets/{index-tBp_2E9X.js → index-DZv1G8tY.js} +2 -2
  154. package/dist/client/assets/{index-DuNCzaaX.js → index-DfWUjlnd.js} +1 -1
  155. package/dist/client/assets/{index-DlldEZfk.js → index-Dtdlaxf0.js} +1 -1
  156. package/dist/client/assets/{index-CvH-YSQi.js → index-LFEwJn7D.js} +3 -3
  157. package/dist/client/assets/{index-CmYetxU7.js → index-ORNG9QCn.js} +1 -1
  158. package/dist/client/assets/{index-BUpSICRQ.js → index-Vwji1Kz7.js} +1 -1
  159. package/dist/client/assets/{index-Ds9yfTiG.js → index-XwYm4B4Q.js} +1 -1
  160. package/dist/client/assets/{index-ERc7XG3u.js → index-nI8IxwWQ.js} +1 -1
  161. package/dist/client/assets/{index-redirect-Dq4MJurz.js → index-redirect-DvHCeECh.js} +1 -1
  162. package/dist/client/assets/{index-BGrwB73e.js → index-vINK1DyA.js} +1 -1
  163. package/dist/client/assets/{infiniteQueryObserver-B1B4GfLk.js → infiniteQueryObserver-etTNdPT4.js} +1 -1
  164. package/dist/client/assets/{infra-billing-1Pa8p2zn.js → infra-billing-BkykIyAX.js} +1 -1
  165. package/dist/client/assets/{input-CjYfcHVc.js → input-76YEArNF.js} +1 -1
  166. package/dist/client/assets/{input-CkKYxy_o.js → input-CQAcg-xS.js} +3 -3
  167. package/dist/client/assets/{integration-icon-C1rMTcOk.js → integration-icon-BObA6Fjt.js} +1 -1
  168. package/dist/client/assets/{jira-icon-DDCo16Ys.js → jira-icon-9vq_h9FR.js} +1 -1
  169. package/dist/client/assets/{label-C-1FhI7h.js → label-BrluvNII.js} +1 -1
  170. package/dist/client/assets/{layout-D4vQNWLr.js → layout-eAQRyL4D.js} +1 -1
  171. package/dist/client/assets/legacy-agents-deep-muRDdXJB.js +1 -0
  172. package/dist/client/assets/{legacy-main-redirect-BtKghlqf.js → legacy-main-redirect-DGsPfjOd.js} +1 -1
  173. package/dist/client/assets/library-r0cXsVYt.js +1 -0
  174. package/dist/client/assets/{library-tab-BdipM2On.js → library-tab-D9ChwWUA.js} +4 -4
  175. package/dist/client/assets/{login-be6pRm5j.js → login-CEaB1wc8.js} +1 -1
  176. package/dist/client/assets/{markdown-BkSpFNrW.js → markdown-nbU4fZeV.js} +1 -1
  177. package/dist/client/assets/{mcp-app-renderer-QUIi2H0z.js → mcp-app-renderer-DtaX8HKa.js} +2 -2
  178. package/dist/client/assets/{mcp-oauth-BbB38lne.js → mcp-oauth-CvxcEkO0.js} +1 -1
  179. package/dist/client/assets/{mcp-oauth-DyUDUw8C.js → mcp-oauth-CybeVIZU.js} +1 -1
  180. package/dist/client/assets/{members-DKLiNQQF.js → members-Dz48oPpV.js} +1 -1
  181. package/dist/client/assets/{memory-1QnS2vTJ.js → memory-CGUcSvZe.js} +2 -2
  182. package/dist/client/assets/{mini-report-page-DacFi6BH.js → mini-report-page-BxlPdKbE.js} +1 -1
  183. package/dist/client/assets/{mock-board-BLtvSF8G.js → mock-board-CS00U3gT.js} +1 -1
  184. package/dist/client/assets/{monaco-editor-BMlikRcI.js → monaco-editor-ODYkz4CG.js} +1 -1
  185. package/dist/client/assets/{monitoring-stats-row-Dc8MGnqM.js → monitoring-stats-row-D7qZPBXm.js} +1 -1
  186. package/dist/client/assets/{multi-select-DsVCccHj.js → multi-select-Bi228wk1.js} +1 -1
  187. package/dist/client/assets/{mustache-DpFJAYqc.js → mustache-CkqnHD0g.js} +1 -1
  188. package/dist/client/assets/{new-project-dialog-zXWY-MCT.js → new-project-dialog-7kQTdhST.js} +1 -1
  189. package/dist/client/assets/{oauth-callback-CJY77iPT.js → oauth-callback-Ckd2uxM1.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-ai-provider-BUHZdRoT.js → oauth-callback-ai-provider-DN7XzrLe.js} +1 -1
  191. package/dist/client/assets/{onboarding-CNPc9Ivt.js → onboarding-DEEDxZr0.js} +1 -1
  192. package/dist/client/assets/{openai-conversation-Dqgmu8bS.js → openai-conversation-CljoGEp6.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-D4DFhBDm.js → optimistic-project-sidebar-views-BUIwO7EF.js} +1 -1
  194. package/dist/client/assets/{order-monitor-day-B56rrrx3.js → order-monitor-day-BZ5hHMPc.js} +1 -1
  195. package/dist/client/assets/{organization-choice-B6-qRdCg.js → organization-choice-Dhrc9AXA.js} +1 -1
  196. package/dist/client/assets/{orgs-jJg-E24G.js → orgs-DqV5tPQQ.js} +1 -1
  197. package/dist/client/assets/{page-seo-form-CYuzj6fM.js → page-seo-form-DmMCQKDa.js} +1 -1
  198. package/dist/client/assets/{pair-DV4065KG.js → pair-hGCBj6Bf.js} +2 -2
  199. package/dist/client/assets/{plan-ladder-DhA3melc.js → plan-ladder-wuxoEN_M.js} +1 -1
  200. package/dist/client/assets/{popover-DS126pVu.js → popover-Dl582i02.js} +1 -1
  201. package/dist/client/assets/{post-calendar-CRAfO8fn.js → post-calendar-anXdgj_D.js} +1 -1
  202. package/dist/client/assets/{post-editor-DCYjm5j2.js → post-editor-CRAxNzps.js} +1 -1
  203. package/dist/client/assets/{preview-content-Dzt_Pohq.js → preview-content-BOom7IQb.js} +1 -1
  204. package/dist/client/assets/{preview-dialog-DhdgCLcC.js → preview-dialog-RgHQnlrS.js} +1 -1
  205. package/dist/client/assets/{preview-panel-B5nh0Epp.js → preview-panel-DVGy_q7c.js} +1 -1
  206. package/dist/client/assets/{preview-tab-CTCM0MIW.js → preview-tab-CpfWq70w.js} +3 -3
  207. package/dist/client/assets/{product-picker-dialog-BGe4djPT.js → product-picker-dialog-O3J75hti.js} +1 -1
  208. package/dist/client/assets/{profile-CGuzHP7e.js → profile-D9R1xPjc.js} +1 -1
  209. package/dist/client/assets/{project-app-view-DrCoxytn.js → project-app-view-UiyiJ74V.js} +1 -1
  210. package/dist/client/assets/{project-feed-DelnfNkL.js → project-feed-D8Lw9t8m.js} +1 -1
  211. package/dist/client/assets/{project-icon-CvV8Q6YE.js → project-icon-BnNtl5g5.js} +1 -1
  212. package/dist/client/assets/project-reports-CmHeXUcl.js +1 -0
  213. package/dist/client/assets/project-tasks-CTXxuDri.js +1 -0
  214. package/dist/client/assets/{projects-DT3ORU-q.js → projects-BTJqRyn4.js} +1 -1
  215. package/dist/client/assets/{projects-empty-state-BZARHzfg.js → projects-empty-state-CmDeezno.js} +1 -1
  216. package/dist/client/assets/{prompts-Do4G-ITH.js → prompts-C5zrM2Gd.js} +1 -1
  217. package/dist/client/assets/record-editor-bEwE5xiL.js +1 -0
  218. package/dist/client/assets/{redirect-editor-CxzdHw22.js → redirect-editor-BIykewpN.js} +1 -1
  219. package/dist/client/assets/{reports-Cnq76NF_.js → reports-CiWmlzUJ.js} +1 -1
  220. package/dist/client/assets/reports-DxyqlhkR.js +1 -0
  221. package/dist/client/assets/{reports-onboarding-ODKma92I.js → reports-onboarding-bzLvsSIR.js} +1 -1
  222. package/dist/client/assets/{reports-tab-Bzh6apns.js → reports-tab-DRs7zEuP.js} +2 -2
  223. package/dist/client/assets/{repositories-CAxUiJcX.js → repositories-b_fQzdNU.js} +1 -1
  224. package/dist/client/assets/{repository-binding-BijbfA18.js → repository-binding-D6iSPygW.js} +1 -1
  225. package/dist/client/assets/{repository-import-picker-jmItzk_h.js → repository-import-picker-Cq7RkZz7.js} +1 -1
  226. package/dist/client/assets/{repository-picker-BbVj6gdf.js → repository-picker-DP_aC1SX.js} +1 -1
  227. package/dist/client/assets/{require-capability-674KCnTY.js → require-capability-DBdY5Dkx.js} +1 -1
  228. package/dist/client/assets/{required-auth-layout-CKwnkfAO.js → required-auth-layout-BeKmZATl.js} +1 -1
  229. package/dist/client/assets/{reset-password-BCoF3eI5.js → reset-password-DKUxFK7V.js} +1 -1
  230. package/dist/client/assets/{resizable-CCHuhdoc.js → resizable-D3Qsp-bc.js} +1 -1
  231. package/dist/client/assets/{resolve-tab-icon-B768ipXO.js → resolve-tab-icon-BV6oV-jC.js} +1 -1
  232. package/dist/client/assets/{review-settings-C4EyFa8X.js → review-settings-Dh-dLavU.js} +1 -1
  233. package/dist/client/assets/roles-VhSYL0QR.js +1 -0
  234. package/dist/client/assets/route-DVwEq84O.js +1 -0
  235. package/dist/client/assets/{route-BtLYVuIu.js → route-H82xw26H.js} +1 -1
  236. package/dist/client/assets/{route-DBnxk8kN.js → route-x75aoHBC.js} +1 -1
  237. package/dist/client/assets/{sandbox-lifecycle-context-DS0P1uU7.js → sandbox-lifecycle-context-CrgjmH-d.js} +1 -1
  238. package/dist/client/assets/{schema-CQd40wIE.js → schema-DUdL_Acl.js} +1 -1
  239. package/dist/client/assets/{schema-B5K7mJxy.js → schema-Dn8UxKpn.js} +1 -1
  240. package/dist/client/assets/{scroll-area-BU-YPBa_.js → scroll-area-Cl3gT6jK.js} +1 -1
  241. package/dist/client/assets/{search-input-BdKTuFx8.js → search-input-DN2LZoYh.js} +1 -1
  242. package/dist/client/assets/{search-toggle-3Bmf79u6.js → search-toggle-BsPfb2Uw.js} +1 -1
  243. package/dist/client/assets/{secret-ciphertext-CTGeP2eY.js → secret-ciphertext-GReF-ueC.js} +1 -1
  244. package/dist/client/assets/{secret-picker-BJG3XofY.js → secret-picker-CnxN1mqa.js} +1 -1
  245. package/dist/client/assets/{secrets-DBF6Bkn7.js → secrets-DbnmA3JM.js} +1 -1
  246. package/dist/client/assets/{sections-editor-D6_PB8-p.js → sections-editor-DD-4JFuT.js} +1 -1
  247. package/dist/client/assets/{select-CcFSUZxO.js → select-CTDMYNay.js} +1 -1
  248. package/dist/client/assets/{select-model-B6X5_-vJ.js → select-model-Dwv9d6Zz.js} +1 -1
  249. package/dist/client/assets/{seo-editor-Buvwn8x0.js → seo-editor-D_O_PFSr.js} +1 -1
  250. package/dist/client/assets/{separator-qFZZ6a9t.js → separator-BUlLfoWt.js} +1 -1
  251. package/dist/client/assets/{settings-tab-BKrgYvHm.js → settings-tab-H1rGpC7y.js} +1 -1
  252. package/dist/client/assets/{sheet-CLRQ5idz.js → sheet-CsM7IsIZ.js} +1 -1
  253. package/dist/client/assets/{shell-layout-DOyfdk1B.js → shell-layout-Dm_OFDNO.js} +1 -1
  254. package/dist/client/assets/site-editor-DH--4LuI.js +1 -0
  255. package/dist/client/assets/{site-editor-toast-D0lpw1v3.js → site-editor-toast-BLu5nEtB.js} +1 -1
  256. package/dist/client/assets/{skills-Ci6YNb5J.js → skills-DrnvbQY8.js} +1 -1
  257. package/dist/client/assets/{slider-C8NN0w2w.js → slider-d81-zJBG.js} +1 -1
  258. package/dist/client/assets/{sortable.esm-CTmVc41V.js → sortable.esm-DS1h28ed.js} +1 -1
  259. package/dist/client/assets/{sso-bqH18xk_.js → sso-BtHHFAhj.js} +1 -1
  260. package/dist/client/assets/{suggestion-DmaNNxTu.js → suggestion-BGfqApUm.js} +1 -1
  261. package/dist/client/assets/{switch-Bc0Yjjeo.js → switch-l6r2CgOr.js} +1 -1
  262. package/dist/client/assets/{symbol-CA44Y3wi.js → symbol-DnAz7Geg.js} +1 -1
  263. package/dist/client/assets/{synced-repos-BZrXE716.js → synced-repos-CgB0u0P9.js} +1 -1
  264. package/dist/client/assets/{tab-icon-glyph-Cimj5606.js → tab-icon-glyph-BSLtOBev.js} +1 -1
  265. package/dist/client/assets/{table-C4zoAnwe.js → table-DbeU8fyk.js} +1 -1
  266. package/dist/client/assets/{tabs-CbekgRp4.js → tabs-Dn19urh6.js} +1 -1
  267. package/dist/client/assets/{task-board-bOMVP2v2.js → task-board-CI0FIG6Y.js} +1 -1
  268. package/dist/client/assets/{task-route-C1eQEYTs.js → task-route-yFp98Tim.js} +1 -1
  269. package/dist/client/assets/{task-status-BQsc0t4g.js → task-status-D5Di_zGz.js} +1 -1
  270. package/dist/client/assets/taskboard-analytics-DNqvMJ9d.js +1 -0
  271. package/dist/client/assets/tasks-B5Ta9prN.js +1 -0
  272. package/dist/client/assets/{tasks-CFE94QzO.js → tasks-Dn6Fadf-.js} +3 -3
  273. package/dist/client/assets/{textarea-BUsm0MSw.js → textarea-BsQtSRL4.js} +1 -1
  274. package/dist/client/assets/{thread-analytics-C02E_l9n.js → thread-analytics-gD3FhCVT.js} +1 -1
  275. package/dist/client/assets/{thread-intent-DA5JZ7Cn.js → thread-intent-BGiWtT9b.js} +1 -1
  276. package/dist/client/assets/{thread-route-DcZ1IT3o.js → thread-route-2Zw5ZOx8.js} +1 -1
  277. package/dist/client/assets/{thread-route-B_zdu-Fm.js → thread-route-Cz2hnjbe.js} +1 -1
  278. package/dist/client/assets/{thread-sheet-body-BObeP4Ci.js → thread-sheet-body-EN7mims4.js} +1 -1
  279. package/dist/client/assets/{time-range-picker-BaugfrTF.js → time-range-picker-DG0be51Y.js} +1 -1
  280. package/dist/client/assets/{toggle-group-Dn6hQTIT.js → toggle-group-BiaXSMqv.js} +1 -1
  281. package/dist/client/assets/{tool-namespace-B_J7125L.js → tool-namespace-CAIbvQDB.js} +1 -1
  282. package/dist/client/assets/{toolbar-icon-button-2VTcLYpQ.js → toolbar-icon-button-8xLbHjb9.js} +1 -1
  283. package/dist/client/assets/{tooltip-oFsrrSMr.js → tooltip-7apN1qsW.js} +1 -1
  284. package/dist/client/assets/{tooltipContext-Wm3e-VfA.js → tooltipContext-C2oFeeD5.js} +1 -1
  285. package/dist/client/assets/{track-BaW3ZMok.js → track-CJ6wQpWk.js} +1 -1
  286. package/dist/client/assets/{types-CO7F4dJ7.js → types-B3o00suf.js} +1 -1
  287. package/dist/client/assets/{url-slug-BR5jNTXT.js → url-slug-AciVwxZY.js} +1 -1
  288. package/dist/client/assets/{usage-stats-Co54_DHN.js → usage-stats-Dfveygkj.js} +1 -1
  289. package/dist/client/assets/{use-ai-providers-CjNYdhyb.js → use-ai-providers-CIqdkSUR.js} +1 -1
  290. package/dist/client/assets/{use-app-takeover-BTW4k99Q.js → use-app-takeover-Dv5fp7cY.js} +1 -1
  291. package/dist/client/assets/{use-automations-Bo0pVeoh.js → use-automations-DGrWINYU.js} +1 -1
  292. package/dist/client/assets/{use-autosave-BSTn7Zuh.js → use-autosave-DhALRW1Z.js} +1 -1
  293. package/dist/client/assets/{use-chat-navigation-w3pVHs9E.js → use-chat-navigation-Bto6Rcca.js} +1 -1
  294. package/dist/client/assets/{use-clock-tick-BGESOFtP.js → use-clock-tick-By2kqq-3.js} +1 -1
  295. package/dist/client/assets/{use-connect-companion-B_UxnyF1.js → use-connect-companion-Dm9-c3zd.js} +1 -1
  296. package/dist/client/assets/{use-connection-DaA2tkO0.js → use-connection-CYWKqRYC.js} +1 -1
  297. package/dist/client/assets/{use-content-sync-OIGtzj6T.js → use-content-sync-C3U3146m.js} +1 -1
  298. package/dist/client/assets/{use-copy-BJSeICa9.js → use-copy-BjH1FU0j.js} +1 -1
  299. package/dist/client/assets/{use-create-virtual-mcp-DJoIrOe3.js → use-create-virtual-mcp-CbMt6_vX.js} +1 -1
  300. package/dist/client/assets/{use-date-fns-locale-CCC_ps1Z.js → use-date-fns-locale-DSY8JG1j.js} +1 -1
  301. package/dist/client/assets/{use-debounced-autosave-BL7Q85j5.js → use-debounced-autosave-VJaoBOYA.js} +1 -1
  302. package/dist/client/assets/{use-debounced-value-BROrqQrX.js → use-debounced-value-q8sYO17j.js} +1 -1
  303. package/dist/client/assets/{use-deco-credits-DnHkEcv_.js → use-deco-credits-XYO4fopb.js} +1 -1
  304. package/dist/client/assets/{use-decopilot-events-BZCzJYhb.js → use-decopilot-events-c6aEriA4.js} +1 -1
  305. package/dist/client/assets/use-delete-connection-B8C9IUKL.js +1 -0
  306. package/dist/client/assets/{use-deployment-admin-Dru_YZsM.js → use-deployment-admin-_69zcMM5.js} +1 -1
  307. package/dist/client/assets/{use-ensure-project-folder-DUyaYFCq.js → use-ensure-project-folder-BSTkwTqx.js} +1 -1
  308. package/dist/client/assets/{use-fast-preview-draft-url-B23Tg9P3.js → use-fast-preview-draft-url-Hspq63Bq.js} +1 -1
  309. package/dist/client/assets/{use-file-configs-CkL9SQDv.js → use-file-configs-BgqM6apf.js} +1 -1
  310. package/dist/client/assets/{use-infinite-scroll-BgNpiOMz.js → use-infinite-scroll-zA1vHSDv.js} +1 -1
  311. package/dist/client/assets/{use-join-requests-B8Vopwe9.js → use-join-requests-CSZR45Rh.js} +1 -1
  312. package/dist/client/assets/{use-main-panel-tabs-BnYwlT7A.js → use-main-panel-tabs-DQU9Drsd.js} +1 -1
  313. package/dist/client/assets/{use-mcp-auth-status-DGvlntxA.js → use-mcp-auth-status-6Hup2mMI.js} +1 -1
  314. package/dist/client/assets/{use-mcp-client-DHK_4E_9.js → use-mcp-client-Cv85PJpG.js} +1 -1
  315. package/dist/client/assets/{use-mcp-prompts-Cqd0IwGP.js → use-mcp-prompts-aALcivOD.js} +1 -1
  316. package/dist/client/assets/{use-mcp-tools-DMV2a5xp.js → use-mcp-tools-D5NzpH6L.js} +1 -1
  317. package/dist/client/assets/{use-members-CKwtNJYT.js → use-members-lQfr5LSq.js} +1 -1
  318. package/dist/client/assets/{use-mobile-Dl3Iv4je.js → use-mobile-BXydQ0yv.js} +1 -1
  319. package/dist/client/assets/{use-navigate-to-agent-BTDeBZM9.js → use-navigate-to-agent-B-SZ4-r5.js} +1 -1
  320. package/dist/client/assets/{use-open-billing-url-D2YT9h4T.js → use-open-billing-url-DB_yalzC.js} +1 -1
  321. package/dist/client/assets/{use-org-auth-client-D3ZLmZdg.js → use-org-auth-client-CMWVQK83.js} +1 -1
  322. package/dist/client/assets/{use-org-fs-KqmN7NpU.js → use-org-fs-C0Ksj3qD.js} +1 -1
  323. package/dist/client/assets/{use-org-repo-syncs-BY2Au3DC.js → use-org-repo-syncs-C-qsjsAJ.js} +1 -1
  324. package/dist/client/assets/{use-org-sso-BfjrzHsf.js → use-org-sso-DOHFNgSV.js} +1 -1
  325. package/dist/client/assets/{use-organization-roles-DVL5NGDC.js → use-organization-roles-BbFM2_FD.js} +1 -1
  326. package/dist/client/assets/{use-organization-settings-BebhLuNn.js → use-organization-settings-B1smoLtY.js} +1 -1
  327. package/dist/client/assets/{use-panel-navigate--cd5iJj4.js → use-panel-navigate-Bn01w_Hx.js} +1 -1
  328. package/dist/client/assets/{use-project-native-view-presence-DNSSDW2H.js → use-project-native-view-presence-CFLUF0Qf.js} +1 -1
  329. package/dist/client/assets/{use-project-scope-CsHS8KXX.js → use-project-scope-BF0yZckc.js} +1 -1
  330. package/dist/client/assets/{use-recent-apps-JuGd7-js.js → use-recent-apps-B4ud4bag.js} +1 -1
  331. package/dist/client/assets/{use-releases-DBLWqZrq.js → use-releases-BUpm7ncP.js} +1 -1
  332. package/dist/client/assets/{use-reports-diagnostic-CW820In7.js → use-reports-diagnostic-VrRXHvbv.js} +1 -1
  333. package/dist/client/assets/{use-secrets-COmAieaF.js → use-secrets-Bu0k0RrL.js} +1 -1
  334. package/dist/client/assets/{use-section-preview-base-CT4B2lML.js → use-section-preview-base-CHZVDRwb.js} +1 -1
  335. package/dist/client/assets/{use-tags-od65sxOC.js → use-tags-DxtJAsCR.js} +1 -1
  336. package/dist/client/assets/{use-task-board-analytics-NHSibEP4.js → use-task-board-analytics-BG0H9zCy.js} +1 -1
  337. package/dist/client/assets/{use-task-board-events-BFp2Pzs7.js → use-task-board-events-BWWqXmZc.js} +1 -1
  338. package/dist/client/assets/{use-task-board-item-prs-CVigK-Hb.js → use-task-board-item-prs-zzkJb4HW.js} +1 -1
  339. package/dist/client/assets/{use-task-board-items-CSfDpf2N.js → use-task-board-items-BCPpXr-q.js} +1 -1
  340. package/dist/client/assets/{use-task-metadata-bCYNnnc2.js → use-task-metadata-MAFDGrlB.js} +1 -1
  341. package/dist/client/assets/{use-thread-analytics-BnCP56Ob.js → use-thread-analytics-B7Cb0iiH.js} +1 -1
  342. package/dist/client/assets/{use-thread-outputs-DyMS3y-r.js → use-thread-outputs-KSvYehUL.js} +1 -1
  343. package/dist/client/assets/useInfiniteQuery-2O3uSnGt.js +1 -0
  344. package/dist/client/assets/{useQueries-CXw3TbZK.js → useQueries-CyVTCr9q.js} +1 -1
  345. package/dist/client/assets/useSuspenseInfiniteQuery-BHRAstD8.js +1 -0
  346. package/dist/client/assets/{users-Bhc6a9IS.js → users-BOIy3x9W.js} +1 -1
  347. package/dist/client/assets/{utils-MYEXKhXX.js → utils-B5k90hLJ.js} +1 -1
  348. package/dist/client/assets/{variant-calendar-DVKjFSU2.js → variant-calendar-SUTJzVzn.js} +1 -1
  349. package/dist/client/assets/{variant-draft-pointer-CDhYA4v-.js → variant-draft-pointer-D4YpxoPE.js} +1 -1
  350. package/dist/client/assets/{view-mode-toggle-DHSj2GFT.js → view-mode-toggle-DBgxPdz8.js} +1 -1
  351. package/dist/client/assets/{virtual-mcp-OiyM0D5n.js → virtual-mcp-SNhYn6sa.js} +1 -1
  352. package/dist/client/assets/{watch-sse-pool-psZoEa-n.js → watch-sse-pool-DjF3RHhV.js} +1 -1
  353. package/dist/client/index.html +1 -1
  354. package/dist/server/server.js +620 -620
  355. package/package.json +1 -1
  356. package/dist/client/assets/add-connection-dialog-ChAFfaoQ.js +0 -1
  357. package/dist/client/assets/agent-app-CPoFWswR.js +0 -1
  358. package/dist/client/assets/agent-deck-rqSyYLY-.js +0 -1
  359. package/dist/client/assets/agent-library-CyvBntSz.js +0 -1
  360. package/dist/client/assets/agent-library-file-DCPl9Shi.js +0 -1
  361. package/dist/client/assets/agent-settings-qpxhnD1V.js +0 -1
  362. package/dist/client/assets/agent-site-editor-code-FZg374RC.js +0 -2
  363. package/dist/client/assets/agent-site-editor-content-D2iHlYoU.js +0 -1
  364. package/dist/client/assets/agent-site-editor-preview-CJIq29Mf.js +0 -1
  365. package/dist/client/assets/agent-view-BVGWcEGr.js +0 -1
  366. package/dist/client/assets/api-keys-CJWxUgSl.js +0 -1
  367. package/dist/client/assets/cms-settings-editor-BNkb63Qj.js +0 -1
  368. package/dist/client/assets/connections-CYwETCs5.js +0 -1
  369. package/dist/client/assets/flat-project-DCf4bILF.js +0 -1
  370. package/dist/client/assets/legacy-agents-deep-DhAsKAuD.js +0 -1
  371. package/dist/client/assets/library-C5ebHSoZ.js +0 -1
  372. package/dist/client/assets/project-reports-C03c33CL.js +0 -1
  373. package/dist/client/assets/project-tasks-BzYq49WI.js +0 -1
  374. package/dist/client/assets/record-editor-Cxf_wT6p.js +0 -1
  375. package/dist/client/assets/reports-DGjLgE_B.js +0 -1
  376. package/dist/client/assets/roles-BkHA-ZTc.js +0 -1
  377. package/dist/client/assets/route-CEufNDgY.js +0 -1
  378. package/dist/client/assets/site-editor-CFhoJ2OQ.js +0 -1
  379. package/dist/client/assets/taskboard-analytics-Dg8eSiw5.js +0 -1
  380. package/dist/client/assets/tasks-D4UFlsYu.js +0 -1
  381. package/dist/client/assets/use-delete-connection-CGMsMj2b.js +0 -1
  382. package/dist/client/assets/useInfiniteQuery-zf3eIx4Y.js +0 -1
  383. package/dist/client/assets/useSuspenseInfiniteQuery-BXQFF6wo.js +0 -1
@@ -1 +1 @@
1
- import{c as v,l as b,j as a,h as w}from"./index-C0fgwI3q.js";import{i as C}from"./SearchMd-4UaIKjot.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
1
+ import{c as v,l as b,j as a,h as w}from"./index-CT-xO5mU.js";import{i as C}from"./SearchMd-CvTMXZGD.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
@@ -1 +1 @@
1
- import{c as S,j as n,l as y,b as D}from"./index-C0fgwI3q.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-C4zoAnwe.js";import{i as W,n as z}from"./ArrowUp-DXBQCjy6.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
1
+ import{c as S,j as n,l as y,b as D}from"./index-CT-xO5mU.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-DbeU8fyk.js";import{i as W,n as z}from"./ArrowUp-D7-4gYyo.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
@@ -1 +1 @@
1
- import{c as b,j as r,n as p,P as j,l as h}from"./index-C0fgwI3q.js";import{B as v}from"./badge-GK4zjdK1.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
1
+ import{c as b,j as r,n as p,P as j,l as h}from"./index-CT-xO5mU.js";import{B as v}from"./badge-bf_kmzeT.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
@@ -1,3 +1,3 @@
1
- import{c as E,a2 as F,o as X,r as q,a9 as J,K as z,m as te,e as se,b as H,l as D,j as o,t as V,B as Y,fr as le,L as U}from"./index-C0fgwI3q.js";import{s as ae}from"./Plus-DdZkIgr1.js";import{s as ne}from"./XClose-CAJwY04D.js";import{B as K}from"./badge-GK4zjdK1.js";import{d as ie,e as oe,c as re,C as ce,a as de,b as me}from"./command-CeHeWazV.js";import{I as ue}from"./icon-button-N-LlUrMx.js";import{c as fe,S as pe,a as xe,b as he,e as ge}from"./sheet-CLRQ5idz.js";import{S as je}from"./switch-Bc0Yjjeo.js";import{T as ke}from"./textarea-BUsm0MSw.js";import{h as Se}from"./task-board-bOMVP2v2.js";import{p as be}from"./use-org-fs-KqmN7NpU.js";import{c as Re}from"./watch-sse-pool-psZoEa-n.js";import{u as Z,a as ve}from"./use-automations-Bo0pVeoh.js";function Be(){const s=E.c(7),{org:e}=F(),a=J();let t;s[0]!==e.id?(t=z.taskBoardPrompts(e.id),s[0]=e.id,s[1]=t):t=s[1];let n;s[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,s[2]=a,s[3]=n):n=s[3];let i;return s[4]!==t||s[5]!==n?(i={queryKey:t,staleTime:6e4,queryFn:n},s[4]=t,s[5]=n,s[6]=i):i=s[6],te(i)}function Ce(){const s=E.c(8),{org:e}=F(),a=J(),t=X();let n;s[0]!==a?(n=async c=>{const{columnKey:r,rules:p}=c;if(p){const d=p.prompt.trim();await(d||p.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:r,prompt:d,skills:p.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:r}))}},s[0]=a,s[1]=n):n=s[1];let i;s[2]!==e||s[3]!==t?(i=()=>t.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[2]=e,s[3]=t,s[4]=i):i=s[4];let l;return s[5]!==n||s[6]!==i?(l={mutationFn:n,onSettled:i},s[5]=n,s[6]=i,s[7]=l):l=s[7],se(l)}const W=()=>0;function Ge(){const s=E.c(6),{org:e}=F(),a=X();let t;s[0]!==e.id||s[1]!==a?(t=()=>a.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[0]=e.id,s[1]=a,s[2]=t):t=s[2];const n=t;let i;s[3]!==e.slug||s[4]!==n?(i=()=>Re.subscribe(e.slug,n,n),s[3]=e.slug,s[4]=n,s[5]=i):i=s[5];const l=i;q.useSyncExternalStore(l,W,W)}function Ne(s){const e=E.c(8),a=Be();let t;e[0]!==s||e[1]!==a.data?(t=a.data?.find(l=>l.columnKey===s),e[0]=s,e[1]=a.data,e[2]=t):t=e[2];let n;e[3]!==a.data?(n=a.data?.find(Te)?.skills??[],e[3]=a.data,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={scope:t,boardSkills:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],i}function Te(s){return s.columnKey===null}function Ve(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function ye(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function Pe(s){const e=E.c(33),{columnKey:a}=s,t=H(),{org:n}=F(),i=ye(a),{update:l}=ve();let c;e[0]!==t?(c=t("taskBoard.columnRules.automationsLabel"),e[0]=t,e[1]=c):c=e[1];let r;e[2]!==c?(r=o.jsx(Q,{children:c}),e[2]=c,e[3]=r):r=e[3];let p;if(e[4]!==i||e[5]!==n.slug||e[6]!==t||e[7]!==l){let S;e[9]!==n.slug||e[10]!==t||e[11]!==l?(S=h=>o.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border px-3 py-2",children:[o.jsxs(U,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:h.virtual_mcp_id,automationId:h.id},className:"flex min-w-0 flex-1 items-center gap-2 text-sm text-foreground hover:underline",children:[o.jsx("span",{className:"truncate",children:h.name}),h.system_key&&o.jsx(K,{variant:"muted",children:t("automations.builtin.badge")})]}),o.jsx(je,{checked:h.active,disabled:l.isPending,onCheckedChange:R=>l.mutate({id:h.id,active:R}),"aria-label":t("taskBoard.columnRules.toggleAutomation",{name:h.name})})]},h.id),e[9]=n.slug,e[10]=t,e[11]=l,e[12]=S):S=e[12],p=i.map(S),e[4]=i,e[5]=n.slug,e[6]=t,e[7]=l,e[8]=p}else p=e[8];let d;e[13]!==i.length||e[14]!==t?(d=i.length===0&&o.jsxs(o.Fragment,{children:[t("taskBoard.columnRules.noAutomations")," "]}),e[13]=i.length,e[14]=t,e[15]=d):d=e[15];const j=n.slug;let f;e[16]!==n.id?(f=le(n.id),e[16]=n.id,e[17]=f):f=e[17];let x;e[18]!==n.slug||e[19]!==f?(x={org:j,agentId:f},e[18]=n.slug,e[19]=f,e[20]=x):x=e[20];let m;e[21]!==t?(m=t("taskBoard.columnRules.addAutomation"),e[21]=t,e[22]=m):m=e[22];let u;e[23]!==x||e[24]!==m?(u=o.jsx(U,{to:"/$org/projects/$agentId/automations",params:x,className:"text-foreground underline underline-offset-2",children:m}),e[23]=x,e[24]=m,e[25]=u):u=e[25];let k;e[26]!==d||e[27]!==u?(k=o.jsxs("p",{className:"text-meta",children:[d,u]}),e[26]=d,e[27]=u,e[28]=k):k=e[28];let b;return e[29]!==k||e[30]!==r||e[31]!==p?(b=o.jsxs("section",{className:"flex flex-col gap-2",children:[r,p,k]}),e[29]=k,e[30]=r,e[31]=p,e[32]=b):b=e[32],b}function Ye(s){const e=E.c(21),{columnKey:a,label:t,open:n,onOpenChange:i}=s,{scope:l,boardSkills:c}=Ne(a);let r;e[0]!==t?(r=o.jsx(fe,{className:"border-b",children:o.jsx(pe,{children:t})}),e[0]=t,e[1]=r):r=e[1];const p=l?.prompt??"";let d;e[2]!==l?.skills?(d=l?.skills??[],e[2]=l?.skills,e[3]=d):d=e[3];let j;e[4]!==p||e[5]!==d?(j={prompt:p,skills:d},e[4]=p,e[5]=d,e[6]=j):j=e[6];let f;e[7]!==i?(f=()=>i(!1),e[7]=i,e[8]=f):f=e[8];let x;e[9]!==c||e[10]!==a||e[11]!==j||e[12]!==f?(x=o.jsx($e,{columnKey:a,initial:j,boardSkills:c,onDone:f}),e[9]=c,e[10]=a,e[11]=j,e[12]=f,e[13]=x):x=e[13];let m;e[14]!==r||e[15]!==x?(m=o.jsxs(xe,{className:"w-full gap-0 sm:max-w-md","aria-describedby":void 0,children:[r,x]}),e[14]=r,e[15]=x,e[16]=m):m=e[16];let u;return e[17]!==n||e[18]!==i||e[19]!==m?(u=o.jsx(o.Fragment,{children:o.jsx(he,{open:n,onOpenChange:i,children:m})}),e[17]=n,e[18]=i,e[19]=m,e[20]=u):u=e[20],u}function $e(s){const e=E.c(58),{columnKey:a,initial:t,boardSkills:n,onDone:i}=s,l=H(),c=Ce(),[r,p]=q.useState(t.prompt),[d,j]=q.useState(t.skills);let f;e[0]!==a||e[1]!==t.prompt||e[2]!==t.skills||e[3]!==i||e[4]!==r||e[5]!==c||e[6]!==d||e[7]!==l?(f=()=>c.mutate({columnKey:a,...r!==t.prompt||d.join(`
1
+ import{c as E,a2 as F,o as X,r as q,a9 as J,K as z,m as te,e as se,b as H,l as D,j as o,t as V,B as Y,fs as le,L as U}from"./index-CT-xO5mU.js";import{s as ae}from"./Plus-D1ujaH4P.js";import{s as ne}from"./XClose-o28PhQrm.js";import{B as K}from"./badge-bf_kmzeT.js";import{d as ie,e as oe,c as re,C as ce,a as de,b as me}from"./command-CnIYQTfR.js";import{I as ue}from"./icon-button-CO6DPeSm.js";import{c as fe,S as pe,a as xe,b as he,e as ge}from"./sheet-CsM7IsIZ.js";import{S as je}from"./switch-l6r2CgOr.js";import{T as ke}from"./textarea-BsQtSRL4.js";import{h as Se}from"./task-board-CI0FIG6Y.js";import{p as be}from"./use-org-fs-C0Ksj3qD.js";import{c as Re}from"./watch-sse-pool-DjF3RHhV.js";import{u as Z,a as ve}from"./use-automations-DGrWINYU.js";function Be(){const s=E.c(7),{org:e}=F(),a=J();let t;s[0]!==e.id?(t=z.taskBoardPrompts(e.id),s[0]=e.id,s[1]=t):t=s[1];let n;s[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,s[2]=a,s[3]=n):n=s[3];let i;return s[4]!==t||s[5]!==n?(i={queryKey:t,staleTime:6e4,queryFn:n},s[4]=t,s[5]=n,s[6]=i):i=s[6],te(i)}function Ce(){const s=E.c(8),{org:e}=F(),a=J(),t=X();let n;s[0]!==a?(n=async c=>{const{columnKey:r,rules:p}=c;if(p){const d=p.prompt.trim();await(d||p.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:r,prompt:d,skills:p.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:r}))}},s[0]=a,s[1]=n):n=s[1];let i;s[2]!==e||s[3]!==t?(i=()=>t.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[2]=e,s[3]=t,s[4]=i):i=s[4];let l;return s[5]!==n||s[6]!==i?(l={mutationFn:n,onSettled:i},s[5]=n,s[6]=i,s[7]=l):l=s[7],se(l)}const W=()=>0;function Ge(){const s=E.c(6),{org:e}=F(),a=X();let t;s[0]!==e.id||s[1]!==a?(t=()=>a.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[0]=e.id,s[1]=a,s[2]=t):t=s[2];const n=t;let i;s[3]!==e.slug||s[4]!==n?(i=()=>Re.subscribe(e.slug,n,n),s[3]=e.slug,s[4]=n,s[5]=i):i=s[5];const l=i;q.useSyncExternalStore(l,W,W)}function Ne(s){const e=E.c(8),a=Be();let t;e[0]!==s||e[1]!==a.data?(t=a.data?.find(l=>l.columnKey===s),e[0]=s,e[1]=a.data,e[2]=t):t=e[2];let n;e[3]!==a.data?(n=a.data?.find(Te)?.skills??[],e[3]=a.data,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={scope:t,boardSkills:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],i}function Te(s){return s.columnKey===null}function Ve(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function ye(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function Pe(s){const e=E.c(33),{columnKey:a}=s,t=H(),{org:n}=F(),i=ye(a),{update:l}=ve();let c;e[0]!==t?(c=t("taskBoard.columnRules.automationsLabel"),e[0]=t,e[1]=c):c=e[1];let r;e[2]!==c?(r=o.jsx(Q,{children:c}),e[2]=c,e[3]=r):r=e[3];let p;if(e[4]!==i||e[5]!==n.slug||e[6]!==t||e[7]!==l){let S;e[9]!==n.slug||e[10]!==t||e[11]!==l?(S=h=>o.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border px-3 py-2",children:[o.jsxs(U,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:h.virtual_mcp_id,automationId:h.id},className:"flex min-w-0 flex-1 items-center gap-2 text-sm text-foreground hover:underline",children:[o.jsx("span",{className:"truncate",children:h.name}),h.system_key&&o.jsx(K,{variant:"muted",children:t("automations.builtin.badge")})]}),o.jsx(je,{checked:h.active,disabled:l.isPending,onCheckedChange:R=>l.mutate({id:h.id,active:R}),"aria-label":t("taskBoard.columnRules.toggleAutomation",{name:h.name})})]},h.id),e[9]=n.slug,e[10]=t,e[11]=l,e[12]=S):S=e[12],p=i.map(S),e[4]=i,e[5]=n.slug,e[6]=t,e[7]=l,e[8]=p}else p=e[8];let d;e[13]!==i.length||e[14]!==t?(d=i.length===0&&o.jsxs(o.Fragment,{children:[t("taskBoard.columnRules.noAutomations")," "]}),e[13]=i.length,e[14]=t,e[15]=d):d=e[15];const j=n.slug;let f;e[16]!==n.id?(f=le(n.id),e[16]=n.id,e[17]=f):f=e[17];let x;e[18]!==n.slug||e[19]!==f?(x={org:j,agentId:f},e[18]=n.slug,e[19]=f,e[20]=x):x=e[20];let m;e[21]!==t?(m=t("taskBoard.columnRules.addAutomation"),e[21]=t,e[22]=m):m=e[22];let u;e[23]!==x||e[24]!==m?(u=o.jsx(U,{to:"/$org/projects/$agentId/automations",params:x,className:"text-foreground underline underline-offset-2",children:m}),e[23]=x,e[24]=m,e[25]=u):u=e[25];let k;e[26]!==d||e[27]!==u?(k=o.jsxs("p",{className:"text-meta",children:[d,u]}),e[26]=d,e[27]=u,e[28]=k):k=e[28];let b;return e[29]!==k||e[30]!==r||e[31]!==p?(b=o.jsxs("section",{className:"flex flex-col gap-2",children:[r,p,k]}),e[29]=k,e[30]=r,e[31]=p,e[32]=b):b=e[32],b}function Ye(s){const e=E.c(21),{columnKey:a,label:t,open:n,onOpenChange:i}=s,{scope:l,boardSkills:c}=Ne(a);let r;e[0]!==t?(r=o.jsx(fe,{className:"border-b",children:o.jsx(pe,{children:t})}),e[0]=t,e[1]=r):r=e[1];const p=l?.prompt??"";let d;e[2]!==l?.skills?(d=l?.skills??[],e[2]=l?.skills,e[3]=d):d=e[3];let j;e[4]!==p||e[5]!==d?(j={prompt:p,skills:d},e[4]=p,e[5]=d,e[6]=j):j=e[6];let f;e[7]!==i?(f=()=>i(!1),e[7]=i,e[8]=f):f=e[8];let x;e[9]!==c||e[10]!==a||e[11]!==j||e[12]!==f?(x=o.jsx($e,{columnKey:a,initial:j,boardSkills:c,onDone:f}),e[9]=c,e[10]=a,e[11]=j,e[12]=f,e[13]=x):x=e[13];let m;e[14]!==r||e[15]!==x?(m=o.jsxs(xe,{className:"w-full gap-0 sm:max-w-md","aria-describedby":void 0,children:[r,x]}),e[14]=r,e[15]=x,e[16]=m):m=e[16];let u;return e[17]!==n||e[18]!==i||e[19]!==m?(u=o.jsx(o.Fragment,{children:o.jsx(he,{open:n,onOpenChange:i,children:m})}),e[17]=n,e[18]=i,e[19]=m,e[20]=u):u=e[20],u}function $e(s){const e=E.c(58),{columnKey:a,initial:t,boardSkills:n,onDone:i}=s,l=H(),c=Ce(),[r,p]=q.useState(t.prompt),[d,j]=q.useState(t.skills);let f;e[0]!==a||e[1]!==t.prompt||e[2]!==t.skills||e[3]!==i||e[4]!==r||e[5]!==c||e[6]!==d||e[7]!==l?(f=()=>c.mutate({columnKey:a,...r!==t.prompt||d.join(`
2
2
  `)!==t.skills.join(`
3
3
  `)?{rules:{prompt:r,skills:d}}:{}},{onSuccess:()=>{V.success(l("taskBoard.columnRules.saved")),i()},onError:g=>V.error(g instanceof Error?g.message:l("taskBoard.columnRules.failed"))}),e[0]=a,e[1]=t.prompt,e[2]=t.skills,e[3]=i,e[4]=r,e[5]=c,e[6]=d,e[7]=l,e[8]=f):f=e[8];const x=f;let m;e[9]!==a?(m=o.jsx(Pe,{columnKey:a}),e[9]=a,e[10]=m):m=e[10];let u;e[11]!==l?(u=l("taskBoard.columnRules.promptLabel"),e[11]=l,e[12]=u):u=e[12];let k;e[13]!==u?(k=o.jsx(Q,{children:u}),e[13]=u,e[14]=k):k=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=g=>p(g.target.value),e[15]=b):b=e[15];let S;e[16]!==l?(S=l("taskBoard.columnRules.promptPlaceholder"),e[16]=l,e[17]=S):S=e[17];let h;e[18]!==l?(h=l("taskBoard.columnRules.promptLabel"),e[18]=l,e[19]=h):h=e[19];let R;e[20]!==r||e[21]!==S||e[22]!==h?(R=o.jsx(ke,{value:r,rows:5,maxLength:Se,onChange:b,placeholder:S,"aria-label":h}),e[20]=r,e[21]=S,e[22]=h,e[23]=R):R=e[23];let v;e[24]!==k||e[25]!==R?(v=o.jsxs("section",{className:"flex flex-col gap-2",children:[k,R]}),e[24]=k,e[25]=R,e[26]=v):v=e[26];let C;e[27]!==l?(C=l("taskBoard.columnRules.skillsLabel"),e[27]=l,e[28]=C):C=e[28];let N;e[29]!==C?(N=o.jsx(Q,{children:C}),e[29]=C,e[30]=N):N=e[30];let T;e[31]!==n||e[32]!==d?(T=o.jsx(Ee,{fill:!0,value:d,onChange:j,inherited:n}),e[31]=n,e[32]=d,e[33]=T):T=e[33];let y;e[34]!==N||e[35]!==T?(y=o.jsxs("section",{className:"flex min-h-64 flex-1 flex-col gap-2",children:[N,T]}),e[34]=N,e[35]=T,e[36]=y):y=e[36];let A;e[37]!==y||e[38]!==m||e[39]!==v?(A=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-4",children:[m,v,y]}),e[37]=y,e[38]=m,e[39]=v,e[40]=A):A=e[40];let B;e[41]!==l?(B=l("taskBoard.columnRules.cancel"),e[41]=l,e[42]=B):B=e[42];let w;e[43]!==i||e[44]!==B?(w=o.jsx(Y,{variant:"outline",onClick:i,children:B}),e[43]=i,e[44]=B,e[45]=w):w=e[45];const O=c.isPending;let P;e[46]!==l?(P=l("taskBoard.columnRules.save"),e[46]=l,e[47]=P):P=e[47];let I;e[48]!==c.isPending||e[49]!==x||e[50]!==P?(I=o.jsx(Y,{disabled:O,onClick:x,children:P}),e[48]=c.isPending,e[49]=x,e[50]=P,e[51]=I):I=e[51];let $;e[52]!==w||e[53]!==I?($=o.jsxs(ge,{className:"flex-row justify-end border-t",children:[w,I]}),e[52]=w,e[53]=I,e[54]=$):$=e[54];let L;return e[55]!==A||e[56]!==$?(L=o.jsxs(o.Fragment,{children:[A,$]}),e[55]=A,e[56]=$,e[57]=L):L=e[57],L}function Q(s){const e=E.c(2),{children:a}=s;let t;return e[0]!==a?(t=o.jsx("h3",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=t):t=e[1],t}const Ae=[];function Ee(s){const e=E.c(71),{value:a,onChange:t,inherited:n,fill:i}=s,l=n===void 0?Ae:n,c=i===void 0?!1:i,r=H(),p=be();let d;e[0]!==p.data?(d=B=>p.data?.find(w=>w.id===B)?.name??B,e[0]=p.data,e[1]=d):d=e[1];const j=d;let f,x,m,u,k,b,S,h,R,v;if(e[2]!==p.data||e[3]!==c||e[4]!==l||e[5]!==j||e[6]!==t||e[7]!==r||e[8]!==a){let B;e[19]!==l||e[20]!==a?(B=g=>!g.disableModelInvocation&&!a.includes(g.id)&&!l.includes(g.id),e[19]=l,e[20]=a,e[21]=B):B=e[21];const w=(p.data??[]).filter(B);if(e[22]!==c||e[23]!==l||e[24]!==j||e[25]!==t||e[26]!==r||e[27]!==a){let g;e[30]!==l?(g=_=>!l.includes(_),e[30]=l,e[31]=g):g=e[31];const G=a.filter(g),M=c&&"min-h-0 flex-1";e[32]!==M?(v=D("flex flex-col gap-2",M),e[32]=M,e[33]=v):v=e[33],u=G.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:G.map(_=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[j(_),o.jsx(ue,{label:r("taskBoard.columnRules.removeSkill",{skill:j(_)}),onClick:()=>t(a.filter(ee=>ee!==_)),className:"size-5 text-muted-foreground",children:o.jsx(ne,{size:12})})]},_))}),e[22]=c,e[23]=l,e[24]=j,e[25]=t,e[26]=r,e[27]=a,e[28]=u,e[29]=v}else u=e[28],v=e[29];m=ie;const O=c&&"min-h-0 flex-1";e[34]!==O?(h=D("h-auto border",O),e[34]=O,e[35]=h):h=e[35];let P;e[36]!==r?(P=r("taskBoard.columnRules.searchSkills"),e[36]=r,e[37]=P):P=e[37],e[38]!==P?(R=o.jsx(oe,{placeholder:P,className:"h-9"}),e[38]=P,e[39]=R):R=e[39],x=re;const I=c?"max-h-none flex-1":"max-h-56";e[40]!==I?(b=D(I),e[40]=I,e[41]=b):b=e[41];let $;e[42]!==r?($=r("taskBoard.columnRules.noSkills"),e[42]=r,e[43]=$):$=e[43],e[44]!==$?(S=o.jsx(ce,{children:$}),e[44]=$,e[45]=S):S=e[45],f=de;let L;e[46]!==t||e[47]!==a?(L=g=>o.jsxs(me,{value:`${g.name} ${g.id}`,onSelect:()=>t([...a,g.id]),children:[o.jsx(ae,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:g.name}),g.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:g.description})]})]},g.id),e[46]=t,e[47]=a,e[48]=L):L=e[48],k=w.map(L),e[2]=p.data,e[3]=c,e[4]=l,e[5]=j,e[6]=t,e[7]=r,e[8]=a,e[9]=f,e[10]=x,e[11]=m,e[12]=u,e[13]=k,e[14]=b,e[15]=S,e[16]=h,e[17]=R,e[18]=v}else f=e[9],x=e[10],m=e[11],u=e[12],k=e[13],b=e[14],S=e[15],h=e[16],R=e[17],v=e[18];let C;e[49]!==f||e[50]!==k?(C=o.jsx(f,{children:k}),e[49]=f,e[50]=k,e[51]=C):C=e[51];let N;e[52]!==x||e[53]!==C||e[54]!==b||e[55]!==S?(N=o.jsxs(x,{className:b,children:[S,C]}),e[52]=x,e[53]=C,e[54]=b,e[55]=S,e[56]=N):N=e[56];let T;e[57]!==m||e[58]!==N||e[59]!==h||e[60]!==R?(T=o.jsxs(m,{className:h,children:[R,N]}),e[57]=m,e[58]=N,e[59]=h,e[60]=R,e[61]=T):T=e[61];let y;e[62]!==l||e[63]!==j||e[64]!==r?(y=l.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:r("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:l.map(B=>o.jsx(K,{variant:"muted",children:j(B)},B))})]}),e[62]=l,e[63]=j,e[64]=r,e[65]=y):y=e[65];let A;return e[66]!==u||e[67]!==T||e[68]!==y||e[69]!==v?(A=o.jsxs("div",{className:v,children:[u,T,y]}),e[66]=u,e[67]=T,e[68]=y,e[69]=v,e[70]=A):A=e[70],A}export{Ye as C,Ee as S,Ve as a,Be as b,Ce as c,Ge as u};
@@ -1 +1 @@
1
- import{c as Q,r as U,j as s,l as S,B as W,ah as X}from"./index-C0fgwI3q.js";import{i as Y}from"./ChevronSelectorVertical-Cpo2eTAs.js";import{e as Z,C as _,b as ee,a as se,c as te,d as le}from"./command-CeHeWazV.js";import{a as ae,P as oe,b as re}from"./popover-DS126pVu.js";function de(z){const e=Q.c(48),{options:C,value:l,onChange:j,placeholder:A,triggerClassName:F,contentClassName:w,width:G,renderTrigger:L,renderItem:r,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n}=z,D=A===void 0?"Select...":A,H=G===void 0?"w-[200px]":G,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==l?(g=a=>a.value===l,e[0]=l,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=a=>{J(a),a||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,M=oe,R=ae,K=!0,$=L?s.jsx("div",{className:S("cursor-pointer",F),children:L(I)}):s.jsxs(W,{variant:"outline",role:"combobox",className:S("justify-between",H,F),children:[I?I.label:D,s.jsx(Y,{className:"opacity-50"})]});let c;e[4]!==R||e[5]!==$?(c=s.jsx(R,{asChild:K,children:$}),e[4]=R,e[5]=$,e[6]=c):c=e[6];let i;e[7]!==w?(i=S("p-0",w),e[7]=w,e[8]=i):i=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let m;e[10]!==E||e[11]!==t?(m=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=m):m=e[12];let d;e[13]!==n||e[14]!==T||e[15]!==m?(d=s.jsx(Z,{placeholder:T,className:"h-9",onValueChange:n,action:m}),e[13]=n,e[14]=T,e[15]=m,e[16]=d):d=e[16];let h;e[17]!==O?(h=s.jsx(_,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==r||e[22]!==t||e[23]!==l){let a;e[25]!==j||e[26]!==r||e[27]!==t||e[28]!==l?(a=o=>{const q=l===o.value;return s.jsx(ee,{value:o.label,onSelect:()=>{j(o.value===l?"":o.value),t(!1)},children:r?r(o,q):s.jsxs(s.Fragment,{children:[o.label,s.jsx(X,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},o.value)},e[25]=j,e[26]=r,e[27]=t,e[28]=l,e[29]=a):a=e[29],f=C.map(a),e[19]=j,e[20]=C,e[21]=r,e[22]=t,e[23]=l,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(se,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(te,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==d||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[d,u]}),e[35]=P,e[36]=d,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==i||e[40]!==x?(v=s.jsx(re,{className:i,style:y,children:x}),e[39]=i,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==M||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==c?(N=s.jsxs(M,{open:B,onOpenChange:t,children:[c,v]}),e[42]=M,e[43]=B,e[44]=t,e[45]=v,e[46]=c,e[47]=N):N=e[47],N}export{de as C};
1
+ import{c as Q,r as U,j as s,l as S,B as W,ah as X}from"./index-CT-xO5mU.js";import{i as Y}from"./ChevronSelectorVertical-D_0iGG6d.js";import{e as Z,C as _,b as ee,a as se,c as te,d as le}from"./command-CnIYQTfR.js";import{a as ae,P as oe,b as re}from"./popover-Dl582i02.js";function de(z){const e=Q.c(48),{options:C,value:l,onChange:j,placeholder:A,triggerClassName:F,contentClassName:w,width:G,renderTrigger:L,renderItem:r,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n}=z,D=A===void 0?"Select...":A,H=G===void 0?"w-[200px]":G,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==l?(g=a=>a.value===l,e[0]=l,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=a=>{J(a),a||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,M=oe,R=ae,K=!0,$=L?s.jsx("div",{className:S("cursor-pointer",F),children:L(I)}):s.jsxs(W,{variant:"outline",role:"combobox",className:S("justify-between",H,F),children:[I?I.label:D,s.jsx(Y,{className:"opacity-50"})]});let c;e[4]!==R||e[5]!==$?(c=s.jsx(R,{asChild:K,children:$}),e[4]=R,e[5]=$,e[6]=c):c=e[6];let i;e[7]!==w?(i=S("p-0",w),e[7]=w,e[8]=i):i=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let m;e[10]!==E||e[11]!==t?(m=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=m):m=e[12];let d;e[13]!==n||e[14]!==T||e[15]!==m?(d=s.jsx(Z,{placeholder:T,className:"h-9",onValueChange:n,action:m}),e[13]=n,e[14]=T,e[15]=m,e[16]=d):d=e[16];let h;e[17]!==O?(h=s.jsx(_,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==r||e[22]!==t||e[23]!==l){let a;e[25]!==j||e[26]!==r||e[27]!==t||e[28]!==l?(a=o=>{const q=l===o.value;return s.jsx(ee,{value:o.label,onSelect:()=>{j(o.value===l?"":o.value),t(!1)},children:r?r(o,q):s.jsxs(s.Fragment,{children:[o.label,s.jsx(X,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},o.value)},e[25]=j,e[26]=r,e[27]=t,e[28]=l,e[29]=a):a=e[29],f=C.map(a),e[19]=j,e[20]=C,e[21]=r,e[22]=t,e[23]=l,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(se,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(te,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==d||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[d,u]}),e[35]=P,e[36]=d,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==i||e[40]!==x?(v=s.jsx(re,{className:i,style:y,children:x}),e[39]=i,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==M||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==c?(N=s.jsxs(M,{open:B,onOpenChange:t,children:[c,v]}),e[42]=M,e[43]=B,e[44]=t,e[45]=v,e[46]=c,e[47]=N):N=e[47],N}export{de as C};
@@ -1 +1 @@
1
- import{c as v,l as h,j as r,aU as b,D as j,v as w,aM as y,s as C,q as z}from"./index-C0fgwI3q.js";import{_ as k}from"./index-ERc7XG3u.js";import{i as D}from"./SearchMd-4UaIKjot.js";function $(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within:border-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function q(a){const e=v.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(k.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function F(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function H(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{q as C,B as a,H as b,V as c,$ as d,R as e,L as f,I as g,F as h};
1
+ import{c as v,l as h,j as r,aU as b,D as j,v as w,aM as y,s as C,q as z}from"./index-CT-xO5mU.js";import{_ as k}from"./index-nI8IxwWQ.js";import{i as D}from"./SearchMd-CvTMXZGD.js";function $(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within:border-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function q(a){const e=v.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(k.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function F(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function H(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{q as C,B as a,H as b,V as c,$ as d,R as e,L as f,I as g,F as h};
@@ -1 +1 @@
1
- import{c as _,r as T,l as Q,j as s,Q as Y,H as Z,b as U,a as ee,J as te,B as ne}from"./index-C0fgwI3q.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-DHK_4E_9.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-B_UxnyF1.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const z="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:z,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:z,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[F,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==F||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),J=m.filter(xe),G=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(G),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:F,onAutoOpenConfigHandled:()=>D(H=>H===h.fieldKey?null:H),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=z,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...J].map(W)}e[17]=F,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
1
+ import{c as _,r as T,l as Q,j as s,Q as Y,H as Z,b as U,a as ee,J as te,B as ne}from"./index-CT-xO5mU.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-Cv85PJpG.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-Dm9-c3zd.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const z="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:z,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:z,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[F,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==F||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),J=m.filter(xe),G=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(G),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:F,onAutoOpenConfigHandled:()=>D(H=>H===h.fieldKey?null:H),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=z,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...J].map(W)}e[17]=F,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
@@ -1 +1 @@
1
- import{p as C,m as b}from"./core.esm-e8NU0naD.js";import{i as h}from"./AlertCircle-D9thrIug.js";import{aX as x,aY as k,aZ as f,a_ as _,t as K,a$ as v,b0 as B,aJ as S,a7 as A,x as w,B as O,b1 as I}from"./agent-icon-vGqJXXmm.js";import{b0 as L,aN as T,d9 as g,a6 as D}from"./index-C0fgwI3q.js";import{i as E}from"./CheckCircle-DZh-tLmy.js";import{s as R}from"./Image01-aOLGRsh8.js";import{e as $,C as l}from"./task-board-bOMVP2v2.js";const M=L("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),P=["ended_after_delivery","superseded"];function U(e){return!!e&&P.includes(e)}function ee(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function te(e){return e.failureKind!=="superseded"}function p(e){return e.threads.some(t=>t.status==="requires_action")}function ae(e){return e.status==="in_review"&&!e.assigneeId}function se(e){return p(e)}function ne(e){return e.status==="in_progress"&&p(e)?"text-warning animate-pulse":N(e.status).iconClassName}function oe(e){return e.threads.some(a=>a.status==="in_progress")?"running":e.threads.some(a=>a.status==="failed"&&!U(a.failureKind))?"failed":null}function re(e,t,a){const s=e.findIndex(n=>n.id===a),o=t===a?e[s+1]?.id??null:t,r=e.filter(n=>n.id!==a),u=o?r.findIndex(n=>n.id===o):-1,d=u===-1?r.length:u,i=r[d-1],c=r[d];return i&&c?(i.sortOrder+c.sortOrder)/2:i?i.sortOrder+1:c?c.sortOrder-1:0}function ie(e,t){return Array.from({length:t},(a,s)=>e-(t-1-s)*1e-4)}const F=["archived"],y={triage:{labelKey:"taskBoard.config.statusBacklog",icon:h,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:g,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:A,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:R,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:S,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:B,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:v,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:K,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:E,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:T,iconClassName:"text-muted-foreground"}},H={icon:g,iconClassName:"text-muted-foreground"},Y=y;function N(e){return Y[e]??H}function ce(e,t){const a=y[e];return{label:a?t(a.labelKey):e,visual:N(e)}}const le=["bug","feature","chore","spike","security"],ue={bug:{labelKey:"taskBoard.config.typeBug",icon:M,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:I,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:O,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:w,iconClassName:"text-yellow-500"},security:{labelKey:"taskBoard.config.typeSecurity",icon:D,iconClassName:"text-purple-500"}};function de({shownLanes:e}){const t=l.filter(s=>F.includes(s)),a=t.filter(s=>!e.includes(s));return{lanes:l.filter(s=>!a.includes(s)),hidden:a,hideable:t}}const q=44;function fe({lanes:e,collapsed:t,hasHiddenTail:a}){const s=e.map(o=>t.includes(o)?`${q}px`:"minmax(280px, 1fr)");return a&&s.push("280px"),s.join(" ")}const m="lane:",me=e=>{const t=C(e);return t.length>0?t:b(e)};function G(e){return l.includes(e)}function ge({overId:e,statusOf:t}){if(e===void 0)return null;const a=String(e),s=a.startsWith(m)?a.slice(m.length):t(a);return s!==void 0&&G(s)?s:null}function pe(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ye=["none","low","medium","high","urgent"],Ne={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:f,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:_,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500",icon:f,iconClassName:"text-blue-500"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:k,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:x,iconClassName:"text-destructive"}};function Ce(e,t=Date.now()){const a=new Date(e).getTime();return Number.isNaN(a)?null:a<t?"overdue":a-t<=V*864e5?"soon":null}const V=3;function be(e){return`color-mix(in oklab, ${e??$} var(--user-color-strength), transparent)`}export{F as H,m as L,ye as P,y as S,le as T,ae as a,Ne as b,ue as c,N as d,te as e,ee as f,U as g,oe as h,p as i,de as j,me as k,ce as l,fe as m,se as n,re as o,ge as p,Ce as q,ie as r,ne as s,be as t,pe as u};
1
+ import{p as C,m as b}from"./core.esm-D4GiYu9N.js";import{i as h}from"./AlertCircle-D-2plD68.js";import{aX as x,aY as k,aZ as f,a_ as _,t as K,a$ as v,b0 as B,aJ as S,a7 as A,x as w,B as O,b1 as I}from"./agent-icon-2gpOTQkx.js";import{b0 as L,aN as T,d9 as g,a6 as D}from"./index-CT-xO5mU.js";import{i as E}from"./CheckCircle-BCSEWiqx.js";import{s as R}from"./Image01-CMp-2bfg.js";import{e as $,C as l}from"./task-board-CI0FIG6Y.js";const M=L("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),P=["ended_after_delivery","superseded"];function U(e){return!!e&&P.includes(e)}function ee(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function te(e){return e.failureKind!=="superseded"}function p(e){return e.threads.some(t=>t.status==="requires_action")}function ae(e){return e.status==="in_review"&&!e.assigneeId}function se(e){return p(e)}function ne(e){return e.status==="in_progress"&&p(e)?"text-warning animate-pulse":N(e.status).iconClassName}function oe(e){return e.threads.some(a=>a.status==="in_progress")?"running":e.threads.some(a=>a.status==="failed"&&!U(a.failureKind))?"failed":null}function re(e,t,a){const s=e.findIndex(n=>n.id===a),o=t===a?e[s+1]?.id??null:t,r=e.filter(n=>n.id!==a),u=o?r.findIndex(n=>n.id===o):-1,d=u===-1?r.length:u,i=r[d-1],c=r[d];return i&&c?(i.sortOrder+c.sortOrder)/2:i?i.sortOrder+1:c?c.sortOrder-1:0}function ie(e,t){return Array.from({length:t},(a,s)=>e-(t-1-s)*1e-4)}const F=["archived"],y={triage:{labelKey:"taskBoard.config.statusBacklog",icon:h,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:g,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:A,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:R,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:S,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:B,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:v,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:K,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:E,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:T,iconClassName:"text-muted-foreground"}},H={icon:g,iconClassName:"text-muted-foreground"},Y=y;function N(e){return Y[e]??H}function ce(e,t){const a=y[e];return{label:a?t(a.labelKey):e,visual:N(e)}}const le=["bug","feature","chore","spike","security"],ue={bug:{labelKey:"taskBoard.config.typeBug",icon:M,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:I,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:O,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:w,iconClassName:"text-yellow-500"},security:{labelKey:"taskBoard.config.typeSecurity",icon:D,iconClassName:"text-purple-500"}};function de({shownLanes:e}){const t=l.filter(s=>F.includes(s)),a=t.filter(s=>!e.includes(s));return{lanes:l.filter(s=>!a.includes(s)),hidden:a,hideable:t}}const q=44;function fe({lanes:e,collapsed:t,hasHiddenTail:a}){const s=e.map(o=>t.includes(o)?`${q}px`:"minmax(280px, 1fr)");return a&&s.push("280px"),s.join(" ")}const m="lane:",me=e=>{const t=C(e);return t.length>0?t:b(e)};function G(e){return l.includes(e)}function ge({overId:e,statusOf:t}){if(e===void 0)return null;const a=String(e),s=a.startsWith(m)?a.slice(m.length):t(a);return s!==void 0&&G(s)?s:null}function pe(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ye=["none","low","medium","high","urgent"],Ne={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:f,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:_,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500",icon:f,iconClassName:"text-blue-500"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:k,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:x,iconClassName:"text-destructive"}};function Ce(e,t=Date.now()){const a=new Date(e).getTime();return Number.isNaN(a)?null:a<t?"overdue":a-t<=V*864e5?"soon":null}const V=3;function be(e){return`color-mix(in oklab, ${e??$} var(--user-color-strength), transparent)`}export{F as H,m as L,ye as P,y as S,le as T,ae as a,Ne as b,ue as c,N as d,te as e,ee as f,U as g,oe as h,p as i,de as j,me as k,ce as l,fe as m,se as n,re as o,ge as p,Ce as q,ie as r,ne as s,be as t,pe as u};
@@ -1,9 +1,9 @@
1
- import{c as k,j as s,b as _,r as J,l as Ce,ah as fe,f_ as be,a2 as ve,am as Ne,a3 as ke,B as ie,t as me,eV as pe,eo as we,au as Se}from"./index-C0fgwI3q.js";import{A as $e,b as _e}from"./alert-JW3yZ4C8.js";import{B as Ke}from"./badge-GK4zjdK1.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-CcFSUZxO.js";import{c as se,T as oe,a as xe,b as ae}from"./tabs-CbekgRp4.js";import{u as ge}from"./use-copy-BJSeICa9.js";import{a as he}from"./Copy01-6GcnKMxn.js";import{i as Le}from"./Key01-p-rjlUjm.js";import{i as Oe}from"./Link01-DyEmeKha.js";import{C as De,a as Me,b as Ee}from"./client-icons-gSVL8EdY.js";import{u as Be,a as He,A as Pe}from"./api-keys-D_B_H8FW.js";import{R as Ge}from"./require-capability-674KCnTY.js";import"./index-BdQq_4o_.js";import"./index-J4Q1okGg.js";import"./ChevronUp-DsKwChbg.js";import"./AlertCircle-D9thrIug.js";import"./Plus-DdZkIgr1.js";import"./Trash01-BR014M9V.js";import"./alert-dialog-CQZCzT1M.js";import"./label-C-1FhI7h.js";import"./use-mcp-client-DHK_4E_9.js";import"./auth-h2DZwiH-.js";import"./access-gate-BlV6ozL8.js";import"./capability-load-error-CZt11aLQ.js";function Re(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ve(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function Ue({client:t,mode:e,url:i,apiKey:o}){const n=o??"<paste-your-api-key>",r=Re();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i} \\
1
+ import{c as k,j as s,b as _,r as J,l as Ce,ah as fe,f$ as be,a2 as ve,am as Ne,a3 as ke,B as ie,t as me,eW as pe,eo as we,au as $e}from"./index-CT-xO5mU.js";import{A as Se,b as _e}from"./alert-DdIEyN02.js";import{B as Ke}from"./badge-bf_kmzeT.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-CTDMYNay.js";import{c as se,T as oe,a as xe,b as ae}from"./tabs-Dn19urh6.js";import{u as ge}from"./use-copy-BjH1FU0j.js";import{a as he}from"./Copy01-CJKub2_o.js";import{i as Le}from"./Key01-B3dXN-Y7.js";import{i as Oe}from"./Link01-DPKsL39W.js";import{C as De,a as Me,b as Ee}from"./client-icons-D4oQWiPN.js";import{u as Be,a as He,A as Pe}from"./api-keys-DDiOk1xU.js";import{R as Ge}from"./require-capability-DBdY5Dkx.js";import"./index-BdQq_4o_.js";import"./index-BsNqCvYj.js";import"./ChevronUp-CZwSTYLx.js";import"./AlertCircle-D-2plD68.js";import"./Plus-D1ujaH4P.js";import"./Trash01-ChpqYbJ5.js";import"./alert-dialog-7mrPWx4-.js";import"./label-BrluvNII.js";import"./use-mcp-client-Cv85PJpG.js";import"./auth-51drWU9x.js";import"./access-gate-DjCsf0Fn.js";import"./capability-load-error-u2H-eGao.js";function Re(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ve(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function We({client:t,mode:e,url:i,apiKey:o}){const n=o??"<paste-your-api-key>",r=Re();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i} \\
2
2
  --header "Authorization: Bearer ${n}"`};if(t==="cursor"){const l={url:i};return e==="api-key"&&(l.headers={Authorization:`Bearer ${n}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[r]:l}},null,2)}}if(t==="codex"){const l=[`[mcp_servers.${r}]`,`url = "${i}"`];return e==="api-key"&&l.push(`http_headers = { "Authorization" = "Bearer ${n}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:l.join(`
3
3
  `)}}return e==="oauth"?{language:"text",code:`${i}
4
4
 
5
5
  # OAuth: clients that support MCP OAuth 2.1 will discover
6
6
  # the auth flow via the WWW-Authenticate header on 401.`}:{language:"text",code:`${i}
7
7
 
8
- Authorization: Bearer ${n}`}}function We(t){const e=k.c(8),{client:i,mode:o,url:n,apiKey:r}=t;let l;e[0]!==r||e[1]!==i||e[2]!==o||e[3]!==n?(l=Ue({client:i,mode:o,url:n,apiKey:r}),e[0]=r,e[1]=i,e[2]=o,e[3]=n,e[4]=l):l=e[4];const a=l,c=a.pathHint??a.language;let d;return e[5]!==a.code||e[6]!==c?(d=s.jsx(ce,{label:c,code:a.code}),e[5]=a.code,e[6]=c,e[7]=d):d=e[7],d}function ce(t){const e=k.c(27),{label:i,code:o}=t,n=_(),{handleCopy:r,copied:l}=ge(),a=J.useId(),c=J.useId();let d;e[0]!==o||e[1]!==r?(d=()=>r(o),e[0]=o,e[1]=r,e[2]=d):d=e[2];const u=`${a} ${c}`;let f;e[3]!==n?(f=n("settings.connectClients.copy"),e[3]=n,e[4]=f):f=e[4];let m;e[5]!==a||e[6]!==f?(m=s.jsx("span",{id:a,className:"sr-only",children:f}),e[5]=a,e[6]=f,e[7]=m):m=e[7];let p;e[8]!==i?(p=s.jsx("span",{className:"min-w-0 truncate font-mono text-[11px] leading-none text-muted-foreground",children:i}),e[8]=i,e[9]=p):p=e[9];const j=l?"text-success":"group-hover:border-foreground/30 group-hover:text-foreground";let x;e[10]!==j?(x=Ce("flex size-6 shrink-0 items-center justify-center self-start rounded-md border border-border text-muted-foreground transition-colors",j),e[10]=j,e[11]=x):x=e[11];let g;e[12]!==l?(g=l?s.jsx(fe,{size:13}):s.jsx(he,{size:13}),e[12]=l,e[13]=g):g=e[13];let h;e[14]!==x||e[15]!==g?(h=s.jsx("span",{"aria-hidden":"true",className:x,children:g}),e[14]=x,e[15]=g,e[16]=h):h=e[16];let C;e[17]!==o||e[18]!==c?(C=s.jsx("pre",{className:"overflow-x-auto pt-2 font-mono text-xs leading-relaxed",children:s.jsx("code",{id:c,children:o})}),e[17]=o,e[18]=c,e[19]=C):C=e[19];let y;return e[20]!==d||e[21]!==C||e[22]!==u||e[23]!==m||e[24]!==p||e[25]!==h?(y=s.jsxs("button",{type:"button",onClick:d,"aria-labelledby":u,className:"group relative grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3 rounded-lg p-3 text-left transition-colors hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[m,p,h,C]}),e[20]=d,e[21]=C,e[22]=u,e[23]=m,e[24]=p,e[25]=h,e[26]=y):y=e[26],y}const Fe="https://studio.decocms.com",le="npx skills add decocms/studio --skill decocms-studio -g";function qe(t){switch(t){case"claude-code":return["claude plugin marketplace add decocms/studio","claude plugin install decocms-studio@decocms"].join(`
9
- `);case"cursor":return`${le} -a cursor`;case"codex":return`${le} -a codex`;case"raw":return le}}function Je(t){return t===Fe?"bunx decocms@latest auth login":`bunx decocms@latest auth login --target ${t}`}const ue="Connect: ",X=[{id:"claude-code",label:"Claude",Icon:De},{id:"cursor",label:"Cursor",Icon:Me},{id:"codex",label:"Codex",Icon:Ee},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Oe}];function je(t){return X.find(e=>e.id===t)?.label??t}function Xe(){return typeof window>"u"?"unknown":window.location.hostname}function Ye(t){const e=k.c(11),{text:i}=t,o=_(),{handleCopy:n,copied:r}=ge();let l;e[0]!==n||e[1]!==i?(l=()=>n(i),e[0]=n,e[1]=i,e[2]=l):l=e[2];let a;e[3]!==o?(a=o("settings.connectClients.copy"),e[3]=o,e[4]=a):a=e[4];let c;e[5]!==r?(c=r?s.jsx(fe,{size:14}):s.jsx(he,{size:14}),e[5]=r,e[6]=c):c=e[6];let d;return e[7]!==l||e[8]!==a||e[9]!==c?(d=s.jsx(ie,{variant:"ghost",size:"icon",className:"size-7 shrink-0",onClick:l,"aria-label":a,children:c}),e[7]=l,e[8]=a,e[9]=c,e[10]=d):d=e[10],d}function Qe(t){const e=k.c(17),{url:i}=t,o=_(),n=`${i}/.well-known/oauth-protected-resource`;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Se,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=r):r=e[0];let l;e[1]!==o?(l=o("settings.connectClients.oauthDiscoveryDetails"),e[1]=o,e[2]=l):l=e[2];let a;e[3]!==l?(a=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[r,l]}),e[3]=l,e[4]=a):a=e[4];let c;e[5]!==o?(c=o("settings.connectClients.oauthMetadataHint"),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=s.jsx("p",{children:c}),e[7]=c,e[8]=d):d=e[8];let u;e[9]!==n?(u=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-[11px]",children:n}),s.jsx(Ye,{text:n})]}),e[9]=n,e[10]=u):u=e[10];let f;e[11]!==d||e[12]!==u?(f=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[d,u]}),e[11]=d,e[12]=u,e[13]=f):f=e[13];let m;return e[14]!==a||e[15]!==f?(m=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[a,f]}),e[14]=a,e[15]=f,e[16]=m):m=e[16],m}function Ze(t){const e=k.c(23),{mode:i,onModeChange:o}=t,n=_();let r;e[0]!==o?(r=x=>{(x==="oauth"||x==="api-key")&&o(x)},e[0]=o,e[1]=r):r=e[1];let l;e[2]!==n?(l=n("settings.connectClients.installMethod"),e[2]=n,e[3]=l):l=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ae,{}),e[4]=a):a=e[4];let c;e[5]!==l?(c=s.jsx(Ie,{size:"sm",className:"text-xs","aria-label":l,children:a}),e[5]=l,e[6]=c):c=e[6];let d;e[7]!==n?(d=n("settings.connectClients.oauthOption"),e[7]=n,e[8]=d):d=e[8];let u;e[9]!==d?(u=s.jsx(de,{value:"oauth",className:"text-xs",children:d}),e[9]=d,e[10]=u):u=e[10];let f;e[11]!==n?(f=n("settings.connectClients.apiKeyOption"),e[11]=n,e[12]=f):f=e[12];let m;e[13]!==f?(m=s.jsx(de,{value:"api-key",className:"text-xs",children:f}),e[13]=f,e[14]=m):m=e[14];let p;e[15]!==u||e[16]!==m?(p=s.jsxs(ze,{children:[u,m]}),e[15]=u,e[16]=m,e[17]=p):p=e[17];let j;return e[18]!==i||e[19]!==r||e[20]!==c||e[21]!==p?(j=s.jsxs(Te,{value:i,onValueChange:r,children:[c,p]}),e[18]=i,e[19]=r,e[20]=c,e[21]=p,e[22]=j):j=e[22],j}function et(t){const e=k.c(26),{client:i,url:o,mode:n,newKey:r,canManageKeys:l,onGenerate:a,isGenerating:c,onClearNewKey:d}=t,u=_(),f=n==="api-key"&&r!==null,m=i==="raw";let p;e[0]!==f||e[1]!==u?(p=f&&s.jsxs($e,{variant:"warning",className:"text-xs",children:[s.jsx(ke,{}),s.jsx(_e,{children:u("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=f,e[1]=u,e[2]=p):p=e[2];const j=f&&r?r:void 0;let x;e[3]!==i||e[4]!==n||e[5]!==j||e[6]!==o?(x=s.jsx(We,{client:i,mode:n,url:o,apiKey:j}),e[3]=i,e[4]=n,e[5]=j,e[6]=o,e[7]=x):x=e[7];let g;e[8]!==m||e[9]!==o?(g=m&&s.jsx(Qe,{url:o}),e[8]=m,e[9]=o,e[10]=g):g=e[10];let h;e[11]!==l||e[12]!==i||e[13]!==c||e[14]!==m||e[15]!==n||e[16]!==d||e[17]!==a||e[18]!==f||e[19]!==u?(h=n==="api-key"&&l&&s.jsx("div",{children:f?s.jsx(ie,{variant:"ghost",size:"sm",onClick:d,className:"text-xs",children:u("settings.connectClients.doneHideKey")}):s.jsxs(ie,{size:"sm",onClick:a,disabled:c,className:"gap-1.5",children:[s.jsx(Le,{size:14}),c?u("settings.connectClients.generatingKey"):m?u("settings.connectClients.generateKey"):u("settings.connectClients.generateKeyFor",{client:je(i)})]})}),e[11]=l,e[12]=i,e[13]=c,e[14]=m,e[15]=n,e[16]=d,e[17]=a,e[18]=f,e[19]=u,e[20]=h):h=e[20];let C;return e[21]!==p||e[22]!==x||e[23]!==g||e[24]!==h?(C=s.jsxs("div",{className:"flex flex-col gap-3",children:[p,x,g,h]}),e[21]=p,e[22]=x,e[23]=g,e[24]=h,e[25]=C):C=e[25],C}function ye(){const t=k.c(4),e=_();let i;t[0]!==e?(i=X.map(n=>{const{id:r,label:l,labelKey:a,Icon:c}=n;return s.jsxs(oe,{value:r,variant:"underline",className:"gap-2",children:[s.jsx(c,{size:16}),a?e(a):l]},r)}),t[0]=e,t[1]=i):i=t[1];let o;return t[2]!==i?(o=s.jsx(xe,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:i}),t[2]=i,t[3]=o):o=t[3],o}function tt(t){const e=k.c(39),{client:i,onClientChange:o}=t,n=_(),r=typeof window>"u"?"":window.location.origin;let l;e[0]!==n?(l=n("settings.connectClients.skillDescription"),e[0]=n,e[1]=l):l=e[1];let a;e[2]!==l?(a=s.jsx("p",{className:"text-sm leading-snug text-muted-foreground",children:l}),e[2]=l,e[3]=a):a=e[3];let c;e[4]!==n?(c=n("settings.connectClients.skillInstallStep"),e[4]=n,e[5]=c):c=e[5];let d;e[6]!==c?(d=s.jsx("h3",{className:"px-5 pt-4 text-sm font-medium",children:c}),e[6]=c,e[7]=d):d=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"flex px-3 py-1",children:s.jsx(ye,{})}),e[8]=u):u=e[8];let f;e[9]!==n?(f=X.map(A=>{const{id:S}=A;return s.jsxs(se,{value:S,className:"flex flex-col p-2",children:[s.jsx(ce,{label:"bash",code:qe(S)}),S==="raw"&&s.jsx("p",{className:"px-3 pb-2 text-xs leading-snug text-muted-foreground",children:n("settings.connectClients.skillOtherAgentsHint")})]},S)}),e[9]=n,e[10]=f):f=e[10];let m;e[11]!==i||e[12]!==o||e[13]!==d||e[14]!==f?(m=s.jsxs(ae,{value:i,onValueChange:o,variant:"underline",className:"gap-0",children:[d,u,f]}),e[11]=i,e[12]=o,e[13]=d,e[14]=f,e[15]=m):m=e[15];let p;e[16]!==n?(p=n("settings.connectClients.skillLoginStep"),e[16]=n,e[17]=p):p=e[17];let j;e[18]!==p?(j=s.jsx("h3",{className:"px-3 pt-2 text-sm font-medium",children:p}),e[18]=p,e[19]=j):j=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ce,{label:"bash",code:Je(r)}),e[20]=x):x=e[20];let g;e[21]!==j?(g=s.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[j,x]}),e[21]=j,e[22]=g):g=e[22];let h;e[23]!==g||e[24]!==m?(h=s.jsxs(pe,{className:"gap-0 divide-y divide-border overflow-hidden p-0",children:[m,g]}),e[23]=g,e[24]=m,e[25]=h):h=e[25];let C;e[26]!==n?(C=n("settings.connectClients.skillNeedsBun"),e[26]=n,e[27]=C):C=e[27];let y;e[28]!==C?(y=s.jsx("a",{href:"https://bun.com",target:"_blank",rel:"noreferrer",className:"text-foreground underline underline-offset-2 hover:no-underline",children:C}),e[28]=C,e[29]=y):y=e[29];let w;e[30]!==n?(w=n("settings.connectClients.skillLoginHint"),e[30]=n,e[31]=w):w=e[31];let N;e[32]!==y||e[33]!==w?(N=s.jsxs("p",{className:"text-xs leading-snug text-muted-foreground",children:[y," ",w]}),e[32]=y,e[33]=w,e[34]=N):N=e[34];let K;return e[35]!==h||e[36]!==N||e[37]!==a?(K=s.jsxs("div",{className:"flex flex-col gap-3",children:[a,h,N]}),e[35]=h,e[36]=N,e[37]=a,e[38]=K):K=e[38],K}function st(){const t=k.c(74),e=_(),{org:i}=ve();let o;t[0]!==i.slug?(o=Ve(i.slug),t[0]=i.slug,t[1]=o):o=t[1];const n=o,r=Be(),{granted:l}=Ne("api-keys:manage");let a;t[2]!==l?(a={enabled:l},t[2]=l,t[3]=a):a=t[3];const{data:c,dataUpdatedAt:d}=He(a),[u,f]=J.useState("oauth");let m;t[4]===Symbol.for("react.memo_cache_sentinel")?(m={},t[4]=m):m=t[4];const[p,j]=J.useState(m);let x;t[5]!==d||t[6]!==p||t[7]!==i.id||t[8]!==c?(x=v=>{const b=p[v];return!b||b.orgId!==i.id?null:!c||d<b.at||c.some($=>$.id===b.id)?b.key:null},t[5]=d,t[6]=p,t[7]=i.id,t[8]=c,t[9]=x):x=t[9];const g=x,[h,C]=J.useState("skill"),[y,w]=J.useState("claude-code");let N;t[10]===Symbol.for("react.memo_cache_sentinel")?(N=v=>{const b=X.find($=>$.id===v);b&&w(b.id)},t[10]=N):N=t[10];const K=N;let A;t[11]!==r||t[12]!==i.id||t[13]!==e?(A=v=>{const b=`${ue}${je(v)} on ${Xe()}`;r.mutate({name:b,permissions:{"*":["*"]}},{onSuccess:$=>{j(ne=>({...ne,[v]:{id:$.id,key:$.key,at:Date.now(),orgId:i.id}})),me.success(e("settings.connectClients.keyCreated"))},onError:nt})},t[11]=r,t[12]=i.id,t[13]=e,t[14]=A):A=t[14];const S=A;let I;t[15]!==e?(I=e("settings.connectClients.skillTitle"),t[15]=e,t[16]=I):I=t[16];let Y;t[17]===Symbol.for("react.memo_cache_sentinel")?(Y=v=>{(v==="skill"||v==="mcp")&&C(v)},t[17]=Y):Y=t[17];let z;t[18]!==e?(z=e("settings.connectClients.skillTab"),t[18]=e,t[19]=z):z=t[19];let T;t[20]!==e?(T=e("settings.connectClients.recommended"),t[20]=e,t[21]=T):T=t[21];let L;t[22]!==T?(L=s.jsx(Ke,{variant:"muted",children:T}),t[22]=T,t[23]=L):L=t[23];let O;t[24]!==L||t[25]!==z?(O=s.jsxs(oe,{value:"skill",className:"gap-2",children:[z,L]}),t[24]=L,t[25]=z,t[26]=O):O=t[26];let Q;t[27]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(oe,{value:"mcp",children:"MCP"}),t[27]=Q):Q=t[27];let D;t[28]!==O?(D=s.jsxs(xe,{children:[O,Q]}),t[28]=O,t[29]=D):D=t[29];let M;t[30]!==y?(M=s.jsx(se,{value:"skill",children:s.jsx(tt,{client:y,onClientChange:K})}),t[30]=y,t[31]=M):M=t[31];let E;t[32]!==e?(E=e("settings.connectClients.mcpDescription"),t[32]=e,t[33]=E):E=t[33];let B;t[34]!==E?(B=s.jsx("p",{className:"text-sm leading-snug text-muted-foreground",children:E}),t[34]=E,t[35]=B):B=t[35];let Z;t[36]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(ye,{}),t[36]=Z):Z=t[36];let H;t[37]!==u?(H=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[Z,s.jsx(Ze,{mode:u,onModeChange:f})]}),t[37]=u,t[38]=H):H=t[38];let P;t[39]!==l||t[40]!==r||t[41]!==S||t[42]!==g||t[43]!==u||t[44]!==n?(P=X.map(v=>{const{id:b,label:$}=v;return s.jsx(se,{value:b,className:"p-2",children:s.jsx(et,{client:b,url:n,mode:u,newKey:g(b),canManageKeys:l,onGenerate:()=>S(b),isGenerating:r.isPending&&r.variables?.name?.startsWith(`${ue}${$}`)===!0,onClearNewKey:()=>j(ne=>{const re={...ne};return delete re[b],re})})},b)}),t[39]=l,t[40]=r,t[41]=S,t[42]=g,t[43]=u,t[44]=n,t[45]=P):P=t[45];let G;t[46]!==y||t[47]!==H||t[48]!==P?(G=s.jsx(pe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(ae,{value:y,onValueChange:K,variant:"underline",className:"gap-0",children:[H,P]})}),t[46]=y,t[47]=H,t[48]=P,t[49]=G):G=t[49];let R;t[50]!==u||t[51]!==e?(R=e(u==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[50]=u,t[51]=e,t[52]=R):R=t[52];let V;t[53]!==R?(V=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:R}),t[53]=R,t[54]=V):V=t[54];let U;t[55]!==y||t[56]!==e?(U=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[55]=y,t[56]=e,t[57]=U):U=t[57];let W;t[58]!==B||t[59]!==G||t[60]!==V||t[61]!==U?(W=s.jsxs(se,{value:"mcp",className:"flex flex-col gap-3",children:[B,G,V,U]}),t[58]=B,t[59]=G,t[60]=V,t[61]=U,t[62]=W):W=t[62];let F;t[63]!==D||t[64]!==M||t[65]!==W||t[66]!==h?(F=s.jsxs(ae,{value:h,onValueChange:Y,className:"gap-3",children:[D,M,W]}),t[63]=D,t[64]=M,t[65]=W,t[66]=h,t[67]=F):F=t[67];let q;t[68]!==F||t[69]!==I?(q=s.jsx(we,{headerClassName:"px-0",title:I,children:F}),t[68]=F,t[69]=I,t[70]=q):q=t[70];let ee;t[71]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ge,{capability:"api-keys:manage",area:"api-keys",children:s.jsx(Pe,{})}),t[71]=ee):ee=t[71];let te;return t[72]!==q?(te=s.jsxs(s.Fragment,{children:[q,ee]}),t[72]=q,t[73]=te):te=t[73],te}function nt(t){return me.error(t.message)}function lt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(be,{group:"connect",children:s.jsx(st,{})}),t[0]=e):e=t[0],e}function Kt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(lt,{}),t[0]=e):e=t[0],e}export{Kt as default};
8
+ Authorization: Bearer ${n}`}}function Ue(t){const e=k.c(8),{client:i,mode:o,url:n,apiKey:r}=t;let l;e[0]!==r||e[1]!==i||e[2]!==o||e[3]!==n?(l=We({client:i,mode:o,url:n,apiKey:r}),e[0]=r,e[1]=i,e[2]=o,e[3]=n,e[4]=l):l=e[4];const a=l,c=a.pathHint??a.language;let d;return e[5]!==a.code||e[6]!==c?(d=s.jsx(ce,{label:c,code:a.code}),e[5]=a.code,e[6]=c,e[7]=d):d=e[7],d}function ce(t){const e=k.c(27),{label:i,code:o}=t,n=_(),{handleCopy:r,copied:l}=ge(),a=J.useId(),c=J.useId();let d;e[0]!==o||e[1]!==r?(d=()=>r(o),e[0]=o,e[1]=r,e[2]=d):d=e[2];const u=`${a} ${c}`;let f;e[3]!==n?(f=n("settings.connectClients.copy"),e[3]=n,e[4]=f):f=e[4];let m;e[5]!==a||e[6]!==f?(m=s.jsx("span",{id:a,className:"sr-only",children:f}),e[5]=a,e[6]=f,e[7]=m):m=e[7];let p;e[8]!==i?(p=s.jsx("span",{className:"min-w-0 truncate font-mono text-[11px] leading-none text-muted-foreground",children:i}),e[8]=i,e[9]=p):p=e[9];const j=l?"text-success":"group-hover:border-foreground/30 group-hover:text-foreground";let x;e[10]!==j?(x=Ce("flex size-6 shrink-0 items-center justify-center self-start rounded-md border border-border text-muted-foreground transition-colors",j),e[10]=j,e[11]=x):x=e[11];let g;e[12]!==l?(g=l?s.jsx(fe,{size:13}):s.jsx(he,{size:13}),e[12]=l,e[13]=g):g=e[13];let h;e[14]!==x||e[15]!==g?(h=s.jsx("span",{"aria-hidden":"true",className:x,children:g}),e[14]=x,e[15]=g,e[16]=h):h=e[16];let C;e[17]!==o||e[18]!==c?(C=s.jsx("pre",{className:"overflow-x-auto pt-2 font-mono text-xs leading-relaxed",children:s.jsx("code",{id:c,children:o})}),e[17]=o,e[18]=c,e[19]=C):C=e[19];let y;return e[20]!==d||e[21]!==C||e[22]!==u||e[23]!==m||e[24]!==p||e[25]!==h?(y=s.jsxs("button",{type:"button",onClick:d,"aria-labelledby":u,className:"group relative grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3 rounded-lg p-3 text-left transition-colors hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[m,p,h,C]}),e[20]=d,e[21]=C,e[22]=u,e[23]=m,e[24]=p,e[25]=h,e[26]=y):y=e[26],y}const Fe="https://studio.decocms.com",le="npx skills add decocms/studio --skill decocms-studio -g";function qe(t){switch(t){case"claude-code":return["claude plugin marketplace add decocms/studio","claude plugin install decocms-studio@decocms"].join(`
9
+ `);case"cursor":return`${le} -a cursor`;case"codex":return`${le} -a codex`;case"raw":return le}}function Je(t){return t===Fe?"bunx decocms@latest auth login":`bunx decocms@latest auth login --target ${t}`}const ue="Connect: ",X=[{id:"claude-code",label:"Claude",Icon:De},{id:"cursor",label:"Cursor",Icon:Me},{id:"codex",label:"Codex",Icon:Ee},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Oe}];function je(t){return X.find(e=>e.id===t)?.label??t}function Xe(){return typeof window>"u"?"unknown":window.location.hostname}function Ye(t){const e=k.c(11),{text:i}=t,o=_(),{handleCopy:n,copied:r}=ge();let l;e[0]!==n||e[1]!==i?(l=()=>n(i),e[0]=n,e[1]=i,e[2]=l):l=e[2];let a;e[3]!==o?(a=o("settings.connectClients.copy"),e[3]=o,e[4]=a):a=e[4];let c;e[5]!==r?(c=r?s.jsx(fe,{size:14}):s.jsx(he,{size:14}),e[5]=r,e[6]=c):c=e[6];let d;return e[7]!==l||e[8]!==a||e[9]!==c?(d=s.jsx(ie,{variant:"ghost",size:"icon",className:"size-7 shrink-0",onClick:l,"aria-label":a,children:c}),e[7]=l,e[8]=a,e[9]=c,e[10]=d):d=e[10],d}function Qe(t){const e=k.c(17),{url:i}=t,o=_(),n=`${i}/.well-known/oauth-protected-resource`;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx($e,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=r):r=e[0];let l;e[1]!==o?(l=o("settings.connectClients.oauthDiscoveryDetails"),e[1]=o,e[2]=l):l=e[2];let a;e[3]!==l?(a=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[r,l]}),e[3]=l,e[4]=a):a=e[4];let c;e[5]!==o?(c=o("settings.connectClients.oauthMetadataHint"),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=s.jsx("p",{children:c}),e[7]=c,e[8]=d):d=e[8];let u;e[9]!==n?(u=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-[11px]",children:n}),s.jsx(Ye,{text:n})]}),e[9]=n,e[10]=u):u=e[10];let f;e[11]!==d||e[12]!==u?(f=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[d,u]}),e[11]=d,e[12]=u,e[13]=f):f=e[13];let m;return e[14]!==a||e[15]!==f?(m=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[a,f]}),e[14]=a,e[15]=f,e[16]=m):m=e[16],m}function Ze(t){const e=k.c(23),{mode:i,onModeChange:o}=t,n=_();let r;e[0]!==o?(r=x=>{(x==="oauth"||x==="api-key")&&o(x)},e[0]=o,e[1]=r):r=e[1];let l;e[2]!==n?(l=n("settings.connectClients.installMethod"),e[2]=n,e[3]=l):l=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ae,{}),e[4]=a):a=e[4];let c;e[5]!==l?(c=s.jsx(Ie,{size:"sm",className:"text-xs","aria-label":l,children:a}),e[5]=l,e[6]=c):c=e[6];let d;e[7]!==n?(d=n("settings.connectClients.oauthOption"),e[7]=n,e[8]=d):d=e[8];let u;e[9]!==d?(u=s.jsx(de,{value:"oauth",className:"text-xs",children:d}),e[9]=d,e[10]=u):u=e[10];let f;e[11]!==n?(f=n("settings.connectClients.apiKeyOption"),e[11]=n,e[12]=f):f=e[12];let m;e[13]!==f?(m=s.jsx(de,{value:"api-key",className:"text-xs",children:f}),e[13]=f,e[14]=m):m=e[14];let p;e[15]!==u||e[16]!==m?(p=s.jsxs(ze,{children:[u,m]}),e[15]=u,e[16]=m,e[17]=p):p=e[17];let j;return e[18]!==i||e[19]!==r||e[20]!==c||e[21]!==p?(j=s.jsxs(Te,{value:i,onValueChange:r,children:[c,p]}),e[18]=i,e[19]=r,e[20]=c,e[21]=p,e[22]=j):j=e[22],j}function et(t){const e=k.c(26),{client:i,url:o,mode:n,newKey:r,canManageKeys:l,onGenerate:a,isGenerating:c,onClearNewKey:d}=t,u=_(),f=n==="api-key"&&r!==null,m=i==="raw";let p;e[0]!==f||e[1]!==u?(p=f&&s.jsxs(Se,{variant:"warning",className:"text-xs",children:[s.jsx(ke,{}),s.jsx(_e,{children:u("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=f,e[1]=u,e[2]=p):p=e[2];const j=f&&r?r:void 0;let x;e[3]!==i||e[4]!==n||e[5]!==j||e[6]!==o?(x=s.jsx(Ue,{client:i,mode:n,url:o,apiKey:j}),e[3]=i,e[4]=n,e[5]=j,e[6]=o,e[7]=x):x=e[7];let g;e[8]!==m||e[9]!==o?(g=m&&s.jsx(Qe,{url:o}),e[8]=m,e[9]=o,e[10]=g):g=e[10];let h;e[11]!==l||e[12]!==i||e[13]!==c||e[14]!==m||e[15]!==n||e[16]!==d||e[17]!==a||e[18]!==f||e[19]!==u?(h=n==="api-key"&&l&&s.jsx("div",{children:f?s.jsx(ie,{variant:"ghost",size:"sm",onClick:d,className:"text-xs",children:u("settings.connectClients.doneHideKey")}):s.jsxs(ie,{size:"sm",onClick:a,disabled:c,className:"gap-1.5",children:[s.jsx(Le,{size:14}),c?u("settings.connectClients.generatingKey"):m?u("settings.connectClients.generateKey"):u("settings.connectClients.generateKeyFor",{client:je(i)})]})}),e[11]=l,e[12]=i,e[13]=c,e[14]=m,e[15]=n,e[16]=d,e[17]=a,e[18]=f,e[19]=u,e[20]=h):h=e[20];let C;return e[21]!==p||e[22]!==x||e[23]!==g||e[24]!==h?(C=s.jsxs("div",{className:"flex flex-col gap-3",children:[p,x,g,h]}),e[21]=p,e[22]=x,e[23]=g,e[24]=h,e[25]=C):C=e[25],C}function ye(){const t=k.c(4),e=_();let i;t[0]!==e?(i=X.map(n=>{const{id:r,label:l,labelKey:a,Icon:c}=n;return s.jsxs(oe,{value:r,variant:"underline",className:"gap-2",children:[s.jsx(c,{size:16}),a?e(a):l]},r)}),t[0]=e,t[1]=i):i=t[1];let o;return t[2]!==i?(o=s.jsx(xe,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:i}),t[2]=i,t[3]=o):o=t[3],o}function tt(t){const e=k.c(39),{client:i,onClientChange:o}=t,n=_(),r=typeof window>"u"?"":window.location.origin;let l;e[0]!==n?(l=n("settings.connectClients.skillDescription"),e[0]=n,e[1]=l):l=e[1];let a;e[2]!==l?(a=s.jsx("p",{className:"text-sm leading-snug text-muted-foreground",children:l}),e[2]=l,e[3]=a):a=e[3];let c;e[4]!==n?(c=n("settings.connectClients.skillInstallStep"),e[4]=n,e[5]=c):c=e[5];let d;e[6]!==c?(d=s.jsx("h3",{className:"px-5 pt-4 text-sm font-medium",children:c}),e[6]=c,e[7]=d):d=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"flex px-3 py-1",children:s.jsx(ye,{})}),e[8]=u):u=e[8];let f;e[9]!==n?(f=X.map(A=>{const{id:$}=A;return s.jsxs(se,{value:$,className:"flex flex-col p-2",children:[s.jsx(ce,{label:"bash",code:qe($)}),$==="raw"&&s.jsx("p",{className:"px-3 pb-2 text-xs leading-snug text-muted-foreground",children:n("settings.connectClients.skillOtherAgentsHint")})]},$)}),e[9]=n,e[10]=f):f=e[10];let m;e[11]!==i||e[12]!==o||e[13]!==d||e[14]!==f?(m=s.jsxs(ae,{value:i,onValueChange:o,variant:"underline",className:"gap-0",children:[d,u,f]}),e[11]=i,e[12]=o,e[13]=d,e[14]=f,e[15]=m):m=e[15];let p;e[16]!==n?(p=n("settings.connectClients.skillLoginStep"),e[16]=n,e[17]=p):p=e[17];let j;e[18]!==p?(j=s.jsx("h3",{className:"px-3 pt-2 text-sm font-medium",children:p}),e[18]=p,e[19]=j):j=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ce,{label:"bash",code:Je(r)}),e[20]=x):x=e[20];let g;e[21]!==j?(g=s.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[j,x]}),e[21]=j,e[22]=g):g=e[22];let h;e[23]!==g||e[24]!==m?(h=s.jsxs(pe,{className:"gap-0 divide-y divide-border overflow-hidden p-0",children:[m,g]}),e[23]=g,e[24]=m,e[25]=h):h=e[25];let C;e[26]!==n?(C=n("settings.connectClients.skillNeedsBun"),e[26]=n,e[27]=C):C=e[27];let y;e[28]!==C?(y=s.jsx("a",{href:"https://bun.com",target:"_blank",rel:"noreferrer",className:"text-foreground underline underline-offset-2 hover:no-underline",children:C}),e[28]=C,e[29]=y):y=e[29];let w;e[30]!==n?(w=n("settings.connectClients.skillLoginHint"),e[30]=n,e[31]=w):w=e[31];let N;e[32]!==y||e[33]!==w?(N=s.jsxs("p",{className:"text-xs leading-snug text-muted-foreground",children:[y," ",w]}),e[32]=y,e[33]=w,e[34]=N):N=e[34];let K;return e[35]!==h||e[36]!==N||e[37]!==a?(K=s.jsxs("div",{className:"flex flex-col gap-3",children:[a,h,N]}),e[35]=h,e[36]=N,e[37]=a,e[38]=K):K=e[38],K}function st(){const t=k.c(74),e=_(),{org:i}=ve();let o;t[0]!==i.slug?(o=Ve(i.slug),t[0]=i.slug,t[1]=o):o=t[1];const n=o,r=Be(),{granted:l}=Ne("api-keys:manage");let a;t[2]!==l?(a={enabled:l},t[2]=l,t[3]=a):a=t[3];const{data:c,dataUpdatedAt:d}=He(a),[u,f]=J.useState("oauth");let m;t[4]===Symbol.for("react.memo_cache_sentinel")?(m={},t[4]=m):m=t[4];const[p,j]=J.useState(m);let x;t[5]!==d||t[6]!==p||t[7]!==i.id||t[8]!==c?(x=v=>{const b=p[v];return!b||b.orgId!==i.id?null:!c||d<b.at||c.some(S=>S.id===b.id)?b.key:null},t[5]=d,t[6]=p,t[7]=i.id,t[8]=c,t[9]=x):x=t[9];const g=x,[h,C]=J.useState("skill"),[y,w]=J.useState("claude-code");let N;t[10]===Symbol.for("react.memo_cache_sentinel")?(N=v=>{const b=X.find(S=>S.id===v);b&&w(b.id)},t[10]=N):N=t[10];const K=N;let A;t[11]!==r||t[12]!==i.id||t[13]!==e?(A=v=>{const b=`${ue}${je(v)} on ${Xe()}`;r.mutate({name:b,permissions:{"*":["*"]}},{onSuccess:S=>{j(ne=>({...ne,[v]:{id:S.id,key:S.key,at:Date.now(),orgId:i.id}})),me.success(e("settings.connectClients.keyCreated"))},onError:nt})},t[11]=r,t[12]=i.id,t[13]=e,t[14]=A):A=t[14];const $=A;let I;t[15]!==e?(I=e("settings.connectClients.skillTitle"),t[15]=e,t[16]=I):I=t[16];let Y;t[17]===Symbol.for("react.memo_cache_sentinel")?(Y=v=>{(v==="skill"||v==="mcp")&&C(v)},t[17]=Y):Y=t[17];let z;t[18]!==e?(z=e("settings.connectClients.skillTab"),t[18]=e,t[19]=z):z=t[19];let T;t[20]!==e?(T=e("settings.connectClients.recommended"),t[20]=e,t[21]=T):T=t[21];let L;t[22]!==T?(L=s.jsx(Ke,{variant:"muted",children:T}),t[22]=T,t[23]=L):L=t[23];let O;t[24]!==L||t[25]!==z?(O=s.jsxs(oe,{value:"skill",className:"gap-2",children:[z,L]}),t[24]=L,t[25]=z,t[26]=O):O=t[26];let Q;t[27]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(oe,{value:"mcp",children:"MCP"}),t[27]=Q):Q=t[27];let D;t[28]!==O?(D=s.jsxs(xe,{children:[O,Q]}),t[28]=O,t[29]=D):D=t[29];let M;t[30]!==y?(M=s.jsx(se,{value:"skill",children:s.jsx(tt,{client:y,onClientChange:K})}),t[30]=y,t[31]=M):M=t[31];let E;t[32]!==e?(E=e("settings.connectClients.mcpDescription"),t[32]=e,t[33]=E):E=t[33];let B;t[34]!==E?(B=s.jsx("p",{className:"text-sm leading-snug text-muted-foreground",children:E}),t[34]=E,t[35]=B):B=t[35];let Z;t[36]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(ye,{}),t[36]=Z):Z=t[36];let H;t[37]!==u?(H=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[Z,s.jsx(Ze,{mode:u,onModeChange:f})]}),t[37]=u,t[38]=H):H=t[38];let P;t[39]!==l||t[40]!==r||t[41]!==$||t[42]!==g||t[43]!==u||t[44]!==n?(P=X.map(v=>{const{id:b,label:S}=v;return s.jsx(se,{value:b,className:"p-2",children:s.jsx(et,{client:b,url:n,mode:u,newKey:g(b),canManageKeys:l,onGenerate:()=>$(b),isGenerating:r.isPending&&r.variables?.name?.startsWith(`${ue}${S}`)===!0,onClearNewKey:()=>j(ne=>{const re={...ne};return delete re[b],re})})},b)}),t[39]=l,t[40]=r,t[41]=$,t[42]=g,t[43]=u,t[44]=n,t[45]=P):P=t[45];let G;t[46]!==y||t[47]!==H||t[48]!==P?(G=s.jsx(pe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(ae,{value:y,onValueChange:K,variant:"underline",className:"gap-0",children:[H,P]})}),t[46]=y,t[47]=H,t[48]=P,t[49]=G):G=t[49];let R;t[50]!==u||t[51]!==e?(R=e(u==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[50]=u,t[51]=e,t[52]=R):R=t[52];let V;t[53]!==R?(V=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:R}),t[53]=R,t[54]=V):V=t[54];let W;t[55]!==y||t[56]!==e?(W=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[55]=y,t[56]=e,t[57]=W):W=t[57];let U;t[58]!==B||t[59]!==G||t[60]!==V||t[61]!==W?(U=s.jsxs(se,{value:"mcp",className:"flex flex-col gap-3",children:[B,G,V,W]}),t[58]=B,t[59]=G,t[60]=V,t[61]=W,t[62]=U):U=t[62];let F;t[63]!==D||t[64]!==M||t[65]!==U||t[66]!==h?(F=s.jsxs(ae,{value:h,onValueChange:Y,className:"gap-3",children:[D,M,U]}),t[63]=D,t[64]=M,t[65]=U,t[66]=h,t[67]=F):F=t[67];let q;t[68]!==F||t[69]!==I?(q=s.jsx(we,{headerClassName:"px-0",title:I,children:F}),t[68]=F,t[69]=I,t[70]=q):q=t[70];let ee;t[71]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ge,{capability:"api-keys:manage",area:"api-keys",children:s.jsx(Pe,{})}),t[71]=ee):ee=t[71];let te;return t[72]!==q?(te=s.jsxs(s.Fragment,{children:[q,ee]}),t[72]=q,t[73]=te):te=t[73],te}function nt(t){return me.error(t.message)}function lt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(be,{group:"connect",children:s.jsx(st,{})}),t[0]=e):e=t[0],e}function Kt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(lt,{}),t[0]=e):e=t[0],e}export{Kt as default};
@@ -1 +1 @@
1
- import{c as v,b as N,j as s,af as w,aX as k,au as y,B as z}from"./index-C0fgwI3q.js";import{b2 as _,aC as C}from"./agent-icon-vGqJXXmm.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function R(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(k,{size:18})}),e[0]=o,e[1]=r,e[2]=a):a=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(y,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,c,g]}),e[12]=c,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function A(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(z,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{R as C,A as a};
1
+ import{c as v,b as N,j as s,af as w,aX as k,au as y,B as z}from"./index-CT-xO5mU.js";import{b2 as _,aC as C}from"./agent-icon-2gpOTQkx.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function R(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(k,{size:18})}),e[0]=o,e[1]=r,e[2]=a):a=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(y,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,c,g]}),e[12]=c,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function A(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(z,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{R as C,A as a};
@@ -1 +1 @@
1
- import{U as p}from"./url-slug-BR5jNTXT.js";import{aF as o,bV as a,bW as t,aG as e,cZ as i,cX as r,d1 as b,dR as m,cY as h}from"./index-C0fgwI3q.js";const _=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:b("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),g=m.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),S=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),url_slug:e().nullable().optional().describe("Name of the connection in Studio URLs, unique in the organization. Set it to rename the URL; the old one keeps redirecting."),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:h([S,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:_.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(g).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});u.partial().extend({url_slug:p.nullish()});function U(n){return n!=null&&"command"in n}function D(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{_ as O,U as i,D as p};
1
+ import{U as p}from"./url-slug-AciVwxZY.js";import{aF as o,bV as a,bW as t,aG as e,cZ as i,cX as r,d1 as b,dR as m,cY as h}from"./index-CT-xO5mU.js";const _=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:b("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),g=m.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),S=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),url_slug:e().nullable().optional().describe("Name of the connection in Studio URLs, unique in the organization. Set it to rename the URL; the old one keeps redirecting."),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:h([S,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:_.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(g).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});u.partial().extend({url_slug:p.nullish()});function U(n){return n!=null&&"command"in n}function D(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{_ as O,U as i,D as p};
@@ -1 +1 @@
1
- import{c as M,a2 as S,a9 as $,K as F,ag as R,b as K,l as A,j as c,eV as q}from"./index-C0fgwI3q.js";import{u as O}from"./useInfiniteQuery-zf3eIx4Y.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-C1rMTcOk.js";function X(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:z,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(Y)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function Y(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),f=o&&"cursor-pointer hover:bg-muted/50";let d;e[0]!==a||e[1]!==f?(d=A("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,_=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(V,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
1
+ import{c as M,a2 as S,a9 as $,K as F,ag as R,b as K,l as A,j as c,eW as q}from"./index-CT-xO5mU.js";import{u as O}from"./useInfiniteQuery-2O3uSnGt.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-BObA6Fjt.js";function X(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:z,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(Y)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function Y(t){return t.items}function z(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),f=o&&"cursor-pointer hover:bg-muted/50";let d;e[0]!==a||e[1]!==f?(d=A("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=e[2];const I=o?"button":void 0,_=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(V,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==d||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};