@erdoai/cli 0.258.0 → 0.262.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
@@ -3577,7 +3577,7 @@ paidMedia.command("audiences").description("Read live audience lists, eligibilit
3577
3577
  fail(e);
3578
3578
  }
3579
3579
  });
3580
- paidMedia.command("negative-coverage").description("Read live Google Ads negative keyword coverage. Does not add or remove keywords").option("--provider <provider>", "ad platform", "google_ads").option("--customer-id <id>", "Google Ads customer id (defaults to the selected account)").option("--campaign-id <id>", "one Search campaign; omit to read Search campaigns in the account").option(
3580
+ paidMedia.command("negative-coverage").description("Read live Google Ads negative keyword coverage using a direct negative plan or an approved Offer classification record. Does not add or remove keywords").option("--provider <provider>", "ad platform", "google_ads").option("--customer-id <id>", "Google Ads customer id (defaults to the selected account)").option("--campaign-id <id>", "one Search campaign; omit to read Search campaigns in the account").option(
3581
3581
  "--negative-plan <json|@file>",
3582
3582
  "compare one campaign against a plan: {classes:[{id,label,terms:[{text,match_type}]}],protected_queries:[...]} from the offer's industry skill"
3583
3583
  ).option("--json", "print the raw JSON result, including unreadable scopes").action(async (opts) => {
@@ -6917,6 +6917,13 @@ function grantList(v) {
6917
6917
  }
6918
6918
  return slugs;
6919
6919
  }
6920
+ function measurementBindingInput(value) {
6921
+ if (value === void 0) return {};
6922
+ const parsed = JSON.parse(readMaybeFile(value));
6923
+ if (parsed === null) return { clear_measurement_binding: true };
6924
+ if (typeof parsed !== "object" || Array.isArray(parsed)) throw new Error("measurement_binding must be a JSON object or null");
6925
+ return { measurement_binding: parsed };
6926
+ }
6920
6927
  pagesCmd.command("deploy").description("Deploy a page (HTML/React); --html/--js/--css accept @file").requiredOption("--title <title>", "page title").requiredOption("--html <htmlOr@file>", "HTML (or @path to a file)").option("--js <jsOr@file>", "JS/JSX (or @path)").option("--css <cssOr@file>", "CSS (or @path)").option("--runtime <runtime>", "react-tailwind (default) or none").option(
6921
6928
  "--meta-title <title>",
6922
6929
  "public SEO title (browser tab + shared-link headline) \u2014 distinct from --title, the internal name"
@@ -6929,7 +6936,7 @@ pagesCmd.command("deploy").description("Deploy a page (HTML/React); --html/--js/
6929
6936
  ).option(
6930
6937
  "--required-modules <csv>",
6931
6938
  "runtime modules the page needs (erdoui, landing); a page using the landing components renders blank without landing"
6932
- ).option("--robots-policy <policy>", "index_follow (the primary page of a custom host) or noindex_nofollow (ad variants)").option("--indexing-role <role>", "primary (the page a custom host should index) or variant (an A/B arm or angle sibling)").option("--structured-data <jsonOr@file>", "SEO structured data (schema.org JSON-LD): a JSON object with @type and name, or @path to a file").option("--datasets <csv>", "dataset slugs the page reads").option("--writable-datasets <csv>", "dataset slugs the page may write via erdo.insertRows").option("--kv <csv>", "named KV-store slugs the page reads").option("--writable-kv <csv>", "named KV-store slugs the page may write").option("--request-review", "start a saved page review and wait for the findings").option("--no-wait", "return the review id without polling for findings").option("--public", "make the page publicly viewable").action(
6939
+ ).option("--robots-policy <policy>", "index_follow (the primary page of a custom host) or noindex_nofollow (ad variants)").option("--indexing-role <role>", "primary (the page a custom host should index) or variant (an A/B arm or angle sibling)").option("--measurement-binding <jsonOr@file>", "page success event and provider mirrors as JSON (or @path); null clears the binding").option("--structured-data <jsonOr@file>", "SEO structured data (schema.org JSON-LD): a JSON object with @type and name, or @path to a file").option("--datasets <csv>", "dataset slugs the page reads").option("--writable-datasets <csv>", "dataset slugs the page may write via erdo.insertRows").option("--kv <csv>", "named KV-store slugs the page reads").option("--writable-kv <csv>", "named KV-store slugs the page may write").option("--request-review", "start a saved page review and wait for the findings").option("--no-wait", "return the review id without polling for findings").option("--public", "make the page publicly viewable").action(
6933
6940
  async (opts) => {
6934
6941
  try {
6935
6942
  const csv = (v) => v ? v.split(",").map((s) => s.trim()) : void 0;
@@ -6943,6 +6950,7 @@ pagesCmd.command("deploy").description("Deploy a page (HTML/React); --html/--js/
6943
6950
  robots_policy: opts.robotsPolicy,
6944
6951
  indexing_role: opts.indexingRole,
6945
6952
  structured_data: readMaybeFile(opts.structuredData),
6953
+ ...measurementBindingInput(opts.measurementBinding),
6946
6954
  meta_title: opts.metaTitle,
6947
6955
  meta_description: opts.metaDescription,
6948
6956
  meta_icon_asset_id: opts.metaIconAsset,
@@ -6982,7 +6990,7 @@ pagesCmd.command("update <id>").description(
6982
6990
  ).option(
6983
6991
  "--required-modules <csv>",
6984
6992
  'replacement runtime module list (comma-separated; "[]" clears)'
6985
- ).option("--robots-policy <policy>", "new robots policy: index_follow (the primary page of a custom host) or noindex_nofollow (ad variants)").option("--indexing-role <role>", "primary (the page a custom host should index) or variant (an A/B arm or angle sibling)").option("--structured-data <jsonOr@file>", "SEO structured data (schema.org JSON-LD): a JSON object with @type and name, or @path to a file").option("--datasets <csv>", 'replacement read-dataset slugs ("[]" clears)').option("--writable-datasets <csv>", 'replacement writable-dataset slugs ("[]" clears)').option("--kv <csv>", 'replacement read KV-store slugs ("[]" clears)').option("--writable-kv <csv>", 'replacement writable KV-store slugs ("[]" clears)').option("--public", "make the page publicly viewable").option("--private", "make the page private").option(
6993
+ ).option("--robots-policy <policy>", "new robots policy: index_follow (the primary page of a custom host) or noindex_nofollow (ad variants)").option("--indexing-role <role>", "primary (the page a custom host should index) or variant (an A/B arm or angle sibling)").option("--measurement-binding <jsonOr@file>", "page success event and provider mirrors as JSON (or @path); null clears the binding").option("--structured-data <jsonOr@file>", "SEO structured data (schema.org JSON-LD): a JSON object with @type and name, or @path to a file").option("--datasets <csv>", 'replacement read-dataset slugs ("[]" clears)').option("--writable-datasets <csv>", 'replacement writable-dataset slugs ("[]" clears)').option("--kv <csv>", 'replacement read KV-store slugs ("[]" clears)').option("--writable-kv <csv>", 'replacement writable KV-store slugs ("[]" clears)').option("--public", "make the page publicly viewable").option("--private", "make the page private").option(
6986
6994
  "--request-review",
6987
6995
  "start a saved review and wait for findings; use for material live-page edits"
6988
6996
  ).option("--no-wait", "return the review id without polling for findings").action(
@@ -7003,6 +7011,7 @@ pagesCmd.command("update <id>").description(
7003
7011
  robots_policy: opts.robotsPolicy,
7004
7012
  indexing_role: opts.indexingRole,
7005
7013
  structured_data: readMaybeFile(opts.structuredData),
7014
+ ...measurementBindingInput(opts.measurementBinding),
7006
7015
  dataset_slugs: grantList(opts.datasets),
7007
7016
  writable_dataset_slugs: grantList(opts.writableDatasets),
7008
7017
  kv_slugs: grantList(opts.kv),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.258.0",
3
+ "version": "0.262.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {