@erdoai/cli 0.208.0 → 0.212.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 +9 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2458,10 +2458,11 @@ var ErdoClient = class {
2458
2458
  { reason, organization_slug }
2459
2459
  );
2460
2460
  }
2461
- getDecision(slug) {
2461
+ getDecision(slug, organization_slug) {
2462
+ const query = organization_slug ? `?organization_slug=${encodeURIComponent(organization_slug)}` : "";
2462
2463
  return this.request(
2463
2464
  "GET",
2464
- `/v1/decisions/${encodeURIComponent(slug)}`
2465
+ `/v1/decisions/${encodeURIComponent(slug)}${query}`
2465
2466
  );
2466
2467
  }
2467
2468
  // Raw aggregates with their denominators — no eligibility verdict, and no single
@@ -5886,9 +5887,9 @@ decisionsCmd.command("retire <slug>").description("End a standing workstream com
5886
5887
  });
5887
5888
  decisionsCmd.command("show <slug>").description(
5888
5889
  "Show one decision in full: the commitment and its authority, every exact action it authorized with how each one ended, every declared effect with the evidence that settled it, and what it replaced or was replaced by"
5889
- ).option("--json", "output raw JSON").action(async (slug, opts) => {
5890
+ ).option("--organization <slug>", "read a decision of an authorized client organization (default: active organization)").option("--json", "output raw JSON").action(async (slug, opts) => {
5890
5891
  try {
5891
- const detail = await new ErdoClient().getDecision(slug);
5892
+ const detail = await new ErdoClient().getDecision(slug, opts.organization);
5892
5893
  if (opts.json) {
5893
5894
  print(detail);
5894
5895
  return;
@@ -11051,7 +11052,7 @@ autoCmd.command("run <id>").description("Trigger an automation now").option("--m
11051
11052
  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("--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(
11052
11053
  "--script-file <path>",
11053
11054
  "Read the replacement script body from a file (scripted automation)"
11054
- ).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)").action(
11055
+ ).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(
11055
11056
  async (id, opts) => {
11056
11057
  try {
11057
11058
  if (opts.scriptJs && opts.scriptFile) {
@@ -11095,7 +11096,9 @@ autoCmd.command("update <id>").description("Edit an automation \u2014 rename, re
11095
11096
  conversation: opts.conversation,
11096
11097
  thread_id: opts.threadId,
11097
11098
  persona_id: opts.personaId,
11098
- clear_persona: opts.clearPersona
11099
+ clear_persona: opts.clearPersona,
11100
+ cron_expression: opts.cron?.trim() || void 0,
11101
+ trigger_id: opts.cronTrigger
11099
11102
  };
11100
11103
  if (Object.values(body).every((v) => v === void 0)) {
11101
11104
  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.208.0",
3
+ "version": "0.212.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {