@psnext/slingcli 2.5.20260615-2 → 2.5.20260617-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 (195) hide show
  1. package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -50
  2. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +21 -22
  4. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +51 -51
  5. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +21 -22
  6. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
  7. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
  8. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
  9. package/node_modules/@aws-sdk/core/package.json +8 -8
  10. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
  11. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  12. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +3 -7
  13. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +12 -16
  14. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +16 -21
  15. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +14 -18
  16. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +1 -5
  17. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +2 -5
  18. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +2 -7
  19. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
  20. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +7 -7
  21. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
  22. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
  23. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
  24. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
  25. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  26. package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
  27. package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
  28. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
  29. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  30. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
  31. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  32. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +22 -24
  33. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
  34. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
  35. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +7 -7
  36. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  37. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +10 -14
  38. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -6
  39. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +3 -27
  40. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  41. package/node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js +7 -9
  42. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +5 -5
  43. package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +3 -5
  44. package/node_modules/@aws-sdk/middleware-eventstream/package.json +5 -5
  45. package/node_modules/@aws-sdk/middleware-websocket/dist-cjs/index.js +16 -18
  46. package/node_modules/@aws-sdk/middleware-websocket/package.json +6 -6
  47. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
  48. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
  53. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
  54. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
  55. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
  57. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +12 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +3 -0
  61. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
  62. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +7 -7
  63. package/node_modules/@aws-sdk/nested-clients/package.json +9 -8
  64. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
  65. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +5 -5
  66. package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
  67. package/node_modules/@aws-sdk/types/package.json +4 -4
  68. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
  69. package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
  70. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +2 -4
  71. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +4 -7
  72. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +2 -5
  73. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +7 -10
  74. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  75. package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
  76. package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +21 -57
  77. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +277 -175
  78. package/node_modules/@earendil-works/pi-ai/dist/models.js +4 -1
  79. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +52 -34
  80. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +11 -9
  81. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +7 -4
  82. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare.js +4 -3
  83. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js +15 -5
  84. package/node_modules/@earendil-works/pi-ai/dist/providers/google.js +2 -1
  85. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +18 -17
  86. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +21 -8
  87. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.js +2 -1
  88. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js +8 -7
  89. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js +1 -0
  90. package/node_modules/@earendil-works/pi-ai/dist/stream.js +1 -1
  91. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +17 -22
  92. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/anthropic.js +2 -1
  93. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +3 -2
  94. package/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js +44 -0
  95. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  96. package/node_modules/@earendil-works/pi-coding-agent/dist/bun/restore-sandbox-env.js +4 -0
  97. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +1 -1
  98. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +10 -7
  99. package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +8 -1
  100. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js +2 -2
  101. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +10 -10
  102. package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/vendor/marked.min.js +75 -3
  103. package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.js +17 -1
  104. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +8 -4
  105. package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js +1 -1
  106. package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js +10 -0
  107. package/node_modules/@earendil-works/pi-coding-agent/dist/core/resolve-config-value.js +19 -19
  108. package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +2 -0
  109. package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.js +6 -6
  110. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +4 -0
  111. package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +17 -5
  112. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +4 -0
  113. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +0 -1
  114. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.js +0 -5
  115. package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +6 -6
  116. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/child-process.js +23 -5
  117. package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +17 -17
  118. package/node_modules/@earendil-works/pi-coding-agent/package.json +4 -4
  119. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +5 -1
  120. package/node_modules/@earendil-works/pi-tui/package.json +2 -2
  121. package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
  122. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +29 -31
  123. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
  124. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
  125. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
  126. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +22 -23
  127. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
  128. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
  129. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
  130. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
  131. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
  132. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
  133. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
  134. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +59 -60
  135. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +23 -24
  136. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +25 -26
  137. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
  138. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
  139. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
  140. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
  141. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
  142. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
  143. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
  144. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
  145. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
  146. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  147. package/node_modules/@smithy/core/package.json +7 -6
  148. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
  149. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  150. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
  151. package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
  152. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
  153. package/node_modules/@smithy/signature-v4/package.json +6 -6
  154. package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
  155. package/node_modules/@smithy/types/package.json +4 -4
  156. package/node_modules/marked/README.md +13 -4
  157. package/node_modules/marked/bin/main.js +16 -14
  158. package/node_modules/marked/bin/marked.js +2 -1
  159. package/node_modules/marked/lib/marked.d.ts +157 -125
  160. package/node_modules/marked/lib/marked.esm.js +67 -2179
  161. package/node_modules/marked/lib/marked.esm.js.map +3 -3
  162. package/node_modules/marked/lib/marked.umd.js +67 -2201
  163. package/node_modules/marked/lib/marked.umd.js.map +3 -3
  164. package/node_modules/marked/man/marked.1 +4 -2
  165. package/node_modules/marked/man/marked.1.md +2 -1
  166. package/node_modules/marked/package.json +27 -35
  167. package/node_modules/undici/docs/docs/api/Client.md +3 -0
  168. package/node_modules/undici/docs/docs/api/Cookies.md +27 -0
  169. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +1 -0
  170. package/node_modules/undici/lib/core/socks5-client.js +14 -4
  171. package/node_modules/undici/lib/core/socks5-utils.js +18 -4
  172. package/node_modules/undici/lib/dispatcher/agent.js +1 -1
  173. package/node_modules/undici/lib/dispatcher/balanced-pool.js +1 -1
  174. package/node_modules/undici/lib/dispatcher/client-h1.js +69 -1
  175. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  176. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +19 -0
  177. package/node_modules/undici/lib/dispatcher/pool.js +1 -1
  178. package/node_modules/undici/lib/dispatcher/proxy-agent.js +2 -1
  179. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +45 -34
  180. package/node_modules/undici/lib/util/cache.js +8 -2
  181. package/node_modules/undici/lib/web/cookies/parse.js +17 -25
  182. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +13 -31
  183. package/node_modules/undici/lib/web/websocket/receiver.js +80 -23
  184. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -1
  185. package/node_modules/undici/lib/web/websocket/websocket.js +8 -1
  186. package/node_modules/undici/package.json +1 -1
  187. package/node_modules/undici/types/client.d.ts +16 -0
  188. package/package.json +6 -6
  189. package/slingshot/index.js +253 -253
  190. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
  191. package/node_modules/marked/lib/marked.cjs +0 -2211
  192. package/node_modules/marked/lib/marked.cjs.map +0 -7
  193. package/node_modules/marked/lib/marked.d.cts +0 -728
  194. package/node_modules/marked/marked.min.js +0 -69
  195. /package/node_modules/marked/{LICENSE.md → LICENSE} +0 -0
@@ -1,9 +1,7 @@
1
- 'use strict';
2
-
3
- var protocols = require('@smithy/core/protocols');
4
- var node_https = require('node:https');
5
- var node_stream = require('node:stream');
6
- var http2 = require('node:http2');
1
+ const { buildQueryString, HttpResponse } = require("@smithy/core/protocols");
2
+ const node_https = require("node:https");
3
+ const { Readable, Writable } = require("node:stream");
4
+ const http2 = require("node:http2");
7
5
 
8
6
  function buildAbortError(abortSignal) {
9
7
  const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
@@ -175,7 +173,7 @@ async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN
175
173
  }
176
174
  }
177
175
  function writeBody(httpRequest, body) {
178
- if (body instanceof node_stream.Readable) {
176
+ if (body instanceof Readable) {
179
177
  body.pipe(httpRequest);
180
178
  return;
181
179
  }
@@ -311,7 +309,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
311
309
  socketWarningTimeoutId = timing.setTimeout(() => {
312
310
  this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, config.logger);
313
311
  }, config.socketAcquisitionWarningTimeout ?? (config.requestTimeout ?? 2000) + (config.connectionTimeout ?? 1000));
314
- const queryString = request.query ? protocols.buildQueryString(request.query) : "";
312
+ const queryString = request.query ? buildQueryString(request.query) : "";
315
313
  let auth = undefined;
316
314
  if (request.username != null || request.password != null) {
317
315
  const username = request.username ?? "";
@@ -343,7 +341,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
343
341
  };
344
342
  const requestFunc = isSSL ? node_https.request : hRequest;
345
343
  const req = requestFunc(nodeHttpsOptions, (res) => {
346
- const httpResponse = new protocols.HttpResponse({
344
+ const httpResponse = new HttpResponse({
347
345
  statusCode: res.statusCode || -1,
348
346
  reason: res.statusMessage,
349
347
  headers: getTransformedHeaders(res.headers),
@@ -414,7 +412,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
414
412
  socketAcquisitionWarningTimeout,
415
413
  throwOnRequestTimeout,
416
414
  httpAgentProvider: async () => {
417
- const node_http = await import('node:http');
415
+ const node_http = require('node:http');
418
416
  const { Agent, request } = node_http.default ?? node_http;
419
417
  hRequest = request;
420
418
  hAgent = Agent;
@@ -752,7 +750,7 @@ class NodeHttp2Handler {
752
750
  fulfilled = true;
753
751
  reject(err);
754
752
  };
755
- const queryString = query ? protocols.buildQueryString(query) : "";
753
+ const queryString = query ? buildQueryString(query) : "";
756
754
  let path = request.path;
757
755
  if (queryString) {
758
756
  path += `?${queryString}`;
@@ -796,7 +794,7 @@ class NodeHttp2Handler {
796
794
  rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${clientHttp2Stream.rstCode}.`));
797
795
  });
798
796
  clientHttp2Stream.on("response", (headers) => {
799
- const httpResponse = new protocols.HttpResponse({
797
+ const httpResponse = new HttpResponse({
800
798
  statusCode: headers[":status"] ?? -1,
801
799
  headers: getTransformedHeaders(headers),
802
800
  body: clientHttp2Stream,
@@ -835,7 +833,7 @@ class NodeHttp2Handler {
835
833
  }
836
834
  }
837
835
 
838
- class Collector extends node_stream.Writable {
836
+ class Collector extends Writable {
839
837
  bufferedBytes = [];
840
838
  _write(chunk, encoding, callback) {
841
839
  this.bufferedBytes.push(chunk);
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.7.8",
3
+ "version": "4.8.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
7
- "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline",
8
- "build:types": "yarn g:tsc -p tsconfig.types.json",
7
+ "build:es:cjs": "premove dist-es && yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline",
8
+ "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "clean": "premove dist-cjs dist-es dist-types *.tsbuildinfo",
10
+ "clean": "premove dist-cjs dist-es dist-types",
11
11
  "extract:docs": "api-extractor run --local",
12
12
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
13
13
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
@@ -26,12 +26,12 @@
26
26
  "module": "./dist-es/index.js",
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
- "@smithy/core": "^3.24.7",
30
- "@smithy/types": "^4.14.4",
29
+ "@smithy/core": "^3.25.0",
30
+ "@smithy/types": "^4.15.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@smithy/abort-controller": "^4.2.17",
34
+ "@smithy/abort-controller": "^4.3.0",
35
35
  "@types/node": "^18.11.9",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.20",
3
+ "version": "3.997.21",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "types": "./dist-types/index.d.ts",
8
8
  "scripts": {
9
- "build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
9
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
10
10
  "build:cjs": "node ../../scripts/compilation/inline",
11
- "build:es": "tsc -p tsconfig.es.json",
11
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
12
12
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
13
- "build:types": "tsc -p tsconfig.types.json",
13
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
14
14
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
15
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
15
+ "clean": "premove dist-cjs dist-es dist-types",
16
16
  "lint": "node ../../scripts/validation/submodules-linter.js",
17
+ "prebuild": "yarn lint",
17
18
  "test": "yarn g:vitest run",
18
19
  "test:watch": "yarn g:vitest watch"
19
20
  },
@@ -29,9 +30,9 @@
29
30
  "dependencies": {
30
31
  "@aws-crypto/sha256-browser": "5.2.0",
31
32
  "@aws-crypto/sha256-js": "5.2.0",
32
- "@aws-sdk/core": "^3.974.20",
33
- "@aws-sdk/signature-v4-multi-region": "^3.996.34",
34
- "@aws-sdk/types": "^3.973.12",
33
+ "@aws-sdk/core": "^3.974.21",
34
+ "@aws-sdk/signature-v4-multi-region": "^3.996.35",
35
+ "@aws-sdk/types": "^3.973.13",
35
36
  "@smithy/core": "^3.24.6",
36
37
  "@smithy/fetch-http-handler": "^5.4.6",
37
38
  "@smithy/node-http-handler": "^4.7.6",
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- var signatureV4 = require('@smithy/signature-v4');
1
+ const { SignatureV4, signatureV4aContainer } = require("@smithy/signature-v4");
4
2
 
5
3
  const signatureV4CrtContainer = {
6
4
  CrtSignerV4: null,
@@ -8,7 +6,7 @@ const signatureV4CrtContainer = {
8
6
 
9
7
  const SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token";
10
8
  const SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase();
11
- class SignatureV4SignWithCredentials extends signatureV4.SignatureV4 {
9
+ class SignatureV4SignWithCredentials extends SignatureV4 {
12
10
  async signWithCredentials(requestToSign, credentials, options) {
13
11
  const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials);
14
12
  requestToSign.headers[SESSION_TOKEN_HEADER] = credentials.sessionToken;
@@ -50,7 +48,7 @@ class SignatureV4MultiRegion {
50
48
  if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") {
51
49
  return "crt";
52
50
  }
53
- else if (typeof signatureV4.signatureV4aContainer.SignatureV4a === "function") {
51
+ else if (typeof signatureV4aContainer.SignatureV4a === "function") {
54
52
  return "js";
55
53
  }
56
54
  return "none";
@@ -108,7 +106,7 @@ class SignatureV4MultiRegion {
108
106
  getSigv4aSigner() {
109
107
  if (!this.sigv4aSigner) {
110
108
  const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4;
111
- const JsSigV4aSigner = signatureV4.signatureV4aContainer.SignatureV4a;
109
+ const JsSigV4aSigner = signatureV4aContainer.SignatureV4a;
112
110
  if (this.signerOptions.runtime === "node") {
113
111
  if (!CrtSignerV4 && !JsSigV4aSigner) {
114
112
  throw new Error("Neither CRT nor JS SigV4a implementation is available. " +
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.996.34",
3
+ "version": "3.996.35",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:browser": "node ./test-browser/browser-build/esbuild",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
8
- "build:es": "tsc -p tsconfig.es.json",
8
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
- "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types",
13
13
  "test": "yarn g:vitest run",
14
14
  "test:watch": "yarn g:vitest watch",
15
15
  "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/types": "^3.973.12",
29
+ "@aws-sdk/types": "^3.973.13",
30
30
  "@smithy/signature-v4": "^5.4.6",
31
31
  "@smithy/types": "^4.14.3",
32
32
  "tslib": "^2.6.2"
@@ -1,13 +1,12 @@
1
- 'use strict';
1
+ const { EndpointURLScheme, HttpAuthLocation, RequestHandlerProtocol } = require("@smithy/types");
2
+ exports.EndpointURLScheme = EndpointURLScheme;
3
+ exports.HttpAuthLocation = HttpAuthLocation;
4
+ exports.RequestHandlerProtocol = RequestHandlerProtocol;
2
5
 
3
- var types = require('@smithy/types');
4
-
5
- exports.HostAddressType = void 0;
6
+ var HostAddressType;
6
7
  (function (HostAddressType) {
7
8
  HostAddressType["AAAA"] = "AAAA";
8
9
  HostAddressType["A"] = "A";
9
- })(exports.HostAddressType || (exports.HostAddressType = {}));
10
+ })(HostAddressType || (HostAddressType = {}));
10
11
 
11
- exports.EndpointURLScheme = types.EndpointURLScheme;
12
- exports.HttpAuthLocation = types.HttpAuthLocation;
13
- exports.RequestHandlerProtocol = types.RequestHandlerProtocol;
12
+ exports.HostAddressType = HostAddressType;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.973.12",
3
+ "version": "3.973.13",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -8,11 +8,11 @@
8
8
  "scripts": {
9
9
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
10
10
  "build:cjs": "node ../../scripts/compilation/inline",
11
- "build:es": "tsc -p tsconfig.es.json",
11
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
12
12
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
13
- "build:types": "tsc -p tsconfig.types.json",
13
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
14
14
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
15
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
15
+ "clean": "premove dist-cjs dist-es dist-types",
16
16
  "extract:docs": "api-extractor run --local",
17
17
  "test": "tsc -p tsconfig.test.json"
18
18
  },
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  const fallbackWindow = {};
4
2
  function locateWindow() {
5
3
  if (typeof window !== "undefined") {
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-locate-window",
3
- "version": "3.965.7",
3
+ "version": "3.965.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
7
- "build:es": "tsc -p tsconfig.es.json",
7
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
- "build:types": "tsc -p tsconfig.types.json",
9
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
11
+ "clean": "premove dist-cjs dist-es dist-types",
12
12
  "test": "yarn g:vitest run",
13
13
  "test:watch": "yarn g:vitest watch"
14
14
  },
@@ -1,6 +1,5 @@
1
- 'use strict';
2
-
3
- var xmlParser = require('./xml-parser');
1
+ const { parseXML } = require("./xml-parser");
2
+ exports.parseXML = parseXML;
4
3
 
5
4
  const ATTR_ESCAPE_RE = /[&<>"]/g;
6
5
  const ATTR_ESCAPE_MAP = {
@@ -126,6 +125,5 @@ class XmlNode {
126
125
  }
127
126
  }
128
127
 
129
- exports.parseXML = xmlParser.parseXML;
130
128
  exports.XmlNode = XmlNode;
131
129
  exports.XmlText = XmlText;
@@ -1,13 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntityDecoderImpl = exports.CURRENCY = exports.COMMON_HTML = exports.XML = void 0;
4
- exports.XML = {
1
+ const XML = {
5
2
  amp: "&",
6
3
  apos: "'",
7
4
  gt: ">",
8
5
  lt: "<",
9
6
  quot: '"',
10
7
  };
8
+ exports.XML = XML;
11
9
  exports.COMMON_HTML = {
12
10
  nbsp: "\u00a0",
13
11
  copy: "\u00a9",
@@ -110,7 +108,7 @@ function parseNCRConfig(ncr) {
110
108
  const clampedNull = Math.max(nullLevel, NCR_LEVEL.remove);
111
109
  return { xmlVersion, onLevel, nullLevel: clampedNull };
112
110
  }
113
- const EntityDecoderImpl = class EntityDecoderImpl {
111
+ exports.EntityDecoderImpl = class EntityDecoderImpl {
114
112
  _limit;
115
113
  _maxTotalExpansions;
116
114
  _maxExpandedLength;
@@ -134,7 +132,7 @@ const EntityDecoderImpl = class EntityDecoderImpl {
134
132
  this._postCheck = typeof options.postCheck === "function" ? options.postCheck : (r) => r;
135
133
  this._limitTiers = parseLimitTiers(this._limit.applyLimitsTo ?? LIMIT_TIER_EXTERNAL);
136
134
  this._numericAllowed = options.numericAllowed ?? true;
137
- this._baseMap = mergeEntityMaps(exports.XML, options.namedEntities || null);
135
+ this._baseMap = mergeEntityMaps(XML, options.namedEntities || null);
138
136
  this._externalMap = Object.create(null);
139
137
  this._inputMap = Object.create(null);
140
138
  this._totalExpansions = 0;
@@ -333,4 +331,3 @@ const EntityDecoderImpl = class EntityDecoderImpl {
333
331
  return this._applyNCRAction(effective, token, cp);
334
332
  }
335
333
  };
336
- exports.EntityDecoderImpl = EntityDecoderImpl;
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseXML = parseXML;
4
1
  let parser;
5
- function parseXML(xmlString) {
2
+ exports.parseXML = function parseXML(xmlString) {
6
3
  if (!parser) {
7
4
  parser = new DOMParser();
8
5
  }
@@ -57,4 +54,4 @@ function parseXML(xmlString) {
57
54
  return {
58
55
  [xmlDocument.documentElement.nodeName]: xmlToObj(xmlDocument.documentElement),
59
56
  };
60
- }
57
+ };
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseXML = parseXML;
4
- const fast_xml_parser_1 = require("fast-xml-parser");
5
- const nodable_entities_1 = require("./xml-external/nodable_entities");
6
- const entityDecoder = new nodable_entities_1.EntityDecoderImpl({
7
- namedEntities: { ...nodable_entities_1.XML, ...nodable_entities_1.COMMON_HTML, ...nodable_entities_1.CURRENCY },
1
+ const { XMLParser } = require("fast-xml-parser");
2
+ const { COMMON_HTML, CURRENCY, EntityDecoderImpl, XML } = require("./xml-external/nodable_entities");
3
+ const entityDecoder = new EntityDecoderImpl({
4
+ namedEntities: { ...XML, ...COMMON_HTML, ...CURRENCY },
8
5
  numericAllowed: true,
9
6
  limit: {
10
7
  maxTotalExpansions: Infinity,
@@ -13,7 +10,7 @@ const entityDecoder = new nodable_entities_1.EntityDecoderImpl({
13
10
  xmlVersion: 1.1,
14
11
  },
15
12
  });
16
- const parser = new fast_xml_parser_1.XMLParser({
13
+ const parser = new XMLParser({
17
14
  attributeNamePrefix: "",
18
15
  processEntities: {
19
16
  enabled: true,
@@ -42,6 +39,6 @@ const parser = new fast_xml_parser_1.XMLParser({
42
39
  tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
43
40
  maxNestedTags: Infinity,
44
41
  });
45
- function parseXML(xmlString) {
42
+ exports.parseXML = function parseXML(xmlString) {
46
43
  return parser.parse(xmlString, true);
47
- }
44
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.29",
3
+ "version": "3.972.30",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "dependencies": {
6
6
  "@smithy/types": "^4.14.3",
@@ -10,11 +10,11 @@
10
10
  "scripts": {
11
11
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
12
12
  "build:cjs": "node ../../scripts/compilation/inline",
13
- "build:es": "tsc -p tsconfig.es.json",
13
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
14
14
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
15
- "build:types": "tsc -p tsconfig.types.json",
15
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
16
16
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
17
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
17
+ "clean": "premove dist-cjs dist-es dist-types",
18
18
  "test": "yarn g:vitest run",
19
19
  "test:watch": "yarn g:vitest watch"
20
20
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-agent-core",
3
- "version": "0.79.3",
3
+ "version": "0.79.6",
4
4
  "description": "General-purpose agent with transport abstraction, state management, and attachment support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "prepublishOnly": "npm run clean && npm run build"
30
30
  },
31
31
  "dependencies": {
32
- "@earendil-works/pi-ai": "^0.79.3",
32
+ "@earendil-works/pi-ai": "^0.79.6",
33
33
  "ignore": "7.0.5",
34
34
  "typebox": "1.1.38",
35
35
  "yaml": "2.9.0"
@@ -26,40 +26,13 @@ if (typeof process !== "undefined" && (process.versions?.node || process.version
26
26
  _join = m.join;
27
27
  });
28
28
  }
29
- let _procEnvCache = null;
30
- /**
31
- * Fallback for https://github.com/oven-sh/bun/issues/27802
32
- * Bun compiled binaries have an empty `process.env` inside sandbox
33
- * environments on Linux. We can recover the env from `/proc/self/environ`.
34
- */
35
- function getProcEnv(key) {
36
- if (!process.versions?.bun)
37
- return undefined;
38
- if (typeof process === "undefined")
39
- return undefined;
40
- // If process.env already has entries, the bug is not triggered.
41
- if (Object.keys(process.env).length > 0)
42
- return undefined;
43
- if (_procEnvCache === null) {
44
- _procEnvCache = new Map();
45
- try {
46
- const { readFileSync } = require("node:fs");
47
- const data = readFileSync("/proc/self/environ", "utf-8");
48
- for (const entry of data.split("\0")) {
49
- const idx = entry.indexOf("=");
50
- if (idx > 0) {
51
- _procEnvCache.set(entry.slice(0, idx), entry.slice(idx + 1));
52
- }
53
- }
54
- }
55
- catch {
56
- // /proc/self/environ may not be readable.
57
- }
58
- }
59
- return _procEnvCache.get(key);
60
- }
29
+ import { getProviderEnvValue } from "./utils/provider-env.js";
61
30
  let cachedVertexAdcCredentialsExists = null;
62
- function hasVertexAdcCredentials() {
31
+ function hasVertexAdcCredentials(env) {
32
+ const explicitCredentialsPath = env?.GOOGLE_APPLICATION_CREDENTIALS;
33
+ if (explicitCredentialsPath) {
34
+ return _existsSync ? _existsSync(explicitCredentialsPath) : false;
35
+ }
63
36
  if (cachedVertexAdcCredentialsExists === null) {
64
37
  // If node modules haven't loaded yet (async import race at startup),
65
38
  // return false WITHOUT caching so the next call retries once they're ready.
@@ -73,7 +46,7 @@ function hasVertexAdcCredentials() {
73
46
  return false;
74
47
  }
75
48
  // Check GOOGLE_APPLICATION_CREDENTIALS env var first (standard way)
76
- const gacPath = process.env.GOOGLE_APPLICATION_CREDENTIALS || getProcEnv("GOOGLE_APPLICATION_CREDENTIALS");
49
+ const gacPath = getProviderEnvValue("GOOGLE_APPLICATION_CREDENTIALS", env);
77
50
  if (gacPath) {
78
51
  cachedVertexAdcCredentialsExists = _existsSync(gacPath);
79
52
  }
@@ -128,27 +101,24 @@ function getApiKeyEnvVars(provider) {
128
101
  const envVar = envMap[provider];
129
102
  return envVar ? [envVar] : undefined;
130
103
  }
131
- export function findEnvKeys(provider) {
104
+ export function findEnvKeys(provider, env) {
132
105
  const envVars = getApiKeyEnvVars(provider);
133
106
  if (!envVars)
134
107
  return undefined;
135
- const found = envVars.filter((envVar) => !!process.env[envVar] || !!getProcEnv(envVar));
108
+ const found = envVars.filter((envVar) => !!getProviderEnvValue(envVar, env));
136
109
  return found.length > 0 ? found : undefined;
137
110
  }
138
- export function getEnvApiKey(provider) {
139
- const envKeys = findEnvKeys(provider);
111
+ export function getEnvApiKey(provider, env) {
112
+ const envKeys = findEnvKeys(provider, env);
140
113
  if (envKeys?.[0]) {
141
- return process.env[envKeys[0]] || getProcEnv(envKeys[0]);
114
+ return getProviderEnvValue(envKeys[0], env);
142
115
  }
143
116
  // Vertex AI supports either an explicit API key or Application Default Credentials.
144
117
  // Auth is configured via `gcloud auth application-default login`.
145
118
  if (provider === "google-vertex") {
146
- const hasCredentials = hasVertexAdcCredentials();
147
- const hasProject = !!(process.env.GOOGLE_CLOUD_PROJECT ||
148
- process.env.GCLOUD_PROJECT ||
149
- getProcEnv("GOOGLE_CLOUD_PROJECT") ||
150
- getProcEnv("GCLOUD_PROJECT"));
151
- const hasLocation = !!(process.env.GOOGLE_CLOUD_LOCATION || getProcEnv("GOOGLE_CLOUD_LOCATION"));
119
+ const hasCredentials = hasVertexAdcCredentials(env);
120
+ const hasProject = !!(getProviderEnvValue("GOOGLE_CLOUD_PROJECT", env) || getProviderEnvValue("GCLOUD_PROJECT", env));
121
+ const hasLocation = !!getProviderEnvValue("GOOGLE_CLOUD_LOCATION", env);
152
122
  if (hasCredentials && hasProject && hasLocation) {
153
123
  return "<authenticated>";
154
124
  }
@@ -161,18 +131,12 @@ export function getEnvApiKey(provider) {
161
131
  // 4. AWS_CONTAINER_CREDENTIALS_RELATIVE_URI - ECS task roles
162
132
  // 5. AWS_CONTAINER_CREDENTIALS_FULL_URI - ECS task roles (full URI)
163
133
  // 6. AWS_WEB_IDENTITY_TOKEN_FILE - IRSA (IAM Roles for Service Accounts)
164
- if (process.env.AWS_PROFILE ||
165
- (process.env.AWS_ACCESS_KEY_ID && process.env.AWS_SECRET_ACCESS_KEY) ||
166
- process.env.AWS_BEARER_TOKEN_BEDROCK ||
167
- process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI ||
168
- process.env.AWS_CONTAINER_CREDENTIALS_FULL_URI ||
169
- process.env.AWS_WEB_IDENTITY_TOKEN_FILE ||
170
- getProcEnv("AWS_PROFILE") ||
171
- (getProcEnv("AWS_ACCESS_KEY_ID") && getProcEnv("AWS_SECRET_ACCESS_KEY")) ||
172
- getProcEnv("AWS_BEARER_TOKEN_BEDROCK") ||
173
- getProcEnv("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI") ||
174
- getProcEnv("AWS_CONTAINER_CREDENTIALS_FULL_URI") ||
175
- getProcEnv("AWS_WEB_IDENTITY_TOKEN_FILE")) {
134
+ if (getProviderEnvValue("AWS_PROFILE", env) ||
135
+ (getProviderEnvValue("AWS_ACCESS_KEY_ID", env) && getProviderEnvValue("AWS_SECRET_ACCESS_KEY", env)) ||
136
+ getProviderEnvValue("AWS_BEARER_TOKEN_BEDROCK", env) ||
137
+ getProviderEnvValue("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", env) ||
138
+ getProviderEnvValue("AWS_CONTAINER_CREDENTIALS_FULL_URI", env) ||
139
+ getProviderEnvValue("AWS_WEB_IDENTITY_TOKEN_FILE", env)) {
176
140
  return "<authenticated>";
177
141
  }
178
142
  }