Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Only declare compileInputBlueprint in BlueprintsV1Handler
  • Loading branch information
adamziel committed Jul 21, 2025
commit 5803737e3bfaee11f2e445de4bf43f8b3135e9a0
25 changes: 11 additions & 14 deletions packages/playground/cli/src/run-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,15 +447,18 @@ export async function runCLI(args: RunCLIArgs): Promise<RunCLIServer> {

loadBalancer = new LoadBalancer(playground);

// Compile and run the blueprint
const compiledBlueprint = await handler.compileInputBlueprint(
args['additional-blueprint-steps'] || []
);
if (!args['experimental-blueprints-v2-runner']) {
const compiledBlueprint = await (
handler as BlueprintsV1Handler
).compileInputBlueprint(
args['additional-blueprint-steps'] || []
);

if (compiledBlueprint) {
logger.log(`Running the Blueprint...`);
await runBlueprintSteps(compiledBlueprint, playground);
logger.log(`Finished running the blueprint`);
if (compiledBlueprint) {
logger.log(`Running the Blueprint...`);
await runBlueprintSteps(compiledBlueprint, playground);
logger.log(`Finished running the blueprint`);
}
}

if (args.command === 'build-snapshot') {
Expand Down Expand Up @@ -644,12 +647,6 @@ class BlueprintsV2Handler {
return playground;
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
async compileInputBlueprint(..._args: any[]) {
// no-op for API compatibility with BlueprintV1Handler
return undefined;
}

writeProgressUpdate(
writeStream: NodeJS.WriteStream,
message: string,
Expand Down
Loading