(wsId: string)
| 671 | } |
| 672 | |
| 673 | export async function getAgentReadiness(wsId: string): Promise<AgentReadinessBundle> { |
| 674 | const res = await fetch(`/api/workspaces/${encodeURIComponent(wsId)}/agent-readiness`); |
| 675 | if (!res.ok) throw new Error(`get agent readiness failed: ${res.status}`); |
| 676 | return (await res.json()) as AgentReadinessBundle; |
| 677 | } |
| 678 | |
| 679 | export async function saveAgentConfig( |
| 680 | wsId: string, |
no test coverage detected