( name: string, path: string, specMethod: 'claude' | 'manual' = 'manual' )
| 67 | } |
| 68 | |
| 69 | export async function createProject( |
| 70 | name: string, |
| 71 | path: string, |
| 72 | specMethod: 'claude' | 'manual' = 'manual' |
| 73 | ): Promise<ProjectSummary> { |
| 74 | return fetchJSON('/projects', { |
| 75 | method: 'POST', |
| 76 | body: JSON.stringify({ name, path, spec_method: specMethod }), |
| 77 | }) |
| 78 | } |
| 79 | |
| 80 | export async function getProject(name: string): Promise<ProjectDetail> { |
| 81 | return fetchJSON(`/projects/${encodeURIComponent(name)}`) |
nothing calls this directly
no test coverage detected