@koda-sl/baker-cli 0.20.0 → 0.23.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 -11
- package/dist/cli.js +1 -1
- package/dist/commands/actions/create.d.ts +0 -5
- package/dist/commands/actions/create.d.ts.map +1 -1
- package/dist/commands/actions/create.js +0 -15
- package/dist/commands/actions/create.js.map +1 -1
- package/dist/commands/actions/update.d.ts +0 -5
- package/dist/commands/actions/update.d.ts.map +1 -1
- package/dist/commands/actions/update.js +3 -14
- package/dist/commands/actions/update.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1374,8 +1374,8 @@ baker actions get <action-id>
|
|
|
1374
1374
|
baker actions claim <action-id> # live — required before update/complete/discard
|
|
1375
1375
|
baker actions release <action-id>
|
|
1376
1376
|
|
|
1377
|
-
baker actions create --name "Build hero" --description "..." --
|
|
1378
|
-
baker actions update <action-id> --name "Better name"
|
|
1377
|
+
baker actions create --name "Build hero" --description "..." --tag copy,landing
|
|
1378
|
+
baker actions update <action-id> --name "Better name"
|
|
1379
1379
|
baker actions complete <action-id> --note "What was done" # stages — applies on chat publish
|
|
1380
1380
|
baker actions discard <action-id> --reason "obsolete"
|
|
1381
1381
|
|
|
@@ -1397,15 +1397,6 @@ Permissions enforced server-side:
|
|
|
1397
1397
|
- Claiming an action already claimed by another chat returns `CONFLICT` with the other chat's title — pick a different action.
|
|
1398
1398
|
- All staged ops are reverted automatically when the chat is discarded.
|
|
1399
1399
|
|
|
1400
|
-
`--executor` (required on `create`):
|
|
1401
|
-
|
|
1402
|
-
The rule: **`human` only when the agent contributes literally zero. Anything else is `agent`.**
|
|
1403
|
-
|
|
1404
|
-
- `agent` (default for almost everything) — the agent can produce a deliverable, draft, plan, list, script, page, or config that addresses the action. Final UI clicks, pastes, or uploads done by a human are implicit follow-ups and go in the description as a `Final step (human): …` line. Examples: build a landing page, draft RSA copy, prepare a keyword list, scaffold tracking code, write a CRM mapping spec.
|
|
1405
|
-
- `human` (last resort) — the agent contributes literally zero. Reserved for: sign a contract / DPA, authorize billing or budget, attend in-person / phone meeting, transfer account ownership the agent can't initiate. Surfaces in the `humanOnly` bucket of `baker actions list` — agents must not claim these.
|
|
1406
|
-
|
|
1407
|
-
If you discover after claiming that an action actually needs the other type, run `baker actions update <id> --executor human|agent` and `release` so the right party can pick it up.
|
|
1408
|
-
|
|
1409
1400
|
---
|
|
1410
1401
|
|
|
1411
1402
|
### `baker schema [command]`
|
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.23.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.
|
|
@@ -10,11 +10,6 @@ export declare const createCommand: import("citty").CommandDef<{
|
|
|
10
10
|
readonly required: false;
|
|
11
11
|
readonly default: "";
|
|
12
12
|
};
|
|
13
|
-
readonly executor: {
|
|
14
|
-
readonly type: "string";
|
|
15
|
-
readonly description: "'agent' (default — agent contributes anything: draft, build, scaffold, prepare) or 'human' (last resort — agent contributes literally zero: sign, authorize, attend). Required.";
|
|
16
|
-
readonly required: false;
|
|
17
|
-
};
|
|
18
13
|
readonly tag: {
|
|
19
14
|
readonly type: "string";
|
|
20
15
|
readonly description: "Tag slugs (comma-separated, repeatable)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/actions/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/actions/create.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;EAsCxB,CAAC"}
|
|
@@ -14,11 +14,6 @@ registerSchema({
|
|
|
14
14
|
description: "Context-complete description: what / why / where / done-when",
|
|
15
15
|
required: false,
|
|
16
16
|
},
|
|
17
|
-
executor: {
|
|
18
|
-
type: "string",
|
|
19
|
-
description: "Who executes this. Default 'agent' if the agent contributes anything — drafts copy, builds a page, prepares a list, scaffolds code, proposes options — even when a human does the final UI click (put that in the description as 'Final step (human): ...'). Pick 'human' ONLY when the agent contributes literally zero: sign contract, authorize billing, in-person meeting, account-ownership transfer. Required.",
|
|
20
|
-
required: true,
|
|
21
|
-
},
|
|
22
17
|
tag: { type: "string", description: "Tag slugs (comma-separated)", required: false },
|
|
23
18
|
"temp-id": { type: "string", description: "Custom tempId (auto-generated if omitted)", required: false },
|
|
24
19
|
},
|
|
@@ -31,11 +26,6 @@ export const createCommand = defineCommand({
|
|
|
31
26
|
args: {
|
|
32
27
|
name: { type: "string", description: "Action name", required: false },
|
|
33
28
|
description: { type: "string", description: "Description", required: false, default: "" },
|
|
34
|
-
executor: {
|
|
35
|
-
type: "string",
|
|
36
|
-
description: "'agent' (default — agent contributes anything: draft, build, scaffold, prepare) or 'human' (last resort — agent contributes literally zero: sign, authorize, attend). Required.",
|
|
37
|
-
required: false,
|
|
38
|
-
},
|
|
39
29
|
tag: { type: "string", description: "Tag slugs (comma-separated, repeatable)", required: false },
|
|
40
30
|
"temp-id": { type: "string", description: "Optional custom tempId", required: false },
|
|
41
31
|
},
|
|
@@ -45,10 +35,6 @@ export const createCommand = defineCommand({
|
|
|
45
35
|
if (!name || name.trim().length === 0) {
|
|
46
36
|
failValidation("--name is required.");
|
|
47
37
|
}
|
|
48
|
-
const executor = args.executor;
|
|
49
|
-
if (executor !== "agent" && executor !== "human") {
|
|
50
|
-
failValidation("--executor is required. Default 'agent' if the agent contributes anything (draft, build, scaffold, prepare) — even when a human does the final UI click. Pick 'human' ONLY when the agent contributes literally zero (sign, authorize, attend, transfer ownership).");
|
|
51
|
-
}
|
|
52
38
|
const chatId = requireChatId();
|
|
53
39
|
const tempId = args["temp-id"] || generateTempId();
|
|
54
40
|
const tagSlugs = args.tag
|
|
@@ -62,7 +48,6 @@ export const createCommand = defineCommand({
|
|
|
62
48
|
tempId,
|
|
63
49
|
name,
|
|
64
50
|
description: args.description ?? "",
|
|
65
|
-
requiresHuman: executor === "human",
|
|
66
51
|
tagSlugs,
|
|
67
52
|
});
|
|
68
53
|
writeJson(response);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/actions/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEtE,cAAc,CAAC;IACb,OAAO,EAAE,gBAAgB;IACzB,WAAW,EACT,kIAAkI;IACpI,IAAI,EAAE;QACJ,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4CAA4C,EAAE,QAAQ,EAAE,IAAI,EAAE;QACnG,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE,KAAK;SAChB;QACD,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/actions/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC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E,KAAK,EAAE;KACtF;IACD,GAAG,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QACtB,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,IAAI,CAAC,IAA0B,CAAC;YAC7C,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACtC,cAAc,CAAC,qBAAqB,CAAC,CAAC;YACxC,CAAC;YACD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;YAC/B,MAAM,MAAM,GAAI,IAAI,CAAC,SAAS,CAAwB,IAAI,cAAc,EAAE,CAAC;YAC3E,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG;gBACvB,CAAC,CAAE,IAAI,CAAC,GAAc;qBACjB,KAAK,CAAC,GAAG,CAAC;qBACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;qBACpB,MAAM,CAAC,OAAO,CAAC;gBACpB,CAAC,CAAC,SAAS,CAAC;YACd,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAyC,qBAAqB,EAAE;gBAC5F,MAAM;gBACN,MAAM;gBACN,IAAI;gBACJ,WAAW,EAAG,IAAI,CAAC,WAAsB,IAAI,EAAE;gBAC/C,QAAQ;aACT,CAAC,CAAC;YACH,SAAS,CAAC,QAAQ,CAAC,CAAC;QACtB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,GAAG,CAAC,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -19,10 +19,5 @@ export declare const updateCommand: import("citty").CommandDef<{
|
|
|
19
19
|
readonly description: "New description";
|
|
20
20
|
readonly required: false;
|
|
21
21
|
};
|
|
22
|
-
readonly executor: {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly description: "Reclassify: 'agent' or 'human'";
|
|
25
|
-
readonly required: false;
|
|
26
|
-
};
|
|
27
22
|
}>;
|
|
28
23
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/actions/update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/actions/update.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;EAiCxB,CAAC"}
|
|
@@ -5,16 +5,11 @@ import { registerSchema } from "../../schemas.js";
|
|
|
5
5
|
import { failApi, failValidation, writeOk } from "./shared.js";
|
|
6
6
|
registerSchema({
|
|
7
7
|
command: "actions.update",
|
|
8
|
-
description: "Stage an update on a claimed action (name
|
|
8
|
+
description: "Stage an update on a claimed action (name and/or description). Applies on publish.",
|
|
9
9
|
args: {
|
|
10
10
|
id: { type: "string", description: "Action ID (must be claimed by current chat)", required: true },
|
|
11
11
|
name: { type: "string", description: "New name", required: false },
|
|
12
12
|
description: { type: "string", description: "New description", required: false },
|
|
13
|
-
executor: {
|
|
14
|
-
type: "string",
|
|
15
|
-
description: "Reclassify executor. 'agent' if the agent contributes anything (draft, build, scaffold) — even when a human does the final UI click. 'human' only when the agent contributes literally zero (sign, authorize, attend).",
|
|
16
|
-
required: false,
|
|
17
|
-
},
|
|
18
13
|
},
|
|
19
14
|
});
|
|
20
15
|
export const updateCommand = defineCommand({
|
|
@@ -27,7 +22,6 @@ export const updateCommand = defineCommand({
|
|
|
27
22
|
"action-id": { type: "string", description: "Action ID", required: false },
|
|
28
23
|
name: { type: "string", description: "New name", required: false },
|
|
29
24
|
description: { type: "string", description: "New description", required: false },
|
|
30
|
-
executor: { type: "string", description: "Reclassify: 'agent' or 'human'", required: false },
|
|
31
25
|
},
|
|
32
26
|
run: async ({ args }) => {
|
|
33
27
|
try {
|
|
@@ -36,12 +30,8 @@ export const updateCommand = defineCommand({
|
|
|
36
30
|
failValidation("Action ID is required.");
|
|
37
31
|
}
|
|
38
32
|
validateConvexId(id);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
failValidation("--executor must be 'agent' or 'human'.");
|
|
42
|
-
}
|
|
43
|
-
if (args.name === undefined && args.description === undefined && executor === undefined) {
|
|
44
|
-
failValidation("Provide at least one of --name, --description, --executor.");
|
|
33
|
+
if (args.name === undefined && args.description === undefined) {
|
|
34
|
+
failValidation("Provide at least one of --name, --description.");
|
|
45
35
|
}
|
|
46
36
|
const chatId = requireChatId();
|
|
47
37
|
await apiPost("/api/actions/update", {
|
|
@@ -49,7 +39,6 @@ export const updateCommand = defineCommand({
|
|
|
49
39
|
actionId: id,
|
|
50
40
|
name: args.name,
|
|
51
41
|
description: args.description,
|
|
52
|
-
...(executor !== undefined ? { requiresHuman: executor === "human" } : {}),
|
|
53
42
|
});
|
|
54
43
|
writeOk();
|
|
55
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/actions/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/D,cAAc,CAAC;IACb,OAAO,EAAE,gBAAgB;IACzB,WAAW,
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/actions/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7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