@koda-sl/baker-cli 0.101.0 → 0.102.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 +1 -1
- package/dist/cli.js +7 -10
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2381,7 +2381,7 @@ baker actions unlink --blocker <id> --blocked <id>
|
|
|
2381
2381
|
# Review and edit the ops staged in THIS chat before publish
|
|
2382
2382
|
baker actions draft # show every staged op + footgun warnings
|
|
2383
2383
|
baker actions draft remove temp_hero # drop a staged create (cascades its complete/link ops)
|
|
2384
|
-
baker actions draft remove <id> --op complete # drop a staged op on a real action (--op update|complete|discard
|
|
2384
|
+
baker actions draft remove <id> --op complete # drop a staged op on a real action (--op update|complete|discard)
|
|
2385
2385
|
baker actions draft clear # drop everything staged in this chat
|
|
2386
2386
|
```
|
|
2387
2387
|
|
package/dist/cli.js
CHANGED
|
@@ -861,7 +861,7 @@ var discardCommand = defineCommand4({
|
|
|
861
861
|
|
|
862
862
|
// src/commands/actions/draft.ts
|
|
863
863
|
import { defineCommand as defineCommand5 } from "citty";
|
|
864
|
-
var REMOVE_OP_KINDS = ["update", "complete", "discard"
|
|
864
|
+
var REMOVE_OP_KINDS = ["update", "complete", "discard"];
|
|
865
865
|
registerSchema({
|
|
866
866
|
command: "actions.draft.list",
|
|
867
867
|
description: "Review the action ops staged in THIS chat's draft before publish (creates/updates/completes/discards/links). Staged ops are invisible to `actions list`/`status` until the chat publishes \u2014 use this to verify what will apply and catch duplicates.",
|
|
@@ -869,15 +869,14 @@ registerSchema({
|
|
|
869
869
|
});
|
|
870
870
|
registerSchema({
|
|
871
871
|
command: "actions.draft.remove",
|
|
872
|
-
description: "Drop a single staged action op from this chat's draft before publish. For a tempId, removing the create cascades into its complete/link
|
|
872
|
+
description: "Drop a single staged action op from this chat's draft before publish. For a tempId, removing the create cascades into its complete/link ops. For a real action ID, pass --op to say which op to drop. Use this to UNDO a staged op \u2014 never stage `complete` to delete an action.",
|
|
873
873
|
args: {
|
|
874
874
|
ref: { type: "string", description: "tempId (temp_*) or real action ID to drop from the draft", required: true },
|
|
875
875
|
op: {
|
|
876
876
|
type: "string",
|
|
877
|
-
description: "Required for real action IDs: which op to drop (update|complete|discard
|
|
877
|
+
description: "Required for real action IDs: which op to drop (update|complete|discard)",
|
|
878
878
|
required: false
|
|
879
|
-
}
|
|
880
|
-
"tag-slug": { type: "string", description: "Tag slug (only for --op tagAdd|tagRemove)", required: false }
|
|
879
|
+
}
|
|
881
880
|
}
|
|
882
881
|
});
|
|
883
882
|
registerSchema({
|
|
@@ -909,10 +908,9 @@ var removeCommand = defineCommand5({
|
|
|
909
908
|
ref: { type: "positional", description: "tempId or real action ID", required: false },
|
|
910
909
|
op: {
|
|
911
910
|
type: "string",
|
|
912
|
-
description: "Op kind for real IDs: update|complete|discard
|
|
911
|
+
description: "Op kind for real IDs: update|complete|discard",
|
|
913
912
|
required: false
|
|
914
|
-
}
|
|
915
|
-
"tag-slug": { type: "string", description: "Tag slug (for tagAdd|tagRemove)", required: false }
|
|
913
|
+
}
|
|
916
914
|
},
|
|
917
915
|
run: async ({ args }) => {
|
|
918
916
|
try {
|
|
@@ -936,10 +934,9 @@ var removeCommand = defineCommand5({
|
|
|
936
934
|
`Removing a staged op for a real action ID requires --op (one of: ${REMOVE_OP_KINDS.join("|")}).`
|
|
937
935
|
);
|
|
938
936
|
}
|
|
939
|
-
const tagSlug = args["tag-slug"];
|
|
940
937
|
await apiPost("/api/actions/draft-op/remove", {
|
|
941
938
|
chatId,
|
|
942
|
-
target: { kind: "actionId", actionId: ref, opKind: op
|
|
939
|
+
target: { kind: "actionId", actionId: ref, opKind: op }
|
|
943
940
|
});
|
|
944
941
|
writeJson({ ok: true, data: { removed: ref, kind: "actionId", op } });
|
|
945
942
|
} catch (err) {
|