@psnext/slingcli 2.5.20260710-1 → 2.5.20260718-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +1 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +8 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +1 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +2 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +1 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +3 -12
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +4 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +3 -12
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +2 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +5 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +3 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +1 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +1 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +3 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +1 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +1 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +4 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +8 -17
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +6 -19
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +3 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +3 -12
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +65 -62
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +32 -32
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.browser.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/requestHelpers.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/retry-wrapper.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.browser.d.ts +1 -4
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.d.ts +1 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +47 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +36 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +76 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +5 -7
- package/node_modules/@aws-sdk/credential-provider-http/package.json +34 -34
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +4 -8
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +2 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveLoginCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +2 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveWebIdentityCredentials.d.ts +2 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +40 -40
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js +4 -4
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/LoginCredentialsFetcher.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/fromLoginCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/index.d.ts +1 -6
- package/node_modules/@aws-sdk/credential-provider-login/dist-types/ts3.4/types.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-login/package.json +35 -35
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +4 -11
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/remoteProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/runtime/memoize-chain.d.ts +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +39 -39
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +2 -4
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/getValidatedProcessCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +32 -32
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +2 -4
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +2 -8
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/validateSsoProfile.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +1 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +2 -6
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +2 -9
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +2 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +1 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +1 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +35 -35
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +34 -34
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +3 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +5 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/index.d.ts +1 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +40 -40
- package/node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js +1 -2
- package/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventStreamPayloadHandler.js +1 -2
- package/node_modules/@aws-sdk/eventstream-handler-node/dist-types/ts3.4/EventSigningTransformStream.d.ts +1 -5
- package/node_modules/@aws-sdk/eventstream-handler-node/dist-types/ts3.4/EventStreamPayloadHandler.d.ts +2 -4
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +29 -29
- package/node_modules/@aws-sdk/middleware-eventstream/dist-types/ts3.4/eventStreamConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-eventstream/dist-types/ts3.4/eventStreamHandlingMiddleware.d.ts +2 -5
- package/node_modules/@aws-sdk/middleware-eventstream/dist-types/ts3.4/getEventStreamPlugin.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-eventstream/dist-types/ts3.4/index.d.ts +1 -4
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +32 -32
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/WebSocketFetchHandler.d.ts +5 -12
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/WebsocketSignatureV4.d.ts +5 -19
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/getWebSocketPlugin.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/index.d.ts +1 -4
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/middlewares/websocketEndpointMiddleware.d.ts +2 -6
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/middlewares/websocketInjectSessionIdMiddleware.d.ts +1 -4
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/resolveWebSocketConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/ws-eventstream/EventSigningTransformStream.d.ts +2 -5
- package/node_modules/@aws-sdk/middleware-websocket/dist-types/ts3.4/ws-eventstream/EventStreamPayloadHandler.d.ts +2 -4
- package/node_modules/@aws-sdk/middleware-websocket/package.json +29 -29
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -9
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +121 -76
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +6 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +12 -8
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +80 -70
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +8 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +41 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +7 -15
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +8 -22
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +7 -13
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +4 -6
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/endpointResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -28
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +13 -30
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +12 -26
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +13 -30
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +6 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +1 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +20 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +25 -27
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +13 -18
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +9 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +13 -30
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +12 -26
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +13 -30
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +5 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSO.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +13 -20
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/auth/httpAuthSchemeProvider.d.ts +10 -13
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +7 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +5 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +12 -27
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +11 -23
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +12 -27
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +5 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeExtensions.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/schemas/schemas_0.d.ts +1 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +4 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +16 -29
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +7 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/endpointResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -34
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +12 -27
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +11 -23
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +12 -27
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +5 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeExtensions.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +1 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STS.d.ts +7 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STSClient.d.ts +16 -30
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +11 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +8 -18
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -6
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +5 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/endpointResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -24
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +14 -34
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +14 -33
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +14 -34
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +6 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeExtensions.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +1 -5
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/http2/ClientHttp2SessionRef.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +47 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +36 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +76 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-https.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +5 -7
- package/node_modules/@aws-sdk/nested-clients/package.json +53 -50
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts +5 -13
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4SignWithCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/index.d.ts +2 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/signature-v4-crt-container.d.ts +1 -1
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +29 -29
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +1 -7
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +1 -6
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +2 -5
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +1 -5
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +7 -39
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +1 -9
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +1 -6
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +1 -6
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +1 -4
- package/node_modules/@aws-sdk/types/package.json +30 -30
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/XmlNode.d.ts +2 -12
- package/node_modules/@aws-sdk/xml-builder/package.json +34 -34
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +39 -2
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +2 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +32 -22
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +3 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +73 -37
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js +2 -0
- package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +102 -50
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +19 -11
- package/node_modules/@earendil-works/pi-ai/dist/api/lazy.js +9 -10
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +9 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +56 -6
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +58 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +29 -9
- package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +309 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +4 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js +4 -3
- package/node_modules/@earendil-works/pi-ai/dist/{utils → auth}/oauth/anthropic.js +51 -116
- package/node_modules/@earendil-works/pi-ai/dist/{utils → auth}/oauth/github-copilot.js +18 -77
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +49 -0
- package/node_modules/@earendil-works/pi-ai/dist/{utils → auth}/oauth/openai-codex.js +61 -155
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +318 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js +189 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +9 -7
- package/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +17 -0
- package/node_modules/@earendil-works/pi-ai/dist/cli.js +58 -76
- package/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/compat.js +25 -8
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +176 -176
- package/node_modules/@earendil-works/pi-ai/dist/images-models.js +5 -4
- package/node_modules/@earendil-works/pi-ai/dist/index.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/models-store.js +14 -0
- package/node_modules/@earendil-works/pi-ai/dist/models.js +229 -35
- package/node_modules/@earendil-works/pi-ai/dist/oauth.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +51 -6
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +2 -1826
- package/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +2 -57
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +2 -250
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +2 -812
- package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +2 -56
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js +4 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +2 -681
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js +22 -26
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js +21 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +2 -236
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +2 -40
- package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +2 -292
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js +11 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +2 -480
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js +56 -5
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +2 -179
- package/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +2 -285
- package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +2 -122
- package/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +2 -884
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +2 -56
- package/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +2 -53
- package/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +2 -53
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +2 -512
- package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +2 -166
- package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +2 -166
- package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +2 -382
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +2 -74
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +2 -812
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +2 -237
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +2 -921
- package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +2 -4883
- package/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js +59 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +54 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +2 -377
- package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +2 -3288
- package/node_modules/@earendil-works/pi-ai/dist/providers/xai.js +15 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +2 -146
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +2 -92
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +2 -92
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +2 -92
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +2 -110
- package/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +2 -111
- package/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +2 -111
- package/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +36 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +35 -14
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +9 -21
- package/node_modules/@earendil-works/pi-ai/package.json +7 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/bun/cli.js +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +5 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/list-models.js +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-runtime.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.js +23 -9
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +156 -56
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +46 -259
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/cache-stats.js +101 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +51 -73
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +22 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +64 -24
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/wrapper.js +22 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.js +10 -9
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-config.js +243 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +59 -705
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +19 -18
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-runtime.js +438 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/models-store.js +45 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +75 -28
- 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/prompt-templates.js +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-composer.js +375 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/radius.js +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/remote-catalog-provider.js +83 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/resource-loader.js +7 -7
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/runtime-credentials.js +36 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +15 -19
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +13 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +10 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/slash-commands.js +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/system-prompt.js +1 -11
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/extensions/index.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/client.js +300 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/huggingface.js +141 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/index.js +208 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/provider.js +102 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/extensions/llama/ui.js +416 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +17 -16
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +22 -10
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js +280 -25
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-editor.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +5 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +17 -8
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +72 -41
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +30 -32
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +12 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +49 -12
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +437 -240
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/dark.json +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/light.json +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme-schema.json +6 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +10 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +6 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +131 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard-image.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard.js +13 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/compaction.md +396 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/containerization.md +111 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/custom-provider.md +763 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/docs.json +143 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +2943 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/images/doom-extension.png +0 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/images/exy.png +0 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/images/interactive-mode.png +0 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/images/tree-view.png +0 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/index.md +79 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/json.md +82 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/keybindings.md +198 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/llama-cpp.md +99 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/models.md +540 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/packages.md +228 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +96 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +297 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/quickstart.md +165 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +1480 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/security.md +59 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/session-format.md +422 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/sessions.md +145 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +319 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/shell-aliases.md +13 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/skills.md +231 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/terminal-setup.md +142 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/termux.md +127 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/themes.md +297 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/tmux.md +63 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +942 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/usage.md +311 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/windows.md +17 -0
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +12 -12
- package/node_modules/@earendil-works/pi-coding-agent/package.json +4 -4
- package/node_modules/@earendil-works/pi-orchestrator/dist/config.js +1 -1
- package/node_modules/@earendil-works/pi-orchestrator/dist/radius.js +6 -11
- package/node_modules/@earendil-works/pi-orchestrator/dist/serve.js +1 -1
- package/node_modules/@earendil-works/pi-orchestrator/package.json +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +22 -1
- package/node_modules/@earendil-works/pi-tui/dist/keys.js +6 -5
- package/node_modules/@earendil-works/pi-tui/dist/tui.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +23 -5
- package/node_modules/@earendil-works/pi-tui/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +20 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +20 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +16 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +20 -20
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +11 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +9 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +33 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/middleware-http-auth-scheme/index.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/middleware-http-auth-scheme/resolveAuthOptions.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/middleware-http-signing/getHttpSigningMiddleware.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/middleware-http-signing/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/pagination/createPaginator.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/index.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/util-identity-and-auth/index.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/legacy-root-exports/util-identity-and-auth/memoizeIdentityProvider.d.ts +31 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/normalizeProvider.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/setFeature.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +33 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/byte-printer.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-decode.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-encode.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +65 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor.d.ts +25 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +31 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/chunked-blob-reader/chunked-blob-reader.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/chunked-blob-reader/chunked-blob-reader.native.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/crc32/Crc32Js.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/crc32/Crc32Node.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/hash-blob-browser/blobHasher.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/hash-stream-node/HashCalculator.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/hash-stream-node/fileStreamHasher.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/hash-stream-node/readableStreamHasher.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/index.browser.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/index.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/index.native.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/md5/Md5Js.d.ts +19 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/md5/Md5Node.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/sha256/Sha256Js.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/sha256/Sha256Node.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/checksum/sha256/Sha256WebCrypto.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/index.d.ts +27 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/invalid-dependency/invalidFunction.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/invalid-dependency/invalidProvider.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/middleware-stack/MiddlewareStack.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/middleware-stack/types.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/NoOpLogger.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/client-command-builder.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/client.d.ts +84 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/command.d.ts +118 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/constants.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/create-aggregated-client.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/default-error-handler.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/defaults-mode.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/emitWarningIfUnsupportedVersion.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/exceptions.d.ts +42 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/checksum.d.ts +25 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/retry.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/get-array-if-single-item.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/get-value-from-text-node.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/is-serializable-header-value.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/object-mapping.d.ts +179 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/schemaLogFilter.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/ser-utils.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/serde-json.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/util-waiter/circularReplacer.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/util-waiter/createWaiter.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/util-waiter/poller.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/util-waiter/utils/sleep.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/util-waiter/utils/validate.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/util-waiter/waiter.d.ts +49 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/endpointsConfig/resolveCustomEndpointsConfig.d.ts +37 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/endpointsConfig/resolveEndpointsConfig.d.ts +57 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/endpointsConfig/utils/getEndpointFromRegion.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/config.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/getRealRegion.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/isFipsRegion.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/resolveRegionConfig.d.ts +34 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/EndpointVariant.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/EndpointVariantTag.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/PartitionHash.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/RegionHash.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/getHostnameFromVariants.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/getRegionInfo.d.ts +19 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/getResolvedHostname.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/getResolvedPartition.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionInfo/getResolvedSigningRegion.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/defaults-mode/constants.d.ts +36 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/defaults-mode/defaultsModeConfig.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/defaults-mode/resolveDefaultsModeConfig.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/defaults-mode/resolveDefaultsModeConfig.native.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/index.browser.d.ts +55 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/index.d.ts +36 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/index.native.d.ts +55 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/node-config-provider/configLoader.d.ts +31 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/node-config-provider/fromEnv.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/node-config-provider/fromSharedConfigFiles.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/node-config-provider/fromStatic.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/node-config-provider/getSelectorName.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/property-provider/CredentialsProviderError.d.ts +29 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/property-provider/ProviderError.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/property-provider/TokenProviderError.d.ts +29 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/property-provider/chain.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/property-provider/fromValue.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/property-provider/memoize.d.ts +40 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/constants.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/externalDataInterceptor.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/getConfigFilepath.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/getCredentialsFilepath.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/getHomeDir.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/getProfileName.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.d.ts +53 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/getSsoSessionData.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.d.ts +33 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/loadSsoSessionData.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/mergeConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/parseIni.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/parseKnownFiles.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/readFile.d.ts +21 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/shared-ini-file-loader/types.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/util-config-provider/booleanSelector.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/util-config-provider/numberSelector.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/util-config-provider/types.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.browser.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/createConfigValueProvider.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/endpointMiddleware.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/getEndpointPlugin.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +110 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/resolveEndpointRequiredConfig.d.ts +32 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/service-customizations/index.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/service-customizations/s3.d.ts +26 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/bdd/BinaryDecisionDiagram.d.ts +41 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/cache/EndpointCache.d.ts +34 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/debug/debugId.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/debug/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/debug/toDebugString.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/decideEndpoint.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/booleanEquals.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/coalesce.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/getAttr.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/getAttrPathList.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/index.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/isIpAddress.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/isSet.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/ite.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/not.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/parseURL.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/split.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/stringEquals.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/substring.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/lib/uriEncode.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/resolveEndpoint.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/types/EndpointError.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/types/EndpointFunctions.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/types/EndpointRuleObject.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/types/ErrorRuleObject.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/types/RuleSetObject.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/types/TreeRuleObject.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/types/index.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/types/shared.d.ts +25 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/callFunction.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/customEndpointFunctions.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/endpointFunctions.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateEndpointRule.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateErrorRule.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateTemplate.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateTreeRule.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointHeaders.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperty.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointUrl.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +60 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/EventStreamCodec.d.ts +30 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/HeaderMarshaller.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/Int64.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/Message.d.ts +26 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/MessageDecoderStream.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/MessageEncoderStream.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/SmithyMessageEncoderStream.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-codec/splitMessage.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-serde/EventStreamMarshaller.browser.d.ts +46 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-serde/EventStreamMarshaller.d.ts +31 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-serde/utils.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-serde-config-resolver/EventStreamSerdeConfig.d.ts +27 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-serde-universal/EventStreamMarshaller.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-serde-universal/getChunkedStream.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/index.browser.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/index.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +31 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +95 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/collect-stream-body.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/extended-encode-uri-component.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +27 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/middleware-content-length/contentLengthMiddleware.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/Field.d.ts +49 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/Fields.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +33 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/httpHandler.d.ts +31 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/types.d.ts +21 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/querystring-builder/buildQueryString.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/requestBuilder.d.ts +52 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/resolve-path.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +21 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/util-uri-escape/escape-uri-path.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/util-uri-escape/escape-uri.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/index.browser.d.ts +26 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/index.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/configurations.d.ts +71 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/isStreamingPayload/isStreamingPayload.browser.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/isStreamingPayload/isStreamingPayload.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/longPollMiddleware.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/omitRetryHeadersMiddleware.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/parseRetryAfterHeader.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/retry-pre-sra-deprecated/AdaptiveRetryStrategy.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.d.ts +33 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/retry-pre-sra-deprecated/defaultRetryQuota.d.ts +26 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/retry-pre-sra-deprecated/delayDecider.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/retry-pre-sra-deprecated/retryDecider.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/retry-pre-sra-deprecated/types.d.ts +65 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/retryMiddleware.d.ts +19 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/middleware-retry/util.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +30 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +30 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/AdaptiveRetryStrategy.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/ConfiguredRetryStrategy.d.ts +31 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/DefaultRateLimiter.d.ts +119 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/DefaultRetryBackoffStrategy.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/DefaultRetryToken.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/StandardRetryStrategy.d.ts +56 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/config.d.ts +20 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/constants.d.ts +60 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/types.d.ts +19 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +71 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/deref.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schema-middleware-types.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +37 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +146 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +23 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/concatBytes.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/date-utils.d.ts +61 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/hash-node/hash-node.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +41 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +39 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +39 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/is-array-buffer/is-array-buffer.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/lazy-json.d.ts +43 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/middleware-serde/deserializerMiddleware.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/middleware-serde/serdePlugin.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/middleware-serde/serializerMiddleware.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +250 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/quote-header.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +38 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/split-every.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/split-header.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-base64/constants-for-browser.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-base64/fromBase64.browser.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-base64/fromBase64.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-base64/toBase64.browser.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-base64/toBase64.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-body-length/calculateBodyLength.browser.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-body-length/calculateBodyLength.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-buffer-from/buffer-from.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-hex-encoding/hex-encoding.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/ByteArrayCollector.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/blob/Uint8ArrayBlobAdapter.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/checksum/ChecksumStream.browser.d.ts +37 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +82 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/checksum/createChecksumStream.browser.d.ts +14 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/checksum/createChecksumStream.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/createBufferedReadable.browser.d.ts +55 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/createBufferedReadable.d.ts +16 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/getAwsChunkedEncodingStream.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/headStream.browser.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/headStream.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/sdk-stream-mixin.browser.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/sdk-stream-mixin.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/splitStream.browser.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/splitStream.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/stream-collector.browser.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/stream-collector.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-stream/stream-type-check.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-utf8/fromUtf8.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-utf8/fromUtf8.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-utf8/toUint8Array.browser.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-utf8/toUint8Array.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-utf8/toUtf8.browser.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/util-utf8/toUtf8.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/uuid/v4.d.ts +24 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/value/NumericValue.d.ts +33 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/getSmithyContext.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/httpRequest.d.ts +52 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/httpResponse.d.ts +29 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +10 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/isValidHostLabel.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/isValidHostname.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/normalizeProvider.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/parseQueryString.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/parseUrl.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/package.json +6 -4
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts +7 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts +13 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts +7 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts +13 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +12 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts +21 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts +10 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +26 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +19 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +40 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +5 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/node-http.d.ts +2 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts +10 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts +7 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts +6 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts +21 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +15 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +4 -6
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/create-request.d.ts +7 -0
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +38 -0
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +1 -0
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -7
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +10 -10
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/HeaderFormatter.d.ts +25 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +20 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4Base.d.ts +69 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/constants.d.ts +43 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts +30 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts +5 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts +5 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts +5 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/headerUtil.d.ts +4 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/index.d.ts +12 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +10 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +5 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/signature-v4a-container.d.ts +23 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/utilDate.d.ts +2 -0
- package/node_modules/@smithy/signature-v4/package.json +4 -6
- package/node_modules/@smithy/types/dist-types/ts3.4/abort-handler.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +45 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +41 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +59 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +37 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +61 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +57 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +28 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +15 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +34 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +32 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +58 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +40 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +31 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +77 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointParameterInstructions.d.ts +41 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +27 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +10 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +28 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +5 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +55 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +137 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +58 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +32 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +9 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +18 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +35 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/feature-ids.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +128 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +110 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +31 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +15 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +4 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +52 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +13 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/metrics.d.ts +93 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +541 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +33 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +30 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +40 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +162 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +149 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +251 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +118 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +114 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +79 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +172 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +22 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +28 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +54 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +41 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +42 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +26 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +77 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +88 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +40 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +17 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +192 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +35 -0
- package/node_modules/@smithy/types/package.json +2 -2
- package/node_modules/ws/lib/receiver.js +15 -32
- package/node_modules/ws/lib/websocket-server.js +4 -4
- package/node_modules/ws/lib/websocket.js +4 -4
- package/node_modules/ws/package.json +5 -1
- package/package.json +7 -7
- package/slingshot/index.js +344 -407
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/index.js +0 -122
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/load.js +0 -22
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/types.js +0 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.js +0 -36
- /package/node_modules/@earendil-works/pi-ai/dist/{utils → auth}/oauth/device-code.js +0 -0
- /package/node_modules/@earendil-works/pi-ai/dist/{utils → auth}/oauth/oauth-page.js +0 -0
- /package/node_modules/@earendil-works/pi-ai/dist/{utils → auth}/oauth/pkce.js +0 -0
package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js
CHANGED
|
@@ -6,27 +6,26 @@ import * as crypto from "node:crypto";
|
|
|
6
6
|
import * as fs from "node:fs";
|
|
7
7
|
import * as os from "node:os";
|
|
8
8
|
import * as path from "node:path";
|
|
9
|
-
import { getProviders, } from "@earendil-works/pi-ai/compat";
|
|
10
9
|
import { CombinedAutocompleteProvider, Container, fuzzyFilter, getCapabilities, hyperlink, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TruncatedText, TUI, visibleWidth, } from "@earendil-works/pi-tui";
|
|
11
10
|
import chalk from "chalk";
|
|
12
11
|
import { spawn, spawnSync } from "child_process";
|
|
13
12
|
import { APP_NAME, APP_TITLE, CONFIG_DIR_NAME, getAgentDir, getAuthPath, getDebugLogPath, getDocsPath, getShareViewerUrl, VERSION, } from "../../config.js";
|
|
14
13
|
import { parseSkillBlock } from "../../core/agent-session.js";
|
|
15
14
|
import { SessionImportFileNotFoundError } from "../../core/agent-session-runtime.js";
|
|
15
|
+
import { CACHE_TTL_MS, collectCacheMisses, computeCacheWaste, detectCacheMiss, } from "../../core/cache-stats.js";
|
|
16
16
|
import { FooterDataProvider } from "../../core/footer-data-provider.js";
|
|
17
17
|
import { configureHttpDispatcher, formatHttpIdleTimeoutMs } from "../../core/http-dispatcher.js";
|
|
18
18
|
import { KeybindingsManager } from "../../core/keybindings.js";
|
|
19
19
|
import { createCompactionSummaryMessage } from "../../core/messages.js";
|
|
20
20
|
import { defaultModelPerProvider, findExactModelReferenceMatch, resolveModelScope } from "../../core/model-resolver.js";
|
|
21
21
|
import { DefaultPackageManager } from "../../core/package-manager.js";
|
|
22
|
-
import { BUILT_IN_PROVIDER_DISPLAY_NAMES } from "../../core/provider-display-names.js";
|
|
23
22
|
import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
|
|
24
23
|
import { SessionManager, sessionEntryToContextMessages } from "../../core/session-manager.js";
|
|
25
24
|
import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
|
|
26
25
|
import { isInstallTelemetryEnabled } from "../../core/telemetry.js";
|
|
27
26
|
import { hasTrustRequiringProjectResources, ProjectTrustStore } from "../../core/trust-manager.js";
|
|
28
27
|
import { getChangelogPath, getNewEntries, normalizeChangelogLinks, parseChangelog } from "../../utils/changelog.js";
|
|
29
|
-
import { copyToClipboard } from "../../utils/clipboard.js";
|
|
28
|
+
import { copyToClipboard, readClipboardText } from "../../utils/clipboard.js";
|
|
30
29
|
import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
|
|
31
30
|
import { parseGitUrl } from "../../utils/git.js";
|
|
32
31
|
import { getCwdRelativePath } from "../../utils/paths.js";
|
|
@@ -49,11 +48,11 @@ import { EarendilAnnouncementComponent } from "./components/earendil-announcemen
|
|
|
49
48
|
import { ExtensionEditorComponent } from "./components/extension-editor.js";
|
|
50
49
|
import { ExtensionInputComponent } from "./components/extension-input.js";
|
|
51
50
|
import { ExtensionSelectorComponent } from "./components/extension-selector.js";
|
|
52
|
-
import { FooterComponent } from "./components/footer.js";
|
|
51
|
+
import { FooterComponent, formatTokens } from "./components/footer.js";
|
|
53
52
|
import { formatKeyText, keyDisplayText, keyHint, keyText, rawKeyHint } from "./components/keybinding-hints.js";
|
|
54
53
|
import { LoginDialogComponent } from "./components/login-dialog.js";
|
|
55
54
|
import { ModelSelectorComponent } from "./components/model-selector.js";
|
|
56
|
-
import { OAuthSelectorComponent } from "./components/oauth-selector.js";
|
|
55
|
+
import { formatAuthSelectorProviderType, OAuthSelectorComponent, } from "./components/oauth-selector.js";
|
|
57
56
|
import { ScopedModelsSelectorComponent } from "./components/scoped-models-selector.js";
|
|
58
57
|
import { SessionSelectorComponent } from "./components/session-selector.js";
|
|
59
58
|
import { SettingsSelectorComponent } from "./components/settings-selector.js";
|
|
@@ -93,7 +92,7 @@ function isDeadTerminalError(error) {
|
|
|
93
92
|
const code = error.code;
|
|
94
93
|
return code !== undefined && DEAD_TERMINAL_ERROR_CODES.has(code);
|
|
95
94
|
}
|
|
96
|
-
const ANTHROPIC_SUBSCRIPTION_AUTH_WARNING = "Anthropic subscription auth is active. Third-party harness usage draws from extra usage and is billed per token, not your Claude plan limits. Manage extra usage at https://claude.ai/settings/usage.";
|
|
95
|
+
const ANTHROPIC_SUBSCRIPTION_AUTH_WARNING = "Anthropic subscription auth is active. Third-party harness usage draws from extra usage and is billed per token, not your Claude plan limits. Manage extra usage at https://claude.ai/settings/usage. Disable this warning in /settings.";
|
|
97
96
|
function isAnthropicSubscriptionAuthKey(apiKey) {
|
|
98
97
|
return typeof apiKey === "string" && apiKey.startsWith("sk-ant-oat");
|
|
99
98
|
}
|
|
@@ -124,16 +123,41 @@ export function formatResumeCommand(sessionManager) {
|
|
|
124
123
|
function hasDefaultModelProvider(providerId) {
|
|
125
124
|
return providerId in defaultModelPerProvider;
|
|
126
125
|
}
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (
|
|
131
|
-
return
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
126
|
+
const AUTH_TYPE_ORDER = { oauth: 0, api_key: 1 };
|
|
127
|
+
function createFuzzyAutocompleteItems(items, prefix, getSearchText, toAutocompleteItem) {
|
|
128
|
+
const filtered = fuzzyFilter(items, prefix, getSearchText);
|
|
129
|
+
if (filtered.length === 0)
|
|
130
|
+
return null;
|
|
131
|
+
return filtered.map(toAutocompleteItem);
|
|
132
|
+
}
|
|
133
|
+
function getLoginProviderCompletionOptions(providerOptions) {
|
|
134
|
+
const byId = new Map();
|
|
135
|
+
for (const provider of providerOptions) {
|
|
136
|
+
const existing = byId.get(provider.id);
|
|
137
|
+
if (existing) {
|
|
138
|
+
if (!existing.authTypes.includes(provider.authType)) {
|
|
139
|
+
existing.authTypes.push(provider.authType);
|
|
140
|
+
existing.authTypes.sort((a, b) => AUTH_TYPE_ORDER[a] - AUTH_TYPE_ORDER[b]);
|
|
141
|
+
}
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
byId.set(provider.id, {
|
|
145
|
+
id: provider.id,
|
|
146
|
+
name: provider.name,
|
|
147
|
+
authTypes: [provider.authType],
|
|
148
|
+
});
|
|
135
149
|
}
|
|
136
|
-
return
|
|
150
|
+
return Array.from(byId.values()).sort((a, b) => a.name.localeCompare(b.name));
|
|
151
|
+
}
|
|
152
|
+
function getLoginProviderSearchText(provider) {
|
|
153
|
+
const authTypes = provider.authTypes
|
|
154
|
+
.map((authType) => `${authType} ${formatAuthSelectorProviderType(authType)}`)
|
|
155
|
+
.join(" ");
|
|
156
|
+
return `${provider.id} ${provider.name} ${authTypes}`;
|
|
157
|
+
}
|
|
158
|
+
function formatLoginProviderCompletionDescription(provider) {
|
|
159
|
+
const authTypes = provider.authTypes.map(formatAuthSelectorProviderType).join("/");
|
|
160
|
+
return provider.name === provider.id ? authTypes : `${provider.name} · ${authTypes}`;
|
|
137
161
|
}
|
|
138
162
|
export class InteractiveMode {
|
|
139
163
|
runtimeHost;
|
|
@@ -321,14 +345,15 @@ export class InteractiveMode {
|
|
|
321
345
|
const slashCommands = BUILTIN_SLASH_COMMANDS.map((command) => ({
|
|
322
346
|
name: command.name,
|
|
323
347
|
description: command.description,
|
|
348
|
+
...(command.argumentHint && { argumentHint: command.argumentHint }),
|
|
324
349
|
}));
|
|
325
350
|
const modelCommand = slashCommands.find((command) => command.name === "model");
|
|
326
351
|
if (modelCommand) {
|
|
327
|
-
modelCommand.getArgumentCompletions = (prefix) => {
|
|
352
|
+
modelCommand.getArgumentCompletions = async (prefix) => {
|
|
328
353
|
// Get available models (scoped or from registry)
|
|
329
354
|
const models = this.session.scopedModels.length > 0
|
|
330
355
|
? this.session.scopedModels.map((s) => s.model)
|
|
331
|
-
: this.session.
|
|
356
|
+
: await this.session.modelRuntime.getAvailable();
|
|
332
357
|
if (models.length === 0)
|
|
333
358
|
return null;
|
|
334
359
|
// Create items with provider/id format
|
|
@@ -338,17 +363,24 @@ export class InteractiveMode {
|
|
|
338
363
|
name: m.name,
|
|
339
364
|
label: `${m.provider}/${m.id}`,
|
|
340
365
|
}));
|
|
341
|
-
|
|
342
|
-
const filtered = fuzzyFilter(items, prefix, getModelSearchText);
|
|
343
|
-
if (filtered.length === 0)
|
|
344
|
-
return null;
|
|
345
|
-
return filtered.map((item) => ({
|
|
366
|
+
return createFuzzyAutocompleteItems(items, prefix, getModelSearchText, (item) => ({
|
|
346
367
|
value: item.label,
|
|
347
368
|
label: item.id,
|
|
348
369
|
description: item.provider,
|
|
349
370
|
}));
|
|
350
371
|
};
|
|
351
372
|
}
|
|
373
|
+
const loginCommand = slashCommands.find((command) => command.name === "login");
|
|
374
|
+
if (loginCommand) {
|
|
375
|
+
loginCommand.getArgumentCompletions = (prefix) => {
|
|
376
|
+
const providers = getLoginProviderCompletionOptions(this.getLoginProviderOptions().filter((p) => p.id === "slingshot" || p.id === "ollama"));
|
|
377
|
+
return createFuzzyAutocompleteItems(providers, prefix, getLoginProviderSearchText, (provider) => ({
|
|
378
|
+
value: provider.id,
|
|
379
|
+
label: provider.id,
|
|
380
|
+
description: formatLoginProviderCompletionDescription(provider),
|
|
381
|
+
}));
|
|
382
|
+
};
|
|
383
|
+
}
|
|
352
384
|
// Convert prompt templates to SlashCommand format for autocomplete
|
|
353
385
|
const templateCommands = this.session.promptTemplates.map((cmd) => ({
|
|
354
386
|
name: cmd.name,
|
|
@@ -396,32 +428,6 @@ export class InteractiveMode {
|
|
|
396
428
|
this.editor.setAutocompleteProvider?.(provider);
|
|
397
429
|
}
|
|
398
430
|
}
|
|
399
|
-
showStartupNoticesIfNeeded() {
|
|
400
|
-
if (this.startupNoticesShown) {
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
this.startupNoticesShown = true;
|
|
404
|
-
if (!this.changelogMarkdown) {
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
if (this.chatContainer.children.length > 0) {
|
|
408
|
-
this.chatContainer.addChild(new Spacer(1));
|
|
409
|
-
}
|
|
410
|
-
this.chatContainer.addChild(new DynamicBorder());
|
|
411
|
-
if (this.settingsManager.getCollapseChangelog()) {
|
|
412
|
-
const versionMatch = this.changelogMarkdown.match(/##\s+\[?(\d+\.\d+\.\d+)\]?/);
|
|
413
|
-
const latestVersion = versionMatch ? versionMatch[1] : this.version;
|
|
414
|
-
const condensedText = `Updated to v${latestVersion}. Use ${theme.bold("/changelog")} to view full changelog.`;
|
|
415
|
-
this.chatContainer.addChild(new Text(condensedText, 1, 0));
|
|
416
|
-
}
|
|
417
|
-
else {
|
|
418
|
-
this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "What's New")), 1, 0));
|
|
419
|
-
this.chatContainer.addChild(new Spacer(1));
|
|
420
|
-
this.chatContainer.addChild(new Markdown(this.changelogMarkdown.trim(), 1, 0, this.getMarkdownThemeWithSettings()));
|
|
421
|
-
this.chatContainer.addChild(new Spacer(1));
|
|
422
|
-
}
|
|
423
|
-
this.chatContainer.addChild(new DynamicBorder());
|
|
424
|
-
}
|
|
425
431
|
async init() {
|
|
426
432
|
if (this.isInitialized)
|
|
427
433
|
return;
|
|
@@ -487,7 +493,7 @@ export class InteractiveMode {
|
|
|
487
493
|
rawKeyHint("!!", "to run bash (no context)"),
|
|
488
494
|
hint("app.message.followUp", "to queue follow-up"),
|
|
489
495
|
hint("app.message.dequeue", "to edit all queued messages"),
|
|
490
|
-
hint("app.clipboard.pasteImage", "to paste image"),
|
|
496
|
+
hint("app.clipboard.pasteImage", "to paste image (with text fallback)"),
|
|
491
497
|
rawKeyHint("drop files", "to attach"),
|
|
492
498
|
].join("\n");
|
|
493
499
|
const compactInstructions = [
|
|
@@ -554,10 +560,18 @@ export class InteractiveMode {
|
|
|
554
560
|
}
|
|
555
561
|
});
|
|
556
562
|
// Start package update check asynchronously
|
|
557
|
-
this.checkForPackageUpdates()
|
|
563
|
+
this.checkForPackageUpdates()
|
|
564
|
+
.then((updates) => {
|
|
558
565
|
if (updates.length > 0) {
|
|
559
566
|
this.showPackageUpdateNotification(updates);
|
|
560
567
|
}
|
|
568
|
+
})
|
|
569
|
+
.finally(() => {
|
|
570
|
+
// On Windows, npm can overwrite the shared console title while checking
|
|
571
|
+
// extension package versions. Restore Pi's title after the startup check.
|
|
572
|
+
if (process.platform === "win32" && this.isInitialized) {
|
|
573
|
+
this.updateTerminalTitle();
|
|
574
|
+
}
|
|
561
575
|
});
|
|
562
576
|
// Check tmux keyboard setup asynchronously
|
|
563
577
|
this.checkTmuxKeyboardSetup().then((warning) => {
|
|
@@ -570,7 +584,7 @@ export class InteractiveMode {
|
|
|
570
584
|
if (migratedProviders && migratedProviders.length > 0) {
|
|
571
585
|
this.showWarning(`Migrated credentials to auth.json: ${migratedProviders.join(", ")}`);
|
|
572
586
|
}
|
|
573
|
-
const modelsJsonError = this.session.
|
|
587
|
+
const modelsJsonError = this.session.modelRuntime.getError();
|
|
574
588
|
if (modelsJsonError) {
|
|
575
589
|
this.showError(`models.json error: ${modelsJsonError}`);
|
|
576
590
|
}
|
|
@@ -665,7 +679,7 @@ export class InteractiveMode {
|
|
|
665
679
|
return "tmux extended-keys is off. Modified Enter keys may not work. Add `set -g extended-keys on` to ~/.tmux.conf and restart tmux.";
|
|
666
680
|
}
|
|
667
681
|
if (extendedKeysFormat === "xterm") {
|
|
668
|
-
return "tmux extended-keys-format is xterm.
|
|
682
|
+
return "tmux extended-keys-format is xterm. sling works best with csi-u. Add `set -g extended-keys-format csi-u` to ~/.tmux.conf and restart tmux.";
|
|
669
683
|
}
|
|
670
684
|
return undefined;
|
|
671
685
|
}
|
|
@@ -1022,7 +1036,10 @@ export class InteractiveMode {
|
|
|
1022
1036
|
const promptsResult = this.session.resourceLoader.getPrompts();
|
|
1023
1037
|
const themesResult = this.session.resourceLoader.getThemes();
|
|
1024
1038
|
const extensions = options?.extensions ??
|
|
1025
|
-
this.session.resourceLoader
|
|
1039
|
+
this.session.resourceLoader
|
|
1040
|
+
.getExtensions()
|
|
1041
|
+
.extensions.filter((extension) => !extension.hidden)
|
|
1042
|
+
.map((extension) => ({
|
|
1026
1043
|
path: extension.path,
|
|
1027
1044
|
sourceInfo: extension.sourceInfo,
|
|
1028
1045
|
}));
|
|
@@ -1159,7 +1176,7 @@ export class InteractiveMode {
|
|
|
1159
1176
|
this.restoreQueuedMessagesToEditor({ abort: true });
|
|
1160
1177
|
},
|
|
1161
1178
|
commandContextActions: {
|
|
1162
|
-
waitForIdle: () => this.session.
|
|
1179
|
+
waitForIdle: () => this.session.waitForIdle(),
|
|
1163
1180
|
newSession: async (options) => {
|
|
1164
1181
|
this.clearStatusIndicator();
|
|
1165
1182
|
try {
|
|
@@ -1210,7 +1227,7 @@ export class InteractiveMode {
|
|
|
1210
1227
|
},
|
|
1211
1228
|
shutdownHandler: () => {
|
|
1212
1229
|
this.shutdownRequested = true;
|
|
1213
|
-
if (
|
|
1230
|
+
if (this.session.isIdle) {
|
|
1214
1231
|
void this.shutdown();
|
|
1215
1232
|
}
|
|
1216
1233
|
},
|
|
@@ -1223,7 +1240,7 @@ export class InteractiveMode {
|
|
|
1223
1240
|
const extensionRunner = this.session.extensionRunner;
|
|
1224
1241
|
this.setupExtensionShortcuts(extensionRunner);
|
|
1225
1242
|
this.showLoadedResources({ force: false, showDiagnosticsWhenQuiet: true });
|
|
1226
|
-
this.showStartupNoticesIfNeeded();
|
|
1243
|
+
//this.showStartupNoticesIfNeeded();
|
|
1227
1244
|
}
|
|
1228
1245
|
applyRuntimeSettings() {
|
|
1229
1246
|
configureHttpDispatcher(this.settingsManager.getHttpIdleTimeoutMs());
|
|
@@ -1301,9 +1318,9 @@ export class InteractiveMode {
|
|
|
1301
1318
|
hasUI: true,
|
|
1302
1319
|
cwd: this.sessionManager.getCwd(),
|
|
1303
1320
|
sessionManager: this.sessionManager,
|
|
1304
|
-
modelRegistry:
|
|
1321
|
+
modelRegistry: extensionRunner.getModelRegistry(),
|
|
1305
1322
|
model: this.session.model,
|
|
1306
|
-
isIdle: () =>
|
|
1323
|
+
isIdle: () => this.session.isIdle,
|
|
1307
1324
|
isProjectTrusted: () => this.settingsManager.isProjectTrusted(),
|
|
1308
1325
|
signal: this.session.agent.signal,
|
|
1309
1326
|
abort: () => {
|
|
@@ -1989,6 +2006,7 @@ export class InteractiveMode {
|
|
|
1989
2006
|
this.defaultEditor.onAction("app.tools.expand", () => this.toggleToolOutputExpansion());
|
|
1990
2007
|
this.defaultEditor.onAction("app.thinking.toggle", () => this.toggleThinkingBlockVisibility());
|
|
1991
2008
|
this.defaultEditor.onAction("app.editor.external", () => this.openExternalEditor());
|
|
2009
|
+
this.defaultEditor.onAction("app.message.copy", () => void this.handleCopyCommand());
|
|
1992
2010
|
this.defaultEditor.onAction("app.message.followUp", () => this.handleFollowUp());
|
|
1993
2011
|
this.defaultEditor.onAction("app.message.dequeue", () => this.handleDequeue());
|
|
1994
2012
|
this.defaultEditor.onAction("app.session.new", () => this.handleClearCommand());
|
|
@@ -2002,26 +2020,30 @@ export class InteractiveMode {
|
|
|
2002
2020
|
this.updateEditorBorderColor();
|
|
2003
2021
|
}
|
|
2004
2022
|
};
|
|
2005
|
-
// Handle clipboard
|
|
2023
|
+
// Handle clipboard paste (triggered on Ctrl+V). Images are attached by path;
|
|
2024
|
+
// otherwise, paste plain text from the system clipboard.
|
|
2006
2025
|
this.defaultEditor.onPasteImage = () => {
|
|
2007
|
-
this.
|
|
2026
|
+
void this.handleClipboardPaste();
|
|
2008
2027
|
};
|
|
2009
2028
|
}
|
|
2010
|
-
async
|
|
2029
|
+
async handleClipboardPaste() {
|
|
2011
2030
|
try {
|
|
2012
2031
|
const image = await readClipboardImage();
|
|
2013
|
-
if (
|
|
2032
|
+
if (image) {
|
|
2033
|
+
const tmpDir = os.tmpdir();
|
|
2034
|
+
const ext = extensionForImageMimeType(image.mimeType) ?? "png";
|
|
2035
|
+
const fileName = `pi-clipboard-${crypto.randomUUID()}.${ext}`;
|
|
2036
|
+
const filePath = path.join(tmpDir, fileName);
|
|
2037
|
+
fs.writeFileSync(filePath, Buffer.from(image.bytes));
|
|
2038
|
+
this.editor.insertTextAtCursor?.(filePath);
|
|
2039
|
+
this.ui.requestRender();
|
|
2014
2040
|
return;
|
|
2015
2041
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
fs.writeFileSync(filePath, Buffer.from(image.bytes));
|
|
2022
|
-
// Insert file path directly
|
|
2023
|
-
this.editor.insertTextAtCursor?.(filePath);
|
|
2024
|
-
this.ui.requestRender();
|
|
2042
|
+
const text = await readClipboardText();
|
|
2043
|
+
if (text) {
|
|
2044
|
+
this.editor.insertTextAtCursor?.(text);
|
|
2045
|
+
this.ui.requestRender();
|
|
2046
|
+
}
|
|
2025
2047
|
}
|
|
2026
2048
|
catch {
|
|
2027
2049
|
// Silently ignore clipboard errors (may not have permission, etc.)
|
|
@@ -2109,9 +2131,10 @@ export class InteractiveMode {
|
|
|
2109
2131
|
this.editor.setText("");
|
|
2110
2132
|
return;
|
|
2111
2133
|
}
|
|
2112
|
-
if (text === "/login") {
|
|
2113
|
-
|
|
2134
|
+
if (text === "/login" || text.startsWith("/login ")) {
|
|
2135
|
+
const providerRef = text.startsWith("/login ") ? text.slice(7).trim() : undefined;
|
|
2114
2136
|
this.editor.setText("");
|
|
2137
|
+
await this.handleLoginCommand(providerRef || "slingshot");
|
|
2115
2138
|
return;
|
|
2116
2139
|
}
|
|
2117
2140
|
if (text === "/logout") {
|
|
@@ -2336,6 +2359,7 @@ export class InteractiveMode {
|
|
|
2336
2359
|
for (const [, component] of this.pendingTools.entries()) {
|
|
2337
2360
|
component.setArgsComplete();
|
|
2338
2361
|
}
|
|
2362
|
+
this.maybeShowCacheMissNotice(this.streamingMessage);
|
|
2339
2363
|
}
|
|
2340
2364
|
this.streamingComponent = undefined;
|
|
2341
2365
|
this.streamingMessage = undefined;
|
|
@@ -2386,9 +2410,11 @@ export class InteractiveMode {
|
|
|
2386
2410
|
this.streamingMessage = undefined;
|
|
2387
2411
|
}
|
|
2388
2412
|
this.pendingTools.clear();
|
|
2389
|
-
await this.checkShutdownRequested();
|
|
2390
2413
|
this.ui.requestRender();
|
|
2391
2414
|
break;
|
|
2415
|
+
case "agent_settled":
|
|
2416
|
+
await this.checkShutdownRequested();
|
|
2417
|
+
break;
|
|
2392
2418
|
case "compaction_start": {
|
|
2393
2419
|
if (this.settingsManager.getShowTerminalProgress()) {
|
|
2394
2420
|
this.ui.terminal.setProgress(true);
|
|
@@ -2595,6 +2621,11 @@ export class InteractiveMode {
|
|
|
2595
2621
|
renderSessionItems(items, options = {}) {
|
|
2596
2622
|
this.pendingTools.clear();
|
|
2597
2623
|
const renderedPendingTools = new Map();
|
|
2624
|
+
// Cache-miss notices are not persisted; re-derive them from the full entry
|
|
2625
|
+
// list and re-inject them after the assistant messages that paid for them.
|
|
2626
|
+
const cacheMisses = this.settingsManager.getShowCacheMissNotices()
|
|
2627
|
+
? collectCacheMisses(this.sessionManager.getEntries(), this.session.modelRuntime)
|
|
2628
|
+
: new Map();
|
|
2598
2629
|
if (options.updateFooter) {
|
|
2599
2630
|
this.footer.invalidate();
|
|
2600
2631
|
this.updateEditorBorderColor();
|
|
@@ -2636,6 +2667,11 @@ export class InteractiveMode {
|
|
|
2636
2667
|
}
|
|
2637
2668
|
}
|
|
2638
2669
|
}
|
|
2670
|
+
if (message.stopReason !== "aborted" && message.stopReason !== "error") {
|
|
2671
|
+
const miss = cacheMisses.get(message);
|
|
2672
|
+
if (miss)
|
|
2673
|
+
this.addCacheMissNotice(miss);
|
|
2674
|
+
}
|
|
2639
2675
|
}
|
|
2640
2676
|
else if (message.role === "toolResult") {
|
|
2641
2677
|
// Match tool results to pending tool components
|
|
@@ -2670,6 +2706,35 @@ export class InteractiveMode {
|
|
|
2670
2706
|
});
|
|
2671
2707
|
this.renderSessionItems(items, options);
|
|
2672
2708
|
}
|
|
2709
|
+
/**
|
|
2710
|
+
* Show a transcript notice when a completed assistant message paid for a
|
|
2711
|
+
* significant cache miss. Only states observable facts: the miss itself,
|
|
2712
|
+
* a model switch, or an idle gap past the cache TTL.
|
|
2713
|
+
*/
|
|
2714
|
+
maybeShowCacheMissNotice(message) {
|
|
2715
|
+
if (!this.settingsManager.getShowCacheMissNotices())
|
|
2716
|
+
return;
|
|
2717
|
+
// Entries don't contain `message` yet: message_end fires before persistence.
|
|
2718
|
+
const miss = detectCacheMiss(this.sessionManager.getEntries(), message, this.session.modelRuntime);
|
|
2719
|
+
if (miss)
|
|
2720
|
+
this.addCacheMissNotice(miss);
|
|
2721
|
+
}
|
|
2722
|
+
addCacheMissNotice(miss) {
|
|
2723
|
+
if (miss.missedTokens < 20_000 && miss.missedCost < 0.1)
|
|
2724
|
+
return;
|
|
2725
|
+
const cost = miss.missedCost >= 0.01 ? ` (~$${miss.missedCost.toFixed(2)})` : "";
|
|
2726
|
+
const reBilled = `${formatTokens(miss.missedTokens)} tokens re-billed${cost}`;
|
|
2727
|
+
let label = "Cache miss";
|
|
2728
|
+
if (miss.modelChanged) {
|
|
2729
|
+
label = "Cache miss after model switch";
|
|
2730
|
+
}
|
|
2731
|
+
else if (miss.idleMs >= CACHE_TTL_MS) {
|
|
2732
|
+
label = `Cache miss after ${Math.round(miss.idleMs / 60_000)}m idle`;
|
|
2733
|
+
}
|
|
2734
|
+
const text = theme.fg("warning", `${label}: ${reBilled}`);
|
|
2735
|
+
this.chatContainer.addChild(new Spacer(1));
|
|
2736
|
+
this.chatContainer.addChild(new Text(text, 1, 0));
|
|
2737
|
+
}
|
|
2673
2738
|
renderInitialMessages() {
|
|
2674
2739
|
const entries = this.sessionManager.buildContextEntries();
|
|
2675
2740
|
this.renderSessionEntries(entries, {
|
|
@@ -3009,7 +3074,7 @@ export class InteractiveMode {
|
|
|
3009
3074
|
return;
|
|
3010
3075
|
}
|
|
3011
3076
|
const currentText = this.editor.getExpandedText?.() ?? this.editor.getText();
|
|
3012
|
-
const tmpFile = path.join(os.tmpdir(), `
|
|
3077
|
+
const tmpFile = path.join(os.tmpdir(), `sling-editor-${Date.now()}.sling.md`);
|
|
3013
3078
|
try {
|
|
3014
3079
|
// Write current content to temp file
|
|
3015
3080
|
fs.writeFileSync(tmpFile, currentText, "utf-8");
|
|
@@ -3233,8 +3298,10 @@ export class InteractiveMode {
|
|
|
3233
3298
|
for (const message of preCommands) {
|
|
3234
3299
|
await this.session.prompt(message.text);
|
|
3235
3300
|
}
|
|
3236
|
-
//
|
|
3237
|
-
const promptPromise = this.session
|
|
3301
|
+
// Start a prompt when idle, or queue it into a run still finishing compaction.
|
|
3302
|
+
const promptPromise = this.session
|
|
3303
|
+
.prompt(firstPrompt.text, { streamingBehavior: firstPrompt.mode })
|
|
3304
|
+
.catch((error) => {
|
|
3238
3305
|
restoreQueue(error);
|
|
3239
3306
|
});
|
|
3240
3307
|
// Queue remaining messages
|
|
@@ -3307,6 +3374,7 @@ export class InteractiveMode {
|
|
|
3307
3374
|
doubleEscapeAction: this.settingsManager.getDoubleEscapeAction(),
|
|
3308
3375
|
treeFilterMode: this.settingsManager.getTreeFilterMode(),
|
|
3309
3376
|
showHardwareCursor: this.settingsManager.getShowHardwareCursor(),
|
|
3377
|
+
showCacheMissNotices: this.settingsManager.getShowCacheMissNotices(),
|
|
3310
3378
|
defaultProjectTrust: this.settingsManager.getDefaultProjectTrust(),
|
|
3311
3379
|
editorPaddingX: this.settingsManager.getEditorPaddingX(),
|
|
3312
3380
|
outputPad: this.settingsManager.getOutputPad(),
|
|
@@ -3382,6 +3450,10 @@ export class InteractiveMode {
|
|
|
3382
3450
|
this.chatContainer.clear();
|
|
3383
3451
|
this.rebuildChatFromMessages();
|
|
3384
3452
|
},
|
|
3453
|
+
onShowCacheMissNoticesChange: (shown) => {
|
|
3454
|
+
this.settingsManager.setShowCacheMissNotices(shown);
|
|
3455
|
+
this.rebuildChatFromMessages();
|
|
3456
|
+
},
|
|
3385
3457
|
onCollapseChangelogChange: (collapsed) => {
|
|
3386
3458
|
this.settingsManager.setCollapseChangelog(collapsed);
|
|
3387
3459
|
},
|
|
@@ -3486,9 +3558,9 @@ export class InteractiveMode {
|
|
|
3486
3558
|
if (this.session.scopedModels.length > 0) {
|
|
3487
3559
|
return this.session.scopedModels.map((scoped) => scoped.model);
|
|
3488
3560
|
}
|
|
3489
|
-
this.session.modelRegistry.refresh();
|
|
3490
3561
|
try {
|
|
3491
|
-
|
|
3562
|
+
await this.session.modelRuntime.refresh();
|
|
3563
|
+
return [...(await this.session.modelRuntime.getAvailable())];
|
|
3492
3564
|
}
|
|
3493
3565
|
catch {
|
|
3494
3566
|
return [];
|
|
@@ -3510,14 +3582,13 @@ export class InteractiveMode {
|
|
|
3510
3582
|
if (!model || model.provider !== "anthropic") {
|
|
3511
3583
|
return;
|
|
3512
3584
|
}
|
|
3513
|
-
const storedCredential = this.session.modelRegistry.authStorage.get("anthropic");
|
|
3514
|
-
if (storedCredential?.type === "oauth") {
|
|
3515
|
-
this.anthropicSubscriptionWarningShown = true;
|
|
3516
|
-
this.showWarning(ANTHROPIC_SUBSCRIPTION_AUTH_WARNING);
|
|
3517
|
-
return;
|
|
3518
|
-
}
|
|
3519
3585
|
try {
|
|
3520
|
-
|
|
3586
|
+
if ((await this.session.modelRuntime.checkAuth("anthropic"))?.type === "oauth") {
|
|
3587
|
+
this.anthropicSubscriptionWarningShown = true;
|
|
3588
|
+
this.showWarning(ANTHROPIC_SUBSCRIPTION_AUTH_WARNING);
|
|
3589
|
+
return;
|
|
3590
|
+
}
|
|
3591
|
+
const apiKey = (await this.session.modelRuntime.getAuth(model.provider))?.auth.apiKey;
|
|
3521
3592
|
if (!isAnthropicSubscriptionAuthKey(apiKey)) {
|
|
3522
3593
|
return;
|
|
3523
3594
|
}
|
|
@@ -3563,7 +3634,7 @@ export class InteractiveMode {
|
|
|
3563
3634
|
onSelect: (selection) => {
|
|
3564
3635
|
trustStore.setMany(selection.updates);
|
|
3565
3636
|
done();
|
|
3566
|
-
this.showStatus(`Saved trust decision: ${selection.trusted ? "trusted" : "untrusted"}. Restart
|
|
3637
|
+
this.showStatus(`Saved trust decision: ${selection.trusted ? "trusted" : "untrusted"}. Restart sling for this to take effect.`);
|
|
3567
3638
|
},
|
|
3568
3639
|
onCancel: () => {
|
|
3569
3640
|
done();
|
|
@@ -3575,7 +3646,7 @@ export class InteractiveMode {
|
|
|
3575
3646
|
}
|
|
3576
3647
|
showModelSelector(initialSearchInput) {
|
|
3577
3648
|
this.showSelector((done) => {
|
|
3578
|
-
const selector = new ModelSelectorComponent(this.ui, this.session.model, this.settingsManager, this.session.
|
|
3649
|
+
const selector = new ModelSelectorComponent(this.ui, this.session.model, this.settingsManager, this.session.modelRuntime, this.session.scopedModels, async (model) => {
|
|
3579
3650
|
try {
|
|
3580
3651
|
await this.session.setModel(model);
|
|
3581
3652
|
this.footer.invalidate();
|
|
@@ -3598,8 +3669,8 @@ export class InteractiveMode {
|
|
|
3598
3669
|
}
|
|
3599
3670
|
async showModelsSelector() {
|
|
3600
3671
|
// Get all available models
|
|
3601
|
-
this.session.
|
|
3602
|
-
const allModels = this.session.
|
|
3672
|
+
await this.session.modelRuntime.refresh();
|
|
3673
|
+
const allModels = [...(await this.session.modelRuntime.getAvailable())];
|
|
3603
3674
|
if (allModels.length === 0) {
|
|
3604
3675
|
this.showStatus("No models available");
|
|
3605
3676
|
return;
|
|
@@ -3617,7 +3688,7 @@ export class InteractiveMode {
|
|
|
3617
3688
|
// Fall back to settings
|
|
3618
3689
|
const patterns = this.settingsManager.getEnabledModels();
|
|
3619
3690
|
if (patterns !== undefined && patterns.length > 0) {
|
|
3620
|
-
const scopedModels = await resolveModelScope(patterns, this.session.
|
|
3691
|
+
const scopedModels = await resolveModelScope(patterns, this.session.modelRuntime);
|
|
3621
3692
|
currentEnabledIds = scopedModels.map((scoped) => `${scoped.model.provider}/${scoped.model.id}`);
|
|
3622
3693
|
}
|
|
3623
3694
|
}
|
|
@@ -3625,7 +3696,7 @@ export class InteractiveMode {
|
|
|
3625
3696
|
const updateSessionModels = async (enabledIds) => {
|
|
3626
3697
|
currentEnabledIds = enabledIds === null ? null : [...enabledIds];
|
|
3627
3698
|
if (enabledIds && enabledIds.length > 0 && enabledIds.length < allModels.length) {
|
|
3628
|
-
const newScopedModels = await resolveModelScope(enabledIds, this.session.
|
|
3699
|
+
const newScopedModels = await resolveModelScope(enabledIds, this.session.modelRuntime);
|
|
3629
3700
|
this.session.setScopedModels(newScopedModels.map((sm) => ({
|
|
3630
3701
|
model: sm.model,
|
|
3631
3702
|
thinkingLevel: sm.thinkingLevel,
|
|
@@ -3671,19 +3742,17 @@ export class InteractiveMode {
|
|
|
3671
3742
|
const initialSelectedId = userMessages[userMessages.length - 1]?.entryId;
|
|
3672
3743
|
this.showSelector((done) => {
|
|
3673
3744
|
const selector = new UserMessageSelectorComponent(userMessages.map((m) => ({ id: m.entryId, text: m.text })), async (entryId) => {
|
|
3745
|
+
done();
|
|
3674
3746
|
try {
|
|
3675
3747
|
const result = await this.runtimeHost.fork(entryId);
|
|
3676
3748
|
if (result.cancelled) {
|
|
3677
|
-
done();
|
|
3678
3749
|
this.ui.requestRender();
|
|
3679
3750
|
return;
|
|
3680
3751
|
}
|
|
3681
3752
|
this.editor.setText(result.selectedText ?? "");
|
|
3682
|
-
done();
|
|
3683
3753
|
this.showStatus("Forked to new session");
|
|
3684
3754
|
}
|
|
3685
3755
|
catch (error) {
|
|
3686
|
-
done();
|
|
3687
3756
|
this.showError(error instanceof Error ? error.message : String(error));
|
|
3688
3757
|
}
|
|
3689
3758
|
}, () => {
|
|
@@ -3810,6 +3879,19 @@ export class InteractiveMode {
|
|
|
3810
3879
|
this.sessionManager.appendLabelChange(entryId, label);
|
|
3811
3880
|
this.ui.requestRender();
|
|
3812
3881
|
}, initialSelectedId, initialFilterMode);
|
|
3882
|
+
selector.onCopy = async (text) => {
|
|
3883
|
+
if (!text) {
|
|
3884
|
+
this.showError("Selected entry has no text to copy");
|
|
3885
|
+
return;
|
|
3886
|
+
}
|
|
3887
|
+
try {
|
|
3888
|
+
await copyToClipboard(text);
|
|
3889
|
+
this.showStatus("Copied selected message to clipboard");
|
|
3890
|
+
}
|
|
3891
|
+
catch (error) {
|
|
3892
|
+
this.showError(error instanceof Error ? error.message : String(error));
|
|
3893
|
+
}
|
|
3894
|
+
};
|
|
3813
3895
|
return { component: selector, focus: selector };
|
|
3814
3896
|
});
|
|
3815
3897
|
}
|
|
@@ -3874,51 +3956,125 @@ export class InteractiveMode {
|
|
|
3874
3956
|
}
|
|
3875
3957
|
}
|
|
3876
3958
|
getLoginProviderOptions(authType) {
|
|
3877
|
-
const
|
|
3878
|
-
const
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3959
|
+
const options = [];
|
|
3960
|
+
for (const provider of this.session.modelRuntime.getProviders()) {
|
|
3961
|
+
const authStatus = this.session.modelRuntime.getProviderAuthStatus(provider.id);
|
|
3962
|
+
const status = authStatus.configured
|
|
3963
|
+
? {
|
|
3964
|
+
type: this.session.modelRuntime.isUsingOAuth(provider.id) ? "oauth" : "api_key",
|
|
3965
|
+
source: authStatus.label ?? authStatus.source,
|
|
3966
|
+
}
|
|
3967
|
+
: undefined;
|
|
3968
|
+
if ((!authType || authType === "oauth") && provider.auth.oauth) {
|
|
3969
|
+
options.push({
|
|
3970
|
+
id: provider.id,
|
|
3971
|
+
name: provider.name,
|
|
3972
|
+
authType: "oauth",
|
|
3973
|
+
method: provider.auth.oauth,
|
|
3974
|
+
status,
|
|
3975
|
+
});
|
|
3976
|
+
}
|
|
3977
|
+
if ((!authType || authType === "api_key") && provider.auth.apiKey) {
|
|
3978
|
+
options.push({
|
|
3979
|
+
id: provider.id,
|
|
3980
|
+
name: provider.name,
|
|
3981
|
+
authType: "api_key",
|
|
3982
|
+
method: provider.auth.apiKey,
|
|
3983
|
+
status,
|
|
3984
|
+
});
|
|
3889
3985
|
}
|
|
3890
|
-
options.push({
|
|
3891
|
-
id: providerId,
|
|
3892
|
-
name: this.session.modelRegistry.getProviderDisplayName(providerId),
|
|
3893
|
-
authType: "api_key",
|
|
3894
|
-
});
|
|
3895
3986
|
}
|
|
3896
|
-
|
|
3897
|
-
return filteredOptions.sort((a, b) => a.name.localeCompare(b.name));
|
|
3987
|
+
return options.sort((a, b) => a.name.localeCompare(b.name));
|
|
3898
3988
|
}
|
|
3899
|
-
getLogoutProviderOptions() {
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3989
|
+
async getLogoutProviderOptions() {
|
|
3990
|
+
return (await this.session.modelRuntime.listCredentials())
|
|
3991
|
+
.map(({ providerId, type }) => ({
|
|
3992
|
+
id: providerId,
|
|
3993
|
+
name: this.session.modelRuntime.getProvider(providerId)?.name ?? providerId,
|
|
3994
|
+
authType: type,
|
|
3995
|
+
status: { type, source: "stored credential" },
|
|
3996
|
+
}))
|
|
3997
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
3998
|
+
}
|
|
3999
|
+
findLoginProviderOptions(providerRef) {
|
|
4000
|
+
const normalizedProviderRef = providerRef.trim().toLowerCase();
|
|
4001
|
+
if (!normalizedProviderRef) {
|
|
4002
|
+
return [];
|
|
4003
|
+
}
|
|
4004
|
+
return this.getLoginProviderOptions().filter((provider) => provider.id.toLowerCase() === normalizedProviderRef ||
|
|
4005
|
+
provider.name.toLowerCase() === normalizedProviderRef);
|
|
4006
|
+
}
|
|
4007
|
+
async handleLoginCommand(providerRef) {
|
|
4008
|
+
await this.session.modelRuntime.getAvailable();
|
|
4009
|
+
if (!providerRef) {
|
|
4010
|
+
this.showLoginAuthTypeSelector();
|
|
4011
|
+
return;
|
|
4012
|
+
}
|
|
4013
|
+
const providerOptions = this.findLoginProviderOptions(providerRef);
|
|
4014
|
+
if (providerOptions.length === 1) {
|
|
4015
|
+
await this.startProviderLogin(providerOptions[0]);
|
|
4016
|
+
return;
|
|
4017
|
+
}
|
|
4018
|
+
if (providerOptions.length > 1) {
|
|
4019
|
+
const providerIds = new Set(providerOptions.map((provider) => provider.id));
|
|
4020
|
+
if (providerIds.size === 1) {
|
|
4021
|
+
this.showLoginAuthTypeSelector(providerOptions);
|
|
4022
|
+
return;
|
|
3906
4023
|
}
|
|
3907
|
-
options.push({
|
|
3908
|
-
id: providerId,
|
|
3909
|
-
name: this.session.modelRegistry.getProviderDisplayName(providerId),
|
|
3910
|
-
authType: credential.type,
|
|
3911
|
-
});
|
|
3912
4024
|
}
|
|
3913
|
-
|
|
4025
|
+
this.showLoginProviderSelector(undefined, providerRef);
|
|
4026
|
+
}
|
|
4027
|
+
async startProviderLogin(providerOption) {
|
|
4028
|
+
if (providerOption.authType === "oauth") {
|
|
4029
|
+
await this.showLoginDialog(providerOption.id, providerOption.name);
|
|
4030
|
+
}
|
|
4031
|
+
else if (providerOption.method?.login) {
|
|
4032
|
+
await this.showApiKeyLoginDialog(providerOption.id, providerOption.name);
|
|
4033
|
+
}
|
|
4034
|
+
else {
|
|
4035
|
+
this.showAmbientAuthDialog(providerOption);
|
|
4036
|
+
}
|
|
3914
4037
|
}
|
|
3915
|
-
showLoginAuthTypeSelector() {
|
|
3916
|
-
const
|
|
3917
|
-
const
|
|
4038
|
+
showLoginAuthTypeSelector(providerOptions) {
|
|
4039
|
+
const oauthProvider = providerOptions?.find((provider) => provider.authType === "oauth");
|
|
4040
|
+
const oauthLoginLabel = oauthProvider?.method && "loginLabel" in oauthProvider.method ? oauthProvider.method.loginLabel : undefined;
|
|
4041
|
+
const subscriptionLabel = oauthLoginLabel ?? "Sign in with an account";
|
|
4042
|
+
const apiKeyLabel = "Sign in with an API key";
|
|
4043
|
+
const availableAuthTypes = providerOptions
|
|
4044
|
+
? new Set(providerOptions.map((provider) => provider.authType))
|
|
4045
|
+
: new Set(["oauth", "api_key"]);
|
|
4046
|
+
const options = [];
|
|
4047
|
+
if (availableAuthTypes.has("oauth")) {
|
|
4048
|
+
options.push(subscriptionLabel);
|
|
4049
|
+
}
|
|
4050
|
+
if (availableAuthTypes.has("api_key")) {
|
|
4051
|
+
options.push(apiKeyLabel);
|
|
4052
|
+
}
|
|
4053
|
+
if (options.length === 0) {
|
|
4054
|
+
this.showStatus("No login methods available.");
|
|
4055
|
+
return;
|
|
4056
|
+
}
|
|
4057
|
+
if (providerOptions && options.length === 1) {
|
|
4058
|
+
const providerOption = providerOptions[0];
|
|
4059
|
+
if (providerOption) {
|
|
4060
|
+
void this.startProviderLogin(providerOption);
|
|
4061
|
+
}
|
|
4062
|
+
return;
|
|
4063
|
+
}
|
|
4064
|
+
const title = providerOptions?.[0]
|
|
4065
|
+
? `Select authentication method for ${providerOptions[0].name}:`
|
|
4066
|
+
: "Select authentication method:";
|
|
3918
4067
|
this.showSelector((done) => {
|
|
3919
|
-
const selector = new ExtensionSelectorComponent(
|
|
4068
|
+
const selector = new ExtensionSelectorComponent(title, options, (option) => {
|
|
3920
4069
|
done();
|
|
3921
4070
|
const authType = option === subscriptionLabel ? "oauth" : "api_key";
|
|
4071
|
+
if (providerOptions) {
|
|
4072
|
+
const providerOption = providerOptions.find((provider) => provider.authType === authType);
|
|
4073
|
+
if (providerOption) {
|
|
4074
|
+
void this.startProviderLogin(providerOption);
|
|
4075
|
+
}
|
|
4076
|
+
return;
|
|
4077
|
+
}
|
|
3922
4078
|
this.showLoginProviderSelector(authType);
|
|
3923
4079
|
}, () => {
|
|
3924
4080
|
done();
|
|
@@ -3927,32 +4083,34 @@ export class InteractiveMode {
|
|
|
3927
4083
|
return { component: selector, focus: selector };
|
|
3928
4084
|
});
|
|
3929
4085
|
}
|
|
3930
|
-
showLoginProviderSelector(authType) {
|
|
4086
|
+
showLoginProviderSelector(authType, initialSearchInput) {
|
|
3931
4087
|
const providerOptions = this.getLoginProviderOptions(authType);
|
|
3932
4088
|
if (providerOptions.length === 0) {
|
|
3933
|
-
|
|
4089
|
+
const message = authType === "oauth"
|
|
4090
|
+
? "No subscription providers available."
|
|
4091
|
+
: authType === "api_key"
|
|
4092
|
+
? "No API key providers available."
|
|
4093
|
+
: "No login providers available.";
|
|
4094
|
+
this.showStatus(message);
|
|
3934
4095
|
return;
|
|
3935
4096
|
}
|
|
3936
4097
|
this.showSelector((done) => {
|
|
3937
|
-
const selector = new OAuthSelectorComponent("login",
|
|
4098
|
+
const selector = new OAuthSelectorComponent("login", providerOptions, async (providerId, selectedAuthType) => {
|
|
3938
4099
|
done();
|
|
3939
|
-
const providerOption = providerOptions.find((provider) => provider.id === providerId);
|
|
4100
|
+
const providerOption = providerOptions.find((provider) => provider.id === providerId && provider.authType === selectedAuthType);
|
|
3940
4101
|
if (!providerOption) {
|
|
3941
4102
|
return;
|
|
3942
4103
|
}
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
this.
|
|
4104
|
+
await this.startProviderLogin(providerOption);
|
|
4105
|
+
}, () => {
|
|
4106
|
+
done();
|
|
4107
|
+
if (authType) {
|
|
4108
|
+
this.showLoginAuthTypeSelector();
|
|
3948
4109
|
}
|
|
3949
4110
|
else {
|
|
3950
|
-
|
|
4111
|
+
this.ui.requestRender();
|
|
3951
4112
|
}
|
|
3952
|
-
},
|
|
3953
|
-
done();
|
|
3954
|
-
this.showLoginAuthTypeSelector();
|
|
3955
|
-
}, (providerId) => this.session.modelRegistry.getProviderAuthStatus(providerId));
|
|
4113
|
+
}, initialSearchInput);
|
|
3956
4114
|
return { component: selector, focus: selector };
|
|
3957
4115
|
});
|
|
3958
4116
|
}
|
|
@@ -3961,21 +4119,20 @@ export class InteractiveMode {
|
|
|
3961
4119
|
this.showLoginAuthTypeSelector();
|
|
3962
4120
|
return;
|
|
3963
4121
|
}
|
|
3964
|
-
const providerOptions = this.getLogoutProviderOptions();
|
|
4122
|
+
const providerOptions = await this.getLogoutProviderOptions();
|
|
3965
4123
|
if (providerOptions.length === 0) {
|
|
3966
4124
|
this.showStatus("No stored credentials to remove. /logout only removes credentials saved by /login; environment variables and models.json config are unchanged.");
|
|
3967
4125
|
return;
|
|
3968
4126
|
}
|
|
3969
4127
|
this.showSelector((done) => {
|
|
3970
|
-
const selector = new OAuthSelectorComponent(mode,
|
|
4128
|
+
const selector = new OAuthSelectorComponent(mode, providerOptions, async (providerId) => {
|
|
3971
4129
|
done();
|
|
3972
4130
|
const providerOption = providerOptions.find((provider) => provider.id === providerId);
|
|
3973
4131
|
if (!providerOption) {
|
|
3974
4132
|
return;
|
|
3975
4133
|
}
|
|
3976
4134
|
try {
|
|
3977
|
-
this.session.
|
|
3978
|
-
this.session.modelRegistry.refresh();
|
|
4135
|
+
await this.session.modelRuntime.logout(providerOption.id);
|
|
3979
4136
|
await this.updateAvailableProviderCount();
|
|
3980
4137
|
const message = providerOption.authType === "oauth"
|
|
3981
4138
|
? `Logged out of ${providerOption.name}`
|
|
@@ -3993,12 +4150,12 @@ export class InteractiveMode {
|
|
|
3993
4150
|
});
|
|
3994
4151
|
}
|
|
3995
4152
|
async completeProviderAuthentication(providerId, providerName, authType, previousModel) {
|
|
3996
|
-
this.session.
|
|
4153
|
+
await this.session.modelRuntime.getAvailable();
|
|
3997
4154
|
const actionLabel = authType === "oauth" ? `Logged in to ${providerName}` : `Saved API key for ${providerName}`;
|
|
3998
4155
|
let selectedModel;
|
|
3999
4156
|
let selectionError;
|
|
4000
4157
|
if (isUnknownModel(previousModel)) {
|
|
4001
|
-
const availableModels = this.session.
|
|
4158
|
+
const availableModels = await this.session.modelRuntime.getAvailable();
|
|
4002
4159
|
const providerModels = availableModels.filter((model) => model.provider === providerId);
|
|
4003
4160
|
if (!hasDefaultModelProvider(providerId)) {
|
|
4004
4161
|
selectionError = `${actionLabel}, but no default model is configured for provider "${providerId}". Use /model to select a model.`;
|
|
@@ -4042,20 +4199,15 @@ export class InteractiveMode {
|
|
|
4042
4199
|
}
|
|
4043
4200
|
}
|
|
4044
4201
|
}
|
|
4045
|
-
|
|
4202
|
+
showAmbientAuthDialog(providerOption) {
|
|
4046
4203
|
const restoreEditor = () => {
|
|
4047
4204
|
this.editorContainer.clear();
|
|
4048
4205
|
this.editorContainer.addChild(this.editor);
|
|
4049
4206
|
this.ui.setFocus(this.editor);
|
|
4050
4207
|
this.ui.requestRender();
|
|
4051
4208
|
};
|
|
4052
|
-
const dialog = new LoginDialogComponent(this.ui,
|
|
4053
|
-
dialog.showInfo([
|
|
4054
|
-
theme.fg("text", "Amazon Bedrock uses AWS credentials instead of a single API key."),
|
|
4055
|
-
theme.fg("text", "Configure an AWS profile, IAM keys, bearer token, or role-based credentials."),
|
|
4056
|
-
theme.fg("muted", "See:"),
|
|
4057
|
-
theme.fg("accent", ` ${path.join(getDocsPath(), "providers.md")}`),
|
|
4058
|
-
]);
|
|
4209
|
+
const dialog = new LoginDialogComponent(this.ui, providerOption.id, () => restoreEditor(), providerOption.name, `${providerOption.name} setup`);
|
|
4210
|
+
dialog.showInfo(`${providerOption.method?.name ?? "Authentication"} is configured outside pi.`, [], true);
|
|
4059
4211
|
this.editorContainer.clear();
|
|
4060
4212
|
this.editorContainer.addChild(dialog);
|
|
4061
4213
|
this.ui.setFocus(dialog);
|
|
@@ -4066,6 +4218,13 @@ export class InteractiveMode {
|
|
|
4066
4218
|
const dialog = new LoginDialogComponent(this.ui, providerId, (_success, _message) => {
|
|
4067
4219
|
// Completion handled below
|
|
4068
4220
|
}, providerName);
|
|
4221
|
+
if (providerId === "amazon-bedrock") {
|
|
4222
|
+
dialog.showDetails([
|
|
4223
|
+
theme.fg("text", "You can also use an AWS profile, IAM keys, or role-based credentials."),
|
|
4224
|
+
theme.fg("muted", "See:"),
|
|
4225
|
+
theme.fg("accent", ` ${path.join(getDocsPath(), "providers.md")}`),
|
|
4226
|
+
]);
|
|
4227
|
+
}
|
|
4069
4228
|
this.editorContainer.clear();
|
|
4070
4229
|
this.editorContainer.addChild(dialog);
|
|
4071
4230
|
this.ui.setFocus(dialog);
|
|
@@ -4077,11 +4236,7 @@ export class InteractiveMode {
|
|
|
4077
4236
|
this.ui.requestRender();
|
|
4078
4237
|
};
|
|
4079
4238
|
try {
|
|
4080
|
-
|
|
4081
|
-
if (!apiKey) {
|
|
4082
|
-
throw new Error("API key cannot be empty.");
|
|
4083
|
-
}
|
|
4084
|
-
this.session.modelRegistry.authStorage.set(providerId, { type: "api_key", key: apiKey });
|
|
4239
|
+
await this.loginProvider(dialog, providerId, "api_key");
|
|
4085
4240
|
restoreEditor();
|
|
4086
4241
|
await this.completeProviderAuthentication(providerId, providerName, "api_key", previousModel);
|
|
4087
4242
|
}
|
|
@@ -4093,8 +4248,8 @@ export class InteractiveMode {
|
|
|
4093
4248
|
}
|
|
4094
4249
|
}
|
|
4095
4250
|
}
|
|
4096
|
-
|
|
4097
|
-
return new Promise((resolve) => {
|
|
4251
|
+
showAuthSelect(dialog, prompt) {
|
|
4252
|
+
return new Promise((resolve, reject) => {
|
|
4098
4253
|
const restoreDialog = () => {
|
|
4099
4254
|
this.editorContainer.clear();
|
|
4100
4255
|
this.editorContainer.addChild(dialog);
|
|
@@ -4104,10 +4259,14 @@ export class InteractiveMode {
|
|
|
4104
4259
|
const labels = prompt.options.map((option) => option.label);
|
|
4105
4260
|
const selector = new ExtensionSelectorComponent(prompt.message, labels, (optionLabel) => {
|
|
4106
4261
|
restoreDialog();
|
|
4107
|
-
|
|
4262
|
+
const id = prompt.options.find((option) => option.label === optionLabel)?.id;
|
|
4263
|
+
if (id)
|
|
4264
|
+
resolve(id);
|
|
4265
|
+
else
|
|
4266
|
+
reject(new Error("Login cancelled"));
|
|
4108
4267
|
}, () => {
|
|
4109
4268
|
restoreDialog();
|
|
4110
|
-
|
|
4269
|
+
reject(new Error("Login cancelled"));
|
|
4111
4270
|
});
|
|
4112
4271
|
this.editorContainer.clear();
|
|
4113
4272
|
this.editorContainer.addChild(selector);
|
|
@@ -4115,30 +4274,64 @@ export class InteractiveMode {
|
|
|
4115
4274
|
this.ui.requestRender();
|
|
4116
4275
|
});
|
|
4117
4276
|
}
|
|
4277
|
+
async showAuthPrompt(dialog, prompt) {
|
|
4278
|
+
let response;
|
|
4279
|
+
if (prompt.type === "select") {
|
|
4280
|
+
response = this.showAuthSelect(dialog, prompt);
|
|
4281
|
+
}
|
|
4282
|
+
else if (prompt.type === "manual_code") {
|
|
4283
|
+
response = dialog.showManualInput(prompt.message);
|
|
4284
|
+
}
|
|
4285
|
+
else {
|
|
4286
|
+
response = dialog.showPrompt(prompt.message, prompt.placeholder);
|
|
4287
|
+
}
|
|
4288
|
+
if (!prompt.signal)
|
|
4289
|
+
return response;
|
|
4290
|
+
if (prompt.signal.aborted)
|
|
4291
|
+
throw new Error("Login cancelled");
|
|
4292
|
+
const signal = prompt.signal;
|
|
4293
|
+
let onAbort;
|
|
4294
|
+
const aborted = new Promise((_resolve, reject) => {
|
|
4295
|
+
onAbort = () => reject(new Error("Login cancelled"));
|
|
4296
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
4297
|
+
});
|
|
4298
|
+
try {
|
|
4299
|
+
return await Promise.race([response, aborted]);
|
|
4300
|
+
}
|
|
4301
|
+
finally {
|
|
4302
|
+
if (onAbort)
|
|
4303
|
+
signal.removeEventListener("abort", onAbort);
|
|
4304
|
+
}
|
|
4305
|
+
}
|
|
4306
|
+
notifyAuthDialog(dialog, event) {
|
|
4307
|
+
if (event.type === "auth_url") {
|
|
4308
|
+
dialog.showAuth(event.url, event.instructions);
|
|
4309
|
+
}
|
|
4310
|
+
else if (event.type === "device_code") {
|
|
4311
|
+
dialog.showDeviceCode(event);
|
|
4312
|
+
dialog.showWaiting("Waiting for authentication...");
|
|
4313
|
+
}
|
|
4314
|
+
else if (event.type === "info") {
|
|
4315
|
+
dialog.showInfo(event.message, event.links);
|
|
4316
|
+
}
|
|
4317
|
+
else {
|
|
4318
|
+
dialog.showProgress(event.message);
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4321
|
+
async loginProvider(dialog, providerId, method) {
|
|
4322
|
+
await this.session.modelRuntime.login(providerId, method, {
|
|
4323
|
+
signal: dialog.signal,
|
|
4324
|
+
prompt: (prompt) => this.showAuthPrompt(dialog, prompt),
|
|
4325
|
+
notify: (event) => this.notifyAuthDialog(dialog, event),
|
|
4326
|
+
});
|
|
4327
|
+
}
|
|
4118
4328
|
async showLoginDialog(providerId, providerName) {
|
|
4119
|
-
const providerInfo = this.session.modelRegistry.authStorage
|
|
4120
|
-
.getOAuthProviders()
|
|
4121
|
-
.find((provider) => provider.id === providerId);
|
|
4122
4329
|
const previousModel = this.session.model;
|
|
4123
|
-
|
|
4124
|
-
const usesCallbackServer = providerInfo?.usesCallbackServer ?? false;
|
|
4125
|
-
// Create login dialog component
|
|
4126
|
-
const dialog = new LoginDialogComponent(this.ui, providerId, (_success, _message) => {
|
|
4127
|
-
// Completion handled below
|
|
4128
|
-
}, providerName);
|
|
4129
|
-
// Show dialog in editor container
|
|
4330
|
+
const dialog = new LoginDialogComponent(this.ui, providerId, (_success, _message) => { }, providerName);
|
|
4130
4331
|
this.editorContainer.clear();
|
|
4131
4332
|
this.editorContainer.addChild(dialog);
|
|
4132
4333
|
this.ui.setFocus(dialog);
|
|
4133
4334
|
this.ui.requestRender();
|
|
4134
|
-
// Promise for manual code input (racing with callback server)
|
|
4135
|
-
let manualCodeResolve;
|
|
4136
|
-
let manualCodeReject;
|
|
4137
|
-
const manualCodePromise = new Promise((resolve, reject) => {
|
|
4138
|
-
manualCodeResolve = resolve;
|
|
4139
|
-
manualCodeReject = reject;
|
|
4140
|
-
});
|
|
4141
|
-
// Restore editor helper
|
|
4142
4335
|
const restoreEditor = () => {
|
|
4143
4336
|
this.editorContainer.clear();
|
|
4144
4337
|
this.editorContainer.addChild(this.editor);
|
|
@@ -4146,43 +4339,7 @@ export class InteractiveMode {
|
|
|
4146
4339
|
this.ui.requestRender();
|
|
4147
4340
|
};
|
|
4148
4341
|
try {
|
|
4149
|
-
await this.
|
|
4150
|
-
onAuth: (info) => {
|
|
4151
|
-
dialog.showAuth(info.url, info.instructions);
|
|
4152
|
-
if (usesCallbackServer) {
|
|
4153
|
-
// Show input for manual paste, racing with callback
|
|
4154
|
-
dialog
|
|
4155
|
-
.showManualInput("Paste redirect URL below, or complete login in browser:")
|
|
4156
|
-
.then((value) => {
|
|
4157
|
-
if (value && manualCodeResolve) {
|
|
4158
|
-
manualCodeResolve(value);
|
|
4159
|
-
manualCodeResolve = undefined;
|
|
4160
|
-
}
|
|
4161
|
-
})
|
|
4162
|
-
.catch(() => {
|
|
4163
|
-
if (manualCodeReject) {
|
|
4164
|
-
manualCodeReject(new Error("Login cancelled"));
|
|
4165
|
-
manualCodeReject = undefined;
|
|
4166
|
-
}
|
|
4167
|
-
});
|
|
4168
|
-
}
|
|
4169
|
-
// For Anthropic: onPrompt is called immediately after
|
|
4170
|
-
},
|
|
4171
|
-
onDeviceCode: (info) => {
|
|
4172
|
-
dialog.showDeviceCode(info);
|
|
4173
|
-
dialog.showWaiting("Waiting for authentication...");
|
|
4174
|
-
},
|
|
4175
|
-
onPrompt: async (prompt) => {
|
|
4176
|
-
return dialog.showPrompt(prompt.message, prompt.placeholder);
|
|
4177
|
-
},
|
|
4178
|
-
onProgress: (message) => {
|
|
4179
|
-
dialog.showProgress(message);
|
|
4180
|
-
},
|
|
4181
|
-
onSelect: (prompt) => this.showOAuthLoginSelect(dialog, prompt),
|
|
4182
|
-
onManualCodeInput: () => manualCodePromise,
|
|
4183
|
-
signal: dialog.signal,
|
|
4184
|
-
});
|
|
4185
|
-
// Success
|
|
4342
|
+
await this.loginProvider(dialog, providerId, "oauth");
|
|
4186
4343
|
restoreEditor();
|
|
4187
4344
|
await this.completeProviderAuthentication(providerId, providerName, "oauth", previousModel);
|
|
4188
4345
|
}
|
|
@@ -4211,7 +4368,7 @@ export class InteractiveMode {
|
|
|
4211
4368
|
const borderColor = (s) => theme.fg("border", s);
|
|
4212
4369
|
reloadBox.addChild(new DynamicBorder(borderColor));
|
|
4213
4370
|
reloadBox.addChild(new Spacer(1));
|
|
4214
|
-
reloadBox.addChild(new Text(theme.fg("muted", "Reloading keybindings, extensions, skills, prompts, themes..."), 1, 0));
|
|
4371
|
+
reloadBox.addChild(new Text(theme.fg("muted", "Reloading keybindings, extensions, skills, prompts, themes, and context files..."), 1, 0));
|
|
4215
4372
|
reloadBox.addChild(new Spacer(1));
|
|
4216
4373
|
reloadBox.addChild(new DynamicBorder(borderColor));
|
|
4217
4374
|
const previousEditor = this.editor;
|
|
@@ -4270,13 +4427,13 @@ export class InteractiveMode {
|
|
|
4270
4427
|
showDiagnosticsWhenQuiet: true,
|
|
4271
4428
|
});
|
|
4272
4429
|
const savedImplicitProjectTrust = this.maybeSaveImplicitProjectTrustAfterReload();
|
|
4273
|
-
const modelsJsonError = this.session.
|
|
4430
|
+
const modelsJsonError = this.session.modelRuntime.getError();
|
|
4274
4431
|
if (modelsJsonError) {
|
|
4275
4432
|
this.showError(`models.json error: ${modelsJsonError}`);
|
|
4276
4433
|
}
|
|
4277
4434
|
this.showStatus(savedImplicitProjectTrust
|
|
4278
|
-
? "Reloaded keybindings, extensions, skills, prompts, themes; saved project trust"
|
|
4279
|
-
: "Reloaded keybindings, extensions, skills, prompts, themes");
|
|
4435
|
+
? "Reloaded keybindings, extensions, skills, prompts, themes, and context files; saved project trust"
|
|
4436
|
+
: "Reloaded keybindings, extensions, skills, prompts, themes, and context files");
|
|
4280
4437
|
dismissReloadBox(this.editor);
|
|
4281
4438
|
reloadBoxDismissed = true;
|
|
4282
4439
|
}
|
|
@@ -4497,6 +4654,26 @@ export class InteractiveMode {
|
|
|
4497
4654
|
handleSessionCommand() {
|
|
4498
4655
|
const stats = this.session.getSessionStats();
|
|
4499
4656
|
const sessionName = this.sessionManager.getSessionName();
|
|
4657
|
+
const entries = this.sessionManager.getEntries();
|
|
4658
|
+
const cacheWaste = computeCacheWaste(entries, this.session.modelRuntime);
|
|
4659
|
+
// Cost/token totals per provider/model actually used (e.g. OpenRouter `auto`
|
|
4660
|
+
// resolves to a concrete responseModel), sorted by cost descending.
|
|
4661
|
+
const perModelMap = new Map();
|
|
4662
|
+
for (const entry of entries) {
|
|
4663
|
+
if (entry.type !== "message" || entry.message.role !== "assistant")
|
|
4664
|
+
continue;
|
|
4665
|
+
const message = entry.message;
|
|
4666
|
+
const usage = message.usage;
|
|
4667
|
+
const key = `${message.provider}/${message.responseModel ?? message.model}`;
|
|
4668
|
+
let bucket = perModelMap.get(key);
|
|
4669
|
+
if (!bucket) {
|
|
4670
|
+
bucket = { key, cost: 0, tokens: 0 };
|
|
4671
|
+
perModelMap.set(key, bucket);
|
|
4672
|
+
}
|
|
4673
|
+
bucket.cost += usage.cost.total;
|
|
4674
|
+
bucket.tokens += usage.input + usage.output + usage.cacheRead + usage.cacheWrite;
|
|
4675
|
+
}
|
|
4676
|
+
const perModel = Array.from(perModelMap.values()).sort((a, b) => b.cost - a.cost);
|
|
4500
4677
|
let info = `${theme.bold("Session Info")}\n\n`;
|
|
4501
4678
|
if (sessionName) {
|
|
4502
4679
|
info += `${theme.fg("dim", "Name:")} ${sessionName}\n`;
|
|
@@ -4504,24 +4681,42 @@ export class InteractiveMode {
|
|
|
4504
4681
|
info += `${theme.fg("dim", "File:")} ${stats.sessionFile ?? "In-memory"}\n`;
|
|
4505
4682
|
info += `${theme.fg("dim", "ID:")} ${stats.sessionId}\n\n`;
|
|
4506
4683
|
info += `${theme.bold("Messages")}\n`;
|
|
4684
|
+
info += `${theme.fg("dim", "Total:")} ${stats.totalMessages}\n`;
|
|
4507
4685
|
info += `${theme.fg("dim", "User:")} ${stats.userMessages}\n`;
|
|
4508
4686
|
info += `${theme.fg("dim", "Assistant:")} ${stats.assistantMessages}\n`;
|
|
4509
|
-
info += `${theme.fg("dim", "
|
|
4510
|
-
info += `${theme.fg("dim", "Tool Results:")} ${stats.toolResults}\n`;
|
|
4511
|
-
info += `${theme.fg("dim", "Total:")} ${stats.totalMessages}\n\n`;
|
|
4687
|
+
info += `${theme.fg("dim", "Tools:")} ${stats.toolCalls} calls, ${stats.toolResults} results\n\n`;
|
|
4512
4688
|
info += `${theme.bold("Tokens")}\n`;
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
}
|
|
4518
|
-
|
|
4519
|
-
|
|
4689
|
+
// "Input" is the full prompt volume. With cache activity, split it into
|
|
4690
|
+
// cached (served from cache) vs uncached (everything else) - the only
|
|
4691
|
+
// provider-independent split. Cache writes, where reported, are a detail
|
|
4692
|
+
// of the uncached portion.
|
|
4693
|
+
const { input, cacheRead, cacheWrite } = stats.tokens;
|
|
4694
|
+
const promptTokens = input + cacheRead + cacheWrite;
|
|
4695
|
+
info += `${theme.fg("dim", "Input:")} ${promptTokens.toLocaleString()}\n`;
|
|
4696
|
+
if (promptTokens > 0 && (cacheRead > 0 || cacheWrite > 0)) {
|
|
4697
|
+
const hitRate = theme.fg("dim", `(${((cacheRead / promptTokens) * 100).toFixed(1)}%)`);
|
|
4698
|
+
info += ` ${theme.fg("dim", "Cached:")} ${cacheRead.toLocaleString()} ${hitRate}\n`;
|
|
4699
|
+
const written = cacheWrite > 0 ? ` ${theme.fg("dim", `(${cacheWrite.toLocaleString()} written to cache)`)}` : "";
|
|
4700
|
+
info += ` ${theme.fg("dim", "Uncached:")} ${(input + cacheWrite).toLocaleString()}${written}\n`;
|
|
4520
4701
|
}
|
|
4702
|
+
info += `${theme.fg("dim", "Output:")} ${stats.tokens.output.toLocaleString()}\n`;
|
|
4521
4703
|
info += `${theme.fg("dim", "Total:")} ${stats.tokens.total.toLocaleString()}\n`;
|
|
4522
|
-
if (stats.cost > 0) {
|
|
4704
|
+
if (stats.cost > 0 || cacheWaste.missedTokens > 0) {
|
|
4523
4705
|
info += `\n${theme.bold("Cost")}\n`;
|
|
4524
|
-
info += `${theme.fg("dim", "Total:")}
|
|
4706
|
+
info += `${theme.fg("dim", "Total:")} $${stats.cost.toFixed(3)}`;
|
|
4707
|
+
if (perModel.length > 1) {
|
|
4708
|
+
for (const entry of perModel) {
|
|
4709
|
+
info += `\n ${theme.fg("dim", `${entry.key}:`)} $${entry.cost.toFixed(3)} ${theme.fg("dim", `(${formatTokens(entry.tokens)} tokens)`)}`;
|
|
4710
|
+
}
|
|
4711
|
+
}
|
|
4712
|
+
if (cacheWaste.missedTokens > 0) {
|
|
4713
|
+
const missLabel = cacheWaste.missCount === 1 ? "1 miss" : `${cacheWaste.missCount} misses`;
|
|
4714
|
+
const detail = `${cacheWaste.missedTokens.toLocaleString()} tokens, ${missLabel}`;
|
|
4715
|
+
info +=
|
|
4716
|
+
cacheWaste.missedCost >= 0.0001
|
|
4717
|
+
? `\n${theme.fg("dim", "Cache Re-billed:")} $${cacheWaste.missedCost.toFixed(3)} ${theme.fg("dim", `(${detail})`)}`
|
|
4718
|
+
: `\n${theme.fg("dim", "Cache Re-billed:")} ${detail}`;
|
|
4719
|
+
}
|
|
4525
4720
|
}
|
|
4526
4721
|
this.chatContainer.addChild(new Spacer(1));
|
|
4527
4722
|
this.chatContainer.addChild(new Text(info, 1, 0));
|
|
@@ -4593,6 +4788,7 @@ export class InteractiveMode {
|
|
|
4593
4788
|
const toggleThinking = this.getAppKeyDisplay("app.thinking.toggle");
|
|
4594
4789
|
const externalEditor = this.getAppKeyDisplay("app.editor.external");
|
|
4595
4790
|
const cycleModelBackward = this.getAppKeyDisplay("app.model.cycleBackward");
|
|
4791
|
+
const copyMessage = this.getAppKeyDisplay("app.message.copy");
|
|
4596
4792
|
const followUp = this.getAppKeyDisplay("app.message.followUp");
|
|
4597
4793
|
const dequeue = this.getAppKeyDisplay("app.message.dequeue");
|
|
4598
4794
|
const pasteImage = this.getAppKeyDisplay("app.clipboard.pasteImage");
|
|
@@ -4635,9 +4831,10 @@ export class InteractiveMode {
|
|
|
4635
4831
|
| \`${expandTools}\` | Toggle tool output expansion |
|
|
4636
4832
|
| \`${toggleThinking}\` | Toggle thinking block visibility |
|
|
4637
4833
|
| \`${externalEditor}\` | Edit message in external editor |
|
|
4834
|
+
| \`${copyMessage}\` | Copy last assistant message |
|
|
4638
4835
|
| \`${followUp}\` | Queue follow-up message |
|
|
4639
4836
|
| \`${dequeue}\` | Restore queued messages |
|
|
4640
|
-
| \`${pasteImage}\` | Paste image from clipboard |
|
|
4837
|
+
| \`${pasteImage}\` | Paste image or text from clipboard |
|
|
4641
4838
|
| \`/\` | Slash commands |
|
|
4642
4839
|
| \`!\` | Run bash command |
|
|
4643
4840
|
| \`!!\` | Run bash command (excluded from context) |
|