@aws/agentcore 1.0.0-preview.13 → 1.0.0-preview.14
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 +31 -17
- package/dist/agent-inspector/index.css +1 -1
- package/dist/agent-inspector/index.js +90 -85
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +966 -106
- package/dist/assets/agents/AGENTS.md +14 -0
- package/dist/assets/cdk/bin/cdk.ts +42 -20
- package/dist/assets/cdk/lib/cdk-stack.ts +19 -14
- package/dist/assets/cdk/test/cdk.test.ts +2 -1
- package/dist/assets/container/python/Dockerfile +4 -0
- package/dist/assets/python/a2a/strands/capabilities/memory/session.py +4 -1
- package/dist/assets/python/agui/strands/capabilities/memory/session.py +4 -1
- package/dist/assets/python/http/googleadk/base/mcp_client/client.py +7 -7
- package/dist/assets/python/http/googleadk/base/pyproject.toml +1 -1
- package/dist/assets/python/http/langchain_langgraph/base/mcp_client/client.py +10 -8
- package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +1 -1
- package/dist/assets/python/http/openaiagents/base/main.py +19 -9
- package/dist/assets/python/http/openaiagents/base/mcp_client/client.py +4 -4
- package/dist/assets/python/http/openaiagents/base/pyproject.toml +1 -1
- package/dist/assets/python/http/strands/base/main.py +438 -27
- package/dist/assets/python/http/strands/base/mcp_client/client.py +45 -5
- package/dist/assets/python/http/strands/base/model/load.py +3 -3
- package/dist/assets/python/http/strands/base/pyproject.toml +5 -2
- 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 +4 -1
- package/dist/cli/index.mjs +1274 -1088
- package/dist/lib/errors/types.d.ts +18 -0
- package/dist/lib/errors/types.d.ts.map +1 -1
- package/dist/lib/errors/types.js +28 -1
- package/dist/lib/errors/types.js.map +1 -1
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +0 -2
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/schema/constants.d.ts +20 -0
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +25 -1
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +35 -0
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +184 -25
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +81 -31
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +175 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -1
- package/dist/schema/schemas/auth.js +126 -3
- package/dist/schema/schemas/auth.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +140 -46
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +39 -14
- package/dist/schema/schemas/deployed-state.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 +186 -0
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +479 -4
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/ab-test.d.ts +0 -6
- package/dist/schema/schemas/primitives/ab-test.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/ab-test.js +0 -2
- package/dist/schema/schemas/primitives/ab-test.js.map +1 -1
- package/dist/schema/schemas/primitives/harness.d.ts +209 -11
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/harness.js +268 -21
- package/dist/schema/schemas/primitives/harness.js.map +1 -1
- package/dist/schema/schemas/primitives/index.d.ts +6 -8
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +6 -5
- 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/online-eval-config.d.ts +20 -2
- package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.js +43 -5
- package/dist/schema/schemas/primitives/online-eval-config.js.map +1 -1
- 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 +195 -330
- package/package.json +10 -8
- package/scripts/bundle.mjs +51 -0
- package/scripts/run-e2e-local.sh +40 -8
- package/dist/schema/schemas/primitives/http-gateway.d.ts +0 -21
- package/dist/schema/schemas/primitives/http-gateway.d.ts.map +0 -1
- package/dist/schema/schemas/primitives/http-gateway.js +0 -34
- package/dist/schema/schemas/primitives/http-gateway.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/agentcore",
|
|
3
|
-
"version": "1.0.0-preview.
|
|
3
|
+
"version": "1.0.0-preview.14",
|
|
4
4
|
"description": "CLI for Amazon Bedrock AgentCore",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -80,20 +80,20 @@
|
|
|
80
80
|
"@aws-sdk/client-application-signals": "^3.1003.0",
|
|
81
81
|
"@aws-sdk/client-bedrock": "^3.1012.0",
|
|
82
82
|
"@aws-sdk/client-bedrock-agent": "^3.1012.0",
|
|
83
|
-
"@aws-sdk/client-bedrock-agentcore": "^3.
|
|
84
|
-
"@aws-sdk/client-bedrock-agentcore-control": "^3.
|
|
83
|
+
"@aws-sdk/client-bedrock-agentcore": "^3.1061.0",
|
|
84
|
+
"@aws-sdk/client-bedrock-agentcore-control": "^3.1061.0",
|
|
85
85
|
"@aws-sdk/client-bedrock-runtime": "^3.893.0",
|
|
86
86
|
"@aws-sdk/client-cloudformation": "^3.893.0",
|
|
87
87
|
"@aws-sdk/client-cloudwatch-logs": "^3.893.0",
|
|
88
|
-
"@aws-sdk/client-efs": "^3.
|
|
88
|
+
"@aws-sdk/client-efs": "^3.1067.0",
|
|
89
89
|
"@aws-sdk/client-resource-groups-tagging-api": "^3.893.0",
|
|
90
90
|
"@aws-sdk/client-s3": "^3.1012.0",
|
|
91
|
-
"@aws-sdk/client-s3files": "^3.
|
|
91
|
+
"@aws-sdk/client-s3files": "^3.1067.0",
|
|
92
92
|
"@aws-sdk/client-sts": "^3.893.0",
|
|
93
93
|
"@aws-sdk/client-xray": "^3.1003.0",
|
|
94
94
|
"@aws-sdk/credential-providers": "^3.893.0",
|
|
95
95
|
"@aws-sdk/region-config-resolver": "^3.972.13",
|
|
96
|
-
"@aws/agent-inspector": "0.
|
|
96
|
+
"@aws/agent-inspector": "0.6.0",
|
|
97
97
|
"@commander-js/extra-typings": "^14.0.0",
|
|
98
98
|
"@opentelemetry/api": "^1.9.1",
|
|
99
99
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.215.0",
|
|
@@ -162,13 +162,15 @@
|
|
|
162
162
|
"minimatch": "GHSA-7r86-cg39-jmmj, GHSA-23c5-xmqv-rm74: minimatch 10.0.0-10.2.2 has ReDoS vulnerabilities. Multiple transitive deps (eslint, typescript-eslint, eslint-plugin-import, eslint-plugin-react, prettier-plugin-sort-imports, aws-cdk-lib) pin older versions. Remove this override once upstream packages update their minimatch dependency to >=10.2.3.",
|
|
163
163
|
"glob": "glob <12 is deprecated and emits npm install warnings (https://github.com/isaacs/node-glob). Pulled in transitively via archiver-utils@5.0.2 (latest), which still pins glob@^10.0.0. archiver-utils only uses glob.sync(pattern, options), which remains compatible in glob@13. Remove this override once archiver-utils updates its glob dependency.",
|
|
164
164
|
"fast-xml-parser": "GHSA-8gc5-j5rx-235r, GHSA-jp2q-39xq-3w4g: fast-xml-parser <=5.5.6 has entity expansion bypass (CVE-2026-33036, CVE-2026-33349). Transitive via @aws-sdk/xml-builder. Remove once @aws-sdk updates to fast-xml-parser >=5.5.7.",
|
|
165
|
-
"@aws-sdk/xml-builder": "aws/aws-sdk-js-v3#7867: @aws-sdk/xml-builder <3.972.14 does not configure maxTotalExpansions on fast-xml-parser, causing 'Entity expansion limit exceeded' on large CloudFormation responses. Remove once @aws-sdk/client-* deps are bumped past 3.972.14."
|
|
165
|
+
"@aws-sdk/xml-builder": "aws/aws-sdk-js-v3#7867: @aws-sdk/xml-builder <3.972.14 does not configure maxTotalExpansions on fast-xml-parser, causing 'Entity expansion limit exceeded' on large CloudFormation responses. Remove once @aws-sdk/client-* deps are bumped past 3.972.14.",
|
|
166
|
+
"protobufjs": "GHSA-f38q-mgvj-vph7, GHSA-wcpc-wj8m-hjx6, GHSA-94rc-8x27-4472: protobufjs <=7.6.2 / 8.0.0-8.5.0 has property shadowing and DoS vulnerabilities. Transitive via @opentelemetry/otlp-transformer. Remove once @opentelemetry updates to protobufjs >=7.6.3 or >=8.5.1."
|
|
166
167
|
},
|
|
167
168
|
"overrides": {
|
|
168
169
|
"minimatch": "10.2.4",
|
|
169
170
|
"glob": "^13.0.0",
|
|
170
171
|
"fast-xml-parser": "5.5.7",
|
|
171
|
-
"@aws-sdk/xml-builder": "3.972.15"
|
|
172
|
+
"@aws-sdk/xml-builder": "3.972.15",
|
|
173
|
+
"protobufjs": ">=7.6.3"
|
|
172
174
|
},
|
|
173
175
|
"engines": {
|
|
174
176
|
"node": ">=20"
|
package/scripts/bundle.mjs
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
* Environment variables:
|
|
17
17
|
* AGENTCORE_CDK_PATH — path to the agentcore-l3-cdk-constructs repo.
|
|
18
18
|
* Falls back to ../agentcore-l3-cdk-constructs, then clones from GitHub.
|
|
19
|
+
* AGENTCORE_INSPECTOR_PATH — path to the agent-inspector repo.
|
|
20
|
+
* Falls back to ../agent-inspector. If found, builds and bundles
|
|
21
|
+
* the local version instead of the npm-installed one.
|
|
19
22
|
* AGENTCORE_TARBALL_OUTPUT — output path (without .tgz) for the GA tarball.
|
|
20
23
|
* Preview tarball gets '-preview' appended. Relative to cwd.
|
|
21
24
|
* AGENTCORE_TARBALL_VERSION_SUFFIX — version prerelease suffix (e.g. "abc12-def34").
|
|
@@ -80,6 +83,31 @@ function resolveCdkPath() {
|
|
|
80
83
|
return cloneDir;
|
|
81
84
|
}
|
|
82
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Resolve a local agent-inspector repo path. Priority:
|
|
88
|
+
* 1. AGENTCORE_INSPECTOR_PATH env var
|
|
89
|
+
* 2. Sibling directory ../agent-inspector
|
|
90
|
+
* 3. null (use npm-installed version)
|
|
91
|
+
*/
|
|
92
|
+
function resolveInspectorPath() {
|
|
93
|
+
if (process.env.AGENTCORE_INSPECTOR_PATH) {
|
|
94
|
+
const p = path.resolve(process.env.AGENTCORE_INSPECTOR_PATH);
|
|
95
|
+
if (fs.existsSync(path.join(p, 'package.json'))) {
|
|
96
|
+
log(`Using agent-inspector from AGENTCORE_INSPECTOR_PATH: ${p}`);
|
|
97
|
+
return p;
|
|
98
|
+
}
|
|
99
|
+
console.warn(` WARNING: AGENTCORE_INSPECTOR_PATH=${p} does not contain package.json, ignoring.`);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const sibling = path.resolve(cliRoot, '..', 'agent-inspector');
|
|
103
|
+
if (fs.existsSync(path.join(sibling, 'package.json'))) {
|
|
104
|
+
log(`Using agent-inspector from sibling directory: ${sibling}`);
|
|
105
|
+
return sibling;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
|
|
83
111
|
// ---------------------------------------------------------------------------
|
|
84
112
|
// Main
|
|
85
113
|
// ---------------------------------------------------------------------------
|
|
@@ -161,6 +189,29 @@ run('npm', ['install'], { cwd: cliRoot });
|
|
|
161
189
|
log('Building CLI...');
|
|
162
190
|
run('npm', ['run', 'build'], { cwd: cliRoot });
|
|
163
191
|
|
|
192
|
+
// Step 3.5: If local agent-inspector is available, build and overwrite dist/agent-inspector/
|
|
193
|
+
const inspectorPath = resolveInspectorPath();
|
|
194
|
+
if (inspectorPath) {
|
|
195
|
+
log('Installing agent-inspector dependencies...');
|
|
196
|
+
run('npm', ['install'], { cwd: inspectorPath });
|
|
197
|
+
|
|
198
|
+
log('Building agent-inspector...');
|
|
199
|
+
run('npm', ['run', 'build'], { cwd: inspectorPath });
|
|
200
|
+
|
|
201
|
+
const inspectorDistAssets = path.join(inspectorPath, 'dist-assets');
|
|
202
|
+
if (!fs.existsSync(inspectorDistAssets)) {
|
|
203
|
+
console.error(`ERROR: agent-inspector build did not produce dist-assets/ at ${inspectorDistAssets}`);
|
|
204
|
+
process.exit(1);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const inspectorDest = path.join(cliRoot, 'dist', 'agent-inspector');
|
|
208
|
+
if (fs.existsSync(inspectorDest)) {
|
|
209
|
+
fs.rmSync(inspectorDest, { recursive: true });
|
|
210
|
+
}
|
|
211
|
+
fs.cpSync(inspectorDistAssets, inspectorDest, { recursive: true });
|
|
212
|
+
log(`Replaced dist/agent-inspector/ with local build from ${inspectorPath}`);
|
|
213
|
+
}
|
|
214
|
+
|
|
164
215
|
// Step 4: Copy CDK tarball into dist/assets/ so CDKRenderer can detect it
|
|
165
216
|
const bundledTarballDest = path.join(cliRoot, 'dist', 'assets', 'bundled-agentcore-cdk.tgz');
|
|
166
217
|
fs.copyFileSync(cdkTarballSrc, bundledTarballDest);
|
package/scripts/run-e2e-local.sh
CHANGED
|
@@ -3,17 +3,24 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Required env vars:
|
|
5
5
|
# E2E_ROLE_ARN — IAM role ARN to assume (grants access to the test account)
|
|
6
|
-
# E2E_SECRET_ARN — Secrets Manager ARN containing ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY
|
|
6
|
+
# E2E_SECRET_ARN — Secrets Manager ARN containing ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY,
|
|
7
|
+
# and (for payments tests) CDP_API_KEY_ID, CDP_API_KEY_SECRET, CDP_WALLET_SECRET
|
|
7
8
|
#
|
|
8
9
|
# Optional env vars:
|
|
9
10
|
# AWS_REGION — defaults to us-east-1
|
|
11
|
+
# CDK_REPO_PATH — local path to CDK constructs repo; if set, builds and uses it as CDK_TARBALL
|
|
12
|
+
# BUILD_PREVIEW — set to 1 to build a preview CLI and run the harness e2e tests
|
|
13
|
+
# (e2e-tests/harness-*.test.ts). Harness features are gated to preview
|
|
14
|
+
# builds; without this they self-skip. The var is read at build time
|
|
15
|
+
# (esbuild bakes __PREVIEW__=true) and at test runtime (skip gate).
|
|
10
16
|
#
|
|
11
17
|
# Usage:
|
|
12
18
|
# export E2E_ROLE_ARN=arn:aws:iam::<account>:role/<role>
|
|
13
19
|
# export E2E_SECRET_ARN=arn:aws:secretsmanager:<region>:<account>:secret:<name>
|
|
14
|
-
# ./scripts/run-e2e-local.sh
|
|
15
|
-
# ./scripts/run-e2e-local.sh --all
|
|
16
|
-
# ./scripts/run-e2e-local.sh e2e-tests/foo.test.ts
|
|
20
|
+
# ./scripts/run-e2e-local.sh # runs strands-bedrock.test.ts (CI default)
|
|
21
|
+
# ./scripts/run-e2e-local.sh --all # runs the full e2e suite
|
|
22
|
+
# ./scripts/run-e2e-local.sh e2e-tests/foo.test.ts # runs a specific test file
|
|
23
|
+
# BUILD_PREVIEW=1 ./scripts/run-e2e-local.sh e2e-tests/harness-bedrock.test.ts # runs harness tests
|
|
17
24
|
#
|
|
18
25
|
# Prerequisites: aws CLI, node >=20.19, npm, git, uv, jq
|
|
19
26
|
|
|
@@ -82,18 +89,33 @@ export E2E_S3_ACCESS_POINT_ARN=$(echo "$SECRET_JSON" | jq -r '.S3_ACCESS_POINT_A
|
|
|
82
89
|
export E2E_FILESYSTEM_SUBNET_ID=$(echo "$SECRET_JSON" | jq -r '.FILESYSTEM_SUBNET_ID // empty')
|
|
83
90
|
export E2E_FILESYSTEM_SECURITY_GROUP_ID=$(echo "$SECRET_JSON" | jq -r '.FILESYSTEM_SECURITY_GROUP_ID // empty')
|
|
84
91
|
|
|
92
|
+
# Payments (CDP) test inputs — required by payment-strands-bedrock.test.ts.
|
|
93
|
+
export CDP_API_KEY_ID=$(echo "$SECRET_JSON" | jq -r '.CDP_API_KEY_ID // empty')
|
|
94
|
+
export CDP_API_KEY_SECRET=$(echo "$SECRET_JSON" | jq -r '.CDP_API_KEY_SECRET // empty')
|
|
95
|
+
export CDP_WALLET_SECRET=$(echo "$SECRET_JSON" | jq -r '.CDP_WALLET_SECRET // empty')
|
|
96
|
+
|
|
85
97
|
echo "✅ Secrets loaded (keys present: $(echo "$SECRET_JSON" | jq -r 'keys | join(", ")')"
|
|
86
98
|
|
|
87
99
|
echo "=== Setting AWS account env var ==="
|
|
88
100
|
export AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
|
|
89
101
|
echo "✅ AWS_ACCOUNT_ID=$AWS_ACCOUNT_ID AWS_REGION=$AWS_REGION"
|
|
90
102
|
|
|
91
|
-
echo "=== Configuring git (required for agentcore create) ==="
|
|
92
|
-
git config --global user.email "ci@local" 2>/dev/null || true
|
|
93
|
-
git config --global user.name "Local E2E" 2>/dev/null || true
|
|
94
|
-
|
|
95
103
|
cd "$REPO_ROOT"
|
|
96
104
|
|
|
105
|
+
echo "=== Verifying git is configured (required for agentcore create) ==="
|
|
106
|
+
git_email="$(git config --global user.email || true)"
|
|
107
|
+
git_name="$(git config --global user.name || true)"
|
|
108
|
+
|
|
109
|
+
if [ -z "$git_email" ] || [ -z "$git_name" ]; then
|
|
110
|
+
echo "ERROR: git is not configured. 'agentcore create' requires a global git identity." >&2
|
|
111
|
+
echo "Set it with:" >&2
|
|
112
|
+
echo " git config --global user.email \"you@example.com\"" >&2
|
|
113
|
+
echo " git config --global user.name \"Your Name\"" >&2
|
|
114
|
+
exit 1
|
|
115
|
+
fi
|
|
116
|
+
|
|
117
|
+
echo "git configured as: $git_name <$git_email>"
|
|
118
|
+
|
|
97
119
|
echo "=== Installing dependencies ==="
|
|
98
120
|
npm ci
|
|
99
121
|
|
|
@@ -106,6 +128,16 @@ npm install -g "$TARBALL"
|
|
|
106
128
|
echo "✅ Installed: $(agentcore --version)"
|
|
107
129
|
|
|
108
130
|
echo "=== Running E2E tests ==="
|
|
131
|
+
if [[ -n "${CDK_REPO_PATH:-}" ]]; then
|
|
132
|
+
echo "=== Building CDK constructs from $CDK_REPO_PATH ==="
|
|
133
|
+
pushd "$CDK_REPO_PATH" > /dev/null
|
|
134
|
+
npm ci
|
|
135
|
+
npm run build
|
|
136
|
+
CDK_TARBALL_NAME=$(npm pack | tail -1)
|
|
137
|
+
export CDK_TARBALL="$CDK_REPO_PATH/$CDK_TARBALL_NAME"
|
|
138
|
+
popd > /dev/null
|
|
139
|
+
echo "✅ CDK_TARBALL=$CDK_TARBALL"
|
|
140
|
+
fi
|
|
109
141
|
if [[ "$RUN_ALL" == "true" ]]; then
|
|
110
142
|
echo "Running full e2e suite"
|
|
111
143
|
npx vitest run --project e2e
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const HttpGatewayNameSchema: z.ZodString;
|
|
3
|
-
export declare const HttpGatewayTargetSchema: z.ZodObject<{
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
runtimeRef: z.ZodString;
|
|
6
|
-
qualifier: z.ZodDefault<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type HttpGatewayTarget = z.infer<typeof HttpGatewayTargetSchema>;
|
|
9
|
-
export declare const HttpGatewaySchema: z.ZodObject<{
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
description: z.ZodOptional<z.ZodString>;
|
|
12
|
-
runtimeRef: z.ZodString;
|
|
13
|
-
roleArn: z.ZodOptional<z.ZodString>;
|
|
14
|
-
targets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
-
name: z.ZodString;
|
|
16
|
-
runtimeRef: z.ZodString;
|
|
17
|
-
qualifier: z.ZodDefault<z.ZodString>;
|
|
18
|
-
}, z.core.$strip>>>;
|
|
19
|
-
}, z.core.$strict>;
|
|
20
|
-
export type HttpGateway = z.infer<typeof HttpGatewaySchema>;
|
|
21
|
-
//# sourceMappingURL=http-gateway.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-gateway.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/http-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qBAAqB,aAM/B,CAAC;AAEJ,eAAO,MAAM,uBAAuB;;;;iBAOlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAanB,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HttpGatewaySchema = exports.HttpGatewayTargetSchema = exports.HttpGatewayNameSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
// ============================================================================
|
|
6
|
-
// HTTP Gateway Types
|
|
7
|
-
// ============================================================================
|
|
8
|
-
exports.HttpGatewayNameSchema = zod_1.z
|
|
9
|
-
.string()
|
|
10
|
-
.min(1, 'Name is required')
|
|
11
|
-
.regex(/^[a-zA-Z][a-zA-Z0-9-]*$/, 'Gateway name must start with a letter and contain only alphanumeric characters or hyphens (combined with project name must fit 48-char AWS limit)');
|
|
12
|
-
exports.HttpGatewayTargetSchema = zod_1.z.object({
|
|
13
|
-
/** Gateway target name (referenced by AB test variants) */
|
|
14
|
-
name: zod_1.z.string().min(1).max(100),
|
|
15
|
-
/** Reference to a runtime name from spec.runtimes */
|
|
16
|
-
runtimeRef: zod_1.z.string().min(1),
|
|
17
|
-
/** Endpoint qualifier on the runtime (e.g., 'prod', 'staging'). Defaults to 'DEFAULT'. */
|
|
18
|
-
qualifier: zod_1.z.string().min(1).default('DEFAULT'),
|
|
19
|
-
});
|
|
20
|
-
exports.HttpGatewaySchema = zod_1.z
|
|
21
|
-
.object({
|
|
22
|
-
/** Unique name for the HTTP gateway */
|
|
23
|
-
name: exports.HttpGatewayNameSchema,
|
|
24
|
-
/** Optional description */
|
|
25
|
-
description: zod_1.z.string().min(1).max(200).optional(),
|
|
26
|
-
/** Reference to a runtime name from spec.runtimes. One target is created per gateway pointing to this runtime. */
|
|
27
|
-
runtimeRef: zod_1.z.string().min(1),
|
|
28
|
-
/** IAM role ARN for gateway execution. Auto-created if omitted. */
|
|
29
|
-
roleArn: zod_1.z.string().min(1).optional(),
|
|
30
|
-
/** Additional targets for the gateway (for target-based AB testing). */
|
|
31
|
-
targets: zod_1.z.array(exports.HttpGatewayTargetSchema).optional(),
|
|
32
|
-
})
|
|
33
|
-
.strict();
|
|
34
|
-
//# sourceMappingURL=http-gateway.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-gateway.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/http-gateway.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC;KACnC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,KAAK,CACJ,yBAAyB,EACzB,mJAAmJ,CACpJ,CAAC;AAES,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,2DAA2D;IAC3D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,qDAAqD;IACrD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,0FAA0F;IAC1F,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;CAChD,CAAC,CAAC;AAIU,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,CAAC;IACN,uCAAuC;IACvC,IAAI,EAAE,6BAAqB;IAC3B,2BAA2B;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAClD,kHAAkH;IAClH,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,mEAAmE;IACnE,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrC,wEAAwE;IACxE,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC;KACD,MAAM,EAAE,CAAC"}
|