@sideboard-ai/cli 0.1.340 → 0.1.342
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.
- package/dist/index.js +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -557,7 +557,17 @@ ${preview.diffStat}`);
|
|
|
557
557
|
console.log(
|
|
558
558
|
`${row.id.slice(0, 8)} ${on} ${formatScheduleWhen(row.when)} next ${row.nextRunAt} ${target} ${row.name}`
|
|
559
559
|
);
|
|
560
|
-
|
|
560
|
+
const latest = row.runs[0];
|
|
561
|
+
if (latest) {
|
|
562
|
+
const detail = latest.error ? chalk.red(latest.error) : chalk.green("ok");
|
|
563
|
+
const chat = latest.threadId ? chalk.dim(` ${latest.threadId.slice(0, 8)}`) : "";
|
|
564
|
+
console.log(`${chalk.dim(` last ${latest.at} `)}${detail}${chat}`);
|
|
565
|
+
if (row.runs.length > 1) {
|
|
566
|
+
console.log(chalk.dim(` ${row.runs.length} runs kept`));
|
|
567
|
+
}
|
|
568
|
+
} else if (row.lastError) {
|
|
569
|
+
console.log(chalk.red(` ${row.lastError}`));
|
|
570
|
+
}
|
|
561
571
|
}
|
|
562
572
|
});
|
|
563
573
|
scheduleCmd.command("add").requiredOption("--prompt <text>", "prompt / goal queued when the job fires").option("--name <name>", "short label").option("--at <iso>", "one-shot ISO datetime").option("--every <duration>", "interval (15m, 1h, 6h, 1d)").option("--time <hh:mm>", "clock time (24-hour). Daily if --days is omitted").option("--days <list>", "daily, weekdays, weekends, or mon,wed,fri").option("--cron <expr>", "5-field cron").option("--tz <iana>", "timezone for --cron or --time").option(
|