@psnext/slingcli 2.5.20260728-1 → 2.5.20260731-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/sling.js +163 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +856 -57
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.js → codec-v2/JsonShapeDeserializer2.js} +38 -18
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.js → codec-v2/JsonShapeSerializer2.js} +66 -60
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.d.ts → codec-v2/JsonShapeDeserializer2.d.ts} +4 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.d.ts → codec-v2/JsonShapeSerializer2.d.ts} +19 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +61 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +8 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +29 -56
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +6 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +12 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +18 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +13 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +17 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +30 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +21 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +21 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +49 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +49 -36
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +14 -32
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-websocket/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/compaction.md +14 -9
- package/node_modules/@earendil-works/pi-coding-agent/docs/containerization.md +16 -16
- package/node_modules/@earendil-works/pi-coding-agent/docs/custom-provider.md +12 -9
- package/node_modules/@earendil-works/pi-coding-agent/docs/docs.json +1 -5
- package/node_modules/@earendil-works/pi-coding-agent/docs/environment-variables.md +88 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +54 -36
- package/node_modules/@earendil-works/pi-coding-agent/docs/index.md +9 -6
- package/node_modules/@earendil-works/pi-coding-agent/docs/json.md +5 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/llama-cpp.md +7 -7
- package/node_modules/@earendil-works/pi-coding-agent/docs/mcp.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/models.md +13 -9
- package/node_modules/@earendil-works/pi-coding-agent/docs/packages.md +13 -13
- package/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/quickstart.md +22 -22
- package/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +106 -10
- package/node_modules/@earendil-works/pi-coding-agent/docs/sdk.md +1186 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/security.md +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/docs/session-format.md +18 -4
- package/node_modules/@earendil-works/pi-coding-agent/docs/sessions.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +8 -8
- package/node_modules/@earendil-works/pi-coding-agent/docs/shell-aliases.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/skills.md +6 -6
- package/node_modules/@earendil-works/pi-coding-agent/docs/terminal-setup.md +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/termux.md +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/themes.md +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/docs/tmux.md +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/docs/usage.md +12 -25
- package/node_modules/@earendil-works/pi-coding-agent/docs/windows.md +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1552 -330
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +0 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +8 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/{SinglePassCborShapeDeserializer.js → CborShapeDeserializer2.js} +23 -11
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/{SinglePassCborShapeSerializer.js → CborShapeSerializer2.js} +8 -17
- package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +0 -3
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +4 -4
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/{SinglePassCborShapeDeserializer.d.ts → CborShapeDeserializer2.d.ts} +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -12
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +4 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/{SinglePassCborShapeDeserializer.d.ts → CborShapeDeserializer2.d.ts} +1 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -12
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/brace-expansion/README.md +1 -2
- package/node_modules/brace-expansion/dist/commonjs/index.js +30 -4
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +30 -4
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +1 -1
- package/package.json +2 -2
- package/slingshot/index.js +203 -205
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -19
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
- package/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +0 -297
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/SinglePassCborShapeSerializer.d.ts +0 -22
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/SinglePassCborShapeSerializer.d.ts +0 -22
|
@@ -529,9 +529,6 @@ class NormalizedSchema {
|
|
|
529
529
|
}
|
|
530
530
|
struct[anno.it] = it;
|
|
531
531
|
}
|
|
532
|
-
structIteratorCbor() {
|
|
533
|
-
throw new Error("@smithy/core/schema - structIteratorCbor not loaded.");
|
|
534
|
-
}
|
|
535
532
|
}
|
|
536
533
|
function member(memberSchema, memberName) {
|
|
537
534
|
if (memberSchema instanceof NormalizedSchema) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SerdeContext } from "@smithy/core/protocols";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
|
|
3
|
+
import { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
|
|
4
4
|
export class CborCodec extends SerdeContext {
|
|
5
5
|
createSerializer() {
|
|
6
|
-
const serializer = new
|
|
6
|
+
const serializer = new CborShapeSerializer2();
|
|
7
7
|
serializer.setSerdeContext(this.serdeContext);
|
|
8
8
|
return serializer;
|
|
9
9
|
}
|
|
10
10
|
createDeserializer() {
|
|
11
|
-
const deserializer = new
|
|
11
|
+
const deserializer = new CborShapeDeserializer2();
|
|
12
12
|
deserializer.setSerdeContext(this.serdeContext);
|
|
13
13
|
return deserializer;
|
|
14
14
|
}
|
|
@@ -59,7 +59,7 @@ export function encode(_input) {
|
|
|
59
59
|
ensureSpace(64);
|
|
60
60
|
}
|
|
61
61
|
if (typeof input === "number") {
|
|
62
|
-
if (Number.isInteger(input)) {
|
|
62
|
+
if (Number.isInteger(input) && input >= -0x20000000000000 && input <= 0x1fffffffffffff) {
|
|
63
63
|
const nonNegative = input >= 0;
|
|
64
64
|
const major = nonNegative ? majorUint64 : majorNegativeInt64;
|
|
65
65
|
const value = nonNegative ? input : -input - 1;
|
|
@@ -76,6 +76,14 @@ export class CborShapeSerializer extends SerdeContext {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
else if (ns.isDocumentSchema()) {
|
|
79
|
+
if (Array.isArray(sourceObject)) {
|
|
80
|
+
const newArray = [];
|
|
81
|
+
let i = 0;
|
|
82
|
+
for (const item of sourceObject) {
|
|
83
|
+
newArray[i++] = this.serialize(ns.getValueSchema(), item);
|
|
84
|
+
}
|
|
85
|
+
return newArray;
|
|
86
|
+
}
|
|
79
87
|
for (const key in sourceObject) {
|
|
80
88
|
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
81
89
|
}
|
|
@@ -2,12 +2,8 @@ import { SerdeContext } from "@smithy/core/protocols";
|
|
|
2
2
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { NumericValue, _parseEpochTimestamp, nv } from "@smithy/core/serde";
|
|
4
4
|
import { extendedFloat16, extendedFloat32, extendedFloat64, extendedOneByte, majorList, majorMap, majorNegativeInt64, majorSpecial, majorTag, majorUint64, majorUnstructuredByteString, majorUtf8String, minorIndefinite, specialFalse, specialNull, specialTrue, specialUndefined, } from "../cbor-types";
|
|
5
|
-
import {
|
|
6
|
-
export class
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
activateCborStructIterator();
|
|
10
|
-
}
|
|
5
|
+
import { loadCborStructIterator } from "./CborShapeSerializer2";
|
|
6
|
+
export class CborShapeDeserializer2 extends SerdeContext {
|
|
11
7
|
read(schema, bytes) {
|
|
12
8
|
payload = bytes;
|
|
13
9
|
isBuffer = USE_BUFFER && bytes instanceof Buffer;
|
|
@@ -74,7 +70,8 @@ function readList(ns) {
|
|
|
74
70
|
function readMap(ns) {
|
|
75
71
|
const count = decodeCount();
|
|
76
72
|
if (ns.isStructSchema()) {
|
|
77
|
-
|
|
73
|
+
const startPos = pos;
|
|
74
|
+
return readStruct(ns, count, startPos);
|
|
78
75
|
}
|
|
79
76
|
const valueSchema = ns.isMapSchema() ? ns.getValueSchema() : ns;
|
|
80
77
|
const map = {};
|
|
@@ -84,15 +81,16 @@ function readMap(ns) {
|
|
|
84
81
|
}
|
|
85
82
|
return map;
|
|
86
83
|
}
|
|
87
|
-
function readStruct(ns, count) {
|
|
84
|
+
function readStruct(ns, count, startPos) {
|
|
88
85
|
const isUnion = ns.isUnionSchema();
|
|
89
|
-
const cache = ns
|
|
86
|
+
const cache = loadCborStructIterator(ns);
|
|
90
87
|
const { memberSchemas, encodedKeys, memberNames } = cache;
|
|
91
88
|
const z = encodedKeys.length;
|
|
92
89
|
const result = {};
|
|
93
90
|
let unknownKey;
|
|
94
91
|
let unknownValue;
|
|
95
92
|
let unknownCount = 0;
|
|
93
|
+
let hasType = false;
|
|
96
94
|
let hint = 0;
|
|
97
95
|
for (let i = 0; i < count; ++i) {
|
|
98
96
|
const matchIdx = matchStructKey(encodedKeys, z, hint);
|
|
@@ -109,7 +107,10 @@ function readStruct(ns, count) {
|
|
|
109
107
|
else {
|
|
110
108
|
const key = readUtf8String();
|
|
111
109
|
const val = readValue(NormalizedSchema.of(15));
|
|
112
|
-
if (key
|
|
110
|
+
if (key === "__type" && typeof val === "string") {
|
|
111
|
+
hasType = true;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
113
114
|
unknownKey = key;
|
|
114
115
|
unknownValue = val;
|
|
115
116
|
++unknownCount;
|
|
@@ -126,6 +127,17 @@ function readStruct(ns, count) {
|
|
|
126
127
|
result.$unknown = [unknownKey, unknownValue];
|
|
127
128
|
}
|
|
128
129
|
}
|
|
130
|
+
else if (hasType) {
|
|
131
|
+
pos = startPos;
|
|
132
|
+
const docSchema = NormalizedSchema.of(15);
|
|
133
|
+
for (let i = 0; i < count; ++i) {
|
|
134
|
+
const key = readUtf8String();
|
|
135
|
+
const val = readValue(docSchema);
|
|
136
|
+
if (!(key in result)) {
|
|
137
|
+
result[key] = val;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
129
141
|
return result;
|
|
130
142
|
}
|
|
131
143
|
function readTag(ns) {
|
|
@@ -245,7 +257,7 @@ function readListIndefinite(ns) {
|
|
|
245
257
|
function readMapIndefinite(ns) {
|
|
246
258
|
pos += 1;
|
|
247
259
|
if (ns.isStructSchema()) {
|
|
248
|
-
const cache = ns
|
|
260
|
+
const cache = loadCborStructIterator(ns);
|
|
249
261
|
const { memberSchemas, encodedKeys, memberNames } = cache;
|
|
250
262
|
const z = encodedKeys.length;
|
|
251
263
|
const isUnion = ns.isUnionSchema();
|
|
@@ -2,11 +2,7 @@ import { SerdeContext } from "@smithy/core/protocols";
|
|
|
2
2
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { NumericValue, fromBase64, generateIdempotencyToken } from "@smithy/core/serde";
|
|
4
4
|
import { extendedFloat16, extendedFloat32, extendedFloat64, majorList, majorMap, majorNegativeInt64, majorSpecial, majorTag, majorUint64, majorUnstructuredByteString, majorUtf8String, specialFalse, specialNull, specialTrue, tagSymbol, } from "../cbor-types";
|
|
5
|
-
export class
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
activateCborStructIterator();
|
|
9
|
-
}
|
|
5
|
+
export class CborShapeSerializer2 extends SerdeContext {
|
|
10
6
|
write(schema, value) {
|
|
11
7
|
cursor = 0;
|
|
12
8
|
const ns = NormalizedSchema.of(schema);
|
|
@@ -24,13 +20,8 @@ export function advanceSinglePassEncodingEpoch() {
|
|
|
24
20
|
encodeCacheEpoch = (encodeCacheEpoch + 1) & 0xffff;
|
|
25
21
|
encodeCacheSaturated = false;
|
|
26
22
|
}
|
|
27
|
-
export function activateCborStructIterator() {
|
|
28
|
-
NormalizedSchema.prototype.structIteratorCbor = function () {
|
|
29
|
-
return loadCborStructIterator(this);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
23
|
const CBOR_STRUCT_CACHE = Symbol.for("@smithy/cbor-struct-cache");
|
|
33
|
-
function loadCborStructIterator(ns) {
|
|
24
|
+
export function loadCborStructIterator(ns) {
|
|
34
25
|
const schema = ns.getSchema();
|
|
35
26
|
const existing = schema[CBOR_STRUCT_CACHE];
|
|
36
27
|
if (existing) {
|
|
@@ -104,15 +95,15 @@ function writeValue(ns, value, container, serdeContext) {
|
|
|
104
95
|
writeString(generateIdempotencyToken());
|
|
105
96
|
return;
|
|
106
97
|
}
|
|
107
|
-
if (value === undefined) {
|
|
108
|
-
ensure(1);
|
|
109
|
-
buf[cursor++] = (majorSpecial << 5) | specialNull;
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
98
|
ensure(1);
|
|
113
99
|
buf[cursor++] = (majorSpecial << 5) | specialNull;
|
|
114
100
|
return;
|
|
115
101
|
}
|
|
102
|
+
if (ns.isUnitSchema()) {
|
|
103
|
+
ensure(1);
|
|
104
|
+
encodeHeader(majorMap, 0);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
116
107
|
const isObject = typeof value === "object";
|
|
117
108
|
if (isObject) {
|
|
118
109
|
if (ns.isBlobSchema()) {
|
|
@@ -231,7 +222,7 @@ function writeStruct(ns, value, serdeContext) {
|
|
|
231
222
|
}
|
|
232
223
|
return;
|
|
233
224
|
}
|
|
234
|
-
const cache = ns
|
|
225
|
+
const cache = loadCborStructIterator(ns);
|
|
235
226
|
const { memberNames, memberSchemas, encodedKeys } = cache;
|
|
236
227
|
const z = memberNames.length;
|
|
237
228
|
let headerSize;
|
|
@@ -5,3 +5,5 @@ export { SmithyRpcV2CborProtocol } from "./SmithyRpcV2CborProtocol";
|
|
|
5
5
|
export { CborCodec } from "./CborCodec";
|
|
6
6
|
export { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
|
|
7
7
|
export { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
|
|
8
|
+
export { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
|
|
9
|
+
export { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
|
|
@@ -288,9 +288,6 @@ export class NormalizedSchema {
|
|
|
288
288
|
}
|
|
289
289
|
struct[anno.it] = it;
|
|
290
290
|
}
|
|
291
|
-
structIteratorCbor() {
|
|
292
|
-
throw new Error("@smithy/core/schema - structIteratorCbor not loaded.");
|
|
293
|
-
}
|
|
294
291
|
}
|
|
295
292
|
function member(memberSchema, memberName) {
|
|
296
293
|
if (memberSchema instanceof NormalizedSchema) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SerdeContext } from "@smithy/core/protocols";
|
|
2
2
|
import type { Codec } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
|
|
4
|
+
import { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
8
|
export declare class CborCodec extends SerdeContext implements Codec<Uint8Array, Uint8Array> {
|
|
9
|
-
createSerializer():
|
|
10
|
-
createDeserializer():
|
|
9
|
+
createSerializer(): CborShapeSerializer2;
|
|
10
|
+
createDeserializer(): CborShapeDeserializer2;
|
|
11
11
|
}
|
|
@@ -13,8 +13,8 @@ export declare class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
13
13
|
*/
|
|
14
14
|
protected compositeErrorRegistry: TypeRegistry;
|
|
15
15
|
private codec;
|
|
16
|
-
protected serializer: import(".").
|
|
17
|
-
protected deserializer: import(".").
|
|
16
|
+
protected serializer: import(".").CborShapeSerializer2;
|
|
17
|
+
protected deserializer: import(".").CborShapeDeserializer2;
|
|
18
18
|
constructor({ defaultNamespace, errorTypeRegistries, }: {
|
|
19
19
|
defaultNamespace: string;
|
|
20
20
|
errorTypeRegistries?: TypeRegistry[];
|
|
@@ -6,8 +6,7 @@ import type { Schema, ShapeDeserializer } from "@smithy/types";
|
|
|
6
6
|
*
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
10
|
-
constructor();
|
|
9
|
+
export declare class CborShapeDeserializer2 extends SerdeContext implements ShapeDeserializer<Uint8Array> {
|
|
11
10
|
read(schema: Schema, bytes: Uint8Array): any;
|
|
12
11
|
/**
|
|
13
12
|
* Deserialize a pre-decoded JS object per schema.
|
package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SerdeContext } from "@smithy/core/protocols";
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
+
import type { Schema, ShapeSerializer } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* Single-pass CBOR serializer that walks the Smithy schema and writes CBOR bytes
|
|
6
|
+
* directly to a module-level buffer in one traversal. Eliminates the intermediate
|
|
7
|
+
* JS object tree that the multi-pass CborShapeSerializer builds.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class CborShapeSerializer2 extends SerdeContext implements ShapeSerializer<Uint8Array> {
|
|
12
|
+
write(schema: Schema, value: unknown): void;
|
|
13
|
+
flush(): Uint8Array;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Advance the encoding epoch. Call between serialization batches
|
|
17
|
+
* to allow stale cache entries to be evicted.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare function advanceSinglePassEncodingEpoch(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Cached CBOR struct iteration data: parallel arrays for direct indexed access.
|
|
24
|
+
*/
|
|
25
|
+
export interface CborStructCache {
|
|
26
|
+
memberNames: string[];
|
|
27
|
+
memberSchemas: NormalizedSchema[];
|
|
28
|
+
encodedKeys: Uint8Array[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Builds or retrieves the CBOR-specific struct cache for a given NormalizedSchema.
|
|
32
|
+
* On first call, iterates structIterator() to populate NormalizedSchema's own cache,
|
|
33
|
+
* then builds pre-encoded CBOR key bytes for each member.
|
|
34
|
+
*/
|
|
35
|
+
export declare function loadCborStructIterator(ns: NormalizedSchema): CborStructCache;
|
|
@@ -5,3 +5,5 @@ export { SmithyRpcV2CborProtocol } from "./SmithyRpcV2CborProtocol";
|
|
|
5
5
|
export { CborCodec } from "./CborCodec";
|
|
6
6
|
export { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
|
|
7
7
|
export { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
|
|
8
|
+
export { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
|
|
9
|
+
export { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
|
package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts
CHANGED
|
@@ -136,18 +136,6 @@ export declare class NormalizedSchema implements INormalizedSchema {
|
|
|
136
136
|
* This avoids the overhead of calling Object.entries(ns.getMemberSchemas()).
|
|
137
137
|
*/
|
|
138
138
|
structIterator(): Generator<[string, NormalizedSchema], undefined, undefined>;
|
|
139
|
-
/**
|
|
140
|
-
* CBOR-optimized struct iteration. Returns a cache of parallel arrays
|
|
141
|
-
* (memberNames, memberSchemas, encodedKeys) for direct indexed iteration.
|
|
142
|
-
* Implementation is patched by the cbor submodule on load.
|
|
143
|
-
*
|
|
144
|
-
* @internal
|
|
145
|
-
*/
|
|
146
|
-
structIteratorCbor(): {
|
|
147
|
-
memberNames: string[];
|
|
148
|
-
memberSchemas: NormalizedSchema[];
|
|
149
|
-
encodedKeys: Uint8Array[];
|
|
150
|
-
};
|
|
151
139
|
}
|
|
152
140
|
/**
|
|
153
141
|
* @internal
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SerdeContext } from "@smithy/core/protocols";
|
|
2
2
|
import { Codec } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
|
|
4
|
+
import { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
8
|
export declare class CborCodec extends SerdeContext implements Codec<Uint8Array, Uint8Array> {
|
|
9
|
-
createSerializer():
|
|
10
|
-
createDeserializer():
|
|
9
|
+
createSerializer(): CborShapeSerializer2;
|
|
10
|
+
createDeserializer(): CborShapeDeserializer2;
|
|
11
11
|
}
|
package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export declare class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
13
13
|
*/
|
|
14
14
|
protected compositeErrorRegistry: TypeRegistry;
|
|
15
15
|
private codec;
|
|
16
|
-
protected serializer: import(".").
|
|
17
|
-
protected deserializer: import(".").
|
|
16
|
+
protected serializer: import(".").CborShapeSerializer2;
|
|
17
|
+
protected deserializer: import(".").CborShapeDeserializer2;
|
|
18
18
|
constructor({ defaultNamespace, errorTypeRegistries, }: {
|
|
19
19
|
defaultNamespace: string;
|
|
20
20
|
errorTypeRegistries?: TypeRegistry[];
|
|
@@ -6,8 +6,7 @@ import { Schema, ShapeDeserializer } from "@smithy/types";
|
|
|
6
6
|
*
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export declare class
|
|
10
|
-
constructor();
|
|
9
|
+
export declare class CborShapeDeserializer2 extends SerdeContext implements ShapeDeserializer<Uint8Array> {
|
|
11
10
|
read(schema: Schema, bytes: Uint8Array): any;
|
|
12
11
|
/**
|
|
13
12
|
* Deserialize a pre-decoded JS object per schema.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SerdeContext } from "@smithy/core/protocols";
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
+
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* Single-pass CBOR serializer that walks the Smithy schema and writes CBOR bytes
|
|
6
|
+
* directly to a module-level buffer in one traversal. Eliminates the intermediate
|
|
7
|
+
* JS object tree that the multi-pass CborShapeSerializer builds.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class CborShapeSerializer2 extends SerdeContext implements ShapeSerializer<Uint8Array> {
|
|
12
|
+
write(schema: Schema, value: unknown): void;
|
|
13
|
+
flush(): Uint8Array;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Advance the encoding epoch. Call between serialization batches
|
|
17
|
+
* to allow stale cache entries to be evicted.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare function advanceSinglePassEncodingEpoch(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Cached CBOR struct iteration data: parallel arrays for direct indexed access.
|
|
24
|
+
*/
|
|
25
|
+
export interface CborStructCache {
|
|
26
|
+
memberNames: string[];
|
|
27
|
+
memberSchemas: NormalizedSchema[];
|
|
28
|
+
encodedKeys: Uint8Array[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Builds or retrieves the CBOR-specific struct cache for a given NormalizedSchema.
|
|
32
|
+
* On first call, iterates structIterator() to populate NormalizedSchema's own cache,
|
|
33
|
+
* then builds pre-encoded CBOR key bytes for each member.
|
|
34
|
+
*/
|
|
35
|
+
export declare function loadCborStructIterator(ns: NormalizedSchema): CborStructCache;
|
|
@@ -5,3 +5,5 @@ export { SmithyRpcV2CborProtocol } from "./SmithyRpcV2CborProtocol";
|
|
|
5
5
|
export { CborCodec } from "./CborCodec";
|
|
6
6
|
export { CborShapeSerializer } from "./codec-v1/CborShapeSerializer";
|
|
7
7
|
export { CborShapeDeserializer } from "./codec-v1/CborShapeDeserializer";
|
|
8
|
+
export { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
|
|
9
|
+
export { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
|
package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts
CHANGED
|
@@ -139,18 +139,6 @@ export declare class NormalizedSchema implements INormalizedSchema {
|
|
|
139
139
|
string,
|
|
140
140
|
NormalizedSchema
|
|
141
141
|
], undefined, undefined>;
|
|
142
|
-
/**
|
|
143
|
-
* CBOR-optimized struct iteration. Returns a cache of parallel arrays
|
|
144
|
-
* (memberNames, memberSchemas, encodedKeys) for direct indexed iteration.
|
|
145
|
-
* Implementation is patched by the cbor submodule on load.
|
|
146
|
-
*
|
|
147
|
-
* @internal
|
|
148
|
-
*/
|
|
149
|
-
structIteratorCbor(): {
|
|
150
|
-
memberNames: string[];
|
|
151
|
-
memberSchemas: NormalizedSchema[];
|
|
152
|
-
encodedKeys: Uint8Array[];
|
|
153
|
-
};
|
|
154
142
|
}
|
|
155
143
|
/**
|
|
156
144
|
* @internal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.16",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test:watch": "yarn g:vitest watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@smithy/core": "^3.31.
|
|
48
|
+
"@smithy/core": "^3.31.1",
|
|
49
49
|
"@smithy/types": "^4.16.1",
|
|
50
50
|
"tslib": "^2.6.2"
|
|
51
51
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.13",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@smithy/core": "^3.31.
|
|
47
|
+
"@smithy/core": "^3.31.1",
|
|
48
48
|
"@smithy/types": "^4.16.1",
|
|
49
49
|
"tslib": "^2.6.2"
|
|
50
50
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/signature-v4",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.12",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test:watch": "yarn g:vitest watch"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@smithy/core": "^3.31.
|
|
45
|
+
"@smithy/core": "^3.31.1",
|
|
46
46
|
"@smithy/types": "^4.16.1",
|
|
47
47
|
"tslib": "^2.6.2"
|
|
48
48
|
},
|
|
@@ -71,9 +71,8 @@ result count stays under `max` while each result grows very long.
|
|
|
71
71
|
|
|
72
72
|
```js
|
|
73
73
|
const expansions = expand('{a,b}'.repeat(1500), {
|
|
74
|
-
maxLength:
|
|
74
|
+
maxLength: 10_000,
|
|
75
75
|
})
|
|
76
|
-
// the combined length of expansions will not exceed 100 characters
|
|
77
76
|
```
|
|
78
77
|
|
|
79
78
|
Valid expansions are:
|
|
@@ -130,7 +130,7 @@ function combine(acc, pre, values, max, maxLength, dropEmpties) {
|
|
|
130
130
|
}
|
|
131
131
|
// The expansion values of a single numeric (`1..5`) or alphabetic (`a..e..2`)
|
|
132
132
|
// sequence body.
|
|
133
|
-
function expandSequence(body, isAlphaSequence, max) {
|
|
133
|
+
function expandSequence(body, isAlphaSequence, max, maxLength) {
|
|
134
134
|
const n = body.split(/\.\./);
|
|
135
135
|
const N = [];
|
|
136
136
|
// A sequence body always splits into two or three parts, but the compiler
|
|
@@ -153,6 +153,7 @@ function expandSequence(body, isAlphaSequence, max) {
|
|
|
153
153
|
test = gte;
|
|
154
154
|
}
|
|
155
155
|
const pad = n.some(isPadded);
|
|
156
|
+
let length = 0;
|
|
156
157
|
for (let i = x; test(i, y) && N.length < max; i += incr) {
|
|
157
158
|
let c;
|
|
158
159
|
if (isAlphaSequence) {
|
|
@@ -176,7 +177,10 @@ function expandSequence(body, isAlphaSequence, max) {
|
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
}
|
|
180
|
+
if (length + c.length > maxLength)
|
|
181
|
+
break;
|
|
179
182
|
N.push(c);
|
|
183
|
+
length += c.length;
|
|
180
184
|
}
|
|
181
185
|
return N;
|
|
182
186
|
}
|
|
@@ -230,7 +234,7 @@ function expand_(str, max, maxLength, isTop) {
|
|
|
230
234
|
}
|
|
231
235
|
let values;
|
|
232
236
|
if (isSequence) {
|
|
233
|
-
values = expandSequence(m.body, isAlphaSequence, max);
|
|
237
|
+
values = expandSequence(m.body, isAlphaSequence, max, maxLength);
|
|
234
238
|
}
|
|
235
239
|
else {
|
|
236
240
|
let n = parseCommaParts(m.body);
|
|
@@ -248,9 +252,31 @@ function expand_(str, max, maxLength, isTop) {
|
|
|
248
252
|
}
|
|
249
253
|
/* c8 ignore stop */
|
|
250
254
|
}
|
|
255
|
+
// Values that `combine` is going to drop as empty produce no result, so
|
|
256
|
+
// they must not count against `max` - otherwise `{a,,b}` with `max: 2`
|
|
257
|
+
// would stop at `['a', '']` and yield one result instead of two. Skipping
|
|
258
|
+
// them outright keeps `values` bounded while leaving `max` a bound on
|
|
259
|
+
// *kept* results.
|
|
260
|
+
let dropsEmpties = dropEmpties && !m.post.length && !pre;
|
|
261
|
+
for (let d = 0; dropsEmpties && d < acc.length; d++) {
|
|
262
|
+
if (acc[d]) {
|
|
263
|
+
dropsEmpties = false;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
251
266
|
values = [];
|
|
252
|
-
|
|
253
|
-
|
|
267
|
+
let valuesLength = 0;
|
|
268
|
+
outer: for (let j = 0; j < n.length; j++) {
|
|
269
|
+
const expanded = expand_(n[j], max, maxLength, false);
|
|
270
|
+
for (let k = 0; k < expanded.length; k++) {
|
|
271
|
+
const v = expanded[k];
|
|
272
|
+
if (dropsEmpties && !v)
|
|
273
|
+
continue;
|
|
274
|
+
if (values.length >= max || valuesLength + v.length > maxLength) {
|
|
275
|
+
break outer;
|
|
276
|
+
}
|
|
277
|
+
values.push(v);
|
|
278
|
+
valuesLength += v.length;
|
|
279
|
+
}
|
|
254
280
|
}
|
|
255
281
|
}
|
|
256
282
|
acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
|