TypeScript SDKTypeScript signatures
CerealDevStatus
Public TypeScript declaration from @trycereal/sdk/dev.
Import from @trycereal/sdk/dev. Generated from the repository SDK declarations (package version 0.0.0); not from HTTP request schemas.
export type CerealDevStatus = {
readonly type: "connecting";
readonly attempt: number;
readonly url: string;
} | {
readonly type: "connected";
readonly target: CerealDevTarget;
} | {
readonly type: "disconnected";
readonly reason: string;
readonly retryInMs?: number;
} | {
readonly type: "synced";
readonly agentId: string;
readonly version: number;
} | {
readonly type: "tool";
readonly name: string;
readonly sessionId: string | undefined;
readonly ok: boolean;
readonly durationMs: number;
} | {
readonly type: "hook";
readonly phase: "session.event" | "tool.call.before";
readonly event: string | undefined;
readonly sessionId: string | undefined;
readonly decision: string | undefined;
} | {
readonly type: "error";
readonly message: string;
};See SDK setup, authoring, client behavior, and the API/SDK map for usage. Domain types are described in schema reference.
Related SDK types: tool, CerealDevTarget.