MigrationReturnObject
Structured return value for a migration function.
nextSteps: workspace-wide notes surfaced to the human in thenx migratepost-run summary. Same audience as the legacystring[]return.agentContext: agent-only by contract. With the agentic flow on it is delivered to the agent as part of its outer prompt, but only when the step it feeds actually runs: a hybrid’s paired prompt, or the validation pass after a generator-only migration, which also needs file changes and no--no-validate. Whennx migrateitself runs inside an outer agent it goes to stdout for that agent instead. Anything else drops it, so content meant for the human in any scenario belongs innextSteps.skipAgentic: set totrueto declare that the deterministic run handled everything, sonx migrateskips the AI step it would otherwise run: the paired prompt of a hybrid migration, or the generic validation step of a generator-only one. Omitting it keeps the AI step, so this is opt-in. Where the waiver takes effect,agentContextis dropped along with the step it was meant for.
Table of contents
Section titled “Table of contents”Properties
Section titled “Properties”Properties
Section titled “Properties”agentContext
Section titled “agentContext”• Optional agentContext: string[]
nextSteps
Section titled “nextSteps”• Optional nextSteps: string[]
skipAgentic
Section titled “skipAgentic”• Optional skipAgentic: boolean