(projectPath: string)
| 282 | } |
| 283 | |
| 284 | export 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 | |
| 293 | export async function waitForLatestDraftId( |
| 294 | projectPath: string, |