Skip to content

Commit 00ad3eb

Browse files
committed
refactor(workflow): restructure runner into modular components
Split monolithic runner.ts into separate files for core functionality, execution, waiting state handling, mode management and listeners. Extract types and interfaces into dedicated files for better organization and maintainability. Keep all existing functionality while improving code structure.
1 parent ce456c8 commit 00ad3eb

File tree

10 files changed

+766
-641
lines changed

10 files changed

+766
-641
lines changed

src/workflows/execution/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from './run.js';
2-
export * from './runner.js';
2+
export * from './runner/index.js';
33
export * from './step.js';
44
export * from '../behaviors/index.js';

src/workflows/execution/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { registry } from '../../infra/engines/index.js';
2222
import { MonitoringCleanup } from '../../agents/monitoring/index.js';
2323
import { WorkflowEventBus, WorkflowEventEmitter } from '../events/index.js';
2424
import { validateSpecification } from '../../runtime/services/index.js';
25-
import { WorkflowRunner } from './runner.js';
25+
import { WorkflowRunner } from './runner/index.js';
2626

2727
export { validateSpecification, ValidationError } from '../../runtime/services/index.js';
2828
export type { WorkflowStep, WorkflowTemplate };

0 commit comments

Comments
 (0)