chore: format with biome (no-changelog)

This commit is contained in:
aalises 2026-05-03 19:43:56 +02:00
parent 61feff49f4
commit 5632d1098e
No known key found for this signature in database
2 changed files with 23 additions and 13 deletions

View File

@ -250,15 +250,17 @@ export function toSpecString(handoff: PlannedHandoff): string {
}
}
export function toPlannedTaskArg(task: {
id: string;
title: string;
deps: string[];
tools?: string[];
} & (
| { kind: 'checkpoint'; spec: string }
| { kind?: PlannedHandoffKind; handoff: PlannedHandoff }
)): PlannedTaskArg {
export function toPlannedTaskArg(
task: {
id: string;
title: string;
deps: string[];
tools?: string[];
} & (
| { kind: 'checkpoint'; spec: string }
| { kind?: PlannedHandoffKind; handoff: PlannedHandoff }
),
): PlannedTaskArg {
if (task.kind === 'checkpoint') {
return {
id: task.id,

View File

@ -62,13 +62,17 @@ function makeTask(overrides: Partial<PlannedTask> = {}): PlannedTask {
...overrides,
} as PlannedTask;
}
const kind = overrides.kind ?? ('handoff' in overrides ? overrides.handoff?.kind : undefined) ?? 'build-workflow';
const kind =
overrides.kind ??
('handoff' in overrides ? overrides.handoff?.kind : undefined) ??
'build-workflow';
return {
id,
title: 'Test task',
kind,
deps: [],
handoff: 'handoff' in overrides && overrides.handoff ? overrides.handoff : makeHandoff(id, kind),
handoff:
'handoff' in overrides && overrides.handoff ? overrides.handoff : makeHandoff(id, kind),
...overrides,
} as PlannedTask;
}
@ -95,13 +99,17 @@ function makeTaskRecord(overrides: Partial<PlannedTaskRecord> = {}): PlannedTask
...overrides,
} as PlannedTaskRecord;
}
const kind = overrides.kind ?? ('handoff' in overrides ? overrides.handoff?.kind : undefined) ?? 'build-workflow';
const kind =
overrides.kind ??
('handoff' in overrides ? overrides.handoff?.kind : undefined) ??
'build-workflow';
return {
id,
title: 'Test task',
kind,
deps: [],
handoff: 'handoff' in overrides && overrides.handoff ? overrides.handoff : makeHandoff(id, kind),
handoff:
'handoff' in overrides && overrides.handoff ? overrides.handoff : makeHandoff(id, kind),
status: 'planned',
...overrides,
} as PlannedTaskRecord;