(config: Config, workspaceId: string)
| 102 | } |
| 103 | |
| 104 | async function workspaceGoalFileExists(config: Config, workspaceId: string): Promise<boolean> { |
| 105 | try { |
| 106 | await fsPromises.access(path.join(config.getSessionDir(workspaceId), "goal.json")); |
| 107 | return true; |
| 108 | } catch (error) { |
| 109 | if (error && typeof error === "object" && "code" in error && error.code === "ENOENT") { |
| 110 | return false; |
| 111 | } |
| 112 | throw error; |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | async function waitForWorkspaceTaskStatus( |
| 117 | config: Config, |
no test coverage detected