feat: add tui recovery state machine

This commit is contained in:
chungyeong
2026-05-14 00:14:27 +09:00
parent ef4c56e6b0
commit e5020a59f0
15 changed files with 1414 additions and 97 deletions

View File

@@ -14,6 +14,9 @@ export interface DevflowActivityDependencies {
workspaceRoot: string;
availableBackends?: readonly BackendConfig[];
maxConcurrentRuns?: number;
recovery?: {
maxHungMs?: number;
};
wait?: {
timeoutMs?: number;
pollIntervalMs?: number;
@@ -50,6 +53,7 @@ export function createDevflowActivities(
...(dependencies.maxConcurrentRuns === undefined
? {}
: { maxConcurrentRuns: dependencies.maxConcurrentRuns }),
...(dependencies.recovery === undefined ? {} : { recovery: dependencies.recovery }),
...(activityWait === undefined ? {} : { wait: activityWait }),
});
};