@erdoai/cli 0.236.0 → 0.237.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 +13 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1305,7 +1305,8 @@ var ErdoClient = class {
1305
1305
  clonePage(id, input) {
1306
1306
  return this.request("POST", "/v1/pages", {
1307
1307
  clone_from_page_id: id,
1308
- title: input?.title
1308
+ title: input?.title,
1309
+ target_organization: input?.target_organization
1309
1310
  });
1310
1311
  }
1311
1312
  // --- workstreams ---
@@ -6805,7 +6806,7 @@ pagesCmd.command("deploy").description("Deploy a page (HTML/React); --html/--js/
6805
6806
  ).option(
6806
6807
  "--required-modules <csv>",
6807
6808
  "runtime modules the page needs (erdoui, landing); a page using the landing components renders blank without landing"
6808
- ).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("--public", "make the page publicly viewable").action(
6809
+ ).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("--public", "make the page publicly viewable").action(
6809
6810
  async (opts) => {
6810
6811
  try {
6811
6812
  const csv = (v) => v ? v.split(",").map((s) => s.trim()) : void 0;
@@ -6816,6 +6817,9 @@ pagesCmd.command("deploy").description("Deploy a page (HTML/React); --html/--js/
6816
6817
  css: readMaybeFile(opts.css),
6817
6818
  runtime: opts.runtime,
6818
6819
  required_modules: grantList(opts.requiredModules),
6820
+ robots_policy: opts.robotsPolicy,
6821
+ indexing_role: opts.indexingRole,
6822
+ structured_data: readMaybeFile(opts.structuredData),
6819
6823
  meta_title: opts.metaTitle,
6820
6824
  meta_description: opts.metaDescription,
6821
6825
  meta_icon_asset_id: opts.metaIconAsset,
@@ -6853,7 +6857,7 @@ pagesCmd.command("update <id>").description(
6853
6857
  ).option(
6854
6858
  "--required-modules <csv>",
6855
6859
  'replacement runtime module list (comma-separated; "[]" clears)'
6856
- ).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(
6860
+ ).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(
6857
6861
  "--request-review",
6858
6862
  "ask the judge lenses to review the page after this update and report findings -- for material edits to a LIVE page (layout, forms/CTA, legal/compliance copy, restructured sections), not cosmetic tweaks. First builds and full rewrites are already reviewed automatically"
6859
6863
  ).action(
@@ -6871,6 +6875,9 @@ pagesCmd.command("update <id>").description(
6871
6875
  build_brief: readMaybeFile(opts.buildBrief),
6872
6876
  artifact_kind: opts.kind,
6873
6877
  required_modules: grantList(opts.requiredModules),
6878
+ robots_policy: opts.robotsPolicy,
6879
+ indexing_role: opts.indexingRole,
6880
+ structured_data: readMaybeFile(opts.structuredData),
6874
6881
  dataset_slugs: grantList(opts.datasets),
6875
6882
  writable_dataset_slugs: grantList(opts.writableDatasets),
6876
6883
  kv_slugs: grantList(opts.kv),
@@ -6970,10 +6977,10 @@ pagesCmd.command("monitor-get <id>").description("Read a page's monitoring contr
6970
6977
  }
6971
6978
  });
6972
6979
  pagesCmd.command("clone <id>").description(
6973
- "Copy a page. The copy is byte-identical and starts private (publish state is never inherited); the source's lead-form pipelines are duplicated onto it and the ids in its content rewritten, so it captures its own leads"
6974
- ).option("--title <title>", 'title for the copy (default: "Copy of <source title>")').option("--json", "print the full JSON, including the cloned pipelines and id rewrites").action(async (id, opts) => {
6980
+ "Copy a page. The copy is byte-identical (SEO structured data, indexing role and robots policy included) and starts private (publish state is never inherited); the source's lead-form pipelines are duplicated onto it and the ids in its content rewritten, so it captures its own leads. With --to-org the copy lands in another organization you belong to; pipelines, dataset grants and knowledge assets stay behind and are listed as notes"
6981
+ ).option("--title <title>", 'title for the copy (default: "Copy of <source title>")').option("--to-org <slugOrId>", "copy into this other organization (you must be a member of it)").option("--json", "print the full JSON, including the cloned pipelines and id rewrites").action(async (id, opts) => {
6975
6982
  try {
6976
- const res = await new ErdoClient().clonePage(id, { title: opts.title });
6983
+ const res = await new ErdoClient().clonePage(id, { title: opts.title, target_organization: opts.toOrg });
6977
6984
  if (opts.json) {
6978
6985
  print(res);
6979
6986
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.236.0",
3
+ "version": "0.237.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {