@koda-sl/baker-cli 0.426.0 → 0.428.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 -0
- package/dist/cli.js +21 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3547,6 +3547,7 @@ baker scheduled-agents create --name "Celebrate the first sale" --description "O
|
|
|
3547
3547
|
baker scheduled-agents update <id-or-temp_agent_id> --enabled false
|
|
3548
3548
|
baker scheduled-agents update <id-or-temp_agent_id> --run-at "2026-09-02T07:00:00Z" --prompt "Use the launch checklist"
|
|
3549
3549
|
baker scheduled-agents update <id-or-temp_agent_id> --trigger experiment.ended
|
|
3550
|
+
baker scheduled-agents update <id-or-temp_agent_id> --slack "#marketing" # each run opens a thread there; also here | me | off
|
|
3550
3551
|
baker scheduled-agents delete <id-or-temp_agent_id>
|
|
3551
3552
|
baker scheduled-agents unstage <id-or-temp_agent_id> # everything this chat staged on it
|
|
3552
3553
|
baker scheduled-agents unstage <id-or-temp_agent_id> --index 2 # one staged change only
|
package/dist/cli.js
CHANGED
|
@@ -100470,6 +100470,16 @@ var REACTION_ARGS = {
|
|
|
100470
100470
|
required: false
|
|
100471
100471
|
}
|
|
100472
100472
|
};
|
|
100473
|
+
var SLACK_ARG = {
|
|
100474
|
+
slack: {
|
|
100475
|
+
type: "string",
|
|
100476
|
+
description: "Tell each run in Slack: `here` (the Slack conversation this chat came from), `me` (a direct message to the person in this chat), `#channel` (a channel linked to this company), or `off`. Each run opens its own thread there and Baker reports on it: what it found, what it needs, whether to publish.",
|
|
100477
|
+
required: false
|
|
100478
|
+
}
|
|
100479
|
+
};
|
|
100480
|
+
function slackBody(args8) {
|
|
100481
|
+
return typeof args8.slack === "string" && args8.slack.trim().length > 0 ? { slack: args8.slack.trim() } : {};
|
|
100482
|
+
}
|
|
100473
100483
|
function wholeNumber(raw, flag, { min }) {
|
|
100474
100484
|
if (raw === void 0) {
|
|
100475
100485
|
return void 0;
|
|
@@ -100554,6 +100564,7 @@ registerSchema({
|
|
|
100554
100564
|
required: false
|
|
100555
100565
|
},
|
|
100556
100566
|
...REACTION_ARGS,
|
|
100567
|
+
...SLACK_ARG,
|
|
100557
100568
|
timezone: { type: "string", description: "IANA timezone override; defaults to Company Timezone", required: false },
|
|
100558
100569
|
disabled: { type: "boolean", description: "Create it switched off", required: false, default: false },
|
|
100559
100570
|
template: {
|
|
@@ -100578,6 +100589,7 @@ var createCommand3 = defineCommand244({
|
|
|
100578
100589
|
...NARROWING_ARGS,
|
|
100579
100590
|
occurrences: { type: "string", description: "Only these firings, e.g. 1 or 1,3", required: false },
|
|
100580
100591
|
...REACTION_ARGS,
|
|
100592
|
+
...SLACK_ARG,
|
|
100581
100593
|
timezone: { type: "string", description: "IANA timezone override", required: false },
|
|
100582
100594
|
disabled: { type: "boolean", description: "Create it switched off", required: false, default: false },
|
|
100583
100595
|
template: { type: "string", description: "Recipe id to start from", required: false },
|
|
@@ -100609,6 +100621,7 @@ var createCommand3 = defineCommand244({
|
|
|
100609
100621
|
...trigger,
|
|
100610
100622
|
...prompt ? { prompt } : {},
|
|
100611
100623
|
...reaction,
|
|
100624
|
+
...slackBody(args8),
|
|
100612
100625
|
...template.length > 0 ? { templateId: template } : {}
|
|
100613
100626
|
};
|
|
100614
100627
|
const response = await apiPost("/api/scheduled-agents/create", body);
|
|
@@ -101205,6 +101218,7 @@ registerSchema({
|
|
|
101205
101218
|
required: false
|
|
101206
101219
|
},
|
|
101207
101220
|
...REACTION_ARGS,
|
|
101221
|
+
...SLACK_ARG,
|
|
101208
101222
|
timezone: { type: "string", description: "IANA timezone override", required: false },
|
|
101209
101223
|
enabled: { type: "string", description: "Replacement enabled state", required: false, enum: ["true", "false"] }
|
|
101210
101224
|
}
|
|
@@ -101230,6 +101244,7 @@ var updateCommand4 = defineCommand253({
|
|
|
101230
101244
|
...NARROWING_ARGS,
|
|
101231
101245
|
occurrences: { type: "string", description: "Only these firings, e.g. 1 or 1,3", required: false },
|
|
101232
101246
|
...REACTION_ARGS,
|
|
101247
|
+
...SLACK_ARG,
|
|
101233
101248
|
timezone: { type: "string", description: "IANA timezone override", required: false },
|
|
101234
101249
|
enabled: { type: "string", description: "true|false", required: false },
|
|
101235
101250
|
...AUTO_PUBLISH_ARG
|
|
@@ -101260,6 +101275,11 @@ var updateCommand4 = defineCommand253({
|
|
|
101260
101275
|
Object.assign(body, reaction);
|
|
101261
101276
|
hasPatch = true;
|
|
101262
101277
|
}
|
|
101278
|
+
const slack = slackBody(args8);
|
|
101279
|
+
if (slack.slack !== void 0) {
|
|
101280
|
+
Object.assign(body, slack);
|
|
101281
|
+
hasPatch = true;
|
|
101282
|
+
}
|
|
101263
101283
|
const enabled = parseBooleanFlag(args8.enabled, "--enabled");
|
|
101264
101284
|
if (enabled !== void 0) {
|
|
101265
101285
|
body.enabled = enabled;
|
|
@@ -101267,7 +101287,7 @@ var updateCommand4 = defineCommand253({
|
|
|
101267
101287
|
}
|
|
101268
101288
|
if (!hasPatch) {
|
|
101269
101289
|
failValidation6(
|
|
101270
|
-
"Provide at least one of --name, --description, --prompt, --cron, --run-at, --trigger, --occurrences, --times, --when, --payload, --cooldown, --timezone, --enabled."
|
|
101290
|
+
"Provide at least one of --name, --description, --prompt, --cron, --run-at, --trigger, --occurrences, --times, --when, --payload, --cooldown, --timezone, --enabled, --slack."
|
|
101271
101291
|
);
|
|
101272
101292
|
}
|
|
101273
101293
|
body.chatId = requireChatId();
|