openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
29 lines • 922 B
TypeScript
//#region src/infra/heartbeat-wake.d.ts
type HeartbeatRunResult = {
status: "ran";
durationMs: number;
} | {
status: "skipped";
reason: string;
} | {
status: "failed";
reason: string;
};
type HeartbeatWakeIntent = "scheduled" | "event" | "immediate" | "manual";
type HeartbeatWakeSource = "interval" | "manual" | "exec-event" | "notifications-event" | "cron" | "hook" | "background-task" | "background-task-blocked" | "acp-spawn" | "cli-watchdog" | "restart-sentinel" | "retry" | "other";
type HeartbeatWakeOverride = {
target?: string;
to?: string | undefined;
accountId?: string | undefined;
};
declare function requestHeartbeat(opts: {
source: HeartbeatWakeSource;
intent: HeartbeatWakeIntent;
reason?: string;
coalesceMs?: number;
agentId?: string;
sessionKey?: string;
heartbeat?: HeartbeatWakeOverride;
}): void;
//#endregion
export { requestHeartbeat as n, HeartbeatRunResult as t };