repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | /** |
| #2 | * Heartbeat Daemon |
| #3 | * |
| #4 | * Runs periodic tasks on cron schedules inside the same Node.js process. |
| #5 | * The heartbeat runs even when the agent is sleeping. |
| #6 | * It IS the automaton's pulse. When it stops, the automaton is dead. |
| #7 | */ |
| #8 | import type { AutomatonConfig, AutomatonDatabase, ClawdRuntimeClient, AutomatonIdentity, SocialClientInterface, InferenceClient } from "../types.js"; |
| #9 | export interface HeartbeatDaemonOptions { |
| #10 | identity: AutomatonIdentity; |
| #11 | config: AutomatonConfig; |
| #12 | db: AutomatonDatabase; |
| #13 | runtime: ClawdRuntimeClient; |
| #14 | inference?: InferenceClient; |
| #15 | social?: SocialClientInterface; |
| #16 | onWakeRequest?: (reason: string) => void; |
| #17 | } |
| #18 | export interface HeartbeatDaemon { |
| #19 | start(): void; |
| #20 | stop(): void; |
| #21 | isRunning(): boolean; |
| #22 | forceRun(taskName: string): Promise<void>; |
| #23 | } |
| #24 | /** |
| #25 | * Create and return the heartbeat daemon. |
| #26 | */ |
| #27 | export declare function createHeartbeatDaemon(options: HeartbeatDaemonOptions): HeartbeatDaemon; |
| #28 | //# sourceMappingURL=daemon.d.ts.map |