fix(hopper): add bounded analysis recovery

This commit is contained in:
N0zoM1z0
2026-07-24 00:33:29 +09:00
committed by N0zoM1z0
parent 161377a505
commit e0bc7fd973
68 changed files with 1750 additions and 368 deletions
+22
View File
@@ -0,0 +1,22 @@
import type { ProgressReporter } from "../application/ProgressReporter.js";
/** Report one lifecycle operation start through the shared monotonic boundary. */
export const reportLifecycleStart = (
progress: ProgressReporter,
phase: string,
message = "started",
): Promise<void> => progress.report({ phase, completed: 0, total: 1, message });
/** Report one lifecycle operation's terminal disposition. */
export const reportLifecycleEnd = (
progress: ProgressReporter,
phase: string,
succeeded: boolean,
): Promise<void> =>
progress.report({
phase,
completed: 1,
total: 1,
message: succeeded ? "completed" : "failed",
terminal: true,
});