omegon 0.8.4 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/extensions/cleave/dispatcher.ts +213 -20
  2. package/extensions/cleave/rpc-child.ts +269 -0
  3. package/extensions/cleave/types.ts +52 -0
  4. package/node_modules/@types/node/README.md +3 -3
  5. package/node_modules/@types/node/assert/strict.d.ts +11 -5
  6. package/node_modules/@types/node/assert.d.ts +173 -50
  7. package/node_modules/@types/node/async_hooks.d.ts +8 -28
  8. package/node_modules/@types/node/buffer.buffer.d.ts +7 -1
  9. package/node_modules/@types/node/buffer.d.ts +168 -44
  10. package/node_modules/@types/node/child_process.d.ts +70 -27
  11. package/node_modules/@types/node/cluster.d.ts +332 -240
  12. package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  13. package/node_modules/@types/node/compatibility/index.d.ts +9 -0
  14. package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  15. package/node_modules/@types/node/compatibility/iterators.d.ts +0 -1
  16. package/node_modules/@types/node/console.d.ts +350 -49
  17. package/node_modules/@types/node/constants.d.ts +4 -3
  18. package/node_modules/@types/node/crypto.d.ts +1110 -630
  19. package/node_modules/@types/node/dgram.d.ts +51 -15
  20. package/node_modules/@types/node/diagnostics_channel.d.ts +6 -4
  21. package/node_modules/@types/node/dns/promises.d.ts +4 -4
  22. package/node_modules/@types/node/dns.d.ts +133 -132
  23. package/node_modules/@types/node/domain.d.ts +17 -13
  24. package/node_modules/@types/node/events.d.ts +663 -734
  25. package/node_modules/@types/node/fs/promises.d.ts +9 -43
  26. package/node_modules/@types/node/fs.d.ts +411 -628
  27. package/node_modules/@types/node/globals.d.ts +30 -8
  28. package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
  29. package/node_modules/@types/node/http.d.ts +265 -364
  30. package/node_modules/@types/node/http2.d.ts +715 -551
  31. package/node_modules/@types/node/https.d.ts +239 -65
  32. package/node_modules/@types/node/index.d.ts +6 -24
  33. package/node_modules/@types/node/inspector.d.ts +53 -69
  34. package/node_modules/@types/node/inspector.generated.d.ts +410 -759
  35. package/node_modules/@types/node/module.d.ts +186 -52
  36. package/node_modules/@types/node/net.d.ts +194 -70
  37. package/node_modules/@types/node/os.d.ts +11 -12
  38. package/node_modules/@types/node/package.json +3 -13
  39. package/node_modules/@types/node/path.d.ts +133 -120
  40. package/node_modules/@types/node/perf_hooks.d.ts +643 -318
  41. package/node_modules/@types/node/process.d.ts +132 -223
  42. package/node_modules/@types/node/punycode.d.ts +5 -5
  43. package/node_modules/@types/node/querystring.d.ts +4 -4
  44. package/node_modules/@types/node/readline/promises.d.ts +3 -3
  45. package/node_modules/@types/node/readline.d.ts +120 -68
  46. package/node_modules/@types/node/repl.d.ts +100 -87
  47. package/node_modules/@types/node/sea.d.ts +1 -10
  48. package/node_modules/@types/node/sqlite.d.ts +19 -363
  49. package/node_modules/@types/node/stream/consumers.d.ts +10 -10
  50. package/node_modules/@types/node/stream/promises.d.ts +15 -136
  51. package/node_modules/@types/node/stream/web.d.ts +502 -176
  52. package/node_modules/@types/node/stream.d.ts +475 -581
  53. package/node_modules/@types/node/string_decoder.d.ts +4 -4
  54. package/node_modules/@types/node/test.d.ts +196 -308
  55. package/node_modules/@types/node/timers/promises.d.ts +4 -4
  56. package/node_modules/@types/node/timers.d.ts +132 -4
  57. package/node_modules/@types/node/tls.d.ts +226 -110
  58. package/node_modules/@types/node/trace_events.d.ts +9 -9
  59. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -1
  60. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
  61. package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
  62. package/node_modules/@types/node/tty.d.ts +16 -58
  63. package/node_modules/@types/node/url.d.ts +573 -130
  64. package/node_modules/@types/node/util.d.ts +1100 -181
  65. package/node_modules/@types/node/v8.d.ts +8 -76
  66. package/node_modules/@types/node/vm.d.ts +72 -280
  67. package/node_modules/@types/node/wasi.d.ts +4 -25
  68. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
  69. package/node_modules/@types/node/web-globals/events.d.ts +0 -9
  70. package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
  71. package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
  72. package/node_modules/@types/node/worker_threads.d.ts +335 -268
  73. package/node_modules/@types/node/zlib.d.ts +74 -9
  74. package/node_modules/undici-types/agent.d.ts +12 -13
  75. package/node_modules/undici-types/api.d.ts +26 -26
  76. package/node_modules/undici-types/balanced-pool.d.ts +12 -13
  77. package/node_modules/undici-types/client.d.ts +19 -19
  78. package/node_modules/undici-types/connector.d.ts +2 -2
  79. package/node_modules/undici-types/cookies.d.ts +0 -2
  80. package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
  81. package/node_modules/undici-types/dispatcher.d.ts +103 -123
  82. package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
  83. package/node_modules/undici-types/errors.d.ts +54 -66
  84. package/node_modules/undici-types/eventsource.d.ts +4 -9
  85. package/node_modules/undici-types/fetch.d.ts +20 -22
  86. package/node_modules/undici-types/file.d.ts +39 -0
  87. package/node_modules/undici-types/filereader.d.ts +54 -0
  88. package/node_modules/undici-types/formdata.d.ts +7 -7
  89. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  90. package/node_modules/undici-types/global-origin.d.ts +5 -5
  91. package/node_modules/undici-types/handlers.d.ts +8 -8
  92. package/node_modules/undici-types/header.d.ts +1 -157
  93. package/node_modules/undici-types/index.d.ts +47 -64
  94. package/node_modules/undici-types/interceptors.d.ts +8 -64
  95. package/node_modules/undici-types/mock-agent.d.ts +18 -36
  96. package/node_modules/undici-types/mock-client.d.ts +4 -6
  97. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  98. package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
  99. package/node_modules/undici-types/mock-pool.d.ts +4 -6
  100. package/node_modules/undici-types/package.json +1 -1
  101. package/node_modules/undici-types/patch.d.ts +4 -0
  102. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  103. package/node_modules/undici-types/pool.d.ts +13 -15
  104. package/node_modules/undici-types/proxy-agent.d.ts +4 -5
  105. package/node_modules/undici-types/readable.d.ts +16 -19
  106. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  107. package/node_modules/undici-types/retry-handler.d.ts +10 -19
  108. package/node_modules/undici-types/util.d.ts +3 -3
  109. package/node_modules/undici-types/webidl.d.ts +29 -142
  110. package/node_modules/undici-types/websocket.d.ts +10 -46
  111. package/package.json +2 -1
  112. package/skills/cleave/SKILL.md +62 -2
  113. package/node_modules/@types/node/inspector/promises.d.ts +0 -41
  114. package/node_modules/@types/node/path/posix.d.ts +0 -8
  115. package/node_modules/@types/node/path/win32.d.ts +0 -8
  116. package/node_modules/@types/node/quic.d.ts +0 -910
  117. package/node_modules/@types/node/test/reporters.d.ts +0 -96
  118. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  119. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  120. package/node_modules/@types/node/ts5.7/index.d.ts +0 -117
  121. package/node_modules/@types/node/util/types.d.ts +0 -558
  122. package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  123. package/node_modules/@types/node/web-globals/console.d.ts +0 -9
  124. package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  125. package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  126. package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  127. package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  128. package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  129. package/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  130. package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  131. package/node_modules/@types/node/web-globals/url.d.ts +0 -24
  132. package/node_modules/undici-types/cache-interceptor.d.ts +0 -173
  133. package/node_modules/undici-types/client-stats.d.ts +0 -15
  134. package/node_modules/undici-types/h2c-client.d.ts +0 -73
  135. package/node_modules/undici-types/mock-call-history.d.ts +0 -111
  136. package/node_modules/undici-types/round-robin-pool.d.ts +0 -41
  137. package/node_modules/undici-types/snapshot-agent.d.ts +0 -109
  138. package/node_modules/undici-types/utility.d.ts +0 -7
@@ -1,6 +1,7 @@
1
1
  declare var global: typeof globalThis;
2
2
 
3
3
  declare var process: NodeJS.Process;
4
+ declare var console: Console;
4
5
 
5
6
  interface ErrorConstructor {
6
7
  /**
@@ -104,6 +105,31 @@ declare namespace NodeJS {
104
105
  syscall?: string | undefined;
105
106
  }
106
107
 
108
+ interface ReadableStream extends EventEmitter {
109
+ readable: boolean;
110
+ read(size?: number): string | Buffer;
111
+ setEncoding(encoding: BufferEncoding): this;
112
+ pause(): this;
113
+ resume(): this;
114
+ isPaused(): boolean;
115
+ pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
116
+ unpipe(destination?: WritableStream): this;
117
+ unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
118
+ wrap(oldStream: ReadableStream): this;
119
+ [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
120
+ }
121
+
122
+ interface WritableStream extends EventEmitter {
123
+ writable: boolean;
124
+ write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
125
+ write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
126
+ end(cb?: () => void): this;
127
+ end(data: string | Uint8Array, cb?: () => void): this;
128
+ end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
129
+ }
130
+
131
+ interface ReadWriteStream extends ReadableStream, WritableStream {}
132
+
107
133
  interface RefCounted {
108
134
  ref(): this;
109
135
  unref(): this;
@@ -133,18 +159,14 @@ declare namespace NodeJS {
133
159
  }
134
160
 
135
161
  /** An iterable iterator returned by the Node.js API. */
136
- interface Iterator<T, TReturn = undefined, TNext = any> extends IteratorObject<T, TReturn, TNext> {
162
+ // Default TReturn/TNext in v22 is `any`, for compatibility with the previously-used IterableIterator.
163
+ interface Iterator<T, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
137
164
  [Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
138
165
  }
139
166
 
140
167
  /** An async iterable iterator returned by the Node.js API. */
141
- interface AsyncIterator<T, TReturn = undefined, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
168
+ // Default TReturn/TNext in v22 is `any`, for compatibility with the previously-used AsyncIterableIterator.
169
+ interface AsyncIterator<T, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
142
170
  [Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
143
171
  }
144
-
145
- /** The [`BufferSource`](https://webidl.spec.whatwg.org/#BufferSource) type from the Web IDL specification. */
146
- type BufferSource = NonSharedArrayBufferView | ArrayBuffer;
147
-
148
- /** The [`AllowSharedBufferSource`](https://webidl.spec.whatwg.org/#AllowSharedBufferSource) type from the Web IDL specification. */
149
- type AllowSharedBufferSource = ArrayBufferView | ArrayBufferLike;
150
172
  }
@@ -12,7 +12,6 @@ declare global {
12
12
  | Int32Array<TArrayBuffer>
13
13
  | BigUint64Array<TArrayBuffer>
14
14
  | BigInt64Array<TArrayBuffer>
15
- | Float16Array<TArrayBuffer>
16
15
  | Float32Array<TArrayBuffer>
17
16
  | Float64Array<TArrayBuffer>;
18
17
  type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
@@ -21,81 +20,19 @@ declare global {
21
20
 
22
21
  // The following aliases are required to allow use of non-shared ArrayBufferViews in @types/node
23
22
  // while maintaining compatibility with TS <=5.6.
24
- // TODO: remove once @types/node no longer supports TS 5.6, and replace with native types.
25
- /**
26
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
27
- * TypeScript versions earlier than 5.7.
28
- */
29
23
  type NonSharedUint8Array = Uint8Array<ArrayBuffer>;
30
- /**
31
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
32
- * TypeScript versions earlier than 5.7.
33
- */
34
24
  type NonSharedUint8ClampedArray = Uint8ClampedArray<ArrayBuffer>;
35
- /**
36
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
37
- * TypeScript versions earlier than 5.7.
38
- */
39
25
  type NonSharedUint16Array = Uint16Array<ArrayBuffer>;
40
- /**
41
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
42
- * TypeScript versions earlier than 5.7.
43
- */
44
26
  type NonSharedUint32Array = Uint32Array<ArrayBuffer>;
45
- /**
46
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
47
- * TypeScript versions earlier than 5.7.
48
- */
49
27
  type NonSharedInt8Array = Int8Array<ArrayBuffer>;
50
- /**
51
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
52
- * TypeScript versions earlier than 5.7.
53
- */
54
28
  type NonSharedInt16Array = Int16Array<ArrayBuffer>;
55
- /**
56
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
57
- * TypeScript versions earlier than 5.7.
58
- */
59
29
  type NonSharedInt32Array = Int32Array<ArrayBuffer>;
60
- /**
61
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
62
- * TypeScript versions earlier than 5.7.
63
- */
64
30
  type NonSharedBigUint64Array = BigUint64Array<ArrayBuffer>;
65
- /**
66
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
67
- * TypeScript versions earlier than 5.7.
68
- */
69
31
  type NonSharedBigInt64Array = BigInt64Array<ArrayBuffer>;
70
- /**
71
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
72
- * TypeScript versions earlier than 5.7.
73
- */
74
- type NonSharedFloat16Array = Float16Array<ArrayBuffer>;
75
- /**
76
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
77
- * TypeScript versions earlier than 5.7.
78
- */
79
32
  type NonSharedFloat32Array = Float32Array<ArrayBuffer>;
80
- /**
81
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
82
- * TypeScript versions earlier than 5.7.
83
- */
84
33
  type NonSharedFloat64Array = Float64Array<ArrayBuffer>;
85
- /**
86
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
87
- * TypeScript versions earlier than 5.7.
88
- */
89
34
  type NonSharedDataView = DataView<ArrayBuffer>;
90
- /**
91
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
92
- * TypeScript versions earlier than 5.7.
93
- */
94
35
  type NonSharedTypedArray = TypedArray<ArrayBuffer>;
95
- /**
96
- * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
97
- * TypeScript versions earlier than 5.7.
98
- */
99
36
  type NonSharedArrayBufferView = ArrayBufferView<ArrayBuffer>;
100
37
  }
101
38
  }