@erdoai/cli 0.241.1 → 0.242.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 +20 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2463,6 +2463,12 @@ var ErdoClient = class {
2463
2463
  { state }
2464
2464
  );
2465
2465
  }
2466
+ deleteHeartbeat(id) {
2467
+ return this.request(
2468
+ "DELETE",
2469
+ `/v1/heartbeats/${encodeURIComponent(id)}`
2470
+ );
2471
+ }
2466
2472
  // --- kv (named key/value stores, a.k.a. collections) ---
2467
2473
  listKVStores() {
2468
2474
  return this.request("GET", "/v1/kv");
@@ -6895,7 +6901,7 @@ pagesCmd.command("update <id>").description(
6895
6901
  "new judge build brief (or @path to a UTF-8 file; omit to keep current, pass an empty string to clear)"
6896
6902
  ).option(
6897
6903
  "--kind <kind>",
6898
- "what the page is for after this update: landing_page, lead_followup_page, dashboard or app (omit to keep current). Set it when a rewrite changes the page's job: Meta and LinkedIn ad tags load only on lead landing pages"
6904
+ "what the page is for after this update: landing_page, lead_followup_page, dashboard or app (omit to keep current). Set it when a rewrite changes the page's job: Meta and LinkedIn ad tags load only when artifact_kind is landing_page (legacy undeclared pages may qualify through an eligible capture binding)"
6899
6905
  ).option(
6900
6906
  "--required-modules <csv>",
6901
6907
  'replacement runtime module list (comma-separated; "[]" clears)'
@@ -10111,11 +10117,11 @@ analytics.command("query <hogql>").description("Run a read-only HogQL query agai
10111
10117
  var TRACKING_KINDS = [
10112
10118
  { kind: "session_analytics", what: "heatmaps, session replay, and the events behind `erdo analytics query`" },
10113
10119
  { kind: "google_analytics", what: "GA4 measurement" },
10114
- { kind: "meta_pixel", what: "lead landing pages only: cookies visitors so Meta retargeting audiences can be built" },
10115
- { kind: "linkedin_insight", what: "lead landing pages only: cookies visitors so LinkedIn retargeting audiences can be built" }
10120
+ { kind: "meta_pixel", what: "landing_page artifacts only (legacy undeclared pages may qualify through an eligible capture binding): cookies visitors so Meta retargeting audiences can be built" },
10121
+ { kind: "linkedin_insight", what: "landing_page artifacts only (legacy undeclared pages may qualify through an eligible capture binding): cookies visitors so LinkedIn retargeting audiences can be built" }
10116
10122
  ];
10117
10123
  analytics.command("tracking").description(
10118
- "Show which analytics destinations this org has configured for its published pages (Meta and LinkedIn load only on lead landing pages)"
10124
+ "Show which analytics destinations this org has configured for its published pages (Meta and LinkedIn load only when artifact_kind is landing_page; legacy undeclared pages may qualify through an eligible capture binding)"
10119
10125
  ).option("--json", "print the raw JSON result instead of a table").action(async (opts) => {
10120
10126
  try {
10121
10127
  const res = await new ErdoClient().getPageTracking();
@@ -10152,7 +10158,7 @@ The LinkedIn Insight Tag is configured for page views and retargeting; no lead c
10152
10158
  }
10153
10159
  if (byKind.get("meta_pixel")?.enabled || byKind.get("linkedin_insight")?.enabled) {
10154
10160
  console.log(`
10155
- This is organization configuration. Meta and LinkedIn tags load only on lead-generation landing pages (a declared landing page, or an undeclared page that owns a lead-capture pipeline); reports, dashboards and follow-up pages carry session analytics and GA4 only.`);
10161
+ This is organization configuration. Meta and LinkedIn tags load only when the page's declared artifact_kind is landing_page (legacy undeclared pages may qualify through an eligible capture binding); reports, dashboards and follow-up pages carry session analytics and GA4 only.`);
10156
10162
  }
10157
10163
  console.log(`
10158
10164
  Erdo's own page-events beacon is provisioned per page at render time and is not listed above \u2014 it records independently of every vendor here.`);
@@ -11709,6 +11715,15 @@ autoCmd.command("enable <id>").description("Re-enable a disabled automation").ac
11709
11715
  fail(e);
11710
11716
  }
11711
11717
  });
11718
+ autoCmd.command("delete <id>").description("Delete an automation for good, with its schedule and run history (use disable to pause it instead)").action(async (id) => {
11719
+ try {
11720
+ const result = await new ErdoClient().deleteHeartbeat(id);
11721
+ if (!result.deleted) throw new Error(`Automation ${id} was not deleted`);
11722
+ console.log(`Deleted automation ${result.id}`);
11723
+ } catch (e) {
11724
+ fail(e);
11725
+ }
11726
+ });
11712
11727
  var kvCmd = program.command("kv").description("Named key/value stores");
11713
11728
  kvCmd.command("list").description("List KV stores").action(async () => {
11714
11729
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.241.1",
3
+ "version": "0.242.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {