@koda-sl/baker-cli 0.27.1 → 0.28.0-dev.f971be32
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
CHANGED
|
@@ -1685,7 +1685,7 @@ baker actions list --bucketed=false --status pending --tag copy
|
|
|
1685
1685
|
|
|
1686
1686
|
baker actions get <action-id>
|
|
1687
1687
|
|
|
1688
|
-
baker actions claim <action-id> # live —
|
|
1688
|
+
baker actions claim <action-id> # live — returns action details + skill-loading hints
|
|
1689
1689
|
baker actions release <action-id>
|
|
1690
1690
|
|
|
1691
1691
|
baker actions create --name "Build hero" --description "..." --tag copy,landing
|
|
@@ -1708,6 +1708,7 @@ baker actions tag remove <action-id> --slug copy
|
|
|
1708
1708
|
Permissions enforced server-side:
|
|
1709
1709
|
|
|
1710
1710
|
- Only `claim`/`release` mutate live state.
|
|
1711
|
+
- `claim` returns action details (`id`, `name`, `description`, `tags`) and a `hints` array recommending you review the action context and load relevant skills.
|
|
1711
1712
|
- `update`, `complete`, `discard`, `tag remove`, `unlink` require the action to be claimed by the current chat — otherwise the API returns `FORBIDDEN` with a hint to claim first.
|
|
1712
1713
|
- Claiming an action already claimed by another chat returns `CONFLICT` with the other chat's title — pick a different action.
|
|
1713
1714
|
- All staged ops are reverted automatically when the chat is discarded.
|
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ import { videosCommand } from "./commands/videos/index.js";
|
|
|
12
12
|
const main = defineCommand({
|
|
13
13
|
meta: {
|
|
14
14
|
name: "baker",
|
|
15
|
-
version: "0.
|
|
15
|
+
version: "0.28.0",
|
|
16
16
|
description: `AI-agent CLI for finding and managing images, videos, testimonials, action items, and ad platform data in Baker.
|
|
17
17
|
|
|
18
18
|
Auth: Set BAKER_API_KEY (starts with bk_) and BAKER_API_URL environment variables.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../../src/commands/actions/claim.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../../src/commands/actions/claim.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,YAAY;;;;;;;;;;;EAgCvB,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineCommand } from "citty";
|
|
2
2
|
import { apiPost, validateConvexId } from "../../client.js";
|
|
3
3
|
import { requireChatId } from "../../env.js";
|
|
4
|
+
import { writeJson } from "../../output.js";
|
|
4
5
|
import { registerSchema } from "../../schemas.js";
|
|
5
|
-
import { failApi, failValidation
|
|
6
|
+
import { failApi, failValidation } from "./shared.js";
|
|
6
7
|
registerSchema({
|
|
7
8
|
command: "actions.claim",
|
|
8
|
-
description: "Claim an action for the current chat (live — visible to other chats immediately).",
|
|
9
|
+
description: "Claim an action for the current chat (live — visible to other chats immediately). Returns action details with tags and description to help decide which skills to load.",
|
|
9
10
|
args: {
|
|
10
11
|
id: { type: "string", description: "Action ID", required: true },
|
|
11
12
|
},
|
|
@@ -27,8 +28,14 @@ export const claimCommand = defineCommand({
|
|
|
27
28
|
}
|
|
28
29
|
validateConvexId(id);
|
|
29
30
|
const chatId = requireChatId();
|
|
30
|
-
await apiPost("/api/actions/claim", {
|
|
31
|
-
|
|
31
|
+
const response = await apiPost("/api/actions/claim", {
|
|
32
|
+
actionId: id,
|
|
33
|
+
chatId,
|
|
34
|
+
});
|
|
35
|
+
const hints = [
|
|
36
|
+
"Review the action name, description, and tags above — then load any skills that would help you complete this work.",
|
|
37
|
+
];
|
|
38
|
+
writeJson({ ...response, hints });
|
|
32
39
|
}
|
|
33
40
|
catch (err) {
|
|
34
41
|
failApi(err);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim.js","sourceRoot":"","sources":["../../../src/commands/actions/claim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,gBAAgB,E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