@aws/nx-plugin-mcp 1.0.0-rc.50 → 1.0.0-rc.52

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/bin/aws-nx-mcp.js CHANGED
@@ -54534,6 +54534,13 @@ var generators$1 = {
54534
54534
  "description": "Connect a py#mcp-server to a py#rdb project",
54535
54535
  "metric": "g59",
54536
54536
  "hidden": true
54537
+ },
54538
+ "internal#test-matrix": {
54539
+ "factory": "./src/internal/test-matrix/generator",
54540
+ "schema": "./src/internal/test-matrix/schema.json",
54541
+ "description": "Scaffold every generator permutation for end to end tests",
54542
+ "metric": "t1",
54543
+ "hidden": true
54537
54544
  }
54538
54545
  };
54539
54546
  //#endregion
@@ -374,7 +374,10 @@ Write some unit tests for the generator. These are quite straightforward to impl
374
374
 
375
375
  #### 4. End to End Tests
376
376
 
377
- We have a suite of "smoke tests" which run generators in a fresh workspace and make sure that everything builds. At a minimum, your new generator should be added to the generator matrix in `e2e/src/smoke-tests/generator-matrix.ts` so that it's exercised by the smoke tests.
377
+ We have a suite of "smoke tests" which run generators in a fresh workspace and make sure that everything builds. At a minimum, your new generator should be added to **both** generator matrices so that it's exercised by the smoke tests:
378
+
379
+ - `e2e/src/smoke-tests/generator-matrix.ts` — runs each generator through the CLI, one invocation at a time, exactly as a user would.
380
+ - `packages/nx-plugin/src/internal/test-matrix/generator.ts` — a hidden generator which composes all the others for testing migrations between versions.
378
381
 
379
382
  Note that the generator matrix only runs the generators and builds the workspace — it does not instantiate any infrastructure. For generators which deploy infrastructure, consider extending the deployment e2e tests (`e2e/src/smoke-tests/cdk-deploy.spec.ts` and `terraform-deploy.spec.ts`) to actually deploy your resources (via `cdk deploy` / `terraform apply`), then add an assertion to `deploy-invocations.ts` that invokes the deployed resource and verifies it behaves as expected.
380
383
 
@@ -140,6 +140,10 @@ module "user_identity" {
140
140
  </Fragment>
141
141
  </Infrastructure>
142
142
 
143
+ :::caution[`EC2MetaDataSSRF_QUERYARGUMENTS` is set to Count]
144
+ This rule flags loopback addresses in query arguments as [SSRF](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) attempts, which would block local sign-in since the Hosted UI receives a `localhost` `redirect_uri`. It is therefore set to [Count](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-rule-action.html#web-acl-rule-action-count) while local callback URLs are configured — matches are still logged, and every other rule blocks. Remove the local callback URLs to restore it to Block.
145
+ :::
146
+
143
147
  ## Infrastructure Usage
144
148
 
145
149
  <Infrastructure>
package/generators.json CHANGED
@@ -495,6 +495,13 @@
495
495
  "description": "Connect a py#mcp-server to a py#rdb project",
496
496
  "metric": "g59",
497
497
  "hidden": true
498
+ },
499
+ "internal#test-matrix": {
500
+ "factory": "./src/internal/test-matrix/generator",
501
+ "schema": "./src/internal/test-matrix/schema.json",
502
+ "description": "Scaffold every generator permutation for end to end tests",
503
+ "metric": "t1",
504
+ "hidden": true
498
505
  }
499
506
  }
500
507
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin-mcp",
3
- "version": "1.0.0-rc.50",
3
+ "version": "1.0.0-rc.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "InternalTestMatrix",
4
+ "title": "Internal test matrix generator",
5
+ "description": "Scaffolds every generator, component and connection permutation for end to end tests",
6
+ "type": "object",
7
+ "properties": {
8
+ "preferInstallDependencies": {
9
+ "type": "boolean",
10
+ "description": "Install dependencies after each generator rather than once at the end",
11
+ "default": false
12
+ },
13
+ "infra": {
14
+ "type": "string",
15
+ "description": "IaC provider of the workspace, so the matrix scaffolds the matching infrastructure project",
16
+ "enum": ["cdk", "terraform"],
17
+ "default": "cdk"
18
+ }
19
+ },
20
+ "required": []
21
+ }