Skip to content

Commit bd12716

Browse files
committed
refactor(workflows): remove unused import and fix type assertion
Clean up code by removing unused isWorkflowTemplate import and replacing any type assertion with proper typing for step.engine
1 parent d94acc3 commit bd12716

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/workflows/execution/workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export async function runWorkflow(options: RunWorkflowOptions = {}): Promise<voi
155155
// Ensure the selected engine is used during execution
156156
// (executeStep falls back to default engine if step.engine is unset)
157157
// Mutate current step to carry the chosen engine forward
158-
(step as any).engine = engineType;
158+
step.engine = engineType;
159159

160160
// Resolve model and reasoning effort for display
161161
const engineModule = registry.get(engineType);

src/workflows/templates/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { existsSync } from 'node:fs';
33
import { createRequire } from 'node:module';
44
import { fileURLToPath, pathToFileURL } from 'node:url';
55
import type { WorkflowTemplate } from './types.js';
6-
import { isWorkflowTemplate, validateWorkflowTemplate } from './validator.js';
6+
import { validateWorkflowTemplate } from './validator.js';
77
import { ensureTemplateGlobals } from './globals.js';
88

99
// Package root resolution

0 commit comments

Comments
 (0)