@erdoai/cli 0.228.0 → 0.229.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/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11433,7 +11433,7 @@ function scheduleBound(flag, v) {
|
|
|
11433
11433
|
}
|
|
11434
11434
|
autoCmd.command("create <name>").description(
|
|
11435
11435
|
"Create an automation. Pass --run-at for one-off work at a date (it runs once, then stops for good) instead of a recurring automation that checks the date"
|
|
11436
|
-
).option("--description <text>", "What the automation does").option("--instructions <text>", "Instructions for each run (agent automation)").option("--script-js <js>", "Deterministic script body (scripted automation, no LLM)").option("--script-file <path>", "Read the script body from a file (scripted automation)").requiredOption("--interval <minutes>", "Interval in minutes (minimum 5)", (v) => parseInt(v, 10)).option("--timezone <tz>", "Scheduling timezone, e.g. America/New_York (default UTC)").option("--at <HH:MM>", "Clock time of each run in --timezone, e.g. 21:02").option("--run-after <id>", "Also start when this automation finishes").option("--after-when <when>", "success or finished (default finished)").option("--after-delay <minutes>", "Wait this many minutes after the predecessor finishes", (v) => parseInt(v, 10)).option("--instead-of-schedule", "Run only after --run-after, with no clock of its own").option("--run-at <rfc3339>", "Run once at or after this instant, then stop permanently").option("--ends-at <rfc3339>", "Never run after this instant").addOption(new Option2("--agent-key <key>", "Executor for an agent automation").choices(["erdo.heartbeat-executor", "erdo.workflow-executor"])).option("--model <id>", "LLM for each run, for example claude-haiku-5-5. Omit for the executor default").addOption(new Option2("--conversation <target>", "Target 'new' (fresh thread) or 'direct' conversation").choices(["new", "direct"])).option("--thread-id <id>", "Post each run into an existing conversation UUID").option("--persona-id <id>", "Org-enabled persona UUID to speak as").action(
|
|
11436
|
+
).option("--description <text>", "What the automation does").option("--instructions <text>", "Instructions for each run (agent automation)").option("--script-js <js>", "Deterministic script body (scripted automation, no LLM)").option("--script-file <path>", "Read the script body from a file (scripted automation)").requiredOption("--interval <minutes>", "Interval in minutes (minimum 5)", (v) => parseInt(v, 10)).option("--timezone <tz>", "Scheduling timezone, e.g. America/New_York (default UTC)").option("--at <HH:MM>", "Clock time of each run in --timezone, e.g. 21:02").option("--run-after <id>", "Also start when this automation finishes").option("--after-when <when>", "success or finished (default finished)").option("--after-delay <minutes>", "Wait this many minutes after the predecessor finishes", (v) => parseInt(v, 10)).option("--instead-of-schedule", "Run only after --run-after, with no clock of its own").option("--run-at <rfc3339>", "Run once at or after this instant, then stop permanently").option("--ends-at <rfc3339>", "Never run after this instant").addOption(new Option2("--agent-key <key>", "Executor for an agent automation").choices(["erdo.heartbeat-executor", "erdo.workflow-executor"])).option("--model <id>", "LLM for each run, for example claude-haiku-5-5. Omit for the executor default").addOption(new Option2("--effort <level>", "Reasoning effort: low, medium, or high (workflow executor defaults to high)").choices(["low", "medium", "high"])).addOption(new Option2("--conversation <target>", "Target 'new' (fresh thread) or 'direct' conversation").choices(["new", "direct"])).option("--thread-id <id>", "Post each run into an existing conversation UUID").option("--persona-id <id>", "Org-enabled persona UUID to speak as").action(
|
|
11437
11437
|
async (name, opts) => {
|
|
11438
11438
|
try {
|
|
11439
11439
|
if (opts.scriptJs && opts.scriptFile) {
|
|
@@ -11457,6 +11457,7 @@ autoCmd.command("create <name>").description(
|
|
|
11457
11457
|
ends_at: scheduleBound("--ends-at", opts.endsAt),
|
|
11458
11458
|
agent_key: opts.agentKey,
|
|
11459
11459
|
model: opts.model,
|
|
11460
|
+
effort: opts.effort,
|
|
11460
11461
|
conversation: opts.conversation,
|
|
11461
11462
|
thread_id: opts.threadId,
|
|
11462
11463
|
persona_id: opts.personaId
|
|
@@ -11484,7 +11485,7 @@ autoCmd.command("list").description("List automations").option("--include-refres
|
|
|
11484
11485
|
if (!page.has_more) break;
|
|
11485
11486
|
offset += page.heartbeats.length;
|
|
11486
11487
|
}
|
|
11487
|
-
for (const h of heartbeats) console.log(`${h.id} ${h.state} ${h.name} ${h.kind === "script" ? "script" : h.thread_id ? `thread:${h.thread_id}` : h.conversation ?? "new"}${h.persona_id ? ` persona:${h.persona_id}` : ""}${h.model ? ` model:${h.model}` : ""}${heartbeatBounds(h)}`);
|
|
11488
|
+
for (const h of heartbeats) console.log(`${h.id} ${h.state} ${h.name} ${h.kind === "script" ? "script" : h.thread_id ? `thread:${h.thread_id}` : h.conversation ?? "new"}${h.persona_id ? ` persona:${h.persona_id}` : ""}${h.model ? ` model:${h.model}` : ""} effort:${h.effort ?? "default"}${heartbeatBounds(h)}`);
|
|
11488
11489
|
for (const job of jobs.values()) {
|
|
11489
11490
|
const triggers = job.trigger_summary.map((trigger) => trigger.type === "cron" ? `cron:${trigger.cron_expression}${trigger.timezone ? ` ${trigger.timezone}` : ""}` : trigger.type === "heartbeat" ? `every:${trigger.interval_minutes}m${trigger.timezone ? ` ${trigger.timezone}` : ""}` : trigger.type).join(",");
|
|
11490
11491
|
console.log(`${job.id} ${job.state} ${job.name} job:${job.type} ${job.kind} ${triggers}`);
|
|
@@ -11517,7 +11518,7 @@ autoCmd.command("run <id>").description("Trigger an automation now").option("--m
|
|
|
11517
11518
|
fail(e);
|
|
11518
11519
|
}
|
|
11519
11520
|
});
|
|
11520
|
-
autoCmd.command("update <id>").description("Edit an automation \u2014 rename, reschedule (--cron for a scheduled job, --interval/--at for a heartbeat), or replace its script/instructions").option("--name <name>", "New name").option("--description <text>", "New description").option("--instructions <text>", "Replacement instructions (agent automation)").addOption(new Option2("--agent-key <key>", "Executor for an agent automation; omit to keep current").choices(["erdo.heartbeat-executor", "erdo.workflow-executor"])).option("--model <id>", "Pin the LLM for later runs. Omit to keep the current pin").option("--clear-model", "Remove the model pin so later runs use the skill model, then the executor default").option("--script-js <js>", "Replacement script body (scripted automation)").option(
|
|
11521
|
+
autoCmd.command("update <id>").description("Edit an automation \u2014 rename, reschedule (--cron for a scheduled job, --interval/--at for a heartbeat), or replace its script/instructions").option("--name <name>", "New name").option("--description <text>", "New description").option("--instructions <text>", "Replacement instructions (agent automation)").addOption(new Option2("--agent-key <key>", "Executor for an agent automation; omit to keep current").choices(["erdo.heartbeat-executor", "erdo.workflow-executor"])).option("--model <id>", "Pin the LLM for later runs. Omit to keep the current pin").addOption(new Option2("--effort <level>", "Reasoning effort: low, medium, or high. Omit to keep the current value").choices(["low", "medium", "high"])).option("--clear-model", "Remove the model pin so later runs use the skill model, then the executor default").option("--script-js <js>", "Replacement script body (scripted automation)").option(
|
|
11521
11522
|
"--script-file <path>",
|
|
11522
11523
|
"Read the replacement script body from a file (scripted automation)"
|
|
11523
11524
|
).addOption(new Option2("--conversation <target>", "Target 'new' (fresh thread) or 'direct' conversation").choices(["new", "direct"])).option("--thread-id <id>", "Post each run into an existing conversation UUID").option("--persona-id <id>", "Org-enabled persona UUID to speak as").addOption(new Option2("--clear-persona", "Remove the explicit persona binding; template attribution may still apply").conflicts("personaId")).option("--interval <minutes>", "New interval in minutes (minimum 5)", (v) => parseInt(v, 10)).option("--timezone <tz>", "New scheduling timezone, e.g. America/New_York").option("--at <HH:MM>", "Clock time of each run in the automation timezone, e.g. 21:02").option("--clear-at", "Clear the clock time so the next run is one interval after this save").option("--run-after <id>", "Start when this automation finishes").option("--clear-run-after", "Stop following another automation").option("--after-when <when>", "success or finished").option("--after-delay <minutes>", "Wait this many minutes after the predecessor finishes", (v) => parseInt(v, 10)).option("--instead-of-schedule", "Run only from the chain, with no clock").option("--keep-schedule", "Keep the clock as well as the chain").option("--run-at <rfc3339>", "New one-off fire time: runs once at or after it, then stops permanently (omit to keep)").option("--ends-at <rfc3339>", "New end time after which it never runs (omit to keep)").option("--cron <expr>", 'New schedule for a cron-scheduled automation, read in --timezone (or its saved one), e.g. "0 17 * * 5" for Fridays at 17:00. Edits the same automation in place').option("--cron-trigger <id>", "Which cron trigger to change, when the automation has more than one (see list)").action(
|
|
@@ -11550,6 +11551,7 @@ autoCmd.command("update <id>").description("Edit an automation \u2014 rename, re
|
|
|
11550
11551
|
instructions: opts.instructions,
|
|
11551
11552
|
agent_key: opts.agentKey,
|
|
11552
11553
|
model: opts.model,
|
|
11554
|
+
effort: opts.effort,
|
|
11553
11555
|
clear_model: opts.clearModel,
|
|
11554
11556
|
script_js: scriptJs,
|
|
11555
11557
|
interval_minutes: opts.interval,
|