@aws/agentcore 1.0.0-preview.2 → 1.0.0-preview.20
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/README.md +193 -33
- package/dist/agent-inspector/index.css +1 -1
- package/dist/agent-inspector/index.js +99 -84
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +3132 -366
- package/dist/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap +6 -2
- package/dist/assets/__tests__/assets.snapshot.test.ts +10 -24
- package/dist/assets/__tests__/googleadk-session-eviction.test.ts +87 -0
- package/dist/assets/__tests__/summarization-namespace.test.ts +43 -0
- package/dist/assets/agents/AGENTS.md +87 -11
- package/dist/assets/cdk/bin/cdk.ts +87 -26
- package/dist/assets/cdk/lib/cdk-stack.ts +185 -55
- package/dist/assets/cdk/package.json +1 -1
- package/dist/assets/cdk/test/cdk.test.ts +4 -0
- package/dist/assets/container/python/Dockerfile +7 -1
- package/dist/assets/container/typescript/Dockerfile +25 -0
- package/dist/assets/container/typescript/dockerignore.template +24 -0
- package/dist/assets/datasets/predefined-v1.jsonl +3 -0
- package/dist/assets/datasets/simulated-v1.jsonl +3 -0
- package/dist/assets/python/a2a/googleadk/base/main.py +24 -16
- package/dist/assets/python/a2a/googleadk/base/pyproject.toml +3 -3
- package/dist/assets/python/a2a/langchain_langgraph/base/main.py +24 -16
- package/dist/assets/python/a2a/langchain_langgraph/base/pyproject.toml +3 -2
- package/dist/assets/python/a2a/strands/base/main.py +23 -17
- package/dist/assets/python/a2a/strands/base/pyproject.toml +2 -2
- package/dist/assets/python/a2a/strands/capabilities/memory/session.py +10 -2
- package/dist/assets/python/agui/googleadk/base/main.py +62 -2
- package/dist/assets/python/agui/googleadk/base/pyproject.toml +3 -3
- package/dist/assets/python/agui/langchain_langgraph/base/main.py +56 -0
- package/dist/assets/python/agui/langchain_langgraph/base/pyproject.toml +2 -1
- package/dist/assets/python/agui/strands/base/main.py +63 -1
- package/dist/assets/python/agui/strands/base/pyproject.toml +1 -1
- package/dist/assets/python/agui/strands/capabilities/memory/session.py +10 -2
- package/dist/assets/python/http/autogen/base/main.py +60 -29
- package/dist/assets/python/http/autogen/base/pyproject.toml +1 -1
- package/dist/assets/python/http/googleadk/base/main.py +69 -24
- package/dist/assets/python/http/googleadk/base/mcp_client/client.py +7 -7
- package/dist/assets/python/http/googleadk/base/pyproject.toml +2 -1
- package/dist/assets/python/http/langchain_langgraph/base/main.py +115 -24
- package/dist/assets/python/http/langchain_langgraph/base/mcp_client/client.py +10 -8
- package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +3 -2
- package/dist/assets/python/http/openaiagents/base/main.py +61 -32
- package/dist/assets/python/http/openaiagents/base/mcp_client/client.py +4 -4
- package/dist/assets/python/http/openaiagents/base/pyproject.toml +2 -2
- package/dist/assets/python/http/strands/base/main.py +571 -47
- package/dist/assets/python/http/strands/base/mcp_client/client.py +49 -6
- package/dist/assets/python/http/strands/base/model/load.py +119 -3
- package/dist/assets/python/http/strands/base/model/mantle_compat.py +21 -0
- package/dist/assets/python/http/strands/base/pyproject.toml +9 -3
- package/dist/assets/python/http/strands/base/skills/fetcher.py +279 -0
- package/dist/assets/python/http/strands/capabilities/execution-limits/hooks/execution_limits.py +54 -0
- package/dist/assets/python/http/strands/capabilities/memory/session.py +10 -2
- package/dist/assets/python/http/strands/capabilities/payments/__init__.py +4 -0
- package/dist/assets/python/http/strands/capabilities/payments/payments.py +142 -0
- package/dist/assets/python/mcp/standalone/base/main.py +58 -0
- package/dist/assets/typescript/http/strands/base/README.md +37 -0
- package/dist/assets/typescript/http/strands/base/gitignore.template +22 -0
- package/dist/assets/typescript/http/strands/base/main.ts +144 -0
- package/dist/assets/typescript/http/strands/base/mcp_client/client.ts +11 -0
- package/dist/assets/typescript/http/strands/base/model/load.ts +102 -0
- package/dist/assets/typescript/http/strands/base/package.json +38 -0
- package/dist/assets/typescript/http/strands/base/tsconfig.json +19 -0
- package/dist/assets/typescript/http/strands/capabilities/memory/memory.ts +52 -0
- package/dist/assets/typescript/http/vercelai/base/README.md +37 -0
- package/dist/assets/typescript/http/vercelai/base/gitignore.template +22 -0
- package/dist/assets/typescript/http/vercelai/base/main.ts +64 -0
- package/dist/assets/typescript/http/vercelai/base/model/load.ts +121 -0
- package/dist/assets/typescript/http/vercelai/base/package.json +35 -0
- package/dist/assets/typescript/http/vercelai/base/tsconfig.json +19 -0
- package/dist/cli/index.mjs +1416 -568
- package/dist/lib/errors/index.d.ts +1 -1
- package/dist/lib/errors/index.d.ts.map +1 -1
- package/dist/lib/errors/index.js +1 -1
- package/dist/lib/errors/index.js.map +1 -1
- package/dist/lib/errors/types.d.ts +259 -0
- package/dist/lib/errors/types.d.ts.map +1 -0
- package/dist/lib/errors/types.js +402 -0
- package/dist/lib/errors/types.js.map +1 -0
- package/dist/lib/errors/zod.d.ts +8 -0
- package/dist/lib/errors/zod.d.ts.map +1 -0
- package/dist/lib/errors/{config.js → zod.js} +8 -81
- package/dist/lib/errors/zod.js.map +1 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +4 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/packaging/build-args.js +2 -2
- package/dist/lib/packaging/build-args.js.map +1 -1
- package/dist/lib/packaging/container.js +5 -5
- package/dist/lib/packaging/container.js.map +1 -1
- package/dist/lib/packaging/helpers.d.ts +16 -0
- package/dist/lib/packaging/helpers.d.ts.map +1 -1
- package/dist/lib/packaging/helpers.js +127 -29
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/packaging/index.d.ts +0 -1
- package/dist/lib/packaging/index.d.ts.map +1 -1
- package/dist/lib/packaging/index.js +4 -19
- package/dist/lib/packaging/index.js.map +1 -1
- package/dist/lib/packaging/node.d.ts +2 -2
- package/dist/lib/packaging/node.d.ts.map +1 -1
- package/dist/lib/packaging/node.js +83 -38
- package/dist/lib/packaging/node.js.map +1 -1
- package/dist/lib/packaging/python.js +12 -12
- package/dist/lib/packaging/python.js.map +1 -1
- package/dist/lib/result.d.ts +50 -0
- package/dist/lib/result.d.ts.map +1 -0
- package/dist/lib/result.js +49 -0
- package/dist/lib/result.js.map +1 -0
- package/dist/lib/schemas/io/config-io.d.ts +8 -0
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +21 -3
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/lib/schemas/io/global-config.d.ts +40 -0
- package/dist/lib/schemas/io/global-config.d.ts.map +1 -0
- package/dist/lib/schemas/io/global-config.js +118 -0
- package/dist/lib/schemas/io/global-config.js.map +1 -0
- package/dist/lib/schemas/io/index.d.ts +1 -2
- package/dist/lib/schemas/io/index.d.ts.map +1 -1
- package/dist/lib/schemas/io/index.js +1 -4
- package/dist/lib/schemas/io/index.js.map +1 -1
- package/dist/lib/schemas/io/path-resolver.d.ts +0 -6
- package/dist/lib/schemas/io/path-resolver.d.ts.map +1 -1
- package/dist/lib/schemas/io/path-resolver.js +3 -13
- package/dist/lib/schemas/io/path-resolver.js.map +1 -1
- package/dist/lib/secrets/cipher.d.ts +12 -0
- package/dist/lib/secrets/cipher.d.ts.map +1 -0
- package/dist/lib/secrets/cipher.js +54 -0
- package/dist/lib/secrets/cipher.js.map +1 -0
- package/dist/lib/secrets/index.d.ts +4 -0
- package/dist/lib/secrets/index.d.ts.map +1 -0
- package/dist/lib/secrets/index.js +15 -0
- package/dist/lib/secrets/index.js.map +1 -0
- package/dist/lib/secrets/key-provider.d.ts +16 -0
- package/dist/lib/secrets/key-provider.d.ts.map +1 -0
- package/dist/lib/secrets/key-provider.js +191 -0
- package/dist/lib/secrets/key-provider.js.map +1 -0
- package/dist/lib/secrets/sensitive-keys.d.ts +21 -0
- package/dist/lib/secrets/sensitive-keys.d.ts.map +1 -0
- package/dist/lib/secrets/sensitive-keys.js +67 -0
- package/dist/lib/secrets/sensitive-keys.js.map +1 -0
- package/dist/lib/time-constants.d.ts +5 -0
- package/dist/lib/time-constants.d.ts.map +1 -0
- package/dist/lib/time-constants.js +8 -0
- package/dist/lib/time-constants.js.map +1 -0
- package/dist/lib/utils/env.d.ts +8 -2
- package/dist/lib/utils/env.d.ts.map +1 -1
- package/dist/lib/utils/env.js +65 -17
- package/dist/lib/utils/env.js.map +1 -1
- package/dist/lib/utils/index.d.ts +3 -2
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +6 -1
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/polling.d.ts +31 -0
- package/dist/lib/utils/polling.d.ts.map +1 -0
- package/dist/lib/utils/polling.js +61 -0
- package/dist/lib/utils/polling.js.map +1 -0
- package/dist/lib/utils/zod.d.ts +16 -0
- package/dist/lib/utils/zod.d.ts.map +1 -1
- package/dist/lib/utils/zod.js +45 -0
- package/dist/lib/utils/zod.js.map +1 -1
- package/dist/schema/constants.d.ts +56 -2
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +82 -7
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +156 -6
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +186 -13
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +446 -11
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +283 -18
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +174 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -1
- package/dist/schema/schemas/auth.js +127 -3
- package/dist/schema/schemas/auth.js.map +1 -1
- package/dist/schema/schemas/connections.d.ts +185 -0
- package/dist/schema/schemas/connections.d.ts.map +1 -0
- package/dist/schema/schemas/connections.js +176 -0
- package/dist/schema/schemas/connections.js.map +1 -0
- package/dist/schema/schemas/deployed-state.d.ts +361 -5
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +105 -2
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/index.d.ts +1 -0
- package/dist/schema/schemas/index.d.ts.map +1 -1
- package/dist/schema/schemas/index.js +1 -0
- package/dist/schema/schemas/index.js.map +1 -1
- package/dist/schema/schemas/mcp-defs.d.ts +2 -1
- package/dist/schema/schemas/mcp-defs.d.ts.map +1 -1
- package/dist/schema/schemas/mcp-defs.js +3 -2
- package/dist/schema/schemas/mcp-defs.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +197 -0
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +342 -6
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/ab-test.d.ts +135 -0
- package/dist/schema/schemas/primitives/ab-test.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/ab-test.js +95 -0
- package/dist/schema/schemas/primitives/ab-test.js.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts +32 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.js +41 -0
- package/dist/schema/schemas/primitives/config-bundle.js.map +1 -0
- package/dist/schema/schemas/primitives/dataset.d.ts +48 -0
- package/dist/schema/schemas/primitives/dataset.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/dataset.js +58 -0
- package/dist/schema/schemas/primitives/dataset.js.map +1 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts +8 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/evaluator.js +17 -1
- package/dist/schema/schemas/primitives/evaluator.js.map +1 -1
- package/dist/schema/schemas/primitives/harness.d.ts +377 -19
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/harness.js +379 -24
- package/dist/schema/schemas/primitives/harness.js.map +1 -1
- package/dist/schema/schemas/primitives/index.d.ts +13 -7
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +37 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/knowledge-base.d.ts +104 -0
- package/dist/schema/schemas/primitives/knowledge-base.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/knowledge-base.js +99 -0
- package/dist/schema/schemas/primitives/knowledge-base.js.map +1 -0
- package/dist/schema/schemas/primitives/memory.d.ts +22 -4
- package/dist/schema/schemas/primitives/memory.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/memory.js +57 -16
- package/dist/schema/schemas/primitives/memory.js.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.d.ts +21 -2
- package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.js +45 -5
- package/dist/schema/schemas/primitives/online-eval-config.js.map +1 -1
- package/dist/schema/schemas/primitives/payment.d.ts +54 -0
- package/dist/schema/schemas/primitives/payment.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/payment.js +79 -0
- package/dist/schema/schemas/primitives/payment.js.map +1 -0
- package/dist/schema/schemas/primitives/policy.d.ts +26 -0
- package/dist/schema/schemas/primitives/policy.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/policy.js +5 -1
- package/dist/schema/schemas/primitives/policy.js.map +1 -1
- package/npm-shrinkwrap.json +17013 -0
- package/package.json +43 -21
- package/scripts/bump-version.ts +4 -4
- package/scripts/bundle.mjs +70 -41
- package/scripts/run-e2e-dev.sh +56 -0
- package/scripts/run-e2e-local.sh +145 -0
- package/dist/lib/errors/config.d.ts +0 -49
- package/dist/lib/errors/config.d.ts.map +0 -1
- package/dist/lib/errors/config.js.map +0 -1
- package/dist/lib/packaging/errors.d.ts +0 -16
- package/dist/lib/packaging/errors.d.ts.map +0 -1
- package/dist/lib/packaging/errors.js +0 -36
- package/dist/lib/packaging/errors.js.map +0 -1
- package/dist/lib/schemas/io/cli-config.d.ts +0 -12
- package/dist/lib/schemas/io/cli-config.d.ts.map +0 -1
- package/dist/lib/schemas/io/cli-config.js +0 -35
- package/dist/lib/schemas/io/cli-config.js.map +0 -1
|
@@ -1,25 +1,72 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* ECR container image URI pattern, mirroring the CFN ContainerConfiguration.ContainerUri
|
|
4
|
+
* constraint (private 12-digit ECR registry or public.ecr.aws, optional tag/digest).
|
|
5
|
+
* A non-ECR URI is rejected client-side instead of failing at CloudFormation CREATE.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CONTAINER_URI_PATTERN: RegExp;
|
|
8
|
+
/** CFN ContainerConfiguration.ContainerUri maxLength. */
|
|
9
|
+
export declare const MAX_CONTAINER_URI_LENGTH = 1024;
|
|
10
|
+
/** CFN EnvironmentVariables value maxLength and map maxProperties. */
|
|
11
|
+
export declare const MAX_ENV_VAR_VALUE_LENGTH = 5000;
|
|
12
|
+
export declare const MAX_ENV_VARS = 50;
|
|
13
|
+
/** CFN/Smithy EnvironmentVariableKey length bounds (Smithy EnvironmentVariableKey: 1–100, no char pattern). */
|
|
14
|
+
export declare const MAX_ENV_VAR_KEY_LENGTH = 100;
|
|
2
15
|
export declare const HarnessNameSchema: z.ZodString;
|
|
3
16
|
export declare const HarnessModelProviderSchema: z.ZodEnum<{
|
|
4
17
|
bedrock: "bedrock";
|
|
5
18
|
open_ai: "open_ai";
|
|
6
19
|
gemini: "gemini";
|
|
20
|
+
lite_llm: "lite_llm";
|
|
7
21
|
}>;
|
|
8
22
|
export type HarnessModelProvider = z.infer<typeof HarnessModelProviderSchema>;
|
|
23
|
+
/** Max length of the LiteLLM apiBase URL (Smithy: HarnessLiteLlmApiBase, 1–16383). */
|
|
24
|
+
export declare const MAX_LITE_LLM_API_BASE_LENGTH = 16383;
|
|
25
|
+
export declare const BedrockApiFormatSchema: z.ZodEnum<{
|
|
26
|
+
converse_stream: "converse_stream";
|
|
27
|
+
responses: "responses";
|
|
28
|
+
chat_completions: "chat_completions";
|
|
29
|
+
}>;
|
|
30
|
+
export type BedrockApiFormat = z.infer<typeof BedrockApiFormatSchema>;
|
|
31
|
+
export declare const OpenAiApiFormatSchema: z.ZodEnum<{
|
|
32
|
+
responses: "responses";
|
|
33
|
+
chat_completions: "chat_completions";
|
|
34
|
+
}>;
|
|
35
|
+
export type OpenAiApiFormat = z.infer<typeof OpenAiApiFormatSchema>;
|
|
36
|
+
export declare const HarnessApiFormatSchema: z.ZodEnum<{
|
|
37
|
+
converse_stream: "converse_stream";
|
|
38
|
+
responses: "responses";
|
|
39
|
+
chat_completions: "chat_completions";
|
|
40
|
+
}>;
|
|
41
|
+
export type HarnessApiFormat = z.infer<typeof HarnessApiFormatSchema>;
|
|
9
42
|
export declare const HarnessModelSchema: z.ZodObject<{
|
|
10
43
|
provider: z.ZodEnum<{
|
|
11
44
|
bedrock: "bedrock";
|
|
12
45
|
open_ai: "open_ai";
|
|
13
46
|
gemini: "gemini";
|
|
47
|
+
lite_llm: "lite_llm";
|
|
14
48
|
}>;
|
|
15
49
|
modelId: z.ZodString;
|
|
16
50
|
apiKeyArn: z.ZodOptional<z.ZodString>;
|
|
51
|
+
apiFormat: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
converse_stream: "converse_stream";
|
|
53
|
+
responses: "responses";
|
|
54
|
+
chat_completions: "chat_completions";
|
|
55
|
+
}>>;
|
|
17
56
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
18
57
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
19
58
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
20
59
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
apiBase: z.ZodOptional<z.ZodString>;
|
|
61
|
+
additionalParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
21
62
|
}, z.core.$strip>;
|
|
22
63
|
export type HarnessModel = z.infer<typeof HarnessModelSchema>;
|
|
64
|
+
export declare function validateApiFormat(apiFormat: string, provider: string): {
|
|
65
|
+
valid: true;
|
|
66
|
+
} | {
|
|
67
|
+
valid: false;
|
|
68
|
+
error: string;
|
|
69
|
+
};
|
|
23
70
|
export declare const HarnessToolTypeSchema: z.ZodEnum<{
|
|
24
71
|
remote_mcp: "remote_mcp";
|
|
25
72
|
agentcore_browser: "agentcore_browser";
|
|
@@ -45,11 +92,45 @@ export declare const AgentCoreCodeInterpreterConfigSchema: z.ZodObject<{
|
|
|
45
92
|
codeInterpreterArn: z.ZodOptional<z.ZodString>;
|
|
46
93
|
}, z.core.$strip>;
|
|
47
94
|
}, z.core.$strip>;
|
|
95
|
+
export declare const GatewayOAuthGrantTypeSchema: z.ZodEnum<{
|
|
96
|
+
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
97
|
+
USER_FEDERATION: "USER_FEDERATION";
|
|
98
|
+
}>;
|
|
99
|
+
export declare const HarnessGatewayOutboundAuthSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
100
|
+
awsIam: z.ZodObject<{}, z.core.$strip>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
none: z.ZodObject<{}, z.core.$strip>;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
oauth: z.ZodObject<{
|
|
105
|
+
providerArn: z.ZodString;
|
|
106
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
107
|
+
grantType: z.ZodOptional<z.ZodEnum<{
|
|
108
|
+
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
109
|
+
USER_FEDERATION: "USER_FEDERATION";
|
|
110
|
+
}>>;
|
|
111
|
+
customParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
}, z.core.$strip>]>;
|
|
114
|
+
export type HarnessGatewayOutboundAuth = z.infer<typeof HarnessGatewayOutboundAuthSchema>;
|
|
48
115
|
export declare const AgentCoreGatewayConfigSchema: z.ZodObject<{
|
|
49
116
|
agentCoreGateway: z.ZodObject<{
|
|
50
117
|
gatewayArn: z.ZodString;
|
|
51
|
-
|
|
52
|
-
|
|
118
|
+
outboundAuth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
119
|
+
awsIam: z.ZodObject<{}, z.core.$strip>;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
none: z.ZodObject<{}, z.core.$strip>;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
+
oauth: z.ZodObject<{
|
|
124
|
+
providerArn: z.ZodString;
|
|
125
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
126
|
+
grantType: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
128
|
+
USER_FEDERATION: "USER_FEDERATION";
|
|
129
|
+
}>>;
|
|
130
|
+
customParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
}, z.core.$strip>]>>;
|
|
133
|
+
}, z.core.$loose>;
|
|
53
134
|
}, z.core.$strip>;
|
|
54
135
|
export declare const InlineFunctionConfigSchema: z.ZodObject<{
|
|
55
136
|
inlineFunction: z.ZodObject<{
|
|
@@ -73,8 +154,22 @@ export declare const HarnessToolConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
73
154
|
}, z.core.$strip>, z.ZodObject<{
|
|
74
155
|
agentCoreGateway: z.ZodObject<{
|
|
75
156
|
gatewayArn: z.ZodString;
|
|
76
|
-
|
|
77
|
-
|
|
157
|
+
outboundAuth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
158
|
+
awsIam: z.ZodObject<{}, z.core.$strip>;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
none: z.ZodObject<{}, z.core.$strip>;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
oauth: z.ZodObject<{
|
|
163
|
+
providerArn: z.ZodString;
|
|
164
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
165
|
+
grantType: z.ZodOptional<z.ZodEnum<{
|
|
166
|
+
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
167
|
+
USER_FEDERATION: "USER_FEDERATION";
|
|
168
|
+
}>>;
|
|
169
|
+
customParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
}, z.core.$strip>]>>;
|
|
172
|
+
}, z.core.$loose>;
|
|
78
173
|
}, z.core.$strip>, z.ZodObject<{
|
|
79
174
|
inlineFunction: z.ZodObject<{
|
|
80
175
|
description: z.ZodString;
|
|
@@ -106,8 +201,22 @@ export declare const HarnessToolSchema: z.ZodObject<{
|
|
|
106
201
|
}, z.core.$strip>, z.ZodObject<{
|
|
107
202
|
agentCoreGateway: z.ZodObject<{
|
|
108
203
|
gatewayArn: z.ZodString;
|
|
109
|
-
|
|
110
|
-
|
|
204
|
+
outboundAuth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
205
|
+
awsIam: z.ZodObject<{}, z.core.$strip>;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
none: z.ZodObject<{}, z.core.$strip>;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
+
oauth: z.ZodObject<{
|
|
210
|
+
providerArn: z.ZodString;
|
|
211
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
212
|
+
grantType: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
214
|
+
USER_FEDERATION: "USER_FEDERATION";
|
|
215
|
+
}>>;
|
|
216
|
+
customParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
}, z.core.$strip>]>>;
|
|
219
|
+
}, z.core.$loose>;
|
|
111
220
|
}, z.core.$strip>, z.ZodObject<{
|
|
112
221
|
inlineFunction: z.ZodObject<{
|
|
113
222
|
description: z.ZodString;
|
|
@@ -116,13 +225,62 @@ export declare const HarnessToolSchema: z.ZodObject<{
|
|
|
116
225
|
}, z.core.$strip>]>>;
|
|
117
226
|
}, z.core.$strip>;
|
|
118
227
|
export type HarnessTool = z.infer<typeof HarnessToolSchema>;
|
|
119
|
-
|
|
228
|
+
/**
|
|
229
|
+
* Per-namespace retrieval tuning, applied as a flat default across every namespace
|
|
230
|
+
* of the referenced memory's strategies. Namespaces are only known at CDK synth
|
|
231
|
+
* (from the resolved Memory's strategies), so a per-namespace map cannot be authored
|
|
232
|
+
* here; the CDK fans this single config out to each namespace. StrategyId is omitted
|
|
233
|
+
* deliberately — the namespace already identifies the strategy and the id is
|
|
234
|
+
* service-assigned. Maps to CFN HarnessAgentCoreMemoryRetrievalConfig {TopK, RelevanceScore}.
|
|
235
|
+
*/
|
|
236
|
+
export declare const HarnessMemoryRetrievalConfigSchema: z.ZodObject<{
|
|
237
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
export type HarnessMemoryRetrievalConfig = z.infer<typeof HarnessMemoryRetrievalConfigSchema>;
|
|
241
|
+
/**
|
|
242
|
+
* Managed-memory strategy set. NOT MemoryStrategyTypeSchema: managed harness memory excludes
|
|
243
|
+
* CUSTOM (the CFN ManagedMemoryConfiguration.Strategies enum is exactly these four).
|
|
244
|
+
*/
|
|
245
|
+
export declare const ManagedMemoryStrategySchema: z.ZodEnum<{
|
|
246
|
+
SEMANTIC: "SEMANTIC";
|
|
247
|
+
SUMMARIZATION: "SUMMARIZATION";
|
|
248
|
+
USER_PREFERENCE: "USER_PREFERENCE";
|
|
249
|
+
EPISODIC: "EPISODIC";
|
|
250
|
+
}>;
|
|
251
|
+
/**
|
|
252
|
+
* Memory reference for a harness — exactly one of managed | existing | disabled.
|
|
253
|
+
* A legacy-aware preprocess maps the pre-union flat shape ({ name | arn | ... }) to the `existing`
|
|
254
|
+
* arm. Absent memory STAYS absent — managed is the default only for NEW harnesses (seeded at create
|
|
255
|
+
* time by the CLI/TUI), never invented here, so already-deployed harnesses are not auto-upgraded.
|
|
256
|
+
*/
|
|
257
|
+
export declare const HarnessMemoryRefSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
258
|
+
mode: z.ZodLiteral<"managed">;
|
|
259
|
+
strategies: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
260
|
+
SEMANTIC: "SEMANTIC";
|
|
261
|
+
SUMMARIZATION: "SUMMARIZATION";
|
|
262
|
+
USER_PREFERENCE: "USER_PREFERENCE";
|
|
263
|
+
EPISODIC: "EPISODIC";
|
|
264
|
+
}>>>;
|
|
265
|
+
eventExpiryDuration: z.ZodOptional<z.ZodNumber>;
|
|
266
|
+
encryptionKeyArn: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
+
mode: z.ZodLiteral<"existing">;
|
|
120
269
|
name: z.ZodOptional<z.ZodString>;
|
|
121
270
|
arn: z.ZodOptional<z.ZodString>;
|
|
122
271
|
actorId: z.ZodOptional<z.ZodString>;
|
|
123
|
-
|
|
272
|
+
messagesCount: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
retrievalConfig: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
275
|
+
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
276
|
+
}, z.core.$strict>>;
|
|
277
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
278
|
+
mode: z.ZodLiteral<"disabled">;
|
|
279
|
+
}, z.core.$strict>], "mode">>;
|
|
124
280
|
export type HarnessMemoryRef = z.infer<typeof HarnessMemoryRefSchema>;
|
|
281
|
+
export type ManagedMemoryStrategy = z.infer<typeof ManagedMemoryStrategySchema>;
|
|
125
282
|
export declare const HarnessTruncationStrategySchema: z.ZodEnum<{
|
|
283
|
+
none: "none";
|
|
126
284
|
sliding_window: "sliding_window";
|
|
127
285
|
summarization: "summarization";
|
|
128
286
|
}>;
|
|
@@ -130,16 +288,17 @@ export declare const SlidingWindowConfigSchema: z.ZodObject<{
|
|
|
130
288
|
slidingWindow: z.ZodObject<{
|
|
131
289
|
messagesCount: z.ZodOptional<z.ZodNumber>;
|
|
132
290
|
}, z.core.$strip>;
|
|
133
|
-
}, z.core.$
|
|
291
|
+
}, z.core.$strict>;
|
|
134
292
|
export declare const SummarizationConfigSchema: z.ZodObject<{
|
|
135
293
|
summarization: z.ZodObject<{
|
|
136
294
|
summaryRatio: z.ZodOptional<z.ZodNumber>;
|
|
137
295
|
preserveRecentMessages: z.ZodOptional<z.ZodNumber>;
|
|
138
296
|
summarizationSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
139
297
|
}, z.core.$strip>;
|
|
140
|
-
}, z.core.$
|
|
298
|
+
}, z.core.$strict>;
|
|
141
299
|
export declare const HarnessTruncationConfigSchema: z.ZodObject<{
|
|
142
300
|
strategy: z.ZodEnum<{
|
|
301
|
+
none: "none";
|
|
143
302
|
sliding_window: "sliding_window";
|
|
144
303
|
summarization: "summarization";
|
|
145
304
|
}>;
|
|
@@ -147,16 +306,71 @@ export declare const HarnessTruncationConfigSchema: z.ZodObject<{
|
|
|
147
306
|
slidingWindow: z.ZodObject<{
|
|
148
307
|
messagesCount: z.ZodOptional<z.ZodNumber>;
|
|
149
308
|
}, z.core.$strip>;
|
|
150
|
-
}, z.core.$
|
|
309
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
151
310
|
summarization: z.ZodObject<{
|
|
152
311
|
summaryRatio: z.ZodOptional<z.ZodNumber>;
|
|
153
312
|
preserveRecentMessages: z.ZodOptional<z.ZodNumber>;
|
|
154
313
|
summarizationSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
155
314
|
}, z.core.$strip>;
|
|
156
|
-
}, z.core.$
|
|
315
|
+
}, z.core.$strict>]>>;
|
|
157
316
|
}, z.core.$strip>;
|
|
158
317
|
export type HarnessTruncationConfig = z.infer<typeof HarnessTruncationConfigSchema>;
|
|
318
|
+
export declare const HarnessSkillGitAuthSchema: z.ZodObject<{
|
|
319
|
+
credentialName: z.ZodString;
|
|
320
|
+
username: z.ZodOptional<z.ZodString>;
|
|
321
|
+
}, z.core.$strip>;
|
|
322
|
+
export type HarnessSkillGitAuth = z.infer<typeof HarnessSkillGitAuthSchema>;
|
|
323
|
+
export declare const HarnessSkillS3SourceSchema: z.ZodObject<{
|
|
324
|
+
s3Uri: z.ZodString;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
export type HarnessSkillS3Source = z.infer<typeof HarnessSkillS3SourceSchema>;
|
|
327
|
+
export declare const HarnessSkillGitSourceSchema: z.ZodObject<{
|
|
328
|
+
gitUrl: z.ZodString;
|
|
329
|
+
path: z.ZodOptional<z.ZodString>;
|
|
330
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
331
|
+
credentialName: z.ZodString;
|
|
332
|
+
username: z.ZodOptional<z.ZodString>;
|
|
333
|
+
}, z.core.$strip>>;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
export type HarnessSkillGitSource = z.infer<typeof HarnessSkillGitSourceSchema>;
|
|
336
|
+
export declare const HarnessSkillPathSourceSchema: z.ZodObject<{
|
|
337
|
+
path: z.ZodString;
|
|
338
|
+
}, z.core.$strict>;
|
|
339
|
+
export type HarnessSkillPathSource = z.infer<typeof HarnessSkillPathSourceSchema>;
|
|
340
|
+
export declare const HarnessSkillAwsSkillsSourceSchema: z.ZodObject<{
|
|
341
|
+
awsSkills: z.ZodObject<{
|
|
342
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
343
|
+
}, z.core.$strict>;
|
|
344
|
+
}, z.core.$strict>;
|
|
345
|
+
export type HarnessSkillAwsSkillsSource = z.infer<typeof HarnessSkillAwsSkillsSourceSchema>;
|
|
346
|
+
export declare const HarnessSkillSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
347
|
+
path: string;
|
|
348
|
+
}, string>>, z.ZodObject<{
|
|
349
|
+
s3Uri: z.ZodString;
|
|
350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
351
|
+
gitUrl: z.ZodString;
|
|
352
|
+
path: z.ZodOptional<z.ZodString>;
|
|
353
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
354
|
+
credentialName: z.ZodString;
|
|
355
|
+
username: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, z.core.$strip>>;
|
|
357
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
358
|
+
path: z.ZodString;
|
|
359
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
360
|
+
awsSkills: z.ZodObject<{
|
|
361
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
362
|
+
}, z.core.$strict>;
|
|
363
|
+
}, z.core.$strict>]>;
|
|
364
|
+
export type HarnessSkillInput = z.input<typeof HarnessSkillSchema>;
|
|
365
|
+
export type HarnessSkill = z.output<typeof HarnessSkillSchema>;
|
|
159
366
|
export declare const AllowedToolSchema: z.ZodString;
|
|
367
|
+
/**
|
|
368
|
+
* Detects the legacy file-path-shaped `systemPrompt` (the pre-migration `./prompt.md` style that
|
|
369
|
+
* the old L3 read from disk). A real system prompt is instructional prose containing whitespace;
|
|
370
|
+
* the legacy shape was always a single bare token that is a relative path or ends in .md/.txt.
|
|
371
|
+
* Used to fail fast on upgrade rather than silently shipping the path string as the prompt text.
|
|
372
|
+
*/
|
|
373
|
+
export declare function looksLikeLegacyPromptPath(value: string): boolean;
|
|
160
374
|
export declare const HarnessSpecSchema: z.ZodObject<{
|
|
161
375
|
name: z.ZodString;
|
|
162
376
|
model: z.ZodObject<{
|
|
@@ -164,13 +378,21 @@ export declare const HarnessSpecSchema: z.ZodObject<{
|
|
|
164
378
|
bedrock: "bedrock";
|
|
165
379
|
open_ai: "open_ai";
|
|
166
380
|
gemini: "gemini";
|
|
381
|
+
lite_llm: "lite_llm";
|
|
167
382
|
}>;
|
|
168
383
|
modelId: z.ZodString;
|
|
169
384
|
apiKeyArn: z.ZodOptional<z.ZodString>;
|
|
385
|
+
apiFormat: z.ZodOptional<z.ZodEnum<{
|
|
386
|
+
converse_stream: "converse_stream";
|
|
387
|
+
responses: "responses";
|
|
388
|
+
chat_completions: "chat_completions";
|
|
389
|
+
}>>;
|
|
170
390
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
171
391
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
172
392
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
173
393
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
394
|
+
apiBase: z.ZodOptional<z.ZodString>;
|
|
395
|
+
additionalParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
174
396
|
}, z.core.$strip>;
|
|
175
397
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
176
398
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -198,8 +420,22 @@ export declare const HarnessSpecSchema: z.ZodObject<{
|
|
|
198
420
|
}, z.core.$strip>, z.ZodObject<{
|
|
199
421
|
agentCoreGateway: z.ZodObject<{
|
|
200
422
|
gatewayArn: z.ZodString;
|
|
201
|
-
|
|
202
|
-
|
|
423
|
+
outboundAuth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
424
|
+
awsIam: z.ZodObject<{}, z.core.$strip>;
|
|
425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
+
none: z.ZodObject<{}, z.core.$strip>;
|
|
427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
428
|
+
oauth: z.ZodObject<{
|
|
429
|
+
providerArn: z.ZodString;
|
|
430
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
431
|
+
grantType: z.ZodOptional<z.ZodEnum<{
|
|
432
|
+
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
433
|
+
USER_FEDERATION: "USER_FEDERATION";
|
|
434
|
+
}>>;
|
|
435
|
+
customParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
}, z.core.$strip>]>>;
|
|
438
|
+
}, z.core.$loose>;
|
|
203
439
|
}, z.core.$strip>, z.ZodObject<{
|
|
204
440
|
inlineFunction: z.ZodObject<{
|
|
205
441
|
description: z.ZodString;
|
|
@@ -207,18 +443,54 @@ export declare const HarnessSpecSchema: z.ZodObject<{
|
|
|
207
443
|
}, z.core.$strip>;
|
|
208
444
|
}, z.core.$strip>]>>;
|
|
209
445
|
}, z.core.$strip>>>;
|
|
210
|
-
skills: z.ZodDefault<z.ZodArray<z.ZodString
|
|
446
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
447
|
+
path: string;
|
|
448
|
+
}, string>>, z.ZodObject<{
|
|
449
|
+
s3Uri: z.ZodString;
|
|
450
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
451
|
+
gitUrl: z.ZodString;
|
|
452
|
+
path: z.ZodOptional<z.ZodString>;
|
|
453
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
454
|
+
credentialName: z.ZodString;
|
|
455
|
+
username: z.ZodOptional<z.ZodString>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
458
|
+
path: z.ZodString;
|
|
459
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
460
|
+
awsSkills: z.ZodObject<{
|
|
461
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
}, z.core.$strict>]>>>;
|
|
211
464
|
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
212
|
-
memory: z.ZodOptional<z.ZodObject<{
|
|
465
|
+
memory: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
466
|
+
mode: z.ZodLiteral<"managed">;
|
|
467
|
+
strategies: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
468
|
+
SEMANTIC: "SEMANTIC";
|
|
469
|
+
SUMMARIZATION: "SUMMARIZATION";
|
|
470
|
+
USER_PREFERENCE: "USER_PREFERENCE";
|
|
471
|
+
EPISODIC: "EPISODIC";
|
|
472
|
+
}>>>;
|
|
473
|
+
eventExpiryDuration: z.ZodOptional<z.ZodNumber>;
|
|
474
|
+
encryptionKeyArn: z.ZodOptional<z.ZodString>;
|
|
475
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
476
|
+
mode: z.ZodLiteral<"existing">;
|
|
213
477
|
name: z.ZodOptional<z.ZodString>;
|
|
214
478
|
arn: z.ZodOptional<z.ZodString>;
|
|
215
479
|
actorId: z.ZodOptional<z.ZodString>;
|
|
216
|
-
|
|
480
|
+
messagesCount: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
retrievalConfig: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
483
|
+
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
484
|
+
}, z.core.$strict>>;
|
|
485
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
486
|
+
mode: z.ZodLiteral<"disabled">;
|
|
487
|
+
}, z.core.$strict>], "mode">>>;
|
|
217
488
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
218
489
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
219
490
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
220
491
|
truncation: z.ZodOptional<z.ZodObject<{
|
|
221
492
|
strategy: z.ZodEnum<{
|
|
493
|
+
none: "none";
|
|
222
494
|
sliding_window: "sliding_window";
|
|
223
495
|
summarization: "summarization";
|
|
224
496
|
}>;
|
|
@@ -226,13 +498,13 @@ export declare const HarnessSpecSchema: z.ZodObject<{
|
|
|
226
498
|
slidingWindow: z.ZodObject<{
|
|
227
499
|
messagesCount: z.ZodOptional<z.ZodNumber>;
|
|
228
500
|
}, z.core.$strip>;
|
|
229
|
-
}, z.core.$
|
|
501
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
230
502
|
summarization: z.ZodObject<{
|
|
231
503
|
summaryRatio: z.ZodOptional<z.ZodNumber>;
|
|
232
504
|
preserveRecentMessages: z.ZodOptional<z.ZodNumber>;
|
|
233
505
|
summarizationSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
234
506
|
}, z.core.$strip>;
|
|
235
|
-
}, z.core.$
|
|
507
|
+
}, z.core.$strict>]>>;
|
|
236
508
|
}, z.core.$strip>>;
|
|
237
509
|
containerUri: z.ZodOptional<z.ZodString>;
|
|
238
510
|
dockerfile: z.ZodOptional<z.ZodString>;
|
|
@@ -244,12 +516,21 @@ export declare const HarnessSpecSchema: z.ZodObject<{
|
|
|
244
516
|
networkConfig: z.ZodOptional<z.ZodObject<{
|
|
245
517
|
subnets: z.ZodArray<z.ZodString>;
|
|
246
518
|
securityGroups: z.ZodArray<z.ZodString>;
|
|
519
|
+
vpcId: z.ZodOptional<z.ZodString>;
|
|
247
520
|
}, z.core.$strip>>;
|
|
248
521
|
lifecycleConfig: z.ZodOptional<z.ZodObject<{
|
|
249
522
|
idleRuntimeSessionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
250
523
|
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
251
524
|
}, z.core.$strip>>;
|
|
252
525
|
sessionStoragePath: z.ZodOptional<z.ZodString>;
|
|
526
|
+
efsAccessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
527
|
+
accessPointArn: z.ZodString;
|
|
528
|
+
mountPath: z.ZodString;
|
|
529
|
+
}, z.core.$strip>>>;
|
|
530
|
+
s3AccessPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
531
|
+
accessPointArn: z.ZodString;
|
|
532
|
+
mountPath: z.ZodString;
|
|
533
|
+
}, z.core.$strip>>>;
|
|
253
534
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
254
535
|
authorizerType: z.ZodOptional<z.ZodEnum<{
|
|
255
536
|
AWS_IAM: "AWS_IAM";
|
|
@@ -279,8 +560,85 @@ export declare const HarnessSpecSchema: z.ZodObject<{
|
|
|
279
560
|
}, z.core.$strip>;
|
|
280
561
|
}, z.core.$strip>;
|
|
281
562
|
}, z.core.$strict>>>;
|
|
563
|
+
privateEndpoint: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
|
|
565
|
+
resourceConfigurationIdentifier: z.ZodString;
|
|
566
|
+
}, z.core.$strict>>;
|
|
567
|
+
managedVpcResource: z.ZodOptional<z.ZodObject<{
|
|
568
|
+
vpcIdentifier: z.ZodString;
|
|
569
|
+
subnetIds: z.ZodArray<z.ZodString>;
|
|
570
|
+
endpointIpAddressType: z.ZodEnum<{
|
|
571
|
+
IPV4: "IPV4";
|
|
572
|
+
IPV6: "IPV6";
|
|
573
|
+
}>;
|
|
574
|
+
securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
575
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
576
|
+
routingDomain: z.ZodOptional<z.ZodString>;
|
|
577
|
+
}, z.core.$strict>>;
|
|
578
|
+
}, z.core.$strict>>;
|
|
579
|
+
privateEndpointOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
580
|
+
domain: z.ZodString;
|
|
581
|
+
privateEndpoint: z.ZodObject<{
|
|
582
|
+
selfManagedLatticeResource: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
resourceConfigurationIdentifier: z.ZodString;
|
|
584
|
+
}, z.core.$strict>>;
|
|
585
|
+
managedVpcResource: z.ZodOptional<z.ZodObject<{
|
|
586
|
+
vpcIdentifier: z.ZodString;
|
|
587
|
+
subnetIds: z.ZodArray<z.ZodString>;
|
|
588
|
+
endpointIpAddressType: z.ZodEnum<{
|
|
589
|
+
IPV4: "IPV4";
|
|
590
|
+
IPV6: "IPV6";
|
|
591
|
+
}>;
|
|
592
|
+
securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
593
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
594
|
+
routingDomain: z.ZodOptional<z.ZodString>;
|
|
595
|
+
}, z.core.$strict>>;
|
|
596
|
+
}, z.core.$strict>;
|
|
597
|
+
}, z.core.$strict>>>;
|
|
282
598
|
}, z.core.$strict>>;
|
|
283
599
|
}, z.core.$strip>>;
|
|
600
|
+
connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
601
|
+
id: z.ZodOptional<z.ZodString>;
|
|
602
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
603
|
+
type: z.ZodLiteral<"memory">;
|
|
604
|
+
arn: z.ZodString;
|
|
605
|
+
namespaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
606
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
607
|
+
type: z.ZodLiteral<"gateway">;
|
|
608
|
+
arn: z.ZodString;
|
|
609
|
+
outboundAuth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
610
|
+
awsIam: z.ZodObject<{}, z.core.$strict>;
|
|
611
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
612
|
+
none: z.ZodObject<{}, z.core.$strict>;
|
|
613
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
614
|
+
oauth: z.ZodObject<{
|
|
615
|
+
providerArn: z.ZodString;
|
|
616
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
617
|
+
grantType: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
619
|
+
AUTHORIZATION_CODE: "AUTHORIZATION_CODE";
|
|
620
|
+
TOKEN_EXCHANGE: "TOKEN_EXCHANGE";
|
|
621
|
+
}>>;
|
|
622
|
+
customParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
623
|
+
}, z.core.$strict>;
|
|
624
|
+
}, z.core.$strict>]>>;
|
|
625
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
626
|
+
type: z.ZodLiteral<"runtime">;
|
|
627
|
+
arn: z.ZodString;
|
|
628
|
+
exec: z.ZodOptional<z.ZodBoolean>;
|
|
629
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
630
|
+
type: z.ZodLiteral<"browser">;
|
|
631
|
+
arn: z.ZodOptional<z.ZodString>;
|
|
632
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
633
|
+
type: z.ZodLiteral<"codeInterpreter">;
|
|
634
|
+
arn: z.ZodOptional<z.ZodString>;
|
|
635
|
+
}, z.core.$strict>], "type">;
|
|
636
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
637
|
+
read: "read";
|
|
638
|
+
readwrite: "readwrite";
|
|
639
|
+
}>>;
|
|
640
|
+
description: z.ZodOptional<z.ZodString>;
|
|
641
|
+
}, z.core.$strict>>>;
|
|
284
642
|
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
285
643
|
}, z.core.$strip>;
|
|
286
644
|
export type HarnessSpec = z.infer<typeof HarnessSpecSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/harness.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/harness.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GA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