-
feat(core): add agentic mode to nx migrate --run-migrations (#35718)
发布于
2026-05-27 14:39:44 +00:00 Current Behavior
nx migrate --run-migrationscan only run generator-based migrations.
Prompt-based and hybrid migrations cannot execute, and there is no way
to validate generator output with an AI agent.Expected Behavior
nx migrate --run-migrationscan drive an installed AI agent (Claude
Code, OpenCode, Codex) across the full migration pipeline.Capabilities added:
--agentic[=<agent-id>]opts into agentic mode; auto-detects an
installed agent or accepts an explicit id.- Prompt-only and hybrid migrations (generator + prompt phases) run
end-to-end, with generator output handed to the agent. --validateruns an optional agent validation step after each
generator-only migration.- Inside-agent mode defers prompt and validation steps and surfaces them
as directives to the outer agent. - Per-migration commits are soft-forced under
--agentic; redesigned
end-of-run output reports applied / deferred / retained state and gives
an explicit recap on failures.
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
Co-authored-by: leosvelperez leosvelperez@users.noreply.github.com下载附件