@psnext/slingcli 2.5.20260623-1 → 2.5.20260705-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@aws/lambda-invoke-store/README.md +25 -1
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +12 -0
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +12 -0
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +6 -0
- package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
- package/node_modules/@aws-sdk/core/account-id-endpoint.d.ts +1 -3
- package/node_modules/@aws-sdk/core/client.d.ts +1 -3
- package/node_modules/@aws-sdk/core/httpAuthSchemes.d.ts +1 -3
- package/node_modules/@aws-sdk/core/package.json +10 -17
- package/node_modules/@aws-sdk/core/protocols.d.ts +1 -3
- package/node_modules/@aws-sdk/core/util.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +172 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -8
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +13 -25
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +13 -17
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +12 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +12 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +13 -25
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -17
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -10
- package/node_modules/@aws-sdk/nested-clients/signin.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sts.d.ts +1 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +236 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -4
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +10 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +9 -8
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +20 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +2 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +51 -47
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +11 -17
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +25 -11
- package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js +0 -18
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +8 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +8 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +68 -43
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +38 -29
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +189 -204
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +26 -35
- package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +4 -6
- package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +11 -2
- package/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +19 -4
- package/node_modules/@earendil-works/pi-ai/dist/compat.js +81 -7
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +60 -45
- package/node_modules/@earendil-works/pi-ai/dist/images-models.js +7 -3
- package/node_modules/@earendil-works/pi-ai/dist/index.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.js +49 -0
- package/node_modules/@earendil-works/pi-ai/dist/models.js +7 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +149 -12
- package/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +18 -34
- package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +20 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +39 -9
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js +85 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +13 -13
- package/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +1 -20
- package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +20 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +57 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +72 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +23 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +16 -16
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +90 -17
- package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +390 -102
- package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +39 -20
- package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +389 -80
- package/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +7 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +12 -12
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +12 -12
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +12 -12
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +15 -15
- package/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +6 -6
- package/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +6 -6
- package/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +109 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +95 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/headers.js +10 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.js +15 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +3 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +87 -0
- package/node_modules/@earendil-works/pi-ai/package.json +1 -33
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.js +13 -25
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +50 -34
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +13 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +11 -11
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +11 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +33 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.js +28 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +2 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +15 -18
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js +0 -10
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.js +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +96 -73
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +19 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/timings.js +24 -14
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +20 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +12 -25
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +20 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +23 -15
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-entry.js +52 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.js +12 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.js +14 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +13 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/status-indicator.js +60 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.js +19 -6
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +180 -155
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js +14 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +16 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/rpc-entry.js +10 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-convert.js +21 -15
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-process.js +83 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/mime.js +41 -0
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +12 -12
- package/node_modules/@earendil-works/pi-coding-agent/package.json +8 -5
- package/node_modules/@earendil-works/pi-orchestrator/dist/cli.js +136 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/config.js +55 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/handler.js +105 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/index.js +11 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/ipc/client.js +56 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/ipc/protocol.js +12 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/ipc/server.js +145 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/radius.js +365 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/rpc-process.js +168 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/serve.js +70 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/storage.js +58 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/supervisor.js +290 -0
- package/node_modules/@earendil-works/pi-orchestrator/dist/types.js +2 -0
- package/node_modules/@earendil-works/pi-orchestrator/package.json +45 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +3 -0
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +358 -145
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +462 -142
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +358 -145
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +18 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +108 -63
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +11 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +30 -36
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +85 -137
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +30 -36
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js +30 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js +24 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.browser.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.native.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Js.js +92 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Node.js +29 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Js.js +179 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Node.js +59 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256WebCrypto.js +71 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client-command-builder.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js +92 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js +3 -56
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js +5 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js +7 -6
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/concatBytes.js +15 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +35 -27
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +12 -38
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js +18 -33
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.browser.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Js.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Node.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.browser.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.native.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Js.d.ts +19 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Node.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Js.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Node.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256WebCrypto.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/client-command-builder.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/command.d.ts +5 -6
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/config/defaults-mode/constants.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/endpointMiddleware.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/getEndpointPlugin.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/concatBytes.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +29 -12
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.browser.d.ts +8 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.d.ts +4 -1
- package/node_modules/@smithy/core/package.json +5 -5
- package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -55
- package/node_modules/@smithy/fetch-http-handler/dist-es/index.js +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
- package/node_modules/@smithy/signature-v4/package.json +3 -4
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/buffer.d.ts +64 -25
- package/node_modules/@types/node/crypto.d.ts +18 -5
- package/node_modules/@types/node/diagnostics_channel.d.ts +254 -23
- package/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +3 -0
- package/node_modules/@types/node/fs.d.ts +21 -6
- package/node_modules/@types/node/http.d.ts +25 -0
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +14 -1
- package/node_modules/@types/node/quic.d.ts +92 -11
- package/node_modules/@types/node/sqlite.d.ts +55 -0
- package/node_modules/@types/node/stream/iter.d.ts +150 -0
- package/node_modules/@types/node/stream.d.ts +32 -0
- package/node_modules/@types/node/test.d.ts +112 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
- package/node_modules/@types/node/util.d.ts +19 -2
- package/node_modules/@types/node/v8.d.ts +84 -2
- package/node_modules/@types/node/worker_threads.d.ts +8 -7
- package/node_modules/brace-expansion/dist/commonjs/index.js +24 -14
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +24 -14
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +2 -2
- package/node_modules/google-auth-library/build/src/auth/googleauth.js +1 -1
- package/node_modules/google-auth-library/package.json +4 -4
- package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +5 -2
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/parse.js +3 -0
- package/package.json +7 -6
- package/slingshot/index.js +293 -295
- package/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -100
- package/node_modules/@aws-crypto/crc32/LICENSE +0 -201
- package/node_modules/@aws-crypto/crc32/README.md +0 -16
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js +0 -31
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/main/index.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/main/index.js +0 -108
- package/node_modules/@aws-crypto/crc32/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js +0 -28
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/module/index.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/module/index.js +0 -103
- package/node_modules/@aws-crypto/crc32/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/package.json +0 -32
- package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -24
- package/node_modules/@aws-crypto/crc32/src/index.ts +0 -92
- package/node_modules/@aws-crypto/crc32/tsconfig.json +0 -9
- package/node_modules/@aws-crypto/crc32/tsconfig.module.json +0 -7
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +0 -869
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +0 -862
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +0 -42
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +0 -27
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +0 -71
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +0 -49
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +0 -13
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +0 -29
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +0 -25
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +0 -57
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +0 -234
- package/node_modules/@earendil-works/pi-ai/dist/api-registry.js +0 -44
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/constants.js +0 -3
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/md5.js +0 -168
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/constants.d.ts +0 -12
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/md5.d.ts +0 -16
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +0 -53
- package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +0 -2
- /package/node_modules/@smithy/{core/dist-es/submodules/endpoints/middleware-endpoint/types.js → types/dist-es/endpoints/EndpointParameterInstructions.js} +0 -0
- /package/node_modules/@smithy/{core/dist-types/submodules/endpoints/middleware-endpoint/types.d.ts → types/dist-types/endpoints/EndpointParameterInstructions.d.ts} +0 -0
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
exports.parseXML = function parseXML(xml) {
|
|
2
|
-
const state = new AwsXmlParser(xml);
|
|
3
|
-
return state.parse();
|
|
4
|
-
};
|
|
5
|
-
class AwsXmlParser {
|
|
6
|
-
x;
|
|
7
|
-
i = 0;
|
|
8
|
-
z;
|
|
9
|
-
constructor(x) {
|
|
10
|
-
this.x = x;
|
|
11
|
-
this.x = x.replace(/\r\n?/g, "\n");
|
|
12
|
-
this.z = this.x.length;
|
|
13
|
-
}
|
|
14
|
-
parse() {
|
|
15
|
-
const p = this;
|
|
16
|
-
const { z } = p;
|
|
17
|
-
while (p.i < z) {
|
|
18
|
-
p.trim();
|
|
19
|
-
if (p.i >= z) {
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
if (p.isNext("<?")) {
|
|
23
|
-
p.readTo("?>");
|
|
24
|
-
p.trim();
|
|
25
|
-
}
|
|
26
|
-
else if (p.isNext("<!--")) {
|
|
27
|
-
p.readTo("-->");
|
|
28
|
-
p.trim();
|
|
29
|
-
}
|
|
30
|
-
else if (p.isNext("<!DOCTYPE", false)) {
|
|
31
|
-
p.skipDoctype();
|
|
32
|
-
p.trim();
|
|
33
|
-
}
|
|
34
|
-
else if (p.x[p.i] === "<") {
|
|
35
|
-
const root = p.parseTag();
|
|
36
|
-
return { [root.tag]: root.value };
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
throw new Error("@aws-sdk XML parse error: unexpected content.");
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
throw new Error("@aws-sdk XML parse error: no root element.");
|
|
43
|
-
}
|
|
44
|
-
isNext(s, caseSensitive = true) {
|
|
45
|
-
const p = this;
|
|
46
|
-
if (caseSensitive) {
|
|
47
|
-
return p.x.startsWith(s, p.i);
|
|
48
|
-
}
|
|
49
|
-
return p.x.toLowerCase().startsWith(s.toLowerCase(), p.i);
|
|
50
|
-
}
|
|
51
|
-
readTo(stop) {
|
|
52
|
-
const p = this;
|
|
53
|
-
const _i = p.x.indexOf(stop, p.i);
|
|
54
|
-
if (_i === -1) {
|
|
55
|
-
throw new Error(`@aws-sdk XML parse error: expected "${stop}" not found.`);
|
|
56
|
-
}
|
|
57
|
-
const result = p.x.slice(p.i, _i);
|
|
58
|
-
p.i = _i + stop.length;
|
|
59
|
-
return result;
|
|
60
|
-
}
|
|
61
|
-
trim() {
|
|
62
|
-
const p = this;
|
|
63
|
-
while (p.i < p.z && " \t\r\n".includes(p.x[p.i])) {
|
|
64
|
-
++p.i;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
readAttrValue() {
|
|
68
|
-
const p = this;
|
|
69
|
-
const quote = p.x[p.i];
|
|
70
|
-
++p.i;
|
|
71
|
-
let value = "";
|
|
72
|
-
while (p.i < p.z && p.x[p.i] !== quote) {
|
|
73
|
-
value += p.x[p.i++];
|
|
74
|
-
}
|
|
75
|
-
++p.i;
|
|
76
|
-
return p.decodeEntities(value);
|
|
77
|
-
}
|
|
78
|
-
parseTag() {
|
|
79
|
-
const p = this;
|
|
80
|
-
++p.i;
|
|
81
|
-
let tag = "";
|
|
82
|
-
while (p.i < p.z && !" \t\r\n>/".includes(p.x[p.i])) {
|
|
83
|
-
tag += p.x[p.i++];
|
|
84
|
-
}
|
|
85
|
-
let hasAttrs = false;
|
|
86
|
-
const attrs = Object.create(null);
|
|
87
|
-
while (p.i < p.z) {
|
|
88
|
-
p.trim();
|
|
89
|
-
if (">/".includes(p.x[p.i])) {
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
let name = "";
|
|
93
|
-
while (p.i < p.z && !"= \t\r\n>/?".includes(p.x[p.i])) {
|
|
94
|
-
name += p.x[p.i++];
|
|
95
|
-
}
|
|
96
|
-
p.trim();
|
|
97
|
-
if (p.x[p.i] !== "=") {
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
++p.i;
|
|
101
|
-
p.trim();
|
|
102
|
-
attrs[name] = p.readAttrValue();
|
|
103
|
-
hasAttrs = true;
|
|
104
|
-
}
|
|
105
|
-
if (p.i >= p.z) {
|
|
106
|
-
throw new Error("@aws-sdk XML parse error: unexpected end of input.");
|
|
107
|
-
}
|
|
108
|
-
if (p.x[p.i] === "/") {
|
|
109
|
-
++p.i;
|
|
110
|
-
if (p.i >= p.z || p.x[p.i] !== ">") {
|
|
111
|
-
throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");
|
|
112
|
-
}
|
|
113
|
-
++p.i;
|
|
114
|
-
Object.setPrototypeOf(attrs, Object.prototype);
|
|
115
|
-
return { tag, value: hasAttrs ? attrs : "" };
|
|
116
|
-
}
|
|
117
|
-
if (p.x[p.i] !== ">") {
|
|
118
|
-
throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");
|
|
119
|
-
}
|
|
120
|
-
++p.i;
|
|
121
|
-
const textParts = [];
|
|
122
|
-
const childTags = [];
|
|
123
|
-
let hasElementChild = false;
|
|
124
|
-
while (p.i < p.z) {
|
|
125
|
-
if (p.isNext("</")) {
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
if (p.x[p.i] === "<") {
|
|
129
|
-
if (p.isNext("<!--")) {
|
|
130
|
-
p.readTo("-->");
|
|
131
|
-
}
|
|
132
|
-
else if (p.isNext("<![CDATA[")) {
|
|
133
|
-
p.i += 9;
|
|
134
|
-
textParts.push(p.readTo("]]>"));
|
|
135
|
-
}
|
|
136
|
-
else if (p.isNext("<?")) {
|
|
137
|
-
p.readTo("?>");
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
hasElementChild = true;
|
|
141
|
-
childTags.push(p.parseTag());
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
let text = "";
|
|
146
|
-
while (p.i < p.z && p.x[p.i] !== "<") {
|
|
147
|
-
text += p.x[p.i++];
|
|
148
|
-
}
|
|
149
|
-
textParts.push(p.decodeEntities(text));
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
if (!p.isNext("</")) {
|
|
153
|
-
throw new Error(`@aws-sdk XML parse error: missing closing tag </${tag}>.`);
|
|
154
|
-
}
|
|
155
|
-
p.i += 2;
|
|
156
|
-
const closeTag = p.readTo(">").trim();
|
|
157
|
-
if (closeTag !== tag) {
|
|
158
|
-
throw new Error(`@aws-sdk XML parse error: mismatched tags <${tag}> and </${closeTag}>.`);
|
|
159
|
-
}
|
|
160
|
-
if (!hasAttrs && textParts.length === 0 && !hasElementChild) {
|
|
161
|
-
return { tag, value: "" };
|
|
162
|
-
}
|
|
163
|
-
if (!hasAttrs && !hasElementChild) {
|
|
164
|
-
const text = textParts.length === 1 ? textParts[0] : textParts.join("");
|
|
165
|
-
if (text.trim() === "" && text.includes("\n")) {
|
|
166
|
-
return { tag, value: "" };
|
|
167
|
-
}
|
|
168
|
-
return { tag, value: text };
|
|
169
|
-
}
|
|
170
|
-
const obj = Object.create(null);
|
|
171
|
-
for (const text of textParts) {
|
|
172
|
-
if (text.trim() === "" && text.includes("\n")) {
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
|
-
obj["#text"] = "#text" in obj ? obj["#text"] + text : text;
|
|
176
|
-
}
|
|
177
|
-
for (const child of childTags) {
|
|
178
|
-
if (child.tag in obj) {
|
|
179
|
-
if (Array.isArray(obj[child.tag])) {
|
|
180
|
-
obj[child.tag].push(child.value);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
obj[child.tag] = [obj[child.tag], child.value];
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
obj[child.tag] = child.value;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
for (const [k, v] of Object.entries(attrs)) {
|
|
191
|
-
obj[k] = v;
|
|
192
|
-
}
|
|
193
|
-
Object.setPrototypeOf(obj, Object.prototype);
|
|
194
|
-
return { tag, value: obj };
|
|
195
|
-
}
|
|
196
|
-
static ENTITIES = {
|
|
197
|
-
amp: "&",
|
|
198
|
-
lt: "<",
|
|
199
|
-
gt: ">",
|
|
200
|
-
quot: '"',
|
|
201
|
-
apos: "'",
|
|
202
|
-
};
|
|
203
|
-
skipDoctype() {
|
|
204
|
-
const p = this;
|
|
205
|
-
p.i += 9;
|
|
206
|
-
let depth = 0;
|
|
207
|
-
while (p.i < p.z) {
|
|
208
|
-
const c = p.x[p.i];
|
|
209
|
-
if (c === "[") {
|
|
210
|
-
++depth;
|
|
211
|
-
}
|
|
212
|
-
else if (c === "]") {
|
|
213
|
-
--depth;
|
|
214
|
-
}
|
|
215
|
-
else if (c === ">" && depth === 0) {
|
|
216
|
-
++p.i;
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
++p.i;
|
|
220
|
-
}
|
|
221
|
-
throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.");
|
|
222
|
-
}
|
|
223
|
-
decodeEntities(s) {
|
|
224
|
-
return s.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g, (_, hex, dec, named) => {
|
|
225
|
-
if (hex) {
|
|
226
|
-
return String.fromCharCode(parseInt(hex, 16));
|
|
227
|
-
}
|
|
228
|
-
if (dec) {
|
|
229
|
-
return String.fromCharCode(parseInt(dec, 10));
|
|
230
|
-
}
|
|
231
|
-
return AwsXmlParser.ENTITIES[named] ?? "";
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const apiProviderRegistry = new Map();
|
|
2
|
-
function wrapStream(api, stream) {
|
|
3
|
-
return (model, context, options) => {
|
|
4
|
-
if (model.api !== api) {
|
|
5
|
-
throw new Error(`Mismatched api: ${model.api} expected ${api}`);
|
|
6
|
-
}
|
|
7
|
-
return stream(model, context, options);
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
function wrapStreamSimple(api, streamSimple) {
|
|
11
|
-
return (model, context, options) => {
|
|
12
|
-
if (model.api !== api) {
|
|
13
|
-
throw new Error(`Mismatched api: ${model.api} expected ${api}`);
|
|
14
|
-
}
|
|
15
|
-
return streamSimple(model, context, options);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export function registerApiProvider(provider, sourceId) {
|
|
19
|
-
apiProviderRegistry.set(provider.api, {
|
|
20
|
-
provider: {
|
|
21
|
-
api: provider.api,
|
|
22
|
-
stream: wrapStream(provider.api, provider.stream),
|
|
23
|
-
streamSimple: wrapStreamSimple(provider.api, provider.streamSimple),
|
|
24
|
-
},
|
|
25
|
-
sourceId,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export function getApiProvider(api) {
|
|
29
|
-
return apiProviderRegistry.get(api)?.provider;
|
|
30
|
-
}
|
|
31
|
-
export function getApiProviders() {
|
|
32
|
-
return Array.from(apiProviderRegistry.values(), (entry) => entry.provider);
|
|
33
|
-
}
|
|
34
|
-
export function unregisterApiProviders(sourceId) {
|
|
35
|
-
for (const [api, entry] of apiProviderRegistry.entries()) {
|
|
36
|
-
if (entry.sourceId === sourceId) {
|
|
37
|
-
apiProviderRegistry.delete(api);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
export function clearApiProviders() {
|
|
42
|
-
apiProviderRegistry.clear();
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=api-registry.js.map
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { fromUtf8 } from "@smithy/core/serde";
|
|
2
|
-
import { BLOCK_SIZE, DIGEST_LENGTH, INIT } from "./constants";
|
|
3
|
-
export class Md5 {
|
|
4
|
-
state;
|
|
5
|
-
buffer;
|
|
6
|
-
bufferLength;
|
|
7
|
-
bytesHashed;
|
|
8
|
-
finished;
|
|
9
|
-
constructor() {
|
|
10
|
-
this.reset();
|
|
11
|
-
}
|
|
12
|
-
update(sourceData) {
|
|
13
|
-
if (isEmptyData(sourceData)) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
else if (this.finished) {
|
|
17
|
-
throw new Error("Attempted to update an already finished hash.");
|
|
18
|
-
}
|
|
19
|
-
const data = convertToBuffer(sourceData);
|
|
20
|
-
let position = 0;
|
|
21
|
-
let { byteLength } = data;
|
|
22
|
-
this.bytesHashed += byteLength;
|
|
23
|
-
while (byteLength > 0) {
|
|
24
|
-
this.buffer.setUint8(this.bufferLength++, data[position++]);
|
|
25
|
-
byteLength--;
|
|
26
|
-
if (this.bufferLength === BLOCK_SIZE) {
|
|
27
|
-
this.hashBuffer();
|
|
28
|
-
this.bufferLength = 0;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
async digest() {
|
|
33
|
-
if (!this.finished) {
|
|
34
|
-
const { buffer, bufferLength: undecoratedLength, bytesHashed } = this;
|
|
35
|
-
const bitsHashed = bytesHashed * 8;
|
|
36
|
-
buffer.setUint8(this.bufferLength++, 0b10000000);
|
|
37
|
-
if (undecoratedLength % BLOCK_SIZE >= BLOCK_SIZE - 8) {
|
|
38
|
-
for (let i = this.bufferLength; i < BLOCK_SIZE; i++) {
|
|
39
|
-
buffer.setUint8(i, 0);
|
|
40
|
-
}
|
|
41
|
-
this.hashBuffer();
|
|
42
|
-
this.bufferLength = 0;
|
|
43
|
-
}
|
|
44
|
-
for (let i = this.bufferLength; i < BLOCK_SIZE - 8; i++) {
|
|
45
|
-
buffer.setUint8(i, 0);
|
|
46
|
-
}
|
|
47
|
-
buffer.setUint32(BLOCK_SIZE - 8, bitsHashed >>> 0, true);
|
|
48
|
-
buffer.setUint32(BLOCK_SIZE - 4, Math.floor(bitsHashed / 0x100000000), true);
|
|
49
|
-
this.hashBuffer();
|
|
50
|
-
this.finished = true;
|
|
51
|
-
}
|
|
52
|
-
const out = new DataView(new ArrayBuffer(DIGEST_LENGTH));
|
|
53
|
-
for (let i = 0; i < 4; i++) {
|
|
54
|
-
out.setUint32(i * 4, this.state[i], true);
|
|
55
|
-
}
|
|
56
|
-
return new Uint8Array(out.buffer, out.byteOffset, out.byteLength);
|
|
57
|
-
}
|
|
58
|
-
hashBuffer() {
|
|
59
|
-
const { buffer, state } = this;
|
|
60
|
-
let a = state[0], b = state[1], c = state[2], d = state[3];
|
|
61
|
-
a = ff(a, b, c, d, buffer.getUint32(0, true), 7, 0xd76aa478);
|
|
62
|
-
d = ff(d, a, b, c, buffer.getUint32(4, true), 12, 0xe8c7b756);
|
|
63
|
-
c = ff(c, d, a, b, buffer.getUint32(8, true), 17, 0x242070db);
|
|
64
|
-
b = ff(b, c, d, a, buffer.getUint32(12, true), 22, 0xc1bdceee);
|
|
65
|
-
a = ff(a, b, c, d, buffer.getUint32(16, true), 7, 0xf57c0faf);
|
|
66
|
-
d = ff(d, a, b, c, buffer.getUint32(20, true), 12, 0x4787c62a);
|
|
67
|
-
c = ff(c, d, a, b, buffer.getUint32(24, true), 17, 0xa8304613);
|
|
68
|
-
b = ff(b, c, d, a, buffer.getUint32(28, true), 22, 0xfd469501);
|
|
69
|
-
a = ff(a, b, c, d, buffer.getUint32(32, true), 7, 0x698098d8);
|
|
70
|
-
d = ff(d, a, b, c, buffer.getUint32(36, true), 12, 0x8b44f7af);
|
|
71
|
-
c = ff(c, d, a, b, buffer.getUint32(40, true), 17, 0xffff5bb1);
|
|
72
|
-
b = ff(b, c, d, a, buffer.getUint32(44, true), 22, 0x895cd7be);
|
|
73
|
-
a = ff(a, b, c, d, buffer.getUint32(48, true), 7, 0x6b901122);
|
|
74
|
-
d = ff(d, a, b, c, buffer.getUint32(52, true), 12, 0xfd987193);
|
|
75
|
-
c = ff(c, d, a, b, buffer.getUint32(56, true), 17, 0xa679438e);
|
|
76
|
-
b = ff(b, c, d, a, buffer.getUint32(60, true), 22, 0x49b40821);
|
|
77
|
-
a = gg(a, b, c, d, buffer.getUint32(4, true), 5, 0xf61e2562);
|
|
78
|
-
d = gg(d, a, b, c, buffer.getUint32(24, true), 9, 0xc040b340);
|
|
79
|
-
c = gg(c, d, a, b, buffer.getUint32(44, true), 14, 0x265e5a51);
|
|
80
|
-
b = gg(b, c, d, a, buffer.getUint32(0, true), 20, 0xe9b6c7aa);
|
|
81
|
-
a = gg(a, b, c, d, buffer.getUint32(20, true), 5, 0xd62f105d);
|
|
82
|
-
d = gg(d, a, b, c, buffer.getUint32(40, true), 9, 0x02441453);
|
|
83
|
-
c = gg(c, d, a, b, buffer.getUint32(60, true), 14, 0xd8a1e681);
|
|
84
|
-
b = gg(b, c, d, a, buffer.getUint32(16, true), 20, 0xe7d3fbc8);
|
|
85
|
-
a = gg(a, b, c, d, buffer.getUint32(36, true), 5, 0x21e1cde6);
|
|
86
|
-
d = gg(d, a, b, c, buffer.getUint32(56, true), 9, 0xc33707d6);
|
|
87
|
-
c = gg(c, d, a, b, buffer.getUint32(12, true), 14, 0xf4d50d87);
|
|
88
|
-
b = gg(b, c, d, a, buffer.getUint32(32, true), 20, 0x455a14ed);
|
|
89
|
-
a = gg(a, b, c, d, buffer.getUint32(52, true), 5, 0xa9e3e905);
|
|
90
|
-
d = gg(d, a, b, c, buffer.getUint32(8, true), 9, 0xfcefa3f8);
|
|
91
|
-
c = gg(c, d, a, b, buffer.getUint32(28, true), 14, 0x676f02d9);
|
|
92
|
-
b = gg(b, c, d, a, buffer.getUint32(48, true), 20, 0x8d2a4c8a);
|
|
93
|
-
a = hh(a, b, c, d, buffer.getUint32(20, true), 4, 0xfffa3942);
|
|
94
|
-
d = hh(d, a, b, c, buffer.getUint32(32, true), 11, 0x8771f681);
|
|
95
|
-
c = hh(c, d, a, b, buffer.getUint32(44, true), 16, 0x6d9d6122);
|
|
96
|
-
b = hh(b, c, d, a, buffer.getUint32(56, true), 23, 0xfde5380c);
|
|
97
|
-
a = hh(a, b, c, d, buffer.getUint32(4, true), 4, 0xa4beea44);
|
|
98
|
-
d = hh(d, a, b, c, buffer.getUint32(16, true), 11, 0x4bdecfa9);
|
|
99
|
-
c = hh(c, d, a, b, buffer.getUint32(28, true), 16, 0xf6bb4b60);
|
|
100
|
-
b = hh(b, c, d, a, buffer.getUint32(40, true), 23, 0xbebfbc70);
|
|
101
|
-
a = hh(a, b, c, d, buffer.getUint32(52, true), 4, 0x289b7ec6);
|
|
102
|
-
d = hh(d, a, b, c, buffer.getUint32(0, true), 11, 0xeaa127fa);
|
|
103
|
-
c = hh(c, d, a, b, buffer.getUint32(12, true), 16, 0xd4ef3085);
|
|
104
|
-
b = hh(b, c, d, a, buffer.getUint32(24, true), 23, 0x04881d05);
|
|
105
|
-
a = hh(a, b, c, d, buffer.getUint32(36, true), 4, 0xd9d4d039);
|
|
106
|
-
d = hh(d, a, b, c, buffer.getUint32(48, true), 11, 0xe6db99e5);
|
|
107
|
-
c = hh(c, d, a, b, buffer.getUint32(60, true), 16, 0x1fa27cf8);
|
|
108
|
-
b = hh(b, c, d, a, buffer.getUint32(8, true), 23, 0xc4ac5665);
|
|
109
|
-
a = ii(a, b, c, d, buffer.getUint32(0, true), 6, 0xf4292244);
|
|
110
|
-
d = ii(d, a, b, c, buffer.getUint32(28, true), 10, 0x432aff97);
|
|
111
|
-
c = ii(c, d, a, b, buffer.getUint32(56, true), 15, 0xab9423a7);
|
|
112
|
-
b = ii(b, c, d, a, buffer.getUint32(20, true), 21, 0xfc93a039);
|
|
113
|
-
a = ii(a, b, c, d, buffer.getUint32(48, true), 6, 0x655b59c3);
|
|
114
|
-
d = ii(d, a, b, c, buffer.getUint32(12, true), 10, 0x8f0ccc92);
|
|
115
|
-
c = ii(c, d, a, b, buffer.getUint32(40, true), 15, 0xffeff47d);
|
|
116
|
-
b = ii(b, c, d, a, buffer.getUint32(4, true), 21, 0x85845dd1);
|
|
117
|
-
a = ii(a, b, c, d, buffer.getUint32(32, true), 6, 0x6fa87e4f);
|
|
118
|
-
d = ii(d, a, b, c, buffer.getUint32(60, true), 10, 0xfe2ce6e0);
|
|
119
|
-
c = ii(c, d, a, b, buffer.getUint32(24, true), 15, 0xa3014314);
|
|
120
|
-
b = ii(b, c, d, a, buffer.getUint32(52, true), 21, 0x4e0811a1);
|
|
121
|
-
a = ii(a, b, c, d, buffer.getUint32(16, true), 6, 0xf7537e82);
|
|
122
|
-
d = ii(d, a, b, c, buffer.getUint32(44, true), 10, 0xbd3af235);
|
|
123
|
-
c = ii(c, d, a, b, buffer.getUint32(8, true), 15, 0x2ad7d2bb);
|
|
124
|
-
b = ii(b, c, d, a, buffer.getUint32(36, true), 21, 0xeb86d391);
|
|
125
|
-
state[0] = (a + state[0]) & 0xffffffff;
|
|
126
|
-
state[1] = (b + state[1]) & 0xffffffff;
|
|
127
|
-
state[2] = (c + state[2]) & 0xffffffff;
|
|
128
|
-
state[3] = (d + state[3]) & 0xffffffff;
|
|
129
|
-
}
|
|
130
|
-
reset() {
|
|
131
|
-
this.state = Uint32Array.from(INIT);
|
|
132
|
-
this.buffer = new DataView(new ArrayBuffer(BLOCK_SIZE));
|
|
133
|
-
this.bufferLength = 0;
|
|
134
|
-
this.bytesHashed = 0;
|
|
135
|
-
this.finished = false;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function cmn(q, a, b, x, s, t) {
|
|
139
|
-
a = (((a + q) & 0xffffffff) + ((x + t) & 0xffffffff)) & 0xffffffff;
|
|
140
|
-
return (((a << s) | (a >>> (32 - s))) + b) & 0xffffffff;
|
|
141
|
-
}
|
|
142
|
-
function ff(a, b, c, d, x, s, t) {
|
|
143
|
-
return cmn((b & c) | (~b & d), a, b, x, s, t);
|
|
144
|
-
}
|
|
145
|
-
function gg(a, b, c, d, x, s, t) {
|
|
146
|
-
return cmn((b & d) | (c & ~d), a, b, x, s, t);
|
|
147
|
-
}
|
|
148
|
-
function hh(a, b, c, d, x, s, t) {
|
|
149
|
-
return cmn(b ^ c ^ d, a, b, x, s, t);
|
|
150
|
-
}
|
|
151
|
-
function ii(a, b, c, d, x, s, t) {
|
|
152
|
-
return cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
153
|
-
}
|
|
154
|
-
function isEmptyData(data) {
|
|
155
|
-
if (typeof data === "string") {
|
|
156
|
-
return data.length === 0;
|
|
157
|
-
}
|
|
158
|
-
return data.byteLength === 0;
|
|
159
|
-
}
|
|
160
|
-
function convertToBuffer(data) {
|
|
161
|
-
if (typeof data === "string") {
|
|
162
|
-
return fromUtf8(data);
|
|
163
|
-
}
|
|
164
|
-
if (ArrayBuffer.isView(data)) {
|
|
165
|
-
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
166
|
-
}
|
|
167
|
-
return new Uint8Array(data);
|
|
168
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Checksum, SourceData } from "@smithy/types";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare class Md5 implements Checksum {
|
|
6
|
-
private state;
|
|
7
|
-
private buffer;
|
|
8
|
-
private bufferLength;
|
|
9
|
-
private bytesHashed;
|
|
10
|
-
private finished;
|
|
11
|
-
constructor();
|
|
12
|
-
update(sourceData: SourceData): void;
|
|
13
|
-
digest(): Promise<Uint8Array>;
|
|
14
|
-
private hashBuffer;
|
|
15
|
-
reset(): void;
|
|
16
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { fromBase64 } from "@smithy/core/serde";
|
|
2
|
-
export const streamCollector = async (stream) => {
|
|
3
|
-
if ((typeof Blob === "function" && stream instanceof Blob) || stream.constructor?.name === "Blob") {
|
|
4
|
-
if (Blob.prototype.arrayBuffer !== undefined) {
|
|
5
|
-
return new Uint8Array(await stream.arrayBuffer());
|
|
6
|
-
}
|
|
7
|
-
return collectBlob(stream);
|
|
8
|
-
}
|
|
9
|
-
return collectStream(stream);
|
|
10
|
-
};
|
|
11
|
-
async function collectBlob(blob) {
|
|
12
|
-
const base64 = await readToBase64(blob);
|
|
13
|
-
const arrayBuffer = fromBase64(base64);
|
|
14
|
-
return new Uint8Array(arrayBuffer);
|
|
15
|
-
}
|
|
16
|
-
async function collectStream(stream) {
|
|
17
|
-
const chunks = [];
|
|
18
|
-
const reader = stream.getReader();
|
|
19
|
-
let isDone = false;
|
|
20
|
-
let length = 0;
|
|
21
|
-
while (!isDone) {
|
|
22
|
-
const { done, value } = await reader.read();
|
|
23
|
-
if (value) {
|
|
24
|
-
chunks.push(value);
|
|
25
|
-
length += value.length;
|
|
26
|
-
}
|
|
27
|
-
isDone = done;
|
|
28
|
-
}
|
|
29
|
-
const collected = new Uint8Array(length);
|
|
30
|
-
let offset = 0;
|
|
31
|
-
for (const chunk of chunks) {
|
|
32
|
-
collected.set(chunk, offset);
|
|
33
|
-
offset += chunk.length;
|
|
34
|
-
}
|
|
35
|
-
return collected;
|
|
36
|
-
}
|
|
37
|
-
function readToBase64(blob) {
|
|
38
|
-
return new Promise((resolve, reject) => {
|
|
39
|
-
const reader = new FileReader();
|
|
40
|
-
reader.onloadend = () => {
|
|
41
|
-
if (reader.readyState !== 2) {
|
|
42
|
-
return reject(new Error("Reader aborted too early"));
|
|
43
|
-
}
|
|
44
|
-
const result = (reader.result ?? "");
|
|
45
|
-
const commaIndex = result.indexOf(",");
|
|
46
|
-
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
47
|
-
resolve(result.substring(dataOffset));
|
|
48
|
-
};
|
|
49
|
-
reader.onabort = () => reject(new Error("Read aborted"));
|
|
50
|
-
reader.onerror = () => reject(reader.error);
|
|
51
|
-
reader.readAsDataURL(blob);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
File without changes
|