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

Function getIssueDefaultAgent

ui/src/components/workspace/api.ts:219–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219export async function getIssueDefaultAgent(): Promise<string | null> {
220 const res = await fetch('/api/config/issue-default-agent');
221 if (!res.ok) return null;
222 const body = (await res.json()) as { agent?: string | null };
223 return body.agent ?? null;
224}
225
226export async function setIssueDefaultAgent(agent: string | null): Promise<string | null> {
227 const res = await fetch('/api/config/issue-default-agent', {

Callers 1

WorkspacesProviderFunction · 0.90

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected