@psnext/slingcli 2.4.20260527-2 → 2.4.20260528-1
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/bin/sling.js +17 -26
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +54 -54
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +10 -13
- package/node_modules/@nodable/entities/package.json +1 -1
- package/node_modules/@nodable/entities/src/EntityDecoder.js +1 -1
- package/node_modules/@nodable/entities/src/entities.js +0 -18
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +3 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +9 -40
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +9 -40
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +12 -142
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +7 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +184 -0
- package/node_modules/@smithy/core/dist-es/index.js +6 -6
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -4
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/{protocols/url-parser → transport}/parseUrl.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/{endpoints → transport}/toEndpointV1.js +1 -1
- package/node_modules/@smithy/core/dist-types/index.d.ts +10 -6
- package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/lib/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/httpHandler.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/requestBuilder.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +9 -0
- package/node_modules/@smithy/core/package.json +19 -10
- package/node_modules/@smithy/core/transport.d.ts +5 -0
- package/node_modules/@smithy/core/transport.js +5 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +2 -2
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +1 -1
- package/node_modules/lru-cache/package.json +1 -1
- package/package.json +2 -2
- package/slingshot/index.js +163 -163
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -21
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +0 -21
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -46
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +0 -24
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +0 -19
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +0 -27
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +0 -5
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +0 -10
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +0 -44
- package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +0 -5
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +0 -14
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +0 -18
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +0 -38
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +0 -15
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +0 -9
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +0 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +0 -61
- package/node_modules/@smithy/core/dist-es/request-builder/requestBuilder.js +0 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/util-middleware/getSmithyContext.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/TestVectors.fixture.js +0 -146
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/vectorTypes.fixture.js +0 -1
- package/node_modules/@smithy/core/dist-types/request-builder/requestBuilder.d.ts +0 -6
- package/node_modules/@smithy/core/dist-types/submodules/client/util-middleware/getSmithyContext.d.ts +0 -5
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/eventstream-codec/TestVectors.fixture.d.ts +0 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/eventstream-codec/vectorTypes.fixture.d.ts +0 -12
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +0 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +0 -8
- package/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js +0 -399
- package/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +0 -14
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{pagination → legacy-root-exports/pagination}/createPaginator.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.js +0 -0
- /package/node_modules/@smithy/core/dist-es/{getSmithyContext.js → submodules/transport/getSmithyContext.js} +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpRequest.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/httpResponse.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/protocol-http → transport}/isValidHostname.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{client/util-middleware → transport}/normalizeProvider.js +0 -0
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols/querystring-parser → transport}/parseQueryString.js +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/getHttpAuthSchemePlugin.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/httpAuthSchemeMiddleware.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/index.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-auth-scheme → legacy-root-exports/middleware-http-auth-scheme}/resolveAuthOptions.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/getHttpSigningMiddleware.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/httpSigningMiddleware.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{middleware-http-signing → legacy-root-exports/middleware-http-signing}/index.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{pagination → legacy-root-exports/pagination}/createPaginator.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/DefaultIdentityProviderConfig.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpApiKeyAuth.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/httpBearerAuth.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/index.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/httpAuthSchemes/noAuth.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/index.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{util-identity-and-auth → legacy-root-exports/util-identity-and-auth}/memoizeIdentityProvider.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/{getSmithyContext.d.ts → submodules/transport/getSmithyContext.d.ts} +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/httpRequest.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/httpResponse.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{endpoints/util-endpoints/lib → transport}/isValidHostLabel.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/protocol-http → transport}/isValidHostname.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{client/util-middleware → transport}/normalizeProvider.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/querystring-parser → transport}/parseQueryString.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols/url-parser → transport}/parseUrl.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{endpoints → transport}/toEndpointV1.d.ts +0 -0
package/bin/sling.js
CHANGED
|
@@ -116,9 +116,8 @@ function shouldSkipAutoInstall(argv) {
|
|
|
116
116
|
return false;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
-
return isTruthyFlag(process.env.SKIP_SLING_PACKAGE_UPDATE_CHECK);
|
|
119
|
+
function shouldUpdateDefaultPackage(argv) {
|
|
120
|
+
return argv.includes("--update-package");
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
function hasUpdateRequest(argv) {
|
|
@@ -134,7 +133,7 @@ function stripSlingWrapperFlags(argv) {
|
|
|
134
133
|
// which does not recognize them.
|
|
135
134
|
return argv.filter(
|
|
136
135
|
(arg) =>
|
|
137
|
-
arg !== "--
|
|
136
|
+
arg !== "--update-package" &&
|
|
138
137
|
arg !== "-y" &&
|
|
139
138
|
arg !== "--yes",
|
|
140
139
|
);
|
|
@@ -165,7 +164,7 @@ function syncBundledSkills() {
|
|
|
165
164
|
async function checkAndInstallPackages(argv = process.argv.slice(2)) {
|
|
166
165
|
if (shouldSkipAutoInstall(argv)) return;
|
|
167
166
|
|
|
168
|
-
const configPath = path.resolve(__dirname, "../sling-default-packages.json");
|
|
167
|
+
const configPath = IS_DEV ? path.resolve(__dirname, "./sling-default-packages.json") : path.resolve(__dirname, "../sling-default-packages.json");
|
|
169
168
|
if (!existsSync(configPath)) return;
|
|
170
169
|
|
|
171
170
|
let installed = new Set();
|
|
@@ -195,7 +194,7 @@ async function checkAndInstallPackages(argv = process.argv.slice(2)) {
|
|
|
195
194
|
console.log(`✓ Removed ${u}`);
|
|
196
195
|
} catch (err) {
|
|
197
196
|
console.error(`✗ Failed to remove ${u}:`, err.message);
|
|
198
|
-
console.error(`
|
|
197
|
+
console.error(`You may need to manually remove it with: sling remove ${u}`);
|
|
199
198
|
}
|
|
200
199
|
}
|
|
201
200
|
|
|
@@ -203,26 +202,18 @@ async function checkAndInstallPackages(argv = process.argv.slice(2)) {
|
|
|
203
202
|
for (const u of unsupported) installed.delete(u);
|
|
204
203
|
|
|
205
204
|
const config = JSON.parse(readFileSync(configPath, "utf-8"));
|
|
206
|
-
const
|
|
205
|
+
const updateDefaultPackage = shouldUpdateDefaultPackage(argv);
|
|
207
206
|
|
|
208
|
-
if (
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
console.log(`✓ Updated ${pkg}`);
|
|
218
|
-
} catch (err) {
|
|
219
|
-
console.error(`✗ Failed to update ${pkg}:`, err.message);
|
|
220
|
-
console.error(` You can manually update it later with: sling update ${pkg}`);
|
|
221
|
-
}
|
|
207
|
+
if (updateDefaultPackage) {
|
|
208
|
+
try {
|
|
209
|
+
// Update extension packages only. Running one update command here keeps
|
|
210
|
+
// wrapper/package-manager behavior consistent with manual `sling update`.
|
|
211
|
+
await runCommand(process.execPath, [__filename, "update", "--extensions"]);
|
|
212
|
+
console.log("✓ Updated installed packages");
|
|
213
|
+
} catch (err) {
|
|
214
|
+
console.error("✗ Failed to update installed packages:", err.message);
|
|
215
|
+
console.error("You can manually update them later with: sling update --extensions");
|
|
222
216
|
}
|
|
223
|
-
} else {
|
|
224
|
-
console.log("Skipping default package updates and installs (--skip-pkg-update).");
|
|
225
|
-
return;
|
|
226
217
|
}
|
|
227
218
|
const packages = (config.packages || []).filter((p) => {
|
|
228
219
|
const source = typeof p === "object" && p !== null ? p.source : p;
|
|
@@ -240,7 +231,7 @@ async function checkAndInstallPackages(argv = process.argv.slice(2)) {
|
|
|
240
231
|
console.log(`✓ Installed ${pkg}`);
|
|
241
232
|
} catch (err) {
|
|
242
233
|
console.error(`✗ Failed to install ${pkg}:`, err.message);
|
|
243
|
-
console.error(`
|
|
234
|
+
console.error(`You can manually install it later with: sling install ${pkg}`);
|
|
244
235
|
}
|
|
245
236
|
}
|
|
246
237
|
} catch (err) {
|
|
@@ -396,7 +387,7 @@ async function run() {
|
|
|
396
387
|
setGlobalDispatcher(new EnvHttpProxyAgent({ bodyTimeout: 0, headersTimeout: 0 }));
|
|
397
388
|
await productionOnly(checkForUpdate, rawArgs);
|
|
398
389
|
syncBundledSkills();
|
|
399
|
-
await
|
|
390
|
+
await checkAndInstallPackages(rawArgs);
|
|
400
391
|
setBedrockProviderModule(bedrockProviderModule);
|
|
401
392
|
let args = applyNoEnv(stripSlingWrapperFlags(rawArgs));
|
|
402
393
|
args = await promptInstallScopeIfNeeded(args);
|
|
@@ -2614,23 +2614,6 @@ export const MODELS = {
|
|
|
2614
2614
|
contextWindow: 32000,
|
|
2615
2615
|
maxTokens: 8000,
|
|
2616
2616
|
},
|
|
2617
|
-
"qwen-3-235b-a22b-instruct-2507": {
|
|
2618
|
-
id: "qwen-3-235b-a22b-instruct-2507",
|
|
2619
|
-
name: "Qwen 3 235B Instruct",
|
|
2620
|
-
api: "openai-completions",
|
|
2621
|
-
provider: "cerebras",
|
|
2622
|
-
baseUrl: "https://api.cerebras.ai/v1",
|
|
2623
|
-
reasoning: false,
|
|
2624
|
-
input: ["text"],
|
|
2625
|
-
cost: {
|
|
2626
|
-
input: 0.6,
|
|
2627
|
-
output: 1.2,
|
|
2628
|
-
cacheRead: 0,
|
|
2629
|
-
cacheWrite: 0,
|
|
2630
|
-
},
|
|
2631
|
-
contextWindow: 131000,
|
|
2632
|
-
maxTokens: 32000,
|
|
2633
|
-
},
|
|
2634
2617
|
"zai-glm-4.7": {
|
|
2635
2618
|
id: "zai-glm-4.7",
|
|
2636
2619
|
name: "Z.AI GLM-4.7",
|
|
@@ -4847,7 +4830,7 @@ export const MODELS = {
|
|
|
4847
4830
|
cost: {
|
|
4848
4831
|
input: 1,
|
|
4849
4832
|
output: 3,
|
|
4850
|
-
cacheRead: 0,
|
|
4833
|
+
cacheRead: 0.5,
|
|
4851
4834
|
cacheWrite: 0,
|
|
4852
4835
|
},
|
|
4853
4836
|
contextWindow: 262144,
|
|
@@ -4864,7 +4847,7 @@ export const MODELS = {
|
|
|
4864
4847
|
cost: {
|
|
4865
4848
|
input: 0.15,
|
|
4866
4849
|
output: 0.6,
|
|
4867
|
-
cacheRead: 0,
|
|
4850
|
+
cacheRead: 0.075,
|
|
4868
4851
|
cacheWrite: 0,
|
|
4869
4852
|
},
|
|
4870
4853
|
contextWindow: 131072,
|
|
@@ -4881,7 +4864,7 @@ export const MODELS = {
|
|
|
4881
4864
|
cost: {
|
|
4882
4865
|
input: 0.075,
|
|
4883
4866
|
output: 0.3,
|
|
4884
|
-
cacheRead: 0,
|
|
4867
|
+
cacheRead: 0.0375,
|
|
4885
4868
|
cacheWrite: 0,
|
|
4886
4869
|
},
|
|
4887
4870
|
contextWindow: 131072,
|
|
@@ -7637,6 +7620,23 @@ export const MODELS = {
|
|
|
7637
7620
|
contextWindow: 262144,
|
|
7638
7621
|
maxTokens: 65536,
|
|
7639
7622
|
},
|
|
7623
|
+
"mimo-v2.5-free": {
|
|
7624
|
+
id: "mimo-v2.5-free",
|
|
7625
|
+
name: "MiMo V2.5 Free",
|
|
7626
|
+
api: "openai-completions",
|
|
7627
|
+
provider: "opencode",
|
|
7628
|
+
baseUrl: "https://opencode.ai/zen/v1",
|
|
7629
|
+
reasoning: true,
|
|
7630
|
+
input: ["text", "image"],
|
|
7631
|
+
cost: {
|
|
7632
|
+
input: 0,
|
|
7633
|
+
output: 0,
|
|
7634
|
+
cacheRead: 0,
|
|
7635
|
+
cacheWrite: 0,
|
|
7636
|
+
},
|
|
7637
|
+
contextWindow: 1000000,
|
|
7638
|
+
maxTokens: 128000,
|
|
7639
|
+
},
|
|
7640
7640
|
"minimax-m2.5": {
|
|
7641
7641
|
id: "minimax-m2.5",
|
|
7642
7642
|
name: "MiniMax M2.5",
|
|
@@ -7839,9 +7839,9 @@ export const MODELS = {
|
|
|
7839
7839
|
reasoning: true,
|
|
7840
7840
|
input: ["text", "image"],
|
|
7841
7841
|
cost: {
|
|
7842
|
-
input: 0.
|
|
7843
|
-
output:
|
|
7844
|
-
cacheRead: 0.
|
|
7842
|
+
input: 0.14,
|
|
7843
|
+
output: 0.28,
|
|
7844
|
+
cacheRead: 0.0028,
|
|
7845
7845
|
cacheWrite: 0,
|
|
7846
7846
|
},
|
|
7847
7847
|
contextWindow: 1000000,
|
|
@@ -7856,9 +7856,9 @@ export const MODELS = {
|
|
|
7856
7856
|
reasoning: true,
|
|
7857
7857
|
input: ["text"],
|
|
7858
7858
|
cost: {
|
|
7859
|
-
input: 1,
|
|
7860
|
-
output: 3,
|
|
7861
|
-
cacheRead: 0.
|
|
7859
|
+
input: 1.74,
|
|
7860
|
+
output: 3.48,
|
|
7861
|
+
cacheRead: 0.0145,
|
|
7862
7862
|
cacheWrite: 0,
|
|
7863
7863
|
},
|
|
7864
7864
|
contextWindow: 1048576,
|
|
@@ -8348,23 +8348,6 @@ export const MODELS = {
|
|
|
8348
8348
|
contextWindow: 2000000,
|
|
8349
8349
|
maxTokens: 30000,
|
|
8350
8350
|
},
|
|
8351
|
-
"baidu/cobuddy:free": {
|
|
8352
|
-
id: "baidu/cobuddy:free",
|
|
8353
|
-
name: "Baidu Qianfan: CoBuddy (free)",
|
|
8354
|
-
api: "openai-completions",
|
|
8355
|
-
provider: "openrouter",
|
|
8356
|
-
baseUrl: "https://openrouter.ai/api/v1",
|
|
8357
|
-
reasoning: true,
|
|
8358
|
-
input: ["text"],
|
|
8359
|
-
cost: {
|
|
8360
|
-
input: 0,
|
|
8361
|
-
output: 0,
|
|
8362
|
-
cacheRead: 0,
|
|
8363
|
-
cacheWrite: 0,
|
|
8364
|
-
},
|
|
8365
|
-
contextWindow: 131072,
|
|
8366
|
-
maxTokens: 65536,
|
|
8367
|
-
},
|
|
8368
8351
|
"baidu/ernie-4.5-21b-a3b": {
|
|
8369
8352
|
id: "baidu/ernie-4.5-21b-a3b",
|
|
8370
8353
|
name: "Baidu: ERNIE 4.5 21B A3B",
|
|
@@ -9321,7 +9304,7 @@ export const MODELS = {
|
|
|
9321
9304
|
cacheRead: 0,
|
|
9322
9305
|
cacheWrite: 0,
|
|
9323
9306
|
},
|
|
9324
|
-
contextWindow:
|
|
9307
|
+
contextWindow: 262144,
|
|
9325
9308
|
maxTokens: 8192,
|
|
9326
9309
|
},
|
|
9327
9310
|
"minimax/minimax-m2.7": {
|
|
@@ -9783,6 +9766,23 @@ export const MODELS = {
|
|
|
9783
9766
|
contextWindow: 262144,
|
|
9784
9767
|
maxTokens: 262142,
|
|
9785
9768
|
},
|
|
9769
|
+
"moonshotai/kimi-k2.6:free": {
|
|
9770
|
+
id: "moonshotai/kimi-k2.6:free",
|
|
9771
|
+
name: "MoonshotAI: Kimi K2.6 (free)",
|
|
9772
|
+
api: "openai-completions",
|
|
9773
|
+
provider: "openrouter",
|
|
9774
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
9775
|
+
reasoning: true,
|
|
9776
|
+
input: ["text", "image"],
|
|
9777
|
+
cost: {
|
|
9778
|
+
input: 0,
|
|
9779
|
+
output: 0,
|
|
9780
|
+
cacheRead: 0,
|
|
9781
|
+
cacheWrite: 0,
|
|
9782
|
+
},
|
|
9783
|
+
contextWindow: 262144,
|
|
9784
|
+
maxTokens: 4096,
|
|
9785
|
+
},
|
|
9786
9786
|
"nex-agi/deepseek-v3.1-nex-n1": {
|
|
9787
9787
|
id: "nex-agi/deepseek-v3.1-nex-n1",
|
|
9788
9788
|
name: "Nex AGI: DeepSeek V3.1 Nex N1",
|
|
@@ -10372,11 +10372,11 @@ export const MODELS = {
|
|
|
10372
10372
|
cost: {
|
|
10373
10373
|
input: 1.25,
|
|
10374
10374
|
output: 10,
|
|
10375
|
-
cacheRead: 0.
|
|
10375
|
+
cacheRead: 0.13,
|
|
10376
10376
|
cacheWrite: 0,
|
|
10377
10377
|
},
|
|
10378
10378
|
contextWindow: 128000,
|
|
10379
|
-
maxTokens:
|
|
10379
|
+
maxTokens: 32000,
|
|
10380
10380
|
},
|
|
10381
10381
|
"openai/gpt-5.1-codex": {
|
|
10382
10382
|
id: "openai/gpt-5.1-codex",
|
|
@@ -10389,7 +10389,7 @@ export const MODELS = {
|
|
|
10389
10389
|
cost: {
|
|
10390
10390
|
input: 1.25,
|
|
10391
10391
|
output: 10,
|
|
10392
|
-
cacheRead: 0.
|
|
10392
|
+
cacheRead: 0.13,
|
|
10393
10393
|
cacheWrite: 0,
|
|
10394
10394
|
},
|
|
10395
10395
|
contextWindow: 400000,
|
|
@@ -10423,11 +10423,11 @@ export const MODELS = {
|
|
|
10423
10423
|
cost: {
|
|
10424
10424
|
input: 0.25,
|
|
10425
10425
|
output: 2,
|
|
10426
|
-
cacheRead: 0.
|
|
10426
|
+
cacheRead: 0.024999999999999998,
|
|
10427
10427
|
cacheWrite: 0,
|
|
10428
10428
|
},
|
|
10429
10429
|
contextWindow: 400000,
|
|
10430
|
-
maxTokens:
|
|
10430
|
+
maxTokens: 100000,
|
|
10431
10431
|
},
|
|
10432
10432
|
"openai/gpt-5.2": {
|
|
10433
10433
|
id: "openai/gpt-5.2",
|
|
@@ -10463,7 +10463,7 @@ export const MODELS = {
|
|
|
10463
10463
|
cacheWrite: 0,
|
|
10464
10464
|
},
|
|
10465
10465
|
contextWindow: 128000,
|
|
10466
|
-
maxTokens:
|
|
10466
|
+
maxTokens: 16384,
|
|
10467
10467
|
},
|
|
10468
10468
|
"openai/gpt-5.2-codex": {
|
|
10469
10469
|
id: "openai/gpt-5.2-codex",
|
|
@@ -11912,13 +11912,13 @@ export const MODELS = {
|
|
|
11912
11912
|
reasoning: true,
|
|
11913
11913
|
input: ["text"],
|
|
11914
11914
|
cost: {
|
|
11915
|
-
input: 0.
|
|
11916
|
-
output: 0.
|
|
11917
|
-
cacheRead: 0.
|
|
11915
|
+
input: 0.063,
|
|
11916
|
+
output: 0.21,
|
|
11917
|
+
cacheRead: 0.020999999999999998,
|
|
11918
11918
|
cacheWrite: 0,
|
|
11919
11919
|
},
|
|
11920
11920
|
contextWindow: 262144,
|
|
11921
|
-
maxTokens:
|
|
11921
|
+
maxTokens: 4096,
|
|
11922
11922
|
},
|
|
11923
11923
|
"thedrummer/rocinante-12b": {
|
|
11924
11924
|
id: "thedrummer/rocinante-12b",
|
|
@@ -124,7 +124,7 @@ export const streamOpenAICodexResponses = (model, context, options) => {
|
|
|
124
124
|
if (!apiKey) {
|
|
125
125
|
throw new Error(`No API key for provider: ${model.provider}`);
|
|
126
126
|
}
|
|
127
|
-
const accountId = extractAccountId(apiKey);
|
|
127
|
+
const accountId = extractAccountId(apiKey) || "";
|
|
128
128
|
let body = buildRequestBody(model, context, options);
|
|
129
129
|
const nextBody = await options?.onPayload?.(body, model);
|
|
130
130
|
if (nextBody !== undefined) {
|
|
@@ -282,7 +282,7 @@ function buildRequestBody(model, context, options) {
|
|
|
282
282
|
stream: true,
|
|
283
283
|
instructions: context.systemPrompt || "You are a helpful assistant.",
|
|
284
284
|
input: messages,
|
|
285
|
-
text: { verbosity: options?.textVerbosity || "
|
|
285
|
+
text: { verbosity: options?.textVerbosity || "medium" },
|
|
286
286
|
include: ["reasoning.encrypted_content"],
|
|
287
287
|
prompt_cache_key: clampOpenAIPromptCacheKey(options?.sessionId),
|
|
288
288
|
tool_choice: "auto",
|
|
@@ -339,11 +339,7 @@ function resolveCodexServiceTier(responseServiceTier, requestServiceTier) {
|
|
|
339
339
|
function resolveCodexUrl(baseUrl) {
|
|
340
340
|
const raw = baseUrl && baseUrl.trim().length > 0 ? baseUrl : DEFAULT_CODEX_BASE_URL;
|
|
341
341
|
const normalized = raw.replace(/\/+$/, "");
|
|
342
|
-
|
|
343
|
-
return normalized;
|
|
344
|
-
if (normalized.endsWith("/codex"))
|
|
345
|
-
return `${normalized}/responses`;
|
|
346
|
-
return `${normalized}/codex/responses`;
|
|
342
|
+
return `${normalized}/responses`;
|
|
347
343
|
}
|
|
348
344
|
function resolveCodexWebSocketUrl(baseUrl) {
|
|
349
345
|
const url = new URL(resolveCodexUrl(baseUrl));
|
|
@@ -1052,15 +1048,13 @@ function extractAccountId(token) {
|
|
|
1052
1048
|
try {
|
|
1053
1049
|
const parts = token.split(".");
|
|
1054
1050
|
if (parts.length !== 3)
|
|
1055
|
-
|
|
1051
|
+
return null;
|
|
1056
1052
|
const payload = JSON.parse(atob(parts[1]));
|
|
1057
1053
|
const accountId = payload?.[JWT_CLAIM_PATH]?.chatgpt_account_id;
|
|
1058
|
-
|
|
1059
|
-
throw new Error("No account ID in token");
|
|
1060
|
-
return accountId;
|
|
1054
|
+
return accountId || null;
|
|
1061
1055
|
}
|
|
1062
1056
|
catch {
|
|
1063
|
-
|
|
1057
|
+
return null;
|
|
1064
1058
|
}
|
|
1065
1059
|
}
|
|
1066
1060
|
function createCodexRequestId() {
|
|
@@ -1075,7 +1069,10 @@ function buildBaseCodexHeaders(initHeaders, additionalHeaders, accountId, token)
|
|
|
1075
1069
|
headers.set(key, value);
|
|
1076
1070
|
}
|
|
1077
1071
|
headers.set("Authorization", `Bearer ${token}`);
|
|
1078
|
-
|
|
1072
|
+
// Only set chatgpt-account-id if we have one (OpenAI-specific)
|
|
1073
|
+
if (accountId) {
|
|
1074
|
+
headers.set("chatgpt-account-id", accountId);
|
|
1075
|
+
}
|
|
1079
1076
|
headers.set("originator", "pi");
|
|
1080
1077
|
const userAgent = _os ? `pi (${_os.platform()} ${_os.release()}; ${_os.arch()})` : "pi (browser)";
|
|
1081
1078
|
headers.set("User-Agent", userAgent);
|
|
@@ -293,7 +293,7 @@ export default class EntityDecoder {
|
|
|
293
293
|
decode(str) {
|
|
294
294
|
if (typeof str !== 'string' || str.length === 0) return str;
|
|
295
295
|
//TODO: check if needed
|
|
296
|
-
|
|
296
|
+
if (str.indexOf('&') === -1) return str; // fast path — no entities at all
|
|
297
297
|
|
|
298
298
|
const original = str;
|
|
299
299
|
const chunks = [];
|
|
@@ -34,7 +34,6 @@ export const BASIC_LATIN = {
|
|
|
34
34
|
num: '#',
|
|
35
35
|
dollar: '$',
|
|
36
36
|
percent: '%',
|
|
37
|
-
amp: '&',
|
|
38
37
|
ast: '*',
|
|
39
38
|
commat: '@',
|
|
40
39
|
lowbar: '_',
|
|
@@ -466,9 +465,6 @@ export const CYRILLIC = {
|
|
|
466
465
|
*/
|
|
467
466
|
export const MATH = {
|
|
468
467
|
plus: '+',
|
|
469
|
-
minus: '−',
|
|
470
|
-
mnplus: '∓',
|
|
471
|
-
mp: '∓',
|
|
472
468
|
pm: '±',
|
|
473
469
|
times: '×',
|
|
474
470
|
div: '÷',
|
|
@@ -541,10 +537,6 @@ export const MATH = {
|
|
|
541
537
|
bumpe: '≏',
|
|
542
538
|
bumpeq: '≏',
|
|
543
539
|
HumpEqual: '≏',
|
|
544
|
-
dotminus: '∸',
|
|
545
|
-
minusd: '∸',
|
|
546
|
-
plusdo: '∔',
|
|
547
|
-
dotplus: '∔',
|
|
548
540
|
le: '≤',
|
|
549
541
|
LessEqual: '≤',
|
|
550
542
|
ge: '≥',
|
|
@@ -661,7 +653,6 @@ export const MATH_ADVANCED = {
|
|
|
661
653
|
wreath: '≀',
|
|
662
654
|
nsime: '≄',
|
|
663
655
|
nsimeq: '≄',
|
|
664
|
-
nsimeq: '≄',
|
|
665
656
|
ncong: '≇',
|
|
666
657
|
simne: '≆',
|
|
667
658
|
ncongdot: '⩭̸',
|
|
@@ -778,10 +769,6 @@ export const ARROWS = {
|
|
|
778
769
|
mapsto: '↦',
|
|
779
770
|
mapstodown: '↧',
|
|
780
771
|
crarr: '↵',
|
|
781
|
-
nwarrow: '↖',
|
|
782
|
-
nearrow: '↗',
|
|
783
|
-
searrow: '↘',
|
|
784
|
-
swarrow: '↙',
|
|
785
772
|
nleftarrow: '↚',
|
|
786
773
|
nleftrightarrow: '↮',
|
|
787
774
|
nrightarrow: '↛',
|
|
@@ -822,7 +809,6 @@ export const ARROWS = {
|
|
|
822
809
|
ldrushar: '⥋',
|
|
823
810
|
rdldhar: '⥩',
|
|
824
811
|
lrhard: '⥭',
|
|
825
|
-
rlhar: '⇌',
|
|
826
812
|
uharr: '↾',
|
|
827
813
|
uharl: '↿',
|
|
828
814
|
dharr: '⇂',
|
|
@@ -838,7 +824,6 @@ export const ARROWS = {
|
|
|
838
824
|
nhArr: '⇎',
|
|
839
825
|
nlarr: '↚',
|
|
840
826
|
nlArr: '⇍',
|
|
841
|
-
nrarr: '↛',
|
|
842
827
|
nrArr: '⇏',
|
|
843
828
|
larrb: '⇤',
|
|
844
829
|
LeftArrowBar: '⇤',
|
|
@@ -1000,7 +985,6 @@ export const PUNCTUATION = {
|
|
|
1000
985
|
DiacriticalDot: '˙',
|
|
1001
986
|
DiacriticalDoubleAcute: '˝',
|
|
1002
987
|
grave: '`',
|
|
1003
|
-
acute: '´',
|
|
1004
988
|
};
|
|
1005
989
|
|
|
1006
990
|
/**
|
|
@@ -1014,7 +998,6 @@ export const CURRENCY = {
|
|
|
1014
998
|
yen: '¥',
|
|
1015
999
|
euro: '€',
|
|
1016
1000
|
dollar: '$',
|
|
1017
|
-
euro: '€',
|
|
1018
1001
|
fnof: 'ƒ',
|
|
1019
1002
|
inr: '₹',
|
|
1020
1003
|
af: '؋',
|
|
@@ -1114,7 +1097,6 @@ export const MISC_SYMBOLS = {
|
|
|
1114
1097
|
Vdash: '⊩',
|
|
1115
1098
|
dashv: '⊣',
|
|
1116
1099
|
vDash: '⊨',
|
|
1117
|
-
Vdash: '⊩',
|
|
1118
1100
|
Vvdash: '⊪',
|
|
1119
1101
|
nvdash: '⊬',
|
|
1120
1102
|
nvDash: '⊭',
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var transport = require('@smithy/core/transport');
|
|
4
4
|
var protocols = require('@smithy/core/protocols');
|
|
5
|
+
var types = require('@smithy/types');
|
|
5
6
|
var client = require('@smithy/core/client');
|
|
6
7
|
|
|
7
|
-
const getSmithyContext = (context) => context[types.SMITHY_CONTEXT_KEY] || (context[types.SMITHY_CONTEXT_KEY] = {});
|
|
8
|
-
|
|
9
8
|
const resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
|
|
10
9
|
if (!authSchemePreference || authSchemePreference.length === 0) {
|
|
11
10
|
return candidateAuthOptions;
|
|
@@ -321,6 +320,7 @@ const memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
|
|
|
321
320
|
};
|
|
322
321
|
};
|
|
323
322
|
|
|
323
|
+
exports.getSmithyContext = transport.getSmithyContext;
|
|
324
324
|
exports.requestBuilder = protocols.requestBuilder;
|
|
325
325
|
exports.DefaultIdentityProviderConfig = DefaultIdentityProviderConfig;
|
|
326
326
|
exports.EXPIRATION_MS = EXPIRATION_MS;
|
|
@@ -333,7 +333,6 @@ exports.doesIdentityRequireRefresh = doesIdentityRequireRefresh;
|
|
|
333
333
|
exports.getHttpAuthSchemeEndpointRuleSetPlugin = getHttpAuthSchemeEndpointRuleSetPlugin;
|
|
334
334
|
exports.getHttpAuthSchemePlugin = getHttpAuthSchemePlugin;
|
|
335
335
|
exports.getHttpSigningPlugin = getHttpSigningPlugin;
|
|
336
|
-
exports.getSmithyContext = getSmithyContext;
|
|
337
336
|
exports.httpAuthSchemeEndpointRuleSetMiddlewareOptions = httpAuthSchemeEndpointRuleSetMiddlewareOptions;
|
|
338
337
|
exports.httpAuthSchemeMiddleware = httpAuthSchemeMiddleware;
|
|
339
338
|
exports.httpAuthSchemeMiddlewareOptions = httpAuthSchemeMiddlewareOptions;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var transport = require('@smithy/core/transport');
|
|
3
4
|
var types = require('@smithy/types');
|
|
4
5
|
var schema = require('@smithy/core/schema');
|
|
5
6
|
|
|
@@ -285,15 +286,6 @@ const priorityWeights = {
|
|
|
285
286
|
low: 1,
|
|
286
287
|
};
|
|
287
288
|
|
|
288
|
-
const getSmithyContext = (context) => context[types.SMITHY_CONTEXT_KEY] || (context[types.SMITHY_CONTEXT_KEY] = {});
|
|
289
|
-
|
|
290
|
-
const normalizeProvider = (input) => {
|
|
291
|
-
if (typeof input === "function")
|
|
292
|
-
return input;
|
|
293
|
-
const promisified = Promise.resolve(input);
|
|
294
|
-
return () => promisified;
|
|
295
|
-
};
|
|
296
|
-
|
|
297
289
|
const invalidFunction = (message) => () => {
|
|
298
290
|
throw new Error(message);
|
|
299
291
|
};
|
|
@@ -1097,6 +1089,8 @@ const _json = (obj) => {
|
|
|
1097
1089
|
return obj;
|
|
1098
1090
|
};
|
|
1099
1091
|
|
|
1092
|
+
exports.getSmithyContext = transport.getSmithyContext;
|
|
1093
|
+
exports.normalizeProvider = transport.normalizeProvider;
|
|
1100
1094
|
exports.AlgorithmId = types.AlgorithmId;
|
|
1101
1095
|
exports.Client = Client;
|
|
1102
1096
|
exports.Command = Command;
|
|
@@ -1116,14 +1110,12 @@ exports.getChecksumConfiguration = getChecksumConfiguration;
|
|
|
1116
1110
|
exports.getDefaultClientConfiguration = getDefaultClientConfiguration;
|
|
1117
1111
|
exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration;
|
|
1118
1112
|
exports.getRetryConfiguration = getRetryConfiguration;
|
|
1119
|
-
exports.getSmithyContext = getSmithyContext;
|
|
1120
1113
|
exports.getValueFromTextNode = getValueFromTextNode;
|
|
1121
1114
|
exports.invalidFunction = invalidFunction;
|
|
1122
1115
|
exports.invalidProvider = invalidProvider;
|
|
1123
1116
|
exports.isSerializableHeaderValue = isSerializableHeaderValue;
|
|
1124
1117
|
exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode;
|
|
1125
1118
|
exports.map = map;
|
|
1126
|
-
exports.normalizeProvider = normalizeProvider;
|
|
1127
1119
|
exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig;
|
|
1128
1120
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
1129
1121
|
exports.resolveRetryRuntimeConfig = resolveRetryRuntimeConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var client = require('@smithy/core/client');
|
|
4
|
-
var
|
|
4
|
+
var transport = require('@smithy/core/transport');
|
|
5
5
|
|
|
6
6
|
class ProviderError extends Error {
|
|
7
7
|
name = "ProviderError";
|
|
@@ -178,7 +178,7 @@ const resolveEndpointsConfig = (input) => {
|
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
const validRegions = new Set();
|
|
181
|
-
const checkRegion = (region, check =
|
|
181
|
+
const checkRegion = (region, check = transport.isValidHostLabel) => {
|
|
182
182
|
if (!validRegions.has(region) && !check(region)) {
|
|
183
183
|
if (region === "*") {
|
|
184
184
|
console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
|
|
@@ -6,7 +6,7 @@ var node_crypto = require('node:crypto');
|
|
|
6
6
|
var promises = require('node:fs/promises');
|
|
7
7
|
var types = require('@smithy/types');
|
|
8
8
|
var client = require('@smithy/core/client');
|
|
9
|
-
var
|
|
9
|
+
var transport = require('@smithy/core/transport');
|
|
10
10
|
|
|
11
11
|
class ProviderError extends Error {
|
|
12
12
|
name = "ProviderError";
|
|
@@ -486,7 +486,7 @@ const NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
|
486
486
|
};
|
|
487
487
|
|
|
488
488
|
const validRegions = new Set();
|
|
489
|
-
const checkRegion = (region, check =
|
|
489
|
+
const checkRegion = (region, check = transport.isValidHostLabel) => {
|
|
490
490
|
if (!validRegions.has(region) && !check(region)) {
|
|
491
491
|
if (region === "*") {
|
|
492
492
|
console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var client = require('@smithy/core/client');
|
|
4
|
-
var
|
|
4
|
+
var transport = require('@smithy/core/transport');
|
|
5
5
|
|
|
6
6
|
class ProviderError extends Error {
|
|
7
7
|
name = "ProviderError";
|
|
@@ -178,7 +178,7 @@ const resolveEndpointsConfig = (input) => {
|
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
const validRegions = new Set();
|
|
181
|
-
const checkRegion = (region, check =
|
|
181
|
+
const checkRegion = (region, check = transport.isValidHostLabel) => {
|
|
182
182
|
if (!validRegions.has(region) && !check(region)) {
|
|
183
183
|
if (region === "*") {
|
|
184
184
|
console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
|