nx 21.4.0-canary.20250724-b7c1c0e → 21.4.0-canary.20250725-0359f0d

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.4.0-canary.20250724-b7c1c0e",
3
+ "version": "21.4.0-canary.20250725-0359f0d",
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.4.0-canary.20250724-b7c1c0e",
87
- "@nx/nx-darwin-x64": "21.4.0-canary.20250724-b7c1c0e",
88
- "@nx/nx-freebsd-x64": "21.4.0-canary.20250724-b7c1c0e",
89
- "@nx/nx-linux-arm-gnueabihf": "21.4.0-canary.20250724-b7c1c0e",
90
- "@nx/nx-linux-arm64-gnu": "21.4.0-canary.20250724-b7c1c0e",
91
- "@nx/nx-linux-arm64-musl": "21.4.0-canary.20250724-b7c1c0e",
92
- "@nx/nx-linux-x64-gnu": "21.4.0-canary.20250724-b7c1c0e",
93
- "@nx/nx-linux-x64-musl": "21.4.0-canary.20250724-b7c1c0e",
94
- "@nx/nx-win32-arm64-msvc": "21.4.0-canary.20250724-b7c1c0e",
95
- "@nx/nx-win32-x64-msvc": "21.4.0-canary.20250724-b7c1c0e"
86
+ "@nx/nx-darwin-arm64": "21.4.0-canary.20250725-0359f0d",
87
+ "@nx/nx-darwin-x64": "21.4.0-canary.20250725-0359f0d",
88
+ "@nx/nx-freebsd-x64": "21.4.0-canary.20250725-0359f0d",
89
+ "@nx/nx-linux-arm-gnueabihf": "21.4.0-canary.20250725-0359f0d",
90
+ "@nx/nx-linux-arm64-gnu": "21.4.0-canary.20250725-0359f0d",
91
+ "@nx/nx-linux-arm64-musl": "21.4.0-canary.20250725-0359f0d",
92
+ "@nx/nx-linux-x64-gnu": "21.4.0-canary.20250725-0359f0d",
93
+ "@nx/nx-linux-x64-musl": "21.4.0-canary.20250725-0359f0d",
94
+ "@nx/nx-win32-arm64-msvc": "21.4.0-canary.20250725-0359f0d",
95
+ "@nx/nx-win32-x64-msvc": "21.4.0-canary.20250725-0359f0d"
96
96
  },
97
97
  "nx-migrations": {
98
98
  "migrations": "./migrations.json",
@@ -0,0 +1,23 @@
1
+ export * from './add/command-object';
2
+ export * from './affected/command-object';
3
+ export * from './daemon/command-object';
4
+ export * from './exec/command-object';
5
+ export * from './format/command-object';
6
+ export * from './generate/command-object';
7
+ export * from './graph/command-object';
8
+ export * from './import/command-object';
9
+ export * from './init/command-object';
10
+ export * from './list/command-object';
11
+ export * from './migrate/command-object';
12
+ export * from './new/command-object';
13
+ export * from './register/command-object';
14
+ export * from './release/command-object';
15
+ export * from './repair/command-object';
16
+ export * from './report/command-object';
17
+ export * from './reset/command-object';
18
+ export * from './run-many/command-object';
19
+ export * from './run/command-object';
20
+ export * from './show/command-object';
21
+ export * from './sync/command-object';
22
+ export * from './watch/command-object';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/command-line/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // CLI Commands Export File for Documentation
5
+ tslib_1.__exportStar(require("./add/command-object"), exports);
6
+ tslib_1.__exportStar(require("./affected/command-object"), exports);
7
+ tslib_1.__exportStar(require("./daemon/command-object"), exports);
8
+ tslib_1.__exportStar(require("./exec/command-object"), exports);
9
+ tslib_1.__exportStar(require("./format/command-object"), exports);
10
+ tslib_1.__exportStar(require("./generate/command-object"), exports);
11
+ tslib_1.__exportStar(require("./graph/command-object"), exports);
12
+ tslib_1.__exportStar(require("./import/command-object"), exports);
13
+ tslib_1.__exportStar(require("./init/command-object"), exports);
14
+ tslib_1.__exportStar(require("./list/command-object"), exports);
15
+ tslib_1.__exportStar(require("./migrate/command-object"), exports);
16
+ tslib_1.__exportStar(require("./new/command-object"), exports);
17
+ tslib_1.__exportStar(require("./register/command-object"), exports);
18
+ tslib_1.__exportStar(require("./release/command-object"), exports);
19
+ tslib_1.__exportStar(require("./repair/command-object"), exports);
20
+ tslib_1.__exportStar(require("./report/command-object"), exports);
21
+ tslib_1.__exportStar(require("./reset/command-object"), exports);
22
+ tslib_1.__exportStar(require("./run-many/command-object"), exports);
23
+ tslib_1.__exportStar(require("./run/command-object"), exports);
24
+ tslib_1.__exportStar(require("./show/command-object"), exports);
25
+ tslib_1.__exportStar(require("./sync/command-object"), exports);
26
+ tslib_1.__exportStar(require("./watch/command-object"), exports);
@@ -252,6 +252,9 @@ export declare export declare function installNxConsole(): void
252
252
 
253
253
  export const IS_WASM: boolean
254
254
 
255
+ /** Detects if the current process is being run by an AI agent */
256
+ export declare export declare function isAiAgent(): boolean
257
+
255
258
  export declare export declare function logDebug(message: string): void
256
259
 
257
260
  /** Stripped version of the NxJson interface for use in rust */
@@ -392,6 +392,7 @@ module.exports.hashArray = nativeBinding.hashArray
392
392
  module.exports.hashFile = nativeBinding.hashFile
393
393
  module.exports.installNxConsole = nativeBinding.installNxConsole
394
394
  module.exports.IS_WASM = nativeBinding.IS_WASM
395
+ module.exports.isAiAgent = nativeBinding.isAiAgent
395
396
  module.exports.logDebug = nativeBinding.logDebug
396
397
  module.exports.parseTaskStatus = nativeBinding.parseTaskStatus
397
398
  module.exports.remove = nativeBinding.remove
@@ -124,16 +124,17 @@ function __napi_rs_initialize_modules(__napiInstance) {
124
124
  __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_49']?.()
125
125
  __napiInstance.exports['__napi_register__DepsOutputsInput_struct_50']?.()
126
126
  __napiInstance.exports['__napi_register__NxJson_struct_51']?.()
127
- __napiInstance.exports['__napi_register__FileLock_struct_52']?.()
128
- __napiInstance.exports['__napi_register__FileLock_impl_54']?.()
129
- __napiInstance.exports['__napi_register__WorkspaceContext_struct_55']?.()
130
- __napiInstance.exports['__napi_register__WorkspaceContext_impl_66']?.()
131
- __napiInstance.exports['__napi_register__WorkspaceErrors_67']?.()
132
- __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_68']?.()
133
- __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_69']?.()
134
- __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_70']?.()
135
- __napiInstance.exports['__napi_register__FileMap_struct_71']?.()
136
- __napiInstance.exports['__napi_register____test_only_transfer_file_map_72']?.()
127
+ __napiInstance.exports['__napi_register__is_ai_agent_52']?.()
128
+ __napiInstance.exports['__napi_register__FileLock_struct_53']?.()
129
+ __napiInstance.exports['__napi_register__FileLock_impl_55']?.()
130
+ __napiInstance.exports['__napi_register__WorkspaceContext_struct_56']?.()
131
+ __napiInstance.exports['__napi_register__WorkspaceContext_impl_67']?.()
132
+ __napiInstance.exports['__napi_register__WorkspaceErrors_68']?.()
133
+ __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_69']?.()
134
+ __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_70']?.()
135
+ __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_71']?.()
136
+ __napiInstance.exports['__napi_register__FileMap_struct_72']?.()
137
+ __napiInstance.exports['__napi_register____test_only_transfer_file_map_73']?.()
137
138
  }
138
139
  module.exports.FileLock = __napiModule.exports.FileLock
139
140
  module.exports.HashPlanInspector = __napiModule.exports.HashPlanInspector
@@ -153,6 +154,7 @@ module.exports.hashArray = __napiModule.exports.hashArray
153
154
  module.exports.hashFile = __napiModule.exports.hashFile
154
155
  module.exports.installNxConsole = __napiModule.exports.installNxConsole
155
156
  module.exports.IS_WASM = __napiModule.exports.IS_WASM
157
+ module.exports.isAiAgent = __napiModule.exports.isAiAgent
156
158
  module.exports.logDebug = __napiModule.exports.logDebug
157
159
  module.exports.remove = __napiModule.exports.remove
158
160
  module.exports.testOnlyTransferFileMap = __napiModule.exports.testOnlyTransferFileMap
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"target-project-locator.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/plugins/js/project-graph/build-dependencies/target-project-locator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAmB1C;;;;GAIG;AACH,KAAK,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;AAErD,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAaF,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGjE;AAED,qBAAa,oBAAoB;IAc7B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OA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,OAAO,CAAC,eAAe;CAyCxB"}
1
+ {"version":3,"file":"target-project-locator.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/plugins/js/project-graph/build-dependencies/target-project-locator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAmB1C;;;;GAIG;AACH,KAAK,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;AAErD,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAaF,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGjE;AAED,qBAAa,oBAAoB;IAc7B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAI9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAlBrC,OAAO,CAAC,mBAAmB,CAAyC;IACpE,OAAO,CAAC,WAAW,CAAkD;IACrE,OAAO,CAAC,QAAQ,CAA0B;IAC1C,OAAO,CAAC,KAAK,CAAgD;IAC7D,OAAO,CAAC,kBAAkB,CAA6B;IACvD,OAAO,CAAC,yBAAyB,CAAoC;IACrE,OAAO,CAAC,gBAAgB,CAItB;gBAGiB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,EAC9C,aAAa,GAAE,MAAM,CACpC,MAAM,EACN,wBAAwB,CACpB,EACW,kBAAkB,GAAE,kBAA8C;IA2BrF;;;;;;OAMG;IACH,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM;IAsEnE;;;;;;OAMG;IACH,wBAAwB,CACtB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACnB,MAAM,GAAG,IAAI;IAoEhB;;;;OAIG;IACH,SAAS,CAAC,oBAAoB,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;IAmB7D,iBAAiB,CACf,UAAU,EAAE,MAAM,GACjB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS;IA6B/D,6BAA6B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAehE,iCAAiC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAM7D,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,UAAU;IAuBlB,OAAO,CAAC,2BAA2B;IAgDnC,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,2BAA2B;IAsBnC,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,wBAAwB;IAKhC;;;;;;;;;OASG;IACH,OAAO,CAAC,eAAe;CAyCxB"}
@@ -292,9 +292,13 @@ class TargetProjectLocator {
292
292
  resolvedModule.includes('/node_modules/')) {
293
293
  return undefined;
294
294
  }
295
- const normalizedResolvedModule = resolvedModule.startsWith('./')
295
+ let normalizedResolvedModule = resolvedModule.startsWith('./')
296
296
  ? resolvedModule.substring(2)
297
297
  : resolvedModule;
298
+ // Remove trailing slash to ensure proper project matching
299
+ if (normalizedResolvedModule.endsWith('/')) {
300
+ normalizedResolvedModule = normalizedResolvedModule.slice(0, -1);
301
+ }
298
302
  const importedProject = this.findMatchingProjectFiles(normalizedResolvedModule);
299
303
  return importedProject ? importedProject.name : void 0;
300
304
  }
@@ -1 +1 @@
1
- {"version":3,"file":"is-tui-enabled.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/tasks-runner/is-tui-enabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAMrD;;GAEG;AACH,wBAAgB,YAAY,YAE3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,MAAM,EACd,mBAAmB,UAAsD,WA4D1E"}
1
+ {"version":3,"file":"is-tui-enabled.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/tasks-runner/is-tui-enabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAMrD;;GAEG;AACH,wBAAgB,YAAY,YAE3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,MAAM,EACd,mBAAmB,UAAsD,WA8D1E"}
@@ -56,6 +56,8 @@ function shouldUseTui(nxJson, nxArgs, skipCapabilityCheck = process.env.NX_TUI_S
56
56
  if (
57
57
  // Interactive TUI doesn't make sense on CI
58
58
  (0, is_ci_1.isCI)() ||
59
+ // Interactive TUI doesn't make sense in an AI agent context
60
+ (0, native_1.isAiAgent)() ||
59
61
  // TODO(@JamesHenry): Remove this check once Windows issues are fixed.
60
62
  // Windows is not working well right now, temporarily disable it on Windows even if it has been specified as enabled
61
63
  isWindows ||