omegon 0.8.3 → 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.
- package/extensions/cleave/dispatcher.ts +213 -20
- package/extensions/cleave/index.ts +24 -8
- package/extensions/cleave/rpc-child.ts +269 -0
- package/extensions/cleave/types.ts +52 -0
- package/extensions/openspec/spec.ts +3 -0
- package/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +11 -5
- package/node_modules/@types/node/assert.d.ts +173 -50
- package/node_modules/@types/node/async_hooks.d.ts +8 -28
- package/node_modules/@types/node/buffer.buffer.d.ts +7 -1
- package/node_modules/@types/node/buffer.d.ts +168 -44
- package/node_modules/@types/node/child_process.d.ts +70 -27
- package/node_modules/@types/node/cluster.d.ts +332 -240
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -1
- package/node_modules/@types/node/console.d.ts +350 -49
- package/node_modules/@types/node/constants.d.ts +4 -3
- package/node_modules/@types/node/crypto.d.ts +1110 -630
- package/node_modules/@types/node/dgram.d.ts +51 -15
- package/node_modules/@types/node/diagnostics_channel.d.ts +6 -4
- package/node_modules/@types/node/dns/promises.d.ts +4 -4
- package/node_modules/@types/node/dns.d.ts +133 -132
- package/node_modules/@types/node/domain.d.ts +17 -13
- package/node_modules/@types/node/events.d.ts +663 -734
- package/node_modules/@types/node/fs/promises.d.ts +9 -43
- package/node_modules/@types/node/fs.d.ts +411 -628
- package/node_modules/@types/node/globals.d.ts +30 -8
- package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
- package/node_modules/@types/node/http.d.ts +265 -364
- package/node_modules/@types/node/http2.d.ts +715 -551
- package/node_modules/@types/node/https.d.ts +239 -65
- package/node_modules/@types/node/index.d.ts +6 -24
- package/node_modules/@types/node/inspector.d.ts +53 -69
- package/node_modules/@types/node/inspector.generated.d.ts +410 -759
- package/node_modules/@types/node/module.d.ts +186 -52
- package/node_modules/@types/node/net.d.ts +194 -70
- package/node_modules/@types/node/os.d.ts +11 -12
- package/node_modules/@types/node/package.json +3 -13
- package/node_modules/@types/node/path.d.ts +133 -120
- package/node_modules/@types/node/perf_hooks.d.ts +643 -318
- package/node_modules/@types/node/process.d.ts +132 -223
- package/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/node/readline.d.ts +120 -68
- package/node_modules/@types/node/repl.d.ts +100 -87
- package/node_modules/@types/node/sea.d.ts +1 -10
- package/node_modules/@types/node/sqlite.d.ts +19 -363
- package/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/stream/promises.d.ts +15 -136
- package/node_modules/@types/node/stream/web.d.ts +502 -176
- package/node_modules/@types/node/stream.d.ts +475 -581
- package/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/node/test.d.ts +196 -308
- package/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/timers.d.ts +132 -4
- package/node_modules/@types/node/tls.d.ts +226 -110
- package/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -1
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
- package/node_modules/@types/node/tty.d.ts +16 -58
- package/node_modules/@types/node/url.d.ts +573 -130
- package/node_modules/@types/node/util.d.ts +1100 -181
- package/node_modules/@types/node/v8.d.ts +8 -76
- package/node_modules/@types/node/vm.d.ts +72 -280
- package/node_modules/@types/node/wasi.d.ts +4 -25
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
- package/node_modules/@types/node/web-globals/events.d.ts +0 -9
- package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
- package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
- package/node_modules/@types/node/worker_threads.d.ts +335 -268
- package/node_modules/@types/node/zlib.d.ts +74 -9
- package/node_modules/undici-types/agent.d.ts +12 -13
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +12 -13
- package/node_modules/undici-types/client.d.ts +19 -19
- package/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/undici-types/cookies.d.ts +0 -2
- package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
- package/node_modules/undici-types/dispatcher.d.ts +103 -123
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
- package/node_modules/undici-types/errors.d.ts +54 -66
- package/node_modules/undici-types/eventsource.d.ts +4 -9
- package/node_modules/undici-types/fetch.d.ts +20 -22
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/handlers.d.ts +8 -8
- package/node_modules/undici-types/header.d.ts +1 -157
- package/node_modules/undici-types/index.d.ts +47 -64
- package/node_modules/undici-types/interceptors.d.ts +8 -64
- package/node_modules/undici-types/mock-agent.d.ts +18 -36
- package/node_modules/undici-types/mock-client.d.ts +4 -6
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
- package/node_modules/undici-types/mock-pool.d.ts +4 -6
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +4 -0
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +13 -15
- package/node_modules/undici-types/proxy-agent.d.ts +4 -5
- package/node_modules/undici-types/readable.d.ts +16 -19
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +10 -19
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/webidl.d.ts +29 -142
- package/node_modules/undici-types/websocket.d.ts +10 -46
- package/package.json +2 -1
- package/skills/cleave/SKILL.md +62 -2
- package/node_modules/@types/node/inspector/promises.d.ts +0 -41
- package/node_modules/@types/node/path/posix.d.ts +0 -8
- package/node_modules/@types/node/path/win32.d.ts +0 -8
- package/node_modules/@types/node/quic.d.ts +0 -910
- package/node_modules/@types/node/test/reporters.d.ts +0 -96
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
- package/node_modules/@types/node/ts5.7/index.d.ts +0 -117
- package/node_modules/@types/node/util/types.d.ts +0 -558
- package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
- package/node_modules/@types/node/web-globals/console.d.ts +0 -9
- package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
- package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
- package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
- package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
- package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
- package/node_modules/@types/node/web-globals/streams.d.ts +0 -115
- package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
- package/node_modules/@types/node/web-globals/url.d.ts +0 -24
- package/node_modules/undici-types/cache-interceptor.d.ts +0 -173
- package/node_modules/undici-types/client-stats.d.ts +0 -15
- package/node_modules/undici-types/h2c-client.d.ts +0 -73
- package/node_modules/undici-types/mock-call-history.d.ts +0 -111
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -41
- package/node_modules/undici-types/snapshot-agent.d.ts +0 -109
- package/node_modules/undici-types/utility.d.ts +0 -7
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
* wat2wasm demo.wat
|
|
68
68
|
* ```
|
|
69
69
|
* @experimental
|
|
70
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
70
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/wasi.js)
|
|
71
71
|
*/
|
|
72
|
-
declare module "
|
|
72
|
+
declare module "wasi" {
|
|
73
73
|
interface WASIOptions {
|
|
74
74
|
/**
|
|
75
75
|
* An array of strings that the WebAssembly application will
|
|
@@ -121,12 +121,6 @@ declare module "node:wasi" {
|
|
|
121
121
|
*/
|
|
122
122
|
version: "unstable" | "preview1";
|
|
123
123
|
}
|
|
124
|
-
interface FinalizeBindingsOptions {
|
|
125
|
-
/**
|
|
126
|
-
* @default instance.exports.memory
|
|
127
|
-
*/
|
|
128
|
-
memory?: object | undefined;
|
|
129
|
-
}
|
|
130
124
|
/**
|
|
131
125
|
* The `WASI` class provides the WASI system call API and additional convenience
|
|
132
126
|
* methods for working with WASI-based applications. Each `WASI` instance
|
|
@@ -173,21 +167,6 @@ declare module "node:wasi" {
|
|
|
173
167
|
* @since v14.6.0, v12.19.0
|
|
174
168
|
*/
|
|
175
169
|
initialize(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
|
|
176
|
-
/**
|
|
177
|
-
* Set up WASI host bindings to `instance` without calling `initialize()`
|
|
178
|
-
* or `start()`. This method is useful when the WASI module is instantiated in
|
|
179
|
-
* child threads for sharing the memory across threads.
|
|
180
|
-
*
|
|
181
|
-
* `finalizeBindings()` requires that either `instance` exports a
|
|
182
|
-
* [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named `memory` or user specify a
|
|
183
|
-
* [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) object in `options.memory`. If the `memory` is invalid
|
|
184
|
-
* an exception is thrown.
|
|
185
|
-
*
|
|
186
|
-
* `start()` and `initialize()` will call `finalizeBindings()` internally.
|
|
187
|
-
* If `finalizeBindings()` is called more than once, an exception is thrown.
|
|
188
|
-
* @since v24.4.0
|
|
189
|
-
*/
|
|
190
|
-
finalizeBindings(instance: object, options?: FinalizeBindingsOptions): void;
|
|
191
170
|
/**
|
|
192
171
|
* `wasiImport` is an object that implements the WASI system call API. This object
|
|
193
172
|
* should be passed as the `wasi_snapshot_preview1` import during the instantiation
|
|
@@ -197,6 +176,6 @@ declare module "node:wasi" {
|
|
|
197
176
|
readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
|
|
198
177
|
}
|
|
199
178
|
}
|
|
200
|
-
declare module "wasi" {
|
|
201
|
-
export * from "
|
|
179
|
+
declare module "node:wasi" {
|
|
180
|
+
export * from "wasi";
|
|
202
181
|
}
|
|
@@ -1,42 +1,17 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
|
|
3
|
-
import { InternalEventTargetEventProperties } from "node:events";
|
|
4
|
-
|
|
5
3
|
type _AbortController = typeof globalThis extends { onmessage: any } ? {} : AbortController;
|
|
6
4
|
interface AbortController {
|
|
7
5
|
readonly signal: AbortSignal;
|
|
8
6
|
abort(reason?: any): void;
|
|
9
7
|
}
|
|
10
8
|
|
|
11
|
-
interface AbortSignalEventMap {
|
|
12
|
-
"abort": Event;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
type _AbortSignal = typeof globalThis extends { onmessage: any } ? {} : AbortSignal;
|
|
16
|
-
interface AbortSignal extends EventTarget
|
|
10
|
+
interface AbortSignal extends EventTarget {
|
|
17
11
|
readonly aborted: boolean;
|
|
12
|
+
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
18
13
|
readonly reason: any;
|
|
19
14
|
throwIfAborted(): void;
|
|
20
|
-
addEventListener<K extends keyof AbortSignalEventMap>(
|
|
21
|
-
type: K,
|
|
22
|
-
listener: (ev: AbortSignalEventMap[K]) => void,
|
|
23
|
-
options?: AddEventListenerOptions | boolean,
|
|
24
|
-
): void;
|
|
25
|
-
addEventListener(
|
|
26
|
-
type: string,
|
|
27
|
-
listener: EventListener | EventListenerObject,
|
|
28
|
-
options?: AddEventListenerOptions | boolean,
|
|
29
|
-
): void;
|
|
30
|
-
removeEventListener<K extends keyof AbortSignalEventMap>(
|
|
31
|
-
type: K,
|
|
32
|
-
listener: (ev: AbortSignalEventMap[K]) => void,
|
|
33
|
-
options?: EventListenerOptions | boolean,
|
|
34
|
-
): void;
|
|
35
|
-
removeEventListener(
|
|
36
|
-
type: string,
|
|
37
|
-
listener: EventListener | EventListenerObject,
|
|
38
|
-
options?: EventListenerOptions | boolean,
|
|
39
|
-
): void;
|
|
40
15
|
}
|
|
41
16
|
|
|
42
17
|
declare global {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
|
|
3
|
-
type _AddEventListenerOptions = typeof globalThis extends { onmessage: any } ? {} : AddEventListenerOptions;
|
|
4
3
|
interface AddEventListenerOptions extends EventListenerOptions {
|
|
5
4
|
once?: boolean;
|
|
6
5
|
passive?: boolean;
|
|
@@ -44,12 +43,10 @@ interface EventInit {
|
|
|
44
43
|
composed?: boolean;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
type _EventListener = typeof globalThis extends { onmessage: any } ? {} : EventListener;
|
|
48
46
|
interface EventListener {
|
|
49
47
|
(evt: Event): void;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
type _EventListenerObject = typeof globalThis extends { onmessage: any } ? {} : EventListenerObject;
|
|
53
50
|
interface EventListenerObject {
|
|
54
51
|
handleEvent(object: Event): void;
|
|
55
52
|
}
|
|
@@ -75,8 +72,6 @@ interface EventTarget {
|
|
|
75
72
|
}
|
|
76
73
|
|
|
77
74
|
declare global {
|
|
78
|
-
interface AddEventListenerOptions extends _AddEventListenerOptions {}
|
|
79
|
-
|
|
80
75
|
interface CustomEvent<T = any> extends _CustomEvent<T> {}
|
|
81
76
|
var CustomEvent: typeof globalThis extends { onmessage: any; CustomEvent: infer T } ? T
|
|
82
77
|
: {
|
|
@@ -91,10 +86,6 @@ declare global {
|
|
|
91
86
|
new(type: string, eventInitDict?: EventInit): Event;
|
|
92
87
|
};
|
|
93
88
|
|
|
94
|
-
interface EventListener extends _EventListener {}
|
|
95
|
-
|
|
96
|
-
interface EventListenerObject extends _EventListenerObject {}
|
|
97
|
-
|
|
98
89
|
interface EventListenerOptions extends _EventListenerOptions {}
|
|
99
90
|
|
|
100
91
|
interface EventTarget extends _EventTarget {}
|
|
@@ -2,10 +2,6 @@ export {};
|
|
|
2
2
|
|
|
3
3
|
import * as undici from "undici-types";
|
|
4
4
|
|
|
5
|
-
type _CloseEvent = typeof globalThis extends { onmessage: any } ? {} : undici.CloseEvent;
|
|
6
|
-
type _CloseEventInit = typeof globalThis extends { onmessage: any } ? {} : undici.CloseEventInit;
|
|
7
|
-
type _ErrorEvent = typeof globalThis extends { onmessage: any } ? {} : undici.ErrorEvent;
|
|
8
|
-
type _ErrorEventInit = typeof globalThis extends { onmessage: any } ? {} : undici.ErrorEventInit;
|
|
9
5
|
type _EventSource = typeof globalThis extends { onmessage: any } ? {} : undici.EventSource;
|
|
10
6
|
type _EventSourceInit = typeof globalThis extends { onmessage: any } ? {} : undici.EventSourceInit;
|
|
11
7
|
type _FormData = typeof globalThis extends { onmessage: any } ? {} : undici.FormData;
|
|
@@ -25,16 +21,6 @@ declare global {
|
|
|
25
21
|
init?: RequestInit,
|
|
26
22
|
): Promise<Response>;
|
|
27
23
|
|
|
28
|
-
interface CloseEvent extends _CloseEvent {}
|
|
29
|
-
var CloseEvent: typeof globalThis extends { onmessage: any; CloseEvent: infer T } ? T : typeof undici.CloseEvent;
|
|
30
|
-
|
|
31
|
-
interface CloseEventInit extends _CloseEventInit {}
|
|
32
|
-
|
|
33
|
-
interface ErrorEvent extends _ErrorEvent {}
|
|
34
|
-
var ErrorEvent: typeof globalThis extends { onmessage: any; ErrorEvent: infer T } ? T : typeof undici.ErrorEvent;
|
|
35
|
-
|
|
36
|
-
interface ErrorEventInit extends _ErrorEventInit {}
|
|
37
|
-
|
|
38
24
|
interface EventSource extends _EventSource {}
|
|
39
25
|
var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T : typeof undici.EventSource;
|
|
40
26
|
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
|
|
3
|
-
import { LockManager } from "worker_threads";
|
|
4
|
-
|
|
5
3
|
// lib.webworker has `WorkerNavigator` rather than `Navigator`, so conditionals use `onabort` instead of `onmessage`
|
|
6
4
|
type _Navigator = typeof globalThis extends { onabort: any } ? {} : Navigator;
|
|
7
5
|
interface Navigator {
|
|
8
6
|
readonly hardwareConcurrency: number;
|
|
9
7
|
readonly language: string;
|
|
10
8
|
readonly languages: readonly string[];
|
|
11
|
-
readonly locks: LockManager;
|
|
12
9
|
readonly platform: string;
|
|
13
10
|
readonly userAgent: string;
|
|
14
11
|
}
|