@@ -45,6 +45,7 @@ export { shouldDisableAsk } from './shared/bootstrap';
4545export async function runAgent (
4646 programConfig : ProgramConfig ,
4747 session : WizardSession ,
48+ options : { composed ?: boolean } = { } ,
4849) : Promise < void > {
4950 if ( ! programConfig . run ) {
5051 throw new Error ( `Program "${ programConfig . id } " has no run configuration.` ) ;
@@ -55,7 +56,7 @@ export async function runAgent(
5556 ? await programConfig . run ( session )
5657 : programConfig . run ;
5758
58- await runProgram ( session , runDef , programConfig ) ;
59+ await runProgram ( session , runDef , programConfig , options ) ;
5960}
6061
6162/**
@@ -69,6 +70,7 @@ export async function runProgram(
6970 session : WizardSession ,
7071 config : ProgramRun ,
7172 programConfig : ProgramConfig ,
73+ options : { composed ?: boolean } = { } ,
7274) : Promise < void > {
7375 const boot = await bootstrapProgram ( session , config , programConfig ) ;
7476
@@ -85,11 +87,18 @@ export async function runProgram(
8587 if ( isOrchestratorEnabled ( boot . wizardFlags ) ) {
8688 getUI ( ) . log . info ( 'Task-queue orchestrator enabled.' ) ;
8789 stampVariant ( boot , WizardVariant . ORCHESTRATOR ) ;
90+ // composed-run guard is linear-only; the orchestrator is experimental.
8891 return await runOrchestrator ( session , programConfig , boot ) ;
8992 }
9093
9194 stampVariant ( boot , WizardVariant . BASE ) ;
92- return await runLinearProgram ( session , config , programConfig , boot ) ;
95+ return await runLinearProgram (
96+ session ,
97+ config ,
98+ programConfig ,
99+ boot ,
100+ options . composed ?? false ,
101+ ) ;
93102 } finally {
94103 flushScanReport ( session ) ;
95104 }
0 commit comments