mirror of
https://github.com/openclaw/openclaw.git
synced 2026-09-01 19:25:57 +00:00
* refactor(models): simplify picker and thinking projections * fix(doctor): keep bundled checks in the host health registry * test(doctor): consolidate repeated lint invocation * docs: keep Doctor release context in the PR body
18 lines
636 B
TypeScript
18 lines
636 B
TypeScript
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import type { HealthCheck } from "openclaw/plugin-sdk/health";
|
|
import {
|
|
CODEX_MANAGED_APP_SERVER_CHECK_ID,
|
|
registerCodexManagedAppServerDoctorChecks as registerChecks,
|
|
} from "./src/doctor.js";
|
|
|
|
const CODEX_PLUGIN_ROOT = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export { CODEX_MANAGED_APP_SERVER_CHECK_ID };
|
|
|
|
export function registerCodexManagedAppServerDoctorChecks(host: {
|
|
getHealthCheck(id: string): HealthCheck | undefined;
|
|
registerHealthCheck(check: HealthCheck): void;
|
|
}): void {
|
|
registerChecks({ ...host, pluginRoot: CODEX_PLUGIN_ROOT });
|
|
}
|