MCPcopy
hub / github.com/coder/mux / getWorkspaceDraftIds

Function getWorkspaceDraftIds

tests/ui/helpers.ts:284–291  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

282}
283
284export function getWorkspaceDraftIds(projectPath: string): string[] {
285 const parsedDrafts = readPersistedState<Record<string, { draftId: string }[]>>(
286 WORKSPACE_DRAFTS_BY_PROJECT_KEY,
287 {}
288 );
289 const draftsForProject = parsedDrafts[projectPath] ?? [];
290 return draftsForProject.map((draft) => draft.draftId);
291}
292
293export async function waitForLatestDraftId(
294 projectPath: string,

Callers 3

waitForDraftCountFunction · 0.90
draft.test.tsFile · 0.90
waitForLatestDraftIdFunction · 0.85

Calls 1

readPersistedStateFunction · 0.90

Tested by 1

waitForDraftCountFunction · 0.72