@runlith/tagma 0.0.0-stage → 0.2.3

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 (342) hide show
  1. package/adapter/claudeHooks.d.ts +10 -0
  2. package/adapter/claudeHooks.js +4 -0
  3. package/adapter/declaration.d.ts +14 -0
  4. package/adapter/declaration.js +2 -0
  5. package/adapter/harness.d.ts +454 -0
  6. package/adapter/harness.js +2 -0
  7. package/adapter/hook.d.ts +43 -0
  8. package/adapter/hook.js +2 -0
  9. package/adapter/hostModules.d.ts +19 -0
  10. package/adapter/hostModules.js +2 -0
  11. package/adapter/loader.d.ts +10 -0
  12. package/adapter/loader.js +2 -0
  13. package/adapter/metadata.d.ts +179 -0
  14. package/adapter/metadata.js +4 -0
  15. package/adapter/payload.d.ts +19 -0
  16. package/adapter/payload.js +3 -0
  17. package/adapter/provider.d.ts +209 -0
  18. package/adapter/provider.js +2 -0
  19. package/adapter/settings.d.ts +182 -0
  20. package/adapter/settings.js +2 -0
  21. package/adapter/speech.d.ts +4 -0
  22. package/adapter/speech.js +2 -0
  23. package/host.d.ts +61223 -0
  24. package/package.json +134 -3
  25. package/plugin/Held-cvetk2wg.js +6 -0
  26. package/plugin/accountKey-t44g9avw.js +2 -0
  27. package/plugin/adapter-qdnpxs6n.js +1 -0
  28. package/plugin/anthropic-a4pdzrv2.js +2 -0
  29. package/plugin/anthropic-messages-svq0svwe.js +2 -0
  30. package/plugin/anthropic-q1xa9n0j.js +2 -0
  31. package/plugin/auth-cp8wnd0z.js +2 -0
  32. package/plugin/authStatus-d6scztz5.js +2 -0
  33. package/plugin/bundling.d.ts +30 -0
  34. package/plugin/bundling.js +2 -0
  35. package/plugin/cacheLifetime-c5mpw676.js +2 -0
  36. package/plugin/callback-server-q2asby82.js +16 -0
  37. package/plugin/capabilities-jfhf61dt.js +2 -0
  38. package/plugin/claudeHooks-edpg1e46.js +3 -0
  39. package/plugin/cli.js +21 -0
  40. package/plugin/cliStore-5s0qerr7.js +2 -0
  41. package/plugin/clientSession-tmmxm39z.js +2 -0
  42. package/plugin/codec-aa8mxqyr.js +1 -0
  43. package/plugin/connect-d7ec6kfh.js +2 -0
  44. package/plugin/contract-qn0z7r9c.js +1 -0
  45. package/plugin/credential-garn07qc.js +2 -0
  46. package/plugin/deepseek-fvdrmjr9.js +2 -0
  47. package/plugin/deepseek-sp4vxjqy.js +2 -0
  48. package/plugin/definition-0h3gqd2z.js +2 -0
  49. package/plugin/description-8xhxryaq.js +2 -0
  50. package/plugin/deviceGrant-axpyc7xr.js +2 -0
  51. package/plugin/devin-hy98d305.js +2 -0
  52. package/plugin/duplex-yexjcpv2.js +2 -0
  53. package/plugin/endpoint-0b9bsb4q.js +2 -0
  54. package/plugin/errors-kck87dpv.js +2 -0
  55. package/plugin/events-81m69vqz.js +2 -0
  56. package/plugin/events-s95ybm4g.js +2 -0
  57. package/plugin/executor-avear8af.js +2 -0
  58. package/plugin/failure-ddv4456n.js +2 -0
  59. package/plugin/framing-jnd2zm0h.js +2 -0
  60. package/plugin/grant-85r3bbqn.js +2 -0
  61. package/plugin/harness-jm3fhnwg.js +2 -0
  62. package/plugin/headers-w6p5sp18.js +2 -0
  63. package/plugin/hook-hjrk83m8.js +2 -0
  64. package/plugin/icon-044pa3y8.js +6 -0
  65. package/plugin/icon-j22svmgp.js +4 -0
  66. package/plugin/icon-ny6qbjvc.js +4 -0
  67. package/plugin/icon-pz54e8n3.js +4 -0
  68. package/plugin/icon-qy92jx2b.js +4 -0
  69. package/plugin/ids-2dndaq8y.js +2 -0
  70. package/plugin/images-s2kqebfv.js +2 -0
  71. package/plugin/index-b3yp4szm.js +2 -0
  72. package/plugin/index-xs7nfsck.js +2 -0
  73. package/plugin/lifecycle-er51apxp.js +2 -0
  74. package/plugin/manual-2mdscj84.js +2 -0
  75. package/plugin/messages-gmwcg1pq.js +2 -0
  76. package/plugin/metadata-gpazs3f5.js +4 -0
  77. package/plugin/muse-g8bc58v8.js +2 -0
  78. package/plugin/muse-tfe6sph7.js +2 -0
  79. package/plugin/museToolSchema-tbe0f3wa.js +2 -0
  80. package/plugin/notes-5m0m3pdr.js +2 -0
  81. package/plugin/object-9pjtdam7.js +2 -0
  82. package/plugin/open-browser-vqb7ckt1.js +2 -0
  83. package/plugin/openai-6f50tf64.js +2 -0
  84. package/plugin/openai-compatible-chat-eez8hkge.js +2 -0
  85. package/plugin/openai-images-haszbnft.js +2 -0
  86. package/plugin/openai-mfqwg6pa.js +2 -0
  87. package/plugin/openai-responses-1gpyp640.js +2 -0
  88. package/plugin/opencodeGo-1wgdjtjz.js +3 -0
  89. package/plugin/opencodeGo-qgw3pfg6.js +2 -0
  90. package/plugin/options-476akxaj.js +2 -0
  91. package/plugin/payload-2gr4q9g8.js +2 -0
  92. package/plugin/pkce-y3sh5pk8.js +2 -0
  93. package/plugin/plugin-0e34qaar.js +3 -0
  94. package/plugin/plugin-1vpp5mqk.js +4 -0
  95. package/plugin/plugin-1zkx860n.js +3 -0
  96. package/plugin/plugin-217mw9ck.js +3 -0
  97. package/plugin/plugin-24j9hnc7.js +3 -0
  98. package/plugin/plugin-2s6bq45c.js +3 -0
  99. package/plugin/plugin-3969dy0b.js +3 -0
  100. package/plugin/plugin-3b8x73y6.js +3 -0
  101. package/plugin/plugin-3t0qp574.js +3 -0
  102. package/plugin/plugin-55fbx586.js +3 -0
  103. package/plugin/plugin-5zq084fb.js +3 -0
  104. package/plugin/plugin-6a56xsx3.js +3 -0
  105. package/plugin/plugin-6vzw5yyr.js +3 -0
  106. package/plugin/plugin-72xxqm1t.js +3 -0
  107. package/plugin/plugin-7swap1ad.js +3 -0
  108. package/plugin/plugin-7te9b50h.js +3 -0
  109. package/plugin/plugin-7xmwhj5h.js +3 -0
  110. package/plugin/plugin-80gqwmjy.js +3 -0
  111. package/plugin/plugin-8g8myq9g.js +3 -0
  112. package/plugin/plugin-8q44b578.js +3 -0
  113. package/plugin/plugin-8v4g0q0b.js +3 -0
  114. package/plugin/plugin-8x3c401q.js +9 -0
  115. package/plugin/plugin-92sxs4r1.js +3 -0
  116. package/plugin/plugin-9gha9fx3.js +3 -0
  117. package/plugin/plugin-9zbh7788.js +3 -0
  118. package/plugin/plugin-a3vzpk4e.js +3 -0
  119. package/plugin/plugin-ak62rhwz.js +3 -0
  120. package/plugin/plugin-azkzdkpk.js +3 -0
  121. package/plugin/plugin-cydz2zhy.js +3 -0
  122. package/plugin/plugin-d28d8jar.js +4 -0
  123. package/plugin/plugin-dd951075.js +3 -0
  124. package/plugin/plugin-dqxdznvd.js +3 -0
  125. package/plugin/plugin-dsjq4tye.js +3 -0
  126. package/plugin/plugin-e5ybk2a2.js +3 -0
  127. package/plugin/plugin-eksq91yp.js +5 -0
  128. package/plugin/plugin-er1kc6f6.js +5 -0
  129. package/plugin/plugin-fjsmz1vy.js +4 -0
  130. package/plugin/plugin-fre9hdcg.js +3 -0
  131. package/plugin/plugin-g0zv4vrz.js +3 -0
  132. package/plugin/plugin-g4hst0jz.js +3 -0
  133. package/plugin/plugin-g7hrtg2p.js +3 -0
  134. package/plugin/plugin-gh857xdd.js +3 -0
  135. package/plugin/plugin-hkjxkgty.js +3 -0
  136. package/plugin/plugin-jxvmq18y.js +3 -0
  137. package/plugin/plugin-kc4z9msd.js +3 -0
  138. package/plugin/plugin-krbbb4ts.js +3 -0
  139. package/plugin/plugin-me00x60n.js +3 -0
  140. package/plugin/plugin-mqr325kz.js +3 -0
  141. package/plugin/plugin-nzacjxf9.js +3 -0
  142. package/plugin/plugin-p59gy5xd.js +3 -0
  143. package/plugin/plugin-p6x7emar.js +3 -0
  144. package/plugin/plugin-pdww1ma8.js +3 -0
  145. package/plugin/plugin-psj9935q.js +3 -0
  146. package/plugin/plugin-q6pvb1xf.js +3 -0
  147. package/plugin/plugin-r342d8zf.js +3 -0
  148. package/plugin/plugin-r7g3vqrm.js +3 -0
  149. package/plugin/plugin-rrgyjesv.js +3 -0
  150. package/plugin/plugin-t4xrq5q2.js +3 -0
  151. package/plugin/plugin-tetj2cr3.js +3 -0
  152. package/plugin/plugin-v80m00bq.js +14 -0
  153. package/plugin/plugin-vfjhxng8.js +3 -0
  154. package/plugin/plugin-vqrd05eg.js +3 -0
  155. package/plugin/plugin-w3zbkmy6.js +3 -0
  156. package/plugin/plugin-w8f977my.js +3 -0
  157. package/plugin/plugin-xbnw80pk.js +3 -0
  158. package/plugin/plugin-xfcgt5ba.js +36 -0
  159. package/plugin/plugin-y9cdpmbv.js +6 -0
  160. package/plugin/plugin-yg0h5k5d.js +3 -0
  161. package/plugin/plugin-yp736z4n.js +3 -0
  162. package/plugin/plugin-zrb8bbr4.js +3 -0
  163. package/plugin/plugin-zsv7wawc.js +3 -0
  164. package/plugin/plugin.d.ts +175 -0
  165. package/plugin/plugin.js +2 -0
  166. package/plugin/points.generated.d.ts +341 -0
  167. package/plugin/points.generated.js +2 -0
  168. package/plugin/process.d.ts +4 -0
  169. package/plugin/process.js +85 -0
  170. package/plugin/protocol-8c26dk6v.js +2 -0
  171. package/plugin/protocol.d.ts +115 -0
  172. package/plugin/protocol.js +2 -0
  173. package/plugin/provider-0b7xxyhn.js +2 -0
  174. package/plugin/quota-v63yvp13.js +2 -0
  175. package/plugin/quotaRead-esmjycnd.js +2 -0
  176. package/plugin/reasoning-1saw6tds.js +2 -0
  177. package/plugin/record-1m3vvy60.js +2 -0
  178. package/plugin/requests-2zyr1g8e.js +1 -0
  179. package/plugin/responseFold-xxhqx4sa.js +2 -0
  180. package/plugin/settings-8xq8dvhp.js +2 -0
  181. package/plugin/shared-4jndfh28.js +2 -0
  182. package/plugin/speech-067caz1a.js +2 -0
  183. package/plugin/stepfun-3en5g41d.js +2 -0
  184. package/plugin/stepfun-xp1c5wpk.js +2 -0
  185. package/plugin/stream-8yrr289z.js +2 -0
  186. package/plugin/svelteProgram-73v9yajk.js +2 -0
  187. package/plugin/synthesisDuplex-ch9jhqzt.js +2 -0
  188. package/plugin/template.d.ts +14 -0
  189. package/plugin/template.js +2 -0
  190. package/plugin/testing.d.ts +85 -0
  191. package/plugin/testing.js +4 -0
  192. package/plugin/tool-content-vean6rqa.js +2 -0
  193. package/plugin/tool-stream-fb180jmt.js +2 -0
  194. package/plugin/transport-j784dsdr.js +2 -0
  195. package/plugin/ui.generated.d.ts +1041 -0
  196. package/plugin/value.d.ts +8 -0
  197. package/plugin/value.js +2 -0
  198. package/plugin/vendor-pn6b5a8f.js +2 -0
  199. package/plugin/vendorCall-6n5chrn0.js +2 -0
  200. package/plugin/vendorCall-82evk8b3.js +2 -0
  201. package/plugin/vendorPayload-458354fv.js +2 -0
  202. package/plugin/vendorWeb-cz5t01m7.js +2 -0
  203. package/plugin/verbatim-2f2d9n02.js +2 -0
  204. package/plugin/xai-2cqraa99.js +2 -0
  205. package/plugin/xai-e8sbtk6a.js +2 -0
  206. package/rules/effect.d.ts +55 -0
  207. package/rules/effect.js +11 -0
  208. package/rules/rules.d.ts +342 -0
  209. package/rules/rules.js +50 -0
  210. package/types/node/assert/strict.d.ts +12 -0
  211. package/types/node/assert.d.ts +76 -0
  212. package/types/node/async_hooks.d.ts +113 -0
  213. package/types/node/buffer.buffer.d.ts +29 -0
  214. package/types/node/buffer.d.ts +162 -0
  215. package/types/node/child_process.d.ts +337 -0
  216. package/types/node/cluster.d.ts +118 -0
  217. package/types/node/compatibility/iterators.d.ts +11 -0
  218. package/types/node/console.d.ts +48 -0
  219. package/types/node/constants.d.ts +8 -0
  220. package/types/node/crypto.d.ts +847 -0
  221. package/types/node/dgram.d.ts +88 -0
  222. package/types/node/diagnostics_channel.d.ts +61 -0
  223. package/types/node/dns/promises.d.ts +94 -0
  224. package/types/node/dns.d.ts +276 -0
  225. package/types/node/domain.d.ts +17 -0
  226. package/types/node/events.d.ts +138 -0
  227. package/types/node/fs/promises.d.ts +253 -0
  228. package/types/node/fs.d.ts +1038 -0
  229. package/types/node/globals.d.ts +73 -0
  230. package/types/node/globals.typedarray.d.ts +22 -0
  231. package/types/node/http.d.ts +530 -0
  232. package/types/node/http2.d.ts +794 -0
  233. package/types/node/https.d.ts +66 -0
  234. package/types/node/index.d.ts +84 -0
  235. package/types/node/inspector/promises.d.ts +13 -0
  236. package/types/node/inspector.d.ts +61 -0
  237. package/types/node/inspector.generated.d.ts +1624 -0
  238. package/types/node/module.d.ts +187 -0
  239. package/types/node/net.d.ts +266 -0
  240. package/types/node/os.d.ts +236 -0
  241. package/types/node/path/posix.d.ts +8 -0
  242. package/types/node/path/win32.d.ts +8 -0
  243. package/types/node/path.d.ts +40 -0
  244. package/types/node/perf_hooks.d.ts +236 -0
  245. package/types/node/process.d.ts +436 -0
  246. package/types/node/punycode.d.ts +15 -0
  247. package/types/node/querystring.d.ts +22 -0
  248. package/types/node/quic.d.ts +203 -0
  249. package/types/node/readline/promises.d.ts +28 -0
  250. package/types/node/readline.d.ts +94 -0
  251. package/types/node/repl.d.ts +104 -0
  252. package/types/node/sea.d.ts +11 -0
  253. package/types/node/sqlite.d.ts +183 -0
  254. package/types/node/stream/consumers.d.ts +13 -0
  255. package/types/node/stream/iter.d.ts +240 -0
  256. package/types/node/stream/promises.d.ts +37 -0
  257. package/types/node/stream/web.d.ts +297 -0
  258. package/types/node/stream.d.ts +378 -0
  259. package/types/node/string_decoder.d.ts +10 -0
  260. package/types/node/test/reporters.d.ts +66 -0
  261. package/types/node/test.d.ts +462 -0
  262. package/types/node/timers/promises.d.ts +16 -0
  263. package/types/node/timers.d.ts +43 -0
  264. package/types/node/tls.d.ts +279 -0
  265. package/types/node/trace_events.d.ts +16 -0
  266. package/types/node/ts5.6/buffer.buffer.d.ts +26 -0
  267. package/types/node/ts5.6/compatibility/float16array.d.ts +43 -0
  268. package/types/node/ts5.6/globals.typedarray.d.ts +22 -0
  269. package/types/node/ts5.6/index.d.ts +84 -0
  270. package/types/node/ts5.7/compatibility/float16array.d.ts +50 -0
  271. package/types/node/ts5.7/index.d.ts +84 -0
  272. package/types/node/tty.d.ts +61 -0
  273. package/types/node/url.d.ts +165 -0
  274. package/types/node/util/types.d.ts +49 -0
  275. package/types/node/util.d.ts +320 -0
  276. package/types/node/v8.d.ts +178 -0
  277. package/types/node/vm.d.ts +130 -0
  278. package/types/node/wasi.d.ts +26 -0
  279. package/types/node/web-globals/abortcontroller.d.ts +47 -0
  280. package/types/node/web-globals/blob.d.ts +34 -0
  281. package/types/node/web-globals/console.d.ts +7 -0
  282. package/types/node/web-globals/crypto.d.ts +46 -0
  283. package/types/node/web-globals/domexception.d.ts +74 -0
  284. package/types/node/web-globals/encoding.d.ts +16 -0
  285. package/types/node/web-globals/events.d.ts +111 -0
  286. package/types/node/web-globals/fetch.d.ts +121 -0
  287. package/types/node/web-globals/importmeta.d.ts +11 -0
  288. package/types/node/web-globals/messaging.d.ts +32 -0
  289. package/types/node/web-globals/navigator.d.ts +28 -0
  290. package/types/node/web-globals/performance.d.ts +71 -0
  291. package/types/node/web-globals/storage.d.ts +26 -0
  292. package/types/node/web-globals/streams.d.ts +162 -0
  293. package/types/node/web-globals/timers.d.ts +22 -0
  294. package/types/node/web-globals/url.d.ts +27 -0
  295. package/types/node/worker_threads.d.ts +199 -0
  296. package/types/node/zlib/iter.d.ts +49 -0
  297. package/types/node/zlib.d.ts +360 -0
  298. package/types/undici/agent.d.ts +24 -0
  299. package/types/undici/api.d.ts +19 -0
  300. package/types/undici/balanced-pool.d.ts +16 -0
  301. package/types/undici/cache-interceptor.d.ts +98 -0
  302. package/types/undici/cache.d.ts +30 -0
  303. package/types/undici/client-stats.d.ts +9 -0
  304. package/types/undici/client.d.ts +61 -0
  305. package/types/undici/connector.d.ts +37 -0
  306. package/types/undici/content-type.d.ts +9 -0
  307. package/types/undici/cookies.d.ts +22 -0
  308. package/types/undici/diagnostics-channel.d.ts +72 -0
  309. package/types/undici/dispatcher.d.ts +207 -0
  310. package/types/undici/env-http-proxy-agent.d.ts +15 -0
  311. package/types/undici/errors.d.ts +117 -0
  312. package/types/undici/eventsource.d.ts +39 -0
  313. package/types/undici/fetch.d.ts +122 -0
  314. package/types/undici/formdata.d.ts +24 -0
  315. package/types/undici/global-dispatcher.d.ts +4 -0
  316. package/types/undici/global-origin.d.ts +3 -0
  317. package/types/undici/h2c-client.d.ts +35 -0
  318. package/types/undici/handlers.d.ts +7 -0
  319. package/types/undici/header.d.ts +10 -0
  320. package/types/undici/index.d.ts +85 -0
  321. package/types/undici/interceptors.d.ts +70 -0
  322. package/types/undici/mock-agent.d.ts +43 -0
  323. package/types/undici/mock-call-history.d.ts +57 -0
  324. package/types/undici/mock-client.d.ts +17 -0
  325. package/types/undici/mock-errors.d.ts +9 -0
  326. package/types/undici/mock-interceptor.d.ts +60 -0
  327. package/types/undici/mock-pool.d.ts +17 -0
  328. package/types/undici/patch.d.ts +21 -0
  329. package/types/undici/pool-stats.d.ts +11 -0
  330. package/types/undici/pool.d.ts +25 -0
  331. package/types/undici/proxy-agent.d.ts +22 -0
  332. package/types/undici/readable.d.ts +24 -0
  333. package/types/undici/retry-agent.d.ts +6 -0
  334. package/types/undici/retry-handler.d.ts +41 -0
  335. package/types/undici/round-robin-pool.d.ts +25 -0
  336. package/types/undici/snapshot-agent.d.ts +98 -0
  337. package/types/undici/socks5-proxy-agent.d.ts +17 -0
  338. package/types/undici/util.d.ts +4 -0
  339. package/types/undici/utility.d.ts +2 -0
  340. package/types/undici/webidl.d.ts +121 -0
  341. package/types/undici/websocket.d.ts +130 -0
  342. package/README.md +0 -3
@@ -0,0 +1,138 @@
1
+ declare module "node:events" {
2
+ import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
3
+ type EventMap<T> = Record<keyof T, any[]>;
4
+ type IfEventMap<Events extends EventMap<Events>, True, False> = {} extends Events ? False : True;
5
+ type Args<Events extends EventMap<Events>, EventName extends string | symbol> = IfEventMap<Events, EventName extends keyof Events ? Events[EventName] : EventName extends keyof EventEmitterEventMap ? EventEmitterEventMap[EventName] : any[], any[]>;
6
+ type EventNames<Events extends EventMap<Events>, EventName extends string | symbol> = IfEventMap<Events, EventName | (keyof Events & (string | symbol)) | keyof EventEmitterEventMap, string | symbol>;
7
+ type Listener<Events extends EventMap<Events>, EventName extends string | symbol> = IfEventMap<Events, (...args: EventName extends keyof Events ? Events[EventName] : EventName extends keyof EventEmitterEventMap ? EventEmitterEventMap[EventName] : any[]) => void, (...args: any[]) => void>;
8
+ interface EventEmitterEventMap {
9
+ newListener: [
10
+ eventName: string | symbol,
11
+ listener: (...args: any[]) => void
12
+ ];
13
+ removeListener: [
14
+ eventName: string | symbol,
15
+ listener: (...args: any[]) => void
16
+ ];
17
+ }
18
+ interface EventEmitterOptions {
19
+ captureRejections?: boolean | undefined;
20
+ }
21
+ class EventEmitter<T extends EventMap<T> = any> {
22
+ constructor(options?: EventEmitterOptions);
23
+ }
24
+ interface EventEmitter<T extends EventMap<T> = any> extends NodeJS.EventEmitter<T> {
25
+ }
26
+ global {
27
+ namespace NodeJS {
28
+ interface EventEmitter<T extends EventMap<T> = any> {
29
+ [EventEmitter.captureRejectionSymbol]?(error: Error, event: string | symbol, ...args: any[]): void;
30
+ addListener<E extends string | symbol>(eventName: EventNames<T, E>, listener: Listener<T, E>): this;
31
+ emit<E extends string | symbol>(eventName: EventNames<T, E>, ...args: Args<T, E>): boolean;
32
+ eventNames(): (string | symbol)[];
33
+ getMaxListeners(): number;
34
+ listenerCount<E extends string | symbol>(eventName: EventNames<T, E>, listener?: Listener<T, E>): number;
35
+ listeners<E extends string | symbol>(eventName: EventNames<T, E>): Listener<T, E>[];
36
+ off<E extends string | symbol>(eventName: EventNames<T, E>, listener: Listener<T, E>): this;
37
+ on<E extends string | symbol>(eventName: EventNames<T, E>, listener: Listener<T, E>): this;
38
+ once<E extends string | symbol>(eventName: EventNames<T, E>, listener: Listener<T, E>): this;
39
+ prependListener<E extends string | symbol>(eventName: EventNames<T, E>, listener: Listener<T, E>): this;
40
+ prependOnceListener<E extends string | symbol>(eventName: EventNames<T, E>, listener: Listener<T, E>): this;
41
+ rawListeners<E extends string | symbol>(eventName: EventNames<T, E>): Listener<T, E>[];
42
+ removeAllListeners<E extends string | symbol>(eventName?: EventNames<T, E>): this;
43
+ removeListener<E extends string | symbol>(eventName: EventNames<T, E>, listener: Listener<T, E>): this;
44
+ setMaxListeners(n: number): this;
45
+ }
46
+ }
47
+ }
48
+ namespace EventEmitter {
49
+ export { EventEmitter, EventEmitterEventMap, EventEmitterOptions };
50
+ }
51
+ namespace EventEmitter {
52
+ interface Abortable {
53
+ signal?: AbortSignal | undefined;
54
+ }
55
+ const captureRejectionSymbol: unique symbol;
56
+ let captureRejections: boolean;
57
+ let defaultMaxListeners: number;
58
+ const errorMonitor: unique symbol;
59
+ function addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
60
+ function getEventListeners(emitter: EventEmitter, name: string | symbol): ((...args: any[]) => void)[];
61
+ function getEventListeners(emitter: EventTarget, name: string): ((...args: any[]) => void)[];
62
+ function getMaxListeners(emitter: EventEmitter | EventTarget): number;
63
+ function listenerCount(emitter: EventEmitter, eventName: string | symbol): number;
64
+ function listenerCount(emitter: EventTarget, eventName: string): number;
65
+ interface OnOptions extends Abortable {
66
+ close?: readonly string[] | undefined;
67
+ highWaterMark?: number | undefined;
68
+ lowWaterMark?: number | undefined;
69
+ }
70
+ function on(emitter: EventEmitter, eventName: string | symbol, options?: OnOptions): NodeJS.AsyncIterator<any[]>;
71
+ function on(emitter: EventTarget, eventName: string, options?: OnOptions): NodeJS.AsyncIterator<any[]>;
72
+ interface OnceOptions extends Abortable {
73
+ }
74
+ function once(emitter: EventEmitter, eventName: string | symbol, options?: OnceOptions): Promise<any[]>;
75
+ function once(emitter: EventTarget, eventName: string, options?: OnceOptions): Promise<any[]>;
76
+ function setMaxListeners(n: number, ...eventTargets: ReadonlyArray<EventEmitter | EventTarget>): void;
77
+ interface InternalEventEmitter<T extends EventMap<T>> extends EventEmitter {
78
+ addListener<E extends keyof T>(eventName: E, listener: (...args: T[E]) => void): this;
79
+ addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
80
+ emit<E extends keyof T>(eventName: E, ...args: T[E]): boolean;
81
+ emit(eventName: string | symbol, ...args: any[]): boolean;
82
+ listenerCount<E extends keyof T>(eventName: E, listener?: (...args: T[E]) => void): number;
83
+ listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
84
+ listeners<E extends keyof T>(eventName: E): ((...args: T[E]) => void)[];
85
+ listeners(eventName: string | symbol): ((...args: any[]) => void)[];
86
+ off<E extends keyof T>(eventName: E, listener: (...args: T[E]) => void): this;
87
+ off(eventName: string | symbol, listener: (...args: any[]) => void): this;
88
+ on<E extends keyof T>(eventName: E, listener: (...args: T[E]) => void): this;
89
+ on(eventName: string | symbol, listener: (...args: any[]) => void): this;
90
+ once<E extends keyof T>(eventName: E, listener: (...args: T[E]) => void): this;
91
+ once(eventName: string | symbol, listener: (...args: any[]) => void): this;
92
+ prependListener<E extends keyof T>(eventName: E, listener: (...args: T[E]) => void): this;
93
+ prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
94
+ prependOnceListener<E extends keyof T>(eventName: E, listener: (...args: T[E]) => void): this;
95
+ prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
96
+ rawListeners<E extends keyof T>(eventName: E): ((...args: T[E]) => void)[];
97
+ rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
98
+ removeAllListeners<E extends keyof T>(eventName?: E): this;
99
+ removeAllListeners(eventName?: string | symbol): this;
100
+ removeListener<E extends keyof T>(eventName: E, listener: (...args: T[E]) => void): this;
101
+ removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
102
+ }
103
+ interface EventEmitterReferencingAsyncResource extends AsyncResource {
104
+ readonly eventEmitter: EventEmitterAsyncResource;
105
+ }
106
+ interface EventEmitterAsyncResourceOptions extends AsyncResourceOptions, EventEmitterOptions {
107
+ name?: string | undefined;
108
+ }
109
+ class EventEmitterAsyncResource extends EventEmitter {
110
+ constructor(options?: EventEmitterAsyncResourceOptions);
111
+ readonly asyncId: number;
112
+ readonly asyncResource: EventEmitterReferencingAsyncResource;
113
+ emitDestroy(): void;
114
+ readonly triggerAsyncId: number;
115
+ }
116
+ interface NodeEventTarget extends EventTarget {
117
+ addListener(type: string, listener: (arg: any) => void): this;
118
+ emit(type: string, arg: any): boolean;
119
+ eventNames(): string[];
120
+ listenerCount(type: string): number;
121
+ setMaxListeners(n: number): void;
122
+ getMaxListeners(): number;
123
+ off(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
124
+ on(type: string, listener: (arg: any) => void): this;
125
+ once(type: string, listener: (arg: any) => void): this;
126
+ removeAllListeners(type?: string): this;
127
+ removeListener(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
128
+ }
129
+ type InternalEventTargetEventProperties<T> = {
130
+ [K in keyof T & string as `on${K}`]: ((ev: T[K]) => void) | null;
131
+ };
132
+ }
133
+ export = EventEmitter;
134
+ }
135
+ declare module "events" {
136
+ import events = require("node:events");
137
+ export = events;
138
+ }
@@ -0,0 +1,253 @@
1
+ declare module "node:fs/promises" {
2
+ import { NonSharedBuffer } from "node:buffer";
3
+ import { Abortable } from "node:events";
4
+ import { Interface as ReadlineInterface } from "node:readline";
5
+ import { BigIntStats, BigIntStatsFs, BufferEncodingOption, constants as fsConstants, CopyOptions, Dir, Dirent, EncodingOption, GlobOptions, GlobOptionsWithFileTypes, GlobOptionsWithoutFileTypes, MakeDirectoryOptions, Mode, ObjectEncodingOptions, OpenDirOptions, OpenMode, PathLike, ReadOptions, ReadOptionsWithBuffer, ReadPosition, ReadStream, ReadVResult, RmOptions, StatFsOptions, StatOptions, Stats, StatsFs, TimeLike, WatchEventType, WatchOptions as _WatchOptions, WriteStream, WriteVResult, } from "node:fs";
6
+ import { Stream } from "node:stream";
7
+ import { ByteReadableStream, Transform, Writer } from "node:stream/iter";
8
+ import { ReadableStream } from "node:stream/web";
9
+ interface FileChangeInfo<T extends string | Buffer> {
10
+ eventType: WatchEventType;
11
+ filename: T | null;
12
+ }
13
+ interface FlagAndOpenMode {
14
+ mode?: Mode | undefined;
15
+ flag?: OpenMode | undefined;
16
+ }
17
+ interface FileReadResult<T extends NodeJS.ArrayBufferView> {
18
+ bytesRead: number;
19
+ buffer: T;
20
+ }
21
+ interface FileReadOptions<T extends NodeJS.ArrayBufferView = Buffer> {
22
+ buffer?: T;
23
+ offset?: number | null;
24
+ length?: number | null;
25
+ position?: ReadPosition | null;
26
+ }
27
+ interface CreateReadStreamOptions extends Abortable {
28
+ encoding?: BufferEncoding | null | undefined;
29
+ autoClose?: boolean | undefined;
30
+ emitClose?: boolean | undefined;
31
+ start?: number | undefined;
32
+ end?: number | undefined;
33
+ highWaterMark?: number | undefined;
34
+ }
35
+ interface CreateWriteStreamOptions {
36
+ encoding?: BufferEncoding | null | undefined;
37
+ autoClose?: boolean | undefined;
38
+ emitClose?: boolean | undefined;
39
+ start?: number | undefined;
40
+ highWaterMark?: number | undefined;
41
+ flush?: boolean | undefined;
42
+ }
43
+ interface ReadableWebStreamOptions {
44
+ autoClose?: boolean | undefined;
45
+ }
46
+ interface PullOptions extends Abortable {
47
+ autoClose?: boolean | undefined;
48
+ start?: number | undefined;
49
+ limit?: number | undefined;
50
+ chunkSize?: number | undefined;
51
+ }
52
+ interface WriterOptions {
53
+ autoClose?: boolean | undefined;
54
+ start?: number | undefined;
55
+ limit?: number | undefined;
56
+ chunkSize?: number | undefined;
57
+ }
58
+ interface FileHandle {
59
+ readonly fd: number;
60
+ appendFile(data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView>, options?: (ObjectEncodingOptions & Abortable) | BufferEncoding | null): Promise<void>;
61
+ chown(uid: number, gid: number): Promise<void>;
62
+ chmod(mode: Mode): Promise<void>;
63
+ createReadStream(options?: CreateReadStreamOptions): ReadStream;
64
+ createWriteStream(options?: CreateWriteStreamOptions): WriteStream;
65
+ datasync(): Promise<void>;
66
+ pull(...transforms: Transform[]): ByteReadableStream;
67
+ pull(...args: [
68
+ ...transforms: Transform[],
69
+ options: PullOptions
70
+ ]): ByteReadableStream;
71
+ sync(): Promise<void>;
72
+ read<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number | null, length?: number | null, position?: ReadPosition | null): Promise<FileReadResult<T>>;
73
+ read<T extends NodeJS.ArrayBufferView>(buffer: T, options?: ReadOptions): Promise<FileReadResult<T>>;
74
+ read<T extends NodeJS.ArrayBufferView = NonSharedBuffer>(options?: ReadOptionsWithBuffer<T>): Promise<FileReadResult<T>>;
75
+ readableWebStream(options?: ReadableWebStreamOptions): ReadableStream;
76
+ readFile(options?: ({
77
+ encoding?: null | undefined;
78
+ } & Abortable) | null): Promise<NonSharedBuffer>;
79
+ readFile(options: ({
80
+ encoding: BufferEncoding;
81
+ } & Abortable) | BufferEncoding): Promise<string>;
82
+ readFile(options?: (ObjectEncodingOptions & Abortable) | BufferEncoding | null): Promise<string | NonSharedBuffer>;
83
+ readLines(options?: CreateReadStreamOptions): ReadlineInterface;
84
+ stat(opts?: StatOptions & {
85
+ bigint?: false | undefined;
86
+ }): Promise<Stats>;
87
+ stat(opts: StatOptions & {
88
+ bigint: true;
89
+ }): Promise<BigIntStats>;
90
+ stat(opts?: StatOptions): Promise<Stats | BigIntStats>;
91
+ truncate(len?: number): Promise<void>;
92
+ utimes(atime: TimeLike, mtime: TimeLike): Promise<void>;
93
+ writeFile(data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView>, options?: (ObjectEncodingOptions & Abortable) | BufferEncoding | null): Promise<void>;
94
+ write<TBuffer extends NodeJS.ArrayBufferView>(buffer: TBuffer, offset?: number | null, length?: number | null, position?: number | null): Promise<{
95
+ bytesWritten: number;
96
+ buffer: TBuffer;
97
+ }>;
98
+ write<TBuffer extends Uint8Array>(buffer: TBuffer, options?: {
99
+ offset?: number;
100
+ length?: number;
101
+ position?: number;
102
+ }): Promise<{
103
+ bytesWritten: number;
104
+ buffer: TBuffer;
105
+ }>;
106
+ write(data: string, position?: number | null, encoding?: BufferEncoding | null): Promise<{
107
+ bytesWritten: number;
108
+ buffer: string;
109
+ }>;
110
+ writev<TBuffers extends readonly NodeJS.ArrayBufferView[]>(buffers: TBuffers, position?: number): Promise<WriteVResult<TBuffers>>;
111
+ writer(options?: WriterOptions): Writer;
112
+ readv<TBuffers extends readonly NodeJS.ArrayBufferView[]>(buffers: TBuffers, position?: number): Promise<ReadVResult<TBuffers>>;
113
+ close(): Promise<void>;
114
+ [Symbol.asyncDispose](): Promise<void>;
115
+ }
116
+ const constants: typeof fsConstants;
117
+ function access(path: PathLike, mode?: number): Promise<void>;
118
+ function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise<void>;
119
+ function open(path: PathLike, flags?: string | number, mode?: Mode): Promise<FileHandle>;
120
+ function rename(oldPath: PathLike, newPath: PathLike): Promise<void>;
121
+ function truncate(path: PathLike, len?: number): Promise<void>;
122
+ function rmdir(path: PathLike): Promise<void>;
123
+ function rm(path: PathLike, options?: RmOptions): Promise<void>;
124
+ function mkdir(path: PathLike, options: MakeDirectoryOptions & {
125
+ recursive: true;
126
+ }): Promise<string | undefined>;
127
+ function mkdir(path: PathLike, options?: Mode | (MakeDirectoryOptions & {
128
+ recursive?: false | undefined;
129
+ }) | null): Promise<void>;
130
+ function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise<string | undefined>;
131
+ function readdir(path: PathLike, options?: (ObjectEncodingOptions & {
132
+ withFileTypes?: false | undefined;
133
+ recursive?: boolean | undefined;
134
+ }) | BufferEncoding | null): Promise<string[]>;
135
+ function readdir(path: PathLike, options: {
136
+ encoding: "buffer";
137
+ withFileTypes?: false | undefined;
138
+ recursive?: boolean | undefined;
139
+ } | "buffer"): Promise<NonSharedBuffer[]>;
140
+ function readdir(path: PathLike, options?: (ObjectEncodingOptions & {
141
+ withFileTypes?: false | undefined;
142
+ recursive?: boolean | undefined;
143
+ }) | BufferEncoding | null): Promise<string[] | NonSharedBuffer[]>;
144
+ function readdir(path: PathLike, options: ObjectEncodingOptions & {
145
+ withFileTypes: true;
146
+ recursive?: boolean | undefined;
147
+ }): Promise<Dirent[]>;
148
+ function readdir(path: PathLike, options: {
149
+ encoding: "buffer";
150
+ withFileTypes: true;
151
+ recursive?: boolean | undefined;
152
+ }): Promise<Dirent<NonSharedBuffer>[]>;
153
+ function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
154
+ function readlink(path: PathLike, options: BufferEncodingOption): Promise<NonSharedBuffer>;
155
+ function readlink(path: PathLike, options?: ObjectEncodingOptions | string | null): Promise<string | NonSharedBuffer>;
156
+ function symlink(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
157
+ function lstat(path: PathLike, opts?: StatOptions & {
158
+ bigint?: false | undefined;
159
+ }): Promise<Stats>;
160
+ function lstat(path: PathLike, opts: StatOptions & {
161
+ bigint: true;
162
+ }): Promise<BigIntStats>;
163
+ function lstat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
164
+ function stat(path: PathLike): Promise<Stats>;
165
+ function stat(path: PathLike, opts?: StatOptions & {
166
+ bigint?: false | undefined;
167
+ throwIfNoEntry?: true | undefined;
168
+ }): Promise<Stats>;
169
+ function stat(path: PathLike, opts: StatOptions & {
170
+ bigint: true;
171
+ throwIfNoEntry?: true | undefined;
172
+ }): Promise<BigIntStats>;
173
+ function stat(path: PathLike, opts: StatOptions & {
174
+ bigint?: false | undefined;
175
+ throwIfNoEntry: false;
176
+ }): Promise<Stats | undefined>;
177
+ function stat(path: PathLike, opts: StatOptions & {
178
+ bigint: true;
179
+ throwIfNoEntry: false;
180
+ }): Promise<BigIntStats | undefined>;
181
+ function stat(path: PathLike, opts: StatOptions & {
182
+ throwIfNoEntry?: true | undefined;
183
+ }): Promise<Stats | BigIntStats>;
184
+ function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats | undefined>;
185
+ function statfs(path: PathLike, opts?: StatFsOptions & {
186
+ bigint?: false | undefined;
187
+ }): Promise<StatsFs>;
188
+ function statfs(path: PathLike, opts: StatFsOptions & {
189
+ bigint: true;
190
+ }): Promise<BigIntStatsFs>;
191
+ function statfs(path: PathLike, opts?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
192
+ function link(existingPath: PathLike, newPath: PathLike): Promise<void>;
193
+ function unlink(path: PathLike): Promise<void>;
194
+ function chmod(path: PathLike, mode: Mode): Promise<void>;
195
+ function lchmod(path: PathLike, mode: Mode): Promise<void>;
196
+ function lchown(path: PathLike, uid: number, gid: number): Promise<void>;
197
+ function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
198
+ function chown(path: PathLike, uid: number, gid: number): Promise<void>;
199
+ function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
200
+ function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
201
+ function realpath(path: PathLike, options: BufferEncodingOption): Promise<NonSharedBuffer>;
202
+ function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string | NonSharedBuffer>;
203
+ function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
204
+ function mkdtemp(prefix: string, options: BufferEncodingOption): Promise<NonSharedBuffer>;
205
+ function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string | NonSharedBuffer>;
206
+ interface DisposableTempDir extends AsyncDisposable {
207
+ path: string;
208
+ remove(): Promise<void>;
209
+ [Symbol.asyncDispose](): Promise<void>;
210
+ }
211
+ function mkdtempDisposable(prefix: PathLike, options?: EncodingOption): Promise<DisposableTempDir>;
212
+ function writeFile(file: PathLike | FileHandle, data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView>, options?: (ObjectEncodingOptions & {
213
+ mode?: Mode | undefined;
214
+ flag?: OpenMode | undefined;
215
+ flush?: boolean | undefined;
216
+ } & Abortable) | BufferEncoding | null): Promise<void>;
217
+ function appendFile(path: PathLike | FileHandle, data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView>, options?: (ObjectEncodingOptions & FlagAndOpenMode & {
218
+ flush?: boolean | undefined;
219
+ }) | BufferEncoding | null): Promise<void>;
220
+ function readFile(path: PathLike | FileHandle, options?: ({
221
+ encoding?: null | undefined;
222
+ flag?: OpenMode | undefined;
223
+ } & Abortable) | null): Promise<NonSharedBuffer>;
224
+ function readFile(path: PathLike | FileHandle, options: ({
225
+ encoding: BufferEncoding;
226
+ flag?: OpenMode | undefined;
227
+ } & Abortable) | BufferEncoding): Promise<string>;
228
+ function readFile(path: PathLike | FileHandle, options?: (ObjectEncodingOptions & Abortable & {
229
+ flag?: OpenMode | undefined;
230
+ }) | BufferEncoding | null): Promise<string | NonSharedBuffer>;
231
+ function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
232
+ interface WatchOptions extends _WatchOptions {
233
+ maxQueue?: number | undefined;
234
+ overflow?: "ignore" | "throw" | undefined;
235
+ }
236
+ interface WatchOptionsWithBufferEncoding extends WatchOptions {
237
+ encoding: "buffer";
238
+ }
239
+ interface WatchOptionsWithStringEncoding extends WatchOptions {
240
+ encoding?: BufferEncoding | undefined;
241
+ }
242
+ function watch(filename: PathLike, options?: WatchOptionsWithStringEncoding | BufferEncoding): NodeJS.AsyncIterator<FileChangeInfo<string>>;
243
+ function watch(filename: PathLike, options: WatchOptionsWithBufferEncoding | "buffer"): NodeJS.AsyncIterator<FileChangeInfo<NonSharedBuffer>>;
244
+ function watch(filename: PathLike, options: WatchOptions | BufferEncoding | "buffer"): NodeJS.AsyncIterator<FileChangeInfo<string | NonSharedBuffer>>;
245
+ function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
246
+ function glob(pattern: string | readonly string[]): NodeJS.AsyncIterator<string>;
247
+ function glob(pattern: string | readonly string[], options: GlobOptionsWithFileTypes): NodeJS.AsyncIterator<Dirent>;
248
+ function glob(pattern: string | readonly string[], options: GlobOptionsWithoutFileTypes): NodeJS.AsyncIterator<string>;
249
+ function glob(pattern: string | readonly string[], options: GlobOptions): NodeJS.AsyncIterator<Dirent | string>;
250
+ }
251
+ declare module "fs/promises" {
252
+ export * from "node:fs/promises";
253
+ }