@task0/cli 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +3 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -7442,7 +7442,7 @@ function printAutomation(a) {
7442
7442
  );
7443
7443
  console.log(` ${chalk22.bold(a.title)}`);
7444
7444
  console.log(
7445
- ` project=${a.project_name} agent=${a.agent_object_id} skill=${a.skill_file_path}`
7445
+ ` project=${a.project_name} agent=${a.agent_object_id} skill=${a.skill_file_path ?? "(prompt-only)"}`
7446
7446
  );
7447
7447
  console.log(` rrule=${chalk22.dim(a.rrule)} tz=${a.timezone}`);
7448
7448
  }
@@ -7500,7 +7500,7 @@ function safeResolveProject() {
7500
7500
  return void 0;
7501
7501
  }
7502
7502
  }
7503
- automation.command("create").description("Create a new automation").requiredOption("--title <title>", "Display name").option("-p, --project <name>", "Project name (defaults to cwd)").requiredOption("--agent <object_id>", "Agent object id (agt_*)").requiredOption("--skill <path>", "Absolute path to the skill markdown file").requiredOption("--prompt <text>", "Additional prompt sent to the agent").requiredOption("--schedule <preset>", "hourly|daily|weekdays|weekly|custom").option("--time <HH:MM>", "Local time for daily/weekdays/weekly presets", "09:00").option("--weekday <0-6>", "Day of week for weekly preset (Sun=0)", "1").option("--minute <0-59>", "Minute for hourly preset", "0").option("--rrule <rrule>", "Custom RRULE string (required when --schedule=custom)").option("--timezone <tz>", "IANA timezone", "UTC").option("--dtstart <iso>", "Schedule anchor (ISO 8601)").option("--model <name>", "Override agent model").option("--paused", "Create in paused status").option("--json", "Output JSON").action(async (opts) => {
7503
+ automation.command("create").description("Create a new automation").requiredOption("--title <title>", "Display name").option("-p, --project <name>", "Project name (defaults to cwd)").requiredOption("--agent <object_id>", "Agent object id (agt_*)").option("--skill <path>", "Absolute path to the skill markdown file (optional \u2014 omit for a prompt-only run)").requiredOption("--prompt <text>", "Prompt sent to the agent (additional context when a skill is set)").requiredOption("--schedule <preset>", "hourly|daily|weekdays|weekly|custom").option("--time <HH:MM>", "Local time for daily/weekdays/weekly presets", "09:00").option("--weekday <0-6>", "Day of week for weekly preset (Sun=0)", "1").option("--minute <0-59>", "Minute for hourly preset", "0").option("--rrule <rrule>", "Custom RRULE string (required when --schedule=custom)").option("--timezone <tz>", "IANA timezone", "UTC").option("--dtstart <iso>", "Schedule anchor (ISO 8601)").option("--model <name>", "Override agent model").option("--paused", "Create in paused status").option("--json", "Output JSON").action(async (opts) => {
7504
7504
  const presets = ["hourly", "daily", "weekdays", "weekly", "custom"];
7505
7505
  if (!presets.includes(opts.schedule)) {
7506
7506
  fail8(`--schedule must be one of ${presets.join("|")}`);
@@ -7523,7 +7523,7 @@ automation.command("create").description("Create a new automation").requiredOpti
7523
7523
  title: opts.title,
7524
7524
  project_name: projectName,
7525
7525
  agent_object_id: opts.agent,
7526
- skill_file_path: opts.skill,
7526
+ skill_file_path: opts.skill ?? null,
7527
7527
  prompt: opts.prompt,
7528
7528
  schedule_preset: preset,
7529
7529
  rrule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@task0/cli",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "task0 — task-centric agent workflow CLI",
5
5
  "homepage": "https://github.com/cy0-labs/task0#readme",
6
6
  "repository": {