@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,843 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runSingleMigrationWorker = runSingleMigrationWorker;
|
|
4
|
+
const fs_1 = require("fs");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const git_utils_1 = require("../../../utils/git-utils");
|
|
7
|
+
const fileutils_1 = require("../../../utils/fileutils");
|
|
8
|
+
const installation_directory_1 = require("../../../utils/installation-directory");
|
|
9
|
+
const package_json_1 = require("../../../utils/package-json");
|
|
10
|
+
const print_dropped_agent_context_1 = require("../agentic/print-dropped-agent-context");
|
|
11
|
+
const select_1 = require("../agentic/select");
|
|
12
|
+
const types_1 = require("../agentic/types");
|
|
13
|
+
const command_object_1 = require("../command-object");
|
|
14
|
+
const execute_migration_1 = require("../execute-migration");
|
|
15
|
+
const migrate_analytics_1 = require("../migrate-analytics");
|
|
16
|
+
const migrate_commits_1 = require("../migrate-commits");
|
|
17
|
+
const migrate_output_1 = require("../migrate-output");
|
|
18
|
+
const migration_shape_1 = require("../migration-shape");
|
|
19
|
+
const safe_prompt_1 = require("../safe-prompt");
|
|
20
|
+
const run_state_1 = require("./run-state");
|
|
21
|
+
const run_id_1 = require("./run-id");
|
|
22
|
+
const state_machine_1 = require("./state-machine");
|
|
23
|
+
const state_lock_1 = require("./state-lock");
|
|
24
|
+
const util_1 = require("./util");
|
|
25
|
+
const broker_1 = require("./broker");
|
|
26
|
+
const text_1 = require("../text");
|
|
27
|
+
const agent_output_1 = require("./agent-output");
|
|
28
|
+
const agent_work_payload_1 = require("./agent-work-payload");
|
|
29
|
+
const issues_1 = require("./issues");
|
|
30
|
+
async function runSingleMigrationWorker(input) {
|
|
31
|
+
const { root, runMigration, runId, commitPrefix, interactive, skipInstall, isVerbose, } = input;
|
|
32
|
+
// The worker is a second CLI entry point: the run id reaches runDir() (where
|
|
33
|
+
// join resolves '..'), so validate it up front exactly as the orchestrator
|
|
34
|
+
// does before it trusts a run id.
|
|
35
|
+
if (runId !== undefined && !run_id_1.RUN_ID_SAFE.test(runId)) {
|
|
36
|
+
throw new Error(`Invalid run id '${runId}'.`);
|
|
37
|
+
}
|
|
38
|
+
const { migrations, source } = readMigrationsSource(root, runId);
|
|
39
|
+
const migration = resolveMigration(migrations, runMigration, source);
|
|
40
|
+
(0, migrate_analytics_1.reportMigrateSingleMigrationInvocation)({
|
|
41
|
+
migrationType: (0, migration_shape_1.isPromptOnlyMigration)(migration)
|
|
42
|
+
? 'prompt'
|
|
43
|
+
: (0, migration_shape_1.isHybridMigration)(migration)
|
|
44
|
+
? 'hybrid'
|
|
45
|
+
: 'generator',
|
|
46
|
+
orchestrated: !!runId,
|
|
47
|
+
});
|
|
48
|
+
if (runId) {
|
|
49
|
+
// A recorded run takes its commit config from run.json and is driven by
|
|
50
|
+
// the outer agent, so the standalone resolution below doesn't apply. That
|
|
51
|
+
// includes the default-branch confirmation: the run decided once, at init,
|
|
52
|
+
// whether to commit, and asking again would re-prompt on every step.
|
|
53
|
+
await runRecorded(root, runId, migration, skipInstall, isVerbose);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
let agentic;
|
|
57
|
+
try {
|
|
58
|
+
agentic = await (0, select_1.resolveAgentic)({
|
|
59
|
+
agentic: input.agentic,
|
|
60
|
+
migrations: [migration],
|
|
61
|
+
interactive,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
(0, migrate_analytics_1.reportMigrateRunError)({ code: 'agentic', error: e });
|
|
66
|
+
throw e;
|
|
67
|
+
}
|
|
68
|
+
const resolved = (0, migrate_commits_1.resolveCreateCommits)({
|
|
69
|
+
createCommits: input.createCommits,
|
|
70
|
+
mode: agentic.kind,
|
|
71
|
+
isGitRepo: (0, git_utils_1.isGitRepository)(root),
|
|
72
|
+
commitPrefixIsCustom: commitPrefix !== command_object_1.DEFAULT_MIGRATION_COMMIT_PREFIX,
|
|
73
|
+
});
|
|
74
|
+
if (resolved.error) {
|
|
75
|
+
throw new Error(resolved.error);
|
|
76
|
+
}
|
|
77
|
+
if (resolved.warning) {
|
|
78
|
+
(0, agent_output_1.warnToAgent)({ title: resolved.warning });
|
|
79
|
+
}
|
|
80
|
+
const createCommits = resolved.effective;
|
|
81
|
+
if (createCommits &&
|
|
82
|
+
(0, safe_prompt_1.canPrompt)(interactive) &&
|
|
83
|
+
!(await (0, migrate_commits_1.confirmMigrationCommitsOnDefaultBranch)(root, 'running the migration'))) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
await runStandalone(root, migration, {
|
|
87
|
+
agentic,
|
|
88
|
+
createCommits,
|
|
89
|
+
agenticHasDiffContext: resolved.agenticHasDiffContext,
|
|
90
|
+
shouldRunValidation: (0, select_1.resolveShouldRunValidation)({
|
|
91
|
+
validate: input.validate,
|
|
92
|
+
agenticKind: agentic.kind,
|
|
93
|
+
}),
|
|
94
|
+
commitPrefix,
|
|
95
|
+
skipInstall,
|
|
96
|
+
isVerbose,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function readMigrationsSource(root, runId) {
|
|
100
|
+
if (runId) {
|
|
101
|
+
const dir = (0, run_state_1.runDir)(root, runId);
|
|
102
|
+
// A missing run.json would surface a raw ENOENT from readRunState; report
|
|
103
|
+
// it the way the orchestrator does instead, with no remediation: starting
|
|
104
|
+
// a run is a gated entry point of its own.
|
|
105
|
+
if (!(0, run_state_1.hasRunState)(dir)) {
|
|
106
|
+
throw new Error(`No migrate run '${runId}' was found under ${types_1.MIGRATE_RUNS_RELATIVE_DIR}.`);
|
|
107
|
+
}
|
|
108
|
+
// Before the state and plan reads: a concurrent start-fresh must not
|
|
109
|
+
// delete the run while this worker resolves its migration.
|
|
110
|
+
(0, state_lock_1.holdRunActivity)(root, runId);
|
|
111
|
+
// Version refusal (NewerRunStateFormatError) propagates.
|
|
112
|
+
const state = (0, run_state_1.readRunState)(dir);
|
|
113
|
+
const round = (0, state_machine_1.latestRound)(state);
|
|
114
|
+
if (!round) {
|
|
115
|
+
throw new Error(`The migrate run '${runId}' has no recorded plan, so there is no migration to run.`);
|
|
116
|
+
}
|
|
117
|
+
// Safe to join and to name in the error below only because the read
|
|
118
|
+
// refuses any planSnapshot that is not a bare `plan-<round>.json`.
|
|
119
|
+
const planPath = (0, path_1.join)(dir, round.planSnapshot);
|
|
120
|
+
if (!(0, fs_1.existsSync)(planPath)) {
|
|
121
|
+
throw new Error(`The plan snapshot '${round.planSnapshot}' for migrate run '${runId}' doesn't exist, can't run the migration.`);
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
migrations: readPlanMigrations(planPath),
|
|
125
|
+
source: round.planSnapshot,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
const migrationsPath = (0, path_1.join)(root, 'migrations.json');
|
|
129
|
+
if (!(0, fs_1.existsSync)(migrationsPath)) {
|
|
130
|
+
throw new Error(`File 'migrations.json' doesn't exist, can't run the migration. Run \`${(0, util_1.pmExecPrefix)(root)} nx migrate\` to generate it first.`);
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
migrations: readPlanMigrations(migrationsPath),
|
|
134
|
+
source: 'migrations.json',
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function readPlanMigrations(path) {
|
|
138
|
+
return ((0, fileutils_1.readJsonFile)(path).migrations ?? []);
|
|
139
|
+
}
|
|
140
|
+
function resolveMigration(migrations, id, source) {
|
|
141
|
+
// Split on the first ':' only, so a name that itself contains one survives.
|
|
142
|
+
const colon = id.indexOf(':');
|
|
143
|
+
const matches = colon === -1
|
|
144
|
+
? migrations.filter((m) => m.name === id)
|
|
145
|
+
: migrations.filter((m) => m.package === id.slice(0, colon) && m.name === id.slice(colon + 1));
|
|
146
|
+
if (matches.length === 0) {
|
|
147
|
+
throw new Error(`No migration matching '${id}' was found in ${source}.`);
|
|
148
|
+
}
|
|
149
|
+
if (matches.length > 1) {
|
|
150
|
+
throw new Error([
|
|
151
|
+
`More than one migration matches '${id}' in ${source}. Re-run with the full '<package>:<name>' id:`,
|
|
152
|
+
...matches.map((m) => ` - ${m.package}:${m.name}`),
|
|
153
|
+
].join('\n'));
|
|
154
|
+
}
|
|
155
|
+
return matches[0];
|
|
156
|
+
}
|
|
157
|
+
async function runStandalone(root, migration, opts) {
|
|
158
|
+
const { agentic, createCommits, commitPrefix, skipInstall, isVerbose } = opts;
|
|
159
|
+
// Standalone never writes run state. Warn (don't block) when an orchestrated
|
|
160
|
+
// run is active so the user knows this execution won't be recorded into it.
|
|
161
|
+
// A newer-nx run dir must not hard-block this stateless path (the fail-closed
|
|
162
|
+
// refusal in run-state.ts targets run-starting callers); tolerate it and skip
|
|
163
|
+
// the warning. A failed scan can't block it either, but gets a warning of its
|
|
164
|
+
// own: an active run may exist that this execution silently won't record into.
|
|
165
|
+
let active;
|
|
166
|
+
try {
|
|
167
|
+
active = (0, run_state_1.findActiveRun)(root).active;
|
|
168
|
+
}
|
|
169
|
+
catch (e) {
|
|
170
|
+
if (!(e instanceof run_state_1.NewerRunStateFormatError)) {
|
|
171
|
+
(0, agent_output_1.warnToAgent)({
|
|
172
|
+
title: `Could not check for an active migrate run: ${e instanceof Error ? e.message : e}`,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
active = null;
|
|
176
|
+
}
|
|
177
|
+
if (active) {
|
|
178
|
+
(0, agent_output_1.warnToAgent)({
|
|
179
|
+
title: `This migration won't be recorded into the active migrate run '${active.runId}'.`,
|
|
180
|
+
bodyLines: [
|
|
181
|
+
`Pass --run-id=${active.runId} to record it into that run instead.`,
|
|
182
|
+
],
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
if ((0, migration_shape_1.isPromptOnlyMigration)(migration)) {
|
|
186
|
+
if (agentic.kind !== 'enabled') {
|
|
187
|
+
// No agent to apply the prompt, so nothing runs: no checkpoint, no
|
|
188
|
+
// commit.
|
|
189
|
+
emitOrPrintPrompt(root, migration, agentic.kind);
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
// Checkpoint pre-existing working-tree state first, or the migration
|
|
193
|
+
// commit's `git add -A` folds it in.
|
|
194
|
+
if (createCommits) {
|
|
195
|
+
(0, migrate_commits_1.commitCheckpointBeforeMigrations)(root, commitPrefix);
|
|
196
|
+
}
|
|
197
|
+
const agenticRun = await prepareAgenticRun(root, migration, agentic, createCommits, commitPrefix);
|
|
198
|
+
const installer = new execute_migration_1.ChangedDepInstaller(root, skipInstall, (0, execute_migration_1.formatSingleMigrationRerunCommand)(`${migration.package}:${migration.name}`));
|
|
199
|
+
const installDepsIfChanged = () => installer.installDepsIfChanged();
|
|
200
|
+
const stepResult = await runAgenticStep(agenticRun, {
|
|
201
|
+
root,
|
|
202
|
+
migration,
|
|
203
|
+
installDepsIfChanged,
|
|
204
|
+
documentationPath: resolveDocumentationPath(root, migration),
|
|
205
|
+
});
|
|
206
|
+
await commitAndLogAgenticOutcome({
|
|
207
|
+
root,
|
|
208
|
+
migration,
|
|
209
|
+
createCommits,
|
|
210
|
+
commitPrefix,
|
|
211
|
+
installDepsIfChanged,
|
|
212
|
+
successLabel: 'Applied',
|
|
213
|
+
stepResult,
|
|
214
|
+
});
|
|
215
|
+
if (installer.skippedInstall) {
|
|
216
|
+
(0, execute_migration_1.logSkippedPostMigrationInstall)(root);
|
|
217
|
+
}
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
if (createCommits) {
|
|
221
|
+
(0, migrate_commits_1.commitCheckpointBeforeMigrations)(root, commitPrefix);
|
|
222
|
+
}
|
|
223
|
+
const agenticRun = agentic.kind === 'enabled'
|
|
224
|
+
? await prepareAgenticRun(root, migration, agentic, createCommits, commitPrefix)
|
|
225
|
+
: undefined;
|
|
226
|
+
const installer = new execute_migration_1.ChangedDepInstaller(root, skipInstall, (0, execute_migration_1.formatSingleMigrationRerunCommand)(`${migration.package}:${migration.name}`));
|
|
227
|
+
const installDepsIfChanged = () => installer.installDepsIfChanged();
|
|
228
|
+
const validationRun = agenticRun && opts.shouldRunValidation ? agenticRun : undefined;
|
|
229
|
+
const resolvedCollection = (0, execute_migration_1.readMigrationCollection)(migration.package, root);
|
|
230
|
+
const { changes, nextSteps, agentContext, skipAgentic, logs, madeChanges } = await (0, execute_migration_1.runNxOrAngularMigration)(root, migration, isVerbose, (0, migration_shape_1.isHybridMigration)(migration) || !!validationRun, resolvedCollection);
|
|
231
|
+
// Whether an AI step was on the table for `skipAgentic` to waive. A hybrid
|
|
232
|
+
// owes its prompt in every agentic mode; a generator-only migration owes
|
|
233
|
+
// only the validation pass, and only where one would have run.
|
|
234
|
+
const validationApplies = !!validationRun && changes.length > 0;
|
|
235
|
+
const waivedAgenticStep = skipAgentic && ((0, migration_shape_1.isHybridMigration)(migration) || validationApplies);
|
|
236
|
+
if ((0, migration_shape_1.isHybridMigration)(migration) && agenticRun && !skipAgentic) {
|
|
237
|
+
// The prompt half may need the deps the generator half added, so install
|
|
238
|
+
// before the agent runs.
|
|
239
|
+
await installDepsIfChanged();
|
|
240
|
+
const stepResult = await runAgenticStep(agenticRun, {
|
|
241
|
+
root,
|
|
242
|
+
migration,
|
|
243
|
+
installDepsIfChanged,
|
|
244
|
+
documentationPath: resolveDocumentationPath(root, migration, resolvedCollection),
|
|
245
|
+
implContext: {
|
|
246
|
+
logs,
|
|
247
|
+
changes,
|
|
248
|
+
agentContext,
|
|
249
|
+
// No prior migrations run here, so unlike the classic loop there is no
|
|
250
|
+
// pending-commit debt to suppress the git-inspect context for.
|
|
251
|
+
hasDiffContext: opts.agenticHasDiffContext,
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
await commitAndLogAgenticOutcome({
|
|
255
|
+
root,
|
|
256
|
+
migration,
|
|
257
|
+
createCommits,
|
|
258
|
+
commitPrefix,
|
|
259
|
+
installDepsIfChanged,
|
|
260
|
+
successLabel: 'Applied',
|
|
261
|
+
stepResult,
|
|
262
|
+
});
|
|
263
|
+
if (installer.skippedInstall) {
|
|
264
|
+
(0, execute_migration_1.logSkippedPostMigrationInstall)(root);
|
|
265
|
+
}
|
|
266
|
+
printNextSteps(migration, nextSteps);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
if (validationApplies && !skipAgentic) {
|
|
270
|
+
// Commit after validation: a failed validation throws, leaving the changes
|
|
271
|
+
// in the working tree for review.
|
|
272
|
+
await installDepsIfChanged();
|
|
273
|
+
const stepResult = await runAgenticStep(validationRun, {
|
|
274
|
+
root,
|
|
275
|
+
migration,
|
|
276
|
+
installDepsIfChanged,
|
|
277
|
+
documentationPath: resolveDocumentationPath(root, migration, resolvedCollection),
|
|
278
|
+
implContext: {
|
|
279
|
+
logs,
|
|
280
|
+
changes,
|
|
281
|
+
agentContext,
|
|
282
|
+
hasDiffContext: opts.agenticHasDiffContext,
|
|
283
|
+
},
|
|
284
|
+
mode: 'generic-validation',
|
|
285
|
+
});
|
|
286
|
+
await commitAndLogAgenticOutcome({
|
|
287
|
+
root,
|
|
288
|
+
migration,
|
|
289
|
+
createCommits,
|
|
290
|
+
commitPrefix,
|
|
291
|
+
installDepsIfChanged,
|
|
292
|
+
successLabel: 'Validation passed',
|
|
293
|
+
stepResult,
|
|
294
|
+
});
|
|
295
|
+
if (installer.skippedInstall) {
|
|
296
|
+
(0, execute_migration_1.logSkippedPostMigrationInstall)(root);
|
|
297
|
+
}
|
|
298
|
+
printNextSteps(migration, nextSteps);
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
if (waivedAgenticStep) {
|
|
302
|
+
(0, migrate_output_1.logWaivedAgenticStep)(migration, agentContext);
|
|
303
|
+
}
|
|
304
|
+
else if (!(0, migration_shape_1.isHybridMigration)(migration)) {
|
|
305
|
+
forwardDroppedAgentContext(migration, agentContext, agentic.kind);
|
|
306
|
+
}
|
|
307
|
+
// A no-op migration must not build a commit whose `git add -A` absorbs
|
|
308
|
+
// unrelated pending diffs under its name. The commit path installs deps
|
|
309
|
+
// itself, so the else branch does it here instead.
|
|
310
|
+
if (createCommits && madeChanges) {
|
|
311
|
+
await attemptStandaloneCommit(root, migration, createCommits, commitPrefix, installDepsIfChanged);
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
await installer.installDepsIfChanged();
|
|
315
|
+
}
|
|
316
|
+
if (installer.skippedInstall) {
|
|
317
|
+
(0, execute_migration_1.logSkippedPostMigrationInstall)(root);
|
|
318
|
+
}
|
|
319
|
+
printNextSteps(migration, nextSteps);
|
|
320
|
+
// A waived prompt is not deferred, so it gets no hand-off to an outer agent
|
|
321
|
+
// and no "apply this manually" block for the user either.
|
|
322
|
+
if ((0, migration_shape_1.isHybridMigration)(migration) && !skipAgentic) {
|
|
323
|
+
emitOrPrintPrompt(root, migration, agentic.kind, {
|
|
324
|
+
impl: {
|
|
325
|
+
logs,
|
|
326
|
+
changes,
|
|
327
|
+
agentContext,
|
|
328
|
+
},
|
|
329
|
+
resolvedCollection,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
async function runRecorded(root, runId, migration, skipInstall, isVerbose) {
|
|
334
|
+
const dir = (0, run_state_1.runDir)(root, runId);
|
|
335
|
+
// Version refusal (NewerRunStateFormatError) propagates.
|
|
336
|
+
let state = (0, run_state_1.readRunState)(dir);
|
|
337
|
+
// A recorded run never resolves the agentic flow: the outer agent drives it,
|
|
338
|
+
// and the dispensed command is part of the orchestrated protocol whoever
|
|
339
|
+
// re-runs it. Gating the block on ambient agent detection would park the
|
|
340
|
+
// step awaiting an outcome whose payload was never emitted.
|
|
341
|
+
const agenticKind = 'inside-agent';
|
|
342
|
+
const migrationId = `${migration.package}:${migration.name}`;
|
|
343
|
+
// The plan was read from the latest round's snapshot, so only that round's
|
|
344
|
+
// step may match; a same-id step from an older round must not.
|
|
345
|
+
const latest = (0, state_machine_1.latestRound)(state);
|
|
346
|
+
const step = state.steps.find((s) => s.kind === 'migration' &&
|
|
347
|
+
s.migrationId === migrationId &&
|
|
348
|
+
s.roundIndex === latest?.index);
|
|
349
|
+
if (!step) {
|
|
350
|
+
throw new Error(`The migrate run '${runId}' has no step for migration '${migrationId}'.`);
|
|
351
|
+
}
|
|
352
|
+
// Validated against the fresh disk state: a second worker racing the same
|
|
353
|
+
// dispensed step reads 'running' here and aborts before the engine runs.
|
|
354
|
+
state = transition(dir, {
|
|
355
|
+
type: 'start',
|
|
356
|
+
stepId: step.id,
|
|
357
|
+
pid: process.pid,
|
|
358
|
+
startedAt: (0, util_1.nowIso)(),
|
|
359
|
+
});
|
|
360
|
+
// A prior attempt's generator half already ran, so this attempt must not
|
|
361
|
+
// reapply it against a tree that already holds its changes. Read from the
|
|
362
|
+
// state the start transition returned, not the entry snapshot: a delayed
|
|
363
|
+
// invocation may have claimed a later attempt whose flag `step` predates.
|
|
364
|
+
const startedStep = state.steps.find((s) => s.id === step.id);
|
|
365
|
+
const generatorAlreadyCompleted = startedStep.generatorCompleted === true;
|
|
366
|
+
// Dispensed worker commands never carry the user's flags, so the run records
|
|
367
|
+
// its install policy. An explicit --skip-install here applies only to the
|
|
368
|
+
// installs this process runs itself; a parent session answers from its own.
|
|
369
|
+
const effectiveSkipInstall = state.skipInstall === true || skipInstall;
|
|
370
|
+
// The run records the resolved validation policy at init; absent (a state
|
|
371
|
+
// predating the field) falls back to the same default init applies.
|
|
372
|
+
const shouldValidate = state.validate !== false;
|
|
373
|
+
// The tree reservation an in-process install or commit takes is held until
|
|
374
|
+
// the transition that records this attempt's outcome is written.
|
|
375
|
+
const scope = {};
|
|
376
|
+
// Called before a retry hands the step's work back: the prompt or validation
|
|
377
|
+
// may need the dependencies the earlier attempt's generator added.
|
|
378
|
+
const reinstallFromBaseline = () => (0, broker_1.installStepTree)(dir, startedStep, 'install', () => recordingInstallFailure(dir, step.id, () => (0, util_1.installDepsChangedSinceDispense)(root, dir, startedStep, effectiveSkipInstall, `${(0, execute_migration_1.formatSingleMigrationRerunCommand)(migrationId)} --run-id=${runId}`)), scope);
|
|
379
|
+
let outcome;
|
|
380
|
+
let awaitingKind;
|
|
381
|
+
const payloadPath = (0, agent_work_payload_1.agentWorkPayloadPath)(dir, step.id, startedStep.attempt);
|
|
382
|
+
try {
|
|
383
|
+
try {
|
|
384
|
+
if ((0, migration_shape_1.isPromptOnlyMigration)(migration)) {
|
|
385
|
+
emitOrPrintPrompt(root, migration, agenticKind, {
|
|
386
|
+
persistPath: payloadPath,
|
|
387
|
+
});
|
|
388
|
+
awaitingKind = 'migration-prompt';
|
|
389
|
+
}
|
|
390
|
+
else if (generatorAlreadyCompleted &&
|
|
391
|
+
startedStep.agenticWaived !== true &&
|
|
392
|
+
(0, migration_shape_1.isHybridMigration)(migration)) {
|
|
393
|
+
await reinstallFromBaseline();
|
|
394
|
+
const carried = (0, agent_work_payload_1.latestStoredAgentWorkPayload)(dir, step.id, startedStep.attempt, startedStep.generatorCompletedAtAttempt, {
|
|
395
|
+
migrationId,
|
|
396
|
+
kind: 'migration-prompt',
|
|
397
|
+
promptPath: migration.prompt,
|
|
398
|
+
});
|
|
399
|
+
if (carried) {
|
|
400
|
+
reemitCarriedAgentWork(migrationId, 'migration-prompt', payloadPath, carried);
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
emitOrPrintPrompt(root, migration, agenticKind, {
|
|
404
|
+
persistPath: payloadPath,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
awaitingKind = 'migration-prompt';
|
|
408
|
+
}
|
|
409
|
+
else if (generatorAlreadyCompleted &&
|
|
410
|
+
startedStep.validationOwed === true) {
|
|
411
|
+
// The flag is the only record that these changes still owe a validation
|
|
412
|
+
// pass; the decision needed the generator result, which is gone with the
|
|
413
|
+
// attempt that made it. The commit stays with the fold.
|
|
414
|
+
await reinstallFromBaseline();
|
|
415
|
+
const carried = (0, agent_work_payload_1.latestStoredAgentWorkPayload)(dir, step.id, startedStep.attempt, startedStep.generatorCompletedAtAttempt, { migrationId, kind: 'generator-validation' });
|
|
416
|
+
if (carried) {
|
|
417
|
+
reemitCarriedAgentWork(migrationId, 'generator-validation', payloadPath, carried);
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
emitValidationBlock(root, migration, undefined, {
|
|
421
|
+
persistPath: payloadPath,
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
awaitingKind = 'generator-validation';
|
|
425
|
+
}
|
|
426
|
+
else if (generatorAlreadyCompleted) {
|
|
427
|
+
state = await finishCompletedGenerator(dir, root, state, startedStep, migration, effectiveSkipInstall, runId, scope);
|
|
428
|
+
outcome = buildOutcome([], [], 'The generator ran in an earlier attempt; this attempt completed its install and commit.', root);
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
const installer = new execute_migration_1.ChangedDepInstaller(root, effectiveSkipInstall, `${(0, execute_migration_1.formatSingleMigrationRerunCommand)(migrationId)} --run-id=${runId}`);
|
|
432
|
+
// Read once; the run and the hybrid documentation resolution share it.
|
|
433
|
+
const resolvedCollection = (0, execute_migration_1.readMigrationCollection)(migration.package, root);
|
|
434
|
+
const { changes, nextSteps, agentContext, skipAgentic, logs, madeChanges, } = await (0, execute_migration_1.runNxOrAngularMigration)(root, migration, isVerbose,
|
|
435
|
+
// Captured whenever an agent step may consume it: a hybrid's prompt
|
|
436
|
+
// payload, or the validation pass over the generator's changes.
|
|
437
|
+
(0, migration_shape_1.isHybridMigration)(migration) || shouldValidate, resolvedCollection);
|
|
438
|
+
// Mirrors the classic loop's waiver semantics (migrate.ts): the two must
|
|
439
|
+
// agree on when an AI step was owed for skipAgentic to waive.
|
|
440
|
+
const validationApplies = shouldValidate && !(0, migration_shape_1.isHybridMigration)(migration) && changes.length > 0;
|
|
441
|
+
const waivedAgenticStep = skipAgentic && ((0, migration_shape_1.isHybridMigration)(migration) || validationApplies);
|
|
442
|
+
const validationOwed = validationApplies && !waivedAgenticStep;
|
|
443
|
+
const promptOwed = (0, migration_shape_1.isHybridMigration)(migration) && !waivedAgenticStep;
|
|
444
|
+
// Recorded before the commit is attempted: from here on the changes are
|
|
445
|
+
// in the tree, so a failed install or commit must leave a retry with
|
|
446
|
+
// only those left to do rather than running the generator again.
|
|
447
|
+
state = transition(dir, {
|
|
448
|
+
type: 'markGeneratorCompleted',
|
|
449
|
+
stepId: step.id,
|
|
450
|
+
agenticWaived: waivedAgenticStep,
|
|
451
|
+
validationOwed,
|
|
452
|
+
madeChanges,
|
|
453
|
+
});
|
|
454
|
+
if (waivedAgenticStep) {
|
|
455
|
+
(0, migrate_output_1.logWaivedAgenticStep)(migration, agentContext);
|
|
456
|
+
}
|
|
457
|
+
else if (!(0, migration_shape_1.isHybridMigration)(migration) && !validationApplies) {
|
|
458
|
+
forwardDroppedAgentContext(migration, agentContext, agenticKind);
|
|
459
|
+
}
|
|
460
|
+
// Stored before the install: a failed install fails the attempt, and
|
|
461
|
+
// the retry re-hands this payload instead of a context-free one.
|
|
462
|
+
const impl = { logs, changes, agentContext };
|
|
463
|
+
const owed = validationOwed
|
|
464
|
+
? validationPayload(root, migration, impl, resolvedCollection)
|
|
465
|
+
: promptOwed
|
|
466
|
+
? promptPayload(root, migration, impl, resolvedCollection)
|
|
467
|
+
: undefined;
|
|
468
|
+
if (owed) {
|
|
469
|
+
(0, agent_work_payload_1.persistAgentWorkPayload)(payloadPath, owed);
|
|
470
|
+
}
|
|
471
|
+
const install = () => recordingInstallFailure(dir, step.id, () => installer.installDepsIfChanged());
|
|
472
|
+
// A no-op step's commit would absorb prior pending diffs under its name;
|
|
473
|
+
// a step handing work back defers its commit to the fold, so the
|
|
474
|
+
// migration still lands as one commit. The install runs either way: the
|
|
475
|
+
// agent may run tasks that need what the generator added.
|
|
476
|
+
if (state.createCommits &&
|
|
477
|
+
madeChanges &&
|
|
478
|
+
!validationOwed &&
|
|
479
|
+
!promptOwed) {
|
|
480
|
+
state = await commitStepChanges(dir, root, state, startedStep, migration, install, scope);
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
await (0, broker_1.installStepTree)(dir, startedStep, 'install', install, scope);
|
|
484
|
+
}
|
|
485
|
+
if (installer.skippedInstall) {
|
|
486
|
+
(0, execute_migration_1.logSkippedPostMigrationInstall)(root);
|
|
487
|
+
}
|
|
488
|
+
else if (installer.installed) {
|
|
489
|
+
(0, util_1.recordInstallLanded)(root, dir, step.id);
|
|
490
|
+
}
|
|
491
|
+
printNextSteps(migration, nextSteps);
|
|
492
|
+
if (validationOwed) {
|
|
493
|
+
emitValidationPayload(migrationId, owed);
|
|
494
|
+
awaitingKind = 'generator-validation';
|
|
495
|
+
}
|
|
496
|
+
else if (promptOwed) {
|
|
497
|
+
emitPromptForOuterAgent(migrationId, owed, true);
|
|
498
|
+
awaitingKind = 'migration-prompt';
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
outcome = buildOutcome(changes, nextSteps, migration.description, root);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
catch (e) {
|
|
506
|
+
// Another attempt owns the step, and `fail` is not attempt-bound.
|
|
507
|
+
if (e instanceof broker_1.BrokerStaleRequestError)
|
|
508
|
+
throw e;
|
|
509
|
+
// The failed-step dispense surfaces this so the agent can decide
|
|
510
|
+
// retry-vs-skip; carry the error's first line, not a full stack.
|
|
511
|
+
transition(dir, {
|
|
512
|
+
type: 'fail',
|
|
513
|
+
stepId: step.id,
|
|
514
|
+
finishedAt: (0, util_1.nowIso)(),
|
|
515
|
+
outcome: { summary: (0, util_1.summarizeError)(e) },
|
|
516
|
+
});
|
|
517
|
+
throw e;
|
|
518
|
+
}
|
|
519
|
+
// Handed-back work is applied by a separate actor, so parking exits
|
|
520
|
+
// successfully rather than failing the step.
|
|
521
|
+
if (awaitingKind !== undefined) {
|
|
522
|
+
transition(dir, {
|
|
523
|
+
type: 'awaitPromptOutcome',
|
|
524
|
+
stepId: step.id,
|
|
525
|
+
finishedAt: (0, util_1.nowIso)(),
|
|
526
|
+
awaitingKind,
|
|
527
|
+
});
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
transition(dir, {
|
|
531
|
+
type: 'succeed',
|
|
532
|
+
stepId: step.id,
|
|
533
|
+
finishedAt: (0, util_1.nowIso)(),
|
|
534
|
+
...(outcome ? { outcome } : {}),
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
finally {
|
|
538
|
+
scope.lease?.release();
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
// Applies a step event to the freshest on-disk state under the lock, writes it,
|
|
542
|
+
// and returns it. Reading fresh is what makes a racing worker's 'start' see the
|
|
543
|
+
// step already 'running' and abort. An illegal transition (e.g. a step that was
|
|
544
|
+
// never dispensed) fails with the state machine's own reason.
|
|
545
|
+
function transition(dir, event) {
|
|
546
|
+
return (0, state_lock_1.updateRunState)(dir, (fresh) => {
|
|
547
|
+
const result = (0, state_machine_1.applyStepEvent)(fresh, event);
|
|
548
|
+
if (result.kind === 'error') {
|
|
549
|
+
throw new Error(`Cannot record this migration into the run: ${result.reason}`);
|
|
550
|
+
}
|
|
551
|
+
return result.state;
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
// Records a dependency install failure on the step before letting it fail the
|
|
555
|
+
// attempt. The 'failed' status says this attempt did not finish, not that the
|
|
556
|
+
// workspace's dependencies are missing, and the two part ways as soon as the
|
|
557
|
+
// agent skips the step or a later step's commit absorbs its diff: either one
|
|
558
|
+
// completes the run with node_modules stale and nothing left to warn about.
|
|
559
|
+
async function recordingInstallFailure(dir, stepId, install) {
|
|
560
|
+
try {
|
|
561
|
+
return await install();
|
|
562
|
+
}
|
|
563
|
+
catch (e) {
|
|
564
|
+
(0, state_lock_1.updateRunState)(dir, (fresh) => (0, state_machine_1.markInstallFailed)(fresh, stepId));
|
|
565
|
+
throw e;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
// Finishes a step whose generator ran in an earlier attempt that then failed
|
|
569
|
+
// on the install or the commit. The generator's changes are already in the
|
|
570
|
+
// tree, so only those two are left, and the install compares against the
|
|
571
|
+
// step's persisted baseline rather than against what that generator wrote.
|
|
572
|
+
async function finishCompletedGenerator(dir, root, state, step, migration, skipInstall, runId, scope) {
|
|
573
|
+
const migrationId = `${migration.package}:${migration.name}`;
|
|
574
|
+
const installDeps = () => recordingInstallFailure(dir, step.id, () => (0, util_1.installDepsChangedSinceDispense)(root, dir, step, skipInstall, `${(0, execute_migration_1.formatSingleMigrationRerunCommand)(migrationId)} --run-id=${runId}`));
|
|
575
|
+
// Same no-op guard as the first attempt. Only an explicit false skips the
|
|
576
|
+
// commit: absent means an older nx wrote the marker without recording the
|
|
577
|
+
// answer, and the commit is kept as that version's retries did.
|
|
578
|
+
if (!state.createCommits || step.generatorMadeChanges === false) {
|
|
579
|
+
await (0, broker_1.installStepTree)(dir, step, 'install', installDeps, scope);
|
|
580
|
+
return state;
|
|
581
|
+
}
|
|
582
|
+
return commitStepChanges(dir, root, state, step, migration, installDeps, scope);
|
|
583
|
+
}
|
|
584
|
+
// Installs what the step changed, commits it, and records the result in the
|
|
585
|
+
// ledger, shared by a step's first attempt and by one that only has the commit
|
|
586
|
+
// left to do. The absorbed step ids are computed before the commit so the
|
|
587
|
+
// ledger entry and the commit body name the same ones.
|
|
588
|
+
async function commitStepChanges(dir, root, state, step, migration, installDeps, scope) {
|
|
589
|
+
const absorbedStepIds = (0, state_machine_1.uncoveredFailedStepIds)(state).filter((id) => id !== step.id);
|
|
590
|
+
let commit;
|
|
591
|
+
try {
|
|
592
|
+
commit = await (0, broker_1.commitStepTree)(dir, step, absorbedStepIds, () => (0, migrate_commits_1.commitMigrationIfRequested)(root, migration, true, state.commitPrefix, installDeps, (0, state_machine_1.stepsToPendingMigrations)(state, absorbedStepIds)), scope);
|
|
593
|
+
}
|
|
594
|
+
catch (commitError) {
|
|
595
|
+
// Nothing ran for a stale or refused request, so there is no debt.
|
|
596
|
+
if (commitError instanceof broker_1.BrokerStaleRequestError ||
|
|
597
|
+
commitError instanceof broker_1.TreeBusyError) {
|
|
598
|
+
throw commitError;
|
|
599
|
+
}
|
|
600
|
+
// The install failed, or the session ended unanswered and the commit may
|
|
601
|
+
// or may not have landed; record the debt until a landed entry covers it.
|
|
602
|
+
recordCommitEntry(dir, { kind: 'failed', stepIds: [step.id] });
|
|
603
|
+
throw commitError;
|
|
604
|
+
}
|
|
605
|
+
if (commit.result.status === 'failed') {
|
|
606
|
+
(0, util_1.warnCommitFailed)(migration.name);
|
|
607
|
+
}
|
|
608
|
+
const entry = (0, state_machine_1.commitResultToLedgerEntry)(commit.result, step.id, commit.absorbedStepIds);
|
|
609
|
+
// A session's parent records what it commits itself, receipt included.
|
|
610
|
+
return entry && !commit.recorded ? recordCommitEntry(dir, entry) : state;
|
|
611
|
+
}
|
|
612
|
+
// The git commit itself already ran outside the lock; only this pure append is
|
|
613
|
+
// locked. A landed entry carries the resolved issues of every step it names,
|
|
614
|
+
// same as the orchestrator's fold and adopt appends: an absorbed step's
|
|
615
|
+
// resolutions would otherwise land unattached.
|
|
616
|
+
function recordCommitEntry(dir, entry) {
|
|
617
|
+
return (0, state_lock_1.updateRunState)(dir, (fresh) => (0, state_machine_1.appendCommit)(fresh, (0, issues_1.attachIssueIdsToCommitEntry)(fresh, entry)));
|
|
618
|
+
}
|
|
619
|
+
function buildOutcome(changes, nextSteps, description, root) {
|
|
620
|
+
const outcome = {};
|
|
621
|
+
if (changes.length > 0) {
|
|
622
|
+
outcome.fileChanges = changes.map((c) => c.path);
|
|
623
|
+
}
|
|
624
|
+
// Non-git repos have no HEAD; omit rather than record a placeholder.
|
|
625
|
+
const gitRefAfter = (0, git_utils_1.getLatestCommitSha)(root);
|
|
626
|
+
if (gitRefAfter) {
|
|
627
|
+
outcome.gitRefAfter = gitRefAfter;
|
|
628
|
+
}
|
|
629
|
+
if (nextSteps.length > 0) {
|
|
630
|
+
outcome.nextSteps = nextSteps;
|
|
631
|
+
}
|
|
632
|
+
if (description) {
|
|
633
|
+
outcome.summary = description;
|
|
634
|
+
}
|
|
635
|
+
return outcome;
|
|
636
|
+
}
|
|
637
|
+
// Only `run-step` is actually deferred by these requires, and it is the one
|
|
638
|
+
// worth deferring: it pulls in the prompt builders, which nothing but an
|
|
639
|
+
// enabled agentic flow needs. The other two are loaded either way, since the
|
|
640
|
+
// `run/` barrel every caller comes through re-exports `orchestrator.ts`, which
|
|
641
|
+
// imports both statically.
|
|
642
|
+
async function prepareAgenticRun(root, migration, agentic, effectiveCreateCommits, commitPrefix) {
|
|
643
|
+
const { applyAgenticHandoffGitignoreFallback } = require('../agentic/handoff-gitignore');
|
|
644
|
+
const { packageJson: nxPackageJson } = (0, package_json_1.readModulePackageJson)('nx', (0, installation_directory_1.getNxRequirePaths)(root));
|
|
645
|
+
await applyAgenticHandoffGitignoreFallback({
|
|
646
|
+
migrations: [migration],
|
|
647
|
+
installedNxVersion: nxPackageJson.version,
|
|
648
|
+
effectiveCreateCommits,
|
|
649
|
+
commitPrefix,
|
|
650
|
+
root,
|
|
651
|
+
});
|
|
652
|
+
const { initRunDir, resolveAgenticRunId } = require('../agentic/handoff');
|
|
653
|
+
const { runAgenticPromptStep } = require('../agentic/run-step');
|
|
654
|
+
return {
|
|
655
|
+
agentic,
|
|
656
|
+
runDir: initRunDir(root, resolveAgenticRunId([migration])),
|
|
657
|
+
runStep: runAgenticPromptStep,
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
async function runAgenticStep(agenticRun, input) {
|
|
661
|
+
try {
|
|
662
|
+
return await agenticRun.runStep({
|
|
663
|
+
...input,
|
|
664
|
+
agentic: agenticRun.agentic,
|
|
665
|
+
runDir: agenticRun.runDir,
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
catch (e) {
|
|
669
|
+
(0, migrate_analytics_1.reportMigrateRunError)({
|
|
670
|
+
code: 'agentic',
|
|
671
|
+
migrationPackage: input.migration.package,
|
|
672
|
+
migrationName: input.migration.name,
|
|
673
|
+
error: e,
|
|
674
|
+
});
|
|
675
|
+
throw e;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
// A standalone run has no later commit or end-of-run recap to absorb a failed
|
|
679
|
+
// commit's diff, so it passes its own guidance instead of the default.
|
|
680
|
+
// `commitMigrationIfRequested` logs a failed commit itself with that guidance.
|
|
681
|
+
function attemptStandaloneCommit(root, migration, createCommits, commitPrefix, installDepsIfChanged) {
|
|
682
|
+
return (0, migrate_commits_1.commitMigrationIfRequested)(root, migration, createCommits, commitPrefix, installDepsIfChanged, [], 'Commit or revert any remaining uncommitted changes manually.');
|
|
683
|
+
}
|
|
684
|
+
async function commitAndLogAgenticOutcome(args) {
|
|
685
|
+
const commit = await attemptStandaloneCommit(args.root, args.migration, args.createCommits, args.commitPrefix, args.installDepsIfChanged);
|
|
686
|
+
(0, migrate_output_1.logAgenticSuccessOutcome)(args.stepResult.ambiguous ? 'Marked complete by user' : args.successLabel, commit.status === 'committed' ? commit.sha : null, args.stepResult.summary);
|
|
687
|
+
}
|
|
688
|
+
// Hybrids are excluded by the caller: their `agentContext` rides in the
|
|
689
|
+
// prompt payload instead.
|
|
690
|
+
function forwardDroppedAgentContext(migration, agentContext, agenticKind) {
|
|
691
|
+
if (agentContext.length > 0 && agenticKind === 'inside-agent') {
|
|
692
|
+
(0, print_dropped_agent_context_1.printDroppedAgentContextForOuterAgent)({ migration, agentContext });
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
function printNextSteps(migration, nextSteps) {
|
|
696
|
+
if (nextSteps.length === 0)
|
|
697
|
+
return;
|
|
698
|
+
(0, agent_output_1.logToAgent)({
|
|
699
|
+
title: `Next steps for ${migration.package}: ${migration.name}`,
|
|
700
|
+
bodyLines: nextSteps.map((line) => `- ${(0, text_1.singleLine)(line)}`),
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
function emitOrPrintPrompt(root, migration, agenticKind, opts = {}) {
|
|
704
|
+
const migrationId = `${migration.package}:${migration.name}`;
|
|
705
|
+
if (agenticKind === 'inside-agent') {
|
|
706
|
+
const payload = promptPayload(root, migration, opts.impl, opts.resolvedCollection);
|
|
707
|
+
if (opts.persistPath) {
|
|
708
|
+
(0, agent_work_payload_1.persistAgentWorkPayload)(opts.persistPath, payload);
|
|
709
|
+
}
|
|
710
|
+
emitPromptForOuterAgent(migrationId, payload, opts.persistPath !== undefined);
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
713
|
+
printPromptForUser(root, migration, migration.prompt, resolveDocumentationPath(root, migration, opts.resolvedCollection));
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
function promptPayload(root, migration, impl, resolvedCollection) {
|
|
717
|
+
const payload = {
|
|
718
|
+
migrationId: `${migration.package}:${migration.name}`,
|
|
719
|
+
prompt: migration.prompt,
|
|
720
|
+
};
|
|
721
|
+
const documentationPath = resolveDocumentationPath(root, migration, resolvedCollection);
|
|
722
|
+
if (documentationPath)
|
|
723
|
+
payload.documentationPath = documentationPath;
|
|
724
|
+
if (impl)
|
|
725
|
+
payload.impl = implPayload(impl);
|
|
726
|
+
return payload;
|
|
727
|
+
}
|
|
728
|
+
const PROMPT_NOT_APPLIED = `The following prompt-based migration was not applied automatically.`;
|
|
729
|
+
// Recorded steps hand work back through the orchestrator, per the runbook's loop.
|
|
730
|
+
const RUN_NEXT_FIRST = `Run the dispensed "next" command first: its response restates this work and names the handoff file to write.`;
|
|
731
|
+
const CHANGES_AWAIT_VALIDATION = `The following migration's generator ran in an earlier attempt and its changes still await validation.`;
|
|
732
|
+
function emitPromptForOuterAgent(migrationId, payload, recorded) {
|
|
733
|
+
(0, agent_output_1.logToAgent)({
|
|
734
|
+
title: recorded
|
|
735
|
+
? `${PROMPT_NOT_APPLIED} ${RUN_NEXT_FIRST}`
|
|
736
|
+
: `${PROMPT_NOT_APPLIED} Apply it to this workspace, then continue.`,
|
|
737
|
+
});
|
|
738
|
+
(0, agent_output_1.emitPromptBlock)(migrationId, payload);
|
|
739
|
+
}
|
|
740
|
+
function implPayload(impl) {
|
|
741
|
+
return {
|
|
742
|
+
logs: impl.logs,
|
|
743
|
+
changes: impl.changes.map((c) => ({ type: c.type, path: c.path })),
|
|
744
|
+
...(impl.agentContext.length > 0
|
|
745
|
+
? { agentContext: impl.agentContext }
|
|
746
|
+
: {}),
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
// Re-hands what an earlier attempt stored. The payload is re-persisted under
|
|
750
|
+
// this attempt because the dispense reads only the current attempt's file.
|
|
751
|
+
function reemitCarriedAgentWork(migrationId, kind, payloadPath, payload) {
|
|
752
|
+
(0, agent_work_payload_1.persistAgentWorkPayload)(payloadPath, payload);
|
|
753
|
+
(0, agent_output_1.logToAgent)({
|
|
754
|
+
title: `${kind === 'migration-prompt'
|
|
755
|
+
? PROMPT_NOT_APPLIED
|
|
756
|
+
: CHANGES_AWAIT_VALIDATION} ${RUN_NEXT_FIRST}`,
|
|
757
|
+
});
|
|
758
|
+
(0, agent_output_1.emitPromptBlock)(migrationId, payload);
|
|
759
|
+
}
|
|
760
|
+
function printPromptForUser(root, migration, promptPath, documentationPath) {
|
|
761
|
+
const bodyLines = [];
|
|
762
|
+
if (promptPath)
|
|
763
|
+
bodyLines.push(`Instructions file: ${promptPath}`);
|
|
764
|
+
if (documentationPath)
|
|
765
|
+
bodyLines.push(`Documentation: ${documentationPath}`);
|
|
766
|
+
let content = '';
|
|
767
|
+
let readErrorCode;
|
|
768
|
+
if (promptPath) {
|
|
769
|
+
try {
|
|
770
|
+
content = (0, fs_1.readFileSync)((0, path_1.join)(root, promptPath), 'utf-8');
|
|
771
|
+
}
|
|
772
|
+
catch (e) {
|
|
773
|
+
const err = e;
|
|
774
|
+
readErrorCode = err.code ?? err.message;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
if (readErrorCode) {
|
|
778
|
+
// Point at the file and error code: the generic "review the instructions
|
|
779
|
+
// above" copy would sit under an empty body.
|
|
780
|
+
bodyLines.push('', `The instructions file '${promptPath}' could not be read (${readErrorCode}). Open it manually and apply the instructions.`);
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
if (content) {
|
|
784
|
+
bodyLines.push('', ...content.split('\n'));
|
|
785
|
+
}
|
|
786
|
+
bodyLines.push('', 'Review the instructions above and apply them manually.');
|
|
787
|
+
}
|
|
788
|
+
(0, agent_output_1.logToAgent)({
|
|
789
|
+
title: `Prompt-based migration ${migration.package}: ${migration.name} must be applied manually`,
|
|
790
|
+
bodyLines,
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
// `impl` is absent on a retry whose earlier attempt left no stored payload;
|
|
794
|
+
// the emission then points at the tree.
|
|
795
|
+
function emitValidationBlock(root, migration, impl, opts = {}) {
|
|
796
|
+
const payload = validationPayload(root, migration, impl, opts.resolvedCollection);
|
|
797
|
+
if (opts.persistPath) {
|
|
798
|
+
(0, agent_work_payload_1.persistAgentWorkPayload)(opts.persistPath, payload);
|
|
799
|
+
}
|
|
800
|
+
emitValidationPayload(`${migration.package}:${migration.name}`, payload);
|
|
801
|
+
}
|
|
802
|
+
function emitValidationPayload(migrationId, payload) {
|
|
803
|
+
(0, agent_output_1.logToAgent)({
|
|
804
|
+
title: payload.impl !== undefined
|
|
805
|
+
? `The following migration's generator ran without an AI-driven part. ${RUN_NEXT_FIRST}`
|
|
806
|
+
: `${CHANGES_AWAIT_VALIDATION} ${RUN_NEXT_FIRST} Inspect the changes with git.`,
|
|
807
|
+
});
|
|
808
|
+
(0, agent_output_1.emitPromptBlock)(migrationId, payload);
|
|
809
|
+
}
|
|
810
|
+
function validationPayload(root, migration, impl, resolvedCollection) {
|
|
811
|
+
// `kind` is what tells the block apart from an applied-prompt payload,
|
|
812
|
+
// which carries `prompt` instead.
|
|
813
|
+
const payload = {
|
|
814
|
+
migrationId: `${migration.package}:${migration.name}`,
|
|
815
|
+
kind: 'generator-validation',
|
|
816
|
+
};
|
|
817
|
+
const documentationPath = resolveDocumentationPath(root, migration, resolvedCollection);
|
|
818
|
+
if (documentationPath)
|
|
819
|
+
payload.documentationPath = documentationPath;
|
|
820
|
+
if (impl)
|
|
821
|
+
payload.impl = implPayload(impl);
|
|
822
|
+
return payload;
|
|
823
|
+
}
|
|
824
|
+
// Non-fatal: documentation is supplementary, so a failure warns and the
|
|
825
|
+
// prompt still runs without it.
|
|
826
|
+
function resolveDocumentationPath(root, migration, resolvedCollection) {
|
|
827
|
+
if (!migration.documentation)
|
|
828
|
+
return undefined;
|
|
829
|
+
let documentationPath;
|
|
830
|
+
try {
|
|
831
|
+
const { collectionPath } = resolvedCollection ?? (0, execute_migration_1.readMigrationCollection)(migration.package, root);
|
|
832
|
+
documentationPath = (0, execute_migration_1.resolveDocumentationFileToWorkspacePath)(root, (0, path_1.dirname)(collectionPath), migration.documentation);
|
|
833
|
+
}
|
|
834
|
+
catch {
|
|
835
|
+
// An unreadable collection is reported through the warning below.
|
|
836
|
+
}
|
|
837
|
+
if (!documentationPath) {
|
|
838
|
+
(0, agent_output_1.warnToAgent)({
|
|
839
|
+
title: `Could not resolve the "documentation" file "${migration.documentation}" declared for migration "${migration.package}: ${migration.name}". It will be skipped.`,
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
return documentationPath;
|
|
843
|
+
}
|