@aws/nx-plugin 1.0.0-rc.65 → 1.0.0-rc.67
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/LICENSE-THIRD-PARTY +59 -87
- package/migrations.json +61 -56
- package/package.json +4 -4
- package/src/agentcore-gateway/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/migrations/latest/smithy-server-package-rename/metadata.json +3 -0
- package/src/migrations/latest/smithy-server-package-rename/migration.js +123 -0
- package/src/migrations/latest/smithy-server-package-rename/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.58/0001-smithy-ssdk-bundle-pins/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.59/0001-gateway-agent-targets/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.60/0001-gateway-cognito-passthrough/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.60/0002-waf-log-group-removal/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.60/0003-strip-pip-from-python-images/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.61/0001-py-agent-lifespan-construction/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.62/0001-rename-load-runtime-config-target/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.63/0001-add-deploy-sandbox-target/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.64/0001-smithy-build-without-docker/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.65/0001-vite-config-import-meta-dirname/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.65/0002-rolldown-code-splitting/migration.d.ts +6 -0
- package/src/migrations/v1.0.0-rc.65/0002-rolldown-code-splitting/migration.js.map +1 -0
- package/src/preset/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +4 -4
- package/src/py/agent/__snapshots__/generator.frameworks.spec.ts.snap +3 -3
- package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +2 -2
- package/src/py/agent/a2a-connection/generator.d.ts +1 -1
- package/src/py/agent/gateway-connection/generator.d.ts +1 -1
- package/src/py/agent/mcp-connection/generator.d.ts +1 -1
- package/src/py/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/fast-api/__snapshots__/generator.terraform.spec.ts.snap +12 -12
- package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/py/rdb/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/smithy/project/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +10 -10
- package/src/smithy/ts/api/files/handler.ts.template +1 -1
- package/src/smithy/ts/api/files/local-server.ts.template +1 -1
- package/src/smithy/ts/api/generator.d.ts +2 -2
- package/src/smithy/ts/api/generator.js +2 -2
- package/src/smithy/ts/api/generator.js.map +1 -1
- package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +12 -12
- package/src/ts/agent/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/dcr-proxy/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/ts/rdb/smithy-connection/__snapshots__/generator.spec.ts.snap +6 -6
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +19 -19
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +2 -2
- package/src/utils/versions.d.ts +50 -50
- package/src/utils/versions.js +49 -49
- package/src/utils/versions.js.map +1 -1
- package/src/migrations/latest/add-deploy-sandbox-target/migration.js.map +0 -1
- package/src/migrations/latest/gateway-agent-targets/migration.js.map +0 -1
- package/src/migrations/latest/gateway-cognito-passthrough/migration.js.map +0 -1
- package/src/migrations/latest/py-agent-lifespan-construction/migration.js.map +0 -1
- package/src/migrations/latest/rename-load-runtime-config-target/migration.js.map +0 -1
- package/src/migrations/latest/rolldown-code-splitting/migration.js.map +0 -1
- package/src/migrations/latest/smithy-build-without-docker/migration.js.map +0 -1
- package/src/migrations/latest/smithy-ssdk-bundle-pins/migration.js.map +0 -1
- package/src/migrations/latest/strip-pip-from-python-images/migration.js.map +0 -1
- package/src/migrations/latest/vite-config-import-meta-dirname/migration.js.map +0 -1
- package/src/migrations/latest/waf-log-group-removal/migration.js.map +0 -1
- /package/src/migrations/latest/{add-deploy-sandbox-target → smithy-server-package-rename}/migration.d.ts +0 -0
- /package/src/migrations/{latest/smithy-ssdk-bundle-pins → v1.0.0-rc.58/0001-smithy-ssdk-bundle-pins}/metadata.json +0 -0
- /package/src/migrations/{latest/py-agent-lifespan-construction → v1.0.0-rc.58/0001-smithy-ssdk-bundle-pins}/migration.d.ts +0 -0
- /package/src/migrations/{latest/smithy-ssdk-bundle-pins → v1.0.0-rc.58/0001-smithy-ssdk-bundle-pins}/migration.js +0 -0
- /package/src/migrations/{latest/smithy-ssdk-bundle-pins → v1.0.0-rc.58/0001-smithy-ssdk-bundle-pins}/rc57-service.Dockerfile.fixture +0 -0
- /package/src/migrations/{latest/gateway-agent-targets → v1.0.0-rc.59/0001-gateway-agent-targets}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/gateway-agent-targets → v1.0.0-rc.59/0001-gateway-agent-targets}/metadata.json +0 -0
- /package/src/migrations/{latest/gateway-agent-targets → v1.0.0-rc.59/0001-gateway-agent-targets}/migration.d.ts +0 -0
- /package/src/migrations/{latest/gateway-agent-targets → v1.0.0-rc.59/0001-gateway-agent-targets}/migration.js +0 -0
- /package/src/migrations/{latest/gateway-cognito-passthrough → v1.0.0-rc.60/0001-gateway-cognito-passthrough}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/gateway-cognito-passthrough → v1.0.0-rc.60/0001-gateway-cognito-passthrough}/metadata.json +0 -0
- /package/src/migrations/{latest/gateway-cognito-passthrough → v1.0.0-rc.60/0001-gateway-cognito-passthrough}/migration.d.ts +0 -0
- /package/src/migrations/{latest/gateway-cognito-passthrough → v1.0.0-rc.60/0001-gateway-cognito-passthrough}/migration.js +0 -0
- /package/src/migrations/{latest/waf-log-group-removal → v1.0.0-rc.60/0002-waf-log-group-removal}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/waf-log-group-removal → v1.0.0-rc.60/0002-waf-log-group-removal}/metadata.json +0 -0
- /package/src/migrations/{latest/waf-log-group-removal → v1.0.0-rc.60/0002-waf-log-group-removal}/migration.d.ts +0 -0
- /package/src/migrations/{latest/waf-log-group-removal → v1.0.0-rc.60/0002-waf-log-group-removal}/migration.js +0 -0
- /package/src/migrations/{latest/strip-pip-from-python-images → v1.0.0-rc.60/0003-strip-pip-from-python-images}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/strip-pip-from-python-images → v1.0.0-rc.60/0003-strip-pip-from-python-images}/metadata.json +0 -0
- /package/src/migrations/{latest/rename-load-runtime-config-target → v1.0.0-rc.60/0003-strip-pip-from-python-images}/migration.d.ts +0 -0
- /package/src/migrations/{latest/strip-pip-from-python-images → v1.0.0-rc.60/0003-strip-pip-from-python-images}/migration.js +0 -0
- /package/src/migrations/{latest/py-agent-lifespan-construction → v1.0.0-rc.61/0001-py-agent-lifespan-construction}/metadata.json +0 -0
- /package/src/migrations/{latest/rolldown-code-splitting → v1.0.0-rc.61/0001-py-agent-lifespan-construction}/migration.d.ts +0 -0
- /package/src/migrations/{latest/py-agent-lifespan-construction → v1.0.0-rc.61/0001-py-agent-lifespan-construction}/migration.js +0 -0
- /package/src/migrations/{latest/rename-load-runtime-config-target → v1.0.0-rc.62/0001-rename-load-runtime-config-target}/metadata.json +0 -0
- /package/src/migrations/{latest/smithy-build-without-docker → v1.0.0-rc.62/0001-rename-load-runtime-config-target}/migration.d.ts +0 -0
- /package/src/migrations/{latest/rename-load-runtime-config-target → v1.0.0-rc.62/0001-rename-load-runtime-config-target}/migration.js +0 -0
- /package/src/migrations/{latest/add-deploy-sandbox-target → v1.0.0-rc.63/0001-add-deploy-sandbox-target}/metadata.json +0 -0
- /package/src/migrations/{latest/smithy-ssdk-bundle-pins → v1.0.0-rc.63/0001-add-deploy-sandbox-target}/migration.d.ts +0 -0
- /package/src/migrations/{latest/add-deploy-sandbox-target → v1.0.0-rc.63/0001-add-deploy-sandbox-target}/migration.js +0 -0
- /package/src/migrations/{latest/smithy-build-without-docker → v1.0.0-rc.64/0001-smithy-build-without-docker}/legacy-service.Dockerfile.fixture +0 -0
- /package/src/migrations/{latest/smithy-build-without-docker → v1.0.0-rc.64/0001-smithy-build-without-docker}/metadata.json +0 -0
- /package/src/migrations/{latest/strip-pip-from-python-images → v1.0.0-rc.64/0001-smithy-build-without-docker}/migration.d.ts +0 -0
- /package/src/migrations/{latest/smithy-build-without-docker → v1.0.0-rc.64/0001-smithy-build-without-docker}/migration.js +0 -0
- /package/src/migrations/{latest/vite-config-import-meta-dirname → v1.0.0-rc.65/0001-vite-config-import-meta-dirname}/metadata.json +0 -0
- /package/src/migrations/{latest/vite-config-import-meta-dirname → v1.0.0-rc.65/0001-vite-config-import-meta-dirname}/migration.d.ts +0 -0
- /package/src/migrations/{latest/vite-config-import-meta-dirname → v1.0.0-rc.65/0001-vite-config-import-meta-dirname}/migration.js +0 -0
- /package/src/migrations/{latest/rolldown-code-splitting → v1.0.0-rc.65/0002-rolldown-code-splitting}/metadata.json +0 -0
- /package/src/migrations/{latest/rolldown-code-splitting → v1.0.0-rc.65/0002-rolldown-code-splitting}/migration.js +0 -0
|
@@ -6,7 +6,7 @@ exports[`cognito-auth generator terraform iac > should generate terraform files
|
|
|
6
6
|
required_providers {
|
|
7
7
|
aws = {
|
|
8
8
|
source = "hashicorp/aws"
|
|
9
|
-
version = "6.
|
|
9
|
+
version = "6.58.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -63,7 +63,7 @@ resource "null_resource" "add_callback_url" {
|
|
|
63
63
|
|
|
64
64
|
provisioner "local-exec" {
|
|
65
65
|
command = <<-EOT
|
|
66
|
-
uv run --with boto3==1.43.
|
|
66
|
+
uv run --with boto3==1.43.67 python -c "
|
|
67
67
|
import boto3
|
|
68
68
|
import os
|
|
69
69
|
import sys
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -11,28 +11,28 @@ export declare const TS_VERSIONS: {
|
|
|
11
11
|
readonly '@aws/aws-distro-opentelemetry-node-autoinstrumentation': "0.12.0";
|
|
12
12
|
readonly '@opentelemetry/propagator-jaeger': "2.10.0";
|
|
13
13
|
readonly minimatch: "10.2.6";
|
|
14
|
-
readonly '@aws-sdk/client-dynamodb': "3.
|
|
15
|
-
readonly '@aws-sdk/client-api-gateway': "3.
|
|
16
|
-
readonly '@aws-sdk/client-iam': "3.
|
|
17
|
-
readonly '@aws-sdk/client-bedrock-agentcore': "3.
|
|
18
|
-
readonly '@aws-sdk/client-bedrock-runtime': "3.
|
|
19
|
-
readonly '@aws-sdk/client-s3': "3.
|
|
20
|
-
readonly '@aws-sdk/client-sts': "3.
|
|
21
|
-
readonly '@aws-sdk/credential-providers': "3.
|
|
22
|
-
readonly '@aws-sdk/credential-provider-cognito-identity': "3.972.
|
|
23
|
-
readonly '@aws-sdk/client-secrets-manager': "3.
|
|
24
|
-
readonly '@aws-sdk/rds-signer': "3.
|
|
25
|
-
readonly '@
|
|
26
|
-
readonly '@
|
|
14
|
+
readonly '@aws-sdk/client-dynamodb': "3.1106.0";
|
|
15
|
+
readonly '@aws-sdk/client-api-gateway': "3.1106.0";
|
|
16
|
+
readonly '@aws-sdk/client-iam': "3.1106.0";
|
|
17
|
+
readonly '@aws-sdk/client-bedrock-agentcore': "3.1106.0";
|
|
18
|
+
readonly '@aws-sdk/client-bedrock-runtime': "3.1106.0";
|
|
19
|
+
readonly '@aws-sdk/client-s3': "3.1106.0";
|
|
20
|
+
readonly '@aws-sdk/client-sts': "3.1106.0";
|
|
21
|
+
readonly '@aws-sdk/credential-providers': "3.1106.0";
|
|
22
|
+
readonly '@aws-sdk/credential-provider-cognito-identity': "3.972.66";
|
|
23
|
+
readonly '@aws-sdk/client-secrets-manager': "3.1106.0";
|
|
24
|
+
readonly '@aws-sdk/rds-signer': "3.1106.0";
|
|
25
|
+
readonly '@smithy/server-apigateway': "0.2.0";
|
|
26
|
+
readonly '@smithy/server-node': "0.2.0";
|
|
27
27
|
readonly '@aws-lambda-powertools/logger': "2.34.0";
|
|
28
28
|
readonly '@aws-lambda-powertools/metrics': "2.34.0";
|
|
29
29
|
readonly '@aws-lambda-powertools/parameters': "2.34.0";
|
|
30
30
|
readonly '@aws-lambda-powertools/tracer': "2.34.0";
|
|
31
31
|
readonly '@aws-lambda-powertools/parser': "2.34.0";
|
|
32
|
-
readonly '@aws-sdk/client-appconfigdata': "3.
|
|
32
|
+
readonly '@aws-sdk/client-appconfigdata': "3.1106.0";
|
|
33
33
|
readonly '@middy/core': "7.7.2";
|
|
34
34
|
readonly '@nxlv/python': "22.2.2";
|
|
35
|
-
readonly '@nx-extend/terraform': "10.
|
|
35
|
+
readonly '@nx-extend/terraform': "10.4.1";
|
|
36
36
|
readonly nx: "23.1.1";
|
|
37
37
|
readonly '@nx/devkit': "23.1.1";
|
|
38
38
|
readonly '@nx/js': "23.1.1";
|
|
@@ -51,27 +51,27 @@ export declare const TS_VERSIONS: {
|
|
|
51
51
|
readonly '@ag-ui/core': "0.0.57";
|
|
52
52
|
readonly '@ag-ui/encoder': "0.0.57";
|
|
53
53
|
readonly 'agent-chat-cli': "0.3.0";
|
|
54
|
-
readonly '@copilotkit/react-core': "1.
|
|
54
|
+
readonly '@copilotkit/react-core': "1.66.4";
|
|
55
55
|
readonly rxjs: "7.8.2";
|
|
56
|
-
readonly '@strands-agents/sdk': "1.
|
|
57
|
-
readonly '@tanstack/react-router': "1.170.
|
|
58
|
-
readonly '@tanstack/router-plugin': "1.168.
|
|
59
|
-
readonly '@tanstack/router-generator': "1.167.
|
|
56
|
+
readonly '@strands-agents/sdk': "1.12.0";
|
|
57
|
+
readonly '@tanstack/react-router': "1.170.23";
|
|
58
|
+
readonly '@tanstack/router-plugin': "1.168.27";
|
|
59
|
+
readonly '@tanstack/router-generator': "1.167.25";
|
|
60
60
|
readonly '@tanstack/virtual-file-routes': "1.162.0";
|
|
61
61
|
readonly '@tanstack/router-utils': "1.162.2";
|
|
62
|
-
readonly '@cloudscape-design/board-components': "3.0.
|
|
63
|
-
readonly '@cloudscape-design/chat-components': "1.0.
|
|
64
|
-
readonly '@cloudscape-design/components': "3.0.
|
|
62
|
+
readonly '@cloudscape-design/board-components': "3.0.213";
|
|
63
|
+
readonly '@cloudscape-design/chat-components': "1.0.157";
|
|
64
|
+
readonly '@cloudscape-design/components': "3.0.1342";
|
|
65
65
|
readonly '@cloudscape-design/global-styles': "1.0.65";
|
|
66
66
|
readonly '@tanstack/react-query': "5.101.4";
|
|
67
67
|
readonly '@tanstack/react-query-devtools': "5.101.4";
|
|
68
68
|
readonly '@trpc/tanstack-react-query': "11.18.0";
|
|
69
69
|
readonly '@trpc/client': "11.18.0";
|
|
70
70
|
readonly '@trpc/server': "11.18.0";
|
|
71
|
-
readonly '@types/node': "26.
|
|
71
|
+
readonly '@types/node': "26.2.0";
|
|
72
72
|
readonly '@types/aws-lambda': "8.10.162";
|
|
73
73
|
readonly '@types/cors': "2.8.19";
|
|
74
|
-
readonly '@types/pg': "8.
|
|
74
|
+
readonly '@types/pg': "8.21.0";
|
|
75
75
|
readonly '@types/ws': "8.18.1";
|
|
76
76
|
readonly '@types/express': "5.0.6";
|
|
77
77
|
readonly '@smithy/config-resolver': "4.6.16";
|
|
@@ -84,21 +84,21 @@ export declare const TS_VERSIONS: {
|
|
|
84
84
|
readonly '@astrojs/starlight': "0.41.3";
|
|
85
85
|
readonly astro: "7.1.1";
|
|
86
86
|
readonly aws4fetch: "1.0.20";
|
|
87
|
-
readonly 'aws-cdk': "2.1135.
|
|
87
|
+
readonly 'aws-cdk': "2.1135.1";
|
|
88
88
|
readonly 'aws-cdk-lib': "2.263.0";
|
|
89
89
|
readonly 'aws-xray-sdk-core': "3.12.0";
|
|
90
|
-
readonly constructs: "10.8.
|
|
90
|
+
readonly constructs: "10.8.1";
|
|
91
91
|
readonly cors: "2.8.6";
|
|
92
92
|
readonly chalk: "5.6.2";
|
|
93
93
|
readonly 'class-variance-authority': "0.7.1";
|
|
94
94
|
readonly clsx: "2.1.1";
|
|
95
95
|
readonly commander: "15.0.0";
|
|
96
96
|
readonly 'cpy-cli': "7.0.0";
|
|
97
|
-
readonly electrodb: "3.9.
|
|
98
|
-
readonly esbuild: "0.28.
|
|
97
|
+
readonly electrodb: "3.9.2";
|
|
98
|
+
readonly esbuild: "0.28.2";
|
|
99
99
|
readonly 'event-source-polyfill': "1.0.31";
|
|
100
100
|
readonly '@types/event-source-polyfill': "1.0.5";
|
|
101
|
-
readonly '@biomejs/biome': "2.5.
|
|
101
|
+
readonly '@biomejs/biome': "2.5.7";
|
|
102
102
|
readonly '@prisma/adapter-mariadb': "7.9.1";
|
|
103
103
|
readonly '@prisma/adapter-pg': "7.9.1";
|
|
104
104
|
readonly '@prisma/client': "7.9.1";
|
|
@@ -116,30 +116,30 @@ export declare const TS_VERSIONS: {
|
|
|
116
116
|
readonly npm: "12.0.2";
|
|
117
117
|
readonly 'npm-check-updates': "22.2.9";
|
|
118
118
|
readonly 'oidc-client-ts': "3.5.0";
|
|
119
|
-
readonly pg: "8.
|
|
119
|
+
readonly pg: "8.23.0";
|
|
120
120
|
readonly prisma: "7.9.1";
|
|
121
121
|
readonly 'react-oidc-context': "3.3.1";
|
|
122
122
|
readonly react: "19.2.8";
|
|
123
123
|
readonly 'react-dom': "19.2.8";
|
|
124
124
|
readonly rimraf: "6.1.3";
|
|
125
|
-
readonly rolldown: "1.2.
|
|
125
|
+
readonly rolldown: "1.2.3";
|
|
126
126
|
readonly 'rolldown-plugin-dts': "0.28.0";
|
|
127
127
|
readonly 'simple-git': "3.36.0";
|
|
128
128
|
readonly 'source-map-support': "0.5.21";
|
|
129
129
|
readonly 'starlight-blog': "0.28.0";
|
|
130
130
|
readonly tailwindcss: "4.3.3";
|
|
131
131
|
readonly '@tailwindcss/vite': "4.3.3";
|
|
132
|
-
readonly tsx: "4.23.
|
|
133
|
-
readonly 'lucide-react': "1.
|
|
132
|
+
readonly tsx: "4.23.11";
|
|
133
|
+
readonly 'lucide-react': "1.30.0";
|
|
134
134
|
readonly 'radix-ui': "1.6.7";
|
|
135
|
-
readonly shadcn: "4.16.
|
|
135
|
+
readonly shadcn: "4.16.2";
|
|
136
136
|
readonly 'tw-animate-css': "1.4.0";
|
|
137
137
|
readonly 'tailwind-merge': "3.6.0";
|
|
138
|
-
readonly vite: "8.2.
|
|
138
|
+
readonly vite: "8.2.1";
|
|
139
139
|
readonly typescript: "6.0.3";
|
|
140
140
|
readonly vitest: "4.1.10";
|
|
141
141
|
readonly zod: "4.4.3";
|
|
142
|
-
readonly ws: "8.21.
|
|
142
|
+
readonly ws: "8.21.3";
|
|
143
143
|
};
|
|
144
144
|
export type ITsDepVersion = keyof typeof TS_VERSIONS;
|
|
145
145
|
/**
|
|
@@ -174,28 +174,28 @@ export declare const PY_VERSIONS: {
|
|
|
174
174
|
readonly 'aws-lambda-powertools[tracer]': "==3.31.1";
|
|
175
175
|
readonly 'aws-lambda-powertools[parser]': "==3.31.1";
|
|
176
176
|
readonly 'aws-opentelemetry-distro': "==0.19.0";
|
|
177
|
-
readonly 'bedrock-agentcore': "==1.
|
|
178
|
-
readonly boto3: "==1.43.
|
|
177
|
+
readonly 'bedrock-agentcore': "==1.21.0";
|
|
178
|
+
readonly boto3: "==1.43.67";
|
|
179
179
|
readonly checkov: "==3.3.9";
|
|
180
180
|
readonly fastapi: "==0.141.1";
|
|
181
181
|
readonly 'fastapi[standard]': "==0.141.1";
|
|
182
182
|
readonly httpx: "==0.28.1";
|
|
183
183
|
readonly langchain: "==1.3.14";
|
|
184
|
-
readonly 'langchain-aws': "==1.
|
|
185
|
-
readonly 'langchain-mcp-adapters': "==0.3.
|
|
184
|
+
readonly 'langchain-aws': "==1.7.0";
|
|
185
|
+
readonly 'langchain-mcp-adapters': "==0.3.2";
|
|
186
186
|
readonly langgraph: "==1.2.10";
|
|
187
187
|
readonly mcp: "==1.28.1";
|
|
188
188
|
readonly 'pip-check-updates': "==0.29.0";
|
|
189
189
|
readonly 'pip-licenses': "==5.5.5";
|
|
190
|
-
readonly ruff: "==0.16.
|
|
191
|
-
readonly 'strands-agents': "==1.
|
|
192
|
-
readonly 'strands-agents[a2a]': "==1.
|
|
193
|
-
readonly 'strands-agents-tools': "==0.8.
|
|
194
|
-
readonly ty: "==0.0.
|
|
190
|
+
readonly ruff: "==0.16.2";
|
|
191
|
+
readonly 'strands-agents': "==1.51.0";
|
|
192
|
+
readonly 'strands-agents[a2a]': "==1.51.0";
|
|
193
|
+
readonly 'strands-agents-tools': "==0.8.6";
|
|
194
|
+
readonly ty: "==0.0.69";
|
|
195
195
|
readonly pynamodb: "==6.1.0";
|
|
196
196
|
readonly uvicorn: "==0.52.1";
|
|
197
197
|
readonly sqlmodel: "==0.0.39";
|
|
198
|
-
readonly alembic: "==1.
|
|
198
|
+
readonly alembic: "==1.19.1";
|
|
199
199
|
readonly aiomysql: "==0.3.2";
|
|
200
200
|
readonly asyncpg: "==0.31.0";
|
|
201
201
|
readonly greenlet: "==3.5.4";
|
|
@@ -222,7 +222,7 @@ export declare const JAVA_VERSIONS: {
|
|
|
222
222
|
readonly 'software.amazon.smithy:smithy-aws-traits': "1.72.1";
|
|
223
223
|
readonly 'software.amazon.smithy:smithy-validation-model': "1.72.1";
|
|
224
224
|
readonly 'software.amazon.smithy:smithy-openapi': "1.72.1";
|
|
225
|
-
readonly 'software.amazon.smithy.typescript:smithy-aws-typescript-codegen': "0.
|
|
225
|
+
readonly 'software.amazon.smithy.typescript:smithy-aws-typescript-codegen': "0.52.0";
|
|
226
226
|
};
|
|
227
227
|
export type IJavaVersion = keyof typeof JAVA_VERSIONS;
|
|
228
228
|
/** The Maven coordinates the version update resolves, in declaration order. */
|
|
@@ -274,7 +274,7 @@ export declare const containerImage: (tool: keyof typeof CONTAINER_VERSIONS) =>
|
|
|
274
274
|
* Pinned exactly (no range operator) so generated infrastructure is reproducible.
|
|
275
275
|
*/
|
|
276
276
|
export declare const TERRAFORM_VERSIONS: {
|
|
277
|
-
readonly aws: "6.
|
|
277
|
+
readonly aws: "6.58.0";
|
|
278
278
|
readonly random: "3.9.0";
|
|
279
279
|
readonly null: "3.3.0";
|
|
280
280
|
readonly archive: "2.8.0";
|
|
@@ -288,7 +288,7 @@ export type ITerraformProviderVersion = keyof typeof TERRAFORM_VERSIONS;
|
|
|
288
288
|
* generated `.tf` templates (e.g. `version = "<%- awsProviderVersion %>"`)
|
|
289
289
|
*/
|
|
290
290
|
export declare const terraformProviderVersions: () => {
|
|
291
|
-
awsProviderVersion: "6.
|
|
291
|
+
awsProviderVersion: "6.58.0";
|
|
292
292
|
randomProviderVersion: "3.9.0";
|
|
293
293
|
nullProviderVersion: "3.3.0";
|
|
294
294
|
archiveProviderVersion: "2.8.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -16,28 +16,28 @@
|
|
|
16
16
|
// as fixed. Overriding brace-expansion directly is not viable — 5.x drops the
|
|
17
17
|
// CommonJS default export that minimatch 9 calls.
|
|
18
18
|
minimatch: '10.2.6',
|
|
19
|
-
'@aws-sdk/client-dynamodb': '3.
|
|
20
|
-
'@aws-sdk/client-api-gateway': '3.
|
|
21
|
-
'@aws-sdk/client-iam': '3.
|
|
22
|
-
'@aws-sdk/client-bedrock-agentcore': '3.
|
|
23
|
-
'@aws-sdk/client-bedrock-runtime': '3.
|
|
24
|
-
'@aws-sdk/client-s3': '3.
|
|
25
|
-
'@aws-sdk/client-sts': '3.
|
|
26
|
-
'@aws-sdk/credential-providers': '3.
|
|
27
|
-
'@aws-sdk/credential-provider-cognito-identity': '3.972.
|
|
28
|
-
'@aws-sdk/client-secrets-manager': '3.
|
|
29
|
-
'@aws-sdk/rds-signer': '3.
|
|
30
|
-
'@
|
|
31
|
-
'@
|
|
19
|
+
'@aws-sdk/client-dynamodb': '3.1106.0',
|
|
20
|
+
'@aws-sdk/client-api-gateway': '3.1106.0',
|
|
21
|
+
'@aws-sdk/client-iam': '3.1106.0',
|
|
22
|
+
'@aws-sdk/client-bedrock-agentcore': '3.1106.0',
|
|
23
|
+
'@aws-sdk/client-bedrock-runtime': '3.1106.0',
|
|
24
|
+
'@aws-sdk/client-s3': '3.1106.0',
|
|
25
|
+
'@aws-sdk/client-sts': '3.1106.0',
|
|
26
|
+
'@aws-sdk/credential-providers': '3.1106.0',
|
|
27
|
+
'@aws-sdk/credential-provider-cognito-identity': '3.972.66',
|
|
28
|
+
'@aws-sdk/client-secrets-manager': '3.1106.0',
|
|
29
|
+
'@aws-sdk/rds-signer': '3.1106.0',
|
|
30
|
+
'@smithy/server-apigateway': '0.2.0',
|
|
31
|
+
'@smithy/server-node': '0.2.0',
|
|
32
32
|
'@aws-lambda-powertools/logger': '2.34.0',
|
|
33
33
|
'@aws-lambda-powertools/metrics': '2.34.0',
|
|
34
34
|
'@aws-lambda-powertools/parameters': '2.34.0',
|
|
35
35
|
'@aws-lambda-powertools/tracer': '2.34.0',
|
|
36
36
|
'@aws-lambda-powertools/parser': '2.34.0',
|
|
37
|
-
'@aws-sdk/client-appconfigdata': '3.
|
|
37
|
+
'@aws-sdk/client-appconfigdata': '3.1106.0',
|
|
38
38
|
'@middy/core': '7.7.2',
|
|
39
39
|
'@nxlv/python': '22.2.2',
|
|
40
|
-
'@nx-extend/terraform': '10.
|
|
40
|
+
'@nx-extend/terraform': '10.4.1',
|
|
41
41
|
// These must all hold the same version — see NX_PACKAGES.
|
|
42
42
|
nx: '23.1.1',
|
|
43
43
|
'@nx/devkit': '23.1.1',
|
|
@@ -57,27 +57,27 @@
|
|
|
57
57
|
'@ag-ui/core': '0.0.57',
|
|
58
58
|
'@ag-ui/encoder': '0.0.57',
|
|
59
59
|
'agent-chat-cli': '0.3.0',
|
|
60
|
-
'@copilotkit/react-core': '1.
|
|
60
|
+
'@copilotkit/react-core': '1.66.4',
|
|
61
61
|
rxjs: '7.8.2',
|
|
62
|
-
'@strands-agents/sdk': '1.
|
|
63
|
-
'@tanstack/react-router': '1.170.
|
|
64
|
-
'@tanstack/router-plugin': '1.168.
|
|
65
|
-
'@tanstack/router-generator': '1.167.
|
|
62
|
+
'@strands-agents/sdk': '1.12.0',
|
|
63
|
+
'@tanstack/react-router': '1.170.23',
|
|
64
|
+
'@tanstack/router-plugin': '1.168.27',
|
|
65
|
+
'@tanstack/router-generator': '1.167.25',
|
|
66
66
|
'@tanstack/virtual-file-routes': '1.162.0',
|
|
67
67
|
'@tanstack/router-utils': '1.162.2',
|
|
68
|
-
'@cloudscape-design/board-components': '3.0.
|
|
69
|
-
'@cloudscape-design/chat-components': '1.0.
|
|
70
|
-
'@cloudscape-design/components': '3.0.
|
|
68
|
+
'@cloudscape-design/board-components': '3.0.213',
|
|
69
|
+
'@cloudscape-design/chat-components': '1.0.157',
|
|
70
|
+
'@cloudscape-design/components': '3.0.1342',
|
|
71
71
|
'@cloudscape-design/global-styles': '1.0.65',
|
|
72
72
|
'@tanstack/react-query': '5.101.4',
|
|
73
73
|
'@tanstack/react-query-devtools': '5.101.4',
|
|
74
74
|
'@trpc/tanstack-react-query': '11.18.0',
|
|
75
75
|
'@trpc/client': '11.18.0',
|
|
76
76
|
'@trpc/server': '11.18.0',
|
|
77
|
-
'@types/node': '26.
|
|
77
|
+
'@types/node': '26.2.0',
|
|
78
78
|
'@types/aws-lambda': '8.10.162',
|
|
79
79
|
'@types/cors': '2.8.19',
|
|
80
|
-
'@types/pg': '8.
|
|
80
|
+
'@types/pg': '8.21.0',
|
|
81
81
|
'@types/ws': '8.18.1',
|
|
82
82
|
'@types/express': '5.0.6',
|
|
83
83
|
'@smithy/config-resolver': '4.6.16',
|
|
@@ -90,21 +90,21 @@
|
|
|
90
90
|
'@astrojs/starlight': '0.41.3',
|
|
91
91
|
astro: '7.1.1',
|
|
92
92
|
aws4fetch: '1.0.20',
|
|
93
|
-
'aws-cdk': '2.1135.
|
|
93
|
+
'aws-cdk': '2.1135.1',
|
|
94
94
|
'aws-cdk-lib': '2.263.0',
|
|
95
95
|
'aws-xray-sdk-core': '3.12.0',
|
|
96
|
-
constructs: '10.8.
|
|
96
|
+
constructs: '10.8.1',
|
|
97
97
|
cors: '2.8.6',
|
|
98
98
|
chalk: '5.6.2',
|
|
99
99
|
'class-variance-authority': '0.7.1',
|
|
100
100
|
clsx: '2.1.1',
|
|
101
101
|
commander: '15.0.0',
|
|
102
102
|
'cpy-cli': '7.0.0',
|
|
103
|
-
electrodb: '3.9.
|
|
104
|
-
esbuild: '0.28.
|
|
103
|
+
electrodb: '3.9.2',
|
|
104
|
+
esbuild: '0.28.2',
|
|
105
105
|
'event-source-polyfill': '1.0.31',
|
|
106
106
|
'@types/event-source-polyfill': '1.0.5',
|
|
107
|
-
'@biomejs/biome': '2.5.
|
|
107
|
+
'@biomejs/biome': '2.5.7',
|
|
108
108
|
'@prisma/adapter-mariadb': '7.9.1',
|
|
109
109
|
'@prisma/adapter-pg': '7.9.1',
|
|
110
110
|
'@prisma/client': '7.9.1',
|
|
@@ -122,30 +122,30 @@
|
|
|
122
122
|
npm: '12.0.2',
|
|
123
123
|
'npm-check-updates': '22.2.9',
|
|
124
124
|
'oidc-client-ts': '3.5.0',
|
|
125
|
-
pg: '8.
|
|
125
|
+
pg: '8.23.0',
|
|
126
126
|
prisma: '7.9.1',
|
|
127
127
|
'react-oidc-context': '3.3.1',
|
|
128
128
|
react: '19.2.8',
|
|
129
129
|
'react-dom': '19.2.8',
|
|
130
130
|
rimraf: '6.1.3',
|
|
131
|
-
rolldown: '1.2.
|
|
131
|
+
rolldown: '1.2.3',
|
|
132
132
|
'rolldown-plugin-dts': '0.28.0',
|
|
133
133
|
'simple-git': '3.36.0',
|
|
134
134
|
'source-map-support': '0.5.21',
|
|
135
135
|
'starlight-blog': '0.28.0',
|
|
136
136
|
tailwindcss: '4.3.3',
|
|
137
137
|
'@tailwindcss/vite': '4.3.3',
|
|
138
|
-
tsx: '4.23.
|
|
139
|
-
'lucide-react': '1.
|
|
138
|
+
tsx: '4.23.11',
|
|
139
|
+
'lucide-react': '1.30.0',
|
|
140
140
|
'radix-ui': '1.6.7',
|
|
141
|
-
shadcn: '4.16.
|
|
141
|
+
shadcn: '4.16.2',
|
|
142
142
|
'tw-animate-css': '1.4.0',
|
|
143
143
|
'tailwind-merge': '3.6.0',
|
|
144
|
-
vite: '8.2.
|
|
144
|
+
vite: '8.2.1',
|
|
145
145
|
typescript: '6.0.3',
|
|
146
146
|
vitest: '4.1.10',
|
|
147
147
|
zod: '4.4.3',
|
|
148
|
-
ws: '8.21.
|
|
148
|
+
ws: '8.21.3'
|
|
149
149
|
};
|
|
150
150
|
/**
|
|
151
151
|
* Add versions to the given dependencies, which the declaration must own.
|
|
@@ -189,28 +189,28 @@
|
|
|
189
189
|
'aws-lambda-powertools[tracer]': '==3.31.1',
|
|
190
190
|
'aws-lambda-powertools[parser]': '==3.31.1',
|
|
191
191
|
'aws-opentelemetry-distro': '==0.19.0',
|
|
192
|
-
'bedrock-agentcore': '==1.
|
|
193
|
-
boto3: '==1.43.
|
|
192
|
+
'bedrock-agentcore': '==1.21.0',
|
|
193
|
+
boto3: '==1.43.67',
|
|
194
194
|
checkov: '==3.3.9',
|
|
195
195
|
fastapi: '==0.141.1',
|
|
196
196
|
'fastapi[standard]': '==0.141.1',
|
|
197
197
|
httpx: '==0.28.1',
|
|
198
198
|
langchain: '==1.3.14',
|
|
199
|
-
'langchain-aws': '==1.
|
|
200
|
-
'langchain-mcp-adapters': '==0.3.
|
|
199
|
+
'langchain-aws': '==1.7.0',
|
|
200
|
+
'langchain-mcp-adapters': '==0.3.2',
|
|
201
201
|
langgraph: '==1.2.10',
|
|
202
202
|
mcp: '==1.28.1',
|
|
203
203
|
'pip-check-updates': '==0.29.0',
|
|
204
204
|
'pip-licenses': '==5.5.5',
|
|
205
|
-
ruff: '==0.16.
|
|
206
|
-
'strands-agents': '==1.
|
|
207
|
-
'strands-agents[a2a]': '==1.
|
|
208
|
-
'strands-agents-tools': '==0.8.
|
|
209
|
-
ty: '==0.0.
|
|
205
|
+
ruff: '==0.16.2',
|
|
206
|
+
'strands-agents': '==1.51.0',
|
|
207
|
+
'strands-agents[a2a]': '==1.51.0',
|
|
208
|
+
'strands-agents-tools': '==0.8.6',
|
|
209
|
+
ty: '==0.0.69',
|
|
210
210
|
pynamodb: '==6.1.0',
|
|
211
211
|
uvicorn: '==0.52.1',
|
|
212
212
|
sqlmodel: '==0.0.39',
|
|
213
|
-
alembic: '==1.
|
|
213
|
+
alembic: '==1.19.1',
|
|
214
214
|
aiomysql: '==0.3.2',
|
|
215
215
|
asyncpg: '==0.31.0',
|
|
216
216
|
// Pinned explicitly: SQLAlchemy's async engine pulls greenlet transitively,
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
'software.amazon.smithy:smithy-aws-traits': '1.72.1',
|
|
247
247
|
'software.amazon.smithy:smithy-validation-model': '1.72.1',
|
|
248
248
|
'software.amazon.smithy:smithy-openapi': '1.72.1',
|
|
249
|
-
'software.amazon.smithy.typescript:smithy-aws-typescript-codegen': '0.
|
|
249
|
+
'software.amazon.smithy.typescript:smithy-aws-typescript-codegen': '0.52.0'
|
|
250
250
|
};
|
|
251
251
|
/** The Maven coordinates the version update resolves, in declaration order. */ export const JAVA_ARTIFACTS = Object.keys(JAVA_VERSIONS);
|
|
252
252
|
/** A Maven coordinate as a dependency names it: `<group>:<artifact>:<version>`. */ export const javaMavenDependency = (artifact)=>`${artifact}:${JAVA_VERSIONS[artifact]}`;
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
* Exact versions for Terraform providers used by generated `.tf` modules.
|
|
289
289
|
* Pinned exactly (no range operator) so generated infrastructure is reproducible.
|
|
290
290
|
*/ export const TERRAFORM_VERSIONS = {
|
|
291
|
-
aws: '6.
|
|
291
|
+
aws: '6.58.0',
|
|
292
292
|
random: '3.9.0',
|
|
293
293
|
null: '3.3.0',
|
|
294
294
|
archive: '2.8.0',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../packages/nx-plugin/src/utils/versions.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n type DeclaredPy,\n type DeclaredTs,\n type DependencyDeclaration,\n declaredNames,\n} from './declared-dependencies';\n\n/**\n * Versons for TypeScript dependencies added by generators\n */\nexport const TS_VERSIONS = {\n '@a2a-js/sdk': '0.3.14',\n '@aws/aws-distro-opentelemetry-node-autoinstrumentation': '0.12.0',\n // Pinned above the version the ADOT autoinstrumentation package resolves\n // transitively (2.8.0) to clear CVE-2026-59892 (HIGH).\n '@opentelemetry/propagator-jaeger': '2.10.0',\n // Overridden in the vended agent/MCP image builds to clear CVE-2026-14257\n // (HIGH) in brace-expansion: minimatch 10 is the lowest major depending on\n // brace-expansion 5.x, the only line Trivy's `< 5.0.8` advisory range treats\n // as fixed. Overriding brace-expansion directly is not viable — 5.x drops the\n // CommonJS default export that minimatch 9 calls.\n minimatch: '10.2.6',\n '@aws-sdk/client-dynamodb': '3.1101.0',\n '@aws-sdk/client-api-gateway': '3.1101.0',\n '@aws-sdk/client-iam': '3.1101.0',\n '@aws-sdk/client-bedrock-agentcore': '3.1101.0',\n '@aws-sdk/client-bedrock-runtime': '3.1101.0',\n '@aws-sdk/client-s3': '3.1101.0',\n '@aws-sdk/client-sts': '3.1101.0',\n '@aws-sdk/credential-providers': '3.1101.0',\n '@aws-sdk/credential-provider-cognito-identity': '3.972.64',\n '@aws-sdk/client-secrets-manager': '3.1101.0',\n '@aws-sdk/rds-signer': '3.1101.0',\n '@aws-smithy/server-apigateway': '1.0.0-alpha.10',\n '@aws-smithy/server-node': '1.0.0-alpha.10',\n '@aws-lambda-powertools/logger': '2.34.0',\n '@aws-lambda-powertools/metrics': '2.34.0',\n '@aws-lambda-powertools/parameters': '2.34.0',\n '@aws-lambda-powertools/tracer': '2.34.0',\n '@aws-lambda-powertools/parser': '2.34.0',\n '@aws-sdk/client-appconfigdata': '3.1101.0',\n '@middy/core': '7.7.2',\n '@nxlv/python': '22.2.2',\n '@nx-extend/terraform': '10.3.0',\n // These must all hold the same version — see NX_PACKAGES.\n nx: '23.1.1',\n '@nx/devkit': '23.1.1',\n '@nx/js': '23.1.1',\n '@nx/react': '23.1.1',\n '@nx/vite': '23.1.1',\n '@nx/vitest': '23.1.1',\n '@nx/workspace': '23.1.1',\n 'create-nx-workspace': '23.1.1',\n '@swc-node/register': '1.12.1',\n '@swc/core': '1.15.47',\n '@modelcontextprotocol/sdk': '1.30.0',\n '@modelcontextprotocol/inspector': '0.22.0',\n '@ag-ui/a2ui-toolkit': '0.0.4',\n '@ag-ui/aws-strands': '0.2.3',\n '@ag-ui/client': '0.0.57',\n '@ag-ui/core': '0.0.57',\n '@ag-ui/encoder': '0.0.57',\n 'agent-chat-cli': '0.3.0',\n '@copilotkit/react-core': '1.65.0',\n rxjs: '7.8.2',\n '@strands-agents/sdk': '1.11.2',\n '@tanstack/react-router': '1.170.18',\n '@tanstack/router-plugin': '1.168.23',\n '@tanstack/router-generator': '1.167.21',\n '@tanstack/virtual-file-routes': '1.162.0',\n '@tanstack/router-utils': '1.162.2',\n '@cloudscape-design/board-components': '3.0.212',\n '@cloudscape-design/chat-components': '1.0.156',\n '@cloudscape-design/components': '3.0.1340',\n '@cloudscape-design/global-styles': '1.0.65',\n '@tanstack/react-query': '5.101.4',\n '@tanstack/react-query-devtools': '5.101.4',\n '@trpc/tanstack-react-query': '11.18.0',\n '@trpc/client': '11.18.0',\n '@trpc/server': '11.18.0',\n '@types/node': '26.1.2',\n '@types/aws-lambda': '8.10.162',\n '@types/cors': '2.8.19',\n '@types/pg': '8.20.3',\n '@types/ws': '8.18.1',\n '@types/express': '5.0.6',\n '@smithy/config-resolver': '4.6.16',\n '@smithy/node-config-provider': '4.5.16',\n '@smithy/node-http-handler': '4.9.13',\n '@smithy/types': '4.16.1',\n '@vitest/coverage-v8': '4.1.10',\n '@vitest/ui': '4.1.10',\n '@astrojs/react': '6.0.2',\n '@astrojs/starlight': '0.41.3',\n astro: '7.1.1',\n aws4fetch: '1.0.20',\n 'aws-cdk': '2.1135.0',\n 'aws-cdk-lib': '2.263.0',\n 'aws-xray-sdk-core': '3.12.0',\n constructs: '10.8.0',\n cors: '2.8.6',\n chalk: '5.6.2',\n 'class-variance-authority': '0.7.1',\n clsx: '2.1.1',\n commander: '15.0.0',\n 'cpy-cli': '7.0.0',\n electrodb: '3.9.1',\n esbuild: '0.28.1',\n 'event-source-polyfill': '1.0.31',\n '@types/event-source-polyfill': '1.0.5',\n '@biomejs/biome': '2.5.6',\n '@prisma/adapter-mariadb': '7.9.1',\n '@prisma/adapter-pg': '7.9.1',\n '@prisma/client': '7.9.1',\n ejs: '6.0.1',\n '@types/ejs': '3.1.5',\n express: '5.2.1',\n 'fast-glob': '3.3.3',\n husky: '9.1.7',\n 'fs-extra': '11.4.0',\n '@types/fs-extra': '11.0.4',\n 'make-dir-cli': '4.0.0',\n mariadb: '3.5.3',\n mise: '2026.8.3',\n ncp: '2.0.0',\n npm: '12.0.2',\n 'npm-check-updates': '22.2.9',\n 'oidc-client-ts': '3.5.0',\n pg: '8.22.0',\n prisma: '7.9.1',\n 'react-oidc-context': '3.3.1',\n react: '19.2.8',\n 'react-dom': '19.2.8',\n rimraf: '6.1.3',\n rolldown: '1.2.2',\n 'rolldown-plugin-dts': '0.28.0',\n 'simple-git': '3.36.0',\n 'source-map-support': '0.5.21',\n 'starlight-blog': '0.28.0',\n tailwindcss: '4.3.3',\n '@tailwindcss/vite': '4.3.3',\n tsx: '4.23.5',\n 'lucide-react': '1.28.0',\n 'radix-ui': '1.6.7',\n shadcn: '4.16.1',\n 'tw-animate-css': '1.4.0',\n 'tailwind-merge': '3.6.0',\n vite: '8.2.0',\n typescript: '6.0.3',\n vitest: '4.1.10',\n zod: '4.4.3',\n ws: '8.21.1',\n} as const;\nexport type ITsDepVersion = keyof typeof TS_VERSIONS;\n\n/**\n * Add versions to the given dependencies, which the declaration must own.\n *\n * @param declaration the calling generator's `DEPENDENCIES`\n */\nexport const withVersions = <D extends DependencyDeclaration>(\n declaration: D,\n deps: readonly DeclaredTs<D>[],\n): Record<string, string> => {\n assertDeclared(declaration.ts, deps, 'ts');\n return Object.fromEntries(\n deps.map((dep) => [dep, TS_VERSIONS[dep as ITsDepVersion]]),\n );\n};\n\n/**\n * The `nx` and `@nx/*` packages a generated workspace pins, all of which must\n * hold the same version: a workspace nx even a patch apart hoists a second\n * nested nx, and the two deadlock `nx sync`.\n *\n * Bumping them in a user's workspace requires `packageJsonUpdates` rather than a\n * migration — see `version-upgrade-migration/nx-package-updates.ts`.\n */\nexport const NX_PACKAGES = [\n 'nx',\n '@nx/devkit',\n '@nx/js',\n '@nx/react',\n '@nx/vite',\n '@nx/vitest',\n '@nx/workspace',\n] as const satisfies readonly ITsDepVersion[];\n\n/**\n * The nx version the plugin is built against, and the single source of truth\n * for every place a workspace's nx is pinned.\n */\nexport const NX_VERSION = TS_VERSIONS.nx;\n\n/**\n * Versions for Python dependencies added by generators\n */\nexport const PY_VERSIONS = {\n 'a2a-sdk': '==0.3.26',\n 'ag-ui-langgraph': '==0.0.42',\n 'ag-ui-protocol': '==0.1.19',\n 'ag-ui-strands': '==0.2.4',\n 'aws-lambda-powertools': '==3.31.1',\n 'aws-lambda-powertools[tracer]': '==3.31.1',\n 'aws-lambda-powertools[parser]': '==3.31.1',\n 'aws-opentelemetry-distro': '==0.19.0',\n 'bedrock-agentcore': '==1.19.0',\n boto3: '==1.43.63',\n checkov: '==3.3.9',\n fastapi: '==0.141.1',\n 'fastapi[standard]': '==0.141.1',\n httpx: '==0.28.1',\n langchain: '==1.3.14',\n 'langchain-aws': '==1.6.4',\n 'langchain-mcp-adapters': '==0.3.1',\n langgraph: '==1.2.10',\n mcp: '==1.28.1',\n 'pip-check-updates': '==0.29.0',\n 'pip-licenses': '==5.5.5',\n ruff: '==0.16.1',\n 'strands-agents': '==1.50.2',\n 'strands-agents[a2a]': '==1.50.2',\n 'strands-agents-tools': '==0.8.5',\n ty: '==0.0.66',\n pynamodb: '==6.1.0',\n uvicorn: '==0.52.1',\n sqlmodel: '==0.0.39',\n alembic: '==1.18.5',\n aiomysql: '==0.3.2',\n asyncpg: '==0.31.0',\n // Pinned explicitly: SQLAlchemy's async engine pulls greenlet transitively,\n // and leaving it unpinned lets uv resolve to a just-released version whose\n // platform wheels may not all be published yet (breaking aarch64 installs).\n greenlet: '==3.5.4',\n} as const;\nexport type IPyDepVersion = keyof typeof PY_VERSIONS;\n\n/**\n * Add versions to the given dependencies\n */\nexport const withPyVersions = <D extends DependencyDeclaration>(\n declaration: D,\n deps: readonly DeclaredPy<D>[],\n): string[] => {\n assertDeclared(declaration.py, deps, 'py');\n return deps.map((dep) => `${dep}${PY_VERSIONS[dep as IPyDepVersion]}`);\n};\n\n/** Catches undeclared packages that reach here past the type checker. */\nconst assertDeclared = (\n declared: readonly { readonly name: string }[],\n deps: readonly unknown[],\n kind: 'ts' | 'py',\n): void => {\n const names = declaredNames(declared);\n const undeclared = deps.filter((dep) => !names.includes(dep as string));\n if (undeclared.length > 0) {\n throw new Error(\n `Undeclared ${kind} dependencies: ${undeclared.join(', ')}. Add them to the generator's declareDependencies({ ${kind}: [...] }).`,\n );\n }\n};\n\n/**\n * Versions for vendored tools\n */\nexport const VENDORED_VERSIONS = {\n 'git-secrets': '1.3.0',\n} as const;\n\n/**\n * Versions of Java dependencies added by generators, keyed by Maven coordinate.\n *\n * Every entry is resolved from Maven Central by the version update and named\n * `<group>:<artifact>:<version>` where a generator writes it.\n */\nexport const JAVA_VERSIONS = {\n 'software.amazon.smithy:smithy-model': '1.72.1',\n 'software.amazon.smithy:smithy-aws-traits': '1.72.1',\n 'software.amazon.smithy:smithy-validation-model': '1.72.1',\n 'software.amazon.smithy:smithy-openapi': '1.72.1',\n 'software.amazon.smithy.typescript:smithy-aws-typescript-codegen': '0.50.0',\n} as const;\nexport type IJavaVersion = keyof typeof JAVA_VERSIONS;\n\n/** The Maven coordinates the version update resolves, in declaration order. */\nexport const JAVA_ARTIFACTS = Object.keys(JAVA_VERSIONS) as IJavaVersion[];\n\n/** A Maven coordinate as a dependency names it: `<group>:<artifact>:<version>`. */\nexport const javaMavenDependency = (artifact: IJavaVersion): string =>\n `${artifact}:${JAVA_VERSIONS[artifact]}`;\n\n/**\n * Versions of tools resolved by mise, keyed by the tool name mise knows.\n *\n * Every entry is checked with `mise latest <tool>` by the version update. Nothing\n * is installed into the workspace: the pin travels in the `project.json` target\n * command, which is what the version sync reaches to move it forward.\n */\nexport const MISE_VERSIONS = {\n smithy: '1.72.1',\n} as const;\nexport type IMiseVersion = keyof typeof MISE_VERSIONS;\n\n/** The tools the version update resolves through mise, in declaration order. */\nexport const MISE_TOOLS = Object.keys(MISE_VERSIONS) as IMiseVersion[];\n\n/**\n * Base container images used by generated Dockerfiles. Pinned exactly so\n * generated images are reproducible, and chosen to be free of known\n * HIGH/CRITICAL vulnerabilities at time of generation.\n */\nexport const BASE_IMAGES = {\n node: 'public.ecr.aws/docker/library/node:lts-slim',\n python: 'public.ecr.aws/docker/library/python:3.14-slim',\n} as const;\n\n/**\n * Versions for container tooling used by generated image build/scan targets.\n * Pinned exactly so generated images are reproducible.\n */\nexport const CONTAINER_VERSIONS = {\n // ECR-hosted Trivy image used to scan built images during the build.\n trivy: '0.72.0',\n} as const;\n\n/**\n * Repository each pinned tool image is pulled from, keyed as\n * {@link CONTAINER_VERSIONS}. Kept beside the versions so a tool added here is\n * one entry rather than a reference built somewhere else, which is also what\n * lets the version sync find these pins wherever a target command runs them.\n */\nexport const CONTAINER_REPOSITORIES = {\n trivy: 'public.ecr.aws/aquasecurity/trivy',\n} as const satisfies Record<keyof typeof CONTAINER_VERSIONS, string>;\n\n/** The pinned reference for a tool image, as a target command runs it. */\nexport const containerImage = (tool: keyof typeof CONTAINER_VERSIONS): string =>\n `${CONTAINER_REPOSITORIES[tool]}:${CONTAINER_VERSIONS[tool]}`;\n\n/**\n * Exact versions for Terraform providers used by generated `.tf` modules.\n * Pinned exactly (no range operator) so generated infrastructure is reproducible.\n */\nexport const TERRAFORM_VERSIONS = {\n aws: '6.57.1',\n random: '3.9.0',\n null: '3.3.0',\n archive: '2.8.0',\n external: '2.4.0',\n local: '2.9.0',\n time: '0.14.0',\n} as const;\nexport type ITerraformProviderVersion = keyof typeof TERRAFORM_VERSIONS;\n\n/**\n * Substitution variables exposing Terraform provider version constraints to\n * generated `.tf` templates (e.g. `version = \"<%- awsProviderVersion %>\"`)\n */\nexport const terraformProviderVersions = () => ({\n awsProviderVersion: TERRAFORM_VERSIONS.aws,\n randomProviderVersion: TERRAFORM_VERSIONS.random,\n nullProviderVersion: TERRAFORM_VERSIONS.null,\n archiveProviderVersion: TERRAFORM_VERSIONS.archive,\n externalProviderVersion: TERRAFORM_VERSIONS.external,\n localProviderVersion: TERRAFORM_VERSIONS.local,\n timeProviderVersion: TERRAFORM_VERSIONS.time,\n});\n"],"names":["declaredNames","TS_VERSIONS","minimatch","nx","rxjs","astro","aws4fetch","constructs","cors","chalk","clsx","commander","electrodb","esbuild","ejs","express","husky","mariadb","mise","ncp","npm","pg","prisma","react","rimraf","rolldown","tailwindcss","tsx","shadcn","vite","typescript","vitest","zod","ws","withVersions","declaration","deps","assertDeclared","ts","Object","fromEntries","map","dep","NX_PACKAGES","NX_VERSION","PY_VERSIONS","boto3","checkov","fastapi","httpx","langchain","langgraph","mcp","ruff","ty","pynamodb","uvicorn","sqlmodel","alembic","aiomysql","asyncpg","greenlet","withPyVersions","py","declared","kind","names","undeclared","filter","includes","length","Error","join","VENDORED_VERSIONS","JAVA_VERSIONS","JAVA_ARTIFACTS","keys","javaMavenDependency","artifact","MISE_VERSIONS","smithy","MISE_TOOLS","BASE_IMAGES","node","python","CONTAINER_VERSIONS","trivy","CONTAINER_REPOSITORIES","containerImage","tool","TERRAFORM_VERSIONS","aws","random","null","archive","external","local","time","terraformProviderVersions","awsProviderVersion","randomProviderVersion","nullProviderVersion","archiveProviderVersion","externalProviderVersion","localProviderVersion","timeProviderVersion"],"mappings":"AAAA;;;CAGC,GACD,SAIEA,aAAa,QACR,6BAA0B;AAEjC;;CAEC,GACD,OAAO,MAAMC,cAAc;IACzB,eAAe;IACf,0DAA0D;IAC1D,yEAAyE;IACzE,uDAAuD;IACvD,oCAAoC;IACpC,0EAA0E;IAC1E,2EAA2E;IAC3E,6EAA6E;IAC7E,8EAA8E;IAC9E,kDAAkD;IAClDC,WAAW;IACX,4BAA4B;IAC5B,+BAA+B;IAC/B,uBAAuB;IACvB,qCAAqC;IACrC,mCAAmC;IACnC,sBAAsB;IACtB,uBAAuB;IACvB,iCAAiC;IACjC,iDAAiD;IACjD,mCAAmC;IACnC,uBAAuB;IACvB,iCAAiC;IACjC,2BAA2B;IAC3B,iCAAiC;IACjC,kCAAkC;IAClC,qCAAqC;IACrC,iCAAiC;IACjC,iCAAiC;IACjC,iCAAiC;IACjC,eAAe;IACf,gBAAgB;IAChB,wBAAwB;IACxB,0DAA0D;IAC1DC,IAAI;IACJ,cAAc;IACd,UAAU;IACV,aAAa;IACb,YAAY;IACZ,cAAc;IACd,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,6BAA6B;IAC7B,mCAAmC;IACnC,uBAAuB;IACvB,sBAAsB;IACtB,iBAAiB;IACjB,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,0BAA0B;IAC1BC,MAAM;IACN,uBAAuB;IACvB,0BAA0B;IAC1B,2BAA2B;IAC3B,8BAA8B;IAC9B,iCAAiC;IACjC,0BAA0B;IAC1B,uCAAuC;IACvC,sCAAsC;IACtC,iCAAiC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AClDS,yBAAyBb,mBAAmBK,QAAQ;QACpDS,sBAAsBd,mBAAmBM,KAAK;QAC9CS,qBAAqBf,mBAAmBO,IAAI;IAC9C,CAAA,EAAG"}
|
|
1
|
+
{"version":3,"sources":["../../../../../packages/nx-plugin/src/utils/versions.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n type DeclaredPy,\n type DeclaredTs,\n type DependencyDeclaration,\n declaredNames,\n} from './declared-dependencies';\n\n/**\n * Versons for TypeScript dependencies added by generators\n */\nexport const TS_VERSIONS = {\n '@a2a-js/sdk': '0.3.14',\n '@aws/aws-distro-opentelemetry-node-autoinstrumentation': '0.12.0',\n // Pinned above the version the ADOT autoinstrumentation package resolves\n // transitively (2.8.0) to clear CVE-2026-59892 (HIGH).\n '@opentelemetry/propagator-jaeger': '2.10.0',\n // Overridden in the vended agent/MCP image builds to clear CVE-2026-14257\n // (HIGH) in brace-expansion: minimatch 10 is the lowest major depending on\n // brace-expansion 5.x, the only line Trivy's `< 5.0.8` advisory range treats\n // as fixed. Overriding brace-expansion directly is not viable — 5.x drops the\n // CommonJS default export that minimatch 9 calls.\n minimatch: '10.2.6',\n '@aws-sdk/client-dynamodb': '3.1106.0',\n '@aws-sdk/client-api-gateway': '3.1106.0',\n '@aws-sdk/client-iam': '3.1106.0',\n '@aws-sdk/client-bedrock-agentcore': '3.1106.0',\n '@aws-sdk/client-bedrock-runtime': '3.1106.0',\n '@aws-sdk/client-s3': '3.1106.0',\n '@aws-sdk/client-sts': '3.1106.0',\n '@aws-sdk/credential-providers': '3.1106.0',\n '@aws-sdk/credential-provider-cognito-identity': '3.972.66',\n '@aws-sdk/client-secrets-manager': '3.1106.0',\n '@aws-sdk/rds-signer': '3.1106.0',\n '@smithy/server-apigateway': '0.2.0',\n '@smithy/server-node': '0.2.0',\n '@aws-lambda-powertools/logger': '2.34.0',\n '@aws-lambda-powertools/metrics': '2.34.0',\n '@aws-lambda-powertools/parameters': '2.34.0',\n '@aws-lambda-powertools/tracer': '2.34.0',\n '@aws-lambda-powertools/parser': '2.34.0',\n '@aws-sdk/client-appconfigdata': '3.1106.0',\n '@middy/core': '7.7.2',\n '@nxlv/python': '22.2.2',\n '@nx-extend/terraform': '10.4.1',\n // These must all hold the same version — see NX_PACKAGES.\n nx: '23.1.1',\n '@nx/devkit': '23.1.1',\n '@nx/js': '23.1.1',\n '@nx/react': '23.1.1',\n '@nx/vite': '23.1.1',\n '@nx/vitest': '23.1.1',\n '@nx/workspace': '23.1.1',\n 'create-nx-workspace': '23.1.1',\n '@swc-node/register': '1.12.1',\n '@swc/core': '1.15.47',\n '@modelcontextprotocol/sdk': '1.30.0',\n '@modelcontextprotocol/inspector': '0.22.0',\n '@ag-ui/a2ui-toolkit': '0.0.4',\n '@ag-ui/aws-strands': '0.2.3',\n '@ag-ui/client': '0.0.57',\n '@ag-ui/core': '0.0.57',\n '@ag-ui/encoder': '0.0.57',\n 'agent-chat-cli': '0.3.0',\n '@copilotkit/react-core': '1.66.4',\n rxjs: '7.8.2',\n '@strands-agents/sdk': '1.12.0',\n '@tanstack/react-router': '1.170.23',\n '@tanstack/router-plugin': '1.168.27',\n '@tanstack/router-generator': '1.167.25',\n '@tanstack/virtual-file-routes': '1.162.0',\n '@tanstack/router-utils': '1.162.2',\n '@cloudscape-design/board-components': '3.0.213',\n '@cloudscape-design/chat-components': '1.0.157',\n '@cloudscape-design/components': '3.0.1342',\n '@cloudscape-design/global-styles': '1.0.65',\n '@tanstack/react-query': '5.101.4',\n '@tanstack/react-query-devtools': '5.101.4',\n '@trpc/tanstack-react-query': '11.18.0',\n '@trpc/client': '11.18.0',\n '@trpc/server': '11.18.0',\n '@types/node': '26.2.0',\n '@types/aws-lambda': '8.10.162',\n '@types/cors': '2.8.19',\n '@types/pg': '8.21.0',\n '@types/ws': '8.18.1',\n '@types/express': '5.0.6',\n '@smithy/config-resolver': '4.6.16',\n '@smithy/node-config-provider': '4.5.16',\n '@smithy/node-http-handler': '4.9.13',\n '@smithy/types': '4.16.1',\n '@vitest/coverage-v8': '4.1.10',\n '@vitest/ui': '4.1.10',\n '@astrojs/react': '6.0.2',\n '@astrojs/starlight': '0.41.3',\n astro: '7.1.1',\n aws4fetch: '1.0.20',\n 'aws-cdk': '2.1135.1',\n 'aws-cdk-lib': '2.263.0',\n 'aws-xray-sdk-core': '3.12.0',\n constructs: '10.8.1',\n cors: '2.8.6',\n chalk: '5.6.2',\n 'class-variance-authority': '0.7.1',\n clsx: '2.1.1',\n commander: '15.0.0',\n 'cpy-cli': '7.0.0',\n electrodb: '3.9.2',\n esbuild: '0.28.2',\n 'event-source-polyfill': '1.0.31',\n '@types/event-source-polyfill': '1.0.5',\n '@biomejs/biome': '2.5.7',\n '@prisma/adapter-mariadb': '7.9.1',\n '@prisma/adapter-pg': '7.9.1',\n '@prisma/client': '7.9.1',\n ejs: '6.0.1',\n '@types/ejs': '3.1.5',\n express: '5.2.1',\n 'fast-glob': '3.3.3',\n husky: '9.1.7',\n 'fs-extra': '11.4.0',\n '@types/fs-extra': '11.0.4',\n 'make-dir-cli': '4.0.0',\n mariadb: '3.5.3',\n mise: '2026.8.3',\n ncp: '2.0.0',\n npm: '12.0.2',\n 'npm-check-updates': '22.2.9',\n 'oidc-client-ts': '3.5.0',\n pg: '8.23.0',\n prisma: '7.9.1',\n 'react-oidc-context': '3.3.1',\n react: '19.2.8',\n 'react-dom': '19.2.8',\n rimraf: '6.1.3',\n rolldown: '1.2.3',\n 'rolldown-plugin-dts': '0.28.0',\n 'simple-git': '3.36.0',\n 'source-map-support': '0.5.21',\n 'starlight-blog': '0.28.0',\n tailwindcss: '4.3.3',\n '@tailwindcss/vite': '4.3.3',\n tsx: '4.23.11',\n 'lucide-react': '1.30.0',\n 'radix-ui': '1.6.7',\n shadcn: '4.16.2',\n 'tw-animate-css': '1.4.0',\n 'tailwind-merge': '3.6.0',\n vite: '8.2.1',\n typescript: '6.0.3',\n vitest: '4.1.10',\n zod: '4.4.3',\n ws: '8.21.3',\n} as const;\nexport type ITsDepVersion = keyof typeof TS_VERSIONS;\n\n/**\n * Add versions to the given dependencies, which the declaration must own.\n *\n * @param declaration the calling generator's `DEPENDENCIES`\n */\nexport const withVersions = <D extends DependencyDeclaration>(\n declaration: D,\n deps: readonly DeclaredTs<D>[],\n): Record<string, string> => {\n assertDeclared(declaration.ts, deps, 'ts');\n return Object.fromEntries(\n deps.map((dep) => [dep, TS_VERSIONS[dep as ITsDepVersion]]),\n );\n};\n\n/**\n * The `nx` and `@nx/*` packages a generated workspace pins, all of which must\n * hold the same version: a workspace nx even a patch apart hoists a second\n * nested nx, and the two deadlock `nx sync`.\n *\n * Bumping them in a user's workspace requires `packageJsonUpdates` rather than a\n * migration — see `version-upgrade-migration/nx-package-updates.ts`.\n */\nexport const NX_PACKAGES = [\n 'nx',\n '@nx/devkit',\n '@nx/js',\n '@nx/react',\n '@nx/vite',\n '@nx/vitest',\n '@nx/workspace',\n] as const satisfies readonly ITsDepVersion[];\n\n/**\n * The nx version the plugin is built against, and the single source of truth\n * for every place a workspace's nx is pinned.\n */\nexport const NX_VERSION = TS_VERSIONS.nx;\n\n/**\n * Versions for Python dependencies added by generators\n */\nexport const PY_VERSIONS = {\n 'a2a-sdk': '==0.3.26',\n 'ag-ui-langgraph': '==0.0.42',\n 'ag-ui-protocol': '==0.1.19',\n 'ag-ui-strands': '==0.2.4',\n 'aws-lambda-powertools': '==3.31.1',\n 'aws-lambda-powertools[tracer]': '==3.31.1',\n 'aws-lambda-powertools[parser]': '==3.31.1',\n 'aws-opentelemetry-distro': '==0.19.0',\n 'bedrock-agentcore': '==1.21.0',\n boto3: '==1.43.67',\n checkov: '==3.3.9',\n fastapi: '==0.141.1',\n 'fastapi[standard]': '==0.141.1',\n httpx: '==0.28.1',\n langchain: '==1.3.14',\n 'langchain-aws': '==1.7.0',\n 'langchain-mcp-adapters': '==0.3.2',\n langgraph: '==1.2.10',\n mcp: '==1.28.1',\n 'pip-check-updates': '==0.29.0',\n 'pip-licenses': '==5.5.5',\n ruff: '==0.16.2',\n 'strands-agents': '==1.51.0',\n 'strands-agents[a2a]': '==1.51.0',\n 'strands-agents-tools': '==0.8.6',\n ty: '==0.0.69',\n pynamodb: '==6.1.0',\n uvicorn: '==0.52.1',\n sqlmodel: '==0.0.39',\n alembic: '==1.19.1',\n aiomysql: '==0.3.2',\n asyncpg: '==0.31.0',\n // Pinned explicitly: SQLAlchemy's async engine pulls greenlet transitively,\n // and leaving it unpinned lets uv resolve to a just-released version whose\n // platform wheels may not all be published yet (breaking aarch64 installs).\n greenlet: '==3.5.4',\n} as const;\nexport type IPyDepVersion = keyof typeof PY_VERSIONS;\n\n/**\n * Add versions to the given dependencies\n */\nexport const withPyVersions = <D extends DependencyDeclaration>(\n declaration: D,\n deps: readonly DeclaredPy<D>[],\n): string[] => {\n assertDeclared(declaration.py, deps, 'py');\n return deps.map((dep) => `${dep}${PY_VERSIONS[dep as IPyDepVersion]}`);\n};\n\n/** Catches undeclared packages that reach here past the type checker. */\nconst assertDeclared = (\n declared: readonly { readonly name: string }[],\n deps: readonly unknown[],\n kind: 'ts' | 'py',\n): void => {\n const names = declaredNames(declared);\n const undeclared = deps.filter((dep) => !names.includes(dep as string));\n if (undeclared.length > 0) {\n throw new Error(\n `Undeclared ${kind} dependencies: ${undeclared.join(', ')}. Add them to the generator's declareDependencies({ ${kind}: [...] }).`,\n );\n }\n};\n\n/**\n * Versions for vendored tools\n */\nexport const VENDORED_VERSIONS = {\n 'git-secrets': '1.3.0',\n} as const;\n\n/**\n * Versions of Java dependencies added by generators, keyed by Maven coordinate.\n *\n * Every entry is resolved from Maven Central by the version update and named\n * `<group>:<artifact>:<version>` where a generator writes it.\n */\nexport const JAVA_VERSIONS = {\n 'software.amazon.smithy:smithy-model': '1.72.1',\n 'software.amazon.smithy:smithy-aws-traits': '1.72.1',\n 'software.amazon.smithy:smithy-validation-model': '1.72.1',\n 'software.amazon.smithy:smithy-openapi': '1.72.1',\n 'software.amazon.smithy.typescript:smithy-aws-typescript-codegen': '0.52.0',\n} as const;\nexport type IJavaVersion = keyof typeof JAVA_VERSIONS;\n\n/** The Maven coordinates the version update resolves, in declaration order. */\nexport const JAVA_ARTIFACTS = Object.keys(JAVA_VERSIONS) as IJavaVersion[];\n\n/** A Maven coordinate as a dependency names it: `<group>:<artifact>:<version>`. */\nexport const javaMavenDependency = (artifact: IJavaVersion): string =>\n `${artifact}:${JAVA_VERSIONS[artifact]}`;\n\n/**\n * Versions of tools resolved by mise, keyed by the tool name mise knows.\n *\n * Every entry is checked with `mise latest <tool>` by the version update. Nothing\n * is installed into the workspace: the pin travels in the `project.json` target\n * command, which is what the version sync reaches to move it forward.\n */\nexport const MISE_VERSIONS = {\n smithy: '1.72.1',\n} as const;\nexport type IMiseVersion = keyof typeof MISE_VERSIONS;\n\n/** The tools the version update resolves through mise, in declaration order. */\nexport const MISE_TOOLS = Object.keys(MISE_VERSIONS) as IMiseVersion[];\n\n/**\n * Base container images used by generated Dockerfiles. Pinned exactly so\n * generated images are reproducible, and chosen to be free of known\n * HIGH/CRITICAL vulnerabilities at time of generation.\n */\nexport const BASE_IMAGES = {\n node: 'public.ecr.aws/docker/library/node:lts-slim',\n python: 'public.ecr.aws/docker/library/python:3.14-slim',\n} as const;\n\n/**\n * Versions for container tooling used by generated image build/scan targets.\n * Pinned exactly so generated images are reproducible.\n */\nexport const CONTAINER_VERSIONS = {\n // ECR-hosted Trivy image used to scan built images during the build.\n trivy: '0.72.0',\n} as const;\n\n/**\n * Repository each pinned tool image is pulled from, keyed as\n * {@link CONTAINER_VERSIONS}. Kept beside the versions so a tool added here is\n * one entry rather than a reference built somewhere else, which is also what\n * lets the version sync find these pins wherever a target command runs them.\n */\nexport const CONTAINER_REPOSITORIES = {\n trivy: 'public.ecr.aws/aquasecurity/trivy',\n} as const satisfies Record<keyof typeof CONTAINER_VERSIONS, string>;\n\n/** The pinned reference for a tool image, as a target command runs it. */\nexport const containerImage = (tool: keyof typeof CONTAINER_VERSIONS): string =>\n `${CONTAINER_REPOSITORIES[tool]}:${CONTAINER_VERSIONS[tool]}`;\n\n/**\n * Exact versions for Terraform providers used by generated `.tf` modules.\n * Pinned exactly (no range operator) so generated infrastructure is reproducible.\n */\nexport const TERRAFORM_VERSIONS = {\n aws: '6.58.0',\n random: '3.9.0',\n null: '3.3.0',\n archive: '2.8.0',\n external: '2.4.0',\n local: '2.9.0',\n time: '0.14.0',\n} as const;\nexport type ITerraformProviderVersion = keyof typeof TERRAFORM_VERSIONS;\n\n/**\n * Substitution variables exposing Terraform provider version constraints to\n * generated `.tf` templates (e.g. `version = \"<%- awsProviderVersion %>\"`)\n */\nexport const terraformProviderVersions = () => ({\n awsProviderVersion: TERRAFORM_VERSIONS.aws,\n randomProviderVersion: TERRAFORM_VERSIONS.random,\n nullProviderVersion: TERRAFORM_VERSIONS.null,\n archiveProviderVersion: TERRAFORM_VERSIONS.archive,\n externalProviderVersion: TERRAFORM_VERSIONS.external,\n localProviderVersion: TERRAFORM_VERSIONS.local,\n timeProviderVersion: TERRAFORM_VERSIONS.time,\n});\n"],"names":["declaredNames","TS_VERSIONS","minimatch","nx","rxjs","astro","aws4fetch","constructs","cors","chalk","clsx","commander","electrodb","esbuild","ejs","express","husky","mariadb","mise","ncp","npm","pg","prisma","react","rimraf","rolldown","tailwindcss","tsx","shadcn","vite","typescript","vitest","zod","ws","withVersions","declaration","deps","assertDeclared","ts","Object","fromEntries","map","dep","NX_PACKAGES","NX_VERSION","PY_VERSIONS","boto3","checkov","fastapi","httpx","langchain","langgraph","mcp","ruff","ty","pynamodb","uvicorn","sqlmodel","alembic","aiomysql","asyncpg","greenlet","withPyVersions","py","declared","kind","names","undeclared","filter","includes","length","Error","join","VENDORED_VERSIONS","JAVA_VERSIONS","JAVA_ARTIFACTS","keys","javaMavenDependency","artifact","MISE_VERSIONS","smithy","MISE_TOOLS","BASE_IMAGES","node","python","CONTAINER_VERSIONS","trivy","CONTAINER_REPOSITORIES","containerImage","tool","TERRAFORM_VERSIONS","aws","random","null","archive","external","local","time","terraformProviderVersions","awsProviderVersion","randomProviderVersion","nullProviderVersion","archiveProviderVersion","externalProviderVersion","localProviderVersion","timeProviderVersion"],"mappings":"AAAA;;;CAGC,GACD,SAIEA,aAAa,QACR,6BAA0B;AAEjC;;CAEC,GACD,OAAO,MAAMC,cAAc;IACzB,eAAe;IACf,0DAA0D;IAC1D,yEAAyE;IACzE,uDAAuD;IACvD,oCAAoC;IACpC,0EAA0E;IAC1E,2EAA2E;IAC3E,6EAA6E;IAC7E,8EAA8E;IAC9E,kDAAkD;IAClDC,WAAW;IACX,4BAA4B;IAC5B,+BAA+B;IAC/B,uBAAuB;IACvB,qCAAqC;IACrC,mCAAmC;IACnC,sBAAsB;IACtB,uBAAuB;IACvB,iCAAiC;IACjC,iDAAiD;IACjD,mCAAmC;IACnC,uBAAuB;IACvB,6BAA6B;IAC7B,uBAAuB;IACvB,iCAAiC;IACjC,kCAAkC;IAClC,qCAAqC;IACrC,iCAAiC;IACjC,iCAAiC;IACjC,iCAAiC;IACjC,eAAe;IACf,gBAAgB;IAChB,wBAAwB;IACxB,0DAA0D;IAC1DC,IAAI;IACJ,cAAc;IACd,UAAU;IACV,aAAa;IACb,YAAY;IACZ,cAAc;IACd,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,6BAA6B;IAC7B,mCAAmC;IACnC,uBAAuB;IACvB,sBAAsB;IACtB,iBAAiB;IACjB,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,0BAA0B;IAC1BC,MAAM;IACN,uBAAuB;IACvB,0BAA0B;IAC1B,2BAA2B;IAC3B,8BAA8B;IAC9B,iCAAiC;IACjC,0BAA0B;IAC1B,uCAAuC;IACvC,sCAAsC;IACtC,iCAAiC;IACjC,oCAAoC;IACpC,yBAAyB;IACzB,kCAAkC;IAClC,8BAA8B;IAC9B,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,q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AAA,EAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/migrations/latest/add-deploy-sandbox-target/migration.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n getProjects,\n joinPathFragments,\n type MigrationReturnObject,\n type Tree,\n updateProjectConfiguration,\n} from '@nx/devkit';\nimport { INFRA_APP_GENERATOR_INFO } from '../../../infra/app/generator';\nimport { captureGritQLVariable } from '../../../utils/ast';\nimport { formatFilesInSubtree } from '../../../utils/format';\nimport { normalizeTargetKeyOrder } from '../../../utils/nx';\nimport { sortObjectKeys } from '../../../utils/object';\n\n/**\n * CDK infrastructure projects gained a `deploy-sandbox` target, which deploys the\n * sandbox stage without the user having to spell out its stage pattern\n * (`nx deploy-sandbox infra` rather than `nx deploy infra \"my-app-infra-sandbox/*\"`).\n *\n * The stage id is read from `main.ts` rather than recomputed from the project\n * name, so a project whose sandbox stage has been renamed gets a target that\n * deploys the stage it actually declares.\n *\n * How to write a migration:\n * - https://nx.dev/docs/kb/migration-generators\n * - What `nextSteps` means: https://nx.dev/docs/reference/devkit/MigrationReturnObject\n */\n\nconst TARGET = 'deploy-sandbox';\n\n/**\n * Matches `new ApplicationStage(app, '<id>-sandbox', { ... })`, binding the\n * quoted stage id. The regex spans the quotes because it is matched against the\n * whole string literal node; both quote styles are accepted since the user's\n * formatter may have rewritten them.\n *\n * `main.ts` can declare several stages (beta, prod), so the pattern selects the\n * sandbox one rather than whichever comes first.\n */\nconst SANDBOX_STAGE_PATTERN =\n '`new ApplicationStage($app, $id, $props)` where { $id <: r\"[\\'\\\\\"].*-sandbox[\\'\\\\\"]\" }';\n\n/** The id of the sandbox stage a project's `main.ts` instantiates. */\nconst sandboxStageId = async (\n tree: Tree,\n projectRoot: string,\n): Promise<string | undefined> => {\n const captured = await captureGritQLVariable(\n tree,\n joinPathFragments(projectRoot, 'src', 'main.ts'),\n SANDBOX_STAGE_PATTERN,\n 'id',\n );\n // The binding keeps the quotes from the source.\n return captured?.slice(1, -1);\n};\n\nexport default async function migration(\n tree: Tree,\n): Promise<MigrationReturnObject> {\n const nextSteps: string[] = [];\n\n for (const [projectName, project] of getProjects(tree)) {\n const generator = (project.metadata as { generator?: string } | undefined)\n ?.generator;\n if (\n generator !== INFRA_APP_GENERATOR_INFO.id ||\n project.targets?.[TARGET]\n ) {\n // Not a CDK infrastructure project, or the target is already present.\n continue;\n }\n\n // The new target mirrors `deploy`, so it inherits whatever that resolved to\n // when the project was generated: the `tsx` credential-resolving script\n // under `stageConfig`, plain `cdk deploy` otherwise.\n const deploy = project.targets.deploy;\n const command = deploy?.options?.command;\n const mainPath = joinPathFragments(project.root, 'src/main.ts');\n const stageId = await sandboxStageId(tree, project.root);\n\n if (typeof command !== 'string') {\n nextSteps.push(\n `Add a '${TARGET}' target to ${projectName} by hand if necessary — its 'deploy' target no longer matches the shape the generator produced.`,\n );\n continue;\n }\n if (!stageId) {\n nextSteps.push(\n `Add a '${TARGET}' target to ${projectName} by hand if necessary — no sandbox stage was found in ${mainPath}.`,\n );\n continue;\n }\n\n project.targets[TARGET] = normalizeTargetKeyOrder({\n executor: deploy.executor,\n ...(deploy.dependsOn ? { dependsOn: [...deploy.dependsOn] } : {}),\n // Quoted so the shell does not glob the `*`.\n options: { ...deploy.options, command: `${command} \"${stageId}/*\"` },\n });\n updateProjectConfiguration(tree, projectName, {\n ...project,\n targets: sortObjectKeys(project.targets),\n });\n }\n\n await formatFilesInSubtree(tree);\n\n return { nextSteps };\n}\n"],"names":["getProjects","joinPathFragments","updateProjectConfiguration","INFRA_APP_GENERATOR_INFO","captureGritQLVariable","formatFilesInSubtree","normalizeTargetKeyOrder","sortObjectKeys","TARGET","SANDBOX_STAGE_PATTERN","sandboxStageId","tree","projectRoot","captured","slice","migration","nextSteps","projectName","project","generator","metadata","id","targets","deploy","command","options","mainPath","root","stageId","push","executor","dependsO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Y,EAAES,YAAY,sDAAsD,EAAES,SAAS,CAAC,CAAC;YAEhH;QACF;QAEAR,QAAQI,OAAO,CAACd,OAAO,GAAGF,wBAAwB;YAChDwB,UAAUP,OAAOO,QAAQ;YACzB,GAAIP,OAAOQ,SAAS,GAAG;gBAAEA,WAAW;uBAAIR,OAAOQ,SAAS;iBAAC;YAAC,IAAI,CAAC,CAAC;YAChE,6CAA6C;YAC7CN,SAAS;gBAAE,GAAGF,OAAOE,OAAO;gBAAED,SAAS,GAAGA,QAAQ,EAAE,EAAEI,QAAQ,GAAG,CAAC;YAAC;QACrE;QACA1B,2BAA2BS,MAAMM,aAAa;YAC5C,GAAGC,OAAO;YACVI,SAASf,eAAeW,QAAQI,OAAO;QACzC;IACF;IAEA,MAAMjB,qBAAqBM;IAE3B,OAAO;QAAEK;IAAU;AACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/migrations/latest/gateway-agent-targets/migration.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport type { MigrationReturnObject, Tree } from '@nx/devkit';\nimport {\n applyGritQL,\n GRIT_INSERT_PLACEHOLDER,\n insertViaGritQL,\n matchGritQL,\n} from '../../../utils/ast';\nimport { formatFilesInSubtree } from '../../../utils/format';\nimport {\n PACKAGES_DIR,\n SHARED_CONSTRUCTS_DIR,\n} from '../../../utils/shared-constructs-constants';\n\n/**\n * Bring existing workspaces up to the generators' current gateway-target\n * support, so agents can be attached to an http-protocol AgentCore Gateway:\n *\n * - The vended `AgentCoreGateway` core construct gains the `protocol` prop\n * (http gateways have no protocol type, which AgentCore Runtime targets\n * require) and the `addAgent` / `addAgentTarget` methods.\n * - Vended agent constructs gain the `agentName` member `addAgent` reads as\n * the default gateway target name.\n *\n * Both files are generated with `KeepExisting`, so without this an upgraded\n * workspace pairs new app-level constructs with stale core ones.\n */\n\nconst GATEWAY_CONSTRUCT_FILE = `${PACKAGES_DIR}/${SHARED_CONSTRUCTS_DIR}/src/core/agentcore-gateway/agentcore-gateway.ts`;\n\nconst AGENTS_DIR = `${PACKAGES_DIR}/${SHARED_CONSTRUCTS_DIR}/src/app/agents`;\n\nconst PROTOCOL_PROP = `/**\n * The gateway's protocol. An \\`mcp\\` gateway aggregates MCP server targets\n * into a single MCP endpoint. An \\`http\\` gateway has no protocol type and\n * proxies requests to AgentCore Runtime targets via path-based routing\n * (\\`/<targetName>/invocations\\`) — the target type AgentCore only allows on\n * gateways without a protocol type.\n *\n * @default 'mcp'\n */\n readonly protocol?: 'mcp' | 'http';`;\n\nconst PROTOCOL_CONSTRUCTOR_STATEMENTS = `this.protocol = props?.protocol ?? 'mcp';\n`;\n\nconst PROTOCOL_TYPE_REMOVAL = `\n if (this.protocol === 'http') {\n // AgentCore Runtime targets require a gateway without a protocol type,\n // which the Gateway L2 cannot express — it always renders MCP — so\n // remove the protocol from the underlying CloudFormation resource.\n const cfnGateway = this.gateway.node.defaultChild as agentcore.CfnGateway;\n cfnGateway.addPropertyDeletionOverride('ProtocolType');\n cfnGateway.addPropertyDeletionOverride('ProtocolConfiguration');\n }`;\n\nconst AGENT_TARGET_METHODS = `\n /**\n * Add an agent runtime construct as a target of this Gateway. Requires the\n * \\`http\\` protocol — the gateway proxies requests for the agent under\n * \\`<gatewayUrl>/<targetName>/invocations\\`, without protocol translation.\n *\n * The target name defaults to the agent construct's \\`agentName\\` (its\n * project's class name in kebab-case, e.g. \\`MyAgent\\` -> \\`my-agent\\`). It\n * forms the target's invocation path, so renaming it later is a breaking\n * change for consumers.\n */\n public addAgent(\n agent: Construct & {\n readonly agentCoreRuntime: agentcore.Runtime;\n readonly agentName: string;\n },\n props?: {\n gatewayTargetName?: string;\n },\n ): agentcore.CfnGatewayTarget {\n return this.addAgentTarget({\n gatewayTargetName: props?.gatewayTargetName ?? agent.agentName,\n agentRuntimeArn: agent.agentCoreRuntime.agentRuntimeArn,\n });\n }\n\n /**\n * Register an agent runtime ARN as a Gateway target. Prefer\n * {@link addAgent} when the construct is in scope.\n */\n public addAgentTarget(props: {\n gatewayTargetName: string;\n agentRuntimeArn: string;\n }): agentcore.CfnGatewayTarget {\n if (this.protocol !== 'http') {\n throw new Error(\n \\`Agent runtime targets require an http-protocol gateway, but this gateway uses '\\${this.protocol}'.\\`,\n );\n }\n\n // The construct id is derived from the target name so the two change\n // together — target names are unique per gateway, and replacing a target\n // under an unchanged name fails with AlreadyExists.\n const target = new agentcore.CfnGatewayTarget(\n this,\n \\`Target-\\${props.gatewayTargetName}\\`,\n {\n gatewayIdentifier: this.gateway.gatewayId,\n name: props.gatewayTargetName,\n targetConfiguration: {\n http: {\n agentcoreRuntime: {\n arn: props.agentRuntimeArn,\n qualifier: 'DEFAULT',\n },\n },\n },\n // The bare gateway IAM role credential: runtime targets reject the\n // iamCredentialProvider detail MCP targets carry.\n credentialProviderConfigurations: [\n {\n credentialProviderType: 'GATEWAY_IAM_ROLE',\n },\n ],\n },\n );\n\n // Grant the gateway role invoke access to the target runtime before the\n // target is created — AgentCore validates access to the runtime during\n // target creation.\n const grant = this.gateway.role.addToPrincipalPolicy(\n new iam.PolicyStatement({\n actions: [\n 'bedrock-agentcore:InvokeAgentRuntime',\n 'bedrock-agentcore:InvokeAgentRuntimeWithWebSocketStream',\n // A2A targets additionally serve their agent card via the gateway.\n 'bedrock-agentcore:GetAgentCard',\n ],\n resources: [props.agentRuntimeArn, \\`\\${props.agentRuntimeArn}/*\\`],\n }),\n );\n if (grant.policyDependable) {\n target.node.addDependency(grant.policyDependable);\n }\n\n return target;\n }`;\n\n/**\n * Add the `protocol` prop, its constructor handling and the agent-target\n * methods to the vended `AgentCoreGateway` core construct.\n */\nconst migrateGatewayConstruct = async (\n tree: Tree,\n nextSteps: string[],\n): Promise<void> => {\n if (!tree.exists(GATEWAY_CONSTRUCT_FILE)) {\n // No vended gateway construct in this workspace - nothing to migrate.\n return;\n }\n\n if (\n (tree.read(GATEWAY_CONSTRUCT_FILE, 'utf-8') ?? '').includes(\n 'addAgentTarget',\n )\n ) {\n // Already migrated.\n return;\n }\n\n const divergedMessage = `${GATEWAY_CONSTRUCT_FILE}: the AgentCoreGateway construct has diverged from the generated shape - left untouched. Re-run the agentcore-gateway generator in a fresh workspace to see the current construct, which supports agent runtime targets via a 'protocol' prop and addAgent()/addAgentTarget() methods.`;\n\n // Anchored on the shapes every vended version of the construct carries: the\n // props interface, the class field the protocol field is inserted after,\n // and the Gateway creation in the constructor.\n const hasVendedShape =\n (await matchGritQL(\n tree,\n GATEWAY_CONSTRUCT_FILE,\n '`export interface AgentCoreGatewayProps { $_ }`',\n )) &&\n (await matchGritQL(\n tree,\n GATEWAY_CONSTRUCT_FILE,\n '`private readonly targetRuntimeArns: string[] = []`',\n )) &&\n (await matchGritQL(\n tree,\n GATEWAY_CONSTRUCT_FILE,\n \"`this.gateway = new agentcore.Gateway(this, 'Gateway', $_)`\",\n ));\n\n if (!hasVendedShape) {\n nextSteps.push(divergedMessage);\n return;\n }\n\n // 1. The protocol prop on AgentCoreGatewayProps. The placeholder keeps the\n // prop's doc comment (with its backticks) out of the GritQL pattern.\n await insertViaGritQL(\n tree,\n GATEWAY_CONSTRUCT_FILE,\n `\\`export interface AgentCoreGatewayProps { $members }\\` where {\n $members <: not contains \\`protocol\\`\n} => \\`export interface AgentCoreGatewayProps { $members\n ${GRIT_INSERT_PLACEHOLDER}\n}\\``,\n PROTOCOL_PROP,\n );\n\n // 2. The protocol class field. Matched without the trailing semicolon —\n // GritQL parses the snippet standalone, where the semicolon is not part\n // of the field's AST node.\n await applyGritQL(\n tree,\n GATEWAY_CONSTRUCT_FILE,\n `\\`private readonly targetRuntimeArns: string[] = []\\` as $field where {\n $program <: not contains \\`private readonly protocol\\`\n} => \\`$field;\n private readonly protocol: 'mcp' | 'http'\\``,\n );\n\n // 3. Assign the field and remove the protocol type for http gateways.\n await insertViaGritQL(\n tree,\n GATEWAY_CONSTRUCT_FILE,\n `\\`this.gateway = new agentcore.Gateway($args);\\` as $stmt where {\n $program <: not contains \\`this.protocol = props\\`\n} => \\`${GRIT_INSERT_PLACEHOLDER}\n $stmt\\``,\n PROTOCOL_CONSTRUCTOR_STATEMENTS,\n );\n await insertViaGritQL(\n tree,\n GATEWAY_CONSTRUCT_FILE,\n `\\`this.gateway = new agentcore.Gateway($args);\\` as $stmt where {\n $program <: not contains \\`addPropertyDeletionOverride\\`\n} => \\`$stmt\n${GRIT_INSERT_PLACEHOLDER}\\``,\n PROTOCOL_TYPE_REMOVAL,\n );\n\n // 4. The agent-target methods, inserted after addGatewayTarget (present in\n // every vended version that also has the readiness probe field).\n const addedMethods = await insertViaGritQL(\n tree,\n GATEWAY_CONSTRUCT_FILE,\n `\\`public addGatewayTarget($params): agentcore.CfnGatewayTarget { $body }\\` as $method where {\n $program <: not contains \\`addAgentTarget\\`\n} => \\`$method\n${GRIT_INSERT_PLACEHOLDER}\\``,\n AGENT_TARGET_METHODS,\n );\n\n if (!addedMethods) {\n nextSteps.push(divergedMessage);\n return;\n }\n};\n\n/**\n * Add the `agentName` member to each vended agent construct, which\n * `AgentCoreGateway.addAgent` reads as the default gateway target name.\n */\nconst migrateAgentConstructs = async (\n tree: Tree,\n nextSteps: string[],\n): Promise<void> => {\n if (!tree.exists(AGENTS_DIR)) {\n return;\n }\n for (const dir of tree.children(AGENTS_DIR)) {\n const constructFile = `${AGENTS_DIR}/${dir}/${dir}.ts`;\n if (!tree.exists(constructFile)) {\n continue;\n }\n if ((tree.read(constructFile, 'utf-8') ?? '').includes('agentName')) {\n // Already migrated (or user-added).\n continue;\n }\n const added = await insertViaGritQL(\n tree,\n constructFile,\n `\\`public readonly agentCoreRuntime: Runtime\\` as $field => \\`$field;\n ${GRIT_INSERT_PLACEHOLDER}\\``,\n `/** Default Gateway target name for this agent. */\n public readonly agentName = '${dir}'`,\n );\n if (!added) {\n nextSteps.push(\n `${constructFile}: the agent construct has diverged from the generated shape - left untouched. To attach this agent to a gateway with addAgent(), add a \\`public readonly agentName = '${dir}';\\` member (or use addAgentTarget() with an explicit target name).`,\n );\n }\n }\n};\n\nexport default async function migration(\n tree: Tree,\n): Promise<MigrationReturnObject> {\n const nextSteps: string[] = [];\n\n await migrateGatewayConstruct(tree, nextSteps);\n await migrateAgentConstructs(tree, nextSteps);\n\n await formatFilesInSubtree(tree);\n\n return { nextSteps };\n}\n"],"names":["applyGritQL","GRIT_INSERT_PLACEHOLDER","insertViaGritQL","matchGritQL","formatFilesInSubtree","PACKAGES_DIR","SHARED_CONSTRUCTS_DIR","GATEWAY_CONSTRUCT_FILE","AGENTS_DIR","PROTOCOL_PROP","PROTOCOL_CONSTRUCTOR_STATEMENTS","PROTOCOL_TYPE_REMOVAL","AGENT_TARGET_METHODS","migrateGatewayConstruct","tree","nextSteps","exists","read","includes","divergedMessage","hasVendedShape","push","addedMethods","migrateAgentConstructs","dir","children","constructFile","added","migration"],"mappings":"AAAA;;;CAGC,GAED,SACEA,WAAW,EACXC,uBAAuB,EACvBC,eAAe,EACfC,WAAW,QACN,wBAAqB;AAC5B,SAASC,oBAAoB,QAAQ,2BAAwB;AAC7D,SACEC,YAAY,EACZC,qBAAqB,QAChB,gDAA6C;AAEpD;;;;;;;;;;;;CAYC,GAED,MAAMC,yBAAyB,GAAGF,aAAa,CAAC,EAAEC,sBAAsB,gDAAgD,CAAC;AAEzH,MAAME,aAAa,GAAGH,aAAa,CAAC,EAAEC,sBAAsB,eAAe,CAAC;AAE5E,MAAMG,gBAAgB,CAAC;;;;;;;;;qCASc,CAAC;AAEtC,MAAMC,kCAAkC,CAAC;AACzC,CAAC;AAED,MAAMC,wBAAwB,CAAC;;;;;;;;KAQ1B,CAAC;AAEN,MAAMC,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsF3B,CAAC;AAEJ;;;CAGC,GACD,MAAMC,0BAA0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