Commit 4d6548e
committed
feat(workflows): refactor workflow execution and state management
Introduce new state machine implementation for workflow execution with improved input handling and error management. Replace queue-based execution with a runner class that orchestrates steps using finite state machine patterns.
Add new input providers for user and controller input with event-based communication. Implement proper state transitions and error handling throughout the workflow lifecycle.
Remove deprecated queue implementation and consolidate execution logic into a single runner class. Add comprehensive type definitions for workflow states and transitions.
The changes improve maintainability and provide a more robust foundation for future workflow features like autonomous mode and chained prompts.1 parent bb8514d commit 4d6548e
File tree
19 files changed
+1454
-1109
lines changed- src
- cli
- commands
- tui
- routes/home/hooks
- workflows
- execution
- input
- state
19 files changed
+1454
-1109
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
| 199 | + | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
File renamed without changes.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
0 commit comments