( workspacePath: string, storagePath = DEFAULT_CLI_TASK_STORAGE_PATH, )
| 18 | } |
| 19 | |
| 20 | export async function readWorkspaceTaskSessions( |
| 21 | workspacePath: string, |
| 22 | storagePath = DEFAULT_CLI_TASK_STORAGE_PATH, |
| 23 | ): Promise<TaskSessionEntry[]> { |
| 24 | const sessions = await readTaskSessionsFromStoragePath(storagePath) |
| 25 | return filterSessionsForWorkspace(sessions, workspacePath) |
| 26 | } |
| 27 | |
| 28 | export function resolveWorkspaceResumeSessionId(sessions: TaskSessionEntry[], requestedSessionId?: string): string { |
| 29 | if (requestedSessionId) { |
no test coverage detected