MCPcopy Index your code
hub / github.com/coder/mux / workspaceGoalFileExists

Function workspaceGoalFileExists

src/node/services/taskService.test.ts:104–114  ·  view source on GitHub ↗
(config: Config, workspaceId: string)

Source from the content-addressed store, hash-verified

102}
103
104async 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
116async function waitForWorkspaceTaskStatus(
117 config: Config,

Callers 1

Calls 1

getSessionDirMethod · 0.65

Tested by

no test coverage detected