agent-relay 4.0.28 → 4.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/agent-relay-broker-darwin-arm64 +0 -0
- package/bin/agent-relay-broker-darwin-x64 +0 -0
- package/bin/agent-relay-broker-linux-arm64 +0 -0
- package/bin/agent-relay-broker-linux-x64 +0 -0
- package/dist/index.cjs +148 -27
- package/node_modules/@agent-relay/cloud/package.json +2 -2
- package/node_modules/@agent-relay/config/package.json +1 -1
- package/node_modules/@agent-relay/hooks/package.json +4 -4
- package/node_modules/@agent-relay/sdk/dist/relay.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/relay.js +6 -1
- package/node_modules/@agent-relay/sdk/dist/relay.js.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/__tests__/process-backend-executor.test.d.ts +2 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/__tests__/process-backend-executor.test.d.ts.map +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/__tests__/process-backend-executor.test.js +83 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/__tests__/process-backend-executor.test.js.map +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/index.d.ts +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/index.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/index.js +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/index.js.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/process-backend-executor.d.ts +19 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/process-backend-executor.d.ts.map +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/process-backend-executor.js +74 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/process-backend-executor.js.map +1 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.d.ts +14 -2
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js +12 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/types.d.ts +25 -0
- package/node_modules/@agent-relay/sdk/dist/workflows/types.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +2 -2
- package/node_modules/@agent-relay/telemetry/package.json +1 -1
- package/node_modules/@agent-relay/trajectory/package.json +2 -2
- package/node_modules/@agent-relay/user-directory/package.json +2 -2
- package/node_modules/@agent-relay/utils/package.json +2 -2
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +52 -50
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +52 -50
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +11 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js +4 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +9 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +17 -17
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@relaycast/sdk/dist/agent.d.ts +1 -0
- package/node_modules/@relaycast/sdk/dist/agent.d.ts.map +1 -1
- package/node_modules/@relaycast/sdk/dist/agent.js +13 -4
- package/node_modules/@relaycast/sdk/dist/agent.js.map +1 -1
- package/node_modules/@relaycast/sdk/dist/relay.d.ts +21 -8
- package/node_modules/@relaycast/sdk/dist/relay.d.ts.map +1 -1
- package/node_modules/@relaycast/sdk/dist/relay.js +59 -18
- package/node_modules/@relaycast/sdk/dist/relay.js.map +1 -1
- package/node_modules/@relaycast/sdk/dist/types.d.ts +142 -0
- package/node_modules/@relaycast/sdk/dist/types.d.ts.map +1 -1
- package/node_modules/@relaycast/sdk/dist/version.d.ts +1 -1
- package/node_modules/@relaycast/sdk/dist/version.js +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.d.ts +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.js +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.js.map +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/package.json +2 -2
- package/node_modules/@relaycast/sdk/package.json +3 -3
- package/node_modules/@relayfile/sdk/dist/client.js +1 -1
- package/node_modules/@relayfile/sdk/package.json +1 -1
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/hash-stream-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/md5-js/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/package.json +4 -4
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +6 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +5 -5
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +14 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -5
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +11 -5
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -3
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +8 -1
- package/node_modules/@smithy/smithy-client/dist-es/command.js +8 -1
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/connection/config.d.ts +5 -0
- package/node_modules/@smithy/types/dist-types/signature.d.ts +20 -3
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +15 -19
- package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +4 -3
- package/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js +2 -1
- package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +8 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/fast-xml-builder/package.json +1 -1
- package/node_modules/fast-xml-builder/src/fxb.js +6 -2
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +16 -2
- package/package.json +9 -9
- package/packages/cloud/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/hooks/package.json +4 -4
- package/packages/sdk/dist/relay.d.ts.map +1 -1
- package/packages/sdk/dist/relay.js +6 -1
- package/packages/sdk/dist/relay.js.map +1 -1
- package/packages/sdk/dist/workflows/__tests__/process-backend-executor.test.d.ts +2 -0
- package/packages/sdk/dist/workflows/__tests__/process-backend-executor.test.d.ts.map +1 -0
- package/packages/sdk/dist/workflows/__tests__/process-backend-executor.test.js +83 -0
- package/packages/sdk/dist/workflows/__tests__/process-backend-executor.test.js.map +1 -0
- package/packages/sdk/dist/workflows/index.d.ts +1 -0
- package/packages/sdk/dist/workflows/index.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/index.js +1 -0
- package/packages/sdk/dist/workflows/index.js.map +1 -1
- package/packages/sdk/dist/workflows/process-backend-executor.d.ts +19 -0
- package/packages/sdk/dist/workflows/process-backend-executor.d.ts.map +1 -0
- package/packages/sdk/dist/workflows/process-backend-executor.js +74 -0
- package/packages/sdk/dist/workflows/process-backend-executor.js.map +1 -0
- package/packages/sdk/dist/workflows/runner.d.ts +14 -2
- package/packages/sdk/dist/workflows/runner.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/runner.js +12 -0
- package/packages/sdk/dist/workflows/runner.js.map +1 -1
- package/packages/sdk/dist/workflows/types.d.ts +25 -0
- package/packages/sdk/dist/workflows/types.d.ts.map +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/telemetry/package.json +1 -1
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/signature-v4",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.14",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@smithy/is-array-buffer": "^4.2.2",
|
|
29
|
-
"@smithy/protocol-http": "^5.3.
|
|
30
|
-
"@smithy/types": "^4.14.
|
|
29
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
30
|
+
"@smithy/types": "^4.14.1",
|
|
31
31
|
"@smithy/util-hex-encoding": "^4.2.2",
|
|
32
|
-
"@smithy/util-middleware": "^4.2.
|
|
32
|
+
"@smithy/util-middleware": "^4.2.14",
|
|
33
33
|
"@smithy/util-uri-escape": "^4.2.2",
|
|
34
34
|
"@smithy/util-utf8": "^4.2.2",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
@@ -116,7 +116,14 @@ class Command {
|
|
|
116
116
|
...additionalContext,
|
|
117
117
|
};
|
|
118
118
|
const { requestHandler } = configuration;
|
|
119
|
-
|
|
119
|
+
let requestOptions = options ?? {};
|
|
120
|
+
if (smithyContext.eventStream) {
|
|
121
|
+
requestOptions = {
|
|
122
|
+
isEventStream: true,
|
|
123
|
+
...requestOptions,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
return stack.resolve((request) => requestHandler.handle(request.request, requestOptions), handlerExecutionContext);
|
|
120
127
|
}
|
|
121
128
|
}
|
|
122
129
|
class ClassBuilder {
|
|
@@ -26,7 +26,14 @@ export class Command {
|
|
|
26
26
|
...additionalContext,
|
|
27
27
|
};
|
|
28
28
|
const { requestHandler } = configuration;
|
|
29
|
-
|
|
29
|
+
let requestOptions = options ?? {};
|
|
30
|
+
if (smithyContext.eventStream) {
|
|
31
|
+
requestOptions = {
|
|
32
|
+
isEventStream: true,
|
|
33
|
+
...requestOptions,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, requestOptions), handlerExecutionContext);
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
39
|
class ClassBuilder {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.11",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline smithy-client",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/core": "^3.23.
|
|
30
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
31
|
-
"@smithy/middleware-stack": "^4.2.
|
|
32
|
-
"@smithy/protocol-http": "^5.3.
|
|
33
|
-
"@smithy/types": "^4.14.
|
|
34
|
-
"@smithy/util-stream": "^4.5.
|
|
29
|
+
"@smithy/core": "^3.23.15",
|
|
30
|
+
"@smithy/middleware-endpoint": "^4.4.30",
|
|
31
|
+
"@smithy/middleware-stack": "^4.2.14",
|
|
32
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
33
|
+
"@smithy/types": "^4.14.1",
|
|
34
|
+
"@smithy/util-stream": "^4.5.23",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
@@ -7,4 +7,9 @@ export interface ConnectConfiguration {
|
|
|
7
7
|
* may take before the connection attempt is abandoned.
|
|
8
8
|
*/
|
|
9
9
|
requestTimeout?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Signal from the Command class object context,
|
|
12
|
+
* tells the connection manager to use a new connection.
|
|
13
|
+
*/
|
|
14
|
+
isEventStream?: boolean;
|
|
10
15
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Message } from "./eventStream";
|
|
2
2
|
import type { HttpRequest } from "./http";
|
|
3
|
+
import type { AwsCredentialIdentity } from "./identity/awsCredentialIdentity";
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*
|
|
@@ -76,9 +77,25 @@ export interface RequestPresigningArguments extends RequestSigningArguments {
|
|
|
76
77
|
/**
|
|
77
78
|
* @public
|
|
78
79
|
*/
|
|
79
|
-
export interface EventSigningArguments extends SigningArguments {
|
|
80
|
+
export interface EventSigningArguments extends SigningArguments, EventStreamRequestScopedCredentials {
|
|
80
81
|
priorSignature: string;
|
|
81
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export interface MessageSigningArguments extends SigningArguments, EventStreamRequestScopedCredentials {
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
export interface EventStreamRequestScopedCredentials {
|
|
92
|
+
/**
|
|
93
|
+
* Optional, static credentials used for the duration of the event-stream request.
|
|
94
|
+
* If not provided, the signer's internal credential provider would be used, if
|
|
95
|
+
* the signer is SignatureV4.
|
|
96
|
+
*/
|
|
97
|
+
eventStreamCredentials?: AwsCredentialIdentity;
|
|
98
|
+
}
|
|
82
99
|
/**
|
|
83
100
|
* @public
|
|
84
101
|
*/
|
|
@@ -150,6 +167,6 @@ export interface SignedMessage {
|
|
|
150
167
|
* @public
|
|
151
168
|
*/
|
|
152
169
|
export interface MessageSigner {
|
|
153
|
-
signMessage(message: SignableMessage, args:
|
|
154
|
-
sign(event: SignableMessage, options:
|
|
170
|
+
signMessage(message: SignableMessage, args: MessageSigningArguments): Promise<SignedMessage>;
|
|
171
|
+
sign(event: SignableMessage, options: MessageSigningArguments): Promise<SignedMessage>;
|
|
155
172
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/url-parser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline url-parser",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/querystring-parser": "^4.2.
|
|
27
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/querystring-parser": "^4.2.14",
|
|
27
|
+
"@smithy/types": "^4.14.1",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.47",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline util-defaults-mode-browser",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/property-provider": "^4.2.
|
|
27
|
-
"@smithy/smithy-client": "^4.12.
|
|
28
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/property-provider": "^4.2.14",
|
|
27
|
+
"@smithy/smithy-client": "^4.12.11",
|
|
28
|
+
"@smithy/types": "^4.14.1",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.52",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline util-defaults-mode-node",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/config-resolver": "^4.4.
|
|
27
|
-
"@smithy/credential-provider-imds": "^4.2.
|
|
28
|
-
"@smithy/node-config-provider": "^4.3.
|
|
29
|
-
"@smithy/property-provider": "^4.2.
|
|
30
|
-
"@smithy/smithy-client": "^4.12.
|
|
31
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/config-resolver": "^4.4.16",
|
|
27
|
+
"@smithy/credential-provider-imds": "^4.2.14",
|
|
28
|
+
"@smithy/node-config-provider": "^4.3.14",
|
|
29
|
+
"@smithy/property-provider": "^4.2.14",
|
|
30
|
+
"@smithy/smithy-client": "^4.12.11",
|
|
31
|
+
"@smithy/types": "^4.14.1",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -134,7 +134,8 @@ const getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
|
|
|
134
134
|
throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
|
|
135
135
|
}
|
|
136
136
|
else if (Array.isArray(acc)) {
|
|
137
|
-
|
|
137
|
+
const i = parseInt(index);
|
|
138
|
+
return acc[i < 0 ? acc.length + i : i];
|
|
138
139
|
}
|
|
139
140
|
return acc[index];
|
|
140
141
|
}, value);
|
|
@@ -346,7 +347,7 @@ const evaluateCondition = ({ assign, ...fnArgs }, options) => {
|
|
|
346
347
|
};
|
|
347
348
|
};
|
|
348
349
|
|
|
349
|
-
const getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
|
|
350
|
+
const getEndpointHeaders = (headers, options) => Object.entries(headers ?? {}).reduce((acc, [headerKey, headerVal]) => ({
|
|
350
351
|
...acc,
|
|
351
352
|
[headerKey]: headerVal.map((headerValEntry) => {
|
|
352
353
|
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
|
@@ -422,14 +423,14 @@ const decideEndpoint = (bdd, options) => {
|
|
|
422
423
|
if (ref >= RESULT) {
|
|
423
424
|
const result = results[ref - RESULT];
|
|
424
425
|
if (result[0] === -1) {
|
|
425
|
-
const [,
|
|
426
|
-
throw new EndpointError(
|
|
426
|
+
const [, errorExpression] = result;
|
|
427
|
+
throw new EndpointError(evaluateExpression(errorExpression, "Error", closure));
|
|
427
428
|
}
|
|
428
429
|
const [url, properties, headers] = result;
|
|
429
430
|
return {
|
|
430
431
|
url: getEndpointUrl(url, closure),
|
|
431
432
|
properties: getEndpointProperties(properties, closure),
|
|
432
|
-
headers: getEndpointHeaders(headers, closure),
|
|
433
|
+
headers: getEndpointHeaders(headers ?? {}, closure),
|
|
433
434
|
};
|
|
434
435
|
}
|
|
435
436
|
throw new EndpointError(`No matching endpoint.`);
|
|
@@ -534,20 +535,15 @@ const resolveEndpoint = (ruleSetObject, options) => {
|
|
|
534
535
|
const { endpointParams, logger } = options;
|
|
535
536
|
const { parameters, rules } = ruleSetObject;
|
|
536
537
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
537
|
-
const
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
.filter(([, v]) => v.required)
|
|
547
|
-
.map(([k]) => k);
|
|
548
|
-
for (const requiredParam of requiredParams) {
|
|
549
|
-
if (endpointParams[requiredParam] == null) {
|
|
550
|
-
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
|
538
|
+
for (const paramKey in parameters) {
|
|
539
|
+
const parameter = parameters[paramKey];
|
|
540
|
+
const endpointParam = endpointParams[paramKey];
|
|
541
|
+
if (endpointParam == null && parameter.default != null) {
|
|
542
|
+
endpointParams[paramKey] = parameter.default;
|
|
543
|
+
continue;
|
|
544
|
+
}
|
|
545
|
+
if (parameter.required && endpointParam == null) {
|
|
546
|
+
throw new EndpointError(`Missing required parameter: '${paramKey}'`);
|
|
551
547
|
}
|
|
552
548
|
}
|
|
553
549
|
const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EndpointError } from "./types";
|
|
2
2
|
import { evaluateCondition } from "./utils/evaluateCondition";
|
|
3
|
+
import { evaluateExpression } from "./utils/evaluateExpression";
|
|
3
4
|
import { getEndpointHeaders } from "./utils/getEndpointHeaders";
|
|
4
5
|
import { getEndpointProperties } from "./utils/getEndpointProperties";
|
|
5
6
|
import { getEndpointUrl } from "./utils/getEndpointUrl";
|
|
@@ -27,14 +28,14 @@ export const decideEndpoint = (bdd, options) => {
|
|
|
27
28
|
if (ref >= RESULT) {
|
|
28
29
|
const result = results[ref - RESULT];
|
|
29
30
|
if (result[0] === -1) {
|
|
30
|
-
const [,
|
|
31
|
-
throw new EndpointError(
|
|
31
|
+
const [, errorExpression] = result;
|
|
32
|
+
throw new EndpointError(evaluateExpression(errorExpression, "Error", closure));
|
|
32
33
|
}
|
|
33
34
|
const [url, properties, headers] = result;
|
|
34
35
|
return {
|
|
35
36
|
url: getEndpointUrl(url, closure),
|
|
36
37
|
properties: getEndpointProperties(properties, closure),
|
|
37
|
-
headers: getEndpointHeaders(headers, closure),
|
|
38
|
+
headers: getEndpointHeaders(headers ?? {}, closure),
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
throw new EndpointError(`No matching endpoint.`);
|
|
@@ -5,7 +5,8 @@ export const getAttr = (value, path) => getAttrPathList(path).reduce((acc, index
|
|
|
5
5
|
throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
|
|
6
6
|
}
|
|
7
7
|
else if (Array.isArray(acc)) {
|
|
8
|
-
|
|
8
|
+
const i = parseInt(index);
|
|
9
|
+
return acc[i < 0 ? acc.length + i : i];
|
|
9
10
|
}
|
|
10
11
|
return acc[index];
|
|
11
12
|
}, value);
|
|
@@ -5,20 +5,15 @@ export const resolveEndpoint = (ruleSetObject, options) => {
|
|
|
5
5
|
const { endpointParams, logger } = options;
|
|
6
6
|
const { parameters, rules } = ruleSetObject;
|
|
7
7
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
for (const paramKey in parameters) {
|
|
9
|
+
const parameter = parameters[paramKey];
|
|
10
|
+
const endpointParam = endpointParams[paramKey];
|
|
11
|
+
if (endpointParam == null && parameter.default != null) {
|
|
12
|
+
endpointParams[paramKey] = parameter.default;
|
|
13
|
+
continue;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.filter(([, v]) => v.required)
|
|
18
|
-
.map(([k]) => k);
|
|
19
|
-
for (const requiredParam of requiredParams) {
|
|
20
|
-
if (endpointParams[requiredParam] == null) {
|
|
21
|
-
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
|
15
|
+
if (parameter.required && endpointParam == null) {
|
|
16
|
+
throw new EndpointError(`Missing required parameter: '${paramKey}'`);
|
|
22
17
|
}
|
|
23
18
|
}
|
|
24
19
|
const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EndpointError } from "../types";
|
|
2
2
|
import { evaluateExpression } from "./evaluateExpression";
|
|
3
|
-
export const getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
|
|
3
|
+
export const getEndpointHeaders = (headers, options) => Object.entries(headers ?? {}).reduce((acc, [headerKey, headerVal]) => ({
|
|
4
4
|
...acc,
|
|
5
5
|
[headerKey]: headerVal.map((headerValEntry) => {
|
|
6
6
|
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EndpointObjectHeaders, ParameterObject } from "@smithy/types";
|
|
2
|
-
import type { FunctionArgv } from "../types/shared";
|
|
2
|
+
import type { Expression, FunctionArgv } from "../types/shared";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ type BddCondition = [string, FunctionArgv] | [string, FunctionArgv, string];
|
|
|
7
7
|
/**
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
|
-
type BddResult = [-1] | [-1,
|
|
10
|
+
type BddResult = [-1] | [-1, Expression] | [string, Record<string, ParameterObject>, EndpointObjectHeaders] | [string, Record<string, ParameterObject>];
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-endpoints",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@smithy/node-config-provider": "^4.3.
|
|
32
|
-
"@smithy/types": "^4.14.
|
|
31
|
+
"@smithy/node-config-provider": "^4.3.14",
|
|
32
|
+
"@smithy/types": "^4.14.1",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-middleware",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"description": "Shared utilities for to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/types": "^4.14.
|
|
30
|
+
"@smithy/types": "^4.14.1",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-retry",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"sideEffects": false,
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@smithy/service-error-classification": "^4.2.
|
|
34
|
-
"@smithy/types": "^4.14.
|
|
33
|
+
"@smithy/service-error-classification": "^4.2.14",
|
|
34
|
+
"@smithy/types": "^4.14.1",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-stream",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline util-stream",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
32
|
-
"@smithy/node-http-handler": "^4.5.
|
|
33
|
-
"@smithy/types": "^4.14.
|
|
31
|
+
"@smithy/fetch-http-handler": "^5.3.17",
|
|
32
|
+
"@smithy/node-http-handler": "^4.5.3",
|
|
33
|
+
"@smithy/types": "^4.14.1",
|
|
34
34
|
"@smithy/util-base64": "^4.3.2",
|
|
35
35
|
"@smithy/util-buffer-from": "^4.2.2",
|
|
36
36
|
"@smithy/util-hex-encoding": "^4.2.2",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-waiter",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.16",
|
|
4
4
|
"description": "Shared utilities for client waiters for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@smithy/types": "^4.14.
|
|
6
|
+
"@smithy/types": "^4.14.1",
|
|
7
7
|
"tslib": "^2.6.2"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"directory": "packages/util-waiter"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@smithy/abort-controller": "^4.2.
|
|
50
|
+
"@smithy/abort-controller": "^4.2.14",
|
|
51
51
|
"concurrently": "7.0.0",
|
|
52
52
|
"downlevel-dts": "0.10.1",
|
|
53
53
|
"premove": "4.0.0",
|
|
@@ -486,9 +486,13 @@ function buildEmptyObjNode(val, key, attrStr, level) {
|
|
|
486
486
|
|
|
487
487
|
Builder.prototype.buildTextValNode = function (val, key, attrStr, level, matcher) {
|
|
488
488
|
if (this.options.cdataPropName !== false && key === this.options.cdataPropName) {
|
|
489
|
-
|
|
489
|
+
const safeVal = String(val).replace(/\]\]>/g, ']]]]><![CDATA[>');
|
|
490
|
+
return this.indentate(level) + `<![CDATA[${safeVal}]]>` + this.newLine;
|
|
490
491
|
} else if (this.options.commentPropName !== false && key === this.options.commentPropName) {
|
|
491
|
-
|
|
492
|
+
const safeVal = String(val)
|
|
493
|
+
.replace(/--/g, '- -') // -- is illegal anywhere in comment content
|
|
494
|
+
.replace(/-$/, '- '); // trailing - would form -- with the closing -->
|
|
495
|
+
return this.indentate(level) + `<!--${safeVal}-->` + this.newLine;
|
|
492
496
|
} else if (key[0] === "?") {//PI tag
|
|
493
497
|
return this.indentate(level) + '<' + key + attrStr + '?' + this.tagEndChar;
|
|
494
498
|
} else {
|
|
@@ -82,12 +82,18 @@ function arrToStr(arr, options, indentation, matcher, stopNodeExpressions) {
|
|
|
82
82
|
if (isPreviousElementTag) {
|
|
83
83
|
xmlStr += indentation;
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
const val = tagObj[tagName][0][options.textNodeName];
|
|
86
|
+
const safeVal = String(val).replace(/\]\]>/g, ']]]]><![CDATA[>');
|
|
87
|
+
xmlStr += `<![CDATA[${safeVal}]]>`;
|
|
86
88
|
isPreviousElementTag = false;
|
|
87
89
|
matcher.pop();
|
|
88
90
|
continue;
|
|
89
91
|
} else if (tagName === options.commentPropName) {
|
|
90
|
-
|
|
92
|
+
const val = tagObj[tagName][0][options.textNodeName]
|
|
93
|
+
const safeVal = String(val)
|
|
94
|
+
.replace(/--/g, '- -') // -- is illegal anywhere in comment content
|
|
95
|
+
.replace(/-$/, '- '); // trailing - would form -- with the closing -->
|
|
96
|
+
xmlStr += indentation + `<!--${safeVal}-->`;
|
|
91
97
|
isPreviousElementTag = true;
|
|
92
98
|
matcher.pop();
|
|
93
99
|
continue;
|
|
@@ -289,4 +295,12 @@ function replaceEntitiesValue(textValue, options) {
|
|
|
289
295
|
}
|
|
290
296
|
}
|
|
291
297
|
return textValue;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function cdataVal(val) {
|
|
301
|
+
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function commentVal(val) {
|
|
305
|
+
|
|
292
306
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-relay",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.29",
|
|
4
4
|
"description": "Real-time agent-to-agent communication system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -196,14 +196,14 @@
|
|
|
196
196
|
},
|
|
197
197
|
"homepage": "https://github.com/AgentWorkforce/relay#readme",
|
|
198
198
|
"dependencies": {
|
|
199
|
-
"@agent-relay/cloud": "4.0.
|
|
200
|
-
"@agent-relay/config": "4.0.
|
|
201
|
-
"@agent-relay/hooks": "4.0.
|
|
202
|
-
"@agent-relay/sdk": "4.0.
|
|
203
|
-
"@agent-relay/telemetry": "4.0.
|
|
204
|
-
"@agent-relay/trajectory": "4.0.
|
|
205
|
-
"@agent-relay/user-directory": "4.0.
|
|
206
|
-
"@agent-relay/utils": "4.0.
|
|
199
|
+
"@agent-relay/cloud": "4.0.29",
|
|
200
|
+
"@agent-relay/config": "4.0.29",
|
|
201
|
+
"@agent-relay/hooks": "4.0.29",
|
|
202
|
+
"@agent-relay/sdk": "4.0.29",
|
|
203
|
+
"@agent-relay/telemetry": "4.0.29",
|
|
204
|
+
"@agent-relay/trajectory": "4.0.29",
|
|
205
|
+
"@agent-relay/user-directory": "4.0.29",
|
|
206
|
+
"@agent-relay/utils": "4.0.29",
|
|
207
207
|
"@aws-sdk/client-s3": "3.1020.0",
|
|
208
208
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
209
209
|
"@relayauth/core": "^0.1.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/cloud",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.29",
|
|
4
4
|
"description": "Cloud SDK for Agent Relay — auth, workflow execution, and provider connections",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test:watch": "vitest"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@agent-relay/config": "4.0.
|
|
26
|
+
"@agent-relay/config": "4.0.29",
|
|
27
27
|
"@aws-sdk/client-s3": "3.1020.0",
|
|
28
28
|
"ignore": "^7.0.5",
|
|
29
29
|
"tar": "^7.5.10"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/hooks",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.29",
|
|
4
4
|
"description": "Hook emitter, registry, and trajectory hooks for Agent Relay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"test:watch": "vitest"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@agent-relay/config": "4.0.
|
|
41
|
-
"@agent-relay/trajectory": "4.0.
|
|
42
|
-
"@agent-relay/sdk": "4.0.
|
|
40
|
+
"@agent-relay/config": "4.0.29",
|
|
41
|
+
"@agent-relay/trajectory": "4.0.29",
|
|
42
|
+
"@agent-relay/sdk": "4.0.29"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^22.19.3",
|