(
ownerWorkspaceId: string,
options: { statuses?: readonly WorkspaceTurnTaskStatus[] } = {}
)
| 5745 | } |
| 5746 | |
| 5747 | async listWorkspaceTurnTasks( |
| 5748 | ownerWorkspaceId: string, |
| 5749 | options: { statuses?: readonly WorkspaceTurnTaskStatus[] } = {} |
| 5750 | ): Promise<WorkspaceTurnTaskHandleRecord[]> { |
| 5751 | const records = await this.taskHandleStore.listWorkspaceTurns(ownerWorkspaceId); |
| 5752 | const statuses = options.statuses != null ? new Set(options.statuses) : null; |
| 5753 | const result: WorkspaceTurnTaskHandleRecord[] = []; |
| 5754 | for (const record of records) { |
| 5755 | const latest = await this.normalizeWorkspaceTurnRecord(record); |
| 5756 | if (latest != null && (statuses == null || statuses.has(latest.status))) { |
| 5757 | result.push(latest); |
| 5758 | } |
| 5759 | } |
| 5760 | return result; |
| 5761 | } |
| 5762 | |
| 5763 | async interruptWorkspaceTurn( |
| 5764 | ownerWorkspaceId: string, |
no test coverage detected