commands
Purpose
CLI command implementations for job management plugin. Each subdirectory is a separate subcommand (list, run, enable, disable, delete, etc.) with adapter/definition/handler layers.
Files
adapter-util.ts- Helper to build job reply messages with tone detection
Notes
- All subcommands follow the same pattern: adapter (CLI entry), definition (spec), handler (logic)
- adapter-util.ts provides shared message formatting for job replies
Subdirectories
ai/- Natural language job creation via AI agent with interactive draft reviewconfirm/- Converts pending create draft into scheduled jobdelete/- Permanently removes job by IDdisable/- Disables a job by IDdiscard/- Deletes pending draft by numeric IDdrafts/- Lists pending job drafts for reviewenable/- Activates disabled job, shows next run timehelp/- Generates help text for subcommandshistory/- Shows recent runs for a job with optional limitlist/- Lists all jobs as markdown table with schedule inforevise/- Revises create draft via AI with correction instructionsrun/- Executes job immediately by IDshow/- Displays single job details by ID