()
| 13 | } |
| 14 | |
| 15 | export async function restartRuntime() { |
| 16 | const res = await fetch(state.API_BASE + "/api/runtime/restart", { |
| 17 | method: "POST", |
| 18 | headers: { "Content-Type": "application/json" }, |
| 19 | }); |
| 20 | const payload = await res.json(); |
| 21 | if (!res.ok) { |
| 22 | throw new Error(payload.message || "Restart Failed"); |
| 23 | } |
| 24 | return payload; |
| 25 | } |
| 26 | |
| 27 | export async function listConversations() { |
| 28 | const res = await fetch(state.API_BASE + "/api/conversations"); |
no outgoing calls
no test coverage detected