import { ToolPlugin, ToolResult, ToolContext } from "./types.js"; import { CRON_CREATE_TOOL_NAME } from "../constants/tools.js"; import { cronToHuman } from "../utils/cronToHuman.js"; import { parseCronExpression } from "../utils/parseCronExpression.js"; const DEFAULT_MAX_AGE_DAYS = 7; const MAX_JOBS = 50; const CRON_CREATE_DESCRIPTION = `Schedule a prompt to run at a future time within this Wave session — either recurring on a cron schedule, or once at a specific time.`; const CRON_CREATE_PROMPT = `Schedule a prompt to be enqueued at a future time. Use for both recurring schedules and one-shot reminders. Uses standard 5-field cron in the user's local timezone: minute hour day-of-month month day-of-week. "0 9 * * *" means 9am local — no timezone conversion needed. ## One-shot tasks (recurring: false) For "remind me at X" or "at