@aws/nx-plugin 0.67.1 → 0.68.1
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 +357 -3051
- package/package.json +6 -6
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +15 -15
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/trpc/react/__snapshots__/generator.spec.ts.snap +8 -11
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +30 -30
- package/src/ts/strands-agent/generator.js +0 -18
- package/src/ts/strands-agent/generator.js.map +1 -1
- package/src/utils/files/website/hooks/sigv4/useSigV4.tsx.template +6 -9
- package/src/utils/versions.d.ts +33 -33
- package/src/utils/versions.js +32 -32
- package/src/utils/versions.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/nx-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/awslabs/nx-plugin-for-aws.git",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"generators": "./generators.json",
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"nx": "~22.4.1",
|
|
23
|
-
"prettier": "^3.
|
|
23
|
+
"prettier": "^3.8.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@apidevtools/swagger-parser": "^10.1.1",
|
|
27
27
|
"@hey-api/openapi-ts": "0.64.13",
|
|
28
28
|
"@iarna/toml": "^2.2.5",
|
|
29
|
-
"@modelcontextprotocol/sdk": "~1.25.
|
|
29
|
+
"@modelcontextprotocol/sdk": "~1.25.3",
|
|
30
30
|
"@nx/devkit": "~22.4.1",
|
|
31
31
|
"@nx/eslint": "~22.4.1",
|
|
32
32
|
"@nx/js": "~22.4.1",
|
|
33
33
|
"@nx/react": "~22.4.1",
|
|
34
34
|
"@nx/vite": "~22.4.1",
|
|
35
|
-
"@nxlv/python": "~21.
|
|
35
|
+
"@nxlv/python": "~21.3.1",
|
|
36
36
|
"@phenomnomnominal/tsquery": "6.1.4",
|
|
37
37
|
"enquirer": "^2.4.1",
|
|
38
38
|
"fast-glob": "^3.3.3",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"pip-requirements-js": "^0.2.1",
|
|
48
48
|
"typescript": "~5.9.3",
|
|
49
49
|
"vite": "^7.3.1",
|
|
50
|
-
"vitest": "^4.0.
|
|
51
|
-
"zod": "~4.3.
|
|
50
|
+
"vitest": "^4.0.18",
|
|
51
|
+
"zod": "~4.3.6"
|
|
52
52
|
},
|
|
53
53
|
"types": "./src/index.d.ts"
|
|
54
54
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`infra generator > should add required dependencies to package.json > dependencies 1`] = `
|
|
4
4
|
{
|
|
5
|
-
"aws-cdk": "2.
|
|
6
|
-
"aws-cdk-lib": "2.
|
|
7
|
-
"constructs": "10.4.
|
|
5
|
+
"aws-cdk": "2.1102.0",
|
|
6
|
+
"aws-cdk-lib": "2.235.1",
|
|
7
|
+
"constructs": "10.4.5",
|
|
8
8
|
"esbuild": "0.27.2",
|
|
9
9
|
"source-map-support": "0.5.21",
|
|
10
10
|
}
|
|
@@ -20,14 +20,14 @@ exports[`infra generator > should add required dependencies to package.json > de
|
|
|
20
20
|
"@swc-node/register": "~1.9.1",
|
|
21
21
|
"@swc/core": "~1.5.7",
|
|
22
22
|
"@swc/helpers": "~0.5.11",
|
|
23
|
-
"@types/node": "22.19.
|
|
23
|
+
"@types/node": "22.19.7",
|
|
24
24
|
"@vitest/coverage-v8": "^4.0.0",
|
|
25
25
|
"eslint": "^9.8.0",
|
|
26
26
|
"eslint-config-prettier": "^10.0.0",
|
|
27
|
-
"eslint-plugin-prettier": "5.5.
|
|
27
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
28
28
|
"jsdom": "^27.1.0",
|
|
29
29
|
"jsonc-eslint-parser": "2.4.2",
|
|
30
|
-
"prettier": "3.
|
|
30
|
+
"prettier": "3.8.1",
|
|
31
31
|
"tsx": "4.21.0",
|
|
32
32
|
"typescript": "~5.9.2",
|
|
33
33
|
"typescript-eslint": "^8.40.0",
|
|
@@ -39,9 +39,9 @@ exports[`infra generator > should add required dependencies to package.json > de
|
|
|
39
39
|
exports[`infra generator > should add required dependencies to package.json > package-json 1`] = `
|
|
40
40
|
{
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"aws-cdk": "2.
|
|
43
|
-
"aws-cdk-lib": "2.
|
|
44
|
-
"constructs": "10.4.
|
|
42
|
+
"aws-cdk": "2.1102.0",
|
|
43
|
+
"aws-cdk-lib": "2.235.1",
|
|
44
|
+
"constructs": "10.4.5",
|
|
45
45
|
"esbuild": "0.27.2",
|
|
46
46
|
"source-map-support": "0.5.21",
|
|
47
47
|
},
|
|
@@ -54,14 +54,14 @@ exports[`infra generator > should add required dependencies to package.json > pa
|
|
|
54
54
|
"@swc-node/register": "~1.9.1",
|
|
55
55
|
"@swc/core": "~1.5.7",
|
|
56
56
|
"@swc/helpers": "~0.5.11",
|
|
57
|
-
"@types/node": "22.19.
|
|
57
|
+
"@types/node": "22.19.7",
|
|
58
58
|
"@vitest/coverage-v8": "^4.0.0",
|
|
59
59
|
"eslint": "^9.8.0",
|
|
60
60
|
"eslint-config-prettier": "^10.0.0",
|
|
61
|
-
"eslint-plugin-prettier": "5.5.
|
|
61
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
62
62
|
"jsdom": "^27.1.0",
|
|
63
63
|
"jsonc-eslint-parser": "2.4.2",
|
|
64
|
-
"prettier": "3.
|
|
64
|
+
"prettier": "3.8.1",
|
|
65
65
|
"tsx": "4.21.0",
|
|
66
66
|
"typescript": "~5.9.2",
|
|
67
67
|
"typescript-eslint": "^8.40.0",
|
|
@@ -84,7 +84,7 @@ exports[`infra generator > should configure Checkov target correctly > checkov-t
|
|
|
84
84
|
"{workspaceRoot}/dist/{projectRoot}/cdk.out",
|
|
85
85
|
],
|
|
86
86
|
"options": {
|
|
87
|
-
"command": "uvx --with pycares==4.11.0 checkov==3.2.
|
|
87
|
+
"command": "uvx --with pycares==4.11.0 checkov==3.2.499 --config-file packages/test/checkov.yml --file dist/packages/test/cdk.out/**/*.template.json",
|
|
88
88
|
},
|
|
89
89
|
"outputs": [
|
|
90
90
|
"{workspaceRoot}/dist/{projectRoot}/checkov",
|
|
@@ -177,7 +177,7 @@ exports[`infra generator > should configure project.json with correct targets >
|
|
|
177
177
|
"{workspaceRoot}/dist/{projectRoot}/cdk.out",
|
|
178
178
|
],
|
|
179
179
|
"options": {
|
|
180
|
-
"command": "uvx --with pycares==4.11.0 checkov==3.2.
|
|
180
|
+
"command": "uvx --with pycares==4.11.0 checkov==3.2.499 --config-file packages/test/checkov.yml --file dist/packages/test/cdk.out/**/*.template.json",
|
|
181
181
|
},
|
|
182
182
|
"outputs": [
|
|
183
183
|
"{workspaceRoot}/dist/{projectRoot}/checkov",
|
|
@@ -724,7 +724,7 @@ exports[`infra generator > should handle custom project names correctly > custom
|
|
|
724
724
|
"{workspaceRoot}/dist/{projectRoot}/cdk.out",
|
|
725
725
|
],
|
|
726
726
|
"options": {
|
|
727
|
-
"command": "uvx --with pycares==4.11.0 checkov==3.2.
|
|
727
|
+
"command": "uvx --with pycares==4.11.0 checkov==3.2.499 --config-file packages/custom-infra/checkov.yml --file dist/packages/custom-infra/cdk.out/**/*.template.json",
|
|
728
728
|
},
|
|
729
729
|
"outputs": [
|
|
730
730
|
"{workspaceRoot}/dist/{projectRoot}/checkov",
|
|
@@ -545,9 +545,9 @@ exports[`py#mcp-server generator > should match snapshot for generated files > u
|
|
|
545
545
|
name = "proj.test_project"
|
|
546
546
|
version = "0.1.0"
|
|
547
547
|
dependencies = [
|
|
548
|
-
"mcp==1.
|
|
549
|
-
"boto3==1.42.
|
|
550
|
-
"aws-opentelemetry-distro==0.14.
|
|
548
|
+
"mcp==1.26.0",
|
|
549
|
+
"boto3==1.42.36",
|
|
550
|
+
"aws-opentelemetry-distro==0.14.2"
|
|
551
551
|
]
|
|
552
552
|
|
|
553
553
|
[dependency-groups]
|
|
@@ -587,12 +587,12 @@ exports[`py#strands-agent generator > should match snapshot for generated files
|
|
|
587
587
|
name = "proj.test_project"
|
|
588
588
|
version = "0.1.0"
|
|
589
589
|
dependencies = [
|
|
590
|
-
"aws-opentelemetry-distro==0.14.
|
|
590
|
+
"aws-opentelemetry-distro==0.14.2",
|
|
591
591
|
"bedrock-agentcore==0.1.7",
|
|
592
592
|
"fastapi==0.128.0",
|
|
593
|
-
"boto3==1.42.
|
|
594
|
-
"mcp==1.
|
|
595
|
-
"strands-agents==1.
|
|
593
|
+
"boto3==1.42.36",
|
|
594
|
+
"mcp==1.26.0",
|
|
595
|
+
"strands-agents==1.23.0",
|
|
596
596
|
"strands-agents-tools==0.2.19",
|
|
597
597
|
"uvicorn==0.40.0"
|
|
598
598
|
]
|
|
@@ -145,7 +145,7 @@ exports[`trpc react generator > should handle IAM auth option > useSigV4.tsx 1`]
|
|
|
145
145
|
"import { AwsClient } from 'aws4fetch';
|
|
146
146
|
import { CognitoIdentityClient } from '@aws-sdk/client-cognito-identity';
|
|
147
147
|
import { fromCognitoIdentityPool } from '@aws-sdk/credential-provider-cognito-identity';
|
|
148
|
-
import { useCallback,
|
|
148
|
+
import { useCallback, useRef } from 'react';
|
|
149
149
|
import { useAuth } from 'react-oidc-context';
|
|
150
150
|
import { useRuntimeConfig } from './useRuntimeConfig';
|
|
151
151
|
import {
|
|
@@ -161,9 +161,9 @@ export const useSigV4 = () => {
|
|
|
161
161
|
const auth = useAuth();
|
|
162
162
|
const user = auth?.user;
|
|
163
163
|
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
const cachedCredentials = useRef<{ [key: string]: AwsCredentialIdentity }>(
|
|
165
|
+
{},
|
|
166
|
+
);
|
|
167
167
|
|
|
168
168
|
const withCachedCredentials = useCallback(
|
|
169
169
|
async (
|
|
@@ -171,7 +171,7 @@ export const useSigV4 = () => {
|
|
|
171
171
|
...cacheKeys: string[]
|
|
172
172
|
): Promise<AwsCredentialIdentity> => {
|
|
173
173
|
const key = \`sigv4/\${cacheKeys.join('/')}\`;
|
|
174
|
-
const cachedCreds = cachedCredentials[key];
|
|
174
|
+
const cachedCreds = cachedCredentials.current[key];
|
|
175
175
|
if (
|
|
176
176
|
cachedCreds &&
|
|
177
177
|
cachedCreds.expiration &&
|
|
@@ -181,10 +181,10 @@ export const useSigV4 = () => {
|
|
|
181
181
|
return cachedCreds;
|
|
182
182
|
}
|
|
183
183
|
const credentials = await provider();
|
|
184
|
-
|
|
184
|
+
cachedCredentials.current[key] = credentials;
|
|
185
185
|
return credentials;
|
|
186
186
|
},
|
|
187
|
-
[
|
|
187
|
+
[],
|
|
188
188
|
);
|
|
189
189
|
|
|
190
190
|
return useCallback(
|
|
@@ -208,11 +208,8 @@ export const useSigV4 = () => {
|
|
|
208
208
|
user.id_token,
|
|
209
209
|
},
|
|
210
210
|
});
|
|
211
|
-
const cognitoidentity = new CognitoIdentityClient({
|
|
212
|
-
credentials: credentialsFromCognitoIdentityPool,
|
|
213
|
-
});
|
|
214
211
|
const credential = await withCachedCredentials(
|
|
215
|
-
|
|
212
|
+
credentialsFromCognitoIdentityPool,
|
|
216
213
|
cognitoProps.identityPoolId,
|
|
217
214
|
user.profile.sub,
|
|
218
215
|
);
|
|
@@ -640,9 +640,9 @@ exports[`ts#mcp-server generator > should match snapshot for generated files > u
|
|
|
640
640
|
"snapshot-server": "./src/snapshot-server/stdio.js"
|
|
641
641
|
},
|
|
642
642
|
"dependencies": {
|
|
643
|
-
"@modelcontextprotocol/sdk": "1.25.
|
|
643
|
+
"@modelcontextprotocol/sdk": "1.25.3",
|
|
644
644
|
"express": "5.2.1",
|
|
645
|
-
"zod": "4.3.
|
|
645
|
+
"zod": "4.3.6"
|
|
646
646
|
},
|
|
647
647
|
"devDependencies": {
|
|
648
648
|
"@modelcontextprotocol/inspector": "0.18.0",
|
|
@@ -1874,13 +1874,13 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1874
1874
|
"{
|
|
1875
1875
|
"name": "@proj/source",
|
|
1876
1876
|
"dependencies": {
|
|
1877
|
-
"@cloudscape-design/board-components": "3.0.
|
|
1878
|
-
"@cloudscape-design/components": "3.0.
|
|
1877
|
+
"@cloudscape-design/board-components": "3.0.143",
|
|
1878
|
+
"@cloudscape-design/components": "3.0.1181",
|
|
1879
1879
|
"@cloudscape-design/global-styles": "1.0.49",
|
|
1880
|
-
"aws-cdk-lib": "2.
|
|
1881
|
-
"constructs": "10.4.
|
|
1882
|
-
"react": "19.
|
|
1883
|
-
"react-dom": "19.
|
|
1880
|
+
"aws-cdk-lib": "2.235.1",
|
|
1881
|
+
"constructs": "10.4.5",
|
|
1882
|
+
"react": "19.2.3",
|
|
1883
|
+
"react-dom": "19.2.3",
|
|
1884
1884
|
"tailwindcss": "4.1.18"
|
|
1885
1885
|
},
|
|
1886
1886
|
"devDependencies": {
|
|
@@ -1899,7 +1899,7 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1899
1899
|
"@tailwindcss/vite": "4.1.18",
|
|
1900
1900
|
"@testing-library/dom": "10.4.0",
|
|
1901
1901
|
"@testing-library/react": "16.3.0",
|
|
1902
|
-
"@types/node": "22.19.
|
|
1902
|
+
"@types/node": "22.19.7",
|
|
1903
1903
|
"@types/react": "^19.0.0",
|
|
1904
1904
|
"@types/react-dom": "^19.0.0",
|
|
1905
1905
|
"@vitejs/plugin-react": "^4.2.0",
|
|
@@ -1909,13 +1909,13 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1909
1909
|
"eslint-config-prettier": "^10.0.0",
|
|
1910
1910
|
"eslint-plugin-import": "2.31.0",
|
|
1911
1911
|
"eslint-plugin-jsx-a11y": "6.10.1",
|
|
1912
|
-
"eslint-plugin-prettier": "5.5.
|
|
1912
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
1913
1913
|
"eslint-plugin-react": "7.35.0",
|
|
1914
1914
|
"eslint-plugin-react-hooks": "5.0.0",
|
|
1915
1915
|
"jiti": "2.4.2",
|
|
1916
1916
|
"jsdom": "~22.1.0",
|
|
1917
1917
|
"jsonc-eslint-parser": "2.4.2",
|
|
1918
|
-
"prettier": "3.
|
|
1918
|
+
"prettier": "3.8.1",
|
|
1919
1919
|
"typescript": "~5.9.2",
|
|
1920
1920
|
"typescript-eslint": "^8.40.0",
|
|
1921
1921
|
"vite": "^7.0.0",
|
|
@@ -3316,14 +3316,14 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
3316
3316
|
"{
|
|
3317
3317
|
"name": "@proj/source",
|
|
3318
3318
|
"dependencies": {
|
|
3319
|
-
"@cloudscape-design/board-components": "3.0.
|
|
3320
|
-
"@cloudscape-design/components": "3.0.
|
|
3319
|
+
"@cloudscape-design/board-components": "3.0.143",
|
|
3320
|
+
"@cloudscape-design/components": "3.0.1181",
|
|
3321
3321
|
"@cloudscape-design/global-styles": "1.0.49",
|
|
3322
|
-
"@tanstack/react-router": "1.
|
|
3323
|
-
"aws-cdk-lib": "2.
|
|
3324
|
-
"constructs": "10.4.
|
|
3325
|
-
"react": "19.
|
|
3326
|
-
"react-dom": "19.
|
|
3322
|
+
"@tanstack/react-router": "1.154.12",
|
|
3323
|
+
"aws-cdk-lib": "2.235.1",
|
|
3324
|
+
"constructs": "10.4.5",
|
|
3325
|
+
"react": "19.2.3",
|
|
3326
|
+
"react-dom": "19.2.3",
|
|
3327
3327
|
"tailwindcss": "4.1.18"
|
|
3328
3328
|
},
|
|
3329
3329
|
"devDependencies": {
|
|
@@ -3340,13 +3340,13 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
3340
3340
|
"@swc/core": "~1.5.7",
|
|
3341
3341
|
"@swc/helpers": "~0.5.11",
|
|
3342
3342
|
"@tailwindcss/vite": "4.1.18",
|
|
3343
|
-
"@tanstack/router-generator": "1.
|
|
3344
|
-
"@tanstack/router-plugin": "1.
|
|
3345
|
-
"@tanstack/router-utils": "1.
|
|
3346
|
-
"@tanstack/virtual-file-routes": "1.
|
|
3343
|
+
"@tanstack/router-generator": "1.154.12",
|
|
3344
|
+
"@tanstack/router-plugin": "1.154.12",
|
|
3345
|
+
"@tanstack/router-utils": "1.154.7",
|
|
3346
|
+
"@tanstack/virtual-file-routes": "1.154.7",
|
|
3347
3347
|
"@testing-library/dom": "10.4.0",
|
|
3348
3348
|
"@testing-library/react": "16.3.0",
|
|
3349
|
-
"@types/node": "22.19.
|
|
3349
|
+
"@types/node": "22.19.7",
|
|
3350
3350
|
"@types/react": "^19.0.0",
|
|
3351
3351
|
"@types/react-dom": "^19.0.0",
|
|
3352
3352
|
"@vitejs/plugin-react": "^4.2.0",
|
|
@@ -3356,13 +3356,13 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
3356
3356
|
"eslint-config-prettier": "^10.0.0",
|
|
3357
3357
|
"eslint-plugin-import": "2.31.0",
|
|
3358
3358
|
"eslint-plugin-jsx-a11y": "6.10.1",
|
|
3359
|
-
"eslint-plugin-prettier": "5.5.
|
|
3359
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
3360
3360
|
"eslint-plugin-react": "7.35.0",
|
|
3361
3361
|
"eslint-plugin-react-hooks": "5.0.0",
|
|
3362
3362
|
"jiti": "2.4.2",
|
|
3363
3363
|
"jsdom": "~22.1.0",
|
|
3364
3364
|
"jsonc-eslint-parser": "2.4.2",
|
|
3365
|
-
"prettier": "3.
|
|
3365
|
+
"prettier": "3.8.1",
|
|
3366
3366
|
"typescript": "~5.9.2",
|
|
3367
3367
|
"typescript-eslint": "^8.40.0",
|
|
3368
3368
|
"vite": "^7.0.0",
|
|
@@ -5403,14 +5403,14 @@ root &&
|
|
|
5403
5403
|
|
|
5404
5404
|
exports[`react-website generator > should handle npm scope prefix correctly > scoped-dependencies 1`] = `
|
|
5405
5405
|
{
|
|
5406
|
-
"@cloudscape-design/board-components": "3.0.
|
|
5407
|
-
"@cloudscape-design/components": "3.0.
|
|
5406
|
+
"@cloudscape-design/board-components": "3.0.143",
|
|
5407
|
+
"@cloudscape-design/components": "3.0.1181",
|
|
5408
5408
|
"@cloudscape-design/global-styles": "1.0.49",
|
|
5409
|
-
"@tanstack/react-router": "1.
|
|
5410
|
-
"aws-cdk-lib": "2.
|
|
5411
|
-
"constructs": "10.4.
|
|
5412
|
-
"react": "19.
|
|
5413
|
-
"react-dom": "19.
|
|
5409
|
+
"@tanstack/react-router": "1.154.12",
|
|
5410
|
+
"aws-cdk-lib": "2.235.1",
|
|
5411
|
+
"constructs": "10.4.5",
|
|
5412
|
+
"react": "19.2.3",
|
|
5413
|
+
"react-dom": "19.2.3",
|
|
5414
5414
|
"tailwindcss": "4.1.18",
|
|
5415
5415
|
}
|
|
5416
5416
|
`;
|
|
@@ -86,24 +86,6 @@ const tsStrandsAgentGenerator = (tree, options) => tslib_1.__awaiter(void 0, voi
|
|
|
86
86
|
'aws4fetch',
|
|
87
87
|
'@modelcontextprotocol/sdk',
|
|
88
88
|
]), (0, versions_1.withVersions)(['tsx', '@types/ws', '@types/cors']));
|
|
89
|
-
// Strands SDK depends on zod directly, and yarn/bun don't resolve to the same version we depend on
|
|
90
|
-
// in the workspace which leads to type errors due to conflicting zod versions
|
|
91
|
-
// Can likely remove this when https://github.com/strands-agents/sdk-typescript/issues/406 is resolved.
|
|
92
|
-
const packageManager = (0, devkit_1.detectPackageManager)();
|
|
93
|
-
if (packageManager === 'yarn') {
|
|
94
|
-
(0, devkit_1.updateJson)(tree, 'package.json', (packageJson) => {
|
|
95
|
-
packageJson.resolutions = Object.assign(Object.assign({}, packageJson.resolutions), { '**/@strands-agents/sdk/**/zod': versions_1.TS_VERSIONS['zod'] });
|
|
96
|
-
return packageJson;
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
else if (packageManager === 'bun') {
|
|
100
|
-
// Bun doesn't support nested overrides like yarn (https://github.com/oven-sh/bun/issues/6608)
|
|
101
|
-
// but it does support top-level overrides which can force all zod@^4 to use our pinned version
|
|
102
|
-
(0, devkit_1.updateJson)(tree, 'package.json', (packageJson) => {
|
|
103
|
-
packageJson.overrides = Object.assign(Object.assign({}, packageJson.overrides), { 'zod@^4': versions_1.TS_VERSIONS['zod'] });
|
|
104
|
-
return packageJson;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
89
|
// NB: we assign the local dev port from 8081 as 8080 is used by vscode server, and so conflicts
|
|
108
90
|
// for those working on remote dev envirionments. The deployed agent in agentcore still runs on
|
|
109
91
|
// 8080 as per the agentcore contract.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/strands-agent/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/strands-agent/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCASoB;AAEpB,uCAMwB;AACxB,iDAAsE;AACtE,+CAA0D;AAC1D,6CAA2D;AAC3D,mDAAoD;AACpD,qDAAoD;AACpD,sDAAsE;AACtE,yCAAqD;AACrD,qEAA0E;AAC1E,mGAAwF;AACxF,2CAA8C;AAEjC,QAAA,+BAA+B,GAC1C,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,uBAAuB,GAAG,CACrC,IAAU,EACV,OAAsC,EACV,EAAE;;IAC9B,MAAM,OAAO,GAAG,IAAA,wCAAmC,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3E,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,0BAAiB,EAAC,OAAO,CAAC,IA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BAAuB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AwsClient } from 'aws4fetch';
|
|
2
2
|
import { CognitoIdentityClient } from '@aws-sdk/client-cognito-identity';
|
|
3
3
|
import { fromCognitoIdentityPool } from '@aws-sdk/credential-provider-cognito-identity';
|
|
4
|
-
import { useCallback,
|
|
4
|
+
import { useCallback, useRef } from 'react';
|
|
5
5
|
import { useAuth } from 'react-oidc-context';
|
|
6
6
|
import { useRuntimeConfig } from './useRuntimeConfig';
|
|
7
7
|
import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from '@smithy/types';
|
|
@@ -14,18 +14,18 @@ export const useSigV4 = () => {
|
|
|
14
14
|
const auth = useAuth();
|
|
15
15
|
const user = auth?.user;
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const cachedCredentials = useRef<{ [key: string]: AwsCredentialIdentity }>({});
|
|
18
18
|
|
|
19
19
|
const withCachedCredentials = useCallback(async (provider: AwsCredentialIdentityProvider, ...cacheKeys: string[]): Promise<AwsCredentialIdentity> => {
|
|
20
20
|
const key = `sigv4/${cacheKeys.join('/')}`;
|
|
21
|
-
const cachedCreds = cachedCredentials[key];
|
|
21
|
+
const cachedCreds = cachedCredentials.current[key];
|
|
22
22
|
if (cachedCreds && cachedCreds.expiration && cachedCreds.expiration.getTime() > Date.now() + CREDENTIAL_EXPIRY_OFFSET_MILLIS) {
|
|
23
23
|
return cachedCreds;
|
|
24
24
|
}
|
|
25
25
|
const credentials = await provider();
|
|
26
|
-
|
|
26
|
+
cachedCredentials.current[key] = credentials;
|
|
27
27
|
return credentials;
|
|
28
|
-
}, [
|
|
28
|
+
}, []);
|
|
29
29
|
|
|
30
30
|
return useCallback(
|
|
31
31
|
async (input: RequestInfo | URL, init?: RequestInit | undefined) => {
|
|
@@ -48,10 +48,7 @@ export const useSigV4 = () => {
|
|
|
48
48
|
user.id_token,
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
|
-
const
|
|
52
|
-
credentials: credentialsFromCognitoIdentityPool,
|
|
53
|
-
});
|
|
54
|
-
const credential = await withCachedCredentials(cognitoidentity.config.credentials, cognitoProps.identityPoolId, user.profile.sub);
|
|
51
|
+
const credential = await withCachedCredentials(credentialsFromCognitoIdentityPool, cognitoProps.identityPoolId, user.profile.sub);
|
|
55
52
|
const awsClient = new AwsClient(credential);
|
|
56
53
|
return awsClient.fetch(input, init);
|
|
57
54
|
},
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* Versons for TypeScript dependencies added by generators
|
|
7
7
|
*/
|
|
8
8
|
export declare const TS_VERSIONS: {
|
|
9
|
-
readonly '@aws-sdk/client-cognito-identity': "3.
|
|
10
|
-
readonly '@aws-sdk/client-dynamodb': "3.
|
|
11
|
-
readonly '@aws-sdk/credential-providers': "3.
|
|
12
|
-
readonly '@aws-sdk/credential-provider-cognito-identity': "3.
|
|
9
|
+
readonly '@aws-sdk/client-cognito-identity': "3.974.0";
|
|
10
|
+
readonly '@aws-sdk/client-dynamodb': "3.974.0";
|
|
11
|
+
readonly '@aws-sdk/credential-providers': "3.974.0";
|
|
12
|
+
readonly '@aws-sdk/credential-provider-cognito-identity': "3.972.1";
|
|
13
13
|
readonly '@aws-smithy/server-apigateway': "1.0.0-alpha.10";
|
|
14
14
|
readonly '@aws-smithy/server-node': "1.0.0-alpha.10";
|
|
15
15
|
readonly '@aws-lambda-powertools/logger': "2.30.2";
|
|
@@ -17,61 +17,61 @@ export declare const TS_VERSIONS: {
|
|
|
17
17
|
readonly '@aws-lambda-powertools/tracer': "2.30.2";
|
|
18
18
|
readonly '@aws-lambda-powertools/parser': "2.30.2";
|
|
19
19
|
readonly '@middy/core': "6.4.5";
|
|
20
|
-
readonly '@nxlv/python': "21.
|
|
20
|
+
readonly '@nxlv/python': "21.3.1";
|
|
21
21
|
readonly '@nx-extend/terraform': "9.0.1";
|
|
22
22
|
readonly '@nx/devkit': "22.4.1";
|
|
23
23
|
readonly '@nx/react': "22.4.1";
|
|
24
24
|
readonly 'create-nx-workspace': "22.4.1";
|
|
25
|
-
readonly '@modelcontextprotocol/sdk': "1.25.
|
|
25
|
+
readonly '@modelcontextprotocol/sdk': "1.25.3";
|
|
26
26
|
readonly '@modelcontextprotocol/inspector': "0.18.0";
|
|
27
|
-
readonly '@strands-agents/sdk': "0.
|
|
28
|
-
readonly '@tanstack/react-router': "1.
|
|
29
|
-
readonly '@tanstack/router-plugin': "1.
|
|
30
|
-
readonly '@tanstack/router-generator': "1.
|
|
31
|
-
readonly '@tanstack/virtual-file-routes': "1.
|
|
32
|
-
readonly '@tanstack/router-utils': "1.
|
|
33
|
-
readonly '@cloudscape-design/board-components': "3.0.
|
|
34
|
-
readonly '@cloudscape-design/components': "3.0.
|
|
27
|
+
readonly '@strands-agents/sdk': "0.2.0";
|
|
28
|
+
readonly '@tanstack/react-router': "1.154.12";
|
|
29
|
+
readonly '@tanstack/router-plugin': "1.154.12";
|
|
30
|
+
readonly '@tanstack/router-generator': "1.154.12";
|
|
31
|
+
readonly '@tanstack/virtual-file-routes': "1.154.7";
|
|
32
|
+
readonly '@tanstack/router-utils': "1.154.7";
|
|
33
|
+
readonly '@cloudscape-design/board-components': "3.0.143";
|
|
34
|
+
readonly '@cloudscape-design/components': "3.0.1181";
|
|
35
35
|
readonly '@cloudscape-design/global-styles': "1.0.49";
|
|
36
|
-
readonly '@tanstack/react-query': "5.90.
|
|
36
|
+
readonly '@tanstack/react-query': "5.90.19";
|
|
37
37
|
readonly '@tanstack/react-query-devtools': "5.91.2";
|
|
38
38
|
readonly '@trpc/tanstack-react-query': "11.8.1";
|
|
39
39
|
readonly '@trpc/client': "11.8.1";
|
|
40
40
|
readonly '@trpc/server': "11.8.1";
|
|
41
|
-
readonly '@types/node': "22.19.
|
|
42
|
-
readonly '@types/aws-lambda': "8.10.
|
|
41
|
+
readonly '@types/node': "22.19.7";
|
|
42
|
+
readonly '@types/aws-lambda': "8.10.160";
|
|
43
43
|
readonly '@types/cors': "2.8.19";
|
|
44
44
|
readonly '@types/ws': "8.18.1";
|
|
45
45
|
readonly '@types/express': "5.0.6";
|
|
46
46
|
readonly '@smithy/types': "4.12.0";
|
|
47
47
|
readonly aws4fetch: "1.0.20";
|
|
48
|
-
readonly 'aws-cdk': "2.
|
|
49
|
-
readonly 'aws-cdk-lib': "2.
|
|
48
|
+
readonly 'aws-cdk': "2.1102.0";
|
|
49
|
+
readonly 'aws-cdk-lib': "2.235.1";
|
|
50
50
|
readonly '@aws-cdk/aws-bedrock-agentcore-alpha': "2.233.0-alpha.0";
|
|
51
51
|
readonly 'aws-xray-sdk-core': "3.12.0";
|
|
52
|
-
readonly constructs: "10.4.
|
|
53
|
-
readonly cors: "2.8.
|
|
52
|
+
readonly constructs: "10.4.5";
|
|
53
|
+
readonly cors: "2.8.6";
|
|
54
54
|
readonly electrodb: "3.5.3";
|
|
55
55
|
readonly esbuild: "0.27.2";
|
|
56
|
-
readonly 'eslint-plugin-prettier': "5.5.
|
|
56
|
+
readonly 'eslint-plugin-prettier': "5.5.5";
|
|
57
57
|
readonly express: "5.2.1";
|
|
58
58
|
readonly 'jsonc-eslint-parser': "2.4.2";
|
|
59
59
|
readonly 'make-dir-cli': "4.0.0";
|
|
60
60
|
readonly ncp: "2.0.0";
|
|
61
61
|
readonly 'npm-check-updates': "19.3.1";
|
|
62
62
|
readonly 'oidc-client-ts': "3.4.1";
|
|
63
|
-
readonly prettier: "3.
|
|
63
|
+
readonly prettier: "3.8.1";
|
|
64
64
|
readonly 'react-oidc-context': "3.3.0";
|
|
65
|
-
readonly react: "19.
|
|
66
|
-
readonly 'react-dom': "19.
|
|
65
|
+
readonly react: "19.2.3";
|
|
66
|
+
readonly 'react-dom': "19.2.3";
|
|
67
67
|
readonly rimraf: "6.1.2";
|
|
68
|
-
readonly rolldown: "1.0.0-
|
|
68
|
+
readonly rolldown: "1.0.0-rc.1";
|
|
69
69
|
readonly 'source-map-support': "0.5.21";
|
|
70
70
|
readonly tailwindcss: "4.1.18";
|
|
71
71
|
readonly '@tailwindcss/vite': "4.1.18";
|
|
72
72
|
readonly tsx: "4.21.0";
|
|
73
73
|
readonly 'vite-tsconfig-paths': "5.1.4";
|
|
74
|
-
readonly zod: "4.3.
|
|
74
|
+
readonly zod: "4.3.6";
|
|
75
75
|
readonly ws: "8.19.0";
|
|
76
76
|
};
|
|
77
77
|
export type ITsDepVersion = keyof typeof TS_VERSIONS;
|
|
@@ -79,7 +79,7 @@ export type ITsDepVersion = keyof typeof TS_VERSIONS;
|
|
|
79
79
|
* Add versions to the given dependencies
|
|
80
80
|
*/
|
|
81
81
|
export declare const withVersions: (deps: ITsDepVersion[]) => {
|
|
82
|
-
[k: string]: "3.
|
|
82
|
+
[k: string]: "3.974.0" | "3.972.1" | "1.0.0-alpha.10" | "2.30.2" | "6.4.5" | "21.3.1" | "9.0.1" | "22.4.1" | "1.25.3" | "0.18.0" | "0.2.0" | "1.154.12" | "1.154.7" | "3.0.143" | "3.0.1181" | "1.0.49" | "5.90.19" | "5.91.2" | "11.8.1" | "22.19.7" | "8.10.160" | "2.8.19" | "8.18.1" | "5.0.6" | "4.12.0" | "1.0.20" | "2.1102.0" | "2.235.1" | "2.233.0-alpha.0" | "3.12.0" | "10.4.5" | "2.8.6" | "3.5.3" | "0.27.2" | "5.5.5" | "5.2.1" | "2.4.2" | "4.0.0" | "2.0.0" | "19.3.1" | "3.4.1" | "3.8.1" | "3.3.0" | "19.2.3" | "6.1.2" | "1.0.0-rc.1" | "0.5.21" | "4.1.18" | "4.21.0" | "5.1.4" | "4.3.6" | "8.19.0";
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
85
|
* Versions for Python dependencies added by generators
|
|
@@ -88,16 +88,16 @@ export declare const PY_VERSIONS: {
|
|
|
88
88
|
readonly 'aws-lambda-powertools': "==3.24.0";
|
|
89
89
|
readonly 'aws-lambda-powertools[tracer]': "==3.24.0";
|
|
90
90
|
readonly 'aws-lambda-powertools[parser]': "==3.24.0";
|
|
91
|
-
readonly 'aws-opentelemetry-distro': "==0.14.
|
|
91
|
+
readonly 'aws-opentelemetry-distro': "==0.14.2";
|
|
92
92
|
readonly 'bedrock-agentcore': "==0.1.7";
|
|
93
|
-
readonly boto3: "==1.42.
|
|
94
|
-
readonly checkov: "==3.2.
|
|
93
|
+
readonly boto3: "==1.42.36";
|
|
94
|
+
readonly checkov: "==3.2.499";
|
|
95
95
|
readonly fastapi: "==0.128.0";
|
|
96
96
|
readonly 'fastapi[standard]': "==0.128.0";
|
|
97
97
|
readonly mangum: "==0.20.0";
|
|
98
|
-
readonly mcp: "==1.
|
|
98
|
+
readonly mcp: "==1.26.0";
|
|
99
99
|
readonly 'pip-check-updates': "==0.28.0";
|
|
100
|
-
readonly 'strands-agents': "==1.
|
|
100
|
+
readonly 'strands-agents': "==1.23.0";
|
|
101
101
|
readonly 'strands-agents-tools': "==0.2.19";
|
|
102
102
|
readonly uvicorn: "==0.40.0";
|
|
103
103
|
};
|