@aws/nx-plugin 0.69.1 → 0.71.0
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 +90 -2
- package/README.md +1 -1
- package/generators.json +8 -8
- package/package.json +7 -7
- package/sdk/connection.d.ts +6 -0
- package/sdk/connection.js +10 -0
- package/sdk/connection.js.map +1 -0
- package/src/{api-connection → connection}/generator.d.ts +5 -5
- package/src/{api-connection → connection}/generator.js +6 -6
- package/src/connection/generator.js.map +1 -0
- package/src/{api-connection → connection}/schema.d.ts +1 -1
- package/src/{api-connection → connection}/schema.json +5 -5
- package/src/connection/serve-local.js.map +1 -0
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/preset/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/py/fast-api/react/generator.js +1 -1
- package/src/py/fast-api/react/generator.js.map +1 -1
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/smithy/react-connection/generator.js +2 -2
- package/src/smithy/react-connection/generator.js.map +1 -1
- package/src/trpc/react/generator.js +1 -1
- package/src/trpc/react/generator.js.map +1 -1
- package/src/ts/nx-plugin/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +4120 -4120
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +0 -592
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +259 -0
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.ux-provider.spec.ts.snap +335 -0
- package/src/utils/{api-connection → connection}/open-api/react.js +1 -1
- package/src/utils/connection/open-api/react.js.map +1 -0
- package/src/utils/files/common/shadcn/src/components/ui/breadcrumb.tsx.template +2 -2
- package/src/utils/files/common/shadcn/src/components/ui/button.tsx.template +4 -2
- package/src/utils/files/common/shadcn/src/components/ui/separator.tsx.template +1 -1
- package/src/utils/files/common/shadcn/src/components/ui/sheet.tsx.template +9 -5
- package/src/utils/files/common/shadcn/src/components/ui/sidebar.tsx.template +6 -6
- package/src/utils/files/common/shadcn/src/components/ui/tooltip.tsx.template +2 -6
- package/src/utils/shared-shadcn.js +1 -6
- package/src/utils/shared-shadcn.js.map +1 -1
- package/src/utils/versions.d.ts +21 -26
- package/src/utils/versions.js +20 -25
- package/src/utils/versions.js.map +1 -1
- package/sdk/api-connection.d.ts +0 -6
- package/sdk/api-connection.js +0 -10
- package/sdk/api-connection.js.map +0 -1
- package/src/api-connection/generator.js.map +0 -1
- package/src/api-connection/serve-local.js.map +0 -1
- package/src/utils/api-connection/open-api/react.js.map +0 -1
- /package/src/{api-connection → connection}/serve-local.d.ts +0 -0
- /package/src/{api-connection → connection}/serve-local.js +0 -0
- /package/src/utils/{api-connection → connection}/open-api/files/components/__apiNameClassName__Provider.tsx.template +0 -0
- /package/src/utils/{api-connection → connection}/open-api/files/hooks/use__apiNameClassName__.tsx.template +0 -0
- /package/src/utils/{api-connection → connection}/open-api/files/hooks/use__apiNameClassName__Client.tsx.template +0 -0
- /package/src/utils/{api-connection → connection}/open-api/react.d.ts +0 -0
package/LICENSE-THIRD-PARTY
CHANGED
|
@@ -874,6 +874,31 @@ THE SOFTWARE.
|
|
|
874
874
|
|
|
875
875
|
---
|
|
876
876
|
|
|
877
|
+
The following software may be included in this product: @babel/parser (7.28.6)
|
|
878
|
+
This software contains the following license and notice below:
|
|
879
|
+
|
|
880
|
+
Copyright (C) 2012-2014 by various contributors (see AUTHORS)
|
|
881
|
+
|
|
882
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
883
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
884
|
+
in the Software without restriction, including without limitation the rights
|
|
885
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
886
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
887
|
+
furnished to do so, subject to the following conditions:
|
|
888
|
+
|
|
889
|
+
The above copyright notice and this permission notice shall be included in
|
|
890
|
+
all copies or substantial portions of the Software.
|
|
891
|
+
|
|
892
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
893
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
894
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
895
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
896
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
897
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
898
|
+
THE SOFTWARE.
|
|
899
|
+
|
|
900
|
+
---
|
|
901
|
+
|
|
877
902
|
The following software may be included in this product: @babel/plugin-bugfix-firefox-class-in-computed-class-key (7.27.1)
|
|
878
903
|
This software contains the following license and notice below:
|
|
879
904
|
|
|
@@ -2974,7 +2999,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
2974
2999
|
|
|
2975
3000
|
---
|
|
2976
3001
|
|
|
2977
|
-
The following software may be included in this product: @babel/runtime (7.28.
|
|
3002
|
+
The following software may be included in this product: @babel/runtime (7.28.6)
|
|
2978
3003
|
This software contains the following license and notice below:
|
|
2979
3004
|
|
|
2980
3005
|
MIT License
|
|
@@ -3114,6 +3139,34 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
3114
3139
|
|
|
3115
3140
|
---
|
|
3116
3141
|
|
|
3142
|
+
The following software may be included in this product: @babel/types (7.28.6)
|
|
3143
|
+
This software contains the following license and notice below:
|
|
3144
|
+
|
|
3145
|
+
MIT License
|
|
3146
|
+
|
|
3147
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
3148
|
+
|
|
3149
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
3150
|
+
a copy of this software and associated documentation files (the
|
|
3151
|
+
"Software"), to deal in the Software without restriction, including
|
|
3152
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
3153
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
3154
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
3155
|
+
the following conditions:
|
|
3156
|
+
|
|
3157
|
+
The above copyright notice and this permission notice shall be
|
|
3158
|
+
included in all copies or substantial portions of the Software.
|
|
3159
|
+
|
|
3160
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
3161
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
3162
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
3163
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
3164
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
3165
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
3166
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3167
|
+
|
|
3168
|
+
---
|
|
3169
|
+
|
|
3117
3170
|
The following software may be included in this product: @csstools/css-calc (2.1.4)
|
|
3118
3171
|
This software contains the following license and notice below:
|
|
3119
3172
|
|
|
@@ -37135,6 +37188,41 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
37135
37188
|
|
|
37136
37189
|
---
|
|
37137
37190
|
|
|
37191
|
+
The following software may be included in this product: qs (6.14.1)
|
|
37192
|
+
This software contains the following license and notice below:
|
|
37193
|
+
|
|
37194
|
+
BSD 3-Clause License
|
|
37195
|
+
|
|
37196
|
+
Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors)
|
|
37197
|
+
All rights reserved.
|
|
37198
|
+
|
|
37199
|
+
Redistribution and use in source and binary forms, with or without
|
|
37200
|
+
modification, are permitted provided that the following conditions are met:
|
|
37201
|
+
|
|
37202
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
37203
|
+
list of conditions and the following disclaimer.
|
|
37204
|
+
|
|
37205
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
37206
|
+
this list of conditions and the following disclaimer in the documentation
|
|
37207
|
+
and/or other materials provided with the distribution.
|
|
37208
|
+
|
|
37209
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
37210
|
+
contributors may be used to endorse or promote products derived from
|
|
37211
|
+
this software without specific prior written permission.
|
|
37212
|
+
|
|
37213
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
37214
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
37215
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
37216
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
37217
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
37218
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
37219
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
37220
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
37221
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
37222
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37223
|
+
|
|
37224
|
+
---
|
|
37225
|
+
|
|
37138
37226
|
The following software may be included in this product: serialize-javascript (6.0.2)
|
|
37139
37227
|
This software contains the following license and notice below:
|
|
37140
37228
|
|
|
@@ -39190,7 +39278,7 @@ software or this license, under any kind of legal claim.***
|
|
|
39190
39278
|
|
|
39191
39279
|
---
|
|
39192
39280
|
|
|
39193
|
-
The following software may be included in this product: sax (1.4.
|
|
39281
|
+
The following software may be included in this product: sax (1.4.4)
|
|
39194
39282
|
This software contains the following license and notice below:
|
|
39195
39283
|
|
|
39196
39284
|
# Blue Oak Model License
|
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
- `py#lambda-function` - Add a lambda function to an existing python project with optional type-safe event sources.
|
|
69
69
|
- `py#mcp-server` - Add a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server to a Python project.
|
|
70
70
|
- `py#strands-agent` Add a [Strands Agent](https://strandsagents.com/) to a Python project.
|
|
71
|
-
- `
|
|
71
|
+
- `connection` - Connect projects together (e.g. frontend to backend APIs).
|
|
72
72
|
- `license` - Automatically manage LICENSE files and source code headers in your workspace.
|
|
73
73
|
|
|
74
74
|
## Getting started
|
package/generators.json
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
"name": "@aws/nx-plugin",
|
|
4
4
|
"version": "0.0.1",
|
|
5
5
|
"generators": {
|
|
6
|
-
"
|
|
7
|
-
"factory": "./src/
|
|
8
|
-
"schema": "./src/
|
|
9
|
-
"description": "Integrates a source project with a target
|
|
6
|
+
"connection": {
|
|
7
|
+
"factory": "./src/connection/generator",
|
|
8
|
+
"schema": "./src/connection/schema.json",
|
|
9
|
+
"description": "Integrates a source project with a target project",
|
|
10
10
|
"metric": "g11",
|
|
11
11
|
"guidePages": [
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
12
|
+
"connection",
|
|
13
|
+
"connection/react-fastapi",
|
|
14
|
+
"connection/react-trpc",
|
|
15
|
+
"connection/react-smithy"
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
18
|
"license": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/nx-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/awslabs/nx-plugin-for-aws.git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"generators": "./generators.json",
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"nx": "~22.4.
|
|
22
|
+
"nx": "~22.4.3",
|
|
23
23
|
"prettier": "^3.8.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@hey-api/openapi-ts": "0.64.13",
|
|
28
28
|
"@iarna/toml": "^2.2.5",
|
|
29
29
|
"@modelcontextprotocol/sdk": "~1.25.3",
|
|
30
|
-
"@nx/devkit": "~22.4.
|
|
31
|
-
"@nx/eslint": "~22.4.
|
|
32
|
-
"@nx/js": "~22.4.
|
|
33
|
-
"@nx/react": "~22.4.
|
|
34
|
-
"@nx/vite": "~22.4.
|
|
30
|
+
"@nx/devkit": "~22.4.3",
|
|
31
|
+
"@nx/eslint": "~22.4.3",
|
|
32
|
+
"@nx/js": "~22.4.3",
|
|
33
|
+
"@nx/react": "~22.4.3",
|
|
34
|
+
"@nx/vite": "~22.4.3",
|
|
35
35
|
"@nxlv/python": "~21.3.1",
|
|
36
36
|
"@phenomnomnominal/tsquery": "6.1.4",
|
|
37
37
|
"enquirer": "^2.4.1",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.connectionGenerator = void 0;
|
|
8
|
+
var generator_1 = require("../src/connection/generator");
|
|
9
|
+
Object.defineProperty(exports, "connectionGenerator", { enumerable: true, get: function () { return generator_1.connectionGenerator; } });
|
|
10
|
+
//# sourceMappingURL=connection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../../packages/nx-plugin/sdk/connection.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,yDAAkE;AAAzD,gHAAA,mBAAmB,OAAA"}
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { Tree } from '@nx/devkit';
|
|
6
|
-
import {
|
|
6
|
+
import { ConnectionGeneratorSchema } from './schema';
|
|
7
7
|
/**
|
|
8
|
-
* List of supported source and target project types for
|
|
8
|
+
* List of supported source and target project types for connections
|
|
9
9
|
*/
|
|
10
10
|
declare const SUPPORTED_PROJECT_TYPES: readonly ["ts#trpc-api", "py#fast-api", "react", "smithy"];
|
|
11
11
|
type ProjectType = (typeof SUPPORTED_PROJECT_TYPES)[number];
|
|
12
12
|
/**
|
|
13
|
-
* Generator for a connection
|
|
13
|
+
* Generator for a connection between two projects
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const connectionGenerator: (tree: Tree, options: ConnectionGeneratorSchema) => Promise<() => void>;
|
|
16
16
|
/**
|
|
17
17
|
* Determine whether the given project is of a known project type
|
|
18
18
|
*/
|
|
19
19
|
export declare const determineProjectType: (tree: Tree, projectName: string) => ProjectType | undefined;
|
|
20
|
-
export default
|
|
20
|
+
export default connectionGenerator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.determineProjectType = exports.
|
|
3
|
+
exports.determineProjectType = exports.connectionGenerator = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/**
|
|
6
6
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
@@ -16,7 +16,7 @@ const generator_3 = require("../smithy/project/generator");
|
|
|
16
16
|
const generator_4 = require("../smithy/ts/api/generator");
|
|
17
17
|
const generator_5 = tslib_1.__importDefault(require("../smithy/react-connection/generator"));
|
|
18
18
|
/**
|
|
19
|
-
* List of supported source and target project types for
|
|
19
|
+
* List of supported source and target project types for connections
|
|
20
20
|
*/
|
|
21
21
|
const SUPPORTED_PROJECT_TYPES = [
|
|
22
22
|
'ts#trpc-api',
|
|
@@ -50,9 +50,9 @@ const CONNECTION_GENERATORS = {
|
|
|
50
50
|
}),
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
|
-
* Generator for a connection
|
|
53
|
+
* Generator for a connection between two projects
|
|
54
54
|
*/
|
|
55
|
-
const
|
|
55
|
+
const connectionGenerator = (tree, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
56
56
|
const sourceType = (0, exports.determineProjectType)(tree, options.sourceProject);
|
|
57
57
|
const targetType = (0, exports.determineProjectType)(tree, options.targetProject);
|
|
58
58
|
if (!sourceType || !SUPPORTED_PROJECT_TYPES.includes(sourceType)) {
|
|
@@ -67,7 +67,7 @@ const apiConnectionGenerator = (tree, options) => tslib_1.__awaiter(void 0, void
|
|
|
67
67
|
}
|
|
68
68
|
return yield CONNECTION_GENERATORS[`${connection.source} -> ${connection.target}`](tree, options);
|
|
69
69
|
});
|
|
70
|
-
exports.
|
|
70
|
+
exports.connectionGenerator = connectionGenerator;
|
|
71
71
|
/**
|
|
72
72
|
* Determine whether the given project is of a known project type
|
|
73
73
|
*/
|
|
@@ -146,5 +146,5 @@ const isSmithyApi = (_tree, projectConfiguration) => {
|
|
|
146
146
|
generator_4.TS_SMITHY_API_GENERATOR_INFO.id,
|
|
147
147
|
].includes(((_a = projectConfiguration.metadata) !== null && _a !== void 0 ? _a : {}).generator);
|
|
148
148
|
};
|
|
149
|
-
exports.default = exports.
|
|
149
|
+
exports.default = exports.connectionGenerator;
|
|
150
150
|
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/connection/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAA2E;AAE3E,gFAAyD;AACzD,sCAAoD;AACpD,wCAAyC;AACzC,uFAAmE;AACnE,oCAAkE;AAClE,2DAA4E;AAC5E,0DAA0E;AAC1E,6FAAkF;AAElF;;GAEG;AACH,MAAM,uBAAuB,GAAG;IAC9B,aAAa;IACb,aAAa;IACb,OAAO;IACP,QAAQ;CACA,CAAC;AAMX;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE;IAC1C,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE;IAC1C,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE;CACf,CAAC;AAQzB;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,sBAAsB,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CACxC,IAAA,mBAAkB,EAAC,IAAI,EAAE;QACvB,mBAAmB,EAAE,OAAO,CAAC,aAAa;QAC1C,kBAAkB,EAAE,OAAO,CAAC,aAAa;KAC1C,CAAC;IACJ,sBAAsB,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CACxC,IAAA,mBAAqB,EAAC,IAAI,EAAE;QAC1B,mBAAmB,EAAE,OAAO,CAAC,aAAa;QAC1C,kBAAkB,EAAE,OAAO,CAAC,aAAa;KAC1C,CAAC;IACJ,iBAAi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,CAAC;QAC/B,MAAM,SAAS,GAAG,IAAA,eAAQ,EAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QAChD,IAAI,CAAC,MAAA,MAAC,SAAiB,aAAjB,SAAS,uBAAT,SAAS,CAAU,OAAO,0CAAE,YAAY,mCAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YAC1E,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAClB,KAAW,EACX,oBAA0C,EACjC,EAAE;;IACX,+DAA+D;IAC/D,OAAO;QACL,yCAA6B,CAAC,EAAE;QAChC,wCAA4B,CAAC,EAAE;KAChC,CAAC,QAAQ,CAAC,CAAC,MAAC,oBAAoB,CAAC,QAAgB,mCAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF,kBAAe,2BAAmB,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/schema",
|
|
3
|
-
"$id": "
|
|
3
|
+
"$id": "Connection",
|
|
4
4
|
"title": "",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"sourceProject": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "The source project
|
|
9
|
+
"description": "The source project",
|
|
10
10
|
"$default": {
|
|
11
11
|
"$source": "argv",
|
|
12
12
|
"index": 0
|
|
13
13
|
},
|
|
14
|
-
"x-prompt": "Select the source project
|
|
14
|
+
"x-prompt": "Select the source project",
|
|
15
15
|
"x-dropdown": "projects"
|
|
16
16
|
},
|
|
17
17
|
"targetProject": {
|
|
18
18
|
"type": "string",
|
|
19
|
-
"description": "The target project
|
|
20
|
-
"x-prompt": "Select the target project
|
|
19
|
+
"description": "The target project to connect to",
|
|
20
|
+
"x-prompt": "Select the target project to connect to",
|
|
21
21
|
"x-dropdown": "projects"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serve-local.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/connection/serve-local.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAIoB;AACpB,sCAA+C;AAC/C,2CAA4C;AAC5C,oCAAkE;AAClE,0CAA6C;AAQ7C;;;GAGG;AACI,MAAM,qBAAqB,GAAG,CACnC,IAAU,EACV,iBAAyB,EACzB,iBAAyB,EACzB,OAA0B,EAC1B,EAAE;;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,iBAAiB,CAClB,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,wCAAmC,EACvD,IAAI,EACJ,iBAAiB,CAClB,CAAC;IAEF,8DAA8D;IAC9D,IACE,CAAC,CACC,CAAA,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,KAAK,0CAAE,UAAU;SACxC,MAAA,aAAa,CAAC,OAAO,0CAAG,aAAa,CAAC,CAAA,CACvC,EACD,CAAC;QACD,OAAO;IACT,CAAC;IAED,uCAAuC;IACvC,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,SAAS,GAAG;QAC/C,GAAG,CAAC,MAAA,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,SAAS,mCAAI,EAAE,CAAC;QACzD;YACE,QAAQ,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;YAC9B,MAAM,EAAE,OAAO;SAChB;QACD,GAAG,CAAC,MAAA,OAAO,CAAC,2BAA2B,mCAAI,EAAE,CAAC;KAC/C,CAAC;IACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAEpE,yFAAyF;IACzF,MAAM,qBAAqB,GAAG,IAAA,0BAAiB,EAC7C,aAAa,CAAC,IAAI,EAClB,KAAK,EACL,YAAY,EACZ,eAAe,EACf,WAAW,CACZ,CAAC;IACF,IAAI,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,CAAC;QACvC,IAAA,qBAAe,EACb,IAAI,EACJ,qBAAqB,EACrB,0GAA0G,EAC1G,CAAC,KAAY,EAAE,EAAE,CACf,oBAAO,CAAC,WAAW,CAAC;YAClB,GAAG,KAAK,CAAC,UAAU;YACnB,oBAAO,CAAC,yBAAyB,CAC/B,oBAAO,CAAC,gBAAgB,CACtB,oBAAO,CAAC,8BAA8B,CACpC,oBAAO,CAAC,8BAA8B,CACpC,oBAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,EACzC,MAAM,CACP,EACD,IAAA,mBAAW,EAAC,OAAO,CAAC,OAAO,CAAC,CAC7B,EACD,oBAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAC/C,CACF;SACF,CAAC,CACL,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAnEW,QAAA,qBAAqB,yBAmEhC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`infra generator > should add required dependencies to package.json > dependencies 1`] = `
|
|
4
4
|
{
|
|
5
|
-
"aws-cdk": "2.
|
|
5
|
+
"aws-cdk": "2.1104.0",
|
|
6
6
|
"aws-cdk-lib": "2.236.0",
|
|
7
7
|
"constructs": "10.4.5",
|
|
8
8
|
"esbuild": "0.27.2",
|
|
@@ -39,7 +39,7 @@ 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.
|
|
42
|
+
"aws-cdk": "2.1104.0",
|
|
43
43
|
"aws-cdk-lib": "2.236.0",
|
|
44
44
|
"constructs": "10.4.5",
|
|
45
45
|
"esbuild": "0.27.2",
|
|
@@ -30,7 +30,7 @@ Nx Console is an editor extension that enriches your developer experience. It le
|
|
|
30
30
|
|
|
31
31
|
The following list of generators are what is currently available in the \`@aws/nx-plugin\`:
|
|
32
32
|
|
|
33
|
-
- **
|
|
33
|
+
- **connection**: Integrates a source project with a target project
|
|
34
34
|
|
|
35
35
|
- **license**: Add LICENSE files and configure source code licence headers
|
|
36
36
|
|
|
@@ -11,7 +11,7 @@ const format_1 = require("../../../utils/format");
|
|
|
11
11
|
const nx_1 = require("../../../utils/nx");
|
|
12
12
|
const metrics_1 = require("../../../utils/metrics");
|
|
13
13
|
const open_api_1 = require("./open-api");
|
|
14
|
-
const react_1 = require("../../../utils/
|
|
14
|
+
const react_1 = require("../../../utils/connection/open-api/react");
|
|
15
15
|
exports.FAST_API_REACT_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
|
|
16
16
|
const fastApiReactGenerator = (tree, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
17
17
|
var _a, _b, _c, _d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/py/fast-api/react/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAAuD;AAEvD,kDAA6D;AAC7D,0CAI2B;AAC3B,oDAAyE;AACzE,yCAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/py/fast-api/react/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAAuD;AAEvD,kDAA6D;AAC7D,0CAI2B;AAC3B,oDAAyE;AACzE,yCAAkD;AAClD,oEAAiF;AAEpE,QAAA,6BAA6B,GACxC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,qBAAqB,GAAG,CACnC,IAAU,EACV,OAAoC,EACpC,EAAE;;IACF,MAAM,qBAAqB,GAAG,IAAA,wCAAmC,EAC/D,IAAI,EACJ,OAAO,CAAC,mBAAmB,CAC5B,CAAC;IACF,MAAM,oBAAo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ry-distro==0.14.2",
|
|
591
591
|
"bedrock-agentcore==0.1.7",
|
|
592
|
-
"fastapi==0.128.
|
|
593
|
-
"boto3==1.42.
|
|
592
|
+
"fastapi==0.128.1",
|
|
593
|
+
"boto3==1.42.42",
|
|
594
594
|
"mcp==1.26.0",
|
|
595
595
|
"strands-agents==1.24.0",
|
|
596
596
|
"strands-agents-tools==0.2.19",
|
|
@@ -598,7 +598,7 @@ dependencies = [
|
|
|
598
598
|
]
|
|
599
599
|
|
|
600
600
|
[dependency-groups]
|
|
601
|
-
dev = [ "fastapi[standard]==0.128.
|
|
601
|
+
dev = [ "fastapi[standard]==0.128.1" ]
|
|
602
602
|
|
|
603
603
|
[tool.uv]
|
|
604
604
|
dev-dependencies = [ ]
|
|
@@ -12,7 +12,7 @@ const metrics_1 = require("../../utils/metrics");
|
|
|
12
12
|
const format_1 = require("../../utils/format");
|
|
13
13
|
const generator_1 = require("../project/generator");
|
|
14
14
|
const generator_2 = require("../ts/api/generator");
|
|
15
|
-
const react_1 = require("../../utils/
|
|
15
|
+
const react_1 = require("../../utils/connection/open-api/react");
|
|
16
16
|
exports.SMITHY_REACT_CONNECTION_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
|
|
17
17
|
const smithyReactConnectionGenerator = (tree, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
var _a, _b, _c, _d;
|
|
@@ -78,7 +78,7 @@ const resolveProjectConfig = (tree, modelOrBackendConfig) => {
|
|
|
78
78
|
backendProjectConfig: modelOrBackendConfig,
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
throw new Error(`Unsupported
|
|
81
|
+
throw new Error(`Unsupported connection target ${modelOrBackendConfig.name}. Expected a Smithy model or backend project.`);
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* Get the namespace from a model project
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/smithy/react-connection/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAQoB;AAEpB,uCAIwB;AACxB,iDAAsE;AACtE,+CAA0D;AAC1D,oDAAqE;AACrE,mDAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/smithy/react-connection/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAQoB;AAEpB,uCAIwB;AACxB,iDAAsE;AACtE,+CAA0D;AAC1D,oDAAqE;AACrE,mDAAmE;AACnE,iEAA8E;AAEjE,QAAA,sCAAsC,GACjD,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,8BAA8B,GAAG,CAC5C,IAAU,EACV,OAA6C,EACjB,EAAE;;IAC9B,MAAM,qBAAqB,GAAG,IAAA,wCAAmC,EAC/D,IAAI,EACJ,OAAO,CAAC,mBAAmB,CAC5B,CAAC;IACF,MAAM,YAAY,GAAG,IAAA,wCAAmC,EACtD,IAAI,EACJ,OAAO,CAAC,+BAA+B,CACxC,CAAC;IAEF,sDAAsD;IACtD,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,CACvE,IAAI,EACJ,YAAY,CACb,CAAC;IAEF,MAAM,eAAe,GAAG,oBAAoB,CAAC,QAAe,CAAC;IAC7D,MAAM,OAAO,GAAG,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,OAAO,CAAC;IACzC,MAAM,IAAI,GAAG,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,mCAAI,KAAK,CAAC;IAC5C,MAAM,IAAI,GAAG,MAAA,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,mCAAI,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,KAAK,0CAAG,CAAC,CAAC,mCAAI,IAAI,CAAC;IAE1E,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,EAAE,k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AAO,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAAC,WAAM,CAAC;QACP,MAAM,IAAI,KAAK,CACb,sCAAsC,mBAAmB,mDAAmD,CAC7G,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,sCAA8B,CAAC"}
|
|
@@ -16,7 +16,7 @@ const names_1 = require("../../utils/names");
|
|
|
16
16
|
const format_1 = require("../../utils/format");
|
|
17
17
|
const nx_1 = require("../../utils/nx");
|
|
18
18
|
const metrics_1 = require("../../utils/metrics");
|
|
19
|
-
const serve_local_1 = require("../../
|
|
19
|
+
const serve_local_1 = require("../../connection/serve-local");
|
|
20
20
|
exports.TRPC_REACT_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
|
|
21
21
|
function reactGenerator(tree, options) {
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/trpc/react/generator.ts"],"names":[],"mappings":";;;AAoCA,wCA8JC;;AAlMD;;;GAGG;AACH,uCAOoB;AAGpB,+EAAyF;AACzF,qDAAqD;AACrD,mDAAoD;AACpD,yCAKyB;AACzB,6CAAgD;AAChD,+CAA0D;AAC1D,uCAIwB;AACxB,iDAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/trpc/react/generator.ts"],"names":[],"mappings":";;;AAoCA,wCA8JC;;AAlMD;;;GAGG;AACH,uCAOoB;AAGpB,+EAAyF;AACzF,qDAAqD;AACrD,mDAAoD;AACpD,yCAKyB;AACzB,6CAAgD;AAChD,+CAA0D;AAC1D,uCAIwB;AACxB,iDAAsE;AACtE,8DAAqE;AAExD,QAAA,yBAAyB,GACpC,IAAA,qBAAgB,EAAC,U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AI,EACJ,WAAW,EACX,2CAA2C,EAC3C,CAAC,IAA2B,EAAE,EAAE,CAC9B,IAAA,oCAA8B,EAAC,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,CAC7D,CAAC;QACJ,CAAC;QAED,IAAA,mCAAqB,EACnB,IAAI,EACJ,qBAAqB,CAAC,IAAI,EAC1B,oBAAoB,CAAC,IAAI,EACzB;YACE,GAAG,EAAE,oBAAoB,IAAI,GAAG;YAChC,OAAO;SACR,CACF,CAAC;QAEF,IAAA,qCAA4B,EAC1B,IAAI,EACJ,IAAA,uBAAY,EAAC;YACX,cAAc;YACd,4BAA4B;YAC5B,uBAAuB;YACvB,gCAAgC;YAChC,GAAI,CAAC,IAAI,KAAK,KAAK;gBACjB,CAAC,CAAC;oBACE,gBAAgB;oBAChB,WAAW;oBACX,kCAAkC;oBAClC,+CAA+C;oBAC/C,oBAAoB;iBACrB;gBACH,CAAC,CAAC,EAAE,CAAS;YACf,GAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAS;SAC/D,CAAC,EACF,IAAA,uBAAY,EAAC,CAAC,eAAe,CAAC,CAAC,CAChC,CAAC;QAEF,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE,CAAC,iCAAyB,CAAC,CAAC,CAAC;QAEzE,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;QACjC,OAAO,GAAG,EAAE;YACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;CAAA;AACD,kBAAe,cAAc,CAAC"}
|
|
@@ -248,7 +248,7 @@ export const registerCreateWorkspaceCommandTool = (server: McpServer) => {
|
|
|
248
248
|
text: \`Run the following command to create a workspace:
|
|
249
249
|
|
|
250
250
|
\\\`\\\`\\\`bash
|
|
251
|
-
npx create-nx-workspace@22.4.
|
|
251
|
+
npx create-nx-workspace@22.4.3 \${workspaceName} --pm=\${packageManager} --preset=@aws/nx-plugin --ci=skip --aiAgents
|
|
252
252
|
\\\`\\\`\\\`
|
|
253
253
|
|
|
254
254
|
This will create a new workspace within the \${workspaceName} directory.
|