@aws/nx-plugin-mcp 1.0.0-rc.54 → 1.0.0-rc.56

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
@@ -20779,16 +20779,9 @@ var import_lodash_deburr = /* @__PURE__ */ __toESM(require_lodash_deburr(), 1);
20779
20779
  const kebabCase = (str) => {
20780
20780
  return (0, import_lodash_deburr.default)(str).replace(/[^a-zA-Z0-9]+/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().replace(/^-+|-+$/g, "");
20781
20781
  };
20782
- //#endregion
20783
- //#region ../nx-plugin/src/utils/commands.ts
20784
- /**
20785
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
20786
- * SPDX-License-Identifier: Apache-2.0
20787
- */
20788
20782
  /**
20789
- * The nx version the plugin is built against. Commands that download nx
20790
- * (e.g. `nx init`) pin to this version so the workspace's nx matches the
20791
- * plugin's `@nx/*` packages — a mismatch deadlocks `nx sync`.
20783
+ * The nx version the plugin is built against, and the single source of truth
20784
+ * for every place a workspace's nx is pinned.
20792
20785
  */
20793
20786
  const NX_VERSION = {
20794
20787
  "@a2a-js/sdk": "0.3.14",
@@ -20817,8 +20810,13 @@ const NX_VERSION = {
20817
20810
  "@middy/core": "7.7.0",
20818
20811
  "@nxlv/python": "22.2.2",
20819
20812
  "@nx-extend/terraform": "10.3.0",
20813
+ nx: "23.1.0",
20820
20814
  "@nx/devkit": "23.1.0",
20815
+ "@nx/js": "23.1.0",
20821
20816
  "@nx/react": "23.1.0",
20817
+ "@nx/vite": "23.1.0",
20818
+ "@nx/vitest": "23.1.0",
20819
+ "@nx/workspace": "23.1.0",
20822
20820
  "create-nx-workspace": "23.1.0",
20823
20821
  "@swc-node/register": "1.12.1",
20824
20822
  "@swc/core": "1.15.43",
@@ -20916,7 +20914,13 @@ const NX_VERSION = {
20916
20914
  vitest: "4.1.10",
20917
20915
  zod: "4.4.3",
20918
20916
  ws: "8.21.1"
20919
- }["@nx/devkit"];
20917
+ }.nx;
20918
+ //#endregion
20919
+ //#region ../nx-plugin/src/utils/commands.ts
20920
+ /**
20921
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
20922
+ * SPDX-License-Identifier: Apache-2.0
20923
+ */
20920
20924
  const PACKAGE_MANAGER_COMMANDS = {
20921
20925
  npm: {
20922
20926
  exec: "npx",
@@ -75,7 +75,7 @@ export default async function migration(
75
75
  }
76
76
  ```
77
77
 
78
- - **`nextSteps`** — workspace-wide notes surfaced to the user after `nx migrate` runs. Use these to report files you skipped (see the guardrails below) or manual follow-up the migration couldn't perform.
78
+ - **`nextSteps`** — the follow-up actions Nx prints for the user after `nx migrate` runs. Every entry should be something they need to do by hand: reconcile a file you skipped (see the guardrails below), or finish something beyond the migration's reach, like an install to refresh a lock file. They aren't a log of what you changed — when a transform applies cleanly, add nothing, otherwise the entries that do need action get buried.
79
79
  - **`agentContext`** (hybrid only) — a summary of what the codemod changed, passed to the paired `prompt` when it runs under Nx's agentic flow so the agent can focus on the user-owned parts.
80
80
 
81
81
  For some example operations you can perform in your migration (generating files, modifying existing files using GritQL, reading and updating JSON), refer to the <Link path="/guides/nx-generator">Nx Generator guide</Link>.
@@ -86,6 +86,7 @@ Migrations run against workspaces you don't control, so it is recommended to adh
86
86
 
87
87
  - **Transform source code with GritQL.** Use the <Link path="/guides/nx-generator">GritQL helpers</Link> (`applyGritQL`, `matchGritQL`) to edit source rather than regexes or string replacements. GritQL matches the AST, so one pattern holds across the formatting, whitespace and quoting a user's copy may have drifted into, where text matching quietly misses equivalent code or corrupts the file. Use `updateJson` for JSON and the matching parser for other structured config.
88
88
  - **Pattern-match before writing.** If a target file has diverged from the shape your generators produce, skip it and report it via `nextSteps`, or consider a hybrid migration, rather than clobbering the user's changes. `matchGritQL` is a convenient way to make that check.
89
+ - **Report only what's left to do.** `nextSteps` is for work the user has to pick up, not a record of the edits you made — those are already in their `git diff`.
89
90
  - **Idempotent.** Re-running the migration must be a no-op. Guard GritQL rewrites that inject code with a `where { ... <: not contains ... }` clause so a second run doesn't append a duplicate.
90
91
  - **Format what you write.** Finish with `formatFilesInSubtree(tree)` so the files your migration wrote are formatted correctly.
91
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin-mcp",
3
- "version": "1.0.0-rc.54",
3
+ "version": "1.0.0-rc.56",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",