MCPcopy Index your code
hub / github.com/AutoForgeAI/autoforge / createProject

Function createProject

ui/src/lib/api.ts:69–78  ·  view source on GitHub ↗
(
  name: string,
  path: string,
  specMethod: 'claude' | 'manual' = 'manual'
)

Source from the content-addressed store, hash-verified

67}
68
69export 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
80export async function getProject(name: string): Promise<ProjectDetail> {
81 return fetchJSON(`/projects/${encodeURIComponent(name)}`)

Callers

nothing calls this directly

Calls 1

fetchJSONFunction · 0.85

Tested by

no test coverage detected