@ohos-ports/nx 23.2.1-beta.0 → 23.3.0-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/LICENSE +22 -0
- package/README.md +60 -13
- package/dist/bin/init-local.d.ts +8 -0
- package/dist/bin/init-local.js +192 -0
- package/dist/bin/nx-cloud.d.ts +3 -0
- package/dist/bin/nx-cloud.js +47 -0
- package/dist/bin/nx.d.ts +3 -0
- package/dist/bin/nx.js +341 -0
- package/dist/bin/post-install.d.ts +1 -0
- package/dist/bin/post-install.js +52 -0
- package/dist/bin/run-executor.d.ts +1 -0
- package/dist/bin/run-executor.js +66 -0
- package/dist/nx-cloud-internals.d.ts +1 -0
- package/dist/nx-cloud-internals.js +9 -0
- package/dist/plugins/package-json.d.ts +4 -0
- package/dist/plugins/package-json.js +40 -0
- package/dist/presets/core.json +1 -0
- package/dist/presets/npm.json +7 -0
- package/dist/release/changelog-renderer/index.d.ts +114 -0
- package/dist/release/changelog-renderer/index.js +397 -0
- package/dist/release/index.d.ts +4 -0
- package/dist/release/index.js +13 -0
- package/dist/src/adapter/angular-json.d.ts +10 -0
- package/dist/src/adapter/angular-json.js +129 -0
- package/dist/src/adapter/compat.d.ts +2 -0
- package/dist/src/adapter/compat.js +154 -0
- package/dist/src/adapter/ngcli-adapter.d.ts +105 -0
- package/dist/src/adapter/ngcli-adapter.js +1083 -0
- package/dist/src/adapter/rxjs-for-await.d.ts +109 -0
- package/dist/src/adapter/rxjs-for-await.js +362 -0
- package/dist/src/ai/clone-ai-config-repo.d.ts +11 -0
- package/dist/src/ai/clone-ai-config-repo.js +155 -0
- package/dist/src/ai/configure-ai-agents-disclaimer.d.ts +5 -0
- package/dist/src/ai/configure-ai-agents-disclaimer.js +31 -0
- package/dist/src/ai/constants.d.ts +46 -0
- package/dist/src/ai/constants.js +92 -0
- package/dist/src/ai/detect-ai-agent.d.ts +2 -0
- package/dist/src/ai/detect-ai-agent.js +12 -0
- package/dist/src/ai/set-up-ai-agents/get-agent-rules.d.ts +5 -0
- package/dist/src/ai/set-up-ai-agents/get-agent-rules.js +26 -0
- package/dist/src/ai/set-up-ai-agents/schema.d.ts +11 -0
- package/dist/src/ai/set-up-ai-agents/schema.json +34 -0
- package/dist/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts +10 -0
- package/dist/src/ai/set-up-ai-agents/set-up-ai-agents.js +578 -0
- package/dist/src/ai/utils.d.ts +33 -0
- package/dist/src/ai/utils.js +246 -0
- package/dist/src/analytics/analytics.d.ts +16 -0
- package/dist/src/analytics/analytics.js +246 -0
- package/dist/src/analytics/index.d.ts +1 -0
- package/dist/src/analytics/index.js +12 -0
- package/dist/src/command-line/add/add.d.ts +3 -0
- package/dist/src/command-line/add/add.js +142 -0
- package/dist/src/command-line/add/command-object.d.ts +8 -0
- package/dist/src/command-line/add/command-object.js +28 -0
- package/dist/src/command-line/add/completion.d.ts +1 -0
- package/dist/src/command-line/add/completion.js +15 -0
- package/dist/src/command-line/affected/affected.d.ts +10 -0
- package/dist/src/command-line/affected/affected.js +151 -0
- package/dist/src/command-line/affected/command-object.d.ts +6 -0
- package/dist/src/command-line/affected/command-object.js +83 -0
- package/dist/src/command-line/affected/completion.d.ts +1 -0
- package/dist/src/command-line/affected/completion.js +15 -0
- package/dist/src/command-line/ai/ai-output.d.ts +46 -0
- package/dist/src/command-line/ai/ai-output.js +86 -0
- package/dist/src/command-line/completion/argv-layout.d.ts +6 -0
- package/dist/src/command-line/completion/argv-layout.js +19 -0
- package/dist/src/command-line/completion/command-completions.d.ts +19 -0
- package/dist/src/command-line/completion/command-completions.js +120 -0
- package/dist/src/command-line/completion/command-handlers.d.ts +30 -0
- package/dist/src/command-line/completion/command-handlers.js +69 -0
- package/dist/src/command-line/completion/command-object.d.ts +10 -0
- package/dist/src/command-line/completion/command-object.js +102 -0
- package/dist/src/command-line/completion/completion-providers.d.ts +21 -0
- package/dist/src/command-line/completion/completion-providers.js +194 -0
- package/dist/src/command-line/completion/infix-targets.d.ts +1 -0
- package/dist/src/command-line/completion/infix-targets.js +48 -0
- package/dist/src/command-line/completion/metadata.d.ts +22 -0
- package/dist/src/command-line/completion/metadata.js +71 -0
- package/dist/src/command-line/completion/registrations.d.ts +9 -0
- package/dist/src/command-line/completion/registrations.js +16 -0
- package/dist/src/command-line/completion/scripts/bash.sh +51 -0
- package/dist/src/command-line/completion/scripts/fish.fish +47 -0
- package/dist/src/command-line/completion/scripts/powershell.ps1 +52 -0
- package/dist/src/command-line/completion/scripts/zsh.zsh +69 -0
- package/dist/src/command-line/completion/scripts.d.ts +18 -0
- package/dist/src/command-line/completion/scripts.js +140 -0
- package/dist/src/command-line/completion/trigger.d.ts +3 -0
- package/dist/src/command-line/completion/trigger.js +21 -0
- package/dist/src/command-line/completion/value-completions.d.ts +3 -0
- package/dist/src/command-line/completion/value-completions.js +21 -0
- package/dist/src/command-line/configure-ai-agents/command-object.d.ts +8 -0
- package/dist/src/command-line/configure-ai-agents/command-object.js +59 -0
- package/dist/src/command-line/configure-ai-agents/configure-ai-agents.d.ts +3 -0
- package/dist/src/command-line/configure-ai-agents/configure-ai-agents.js +436 -0
- package/dist/src/command-line/daemon/command-object.d.ts +3 -0
- package/dist/src/command-line/daemon/command-object.js +29 -0
- package/dist/src/command-line/daemon/daemon.d.ts +2 -0
- package/dist/src/command-line/daemon/daemon.js +31 -0
- package/dist/src/command-line/deprecated/command-objects.d.ts +9 -0
- package/dist/src/command-line/deprecated/command-objects.js +48 -0
- package/dist/src/command-line/examples.d.ts +12 -0
- package/dist/src/command-line/examples.js +403 -0
- package/dist/src/command-line/exec/command-object.d.ts +2 -0
- package/dist/src/command-line/exec/command-object.js +20 -0
- package/dist/src/command-line/exec/exec.d.ts +1 -0
- package/dist/src/command-line/exec/exec.js +143 -0
- package/dist/src/command-line/format/command-object.d.ts +3 -0
- package/dist/src/command-line/format/command-object.js +58 -0
- package/dist/src/command-line/format/format.d.ts +2 -0
- package/dist/src/command-line/format/format.js +200 -0
- package/dist/src/command-line/generate/command-object.d.ts +2 -0
- package/dist/src/command-line/generate/command-object.js +67 -0
- package/dist/src/command-line/generate/completion.d.ts +1 -0
- package/dist/src/command-line/generate/completion.js +9 -0
- package/dist/src/command-line/generate/generate.d.ts +21 -0
- package/dist/src/command-line/generate/generate.js +281 -0
- package/dist/src/command-line/generate/generator-utils.d.ts +18 -0
- package/dist/src/command-line/generate/generator-utils.js +91 -0
- package/dist/src/command-line/graph/command-object.d.ts +25 -0
- package/dist/src/command-line/graph/command-object.js +76 -0
- package/dist/src/command-line/graph/completion.d.ts +1 -0
- package/dist/src/command-line/graph/completion.js +13 -0
- package/dist/src/command-line/graph/graph.d.ts +101 -0
- package/dist/src/command-line/graph/graph.js +1080 -0
- package/dist/src/command-line/import/command-object.d.ts +2 -0
- package/dist/src/command-line/import/command-object.js +63 -0
- package/dist/src/command-line/import/import.d.ts +26 -0
- package/dist/src/command-line/import/import.js +590 -0
- package/dist/src/command-line/import/utils/ai-output.d.ts +93 -0
- package/dist/src/command-line/import/utils/ai-output.js +209 -0
- package/dist/src/command-line/import/utils/merge-remote-source.d.ts +2 -0
- package/dist/src/command-line/import/utils/merge-remote-source.js +14 -0
- package/dist/src/command-line/import/utils/prepare-source-repo.d.ts +2 -0
- package/dist/src/command-line/import/utils/prepare-source-repo.js +27 -0
- package/dist/src/command-line/index.d.ts +22 -0
- package/dist/src/command-line/index.js +26 -0
- package/dist/src/command-line/init/ai-agent-prompts.d.ts +2 -0
- package/dist/src/command-line/init/ai-agent-prompts.js +30 -0
- package/dist/src/command-line/init/command-object.d.ts +2 -0
- package/dist/src/command-line/init/command-object.js +118 -0
- package/dist/src/command-line/init/configure-plugins.d.ts +34 -0
- package/dist/src/command-line/init/configure-plugins.js +214 -0
- package/dist/src/command-line/init/implementation/add-nx-to-monorepo.d.ts +6 -0
- package/dist/src/command-line/init/implementation/add-nx-to-monorepo.js +119 -0
- package/dist/src/command-line/init/implementation/add-nx-to-nest.d.ts +5 -0
- package/dist/src/command-line/init/implementation/add-nx-to-nest.js +350 -0
- package/dist/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts +6 -0
- package/dist/src/command-line/init/implementation/add-nx-to-npm-repo.js +67 -0
- package/dist/src/command-line/init/implementation/add-nx-to-turborepo.d.ts +4 -0
- package/dist/src/command-line/init/implementation/add-nx-to-turborepo.js +37 -0
- package/dist/src/command-line/init/implementation/angular/index.d.ts +2 -0
- package/dist/src/command-line/init/implementation/angular/index.js +127 -0
- package/dist/src/command-line/init/implementation/angular/integrated-workspace.d.ts +1 -0
- package/dist/src/command-line/init/implementation/angular/integrated-workspace.js +9 -0
- package/dist/src/command-line/init/implementation/angular/legacy-angular-versions.d.ts +2 -0
- package/dist/src/command-line/init/implementation/angular/legacy-angular-versions.js +152 -0
- package/dist/src/command-line/init/implementation/angular/standalone-workspace.d.ts +1 -0
- package/dist/src/command-line/init/implementation/angular/standalone-workspace.js +204 -0
- package/dist/src/command-line/init/implementation/angular/types.d.ts +20 -0
- package/dist/src/command-line/init/implementation/angular/types.js +2 -0
- package/dist/src/command-line/init/implementation/check-compatible-with-plugins.d.ts +15 -0
- package/dist/src/command-line/init/implementation/check-compatible-with-plugins.js +136 -0
- package/dist/src/command-line/init/implementation/deduce-default-base.d.ts +1 -0
- package/dist/src/command-line/init/implementation/deduce-default-base.js +53 -0
- package/dist/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts +11 -0
- package/dist/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +151 -0
- package/dist/src/command-line/init/implementation/dot-nx/nxw.d.ts +1 -0
- package/dist/src/command-line/init/implementation/dot-nx/nxw.js +123 -0
- package/dist/src/command-line/init/implementation/format.d.ts +18 -0
- package/dist/src/command-line/init/implementation/format.js +113 -0
- package/dist/src/command-line/init/implementation/utils.d.ts +34 -0
- package/dist/src/command-line/init/implementation/utils.js +419 -0
- package/dist/src/command-line/init/init-v1.d.ts +8 -0
- package/dist/src/command-line/init/init-v1.js +101 -0
- package/dist/src/command-line/init/init-v2.d.ts +23 -0
- package/dist/src/command-line/init/init-v2.js +619 -0
- package/dist/src/command-line/init/utils/ai-output.d.ts +72 -0
- package/dist/src/command-line/init/utils/ai-output.js +180 -0
- package/dist/src/command-line/list/command-object.d.ts +2 -0
- package/dist/src/command-line/list/command-object.js +21 -0
- package/dist/src/command-line/list/list.d.ts +15 -0
- package/dist/src/command-line/list/list.js +48 -0
- package/dist/src/command-line/mcp/command-object.d.ts +2 -0
- package/dist/src/command-line/mcp/command-object.js +29 -0
- package/dist/src/command-line/mcp/mcp.d.ts +2 -0
- package/dist/src/command-line/mcp/mcp.js +60 -0
- package/dist/src/command-line/migrate/agentic/capture-generator-output.d.ts +47 -0
- package/dist/src/command-line/migrate/agentic/capture-generator-output.js +216 -0
- package/dist/src/command-line/migrate/agentic/cli-args.d.ts +12 -0
- package/dist/src/command-line/migrate/agentic/cli-args.js +38 -0
- package/dist/src/command-line/migrate/agentic/close-agent-session.d.ts +21 -0
- package/dist/src/command-line/migrate/agentic/close-agent-session.js +126 -0
- package/dist/src/command-line/migrate/agentic/definitions.d.ts +30 -0
- package/dist/src/command-line/migrate/agentic/definitions.js +207 -0
- package/dist/src/command-line/migrate/agentic/detect-installed.d.ts +10 -0
- package/dist/src/command-line/migrate/agentic/detect-installed.js +68 -0
- package/dist/src/command-line/migrate/agentic/format-command.d.ts +14 -0
- package/dist/src/command-line/migrate/agentic/format-command.js +44 -0
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.d.ts +61 -0
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.js +78 -0
- package/dist/src/command-line/migrate/agentic/handoff.d.ts +102 -0
- package/dist/src/command-line/migrate/agentic/handoff.js +335 -0
- package/dist/src/command-line/migrate/agentic/inception.d.ts +9 -0
- package/dist/src/command-line/migrate/agentic/inception.js +15 -0
- package/dist/src/command-line/migrate/agentic/instruction-files.d.ts +23 -0
- package/dist/src/command-line/migrate/agentic/instruction-files.js +41 -0
- package/dist/src/command-line/migrate/agentic/master/invocations.d.ts +12 -0
- package/dist/src/command-line/migrate/agentic/master/invocations.js +54 -0
- package/dist/src/command-line/migrate/agentic/master/run-master-session.d.ts +16 -0
- package/dist/src/command-line/migrate/agentic/master/run-master-session.js +175 -0
- package/dist/src/command-line/migrate/agentic/master/spawn-master.d.ts +31 -0
- package/dist/src/command-line/migrate/agentic/master/spawn-master.js +222 -0
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.d.ts +17 -0
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.js +57 -0
- package/dist/src/command-line/migrate/agentic/prompts/final-validation.d.ts +13 -0
- package/dist/src/command-line/migrate/agentic/prompts/final-validation.js +41 -0
- package/dist/src/command-line/migrate/agentic/prompts/fragments.d.ts +17 -0
- package/dist/src/command-line/migrate/agentic/prompts/fragments.js +90 -0
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.d.ts +56 -0
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.js +67 -0
- package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.d.ts +49 -0
- package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.js +53 -0
- package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.d.ts +26 -0
- package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.js +27 -0
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.d.ts +19 -0
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.js +145 -0
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.d.ts +70 -0
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.js +113 -0
- package/dist/src/command-line/migrate/agentic/run-step.d.ts +68 -0
- package/dist/src/command-line/migrate/agentic/run-step.js +148 -0
- package/dist/src/command-line/migrate/agentic/runner.d.ts +21 -0
- package/dist/src/command-line/migrate/agentic/runner.js +262 -0
- package/dist/src/command-line/migrate/agentic/select.d.ts +24 -0
- package/dist/src/command-line/migrate/agentic/select.js +251 -0
- package/dist/src/command-line/migrate/agentic/terminal-repair.d.ts +1 -0
- package/dist/src/command-line/migrate/agentic/terminal-repair.js +27 -0
- package/dist/src/command-line/migrate/agentic/types.d.ts +147 -0
- package/dist/src/command-line/migrate/agentic/types.js +40 -0
- package/dist/src/command-line/migrate/agentic/windows-cmd.d.ts +33 -0
- package/dist/src/command-line/migrate/agentic/windows-cmd.js +88 -0
- package/dist/src/command-line/migrate/command-object.d.ts +55 -0
- package/dist/src/command-line/migrate/command-object.js +162 -0
- package/dist/src/command-line/migrate/deferred-output.d.ts +44 -0
- package/dist/src/command-line/migrate/deferred-output.js +92 -0
- package/dist/src/command-line/migrate/execute-migration.d.ts +97 -0
- package/dist/src/command-line/migrate/execute-migration.js +511 -0
- package/dist/src/command-line/migrate/migrate-analytics.d.ts +131 -0
- package/dist/src/command-line/migrate/migrate-analytics.js +378 -0
- package/dist/src/command-line/migrate/migrate-commits.d.ts +81 -0
- package/dist/src/command-line/migrate/migrate-commits.js +227 -0
- package/dist/src/command-line/migrate/migrate-config.d.ts +32 -0
- package/dist/src/command-line/migrate/migrate-config.js +120 -0
- package/dist/src/command-line/migrate/migrate-output.d.ts +214 -0
- package/dist/src/command-line/migrate/migrate-output.js +298 -0
- package/dist/src/command-line/migrate/migrate-ui-api.d.ts +89 -0
- package/dist/src/command-line/migrate/migrate-ui-api.js +437 -0
- package/dist/src/command-line/migrate/migrate.d.ts +245 -0
- package/dist/src/command-line/migrate/migrate.js +2944 -0
- package/dist/src/command-line/migrate/migration-shape.d.ts +16 -0
- package/dist/src/command-line/migrate/migration-shape.js +13 -0
- package/dist/src/command-line/migrate/multi-major.d.ts +37 -0
- package/dist/src/command-line/migrate/multi-major.js +215 -0
- package/dist/src/command-line/migrate/prompt-files.d.ts +31 -0
- package/dist/src/command-line/migrate/prompt-files.js +134 -0
- package/dist/src/command-line/migrate/resolve-package-version.d.ts +24 -0
- package/dist/src/command-line/migrate/resolve-package-version.js +228 -0
- package/dist/src/command-line/migrate/run/agent-output.d.ts +31 -0
- package/dist/src/command-line/migrate/run/agent-output.js +84 -0
- package/dist/src/command-line/migrate/run/agent-work-payload.d.ts +37 -0
- package/dist/src/command-line/migrate/run/agent-work-payload.js +156 -0
- package/dist/src/command-line/migrate/run/atomic-write.d.ts +8 -0
- package/dist/src/command-line/migrate/run/atomic-write.js +17 -0
- package/dist/src/command-line/migrate/run/broker.d.ts +150 -0
- package/dist/src/command-line/migrate/run/broker.js +568 -0
- package/dist/src/command-line/migrate/run/clean-retry.d.ts +12 -0
- package/dist/src/command-line/migrate/run/clean-retry.js +99 -0
- package/dist/src/command-line/migrate/run/existing-run-report.d.ts +55 -0
- package/dist/src/command-line/migrate/run/existing-run-report.js +227 -0
- package/dist/src/command-line/migrate/run/give-up.d.ts +41 -0
- package/dist/src/command-line/migrate/run/give-up.js +148 -0
- package/dist/src/command-line/migrate/run/index.d.ts +12 -0
- package/dist/src/command-line/migrate/run/index.js +42 -0
- package/dist/src/command-line/migrate/run/issues.d.ts +127 -0
- package/dist/src/command-line/migrate/run/issues.js +1121 -0
- package/dist/src/command-line/migrate/run/orchestrator.d.ts +78 -0
- package/dist/src/command-line/migrate/run/orchestrator.js +2272 -0
- package/dist/src/command-line/migrate/run/run-id.d.ts +8 -0
- package/dist/src/command-line/migrate/run/run-id.js +26 -0
- package/dist/src/command-line/migrate/run/run-state.d.ts +217 -0
- package/dist/src/command-line/migrate/run/run-state.js +669 -0
- package/dist/src/command-line/migrate/run/runbook.d.ts +18 -0
- package/dist/src/command-line/migrate/run/runbook.js +118 -0
- package/dist/src/command-line/migrate/run/state-lock.d.ts +56 -0
- package/dist/src/command-line/migrate/run/state-lock.js +202 -0
- package/dist/src/command-line/migrate/run/state-machine.d.ts +133 -0
- package/dist/src/command-line/migrate/run/state-machine.js +628 -0
- package/dist/src/command-line/migrate/run/util.d.ts +61 -0
- package/dist/src/command-line/migrate/run/util.js +169 -0
- package/dist/src/command-line/migrate/run/worker.d.ts +16 -0
- package/dist/src/command-line/migrate/run/worker.js +843 -0
- package/dist/src/command-line/migrate/run-migration-process.js +110 -0
- package/dist/src/command-line/migrate/safe-prompt.d.ts +21 -0
- package/dist/src/command-line/migrate/safe-prompt.js +47 -0
- package/dist/src/command-line/migrate/sort-migrations.d.ts +16 -0
- package/dist/src/command-line/migrate/sort-migrations.js +32 -0
- package/dist/src/command-line/migrate/step-actions.d.ts +5 -0
- package/dist/src/command-line/migrate/step-actions.js +18 -0
- package/dist/src/command-line/migrate/text.d.ts +24 -0
- package/dist/src/command-line/migrate/text.js +51 -0
- package/dist/src/command-line/migrate/update-filters.d.ts +11 -0
- package/dist/src/command-line/migrate/update-filters.js +45 -0
- package/dist/src/command-line/migrate/version-skew-guard.d.ts +60 -0
- package/dist/src/command-line/migrate/version-skew-guard.js +177 -0
- package/dist/src/command-line/migrate/version-utils.d.ts +5 -0
- package/dist/src/command-line/migrate/version-utils.js +52 -0
- package/dist/src/command-line/new/command-object.d.ts +2 -0
- package/dist/src/command-line/new/command-object.js +26 -0
- package/dist/src/command-line/new/new.d.ts +3 -0
- package/dist/src/command-line/new/new.js +30 -0
- package/dist/src/command-line/nx-cloud/apply-locally/apply-locally.d.ts +4 -0
- package/dist/src/command-line/nx-cloud/apply-locally/apply-locally.js +13 -0
- package/dist/src/command-line/nx-cloud/apply-locally/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/apply-locally/command-object.js +16 -0
- package/dist/src/command-line/nx-cloud/complete-run/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/complete-run/command-object.js +17 -0
- package/dist/src/command-line/nx-cloud/complete-run/stop-all-agents.d.ts +4 -0
- package/dist/src/command-line/nx-cloud/complete-run/stop-all-agents.js +13 -0
- package/dist/src/command-line/nx-cloud/connect/command-object.d.ts +3 -0
- package/dist/src/command-line/nx-cloud/connect/command-object.js +28 -0
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts +13 -0
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +260 -0
- package/dist/src/command-line/nx-cloud/connect/view-logs.d.ts +1 -0
- package/dist/src/command-line/nx-cloud/connect/view-logs.js +55 -0
- package/dist/src/command-line/nx-cloud/download-cloud-client/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/download-cloud-client/command-object.js +13 -0
- package/dist/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.d.ts +4 -0
- package/dist/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.js +32 -0
- package/dist/src/command-line/nx-cloud/fix-ci/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/fix-ci/command-object.js +16 -0
- package/dist/src/command-line/nx-cloud/fix-ci/fix-ci.d.ts +4 -0
- package/dist/src/command-line/nx-cloud/fix-ci/fix-ci.js +13 -0
- package/dist/src/command-line/nx-cloud/login/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/login/command-object.js +20 -0
- package/dist/src/command-line/nx-cloud/login/login.d.ts +5 -0
- package/dist/src/command-line/nx-cloud/login/login.js +10 -0
- package/dist/src/command-line/nx-cloud/logout/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/logout/command-object.js +16 -0
- package/dist/src/command-line/nx-cloud/logout/logout.d.ts +4 -0
- package/dist/src/command-line/nx-cloud/logout/logout.js +7 -0
- package/dist/src/command-line/nx-cloud/record/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/record/command-object.js +19 -0
- package/dist/src/command-line/nx-cloud/record/record.d.ts +5 -0
- package/dist/src/command-line/nx-cloud/record/record.js +33 -0
- package/dist/src/command-line/nx-cloud/start-agent/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/start-agent/command-object.js +16 -0
- package/dist/src/command-line/nx-cloud/start-agent/start-agent.d.ts +4 -0
- package/dist/src/command-line/nx-cloud/start-agent/start-agent.js +13 -0
- package/dist/src/command-line/nx-cloud/start-ci-run/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/start-ci-run/command-object.js +16 -0
- package/dist/src/command-line/nx-cloud/start-ci-run/start-ci-run.d.ts +4 -0
- package/dist/src/command-line/nx-cloud/start-ci-run/start-ci-run.js +13 -0
- package/dist/src/command-line/nx-cloud/start-nx-agents/command-object.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/start-nx-agents/command-object.js +16 -0
- package/dist/src/command-line/nx-cloud/start-nx-agents/start-nx-agents.d.ts +4 -0
- package/dist/src/command-line/nx-cloud/start-nx-agents/start-nx-agents.js +13 -0
- package/dist/src/command-line/nx-cloud/utils.d.ts +2 -0
- package/dist/src/command-line/nx-cloud/utils.js +34 -0
- package/dist/src/command-line/nx-commands.d.ts +10 -0
- package/dist/src/command-line/nx-commands.js +183 -0
- package/dist/src/command-line/register/command-object.d.ts +6 -0
- package/dist/src/command-line/register/command-object.js +27 -0
- package/dist/src/command-line/register/register.d.ts +2 -0
- package/dist/src/command-line/register/register.js +9 -0
- package/dist/src/command-line/release/changelog/commit-utils.d.ts +13 -0
- package/dist/src/command-line/release/changelog/commit-utils.js +63 -0
- package/dist/src/command-line/release/changelog/version-plan-filtering.d.ts +43 -0
- package/dist/src/command-line/release/changelog/version-plan-filtering.js +156 -0
- package/dist/src/command-line/release/changelog/version-plan-utils.d.ts +31 -0
- package/dist/src/command-line/release/changelog/version-plan-utils.js +92 -0
- package/dist/src/command-line/release/changelog.d.ts +28 -0
- package/dist/src/command-line/release/changelog.js +907 -0
- package/dist/src/command-line/release/command-object.d.ts +96 -0
- package/dist/src/command-line/release/command-object.js +342 -0
- package/dist/src/command-line/release/config/config.d.ts +70 -0
- package/dist/src/command-line/release/config/config.js +1204 -0
- package/dist/src/command-line/release/config/conventional-commits.d.ts +2 -0
- package/dist/src/command-line/release/config/conventional-commits.js +106 -0
- package/dist/src/command-line/release/config/deep-merge-json.d.ts +1 -0
- package/dist/src/command-line/release/config/deep-merge-json.js +28 -0
- package/dist/src/command-line/release/config/filter-release-groups.d.ts +23 -0
- package/dist/src/command-line/release/config/filter-release-groups.js +157 -0
- package/dist/src/command-line/release/config/use-legacy-versioning.d.ts +2 -0
- package/dist/src/command-line/release/config/use-legacy-versioning.js +8 -0
- package/dist/src/command-line/release/config/version-plans.d.ts +42 -0
- package/dist/src/command-line/release/config/version-plans.js +278 -0
- package/dist/src/command-line/release/index.d.ts +49 -0
- package/dist/src/command-line/release/index.js +49 -0
- package/dist/src/command-line/release/plan-check.d.ts +4 -0
- package/dist/src/command-line/release/plan-check.js +170 -0
- package/dist/src/command-line/release/plan.d.ts +4 -0
- package/dist/src/command-line/release/plan.js +248 -0
- package/dist/src/command-line/release/publish.d.ts +9 -0
- package/dist/src/command-line/release/publish.js +298 -0
- package/dist/src/command-line/release/release.d.ts +5 -0
- package/dist/src/command-line/release/release.js +299 -0
- package/dist/src/command-line/release/utils/diff.d.ts +21 -0
- package/dist/src/command-line/release/utils/diff.js +168 -0
- package/dist/src/command-line/release/utils/exec-command.d.ts +1 -0
- package/dist/src/command-line/release/utils/exec-command.js +34 -0
- package/dist/src/command-line/release/utils/generate-version-plan-content.d.ts +1 -0
- package/dist/src/command-line/release/utils/generate-version-plan-content.js +20 -0
- package/dist/src/command-line/release/utils/get-touched-projects-for-group.d.ts +7 -0
- package/dist/src/command-line/release/utils/get-touched-projects-for-group.js +78 -0
- package/dist/src/command-line/release/utils/git.d.ts +126 -0
- package/dist/src/command-line/release/utils/git.js +597 -0
- package/dist/src/command-line/release/utils/launch-editor.d.ts +1 -0
- package/dist/src/command-line/release/utils/launch-editor.js +46 -0
- package/dist/src/command-line/release/utils/markdown.d.ts +6 -0
- package/dist/src/command-line/release/utils/markdown.js +28 -0
- package/dist/src/command-line/release/utils/print-changes.d.ts +6 -0
- package/dist/src/command-line/release/utils/print-changes.js +63 -0
- package/dist/src/command-line/release/utils/print-config.d.ts +7 -0
- package/dist/src/command-line/release/utils/print-config.js +36 -0
- package/dist/src/command-line/release/utils/release-graph.d.ts +248 -0
- package/dist/src/command-line/release/utils/release-graph.js +769 -0
- package/dist/src/command-line/release/utils/remote-release-clients/extract-repo-slug.d.ts +9 -0
- package/dist/src/command-line/release/utils/remote-release-clients/extract-repo-slug.js +61 -0
- package/dist/src/command-line/release/utils/remote-release-clients/github.d.ts +58 -0
- package/dist/src/command-line/release/utils/remote-release-clients/github.js +333 -0
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.d.ts +62 -0
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.js +259 -0
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.d.ts +113 -0
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.js +172 -0
- package/dist/src/command-line/release/utils/repository-git-tags.d.ts +25 -0
- package/dist/src/command-line/release/utils/repository-git-tags.js +125 -0
- package/dist/src/command-line/release/utils/resolve-changelog-renderer.d.ts +2 -0
- package/dist/src/command-line/release/utils/resolve-changelog-renderer.js +22 -0
- package/dist/src/command-line/release/utils/resolve-nx-json-error-message.d.ts +1 -0
- package/dist/src/command-line/release/utils/resolve-nx-json-error-message.js +53 -0
- package/dist/src/command-line/release/utils/resolve-semver-specifier.d.ts +7 -0
- package/dist/src/command-line/release/utils/resolve-semver-specifier.js +41 -0
- package/dist/src/command-line/release/utils/semver.d.ts +26 -0
- package/dist/src/command-line/release/utils/semver.js +111 -0
- package/dist/src/command-line/release/utils/shared-legacy.d.ts +25 -0
- package/dist/src/command-line/release/utils/shared-legacy.js +2 -0
- package/dist/src/command-line/release/utils/shared.d.ts +64 -0
- package/dist/src/command-line/release/utils/shared.js +379 -0
- package/dist/src/command-line/release/utils/version-plan-utils.d.ts +40 -0
- package/dist/src/command-line/release/utils/version-plan-utils.js +111 -0
- package/dist/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts +8 -0
- package/dist/src/command-line/release/version/derive-specifier-from-conventional-commits.js +61 -0
- package/dist/src/command-line/release/version/deriver-specifier-from-version-plans.d.ts +8 -0
- package/dist/src/command-line/release/version/deriver-specifier-from-version-plans.js +59 -0
- package/dist/src/command-line/release/version/project-logger.d.ts +8 -0
- package/dist/src/command-line/release/version/project-logger.js +47 -0
- package/dist/src/command-line/release/version/release-group-processor.d.ts +139 -0
- package/dist/src/command-line/release/version/release-group-processor.js +706 -0
- package/dist/src/command-line/release/version/resolve-current-version.d.ts +32 -0
- package/dist/src/command-line/release/version/resolve-current-version.js +240 -0
- package/dist/src/command-line/release/version/topological-sort.d.ts +9 -0
- package/dist/src/command-line/release/version/topological-sort.js +41 -0
- package/dist/src/command-line/release/version/version-actions.d.ts +227 -0
- package/dist/src/command-line/release/version/version-actions.js +255 -0
- package/dist/src/command-line/release/version.d.ts +28 -0
- package/dist/src/command-line/release/version.js +382 -0
- package/dist/src/command-line/repair/command-object.d.ts +2 -0
- package/dist/src/command-line/repair/command-object.js +21 -0
- package/dist/src/command-line/repair/repair.d.ts +3 -0
- package/dist/src/command-line/repair/repair.js +41 -0
- package/dist/src/command-line/report/command-object.d.ts +2 -0
- package/dist/src/command-line/report/command-object.js +12 -0
- package/dist/src/command-line/report/report.d.ts +73 -0
- package/dist/src/command-line/report/report.js +432 -0
- package/dist/src/command-line/reset/command-object.d.ts +8 -0
- package/dist/src/command-line/reset/command-object.js +27 -0
- package/dist/src/command-line/reset/reset.d.ts +2 -0
- package/dist/src/command-line/reset/reset.js +189 -0
- package/dist/src/command-line/run/command-object.d.ts +6 -0
- package/dist/src/command-line/run/command-object.js +43 -0
- package/dist/src/command-line/run/completion.d.ts +1 -0
- package/dist/src/command-line/run/completion.js +7 -0
- package/dist/src/command-line/run/executor-utils.d.ts +12 -0
- package/dist/src/command-line/run/executor-utils.js +96 -0
- package/dist/src/command-line/run/run-one.d.ts +17 -0
- package/dist/src/command-line/run/run-one.js +159 -0
- package/dist/src/command-line/run/run.d.ts +51 -0
- package/dist/src/command-line/run/run.js +179 -0
- package/dist/src/command-line/run-many/command-object.d.ts +2 -0
- package/dist/src/command-line/run-many/command-object.js +18 -0
- package/dist/src/command-line/run-many/completion.d.ts +1 -0
- package/dist/src/command-line/run-many/completion.js +13 -0
- package/dist/src/command-line/run-many/run-many.d.ts +10 -0
- package/dist/src/command-line/run-many/run-many.js +84 -0
- package/dist/src/command-line/show/command-object.d.ts +40 -0
- package/dist/src/command-line/show/command-object.js +237 -0
- package/dist/src/command-line/show/completion.d.ts +1 -0
- package/dist/src/command-line/show/completion.js +27 -0
- package/dist/src/command-line/show/project.d.ts +2 -0
- package/dist/src/command-line/show/project.js +103 -0
- package/dist/src/command-line/show/projects.d.ts +2 -0
- package/dist/src/command-line/show/projects.js +131 -0
- package/dist/src/command-line/show/show-target/index.d.ts +3 -0
- package/dist/src/command-line/show/show-target/index.js +9 -0
- package/dist/src/command-line/show/show-target/info.d.ts +28 -0
- package/dist/src/command-line/show/show-target/info.js +389 -0
- package/dist/src/command-line/show/show-target/inputs.d.ts +2 -0
- package/dist/src/command-line/show/show-target/inputs.js +83 -0
- package/dist/src/command-line/show/show-target/outputs.d.ts +2 -0
- package/dist/src/command-line/show/show-target/outputs.js +70 -0
- package/dist/src/command-line/show/show-target/utils.d.ts +54 -0
- package/dist/src/command-line/show/show-target/utils.js +265 -0
- package/dist/src/command-line/sync/command-object.d.ts +6 -0
- package/dist/src/command-line/sync/command-object.js +21 -0
- package/dist/src/command-line/sync/sync.d.ts +6 -0
- package/dist/src/command-line/sync/sync.js +120 -0
- package/dist/src/command-line/watch/command-object.d.ts +2 -0
- package/dist/src/command-line/watch/command-object.js +91 -0
- package/dist/src/command-line/watch/completion.d.ts +1 -0
- package/dist/src/command-line/watch/completion.js +10 -0
- package/dist/src/command-line/watch/watch.d.ts +31 -0
- package/dist/src/command-line/watch/watch.js +211 -0
- package/dist/src/command-line/yargs-utils/arguments-of.d.ts +11 -0
- package/dist/src/command-line/yargs-utils/arguments-of.js +9 -0
- package/dist/src/command-line/yargs-utils/documentation.d.ts +2 -0
- package/dist/src/command-line/yargs-utils/documentation.js +12 -0
- package/dist/src/command-line/yargs-utils/shared-options.d.ts +95 -0
- package/dist/src/command-line/yargs-utils/shared-options.js +431 -0
- package/dist/src/commands-runner/command-graph.d.ts +13 -0
- package/dist/src/commands-runner/command-graph.js +2 -0
- package/dist/src/commands-runner/create-command-graph.d.ts +4 -0
- package/dist/src/commands-runner/create-command-graph.js +72 -0
- package/dist/src/commands-runner/get-command-projects.d.ts +3 -0
- package/dist/src/commands-runner/get-command-projects.js +33 -0
- package/dist/src/config/calculate-default-project-name.d.ts +4 -0
- package/dist/src/config/calculate-default-project-name.js +41 -0
- package/dist/src/config/configuration.d.ts +8 -0
- package/dist/src/config/configuration.js +17 -0
- package/dist/src/config/misc-interfaces.d.ts +266 -0
- package/dist/src/config/misc-interfaces.js +2 -0
- package/dist/src/config/nx-json.d.ts +963 -0
- package/dist/src/config/nx-json.js +40 -0
- package/dist/src/config/project-graph.d.ts +137 -0
- package/dist/src/config/project-graph.js +45 -0
- package/dist/src/config/schema-utils.d.ts +37 -0
- package/dist/src/config/schema-utils.js +199 -0
- package/dist/src/config/task-graph.d.ts +6 -0
- package/dist/src/config/task-graph.js +2 -0
- package/dist/src/config/to-project-name.d.ts +5 -0
- package/dist/src/config/to-project-name.js +12 -0
- package/dist/src/config/workspace-json-project-json.d.ts +295 -0
- package/dist/src/config/workspace-json-project-json.js +2 -0
- package/dist/src/core/graph/environment.js +1 -0
- package/dist/src/core/graph/favicon.ico +0 -0
- package/dist/src/core/graph/index.html +32 -0
- package/dist/src/core/graph/main.js +1 -0
- package/dist/src/core/graph/runtime.js +1 -0
- package/dist/src/core/graph/styles.css +2 -0
- package/dist/src/core/graph/styles.js +1 -0
- package/dist/src/daemon/cache.d.ts +10 -0
- package/dist/src/daemon/cache.js +58 -0
- package/dist/src/daemon/client/client.d.ts +167 -0
- package/dist/src/daemon/client/client.js +1284 -0
- package/dist/src/daemon/client/daemon-environment.d.ts +74 -0
- package/dist/src/daemon/client/daemon-environment.js +422 -0
- package/dist/src/daemon/client/daemon-socket-messenger.d.ts +12 -0
- package/dist/src/daemon/client/daemon-socket-messenger.js +63 -0
- package/dist/src/daemon/is-nx-version-mismatch.d.ts +1 -0
- package/dist/src/daemon/is-nx-version-mismatch.js +8 -0
- package/dist/src/daemon/is-on-daemon.d.ts +1 -0
- package/dist/src/daemon/is-on-daemon.js +6 -0
- package/dist/src/daemon/is-v8-serializer-enabled.d.ts +5 -0
- package/dist/src/daemon/is-v8-serializer-enabled.js +10 -0
- package/dist/src/daemon/logger.d.ts +39 -0
- package/dist/src/daemon/logger.js +80 -0
- package/dist/src/daemon/message-types/configure-ai-agents.d.ts +20 -0
- package/dist/src/daemon/message-types/configure-ai-agents.js +19 -0
- package/dist/src/daemon/message-types/daemon-message.d.ts +39 -0
- package/dist/src/daemon/message-types/daemon-message.js +54 -0
- package/dist/src/daemon/message-types/flush-sync-generator-changes-to-disk.d.ts +6 -0
- package/dist/src/daemon/message-types/flush-sync-generator-changes-to-disk.js +11 -0
- package/dist/src/daemon/message-types/force-shutdown.d.ts +5 -0
- package/dist/src/daemon/message-types/force-shutdown.js +11 -0
- package/dist/src/daemon/message-types/get-context-file-data.d.ts +5 -0
- package/dist/src/daemon/message-types/get-context-file-data.js +11 -0
- package/dist/src/daemon/message-types/get-files-in-directory.d.ts +6 -0
- package/dist/src/daemon/message-types/get-files-in-directory.js +11 -0
- package/dist/src/daemon/message-types/get-nx-workspace-files.d.ts +6 -0
- package/dist/src/daemon/message-types/get-nx-workspace-files.js +11 -0
- package/dist/src/daemon/message-types/get-plugin-capabilities.d.ts +5 -0
- package/dist/src/daemon/message-types/get-plugin-capabilities.js +11 -0
- package/dist/src/daemon/message-types/get-registered-sync-generators.d.ts +5 -0
- package/dist/src/daemon/message-types/get-registered-sync-generators.js +11 -0
- package/dist/src/daemon/message-types/get-sync-generator-changes.d.ts +6 -0
- package/dist/src/daemon/message-types/get-sync-generator-changes.js +11 -0
- package/dist/src/daemon/message-types/glob.d.ts +14 -0
- package/dist/src/daemon/message-types/glob.js +19 -0
- package/dist/src/daemon/message-types/hash-glob.d.ts +13 -0
- package/dist/src/daemon/message-types/hash-glob.js +19 -0
- package/dist/src/daemon/message-types/nx-console.d.ts +17 -0
- package/dist/src/daemon/message-types/nx-console.js +19 -0
- package/dist/src/daemon/message-types/register-project-graph-listener.d.ts +5 -0
- package/dist/src/daemon/message-types/register-project-graph-listener.js +11 -0
- package/dist/src/daemon/message-types/run-tasks-execution-hooks.d.ts +14 -0
- package/dist/src/daemon/message-types/run-tasks-execution-hooks.js +19 -0
- package/dist/src/daemon/message-types/select-affected-tasks.d.ts +21 -0
- package/dist/src/daemon/message-types/select-affected-tasks.js +11 -0
- package/dist/src/daemon/message-types/streaming-messages.d.ts +14 -0
- package/dist/src/daemon/message-types/streaming-messages.js +19 -0
- package/dist/src/daemon/message-types/task-history.d.ts +19 -0
- package/dist/src/daemon/message-types/task-history.js +27 -0
- package/dist/src/daemon/message-types/ultracache-configuration-version.d.ts +8 -0
- package/dist/src/daemon/message-types/ultracache-configuration-version.js +2 -0
- package/dist/src/daemon/message-types/update-workspace-context.d.ts +8 -0
- package/dist/src/daemon/message-types/update-workspace-context.js +11 -0
- package/dist/src/daemon/sandbox-socket-hint.d.ts +27 -0
- package/dist/src/daemon/sandbox-socket-hint.js +136 -0
- package/dist/src/daemon/server/client-socket-context.d.ts +23 -0
- package/dist/src/daemon/server/client-socket-context.js +88 -0
- package/dist/src/daemon/server/dotenv-graph-changes.d.ts +97 -0
- package/dist/src/daemon/server/dotenv-graph-changes.js +284 -0
- package/dist/src/daemon/server/file-watching/changed-projects.d.ts +10 -0
- package/dist/src/daemon/server/file-watching/changed-projects.js +53 -0
- package/dist/src/daemon/server/file-watching/file-change-events.d.ts +7 -0
- package/dist/src/daemon/server/file-watching/file-change-events.js +19 -0
- package/dist/src/daemon/server/file-watching/file-watcher-sockets.d.ts +17 -0
- package/dist/src/daemon/server/file-watching/file-watcher-sockets.js +82 -0
- package/dist/src/daemon/server/handle-client-env.d.ts +8 -0
- package/dist/src/daemon/server/handle-client-env.js +113 -0
- package/dist/src/daemon/server/handle-configure-ai-agents.d.ts +3 -0
- package/dist/src/daemon/server/handle-configure-ai-agents.js +101 -0
- package/dist/src/daemon/server/handle-context-file-data.d.ts +2 -0
- package/dist/src/daemon/server/handle-context-file-data.js +12 -0
- package/dist/src/daemon/server/handle-flush-sync-generator-changes-to-disk.d.ts +2 -0
- package/dist/src/daemon/server/handle-flush-sync-generator-changes-to-disk.js +11 -0
- package/dist/src/daemon/server/handle-force-shutdown.d.ts +5 -0
- package/dist/src/daemon/server/handle-force-shutdown.js +18 -0
- package/dist/src/daemon/server/handle-get-files-in-directory.d.ts +2 -0
- package/dist/src/daemon/server/handle-get-files-in-directory.js +12 -0
- package/dist/src/daemon/server/handle-get-plugin-capabilities.d.ts +2 -0
- package/dist/src/daemon/server/handle-get-plugin-capabilities.js +13 -0
- package/dist/src/daemon/server/handle-get-registered-sync-generators.d.ts +2 -0
- package/dist/src/daemon/server/handle-get-registered-sync-generators.js +11 -0
- package/dist/src/daemon/server/handle-get-sync-generator-changes.d.ts +2 -0
- package/dist/src/daemon/server/handle-get-sync-generator-changes.js +20 -0
- package/dist/src/daemon/server/handle-glob.d.ts +3 -0
- package/dist/src/daemon/server/handle-glob.js +20 -0
- package/dist/src/daemon/server/handle-hash-glob.d.ts +3 -0
- package/dist/src/daemon/server/handle-hash-glob.js +20 -0
- package/dist/src/daemon/server/handle-hash-tasks.d.ts +20 -0
- package/dist/src/daemon/server/handle-hash-tasks.js +43 -0
- package/dist/src/daemon/server/handle-nx-console.d.ts +3 -0
- package/dist/src/daemon/server/handle-nx-console.js +54 -0
- package/dist/src/daemon/server/handle-nx-workspace-files.d.ts +2 -0
- package/dist/src/daemon/server/handle-nx-workspace-files.js +12 -0
- package/dist/src/daemon/server/handle-outputs-tracking.d.ts +15 -0
- package/dist/src/daemon/server/handle-outputs-tracking.js +35 -0
- package/dist/src/daemon/server/handle-process-in-background.d.ts +6 -0
- package/dist/src/daemon/server/handle-process-in-background.js +32 -0
- package/dist/src/daemon/server/handle-request-project-graph.d.ts +3 -0
- package/dist/src/daemon/server/handle-request-project-graph.js +36 -0
- package/dist/src/daemon/server/handle-request-shutdown.d.ts +5 -0
- package/dist/src/daemon/server/handle-request-shutdown.js +27 -0
- package/dist/src/daemon/server/handle-select-affected-tasks.d.ts +3 -0
- package/dist/src/daemon/server/handle-select-affected-tasks.js +26 -0
- package/dist/src/daemon/server/handle-task-history.d.ts +13 -0
- package/dist/src/daemon/server/handle-task-history.js +30 -0
- package/dist/src/daemon/server/handle-tasks-execution-hooks.d.ts +20 -0
- package/dist/src/daemon/server/handle-tasks-execution-hooks.js +35 -0
- package/dist/src/daemon/server/handle-update-workspace-context.d.ts +2 -0
- package/dist/src/daemon/server/handle-update-workspace-context.js +11 -0
- package/dist/src/daemon/server/handle-watch-events.d.ts +10 -0
- package/dist/src/daemon/server/handle-watch-events.js +85 -0
- package/dist/src/daemon/server/latest-nx.d.ts +10 -0
- package/dist/src/daemon/server/latest-nx.js +56 -0
- package/dist/src/daemon/server/nx-console-operations.d.ts +26 -0
- package/dist/src/daemon/server/nx-console-operations.js +97 -0
- package/dist/src/daemon/server/outputs-tracking.d.ts +11 -0
- package/dist/src/daemon/server/outputs-tracking.js +20 -0
- package/dist/src/daemon/server/planning-context.d.ts +8 -0
- package/dist/src/daemon/server/planning-context.js +18 -0
- package/dist/src/daemon/server/project-graph-incremental-recomputation.d.ts +62 -0
- package/dist/src/daemon/server/project-graph-incremental-recomputation.js +690 -0
- package/dist/src/daemon/server/project-graph-listener-sockets.d.ts +7 -0
- package/dist/src/daemon/server/project-graph-listener-sockets.js +25 -0
- package/dist/src/daemon/server/restart-checks.d.ts +22 -0
- package/dist/src/daemon/server/restart-checks.js +77 -0
- package/dist/src/daemon/server/server.d.ts +11 -0
- package/dist/src/daemon/server/server.js +489 -0
- package/dist/src/daemon/server/shutdown-utils.d.ts +18 -0
- package/dist/src/daemon/server/shutdown-utils.js +136 -0
- package/dist/src/daemon/server/start.d.ts +1 -0
- package/dist/src/daemon/server/start.js +20 -0
- package/dist/src/daemon/server/sync-generators.d.ts +14 -0
- package/dist/src/daemon/server/sync-generators.js +368 -0
- package/dist/src/daemon/server/ultracache-configuration-state.d.ts +7 -0
- package/dist/src/daemon/server/ultracache-configuration-state.js +36 -0
- package/dist/src/daemon/socket-utils.d.ts +43 -0
- package/dist/src/daemon/socket-utils.js +131 -0
- package/dist/src/daemon/tmp-dir.d.ts +62 -0
- package/dist/src/daemon/tmp-dir.js +477 -0
- package/dist/src/devkit-exports.d.ts +139 -0
- package/dist/src/devkit-exports.js +143 -0
- package/dist/src/devkit-internals.d.ts +146 -0
- package/dist/src/devkit-internals.js +336 -0
- package/dist/src/devkit-testing-exports.d.ts +2 -0
- package/dist/src/devkit-testing-exports.js +8 -0
- package/dist/src/executors/noop/noop.impl.d.ts +3 -0
- package/dist/src/executors/noop/noop.impl.js +6 -0
- package/dist/src/executors/noop/schema.json +10 -0
- package/dist/src/executors/run-commands/run-commands.impl.d.ts +60 -0
- package/dist/src/executors/run-commands/run-commands.impl.js +315 -0
- package/dist/src/executors/run-commands/running-tasks.d.ts +53 -0
- package/dist/src/executors/run-commands/running-tasks.js +603 -0
- package/dist/src/executors/run-commands/schema.json +198 -0
- package/dist/src/executors/run-script/run-script.impl.d.ts +8 -0
- package/dist/src/executors/run-script/run-script.impl.js +86 -0
- package/dist/src/executors/run-script/schema.json +28 -0
- package/dist/src/executors/utils/convert-nx-executor.d.ts +10 -0
- package/dist/src/executors/utils/convert-nx-executor.js +83 -0
- package/dist/src/generators/internal-utils/format-changed-files.d.ts +24 -0
- package/dist/src/generators/internal-utils/format-changed-files.js +163 -0
- package/dist/src/generators/testing-utils/create-tree-with-empty-workspace.d.ts +26 -0
- package/dist/src/generators/testing-utils/create-tree-with-empty-workspace.js +70 -0
- package/dist/src/generators/testing-utils/create-tree.d.ts +5 -0
- package/dist/src/generators/testing-utils/create-tree.js +14 -0
- package/dist/src/generators/tree.d.ts +127 -0
- package/dist/src/generators/tree.js +310 -0
- package/dist/src/generators/utils/generate-files.d.ts +44 -0
- package/dist/src/generators/utils/generate-files.js +114 -0
- package/dist/src/generators/utils/glob.d.ts +22 -0
- package/dist/src/generators/utils/glob.js +51 -0
- package/dist/src/generators/utils/json.d.ts +28 -0
- package/dist/src/generators/utils/json.js +48 -0
- package/dist/src/generators/utils/nx-json.d.ts +10 -0
- package/dist/src/generators/utils/nx-json.js +62 -0
- package/dist/src/generators/utils/project-configuration.d.ts +51 -0
- package/dist/src/generators/utils/project-configuration.js +299 -0
- package/dist/src/hasher/check-task-files.d.ts +86 -0
- package/dist/src/hasher/check-task-files.js +378 -0
- package/dist/src/hasher/create-task-hasher.d.ts +11 -0
- package/dist/src/hasher/create-task-hasher.js +25 -0
- package/dist/src/hasher/file-hasher.d.ts +3 -0
- package/dist/src/hasher/file-hasher.js +23 -0
- package/dist/src/hasher/hash-plan-inspector.d.ts +33 -0
- package/dist/src/hasher/hash-plan-inspector.js +70 -0
- package/dist/src/hasher/hash-task.d.ts +17 -0
- package/dist/src/hasher/hash-task.js +202 -0
- package/dist/src/hasher/native-task-hasher-impl.d.ts +34 -0
- package/dist/src/hasher/native-task-hasher-impl.js +104 -0
- package/dist/src/hasher/task-hasher.d.ts +177 -0
- package/dist/src/hasher/task-hasher.js +320 -0
- package/dist/src/hasher/task-planning-context.d.ts +13 -0
- package/dist/src/hasher/task-planning-context.js +12 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +2 -0
- package/dist/src/migrations/update-15-0-0/prefix-outputs.d.ts +2 -0
- package/dist/src/migrations/update-15-0-0/prefix-outputs.js +54 -0
- package/dist/src/migrations/update-16-0-0/remove-nrwl-cli.d.ts +2 -0
- package/dist/src/migrations/update-16-0-0/remove-nrwl-cli.js +16 -0
- package/dist/src/migrations/update-16-0-0/update-depends-on-to-tokens.d.ts +2 -0
- package/dist/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +82 -0
- package/dist/src/migrations/update-16-0-0/update-nx-cloud-runner.d.ts +2 -0
- package/dist/src/migrations/update-16-0-0/update-nx-cloud-runner.js +29 -0
- package/dist/src/migrations/update-16-2-0/remove-run-commands-output-path.d.ts +2 -0
- package/dist/src/migrations/update-16-2-0/remove-run-commands-output-path.js +50 -0
- package/dist/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.d.ts +12 -0
- package/dist/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.js +67 -0
- package/dist/src/migrations/update-17-0-0/move-cache-directory.d.ts +2 -0
- package/dist/src/migrations/update-17-0-0/move-cache-directory.js +35 -0
- package/dist/src/migrations/update-17-0-0/move-cache-directory.md +31 -0
- package/dist/src/migrations/update-17-0-0/rm-default-collection-npm-scope.d.ts +2 -0
- package/dist/src/migrations/update-17-0-0/rm-default-collection-npm-scope.js +72 -0
- package/dist/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.d.ts +2 -0
- package/dist/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +126 -0
- package/dist/src/migrations/update-17-2-0/move-default-base.d.ts +5 -0
- package/dist/src/migrations/update-17-2-0/move-default-base.js +20 -0
- package/dist/src/migrations/update-17-3-0/update-nxw.d.ts +2 -0
- package/dist/src/migrations/update-17-3-0/update-nxw.js +7 -0
- package/dist/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.d.ts +2 -0
- package/dist/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.js +11 -0
- package/dist/src/migrations/update-19-2-0/move-workspace-data-directory.d.ts +4 -0
- package/dist/src/migrations/update-19-2-0/move-workspace-data-directory.js +33 -0
- package/dist/src/migrations/update-19-2-4/set-project-name.d.ts +2 -0
- package/dist/src/migrations/update-19-2-4/set-project-name.js +34 -0
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.d.ts +2 -0
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.js +25 -0
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.md +27 -0
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.d.ts +2 -0
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.js +20 -0
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.md +24 -0
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.d.ts +2 -0
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.js +38 -0
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.md +49 -0
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.d.ts +2 -0
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.js +101 -0
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.md +54 -0
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.d.ts +2 -0
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.js +38 -0
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.md +28 -0
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.d.ts +2 -0
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.js +17 -0
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.md +22 -0
- package/dist/src/migrations/update-22-0-0/consolidate-release-tag-config.d.ts +2 -0
- package/dist/src/migrations/update-22-0-0/consolidate-release-tag-config.js +100 -0
- package/dist/src/migrations/update-22-0-0/release-version-config-changes.d.ts +2 -0
- package/dist/src/migrations/update-22-0-0/release-version-config-changes.js +101 -0
- package/dist/src/migrations/update-22-1-0/update-nx-wrapper.d.ts +2 -0
- package/dist/src/migrations/update-22-1-0/update-nx-wrapper.js +7 -0
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.d.ts +2 -0
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.js +19 -0
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.md +11 -0
- package/dist/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.d.ts +2 -0
- package/dist/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.js +16 -0
- package/dist/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.d.ts +2 -0
- package/dist/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.js +16 -0
- package/dist/src/migrations/update-22-6-0/enable-analytics-prompt.d.ts +2 -0
- package/dist/src/migrations/update-22-6-0/enable-analytics-prompt.js +23 -0
- package/dist/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts +2 -0
- package/dist/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.js +16 -0
- package/dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore.d.ts +2 -0
- package/dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore.js +16 -0
- package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.js +18 -0
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.d.ts +12 -0
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.js +250 -0
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.md +50 -0
- package/dist/src/migrations/utils/target-defaults.d.ts +28 -0
- package/dist/src/migrations/utils/target-defaults.js +46 -0
- package/dist/src/native/assert-supported-platform.d.ts +1 -0
- package/dist/src/native/assert-supported-platform.js +38 -0
- package/dist/src/native/browser.js +1 -0
- package/dist/src/native/index.d.ts +1419 -0
- package/dist/src/native/index.js +216 -0
- package/dist/src/native/native-bindings.js +654 -0
- package/dist/src/native/native-file-cache-location.d.ts +17 -0
- package/dist/src/native/native-file-cache-location.js +97 -0
- package/dist/src/native/nx.openharmony-arm64.node +0 -0
- package/dist/src/native/nx.wasi-browser.js +131 -0
- package/dist/src/native/nx.wasi.cjs +161 -0
- 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 +12 -0
- package/dist/src/native/transform-objects.js +97 -0
- package/dist/src/native/wasi-worker-browser.mjs +30 -0
- package/dist/src/native/wasi-worker.mjs +63 -0
- package/dist/src/nx-cloud/debug-logger.d.ts +1 -0
- package/dist/src/nx-cloud/debug-logger.js +8 -0
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.d.ts +14 -0
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +166 -0
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +41 -0
- package/dist/src/nx-cloud/models/onboarding-status.d.ts +1 -0
- package/dist/src/nx-cloud/models/onboarding-status.js +2 -0
- package/dist/src/nx-cloud/nx-cloud-tasks-runner-shell.d.ts +16 -0
- package/dist/src/nx-cloud/nx-cloud-tasks-runner-shell.js +41 -0
- package/dist/src/nx-cloud/resolution-helpers.d.ts +1 -0
- package/dist/src/nx-cloud/resolution-helpers.js +19 -0
- package/dist/src/nx-cloud/update-manager.d.ts +26 -0
- package/dist/src/nx-cloud/update-manager.js +274 -0
- package/dist/src/nx-cloud/utilities/client.d.ts +10 -0
- package/dist/src/nx-cloud/utilities/client.js +42 -0
- package/dist/src/nx-cloud/utilities/environment.d.ts +3 -0
- package/dist/src/nx-cloud/utilities/environment.js +48 -0
- package/dist/src/nx-cloud/utilities/get-cloud-options.d.ts +5 -0
- package/dist/src/nx-cloud/utilities/get-cloud-options.js +26 -0
- package/dist/src/nx-cloud/utilities/is-workspace-claimed.d.ts +1 -0
- package/dist/src/nx-cloud/utilities/is-workspace-claimed.js +26 -0
- package/dist/src/nx-cloud/utilities/nx-cloud-http-client.d.ts +5 -0
- package/dist/src/nx-cloud/utilities/nx-cloud-http-client.js +16 -0
- package/dist/src/nx-cloud/utilities/onboarding.d.ts +5 -0
- package/dist/src/nx-cloud/utilities/onboarding.js +31 -0
- package/dist/src/nx-cloud/utilities/url-shorten.d.ts +2 -0
- package/dist/src/nx-cloud/utilities/url-shorten.js +92 -0
- package/dist/src/plugins/js/hasher/hasher.d.ts +5 -0
- package/dist/src/plugins/js/hasher/hasher.js +51 -0
- package/dist/src/plugins/js/index.d.ts +4 -0
- package/dist/src/plugins/js/index.js +182 -0
- package/dist/src/plugins/js/lock-file/bun-parser.d.ts +14 -0
- package/dist/src/plugins/js/lock-file/bun-parser.js +992 -0
- package/dist/src/plugins/js/lock-file/lock-file.d.ts +85 -0
- package/dist/src/plugins/js/lock-file/lock-file.js +441 -0
- package/dist/src/plugins/js/lock-file/npm-parser.d.ts +10 -0
- package/dist/src/plugins/js/lock-file/npm-parser.js +595 -0
- package/dist/src/plugins/js/lock-file/pnpm-parser.d.ts +10 -0
- package/dist/src/plugins/js/lock-file/pnpm-parser.js +1047 -0
- package/dist/src/plugins/js/lock-file/project-graph-pruning.d.ts +35 -0
- package/dist/src/plugins/js/lock-file/project-graph-pruning.js +290 -0
- package/dist/src/plugins/js/lock-file/pruned-output.d.ts +331 -0
- package/dist/src/plugins/js/lock-file/pruned-output.js +1465 -0
- package/dist/src/plugins/js/lock-file/utils/package-json.d.ts +10 -0
- package/dist/src/plugins/js/lock-file/utils/package-json.js +38 -0
- package/dist/src/plugins/js/lock-file/utils/pnpm-normalizer.d.ts +23 -0
- package/dist/src/plugins/js/lock-file/utils/pnpm-normalizer.js +897 -0
- package/dist/src/plugins/js/lock-file/yarn-parser.d.ts +10 -0
- package/dist/src/plugins/js/lock-file/yarn-parser.js +536 -0
- package/dist/src/plugins/js/package-json/create-package-json.d.ts +29 -0
- package/dist/src/plugins/js/package-json/create-package-json.js +312 -0
- package/dist/src/plugins/js/project-graph/affected/lock-file-changes.d.ts +11 -0
- package/dist/src/plugins/js/project-graph/affected/lock-file-changes.js +172 -0
- package/dist/src/plugins/js/project-graph/affected/npm-packages.d.ts +12 -0
- package/dist/src/plugins/js/project-graph/affected/npm-packages.js +145 -0
- package/dist/src/plugins/js/project-graph/affected/touched-projects.d.ts +2 -0
- package/dist/src/plugins/js/project-graph/affected/touched-projects.js +18 -0
- package/dist/src/plugins/js/project-graph/affected/tsconfig-json-changes.d.ts +4 -0
- package/dist/src/plugins/js/project-graph/affected/tsconfig-json-changes.js +63 -0
- package/dist/src/plugins/js/project-graph/build-dependencies/build-dependencies.d.ts +6 -0
- package/dist/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +45 -0
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +4 -0
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +88 -0
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.d.ts +4 -0
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +75 -0
- package/dist/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts +81 -0
- package/dist/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +468 -0
- package/dist/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.d.ts +2 -0
- package/dist/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.js +31 -0
- package/dist/src/plugins/js/utils/config.d.ts +2 -0
- package/dist/src/plugins/js/utils/config.js +61 -0
- package/dist/src/plugins/js/utils/get-workspace-packages-from-graph.d.ts +2 -0
- package/dist/src/plugins/js/utils/get-workspace-packages-from-graph.js +13 -0
- package/dist/src/plugins/js/utils/packages.d.ts +8 -0
- package/dist/src/plugins/js/utils/packages.js +91 -0
- package/dist/src/plugins/js/utils/register.d.ts +350 -0
- package/dist/src/plugins/js/utils/register.js +1279 -0
- package/dist/src/plugins/js/utils/resolve-relative-to-dir.d.ts +5 -0
- package/dist/src/plugins/js/utils/resolve-relative-to-dir.js +17 -0
- package/dist/src/plugins/js/utils/typescript.d.ts +32 -0
- package/dist/src/plugins/js/utils/typescript.js +157 -0
- package/dist/src/plugins/js/versions.d.ts +1 -0
- package/dist/src/plugins/js/versions.js +4 -0
- package/dist/src/plugins/package-json/create-nodes.d.ts +28 -0
- package/dist/src/plugins/package-json/create-nodes.js +243 -0
- package/dist/src/plugins/package-json/index.d.ts +2 -0
- package/dist/src/plugins/package-json/index.js +6 -0
- package/dist/src/plugins/project-json/build-nodes/project-json.d.ts +5 -0
- package/dist/src/plugins/project-json/build-nodes/project-json.js +33 -0
- package/dist/src/project-graph/affected/affected-project-graph-models.d.ts +25 -0
- package/dist/src/project-graph/affected/affected-project-graph-models.js +2 -0
- package/dist/src/project-graph/affected/affected-project-graph.d.ts +4 -0
- package/dist/src/project-graph/affected/affected-project-graph.js +77 -0
- package/dist/src/project-graph/affected/affected-projects.d.ts +7 -0
- package/dist/src/project-graph/affected/affected-projects.js +42 -0
- package/dist/src/project-graph/affected/affected-reasons.d.ts +116 -0
- package/dist/src/project-graph/affected/affected-reasons.js +459 -0
- package/dist/src/project-graph/affected/affected-tasks.d.ts +103 -0
- package/dist/src/project-graph/affected/affected-tasks.js +386 -0
- package/dist/src/project-graph/affected/print-explanation.d.ts +11 -0
- package/dist/src/project-graph/affected/print-explanation.js +44 -0
- package/dist/src/project-graph/build-project-graph.d.ts +26 -0
- package/dist/src/project-graph/build-project-graph.js +309 -0
- package/dist/src/project-graph/error-types.d.ts +156 -0
- package/dist/src/project-graph/error-types.js +523 -0
- package/dist/src/project-graph/file-map-utils.d.ts +18 -0
- package/dist/src/project-graph/file-map-utils.js +61 -0
- package/dist/src/project-graph/file-utils.d.ts +33 -0
- package/dist/src/project-graph/file-utils.js +196 -0
- package/dist/src/project-graph/nx-deps-cache.d.ts +65 -0
- package/dist/src/project-graph/nx-deps-cache.js +345 -0
- package/dist/src/project-graph/operators.d.ts +11 -0
- package/dist/src/project-graph/operators.js +70 -0
- package/dist/src/project-graph/plugins/get-plugins.d.ts +53 -0
- package/dist/src/project-graph/plugins/get-plugins.js +379 -0
- package/dist/src/project-graph/plugins/in-process-loader.d.ts +10 -0
- package/dist/src/project-graph/plugins/in-process-loader.js +58 -0
- package/dist/src/project-graph/plugins/index.d.ts +4 -0
- package/dist/src/project-graph/plugins/index.js +12 -0
- package/dist/src/project-graph/plugins/isolation/enabled.d.ts +1 -0
- package/dist/src/project-graph/plugins/isolation/enabled.js +19 -0
- package/dist/src/project-graph/plugins/isolation/index.d.ts +1 -0
- package/dist/src/project-graph/plugins/isolation/index.js +7 -0
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.d.ts +103 -0
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.js +626 -0
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.d.ts +12 -0
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.js +74 -0
- package/dist/src/project-graph/plugins/isolation/message-types.d.ts +59 -0
- package/dist/src/project-graph/plugins/isolation/message-types.js +9 -0
- package/dist/src/project-graph/plugins/isolation/messaging.d.ts +156 -0
- package/dist/src/project-graph/plugins/isolation/messaging.js +87 -0
- package/dist/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts +82 -0
- package/dist/src/project-graph/plugins/isolation/plugin-lifecycle-manager.js +188 -0
- package/dist/src/project-graph/plugins/isolation/plugin-worker.d.ts +2 -0
- package/dist/src/project-graph/plugins/isolation/plugin-worker.js +225 -0
- package/dist/src/project-graph/plugins/isolation/worker-streaming.d.ts +14 -0
- package/dist/src/project-graph/plugins/isolation/worker-streaming.js +39 -0
- package/dist/src/project-graph/plugins/load-resolved-plugin.d.ts +3 -0
- package/dist/src/project-graph/plugins/load-resolved-plugin.js +24 -0
- package/dist/src/project-graph/plugins/loaded-nx-plugin.d.ts +44 -0
- package/dist/src/project-graph/plugins/loaded-nx-plugin.js +117 -0
- package/dist/src/project-graph/plugins/nx-plugin-capabilities.d.ts +6 -0
- package/dist/src/project-graph/plugins/nx-plugin-capabilities.js +28 -0
- package/dist/src/project-graph/plugins/public-api.d.ts +139 -0
- package/dist/src/project-graph/plugins/public-api.js +4 -0
- package/dist/src/project-graph/plugins/resolve-plugin.d.ts +25 -0
- package/dist/src/project-graph/plugins/resolve-plugin.js +277 -0
- package/dist/src/project-graph/plugins/task-results-stub.d.ts +50 -0
- package/dist/src/project-graph/plugins/task-results-stub.js +111 -0
- package/dist/src/project-graph/plugins/tasks-execution-hooks.d.ts +4 -0
- package/dist/src/project-graph/plugins/tasks-execution-hooks.js +80 -0
- package/dist/src/project-graph/plugins/transpiler.d.ts +20 -0
- package/dist/src/project-graph/plugins/transpiler.js +99 -0
- package/dist/src/project-graph/plugins/utils.d.ts +4 -0
- package/dist/src/project-graph/plugins/utils.js +32 -0
- package/dist/src/project-graph/project-graph-builder.d.ts +133 -0
- package/dist/src/project-graph/project-graph-builder.js +395 -0
- package/dist/src/project-graph/project-graph.d.ts +54 -0
- package/dist/src/project-graph/project-graph.js +461 -0
- package/dist/src/project-graph/utils/build-all-workspace-files.d.ts +2 -0
- package/dist/src/project-graph/utils/build-all-workspace-files.js +14 -0
- package/dist/src/project-graph/utils/find-project-for-path.d.ts +20 -0
- package/dist/src/project-graph/utils/find-project-for-path.js +55 -0
- package/dist/src/project-graph/utils/implicit-project-dependencies.d.ts +3 -0
- package/dist/src/project-graph/utils/implicit-project-dependencies.js +18 -0
- package/dist/src/project-graph/utils/normalize-project-nodes.d.ts +6 -0
- package/dist/src/project-graph/utils/normalize-project-nodes.js +117 -0
- package/dist/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts +48 -0
- package/dist/src/project-graph/utils/project-configuration/name-substitution-manager.js +270 -0
- package/dist/src/project-graph/utils/project-configuration/project-nodes-manager.d.ts +49 -0
- package/dist/src/project-graph/utils/project-configuration/project-nodes-manager.js +296 -0
- package/dist/src/project-graph/utils/project-configuration/source-maps.d.ts +34 -0
- package/dist/src/project-graph/utils/project-configuration/source-maps.js +85 -0
- package/dist/src/project-graph/utils/project-configuration/target-defaults.d.ts +50 -0
- package/dist/src/project-graph/utils/project-configuration/target-defaults.js +466 -0
- package/dist/src/project-graph/utils/project-configuration/target-merging.d.ts +32 -0
- package/dist/src/project-graph/utils/project-configuration/target-merging.js +574 -0
- package/dist/src/project-graph/utils/project-configuration/target-normalization.d.ts +12 -0
- package/dist/src/project-graph/utils/project-configuration/target-normalization.js +396 -0
- package/dist/src/project-graph/utils/project-configuration/utils.d.ts +39 -0
- package/dist/src/project-graph/utils/project-configuration/utils.js +216 -0
- package/dist/src/project-graph/utils/project-configuration-utils.d.ts +86 -0
- package/dist/src/project-graph/utils/project-configuration-utils.js +325 -0
- package/dist/src/project-graph/utils/retrieve-workspace-files.d.ts +35 -0
- package/dist/src/project-graph/utils/retrieve-workspace-files.js +110 -0
- package/dist/src/tasks-runner/batch/batch-messages.d.ts +35 -0
- package/dist/src/tasks-runner/batch/batch-messages.js +9 -0
- package/dist/src/tasks-runner/batch/run-batch.d.ts +1 -0
- package/dist/src/tasks-runner/batch/run-batch.js +93 -0
- package/dist/src/tasks-runner/cache.d.ts +129 -0
- package/dist/src/tasks-runner/cache.js +645 -0
- package/dist/src/tasks-runner/create-task-graph.d.ts +64 -0
- package/dist/src/tasks-runner/create-task-graph.js +360 -0
- package/dist/src/tasks-runner/default-tasks-runner.d.ts +25 -0
- package/dist/src/tasks-runner/default-tasks-runner.js +74 -0
- package/dist/src/tasks-runner/fork.d.ts +1 -0
- package/dist/src/tasks-runner/fork.js +73 -0
- package/dist/src/tasks-runner/forked-process-task-runner.d.ts +45 -0
- package/dist/src/tasks-runner/forked-process-task-runner.js +309 -0
- package/dist/src/tasks-runner/init-tasks-runner.d.ts +12 -0
- package/dist/src/tasks-runner/init-tasks-runner.js +124 -0
- package/dist/src/tasks-runner/is-tui-enabled.d.ts +18 -0
- package/dist/src/tasks-runner/is-tui-enabled.js +94 -0
- package/dist/src/tasks-runner/legacy-depends-on-warning.d.ts +18 -0
- package/dist/src/tasks-runner/legacy-depends-on-warning.js +109 -0
- package/dist/src/tasks-runner/life-cycle.d.ts +93 -0
- package/dist/src/tasks-runner/life-cycle.js +155 -0
- package/dist/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +25 -0
- package/dist/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +366 -0
- package/dist/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts +24 -0
- package/dist/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +238 -0
- package/dist/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.d.ts +5 -0
- package/dist/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +16 -0
- package/dist/src/tasks-runner/life-cycles/formatting-utils.d.ts +3 -0
- package/dist/src/tasks-runner/life-cycles/formatting-utils.js +55 -0
- package/dist/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.d.ts +13 -0
- package/dist/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.js +67 -0
- package/dist/src/tasks-runner/life-cycles/performance-analysis.d.ts +173 -0
- package/dist/src/tasks-runner/life-cycles/performance-analysis.js +508 -0
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.d.ts +59 -0
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.js +193 -0
- package/dist/src/tasks-runner/life-cycles/performance-report.d.ts +77 -0
- package/dist/src/tasks-runner/life-cycles/performance-report.js +428 -0
- package/dist/src/tasks-runner/life-cycles/pretty-time.d.ts +4 -0
- package/dist/src/tasks-runner/life-cycles/pretty-time.js +73 -0
- package/dist/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts +54 -0
- package/dist/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +203 -0
- package/dist/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts +54 -0
- package/dist/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +193 -0
- package/dist/src/tasks-runner/life-cycles/store-run-information-life-cycle.d.ts +17 -0
- package/dist/src/tasks-runner/life-cycles/store-run-information-life-cycle.js +87 -0
- package/dist/src/tasks-runner/life-cycles/summary-terminal-output-life-cycle.d.ts +35 -0
- package/dist/src/tasks-runner/life-cycles/summary-terminal-output-life-cycle.js +146 -0
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts +11 -0
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +91 -0
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts +16 -0
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle.js +117 -0
- package/dist/src/tasks-runner/life-cycles/task-profiling-life-cycle.d.ts +14 -0
- package/dist/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +73 -0
- package/dist/src/tasks-runner/life-cycles/task-results-life-cycle.d.ts +6 -0
- package/dist/src/tasks-runner/life-cycles/task-results-life-cycle.js +17 -0
- package/dist/src/tasks-runner/life-cycles/task-telemetry-life-cycle.d.ts +9 -0
- package/dist/src/tasks-runner/life-cycles/task-telemetry-life-cycle.js +42 -0
- package/dist/src/tasks-runner/life-cycles/task-timings-life-cycle.d.ts +8 -0
- package/dist/src/tasks-runner/life-cycles/task-timings-life-cycle.js +39 -0
- package/dist/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts +19 -0
- package/dist/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +339 -0
- package/dist/src/tasks-runner/life-cycles/view-logs-utils.d.ts +1 -0
- package/dist/src/tasks-runner/life-cycles/view-logs-utils.js +15 -0
- package/dist/src/tasks-runner/process-metrics-service.d.ts +53 -0
- package/dist/src/tasks-runner/process-metrics-service.js +161 -0
- package/dist/src/tasks-runner/prune-task-graph.d.ts +17 -0
- package/dist/src/tasks-runner/prune-task-graph.js +45 -0
- package/dist/src/tasks-runner/pseudo-ipc.d.ts +48 -0
- package/dist/src/tasks-runner/pseudo-ipc.js +157 -0
- package/dist/src/tasks-runner/pseudo-terminal.d.ts +72 -0
- package/dist/src/tasks-runner/pseudo-terminal.js +209 -0
- package/dist/src/tasks-runner/remove-old-cache-records.d.ts +1 -0
- package/dist/src/tasks-runner/remove-old-cache-records.js +60 -0
- package/dist/src/tasks-runner/run-command.d.ts +78 -0
- package/dist/src/tasks-runner/run-command.js +971 -0
- package/dist/src/tasks-runner/running-tasks/batch-process.d.ts +148 -0
- package/dist/src/tasks-runner/running-tasks/batch-process.js +362 -0
- package/dist/src/tasks-runner/running-tasks/node-child-process.d.ts +40 -0
- package/dist/src/tasks-runner/running-tasks/node-child-process.js +175 -0
- package/dist/src/tasks-runner/running-tasks/noop-child-process.d.ts +16 -0
- package/dist/src/tasks-runner/running-tasks/noop-child-process.js +22 -0
- package/dist/src/tasks-runner/running-tasks/output-prefix.d.ts +13 -0
- package/dist/src/tasks-runner/running-tasks/output-prefix.js +63 -0
- package/dist/src/tasks-runner/running-tasks/running-task.d.ts +11 -0
- package/dist/src/tasks-runner/running-tasks/running-task.js +6 -0
- package/dist/src/tasks-runner/running-tasks/shared-running-task.d.ts +15 -0
- package/dist/src/tasks-runner/running-tasks/shared-running-task.js +41 -0
- package/dist/src/tasks-runner/task-env-paths.d.ts +1 -0
- package/dist/src/tasks-runner/task-env-paths.js +45 -0
- package/dist/src/tasks-runner/task-env.d.ts +56 -0
- package/dist/src/tasks-runner/task-env.js +237 -0
- package/dist/src/tasks-runner/task-graph-utils.d.ts +30 -0
- package/dist/src/tasks-runner/task-graph-utils.js +225 -0
- package/dist/src/tasks-runner/task-io-service.d.ts +104 -0
- package/dist/src/tasks-runner/task-io-service.js +131 -0
- package/dist/src/tasks-runner/task-orchestrator.d.ts +330 -0
- package/dist/src/tasks-runner/task-orchestrator.js +1749 -0
- package/dist/src/tasks-runner/tasks-runner.d.ts +26 -0
- package/dist/src/tasks-runner/tasks-runner.js +2 -0
- package/dist/src/tasks-runner/tasks-schedule.d.ts +48 -0
- package/dist/src/tasks-runner/tasks-schedule.js +258 -0
- package/dist/src/tasks-runner/terminal-output-path.d.ts +11 -0
- package/dist/src/tasks-runner/terminal-output-path.js +18 -0
- package/dist/src/tasks-runner/utils.d.ts +66 -0
- package/dist/src/tasks-runner/utils.js +459 -0
- package/dist/src/ultracache/config.d.ts +21 -0
- package/dist/src/ultracache/config.js +29 -0
- package/dist/src/ultracache/fetch.d.ts +21 -0
- package/dist/src/ultracache/fetch.js +43 -0
- package/dist/src/ultracache/overrides.d.ts +17 -0
- package/dist/src/ultracache/overrides.js +61 -0
- package/dist/src/ultracache/report.d.ts +13 -0
- package/dist/src/ultracache/report.js +62 -0
- package/dist/src/ultracache/store.d.ts +41 -0
- package/dist/src/ultracache/store.js +158 -0
- package/dist/src/utils/ab-testing.d.ts +62 -0
- package/dist/src/utils/ab-testing.js +145 -0
- package/dist/src/utils/acknowledge-build-scripts.d.ts +13 -0
- package/dist/src/utils/acknowledge-build-scripts.js +102 -0
- package/dist/src/utils/all-file-data.d.ts +2 -0
- package/dist/src/utils/all-file-data.js +8 -0
- package/dist/src/utils/analytics-enabled.d.ts +7 -0
- package/dist/src/utils/analytics-enabled.js +11 -0
- package/dist/src/utils/analytics-prompt.d.ts +9 -0
- package/dist/src/utils/analytics-prompt.js +81 -0
- package/dist/src/utils/assert-workspace-validity.d.ts +3 -0
- package/dist/src/utils/assert-workspace-validity.js +90 -0
- package/dist/src/utils/async-iterator.d.ts +2 -0
- package/dist/src/utils/async-iterator.js +18 -0
- package/dist/src/utils/binary-extensions.d.ts +1 -0
- package/dist/src/utils/binary-extensions.js +279 -0
- package/dist/src/utils/cache-directory.d.ts +68 -0
- package/dist/src/utils/cache-directory.js +337 -0
- package/dist/src/utils/call-sites.d.ts +14 -0
- package/dist/src/utils/call-sites.js +28 -0
- package/dist/src/utils/catalog/bun-manager-utils.d.ts +8 -0
- package/dist/src/utils/catalog/bun-manager-utils.js +174 -0
- package/dist/src/utils/catalog/bun-manager.d.ts +28 -0
- package/dist/src/utils/catalog/bun-manager.js +130 -0
- package/dist/src/utils/catalog/index.d.ts +22 -0
- package/dist/src/utils/catalog/index.js +87 -0
- package/dist/src/utils/catalog/manager-factory.d.ts +5 -0
- package/dist/src/utils/catalog/manager-factory.js +23 -0
- package/dist/src/utils/catalog/manager-utils.d.ts +15 -0
- package/dist/src/utils/catalog/manager-utils.js +237 -0
- package/dist/src/utils/catalog/manager.d.ts +52 -0
- package/dist/src/utils/catalog/manager.js +43 -0
- package/dist/src/utils/catalog/pnpm-manager.d.ts +23 -0
- package/dist/src/utils/catalog/pnpm-manager.js +142 -0
- package/dist/src/utils/catalog/types.d.ts +15 -0
- package/dist/src/utils/catalog/types.js +2 -0
- package/dist/src/utils/catalog/yarn-manager.d.ts +26 -0
- package/dist/src/utils/catalog/yarn-manager.js +130 -0
- package/dist/src/utils/child-process.d.ts +52 -0
- package/dist/src/utils/child-process.js +194 -0
- package/dist/src/utils/chunkify.d.ts +11 -0
- package/dist/src/utils/chunkify.js +45 -0
- package/dist/src/utils/code-frames.d.ts +14 -0
- package/dist/src/utils/code-frames.js +116 -0
- package/dist/src/utils/command-line-utils.d.ts +77 -0
- package/dist/src/utils/command-line-utils.js +266 -0
- package/dist/src/utils/compile-cache.d.ts +24 -0
- package/dist/src/utils/compile-cache.js +49 -0
- package/dist/src/utils/consume-messages-from-socket.d.ts +44 -0
- package/dist/src/utils/consume-messages-from-socket.js +291 -0
- package/dist/src/utils/create-cli-options.d.ts +6 -0
- package/dist/src/utils/create-cli-options.js +29 -0
- package/dist/src/utils/db-connection.d.ts +16 -0
- package/dist/src/utils/db-connection.js +58 -0
- package/dist/src/utils/default-base.d.ts +1 -0
- package/dist/src/utils/default-base.js +17 -0
- package/dist/src/utils/delayed-spinner.d.ts +51 -0
- package/dist/src/utils/delayed-spinner.js +88 -0
- package/dist/src/utils/dotenv.d.ts +7 -0
- package/dist/src/utils/dotenv.js +19 -0
- package/dist/src/utils/enable-compile-cache.d.ts +1 -0
- package/dist/src/utils/enable-compile-cache.js +7 -0
- package/dist/src/utils/exit-codes.d.ts +24 -0
- package/dist/src/utils/exit-codes.js +94 -0
- package/dist/src/utils/fileutils.d.ts +72 -0
- package/dist/src/utils/fileutils.js +117 -0
- package/dist/src/utils/find-matching-projects.d.ts +18 -0
- package/dist/src/utils/find-matching-projects.js +222 -0
- package/dist/src/utils/find-workspace-root.d.ts +11 -0
- package/dist/src/utils/find-workspace-root.js +33 -0
- package/dist/src/utils/formatters/index.d.ts +19 -0
- package/dist/src/utils/formatters/index.js +79 -0
- package/dist/src/utils/formatters/oxfmt.d.ts +32 -0
- package/dist/src/utils/formatters/oxfmt.js +764 -0
- package/dist/src/utils/formatters/prettier.d.ts +18 -0
- package/dist/src/utils/formatters/prettier.js +179 -0
- package/dist/src/utils/formatters/shared.d.ts +5 -0
- package/dist/src/utils/formatters/shared.js +8 -0
- package/dist/src/utils/get-package-name-from-import-path.d.ts +1 -0
- package/dist/src/utils/get-package-name-from-import-path.js +17 -0
- package/dist/src/utils/git-revision.d.ts +12 -0
- package/dist/src/utils/git-revision.js +25 -0
- package/dist/src/utils/git-utils.d.ts +125 -0
- package/dist/src/utils/git-utils.index-filter.d.ts +1 -0
- package/dist/src/utils/git-utils.index-filter.js +23 -0
- package/dist/src/utils/git-utils.js +991 -0
- package/dist/src/utils/git-utils.tree-filter.d.ts +1 -0
- package/dist/src/utils/git-utils.tree-filter.js +47 -0
- package/dist/src/utils/git-worktrees.d.ts +30 -0
- package/dist/src/utils/git-worktrees.js +212 -0
- package/dist/src/utils/globs.d.ts +3 -0
- package/dist/src/utils/globs.js +18 -0
- package/dist/src/utils/handle-errors.d.ts +1 -0
- package/dist/src/utils/handle-errors.js +53 -0
- package/dist/src/utils/handle-import.d.ts +15 -0
- package/dist/src/utils/handle-import.js +86 -0
- package/dist/src/utils/has-nx-js-plugin.d.ts +9 -0
- package/dist/src/utils/has-nx-js-plugin.js +24 -0
- package/dist/src/utils/http-client.d.ts +27 -0
- package/dist/src/utils/http-client.js +193 -0
- package/dist/src/utils/ignore.d.ts +178 -0
- package/dist/src/utils/ignore.js +294 -0
- package/dist/src/utils/installation-directory.d.ts +2 -0
- package/dist/src/utils/installation-directory.js +12 -0
- package/dist/src/utils/installed-nx-version.d.ts +23 -0
- package/dist/src/utils/installed-nx-version.js +67 -0
- package/dist/src/utils/is-ci.d.ts +1 -0
- package/dist/src/utils/is-ci.js +26 -0
- package/dist/src/utils/is-sandbox.d.ts +1 -0
- package/dist/src/utils/is-sandbox.js +11 -0
- package/dist/src/utils/json-diff.d.ts +20 -0
- package/dist/src/utils/json-diff.js +24 -0
- package/dist/src/utils/json.d.ts +44 -0
- package/dist/src/utils/json.js +62 -0
- package/dist/src/utils/kill-child-on-host-exit.d.ts +7 -0
- package/dist/src/utils/kill-child-on-host-exit.js +42 -0
- package/dist/src/utils/legacy-task-history.d.ts +8 -0
- package/dist/src/utils/legacy-task-history.js +87 -0
- package/dist/src/utils/logger.d.ts +23 -0
- package/dist/src/utils/logger.js +74 -0
- package/dist/src/utils/long-running-target.d.ts +10 -0
- package/dist/src/utils/long-running-target.js +19 -0
- package/dist/src/utils/machine-id-cache.d.ts +5 -0
- package/dist/src/utils/machine-id-cache.js +93 -0
- package/dist/src/utils/min-release-age/behavior/bun.d.ts +30 -0
- package/dist/src/utils/min-release-age/behavior/bun.js +274 -0
- package/dist/src/utils/min-release-age/behavior/npm.d.ts +21 -0
- package/dist/src/utils/min-release-age/behavior/npm.js +296 -0
- package/dist/src/utils/min-release-age/behavior/pnpm.d.ts +23 -0
- package/dist/src/utils/min-release-age/behavior/pnpm.js +535 -0
- package/dist/src/utils/min-release-age/behavior/yarn.d.ts +22 -0
- package/dist/src/utils/min-release-age/behavior/yarn.js +314 -0
- package/dist/src/utils/min-release-age/constants.d.ts +3 -0
- package/dist/src/utils/min-release-age/constants.js +8 -0
- package/dist/src/utils/min-release-age/errors.d.ts +28 -0
- package/dist/src/utils/min-release-age/errors.js +22 -0
- package/dist/src/utils/min-release-age/packument.d.ts +13 -0
- package/dist/src/utils/min-release-age/packument.js +34 -0
- package/dist/src/utils/min-release-age/pick.d.ts +72 -0
- package/dist/src/utils/min-release-age/pick.js +206 -0
- package/dist/src/utils/min-release-age/pnpm-exclude-writer.d.ts +12 -0
- package/dist/src/utils/min-release-age/pnpm-exclude-writer.js +58 -0
- package/dist/src/utils/min-release-age/policy.d.ts +38 -0
- package/dist/src/utils/min-release-age/policy.js +59 -0
- package/dist/src/utils/min-release-age/resolve.d.ts +8 -0
- package/dist/src/utils/min-release-age/resolve.js +14 -0
- package/dist/src/utils/nx-cloud-utils.d.ts +6 -0
- package/dist/src/utils/nx-cloud-utils.js +33 -0
- package/dist/src/utils/nx-console-prompt.d.ts +1 -0
- package/dist/src/utils/nx-console-prompt.js +61 -0
- package/dist/src/utils/nx-key.d.ts +6 -0
- package/dist/src/utils/nx-key.js +50 -0
- package/dist/src/utils/nx-package-group.d.ts +8 -0
- package/dist/src/utils/nx-package-group.js +15 -0
- package/dist/src/utils/nx-tmp-dir.d.ts +23 -0
- package/dist/src/utils/nx-tmp-dir.js +45 -0
- package/dist/src/utils/object-sort.d.ts +1 -0
- package/dist/src/utils/object-sort.js +9 -0
- package/dist/src/utils/output.d.ts +251 -0
- package/dist/src/utils/output.js +571 -0
- package/dist/src/utils/owned-private-dir.d.ts +145 -0
- package/dist/src/utils/owned-private-dir.js +362 -0
- package/dist/src/utils/package-json.d.ts +256 -0
- package/dist/src/utils/package-json.js +441 -0
- package/dist/src/utils/package-manager-config/bunfig.d.ts +14 -0
- package/dist/src/utils/package-manager-config/bunfig.js +49 -0
- package/dist/src/utils/package-manager-config/npmrc.d.ts +23 -0
- package/dist/src/utils/package-manager-config/npmrc.js +124 -0
- package/dist/src/utils/package-manager-config/pnpm-config.d.ts +17 -0
- package/dist/src/utils/package-manager-config/pnpm-config.js +60 -0
- package/dist/src/utils/package-manager.d.ts +167 -0
- package/dist/src/utils/package-manager.js +860 -0
- package/dist/src/utils/params.d.ts +146 -0
- package/dist/src/utils/params.js +768 -0
- package/dist/src/utils/path.d.ts +25 -0
- package/dist/src/utils/path.js +53 -0
- package/dist/src/utils/perf-hooks.d.ts +19 -0
- package/dist/src/utils/perf-logging.d.ts +1 -0
- package/dist/src/utils/perf-logging.js +46 -0
- package/dist/src/utils/permission-errors.d.ts +11 -0
- package/dist/src/utils/permission-errors.js +17 -0
- package/dist/src/utils/plugin-cache-utils.d.ts +82 -0
- package/dist/src/utils/plugin-cache-utils.js +212 -0
- package/dist/src/utils/plugin-progress-text.d.ts +1 -0
- package/dist/src/utils/plugin-progress-text.js +15 -0
- package/dist/src/utils/plugins/atomizer-utils.d.ts +11 -0
- package/dist/src/utils/plugins/atomizer-utils.js +23 -0
- package/dist/src/utils/plugins/core-plugins.d.ts +6 -0
- package/dist/src/utils/plugins/core-plugins.js +117 -0
- package/dist/src/utils/plugins/index.d.ts +5 -0
- package/dist/src/utils/plugins/index.js +15 -0
- package/dist/src/utils/plugins/installed-plugins.d.ts +5 -0
- package/dist/src/utils/plugins/installed-plugins.js +76 -0
- package/dist/src/utils/plugins/local-plugins.d.ts +22 -0
- package/dist/src/utils/plugins/local-plugins.js +60 -0
- package/dist/src/utils/plugins/output.d.ts +34 -0
- package/dist/src/utils/plugins/output.js +201 -0
- package/dist/src/utils/plugins/plugin-capabilities.d.ts +15 -0
- package/dist/src/utils/plugins/plugin-capabilities.js +83 -0
- package/dist/src/utils/pnpm-workspace.d.ts +8 -0
- package/dist/src/utils/pnpm-workspace.js +2 -0
- package/dist/src/utils/print-help.d.ts +11 -0
- package/dist/src/utils/print-help.js +259 -0
- package/dist/src/utils/progress-topics.d.ts +19 -0
- package/dist/src/utils/progress-topics.js +21 -0
- package/dist/src/utils/project-graph-utils.d.ts +20 -0
- package/dist/src/utils/project-graph-utils.js +90 -0
- package/dist/src/utils/promised-based-queue.d.ts +6 -0
- package/dist/src/utils/promised-based-queue.js +43 -0
- package/dist/src/utils/prompt-helpers.d.ts +53 -0
- package/dist/src/utils/prompt-helpers.js +111 -0
- package/dist/src/utils/provenance.d.ts +47 -0
- package/dist/src/utils/provenance.js +123 -0
- package/dist/src/utils/registry-config/bun.d.ts +2 -0
- package/dist/src/utils/registry-config/bun.js +257 -0
- package/dist/src/utils/registry-config/index.d.ts +13 -0
- package/dist/src/utils/registry-config/index.js +102 -0
- package/dist/src/utils/registry-config/pnpm.d.ts +2 -0
- package/dist/src/utils/registry-config/pnpm.js +1551 -0
- package/dist/src/utils/registry-config/utils.d.ts +195 -0
- package/dist/src/utils/registry-config/utils.js +496 -0
- package/dist/src/utils/registry-config/yarn-berry.d.ts +2 -0
- package/dist/src/utils/registry-config/yarn-berry.js +612 -0
- package/dist/src/utils/registry-config/yarn-classic.d.ts +2 -0
- package/dist/src/utils/registry-config/yarn-classic.js +1001 -0
- package/dist/src/utils/require-nx-key.d.ts +1 -0
- package/dist/src/utils/require-nx-key.js +23 -0
- package/dist/src/utils/safe-spawn.d.ts +24 -0
- package/dist/src/utils/safe-spawn.js +104 -0
- package/dist/src/utils/serializable-error.d.ts +4 -0
- package/dist/src/utils/serializable-error.js +33 -0
- package/dist/src/utils/serialize-overrides-into-command-line.d.ts +3 -0
- package/dist/src/utils/serialize-overrides-into-command-line.js +39 -0
- package/dist/src/utils/serialize-target.d.ts +1 -0
- package/dist/src/utils/serialize-target.js +6 -0
- package/dist/src/utils/shell-quoting.d.ts +25 -0
- package/dist/src/utils/shell-quoting.js +76 -0
- package/dist/src/utils/socket-refused-exit-code.d.ts +15 -0
- package/dist/src/utils/socket-refused-exit-code.js +18 -0
- package/dist/src/utils/spinner.d.ts +24 -0
- package/dist/src/utils/spinner.js +77 -0
- package/dist/src/utils/split-target.d.ts +15 -0
- package/dist/src/utils/split-target.js +239 -0
- package/dist/src/utils/strip-indents.d.ts +14 -0
- package/dist/src/utils/strip-indents.js +23 -0
- package/dist/src/utils/sync-generators.d.ts +66 -0
- package/dist/src/utils/sync-generators.js +355 -0
- package/dist/src/utils/tar.d.ts +8 -0
- package/dist/src/utils/tar.js +44 -0
- package/dist/src/utils/task-history.d.ts +17 -0
- package/dist/src/utils/task-history.js +51 -0
- package/dist/src/utils/terminal-link.d.ts +20 -0
- package/dist/src/utils/terminal-link.js +85 -0
- package/dist/src/utils/update-nxw.d.ts +2 -0
- package/dist/src/utils/update-nxw.js +22 -0
- package/dist/src/utils/versions.d.ts +1 -0
- package/dist/src/utils/versions.js +4 -0
- package/dist/src/utils/wait-for-socket-connection.d.ts +26 -0
- package/dist/src/utils/wait-for-socket-connection.js +59 -0
- package/dist/src/utils/workspace-context.d.ts +69 -0
- package/dist/src/utils/workspace-context.js +284 -0
- package/dist/src/utils/workspace-id.d.ts +20 -0
- package/dist/src/utils/workspace-id.js +54 -0
- package/dist/src/utils/workspace-root.d.ts +6 -0
- package/dist/src/utils/workspace-root.js +40 -0
- package/dist/src/utils/write-formatted-json-file.d.ts +7 -0
- package/dist/src/utils/write-formatted-json-file.js +24 -0
- package/dist/src/utils/yarn-syml/index.d.ts +23 -0
- package/dist/src/utils/yarn-syml/index.js +151 -0
- package/dist/src/utils/yarn-syml/syml-grammar.js +1911 -0
- package/dist/tasks-runners/default.d.ts +1 -0
- package/dist/tasks-runners/default.js +5 -0
- package/executors.json +19 -0
- package/generators.json +16 -0
- package/migrations.json +195 -0
- package/package.json +516 -9
- package/readme-template.md +16 -0
- package/schemas/migrations-schema.json +186 -0
- package/schemas/nx-schema.json +1653 -0
- package/schemas/project-schema.json +461 -0
- package/schemas/workspace-schema.json +185 -0
- package/local-natives.js +0 -59
|
@@ -0,0 +1,1419 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opaque branded types for native ExternalObject handles.
|
|
3
|
+
*
|
|
4
|
+
* These types are not constructed directly — they exist only to brand
|
|
5
|
+
* ExternalObject<T> so that different native handles are not interchangeable.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
interface NxDbConnection {
|
|
9
|
+
readonly __brand: unique symbol;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface ParserArc {
|
|
13
|
+
readonly __brand: unique symbol;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface WriterArc {
|
|
17
|
+
readonly __brand: unique symbol;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface MasterArc {
|
|
21
|
+
readonly __brand: unique symbol;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface HashInstruction {
|
|
25
|
+
readonly __brand: unique symbol;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare class ExternalObject<T> {
|
|
29
|
+
readonly '': {
|
|
30
|
+
readonly '': unique symbol
|
|
31
|
+
[K: symbol]: T
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export declare class AppLifeCycle {
|
|
35
|
+
constructor(tasks: Array<Task>, initiatingTasks: Array<string>, runMode: RunMode, pinnedTasks: Array<string>, tuiCliArgs: TuiCliArgs, tuiConfig: TuiConfig, titleText: string, workspaceRoot: string, taskGraph: TaskGraph, isCloudEnabled?: boolean | undefined | null)
|
|
36
|
+
startCommand(threadCount?: number | undefined | null): void
|
|
37
|
+
scheduleTask(task: Task): void
|
|
38
|
+
startTasks(tasks: Array<Task>, metadata: object): void
|
|
39
|
+
printTaskTerminalOutput(task: Task, status: string, output: string): void
|
|
40
|
+
endTasks(taskResults: Array<TaskResult>, metadata: object): void
|
|
41
|
+
endCommand(summary?: PerformanceSummaryPayload | undefined | null): void
|
|
42
|
+
__init(doneCallback: (() => unknown)): void
|
|
43
|
+
registerRunningTask(taskId: string, ptyHandles: ExternalObject<[ParserArc, WriterArc, MasterArc]>): void
|
|
44
|
+
registerRunningTaskWithEmptyParser(taskId: string): void
|
|
45
|
+
appendTaskOutput(taskId: string, output: string, isPtyOutput: boolean): void
|
|
46
|
+
setTaskStatus(taskId: string, status: TaskStatus): void
|
|
47
|
+
setTaskTiming(taskId: string, startTime: number, endTime: number): void
|
|
48
|
+
registerForcedShutdownCallback(forcedShutdownCallback: (() => unknown)): void
|
|
49
|
+
__setCloudMessage(message: string): Promise<void>
|
|
50
|
+
setEstimatedTaskTimings(timings: Record<string, number>): void
|
|
51
|
+
registerRunningBatch(batchId: string, batchInfo: BatchInfo): void
|
|
52
|
+
appendBatchOutput(batchId: string, output: string): void
|
|
53
|
+
setBatchStatus(batchId: string, status: BatchStatus): void
|
|
54
|
+
/**
|
|
55
|
+
* Set a clickable Nx Cloud link in the TUI: `label` is the text shown,
|
|
56
|
+
* `url` is opened when it's clicked. This is a `LifeCycle` method so the Nx
|
|
57
|
+
* Cloud client can call it via the lifecycle it already receives.
|
|
58
|
+
*/
|
|
59
|
+
setCloudLink(label: string, url: string): void
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export declare class ChildProcess {
|
|
63
|
+
getPtyHandles(): ExternalObject<[ParserArc, WriterArc, MasterArc]>
|
|
64
|
+
getPid(): number
|
|
65
|
+
kill(signal?: NodeJS.Signals | number): void
|
|
66
|
+
onExit(callback: (message: string) => void): void
|
|
67
|
+
onOutput(callback: (message: string) => void): void
|
|
68
|
+
cleanup(): void
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export declare class FileLock {
|
|
72
|
+
locked: boolean
|
|
73
|
+
constructor(lockFilePath: string)
|
|
74
|
+
unlock(): void
|
|
75
|
+
check(): boolean
|
|
76
|
+
wait(): Promise<void>
|
|
77
|
+
lock(): void
|
|
78
|
+
/** Takes the lock without blocking; false means another handle holds it. */
|
|
79
|
+
tryLock(): boolean
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export declare class HashPlanInspector {
|
|
83
|
+
constructor(allWorkspaceFiles: ExternalObject<Array<FileData>>, projectFileMap: ExternalObject<Record<string, Array<FileData>>>, workspaceRoot: string)
|
|
84
|
+
/** @deprecated Use `inspectInputs()` instead for structured output. */
|
|
85
|
+
inspect(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>): Record<string, string[]>
|
|
86
|
+
/**
|
|
87
|
+
* Like `inspect()` but returns structured `HashInputs` objects instead of flat strings.
|
|
88
|
+
* Each `HashInstruction` is categorized into the appropriate bucket (files, runtime,
|
|
89
|
+
* environment, depOutputs, external). TsConfiguration is resolved to the root tsconfig
|
|
90
|
+
* file path. JsonFileSet is resolved to the matched JSON file paths (field/excludeField
|
|
91
|
+
* filters only affect hashing, not which files are reported as inputs).
|
|
92
|
+
* ProjectConfiguration is skipped for now. Cwd is skipped as it's ambient.
|
|
93
|
+
*/
|
|
94
|
+
inspectInputs(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>): Record<string, HashInputs>
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export declare class HashPlanner {
|
|
98
|
+
constructor(nxJson: NxJson, projectGraph: ExternalObject<ProjectGraph>)
|
|
99
|
+
/**
|
|
100
|
+
* `configurations` is this run's Ultracache configurations; a task with an
|
|
101
|
+
* eligible entry hashes its observed reads instead of its declared filesets.
|
|
102
|
+
* `options` carries the task ids decided in JS, where executors and
|
|
103
|
+
* target configuration are resolved.
|
|
104
|
+
*/
|
|
105
|
+
getPlans(taskIds: Array<string>, taskGraph: TaskGraph, configurations?: UltracacheConfigurations | undefined | null, options?: UltracacheEligibilityOptions | undefined | null): Record<string, string[]>
|
|
106
|
+
getPlansReference(taskIds: Array<string>, taskGraph: TaskGraph, configurations?: UltracacheConfigurations | undefined | null, options?: UltracacheEligibilityOptions | undefined | null): ExternalObject<Record<string, Array<HashInstruction>>>
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare class HttpRemoteCache {
|
|
110
|
+
constructor()
|
|
111
|
+
retrieve(hash: string, cacheDirectory: string): Promise<CachedResult | null>
|
|
112
|
+
store(hash: string, cacheDirectory: string, terminalOutput: string, code: number): Promise<boolean>
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The hasher's handle on an index: lists only after catching up with the
|
|
117
|
+
* watch behind it.
|
|
118
|
+
*/
|
|
119
|
+
export declare class IgnoredIndexReader {
|
|
120
|
+
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export declare class ImportResult {
|
|
124
|
+
file: string
|
|
125
|
+
sourceProject: string
|
|
126
|
+
dynamicImportExpressions: Array<string>
|
|
127
|
+
staticImportExpressions: Array<string>
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export declare class NxCache {
|
|
131
|
+
cacheDirectory: string
|
|
132
|
+
constructor(workspaceRoot: string, cachePath: string, dbConnection: ExternalObject<NxDbConnection>, linkTaskDetails?: boolean | undefined | null, maxCacheSize?: number | undefined | null)
|
|
133
|
+
get(hash: string): CachedResult | null
|
|
134
|
+
/**
|
|
135
|
+
* Batch version of get() that fetches multiple cache entries in a single
|
|
136
|
+
* SQL query and reads terminal output files in parallel via Rayon.
|
|
137
|
+
*/
|
|
138
|
+
getBatch(hashes: Array<string>): Array<CachedResult | undefined | null>
|
|
139
|
+
put(hash: string, terminalOutput: string, outputs: Array<string>, code: number): CachedOutputs
|
|
140
|
+
applyRemoteCacheResults(hash: string, result: CachedResult, outputs?: Array<string> | undefined | null): void
|
|
141
|
+
/**
|
|
142
|
+
* Register terminal outputs that were written without a cache entry —
|
|
143
|
+
* uncacheable tasks, and cacheable ones run with `--skip-nx-cache`.
|
|
144
|
+
*
|
|
145
|
+
* Without a row the file is invisible to `remove_old_cache_records`,
|
|
146
|
+
* which only ever walks hashes it finds in the database, so these files
|
|
147
|
+
* would accumulate forever. The row carries `is_cache_entry = FALSE` so it
|
|
148
|
+
* can never be served as a cache hit.
|
|
149
|
+
*
|
|
150
|
+
* On conflict `accessed_at` always moves: the reads filter these rows out,
|
|
151
|
+
* so they would otherwise age from the first write and be collected out
|
|
152
|
+
* from under a task that is still being run daily. `size` moves only while
|
|
153
|
+
* the row is still output-only (`NOT is_cache_entry`), so a task rerun with
|
|
154
|
+
* a longer log stops undercounting against `maxCacheSize`. `is_cache_entry`
|
|
155
|
+
* is never touched, and a row that already has artifacts keeps the size
|
|
156
|
+
* `put` recorded, so a rewrite can neither demote a real entry nor replace
|
|
157
|
+
* its whole-entry size with the terminal output's.
|
|
158
|
+
*/
|
|
159
|
+
recordTerminalOutputs(records: Array<TerminalOutputRecord>): void
|
|
160
|
+
getTaskOutputsPath(hash: string): string
|
|
161
|
+
getCacheSize(): number
|
|
162
|
+
/**
|
|
163
|
+
* Restores `outputs`. Returns each file written, stamped as it is now,
|
|
164
|
+
* when those are all the output files the workspace now holds: every
|
|
165
|
+
* output a path, and each one that exists replaced from the cache. A
|
|
166
|
+
* glob or a negation can leave other matching files in place.
|
|
167
|
+
*/
|
|
168
|
+
copyFilesFromCache(cachedResult: CachedResult, outputs: Array<string>): Array<OutputFile> | null
|
|
169
|
+
removeOldCacheRecords(): void
|
|
170
|
+
checkCacheFsInSync(): boolean
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export declare class NxConsolePreferences {
|
|
174
|
+
constructor(homeDir: string)
|
|
175
|
+
getAutoInstallPreference(): boolean | null
|
|
176
|
+
setAutoInstallPreference(autoInstall: boolean): void
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export declare class NxPluginCapabilities {
|
|
180
|
+
constructor(db: ExternalObject<NxDbConnection>)
|
|
181
|
+
record(computedAt: number, capabilities: Array<CachedPluginCapabilities>): void
|
|
182
|
+
/**
|
|
183
|
+
* The capabilities recorded with the graph computed at `computed_at`, or
|
|
184
|
+
* null when what is recorded belongs to another build or nothing is.
|
|
185
|
+
*/
|
|
186
|
+
get(computedAt: number): Array<CachedPluginCapabilities> | null
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export declare class NxTaskHistory {
|
|
190
|
+
constructor(db: ExternalObject<NxDbConnection>)
|
|
191
|
+
recordTaskRuns(taskRuns: Array<TaskRun>): void
|
|
192
|
+
getFlakyTasks(hashes: Array<string>): Array<string>
|
|
193
|
+
getEstimatedTaskTimings(targets: Array<TaskTarget>): Record<string, number>
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* High-performance metrics collector for Nx tasks
|
|
198
|
+
* Thread-safe and designed for minimal overhead
|
|
199
|
+
*/
|
|
200
|
+
export declare class ProcessMetricsCollector {
|
|
201
|
+
/** Create a new ProcessMetricsCollector with default configuration */
|
|
202
|
+
constructor()
|
|
203
|
+
/**
|
|
204
|
+
* Start metrics collection
|
|
205
|
+
* Idempotent - safe to call multiple times
|
|
206
|
+
*/
|
|
207
|
+
startCollection(): void
|
|
208
|
+
/**
|
|
209
|
+
* Stop metrics collection
|
|
210
|
+
* Returns true if collection was stopped, false if not running
|
|
211
|
+
*/
|
|
212
|
+
stopCollection(): boolean
|
|
213
|
+
/**
|
|
214
|
+
* Get system information (CPU cores and total memory)
|
|
215
|
+
* This is separate from the collection interval and meant to be called imperatively
|
|
216
|
+
*/
|
|
217
|
+
getSystemInfo(): SystemInfo
|
|
218
|
+
/** Register the main CLI process for metrics collection */
|
|
219
|
+
registerMainCliProcess(pid: number): void
|
|
220
|
+
/** Register a subprocess of the main CLI for metrics collection */
|
|
221
|
+
registerMainCliSubprocess(pid: number, alias?: string | undefined | null): void
|
|
222
|
+
/** Register the daemon process for metrics collection */
|
|
223
|
+
registerDaemonProcess(pid: number): void
|
|
224
|
+
/**
|
|
225
|
+
* Register a process for a specific task
|
|
226
|
+
* Automatically creates the task if it doesn't exist
|
|
227
|
+
*/
|
|
228
|
+
registerTaskProcess(taskId: string, pid: number): void
|
|
229
|
+
/** Register a batch with multiple tasks sharing a worker */
|
|
230
|
+
registerBatch(batchId: string, taskIds: Array<string>, pid: number): void
|
|
231
|
+
/** Subscribe to push-based metrics notifications from TypeScript */
|
|
232
|
+
subscribe(callback: (err: Error | null, event: MetricsUpdate) => void): void
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export declare class RunningTasksService {
|
|
236
|
+
constructor(db: ExternalObject<NxDbConnection>)
|
|
237
|
+
getRunningTasks(ids: Array<string>): Array<string>
|
|
238
|
+
addRunningTask(taskId: string): void
|
|
239
|
+
removeRunningTask(taskId: string): void
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export declare class RustPseudoTerminal {
|
|
243
|
+
constructor()
|
|
244
|
+
runCommand(command: string, commandDir?: string | undefined | null, jsEnv?: Record<string, string> | undefined | null, execArgv?: Array<string> | undefined | null, quiet?: boolean | undefined | null, tty?: boolean | undefined | null, commandLabel?: string | undefined | null): ChildProcess
|
|
245
|
+
/**
|
|
246
|
+
* This allows us to run a pseudoterminal with a fake node ipc channel
|
|
247
|
+
* this makes it possible to be backwards compatible with the old implementation
|
|
248
|
+
*/
|
|
249
|
+
fork(id: string, forkScript: string, pseudoIpcPath: string, commandDir: string | undefined | null, jsEnv: Record<string, string> | undefined | null, execArgv: Array<string> | undefined | null, quiet: boolean, commandLabel?: string | undefined | null): ChildProcess
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export declare class TaskDetails {
|
|
253
|
+
constructor(db: ExternalObject<NxDbConnection>)
|
|
254
|
+
recordTaskDetails(tasks: Array<HashedTask>): void
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export declare class TaskHasher {
|
|
258
|
+
constructor(workspaceRoot: string, projectGraph: ExternalObject<ProjectGraph>, projectFileMap: ExternalObject<Record<string, Array<FileData>>>, allWorkspaceFiles: ExternalObject<Array<FileData>>, tsConfig: Buffer, tsConfigPaths: Record<string, Array<string>>, rootTsconfigPath: string | undefined | null, options: HasherOptions | undefined | null, ignoredIndex: ExternalObject<IgnoredIndexReader>)
|
|
259
|
+
/**
|
|
260
|
+
* Hash each task's instructions using the env map keyed by `task.id`.
|
|
261
|
+
* Every task in `hash_plans` must have an entry in `per_task_envs` —
|
|
262
|
+
* a missing id surfaces as an error rather than silently hashing
|
|
263
|
+
* against an empty env. Callers that want to hash all tasks against
|
|
264
|
+
* the same env should build `per_task_envs` by keying that env under
|
|
265
|
+
* every task id.
|
|
266
|
+
*/
|
|
267
|
+
hashPlans(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>, perTaskEnvs: Record<string, Record<string, string>>, cwd: string, collectTaskInputs?: boolean | undefined | null): Record<string, HashDetails>
|
|
268
|
+
/**
|
|
269
|
+
* Like `hash_plans`, but only for the plans the planner did not defer
|
|
270
|
+
* (`HashPlans::deferred`: a task that reads another task's outputs, or a
|
|
271
|
+
* disk-backed fileset whose directory contains, or sits inside, an
|
|
272
|
+
* upstream task's output). The rest are left out and hash once those
|
|
273
|
+
* tasks have run; their ids are absent from the result and need no entry
|
|
274
|
+
* in `per_task_envs`.
|
|
275
|
+
*/
|
|
276
|
+
hashPlansUpfront(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>, perTaskEnvs: Record<string, Record<string, string>>, cwd: string, collectTaskInputs?: boolean | undefined | null): Record<string, HashDetails>
|
|
277
|
+
/**
|
|
278
|
+
* Hashes `task_ids` from plans built earlier, so a task the up-front batch
|
|
279
|
+
* deferred needs no second planning pass. Ids without a plan are absent
|
|
280
|
+
* from the result.
|
|
281
|
+
*/
|
|
282
|
+
hashPlansFor(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>, taskIds: Array<string>, perTaskEnvs: Record<string, Record<string, string>>, cwd: string, collectTaskInputs?: boolean | undefined | null): Record<string, HashDetails>
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export declare class TaskInvocationTracker {
|
|
286
|
+
constructor(db: ExternalObject<NxDbConnection>, rootPid: number)
|
|
287
|
+
/** Register a task as invoked. Throws if the task was already registered (loop detected). */
|
|
288
|
+
registerTask(parentPid: number, taskId: string): void
|
|
289
|
+
/** Remove a task invocation record after task completes. */
|
|
290
|
+
unregisterTask(taskId: string): void
|
|
291
|
+
/** Get all invocations for this root_pid, ordered by creation time. */
|
|
292
|
+
getInvocationChain(): Array<InvocationRecord>
|
|
293
|
+
/** Clean up stale invocations older than 1 day (handles PID recycling). */
|
|
294
|
+
cleanupStale(): void
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* One stored version of a commit's Ultracache configurations. Handed to the hash planner as-is.
|
|
299
|
+
* A fresh import holds every entry; a handle reopened from storage reads
|
|
300
|
+
* them per task as they are asked for and remembers them, so it costs the
|
|
301
|
+
* tasks it plans rather than the workspace's whole set.
|
|
302
|
+
*/
|
|
303
|
+
export declare class UltracacheConfigurations {
|
|
304
|
+
get commit(): string
|
|
305
|
+
get resolution(): UltracacheConfigurationResolution
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* The workspace database's Ultracache configurations. Each import is its own version,
|
|
310
|
+
* keyed by commit and fetch time, so a run that pinned one keeps reading it
|
|
311
|
+
* while a newer one is imported. Failures throw with a `code` JS maps to a
|
|
312
|
+
* skip reason: `STORE_UNAVAILABLE`, `INVALID_RESPONSE` or `WRITE_FAILED`.
|
|
313
|
+
*/
|
|
314
|
+
export declare class UltracacheConfigurationStore {
|
|
315
|
+
constructor(db: ExternalObject<NxDbConnection>)
|
|
316
|
+
/**
|
|
317
|
+
* Stores the set the Nx Cloud client read for `requested_commit` as a new
|
|
318
|
+
* version, and returns it with every entry in hand.
|
|
319
|
+
*/
|
|
320
|
+
import(options: UltracacheConfigurationImportOptions): UltracacheConfigurations
|
|
321
|
+
/**
|
|
322
|
+
* The newest stored set for `commit`, without touching the network;
|
|
323
|
+
* `null` when none is stored or its row cannot be read. Reads only the
|
|
324
|
+
* version's summary row.
|
|
325
|
+
*/
|
|
326
|
+
get(commit: string): UltracacheConfigurations | null
|
|
327
|
+
/**
|
|
328
|
+
* Exactly the version of `commit` fetched at `fetched_at`; `null` when it
|
|
329
|
+
* is not stored or its row cannot be read.
|
|
330
|
+
*/
|
|
331
|
+
getVersion(commit: string, fetchedAt: number): UltracacheConfigurations | null
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export declare class WorkspaceContext {
|
|
335
|
+
workspaceRoot: string
|
|
336
|
+
constructor(workspaceRoot: string, cacheDir: string, options?: WorkspaceContextOptions | undefined | null)
|
|
337
|
+
/**
|
|
338
|
+
* Loads the files the last walk recorded instead of walking. For a
|
|
339
|
+
* process whose host already walked, such as a plugin worker.
|
|
340
|
+
*/
|
|
341
|
+
static fromArchive(workspaceRoot: string, cacheDir: string, options?: WorkspaceContextOptions | undefined | null): WorkspaceContext
|
|
342
|
+
/**
|
|
343
|
+
* Bumped once per applied batch that changed anything. Equal values
|
|
344
|
+
* mean equal files, so a consumer that remembers the value it computed
|
|
345
|
+
* from can skip recomputing.
|
|
346
|
+
*/
|
|
347
|
+
changeSeq(): number
|
|
348
|
+
/**
|
|
349
|
+
* Walks the workspace again into this context, so it and the archive
|
|
350
|
+
* include writes made since the last walk. Does nothing while a walk is
|
|
351
|
+
* in progress. Await `ready()` before reading. What the walk finds
|
|
352
|
+
* changed goes to the subscriber.
|
|
353
|
+
*
|
|
354
|
+
* For a graph built without the daemon, where nothing watches: see
|
|
355
|
+
* `refreshWorkspaceContext`, called by
|
|
356
|
+
* `buildProjectGraphAndSourceMapsWithoutDaemon`.
|
|
357
|
+
*/
|
|
358
|
+
refresh(): boolean
|
|
359
|
+
/**
|
|
360
|
+
* Resolves once the files behind this context exist. The readers below
|
|
361
|
+
* block the calling thread until they do; awaiting this first keeps a
|
|
362
|
+
* plugin host responsive while its workers are connecting.
|
|
363
|
+
*/
|
|
364
|
+
ready(): Promise<void>
|
|
365
|
+
/** On wasm the files are gathered when the context is constructed. */
|
|
366
|
+
ready(): void
|
|
367
|
+
getWorkspaceFiles(projectRootMap: Record<string, string>): NxWorkspaceFiles
|
|
368
|
+
glob(globs: Array<string>, exclude?: Array<string> | undefined | null): Array<string>
|
|
369
|
+
/**
|
|
370
|
+
* Performs multiple glob pattern matches against workspace files in parallel
|
|
371
|
+
* @returns An array of arrays, where each inner array contains the file paths
|
|
372
|
+
* that matched the corresponding glob pattern in the input. The outer array maintains the same order
|
|
373
|
+
* as the input globs.
|
|
374
|
+
*/
|
|
375
|
+
multiGlob(globs: Array<string>, exclude?: Array<string> | undefined | null): Array<Array<string>>
|
|
376
|
+
hashFilesMatchingGlobs(globGroups: Array<Array<string>>): Array<string>
|
|
377
|
+
hashFilesMatchingGlob(globs: Array<string>, exclude?: Array<string> | undefined | null): string
|
|
378
|
+
/**
|
|
379
|
+
* Applies changes a caller learned of on its own. Waits through a walk in
|
|
380
|
+
* progress so the answer reflects them. Returns what really changed; the
|
|
381
|
+
* batch is not published to subscribers.
|
|
382
|
+
*/
|
|
383
|
+
incrementalUpdate(updatedFiles: Array<string>, deletedFiles: Array<string>): ChangeBatch
|
|
384
|
+
updateProjectFiles(projectRootMappings: Record<string, string>, projectFiles: ExternalObject<Record<string, Array<FileData>>>, globalFiles: ExternalObject<Array<FileData>>, updatedFiles: Record<string, string>, deletedFiles: Array<string>): UpdatedWorkspaceFiles
|
|
385
|
+
allFileData(): Array<FileData>
|
|
386
|
+
/**
|
|
387
|
+
* Recover from dropped watch events: re-walk, and report what changed
|
|
388
|
+
* against the files this context was holding. The fresh files are
|
|
389
|
+
* adopted, so the caller only has to feed the returned changes through
|
|
390
|
+
* its normal recomputation path; subscribers do not see them.
|
|
391
|
+
*/
|
|
392
|
+
rescanAndDiff(): ChangeBatch
|
|
393
|
+
/**
|
|
394
|
+
* The subset of `paths` the file map holds: what the watch tracks, with
|
|
395
|
+
* the ignore rules applied. A path it does not hold is gitignored, gone,
|
|
396
|
+
* or not yet reported. Applies what the watch delivered first, as every
|
|
397
|
+
* other read of the files does, so a write already reported counts.
|
|
398
|
+
*/
|
|
399
|
+
trackedFiles(paths: Array<string>): Array<string>
|
|
400
|
+
/**
|
|
401
|
+
* Remembers each task's outputs, as given or else as they are on disk
|
|
402
|
+
* now, so `outputs_unchanged` can tell whether they still are.
|
|
403
|
+
*/
|
|
404
|
+
recordOutputs(entries: Array<TaskOutputs>): void
|
|
405
|
+
/** Whether each task's outputs are still as last recorded for its hash. */
|
|
406
|
+
outputsUnchanged(entries: Array<TaskOutputs>): Array<boolean>
|
|
407
|
+
getFilesInDirectory(directory: string): Array<string>
|
|
408
|
+
/**
|
|
409
|
+
* Subscribes to the context's changes: the callback is called whenever
|
|
410
|
+
* something was applied or delivered, with everything not yet taken by
|
|
411
|
+
* it or by `settle`. Replaces any earlier subscriber.
|
|
412
|
+
*/
|
|
413
|
+
onChanges(callback: (err: Error | null, batch: ChangeBatch | null) => void): void
|
|
414
|
+
/**
|
|
415
|
+
* Subscribes to every event the watch delivers, whether or not it
|
|
416
|
+
* concerns the files: writes under ignored directories included, and
|
|
417
|
+
* the `rescan` marker when the kernel dropped events. Replaces any
|
|
418
|
+
* earlier subscriber. Batches applied to the files are `onChanges`.
|
|
419
|
+
*/
|
|
420
|
+
onWatchEvents(callback: (err: Error | null, events: WatchEvent[] | null) => void): void
|
|
421
|
+
/**
|
|
422
|
+
* Applies everything the watch has delivered, waiting out the kernel hop,
|
|
423
|
+
* then takes every change applied and not yet taken, one entry per path
|
|
424
|
+
* at its latest state. The change subscriber takes from the same place,
|
|
425
|
+
* so no change is handed out twice.
|
|
426
|
+
*/
|
|
427
|
+
settle(): ChangeBatch
|
|
428
|
+
/**
|
|
429
|
+
* Takes every change applied and not yet taken, without waiting for the
|
|
430
|
+
* watch: for a caller that just applied changes itself, through
|
|
431
|
+
* `incrementalUpdate` or `rescanAndDiff`.
|
|
432
|
+
*/
|
|
433
|
+
takeAppliedChanges(): ChangeBatch
|
|
434
|
+
/**
|
|
435
|
+
* Stops the watcher and forgets the subscribers. The files stay as they
|
|
436
|
+
* were; reads no longer pull anything in.
|
|
437
|
+
*/
|
|
438
|
+
stopWatching(): void
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export interface AffectedOptions {
|
|
442
|
+
/**
|
|
443
|
+
* `createNodes` globs of every loaded plugin. Resolved in TypeScript because
|
|
444
|
+
* `getPlugins` is async and spawns plugin workers.
|
|
445
|
+
*/
|
|
446
|
+
projectGlobPatterns: Array<string>
|
|
447
|
+
projectDeletionAffectsAllProjects: boolean
|
|
448
|
+
workspaceRoot: string
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Why the change reached each task. Covers every task it reached, not just
|
|
453
|
+
* the selection, so a reason naming a producer can be looked up too.
|
|
454
|
+
*/
|
|
455
|
+
export interface AffectedTaskExplanation {
|
|
456
|
+
/**
|
|
457
|
+
* The reached tasks the change touched directly, sorted: a matched input,
|
|
458
|
+
* or always touched. Every other reached task was carried through outputs.
|
|
459
|
+
*/
|
|
460
|
+
touched: Array<string>
|
|
461
|
+
/** Consumer -> the reached producers whose outputs it reads. */
|
|
462
|
+
producersOf: Record<string, Array<string>>
|
|
463
|
+
/** Changed project configs no longer on disk. Every task was seeded for them. */
|
|
464
|
+
deletedProjectConfigs: Array<string>
|
|
465
|
+
/**
|
|
466
|
+
* What each matching plan instruction matched. Shared rather than copied
|
|
467
|
+
* per task: one lib's fileset can be in the plan of every dependent.
|
|
468
|
+
*/
|
|
469
|
+
inputMatches: Array<TaskInputMatches>
|
|
470
|
+
/** Per reached task, the indexes of the matches above that its plan holds. */
|
|
471
|
+
taskInputMatches: Record<string, Array<number>>
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export declare function affectedTasks(projectGraph: ExternalObject<ProjectGraph>, hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>, taskGraph: TaskGraph, changedFiles: Array<string>, options: AffectedTasksOptions): AffectedTaskSelection
|
|
475
|
+
|
|
476
|
+
export interface AffectedTaskSelection {
|
|
477
|
+
/** Every affected task, sorted. */
|
|
478
|
+
affected: Array<string>
|
|
479
|
+
/** `affected` plus everything it depends on, sorted: what a run keeps. */
|
|
480
|
+
required: Array<string>
|
|
481
|
+
/** Why the change reached each task. Only when `explain` was asked for. */
|
|
482
|
+
explanation?: AffectedTaskExplanation
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export interface AffectedTasksOptions {
|
|
486
|
+
/**
|
|
487
|
+
* `createNodes` globs of every loaded plugin. Resolved in TypeScript because
|
|
488
|
+
* `getPlugins` is async and spawns plugin workers.
|
|
489
|
+
*/
|
|
490
|
+
projectGlobPatterns: Array<string>
|
|
491
|
+
workspaceRoot: string
|
|
492
|
+
/**
|
|
493
|
+
* Tasks touched whatever their plan says: those of projects a dependency
|
|
494
|
+
* change names outright (`projectsAffectedByDependencyUpdates`, or a
|
|
495
|
+
* workspace project the root package.json depends on), and those whose
|
|
496
|
+
* executor hashes outside its plan. Ids not in the task graph are ignored.
|
|
497
|
+
*/
|
|
498
|
+
alwaysTouchedTaskIds: Array<string>
|
|
499
|
+
/**
|
|
500
|
+
* External node names whose version or integrity moved. A plan carries them
|
|
501
|
+
* as `External(name)`, so a package is matched the way a path is.
|
|
502
|
+
*/
|
|
503
|
+
changedExternals: Array<string>
|
|
504
|
+
/**
|
|
505
|
+
* Ecosystems whose manifest changed without the change being pinnable to
|
|
506
|
+
* packages, `npm` for a lock file. Every node of that type counts as
|
|
507
|
+
* moved, and a node of any other type does not: a pnpm lock file cannot
|
|
508
|
+
* have moved a Maven artifact.
|
|
509
|
+
*/
|
|
510
|
+
changedExternalTypes: Array<string>
|
|
511
|
+
/**
|
|
512
|
+
* Projects `--exclude` names. Their tasks are dropped from the selection
|
|
513
|
+
* after the walk, so they still carry a change to the tasks reading them.
|
|
514
|
+
*/
|
|
515
|
+
excludedProjects: Array<string>
|
|
516
|
+
/**
|
|
517
|
+
* The targets the command asked for. The graph also holds what they depend
|
|
518
|
+
* on, which carries a change but is only ever run as a dependency.
|
|
519
|
+
*/
|
|
520
|
+
targets: Array<string>
|
|
521
|
+
/**
|
|
522
|
+
* Where a field-filtered JSON input's file is read at both ends of the diff.
|
|
523
|
+
* Unset, as for `--files`, such a file counts as changed whole.
|
|
524
|
+
*/
|
|
525
|
+
revisions?: FileRevisions
|
|
526
|
+
/**
|
|
527
|
+
* The runner's `selectivelyHashTsConfig`: a task hashes only its own
|
|
528
|
+
* project's tsconfig `paths` entries, rather than none.
|
|
529
|
+
*/
|
|
530
|
+
selectivelyHashTsConfig: boolean
|
|
531
|
+
/** Whether to return why each task was reached, for `--explain`. */
|
|
532
|
+
explain: boolean
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export interface BatchInfo {
|
|
536
|
+
executorName: string
|
|
537
|
+
taskIds: Array<string>
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export declare const enum BatchStatus {
|
|
541
|
+
Running = 'Running',
|
|
542
|
+
Success = 'Success',
|
|
543
|
+
Failure = 'Failure'
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/** What `put` copied into the cache. */
|
|
547
|
+
export interface CachedOutputs {
|
|
548
|
+
/** The output entries that exist, as `expand_outputs` finds them. */
|
|
549
|
+
expandedOutputs: Array<string>
|
|
550
|
+
/** Each file copied, stamped as it is in the workspace. */
|
|
551
|
+
files: Array<OutputFile>
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export interface CachedPluginCapabilities {
|
|
555
|
+
createNodesPattern?: string
|
|
556
|
+
hasCreateDependencies: boolean
|
|
557
|
+
hasCreateMetadata: boolean
|
|
558
|
+
hasPreTasksExecution: boolean
|
|
559
|
+
hasPostTasksExecution: boolean
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export interface CachedResult {
|
|
563
|
+
code: number
|
|
564
|
+
terminalOutput?: string
|
|
565
|
+
outputsPath: string
|
|
566
|
+
size?: number
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Cache hits vs total; present only when there was a cache outcome. A bypassed
|
|
571
|
+
* cache is signalled separately by `cache_skipped`.
|
|
572
|
+
*/
|
|
573
|
+
export interface CacheStat {
|
|
574
|
+
hits: number
|
|
575
|
+
total: number
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export declare function canInstallNxConsole(): Promise<boolean>
|
|
579
|
+
|
|
580
|
+
export declare function canInstallNxConsoleForEditor(editor: SupportedEditor): Promise<boolean>
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* What one application of changes did to the files. `seq` is the context's
|
|
584
|
+
* change sequence afterwards; it is unchanged, and the lists empty, when
|
|
585
|
+
* nothing the batch reported was really different. A path can reach a
|
|
586
|
+
* consumer in more than one batch (see `settle`): the one with the higher
|
|
587
|
+
* `seq` holds its later state.
|
|
588
|
+
*/
|
|
589
|
+
export interface ChangeBatch {
|
|
590
|
+
seq: number
|
|
591
|
+
createdFiles: Array<FileData>
|
|
592
|
+
updatedFiles: Array<FileData>
|
|
593
|
+
deletedFiles: Array<string>
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export declare function closeDbConnection(connection: ExternalObject<NxDbConnection>): void
|
|
597
|
+
|
|
598
|
+
export declare function connectToNxDb(cacheDir: string, dbName?: string | undefined | null): ExternalObject<NxDbConnection>
|
|
599
|
+
|
|
600
|
+
export declare function copy(src: string, dest: string): number
|
|
601
|
+
|
|
602
|
+
export interface DepsOutputsInput {
|
|
603
|
+
dependentTasksOutputFiles: string
|
|
604
|
+
transitive?: boolean
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Detects which AI agent is running and returns its name.
|
|
609
|
+
* Returns None if no agent is detected or when running inside the Nx daemon.
|
|
610
|
+
* Filtering against supported agents should be done on the TypeScript side.
|
|
611
|
+
*/
|
|
612
|
+
export declare function detectAiAgent(): string | null
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* `jsonDiff(JSON.parse(lhs), JSON.parse(rhs))`, or `null` when either side is
|
|
616
|
+
* not strict JSON, where `JSON.parse` would throw.
|
|
617
|
+
*/
|
|
618
|
+
export declare function diffJson(lhs: string, rhs: string): Array<JsonChange> | null
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Only the projects that own a changed file, one entry per file, in input
|
|
622
|
+
* order. `nx release` version plans ignore implicit and config-derived touches.
|
|
623
|
+
*/
|
|
624
|
+
export declare function directlyTouchedProjects(projectGraph: ExternalObject<ProjectGraph>, touchedFiles: Array<string>): Array<string>
|
|
625
|
+
|
|
626
|
+
export interface EnvironmentInput {
|
|
627
|
+
env: string
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Canonical event dimension and metric names for GA4.
|
|
632
|
+
* TypeScript imports these from the native module instead of redefining the strings.
|
|
633
|
+
*/
|
|
634
|
+
export interface EventDimensions {
|
|
635
|
+
command: string
|
|
636
|
+
generatorName: string
|
|
637
|
+
packageName: string
|
|
638
|
+
packageVersion: string
|
|
639
|
+
duration: string
|
|
640
|
+
sampleRate: string
|
|
641
|
+
taskCount: string
|
|
642
|
+
projectCount: string
|
|
643
|
+
cachedTaskCount: string
|
|
644
|
+
cliSource: string
|
|
645
|
+
interactive: string
|
|
646
|
+
excludeAppliedMigrations: string
|
|
647
|
+
include: string
|
|
648
|
+
includeSource: string
|
|
649
|
+
multiMajorChoice: string
|
|
650
|
+
fetchMethod: string
|
|
651
|
+
fetchFallbackReason: string
|
|
652
|
+
createCommits: string
|
|
653
|
+
agenticOutcome: string
|
|
654
|
+
agentUsed: string
|
|
655
|
+
errorName: string
|
|
656
|
+
errorLocation: string
|
|
657
|
+
migrationName: string
|
|
658
|
+
promptChoice: string
|
|
659
|
+
majorsCrossed: string
|
|
660
|
+
migrationCount: string
|
|
661
|
+
appliedCount: string
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export declare const enum EventType {
|
|
665
|
+
delete = 'delete',
|
|
666
|
+
update = 'update',
|
|
667
|
+
create = 'create',
|
|
668
|
+
/**
|
|
669
|
+
* The kernel dropped events (e.g. an inotify queue overflow); per-path
|
|
670
|
+
* events cannot be trusted complete and consumers must re-walk.
|
|
671
|
+
*/
|
|
672
|
+
rescan = 'rescan'
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/** The files an `includeIgnored` fileset group matches on disk, sorted. */
|
|
676
|
+
export declare function expandFilesInput(workspaceRoot: string, globs: Array<string>): Array<string>
|
|
677
|
+
|
|
678
|
+
export declare function expandOutputs(directory: string, entries: Array<string>): Array<string>
|
|
679
|
+
|
|
680
|
+
export interface ExternalDependenciesInput {
|
|
681
|
+
externalDependencies: Array<string>
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export interface ExternalNode {
|
|
685
|
+
/**
|
|
686
|
+
* The ecosystem the node belongs to, `npm` for a package the JS lock-file
|
|
687
|
+
* parsers found. Optional because a plugin may leave it unset.
|
|
688
|
+
*/
|
|
689
|
+
type?: string
|
|
690
|
+
packageName?: string
|
|
691
|
+
version: string
|
|
692
|
+
hash?: string
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export interface FileData {
|
|
696
|
+
file: string
|
|
697
|
+
hash: string
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export interface FileMap {
|
|
701
|
+
projectFileMap: Record<string, Array<FileData>>
|
|
702
|
+
nonProjectFiles: Array<FileData>
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Where a changed file's two versions are read: `base` from git, `head` from
|
|
707
|
+
* git or, unset, the working tree.
|
|
708
|
+
*/
|
|
709
|
+
export interface FileRevisions {
|
|
710
|
+
base: string
|
|
711
|
+
head?: string
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
export interface FileSetInput {
|
|
715
|
+
fileset: string
|
|
716
|
+
dependencies?: boolean
|
|
717
|
+
/**
|
|
718
|
+
* Hash the glob straight from disk (so gitignored/generated files count)
|
|
719
|
+
* instead of the workspace file map.
|
|
720
|
+
*/
|
|
721
|
+
includeIgnored?: boolean
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export declare function findImports(projectFileMap: Record<string, Array<string>>): Array<ImportResult>
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Flush all pending telemetry data
|
|
728
|
+
* This should be called before process exit
|
|
729
|
+
*/
|
|
730
|
+
export declare function flushTelemetry(): void
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* The single duration formatter — used by the task list, terminal report, and TUI
|
|
734
|
+
* popup. Exposed to JS as `formatDuration` so all three share one implementation.
|
|
735
|
+
* 0 (or sub-millisecond) → "<1ms", then "470ms", "13.4s", "1m 30s".
|
|
736
|
+
*/
|
|
737
|
+
export declare function formatDuration(ms: number): string
|
|
738
|
+
|
|
739
|
+
export declare function getBinaryTarget(): string
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* A tenth of the filesystem that holds `cache_path`, asked of that one
|
|
743
|
+
* filesystem through its nearest existing ancestor (the cache directory may
|
|
744
|
+
* not exist yet). Listing every mounted disk instead costs, on macOS, IOKit
|
|
745
|
+
* and CacheDelete round trips per mount on the thread that is about to run
|
|
746
|
+
* tasks, and those stall while disk images attach or detach.
|
|
747
|
+
*/
|
|
748
|
+
export declare function getDefaultMaxCacheSize(cachePath: string): number
|
|
749
|
+
|
|
750
|
+
/** Returns the canonical event dimension names. */
|
|
751
|
+
export declare function getEventDimensions(): EventDimensions
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Batch version of get_files_for_outputs that processes multiple output
|
|
755
|
+
* entries in parallel using Rayon. Each entry is a list of output paths
|
|
756
|
+
* for a single task.
|
|
757
|
+
*/
|
|
758
|
+
export declare function getFilesForOutputsBatch(directory: string, entriesBatch: Array<Array<string>>): Array<Array<string>>
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* The same list, for JavaScript callers that walk a tree rather than the
|
|
762
|
+
* filesystem - `visitNotIgnoredFiles` - so both sides apply one baseline
|
|
763
|
+
* instead of maintaining a second copy that drifts.
|
|
764
|
+
*
|
|
765
|
+
* The patterns are gitignore-shaped, so they read the same to the `ignore`
|
|
766
|
+
* crate here and the `ignore` npm package there.
|
|
767
|
+
*/
|
|
768
|
+
export declare function getHardcodedIgnorePatterns(): Array<string>
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* If `workspace_root` is inside a git worktree, returns the main repo root.
|
|
772
|
+
* Returns `None` when already in the main repo (or not in a git repo at all).
|
|
773
|
+
*/
|
|
774
|
+
export declare function getMainWorktreeRoot(workspaceRoot: string): string | null
|
|
775
|
+
|
|
776
|
+
export declare function getTransformableOutputs(outputs: Array<string>): Array<string>
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Tasks whose Ultracache configuration read another task's outputs: they
|
|
780
|
+
* hash after their producers ran, because those files only exist then. Needs
|
|
781
|
+
* no project graph, so the client can call it before the first hashing wave
|
|
782
|
+
* on the daemon path.
|
|
783
|
+
* Opted-out and custom-hasher tasks are not excluded: deferring a task that
|
|
784
|
+
* ends up hashed natively only delays its hash, it never changes it.
|
|
785
|
+
*/
|
|
786
|
+
export declare function getUltracacheDeferredTaskIds(configurations: UltracacheConfigurations, taskGraph: TaskGraph): Array<string>
|
|
787
|
+
|
|
788
|
+
/** The eligibility report, for the run summary. */
|
|
789
|
+
export declare function getUltracacheReport(configurations: UltracacheConfigurations, tasks: Record<string, TaskUltracacheSettings | null>, options?: UltracacheEligibilityOptions | undefined | null): UltracacheReport
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Group information - union of different process group types
|
|
793
|
+
* Use group_type to discriminate which optional fields are present
|
|
794
|
+
*/
|
|
795
|
+
export interface GroupInfo {
|
|
796
|
+
/** Type discriminator: MainCLI, Daemon, Task, or Batch */
|
|
797
|
+
groupType: GroupType
|
|
798
|
+
/** Display name for the group */
|
|
799
|
+
displayName: string
|
|
800
|
+
/** Unique ID for this group */
|
|
801
|
+
id: string
|
|
802
|
+
/** Task IDs in this batch (present for Batch groups) */
|
|
803
|
+
taskIds?: Array<string>
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/** Group type discriminator */
|
|
807
|
+
export declare const enum GroupType {
|
|
808
|
+
MainCLI = 'MainCLI',
|
|
809
|
+
MainCliSubprocesses = 'MainCliSubprocesses',
|
|
810
|
+
Daemon = 'Daemon',
|
|
811
|
+
DaemonSubprocesses = 'DaemonSubprocesses',
|
|
812
|
+
Task = 'Task',
|
|
813
|
+
Batch = 'Batch'
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export declare function hashArray(input: Array<string | undefined | null>): string
|
|
817
|
+
|
|
818
|
+
export interface HashDetails {
|
|
819
|
+
value: string
|
|
820
|
+
details: Record<string, string>
|
|
821
|
+
/** Structured inputs used for hashing (file patterns, env vars, etc.) */
|
|
822
|
+
inputs: HashInputs
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export interface HashedTask {
|
|
826
|
+
hash: string
|
|
827
|
+
project: string
|
|
828
|
+
target: string
|
|
829
|
+
configuration?: string
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export interface HasherOptions {
|
|
833
|
+
selectivelyHashTsConfig: boolean
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
export declare function hashFile(file: string): string | null
|
|
837
|
+
|
|
838
|
+
/** NAPI-compatible struct for returning hash inputs to JavaScript */
|
|
839
|
+
export interface HashInputs {
|
|
840
|
+
/** Expanded file paths that were used as inputs */
|
|
841
|
+
files: Array<string>
|
|
842
|
+
/** Runtime commands */
|
|
843
|
+
runtime: Array<string>
|
|
844
|
+
/** Environment variable names */
|
|
845
|
+
environment: Array<string>
|
|
846
|
+
/** Dependent task outputs */
|
|
847
|
+
depOutputs: Array<string>
|
|
848
|
+
/** External dependencies */
|
|
849
|
+
external: Array<string>
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Initialize telemetry using a DB connection.
|
|
854
|
+
* Gets/creates the session ID from the DB, stores the connection
|
|
855
|
+
* for persisting session refreshes on flush, and returns the session ID
|
|
856
|
+
* so the caller can set it as an env var for child processes.
|
|
857
|
+
* Used by CLI and daemon.
|
|
858
|
+
*/
|
|
859
|
+
export declare function initializeTelemetry(connection: ExternalObject<NxDbConnection>, workspaceId: string, userId: string | undefined | null, nxVersion: string, packageManagerName: string, packageManagerVersion: string | undefined | null, nodeVersion: string, osArch: string, osPlatform: string, osRelease: string, isCi: boolean, isNxCloud: boolean): string
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Initialize telemetry with a pre-fetched session ID.
|
|
863
|
+
* No DB connection — used by plugin workers that inherit the
|
|
864
|
+
* session ID from their parent process via env var.
|
|
865
|
+
*/
|
|
866
|
+
export declare function initializeTelemetryWithSessionId(sessionId: string, workspaceId: string, userId: string | undefined | null, nxVersion: string, packageManagerName: string, packageManagerVersion: string | undefined | null, nodeVersion: string, osArch: string, osPlatform: string, osRelease: string, isCi: boolean, isNxCloud: boolean): void
|
|
867
|
+
|
|
868
|
+
/** A changed file that reached a task, and the input pattern it reached it by. */
|
|
869
|
+
export interface InputMatch {
|
|
870
|
+
file: string
|
|
871
|
+
/**
|
|
872
|
+
* The fileset that matched. Absent for an instruction with no pattern to
|
|
873
|
+
* name, such as the root tsconfig.
|
|
874
|
+
*/
|
|
875
|
+
pattern?: string
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export interface InputsInput {
|
|
879
|
+
input: string
|
|
880
|
+
dependencies?: boolean
|
|
881
|
+
projects?: string | Array<string>
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export declare function installNxConsole(): Promise<boolean>
|
|
885
|
+
|
|
886
|
+
export declare function installNxConsoleForEditor(editor: SupportedEditor): Promise<boolean>
|
|
887
|
+
|
|
888
|
+
export interface InvocationRecord {
|
|
889
|
+
parentPid: number
|
|
890
|
+
taskId: string
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export const IS_WASM: boolean
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Detects if the current process is being run by an AI agent.
|
|
897
|
+
* Always returns false when running inside the Nx daemon, since the daemon
|
|
898
|
+
* is a long-lived process that should not inherit AI agent behavior from
|
|
899
|
+
* the client that connected to it.
|
|
900
|
+
*/
|
|
901
|
+
export declare function isAiAgent(): boolean
|
|
902
|
+
|
|
903
|
+
export declare function isEditorInstalled(editor: SupportedEditor): Promise<boolean>
|
|
904
|
+
|
|
905
|
+
/** One entry of `jsonDiff`'s result: `type` is a `JsonDiffType` value. */
|
|
906
|
+
export interface JsonChange {
|
|
907
|
+
type: string
|
|
908
|
+
path: Array<string>
|
|
909
|
+
value: JsonChangeValue
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export interface JsonChangeValue {
|
|
913
|
+
lhs?: any
|
|
914
|
+
rhs?: any
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
export interface JsonInput {
|
|
918
|
+
json: string
|
|
919
|
+
fields?: Array<string>
|
|
920
|
+
excludeFields?: Array<string>
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Kill a process and all its descendants (fire-and-forget).
|
|
925
|
+
*
|
|
926
|
+
* Sends the requested signal but does NOT wait for processes to exit.
|
|
927
|
+
* Use `killProcessTreeGraceful` when cleanup handlers must run.
|
|
928
|
+
*/
|
|
929
|
+
export declare function killProcessTree(rootPid: number, signal?: string | number | undefined | null): void
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Kill a process tree gracefully: signal → wait → SIGKILL.
|
|
933
|
+
*
|
|
934
|
+
* Signals leaf processes first, waits for them to exit, then signals
|
|
935
|
+
* their parents (now leaves). Repeats until the tree is empty or the
|
|
936
|
+
* grace period expires, then force-kills survivors.
|
|
937
|
+
*/
|
|
938
|
+
export declare function killProcessTreeGraceful(rootPid: number, signal?: string | number | undefined | null, gracePeriodMs?: number | undefined | null): Promise<void>
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* A docs link rendered as an OSC 8 hyperlink. Both fields come from TS so the
|
|
942
|
+
* popup never hardcodes a URL.
|
|
943
|
+
*/
|
|
944
|
+
export interface Link {
|
|
945
|
+
text: string
|
|
946
|
+
href: string
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* Runs every locator and returns the touched project names, in locator order,
|
|
951
|
+
* unsorted overall and with duplicates. Callers dedupe by walking the graph.
|
|
952
|
+
*
|
|
953
|
+
* Every branch is deterministic, and must stay so: this order reaches
|
|
954
|
+
* `result.nodes` insertion order and so `nx show projects --affected`.
|
|
955
|
+
*/
|
|
956
|
+
export declare function locateTouchedProjects(projectGraph: ExternalObject<ProjectGraph>, nxJson: NxJson, touchedFiles: Array<string>, options: AffectedOptions, jsLocators: Array<(files: string[]) => Promise<string[]>>): Promise<Array<string>>
|
|
957
|
+
|
|
958
|
+
export declare function logDebug(message: string): void
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Checks which `paths` match the given `globs`, using the same glob engine
|
|
962
|
+
* as the task hasher (`build_glob_set`). Used to statically match
|
|
963
|
+
* `dependentTasksOutputFiles` globs against candidate paths.
|
|
964
|
+
*/
|
|
965
|
+
export declare function matchGlobPaths(globs: Array<string>, paths: Array<string>): Array<boolean>
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Statically checks which `paths` would be captured by the given output
|
|
969
|
+
* `entries`, without touching the file system. Mirrors `expand_outputs`
|
|
970
|
+
* semantics: entries match themselves and anything nested under them (so a
|
|
971
|
+
* directory entry captures its contents), negated (`!`-prefixed) entries
|
|
972
|
+
* exclude matches from the whole entry set, and a non-empty list with only
|
|
973
|
+
* negated entries matches everything not excluded. An empty list matches
|
|
974
|
+
* nothing.
|
|
975
|
+
*/
|
|
976
|
+
export declare function matchOutputPaths(entries: Array<string>, paths: Array<string>): Array<boolean>
|
|
977
|
+
|
|
978
|
+
/** Combined metadata for groups and processes */
|
|
979
|
+
export interface Metadata {
|
|
980
|
+
/** Group-level metadata */
|
|
981
|
+
groups: Record<string, GroupInfo>
|
|
982
|
+
/** Process-level metadata (keyed by PID as string for NAPI compatibility) */
|
|
983
|
+
processes: Record<string, ProcessMetadata>
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/** Metrics update sent every collection cycle */
|
|
987
|
+
export interface MetricsUpdate {
|
|
988
|
+
timestamp: number
|
|
989
|
+
processes: Array<ProcessMetrics>
|
|
990
|
+
metadata: Metadata
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/** Stripped version of the NxJson interface for use in rust */
|
|
994
|
+
export interface NxJson {
|
|
995
|
+
namedInputs?: Record<string, Array<InputsInput | string | FileSetInput | RuntimeInput | EnvironmentInput | ExternalDependenciesInput | DepsOutputsInput | WorkingDirectoryInput | JsonInput>>
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
export interface NxWorkspaceFiles {
|
|
999
|
+
projectFileMap: Record<string, Array<FileData>>
|
|
1000
|
+
globalFiles: Array<FileData>
|
|
1001
|
+
externalReferences?: NxWorkspaceFilesExternals
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* Return-only struct (Rust → JS). `object_from_js = false` skips generating
|
|
1006
|
+
* `FromNapiValue` since `External<T>` only supports `FromNapiRef` in napi v3.
|
|
1007
|
+
*/
|
|
1008
|
+
export interface NxWorkspaceFilesExternals {
|
|
1009
|
+
projectFiles: ExternalObject<Record<string, Array<FileData>>>
|
|
1010
|
+
globalFiles: ExternalObject<Array<FileData>>
|
|
1011
|
+
allWorkspaceFiles: ExternalObject<Array<FileData>>
|
|
1012
|
+
ignoredIndex: ExternalObject<IgnoredIndexReader>
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/** A workspace-relative file with the stamp it was left with. */
|
|
1016
|
+
export interface OutputFile {
|
|
1017
|
+
path: string
|
|
1018
|
+
/**
|
|
1019
|
+
* `<mtime nanos>:<size>`, a string because the nanoseconds do not fit a
|
|
1020
|
+
* JavaScript number.
|
|
1021
|
+
*/
|
|
1022
|
+
stamp: string
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export declare function parseTaskStatus(stringStatus: string): TaskStatus
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Structured run report shown in the exit-countdown popup. The TUI builds the
|
|
1029
|
+
* visual from these numbers rather than receiving a pre-formatted string.
|
|
1030
|
+
*/
|
|
1031
|
+
export interface PerformanceSummaryPayload {
|
|
1032
|
+
runDurationMs: number
|
|
1033
|
+
criticalPathMs: number
|
|
1034
|
+
criticalPathTaskCount: number
|
|
1035
|
+
recoverableMs: number
|
|
1036
|
+
cache?: CacheStat
|
|
1037
|
+
cacheSkipped: boolean
|
|
1038
|
+
/** Already in display order; a multi-line entry embeds a task list. */
|
|
1039
|
+
recommendations: Array<string>
|
|
1040
|
+
/**
|
|
1041
|
+
* Phrases already in `recommendations` to hyperlink in place (e.g. the
|
|
1042
|
+
* remote-cache CTA); empty when none apply.
|
|
1043
|
+
*/
|
|
1044
|
+
links: Array<Link>
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/** Process metadata (static, doesn't change during process lifetime) */
|
|
1048
|
+
export interface ProcessMetadata {
|
|
1049
|
+
ppid: number
|
|
1050
|
+
name: string
|
|
1051
|
+
command: string
|
|
1052
|
+
exePath: string
|
|
1053
|
+
cwd: string
|
|
1054
|
+
alias?: string
|
|
1055
|
+
groupId: string
|
|
1056
|
+
isRoot: boolean
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
/** Process metrics (dynamic, changes every collection) */
|
|
1060
|
+
export interface ProcessMetrics {
|
|
1061
|
+
pid: number
|
|
1062
|
+
cpu: number
|
|
1063
|
+
memory: number
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
export interface Project {
|
|
1067
|
+
root: string
|
|
1068
|
+
namedInputs?: Record<string, Array<InputsInput | string | FileSetInput | RuntimeInput | EnvironmentInput | ExternalDependenciesInput | DepsOutputsInput | WorkingDirectoryInput | JsonInput>>
|
|
1069
|
+
tags?: Array<string>
|
|
1070
|
+
targets: Record<string, Target>
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export interface ProjectGraph {
|
|
1074
|
+
nodes: Record<string, Project>
|
|
1075
|
+
dependencies: Record<string, Array<string>>
|
|
1076
|
+
externalNodes: Record<string, ExternalNode>
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
export declare function remove(src: string): void
|
|
1080
|
+
|
|
1081
|
+
export declare function restoreTerminal(): void
|
|
1082
|
+
|
|
1083
|
+
export declare const enum RunMode {
|
|
1084
|
+
RunOne = 0,
|
|
1085
|
+
RunMany = 1
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export interface RuntimeInput {
|
|
1089
|
+
runtime: string
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
export declare const enum SupportedEditor {
|
|
1093
|
+
VSCode = 0,
|
|
1094
|
+
VSCodeInsiders = 1,
|
|
1095
|
+
Cursor = 2,
|
|
1096
|
+
Windsurf = 3,
|
|
1097
|
+
JetBrains = 4,
|
|
1098
|
+
Unknown = 5
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* A free function, not a method: `BatchProcess` writes these logs whichever
|
|
1103
|
+
* cache implementation is active, so the sweep must not be reachable only
|
|
1104
|
+
* through the DB-backed one.
|
|
1105
|
+
*
|
|
1106
|
+
* Deletes batch logs by age, then oldest-first while the directory is over
|
|
1107
|
+
* budget.
|
|
1108
|
+
*
|
|
1109
|
+
* No database rows: nothing looks a batch log up by key, so a row would be
|
|
1110
|
+
* write-only bookkeeping that a hard-killed process could skip, orphaning
|
|
1111
|
+
* the file forever. The filesystem cannot drift from itself, and the file
|
|
1112
|
+
* is appended to for the life of its batch, so a size recorded anywhere
|
|
1113
|
+
* else is wrong until that batch ends.
|
|
1114
|
+
*
|
|
1115
|
+
* The budget is separate from `maxCacheSize` on purpose: these are debug
|
|
1116
|
+
* artifacts, and sharing a budget would let one evict a replayable cache
|
|
1117
|
+
* entry — trading a rebuild for a text file.
|
|
1118
|
+
*
|
|
1119
|
+
* The age sweep deletes at `BATCH_OUTPUT_MAX_AGE`; the eviction skips
|
|
1120
|
+
* anything written within `BATCH_OUTPUT_MIN_EVICTION_AGE`. That is
|
|
1121
|
+
* last-write, not creation, so a batch silent through a long quiet phase is
|
|
1122
|
+
* not protected.
|
|
1123
|
+
*/
|
|
1124
|
+
export declare function sweepBatchOutputs(cachePath: string): void
|
|
1125
|
+
|
|
1126
|
+
/** System information (static system-level data) */
|
|
1127
|
+
export interface SystemInfo {
|
|
1128
|
+
cpuCores: number
|
|
1129
|
+
totalMemory: number
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export interface Target {
|
|
1133
|
+
executor?: string
|
|
1134
|
+
inputs?: Array<InputsInput | string | FileSetInput | RuntimeInput | EnvironmentInput | ExternalDependenciesInput | DepsOutputsInput | WorkingDirectoryInput | JsonInput>
|
|
1135
|
+
outputs?: Array<string>
|
|
1136
|
+
options?: string
|
|
1137
|
+
configurations?: string
|
|
1138
|
+
parallelism?: boolean
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/** A representation of the invocation of an Executor */
|
|
1142
|
+
export interface Task {
|
|
1143
|
+
/** Unique ID */
|
|
1144
|
+
id: string
|
|
1145
|
+
/** Details about which project, target, and configuration to run. */
|
|
1146
|
+
target: TaskTarget
|
|
1147
|
+
/** Overrides for the configured options of the target */
|
|
1148
|
+
overrides: Record<string, unknown>
|
|
1149
|
+
/** The outputs the task may produce */
|
|
1150
|
+
outputs: Array<string>
|
|
1151
|
+
/** Root of the project the task belongs to */
|
|
1152
|
+
projectRoot?: string
|
|
1153
|
+
/** Hash of the task which is used for caching. */
|
|
1154
|
+
hash?: string
|
|
1155
|
+
/** Details about the composition of the hash */
|
|
1156
|
+
hashDetails?: TaskHashDetails
|
|
1157
|
+
/** Unix timestamp of when a Batch Task starts */
|
|
1158
|
+
startTime?: number
|
|
1159
|
+
/** Unix timestamp of when a Batch Task ends */
|
|
1160
|
+
endTime?: number
|
|
1161
|
+
/** Determines if a given task should be cacheable. */
|
|
1162
|
+
cache: boolean
|
|
1163
|
+
/** Determines if a given task should be parallelizable. */
|
|
1164
|
+
parallelism?: boolean
|
|
1165
|
+
/** This denotes if the task runs continuously */
|
|
1166
|
+
continuous?: boolean
|
|
1167
|
+
/** The target's Ultracache settings, if declared */
|
|
1168
|
+
ultracache?: TaskUltracacheSettings
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/** Graph of Tasks to be executed */
|
|
1172
|
+
export interface TaskGraph {
|
|
1173
|
+
/** IDs of Tasks which do not have any dependencies and are thus ready to execute immediately */
|
|
1174
|
+
roots: Array<string>
|
|
1175
|
+
/** Map of Task IDs to Tasks */
|
|
1176
|
+
tasks: Record<string, Task>
|
|
1177
|
+
/** Map of Task IDs to IDs of tasks which the task depends on */
|
|
1178
|
+
dependencies: Record<string, Array<string>>
|
|
1179
|
+
continuousDependencies: Record<string, Array<string>>
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/** Details about the composition of a task's hash */
|
|
1183
|
+
export interface TaskHashDetails {
|
|
1184
|
+
/** Command of the task */
|
|
1185
|
+
command: string
|
|
1186
|
+
/** Hashes of inputs used in the hash */
|
|
1187
|
+
nodes: Record<string, string>
|
|
1188
|
+
/** Hashes of implicit dependencies which are included in the hash */
|
|
1189
|
+
implicitDeps?: Record<string, string>
|
|
1190
|
+
/** Hash of the runtime environment which the task was executed */
|
|
1191
|
+
runtime?: Record<string, string>
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* What reached one task: the files its filesets matched and the packages it
|
|
1196
|
+
* hashes that moved.
|
|
1197
|
+
*/
|
|
1198
|
+
export interface TaskInputMatches {
|
|
1199
|
+
files: Array<InputMatch>
|
|
1200
|
+
/** External node names the plan hashes one by one that moved. */
|
|
1201
|
+
packages: Array<string>
|
|
1202
|
+
/** The plan hashes every external dependency, and one moved. */
|
|
1203
|
+
allExternals: boolean
|
|
1204
|
+
/** Changed config files of the projects whose configuration the plan hashes. */
|
|
1205
|
+
projectConfigs: Array<string>
|
|
1206
|
+
/**
|
|
1207
|
+
* Ecosystems a change moved whole, without naming packages, that the plan
|
|
1208
|
+
* hashes packages of. Reported once rather than per package.
|
|
1209
|
+
*/
|
|
1210
|
+
movedEcosystems: Array<string>
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
export interface TaskOutputs {
|
|
1214
|
+
outputs: Array<string>
|
|
1215
|
+
hash: string
|
|
1216
|
+
/**
|
|
1217
|
+
* Every output file the cache just wrote or restored, which it passes
|
|
1218
|
+
* only when that is all of them. Recorded as given, without reading the
|
|
1219
|
+
* disk.
|
|
1220
|
+
*/
|
|
1221
|
+
files?: Array<OutputFile>
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* The result of a completed Task.
|
|
1226
|
+
*
|
|
1227
|
+
* Task timing information (start and end timestamps) is available
|
|
1228
|
+
* on the Task object itself via `Task.startTime` and `Task.endTime`.
|
|
1229
|
+
*/
|
|
1230
|
+
export interface TaskResult {
|
|
1231
|
+
task: Task
|
|
1232
|
+
status: 'success' | 'failure' | 'skipped' | 'stopped' | 'local-cache-kept-existing' | 'local-cache' | 'remote-cache'
|
|
1233
|
+
code: number
|
|
1234
|
+
terminalOutput?: string
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
export interface TaskRun {
|
|
1238
|
+
hash: string
|
|
1239
|
+
status: string
|
|
1240
|
+
code: number
|
|
1241
|
+
start: number
|
|
1242
|
+
end: number
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
export declare const enum TaskStatus {
|
|
1246
|
+
Success = 0,
|
|
1247
|
+
Failure = 1,
|
|
1248
|
+
Skipped = 2,
|
|
1249
|
+
LocalCacheKeptExisting = 3,
|
|
1250
|
+
LocalCache = 4,
|
|
1251
|
+
RemoteCache = 5,
|
|
1252
|
+
NotStarted = 6,
|
|
1253
|
+
InProgress = 7,
|
|
1254
|
+
Shared = 8,
|
|
1255
|
+
Stopped = 9
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export interface TaskTarget {
|
|
1259
|
+
/** The project for which the task belongs to */
|
|
1260
|
+
project: string
|
|
1261
|
+
/** The target name which the task should invoke */
|
|
1262
|
+
target: string
|
|
1263
|
+
/** The configuration of the target which the task invokes */
|
|
1264
|
+
configuration?: string
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/** Ultracache settings of a task's target */
|
|
1268
|
+
export interface TaskUltracacheSettings {
|
|
1269
|
+
/** How this target's tasks participate. Defaults to `on`. */
|
|
1270
|
+
mode?: 'on' | 'warn' | 'error' | 'off'
|
|
1271
|
+
/**
|
|
1272
|
+
* Workspace-relative glob patterns for reads that should be excluded
|
|
1273
|
+
* from ultracache reports. The first path segment cannot contain `*`,
|
|
1274
|
+
* and `?`, `!`, `[`, `]` and extglobs are not supported; anchor the
|
|
1275
|
+
* pattern to a directory instead of leading with `**`.
|
|
1276
|
+
*/
|
|
1277
|
+
ignoredReads?: Array<string>
|
|
1278
|
+
/**
|
|
1279
|
+
* Workspace-relative glob patterns for writes that should be excluded
|
|
1280
|
+
* from ultracache reports. The first path segment cannot contain `*`,
|
|
1281
|
+
* and `?`, `!`, `[`, `]` and extglobs are not supported; anchor the
|
|
1282
|
+
* pattern to a directory instead of leading with `**`.
|
|
1283
|
+
*/
|
|
1284
|
+
ignoredWrites?: Array<string>
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
export interface TerminalOutputRecord {
|
|
1288
|
+
hash: string
|
|
1289
|
+
/**
|
|
1290
|
+
* Byte length of the terminal output written for this hash, so these
|
|
1291
|
+
* files are counted against `maxCacheSize` like any other cache content.
|
|
1292
|
+
*/
|
|
1293
|
+
size: number
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export declare function testOnlyTransferFileMap(projectFiles: Record<string, Array<FileData>>, nonProjectFiles: Array<FileData>): NxWorkspaceFilesExternals
|
|
1297
|
+
|
|
1298
|
+
/** Track an event using the global telemetry instance */
|
|
1299
|
+
export declare function trackEvent(eventName: string, parameters?: Record<string, string> | undefined | null): void
|
|
1300
|
+
|
|
1301
|
+
/** Track a page view using the global telemetry instance */
|
|
1302
|
+
export declare function trackPageView(pageTitle: string, pageLocation?: string | undefined | null, parameters?: Record<string, string> | undefined | null): void
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Transfer the project graph from the JS world to the Rust world, so that we can pass the project graph via memory quicker
|
|
1306
|
+
* This wont be needed once the project graph is created in Rust
|
|
1307
|
+
*/
|
|
1308
|
+
export declare function transferProjectGraph(projectGraph: ProjectGraph): ExternalObject<ProjectGraph>
|
|
1309
|
+
|
|
1310
|
+
export interface TuiCliArgs {
|
|
1311
|
+
targets?: string[] | undefined
|
|
1312
|
+
tuiAutoExit?: boolean | number | undefined
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
export interface TuiConfig {
|
|
1316
|
+
autoExit?: boolean | number | undefined
|
|
1317
|
+
suppressHints?: boolean
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
/** The Ultracache configurations the Nx Cloud client read for HEAD, as JS hands them over. */
|
|
1321
|
+
export interface UltracacheConfigurationImportOptions {
|
|
1322
|
+
requestedCommit: string
|
|
1323
|
+
/** `Record<taskId, { commit, inputs, outputs }>` as JSON. */
|
|
1324
|
+
configurationsJson: string
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
/** What was resolved for a commit; stored beside its entries. */
|
|
1328
|
+
export interface UltracacheConfigurationResolution {
|
|
1329
|
+
requestedCommit: string
|
|
1330
|
+
fetchedAt: number
|
|
1331
|
+
tasks: number
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Why a task (or the whole run) hashes natively; `reason` is rendered by the
|
|
1336
|
+
* run summary.
|
|
1337
|
+
*/
|
|
1338
|
+
export interface UltracacheDiagnostic {
|
|
1339
|
+
reason: string
|
|
1340
|
+
taskId?: string
|
|
1341
|
+
glob?: string
|
|
1342
|
+
message?: string
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
/** What JS knows about a run's tasks that the eligibility walk needs. */
|
|
1346
|
+
export interface UltracacheEligibilityOptions {
|
|
1347
|
+
/** Tasks whose executor ships a custom hasher. */
|
|
1348
|
+
customHasherTaskIds?: Array<string>
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* How a target's tasks participate in Ultracache. Nx Cloud only: nothing in
|
|
1353
|
+
* the OSS runner records or applies IO, so every mode behaves as `Off` without
|
|
1354
|
+
* it.
|
|
1355
|
+
*/
|
|
1356
|
+
export declare const enum UltracacheMode {
|
|
1357
|
+
/**
|
|
1358
|
+
* Record IO and let the recording stand in for the target's declared
|
|
1359
|
+
* inputs and outputs. The default.
|
|
1360
|
+
*/
|
|
1361
|
+
On = 'on',
|
|
1362
|
+
/**
|
|
1363
|
+
* Record IO and report undeclared reads and writes, but hash and cache
|
|
1364
|
+
* from what the target declared.
|
|
1365
|
+
*/
|
|
1366
|
+
Warn = 'warn',
|
|
1367
|
+
/**
|
|
1368
|
+
* Reserved for failing the task on an undeclared read or write. Nothing
|
|
1369
|
+
* enforces that per target yet, so it behaves as `Warn` today.
|
|
1370
|
+
*/
|
|
1371
|
+
Error = 'error',
|
|
1372
|
+
/** Record nothing, so no report is produced and nothing is applied. */
|
|
1373
|
+
Off = 'off'
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
export interface UltracacheReport {
|
|
1377
|
+
/** Task ids hashed from their Ultracache configuration. */
|
|
1378
|
+
used: Array<string>
|
|
1379
|
+
diagnostics: Array<UltracacheDiagnostic>
|
|
1380
|
+
resolution: UltracacheConfigurationResolution
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
export interface UpdatedWorkspaceFiles {
|
|
1384
|
+
fileMap: FileMap
|
|
1385
|
+
externalReferences: NxWorkspaceFilesExternals
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
export declare function validateOutputs(outputs: Array<string>): void
|
|
1389
|
+
|
|
1390
|
+
export interface WatchEvent {
|
|
1391
|
+
path: string
|
|
1392
|
+
type: EventType
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
export interface WorkingDirectoryInput {
|
|
1396
|
+
workingDirectory: string
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
export interface WorkspaceContextOptions {
|
|
1400
|
+
/**
|
|
1401
|
+
* Keep the files current from a watcher the context owns. Watching
|
|
1402
|
+
* starts before the scan, so nothing written after construction is
|
|
1403
|
+
* missed. Off by default; ignored on wasm, which has no watcher.
|
|
1404
|
+
*/
|
|
1405
|
+
watch?: boolean
|
|
1406
|
+
/**
|
|
1407
|
+
* Paths the watch reports even though a hardcoded ignore covers them,
|
|
1408
|
+
* as the daemon does for its own process file. They reach the event
|
|
1409
|
+
* stream only, never the files: the workspace ignore rules still decide
|
|
1410
|
+
* what enters those.
|
|
1411
|
+
*/
|
|
1412
|
+
alwaysWatch?: Array<string>
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
/** Public NAPI error codes that are for Node */
|
|
1416
|
+
export declare const enum WorkspaceErrors {
|
|
1417
|
+
ParseError = 'ParseError',
|
|
1418
|
+
Generic = 'Generic'
|
|
1419
|
+
}
|