@runlith/tagma 0.0.0-stage → 0.1.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/adapter/claudeHooks.d.ts +10 -0
- package/adapter/claudeHooks.js +4 -0
- package/adapter/declaration.d.ts +14 -0
- package/adapter/declaration.js +2 -0
- package/adapter/harness.d.ts +454 -0
- package/adapter/harness.js +2 -0
- package/adapter/hook.d.ts +43 -0
- package/adapter/hook.js +2 -0
- package/adapter/hostModules.d.ts +19 -0
- package/adapter/hostModules.js +2 -0
- package/adapter/loader.d.ts +10 -0
- package/adapter/loader.js +2 -0
- package/adapter/metadata.d.ts +179 -0
- package/adapter/metadata.js +4 -0
- package/adapter/payload.d.ts +19 -0
- package/adapter/payload.js +3 -0
- package/adapter/provider.d.ts +209 -0
- package/adapter/provider.js +2 -0
- package/adapter/settings.d.ts +182 -0
- package/adapter/settings.js +2 -0
- package/adapter/speech.d.ts +4 -0
- package/adapter/speech.js +2 -0
- package/host.d.ts +61223 -0
- package/package.json +129 -3
- package/plugin/Held-6krt6ncs.js +6 -0
- package/plugin/accountKey-tdjj67f5.js +2 -0
- package/plugin/adapter-qdnpxs6n.js +1 -0
- package/plugin/anthropic-a4pdzrv2.js +2 -0
- package/plugin/anthropic-messages-7gtja121.js +2 -0
- package/plugin/anthropic-z9xqmm3q.js +2 -0
- package/plugin/auth-0w6kk39v.js +2 -0
- package/plugin/authStatus-a1g3eb9p.js +2 -0
- package/plugin/bundling.d.ts +30 -0
- package/plugin/bundling.js +2 -0
- package/plugin/cacheLifetime-c5mpw676.js +2 -0
- package/plugin/callback-server-0wrzmjfx.js +16 -0
- package/plugin/capabilities-n3vfpy41.js +2 -0
- package/plugin/claudeHooks-edpg1e46.js +3 -0
- package/plugin/cli.js +21 -0
- package/plugin/cliStore-9rhjxtht.js +2 -0
- package/plugin/clientSession-tmmxm39z.js +2 -0
- package/plugin/codec-aa8mxqyr.js +1 -0
- package/plugin/connect-vrdsw05j.js +2 -0
- package/plugin/contract-qn0z7r9c.js +1 -0
- package/plugin/credential-5sgapkh0.js +2 -0
- package/plugin/deepseek-fvdrmjr9.js +2 -0
- package/plugin/deepseek-v388d1wv.js +2 -0
- package/plugin/definition-s3xx207f.js +2 -0
- package/plugin/description-8xhxryaq.js +2 -0
- package/plugin/deviceGrant-vgbscpr4.js +2 -0
- package/plugin/devin-hy98d305.js +2 -0
- package/plugin/duplex-kpmftvf7.js +2 -0
- package/plugin/endpoint-kvf97tz7.js +2 -0
- package/plugin/errors-5t42p4q1.js +2 -0
- package/plugin/events-e8vv9hda.js +2 -0
- package/plugin/events-s95ybm4g.js +2 -0
- package/plugin/executor-q8kp5q8h.js +2 -0
- package/plugin/failure-vr32debc.js +2 -0
- package/plugin/framing-nktw5sts.js +2 -0
- package/plugin/grant-67b10nhx.js +2 -0
- package/plugin/harness-nrh78w4d.js +2 -0
- package/plugin/headers-ss3dzznj.js +2 -0
- package/plugin/hook-hjrk83m8.js +2 -0
- package/plugin/icon-044pa3y8.js +6 -0
- package/plugin/icon-j22svmgp.js +4 -0
- package/plugin/icon-ny6qbjvc.js +4 -0
- package/plugin/icon-pz54e8n3.js +4 -0
- package/plugin/icon-qy92jx2b.js +4 -0
- package/plugin/ids-n269hc5k.js +2 -0
- package/plugin/images-q80x3bt1.js +2 -0
- package/plugin/index-cyd7v366.js +2 -0
- package/plugin/index-jpmjpmkn.js +2 -0
- package/plugin/lifecycle-qf4fh5m8.js +2 -0
- package/plugin/manual-2mdscj84.js +2 -0
- package/plugin/messages-1szh3p3k.js +2 -0
- package/plugin/metadata-zm1v3ptf.js +4 -0
- package/plugin/muse-r16jp51z.js +2 -0
- package/plugin/muse-tfe6sph7.js +2 -0
- package/plugin/museToolSchema-tbe0f3wa.js +2 -0
- package/plugin/notes-6amdhm6h.js +2 -0
- package/plugin/object-9pjtdam7.js +2 -0
- package/plugin/open-browser-vqb7ckt1.js +2 -0
- package/plugin/openai-0z6fy497.js +2 -0
- package/plugin/openai-37dne8v0.js +2 -0
- package/plugin/openai-compatible-chat-tq9w69h4.js +2 -0
- package/plugin/openai-images-x1sj79qh.js +2 -0
- package/plugin/openai-responses-dka6k753.js +2 -0
- package/plugin/opencodeGo-173fz5c5.js +3 -0
- package/plugin/opencodeGo-qgw3pfg6.js +2 -0
- package/plugin/options-pxwjpfdk.js +2 -0
- package/plugin/payload-2gr4q9g8.js +2 -0
- package/plugin/pkce-nrpept7w.js +2 -0
- package/plugin/plugin-1n46me5n.js +6 -0
- package/plugin/plugin-1vpp5mqk.js +4 -0
- package/plugin/plugin-1x94cj6e.js +3 -0
- package/plugin/plugin-1xze8f5y.js +3 -0
- package/plugin/plugin-285exjxd.js +3 -0
- package/plugin/plugin-3b8x73y6.js +3 -0
- package/plugin/plugin-3pfrkxg1.js +3 -0
- package/plugin/plugin-3whwpedj.js +3 -0
- package/plugin/plugin-521srf94.js +3 -0
- package/plugin/plugin-55fbx586.js +3 -0
- package/plugin/plugin-5zq084fb.js +3 -0
- package/plugin/plugin-60bdzk1r.js +4 -0
- package/plugin/plugin-6a56xsx3.js +3 -0
- package/plugin/plugin-6xpcmvm3.js +36 -0
- package/plugin/plugin-72xxqm1t.js +3 -0
- package/plugin/plugin-7y7ndrk9.js +3 -0
- package/plugin/plugin-80gqwmjy.js +3 -0
- package/plugin/plugin-8230g28p.js +3 -0
- package/plugin/plugin-8jf7f360.js +3 -0
- package/plugin/plugin-92redty0.js +3 -0
- package/plugin/plugin-9gha9fx3.js +3 -0
- package/plugin/plugin-a4ng6krf.js +3 -0
- package/plugin/plugin-ak62rhwz.js +3 -0
- package/plugin/plugin-ay29ch70.js +3 -0
- package/plugin/plugin-ba1sv0th.js +3 -0
- package/plugin/plugin-ca4vf4j5.js +3 -0
- package/plugin/plugin-cydz2zhy.js +3 -0
- package/plugin/plugin-d6hbav22.js +3 -0
- package/plugin/plugin-e2y95zm5.js +3 -0
- package/plugin/plugin-ff38dxy1.js +3 -0
- package/plugin/plugin-ff9hx5a4.js +3 -0
- package/plugin/plugin-fhc5q7r3.js +3 -0
- package/plugin/plugin-frrvs5yc.js +3 -0
- package/plugin/plugin-g65b14k1.js +3 -0
- package/plugin/plugin-gh857xdd.js +3 -0
- package/plugin/plugin-gkgs7vfv.js +3 -0
- package/plugin/plugin-h66k1zhn.js +14 -0
- package/plugin/plugin-je5cfnqn.js +3 -0
- package/plugin/plugin-jjm52353.js +3 -0
- package/plugin/plugin-jxvmq18y.js +3 -0
- package/plugin/plugin-kc4z9msd.js +3 -0
- package/plugin/plugin-kjtzm2q6.js +3 -0
- package/plugin/plugin-krbbb4ts.js +3 -0
- package/plugin/plugin-me00x60n.js +3 -0
- package/plugin/plugin-mqr325kz.js +3 -0
- package/plugin/plugin-njh1f7b2.js +5 -0
- package/plugin/plugin-nkb5bb2q.js +3 -0
- package/plugin/plugin-nqmb78ez.js +4 -0
- package/plugin/plugin-nzacjxf9.js +3 -0
- package/plugin/plugin-p59gy5xd.js +3 -0
- package/plugin/plugin-pfj9nc2e.js +3 -0
- package/plugin/plugin-pkxw1pfs.js +3 -0
- package/plugin/plugin-q1n5kwx0.js +3 -0
- package/plugin/plugin-q1sqj2tc.js +3 -0
- package/plugin/plugin-q7rk75bs.js +3 -0
- package/plugin/plugin-qpda63gv.js +3 -0
- package/plugin/plugin-rrgyjesv.js +3 -0
- package/plugin/plugin-sfdxgkds.js +3 -0
- package/plugin/plugin-v7k9fx92.js +3 -0
- package/plugin/plugin-vfjhxng8.js +3 -0
- package/plugin/plugin-vv72e4ah.js +3 -0
- package/plugin/plugin-w8f977my.js +3 -0
- package/plugin/plugin-xbnw80pk.js +3 -0
- package/plugin/plugin-yxgg03s0.js +5 -0
- package/plugin/plugin-z6hkd9rw.js +3 -0
- package/plugin/plugin-zew2m18x.js +3 -0
- package/plugin/plugin-zphe2a5v.js +9 -0
- package/plugin/plugin-zvyk8bnr.js +3 -0
- package/plugin/plugin-zw3ywa4b.js +3 -0
- package/plugin/plugin-zxe49p72.js +3 -0
- package/plugin/plugin-zz7yc97m.js +3 -0
- package/plugin/plugin.d.ts +175 -0
- package/plugin/plugin.js +2 -0
- package/plugin/points.generated.d.ts +341 -0
- package/plugin/points.generated.js +2 -0
- package/plugin/process.d.ts +4 -0
- package/plugin/process.js +85 -0
- package/plugin/protocol-hwnfh4h1.js +2 -0
- package/plugin/protocol.d.ts +115 -0
- package/plugin/protocol.js +2 -0
- package/plugin/provider-0b7xxyhn.js +2 -0
- package/plugin/quota-vrrmfag6.js +2 -0
- package/plugin/quotaRead-vj6e90xc.js +2 -0
- package/plugin/reasoning-5nanktp2.js +2 -0
- package/plugin/record-1m3vvy60.js +2 -0
- package/plugin/requests-2zyr1g8e.js +1 -0
- package/plugin/responseFold-w4526gvb.js +2 -0
- package/plugin/settings-vdypzert.js +2 -0
- package/plugin/shared-a2yyy8ry.js +2 -0
- package/plugin/speech-067caz1a.js +2 -0
- package/plugin/stepfun-3en5g41d.js +2 -0
- package/plugin/stepfun-bwsz4nrd.js +2 -0
- package/plugin/stream-bt8etfpc.js +2 -0
- package/plugin/svelteProgram-73v9yajk.js +2 -0
- package/plugin/synthesisDuplex-m2j6pmyv.js +2 -0
- package/plugin/template.d.ts +14 -0
- package/plugin/template.js +2 -0
- package/plugin/testing.d.ts +85 -0
- package/plugin/testing.js +4 -0
- package/plugin/tool-content-b9jtprr7.js +2 -0
- package/plugin/tool-stream-gdajdxn0.js +2 -0
- package/plugin/transport-7hfp9sn4.js +2 -0
- package/plugin/ui.generated.d.ts +1044 -0
- package/plugin/value.d.ts +8 -0
- package/plugin/value.js +2 -0
- package/plugin/vendor-pn6b5a8f.js +2 -0
- package/plugin/vendorCall-6n5chrn0.js +2 -0
- package/plugin/vendorCall-hv01nwsp.js +2 -0
- package/plugin/vendorPayload-awxqr7t8.js +2 -0
- package/plugin/vendorWeb-vnf344r1.js +2 -0
- package/plugin/verbatim-mqt9x4aa.js +2 -0
- package/plugin/xai-e8sbtk6a.js +2 -0
- package/plugin/xai-z1ysta23.js +2 -0
- package/rules/effect.d.ts +55 -0
- package/rules/effect.js +11 -0
- package/rules/rules.d.ts +342 -0
- package/rules/rules.js +50 -0
- package/types/node/assert/strict.d.ts +12 -0
- package/types/node/assert.d.ts +76 -0
- package/types/node/async_hooks.d.ts +113 -0
- package/types/node/buffer.buffer.d.ts +29 -0
- package/types/node/buffer.d.ts +162 -0
- package/types/node/child_process.d.ts +337 -0
- package/types/node/cluster.d.ts +118 -0
- package/types/node/compatibility/iterators.d.ts +11 -0
- package/types/node/console.d.ts +48 -0
- package/types/node/constants.d.ts +8 -0
- package/types/node/crypto.d.ts +847 -0
- package/types/node/dgram.d.ts +88 -0
- package/types/node/diagnostics_channel.d.ts +61 -0
- package/types/node/dns/promises.d.ts +94 -0
- package/types/node/dns.d.ts +276 -0
- package/types/node/domain.d.ts +17 -0
- package/types/node/events.d.ts +138 -0
- package/types/node/fs/promises.d.ts +253 -0
- package/types/node/fs.d.ts +1038 -0
- package/types/node/globals.d.ts +73 -0
- package/types/node/globals.typedarray.d.ts +22 -0
- package/types/node/http.d.ts +530 -0
- package/types/node/http2.d.ts +794 -0
- package/types/node/https.d.ts +66 -0
- package/types/node/index.d.ts +84 -0
- package/types/node/inspector/promises.d.ts +13 -0
- package/types/node/inspector.d.ts +61 -0
- package/types/node/inspector.generated.d.ts +1624 -0
- package/types/node/module.d.ts +187 -0
- package/types/node/net.d.ts +266 -0
- package/types/node/os.d.ts +236 -0
- package/types/node/path/posix.d.ts +8 -0
- package/types/node/path/win32.d.ts +8 -0
- package/types/node/path.d.ts +40 -0
- package/types/node/perf_hooks.d.ts +236 -0
- package/types/node/process.d.ts +436 -0
- package/types/node/punycode.d.ts +15 -0
- package/types/node/querystring.d.ts +22 -0
- package/types/node/quic.d.ts +203 -0
- package/types/node/readline/promises.d.ts +28 -0
- package/types/node/readline.d.ts +94 -0
- package/types/node/repl.d.ts +104 -0
- package/types/node/sea.d.ts +11 -0
- package/types/node/sqlite.d.ts +183 -0
- package/types/node/stream/consumers.d.ts +13 -0
- package/types/node/stream/iter.d.ts +240 -0
- package/types/node/stream/promises.d.ts +37 -0
- package/types/node/stream/web.d.ts +297 -0
- package/types/node/stream.d.ts +378 -0
- package/types/node/string_decoder.d.ts +10 -0
- package/types/node/test/reporters.d.ts +66 -0
- package/types/node/test.d.ts +462 -0
- package/types/node/timers/promises.d.ts +16 -0
- package/types/node/timers.d.ts +43 -0
- package/types/node/tls.d.ts +279 -0
- package/types/node/trace_events.d.ts +16 -0
- package/types/node/ts5.6/buffer.buffer.d.ts +26 -0
- package/types/node/ts5.6/compatibility/float16array.d.ts +43 -0
- package/types/node/ts5.6/globals.typedarray.d.ts +22 -0
- package/types/node/ts5.6/index.d.ts +84 -0
- package/types/node/ts5.7/compatibility/float16array.d.ts +50 -0
- package/types/node/ts5.7/index.d.ts +84 -0
- package/types/node/tty.d.ts +61 -0
- package/types/node/url.d.ts +165 -0
- package/types/node/util/types.d.ts +49 -0
- package/types/node/util.d.ts +320 -0
- package/types/node/v8.d.ts +178 -0
- package/types/node/vm.d.ts +130 -0
- package/types/node/wasi.d.ts +26 -0
- package/types/node/web-globals/abortcontroller.d.ts +47 -0
- package/types/node/web-globals/blob.d.ts +34 -0
- package/types/node/web-globals/console.d.ts +7 -0
- package/types/node/web-globals/crypto.d.ts +46 -0
- package/types/node/web-globals/domexception.d.ts +74 -0
- package/types/node/web-globals/encoding.d.ts +16 -0
- package/types/node/web-globals/events.d.ts +111 -0
- package/types/node/web-globals/fetch.d.ts +121 -0
- package/types/node/web-globals/importmeta.d.ts +11 -0
- package/types/node/web-globals/messaging.d.ts +32 -0
- package/types/node/web-globals/navigator.d.ts +28 -0
- package/types/node/web-globals/performance.d.ts +71 -0
- package/types/node/web-globals/storage.d.ts +26 -0
- package/types/node/web-globals/streams.d.ts +162 -0
- package/types/node/web-globals/timers.d.ts +22 -0
- package/types/node/web-globals/url.d.ts +27 -0
- package/types/node/worker_threads.d.ts +199 -0
- package/types/node/zlib/iter.d.ts +49 -0
- package/types/node/zlib.d.ts +360 -0
- package/types/undici/agent.d.ts +24 -0
- package/types/undici/api.d.ts +19 -0
- package/types/undici/balanced-pool.d.ts +16 -0
- package/types/undici/cache-interceptor.d.ts +98 -0
- package/types/undici/cache.d.ts +30 -0
- package/types/undici/client-stats.d.ts +9 -0
- package/types/undici/client.d.ts +61 -0
- package/types/undici/connector.d.ts +37 -0
- package/types/undici/content-type.d.ts +9 -0
- package/types/undici/cookies.d.ts +22 -0
- package/types/undici/diagnostics-channel.d.ts +72 -0
- package/types/undici/dispatcher.d.ts +207 -0
- package/types/undici/env-http-proxy-agent.d.ts +15 -0
- package/types/undici/errors.d.ts +117 -0
- package/types/undici/eventsource.d.ts +39 -0
- package/types/undici/fetch.d.ts +122 -0
- package/types/undici/formdata.d.ts +24 -0
- package/types/undici/global-dispatcher.d.ts +4 -0
- package/types/undici/global-origin.d.ts +3 -0
- package/types/undici/h2c-client.d.ts +35 -0
- package/types/undici/handlers.d.ts +7 -0
- package/types/undici/header.d.ts +10 -0
- package/types/undici/index.d.ts +85 -0
- package/types/undici/interceptors.d.ts +70 -0
- package/types/undici/mock-agent.d.ts +43 -0
- package/types/undici/mock-call-history.d.ts +57 -0
- package/types/undici/mock-client.d.ts +17 -0
- package/types/undici/mock-errors.d.ts +9 -0
- package/types/undici/mock-interceptor.d.ts +60 -0
- package/types/undici/mock-pool.d.ts +17 -0
- package/types/undici/patch.d.ts +21 -0
- package/types/undici/pool-stats.d.ts +11 -0
- package/types/undici/pool.d.ts +25 -0
- package/types/undici/proxy-agent.d.ts +22 -0
- package/types/undici/readable.d.ts +24 -0
- package/types/undici/retry-agent.d.ts +6 -0
- package/types/undici/retry-handler.d.ts +41 -0
- package/types/undici/round-robin-pool.d.ts +25 -0
- package/types/undici/snapshot-agent.d.ts +98 -0
- package/types/undici/socks5-proxy-agent.d.ts +17 -0
- package/types/undici/util.d.ts +4 -0
- package/types/undici/utility.d.ts +2 -0
- package/types/undici/webidl.d.ts +121 -0
- package/types/undici/websocket.d.ts +130 -0
- package/README.md +0 -3
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare module "node:cluster" {
|
|
2
|
+
import * as child_process from "node:child_process";
|
|
3
|
+
import { EventEmitter, InternalEventEmitter } from "node:events";
|
|
4
|
+
class Worker implements EventEmitter {
|
|
5
|
+
constructor(options?: cluster.WorkerOptions);
|
|
6
|
+
id: number;
|
|
7
|
+
process: child_process.ChildProcess;
|
|
8
|
+
send(message: child_process.Serializable, callback?: (error: Error | null) => void): boolean;
|
|
9
|
+
send(message: child_process.Serializable, sendHandle: child_process.SendHandle, callback?: (error: Error | null) => void): boolean;
|
|
10
|
+
send(message: child_process.Serializable, sendHandle: child_process.SendHandle, options?: child_process.MessageOptions, callback?: (error: Error | null) => void): boolean;
|
|
11
|
+
kill(signal?: string): void;
|
|
12
|
+
destroy(signal?: string): void;
|
|
13
|
+
disconnect(): this;
|
|
14
|
+
isConnected(): boolean;
|
|
15
|
+
isDead(): boolean;
|
|
16
|
+
exitedAfterDisconnect: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface Worker extends InternalEventEmitter<cluster.WorkerEventMap> {
|
|
19
|
+
}
|
|
20
|
+
type _Worker = Worker;
|
|
21
|
+
namespace cluster {
|
|
22
|
+
interface Worker extends _Worker {
|
|
23
|
+
}
|
|
24
|
+
interface WorkerOptions {
|
|
25
|
+
id?: number | undefined;
|
|
26
|
+
process?: child_process.ChildProcess | undefined;
|
|
27
|
+
state?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
interface WorkerEventMap {
|
|
30
|
+
"disconnect": [
|
|
31
|
+
];
|
|
32
|
+
"error": [
|
|
33
|
+
error: Error
|
|
34
|
+
];
|
|
35
|
+
"exit": [
|
|
36
|
+
code: number,
|
|
37
|
+
signal: string
|
|
38
|
+
];
|
|
39
|
+
"listening": [
|
|
40
|
+
address: Address
|
|
41
|
+
];
|
|
42
|
+
"message": [
|
|
43
|
+
message: any,
|
|
44
|
+
handle: child_process.SendHandle
|
|
45
|
+
];
|
|
46
|
+
"online": [
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
interface ClusterSettings {
|
|
50
|
+
execArgv?: string[] | undefined;
|
|
51
|
+
exec?: string | undefined;
|
|
52
|
+
args?: readonly string[] | undefined;
|
|
53
|
+
silent?: boolean | undefined;
|
|
54
|
+
stdio?: any[] | undefined;
|
|
55
|
+
uid?: number | undefined;
|
|
56
|
+
gid?: number | undefined;
|
|
57
|
+
inspectPort?: number | (() => number) | undefined;
|
|
58
|
+
serialization?: "json" | "advanced" | undefined;
|
|
59
|
+
cwd?: string | undefined;
|
|
60
|
+
windowsHide?: boolean | undefined;
|
|
61
|
+
}
|
|
62
|
+
interface Address {
|
|
63
|
+
address: string;
|
|
64
|
+
port: number;
|
|
65
|
+
addressType: 4 | 6 | -1 | "udp4" | "udp6";
|
|
66
|
+
}
|
|
67
|
+
interface ClusterEventMap {
|
|
68
|
+
"disconnect": [
|
|
69
|
+
worker: Worker
|
|
70
|
+
];
|
|
71
|
+
"exit": [
|
|
72
|
+
worker: Worker,
|
|
73
|
+
code: number,
|
|
74
|
+
signal: string
|
|
75
|
+
];
|
|
76
|
+
"fork": [
|
|
77
|
+
worker: Worker
|
|
78
|
+
];
|
|
79
|
+
"listening": [
|
|
80
|
+
worker: Worker,
|
|
81
|
+
address: Address
|
|
82
|
+
];
|
|
83
|
+
"message": [
|
|
84
|
+
worker: Worker,
|
|
85
|
+
message: any,
|
|
86
|
+
handle: child_process.SendHandle
|
|
87
|
+
];
|
|
88
|
+
"online": [
|
|
89
|
+
worker: Worker
|
|
90
|
+
];
|
|
91
|
+
"setup": [
|
|
92
|
+
settings: ClusterSettings
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
interface Cluster extends InternalEventEmitter<ClusterEventMap> {
|
|
96
|
+
Worker: typeof Worker;
|
|
97
|
+
disconnect(callback?: () => void): void;
|
|
98
|
+
fork(env?: any): Worker;
|
|
99
|
+
readonly isMaster: boolean;
|
|
100
|
+
readonly isPrimary: boolean;
|
|
101
|
+
readonly isWorker: boolean;
|
|
102
|
+
schedulingPolicy: number;
|
|
103
|
+
readonly settings: ClusterSettings;
|
|
104
|
+
setupMaster(settings?: ClusterSettings): void;
|
|
105
|
+
setupPrimary(settings?: ClusterSettings): void;
|
|
106
|
+
readonly worker?: Worker;
|
|
107
|
+
readonly workers?: NodeJS.Dict<Worker>;
|
|
108
|
+
readonly SCHED_NONE: number;
|
|
109
|
+
readonly SCHED_RR: number;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
var cluster: cluster.Cluster;
|
|
113
|
+
export = cluster;
|
|
114
|
+
}
|
|
115
|
+
declare module "cluster" {
|
|
116
|
+
import cluster = require("node:cluster");
|
|
117
|
+
export = cluster;
|
|
118
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface IteratorObject<T, TReturn, TNext> {
|
|
2
|
+
}
|
|
3
|
+
interface AsyncIteratorObject<T, TReturn, TNext> {
|
|
4
|
+
}
|
|
5
|
+
declare namespace NodeJS {
|
|
6
|
+
interface Iterator<T, TReturn, TNext> extends globalThis.Iterator<T, TReturn, TNext> {
|
|
7
|
+
}
|
|
8
|
+
interface AsyncIterator<T, TReturn, TNext> extends globalThis.AsyncIterator<T, TReturn, TNext> {
|
|
9
|
+
}
|
|
10
|
+
type BuiltinIteratorReturn = ReturnType<any[][typeof Symbol.iterator]> extends globalThis.Iterator<any, infer TReturn> ? TReturn : any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare module "node:console" {
|
|
2
|
+
import { InspectOptions } from "node:util";
|
|
3
|
+
namespace console {
|
|
4
|
+
interface ConsoleOptions {
|
|
5
|
+
stdout: NodeJS.WritableStream;
|
|
6
|
+
stderr?: NodeJS.WritableStream | undefined;
|
|
7
|
+
ignoreErrors?: boolean | undefined;
|
|
8
|
+
colorMode?: boolean | "auto" | undefined;
|
|
9
|
+
inspectOptions?: InspectOptions | ReadonlyMap<NodeJS.WritableStream, InspectOptions> | undefined;
|
|
10
|
+
groupIndentation?: number | undefined;
|
|
11
|
+
}
|
|
12
|
+
interface Console {
|
|
13
|
+
readonly Console: {
|
|
14
|
+
prototype: Console;
|
|
15
|
+
new (stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console;
|
|
16
|
+
new (options: ConsoleOptions): Console;
|
|
17
|
+
};
|
|
18
|
+
assert(condition?: unknown, ...data: any[]): void;
|
|
19
|
+
clear(): void;
|
|
20
|
+
count(label?: string): void;
|
|
21
|
+
countReset(label?: string): void;
|
|
22
|
+
debug(...data: any[]): void;
|
|
23
|
+
dir(item?: any, options?: InspectOptions): void;
|
|
24
|
+
dirxml(...data: any[]): void;
|
|
25
|
+
error(...data: any[]): void;
|
|
26
|
+
group(...data: any[]): void;
|
|
27
|
+
groupCollapsed(...data: any[]): void;
|
|
28
|
+
groupEnd(): void;
|
|
29
|
+
info(...data: any[]): void;
|
|
30
|
+
log(...data: any[]): void;
|
|
31
|
+
table(tabularData?: any, properties?: string[]): void;
|
|
32
|
+
time(label?: string): void;
|
|
33
|
+
timeEnd(label?: string): void;
|
|
34
|
+
timeLog(label?: string, ...data: any[]): void;
|
|
35
|
+
trace(...data: any[]): void;
|
|
36
|
+
warn(...data: any[]): void;
|
|
37
|
+
profile(label?: string): void;
|
|
38
|
+
profileEnd(label?: string): void;
|
|
39
|
+
timeStamp(label?: string): void;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
var console: console.Console;
|
|
43
|
+
export = console;
|
|
44
|
+
}
|
|
45
|
+
declare module "console" {
|
|
46
|
+
import console = require("node:console");
|
|
47
|
+
export = console;
|
|
48
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare module "node:constants" {
|
|
2
|
+
const constants: typeof import("node:os").constants.dlopen & typeof import("node:os").constants.errno & typeof import("node:os").constants.priority & typeof import("node:os").constants.signals & typeof import("node:fs").constants & typeof import("node:crypto").constants;
|
|
3
|
+
export = constants;
|
|
4
|
+
}
|
|
5
|
+
declare module "constants" {
|
|
6
|
+
import constants = require("node:constants");
|
|
7
|
+
export = constants;
|
|
8
|
+
}
|