@letterstory/cli 0.176.88 → 0.176.89
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/lib/cli.mjs +1 -1
- package/lib/commands/automate.mjs +7 -2
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
87
87
|
|
|
88
88
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
89
|
-
export const VERSION = "0.176.
|
|
89
|
+
export const VERSION = "0.176.89";
|
|
90
90
|
|
|
91
91
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
92
92
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// `automate` — Letterpress → Automations (docs/architecture/event-automations.md): an event, read
|
|
2
2
|
// against your filter (--instruction), then done by Letterpress as your prompt (--prompt) says.
|
|
3
|
-
// options / list / show / add / set / try / runs / approve / reject / send / findings / act / dismiss / remove, through the
|
|
3
|
+
// options / list / show / add / set / try / trigger / runs / approve / reject / send / findings / act / dismiss / remove, through the
|
|
4
4
|
// same tools the app uses. (A letterbase's writing automations are made and paced with `automations`.) `list` also
|
|
5
5
|
// shows the jobs Letter runs for the account (source "letter": a letterbase's internal links, its add-your-name
|
|
6
6
|
// suggestions, Fix autopilot, Auto-Plan, and each letterbase's writing automations), each with its scope: changed with
|
|
@@ -165,6 +165,9 @@ export const ARGS = {
|
|
|
165
165
|
slack_channel: slackChannel,
|
|
166
166
|
limit: { flag: "limit", type: "num" },
|
|
167
167
|
},
|
|
168
|
+
trigger_event_automation: {
|
|
169
|
+
automation_id: { positional: 0, label: "automation-id", required: true },
|
|
170
|
+
},
|
|
168
171
|
list_automation_runs: {
|
|
169
172
|
automation_id: { flag: "automation" },
|
|
170
173
|
status: { flag: "status", enum: STATUSES },
|
|
@@ -234,6 +237,8 @@ export async function cmdAutomate(ctx) {
|
|
|
234
237
|
return run(rest, "update_event_automation", "Changed.");
|
|
235
238
|
case "try":
|
|
236
239
|
return run(rest, "try_event_automation");
|
|
240
|
+
case "trigger":
|
|
241
|
+
return run(rest, "trigger_event_automation");
|
|
237
242
|
case "runs":
|
|
238
243
|
return run(rest, "list_automation_runs");
|
|
239
244
|
case "approve":
|
|
@@ -253,7 +258,7 @@ export async function cmdAutomate(ctx) {
|
|
|
253
258
|
return run(rest, "delete_event_automation", "Removed.");
|
|
254
259
|
default:
|
|
255
260
|
throw new CliError(
|
|
256
|
-
`Unknown automate subcommand: ${sub ?? "(none)"}. Try: options, list, show, add, set, try, runs, approve, reject, send, findings, act, dismiss, remove`
|
|
261
|
+
`Unknown automate subcommand: ${sub ?? "(none)"}. Try: options, list, show, add, set, try, trigger, runs, approve, reject, send, findings, act, dismiss, remove`
|
|
257
262
|
);
|
|
258
263
|
}
|
|
259
264
|
}
|