modelmix 2.2.4 → 2.3.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 (1131) hide show
  1. package/README.md +21 -8
  2. package/demo/default.env +1 -0
  3. package/demo/demo.mjs +14 -15
  4. package/demo/groq.mjs +24 -0
  5. package/demo/lmstudio.mjs +1 -1
  6. package/demo/package-lock.json +1 -50
  7. package/demo/package.json +1 -3
  8. package/demo/stream.mjs +3 -3
  9. package/demo/watson.jpg +0 -0
  10. package/index.js +54 -2
  11. package/package.json +4 -2
  12. package/demo/node_modules/.package-lock.json +0 -301
  13. package/demo/node_modules/@anthropic-ai/sdk/CHANGELOG.md +0 -859
  14. package/demo/node_modules/@anthropic-ai/sdk/LICENSE +0 -8
  15. package/demo/node_modules/@anthropic-ai/sdk/README.md +0 -424
  16. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.d.ts +0 -9
  17. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.d.ts.map +0 -1
  18. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.js +0 -16
  19. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.js.map +0 -1
  20. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.mjs +0 -12
  21. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.mjs.map +0 -1
  22. package/demo/node_modules/@anthropic-ai/sdk/_shims/README.md +0 -46
  23. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.d.ts +0 -5
  24. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.d.ts.map +0 -1
  25. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.js +0 -21
  26. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.js.map +0 -1
  27. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.mjs +0 -2
  28. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.mjs.map +0 -1
  29. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.d.ts +0 -5
  30. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.d.ts.map +0 -1
  31. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.js +0 -21
  32. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.js.map +0 -1
  33. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.mjs +0 -2
  34. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.mjs.map +0 -1
  35. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.d.ts +0 -5
  36. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.d.ts.map +0 -1
  37. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.js +0 -21
  38. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.js.map +0 -1
  39. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.mjs +0 -2
  40. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.mjs.map +0 -1
  41. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.d.ts +0 -5
  42. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.d.ts.map +0 -1
  43. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.js +0 -21
  44. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.js.map +0 -1
  45. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.mjs +0 -2
  46. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.mjs.map +0 -1
  47. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.d.ts +0 -101
  48. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.js +0 -3
  49. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.mjs +0 -3
  50. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.d.ts +0 -6
  51. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.d.ts.map +0 -1
  52. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.js +0 -14
  53. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.js.map +0 -1
  54. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.mjs +0 -10
  55. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.mjs.map +0 -1
  56. package/demo/node_modules/@anthropic-ai/sdk/_shims/index.d.ts +0 -81
  57. package/demo/node_modules/@anthropic-ai/sdk/_shims/index.js +0 -13
  58. package/demo/node_modules/@anthropic-ai/sdk/_shims/index.mjs +0 -7
  59. package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.d.ts +0 -12
  60. package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.js +0 -3
  61. package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.mjs +0 -3
  62. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.d.ts +0 -3
  63. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.d.ts.map +0 -1
  64. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.js +0 -90
  65. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.js.map +0 -1
  66. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.mjs +0 -56
  67. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.mjs.map +0 -1
  68. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.d.ts +0 -42
  69. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.js +0 -3
  70. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.mjs +0 -3
  71. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.d.ts +0 -37
  72. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.d.ts.map +0 -1
  73. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.js +0 -41
  74. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.js.map +0 -1
  75. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.mjs +0 -37
  76. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.mjs.map +0 -1
  77. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.d.ts +0 -5
  78. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.d.ts.map +0 -1
  79. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js +0 -78
  80. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js.map +0 -1
  81. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.mjs +0 -71
  82. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.mjs.map +0 -1
  83. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.d.ts +0 -83
  84. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.js +0 -3
  85. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.mjs +0 -3
  86. package/demo/node_modules/@anthropic-ai/sdk/core.d.ts +0 -239
  87. package/demo/node_modules/@anthropic-ai/sdk/core.d.ts.map +0 -1
  88. package/demo/node_modules/@anthropic-ai/sdk/core.js +0 -879
  89. package/demo/node_modules/@anthropic-ai/sdk/core.js.map +0 -1
  90. package/demo/node_modules/@anthropic-ai/sdk/core.mjs +0 -848
  91. package/demo/node_modules/@anthropic-ai/sdk/core.mjs.map +0 -1
  92. package/demo/node_modules/@anthropic-ai/sdk/error.d.ts +0 -53
  93. package/demo/node_modules/@anthropic-ai/sdk/error.d.ts.map +0 -1
  94. package/demo/node_modules/@anthropic-ai/sdk/error.js +0 -143
  95. package/demo/node_modules/@anthropic-ai/sdk/error.js.map +0 -1
  96. package/demo/node_modules/@anthropic-ai/sdk/error.mjs +0 -127
  97. package/demo/node_modules/@anthropic-ai/sdk/error.mjs.map +0 -1
  98. package/demo/node_modules/@anthropic-ai/sdk/index.d.mts +0 -147
  99. package/demo/node_modules/@anthropic-ai/sdk/index.d.ts +0 -147
  100. package/demo/node_modules/@anthropic-ai/sdk/index.d.ts.map +0 -1
  101. package/demo/node_modules/@anthropic-ai/sdk/index.js +0 -149
  102. package/demo/node_modules/@anthropic-ai/sdk/index.js.map +0 -1
  103. package/demo/node_modules/@anthropic-ai/sdk/index.mjs +0 -121
  104. package/demo/node_modules/@anthropic-ai/sdk/index.mjs.map +0 -1
  105. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +0 -94
  106. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +0 -1
  107. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +0 -436
  108. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +0 -1
  109. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +0 -432
  110. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +0 -1
  111. package/demo/node_modules/@anthropic-ai/sdk/package.json +0 -104
  112. package/demo/node_modules/@anthropic-ai/sdk/resource.d.ts +0 -6
  113. package/demo/node_modules/@anthropic-ai/sdk/resource.d.ts.map +0 -1
  114. package/demo/node_modules/@anthropic-ai/sdk/resource.js +0 -11
  115. package/demo/node_modules/@anthropic-ai/sdk/resource.js.map +0 -1
  116. package/demo/node_modules/@anthropic-ai/sdk/resource.mjs +0 -7
  117. package/demo/node_modules/@anthropic-ai/sdk/resource.mjs.map +0 -1
  118. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +0 -9
  119. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +0 -1
  120. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +0 -40
  121. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +0 -1
  122. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +0 -13
  123. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +0 -1
  124. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +0 -3
  125. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +0 -1
  126. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.js +0 -9
  127. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +0 -1
  128. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +0 -4
  129. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +0 -1
  130. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.d.ts +0 -3
  131. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.d.ts.map +0 -1
  132. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.js +0 -9
  133. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.js.map +0 -1
  134. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.mjs +0 -4
  135. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.mjs.map +0 -1
  136. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.d.ts +0 -462
  137. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.d.ts.map +0 -1
  138. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.js +0 -20
  139. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.js.map +0 -1
  140. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.mjs +0 -16
  141. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.mjs.map +0 -1
  142. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.d.ts +0 -19
  143. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.d.ts.map +0 -1
  144. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.js +0 -40
  145. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.js.map +0 -1
  146. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.mjs +0 -13
  147. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.mjs.map +0 -1
  148. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +0 -184
  149. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +0 -1
  150. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.js +0 -19
  151. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.js.map +0 -1
  152. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.mjs +0 -15
  153. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +0 -1
  154. package/demo/node_modules/@anthropic-ai/sdk/resources/index.d.ts +0 -4
  155. package/demo/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +0 -1
  156. package/demo/node_modules/@anthropic-ai/sdk/resources/index.js +0 -11
  157. package/demo/node_modules/@anthropic-ai/sdk/resources/index.js.map +0 -1
  158. package/demo/node_modules/@anthropic-ai/sdk/resources/index.mjs +0 -5
  159. package/demo/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +0 -1
  160. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +0 -619
  161. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +0 -1
  162. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.js +0 -28
  163. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.js.map +0 -1
  164. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.mjs +0 -23
  165. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +0 -1
  166. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +0 -2
  167. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +0 -1
  168. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.js +0 -4
  169. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +0 -1
  170. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +0 -3
  171. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +0 -1
  172. package/demo/node_modules/@anthropic-ai/sdk/shims/node.d.ts +0 -29
  173. package/demo/node_modules/@anthropic-ai/sdk/shims/node.d.ts.map +0 -1
  174. package/demo/node_modules/@anthropic-ai/sdk/shims/node.js +0 -31
  175. package/demo/node_modules/@anthropic-ai/sdk/shims/node.js.map +0 -1
  176. package/demo/node_modules/@anthropic-ai/sdk/shims/node.mjs +0 -5
  177. package/demo/node_modules/@anthropic-ai/sdk/shims/node.mjs.map +0 -1
  178. package/demo/node_modules/@anthropic-ai/sdk/shims/web.d.ts +0 -26
  179. package/demo/node_modules/@anthropic-ai/sdk/shims/web.d.ts.map +0 -1
  180. package/demo/node_modules/@anthropic-ai/sdk/shims/web.js +0 -31
  181. package/demo/node_modules/@anthropic-ai/sdk/shims/web.js.map +0 -1
  182. package/demo/node_modules/@anthropic-ai/sdk/shims/web.mjs +0 -5
  183. package/demo/node_modules/@anthropic-ai/sdk/shims/web.mjs.map +0 -1
  184. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/MultipartBody.ts +0 -9
  185. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/README.md +0 -46
  186. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime-bun.ts +0 -4
  187. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime-node.ts +0 -4
  188. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime.ts +0 -4
  189. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types-node.ts +0 -4
  190. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.d.ts +0 -101
  191. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.js +0 -3
  192. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.mjs +0 -3
  193. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/bun-runtime.ts +0 -14
  194. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.d.ts +0 -81
  195. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.js +0 -13
  196. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.mjs +0 -7
  197. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.d.ts +0 -12
  198. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.js +0 -3
  199. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.mjs +0 -3
  200. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-runtime.ts +0 -83
  201. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.d.ts +0 -42
  202. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.js +0 -3
  203. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.mjs +0 -3
  204. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/registry.ts +0 -67
  205. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-runtime.ts +0 -103
  206. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.d.ts +0 -83
  207. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.js +0 -3
  208. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.mjs +0 -3
  209. package/demo/node_modules/@anthropic-ai/sdk/src/core.ts +0 -1162
  210. package/demo/node_modules/@anthropic-ai/sdk/src/error.ts +0 -146
  211. package/demo/node_modules/@anthropic-ai/sdk/src/index.ts +0 -264
  212. package/demo/node_modules/@anthropic-ai/sdk/src/lib/.keep +0 -4
  213. package/demo/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +0 -535
  214. package/demo/node_modules/@anthropic-ai/sdk/src/resource.ts +0 -11
  215. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +0 -12
  216. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +0 -4
  217. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/index.ts +0 -16
  218. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/messages.ts +0 -531
  219. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/tools.ts +0 -22
  220. package/demo/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +0 -223
  221. package/demo/node_modules/@anthropic-ai/sdk/src/resources/index.ts +0 -33
  222. package/demo/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +0 -729
  223. package/demo/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +0 -3
  224. package/demo/node_modules/@anthropic-ai/sdk/src/shims/node.ts +0 -50
  225. package/demo/node_modules/@anthropic-ai/sdk/src/shims/web.ts +0 -50
  226. package/demo/node_modules/@anthropic-ai/sdk/src/streaming.ts +0 -509
  227. package/demo/node_modules/@anthropic-ai/sdk/src/tsconfig.json +0 -11
  228. package/demo/node_modules/@anthropic-ai/sdk/src/uploads.ts +0 -248
  229. package/demo/node_modules/@anthropic-ai/sdk/src/version.ts +0 -1
  230. package/demo/node_modules/@anthropic-ai/sdk/streaming.d.ts +0 -41
  231. package/demo/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +0 -1
  232. package/demo/node_modules/@anthropic-ai/sdk/streaming.js +0 -431
  233. package/demo/node_modules/@anthropic-ai/sdk/streaming.js.map +0 -1
  234. package/demo/node_modules/@anthropic-ai/sdk/streaming.mjs +0 -424
  235. package/demo/node_modules/@anthropic-ai/sdk/streaming.mjs.map +0 -1
  236. package/demo/node_modules/@anthropic-ai/sdk/uploads.d.ts +0 -75
  237. package/demo/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +0 -1
  238. package/demo/node_modules/@anthropic-ai/sdk/uploads.js +0 -165
  239. package/demo/node_modules/@anthropic-ai/sdk/uploads.js.map +0 -1
  240. package/demo/node_modules/@anthropic-ai/sdk/uploads.mjs +0 -152
  241. package/demo/node_modules/@anthropic-ai/sdk/uploads.mjs.map +0 -1
  242. package/demo/node_modules/@anthropic-ai/sdk/version.d.ts +0 -2
  243. package/demo/node_modules/@anthropic-ai/sdk/version.d.ts.map +0 -1
  244. package/demo/node_modules/@anthropic-ai/sdk/version.js +0 -5
  245. package/demo/node_modules/@anthropic-ai/sdk/version.js.map +0 -1
  246. package/demo/node_modules/@anthropic-ai/sdk/version.mjs +0 -2
  247. package/demo/node_modules/@anthropic-ai/sdk/version.mjs.map +0 -1
  248. package/demo/node_modules/@types/node/LICENSE +0 -21
  249. package/demo/node_modules/@types/node/README.md +0 -15
  250. package/demo/node_modules/@types/node/assert/strict.d.ts +0 -8
  251. package/demo/node_modules/@types/node/assert.d.ts +0 -985
  252. package/demo/node_modules/@types/node/async_hooks.d.ts +0 -522
  253. package/demo/node_modules/@types/node/buffer.d.ts +0 -2353
  254. package/demo/node_modules/@types/node/child_process.d.ts +0 -1544
  255. package/demo/node_modules/@types/node/cluster.d.ts +0 -578
  256. package/demo/node_modules/@types/node/console.d.ts +0 -452
  257. package/demo/node_modules/@types/node/constants.d.ts +0 -19
  258. package/demo/node_modules/@types/node/crypto.d.ts +0 -4457
  259. package/demo/node_modules/@types/node/dgram.d.ts +0 -596
  260. package/demo/node_modules/@types/node/diagnostics_channel.d.ts +0 -546
  261. package/demo/node_modules/@types/node/dns/promises.d.ts +0 -473
  262. package/demo/node_modules/@types/node/dns.d.ts +0 -853
  263. package/demo/node_modules/@types/node/dom-events.d.ts +0 -124
  264. package/demo/node_modules/@types/node/domain.d.ts +0 -170
  265. package/demo/node_modules/@types/node/events.d.ts +0 -819
  266. package/demo/node_modules/@types/node/fs/promises.d.ts +0 -1205
  267. package/demo/node_modules/@types/node/fs.d.ts +0 -4237
  268. package/demo/node_modules/@types/node/globals.d.ts +0 -377
  269. package/demo/node_modules/@types/node/globals.global.d.ts +0 -1
  270. package/demo/node_modules/@types/node/http.d.ts +0 -1803
  271. package/demo/node_modules/@types/node/http2.d.ts +0 -2392
  272. package/demo/node_modules/@types/node/https.d.ts +0 -544
  273. package/demo/node_modules/@types/node/index.d.ts +0 -88
  274. package/demo/node_modules/@types/node/inspector.d.ts +0 -2738
  275. package/demo/node_modules/@types/node/module.d.ts +0 -298
  276. package/demo/node_modules/@types/node/net.d.ts +0 -918
  277. package/demo/node_modules/@types/node/os.d.ts +0 -473
  278. package/demo/node_modules/@types/node/package.json +0 -222
  279. package/demo/node_modules/@types/node/path.d.ts +0 -191
  280. package/demo/node_modules/@types/node/perf_hooks.d.ts +0 -626
  281. package/demo/node_modules/@types/node/process.d.ts +0 -1548
  282. package/demo/node_modules/@types/node/punycode.d.ts +0 -117
  283. package/demo/node_modules/@types/node/querystring.d.ts +0 -141
  284. package/demo/node_modules/@types/node/readline/promises.d.ts +0 -143
  285. package/demo/node_modules/@types/node/readline.d.ts +0 -666
  286. package/demo/node_modules/@types/node/repl.d.ts +0 -430
  287. package/demo/node_modules/@types/node/stream/consumers.d.ts +0 -12
  288. package/demo/node_modules/@types/node/stream/promises.d.ts +0 -83
  289. package/demo/node_modules/@types/node/stream/web.d.ts +0 -352
  290. package/demo/node_modules/@types/node/stream.d.ts +0 -1731
  291. package/demo/node_modules/@types/node/string_decoder.d.ts +0 -67
  292. package/demo/node_modules/@types/node/test.d.ts +0 -1113
  293. package/demo/node_modules/@types/node/timers/promises.d.ts +0 -93
  294. package/demo/node_modules/@types/node/timers.d.ts +0 -126
  295. package/demo/node_modules/@types/node/tls.d.ts +0 -1203
  296. package/demo/node_modules/@types/node/trace_events.d.ts +0 -171
  297. package/demo/node_modules/@types/node/tty.d.ts +0 -206
  298. package/demo/node_modules/@types/node/url.d.ts +0 -954
  299. package/demo/node_modules/@types/node/util.d.ts +0 -2075
  300. package/demo/node_modules/@types/node/v8.d.ts +0 -753
  301. package/demo/node_modules/@types/node/vm.d.ts +0 -667
  302. package/demo/node_modules/@types/node/wasi.d.ts +0 -160
  303. package/demo/node_modules/@types/node/worker_threads.d.ts +0 -692
  304. package/demo/node_modules/@types/node/zlib.d.ts +0 -517
  305. package/demo/node_modules/@types/node-fetch/LICENSE +0 -21
  306. package/demo/node_modules/@types/node-fetch/README.md +0 -15
  307. package/demo/node_modules/@types/node-fetch/externals.d.ts +0 -32
  308. package/demo/node_modules/@types/node-fetch/index.d.ts +0 -238
  309. package/demo/node_modules/@types/node-fetch/package.json +0 -83
  310. package/demo/node_modules/abort-controller/LICENSE +0 -21
  311. package/demo/node_modules/abort-controller/README.md +0 -98
  312. package/demo/node_modules/abort-controller/browser.js +0 -13
  313. package/demo/node_modules/abort-controller/browser.mjs +0 -11
  314. package/demo/node_modules/abort-controller/package.json +0 -97
  315. package/demo/node_modules/abort-controller/polyfill.js +0 -21
  316. package/demo/node_modules/abort-controller/polyfill.mjs +0 -19
  317. package/demo/node_modules/agentkeepalive/History.md +0 -268
  318. package/demo/node_modules/agentkeepalive/LICENSE +0 -23
  319. package/demo/node_modules/agentkeepalive/README.md +0 -256
  320. package/demo/node_modules/agentkeepalive/browser.js +0 -5
  321. package/demo/node_modules/agentkeepalive/index.d.ts +0 -65
  322. package/demo/node_modules/agentkeepalive/index.js +0 -5
  323. package/demo/node_modules/agentkeepalive/lib/agent.js +0 -402
  324. package/demo/node_modules/agentkeepalive/lib/constants.js +0 -14
  325. package/demo/node_modules/agentkeepalive/lib/https_agent.js +0 -51
  326. package/demo/node_modules/agentkeepalive/package.json +0 -56
  327. package/demo/node_modules/asynckit/LICENSE +0 -21
  328. package/demo/node_modules/asynckit/README.md +0 -233
  329. package/demo/node_modules/asynckit/bench.js +0 -76
  330. package/demo/node_modules/asynckit/index.js +0 -6
  331. package/demo/node_modules/asynckit/lib/abort.js +0 -29
  332. package/demo/node_modules/asynckit/lib/async.js +0 -34
  333. package/demo/node_modules/asynckit/lib/defer.js +0 -26
  334. package/demo/node_modules/asynckit/lib/iterate.js +0 -75
  335. package/demo/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  336. package/demo/node_modules/asynckit/lib/readable_parallel.js +0 -25
  337. package/demo/node_modules/asynckit/lib/readable_serial.js +0 -25
  338. package/demo/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  339. package/demo/node_modules/asynckit/lib/state.js +0 -37
  340. package/demo/node_modules/asynckit/lib/streamify.js +0 -141
  341. package/demo/node_modules/asynckit/lib/terminator.js +0 -29
  342. package/demo/node_modules/asynckit/package.json +0 -63
  343. package/demo/node_modules/asynckit/parallel.js +0 -43
  344. package/demo/node_modules/asynckit/serial.js +0 -17
  345. package/demo/node_modules/asynckit/serialOrdered.js +0 -75
  346. package/demo/node_modules/asynckit/stream.js +0 -21
  347. package/demo/node_modules/combined-stream/License +0 -19
  348. package/demo/node_modules/combined-stream/Readme.md +0 -138
  349. package/demo/node_modules/combined-stream/lib/combined_stream.js +0 -208
  350. package/demo/node_modules/combined-stream/package.json +0 -25
  351. package/demo/node_modules/combined-stream/yarn.lock +0 -17
  352. package/demo/node_modules/debug/LICENSE +0 -20
  353. package/demo/node_modules/debug/README.md +0 -481
  354. package/demo/node_modules/debug/node_modules/ms/index.js +0 -162
  355. package/demo/node_modules/debug/node_modules/ms/license.md +0 -21
  356. package/demo/node_modules/debug/node_modules/ms/package.json +0 -37
  357. package/demo/node_modules/debug/node_modules/ms/readme.md +0 -60
  358. package/demo/node_modules/debug/package.json +0 -59
  359. package/demo/node_modules/debug/src/browser.js +0 -269
  360. package/demo/node_modules/debug/src/common.js +0 -274
  361. package/demo/node_modules/debug/src/index.js +0 -10
  362. package/demo/node_modules/debug/src/node.js +0 -263
  363. package/demo/node_modules/delayed-stream/License +0 -19
  364. package/demo/node_modules/delayed-stream/Makefile +0 -7
  365. package/demo/node_modules/delayed-stream/Readme.md +0 -141
  366. package/demo/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  367. package/demo/node_modules/delayed-stream/package.json +0 -27
  368. package/demo/node_modules/dotenv/CHANGELOG.md +0 -475
  369. package/demo/node_modules/dotenv/LICENSE +0 -23
  370. package/demo/node_modules/dotenv/README-es.md +0 -448
  371. package/demo/node_modules/dotenv/README.md +0 -728
  372. package/demo/node_modules/dotenv/config.d.ts +0 -1
  373. package/demo/node_modules/dotenv/config.js +0 -9
  374. package/demo/node_modules/dotenv/lib/cli-options.js +0 -11
  375. package/demo/node_modules/dotenv/lib/env-options.js +0 -24
  376. package/demo/node_modules/dotenv/lib/main.d.ts +0 -153
  377. package/demo/node_modules/dotenv/lib/main.js +0 -361
  378. package/demo/node_modules/dotenv/package.json +0 -65
  379. package/demo/node_modules/event-target-shim/LICENSE +0 -22
  380. package/demo/node_modules/event-target-shim/README.md +0 -293
  381. package/demo/node_modules/event-target-shim/index.d.ts +0 -399
  382. package/demo/node_modules/event-target-shim/package.json +0 -82
  383. package/demo/node_modules/form-data/License +0 -19
  384. package/demo/node_modules/form-data/README.md.bak +0 -358
  385. package/demo/node_modules/form-data/Readme.md +0 -358
  386. package/demo/node_modules/form-data/index.d.ts +0 -62
  387. package/demo/node_modules/form-data/lib/browser.js +0 -2
  388. package/demo/node_modules/form-data/lib/form_data.js +0 -501
  389. package/demo/node_modules/form-data/lib/populate.js +0 -10
  390. package/demo/node_modules/form-data/package.json +0 -68
  391. package/demo/node_modules/form-data-encoder/@type/FileLike.d.ts +0 -23
  392. package/demo/node_modules/form-data-encoder/@type/FormDataEncoder.d.ts +0 -160
  393. package/demo/node_modules/form-data-encoder/@type/FormDataLike.d.ts +0 -40
  394. package/demo/node_modules/form-data-encoder/@type/index.d.ts +0 -5
  395. package/demo/node_modules/form-data-encoder/@type/util/createBoundary.d.ts +0 -13
  396. package/demo/node_modules/form-data-encoder/@type/util/escapeName.d.ts +0 -11
  397. package/demo/node_modules/form-data-encoder/@type/util/isFileLike.d.ts +0 -28
  398. package/demo/node_modules/form-data-encoder/@type/util/isFormData.d.ts +0 -15
  399. package/demo/node_modules/form-data-encoder/@type/util/isFunction.d.ts +0 -7
  400. package/demo/node_modules/form-data-encoder/@type/util/isPlainObject.d.ts +0 -2
  401. package/demo/node_modules/form-data-encoder/@type/util/normalizeValue.d.ts +0 -11
  402. package/demo/node_modules/form-data-encoder/lib/cjs/FileLike.js +0 -2
  403. package/demo/node_modules/form-data-encoder/lib/cjs/FormDataEncoder.js +0 -126
  404. package/demo/node_modules/form-data-encoder/lib/cjs/FormDataLike.js +0 -2
  405. package/demo/node_modules/form-data-encoder/lib/cjs/index.js +0 -17
  406. package/demo/node_modules/form-data-encoder/lib/cjs/package.json +0 -3
  407. package/demo/node_modules/form-data-encoder/lib/cjs/util/createBoundary.js +0 -12
  408. package/demo/node_modules/form-data-encoder/lib/cjs/util/escapeName.js +0 -7
  409. package/demo/node_modules/form-data-encoder/lib/cjs/util/isFileLike.js +0 -16
  410. package/demo/node_modules/form-data-encoder/lib/cjs/util/isFormData.js +0 -16
  411. package/demo/node_modules/form-data-encoder/lib/cjs/util/isFunction.js +0 -4
  412. package/demo/node_modules/form-data-encoder/lib/cjs/util/isPlainObject.js +0 -15
  413. package/demo/node_modules/form-data-encoder/lib/cjs/util/normalizeValue.js +0 -11
  414. package/demo/node_modules/form-data-encoder/lib/esm/FileLike.js +0 -1
  415. package/demo/node_modules/form-data-encoder/lib/esm/FormDataEncoder.js +0 -119
  416. package/demo/node_modules/form-data-encoder/lib/esm/FormDataLike.js +0 -1
  417. package/demo/node_modules/form-data-encoder/lib/esm/index.js +0 -5
  418. package/demo/node_modules/form-data-encoder/lib/esm/package.json +0 -3
  419. package/demo/node_modules/form-data-encoder/lib/esm/util/createBoundary.js +0 -10
  420. package/demo/node_modules/form-data-encoder/lib/esm/util/escapeName.js +0 -5
  421. package/demo/node_modules/form-data-encoder/lib/esm/util/isFileLike.js +0 -9
  422. package/demo/node_modules/form-data-encoder/lib/esm/util/isFormData.js +0 -9
  423. package/demo/node_modules/form-data-encoder/lib/esm/util/isFunction.js +0 -2
  424. package/demo/node_modules/form-data-encoder/lib/esm/util/isPlainObject.js +0 -13
  425. package/demo/node_modules/form-data-encoder/lib/esm/util/normalizeValue.js +0 -9
  426. package/demo/node_modules/form-data-encoder/license +0 -21
  427. package/demo/node_modules/form-data-encoder/package.json +0 -63
  428. package/demo/node_modules/form-data-encoder/readme.md +0 -366
  429. package/demo/node_modules/formdata-node/@type/Blob.d.ts +0 -66
  430. package/demo/node_modules/formdata-node/@type/BlobPart.d.ts +0 -2
  431. package/demo/node_modules/formdata-node/@type/File.d.ts +0 -53
  432. package/demo/node_modules/formdata-node/@type/FormData.d.ts +0 -105
  433. package/demo/node_modules/formdata-node/@type/blobHelpers.d.ts +0 -9
  434. package/demo/node_modules/formdata-node/@type/browser.d.ts +0 -10
  435. package/demo/node_modules/formdata-node/@type/deprecateConstructorEntries.d.ts +0 -1
  436. package/demo/node_modules/formdata-node/@type/fileFromPath.d.ts +0 -55
  437. package/demo/node_modules/formdata-node/@type/index.d.ts +0 -3
  438. package/demo/node_modules/formdata-node/@type/isBlob.d.ts +0 -2
  439. package/demo/node_modules/formdata-node/@type/isFile.d.ts +0 -7
  440. package/demo/node_modules/formdata-node/@type/isFunction.d.ts +0 -1
  441. package/demo/node_modules/formdata-node/@type/isPlainObject.d.ts +0 -2
  442. package/demo/node_modules/formdata-node/lib/cjs/Blob.js +0 -122
  443. package/demo/node_modules/formdata-node/lib/cjs/BlobPart.js +0 -2
  444. package/demo/node_modules/formdata-node/lib/cjs/File.js +0 -52
  445. package/demo/node_modules/formdata-node/lib/cjs/FormData.js +0 -148
  446. package/demo/node_modules/formdata-node/lib/cjs/blobHelpers.js +0 -80
  447. package/demo/node_modules/formdata-node/lib/cjs/browser.js +0 -13
  448. package/demo/node_modules/formdata-node/lib/cjs/deprecateConstructorEntries.js +0 -6
  449. package/demo/node_modules/formdata-node/lib/cjs/fileFromPath.js +0 -97
  450. package/demo/node_modules/formdata-node/lib/cjs/index.js +0 -15
  451. package/demo/node_modules/formdata-node/lib/cjs/isBlob.js +0 -6
  452. package/demo/node_modules/formdata-node/lib/cjs/isFile.js +0 -6
  453. package/demo/node_modules/formdata-node/lib/cjs/isFunction.js +0 -5
  454. package/demo/node_modules/formdata-node/lib/cjs/isPlainObject.js +0 -15
  455. package/demo/node_modules/formdata-node/lib/cjs/package.json +0 -3
  456. package/demo/node_modules/formdata-node/lib/esm/Blob.js +0 -118
  457. package/demo/node_modules/formdata-node/lib/esm/BlobPart.js +0 -1
  458. package/demo/node_modules/formdata-node/lib/esm/File.js +0 -48
  459. package/demo/node_modules/formdata-node/lib/esm/FormData.js +0 -144
  460. package/demo/node_modules/formdata-node/lib/esm/blobHelpers.js +0 -75
  461. package/demo/node_modules/formdata-node/lib/esm/browser.js +0 -10
  462. package/demo/node_modules/formdata-node/lib/esm/deprecateConstructorEntries.js +0 -3
  463. package/demo/node_modules/formdata-node/lib/esm/fileFromPath.js +0 -79
  464. package/demo/node_modules/formdata-node/lib/esm/index.js +0 -3
  465. package/demo/node_modules/formdata-node/lib/esm/isBlob.js +0 -2
  466. package/demo/node_modules/formdata-node/lib/esm/isFile.js +0 -2
  467. package/demo/node_modules/formdata-node/lib/esm/isFunction.js +0 -1
  468. package/demo/node_modules/formdata-node/lib/esm/isPlainObject.js +0 -13
  469. package/demo/node_modules/formdata-node/lib/esm/package.json +0 -3
  470. package/demo/node_modules/formdata-node/lib/node-domexception.d.ts +0 -5
  471. package/demo/node_modules/formdata-node/license +0 -21
  472. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/LICENSE +0 -22
  473. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/README.md +0 -135
  474. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/es5/package.json +0 -6
  475. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/package.json +0 -101
  476. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/polyfill/es5/package.json +0 -5
  477. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/polyfill/package.json +0 -5
  478. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/polyfill.d.ts +0 -62
  479. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts +0 -775
  480. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/tsdoc-metadata.json +0 -11
  481. package/demo/node_modules/formdata-node/package.json +0 -94
  482. package/demo/node_modules/formdata-node/readme.md +0 -444
  483. package/demo/node_modules/humanize-ms/History.md +0 -25
  484. package/demo/node_modules/humanize-ms/LICENSE +0 -17
  485. package/demo/node_modules/humanize-ms/README.md +0 -40
  486. package/demo/node_modules/humanize-ms/index.js +0 -24
  487. package/demo/node_modules/humanize-ms/package.json +0 -37
  488. package/demo/node_modules/lemonlog/README.md +0 -133
  489. package/demo/node_modules/lemonlog/demo/demo.js +0 -31
  490. package/demo/node_modules/lemonlog/index.js +0 -94
  491. package/demo/node_modules/lemonlog/package.json +0 -31
  492. package/demo/node_modules/mime-db/HISTORY.md +0 -507
  493. package/demo/node_modules/mime-db/LICENSE +0 -23
  494. package/demo/node_modules/mime-db/README.md +0 -100
  495. package/demo/node_modules/mime-db/db.json +0 -8519
  496. package/demo/node_modules/mime-db/index.js +0 -12
  497. package/demo/node_modules/mime-db/package.json +0 -60
  498. package/demo/node_modules/mime-types/HISTORY.md +0 -397
  499. package/demo/node_modules/mime-types/LICENSE +0 -23
  500. package/demo/node_modules/mime-types/README.md +0 -113
  501. package/demo/node_modules/mime-types/index.js +0 -188
  502. package/demo/node_modules/mime-types/package.json +0 -44
  503. package/demo/node_modules/ms/index.js +0 -162
  504. package/demo/node_modules/ms/license.md +0 -21
  505. package/demo/node_modules/ms/package.json +0 -38
  506. package/demo/node_modules/ms/readme.md +0 -59
  507. package/demo/node_modules/node-domexception/.history/README_20210527203617.md +0 -2
  508. package/demo/node_modules/node-domexception/.history/README_20210527212714.md +0 -41
  509. package/demo/node_modules/node-domexception/.history/README_20210527213345.md +0 -36
  510. package/demo/node_modules/node-domexception/.history/README_20210527213411.md +0 -36
  511. package/demo/node_modules/node-domexception/.history/README_20210527213803.md +0 -36
  512. package/demo/node_modules/node-domexception/.history/README_20210527214323.md +0 -38
  513. package/demo/node_modules/node-domexception/.history/README_20210527214408.md +0 -38
  514. package/demo/node_modules/node-domexception/.history/index_20210527203842.js +0 -0
  515. package/demo/node_modules/node-domexception/.history/index_20210527203947.js +0 -8
  516. package/demo/node_modules/node-domexception/.history/index_20210527204259.js +0 -9
  517. package/demo/node_modules/node-domexception/.history/index_20210527204418.js +0 -9
  518. package/demo/node_modules/node-domexception/.history/index_20210527204756.js +0 -11
  519. package/demo/node_modules/node-domexception/.history/index_20210527204833.js +0 -11
  520. package/demo/node_modules/node-domexception/.history/index_20210527211208.js +0 -15
  521. package/demo/node_modules/node-domexception/.history/index_20210527211248.js +0 -15
  522. package/demo/node_modules/node-domexception/.history/index_20210527212722.js +0 -23
  523. package/demo/node_modules/node-domexception/.history/index_20210527212731.js +0 -23
  524. package/demo/node_modules/node-domexception/.history/index_20210527212746.js +0 -15
  525. package/demo/node_modules/node-domexception/.history/index_20210527212900.js +0 -16
  526. package/demo/node_modules/node-domexception/.history/index_20210527213022.js +0 -16
  527. package/demo/node_modules/node-domexception/.history/index_20210527213822.js +0 -16
  528. package/demo/node_modules/node-domexception/.history/index_20210527213843.js +0 -17
  529. package/demo/node_modules/node-domexception/.history/index_20210527213852.js +0 -17
  530. package/demo/node_modules/node-domexception/.history/index_20210527213910.js +0 -16
  531. package/demo/node_modules/node-domexception/.history/index_20210527214034.js +0 -16
  532. package/demo/node_modules/node-domexception/.history/index_20210527214643.js +0 -41
  533. package/demo/node_modules/node-domexception/.history/index_20210527214654.js +0 -41
  534. package/demo/node_modules/node-domexception/.history/index_20210527214700.js +0 -16
  535. package/demo/node_modules/node-domexception/.history/package_20210527203733.json +0 -19
  536. package/demo/node_modules/node-domexception/.history/package_20210527203825.json +0 -16
  537. package/demo/node_modules/node-domexception/.history/package_20210527204621.json +0 -19
  538. package/demo/node_modules/node-domexception/.history/package_20210527204913.json +0 -25
  539. package/demo/node_modules/node-domexception/.history/package_20210527204925.json +0 -25
  540. package/demo/node_modules/node-domexception/.history/package_20210527205145.json +0 -29
  541. package/demo/node_modules/node-domexception/.history/package_20210527205156.json +0 -29
  542. package/demo/node_modules/node-domexception/.history/test_20210527205603.js +0 -0
  543. package/demo/node_modules/node-domexception/.history/test_20210527205957.js +0 -3
  544. package/demo/node_modules/node-domexception/.history/test_20210527210021.js +0 -3
  545. package/demo/node_modules/node-domexception/LICENSE +0 -21
  546. package/demo/node_modules/node-domexception/README.md +0 -46
  547. package/demo/node_modules/node-domexception/index.js +0 -16
  548. package/demo/node_modules/node-domexception/package.json +0 -29
  549. package/demo/node_modules/node-fetch/LICENSE.md +0 -22
  550. package/demo/node_modules/node-fetch/README.md +0 -634
  551. package/demo/node_modules/node-fetch/browser.js +0 -25
  552. package/demo/node_modules/node-fetch/lib/index.es.js +0 -1777
  553. package/demo/node_modules/node-fetch/lib/index.js +0 -1787
  554. package/demo/node_modules/node-fetch/lib/index.mjs +0 -1775
  555. package/demo/node_modules/node-fetch/package.json +0 -89
  556. package/demo/node_modules/openai/CHANGELOG.md +0 -1176
  557. package/demo/node_modules/openai/LICENSE +0 -201
  558. package/demo/node_modules/openai/README.md +0 -616
  559. package/demo/node_modules/openai/_shims/MultipartBody.d.ts +0 -9
  560. package/demo/node_modules/openai/_shims/MultipartBody.d.ts.map +0 -1
  561. package/demo/node_modules/openai/_shims/MultipartBody.js +0 -16
  562. package/demo/node_modules/openai/_shims/MultipartBody.js.map +0 -1
  563. package/demo/node_modules/openai/_shims/MultipartBody.mjs +0 -12
  564. package/demo/node_modules/openai/_shims/MultipartBody.mjs.map +0 -1
  565. package/demo/node_modules/openai/_shims/README.md +0 -46
  566. package/demo/node_modules/openai/_shims/auto/runtime-bun.d.ts +0 -5
  567. package/demo/node_modules/openai/_shims/auto/runtime-bun.d.ts.map +0 -1
  568. package/demo/node_modules/openai/_shims/auto/runtime-bun.js +0 -21
  569. package/demo/node_modules/openai/_shims/auto/runtime-bun.js.map +0 -1
  570. package/demo/node_modules/openai/_shims/auto/runtime-bun.mjs +0 -2
  571. package/demo/node_modules/openai/_shims/auto/runtime-bun.mjs.map +0 -1
  572. package/demo/node_modules/openai/_shims/auto/runtime-node.d.ts +0 -5
  573. package/demo/node_modules/openai/_shims/auto/runtime-node.d.ts.map +0 -1
  574. package/demo/node_modules/openai/_shims/auto/runtime-node.js +0 -21
  575. package/demo/node_modules/openai/_shims/auto/runtime-node.js.map +0 -1
  576. package/demo/node_modules/openai/_shims/auto/runtime-node.mjs +0 -2
  577. package/demo/node_modules/openai/_shims/auto/runtime-node.mjs.map +0 -1
  578. package/demo/node_modules/openai/_shims/auto/runtime.d.ts +0 -5
  579. package/demo/node_modules/openai/_shims/auto/runtime.d.ts.map +0 -1
  580. package/demo/node_modules/openai/_shims/auto/runtime.js +0 -21
  581. package/demo/node_modules/openai/_shims/auto/runtime.js.map +0 -1
  582. package/demo/node_modules/openai/_shims/auto/runtime.mjs +0 -2
  583. package/demo/node_modules/openai/_shims/auto/runtime.mjs.map +0 -1
  584. package/demo/node_modules/openai/_shims/auto/types-node.d.ts +0 -5
  585. package/demo/node_modules/openai/_shims/auto/types-node.d.ts.map +0 -1
  586. package/demo/node_modules/openai/_shims/auto/types-node.js +0 -21
  587. package/demo/node_modules/openai/_shims/auto/types-node.js.map +0 -1
  588. package/demo/node_modules/openai/_shims/auto/types-node.mjs +0 -2
  589. package/demo/node_modules/openai/_shims/auto/types-node.mjs.map +0 -1
  590. package/demo/node_modules/openai/_shims/auto/types.d.ts +0 -101
  591. package/demo/node_modules/openai/_shims/auto/types.js +0 -3
  592. package/demo/node_modules/openai/_shims/auto/types.mjs +0 -3
  593. package/demo/node_modules/openai/_shims/bun-runtime.d.ts +0 -6
  594. package/demo/node_modules/openai/_shims/bun-runtime.d.ts.map +0 -1
  595. package/demo/node_modules/openai/_shims/bun-runtime.js +0 -14
  596. package/demo/node_modules/openai/_shims/bun-runtime.js.map +0 -1
  597. package/demo/node_modules/openai/_shims/bun-runtime.mjs +0 -10
  598. package/demo/node_modules/openai/_shims/bun-runtime.mjs.map +0 -1
  599. package/demo/node_modules/openai/_shims/index.d.ts +0 -81
  600. package/demo/node_modules/openai/_shims/index.js +0 -13
  601. package/demo/node_modules/openai/_shims/index.mjs +0 -7
  602. package/demo/node_modules/openai/_shims/manual-types.d.ts +0 -12
  603. package/demo/node_modules/openai/_shims/manual-types.js +0 -3
  604. package/demo/node_modules/openai/_shims/manual-types.mjs +0 -3
  605. package/demo/node_modules/openai/_shims/node-runtime.d.ts +0 -3
  606. package/demo/node_modules/openai/_shims/node-runtime.d.ts.map +0 -1
  607. package/demo/node_modules/openai/_shims/node-runtime.js +0 -90
  608. package/demo/node_modules/openai/_shims/node-runtime.js.map +0 -1
  609. package/demo/node_modules/openai/_shims/node-runtime.mjs +0 -56
  610. package/demo/node_modules/openai/_shims/node-runtime.mjs.map +0 -1
  611. package/demo/node_modules/openai/_shims/node-types.d.ts +0 -42
  612. package/demo/node_modules/openai/_shims/node-types.js +0 -3
  613. package/demo/node_modules/openai/_shims/node-types.mjs +0 -3
  614. package/demo/node_modules/openai/_shims/registry.d.ts +0 -37
  615. package/demo/node_modules/openai/_shims/registry.d.ts.map +0 -1
  616. package/demo/node_modules/openai/_shims/registry.js +0 -41
  617. package/demo/node_modules/openai/_shims/registry.js.map +0 -1
  618. package/demo/node_modules/openai/_shims/registry.mjs +0 -37
  619. package/demo/node_modules/openai/_shims/registry.mjs.map +0 -1
  620. package/demo/node_modules/openai/_shims/web-runtime.d.ts +0 -5
  621. package/demo/node_modules/openai/_shims/web-runtime.d.ts.map +0 -1
  622. package/demo/node_modules/openai/_shims/web-runtime.js +0 -78
  623. package/demo/node_modules/openai/_shims/web-runtime.js.map +0 -1
  624. package/demo/node_modules/openai/_shims/web-runtime.mjs +0 -71
  625. package/demo/node_modules/openai/_shims/web-runtime.mjs.map +0 -1
  626. package/demo/node_modules/openai/_shims/web-types.d.ts +0 -83
  627. package/demo/node_modules/openai/_shims/web-types.js +0 -3
  628. package/demo/node_modules/openai/_shims/web-types.mjs +0 -3
  629. package/demo/node_modules/openai/bin/cli +0 -49
  630. package/demo/node_modules/openai/core.d.ts +0 -239
  631. package/demo/node_modules/openai/core.d.ts.map +0 -1
  632. package/demo/node_modules/openai/core.js +0 -879
  633. package/demo/node_modules/openai/core.js.map +0 -1
  634. package/demo/node_modules/openai/core.mjs +0 -848
  635. package/demo/node_modules/openai/core.mjs.map +0 -1
  636. package/demo/node_modules/openai/error.d.ts +0 -57
  637. package/demo/node_modules/openai/error.d.ts.map +0 -1
  638. package/demo/node_modules/openai/error.js +0 -148
  639. package/demo/node_modules/openai/error.js.map +0 -1
  640. package/demo/node_modules/openai/error.mjs +0 -132
  641. package/demo/node_modules/openai/error.mjs.map +0 -1
  642. package/demo/node_modules/openai/index.d.mts +0 -267
  643. package/demo/node_modules/openai/index.d.ts +0 -267
  644. package/demo/node_modules/openai/index.d.ts.map +0 -1
  645. package/demo/node_modules/openai/index.js +0 -262
  646. package/demo/node_modules/openai/index.js.map +0 -1
  647. package/demo/node_modules/openai/index.mjs +0 -232
  648. package/demo/node_modules/openai/index.mjs.map +0 -1
  649. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.d.ts +0 -74
  650. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.d.ts.map +0 -1
  651. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.js +0 -246
  652. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.js.map +0 -1
  653. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.mjs +0 -242
  654. package/demo/node_modules/openai/lib/AbstractAssistantStreamRunner.mjs.map +0 -1
  655. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +0 -114
  656. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map +0 -1
  657. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.js +0 -519
  658. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.js.map +0 -1
  659. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +0 -515
  660. package/demo/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map +0 -1
  661. package/demo/node_modules/openai/lib/AssistantStream.d.ts +0 -58
  662. package/demo/node_modules/openai/lib/AssistantStream.d.ts.map +0 -1
  663. package/demo/node_modules/openai/lib/AssistantStream.js +0 -548
  664. package/demo/node_modules/openai/lib/AssistantStream.js.map +0 -1
  665. package/demo/node_modules/openai/lib/AssistantStream.mjs +0 -521
  666. package/demo/node_modules/openai/lib/AssistantStream.mjs.map +0 -1
  667. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.d.ts +0 -2
  668. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.d.ts.map +0 -1
  669. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.js +0 -2177
  670. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.js.map +0 -1
  671. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.mjs +0 -2172
  672. package/demo/node_modules/openai/lib/ChatCompletionRunFunctions.test.mjs.map +0 -1
  673. package/demo/node_modules/openai/lib/ChatCompletionRunner.d.ts +0 -19
  674. package/demo/node_modules/openai/lib/ChatCompletionRunner.d.ts.map +0 -1
  675. package/demo/node_modules/openai/lib/ChatCompletionRunner.js +0 -34
  676. package/demo/node_modules/openai/lib/ChatCompletionRunner.js.map +0 -1
  677. package/demo/node_modules/openai/lib/ChatCompletionRunner.mjs +0 -30
  678. package/demo/node_modules/openai/lib/ChatCompletionRunner.mjs.map +0 -1
  679. package/demo/node_modules/openai/lib/ChatCompletionStream.d.ts +0 -149
  680. package/demo/node_modules/openai/lib/ChatCompletionStream.d.ts.map +0 -1
  681. package/demo/node_modules/openai/lib/ChatCompletionStream.js +0 -312
  682. package/demo/node_modules/openai/lib/ChatCompletionStream.js.map +0 -1
  683. package/demo/node_modules/openai/lib/ChatCompletionStream.mjs +0 -308
  684. package/demo/node_modules/openai/lib/ChatCompletionStream.mjs.map +0 -1
  685. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +0 -22
  686. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map +0 -1
  687. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.js +0 -32
  688. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map +0 -1
  689. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +0 -28
  690. package/demo/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map +0 -1
  691. package/demo/node_modules/openai/lib/RunnableFunction.d.ts +0 -95
  692. package/demo/node_modules/openai/lib/RunnableFunction.d.ts.map +0 -1
  693. package/demo/node_modules/openai/lib/RunnableFunction.js +0 -35
  694. package/demo/node_modules/openai/lib/RunnableFunction.js.map +0 -1
  695. package/demo/node_modules/openai/lib/RunnableFunction.mjs +0 -29
  696. package/demo/node_modules/openai/lib/RunnableFunction.mjs.map +0 -1
  697. package/demo/node_modules/openai/lib/Util.d.ts +0 -5
  698. package/demo/node_modules/openai/lib/Util.d.ts.map +0 -1
  699. package/demo/node_modules/openai/lib/Util.js +0 -26
  700. package/demo/node_modules/openai/lib/Util.js.map +0 -1
  701. package/demo/node_modules/openai/lib/Util.mjs +0 -22
  702. package/demo/node_modules/openai/lib/Util.mjs.map +0 -1
  703. package/demo/node_modules/openai/lib/chatCompletionUtils.d.ts +0 -6
  704. package/demo/node_modules/openai/lib/chatCompletionUtils.d.ts.map +0 -1
  705. package/demo/node_modules/openai/lib/chatCompletionUtils.js +0 -20
  706. package/demo/node_modules/openai/lib/chatCompletionUtils.js.map +0 -1
  707. package/demo/node_modules/openai/lib/chatCompletionUtils.mjs +0 -13
  708. package/demo/node_modules/openai/lib/chatCompletionUtils.mjs.map +0 -1
  709. package/demo/node_modules/openai/lib/jsonschema.d.ts +0 -106
  710. package/demo/node_modules/openai/lib/jsonschema.d.ts.map +0 -1
  711. package/demo/node_modules/openai/lib/jsonschema.js +0 -11
  712. package/demo/node_modules/openai/lib/jsonschema.js.map +0 -1
  713. package/demo/node_modules/openai/lib/jsonschema.mjs +0 -10
  714. package/demo/node_modules/openai/lib/jsonschema.mjs.map +0 -1
  715. package/demo/node_modules/openai/package.json +0 -105
  716. package/demo/node_modules/openai/pagination.d.ts +0 -37
  717. package/demo/node_modules/openai/pagination.d.ts.map +0 -1
  718. package/demo/node_modules/openai/pagination.js +0 -64
  719. package/demo/node_modules/openai/pagination.js.map +0 -1
  720. package/demo/node_modules/openai/pagination.mjs +0 -59
  721. package/demo/node_modules/openai/pagination.mjs.map +0 -1
  722. package/demo/node_modules/openai/resource.d.ts +0 -6
  723. package/demo/node_modules/openai/resource.d.ts.map +0 -1
  724. package/demo/node_modules/openai/resource.js +0 -11
  725. package/demo/node_modules/openai/resource.js.map +0 -1
  726. package/demo/node_modules/openai/resource.mjs +0 -7
  727. package/demo/node_modules/openai/resource.mjs.map +0 -1
  728. package/demo/node_modules/openai/resources/audio/audio.d.ts +0 -20
  729. package/demo/node_modules/openai/resources/audio/audio.d.ts.map +0 -1
  730. package/demo/node_modules/openai/resources/audio/audio.js +0 -46
  731. package/demo/node_modules/openai/resources/audio/audio.js.map +0 -1
  732. package/demo/node_modules/openai/resources/audio/audio.mjs +0 -19
  733. package/demo/node_modules/openai/resources/audio/audio.mjs.map +0 -1
  734. package/demo/node_modules/openai/resources/audio/index.d.ts +0 -5
  735. package/demo/node_modules/openai/resources/audio/index.d.ts.map +0 -1
  736. package/demo/node_modules/openai/resources/audio/index.js +0 -13
  737. package/demo/node_modules/openai/resources/audio/index.js.map +0 -1
  738. package/demo/node_modules/openai/resources/audio/index.mjs +0 -6
  739. package/demo/node_modules/openai/resources/audio/index.mjs.map +0 -1
  740. package/demo/node_modules/openai/resources/audio/speech.d.ts +0 -42
  741. package/demo/node_modules/openai/resources/audio/speech.d.ts.map +0 -1
  742. package/demo/node_modules/openai/resources/audio/speech.js +0 -17
  743. package/demo/node_modules/openai/resources/audio/speech.js.map +0 -1
  744. package/demo/node_modules/openai/resources/audio/speech.mjs +0 -13
  745. package/demo/node_modules/openai/resources/audio/speech.mjs.map +0 -1
  746. package/demo/node_modules/openai/resources/audio/transcriptions.d.ts +0 -71
  747. package/demo/node_modules/openai/resources/audio/transcriptions.d.ts.map +0 -1
  748. package/demo/node_modules/openai/resources/audio/transcriptions.js +0 -18
  749. package/demo/node_modules/openai/resources/audio/transcriptions.js.map +0 -1
  750. package/demo/node_modules/openai/resources/audio/transcriptions.mjs +0 -14
  751. package/demo/node_modules/openai/resources/audio/transcriptions.mjs.map +0 -1
  752. package/demo/node_modules/openai/resources/audio/translations.d.ts +0 -50
  753. package/demo/node_modules/openai/resources/audio/translations.d.ts.map +0 -1
  754. package/demo/node_modules/openai/resources/audio/translations.js +0 -18
  755. package/demo/node_modules/openai/resources/audio/translations.js.map +0 -1
  756. package/demo/node_modules/openai/resources/audio/translations.mjs +0 -14
  757. package/demo/node_modules/openai/resources/audio/translations.mjs.map +0 -1
  758. package/demo/node_modules/openai/resources/batches.d.ts +0 -189
  759. package/demo/node_modules/openai/resources/batches.d.ts.map +0 -1
  760. package/demo/node_modules/openai/resources/batches.js +0 -65
  761. package/demo/node_modules/openai/resources/batches.js.map +0 -1
  762. package/demo/node_modules/openai/resources/batches.mjs +0 -37
  763. package/demo/node_modules/openai/resources/batches.mjs.map +0 -1
  764. package/demo/node_modules/openai/resources/beta/assistants.d.ts +0 -1048
  765. package/demo/node_modules/openai/resources/beta/assistants.d.ts.map +0 -1
  766. package/demo/node_modules/openai/resources/beta/assistants.js +0 -89
  767. package/demo/node_modules/openai/resources/beta/assistants.js.map +0 -1
  768. package/demo/node_modules/openai/resources/beta/assistants.mjs +0 -61
  769. package/demo/node_modules/openai/resources/beta/assistants.mjs.map +0 -1
  770. package/demo/node_modules/openai/resources/beta/beta.d.ts +0 -53
  771. package/demo/node_modules/openai/resources/beta/beta.d.ts.map +0 -1
  772. package/demo/node_modules/openai/resources/beta/beta.js +0 -51
  773. package/demo/node_modules/openai/resources/beta/beta.js.map +0 -1
  774. package/demo/node_modules/openai/resources/beta/beta.mjs +0 -24
  775. package/demo/node_modules/openai/resources/beta/beta.mjs.map +0 -1
  776. package/demo/node_modules/openai/resources/beta/chat/chat.d.ts +0 -9
  777. package/demo/node_modules/openai/resources/beta/chat/chat.d.ts.map +0 -1
  778. package/demo/node_modules/openai/resources/beta/chat/chat.js +0 -40
  779. package/demo/node_modules/openai/resources/beta/chat/chat.js.map +0 -1
  780. package/demo/node_modules/openai/resources/beta/chat/chat.mjs +0 -13
  781. package/demo/node_modules/openai/resources/beta/chat/chat.mjs.map +0 -1
  782. package/demo/node_modules/openai/resources/beta/chat/completions.d.ts +0 -37
  783. package/demo/node_modules/openai/resources/beta/chat/completions.d.ts.map +0 -1
  784. package/demo/node_modules/openai/resources/beta/chat/completions.js +0 -39
  785. package/demo/node_modules/openai/resources/beta/chat/completions.js.map +0 -1
  786. package/demo/node_modules/openai/resources/beta/chat/completions.mjs +0 -30
  787. package/demo/node_modules/openai/resources/beta/chat/completions.mjs.map +0 -1
  788. package/demo/node_modules/openai/resources/beta/chat/index.d.ts +0 -3
  789. package/demo/node_modules/openai/resources/beta/chat/index.d.ts.map +0 -1
  790. package/demo/node_modules/openai/resources/beta/chat/index.js +0 -9
  791. package/demo/node_modules/openai/resources/beta/chat/index.js.map +0 -1
  792. package/demo/node_modules/openai/resources/beta/chat/index.mjs +0 -4
  793. package/demo/node_modules/openai/resources/beta/chat/index.mjs.map +0 -1
  794. package/demo/node_modules/openai/resources/beta/index.d.ts +0 -6
  795. package/demo/node_modules/openai/resources/beta/index.d.ts.map +0 -1
  796. package/demo/node_modules/openai/resources/beta/index.js +0 -17
  797. package/demo/node_modules/openai/resources/beta/index.js.map +0 -1
  798. package/demo/node_modules/openai/resources/beta/index.mjs +0 -7
  799. package/demo/node_modules/openai/resources/beta/index.mjs.map +0 -1
  800. package/demo/node_modules/openai/resources/beta/threads/index.d.ts +0 -4
  801. package/demo/node_modules/openai/resources/beta/threads/index.d.ts.map +0 -1
  802. package/demo/node_modules/openai/resources/beta/threads/index.js +0 -13
  803. package/demo/node_modules/openai/resources/beta/threads/index.js.map +0 -1
  804. package/demo/node_modules/openai/resources/beta/threads/index.mjs +0 -5
  805. package/demo/node_modules/openai/resources/beta/threads/index.mjs.map +0 -1
  806. package/demo/node_modules/openai/resources/beta/threads/messages.d.ts +0 -552
  807. package/demo/node_modules/openai/resources/beta/threads/messages.d.ts.map +0 -1
  808. package/demo/node_modules/openai/resources/beta/threads/messages.js +0 -89
  809. package/demo/node_modules/openai/resources/beta/threads/messages.js.map +0 -1
  810. package/demo/node_modules/openai/resources/beta/threads/messages.mjs +0 -61
  811. package/demo/node_modules/openai/resources/beta/threads/messages.mjs.map +0 -1
  812. package/demo/node_modules/openai/resources/beta/threads/runs/index.d.ts +0 -3
  813. package/demo/node_modules/openai/resources/beta/threads/runs/index.d.ts.map +0 -1
  814. package/demo/node_modules/openai/resources/beta/threads/runs/index.js +0 -11
  815. package/demo/node_modules/openai/resources/beta/threads/runs/index.js.map +0 -1
  816. package/demo/node_modules/openai/resources/beta/threads/runs/index.mjs +0 -4
  817. package/demo/node_modules/openai/resources/beta/threads/runs/index.mjs.map +0 -1
  818. package/demo/node_modules/openai/resources/beta/threads/runs/runs.d.ts +0 -1194
  819. package/demo/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map +0 -1
  820. package/demo/node_modules/openai/resources/beta/threads/runs/runs.js +0 -190
  821. package/demo/node_modules/openai/resources/beta/threads/runs/runs.js.map +0 -1
  822. package/demo/node_modules/openai/resources/beta/threads/runs/runs.mjs +0 -162
  823. package/demo/node_modules/openai/resources/beta/threads/runs/runs.mjs.map +0 -1
  824. package/demo/node_modules/openai/resources/beta/threads/runs/steps.d.ts +0 -520
  825. package/demo/node_modules/openai/resources/beta/threads/runs/steps.d.ts.map +0 -1
  826. package/demo/node_modules/openai/resources/beta/threads/runs/steps.js +0 -60
  827. package/demo/node_modules/openai/resources/beta/threads/runs/steps.js.map +0 -1
  828. package/demo/node_modules/openai/resources/beta/threads/runs/steps.mjs +0 -32
  829. package/demo/node_modules/openai/resources/beta/threads/runs/steps.mjs.map +0 -1
  830. package/demo/node_modules/openai/resources/beta/threads/threads.d.ts +0 -1240
  831. package/demo/node_modules/openai/resources/beta/threads/threads.d.ts.map +0 -1
  832. package/demo/node_modules/openai/resources/beta/threads/threads.js +0 -108
  833. package/demo/node_modules/openai/resources/beta/threads/threads.js.map +0 -1
  834. package/demo/node_modules/openai/resources/beta/threads/threads.mjs +0 -81
  835. package/demo/node_modules/openai/resources/beta/threads/threads.mjs.map +0 -1
  836. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.d.ts +0 -142
  837. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.d.ts.map +0 -1
  838. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.js +0 -129
  839. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.js.map +0 -1
  840. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.mjs +0 -125
  841. package/demo/node_modules/openai/resources/beta/vector-stores/file-batches.mjs.map +0 -1
  842. package/demo/node_modules/openai/resources/beta/vector-stores/files.d.ts +0 -154
  843. package/demo/node_modules/openai/resources/beta/vector-stores/files.d.ts.map +0 -1
  844. package/demo/node_modules/openai/resources/beta/vector-stores/files.js +0 -149
  845. package/demo/node_modules/openai/resources/beta/vector-stores/files.js.map +0 -1
  846. package/demo/node_modules/openai/resources/beta/vector-stores/files.mjs +0 -121
  847. package/demo/node_modules/openai/resources/beta/vector-stores/files.mjs.map +0 -1
  848. package/demo/node_modules/openai/resources/beta/vector-stores/index.d.ts +0 -4
  849. package/demo/node_modules/openai/resources/beta/vector-stores/index.d.ts.map +0 -1
  850. package/demo/node_modules/openai/resources/beta/vector-stores/index.js +0 -13
  851. package/demo/node_modules/openai/resources/beta/vector-stores/index.js.map +0 -1
  852. package/demo/node_modules/openai/resources/beta/vector-stores/index.mjs +0 -5
  853. package/demo/node_modules/openai/resources/beta/vector-stores/index.mjs.map +0 -1
  854. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.d.ts +0 -233
  855. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.d.ts.map +0 -1
  856. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.js +0 -99
  857. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.js.map +0 -1
  858. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.mjs +0 -71
  859. package/demo/node_modules/openai/resources/beta/vector-stores/vector-stores.mjs.map +0 -1
  860. package/demo/node_modules/openai/resources/chat/chat.d.ts +0 -42
  861. package/demo/node_modules/openai/resources/chat/chat.d.ts.map +0 -1
  862. package/demo/node_modules/openai/resources/chat/chat.js +0 -40
  863. package/demo/node_modules/openai/resources/chat/chat.js.map +0 -1
  864. package/demo/node_modules/openai/resources/chat/chat.mjs +0 -13
  865. package/demo/node_modules/openai/resources/chat/chat.mjs.map +0 -1
  866. package/demo/node_modules/openai/resources/chat/completions.d.ts +0 -845
  867. package/demo/node_modules/openai/resources/chat/completions.d.ts.map +0 -1
  868. package/demo/node_modules/openai/resources/chat/completions.js +0 -14
  869. package/demo/node_modules/openai/resources/chat/completions.js.map +0 -1
  870. package/demo/node_modules/openai/resources/chat/completions.mjs +0 -10
  871. package/demo/node_modules/openai/resources/chat/completions.mjs.map +0 -1
  872. package/demo/node_modules/openai/resources/chat/index.d.ts +0 -3
  873. package/demo/node_modules/openai/resources/chat/index.d.ts.map +0 -1
  874. package/demo/node_modules/openai/resources/chat/index.js +0 -9
  875. package/demo/node_modules/openai/resources/chat/index.js.map +0 -1
  876. package/demo/node_modules/openai/resources/chat/index.mjs +0 -4
  877. package/demo/node_modules/openai/resources/chat/index.mjs.map +0 -1
  878. package/demo/node_modules/openai/resources/completions.d.ts +0 -272
  879. package/demo/node_modules/openai/resources/completions.d.ts.map +0 -1
  880. package/demo/node_modules/openai/resources/completions.js +0 -14
  881. package/demo/node_modules/openai/resources/completions.js.map +0 -1
  882. package/demo/node_modules/openai/resources/completions.mjs +0 -10
  883. package/demo/node_modules/openai/resources/completions.mjs.map +0 -1
  884. package/demo/node_modules/openai/resources/embeddings.d.ts +0 -103
  885. package/demo/node_modules/openai/resources/embeddings.d.ts.map +0 -1
  886. package/demo/node_modules/openai/resources/embeddings.js +0 -17
  887. package/demo/node_modules/openai/resources/embeddings.js.map +0 -1
  888. package/demo/node_modules/openai/resources/embeddings.mjs +0 -13
  889. package/demo/node_modules/openai/resources/embeddings.mjs.map +0 -1
  890. package/demo/node_modules/openai/resources/files.d.ts +0 -140
  891. package/demo/node_modules/openai/resources/files.d.ts.map +0 -1
  892. package/demo/node_modules/openai/resources/files.js +0 -120
  893. package/demo/node_modules/openai/resources/files.js.map +0 -1
  894. package/demo/node_modules/openai/resources/files.mjs +0 -92
  895. package/demo/node_modules/openai/resources/files.mjs.map +0 -1
  896. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts +0 -19
  897. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts.map +0 -1
  898. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.js +0 -42
  899. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.js.map +0 -1
  900. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.mjs +0 -15
  901. package/demo/node_modules/openai/resources/fine-tuning/fine-tuning.mjs.map +0 -1
  902. package/demo/node_modules/openai/resources/fine-tuning/index.d.ts +0 -3
  903. package/demo/node_modules/openai/resources/fine-tuning/index.d.ts.map +0 -1
  904. package/demo/node_modules/openai/resources/fine-tuning/index.js +0 -11
  905. package/demo/node_modules/openai/resources/fine-tuning/index.js.map +0 -1
  906. package/demo/node_modules/openai/resources/fine-tuning/index.mjs +0 -4
  907. package/demo/node_modules/openai/resources/fine-tuning/index.mjs.map +0 -1
  908. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts +0 -69
  909. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts.map +0 -1
  910. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +0 -47
  911. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js.map +0 -1
  912. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs +0 -19
  913. package/demo/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs.map +0 -1
  914. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.d.ts +0 -3
  915. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.d.ts.map +0 -1
  916. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.js +0 -12
  917. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.js.map +0 -1
  918. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.mjs +0 -4
  919. package/demo/node_modules/openai/resources/fine-tuning/jobs/index.mjs.map +0 -1
  920. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts +0 -362
  921. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts.map +0 -1
  922. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.js +0 -93
  923. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.js.map +0 -1
  924. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs +0 -64
  925. package/demo/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs.map +0 -1
  926. package/demo/node_modules/openai/resources/images.d.ts +0 -174
  927. package/demo/node_modules/openai/resources/images.d.ts.map +0 -1
  928. package/demo/node_modules/openai/resources/images.js +0 -30
  929. package/demo/node_modules/openai/resources/images.js.map +0 -1
  930. package/demo/node_modules/openai/resources/images.mjs +0 -26
  931. package/demo/node_modules/openai/resources/images.mjs.map +0 -1
  932. package/demo/node_modules/openai/resources/index.d.ts +0 -13
  933. package/demo/node_modules/openai/resources/index.d.ts.map +0 -1
  934. package/demo/node_modules/openai/resources/index.js +0 -44
  935. package/demo/node_modules/openai/resources/index.js.map +0 -1
  936. package/demo/node_modules/openai/resources/index.mjs +0 -14
  937. package/demo/node_modules/openai/resources/index.mjs.map +0 -1
  938. package/demo/node_modules/openai/resources/models.d.ts +0 -58
  939. package/demo/node_modules/openai/resources/models.d.ts.map +0 -1
  940. package/demo/node_modules/openai/resources/models.js +0 -64
  941. package/demo/node_modules/openai/resources/models.js.map +0 -1
  942. package/demo/node_modules/openai/resources/models.mjs +0 -36
  943. package/demo/node_modules/openai/resources/models.mjs.map +0 -1
  944. package/demo/node_modules/openai/resources/moderations.d.ts +0 -176
  945. package/demo/node_modules/openai/resources/moderations.d.ts.map +0 -1
  946. package/demo/node_modules/openai/resources/moderations.js +0 -17
  947. package/demo/node_modules/openai/resources/moderations.js.map +0 -1
  948. package/demo/node_modules/openai/resources/moderations.mjs +0 -13
  949. package/demo/node_modules/openai/resources/moderations.mjs.map +0 -1
  950. package/demo/node_modules/openai/resources/shared.d.ts +0 -39
  951. package/demo/node_modules/openai/resources/shared.d.ts.map +0 -1
  952. package/demo/node_modules/openai/resources/shared.js +0 -4
  953. package/demo/node_modules/openai/resources/shared.js.map +0 -1
  954. package/demo/node_modules/openai/resources/shared.mjs +0 -3
  955. package/demo/node_modules/openai/resources/shared.mjs.map +0 -1
  956. package/demo/node_modules/openai/shims/node.d.ts +0 -29
  957. package/demo/node_modules/openai/shims/node.d.ts.map +0 -1
  958. package/demo/node_modules/openai/shims/node.js +0 -31
  959. package/demo/node_modules/openai/shims/node.js.map +0 -1
  960. package/demo/node_modules/openai/shims/node.mjs +0 -5
  961. package/demo/node_modules/openai/shims/node.mjs.map +0 -1
  962. package/demo/node_modules/openai/shims/web.d.ts +0 -26
  963. package/demo/node_modules/openai/shims/web.d.ts.map +0 -1
  964. package/demo/node_modules/openai/shims/web.js +0 -31
  965. package/demo/node_modules/openai/shims/web.js.map +0 -1
  966. package/demo/node_modules/openai/shims/web.mjs +0 -5
  967. package/demo/node_modules/openai/shims/web.mjs.map +0 -1
  968. package/demo/node_modules/openai/src/_shims/MultipartBody.ts +0 -9
  969. package/demo/node_modules/openai/src/_shims/README.md +0 -46
  970. package/demo/node_modules/openai/src/_shims/auto/runtime-bun.ts +0 -4
  971. package/demo/node_modules/openai/src/_shims/auto/runtime-node.ts +0 -4
  972. package/demo/node_modules/openai/src/_shims/auto/runtime.ts +0 -4
  973. package/demo/node_modules/openai/src/_shims/auto/types-node.ts +0 -4
  974. package/demo/node_modules/openai/src/_shims/auto/types.d.ts +0 -101
  975. package/demo/node_modules/openai/src/_shims/auto/types.js +0 -3
  976. package/demo/node_modules/openai/src/_shims/auto/types.mjs +0 -3
  977. package/demo/node_modules/openai/src/_shims/bun-runtime.ts +0 -14
  978. package/demo/node_modules/openai/src/_shims/index.d.ts +0 -81
  979. package/demo/node_modules/openai/src/_shims/index.js +0 -13
  980. package/demo/node_modules/openai/src/_shims/index.mjs +0 -7
  981. package/demo/node_modules/openai/src/_shims/manual-types.d.ts +0 -12
  982. package/demo/node_modules/openai/src/_shims/manual-types.js +0 -3
  983. package/demo/node_modules/openai/src/_shims/manual-types.mjs +0 -3
  984. package/demo/node_modules/openai/src/_shims/node-runtime.ts +0 -83
  985. package/demo/node_modules/openai/src/_shims/node-types.d.ts +0 -42
  986. package/demo/node_modules/openai/src/_shims/node-types.js +0 -3
  987. package/demo/node_modules/openai/src/_shims/node-types.mjs +0 -3
  988. package/demo/node_modules/openai/src/_shims/registry.ts +0 -65
  989. package/demo/node_modules/openai/src/_shims/web-runtime.ts +0 -103
  990. package/demo/node_modules/openai/src/_shims/web-types.d.ts +0 -83
  991. package/demo/node_modules/openai/src/_shims/web-types.js +0 -3
  992. package/demo/node_modules/openai/src/_shims/web-types.mjs +0 -3
  993. package/demo/node_modules/openai/src/core.ts +0 -1162
  994. package/demo/node_modules/openai/src/error.ts +0 -158
  995. package/demo/node_modules/openai/src/index.ts +0 -502
  996. package/demo/node_modules/openai/src/lib/.keep +0 -4
  997. package/demo/node_modules/openai/src/lib/AbstractAssistantStreamRunner.ts +0 -340
  998. package/demo/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +0 -682
  999. package/demo/node_modules/openai/src/lib/AssistantStream.ts +0 -723
  1000. package/demo/node_modules/openai/src/lib/ChatCompletionRunFunctions.test.ts +0 -2328
  1001. package/demo/node_modules/openai/src/lib/ChatCompletionRunner.ts +0 -68
  1002. package/demo/node_modules/openai/src/lib/ChatCompletionStream.ts +0 -494
  1003. package/demo/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +0 -68
  1004. package/demo/node_modules/openai/src/lib/RunnableFunction.ts +0 -134
  1005. package/demo/node_modules/openai/src/lib/Util.ts +0 -23
  1006. package/demo/node_modules/openai/src/lib/chatCompletionUtils.ts +0 -28
  1007. package/demo/node_modules/openai/src/lib/jsonschema.ts +0 -148
  1008. package/demo/node_modules/openai/src/pagination.ts +0 -98
  1009. package/demo/node_modules/openai/src/resource.ts +0 -11
  1010. package/demo/node_modules/openai/src/resources/audio/audio.ts +0 -23
  1011. package/demo/node_modules/openai/src/resources/audio/index.ts +0 -6
  1012. package/demo/node_modules/openai/src/resources/audio/speech.ts +0 -52
  1013. package/demo/node_modules/openai/src/resources/audio/transcriptions.ts +0 -84
  1014. package/demo/node_modules/openai/src/resources/audio/translations.ts +0 -61
  1015. package/demo/node_modules/openai/src/resources/batches.ts +0 -252
  1016. package/demo/node_modules/openai/src/resources/beta/assistants.ts +0 -1315
  1017. package/demo/node_modules/openai/src/resources/beta/beta.ts +0 -56
  1018. package/demo/node_modules/openai/src/resources/beta/chat/chat.ts +0 -12
  1019. package/demo/node_modules/openai/src/resources/beta/chat/completions.ts +0 -106
  1020. package/demo/node_modules/openai/src/resources/beta/chat/index.ts +0 -4
  1021. package/demo/node_modules/openai/src/resources/beta/index.ts +0 -48
  1022. package/demo/node_modules/openai/src/resources/beta/threads/index.ts +0 -72
  1023. package/demo/node_modules/openai/src/resources/beta/threads/messages.ts +0 -706
  1024. package/demo/node_modules/openai/src/resources/beta/threads/runs/index.ts +0 -44
  1025. package/demo/node_modules/openai/src/resources/beta/threads/runs/runs.ts +0 -1627
  1026. package/demo/node_modules/openai/src/resources/beta/threads/runs/steps.ts +0 -641
  1027. package/demo/node_modules/openai/src/resources/beta/threads/threads.ts +0 -1536
  1028. package/demo/node_modules/openai/src/resources/beta/vector-stores/file-batches.ts +0 -293
  1029. package/demo/node_modules/openai/src/resources/beta/vector-stores/files.ts +0 -284
  1030. package/demo/node_modules/openai/src/resources/beta/vector-stores/index.ts +0 -25
  1031. package/demo/node_modules/openai/src/resources/beta/vector-stores/vector-stores.ts +0 -318
  1032. package/demo/node_modules/openai/src/resources/chat/chat.ts +0 -67
  1033. package/demo/node_modules/openai/src/resources/chat/completions.ts +0 -996
  1034. package/demo/node_modules/openai/src/resources/chat/index.ts +0 -33
  1035. package/demo/node_modules/openai/src/resources/completions.ts +0 -329
  1036. package/demo/node_modules/openai/src/resources/embeddings.ts +0 -125
  1037. package/demo/node_modules/openai/src/resources/files.ts +0 -214
  1038. package/demo/node_modules/openai/src/resources/fine-tuning/fine-tuning.ts +0 -22
  1039. package/demo/node_modules/openai/src/resources/fine-tuning/index.ts +0 -16
  1040. package/demo/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +0 -108
  1041. package/demo/node_modules/openai/src/resources/fine-tuning/jobs/index.ts +0 -21
  1042. package/demo/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +0 -458
  1043. package/demo/node_modules/openai/src/resources/images.ts +0 -215
  1044. package/demo/node_modules/openai/src/resources/index.ts +0 -45
  1045. package/demo/node_modules/openai/src/resources/models.ts +0 -76
  1046. package/demo/node_modules/openai/src/resources/moderations.ts +0 -214
  1047. package/demo/node_modules/openai/src/resources/shared.ts +0 -47
  1048. package/demo/node_modules/openai/src/shims/node.ts +0 -50
  1049. package/demo/node_modules/openai/src/shims/web.ts +0 -50
  1050. package/demo/node_modules/openai/src/streaming.ts +0 -508
  1051. package/demo/node_modules/openai/src/tsconfig.json +0 -11
  1052. package/demo/node_modules/openai/src/uploads.ts +0 -248
  1053. package/demo/node_modules/openai/src/version.ts +0 -1
  1054. package/demo/node_modules/openai/streaming.d.ts +0 -41
  1055. package/demo/node_modules/openai/streaming.d.ts.map +0 -1
  1056. package/demo/node_modules/openai/streaming.js +0 -433
  1057. package/demo/node_modules/openai/streaming.js.map +0 -1
  1058. package/demo/node_modules/openai/streaming.mjs +0 -426
  1059. package/demo/node_modules/openai/streaming.mjs.map +0 -1
  1060. package/demo/node_modules/openai/uploads.d.ts +0 -75
  1061. package/demo/node_modules/openai/uploads.d.ts.map +0 -1
  1062. package/demo/node_modules/openai/uploads.js +0 -165
  1063. package/demo/node_modules/openai/uploads.js.map +0 -1
  1064. package/demo/node_modules/openai/uploads.mjs +0 -152
  1065. package/demo/node_modules/openai/uploads.mjs.map +0 -1
  1066. package/demo/node_modules/openai/version.d.ts +0 -2
  1067. package/demo/node_modules/openai/version.d.ts.map +0 -1
  1068. package/demo/node_modules/openai/version.js +0 -5
  1069. package/demo/node_modules/openai/version.js.map +0 -1
  1070. package/demo/node_modules/openai/version.mjs +0 -2
  1071. package/demo/node_modules/openai/version.mjs.map +0 -1
  1072. package/demo/node_modules/tr46/index.js +0 -193
  1073. package/demo/node_modules/tr46/lib/.gitkeep +0 -0
  1074. package/demo/node_modules/tr46/lib/mappingTable.json +0 -1
  1075. package/demo/node_modules/tr46/package.json +0 -31
  1076. package/demo/node_modules/undici-types/README.md +0 -6
  1077. package/demo/node_modules/undici-types/agent.d.ts +0 -31
  1078. package/demo/node_modules/undici-types/api.d.ts +0 -43
  1079. package/demo/node_modules/undici-types/balanced-pool.d.ts +0 -18
  1080. package/demo/node_modules/undici-types/cache.d.ts +0 -36
  1081. package/demo/node_modules/undici-types/client.d.ts +0 -97
  1082. package/demo/node_modules/undici-types/connector.d.ts +0 -34
  1083. package/demo/node_modules/undici-types/content-type.d.ts +0 -21
  1084. package/demo/node_modules/undici-types/cookies.d.ts +0 -28
  1085. package/demo/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  1086. package/demo/node_modules/undici-types/dispatcher.d.ts +0 -241
  1087. package/demo/node_modules/undici-types/errors.d.ts +0 -128
  1088. package/demo/node_modules/undici-types/fetch.d.ts +0 -209
  1089. package/demo/node_modules/undici-types/file.d.ts +0 -39
  1090. package/demo/node_modules/undici-types/filereader.d.ts +0 -54
  1091. package/demo/node_modules/undici-types/formdata.d.ts +0 -108
  1092. package/demo/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  1093. package/demo/node_modules/undici-types/global-origin.d.ts +0 -7
  1094. package/demo/node_modules/undici-types/handlers.d.ts +0 -9
  1095. package/demo/node_modules/undici-types/header.d.ts +0 -4
  1096. package/demo/node_modules/undici-types/index.d.ts +0 -63
  1097. package/demo/node_modules/undici-types/interceptors.d.ts +0 -5
  1098. package/demo/node_modules/undici-types/mock-agent.d.ts +0 -50
  1099. package/demo/node_modules/undici-types/mock-client.d.ts +0 -25
  1100. package/demo/node_modules/undici-types/mock-errors.d.ts +0 -12
  1101. package/demo/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  1102. package/demo/node_modules/undici-types/mock-pool.d.ts +0 -25
  1103. package/demo/node_modules/undici-types/package.json +0 -55
  1104. package/demo/node_modules/undici-types/patch.d.ts +0 -71
  1105. package/demo/node_modules/undici-types/pool-stats.d.ts +0 -19
  1106. package/demo/node_modules/undici-types/pool.d.ts +0 -28
  1107. package/demo/node_modules/undici-types/proxy-agent.d.ts +0 -30
  1108. package/demo/node_modules/undici-types/readable.d.ts +0 -61
  1109. package/demo/node_modules/undici-types/webidl.d.ts +0 -220
  1110. package/demo/node_modules/undici-types/websocket.d.ts +0 -131
  1111. package/demo/node_modules/web-streams-polyfill/LICENSE +0 -22
  1112. package/demo/node_modules/web-streams-polyfill/README.md +0 -110
  1113. package/demo/node_modules/web-streams-polyfill/es2018/package.json +0 -14
  1114. package/demo/node_modules/web-streams-polyfill/es6/package.json +0 -14
  1115. package/demo/node_modules/web-streams-polyfill/package.json +0 -83
  1116. package/demo/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +0 -13
  1117. package/demo/node_modules/web-streams-polyfill/ponyfill/es6/package.json +0 -13
  1118. package/demo/node_modules/web-streams-polyfill/ponyfill/package.json +0 -13
  1119. package/demo/node_modules/webidl-conversions/LICENSE.md +0 -12
  1120. package/demo/node_modules/webidl-conversions/README.md +0 -53
  1121. package/demo/node_modules/webidl-conversions/lib/index.js +0 -189
  1122. package/demo/node_modules/webidl-conversions/package.json +0 -23
  1123. package/demo/node_modules/whatwg-url/LICENSE.txt +0 -21
  1124. package/demo/node_modules/whatwg-url/README.md +0 -67
  1125. package/demo/node_modules/whatwg-url/lib/URL-impl.js +0 -200
  1126. package/demo/node_modules/whatwg-url/lib/URL.js +0 -196
  1127. package/demo/node_modules/whatwg-url/lib/public-api.js +0 -11
  1128. package/demo/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
  1129. package/demo/node_modules/whatwg-url/lib/utils.js +0 -20
  1130. package/demo/node_modules/whatwg-url/package.json +0 -32
  1131. package/demo/watson.png +0 -0
@@ -1,1544 +0,0 @@
1
- /**
2
- * The `child_process` module provides the ability to spawn subprocesses in
3
- * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability
4
- * is primarily provided by the {@link spawn} function:
5
- *
6
- * ```js
7
- * const { spawn } = require('child_process');
8
- * const ls = spawn('ls', ['-lh', '/usr']);
9
- *
10
- * ls.stdout.on('data', (data) => {
11
- * console.log(`stdout: ${data}`);
12
- * });
13
- *
14
- * ls.stderr.on('data', (data) => {
15
- * console.error(`stderr: ${data}`);
16
- * });
17
- *
18
- * ls.on('close', (code) => {
19
- * console.log(`child process exited with code ${code}`);
20
- * });
21
- * ```
22
- *
23
- * By default, pipes for `stdin`, `stdout`, and `stderr` are established between
24
- * the parent Node.js process and the spawned subprocess. These pipes have
25
- * limited (and platform-specific) capacity. If the subprocess writes to
26
- * stdout in excess of that limit without the output being captured, the
27
- * subprocess blocks waiting for the pipe buffer to accept more data. This is
28
- * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }`option if the output will not be consumed.
29
- *
30
- * The command lookup is performed using the `options.env.PATH` environment
31
- * variable if `env` is in the `options` object. Otherwise, `process.env.PATH` is
32
- * used. If `options.env` is set without `PATH`, lookup on Unix is performed
33
- * on a default search path search of `/usr/bin:/bin` (see your operating system's
34
- * manual for execvpe/execvp), on Windows the current processes environment
35
- * variable `PATH` is used.
36
- *
37
- * On Windows, environment variables are case-insensitive. Node.js
38
- * lexicographically sorts the `env` keys and uses the first one that
39
- * case-insensitively matches. Only first (in lexicographic order) entry will be
40
- * passed to the subprocess. This might lead to issues on Windows when passing
41
- * objects to the `env` option that have multiple variants of the same key, such as`PATH` and `Path`.
42
- *
43
- * The {@link spawn} method spawns the child process asynchronously,
44
- * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks
45
- * the event loop until the spawned process either exits or is terminated.
46
- *
47
- * For convenience, the `child_process` module provides a handful of synchronous
48
- * and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on
49
- * top of {@link spawn} or {@link spawnSync}.
50
- *
51
- * * {@link exec}: spawns a shell and runs a command within that
52
- * shell, passing the `stdout` and `stderr` to a callback function when
53
- * complete.
54
- * * {@link execFile}: similar to {@link exec} except
55
- * that it spawns the command directly without first spawning a shell by
56
- * default.
57
- * * {@link fork}: spawns a new Node.js process and invokes a
58
- * specified module with an IPC communication channel established that allows
59
- * sending messages between parent and child.
60
- * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop.
61
- * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop.
62
- *
63
- * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
64
- * the synchronous methods can have significant impact on performance due to
65
- * stalling the event loop while spawned processes complete.
66
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/child_process.js)
67
- */
68
- declare module "child_process" {
69
- import { ObjectEncodingOptions } from "node:fs";
70
- import { Abortable, EventEmitter } from "node:events";
71
- import * as net from "node:net";
72
- import { Pipe, Readable, Stream, Writable } from "node:stream";
73
- import { URL } from "node:url";
74
- type Serializable = string | object | number | boolean | bigint;
75
- type SendHandle = net.Socket | net.Server;
76
- /**
77
- * Instances of the `ChildProcess` represent spawned child processes.
78
- *
79
- * Instances of `ChildProcess` are not intended to be created directly. Rather,
80
- * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create
81
- * instances of `ChildProcess`.
82
- * @since v2.2.0
83
- */
84
- class ChildProcess extends EventEmitter {
85
- /**
86
- * A `Writable Stream` that represents the child process's `stdin`.
87
- *
88
- * If a child process waits to read all of its input, the child will not continue
89
- * until this stream has been closed via `end()`.
90
- *
91
- * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`,
92
- * then this will be `null`.
93
- *
94
- * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will
95
- * refer to the same value.
96
- *
97
- * The `subprocess.stdin` property can be `undefined` if the child process could
98
- * not be successfully spawned.
99
- * @since v0.1.90
100
- */
101
- stdin: Writable | null;
102
- /**
103
- * A `Readable Stream` that represents the child process's `stdout`.
104
- *
105
- * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`,
106
- * then this will be `null`.
107
- *
108
- * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will
109
- * refer to the same value.
110
- *
111
- * ```js
112
- * const { spawn } = require('child_process');
113
- *
114
- * const subprocess = spawn('ls');
115
- *
116
- * subprocess.stdout.on('data', (data) => {
117
- * console.log(`Received chunk ${data}`);
118
- * });
119
- * ```
120
- *
121
- * The `subprocess.stdout` property can be `null` if the child process could
122
- * not be successfully spawned.
123
- * @since v0.1.90
124
- */
125
- stdout: Readable | null;
126
- /**
127
- * A `Readable Stream` that represents the child process's `stderr`.
128
- *
129
- * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`,
130
- * then this will be `null`.
131
- *
132
- * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will
133
- * refer to the same value.
134
- *
135
- * The `subprocess.stderr` property can be `null` if the child process could
136
- * not be successfully spawned.
137
- * @since v0.1.90
138
- */
139
- stderr: Readable | null;
140
- /**
141
- * The `subprocess.channel` property is a reference to the child's IPC channel. If
142
- * no IPC channel currently exists, this property is `undefined`.
143
- * @since v7.1.0
144
- */
145
- readonly channel?: Pipe | null | undefined;
146
- /**
147
- * A sparse array of pipes to the child process, corresponding with positions in
148
- * the `stdio` option passed to {@link spawn} that have been set
149
- * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`,`subprocess.stdout`, and `subprocess.stderr`,
150
- * respectively.
151
- *
152
- * In the following example, only the child's fd `1` (stdout) is configured as a
153
- * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values
154
- * in the array are `null`.
155
- *
156
- * ```js
157
- * const assert = require('assert');
158
- * const fs = require('fs');
159
- * const child_process = require('child_process');
160
- *
161
- * const subprocess = child_process.spawn('ls', {
162
- * stdio: [
163
- * 0, // Use parent's stdin for child.
164
- * 'pipe', // Pipe child's stdout to parent.
165
- * fs.openSync('err.out', 'w'), // Direct child's stderr to a file.
166
- * ]
167
- * });
168
- *
169
- * assert.strictEqual(subprocess.stdio[0], null);
170
- * assert.strictEqual(subprocess.stdio[0], subprocess.stdin);
171
- *
172
- * assert(subprocess.stdout);
173
- * assert.strictEqual(subprocess.stdio[1], subprocess.stdout);
174
- *
175
- * assert.strictEqual(subprocess.stdio[2], null);
176
- * assert.strictEqual(subprocess.stdio[2], subprocess.stderr);
177
- * ```
178
- *
179
- * The `subprocess.stdio` property can be `undefined` if the child process could
180
- * not be successfully spawned.
181
- * @since v0.7.10
182
- */
183
- readonly stdio: [
184
- Writable | null,
185
- // stdin
186
- Readable | null,
187
- // stdout
188
- Readable | null,
189
- // stderr
190
- Readable | Writable | null | undefined,
191
- // extra
192
- Readable | Writable | null | undefined, // extra
193
- ];
194
- /**
195
- * The `subprocess.killed` property indicates whether the child process
196
- * successfully received a signal from `subprocess.kill()`. The `killed` property
197
- * does not indicate that the child process has been terminated.
198
- * @since v0.5.10
199
- */
200
- readonly killed: boolean;
201
- /**
202
- * Returns the process identifier (PID) of the child process. If the child process
203
- * fails to spawn due to errors, then the value is `undefined` and `error` is
204
- * emitted.
205
- *
206
- * ```js
207
- * const { spawn } = require('child_process');
208
- * const grep = spawn('grep', ['ssh']);
209
- *
210
- * console.log(`Spawned child pid: ${grep.pid}`);
211
- * grep.stdin.end();
212
- * ```
213
- * @since v0.1.90
214
- */
215
- readonly pid?: number | undefined;
216
- /**
217
- * The `subprocess.connected` property indicates whether it is still possible to
218
- * send and receive messages from a child process. When `subprocess.connected` is`false`, it is no longer possible to send or receive messages.
219
- * @since v0.7.2
220
- */
221
- readonly connected: boolean;
222
- /**
223
- * The `subprocess.exitCode` property indicates the exit code of the child process.
224
- * If the child process is still running, the field will be `null`.
225
- */
226
- readonly exitCode: number | null;
227
- /**
228
- * The `subprocess.signalCode` property indicates the signal received by
229
- * the child process if any, else `null`.
230
- */
231
- readonly signalCode: NodeJS.Signals | null;
232
- /**
233
- * The `subprocess.spawnargs` property represents the full list of command-line
234
- * arguments the child process was launched with.
235
- */
236
- readonly spawnargs: string[];
237
- /**
238
- * The `subprocess.spawnfile` property indicates the executable file name of
239
- * the child process that is launched.
240
- *
241
- * For {@link fork}, its value will be equal to `process.execPath`.
242
- * For {@link spawn}, its value will be the name of
243
- * the executable file.
244
- * For {@link exec}, its value will be the name of the shell
245
- * in which the child process is launched.
246
- */
247
- readonly spawnfile: string;
248
- /**
249
- * The `subprocess.kill()` method sends a signal to the child process. If no
250
- * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function
251
- * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
252
- *
253
- * ```js
254
- * const { spawn } = require('child_process');
255
- * const grep = spawn('grep', ['ssh']);
256
- *
257
- * grep.on('close', (code, signal) => {
258
- * console.log(
259
- * `child process terminated due to receipt of signal ${signal}`);
260
- * });
261
- *
262
- * // Send SIGHUP to process.
263
- * grep.kill('SIGHUP');
264
- * ```
265
- *
266
- * The `ChildProcess` object may emit an `'error'` event if the signal
267
- * cannot be delivered. Sending a signal to a child process that has already exited
268
- * is not an error but may have unforeseen consequences. Specifically, if the
269
- * process identifier (PID) has been reassigned to another process, the signal will
270
- * be delivered to that process instead which can have unexpected results.
271
- *
272
- * While the function is called `kill`, the signal delivered to the child process
273
- * may not actually terminate the process.
274
- *
275
- * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference.
276
- *
277
- * On Windows, where POSIX signals do not exist, the `signal` argument will be
278
- * ignored, and the process will be killed forcefully and abruptly (similar to`'SIGKILL'`).
279
- * See `Signal Events` for more details.
280
- *
281
- * On Linux, child processes of child processes will not be terminated
282
- * when attempting to kill their parent. This is likely to happen when running a
283
- * new process in a shell or with the use of the `shell` option of `ChildProcess`:
284
- *
285
- * ```js
286
- * 'use strict';
287
- * const { spawn } = require('child_process');
288
- *
289
- * const subprocess = spawn(
290
- * 'sh',
291
- * [
292
- * '-c',
293
- * `node -e "setInterval(() => {
294
- * console.log(process.pid, 'is alive')
295
- * }, 500);"`,
296
- * ], {
297
- * stdio: ['inherit', 'inherit', 'inherit']
298
- * }
299
- * );
300
- *
301
- * setTimeout(() => {
302
- * subprocess.kill(); // Does not terminate the Node.js process in the shell.
303
- * }, 2000);
304
- * ```
305
- * @since v0.1.90
306
- */
307
- kill(signal?: NodeJS.Signals | number): boolean;
308
- /**
309
- * Calls {@link ChildProcess.kill} with `'SIGTERM'`.
310
- * @since v18.18.0
311
- */
312
- [Symbol.dispose](): void;
313
- /**
314
- * When an IPC channel has been established between the parent and child (
315
- * i.e. when using {@link fork}), the `subprocess.send()` method can
316
- * be used to send messages to the child process. When the child process is a
317
- * Node.js instance, these messages can be received via the `'message'` event.
318
- *
319
- * The message goes through serialization and parsing. The resulting
320
- * message might not be the same as what is originally sent.
321
- *
322
- * For example, in the parent script:
323
- *
324
- * ```js
325
- * const cp = require('child_process');
326
- * const n = cp.fork(`${__dirname}/sub.js`);
327
- *
328
- * n.on('message', (m) => {
329
- * console.log('PARENT got message:', m);
330
- * });
331
- *
332
- * // Causes the child to print: CHILD got message: { hello: 'world' }
333
- * n.send({ hello: 'world' });
334
- * ```
335
- *
336
- * And then the child script, `'sub.js'` might look like this:
337
- *
338
- * ```js
339
- * process.on('message', (m) => {
340
- * console.log('CHILD got message:', m);
341
- * });
342
- *
343
- * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null }
344
- * process.send({ foo: 'bar', baz: NaN });
345
- * ```
346
- *
347
- * Child Node.js processes will have a `process.send()` method of their own
348
- * that allows the child to send messages back to the parent.
349
- *
350
- * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages
351
- * containing a `NODE_` prefix in the `cmd` property are reserved for use within
352
- * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the`'internalMessage'` event and are consumed internally by Node.js.
353
- * Applications should avoid using such messages or listening for`'internalMessage'` events as it is subject to change without notice.
354
- *
355
- * The optional `sendHandle` argument that may be passed to `subprocess.send()` is
356
- * for passing a TCP server or socket object to the child process. The child will
357
- * receive the object as the second argument passed to the callback function
358
- * registered on the `'message'` event. Any data that is received
359
- * and buffered in the socket will not be sent to the child.
360
- *
361
- * The optional `callback` is a function that is invoked after the message is
362
- * sent but before the child may have received it. The function is called with a
363
- * single argument: `null` on success, or an `Error` object on failure.
364
- *
365
- * If no `callback` function is provided and the message cannot be sent, an`'error'` event will be emitted by the `ChildProcess` object. This can
366
- * happen, for instance, when the child process has already exited.
367
- *
368
- * `subprocess.send()` will return `false` if the channel has closed or when the
369
- * backlog of unsent messages exceeds a threshold that makes it unwise to send
370
- * more. Otherwise, the method returns `true`. The `callback` function can be
371
- * used to implement flow control.
372
- *
373
- * #### Example: sending a server object
374
- *
375
- * The `sendHandle` argument can be used, for instance, to pass the handle of
376
- * a TCP server object to the child process as illustrated in the example below:
377
- *
378
- * ```js
379
- * const subprocess = require('child_process').fork('subprocess.js');
380
- *
381
- * // Open up the server object and send the handle.
382
- * const server = require('net').createServer();
383
- * server.on('connection', (socket) => {
384
- * socket.end('handled by parent');
385
- * });
386
- * server.listen(1337, () => {
387
- * subprocess.send('server', server);
388
- * });
389
- * ```
390
- *
391
- * The child would then receive the server object as:
392
- *
393
- * ```js
394
- * process.on('message', (m, server) => {
395
- * if (m === 'server') {
396
- * server.on('connection', (socket) => {
397
- * socket.end('handled by child');
398
- * });
399
- * }
400
- * });
401
- * ```
402
- *
403
- * Once the server is now shared between the parent and child, some connections
404
- * can be handled by the parent and some by the child.
405
- *
406
- * While the example above uses a server created using the `net` module, `dgram`module servers use exactly the same workflow with the exceptions of listening on
407
- * a `'message'` event instead of `'connection'` and using `server.bind()` instead
408
- * of `server.listen()`. This is, however, currently only supported on Unix
409
- * platforms.
410
- *
411
- * #### Example: sending a socket object
412
- *
413
- * Similarly, the `sendHandler` argument can be used to pass the handle of a
414
- * socket to the child process. The example below spawns two children that each
415
- * handle connections with "normal" or "special" priority:
416
- *
417
- * ```js
418
- * const { fork } = require('child_process');
419
- * const normal = fork('subprocess.js', ['normal']);
420
- * const special = fork('subprocess.js', ['special']);
421
- *
422
- * // Open up the server and send sockets to child. Use pauseOnConnect to prevent
423
- * // the sockets from being read before they are sent to the child process.
424
- * const server = require('net').createServer({ pauseOnConnect: true });
425
- * server.on('connection', (socket) => {
426
- *
427
- * // If this is special priority...
428
- * if (socket.remoteAddress === '74.125.127.100') {
429
- * special.send('socket', socket);
430
- * return;
431
- * }
432
- * // This is normal priority.
433
- * normal.send('socket', socket);
434
- * });
435
- * server.listen(1337);
436
- * ```
437
- *
438
- * The `subprocess.js` would receive the socket handle as the second argument
439
- * passed to the event callback function:
440
- *
441
- * ```js
442
- * process.on('message', (m, socket) => {
443
- * if (m === 'socket') {
444
- * if (socket) {
445
- * // Check that the client socket exists.
446
- * // It is possible for the socket to be closed between the time it is
447
- * // sent and the time it is received in the child process.
448
- * socket.end(`Request handled with ${process.argv[2]} priority`);
449
- * }
450
- * }
451
- * });
452
- * ```
453
- *
454
- * Do not use `.maxConnections` on a socket that has been passed to a subprocess.
455
- * The parent cannot track when the socket is destroyed.
456
- *
457
- * Any `'message'` handlers in the subprocess should verify that `socket` exists,
458
- * as the connection may have been closed during the time it takes to send the
459
- * connection to the child.
460
- * @since v0.5.9
461
- * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
462
- */
463
- send(message: Serializable, callback?: (error: Error | null) => void): boolean;
464
- send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
465
- send(
466
- message: Serializable,
467
- sendHandle?: SendHandle,
468
- options?: MessageOptions,
469
- callback?: (error: Error | null) => void,
470
- ): boolean;
471
- /**
472
- * Closes the IPC channel between parent and child, allowing the child to exit
473
- * gracefully once there are no other connections keeping it alive. After calling
474
- * this method the `subprocess.connected` and `process.connected` properties in
475
- * both the parent and child (respectively) will be set to `false`, and it will be
476
- * no longer possible to pass messages between the processes.
477
- *
478
- * The `'disconnect'` event will be emitted when there are no messages in the
479
- * process of being received. This will most often be triggered immediately after
480
- * calling `subprocess.disconnect()`.
481
- *
482
- * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked
483
- * within the child process to close the IPC channel as well.
484
- * @since v0.7.2
485
- */
486
- disconnect(): void;
487
- /**
488
- * By default, the parent will wait for the detached child to exit. To prevent the
489
- * parent from waiting for a given `subprocess` to exit, use the`subprocess.unref()` method. Doing so will cause the parent's event loop to not
490
- * include the child in its reference count, allowing the parent to exit
491
- * independently of the child, unless there is an established IPC channel between
492
- * the child and the parent.
493
- *
494
- * ```js
495
- * const { spawn } = require('child_process');
496
- *
497
- * const subprocess = spawn(process.argv[0], ['child_program.js'], {
498
- * detached: true,
499
- * stdio: 'ignore'
500
- * });
501
- *
502
- * subprocess.unref();
503
- * ```
504
- * @since v0.7.10
505
- */
506
- unref(): void;
507
- /**
508
- * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will
509
- * restore the removed reference count for the child process, forcing the parent
510
- * to wait for the child to exit before exiting itself.
511
- *
512
- * ```js
513
- * const { spawn } = require('child_process');
514
- *
515
- * const subprocess = spawn(process.argv[0], ['child_program.js'], {
516
- * detached: true,
517
- * stdio: 'ignore'
518
- * });
519
- *
520
- * subprocess.unref();
521
- * subprocess.ref();
522
- * ```
523
- * @since v0.7.10
524
- */
525
- ref(): void;
526
- /**
527
- * events.EventEmitter
528
- * 1. close
529
- * 2. disconnect
530
- * 3. error
531
- * 4. exit
532
- * 5. message
533
- * 6. spawn
534
- */
535
- addListener(event: string, listener: (...args: any[]) => void): this;
536
- addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
537
- addListener(event: "disconnect", listener: () => void): this;
538
- addListener(event: "error", listener: (err: Error) => void): this;
539
- addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
540
- addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
541
- addListener(event: "spawn", listener: () => void): this;
542
- emit(event: string | symbol, ...args: any[]): boolean;
543
- emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean;
544
- emit(event: "disconnect"): boolean;
545
- emit(event: "error", err: Error): boolean;
546
- emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean;
547
- emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean;
548
- emit(event: "spawn", listener: () => void): boolean;
549
- on(event: string, listener: (...args: any[]) => void): this;
550
- on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
551
- on(event: "disconnect", listener: () => void): this;
552
- on(event: "error", listener: (err: Error) => void): this;
553
- on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
554
- on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
555
- on(event: "spawn", listener: () => void): this;
556
- once(event: string, listener: (...args: any[]) => void): this;
557
- once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
558
- once(event: "disconnect", listener: () => void): this;
559
- once(event: "error", listener: (err: Error) => void): this;
560
- once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
561
- once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
562
- once(event: "spawn", listener: () => void): this;
563
- prependListener(event: string, listener: (...args: any[]) => void): this;
564
- prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
565
- prependListener(event: "disconnect", listener: () => void): this;
566
- prependListener(event: "error", listener: (err: Error) => void): this;
567
- prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
568
- prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
569
- prependListener(event: "spawn", listener: () => void): this;
570
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
571
- prependOnceListener(
572
- event: "close",
573
- listener: (code: number | null, signal: NodeJS.Signals | null) => void,
574
- ): this;
575
- prependOnceListener(event: "disconnect", listener: () => void): this;
576
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
577
- prependOnceListener(
578
- event: "exit",
579
- listener: (code: number | null, signal: NodeJS.Signals | null) => void,
580
- ): this;
581
- prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
582
- prependOnceListener(event: "spawn", listener: () => void): this;
583
- }
584
- // return this object when stdio option is undefined or not specified
585
- interface ChildProcessWithoutNullStreams extends ChildProcess {
586
- stdin: Writable;
587
- stdout: Readable;
588
- stderr: Readable;
589
- readonly stdio: [
590
- Writable,
591
- Readable,
592
- Readable,
593
- // stderr
594
- Readable | Writable | null | undefined,
595
- // extra, no modification
596
- Readable | Writable | null | undefined, // extra, no modification
597
- ];
598
- }
599
- // return this object when stdio option is a tuple of 3
600
- interface ChildProcessByStdio<I extends null | Writable, O extends null | Readable, E extends null | Readable>
601
- extends ChildProcess
602
- {
603
- stdin: I;
604
- stdout: O;
605
- stderr: E;
606
- readonly stdio: [
607
- I,
608
- O,
609
- E,
610
- Readable | Writable | null | undefined,
611
- // extra, no modification
612
- Readable | Writable | null | undefined, // extra, no modification
613
- ];
614
- }
615
- interface MessageOptions {
616
- keepOpen?: boolean | undefined;
617
- }
618
- type IOType = "overlapped" | "pipe" | "ignore" | "inherit";
619
- type StdioOptions = IOType | Array<IOType | "ipc" | Stream | number | null | undefined>;
620
- type SerializationType = "json" | "advanced";
621
- interface MessagingOptions extends Abortable {
622
- /**
623
- * Specify the kind of serialization used for sending messages between processes.
624
- * @default 'json'
625
- */
626
- serialization?: SerializationType | undefined;
627
- /**
628
- * The signal value to be used when the spawned process will be killed by the abort signal.
629
- * @default 'SIGTERM'
630
- */
631
- killSignal?: NodeJS.Signals | number | undefined;
632
- /**
633
- * In milliseconds the maximum amount of time the process is allowed to run.
634
- */
635
- timeout?: number | undefined;
636
- }
637
- interface ProcessEnvOptions {
638
- uid?: number | undefined;
639
- gid?: number | undefined;
640
- cwd?: string | URL | undefined;
641
- env?: NodeJS.ProcessEnv | undefined;
642
- }
643
- interface CommonOptions extends ProcessEnvOptions {
644
- /**
645
- * @default false
646
- */
647
- windowsHide?: boolean | undefined;
648
- /**
649
- * @default 0
650
- */
651
- timeout?: number | undefined;
652
- }
653
- interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
654
- argv0?: string | undefined;
655
- /**
656
- * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
657
- * If passed as an array, the first element is used for `stdin`, the second for
658
- * `stdout`, and the third for `stderr`. A fourth element can be used to
659
- * specify the `stdio` behavior beyond the standard streams. See
660
- * {@link ChildProcess.stdio} for more information.
661
- *
662
- * @default 'pipe'
663
- */
664
- stdio?: StdioOptions | undefined;
665
- shell?: boolean | string | undefined;
666
- windowsVerbatimArguments?: boolean | undefined;
667
- }
668
- interface SpawnOptions extends CommonSpawnOptions {
669
- detached?: boolean | undefined;
670
- }
671
- interface SpawnOptionsWithoutStdio extends SpawnOptions {
672
- stdio?: StdioPipeNamed | StdioPipe[] | undefined;
673
- }
674
- type StdioNull = "inherit" | "ignore" | Stream;
675
- type StdioPipeNamed = "pipe" | "overlapped";
676
- type StdioPipe = undefined | null | StdioPipeNamed;
677
- interface SpawnOptionsWithStdioTuple<
678
- Stdin extends StdioNull | StdioPipe,
679
- Stdout extends StdioNull | StdioPipe,
680
- Stderr extends StdioNull | StdioPipe,
681
- > extends SpawnOptions {
682
- stdio: [Stdin, Stdout, Stderr];
683
- }
684
- /**
685
- * The `child_process.spawn()` method spawns a new process using the given`command`, with command-line arguments in `args`. If omitted, `args` defaults
686
- * to an empty array.
687
- *
688
- * **If the `shell` option is enabled, do not pass unsanitized user input to this**
689
- * **function. Any input containing shell metacharacters may be used to trigger**
690
- * **arbitrary command execution.**
691
- *
692
- * A third argument may be used to specify additional options, with these defaults:
693
- *
694
- * ```js
695
- * const defaults = {
696
- * cwd: undefined,
697
- * env: process.env
698
- * };
699
- * ```
700
- *
701
- * Use `cwd` to specify the working directory from which the process is spawned.
702
- * If not given, the default is to inherit the current working directory. If given,
703
- * but the path does not exist, the child process emits an `ENOENT` error
704
- * and exits immediately. `ENOENT` is also emitted when the command
705
- * does not exist.
706
- *
707
- * Use `env` to specify environment variables that will be visible to the new
708
- * process, the default is `process.env`.
709
- *
710
- * `undefined` values in `env` will be ignored.
711
- *
712
- * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the
713
- * exit code:
714
- *
715
- * ```js
716
- * const { spawn } = require('child_process');
717
- * const ls = spawn('ls', ['-lh', '/usr']);
718
- *
719
- * ls.stdout.on('data', (data) => {
720
- * console.log(`stdout: ${data}`);
721
- * });
722
- *
723
- * ls.stderr.on('data', (data) => {
724
- * console.error(`stderr: ${data}`);
725
- * });
726
- *
727
- * ls.on('close', (code) => {
728
- * console.log(`child process exited with code ${code}`);
729
- * });
730
- * ```
731
- *
732
- * Example: A very elaborate way to run `ps ax | grep ssh`
733
- *
734
- * ```js
735
- * const { spawn } = require('child_process');
736
- * const ps = spawn('ps', ['ax']);
737
- * const grep = spawn('grep', ['ssh']);
738
- *
739
- * ps.stdout.on('data', (data) => {
740
- * grep.stdin.write(data);
741
- * });
742
- *
743
- * ps.stderr.on('data', (data) => {
744
- * console.error(`ps stderr: ${data}`);
745
- * });
746
- *
747
- * ps.on('close', (code) => {
748
- * if (code !== 0) {
749
- * console.log(`ps process exited with code ${code}`);
750
- * }
751
- * grep.stdin.end();
752
- * });
753
- *
754
- * grep.stdout.on('data', (data) => {
755
- * console.log(data.toString());
756
- * });
757
- *
758
- * grep.stderr.on('data', (data) => {
759
- * console.error(`grep stderr: ${data}`);
760
- * });
761
- *
762
- * grep.on('close', (code) => {
763
- * if (code !== 0) {
764
- * console.log(`grep process exited with code ${code}`);
765
- * }
766
- * });
767
- * ```
768
- *
769
- * Example of checking for failed `spawn`:
770
- *
771
- * ```js
772
- * const { spawn } = require('child_process');
773
- * const subprocess = spawn('bad_command');
774
- *
775
- * subprocess.on('error', (err) => {
776
- * console.error('Failed to start subprocess.');
777
- * });
778
- * ```
779
- *
780
- * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process
781
- * title while others (Windows, SunOS) will use `command`.
782
- *
783
- * Node.js currently overwrites `argv[0]` with `process.execPath` on startup, so`process.argv[0]` in a Node.js child process will not match the `argv0`parameter passed to `spawn` from the parent,
784
- * retrieve it with the`process.argv0` property instead.
785
- *
786
- * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except
787
- * the error passed to the callback will be an `AbortError`:
788
- *
789
- * ```js
790
- * const { spawn } = require('child_process');
791
- * const controller = new AbortController();
792
- * const { signal } = controller;
793
- * const grep = spawn('grep', ['ssh'], { signal });
794
- * grep.on('error', (err) => {
795
- * // This will be called with err being an AbortError if the controller aborts
796
- * });
797
- * controller.abort(); // Stops the child process
798
- * ```
799
- * @since v0.1.90
800
- * @param command The command to run.
801
- * @param args List of string arguments.
802
- */
803
- function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
804
- function spawn(
805
- command: string,
806
- options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
807
- ): ChildProcessByStdio<Writable, Readable, Readable>;
808
- function spawn(
809
- command: string,
810
- options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
811
- ): ChildProcessByStdio<Writable, Readable, null>;
812
- function spawn(
813
- command: string,
814
- options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
815
- ): ChildProcessByStdio<Writable, null, Readable>;
816
- function spawn(
817
- command: string,
818
- options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
819
- ): ChildProcessByStdio<null, Readable, Readable>;
820
- function spawn(
821
- command: string,
822
- options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
823
- ): ChildProcessByStdio<Writable, null, null>;
824
- function spawn(
825
- command: string,
826
- options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
827
- ): ChildProcessByStdio<null, Readable, null>;
828
- function spawn(
829
- command: string,
830
- options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
831
- ): ChildProcessByStdio<null, null, Readable>;
832
- function spawn(
833
- command: string,
834
- options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
835
- ): ChildProcessByStdio<null, null, null>;
836
- function spawn(command: string, options: SpawnOptions): ChildProcess;
837
- // overloads of spawn with 'args'
838
- function spawn(
839
- command: string,
840
- args?: readonly string[],
841
- options?: SpawnOptionsWithoutStdio,
842
- ): ChildProcessWithoutNullStreams;
843
- function spawn(
844
- command: string,
845
- args: readonly string[],
846
- options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
847
- ): ChildProcessByStdio<Writable, Readable, Readable>;
848
- function spawn(
849
- command: string,
850
- args: readonly string[],
851
- options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
852
- ): ChildProcessByStdio<Writable, Readable, null>;
853
- function spawn(
854
- command: string,
855
- args: readonly string[],
856
- options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
857
- ): ChildProcessByStdio<Writable, null, Readable>;
858
- function spawn(
859
- command: string,
860
- args: readonly string[],
861
- options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
862
- ): ChildProcessByStdio<null, Readable, Readable>;
863
- function spawn(
864
- command: string,
865
- args: readonly string[],
866
- options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
867
- ): ChildProcessByStdio<Writable, null, null>;
868
- function spawn(
869
- command: string,
870
- args: readonly string[],
871
- options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
872
- ): ChildProcessByStdio<null, Readable, null>;
873
- function spawn(
874
- command: string,
875
- args: readonly string[],
876
- options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
877
- ): ChildProcessByStdio<null, null, Readable>;
878
- function spawn(
879
- command: string,
880
- args: readonly string[],
881
- options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
882
- ): ChildProcessByStdio<null, null, null>;
883
- function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess;
884
- interface ExecOptions extends CommonOptions {
885
- shell?: string | undefined;
886
- signal?: AbortSignal | undefined;
887
- maxBuffer?: number | undefined;
888
- killSignal?: NodeJS.Signals | number | undefined;
889
- }
890
- interface ExecOptionsWithStringEncoding extends ExecOptions {
891
- encoding: BufferEncoding;
892
- }
893
- interface ExecOptionsWithBufferEncoding extends ExecOptions {
894
- encoding: BufferEncoding | null; // specify `null`.
895
- }
896
- interface ExecException extends Error {
897
- cmd?: string | undefined;
898
- killed?: boolean | undefined;
899
- code?: number | undefined;
900
- signal?: NodeJS.Signals | undefined;
901
- }
902
- /**
903
- * Spawns a shell then executes the `command` within that shell, buffering any
904
- * generated output. The `command` string passed to the exec function is processed
905
- * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters))
906
- * need to be dealt with accordingly:
907
- *
908
- * ```js
909
- * const { exec } = require('child_process');
910
- *
911
- * exec('"/path/to/test file/test.sh" arg1 arg2');
912
- * // Double quotes are used so that the space in the path is not interpreted as
913
- * // a delimiter of multiple arguments.
914
- *
915
- * exec('echo "The \\$HOME variable is $HOME"');
916
- * // The $HOME variable is escaped in the first instance, but not in the second.
917
- * ```
918
- *
919
- * **Never pass unsanitized user input to this function. Any input containing shell**
920
- * **metacharacters may be used to trigger arbitrary command execution.**
921
- *
922
- * If a `callback` function is provided, it is called with the arguments`(error, stdout, stderr)`. On success, `error` will be `null`. On error,`error` will be an instance of `Error`. The
923
- * `error.code` property will be
924
- * the exit code of the process. By convention, any exit code other than `0`indicates an error. `error.signal` will be the signal that terminated the
925
- * process.
926
- *
927
- * The `stdout` and `stderr` arguments passed to the callback will contain the
928
- * stdout and stderr output of the child process. By default, Node.js will decode
929
- * the output as UTF-8 and pass strings to the callback. The `encoding` option
930
- * can be used to specify the character encoding used to decode the stdout and
931
- * stderr output. If `encoding` is `'buffer'`, or an unrecognized character
932
- * encoding, `Buffer` objects will be passed to the callback instead.
933
- *
934
- * ```js
935
- * const { exec } = require('child_process');
936
- * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => {
937
- * if (error) {
938
- * console.error(`exec error: ${error}`);
939
- * return;
940
- * }
941
- * console.log(`stdout: ${stdout}`);
942
- * console.error(`stderr: ${stderr}`);
943
- * });
944
- * ```
945
- *
946
- * If `timeout` is greater than `0`, the parent will send the signal
947
- * identified by the `killSignal` property (the default is `'SIGTERM'`) if the
948
- * child runs longer than `timeout` milliseconds.
949
- *
950
- * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace
951
- * the existing process and uses a shell to execute the command.
952
- *
953
- * If this method is invoked as its `util.promisify()` ed version, it returns
954
- * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned`ChildProcess` instance is attached to the `Promise` as a `child` property. In
955
- * case of an error (including any error resulting in an exit code other than 0), a
956
- * rejected promise is returned, with the same `error` object given in the
957
- * callback, but with two additional properties `stdout` and `stderr`.
958
- *
959
- * ```js
960
- * const util = require('util');
961
- * const exec = util.promisify(require('child_process').exec);
962
- *
963
- * async function lsExample() {
964
- * const { stdout, stderr } = await exec('ls');
965
- * console.log('stdout:', stdout);
966
- * console.error('stderr:', stderr);
967
- * }
968
- * lsExample();
969
- * ```
970
- *
971
- * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except
972
- * the error passed to the callback will be an `AbortError`:
973
- *
974
- * ```js
975
- * const { exec } = require('child_process');
976
- * const controller = new AbortController();
977
- * const { signal } = controller;
978
- * const child = exec('grep ssh', { signal }, (error) => {
979
- * console.log(error); // an AbortError
980
- * });
981
- * controller.abort();
982
- * ```
983
- * @since v0.1.90
984
- * @param command The command to run, with space-separated arguments.
985
- * @param callback called with the output when process terminates.
986
- */
987
- function exec(
988
- command: string,
989
- callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
990
- ): ChildProcess;
991
- // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
992
- function exec(
993
- command: string,
994
- options: {
995
- encoding: "buffer" | null;
996
- } & ExecOptions,
997
- callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
998
- ): ChildProcess;
999
- // `options` with well known `encoding` means stdout/stderr are definitely `string`.
1000
- function exec(
1001
- command: string,
1002
- options: {
1003
- encoding: BufferEncoding;
1004
- } & ExecOptions,
1005
- callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
1006
- ): ChildProcess;
1007
- // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
1008
- // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
1009
- function exec(
1010
- command: string,
1011
- options: {
1012
- encoding: BufferEncoding;
1013
- } & ExecOptions,
1014
- callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
1015
- ): ChildProcess;
1016
- // `options` without an `encoding` means stdout/stderr are definitely `string`.
1017
- function exec(
1018
- command: string,
1019
- options: ExecOptions,
1020
- callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
1021
- ): ChildProcess;
1022
- // fallback if nothing else matches. Worst case is always `string | Buffer`.
1023
- function exec(
1024
- command: string,
1025
- options: (ObjectEncodingOptions & ExecOptions) | undefined | null,
1026
- callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
1027
- ): ChildProcess;
1028
- interface PromiseWithChild<T> extends Promise<T> {
1029
- child: ChildProcess;
1030
- }
1031
- namespace exec {
1032
- function __promisify__(command: string): PromiseWithChild<{
1033
- stdout: string;
1034
- stderr: string;
1035
- }>;
1036
- function __promisify__(
1037
- command: string,
1038
- options: {
1039
- encoding: "buffer" | null;
1040
- } & ExecOptions,
1041
- ): PromiseWithChild<{
1042
- stdout: Buffer;
1043
- stderr: Buffer;
1044
- }>;
1045
- function __promisify__(
1046
- command: string,
1047
- options: {
1048
- encoding: BufferEncoding;
1049
- } & ExecOptions,
1050
- ): PromiseWithChild<{
1051
- stdout: string;
1052
- stderr: string;
1053
- }>;
1054
- function __promisify__(
1055
- command: string,
1056
- options: ExecOptions,
1057
- ): PromiseWithChild<{
1058
- stdout: string;
1059
- stderr: string;
1060
- }>;
1061
- function __promisify__(
1062
- command: string,
1063
- options?: (ObjectEncodingOptions & ExecOptions) | null,
1064
- ): PromiseWithChild<{
1065
- stdout: string | Buffer;
1066
- stderr: string | Buffer;
1067
- }>;
1068
- }
1069
- interface ExecFileOptions extends CommonOptions, Abortable {
1070
- maxBuffer?: number | undefined;
1071
- killSignal?: NodeJS.Signals | number | undefined;
1072
- windowsVerbatimArguments?: boolean | undefined;
1073
- shell?: boolean | string | undefined;
1074
- signal?: AbortSignal | undefined;
1075
- }
1076
- interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
1077
- encoding: BufferEncoding;
1078
- }
1079
- interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
1080
- encoding: "buffer" | null;
1081
- }
1082
- interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
1083
- encoding: BufferEncoding;
1084
- }
1085
- type ExecFileException =
1086
- & Omit<ExecException, "code">
1087
- & Omit<NodeJS.ErrnoException, "code">
1088
- & { code?: string | number | undefined | null };
1089
- /**
1090
- * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
1091
- * executable `file` is spawned directly as a new process making it slightly more
1092
- * efficient than {@link exec}.
1093
- *
1094
- * The same options as {@link exec} are supported. Since a shell is
1095
- * not spawned, behaviors such as I/O redirection and file globbing are not
1096
- * supported.
1097
- *
1098
- * ```js
1099
- * const { execFile } = require('child_process');
1100
- * const child = execFile('node', ['--version'], (error, stdout, stderr) => {
1101
- * if (error) {
1102
- * throw error;
1103
- * }
1104
- * console.log(stdout);
1105
- * });
1106
- * ```
1107
- *
1108
- * The `stdout` and `stderr` arguments passed to the callback will contain the
1109
- * stdout and stderr output of the child process. By default, Node.js will decode
1110
- * the output as UTF-8 and pass strings to the callback. The `encoding` option
1111
- * can be used to specify the character encoding used to decode the stdout and
1112
- * stderr output. If `encoding` is `'buffer'`, or an unrecognized character
1113
- * encoding, `Buffer` objects will be passed to the callback instead.
1114
- *
1115
- * If this method is invoked as its `util.promisify()` ed version, it returns
1116
- * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned`ChildProcess` instance is attached to the `Promise` as a `child` property. In
1117
- * case of an error (including any error resulting in an exit code other than 0), a
1118
- * rejected promise is returned, with the same `error` object given in the
1119
- * callback, but with two additional properties `stdout` and `stderr`.
1120
- *
1121
- * ```js
1122
- * const util = require('util');
1123
- * const execFile = util.promisify(require('child_process').execFile);
1124
- * async function getVersion() {
1125
- * const { stdout } = await execFile('node', ['--version']);
1126
- * console.log(stdout);
1127
- * }
1128
- * getVersion();
1129
- * ```
1130
- *
1131
- * **If the `shell` option is enabled, do not pass unsanitized user input to this**
1132
- * **function. Any input containing shell metacharacters may be used to trigger**
1133
- * **arbitrary command execution.**
1134
- *
1135
- * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except
1136
- * the error passed to the callback will be an `AbortError`:
1137
- *
1138
- * ```js
1139
- * const { execFile } = require('child_process');
1140
- * const controller = new AbortController();
1141
- * const { signal } = controller;
1142
- * const child = execFile('node', ['--version'], { signal }, (error) => {
1143
- * console.log(error); // an AbortError
1144
- * });
1145
- * controller.abort();
1146
- * ```
1147
- * @since v0.1.91
1148
- * @param file The name or path of the executable file to run.
1149
- * @param args List of string arguments.
1150
- * @param callback Called with the output when process terminates.
1151
- */
1152
- function execFile(file: string): ChildProcess;
1153
- function execFile(
1154
- file: string,
1155
- options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
1156
- ): ChildProcess;
1157
- function execFile(file: string, args?: readonly string[] | null): ChildProcess;
1158
- function execFile(
1159
- file: string,
1160
- args: readonly string[] | undefined | null,
1161
- options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
1162
- ): ChildProcess;
1163
- // no `options` definitely means stdout/stderr are `string`.
1164
- function execFile(
1165
- file: string,
1166
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1167
- ): ChildProcess;
1168
- function execFile(
1169
- file: string,
1170
- args: readonly string[] | undefined | null,
1171
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1172
- ): ChildProcess;
1173
- // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
1174
- function execFile(
1175
- file: string,
1176
- options: ExecFileOptionsWithBufferEncoding,
1177
- callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
1178
- ): ChildProcess;
1179
- function execFile(
1180
- file: string,
1181
- args: readonly string[] | undefined | null,
1182
- options: ExecFileOptionsWithBufferEncoding,
1183
- callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
1184
- ): ChildProcess;
1185
- // `options` with well known `encoding` means stdout/stderr are definitely `string`.
1186
- function execFile(
1187
- file: string,
1188
- options: ExecFileOptionsWithStringEncoding,
1189
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1190
- ): ChildProcess;
1191
- function execFile(
1192
- file: string,
1193
- args: readonly string[] | undefined | null,
1194
- options: ExecFileOptionsWithStringEncoding,
1195
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1196
- ): ChildProcess;
1197
- // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
1198
- // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
1199
- function execFile(
1200
- file: string,
1201
- options: ExecFileOptionsWithOtherEncoding,
1202
- callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
1203
- ): ChildProcess;
1204
- function execFile(
1205
- file: string,
1206
- args: readonly string[] | undefined | null,
1207
- options: ExecFileOptionsWithOtherEncoding,
1208
- callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
1209
- ): ChildProcess;
1210
- // `options` without an `encoding` means stdout/stderr are definitely `string`.
1211
- function execFile(
1212
- file: string,
1213
- options: ExecFileOptions,
1214
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1215
- ): ChildProcess;
1216
- function execFile(
1217
- file: string,
1218
- args: readonly string[] | undefined | null,
1219
- options: ExecFileOptions,
1220
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1221
- ): ChildProcess;
1222
- // fallback if nothing else matches. Worst case is always `string | Buffer`.
1223
- function execFile(
1224
- file: string,
1225
- options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
1226
- callback:
1227
- | ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
1228
- | undefined
1229
- | null,
1230
- ): ChildProcess;
1231
- function execFile(
1232
- file: string,
1233
- args: readonly string[] | undefined | null,
1234
- options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
1235
- callback:
1236
- | ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
1237
- | undefined
1238
- | null,
1239
- ): ChildProcess;
1240
- namespace execFile {
1241
- function __promisify__(file: string): PromiseWithChild<{
1242
- stdout: string;
1243
- stderr: string;
1244
- }>;
1245
- function __promisify__(
1246
- file: string,
1247
- args: readonly string[] | undefined | null,
1248
- ): PromiseWithChild<{
1249
- stdout: string;
1250
- stderr: string;
1251
- }>;
1252
- function __promisify__(
1253
- file: string,
1254
- options: ExecFileOptionsWithBufferEncoding,
1255
- ): PromiseWithChild<{
1256
- stdout: Buffer;
1257
- stderr: Buffer;
1258
- }>;
1259
- function __promisify__(
1260
- file: string,
1261
- args: readonly string[] | undefined | null,
1262
- options: ExecFileOptionsWithBufferEncoding,
1263
- ): PromiseWithChild<{
1264
- stdout: Buffer;
1265
- stderr: Buffer;
1266
- }>;
1267
- function __promisify__(
1268
- file: string,
1269
- options: ExecFileOptionsWithStringEncoding,
1270
- ): PromiseWithChild<{
1271
- stdout: string;
1272
- stderr: string;
1273
- }>;
1274
- function __promisify__(
1275
- file: string,
1276
- args: readonly string[] | undefined | null,
1277
- options: ExecFileOptionsWithStringEncoding,
1278
- ): PromiseWithChild<{
1279
- stdout: string;
1280
- stderr: string;
1281
- }>;
1282
- function __promisify__(
1283
- file: string,
1284
- options: ExecFileOptionsWithOtherEncoding,
1285
- ): PromiseWithChild<{
1286
- stdout: string | Buffer;
1287
- stderr: string | Buffer;
1288
- }>;
1289
- function __promisify__(
1290
- file: string,
1291
- args: readonly string[] | undefined | null,
1292
- options: ExecFileOptionsWithOtherEncoding,
1293
- ): PromiseWithChild<{
1294
- stdout: string | Buffer;
1295
- stderr: string | Buffer;
1296
- }>;
1297
- function __promisify__(
1298
- file: string,
1299
- options: ExecFileOptions,
1300
- ): PromiseWithChild<{
1301
- stdout: string;
1302
- stderr: string;
1303
- }>;
1304
- function __promisify__(
1305
- file: string,
1306
- args: readonly string[] | undefined | null,
1307
- options: ExecFileOptions,
1308
- ): PromiseWithChild<{
1309
- stdout: string;
1310
- stderr: string;
1311
- }>;
1312
- function __promisify__(
1313
- file: string,
1314
- options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
1315
- ): PromiseWithChild<{
1316
- stdout: string | Buffer;
1317
- stderr: string | Buffer;
1318
- }>;
1319
- function __promisify__(
1320
- file: string,
1321
- args: readonly string[] | undefined | null,
1322
- options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
1323
- ): PromiseWithChild<{
1324
- stdout: string | Buffer;
1325
- stderr: string | Buffer;
1326
- }>;
1327
- }
1328
- interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable {
1329
- execPath?: string | undefined;
1330
- execArgv?: string[] | undefined;
1331
- silent?: boolean | undefined;
1332
- /**
1333
- * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
1334
- * If passed as an array, the first element is used for `stdin`, the second for
1335
- * `stdout`, and the third for `stderr`. A fourth element can be used to
1336
- * specify the `stdio` behavior beyond the standard streams. See
1337
- * {@link ChildProcess.stdio} for more information.
1338
- *
1339
- * @default 'pipe'
1340
- */
1341
- stdio?: StdioOptions | undefined;
1342
- detached?: boolean | undefined;
1343
- windowsVerbatimArguments?: boolean | undefined;
1344
- }
1345
- /**
1346
- * The `child_process.fork()` method is a special case of {@link spawn} used specifically to spawn new Node.js processes.
1347
- * Like {@link spawn}, a `ChildProcess` object is returned. The
1348
- * returned `ChildProcess` will have an additional communication channel
1349
- * built-in that allows messages to be passed back and forth between the parent and
1350
- * child. See `subprocess.send()` for details.
1351
- *
1352
- * Keep in mind that spawned Node.js child processes are
1353
- * independent of the parent with exception of the IPC communication channel
1354
- * that is established between the two. Each process has its own memory, with
1355
- * their own V8 instances. Because of the additional resource allocations
1356
- * required, spawning a large number of child Node.js processes is not
1357
- * recommended.
1358
- *
1359
- * By default, `child_process.fork()` will spawn new Node.js instances using the `process.execPath` of the parent process. The `execPath` property in the`options` object allows for an alternative
1360
- * execution path to be used.
1361
- *
1362
- * Node.js processes launched with a custom `execPath` will communicate with the
1363
- * parent process using the file descriptor (fd) identified using the
1364
- * environment variable `NODE_CHANNEL_FD` on the child process.
1365
- *
1366
- * Unlike the [`fork(2)`](http://man7.org/linux/man-pages/man2/fork.2.html) POSIX system call, `child_process.fork()` does not clone the
1367
- * current process.
1368
- *
1369
- * The `shell` option available in {@link spawn} is not supported by`child_process.fork()` and will be ignored if set.
1370
- *
1371
- * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except
1372
- * the error passed to the callback will be an `AbortError`:
1373
- *
1374
- * ```js
1375
- * if (process.argv[2] === 'child') {
1376
- * setTimeout(() => {
1377
- * console.log(`Hello from ${process.argv[2]}!`);
1378
- * }, 1_000);
1379
- * } else {
1380
- * const { fork } = require('child_process');
1381
- * const controller = new AbortController();
1382
- * const { signal } = controller;
1383
- * const child = fork(__filename, ['child'], { signal });
1384
- * child.on('error', (err) => {
1385
- * // This will be called with err being an AbortError if the controller aborts
1386
- * });
1387
- * controller.abort(); // Stops the child process
1388
- * }
1389
- * ```
1390
- * @since v0.5.0
1391
- * @param modulePath The module to run in the child.
1392
- * @param args List of string arguments.
1393
- */
1394
- function fork(modulePath: string, options?: ForkOptions): ChildProcess;
1395
- function fork(modulePath: string, args?: readonly string[], options?: ForkOptions): ChildProcess;
1396
- interface SpawnSyncOptions extends CommonSpawnOptions {
1397
- input?: string | NodeJS.ArrayBufferView | undefined;
1398
- maxBuffer?: number | undefined;
1399
- encoding?: BufferEncoding | "buffer" | null | undefined;
1400
- }
1401
- interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
1402
- encoding: BufferEncoding;
1403
- }
1404
- interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
1405
- encoding?: "buffer" | null | undefined;
1406
- }
1407
- interface SpawnSyncReturns<T> {
1408
- pid: number;
1409
- output: Array<T | null>;
1410
- stdout: T;
1411
- stderr: T;
1412
- status: number | null;
1413
- signal: NodeJS.Signals | null;
1414
- error?: Error | undefined;
1415
- }
1416
- /**
1417
- * The `child_process.spawnSync()` method is generally identical to {@link spawn} with the exception that the function will not return
1418
- * until the child process has fully closed. When a timeout has been encountered
1419
- * and `killSignal` is sent, the method won't return until the process has
1420
- * completely exited. If the process intercepts and handles the `SIGTERM` signal
1421
- * and doesn't exit, the parent process will wait until the child process has
1422
- * exited.
1423
- *
1424
- * **If the `shell` option is enabled, do not pass unsanitized user input to this**
1425
- * **function. Any input containing shell metacharacters may be used to trigger**
1426
- * **arbitrary command execution.**
1427
- * @since v0.11.12
1428
- * @param command The command to run.
1429
- * @param args List of string arguments.
1430
- */
1431
- function spawnSync(command: string): SpawnSyncReturns<Buffer>;
1432
- function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1433
- function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1434
- function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
1435
- function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
1436
- function spawnSync(
1437
- command: string,
1438
- args: readonly string[],
1439
- options: SpawnSyncOptionsWithStringEncoding,
1440
- ): SpawnSyncReturns<string>;
1441
- function spawnSync(
1442
- command: string,
1443
- args: readonly string[],
1444
- options: SpawnSyncOptionsWithBufferEncoding,
1445
- ): SpawnSyncReturns<Buffer>;
1446
- function spawnSync(
1447
- command: string,
1448
- args?: readonly string[],
1449
- options?: SpawnSyncOptions,
1450
- ): SpawnSyncReturns<string | Buffer>;
1451
- interface CommonExecOptions extends CommonOptions {
1452
- input?: string | NodeJS.ArrayBufferView | undefined;
1453
- /**
1454
- * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
1455
- * If passed as an array, the first element is used for `stdin`, the second for
1456
- * `stdout`, and the third for `stderr`. A fourth element can be used to
1457
- * specify the `stdio` behavior beyond the standard streams. See
1458
- * {@link ChildProcess.stdio} for more information.
1459
- *
1460
- * @default 'pipe'
1461
- */
1462
- stdio?: StdioOptions | undefined;
1463
- killSignal?: NodeJS.Signals | number | undefined;
1464
- maxBuffer?: number | undefined;
1465
- encoding?: BufferEncoding | "buffer" | null | undefined;
1466
- }
1467
- interface ExecSyncOptions extends CommonExecOptions {
1468
- shell?: string | undefined;
1469
- }
1470
- interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
1471
- encoding: BufferEncoding;
1472
- }
1473
- interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
1474
- encoding?: "buffer" | null | undefined;
1475
- }
1476
- /**
1477
- * The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return
1478
- * until the child process has fully closed. When a timeout has been encountered
1479
- * and `killSignal` is sent, the method won't return until the process has
1480
- * completely exited. If the child process intercepts and handles the `SIGTERM`signal and doesn't exit, the parent process will wait until the child process
1481
- * has exited.
1482
- *
1483
- * If the process times out or has a non-zero exit code, this method will throw.
1484
- * The `Error` object will contain the entire result from {@link spawnSync}.
1485
- *
1486
- * **Never pass unsanitized user input to this function. Any input containing shell**
1487
- * **metacharacters may be used to trigger arbitrary command execution.**
1488
- * @since v0.11.12
1489
- * @param command The command to run.
1490
- * @return The stdout from the command.
1491
- */
1492
- function execSync(command: string): Buffer;
1493
- function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
1494
- function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
1495
- function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
1496
- interface ExecFileSyncOptions extends CommonExecOptions {
1497
- shell?: boolean | string | undefined;
1498
- }
1499
- interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
1500
- encoding: BufferEncoding;
1501
- }
1502
- interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
1503
- encoding?: "buffer" | null; // specify `null`.
1504
- }
1505
- /**
1506
- * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not
1507
- * return until the child process has fully closed. When a timeout has been
1508
- * encountered and `killSignal` is sent, the method won't return until the process
1509
- * has completely exited.
1510
- *
1511
- * If the child process intercepts and handles the `SIGTERM` signal and
1512
- * does not exit, the parent process will still wait until the child process has
1513
- * exited.
1514
- *
1515
- * If the process times out or has a non-zero exit code, this method will throw an `Error` that will include the full result of the underlying {@link spawnSync}.
1516
- *
1517
- * **If the `shell` option is enabled, do not pass unsanitized user input to this**
1518
- * **function. Any input containing shell metacharacters may be used to trigger**
1519
- * **arbitrary command execution.**
1520
- * @since v0.11.12
1521
- * @param file The name or path of the executable file to run.
1522
- * @param args List of string arguments.
1523
- * @return The stdout from the command.
1524
- */
1525
- function execFileSync(file: string): Buffer;
1526
- function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string;
1527
- function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1528
- function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer;
1529
- function execFileSync(file: string, args: readonly string[]): Buffer;
1530
- function execFileSync(
1531
- file: string,
1532
- args: readonly string[],
1533
- options: ExecFileSyncOptionsWithStringEncoding,
1534
- ): string;
1535
- function execFileSync(
1536
- file: string,
1537
- args: readonly string[],
1538
- options: ExecFileSyncOptionsWithBufferEncoding,
1539
- ): Buffer;
1540
- function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | Buffer;
1541
- }
1542
- declare module "node:child_process" {
1543
- export * from "child_process";
1544
- }