Provides API route and CLI command generation for per-tool health diagnostics, enabling dashboard and terminal-based tool verification.
// Source: https://github.com/superbasedapp/observer | License: Apache-2.0 | Copyright 2026 Gaja AI
// Provided via justclaw.it.com; keep this notice with the code.
import type { DoctorReport } from "./types.ts";
// toolDoctor.ts - the PURE half of Connected tools' per-tool "Run checks"
// (T-421 item 3): `observer doctor <tool>` as a dashboard action. The daemon
// runs the same report builder the CLI prints (GET /api/health/doctor/tool);
// this module names the route and phrases the result line.
/** GET /api/health/doctor/tool body: the doctor report scoped to one tool. */
export type ToolDoctorReport = DoctorReport & {
tool: string;
/** The terminal equivalent of the run, always present. */
command: string;
};
/** toolDoctorPath is the route that runs one tool's checks. */
exp
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key