@depup/nx 22.5.4-depup.0 → 22.6.0-depup.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/.eslintrc.json +0 -2
- package/README.md +3 -3
- package/bin/init-local.d.ts.map +1 -1
- package/bin/init-local.js +2 -0
- package/bin/nx.d.ts +1 -1
- package/bin/nx.d.ts.map +1 -1
- package/bin/nx.js +13 -2
- package/changes.json +2 -2
- package/migrations.json +18 -0
- package/package.json +25 -26
- package/plugins/package-json.d.ts +2 -3
- package/plugins/package-json.d.ts.map +1 -1
- package/plugins/package-json.js +9 -9
- package/schemas/nx-schema.json +9 -0
- package/schemas/project-schema.json +5 -0
- package/src/adapter/compat.d.ts +1 -1
- package/src/adapter/compat.d.ts.map +1 -1
- package/src/adapter/compat.js +1 -0
- package/src/ai/constants.d.ts +1 -1
- package/src/ai/constants.d.ts.map +1 -1
- package/src/ai/constants.js +5 -3
- package/src/ai/detect-ai-agent.d.ts +3 -0
- package/src/ai/detect-ai-agent.d.ts.map +1 -0
- package/src/ai/detect-ai-agent.js +12 -0
- package/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts.map +1 -1
- package/src/ai/set-up-ai-agents/set-up-ai-agents.js +155 -47
- package/src/ai/utils.d.ts.map +1 -1
- package/src/ai/utils.js +10 -9
- package/src/analytics/analytics.d.ts +11 -0
- package/src/analytics/analytics.d.ts.map +1 -0
- package/src/analytics/analytics.js +226 -0
- package/src/analytics/index.d.ts +2 -0
- package/src/analytics/index.d.ts.map +1 -0
- package/src/analytics/index.js +11 -0
- package/src/command-line/add/add.d.ts.map +1 -1
- package/src/command-line/add/add.js +2 -0
- package/src/command-line/ai/ai-output.d.ts +47 -0
- package/src/command-line/ai/ai-output.d.ts.map +1 -0
- package/src/command-line/ai/ai-output.js +86 -0
- package/src/command-line/configure-ai-agents/configure-ai-agents.d.ts.map +1 -1
- package/src/command-line/configure-ai-agents/configure-ai-agents.js +111 -9
- package/src/command-line/generate/generate.d.ts.map +1 -1
- package/src/command-line/generate/generate.js +2 -0
- package/src/command-line/import/command-object.d.ts.map +1 -1
- package/src/command-line/import/command-object.js +20 -2
- package/src/command-line/import/import.d.ts +1 -0
- package/src/command-line/import/import.d.ts.map +1 -1
- package/src/command-line/import/import.js +264 -40
- package/src/command-line/import/utils/ai-output.d.ts +94 -0
- package/src/command-line/import/utils/ai-output.d.ts.map +1 -0
- package/src/command-line/import/utils/ai-output.js +209 -0
- package/src/command-line/init/ai-agent-prompts.d.ts.map +1 -1
- package/src/command-line/init/ai-agent-prompts.js +6 -1
- package/src/command-line/init/command-object.d.ts.map +1 -1
- package/src/command-line/init/command-object.js +34 -4
- package/src/command-line/init/implementation/dot-nx/nxw.js +8 -2
- package/src/command-line/init/init-v2.d.ts +7 -0
- package/src/command-line/init/init-v2.d.ts.map +1 -1
- package/src/command-line/init/init-v2.js +187 -19
- package/src/command-line/init/utils/ai-output.d.ts +73 -0
- package/src/command-line/init/utils/ai-output.d.ts.map +1 -0
- package/src/command-line/init/utils/ai-output.js +180 -0
- package/src/command-line/migrate/migrate.d.ts.map +1 -1
- package/src/command-line/migrate/migrate.js +4 -14
- package/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.d.ts.map +1 -1
- package/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.js +12 -6
- package/src/command-line/nx-cloud/login/login.d.ts.map +1 -1
- package/src/command-line/nx-cloud/login/login.js +0 -6
- package/src/command-line/nx-cloud/logout/logout.d.ts.map +1 -1
- package/src/command-line/nx-cloud/logout/logout.js +0 -6
- package/src/command-line/nx-cloud/polygraph/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/polygraph/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/polygraph/command-object.js +15 -0
- package/src/command-line/nx-cloud/polygraph/polygraph.d.ts +5 -0
- package/src/command-line/nx-cloud/polygraph/polygraph.d.ts.map +1 -0
- package/src/command-line/nx-cloud/polygraph/polygraph.js +7 -0
- package/src/command-line/nx-cloud/utils.d.ts.map +1 -1
- package/src/command-line/nx-cloud/utils.js +9 -2
- package/src/command-line/nx-commands.d.ts.map +1 -1
- package/src/command-line/nx-commands.js +20 -9
- package/src/command-line/release/changelog.d.ts.map +1 -1
- package/src/command-line/release/changelog.js +2 -2
- package/src/command-line/release/command-object.d.ts +1 -0
- package/src/command-line/release/command-object.d.ts.map +1 -1
- package/src/command-line/release/command-object.js +4 -0
- package/src/command-line/release/publish.d.ts.map +1 -1
- package/src/command-line/release/publish.js +56 -0
- package/src/command-line/release/utils/semver.d.ts.map +1 -1
- package/src/command-line/release/utils/semver.js +6 -0
- package/src/command-line/release/utils/shared.d.ts.map +1 -1
- package/src/command-line/release/utils/shared.js +14 -4
- package/src/command-line/run/executor-utils.d.ts.map +1 -1
- package/src/command-line/run/executor-utils.js +1 -0
- package/src/command-line/show/command-object.d.ts +15 -1
- package/src/command-line/show/command-object.d.ts.map +1 -1
- package/src/command-line/show/command-object.js +122 -2
- package/src/command-line/show/target.d.ts +5 -0
- package/src/command-line/show/target.d.ts.map +1 -0
- package/src/command-line/show/target.js +726 -0
- package/src/command-line/yargs-utils/shared-options.d.ts +3 -0
- package/src/command-line/yargs-utils/shared-options.d.ts.map +1 -1
- package/src/command-line/yargs-utils/shared-options.js +36 -3
- package/src/config/misc-interfaces.d.ts +2 -0
- package/src/config/misc-interfaces.d.ts.map +1 -1
- package/src/config/nx-json.d.ts +4 -0
- package/src/config/nx-json.d.ts.map +1 -1
- package/src/config/workspace-json-project-json.d.ts +3 -0
- package/src/config/workspace-json-project-json.d.ts.map +1 -1
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.css +1 -1
- package/src/daemon/client/client.d.ts +5 -0
- package/src/daemon/client/client.d.ts.map +1 -1
- package/src/daemon/client/client.js +13 -0
- package/src/daemon/message-types/configure-ai-agents.d.ts +21 -0
- package/src/daemon/message-types/configure-ai-agents.d.ts.map +1 -0
- package/src/daemon/message-types/configure-ai-agents.js +19 -0
- package/src/daemon/server/handle-configure-ai-agents.d.ts +4 -0
- package/src/daemon/server/handle-configure-ai-agents.d.ts.map +1 -0
- package/src/daemon/server/handle-configure-ai-agents.js +94 -0
- package/src/daemon/server/latest-nx.d.ts +11 -0
- package/src/daemon/server/latest-nx.d.ts.map +1 -0
- package/src/daemon/server/latest-nx.js +49 -0
- package/src/daemon/server/nx-console-operations.d.ts +0 -4
- package/src/daemon/server/nx-console-operations.d.ts.map +1 -1
- package/src/daemon/server/nx-console-operations.js +9 -48
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts +1 -0
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts.map +1 -1
- package/src/daemon/server/project-graph-incremental-recomputation.js +13 -1
- package/src/daemon/server/server.d.ts +1 -0
- package/src/daemon/server/server.d.ts.map +1 -1
- package/src/daemon/server/server.js +16 -9
- package/src/daemon/server/shutdown-utils.d.ts.map +1 -1
- package/src/daemon/server/shutdown-utils.js +6 -3
- package/src/devkit-internals.d.ts +1 -0
- package/src/devkit-internals.d.ts.map +1 -1
- package/src/devkit-internals.js +4 -1
- package/src/executors/run-commands/running-tasks.d.ts.map +1 -1
- package/src/executors/run-commands/running-tasks.js +7 -1
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.d.ts +5 -0
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.d.ts.map +1 -1
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +12 -0
- package/src/hasher/hash-plan-inspector.d.ts +11 -3
- package/src/hasher/hash-plan-inspector.d.ts.map +1 -1
- package/src/hasher/hash-plan-inspector.js +19 -3
- package/src/hasher/hash-task.d.ts +1 -1
- package/src/hasher/hash-task.d.ts.map +1 -1
- package/src/hasher/hash-task.js +10 -7
- package/src/hasher/native-task-hasher-impl.d.ts.map +1 -1
- package/src/hasher/native-task-hasher-impl.js +5 -2
- package/src/hasher/task-hasher.d.ts +22 -0
- package/src/hasher/task-hasher.d.ts.map +1 -1
- package/src/hasher/task-hasher.js +35 -10
- package/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.d.ts +3 -0
- package/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.d.ts.map +1 -0
- package/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.js +16 -0
- package/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.d.ts +3 -0
- package/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.d.ts.map +1 -0
- package/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.js +16 -0
- package/src/migrations/update-22-6-0/enable-analytics-prompt.d.ts +3 -0
- package/src/migrations/update-22-6-0/enable-analytics-prompt.d.ts.map +1 -0
- package/src/migrations/update-22-6-0/enable-analytics-prompt.js +23 -0
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts +1 -1
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts.map +1 -1
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.js +3 -1
- package/src/native/index.d.ts +619 -0
- package/src/native/native-bindings.js +338 -116
- package/src/native/nx.wasi.cjs +45 -55
- package/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/nx-cloud/update-manager.d.ts +4 -1
- package/src/nx-cloud/update-manager.d.ts.map +1 -1
- package/src/nx-cloud/update-manager.js +19 -6
- package/src/nx-cloud/utilities/axios.d.ts +4 -2
- package/src/nx-cloud/utilities/axios.d.ts.map +1 -1
- package/src/nx-cloud/utilities/axios.js +2 -9
- package/src/plugins/js/index.d.ts.map +1 -1
- package/src/plugins/js/index.js +42 -6
- package/src/plugins/js/lock-file/utils/pnpm-normalizer.js +1 -0
- package/src/plugins/package-json/create-nodes.js +2 -2
- package/src/project-graph/build-project-graph.js +5 -1
- package/src/project-graph/nx-deps-cache.d.ts +1 -1
- package/src/project-graph/nx-deps-cache.d.ts.map +1 -1
- package/src/project-graph/nx-deps-cache.js +17 -3
- package/src/project-graph/plugins/isolation/isolated-plugin.d.ts +2 -0
- package/src/project-graph/plugins/isolation/isolated-plugin.d.ts.map +1 -1
- package/src/project-graph/plugins/isolation/isolated-plugin.js +5 -0
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts +18 -0
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts.map +1 -1
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.js +39 -0
- package/src/project-graph/plugins/isolation/plugin-worker.d.ts +1 -1
- package/src/project-graph/plugins/isolation/plugin-worker.d.ts.map +1 -1
- package/src/project-graph/plugins/isolation/plugin-worker.js +3 -3
- package/src/project-graph/plugins/loaded-nx-plugin.d.ts +10 -0
- package/src/project-graph/plugins/loaded-nx-plugin.d.ts.map +1 -1
- package/src/project-graph/plugins/loaded-nx-plugin.js +17 -2
- package/src/project-graph/project-graph.d.ts.map +1 -1
- package/src/project-graph/project-graph.js +58 -15
- package/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts +70 -0
- package/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts.map +1 -0
- package/src/project-graph/utils/project-configuration/name-substitution-manager.js +427 -0
- package/src/project-graph/utils/project-configuration/source-maps.d.ts +70 -0
- package/src/project-graph/utils/project-configuration/source-maps.d.ts.map +1 -0
- package/src/project-graph/utils/project-configuration/source-maps.js +94 -0
- package/src/project-graph/utils/project-configuration-utils.d.ts +5 -3
- package/src/project-graph/utils/project-configuration-utils.d.ts.map +1 -1
- package/src/project-graph/utils/project-configuration-utils.js +55 -38
- package/src/tasks-runner/cache.d.ts +0 -2
- package/src/tasks-runner/cache.d.ts.map +1 -1
- package/src/tasks-runner/cache.js +3 -18
- package/src/tasks-runner/forked-process-task-runner.d.ts.map +1 -1
- package/src/tasks-runner/forked-process-task-runner.js +1 -19
- package/src/tasks-runner/life-cycle.d.ts +2 -0
- package/src/tasks-runner/life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycle.js +7 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts +1 -2
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +13 -12
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts +1 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle.js +10 -5
- package/src/tasks-runner/life-cycles/task-telemetry-life-cycle.d.ts +10 -0
- package/src/tasks-runner/life-cycles/task-telemetry-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/task-telemetry-life-cycle.js +42 -0
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +32 -23
- package/src/tasks-runner/pseudo-terminal.js +1 -22
- package/src/tasks-runner/run-command.d.ts.map +1 -1
- package/src/tasks-runner/run-command.js +24 -18
- package/src/tasks-runner/running-tasks/node-child-process.d.ts.map +1 -1
- package/src/tasks-runner/running-tasks/node-child-process.js +6 -37
- package/src/tasks-runner/running-tasks/output-prefix.d.ts +14 -0
- package/src/tasks-runner/running-tasks/output-prefix.d.ts.map +1 -0
- package/src/tasks-runner/running-tasks/output-prefix.js +62 -0
- package/src/tasks-runner/task-graph-utils.d.ts +5 -0
- package/src/tasks-runner/task-graph-utils.d.ts.map +1 -1
- package/src/tasks-runner/task-graph-utils.js +28 -0
- package/src/tasks-runner/task-io-service.d.ts +10 -10
- package/src/tasks-runner/task-io-service.d.ts.map +1 -1
- package/src/tasks-runner/task-io-service.js +14 -38
- package/src/tasks-runner/task-orchestrator.d.ts +27 -4
- package/src/tasks-runner/task-orchestrator.d.ts.map +1 -1
- package/src/tasks-runner/task-orchestrator.js +366 -162
- package/src/tasks-runner/tasks-runner.d.ts +1 -1
- package/src/tasks-runner/tasks-runner.d.ts.map +1 -1
- package/src/tasks-runner/tasks-schedule.d.ts.map +1 -1
- package/src/tasks-runner/tasks-schedule.js +13 -2
- package/src/tasks-runner/utils.d.ts.map +1 -1
- package/src/tasks-runner/utils.js +1 -2
- package/src/utils/analytics-prompt.d.ts +13 -0
- package/src/utils/analytics-prompt.d.ts.map +1 -0
- package/src/utils/analytics-prompt.js +135 -0
- package/src/utils/catalog/manager-factory.d.ts.map +1 -1
- package/src/utils/catalog/manager-factory.js +3 -0
- package/src/utils/catalog/manager.d.ts +4 -4
- package/src/utils/catalog/manager.d.ts.map +1 -1
- package/src/utils/catalog/manager.js +11 -0
- package/src/utils/catalog/pnpm-manager.d.ts +3 -4
- package/src/utils/catalog/pnpm-manager.d.ts.map +1 -1
- package/src/utils/catalog/pnpm-manager.js +57 -68
- package/src/utils/catalog/types.d.ts +7 -0
- package/src/utils/catalog/types.d.ts.map +1 -1
- package/src/utils/catalog/yarn-manager.d.ts +22 -0
- package/src/utils/catalog/yarn-manager.d.ts.map +1 -0
- package/src/utils/catalog/yarn-manager.js +249 -0
- package/src/utils/child-process.d.ts.map +1 -1
- package/src/utils/child-process.js +2 -22
- package/src/utils/exit-codes.d.ts +6 -0
- package/src/utils/exit-codes.d.ts.map +1 -1
- package/src/utils/exit-codes.js +40 -0
- package/src/utils/machine-id-cache.d.ts +6 -0
- package/src/utils/machine-id-cache.d.ts.map +1 -0
- package/src/utils/machine-id-cache.js +23 -0
- package/src/utils/nx-console-prompt.js +2 -2
- package/src/utils/output.d.ts +1 -0
- package/src/utils/output.d.ts.map +1 -1
- package/src/utils/output.js +4 -0
- package/src/utils/package-manager.d.ts.map +1 -1
- package/src/utils/package-manager.js +3 -1
- package/src/utils/params.d.ts +4 -1
- package/src/utils/params.d.ts.map +1 -1
- package/src/utils/params.js +30 -3
- package/src/utils/perf-hooks.d.ts +19 -0
- package/src/utils/perf-logging.js +34 -2
- package/src/utils/plugin-cache-utils.d.ts +74 -0
- package/src/utils/plugin-cache-utils.d.ts.map +1 -0
- package/src/utils/plugin-cache-utils.js +202 -0
- package/src/utils/split-target.d.ts +2 -1
- package/src/utils/split-target.d.ts.map +1 -1
- package/src/utils/split-target.js +11 -9
- package/src/utils/write-formatted-json-file.d.ts +7 -0
- package/src/utils/write-formatted-json-file.d.ts.map +1 -0
- package/src/utils/write-formatted-json-file.js +23 -0
package/.eslintrc.json
CHANGED
|
@@ -144,8 +144,6 @@
|
|
|
144
144
|
"@nx/conformance",
|
|
145
145
|
// Nx Docker plugin conditionally available dynamically at runtime
|
|
146
146
|
"@nx/docker",
|
|
147
|
-
// Only used in test-utils at the time of writing
|
|
148
|
-
"@ltd/j-toml",
|
|
149
147
|
// Used in WASI browser implementation (nx.wasi-browser.js)
|
|
150
148
|
"@napi-rs/wasm-runtime"
|
|
151
149
|
]
|
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/nx
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [nx](https://www.npmjs.com/package/nx) @ 22.
|
|
17
|
-
| Processed | 2026-03-
|
|
16
|
+
| Original | [nx](https://www.npmjs.com/package/nx) @ 22.6.0 |
|
|
17
|
+
| Processed | 2026-03-18 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
19
|
| Deps updated | 29 |
|
|
20
20
|
|
|
@@ -35,7 +35,7 @@ npm install @depup/nx
|
|
|
35
35
|
| enquirer | ~2.3.6 | ^2.4.1 |
|
|
36
36
|
| figures | 3.2.0 | ^6.1.0 |
|
|
37
37
|
| flat | ^5.0.2 | ^6.0.1 |
|
|
38
|
-
| jest-diff | ^30.0.2 | ^30.
|
|
38
|
+
| jest-diff | ^30.0.2 | ^30.3.0 |
|
|
39
39
|
| jsonc-parser | 3.2.0 | ^3.3.1 |
|
|
40
40
|
| lines-and-columns | 2.0.3 | ^2.0.4 |
|
|
41
41
|
| npm-run-path | ^4.0.1 | ^6.0.0 |
|
package/bin/init-local.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-local.d.ts","sourceRoot":"","sources":["../../../../packages/nx/bin/init-local.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"init-local.d.ts","sourceRoot":"","sources":["../../../../packages/nx/bin/init-local.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAOxE;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,SAAS,EAAE,oBAAoB,iBA+C9D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,YA6BvD"}
|
package/bin/init-local.js
CHANGED
|
@@ -8,6 +8,7 @@ const strip_indents_1 = require("../src/utils/strip-indents");
|
|
|
8
8
|
const client_1 = require("../src/daemon/client/client");
|
|
9
9
|
const enquirer_1 = require("enquirer");
|
|
10
10
|
const output_1 = require("../src/utils/output");
|
|
11
|
+
const analytics_1 = require("../src/analytics");
|
|
11
12
|
/**
|
|
12
13
|
* Nx is being run inside a workspace.
|
|
13
14
|
*
|
|
@@ -56,6 +57,7 @@ async function initLocal(workspace) {
|
|
|
56
57
|
}
|
|
57
58
|
catch (e) {
|
|
58
59
|
console.error(e.message);
|
|
60
|
+
(0, analytics_1.flushAnalytics)();
|
|
59
61
|
process.exit(1);
|
|
60
62
|
}
|
|
61
63
|
}
|
package/bin/nx.d.ts
CHANGED
package/bin/nx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nx.d.ts","sourceRoot":"","sources":["../../../../packages/nx/bin/nx.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"nx.d.ts","sourceRoot":"","sources":["../../../../packages/nx/bin/nx.ts"],"names":[],"mappings":";AAiCA,OAAO,2BAA2B,CAAC"}
|
package/bin/nx.js
CHANGED
|
@@ -23,6 +23,9 @@ const perf_hooks_1 = require("perf_hooks");
|
|
|
23
23
|
const workspace_context_1 = require("../src/utils/workspace-context");
|
|
24
24
|
const client_1 = require("../src/daemon/client/client");
|
|
25
25
|
const db_connection_1 = require("../src/utils/db-connection");
|
|
26
|
+
const analytics_prompt_1 = require("../src/utils/analytics-prompt");
|
|
27
|
+
const analytics_1 = require("../src/analytics");
|
|
28
|
+
require("../src/utils/perf-logging");
|
|
26
29
|
async function main() {
|
|
27
30
|
if (process.argv[2] !== 'report' &&
|
|
28
31
|
process.argv[2] !== '--version' &&
|
|
@@ -30,7 +33,6 @@ async function main() {
|
|
|
30
33
|
process.argv[2] !== 'reset') {
|
|
31
34
|
(0, assert_supported_platform_1.assertSupportedPlatform)();
|
|
32
35
|
}
|
|
33
|
-
require('nx/src/utils/perf-logging');
|
|
34
36
|
const workspace = (0, find_workspace_root_1.findWorkspaceRoot)(process.cwd());
|
|
35
37
|
if (workspace) {
|
|
36
38
|
perf_hooks_1.performance.mark('loading dotenv files:start');
|
|
@@ -68,12 +70,18 @@ async function main() {
|
|
|
68
70
|
if (process.argv[2] === '--version') {
|
|
69
71
|
handleNxVersionCommand(LOCAL_NX_VERSION, GLOBAL_NX_VERSION);
|
|
70
72
|
}
|
|
71
|
-
if (!workspace) {
|
|
73
|
+
if (!workspace && !isNxCloudCommand(process.argv[2])) {
|
|
72
74
|
handleNoWorkspace(GLOBAL_NX_VERSION);
|
|
73
75
|
}
|
|
74
76
|
if (!localNx && !isNxCloudCommand(process.argv[2])) {
|
|
75
77
|
handleMissingLocalInstallation(workspace ? workspace.dir : null);
|
|
76
78
|
}
|
|
79
|
+
// Prompt for analytics preference if not set
|
|
80
|
+
try {
|
|
81
|
+
await (0, analytics_prompt_1.ensureAnalyticsPreferenceSet)();
|
|
82
|
+
}
|
|
83
|
+
catch { }
|
|
84
|
+
await (0, analytics_1.startAnalytics)();
|
|
77
85
|
// this file is already in the local workspace
|
|
78
86
|
if (isNxCloudCommand(process.argv[2])) {
|
|
79
87
|
// nx-cloud commands can run without local Nx installation
|
|
@@ -156,6 +164,8 @@ function isNxCloudCommand(command) {
|
|
|
156
164
|
'view-logs',
|
|
157
165
|
'fix-ci',
|
|
158
166
|
'record',
|
|
167
|
+
'polygraph',
|
|
168
|
+
'download-cloud-client',
|
|
159
169
|
];
|
|
160
170
|
return nxCloudCommands.includes(command);
|
|
161
171
|
}
|
|
@@ -248,5 +258,6 @@ process.on('exit', () => {
|
|
|
248
258
|
});
|
|
249
259
|
main().catch((error) => {
|
|
250
260
|
console.error(error);
|
|
261
|
+
(0, analytics_1.flushAnalytics)();
|
|
251
262
|
process.exit(1);
|
|
252
263
|
});
|
package/changes.json
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"jest-diff": {
|
|
60
60
|
"from": "^30.0.2",
|
|
61
|
-
"to": "^30.
|
|
61
|
+
"to": "^30.3.0"
|
|
62
62
|
},
|
|
63
63
|
"jsonc-parser": {
|
|
64
64
|
"from": "3.2.0",
|
|
@@ -117,6 +117,6 @@
|
|
|
117
117
|
"to": "^22.0.0"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
"timestamp": "2026-03-
|
|
120
|
+
"timestamp": "2026-03-18T16:30:51.373Z",
|
|
121
121
|
"totalUpdated": 29
|
|
122
122
|
}
|
package/migrations.json
CHANGED
|
@@ -137,11 +137,29 @@
|
|
|
137
137
|
"description": "Updates the nx wrapper.",
|
|
138
138
|
"implementation": "./src/migrations/update-22-1-0/update-nx-wrapper"
|
|
139
139
|
},
|
|
140
|
+
"22-6-1-add-claude-worktrees-to-git-ignore": {
|
|
141
|
+
"cli": "nx",
|
|
142
|
+
"version": "22.6.0-beta.10",
|
|
143
|
+
"description": "Adds .claude/worktrees to .gitignore",
|
|
144
|
+
"implementation": "./src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore"
|
|
145
|
+
},
|
|
140
146
|
"22-7-0-add-polygraph-to-git-ignore": {
|
|
141
147
|
"cli": "nx",
|
|
142
148
|
"version": "22.7.0-beta.0",
|
|
143
149
|
"description": "Adds .nx/polygraph to .gitignore",
|
|
144
150
|
"implementation": "./src/migrations/update-22-7-0/add-polygraph-to-git-ignore"
|
|
151
|
+
},
|
|
152
|
+
"22-6-0-add-claude-settings-local-to-git-ignore": {
|
|
153
|
+
"cli": "nx",
|
|
154
|
+
"version": "22.6.0-rc.0",
|
|
155
|
+
"description": "Adds .claude/settings.local.json to .gitignore",
|
|
156
|
+
"implementation": "./src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore"
|
|
157
|
+
},
|
|
158
|
+
"22-6-0-enable-analytics-prompt": {
|
|
159
|
+
"cli": "nx",
|
|
160
|
+
"version": "22.6.0-beta.11",
|
|
161
|
+
"description": "Prompts to enable usage analytics",
|
|
162
|
+
"implementation": "./src/migrations/update-22-6-0/enable-analytics-prompt"
|
|
145
163
|
}
|
|
146
164
|
}
|
|
147
165
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/nx",
|
|
3
|
-
"version": "22.
|
|
4
|
-
"
|
|
5
|
-
"description": "[DepUp] The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
|
3
|
+
"version": "22.6.0-depup.0",
|
|
4
|
+
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration. (with updated dependencies)",
|
|
6
5
|
"repository": {
|
|
7
6
|
"type": "git",
|
|
8
7
|
"url": "https://github.com/nrwl/nx.git",
|
|
9
8
|
"directory": "packages/nx"
|
|
10
9
|
},
|
|
11
10
|
"keywords": [
|
|
12
|
-
"depup",
|
|
13
|
-
"dependency-bumped",
|
|
14
|
-
"updated-deps",
|
|
15
11
|
"nx",
|
|
12
|
+
"depup",
|
|
13
|
+
"updated-dependencies",
|
|
14
|
+
"security",
|
|
15
|
+
"latest",
|
|
16
|
+
"patched",
|
|
16
17
|
"Monorepo",
|
|
17
18
|
"Angular",
|
|
18
19
|
"React",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
},
|
|
39
40
|
"homepage": "https://nx.dev",
|
|
40
41
|
"dependencies": {
|
|
42
|
+
"@ltd/j-toml": "^1.38.0",
|
|
41
43
|
"@napi-rs/wasm-runtime": "^1.1.1",
|
|
42
44
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
43
45
|
"@yarnpkg/parsers": "^3.0.3",
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
"flat": "^6.0.1",
|
|
56
58
|
"front-matter": "^4.0.2",
|
|
57
59
|
"ignore": "^7.0.5",
|
|
58
|
-
"jest-diff": "^30.
|
|
60
|
+
"jest-diff": "^30.3.0",
|
|
59
61
|
"jsonc-parser": "^3.3.1",
|
|
60
62
|
"lines-and-columns": "^2.0.4",
|
|
61
63
|
"minimatch": "10.2.4",
|
|
@@ -88,16 +90,16 @@
|
|
|
88
90
|
}
|
|
89
91
|
},
|
|
90
92
|
"optionalDependencies": {
|
|
91
|
-
"@nx/nx-darwin-arm64": "22.
|
|
92
|
-
"@nx/nx-darwin-x64": "22.
|
|
93
|
-
"@nx/nx-freebsd-x64": "22.
|
|
94
|
-
"@nx/nx-linux-arm-gnueabihf": "22.
|
|
95
|
-
"@nx/nx-linux-arm64-gnu": "22.
|
|
96
|
-
"@nx/nx-linux-arm64-musl": "22.
|
|
97
|
-
"@nx/nx-linux-x64-gnu": "22.
|
|
98
|
-
"@nx/nx-linux-x64-musl": "22.
|
|
99
|
-
"@nx/nx-win32-arm64-msvc": "22.
|
|
100
|
-
"@nx/nx-win32-x64-msvc": "22.
|
|
93
|
+
"@nx/nx-darwin-arm64": "22.6.0",
|
|
94
|
+
"@nx/nx-darwin-x64": "22.6.0",
|
|
95
|
+
"@nx/nx-freebsd-x64": "22.6.0",
|
|
96
|
+
"@nx/nx-linux-arm-gnueabihf": "22.6.0",
|
|
97
|
+
"@nx/nx-linux-arm64-gnu": "22.6.0",
|
|
98
|
+
"@nx/nx-linux-arm64-musl": "22.6.0",
|
|
99
|
+
"@nx/nx-linux-x64-gnu": "22.6.0",
|
|
100
|
+
"@nx/nx-linux-x64-musl": "22.6.0",
|
|
101
|
+
"@nx/nx-win32-arm64-msvc": "22.6.0",
|
|
102
|
+
"@nx/nx-win32-x64-msvc": "22.6.0"
|
|
101
103
|
},
|
|
102
104
|
"nx-migrations": {
|
|
103
105
|
"migrations": "./migrations.json",
|
|
@@ -107,6 +109,8 @@
|
|
|
107
109
|
"@nx/eslint",
|
|
108
110
|
"@nx/workspace",
|
|
109
111
|
"@nx/angular",
|
|
112
|
+
"@nx/angular-rspack",
|
|
113
|
+
"@nx/angular-rspack-compiler",
|
|
110
114
|
"@nx/jest",
|
|
111
115
|
"@nx/cypress",
|
|
112
116
|
"@nx/detox",
|
|
@@ -152,9 +156,6 @@
|
|
|
152
156
|
"generators": "./generators.json",
|
|
153
157
|
"executors": "./executors.json",
|
|
154
158
|
"builders": "./executors.json",
|
|
155
|
-
"publishConfig": {
|
|
156
|
-
"access": "public"
|
|
157
|
-
},
|
|
158
159
|
"napi": {
|
|
159
160
|
"binaryName": "nx",
|
|
160
161
|
"packageName": "@nx/nx",
|
|
@@ -178,9 +179,7 @@
|
|
|
178
179
|
"main": "./bin/nx.js",
|
|
179
180
|
"types": "./bin/nx.d.ts",
|
|
180
181
|
"type": "commonjs",
|
|
181
|
-
"scripts": {
|
|
182
|
-
"postinstall": "node ./bin/post-install || exit 0"
|
|
183
|
-
},
|
|
182
|
+
"scripts": {},
|
|
184
183
|
"depup": {
|
|
185
184
|
"changes": {
|
|
186
185
|
"@napi-rs/wasm-runtime": {
|
|
@@ -241,7 +240,7 @@
|
|
|
241
240
|
},
|
|
242
241
|
"jest-diff": {
|
|
243
242
|
"from": "^30.0.2",
|
|
244
|
-
"to": "^30.
|
|
243
|
+
"to": "^30.3.0"
|
|
245
244
|
},
|
|
246
245
|
"jsonc-parser": {
|
|
247
246
|
"from": "3.2.0",
|
|
@@ -302,8 +301,8 @@
|
|
|
302
301
|
},
|
|
303
302
|
"depsUpdated": 29,
|
|
304
303
|
"originalPackage": "nx",
|
|
305
|
-
"originalVersion": "22.
|
|
306
|
-
"processedAt": "2026-03-
|
|
304
|
+
"originalVersion": "22.6.0",
|
|
305
|
+
"processedAt": "2026-03-18T16:30:59.536Z",
|
|
307
306
|
"smokeTest": "failed"
|
|
308
307
|
}
|
|
309
308
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ProjectConfiguration } from '../src/config/workspace-json-project-json';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
2
|
+
import { PluginCache } from '../src/utils/plugin-cache-utils';
|
|
3
|
+
export type PackageJsonConfigurationCache = PluginCache<ProjectConfiguration>;
|
|
5
4
|
export declare function readPackageJsonConfigurationCache(): PackageJsonConfigurationCache;
|
|
6
5
|
//# sourceMappingURL=package-json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../../../packages/nx/plugins/package-json.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../../../packages/nx/plugins/package-json.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,MAAM,MAAM,6BAA6B,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;AAM9E,wBAAgB,iCAAiC,IAAI,6BAA6B,CAGjF"}
|
package/plugins/package-json.js
CHANGED
|
@@ -7,17 +7,17 @@ const package_json_1 = require("../src/plugins/package-json");
|
|
|
7
7
|
const cache_directory_1 = require("../src/utils/cache-directory");
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
const fileutils_1 = require("../src/utils/fileutils");
|
|
10
|
+
const plugin_cache_utils_1 = require("../src/utils/plugin-cache-utils");
|
|
10
11
|
const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, 'package-json.hash');
|
|
12
|
+
let packageJsonPluginCache = null;
|
|
11
13
|
function readPackageJsonConfigurationCache() {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
catch (e) {
|
|
16
|
-
return {};
|
|
17
|
-
}
|
|
14
|
+
packageJsonPluginCache = new plugin_cache_utils_1.PluginCache(cachePath);
|
|
15
|
+
return packageJsonPluginCache;
|
|
18
16
|
}
|
|
19
|
-
function writeCache(
|
|
20
|
-
(
|
|
17
|
+
function writeCache() {
|
|
18
|
+
if (packageJsonPluginCache) {
|
|
19
|
+
packageJsonPluginCache.writeToDisk(cachePath);
|
|
20
|
+
}
|
|
21
21
|
}
|
|
22
22
|
const plugin = {
|
|
23
23
|
name: 'nx-all-package-jsons-plugin',
|
|
@@ -28,7 +28,7 @@ const plugin = {
|
|
|
28
28
|
const patterns = (0, package_json_1.buildPackageJsonPatterns)(context.workspaceRoot, (f) => (0, fileutils_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, f)));
|
|
29
29
|
const isInPackageJsonWorkspaces = (0, package_json_1.buildPackageJsonWorkspacesMatcher)(patterns);
|
|
30
30
|
const result = (0, plugins_1.createNodesFromFiles)((packageJsonPath) => (0, package_json_1.createNodeFromPackageJson)(packageJsonPath, workspace_root_1.workspaceRoot, cache, isInPackageJsonWorkspaces(packageJsonPath)), configFiles, options, context);
|
|
31
|
-
writeCache(
|
|
31
|
+
writeCache();
|
|
32
32
|
return result;
|
|
33
33
|
},
|
|
34
34
|
],
|
package/schemas/nx-schema.json
CHANGED
|
@@ -142,6 +142,10 @@
|
|
|
142
142
|
"type": "boolean",
|
|
143
143
|
"description": "Specifies whether to add inference plugins when generating new projects."
|
|
144
144
|
},
|
|
145
|
+
"analytics": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"description": "Set this to true to allow Nx to collect usage analytics."
|
|
148
|
+
},
|
|
145
149
|
"release": {
|
|
146
150
|
"type": "object",
|
|
147
151
|
"description": "Configuration for the nx release commands.",
|
|
@@ -560,8 +564,13 @@
|
|
|
560
564
|
"fileset": {
|
|
561
565
|
"type": "string",
|
|
562
566
|
"description": "A glob"
|
|
567
|
+
},
|
|
568
|
+
"dependencies": {
|
|
569
|
+
"type": "boolean",
|
|
570
|
+
"description": "Include files matching the fileset for all the project dependencies of this target."
|
|
563
571
|
}
|
|
564
572
|
},
|
|
573
|
+
"required": ["fileset"],
|
|
565
574
|
"additionalProperties": false
|
|
566
575
|
},
|
|
567
576
|
{
|
|
@@ -216,8 +216,13 @@
|
|
|
216
216
|
"fileset": {
|
|
217
217
|
"type": "string",
|
|
218
218
|
"description": "A glob used to determine a fileset."
|
|
219
|
+
},
|
|
220
|
+
"dependencies": {
|
|
221
|
+
"type": "boolean",
|
|
222
|
+
"description": "Include files matching the fileset for all the project dependencies of this target."
|
|
219
223
|
}
|
|
220
224
|
},
|
|
225
|
+
"required": ["fileset"],
|
|
221
226
|
"additionalProperties": false
|
|
222
227
|
},
|
|
223
228
|
{
|
package/src/adapter/compat.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const allowedProjectExtensions: readonly ["tags", "implicitDependencies", "configFilePath", "$schema", "generators", "namedInputs", "name", "files", "root", "sourceRoot", "projectType", "release", "includedScripts", "metadata", "owners", "nxCloudImplicitDependencies"];
|
|
2
|
-
export declare const allowedWorkspaceExtensions: readonly ["$schema", "implicitDependencies", "affected", "defaultBase", "tasksRunnerOptions", "workspaceLayout", "plugins", "targetDefaults", "files", "generators", "namedInputs", "extends", "cli", "pluginsConfig", "defaultProject", "installation", "release", "nxCloudAccessToken", "nxCloudId", "nxCloudUrl", "nxCloudEncryptionKey", "parallel", "cacheDirectory", "useDaemonProcess", "useInferencePlugins", "neverConnectToCloud", "sync", "useLegacyCache", "maxCacheSize", "tui", "owners"];
|
|
2
|
+
export declare const allowedWorkspaceExtensions: readonly ["$schema", "implicitDependencies", "affected", "defaultBase", "tasksRunnerOptions", "workspaceLayout", "plugins", "targetDefaults", "files", "generators", "namedInputs", "extends", "cli", "pluginsConfig", "defaultProject", "installation", "release", "nxCloudAccessToken", "nxCloudId", "nxCloudUrl", "nxCloudEncryptionKey", "parallel", "cacheDirectory", "useDaemonProcess", "useInferencePlugins", "neverConnectToCloud", "analytics", "sync", "useLegacyCache", "maxCacheSize", "tui", "owners"];
|
|
3
3
|
//# sourceMappingURL=compat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/compat.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,wBAAwB,8OAiB3B,CAAC;AAQX,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/compat.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,wBAAwB,8OAiB3B,CAAC;AAQX,eAAO,MAAM,0BAA0B,sfAiC7B,CAAC"}
|
package/src/adapter/compat.js
CHANGED
package/src/ai/constants.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare function geminiSettingsPath(root: string): string;
|
|
|
7
7
|
export declare function claudeMdPath(root: string): string;
|
|
8
8
|
export declare function claudeMcpJsonPath(root: string): string;
|
|
9
9
|
export declare function opencodeMcpPath(root: string): string;
|
|
10
|
-
export declare
|
|
10
|
+
export declare function codexConfigTomlPath(root: string): string;
|
|
11
11
|
export declare const nxRulesMarkerCommentStart = "<!-- nx configuration start-->";
|
|
12
12
|
export declare const nxRulesMarkerCommentDescription = "<!-- Leave the start & end comments to automatically receive updates. -->";
|
|
13
13
|
export declare const nxRulesMarkerCommentEnd = "<!-- nx configuration end-->";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/ai/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/ai/constants.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAE5C,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAOjE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,yBAAyB,mCAAmC,CAAC;AAC1E,eAAO,MAAM,+BAA+B,8EAA8E,CAAC;AAC3H,eAAO,MAAM,uBAAuB,iCAAiC,CAAC;AACtE,eAAO,MAAM,UAAU,QAGtB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,oBAAoB,GAAI,SAAS,wBAAwB,WAIrE,CAAC;AAEF,eAAO,MAAM,eAAe,6BAA2B,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAQ5D"}
|
package/src/ai/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nxMcpTomlHeader = exports.getAgentRulesWrapped = exports.rulesRegex = exports.nxRulesMarkerCommentEnd = exports.nxRulesMarkerCommentDescription = exports.nxRulesMarkerCommentStart =
|
|
3
|
+
exports.nxMcpTomlHeader = exports.getAgentRulesWrapped = exports.rulesRegex = exports.nxRulesMarkerCommentEnd = exports.nxRulesMarkerCommentDescription = exports.nxRulesMarkerCommentStart = void 0;
|
|
4
4
|
exports.agentsMdPath = agentsMdPath;
|
|
5
5
|
exports.geminiMdPath = geminiMdPath;
|
|
6
6
|
exports.parseGeminiSettings = parseGeminiSettings;
|
|
@@ -8,8 +8,8 @@ exports.geminiSettingsPath = geminiSettingsPath;
|
|
|
8
8
|
exports.claudeMdPath = claudeMdPath;
|
|
9
9
|
exports.claudeMcpJsonPath = claudeMcpJsonPath;
|
|
10
10
|
exports.opencodeMcpPath = opencodeMcpPath;
|
|
11
|
+
exports.codexConfigTomlPath = codexConfigTomlPath;
|
|
11
12
|
exports.getNxMcpTomlConfig = getNxMcpTomlConfig;
|
|
12
|
-
const os_1 = require("os");
|
|
13
13
|
const path_1 = require("path");
|
|
14
14
|
const semver_1 = require("semver");
|
|
15
15
|
const fileutils_1 = require("../utils/fileutils");
|
|
@@ -41,7 +41,9 @@ function claudeMcpJsonPath(root) {
|
|
|
41
41
|
function opencodeMcpPath(root) {
|
|
42
42
|
return (0, path_1.join)(root, 'opencode.json');
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
function codexConfigTomlPath(root) {
|
|
45
|
+
return (0, path_1.join)(root, '.codex', 'config.toml');
|
|
46
|
+
}
|
|
45
47
|
exports.nxRulesMarkerCommentStart = `<!-- nx configuration start-->`;
|
|
46
48
|
exports.nxRulesMarkerCommentDescription = `<!-- Leave the start & end comments to automatically receive updates. -->`;
|
|
47
49
|
exports.nxRulesMarkerCommentEnd = `<!-- nx configuration end-->`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-ai-agent.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/ai/detect-ai-agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAmB,MAAM,SAAS,CAAC;AAEjD,wBAAgB,aAAa,IAAI,KAAK,GAAG,IAAI,CAM5C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.detectAiAgent = detectAiAgent;
|
|
4
|
+
const native_1 = require("../native");
|
|
5
|
+
const utils_1 = require("./utils");
|
|
6
|
+
function detectAiAgent() {
|
|
7
|
+
const detected = (0, native_1.detectAiAgent)();
|
|
8
|
+
if (detected && utils_1.supportedAgents.includes(detected)) {
|
|
9
|
+
return detected;
|
|
10
|
+
}
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-up-ai-agents.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/ai/set-up-ai-agents/set-up-ai-agents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-up-ai-agents.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/ai/set-up-ai-agents/set-up-ai-agents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAS7C,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAuB5B,OAAO,EACL,sCAAsC,EACtC,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC,CAAC;AAmCF,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,4BAA4B,EACrC,KAAK,UAAQ,GACZ,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAmC5D;AAaD,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAuQ7C;AAuRD,eAAe,sBAAsB,CAAC"}
|