Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

889 B
Raw Blame
/**
 * scheduler/_enums.ts
 *
 * Shared zod enum tuples (single source of truth for tool input schemas).
 * Mirror the literal-union types in `@cindy/maker-scheduler` types.ts.
 *
 * EFFORT: 与 maker-core Effort 一致 —
 *   `['minimal','low','medium','high','xhigh','max','ultra']`(max/ultra 见 issue #352)。
 *   runner.ts 已经做白名单校验,MCP 这一层提前在 zod schema 里拦更友好
 *   (非白名单值直接变 INVALID_ARGS,不会进入 runner)。
 */
export const AGENT_KIND = ['claude-code', 'codex', 'pi'] as const;
export const EFFORT = ['minimal', 'low', 'medium', 'high', 'xhigh', 'max', 'ultra'] as const;
export const SCHEDULE_STATUS = ['active', 'paused', 'expired'] as const;
export const EXECUTION_MODE = ['agent', 'script'] as const;
export const SCRIPT_CAPABILITY = ['jira.read', 'jira.comment', 'sessions.dispatch', 'feishu.read'] as const;