mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-17 19:59:33 +01:00
30 lines
970 B
TypeScript
30 lines
970 B
TypeScript
/**
|
|||
|
|
* @fileoverview Input shape for creating/updating a scheduled job. This is the
|
||
|
|
* user-settable subset of `ScheduledJob` (server-maintained bookkeeping fields
|
||
|
|
* such as nextRunAt / lastStatus are excluded). Produced by the zod schema.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type { ConcurrencyPolicy, InputMode, PromptMode, ScheduleType } from '../types/scheduler.js';
|
||
|
|
import type { SessionMode } from '../types/session.js';
|
||
|
|
|
||
|
|
export type { ScheduledJob, ScheduledJobRun, ScheduledJobRunStatus, TriggerType } from '../types/scheduler.js';
|
||
|
|
|
||
|
|
export interface ScheduledJobInput {
|
||
|
|
name: string;
|
||
|
|
agentType: SessionMode;
|
||
|
|
workingDir: string;
|
||
|
|
launchCommand?: string;
|
||
|
|
promptMode: PromptMode;
|
||
|
|
promptText?: string;
|
||
|
|
promptFilePath?: string;
|
||
|
|
inputMode: InputMode;
|
||
|
|
scheduleType: ScheduleType;
|
||
|
|
runAt?: number;
|
||
|
|
intervalMinutes?: number;
|
||
|
|
dailyTime?: string;
|
||
|
|
weeklyDays?: number[];
|
||
|
|
weeklyTime?: string;
|
||
|
|
enabled: boolean;
|
||
|
|
notes?: string;
|
||
|
|
concurrencyPolicy: ConcurrencyPolicy;
|
||
|
|
}
|