@koda-sl/baker-cli 0.504.0 → 0.505.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.
@@ -38,11 +38,11 @@ Full guides: __tooling__/docs/tools/baker/ads-<platform>.md (google|meta|linkedi
38
38
  linkedin: () => import("./linkedin-4MGRSWXZ.js").then((m) => m.linkedinCommand),
39
39
  x: () => import("./x-7VY6K7JS.js").then((m) => m.xCommand),
40
40
  chatgpt: () => import("./chatgpt-SVGWMEQD.js").then((m) => m.chatgptCommand),
41
- performance: () => import("./performance-CIUVIFD7.js").then((m) => m.performanceCommand),
41
+ performance: () => import("./performance-LMO73TUB.js").then((m) => m.performanceCommand),
42
42
  terms: () => import("./terms-O6ODXEOK.js").then((m) => m.termsCommand)
43
43
  }
44
44
  });
45
45
  export {
46
46
  adsCommand
47
47
  };
48
- //# sourceMappingURL=ads-MAPZYX6F.js.map
48
+ //# sourceMappingURL=ads-OLOEMAID.js.map
package/dist/cli.js CHANGED
@@ -117,7 +117,7 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
117
117
  capabilities: () => import("./capabilities-QREOIRIH.js").then((m) => m.capabilitiesCommand),
118
118
  actions: () => import("./actions-IG2D6NRC.js").then((m) => m.actionsCommand),
119
119
  "scheduled-agents": () => import("./scheduled-agents-7JW3JIOL.js").then((m) => m.scheduledAgentsCommand),
120
- ads: () => import("./ads-MAPZYX6F.js").then((m) => m.adsCommand),
120
+ ads: () => import("./ads-OLOEMAID.js").then((m) => m.adsCommand),
121
121
  brand: () => import("./brand-JB6NXAAL.js").then((m) => m.brandCommand),
122
122
  analytics: () => import("./analytics-4CCQYY7Z.js").then((m) => m.analyticsCommand),
123
123
  experiment: () => import("./experiment-I5CRLOVN.js").then((m) => m.experimentCommand),
@@ -609,9 +609,17 @@ function severalWords(fields) {
609
609
  const rest = nouns.length === 2 ? second.charAt(0).toLowerCase() + second.slice(1) : `${nouns.length - 1} more settings`;
610
610
  return { summary: `${first} and ${rest} changed`, full: null };
611
611
  }
612
+ function bakerTargetingWords(change) {
613
+ const said = change.newValue.trim();
614
+ if (said === "" || change.oldValue.trim() !== "") return null;
615
+ return said.length <= INLINE_LIMIT ? { summary: said, full: null } : { summary: "Targeting changed", full: said };
616
+ }
612
617
  function structuredWords(bare, change) {
613
618
  if (/target_spec$/.test(bare)) return targetingWords(change);
614
619
  if (bare === "creative") return creativeWords(change);
620
+ if (bare === "targeting" && change.kind === "targeting" && change.source === "baker") {
621
+ return bakerTargetingWords(change);
622
+ }
615
623
  return null;
616
624
  }
617
625
  function lineWords(change, options) {
@@ -2304,6 +2312,7 @@ function changesHints(data, request) {
2304
2312
  const paging = pagingHint(data.totalRows, request.offset, data.changes.length);
2305
2313
  return paging === null ? [] : [paging];
2306
2314
  }
2315
+ var EDIT_SAMPLE = 5;
2307
2316
  function compactImpactRow(row) {
2308
2317
  return {
2309
2318
  ...compactChange({ ...row, campaignName: "" }),
@@ -2313,6 +2322,7 @@ function compactImpactRow(row) {
2313
2322
  basis: row.basis,
2314
2323
  reason: row.reason,
2315
2324
  ...row.confounded ? { confounded: true } : {},
2325
+ ...row.edits > 1 ? { edits: row.edits, editSample: row.editValues.slice(0, EDIT_SAMPLE) } : {},
2316
2326
  beforeDays: row.beforeDays,
2317
2327
  afterDays: row.afterDays,
2318
2328
  before: roundDeep(row.before),
@@ -5227,7 +5237,7 @@ var changesCommand = report({
5227
5237
  var impactCommand = report({
5228
5238
  name: "impact",
5229
5239
  schemaName: "impact",
5230
- schemaDescription: `Did a change work? Each change's settled days before against the days after (--impact-days, default 7), against what the rest of the ad account did meanwhile. verdict: better | worse | unclear | too_early | stopped (the change removed it: no after period to judge); effect is relative (0.2 = +20%); confounded when another change overlaps. --actor-kinds baker checks the changes Baker published. Newest first, paged with --limit/--offset; totalRows counts every match. ${STORE_NOTE}`,
5240
+ schemaDescription: `Did a change work? Each change's settled days before against the days after (--impact-days, default 7), against what the rest of the ad account did meanwhile. verdict: better | worse | unclear | too_early | stopped (the change removed it: no after period to judge); effect is relative (0.2 = +20%); confounded when another change overlaps. One publish's edits to one setting are one line: edits counts them, editSample names the first few (--full: editValues, all of them). --actor-kinds baker checks the changes Baker published. Newest first, paged with --limit/--offset; totalRows counts every match. ${STORE_NOTE}`,
5231
5241
  help: "Whether recent changes worked. Example: baker ads performance impact --actor-kinds baker --days 60",
5232
5242
  path: "impact",
5233
5243
  args: IMPACT_ARGS,
@@ -5442,4 +5452,4 @@ Full guide: __tooling__/docs/tools/baker/ads-performance.md`
5442
5452
  export {
5443
5453
  performanceCommand
5444
5454
  };
5445
- //# sourceMappingURL=performance-CIUVIFD7.js.map
5455
+ //# sourceMappingURL=performance-LMO73TUB.js.map