@essentialai/cogent-bridge
Version:
Cogent Bridge — cross-agent comms for Claude Code, OpenAI Codex and Slack. Codex users: install with `curl -fsSL https://cogent.tools/install.sh | sh`, then start with `cogent-codex` for real-time peer wake.
44 lines • 1.74 kB
TypeScript
interface CheckResult {
ok: boolean;
message: string;
}
interface ClaudeCliCheckResult extends CheckResult {
version?: string;
}
export interface HealthCheckResult {
healthy: boolean;
/**
* cogent-bridge npm package version (the local MCP server the user's
* Claude Code instance talks to). NOT the upstream relay version — see
* `transport.relayVersion` on the tool response for that. Hard-renamed
* in 3.2 (VER-01) from the pre-3.2 property name; no backward-compat
* alias is provided — clients must read this property by its new name.
*/
mcpServerVersion: string;
statePath: string;
claudePath: string;
checks: {
stateFile: CheckResult;
lockMechanism: CheckResult;
claudeCli: ClaudeCliCheckResult;
/** Can the host initialize the Codex OS sandbox? (codex platform only; else n/a) */
codexSandbox: CheckResult;
};
timestamp: string;
/** Present only in cloud mode */
mode?: "local" | "cloud";
/** Cloud relay server status (cloud mode only) */
serverStatus?: "ok" | "degraded" | "error";
/** Active sessions on cloud relay (cloud mode only) */
activeSessions?: number;
/** Connected peers across all sessions (cloud mode only) */
connectedPeers?: number;
/** Cloud relay server uptime in seconds (cloud mode only) */
serverUptime?: number;
}
/** HLTH-04: Can the host initialize the Codex OS sandbox? (codex platform only.) */
export declare function checkCodexSandbox(): Promise<CheckResult>;
/** Run all health checks and return a comprehensive result. */
export declare function checkHealth(): Promise<HealthCheckResult>;
export {};
//# sourceMappingURL=health-check.d.ts.map