@psnext/slingcli 2.4.20260528-1 → 2.5.20260602-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.
Files changed (208) hide show
  1. package/node_modules/@aws-sdk/core/package.json +3 -3
  2. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  3. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  4. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +9 -0
  5. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +888 -0
  6. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  7. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  8. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
  9. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +50 -0
  10. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  11. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +240 -0
  12. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +136 -0
  13. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +46 -0
  14. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +172 -0
  15. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  16. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  17. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  18. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +23 -0
  19. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +8 -0
  20. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
  21. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  22. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
  23. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  24. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  25. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  26. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +46 -0
  27. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  28. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
  29. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +46 -0
  30. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +36 -0
  31. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +76 -0
  32. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  33. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  34. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
  35. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
  36. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +5 -0
  37. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +7 -0
  38. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +9 -0
  39. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
  40. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +66 -0
  41. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  42. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  43. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  44. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +12 -1
  45. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +12 -1
  46. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  47. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  48. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +4 -4
  49. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  50. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  51. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
  52. package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
  53. package/node_modules/@aws-sdk/middleware-websocket/package.json +5 -5
  54. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  55. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  56. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  57. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  58. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  59. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  60. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +9 -0
  61. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +888 -0
  62. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  63. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  64. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
  65. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +50 -0
  66. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  67. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +240 -0
  68. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +136 -0
  69. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +46 -0
  70. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +172 -0
  71. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  72. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  73. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  74. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +23 -0
  75. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +8 -0
  76. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
  77. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  78. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +63 -0
  79. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  80. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  81. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  82. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +46 -0
  83. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  84. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
  85. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +46 -0
  86. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +36 -0
  87. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +76 -0
  88. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  89. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  90. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +6 -0
  91. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
  92. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +5 -0
  93. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +7 -0
  94. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +9 -0
  95. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +12 -0
  96. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +66 -0
  97. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  98. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  99. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +81 -18
  100. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +1 -0
  101. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +1 -0
  102. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +14 -1
  103. package/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
  104. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +733 -523
  105. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +84 -21
  106. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +24 -14
  107. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +5 -9
  108. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js +1 -1
  109. package/node_modules/@earendil-works/pi-ai/dist/providers/google.js +5 -3
  110. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js +2 -3
  111. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js +2 -3
  112. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +130 -62
  113. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +18 -12
  114. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.js +4 -1
  115. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js +5 -9
  116. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js +1 -0
  117. package/node_modules/@earendil-works/pi-ai/dist/stream.js +14 -2
  118. package/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js +34 -0
  119. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.js +8 -7
  120. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +1 -1
  121. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/index.js +1 -1
  122. package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +179 -79
  123. package/node_modules/@earendil-works/pi-ai/package.json +2 -2
  124. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +27 -0
  125. package/node_modules/@earendil-works/pi-coding-agent/dist/config.js +9 -1
  126. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.js +1 -0
  127. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +29 -5
  128. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +21 -3
  129. package/node_modules/@earendil-works/pi-coding-agent/dist/core/footer-data-provider.js +29 -1
  130. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +65 -13
  131. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +1 -1
  132. package/node_modules/@earendil-works/pi-coding-agent/dist/core/resolve-config-value.js +134 -11
  133. package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +12 -6
  134. package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +167 -96
  135. package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +14 -9
  136. package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.js +0 -3
  137. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +7 -10
  138. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +5 -7
  139. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +6 -7
  140. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/render-utils.js +17 -1
  141. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js +5 -6
  142. package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +2 -0
  143. package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +69 -16
  144. package/node_modules/@earendil-works/pi-coding-agent/dist/migrations.js +118 -1
  145. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js +1 -1
  146. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +2 -4
  147. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +61 -6
  148. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +10 -0
  149. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js +1 -0
  150. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +4 -1
  151. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/deprecation.js +13 -0
  152. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/json.js +7 -0
  153. package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +71 -56
  154. package/node_modules/@earendil-works/pi-coding-agent/package.json +7 -7
  155. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +9 -53
  156. package/node_modules/@earendil-works/pi-tui/dist/components/input.js +6 -54
  157. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +34 -7
  158. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +172 -37
  159. package/node_modules/@earendil-works/pi-tui/dist/tui.js +166 -22
  160. package/node_modules/@earendil-works/pi-tui/dist/utils.js +8 -3
  161. package/node_modules/@earendil-works/pi-tui/dist/word-navigation.js +96 -0
  162. package/node_modules/@earendil-works/pi-tui/package.json +2 -2
  163. package/node_modules/@mariozechner/clipboard/Cargo.toml +3 -3
  164. package/node_modules/@mariozechner/clipboard/index.d.ts +34 -20
  165. package/node_modules/@mariozechner/clipboard/index.js +546 -257
  166. package/node_modules/@mariozechner/clipboard/package.json +14 -14
  167. package/node_modules/@mariozechner/clipboard/src/lib.rs +4 -9
  168. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
  169. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/package.json +2 -2
  170. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +39 -22
  171. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +39 -22
  172. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +19 -6
  173. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +4 -5
  174. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -1
  175. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js +4 -5
  176. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js +3 -0
  177. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +9 -5
  178. package/node_modules/@smithy/core/dist-types/submodules/retry/middleware-retry/configurations.d.ts +4 -1
  179. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/ConfiguredRetryStrategy.d.ts +1 -2
  180. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/DefaultRetryToken.d.ts +3 -0
  181. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/StandardRetryStrategy.d.ts +1 -1
  182. package/node_modules/@smithy/core/package.json +2 -2
  183. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +14 -13
  184. package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +14 -13
  185. package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
  186. package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
  187. package/node_modules/@smithy/signature-v4/package.json +3 -3
  188. package/node_modules/@smithy/types/dist-types/retry.d.ts +25 -0
  189. package/node_modules/@smithy/types/package.json +1 -1
  190. package/node_modules/protobufjs/dist/light/protobuf.js +7 -5
  191. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  192. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  193. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  194. package/node_modules/protobufjs/dist/minimal/protobuf.js +3 -3
  195. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  196. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  197. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  198. package/node_modules/protobufjs/dist/protobuf.js +7 -5
  199. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  200. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  201. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  202. package/node_modules/protobufjs/package.json +1 -1
  203. package/node_modules/protobufjs/src/converter.js +4 -2
  204. package/node_modules/protobufjs/src/roots.js +1 -1
  205. package/node_modules/undici/lib/global.js +10 -1
  206. package/node_modules/undici/package.json +1 -1
  207. package/package.json +6 -6
  208. package/slingshot/index.js +248 -247
@@ -1,4 +1,3 @@
1
- import { parse } from "node:url";
2
1
  import { CredentialsProviderError } from "@smithy/core/config";
3
2
  import { fromImdsCredentials, isImdsCredentials } from "./remoteProvider/ImdsCredentials";
4
3
  import { providerConfigFromInit } from "./remoteProvider/RemoteProviderInit";
@@ -34,14 +33,8 @@ const requestFromEcsImds = async (timeout, options) => {
34
33
  return buffer.toString();
35
34
  };
36
35
  const CMDS_IP = "169.254.170.2";
37
- const GREENGRASS_HOSTS = {
38
- localhost: true,
39
- "127.0.0.1": true,
40
- };
41
- const GREENGRASS_PROTOCOLS = {
42
- "http:": true,
43
- "https:": true,
44
- };
36
+ const GREENGRASS_HOSTS = new Set(["localhost", "127.0.0.1"]);
37
+ const GREENGRASS_PROTOCOLS = new Set(["http:", "https:"]);
45
38
  const getCmdsUri = async ({ logger }) => {
46
39
  if (process.env[ENV_CMDS_RELATIVE_URI]) {
47
40
  return {
@@ -50,21 +43,29 @@ const getCmdsUri = async ({ logger }) => {
50
43
  };
51
44
  }
52
45
  if (process.env[ENV_CMDS_FULL_URI]) {
53
- const parsed = parse(process.env[ENV_CMDS_FULL_URI]);
54
- if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
46
+ let parsed;
47
+ try {
48
+ parsed = new URL(process.env[ENV_CMDS_FULL_URI]);
49
+ }
50
+ catch {
51
+ throw new CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger });
52
+ }
53
+ if (!parsed.hostname || !GREENGRASS_HOSTS.has(parsed.hostname)) {
55
54
  throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
56
55
  tryNextLink: false,
57
56
  logger,
58
57
  });
59
58
  }
60
- if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
59
+ if (!parsed.protocol || !GREENGRASS_PROTOCOLS.has(parsed.protocol)) {
61
60
  throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
62
61
  tryNextLink: false,
63
62
  logger,
64
63
  });
65
64
  }
66
65
  return {
67
- ...parsed,
66
+ protocol: parsed.protocol,
67
+ hostname: parsed.hostname,
68
+ path: parsed.pathname + parsed.search,
68
69
  port: parsed.port ? parseInt(parsed.port, 10) : undefined,
69
70
  };
70
71
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.3.5",
3
+ "version": "4.3.7",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,8 +27,8 @@
27
27
  "license": "Apache-2.0",
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.5",
31
- "@smithy/types": "^4.14.2",
30
+ "@smithy/core": "^3.24.6",
31
+ "@smithy/types": "^4.14.3",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.4.5",
3
+ "version": "5.4.6",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
@@ -27,12 +27,12 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.5",
31
- "@smithy/types": "^4.14.2",
30
+ "@smithy/core": "^3.24.6",
31
+ "@smithy/types": "^4.14.3",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@smithy/abort-controller": "^4.2.15",
35
+ "@smithy/abort-controller": "^4.2.16",
36
36
  "concurrently": "7.0.0",
37
37
  "downlevel-dts": "0.10.1",
38
38
  "premove": "4.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.4.5",
3
+ "version": "5.4.6",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,8 +25,8 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.24.5",
29
- "@smithy/types": "^4.14.2",
28
+ "@smithy/core": "^3.24.6",
29
+ "@smithy/types": "^4.14.3",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -75,10 +75,24 @@ export interface RetryStrategyOptions {
75
75
  */
76
76
  export interface RetryToken {
77
77
  /**
78
+ * Starts at 0 for the initial request, which is not a "retry" by definition.
79
+ * 1 indicates the first retry.
80
+ *
78
81
  * @returns the current count of retry.
79
82
  */
80
83
  getRetryCount(): number;
81
84
  /**
85
+ * RetryStrategies implemented by `@smithy/core` will return tokens with a
86
+ * delay of zero.
87
+ *
88
+ * This is because the RetryStrategy token acquisition methods took over the
89
+ * task of idling for the delay period. If a user-implemented retry token
90
+ * contains a delay, the default Smithy retry middleware will still honor it.
91
+ *
92
+ * That is to say, you may either sleep within the RetryStrategy methods for acquiring
93
+ * the token, OR return a token with a retry delay that will cause the retry middleware
94
+ * to sleep.
95
+ *
82
96
  * @returns the number of milliseconds to wait before retrying an action.
83
97
  */
84
98
  getRetryDelay(): number;
@@ -86,6 +100,14 @@ export interface RetryToken {
86
100
  * @returns whether the operation which generated this token is long polling.
87
101
  */
88
102
  isLongPoll?(): boolean;
103
+ /**
104
+ * Delays that have already been executed by the time the token
105
+ * is accessible. This is needed for the token handler to understand what has happened.
106
+ * @internal
107
+ */
108
+ $retryLog?: {
109
+ acquisitionDelay?: number;
110
+ };
89
111
  }
90
112
  /**
91
113
  * @public
@@ -116,6 +138,9 @@ export interface RetryStrategyV2 {
116
138
  * either choose to allow another retry and send a new or updated token,
117
139
  * or reject the retry attempt and report the error either in an exception
118
140
  * or returning an error.
141
+ *
142
+ * This method should either delay internally and return a token with 0 delay, OR
143
+ * do not sleep and return a token with the desired delay duration.
119
144
  */
120
145
  refreshRetryTokenForRetry(tokenToRenew: RetryToken, errorInfo: RetryErrorInfo): Promise<RetryToken>;
121
146
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.14.2",
3
+ "version": "4.14.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
6
6
  "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline types",
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * protobuf.js v7.6.1 (c) 2016, daniel wirtz
3
- * compiled fri, 22 may 2026 02:52:08 utc
2
+ * protobuf.js v7.6.2 (c) 2016, daniel wirtz
3
+ * compiled sat, 30 may 2026 21:57:57 utc
4
4
  * licensed under the bsd-3-clause license
5
5
  * see: https://github.com/dcodeio/protobuf.js for details
6
6
  */
@@ -1207,7 +1207,7 @@ function genValuePartial_fromObject(gen, field, fieldIndex, prop) {
1207
1207
  } gen
1208
1208
  ("}");
1209
1209
  } else gen
1210
- ("if(typeof d%s!==\"object\")", prop)
1210
+ ("if(!util.isObject(d%s))", prop)
1211
1211
  ("throw TypeError(%j)", field.fullName + ": object expected")
1212
1212
  ("m%s=types[%i].fromObject(d%s,n+1)", prop, fieldIndex, prop);
1213
1213
  } else {
@@ -1274,6 +1274,8 @@ converter.fromObject = function fromObject(mtype) {
1274
1274
  var gen = util.codegen(["d", "n"], mtype.name + "$fromObject")
1275
1275
  ("if(d instanceof this.ctor)")
1276
1276
  ("return d")
1277
+ ("if(!util.isObject(d))")
1278
+ ("throw TypeError(%j)", mtype.fullName + ": object expected")
1277
1279
  ("if(n===undefined)n=0")
1278
1280
  ("if(n>util.recursionLimit)")
1279
1281
  ("throw Error(\"maximum nesting depth exceeded\")");
@@ -1288,7 +1290,7 @@ converter.fromObject = function fromObject(mtype) {
1288
1290
  // Map fields
1289
1291
  if (field.map) { gen
1290
1292
  ("if(d%s){", prop)
1291
- ("if(typeof d%s!==\"object\")", prop)
1293
+ ("if(!util.isObject(d%s))", prop)
1292
1294
  ("throw TypeError(%j)", field.fullName + ": object expected")
1293
1295
  ("m%s={}", prop)
1294
1296
  ("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", prop);
@@ -5049,7 +5051,7 @@ Root._configure = function(Type_, parse_, common_) {
5049
5051
 
5050
5052
  },{"16":16,"17":17,"23":23,"25":25,"35":35}],29:[function(require,module,exports){
5051
5053
  "use strict";
5052
- module.exports = {};
5054
+ module.exports = Object.create(null);
5053
5055
 
5054
5056
  /**
5055
5057
  * Named roots.