(sessionId: string, query: TaskListQuery)
| 28 | } |
| 29 | |
| 30 | async list(sessionId: string, query: TaskListQuery): Promise<readonly BackgroundTask[]> { |
| 31 | await this._requireSession(sessionId); |
| 32 | const raw = await this._getAllRaw(sessionId); |
| 33 | const all = raw.map((info) => toProtocolTask(sessionId, info)); |
| 34 | if (query.status !== undefined) { |
| 35 | return all.filter((t) => t.status === query.status); |
| 36 | } |
| 37 | return all; |
| 38 | } |
| 39 | |
| 40 | async get( |
| 41 | sessionId: string, |
nothing calls this directly
no test coverage detected