@erdoai/cli 0.228.0 → 0.230.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 +11 -216
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1384,32 +1384,16 @@ var ErdoClient = class {
1384
1384
  getExperiment(slug) {
1385
1385
  return this.request("GET", `/v1/experiments/${encodeURIComponent(slug)}`);
1386
1386
  }
1387
- getExperimentPolicy(slug) {
1388
- return this.request(
1389
- "GET",
1390
- `/v1/experiments/${encodeURIComponent(slug)}/policy`
1391
- );
1392
- }
1393
1387
  createExperiment(input) {
1394
1388
  return this.request("POST", "/v1/experiments", input);
1395
1389
  }
1396
1390
  updateExperiment(slug, input) {
1397
1391
  return this.request("PATCH", `/v1/experiments/${encodeURIComponent(slug)}`, input);
1398
1392
  }
1399
- runPersonaPanel(slug, input) {
1400
- return this.request("POST", `/v1/experiments/${encodeURIComponent(slug)}/panel`, input ?? {});
1401
- }
1402
- diagnoseExperimentPersonas(slug, input) {
1403
- return this.request("POST", `/v1/experiments/${encodeURIComponent(slug)}/diagnose`, input ?? {});
1404
- }
1405
- groundPersonas(input) {
1406
- return this.request("POST", "/v1/persona-grounding", input ?? {});
1407
- }
1408
1393
  listExperimentObservations(slug, params) {
1409
1394
  const q = new URLSearchParams();
1410
1395
  if (params?.variant_key) q.set("variant_key", params.variant_key);
1411
1396
  if (params?.observation_type) q.set("observation_type", params.observation_type);
1412
- if (params?.judge_slug) q.set("judge_slug", params.judge_slug);
1413
1397
  if (params?.limit) q.set("limit", String(params.limit));
1414
1398
  const qs = q.toString();
1415
1399
  return this.request(
@@ -1417,44 +1401,6 @@ var ErdoClient = class {
1417
1401
  `/v1/experiments/${encodeURIComponent(slug)}/observations${qs ? `?${qs}` : ""}`
1418
1402
  );
1419
1403
  }
1420
- // The trust dial: each judge's track record from the experiment ledger —
1421
- // paired predictions and pairwise agreement vs measured reality. The endpoint
1422
- // scopes by project + a ledger-scan limit; a judge filter is applied client-side
1423
- // over the returned rows (see the CLI command), the API has no judge parameter.
1424
- judgeCalibration(params) {
1425
- const q = new URLSearchParams();
1426
- if (params?.project_slug) q.set("project_slug", params.project_slug);
1427
- if (params?.limit) q.set("limit", String(params.limit));
1428
- const qs = q.toString();
1429
- return this.request(
1430
- "GET",
1431
- `/v1/judge-calibration${qs ? `?${qs}` : ""}`
1432
- );
1433
- }
1434
- listCrossCustomerPriors() {
1435
- return this.request("GET", "/v1/cross-customer-priors");
1436
- }
1437
- recordAllocationDecision(experimentSlug, input) {
1438
- return this.request(
1439
- "POST",
1440
- `/v1/experiments/${encodeURIComponent(experimentSlug)}/allocation-decisions`,
1441
- input
1442
- );
1443
- }
1444
- // A synchronous long call — the LLM judges every surviving pair, which can take
1445
- // minutes; the comparisons persist to the experiment ledger.
1446
- runPairwiseTournament(experimentSlug, input) {
1447
- return this.request(
1448
- "POST",
1449
- `/v1/experiments/${encodeURIComponent(experimentSlug)}/tournament`,
1450
- input
1451
- );
1452
- }
1453
- // Also synchronous and potentially slow — one prediction is written per variant
1454
- // page of the judge's kind across the org's live experiments.
1455
- backtestJudge(judgeSlug) {
1456
- return this.request("POST", "/v1/judge-backtests", { judge_slug: judgeSlug });
1457
- }
1458
1404
  // --- attention ---
1459
1405
  listAttentionItems(params) {
1460
1406
  const q = new URLSearchParams();
@@ -4519,7 +4465,7 @@ wsCmd.command("set-state <slug>").description("Update a workstream's status / ti
4519
4465
  }
4520
4466
  }
4521
4467
  );
4522
- wsCmd.command("arm <slug>").description("Arm the recurring reconciliation loop (allocator pass) for a workstream").option("--interval <minutes>", "how often the loop runs", (v) => parseInt(v, 10)).option("--model <id>", "model the loop runs on").option("--timezone <tz>", "timezone for scheduling").option(
4468
+ wsCmd.command("arm <slug>").description("Arm the recurring reconciliation loop for a workstream").option("--interval <minutes>", "how often the loop runs", (v) => parseInt(v, 10)).option("--model <id>", "model the loop runs on").option("--timezone <tz>", "timezone for scheduling").option(
4523
4469
  "--token-budget <millicents>",
4524
4470
  "total spend ceiling in millicents \u2014 100,000 per dollar, so 25000000 = $250; also how you raise a ceiling a loop has spent through",
4525
4471
  (v) => parseInt(v, 10)
@@ -4546,7 +4492,7 @@ wsCmd.command("arm <slug>").description("Arm the recurring reconciliation loop (
4546
4492
  }
4547
4493
  );
4548
4494
  wsCmd.command("ledger <slug>").description(
4549
- "Read the allocator's single ledger view \u2014 budget, experiments + observations, judge calibration, the decisions currently in force, attention items, allocator recommendation"
4495
+ "Read a workstream's ledger \u2014 budget, experiments and observations, decisions, attention items, steering notes, and recent workstream events"
4550
4496
  ).option("--observations <n>", "observations to include per experiment", (v) => parseInt(v, 10)).action(async (slug, opts) => {
4551
4497
  try {
4552
4498
  print(await new ErdoClient().readWorkstreamLedger(slug, opts.observations));
@@ -4753,18 +4699,9 @@ expCmd.command("get <slug>").description("Show an experiment \u2014 hypothesis,
4753
4699
  fail(e);
4754
4700
  }
4755
4701
  });
4756
- expCmd.command("policy <slug>").description(
4757
- "Show the decision policy state \u2014 per-variant posteriors, allocation, win frequencies, stop probabilities, calibration gate, recommended decision, and HAIPW effect readout"
4758
- ).action(async (slug) => {
4759
- try {
4760
- print(await new ErdoClient().getExperimentPolicy(slug));
4761
- } catch (e) {
4762
- fail(e);
4763
- }
4764
- });
4765
4702
  expCmd.command("create").description("Create an experiment with its variants, evidence datasets and decision rule").addOption(projectOption("project slug", { mandatory: true })).requiredOption("--slug <slug>", "experiment slug (unique per org)").requiredOption("--title <title>", "title").option("--workstream <slug>", "host workstream").option("--scope <scope>", "local (default), platform_canary, platform_global").option("--hypothesis <text>", "hypothesis markdown").option("--primary-metric <metric>", "the metric the decision rule reads").option("--decision-rule <text>", "the rule that decides ship/stop from the primary metric").option("--guardrail <metric>", "a metric that must not regress (repeatable)", collect, []).option(
4766
4703
  "--variant <spec>",
4767
- `a variant "key=b,label=3-field form,page=<artifact-id>,alloc=50,class=form_length_change,control" (repeatable). Fields: key=, label=, page= (Erdo artifact id) OR url=<https://\u2026> (an external page the persona panel visits, e.g. a client's live landing page \u2014 mutually exclusive with page=), alloc=, class=, and the bare flag control (or control=true) to mark the baseline. class= declares the structural change vs control for cross-experiment learning: headline_change | hero_media_change | cta_change | form_length_change | social_proof_add | layout_reorder | offer_change | full_page_rebuild`,
4704
+ 'a variant "key=b,label=3-field form,page=<artifact-id>,alloc=50,class=form_length_change,control" (repeatable). Fields: key=, label=, page= (Erdo artifact id) OR url=<https://\u2026> (an external page \u2014 mutually exclusive with page=), alloc=, class= (persisted variant classification), and the bare flag control (or control=true) to mark the baseline',
4768
4705
  collect,
4769
4706
  []
4770
4707
  ).option(
@@ -4797,14 +4734,13 @@ expCmd.command("create").description("Create an experiment with its variants, ev
4797
4734
  }
4798
4735
  }
4799
4736
  );
4800
- expCmd.command("observations <slug>").description("Read an experiment's observation log (metrics / decisions / actions / judge forecasts / defects)").option("--variant <key>", "filter to one variant").option("--type <type>", "metric_read, decision_check, action_taken, prediction, comparison, defect").option("--judge <slug>", "filter to one judge's forecasts within this experiment").option("-n, --limit <n>", "max rows", (v) => parseInt(v, 10)).action(
4737
+ expCmd.command("observations <slug>").description("Read an experiment's observation log, including historical metrics, decisions, actions, predictions, comparisons, and defects").option("--variant <key>", "filter to one variant").option("--type <type>", "metric_read, decision_check, action_taken, prediction, comparison, defect").option("-n, --limit <n>", "max rows", (v) => parseInt(v, 10)).action(
4801
4738
  async (slug, opts) => {
4802
4739
  try {
4803
4740
  print(
4804
4741
  await new ErdoClient().listExperimentObservations(slug, {
4805
4742
  variant_key: opts.variant,
4806
4743
  observation_type: opts.type,
4807
- judge_slug: opts.judge,
4808
4744
  limit: opts.limit
4809
4745
  })
4810
4746
  );
@@ -4813,71 +4749,6 @@ expCmd.command("observations <slug>").description("Read an experiment's observat
4813
4749
  }
4814
4750
  }
4815
4751
  );
4816
- expCmd.command("priors").description(
4817
- "List the platform's cross-customer prior library \u2014 the aggregate effect of each treatment class (headline_change, cta_change, \u2026) on each page metric, pooled across all contributing orgs. Aggregate-only (\u22655 experiments, \u22653 orgs per cell); nothing identifies any org, page, or result."
4818
- ).action(async () => {
4819
- try {
4820
- print(await new ErdoClient().listCrossCustomerPriors());
4821
- } catch (e) {
4822
- fail(e);
4823
- }
4824
- });
4825
- expCmd.command("panel <slug>").description("Run the persona panel (wind tunnel): brand-brief personas predict each page variant's micro-conversions before paid traffic decides").option("--persona <slug...>", "restrict to these persona skill slugs (default: every approved persona)").option("--variant <key...>", "restrict to these variant keys (default: every page variant)").option("--draws <n>", "K samples per persona\xD7variant averaged into the prediction (default 5)", (v) => parseInt(v, 10)).option("--wait", "poll until the panel's ranking (decision_check) lands, then print it").action(
4826
- async (slug, opts) => {
4827
- try {
4828
- const client = new ErdoClient();
4829
- const started = await client.runPersonaPanel(slug, {
4830
- persona_slugs: opts.persona,
4831
- variant_keys: opts.variant,
4832
- draws: opts.draws
4833
- });
4834
- print(started);
4835
- if (!opts.wait) return;
4836
- const deadline = Date.now() + 20 * 60 * 1e3;
4837
- process.stderr.write("waiting for the panel ranking");
4838
- while (Date.now() < deadline) {
4839
- await new Promise((r) => setTimeout(r, 5e3));
4840
- process.stderr.write(".");
4841
- const res = await client.listExperimentObservations(slug, {
4842
- observation_type: "decision_check",
4843
- limit: 20
4844
- });
4845
- for (const obs of res.observations ?? []) {
4846
- const details = typeof obs.details === "string" ? JSON.parse(obs.details) : obs.details;
4847
- if (details && details.panel_run_id === started.panel_run_id) {
4848
- process.stderr.write("\n");
4849
- print({ ranking: details.ranking, kill_list: details.kill_list ?? [], primary_metric: details.primary_metric, failed_cells: details.failed_cells ?? [] });
4850
- return;
4851
- }
4852
- }
4853
- }
4854
- process.stderr.write("\n");
4855
- fail(new Error(`panel still running after 20m \u2014 check later with: erdo experiment observations ${slug} --type decision_check`));
4856
- } catch (e) {
4857
- fail(e);
4858
- }
4859
- }
4860
- );
4861
- expCmd.command("diagnose <slug>").description(
4862
- "Run wind-tunnel Stage B: browser sessions diagnose WHERE and WHY each persona bails on the surviving variants (never estimates \u2014 run the panel first for the ranking)"
4863
- ).option("--top-k <n>", "how many surviving variants get sessions (default 3)", (v) => parseInt(v, 10)).option("--survivor <key...>", "survival ranking, best first (default: the latest panel's decision_check ranking)").option("--persona <slug...>", "restrict to these persona skill slugs").action(
4864
- async (slug, opts) => {
4865
- try {
4866
- const ack = await new ErdoClient().diagnoseExperimentPersonas(slug, {
4867
- top_k: opts.topK,
4868
- survivor_variant_keys: opts.survivor,
4869
- persona_slugs: opts.persona
4870
- });
4871
- print(ack);
4872
- process.stderr.write(
4873
- `sessions run in the background; read the narratives with: erdo experiment observations ${slug} --type action_taken
4874
- `
4875
- );
4876
- } catch (e) {
4877
- fail(e);
4878
- }
4879
- }
4880
- );
4881
4752
  expCmd.command("decide <slug>").description("Record an experiment's decision (ship/stop/iterate/inconclusive)").requiredOption("--decision <decision>", "ship, stop, iterate, inconclusive").option("--outcome <text>", "the narrative result").action(async (slug, opts) => {
4882
4753
  try {
4883
4754
  print(
@@ -4898,84 +4769,6 @@ expCmd.command("set-status <slug> <status>").description("Set an experiment's st
4898
4769
  fail(e);
4899
4770
  }
4900
4771
  });
4901
- expCmd.command("calibration").description(
4902
- "Read each judge's track record \u2014 paired predictions and pairwise agreement vs measured reality (the trust dial)"
4903
- ).addOption(projectOption("limit to one project (default: every project you can view)")).option("--judge <slug>", "show only judges whose slug contains this text").option("-n, --limit <n>", "max ledger rows scanned (default 5000)", (v) => parseInt(v, 10)).action(async (opts) => {
4904
- try {
4905
- const res = await new ErdoClient().judgeCalibration({
4906
- project_slug: opts.project,
4907
- limit: opts.limit
4908
- });
4909
- if (opts.judge && Array.isArray(res.judges)) {
4910
- const needle = opts.judge.toLowerCase();
4911
- res.judges = res.judges.filter((j) => j.judge_slug.toLowerCase().includes(needle));
4912
- }
4913
- print(res);
4914
- } catch (e) {
4915
- fail(e);
4916
- }
4917
- });
4918
- expCmd.command("record-decision <slug>").description(
4919
- "Record that you are overriding the allocator's recommendation for one bet (calibration data on the allocator)"
4920
- ).requiredOption("--variant <key>", "the variant/bet you are deciding on").requiredOption(
4921
- "--recommended <action>",
4922
- "what the allocator recommended: fund | hold | kill_candidate | lottery_slot | champion_trial"
4923
- ).requiredOption("--chosen <action>", "the action you chose instead").requiredOption("--reason <text>", "why you overrode the recommendation").action(
4924
- async (slug, opts) => {
4925
- try {
4926
- print(
4927
- await new ErdoClient().recordAllocationDecision(slug, {
4928
- variant_key: opts.variant,
4929
- recommended_action: opts.recommended,
4930
- chosen_action: opts.chosen,
4931
- reason: opts.reason
4932
- })
4933
- );
4934
- } catch (e) {
4935
- fail(e);
4936
- }
4937
- }
4938
- );
4939
- expCmd.command("tournament <slug>").description(
4940
- "Coalesce an experiment's variants: cluster near-dups, judge survivors pairwise, fit a Bradley\u2013Terry ranking; comparisons persist to the ledger"
4941
- ).requiredOption("--criteria <text>", "the criteria the judge ranks pairs on").option("--kind <kind>", "restrict to variants of this artifact kind").option("--variant <key>", "restrict to these variant keys (repeatable)", collect, []).option("--max-comparisons <n>", "cap on pairwise comparisons", (v) => parseInt(v, 10)).action(
4942
- async (slug, opts) => {
4943
- try {
4944
- process.stderr.write("judging pairs \u2014 this can take a few minutes\u2026\n");
4945
- print(
4946
- await new ErdoClient().runPairwiseTournament(slug, {
4947
- criteria: opts.criteria,
4948
- kind: opts.kind,
4949
- variant_keys: opts.variant.length ? opts.variant : void 0,
4950
- max_comparisons: opts.maxComparisons
4951
- })
4952
- );
4953
- } catch (e) {
4954
- fail(e);
4955
- }
4956
- }
4957
- );
4958
- var judgeCmd = program.command("judge").description("Judges \u2014 back-tests and calibration");
4959
- judgeCmd.command("backtest <judgeSlug>").description(
4960
- "Run a judge over the org's live experiments' variant pages of its kind and persist one prediction per variant (earns calibration standing immediately; idempotent \u2014 already-forecast variants are skipped)"
4961
- ).action(async (judgeSlug) => {
4962
- try {
4963
- process.stderr.write("back-testing \u2014 this can take a few minutes\u2026\n");
4964
- print(await new ErdoClient().backtestJudge(judgeSlug));
4965
- } catch (e) {
4966
- fail(e);
4967
- }
4968
- });
4969
- var personaCmd = program.command("persona").description("Ground personas in measured traffic");
4970
- personaCmd.command("ground").description(
4971
- "Ground the org's persona skills in measured behavior: cluster the last 28 days of page-events sessions and update each matching persona in place (silent no-op below the data gates)"
4972
- ).option("--window-days <n>", "look-back window in days (default 28)", (v) => parseInt(v, 10)).action(async (opts) => {
4973
- try {
4974
- print(await new ErdoClient().groundPersonas({ window_days: opts.windowDays }));
4975
- } catch (e) {
4976
- fail(e);
4977
- }
4978
- });
4979
4772
  function parseRubric(json) {
4980
4773
  try {
4981
4774
  return JSON.parse(json);
@@ -5892,7 +5685,7 @@ function renderReportEffect(e) {
5892
5685
  }
5893
5686
  decisionsCmd.command("list").description("List decisions, newest first").option("--organization <slug>", "read an authorized client organization (default: active organization)").option("--workstream <slug>", "only decisions filed under this workstream/Strategy").option(
5894
5687
  "--source <source>",
5895
- "producer family: approval | escalation | engine_gate | allocator | experiment | workstream_commitment"
5688
+ "producer family: approval | escalation | engine_gate | experiment | workstream_commitment"
5896
5689
  ).option("--class <class>", "decision class, e.g. paid_media.ad_group.pause").option("--subject-kind <kind>", "only decisions about this kind of subject").option("--subject-ref <id>", "only decisions about this exact subject").option(
5897
5690
  "--status <status>",
5898
5691
  "proposed | authorized | executing | effective | measuring | settled | rejected | failed | censored"
@@ -6506,7 +6299,7 @@ attnCmd.command("list").description("List attention items").option(
6506
6299
  }
6507
6300
  );
6508
6301
  attnCmd.command("respond <id>").description(
6509
- `Respond to an attention item. A choice answer's shape is {"<question_id>": ["<option>", ...]}. Answering a choice mapped to experiment variants records your pick as a human comparison in the calibration ledger. Use --flag-broken to flag one or more variants as broken (recorded as defect observations judge generation reads) \u2014 on its own or alongside --answer.`
6302
+ `Respond to an attention item. A choice answer's shape is {"<question_id>": ["<option>", ...]}. Answering a choice mapped to experiment variants records your pick as a comparison observation. Use --flag-broken to flag one or more variants as broken (recorded as defect observations) \u2014 on its own or alongside --answer.`
6510
6303
  ).option("--answer <json>", `a JSON answer, e.g. '{"q1":["option-a"]}'`).option(
6511
6304
  "--flag-broken <json>",
6512
6305
  'flag choice variants as broken: JSON array [{"variant_key":"...","reason":"..."}]'
@@ -11433,7 +11226,7 @@ function scheduleBound(flag, v) {
11433
11226
  }
11434
11227
  autoCmd.command("create <name>").description(
11435
11228
  "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(
11229
+ ).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
11230
  async (name, opts) => {
11438
11231
  try {
11439
11232
  if (opts.scriptJs && opts.scriptFile) {
@@ -11457,6 +11250,7 @@ autoCmd.command("create <name>").description(
11457
11250
  ends_at: scheduleBound("--ends-at", opts.endsAt),
11458
11251
  agent_key: opts.agentKey,
11459
11252
  model: opts.model,
11253
+ effort: opts.effort,
11460
11254
  conversation: opts.conversation,
11461
11255
  thread_id: opts.threadId,
11462
11256
  persona_id: opts.personaId
@@ -11484,7 +11278,7 @@ autoCmd.command("list").description("List automations").option("--include-refres
11484
11278
  if (!page.has_more) break;
11485
11279
  offset += page.heartbeats.length;
11486
11280
  }
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)}`);
11281
+ 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
11282
  for (const job of jobs.values()) {
11489
11283
  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
11284
  console.log(`${job.id} ${job.state} ${job.name} job:${job.type} ${job.kind} ${triggers}`);
@@ -11517,7 +11311,7 @@ autoCmd.command("run <id>").description("Trigger an automation now").option("--m
11517
11311
  fail(e);
11518
11312
  }
11519
11313
  });
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(
11314
+ 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
11315
  "--script-file <path>",
11522
11316
  "Read the replacement script body from a file (scripted automation)"
11523
11317
  ).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 +11344,7 @@ autoCmd.command("update <id>").description("Edit an automation \u2014 rename, re
11550
11344
  instructions: opts.instructions,
11551
11345
  agent_key: opts.agentKey,
11552
11346
  model: opts.model,
11347
+ effort: opts.effort,
11553
11348
  clear_model: opts.clearModel,
11554
11349
  script_js: scriptJs,
11555
11350
  interval_minutes: opts.interval,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.228.0",
3
+ "version": "0.230.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {