chore: generate
This commit is contained in:
parent
94564f3588
commit
f6c8e35383
1 changed files with 1 additions and 3 deletions
|
|
@ -1087,9 +1087,7 @@ export function latest(msgs: WithParts[]) {
|
||||||
const tasks = msgs.flatMap((m) =>
|
const tasks = msgs.flatMap((m) =>
|
||||||
finished && m.info.id <= finished.id
|
finished && m.info.id <= finished.id
|
||||||
? []
|
? []
|
||||||
: m.parts.filter(
|
: m.parts.filter((p): p is CompactionPart | SubtaskPart => p.type === "compaction" || p.type === "subtask"),
|
||||||
(p): p is CompactionPart | SubtaskPart => p.type === "compaction" || p.type === "subtask",
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
return { user, assistant, finished, tasks }
|
return { user, assistant, finished, tasks }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue