@koda-sl/baker-cli 0.504.0 → 0.506.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 (42) hide show
  1. package/README.md +3 -0
  2. package/dist/{ads-MAPZYX6F.js → ads-T5RPISTB.js} +3 -3
  3. package/dist/{analytics-4CCQYY7Z.js → analytics-P5UFA6I4.js} +315 -18
  4. package/dist/analytics-P5UFA6I4.js.map +1 -0
  5. package/dist/{chunk-DI44SZVP.js → chunk-7J3NZBPV.js} +31 -1
  6. package/dist/chunk-7J3NZBPV.js.map +1 -0
  7. package/dist/{chunk-VU5Z2V4S.js → chunk-D3KLDIPQ.js} +2 -2
  8. package/dist/{chunk-GJCB46L6.js → chunk-HWDRW36T.js} +2 -2
  9. package/dist/{chunk-S3FFLLYF.js → chunk-LIRX2Q66.js} +2 -2
  10. package/dist/{chunk-DX46OE4U.js → chunk-OJGYYH6K.js} +2 -2
  11. package/dist/{chunk-ZEGNIP3Y.js → chunk-TVTSA4EN.js} +3 -3
  12. package/dist/cli.js +3 -3
  13. package/dist/{funnel-727XATM5.js → funnel-S6JTLUK6.js} +3 -3
  14. package/dist/{google-VPL4KZDP.js → google-3GSINSOV.js} +2 -2
  15. package/dist/{lookup-LWJMDEEL.js → lookup-ZJIP2M4X.js} +4 -4
  16. package/dist/{performance-CIUVIFD7.js → performance-WPFGEJTE.js} +13 -3
  17. package/dist/performance-WPFGEJTE.js.map +1 -0
  18. package/dist/{plan-O2TTEUIW.js → plan-TVQSEKYL.js} +6 -6
  19. package/dist/{questionnaire-VE42SW77.js → questionnaire-LEZJLMAV.js} +3 -3
  20. package/dist/{sends-OLVQGOAE.js → sends-6FI7WELX.js} +3 -3
  21. package/dist/{sources-PSM2A5QD.js → sources-L3KNVLIB.js} +4 -4
  22. package/dist/{unstage-QFVL7AZ4.js → unstage-MDSSPUKV.js} +3 -3
  23. package/dist/{url-options-LA6BL3GS.js → url-options-IHL4OU4C.js} +2 -2
  24. package/package.json +1 -1
  25. package/dist/analytics-4CCQYY7Z.js.map +0 -1
  26. package/dist/chunk-DI44SZVP.js.map +0 -1
  27. package/dist/performance-CIUVIFD7.js.map +0 -1
  28. /package/dist/{ads-MAPZYX6F.js.map → ads-T5RPISTB.js.map} +0 -0
  29. /package/dist/{chunk-VU5Z2V4S.js.map → chunk-D3KLDIPQ.js.map} +0 -0
  30. /package/dist/{chunk-GJCB46L6.js.map → chunk-HWDRW36T.js.map} +0 -0
  31. /package/dist/{chunk-S3FFLLYF.js.map → chunk-LIRX2Q66.js.map} +0 -0
  32. /package/dist/{chunk-DX46OE4U.js.map → chunk-OJGYYH6K.js.map} +0 -0
  33. /package/dist/{chunk-ZEGNIP3Y.js.map → chunk-TVTSA4EN.js.map} +0 -0
  34. /package/dist/{funnel-727XATM5.js.map → funnel-S6JTLUK6.js.map} +0 -0
  35. /package/dist/{google-VPL4KZDP.js.map → google-3GSINSOV.js.map} +0 -0
  36. /package/dist/{lookup-LWJMDEEL.js.map → lookup-ZJIP2M4X.js.map} +0 -0
  37. /package/dist/{plan-O2TTEUIW.js.map → plan-TVQSEKYL.js.map} +0 -0
  38. /package/dist/{questionnaire-VE42SW77.js.map → questionnaire-LEZJLMAV.js.map} +0 -0
  39. /package/dist/{sends-OLVQGOAE.js.map → sends-6FI7WELX.js.map} +0 -0
  40. /package/dist/{sources-PSM2A5QD.js.map → sources-L3KNVLIB.js.map} +0 -0
  41. /package/dist/{unstage-QFVL7AZ4.js.map → unstage-MDSSPUKV.js.map} +0 -0
  42. /package/dist/{url-options-LA6BL3GS.js.map → url-options-IHL4OU4C.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ANALYTICS_BUSY_FIX,
3
3
  isAnalyticsBusy
4
- } from "./chunk-DI44SZVP.js";
4
+ } from "./chunk-7J3NZBPV.js";
5
5
  import {
6
6
  ApiError
7
7
  } from "./chunk-X7VQFLHI.js";
@@ -42,4 +42,4 @@ export {
42
42
  questionnaireErrorEnvelope,
43
43
  trackingPlanErrorEnvelope
44
44
  };
45
- //# sourceMappingURL=chunk-VU5Z2V4S.js.map
45
+ //# sourceMappingURL=chunk-D3KLDIPQ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-GRQ2AXDX.js";
5
5
  import {
6
6
  EVENT_ITEMS_MAX
7
- } from "./chunk-DI44SZVP.js";
7
+ } from "./chunk-7J3NZBPV.js";
8
8
  import {
9
9
  MATCH_FIELD_FORWARDING
10
10
  } from "./chunk-EDLZGTGN.js";
@@ -476,4 +476,4 @@ export {
476
476
  eventIngestUrl,
477
477
  ingestBrief
478
478
  };
479
- //# sourceMappingURL=chunk-GJCB46L6.js.map
479
+ //# sourceMappingURL=chunk-HWDRW36T.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  formEventKey
3
- } from "./chunk-DI44SZVP.js";
3
+ } from "./chunk-7J3NZBPV.js";
4
4
  import {
5
5
  flowNodeTriggers
6
6
  } from "./chunk-EXELLNQS.js";
@@ -54,4 +54,4 @@ export {
54
54
  flowNodes,
55
55
  flowEventKeys
56
56
  };
57
- //# sourceMappingURL=chunk-S3FFLLYF.js.map
57
+ //# sourceMappingURL=chunk-LIRX2Q66.js.map
@@ -5,7 +5,7 @@ import {
5
5
  isCheckoutRecordKey,
6
6
  isLandingViewKey,
7
7
  parseEventKey
8
- } from "./chunk-DI44SZVP.js";
8
+ } from "./chunk-7J3NZBPV.js";
9
9
 
10
10
  // src/commands/analytics/conversionArgs.ts
11
11
  var ConversionArgsError = class extends Error {
@@ -176,4 +176,4 @@ export {
176
176
  parseConversionsArgs,
177
177
  conversionsWrite
178
178
  };
179
- //# sourceMappingURL=chunk-DX46OE4U.js.map
179
+ //# sourceMappingURL=chunk-OJGYYH6K.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  analyticsErrorEnvelope
3
- } from "./chunk-VU5Z2V4S.js";
3
+ } from "./chunk-D3KLDIPQ.js";
4
4
  import {
5
5
  PEOPLE_SEARCH_MAX_TERMS,
6
6
  parsePeopleQuery,
7
7
  peopleLookupRequestSchema
8
- } from "./chunk-DI44SZVP.js";
8
+ } from "./chunk-7J3NZBPV.js";
9
9
  import {
10
10
  writeJsonEnvelope
11
11
  } from "./chunk-ZRP7Y2DM.js";
@@ -185,4 +185,4 @@ export {
185
185
  lookupReport,
186
186
  lookupCommand
187
187
  };
188
- //# sourceMappingURL=chunk-ZEGNIP3Y.js.map
188
+ //# sourceMappingURL=chunk-TVTSA4EN.js.map
package/dist/cli.js CHANGED
@@ -117,9 +117,9 @@ 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-T5RPISTB.js").then((m) => m.adsCommand),
121
121
  brand: () => import("./brand-JB6NXAAL.js").then((m) => m.brandCommand),
122
- analytics: () => import("./analytics-4CCQYY7Z.js").then((m) => m.analyticsCommand),
122
+ analytics: () => import("./analytics-P5UFA6I4.js").then((m) => m.analyticsCommand),
123
123
  experiment: () => import("./experiment-I5CRLOVN.js").then((m) => m.experimentCommand),
124
124
  ga4: () => import("./ga4-HTD6WC3P.js").then((m) => m.ga4Command),
125
125
  gsc: () => import("./gsc-2MPE4N32.js").then((m) => m.gscCommand),
@@ -127,7 +127,7 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
127
127
  decide: () => import("./decide-4GWMV7VZ.js").then((m) => m.decideCommand),
128
128
  creatives: () => import("./creatives-WUUHFCFY.js").then((m) => m.creativesCommand),
129
129
  flows: () => import("./flows-BP7IQ4YA.js").then((m) => m.flowsCommand),
130
- funnel: () => import("./funnel-727XATM5.js").then((m) => m.funnelCommand),
130
+ funnel: () => import("./funnel-S6JTLUK6.js").then((m) => m.funnelCommand),
131
131
  images: () => import("./images-SCC3QYPG.js").then((m) => m.imagesCommand),
132
132
  studio: () => import("./studio-Z4AJRIGP.js").then((m) => m.studioCommand),
133
133
  avatars: () => import("./avatars-VYXUQSSE.js").then((m) => m.avatarsCommand),
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-LAL4PKNJ.js";
5
5
  import {
6
6
  flowEventKeys
7
- } from "./chunk-S3FFLLYF.js";
7
+ } from "./chunk-LIRX2Q66.js";
8
8
  import {
9
9
  flowDataPath,
10
10
  listFlowSlugs
11
11
  } from "./chunk-NALPM5QO.js";
12
12
  import {
13
13
  parseEventKey
14
- } from "./chunk-DI44SZVP.js";
14
+ } from "./chunk-7J3NZBPV.js";
15
15
  import "./chunk-EDLZGTGN.js";
16
16
  import {
17
17
  writeJsonEnvelope
@@ -392,4 +392,4 @@ function workspaceForms() {
392
392
  export {
393
393
  funnelCommand
394
394
  };
395
- //# sourceMappingURL=funnel-727XATM5.js.map
395
+ //# sourceMappingURL=funnel-S6JTLUK6.js.map
@@ -3248,7 +3248,7 @@ Full guide: __tooling__/docs/tools/baker/ads-google.md`
3248
3248
  subCommands: {
3249
3249
  accounts: () => import("./accounts-K5XLEO6W.js").then((m) => m.accountsCommand),
3250
3250
  currency: () => import("./currency-R4ORE2U3.js").then((m) => m.currencyCommand),
3251
- "url-options": () => import("./url-options-LA6BL3GS.js").then((m) => m.urlOptionsCommand),
3251
+ "url-options": () => import("./url-options-IHL4OU4C.js").then((m) => m.urlOptionsCommand),
3252
3252
  changes: () => import("./changes-36C754R4.js").then((m) => m.changesCommand),
3253
3253
  invoices: () => import("./account-reads-KJHPUVEV.js").then((m) => m.invoicesCommand),
3254
3254
  "identity-verification": () => import("./account-reads-KJHPUVEV.js").then((m) => m.identityVerificationCommand),
@@ -3264,4 +3264,4 @@ Full guide: __tooling__/docs/tools/baker/ads-google.md`
3264
3264
  export {
3265
3265
  googleCommand
3266
3266
  };
3267
- //# sourceMappingURL=google-VPL4KZDP.js.map
3267
+ //# sourceMappingURL=google-3GSINSOV.js.map
@@ -3,9 +3,9 @@ import {
3
3
  lookupReport,
4
4
  peopleArgs,
5
5
  peopleLimitError
6
- } from "./chunk-ZEGNIP3Y.js";
7
- import "./chunk-VU5Z2V4S.js";
8
- import "./chunk-DI44SZVP.js";
6
+ } from "./chunk-TVTSA4EN.js";
7
+ import "./chunk-D3KLDIPQ.js";
8
+ import "./chunk-7J3NZBPV.js";
9
9
  import "./chunk-EDLZGTGN.js";
10
10
  import "./chunk-ZRP7Y2DM.js";
11
11
  import "./chunk-X7VQFLHI.js";
@@ -19,4 +19,4 @@ export {
19
19
  peopleArgs,
20
20
  peopleLimitError
21
21
  };
22
- //# sourceMappingURL=lookup-LWJMDEEL.js.map
22
+ //# sourceMappingURL=lookup-ZJIP2M4X.js.map
@@ -2,7 +2,7 @@ import {
2
2
  ANALYTICS_BUSY_FIX,
3
3
  isAnalyticsBusy,
4
4
  retryOnceIfBusy
5
- } from "./chunk-DI44SZVP.js";
5
+ } from "./chunk-7J3NZBPV.js";
6
6
  import "./chunk-EDLZGTGN.js";
7
7
  import {
8
8
  failApi
@@ -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-WPFGEJTE.js.map