@psnext/slingcli 2.4.20260516-1 → 2.4.20260520-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -5
- package/bin/sling.js +73 -10
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +10 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +10 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +9 -9
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -1
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +201 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +62 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +156 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +16 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +80 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +11 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +10 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +14 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +69 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +15 -0
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +129 -24
- package/node_modules/@mariozechner/clipboard-darwin-arm64/README.md +3 -0
- package/node_modules/@mariozechner/clipboard-darwin-arm64/clipboard.darwin-arm64.node +0 -0
- package/node_modules/@mariozechner/{clipboard-linux-x64-gnu → clipboard-darwin-arm64}/package.json +5 -8
- package/node_modules/@mariozechner/clipboard-darwin-universal/README.md +3 -0
- package/node_modules/@mariozechner/clipboard-darwin-universal/clipboard.darwin-universal.node +0 -0
- package/node_modules/@mariozechner/clipboard-darwin-universal/package.json +19 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/async_hooks.d.ts +108 -0
- package/node_modules/@types/node/crypto.d.ts +14 -3
- package/node_modules/@types/node/fs/promises.d.ts +126 -0
- package/node_modules/@types/node/fs.d.ts +4 -2
- package/node_modules/@types/node/index.d.ts +2 -0
- package/node_modules/@types/node/inspector.generated.d.ts +5 -0
- package/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +25 -1
- package/node_modules/@types/node/quic.d.ts +2 -2
- package/node_modules/@types/node/repl.d.ts +15 -0
- package/node_modules/@types/node/stream/iter.d.ts +301 -0
- package/node_modules/@types/node/test.d.ts +38 -12
- package/node_modules/@types/node/ts5.6/index.d.ts +2 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +2 -0
- package/node_modules/@types/node/vm.d.ts +5 -4
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.js +81 -41
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +37 -17
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.js +81 -41
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/perf.js.map +1 -1
- package/node_modules/lru-cache/package.json +8 -8
- package/node_modules/protobufjs/README.md +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.js +8 -6
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +8 -6
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/index.d.ts +2 -1
- package/node_modules/protobufjs/package.json +2 -2
- package/node_modules/protobufjs/src/converter.js +5 -3
- package/node_modules/protobufjs/src/type.js +1 -1
- package/package.json +2 -2
- package/slingshot/index.js +345 -339
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/README.md +0 -3
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
|
@@ -908,8 +908,8 @@ export const MODELS = {
|
|
|
908
908
|
cacheRead: 0,
|
|
909
909
|
cacheWrite: 0,
|
|
910
910
|
},
|
|
911
|
-
contextWindow:
|
|
912
|
-
maxTokens:
|
|
911
|
+
contextWindow: 262143,
|
|
912
|
+
maxTokens: 16000,
|
|
913
913
|
},
|
|
914
914
|
"moonshotai.kimi-k2.5": {
|
|
915
915
|
id: "moonshotai.kimi-k2.5",
|
|
@@ -925,8 +925,8 @@ export const MODELS = {
|
|
|
925
925
|
cacheRead: 0,
|
|
926
926
|
cacheWrite: 0,
|
|
927
927
|
},
|
|
928
|
-
contextWindow:
|
|
929
|
-
maxTokens:
|
|
928
|
+
contextWindow: 262143,
|
|
929
|
+
maxTokens: 16000,
|
|
930
930
|
},
|
|
931
931
|
"nvidia.nemotron-nano-12b-v2": {
|
|
932
932
|
id: "nvidia.nemotron-nano-12b-v2",
|
|
@@ -3479,6 +3479,24 @@ export const MODELS = {
|
|
|
3479
3479
|
contextWindow: 160000,
|
|
3480
3480
|
maxTokens: 160000,
|
|
3481
3481
|
},
|
|
3482
|
+
"accounts/fireworks/models/deepseek-v4-flash": {
|
|
3483
|
+
id: "accounts/fireworks/models/deepseek-v4-flash",
|
|
3484
|
+
name: "DeepSeek V4 Flash",
|
|
3485
|
+
api: "anthropic-messages",
|
|
3486
|
+
provider: "fireworks",
|
|
3487
|
+
baseUrl: "https://api.fireworks.ai/inference",
|
|
3488
|
+
compat: { "sendSessionAffinityHeaders": true, "supportsEagerToolInputStreaming": false, "supportsCacheControlOnTools": false, "supportsLongCacheRetention": false },
|
|
3489
|
+
reasoning: true,
|
|
3490
|
+
input: ["text"],
|
|
3491
|
+
cost: {
|
|
3492
|
+
input: 0.14,
|
|
3493
|
+
output: 0.28,
|
|
3494
|
+
cacheRead: 0.03,
|
|
3495
|
+
cacheWrite: 0,
|
|
3496
|
+
},
|
|
3497
|
+
contextWindow: 1000000,
|
|
3498
|
+
maxTokens: 384000,
|
|
3499
|
+
},
|
|
3482
3500
|
"accounts/fireworks/models/deepseek-v4-pro": {
|
|
3483
3501
|
id: "accounts/fireworks/models/deepseek-v4-pro",
|
|
3484
3502
|
name: "DeepSeek V4 Pro",
|
|
@@ -4511,6 +4529,24 @@ export const MODELS = {
|
|
|
4511
4529
|
contextWindow: 1048576,
|
|
4512
4530
|
maxTokens: 65536,
|
|
4513
4531
|
},
|
|
4532
|
+
"gemini-3.5-flash": {
|
|
4533
|
+
id: "gemini-3.5-flash",
|
|
4534
|
+
name: "Gemini 3.5 Flash",
|
|
4535
|
+
api: "google-generative-ai",
|
|
4536
|
+
provider: "google",
|
|
4537
|
+
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
4538
|
+
reasoning: true,
|
|
4539
|
+
thinkingLevelMap: { "off": null },
|
|
4540
|
+
input: ["text", "image"],
|
|
4541
|
+
cost: {
|
|
4542
|
+
input: 1.5,
|
|
4543
|
+
output: 9,
|
|
4544
|
+
cacheRead: 0.15,
|
|
4545
|
+
cacheWrite: 0,
|
|
4546
|
+
},
|
|
4547
|
+
contextWindow: 1048576,
|
|
4548
|
+
maxTokens: 65536,
|
|
4549
|
+
},
|
|
4514
4550
|
"gemini-flash-latest": {
|
|
4515
4551
|
id: "gemini-flash-latest",
|
|
4516
4552
|
name: "Gemini Flash Latest",
|
|
@@ -7335,9 +7371,9 @@ export const MODELS = {
|
|
|
7335
7371
|
"big-pickle": {
|
|
7336
7372
|
id: "big-pickle",
|
|
7337
7373
|
name: "Big Pickle",
|
|
7338
|
-
api: "
|
|
7374
|
+
api: "openai-completions",
|
|
7339
7375
|
provider: "opencode",
|
|
7340
|
-
baseUrl: "https://opencode.ai/zen",
|
|
7376
|
+
baseUrl: "https://opencode.ai/zen/v1",
|
|
7341
7377
|
reasoning: true,
|
|
7342
7378
|
input: ["text"],
|
|
7343
7379
|
cost: {
|
|
@@ -7542,6 +7578,24 @@ export const MODELS = {
|
|
|
7542
7578
|
contextWindow: 1048576,
|
|
7543
7579
|
maxTokens: 65536,
|
|
7544
7580
|
},
|
|
7581
|
+
"gemini-3.5-flash": {
|
|
7582
|
+
id: "gemini-3.5-flash",
|
|
7583
|
+
name: "Gemini 3.5 Flash",
|
|
7584
|
+
api: "google-generative-ai",
|
|
7585
|
+
provider: "opencode",
|
|
7586
|
+
baseUrl: "https://opencode.ai/zen/v1",
|
|
7587
|
+
reasoning: true,
|
|
7588
|
+
thinkingLevelMap: { "off": null },
|
|
7589
|
+
input: ["text", "image"],
|
|
7590
|
+
cost: {
|
|
7591
|
+
input: 1.5,
|
|
7592
|
+
output: 9,
|
|
7593
|
+
cacheRead: 0.15,
|
|
7594
|
+
cacheWrite: 0,
|
|
7595
|
+
},
|
|
7596
|
+
contextWindow: 1048576,
|
|
7597
|
+
maxTokens: 65536,
|
|
7598
|
+
},
|
|
7545
7599
|
"glm-5": {
|
|
7546
7600
|
id: "glm-5",
|
|
7547
7601
|
name: "GLM-5",
|
|
@@ -9054,7 +9108,7 @@ export const MODELS = {
|
|
|
9054
9108
|
cacheRead: 0.024999999999999998,
|
|
9055
9109
|
cacheWrite: 0.08333333333333334,
|
|
9056
9110
|
},
|
|
9057
|
-
contextWindow:
|
|
9111
|
+
contextWindow: 1000000,
|
|
9058
9112
|
maxTokens: 8192,
|
|
9059
9113
|
},
|
|
9060
9114
|
"google/gemini-2.0-flash-lite-001": {
|
|
@@ -9261,6 +9315,23 @@ export const MODELS = {
|
|
|
9261
9315
|
contextWindow: 1048756,
|
|
9262
9316
|
maxTokens: 65536,
|
|
9263
9317
|
},
|
|
9318
|
+
"google/gemini-3.5-flash": {
|
|
9319
|
+
id: "google/gemini-3.5-flash",
|
|
9320
|
+
name: "Google: Gemini 3.5 Flash",
|
|
9321
|
+
api: "openai-completions",
|
|
9322
|
+
provider: "openrouter",
|
|
9323
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
9324
|
+
reasoning: true,
|
|
9325
|
+
input: ["text", "image"],
|
|
9326
|
+
cost: {
|
|
9327
|
+
input: 1.5,
|
|
9328
|
+
output: 9,
|
|
9329
|
+
cacheRead: 0.15,
|
|
9330
|
+
cacheWrite: 0.08333333333333334,
|
|
9331
|
+
},
|
|
9332
|
+
contextWindow: 1048576,
|
|
9333
|
+
maxTokens: 65536,
|
|
9334
|
+
},
|
|
9264
9335
|
"google/gemma-3-12b-it": {
|
|
9265
9336
|
id: "google/gemma-3-12b-it",
|
|
9266
9337
|
name: "Google: Gemma 3 12B",
|
|
@@ -9406,9 +9477,9 @@ export const MODELS = {
|
|
|
9406
9477
|
reasoning: false,
|
|
9407
9478
|
input: ["text"],
|
|
9408
9479
|
cost: {
|
|
9409
|
-
input: 0.
|
|
9410
|
-
output:
|
|
9411
|
-
cacheRead: 0.
|
|
9480
|
+
input: 0.075,
|
|
9481
|
+
output: 0.625,
|
|
9482
|
+
cacheRead: 0.015,
|
|
9412
9483
|
cacheWrite: 0,
|
|
9413
9484
|
},
|
|
9414
9485
|
contextWindow: 262144,
|
|
@@ -11934,13 +12005,13 @@ export const MODELS = {
|
|
|
11934
12005
|
reasoning: true,
|
|
11935
12006
|
input: ["text", "image"],
|
|
11936
12007
|
cost: {
|
|
11937
|
-
input: 0.
|
|
12008
|
+
input: 0.13899999999999998,
|
|
11938
12009
|
output: 1,
|
|
11939
|
-
cacheRead: 0
|
|
12010
|
+
cacheRead: 0,
|
|
11940
12011
|
cacheWrite: 0,
|
|
11941
12012
|
},
|
|
11942
12013
|
contextWindow: 262144,
|
|
11943
|
-
maxTokens:
|
|
12014
|
+
maxTokens: 4096,
|
|
11944
12015
|
},
|
|
11945
12016
|
"qwen/qwen3.5-397b-a17b": {
|
|
11946
12017
|
id: "qwen/qwen3.5-397b-a17b",
|
|
@@ -12053,13 +12124,13 @@ export const MODELS = {
|
|
|
12053
12124
|
reasoning: true,
|
|
12054
12125
|
input: ["text", "image"],
|
|
12055
12126
|
cost: {
|
|
12056
|
-
input: 0.
|
|
12127
|
+
input: 0.149,
|
|
12057
12128
|
output: 1,
|
|
12058
|
-
cacheRead: 0
|
|
12129
|
+
cacheRead: 0,
|
|
12059
12130
|
cacheWrite: 0,
|
|
12060
12131
|
},
|
|
12061
12132
|
contextWindow: 262144,
|
|
12062
|
-
maxTokens:
|
|
12133
|
+
maxTokens: 4096,
|
|
12063
12134
|
},
|
|
12064
12135
|
"qwen/qwen3.6-flash": {
|
|
12065
12136
|
id: "qwen/qwen3.6-flash",
|
|
@@ -12580,13 +12651,13 @@ export const MODELS = {
|
|
|
12580
12651
|
reasoning: true,
|
|
12581
12652
|
input: ["text"],
|
|
12582
12653
|
cost: {
|
|
12583
|
-
input: 0
|
|
12584
|
-
output:
|
|
12585
|
-
cacheRead: 0
|
|
12654
|
+
input: 0,
|
|
12655
|
+
output: 0,
|
|
12656
|
+
cacheRead: 0,
|
|
12586
12657
|
cacheWrite: 0,
|
|
12587
12658
|
},
|
|
12588
|
-
contextWindow:
|
|
12589
|
-
maxTokens:
|
|
12659
|
+
contextWindow: 202800,
|
|
12660
|
+
maxTokens: 202800,
|
|
12590
12661
|
},
|
|
12591
12662
|
"z-ai/glm-5v-turbo": {
|
|
12592
12663
|
id: "z-ai/glm-5v-turbo",
|
|
@@ -12665,9 +12736,9 @@ export const MODELS = {
|
|
|
12665
12736
|
reasoning: true,
|
|
12666
12737
|
input: ["text", "image"],
|
|
12667
12738
|
cost: {
|
|
12668
|
-
input:
|
|
12669
|
-
output:
|
|
12670
|
-
cacheRead: 0.
|
|
12739
|
+
input: 1.5,
|
|
12740
|
+
output: 9,
|
|
12741
|
+
cacheRead: 0.15,
|
|
12671
12742
|
cacheWrite: 0.08333333333333334,
|
|
12672
12743
|
},
|
|
12673
12744
|
contextWindow: 1048576,
|
|
@@ -13934,6 +14005,23 @@ export const MODELS = {
|
|
|
13934
14005
|
contextWindow: 1000000,
|
|
13935
14006
|
maxTokens: 64000,
|
|
13936
14007
|
},
|
|
14008
|
+
"google/gemini-3.5-flash": {
|
|
14009
|
+
id: "google/gemini-3.5-flash",
|
|
14010
|
+
name: "Gemini 3.5 Flash",
|
|
14011
|
+
api: "anthropic-messages",
|
|
14012
|
+
provider: "vercel-ai-gateway",
|
|
14013
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
14014
|
+
reasoning: true,
|
|
14015
|
+
input: ["text", "image"],
|
|
14016
|
+
cost: {
|
|
14017
|
+
input: 1.5,
|
|
14018
|
+
output: 9,
|
|
14019
|
+
cacheRead: 0.15,
|
|
14020
|
+
cacheWrite: 0,
|
|
14021
|
+
},
|
|
14022
|
+
contextWindow: 1000000,
|
|
14023
|
+
maxTokens: 64000,
|
|
14024
|
+
},
|
|
13937
14025
|
"google/gemma-4-26b-a4b-it": {
|
|
13938
14026
|
id: "google/gemma-4-26b-a4b-it",
|
|
13939
14027
|
name: "Gemma 4 26B A4B IT",
|
|
@@ -14393,6 +14481,23 @@ export const MODELS = {
|
|
|
14393
14481
|
contextWindow: 128000,
|
|
14394
14482
|
maxTokens: 64000,
|
|
14395
14483
|
},
|
|
14484
|
+
"mistral/mistral-medium-3.5": {
|
|
14485
|
+
id: "mistral/mistral-medium-3.5",
|
|
14486
|
+
name: "Mistral Medium Latest",
|
|
14487
|
+
api: "anthropic-messages",
|
|
14488
|
+
provider: "vercel-ai-gateway",
|
|
14489
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
14490
|
+
reasoning: true,
|
|
14491
|
+
input: ["text"],
|
|
14492
|
+
cost: {
|
|
14493
|
+
input: 1.5,
|
|
14494
|
+
output: 7.5,
|
|
14495
|
+
cacheRead: 0,
|
|
14496
|
+
cacheWrite: 0,
|
|
14497
|
+
},
|
|
14498
|
+
contextWindow: 256000,
|
|
14499
|
+
maxTokens: 256000,
|
|
14500
|
+
},
|
|
14396
14501
|
"mistral/mistral-small": {
|
|
14397
14502
|
id: "mistral/mistral-small",
|
|
14398
14503
|
name: "Mistral Small",
|
|
Binary file
|
package/node_modules/@mariozechner/{clipboard-linux-x64-gnu → clipboard-darwin-arm64}/package.json
RENAMED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@mariozechner/clipboard-
|
|
2
|
+
"name": "@mariozechner/clipboard-darwin-arm64",
|
|
3
3
|
"version": "0.3.6",
|
|
4
4
|
"os": [
|
|
5
|
-
"
|
|
5
|
+
"darwin"
|
|
6
6
|
],
|
|
7
7
|
"cpu": [
|
|
8
|
-
"
|
|
8
|
+
"arm64"
|
|
9
9
|
],
|
|
10
|
-
"main": "clipboard.
|
|
10
|
+
"main": "clipboard.darwin-arm64.node",
|
|
11
11
|
"files": [
|
|
12
|
-
"clipboard.
|
|
12
|
+
"clipboard.darwin-arm64.node"
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">= 10"
|
|
17
17
|
},
|
|
18
|
-
"libc": [
|
|
19
|
-
"glibc"
|
|
20
|
-
],
|
|
21
18
|
"repository": {
|
|
22
19
|
"type": "git",
|
|
23
20
|
"url": "https://github.com/badlogic/clipboard.git"
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mariozechner/clipboard-darwin-universal",
|
|
3
|
+
"version": "0.3.6",
|
|
4
|
+
"os": [
|
|
5
|
+
"darwin"
|
|
6
|
+
],
|
|
7
|
+
"main": "clipboard.darwin-universal.node",
|
|
8
|
+
"files": [
|
|
9
|
+
"clipboard.darwin-universal.node"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">= 10"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/badlogic/clipboard.git"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 19 May 2026 17:48:56 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -491,6 +491,75 @@ declare module "node:async_hooks" {
|
|
|
491
491
|
* @experimental
|
|
492
492
|
*/
|
|
493
493
|
exit<R, TArgs extends any[]>(callback: (...args: TArgs) => R, ...args: TArgs): R;
|
|
494
|
+
/**
|
|
495
|
+
* Creates a disposable scope that enters the given store and automatically
|
|
496
|
+
* restores the previous store value when the scope is disposed. This method is
|
|
497
|
+
* designed to work with JavaScript's explicit resource management (`using` syntax).
|
|
498
|
+
*
|
|
499
|
+
* Example:
|
|
500
|
+
*
|
|
501
|
+
* ```js
|
|
502
|
+
* import { AsyncLocalStorage } from 'node:async_hooks';
|
|
503
|
+
*
|
|
504
|
+
* const asyncLocalStorage = new AsyncLocalStorage();
|
|
505
|
+
*
|
|
506
|
+
* {
|
|
507
|
+
* using _ = asyncLocalStorage.withScope('my-store');
|
|
508
|
+
* console.log(asyncLocalStorage.getStore()); // Prints: my-store
|
|
509
|
+
* }
|
|
510
|
+
*
|
|
511
|
+
* console.log(asyncLocalStorage.getStore()); // Prints: undefined
|
|
512
|
+
* ```
|
|
513
|
+
*
|
|
514
|
+
* The `withScope()` method is particularly useful for managing context in
|
|
515
|
+
* synchronous code where you want to ensure the previous store value is restored
|
|
516
|
+
* when exiting a block, even if an error is thrown.
|
|
517
|
+
*
|
|
518
|
+
* ```js
|
|
519
|
+
* import { AsyncLocalStorage } from 'node:async_hooks';
|
|
520
|
+
*
|
|
521
|
+
* const asyncLocalStorage = new AsyncLocalStorage();
|
|
522
|
+
*
|
|
523
|
+
* try {
|
|
524
|
+
* using _ = asyncLocalStorage.withScope('my-store');
|
|
525
|
+
* console.log(asyncLocalStorage.getStore()); // Prints: my-store
|
|
526
|
+
* throw new Error('test');
|
|
527
|
+
* } catch (e) {
|
|
528
|
+
* // Store is automatically restored even after error
|
|
529
|
+
* console.log(asyncLocalStorage.getStore()); // Prints: undefined
|
|
530
|
+
* }
|
|
531
|
+
* ```
|
|
532
|
+
*
|
|
533
|
+
* **Important:** When using `withScope()` in async functions before the first
|
|
534
|
+
* `await`, be aware that the scope change will affect the caller's context. The
|
|
535
|
+
* synchronous portion of an async function (before the first `await`) runs
|
|
536
|
+
* immediately when called, and when it reaches the first `await`, it returns the
|
|
537
|
+
* promise to the caller. At that point, the scope change becomes visible in the
|
|
538
|
+
* caller's context and will persist in subsequent synchronous code until something
|
|
539
|
+
* else changes the scope value. For async operations, prefer using `run()` which
|
|
540
|
+
* properly isolates context across async boundaries.
|
|
541
|
+
*
|
|
542
|
+
* ```js
|
|
543
|
+
* import { AsyncLocalStorage } from 'node:async_hooks';
|
|
544
|
+
*
|
|
545
|
+
* const asyncLocalStorage = new AsyncLocalStorage();
|
|
546
|
+
*
|
|
547
|
+
* async function example() {
|
|
548
|
+
* using _ = asyncLocalStorage.withScope('my-store');
|
|
549
|
+
* console.log(asyncLocalStorage.getStore()); // Prints: my-store
|
|
550
|
+
* await someAsyncOperation(); // Function pauses here and returns promise
|
|
551
|
+
* console.log(asyncLocalStorage.getStore()); // Prints: my-store
|
|
552
|
+
* }
|
|
553
|
+
*
|
|
554
|
+
* // Calling without await
|
|
555
|
+
* example(); // Synchronous portion runs, then pauses at first await
|
|
556
|
+
* // After the promise is returned, the scope 'my-store' is now active in caller!
|
|
557
|
+
* console.log(asyncLocalStorage.getStore()); // Prints: my-store (unexpected!)
|
|
558
|
+
* ```
|
|
559
|
+
* @since v25.9.0
|
|
560
|
+
* @experimental
|
|
561
|
+
*/
|
|
562
|
+
withScope(store: T): RunScope;
|
|
494
563
|
/**
|
|
495
564
|
* Transitions into the context for the remainder of the current
|
|
496
565
|
* synchronous execution and then persists the store through any following
|
|
@@ -533,6 +602,45 @@ declare module "node:async_hooks" {
|
|
|
533
602
|
*/
|
|
534
603
|
enterWith(store: T): void;
|
|
535
604
|
}
|
|
605
|
+
/**
|
|
606
|
+
* A disposable scope returned by `asyncLocalStorage.withScope()` that
|
|
607
|
+
* automatically restores the previous store value when disposed. This class
|
|
608
|
+
* implements the [Explicit Resource Management](https://github.com/tc39/proposal-explicit-resource-management) protocol and is designed to work
|
|
609
|
+
* with JavaScript's `using` syntax.
|
|
610
|
+
*
|
|
611
|
+
* The scope automatically restores the previous store value when the `using` block
|
|
612
|
+
* exits, whether through normal completion or by throwing an error.
|
|
613
|
+
* @since v25.9.0
|
|
614
|
+
* @experimental
|
|
615
|
+
*/
|
|
616
|
+
interface RunScope extends Disposable {
|
|
617
|
+
/**
|
|
618
|
+
* Explicitly ends the scope and restores the previous store value. This method
|
|
619
|
+
* is idempotent: calling it multiple times has the same effect as calling it once.
|
|
620
|
+
*
|
|
621
|
+
* The `[Symbol.dispose]()` method defers to `dispose()`.
|
|
622
|
+
*
|
|
623
|
+
* If `withScope()` is called without the `using` keyword, `dispose()` must be
|
|
624
|
+
* called manually to restore the previous store value. Forgetting to call
|
|
625
|
+
* `dispose()` will cause the store value to persist for the remainder of the
|
|
626
|
+
* current execution context:
|
|
627
|
+
*
|
|
628
|
+
* ```js
|
|
629
|
+
* import { AsyncLocalStorage } from 'node:async_hooks';
|
|
630
|
+
*
|
|
631
|
+
* const storage = new AsyncLocalStorage();
|
|
632
|
+
*
|
|
633
|
+
* // Without using, the scope must be disposed manually
|
|
634
|
+
* const scope = storage.withScope('my-store');
|
|
635
|
+
* // storage.getStore() === 'my-store' here
|
|
636
|
+
*
|
|
637
|
+
* scope.dispose(); // Restore previous value
|
|
638
|
+
* // storage.getStore() === undefined here
|
|
639
|
+
* ```
|
|
640
|
+
* @since v25.9.0
|
|
641
|
+
*/
|
|
642
|
+
dispose(): void;
|
|
643
|
+
}
|
|
536
644
|
/**
|
|
537
645
|
* @since v17.2.0, v16.14.0
|
|
538
646
|
* @return A map of provider types to the corresponding numeric id.
|
|
@@ -3778,7 +3778,7 @@ declare module "node:crypto" {
|
|
|
3778
3778
|
interface CShakeParams extends Algorithm {
|
|
3779
3779
|
customization?: NodeJS.BufferSource;
|
|
3780
3780
|
functionName?: NodeJS.BufferSource;
|
|
3781
|
-
|
|
3781
|
+
outputLength: number;
|
|
3782
3782
|
}
|
|
3783
3783
|
interface ContextParams extends Algorithm {
|
|
3784
3784
|
context?: NodeJS.BufferSource;
|
|
@@ -3815,6 +3815,10 @@ declare module "node:crypto" {
|
|
|
3815
3815
|
hash: HashAlgorithmIdentifier;
|
|
3816
3816
|
length?: number;
|
|
3817
3817
|
}
|
|
3818
|
+
interface KangarooTwelveParams {
|
|
3819
|
+
customization?: NodeJS.BufferSource;
|
|
3820
|
+
outputLength: number;
|
|
3821
|
+
}
|
|
3818
3822
|
interface JsonWebKey {
|
|
3819
3823
|
alg?: string;
|
|
3820
3824
|
crv?: string;
|
|
@@ -3849,7 +3853,7 @@ declare module "node:crypto" {
|
|
|
3849
3853
|
}
|
|
3850
3854
|
interface KmacParams extends Algorithm {
|
|
3851
3855
|
customization?: NodeJS.BufferSource;
|
|
3852
|
-
|
|
3856
|
+
outputLength: number;
|
|
3853
3857
|
}
|
|
3854
3858
|
interface Pbkdf2Params extends Algorithm {
|
|
3855
3859
|
hash: HashAlgorithmIdentifier;
|
|
@@ -3884,6 +3888,10 @@ declare module "node:crypto" {
|
|
|
3884
3888
|
interface RsaPssParams extends Algorithm {
|
|
3885
3889
|
saltLength: number;
|
|
3886
3890
|
}
|
|
3891
|
+
interface TurboShakeParams {
|
|
3892
|
+
domainSeparation?: number;
|
|
3893
|
+
outputLength: number;
|
|
3894
|
+
}
|
|
3887
3895
|
interface Crypto {
|
|
3888
3896
|
readonly subtle: SubtleCrypto;
|
|
3889
3897
|
getRandomValues<
|
|
@@ -3945,7 +3953,10 @@ declare module "node:crypto" {
|
|
|
3945
3953
|
extractable: boolean,
|
|
3946
3954
|
keyUsages: readonly KeyUsage[],
|
|
3947
3955
|
): Promise<CryptoKey>;
|
|
3948
|
-
digest(
|
|
3956
|
+
digest(
|
|
3957
|
+
algorithm: AlgorithmIdentifier | CShakeParams | TurboShakeParams | KangarooTwelveParams,
|
|
3958
|
+
data: NodeJS.BufferSource,
|
|
3959
|
+
): Promise<ArrayBuffer>;
|
|
3949
3960
|
encapsulateBits(
|
|
3950
3961
|
encapsulationAlgorithm: AlgorithmIdentifier,
|
|
3951
3962
|
encapsulationKey: CryptoKey,
|
|
@@ -37,6 +37,7 @@ declare module "node:fs/promises" {
|
|
|
37
37
|
WriteVResult,
|
|
38
38
|
} from "node:fs";
|
|
39
39
|
import { Stream } from "node:stream";
|
|
40
|
+
import { ByteReadableStream, Transform, Writer } from "node:stream/iter";
|
|
40
41
|
import { ReadableStream } from "node:stream/web";
|
|
41
42
|
interface FileChangeInfo<T extends string | Buffer> {
|
|
42
43
|
eventType: WatchEventType;
|
|
@@ -85,6 +86,57 @@ declare module "node:fs/promises" {
|
|
|
85
86
|
interface ReadableWebStreamOptions {
|
|
86
87
|
autoClose?: boolean | undefined;
|
|
87
88
|
}
|
|
89
|
+
interface PullOptions extends Abortable {
|
|
90
|
+
/**
|
|
91
|
+
* Close the file handle when the stream ends.
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
autoClose?: boolean | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Byte offset to begin reading from. When specified,
|
|
97
|
+
* reads use explicit positioning (`pread` semantics).
|
|
98
|
+
*/
|
|
99
|
+
start?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Maximum number of bytes to read before ending the
|
|
102
|
+
* iterator. Reads stop when `limit` bytes have been delivered or EOF is
|
|
103
|
+
* reached, whichever comes first.
|
|
104
|
+
*/
|
|
105
|
+
limit?: number | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Size in bytes of the buffer allocated for each
|
|
108
|
+
* read operation.
|
|
109
|
+
* @default 131072
|
|
110
|
+
*/
|
|
111
|
+
chunkSize?: number | undefined;
|
|
112
|
+
}
|
|
113
|
+
interface WriterOptions {
|
|
114
|
+
/**
|
|
115
|
+
* Close the file handle when the writer ends or fails.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
autoClose?: boolean | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Byte offset to start writing at. When specified,
|
|
121
|
+
* writes use explicit positioning.
|
|
122
|
+
*/
|
|
123
|
+
start?: number | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Maximum number of bytes the writer will accept.
|
|
126
|
+
* Async writes (`write()`, `writev()`) that would exceed the limit reject
|
|
127
|
+
* with `ERR_OUT_OF_RANGE`. Sync writes (`writeSync()`, `writevSync()`)
|
|
128
|
+
* return `false`.
|
|
129
|
+
*/
|
|
130
|
+
limit?: number | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* Maximum chunk size in bytes for synchronous write
|
|
133
|
+
* operations. Writes larger than this threshold fall back to async I/O.
|
|
134
|
+
* Set this to match the reader's `chunkSize` for optimal `pipeTo()`
|
|
135
|
+
* performance.
|
|
136
|
+
* @default 131072
|
|
137
|
+
*/
|
|
138
|
+
chunkSize?: number | undefined;
|
|
139
|
+
}
|
|
88
140
|
// TODO: Add `EventEmitter` close
|
|
89
141
|
interface FileHandle {
|
|
90
142
|
/**
|
|
@@ -202,6 +254,41 @@ declare module "node:fs/promises" {
|
|
|
202
254
|
* @return Fulfills with `undefined` upon success.
|
|
203
255
|
*/
|
|
204
256
|
datasync(): Promise<void>;
|
|
257
|
+
/**
|
|
258
|
+
* Return the file contents as an async iterable using the
|
|
259
|
+
* [`node:stream/iter`](https://nodejs.org/docs/latest-v25.x/api/stream_iter.html) pull model. Reads are performed in `chunkSize`-byte
|
|
260
|
+
* chunks (default 128 KB). If transforms are provided, they are applied
|
|
261
|
+
* via [`stream/iter pull()`](https://nodejs.org/docs/latest-v25.x/api/stream_iter.html#pullsource-transforms-options).
|
|
262
|
+
*
|
|
263
|
+
* The file handle is locked while the iterable is being consumed and unlocked
|
|
264
|
+
* when iteration completes, an error occurs, or the consumer breaks.
|
|
265
|
+
*
|
|
266
|
+
* This function is only available when the `--experimental-stream-iter` flag is
|
|
267
|
+
* enabled.
|
|
268
|
+
*
|
|
269
|
+
* ```js
|
|
270
|
+
* import { open } from 'node:fs/promises';
|
|
271
|
+
* import { text } from 'node:stream/iter';
|
|
272
|
+
* import { compressGzip } from 'node:zlib/iter';
|
|
273
|
+
*
|
|
274
|
+
* const fh = await open('input.txt', 'r');
|
|
275
|
+
*
|
|
276
|
+
* // Read as text
|
|
277
|
+
* console.log(await text(fh.pull({ autoClose: true })));
|
|
278
|
+
*
|
|
279
|
+
* // Read 1 KB starting at byte 100
|
|
280
|
+
* const fh2 = await open('input.txt', 'r');
|
|
281
|
+
* console.log(await text(fh2.pull({ start: 100, limit: 1024, autoClose: true })));
|
|
282
|
+
*
|
|
283
|
+
* // Read with compression
|
|
284
|
+
* const fh3 = await open('input.txt', 'r');
|
|
285
|
+
* const compressed = fh3.pull(compressGzip(), { autoClose: true });
|
|
286
|
+
* ```
|
|
287
|
+
* @since v25.9.0
|
|
288
|
+
* @experimental
|
|
289
|
+
*/
|
|
290
|
+
pull(...transforms: Transform[]): ByteReadableStream;
|
|
291
|
+
pull(...args: [...transforms: Transform[], options: PullOptions]): ByteReadableStream;
|
|
205
292
|
/**
|
|
206
293
|
* Request that all data for the open file descriptor is flushed to the storage
|
|
207
294
|
* device. The specific implementation is operating system and device specific.
|
|
@@ -450,6 +537,45 @@ declare module "node:fs/promises" {
|
|
|
450
537
|
buffers: TBuffers,
|
|
451
538
|
position?: number,
|
|
452
539
|
): Promise<WriteVResult<TBuffers>>;
|
|
540
|
+
/**
|
|
541
|
+
* Return a [`node:stream/iter`](https://nodejs.org/docs/latest-v25.x/api/stream_iter.html) writer backed by this file handle.
|
|
542
|
+
*
|
|
543
|
+
* The writer supports both `Symbol.asyncDispose` and `Symbol.dispose`:
|
|
544
|
+
*
|
|
545
|
+
* * `await using w = fh.writer()` — if the writer is still open (no `end()`
|
|
546
|
+
* called), `asyncDispose` calls `fail()`. If `end()` is pending, it waits
|
|
547
|
+
* for it to complete.
|
|
548
|
+
* * `using w = fh.writer()` — calls `fail()` unconditionally.
|
|
549
|
+
*
|
|
550
|
+
* The `writeSync()` and `writevSync()` methods enable the try-sync fast path
|
|
551
|
+
* used by [`stream/iter pipeTo()`](https://nodejs.org/docs/latest-v25.x/api/stream_iter.html#pipetosource-transforms-writer). When the reader's chunk size matches the
|
|
552
|
+
* writer's `chunkSize`, all writes in a `pipeTo()` pipeline complete
|
|
553
|
+
* synchronously with zero promise overhead.
|
|
554
|
+
*
|
|
555
|
+
* This function is only available when the `--experimental-stream-iter` flag is
|
|
556
|
+
* enabled.
|
|
557
|
+
*
|
|
558
|
+
* ```js
|
|
559
|
+
* import { open } from 'node:fs/promises';
|
|
560
|
+
* import { from, pipeTo } from 'node:stream/iter';
|
|
561
|
+
* import { compressGzip } from 'node:zlib/iter';
|
|
562
|
+
*
|
|
563
|
+
* // Async pipeline
|
|
564
|
+
* const fh = await open('output.gz', 'w');
|
|
565
|
+
* await pipeTo(from('Hello!'), compressGzip(), fh.writer({ autoClose: true }));
|
|
566
|
+
*
|
|
567
|
+
* // Sync pipeline with limit
|
|
568
|
+
* const src = await open('input.txt', 'r');
|
|
569
|
+
* const dst = await open('output.txt', 'w');
|
|
570
|
+
* const w = dst.writer({ limit: 1024 * 1024 }); // Max 1 MB
|
|
571
|
+
* await pipeTo(src.pull({ autoClose: true }), w);
|
|
572
|
+
* await w.end();
|
|
573
|
+
* await dst.close();
|
|
574
|
+
* ```
|
|
575
|
+
* @since v25.9.0
|
|
576
|
+
* @experimental
|
|
577
|
+
*/
|
|
578
|
+
writer(options?: WriterOptions): Writer;
|
|
453
579
|
/**
|
|
454
580
|
* Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s
|
|
455
581
|
* @since v13.13.0, v12.17.0
|