decocms 2.302.7 → 2.304.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/dist/client/assets/{AlertCircle-CG9syR30.js → AlertCircle-BeiDn4Fp.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-BoVSDn9e.js → ArrowNarrowLeft-hulNygQd.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-BdaniATT.js → ArrowUpRight-lTwxwkJA.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-DenMuCVF.js → CheckCircle-3TB25Bcb.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-C3Ygm425.js → ChevronDown-_b59faTm.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-ZWCM92t_.js → ChevronRight-DEybByBs.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-D2rVf06n.js → ChevronUp-B_td_jK6.js} +1 -1
  8. package/dist/client/assets/{Container-D7Azh5xu.js → Container-d8d36LPk.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-CLHEpDSq.js → DotsVertical-9AuPT8gf.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-DxXEJ52C.js → LinkExternal01-BMrJcbl6.js} +1 -1
  11. package/dist/client/assets/{Lock01-BguDy0uh.js → Lock01-C5rgxGgu.js} +1 -1
  12. package/dist/client/assets/{Palette-BYEIR3m2.js → Palette-DfnmIo6d.js} +1 -1
  13. package/dist/client/assets/{Play-Bwjd77ev.js → Play-BGW505UY.js} +1 -1
  14. package/dist/client/assets/{Plus-DTn86Odk.js → Plus-DlISHBLe.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-BHf_tfWd.js → RefreshCcw01-Dbq2QLAC.js} +1 -1
  16. package/dist/client/assets/{SearchMd-a6724p0Y.js → SearchMd-C8WDOhfc.js} +1 -1
  17. package/dist/client/assets/{Settings02-CrnanDsL.js → Settings02-BIpL5e3f.js} +1 -1
  18. package/dist/client/assets/{Shield01-DtxRf8Qj.js → Shield01-DCoI7_zY.js} +1 -1
  19. package/dist/client/assets/{Star01-BFmiet3n.js → Star01-Chns_B29.js} +1 -1
  20. package/dist/client/assets/{Sun-CRJFmy5s.js → Sun-CgSsJ8OX.js} +1 -1
  21. package/dist/client/assets/{Tool01-9otovhMh.js → Tool01-B8RjIhe4.js} +1 -1
  22. package/dist/client/assets/{Trash01-re7YiF5g.js → Trash01-CFncShuD.js} +1 -1
  23. package/dist/client/assets/{User01-BgnyFNdJ.js → User01-Bq8r53VC.js} +1 -1
  24. package/dist/client/assets/{Users03-BPGIuPOi.js → Users03-qD8JWxak.js} +1 -1
  25. package/dist/client/assets/{X-DlTdh5jK.js → X-BNOerUAB.js} +1 -1
  26. package/dist/client/assets/{XCircle-BE4LAsf8.js → XCircle-B-JS14_e.js} +1 -1
  27. package/dist/client/assets/{XClose-CDyDeDuF.js → XClose-vOlmnMjZ.js} +1 -1
  28. package/dist/client/assets/{Zap-DE6pD70D.js → Zap-BPHOFmqu.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-FWH2wtfn.js → ZapSquare-CX9zqrxv.js} +1 -1
  30. package/dist/client/assets/{accordion-BubDFUkM.js → accordion-DIyksd99.js} +1 -1
  31. package/dist/client/assets/{agent-icon-DzVM2Y3D.js → agent-icon-CLQAOsUE.js} +1 -1
  32. package/dist/client/assets/{agents-list-ClVNGy3h.js → agents-list-D0BQglaf.js} +1 -1
  33. package/dist/client/assets/ai-providers-BnclkXxt.js +1 -0
  34. package/dist/client/assets/{alert-dialog-Cp4KelsS.js → alert-dialog-BWduFhy-.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-DAjGP-X3.js → auth-catchall-D-v4q1Qx.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-DP5TESrt.js → automation-list-row-DPkrb87t.js} +1 -1
  37. package/dist/client/assets/{automations-BKKclzI8.js → automations-BCzY9gmM.js} +1 -1
  38. package/dist/client/assets/{avatar-D56WFjQj.js → avatar-C6HNjGDg.js} +1 -1
  39. package/dist/client/assets/{badge-Brrebgj_.js → badge-CZCn9Wwi.js} +1 -1
  40. package/dist/client/assets/{brand-context-B9KleYrA.js → brand-context-DcqBJ41j.js} +1 -1
  41. package/dist/client/assets/{card-CbtqsNyF.js → card-oNblR0HO.js} +1 -1
  42. package/dist/client/assets/{chat-context-D8pNmIoM.js → chat-context-RcvBJBC7.js} +1 -1
  43. package/dist/client/assets/{checkbox-A-1sOL7a.js → checkbox-JSEUVCMB.js} +1 -1
  44. package/dist/client/assets/{collection-detail-BiV7gm_U.js → collection-detail-C5pV1mWu.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-hDD2VNh1.js → collection-display-button-DQSPcJBz.js} +1 -1
  46. package/dist/client/assets/{collection-search-TTX5BBhb.js → collection-search-CLoorkFj.js} +1 -1
  47. package/dist/client/assets/{collection-search-BtNt6NZG.js → collection-search-DGO6_1o7.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-RDfR0u8g.js → collection-table-wrapper-P7sXgSq0.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-BYirFRax.js → collection-tabs-6c5Oz0MD.js} +1 -1
  50. package/dist/client/assets/{collections-DY4I1w_a.js → collections-CcBlrCx6.js} +1 -1
  51. package/dist/client/assets/{command-DzkZTofz.js → command-C666DFpg.js} +1 -1
  52. package/dist/client/assets/{connection-card-iSBKdQg9.js → connection-card-DbGlMaON.js} +1 -1
  53. package/dist/client/assets/{connection-detail-DeALevd5.js → connection-detail-DOFWK_LZ.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-Cad-A9NK.js → connection-form-helpers-S9iwzj4v.js} +1 -1
  55. package/dist/client/assets/{connections-BhCBByIk.js → connections-DZgnlfnc.js} +1 -1
  56. package/dist/client/assets/{constants-BXUJyD1c.js → constants-B22iOAkD.js} +1 -1
  57. package/dist/client/assets/{constants-9TBj0Gaa.js → constants-DRQ2x-Dp.js} +1 -1
  58. package/dist/client/assets/{dialog-DpgNnjBX.js → dialog-ReVTOuxu.js} +1 -1
  59. package/dist/client/assets/{domain-settings-CfEXVZxs.js → domain-settings-_aY4XST2.js} +1 -1
  60. package/dist/client/assets/{drawer-LAm5-sL1.js → drawer-BYHJ-8Om.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-CSBZWMuU.js → dropdown-menu-y8iKrNsS.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-YqPG32No.js → dynamic-plugin-layout-BxzD5223.js} +1 -1
  63. package/dist/client/assets/{empty-state-D8Ji8JRa.js → empty-state-B4rhh1dc.js} +1 -1
  64. package/dist/client/assets/{empty-state-C3GO5RSf.js → empty-state-ByRM_QUo.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-cbAHcCfh.js → extract-connection-data-CbVt8VgN.js} +1 -1
  66. package/dist/client/assets/{features-D_II3j_j.js → features-BMKDqpeL.js} +1 -1
  67. package/dist/client/assets/{form-DFO_5Fzm.js → form-D8QDPjk9.js} +1 -1
  68. package/dist/client/assets/{general-By1woa8E.js → general-WpQ82n-X.js} +1 -1
  69. package/dist/client/assets/index-BB2bR64l.js +1 -0
  70. package/dist/client/assets/{index-B2vPEOVc.js → index-BET8kMZe.js} +1 -1
  71. package/dist/client/assets/{index-ImhE7zFL.js → index-Bi-e-UKp.js} +1 -1
  72. package/dist/client/assets/{index-DSoRyzSx.js → index-Bpod-O0_.js} +1 -1
  73. package/dist/client/assets/{index-D2mitOSe.js → index-BuLwXk3-.js} +4 -4
  74. package/dist/client/assets/{index-CHNVhIMp.js → index-CPmmcxsi.js} +1 -1
  75. package/dist/client/assets/{index-DF5x0d60.js → index-CTWz6nN8.js} +1 -1
  76. package/dist/client/assets/{index-XLC4yiSV.js → index-CeC26NPv.js} +1 -1
  77. package/dist/client/assets/{index-tSJy2IW6.js → index-Cf5saV1q.js} +1 -1
  78. package/dist/client/assets/{index-Br3d5-Cj.js → index-CgURykwj.js} +1 -1
  79. package/dist/client/assets/{index-CQ4D5GAP.js → index-D4IWA9IU.js} +2 -2
  80. package/dist/client/assets/{index-DYIl7M2a.js → index-D8dvMQZl.js} +1 -1
  81. package/dist/client/assets/{index-swcvm5Z1.js → index-D9Q6YnJH.js} +1 -1
  82. package/dist/client/assets/{index-2dOrl4x0.js → index-DBj2qw-o.js} +1 -1
  83. package/dist/client/assets/{index-C4QwSWi9.js → index-DXXI9MyH.js} +1 -1
  84. package/dist/client/assets/{index-r9i7ABND.js → index-U5YmU8lc.js} +1 -1
  85. package/dist/client/assets/{infiniteQueryObserver-CxkHF-jm.js → infiniteQueryObserver-ClYEJj89.js} +1 -1
  86. package/dist/client/assets/{input-6Sf2hB_F.js → input-DhXllgVP.js} +1 -1
  87. package/dist/client/assets/{integration-icon-8lhkAaq5.js → integration-icon-CNQIPioy.js} +1 -1
  88. package/dist/client/assets/{label-DoJDMV6i.js → label-BDcPRk17.js} +1 -1
  89. package/dist/client/assets/{layout-BHQ_c4RM.js → layout-DBK70FJ7.js} +1 -1
  90. package/dist/client/assets/{lean-canvas-recruit-modal-CDcr9qCt.js → lean-canvas-recruit-modal-Cosr7uB6.js} +1 -1
  91. package/dist/client/assets/{login-Am3HfZgi.js → login-uRApKgz7.js} +1 -1
  92. package/dist/client/assets/{members-yGwdGYMP.js → members-CgYS1Zxe.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-CglgsbP6.js → monaco-editor-D34bkcWL.js} +1 -1
  94. package/dist/client/assets/{monitoring-stats-row-C64ix0dR.js → monitoring-stats-row-Rw8mxMr8.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-YaQtgy3B.js → oauth-callback-DLWU7IjL.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-ai-provider-DXuTlaTS.js → oauth-callback-ai-provider-5FDIcGBj.js} +1 -1
  97. package/dist/client/assets/{onboarding-WnwwsOhD.js → onboarding-jyaCV8uq.js} +1 -1
  98. package/dist/client/assets/{org-layout-DCXUX3EB.js → org-layout-DxW3YApR.js} +1 -1
  99. package/dist/client/assets/{org-plugin-layout-Dsb_WQsm.js → org-plugin-layout-B-uqLn5y.js} +1 -1
  100. package/dist/client/assets/{pair-B01JdgFS.js → pair-CM7Z5dgt.js} +1 -1
  101. package/dist/client/assets/{plugin-empty-state-D3CO3AdB.js → plugin-empty-state-C-o1hhqY.js} +1 -1
  102. package/dist/client/assets/{plugin-header-aeJUAm2h.js → plugin-header-BTFD2Tcj.js} +1 -1
  103. package/dist/client/assets/{plugin-layout-CP1Bb1gU.js → plugin-layout-BiJEtvKW.js} +1 -1
  104. package/dist/client/assets/{popover-BajibMdr.js → popover-DQq9bf6V.js} +1 -1
  105. package/dist/client/assets/{profile-DDe57pOS.js → profile-PICkTEdT.js} +1 -1
  106. package/dist/client/assets/{project-app-view-AKSh-WqN.js → project-app-view-B1QcPr4W.js} +1 -1
  107. package/dist/client/assets/registry-Dr9Q687k.js +2 -0
  108. package/dist/client/assets/{registry-layout-QiSXnsNM.js → registry-layout-DGmSzwah.js} +1 -1
  109. package/dist/client/assets/{required-auth-layout-jdQgts2c.js → required-auth-layout-CfAoaltR.js} +1 -1
  110. package/dist/client/assets/{reset-password-BN5V7l8r.js → reset-password-NMO08kVP.js} +1 -1
  111. package/dist/client/assets/{roles-HeW5UUYX.js → roles-CCaqodZQ.js} +1 -1
  112. package/dist/client/assets/{scroll-area-SGeY9dE-.js → scroll-area-AhoYMTSF.js} +1 -1
  113. package/dist/client/assets/{search-input-D6oau9hI.js → search-input-BSmmjMtR.js} +1 -1
  114. package/dist/client/assets/{select-DeRvPFq1.js → select-dTphD0ES.js} +1 -1
  115. package/dist/client/assets/{select-model-Di1os-Ub.js → select-model-D2H_jWcd.js} +1 -1
  116. package/dist/client/assets/{settings-layout-Ds_Ffodp.js → settings-layout-Bn3d6rRU.js} +1 -1
  117. package/dist/client/assets/{settings-section-RBLHL8gf.js → settings-section-DkPpouMA.js} +1 -1
  118. package/dist/client/assets/{shell-layout-BBGXUnLn.js → shell-layout-DLX5f9iI.js} +1 -1
  119. package/dist/client/assets/{skeleton-BAo1ij7j.js → skeleton-DCMX-VkN.js} +1 -1
  120. package/dist/client/assets/{sso-CKN-2e5M.js → sso-BeQadTWm.js} +1 -1
  121. package/dist/client/assets/{store-hnD4E6ii.js → store-D-lrayyv.js} +1 -1
  122. package/dist/client/assets/store-registry-dKQp57q_.js +2 -0
  123. package/dist/client/assets/{switch-BGrAKUyr.js → switch-D9uEYoPa.js} +1 -1
  124. package/dist/client/assets/{table-0gEoBFzX.js → table-BIcJswmk.js} +1 -1
  125. package/dist/client/assets/{tabs-ChLvcDIf.js → tabs-Bbs5xG17.js} +1 -1
  126. package/dist/client/assets/{task-status-B0G255I6.js → task-status-1zFON5T4.js} +1 -1
  127. package/dist/client/assets/{textarea-CDageIb2.js → textarea-BMU9fnHG.js} +1 -1
  128. package/dist/client/assets/{toggle-group-BUN1pnfF.js → toggle-group-juphd3c4.js} +1 -1
  129. package/dist/client/assets/{tools-list-DIvrgoIa.js → tools-list-BP78dRI3.js} +1 -1
  130. package/dist/client/assets/{tooltip-pBgOajzM.js → tooltip-B5FrLY14.js} +1 -1
  131. package/dist/client/assets/{types-wSZC8rz7.js → types-DmM_J5U9.js} +1 -1
  132. package/dist/client/assets/{use-ai-providers-DVEz2NmK.js → use-ai-providers-CVAGId9e.js} +1 -1
  133. package/dist/client/assets/{use-collections-DV5bwdGb.js → use-collections-DKWG5Tun.js} +1 -1
  134. package/dist/client/assets/{use-connection-fs-HjrZ7.js → use-connection-Dy5vq_5j.js} +1 -1
  135. package/dist/client/assets/{use-copy-lIGig9yc.js → use-copy-BSYEct5q.js} +1 -1
  136. package/dist/client/assets/{use-create-virtual-mcp-Bz4IDcO1.js → use-create-virtual-mcp-ifW0Pllw.js} +1 -1
  137. package/dist/client/assets/{use-decopilot-events-B38OLSFm.js → use-decopilot-events-DVXCv4R8.js} +1 -1
  138. package/dist/client/assets/{use-delete-connection-CORGK4Oi.js → use-delete-connection-CRe3MUPe.js} +1 -1
  139. package/dist/client/assets/{use-infinite-scroll-C0wp7W5X.js → use-infinite-scroll-4DQHfv5o.js} +1 -1
  140. package/dist/client/assets/{use-list-state-DWVI_yIs.js → use-list-state-CihFBhY3.js} +1 -1
  141. package/dist/client/assets/{use-mcp-tools-C-hABbHm.js → use-mcp-tools-Bog3rGRX.js} +1 -1
  142. package/dist/client/assets/{use-members-DbWcRqMH.js → use-members-eWVl2b1I.js} +1 -1
  143. package/dist/client/assets/{use-navigate-to-agent-37f-6W2B.js → use-navigate-to-agent--7ajKHhy.js} +1 -1
  144. package/dist/client/assets/{use-org-auth-client-5_rgl0KN.js → use-org-auth-client-C-BGwXKo.js} +1 -1
  145. package/dist/client/assets/{use-org-sso-CFxSE_n9.js → use-org-sso-2mlDJ8c4.js} +1 -1
  146. package/dist/client/assets/{use-organization-roles-Cy74Gv9v.js → use-organization-roles-PByiiFjp.js} +1 -1
  147. package/dist/client/assets/{use-organization-settings-B3AsJEWq.js → use-organization-settings-DngIHmBy.js} +1 -1
  148. package/dist/client/assets/{use-registry-connections-C9X2yrii.js → use-registry-connections-CDM-gpri.js} +1 -1
  149. package/dist/client/assets/{use-status-sounds-DuT0KslZ.js → use-status-sounds-BzXaoVC8.js} +1 -1
  150. package/dist/client/assets/{use-tasks-Bg4m_k7S.js → use-tasks-M1RmMNT7.js} +1 -1
  151. package/dist/client/assets/{use-view-mode-_U7GAKYn.js → use-view-mode-DRDlksJe.js} +1 -1
  152. package/dist/client/assets/{use-virtual-mcp-CwGnYHPH.js → use-virtual-mcp-CDCK02Yj.js} +1 -1
  153. package/dist/client/assets/useInfiniteQuery-DtJBa4_2.js +1 -0
  154. package/dist/client/assets/useSuspenseInfiniteQuery-G-zitmER.js +1 -0
  155. package/dist/client/assets/{user-CpC285Qu.js → user-WYGHhGxH.js} +1 -1
  156. package/dist/client/assets/{view-mode-toggle-zrlQPSP1.js → view-mode-toggle-CK1VLDTo.js} +1 -1
  157. package/dist/client/assets/{workflow-D77PbtT7.js → workflow-DkcKupEW.js} +1 -1
  158. package/dist/client/assets/workflow-detail-BtHvU2Pd.js +1 -0
  159. package/dist/client/index.html +1 -1
  160. package/dist/server/cli.js +544 -489
  161. package/dist/server/node_modules/slice-ansi/index.d.ts +19 -0
  162. package/dist/server/node_modules/slice-ansi/index.js +260 -0
  163. package/dist/server/node_modules/{environment → slice-ansi}/license +1 -0
  164. package/dist/server/node_modules/slice-ansi/package.json +59 -0
  165. package/dist/server/node_modules/slice-ansi/readme.md +54 -0
  166. package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +752 -0
  167. package/dist/server/server.js +87 -44
  168. package/package.json +2 -1
  169. package/dist/client/assets/ai-providers-CCNzjFxx.js +0 -1
  170. package/dist/client/assets/index-B13jh3-s.js +0 -1
  171. package/dist/client/assets/registry-BEeKP9Pe.js +0 -2
  172. package/dist/client/assets/store-registry-s8CHypuf.js +0 -2
  173. package/dist/client/assets/useInfiniteQuery-DGrk4ASG.js +0 -1
  174. package/dist/client/assets/useSuspenseInfiniteQuery-cV09mkra.js +0 -1
  175. package/dist/client/assets/workflow-detail-DAtCF7t1.js +0 -1
  176. package/dist/server/node_modules/environment/index.d.ts +0 -74
  177. package/dist/server/node_modules/environment/index.js +0 -47
  178. package/dist/server/node_modules/environment/package.json +0 -74
  179. package/dist/server/node_modules/environment/readme.md +0 -94
  180. package/dist/server/node_modules/escape-string-regexp/index.d.ts +0 -18
  181. package/dist/server/node_modules/escape-string-regexp/index.js +0 -11
  182. package/dist/server/node_modules/escape-string-regexp/license +0 -9
  183. package/dist/server/node_modules/escape-string-regexp/package.json +0 -43
  184. package/dist/server/node_modules/escape-string-regexp/readme.md +0 -29
  185. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  186. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  187. package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
  188. package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
  189. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  190. package/dist/server/node_modules/is-unicode-supported/index.d.ts +0 -12
  191. package/dist/server/node_modules/is-unicode-supported/index.js +0 -21
  192. package/dist/server/node_modules/is-unicode-supported/license +0 -9
  193. package/dist/server/node_modules/is-unicode-supported/package.json +0 -47
  194. package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
  195. package/dist/server/node_modules/pg-pool/LICENSE +0 -21
  196. package/dist/server/node_modules/pg-pool/README.md +0 -357
  197. package/dist/server/node_modules/pg-pool/esm/index.mjs +0 -5
  198. package/dist/server/node_modules/pg-pool/index.js +0 -517
  199. package/dist/server/node_modules/pg-pool/package.json +0 -51
  200. package/dist/server/node_modules/restore-cursor/index.d.ts +0 -11
  201. package/dist/server/node_modules/restore-cursor/index.js +0 -11
  202. package/dist/server/node_modules/restore-cursor/license +0 -9
  203. package/dist/server/node_modules/restore-cursor/package.json +0 -55
  204. package/dist/server/node_modules/restore-cursor/readme.md +0 -31
  205. package/dist/server/node_modules/string-width/index.d.ts +0 -39
  206. package/dist/server/node_modules/string-width/index.js +0 -82
  207. package/dist/server/node_modules/string-width/license +0 -9
  208. package/dist/server/node_modules/string-width/package.json +0 -64
  209. package/dist/server/node_modules/string-width/readme.md +0 -66
@@ -3938,9 +3938,10 @@ var gitSync2 = (args, opts) => gitSync(["-c", "safe.directory=*", ...args], opts
3938
3938
  class BranchStatusMonitor {
3939
3939
  config;
3940
3940
  broadcaster;
3941
- last = null;
3941
+ last = { kind: "initializing" };
3942
3942
  timer = null;
3943
3943
  watcher = null;
3944
+ pollFallback = null;
3944
3945
  constructor(config, broadcaster) {
3945
3946
  this.config = config;
3946
3947
  this.broadcaster = broadcaster;
@@ -3948,35 +3949,66 @@ class BranchStatusMonitor {
3948
3949
  getLast() {
3949
3950
  return this.last;
3950
3951
  }
3951
- emit() {
3952
+ setPhase(next) {
3953
+ if (this.equal(this.last, next))
3954
+ return;
3955
+ this.last = next;
3956
+ this.broadcast(next);
3957
+ }
3958
+ markReady() {
3952
3959
  const next = this.compute();
3953
3960
  if (!next)
3954
3961
  return;
3955
- if (this.last && JSON.stringify(this.last) === JSON.stringify(next)) {
3962
+ if (this.equal(this.last, next))
3956
3963
  return;
3957
- }
3958
3964
  this.last = next;
3965
+ this.broadcast(next);
3966
+ this.ensureWatch();
3967
+ }
3968
+ stop() {
3969
+ if (this.timer) {
3970
+ clearTimeout(this.timer);
3971
+ this.timer = null;
3972
+ }
3973
+ if (this.watcher) {
3974
+ this.watcher.close();
3975
+ this.watcher = null;
3976
+ }
3977
+ if (this.pollFallback) {
3978
+ clearInterval(this.pollFallback);
3979
+ this.pollFallback = null;
3980
+ }
3981
+ }
3982
+ broadcast(s) {
3959
3983
  this.broadcaster.broadcastEvent("branch-status", {
3960
3984
  type: "branch-status",
3961
- ...next
3985
+ ...s
3962
3986
  });
3963
3987
  }
3988
+ equal(a, b) {
3989
+ return JSON.stringify(a) === JSON.stringify(b);
3990
+ }
3964
3991
  schedule() {
3965
3992
  if (this.timer)
3966
3993
  return;
3967
3994
  this.timer = setTimeout(() => {
3968
3995
  this.timer = null;
3969
- this.emit();
3996
+ if (this.last.kind === "ready")
3997
+ this.markReady();
3970
3998
  }, 250);
3971
3999
  }
3972
- watch() {
3973
- if (this.watcher)
4000
+ ensureWatch() {
4001
+ if (this.watcher || this.pollFallback)
3974
4002
  return;
3975
4003
  const gitDir = \`\${this.config.appRoot}/.git\`;
3976
4004
  try {
3977
4005
  this.watcher = fs2.watch(gitDir, { recursive: true }, () => this.schedule());
4006
+ this.watcher.on("error", () => {});
3978
4007
  } catch {
3979
- setInterval(() => this.emit(), 5000);
4008
+ this.pollFallback = setInterval(() => {
4009
+ if (this.last.kind === "ready")
4010
+ this.markReady();
4011
+ }, 5000);
3980
4012
  }
3981
4013
  }
3982
4014
  compute() {
@@ -4017,6 +4049,7 @@ class BranchStatusMonitor {
4017
4049
  }
4018
4050
  const headSha = run(["rev-parse", branchRef]);
4019
4051
  return {
4052
+ kind: "ready",
4020
4053
  branch,
4021
4054
  base,
4022
4055
  workingTreeDirty: dirty,
@@ -5330,9 +5363,7 @@ function makeSseStream(deps) {
5330
5363
  ...deps.getAppStatus()
5331
5364
  })));
5332
5365
  const lastBranch = deps.getLastBranchStatus();
5333
- if (lastBranch) {
5334
- c.enqueue(sseFormat("branch-status", JSON.stringify({ type: "branch-status", ...lastBranch })));
5335
- }
5366
+ c.enqueue(sseFormat("branch-status", JSON.stringify({ type: "branch-status", ...lastBranch })));
5336
5367
  deps.broadcaster.register(controller);
5337
5368
  keepAlive = setInterval(() => {
5338
5369
  try {
@@ -6127,19 +6158,33 @@ class SetupOrchestrator {
6127
6158
  return;
6128
6159
  const cloneUrl = config.git?.repository?.cloneUrl;
6129
6160
  if (cloneUrl && !isResume(config.repoDir)) {
6161
+ this.deps.branchStatus.setPhase({ kind: "cloning" });
6130
6162
  const cloneTaskId = this.deps.phaseManager?.begin("clone");
6131
6163
  const cloneLogPath = appLogPath(this.deps.logsDir, "clone");
6132
6164
  try {
6133
6165
  unlinkSync3(cloneLogPath);
6134
6166
  } catch {}
6135
6167
  const cloneTee = new LogTee(cloneLogPath, INSTALL_LOG_MAX_BYTES);
6136
- const code = await spawnClone({
6137
- config,
6138
- onChunk: (_src, data) => {
6139
- this.chunk(data);
6140
- cloneTee.write(data);
6141
- }
6142
- });
6168
+ let code;
6169
+ try {
6170
+ code = await spawnClone({
6171
+ config,
6172
+ onChunk: (_src, data) => {
6173
+ this.chunk(data);
6174
+ cloneTee.write(data);
6175
+ }
6176
+ });
6177
+ } catch (e) {
6178
+ cloneTee.close();
6179
+ const error = e.message;
6180
+ this.chunk(\`\\r
6181
+ [orchestrator] clone failed: \${error}\\r
6182
+ \`);
6183
+ if (cloneTaskId)
6184
+ this.deps.phaseManager?.fail(cloneTaskId, error);
6185
+ this.deps.branchStatus.setPhase({ kind: "clone-failed", error });
6186
+ return;
6187
+ }
6143
6188
  cloneTee.close();
6144
6189
  if (code !== 0) {
6145
6190
  this.chunk(\`\\r
@@ -6147,6 +6192,10 @@ class SetupOrchestrator {
6147
6192
  \`);
6148
6193
  if (cloneTaskId)
6149
6194
  this.deps.phaseManager?.fail(cloneTaskId, \`exit \${code}\`);
6195
+ this.deps.branchStatus.setPhase({
6196
+ kind: "clone-failed",
6197
+ error: \`exit \${code}\`
6198
+ });
6150
6199
  return;
6151
6200
  }
6152
6201
  if (cloneTaskId)
@@ -6156,6 +6205,7 @@ class SetupOrchestrator {
6156
6205
  \`);
6157
6206
  }
6158
6207
  await this.gitSetup(config);
6208
+ this.deps.branchStatus.markReady();
6159
6209
  if (config.application?.intent === "running") {
6160
6210
  const installed = await this.runInstall();
6161
6211
  if (installed)
@@ -6171,6 +6221,7 @@ class SetupOrchestrator {
6171
6221
  if (!config)
6172
6222
  return;
6173
6223
  await this.gitSetup(config);
6224
+ this.deps.branchStatus.markReady();
6174
6225
  if (config.application?.intent === "running") {
6175
6226
  if (!this.deps.installState.isInstalledFor(config, this.currentBranchHead)) {
6176
6227
  const ok = await this.runInstall();
@@ -6186,15 +6237,19 @@ class SetupOrchestrator {
6186
6237
  await this.deps.appService.stop();
6187
6238
  this.chunk(\`[orchestrator] checking out branch: \${to}\\r
6188
6239
  \`);
6240
+ this.deps.branchStatus.setPhase({ kind: "checking-out", to });
6189
6241
  try {
6190
6242
  await this.checkoutBranch(to);
6191
6243
  } catch (e) {
6244
+ const error = e.message;
6192
6245
  this.chunk(\`\\r
6193
- [orchestrator] branch-change failed: \${e.message}\\r
6246
+ [orchestrator] branch-change failed: \${error}\\r
6194
6247
  \`);
6248
+ this.deps.branchStatus.setPhase({ kind: "checkout-failed", error });
6195
6249
  return;
6196
6250
  }
6197
6251
  this.refreshBranchHead();
6252
+ this.deps.branchStatus.markReady();
6198
6253
  const ok = await this.runInstall();
6199
6254
  if (ok)
6200
6255
  await this.startIfReady();
@@ -6538,6 +6593,14 @@ var appService = new ApplicationService({
6538
6593
  \`);
6539
6594
  }
6540
6595
  });
6596
+ var branchStatus = new BranchStatusMonitor({
6597
+ appRoot: bootConfig.appRoot,
6598
+ repoDir: bootConfig.repoDir,
6599
+ daemonToken: bootConfig.daemonToken,
6600
+ daemonBootId: bootConfig.daemonBootId,
6601
+ proxyPort: bootConfig.proxyPort,
6602
+ dropPrivileges: false
6603
+ }, broadcaster);
6541
6604
  var orchestrator = new SetupOrchestrator({
6542
6605
  bootConfig: { appRoot: bootConfig.appRoot, repoDir: bootConfig.repoDir },
6543
6606
  store,
@@ -6545,9 +6608,9 @@ var orchestrator = new SetupOrchestrator({
6545
6608
  broadcaster,
6546
6609
  installState,
6547
6610
  logsDir: TMP_DIR,
6548
- phaseManager
6611
+ phaseManager,
6612
+ branchStatus
6549
6613
  });
6550
- var branchStatus = null;
6551
6614
  var discoveredScripts = null;
6552
6615
  var lastWrittenProxyPort;
6553
6616
  var origEvent = broadcaster.broadcastEvent.bind(broadcaster);
@@ -6559,27 +6622,7 @@ broadcaster.broadcastEvent = (event, data) => {
6559
6622
  };
6560
6623
  store.subscribe((event) => {
6561
6624
  orchestrator.handle(event.transition);
6562
- if (event.transition.kind === "first-bootstrap") {
6563
- refreshBranchStatusMonitor();
6564
- }
6565
6625
  });
6566
- function refreshBranchStatusMonitor() {
6567
- const enriched = store.read();
6568
- if (!enriched) {
6569
- branchStatus = null;
6570
- return;
6571
- }
6572
- const config = {
6573
- ...enriched,
6574
- daemonToken: bootConfig.daemonToken,
6575
- daemonBootId: bootConfig.daemonBootId,
6576
- proxyPort: bootConfig.proxyPort,
6577
- appRoot: bootConfig.appRoot,
6578
- repoDir: bootConfig.repoDir,
6579
- dropPrivileges: false
6580
- };
6581
- branchStatus = new BranchStatusMonitor(config, broadcaster);
6582
- }
6583
6626
  var excludeFromDiscovery = new Set([bootConfig.proxyPort]);
6584
6627
  var getDiscoveredPorts = () => {
6585
6628
  const pids = [];
@@ -6668,7 +6711,7 @@ var eventsH = makeEventsHandler({
6668
6711
  getDiscoveredScripts: () => discoveredScripts,
6669
6712
  getActiveTasks,
6670
6713
  getAppStatus: () => appService.snapshot(),
6671
- getLastBranchStatus: () => branchStatus ? branchStatus.getLast() : null
6714
+ getLastBranchStatus: () => branchStatus.getLast()
6672
6715
  });
6673
6716
  var idleH = makeIdleHandler();
6674
6717
  var proxyH = makeProxyHandler({ broadcaster, getDevPort });
@@ -6705,7 +6748,6 @@ function hydrate() {
6705
6748
  if (!initial)
6706
6749
  return;
6707
6750
  store.hydrate(initial);
6708
- refreshBranchStatusMonitor();
6709
6751
  const transitionKind = isResume(bootConfig.repoDir) ? "resume" : "first-bootstrap";
6710
6752
  orchestrator.handle({ kind: transitionKind, config: initial });
6711
6753
  if (diskOutcome.kind !== "valid") {
@@ -6814,6 +6856,7 @@ Bun.serve({
6814
6856
  process.on("SIGTERM", () => {
6815
6857
  taskManager.shutdown();
6816
6858
  appService.shutdown();
6859
+ branchStatus.stop();
6817
6860
  const branch = store.read()?.git?.repository?.branch;
6818
6861
  if (branch) {
6819
6862
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "2.302.7",
3
+ "version": "2.304.0",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -50,6 +50,7 @@
50
50
  "@aws-sdk/client-s3": "^3.1013.0",
51
51
  "@aws-sdk/s3-request-presigner": "^3.1013.0",
52
52
  "@clickhouse/client": "^1.8.1",
53
+ "@deco-cx/warp-node": "^0.3.20",
53
54
  "@dnd-kit/core": "^6.3.1",
54
55
  "@dnd-kit/sortable": "^10.0.0",
55
56
  "@dnd-kit/utilities": "^3.2.2",
@@ -1 +0,0 @@
1
- import{e as t,j as i}from"./index-CQ4D5GAP.js";import{O as m}from"./select-model-Di1os-Ub.js";import"./checkbox-A-1sOL7a.js";import"./ChevronDown-C3Ygm425.js";import"./input-6Sf2hB_F.js";import"./dialog-DpgNnjBX.js";import"./X-DlTdh5jK.js";import"./drawer-LAm5-sL1.js";import"./tooltip-pBgOajzM.js";import"./select-DeRvPFq1.js";import"./ChevronUp-D2rVf06n.js";import"./skeleton-BAo1ij7j.js";import"./Tool01-9otovhMh.js";import"./RefreshCcw01-BHf_tfWd.js";import"./SearchMd-a6724p0Y.js";import"./Settings02-CrnanDsL.js";import"./use-ai-providers-DVEz2NmK.js";import"./constants-BXUJyD1c.js";import"./chat-context-D8pNmIoM.js";import"./use-virtual-mcp-CwGnYHPH.js";import"./use-collections-DV5bwdGb.js";import"./use-decopilot-events-B38OLSFm.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-Bg4m_k7S.js";import"./use-organization-settings-B3AsJEWq.js";import"./ai-providers-logos-DD3qZ33J.js";import"./Zap-DE6pD70D.js";import"./AlertCircle-CG9syR30.js";import"./CheckCircle-DenMuCVF.js";import"./Trash01-re7YiF5g.js";import"./index-B2vPEOVc.js";import"./settings-section-RBLHL8gf.js";import"./card-CbtqsNyF.js";import"./ArrowUpRight-BdaniATT.js";import"./switch-BGrAKUyr.js";import"./toggle-group-BUN1pnfF.js";import"./avatar-D56WFjQj.js";import"./User01-BgnyFNdJ.js";import"./alert-dialog-Cp4KelsS.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./unwrap-tool-result-BYXdCQMg.js";function T(){const o=t.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(m,{}),o[0]=r):r=o[0],r}export{T as default};
@@ -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-CQ4D5GAP.js";import{S as j,a as b,b as S}from"./index-B2vPEOVc.js";import{u as _}from"./tooltip-pBgOajzM.js";import{u as k,T as y,a as T,b as i,S as g}from"./index-swcvm5Z1.js";import{C as v}from"./chat-context-D8pNmIoM.js";import"./X-DlTdh5jK.js";import"./agent-icon-DzVM2Y3D.js";import"./AlertCircle-CG9syR30.js";import"./Tool01-9otovhMh.js";import"./XClose-CDyDeDuF.js";import"./RefreshCcw01-BHf_tfWd.js";import"./ArrowNarrowLeft-BoVSDn9e.js";import"./XCircle-BE4LAsf8.js";import"./ArrowUpRight-BdaniATT.js";import"./ZapSquare-FWH2wtfn.js";import"./Users03-BPGIuPOi.js";import"./CheckCircle-DenMuCVF.js";import"./ChevronDown-C3Ygm425.js";import"./ChevronRight-ZWCM92t_.js";import"./ChevronUp-D2rVf06n.js";import"./DotsVertical-CLHEpDSq.js";import"./Container-D7Azh5xu.js";import"./Star01-BFmiet3n.js";import"./Palette-BYEIR3m2.js";import"./SearchMd-a6724p0Y.js";import"./LinkExternal01-DxXEJ52C.js";import"./Lock01-BguDy0uh.js";import"./Sun-CRJFmy5s.js";import"./Play-Bwjd77ev.js";import"./Plus-DTn86Odk.js";import"./Settings02-CrnanDsL.js";import"./Shield01-DtxRf8Qj.js";import"./Trash01-re7YiF5g.js";import"./User01-BgnyFNdJ.js";import"./Zap-DE6pD70D.js";import"./shell-layout-BBGXUnLn.js";import"./dialog-DpgNnjBX.js";import"./required-auth-layout-jdQgts2c.js";import"./use-tasks-Bg4m_k7S.js";import"./use-collections-DV5bwdGb.js";import"./constants-BXUJyD1c.js";import"./use-organization-settings-B3AsJEWq.js";import"./use-org-sso-CFxSE_n9.js";import"./pair-B01JdgFS.js";import"./index-ImhE7zFL.js";import"./use-copy-lIGig9yc.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-wSZC8rz7.js";import"./integration-icon-8lhkAaq5.js";import"./use-virtual-mcp-CwGnYHPH.js";import"./skeleton-BAo1ij7j.js";import"./popover-BajibMdr.js";import"./drawer-LAm5-sL1.js";import"./avatar-D56WFjQj.js";import"./alert-dialog-Cp4KelsS.js";import"./form-DFO_5Fzm.js";import"./label-DoJDMV6i.js";import"./input-6Sf2hB_F.js";import"./index-r9i7ABND.js";import"./use-mcp-tools-C-hABbHm.js";import"./use-ai-providers-DVEz2NmK.js";import"./index-2dOrl4x0.js";import"./switch-BGrAKUyr.js";import"./use-connection-fs-HjrZ7.js";import"./lean-canvas-recruit-modal-CDcr9qCt.js";import"./use-navigate-to-agent-37f-6W2B.js";import"./collection-search-TTX5BBhb.js";import"./checkbox-A-1sOL7a.js";import"./extract-connection-data-cbAHcCfh.js";import"./constants-9TBj0Gaa.js";import"./collections-DY4I1w_a.js";import"./tabs-ChLvcDIf.js";import"./dropdown-menu-CSBZWMuU.js";import"./select-DeRvPFq1.js";import"./toggle-group-BUN1pnfF.js";import"./select-model-Di1os-Ub.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-RBLHL8gf.js";import"./card-CbtqsNyF.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./index-DYIl7M2a.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-iSBKdQg9.js";import"./use-registry-connections-C9X2yrii.js";import"./useInfiniteQuery-DGrk4ASG.js";import"./infiniteQueryObserver-CxkHF-jm.js";import"./collection-tabs-BYirFRax.js";import"./badge-Brrebgj_.js";import"./textarea-CDageIb2.js";import"./connection-form-helpers-Cad-A9NK.js";import"./use-infinite-scroll-C0wp7W5X.js";import"./useSuspenseInfiniteQuery-cV09mkra.js";import"./collection-search-BtNt6NZG.js";import"./use-create-virtual-mcp-Bz4IDcO1.js";import"./empty-state-D8Ji8JRa.js";import"./use-decopilot-events-B38OLSFm.js";import"./create-sse-subscription-CxkOgzKf.js";import"./task-status-B0G255I6.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 yr(){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{yr as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-QiSXnsNM.js","assets/index-CQ4D5GAP.js","assets/index-DXHNyf1g.css","assets/ArrowNarrowLeft-BoVSDn9e.js","assets/CheckCircle-DenMuCVF.js","assets/Container-D7Azh5xu.js","assets/Settings02-CrnanDsL.js","assets/XCircle-BE4LAsf8.js","assets/constants-BXUJyD1c.js","assets/useInfiniteQuery-DGrk4ASG.js","assets/infiniteQueryObserver-CxkHF-jm.js","assets/badge-Brrebgj_.js","assets/input-6Sf2hB_F.js","assets/dropdown-menu-CSBZWMuU.js","assets/ChevronDown-C3Ygm425.js","assets/ChevronRight-ZWCM92t_.js","assets/DotsVertical-CLHEpDSq.js","assets/table-0gEoBFzX.js","assets/toggle-group-BUN1pnfF.js","assets/use-view-mode-_U7GAKYn.js","assets/tooltip-pBgOajzM.js","assets/SearchMd-a6724p0Y.js","assets/dialog-DpgNnjBX.js","assets/X-DlTdh5jK.js","assets/AlertCircle-CG9syR30.js","assets/alert-dialog-Cp4KelsS.js","assets/card-CbtqsNyF.js","assets/Trash01-re7YiF5g.js","assets/label-DoJDMV6i.js","assets/select-DeRvPFq1.js","assets/ChevronUp-D2rVf06n.js","assets/switch-BGrAKUyr.js","assets/textarea-CDageIb2.js","assets/RefreshCcw01-BHf_tfWd.js","assets/checkbox-A-1sOL7a.js","assets/LinkExternal01-DxXEJ52C.js","assets/use-copy-lIGig9yc.js","assets/Plus-DTn86Odk.js","assets/Play-Bwjd77ev.js"])))=>i.map(i=>d[i]);
2
- import{e as a,j as t,r,l as i,_ as o}from"./index-CQ4D5GAP.js";const n=r.lazy(()=>o(()=>import("./registry-layout-QiSXnsNM.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])));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-QiSXnsNM.js","assets/index-CQ4D5GAP.js","assets/index-DXHNyf1g.css","assets/ArrowNarrowLeft-BoVSDn9e.js","assets/CheckCircle-DenMuCVF.js","assets/Container-D7Azh5xu.js","assets/Settings02-CrnanDsL.js","assets/XCircle-BE4LAsf8.js","assets/constants-BXUJyD1c.js","assets/useInfiniteQuery-DGrk4ASG.js","assets/infiniteQueryObserver-CxkHF-jm.js","assets/badge-Brrebgj_.js","assets/input-6Sf2hB_F.js","assets/dropdown-menu-CSBZWMuU.js","assets/ChevronDown-C3Ygm425.js","assets/ChevronRight-ZWCM92t_.js","assets/DotsVertical-CLHEpDSq.js","assets/table-0gEoBFzX.js","assets/toggle-group-BUN1pnfF.js","assets/use-view-mode-_U7GAKYn.js","assets/tooltip-pBgOajzM.js","assets/SearchMd-a6724p0Y.js","assets/dialog-DpgNnjBX.js","assets/X-DlTdh5jK.js","assets/AlertCircle-CG9syR30.js","assets/alert-dialog-Cp4KelsS.js","assets/card-CbtqsNyF.js","assets/Trash01-re7YiF5g.js","assets/label-DoJDMV6i.js","assets/select-DeRvPFq1.js","assets/ChevronUp-D2rVf06n.js","assets/switch-BGrAKUyr.js","assets/textarea-CDageIb2.js","assets/RefreshCcw01-BHf_tfWd.js","assets/checkbox-A-1sOL7a.js","assets/LinkExternal01-DxXEJ52C.js","assets/use-copy-lIGig9yc.js","assets/Plus-DTn86Odk.js","assets/Play-Bwjd77ev.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-CQ4D5GAP.js";const _=l.lazy(()=>u(()=>import("./registry-layout-QiSXnsNM.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])));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-CxkHF-jm.js";import{c2 as i}from"./index-CQ4D5GAP.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-CxkHF-jm.js";import{c2 as u,c3 as n}from"./index-CQ4D5GAP.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-CQ4D5GAP.js";import{a as f}from"./index-C4QwSWi9.js";import"./index-CHNVhIMp.js";import"./constants-BXUJyD1c.js";import"./collections-DY4I1w_a.js";import"./index-XLC4yiSV.js";import"./use-virtual-mcp-CwGnYHPH.js";import"./use-collections-DV5bwdGb.js";import"./monaco-editor-CglgsbP6.js";import"./index-ImhE7zFL.js";import"./accordion-BubDFUkM.js";import"./agent-icon-DzVM2Y3D.js";import"./AlertCircle-CG9syR30.js";import"./Tool01-9otovhMh.js";import"./XClose-CDyDeDuF.js";import"./RefreshCcw01-BHf_tfWd.js";import"./ArrowNarrowLeft-BoVSDn9e.js";import"./XCircle-BE4LAsf8.js";import"./ArrowUpRight-BdaniATT.js";import"./ZapSquare-FWH2wtfn.js";import"./Users03-BPGIuPOi.js";import"./CheckCircle-DenMuCVF.js";import"./ChevronDown-C3Ygm425.js";import"./ChevronRight-ZWCM92t_.js";import"./ChevronUp-D2rVf06n.js";import"./DotsVertical-CLHEpDSq.js";import"./Container-D7Azh5xu.js";import"./Star01-BFmiet3n.js";import"./Palette-BYEIR3m2.js";import"./SearchMd-a6724p0Y.js";import"./index-B2vPEOVc.js";import"./tooltip-pBgOajzM.js";import"./X-DlTdh5jK.js";import"./LinkExternal01-DxXEJ52C.js";import"./Lock01-BguDy0uh.js";import"./Sun-CRJFmy5s.js";import"./Play-Bwjd77ev.js";import"./Plus-DTn86Odk.js";import"./Settings02-CrnanDsL.js";import"./Shield01-DtxRf8Qj.js";import"./Trash01-re7YiF5g.js";import"./User01-BgnyFNdJ.js";import"./Zap-DE6pD70D.js";import"./badge-Brrebgj_.js";import"./select-DeRvPFq1.js";import"./view-mode-toggle-zrlQPSP1.js";import"./layout-BHQ_c4RM.js";import"./use-connection-fs-HjrZ7.js";import"./use-mcp-tools-C-hABbHm.js";import"./dialog-DpgNnjBX.js";import"./index-DYIl7M2a.js";import"./dropdown-menu-CSBZWMuU.js";import"./integration-icon-8lhkAaq5.js";import"./scroll-area-SGeY9dE-.js";import"./index-r9i7ABND.js";import"./empty-state-C3GO5RSf.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-6Sf2hB_F.js";function ht(){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{ht as default};
@@ -1,74 +0,0 @@
1
- /**
2
- Check if the code is running in a web browser environment.
3
- */
4
- export const isBrowser: boolean;
5
-
6
- /**
7
- Check if the code is running in a [Node.js](https://nodejs.org) environment.
8
- */
9
- export const isNode: boolean;
10
-
11
- /**
12
- Check if the code is running in a [Bun](https://bun.sh) environment.
13
- */
14
- export const isBun: boolean;
15
-
16
- /**
17
- Check if the code is running in a Deno environment.
18
- */
19
- export const isDeno: boolean;
20
-
21
- /**
22
- Check if the code is running in an Electron environment.
23
- */
24
- export const isElectron: boolean;
25
-
26
- /**
27
- Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
28
- */
29
- export const isJsDom: boolean;
30
-
31
- /**
32
- Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
33
- */
34
- export const isWebWorker: boolean;
35
-
36
- /**
37
- Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
38
- */
39
- export const isDedicatedWorker: boolean;
40
-
41
- /**
42
- Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
43
- */
44
- export const isSharedWorker: boolean;
45
-
46
- /**
47
- Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
48
- */
49
- export const isServiceWorker: boolean;
50
-
51
- /**
52
- Check if the code is running on macOS.
53
- */
54
- export const isMacOs: boolean;
55
-
56
- /**
57
- Check if the code is running on Windows.
58
- */
59
- export const isWindows: boolean;
60
-
61
- /**
62
- Check if the code is running on Linux.
63
- */
64
- export const isLinux: boolean;
65
-
66
- /**
67
- Check if the code is running on iOS.
68
- */
69
- export const isIos: boolean;
70
-
71
- /**
72
- Check if the code is running on Android.
73
- */
74
- export const isAndroid: boolean;
@@ -1,47 +0,0 @@
1
- /* globals WorkerGlobalScope, DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, ServiceWorkerGlobalScope */
2
-
3
- export const isBrowser = globalThis.window?.document !== undefined;
4
-
5
- export const isNode = globalThis.process?.versions?.node !== undefined;
6
-
7
- export const isBun = globalThis.process?.versions?.bun !== undefined;
8
-
9
- export const isDeno = globalThis.Deno?.version?.deno !== undefined;
10
-
11
- export const isElectron = globalThis.process?.versions?.electron !== undefined;
12
-
13
- export const isJsDom = globalThis.navigator?.userAgent?.includes('jsdom') === true;
14
-
15
- export const isWebWorker = typeof WorkerGlobalScope !== 'undefined' && globalThis instanceof WorkerGlobalScope;
16
-
17
- export const isDedicatedWorker = typeof DedicatedWorkerGlobalScope !== 'undefined' && globalThis instanceof DedicatedWorkerGlobalScope;
18
-
19
- export const isSharedWorker = typeof SharedWorkerGlobalScope !== 'undefined' && globalThis instanceof SharedWorkerGlobalScope;
20
-
21
- export const isServiceWorker = typeof ServiceWorkerGlobalScope !== 'undefined' && globalThis instanceof ServiceWorkerGlobalScope;
22
-
23
- // Note: I'm intentionally not DRYing up the other variables to keep them "lazy".
24
- const platform = globalThis.navigator?.userAgentData?.platform;
25
-
26
- export const isMacOs = platform === 'macOS'
27
- || globalThis.navigator?.platform === 'MacIntel' // Even on Apple silicon Macs.
28
- || globalThis.navigator?.userAgent?.includes(' Mac ') === true
29
- || globalThis.process?.platform === 'darwin';
30
-
31
- export const isWindows = platform === 'Windows'
32
- || globalThis.navigator?.platform === 'Win32'
33
- || globalThis.process?.platform === 'win32';
34
-
35
- export const isLinux = platform === 'Linux'
36
- || globalThis.navigator?.platform?.startsWith('Linux') === true
37
- || globalThis.navigator?.userAgent?.includes(' Linux ') === true
38
- || globalThis.process?.platform === 'linux';
39
-
40
- export const isIos = platform === 'iOS'
41
- || (globalThis.navigator?.platform === 'MacIntel' && globalThis.navigator?.maxTouchPoints > 1)
42
- || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
43
-
44
- export const isAndroid = platform === 'Android'
45
- || globalThis.navigator?.platform === 'Android'
46
- || globalThis.navigator?.userAgent?.includes(' Android ') === true
47
- || globalThis.process?.platform === 'android';
@@ -1,74 +0,0 @@
1
- {
2
- "name": "environment",
3
- "version": "1.1.0",
4
- "description": "Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc",
5
- "license": "MIT",
6
- "repository": "sindresorhus/environment",
7
- "funding": "https://github.com/sponsors/sindresorhus",
8
- "author": {
9
- "name": "Sindre Sorhus",
10
- "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
12
- },
13
- "type": "module",
14
- "exports": {
15
- "types": "./index.d.ts",
16
- "default": "./index.js"
17
- },
18
- "sideEffects": false,
19
- "engines": {
20
- "node": ">=18"
21
- },
22
- "scripts": {
23
- "test": "xo && ava && tsc index.d.ts"
24
- },
25
- "files": [
26
- "index.js",
27
- "index.d.ts"
28
- ],
29
- "keywords": [
30
- "runtime",
31
- "environment",
32
- "env",
33
- "execution",
34
- "engine",
35
- "platform",
36
- "context",
37
- "js",
38
- "javascript",
39
- "is",
40
- "check",
41
- "checking",
42
- "detect",
43
- "detection",
44
- "browser",
45
- "node",
46
- "bun",
47
- "deno",
48
- "electron",
49
- "jsdom",
50
- "webworker",
51
- "worker",
52
- "serviceworker",
53
- "macos",
54
- "ios",
55
- "iphone",
56
- "ipad",
57
- "windows",
58
- "linux",
59
- "android",
60
- "os",
61
- "operating",
62
- "system"
63
- ],
64
- "devDependencies": {
65
- "ava": "^6.1.3",
66
- "typescript": "^5.4.5",
67
- "xo": "^0.58.0"
68
- },
69
- "xo": {
70
- "rules": {
71
- "n/prefer-global/process": "off"
72
- }
73
- }
74
- }
@@ -1,94 +0,0 @@
1
- # environment
2
-
3
- > Check which JavaScript environment your code is running in at runtime
4
-
5
- ## Install
6
-
7
- ```sh
8
- npm install environment
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- import {isBrowser, isNode} from 'environment';
15
-
16
- if (isBrowser) {
17
- console.log('Running in a browser!');
18
- }
19
-
20
- if (isNode) {
21
- console.log('Running in Node.js!');
22
- }
23
- ```
24
-
25
- > [!NOTE]
26
- > Runtime checks should be used sparingly. Prefer [conditional package exports](https://nodejs.org/api/packages.html#conditional-exports) and [imports](https://nodejs.org/api/packages.html#subpath-imports) whenever possible.
27
-
28
- ## API
29
-
30
- ### `isBrowser`
31
-
32
- Check if the code is running in a web browser environment.
33
-
34
- ### `isNode`
35
-
36
- Check if the code is running in a [Node.js](https://nodejs.org) environment.
37
-
38
- ### `isBun`
39
-
40
- Check if the code is running in a [Bun](https://bun.sh) environment.
41
-
42
- ### `isDeno`
43
-
44
- Check if the code is running in a [Deno](https://deno.com) environment.
45
-
46
- ### `isElectron`
47
-
48
- Check if the code is running in an [Electron](https://www.electronjs.org) environment.
49
-
50
- ### `isJsDom`
51
-
52
- Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
53
-
54
- ### `isWebWorker`
55
-
56
- Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
57
-
58
- ### `isDedicatedWorker`
59
-
60
- Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
61
-
62
- ### `isSharedWorker`
63
-
64
- Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
65
-
66
- ### `isServiceWorker`
67
-
68
- Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
69
-
70
- ### `isMacOs`
71
-
72
- Check if the code is running on macOS.
73
-
74
- ### `isWindows`
75
-
76
- Check if the code is running on Windows.
77
-
78
- ### `isLinux`
79
-
80
- Check if the code is running on Linux.
81
-
82
- ### `isIos`
83
-
84
- Check if the code is running on iOS.
85
-
86
- ### `isAndroid`
87
-
88
- Check if the code is running on Android.
89
-
90
- ## Related
91
-
92
- - [is-in-ci](https://github.com/sindresorhus/is-in-ci) - Check if the process is running in a CI environment
93
- - [is64bit](https://github.com/sindresorhus/is64bit) - Check if the operating system CPU architecture is 64-bit or 32-bit
94
- - [is](https://github.com/sindresorhus/is) - Type check values
@@ -1,18 +0,0 @@
1
- /**
2
- Escape RegExp special characters.
3
-
4
- You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
5
-
6
- @example
7
- ```
8
- import escapeStringRegexp = require('escape-string-regexp');
9
-
10
- const escapedString = escapeStringRegexp('How much $ for a 🦄?');
11
- //=> 'How much \\$ for a 🦄\\?'
12
-
13
- new RegExp(escapedString);
14
- ```
15
- */
16
- declare const escapeStringRegexp: (string: string) => string;
17
-
18
- export = escapeStringRegexp;
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- const matchOperatorsRegex = /[|\\{}()[\]^$+*?.-]/g;
4
-
5
- module.exports = string => {
6
- if (typeof string !== 'string') {
7
- throw new TypeError('Expected a string');
8
- }
9
-
10
- return string.replace(matchOperatorsRegex, '\\$&');
11
- };