@erdoai/cli 0.103.1 → 0.104.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 +12 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4185,7 +4185,8 @@ function renderDecision(detail) {
4185
4185
  console.log("");
4186
4186
  console.log(detail.actions.length === 1 ? "Action:" : `Actions (${detail.actions.length}):`);
4187
4187
  detail.actions.forEach((a, i) => {
4188
- console.log(` ${i + 1}. ${a.action_key} \u2014 ${a.execution_status}`);
4188
+ const attempt = a.superseded_by_retry ? " (superseded by a later retry of this call)" : a.is_carried_retry ? " (retry of an earlier attempt at this call)" : "";
4189
+ console.log(` ${i + 1}. ${a.action_key} \u2014 ${a.execution_status}${attempt}`);
4189
4190
  if (a.subject_label) console.log(` subject: ${a.subject_label}`);
4190
4191
  if (a.effective_at) console.log(` effective: ${a.effective_at}`);
4191
4192
  if (a.result_summary) console.log(` result: ${a.result_summary}`);
@@ -6527,6 +6528,9 @@ datasetsCmd.command("configure-integration <dataset-id>").description(
6527
6528
  ).option(
6528
6529
  "--disable-sync",
6529
6530
  "tear down the canonical data-platform sync \u2014 retire a superseded or stale synced dataset; ignores --segments"
6531
+ ).option(
6532
+ "--replaced-by <slug>",
6533
+ "with --disable-sync: the dataset that takes over (same organization); automations reading the retired dataset are moved onto it"
6530
6534
  ).action(
6531
6535
  async (datasetID, opts) => {
6532
6536
  try {
@@ -6534,6 +6538,10 @@ datasetsCmd.command("configure-integration <dataset-id>").description(
6534
6538
  fail("Pass either --enable-sync or --disable-sync, not both");
6535
6539
  return;
6536
6540
  }
6541
+ if (opts.replacedBy && !opts.disableSync) {
6542
+ fail("--replaced-by only applies together with --disable-sync");
6543
+ return;
6544
+ }
6537
6545
  if (!opts.disableSync && !opts.enableSync && !opts.segments) {
6538
6546
  fail("--segments is required unless you pass --enable-sync or --disable-sync");
6539
6547
  return;
@@ -6542,10 +6550,11 @@ datasetsCmd.command("configure-integration <dataset-id>").description(
6542
6550
  const result = await new ErdoClient().configureIntegrationDataset(datasetID, {
6543
6551
  segments,
6544
6552
  enable_sync: opts.enableSync,
6545
- disable_sync: opts.disableSync
6553
+ disable_sync: opts.disableSync,
6554
+ replaced_by: opts.replacedBy
6546
6555
  });
6547
6556
  console.log(
6548
- opts.disableSync ? `Retired sync for dataset ${result.dataset_id} (status: ${result.status}). Re-enable with --enable-sync.` : `Configured dataset ${result.dataset_id}, status: ${result.status}, sync: ${result.sync_enabled ? "enabled" : "unchanged"}`
6557
+ opts.disableSync ? `Retired sync for dataset ${result.dataset_id} (status: ${result.status}).` + (opts.replacedBy ? ` Automations that read it are moving to ${opts.replacedBy}.` : "") + " Re-enable with --enable-sync." : `Configured dataset ${result.dataset_id}, status: ${result.status}, sync: ${result.sync_enabled ? "enabled" : "unchanged"}`
6549
6558
  );
6550
6559
  } catch (e) {
6551
6560
  fail(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.103.1",
3
+ "version": "0.104.0",
4
4
  "description": "Erdo CLI — drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {