@erdoai/cli 0.132.0 → 0.133.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 +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8697,7 +8697,7 @@ var autoCmd = program.command("automations").description("Scheduled automations
8697
8697
  autoCmd.command("list").description("List automations").action(async () => {
8698
8698
  try {
8699
8699
  const { heartbeats } = await new ErdoClient().listHeartbeats();
8700
- for (const h of heartbeats) console.log(`${h.id} ${h.state} ${h.name}`);
8700
+ 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}` : ""}`);
8701
8701
  } catch (e) {
8702
8702
  fail(e);
8703
8703
  }
@@ -8723,7 +8723,7 @@ autoCmd.command("run <id>").description("Trigger an automation now").action(asyn
8723
8723
  autoCmd.command("update <id>").description("Edit an automation \u2014 rename, reschedule, 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("--script-js <js>", "Replacement script body (scripted automation)").option(
8724
8724
  "--script-file <path>",
8725
8725
  "Read the replacement script body from a file (scripted automation)"
8726
- ).option("--interval <minutes>", "New interval in minutes (minimum 5)", (v) => parseInt(v, 10)).option("--timezone <tz>", "New scheduling timezone, e.g. America/New_York").action(
8726
+ ).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").option("--interval <minutes>", "New interval in minutes (minimum 5)", (v) => parseInt(v, 10)).option("--timezone <tz>", "New scheduling timezone, e.g. America/New_York").action(
8727
8727
  async (id, opts) => {
8728
8728
  try {
8729
8729
  if (opts.scriptJs && opts.scriptFile) {
@@ -8738,7 +8738,10 @@ autoCmd.command("update <id>").description("Edit an automation \u2014 rename, re
8738
8738
  agent_key: opts.agentKey,
8739
8739
  script_js: scriptJs,
8740
8740
  interval_minutes: opts.interval,
8741
- timezone: opts.timezone
8741
+ timezone: opts.timezone,
8742
+ conversation: opts.conversation,
8743
+ thread_id: opts.threadId,
8744
+ persona_id: opts.personaId
8742
8745
  };
8743
8746
  if (Object.values(body).every((v) => v === void 0)) {
8744
8747
  fail(new Error("nothing to update \u2014 pass at least one field to change"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.132.0",
3
+ "version": "0.133.0",
4
4
  "description": "Erdo CLI — drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {