decocms 2.305.1 → 2.305.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 (221) hide show
  1. package/README.md +5 -5
  2. package/dist/client/assets/{AlertCircle-Br9ewHdT.js → AlertCircle-DMzVypio.js} +1 -1
  3. package/dist/client/assets/{ArrowNarrowLeft-DfAChrcB.js → ArrowNarrowLeft-BrDi0OP6.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-kwr6Olrh.js → ArrowUpRight-CffRTFwr.js} +1 -1
  5. package/dist/client/assets/{Check-BDdvLFkb.js → Check-Ce2zaI1y.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-CvaWFdv1.js → CheckCircle-D17Wk4_q.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-BPP53zSs.js → ChevronDown-DrATxf_L.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-BMEO9ter.js → ChevronRight-D_n1A1KD.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Blh5YuTb.js → ChevronUp-wzMtW3WF.js} +1 -1
  10. package/dist/client/assets/{Container-kSvRb_TI.js → Container-B9nOU3uH.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-DlNY9ok5.js → DotsVertical-CFgJEmVd.js} +1 -1
  12. package/dist/client/assets/{LinkExternal01-DS2oa6z_.js → LinkExternal01-CJuu5L5n.js} +1 -1
  13. package/dist/client/assets/{Lock01-e_YusQxH.js → Lock01-C0NTjdQ2.js} +1 -1
  14. package/dist/client/assets/{Palette-50x6cQyB.js → Palette-BqdFVWdR.js} +1 -1
  15. package/dist/client/assets/{Play-sOXcr7Am.js → Play-CpVaHTKa.js} +1 -1
  16. package/dist/client/assets/{Plus-DFCNKucG.js → Plus-rlgpPXdn.js} +1 -1
  17. package/dist/client/assets/{RefreshCcw01-ROHijjHE.js → RefreshCcw01-CjhD_64F.js} +1 -1
  18. package/dist/client/assets/{SearchMd-DIDMC0x8.js → SearchMd-DdqkiNaX.js} +1 -1
  19. package/dist/client/assets/{Settings02-CNGOY5wS.js → Settings02-BVGX612X.js} +1 -1
  20. package/dist/client/assets/{Shield01-DswPRV6t.js → Shield01-CSGiF6c-.js} +1 -1
  21. package/dist/client/assets/{Star01-DKwz3L6O.js → Star01-DXwrqMmG.js} +1 -1
  22. package/dist/client/assets/{Sun-DDtl0tTX.js → Sun-CICDmGiY.js} +1 -1
  23. package/dist/client/assets/{Tool01-CzKvFqBY.js → Tool01-BhvNB9zc.js} +1 -1
  24. package/dist/client/assets/{Trash01-D7BNCUuW.js → Trash01-DC-0vlKK.js} +1 -1
  25. package/dist/client/assets/{User01-C5o7vY8e.js → User01-B-bRCO2n.js} +1 -1
  26. package/dist/client/assets/{Users03-BHkiN8pv.js → Users03-Bgb4m-rj.js} +1 -1
  27. package/dist/client/assets/{X-BTgbOlZp.js → X-CA0yXZSK.js} +1 -1
  28. package/dist/client/assets/{XCircle-GkBI4OoY.js → XCircle-C_-dxsPx.js} +1 -1
  29. package/dist/client/assets/{XClose-1aeyb_5i.js → XClose-1VJ455H5.js} +1 -1
  30. package/dist/client/assets/{Zap-BV4QuHX8.js → Zap-CT1x4GyR.js} +1 -1
  31. package/dist/client/assets/{ZapSquare-CE4Xi6jK.js → ZapSquare-B3dm6KZf.js} +1 -1
  32. package/dist/client/assets/{accordion-Dc2wrek1.js → accordion-DlRvrND8.js} +1 -1
  33. package/dist/client/assets/{agent-icon-Cc0OK5HW.js → agent-icon-Aidj_nbT.js} +1 -1
  34. package/dist/client/assets/{agents-list-Bm5Akk_I.js → agents-list-h-PZw07V.js} +1 -1
  35. package/dist/client/assets/ai-providers-hlFksDgI.js +1 -0
  36. package/dist/client/assets/{alert-dialog-BcOhLeAS.js → alert-dialog-DHHb9UES.js} +1 -1
  37. package/dist/client/assets/{auth-catchall-Bcv_GEN6.js → auth-catchall-CMI0fqEP.js} +1 -1
  38. package/dist/client/assets/{automation-list-row-pzX08kIl.js → automation-list-row-Dw0awDhm.js} +1 -1
  39. package/dist/client/assets/{automations-CkpX1bDz.js → automations-DgSOIlaP.js} +1 -1
  40. package/dist/client/assets/{avatar-Bb_UKexv.js → avatar-C4W3LF9U.js} +1 -1
  41. package/dist/client/assets/{badge-CtLXPOql.js → badge-CKCe4xFX.js} +1 -1
  42. package/dist/client/assets/{brand-context-CoQwouQo.js → brand-context-CFjUKEZZ.js} +1 -1
  43. package/dist/client/assets/{card-9KSBCULz.js → card-DvnenXSp.js} +1 -1
  44. package/dist/client/assets/{chat-context-DpSSbPpF.js → chat-context-DQ9F_zYD.js} +1 -1
  45. package/dist/client/assets/{checkbox-BhxVCV69.js → checkbox-CpdjRPxz.js} +1 -1
  46. package/dist/client/assets/{collection-detail-DrhrluPo.js → collection-detail-D3e0mmMi.js} +1 -1
  47. package/dist/client/assets/{collection-display-button-iLTcoZ8v.js → collection-display-button-DYp1JCHl.js} +1 -1
  48. package/dist/client/assets/{collection-search-BjYBs0ij.js → collection-search-C-8aWgKY.js} +1 -1
  49. package/dist/client/assets/{collection-search-BVAD_8E4.js → collection-search-D3JPMk2G.js} +1 -1
  50. package/dist/client/assets/{collection-table-wrapper-BA1NNqwU.js → collection-table-wrapper-hKs78OI7.js} +1 -1
  51. package/dist/client/assets/{collection-tabs-Xy0nDeMn.js → collection-tabs-DIzWCpJi.js} +1 -1
  52. package/dist/client/assets/{collections-C2uKELRr.js → collections-mK3tmeo_.js} +1 -1
  53. package/dist/client/assets/{command-BaoEIiCq.js → command-CqNHzNfW.js} +1 -1
  54. package/dist/client/assets/{connection-card-DO6bL5Cc.js → connection-card-B9jp4WAJ.js} +1 -1
  55. package/dist/client/assets/{connection-detail-Bnk5mfLJ.js → connection-detail-O5xxE160.js} +1 -1
  56. package/dist/client/assets/{connection-form-helpers-BuIlPwrP.js → connection-form-helpers-DGIGa0jl.js} +1 -1
  57. package/dist/client/assets/{connections-CkFp7lWx.js → connections-CPceMglQ.js} +1 -1
  58. package/dist/client/assets/{constants-BBgzLWSw.js → constants-BJbz7WCF.js} +1 -1
  59. package/dist/client/assets/{constants-D0hFkWmt.js → constants-DlDcmvhJ.js} +1 -1
  60. package/dist/client/assets/{dialog-D-8iKYyL.js → dialog-CMvXkbcK.js} +1 -1
  61. package/dist/client/assets/{domain-settings-BJx1AelS.js → domain-settings-D94uqHZi.js} +1 -1
  62. package/dist/client/assets/{drawer-iSQ1TA5J.js → drawer-DB3e3BTg.js} +1 -1
  63. package/dist/client/assets/{dropdown-menu-Cqo8Czah.js → dropdown-menu-BgfQQHCp.js} +1 -1
  64. package/dist/client/assets/{dynamic-plugin-layout-9QCXXZSv.js → dynamic-plugin-layout-CugRGU7x.js} +1 -1
  65. package/dist/client/assets/{empty-state-DJhaCN6r.js → empty-state-BloqPoX9.js} +1 -1
  66. package/dist/client/assets/{empty-state-Bi8xfifP.js → empty-state-Cr_Sv9jS.js} +1 -1
  67. package/dist/client/assets/{extract-connection-data-BoZTN4ct.js → extract-connection-data-Cp7JciHC.js} +1 -1
  68. package/dist/client/assets/{features-D4XsJcYn.js → features-DQcaVbot.js} +1 -1
  69. package/dist/client/assets/{form-CtqIjLmm.js → form-ruyF-qzE.js} +1 -1
  70. package/dist/client/assets/{general-BmiXpGpO.js → general-k-j41zoM.js} +1 -1
  71. package/dist/client/assets/{index-mqxitPxm.js → index-2zpbfeao.js} +1 -1
  72. package/dist/client/assets/{index-COWwoaag.js → index-B6Qwj9ip.js} +1 -1
  73. package/dist/client/assets/{index-BR5R8reE.js → index-BZG21hYr.js} +1 -1
  74. package/dist/client/assets/{index-r9M0EnR_.js → index-BrlUjE-e.js} +3 -3
  75. package/dist/client/assets/index-BwlTBk4D.js +1 -0
  76. package/dist/client/assets/{index-Cb6Wqswz.js → index-C27CjGg7.js} +1 -1
  77. package/dist/client/assets/{index-BE78uXnk.js → index-C8PfOV9c.js} +1 -1
  78. package/dist/client/assets/{index-CpmjPXU0.js → index-CghtC7iY.js} +1 -1
  79. package/dist/client/assets/{index-BddtkUN5.js → index-CpASz2l8.js} +1 -1
  80. package/dist/client/assets/{index-DpyzImMn.js → index-CvjZRJAq.js} +1 -1
  81. package/dist/client/assets/{index-CigwZVFo.js → index-DUvCyy06.js} +1 -1
  82. package/dist/client/assets/{index-DLznuG2S.js → index-DWar01dh.js} +1 -1
  83. package/dist/client/assets/{index-BetgZtTA.js → index-DXgWutpH.js} +1 -1
  84. package/dist/client/assets/{index-CdGladh1.js → index-DbwpM0oT.js} +1 -1
  85. package/dist/client/assets/{index-CNq3A1fb.js → index-QJkyRpKl.js} +1 -1
  86. package/dist/client/assets/{index-DRcAHhaZ.js → index-Qc-HM-3V.js} +2 -2
  87. package/dist/client/assets/{infiniteQueryObserver-BGG1V2SW.js → infiniteQueryObserver-CNdVc6Pq.js} +1 -1
  88. package/dist/client/assets/{input-DZM-sZUE.js → input-DVKZFl3m.js} +1 -1
  89. package/dist/client/assets/{integration-icon-kCK5G0hc.js → integration-icon-Dvo8MK78.js} +1 -1
  90. package/dist/client/assets/{label-tgV3YGrK.js → label-Ddv1lEVo.js} +1 -1
  91. package/dist/client/assets/{layout-DqQ9Ilsl.js → layout-CfRuPQpD.js} +1 -1
  92. package/dist/client/assets/{lean-canvas-recruit-modal-CC2l0iFS.js → lean-canvas-recruit-modal-CZwn_x-Z.js} +1 -1
  93. package/dist/client/assets/{login-DH2jR76t.js → login-CfKhDhQu.js} +1 -1
  94. package/dist/client/assets/{members-xakt_nq_.js → members-INSx14IN.js} +1 -1
  95. package/dist/client/assets/{monaco-editor-D0NlB5-P.js → monaco-editor-DHBFS1Nz.js} +1 -1
  96. package/dist/client/assets/{monitoring-stats-row-BCYL3TVR.js → monitoring-stats-row-nN00-ahk.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-CHbPqwkB.js → oauth-callback-BHNFQm9G.js} +1 -1
  98. package/dist/client/assets/{oauth-callback-ai-provider-CplqstnV.js → oauth-callback-ai-provider-kDr85b4j.js} +1 -1
  99. package/dist/client/assets/{onboarding-DuPaOSsv.js → onboarding-DayeILgQ.js} +1 -1
  100. package/dist/client/assets/{org-layout-C7TZf2Jg.js → org-layout-B7tDIjls.js} +1 -1
  101. package/dist/client/assets/{org-plugin-layout-ytui8nvZ.js → org-plugin-layout-DijtR-Yn.js} +1 -1
  102. package/dist/client/assets/{pair-n9NIJPmt.js → pair-BTg5U2i_.js} +1 -1
  103. package/dist/client/assets/{plugin-empty-state-CfM59nCo.js → plugin-empty-state-9EVNRwqH.js} +1 -1
  104. package/dist/client/assets/{plugin-header-NjqXhQtY.js → plugin-header-CCLzoupo.js} +1 -1
  105. package/dist/client/assets/{plugin-layout-CNQvsyPi.js → plugin-layout-COwnJfBo.js} +1 -1
  106. package/dist/client/assets/{popover-DqtUnTy9.js → popover-FANYiDWd.js} +1 -1
  107. package/dist/client/assets/{profile-DR5MZQYT.js → profile-BUQJJNtu.js} +1 -1
  108. package/dist/client/assets/{project-app-view-CxUipFcI.js → project-app-view-CZmIevtW.js} +1 -1
  109. package/dist/client/assets/registry-Da4K44Xl.js +2 -0
  110. package/dist/client/assets/{registry-layout-Bgcp4P6K.js → registry-layout-CQHrnVlQ.js} +1 -1
  111. package/dist/client/assets/{required-auth-layout-D_ctViyf.js → required-auth-layout-BAyE2y-F.js} +1 -1
  112. package/dist/client/assets/{reset-password-D4lmEYTa.js → reset-password-Dj4RoKKI.js} +1 -1
  113. package/dist/client/assets/{roles-CWsuEaZG.js → roles-BLdL9t1d.js} +1 -1
  114. package/dist/client/assets/{scroll-area-By7jyUhV.js → scroll-area-C_N1tWNB.js} +1 -1
  115. package/dist/client/assets/{search-input-Bc2GlzPf.js → search-input-oOemXj8U.js} +1 -1
  116. package/dist/client/assets/{select-GU1JgcQ8.js → select-BZ8Wc1K2.js} +1 -1
  117. package/dist/client/assets/{select-model-Eeva0uff.js → select-model-Dxld4BD0.js} +1 -1
  118. package/dist/client/assets/{settings-layout-Czl6BZ2k.js → settings-layout-Db_7efbC.js} +1 -1
  119. package/dist/client/assets/{settings-section-Bm0E9Bam.js → settings-section-ylY0I5Aj.js} +1 -1
  120. package/dist/client/assets/{shell-layout-5q7_gZ4N.js → shell-layout-BS0iP_zg.js} +1 -1
  121. package/dist/client/assets/{skeleton-B-naR4Ue.js → skeleton-whDLNRvh.js} +1 -1
  122. package/dist/client/assets/{sso-CQ_IeGcT.js → sso-yKSnL6cT.js} +1 -1
  123. package/dist/client/assets/{store-Cx374GVe.js → store-DVfL7GG2.js} +1 -1
  124. package/dist/client/assets/store-registry-BGm95aFQ.js +2 -0
  125. package/dist/client/assets/{switch-svOIXPFQ.js → switch-CoU4JLeW.js} +1 -1
  126. package/dist/client/assets/{table-CiWJpXWr.js → table-CWTAYJ6R.js} +1 -1
  127. package/dist/client/assets/{tabs-CQDIgfHu.js → tabs-BK4O-4QH.js} +1 -1
  128. package/dist/client/assets/{task-status-D2H9p4od.js → task-status-CrVRLNAn.js} +1 -1
  129. package/dist/client/assets/{textarea-CtQZOqL1.js → textarea-DI97iX9T.js} +1 -1
  130. package/dist/client/assets/{toggle-group-DnRsv6Tz.js → toggle-group-BWfFiqCs.js} +1 -1
  131. package/dist/client/assets/{tools-list-DZbTEL-t.js → tools-list-C7QpB8eo.js} +1 -1
  132. package/dist/client/assets/{tooltip-UFl_p-Yt.js → tooltip-CGOE-2qV.js} +1 -1
  133. package/dist/client/assets/{types-C2HWQgQd.js → types-BELLiI8t.js} +1 -1
  134. package/dist/client/assets/{use-ai-providers-B-rgDBoR.js → use-ai-providers-6wi_VCIQ.js} +1 -1
  135. package/dist/client/assets/{use-collections-THE_UO2l.js → use-collections-VMVmbDwC.js} +1 -1
  136. package/dist/client/assets/{use-connection-DujrbCZx.js → use-connection-Bs0XMRE_.js} +1 -1
  137. package/dist/client/assets/{use-copy-CxCKKWo7.js → use-copy-EgoJUqWz.js} +1 -1
  138. package/dist/client/assets/{use-create-virtual-mcp-Dj-60SI2.js → use-create-virtual-mcp-A4WarYTW.js} +1 -1
  139. package/dist/client/assets/{use-debounced-autosave-CPg8W5oz.js → use-debounced-autosave-Dte_kAEO.js} +1 -1
  140. package/dist/client/assets/{use-decopilot-events-Cjc1o1Nu.js → use-decopilot-events-Bvp1pSkJ.js} +1 -1
  141. package/dist/client/assets/{use-delete-connection-CN1nCcIJ.js → use-delete-connection-D0RH1aQq.js} +1 -1
  142. package/dist/client/assets/{use-infinite-scroll-CKzLBp1w.js → use-infinite-scroll-Bg90tKAp.js} +1 -1
  143. package/dist/client/assets/{use-list-state-WnAz6TY1.js → use-list-state-Dkv7POhH.js} +1 -1
  144. package/dist/client/assets/{use-mcp-tools-BeS0ssuN.js → use-mcp-tools-CDG9yfix.js} +1 -1
  145. package/dist/client/assets/{use-members-3B2IEyuj.js → use-members-Bf9_euWt.js} +1 -1
  146. package/dist/client/assets/{use-navigate-to-agent-Dw9ITfQX.js → use-navigate-to-agent-DeYPLoEJ.js} +1 -1
  147. package/dist/client/assets/{use-org-auth-client-DnkEDRTk.js → use-org-auth-client-CpJqPVuH.js} +1 -1
  148. package/dist/client/assets/{use-org-sso-CN15B3wE.js → use-org-sso-GPJYud0h.js} +1 -1
  149. package/dist/client/assets/{use-organization-roles-qN1PRVvQ.js → use-organization-roles-D9esIXeR.js} +1 -1
  150. package/dist/client/assets/{use-organization-settings-RqyZhOuo.js → use-organization-settings-C7zflGqs.js} +1 -1
  151. package/dist/client/assets/{use-registry-connections-BE0aFTI1.js → use-registry-connections-B1vXrR3c.js} +1 -1
  152. package/dist/client/assets/{use-status-sounds-DkqBbPSS.js → use-status-sounds-Dlkg0R7f.js} +1 -1
  153. package/dist/client/assets/{use-tasks-DsH6cZRl.js → use-tasks-CKK53Yi7.js} +1 -1
  154. package/dist/client/assets/{use-view-mode-DbO7_qIE.js → use-view-mode-WSdAEAZS.js} +1 -1
  155. package/dist/client/assets/{use-virtual-mcp-DIBjQz5k.js → use-virtual-mcp-C9_YL7kD.js} +1 -1
  156. package/dist/client/assets/useInfiniteQuery-BthTp29S.js +1 -0
  157. package/dist/client/assets/useSuspenseInfiniteQuery-5Axxf4Tp.js +1 -0
  158. package/dist/client/assets/{user-D3SI9inq.js → user-BMeM8_Kh.js} +1 -1
  159. package/dist/client/assets/{view-mode-toggle-C1b_D_--.js → view-mode-toggle-C9wA8R9s.js} +1 -1
  160. package/dist/client/assets/{workflow-bf9m4gQp.js → workflow-CoAUdsHF.js} +1 -1
  161. package/dist/client/assets/workflow-detail-Dw2RzGR4.js +1 -0
  162. package/dist/client/index.html +1 -1
  163. package/dist/server/cli.js +1 -1
  164. package/dist/server/node_modules/environment/index.d.ts +74 -0
  165. package/dist/server/node_modules/environment/index.js +47 -0
  166. package/dist/server/node_modules/environment/license +9 -0
  167. package/dist/server/node_modules/environment/package.json +74 -0
  168. package/dist/server/node_modules/environment/readme.md +94 -0
  169. package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
  170. package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
  171. package/dist/server/node_modules/escape-string-regexp/license +9 -0
  172. package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
  173. package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
  174. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  175. package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
  176. package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
  177. package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
  178. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
  179. package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
  180. package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
  181. package/dist/server/node_modules/is-unicode-supported/license +9 -0
  182. package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
  183. package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
  184. package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
  185. package/dist/server/node_modules/mimic-fn/index.js +13 -0
  186. package/dist/server/node_modules/mimic-fn/license +9 -0
  187. package/dist/server/node_modules/mimic-fn/package.json +42 -0
  188. package/dist/server/node_modules/mimic-fn/readme.md +69 -0
  189. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  190. package/dist/server/node_modules/pg-int8/README.md +16 -0
  191. package/dist/server/node_modules/pg-int8/index.js +100 -0
  192. package/dist/server/node_modules/pg-int8/package.json +24 -0
  193. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  194. package/dist/server/node_modules/postgres-array/index.js +97 -0
  195. package/dist/server/node_modules/postgres-array/license +21 -0
  196. package/dist/server/node_modules/postgres-array/package.json +35 -0
  197. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  198. package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
  199. package/dist/server/node_modules/restore-cursor/index.js +11 -0
  200. package/dist/server/node_modules/restore-cursor/license +9 -0
  201. package/dist/server/node_modules/restore-cursor/package.json +55 -0
  202. package/dist/server/node_modules/restore-cursor/readme.md +31 -0
  203. package/dist/server/node_modules/split2/LICENSE +13 -0
  204. package/dist/server/node_modules/split2/README.md +85 -0
  205. package/dist/server/node_modules/split2/bench.js +27 -0
  206. package/dist/server/node_modules/split2/index.js +141 -0
  207. package/dist/server/node_modules/split2/package.json +39 -0
  208. package/dist/server/node_modules/split2/test.js +409 -0
  209. package/dist/server/node_modules/string-width/index.d.ts +39 -0
  210. package/dist/server/node_modules/string-width/index.js +82 -0
  211. package/dist/server/node_modules/string-width/license +9 -0
  212. package/dist/server/node_modules/string-width/package.json +64 -0
  213. package/dist/server/node_modules/string-width/readme.md +66 -0
  214. package/package.json +1 -1
  215. package/dist/client/assets/ai-providers-BTHVSznc.js +0 -1
  216. package/dist/client/assets/index-DR3jGuDX.js +0 -1
  217. package/dist/client/assets/registry-D_qBGD1h.js +0 -2
  218. package/dist/client/assets/store-registry-BxAYDZYi.js +0 -2
  219. package/dist/client/assets/useInfiniteQuery-B3MVtmJM.js +0 -1
  220. package/dist/client/assets/useSuspenseInfiniteQuery-BCYthwLz.js +0 -1
  221. package/dist/client/assets/workflow-detail-_fTRA7hJ.js +0 -1
@@ -0,0 +1,97 @@
1
+ 'use strict'
2
+
3
+ exports.parse = function (source, transform) {
4
+ return new ArrayParser(source, transform).parse()
5
+ }
6
+
7
+ class ArrayParser {
8
+ constructor (source, transform) {
9
+ this.source = source
10
+ this.transform = transform || identity
11
+ this.position = 0
12
+ this.entries = []
13
+ this.recorded = []
14
+ this.dimension = 0
15
+ }
16
+
17
+ isEof () {
18
+ return this.position >= this.source.length
19
+ }
20
+
21
+ nextCharacter () {
22
+ var character = this.source[this.position++]
23
+ if (character === '\\') {
24
+ return {
25
+ value: this.source[this.position++],
26
+ escaped: true
27
+ }
28
+ }
29
+ return {
30
+ value: character,
31
+ escaped: false
32
+ }
33
+ }
34
+
35
+ record (character) {
36
+ this.recorded.push(character)
37
+ }
38
+
39
+ newEntry (includeEmpty) {
40
+ var entry
41
+ if (this.recorded.length > 0 || includeEmpty) {
42
+ entry = this.recorded.join('')
43
+ if (entry === 'NULL' && !includeEmpty) {
44
+ entry = null
45
+ }
46
+ if (entry !== null) entry = this.transform(entry)
47
+ this.entries.push(entry)
48
+ this.recorded = []
49
+ }
50
+ }
51
+
52
+ consumeDimensions () {
53
+ if (this.source[0] === '[') {
54
+ while (!this.isEof()) {
55
+ var char = this.nextCharacter()
56
+ if (char.value === '=') break
57
+ }
58
+ }
59
+ }
60
+
61
+ parse (nested) {
62
+ var character, parser, quote
63
+ this.consumeDimensions()
64
+ while (!this.isEof()) {
65
+ character = this.nextCharacter()
66
+ if (character.value === '{' && !quote) {
67
+ this.dimension++
68
+ if (this.dimension > 1) {
69
+ parser = new ArrayParser(this.source.substr(this.position - 1), this.transform)
70
+ this.entries.push(parser.parse(true))
71
+ this.position += parser.position - 2
72
+ }
73
+ } else if (character.value === '}' && !quote) {
74
+ this.dimension--
75
+ if (!this.dimension) {
76
+ this.newEntry()
77
+ if (nested) return this.entries
78
+ }
79
+ } else if (character.value === '"' && !character.escaped) {
80
+ if (quote) this.newEntry(true)
81
+ quote = !quote
82
+ } else if (character.value === ',' && !quote) {
83
+ this.newEntry()
84
+ } else {
85
+ this.record(character.value)
86
+ }
87
+ }
88
+ if (this.dimension !== 0) {
89
+ throw new Error('array dimension not balanced')
90
+ }
91
+ return this.entries
92
+ }
93
+ }
94
+
95
+ function identity (value) {
96
+ return value
97
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "postgres-array",
3
+ "main": "index.js",
4
+ "version": "2.0.0",
5
+ "description": "Parse postgres array columns",
6
+ "license": "MIT",
7
+ "repository": "bendrucker/postgres-array",
8
+ "author": {
9
+ "name": "Ben Drucker",
10
+ "email": "bvdrucker@gmail.com",
11
+ "url": "bendrucker.me"
12
+ },
13
+ "engines": {
14
+ "node": ">=4"
15
+ },
16
+ "scripts": {
17
+ "test": "standard && tape test.js"
18
+ },
19
+ "types": "index.d.ts",
20
+ "keywords": [
21
+ "postgres",
22
+ "array",
23
+ "parser"
24
+ ],
25
+ "dependencies": {},
26
+ "devDependencies": {
27
+ "standard": "^12.0.1",
28
+ "tape": "^4.0.0"
29
+ },
30
+ "files": [
31
+ "index.js",
32
+ "index.d.ts",
33
+ "readme.md"
34
+ ]
35
+ }
@@ -0,0 +1,43 @@
1
+ # postgres-array [![Build Status](https://travis-ci.org/bendrucker/postgres-array.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-array)
2
+
3
+ > Parse postgres array columns
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install --save postgres-array
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ var postgresArray = require('postgres-array')
17
+
18
+ postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
19
+ //=> [1, 2, 3]
20
+ ```
21
+
22
+ ## API
23
+
24
+ #### `parse(input, [transform])` -> `array`
25
+
26
+ ##### input
27
+
28
+ *Required*
29
+ Type: `string`
30
+
31
+ A Postgres array string.
32
+
33
+ ##### transform
34
+
35
+ Type: `function`
36
+ Default: `identity`
37
+
38
+ A function that transforms non-null values inserted into the array.
39
+
40
+
41
+ ## License
42
+
43
+ MIT © [Ben Drucker](http://bendrucker.me)
@@ -0,0 +1,11 @@
1
+ /**
2
+ Gracefully restore the CLI cursor on exit.
3
+
4
+ @example
5
+ ```
6
+ import restoreCursor from 'restore-cursor';
7
+
8
+ restoreCursor();
9
+ ```
10
+ */
11
+ export default function restoreCursor(): void;
@@ -0,0 +1,11 @@
1
+ import process from 'node:process';
2
+ import onetime from 'onetime';
3
+ import signalExit from 'signal-exit';
4
+
5
+ const restoreCursor = onetime(() => {
6
+ signalExit(() => {
7
+ process.stderr.write('\u001B[?25h');
8
+ }, {alwaysLast: true});
9
+ });
10
+
11
+ export default restoreCursor;
@@ -0,0 +1,9 @@
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.
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "restore-cursor",
3
+ "version": "4.0.0",
4
+ "description": "Gracefully restore the CLI cursor on exit",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/restore-cursor",
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": "./index.js",
15
+ "engines": {
16
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
17
+ },
18
+ "scripts": {
19
+ "test": "xo && tsd"
20
+ },
21
+ "files": [
22
+ "index.js",
23
+ "index.d.ts"
24
+ ],
25
+ "keywords": [
26
+ "exit",
27
+ "quit",
28
+ "process",
29
+ "graceful",
30
+ "shutdown",
31
+ "sigterm",
32
+ "sigint",
33
+ "terminate",
34
+ "kill",
35
+ "stop",
36
+ "cli",
37
+ "cursor",
38
+ "ansi",
39
+ "show",
40
+ "term",
41
+ "terminal",
42
+ "console",
43
+ "tty",
44
+ "shell",
45
+ "command-line"
46
+ ],
47
+ "dependencies": {
48
+ "onetime": "^5.1.0",
49
+ "signal-exit": "^3.0.2"
50
+ },
51
+ "devDependencies": {
52
+ "tsd": "^0.7.2",
53
+ "xo": "^0.24.0"
54
+ }
55
+ }
@@ -0,0 +1,31 @@
1
+ # restore-cursor
2
+
3
+ > Gracefully restore the CLI cursor on exit
4
+
5
+ Prevent the cursor you've hidden interactively from remaining hidden if the process crashes.
6
+
7
+ ## Install
8
+
9
+ ```
10
+ $ npm install restore-cursor
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ import restoreCursor from 'restore-cursor';
17
+
18
+ restoreCursor();
19
+ ```
20
+
21
+ ---
22
+
23
+ <div align="center">
24
+ <b>
25
+ <a href="https://tidelift.com/subscription/pkg/npm-restore-cursor?utm_source=npm-restore-cursor&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
26
+ </b>
27
+ <br>
28
+ <sub>
29
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
30
+ </sub>
31
+ </div>
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2014-2018, Matteo Collina <hello@matteocollina.com>
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted, provided that the above
5
+ copyright notice and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
13
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,85 @@
1
+ # Split2(matcher, mapper, options)
2
+
3
+ ![ci](https://github.com/mcollina/split2/workflows/ci/badge.svg)
4
+
5
+ Break up a stream and reassemble it so that each line is a chunk.
6
+ `split2` is inspired by [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) module,
7
+ and it is totally API compatible with it.
8
+ However, it is based on Node.js core [`Transform`](https://nodejs.org/api/stream.html#stream_new_stream_transform_options).
9
+
10
+ `matcher` may be a `String`, or a `RegExp`. Example, read every line in a file ...
11
+
12
+ ``` js
13
+ fs.createReadStream(file)
14
+ .pipe(split2())
15
+ .on('data', function (line) {
16
+ //each chunk now is a separate line!
17
+ })
18
+
19
+ ```
20
+
21
+ `split` takes the same arguments as `string.split` except it defaults to '/\r?\n/', and the optional `limit` paremeter is ignored.
22
+ [String#split](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split)
23
+
24
+ `split` takes an optional options object on it's third argument, which
25
+ is directly passed as a
26
+ [Transform](https://nodejs.org/api/stream.html#stream_new_stream_transform_options)
27
+ option.
28
+
29
+ Additionally, the `.maxLength` and `.skipOverflow` options are implemented, which set limits on the internal
30
+ buffer size and the stream's behavior when the limit is exceeded. There is no limit unless `maxLength` is set. When
31
+ the internal buffer size exceeds `maxLength`, the stream emits an error by default. You may also set `skipOverflow` to
32
+ true to suppress the error and instead skip past any lines that cause the internal buffer to exceed `maxLength`.
33
+
34
+ Calling `.destroy` will make the stream emit `close`. Use this to perform cleanup logic
35
+
36
+ ``` js
37
+ var splitFile = function(filename) {
38
+ var file = fs.createReadStream(filename)
39
+
40
+ return file
41
+ .pipe(split2())
42
+ .on('close', function() {
43
+ // destroy the file stream in case the split stream was destroyed
44
+ file.destroy()
45
+ })
46
+ }
47
+
48
+ var stream = splitFile('my-file.txt')
49
+
50
+ stream.destroy() // will destroy the input file stream
51
+ ```
52
+
53
+ # NDJ - Newline Delimited Json
54
+
55
+ `split2` accepts a function which transforms each line.
56
+
57
+ ``` js
58
+ fs.createReadStream(file)
59
+ .pipe(split2(JSON.parse))
60
+ .on('data', function (obj) {
61
+ //each chunk now is a js object
62
+ })
63
+ .on("error", function(error) {
64
+ //handling parsing errors
65
+ })
66
+ ```
67
+
68
+ However, in [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) the mapper
69
+ is wrapped in a try-catch, while here it is not: if your parsing logic can throw, wrap it yourself. Otherwise, you can also use the stream error handling when mapper function throw.
70
+
71
+ # License
72
+
73
+ Copyright (c) 2014-2021, Matteo Collina <hello@matteocollina.com>
74
+
75
+ Permission to use, copy, modify, and/or distribute this software for any
76
+ purpose with or without fee is hereby granted, provided that the above
77
+ copyright notice and this permission notice appear in all copies.
78
+
79
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
80
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
81
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
82
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
83
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
84
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
85
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,27 @@
1
+ 'use strict'
2
+
3
+ const split = require('./')
4
+ const bench = require('fastbench')
5
+ const binarySplit = require('binary-split')
6
+ const fs = require('fs')
7
+
8
+ function benchSplit (cb) {
9
+ fs.createReadStream('package.json')
10
+ .pipe(split())
11
+ .on('end', cb)
12
+ .resume()
13
+ }
14
+
15
+ function benchBinarySplit (cb) {
16
+ fs.createReadStream('package.json')
17
+ .pipe(binarySplit())
18
+ .on('end', cb)
19
+ .resume()
20
+ }
21
+
22
+ const run = bench([
23
+ benchSplit,
24
+ benchBinarySplit
25
+ ], 10000)
26
+
27
+ run(run)
@@ -0,0 +1,141 @@
1
+ /*
2
+ Copyright (c) 2014-2021, Matteo Collina <hello@matteocollina.com>
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted, provided that the above
6
+ copyright notice and this permission notice appear in all copies.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
14
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
+ */
16
+
17
+ 'use strict'
18
+
19
+ const { Transform } = require('stream')
20
+ const { StringDecoder } = require('string_decoder')
21
+ const kLast = Symbol('last')
22
+ const kDecoder = Symbol('decoder')
23
+
24
+ function transform (chunk, enc, cb) {
25
+ let list
26
+ if (this.overflow) { // Line buffer is full. Skip to start of next line.
27
+ const buf = this[kDecoder].write(chunk)
28
+ list = buf.split(this.matcher)
29
+
30
+ if (list.length === 1) return cb() // Line ending not found. Discard entire chunk.
31
+
32
+ // Line ending found. Discard trailing fragment of previous line and reset overflow state.
33
+ list.shift()
34
+ this.overflow = false
35
+ } else {
36
+ this[kLast] += this[kDecoder].write(chunk)
37
+ list = this[kLast].split(this.matcher)
38
+ }
39
+
40
+ this[kLast] = list.pop()
41
+
42
+ for (let i = 0; i < list.length; i++) {
43
+ try {
44
+ push(this, this.mapper(list[i]))
45
+ } catch (error) {
46
+ return cb(error)
47
+ }
48
+ }
49
+
50
+ this.overflow = this[kLast].length > this.maxLength
51
+ if (this.overflow && !this.skipOverflow) {
52
+ cb(new Error('maximum buffer reached'))
53
+ return
54
+ }
55
+
56
+ cb()
57
+ }
58
+
59
+ function flush (cb) {
60
+ // forward any gibberish left in there
61
+ this[kLast] += this[kDecoder].end()
62
+
63
+ if (this[kLast]) {
64
+ try {
65
+ push(this, this.mapper(this[kLast]))
66
+ } catch (error) {
67
+ return cb(error)
68
+ }
69
+ }
70
+
71
+ cb()
72
+ }
73
+
74
+ function push (self, val) {
75
+ if (val !== undefined) {
76
+ self.push(val)
77
+ }
78
+ }
79
+
80
+ function noop (incoming) {
81
+ return incoming
82
+ }
83
+
84
+ function split (matcher, mapper, options) {
85
+ // Set defaults for any arguments not supplied.
86
+ matcher = matcher || /\r?\n/
87
+ mapper = mapper || noop
88
+ options = options || {}
89
+
90
+ // Test arguments explicitly.
91
+ switch (arguments.length) {
92
+ case 1:
93
+ // If mapper is only argument.
94
+ if (typeof matcher === 'function') {
95
+ mapper = matcher
96
+ matcher = /\r?\n/
97
+ // If options is only argument.
98
+ } else if (typeof matcher === 'object' && !(matcher instanceof RegExp) && !matcher[Symbol.split]) {
99
+ options = matcher
100
+ matcher = /\r?\n/
101
+ }
102
+ break
103
+
104
+ case 2:
105
+ // If mapper and options are arguments.
106
+ if (typeof matcher === 'function') {
107
+ options = mapper
108
+ mapper = matcher
109
+ matcher = /\r?\n/
110
+ // If matcher and options are arguments.
111
+ } else if (typeof mapper === 'object') {
112
+ options = mapper
113
+ mapper = noop
114
+ }
115
+ }
116
+
117
+ options = Object.assign({}, options)
118
+ options.autoDestroy = true
119
+ options.transform = transform
120
+ options.flush = flush
121
+ options.readableObjectMode = true
122
+
123
+ const stream = new Transform(options)
124
+
125
+ stream[kLast] = ''
126
+ stream[kDecoder] = new StringDecoder('utf8')
127
+ stream.matcher = matcher
128
+ stream.mapper = mapper
129
+ stream.maxLength = options.maxLength
130
+ stream.skipOverflow = options.skipOverflow || false
131
+ stream.overflow = false
132
+ stream._destroy = function (err, cb) {
133
+ // Weird Node v12 bug that we need to work around
134
+ this._writableState.errorEmitted = false
135
+ cb(err)
136
+ }
137
+
138
+ return stream
139
+ }
140
+
141
+ module.exports = split
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "split2",
3
+ "version": "4.2.0",
4
+ "description": "split a Text Stream into a Line Stream, using Stream 3",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "lint": "standard --verbose",
8
+ "unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js",
9
+ "coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js",
10
+ "test:report": "npm run lint && npm run unit:report",
11
+ "test": "npm run lint && npm run unit",
12
+ "legacy": "tape test.js"
13
+ },
14
+ "pre-commit": [
15
+ "test"
16
+ ],
17
+ "website": "https://github.com/mcollina/split2",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/mcollina/split2.git"
21
+ },
22
+ "bugs": {
23
+ "url": "http://github.com/mcollina/split2/issues"
24
+ },
25
+ "engines": {
26
+ "node": ">= 10.x"
27
+ },
28
+ "author": "Matteo Collina <hello@matteocollina.com>",
29
+ "license": "ISC",
30
+ "devDependencies": {
31
+ "binary-split": "^1.0.3",
32
+ "callback-stream": "^1.1.0",
33
+ "fastbench": "^1.0.0",
34
+ "nyc": "^15.0.1",
35
+ "pre-commit": "^1.1.2",
36
+ "standard": "^17.0.0",
37
+ "tape": "^5.0.0"
38
+ }
39
+ }