openclaw/extensions/codex/api.ts
Peter Steinberger cf8b58cbd9
refactor(models): simplify picker and thinking projections (#130694)
* 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
2026-08-26 23:47:54 -07:00

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 });
}