decocms 2.300.4 → 2.300.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 (202) hide show
  1. package/dist/client/assets/{AlertCircle-DBqGSPcP.js → AlertCircle-DkMu8gq-.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-BXaqij1B.js → ArrowNarrowLeft-CubWmonS.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-Dy3pY1KB.js → ArrowUpRight-9NVoXrfx.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-CdvisKeL.js → CheckCircle-Bel0s5y_.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-Bgm8xpiB.js → ChevronDown-Bkgm1HYo.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-BNDzbrXM.js → ChevronRight-DfwJRari.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-Dcy3nbXG.js → ChevronUp-B2fEvmSa.js} +1 -1
  8. package/dist/client/assets/{Container-DuIexZxb.js → Container--DgM5X-R.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-DXx0Ujg3.js → DotsVertical-C8shhzyc.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-DYjZZIDx.js → LinkExternal01-CcwfRKez.js} +1 -1
  11. package/dist/client/assets/{Lock01-BOe1gff0.js → Lock01-Bp9Pue_s.js} +1 -1
  12. package/dist/client/assets/{Palette-DhQuB2ML.js → Palette-CrkwzhEn.js} +1 -1
  13. package/dist/client/assets/{Play-BZcGmVwL.js → Play-DnDrS4FU.js} +1 -1
  14. package/dist/client/assets/{Plus-4Uez8HVE.js → Plus-kol8QQC6.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-BhAeHS-g.js → RefreshCcw01-BuPMNg1o.js} +1 -1
  16. package/dist/client/assets/{SearchMd-CUzM0zrX.js → SearchMd-CwDQTv7t.js} +1 -1
  17. package/dist/client/assets/{Settings02-Cnur6vcd.js → Settings02-CHcEkK8P.js} +1 -1
  18. package/dist/client/assets/{Shield01-BWRE1Xs3.js → Shield01-odg-3hat.js} +1 -1
  19. package/dist/client/assets/{Star01-BybMVymG.js → Star01-BpQlh6lv.js} +1 -1
  20. package/dist/client/assets/{Sun-C-v59Gap.js → Sun-D_lLP5L9.js} +1 -1
  21. package/dist/client/assets/{Tool01-mZQYeKOx.js → Tool01-CEe0UAte.js} +1 -1
  22. package/dist/client/assets/{Trash01-CNoOS3JN.js → Trash01-CUymhPzm.js} +1 -1
  23. package/dist/client/assets/{User01-DbuCBEQw.js → User01-DIw7EvUc.js} +1 -1
  24. package/dist/client/assets/{Users03-V3ylDCzz.js → Users03-R3lmvJ78.js} +1 -1
  25. package/dist/client/assets/{X-CcLhRHZD.js → X-DcM1qdBK.js} +1 -1
  26. package/dist/client/assets/{XCircle-ChctSyHl.js → XCircle-CeBHJaqL.js} +1 -1
  27. package/dist/client/assets/{XClose-DpUcIhAm.js → XClose-BHjvdgY4.js} +1 -1
  28. package/dist/client/assets/{Zap-B1-dMO3y.js → Zap-CyWzSozB.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-DfvB-5sB.js → ZapSquare-BtvMrp4e.js} +1 -1
  30. package/dist/client/assets/{accordion-DfaTzzgo.js → accordion-CDw4R_G8.js} +1 -1
  31. package/dist/client/assets/{agent-icon-BoQW_2EY.js → agent-icon-DLxm9qbl.js} +1 -1
  32. package/dist/client/assets/{agents-list-DR0jRYSF.js → agents-list-CjvTcm5i.js} +1 -1
  33. package/dist/client/assets/ai-providers-DAKQ-bP1.js +1 -0
  34. package/dist/client/assets/{alert-dialog-DXJjXwxi.js → alert-dialog-B4hsEfJe.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-DHcrcBIP.js → auth-catchall-DslBGItj.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-DI5R0l8o.js → automation-list-row-CgYM96JG.js} +1 -1
  37. package/dist/client/assets/{automations-no2zbvix.js → automations-DpmVxKM2.js} +1 -1
  38. package/dist/client/assets/{avatar-Do-s9ITZ.js → avatar-CTvLM9yq.js} +1 -1
  39. package/dist/client/assets/{badge-YFtohznh.js → badge-B1zEfhH7.js} +1 -1
  40. package/dist/client/assets/{brand-context-rvHcmR_G.js → brand-context-D0BsHRBR.js} +1 -1
  41. package/dist/client/assets/{card-Dk0Zo6QN.js → card-DHL-J9u4.js} +1 -1
  42. package/dist/client/assets/{chat-context-C0Zo32t0.js → chat-context-B5UR9HLd.js} +1 -1
  43. package/dist/client/assets/{checkbox-CiBhzyNY.js → checkbox-BOftTDdw.js} +1 -1
  44. package/dist/client/assets/{collection-detail-y0WNKlJX.js → collection-detail-DgXbTdY8.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-CjaJe_GY.js → collection-display-button-CcEkczO7.js} +1 -1
  46. package/dist/client/assets/{collection-search-ryHtnd8M.js → collection-search-CME3JpPr.js} +1 -1
  47. package/dist/client/assets/{collection-search-CAuA76RP.js → collection-search-T1fjuYzz.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-Dcdw6aoC.js → collection-table-wrapper-BaPy1k5k.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-C3LT_tc_.js → collection-tabs-CSqJajy_.js} +1 -1
  50. package/dist/client/assets/{collections-DDb7LpQB.js → collections-Bji9q_km.js} +1 -1
  51. package/dist/client/assets/{command-CTfgW0Iz.js → command-DtyQdyVD.js} +1 -1
  52. package/dist/client/assets/{connection-card-D5H4X3Cp.js → connection-card-BTMtyEJ8.js} +1 -1
  53. package/dist/client/assets/{connection-detail-Bd-yhWrp.js → connection-detail-BefqrOx5.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-BwTkhXCX.js → connection-form-helpers-CCMusIOu.js} +1 -1
  55. package/dist/client/assets/{connections-ohFEgzZ5.js → connections-DbDKUx4y.js} +1 -1
  56. package/dist/client/assets/{constants-CQXiy2CE.js → constants-BRWzgNkQ.js} +1 -1
  57. package/dist/client/assets/{constants-BfRRhGan.js → constants-Bl2zdZKg.js} +1 -1
  58. package/dist/client/assets/{dialog-DzUewo1N.js → dialog-TJfN_BuF.js} +1 -1
  59. package/dist/client/assets/{domain-settings-kuwV32Fv.js → domain-settings-BFdwOOGl.js} +1 -1
  60. package/dist/client/assets/{drawer-DW2mtNYY.js → drawer-C2i2-ja1.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-DCTIJaux.js → dropdown-menu-D9XdG3Xq.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-Dquo1zHH.js → dynamic-plugin-layout-BfJpkcg4.js} +1 -1
  63. package/dist/client/assets/{empty-state-BVem588l.js → empty-state-B1-aUhdl.js} +1 -1
  64. package/dist/client/assets/{empty-state-CItDDPJC.js → empty-state-CLPJFsFO.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-B9ZIPvMk.js → extract-connection-data-Cg_nAhlq.js} +1 -1
  66. package/dist/client/assets/{features-BBiOusUu.js → features-Dt4JD8s-.js} +1 -1
  67. package/dist/client/assets/{form-DBCGiMXe.js → form-sbdLhoLD.js} +1 -1
  68. package/dist/client/assets/{general-Dgp_dGYw.js → general-D6BEXRIY.js} +1 -1
  69. package/dist/client/assets/{index-DC6Xxjvd.js → index-BJybli6s.js} +1 -1
  70. package/dist/client/assets/{index-B_Lcr50o.js → index-BT8iP1gH.js} +1 -1
  71. package/dist/client/assets/{index-OcEo2bsu.js → index-BXqFEz8g.js} +1 -1
  72. package/dist/client/assets/{index-D-bSqE5m.js → index-BXzlMZdf.js} +1 -1
  73. package/dist/client/assets/{index-CQIQcTOE.js → index-BcH41hau.js} +3 -3
  74. package/dist/client/assets/{index-DxqG7SO-.js → index-CA7joeGf.js} +2 -2
  75. package/dist/client/assets/{index-ClSDqtDK.js → index-CAwsKc2v.js} +1 -1
  76. package/dist/client/assets/index-CQtoC2zV.js +1 -0
  77. package/dist/client/assets/{index-BAJeqA_t.js → index-D3orj13j.js} +1 -1
  78. package/dist/client/assets/{index-WmCG_KTe.js → index-DiyP0mWl.js} +1 -1
  79. package/dist/client/assets/{index-CQt4AtFf.js → index-Dryqe2qH.js} +1 -1
  80. package/dist/client/assets/{index-Dr6IDlb4.js → index-Dut1OOHD.js} +1 -1
  81. package/dist/client/assets/{index-DaJv4rHK.js → index-e_WCxTHQ.js} +1 -1
  82. package/dist/client/assets/{index-DrSdTiwb.js → index-oAITNDIl.js} +1 -1
  83. package/dist/client/assets/{index-CFLlOXkv.js → index-rkDSwq1t.js} +1 -1
  84. package/dist/client/assets/{index-CuVGQGX3.js → index-udLCY52f.js} +1 -1
  85. package/dist/client/assets/{infiniteQueryObserver-Cp4HH66i.js → infiniteQueryObserver-BPb1dFhQ.js} +1 -1
  86. package/dist/client/assets/{input-AQP4T9xe.js → input-_x-qoZqG.js} +1 -1
  87. package/dist/client/assets/{integration-icon-CdA3xzg3.js → integration-icon-CBWiTcFM.js} +1 -1
  88. package/dist/client/assets/{label-C8LpQh8Q.js → label-FeiT4-LA.js} +1 -1
  89. package/dist/client/assets/{layout-BHftN2cN.js → layout-j3UyPUZl.js} +1 -1
  90. package/dist/client/assets/{lean-canvas-recruit-modal-CW_p90EQ.js → lean-canvas-recruit-modal-AdHH96Pz.js} +1 -1
  91. package/dist/client/assets/{login-cQRRHPKJ.js → login-CQ1sw4Og.js} +1 -1
  92. package/dist/client/assets/{members-oD32fKCk.js → members-DgCBAzk4.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-0eY4s_n8.js → monaco-editor-RpC6COeN.js} +1 -1
  94. package/dist/client/assets/{monitoring-stats-row-yU9BWynr.js → monitoring-stats-row-BpUJoO_T.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-qNrnCHn7.js → oauth-callback-CrzoeptP.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-ai-provider-JWUJcuot.js → oauth-callback-ai-provider-CCIE7j_l.js} +1 -1
  97. package/dist/client/assets/{onboarding-Csd238y5.js → onboarding-BAQp9DvG.js} +1 -1
  98. package/dist/client/assets/{org-layout-COUnT52o.js → org-layout-44rYb1sc.js} +1 -1
  99. package/dist/client/assets/{org-plugin-layout-HVrYmP0h.js → org-plugin-layout-DSXF2qdf.js} +1 -1
  100. package/dist/client/assets/{pair-H3vGRUJ8.js → pair-DEl8UPeD.js} +1 -1
  101. package/dist/client/assets/{plugin-empty-state-D0IVOQOh.js → plugin-empty-state-22doZ0Xz.js} +1 -1
  102. package/dist/client/assets/{plugin-header-BHkekk5v.js → plugin-header-ByTelm9S.js} +1 -1
  103. package/dist/client/assets/{plugin-layout-1tZ95Fop.js → plugin-layout-BO64c4_C.js} +1 -1
  104. package/dist/client/assets/{popover-S0LP8OED.js → popover-BhlghMMz.js} +1 -1
  105. package/dist/client/assets/{profile-BeEbm_se.js → profile-CSGEFgSz.js} +1 -1
  106. package/dist/client/assets/{project-app-view-DzAnv0Fk.js → project-app-view-B_RELaVP.js} +1 -1
  107. package/dist/client/assets/registry-CYqJhZV_.js +2 -0
  108. package/dist/client/assets/{registry-layout-DXYTYBKQ.js → registry-layout-JuLTsFQQ.js} +1 -1
  109. package/dist/client/assets/{required-auth-layout-BGBHukmi.js → required-auth-layout-oACSrwiy.js} +1 -1
  110. package/dist/client/assets/{reset-password-C-9QuQII.js → reset-password-CW7woRPX.js} +1 -1
  111. package/dist/client/assets/{roles-Dte8-9_k.js → roles-5CKHHGAZ.js} +1 -1
  112. package/dist/client/assets/{scroll-area-BtbNdEg9.js → scroll-area-BV26X1QC.js} +1 -1
  113. package/dist/client/assets/{search-input-K74_hIzk.js → search-input-ms-0SUW_.js} +1 -1
  114. package/dist/client/assets/{select-CKY9FB0z.js → select-CswVooY0.js} +1 -1
  115. package/dist/client/assets/{select-model-CuDUx7az.js → select-model-CStSTDOz.js} +1 -1
  116. package/dist/client/assets/{settings-layout-D2D4BwFh.js → settings-layout-B420oRcP.js} +1 -1
  117. package/dist/client/assets/{settings-section-DVNeioQ5.js → settings-section-D7ZcS52Q.js} +1 -1
  118. package/dist/client/assets/{shell-layout-CvVEyxri.js → shell-layout-COliHXDZ.js} +1 -1
  119. package/dist/client/assets/{skeleton-C6ls5pwO.js → skeleton-DI0MCO1l.js} +1 -1
  120. package/dist/client/assets/{sso-Cf_l8jfK.js → sso-CrvD6OU3.js} +1 -1
  121. package/dist/client/assets/{store-ycJgiobO.js → store-DfNnoMeC.js} +1 -1
  122. package/dist/client/assets/store-registry-BYofPeIK.js +2 -0
  123. package/dist/client/assets/{switch-W3XCBtER.js → switch-BrC-TZom.js} +1 -1
  124. package/dist/client/assets/{table-AOuQ6q7A.js → table-G8ogXBrQ.js} +1 -1
  125. package/dist/client/assets/{tabs-UNZgkDVa.js → tabs-Bf_8xBry.js} +1 -1
  126. package/dist/client/assets/{task-status-DEy7r9PX.js → task-status-DWZ1hcva.js} +1 -1
  127. package/dist/client/assets/{textarea-DmqjpSXj.js → textarea-C2oNfWH0.js} +1 -1
  128. package/dist/client/assets/{toggle-group-BST-Moxg.js → toggle-group-TNheR1D8.js} +1 -1
  129. package/dist/client/assets/{tools-list-DRBrcsE2.js → tools-list-B5eTdBpN.js} +1 -1
  130. package/dist/client/assets/{tooltip-CgLjXWRO.js → tooltip-CXr14ebZ.js} +1 -1
  131. package/dist/client/assets/{types-Di7lU1Th.js → types-EFCIzOpO.js} +1 -1
  132. package/dist/client/assets/{use-ai-providers-DWoG_MfI.js → use-ai-providers-BsokjkVR.js} +1 -1
  133. package/dist/client/assets/{use-collections-Bd7RNZWG.js → use-collections-Dn-RqPYg.js} +1 -1
  134. package/dist/client/assets/{use-connection-B1IAOygg.js → use-connection-5ik_QQbi.js} +1 -1
  135. package/dist/client/assets/{use-copy-Qz-6rwiI.js → use-copy-BfAEU9NO.js} +1 -1
  136. package/dist/client/assets/{use-create-virtual-mcp-CsXnKbT4.js → use-create-virtual-mcp-fVwDTjUO.js} +1 -1
  137. package/dist/client/assets/{use-decopilot-events-C9UMGLNG.js → use-decopilot-events-C5dCU4fI.js} +1 -1
  138. package/dist/client/assets/{use-delete-connection-DIB-wCzR.js → use-delete-connection-r8ffcG8U.js} +1 -1
  139. package/dist/client/assets/{use-infinite-scroll-DDdJV0pS.js → use-infinite-scroll-tkYaCIKm.js} +1 -1
  140. package/dist/client/assets/{use-list-state-DUZFsckk.js → use-list-state-Di2rvhMn.js} +1 -1
  141. package/dist/client/assets/{use-mcp-tools-Hk3B3FPL.js → use-mcp-tools-DyFsytRR.js} +1 -1
  142. package/dist/client/assets/{use-members-Kof7B7_B.js → use-members-DIX6nSMY.js} +1 -1
  143. package/dist/client/assets/{use-navigate-to-agent-BAjrVRkm.js → use-navigate-to-agent-Z7fkkD5K.js} +1 -1
  144. package/dist/client/assets/{use-org-auth-client-PM4Bq5B4.js → use-org-auth-client-DZX0Z5cG.js} +1 -1
  145. package/dist/client/assets/{use-org-sso-CsdEJaGH.js → use-org-sso-DpWan0ZR.js} +1 -1
  146. package/dist/client/assets/{use-organization-roles-CK4jCoPY.js → use-organization-roles-Dw_EZ-oj.js} +1 -1
  147. package/dist/client/assets/{use-organization-settings-BjQPxEXx.js → use-organization-settings-0hZMyBeX.js} +1 -1
  148. package/dist/client/assets/{use-registry-connections-Bc9Jz_l9.js → use-registry-connections-Bn-4-RDt.js} +1 -1
  149. package/dist/client/assets/{use-status-sounds-B-dcjykj.js → use-status-sounds-CwuuISMS.js} +1 -1
  150. package/dist/client/assets/{use-tasks-DNXvD3d-.js → use-tasks-oBeHrmLh.js} +1 -1
  151. package/dist/client/assets/{use-view-mode-B-PzbH7u.js → use-view-mode-BjlcvVOS.js} +1 -1
  152. package/dist/client/assets/{use-virtual-mcp-BKDZ5Y53.js → use-virtual-mcp-S7caS2Os.js} +1 -1
  153. package/dist/client/assets/useInfiniteQuery-CIF5ZhDW.js +1 -0
  154. package/dist/client/assets/useSuspenseInfiniteQuery-BIQTAzoK.js +1 -0
  155. package/dist/client/assets/{user-Dx0-Sx0Q.js → user-Bf4WlHoU.js} +1 -1
  156. package/dist/client/assets/{view-mode-toggle-Cdvf7aEz.js → view-mode-toggle-CgBfTDfx.js} +1 -1
  157. package/dist/client/assets/{workflow-By0QNvDh.js → workflow-DGmBrUmA.js} +1 -1
  158. package/dist/client/assets/workflow-detail-Dwa4aK51.js +1 -0
  159. package/dist/client/index.html +1 -1
  160. package/dist/server/cli.js +2 -2
  161. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  162. package/dist/server/node_modules/postgres-array/index.js +97 -0
  163. package/dist/server/node_modules/postgres-array/license +21 -0
  164. package/dist/server/node_modules/postgres-array/package.json +35 -0
  165. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  166. package/dist/server/node_modules/postgres-bytea/index.js +33 -0
  167. package/dist/server/node_modules/postgres-bytea/license +21 -0
  168. package/dist/server/node_modules/postgres-bytea/package.json +34 -0
  169. package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
  170. package/dist/server/node_modules/split2/LICENSE +13 -0
  171. package/dist/server/node_modules/split2/README.md +85 -0
  172. package/dist/server/node_modules/split2/bench.js +27 -0
  173. package/dist/server/node_modules/split2/index.js +141 -0
  174. package/dist/server/node_modules/split2/package.json +39 -0
  175. package/dist/server/node_modules/split2/test.js +409 -0
  176. package/dist/server/node_modules/xtend/.jshintrc +30 -0
  177. package/dist/server/node_modules/xtend/LICENSE +20 -0
  178. package/dist/server/node_modules/xtend/README.md +32 -0
  179. package/dist/server/node_modules/xtend/immutable.js +19 -0
  180. package/dist/server/node_modules/xtend/mutable.js +17 -0
  181. package/dist/server/node_modules/xtend/package.json +55 -0
  182. package/dist/server/node_modules/xtend/test.js +103 -0
  183. package/dist/server/server.js +108 -108
  184. package/package.json +1 -1
  185. package/dist/client/assets/ai-providers-tmdoxB8w.js +0 -1
  186. package/dist/client/assets/index-CckfzoQo.js +0 -1
  187. package/dist/client/assets/registry-B3IZW-Zn.js +0 -2
  188. package/dist/client/assets/store-registry-Cvg5AsGu.js +0 -2
  189. package/dist/client/assets/useInfiniteQuery-CbEWL_0E.js +0 -1
  190. package/dist/client/assets/useSuspenseInfiniteQuery-_KsFhI9-.js +0 -1
  191. package/dist/client/assets/workflow-detail-Bv06QqfF.js +0 -1
  192. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  193. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  194. package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
  195. package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
  196. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  197. package/dist/server/node_modules/slice-ansi/index.d.ts +0 -19
  198. package/dist/server/node_modules/slice-ansi/index.js +0 -260
  199. package/dist/server/node_modules/slice-ansi/license +0 -10
  200. package/dist/server/node_modules/slice-ansi/package.json +0 -59
  201. package/dist/server/node_modules/slice-ansi/readme.md +0 -54
  202. package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "2.300.4",
3
+ "version": "2.300.5",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{e as t,j as i}from"./index-DxqG7SO-.js";import{O as m}from"./select-model-CuDUx7az.js";import"./checkbox-CiBhzyNY.js";import"./ChevronDown-Bgm8xpiB.js";import"./input-AQP4T9xe.js";import"./dialog-DzUewo1N.js";import"./X-CcLhRHZD.js";import"./drawer-DW2mtNYY.js";import"./tooltip-CgLjXWRO.js";import"./select-CKY9FB0z.js";import"./ChevronUp-Dcy3nbXG.js";import"./skeleton-C6ls5pwO.js";import"./Tool01-mZQYeKOx.js";import"./RefreshCcw01-BhAeHS-g.js";import"./SearchMd-CUzM0zrX.js";import"./Settings02-Cnur6vcd.js";import"./use-ai-providers-DWoG_MfI.js";import"./constants-CQXiy2CE.js";import"./chat-context-C0Zo32t0.js";import"./use-virtual-mcp-BKDZ5Y53.js";import"./use-collections-Bd7RNZWG.js";import"./use-decopilot-events-C9UMGLNG.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-DNXvD3d-.js";import"./use-organization-settings-BjQPxEXx.js";import"./ai-providers-logos-DD3qZ33J.js";import"./Zap-B1-dMO3y.js";import"./AlertCircle-DBqGSPcP.js";import"./CheckCircle-CdvisKeL.js";import"./Trash01-CNoOS3JN.js";import"./index-CuVGQGX3.js";import"./settings-section-DVNeioQ5.js";import"./card-Dk0Zo6QN.js";import"./ArrowUpRight-Dy3pY1KB.js";import"./switch-W3XCBtER.js";import"./toggle-group-BST-Moxg.js";import"./avatar-Do-s9ITZ.js";import"./User01-DbuCBEQw.js";import"./alert-dialog-DXJjXwxi.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-DxqG7SO-.js";import{S as j,a as b,b as S}from"./index-CuVGQGX3.js";import{u as _}from"./tooltip-CgLjXWRO.js";import{u as k,T as y,a as T,b as i,S as g}from"./index-BAJeqA_t.js";import{C as v}from"./chat-context-C0Zo32t0.js";import"./X-CcLhRHZD.js";import"./agent-icon-BoQW_2EY.js";import"./AlertCircle-DBqGSPcP.js";import"./Tool01-mZQYeKOx.js";import"./XClose-DpUcIhAm.js";import"./RefreshCcw01-BhAeHS-g.js";import"./ArrowNarrowLeft-BXaqij1B.js";import"./XCircle-ChctSyHl.js";import"./ArrowUpRight-Dy3pY1KB.js";import"./ZapSquare-DfvB-5sB.js";import"./Users03-V3ylDCzz.js";import"./CheckCircle-CdvisKeL.js";import"./ChevronDown-Bgm8xpiB.js";import"./ChevronRight-BNDzbrXM.js";import"./ChevronUp-Dcy3nbXG.js";import"./DotsVertical-DXx0Ujg3.js";import"./Container-DuIexZxb.js";import"./Star01-BybMVymG.js";import"./Palette-DhQuB2ML.js";import"./SearchMd-CUzM0zrX.js";import"./LinkExternal01-DYjZZIDx.js";import"./Lock01-BOe1gff0.js";import"./Sun-C-v59Gap.js";import"./Play-BZcGmVwL.js";import"./Plus-4Uez8HVE.js";import"./Settings02-Cnur6vcd.js";import"./Shield01-BWRE1Xs3.js";import"./Trash01-CNoOS3JN.js";import"./User01-DbuCBEQw.js";import"./Zap-B1-dMO3y.js";import"./shell-layout-CvVEyxri.js";import"./dialog-DzUewo1N.js";import"./required-auth-layout-BGBHukmi.js";import"./use-tasks-DNXvD3d-.js";import"./use-collections-Bd7RNZWG.js";import"./constants-CQXiy2CE.js";import"./use-organization-settings-BjQPxEXx.js";import"./use-org-sso-CsdEJaGH.js";import"./pair-H3vGRUJ8.js";import"./index-CFLlOXkv.js";import"./use-copy-Qz-6rwiI.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-Di7lU1Th.js";import"./integration-icon-CdA3xzg3.js";import"./use-virtual-mcp-BKDZ5Y53.js";import"./skeleton-C6ls5pwO.js";import"./popover-S0LP8OED.js";import"./drawer-DW2mtNYY.js";import"./avatar-Do-s9ITZ.js";import"./alert-dialog-DXJjXwxi.js";import"./form-DBCGiMXe.js";import"./label-C8LpQh8Q.js";import"./input-AQP4T9xe.js";import"./index-CQt4AtFf.js";import"./use-mcp-tools-Hk3B3FPL.js";import"./use-ai-providers-DWoG_MfI.js";import"./index-B_Lcr50o.js";import"./switch-W3XCBtER.js";import"./use-connection-B1IAOygg.js";import"./lean-canvas-recruit-modal-CW_p90EQ.js";import"./use-navigate-to-agent-BAjrVRkm.js";import"./collection-search-CAuA76RP.js";import"./checkbox-CiBhzyNY.js";import"./extract-connection-data-B9ZIPvMk.js";import"./constants-BfRRhGan.js";import"./collections-DDb7LpQB.js";import"./tabs-UNZgkDVa.js";import"./dropdown-menu-DCTIJaux.js";import"./select-CKY9FB0z.js";import"./toggle-group-BST-Moxg.js";import"./select-model-CuDUx7az.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DVNeioQ5.js";import"./card-Dk0Zo6QN.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./index-D-bSqE5m.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-D5H4X3Cp.js";import"./use-registry-connections-Bc9Jz_l9.js";import"./useInfiniteQuery-CbEWL_0E.js";import"./infiniteQueryObserver-Cp4HH66i.js";import"./collection-tabs-C3LT_tc_.js";import"./badge-YFtohznh.js";import"./textarea-DmqjpSXj.js";import"./connection-form-helpers-BwTkhXCX.js";import"./use-infinite-scroll-DDdJV0pS.js";import"./useSuspenseInfiniteQuery-_KsFhI9-.js";import"./collection-search-ryHtnd8M.js";import"./use-create-virtual-mcp-CsXnKbT4.js";import"./empty-state-CItDDPJC.js";import"./use-decopilot-events-C9UMGLNG.js";import"./create-sse-subscription-CxkOgzKf.js";import"./task-status-DEy7r9PX.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-DXYTYBKQ.js","assets/index-DxqG7SO-.js","assets/index-B4J1yAvl.css","assets/ArrowNarrowLeft-BXaqij1B.js","assets/CheckCircle-CdvisKeL.js","assets/Container-DuIexZxb.js","assets/Settings02-Cnur6vcd.js","assets/XCircle-ChctSyHl.js","assets/constants-CQXiy2CE.js","assets/useInfiniteQuery-CbEWL_0E.js","assets/infiniteQueryObserver-Cp4HH66i.js","assets/badge-YFtohznh.js","assets/input-AQP4T9xe.js","assets/dropdown-menu-DCTIJaux.js","assets/ChevronDown-Bgm8xpiB.js","assets/ChevronRight-BNDzbrXM.js","assets/DotsVertical-DXx0Ujg3.js","assets/table-AOuQ6q7A.js","assets/toggle-group-BST-Moxg.js","assets/use-view-mode-B-PzbH7u.js","assets/tooltip-CgLjXWRO.js","assets/SearchMd-CUzM0zrX.js","assets/dialog-DzUewo1N.js","assets/X-CcLhRHZD.js","assets/AlertCircle-DBqGSPcP.js","assets/alert-dialog-DXJjXwxi.js","assets/card-Dk0Zo6QN.js","assets/Trash01-CNoOS3JN.js","assets/label-C8LpQh8Q.js","assets/select-CKY9FB0z.js","assets/ChevronUp-Dcy3nbXG.js","assets/switch-W3XCBtER.js","assets/textarea-DmqjpSXj.js","assets/RefreshCcw01-BhAeHS-g.js","assets/checkbox-CiBhzyNY.js","assets/LinkExternal01-DYjZZIDx.js","assets/use-copy-Qz-6rwiI.js","assets/Plus-4Uez8HVE.js","assets/Play-BZcGmVwL.js"])))=>i.map(i=>d[i]);
2
- import{e as a,j as t,r,l as i,_ as o}from"./index-DxqG7SO-.js";const n=r.lazy(()=>o(()=>import("./registry-layout-DXYTYBKQ.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-DXYTYBKQ.js","assets/index-DxqG7SO-.js","assets/index-B4J1yAvl.css","assets/ArrowNarrowLeft-BXaqij1B.js","assets/CheckCircle-CdvisKeL.js","assets/Container-DuIexZxb.js","assets/Settings02-Cnur6vcd.js","assets/XCircle-ChctSyHl.js","assets/constants-CQXiy2CE.js","assets/useInfiniteQuery-CbEWL_0E.js","assets/infiniteQueryObserver-Cp4HH66i.js","assets/badge-YFtohznh.js","assets/input-AQP4T9xe.js","assets/dropdown-menu-DCTIJaux.js","assets/ChevronDown-Bgm8xpiB.js","assets/ChevronRight-BNDzbrXM.js","assets/DotsVertical-DXx0Ujg3.js","assets/table-AOuQ6q7A.js","assets/toggle-group-BST-Moxg.js","assets/use-view-mode-B-PzbH7u.js","assets/tooltip-CgLjXWRO.js","assets/SearchMd-CUzM0zrX.js","assets/dialog-DzUewo1N.js","assets/X-CcLhRHZD.js","assets/AlertCircle-DBqGSPcP.js","assets/alert-dialog-DXJjXwxi.js","assets/card-Dk0Zo6QN.js","assets/Trash01-CNoOS3JN.js","assets/label-C8LpQh8Q.js","assets/select-CKY9FB0z.js","assets/ChevronUp-Dcy3nbXG.js","assets/switch-W3XCBtER.js","assets/textarea-DmqjpSXj.js","assets/RefreshCcw01-BhAeHS-g.js","assets/checkbox-CiBhzyNY.js","assets/LinkExternal01-DYjZZIDx.js","assets/use-copy-Qz-6rwiI.js","assets/Plus-4Uez8HVE.js","assets/Play-BZcGmVwL.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-DxqG7SO-.js";const _=l.lazy(()=>u(()=>import("./registry-layout-DXYTYBKQ.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-Cp4HH66i.js";import{c2 as i}from"./index-DxqG7SO-.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-Cp4HH66i.js";import{c2 as u,c3 as n}from"./index-DxqG7SO-.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-DxqG7SO-.js";import{a as f}from"./index-DrSdTiwb.js";import"./index-WmCG_KTe.js";import"./constants-CQXiy2CE.js";import"./collections-DDb7LpQB.js";import"./index-DC6Xxjvd.js";import"./use-virtual-mcp-BKDZ5Y53.js";import"./use-collections-Bd7RNZWG.js";import"./monaco-editor-0eY4s_n8.js";import"./index-CFLlOXkv.js";import"./accordion-DfaTzzgo.js";import"./agent-icon-BoQW_2EY.js";import"./AlertCircle-DBqGSPcP.js";import"./Tool01-mZQYeKOx.js";import"./XClose-DpUcIhAm.js";import"./RefreshCcw01-BhAeHS-g.js";import"./ArrowNarrowLeft-BXaqij1B.js";import"./XCircle-ChctSyHl.js";import"./ArrowUpRight-Dy3pY1KB.js";import"./ZapSquare-DfvB-5sB.js";import"./Users03-V3ylDCzz.js";import"./CheckCircle-CdvisKeL.js";import"./ChevronDown-Bgm8xpiB.js";import"./ChevronRight-BNDzbrXM.js";import"./ChevronUp-Dcy3nbXG.js";import"./DotsVertical-DXx0Ujg3.js";import"./Container-DuIexZxb.js";import"./Star01-BybMVymG.js";import"./Palette-DhQuB2ML.js";import"./SearchMd-CUzM0zrX.js";import"./index-CuVGQGX3.js";import"./tooltip-CgLjXWRO.js";import"./X-CcLhRHZD.js";import"./LinkExternal01-DYjZZIDx.js";import"./Lock01-BOe1gff0.js";import"./Sun-C-v59Gap.js";import"./Play-BZcGmVwL.js";import"./Plus-4Uez8HVE.js";import"./Settings02-Cnur6vcd.js";import"./Shield01-BWRE1Xs3.js";import"./Trash01-CNoOS3JN.js";import"./User01-DbuCBEQw.js";import"./Zap-B1-dMO3y.js";import"./badge-YFtohznh.js";import"./select-CKY9FB0z.js";import"./view-mode-toggle-Cdvf7aEz.js";import"./layout-BHftN2cN.js";import"./use-connection-B1IAOygg.js";import"./use-mcp-tools-Hk3B3FPL.js";import"./dialog-DzUewo1N.js";import"./index-D-bSqE5m.js";import"./dropdown-menu-DCTIJaux.js";import"./integration-icon-CdA3xzg3.js";import"./scroll-area-BtbNdEg9.js";import"./index-CQt4AtFf.js";import"./empty-state-BVem588l.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-AQP4T9xe.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,17 +0,0 @@
1
- /**
2
- Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms).
3
-
4
- @param codePoint - The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
5
-
6
- @example
7
- ```
8
- import isFullwidthCodePoint from 'is-fullwidth-code-point';
9
-
10
- isFullwidthCodePoint('谢'.codePointAt(0));
11
- //=> true
12
-
13
- isFullwidthCodePoint('a'.codePointAt(0));
14
- //=> false
15
- ```
16
- */
17
- export default function isFullwidthCodePoint(codePoint: number): boolean;
@@ -1,12 +0,0 @@
1
- import {
2
- _isFullWidth as isFullWidth,
3
- _isWide as isWide,
4
- } from 'get-east-asian-width';
5
-
6
- export default function isFullwidthCodePoint(codePoint) {
7
- if (!Number.isInteger(codePoint)) {
8
- return false;
9
- }
10
-
11
- return isFullWidth(codePoint) || isWide(codePoint);
12
- }
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,53 +0,0 @@
1
- {
2
- "name": "is-fullwidth-code-point",
3
- "version": "5.1.0",
4
- "description": "Check if the character represented by a given Unicode code point is fullwidth",
5
- "license": "MIT",
6
- "repository": "sindresorhus/is-fullwidth-code-point",
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 && tsd"
24
- },
25
- "files": [
26
- "index.js",
27
- "index.d.ts"
28
- ],
29
- "keywords": [
30
- "fullwidth",
31
- "full-width",
32
- "full",
33
- "width",
34
- "unicode",
35
- "character",
36
- "string",
37
- "codepoint",
38
- "code",
39
- "point",
40
- "is",
41
- "detect",
42
- "check",
43
- "east-asian-width"
44
- ],
45
- "devDependencies": {
46
- "ava": "^5.3.1",
47
- "tsd": "^0.29.0",
48
- "xo": "^0.56.0"
49
- },
50
- "dependencies": {
51
- "get-east-asian-width": "^1.3.1"
52
- }
53
- }
@@ -1,31 +0,0 @@
1
- # is-fullwidth-code-point
2
-
3
- > Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
4
-
5
- ## Install
6
-
7
- ```sh
8
- npm install is-fullwidth-code-point
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- import isFullwidthCodePoint from 'is-fullwidth-code-point';
15
-
16
- isFullwidthCodePoint('谢'.codePointAt(0));
17
- //=> true
18
-
19
- isFullwidthCodePoint('a'.codePointAt(0));
20
- //=> false
21
- ```
22
-
23
- ## API
24
-
25
- ### isFullwidthCodePoint(codePoint)
26
-
27
- #### codePoint
28
-
29
- Type: `number`
30
-
31
- The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
@@ -1,19 +0,0 @@
1
- /**
2
- Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
3
-
4
- @param string - A string with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
5
- @param startSlice - Zero-based visible-column index at which to start the slice. Grapheme clusters are kept intact.
6
- @param endSlice - Zero-based visible-column index at which to end the slice.
7
-
8
- @example
9
- ```
10
- import chalk from 'chalk';
11
- import sliceAnsi from 'slice-ansi';
12
-
13
- const string = 'The quick brown ' + chalk.red('fox jumped over ') +
14
- 'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
15
-
16
- console.log(sliceAnsi(string, 20, 30));
17
- ```
18
- */
19
- export default function sliceAnsi(string: string, startSlice: number, endSlice?: number): string;
@@ -1,260 +0,0 @@
1
- import tokenizeAnsi from './tokenize-ansi.js';
2
-
3
- function applySgrFragments(activeStyles, fragments) {
4
- for (const fragment of fragments) {
5
- switch (fragment.type) {
6
- case 'reset': {
7
- activeStyles.clear();
8
- break;
9
- }
10
-
11
- case 'end': {
12
- activeStyles.delete(fragment.endCode);
13
- break;
14
- }
15
-
16
- case 'start': {
17
- activeStyles.delete(fragment.endCode);
18
- activeStyles.set(fragment.endCode, fragment.code);
19
- break;
20
- }
21
-
22
- default: {
23
- break;
24
- }
25
- }
26
- }
27
-
28
- return activeStyles;
29
- }
30
-
31
- function undoAnsiCodes(activeStyles) {
32
- return [...activeStyles.keys()].reverse().join('');
33
- }
34
-
35
- function closeHyperlink(hyperlinkToken) {
36
- return `${hyperlinkToken.closePrefix}${hyperlinkToken.terminator}`;
37
- }
38
-
39
- function shouldIncludeSgrAfterEnd(token, activeStyles) {
40
- let hasStartFragment = false;
41
- let hasClosingEffect = false;
42
-
43
- for (const fragment of token.fragments) {
44
- if (fragment.type === 'start') {
45
- hasStartFragment = true;
46
- continue;
47
- }
48
-
49
- if (fragment.type === 'reset' && activeStyles.size > 0) {
50
- hasClosingEffect = true;
51
- continue;
52
- }
53
-
54
- if (fragment.type === 'end' && activeStyles.has(fragment.endCode)) {
55
- hasClosingEffect = true;
56
- }
57
- }
58
-
59
- return hasClosingEffect && !hasStartFragment;
60
- }
61
-
62
- function applySgrToken({token, isPastEnd, activeStyles, returnValue, include, activeHyperlink, position}) {
63
- if (isPastEnd && !shouldIncludeSgrAfterEnd(token, activeStyles)) {
64
- return {
65
- activeStyles,
66
- activeHyperlink,
67
- position,
68
- returnValue,
69
- include,
70
- };
71
- }
72
-
73
- activeStyles = applySgrFragments(activeStyles, token.fragments);
74
- if (include) {
75
- returnValue += token.code;
76
- }
77
-
78
- return {
79
- activeStyles,
80
- activeHyperlink,
81
- position,
82
- returnValue,
83
- include,
84
- };
85
- }
86
-
87
- function applyHyperlinkToken({token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include}) {
88
- if (
89
- isPastEnd
90
- && (
91
- token.action !== 'close'
92
- || !activeHyperlink
93
- )
94
- ) {
95
- return {
96
- activeStyles,
97
- activeHyperlink,
98
- position,
99
- returnValue,
100
- include,
101
- };
102
- }
103
-
104
- if (token.action === 'open') {
105
- activeHyperlink = token;
106
- } else if (token.action === 'close') {
107
- activeHyperlink = undefined;
108
- }
109
-
110
- if (include) {
111
- returnValue += token.code;
112
- }
113
-
114
- return {
115
- activeStyles,
116
- activeHyperlink,
117
- position,
118
- returnValue,
119
- include,
120
- };
121
- }
122
-
123
- function applyControlToken({token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include}) {
124
- if (!isPastEnd && include) {
125
- returnValue += token.code;
126
- }
127
-
128
- return {
129
- activeStyles,
130
- activeHyperlink,
131
- position,
132
- returnValue,
133
- include,
134
- };
135
- }
136
-
137
- function applyCharacterToken({token, start, activeStyles, activeHyperlink, position, returnValue, include}) {
138
- if (
139
- !include
140
- && position >= start
141
- && !token.isGraphemeContinuation
142
- ) {
143
- include = true;
144
- returnValue = [...activeStyles.values()].join('');
145
- if (activeHyperlink) {
146
- returnValue += activeHyperlink.code;
147
- }
148
- }
149
-
150
- if (include) {
151
- returnValue += token.value;
152
- }
153
-
154
- position += token.visibleWidth;
155
- return {
156
- activeStyles,
157
- activeHyperlink,
158
- position,
159
- returnValue,
160
- include,
161
- };
162
- }
163
-
164
- const tokenHandlers = {
165
- sgr: applySgrToken,
166
- hyperlink: applyHyperlinkToken,
167
- control: applyControlToken,
168
- character: applyCharacterToken,
169
- };
170
-
171
- function applyToken(parameters) {
172
- const tokenHandler = tokenHandlers[parameters.token.type];
173
- if (!tokenHandler) {
174
- const {
175
- activeStyles,
176
- activeHyperlink,
177
- position,
178
- returnValue,
179
- include,
180
- } = parameters;
181
-
182
- return {
183
- activeStyles,
184
- activeHyperlink,
185
- position,
186
- returnValue,
187
- include,
188
- };
189
- }
190
-
191
- return tokenHandler(parameters);
192
- }
193
-
194
- function createHasContinuationAheadMap(tokens) {
195
- const hasContinuationAhead = Array.from({length: tokens.length}, () => false);
196
- let nextCharacterIsContinuation = false;
197
-
198
- for (let tokenIndex = tokens.length - 1; tokenIndex >= 0; tokenIndex--) {
199
- const token = tokens[tokenIndex];
200
- hasContinuationAhead[tokenIndex] = nextCharacterIsContinuation;
201
- if (token.type === 'character') {
202
- nextCharacterIsContinuation = Boolean(token.isGraphemeContinuation);
203
- }
204
- }
205
-
206
- return hasContinuationAhead;
207
- }
208
-
209
- export default function sliceAnsi(string, start, end) {
210
- const tokens = tokenizeAnsi(string, {endCharacter: end});
211
- const hasContinuationAhead = createHasContinuationAheadMap(tokens);
212
- let activeStyles = new Map();
213
- let activeHyperlink;
214
- let position = 0;
215
- let returnValue = '';
216
- let include = false;
217
-
218
- for (const [tokenIndex, token] of tokens.entries()) {
219
- let isPastEnd = end !== undefined && position >= end;
220
- if (
221
- isPastEnd
222
- && token.type !== 'character'
223
- && hasContinuationAhead[tokenIndex]
224
- ) {
225
- isPastEnd = false;
226
- }
227
-
228
- if (
229
- isPastEnd
230
- && token.type === 'character'
231
- && !token.isGraphemeContinuation
232
- ) {
233
- break;
234
- }
235
-
236
- ({activeStyles, activeHyperlink, position, returnValue, include} = applyToken({
237
- token,
238
- isPastEnd,
239
- start,
240
- activeStyles,
241
- activeHyperlink,
242
- position,
243
- returnValue,
244
- include,
245
- }));
246
- }
247
-
248
- if (!include) {
249
- return '';
250
- }
251
-
252
- if (activeHyperlink) {
253
- returnValue += closeHyperlink(activeHyperlink);
254
- }
255
-
256
- // Disable active codes at the end
257
- returnValue += undoAnsiCodes(activeStyles);
258
-
259
- return returnValue;
260
- }
@@ -1,10 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) DC <threedeecee@gmail.com>
4
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
-
8
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9
-
10
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,59 +0,0 @@
1
- {
2
- "name": "slice-ansi",
3
- "version": "8.0.0",
4
- "description": "Slice a string with ANSI escape codes",
5
- "license": "MIT",
6
- "repository": "chalk/slice-ansi",
7
- "funding": "https://github.com/chalk/slice-ansi?sponsor=1",
8
- "type": "module",
9
- "exports": {
10
- "types": "./index.d.ts",
11
- "default": "./index.js"
12
- },
13
- "sideEffects": false,
14
- "engines": {
15
- "node": ">=20"
16
- },
17
- "scripts": {
18
- "test": "xo && ava && tsc --lib esnext index.d.ts"
19
- },
20
- "files": [
21
- "index.js",
22
- "tokenize-ansi.js",
23
- "index.d.ts"
24
- ],
25
- "keywords": [
26
- "slice",
27
- "string",
28
- "ansi",
29
- "styles",
30
- "color",
31
- "colour",
32
- "colors",
33
- "terminal",
34
- "console",
35
- "cli",
36
- "tty",
37
- "escape",
38
- "formatting",
39
- "rgb",
40
- "256",
41
- "shell",
42
- "xterm",
43
- "log",
44
- "logging",
45
- "command-line",
46
- "text"
47
- ],
48
- "dependencies": {
49
- "ansi-styles": "^6.2.3",
50
- "is-fullwidth-code-point": "^5.1.0"
51
- },
52
- "devDependencies": {
53
- "ava": "^6.4.1",
54
- "chalk": "^5.6.2",
55
- "random-item": "^4.0.1",
56
- "strip-ansi": "^7.1.2",
57
- "xo": "^1.2.3"
58
- }
59
- }
@@ -1,54 +0,0 @@
1
- # slice-ansi [![XO: Linted](https://img.shields.io/badge/xo-linted-blue.svg)](https://github.com/xojs/xo)
2
-
3
- > Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
4
-
5
- ## Install
6
-
7
- ```sh
8
- npm install slice-ansi
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- import chalk from 'chalk';
15
- import sliceAnsi from 'slice-ansi';
16
-
17
- const string = 'The quick brown ' + chalk.red('fox jumped over ') +
18
- 'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
19
-
20
- console.log(sliceAnsi(string, 20, 30));
21
- ```
22
-
23
- ## API
24
-
25
- ### sliceAnsi(string, startSlice, endSlice?)
26
-
27
- #### string
28
-
29
- Type: `string`
30
-
31
- String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
32
-
33
- #### startSlice
34
-
35
- Type: `number`
36
-
37
- Zero-based visible-column index at which to start the slice. Grapheme clusters (for example, emoji sequences and combining marks) are kept intact.
38
-
39
- #### endSlice
40
-
41
- Type: `number`
42
-
43
- Zero-based visible-column index at which to end the slice.
44
-
45
- ## Related
46
-
47
- - [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
48
- - [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
49
- - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
50
-
51
- ## Maintainers
52
-
53
- - [Sindre Sorhus](https://github.com/sindresorhus)
54
- - [Josh Junon](https://github.com/qix-)