@erdoai/cli 0.227.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2348,10 +2348,12 @@ var ErdoClient = class {
2348
2348
  );
2349
2349
  }
2350
2350
  // --- event pipelines ---
2351
- listEventPipelines(limit, offset) {
2351
+ listEventPipelines(limit, offset, include, summaryFailureBasis) {
2352
2352
  const q = new URLSearchParams();
2353
2353
  if (limit) q.set("limit", String(limit));
2354
2354
  if (offset) q.set("offset", String(offset));
2355
+ if (include) q.set("include", include);
2356
+ if (summaryFailureBasis) q.set("summary_failure_basis", summaryFailureBasis);
2355
2357
  const qs = q.toString();
2356
2358
  return this.request("GET", `/v1/event-pipelines${qs ? `?${qs}` : ""}`);
2357
2359
  }
@@ -11132,9 +11134,9 @@ connectLinksCmd.command("revoke <id>").description("Revoke a pending connect lin
11132
11134
  }
11133
11135
  });
11134
11136
  var pipelinesCmd = program.command("event-pipelines").description("Inspect event pipelines (lead-capture / webhook flows)");
11135
- pipelinesCmd.command("list").description("List event pipelines in the active org").option("-n, --limit <n>", "max rows", (v) => parseInt(v, 10)).action(async (opts) => {
11137
+ pipelinesCmd.command("list").description("List event pipelines in the active org").option("-n, --limit <n>", "max rows", (v) => parseInt(v, 10)).option("--with-execution-summary", "add each pipeline's recent-execution health (latest outcome, failures in the last 30 days, held refusals) in the same call").option("--failure-basis <basis>", "with --with-execution-summary: outcome (default) or error_text (also counts soft action errors on a 2xx and 202 drops as failed)").action(async (opts) => {
11136
11138
  try {
11137
- print(await new ErdoClient().listEventPipelines(opts.limit));
11139
+ print(await new ErdoClient().listEventPipelines(opts.limit, void 0, opts.withExecutionSummary ? "execution_summary" : void 0, opts.failureBasis));
11138
11140
  } catch (e) {
11139
11141
  fail(e);
11140
11142
  }
@@ -11431,7 +11433,7 @@ function scheduleBound(flag, v) {
11431
11433
  }
11432
11434
  autoCmd.command("create <name>").description(
11433
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"
11434
- ).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(
11435
11437
  async (name, opts) => {
11436
11438
  try {
11437
11439
  if (opts.scriptJs && opts.scriptFile) {
@@ -11455,6 +11457,7 @@ autoCmd.command("create <name>").description(
11455
11457
  ends_at: scheduleBound("--ends-at", opts.endsAt),
11456
11458
  agent_key: opts.agentKey,
11457
11459
  model: opts.model,
11460
+ effort: opts.effort,
11458
11461
  conversation: opts.conversation,
11459
11462
  thread_id: opts.threadId,
11460
11463
  persona_id: opts.personaId
@@ -11482,7 +11485,7 @@ autoCmd.command("list").description("List automations").option("--include-refres
11482
11485
  if (!page.has_more) break;
11483
11486
  offset += page.heartbeats.length;
11484
11487
  }
11485
- 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)}`);
11486
11489
  for (const job of jobs.values()) {
11487
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(",");
11488
11491
  console.log(`${job.id} ${job.state} ${job.name} job:${job.type} ${job.kind} ${triggers}`);
@@ -11515,7 +11518,7 @@ autoCmd.command("run <id>").description("Trigger an automation now").option("--m
11515
11518
  fail(e);
11516
11519
  }
11517
11520
  });
11518
- 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(
11519
11522
  "--script-file <path>",
11520
11523
  "Read the replacement script body from a file (scripted automation)"
11521
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(
@@ -11548,6 +11551,7 @@ autoCmd.command("update <id>").description("Edit an automation \u2014 rename, re
11548
11551
  instructions: opts.instructions,
11549
11552
  agent_key: opts.agentKey,
11550
11553
  model: opts.model,
11554
+ effort: opts.effort,
11551
11555
  clear_model: opts.clearModel,
11552
11556
  script_js: scriptJs,
11553
11557
  interval_minutes: opts.interval,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.227.0",
3
+ "version": "0.229.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {