decocms 2.277.1 → 2.278.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 (310) hide show
  1. package/dist/client/assets/{AlertCircle-ZN1y5-aw.js → AlertCircle-DUgLKRqD.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-BPki4rs6.js → ArrowNarrowLeft-kCQ-qIL4.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-CzlD2NtZ.js → CheckCircle-DGqHVO6J.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-BjlYfwkz.js → ChevronDown-B24A-aAH.js} +1 -1
  5. package/dist/client/assets/{ChevronRight-Ers_V2D1.js → ChevronRight-te-i08ST.js} +1 -1
  6. package/dist/client/assets/{ChevronUp-BFd66NER.js → ChevronUp-ClIw8oee.js} +1 -1
  7. package/dist/client/assets/{Container-BH-IjM7q.js → Container-BEpzzcWb.js} +1 -1
  8. package/dist/client/assets/{LinkExternal01-Df1708RH.js → LinkExternal01-DGR8dD9K.js} +1 -1
  9. package/dist/client/assets/{Lock01-DC87zCkJ.js → Lock01-CgN6byUv.js} +1 -1
  10. package/dist/client/assets/{Palette-BAefAlJJ.js → Palette-hGvX_iIm.js} +1 -1
  11. package/dist/client/assets/{Play-8RSCt4_z.js → Play-B45MhCGv.js} +1 -1
  12. package/dist/client/assets/{Plus-D7R85tnb.js → Plus-DEi1gvs0.js} +1 -1
  13. package/dist/client/assets/{SearchMd-CuF0EE4i.js → SearchMd-Bb-t_BjN.js} +1 -1
  14. package/dist/client/assets/{Settings02-0biYSyip.js → Settings02-DqmMmEZU.js} +1 -1
  15. package/dist/client/assets/{Star01-DG4GVqjt.js → Star01-ByFKZL35.js} +1 -1
  16. package/dist/client/assets/{Sun-bNHtETAN.js → Sun-BSLTRNwf.js} +1 -1
  17. package/dist/client/assets/{Tool01-BYIP93fl.js → Tool01-A2H1ijQd.js} +1 -1
  18. package/dist/client/assets/{Trash01-DiVIK0OP.js → Trash01-Dtv8SktB.js} +1 -1
  19. package/dist/client/assets/{Upload01-1ZdG7oJK.js → Upload01-BnthyrUJ.js} +1 -1
  20. package/dist/client/assets/{User01-ZdNcPumq.js → User01-B6A46HmV.js} +1 -1
  21. package/dist/client/assets/{Users03-C4Ee_frB.js → Users03-SGJicyFL.js} +1 -1
  22. package/dist/client/assets/{X-DJVuZ58d.js → X-ZYbgpGnr.js} +1 -1
  23. package/dist/client/assets/{XCircle-C-PtnVDi.js → XCircle-CQXPNkKc.js} +1 -1
  24. package/dist/client/assets/{Zap-DFbFP4h9.js → Zap-CT4bYj4K.js} +1 -1
  25. package/dist/client/assets/{ZapSquare-Bn1DnHGa.js → ZapSquare-BIpgOhjL.js} +1 -1
  26. package/dist/client/assets/{accordion-BKyKwvi4.js → accordion-DlHNJyYy.js} +1 -1
  27. package/dist/client/assets/{agent-icon-BCqNXHrJ.js → agent-icon-BPm7_0O4.js} +1 -1
  28. package/dist/client/assets/{agents-list-st6j9oA0.js → agents-list-DDy9vjua.js} +1 -1
  29. package/dist/client/assets/ai-providers-B4zJ5gIB.js +1 -0
  30. package/dist/client/assets/{alert-dialog-Cce2zNSt.js → alert-dialog-BYfF9kq9.js} +1 -1
  31. package/dist/client/assets/{auth-catchall-DOZwh2ME.js → auth-catchall-IXiVEa8k.js} +1 -1
  32. package/dist/client/assets/{automation-list-row-D3uOWcPZ.js → automation-list-row-DdODiuWb.js} +1 -1
  33. package/dist/client/assets/{automations-_4yX33cm.js → automations-DaQmwJ_-.js} +1 -1
  34. package/dist/client/assets/{avatar-DtO_DjAh.js → avatar-Cd7pOZ3k.js} +1 -1
  35. package/dist/client/assets/{badge-y-hsEihY.js → badge-XxgdnuAZ.js} +1 -1
  36. package/dist/client/assets/{brand-context-zVTleDgN.js → brand-context-gdbCtW1V.js} +1 -1
  37. package/dist/client/assets/{card-Dgjac7df.js → card-ohyYL2jd.js} +1 -1
  38. package/dist/client/assets/{chat-context-jZHB4zZq.js → chat-context-BBBi8D2H.js} +1 -1
  39. package/dist/client/assets/{checkbox-BK1FOOnx.js → checkbox-CV6BjILT.js} +1 -1
  40. package/dist/client/assets/{collection-detail-x76KaTbs.js → collection-detail-BDC-qOMT.js} +1 -1
  41. package/dist/client/assets/{collection-display-button-Gr_qxtzC.js → collection-display-button-Dzc3fhoU.js} +1 -1
  42. package/dist/client/assets/{collection-search-9bv6LiW5.js → collection-search-RK7vbvUN.js} +1 -1
  43. package/dist/client/assets/{collection-table-wrapper-BD46An7o.js → collection-table-wrapper-DSiZO_Rx.js} +1 -1
  44. package/dist/client/assets/{collection-tabs-DBij18bF.js → collection-tabs-BThF2_kc.js} +1 -1
  45. package/dist/client/assets/{collections-BZR-yDlA.js → collections-D4PM7cfP.js} +1 -1
  46. package/dist/client/assets/{command-DsPZNxzv.js → command-D-rn-MCf.js} +1 -1
  47. package/dist/client/assets/{connection-card-Cavj0z1s.js → connection-card-C77H1oWc.js} +1 -1
  48. package/dist/client/assets/{connection-detail-B_MywG2r.js → connection-detail-B3eR0g_I.js} +1 -1
  49. package/dist/client/assets/{connection-form-helpers-BickqfM0.js → connection-form-helpers-C9kgqFQD.js} +1 -1
  50. package/dist/client/assets/{connections-Di7YhHpL.js → connections-DLnzLvDf.js} +1 -1
  51. package/dist/client/assets/{constants-B6BlNNCv.js → constants-CBMPX4Nz.js} +1 -1
  52. package/dist/client/assets/{constants-D4bpaQIy.js → constants-DV3gfGwj.js} +1 -1
  53. package/dist/client/assets/{dialog-CrC-U752.js → dialog-LWRIZTr3.js} +1 -1
  54. package/dist/client/assets/{drawer-D164IDvt.js → drawer-D1pg0ocH.js} +1 -1
  55. package/dist/client/assets/{dropdown-menu-BCSsOhoD.js → dropdown-menu-DLn7MpGb.js} +1 -1
  56. package/dist/client/assets/{dynamic-plugin-layout-PtppgAts.js → dynamic-plugin-layout-BSXEX5vh.js} +1 -1
  57. package/dist/client/assets/{empty-state-Burt6Pjq.js → empty-state-DkrYdGBA.js} +1 -1
  58. package/dist/client/assets/{empty-state-CMAHTHUe.js → empty-state-t8Y8fpWZ.js} +1 -1
  59. package/dist/client/assets/{extract-connection-data-CIGH4JOA.js → extract-connection-data-BhJroSSL.js} +1 -1
  60. package/dist/client/assets/{features-DkrqQmvn.js → features-B5cMQOy4.js} +1 -1
  61. package/dist/client/assets/{form-NpftjNqr.js → form-DYWw7BDT.js} +1 -1
  62. package/dist/client/assets/{general-CPi9v1zL.js → general-Bx99MR-8.js} +1 -1
  63. package/dist/client/assets/{index-CSCpQ3nk.js → index-9mpD21lu.js} +1 -1
  64. package/dist/client/assets/{index-CmG3u4sk.js → index-BAPPcxpC.js} +1 -1
  65. package/dist/client/assets/{index-D0eg_rFC.js → index-CAeiwvn1.js} +2 -2
  66. package/dist/client/assets/{index-BabWp460.js → index-CTb5Ivgi.js} +1 -1
  67. package/dist/client/assets/{index-ClWc2yds.js → index-DNVFRTN5.js} +1 -1
  68. package/dist/client/assets/{index-CMJ6GQ7C.js → index-DQr1bBCj.js} +1 -1
  69. package/dist/client/assets/{index-MDHGBKc3.js → index-DphB1nct.js} +1 -1
  70. package/dist/client/assets/{index-C7Syt5sm.js → index-Ds-JIDUi.js} +4 -4
  71. package/dist/client/assets/{index-DE-s5va1.js → index-RqKqA1J6.js} +1 -1
  72. package/dist/client/assets/{index-CESHAiFx.js → index-dR4PVdxt.js} +1 -1
  73. package/dist/client/assets/{infiniteQueryObserver-CpBPXtl6.js → infiniteQueryObserver-DgmIeDDw.js} +1 -1
  74. package/dist/client/assets/{input-B0rO4kCw.js → input-bSmRFU9Y.js} +1 -1
  75. package/dist/client/assets/{integration-icon-yOwsHf6q.js → integration-icon-BCfLG4yN.js} +1 -1
  76. package/dist/client/assets/{label-DEuSkBBi.js → label-DHm3L_Pw.js} +1 -1
  77. package/dist/client/assets/{layout-CEdjROI5.js → layout-Bi-oKYFz.js} +1 -1
  78. package/dist/client/assets/{lean-canvas-recruit-modal-BMnsbvdl.js → lean-canvas-recruit-modal-Y-73eqIT.js} +1 -1
  79. package/dist/client/assets/{login-vu3mdB5z.js → login-oTC9k0u0.js} +1 -1
  80. package/dist/client/assets/{members-DtGUx-F1.js → members-DXtluaQF.js} +1 -1
  81. package/dist/client/assets/{monaco-editor-wLqdDZ5S.js → monaco-editor-J6gXCbSf.js} +1 -1
  82. package/dist/client/assets/{monitoring-stats-row-5HVh1Gjz.js → monitoring-stats-row-COftXD12.js} +1 -1
  83. package/dist/client/assets/{oauth-callback-ai-provider-W7GdFBbP.js → oauth-callback-ai-provider-BG5KUhrn.js} +1 -1
  84. package/dist/client/assets/{oauth-callback-DXN54EUy.js → oauth-callback-iJ681_o2.js} +1 -1
  85. package/dist/client/assets/{onboarding-BeW6omQ6.js → onboarding-CaPHCpYM.js} +1 -1
  86. package/dist/client/assets/{org-layout-Cp3RupKt.js → org-layout-tpbZft4k.js} +1 -1
  87. package/dist/client/assets/{org-plugin-layout-Bnfoicc4.js → org-plugin-layout-DKUGssvU.js} +1 -1
  88. package/dist/client/assets/{plugin-empty-state-0LwQ6R3R.js → plugin-empty-state-CjLoe77j.js} +1 -1
  89. package/dist/client/assets/{plugin-header-BYiR1ua4.js → plugin-header-D-DgJiT_.js} +1 -1
  90. package/dist/client/assets/{plugin-layout-DCOghZWx.js → plugin-layout-BxoJjnAH.js} +1 -1
  91. package/dist/client/assets/{popover-DUh9iDm9.js → popover-QXf8PVl2.js} +1 -1
  92. package/dist/client/assets/{profile-Bk0bLa4g.js → profile-BXxDmHas.js} +1 -1
  93. package/dist/client/assets/project-app-view-CpeukqHC.js +1 -0
  94. package/dist/client/assets/registry-BwQkRfy5.js +2 -0
  95. package/dist/client/assets/{registry-layout-TU21GgUM.js → registry-layout-Dp1ULu6N.js} +1 -1
  96. package/dist/client/assets/{required-auth-layout-eS3mZHM3.js → required-auth-layout-BQkYfP3n.js} +1 -1
  97. package/dist/client/assets/{reset-password-nmqGdy62.js → reset-password-CU4ON9vN.js} +1 -1
  98. package/dist/client/assets/{scroll-area-BPvcbDba.js → scroll-area-CM6U9wSm.js} +1 -1
  99. package/dist/client/assets/{search-input-DuumYWEB.js → search-input-D1anatj6.js} +1 -1
  100. package/dist/client/assets/{select-DV6Y5fbl.js → select-DE9H0LNP.js} +1 -1
  101. package/dist/client/assets/{select-model-BhJ9eJ30.js → select-model-C72ySuI7.js} +1 -1
  102. package/dist/client/assets/{settings-layout-C6WZX8H8.js → settings-layout-BcGWWnw4.js} +1 -1
  103. package/dist/client/assets/{shell-layout-Bx85tvr4.js → shell-layout-DbjX6AWI.js} +1 -1
  104. package/dist/client/assets/{skeleton-C_5kHpZw.js → skeleton-DJZQh5Pk.js} +1 -1
  105. package/dist/client/assets/{sso-Du9xnoxY.js → sso-330TvduR.js} +1 -1
  106. package/dist/client/assets/{store-DFSqH5M5.js → store-CValARVk.js} +1 -1
  107. package/dist/client/assets/store-registry-DxTZD8aD.js +2 -0
  108. package/dist/client/assets/{switch-CbAhbOmy.js → switch-DXZpP3PP.js} +1 -1
  109. package/dist/client/assets/{table-D03jqlLZ.js → table-BC1vaa2h.js} +1 -1
  110. package/dist/client/assets/{tabs-DtdegoWH.js → tabs-y_vyQ1bZ.js} +1 -1
  111. package/dist/client/assets/{task-status-BgBSzATn.js → task-status-u0ZgPY9s.js} +31 -31
  112. package/dist/client/assets/{textarea-D_j-5IAu.js → textarea-BKBUm0h-.js} +1 -1
  113. package/dist/client/assets/{toggle-group-DDh5VZ6f.js → toggle-group-BGNuzMLR.js} +1 -1
  114. package/dist/client/assets/{tools-list-CJJNUxfe.js → tools-list-DnYw-GLl.js} +1 -1
  115. package/dist/client/assets/{types-CXkK-iOI.js → types-_e2R6uHw.js} +14 -14
  116. package/dist/client/assets/{use-ai-providers-ElYJdGU0.js → use-ai-providers-DA7fBB8t.js} +1 -1
  117. package/dist/client/assets/{use-collections-ByN3iK_-.js → use-collections-B56DgGhQ.js} +1 -1
  118. package/dist/client/assets/{use-connection-DS4JMmfK.js → use-connection-DmlqhQzU.js} +1 -1
  119. package/dist/client/assets/{use-copy-1vU78qsX.js → use-copy-yDy37O6x.js} +1 -1
  120. package/dist/client/assets/{use-create-virtual-mcp-C0ZtxKxG.js → use-create-virtual-mcp-St-hxc3T.js} +1 -1
  121. package/dist/client/assets/{use-decopilot-events-Dv7rn_zQ.js → use-decopilot-events-C6hMvsnN.js} +1 -1
  122. package/dist/client/assets/{use-delete-connection-CnPoPnuN.js → use-delete-connection-9Vw8o7eu.js} +1 -1
  123. package/dist/client/assets/{use-infinite-scroll-D9oxXo_y.js → use-infinite-scroll-BDoBJohW.js} +1 -1
  124. package/dist/client/assets/{use-list-state-Bt2BkuK4.js → use-list-state-BSaQM_cf.js} +1 -1
  125. package/dist/client/assets/{use-mcp-tools-CpSp-YOn.js → use-mcp-tools-CrNS6JKZ.js} +1 -1
  126. package/dist/client/assets/{use-members-CN2GRsgZ.js → use-members-CuGMiyzy.js} +1 -1
  127. package/dist/client/assets/{use-mobile-D5xdghWW.js → use-mobile-Dcrjnr8n.js} +1 -1
  128. package/dist/client/assets/{use-navigate-to-agent-DC2aXNSM.js → use-navigate-to-agent-CK6LXIOn.js} +1 -1
  129. package/dist/client/assets/{use-org-sso-HLMtUxyI.js → use-org-sso-CDZI8wr6.js} +1 -1
  130. package/dist/client/assets/{use-organization-settings-CRVxUE8d.js → use-organization-settings-Dz4Ob_xk.js} +1 -1
  131. package/dist/client/assets/{use-registry-connections-DiPCzdOz.js → use-registry-connections-C4iSg1no.js} +1 -1
  132. package/dist/client/assets/{use-status-sounds-CepswEV9.js → use-status-sounds-BpX9On4z.js} +1 -1
  133. package/dist/client/assets/{use-tasks-Cvm0js2U.js → use-tasks-B1E3D-6c.js} +1 -1
  134. package/dist/client/assets/{use-view-mode-Qb4bThwm.js → use-view-mode-OuDPu3JY.js} +1 -1
  135. package/dist/client/assets/{use-virtual-mcp-DmXmoSMd.js → use-virtual-mcp-C84ySRY_.js} +1 -1
  136. package/dist/client/assets/useInfiniteQuery-C63zt5p0.js +1 -0
  137. package/dist/client/assets/{user-rEzOpeDj.js → user-D-ueNiJ9.js} +1 -1
  138. package/dist/client/assets/{view-mode-toggle-EUXERI9v.js → view-mode-toggle-JzxZIaam.js} +1 -1
  139. package/dist/client/assets/{workflow-CD3p-F8j.js → workflow-DILBdxqV.js} +1 -1
  140. package/dist/client/assets/workflow-detail-CbBLr-jD.js +1 -0
  141. package/dist/client/index.html +1 -1
  142. package/dist/server/cli.js +1 -1
  143. package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +2 -0
  144. package/dist/server/node_modules/convert-to-spaces/dist/index.js +4 -0
  145. package/dist/server/node_modules/convert-to-spaces/license +21 -0
  146. package/dist/server/node_modules/convert-to-spaces/package.json +40 -0
  147. package/dist/server/node_modules/convert-to-spaces/readme.md +39 -0
  148. package/dist/server/node_modules/environment/index.d.ts +74 -0
  149. package/dist/server/node_modules/environment/index.js +47 -0
  150. package/dist/server/node_modules/environment/package.json +74 -0
  151. package/dist/server/node_modules/environment/readme.md +94 -0
  152. package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
  153. package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
  154. package/dist/server/node_modules/escape-string-regexp/license +9 -0
  155. package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
  156. package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
  157. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  158. package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
  159. package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
  160. package/dist/server/node_modules/{figures → is-fullwidth-code-point}/package.json +20 -16
  161. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
  162. package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
  163. package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
  164. package/dist/server/node_modules/is-unicode-supported/license +9 -0
  165. package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
  166. package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
  167. package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
  168. package/dist/server/node_modules/mimic-fn/index.js +13 -0
  169. package/dist/server/node_modules/mimic-fn/license +9 -0
  170. package/dist/server/node_modules/mimic-fn/package.json +42 -0
  171. package/dist/server/node_modules/mimic-fn/readme.md +69 -0
  172. package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
  173. package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
  174. package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
  175. package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
  176. package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
  177. package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
  178. package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
  179. package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
  180. package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
  181. package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
  182. package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
  183. package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
  184. package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
  185. package/dist/server/node_modules/pg-connection-string/README.md +105 -0
  186. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
  187. package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
  188. package/dist/server/node_modules/pg-connection-string/index.js +231 -0
  189. package/dist/server/node_modules/pg-connection-string/package.json +52 -0
  190. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  191. package/dist/server/node_modules/pg-int8/README.md +16 -0
  192. package/dist/server/node_modules/pg-int8/index.js +100 -0
  193. package/dist/server/node_modules/pg-int8/package.json +24 -0
  194. package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
  195. package/dist/server/node_modules/pg-protocol/README.md +3 -0
  196. package/dist/server/node_modules/pg-protocol/dist/b.d.ts +1 -0
  197. package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
  198. package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
  199. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
  200. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
  201. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
  202. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
  203. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
  204. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
  205. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
  206. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
  207. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
  208. package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
  209. package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
  210. package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
  211. package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
  212. package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
  213. package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
  214. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
  215. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
  216. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
  217. package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
  218. package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
  219. package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
  220. package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
  221. package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
  222. package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
  223. package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
  224. package/dist/server/node_modules/pg-protocol/package.json +45 -0
  225. package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
  226. package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
  227. package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
  228. package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
  229. package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
  230. package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
  231. package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
  232. package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
  233. package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
  234. package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
  235. package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
  236. package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
  237. package/dist/server/node_modules/pg-types/.travis.yml +7 -0
  238. package/dist/server/node_modules/pg-types/Makefile +14 -0
  239. package/dist/server/node_modules/pg-types/README.md +75 -0
  240. package/dist/server/node_modules/pg-types/index.d.ts +137 -0
  241. package/dist/server/node_modules/pg-types/index.js +47 -0
  242. package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
  243. package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
  244. package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
  245. package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
  246. package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
  247. package/dist/server/node_modules/pg-types/package.json +42 -0
  248. package/dist/server/node_modules/pg-types/test/index.js +24 -0
  249. package/dist/server/node_modules/pg-types/test/types.js +597 -0
  250. package/dist/server/node_modules/pgpass/README.md +74 -0
  251. package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
  252. package/dist/server/node_modules/pgpass/lib/index.js +23 -0
  253. package/dist/server/node_modules/pgpass/package.json +41 -0
  254. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  255. package/dist/server/node_modules/postgres-array/index.js +97 -0
  256. package/dist/server/node_modules/postgres-array/license +21 -0
  257. package/dist/server/node_modules/postgres-array/package.json +35 -0
  258. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  259. package/dist/server/node_modules/postgres-date/index.js +116 -0
  260. package/dist/server/node_modules/postgres-date/license +21 -0
  261. package/dist/server/node_modules/postgres-date/package.json +33 -0
  262. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  263. package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
  264. package/dist/server/node_modules/postgres-interval/index.js +125 -0
  265. package/dist/server/node_modules/postgres-interval/license +21 -0
  266. package/dist/server/node_modules/postgres-interval/package.json +36 -0
  267. package/dist/server/node_modules/postgres-interval/readme.md +48 -0
  268. package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
  269. package/dist/server/node_modules/restore-cursor/index.js +11 -0
  270. package/dist/server/node_modules/restore-cursor/license +9 -0
  271. package/dist/server/node_modules/restore-cursor/package.json +55 -0
  272. package/dist/server/node_modules/restore-cursor/readme.md +31 -0
  273. package/dist/server/node_modules/string-width/index.d.ts +39 -0
  274. package/dist/server/node_modules/string-width/index.js +82 -0
  275. package/dist/server/node_modules/string-width/license +9 -0
  276. package/dist/server/node_modules/string-width/package.json +64 -0
  277. package/dist/server/node_modules/string-width/readme.md +66 -0
  278. package/package.json +1 -1
  279. package/dist/client/assets/ai-providers-Cq8P81dq.js +0 -1
  280. package/dist/client/assets/project-app-view-BtOMb74o.js +0 -1
  281. package/dist/client/assets/registry-CorCxIMC.js +0 -2
  282. package/dist/client/assets/store-registry-ysGrUhGY.js +0 -2
  283. package/dist/client/assets/useInfiniteQuery-BmiRpP8z.js +0 -1
  284. package/dist/client/assets/workflow-detail-DH47DpCR.js +0 -1
  285. package/dist/server/node_modules/figures/index.d.ts +0 -279
  286. package/dist/server/node_modules/figures/index.js +0 -292
  287. package/dist/server/node_modules/figures/readme.md +0 -337
  288. package/dist/server/node_modules/pg/README.md +0 -95
  289. package/dist/server/node_modules/pg/esm/index.mjs +0 -20
  290. package/dist/server/node_modules/pg/lib/client.js +0 -743
  291. package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
  292. package/dist/server/node_modules/pg/lib/connection.js +0 -221
  293. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
  294. package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
  295. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
  296. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  297. package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
  298. package/dist/server/node_modules/pg/lib/defaults.js +0 -91
  299. package/dist/server/node_modules/pg/lib/index.js +0 -73
  300. package/dist/server/node_modules/pg/lib/native/client.js +0 -323
  301. package/dist/server/node_modules/pg/lib/native/index.js +0 -2
  302. package/dist/server/node_modules/pg/lib/native/query.js +0 -165
  303. package/dist/server/node_modules/pg/lib/query.js +0 -252
  304. package/dist/server/node_modules/pg/lib/result.js +0 -109
  305. package/dist/server/node_modules/pg/lib/stream.js +0 -83
  306. package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
  307. package/dist/server/node_modules/pg/lib/utils.js +0 -217
  308. package/dist/server/node_modules/pg/package.json +0 -76
  309. /package/dist/server/node_modules/{figures → environment}/license +0 -0
  310. /package/dist/server/node_modules/{pg → pg-cloudflare}/LICENSE +0 -0
@@ -0,0 +1,49 @@
1
+ # postgres-date [![Build Status](https://travis-ci.org/bendrucker/postgres-date.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-date) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/postgres-date.svg)](https://greenkeeper.io/)
2
+
3
+ > Postgres date output parser
4
+
5
+ This package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.
6
+
7
+ If you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.
8
+
9
+ **Supported Postgres Versions:** `>= 9.6`
10
+
11
+ All prior versions of Postgres are likely compatible but not officially supported.
12
+
13
+ ## Install
14
+
15
+ ```
16
+ $ npm install --save postgres-date
17
+ ```
18
+
19
+
20
+ ## Usage
21
+
22
+ ```js
23
+ var parse = require('postgres-date')
24
+ parse('2011-01-23 22:15:51Z')
25
+ // => 2011-01-23T22:15:51.000Z
26
+ ```
27
+
28
+ ## API
29
+
30
+ #### `parse(isoDate)` -> `date`
31
+
32
+ ##### isoDate
33
+
34
+ *Required*
35
+ Type: `string`
36
+
37
+ A date string from Postgres.
38
+
39
+ ## Releases
40
+
41
+ The following semantic versioning increments will be used for changes:
42
+
43
+ * **Major**: Removal of support for Node.js versions or Postgres versions (not expected)
44
+ * **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format
45
+ * **Patch**: Any fix for parsing behavior
46
+
47
+ ## License
48
+
49
+ MIT © [Ben Drucker](http://bendrucker.me)
@@ -0,0 +1,20 @@
1
+ declare namespace PostgresInterval {
2
+ export interface IPostgresInterval {
3
+ years?: number;
4
+ months?: number;
5
+ days?: number;
6
+ hours?: number;
7
+ minutes?: number;
8
+ seconds?: number;
9
+ milliseconds?: number;
10
+
11
+ toPostgres(): string;
12
+
13
+ toISO(): string;
14
+ toISOString(): string;
15
+ }
16
+ }
17
+
18
+ declare function PostgresInterval(raw: string): PostgresInterval.IPostgresInterval;
19
+
20
+ export = PostgresInterval;
@@ -0,0 +1,125 @@
1
+ 'use strict'
2
+
3
+ var extend = require('xtend/mutable')
4
+
5
+ module.exports = PostgresInterval
6
+
7
+ function PostgresInterval (raw) {
8
+ if (!(this instanceof PostgresInterval)) {
9
+ return new PostgresInterval(raw)
10
+ }
11
+ extend(this, parse(raw))
12
+ }
13
+ var properties = ['seconds', 'minutes', 'hours', 'days', 'months', 'years']
14
+ PostgresInterval.prototype.toPostgres = function () {
15
+ var filtered = properties.filter(this.hasOwnProperty, this)
16
+
17
+ // In addition to `properties`, we need to account for fractions of seconds.
18
+ if (this.milliseconds && filtered.indexOf('seconds') < 0) {
19
+ filtered.push('seconds')
20
+ }
21
+
22
+ if (filtered.length === 0) return '0'
23
+ return filtered
24
+ .map(function (property) {
25
+ var value = this[property] || 0
26
+
27
+ // Account for fractional part of seconds,
28
+ // remove trailing zeroes.
29
+ if (property === 'seconds' && this.milliseconds) {
30
+ value = (value + this.milliseconds / 1000).toFixed(6).replace(/\.?0+$/, '')
31
+ }
32
+
33
+ return value + ' ' + property
34
+ }, this)
35
+ .join(' ')
36
+ }
37
+
38
+ var propertiesISOEquivalent = {
39
+ years: 'Y',
40
+ months: 'M',
41
+ days: 'D',
42
+ hours: 'H',
43
+ minutes: 'M',
44
+ seconds: 'S'
45
+ }
46
+ var dateProperties = ['years', 'months', 'days']
47
+ var timeProperties = ['hours', 'minutes', 'seconds']
48
+ // according to ISO 8601
49
+ PostgresInterval.prototype.toISOString = PostgresInterval.prototype.toISO = function () {
50
+ var datePart = dateProperties
51
+ .map(buildProperty, this)
52
+ .join('')
53
+
54
+ var timePart = timeProperties
55
+ .map(buildProperty, this)
56
+ .join('')
57
+
58
+ return 'P' + datePart + 'T' + timePart
59
+
60
+ function buildProperty (property) {
61
+ var value = this[property] || 0
62
+
63
+ // Account for fractional part of seconds,
64
+ // remove trailing zeroes.
65
+ if (property === 'seconds' && this.milliseconds) {
66
+ value = (value + this.milliseconds / 1000).toFixed(6).replace(/0+$/, '')
67
+ }
68
+
69
+ return value + propertiesISOEquivalent[property]
70
+ }
71
+ }
72
+
73
+ var NUMBER = '([+-]?\\d+)'
74
+ var YEAR = NUMBER + '\\s+years?'
75
+ var MONTH = NUMBER + '\\s+mons?'
76
+ var DAY = NUMBER + '\\s+days?'
77
+ var TIME = '([+-])?([\\d]*):(\\d\\d):(\\d\\d)\\.?(\\d{1,6})?'
78
+ var INTERVAL = new RegExp([YEAR, MONTH, DAY, TIME].map(function (regexString) {
79
+ return '(' + regexString + ')?'
80
+ })
81
+ .join('\\s*'))
82
+
83
+ // Positions of values in regex match
84
+ var positions = {
85
+ years: 2,
86
+ months: 4,
87
+ days: 6,
88
+ hours: 9,
89
+ minutes: 10,
90
+ seconds: 11,
91
+ milliseconds: 12
92
+ }
93
+ // We can use negative time
94
+ var negatives = ['hours', 'minutes', 'seconds', 'milliseconds']
95
+
96
+ function parseMilliseconds (fraction) {
97
+ // add omitted zeroes
98
+ var microseconds = fraction + '000000'.slice(fraction.length)
99
+ return parseInt(microseconds, 10) / 1000
100
+ }
101
+
102
+ function parse (interval) {
103
+ if (!interval) return {}
104
+ var matches = INTERVAL.exec(interval)
105
+ var isNegative = matches[8] === '-'
106
+ return Object.keys(positions)
107
+ .reduce(function (parsed, property) {
108
+ var position = positions[property]
109
+ var value = matches[position]
110
+ // no empty string
111
+ if (!value) return parsed
112
+ // milliseconds are actually microseconds (up to 6 digits)
113
+ // with omitted trailing zeroes.
114
+ value = property === 'milliseconds'
115
+ ? parseMilliseconds(value)
116
+ : parseInt(value, 10)
117
+ // no zeros
118
+ if (!value) return parsed
119
+ if (isNegative && ~negatives.indexOf(property)) {
120
+ value *= -1
121
+ }
122
+ parsed[property] = value
123
+ return parsed
124
+ }, {})
125
+ }
@@ -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,36 @@
1
+ {
2
+ "name": "postgres-interval",
3
+ "main": "index.js",
4
+ "version": "1.2.0",
5
+ "description": "Parse Postgres interval columns",
6
+ "license": "MIT",
7
+ "repository": "bendrucker/postgres-interval",
8
+ "author": {
9
+ "name": "Ben Drucker",
10
+ "email": "bvdrucker@gmail.com",
11
+ "url": "bendrucker.me"
12
+ },
13
+ "engines": {
14
+ "node": ">=0.10.0"
15
+ },
16
+ "scripts": {
17
+ "test": "standard && tape test.js"
18
+ },
19
+ "keywords": [
20
+ "postgres",
21
+ "interval",
22
+ "parser"
23
+ ],
24
+ "dependencies": {
25
+ "xtend": "^4.0.0"
26
+ },
27
+ "devDependencies": {
28
+ "tape": "^4.0.0",
29
+ "standard": "^12.0.1"
30
+ },
31
+ "files": [
32
+ "index.js",
33
+ "index.d.ts",
34
+ "readme.md"
35
+ ]
36
+ }
@@ -0,0 +1,48 @@
1
+ # postgres-interval [![Build Status](https://travis-ci.org/bendrucker/postgres-interval.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-interval) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/postgres-interval.svg)](https://greenkeeper.io/)
2
+
3
+ > Parse Postgres interval columns
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install --save postgres-interval
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ var parse = require('postgres-interval')
17
+ var interval = parse('01:02:03')
18
+ //=> {hours: 1, minutes: 2, seconds: 3}
19
+ interval.toPostgres()
20
+ // 3 seconds 2 minutes 1 hours
21
+ interval.toISO()
22
+ // P0Y0M0DT1H2M3S
23
+ ```
24
+
25
+ ## API
26
+
27
+ #### `parse(pgInterval)` -> `interval`
28
+
29
+ ##### pgInterval
30
+
31
+ *Required*
32
+ Type: `string`
33
+
34
+ A Postgres interval string.
35
+
36
+ #### `interval.toPostgres()` -> `string`
37
+
38
+ Returns an interval string. This allows the interval object to be passed into prepared statements.
39
+
40
+ #### `interval.toISOString()` -> `string`
41
+
42
+ Returns an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) compliant string.
43
+
44
+ Also available as `interval.toISO()` for backwards compatibility.
45
+
46
+ ## License
47
+
48
+ 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,39 @@
1
+ export type Options = {
2
+ /**
3
+ Count [ambiguous width characters](https://www.unicode.org/reports/tr11/#Ambiguous) as having narrow width (count of 1) instead of wide width (count of 2).
4
+
5
+ @default true
6
+
7
+ > Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). __If the context cannot be established reliably, they should be treated as narrow characters by default.__
8
+ > - http://www.unicode.org/reports/tr11/
9
+ */
10
+ readonly ambiguousIsNarrow?: boolean;
11
+
12
+ /**
13
+ Whether [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) should be counted.
14
+
15
+ @default false
16
+ */
17
+ readonly countAnsiEscapeCodes?: boolean;
18
+ };
19
+
20
+ /**
21
+ Get the visual width of a string - the number of columns required to display it.
22
+
23
+ Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
24
+
25
+ @example
26
+ ```
27
+ import stringWidth from 'string-width';
28
+
29
+ stringWidth('a');
30
+ //=> 1
31
+
32
+ stringWidth('古');
33
+ //=> 2
34
+
35
+ stringWidth('\u001B[1m古\u001B[22m');
36
+ //=> 2
37
+ ```
38
+ */
39
+ export default function stringWidth(string: string, options?: Options): number;
@@ -0,0 +1,82 @@
1
+ import stripAnsi from 'strip-ansi';
2
+ import {eastAsianWidth} from 'get-east-asian-width';
3
+ import emojiRegex from 'emoji-regex';
4
+
5
+ const segmenter = new Intl.Segmenter();
6
+
7
+ const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
8
+
9
+ export default function stringWidth(string, options = {}) {
10
+ if (typeof string !== 'string' || string.length === 0) {
11
+ return 0;
12
+ }
13
+
14
+ const {
15
+ ambiguousIsNarrow = true,
16
+ countAnsiEscapeCodes = false,
17
+ } = options;
18
+
19
+ if (!countAnsiEscapeCodes) {
20
+ string = stripAnsi(string);
21
+ }
22
+
23
+ if (string.length === 0) {
24
+ return 0;
25
+ }
26
+
27
+ let width = 0;
28
+ const eastAsianWidthOptions = {ambiguousAsWide: !ambiguousIsNarrow};
29
+
30
+ for (const {segment: character} of segmenter.segment(string)) {
31
+ const codePoint = character.codePointAt(0);
32
+
33
+ // Ignore control characters
34
+ if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) {
35
+ continue;
36
+ }
37
+
38
+ // Ignore zero-width characters
39
+ if (
40
+ (codePoint >= 0x20_0B && codePoint <= 0x20_0F) // Zero-width space, non-joiner, joiner, left-to-right mark, right-to-left mark
41
+ || codePoint === 0xFE_FF // Zero-width no-break space
42
+ ) {
43
+ continue;
44
+ }
45
+
46
+ // Ignore combining characters
47
+ if (
48
+ (codePoint >= 0x3_00 && codePoint <= 0x3_6F) // Combining diacritical marks
49
+ || (codePoint >= 0x1A_B0 && codePoint <= 0x1A_FF) // Combining diacritical marks extended
50
+ || (codePoint >= 0x1D_C0 && codePoint <= 0x1D_FF) // Combining diacritical marks supplement
51
+ || (codePoint >= 0x20_D0 && codePoint <= 0x20_FF) // Combining diacritical marks for symbols
52
+ || (codePoint >= 0xFE_20 && codePoint <= 0xFE_2F) // Combining half marks
53
+ ) {
54
+ continue;
55
+ }
56
+
57
+ // Ignore surrogate pairs
58
+ if (codePoint >= 0xD8_00 && codePoint <= 0xDF_FF) {
59
+ continue;
60
+ }
61
+
62
+ // Ignore variation selectors
63
+ if (codePoint >= 0xFE_00 && codePoint <= 0xFE_0F) {
64
+ continue;
65
+ }
66
+
67
+ // This covers some of the above cases, but we still keep them for performance reasons.
68
+ if (defaultIgnorableCodePointRegex.test(character)) {
69
+ continue;
70
+ }
71
+
72
+ // TODO: Use `/\p{RGI_Emoji}/v` when targeting Node.js 20.
73
+ if (emojiRegex().test(character)) {
74
+ width += 2;
75
+ continue;
76
+ }
77
+
78
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
79
+ }
80
+
81
+ return width;
82
+ }
@@ -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,64 @@
1
+ {
2
+ "name": "string-width",
3
+ "version": "7.2.0",
4
+ "description": "Get the visual width of a string - the number of columns required to display it",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/string-width",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "https://sindresorhus.com"
12
+ },
13
+ "type": "module",
14
+ "exports": {
15
+ "types": "./index.d.ts",
16
+ "default": "./index.js"
17
+ },
18
+ "sideEffects": false,
19
+ "engines": {
20
+ "node": ">=18"
21
+ },
22
+ "scripts": {
23
+ "test": "xo && ava && tsd"
24
+ },
25
+ "files": [
26
+ "index.js",
27
+ "index.d.ts"
28
+ ],
29
+ "keywords": [
30
+ "string",
31
+ "character",
32
+ "unicode",
33
+ "width",
34
+ "visual",
35
+ "column",
36
+ "columns",
37
+ "fullwidth",
38
+ "full-width",
39
+ "full",
40
+ "ansi",
41
+ "escape",
42
+ "codes",
43
+ "cli",
44
+ "command-line",
45
+ "terminal",
46
+ "console",
47
+ "cjk",
48
+ "chinese",
49
+ "japanese",
50
+ "korean",
51
+ "fixed-width",
52
+ "east-asian-width"
53
+ ],
54
+ "dependencies": {
55
+ "emoji-regex": "^10.3.0",
56
+ "get-east-asian-width": "^1.0.0",
57
+ "strip-ansi": "^7.1.0"
58
+ },
59
+ "devDependencies": {
60
+ "ava": "^5.3.1",
61
+ "tsd": "^0.29.0",
62
+ "xo": "^0.56.0"
63
+ }
64
+ }