@koda-sl/baker-cli 0.377.0-dev.f659d5b84 → 0.378.0-dev.ad57ff744

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.
package/dist/cli.js CHANGED
@@ -66496,11 +66496,14 @@ function pauseCommand2(ad) {
66496
66496
  return ad.level === "asset_group" ? `\`baker ads google asset-groups update ${target2} --status PAUSED\`` : `\`baker ads google ads pause ${target2}\``;
66497
66497
  }
66498
66498
  function pauseHint(answer) {
66499
+ if (answer.product.stock === "in_stock" || answer.ads.length === 0) return null;
66499
66500
  const active = answer.ads.filter((ad) => ad.status === "active");
66500
- if (answer.product.stock === "in_stock" || active.length === 0) return null;
66501
+ if (active.length === 0) {
66502
+ return `Every ad that sends people to \u201C${answer.product.title}\u201D is already paused: stage nothing for it. Tell the user this run paused nothing, and promise nothing about these ads coming back when it is back in stock.`;
66503
+ }
66501
66504
  const one = active.length === 1;
66502
66505
  const remembered = answer.remembered ? " A pause is remembered for this product only because you read its promotions here." : "";
66503
- return `${plural(active.length, "active ad")} still ${one ? "sends" : "send"} people to \u201C${answer.product.title}\u201D, which is out of stock. Stage pausing ${one ? "it" : "them"}: ${active.map(pauseCommand2).join("; ")}.${remembered}`;
66506
+ return `${plural(active.length, "active ad")} still ${one ? "sends" : "send"} people to \u201C${answer.product.title}\u201D, which is out of stock. Stage pausing ${one ? "it" : "them"}: ${active.map(pauseCommand2).join("; ")}. Each pause waits for the user to review and publish, and nothing turns it back on by itself.${remembered}`;
66504
66507
  }
66505
66508
  function promotionHints(answer, scan) {
66506
66509
  const hints2 = [];
@@ -66531,7 +66534,7 @@ function promotionHints(answer, scan) {
66531
66534
  }
66532
66535
  if (!answer.remembered) {
66533
66536
  hints2.push(
66534
- "This read was not remembered for a Session (no chat): a pause staged from it will not be undone when the product is back."
66537
+ "This read was not remembered for a Session (no chat): a pause staged from it will never be offered back for restarting when the product returns."
66535
66538
  );
66536
66539
  }
66537
66540
  return hints2;
@@ -66597,7 +66600,7 @@ function stockHoldHints(answer) {
66597
66600
  // src/commands/shopify/promotions.ts
66598
66601
  registerSchema({
66599
66602
  command: "shopify.promotions",
66600
- description: "Start here when a product runs out of stock or comes back: what is advertising it \u2014 ads on Google Ads and Meta that lead to its store page, its buy link or a landing that links to it (`via`), the landings themselves (from this workspace's pages, and from measured visits), and the Shopping campaigns and catalog ads that show it (they stop by themselves when it runs out \u2014 never pause them). Read it in the Session that pauses: a pause is remembered \u2014 and undone when the product is back in stock \u2014 only for a product whose promotions that Session read. `checked.not_checked` names a platform Baker could not read.",
66603
+ description: "Start here when a product runs out of stock or comes back: what is advertising it \u2014 ads on Google Ads and Meta that lead to its store page, its buy link or a landing that links to it (`via`), the landings themselves (from this workspace's pages, and from measured visits), and the Shopping campaigns and catalog ads that show it (they stop by themselves when it runs out \u2014 never pause them). Read it in the Session that pauses: a pause is remembered only for a product whose promotions that Session read, so that \u201CRestart ads when a product is back\u201D, if the company has it, can later stage turning it back on for the user to review \u2014 nothing restarts by itself, and every pause waits for the user to review and publish. `checked.not_checked` names a platform Baker could not read.",
66601
66604
  args: {
66602
66605
  product: { type: "positional", description: "Product id, handle, or a link to the product", required: true },
66603
66606
  full: {