@koda-sl/baker-cli 0.138.0 → 0.139.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.
- package/README.md +2 -0
- package/dist/cli.js +8 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2462,6 +2462,8 @@ baker actions create --name "Build hero" --priority high --tags landing,creative
|
|
|
2462
2462
|
# If no --priority is passed, create emits a MISSING --priority hint — the action ranks as normal/medium in the do-first order.
|
|
2463
2463
|
baker actions update <action-id> --name "Better name" --tags google-ads,strategy # --tags REPLACES the set; '' clears
|
|
2464
2464
|
baker actions update <action-id> --priority urgent # urgent|high|medium|low; 'none' clears
|
|
2465
|
+
baker actions update <tempId> --description "..." # a tempId from `create` in THIS chat edits the still-staged task in place
|
|
2466
|
+
# ...folds into the staged create op — flesh out a task you just created instead of removing and recreating it
|
|
2465
2467
|
baker actions complete <action-id-or-tempId> --note "What was done" # stages — applies on chat publish
|
|
2466
2468
|
# --note is REQUIRED (≥20 chars): what changed, where, and the outcome. It is the durable, client-facing
|
|
2467
2469
|
# record surfaced by `baker actions log`. A missing/too-short note is rejected with a VALIDATION_ERROR.
|
package/dist/cli.js
CHANGED
|
@@ -3602,9 +3602,9 @@ var unlinkCommand = defineCommand16({
|
|
|
3602
3602
|
import { defineCommand as defineCommand17 } from "citty";
|
|
3603
3603
|
registerSchema({
|
|
3604
3604
|
command: "actions.update",
|
|
3605
|
-
description: "Stage an update on an action (name, description, tags, and/or priority) \u2014 no claim needed; edit any action you're not working on. Applies on publish. Blocked only if another chat currently has
|
|
3605
|
+
description: "Stage an update on an action (name, description, tags, and/or priority) \u2014 no claim needed; edit any action you're not working on. Accepts either a real action ID or a tempId from `baker actions create` in THIS chat (edits the still-staged task in place \u2014 use this to flesh out a task you just created instead of removing and recreating it). Applies on publish. Blocked only if another chat currently has a real action claimed. --tags REPLACES the tag set; pass --tags '' to clear. --priority accepts urgent|high|medium|low or 'none' to clear back to unset (== normal).",
|
|
3606
3606
|
args: {
|
|
3607
|
-
id: { type: "string", description: "Action ID", required: true },
|
|
3607
|
+
id: { type: "string", description: "Action ID or tempId (temp_*) of a task staged in this chat", required: true },
|
|
3608
3608
|
name: { type: "string", description: "New name", required: false },
|
|
3609
3609
|
description: { type: "string", description: "New description", required: false },
|
|
3610
3610
|
tags: {
|
|
@@ -3622,11 +3622,11 @@ registerSchema({
|
|
|
3622
3622
|
var updateCommand = defineCommand17({
|
|
3623
3623
|
meta: {
|
|
3624
3624
|
name: "update",
|
|
3625
|
-
description: 'Stage an update on an action (no claim needed). Example: baker actions update <id> --
|
|
3625
|
+
description: 'Stage an update on an action, or edit a task still staged in this chat by its tempId (no claim needed). Example: baker actions update <id-or-tempId> --description "\u2026"'
|
|
3626
3626
|
},
|
|
3627
3627
|
args: {
|
|
3628
|
-
id: { type: "positional", description: "Action ID", required: false },
|
|
3629
|
-
"action-id": { type: "string", description: "Action ID", required: false },
|
|
3628
|
+
id: { type: "positional", description: "Action ID or tempId (temp_*)", required: false },
|
|
3629
|
+
"action-id": { type: "string", description: "Action ID or tempId (temp_*)", required: false },
|
|
3630
3630
|
name: { type: "string", description: "New name", required: false },
|
|
3631
3631
|
description: { type: "string", description: "New description", required: false },
|
|
3632
3632
|
tags: { type: "string", description: "Comma-separated tag slugs \u2014 REPLACES existing ('' clears)", required: false },
|
|
@@ -3638,7 +3638,9 @@ var updateCommand = defineCommand17({
|
|
|
3638
3638
|
if (!id) {
|
|
3639
3639
|
failValidation("Action ID is required.");
|
|
3640
3640
|
}
|
|
3641
|
-
|
|
3641
|
+
if (!isTempId(id)) {
|
|
3642
|
+
validateConvexId(id);
|
|
3643
|
+
}
|
|
3642
3644
|
const tags = parseTagList(args.tags);
|
|
3643
3645
|
const priority = parsePriority(args.priority, { allowClear: true });
|
|
3644
3646
|
if (args.name === void 0 && args.description === void 0 && tags === void 0 && priority === void 0) {
|