@ohos-ports/nx 23.2.0-beta.0 → 23.2.1-beta.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/README.md +13 -60
- package/local-natives.js +59 -0
- package/package.json +9 -534
- package/LICENSE +0 -22
- package/dist/bin/init-local.d.ts +0 -8
- package/dist/bin/init-local.js +0 -186
- package/dist/bin/nx-cloud.d.ts +0 -3
- package/dist/bin/nx-cloud.js +0 -47
- package/dist/bin/nx.d.ts +0 -3
- package/dist/bin/nx.js +0 -341
- package/dist/bin/post-install.d.ts +0 -1
- package/dist/bin/post-install.js +0 -52
- package/dist/bin/run-executor.d.ts +0 -1
- package/dist/bin/run-executor.js +0 -66
- package/dist/plugins/package-json.d.ts +0 -4
- package/dist/plugins/package-json.js +0 -40
- package/dist/presets/core.json +0 -1
- package/dist/presets/npm.json +0 -7
- package/dist/release/changelog-renderer/index.d.ts +0 -110
- package/dist/release/changelog-renderer/index.js +0 -381
- package/dist/release/index.d.ts +0 -4
- package/dist/release/index.js +0 -13
- package/dist/src/adapter/angular-json.d.ts +0 -10
- package/dist/src/adapter/angular-json.js +0 -129
- package/dist/src/adapter/compat.d.ts +0 -2
- package/dist/src/adapter/compat.js +0 -154
- package/dist/src/adapter/ngcli-adapter.d.ts +0 -105
- package/dist/src/adapter/ngcli-adapter.js +0 -1083
- package/dist/src/adapter/rxjs-for-await.d.ts +0 -109
- package/dist/src/adapter/rxjs-for-await.js +0 -362
- package/dist/src/ai/clone-ai-config-repo.d.ts +0 -11
- package/dist/src/ai/clone-ai-config-repo.js +0 -155
- package/dist/src/ai/configure-ai-agents-disclaimer.d.ts +0 -5
- package/dist/src/ai/configure-ai-agents-disclaimer.js +0 -31
- package/dist/src/ai/constants.d.ts +0 -46
- package/dist/src/ai/constants.js +0 -92
- package/dist/src/ai/detect-ai-agent.d.ts +0 -2
- package/dist/src/ai/detect-ai-agent.js +0 -12
- package/dist/src/ai/set-up-ai-agents/get-agent-rules.d.ts +0 -5
- package/dist/src/ai/set-up-ai-agents/get-agent-rules.js +0 -26
- package/dist/src/ai/set-up-ai-agents/schema.d.ts +0 -11
- package/dist/src/ai/set-up-ai-agents/schema.json +0 -34
- package/dist/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts +0 -10
- package/dist/src/ai/set-up-ai-agents/set-up-ai-agents.js +0 -578
- package/dist/src/ai/utils.d.ts +0 -33
- package/dist/src/ai/utils.js +0 -246
- package/dist/src/analytics/analytics.d.ts +0 -16
- package/dist/src/analytics/analytics.js +0 -246
- package/dist/src/analytics/index.d.ts +0 -1
- package/dist/src/analytics/index.js +0 -12
- package/dist/src/command-line/add/add.d.ts +0 -3
- package/dist/src/command-line/add/add.js +0 -138
- package/dist/src/command-line/add/command-object.d.ts +0 -8
- package/dist/src/command-line/add/command-object.js +0 -28
- package/dist/src/command-line/add/completion.d.ts +0 -1
- package/dist/src/command-line/add/completion.js +0 -15
- package/dist/src/command-line/affected/affected.d.ts +0 -10
- package/dist/src/command-line/affected/affected.js +0 -90
- package/dist/src/command-line/affected/command-object.d.ts +0 -6
- package/dist/src/command-line/affected/command-object.js +0 -83
- package/dist/src/command-line/affected/completion.d.ts +0 -1
- package/dist/src/command-line/affected/completion.js +0 -15
- package/dist/src/command-line/ai/ai-output.d.ts +0 -46
- package/dist/src/command-line/ai/ai-output.js +0 -86
- package/dist/src/command-line/completion/argv-layout.d.ts +0 -6
- package/dist/src/command-line/completion/argv-layout.js +0 -19
- package/dist/src/command-line/completion/command-completions.d.ts +0 -19
- package/dist/src/command-line/completion/command-completions.js +0 -120
- package/dist/src/command-line/completion/command-handlers.d.ts +0 -30
- package/dist/src/command-line/completion/command-handlers.js +0 -69
- package/dist/src/command-line/completion/command-object.d.ts +0 -10
- package/dist/src/command-line/completion/command-object.js +0 -102
- package/dist/src/command-line/completion/completion-providers.d.ts +0 -21
- package/dist/src/command-line/completion/completion-providers.js +0 -194
- package/dist/src/command-line/completion/infix-targets.d.ts +0 -1
- package/dist/src/command-line/completion/infix-targets.js +0 -48
- package/dist/src/command-line/completion/metadata.d.ts +0 -22
- package/dist/src/command-line/completion/metadata.js +0 -71
- package/dist/src/command-line/completion/registrations.d.ts +0 -9
- package/dist/src/command-line/completion/registrations.js +0 -16
- package/dist/src/command-line/completion/scripts/bash.sh +0 -51
- package/dist/src/command-line/completion/scripts/fish.fish +0 -47
- package/dist/src/command-line/completion/scripts/powershell.ps1 +0 -52
- package/dist/src/command-line/completion/scripts/zsh.zsh +0 -69
- package/dist/src/command-line/completion/scripts.d.ts +0 -18
- package/dist/src/command-line/completion/scripts.js +0 -140
- package/dist/src/command-line/completion/trigger.d.ts +0 -3
- package/dist/src/command-line/completion/trigger.js +0 -21
- package/dist/src/command-line/completion/value-completions.d.ts +0 -3
- package/dist/src/command-line/completion/value-completions.js +0 -21
- package/dist/src/command-line/configure-ai-agents/command-object.d.ts +0 -8
- package/dist/src/command-line/configure-ai-agents/command-object.js +0 -59
- package/dist/src/command-line/configure-ai-agents/configure-ai-agents.d.ts +0 -3
- package/dist/src/command-line/configure-ai-agents/configure-ai-agents.js +0 -436
- package/dist/src/command-line/daemon/command-object.d.ts +0 -3
- package/dist/src/command-line/daemon/command-object.js +0 -29
- package/dist/src/command-line/daemon/daemon.d.ts +0 -2
- package/dist/src/command-line/daemon/daemon.js +0 -31
- package/dist/src/command-line/deprecated/command-objects.d.ts +0 -9
- package/dist/src/command-line/deprecated/command-objects.js +0 -48
- package/dist/src/command-line/examples.d.ts +0 -12
- package/dist/src/command-line/examples.js +0 -403
- package/dist/src/command-line/exec/command-object.d.ts +0 -2
- package/dist/src/command-line/exec/command-object.js +0 -20
- package/dist/src/command-line/exec/exec.d.ts +0 -1
- package/dist/src/command-line/exec/exec.js +0 -143
- package/dist/src/command-line/format/command-object.d.ts +0 -3
- package/dist/src/command-line/format/command-object.js +0 -58
- package/dist/src/command-line/format/format.d.ts +0 -2
- package/dist/src/command-line/format/format.js +0 -216
- package/dist/src/command-line/generate/command-object.d.ts +0 -2
- package/dist/src/command-line/generate/command-object.js +0 -67
- package/dist/src/command-line/generate/completion.d.ts +0 -1
- package/dist/src/command-line/generate/completion.js +0 -9
- package/dist/src/command-line/generate/generate.d.ts +0 -21
- package/dist/src/command-line/generate/generate.js +0 -281
- package/dist/src/command-line/generate/generator-utils.d.ts +0 -18
- package/dist/src/command-line/generate/generator-utils.js +0 -91
- package/dist/src/command-line/graph/command-object.d.ts +0 -25
- package/dist/src/command-line/graph/command-object.js +0 -76
- package/dist/src/command-line/graph/completion.d.ts +0 -1
- package/dist/src/command-line/graph/completion.js +0 -13
- package/dist/src/command-line/graph/graph.d.ts +0 -70
- package/dist/src/command-line/graph/graph.js +0 -987
- package/dist/src/command-line/import/command-object.d.ts +0 -2
- package/dist/src/command-line/import/command-object.js +0 -63
- package/dist/src/command-line/import/import.d.ts +0 -26
- package/dist/src/command-line/import/import.js +0 -590
- package/dist/src/command-line/import/utils/ai-output.d.ts +0 -93
- package/dist/src/command-line/import/utils/ai-output.js +0 -209
- package/dist/src/command-line/import/utils/merge-remote-source.d.ts +0 -2
- package/dist/src/command-line/import/utils/merge-remote-source.js +0 -14
- package/dist/src/command-line/import/utils/prepare-source-repo.d.ts +0 -2
- package/dist/src/command-line/import/utils/prepare-source-repo.js +0 -27
- package/dist/src/command-line/index.d.ts +0 -22
- package/dist/src/command-line/index.js +0 -26
- package/dist/src/command-line/init/ai-agent-prompts.d.ts +0 -2
- package/dist/src/command-line/init/ai-agent-prompts.js +0 -30
- package/dist/src/command-line/init/command-object.d.ts +0 -2
- package/dist/src/command-line/init/command-object.js +0 -118
- package/dist/src/command-line/init/configure-plugins.d.ts +0 -34
- package/dist/src/command-line/init/configure-plugins.js +0 -214
- package/dist/src/command-line/init/implementation/add-nx-to-monorepo.d.ts +0 -6
- package/dist/src/command-line/init/implementation/add-nx-to-monorepo.js +0 -122
- package/dist/src/command-line/init/implementation/add-nx-to-nest.d.ts +0 -5
- package/dist/src/command-line/init/implementation/add-nx-to-nest.js +0 -353
- package/dist/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts +0 -6
- package/dist/src/command-line/init/implementation/add-nx-to-npm-repo.js +0 -70
- package/dist/src/command-line/init/implementation/add-nx-to-turborepo.d.ts +0 -4
- package/dist/src/command-line/init/implementation/add-nx-to-turborepo.js +0 -37
- package/dist/src/command-line/init/implementation/angular/index.d.ts +0 -2
- package/dist/src/command-line/init/implementation/angular/index.js +0 -130
- package/dist/src/command-line/init/implementation/angular/integrated-workspace.d.ts +0 -1
- package/dist/src/command-line/init/implementation/angular/integrated-workspace.js +0 -9
- package/dist/src/command-line/init/implementation/angular/legacy-angular-versions.d.ts +0 -2
- package/dist/src/command-line/init/implementation/angular/legacy-angular-versions.js +0 -155
- package/dist/src/command-line/init/implementation/angular/standalone-workspace.d.ts +0 -1
- package/dist/src/command-line/init/implementation/angular/standalone-workspace.js +0 -204
- package/dist/src/command-line/init/implementation/angular/types.d.ts +0 -20
- package/dist/src/command-line/init/implementation/angular/types.js +0 -2
- package/dist/src/command-line/init/implementation/check-compatible-with-plugins.d.ts +0 -15
- package/dist/src/command-line/init/implementation/check-compatible-with-plugins.js +0 -136
- package/dist/src/command-line/init/implementation/deduce-default-base.d.ts +0 -1
- package/dist/src/command-line/init/implementation/deduce-default-base.js +0 -53
- package/dist/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts +0 -11
- package/dist/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +0 -151
- package/dist/src/command-line/init/implementation/dot-nx/nxw.d.ts +0 -1
- package/dist/src/command-line/init/implementation/dot-nx/nxw.js +0 -123
- package/dist/src/command-line/init/implementation/format.d.ts +0 -18
- package/dist/src/command-line/init/implementation/format.js +0 -114
- package/dist/src/command-line/init/implementation/utils.d.ts +0 -35
- package/dist/src/command-line/init/implementation/utils.js +0 -422
- package/dist/src/command-line/init/init-v1.d.ts +0 -8
- package/dist/src/command-line/init/init-v1.js +0 -101
- package/dist/src/command-line/init/init-v2.d.ts +0 -23
- package/dist/src/command-line/init/init-v2.js +0 -622
- package/dist/src/command-line/init/utils/ai-output.d.ts +0 -72
- package/dist/src/command-line/init/utils/ai-output.js +0 -180
- package/dist/src/command-line/list/command-object.d.ts +0 -2
- package/dist/src/command-line/list/command-object.js +0 -21
- package/dist/src/command-line/list/list.d.ts +0 -15
- package/dist/src/command-line/list/list.js +0 -48
- package/dist/src/command-line/mcp/command-object.d.ts +0 -2
- package/dist/src/command-line/mcp/command-object.js +0 -29
- package/dist/src/command-line/mcp/mcp.d.ts +0 -2
- package/dist/src/command-line/mcp/mcp.js +0 -60
- package/dist/src/command-line/migrate/agentic/capture-generator-output.d.ts +0 -22
- package/dist/src/command-line/migrate/agentic/capture-generator-output.js +0 -100
- package/dist/src/command-line/migrate/agentic/cli-args.d.ts +0 -12
- package/dist/src/command-line/migrate/agentic/cli-args.js +0 -38
- package/dist/src/command-line/migrate/agentic/definitions.d.ts +0 -6
- package/dist/src/command-line/migrate/agentic/definitions.js +0 -148
- package/dist/src/command-line/migrate/agentic/detect-installed.d.ts +0 -10
- package/dist/src/command-line/migrate/agentic/detect-installed.js +0 -68
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.d.ts +0 -61
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.js +0 -78
- package/dist/src/command-line/migrate/agentic/handoff.d.ts +0 -69
- package/dist/src/command-line/migrate/agentic/handoff.js +0 -193
- package/dist/src/command-line/migrate/agentic/inception.d.ts +0 -9
- package/dist/src/command-line/migrate/agentic/inception.js +0 -15
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.d.ts +0 -17
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.js +0 -57
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.d.ts +0 -56
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.js +0 -66
- package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.d.ts +0 -49
- package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.js +0 -53
- package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.d.ts +0 -26
- package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.js +0 -27
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.d.ts +0 -19
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.js +0 -145
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.d.ts +0 -46
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.js +0 -90
- package/dist/src/command-line/migrate/agentic/run-step.d.ts +0 -68
- package/dist/src/command-line/migrate/agentic/run-step.js +0 -124
- package/dist/src/command-line/migrate/agentic/runner.d.ts +0 -33
- package/dist/src/command-line/migrate/agentic/runner.js +0 -444
- package/dist/src/command-line/migrate/agentic/select.d.ts +0 -24
- package/dist/src/command-line/migrate/agentic/select.js +0 -251
- package/dist/src/command-line/migrate/agentic/types.d.ts +0 -132
- package/dist/src/command-line/migrate/agentic/types.js +0 -37
- package/dist/src/command-line/migrate/command-object.d.ts +0 -53
- package/dist/src/command-line/migrate/command-object.js +0 -152
- package/dist/src/command-line/migrate/execute-migration.d.ts +0 -91
- package/dist/src/command-line/migrate/execute-migration.js +0 -474
- package/dist/src/command-line/migrate/migrate-analytics.d.ts +0 -106
- package/dist/src/command-line/migrate/migrate-analytics.js +0 -317
- package/dist/src/command-line/migrate/migrate-commits.d.ts +0 -80
- package/dist/src/command-line/migrate/migrate-commits.js +0 -217
- package/dist/src/command-line/migrate/migrate-config.d.ts +0 -29
- package/dist/src/command-line/migrate/migrate-config.js +0 -112
- package/dist/src/command-line/migrate/migrate-output.d.ts +0 -218
- package/dist/src/command-line/migrate/migrate-output.js +0 -302
- package/dist/src/command-line/migrate/migrate-ui-api.d.ts +0 -89
- package/dist/src/command-line/migrate/migrate-ui-api.js +0 -437
- package/dist/src/command-line/migrate/migrate.d.ts +0 -242
- package/dist/src/command-line/migrate/migrate.js +0 -2807
- package/dist/src/command-line/migrate/migration-shape.d.ts +0 -16
- package/dist/src/command-line/migrate/migration-shape.js +0 -13
- package/dist/src/command-line/migrate/multi-major.d.ts +0 -37
- package/dist/src/command-line/migrate/multi-major.js +0 -215
- package/dist/src/command-line/migrate/prompt-files.d.ts +0 -31
- package/dist/src/command-line/migrate/prompt-files.js +0 -141
- package/dist/src/command-line/migrate/resolve-package-version.d.ts +0 -24
- package/dist/src/command-line/migrate/resolve-package-version.js +0 -245
- package/dist/src/command-line/migrate/run/agent-output.d.ts +0 -20
- package/dist/src/command-line/migrate/run/agent-output.js +0 -65
- package/dist/src/command-line/migrate/run/index.d.ts +0 -9
- package/dist/src/command-line/migrate/run/index.js +0 -23
- package/dist/src/command-line/migrate/run/orchestrator.d.ts +0 -20
- package/dist/src/command-line/migrate/run/orchestrator.js +0 -1200
- package/dist/src/command-line/migrate/run/run-id.d.ts +0 -16
- package/dist/src/command-line/migrate/run/run-id.js +0 -56
- package/dist/src/command-line/migrate/run/run-state.d.ts +0 -157
- package/dist/src/command-line/migrate/run/run-state.js +0 -438
- package/dist/src/command-line/migrate/run/state-lock.d.ts +0 -25
- package/dist/src/command-line/migrate/run/state-lock.js +0 -76
- package/dist/src/command-line/migrate/run/state-machine.d.ts +0 -84
- package/dist/src/command-line/migrate/run/state-machine.js +0 -315
- package/dist/src/command-line/migrate/run/util.d.ts +0 -59
- package/dist/src/command-line/migrate/run/util.js +0 -148
- package/dist/src/command-line/migrate/run/worker.d.ts +0 -16
- package/dist/src/command-line/migrate/run/worker.js +0 -682
- package/dist/src/command-line/migrate/run-migration-process.js +0 -110
- package/dist/src/command-line/migrate/safe-prompt.d.ts +0 -21
- package/dist/src/command-line/migrate/safe-prompt.js +0 -47
- package/dist/src/command-line/migrate/sort-migrations.d.ts +0 -16
- package/dist/src/command-line/migrate/sort-migrations.js +0 -32
- package/dist/src/command-line/migrate/step-actions.d.ts +0 -5
- package/dist/src/command-line/migrate/step-actions.js +0 -12
- package/dist/src/command-line/migrate/text.d.ts +0 -18
- package/dist/src/command-line/migrate/text.js +0 -26
- package/dist/src/command-line/migrate/update-filters.d.ts +0 -11
- package/dist/src/command-line/migrate/update-filters.js +0 -45
- package/dist/src/command-line/migrate/version-skew-guard.d.ts +0 -60
- package/dist/src/command-line/migrate/version-skew-guard.js +0 -175
- package/dist/src/command-line/migrate/version-utils.d.ts +0 -5
- package/dist/src/command-line/migrate/version-utils.js +0 -52
- package/dist/src/command-line/new/command-object.d.ts +0 -2
- package/dist/src/command-line/new/command-object.js +0 -26
- package/dist/src/command-line/new/new.d.ts +0 -3
- package/dist/src/command-line/new/new.js +0 -30
- package/dist/src/command-line/nx-cloud/apply-locally/apply-locally.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/apply-locally/apply-locally.js +0 -13
- package/dist/src/command-line/nx-cloud/apply-locally/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/apply-locally/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/complete-run/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/complete-run/command-object.js +0 -17
- package/dist/src/command-line/nx-cloud/complete-run/stop-all-agents.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/complete-run/stop-all-agents.js +0 -13
- package/dist/src/command-line/nx-cloud/connect/command-object.d.ts +0 -3
- package/dist/src/command-line/nx-cloud/connect/command-object.js +0 -28
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts +0 -13
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +0 -266
- package/dist/src/command-line/nx-cloud/connect/view-logs.d.ts +0 -1
- package/dist/src/command-line/nx-cloud/connect/view-logs.js +0 -55
- package/dist/src/command-line/nx-cloud/download-cloud-client/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/download-cloud-client/command-object.js +0 -13
- package/dist/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.js +0 -32
- package/dist/src/command-line/nx-cloud/fix-ci/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/fix-ci/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/fix-ci/fix-ci.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/fix-ci/fix-ci.js +0 -13
- package/dist/src/command-line/nx-cloud/login/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/login/command-object.js +0 -20
- package/dist/src/command-line/nx-cloud/login/login.d.ts +0 -5
- package/dist/src/command-line/nx-cloud/login/login.js +0 -10
- package/dist/src/command-line/nx-cloud/logout/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/logout/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/logout/logout.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/logout/logout.js +0 -7
- package/dist/src/command-line/nx-cloud/record/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/record/command-object.js +0 -19
- package/dist/src/command-line/nx-cloud/record/record.d.ts +0 -5
- package/dist/src/command-line/nx-cloud/record/record.js +0 -33
- package/dist/src/command-line/nx-cloud/start-agent/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/start-agent/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/start-agent/start-agent.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/start-agent/start-agent.js +0 -13
- package/dist/src/command-line/nx-cloud/start-ci-run/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/start-ci-run/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/start-ci-run/start-ci-run.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/start-ci-run/start-ci-run.js +0 -13
- package/dist/src/command-line/nx-cloud/start-nx-agents/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/start-nx-agents/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/start-nx-agents/start-nx-agents.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/start-nx-agents/start-nx-agents.js +0 -13
- package/dist/src/command-line/nx-cloud/utils.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/utils.js +0 -34
- package/dist/src/command-line/nx-commands.d.ts +0 -10
- package/dist/src/command-line/nx-commands.js +0 -183
- package/dist/src/command-line/register/command-object.d.ts +0 -6
- package/dist/src/command-line/register/command-object.js +0 -27
- package/dist/src/command-line/register/register.d.ts +0 -2
- package/dist/src/command-line/register/register.js +0 -9
- package/dist/src/command-line/release/changelog/commit-utils.d.ts +0 -13
- package/dist/src/command-line/release/changelog/commit-utils.js +0 -63
- package/dist/src/command-line/release/changelog/version-plan-filtering.d.ts +0 -43
- package/dist/src/command-line/release/changelog/version-plan-filtering.js +0 -156
- package/dist/src/command-line/release/changelog/version-plan-utils.d.ts +0 -31
- package/dist/src/command-line/release/changelog/version-plan-utils.js +0 -92
- package/dist/src/command-line/release/changelog.d.ts +0 -28
- package/dist/src/command-line/release/changelog.js +0 -905
- package/dist/src/command-line/release/command-object.d.ts +0 -96
- package/dist/src/command-line/release/command-object.js +0 -342
- package/dist/src/command-line/release/config/config.d.ts +0 -70
- package/dist/src/command-line/release/config/config.js +0 -1204
- package/dist/src/command-line/release/config/conventional-commits.d.ts +0 -2
- package/dist/src/command-line/release/config/conventional-commits.js +0 -106
- package/dist/src/command-line/release/config/deep-merge-json.d.ts +0 -1
- package/dist/src/command-line/release/config/deep-merge-json.js +0 -28
- package/dist/src/command-line/release/config/filter-release-groups.d.ts +0 -23
- package/dist/src/command-line/release/config/filter-release-groups.js +0 -157
- package/dist/src/command-line/release/config/use-legacy-versioning.d.ts +0 -2
- package/dist/src/command-line/release/config/use-legacy-versioning.js +0 -8
- package/dist/src/command-line/release/config/version-plans.d.ts +0 -42
- package/dist/src/command-line/release/config/version-plans.js +0 -278
- package/dist/src/command-line/release/index.d.ts +0 -49
- package/dist/src/command-line/release/index.js +0 -49
- package/dist/src/command-line/release/plan-check.d.ts +0 -4
- package/dist/src/command-line/release/plan-check.js +0 -170
- package/dist/src/command-line/release/plan.d.ts +0 -4
- package/dist/src/command-line/release/plan.js +0 -248
- package/dist/src/command-line/release/publish.d.ts +0 -9
- package/dist/src/command-line/release/publish.js +0 -295
- package/dist/src/command-line/release/release.d.ts +0 -5
- package/dist/src/command-line/release/release.js +0 -299
- package/dist/src/command-line/release/utils/diff.d.ts +0 -21
- package/dist/src/command-line/release/utils/diff.js +0 -168
- package/dist/src/command-line/release/utils/exec-command.d.ts +0 -1
- package/dist/src/command-line/release/utils/exec-command.js +0 -34
- package/dist/src/command-line/release/utils/generate-version-plan-content.d.ts +0 -1
- package/dist/src/command-line/release/utils/generate-version-plan-content.js +0 -20
- package/dist/src/command-line/release/utils/get-touched-projects-for-group.d.ts +0 -7
- package/dist/src/command-line/release/utils/get-touched-projects-for-group.js +0 -78
- package/dist/src/command-line/release/utils/git.d.ts +0 -126
- package/dist/src/command-line/release/utils/git.js +0 -597
- package/dist/src/command-line/release/utils/launch-editor.d.ts +0 -1
- package/dist/src/command-line/release/utils/launch-editor.js +0 -46
- package/dist/src/command-line/release/utils/markdown.d.ts +0 -6
- package/dist/src/command-line/release/utils/markdown.js +0 -28
- package/dist/src/command-line/release/utils/print-changes.d.ts +0 -6
- package/dist/src/command-line/release/utils/print-changes.js +0 -63
- package/dist/src/command-line/release/utils/print-config.d.ts +0 -7
- package/dist/src/command-line/release/utils/print-config.js +0 -36
- package/dist/src/command-line/release/utils/release-graph.d.ts +0 -248
- package/dist/src/command-line/release/utils/release-graph.js +0 -769
- package/dist/src/command-line/release/utils/remote-release-clients/extract-repo-slug.d.ts +0 -9
- package/dist/src/command-line/release/utils/remote-release-clients/extract-repo-slug.js +0 -61
- package/dist/src/command-line/release/utils/remote-release-clients/github.d.ts +0 -58
- package/dist/src/command-line/release/utils/remote-release-clients/github.js +0 -336
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.d.ts +0 -62
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.js +0 -259
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.d.ts +0 -111
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.js +0 -138
- package/dist/src/command-line/release/utils/repository-git-tags.d.ts +0 -25
- package/dist/src/command-line/release/utils/repository-git-tags.js +0 -125
- package/dist/src/command-line/release/utils/resolve-changelog-renderer.d.ts +0 -2
- package/dist/src/command-line/release/utils/resolve-changelog-renderer.js +0 -22
- package/dist/src/command-line/release/utils/resolve-nx-json-error-message.d.ts +0 -1
- package/dist/src/command-line/release/utils/resolve-nx-json-error-message.js +0 -53
- package/dist/src/command-line/release/utils/resolve-semver-specifier.d.ts +0 -7
- package/dist/src/command-line/release/utils/resolve-semver-specifier.js +0 -41
- package/dist/src/command-line/release/utils/semver.d.ts +0 -26
- package/dist/src/command-line/release/utils/semver.js +0 -111
- package/dist/src/command-line/release/utils/shared-legacy.d.ts +0 -25
- package/dist/src/command-line/release/utils/shared-legacy.js +0 -2
- package/dist/src/command-line/release/utils/shared.d.ts +0 -64
- package/dist/src/command-line/release/utils/shared.js +0 -379
- package/dist/src/command-line/release/utils/version-plan-utils.d.ts +0 -40
- package/dist/src/command-line/release/utils/version-plan-utils.js +0 -111
- package/dist/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts +0 -8
- package/dist/src/command-line/release/version/derive-specifier-from-conventional-commits.js +0 -61
- package/dist/src/command-line/release/version/deriver-specifier-from-version-plans.d.ts +0 -8
- package/dist/src/command-line/release/version/deriver-specifier-from-version-plans.js +0 -59
- package/dist/src/command-line/release/version/project-logger.d.ts +0 -8
- package/dist/src/command-line/release/version/project-logger.js +0 -47
- package/dist/src/command-line/release/version/release-group-processor.d.ts +0 -139
- package/dist/src/command-line/release/version/release-group-processor.js +0 -706
- package/dist/src/command-line/release/version/resolve-current-version.d.ts +0 -32
- package/dist/src/command-line/release/version/resolve-current-version.js +0 -240
- package/dist/src/command-line/release/version/topological-sort.d.ts +0 -9
- package/dist/src/command-line/release/version/topological-sort.js +0 -41
- package/dist/src/command-line/release/version/version-actions.d.ts +0 -224
- package/dist/src/command-line/release/version/version-actions.js +0 -255
- package/dist/src/command-line/release/version.d.ts +0 -28
- package/dist/src/command-line/release/version.js +0 -382
- package/dist/src/command-line/repair/command-object.d.ts +0 -2
- package/dist/src/command-line/repair/command-object.js +0 -21
- package/dist/src/command-line/repair/repair.d.ts +0 -3
- package/dist/src/command-line/repair/repair.js +0 -41
- package/dist/src/command-line/report/command-object.d.ts +0 -2
- package/dist/src/command-line/report/command-object.js +0 -12
- package/dist/src/command-line/report/report.d.ts +0 -71
- package/dist/src/command-line/report/report.js +0 -405
- package/dist/src/command-line/reset/command-object.d.ts +0 -8
- package/dist/src/command-line/reset/command-object.js +0 -27
- package/dist/src/command-line/reset/reset.d.ts +0 -2
- package/dist/src/command-line/reset/reset.js +0 -185
- package/dist/src/command-line/run/command-object.d.ts +0 -6
- package/dist/src/command-line/run/command-object.js +0 -43
- package/dist/src/command-line/run/completion.d.ts +0 -1
- package/dist/src/command-line/run/completion.js +0 -7
- package/dist/src/command-line/run/executor-utils.d.ts +0 -12
- package/dist/src/command-line/run/executor-utils.js +0 -96
- package/dist/src/command-line/run/run-one.d.ts +0 -17
- package/dist/src/command-line/run/run-one.js +0 -155
- package/dist/src/command-line/run/run.d.ts +0 -51
- package/dist/src/command-line/run/run.js +0 -179
- package/dist/src/command-line/run-many/command-object.d.ts +0 -2
- package/dist/src/command-line/run-many/command-object.js +0 -18
- package/dist/src/command-line/run-many/completion.d.ts +0 -1
- package/dist/src/command-line/run-many/completion.js +0 -13
- package/dist/src/command-line/run-many/run-many.d.ts +0 -10
- package/dist/src/command-line/run-many/run-many.js +0 -90
- package/dist/src/command-line/show/command-object.d.ts +0 -40
- package/dist/src/command-line/show/command-object.js +0 -237
- package/dist/src/command-line/show/completion.d.ts +0 -1
- package/dist/src/command-line/show/completion.js +0 -27
- package/dist/src/command-line/show/project.d.ts +0 -2
- package/dist/src/command-line/show/project.js +0 -103
- package/dist/src/command-line/show/projects.d.ts +0 -2
- package/dist/src/command-line/show/projects.js +0 -80
- package/dist/src/command-line/show/show-target/index.d.ts +0 -3
- package/dist/src/command-line/show/show-target/index.js +0 -9
- package/dist/src/command-line/show/show-target/info.d.ts +0 -28
- package/dist/src/command-line/show/show-target/info.js +0 -389
- package/dist/src/command-line/show/show-target/inputs.d.ts +0 -2
- package/dist/src/command-line/show/show-target/inputs.js +0 -83
- package/dist/src/command-line/show/show-target/outputs.d.ts +0 -2
- package/dist/src/command-line/show/show-target/outputs.js +0 -70
- package/dist/src/command-line/show/show-target/utils.d.ts +0 -54
- package/dist/src/command-line/show/show-target/utils.js +0 -265
- package/dist/src/command-line/sync/command-object.d.ts +0 -6
- package/dist/src/command-line/sync/command-object.js +0 -21
- package/dist/src/command-line/sync/sync.d.ts +0 -6
- package/dist/src/command-line/sync/sync.js +0 -120
- package/dist/src/command-line/watch/command-object.d.ts +0 -2
- package/dist/src/command-line/watch/command-object.js +0 -91
- package/dist/src/command-line/watch/completion.d.ts +0 -1
- package/dist/src/command-line/watch/completion.js +0 -10
- package/dist/src/command-line/watch/watch.d.ts +0 -31
- package/dist/src/command-line/watch/watch.js +0 -211
- package/dist/src/command-line/yargs-utils/arguments-of.d.ts +0 -11
- package/dist/src/command-line/yargs-utils/arguments-of.js +0 -9
- package/dist/src/command-line/yargs-utils/documentation.d.ts +0 -2
- package/dist/src/command-line/yargs-utils/documentation.js +0 -12
- package/dist/src/command-line/yargs-utils/shared-options.d.ts +0 -91
- package/dist/src/command-line/yargs-utils/shared-options.js +0 -397
- package/dist/src/commands-runner/command-graph.d.ts +0 -13
- package/dist/src/commands-runner/command-graph.js +0 -2
- package/dist/src/commands-runner/create-command-graph.d.ts +0 -4
- package/dist/src/commands-runner/create-command-graph.js +0 -72
- package/dist/src/commands-runner/get-command-projects.d.ts +0 -3
- package/dist/src/commands-runner/get-command-projects.js +0 -33
- package/dist/src/config/calculate-default-project-name.d.ts +0 -4
- package/dist/src/config/calculate-default-project-name.js +0 -41
- package/dist/src/config/configuration.d.ts +0 -8
- package/dist/src/config/configuration.js +0 -17
- package/dist/src/config/misc-interfaces.d.ts +0 -266
- package/dist/src/config/misc-interfaces.js +0 -2
- package/dist/src/config/nx-json.d.ts +0 -963
- package/dist/src/config/nx-json.js +0 -40
- package/dist/src/config/project-graph.d.ts +0 -137
- package/dist/src/config/project-graph.js +0 -45
- package/dist/src/config/schema-utils.d.ts +0 -37
- package/dist/src/config/schema-utils.js +0 -199
- package/dist/src/config/task-graph.d.ts +0 -6
- package/dist/src/config/task-graph.js +0 -2
- package/dist/src/config/to-project-name.d.ts +0 -5
- package/dist/src/config/to-project-name.js +0 -12
- package/dist/src/config/workspace-json-project-json.d.ts +0 -273
- package/dist/src/config/workspace-json-project-json.js +0 -2
- package/dist/src/core/graph/environment.js +0 -1
- package/dist/src/core/graph/favicon.ico +0 -0
- package/dist/src/core/graph/index.html +0 -32
- package/dist/src/core/graph/main.js +0 -1
- package/dist/src/core/graph/runtime.js +0 -1
- package/dist/src/core/graph/styles.css +0 -2
- package/dist/src/core/graph/styles.js +0 -1
- package/dist/src/daemon/cache.d.ts +0 -10
- package/dist/src/daemon/cache.js +0 -58
- package/dist/src/daemon/client/client.d.ts +0 -161
- package/dist/src/daemon/client/client.js +0 -1255
- package/dist/src/daemon/client/daemon-environment.d.ts +0 -64
- package/dist/src/daemon/client/daemon-environment.js +0 -378
- package/dist/src/daemon/client/daemon-socket-messenger.d.ts +0 -12
- package/dist/src/daemon/client/daemon-socket-messenger.js +0 -63
- package/dist/src/daemon/is-nx-version-mismatch.d.ts +0 -1
- package/dist/src/daemon/is-nx-version-mismatch.js +0 -8
- package/dist/src/daemon/is-on-daemon.d.ts +0 -1
- package/dist/src/daemon/is-on-daemon.js +0 -6
- package/dist/src/daemon/is-v8-serializer-enabled.d.ts +0 -5
- package/dist/src/daemon/is-v8-serializer-enabled.js +0 -10
- package/dist/src/daemon/logger.d.ts +0 -39
- package/dist/src/daemon/logger.js +0 -80
- package/dist/src/daemon/message-types/configure-ai-agents.d.ts +0 -20
- package/dist/src/daemon/message-types/configure-ai-agents.js +0 -19
- package/dist/src/daemon/message-types/daemon-message.d.ts +0 -39
- package/dist/src/daemon/message-types/daemon-message.js +0 -54
- package/dist/src/daemon/message-types/flush-sync-generator-changes-to-disk.d.ts +0 -6
- package/dist/src/daemon/message-types/flush-sync-generator-changes-to-disk.js +0 -11
- package/dist/src/daemon/message-types/force-shutdown.d.ts +0 -5
- package/dist/src/daemon/message-types/force-shutdown.js +0 -11
- package/dist/src/daemon/message-types/get-context-file-data.d.ts +0 -5
- package/dist/src/daemon/message-types/get-context-file-data.js +0 -11
- package/dist/src/daemon/message-types/get-files-in-directory.d.ts +0 -6
- package/dist/src/daemon/message-types/get-files-in-directory.js +0 -11
- package/dist/src/daemon/message-types/get-nx-workspace-files.d.ts +0 -6
- package/dist/src/daemon/message-types/get-nx-workspace-files.js +0 -11
- package/dist/src/daemon/message-types/get-registered-sync-generators.d.ts +0 -5
- package/dist/src/daemon/message-types/get-registered-sync-generators.js +0 -11
- package/dist/src/daemon/message-types/get-sync-generator-changes.d.ts +0 -6
- package/dist/src/daemon/message-types/get-sync-generator-changes.js +0 -11
- package/dist/src/daemon/message-types/glob.d.ts +0 -14
- package/dist/src/daemon/message-types/glob.js +0 -19
- package/dist/src/daemon/message-types/hash-glob.d.ts +0 -13
- package/dist/src/daemon/message-types/hash-glob.js +0 -19
- package/dist/src/daemon/message-types/nx-console.d.ts +0 -17
- package/dist/src/daemon/message-types/nx-console.js +0 -19
- package/dist/src/daemon/message-types/register-project-graph-listener.d.ts +0 -5
- package/dist/src/daemon/message-types/register-project-graph-listener.js +0 -11
- package/dist/src/daemon/message-types/run-tasks-execution-hooks.d.ts +0 -13
- package/dist/src/daemon/message-types/run-tasks-execution-hooks.js +0 -19
- package/dist/src/daemon/message-types/streaming-messages.d.ts +0 -14
- package/dist/src/daemon/message-types/streaming-messages.js +0 -19
- package/dist/src/daemon/message-types/task-history.d.ts +0 -19
- package/dist/src/daemon/message-types/task-history.js +0 -27
- package/dist/src/daemon/message-types/update-workspace-context.d.ts +0 -8
- package/dist/src/daemon/message-types/update-workspace-context.js +0 -11
- package/dist/src/daemon/sandbox-socket-hint.d.ts +0 -27
- package/dist/src/daemon/sandbox-socket-hint.js +0 -136
- package/dist/src/daemon/server/client-socket-context.d.ts +0 -23
- package/dist/src/daemon/server/client-socket-context.js +0 -88
- package/dist/src/daemon/server/dotenv-graph-changes.d.ts +0 -97
- package/dist/src/daemon/server/dotenv-graph-changes.js +0 -284
- package/dist/src/daemon/server/file-watching/changed-projects.d.ts +0 -10
- package/dist/src/daemon/server/file-watching/changed-projects.js +0 -53
- package/dist/src/daemon/server/file-watching/file-change-events.d.ts +0 -7
- package/dist/src/daemon/server/file-watching/file-change-events.js +0 -19
- package/dist/src/daemon/server/file-watching/file-watcher-sockets.d.ts +0 -17
- package/dist/src/daemon/server/file-watching/file-watcher-sockets.js +0 -82
- package/dist/src/daemon/server/file-watching/route-workspace-changes.d.ts +0 -9
- package/dist/src/daemon/server/file-watching/route-workspace-changes.js +0 -76
- package/dist/src/daemon/server/handle-client-env.d.ts +0 -8
- package/dist/src/daemon/server/handle-client-env.js +0 -92
- package/dist/src/daemon/server/handle-configure-ai-agents.d.ts +0 -3
- package/dist/src/daemon/server/handle-configure-ai-agents.js +0 -101
- package/dist/src/daemon/server/handle-context-file-data.d.ts +0 -2
- package/dist/src/daemon/server/handle-context-file-data.js +0 -12
- package/dist/src/daemon/server/handle-flush-sync-generator-changes-to-disk.d.ts +0 -2
- package/dist/src/daemon/server/handle-flush-sync-generator-changes-to-disk.js +0 -11
- package/dist/src/daemon/server/handle-force-shutdown.d.ts +0 -5
- package/dist/src/daemon/server/handle-force-shutdown.js +0 -18
- package/dist/src/daemon/server/handle-get-files-in-directory.d.ts +0 -2
- package/dist/src/daemon/server/handle-get-files-in-directory.js +0 -12
- package/dist/src/daemon/server/handle-get-registered-sync-generators.d.ts +0 -2
- package/dist/src/daemon/server/handle-get-registered-sync-generators.js +0 -11
- package/dist/src/daemon/server/handle-get-sync-generator-changes.d.ts +0 -2
- package/dist/src/daemon/server/handle-get-sync-generator-changes.js +0 -20
- package/dist/src/daemon/server/handle-glob.d.ts +0 -3
- package/dist/src/daemon/server/handle-glob.js +0 -20
- package/dist/src/daemon/server/handle-hash-glob.d.ts +0 -3
- package/dist/src/daemon/server/handle-hash-glob.js +0 -20
- package/dist/src/daemon/server/handle-hash-tasks.d.ts +0 -12
- package/dist/src/daemon/server/handle-hash-tasks.js +0 -28
- package/dist/src/daemon/server/handle-nx-console.d.ts +0 -3
- package/dist/src/daemon/server/handle-nx-console.js +0 -54
- package/dist/src/daemon/server/handle-nx-workspace-files.d.ts +0 -2
- package/dist/src/daemon/server/handle-nx-workspace-files.js +0 -12
- package/dist/src/daemon/server/handle-outputs-changes.d.ts +0 -10
- package/dist/src/daemon/server/handle-outputs-changes.js +0 -86
- package/dist/src/daemon/server/handle-outputs-tracking.d.ts +0 -15
- package/dist/src/daemon/server/handle-outputs-tracking.js +0 -35
- package/dist/src/daemon/server/handle-process-in-background.d.ts +0 -6
- package/dist/src/daemon/server/handle-process-in-background.js +0 -32
- package/dist/src/daemon/server/handle-request-project-graph.d.ts +0 -3
- package/dist/src/daemon/server/handle-request-project-graph.js +0 -36
- package/dist/src/daemon/server/handle-request-shutdown.d.ts +0 -5
- package/dist/src/daemon/server/handle-request-shutdown.js +0 -27
- package/dist/src/daemon/server/handle-task-history.d.ts +0 -13
- package/dist/src/daemon/server/handle-task-history.js +0 -30
- package/dist/src/daemon/server/handle-tasks-execution-hooks.d.ts +0 -19
- package/dist/src/daemon/server/handle-tasks-execution-hooks.js +0 -35
- package/dist/src/daemon/server/handle-update-workspace-context.d.ts +0 -2
- package/dist/src/daemon/server/handle-update-workspace-context.js +0 -11
- package/dist/src/daemon/server/latest-nx.d.ts +0 -10
- package/dist/src/daemon/server/latest-nx.js +0 -56
- package/dist/src/daemon/server/nx-console-operations.d.ts +0 -26
- package/dist/src/daemon/server/nx-console-operations.js +0 -97
- package/dist/src/daemon/server/outputs-tracking.d.ts +0 -23
- package/dist/src/daemon/server/outputs-tracking.js +0 -120
- package/dist/src/daemon/server/project-graph-incremental-recomputation.d.ts +0 -47
- package/dist/src/daemon/server/project-graph-incremental-recomputation.js +0 -660
- package/dist/src/daemon/server/project-graph-listener-sockets.d.ts +0 -7
- package/dist/src/daemon/server/project-graph-listener-sockets.js +0 -25
- package/dist/src/daemon/server/server.d.ts +0 -10
- package/dist/src/daemon/server/server.js +0 -465
- package/dist/src/daemon/server/shutdown-utils.d.ts +0 -23
- package/dist/src/daemon/server/shutdown-utils.js +0 -159
- package/dist/src/daemon/server/start.d.ts +0 -1
- package/dist/src/daemon/server/start.js +0 -20
- package/dist/src/daemon/server/sync-generators.d.ts +0 -14
- package/dist/src/daemon/server/sync-generators.js +0 -368
- package/dist/src/daemon/server/watcher.d.ts +0 -18
- package/dist/src/daemon/server/watcher.js +0 -126
- package/dist/src/daemon/socket-utils.d.ts +0 -43
- package/dist/src/daemon/socket-utils.js +0 -131
- package/dist/src/daemon/tmp-dir.d.ts +0 -62
- package/dist/src/daemon/tmp-dir.js +0 -477
- package/dist/src/devkit-exports.d.ts +0 -139
- package/dist/src/devkit-exports.js +0 -143
- package/dist/src/devkit-internals.d.ts +0 -144
- package/dist/src/devkit-internals.js +0 -331
- package/dist/src/devkit-testing-exports.d.ts +0 -2
- package/dist/src/devkit-testing-exports.js +0 -8
- package/dist/src/executors/noop/noop.impl.d.ts +0 -3
- package/dist/src/executors/noop/noop.impl.js +0 -6
- package/dist/src/executors/noop/schema.json +0 -10
- package/dist/src/executors/run-commands/run-commands.impl.d.ts +0 -59
- package/dist/src/executors/run-commands/run-commands.impl.js +0 -301
- package/dist/src/executors/run-commands/running-tasks.d.ts +0 -52
- package/dist/src/executors/run-commands/running-tasks.js +0 -603
- package/dist/src/executors/run-commands/schema.json +0 -198
- package/dist/src/executors/run-script/run-script.impl.d.ts +0 -8
- package/dist/src/executors/run-script/run-script.impl.js +0 -86
- package/dist/src/executors/run-script/schema.json +0 -28
- package/dist/src/executors/utils/convert-nx-executor.d.ts +0 -10
- package/dist/src/executors/utils/convert-nx-executor.js +0 -83
- package/dist/src/generators/internal-utils/format-changed-files.d.ts +0 -24
- package/dist/src/generators/internal-utils/format-changed-files.js +0 -163
- package/dist/src/generators/testing-utils/create-tree-with-empty-workspace.d.ts +0 -26
- package/dist/src/generators/testing-utils/create-tree-with-empty-workspace.js +0 -70
- package/dist/src/generators/testing-utils/create-tree.d.ts +0 -5
- package/dist/src/generators/testing-utils/create-tree.js +0 -14
- package/dist/src/generators/tree.d.ts +0 -127
- package/dist/src/generators/tree.js +0 -310
- package/dist/src/generators/utils/generate-files.d.ts +0 -44
- package/dist/src/generators/utils/generate-files.js +0 -114
- package/dist/src/generators/utils/glob.d.ts +0 -22
- package/dist/src/generators/utils/glob.js +0 -51
- package/dist/src/generators/utils/json.d.ts +0 -28
- package/dist/src/generators/utils/json.js +0 -48
- package/dist/src/generators/utils/nx-json.d.ts +0 -10
- package/dist/src/generators/utils/nx-json.js +0 -62
- package/dist/src/generators/utils/project-configuration.d.ts +0 -51
- package/dist/src/generators/utils/project-configuration.js +0 -299
- package/dist/src/hasher/check-task-files.d.ts +0 -86
- package/dist/src/hasher/check-task-files.js +0 -378
- package/dist/src/hasher/create-task-hasher.d.ts +0 -4
- package/dist/src/hasher/create-task-hasher.js +0 -15
- package/dist/src/hasher/file-hasher.d.ts +0 -3
- package/dist/src/hasher/file-hasher.js +0 -23
- package/dist/src/hasher/hash-plan-inspector.d.ts +0 -33
- package/dist/src/hasher/hash-plan-inspector.js +0 -70
- package/dist/src/hasher/hash-task.d.ts +0 -17
- package/dist/src/hasher/hash-task.js +0 -191
- package/dist/src/hasher/native-task-hasher-impl.d.ts +0 -18
- package/dist/src/hasher/native-task-hasher-impl.js +0 -38
- package/dist/src/hasher/task-hasher.d.ts +0 -160
- package/dist/src/hasher/task-hasher.js +0 -301
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -2
- package/dist/src/migrations/update-15-0-0/prefix-outputs.d.ts +0 -2
- package/dist/src/migrations/update-15-0-0/prefix-outputs.js +0 -54
- package/dist/src/migrations/update-16-0-0/remove-nrwl-cli.d.ts +0 -2
- package/dist/src/migrations/update-16-0-0/remove-nrwl-cli.js +0 -16
- package/dist/src/migrations/update-16-0-0/update-depends-on-to-tokens.d.ts +0 -2
- package/dist/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +0 -82
- package/dist/src/migrations/update-16-0-0/update-nx-cloud-runner.d.ts +0 -2
- package/dist/src/migrations/update-16-0-0/update-nx-cloud-runner.js +0 -29
- package/dist/src/migrations/update-16-2-0/remove-run-commands-output-path.d.ts +0 -2
- package/dist/src/migrations/update-16-2-0/remove-run-commands-output-path.js +0 -50
- package/dist/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.d.ts +0 -12
- package/dist/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.js +0 -67
- package/dist/src/migrations/update-17-0-0/move-cache-directory.d.ts +0 -2
- package/dist/src/migrations/update-17-0-0/move-cache-directory.js +0 -35
- package/dist/src/migrations/update-17-0-0/move-cache-directory.md +0 -31
- package/dist/src/migrations/update-17-0-0/rm-default-collection-npm-scope.d.ts +0 -2
- package/dist/src/migrations/update-17-0-0/rm-default-collection-npm-scope.js +0 -72
- package/dist/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.d.ts +0 -2
- package/dist/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +0 -126
- package/dist/src/migrations/update-17-2-0/move-default-base.d.ts +0 -5
- package/dist/src/migrations/update-17-2-0/move-default-base.js +0 -20
- package/dist/src/migrations/update-17-3-0/update-nxw.d.ts +0 -2
- package/dist/src/migrations/update-17-3-0/update-nxw.js +0 -7
- package/dist/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.d.ts +0 -2
- package/dist/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.js +0 -11
- package/dist/src/migrations/update-19-2-0/move-workspace-data-directory.d.ts +0 -4
- package/dist/src/migrations/update-19-2-0/move-workspace-data-directory.js +0 -33
- package/dist/src/migrations/update-19-2-4/set-project-name.d.ts +0 -2
- package/dist/src/migrations/update-19-2-4/set-project-name.js +0 -34
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.d.ts +0 -2
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.js +0 -25
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.md +0 -27
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.d.ts +0 -2
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.js +0 -20
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.md +0 -24
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.d.ts +0 -2
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.js +0 -38
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.md +0 -49
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.d.ts +0 -2
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.js +0 -101
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.md +0 -54
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.d.ts +0 -2
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.js +0 -38
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.md +0 -28
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.d.ts +0 -2
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.js +0 -17
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.md +0 -22
- package/dist/src/migrations/update-22-0-0/consolidate-release-tag-config.d.ts +0 -2
- package/dist/src/migrations/update-22-0-0/consolidate-release-tag-config.js +0 -100
- package/dist/src/migrations/update-22-0-0/release-version-config-changes.d.ts +0 -2
- package/dist/src/migrations/update-22-0-0/release-version-config-changes.js +0 -101
- package/dist/src/migrations/update-22-1-0/update-nx-wrapper.d.ts +0 -2
- package/dist/src/migrations/update-22-1-0/update-nx-wrapper.js +0 -7
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.d.ts +0 -2
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.js +0 -19
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.md +0 -11
- package/dist/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.d.ts +0 -2
- package/dist/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.js +0 -16
- package/dist/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.d.ts +0 -2
- package/dist/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.js +0 -16
- package/dist/src/migrations/update-22-6-0/enable-analytics-prompt.d.ts +0 -2
- package/dist/src/migrations/update-22-6-0/enable-analytics-prompt.js +0 -23
- package/dist/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts +0 -2
- package/dist/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.js +0 -16
- package/dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore.d.ts +0 -2
- package/dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore.js +0 -16
- package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.d.ts +0 -9
- package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.js +0 -18
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.d.ts +0 -12
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.js +0 -250
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.md +0 -50
- package/dist/src/migrations/utils/target-defaults.d.ts +0 -28
- package/dist/src/migrations/utils/target-defaults.js +0 -46
- package/dist/src/native/assert-supported-platform.d.ts +0 -1
- package/dist/src/native/assert-supported-platform.js +0 -39
- package/dist/src/native/browser.js +0 -1
- package/dist/src/native/index.d.ts +0 -858
- package/dist/src/native/index.js +0 -222
- package/dist/src/native/native-bindings.js +0 -642
- package/dist/src/native/native-file-cache-location.d.ts +0 -17
- package/dist/src/native/native-file-cache-location.js +0 -97
- package/dist/src/native/nx.openharmony-arm64.node +0 -0
- package/dist/src/native/nx.wasi-browser.js +0 -131
- package/dist/src/native/nx.wasi.cjs +0 -161
- package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
- package/dist/src/native/transform-objects.d.ts +0 -3
- package/dist/src/native/transform-objects.js +0 -51
- package/dist/src/native/wasi-worker-browser.mjs +0 -30
- package/dist/src/native/wasi-worker.mjs +0 -63
- package/dist/src/nx-cloud/debug-logger.d.ts +0 -1
- package/dist/src/nx-cloud/debug-logger.js +0 -8
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.d.ts +0 -14
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +0 -159
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +0 -41
- package/dist/src/nx-cloud/models/onboarding-status.d.ts +0 -1
- package/dist/src/nx-cloud/models/onboarding-status.js +0 -2
- package/dist/src/nx-cloud/nx-cloud-tasks-runner-shell.d.ts +0 -16
- package/dist/src/nx-cloud/nx-cloud-tasks-runner-shell.js +0 -41
- package/dist/src/nx-cloud/resolution-helpers.d.ts +0 -1
- package/dist/src/nx-cloud/resolution-helpers.js +0 -19
- package/dist/src/nx-cloud/update-manager.d.ts +0 -23
- package/dist/src/nx-cloud/update-manager.js +0 -267
- package/dist/src/nx-cloud/utilities/axios.d.ts +0 -4
- package/dist/src/nx-cloud/utilities/axios.js +0 -17
- package/dist/src/nx-cloud/utilities/client.d.ts +0 -10
- package/dist/src/nx-cloud/utilities/client.js +0 -42
- package/dist/src/nx-cloud/utilities/environment.d.ts +0 -3
- package/dist/src/nx-cloud/utilities/environment.js +0 -48
- package/dist/src/nx-cloud/utilities/get-cloud-options.d.ts +0 -5
- package/dist/src/nx-cloud/utilities/get-cloud-options.js +0 -26
- package/dist/src/nx-cloud/utilities/is-workspace-claimed.d.ts +0 -1
- package/dist/src/nx-cloud/utilities/is-workspace-claimed.js +0 -25
- package/dist/src/nx-cloud/utilities/onboarding.d.ts +0 -5
- package/dist/src/nx-cloud/utilities/onboarding.js +0 -31
- package/dist/src/nx-cloud/utilities/url-shorten.d.ts +0 -2
- package/dist/src/nx-cloud/utilities/url-shorten.js +0 -85
- package/dist/src/plugins/js/hasher/hasher.d.ts +0 -5
- package/dist/src/plugins/js/hasher/hasher.js +0 -51
- package/dist/src/plugins/js/index.d.ts +0 -4
- package/dist/src/plugins/js/index.js +0 -201
- package/dist/src/plugins/js/lock-file/bun-parser.d.ts +0 -14
- package/dist/src/plugins/js/lock-file/bun-parser.js +0 -992
- package/dist/src/plugins/js/lock-file/lock-file.d.ts +0 -85
- package/dist/src/plugins/js/lock-file/lock-file.js +0 -442
- package/dist/src/plugins/js/lock-file/npm-parser.d.ts +0 -10
- package/dist/src/plugins/js/lock-file/npm-parser.js +0 -595
- package/dist/src/plugins/js/lock-file/pnpm-parser.d.ts +0 -10
- package/dist/src/plugins/js/lock-file/pnpm-parser.js +0 -1047
- package/dist/src/plugins/js/lock-file/project-graph-pruning.d.ts +0 -35
- package/dist/src/plugins/js/lock-file/project-graph-pruning.js +0 -290
- package/dist/src/plugins/js/lock-file/pruned-output.d.ts +0 -330
- package/dist/src/plugins/js/lock-file/pruned-output.js +0 -1441
- package/dist/src/plugins/js/lock-file/utils/package-json.d.ts +0 -10
- package/dist/src/plugins/js/lock-file/utils/package-json.js +0 -38
- package/dist/src/plugins/js/lock-file/utils/pnpm-normalizer.d.ts +0 -21
- package/dist/src/plugins/js/lock-file/utils/pnpm-normalizer.js +0 -875
- package/dist/src/plugins/js/lock-file/yarn-parser.d.ts +0 -10
- package/dist/src/plugins/js/lock-file/yarn-parser.js +0 -536
- package/dist/src/plugins/js/package-json/create-package-json.d.ts +0 -29
- package/dist/src/plugins/js/package-json/create-package-json.js +0 -312
- package/dist/src/plugins/js/project-graph/affected/lock-file-changes.d.ts +0 -3
- package/dist/src/plugins/js/project-graph/affected/lock-file-changes.js +0 -150
- package/dist/src/plugins/js/project-graph/affected/npm-packages.d.ts +0 -4
- package/dist/src/plugins/js/project-graph/affected/npm-packages.js +0 -124
- package/dist/src/plugins/js/project-graph/affected/touched-projects.d.ts +0 -2
- package/dist/src/plugins/js/project-graph/affected/touched-projects.js +0 -18
- package/dist/src/plugins/js/project-graph/affected/tsconfig-json-changes.d.ts +0 -4
- package/dist/src/plugins/js/project-graph/affected/tsconfig-json-changes.js +0 -63
- package/dist/src/plugins/js/project-graph/build-dependencies/build-dependencies.d.ts +0 -6
- package/dist/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +0 -45
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +0 -4
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +0 -88
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.d.ts +0 -4
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +0 -75
- package/dist/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts +0 -81
- package/dist/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +0 -464
- package/dist/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.d.ts +0 -2
- package/dist/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.js +0 -31
- package/dist/src/plugins/js/utils/config.d.ts +0 -2
- package/dist/src/plugins/js/utils/config.js +0 -61
- package/dist/src/plugins/js/utils/get-workspace-packages-from-graph.d.ts +0 -2
- package/dist/src/plugins/js/utils/get-workspace-packages-from-graph.js +0 -13
- package/dist/src/plugins/js/utils/packages.d.ts +0 -8
- package/dist/src/plugins/js/utils/packages.js +0 -91
- package/dist/src/plugins/js/utils/register.d.ts +0 -350
- package/dist/src/plugins/js/utils/register.js +0 -1270
- package/dist/src/plugins/js/utils/resolve-relative-to-dir.d.ts +0 -5
- package/dist/src/plugins/js/utils/resolve-relative-to-dir.js +0 -17
- package/dist/src/plugins/js/utils/typescript.d.ts +0 -32
- package/dist/src/plugins/js/utils/typescript.js +0 -157
- package/dist/src/plugins/js/versions.d.ts +0 -1
- package/dist/src/plugins/js/versions.js +0 -4
- package/dist/src/plugins/package-json/create-nodes.d.ts +0 -28
- package/dist/src/plugins/package-json/create-nodes.js +0 -243
- package/dist/src/plugins/package-json/index.d.ts +0 -2
- package/dist/src/plugins/package-json/index.js +0 -6
- package/dist/src/plugins/project-json/build-nodes/project-json.d.ts +0 -5
- package/dist/src/plugins/project-json/build-nodes/project-json.js +0 -33
- package/dist/src/project-graph/affected/affected-project-graph-models.d.ts +0 -11
- package/dist/src/project-graph/affected/affected-project-graph-models.js +0 -2
- package/dist/src/project-graph/affected/affected-project-graph.d.ts +0 -4
- package/dist/src/project-graph/affected/affected-project-graph.js +0 -90
- package/dist/src/project-graph/affected/locators/project-glob-changes.d.ts +0 -2
- package/dist/src/project-graph/affected/locators/project-glob-changes.js +0 -47
- package/dist/src/project-graph/affected/locators/workspace-json-changes.d.ts +0 -4
- package/dist/src/project-graph/affected/locators/workspace-json-changes.js +0 -47
- package/dist/src/project-graph/affected/locators/workspace-projects.d.ts +0 -3
- package/dist/src/project-graph/affected/locators/workspace-projects.js +0 -74
- package/dist/src/project-graph/build-project-graph.d.ts +0 -26
- package/dist/src/project-graph/build-project-graph.js +0 -309
- package/dist/src/project-graph/error-types.d.ts +0 -151
- package/dist/src/project-graph/error-types.js +0 -484
- package/dist/src/project-graph/file-map-utils.d.ts +0 -18
- package/dist/src/project-graph/file-map-utils.js +0 -61
- package/dist/src/project-graph/file-utils.d.ts +0 -31
- package/dist/src/project-graph/file-utils.js +0 -187
- package/dist/src/project-graph/nx-deps-cache.d.ts +0 -62
- package/dist/src/project-graph/nx-deps-cache.js +0 -345
- package/dist/src/project-graph/operators.d.ts +0 -11
- package/dist/src/project-graph/operators.js +0 -70
- package/dist/src/project-graph/plugins/get-plugins.d.ts +0 -51
- package/dist/src/project-graph/plugins/get-plugins.js +0 -401
- package/dist/src/project-graph/plugins/in-process-loader.d.ts +0 -10
- package/dist/src/project-graph/plugins/in-process-loader.js +0 -61
- package/dist/src/project-graph/plugins/index.d.ts +0 -4
- package/dist/src/project-graph/plugins/index.js +0 -12
- package/dist/src/project-graph/plugins/isolation/enabled.d.ts +0 -1
- package/dist/src/project-graph/plugins/isolation/enabled.js +0 -19
- package/dist/src/project-graph/plugins/isolation/index.d.ts +0 -1
- package/dist/src/project-graph/plugins/isolation/index.js +0 -5
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.d.ts +0 -79
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.js +0 -553
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.d.ts +0 -3
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.js +0 -24
- package/dist/src/project-graph/plugins/isolation/message-types.d.ts +0 -59
- package/dist/src/project-graph/plugins/isolation/message-types.js +0 -9
- package/dist/src/project-graph/plugins/isolation/messaging.d.ts +0 -155
- package/dist/src/project-graph/plugins/isolation/messaging.js +0 -87
- package/dist/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts +0 -82
- package/dist/src/project-graph/plugins/isolation/plugin-lifecycle-manager.js +0 -188
- package/dist/src/project-graph/plugins/isolation/plugin-worker.d.ts +0 -2
- package/dist/src/project-graph/plugins/isolation/plugin-worker.js +0 -221
- package/dist/src/project-graph/plugins/isolation/worker-streaming.d.ts +0 -14
- package/dist/src/project-graph/plugins/isolation/worker-streaming.js +0 -39
- package/dist/src/project-graph/plugins/load-resolved-plugin.d.ts +0 -3
- package/dist/src/project-graph/plugins/load-resolved-plugin.js +0 -24
- package/dist/src/project-graph/plugins/loaded-nx-plugin.d.ts +0 -41
- package/dist/src/project-graph/plugins/loaded-nx-plugin.js +0 -104
- package/dist/src/project-graph/plugins/public-api.d.ts +0 -139
- package/dist/src/project-graph/plugins/public-api.js +0 -4
- package/dist/src/project-graph/plugins/resolve-plugin.d.ts +0 -25
- package/dist/src/project-graph/plugins/resolve-plugin.js +0 -277
- package/dist/src/project-graph/plugins/tasks-execution-hooks.d.ts +0 -3
- package/dist/src/project-graph/plugins/tasks-execution-hooks.js +0 -67
- package/dist/src/project-graph/plugins/transpiler.d.ts +0 -20
- package/dist/src/project-graph/plugins/transpiler.js +0 -99
- package/dist/src/project-graph/plugins/utils.d.ts +0 -4
- package/dist/src/project-graph/plugins/utils.js +0 -32
- package/dist/src/project-graph/project-graph-builder.d.ts +0 -133
- package/dist/src/project-graph/project-graph-builder.js +0 -395
- package/dist/src/project-graph/project-graph.d.ts +0 -54
- package/dist/src/project-graph/project-graph.js +0 -460
- package/dist/src/project-graph/utils/build-all-workspace-files.d.ts +0 -2
- package/dist/src/project-graph/utils/build-all-workspace-files.js +0 -14
- package/dist/src/project-graph/utils/find-project-for-path.d.ts +0 -20
- package/dist/src/project-graph/utils/find-project-for-path.js +0 -55
- package/dist/src/project-graph/utils/implicit-project-dependencies.d.ts +0 -3
- package/dist/src/project-graph/utils/implicit-project-dependencies.js +0 -18
- package/dist/src/project-graph/utils/normalize-project-nodes.d.ts +0 -6
- package/dist/src/project-graph/utils/normalize-project-nodes.js +0 -117
- package/dist/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts +0 -48
- package/dist/src/project-graph/utils/project-configuration/name-substitution-manager.js +0 -270
- package/dist/src/project-graph/utils/project-configuration/project-nodes-manager.d.ts +0 -49
- package/dist/src/project-graph/utils/project-configuration/project-nodes-manager.js +0 -296
- package/dist/src/project-graph/utils/project-configuration/source-maps.d.ts +0 -34
- package/dist/src/project-graph/utils/project-configuration/source-maps.js +0 -85
- package/dist/src/project-graph/utils/project-configuration/target-defaults.d.ts +0 -50
- package/dist/src/project-graph/utils/project-configuration/target-defaults.js +0 -466
- package/dist/src/project-graph/utils/project-configuration/target-merging.d.ts +0 -32
- package/dist/src/project-graph/utils/project-configuration/target-merging.js +0 -507
- package/dist/src/project-graph/utils/project-configuration/target-normalization.d.ts +0 -12
- package/dist/src/project-graph/utils/project-configuration/target-normalization.js +0 -313
- package/dist/src/project-graph/utils/project-configuration/utils.d.ts +0 -38
- package/dist/src/project-graph/utils/project-configuration/utils.js +0 -215
- package/dist/src/project-graph/utils/project-configuration-utils.d.ts +0 -86
- package/dist/src/project-graph/utils/project-configuration-utils.js +0 -325
- package/dist/src/project-graph/utils/retrieve-workspace-files.d.ts +0 -35
- package/dist/src/project-graph/utils/retrieve-workspace-files.js +0 -110
- package/dist/src/tasks-runner/batch/batch-messages.d.ts +0 -35
- package/dist/src/tasks-runner/batch/batch-messages.js +0 -9
- package/dist/src/tasks-runner/batch/run-batch.d.ts +0 -1
- package/dist/src/tasks-runner/batch/run-batch.js +0 -78
- package/dist/src/tasks-runner/cache.d.ts +0 -94
- package/dist/src/tasks-runner/cache.js +0 -604
- package/dist/src/tasks-runner/create-task-graph.d.ts +0 -41
- package/dist/src/tasks-runner/create-task-graph.js +0 -305
- package/dist/src/tasks-runner/default-tasks-runner.d.ts +0 -25
- package/dist/src/tasks-runner/default-tasks-runner.js +0 -74
- package/dist/src/tasks-runner/fork.d.ts +0 -1
- package/dist/src/tasks-runner/fork.js +0 -73
- package/dist/src/tasks-runner/forked-process-task-runner.d.ts +0 -42
- package/dist/src/tasks-runner/forked-process-task-runner.js +0 -299
- package/dist/src/tasks-runner/init-tasks-runner.d.ts +0 -7
- package/dist/src/tasks-runner/init-tasks-runner.js +0 -86
- package/dist/src/tasks-runner/is-tui-enabled.d.ts +0 -18
- package/dist/src/tasks-runner/is-tui-enabled.js +0 -93
- package/dist/src/tasks-runner/legacy-depends-on-warning.d.ts +0 -18
- package/dist/src/tasks-runner/legacy-depends-on-warning.js +0 -109
- package/dist/src/tasks-runner/life-cycle.d.ts +0 -86
- package/dist/src/tasks-runner/life-cycle.js +0 -148
- package/dist/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +0 -25
- package/dist/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -366
- package/dist/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts +0 -24
- package/dist/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +0 -238
- package/dist/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.d.ts +0 -5
- package/dist/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +0 -16
- package/dist/src/tasks-runner/life-cycles/formatting-utils.d.ts +0 -3
- package/dist/src/tasks-runner/life-cycles/formatting-utils.js +0 -55
- package/dist/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.d.ts +0 -13
- package/dist/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.js +0 -67
- package/dist/src/tasks-runner/life-cycles/performance-analysis.d.ts +0 -173
- package/dist/src/tasks-runner/life-cycles/performance-analysis.js +0 -508
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.d.ts +0 -59
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.js +0 -193
- package/dist/src/tasks-runner/life-cycles/performance-report.d.ts +0 -77
- package/dist/src/tasks-runner/life-cycles/performance-report.js +0 -428
- package/dist/src/tasks-runner/life-cycles/pretty-time.d.ts +0 -4
- package/dist/src/tasks-runner/life-cycles/pretty-time.js +0 -73
- package/dist/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts +0 -54
- package/dist/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +0 -203
- package/dist/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts +0 -54
- package/dist/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +0 -193
- package/dist/src/tasks-runner/life-cycles/store-run-information-life-cycle.d.ts +0 -17
- package/dist/src/tasks-runner/life-cycles/store-run-information-life-cycle.js +0 -87
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts +0 -11
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +0 -91
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts +0 -16
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle.js +0 -112
- package/dist/src/tasks-runner/life-cycles/task-profiling-life-cycle.d.ts +0 -14
- package/dist/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +0 -73
- package/dist/src/tasks-runner/life-cycles/task-results-life-cycle.d.ts +0 -6
- package/dist/src/tasks-runner/life-cycles/task-results-life-cycle.js +0 -17
- package/dist/src/tasks-runner/life-cycles/task-telemetry-life-cycle.d.ts +0 -9
- package/dist/src/tasks-runner/life-cycles/task-telemetry-life-cycle.js +0 -42
- package/dist/src/tasks-runner/life-cycles/task-timings-life-cycle.d.ts +0 -8
- package/dist/src/tasks-runner/life-cycles/task-timings-life-cycle.js +0 -39
- package/dist/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts +0 -19
- package/dist/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +0 -339
- package/dist/src/tasks-runner/life-cycles/view-logs-utils.d.ts +0 -1
- package/dist/src/tasks-runner/life-cycles/view-logs-utils.js +0 -15
- package/dist/src/tasks-runner/process-metrics-service.d.ts +0 -53
- package/dist/src/tasks-runner/process-metrics-service.js +0 -161
- package/dist/src/tasks-runner/pseudo-ipc.d.ts +0 -48
- package/dist/src/tasks-runner/pseudo-ipc.js +0 -157
- package/dist/src/tasks-runner/pseudo-terminal.d.ts +0 -72
- package/dist/src/tasks-runner/pseudo-terminal.js +0 -209
- package/dist/src/tasks-runner/remove-old-cache-records.d.ts +0 -1
- package/dist/src/tasks-runner/remove-old-cache-records.js +0 -60
- package/dist/src/tasks-runner/run-command.d.ts +0 -42
- package/dist/src/tasks-runner/run-command.js +0 -895
- package/dist/src/tasks-runner/running-tasks/batch-process.d.ts +0 -74
- package/dist/src/tasks-runner/running-tasks/batch-process.js +0 -263
- package/dist/src/tasks-runner/running-tasks/node-child-process.d.ts +0 -40
- package/dist/src/tasks-runner/running-tasks/node-child-process.js +0 -175
- package/dist/src/tasks-runner/running-tasks/noop-child-process.d.ts +0 -16
- package/dist/src/tasks-runner/running-tasks/noop-child-process.js +0 -22
- package/dist/src/tasks-runner/running-tasks/output-prefix.d.ts +0 -13
- package/dist/src/tasks-runner/running-tasks/output-prefix.js +0 -63
- package/dist/src/tasks-runner/running-tasks/running-task.d.ts +0 -11
- package/dist/src/tasks-runner/running-tasks/running-task.js +0 -6
- package/dist/src/tasks-runner/running-tasks/shared-running-task.d.ts +0 -14
- package/dist/src/tasks-runner/running-tasks/shared-running-task.js +0 -30
- package/dist/src/tasks-runner/task-env-paths.d.ts +0 -1
- package/dist/src/tasks-runner/task-env-paths.js +0 -45
- package/dist/src/tasks-runner/task-env.d.ts +0 -56
- package/dist/src/tasks-runner/task-env.js +0 -237
- package/dist/src/tasks-runner/task-graph-utils.d.ts +0 -30
- package/dist/src/tasks-runner/task-graph-utils.js +0 -225
- package/dist/src/tasks-runner/task-io-service.d.ts +0 -96
- package/dist/src/tasks-runner/task-io-service.js +0 -122
- package/dist/src/tasks-runner/task-orchestrator.d.ts +0 -260
- package/dist/src/tasks-runner/task-orchestrator.js +0 -1521
- package/dist/src/tasks-runner/tasks-runner.d.ts +0 -24
- package/dist/src/tasks-runner/tasks-runner.js +0 -2
- package/dist/src/tasks-runner/tasks-schedule.d.ts +0 -48
- package/dist/src/tasks-runner/tasks-schedule.js +0 -258
- package/dist/src/tasks-runner/utils.d.ts +0 -61
- package/dist/src/tasks-runner/utils.js +0 -447
- package/dist/src/utils/ab-testing.d.ts +0 -59
- package/dist/src/utils/ab-testing.js +0 -142
- package/dist/src/utils/acknowledge-build-scripts.d.ts +0 -13
- package/dist/src/utils/acknowledge-build-scripts.js +0 -102
- package/dist/src/utils/all-file-data.d.ts +0 -2
- package/dist/src/utils/all-file-data.js +0 -8
- package/dist/src/utils/analytics-enabled.d.ts +0 -7
- package/dist/src/utils/analytics-enabled.js +0 -11
- package/dist/src/utils/analytics-prompt.d.ts +0 -9
- package/dist/src/utils/analytics-prompt.js +0 -81
- package/dist/src/utils/assert-workspace-validity.d.ts +0 -3
- package/dist/src/utils/assert-workspace-validity.js +0 -90
- package/dist/src/utils/async-iterator.d.ts +0 -2
- package/dist/src/utils/async-iterator.js +0 -18
- package/dist/src/utils/binary-extensions.d.ts +0 -1
- package/dist/src/utils/binary-extensions.js +0 -279
- package/dist/src/utils/cache-directory.d.ts +0 -68
- package/dist/src/utils/cache-directory.js +0 -337
- package/dist/src/utils/call-sites.d.ts +0 -14
- package/dist/src/utils/call-sites.js +0 -28
- package/dist/src/utils/catalog/bun-manager-utils.d.ts +0 -8
- package/dist/src/utils/catalog/bun-manager-utils.js +0 -174
- package/dist/src/utils/catalog/bun-manager.d.ts +0 -28
- package/dist/src/utils/catalog/bun-manager.js +0 -130
- package/dist/src/utils/catalog/index.d.ts +0 -22
- package/dist/src/utils/catalog/index.js +0 -87
- package/dist/src/utils/catalog/manager-factory.d.ts +0 -5
- package/dist/src/utils/catalog/manager-factory.js +0 -23
- package/dist/src/utils/catalog/manager-utils.d.ts +0 -15
- package/dist/src/utils/catalog/manager-utils.js +0 -237
- package/dist/src/utils/catalog/manager.d.ts +0 -52
- package/dist/src/utils/catalog/manager.js +0 -43
- package/dist/src/utils/catalog/pnpm-manager.d.ts +0 -23
- package/dist/src/utils/catalog/pnpm-manager.js +0 -142
- package/dist/src/utils/catalog/types.d.ts +0 -15
- package/dist/src/utils/catalog/types.js +0 -2
- package/dist/src/utils/catalog/yarn-manager.d.ts +0 -26
- package/dist/src/utils/catalog/yarn-manager.js +0 -130
- package/dist/src/utils/child-process.d.ts +0 -52
- package/dist/src/utils/child-process.js +0 -194
- package/dist/src/utils/chunkify.d.ts +0 -17
- package/dist/src/utils/chunkify.js +0 -51
- package/dist/src/utils/code-frames.d.ts +0 -14
- package/dist/src/utils/code-frames.js +0 -116
- package/dist/src/utils/collapse-expanded-outputs.d.ts +0 -10
- package/dist/src/utils/collapse-expanded-outputs.js +0 -72
- package/dist/src/utils/command-line-utils.d.ts +0 -57
- package/dist/src/utils/command-line-utils.js +0 -259
- package/dist/src/utils/compile-cache.d.ts +0 -24
- package/dist/src/utils/compile-cache.js +0 -49
- package/dist/src/utils/consume-messages-from-socket.d.ts +0 -44
- package/dist/src/utils/consume-messages-from-socket.js +0 -291
- package/dist/src/utils/db-connection.d.ts +0 -14
- package/dist/src/utils/db-connection.js +0 -56
- package/dist/src/utils/default-base.d.ts +0 -1
- package/dist/src/utils/default-base.js +0 -17
- package/dist/src/utils/delayed-spinner.d.ts +0 -51
- package/dist/src/utils/delayed-spinner.js +0 -88
- package/dist/src/utils/dotenv.d.ts +0 -7
- package/dist/src/utils/dotenv.js +0 -19
- package/dist/src/utils/enable-compile-cache.d.ts +0 -1
- package/dist/src/utils/enable-compile-cache.js +0 -7
- package/dist/src/utils/exit-codes.d.ts +0 -24
- package/dist/src/utils/exit-codes.js +0 -94
- package/dist/src/utils/fileutils.d.ts +0 -72
- package/dist/src/utils/fileutils.js +0 -117
- package/dist/src/utils/find-matching-projects.d.ts +0 -18
- package/dist/src/utils/find-matching-projects.js +0 -222
- package/dist/src/utils/find-workspace-root.d.ts +0 -11
- package/dist/src/utils/find-workspace-root.js +0 -33
- package/dist/src/utils/formatters/index.d.ts +0 -13
- package/dist/src/utils/formatters/index.js +0 -74
- package/dist/src/utils/formatters/oxfmt.d.ts +0 -32
- package/dist/src/utils/formatters/oxfmt.js +0 -764
- package/dist/src/utils/formatters/prettier.d.ts +0 -26
- package/dist/src/utils/formatters/prettier.js +0 -201
- package/dist/src/utils/formatters/shared.d.ts +0 -5
- package/dist/src/utils/formatters/shared.js +0 -8
- package/dist/src/utils/get-package-name-from-import-path.d.ts +0 -1
- package/dist/src/utils/get-package-name-from-import-path.js +0 -17
- package/dist/src/utils/git-revision.d.ts +0 -12
- package/dist/src/utils/git-revision.js +0 -25
- package/dist/src/utils/git-utils.d.ts +0 -106
- package/dist/src/utils/git-utils.index-filter.d.ts +0 -1
- package/dist/src/utils/git-utils.index-filter.js +0 -23
- package/dist/src/utils/git-utils.js +0 -933
- package/dist/src/utils/git-utils.tree-filter.d.ts +0 -1
- package/dist/src/utils/git-utils.tree-filter.js +0 -47
- package/dist/src/utils/git-worktrees.d.ts +0 -30
- package/dist/src/utils/git-worktrees.js +0 -212
- package/dist/src/utils/globs.d.ts +0 -3
- package/dist/src/utils/globs.js +0 -18
- package/dist/src/utils/handle-errors.d.ts +0 -1
- package/dist/src/utils/handle-errors.js +0 -91
- package/dist/src/utils/handle-import.d.ts +0 -15
- package/dist/src/utils/handle-import.js +0 -86
- package/dist/src/utils/has-nx-js-plugin.d.ts +0 -9
- package/dist/src/utils/has-nx-js-plugin.js +0 -24
- package/dist/src/utils/ignore.d.ts +0 -178
- package/dist/src/utils/ignore.js +0 -294
- package/dist/src/utils/installation-directory.d.ts +0 -2
- package/dist/src/utils/installation-directory.js +0 -12
- package/dist/src/utils/installed-nx-version.d.ts +0 -23
- package/dist/src/utils/installed-nx-version.js +0 -113
- package/dist/src/utils/is-ci.d.ts +0 -1
- package/dist/src/utils/is-ci.js +0 -26
- package/dist/src/utils/is-sandbox.d.ts +0 -1
- package/dist/src/utils/is-sandbox.js +0 -11
- package/dist/src/utils/json-diff.d.ts +0 -18
- package/dist/src/utils/json-diff.js +0 -112
- package/dist/src/utils/json.d.ts +0 -44
- package/dist/src/utils/json.js +0 -62
- package/dist/src/utils/kill-child-on-host-exit.d.ts +0 -7
- package/dist/src/utils/kill-child-on-host-exit.js +0 -42
- package/dist/src/utils/legacy-task-history.d.ts +0 -8
- package/dist/src/utils/legacy-task-history.js +0 -87
- package/dist/src/utils/logger.d.ts +0 -23
- package/dist/src/utils/logger.js +0 -74
- package/dist/src/utils/long-running-target.d.ts +0 -10
- package/dist/src/utils/long-running-target.js +0 -19
- package/dist/src/utils/machine-id-cache.d.ts +0 -5
- package/dist/src/utils/machine-id-cache.js +0 -93
- package/dist/src/utils/min-release-age/behavior/bun.d.ts +0 -30
- package/dist/src/utils/min-release-age/behavior/bun.js +0 -274
- package/dist/src/utils/min-release-age/behavior/npm.d.ts +0 -21
- package/dist/src/utils/min-release-age/behavior/npm.js +0 -296
- package/dist/src/utils/min-release-age/behavior/pnpm.d.ts +0 -23
- package/dist/src/utils/min-release-age/behavior/pnpm.js +0 -527
- package/dist/src/utils/min-release-age/behavior/yarn.d.ts +0 -22
- package/dist/src/utils/min-release-age/behavior/yarn.js +0 -314
- package/dist/src/utils/min-release-age/constants.d.ts +0 -3
- package/dist/src/utils/min-release-age/constants.js +0 -8
- package/dist/src/utils/min-release-age/errors.d.ts +0 -28
- package/dist/src/utils/min-release-age/errors.js +0 -22
- package/dist/src/utils/min-release-age/packument.d.ts +0 -13
- package/dist/src/utils/min-release-age/packument.js +0 -34
- package/dist/src/utils/min-release-age/pick.d.ts +0 -72
- package/dist/src/utils/min-release-age/pick.js +0 -206
- package/dist/src/utils/min-release-age/pnpm-exclude-writer.d.ts +0 -12
- package/dist/src/utils/min-release-age/pnpm-exclude-writer.js +0 -58
- package/dist/src/utils/min-release-age/policy.d.ts +0 -38
- package/dist/src/utils/min-release-age/policy.js +0 -59
- package/dist/src/utils/min-release-age/resolve.d.ts +0 -8
- package/dist/src/utils/min-release-age/resolve.js +0 -14
- package/dist/src/utils/nx-cloud-utils.d.ts +0 -4
- package/dist/src/utils/nx-cloud-utils.js +0 -28
- package/dist/src/utils/nx-console-prompt.d.ts +0 -1
- package/dist/src/utils/nx-console-prompt.js +0 -61
- package/dist/src/utils/nx-key.d.ts +0 -6
- package/dist/src/utils/nx-key.js +0 -50
- package/dist/src/utils/nx-package-group.d.ts +0 -8
- package/dist/src/utils/nx-package-group.js +0 -15
- package/dist/src/utils/nx-tmp-dir.d.ts +0 -23
- package/dist/src/utils/nx-tmp-dir.js +0 -45
- package/dist/src/utils/object-sort.d.ts +0 -1
- package/dist/src/utils/object-sort.js +0 -9
- package/dist/src/utils/output.d.ts +0 -232
- package/dist/src/utils/output.js +0 -548
- package/dist/src/utils/owned-private-dir.d.ts +0 -145
- package/dist/src/utils/owned-private-dir.js +0 -362
- package/dist/src/utils/package-json.d.ts +0 -231
- package/dist/src/utils/package-json.js +0 -387
- package/dist/src/utils/package-manager-config/bunfig.d.ts +0 -14
- package/dist/src/utils/package-manager-config/bunfig.js +0 -49
- package/dist/src/utils/package-manager-config/npmrc.d.ts +0 -23
- package/dist/src/utils/package-manager-config/npmrc.js +0 -124
- package/dist/src/utils/package-manager-config/pnpm-config.d.ts +0 -17
- package/dist/src/utils/package-manager-config/pnpm-config.js +0 -60
- package/dist/src/utils/package-manager.d.ts +0 -161
- package/dist/src/utils/package-manager.js +0 -850
- package/dist/src/utils/params.d.ts +0 -146
- package/dist/src/utils/params.js +0 -768
- package/dist/src/utils/path.d.ts +0 -19
- package/dist/src/utils/path.js +0 -38
- package/dist/src/utils/perf-hooks.d.ts +0 -19
- package/dist/src/utils/perf-logging.d.ts +0 -1
- package/dist/src/utils/perf-logging.js +0 -46
- package/dist/src/utils/permission-errors.d.ts +0 -11
- package/dist/src/utils/permission-errors.js +0 -17
- package/dist/src/utils/plugin-cache-utils.d.ts +0 -82
- package/dist/src/utils/plugin-cache-utils.js +0 -212
- package/dist/src/utils/plugin-progress-text.d.ts +0 -1
- package/dist/src/utils/plugin-progress-text.js +0 -15
- package/dist/src/utils/plugins/atomizer-utils.d.ts +0 -11
- package/dist/src/utils/plugins/atomizer-utils.js +0 -23
- package/dist/src/utils/plugins/core-plugins.d.ts +0 -6
- package/dist/src/utils/plugins/core-plugins.js +0 -117
- package/dist/src/utils/plugins/index.d.ts +0 -5
- package/dist/src/utils/plugins/index.js +0 -15
- package/dist/src/utils/plugins/installed-plugins.d.ts +0 -5
- package/dist/src/utils/plugins/installed-plugins.js +0 -76
- package/dist/src/utils/plugins/local-plugins.d.ts +0 -22
- package/dist/src/utils/plugins/local-plugins.js +0 -60
- package/dist/src/utils/plugins/output.d.ts +0 -34
- package/dist/src/utils/plugins/output.js +0 -201
- package/dist/src/utils/plugins/plugin-capabilities.d.ts +0 -15
- package/dist/src/utils/plugins/plugin-capabilities.js +0 -78
- package/dist/src/utils/pnpm-workspace.d.ts +0 -8
- package/dist/src/utils/pnpm-workspace.js +0 -2
- package/dist/src/utils/print-help.d.ts +0 -11
- package/dist/src/utils/print-help.js +0 -259
- package/dist/src/utils/progress-topics.d.ts +0 -19
- package/dist/src/utils/progress-topics.js +0 -21
- package/dist/src/utils/project-graph-utils.d.ts +0 -18
- package/dist/src/utils/project-graph-utils.js +0 -78
- package/dist/src/utils/promised-based-queue.d.ts +0 -6
- package/dist/src/utils/promised-based-queue.js +0 -43
- package/dist/src/utils/prompt-helpers.d.ts +0 -53
- package/dist/src/utils/prompt-helpers.js +0 -111
- package/dist/src/utils/provenance.d.ts +0 -47
- package/dist/src/utils/provenance.js +0 -107
- package/dist/src/utils/registry-config/bun.d.ts +0 -2
- package/dist/src/utils/registry-config/bun.js +0 -257
- package/dist/src/utils/registry-config/index.d.ts +0 -13
- package/dist/src/utils/registry-config/index.js +0 -102
- package/dist/src/utils/registry-config/pnpm.d.ts +0 -2
- package/dist/src/utils/registry-config/pnpm.js +0 -1551
- package/dist/src/utils/registry-config/utils.d.ts +0 -195
- package/dist/src/utils/registry-config/utils.js +0 -496
- package/dist/src/utils/registry-config/yarn-berry.d.ts +0 -2
- package/dist/src/utils/registry-config/yarn-berry.js +0 -612
- package/dist/src/utils/registry-config/yarn-classic.d.ts +0 -2
- package/dist/src/utils/registry-config/yarn-classic.js +0 -1001
- package/dist/src/utils/require-nx-key.d.ts +0 -1
- package/dist/src/utils/require-nx-key.js +0 -23
- package/dist/src/utils/safe-spawn.d.ts +0 -24
- package/dist/src/utils/safe-spawn.js +0 -104
- package/dist/src/utils/serializable-error.d.ts +0 -4
- package/dist/src/utils/serializable-error.js +0 -33
- package/dist/src/utils/serialize-overrides-into-command-line.d.ts +0 -3
- package/dist/src/utils/serialize-overrides-into-command-line.js +0 -41
- package/dist/src/utils/serialize-target.d.ts +0 -1
- package/dist/src/utils/serialize-target.js +0 -6
- package/dist/src/utils/shell-quoting.d.ts +0 -25
- package/dist/src/utils/shell-quoting.js +0 -76
- package/dist/src/utils/socket-refused-exit-code.d.ts +0 -15
- package/dist/src/utils/socket-refused-exit-code.js +0 -18
- package/dist/src/utils/spinner.d.ts +0 -24
- package/dist/src/utils/spinner.js +0 -77
- package/dist/src/utils/split-target.d.ts +0 -15
- package/dist/src/utils/split-target.js +0 -239
- package/dist/src/utils/strip-indents.d.ts +0 -14
- package/dist/src/utils/strip-indents.js +0 -23
- package/dist/src/utils/sync-generators.d.ts +0 -66
- package/dist/src/utils/sync-generators.js +0 -355
- package/dist/src/utils/tar.d.ts +0 -8
- package/dist/src/utils/tar.js +0 -44
- package/dist/src/utils/task-history.d.ts +0 -17
- package/dist/src/utils/task-history.js +0 -51
- package/dist/src/utils/terminal-link.d.ts +0 -20
- package/dist/src/utils/terminal-link.js +0 -85
- package/dist/src/utils/update-nxw.d.ts +0 -2
- package/dist/src/utils/update-nxw.js +0 -22
- package/dist/src/utils/versions.d.ts +0 -1
- package/dist/src/utils/versions.js +0 -4
- package/dist/src/utils/wait-for-socket-connection.d.ts +0 -26
- package/dist/src/utils/wait-for-socket-connection.js +0 -59
- package/dist/src/utils/workspace-context.d.ts +0 -21
- package/dist/src/utils/workspace-context.js +0 -120
- package/dist/src/utils/workspace-id.d.ts +0 -20
- package/dist/src/utils/workspace-id.js +0 -54
- package/dist/src/utils/workspace-root.d.ts +0 -6
- package/dist/src/utils/workspace-root.js +0 -40
- package/dist/src/utils/write-formatted-json-file.d.ts +0 -7
- package/dist/src/utils/write-formatted-json-file.js +0 -24
- package/dist/src/utils/yarn-syml/index.d.ts +0 -23
- package/dist/src/utils/yarn-syml/index.js +0 -151
- package/dist/src/utils/yarn-syml/syml-grammar.js +0 -1911
- package/dist/tasks-runners/default.d.ts +0 -1
- package/dist/tasks-runners/default.js +0 -5
- package/executors.json +0 -19
- package/generators.json +0 -16
- package/migrations.json +0 -195
- package/schemas/migrations-schema.json +0 -186
- package/schemas/nx-schema.json +0 -1615
- package/schemas/project-schema.json +0 -426
- package/schemas/workspace-schema.json +0 -185
|
@@ -1,1255 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.daemonClient = exports.DaemonClient = exports.WatcherFailedError = void 0;
|
|
4
|
-
exports.isDaemonEnabled = isDaemonEnabled;
|
|
5
|
-
exports.daemonPermissionException = daemonPermissionException;
|
|
6
|
-
exports.daemonProcessException = daemonProcessException;
|
|
7
|
-
const child_process_1 = require("child_process");
|
|
8
|
-
const net_1 = require("net");
|
|
9
|
-
const node_fs_1 = require("node:fs");
|
|
10
|
-
const path_1 = require("path");
|
|
11
|
-
const perf_hooks_1 = require("perf_hooks");
|
|
12
|
-
const configuration_1 = require("../../config/configuration");
|
|
13
|
-
const nx_json_1 = require("../../config/nx-json");
|
|
14
|
-
const native_1 = require("../../native");
|
|
15
|
-
const error_types_1 = require("../../project-graph/error-types");
|
|
16
|
-
const typescript_1 = require("../../plugins/js/utils/typescript");
|
|
17
|
-
const project_graph_1 = require("../../project-graph/project-graph");
|
|
18
|
-
const consume_messages_from_socket_1 = require("../../utils/consume-messages-from-socket");
|
|
19
|
-
const delayed_spinner_1 = require("../../utils/delayed-spinner");
|
|
20
|
-
const handle_import_1 = require("../../utils/handle-import");
|
|
21
|
-
const is_ci_1 = require("../../utils/is-ci");
|
|
22
|
-
const is_sandbox_1 = require("../../utils/is-sandbox");
|
|
23
|
-
const output_1 = require("../../utils/output");
|
|
24
|
-
const permission_errors_1 = require("../../utils/permission-errors");
|
|
25
|
-
const promised_based_queue_1 = require("../../utils/promised-based-queue");
|
|
26
|
-
const wait_for_socket_connection_1 = require("../../utils/wait-for-socket-connection");
|
|
27
|
-
const workspace_root_1 = require("../../utils/workspace-root");
|
|
28
|
-
const cache_1 = require("../cache");
|
|
29
|
-
const is_nx_version_mismatch_1 = require("../is-nx-version-mismatch");
|
|
30
|
-
const logger_1 = require("../logger");
|
|
31
|
-
const configure_ai_agents_1 = require("../message-types/configure-ai-agents");
|
|
32
|
-
const flush_sync_generator_changes_to_disk_1 = require("../message-types/flush-sync-generator-changes-to-disk");
|
|
33
|
-
const get_context_file_data_1 = require("../message-types/get-context-file-data");
|
|
34
|
-
const get_files_in_directory_1 = require("../message-types/get-files-in-directory");
|
|
35
|
-
const get_nx_workspace_files_1 = require("../message-types/get-nx-workspace-files");
|
|
36
|
-
const get_registered_sync_generators_1 = require("../message-types/get-registered-sync-generators");
|
|
37
|
-
const get_sync_generator_changes_1 = require("../message-types/get-sync-generator-changes");
|
|
38
|
-
const hash_glob_1 = require("../message-types/hash-glob");
|
|
39
|
-
const nx_console_1 = require("../message-types/nx-console");
|
|
40
|
-
const register_project_graph_listener_1 = require("../message-types/register-project-graph-listener");
|
|
41
|
-
const run_tasks_execution_hooks_1 = require("../message-types/run-tasks-execution-hooks");
|
|
42
|
-
const streaming_messages_1 = require("../message-types/streaming-messages");
|
|
43
|
-
const task_history_1 = require("../message-types/task-history");
|
|
44
|
-
const update_workspace_context_1 = require("../message-types/update-workspace-context");
|
|
45
|
-
const tmp_dir_1 = require("../tmp-dir");
|
|
46
|
-
const sandbox_socket_hint_1 = require("../sandbox-socket-hint");
|
|
47
|
-
const socket_refused_exit_code_1 = require("../../utils/socket-refused-exit-code");
|
|
48
|
-
const daemon_socket_messenger_1 = require("./daemon-socket-messenger");
|
|
49
|
-
const daemon_environment_1 = require("./daemon-environment");
|
|
50
|
-
var DaemonStatus;
|
|
51
|
-
(function (DaemonStatus) {
|
|
52
|
-
DaemonStatus[DaemonStatus["CONNECTING"] = 0] = "CONNECTING";
|
|
53
|
-
DaemonStatus[DaemonStatus["DISCONNECTED"] = 1] = "DISCONNECTED";
|
|
54
|
-
DaemonStatus[DaemonStatus["CONNECTED"] = 2] = "CONNECTED";
|
|
55
|
-
})(DaemonStatus || (DaemonStatus = {}));
|
|
56
|
-
const WAIT_FOR_SERVER_CONFIG = {
|
|
57
|
-
delayMs: 10,
|
|
58
|
-
maxAttempts: 6000, // 6000 * 10ms = 60 seconds
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* The daemon's workspace watcher died. Nothing it serves will see file changes
|
|
62
|
-
* again, so a watching client has to restart rather than keep waiting.
|
|
63
|
-
*/
|
|
64
|
-
class WatcherFailedError extends Error {
|
|
65
|
-
constructor(message) {
|
|
66
|
-
super(message);
|
|
67
|
-
this.name = 'WatcherFailedError';
|
|
68
|
-
Object.setPrototypeOf(this, WatcherFailedError.prototype);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.WatcherFailedError = WatcherFailedError;
|
|
72
|
-
/**
|
|
73
|
-
* A framing failure repeats on every redial, so the watcher channels stop
|
|
74
|
-
* re-dialing once this many land back to back without a message in between.
|
|
75
|
-
*/
|
|
76
|
-
const MAX_CONSECUTIVE_FRAMING_FAILURES = 3;
|
|
77
|
-
class DaemonClient {
|
|
78
|
-
constructor() {
|
|
79
|
-
// Tracks the spinner owned by the in-flight request so streamed
|
|
80
|
-
// progress updates are routed to the caller's spinner instead of
|
|
81
|
-
// mutating the process-wide globalSpinner (which may belong to an
|
|
82
|
-
// unrelated command).
|
|
83
|
-
this.currentSpinner = null;
|
|
84
|
-
this._daemonStatus = DaemonStatus.DISCONNECTED;
|
|
85
|
-
this._waitForDaemonReady = null;
|
|
86
|
-
this._daemonReady = null;
|
|
87
|
-
this.fileWatcherReconnecting = false;
|
|
88
|
-
this.fileWatcherFramingFailures = 0;
|
|
89
|
-
this.fileWatcherCallbacks = new Map();
|
|
90
|
-
this.fileWatcherConfigs = new Map();
|
|
91
|
-
this.projectGraphListenerReconnecting = false;
|
|
92
|
-
this.projectGraphListenerFramingFailures = 0;
|
|
93
|
-
this.projectGraphListenerCallbacks = new Map();
|
|
94
|
-
this.envReflectionSent = false;
|
|
95
|
-
try {
|
|
96
|
-
this.nxJson = (0, configuration_1.readNxJson)();
|
|
97
|
-
}
|
|
98
|
-
catch (e) {
|
|
99
|
-
this.nxJson = null;
|
|
100
|
-
}
|
|
101
|
-
this.reset();
|
|
102
|
-
}
|
|
103
|
-
enabled() {
|
|
104
|
-
if (this._enabled === undefined) {
|
|
105
|
-
const useDaemonProcessOption = this.nxJson?.useDaemonProcess;
|
|
106
|
-
const env = process.env.NX_DAEMON;
|
|
107
|
-
// env takes precedence
|
|
108
|
-
// option=true,env=false => no daemon
|
|
109
|
-
// option=false,env=undefined => no daemon
|
|
110
|
-
// option=false,env=false => no daemon
|
|
111
|
-
// option=undefined,env=undefined => daemon
|
|
112
|
-
// option=true,env=true => daemon
|
|
113
|
-
// option=false,env=true => daemon
|
|
114
|
-
// CI=true,env=undefined => no daemon
|
|
115
|
-
// CI=true,env=false => no daemon
|
|
116
|
-
// CI=true,env=true => daemon
|
|
117
|
-
// docker=true,env=undefined => no daemon
|
|
118
|
-
// docker=true,env=false => no daemon
|
|
119
|
-
// docker=true,env=true => daemon
|
|
120
|
-
// WASM => no daemon because file watching does not work
|
|
121
|
-
// version mismatch => no daemon because the installed nx version differs from the running one
|
|
122
|
-
if ((0, is_nx_version_mismatch_1.isNxVersionMismatch)() ||
|
|
123
|
-
(((0, is_ci_1.isCI)() || isDocker()) && env !== 'true') ||
|
|
124
|
-
(0, tmp_dir_1.isDaemonDisabled)() ||
|
|
125
|
-
nxJsonIsNotPresent() ||
|
|
126
|
-
(useDaemonProcessOption === undefined && env === 'false') ||
|
|
127
|
-
(useDaemonProcessOption === true && env === 'false') ||
|
|
128
|
-
(useDaemonProcessOption === false && env === undefined) ||
|
|
129
|
-
(useDaemonProcessOption === false && env === 'false')) {
|
|
130
|
-
this._enabled = false;
|
|
131
|
-
}
|
|
132
|
-
else if (native_1.IS_WASM) {
|
|
133
|
-
output_1.output.warn({
|
|
134
|
-
title: 'The Nx Daemon is unsupported in WebAssembly environments. Some things may be slower than or not function as expected.',
|
|
135
|
-
});
|
|
136
|
-
this._enabled = false;
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
this._enabled = true;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return this._enabled;
|
|
143
|
-
}
|
|
144
|
-
reset() {
|
|
145
|
-
this.socketMessenger?.close();
|
|
146
|
-
this.socketMessenger = null;
|
|
147
|
-
this.queue = new promised_based_queue_1.PromisedBasedQueue();
|
|
148
|
-
this.currentMessage = null;
|
|
149
|
-
this.currentResolve = null;
|
|
150
|
-
this.currentReject = null;
|
|
151
|
-
this._enabled = undefined;
|
|
152
|
-
// Clean up file watcher and project graph listener connections
|
|
153
|
-
this.fileWatcherMessenger?.close();
|
|
154
|
-
this.fileWatcherMessenger = undefined;
|
|
155
|
-
this.projectGraphListenerMessenger?.close();
|
|
156
|
-
this.projectGraphListenerMessenger = undefined;
|
|
157
|
-
this._daemonStatus = DaemonStatus.DISCONNECTED;
|
|
158
|
-
this._waitForDaemonReady = new Promise((resolve) => (this._daemonReady = resolve));
|
|
159
|
-
}
|
|
160
|
-
getSocketPath() {
|
|
161
|
-
const daemonProcessJson = (0, cache_1.readDaemonProcessJsonCache)();
|
|
162
|
-
if (daemonProcessJson?.socketPath) {
|
|
163
|
-
return daemonProcessJson.socketPath;
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
throw daemonProcessException('Unable to connect to daemon: no socket path available');
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
async requestShutdown() {
|
|
170
|
-
return this.sendToDaemonViaQueue({ type: 'REQUEST_SHUTDOWN' });
|
|
171
|
-
}
|
|
172
|
-
async getProjectGraphAndSourceMaps() {
|
|
173
|
-
(0, project_graph_1.preventRecursionInGraphConstruction)();
|
|
174
|
-
let spinner;
|
|
175
|
-
// If the graph takes a while to load, we want to show a spinner.
|
|
176
|
-
spinner = new delayed_spinner_1.DelayedSpinner('Calculating the project graph on the Nx Daemon');
|
|
177
|
-
this.currentSpinner = spinner;
|
|
178
|
-
try {
|
|
179
|
-
const response = await this.sendToDaemonViaQueue({
|
|
180
|
-
type: 'REQUEST_PROJECT_GRAPH',
|
|
181
|
-
});
|
|
182
|
-
return {
|
|
183
|
-
projectGraph: response.projectGraph,
|
|
184
|
-
sourceMaps: response.sourceMaps,
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
catch (e) {
|
|
188
|
-
if (e.name === error_types_1.DaemonProjectGraphError.name) {
|
|
189
|
-
throw error_types_1.ProjectGraphError.fromDaemonProjectGraphError(e);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
throw e;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
finally {
|
|
196
|
-
spinner?.cleanup();
|
|
197
|
-
this.currentSpinner = null;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
async getAllFileData() {
|
|
201
|
-
return await this.sendToDaemonViaQueue({ type: 'REQUEST_FILE_DATA' });
|
|
202
|
-
}
|
|
203
|
-
hashTasks(runnerOptions, tasks, taskGraph, perTaskEnvs, cwd, collectInputs) {
|
|
204
|
-
// Task results get written back onto these task objects as the run
|
|
205
|
-
// progresses — hash/hashDetails/timestamps by hashing and the
|
|
206
|
-
// orchestrator, terminalOutput by the Nx Cloud life cycle (untyped) —
|
|
207
|
-
// so a later message would otherwise re-ship every earlier result.
|
|
208
|
-
const trimmedTasks = {};
|
|
209
|
-
for (const [id, t] of Object.entries(taskGraph.tasks)) {
|
|
210
|
-
const { hash, hashDetails, startTime, endTime, terminalOutput, ...strippedTask } = t;
|
|
211
|
-
trimmedTasks[id] = strippedTask;
|
|
212
|
-
}
|
|
213
|
-
return this.sendToDaemonViaQueue({
|
|
214
|
-
type: 'HASH_TASKS',
|
|
215
|
-
runnerOptions,
|
|
216
|
-
perTaskEnvs,
|
|
217
|
-
tasks: tasks.map((t) => trimmedTasks[t.id]),
|
|
218
|
-
taskGraph: { ...taskGraph, tasks: trimmedTasks },
|
|
219
|
-
cwd,
|
|
220
|
-
collectInputs,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
async registerFileWatcher(config, callback) {
|
|
224
|
-
try {
|
|
225
|
-
await this.getProjectGraphAndSourceMaps();
|
|
226
|
-
}
|
|
227
|
-
catch (e) {
|
|
228
|
-
if (config.allowPartialGraph && e instanceof error_types_1.ProjectGraphError) {
|
|
229
|
-
// we are fine with partial graph
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
throw e;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
// Generate unique ID for this callback
|
|
236
|
-
const callbackId = Math.random().toString(36).substring(2, 11);
|
|
237
|
-
// Store callback and config for reconnection
|
|
238
|
-
this.fileWatcherCallbacks.set(callbackId, callback);
|
|
239
|
-
this.fileWatcherConfigs.set(callbackId, config);
|
|
240
|
-
await this.queue.sendToQueue(async () => {
|
|
241
|
-
// If we already have a connection, just register the new config
|
|
242
|
-
if (this.fileWatcherMessenger) {
|
|
243
|
-
this.fileWatcherMessenger.sendMessage({
|
|
244
|
-
type: 'REGISTER_FILE_WATCHER',
|
|
245
|
-
config,
|
|
246
|
-
});
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
await this.startDaemonIfNecessary();
|
|
250
|
-
const socketPath = this.getSocketPath();
|
|
251
|
-
this.fileWatcherMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)(socketPath)).listen((message) => {
|
|
252
|
-
try {
|
|
253
|
-
const parsedMessage = (0, consume_messages_from_socket_1.parseMessage)(message);
|
|
254
|
-
// A delivered message means the stream is healthy again.
|
|
255
|
-
this.fileWatcherFramingFailures = 0;
|
|
256
|
-
if (parsedMessage?.watcherError) {
|
|
257
|
-
const error = new WatcherFailedError(parsedMessage.watcherError);
|
|
258
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
259
|
-
cb(error, null);
|
|
260
|
-
}
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
// Notify all callbacks
|
|
264
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
265
|
-
cb(null, parsedMessage);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
catch (e) {
|
|
269
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
270
|
-
cb(e, null);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}, () => {
|
|
274
|
-
// Connection closed - trigger reconnection
|
|
275
|
-
logger_1.clientLogger.log(`[FileWatcher] Socket closed, triggering reconnection`);
|
|
276
|
-
this.fileWatcherMessenger = undefined;
|
|
277
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
278
|
-
cb('reconnecting', null);
|
|
279
|
-
}
|
|
280
|
-
this.reconnectFileWatcher();
|
|
281
|
-
}, (err) => {
|
|
282
|
-
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
283
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
284
|
-
cb('closed', null);
|
|
285
|
-
}
|
|
286
|
-
process.exit(1);
|
|
287
|
-
}
|
|
288
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
289
|
-
cb(err, null);
|
|
290
|
-
}
|
|
291
|
-
if (err instanceof consume_messages_from_socket_1.MessageFramingError) {
|
|
292
|
-
this.fileWatcherFramingFailures++;
|
|
293
|
-
}
|
|
294
|
-
// Close so 'close' fires and the reconnect path runs; a framing
|
|
295
|
-
// failure would otherwise leave this channel silent forever.
|
|
296
|
-
this.fileWatcherMessenger?.close();
|
|
297
|
-
});
|
|
298
|
-
this.fileWatcherMessenger.sendMessage({
|
|
299
|
-
type: 'REGISTER_FILE_WATCHER',
|
|
300
|
-
config,
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
// Return unregister function
|
|
304
|
-
return () => {
|
|
305
|
-
this.fileWatcherCallbacks.delete(callbackId);
|
|
306
|
-
this.fileWatcherConfigs.delete(callbackId);
|
|
307
|
-
// If no more callbacks, close the connection
|
|
308
|
-
if (this.fileWatcherCallbacks.size === 0) {
|
|
309
|
-
this.fileWatcherMessenger?.close();
|
|
310
|
-
this.fileWatcherMessenger = undefined;
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
async reconnectFileWatcher() {
|
|
315
|
-
// Guard against concurrent reconnection attempts
|
|
316
|
-
if (this.fileWatcherReconnecting) {
|
|
317
|
-
return;
|
|
318
|
-
}
|
|
319
|
-
// The concurrency guard above is cleared before this method recurses, so it
|
|
320
|
-
// bounds overlap rather than iterations. A framing failure is deterministic
|
|
321
|
-
// — re-dialing replays it — so without this the channel would reconnect and
|
|
322
|
-
// re-fail forever. Reaching a payload over NX_MAX_MESSAGE_SIZE does exactly
|
|
323
|
-
// that on every notification.
|
|
324
|
-
if (this.fileWatcherFramingFailures >= MAX_CONSECUTIVE_FRAMING_FAILURES) {
|
|
325
|
-
logger_1.clientLogger.log(`[FileWatcher] Giving up after ${this.fileWatcherFramingFailures} consecutive framing failures`);
|
|
326
|
-
this.fileWatcherReconnecting = false;
|
|
327
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
328
|
-
cb('closed', null);
|
|
329
|
-
}
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
if (this.fileWatcherCallbacks.size === 0) {
|
|
333
|
-
return; // No callbacks to reconnect
|
|
334
|
-
}
|
|
335
|
-
this.fileWatcherReconnecting = true;
|
|
336
|
-
logger_1.clientLogger.log(`[FileWatcher] Starting reconnection for ${this.fileWatcherCallbacks.size} callbacks`);
|
|
337
|
-
// Wait for daemon server to be available before trying to reconnect
|
|
338
|
-
let serverAvailable;
|
|
339
|
-
try {
|
|
340
|
-
({ available: serverAvailable } = await this.waitForServerToBeAvailable({
|
|
341
|
-
ignoreVersionMismatch: false,
|
|
342
|
-
}));
|
|
343
|
-
}
|
|
344
|
-
catch (err) {
|
|
345
|
-
// Version mismatch - pass error to callbacks so they can handle it
|
|
346
|
-
logger_1.clientLogger.log(`[FileWatcher] Error during reconnection: ${err.message}`);
|
|
347
|
-
this.fileWatcherReconnecting = false;
|
|
348
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
349
|
-
cb(err, null);
|
|
350
|
-
}
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
if (!serverAvailable) {
|
|
354
|
-
// Failed to reconnect after all attempts - notify as closed
|
|
355
|
-
logger_1.clientLogger.log(`[FileWatcher] Failed to reconnect - server unavailable`);
|
|
356
|
-
this.fileWatcherReconnecting = false;
|
|
357
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
358
|
-
cb('closed', null);
|
|
359
|
-
}
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
|
-
try {
|
|
363
|
-
// Try to reconnect
|
|
364
|
-
const socketPath = this.getSocketPath();
|
|
365
|
-
this.fileWatcherMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)(socketPath)).listen((message) => {
|
|
366
|
-
try {
|
|
367
|
-
const parsedMessage = (0, consume_messages_from_socket_1.parseMessage)(message);
|
|
368
|
-
// A delivered message means the stream is healthy again.
|
|
369
|
-
this.fileWatcherFramingFailures = 0;
|
|
370
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
371
|
-
cb(null, parsedMessage);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
catch (e) {
|
|
375
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
376
|
-
cb(e, null);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}, () => {
|
|
380
|
-
// Connection closed - trigger reconnection again
|
|
381
|
-
this.fileWatcherMessenger = undefined;
|
|
382
|
-
// Reset reconnection flag before triggering reconnection
|
|
383
|
-
this.fileWatcherReconnecting = false;
|
|
384
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
385
|
-
cb('reconnecting', null);
|
|
386
|
-
}
|
|
387
|
-
this.reconnectFileWatcher();
|
|
388
|
-
}, (err) => {
|
|
389
|
-
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
390
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
391
|
-
cb('closed', null);
|
|
392
|
-
}
|
|
393
|
-
process.exit(1);
|
|
394
|
-
}
|
|
395
|
-
if (err instanceof consume_messages_from_socket_1.MessageFramingError) {
|
|
396
|
-
this.fileWatcherFramingFailures++;
|
|
397
|
-
}
|
|
398
|
-
// The retry loop is driven by 'close', which a framing failure does
|
|
399
|
-
// not emit, so close explicitly to hand off to it.
|
|
400
|
-
this.fileWatcherMessenger?.close();
|
|
401
|
-
});
|
|
402
|
-
// Re-register all stored configs
|
|
403
|
-
for (const cfg of this.fileWatcherConfigs.values()) {
|
|
404
|
-
this.fileWatcherMessenger.sendMessage({
|
|
405
|
-
type: 'REGISTER_FILE_WATCHER',
|
|
406
|
-
config: cfg,
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
// Successfully reconnected - notify callbacks
|
|
410
|
-
logger_1.clientLogger.log(`[FileWatcher] Reconnected successfully`);
|
|
411
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
412
|
-
cb('reconnected', null);
|
|
413
|
-
}
|
|
414
|
-
this.fileWatcherReconnecting = false;
|
|
415
|
-
}
|
|
416
|
-
catch (e) {
|
|
417
|
-
// Failed to reconnect - notify as closed
|
|
418
|
-
logger_1.clientLogger.log(`[FileWatcher] Reconnection failed: ${e.message}`);
|
|
419
|
-
this.fileWatcherReconnecting = false;
|
|
420
|
-
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
421
|
-
cb('closed', null);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
async registerProjectGraphRecomputationListener(callback) {
|
|
426
|
-
// Generate unique ID for this callback
|
|
427
|
-
const callbackId = Math.random().toString(36).substring(2, 11);
|
|
428
|
-
// Store callback
|
|
429
|
-
this.projectGraphListenerCallbacks.set(callbackId, callback);
|
|
430
|
-
await this.queue.sendToQueue(async () => {
|
|
431
|
-
// If we already have a connection, just send the registration
|
|
432
|
-
if (this.projectGraphListenerMessenger) {
|
|
433
|
-
this.projectGraphListenerMessenger.sendMessage({
|
|
434
|
-
type: register_project_graph_listener_1.REGISTER_PROJECT_GRAPH_LISTENER,
|
|
435
|
-
});
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
await this.startDaemonIfNecessary();
|
|
439
|
-
const socketPath = this.getSocketPath();
|
|
440
|
-
this.projectGraphListenerMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)(socketPath)).listen((message) => {
|
|
441
|
-
try {
|
|
442
|
-
const parsedMessage = (0, consume_messages_from_socket_1.parseMessage)(message);
|
|
443
|
-
// A delivered message means the stream is healthy again.
|
|
444
|
-
this.projectGraphListenerFramingFailures = 0;
|
|
445
|
-
// Notify all callbacks
|
|
446
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
447
|
-
cb(null, parsedMessage);
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
catch (e) {
|
|
451
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
452
|
-
cb(e, null);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}, () => {
|
|
456
|
-
// Connection closed - trigger reconnection
|
|
457
|
-
logger_1.clientLogger.log(`[ProjectGraphListener] Socket closed, triggering reconnection`);
|
|
458
|
-
this.projectGraphListenerMessenger = undefined;
|
|
459
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
460
|
-
cb('reconnecting', null);
|
|
461
|
-
}
|
|
462
|
-
this.reconnectProjectGraphListener();
|
|
463
|
-
}, (err) => {
|
|
464
|
-
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
465
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
466
|
-
cb('closed', null);
|
|
467
|
-
}
|
|
468
|
-
process.exit(1);
|
|
469
|
-
}
|
|
470
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
471
|
-
cb(err, null);
|
|
472
|
-
}
|
|
473
|
-
if (err instanceof consume_messages_from_socket_1.MessageFramingError) {
|
|
474
|
-
this.projectGraphListenerFramingFailures++;
|
|
475
|
-
}
|
|
476
|
-
this.projectGraphListenerMessenger?.close();
|
|
477
|
-
});
|
|
478
|
-
this.projectGraphListenerMessenger.sendMessage({
|
|
479
|
-
type: register_project_graph_listener_1.REGISTER_PROJECT_GRAPH_LISTENER,
|
|
480
|
-
});
|
|
481
|
-
});
|
|
482
|
-
// Return unregister function
|
|
483
|
-
return () => {
|
|
484
|
-
this.projectGraphListenerCallbacks.delete(callbackId);
|
|
485
|
-
// If no more callbacks, close the connection
|
|
486
|
-
if (this.projectGraphListenerCallbacks.size === 0) {
|
|
487
|
-
this.projectGraphListenerMessenger?.close();
|
|
488
|
-
this.projectGraphListenerMessenger = undefined;
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
|
-
}
|
|
492
|
-
async reconnectProjectGraphListener() {
|
|
493
|
-
// Guard against concurrent reconnection attempts
|
|
494
|
-
if (this.projectGraphListenerReconnecting) {
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
// See reconnectFileWatcher: a framing failure repeats on every redial, so
|
|
498
|
-
// the concurrency guard alone cannot bound it.
|
|
499
|
-
if (this.projectGraphListenerFramingFailures >=
|
|
500
|
-
MAX_CONSECUTIVE_FRAMING_FAILURES) {
|
|
501
|
-
logger_1.clientLogger.log(`[ProjectGraphListener] Giving up after ${this.projectGraphListenerFramingFailures} consecutive framing failures`);
|
|
502
|
-
this.projectGraphListenerReconnecting = false;
|
|
503
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
504
|
-
cb('closed', null);
|
|
505
|
-
}
|
|
506
|
-
return;
|
|
507
|
-
}
|
|
508
|
-
if (this.projectGraphListenerCallbacks.size === 0) {
|
|
509
|
-
return; // No callbacks to reconnect
|
|
510
|
-
}
|
|
511
|
-
this.projectGraphListenerReconnecting = true;
|
|
512
|
-
logger_1.clientLogger.log(`[ProjectGraphListener] Starting reconnection for ${this.projectGraphListenerCallbacks.size} callbacks`);
|
|
513
|
-
// Wait for daemon server to be available before trying to reconnect
|
|
514
|
-
let serverAvailable;
|
|
515
|
-
try {
|
|
516
|
-
({ available: serverAvailable } = await this.waitForServerToBeAvailable({
|
|
517
|
-
ignoreVersionMismatch: false,
|
|
518
|
-
}));
|
|
519
|
-
}
|
|
520
|
-
catch (err) {
|
|
521
|
-
// Version mismatch - pass error to callbacks so they can handle it
|
|
522
|
-
logger_1.clientLogger.log(`[ProjectGraphListener] Error during reconnection: ${err.message}`);
|
|
523
|
-
this.projectGraphListenerReconnecting = false;
|
|
524
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
525
|
-
cb(err, null);
|
|
526
|
-
}
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
if (!serverAvailable) {
|
|
530
|
-
// Failed to reconnect after all attempts - notify as closed
|
|
531
|
-
logger_1.clientLogger.log(`[ProjectGraphListener] Failed to reconnect - server unavailable`);
|
|
532
|
-
this.projectGraphListenerReconnecting = false;
|
|
533
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
534
|
-
cb('closed', null);
|
|
535
|
-
}
|
|
536
|
-
return;
|
|
537
|
-
}
|
|
538
|
-
try {
|
|
539
|
-
const socketPath = this.getSocketPath();
|
|
540
|
-
// Try to reconnect
|
|
541
|
-
this.projectGraphListenerMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)(socketPath)).listen((message) => {
|
|
542
|
-
try {
|
|
543
|
-
const parsedMessage = (0, consume_messages_from_socket_1.parseMessage)(message);
|
|
544
|
-
// A delivered message means the stream is healthy again.
|
|
545
|
-
this.projectGraphListenerFramingFailures = 0;
|
|
546
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
547
|
-
cb(null, parsedMessage);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
catch (e) {
|
|
551
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
552
|
-
cb(e, null);
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}, () => {
|
|
556
|
-
// Connection closed - trigger reconnection again
|
|
557
|
-
this.projectGraphListenerMessenger = undefined;
|
|
558
|
-
// Reset reconnection flag before triggering reconnection
|
|
559
|
-
this.projectGraphListenerReconnecting = false;
|
|
560
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
561
|
-
cb('reconnecting', null);
|
|
562
|
-
}
|
|
563
|
-
this.reconnectProjectGraphListener();
|
|
564
|
-
}, (err) => {
|
|
565
|
-
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
566
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
567
|
-
cb('closed', null);
|
|
568
|
-
}
|
|
569
|
-
process.exit(1);
|
|
570
|
-
}
|
|
571
|
-
if (err instanceof consume_messages_from_socket_1.MessageFramingError) {
|
|
572
|
-
this.projectGraphListenerFramingFailures++;
|
|
573
|
-
}
|
|
574
|
-
// The retry loop is driven by 'close', which a framing failure does
|
|
575
|
-
// not emit, so close explicitly to hand off to it.
|
|
576
|
-
this.projectGraphListenerMessenger?.close();
|
|
577
|
-
});
|
|
578
|
-
// Re-register
|
|
579
|
-
this.projectGraphListenerMessenger.sendMessage({
|
|
580
|
-
type: register_project_graph_listener_1.REGISTER_PROJECT_GRAPH_LISTENER,
|
|
581
|
-
});
|
|
582
|
-
// Successfully reconnected - notify callbacks
|
|
583
|
-
logger_1.clientLogger.log(`[ProjectGraphListener] Reconnected successfully`);
|
|
584
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
585
|
-
cb('reconnected', null);
|
|
586
|
-
}
|
|
587
|
-
this.projectGraphListenerReconnecting = false;
|
|
588
|
-
}
|
|
589
|
-
catch (e) {
|
|
590
|
-
// Failed to reconnect - notify as closed
|
|
591
|
-
logger_1.clientLogger.log(`[ProjectGraphListener] Reconnection failed: ${e.message}`);
|
|
592
|
-
this.projectGraphListenerReconnecting = false;
|
|
593
|
-
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
594
|
-
cb('closed', null);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
processInBackground(requirePath, data) {
|
|
599
|
-
return this.sendToDaemonViaQueue({
|
|
600
|
-
type: 'PROCESS_IN_BACKGROUND',
|
|
601
|
-
requirePath,
|
|
602
|
-
data,
|
|
603
|
-
},
|
|
604
|
-
// This method is sometimes passed data that cannot be serialized with v8
|
|
605
|
-
// so we force JSON serialization here
|
|
606
|
-
'json');
|
|
607
|
-
}
|
|
608
|
-
recordOutputsHashBatch(entries) {
|
|
609
|
-
return this.sendToDaemonViaQueue({
|
|
610
|
-
type: 'RECORD_OUTPUTS_HASH_BATCH',
|
|
611
|
-
data: entries,
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
outputsHashesMatchBatch(entries) {
|
|
615
|
-
return this.sendToDaemonViaQueue({
|
|
616
|
-
type: 'OUTPUTS_HASHES_MATCH_BATCH',
|
|
617
|
-
data: entries,
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
glob(globs, exclude) {
|
|
621
|
-
const message = {
|
|
622
|
-
type: 'GLOB',
|
|
623
|
-
globs,
|
|
624
|
-
exclude,
|
|
625
|
-
};
|
|
626
|
-
return this.sendToDaemonViaQueue(message);
|
|
627
|
-
}
|
|
628
|
-
multiGlob(globs, exclude) {
|
|
629
|
-
const message = {
|
|
630
|
-
type: 'MULTI_GLOB',
|
|
631
|
-
globs,
|
|
632
|
-
exclude,
|
|
633
|
-
};
|
|
634
|
-
return this.sendToDaemonViaQueue(message);
|
|
635
|
-
}
|
|
636
|
-
getWorkspaceContextFileData() {
|
|
637
|
-
const message = {
|
|
638
|
-
type: get_context_file_data_1.GET_CONTEXT_FILE_DATA,
|
|
639
|
-
};
|
|
640
|
-
return this.sendToDaemonViaQueue(message);
|
|
641
|
-
}
|
|
642
|
-
getWorkspaceFiles(projectRootMap) {
|
|
643
|
-
const message = {
|
|
644
|
-
type: get_nx_workspace_files_1.GET_NX_WORKSPACE_FILES,
|
|
645
|
-
projectRootMap,
|
|
646
|
-
};
|
|
647
|
-
return this.sendToDaemonViaQueue(message);
|
|
648
|
-
}
|
|
649
|
-
getFilesInDirectory(dir) {
|
|
650
|
-
const message = {
|
|
651
|
-
type: get_files_in_directory_1.GET_FILES_IN_DIRECTORY,
|
|
652
|
-
dir,
|
|
653
|
-
};
|
|
654
|
-
return this.sendToDaemonViaQueue(message);
|
|
655
|
-
}
|
|
656
|
-
hashGlob(globs, exclude) {
|
|
657
|
-
const message = {
|
|
658
|
-
type: hash_glob_1.HASH_GLOB,
|
|
659
|
-
globs,
|
|
660
|
-
exclude,
|
|
661
|
-
};
|
|
662
|
-
return this.sendToDaemonViaQueue(message);
|
|
663
|
-
}
|
|
664
|
-
hashMultiGlob(globGroups) {
|
|
665
|
-
const message = {
|
|
666
|
-
type: hash_glob_1.HASH_MULTI_GLOB,
|
|
667
|
-
globGroups: globGroups,
|
|
668
|
-
};
|
|
669
|
-
return this.sendToDaemonViaQueue(message);
|
|
670
|
-
}
|
|
671
|
-
getFlakyTasks(hashes) {
|
|
672
|
-
const message = {
|
|
673
|
-
type: task_history_1.GET_FLAKY_TASKS,
|
|
674
|
-
hashes,
|
|
675
|
-
};
|
|
676
|
-
return this.sendToDaemonViaQueue(message);
|
|
677
|
-
}
|
|
678
|
-
async getEstimatedTaskTimings(targets) {
|
|
679
|
-
const message = {
|
|
680
|
-
type: task_history_1.GET_ESTIMATED_TASK_TIMINGS,
|
|
681
|
-
targets,
|
|
682
|
-
};
|
|
683
|
-
return this.sendToDaemonViaQueue(message);
|
|
684
|
-
}
|
|
685
|
-
recordTaskRuns(taskRuns) {
|
|
686
|
-
const message = {
|
|
687
|
-
type: task_history_1.RECORD_TASK_RUNS,
|
|
688
|
-
taskRuns,
|
|
689
|
-
};
|
|
690
|
-
return this.sendToDaemonViaQueue(message);
|
|
691
|
-
}
|
|
692
|
-
getSyncGeneratorChanges(generators) {
|
|
693
|
-
const message = {
|
|
694
|
-
type: get_sync_generator_changes_1.GET_SYNC_GENERATOR_CHANGES,
|
|
695
|
-
generators,
|
|
696
|
-
};
|
|
697
|
-
return this.sendToDaemonViaQueue(message);
|
|
698
|
-
}
|
|
699
|
-
flushSyncGeneratorChangesToDisk(generators) {
|
|
700
|
-
const message = {
|
|
701
|
-
type: flush_sync_generator_changes_to_disk_1.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK,
|
|
702
|
-
generators,
|
|
703
|
-
};
|
|
704
|
-
return this.sendToDaemonViaQueue(message);
|
|
705
|
-
}
|
|
706
|
-
getRegisteredSyncGenerators() {
|
|
707
|
-
const message = {
|
|
708
|
-
type: get_registered_sync_generators_1.GET_REGISTERED_SYNC_GENERATORS,
|
|
709
|
-
};
|
|
710
|
-
return this.sendToDaemonViaQueue(message);
|
|
711
|
-
}
|
|
712
|
-
updateWorkspaceContext(createdFiles, updatedFiles, deletedFiles) {
|
|
713
|
-
const message = {
|
|
714
|
-
type: update_workspace_context_1.UPDATE_WORKSPACE_CONTEXT,
|
|
715
|
-
createdFiles,
|
|
716
|
-
updatedFiles,
|
|
717
|
-
deletedFiles,
|
|
718
|
-
};
|
|
719
|
-
return this.sendToDaemonViaQueue(message);
|
|
720
|
-
}
|
|
721
|
-
async runPreTasksExecution(context) {
|
|
722
|
-
const message = {
|
|
723
|
-
type: run_tasks_execution_hooks_1.PRE_TASKS_EXECUTION,
|
|
724
|
-
context,
|
|
725
|
-
};
|
|
726
|
-
return this.sendToDaemonViaQueue(message);
|
|
727
|
-
}
|
|
728
|
-
async runPostTasksExecution(context) {
|
|
729
|
-
const message = {
|
|
730
|
-
type: run_tasks_execution_hooks_1.POST_TASKS_EXECUTION,
|
|
731
|
-
context,
|
|
732
|
-
};
|
|
733
|
-
return this.sendToDaemonViaQueue(message);
|
|
734
|
-
}
|
|
735
|
-
getNxConsoleStatus() {
|
|
736
|
-
const message = {
|
|
737
|
-
type: nx_console_1.GET_NX_CONSOLE_STATUS,
|
|
738
|
-
};
|
|
739
|
-
return this.sendToDaemonViaQueue(message);
|
|
740
|
-
}
|
|
741
|
-
setNxConsolePreferenceAndInstall(preference) {
|
|
742
|
-
const message = {
|
|
743
|
-
type: nx_console_1.SET_NX_CONSOLE_PREFERENCE_AND_INSTALL,
|
|
744
|
-
preference,
|
|
745
|
-
};
|
|
746
|
-
return this.sendToDaemonViaQueue(message);
|
|
747
|
-
}
|
|
748
|
-
getConfigureAiAgentsStatus() {
|
|
749
|
-
const message = {
|
|
750
|
-
type: configure_ai_agents_1.GET_CONFIGURE_AI_AGENTS_STATUS,
|
|
751
|
-
};
|
|
752
|
-
return this.sendToDaemonViaQueue(message);
|
|
753
|
-
}
|
|
754
|
-
resetConfigureAiAgentsStatus() {
|
|
755
|
-
const message = {
|
|
756
|
-
type: configure_ai_agents_1.RESET_CONFIGURE_AI_AGENTS_STATUS,
|
|
757
|
-
};
|
|
758
|
-
return this.sendToDaemonViaQueue(message);
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* The pre-start probe, returning why it failed rather than leaving it on the
|
|
762
|
-
* instance: `_daemonStatus` does not serialize `isServerAvailable`'s five
|
|
763
|
-
* public callers against `startDaemonIfNecessary`.
|
|
764
|
-
*/
|
|
765
|
-
async probeServer() {
|
|
766
|
-
return new Promise((resolve, reject) => {
|
|
767
|
-
try {
|
|
768
|
-
const socketPath = this.getSocketPath();
|
|
769
|
-
if (!socketPath) {
|
|
770
|
-
resolve({ available: false });
|
|
771
|
-
return;
|
|
772
|
-
}
|
|
773
|
-
const socket = (0, net_1.connect)(socketPath, () => {
|
|
774
|
-
socket.destroy();
|
|
775
|
-
resolve({ available: true });
|
|
776
|
-
});
|
|
777
|
-
socket.once('error', (err) => {
|
|
778
|
-
// The only place the errno for "the socket is there but refuses us"
|
|
779
|
-
// is produced, and the only thing separating it from "no daemon yet".
|
|
780
|
-
resolve({ available: false, refusal: { error: err, socketPath } });
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
catch (err) {
|
|
784
|
-
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
785
|
-
reject(err); // Let version mismatch bubble up
|
|
786
|
-
}
|
|
787
|
-
resolve({ available: false });
|
|
788
|
-
}
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
async isServerAvailable() {
|
|
792
|
-
return (await this.probeServer()).available;
|
|
793
|
-
}
|
|
794
|
-
async startDaemonIfNecessary() {
|
|
795
|
-
if (this._daemonStatus == DaemonStatus.CONNECTED) {
|
|
796
|
-
return;
|
|
797
|
-
}
|
|
798
|
-
// Ensure daemon is running and socket path is available
|
|
799
|
-
if (this._daemonStatus == DaemonStatus.DISCONNECTED) {
|
|
800
|
-
this._daemonStatus = DaemonStatus.CONNECTING;
|
|
801
|
-
let daemonPid = null;
|
|
802
|
-
let probe;
|
|
803
|
-
try {
|
|
804
|
-
probe = await this.probeServer();
|
|
805
|
-
}
|
|
806
|
-
catch (err) {
|
|
807
|
-
// Version mismatch - treat as server not available, start new one
|
|
808
|
-
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
809
|
-
probe = { available: false };
|
|
810
|
-
}
|
|
811
|
-
else {
|
|
812
|
-
throw err;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
if (!probe.available) {
|
|
816
|
-
// Carried as a value so no other caller's probe can substitute for it.
|
|
817
|
-
daemonPid = await this.startInBackground(probe.refusal);
|
|
818
|
-
}
|
|
819
|
-
this.setUpConnection();
|
|
820
|
-
this._daemonStatus = DaemonStatus.CONNECTED;
|
|
821
|
-
this._daemonReady();
|
|
822
|
-
daemonPid ??= (0, cache_1.getDaemonProcessIdSync)();
|
|
823
|
-
// Fire-and-forget - don't block daemon connection by waiting for metrics registration
|
|
824
|
-
this.registerDaemonProcessWithMetricsService(daemonPid);
|
|
825
|
-
}
|
|
826
|
-
else if (this._daemonStatus == DaemonStatus.CONNECTING) {
|
|
827
|
-
await this._waitForDaemonReady;
|
|
828
|
-
const daemonPid = (0, cache_1.getDaemonProcessIdSync)();
|
|
829
|
-
// Fire-and-forget - don't block daemon connection by waiting for metrics registration
|
|
830
|
-
this.registerDaemonProcessWithMetricsService(daemonPid);
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
async sendToDaemonViaQueue(messageToDaemon, parser) {
|
|
834
|
-
return this.queue.sendToQueue(async () => {
|
|
835
|
-
// Set currentSpinner inside the queued function so it's only
|
|
836
|
-
// active while this specific message is in flight — preventing
|
|
837
|
-
// concurrent callers from overwriting each other's spinner
|
|
838
|
-
// reference before their turn arrives.
|
|
839
|
-
return await this.sendMessageToDaemon(messageToDaemon, parser);
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
setUpConnection() {
|
|
843
|
-
const socketPath = this.getSocketPath();
|
|
844
|
-
const socket = (0, net_1.connect)(socketPath);
|
|
845
|
-
// Unref the socket so it doesn't keep the process alive. The
|
|
846
|
-
// sendMessageToDaemon method uses a keep-alive setTimeout to
|
|
847
|
-
// explicitly hold the event loop open while awaiting a response.
|
|
848
|
-
socket.unref();
|
|
849
|
-
this.socketMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger(socket).listen((message) => this.handleMessage(message), () => {
|
|
850
|
-
// it's ok for the daemon to terminate if the client doesn't wait on
|
|
851
|
-
// any messages from the daemon
|
|
852
|
-
if (this.queue.isEmpty()) {
|
|
853
|
-
this.reset();
|
|
854
|
-
}
|
|
855
|
-
else {
|
|
856
|
-
// Connection closed while we had pending work - try to reconnect
|
|
857
|
-
this._daemonStatus = DaemonStatus.DISCONNECTED;
|
|
858
|
-
this.handleConnectionError(daemonProcessException('Daemon process terminated and closed the connection'));
|
|
859
|
-
}
|
|
860
|
-
}, (err) => {
|
|
861
|
-
// Every recovery path below is keyed on the socket 'close' event, and a
|
|
862
|
-
// framing failure emits neither 'close' nor 'error'. Without the
|
|
863
|
-
// teardown at the end of this handler the connection stays open and
|
|
864
|
-
// permanently deaf, and the next request waits out the keep-alive.
|
|
865
|
-
if (!err.message) {
|
|
866
|
-
this.currentReject(daemonProcessException(err.toString()));
|
|
867
|
-
this.socketMessenger?.close();
|
|
868
|
-
return;
|
|
869
|
-
}
|
|
870
|
-
let error;
|
|
871
|
-
if ((0, permission_errors_1.isPermissionDenied)(err)) {
|
|
872
|
-
// Checked before the ENOENT branch so a refusal can never be read as
|
|
873
|
-
// an absent socket. The 0700 dir and 0600 socket mean the OS refuses
|
|
874
|
-
// this rather than the connect silently succeeding.
|
|
875
|
-
error = daemonPermissionException(socketPath, err.message);
|
|
876
|
-
}
|
|
877
|
-
else if (err.code === 'ENOENT') {
|
|
878
|
-
error = daemonProcessException([
|
|
879
|
-
'The Daemon Server is not running',
|
|
880
|
-
// A denied bind leaves no socket file behind, so the client sees
|
|
881
|
-
// a missing socket rather than a refused connection. Outside a
|
|
882
|
-
// sandbox this is just the ordinary "not started yet" case.
|
|
883
|
-
...((0, is_sandbox_1.isSandbox)() ? (0, sandbox_socket_hint_1.sandboxSocketHint)() : []),
|
|
884
|
-
].join('\n'));
|
|
885
|
-
}
|
|
886
|
-
else if (err.message.startsWith('connect ECONNREFUSED')) {
|
|
887
|
-
error = daemonProcessException(`A server instance had not been fully shut down. Please try running the command again.`);
|
|
888
|
-
}
|
|
889
|
-
else if (err.message.startsWith('read ECONNRESET')) {
|
|
890
|
-
error = daemonProcessException(`Unable to connect to the daemon process.`);
|
|
891
|
-
}
|
|
892
|
-
else {
|
|
893
|
-
error = daemonProcessException(err.toString());
|
|
894
|
-
}
|
|
895
|
-
this.currentReject(error);
|
|
896
|
-
this.socketMessenger?.close();
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
async handleConnectionError(error) {
|
|
900
|
-
logger_1.clientLogger.log(`[Reconnect] Connection error detected: ${error.message}`);
|
|
901
|
-
// Create a new ready promise for new requests to wait on
|
|
902
|
-
this._waitForDaemonReady = new Promise((resolve) => (this._daemonReady = resolve));
|
|
903
|
-
// Set status to CONNECTING so new requests will wait for reconnection
|
|
904
|
-
this._daemonStatus = DaemonStatus.CONNECTING;
|
|
905
|
-
let serverAvailable;
|
|
906
|
-
try {
|
|
907
|
-
({ available: serverAvailable } = await this.waitForServerToBeAvailable({
|
|
908
|
-
ignoreVersionMismatch: false,
|
|
909
|
-
}));
|
|
910
|
-
}
|
|
911
|
-
catch (err) {
|
|
912
|
-
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
913
|
-
// New daemon has different version - reject with error so caller can handle
|
|
914
|
-
if (this.currentReject) {
|
|
915
|
-
this.currentReject(err);
|
|
916
|
-
}
|
|
917
|
-
return;
|
|
918
|
-
}
|
|
919
|
-
throw err;
|
|
920
|
-
}
|
|
921
|
-
if (serverAvailable) {
|
|
922
|
-
logger_1.clientLogger.log(`[Reconnect] Reconnection successful, re-establishing connection`);
|
|
923
|
-
// Server is back up, establish connection and signal ready
|
|
924
|
-
this.establishConnection();
|
|
925
|
-
// Resend the pending message if one exists
|
|
926
|
-
if (this.currentMessage && this.currentResolve && this.currentReject) {
|
|
927
|
-
// Retry the message directly (not through the queue) to resolve the
|
|
928
|
-
// pending promise that the original queue entry is waiting on.
|
|
929
|
-
// This allows the original queue entry to complete naturally.
|
|
930
|
-
const msg = this.currentMessage;
|
|
931
|
-
const res = this.currentResolve;
|
|
932
|
-
const rej = this.currentReject;
|
|
933
|
-
this.sendMessageToDaemon(msg).then(res, rej);
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
else {
|
|
937
|
-
// Failed to reconnect after all attempts, reject the pending request
|
|
938
|
-
if (this.currentReject) {
|
|
939
|
-
this.currentReject(error);
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
establishConnection() {
|
|
944
|
-
this._daemonStatus = DaemonStatus.DISCONNECTED;
|
|
945
|
-
this.setUpConnection();
|
|
946
|
-
this._daemonStatus = DaemonStatus.CONNECTED;
|
|
947
|
-
this._daemonReady();
|
|
948
|
-
}
|
|
949
|
-
/**
|
|
950
|
-
* Wait for daemon server to be available.
|
|
951
|
-
* Used for reconnection - throws VersionMismatchError if daemon version differs.
|
|
952
|
-
*/
|
|
953
|
-
async waitForServerToBeAvailable(options) {
|
|
954
|
-
logger_1.clientLogger.log(`[Client] Waiting for server (max: ${WAIT_FOR_SERVER_CONFIG.maxAttempts} attempts, ${WAIT_FOR_SERVER_CONFIG.delayMs}ms interval)`);
|
|
955
|
-
// Poll-scoped, not instance state: reconnect paths have their own flags, so
|
|
956
|
-
// several attempts can be in flight and a shared slot would let one report
|
|
957
|
-
// another's socket.
|
|
958
|
-
let stoppedOnRefusal = false;
|
|
959
|
-
let refusal;
|
|
960
|
-
const socket = await (0, wait_for_socket_connection_1.waitForSocketConnection)(() => {
|
|
961
|
-
try {
|
|
962
|
-
return this.getSocketPath();
|
|
963
|
-
}
|
|
964
|
-
catch (err) {
|
|
965
|
-
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
966
|
-
if (!options.ignoreVersionMismatch) {
|
|
967
|
-
throw err;
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
// Socket path not available yet — keep polling
|
|
971
|
-
return null;
|
|
972
|
-
}
|
|
973
|
-
}, {
|
|
974
|
-
maxAttempts: WAIT_FOR_SERVER_CONFIG.maxAttempts,
|
|
975
|
-
delayMs: WAIT_FOR_SERVER_CONFIG.delayMs,
|
|
976
|
-
onConnectError: (error, socketPath) => {
|
|
977
|
-
refusal = { error, socketPath };
|
|
978
|
-
// A refusal is not expected to become an acceptance, so polling the
|
|
979
|
-
// full 60s budget only delays the same answer. Not absolute:
|
|
980
|
-
// `server.ts` binds before it chmods to 0600, so under a umask that
|
|
981
|
-
// strips owner write a same-user connect can lose a microsecond race
|
|
982
|
-
// and see EACCES. That costs a specific error rather than a retry — a
|
|
983
|
-
// better trade than a 60s hang.
|
|
984
|
-
return (stoppedOnRefusal = (0, permission_errors_1.isPermissionDenied)(error));
|
|
985
|
-
},
|
|
986
|
-
});
|
|
987
|
-
if (socket) {
|
|
988
|
-
socket.destroy();
|
|
989
|
-
logger_1.clientLogger.log(`[Client] Server available`);
|
|
990
|
-
return { available: true };
|
|
991
|
-
}
|
|
992
|
-
// Keyed on the early exit taken, not on whether an errno was recorded:
|
|
993
|
-
// every failed connect records one, including an ordinary cold start's
|
|
994
|
-
// ENOENT.
|
|
995
|
-
logger_1.clientLogger.log(stoppedOnRefusal
|
|
996
|
-
? `[Client] Server refused the connection (${refusal?.error.code}), stopped polling`
|
|
997
|
-
: `[Client] Server not available after ${WAIT_FOR_SERVER_CONFIG.maxAttempts} attempts`);
|
|
998
|
-
return { available: false, refusal };
|
|
999
|
-
}
|
|
1000
|
-
async sendMessageToDaemon(message, force) {
|
|
1001
|
-
// the first message sent to the daemon includes an env prop
|
|
1002
|
-
// that updates the process.env values on the daemon.
|
|
1003
|
-
if (!this.envReflectionSent && !global.NX_PLUGIN_WORKER) {
|
|
1004
|
-
message.env = (0, daemon_environment_1.getDaemonEnv)();
|
|
1005
|
-
this.envReflectionSent = true;
|
|
1006
|
-
}
|
|
1007
|
-
await this.startDaemonIfNecessary();
|
|
1008
|
-
let keepAlive;
|
|
1009
|
-
return new Promise((resolve, reject) => {
|
|
1010
|
-
perf_hooks_1.performance.mark('sendMessageToDaemon-start');
|
|
1011
|
-
// An open promise isn't enough to keep the event loop
|
|
1012
|
-
// alive, so we set a timeout here and clear it when we hear
|
|
1013
|
-
// back. This **must** be longer than the message timeout used
|
|
1014
|
-
// in the plugin isolation messages, or the daemon will timeout before
|
|
1015
|
-
// a plugin worker would, and that can result in odd exit behavior.
|
|
1016
|
-
keepAlive = setTimeout(() => {
|
|
1017
|
-
reject(new Error('The daemon timed out while processing ' + message.type));
|
|
1018
|
-
}, 20 * 60 * 1000);
|
|
1019
|
-
this.currentMessage = message;
|
|
1020
|
-
this.currentResolve = resolve;
|
|
1021
|
-
this.currentReject = reject;
|
|
1022
|
-
this.socketMessenger.sendMessage(message, force);
|
|
1023
|
-
}).finally(() => {
|
|
1024
|
-
clearTimeout(keepAlive);
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
async registerDaemonProcessWithMetricsService(daemonPid) {
|
|
1028
|
-
if (!daemonPid) {
|
|
1029
|
-
return;
|
|
1030
|
-
}
|
|
1031
|
-
try {
|
|
1032
|
-
const { getProcessMetricsService } = await (0, handle_import_1.handleImport)('../../tasks-runner/process-metrics-service.js', __dirname);
|
|
1033
|
-
getProcessMetricsService().registerDaemonProcess(daemonPid);
|
|
1034
|
-
}
|
|
1035
|
-
catch {
|
|
1036
|
-
// don't error, this is a secondary concern that should not break task execution
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
handleMessage(serializedResult) {
|
|
1040
|
-
try {
|
|
1041
|
-
perf_hooks_1.performance.mark('result-parse-start-' + this.currentMessage.type);
|
|
1042
|
-
const parsedResult = (0, consume_messages_from_socket_1.parseMessage)(serializedResult);
|
|
1043
|
-
perf_hooks_1.performance.mark('result-parse-end-' + this.currentMessage.type);
|
|
1044
|
-
perf_hooks_1.performance.measure('deserialize daemon response - ' + this.currentMessage.type, 'result-parse-start-' + this.currentMessage.type, 'result-parse-end-' + this.currentMessage.type);
|
|
1045
|
-
// Streaming messages fire side-effects on the client but do not
|
|
1046
|
-
// resolve the pending request promise — the daemon can push several
|
|
1047
|
-
// of these before finally sending the real response. Progress
|
|
1048
|
-
// updates route through the in-flight request's own spinner so
|
|
1049
|
-
// we don't stomp on unrelated commands' spinner text.
|
|
1050
|
-
if ((0, streaming_messages_1.isUpdateProgressMessage)(parsedResult)) {
|
|
1051
|
-
this.currentSpinner?.setMessage(parsedResult.message);
|
|
1052
|
-
return;
|
|
1053
|
-
}
|
|
1054
|
-
if ((0, streaming_messages_1.isEmitLogMessage)(parsedResult)) {
|
|
1055
|
-
console[parsedResult.level](parsedResult.message);
|
|
1056
|
-
return;
|
|
1057
|
-
}
|
|
1058
|
-
if (parsedResult.error) {
|
|
1059
|
-
this.currentReject(parsedResult.error);
|
|
1060
|
-
}
|
|
1061
|
-
else {
|
|
1062
|
-
perf_hooks_1.performance.measure(`${this.currentMessage.type} round trip`, 'sendMessageToDaemon-start', 'result-parse-end-' + this.currentMessage.type);
|
|
1063
|
-
return this.currentResolve(parsedResult);
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
catch (e) {
|
|
1067
|
-
const endOfResponse = (0, consume_messages_from_socket_1.describeMessage)(serializedResult, {
|
|
1068
|
-
from: 'end',
|
|
1069
|
-
});
|
|
1070
|
-
this.currentReject(daemonProcessException([
|
|
1071
|
-
'Could not deserialize response from Nx daemon.',
|
|
1072
|
-
`Message: ${e.message}`,
|
|
1073
|
-
'\n',
|
|
1074
|
-
`Received:`,
|
|
1075
|
-
endOfResponse,
|
|
1076
|
-
'\n',
|
|
1077
|
-
].join('\n')));
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
/**
|
|
1081
|
-
* @param probeRefusal what the caller's pre-start probe saw. The only evidence
|
|
1082
|
-
* when a daemon refuses us and then exits — the poll cannot reproduce it
|
|
1083
|
-
* once the process json is gone. `nx daemon --start` passes nothing.
|
|
1084
|
-
*/
|
|
1085
|
-
async startInBackground(probeRefusal) {
|
|
1086
|
-
if (global.NX_PLUGIN_WORKER) {
|
|
1087
|
-
throw new Error('Fatal Error: Something unexpected has occurred. Plugin Workers should not start a new daemon process. Please report this issue.');
|
|
1088
|
-
}
|
|
1089
|
-
(0, node_fs_1.mkdirSync)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE, { recursive: true });
|
|
1090
|
-
if (!(0, node_fs_1.existsSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE)) {
|
|
1091
|
-
(0, node_fs_1.writeFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, '');
|
|
1092
|
-
}
|
|
1093
|
-
// Redirect the detached daemon's stdout/stderr into the log file. The
|
|
1094
|
-
// child dup's these descriptors at spawn, so we close ours right after
|
|
1095
|
-
// instead of holding them for the life of this process (Node >=26 turns a
|
|
1096
|
-
// file descriptor closed during garbage collection into a fatal error).
|
|
1097
|
-
const outFd = (0, node_fs_1.openSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
|
|
1098
|
-
const errFd = (0, node_fs_1.openSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
|
|
1099
|
-
logger_1.clientLogger.log(`[Client] Starting new daemon server in background`);
|
|
1100
|
-
const backgroundProcess = (0, child_process_1.spawn)(process.execPath, [
|
|
1101
|
-
// Spawn with the same resolve conditions Nx uses for plugin entries so a
|
|
1102
|
-
// source-loaded plugin's transitive workspace imports resolve to source.
|
|
1103
|
-
...(0, typescript_1.getPluginResolveConditionNodeArgs)(),
|
|
1104
|
-
(0, path_1.join)(__dirname, `../server/start.js`),
|
|
1105
|
-
], {
|
|
1106
|
-
cwd: workspace_root_1.workspaceRoot,
|
|
1107
|
-
stdio: ['ignore', outFd, errFd],
|
|
1108
|
-
detached: true,
|
|
1109
|
-
windowsHide: true,
|
|
1110
|
-
shell: false,
|
|
1111
|
-
env: (0, daemon_environment_1.getDaemonSpawnEnv)(),
|
|
1112
|
-
});
|
|
1113
|
-
// The child now owns dup'd copies of the descriptors, so release ours.
|
|
1114
|
-
(0, node_fs_1.closeSync)(outFd);
|
|
1115
|
-
(0, node_fs_1.closeSync)(errFd);
|
|
1116
|
-
// A refused bind leaves no socket, so the poll below sees only ENOENT and
|
|
1117
|
-
// cannot tell a sandbox refusal from a daemon that has not come up yet. The
|
|
1118
|
-
// server exits with SOCKET_REFUSED_EXIT_CODE when its own bind hits
|
|
1119
|
-
// EPERM/EACCES, which is the only way that errno reaches this process.
|
|
1120
|
-
// Attached before `unref` so the listener is registered before the child can
|
|
1121
|
-
// exit; `unref` only stops the child holding the event loop open.
|
|
1122
|
-
let daemonRefusedSocket = false;
|
|
1123
|
-
backgroundProcess.once('exit', (code) => {
|
|
1124
|
-
daemonRefusedSocket = code === socket_refused_exit_code_1.SOCKET_REFUSED_EXIT_CODE;
|
|
1125
|
-
});
|
|
1126
|
-
// if this process is the process that spawned the daemon,
|
|
1127
|
-
// the daemon env is already up to date
|
|
1128
|
-
this.envReflectionSent = true;
|
|
1129
|
-
backgroundProcess.unref();
|
|
1130
|
-
/**
|
|
1131
|
-
* Ensure the server is actually available to connect to via IPC before resolving
|
|
1132
|
-
*/
|
|
1133
|
-
const { available, refusal: polled } = await this.waitForServerToBeAvailable({ ignoreVersionMismatch: true });
|
|
1134
|
-
if (available) {
|
|
1135
|
-
logger_1.clientLogger.log(`[Client] Daemon server started, pid=${backgroundProcess.pid}`);
|
|
1136
|
-
return backgroundProcess.pid;
|
|
1137
|
-
}
|
|
1138
|
-
else {
|
|
1139
|
-
// A permission refusal from either source wins, then the poll's errno,
|
|
1140
|
-
// then the probe's. Recency alone would report a daemon's ENOENT over the
|
|
1141
|
-
// EACCES the probe saw a moment earlier, losing the diagnosis.
|
|
1142
|
-
const refusal = [polled, probeRefusal].find((r) => r && (0, permission_errors_1.isPermissionDenied)(r.error)) ??
|
|
1143
|
-
polled ??
|
|
1144
|
-
probeRefusal;
|
|
1145
|
-
if (refusal && (0, permission_errors_1.isPermissionDenied)(refusal.error)) {
|
|
1146
|
-
// Reported here rather than as a generic startup failure, so it degrades
|
|
1147
|
-
// without disabling the daemon until `nx reset`. Both operands come from
|
|
1148
|
-
// the refusal: resolving a path here instead would throw once a daemon
|
|
1149
|
-
// that failed to bind has unlinked its process json.
|
|
1150
|
-
throw daemonPermissionException(refusal.socketPath, refusal.error.message);
|
|
1151
|
-
}
|
|
1152
|
-
throw daemonProcessException([
|
|
1153
|
-
'Failed to start or connect to the Nx Daemon process.',
|
|
1154
|
-
// The daemon can fail to start for many reasons, so the guidance is
|
|
1155
|
-
// withheld unless its own errno proved a refusal or the environment
|
|
1156
|
-
// already says a sandbox is in play. The errno arm is what reaches an
|
|
1157
|
-
// agent whose sandbox `isSandbox()` cannot see, such as Copilot CLI.
|
|
1158
|
-
...(daemonRefusedSocket || (0, is_sandbox_1.isSandbox)()
|
|
1159
|
-
? (0, sandbox_socket_hint_1.sandboxSocketHint)({ certain: daemonRefusedSocket })
|
|
1160
|
-
: []),
|
|
1161
|
-
].join('\n'));
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
async stop() {
|
|
1165
|
-
try {
|
|
1166
|
-
const pid = (0, cache_1.getDaemonProcessIdSync)();
|
|
1167
|
-
if (pid) {
|
|
1168
|
-
process.kill(pid, 'SIGTERM');
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
catch (err) {
|
|
1172
|
-
if (err.code !== 'ESRCH') {
|
|
1173
|
-
output_1.output.error({
|
|
1174
|
-
title: err?.message ||
|
|
1175
|
-
'Something unexpected went wrong when stopping the daemon server',
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
(0, tmp_dir_1.removeSocketDir)();
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
exports.DaemonClient = DaemonClient;
|
|
1183
|
-
exports.daemonClient = new DaemonClient();
|
|
1184
|
-
function isDaemonEnabled() {
|
|
1185
|
-
return exports.daemonClient.enabled();
|
|
1186
|
-
}
|
|
1187
|
-
function isDocker() {
|
|
1188
|
-
try {
|
|
1189
|
-
(0, node_fs_1.statSync)('/.dockerenv');
|
|
1190
|
-
return true;
|
|
1191
|
-
}
|
|
1192
|
-
catch {
|
|
1193
|
-
try {
|
|
1194
|
-
return (0, node_fs_1.readFileSync)('/proc/self/cgroup', 'utf8')?.includes('docker');
|
|
1195
|
-
}
|
|
1196
|
-
catch { }
|
|
1197
|
-
return false;
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
function nxJsonIsNotPresent() {
|
|
1201
|
-
return !(0, nx_json_1.hasNxJson)(workspace_root_1.workspaceRoot);
|
|
1202
|
-
}
|
|
1203
|
-
/**
|
|
1204
|
-
* The operating system refused the connection. Most often the socket belongs to
|
|
1205
|
-
* another user, which is the guarantee the owner-only socket directory buys —
|
|
1206
|
-
* but a sandbox that denies unix-socket connects produces the same errno, so the
|
|
1207
|
-
* message does not assert which. Either way it is an environment condition
|
|
1208
|
-
* rather than a defect in Nx, and it deliberately does not
|
|
1209
|
-
* carry `internalDaemonError`: that tag tells the user to file an issue and
|
|
1210
|
-
* disables the daemon until `nx reset`, which would outlast the stale socket
|
|
1211
|
-
* that caused it.
|
|
1212
|
-
*
|
|
1213
|
-
* It also skips the daemon log that `daemonProcessException` appends. The log
|
|
1214
|
-
* belongs to *our* daemon; the process holding this socket is someone else's, so
|
|
1215
|
-
* quoting it would describe an unrelated run.
|
|
1216
|
-
*/
|
|
1217
|
-
function daemonPermissionException(socketPath, cause) {
|
|
1218
|
-
const error = new Error([
|
|
1219
|
-
`The operating system refused the connection to the Nx Daemon socket (${cause}).`,
|
|
1220
|
-
'',
|
|
1221
|
-
`Socket: ${socketPath}`,
|
|
1222
|
-
'',
|
|
1223
|
-
'Most often the socket belongs to a different user: a daemon left behind by running Nx under `sudo`, a different uid inside a container, or a working copy shared between accounts. If the socket is your own, a sandbox is refusing the connection instead.',
|
|
1224
|
-
'If it belongs to another user, delete the socket above or set NX_SOCKET_DIR to a directory only your user can reach. If you are in a sandbox, allow unix sockets under the Nx socket root: `nx configure-ai-agents` writes that for Claude Code, and the per-agent setting is listed at https://nx.dev/docs/kb/nx-sandbox-unix-sockets',
|
|
1225
|
-
].join('\n'));
|
|
1226
|
-
error.daemonPermissionError = true;
|
|
1227
|
-
return error;
|
|
1228
|
-
}
|
|
1229
|
-
/**
|
|
1230
|
-
* Exported for testing: the `internalDaemonError` tag decides whether a daemon
|
|
1231
|
-
* failure degrades to a daemonless graph build or aborts the command.
|
|
1232
|
-
*/
|
|
1233
|
-
function daemonProcessException(message) {
|
|
1234
|
-
// The log is an enrichment, not the classifier: it is absent on a first run,
|
|
1235
|
-
// which is exactly when the daemon is most likely to fail to start.
|
|
1236
|
-
let body = message;
|
|
1237
|
-
try {
|
|
1238
|
-
let log = (0, node_fs_1.readFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE).toString().split('\n');
|
|
1239
|
-
if (log.length > 20) {
|
|
1240
|
-
log = log.slice(log.length - 20);
|
|
1241
|
-
}
|
|
1242
|
-
body = [
|
|
1243
|
-
message,
|
|
1244
|
-
'',
|
|
1245
|
-
'Messages from the log:',
|
|
1246
|
-
...log,
|
|
1247
|
-
'\n',
|
|
1248
|
-
`More information: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
|
|
1249
|
-
].join('\n');
|
|
1250
|
-
}
|
|
1251
|
-
catch { }
|
|
1252
|
-
const error = new Error(body);
|
|
1253
|
-
error.internalDaemonError = true;
|
|
1254
|
-
return error;
|
|
1255
|
-
}
|