@erdoai/cli 0.166.0 → 0.167.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 +18 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6074,6 +6074,9 @@ pagesCmd.command("update <id>").description(
6074
6074
  ).option(
6075
6075
  "--build-brief <textOr@file>",
6076
6076
  "new judge build brief (or @path to a UTF-8 file; omit to keep current, pass an empty string to clear)"
6077
+ ).option(
6078
+ "--kind <kind>",
6079
+ "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"
6077
6080
  ).option(
6078
6081
  "--required-modules <csv>",
6079
6082
  'replacement runtime module list (comma-separated; "[]" clears)'
@@ -6093,6 +6096,7 @@ pagesCmd.command("update <id>").description(
6093
6096
  meta_icon_asset_id: opts.metaIconAsset,
6094
6097
  meta_image_asset_id: opts.metaImageAsset,
6095
6098
  build_brief: readMaybeFile(opts.buildBrief),
6099
+ artifact_kind: opts.kind,
6096
6100
  required_modules: grantList(opts.requiredModules),
6097
6101
  dataset_slugs: grantList(opts.datasets),
6098
6102
  writable_dataset_slugs: grantList(opts.writableDatasets),
@@ -7563,7 +7567,7 @@ voiceWidgetsCmd.command("realtime-model <widget> <model>").description("Choose t
7563
7567
  }
7564
7568
  });
7565
7569
  var datasetsCmd = program.command("datasets").description("Datasets");
7566
- var providerLeadSourcesCmd = program.command("provider-lead-sources").description("Ingest ad-platform lead form responses into a lead dataset");
7570
+ var providerLeadSourcesCmd = program.command("provider-lead-sources").description("Manage LinkedIn lead form responses synced into a lead dataset");
7567
7571
  providerLeadSourcesCmd.command("list").description("List LinkedIn lead form source declarations").option("--provider <provider>", "filter by ad platform provider").option("--account-id <id>", "filter by provider ad account id").action(async (opts) => {
7568
7572
  try {
7569
7573
  print(await new ErdoClient().listProviderLeadSources({ provider: opts.provider, account_id: opts.accountId }));
@@ -7571,14 +7575,14 @@ providerLeadSourcesCmd.command("list").description("List LinkedIn lead form sour
7571
7575
  fail(e);
7572
7576
  }
7573
7577
  });
7574
- providerLeadSourcesCmd.command("forms").description("List LinkedIn lead forms available on a connected ad account").requiredOption("--connection-id <id>", "connector_account_id from erdo integrations status linkedin_ads or GET /v1/integrations").requiredOption("--account-id <id>", "numeric LinkedIn ad account id").action(async (opts) => {
7578
+ providerLeadSourcesCmd.command("forms").description("List LinkedIn lead forms available on a connected ad account").requiredOption("--connection-id <id>", "native integration id from erdo integrations status linkedin_ads_sync or GET /v1/integrations").requiredOption("--account-id <id>", "numeric LinkedIn ad account id").action(async (opts) => {
7575
7579
  try {
7576
7580
  print(await new ErdoClient().listProviderLeadSourceForms(opts.connectionId, opts.accountId));
7577
7581
  } catch (e) {
7578
7582
  fail(e);
7579
7583
  }
7580
7584
  });
7581
- providerLeadSourcesCmd.command("set").description("Replace a provider lead form source declaration from JSON or flags").option("-f, --file <path>", "one JSON declaration object; use - to read from stdin").option("--dataset <slug>", "lead dataset slug").option("--provider <provider>", "ad platform provider", "linkedin_ads").option("--connection-id <id>", "connector_account_id from erdo integrations status linkedin_ads or GET /v1/integrations").option("--account-id <id>", "numeric LinkedIn ad account id").option("--form <id>", "LinkedIn lead gen form id (repeatable)", collect, []).option("--disabled", "save the declaration disabled").action(async (opts) => {
7585
+ providerLeadSourcesCmd.command("set").description("Replace a provider lead form source declaration from JSON or flags").option("-f, --file <path>", "one JSON declaration object; use - to read from stdin").option("--dataset <slug>", "lead dataset slug").option("--provider <provider>", "ad platform provider", "linkedin_ads").option("--connection-id <id>", "native integration id from erdo integrations status linkedin_ads_sync or GET /v1/integrations").option("--account-id <id>", "numeric LinkedIn ad account id").option("--form <id>", "LinkedIn lead gen form id (repeatable)", collect, []).option("--disabled", "save the declaration disabled").action(async (opts) => {
7582
7586
  try {
7583
7587
  let input;
7584
7588
  if (opts.file) {
@@ -8476,10 +8480,12 @@ analytics.command("query <hogql>").description("Run a read-only HogQL query agai
8476
8480
  var TRACKING_KINDS = [
8477
8481
  { kind: "session_analytics", what: "heatmaps, session replay, and the events behind `erdo analytics query`" },
8478
8482
  { kind: "google_analytics", what: "GA4 measurement" },
8479
- { kind: "meta_pixel", what: "cookies visitors so Meta retargeting audiences can be built" },
8480
- { kind: "linkedin_insight", what: "cookies visitors so LinkedIn retargeting audiences can be built" }
8483
+ { kind: "meta_pixel", what: "lead landing pages only: cookies visitors so Meta retargeting audiences can be built" },
8484
+ { kind: "linkedin_insight", what: "lead landing pages only: cookies visitors so LinkedIn retargeting audiences can be built" }
8481
8485
  ];
8482
- analytics.command("tracking").description("Show which analytics destinations this org's published pages send visitor data to").option("--json", "print the raw JSON result instead of a table").action(async (opts) => {
8486
+ analytics.command("tracking").description(
8487
+ "Show which analytics destinations this org has configured for its published pages (Meta and LinkedIn load only on lead landing pages)"
8488
+ ).option("--json", "print the raw JSON result instead of a table").action(async (opts) => {
8483
8489
  try {
8484
8490
  const res = await new ErdoClient().getPageTracking();
8485
8491
  if (opts.json) {
@@ -8504,14 +8510,18 @@ session replay input masking: ${res.mask_inputs ? "on" : "OFF \u2014 form values
8504
8510
  console.log(`consent: ${res.consent}${res.consent === "required" ? " (recording waits on a consent banner, so thin volume may be the gate, not the traffic)" : ""}`);
8505
8511
  if (!byKind.get("meta_pixel")?.enabled) {
8506
8512
  console.log(`
8507
- No Meta pixel is firing on these pages, so no Meta retargeting audience is accumulating \u2014 page traffic alone does not mean those visitors can be served ads on Meta.`);
8513
+ No Meta pixel is configured, so no Meta retargeting audience is accumulating \u2014 page traffic alone does not mean those visitors can be served ads on Meta.`);
8508
8514
  }
8509
8515
  if (!byKind.get("linkedin_insight")?.enabled) {
8510
8516
  console.log(`
8511
- No LinkedIn Insight Tag is firing on these pages, so no LinkedIn retargeting audience is accumulating from this traffic.`);
8517
+ No LinkedIn Insight Tag is configured, so no LinkedIn retargeting audience is accumulating from this traffic.`);
8512
8518
  } else if (!byKind.get("linkedin_insight")?.conversion_id) {
8513
8519
  console.log(`
8514
8520
  The LinkedIn Insight Tag is configured for page views and retargeting; no lead conversion ID is configured.`);
8521
+ }
8522
+ if (byKind.get("meta_pixel")?.enabled || byKind.get("linkedin_insight")?.enabled) {
8523
+ console.log(`
8524
+ 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.`);
8515
8525
  }
8516
8526
  console.log(`
8517
8527
  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.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.166.0",
3
+ "version": "0.167.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {