decocms 2.297.5 → 2.298.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 (207) hide show
  1. package/dist/client/assets/{AlertCircle-CdsafmOE.js → AlertCircle-1FKO-iwn.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-Z3bol_QU.js → ArrowNarrowLeft-CKZqPsRI.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-DlOBonM-.js → ArrowUpRight-7lMYxGWa.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-rCOulsHV.js → CheckCircle-Dk81QM9U.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-DpY6Flf1.js → ChevronDown-CHOTJx8l.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-BTHSc5W9.js → ChevronRight-Dk8qeq6P.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-3rRJzUBA.js → ChevronUp-CTvlJvJZ.js} +1 -1
  8. package/dist/client/assets/{Container-D_0hJyWg.js → Container-C3IYo0L9.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-C14a4Ecy.js → DotsVertical-D4yfeGnN.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-CXFf8E57.js → LinkExternal01-x1hnv38P.js} +1 -1
  11. package/dist/client/assets/{Lock01-jCC5NElm.js → Lock01-lZHBNo2C.js} +1 -1
  12. package/dist/client/assets/{Palette-CC5sNEUI.js → Palette-C9akcBSz.js} +1 -1
  13. package/dist/client/assets/{Play-BCtgtTv0.js → Play-CdX48V1T.js} +1 -1
  14. package/dist/client/assets/{Plus-BU5qE_0Z.js → Plus-DYdqKX5R.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-DkGR6dYl.js → RefreshCcw01-HnODDFoT.js} +1 -1
  16. package/dist/client/assets/{SearchMd-Bun6GRRS.js → SearchMd-GZRswmV_.js} +1 -1
  17. package/dist/client/assets/{Settings02-BW8HHhci.js → Settings02-Dzch4bsp.js} +1 -1
  18. package/dist/client/assets/{Shield01-DsYD83TQ.js → Shield01-bIZj53hE.js} +1 -1
  19. package/dist/client/assets/{Star01-C2q-Rz0j.js → Star01-DUqgRTj4.js} +1 -1
  20. package/dist/client/assets/{Sun-BXkdevd2.js → Sun-g7onD0QQ.js} +1 -1
  21. package/dist/client/assets/{Tool01-BpwK-6V9.js → Tool01-Bbs6ipxi.js} +1 -1
  22. package/dist/client/assets/{Trash01-FiQdOhqi.js → Trash01-D1T4c6gl.js} +1 -1
  23. package/dist/client/assets/{User01-C_ak6Kxk.js → User01-Fk9cKl4i.js} +1 -1
  24. package/dist/client/assets/{Users03-DaFOfASx.js → Users03-CVNVU6ve.js} +1 -1
  25. package/dist/client/assets/{X-BCwgneQR.js → X-BwEMSUjV.js} +1 -1
  26. package/dist/client/assets/{XCircle-BSiQp6n3.js → XCircle-C0fkjQDC.js} +1 -1
  27. package/dist/client/assets/{XClose-BUwTYWum.js → XClose-DxHt9zuu.js} +1 -1
  28. package/dist/client/assets/{Zap-JVLBlI8s.js → Zap-BPFq3hVj.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-De19_vak.js → ZapSquare-DGM2fPse.js} +1 -1
  30. package/dist/client/assets/{accordion-lz0Xmj6X.js → accordion-Bdek-M8z.js} +1 -1
  31. package/dist/client/assets/{agent-icon-B3jGc1Ev.js → agent-icon-DmsooVXW.js} +1 -1
  32. package/dist/client/assets/{agents-list-DzYkZPlQ.js → agents-list-Dj4emYPF.js} +1 -1
  33. package/dist/client/assets/ai-providers-CYFZTFTL.js +1 -0
  34. package/dist/client/assets/{alert-dialog-COV2HFzJ.js → alert-dialog-CWQoS6wX.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-DF_drpYc.js → auth-catchall-CD4rfnTW.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-DWmoUp-H.js → automation-list-row-CLJ3ftyb.js} +1 -1
  37. package/dist/client/assets/{automations-Wt8vaxkn.js → automations-DcwcFfNp.js} +1 -1
  38. package/dist/client/assets/{avatar-CTOwJvGM.js → avatar-Bu1NzTYg.js} +1 -1
  39. package/dist/client/assets/{badge--qrdwFcB.js → badge-Ch9BdqT9.js} +1 -1
  40. package/dist/client/assets/{brand-context-B6htH03E.js → brand-context-Cdhkr07K.js} +1 -1
  41. package/dist/client/assets/{card-BbLPQxf_.js → card-RSPkY0To.js} +1 -1
  42. package/dist/client/assets/{chat-context-DmT_0uIT.js → chat-context-DF9UFjVM.js} +1 -1
  43. package/dist/client/assets/{checkbox-oN14OK1i.js → checkbox-B1Ttfs-h.js} +1 -1
  44. package/dist/client/assets/{collection-detail-BK5rbIjY.js → collection-detail-D-3DNG_M.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-FwqJW3Qj.js → collection-display-button-D0RK6oeA.js} +1 -1
  46. package/dist/client/assets/{collection-search-BsmMEHVf.js → collection-search-BkYFe6i5.js} +1 -1
  47. package/dist/client/assets/{collection-search-CnJO24A_.js → collection-search-gyDd3-OR.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-Bf7AfER2.js → collection-table-wrapper-BCfFkyA6.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-DuWPOEDQ.js → collection-tabs-BywVHkM5.js} +1 -1
  50. package/dist/client/assets/{collections-B_BLEc5A.js → collections-B1Vl-dRY.js} +1 -1
  51. package/dist/client/assets/{command-B3wV0NGR.js → command-CVf7W7do.js} +1 -1
  52. package/dist/client/assets/{connection-card-oAGfqetU.js → connection-card-B_uXifPW.js} +1 -1
  53. package/dist/client/assets/{connection-detail-eVihEjIw.js → connection-detail-Cmgz9yRr.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-Dk1Bh70V.js → connection-form-helpers-DELjRDJg.js} +1 -1
  55. package/dist/client/assets/{connections-6RNsPV6d.js → connections-ncYXmxGJ.js} +1 -1
  56. package/dist/client/assets/{constants-DfvWBMZm.js → constants-D7xAST0Q.js} +1 -1
  57. package/dist/client/assets/{constants-3jD3x8Uj.js → constants-DivL5teI.js} +1 -1
  58. package/dist/client/assets/{dialog-B19PbpYJ.js → dialog-C_vmNTRu.js} +1 -1
  59. package/dist/client/assets/{domain-settings-CTQRWCj5.js → domain-settings-DXgm_woB.js} +1 -1
  60. package/dist/client/assets/{drawer-DUQTbVde.js → drawer-C4a3mc5d.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-CoYd9oG5.js → dropdown-menu-B8_YZGoo.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-BjtkKd8R.js → dynamic-plugin-layout-Dlh_QnjI.js} +1 -1
  63. package/dist/client/assets/{empty-state-CEaufWig.js → empty-state-DJGg06AT.js} +1 -1
  64. package/dist/client/assets/{empty-state-oEpGmt_E.js → empty-state-DOC09WYz.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-B3ZynL1x.js → extract-connection-data-OOISwrlz.js} +1 -1
  66. package/dist/client/assets/{features-DCuTYINJ.js → features-DTyLbScZ.js} +1 -1
  67. package/dist/client/assets/{form-PX5XfY1h.js → form-DsyDTBzC.js} +1 -1
  68. package/dist/client/assets/{general-BwtE4iqn.js → general-7ljwSAxI.js} +1 -1
  69. package/dist/client/assets/{index-Bgik2M7B.js → index-70mmoBkB.js} +1 -1
  70. package/dist/client/assets/index-8xDSjspo.js +1 -0
  71. package/dist/client/assets/{index-D7sE-LIc.js → index-B01cqxRa.js} +1 -1
  72. package/dist/client/assets/{index-BSQKB2C4.js → index-BEZPSJ65.js} +1 -1
  73. package/dist/client/assets/{index-B1aMIC_I.js → index-BHV6aSRG.js} +1 -1
  74. package/dist/client/assets/{index-2PSEn8xL.js → index-BirIwGZm.js} +1 -1
  75. package/dist/client/assets/{index-BO_ipX-D.js → index-Cfe1XtAV.js} +1 -1
  76. package/dist/client/assets/{index-KRYpI-wr.js → index-D1OGx8P1.js} +2 -2
  77. package/dist/client/assets/{index-DZ9E6iAg.js → index-DBkKSx96.js} +1 -1
  78. package/dist/client/assets/{index-BzZtc59N.js → index-DHuevMFp.js} +1 -1
  79. package/dist/client/assets/{index-CXl9ZR5d.js → index-DSAQMn6i.js} +1 -1
  80. package/dist/client/assets/{index-VbxM3RAZ.js → index-Di0Mb6sO.js} +1 -1
  81. package/dist/client/assets/{index-BGF4-5Ra.js → index-HZ0ltqWr.js} +1 -1
  82. package/dist/client/assets/{index-9SYaIcg7.js → index-LWzmvmvR.js} +1 -1
  83. package/dist/client/assets/{index-DZV5ko8H.js → index-m0seQOic.js} +3 -3
  84. package/dist/client/assets/{index-BJu9jFry.js → index-oPPnPtai.js} +1 -1
  85. package/dist/client/assets/{infiniteQueryObserver-Ngno0wQt.js → infiniteQueryObserver-Bl2c59an.js} +1 -1
  86. package/dist/client/assets/{input-CMerivrT.js → input-BzH1Fp78.js} +1 -1
  87. package/dist/client/assets/{integration-icon-gFG8GE83.js → integration-icon-D_AOqXFj.js} +1 -1
  88. package/dist/client/assets/{label-DQXeJGYk.js → label-CB_XE-e4.js} +1 -1
  89. package/dist/client/assets/{layout-Bu4l4YYc.js → layout-CY21UTYW.js} +1 -1
  90. package/dist/client/assets/{lean-canvas-recruit-modal-CdR8OGue.js → lean-canvas-recruit-modal-BPVxQzta.js} +1 -1
  91. package/dist/client/assets/{login-CXq67fYw.js → login-Bxl4_mYU.js} +1 -1
  92. package/dist/client/assets/{members-D7UWERrU.js → members-zvpqbNiS.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-wlxwD-sq.js → monaco-editor-DuX4NcOq.js} +1 -1
  94. package/dist/client/assets/{monitoring-stats-row-DWh0NXPE.js → monitoring-stats-row-D51EcZe3.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-ai-provider-BBLCXQVh.js → oauth-callback-ai-provider-DfBUG-m3.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-D0RtIKIz.js → oauth-callback-mZUzyh0o.js} +1 -1
  97. package/dist/client/assets/{onboarding-D8u4OWJP.js → onboarding-C5IoSpHh.js} +1 -1
  98. package/dist/client/assets/{org-layout-C_djtIDd.js → org-layout-CyD6hmWc.js} +1 -1
  99. package/dist/client/assets/{org-plugin-layout-Dv1dO72E.js → org-plugin-layout-BUW4YpUf.js} +1 -1
  100. package/dist/client/assets/{pair-KR7I3a65.js → pair-BhjBynHM.js} +1 -1
  101. package/dist/client/assets/{plugin-empty-state-DlX42kZ3.js → plugin-empty-state-dVIN074A.js} +1 -1
  102. package/dist/client/assets/{plugin-header-BUllzb83.js → plugin-header-DbdW6vY7.js} +1 -1
  103. package/dist/client/assets/{plugin-layout-DbAaYRC9.js → plugin-layout-c0ZCIK90.js} +1 -1
  104. package/dist/client/assets/{popover-Ege2icQN.js → popover-Ci7fqppX.js} +1 -1
  105. package/dist/client/assets/{profile-D2bYkoz8.js → profile-BVqUNHDU.js} +1 -1
  106. package/dist/client/assets/{project-app-view-u5Qe7FSE.js → project-app-view-vtZ-_doc.js} +1 -1
  107. package/dist/client/assets/registry-Dgo0smSq.js +2 -0
  108. package/dist/client/assets/{registry-layout-SK_qasoh.js → registry-layout-CnlyFMkq.js} +1 -1
  109. package/dist/client/assets/{required-auth-layout-qy-kggYU.js → required-auth-layout-D9iH4JWn.js} +1 -1
  110. package/dist/client/assets/{reset-password-DnrxS6WW.js → reset-password-C7rUh7yQ.js} +1 -1
  111. package/dist/client/assets/{roles-CpSLMdQg.js → roles-C_9lgwGC.js} +1 -1
  112. package/dist/client/assets/{scroll-area-C9GXQyc7.js → scroll-area-DeGma9h8.js} +1 -1
  113. package/dist/client/assets/{search-input-BfSpM4Yi.js → search-input-JxYHORMS.js} +1 -1
  114. package/dist/client/assets/{select-CmYNF4eL.js → select-D5OmQB7Q.js} +1 -1
  115. package/dist/client/assets/{select-model-C1-GuVkw.js → select-model-BsjLnWhc.js} +1 -1
  116. package/dist/client/assets/{settings-layout-DY3eT5Vf.js → settings-layout-CBdTbv9p.js} +1 -1
  117. package/dist/client/assets/{settings-section-BYYhk7zc.js → settings-section-PoWhTqpS.js} +1 -1
  118. package/dist/client/assets/{shell-layout-BNhEwDHh.js → shell-layout-yjk12_bc.js} +1 -1
  119. package/dist/client/assets/{skeleton-DNNOALQU.js → skeleton-C-dyN9od.js} +1 -1
  120. package/dist/client/assets/{sso-mmxk9dgo.js → sso-CO-nJSkq.js} +1 -1
  121. package/dist/client/assets/{store-Bf-ghV0D.js → store-DO05KZgT.js} +1 -1
  122. package/dist/client/assets/store-registry-DjJ5a3G8.js +2 -0
  123. package/dist/client/assets/{switch-cbP1whPb.js → switch-CXZ-w0Bq.js} +1 -1
  124. package/dist/client/assets/{table-DHlZtgXE.js → table-BpO63Yb0.js} +1 -1
  125. package/dist/client/assets/{tabs-DLlV1AhK.js → tabs-C_g7sXFQ.js} +1 -1
  126. package/dist/client/assets/{task-status-HVnvsZin.js → task-status-CBFNkFN1.js} +1 -1
  127. package/dist/client/assets/{textarea-CI6A-6K6.js → textarea-BskaK79L.js} +1 -1
  128. package/dist/client/assets/{toggle-group-BR7MR0J_.js → toggle-group-XXqkCq4k.js} +1 -1
  129. package/dist/client/assets/{tools-list-Bfz0O6NR.js → tools-list-DMMBZSNS.js} +1 -1
  130. package/dist/client/assets/{tooltip-GP5hVzoi.js → tooltip-CPtrqiVf.js} +1 -1
  131. package/dist/client/assets/{types-GCOMWUpw.js → types-CZ7C6HNp.js} +1 -1
  132. package/dist/client/assets/{use-ai-providers-BhDBkojL.js → use-ai-providers-DdI6-E22.js} +1 -1
  133. package/dist/client/assets/{use-collections-CLAb2ITC.js → use-collections-DA0dA7NJ.js} +1 -1
  134. package/dist/client/assets/{use-connection-vMA7gFAk.js → use-connection-B6UydpoO.js} +1 -1
  135. package/dist/client/assets/{use-copy-B36UJTzB.js → use-copy-DXME69Wt.js} +1 -1
  136. package/dist/client/assets/{use-create-virtual-mcp-DK73LDl0.js → use-create-virtual-mcp-o_6Zui3e.js} +1 -1
  137. package/dist/client/assets/{use-decopilot-events-lrQB_XVb.js → use-decopilot-events-dH2aVuqh.js} +1 -1
  138. package/dist/client/assets/{use-delete-connection-CpsiJpeH.js → use-delete-connection-CT0R2aH7.js} +1 -1
  139. package/dist/client/assets/{use-infinite-scroll-Be3EKoyX.js → use-infinite-scroll-BJEaveTj.js} +1 -1
  140. package/dist/client/assets/{use-list-state-CKz5CR8i.js → use-list-state-17IGcEJ3.js} +1 -1
  141. package/dist/client/assets/{use-mcp-tools-0-7svmM1.js → use-mcp-tools-CyJvV1rx.js} +1 -1
  142. package/dist/client/assets/{use-members-Dg_Gm9g_.js → use-members-DaW4TIzB.js} +1 -1
  143. package/dist/client/assets/{use-navigate-to-agent-C6liI7bE.js → use-navigate-to-agent-CWbTU3Jx.js} +1 -1
  144. package/dist/client/assets/{use-org-auth-client-DAxzLcIp.js → use-org-auth-client-DUadgGT5.js} +1 -1
  145. package/dist/client/assets/{use-org-sso-DA4hesiY.js → use-org-sso-Drd5l9cJ.js} +1 -1
  146. package/dist/client/assets/{use-organization-roles-CD8-mXf_.js → use-organization-roles-BrKoYq-E.js} +1 -1
  147. package/dist/client/assets/{use-organization-settings-yCi8C30J.js → use-organization-settings-CLV_ZfNb.js} +1 -1
  148. package/dist/client/assets/{use-registry-connections-BrX-TSfc.js → use-registry-connections-DdiWQ4aw.js} +1 -1
  149. package/dist/client/assets/{use-status-sounds-Dr6miNhi.js → use-status-sounds-C-uFPSCX.js} +1 -1
  150. package/dist/client/assets/{use-tasks-BWXzGaFZ.js → use-tasks-CRniTSla.js} +1 -1
  151. package/dist/client/assets/{use-view-mode-B4L3BxLu.js → use-view-mode-C-htIWSb.js} +1 -1
  152. package/dist/client/assets/{use-virtual-mcp-BuljipQB.js → use-virtual-mcp-Ck38sBYu.js} +1 -1
  153. package/dist/client/assets/useInfiniteQuery-DSaXyBNr.js +1 -0
  154. package/dist/client/assets/useSuspenseInfiniteQuery-BidabhCU.js +1 -0
  155. package/dist/client/assets/{user-PR58nvg_.js → user-0W2qHPIr.js} +1 -1
  156. package/dist/client/assets/{view-mode-toggle-C_22FOAw.js → view-mode-toggle-CsVOHOCK.js} +1 -1
  157. package/dist/client/assets/{workflow-Cg5LerQm.js → workflow-ICx7IBZn.js} +1 -1
  158. package/dist/client/assets/workflow-detail-CtIO-XFb.js +1 -0
  159. package/dist/client/index.html +7 -5
  160. package/dist/client/manifest.webmanifest +18 -0
  161. package/dist/server/cli.js +1 -1
  162. package/package.json +1 -1
  163. package/dist/client/assets/ai-providers-CXuXw96K.js +0 -1
  164. package/dist/client/assets/index-CXtVsmlG.js +0 -1
  165. package/dist/client/assets/registry-BgKA56o_.js +0 -2
  166. package/dist/client/assets/store-registry-DPE7ghFj.js +0 -2
  167. package/dist/client/assets/useInfiniteQuery-BymwlV57.js +0 -1
  168. package/dist/client/assets/useSuspenseInfiniteQuery-CZUx6ZHM.js +0 -1
  169. package/dist/client/assets/workflow-detail-CPL49r_K.js +0 -1
  170. package/dist/server/node_modules/auto-bind/index.d.ts +0 -50
  171. package/dist/server/node_modules/auto-bind/index.js +0 -41
  172. package/dist/server/node_modules/auto-bind/license +0 -9
  173. package/dist/server/node_modules/auto-bind/package.json +0 -51
  174. package/dist/server/node_modules/auto-bind/react.d.ts +0 -26
  175. package/dist/server/node_modules/auto-bind/react.js +0 -28
  176. package/dist/server/node_modules/auto-bind/readme.md +0 -92
  177. package/dist/server/node_modules/is-in-ci/cli.js +0 -5
  178. package/dist/server/node_modules/is-in-ci/index.d.ts +0 -15
  179. package/dist/server/node_modules/is-in-ci/index.js +0 -7
  180. package/dist/server/node_modules/is-in-ci/license +0 -9
  181. package/dist/server/node_modules/is-in-ci/package.json +0 -49
  182. package/dist/server/node_modules/is-in-ci/readme.md +0 -44
  183. package/dist/server/node_modules/onetime/index.d.ts +0 -64
  184. package/dist/server/node_modules/onetime/index.js +0 -44
  185. package/dist/server/node_modules/onetime/license +0 -9
  186. package/dist/server/node_modules/onetime/package.json +0 -43
  187. package/dist/server/node_modules/onetime/readme.md +0 -94
  188. package/dist/server/node_modules/postgres-bytea/index.js +0 -33
  189. package/dist/server/node_modules/postgres-bytea/license +0 -21
  190. package/dist/server/node_modules/postgres-bytea/package.json +0 -34
  191. package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
  192. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  193. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  194. package/dist/server/node_modules/postgres-interval/license +0 -21
  195. package/dist/server/node_modules/postgres-interval/package.json +0 -36
  196. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  197. package/dist/server/node_modules/split2/LICENSE +0 -13
  198. package/dist/server/node_modules/split2/README.md +0 -85
  199. package/dist/server/node_modules/split2/bench.js +0 -27
  200. package/dist/server/node_modules/split2/index.js +0 -141
  201. package/dist/server/node_modules/split2/package.json +0 -39
  202. package/dist/server/node_modules/split2/test.js +0 -409
  203. package/dist/server/node_modules/terminal-size/index.d.ts +0 -17
  204. package/dist/server/node_modules/terminal-size/index.js +0 -139
  205. package/dist/server/node_modules/terminal-size/license +0 -9
  206. package/dist/server/node_modules/terminal-size/package.json +0 -49
  207. package/dist/server/node_modules/terminal-size/readme.md +0 -32
@@ -1,409 +0,0 @@
1
- 'use strict'
2
-
3
- const test = require('tape')
4
- const split = require('./')
5
- const callback = require('callback-stream')
6
- const strcb = callback.bind(null, { decodeStrings: false })
7
- const objcb = callback.bind(null, { objectMode: true })
8
-
9
- test('split two lines on end', function (t) {
10
- t.plan(2)
11
-
12
- const input = split()
13
-
14
- input.pipe(strcb(function (err, list) {
15
- t.error(err)
16
- t.deepEqual(list, ['hello', 'world'])
17
- }))
18
-
19
- input.end('hello\nworld')
20
- })
21
-
22
- test('split two lines on two writes', function (t) {
23
- t.plan(2)
24
-
25
- const input = split()
26
-
27
- input.pipe(strcb(function (err, list) {
28
- t.error(err)
29
- t.deepEqual(list, ['hello', 'world'])
30
- }))
31
-
32
- input.write('hello')
33
- input.write('\nworld')
34
- input.end()
35
- })
36
-
37
- test('split four lines on three writes', function (t) {
38
- t.plan(2)
39
-
40
- const input = split()
41
-
42
- input.pipe(strcb(function (err, list) {
43
- t.error(err)
44
- t.deepEqual(list, ['hello', 'world', 'bye', 'world'])
45
- }))
46
-
47
- input.write('hello\nwor')
48
- input.write('ld\nbye\nwo')
49
- input.write('rld')
50
- input.end()
51
- })
52
-
53
- test('accumulate multiple writes', function (t) {
54
- t.plan(2)
55
-
56
- const input = split()
57
-
58
- input.pipe(strcb(function (err, list) {
59
- t.error(err)
60
- t.deepEqual(list, ['helloworld'])
61
- }))
62
-
63
- input.write('hello')
64
- input.write('world')
65
- input.end()
66
- })
67
-
68
- test('split using a custom string matcher', function (t) {
69
- t.plan(2)
70
-
71
- const input = split('~')
72
-
73
- input.pipe(strcb(function (err, list) {
74
- t.error(err)
75
- t.deepEqual(list, ['hello', 'world'])
76
- }))
77
-
78
- input.end('hello~world')
79
- })
80
-
81
- test('split using a custom regexp matcher', function (t) {
82
- t.plan(2)
83
-
84
- const input = split(/~/)
85
-
86
- input.pipe(strcb(function (err, list) {
87
- t.error(err)
88
- t.deepEqual(list, ['hello', 'world'])
89
- }))
90
-
91
- input.end('hello~world')
92
- })
93
-
94
- test('support an option argument', function (t) {
95
- t.plan(2)
96
-
97
- const input = split({ highWaterMark: 2 })
98
-
99
- input.pipe(strcb(function (err, list) {
100
- t.error(err)
101
- t.deepEqual(list, ['hello', 'world'])
102
- }))
103
-
104
- input.end('hello\nworld')
105
- })
106
-
107
- test('support a mapper function', function (t) {
108
- t.plan(2)
109
-
110
- const a = { a: '42' }
111
- const b = { b: '24' }
112
-
113
- const input = split(JSON.parse)
114
-
115
- input.pipe(objcb(function (err, list) {
116
- t.error(err)
117
- t.deepEqual(list, [a, b])
118
- }))
119
-
120
- input.write(JSON.stringify(a))
121
- input.write('\n')
122
- input.end(JSON.stringify(b))
123
- })
124
-
125
- test('split lines windows-style', function (t) {
126
- t.plan(2)
127
-
128
- const input = split()
129
-
130
- input.pipe(strcb(function (err, list) {
131
- t.error(err)
132
- t.deepEqual(list, ['hello', 'world'])
133
- }))
134
-
135
- input.end('hello\r\nworld')
136
- })
137
-
138
- test('splits a buffer', function (t) {
139
- t.plan(2)
140
-
141
- const input = split()
142
-
143
- input.pipe(strcb(function (err, list) {
144
- t.error(err)
145
- t.deepEqual(list, ['hello', 'world'])
146
- }))
147
-
148
- input.end(Buffer.from('hello\nworld'))
149
- })
150
-
151
- test('do not end on undefined', function (t) {
152
- t.plan(2)
153
-
154
- const input = split(function (line) { })
155
-
156
- input.pipe(strcb(function (err, list) {
157
- t.error(err)
158
- t.deepEqual(list, [])
159
- }))
160
-
161
- input.end(Buffer.from('hello\nworld'))
162
- })
163
-
164
- test('has destroy method', function (t) {
165
- t.plan(1)
166
-
167
- const input = split(function (line) { })
168
-
169
- input.on('close', function () {
170
- t.ok(true, 'close emitted')
171
- t.end()
172
- })
173
-
174
- input.destroy()
175
- })
176
-
177
- test('support custom matcher and mapper', function (t) {
178
- t.plan(4)
179
-
180
- const a = { a: '42' }
181
- const b = { b: '24' }
182
- const input = split('~', JSON.parse)
183
-
184
- t.equal(input.matcher, '~')
185
- t.equal(typeof input.mapper, 'function')
186
-
187
- input.pipe(objcb(function (err, list) {
188
- t.notOk(err, 'no errors')
189
- t.deepEqual(list, [a, b])
190
- }))
191
-
192
- input.write(JSON.stringify(a))
193
- input.write('~')
194
- input.end(JSON.stringify(b))
195
- })
196
-
197
- test('support custom matcher and options', function (t) {
198
- t.plan(6)
199
-
200
- const input = split('~', { highWaterMark: 1024 })
201
-
202
- t.equal(input.matcher, '~')
203
- t.equal(typeof input.mapper, 'function')
204
- t.equal(input._readableState.highWaterMark, 1024)
205
- t.equal(input._writableState.highWaterMark, 1024)
206
-
207
- input.pipe(strcb(function (err, list) {
208
- t.error(err)
209
- t.deepEqual(list, ['hello', 'world'])
210
- }))
211
-
212
- input.end('hello~world')
213
- })
214
-
215
- test('support mapper and options', function (t) {
216
- t.plan(6)
217
-
218
- const a = { a: '42' }
219
- const b = { b: '24' }
220
- const input = split(JSON.parse, { highWaterMark: 1024 })
221
-
222
- t.ok(input.matcher instanceof RegExp, 'matcher is RegExp')
223
- t.equal(typeof input.mapper, 'function')
224
- t.equal(input._readableState.highWaterMark, 1024)
225
- t.equal(input._writableState.highWaterMark, 1024)
226
-
227
- input.pipe(objcb(function (err, list) {
228
- t.error(err)
229
- t.deepEqual(list, [a, b])
230
- }))
231
-
232
- input.write(JSON.stringify(a))
233
- input.write('\n')
234
- input.end(JSON.stringify(b))
235
- })
236
-
237
- test('split utf8 chars', function (t) {
238
- t.plan(2)
239
-
240
- const input = split()
241
-
242
- input.pipe(strcb(function (err, list) {
243
- t.error(err)
244
- t.deepEqual(list, ['烫烫烫', '锟斤拷'])
245
- }))
246
-
247
- const buf = Buffer.from('烫烫烫\r\n锟斤拷', 'utf8')
248
- for (let i = 0; i < buf.length; ++i) {
249
- input.write(buf.slice(i, i + 1))
250
- }
251
- input.end()
252
- })
253
-
254
- test('split utf8 chars 2by2', function (t) {
255
- t.plan(2)
256
-
257
- const input = split()
258
-
259
- input.pipe(strcb(function (err, list) {
260
- t.error(err)
261
- t.deepEqual(list, ['烫烫烫', '烫烫烫'])
262
- }))
263
-
264
- const str = '烫烫烫\r\n烫烫烫'
265
- const buf = Buffer.from(str, 'utf8')
266
- for (let i = 0; i < buf.length; i += 2) {
267
- input.write(buf.slice(i, i + 2))
268
- }
269
- input.end()
270
- })
271
-
272
- test('split lines when the \n comes at the end of a chunk', function (t) {
273
- t.plan(2)
274
-
275
- const input = split()
276
-
277
- input.pipe(strcb(function (err, list) {
278
- t.error(err)
279
- t.deepEqual(list, ['hello', 'world'])
280
- }))
281
-
282
- input.write('hello\n')
283
- input.end('world')
284
- })
285
-
286
- test('truncated utf-8 char', function (t) {
287
- t.plan(2)
288
-
289
- const input = split()
290
-
291
- input.pipe(strcb(function (err, list) {
292
- t.error(err)
293
- t.deepEqual(list, ['烫' + Buffer.from('e7', 'hex').toString()])
294
- }))
295
-
296
- const str = '烫烫'
297
- const buf = Buffer.from(str, 'utf8')
298
-
299
- input.write(buf.slice(0, 3))
300
- input.end(buf.slice(3, 4))
301
- })
302
-
303
- test('maximum buffer limit', function (t) {
304
- t.plan(1)
305
-
306
- const input = split({ maxLength: 2 })
307
- input.on('error', function (err) {
308
- t.ok(err)
309
- })
310
-
311
- input.resume()
312
-
313
- input.write('hey')
314
- })
315
-
316
- test('readable highWaterMark', function (t) {
317
- const input = split()
318
- t.equal(input._readableState.highWaterMark, 16)
319
- t.end()
320
- })
321
-
322
- test('maxLength < chunk size', function (t) {
323
- t.plan(2)
324
-
325
- const input = split({ maxLength: 2 })
326
-
327
- input.pipe(strcb(function (err, list) {
328
- t.error(err)
329
- t.deepEqual(list, ['a', 'b'])
330
- }))
331
-
332
- input.end('a\nb')
333
- })
334
-
335
- test('maximum buffer limit w/skip', function (t) {
336
- t.plan(2)
337
-
338
- const input = split({ maxLength: 2, skipOverflow: true })
339
-
340
- input.pipe(strcb(function (err, list) {
341
- t.error(err)
342
- t.deepEqual(list, ['a', 'b', 'c'])
343
- }))
344
-
345
- input.write('a\n123')
346
- input.write('456')
347
- input.write('789\nb\nc')
348
- input.end()
349
- })
350
-
351
- test("don't modify the options object", function (t) {
352
- t.plan(2)
353
-
354
- const options = {}
355
- const input = split(options)
356
-
357
- input.pipe(strcb(function (err, list) {
358
- t.error(err)
359
- t.same(options, {})
360
- }))
361
-
362
- input.end()
363
- })
364
-
365
- test('mapper throws flush', function (t) {
366
- t.plan(1)
367
- const error = new Error()
368
- const input = split(function () {
369
- throw error
370
- })
371
-
372
- input.on('error', (err, list) => {
373
- t.same(err, error)
374
- })
375
- input.end('hello')
376
- })
377
-
378
- test('mapper throws on transform', function (t) {
379
- t.plan(1)
380
-
381
- const error = new Error()
382
- const input = split(function (l) {
383
- throw error
384
- })
385
-
386
- input.on('error', (err) => {
387
- t.same(err, error)
388
- })
389
- input.write('a')
390
- input.write('\n')
391
- input.end('b')
392
- })
393
-
394
- test('supports Symbol.split', function (t) {
395
- t.plan(2)
396
-
397
- const input = split({
398
- [Symbol.split] (str) {
399
- return str.split('~')
400
- }
401
- })
402
-
403
- input.pipe(strcb(function (err, list) {
404
- t.error(err)
405
- t.deepEqual(list, ['hello', 'world'])
406
- }))
407
-
408
- input.end('hello~world')
409
- })
@@ -1,17 +0,0 @@
1
- export type TerminalSize = {
2
- columns: number;
3
- rows: number;
4
- };
5
-
6
- /**
7
- Reliably get the terminal window size.
8
-
9
- @example
10
- ```
11
- import terminalSize from 'terminal-size';
12
-
13
- terminalSize();
14
- //=> {columns: 143, rows: 24}
15
- ```
16
- */
17
- export default function terminalSize(): TerminalSize;
@@ -1,139 +0,0 @@
1
- import process from 'node:process';
2
- import {execFileSync} from 'node:child_process';
3
- import fs from 'node:fs';
4
- import tty from 'node:tty';
5
-
6
- const defaultColumns = 80;
7
- const defaultRows = 24;
8
-
9
- const exec = (command, arguments_, {shell, env} = {}) =>
10
- execFileSync(command, arguments_, {
11
- encoding: 'utf8',
12
- stdio: ['ignore', 'pipe', 'ignore'],
13
- timeout: 500,
14
- shell,
15
- env,
16
- }).trim();
17
-
18
- const create = (columns, rows) => ({
19
- columns: Number.parseInt(columns, 10),
20
- rows: Number.parseInt(rows, 10),
21
- });
22
-
23
- const createIfNotDefault = (maybeColumns, maybeRows) => {
24
- const {columns, rows} = create(maybeColumns, maybeRows);
25
-
26
- if (Number.isNaN(columns) || Number.isNaN(rows)) {
27
- return;
28
- }
29
-
30
- if (columns === defaultColumns && rows === defaultRows) {
31
- return;
32
- }
33
-
34
- return {columns, rows};
35
- };
36
-
37
- const isForegroundProcess = () => {
38
- if (process.platform !== 'linux') {
39
- return true;
40
- }
41
-
42
- try {
43
- const statContents = fs.readFileSync('/proc/self/stat', 'utf8');
44
- const closingParenthesisIndex = statContents.lastIndexOf(') ');
45
-
46
- if (closingParenthesisIndex === -1) {
47
- return false;
48
- }
49
-
50
- const statFields = statContents.slice(closingParenthesisIndex + 2).trim().split(/\s+/);
51
- const processGroupId = Number.parseInt(statFields[2], 10);
52
- const foregroundProcessGroupId = Number.parseInt(statFields[5], 10);
53
-
54
- if (Number.isNaN(processGroupId) || Number.isNaN(foregroundProcessGroupId)) {
55
- return false;
56
- }
57
-
58
- if (foregroundProcessGroupId <= 0) {
59
- return false;
60
- }
61
-
62
- return processGroupId === foregroundProcessGroupId;
63
- } catch {
64
- return false;
65
- }
66
- };
67
-
68
- export default function terminalSize() {
69
- const {env, stdout, stderr} = process;
70
-
71
- if (stdout?.columns && stdout?.rows) {
72
- return create(stdout.columns, stdout.rows);
73
- }
74
-
75
- if (stderr?.columns && stderr?.rows) {
76
- return create(stderr.columns, stderr.rows);
77
- }
78
-
79
- // These values are static, so not the first choice.
80
- if (env.COLUMNS && env.LINES) {
81
- return create(env.COLUMNS, env.LINES);
82
- }
83
-
84
- const fallback = {
85
- columns: defaultColumns,
86
- rows: defaultRows,
87
- };
88
-
89
- if (process.platform === 'win32') {
90
- // We include `tput` for Windows users using Git Bash.
91
- return tput() ?? fallback;
92
- }
93
-
94
- if (process.platform === 'darwin') {
95
- return devTty() ?? tput() ?? fallback;
96
- }
97
-
98
- return devTty() ?? tput() ?? resize() ?? fallback;
99
- }
100
-
101
- const devTty = () => {
102
- try {
103
- // eslint-disable-next-line no-bitwise
104
- const flags = process.platform === 'darwin' ? fs.constants.O_EVTONLY | fs.constants.O_NONBLOCK : fs.constants.O_NONBLOCK;
105
- // eslint-disable-next-line new-cap
106
- const {columns, rows} = tty.WriteStream(fs.openSync('/dev/tty', flags));
107
- return {columns, rows};
108
- } catch {}
109
- };
110
-
111
- // On macOS, this only returns correct values when stdout is not redirected.
112
- const tput = () => {
113
- try {
114
- // `tput` requires the `TERM` environment variable to be set.
115
- const columns = exec('tput', ['cols'], {env: {TERM: 'dumb', ...process.env}});
116
- const rows = exec('tput', ['lines'], {env: {TERM: 'dumb', ...process.env}});
117
-
118
- if (columns && rows) {
119
- return createIfNotDefault(columns, rows);
120
- }
121
- } catch {}
122
- };
123
-
124
- // Only exists on Linux.
125
- const resize = () => {
126
- // `resize` is preferred as it works even when all file descriptors are redirected
127
- // https://linux.die.net/man/1/resize
128
- try {
129
- if (!isForegroundProcess()) {
130
- return;
131
- }
132
-
133
- const size = exec('resize', ['-u']).match(/\d+/g);
134
-
135
- if (size.length === 2) {
136
- return createIfNotDefault(size[0], size[1]);
137
- }
138
- } catch {}
139
- };
@@ -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,49 +0,0 @@
1
- {
2
- "name": "terminal-size",
3
- "version": "4.0.1",
4
- "description": "Reliably get the terminal window size (columns & rows)",
5
- "license": "MIT",
6
- "repository": "sindresorhus/terminal-size",
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
- "vendor"
29
- ],
30
- "keywords": [
31
- "terminal",
32
- "size",
33
- "console",
34
- "window",
35
- "width",
36
- "height",
37
- "columns",
38
- "rows",
39
- "lines",
40
- "tty",
41
- "redirected"
42
- ],
43
- "devDependencies": {
44
- "ava": "^5.3.1",
45
- "execa": "^8.0.1",
46
- "tsd": "^0.29.0",
47
- "xo": "^0.56.0"
48
- }
49
- }
@@ -1,32 +0,0 @@
1
- # terminal-size
2
-
3
- > Reliably get the terminal window size
4
-
5
- Because [`process.stdout.columns`](https://nodejs.org/api/tty.html#tty_writestream_columns) doesn't exist when run [non-interactively](http://www.tldp.org/LDP/abs/html/intandnonint.html), for example, in a child process or when piped. This module even works when all the TTY file descriptors are redirected!
6
-
7
- Confirmed working on macOS, Linux, and Windows.
8
-
9
- ## Install
10
-
11
- ```sh
12
- npm install terminal-size
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- import terminalSize from 'terminal-size';
19
-
20
- terminalSize();
21
- //=> {columns: 143, rows: 24}
22
- ```
23
-
24
- ## API
25
-
26
- ### terminalSize()
27
-
28
- Returns an `object` with `columns` and `rows` properties.
29
-
30
- ## Related
31
-
32
- - [terminal-size-cli](https://github.com/sindresorhus/terminal-size-cli) - CLI for this module