(
sessionId: string,
id: string,
options: TaskLedgerListOptions = {},
)
| 89 | } |
| 90 | |
| 91 | async get( |
| 92 | sessionId: string, |
| 93 | id: string, |
| 94 | options: TaskLedgerListOptions = {}, |
| 95 | ): Promise<Task | undefined> { |
| 96 | assertSafeSessionId(sessionId); |
| 97 | if (!isSafeTaskId(id)) |
| 98 | throw new Error('Task id must be a stable token (alphanumeric plus . _ : -, max 64 chars)'); |
| 99 | const tasks = await this.list(sessionId, options); |
| 100 | return findTaskByRef(tasks, id); |
| 101 | } |
| 102 | |
| 103 | async #listCanonical(sessionId: string, options: TaskLedgerListOptions = {}): Promise<Task[]> { |
| 104 | assertSafeSessionId(sessionId); |
nothing calls this directly
no test coverage detected