MCPcopy Create free account
hub / github.com/different-ai/opencode-browser / statusRequest

Function statusRequest

src/plugin.ts:226–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224}
225
226async 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
240const plugin: Plugin = async (ctx) => {
241

Callers 1

executeFunction · 0.85

Calls 1

brokerRequestFunction · 0.85

Tested by

no test coverage detected