feat: status constant define

This commit is contained in:
engigu
2026-02-10 17:07:11 +08:00
parent 04de467a67
commit cca069dd98
16 changed files with 152 additions and 109 deletions
+22
View File
@@ -17,3 +17,25 @@ export const FILE_RUNNERS: Record<string, string> = {
sh: 'bash',
bash: 'bash',
} as const
// 任务状态
export const TASK_STATUS = {
SUCCESS: 'success',
FAILED: 'failed',
RUNNING: 'running',
PENDING: 'pending',
TIMEOUT: 'timeout',
CANCELLED: 'cancelled',
} as const
// 任务类型
export const TASK_TYPE = {
NORMAL: 'task',
REPO: 'repo',
} as const
// Agent 状态
export const AGENT_STATUS = {
ONLINE: 'online',
OFFLINE: 'offline',
} as const