(
task: QueuedTaskRecord,
event: {
type: Parameters<typeof recordTaskExecutionEventSync>[0]["type"];
title: string;
summary?: string;
severity?: Parameters<typeof recordTaskExecutionEventSync>[0]["severity"];
status?: Parameters<typeof recordTaskExecutionEventSync>[0]["status"];
data?: Record<string, unknown>;
},
)
| 660 | } |
| 661 | |
| 662 | function recordQueueLifecycleEvent( |
| 663 | task: QueuedTaskRecord, |
| 664 | event: { |
| 665 | type: Parameters<typeof recordTaskExecutionEventSync>[0]["type"]; |
| 666 | title: string; |
| 667 | summary?: string; |
| 668 | severity?: Parameters<typeof recordTaskExecutionEventSync>[0]["severity"]; |
| 669 | status?: Parameters<typeof recordTaskExecutionEventSync>[0]["status"]; |
| 670 | data?: Record<string, unknown>; |
| 671 | }, |
| 672 | ): void { |
| 673 | const context = buildTaskExecutionEventContext(task); |
| 674 | recordTaskExecutionEventSync({ |
| 675 | ...context, |
| 676 | type: event.type, |
| 677 | title: event.title, |
| 678 | summary: event.summary, |
| 679 | severity: event.severity, |
| 680 | status: event.status, |
| 681 | data: { |
| 682 | triggerType: context.triggerType, |
| 683 | issueId: context.issueId, |
| 684 | taskTitle: context.taskTitle, |
| 685 | ...event.data, |
| 686 | }, |
| 687 | }); |
| 688 | } |
| 689 | |
| 690 | function recordRouterLifecycleEvent( |
| 691 | task: QueuedTaskRecord, |
no test coverage detected