@koda-sl/baker-cli 0.99.0 → 0.99.1
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/README.md +3 -1
- package/dist/cli.js +12 -0
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2303,7 +2303,8 @@ baker scheduled-actions list
|
|
|
2303
2303
|
baker scheduled-actions get <id-or-temp_sched_id>
|
|
2304
2304
|
|
|
2305
2305
|
baker scheduled-actions create --name "Weekly report" --description "Prepare report" --cron "0 9 * * MON" --timezone Europe/Madrid
|
|
2306
|
-
baker scheduled-actions create --name "Launch reminder" --description "Check launch" --run-at "2026-09-01T07:00:00Z" --disabled --no-spawn-agent
|
|
2306
|
+
baker scheduled-actions create --name "Launch reminder" --description "Check launch" --run-at "2026-09-01T07:00:00Z" --disabled --no-spawn-agent
|
|
2307
|
+
baker scheduled-actions create --name "Spend review" --description "Review spend anomalies" --cron "0 9 * * MON" --prompt "Focus on blockers"
|
|
2307
2308
|
|
|
2308
2309
|
baker scheduled-actions update <id-or-temp_sched_id> --enabled false
|
|
2309
2310
|
baker scheduled-actions update <id-or-temp_sched_id> --run-at "2026-09-02T07:00:00Z" --spawn-agent true --prompt "Use the launch checklist"
|
|
@@ -2322,6 +2323,7 @@ Rules:
|
|
|
2322
2323
|
- Company Timezone is the default; `--timezone` is an explicit IANA override.
|
|
2323
2324
|
- Scheduled actions spawn agents by default; create with `--no-spawn-agent` or update with `--spawn-agent false` to disable it.
|
|
2324
2325
|
- `--prompt` maps to the scheduled action's additional spawned-agent instructions (`agentPrompt`), not a replacement for Baker's automatic spawned Work Action reference.
|
|
2326
|
+
- `--prompt` requires an agent: it is rejected alongside `--no-spawn-agent` (create) or `--spawn-agent false` (update), since a bypassed agent never reads it.
|
|
2325
2327
|
|
|
2326
2328
|
---
|
|
2327
2329
|
|
package/dist/cli.js
CHANGED
|
@@ -16485,6 +16485,16 @@ function validateScheduledActionRef(ref) {
|
|
|
16485
16485
|
function isNoSpawnAgentFlagSet(args) {
|
|
16486
16486
|
return args["no-spawn-agent"] === true || args.noSpawnAgent === true || args.spawnAgent === false;
|
|
16487
16487
|
}
|
|
16488
|
+
function isPromptWithoutAgent(args, agentDisabled) {
|
|
16489
|
+
return agentDisabled && typeof args.prompt === "string";
|
|
16490
|
+
}
|
|
16491
|
+
function failIfPromptWithoutAgent(args, agentDisabled) {
|
|
16492
|
+
if (isPromptWithoutAgent(args, agentDisabled)) {
|
|
16493
|
+
failValidation2(
|
|
16494
|
+
"--prompt only applies when an agent is spawned; it has no effect with --no-spawn-agent or --spawn-agent false."
|
|
16495
|
+
);
|
|
16496
|
+
}
|
|
16497
|
+
}
|
|
16488
16498
|
function parseBooleanFlag(raw, flagName) {
|
|
16489
16499
|
if (raw === void 0) {
|
|
16490
16500
|
return void 0;
|
|
@@ -16577,6 +16587,7 @@ var createCommand2 = defineCommand132({
|
|
|
16577
16587
|
const schedule = buildScheduleBody(args, { required: true });
|
|
16578
16588
|
const chatId = requireChatId();
|
|
16579
16589
|
const noSpawnAgent = isNoSpawnAgentFlagSet(args);
|
|
16590
|
+
failIfPromptWithoutAgent(args, noSpawnAgent);
|
|
16580
16591
|
const body = {
|
|
16581
16592
|
chatId,
|
|
16582
16593
|
name,
|
|
@@ -16827,6 +16838,7 @@ var updateCommand2 = defineCommand137({
|
|
|
16827
16838
|
body.spawnAgent = spawnAgent;
|
|
16828
16839
|
hasPatch = true;
|
|
16829
16840
|
}
|
|
16841
|
+
failIfPromptWithoutAgent(args, spawnAgent === false);
|
|
16830
16842
|
if (typeof args.prompt === "string") {
|
|
16831
16843
|
body.agentPrompt = args.prompt;
|
|
16832
16844
|
hasPatch = true;
|