Cron: add scheduler, wakeups, and run history

This commit is contained in:
Peter Steinberger
2025-12-13 02:34:11 +00:00
parent 572d17f46b
commit f9409cbe43
26 changed files with 3401 additions and 342 deletions

View File

@@ -49,6 +49,12 @@ export type WebChatConfig = {
port?: number;
};
export type CronConfig = {
enabled?: boolean;
store?: string;
maxConcurrentRuns?: number;
};
export type TelegramConfig = {
botToken?: string;
requireMention?: boolean;
@@ -107,6 +113,7 @@ export type ClawdisConfig = {
web?: WebConfig;
telegram?: TelegramConfig;
webchat?: WebChatConfig;
cron?: CronConfig;
};
// New branding path (preferred)
@@ -218,6 +225,13 @@ const ClawdisSchema = z.object({
reply: ReplySchema.optional(),
})
.optional(),
cron: z
.object({
enabled: z.boolean().optional(),
store: z.string().optional(),
maxConcurrentRuns: z.number().int().positive().optional(),
})
.optional(),
web: z
.object({
heartbeatSeconds: z.number().int().positive().optional(),