Skip to content

Commit ccab025

Browse files
committed
fix: preserve supervisor plan step status literals
1 parent 6799120 commit ccab025

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/server/src/supervisor/evaluator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ function parseSupervisorEvaluationResult(
583583
? record.guidance.trim().slice(0, guidanceMaxChars)
584584
: undefined;
585585

586-
const plan = Array.isArray(record.plan)
587-
? record.plan.flatMap((value) => {
586+
const plan: SupervisorPlanStep[] | undefined = Array.isArray(record.plan)
587+
? record.plan.flatMap<SupervisorPlanStep>((value) => {
588588
if (!value || typeof value !== "object") {
589589
return [];
590590
}
@@ -600,8 +600,8 @@ function parseSupervisorEvaluationResult(
600600
})
601601
: undefined;
602602

603-
const stepUpdates = Array.isArray(record.stepUpdates)
604-
? record.stepUpdates.flatMap((value) => {
603+
const stepUpdates: SupervisorCycleStepUpdate[] | undefined = Array.isArray(record.stepUpdates)
604+
? record.stepUpdates.flatMap<SupervisorCycleStepUpdate>((value) => {
605605
if (!value || typeof value !== "object") {
606606
return [];
607607
}

0 commit comments

Comments
 (0)