MCPcopy Create free account
hub / github.com/callstack/agent-device / doctorManagedAgentBrowser

Function doctorManagedAgentBrowser

src/platforms/web/agent-browser-tool.ts:78–90  ·  view source on GitHub ↗
(options: {
  stateDir?: string;
})

Source from the content-addressed store, hash-verified

76}
77
78export async function doctorManagedAgentBrowser(options: {
79 stateDir?: string;
80}): Promise<{ status: AgentBrowserToolStatus; stdout: string; stderr: string; exitCode: number }> {
81 const status = getManagedAgentBrowserStatus(options);
82 if (!status.installed) {
83 throw missingManagedToolError(status);
84 }
85 const result = await runManagedAgentBrowser(status, ['doctor', '--offline', '--quick'], {
86 timeoutMs: DOCTOR_TIMEOUT_MS,
87 allowFailure: true,
88 });
89 return { status, ...result };
90}
91
92function getManagedAgentBrowserStatus(options: { stateDir?: string }): AgentBrowserToolStatus {
93 const stateDir = options.stateDir ?? process.env.AGENT_DEVICE_STATE_DIR ?? defaultStateDir();

Callers 1

runWebCommandFunction · 0.85

Calls 3

missingManagedToolErrorFunction · 0.85
runManagedAgentBrowserFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…