(wsId: string)
| 665 | } |
| 666 | |
| 667 | export async function getAgentConfig(wsId: string): Promise<AgentConfigBundle> { |
| 668 | const res = await fetch(`/api/workspaces/${encodeURIComponent(wsId)}/agent-config`); |
| 669 | if (!res.ok) throw new Error(`get agent config failed: ${res.status}`); |
| 670 | return (await res.json()) as AgentConfigBundle; |
| 671 | } |
| 672 | |
| 673 | export async function getAgentReadiness(wsId: string): Promise<AgentReadinessBundle> { |
| 674 | const res = await fetch(`/api/workspaces/${encodeURIComponent(wsId)}/agent-readiness`); |
no test coverage detected