()
| 224 | } |
| 225 | |
| 226 | async function statusRequest(): Promise<any> { |
| 227 | if (USE_AGENT_BACKEND) { |
| 228 | if (!agentBackend) { |
| 229 | return { |
| 230 | backend: "agent-browser", |
| 231 | connected: false, |
| 232 | error: "Agent backend unavailable: configuration failed to initialize", |
| 233 | }; |
| 234 | } |
| 235 | return await agentBackend.status(); |
| 236 | } |
| 237 | return await brokerRequest("status", {}); |
| 238 | } |
| 239 | |
| 240 | const plugin: Plugin = async (ctx) => { |
| 241 |
no test coverage detected