@openclaw/amazon-bedrock-mantle-provider 2026.6.5 → 2026.6.6-beta.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.
Files changed (93) hide show
  1. package/dist/discovery.js +15 -0
  2. package/dist/mantle-anthropic.runtime.js +18 -2
  3. package/node_modules/@aws-sdk/client-cognito-identity/package.json +11 -11
  4. package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +6 -6
  5. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  6. package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
  7. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  8. package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
  9. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +12 -1
  10. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +12 -1
  11. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  12. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  13. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  14. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  15. package/node_modules/@aws-sdk/credential-providers/package.json +18 -18
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +99 -106
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +62 -120
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +55 -86
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +73 -104
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +102 -185
  21. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +4 -5
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +21 -57
  23. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +1 -2
  24. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -4
  25. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +73 -41
  26. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +4 -5
  27. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +20 -52
  28. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +1 -2
  29. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -4
  30. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +36 -59
  31. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +4 -5
  32. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +17 -45
  33. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +1 -2
  34. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -4
  35. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +32 -32
  36. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +4 -5
  37. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +17 -45
  38. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +1 -2
  39. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -4
  40. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +50 -50
  41. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
  42. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
  43. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +34 -96
  44. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +1 -2
  45. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +3 -6
  46. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +63 -80
  47. package/node_modules/@aws-sdk/nested-clients/package.json +9 -9
  48. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -5
  49. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  50. package/node_modules/@aws-sdk/types/package.json +3 -3
  51. package/node_modules/@aws-sdk/util-format-url/package.json +3 -3
  52. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  53. package/node_modules/@smithy/config-resolver/package.json +2 -2
  54. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +39 -22
  55. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +39 -22
  56. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +19 -6
  57. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +4 -5
  58. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -1
  59. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js +4 -5
  60. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js +3 -0
  61. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +9 -5
  62. package/node_modules/@smithy/core/dist-types/submodules/retry/middleware-retry/configurations.d.ts +4 -1
  63. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/ConfiguredRetryStrategy.d.ts +1 -2
  64. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/DefaultRetryToken.d.ts +3 -0
  65. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/StandardRetryStrategy.d.ts +1 -1
  66. package/node_modules/@smithy/core/package.json +2 -2
  67. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +14 -13
  68. package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +14 -13
  69. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -2
  70. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js +2 -0
  71. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
  72. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/node-http.d.ts +2 -0
  73. package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
  74. package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
  75. package/node_modules/@smithy/hash-node/package.json +2 -2
  76. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  77. package/node_modules/@smithy/node-config-provider/package.json +2 -2
  78. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +6 -4
  79. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
  80. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
  81. package/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  82. package/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  83. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
  84. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  85. package/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  86. package/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  87. package/node_modules/@smithy/node-http-handler/package.json +4 -4
  88. package/node_modules/@smithy/protocol-http/package.json +2 -2
  89. package/node_modules/@smithy/signature-v4/package.json +3 -3
  90. package/node_modules/@smithy/types/dist-types/retry.d.ts +25 -0
  91. package/node_modules/@smithy/types/package.json +1 -1
  92. package/npm-shrinkwrap.json +200 -200
  93. package/package.json +4 -4
package/dist/discovery.js CHANGED
@@ -248,6 +248,21 @@ async function resolveImplicitMantleProvider(params) {
248
248
  },
249
249
  contextWindow: 1e6,
250
250
  maxTokens: 128e3
251
+ }, {
252
+ id: "anthropic.claude-mythos-preview",
253
+ name: "Claude Mythos Preview",
254
+ api: "anthropic-messages",
255
+ reasoning: true,
256
+ params: { canonicalModelId: "claude-mythos-preview" },
257
+ input: ["text", "image"],
258
+ cost: {
259
+ input: 0,
260
+ output: 0,
261
+ cacheRead: 0,
262
+ cacheWrite: 0
263
+ },
264
+ contextWindow: 1e6,
265
+ maxTokens: 128e3
251
266
  }];
252
267
  const allModels = [...models, ...claudeModels];
253
268
  return {
@@ -16,6 +16,20 @@ function resolveMantleAnthropicBaseUrl(baseUrl) {
16
16
  function requiresDefaultSampling(modelId) {
17
17
  return modelId.includes("claude-opus-4-7");
18
18
  }
19
+ function isClaudeMythosPreviewModel(model) {
20
+ return [
21
+ model.id,
22
+ model.name,
23
+ model.params?.canonicalModelId
24
+ ].filter((value) => typeof value === "string").some((value) => /(?:^|-)claude-mythos-preview(?=$|[^a-z0-9])/.test(value.trim().toLowerCase().replace(/[\s_.:]+/g, "-")));
25
+ }
26
+ function resolveMantleReasoning(model, options) {
27
+ if (requiresDefaultSampling(model.id)) return;
28
+ const reasoning = options?.reasoning ?? (isClaudeMythosPreviewModel(model) ? "high" : void 0);
29
+ if (!isClaudeMythosPreviewModel(model)) return reasoning;
30
+ if (reasoning === "minimal") return "low";
31
+ return reasoning === "xhigh" || reasoning === "max" ? "high" : reasoning;
32
+ }
19
33
  function mergeHeaders(...headerSources) {
20
34
  const merged = {};
21
35
  for (const headers of headerSources) if (headers) Object.assign(merged, headers);
@@ -72,17 +86,19 @@ function createMantleAnthropicStreamFn(deps) {
72
86
  });
73
87
  const base = buildMantleAnthropicBaseOptions(model, options, apiKey);
74
88
  const streamClient = client;
75
- if (!options?.reasoning || requiresDefaultSampling(model.id)) return streamFn(model, context, {
89
+ const reasoning = resolveMantleReasoning(model, options);
90
+ if (!reasoning) return streamFn(model, context, {
76
91
  ...base,
77
92
  client: streamClient,
78
93
  thinkingEnabled: false
79
94
  });
80
- const adjusted = adjustMaxTokensForThinking(base.maxTokens || 0, model.maxTokens, options.reasoning, options.thinkingBudgets);
95
+ const adjusted = adjustMaxTokensForThinking(base.maxTokens || 0, model.maxTokens, reasoning, options?.thinkingBudgets);
81
96
  return streamFn(model, context, {
82
97
  ...base,
83
98
  client: streamClient,
84
99
  maxTokens: adjusted.maxTokens,
85
100
  thinkingEnabled: true,
101
+ ...isClaudeMythosPreviewModel(model) ? { effort: reasoning } : {},
86
102
  thinkingBudgetTokens: adjusted.thinkingBudget
87
103
  });
88
104
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-identity",
3
3
  "description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
4
- "version": "3.1056.0",
4
+ "version": "3.1063.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cognito-identity",
@@ -27,18 +27,18 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.15",
31
- "@aws-sdk/credential-provider-node": "^3.972.46",
32
- "@aws-sdk/types": "^3.973.9",
33
- "@smithy/core": "^3.24.5",
34
- "@smithy/fetch-http-handler": "^5.4.5",
35
- "@smithy/node-http-handler": "^4.7.5",
36
- "@smithy/types": "^4.14.2",
30
+ "@aws-sdk/core": "^3.974.18",
31
+ "@aws-sdk/credential-provider-node": "^3.972.52",
32
+ "@aws-sdk/types": "^3.973.11",
33
+ "@smithy/core": "^3.24.6",
34
+ "@smithy/fetch-http-handler": "^5.4.6",
35
+ "@smithy/node-http-handler": "^4.7.6",
36
+ "@smithy/types": "^4.14.3",
37
37
  "tslib": "^2.6.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@aws-sdk/client-iam": "3.1056.0",
41
- "@smithy/snapshot-testing": "^2.1.5",
40
+ "@aws-sdk/client-iam": "3.1063.0",
41
+ "@smithy/snapshot-testing": "^2.1.7",
42
42
  "@tsconfig/node20": "20.1.8",
43
43
  "@types/chai": "^4.2.11",
44
44
  "@types/node": "^20.14.8",
@@ -63,7 +63,7 @@
63
63
  ],
64
64
  "author": {
65
65
  "name": "AWS SDK for JavaScript Team",
66
- "url": "https://aws.amazon.com/javascript/"
66
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
67
67
  },
68
68
  "license": "Apache-2.0",
69
69
  "browser": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-cognito-identity",
3
- "version": "3.972.38",
3
+ "version": "3.972.42",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline credential-provider-cognito-identity",
@@ -20,14 +20,14 @@
20
20
  "sideEffects": false,
21
21
  "author": {
22
22
  "name": "AWS SDK for JavaScript Team",
23
- "url": "https://aws.amazon.com/javascript/"
23
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/nested-clients": "^3.997.13",
28
- "@aws-sdk/types": "^3.973.9",
29
- "@smithy/core": "^3.24.5",
30
- "@smithy/types": "^4.14.2",
27
+ "@aws-sdk/nested-clients": "^3.997.17",
28
+ "@aws-sdk/types": "^3.973.11",
29
+ "@smithy/core": "^3.24.6",
30
+ "@smithy/types": "^4.14.3",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.972.41",
3
+ "version": "3.972.44",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,14 +22,14 @@
22
22
  "sideEffects": false,
23
23
  "author": {
24
24
  "name": "AWS SDK for JavaScript Team",
25
- "url": "https://aws.amazon.com/javascript/"
25
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "^3.974.15",
30
- "@aws-sdk/types": "^3.973.9",
31
- "@smithy/core": "^3.24.5",
32
- "@smithy/types": "^4.14.2",
29
+ "@aws-sdk/core": "^3.974.18",
30
+ "@aws-sdk/types": "^3.973.11",
31
+ "@smithy/core": "^3.24.6",
32
+ "@smithy/types": "^4.14.3",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.972.43",
3
+ "version": "3.972.46",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -33,16 +33,16 @@
33
33
  "sideEffects": false,
34
34
  "author": {
35
35
  "name": "AWS SDK for JavaScript Team",
36
- "url": "https://aws.amazon.com/javascript/"
36
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
37
37
  },
38
38
  "license": "Apache-2.0",
39
39
  "dependencies": {
40
- "@aws-sdk/core": "^3.974.15",
41
- "@aws-sdk/types": "^3.973.9",
42
- "@smithy/core": "^3.24.5",
43
- "@smithy/fetch-http-handler": "^5.4.5",
44
- "@smithy/node-http-handler": "^4.7.5",
45
- "@smithy/types": "^4.14.2",
40
+ "@aws-sdk/core": "^3.974.18",
41
+ "@aws-sdk/types": "^3.973.11",
42
+ "@smithy/core": "^3.24.6",
43
+ "@smithy/fetch-http-handler": "^5.4.6",
44
+ "@smithy/node-http-handler": "^4.7.6",
45
+ "@smithy/types": "^4.14.3",
46
46
  "tslib": "^2.6.2"
47
47
  },
48
48
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.972.45",
3
+ "version": "3.972.50",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,22 +24,22 @@
24
24
  "sideEffects": false,
25
25
  "author": {
26
26
  "name": "AWS SDK for JavaScript Team",
27
- "url": "https://aws.amazon.com/javascript/"
27
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "^3.974.15",
32
- "@aws-sdk/credential-provider-env": "^3.972.41",
33
- "@aws-sdk/credential-provider-http": "^3.972.43",
34
- "@aws-sdk/credential-provider-login": "^3.972.45",
35
- "@aws-sdk/credential-provider-process": "^3.972.41",
36
- "@aws-sdk/credential-provider-sso": "^3.972.45",
37
- "@aws-sdk/credential-provider-web-identity": "^3.972.45",
38
- "@aws-sdk/nested-clients": "^3.997.13",
39
- "@aws-sdk/types": "^3.973.9",
40
- "@smithy/core": "^3.24.5",
41
- "@smithy/credential-provider-imds": "^4.3.5",
42
- "@smithy/types": "^4.14.2",
31
+ "@aws-sdk/core": "^3.974.18",
32
+ "@aws-sdk/credential-provider-env": "^3.972.44",
33
+ "@aws-sdk/credential-provider-http": "^3.972.46",
34
+ "@aws-sdk/credential-provider-login": "^3.972.49",
35
+ "@aws-sdk/credential-provider-process": "^3.972.44",
36
+ "@aws-sdk/credential-provider-sso": "^3.972.49",
37
+ "@aws-sdk/credential-provider-web-identity": "^3.972.49",
38
+ "@aws-sdk/nested-clients": "^3.997.17",
39
+ "@aws-sdk/types": "^3.973.11",
40
+ "@smithy/core": "^3.24.6",
41
+ "@smithy/credential-provider-imds": "^4.3.7",
42
+ "@smithy/types": "^4.14.3",
43
43
  "tslib": "^2.6.2"
44
44
  },
45
45
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.972.45",
3
+ "version": "3.972.49",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,15 +24,15 @@
24
24
  "sideEffects": false,
25
25
  "author": {
26
26
  "name": "AWS SDK for JavaScript Team",
27
- "url": "https://aws.amazon.com/javascript/"
27
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "^3.974.15",
32
- "@aws-sdk/nested-clients": "^3.997.13",
33
- "@aws-sdk/types": "^3.973.9",
34
- "@smithy/core": "^3.24.5",
35
- "@smithy/types": "^4.14.2",
31
+ "@aws-sdk/core": "^3.974.18",
32
+ "@aws-sdk/nested-clients": "^3.997.17",
33
+ "@aws-sdk/types": "^3.973.11",
34
+ "@smithy/core": "^3.24.6",
35
+ "@smithy/types": "^4.14.3",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "devDependencies": {
@@ -25,9 +25,20 @@ function memoizeChain(providers, treatAsExpired) {
25
25
  let activeLock;
26
26
  let passiveLock;
27
27
  let credentials;
28
+ let forceRefreshLock;
28
29
  const provider = async (options) => {
29
30
  if (options?.forceRefresh) {
30
- return await chain(options);
31
+ if (!forceRefreshLock) {
32
+ forceRefreshLock = chain(options)
33
+ .then((c) => {
34
+ credentials = c;
35
+ })
36
+ .finally(() => {
37
+ forceRefreshLock = undefined;
38
+ });
39
+ }
40
+ await forceRefreshLock;
41
+ return credentials;
31
42
  }
32
43
  if (credentials?.expiration) {
33
44
  if (credentials?.expiration?.getTime() < Date.now()) {
@@ -3,9 +3,20 @@ export function memoizeChain(providers, treatAsExpired) {
3
3
  let activeLock;
4
4
  let passiveLock;
5
5
  let credentials;
6
+ let forceRefreshLock;
6
7
  const provider = async (options) => {
7
8
  if (options?.forceRefresh) {
8
- return await chain(options);
9
+ if (!forceRefreshLock) {
10
+ forceRefreshLock = chain(options)
11
+ .then((c) => {
12
+ credentials = c;
13
+ })
14
+ .finally(() => {
15
+ forceRefreshLock = undefined;
16
+ });
17
+ }
18
+ await forceRefreshLock;
19
+ return credentials;
9
20
  }
10
21
  if (credentials?.expiration) {
11
22
  if (credentials?.expiration?.getTime() < Date.now()) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.46",
3
+ "version": "3.972.52",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=20.0.0"
@@ -27,20 +27,20 @@
27
27
  "sideEffects": false,
28
28
  "author": {
29
29
  "name": "AWS SDK for JavaScript Team",
30
- "url": "https://aws.amazon.com/javascript/"
30
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/credential-provider-env": "^3.972.41",
35
- "@aws-sdk/credential-provider-http": "^3.972.43",
36
- "@aws-sdk/credential-provider-ini": "^3.972.45",
37
- "@aws-sdk/credential-provider-process": "^3.972.41",
38
- "@aws-sdk/credential-provider-sso": "^3.972.45",
39
- "@aws-sdk/credential-provider-web-identity": "^3.972.45",
40
- "@aws-sdk/types": "^3.973.9",
41
- "@smithy/core": "^3.24.5",
42
- "@smithy/credential-provider-imds": "^4.3.5",
43
- "@smithy/types": "^4.14.2",
34
+ "@aws-sdk/credential-provider-env": "^3.972.44",
35
+ "@aws-sdk/credential-provider-http": "^3.972.46",
36
+ "@aws-sdk/credential-provider-ini": "^3.972.50",
37
+ "@aws-sdk/credential-provider-process": "^3.972.44",
38
+ "@aws-sdk/credential-provider-sso": "^3.972.49",
39
+ "@aws-sdk/credential-provider-web-identity": "^3.972.49",
40
+ "@aws-sdk/types": "^3.973.11",
41
+ "@smithy/core": "^3.24.6",
42
+ "@smithy/credential-provider-imds": "^4.3.7",
43
+ "@smithy/types": "^4.14.3",
44
44
  "tslib": "^2.6.2"
45
45
  },
46
46
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.972.41",
3
+ "version": "3.972.44",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,14 +22,14 @@
22
22
  "sideEffects": false,
23
23
  "author": {
24
24
  "name": "AWS SDK for JavaScript Team",
25
- "url": "https://aws.amazon.com/javascript/"
25
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "^3.974.15",
30
- "@aws-sdk/types": "^3.973.9",
31
- "@smithy/core": "^3.24.5",
32
- "@smithy/types": "^4.14.2",
29
+ "@aws-sdk/core": "^3.974.18",
30
+ "@aws-sdk/types": "^3.973.11",
31
+ "@smithy/core": "^3.24.6",
32
+ "@smithy/types": "^4.14.3",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.972.45",
3
+ "version": "3.972.49",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,16 +22,16 @@
22
22
  "sideEffects": false,
23
23
  "author": {
24
24
  "name": "AWS SDK for JavaScript Team",
25
- "url": "https://aws.amazon.com/javascript/"
25
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "^3.974.15",
30
- "@aws-sdk/nested-clients": "^3.997.13",
31
- "@aws-sdk/token-providers": "3.1056.0",
32
- "@aws-sdk/types": "^3.973.9",
33
- "@smithy/core": "^3.24.5",
34
- "@smithy/types": "^4.14.2",
29
+ "@aws-sdk/core": "^3.974.18",
30
+ "@aws-sdk/nested-clients": "^3.997.17",
31
+ "@aws-sdk/token-providers": "3.1063.0",
32
+ "@aws-sdk/types": "^3.973.11",
33
+ "@smithy/core": "^3.24.6",
34
+ "@smithy/types": "^4.14.3",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.972.45",
3
+ "version": "3.972.49",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -30,15 +30,15 @@
30
30
  "sideEffects": false,
31
31
  "author": {
32
32
  "name": "AWS SDK for JavaScript Team",
33
- "url": "https://aws.amazon.com/javascript/"
33
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "^3.974.15",
38
- "@aws-sdk/nested-clients": "^3.997.13",
39
- "@aws-sdk/types": "^3.973.9",
40
- "@smithy/core": "^3.24.5",
41
- "@smithy/types": "^4.14.2",
37
+ "@aws-sdk/core": "^3.974.18",
38
+ "@aws-sdk/nested-clients": "^3.997.17",
39
+ "@aws-sdk/types": "^3.973.11",
40
+ "@smithy/core": "^3.24.6",
41
+ "@smithy/types": "^4.14.3",
42
42
  "tslib": "^2.6.2"
43
43
  },
44
44
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-providers",
3
- "version": "3.1056.0",
3
+ "version": "3.1063.0",
4
4
  "description": "A collection of credential providers, without requiring service clients like STS, Cognito",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -35,26 +35,26 @@
35
35
  "sideEffects": false,
36
36
  "author": {
37
37
  "name": "AWS SDK for JavaScript Team",
38
- "url": "https://aws.amazon.com/javascript/"
38
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
39
39
  },
40
40
  "license": "Apache-2.0",
41
41
  "dependencies": {
42
- "@aws-sdk/client-cognito-identity": "3.1056.0",
43
- "@aws-sdk/core": "^3.974.15",
44
- "@aws-sdk/credential-provider-cognito-identity": "^3.972.38",
45
- "@aws-sdk/credential-provider-env": "^3.972.41",
46
- "@aws-sdk/credential-provider-http": "^3.972.43",
47
- "@aws-sdk/credential-provider-ini": "^3.972.45",
48
- "@aws-sdk/credential-provider-login": "^3.972.45",
49
- "@aws-sdk/credential-provider-node": "^3.972.46",
50
- "@aws-sdk/credential-provider-process": "^3.972.41",
51
- "@aws-sdk/credential-provider-sso": "^3.972.45",
52
- "@aws-sdk/credential-provider-web-identity": "^3.972.45",
53
- "@aws-sdk/nested-clients": "^3.997.13",
54
- "@aws-sdk/types": "^3.973.9",
55
- "@smithy/core": "^3.24.5",
56
- "@smithy/credential-provider-imds": "^4.3.5",
57
- "@smithy/types": "^4.14.2",
42
+ "@aws-sdk/client-cognito-identity": "3.1063.0",
43
+ "@aws-sdk/core": "^3.974.18",
44
+ "@aws-sdk/credential-provider-cognito-identity": "^3.972.42",
45
+ "@aws-sdk/credential-provider-env": "^3.972.44",
46
+ "@aws-sdk/credential-provider-http": "^3.972.46",
47
+ "@aws-sdk/credential-provider-ini": "^3.972.50",
48
+ "@aws-sdk/credential-provider-login": "^3.972.49",
49
+ "@aws-sdk/credential-provider-node": "^3.972.52",
50
+ "@aws-sdk/credential-provider-process": "^3.972.44",
51
+ "@aws-sdk/credential-provider-sso": "^3.972.49",
52
+ "@aws-sdk/credential-provider-web-identity": "^3.972.49",
53
+ "@aws-sdk/nested-clients": "^3.997.17",
54
+ "@aws-sdk/types": "^3.973.11",
55
+ "@smithy/core": "^3.24.6",
56
+ "@smithy/credential-provider-imds": "^4.3.7",
57
+ "@smithy/types": "^4.14.3",
58
58
  "tslib": "^2.6.2"
59
59
  },
60
60
  "devDependencies": {