decocms 2.291.1 → 2.291.2

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 (219) hide show
  1. package/dist/client/assets/{AlertCircle-BYbLY8JK.js → AlertCircle-BU25E17i.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-CcXLWn5B.js → ArrowNarrowLeft-DsozI7ul.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-BYnm98Tt.js → ArrowUpRight-wUPlLzWo.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-YokVYrIX.js → CheckCircle-B6ooPL10.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BRURl2T5.js → ChevronDown-BjunjZ96.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-CZmvUfnf.js → ChevronRight-DZ8_B5Zy.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-VkkFTpbv.js → ChevronUp-BcfJms1N.js} +1 -1
  8. package/dist/client/assets/{Container-DQZzI4AA.js → Container-BBbTXyMq.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-D5rWkx3C.js → DotsVertical-ChXlfNDE.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-tSCOf-pQ.js → LinkExternal01-Bq6E6IiB.js} +1 -1
  11. package/dist/client/assets/{Lock01-CQvbe2FZ.js → Lock01-CT9fVg-M.js} +1 -1
  12. package/dist/client/assets/{Palette-DZWPAJiP.js → Palette-CL1PeBDG.js} +1 -1
  13. package/dist/client/assets/{Play-BwrtIjN9.js → Play-O7Kb3HkD.js} +1 -1
  14. package/dist/client/assets/{Plus-Mx814qi5.js → Plus-BX8KY2Vj.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-Bmm2OZFs.js → RefreshCcw01-DtyDEAf2.js} +1 -1
  16. package/dist/client/assets/{SearchMd-CHEkvskM.js → SearchMd-CJm9ITir.js} +1 -1
  17. package/dist/client/assets/{Settings02-dtOggDtm.js → Settings02-0UGyPXgy.js} +1 -1
  18. package/dist/client/assets/{Shield01-BlIkj6ml.js → Shield01-ajX6eCWD.js} +1 -1
  19. package/dist/client/assets/{Star01-CwajHHth.js → Star01-DLcvdqts.js} +1 -1
  20. package/dist/client/assets/{Sun-1eccYZOi.js → Sun-DwH3UR5R.js} +1 -1
  21. package/dist/client/assets/{Tool01-D25llKlN.js → Tool01-Dqe-c7_N.js} +1 -1
  22. package/dist/client/assets/{Trash01-D1oxn083.js → Trash01-CO6PRylN.js} +1 -1
  23. package/dist/client/assets/{User01-Dg6LRSNl.js → User01-JrKdMZpa.js} +1 -1
  24. package/dist/client/assets/{Users03-B2xVime7.js → Users03-DGkdZmwX.js} +1 -1
  25. package/dist/client/assets/{X-BQvMOHsX.js → X-BFKhYElJ.js} +1 -1
  26. package/dist/client/assets/{XCircle-TXbF29VJ.js → XCircle-BCi1SPUb.js} +1 -1
  27. package/dist/client/assets/{XClose-B4M7R7X8.js → XClose-BL1_qV1F.js} +1 -1
  28. package/dist/client/assets/{Zap-CxY8TS-o.js → Zap-Bsssnre4.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-B1TVYj8i.js → ZapSquare-dR2caQ4h.js} +1 -1
  30. package/dist/client/assets/{accordion-CUfbS6Fc.js → accordion-CSdeKGev.js} +1 -1
  31. package/dist/client/assets/{agent-icon-6Uu6lwox.js → agent-icon-BHvp6mzD.js} +1 -1
  32. package/dist/client/assets/{agents-list-Dm4llAHx.js → agents-list-DelQtLci.js} +1 -1
  33. package/dist/client/assets/ai-providers-B3ZQpsvX.js +1 -0
  34. package/dist/client/assets/{alert-dialog-C3PpULXm.js → alert-dialog-7-SyZGSt.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-CbCG99Oq.js → auth-catchall-iqLWQ8B0.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-R7WEZP_X.js → automation-list-row-CGm-OiLc.js} +1 -1
  37. package/dist/client/assets/{automations-BE-SV3bv.js → automations-CYw0JH2e.js} +1 -1
  38. package/dist/client/assets/{avatar-B0cDdI_p.js → avatar-Zzj9UMlL.js} +1 -1
  39. package/dist/client/assets/{badge-BSF0KEBD.js → badge--Lhfsu1W.js} +1 -1
  40. package/dist/client/assets/{brand-context-VMfIPbNw.js → brand-context-YW1Q-eq7.js} +1 -1
  41. package/dist/client/assets/{card-G-uvOmaX.js → card-9GTnJhWp.js} +1 -1
  42. package/dist/client/assets/{chat-context-a-h1Wy9R.js → chat-context-DXvG89K2.js} +2 -2
  43. package/dist/client/assets/{checkbox-BtVeTd73.js → checkbox-duvwt99y.js} +1 -1
  44. package/dist/client/assets/collection-detail-F4_8z6Hn.js +1 -0
  45. package/dist/client/assets/{collection-display-button-Cf7kfBzQ.js → collection-display-button-DinzcNMl.js} +1 -1
  46. package/dist/client/assets/{collection-search-RkDibt87.js → collection-search-BcpKEq0y.js} +1 -1
  47. package/dist/client/assets/{collection-search-LJG0dGzi.js → collection-search-BoQ_EppH.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-DTmKWr0a.js → collection-table-wrapper-Q2gV7sPs.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-B22z1W7w.js → collection-tabs-Dl6rp80p.js} +1 -1
  50. package/dist/client/assets/{collections-BGqKPyxO.js → collections-CtHgOGSI.js} +1 -1
  51. package/dist/client/assets/{command-dXSQcSlQ.js → command-BY-OMlmS.js} +1 -1
  52. package/dist/client/assets/{connection-card-BoKVGqSP.js → connection-card-CxvFxmw2.js} +1 -1
  53. package/dist/client/assets/{connection-detail-BpVjCTHj.js → connection-detail-B2-UvKp7.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-BDjJZ0p-.js → connection-form-helpers-skhe2PwK.js} +1 -1
  55. package/dist/client/assets/{connections-CLSd3E4v.js → connections-B9rvBIJs.js} +1 -1
  56. package/dist/client/assets/{constants-D02ovwi8.js → constants-BAzsARw1.js} +1 -1
  57. package/dist/client/assets/{constants-CkE3mXX3.js → constants-Bp8ek76r.js} +1 -1
  58. package/dist/client/assets/{dialog-iad61Myk.js → dialog-C2cBQ0ty.js} +1 -1
  59. package/dist/client/assets/{domain-settings-k6ahG8fL.js → domain-settings-DX4izaPT.js} +1 -1
  60. package/dist/client/assets/{drawer-C5RmZfRn.js → drawer-B_-bDnjD.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-C-rtkqLf.js → dropdown-menu-DWNG84J5.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-8vOtH5cT.js → dynamic-plugin-layout-C-4aN23S.js} +1 -1
  63. package/dist/client/assets/{empty-state-DjHmeRj3.js → empty-state-BKimHCce.js} +1 -1
  64. package/dist/client/assets/{empty-state-C0ZLSTKp.js → empty-state-CLCMWued.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-CGvP9gW4.js → extract-connection-data-DAdB5U1f.js} +1 -1
  66. package/dist/client/assets/{features-Bd6dY_zE.js → features-CFZqwKf_.js} +1 -1
  67. package/dist/client/assets/{form-338sOp4I.js → form-92QvOiJ_.js} +1 -1
  68. package/dist/client/assets/{general-OtnfMwVI.js → general-CIx8MPEj.js} +1 -1
  69. package/dist/client/assets/{github-repo-picker-BAv1s-16.js → github-repo-picker-CUaU2lz-.js} +1 -1
  70. package/dist/client/assets/{index-B9v7UxaA.js → index-BIYmbFmV.js} +1 -1
  71. package/dist/client/assets/{index-Dm9FQcLA.js → index-BPhQ3efs.js} +1 -1
  72. package/dist/client/assets/{index-COtqJC_1.js → index-BRQ0tifs.js} +1 -1
  73. package/dist/client/assets/{index-DgSb8QXs.js → index-BbevWgzi.js} +1 -1
  74. package/dist/client/assets/{index-BnYwAGzg.js → index-CEfeDibH.js} +4 -4
  75. package/dist/client/assets/{index-D47or-uW.js → index-CTsYITXV.js} +1 -1
  76. package/dist/client/assets/{index-CNpuYwrQ.js → index-CxVUAwST.js} +1 -1
  77. package/dist/client/assets/{index-BG1X1tQ7.js → index-CzXBz_F7.js} +1 -1
  78. package/dist/client/assets/{index-CMjtYUqI.js → index-DNXvVXJy.js} +1 -1
  79. package/dist/client/assets/{index-DqsW5LHB.js → index-Dq226A4w.js} +2 -2
  80. package/dist/client/assets/{infiniteQueryObserver-CFInfc2M.js → infiniteQueryObserver-DAJ1MAYd.js} +1 -1
  81. package/dist/client/assets/{input-DH-CzXJx.js → input-sAl4qpu7.js} +1 -1
  82. package/dist/client/assets/{integration-icon-DJA_3Fr4.js → integration-icon-AZugc3yw.js} +1 -1
  83. package/dist/client/assets/{label-BMXaeGTS.js → label-CgTKL0Kd.js} +1 -1
  84. package/dist/client/assets/{layout-BI4iFO9A.js → layout-irXWDg_F.js} +1 -1
  85. package/dist/client/assets/{login-DyuwfRcj.js → login-D6bW_SwU.js} +1 -1
  86. package/dist/client/assets/{members-BmJR_VlS.js → members-Bl2wPM_1.js} +1 -1
  87. package/dist/client/assets/{monaco-editor-B5JuMABe.js → monaco-editor-C_NWZeTl.js} +1 -1
  88. package/dist/client/assets/{monitoring-stats-row-BY0X8hB4.js → monitoring-stats-row-CvAc2TdA.js} +1 -1
  89. package/dist/client/assets/{oauth-callback-inWmNv4q.js → oauth-callback-CVJgN1AT.js} +1 -1
  90. package/dist/client/assets/{oauth-callback-ai-provider-CBxSFNpp.js → oauth-callback-ai-provider-oXA-Awv1.js} +1 -1
  91. package/dist/client/assets/{onboarding-G7MEDE1s.js → onboarding-BLnL078F.js} +1 -1
  92. package/dist/client/assets/{org-layout-DArAUzhp.js → org-layout-OuwJcURT.js} +1 -1
  93. package/dist/client/assets/{org-plugin-layout-VUKw0cT4.js → org-plugin-layout-BldguEGv.js} +1 -1
  94. package/dist/client/assets/{plugin-empty-state-DQpnGoua.js → plugin-empty-state-CRh8LLke.js} +1 -1
  95. package/dist/client/assets/{plugin-header-TbxBcKQZ.js → plugin-header-DQQsADvB.js} +1 -1
  96. package/dist/client/assets/{plugin-layout-DKyHA-wW.js → plugin-layout-xMoCwh-U.js} +1 -1
  97. package/dist/client/assets/{popover-OC7XhGTw.js → popover-Cl9Q4B_r.js} +1 -1
  98. package/dist/client/assets/{profile-DwshPh0T.js → profile-Dwkg2__q.js} +1 -1
  99. package/dist/client/assets/{project-app-view-CxpGmDTt.js → project-app-view-Ds5KIeD6.js} +1 -1
  100. package/dist/client/assets/registry-BBs0abCV.js +2 -0
  101. package/dist/client/assets/{registry-layout-IXiQGtRE.js → registry-layout-BcsYgVKZ.js} +1 -1
  102. package/dist/client/assets/{required-auth-layout-CBJCEsxt.js → required-auth-layout-3FXLvGi_.js} +1 -1
  103. package/dist/client/assets/{reset-password-B3HQhCgj.js → reset-password-CchTJTF9.js} +1 -1
  104. package/dist/client/assets/{roles-Avtsbj8b.js → roles-5IF_wtdu.js} +1 -1
  105. package/dist/client/assets/{scroll-area-BISJlmBG.js → scroll-area-094tZsTA.js} +1 -1
  106. package/dist/client/assets/{search-input-A-4PeF_2.js → search-input-CIR03_9I.js} +1 -1
  107. package/dist/client/assets/{select-AHhRGkyu.js → select-C3X6ssTw.js} +1 -1
  108. package/dist/client/assets/{select-model-fOLzezFa.js → select-model-BcH4syAI.js} +1 -1
  109. package/dist/client/assets/{settings-layout-BZX4Y4xJ.js → settings-layout-DiCQMM4S.js} +1 -1
  110. package/dist/client/assets/{settings-section-BhzOkUnI.js → settings-section-Q55Fgh-8.js} +1 -1
  111. package/dist/client/assets/{shell-layout-Bd7V-GQY.js → shell-layout-4T5ISWfh.js} +1 -1
  112. package/dist/client/assets/{skeleton-CbxzlXux.js → skeleton-DGdg1BKw.js} +1 -1
  113. package/dist/client/assets/{sso-ouyQ9HV-.js → sso-Coky_69P.js} +1 -1
  114. package/dist/client/assets/{store-DpB4YfFG.js → store-hdsNmYTT.js} +1 -1
  115. package/dist/client/assets/store-registry-DMKzasMp.js +2 -0
  116. package/dist/client/assets/{switch-BLGfVBVR.js → switch-D2IuZl3W.js} +1 -1
  117. package/dist/client/assets/{table-D4DE3XhH.js → table-DMAlnYBn.js} +1 -1
  118. package/dist/client/assets/{tabs-DfV1qdcL.js → tabs-BqcAeZdj.js} +1 -1
  119. package/dist/client/assets/{task-status-_49KQk_a.js → task-status-95rqQaw6.js} +1 -1
  120. package/dist/client/assets/{textarea-JSK2UtRe.js → textarea-B3aDHfMl.js} +1 -1
  121. package/dist/client/assets/{toggle-group-BEFyXqZD.js → toggle-group-CRKBIdwr.js} +1 -1
  122. package/dist/client/assets/{tools-list-DOfn3EJA.js → tools-list-D1jmrWjZ.js} +1 -1
  123. package/dist/client/assets/{types-D3_Ra7Fv.js → types-CmztvBo8.js} +1 -1
  124. package/dist/client/assets/{use-ai-providers-MLk3Pb1b.js → use-ai-providers-DV1XR9hI.js} +1 -1
  125. package/dist/client/assets/{use-collections-CIiKPdXz.js → use-collections-5a3WcFJc.js} +1 -1
  126. package/dist/client/assets/{use-connection-CkaOLOkA.js → use-connection-dg_H_Pr1.js} +1 -1
  127. package/dist/client/assets/{use-copy-DMw5YQy5.js → use-copy-RJi4IuzY.js} +1 -1
  128. package/dist/client/assets/{use-create-virtual-mcp-CoqQQKD_.js → use-create-virtual-mcp-CCwbfx6_.js} +1 -1
  129. package/dist/client/assets/{use-decopilot-events-C20Bt8AR.js → use-decopilot-events-Dzf3hgZq.js} +1 -1
  130. package/dist/client/assets/{use-delete-connection-c6u3Mju0.js → use-delete-connection-D5D7M4ay.js} +1 -1
  131. package/dist/client/assets/{use-infinite-scroll-BAxtK59M.js → use-infinite-scroll-C3Qa6hGW.js} +1 -1
  132. package/dist/client/assets/{use-list-state-WpMLgcH5.js → use-list-state-hDUYjUlU.js} +1 -1
  133. package/dist/client/assets/{use-mcp-tools-B89VuP8B.js → use-mcp-tools-DigN6mZj.js} +1 -1
  134. package/dist/client/assets/{use-members-tE1Czmvr.js → use-members-ChwILPhE.js} +1 -1
  135. package/dist/client/assets/{use-mobile-DtcdfNhs.js → use-mobile-BSlkjiym.js} +1 -1
  136. package/dist/client/assets/{use-navigate-to-agent-51gjX2Pz.js → use-navigate-to-agent-yRpKyeIE.js} +1 -1
  137. package/dist/client/assets/{use-org-sso-CMd7BViF.js → use-org-sso-OgWFYsGG.js} +1 -1
  138. package/dist/client/assets/{use-organization-roles-VhRwvnOU.js → use-organization-roles-AsLd-PIV.js} +1 -1
  139. package/dist/client/assets/{use-organization-settings-BAET96Uw.js → use-organization-settings-dHr-vwwr.js} +1 -1
  140. package/dist/client/assets/{use-registry-connections-yAbn5ElM.js → use-registry-connections-CYHmfgoy.js} +1 -1
  141. package/dist/client/assets/{use-status-sounds-Du7S3ua5.js → use-status-sounds-B12GPbr_.js} +1 -1
  142. package/dist/client/assets/{use-tasks-DZowuTKu.js → use-tasks-CBpkur0D.js} +1 -1
  143. package/dist/client/assets/{use-view-mode-DPPBVyNk.js → use-view-mode-BAlWkrBx.js} +1 -1
  144. package/dist/client/assets/{use-virtual-mcp-aaTK8HuA.js → use-virtual-mcp-CTcuyRU_.js} +1 -1
  145. package/dist/client/assets/useInfiniteQuery-DWgeOHBC.js +1 -0
  146. package/dist/client/assets/useSuspenseInfiniteQuery-B1Hn37mg.js +1 -0
  147. package/dist/client/assets/{user-BGPKZele.js → user-BnSZoTYs.js} +1 -1
  148. package/dist/client/assets/{view-mode-toggle-BRLuTNh9.js → view-mode-toggle-XuC9ujfW.js} +1 -1
  149. package/dist/client/assets/{workflow-iBn2uqrM.js → workflow-CmKE8auY.js} +1 -1
  150. package/dist/client/assets/workflow-detail-DUmWuXHM.js +1 -0
  151. package/dist/client/index.html +1 -1
  152. package/dist/server/cli.js +1 -1
  153. package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
  154. package/dist/server/node_modules/ansi-styles/index.js +223 -0
  155. package/dist/server/node_modules/{slice-ansi → ansi-styles}/license +0 -1
  156. package/dist/server/node_modules/ansi-styles/package.json +54 -0
  157. package/dist/server/node_modules/ansi-styles/readme.md +173 -0
  158. package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
  159. package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
  160. package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
  161. package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
  162. package/dist/server/node_modules/xtend/.jshintrc +30 -0
  163. package/dist/server/node_modules/{postgres-date/license → xtend/LICENSE} +1 -2
  164. package/dist/server/node_modules/xtend/README.md +32 -0
  165. package/dist/server/node_modules/xtend/immutable.js +19 -0
  166. package/dist/server/node_modules/xtend/mutable.js +17 -0
  167. package/dist/server/node_modules/xtend/package.json +55 -0
  168. package/dist/server/node_modules/xtend/test.js +103 -0
  169. package/package.json +1 -1
  170. package/dist/client/assets/ai-providers-CWrtqiFu.js +0 -1
  171. package/dist/client/assets/collection-detail-CQv-EfCg.js +0 -1
  172. package/dist/client/assets/registry-DZhwyNLq.js +0 -2
  173. package/dist/client/assets/store-registry-DUx3wL94.js +0 -2
  174. package/dist/client/assets/useInfiniteQuery-Emg6p2ky.js +0 -1
  175. package/dist/client/assets/useSuspenseInfiniteQuery-Dfyjunjm.js +0 -1
  176. package/dist/client/assets/workflow-detail-C1edh6mx.js +0 -1
  177. package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
  178. package/dist/server/node_modules/mimic-fn/index.js +0 -13
  179. package/dist/server/node_modules/mimic-fn/package.json +0 -42
  180. package/dist/server/node_modules/mimic-fn/readme.md +0 -69
  181. package/dist/server/node_modules/pg-int8/LICENSE +0 -13
  182. package/dist/server/node_modules/pg-int8/README.md +0 -16
  183. package/dist/server/node_modules/pg-int8/index.js +0 -100
  184. package/dist/server/node_modules/pg-int8/package.json +0 -24
  185. package/dist/server/node_modules/postgres-date/index.js +0 -116
  186. package/dist/server/node_modules/postgres-date/package.json +0 -33
  187. package/dist/server/node_modules/postgres-date/readme.md +0 -49
  188. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  189. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  190. package/dist/server/node_modules/postgres-interval/license +0 -21
  191. package/dist/server/node_modules/postgres-interval/package.json +0 -36
  192. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  193. package/dist/server/node_modules/scheduler/LICENSE +0 -21
  194. package/dist/server/node_modules/scheduler/README.md +0 -9
  195. package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -414
  196. package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_mock.production.js +0 -406
  197. package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -150
  198. package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -140
  199. package/dist/server/node_modules/scheduler/cjs/scheduler.development.js +0 -364
  200. package/dist/server/node_modules/scheduler/cjs/scheduler.native.development.js +0 -350
  201. package/dist/server/node_modules/scheduler/cjs/scheduler.native.production.js +0 -330
  202. package/dist/server/node_modules/scheduler/cjs/scheduler.production.js +0 -340
  203. package/dist/server/node_modules/scheduler/index.js +0 -7
  204. package/dist/server/node_modules/scheduler/index.native.js +0 -7
  205. package/dist/server/node_modules/scheduler/package.json +0 -27
  206. package/dist/server/node_modules/scheduler/unstable_mock.js +0 -7
  207. package/dist/server/node_modules/scheduler/unstable_post_task.js +0 -7
  208. package/dist/server/node_modules/slice-ansi/index.d.ts +0 -19
  209. package/dist/server/node_modules/slice-ansi/index.js +0 -260
  210. package/dist/server/node_modules/slice-ansi/package.json +0 -59
  211. package/dist/server/node_modules/slice-ansi/readme.md +0 -54
  212. package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
  213. package/dist/server/node_modules/split2/LICENSE +0 -13
  214. package/dist/server/node_modules/split2/README.md +0 -85
  215. package/dist/server/node_modules/split2/bench.js +0 -27
  216. package/dist/server/node_modules/split2/index.js +0 -141
  217. package/dist/server/node_modules/split2/package.json +0 -39
  218. package/dist/server/node_modules/split2/test.js +0 -409
  219. /package/dist/server/node_modules/{mimic-fn → escape-string-regexp}/license +0 -0
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/scheduler-unstable_mock.production.js');
5
- } else {
6
- module.exports = require('./cjs/scheduler-unstable_mock.development.js');
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/scheduler-unstable_post_task.production.js');
5
- } else {
6
- module.exports = require('./cjs/scheduler-unstable_post_task.development.js');
7
- }
@@ -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,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-)