@aws/nx-plugin 0.68.0 → 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 +34 -6
- package/package.json +1 -1
- package/src/trpc/react/__snapshots__/generator.spec.ts.snap +8 -11
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +6 -6
- 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 +4 -4
- package/src/utils/versions.js +3 -3
package/LICENSE-THIRD-PARTY
CHANGED
|
@@ -3299,12 +3299,12 @@ SOFTWARE.
|
|
|
3299
3299
|
|
|
3300
3300
|
---
|
|
3301
3301
|
|
|
3302
|
-
The following software may be included in this product: @esbuild/
|
|
3302
|
+
The following software may be included in this product: @esbuild/darwin-arm64 (0.27.2)
|
|
3303
3303
|
This software contains the following license and notice below:
|
|
3304
3304
|
|
|
3305
3305
|
MIT License
|
|
3306
3306
|
|
|
3307
|
-
Copyright (c) The maintainers of @esbuild/
|
|
3307
|
+
Copyright (c) The maintainers of @esbuild/darwin-arm64 <https://github.com/evanw/esbuild#readme>
|
|
3308
3308
|
|
|
3309
3309
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
3310
3310
|
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
@@ -4582,7 +4582,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
4582
4582
|
|
|
4583
4583
|
---
|
|
4584
4584
|
|
|
4585
|
-
The following software may be included in this product: @nx/nx-
|
|
4585
|
+
The following software may be included in this product: @nx/nx-darwin-arm64 (22.4.1)
|
|
4586
4586
|
This software contains the following license and notice below:
|
|
4587
4587
|
|
|
4588
4588
|
(The MIT License)
|
|
@@ -5297,7 +5297,7 @@ THE SOFTWARE.
|
|
|
5297
5297
|
|
|
5298
5298
|
---
|
|
5299
5299
|
|
|
5300
|
-
The following software may be included in this product: @rollup/rollup-
|
|
5300
|
+
The following software may be included in this product: @rollup/rollup-darwin-arm64 (4.50.1)
|
|
5301
5301
|
This software contains the following license and notice below:
|
|
5302
5302
|
|
|
5303
5303
|
MIT License
|
|
@@ -5349,7 +5349,7 @@ SOFTWARE.
|
|
|
5349
5349
|
|
|
5350
5350
|
---
|
|
5351
5351
|
|
|
5352
|
-
The following software may be included in this product: @rspack/binding-
|
|
5352
|
+
The following software may be included in this product: @rspack/binding-darwin-arm64 (1.6.8)
|
|
5353
5353
|
This software contains the following license and notice below:
|
|
5354
5354
|
|
|
5355
5355
|
MIT License
|
|
@@ -13234,6 +13234,34 @@ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHE
|
|
|
13234
13234
|
|
|
13235
13235
|
---
|
|
13236
13236
|
|
|
13237
|
+
The following software may be included in this product: fsevents (2.3.3)
|
|
13238
|
+
This software contains the following license and notice below:
|
|
13239
|
+
|
|
13240
|
+
MIT License
|
|
13241
|
+
-----------
|
|
13242
|
+
|
|
13243
|
+
Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
|
|
13244
|
+
|
|
13245
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13246
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13247
|
+
in the Software without restriction, including without limitation the rights
|
|
13248
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13249
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13250
|
+
furnished to do so, subject to the following conditions:
|
|
13251
|
+
|
|
13252
|
+
The above copyright notice and this permission notice shall be included in
|
|
13253
|
+
all copies or substantial portions of the Software.
|
|
13254
|
+
|
|
13255
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13256
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
13257
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13258
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
13259
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
13260
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
13261
|
+
THE SOFTWARE.
|
|
13262
|
+
|
|
13263
|
+
---
|
|
13264
|
+
|
|
13237
13265
|
The following software may be included in this product: function-bind (1.1.2)
|
|
13238
13266
|
This software contains the following license and notice below:
|
|
13239
13267
|
|
|
@@ -39979,7 +40007,7 @@ defined by the Mozilla Public License, v. 2.0.
|
|
|
39979
40007
|
|
|
39980
40008
|
---
|
|
39981
40009
|
|
|
39982
|
-
The following software may be included in this product: lightningcss-
|
|
40010
|
+
The following software may be included in this product: lightningcss-darwin-arm64 (1.30.2)
|
|
39983
40011
|
This software contains the following license and notice below:
|
|
39984
40012
|
|
|
39985
40013
|
Mozilla Public License Version 2.0
|
package/package.json
CHANGED
|
@@ -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
|
);
|
|
@@ -1879,8 +1879,8 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
1879
1879
|
"@cloudscape-design/global-styles": "1.0.49",
|
|
1880
1880
|
"aws-cdk-lib": "2.235.1",
|
|
1881
1881
|
"constructs": "10.4.5",
|
|
1882
|
-
"react": "19.
|
|
1883
|
-
"react-dom": "19.
|
|
1882
|
+
"react": "19.2.3",
|
|
1883
|
+
"react-dom": "19.2.3",
|
|
1884
1884
|
"tailwindcss": "4.1.18"
|
|
1885
1885
|
},
|
|
1886
1886
|
"devDependencies": {
|
|
@@ -3322,8 +3322,8 @@ exports[`react-website generator > Tanstack router integration > should generate
|
|
|
3322
3322
|
"@tanstack/react-router": "1.154.12",
|
|
3323
3323
|
"aws-cdk-lib": "2.235.1",
|
|
3324
3324
|
"constructs": "10.4.5",
|
|
3325
|
-
"react": "19.
|
|
3326
|
-
"react-dom": "19.
|
|
3325
|
+
"react": "19.2.3",
|
|
3326
|
+
"react-dom": "19.2.3",
|
|
3327
3327
|
"tailwindcss": "4.1.18"
|
|
3328
3328
|
},
|
|
3329
3329
|
"devDependencies": {
|
|
@@ -5409,8 +5409,8 @@ exports[`react-website generator > should handle npm scope prefix correctly > sc
|
|
|
5409
5409
|
"@tanstack/react-router": "1.154.12",
|
|
5410
5410
|
"aws-cdk-lib": "2.235.1",
|
|
5411
5411
|
"constructs": "10.4.5",
|
|
5412
|
-
"react": "19.
|
|
5413
|
-
"react-dom": "19.
|
|
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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H,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;IACjC,OAAO,GAAG,EAAE;QACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;AACJ,CAAC,CAAA,CAAC;AAlJW,QAAA,uBAAuB,2BAkJlC;AAEF,kBAAe,+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
|
@@ -24,7 +24,7 @@ export declare const TS_VERSIONS: {
|
|
|
24
24
|
readonly 'create-nx-workspace': "22.4.1";
|
|
25
25
|
readonly '@modelcontextprotocol/sdk': "1.25.3";
|
|
26
26
|
readonly '@modelcontextprotocol/inspector': "0.18.0";
|
|
27
|
-
readonly '@strands-agents/sdk': "0.
|
|
27
|
+
readonly '@strands-agents/sdk': "0.2.0";
|
|
28
28
|
readonly '@tanstack/react-router': "1.154.12";
|
|
29
29
|
readonly '@tanstack/router-plugin': "1.154.12";
|
|
30
30
|
readonly '@tanstack/router-generator': "1.154.12";
|
|
@@ -62,8 +62,8 @@ export declare const TS_VERSIONS: {
|
|
|
62
62
|
readonly 'oidc-client-ts': "3.4.1";
|
|
63
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
68
|
readonly rolldown: "1.0.0-rc.1";
|
|
69
69
|
readonly 'source-map-support': "0.5.21";
|
|
@@ -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.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.
|
|
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
|
package/src/utils/versions.js
CHANGED
|
@@ -27,7 +27,7 @@ exports.TS_VERSIONS = {
|
|
|
27
27
|
'create-nx-workspace': '22.4.1',
|
|
28
28
|
'@modelcontextprotocol/sdk': '1.25.3',
|
|
29
29
|
'@modelcontextprotocol/inspector': '0.18.0',
|
|
30
|
-
'@strands-agents/sdk': '0.
|
|
30
|
+
'@strands-agents/sdk': '0.2.0',
|
|
31
31
|
'@tanstack/react-router': '1.154.12',
|
|
32
32
|
'@tanstack/router-plugin': '1.154.12',
|
|
33
33
|
'@tanstack/router-generator': '1.154.12',
|
|
@@ -65,8 +65,8 @@ exports.TS_VERSIONS = {
|
|
|
65
65
|
'oidc-client-ts': '3.4.1',
|
|
66
66
|
prettier: '3.8.1',
|
|
67
67
|
'react-oidc-context': '3.3.0',
|
|
68
|
-
react: '19.
|
|
69
|
-
'react-dom': '19.
|
|
68
|
+
react: '19.2.3',
|
|
69
|
+
'react-dom': '19.2.3',
|
|
70
70
|
rimraf: '6.1.2',
|
|
71
71
|
rolldown: '1.0.0-rc.1',
|
|
72
72
|
'source-map-support': '0.5.21',
|