MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / getGitStatus

Function getGitStatus

ui/src/components/workspace/api.ts:471–475  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

469}
470
471export async function getGitStatus(id: string): Promise<GitStatus> {
472 const res = await fetch(`/api/workspaces/${encodeURIComponent(id)}/git/status`);
473 if (!res.ok) throw new Error(`git status failed: ${res.status}`);
474 return (await res.json()) as GitStatus;
475}
476
477// ── files ────────────────────────────────────────────────────────────────────
478

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected