()
| 217 | } |
| 218 | |
| 219 | export 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 | |
| 226 | export async function setIssueDefaultAgent(agent: string | null): Promise<string | null> { |
| 227 | const res = await fetch('/api/config/issue-default-agent', { |
no test coverage detected