decocms 2.310.3 → 2.310.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 (228) hide show
  1. package/dist/client/assets/{AlertCircle-B72APkrz.js → AlertCircle-Cxcba8DN.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-Dz0P9WNF.js → ArrowNarrowLeft-CtUMVsB_.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-CCQZEQ7k.js → ArrowUpRight-ZaII7u8u.js} +1 -1
  4. package/dist/client/assets/{Check-CUpq9BBu.js → Check-BStFjKto.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-DTCxFilU.js → CheckCircle-CkSmS6Cg.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-D5WF5tyi.js → ChevronDown-CJ0icK2r.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-DwbV0YDZ.js → ChevronRight-Dw3Db6I0.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-CDMPc0ql.js → ChevronUp-BDsNPBis.js} +1 -1
  9. package/dist/client/assets/{Container-BioZd28q.js → Container-WBb7qbdD.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-D8wcDPCU.js → DotsVertical-BPk38qYQ.js} +1 -1
  11. package/dist/client/assets/{LinkExternal01-CKpEz_fF.js → LinkExternal01-6x3Iy4Gd.js} +1 -1
  12. package/dist/client/assets/{Lock01-CHfwR6Qi.js → Lock01-DA0MuRwj.js} +1 -1
  13. package/dist/client/assets/{Palette-brLBiHpP.js → Palette-DfzN4-9K.js} +1 -1
  14. package/dist/client/assets/{Play-DRCdZRLW.js → Play-QsP1MGXe.js} +1 -1
  15. package/dist/client/assets/{Plus-DNkjVBwq.js → Plus-QZEpDFDV.js} +1 -1
  16. package/dist/client/assets/{RefreshCcw01-CdP9yH0w.js → RefreshCcw01-DKtPikGx.js} +1 -1
  17. package/dist/client/assets/{SearchMd-JqX1mLMq.js → SearchMd-BHubyM0S.js} +1 -1
  18. package/dist/client/assets/{Settings02-D1Jfvo1d.js → Settings02-DpkRLLNd.js} +1 -1
  19. package/dist/client/assets/{Shield01-D5fQpAyA.js → Shield01-BvsHGINb.js} +1 -1
  20. package/dist/client/assets/{Star01-Y834gtsL.js → Star01-DduN7cUl.js} +1 -1
  21. package/dist/client/assets/{Sun-BgOSswUu.js → Sun-k7d5io6k.js} +1 -1
  22. package/dist/client/assets/{Tool01-CXQZ3p7Z.js → Tool01-BPmEF3oC.js} +1 -1
  23. package/dist/client/assets/{Trash01-B8-uqWxa.js → Trash01-DhkmMJFO.js} +1 -1
  24. package/dist/client/assets/{User01-Cxb6YtJq.js → User01-76gT3tOW.js} +1 -1
  25. package/dist/client/assets/{Users03-CXkopkPu.js → Users03-DDHNU2o0.js} +1 -1
  26. package/dist/client/assets/{X-CdXDgTcN.js → X-C_O1kj8t.js} +1 -1
  27. package/dist/client/assets/{XCircle-CjR4LC4r.js → XCircle-D9VV2CKm.js} +1 -1
  28. package/dist/client/assets/{XClose-zqTFiPq2.js → XClose-C21czImH.js} +1 -1
  29. package/dist/client/assets/{Zap--FKeiDFf.js → Zap-TR29R2LK.js} +1 -1
  30. package/dist/client/assets/{ZapSquare-CliIuzcs.js → ZapSquare-OxHp4t0m.js} +1 -1
  31. package/dist/client/assets/{accordion-BBKL1fM-.js → accordion-CTsJVvtX.js} +1 -1
  32. package/dist/client/assets/{agent-icon-CaG-DX2m.js → agent-icon-s17W0wUB.js} +1 -1
  33. package/dist/client/assets/{agents-list-BUqQO9y3.js → agents-list-VvrcV5iJ.js} +1 -1
  34. package/dist/client/assets/ai-providers-CW7mNid6.js +1 -0
  35. package/dist/client/assets/{alert-dialog-B-P8jHly.js → alert-dialog-CmK4A6kC.js} +1 -1
  36. package/dist/client/assets/{auth-catchall-CyIMPFaS.js → auth-catchall-8ZQwpXp5.js} +1 -1
  37. package/dist/client/assets/{automation-list-row-Qk3UXtKg.js → automation-list-row-BCSS4QUj.js} +1 -1
  38. package/dist/client/assets/{automations-CkkIdwK3.js → automations-DeCusdy6.js} +1 -1
  39. package/dist/client/assets/{avatar-CYyuZ3vB.js → avatar-CSILDiJX.js} +1 -1
  40. package/dist/client/assets/{badge-C-R5WeFR.js → badge-COxphYel.js} +1 -1
  41. package/dist/client/assets/brand-context-CWfr5DVG.js +1 -0
  42. package/dist/client/assets/{card-BWjsP1pO.js → card-CBJhlNRB.js} +1 -1
  43. package/dist/client/assets/{chat-context-D7DJNKEQ.js → chat-context-De5Jlj4X.js} +1 -1
  44. package/dist/client/assets/{checkbox-DRyB8BVf.js → checkbox-DjVRr70r.js} +1 -1
  45. package/dist/client/assets/{collection-detail-BiG3-7wS.js → collection-detail-DpmRlPMa.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-D0yyhe94.js → collection-display-button-BbDt8MHw.js} +1 -1
  47. package/dist/client/assets/{collection-search-CVa4reVh.js → collection-search-CfovRENW.js} +1 -1
  48. package/dist/client/assets/{collection-search-BtC9EgTH.js → collection-search-Qnmn9Jjl.js} +1 -1
  49. package/dist/client/assets/{collection-table-wrapper-C2Zi2ikn.js → collection-table-wrapper-CnIJP88L.js} +1 -1
  50. package/dist/client/assets/{collection-tabs-8bicuWoG.js → collection-tabs-BJ2mAaff.js} +1 -1
  51. package/dist/client/assets/{collections-ZqRHYd6U.js → collections-BNKaenRk.js} +1 -1
  52. package/dist/client/assets/{command-BUJHwA-d.js → command-DPlcxMzI.js} +1 -1
  53. package/dist/client/assets/{connection-card-CiNzXirJ.js → connection-card-CuHLr6qd.js} +1 -1
  54. package/dist/client/assets/{connection-detail-DQFCqOq5.js → connection-detail-b2gPCepr.js} +1 -1
  55. package/dist/client/assets/{connection-form-helpers-BFnOvbFy.js → connection-form-helpers-CAZC18NZ.js} +1 -1
  56. package/dist/client/assets/{connections-BzqA2cUL.js → connections-BQvZQo8B.js} +1 -1
  57. package/dist/client/assets/{constants-Df56C9B1.js → constants-BKat4sJw.js} +1 -1
  58. package/dist/client/assets/{constants-BmLTAQzq.js → constants-B_3LNOq3.js} +1 -1
  59. package/dist/client/assets/{dialog-HqMwvS0c.js → dialog-DxHqBK-g.js} +1 -1
  60. package/dist/client/assets/{domain-settings-8zUtZk7o.js → domain-settings-Dj6mogBD.js} +1 -1
  61. package/dist/client/assets/{drawer-hkToOxOG.js → drawer-CPYawKkb.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-CD1YJIi0.js → dropdown-menu-Do_6-JC4.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout--sGvQXk2.js → dynamic-plugin-layout-CGObbc--.js} +1 -1
  64. package/dist/client/assets/{empty-state-B29HN9Vl.js → empty-state-Bmp0M8wH.js} +1 -1
  65. package/dist/client/assets/{empty-state-CElAqeAn.js → empty-state-DDT6Axd2.js} +1 -1
  66. package/dist/client/assets/{extract-connection-data-DYXiFLZH.js → extract-connection-data-ooIvzjyZ.js} +1 -1
  67. package/dist/client/assets/{features-Dvru3uGD.js → features-Ck3YVx8z.js} +1 -1
  68. package/dist/client/assets/{form-CKajJk24.js → form-BV__Eo4v.js} +1 -1
  69. package/dist/client/assets/general-J5FLwmfS.js +1 -0
  70. package/dist/client/assets/{index--52kuhAD.js → index-BKcT0ut5.js} +1 -1
  71. package/dist/client/assets/{index-CnR4TnGO.js → index-BZ3dhBMg.js} +1 -1
  72. package/dist/client/assets/{index-CgQG3OxM.js → index-Baly1FX_.js} +1 -1
  73. package/dist/client/assets/{index-k8njt3_A.js → index-BjqwKAPh.js} +2 -2
  74. package/dist/client/assets/{index-Boo37gVZ.js → index-BrMQgHVf.js} +1 -1
  75. package/dist/client/assets/{index-CHpjwsZ-.js → index-CFiXkeYB.js} +1 -1
  76. package/dist/client/assets/{index-Y4klGMPr.js → index-CKPYZoPD.js} +1 -1
  77. package/dist/client/assets/{index-D7rGFiVq.js → index-CQAZn3EK.js} +1 -1
  78. package/dist/client/assets/{index-CMbhqARA.js → index-CjZClkan.js} +1 -1
  79. package/dist/client/assets/{index-ClxNnAsp.js → index-CkXbIQAg.js} +1 -1
  80. package/dist/client/assets/{index-CO402MfB.js → index-D075V-Aw.js} +1 -1
  81. package/dist/client/assets/{index-DVk4aJ0j.js → index-D9tByeUz.js} +1 -1
  82. package/dist/client/assets/index-DJnCb9MX.js +182 -0
  83. package/dist/client/assets/{index-BPgW_PVH.js → index-DO6HBQ4K.js} +1 -1
  84. package/dist/client/assets/{index-D9-ppQFz.js → index-Dt0vRnUx.js} +1 -1
  85. package/dist/client/assets/index-DxiAr3ci.js +1 -0
  86. package/dist/client/assets/{infiniteQueryObserver-IG8f9wWg.js → infiniteQueryObserver-BOOXGQo2.js} +1 -1
  87. package/dist/client/assets/{input-DrFzs1Yw.js → input-BY95D9hS.js} +1 -1
  88. package/dist/client/assets/{integration-icon-DUMCOZJc.js → integration-icon-BTq6hO7n.js} +1 -1
  89. package/dist/client/assets/{label-0J4Z8Ji8.js → label-Z9ad9sg6.js} +1 -1
  90. package/dist/client/assets/{layout-zbF9c9kI.js → layout-D9TsRZCx.js} +1 -1
  91. package/dist/client/assets/lean-canvas-recruit-modal-OmMNmndT.js +139 -0
  92. package/dist/client/assets/{login-m1plet6k.js → login-C9jgvn5K.js} +1 -1
  93. package/dist/client/assets/{members-DsVQeYYP.js → members-CBmW6KwZ.js} +1 -1
  94. package/dist/client/assets/{monaco-editor-Br1M5lwR.js → monaco-editor-UyxFxpQH.js} +1 -1
  95. package/dist/client/assets/{monitoring-stats-row-BtBHpMXc.js → monitoring-stats-row-DdON8HAn.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-D6DOFeyW.js → oauth-callback-D7SVJIig.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-ai-provider-wUhwntlH.js → oauth-callback-ai-provider-D_zvQ6_C.js} +1 -1
  98. package/dist/client/assets/{onboarding-dml5YruP.js → onboarding-0k8ZSX_k.js} +1 -1
  99. package/dist/client/assets/{org-layout-QSP-N9k0.js → org-layout-D_IQBqiz.js} +1 -1
  100. package/dist/client/assets/{org-plugin-layout-ZONr0rlX.js → org-plugin-layout-CSiRNaTu.js} +1 -1
  101. package/dist/client/assets/{pair-mf97TAS_.js → pair-DxZ7l3-Z.js} +1 -1
  102. package/dist/client/assets/{plugin-empty-state-CFxEUNdF.js → plugin-empty-state-Dp1Lzm8V.js} +1 -1
  103. package/dist/client/assets/{plugin-header-HXnwUdYS.js → plugin-header-9vDTFdB9.js} +1 -1
  104. package/dist/client/assets/{plugin-layout-ZwMLw5wK.js → plugin-layout-3ykxXUjf.js} +1 -1
  105. package/dist/client/assets/{popover-DUMNq33j.js → popover-Zakke__8.js} +1 -1
  106. package/dist/client/assets/profile-9LB06cBx.js +1 -0
  107. package/dist/client/assets/{project-app-view-Di4yF5Oz.js → project-app-view-CqdnMjZ0.js} +1 -1
  108. package/dist/client/assets/registry-DqBhBsD3.js +2 -0
  109. package/dist/client/assets/{registry-layout-B2U_9fgO.js → registry-layout-CJQb6Z8y.js} +1 -1
  110. package/dist/client/assets/{required-auth-layout-PH0-_blQ.js → required-auth-layout-BxrX3bDQ.js} +1 -1
  111. package/dist/client/assets/{reset-password-5ioWEbN5.js → reset-password-B5KLP3tu.js} +1 -1
  112. package/dist/client/assets/{roles-4ojRgHgc.js → roles-DGvkLiRr.js} +1 -1
  113. package/dist/client/assets/{scroll-area-D_tsHfC-.js → scroll-area-DkrmJo9D.js} +1 -1
  114. package/dist/client/assets/{search-input-Boj5tfQn.js → search-input-CdGp9qCd.js} +1 -1
  115. package/dist/client/assets/{select-B3lWwv9y.js → select-CR2tN9TX.js} +1 -1
  116. package/dist/client/assets/{select-model-C-fLwr4k.js → select-model-CQhnH5Rx.js} +1 -1
  117. package/dist/client/assets/{settings-layout-U-ZhWkRq.js → settings-layout-DHX6Eu2B.js} +1 -1
  118. package/dist/client/assets/{settings-section-qufbNRCL.js → settings-section-67sbTFXw.js} +1 -1
  119. package/dist/client/assets/{shell-layout-G8D-0WXl.js → shell-layout-CimuPmyV.js} +1 -1
  120. package/dist/client/assets/{skeleton-BfKJMKYc.js → skeleton-CS-2bSP9.js} +1 -1
  121. package/dist/client/assets/{sso-BdojNoX2.js → sso-Dr2zYrCj.js} +1 -1
  122. package/dist/client/assets/{store-DGVb_5C1.js → store-DpWEzwk_.js} +1 -1
  123. package/dist/client/assets/store-registry-CQpdN133.js +2 -0
  124. package/dist/client/assets/{switch-YLfAn92x.js → switch-zLHY6ITD.js} +1 -1
  125. package/dist/client/assets/{table-wHPRdxYv.js → table-CegXcKEa.js} +1 -1
  126. package/dist/client/assets/{tabs-8aX3BTo-.js → tabs-CJQTWD5_.js} +1 -1
  127. package/dist/client/assets/{task-status-CY3ltf_M.js → task-status-0vcjP9bK.js} +1 -1
  128. package/dist/client/assets/{textarea-BJZt5-vN.js → textarea-fydFuW_3.js} +1 -1
  129. package/dist/client/assets/{toggle-group-C_B32Tm8.js → toggle-group-7VcHOdQ-.js} +1 -1
  130. package/dist/client/assets/{tools-list-bxPeEc0p.js → tools-list-DqqciwCd.js} +1 -1
  131. package/dist/client/assets/{tooltip-B26xbtws.js → tooltip-D_AU3yF1.js} +1 -1
  132. package/dist/client/assets/{types-DfgXo_cD.js → types-Cnb1YG8h.js} +1 -1
  133. package/dist/client/assets/{use-ai-providers-CnyJW7s-.js → use-ai-providers-BJDLmjji.js} +1 -1
  134. package/dist/client/assets/{use-collections-D66SnH5Q.js → use-collections-Gut3G1oa.js} +1 -1
  135. package/dist/client/assets/{use-connection-9VrA1Bg7.js → use-connection-DPW4E_0G.js} +1 -1
  136. package/dist/client/assets/{use-copy-DpxSUjqd.js → use-copy-B4TaRnHv.js} +1 -1
  137. package/dist/client/assets/{use-create-virtual-mcp-DBfs4FWm.js → use-create-virtual-mcp-DIprfvzX.js} +1 -1
  138. package/dist/client/assets/{use-debounced-autosave-Ja8PcJv_.js → use-debounced-autosave-DHCyVVfx.js} +1 -1
  139. package/dist/client/assets/{use-decopilot-events-DjAxcjIH.js → use-decopilot-events-Cbmf5tlg.js} +1 -1
  140. package/dist/client/assets/{use-delete-connection-7Blp6D0s.js → use-delete-connection-WVmPLIlj.js} +1 -1
  141. package/dist/client/assets/{use-infinite-scroll-IwyU_OvC.js → use-infinite-scroll-T0hVA3O9.js} +1 -1
  142. package/dist/client/assets/{use-list-state-Dk2QFrYd.js → use-list-state-DA3cifaL.js} +1 -1
  143. package/dist/client/assets/{use-mcp-tools-C7yIpDHe.js → use-mcp-tools-iAx7skPl.js} +1 -1
  144. package/dist/client/assets/{use-members-Bg4ZFsu9.js → use-members-j0TSecaQ.js} +1 -1
  145. package/dist/client/assets/{use-navigate-to-agent-BehsrrsA.js → use-navigate-to-agent-BCE8xoYG.js} +1 -1
  146. package/dist/client/assets/{use-org-auth-client-mkgKwCAh.js → use-org-auth-client-Csj669Fw.js} +1 -1
  147. package/dist/client/assets/{use-org-sso-Xv4QV2bL.js → use-org-sso-Cm8qhi19.js} +1 -1
  148. package/dist/client/assets/{use-organization-roles-BmH8DM7C.js → use-organization-roles-InflUxV2.js} +1 -1
  149. package/dist/client/assets/{use-organization-settings-Coi7Ggqq.js → use-organization-settings-sGFYoeez.js} +1 -1
  150. package/dist/client/assets/{use-registry-connections-_83vUYHS.js → use-registry-connections-CA8kz06E.js} +1 -1
  151. package/dist/client/assets/{use-status-sounds-DLYnzZvv.js → use-status-sounds-DM61lJPE.js} +1 -1
  152. package/dist/client/assets/{use-tasks-CUt44N_R.js → use-tasks-C2Vyiupf.js} +1 -1
  153. package/dist/client/assets/{use-view-mode-CZXZPLm6.js → use-view-mode-BoUYdfcR.js} +1 -1
  154. package/dist/client/assets/{use-virtual-mcp-BlYQqAfZ.js → use-virtual-mcp-DER1r6QO.js} +1 -1
  155. package/dist/client/assets/useInfiniteQuery-BjzmzsUJ.js +1 -0
  156. package/dist/client/assets/useSuspenseInfiniteQuery-SvwkjZhj.js +1 -0
  157. package/dist/client/assets/{user-BFqIXUgg.js → user-Di0TXJ3H.js} +1 -1
  158. package/dist/client/assets/{view-mode-toggle-BC7A6oBR.js → view-mode-toggle-DoU7eK15.js} +1 -1
  159. package/dist/client/assets/{workflow-B3ajRQIi.js → workflow-DkCqRbGa.js} +1 -1
  160. package/dist/client/assets/workflow-detail-CbEkNnBb.js +1 -0
  161. package/dist/client/index.html +1 -1
  162. package/dist/server/cli.js +1 -1
  163. package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
  164. package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
  165. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
  166. package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
  167. package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
  168. package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
  169. package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
  170. package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
  171. package/dist/server/node_modules/mimic-fn/index.js +13 -0
  172. package/dist/server/node_modules/{is-fullwidth-code-point → mimic-fn}/license +1 -1
  173. package/dist/server/node_modules/{onetime → mimic-fn}/package.json +15 -16
  174. package/dist/server/node_modules/mimic-fn/readme.md +69 -0
  175. package/dist/server/node_modules/pg/LICENSE +21 -0
  176. package/dist/server/node_modules/pg/README.md +95 -0
  177. package/dist/server/node_modules/pg/esm/index.mjs +20 -0
  178. package/dist/server/node_modules/pg/lib/client.js +743 -0
  179. package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
  180. package/dist/server/node_modules/pg/lib/connection.js +221 -0
  181. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
  182. package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
  183. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
  184. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
  185. package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
  186. package/dist/server/node_modules/pg/lib/defaults.js +91 -0
  187. package/dist/server/node_modules/pg/lib/index.js +73 -0
  188. package/dist/server/node_modules/pg/lib/native/client.js +323 -0
  189. package/dist/server/node_modules/pg/lib/native/index.js +2 -0
  190. package/dist/server/node_modules/pg/lib/native/query.js +165 -0
  191. package/dist/server/node_modules/pg/lib/query.js +252 -0
  192. package/dist/server/node_modules/pg/lib/result.js +109 -0
  193. package/dist/server/node_modules/pg/lib/stream.js +83 -0
  194. package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
  195. package/dist/server/node_modules/pg/lib/utils.js +217 -0
  196. package/dist/server/node_modules/pg/package.json +76 -0
  197. package/package.json +1 -1
  198. package/dist/client/assets/ai-providers-BvV5AI1b.js +0 -1
  199. package/dist/client/assets/brand-context-BqPn2XVA.js +0 -1
  200. package/dist/client/assets/general-D8u2dVV2.js +0 -1
  201. package/dist/client/assets/index-BPbckF-i.js +0 -182
  202. package/dist/client/assets/index-BTded5vd.js +0 -1
  203. package/dist/client/assets/lean-canvas-recruit-modal-D2QgFiqW.js +0 -139
  204. package/dist/client/assets/profile-CyqjRQfg.js +0 -1
  205. package/dist/client/assets/registry-DgOCTdY8.js +0 -2
  206. package/dist/client/assets/store-registry-KlW3QwUJ.js +0 -2
  207. package/dist/client/assets/useInfiniteQuery-BJ1I2JSf.js +0 -1
  208. package/dist/client/assets/useSuspenseInfiniteQuery-BpfkmtaB.js +0 -1
  209. package/dist/client/assets/workflow-detail-l83JU-Mp.js +0 -1
  210. package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
  211. package/dist/server/node_modules/ansi-regex/index.js +0 -14
  212. package/dist/server/node_modules/ansi-regex/package.json +0 -61
  213. package/dist/server/node_modules/ansi-regex/readme.md +0 -66
  214. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  215. package/dist/server/node_modules/emoji-regex/README.md +0 -107
  216. package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
  217. package/dist/server/node_modules/emoji-regex/index.js +0 -4
  218. package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
  219. package/dist/server/node_modules/emoji-regex/package.json +0 -45
  220. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  221. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  222. package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
  223. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  224. package/dist/server/node_modules/onetime/index.d.ts +0 -64
  225. package/dist/server/node_modules/onetime/index.js +0 -44
  226. package/dist/server/node_modules/onetime/license +0 -9
  227. package/dist/server/node_modules/onetime/readme.md +0 -94
  228. /package/dist/server/node_modules/{ansi-regex → get-east-asian-width}/license +0 -0
@@ -1 +0,0 @@
1
- import{e as n,j as r,r as d,g as h,O as f,l as u}from"./index-k8njt3_A.js";import{S as j,a as b,b as S}from"./index-ClxNnAsp.js";import{u as _}from"./tooltip-B26xbtws.js";import{u as k,T as y,a as T,b as i,S as g}from"./index-DVk4aJ0j.js";import{C as v}from"./chat-context-D7DJNKEQ.js";import"./X-CdXDgTcN.js";import"./agent-icon-CaG-DX2m.js";import"./AlertCircle-B72APkrz.js";import"./Tool01-CXQZ3p7Z.js";import"./XClose-zqTFiPq2.js";import"./RefreshCcw01-CdP9yH0w.js";import"./ArrowNarrowLeft-Dz0P9WNF.js";import"./XCircle-CjR4LC4r.js";import"./ArrowUpRight-CCQZEQ7k.js";import"./ZapSquare-CliIuzcs.js";import"./Users03-CXkopkPu.js";import"./CheckCircle-DTCxFilU.js";import"./Check-CUpq9BBu.js";import"./ChevronDown-D5WF5tyi.js";import"./ChevronRight-DwbV0YDZ.js";import"./ChevronUp-CDMPc0ql.js";import"./DotsVertical-D8wcDPCU.js";import"./Container-BioZd28q.js";import"./Star01-Y834gtsL.js";import"./Palette-brLBiHpP.js";import"./SearchMd-JqX1mLMq.js";import"./LinkExternal01-CKpEz_fF.js";import"./Lock01-CHfwR6Qi.js";import"./Sun-BgOSswUu.js";import"./Play-DRCdZRLW.js";import"./Plus-DNkjVBwq.js";import"./Settings02-D1Jfvo1d.js";import"./Shield01-D5fQpAyA.js";import"./Trash01-B8-uqWxa.js";import"./User01-Cxb6YtJq.js";import"./Zap--FKeiDFf.js";import"./shell-layout-G8D-0WXl.js";import"./dialog-HqMwvS0c.js";import"./required-auth-layout-PH0-_blQ.js";import"./use-tasks-CUt44N_R.js";import"./use-collections-D66SnH5Q.js";import"./constants-Df56C9B1.js";import"./use-organization-settings-Coi7Ggqq.js";import"./use-org-sso-Xv4QV2bL.js";import"./pair-mf97TAS_.js";import"./index-BPgW_PVH.js";import"./use-copy-DpxSUjqd.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-DfgXo_cD.js";import"./integration-icon-DUMCOZJc.js";import"./use-virtual-mcp-BlYQqAfZ.js";import"./skeleton-BfKJMKYc.js";import"./popover-DUMNq33j.js";import"./drawer-hkToOxOG.js";import"./avatar-CYyuZ3vB.js";import"./alert-dialog-B-P8jHly.js";import"./form-CKajJk24.js";import"./label-0J4Z8Ji8.js";import"./input-DrFzs1Yw.js";import"./index-Y4klGMPr.js";import"./use-mcp-tools-C7yIpDHe.js";import"./use-ai-providers-CnyJW7s-.js";import"./index-CHpjwsZ-.js";import"./switch-YLfAn92x.js";import"./use-connection-9VrA1Bg7.js";import"./lean-canvas-recruit-modal-D2QgFiqW.js";import"./use-navigate-to-agent-BehsrrsA.js";import"./collection-search-CVa4reVh.js";import"./checkbox-DRyB8BVf.js";import"./extract-connection-data-DYXiFLZH.js";import"./constants-BmLTAQzq.js";import"./collections-ZqRHYd6U.js";import"./tabs-8aX3BTo-.js";import"./select-B3lWwv9y.js";import"./toggle-group-C_B32Tm8.js";import"./select-model-C-fLwr4k.js";import"./ai-providers-logos-DD3qZ33J.js";import"./use-debounced-autosave-Ja8PcJv_.js";import"./settings-section-qufbNRCL.js";import"./card-BWjsP1pO.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./dropdown-menu-CD1YJIi0.js";import"./index-D7rGFiVq.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CiNzXirJ.js";import"./use-registry-connections-_83vUYHS.js";import"./useInfiniteQuery-BJ1I2JSf.js";import"./infiniteQueryObserver-IG8f9wWg.js";import"./collection-tabs-8bicuWoG.js";import"./badge-C-R5WeFR.js";import"./textarea-BJZt5-vN.js";import"./connection-form-helpers-BFnOvbFy.js";import"./use-infinite-scroll-IwyU_OvC.js";import"./useSuspenseInfiniteQuery-BpfkmtaB.js";import"./collection-search-BtC9EgTH.js";import"./use-create-virtual-mcp-DBfs4FWm.js";import"./empty-state-CElAqeAn.js";import"./use-decopilot-events-DjAxcjIH.js";import"./create-sse-subscription-CxkOgzKf.js";import"./task-status-CY3ltf_M.js";const N=280;function P(){const t=n.c(2),{tasksOpen:e}=k();if(!e)return null;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={width:`${N}px`},t[0]=o):o=t[0];let m;return t[1]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("aside",{className:"shrink-0 h-full bg-sidebar pb-1",style:o,children:r.jsx("div",{className:"h-full p-0.5 pt-0.25",children:r.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden card-shadow",children:r.jsx(y,{})})})}),t[1]=m):m=t[1],m}function C(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(d.Suspense,{fallback:null,children:r.jsx(P,{})}),t[0]=e):e=t[0],e}function x(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx(u,{size:20,className:"animate-spin text-muted-foreground"})}),t[0]=e):e=t[0],e}function gr(){const t=n.c(7),e=_();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const c=!!h(o).taskId;let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s={"--sidebar-width-icon":"3.5rem"},t[1]=s):s=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(g,{}),t[2]=l):l=t[2];let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p={background:"transparent",containerType:"inline-size"},t[3]=p):p=t[3];let a;return t[4]!==c||t[5]!==e?(a=r.jsx(j,{defaultOpen:!1,children:r.jsx("div",{className:"flex flex-col h-dvh overflow-hidden",children:r.jsxs(b,{className:"flex-1 bg-sidebar",style:s,children:[l,r.jsx(S,{className:"flex flex-col",style:p,children:r.jsx(v,{children:r.jsx(T,{children:e?r.jsx(d.Suspense,{fallback:r.jsx(x,{}),children:r.jsx(f,{})}):r.jsxs(i,{children:[r.jsxs(i.Header,{children:[r.jsxs(i.LeftColumn,{children:[r.jsx(i.Nav,{}),r.jsx(i.TogglesSlot,{})]}),r.jsx(i.CenterSlot,{}),r.jsxs(i.RightColumn,{children:[r.jsx(i.TabsSlot,{}),r.jsx(i.RightSlot,{})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex flex-row",children:[c&&r.jsx(C,{}),r.jsx(d.Suspense,{fallback:r.jsx(x,{}),children:r.jsx(f,{})})]})]})})})})]})})}),t[4]=c,t[5]=e,t[6]=a):a=t[6],a}export{gr as default};
@@ -1,139 +0,0 @@
1
- import{e as k,j as t,s as $,o as je,b as Fe,r as O,K as ne,n as He,a as Be,c as xe,B as ae,t as D,x as oe,G as Xe,F as Ze,v as ve,P as et,l as Ne,w as tt,f as nt}from"./index-k8njt3_A.js";import{S as ce,u as V,d as Ae,W as qe,a as be}from"./constants-Df56C9B1.js";import{a as _e}from"./use-navigate-to-agent-BehsrrsA.js";import{a as le,b as de,c as ue,d as me,D as st}from"./dialog-HqMwvS0c.js";import{i as Ee}from"./RefreshCcw01-CdP9yH0w.js";import{C as Qe}from"./collection-search-CVa4reVh.js";import{C as it}from"./checkbox-DRyB8BVf.js";import{b as Se,u as ot}from"./use-connection-9VrA1Bg7.js";import{i as at}from"./Lock01-CHfwR6Qi.js";import{n as rt}from"./agent-icon-CaG-DX2m.js";import{e as ct}from"./extract-connection-data-DYXiFLZH.js";import{b as Oe,a as Le,c as Re,D as Me}from"./drawer-hkToOxOG.js";import{u as ke}from"./tooltip-B26xbtws.js";import{I as Ue}from"./integration-icon-DUMCOZJc.js";import{u as lt,d as Ke}from"./use-mcp-tools-C7yIpDHe.js";import{a as Pe,b as dt}from"./use-virtual-mcp-BlYQqAfZ.js";function re(i){const e=k.c(4),{size:s,className:a}=i;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=l):l=e[0];let n;return e[1]!==a||e[2]!==s?(n=t.jsx("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:a,children:l}),e[1]=a,e[2]=s,e[3]=n):n=e[3],n}function ut(i){return i.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function mt(i){const e=await fetch(`/api/${i}/deco-sites`);if(!e.ok){const s=await e.json().catch(()=>({}));throw new Error(s.error??`Failed to load sites (${e.status})`)}return e.json()}function Xt(i){const e=k.c(70),{open:s,onOpenChange:a,onBack:l}=i,{org:n}=$(),r=_e(),u=je(),{data:d}=Fe.useSession(),[_,c]=O.useState(null),[h,C]=O.useState("");let f;e[0]!==n.id||e[1]!==n.slug?(f={connectionId:ce,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=f):f=e[2];const p=V(f);let m;e[3]!==d?.user?.email?(m=ne.decoSites(d?.user?.email),e[3]=d?.user?.email,e[4]=m):m=e[4];let g;e[5]!==n.slug?(g=()=>mt(n.slug),e[5]=n.slug,e[6]=g):g=e[6];const x=s&&!!d?.user?.email;let I;e[7]!==m||e[8]!==g||e[9]!==x?(I={queryKey:m,queryFn:g,enabled:x,staleTime:6e4,retry:!1},e[7]=m,e[8]=g,e[9]=x,e[10]=I):I=e[10];const{data:b,isLoading:N,error:y}=He(I),o=b?.sites??[];let T;e[11]!==a?(T=j=>{j||(c(null),C("")),a(j)},e[11]=a,e[12]=T):T=e[12];const w=T;let v;e[13]!==h?(v=j=>j.name.toLowerCase().includes(h.toLowerCase())||j.domains?.[0]?.domain.toLowerCase().includes(h.toLowerCase()),e[13]=h,e[14]=v):v=e[14];const A=o.filter(v),E=!_||A.some(j=>j.name===_);let S;e[15]!==p||e[16]!==n.id||e[17]!==n.slug?(S=async j=>{D("deco_site_import_started",{site_name:j});const P=await fetch(`/api/${n.slug}/deco-sites/connection`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:j,orgId:n.id})}),G=await P.json().catch(pt);if(!P.ok)throw new Error(G.error??`Failed to create connection (${P.status})`);const M=G.connId;if(!M)throw new Error("Server did not return a connection ID");const he=G.icon??null,te=ut(j),Ge=await p.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:j,description:"Imported from deco.cx",pinned:!0,icon:he??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],ui:{banner:null,bannerColor:"#22C55E",icon:he,themeColor:"#22C55E",slug:te,pinnedViews:[{connectionId:M,toolName:"file_explorer",label:"Preview",icon:null},{connectionId:M,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:M,toolName:"get_monitor_data",label:"Monitor",icon:null},{connectionId:M,toolName:"list_pull_requests",label:"Pull Requests",icon:null},{connectionId:M,toolName:"list_releases",label:"Releases",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:M,toolName:"file_explorer"},chatDefaultOpen:!0}}},connections:[{connection_id:M}]}}}),De=Ge.structuredContent??Ge;return{slug:te,virtualMcpId:De.item.id,connId:M,item:De.item}},e[15]=p,e[16]=n.id,e[17]=n.slug,e[18]=S):S=e[18];let R;e[19]!==p||e[20]!==w||e[21]!==r||e[22]!==n.id||e[23]!==u?(R=j=>{const{slug:P,virtualMcpId:G,item:M}=j;D("deco_site_import_succeeded",{site_name:M.title,virtual_mcp_id:G,slug:P}),u.setQueryData(ne.collectionItem(p,n.id,"","VIRTUAL_MCP",G),{item:M}),u.invalidateQueries({predicate:he=>{const te=he.queryKey;return te[1]===n.id&&te[3]==="collection"&&te[4]==="VIRTUAL_MCP"}}),u.invalidateQueries({queryKey:ne.projects(n.id)}),oe.success(`Imported ${P} from deco.cx`),w(!1),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),r(G)},e[19]=p,e[20]=w,e[21]=r,e[22]=n.id,e[23]=u,e[24]=R):R=e[24];let z;e[25]!==S||e[26]!==R?(z={mutationFn:S,onSuccess:R,onError:gt},e[25]=S,e[26]=R,e[27]=z):z=e[27];const U=Be(z),se=de,L=le,ie="sm:max-w-[900px] p-0 gap-0 overflow-hidden";let F;e[28]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(ue,{className:"sr-only",children:t.jsx(me,{children:"Import from deco.cx"})}),e[28]=F):F=e[28];let H;e[29]!==l?(H=l&&t.jsx("button",{type:"button",onClick:l,className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors","aria-label":"Go back",children:t.jsx(Ee,{size:18})}),e[29]=l,e[30]=H):H=e[30];let fe;e[31]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Import from deco.cx"}),e[31]=fe):fe=e[31];let B;e[32]!==H?(B=t.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[H,fe]}),e[32]=H,e[33]=B):B=e[33];let ge;e[34]===Symbol.for("react.memo_cache_sentinel")?(ge=j=>{j.key==="Escape"&&C("")},e[34]=ge):ge=e[34];let q;e[35]!==h?(q=t.jsx("div",{children:t.jsx(Qe,{value:h,onChange:C,placeholder:"Search sites...",onKeyDown:ge})}),e[35]=h,e[36]=q):q=e[36];const Je="pb-0 min-h-[300px]";let Q;e[37]!==N?(Q=N&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Loading sites..."}),e[37]=N,e[38]=Q):Q=e[38];const Ce=!N&&!y&&o.length===0&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"No sites found for this account."}),Te=!N&&o.length>0&&t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 max-h-[420px] overflow-y-auto py-4 px-8 [scrollbar-gutter:stable]",children:[A.length===0&&t.jsxs("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:["No sites match “",h,"”"]}),A.map(j=>{const P=j.domains?.find(ft)?.domain??j.domains?.[0]?.domain,G=_===j.name;return t.jsxs("button",{type:"button",onClick:()=>c(j.name),className:xe("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",G?"border-primary ring-1 ring-primary":"border-border hover:border-muted-foreground/40"),children:[t.jsx("div",{className:"w-full aspect-video bg-muted overflow-hidden",children:j.thumb_url?t.jsx("img",{src:j.thumb_url,alt:j.name,className:"w-full h-full object-cover",loading:"lazy"}):t.jsx("div",{className:"w-full h-full bg-muted"})}),t.jsxs("div",{className:"px-4 py-3",children:[t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:j.name}),P&&t.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:P})]})]},j.name)})]});let K;e[39]!==Q||e[40]!==Ce||e[41]!==Te?(K=t.jsxs("div",{className:Je,children:[Q,Ce,Te]}),e[39]=Q,e[40]=Ce,e[41]=Te,e[42]=K):K=e[42];let Y;e[43]!==w?(Y=()=>w(!1),e[43]=w,e[44]=Y):Y=e[44];let W;e[45]!==U.isPending||e[46]!==Y?(W=t.jsx(ae,{variant:"outline",onClick:Y,disabled:U.isPending,children:"Cancel"}),e[45]=U.isPending,e[46]=Y,e[47]=W):W=e[47];const Ie=!_||!E||U.isPending||N;let J;e[48]!==U||e[49]!==_?(J=()=>_&&U.mutate(_),e[48]=U,e[49]=_,e[50]=J):J=e[50];const ye=U.isPending?"Importing...":"Import";let X;e[51]!==Ie||e[52]!==J||e[53]!==ye?(X=t.jsx(ae,{disabled:Ie,onClick:J,children:ye}),e[51]=Ie,e[52]=J,e[53]=ye,e[54]=X):X=e[54];let Z;e[55]!==W||e[56]!==X?(Z=t.jsxs(st,{className:"px-8 py-5 border-t border-border",children:[W,X]}),e[55]=W,e[56]=X,e[57]=Z):Z=e[57];let ee;e[58]!==L||e[59]!==F||e[60]!==B||e[61]!==q||e[62]!==K||e[63]!==Z?(ee=t.jsxs(L,{className:ie,children:[F,B,q,K,Z]}),e[58]=L,e[59]=F,e[60]=B,e[61]=q,e[62]=K,e[63]=Z,e[64]=ee):ee=e[64];let pe;return e[65]!==se||e[66]!==w||e[67]!==s||e[68]!==ee?(pe=t.jsx(se,{open:s,onOpenChange:w,children:ee}),e[65]=se,e[66]=w,e[67]=s,e[68]=ee,e[69]=pe):pe=e[69],pe}function ft(i){return i.production}function gt(i){D("deco_site_import_failed",{error:i instanceof Error?i.message:"Unknown error"}),oe.error("Import failed: "+(i instanceof Error?i.message:"Unknown error"))}function pt(){return{}}function Ye(i,e){const s=k.c(12),{org:a}=$();let l;s[0]!==a.id?(l=Ae.REGISTRY(a.id),s[0]=a.id,s[1]=l):l=s[1];const n=l;let r;s[2]!==a.id||s[3]!==a.slug||s[4]!==n?(r={connectionId:n,orgId:a.id,orgSlug:a.slug},s[2]=a.id,s[3]=a.slug,s[4]=n,s[5]=r):r=s[5];const u=V(r);let d;s[6]!==i?(d={name:i},s[6]=i,s[7]=d):d=s[7];const _=e?.enabled??!0;let c;return s[8]!==u||s[9]!==d||s[10]!==_?(c={client:u,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:d,enabled:_,staleTime:3e5,select:ht},s[8]=u,s[9]=d,s[10]=_,s[11]=c):c=s[11],lt(c)}function ht(i){return i.structuredContent?.item??null}const xt="deco/mcp-github";function Nt(i){const{org:e}=$(),{data:s}=Fe.useSession(),a=Se(),l=je(),[n,r]=O.useState("idle"),[u,d]=O.useState(null),[_,c]=O.useState(null),{data:h,isLoading:C}=Ye(xt,{enabled:i.enabled}),f=O.useRef(!1);i.enabled&&h&&!C&&!f.current&&s?.user?.id&&n==="idle"&&(f.current=!0,p());async function p(){if(!(!h||!s?.user?.id||!e))try{r("installing"),d(null);const g=ct(h,e.id,s.user.id,{remoteIndex:0});if(!g.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:I}=await a.create.mutateAsync(g);r("authenticating");const b=new URL(`/api/${e.slug}/mcp/${I}`,window.location.origin),N=await Xe({url:b.href,token:null,orgId:e.id});if(N.supportsOAuth&&!N.isAuthenticated){const{token:y,tokenInfo:o,error:T}=await Ze({connectionId:I,orgSlug:e.slug,scope:"offline_access"});if(T||!y){try{await a.delete.mutateAsync(I)}catch{}throw new Error(T??"No token received from GitHub")}if(o)try{(await fetch(`/api/${e.slug}/connections/${I}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:o.accessToken,refreshToken:o.refreshToken,expiresIn:o.expiresIn,scope:o.scope,clientId:o.clientId,clientSecret:o.clientSecret,tokenEndpoint:o.tokenEndpoint})})).ok||await a.update.mutateAsync({id:I,data:{connection_token:y}})}catch{await a.update.mutateAsync({id:I,data:{connection_token:y}})}}ve(l,e.id),c(g),r("ready")}catch(g){d(g instanceof Error?g.message:String(g)),r("error")}}function m(){r("idle"),d(null),c(null),f.current=!1}return i.enabled&&C&&n==="idle"?{status:"installing",error:null,connection:null,retry:m}:{status:n,error:u,connection:_,retry:m}}function Zt(i){const e=k.c(21),{open:s,onOpenChange:a,title:l,hideAutoRespondCheckbox:n,onImportComplete:r}=i,u=l===void 0?"Import from GitHub":l,d=n===void 0?!1:n,[_]=et(),[c,h]=O.useState(null);if(!_.experimental_vibecode)return null;let C;e[0]!==u?(C=t.jsx(ue,{className:"sr-only",children:t.jsx(me,{children:u})}),e[0]=u,e[1]=C):C=e[1];let f;e[2]!==c||e[3]!==u?(f=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:c?t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>h(null),className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors shrink-0","aria-label":"Back to accounts",children:t.jsx(Ee,{size:16})}),t.jsx("img",{src:c.avatarUrl,alt:c.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:c.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(re,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:u})]})}),e[2]=c,e[3]=u,e[4]=f):f=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=p):p=e[5];let m;e[6]!==a?(m=()=>a(!1),e[6]=a,e[7]=m):m=e[7];let g;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==m?(g=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(O.Suspense,{fallback:p,children:t.jsx(_t,{onComplete:m,selectedInstallation:c,onSelectInstallation:h,hideAutoRespondCheckbox:d,onImportComplete:r})})}),e[8]=d,e[9]=r,e[10]=c,e[11]=m,e[12]=g):g=e[12];let x;e[13]!==C||e[14]!==f||e[15]!==g?(x=t.jsxs(le,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[C,f,g]}),e[13]=C,e[14]=f,e[15]=g,e[16]=x):x=e[16];let I;return e[17]!==a||e[18]!==s||e[19]!==x?(I=t.jsx(de,{open:s,onOpenChange:a,children:x}),e[17]=a,e[18]=s,e[19]=x,e[20]=I):I=e[20],I}function _t({onComplete:i,selectedInstallation:e,onSelectInstallation:s,hideAutoRespondCheckbox:a,onImportComplete:l}){const{org:n}=$(),r=je(),u=_e(),[d,_]=O.useState(null),[c,h]=O.useState(!0),C=a?!0:c,f=ot({slug:"mcp-github"}),p=Nt({enabled:f.length===0}),m=f.length===1?f[0]??null:d,g=V({connectionId:m?.id??"",orgId:n.id,orgSlug:n.slug}),x=V({connectionId:ce,orgId:n.id,orgSlug:n.slug}),I=async(o,T)=>{try{const v=await g.callTool({name:"get_file_contents",arguments:{owner:o.owner,repo:o.name,path:T}});if(v.isError)return null;const E=v.content?.find(S=>S.type==="resource")?.resource?.text;if(!E)return null;try{const S=JSON.parse(E);return typeof S=="string"?S:JSON.stringify(S)}catch{return E}}catch{return null}},b=(o,T)=>{Promise.all([I(T,"AGENTS.md"),I(T,"CLAUDE.md")]).then(async([w,v])=>{const A=w??v??null;A&&(await x.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:o,data:{metadata:{instructions:A}}}}),ve(r,n.id))}).catch(w=>{console.error("GitHub instructions fetch failed:",w)})},N=async({virtualMcpId:o,repo:T,connectionId:w})=>{const v=await g.callTool({name:"TRIGGER_LIST",arguments:{}}),A=v.structuredContent??v,E=A.triggers?.find(L=>L.type==="github.issues.opened")??A.triggers?.find(L=>{const ie=L.type.toLowerCase();return/\bissues?\./.test(ie)&&(ie.endsWith(".opened")||ie.endsWith(".created"))});if(!E)throw new Error("No issue-created trigger exposed by GitHub connection");const S=new Set;if(Array.isArray(E.params))for(const L of E.params)S.add(L.name);else if(E.params&&typeof E.params=="object")for(const L of Object.keys(E.params))S.add(L);if(E.paramsSchema)for(const L of Object.keys(E.paramsSchema))S.add(L);const R={};S.has("repo")?R.repo=`${T.owner}/${T.name}`:(S.has("owner")&&(R.owner=T.owner),S.has("name")&&(R.name=T.name),S.has("repository")&&(R.repository=`${T.owner}/${T.name}`));const z=`A new GitHub issue has been opened in ${T.owner}/${T.name}. Read the issue details, explore the relevant code in the repository, create a new branch, implement the fix or feature requested, and open a pull request that resolves the issue. Reference the issue number in the PR description.`,U=await x.callTool({name:"AUTOMATION_CREATE",arguments:{name:`${T.name}: auto-respond to issues`,virtual_mcp_id:o,messages:z,active:!0}}),se=U.structuredContent??U;await x.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:{automation_id:se.id,type:"event",connection_id:w,event_type:E.type,params:R}})},y=Be({mutationFn:async o=>{if(!m||!e)throw new Error("No GitHub connection or installation");const T=m.id,w=await x.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:o.name,description:o.description||"Imported from GitHub",pinned:!0,icon:null,metadata:{githubRepo:{owner:o.owner,name:o.name,url:o.url,installationId:e.installationId,connectionId:T},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"}}}},connections:[{connection_id:T}]}}}),v=w.structuredContent??w,A=v.item.id;return C&&await N({virtualMcpId:A,repo:o,connectionId:T}).catch(E=>{console.error("Failed to set up issue automation:",E),oe.warning("Imported repo, but failed to set up issue auto-response. You can add the trigger manually from the automations view.")}),{virtualMcpId:A,repo:o,connectionId:T,item:v.item}},onSuccess:({virtualMcpId:o,repo:T,connectionId:w,item:v})=>{if(r.setQueryData(ne.collectionItem(x,n.id,"","VIRTUAL_MCP",o),{item:v}),ve(r,n.id),b(o,T),l){l({virtualMcpId:o,repo:T,connectionId:w});return}oe.success(`Imported ${T.name} from GitHub`),i(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),u(o)},onError:o=>{oe.error("Failed to import repo: "+(o instanceof Error?o.message:"Unknown error"))}});return p.status==="installing"||p.status==="authenticating"?t.jsx(we,{status:p.status,error:null,retry:p.retry}):p.status==="error"?t.jsx(we,{status:"error",error:p.error,retry:p.retry}):f.length===0&&p.status==="idle"?t.jsx(we,{status:"installing",error:null,retry:p.retry}):f.length>1&&!m?t.jsxs("div",{className:"flex flex-col py-2",children:[t.jsx("div",{className:"px-4 py-2",children:t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Select a connection"})}),f.map(o=>t.jsxs("button",{type:"button",onClick:()=>_(o),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[o.icon?t.jsx("img",{src:o.icon,alt:o.title,className:"size-7 rounded-full shrink-0"}):t.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:t.jsx(re,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:o.title})]},o.id))]}):m?e?t.jsx(Tt,{connectionId:m.id,orgId:n.id,orgSlug:n.slug,installation:e,onSelectRepo:o=>y.mutate(o),isSaving:y.isPending,autoRespondToIssues:c,onAutoRespondChange:h,hideAutoRespondCheckbox:a}):t.jsx(Ct,{connectionId:m.id,orgId:n.id,orgSlug:n.slug,onSelect:s,showBackButton:f.length>1,onBack:()=>_(null)}):null}function Ct(i){const e=k.c(31),{connectionId:s,orgId:a,orgSlug:l,onSelect:n,showBackButton:r,onBack:u}=i;let d;e[0]!==a||e[1]!==l?(d={connectionId:ce,orgId:a,orgSlug:l},e[0]=a,e[1]=l,e[2]=d):d=e[2];const _=V(d);let c;e[3]!==s||e[4]!==a?(c=ne.githubUserOrgs(a,s),e[3]=s,e[4]=a,e[5]=c):c=e[5];let h;e[6]!==s||e[7]!==_?(h=async()=>{const T=(await _.callTool({name:"GITHUB_LIST_USER_ORGS",arguments:{connectionId:s}})).content?.[0]?.text;if(!T)throw new Error("No response from GITHUB_LIST_USER_ORGS");return JSON.parse(T)},e[6]=s,e[7]=_,e[8]=h):h=e[8];let C;e[9]!==c||e[10]!==h?(C={queryKey:c,queryFn:h},e[9]=c,e[10]=h,e[11]=C):C=e[11];const f=He(C);if(f.isLoading){let o;return e[12]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[12]=o):o=e[12],o}if(f.isError){let o;return e[13]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx("p",{className:"text-sm text-destructive",children:"Failed to load GitHub accounts"})}),e[13]=o):o=e[13],o}const p=f.data;if(!p)return null;let m;e[14]!==u||e[15]!==r?(m=r&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:u,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(Ee,{size:12}),"Change connection"]})}),e[14]=u,e[15]=r,e[16]=m):m=e[16];let g;if(e[17]!==p.installations||e[18]!==n){let o;e[20]!==n?(o=T=>t.jsxs("button",{type:"button",onClick:()=>n(T),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left group",children:[t.jsx("img",{src:T.avatarUrl,alt:T.login,className:"size-7 rounded-full shrink-0 ring-1 ring-border"}),t.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[t.jsx("span",{className:"text-sm font-medium leading-none",children:T.login}),T.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:"Personal account"})]}),t.jsx("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:"Select →"})]},T.installationId),e[20]=n,e[21]=o):o=e[21],g=p.installations.map(o),e[17]=p.installations,e[18]=n,e[19]=g}else g=e[19];let x;e[22]!==g?(x=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:g}),e[22]=g,e[23]=x):x=e[23];const I=p.appSlug?`https://github.com/apps/${p.appSlug}/installations/new`:"https://github.com/settings/installations";let b;e[24]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"underline underline-offset-2",children:"Install the GitHub App"}),e[24]=b):b=e[24];let N;e[25]!==I?(N=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:I,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Account not listed?"," ",b]})}),e[25]=I,e[26]=N):N=e[26];let y;return e[27]!==N||e[28]!==m||e[29]!==x?(y=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[m,x,N]}),e[27]=N,e[28]=m,e[29]=x,e[30]=y):y=e[30],y}function Tt(i){const e=k.c(25),{connectionId:s,orgId:a,orgSlug:l,installation:n,onSelectRepo:r,isSaving:u,autoRespondToIssues:d,onAutoRespondChange:_,hideAutoRespondCheckbox:c}=i,[h,C]=O.useState(""),f=O.useDeferredValue(h),p=h!==f;let m;e[0]!==p||e[1]!==h?(m=t.jsx(Qe,{placeholder:"Search repositories...",value:h,onChange:C,isSearching:p}),e[0]=p,e[1]=h,e[2]=m):m=e[2];const g=p?"opacity-40":"opacity-100";let x;e[3]!==g?(x=xe("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",g),e[3]=g,e[4]=x):x=e[4];let I;e[5]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ne,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=I):I=e[5];let b;e[6]!==s||e[7]!==f||e[8]!==n||e[9]!==u||e[10]!==r||e[11]!==a||e[12]!==l?(b=t.jsx(O.Suspense,{fallback:I,children:t.jsx(It,{connectionId:s,orgId:a,orgSlug:l,installation:n,query:f,onSelectRepo:r,isSaving:u})}),e[6]=s,e[7]=f,e[8]=n,e[9]=u,e[10]=r,e[11]=a,e[12]=l,e[13]=b):b=e[13];let N;e[14]!==x||e[15]!==b?(N=t.jsx("div",{className:x,children:b}),e[14]=x,e[15]=b,e[16]=N):N=e[16];let y;e[17]!==d||e[18]!==c||e[19]!==_?(y=!c&&t.jsxs("label",{className:"flex items-center gap-2 px-4 py-3 border-t border-border shrink-0 cursor-pointer select-none",children:[t.jsx(it,{checked:d,onCheckedChange:T=>_(T===!0)}),t.jsx("span",{className:"text-xs text-foreground",children:"Auto-respond to new issues with a PR"})]}),e[17]=d,e[18]=c,e[19]=_,e[20]=y):y=e[20];let o;return e[21]!==m||e[22]!==N||e[23]!==y?(o=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[m,N,y]}),e[21]=m,e[22]=N,e[23]=y,e[24]=o):o=e[24],o}function It(i){const e=k.c(29),{connectionId:s,orgId:a,orgSlug:l,installation:n,query:r,onSelectRepo:u,isSaving:d}=i;let _;e[0]!==s||e[1]!==a||e[2]!==l?(_={connectionId:s,orgId:a,orgSlug:l},e[0]=s,e[1]=a,e[2]=l,e[3]=_):_=e[3];const c=V(_),h=n.type==="User"?"user":"org",C=r?`${h}:${n.login} ${r} in:name`:`${h}:${n.login}`;let f;e[4]!==s||e[5]!==n.login||e[6]!==a||e[7]!==r?(f=ne.githubOrgRepos(a,s,n.login,r),e[4]=s,e[5]=n.login,e[6]=a,e[7]=r,e[8]=f):f=e[8];let p;e[9]!==c||e[10]!==C?(p=async()=>{const N=(await c.callTool({name:"search_repositories",arguments:{query:C,page:1,perPage:30}})).content?.[0]?.text;if(!N)throw new Error("No response from search_repositories");return(JSON.parse(N).items??[]).map(yt)},e[9]=c,e[10]=C,e[11]=p):p=e[11];let m;e[12]!==f||e[13]!==p?(m={queryKey:f,queryFn:p},e[12]=f,e[13]=p,e[14]=m):m=e[14];const{data:g}=tt(m);if(g.length===0){let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:"No repositories found"}),e[15]=b):b=e[15];let N;e[16]!==r?(N=r&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Try a different search term"}),e[16]=r,e[17]=N):N=e[17];let y;return e[18]!==N?(y=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[b,N]}),e[18]=N,e[19]=y):y=e[19],y}let x;if(e[20]!==d||e[21]!==u||e[22]!==g){let b;e[24]!==d||e[25]!==u?(b=N=>t.jsxs("button",{type:"button",onClick:()=>u(N),disabled:d,className:"flex items-start gap-3 px-4 py-3 hover:bg-accent transition-colors text-left disabled:opacity-50 disabled:cursor-not-allowed",children:[t.jsx(re,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children:N.name})}),t.jsxs("span",{className:"flex items-center gap-1 text-xs font-medium text-muted-foreground border border-border rounded px-1.5 py-0.5 shrink-0 leading-none",children:[N.private?t.jsx(at,{size:10}):t.jsx(rt,{size:10}),N.private?"Private":"Public"]})]},N.fullName),e[24]=d,e[25]=u,e[26]=b):b=e[26],x=g.map(b),e[20]=d,e[21]=u,e[22]=g,e[23]=x}else x=e[23];let I;return e[27]!==x?(I=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:x}),e[27]=x,e[28]=I):I=e[28],I}function yt(i){return{name:i.name,fullName:i.full_name,owner:i.full_name.split("/")[0]??"",url:i.html_url,private:i.private,description:i.description,updatedAt:i.updated_at}}function we(i){const e=k.c(33),{status:s,error:a,retry:l}=i;if(s==="error"){let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(re,{className:"size-5 text-destructive"})}),e[0]=o):o=e[0];let T;e[1]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("p",{className:"text-sm font-medium",children:"Connection failed"}),e[1]=T):T=e[1];const w=a??"Something went wrong while connecting to GitHub.";let v;e[2]!==w?(v=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[T,t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:w})]}),e[2]=w,e[3]=v):v=e[3];let A;e[4]!==l?(A=t.jsx("button",{type:"button",onClick:l,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:"Try again"}),e[4]=l,e[5]=A):A=e[5];let E;return e[6]!==v||e[7]!==A?(E=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[o,v,A]}),e[6]=v,e[7]=A,e[8]=E):E=e[8],E}const n=s==="authenticating";let r;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(re,{className:"size-5 text-foreground"})}),e[9]=r):r=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{className:"relative size-10",children:[r,t.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 size-4 rounded-full bg-background flex items-center justify-center",children:t.jsx(Ne,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[10]=u):u=e[10];const d=n?"Authenticating with GitHub":"Setting up GitHub";let _;e[11]!==d?(_=t.jsx("p",{className:"text-sm font-medium",children:d}),e[11]=d,e[12]=_):_=e[12];const c=n?"Complete the OAuth flow in your browser":"Installing the GitHub connection...";let h;e[13]!==c?(h=t.jsx("p",{className:"text-xs text-muted-foreground",children:c}),e[13]=c,e[14]=h):h=e[14];let C;e[15]!==_||e[16]!==h?(C=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[_,h]}),e[15]=_,e[16]=h,e[17]=C):C=e[17];const f=n?"bg-muted-foreground/30":"bg-foreground animate-pulse";let p;e[18]!==f?(p=xe("size-1.5 rounded-full",f),e[18]=f,e[19]=p):p=e[19];let m;e[20]!==p?(m=t.jsx("span",{className:p}),e[20]=p,e[21]=m):m=e[21];const g=n?"bg-foreground animate-pulse":"bg-muted-foreground/30";let x;e[22]!==g?(x=xe("size-1.5 rounded-full",g),e[22]=g,e[23]=x):x=e[23];let I;e[24]!==x?(I=t.jsx("span",{className:x}),e[24]=x,e[25]=I):I=e[25];let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[26]=b):b=e[26];let N;e[27]!==m||e[28]!==I?(N=t.jsxs("div",{className:"flex items-center gap-1.5",children:[m,I,b]}),e[27]=m,e[28]=I,e[29]=N):N=e[29];let y;return e[30]!==N||e[31]!==C?(y=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[u,C,N]}),e[30]=N,e[31]=C,e[32]=y):y=e[32],y}const bt=["Full HAR capture with cache, TTFB, and request analysis","Screenshot capture for visual inspection","Page discovery via sitemap, navigation, and link crawling","SEO audit — meta tags, structured data, robots.txt","Third-party script inventory and size analysis","Dead link detection across the entire site","Deco-specific diagnostics (?__d debug mode)"];function Ve(i){const e=k.c(7),{onRecruit:s,isRecruiting:a,isLoading:l}=i;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Add a blackbox diagnostics agent that tests your storefront from the outside — no internal access needed. Give it a URL and it produces a detailed performance and health report."}),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Capabilities"}),e[1]=r):r=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{className:"space-y-2",children:[r,t.jsx("ul",{className:"space-y-1.5",children:bt.map(wt)})]}),e[2]=u):u=e[2];const d=a||l,_=a?"Setting up...":"Add Site Diagnostics";let c;return e[3]!==s||e[4]!==d||e[5]!==_?(c=t.jsxs("div",{className:"flex flex-col gap-6",children:[n,u,t.jsx(ae,{onClick:s,disabled:d,className:"w-full cursor-pointer",children:_})]}),e[3]=s,e[4]=d,e[5]=_,e[6]=c):c=e[6],c}function wt(i){return t.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[t.jsx("span",{className:"text-emerald-500 mt-0.5 shrink-0",children:"+"}),i]},i)}function en({open:i,onOpenChange:e,existingAgent:s}){const a=ke(),{org:l}=$(),n=_e(),r=Se(),u=Pe(),d=V({connectionId:ce,orgId:l.id,orgSlug:l.slug}),_=Ke({client:d}),[c,h]=O.useState(!1),C=qe.find(y=>y.id==="site-diagnostics"),{data:f,isLoading:p}=Ye(C.appId,{enabled:i}),m=f?.title||f?.server?.title||f?.server?.name||C.title,g=f?.server?.icons?.[0]?.src??C.icon,x=f?.server?.description??null,I=t.jsx(Ue,{icon:g,name:m,size:"sm"}),b=async()=>{if(f){if(s){e(!1),n(s.id);return}h(!0);try{const y=await _.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:C.appId},limit:1,offset:0}});let o;const w=y?.structuredContent?.items?.find(A=>A.app_id===C.appId);if(w)o=w.id;else{const A=f.server?.remotes?.[0]?.url;if(!A)throw new Error("Registry item is missing a remote URL for site-diagnostics");o=(await r.create.mutateAsync({title:m,description:x,icon:f.server?.icons?.[0]?.src??C.icon,connection_type:"HTTP",connection_url:A,app_name:f.server?.name??"site-diagnostics",app_id:C.appId,metadata:{type:"site-diagnostics",source:"store",registry_item_id:C.appId,verified:!0}})).id}const v=await u.create.mutateAsync({title:m,description:x,icon:g,status:"active",connections:[{connection_id:o,selected_tools:null,selected_resources:null,selected_prompts:null}],metadata:{type:"site-diagnostics",instructions:null,ui:{pinnedViews:[{connectionId:o,toolName:"diagnose",label:"diagnose",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:o,toolName:"diagnose"}}}}});D("agent_recruit_confirmed",{template_id:"site-diagnostics",agent_id:v.id}),e(!1),n(v.id)}catch(y){D("agent_recruit_failed",{template_id:"site-diagnostics",error:y instanceof Error?y.message:String(y)}),console.error("Failed to create Site Diagnostics agent:",y)}finally{h(!1)}}},N=`Add ${m}`;return a?t.jsx(Oe,{open:i,onOpenChange:e,children:t.jsxs(Le,{className:"h-[70dvh]",children:[t.jsx(Re,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[I,t.jsx(Me,{className:"text-xl font-semibold",children:N})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx(Ve,{onRecruit:b,isRecruiting:c,isLoading:p})})]})}):t.jsx(de,{open:i,onOpenChange:e,children:t.jsxs(le,{className:"sm:max-w-[500px] p-8",children:[t.jsx(ue,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[I,t.jsx(me,{className:"text-xl font-semibold",children:N})]})}),t.jsx(Ve,{onRecruit:b,isRecruiting:c,isLoading:p})]})})}const vt=`<role>
2
- You are the Agent Manager. You create, configure, and maintain agents (Virtual MCPs) in this workspace.
3
- </role>
4
-
5
- <capabilities>
6
- - Create new agents with appropriate connections and instructions.
7
- - Update agent configurations: instructions, connections, tool/resource/prompt selection.
8
- - List and inspect existing agents and their current setup.
9
- - Delete agents that are no longer needed.
10
- - Configure agent plugins and pinned views.
11
- - Browse available connections to help decide what to aggregate into an agent.
12
- </capabilities>
13
-
14
- <constraints>
15
- - You can list and inspect connections but cannot create, modify, or delete them.
16
- - Always confirm with the user before deleting an agent.
17
- - When adding connections to an agent, verify the connection exists by listing or getting it first.
18
- - Do not broaden an agent's scope unless the user explicitly requests it.
19
- - Preserve existing behavior when updating — apply the smallest necessary change set.
20
- </constraints>
21
-
22
- <workflows>
23
- 1. Creating an agent:
24
- a. List available connections with COLLECTION_CONNECTIONS_LIST.
25
- b. Confirm the agent's purpose, target user, and scope with the user.
26
- c. Create the agent with COLLECTION_VIRTUAL_MCP_CREATE, including a focused title, description, selected connections, and XML-structured instructions.
27
- d. Verify the saved configuration with COLLECTION_VIRTUAL_MCP_GET.
28
-
29
- 2. Updating an agent:
30
- a. Get the current agent config with COLLECTION_VIRTUAL_MCP_GET.
31
- b. If the update changes connections, verify new connections exist with COLLECTION_CONNECTIONS_GET.
32
- c. Apply changes with COLLECTION_VIRTUAL_MCP_UPDATE using the smallest change set.
33
- d. Confirm the final state with COLLECTION_VIRTUAL_MCP_GET.
34
-
35
- 3. Reviewing agents:
36
- a. List all agents with COLLECTION_VIRTUAL_MCP_LIST.
37
- b. For detailed inspection, use COLLECTION_VIRTUAL_MCP_GET on specific agents.
38
- c. Cross-reference with COLLECTION_CONNECTIONS_LIST to identify unused or missing connections.
39
-
40
- 4. Improving an agent's instructions:
41
- a. Read docs://agents.md for the instruction-writing pattern (XML-style sections, explicit workflows).
42
- b. Get the current instructions with COLLECTION_VIRTUAL_MCP_GET on the supplied agent id.
43
- c. If the intended purpose, audience, or boundaries are unclear, use user_ask before rewriting.
44
- d. Rewrite the instructions with explicit XML-style sections: <role>, <capabilities>, <constraints>, <workflows>.
45
- - Make the purpose explicit in <role>.
46
- - If a workflow already exists, sharpen it into concrete, ordered, operational steps. If none exists, add one that reflects how the agent should actually operate.
47
- - Tighten <constraints> when the current instructions are too open-ended.
48
- - Preserve the user's intended domain and responsibilities.
49
- e. Save the rewritten instructions with COLLECTION_VIRTUAL_MCP_UPDATE using the smallest change set (only \`metadata.instructions\`).
50
- f. Re-read with COLLECTION_VIRTUAL_MCP_GET to verify the stored result.
51
- </workflows>`,jt=`<role>
52
- You are the Automation Manager. You create, configure, and manage automations — background agents that run on triggers (cron schedules or events).
53
- </role>
54
-
55
- <capabilities>
56
- - Create automations with instructions, model configuration, and triggers.
57
- - Add and remove triggers (cron schedules or event-based).
58
- - Manually run automations for testing.
59
- - Update automation behavior, instructions, and model settings.
60
- - List and inspect existing automations.
61
- - Delete automations that are no longer needed.
62
- - Browse available agents and connections to configure automation targets.
63
- </capabilities>
64
-
65
- <constraints>
66
- - You can list and inspect agents and connections but cannot create, modify, or delete them.
67
- - Always confirm with the user before deleting an automation.
68
- - When assigning an agent to an automation, verify the agent exists first.
69
- - Validate cron expressions before adding cron triggers.
70
- - Warn the user about high-frequency triggers (less than 1 minute intervals).
71
- </constraints>
72
-
73
- <workflows>
74
- 1. Creating an automation:
75
- a. Clarify the automation's purpose, schedule, and expected behavior.
76
- b. List agents with COLLECTION_VIRTUAL_MCP_LIST and confirm the target — pass its id as virtual_mcp_id to AUTOMATION_CREATE.
77
- c. Create the automation with AUTOMATION_CREATE, including clear instructions and model config.
78
- d. Add triggers with AUTOMATION_TRIGGER_ADD (cron or event-based).
79
- e. Verify with AUTOMATION_GET.
80
-
81
- 2. Updating an automation:
82
- a. Get current config with AUTOMATION_GET.
83
- b. Apply changes with AUTOMATION_UPDATE.
84
- c. If triggers need updating, use AUTOMATION_TRIGGER_REMOVE and AUTOMATION_TRIGGER_ADD.
85
- d. Confirm the final state with AUTOMATION_GET.
86
-
87
- 3. Testing an automation:
88
- a. Get the automation config with AUTOMATION_GET to review its setup.
89
- b. Run it manually with AUTOMATION_RUN.
90
- c. Report the result to the user.
91
-
92
- 4. Improving an automation's instructions:
93
- a. Read docs://automations.md for the messages/instructions pattern, then docs://agents.md for the XML-style structure.
94
- b. Get the current automation with AUTOMATION_GET on the supplied automation id.
95
- c. If the intended purpose, trigger context, or expected output is unclear, use user_ask before rewriting.
96
- d. Rewrite the messages with explicit XML-style sections: <role>, <capabilities>, <constraints>, <workflows>.
97
- - Keep the rewrite aligned with the automation's trigger and expected background-execution behavior.
98
- - If a workflow already exists, sharpen it into concrete, ordered, operational steps. If none exists, add one.
99
- - Tighten <constraints> when the current messages are too open-ended.
100
- e. Save with AUTOMATION_UPDATE using the smallest change set.
101
- f. Re-read with AUTOMATION_GET to verify the stored result.
102
- </workflows>`,At=`<role>
103
- You are the Connection Manager. You create, configure, test, and manage MCP connections in this workspace.
104
- </role>
105
-
106
- <capabilities>
107
- - Create new connections (HTTP, SSE, STDIO types) with proper configuration.
108
- - List and inspect existing connections and their status.
109
- - Update connection details: URL, headers, authentication, metadata.
110
- - Test connection health to verify connectivity.
111
- - Delete connections that are no longer needed.
112
- </capabilities>
113
-
114
- <constraints>
115
- - Always confirm with the user before deleting a connection.
116
- - Never expose connection tokens or secrets in responses — refer to them as "configured" or "not configured."
117
- - When creating HTTP connections, validate that a URL is provided.
118
- - Test connections after creation or URL changes to verify they work.
119
- - Warn the user if deleting a connection that might be in use by agents (suggest they check first).
120
- </constraints>
121
-
122
- <workflows>
123
- 1. Creating a connection:
124
- a. Clarify the connection type (HTTP, SSE, or STDIO) and target URL/command.
125
- b. Create with COLLECTION_CONNECTIONS_CREATE, including title, description, type, and URL.
126
- c. Test the new connection with CONNECTION_TEST.
127
- d. Report the result to the user.
128
-
129
- 2. Troubleshooting a connection:
130
- a. Get the connection details with COLLECTION_CONNECTIONS_GET.
131
- b. Run CONNECTION_TEST to check health.
132
- c. If the test fails, review the configuration and suggest fixes.
133
- d. After fixes, re-test to confirm.
134
-
135
- 3. Auditing connections:
136
- a. List all connections with COLLECTION_CONNECTIONS_LIST.
137
- b. Test each connection's health with CONNECTION_TEST.
138
- c. Report which connections are healthy, erroring, or inactive.
139
- </workflows>`,We=[{id:"studio-agent-manager",title:"Agent Manager",icon:"icon://Bot?color=violet",description:"Create, configure, and manage agents",selectedTools:["COLLECTION_VIRTUAL_MCP_CREATE","COLLECTION_VIRTUAL_MCP_LIST","COLLECTION_VIRTUAL_MCP_GET","COLLECTION_VIRTUAL_MCP_UPDATE","COLLECTION_VIRTUAL_MCP_DELETE","VIRTUAL_MCP_PLUGIN_CONFIG_GET","VIRTUAL_MCP_PLUGIN_CONFIG_UPDATE","VIRTUAL_MCP_PINNED_VIEWS_UPDATE","COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET"],instructions:vt,getId:be.AGENT_MANAGER},{id:"studio-automation-manager",title:"Automation Manager",icon:"icon://Zap?color=amber",description:"Create, configure, and run automations with triggers",selectedTools:["AUTOMATION_CREATE","AUTOMATION_GET","AUTOMATION_LIST","AUTOMATION_UPDATE","AUTOMATION_DELETE","AUTOMATION_TRIGGER_ADD","AUTOMATION_TRIGGER_REMOVE","AUTOMATION_RUN","COLLECTION_VIRTUAL_MCP_LIST","COLLECTION_VIRTUAL_MCP_GET","COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET"],instructions:jt,getId:be.AUTOMATION_MANAGER},{id:"studio-connection-manager",title:"Connection Manager",icon:"icon://Link01?color=cyan",description:"Create, configure, test, and manage connections",selectedTools:["COLLECTION_CONNECTIONS_CREATE","COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET","COLLECTION_CONNECTIONS_UPDATE","COLLECTION_CONNECTIONS_DELETE","CONNECTION_TEST"],instructions:At,getId:be.CONNECTION_MANAGER}];function Et(){const i=k.c(4),{org:e}=$(),s=Pe(),a=dt();let l;return i[0]!==s||i[1]!==a||i[2]!==e.id?(l=async function(r){const u=Ae.SELF(e.id),d=new Set(a.map(St)),_=We.filter(c=>r.includes(c.id));for(const c of _)d.has(c.title)||await s.create.mutateAsync({title:c.title,description:c.description,icon:c.icon,status:"active",metadata:{instructions:c.instructions},connections:[{connection_id:u,selected_tools:[...c.selectedTools],selected_resources:null,selected_prompts:null}]})},i[0]=s,i[1]=a,i[2]=e.id,i[3]=l):l=i[3],l}function St(i){return i.title}const Ot=[{title:"Agent Manager",description:"Create, configure, and manage agents"},{title:"Automation Manager",description:"Create, configure, and run automations with triggers"},{title:"Connection Manager",description:"Create, configure, test, and manage connections"}];function $e(i){const e=k.c(7),{onInstall:s,isInstalling:a}=i;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Install a suite of pre-configured agents for managing your studio. Each agent is scoped to a specific domain with focused instructions."}),e[0]=l):l=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Included agents"}),e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"space-y-2",children:[n,t.jsx("ul",{className:"space-y-1.5",children:Ot.map(Lt)})]}),e[2]=r):r=e[2];const u=a?"Installing...":"Install Studio Pack";let d;return e[3]!==a||e[4]!==s||e[5]!==u?(d=t.jsxs("div",{className:"flex flex-col gap-6",children:[l,r,t.jsx(ae,{onClick:s,disabled:a,className:"w-full cursor-pointer",children:u})]}),e[3]=a,e[4]=s,e[5]=u,e[6]=d):d=e[6],d}function Lt(i){return t.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[t.jsx("span",{className:"text-emerald-500 mt-0.5 shrink-0",children:"+"}),t.jsxs("span",{children:[t.jsx("span",{className:"text-foreground font-medium",children:i.title})," ","— ",i.description]})]},i.title)}function tn({open:i,onOpenChange:e}){const s=ke(),{org:a}=$(),l=Et(),n=nt(),[r,u]=O.useState(!1),d=t.jsx(Ue,{icon:"icon://Package?color=blue",name:"Studio Pack",size:"sm"}),_=async()=>{u(!0);try{const h=We.map(C=>C.id);await l(h),D("agent_recruit_confirmed",{template_id:"studio-pack",installed_count:h.length}),e(!1),n({to:"/$org",params:{org:a.slug}})}catch(h){D("agent_recruit_failed",{template_id:"studio-pack",error:h instanceof Error?h.message:String(h)}),console.error("Failed to install Studio Pack:",h)}finally{u(!1)}},c="Install Studio Pack";return s?t.jsx(Oe,{open:i,onOpenChange:e,children:t.jsxs(Le,{className:"h-[70dvh]",children:[t.jsx(Re,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[d,t.jsx(Me,{className:"text-xl font-semibold",children:c})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx($e,{onInstall:_,isInstalling:r})})]})}):t.jsx(de,{open:i,onOpenChange:e,children:t.jsxs(le,{className:"sm:max-w-[500px] p-8",children:[t.jsx(ue,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[d,t.jsx(me,{className:"text-xl font-semibold",children:c})]})}),t.jsx($e,{onInstall:_,isInstalling:r})]})})}const Rt="https://sites-lean-canva.decocache.com/api/mcp",Mt=["Build and update Lean Canvas business models visually","Interactive grid UI with all 9 canvas sections","Iterative updates — add information as you discover it","Covers: Problem, Solution, Key Metrics, Unique Value Proposition","Covers: Channels, Customer Segments, Cost Structure, Revenue Streams","Unfair Advantage analysis"];function ze(i){const e=k.c(7),{onRecruit:s,isRecruiting:a}=i;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Add a Lean Canvas agent that helps you build and iterate on your business model. Describe your idea and it produces a visual, structured canvas."}),e[0]=l):l=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Capabilities"}),e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"space-y-2",children:[n,t.jsx("ul",{className:"space-y-1.5",children:Mt.map(kt)})]}),e[2]=r):r=e[2];const u=a?"Setting up...":"Add Lean Canvas";let d;return e[3]!==a||e[4]!==s||e[5]!==u?(d=t.jsxs("div",{className:"flex flex-col gap-6",children:[l,r,t.jsx(ae,{onClick:s,disabled:a,className:"w-full cursor-pointer",children:u})]}),e[3]=a,e[4]=s,e[5]=u,e[6]=d):d=e[6],d}function kt(i){return t.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[t.jsx("span",{className:"text-emerald-500 mt-0.5 shrink-0",children:"+"}),i]},i)}function nn({open:i,onOpenChange:e,existingAgent:s}){const a=ke(),{org:l}=$(),n=_e(),r=Se(),u=Pe(),d=V({connectionId:ce,orgId:l.id,orgSlug:l.slug}),_=Ke({client:d}),[c,h]=O.useState(!1),C=qe.find(g=>g.id==="lean-canvas"),f=t.jsx(Ue,{icon:C.icon,name:C.title,size:"sm"}),p=async()=>{if(s){e(!1),n(s.id);return}h(!0);try{const g=await _.mutateAsync({name:"COLLECTION_CONNECTIONS_LIST",arguments:{where:{field:["app_id"],operator:"eq",value:"lean-canvas"},limit:1,offset:0}});let x;const b=g?.structuredContent?.items?.find(o=>o.app_id==="lean-canvas"),N=Ae.SELF(l.id);b?x=b.id:x=(await r.create.mutateAsync({title:C.title,description:"Lean Canvas business model builder",icon:C.icon,connection_type:"HTTP",connection_url:Rt,app_name:"lean-canvas",app_id:"lean-canvas",configuration_state:{OBJECT_STORAGE:{__type:"@deco/object-storage",value:N}},metadata:{type:"lean-canvas",source:"store",verified:!0}})).id;const y=await u.create.mutateAsync({title:C.title,description:"Lean Canvas business model builder",icon:C.icon,status:"active",connections:[{connection_id:x,selected_tools:null,selected_resources:null,selected_prompts:null},{connection_id:N,selected_tools:null,selected_resources:null,selected_prompts:null}],metadata:{type:"lean-canvas",instructions:null,ui:{pinnedViews:[{connectionId:x,toolName:"lean_canvas",label:"lean_canvas",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:x,toolName:"lean_canvas"}}}}});D("agent_recruit_confirmed",{template_id:"lean-canvas",agent_id:y.id}),e(!1),n(y.id)}catch(g){D("agent_recruit_failed",{template_id:"lean-canvas",error:g instanceof Error?g.message:String(g)}),console.error("Failed to create Lean Canvas agent:",g)}finally{h(!1)}},m=`Add ${C.title}`;return a?t.jsx(Oe,{open:i,onOpenChange:e,children:t.jsxs(Le,{className:"h-[70dvh]",children:[t.jsx(Re,{className:"px-4 pt-4 pb-4 shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[f,t.jsx(Me,{className:"text-xl font-semibold",children:m})]})}),t.jsx("div",{className:"flex flex-col flex-1 min-h-0 px-4 pb-8",children:t.jsx(ze,{onRecruit:p,isRecruiting:c})})]})}):t.jsx(de,{open:i,onOpenChange:e,children:t.jsxs(le,{className:"sm:max-w-[500px] p-8",children:[t.jsx(ue,{className:"mb-4",children:t.jsxs("div",{className:"flex items-center gap-3",children:[f,t.jsx(me,{className:"text-xl font-semibold",children:m})]})}),t.jsx(ze,{onRecruit:p,isRecruiting:c})]})})}export{re as G,Xt as I,nn as L,en as S,Zt as a,tn as b,Ye as c,Et as u};
@@ -1 +0,0 @@
1
- import{e as P,j as t,b as D,z as q,D as B,P as G,t as y,x as R}from"./index-k8njt3_A.js";import{P as E}from"./index-ClxNnAsp.js";import{A as U}from"./avatar-CYyuZ3vB.js";import{S as I}from"./switch-YLfAn92x.js";import{S as F,a as H,d as V,c as Y}from"./select-B3lWwv9y.js";import{T as K,a as L}from"./toggle-group-C_B32Tm8.js";import{I as J}from"./input-DrFzs1Yw.js";import{n as M,a as O,i as Q}from"./Sun-BgOSswUu.js";import{i as W}from"./Play-DRCdZRLW.js";import{u as X}from"./use-debounced-autosave-Ja8PcJv_.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-Y4klGMPr.js";import{d as te,b as C,S as T,a as $}from"./settings-section-qufbNRCL.js";import"./tooltip-B26xbtws.js";import"./X-CdXDgTcN.js";import"./User01-Cxb6YtJq.js";import"./Check-CUpq9BBu.js";import"./ChevronDown-D5WF5tyi.js";import"./ChevronUp-CDMPc0ql.js";import"./card-BWjsP1pO.js";import"./ArrowUpRight-CCQZEQ7k.js";function oe(){const e=P.c(19),{data:o,isPending:n}=D.useSession(),l=o?.user,s=l?.image,i=l?.name??"";let a;e[0]!==i?(a={values:{name:i}},e[0]=i,e[1]=a):a=e[1];const r=q(a);let p;e[2]!==r?(p={save:async()=>{if(!r.formState.isDirty)return;const{name:b}=r.getValues();try{await D.updateUser({name:b}),y("profile_updated",{fields:["name"]}),r.reset({name:b})}catch{R.error("Failed to update profile")}}},e[2]=r,e[3]=p):p=e[3];const{schedule:j,flush:u}=X(p);if(n)return null;const v=l?.name??"U";let c;e[4]!==v||e[5]!==s?(c=t.jsx(C,{title:"Avatar",action:t.jsx(U,{url:s,fallback:v,shape:"circle",size:"base"})}),e[4]=v,e[5]=s,e[6]=c):c=e[6];let f;e[7]!==u||e[8]!==j?(f=b=>{const{field:_}=b;return t.jsx(J,{id:"display-name",..._,onChange:S=>{_.onChange(S),j()},onBlur:()=>{_.onBlur(),u()},onKeyDown:S=>{S.key==="Enter"&&u()},placeholder:"Your name",className:"w-[280px]"})},e[7]=u,e[8]=j,e[9]=f):f=e[9];let x;e[10]!==r.control||e[11]!==f?(x=t.jsx(C,{title:"Display name",action:t.jsx(B,{control:r.control,name:"name",render:f})}),e[10]=r.control,e[11]=f,e[12]=x):x=e[12];const g=l?.email;let d;e[13]!==g?(d=t.jsx(C,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:g})}),e[13]=g,e[14]=d):d=e[14];let h;return e[15]!==c||e[16]!==x||e[17]!==d?(h=t.jsx(T,{children:t.jsxs($,{children:[c,x,d]})}),e[15]=c,e[16]=x,e[17]=d,e[18]=h):h=e[18],h}function ne(){const e=P.c(48),[o,n]=G();let l;e[0]!==n?(l=async m=>{if(m&&await Notification.requestPermission()!=="granted"){y("preferences_notifications_permission_denied"),R.error("Notifications denied. Please enable them in your browser settings."),n(re);return}y("preferences_notifications_toggled",{enabled:m}),n(N=>({...N,enableNotifications:m}))},e[0]=n,e[1]=l):l=e[1];const s=l;let i;e[2]!==n?(i=m=>{m&&(y("preferences_theme_changed",{to_value:m}),n(N=>({...N,theme:m})))},e[2]=n,e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(L,{value:"light","aria-label":"Light theme",children:t.jsx(M,{size:14})}),e[4]=a):a=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(L,{value:"dark","aria-label":"Dark theme",children:t.jsx(O,{size:14})}),e[5]=r):r=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(L,{value:"system","aria-label":"System theme",children:t.jsx(Q,{size:14})}),e[6]=p):p=e[6];let j;e[7]!==o.theme||e[8]!==i?(j=t.jsx(C,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(K,{type:"single",size:"sm",variant:"outline",value:o.theme,onValueChange:i,children:[a,r,p]})}),e[7]=o.theme,e[8]=i,e[9]=j):j=e[9];let u;e[10]!==s||e[11]!==o.enableNotifications?(u=typeof Notification<"u"?()=>s(!o.enableNotifications):void 0,e[10]=s,e[11]=o.enableNotifications,e[12]=u):u=e[12];let v;e[13]!==s||e[14]!==o.enableNotifications?(v=t.jsx(I,{disabled:typeof Notification>"u",checked:o.enableNotifications,onCheckedChange:s}),e[13]=s,e[14]=o.enableNotifications,e[15]=v):v=e[15];let c;e[16]!==u||e[17]!==v?(c=t.jsx(C,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:u,action:v}),e[16]=u,e[17]=v,e[18]=c):c=e[18];let f;e[19]!==o.enableSounds||e[20]!==n?(f=()=>{y("preferences_sounds_toggled",{enabled:!o.enableSounds}),n(le)},e[19]=o.enableSounds,e[20]=n,e[21]=f):f=e[21];let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:se,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=x):x=e[22];let g;e[23]!==n?(g=m=>{y("preferences_sounds_toggled",{enabled:m}),n(N=>({...N,enableSounds:m}))},e[23]=n,e[24]=g):g=e[24];let d;e[25]!==o.enableSounds||e[26]!==g?(d=t.jsxs("div",{className:"flex items-center gap-2",children:[x,t.jsx(I,{checked:o.enableSounds,onCheckedChange:g})]}),e[25]=o.enableSounds,e[26]=g,e[27]=d):d=e[27];let h;e[28]!==d||e[29]!==f?(h=t.jsx(C,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:f,action:d}),e[28]=d,e[29]=f,e[30]=h):h=e[30];let b;e[31]!==n?(b=m=>{y("preferences_tool_approval_changed",{to_value:m}),n(N=>({...N,toolApprovalLevel:m}))},e[31]=n,e[32]=b):b=e[32];let _;e[33]!==o.toolApprovalLevel?(_={readonly:"Ask before edit",auto:"Auto approve"}[o.toolApprovalLevel]??"Ask before edit",e[33]=o.toolApprovalLevel,e[34]=_):_=e[34];let S;e[35]!==_?(S=t.jsx(H,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:_})}),e[35]=_,e[36]=S):S=e[36];let k;e[37]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(V,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=k):k=e[37];let w;e[38]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsxs(Y,{children:[k,t.jsx(V,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=w):w=e[38];let A;e[39]!==o.toolApprovalLevel||e[40]!==b||e[41]!==S?(A=t.jsx(C,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(F,{value:o.toolApprovalLevel,onValueChange:b,children:[S,w]})}),e[39]=o.toolApprovalLevel,e[40]=b,e[41]=S,e[42]=A):A=e[42];let z;return e[43]!==h||e[44]!==A||e[45]!==j||e[46]!==c?(z=t.jsx(T,{title:"Preferences",children:t.jsxs($,{children:[j,c,h,A]})}),e[43]=h,e[44]=A,e[45]=j,e[46]=c,e[47]=z):z=e[47],z}function se(){y("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=P.c(11),[o,n]=G();let l;e[0]!==o.experimental_vibecode||e[1]!==n?(l=()=>{y("preferences_experimental_vibecode_toggled",{enabled:!o.experimental_vibecode}),n(ce)},e[0]=o.experimental_vibecode,e[1]=n,e[2]=l):l=e[2];let s;e[3]!==n?(s=r=>{y("preferences_experimental_vibecode_toggled",{enabled:r}),n(p=>({...p,experimental_vibecode:r}))},e[3]=n,e[4]=s):s=e[4];let i;e[5]!==o.experimental_vibecode||e[6]!==s?(i=t.jsx(I,{checked:o.experimental_vibecode,onCheckedChange:s}),e[5]=o.experimental_vibecode,e[6]=s,e[7]=i):i=e[7];let a;return e[8]!==l||e[9]!==i?(a=t.jsx(T,{title:"Experimental",children:t.jsx($,{children:t.jsx(C,{title:"Import from GitHub",description:"Enable importing agents from GitHub repositories.",onClick:l,action:i})})}),e[8]=l,e[9]=i,e[10]=a):a=e[10],a}function ce(e){return{...e,experimental_vibecode:!e.experimental_vibecode}}function fe(){const e=P.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(E,{children:t.jsx(E.Content,{children:t.jsx(E.Body,{children:t.jsxs(te,{children:[t.jsx(E.Title,{children:"Profile & Preferences"}),t.jsx(oe,{}),t.jsx(ne,{}),t.jsx(ae,{})]})})})}),e[0]=o):o=e[0],o}function Le(){const e=P.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(fe,{}),e[0]=o):o=e[0],o}export{Le as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-B2U_9fgO.js","assets/index-k8njt3_A.js","assets/index-CpHJcJk3.css","assets/ArrowNarrowLeft-Dz0P9WNF.js","assets/CheckCircle-DTCxFilU.js","assets/Container-BioZd28q.js","assets/Settings02-D1Jfvo1d.js","assets/XCircle-CjR4LC4r.js","assets/constants-Df56C9B1.js","assets/useInfiniteQuery-BJ1I2JSf.js","assets/infiniteQueryObserver-IG8f9wWg.js","assets/badge-C-R5WeFR.js","assets/input-DrFzs1Yw.js","assets/dropdown-menu-CD1YJIi0.js","assets/Check-CUpq9BBu.js","assets/ChevronRight-DwbV0YDZ.js","assets/DotsVertical-D8wcDPCU.js","assets/table-wHPRdxYv.js","assets/toggle-group-C_B32Tm8.js","assets/use-view-mode-CZXZPLm6.js","assets/tooltip-B26xbtws.js","assets/SearchMd-JqX1mLMq.js","assets/dialog-HqMwvS0c.js","assets/X-CdXDgTcN.js","assets/AlertCircle-B72APkrz.js","assets/alert-dialog-B-P8jHly.js","assets/card-BWjsP1pO.js","assets/Trash01-B8-uqWxa.js","assets/label-0J4Z8Ji8.js","assets/select-B3lWwv9y.js","assets/ChevronDown-D5WF5tyi.js","assets/ChevronUp-CDMPc0ql.js","assets/switch-YLfAn92x.js","assets/textarea-BJZt5-vN.js","assets/RefreshCcw01-CdP9yH0w.js","assets/checkbox-DRyB8BVf.js","assets/LinkExternal01-CKpEz_fF.js","assets/use-copy-DpxSUjqd.js","assets/Plus-DNkjVBwq.js","assets/Play-DRCdZRLW.js"])))=>i.map(i=>d[i]);
2
- import{e as a,j as t,r,l as i,_ as o}from"./index-k8njt3_A.js";const n=r.lazy(()=>o(()=>import("./registry-layout-B2U_9fgO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39])));function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(i,{size:20,className:"animate-spin text-muted-foreground"})}),children:t.jsx(n,{})}),s[0]=e):e=s[0],e}export{c as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-B2U_9fgO.js","assets/index-k8njt3_A.js","assets/index-CpHJcJk3.css","assets/ArrowNarrowLeft-Dz0P9WNF.js","assets/CheckCircle-DTCxFilU.js","assets/Container-BioZd28q.js","assets/Settings02-D1Jfvo1d.js","assets/XCircle-CjR4LC4r.js","assets/constants-Df56C9B1.js","assets/useInfiniteQuery-BJ1I2JSf.js","assets/infiniteQueryObserver-IG8f9wWg.js","assets/badge-C-R5WeFR.js","assets/input-DrFzs1Yw.js","assets/dropdown-menu-CD1YJIi0.js","assets/Check-CUpq9BBu.js","assets/ChevronRight-DwbV0YDZ.js","assets/DotsVertical-D8wcDPCU.js","assets/table-wHPRdxYv.js","assets/toggle-group-C_B32Tm8.js","assets/use-view-mode-CZXZPLm6.js","assets/tooltip-B26xbtws.js","assets/SearchMd-JqX1mLMq.js","assets/dialog-HqMwvS0c.js","assets/X-CdXDgTcN.js","assets/AlertCircle-B72APkrz.js","assets/alert-dialog-B-P8jHly.js","assets/card-BWjsP1pO.js","assets/Trash01-B8-uqWxa.js","assets/label-0J4Z8Ji8.js","assets/select-B3lWwv9y.js","assets/ChevronDown-D5WF5tyi.js","assets/ChevronUp-CDMPc0ql.js","assets/switch-YLfAn92x.js","assets/textarea-BJZt5-vN.js","assets/RefreshCcw01-CdP9yH0w.js","assets/checkbox-DRyB8BVf.js","assets/LinkExternal01-CKpEz_fF.js","assets/use-copy-DpxSUjqd.js","assets/Plus-DNkjVBwq.js","assets/Play-DRCdZRLW.js"])))=>i.map(i=>d[i]);
2
- import{e as n,f as c,g as m,j as r,l as f,r as l,_ as u}from"./index-k8njt3_A.js";const _=l.lazy(()=>u(()=>import("./registry-layout-B2U_9fgO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39])));function x(){const e=n.c(5),o=c();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:i}=m(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"h-full flex items-center justify-center",children:r.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==i?(a=r.jsx(l.Suspense,{fallback:s,children:r.jsx(_,{onBack:()=>o({to:"/$org/settings/store",params:{org:i}})})}),e[2]=o,e[3]=i,e[4]=a):a=e[4],a}export{x as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-IG8f9wWg.js";import{c2 as i}from"./index-k8njt3_A.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-IG8f9wWg.js";import{c2 as u,c3 as n}from"./index-k8njt3_A.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +0,0 @@
1
- import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-k8njt3_A.js";import{a as f}from"./index--52kuhAD.js";import"./index-CO402MfB.js";import"./constants-Df56C9B1.js";import"./collections-ZqRHYd6U.js";import"./index-D9-ppQFz.js";import"./use-virtual-mcp-BlYQqAfZ.js";import"./use-collections-D66SnH5Q.js";import"./monaco-editor-Br1M5lwR.js";import"./index-BPgW_PVH.js";import"./accordion-BBKL1fM-.js";import"./agent-icon-CaG-DX2m.js";import"./AlertCircle-B72APkrz.js";import"./Tool01-CXQZ3p7Z.js";import"./XClose-zqTFiPq2.js";import"./RefreshCcw01-CdP9yH0w.js";import"./ArrowNarrowLeft-Dz0P9WNF.js";import"./XCircle-CjR4LC4r.js";import"./ArrowUpRight-CCQZEQ7k.js";import"./ZapSquare-CliIuzcs.js";import"./Users03-CXkopkPu.js";import"./CheckCircle-DTCxFilU.js";import"./Check-CUpq9BBu.js";import"./ChevronDown-D5WF5tyi.js";import"./ChevronRight-DwbV0YDZ.js";import"./ChevronUp-CDMPc0ql.js";import"./DotsVertical-D8wcDPCU.js";import"./Container-BioZd28q.js";import"./Star01-Y834gtsL.js";import"./Palette-brLBiHpP.js";import"./SearchMd-JqX1mLMq.js";import"./index-ClxNnAsp.js";import"./tooltip-B26xbtws.js";import"./X-CdXDgTcN.js";import"./LinkExternal01-CKpEz_fF.js";import"./Lock01-CHfwR6Qi.js";import"./Sun-BgOSswUu.js";import"./Play-DRCdZRLW.js";import"./Plus-DNkjVBwq.js";import"./Settings02-D1Jfvo1d.js";import"./Shield01-D5fQpAyA.js";import"./Trash01-B8-uqWxa.js";import"./User01-Cxb6YtJq.js";import"./Zap--FKeiDFf.js";import"./badge-C-R5WeFR.js";import"./select-B3lWwv9y.js";import"./view-mode-toggle-BC7A6oBR.js";import"./layout-zbF9c9kI.js";import"./use-connection-9VrA1Bg7.js";import"./use-mcp-tools-C7yIpDHe.js";import"./dialog-HqMwvS0c.js";import"./index-D7rGFiVq.js";import"./dropdown-menu-CD1YJIi0.js";import"./integration-icon-DUMCOZJc.js";import"./scroll-area-D_tsHfC-.js";import"./index-Y4klGMPr.js";import"./empty-state-B29HN9Vl.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-DrFzs1Yw.js";function gt(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{gt as default};
@@ -1,33 +0,0 @@
1
- export type Options = {
2
- /**
3
- Match only the first ANSI escape.
4
-
5
- @default false
6
- */
7
- readonly onlyFirst: boolean;
8
- };
9
-
10
- /**
11
- Regular expression for matching ANSI escape codes.
12
-
13
- @example
14
- ```
15
- import ansiRegex from 'ansi-regex';
16
-
17
- ansiRegex().test('\u001B[4mcake\u001B[0m');
18
- //=> true
19
-
20
- ansiRegex().test('cake');
21
- //=> false
22
-
23
- '\u001B[4mcake\u001B[0m'.match(ansiRegex());
24
- //=> ['\u001B[4m', '\u001B[0m']
25
-
26
- '\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
27
- //=> ['\u001B[4m']
28
-
29
- '\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
30
- //=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
31
- ```
32
- */
33
- export default function ansiRegex(options?: Options): RegExp;
@@ -1,14 +0,0 @@
1
- export default function ansiRegex({onlyFirst = false} = {}) {
2
- // Valid string terminator sequences are BEL, ESC\, and 0x9c
3
- const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
4
-
5
- // OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
6
- const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
7
-
8
- // CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
9
- const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';
10
-
11
- const pattern = `${osc}|${csi}`;
12
-
13
- return new RegExp(pattern, onlyFirst ? undefined : 'g');
14
- }
@@ -1,61 +0,0 @@
1
- {
2
- "name": "ansi-regex",
3
- "version": "6.2.2",
4
- "description": "Regular expression for matching ANSI escape codes",
5
- "license": "MIT",
6
- "repository": "chalk/ansi-regex",
7
- "funding": "https://github.com/chalk/ansi-regex?sponsor=1",
8
- "author": {
9
- "name": "Sindre Sorhus",
10
- "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
12
- },
13
- "type": "module",
14
- "exports": "./index.js",
15
- "types": "./index.d.ts",
16
- "sideEffects": false,
17
- "engines": {
18
- "node": ">=12"
19
- },
20
- "scripts": {
21
- "test": "xo && ava && tsd",
22
- "view-supported": "node fixtures/view-codes.js"
23
- },
24
- "files": [
25
- "index.js",
26
- "index.d.ts"
27
- ],
28
- "keywords": [
29
- "ansi",
30
- "styles",
31
- "color",
32
- "colour",
33
- "colors",
34
- "terminal",
35
- "console",
36
- "cli",
37
- "string",
38
- "tty",
39
- "escape",
40
- "formatting",
41
- "rgb",
42
- "256",
43
- "shell",
44
- "xterm",
45
- "command-line",
46
- "text",
47
- "regex",
48
- "regexp",
49
- "re",
50
- "match",
51
- "test",
52
- "find",
53
- "pattern"
54
- ],
55
- "devDependencies": {
56
- "ansi-escapes": "^5.0.0",
57
- "ava": "^3.15.0",
58
- "tsd": "^0.21.0",
59
- "xo": "^0.54.2"
60
- }
61
- }
@@ -1,66 +0,0 @@
1
- # ansi-regex
2
-
3
- > Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
4
-
5
- ## Install
6
-
7
- ```sh
8
- npm install ansi-regex
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- import ansiRegex from 'ansi-regex';
15
-
16
- ansiRegex().test('\u001B[4mcake\u001B[0m');
17
- //=> true
18
-
19
- ansiRegex().test('cake');
20
- //=> false
21
-
22
- '\u001B[4mcake\u001B[0m'.match(ansiRegex());
23
- //=> ['\u001B[4m', '\u001B[0m']
24
-
25
- '\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
26
- //=> ['\u001B[4m']
27
-
28
- '\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
29
- //=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
30
- ```
31
-
32
- ## API
33
-
34
- ### ansiRegex(options?)
35
-
36
- Returns a regex for matching ANSI escape codes.
37
-
38
- #### options
39
-
40
- Type: `object`
41
-
42
- ##### onlyFirst
43
-
44
- Type: `boolean`\
45
- Default: `false` *(Matches any ANSI escape codes in a string)*
46
-
47
- Match only the first ANSI escape.
48
-
49
- ## Important
50
-
51
- If you run the regex against untrusted user input in a server context, you should [give it a timeout](https://github.com/sindresorhus/super-regex).
52
-
53
- **I do not consider [ReDoS](https://blog.yossarian.net/2022/12/28/ReDoS-vulnerabilities-and-misaligned-incentives) a valid vulnerability for this package.**
54
-
55
- ## FAQ
56
-
57
- ### Why do you test for codes not in the ECMA 48 standard?
58
-
59
- Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
60
-
61
- On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
62
-
63
- ## Maintainers
64
-
65
- - [Sindre Sorhus](https://github.com/sindresorhus)
66
- - [Josh Junon](https://github.com/qix-)
@@ -1,20 +0,0 @@
1
- Copyright Mathias Bynens <https://mathiasbynens.be/>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,107 +0,0 @@
1
- # emoji-regex [![Build status](https://github.com/mathiasbynens/emoji-regex/actions/workflows/main.yml/badge.svg)](https://github.com/mathiasbynens/emoji-regex/actions/workflows/main.yml) [![emoji-regex on npm](https://img.shields.io/npm/v/emoji-regex)](https://www.npmjs.com/package/emoji-regex)
2
-
3
- _emoji-regex_ offers a regular expression to match all emoji symbols and sequences (including textual representations of emoji) as per the Unicode Standard. It’s based on [_emoji-test-regex-pattern_](https://github.com/mathiasbynens/emoji-test-regex-pattern), which generates (at build time) the regular expression pattern based on the Unicode Standard. As a result, _emoji-regex_ can easily be updated whenever new emoji are added to Unicode.
4
-
5
- Since each version of _emoji-regex_ is tied to the latest Unicode version at the time of release, results are deterministic. This is important for use cases like image replacement, where you want to guarantee that an image asset is available for every possibly matched emoji. If you don’t need a deterministic regex, a lighter-weight, general emoji pattern is available via the [_emoji-regex-xs_](https://github.com/slevithan/emoji-regex-xs) package that follows the same API.
6
-
7
- ## Installation
8
-
9
- Via [npm](https://www.npmjs.com/):
10
-
11
- ```bash
12
- npm install emoji-regex
13
- ```
14
-
15
- In [Node.js](https://nodejs.org/):
16
-
17
- ```js
18
- const emojiRegex = require('emoji-regex');
19
- // Note: because the regular expression has the global flag set, this module
20
- // exports a function that returns the regex rather than exporting the regular
21
- // expression itself, to make it impossible to (accidentally) mutate the
22
- // original regular expression.
23
-
24
- const text = `
25
- \u{231A}: ⌚ default emoji presentation character (Emoji_Presentation)
26
- \u{2194}\u{FE0F}: ↔️ default text presentation character rendered as emoji
27
- \u{1F469}: 👩 emoji modifier base (Emoji_Modifier_Base)
28
- \u{1F469}\u{1F3FF}: 👩🏿 emoji modifier base followed by a modifier
29
- `;
30
-
31
- const regex = emojiRegex();
32
- for (const match of text.matchAll(regex)) {
33
- const emoji = match[0];
34
- console.log(`Matched sequence ${ emoji } — code points: ${ [...emoji].length }`);
35
- }
36
- ```
37
-
38
- Console output:
39
-
40
- ```
41
- Matched sequence ⌚ — code points: 1
42
- Matched sequence ⌚ — code points: 1
43
- Matched sequence ↔️ — code points: 2
44
- Matched sequence ↔️ — code points: 2
45
- Matched sequence 👩 — code points: 1
46
- Matched sequence 👩 — code points: 1
47
- Matched sequence 👩🏿 — code points: 2
48
- Matched sequence 👩🏿 — code points: 2
49
- ```
50
-
51
- ## For maintainers
52
-
53
- ### How to update emoji-regex after new Unicode Standard releases
54
-
55
- 1. [Update _emoji-test-regex-pattern_ as described in its repository](https://github.com/mathiasbynens/emoji-test-regex-pattern#how-to-update-emoji-test-regex-pattern-after-new-uts51-releases).
56
-
57
- 1. Bump the _emoji-test-regex-pattern_ dependency to the latest version.
58
-
59
- 1. Update the Unicode data dependency in `package.json` by running the following commands:
60
-
61
- ```sh
62
- # Example: updating from Unicode v13 to Unicode v14.
63
- npm uninstall @unicode/unicode-13.0.0
64
- npm install @unicode/unicode-14.0.0 --save-dev
65
- ````
66
-
67
- 1. Generate the new output:
68
-
69
- ```sh
70
- npm run build
71
- ```
72
-
73
- 1. Verify that tests still pass:
74
-
75
- ```sh
76
- npm test
77
- ```
78
-
79
- ### How to publish a new release
80
-
81
- 1. On the `main` branch, bump the emoji-regex version number in `package.json`:
82
-
83
- ```sh
84
- npm version patch -m 'Release v%s'
85
- ```
86
-
87
- Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/).
88
-
89
- Note that this produces a Git commit + tag.
90
-
91
- 1. Push the release commit and tag:
92
-
93
- ```sh
94
- git push && git push --tags
95
- ```
96
-
97
- Our CI then automatically publishes the new release to npm.
98
-
99
- ## Author
100
-
101
- | [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
102
- |---|
103
- | [Mathias Bynens](https://mathiasbynens.be/) |
104
-
105
- ## License
106
-
107
- _emoji-regex_ is available under the [MIT](https://mths.be/mit) license.
@@ -1,3 +0,0 @@
1
- declare module 'emoji-regex' {
2
- export default function emojiRegex(): RegExp;
3
- }