nx 21.6.1-rc.0 → 21.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "21.6.1-rc.0",
3
+ "version": "21.6.2",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -83,16 +83,16 @@
83
83
  }
84
84
  },
85
85
  "optionalDependencies": {
86
- "@nx/nx-darwin-arm64": "21.6.1-rc.0",
87
- "@nx/nx-darwin-x64": "21.6.1-rc.0",
88
- "@nx/nx-freebsd-x64": "21.6.1-rc.0",
89
- "@nx/nx-linux-arm-gnueabihf": "21.6.1-rc.0",
90
- "@nx/nx-linux-arm64-gnu": "21.6.1-rc.0",
91
- "@nx/nx-linux-arm64-musl": "21.6.1-rc.0",
92
- "@nx/nx-linux-x64-gnu": "21.6.1-rc.0",
93
- "@nx/nx-linux-x64-musl": "21.6.1-rc.0",
94
- "@nx/nx-win32-arm64-msvc": "21.6.1-rc.0",
95
- "@nx/nx-win32-x64-msvc": "21.6.1-rc.0"
86
+ "@nx/nx-darwin-arm64": "*",
87
+ "@nx/nx-darwin-x64": "*",
88
+ "@nx/nx-freebsd-x64": "*",
89
+ "@nx/nx-linux-arm-gnueabihf": "*",
90
+ "@nx/nx-linux-arm64-gnu": "*",
91
+ "@nx/nx-linux-arm64-musl": "*",
92
+ "@nx/nx-linux-x64-gnu": "*",
93
+ "@nx/nx-linux-x64-musl": "*",
94
+ "@nx/nx-win32-arm64-msvc": "*",
95
+ "@nx/nx-win32-x64-msvc": "*"
96
96
  },
97
97
  "nx-migrations": {
98
98
  "migrations": "./migrations.json",
@@ -1 +1 @@
1
- {"version":3,"file":"configure-ai-agents.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/configure-ai-agents/configure-ai-agents.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAI5D,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,wBAAwB,EAC9B,KAAK,UAAQ,GACZ,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,IAAI,CAAC,CAkMf"}
1
+ {"version":3,"file":"configure-ai-agents.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/configure-ai-agents/configure-ai-agents.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAI5D,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,wBAAwB,EAC9B,KAAK,UAAQ,GACZ,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,IAAI,CAAC,CAgNf"}
@@ -5,6 +5,7 @@ exports.configureAiAgentsHandlerImpl = configureAiAgentsHandlerImpl;
5
5
  const enquirer_1 = require("enquirer");
6
6
  const output_1 = require("../../utils/output");
7
7
  const provenance_1 = require("../../utils/provenance");
8
+ const chalk = require("chalk");
8
9
  const utils_1 = require("../../ai/utils");
9
10
  const devkit_internals_1 = require("../../devkit-internals");
10
11
  const workspace_root_1 = require("../../utils/workspace-root");
@@ -38,10 +39,23 @@ async function configureAiAgentsHandlerImpl(options) {
38
39
  const normalizedOptions = normalizeOptions(options);
39
40
  const { nonConfiguredAgents, partiallyConfiguredAgents, fullyConfiguredAgents, disabledAgents, agentConfigurations, } = await (0, utils_1.getAgentConfigurations)(normalizedOptions.agents, workspace_root_1.workspaceRoot);
40
41
  if (disabledAgents.length > 0) {
42
+ const commandNames = disabledAgents.map((a) => {
43
+ if (a === 'cursor')
44
+ return '"cursor"';
45
+ if (a === 'copilot')
46
+ return '"code"/"code-insiders"';
47
+ return a;
48
+ });
49
+ const title = commandNames.length === 1
50
+ ? `${commandNames[0]} command not available.`
51
+ : `CLI commands ${commandNames
52
+ .map((c) => `${c}`)
53
+ .join('/')} not available.`;
41
54
  output_1.output.log({
42
- title: `Ignoring agent${disabledAgents.length > 1 ? 's' : ''} ${disabledAgents
43
- .map((a) => utils_1.agentDisplayMap[a])
44
- .join(', ')} because editor is not available.`,
55
+ title,
56
+ bodyLines: [
57
+ chalk.dim('To manually configure the Nx MCP in your editor, install Nx Console (https://nx.dev/getting-started/editor-setup)'),
58
+ ],
45
59
  });
46
60
  }
47
61
  if (normalizedOptions.agents.filter((a) => !disabledAgents.includes(a))