@koda-sl/baker-cli 0.862.0 → 0.864.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 (129) hide show
  1. package/README.md +4 -1
  2. package/dist/{activities-RYNGZIVX.js → activities-LC64DAAK.js} +3 -3
  3. package/dist/{add-UEM2ZBHL.js → add-D6ISSYOI.js} +5 -5
  4. package/dist/{ads-XJ7HSPQL.js → ads-F6IN27LX.js} +3 -3
  5. package/dist/{ads-EYCK5FW5.js → ads-ZR5D7BZT.js} +3 -3
  6. package/dist/{adsets-GI2AMYYV.js → adsets-3NIYL2GQ.js} +5 -5
  7. package/dist/{analytics-M4W62IFX.js → analytics-2JEGNTNZ.js} +2 -2
  8. package/dist/{audiences-FWRHDFUF.js → audiences-DL267GNQ.js} +3 -3
  9. package/dist/{brief-TRRAYXYE.js → brief-WGNRT2KX.js} +7 -7
  10. package/dist/{campaigns-LZRGPANP.js → campaigns-KGTIKNN6.js} +2 -2
  11. package/dist/{campaigns-2HSADSRS.js → campaigns-RXDC5FSQ.js} +3 -3
  12. package/dist/{canvas-H7NEBLIL.js → canvas-23IQXJEF.js} +14 -14
  13. package/dist/{catalog-JUPGQN5T.js → catalog-MGKBY4O4.js} +5 -5
  14. package/dist/{check-IUIYFYGF.js → check-ZLJ26FS4.js} +5 -5
  15. package/dist/{chunk-EL5HNBRX.js → chunk-4TEQIAZG.js} +2 -2
  16. package/dist/{chunk-A3KYQTDR.js → chunk-6JLQZNS4.js} +2 -2
  17. package/dist/{chunk-QKPQ3YUV.js → chunk-AFNO7SSI.js} +2 -2
  18. package/dist/{chunk-OJMN4VNG.js → chunk-F3OYRVLY.js} +2 -2
  19. package/dist/{chunk-3KSMMYXO.js → chunk-FZNCML5Q.js} +4 -4
  20. package/dist/{chunk-353LBUUN.js → chunk-GFM3OEFZ.js} +6 -6
  21. package/dist/{chunk-QXEKUHNO.js → chunk-HUG6KXFO.js} +2 -2
  22. package/dist/{chunk-IGVUW6H7.js → chunk-I3XV6JLQ.js} +8 -8
  23. package/dist/{chunk-T75ACB3M.js → chunk-M677IBYO.js} +6 -6
  24. package/dist/{chunk-LNOI2WZ5.js → chunk-MAMHV6Q3.js} +32 -6
  25. package/dist/chunk-MAMHV6Q3.js.map +1 -0
  26. package/dist/{chunk-7TT2BHG5.js → chunk-NRU2A7TJ.js} +7 -3
  27. package/dist/chunk-NRU2A7TJ.js.map +1 -0
  28. package/dist/{chunk-DB3TA3RM.js → chunk-OXX7W2BC.js} +2 -2
  29. package/dist/{chunk-U4W2YZF6.js → chunk-PA4LKUPT.js} +2 -2
  30. package/dist/{chunk-JHAK5FMN.js → chunk-PAWWO4CQ.js} +13 -13
  31. package/dist/{chunk-MF43LVW7.js → chunk-QJHAL4GT.js} +3 -3
  32. package/dist/{chunk-TAJSLFIT.js → chunk-QNO7X7PC.js} +2 -2
  33. package/dist/{chunk-PTAUELBC.js → chunk-RGA4RIRY.js} +2 -2
  34. package/dist/{chunk-RDU2PZRW.js → chunk-RIIQTI3Q.js} +4 -4
  35. package/dist/{chunk-CCV7JFGQ.js → chunk-TI42625W.js} +2 -2
  36. package/dist/{chunk-5BIUBIVM.js → chunk-TUP3I2P4.js} +2 -2
  37. package/dist/{chunk-D7VGMMBR.js → chunk-WKRVHRWY.js} +2 -2
  38. package/dist/{chunk-TR7SOQIS.js → chunk-YSXPWTTW.js} +3 -3
  39. package/dist/{chunk-MFEYGNH2.js → chunk-ZJXYWHQT.js} +2 -2
  40. package/dist/cli.js +7 -7
  41. package/dist/{creatives-72OJSUFE.js → creatives-CPLH3KHQ.js} +3 -3
  42. package/dist/{creatives-TUCOHGY4.js → creatives-DQNJ3J3Q.js} +6 -6
  43. package/dist/{creatives-J5LXNIWE.js → creatives-J64BHJA7.js} +2 -2
  44. package/dist/{critique-EM6T6RY7.js → critique-7HVFNPMU.js} +6 -6
  45. package/dist/engine/index.js +4 -4
  46. package/dist/{hubspot-EQI27OIR.js → hubspot-72LKX7CR.js} +2 -2
  47. package/dist/{ideas-X2IQXG3U.js → ideas-T5P5OOU5.js} +4 -4
  48. package/dist/{linkedin-5BSFN3EA.js → linkedin-DIMRQQWU.js} +3 -3
  49. package/dist/{make-LHLR54IM.js → make-PQU6T3LJ.js} +14 -14
  50. package/dist/{meta-573FUKTB.js → meta-SPPSYRMC.js} +7 -7
  51. package/dist/{rerun-P7BJ33RX.js → rerun-COAQLIJG.js} +16 -16
  52. package/dist/{rules-QEKCMD5H.js → rules-23LHDFC5.js} +4 -4
  53. package/dist/{run-LVVTOM4B.js → run-6MKMFLZK.js} +16 -16
  54. package/dist/{scaffold-ad-YVWTZ2JP.js → scaffold-ad-W6XC77IJ.js} +11 -11
  55. package/dist/{scaffold-static-ad-AY6G4SQM.js → scaffold-static-ad-BEKS35KV.js} +19 -19
  56. package/dist/{scaffold-video-YHU4WCSS.js → scaffold-video-N6CANP4G.js} +10 -10
  57. package/dist/{schema-DMZCRTXQ.js → schema-4GRR5NAI.js} +1 -1
  58. package/dist/{select-MMOVRFNE.js → select-EWXF3CKB.js} +7 -7
  59. package/dist/{set-7FBICG5P.js → set-JIPL77UJ.js} +7 -7
  60. package/dist/{set-prompt-XTZ3KJOV.js → set-prompt-4RYZ25BJ.js} +7 -7
  61. package/dist/{sources-EONNVSIV.js → sources-2TG66AZO.js} +10 -4
  62. package/dist/sources-2TG66AZO.js.map +1 -0
  63. package/dist/{stale-TA5EGT67.js → stale-C72KG4C4.js} +7 -7
  64. package/dist/{sync-definition-E4SJPE53.js → sync-definition-N5YCJUQ7.js} +10 -10
  65. package/dist/{translate-5X533F6J.js → translate-IBYLAVFU.js} +11 -11
  66. package/dist/{validate-2TAMLZN2.js → validate-TIX44YWI.js} +11 -11
  67. package/dist/{viewer-check-DU7JROZJ.js → viewer-check-JJYYH7MQ.js} +6 -6
  68. package/package.json +1 -1
  69. package/dist/chunk-7TT2BHG5.js.map +0 -1
  70. package/dist/chunk-LNOI2WZ5.js.map +0 -1
  71. package/dist/sources-EONNVSIV.js.map +0 -1
  72. /package/dist/{activities-RYNGZIVX.js.map → activities-LC64DAAK.js.map} +0 -0
  73. /package/dist/{add-UEM2ZBHL.js.map → add-D6ISSYOI.js.map} +0 -0
  74. /package/dist/{ads-XJ7HSPQL.js.map → ads-F6IN27LX.js.map} +0 -0
  75. /package/dist/{ads-EYCK5FW5.js.map → ads-ZR5D7BZT.js.map} +0 -0
  76. /package/dist/{adsets-GI2AMYYV.js.map → adsets-3NIYL2GQ.js.map} +0 -0
  77. /package/dist/{analytics-M4W62IFX.js.map → analytics-2JEGNTNZ.js.map} +0 -0
  78. /package/dist/{audiences-FWRHDFUF.js.map → audiences-DL267GNQ.js.map} +0 -0
  79. /package/dist/{brief-TRRAYXYE.js.map → brief-WGNRT2KX.js.map} +0 -0
  80. /package/dist/{campaigns-LZRGPANP.js.map → campaigns-KGTIKNN6.js.map} +0 -0
  81. /package/dist/{campaigns-2HSADSRS.js.map → campaigns-RXDC5FSQ.js.map} +0 -0
  82. /package/dist/{canvas-H7NEBLIL.js.map → canvas-23IQXJEF.js.map} +0 -0
  83. /package/dist/{catalog-JUPGQN5T.js.map → catalog-MGKBY4O4.js.map} +0 -0
  84. /package/dist/{check-IUIYFYGF.js.map → check-ZLJ26FS4.js.map} +0 -0
  85. /package/dist/{chunk-EL5HNBRX.js.map → chunk-4TEQIAZG.js.map} +0 -0
  86. /package/dist/{chunk-A3KYQTDR.js.map → chunk-6JLQZNS4.js.map} +0 -0
  87. /package/dist/{chunk-QKPQ3YUV.js.map → chunk-AFNO7SSI.js.map} +0 -0
  88. /package/dist/{chunk-OJMN4VNG.js.map → chunk-F3OYRVLY.js.map} +0 -0
  89. /package/dist/{chunk-3KSMMYXO.js.map → chunk-FZNCML5Q.js.map} +0 -0
  90. /package/dist/{chunk-353LBUUN.js.map → chunk-GFM3OEFZ.js.map} +0 -0
  91. /package/dist/{chunk-QXEKUHNO.js.map → chunk-HUG6KXFO.js.map} +0 -0
  92. /package/dist/{chunk-IGVUW6H7.js.map → chunk-I3XV6JLQ.js.map} +0 -0
  93. /package/dist/{chunk-T75ACB3M.js.map → chunk-M677IBYO.js.map} +0 -0
  94. /package/dist/{chunk-DB3TA3RM.js.map → chunk-OXX7W2BC.js.map} +0 -0
  95. /package/dist/{chunk-U4W2YZF6.js.map → chunk-PA4LKUPT.js.map} +0 -0
  96. /package/dist/{chunk-JHAK5FMN.js.map → chunk-PAWWO4CQ.js.map} +0 -0
  97. /package/dist/{chunk-MF43LVW7.js.map → chunk-QJHAL4GT.js.map} +0 -0
  98. /package/dist/{chunk-TAJSLFIT.js.map → chunk-QNO7X7PC.js.map} +0 -0
  99. /package/dist/{chunk-PTAUELBC.js.map → chunk-RGA4RIRY.js.map} +0 -0
  100. /package/dist/{chunk-RDU2PZRW.js.map → chunk-RIIQTI3Q.js.map} +0 -0
  101. /package/dist/{chunk-CCV7JFGQ.js.map → chunk-TI42625W.js.map} +0 -0
  102. /package/dist/{chunk-5BIUBIVM.js.map → chunk-TUP3I2P4.js.map} +0 -0
  103. /package/dist/{chunk-D7VGMMBR.js.map → chunk-WKRVHRWY.js.map} +0 -0
  104. /package/dist/{chunk-TR7SOQIS.js.map → chunk-YSXPWTTW.js.map} +0 -0
  105. /package/dist/{chunk-MFEYGNH2.js.map → chunk-ZJXYWHQT.js.map} +0 -0
  106. /package/dist/{creatives-72OJSUFE.js.map → creatives-CPLH3KHQ.js.map} +0 -0
  107. /package/dist/{creatives-TUCOHGY4.js.map → creatives-DQNJ3J3Q.js.map} +0 -0
  108. /package/dist/{creatives-J5LXNIWE.js.map → creatives-J64BHJA7.js.map} +0 -0
  109. /package/dist/{critique-EM6T6RY7.js.map → critique-7HVFNPMU.js.map} +0 -0
  110. /package/dist/{hubspot-EQI27OIR.js.map → hubspot-72LKX7CR.js.map} +0 -0
  111. /package/dist/{ideas-X2IQXG3U.js.map → ideas-T5P5OOU5.js.map} +0 -0
  112. /package/dist/{linkedin-5BSFN3EA.js.map → linkedin-DIMRQQWU.js.map} +0 -0
  113. /package/dist/{make-LHLR54IM.js.map → make-PQU6T3LJ.js.map} +0 -0
  114. /package/dist/{meta-573FUKTB.js.map → meta-SPPSYRMC.js.map} +0 -0
  115. /package/dist/{rerun-P7BJ33RX.js.map → rerun-COAQLIJG.js.map} +0 -0
  116. /package/dist/{rules-QEKCMD5H.js.map → rules-23LHDFC5.js.map} +0 -0
  117. /package/dist/{run-LVVTOM4B.js.map → run-6MKMFLZK.js.map} +0 -0
  118. /package/dist/{scaffold-ad-YVWTZ2JP.js.map → scaffold-ad-W6XC77IJ.js.map} +0 -0
  119. /package/dist/{scaffold-static-ad-AY6G4SQM.js.map → scaffold-static-ad-BEKS35KV.js.map} +0 -0
  120. /package/dist/{scaffold-video-YHU4WCSS.js.map → scaffold-video-N6CANP4G.js.map} +0 -0
  121. /package/dist/{schema-DMZCRTXQ.js.map → schema-4GRR5NAI.js.map} +0 -0
  122. /package/dist/{select-MMOVRFNE.js.map → select-EWXF3CKB.js.map} +0 -0
  123. /package/dist/{set-7FBICG5P.js.map → set-JIPL77UJ.js.map} +0 -0
  124. /package/dist/{set-prompt-XTZ3KJOV.js.map → set-prompt-4RYZ25BJ.js.map} +0 -0
  125. /package/dist/{stale-TA5EGT67.js.map → stale-C72KG4C4.js.map} +0 -0
  126. /package/dist/{sync-definition-E4SJPE53.js.map → sync-definition-N5YCJUQ7.js.map} +0 -0
  127. /package/dist/{translate-5X533F6J.js.map → translate-IBYLAVFU.js.map} +0 -0
  128. /package/dist/{validate-2TAMLZN2.js.map → validate-TIX44YWI.js.map} +0 -0
  129. /package/dist/{viewer-check-DU7JROZJ.js.map → viewer-check-JJYYH7MQ.js.map} +0 -0
@@ -1,3 +1,7 @@
1
+ import {
2
+ layoutJson
3
+ } from "./chunk-2RTB2DDO.js";
4
+
1
5
  // src/commands/ads/list-rows.ts
2
6
  function asRecord(value) {
3
7
  return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
@@ -23,6 +27,32 @@ function projectFields(rows, paths) {
23
27
  return projected;
24
28
  });
25
29
  }
30
+ var LARGE_FULL_BYTES = 20 * 1024;
31
+ function fullListingSizeHint(rows, raw, columns, compact) {
32
+ const fullBytes = Buffer.byteLength(layoutJson(raw));
33
+ if (fullBytes <= LARGE_FULL_BYTES) return void 0;
34
+ const compactBytes = Buffer.byteLength(layoutJson(rows.map(compact.row)));
35
+ const compactColumns = /* @__PURE__ */ new Set([...compact.columns, ...compact.whenPresent ?? []]);
36
+ const extra = columns.filter((column) => !compactColumns.has(column));
37
+ const example = [...["id", "name"].filter((key) => columns.includes(key)), ...extra.slice(0, 4)].join(",");
38
+ const nested = nestedPathExample(raw, extra);
39
+ return `--full printed ${Math.round(fullBytes / 1024)} KB for ${raw.length} rows; the compact row is ${Math.round(compactBytes / 1024)} KB. Ask for only the paths you read, e.g. --fields ${example}${nested ? ` (dots reach nested ones, e.g. ${nested})` : ""}. Fields here the compact row lacks: ${extra.join(", ")}.`;
40
+ }
41
+ function nestedPathExample(raw, columns) {
42
+ for (const column of columns) {
43
+ for (const row of raw) {
44
+ const child = Object.keys(asRecord(row[column]) ?? {})[0];
45
+ if (child) return `${column}.${child}`;
46
+ }
47
+ }
48
+ return void 0;
49
+ }
50
+ function fullRows(rows, raw, compact) {
51
+ const columns = /* @__PURE__ */ new Set();
52
+ for (const row of raw) for (const key of Object.keys(row)) columns.add(key);
53
+ const hint = fullListingSizeHint(rows, raw, [...columns], compact);
54
+ return { rows: raw, fields: [...columns], ...hint ? { hints: [hint] } : {} };
55
+ }
26
56
  function shapeListRows(rows, args, compact) {
27
57
  const raw = rows;
28
58
  const fields = typeof args.fields === "string" ? args.fields : void 0;
@@ -55,11 +85,7 @@ function shapeListRows(rows, args, compact) {
55
85
  };
56
86
  }
57
87
  }
58
- if (args.full) {
59
- const columns = /* @__PURE__ */ new Set();
60
- for (const row of raw) for (const key of Object.keys(row)) columns.add(key);
61
- return { rows: raw, fields: [...columns] };
62
- }
88
+ if (args.full) return fullRows(rows, raw, compact);
63
89
  const shaped = rows.map(compact.row);
64
90
  const present = (compact.whenPresent ?? []).filter((column) => shaped.some((row) => row[column] !== void 0));
65
91
  return { rows: shaped, fields: [...compact.columns, ...present] };
@@ -69,4 +95,4 @@ export {
69
95
  asRecord,
70
96
  shapeListRows
71
97
  };
72
- //# sourceMappingURL=chunk-LNOI2WZ5.js.map
98
+ //# sourceMappingURL=chunk-MAMHV6Q3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/ads/list-rows.ts"],"sourcesContent":["/**\n * What a platform list command prints per row: a compact projection by default,\n * the dotted paths `--fields` names, or the raw record under `--full`. Ad platforms\n * return every field they were asked for on every row, so passing rows through\n * spends the agent's context on fields it rarely reads.\n */\n\nimport { layoutJson } from \"../../output.ts\";\n\nexport function asRecord(value: unknown): Record<string, unknown> | undefined {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : undefined;\n}\n\n/** Reads one dotted path (`content.textAd.landingPage`) out of a record. */\nexport function readPath(row: Record<string, unknown>, path: string): unknown {\n let current: unknown = row;\n for (const segment of path.split(\".\")) {\n const record = asRecord(current);\n if (!record) return undefined;\n current = record[segment];\n }\n return current;\n}\n\nexport function projectFields(rows: Array<Record<string, unknown>>, paths: string[]): Array<Record<string, unknown>> {\n return rows.map((row) => {\n const projected: Record<string, unknown> = {};\n for (const path of paths) {\n const value = readPath(row, path);\n if (value !== undefined) {\n projected[path] = value;\n }\n }\n return projected;\n });\n}\n\nexport interface ShapedRows {\n rows: Array<Record<string, unknown>>;\n /**\n * The columns the csv/md writers must use. Those writers derive a header from\n * row 0 when given none, which silently drops any key the first row lacks — so\n * the shaping decision carries its own columns; `--full` carries every key any\n * row has.\n */\n fields?: string[];\n /** A `--fields` path no row carries — named, or it reads as a column that is empty. */\n hints?: string[];\n}\n\nexport interface CompactProjection<Row> {\n row: (row: Row) => Record<string, unknown>;\n columns: readonly string[];\n /** Columns that print only when some row carries them — a rare signal must not widen every table. */\n whenPresent?: readonly string[];\n}\n\n/** Past this, a `--full` listing is a read to project, not to print: one ad-set listing ran to 260 KB for two fields. */\nconst LARGE_FULL_BYTES = 20 * 1024;\n\n/**\n * A large `--full` listing names the `--fields` call that reads only what the compact row\n * lacks, at the point of use: the guidance in the docs did not stop agents saving 260 KB to\n * parse two fields out of it, nor a report endpoint paying for it on every refresh.\n */\nfunction fullListingSizeHint<Row extends object>(\n rows: Row[],\n raw: Array<Record<string, unknown>>,\n columns: string[],\n compact: CompactProjection<Row>,\n): string | undefined {\n // Measured as the writer prints it, since that is what lands in the agent's context.\n const fullBytes = Buffer.byteLength(layoutJson(raw));\n if (fullBytes <= LARGE_FULL_BYTES) return undefined;\n const compactBytes = Buffer.byteLength(layoutJson(rows.map(compact.row)));\n const compactColumns = new Set([...compact.columns, ...(compact.whenPresent ?? [])]);\n const extra = columns.filter((column) => !compactColumns.has(column));\n const example = [...[\"id\", \"name\"].filter((key) => columns.includes(key)), ...extra.slice(0, 4)].join(\",\");\n const nested = nestedPathExample(raw, extra);\n return `--full printed ${Math.round(fullBytes / 1024)} KB for ${raw.length} rows; the compact row is ${Math.round(compactBytes / 1024)} KB. Ask for only the paths you read, e.g. --fields ${example}${nested ? ` (dots reach nested ones, e.g. ${nested})` : \"\"}. Fields here the compact row lacks: ${extra.join(\", \")}.`;\n}\n\n/** A dotted path these rows really carry, so the example fits the platform it is printed for. */\nfunction nestedPathExample(raw: Array<Record<string, unknown>>, columns: string[]): string | undefined {\n for (const column of columns) {\n for (const row of raw) {\n const child = Object.keys(asRecord(row[column]) ?? {})[0];\n if (child) return `${column}.${child}`;\n }\n }\n return undefined;\n}\n\nfunction fullRows<Row extends object>(\n rows: Row[],\n raw: Array<Record<string, unknown>>,\n compact: CompactProjection<Row>,\n): ShapedRows {\n // Platforms omit empty fields, so row 0 alone would drop a column a later row carries.\n const columns = new Set<string>();\n for (const row of raw) for (const key of Object.keys(row)) columns.add(key);\n const hint = fullListingSizeHint(rows, raw, [...columns], compact);\n return { rows: raw, fields: [...columns], ...(hint ? { hints: [hint] } : {}) };\n}\n\n/** `--fields` wins over `--full`, which wins over the compact default. */\nexport function shapeListRows<Row extends object>(\n rows: Row[],\n args: Record<string, unknown>,\n compact: CompactProjection<Row>,\n): ShapedRows {\n const raw = rows as unknown as Array<Record<string, unknown>>;\n const fields = typeof args.fields === \"string\" ? args.fields : undefined;\n if (fields) {\n const paths = fields\n .split(\",\")\n .map((field) => field.trim())\n .filter((field) => field.length > 0);\n if (paths.length > 0) {\n // A column the compact row derives (`created_date`, `creative_id`) is one an agent has\n // seen and will name, so a path the raw record lacks is read off the compact row.\n const projected = projectFields(raw, paths).map((row, i) => {\n const missing = paths.filter((path) => row[path] === undefined);\n const source = rows[i];\n if (missing.length === 0 || source === undefined) return row;\n const compactRow = compact.row(source);\n for (const path of missing) {\n if (compactRow[path] !== undefined) row[path] = compactRow[path];\n }\n return row;\n });\n const unmatched = paths.filter((path) => projected.every((row) => row[path] === undefined));\n if (projected.length === 0 || unmatched.length === 0) return { rows: projected, fields: paths };\n // Only what some row holds: a compact column every row leaves empty would read as a field these rows carry.\n const compactRows = rows.map(compact.row);\n const carried = new Set([\n ...compact.columns.filter((column) => compactRows.some((row) => row[column] !== undefined)),\n ...raw.flatMap((row) => Object.keys(row).filter((key) => row[key] !== undefined)),\n ]);\n return {\n rows: projected,\n fields: paths,\n hints: [\n `--fields matched nothing for: ${unmatched.join(\", \")}. The fields these rows carry are: ${[...carried].join(\", \")} (reach nested ones with dots, e.g. targeting.geo_locations).`,\n ],\n };\n }\n }\n if (args.full) return fullRows(rows, raw, compact);\n const shaped = rows.map(compact.row);\n const present = (compact.whenPresent ?? []).filter((column) => shaped.some((row) => row[column] !== undefined));\n return { rows: shaped, fields: [...compact.columns, ...present] };\n}\n"],"mappings":";;;;;AASO,SAAS,SAAS,OAAqD;AAC5E,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK,IACrE,QACD;AACN;AAGO,SAAS,SAAS,K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;AAAA,QACjE;AACA,eAAO;AAAA,MACT,CAAC;AACD,YAAM,YAAY,MAAM,OAAO,CAAC,SAAS,UAAU,MAAM,CAAC,QAAQ,IAAI,IAAI,MAAM,MAAS,CAAC;AAC1F,UAAI,UAAU,WAAW,KAAK,UAAU,WAAW,EAAG,QAAO,EAAE,MAAM,WAAW,QAAQ,MAAM;AAE9F,YAAM,cAAc,KAAK,IAAI,QAAQ,GAAG;AACxC,YAAM,UAAU,oBAAI,IAAI;AAAA,QACtB,GAAG,QAAQ,QAAQ,OAAO,CAAC,WAAW,YAAY,KAAK,CAAC,QAAQ,IAAI,MAAM,MAAM,MAAS,CAAC;AAAA,QAC1F,GAAG,IAAI,QAAQ,CAAC,QAAQ,OAAO,KAAK,GAAG,EAAE,OAAO,CAAC,QAAQ,IAAI,GAAG,MAAM,MAAS,CAAC;AAAA,MAClF,CAAC;AACD,aAAO;AAAA,QACL,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,OAAO;AAAA,UACL,iCAAiC,UAAU,KAAK,IAAI,CAAC,sCAAsC,CAAC,GAAG,OAAO,EAAE,KAAK,IAAI,CAAC;AAAA,QACpH;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACA,MAAI,KAAK,KAAM,QAAO,SAAS,MAAM,KAAK,OAAO;AACjD,QAAM,SAAS,KAAK,IAAI,QAAQ,GAAG;AACnC,QAAM,WAAW,QAAQ,eAAe,CAAC,GAAG,OAAO,CAAC,WAAW,OAAO,KAAK,CAAC,QAAQ,IAAI,MAAM,MAAM,MAAS,CAAC;AAC9G,SAAO,EAAE,MAAM,QAAQ,QAAQ,CAAC,GAAG,QAAQ,SAAS,GAAG,OAAO,EAAE;AAClE;","names":[]}
@@ -179,7 +179,9 @@ var hubspotPreviewRequestSchema = z2.strictObject({
179
179
  /** Property names to read off the sample; `id` is always there. On a deal or a lead, `contact.<name>` reads its first contact. */
180
180
  properties: z2.array(z2.string().trim().min(1)).max(60).optional(),
181
181
  /** The record to draw the preview from — an id, or text to search (an email or a name for a contact, a deal's or a lead's name). The one most recently at the trigger when unsaid. */
182
- contact: z2.string().trim().min(1).max(200).optional()
182
+ contact: z2.string().trim().min(1).max(200).optional(),
183
+ /** A total for each value of the trigger's one dropdown `is` condition, beside the combined one — sizing a funnel in one call. */
184
+ breakdown: z2.boolean().optional()
183
185
  });
184
186
  var hubspotPreviewSchema = z2.strictObject({
185
187
  /** Records satisfying the trigger today — the ones that will NOT be counted. */
@@ -195,7 +197,9 @@ var hubspotPreviewSchema = z2.strictObject({
195
197
  * people the event is about. Three parallel nullable fields, exactly one of
196
198
  * them ever set, would say the same thing and let a caller read the wrong one.
197
199
  */
198
- record: sampleRecordSchema.extend({ contacts: z2.array(sampleRecordSchema) }).nullable()
200
+ record: sampleRecordSchema.extend({ contacts: z2.array(sampleRecordSchema) }).nullable(),
201
+ /** Only on a `breakdown`: each value of the condition with how many records are at it today, in the order asked. */
202
+ counts: z2.array(z2.strictObject({ value: z2.string(), total: z2.number() })).optional()
199
203
  });
200
204
  var sourcesRequestSchema = z2.strictObject({
201
205
  /** The company's own server door: made once, `counting` from the start, the same address for ever after. */
@@ -389,4 +393,4 @@ export {
389
393
  hubspotDefaultMapping,
390
394
  hubspotTriggerInputSchema
391
395
  };
392
- //# sourceMappingURL=chunk-7TT2BHG5.js.map
396
+ //# sourceMappingURL=chunk-NRU2A7TJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../api/src/event-sources/hubspot.ts","../../api/src/event-sources/wire.ts","../../api/src/event-sources/activecampaign.ts"],"sourcesContent":["/**\n * What a HubSpot event reads by default, spelled as the same templates an\n * address's mapping uses — so the sheet shows one table for both, and a row\n * can be repointed at any property, or typed.\n *\n * ## Why defaults and not a fixed read\n *\n * The read used to be hard-wired: email from `email`, the Google click from\n * `hs_google_click_id`, and nothing anybody could change. Real accounts keep\n * the email under `work_email`, the deal value under a custom number\n * property, and a click id under whatever the tracking template wrote. The\n * defaults are HubSpot's standard names, which is where most accounts keep\n * them; every row is a template a person or the agent can change, and the\n * picker is the account's own property list, read live — never this table.\n *\n * An empty stored mapping means these — the same rule as an address, where\n * empty means \"the guess\".\n *\n * ## Three objects, one spelling\n *\n * A mention names a property of the object watched: `{{email}}` on a\n * contact source, `{{amount}}` on a deal source, `{{hs_pipeline_stage}}` on\n * a lead source, `{{id}}` the record's own id on any of them. A deal or a\n * lead source also reads the contact its record is about, through the\n * `contact.` namespace: `{{contact.email}}`, `{{contact.id}}`. The namespace\n * is what keeps the objects' properties apart in one table, and it is\n * spelled the way the Forms builder spells a nested field.\n */\n\nimport type { SourceField } from \"./fields\";\nimport type { HubspotObject } from \"./hubspotTrigger\";\nimport { mentionOf } from \"./template\";\n\n/** The variable that is the record's own id rather than a property: `{{id}}`. */\nexport const HUBSPOT_CONTACT_ID_VARIABLE = \"id\";\n\n/** On a deal source, the associated contact's properties are read as `{{contact.<property>}}`. */\nexport const HUBSPOT_CONTACT_PREFIX = \"contact.\";\n\n/** The path for a property of a deal's contact: `contact.email`. */\nexport function contactPath(property: string): string {\n return `${HUBSPOT_CONTACT_PREFIX}${property}`;\n}\n\n/** The contact property a `contact.<property>` path names, or null for a path of the record itself. */\nexport function contactPropertyOf(path: string): string | null {\n return path.startsWith(HUBSPOT_CONTACT_PREFIX) ? path.slice(HUBSPOT_CONTACT_PREFIX.length) : null;\n}\n\n/** HubSpot's standard contact property behind each field, where one exists. */\nexport const HUBSPOT_DEFAULT_PROPERTIES: Readonly<Partial<Record<SourceField, string>>> = {\n email: \"email\",\n phone: \"phone\",\n external_id: HUBSPOT_CONTACT_ID_VARIABLE,\n first_name: \"firstname\",\n last_name: \"lastname\",\n city: \"city\",\n postal_code: \"zip\",\n country: \"country\",\n gclid: \"hs_google_click_id\",\n fbclid: \"hs_facebook_click_id\",\n};\n\n/**\n * The person's rows read off the record's associated contact, for an object\n * that is about somebody rather than being them.\n */\nconst throughContact: Readonly<Partial<Record<SourceField, string>>> = Object.fromEntries(\n Object.entries(HUBSPOT_DEFAULT_PROPERTIES).map(([field, property]) => [field, contactPath(property)]),\n);\n\n/**\n * The same for a deal: the person is the deal's contact, the amount is the\n * deal's own — HubSpot keeps it as `amount` in `deal_currency_code`, on\n * every account, which is the one row a contact source could never fill by\n * default.\n */\nexport const HUBSPOT_DEAL_DEFAULT_PROPERTIES: Readonly<Partial<Record<SourceField, string>>> = {\n ...throughContact,\n value: \"amount\",\n currency: \"deal_currency_code\",\n};\n\n/**\n * The same for a lead. A lead is an interest in somebody, not an amount: it\n * has no `amount` and no currency of its own, so the value rows stay empty\n * and the funnel counts the step rather than money. Anyone who keeps a figure\n * on a custom lead property can still point `value` at it by hand.\n */\nexport const HUBSPOT_LEAD_DEFAULT_PROPERTIES: Readonly<Partial<Record<SourceField, string>>> = throughContact;\n\nconst DEFAULTS: Readonly<Record<HubspotObject, Readonly<Partial<Record<SourceField, string>>>>> = {\n contact: HUBSPOT_DEFAULT_PROPERTIES,\n deal: HUBSPOT_DEAL_DEFAULT_PROPERTIES,\n lead: HUBSPOT_LEAD_DEFAULT_PROPERTIES,\n};\n\n/** The mapping a HubSpot event starts with: its name as the event, the standard properties for the rest. */\nexport function hubspotDefaultMapping(\n sourceName: string,\n object: HubspotObject = \"contact\",\n): Partial<Record<SourceField, string>> {\n const mapping: Partial<Record<SourceField, string>> = { event_name: sourceName };\n for (const [field, property] of Object.entries(DEFAULTS[object])) {\n mapping[field as SourceField] = mentionOf(property);\n }\n return mapping;\n}\n\n/**\n * The mapping in force for a HubSpot event: what was saved, else the defaults.\n * Keyed by field, or by `properties.<key>` for an extra property of the event.\n */\nexport function hubspotMappingInForce(\n sourceName: string,\n stored: Readonly<Record<string, string>>,\n object: HubspotObject = \"contact\",\n): Record<string, string> {\n const explicit = Object.entries(stored).filter(([, template]) => template.trim() !== \"\");\n if (explicit.length > 0) return Object.fromEntries(explicit);\n return hubspotDefaultMapping(sourceName, object);\n}\n","/**\n * The contract between `baker analytics sources` and `POST /api/analytics/sources`,\n * and the address a source is given.\n *\n * One request shape with one optional operation in it, and every call answers\n * with the full list afterwards — the CLI never has to make a second request\n * to see what it just did, and the \"what arrived\" question is answered by the\n * same read that answers \"what exists\".\n */\nimport { z } from \"zod\";\nimport { REJECTION_MESSAGES, validateEventName } from \"../event-ingest/validation\";\nimport { ACTIVECAMPAIGN_WEBHOOK_STATES, activeCampaignEventsSchema } from \"./activecampaign\";\nimport { mappingRowProblem } from \"./fields\";\nimport {\n CONDITION_LOGICS,\n HUBSPOT_DEAL_CONTACTS,\n HUBSPOT_OBJECTS,\n HUBSPOT_PROPERTY_KINDS,\n type HubspotTriggerInput,\n onlyCondition,\n TRIGGER_CONDITIONS_MAX,\n triggerProblem,\n} from \"./hubspotTrigger\";\n\n/** Mirrors `EVENT_SOURCE_KINDS` / the status validator in the backend schema; this package must not depend on convex. */\nexport const SOURCE_KINDS = [\"webhook\", \"hubspot\", \"activecampaign\"] as const;\nexport type SourceKind = (typeof SOURCE_KINDS)[number];\nexport const SOURCE_STATUSES = [\"learning\", \"counting\", \"paused\"] as const;\nexport type SourceStatus = (typeof SOURCE_STATUSES)[number];\n\nexport const SOURCE_NAME_MAX = 80;\n\n/**\n * What a source may be called — which is the ingest door's own rule, because a\n * source's name IS the `event_name` every event it raises carries.\n *\n * Held here rather than at each door, and that is the whole point of it being\n * here. A name this refuses is not a bad label, it is a **source that can\n * never count anything**: every arrival is rejected `invalid_name`, the card\n * goes on reading \"Counting\", and the only trace is one red line per event on\n * a feed somebody has to think to open. That happened — a HubSpot source\n * called \"Matrícula Realizada\", refused for ever by a rule that was ASCII-only\n * — and the reason it could happen is that three doors took a name and none of\n * them knew the rule.\n *\n * `MAX_EVENT_NAME` is the same 80 as {@link SOURCE_NAME_MAX} and\n * `validateEventName` checks it, so the bound is stated once even though both\n * constants exist.\n */\nexport const sourceNameSchema = z\n .string()\n .trim()\n .min(1)\n .max(SOURCE_NAME_MAX)\n .refine((name) => validateEventName(name) === null, REJECTION_MESSAGES.invalid_name);\n\n/** Where a source's arrivals go: the token is the whole path after this. */\nexport const EVENT_SOURCE_PATH_PREFIX = \"/v1/sources/\";\n\n/**\n * The address to hand a tool, given the branded host published for this\n * environment — the same fallback rule as `eventIngestUrl`.\n */\nexport function eventSourceUrl(brandedUrl: string | undefined, convexSiteUrl: string, token: string): string {\n const base = (brandedUrl || convexSiteUrl).replace(/\\/$/, \"\");\n return `${base}${EVENT_SOURCE_PATH_PREFIX}${token}`;\n}\n\nconst sourceIdSchema = z.string().min(1);\n\n/**\n * Canonical field → template (`template.ts`): literal text with `{{path}}`\n * mentions, or a bare path. A `properties.<key>` row is an extra property of\n * the event (`fields.ts`). Anything else is refused so a typo cannot become a\n * silent no-op.\n */\nexport const sourceMappingSchema = z.record(z.string(), z.string().min(1)).superRefine((mapping, ctx) => {\n for (const row of Object.keys(mapping)) {\n const problem = mappingRowProblem(row);\n if (problem !== null) ctx.addIssue({ code: \"custom\", message: problem, path: [row] });\n }\n});\n\n/** ISO 4217, upper case: what `POST /v1/events` accepts as `currency`. */\nexport const currencyCodeSchema = z\n .string()\n .trim()\n .toUpperCase()\n .regex(/^[A-Z]{3}$/, \"A currency is a three-letter code, like EUR or USD.\");\n\n/** What a HubSpot source is a trigger on: a contact (the default), a deal or a lead. */\nexport const hubspotObjectSchema = z.enum(HUBSPOT_OBJECTS);\n/** For a deal: whose event it is — the deal's first contact, or every contact on it. */\nexport const hubspotDealContactsSchema = z.enum(HUBSPOT_DEAL_CONTACTS);\n\n/**\n * One condition of a HubSpot trigger — *when a contact's* (or *a deal's*)\n * [property] [operator] [values] (`hubspotTrigger.ts`).\n */\nexport const hubspotConditionInputSchema = z.strictObject({\n property: z.string().trim().min(1),\n /** One of the property's kind's operators (`baker hubspot contacts properties` lists them); `is` when unsaid. */\n operator: z.string().trim().min(1).default(\"is\"),\n /** As HubSpot spells them: an option's internal value, a number, a `YYYY-MM-DD`, `true`/`false`. None for an empty check, two for a between, several for a list. */\n values: z.array(z.string().trim().min(1)).max(50).default([]),\n});\n\nconst conditionLogicSchema = z.enum(CONDITION_LOGICS);\n\nconst conditionGroupInputSchema = z.strictObject({\n logic: conditionLogicSchema,\n conditions: z.array(hubspotConditionInputSchema).min(1).max(TRIGGER_CONDITIONS_MAX),\n});\n\nconst combinedInputSchema = z\n .strictObject({\n /** How the rows combine: `And` (every one) or `Or` (any one) — a Form's filter's \"Match AND / OR\". */\n logic: conditionLogicSchema.default(\"And\"),\n /** Conditions, and groups of conditions with their own logic, one level deep. */\n conditions: z\n .array(z.union([hubspotConditionInputSchema, conditionGroupInputSchema]))\n .min(1)\n .max(TRIGGER_CONDITIONS_MAX),\n })\n .superRefine((trigger, context) => {\n const problem = triggerProblem(trigger);\n if (problem !== null) context.addIssue({ code: \"custom\", message: problem });\n });\n\n/**\n * What a HubSpot source watches: one condition, or several combined — the\n * way a Form's filter combines them. A single condition is the short\n * spelling, and is read as a trigger of that one condition.\n */\nexport const hubspotTriggerInputSchema = z\n .union([combinedInputSchema, hubspotConditionInputSchema])\n .transform((input): HubspotTriggerInput => (\"conditions\" in input ? input : onlyCondition(input)));\n\nconst hubspotConditionSchema = hubspotConditionInputSchema.extend({\n propertyLabel: z.string(),\n kind: z.enum(HUBSPOT_PROPERTY_KINDS),\n /** A select that holds several values at once (`a;b`); decides what HubSpot may filter on. */\n multiple: z.boolean().optional(),\n valueLabels: z.array(z.string()),\n});\n\nconst hubspotTriggerFields = {\n logic: conditionLogicSchema,\n conditions: z.array(\n z.union([\n hubspotConditionSchema,\n z.strictObject({ logic: conditionLogicSchema, conditions: z.array(hubspotConditionSchema) }),\n ]),\n ),\n};\n\n/** The trigger as stored on a source: every condition resolved, and on its object. */\nexport const hubspotWatchSchema = z.strictObject({\n ...hubspotTriggerFields,\n object: hubspotObjectSchema,\n contacts: hubspotDealContactsSchema.optional(),\n});\nexport type HubspotWatchView = z.infer<typeof hubspotWatchSchema>;\n\n/** A sample record as the preview shows it: its id and the properties it holds, empty ones dropped. */\nconst sampleRecordSchema = z.strictObject({ id: z.string(), properties: z.record(z.string(), z.string()) });\n\n/** What a HubSpot event would count today, asked before it is made: the trigger and the properties to read off the sample. */\nexport const hubspotPreviewRequestSchema = z.strictObject({\n object: hubspotObjectSchema.default(\"contact\"),\n trigger: hubspotTriggerInputSchema,\n /** Property names to read off the sample; `id` is always there. On a deal or a lead, `contact.<name>` reads its first contact. */\n properties: z.array(z.string().trim().min(1)).max(60).optional(),\n /** The record to draw the preview from — an id, or text to search (an email or a name for a contact, a deal's or a lead's name). The one most recently at the trigger when unsaid. */\n contact: z.string().trim().min(1).max(200).optional(),\n /** A total for each value of the trigger's one dropdown `is` condition, beside the combined one — sizing a funnel in one call. */\n breakdown: z.boolean().optional(),\n});\nexport type HubspotPreviewRequest = z.infer<typeof hubspotPreviewRequestSchema>;\n\nexport const hubspotPreviewSchema = z.strictObject({\n /** Records satisfying the trigger today — the ones that will NOT be counted. */\n total: z.number(),\n /** False when the trigger has more combinations than HubSpot's search takes, so `total` is only near. */\n exact: z.boolean().optional(),\n /**\n * The sample record the trigger is on, with the properties asked for and\n * the contacts behind it, first first; none when nothing fits.\n *\n * One field rather than one per object: a contact source's record *is* the\n * person and its `contacts` is empty, while a deal's and a lead's carry the\n * people the event is about. Three parallel nullable fields, exactly one of\n * them ever set, would say the same thing and let a caller read the wrong one.\n */\n record: sampleRecordSchema.extend({ contacts: z.array(sampleRecordSchema) }).nullable(),\n /** Only on a `breakdown`: each value of the condition with how many records are at it today, in the order asked. */\n counts: z.array(z.strictObject({ value: z.string(), total: z.number() })).optional(),\n});\nexport type HubspotPreview = z.infer<typeof hubspotPreviewSchema>;\n\nexport const sourcesRequestSchema = z.strictObject({\n /** The company's own server door: made once, `counting` from the start, the same address for ever after. */\n server: z.strictObject({}).optional(),\n create: z.strictObject({ name: sourceNameSchema }).optional(),\n /** A HubSpot event: read every five minutes, counting from now. The labels are looked up server-side. */\n createHubspot: z\n .strictObject({\n name: sourceNameSchema.optional(),\n /** A contact, a deal or a lead. A deal's and a lead's event is about its contact, read through `contact.<property>` rows. */\n object: hubspotObjectSchema.default(\"contact\"),\n trigger: hubspotTriggerInputSchema,\n /** On a deal: the deal's first contact (the default), or every contact on it, each its own event. */\n contacts: hubspotDealContactsSchema.optional(),\n /** Rows to read off the record, over the defaults; the same table `map` writes. */\n mapping: sourceMappingSchema.optional(),\n /** A number property on the record to read as the amount; needs `currency` beside it. Sugar over the mapping's `value` and `currency` rows. */\n amountProperty: z.string().trim().min(1).optional(),\n currency: currencyCodeSchema.optional(),\n })\n .optional(),\n /**\n * An ActiveCampaign source: ActiveCampaign's own webhook, made on the\n * account when this is applied, sending the events picked here. Each raises\n * `activecampaign.<type>` and counts from then on.\n */\n createActiveCampaign: z\n .strictObject({\n name: sourceNameSchema.optional(),\n /** ActiveCampaign's event names (`subscribe`, `deal_update`, …); the lead and deal moments when unsaid. */\n events: activeCampaignEventsSchema.optional(),\n /** Which connection, when the company has more than one. */\n account: z.string().trim().min(1).optional(),\n })\n .optional(),\n /** Change what a HubSpot event watches. It counts from now on under the new trigger; the rows stay. The object cannot change: the rows read it. */\n setTrigger: z\n .strictObject({\n sourceId: sourceIdSchema,\n trigger: hubspotTriggerInputSchema,\n contacts: hubspotDealContactsSchema.optional(),\n })\n .optional(),\n /** Ask HubSpot what a trigger would count today, and read one real record, without making anything. */\n preview: hubspotPreviewRequestSchema.optional(),\n /** Change where a HubSpot-read source takes its amount from; no `amountProperty` clears it. Sugar over `map`. */\n setAmount: z\n .strictObject({\n sourceId: sourceIdSchema,\n amountProperty: z.string().trim().min(1).optional(),\n currency: currencyCodeSchema.optional(),\n })\n .optional(),\n /**\n * Count a HubSpot event's history: every moment its trigger came to hold\n * since `since`, read out of HubSpot's own property history.\n *\n * Not the thing a source deliberately refuses to do. A source never\n * backfills the **present state** — somebody who already satisfies a\n * condition is not an event today — and this reports only moments HubSpot\n * has a timestamp for, so nothing is invented. Dry unless `write`.\n */\n backfill: z\n .strictObject({\n sourceId: sourceIdSchema,\n /** ISO instant, or Unix milliseconds. Bounded by the 400 days the store keeps. */\n since: z.union([z.string().trim().min(1), z.number()]),\n /**\n * Where a capped run carries on from: only records last changed at or\n * before this instant are read.\n *\n * The **read** is what it bounds, never the history. Records are chosen\n * most-recently-changed first, so a run that reaches its cap has covered\n * the newest of them and the rest are the ones nearest `since` — which\n * no shorter window can reach, because shortening one only drops\n * candidates from the old end and hands back the same newest records\n * again. `reachedBack` is the value to pass here, and the moments each\n * record is then judged on are still the whole of `since` to now.\n */\n before: z.union([z.string().trim().min(1), z.number()]).optional(),\n /** Without it, nothing is counted and the answer says what would be. */\n write: z.boolean().optional(),\n })\n .optional(),\n map: z.strictObject({ sourceId: sourceIdSchema, mapping: sourceMappingSchema }).optional(),\n pause: z.strictObject({ sourceId: sourceIdSchema }).optional(),\n resume: z.strictObject({ sourceId: sourceIdSchema }).optional(),\n remove: z.strictObject({ sourceId: sourceIdSchema }).optional(),\n});\nexport type SourcesRequest = z.infer<typeof sourcesRequestSchema>;\n/** The request as a caller writes it, before the schema fills its defaults — what the CLI builds. */\nexport type SourcesRequestInput = z.input<typeof sourcesRequestSchema>;\n\n/** A delivery that arrived and was refused — mirrors `sourceRefusalValidator` in the backend schema. */\nexport const sourceRefusalSchema = z.strictObject({\n at: z.number(),\n count: z.number(),\n code: z.string(),\n reason: z.string(),\n});\n\nexport const detectedFieldSchema = z.strictObject({\n path: z.string(),\n confidence: z.enum([\"key\", \"value\"]),\n});\n\n/** Whether HubSpot's journal is being told to keep the changes a source watches. */\nexport const HUBSPOT_LISTENING_STATES = [\"listening\", \"not_configured\", \"failed\"] as const;\nexport type HubspotListeningState = (typeof HUBSPOT_LISTENING_STATES)[number];\n\nexport const sourceViewSchema = z.strictObject({\n id: z.string(),\n kind: z.enum(SOURCE_KINDS),\n name: z.string(),\n status: z.enum(SOURCE_STATUSES),\n /** The address a tool posts to. A HubSpot source has none: Baker calls HubSpot. */\n url: z.string().optional(),\n /** What a HubSpot source watches, and on which object. */\n hubspot: hubspotWatchSchema.optional(),\n /**\n * What an ActiveCampaign source listens to, and whether ActiveCampaign has\n * the webhook that sends it: `listening` once it is made, `not_configured`\n * until then, `failed` when ActiveCampaign refused it — `detail` says why.\n */\n activecampaign: z\n .strictObject({\n events: z.array(z.string()),\n webhook: z.strictObject({ state: z.enum(ACTIVECAMPAIGN_WEBHOOK_STATES), detail: z.string().optional() }),\n })\n .optional(),\n /** A HubSpot source counts changes from here on; one HubSpot reports from before it is dropped. Moves when the trigger changes. */\n countingSince: z.number().optional(),\n /**\n * Whether HubSpot is keeping this source's changes for Baker, as last\n * checked: `listening` when the app's journal subscription on the account\n * names the property; `not_configured` when the app has not been told yet\n * (or cannot be, with no credentials); `failed` when HubSpot refused the\n * subscription. `detail` says what to do.\n */\n listening: z.strictObject({ state: z.enum(HUBSPOT_LISTENING_STATES), detail: z.string().optional() }).optional(),\n /** Why the last delivery could not be counted, in product words; absent when the last one was. */\n lastError: z.string().optional(),\n lastArrivalAt: z.number().optional(),\n /**\n * What its last delivery **refused, event by event** — which `lastError` is\n * not and `lastArrivalAt` cannot be. A source refusing everything it\n * receives has no arrival and no read failure, so without this it reads as\n * one nobody has sent anything to. `refusalWords` turns it into the\n * sentence a person is shown. Cleared by the next delivery that counts.\n */\n lastRefusal: sourceRefusalSchema.optional(),\n /** The first send, masked, while learning. Kept once confirmed. */\n sample: z.strictObject({ receivedAt: z.number(), body: z.string() }).optional(),\n /** Field → template; empty means the guess (an address) or the defaults (a HubSpot read). */\n mapping: z.record(z.string(), z.string()),\n /** The guess over the sample, for the sheet to prefill and the CLI to suggest. */\n detected: z.record(z.string(), detectedFieldSchema).optional(),\n /** Every path the sample's first item holds, with its masked value — what the picker offers. */\n paths: z.array(z.strictObject({ path: z.string(), value: z.string() })).optional(),\n /** `baker` when the sample already parses as the `POST /v1/events` contract and needs no mapping. */\n format: z.enum([\"baker\", \"foreign\"]).optional(),\n});\nexport type SourceView = z.infer<typeof sourceViewSchema>;\n\n/**\n * One change to the company's sources, staged inside a chat and applied when\n * it is published. `ref` is the source's id, or a `src_temp_*` for one the\n * chat makes.\n */\nexport const stagedSourceOpSchema = z.strictObject({\n kind: z.enum([\"create\", \"setTrigger\", \"map\", \"status\", \"remove\"]),\n ref: z.string(),\n name: z.string(),\n summary: z.string(),\n /** On a create: what the source will watch and read. */\n hubspot: hubspotWatchSchema.optional(),\n /** On an ActiveCampaign create: the events its webhook will send. */\n activecampaign: z.strictObject({ events: z.array(z.string()) }).optional(),\n mapping: z.record(z.string(), z.string()).optional(),\n status: z.enum([\"paused\", \"counting\"]).optional(),\n});\nexport type StagedSourceOp = z.infer<typeof stagedSourceOpSchema>;\n\n/** What a backfill found, and — on a `write` run — what became of it. */\nexport const backfillResultSchema = z.strictObject({\n sourceId: z.string(),\n name: z.string(),\n since: z.number(),\n /** Records whose history was read. */\n examined: z.number(),\n /** Moments the trigger came to hold, across them. */\n entries: z.number(),\n /** Of those, already counted — the journal got there first, or a previous run did. */\n alreadyCounted: z.number(),\n /** What a `write` run would hand over, or did. */\n pending: z.number(),\n /** Whether the read stopped at its cap; {@link BackfillResult.reachedBack} is where to carry on from. */\n capped: z.boolean(),\n /**\n * How far back the read got: the instant the oldest record it examined was\n * last changed. Only on a capped run, and it is the next run's `before`.\n */\n reachedBack: z.number().optional(),\n counted: z.number().optional(),\n refused: z.number().optional(),\n refusedReason: z.string().optional(),\n});\nexport type BackfillResult = z.infer<typeof backfillResultSchema>;\n\nexport const sourcesResponseSchema = z.strictObject({\n ok: z.literal(true),\n data: z.strictObject({\n sources: z.array(sourceViewSchema),\n /** Only when the request carried `preview`. */\n preview: hubspotPreviewSchema.optional(),\n /** Only when the request carried `backfill`. */\n backfill: backfillResultSchema.optional(),\n /** What this chat has staged, when one is attached: applied at Publish, dropped with a discard. */\n staged: z.array(stagedSourceOpSchema).optional(),\n }),\n hints: z.array(z.string()).optional(),\n});\nexport type SourcesResponse = z.infer<typeof sourcesResponseSchema>;\n","/**\n * What an ActiveCampaign source can listen to: ActiveCampaign's own webhook\n * events, and the event name each one raises in Baker.\n *\n * The list is ActiveCampaign's, read from `GET /api/3/webhook/events` — an\n * account answers with exactly these 27 — and the words are ours, for the\n * picker and the change list. Every event a source raises is called\n * `activecampaign.<type>`, whatever the source is called, so a scheduled agent\n * narrowed to `activecampaign.deal_update` runs for any connected account and\n * `properties.baker_source` says which source it came through.\n */\nimport { z } from \"zod\";\n\nexport const ACTIVECAMPAIGN_WEBHOOK_EVENTS = {\n subscribe: \"A contact subscribes to a list\",\n unsubscribe: \"A contact unsubscribes\",\n update: \"A contact's details change\",\n contact_tag_added: \"A tag is added to a contact\",\n contact_tag_removed: \"A tag is removed from a contact\",\n subscriber_note: \"A note is added to a contact\",\n contact_task_add: \"A task is added to a contact\",\n sent: \"A campaign starts sending\",\n open: \"A contact opens a campaign\",\n click: \"A contact clicks a link in a campaign\",\n reply: \"A contact replies to a campaign\",\n forward: \"A contact forwards a campaign\",\n share: \"A contact shares a campaign\",\n bounce: \"A campaign email bounces\",\n list_add: \"A list is created\",\n deal_add: \"A deal is created\",\n deal_update: \"A deal changes\",\n deal_note_add: \"A note is added to a deal\",\n deal_task_add: \"A task is added to a deal\",\n deal_task_complete: \"A deal task is completed\",\n deal_pipeline_add: \"A pipeline is created\",\n deal_stage_add: \"A deal stage is created\",\n deal_tasktype_add: \"A deal task type is created\",\n account_add: \"An account is created\",\n account_update: \"An account changes\",\n account_contact_add: \"A contact is added to an account\",\n account_contact_update: \"A contact on an account changes\",\n} as const;\n\nexport type ActiveCampaignWebhookEvent = keyof typeof ACTIVECAMPAIGN_WEBHOOK_EVENTS;\n\nexport const ACTIVECAMPAIGN_WEBHOOK_EVENT_TYPES = Object.keys(\n ACTIVECAMPAIGN_WEBHOOK_EVENTS,\n) as readonly ActiveCampaignWebhookEvent[];\n\n/** Who may have caused an event: a contact, a user, an automation, the API — all of them, so nothing is missed. */\nexport const ACTIVECAMPAIGN_WEBHOOK_SOURCES = [\"public\", \"admin\", \"api\", \"system\"] as const;\n\n/** What a new source listens to when nobody says: the lead and deal moments a marketer asks about first. */\nexport const ACTIVECAMPAIGN_DEFAULT_EVENTS: readonly ActiveCampaignWebhookEvent[] = [\n \"subscribe\",\n \"contact_tag_added\",\n \"deal_add\",\n \"deal_update\",\n];\n\n/** The source's name when nobody gives one. */\nexport const ACTIVECAMPAIGN_SOURCE_NAME = \"ActiveCampaign\";\n\nconst EVENT_PREFIX = \"activecampaign.\";\n\n/** The Baker event an ActiveCampaign webhook event raises: `subscribe` → `activecampaign.subscribe`. */\nexport function activeCampaignEventName(type: string): string {\n return `${EVENT_PREFIX}${type}`;\n}\n\n/** The ActiveCampaign event behind a Baker event name, or null when it is not one. */\nexport function activeCampaignEventOf(eventName: string): ActiveCampaignWebhookEvent | null {\n if (!eventName.startsWith(EVENT_PREFIX)) return null;\n const type = eventName.slice(EVENT_PREFIX.length);\n return type in ACTIVECAMPAIGN_WEBHOOK_EVENTS ? (type as ActiveCampaignWebhookEvent) : null;\n}\n\n/** The words for one event, falling back to ActiveCampaign's own name for one this list does not know. */\nexport function activeCampaignEventLabel(type: string): string {\n return type in ACTIVECAMPAIGN_WEBHOOK_EVENTS\n ? ACTIVECAMPAIGN_WEBHOOK_EVENTS[type as ActiveCampaignWebhookEvent]\n : type;\n}\n\n/**\n * The events a source listens to, as the CLI and the dashboard hand them in:\n * ActiveCampaign's names, or Baker's `activecampaign.<type>` spelling of them,\n * deduplicated, in the catalogue's order.\n */\nexport const activeCampaignEventsSchema = z\n .array(z.string().trim().min(1))\n .min(1, \"Pick at least one ActiveCampaign event to listen to.\")\n .max(ACTIVECAMPAIGN_WEBHOOK_EVENT_TYPES.length)\n .transform((raw, ctx) => {\n const picked = new Set<ActiveCampaignWebhookEvent>();\n for (const item of raw) {\n const type = activeCampaignEventOf(item) ?? (item in ACTIVECAMPAIGN_WEBHOOK_EVENTS ? item : null);\n if (type === null) {\n ctx.addIssue({\n code: \"custom\",\n message: `\"${item}\" is not an ActiveCampaign event. Pick from: ${ACTIVECAMPAIGN_WEBHOOK_EVENT_TYPES.join(\", \")}.`,\n });\n return z.NEVER;\n }\n picked.add(type as ActiveCampaignWebhookEvent);\n }\n return ACTIVECAMPAIGN_WEBHOOK_EVENT_TYPES.filter((type) => picked.has(type));\n });\n\n/** Whether ActiveCampaign has the webhook that sends a source its events, as last checked. */\nexport const ACTIVECAMPAIGN_WEBHOOK_STATES = [\"listening\", \"not_configured\", \"failed\"] as const;\nexport type ActiveCampaignWebhookState = (typeof ACTIVECAMPAIGN_WEBHOOK_STATES)[number];\n"],"mappings":";;;;;;;;;;;;;;;;;AAkCO,IAAM,8BAA8B;AAGpC,IAAM,yBAAyB;AAG/B,SAAS,YAAY,UAA0B;AACpD,SAAO,GAAG,sBAAsB,GAAG,QAAQ;AAC7C;AAQO,IAAM,6BAA6E;AAAA,EACxF,OAAO;AAAA,EACP,OAAO;AAAA,EACP,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,MAAM;AAAA,EACN,aAAa;AAAA,EACb,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AACV;AAMA,IAAM,iBAAiE,OAAO;AAAA,EAC5E,OAAO,QAAQ,0BAA0B,EAAE,IAAI,CAAC,CAAC,OAAO,QAAQ,MAAM,CAAC,OAAO,YAAY,QAAQ,CAAC,CAAC;AACtG;AAQO,IAAM,kCAAkF;AAAA,EAC7F,GAAG;AAAA,EACH,OAAO;AAAA,EACP,UAAU;AACZ;AAQO,IAAM,kCAAkF;AAE/F,IAAM,WAA4F;AAAA,EAChG,SAAS;AAAA,EACT,MAAM;AAAA,EACN,MAAM;AACR;AAGO,SAAS,sBACd,YACA,SAAwB,WACc;AACtC,QAAM,UAAgD,EAAE,YAAY,WAAW;AAC/E,aAAW,CAAC,OAAO,QAAQ,KAAK,OAAO,QAAQ,SAAS,MAAM,CAAC,GAAG;AAChE,YAAQ,KAAoB,IAAI,UAAU,QAAQ;AAAA,EACpD;AACA,SAAO;AACT;;;AClGA,SAAS,KAAAA,UAAS;;;ACElB,SAAS,SAAS;AAEX,IAAM,gC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.js";
7
7
  import {
8
8
  AD_PLACEMENTS
9
9
  } from "./chunk-ZSC3LYTP.js";
@@ -88,4 +88,4 @@ export {
88
88
  deliveryDefinitionFields,
89
89
  deliveryNote
90
90
  };
91
- //# sourceMappingURL=chunk-DB3TA3RM.js.map
91
+ //# sourceMappingURL=chunk-OXX7W2BC.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  leadVersion,
3
3
  writeSeriesMemberCanvas
4
- } from "./chunk-T75ACB3M.js";
4
+ } from "./chunk-M677IBYO.js";
5
5
  import {
6
6
  definitionFieldsOf,
7
7
  setDefinitionFields,
@@ -88,4 +88,4 @@ export {
88
88
  makeSeriesAd,
89
89
  seriesMadeEnvelope
90
90
  };
91
- //# sourceMappingURL=chunk-U4W2YZF6.js.map
91
+ //# sourceMappingURL=chunk-PA4LKUPT.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  nodeParamsPreview
3
- } from "./chunk-PTAUELBC.js";
3
+ } from "./chunk-RGA4RIRY.js";
4
4
  import {
5
5
  keepRunResult,
6
6
  previewsOf
@@ -15,7 +15,7 @@ import {
15
15
  shownVersion,
16
16
  unreviewedHint,
17
17
  verticalRelayoutHints
18
- } from "./chunk-IGVUW6H7.js";
18
+ } from "./chunk-I3XV6JLQ.js";
19
19
  import {
20
20
  waitForSheet
21
21
  } from "./chunk-WN4KX7GE.js";
@@ -28,7 +28,7 @@ import {
28
28
  seriesMembers,
29
29
  seriesRunHints,
30
30
  writeSeriesMemberCanvas
31
- } from "./chunk-T75ACB3M.js";
31
+ } from "./chunk-M677IBYO.js";
32
32
  import {
33
33
  correctedPicture,
34
34
  growFromVersion,
@@ -42,7 +42,7 @@ import {
42
42
  staticReviewCredits,
43
43
  variantImage,
44
44
  versionRun
45
- } from "./chunk-TR7SOQIS.js";
45
+ } from "./chunk-YSXPWTTW.js";
46
46
  import {
47
47
  buildFailedRunRecord,
48
48
  buildInitialRunRecord,
@@ -52,7 +52,7 @@ import {
52
52
  finalOutputLabelsFromCanvas,
53
53
  nodeOutputsToRecord,
54
54
  withFacts
55
- } from "./chunk-EL5HNBRX.js";
55
+ } from "./chunk-4TEQIAZG.js";
56
56
  import {
57
57
  RENDERS_PER_REASON,
58
58
  canvasFreshness,
@@ -67,7 +67,7 @@ import {
67
67
  recordSnapshot,
68
68
  spentReasons,
69
69
  withDurableRenders
70
- } from "./chunk-A3KYQTDR.js";
70
+ } from "./chunk-6JLQZNS4.js";
71
71
  import {
72
72
  AUTO_FIX_ROUNDS,
73
73
  BRAND_LOGO_ROLE,
@@ -127,7 +127,7 @@ import {
127
127
  withPlannedRelay,
128
128
  withRelayEdit,
129
129
  withRelayNote
130
- } from "./chunk-RDU2PZRW.js";
130
+ } from "./chunk-RIIQTI3Q.js";
131
131
  import {
132
132
  advanceDefinitionStatus
133
133
  } from "./chunk-3ACMDRSE.js";
@@ -142,7 +142,7 @@ import {
142
142
  sureEnough,
143
143
  viewerCheckBeforeRender,
144
144
  viewerCheckSkip
145
- } from "./chunk-3KSMMYXO.js";
145
+ } from "./chunk-FZNCML5Q.js";
146
146
  import {
147
147
  mayBeCorrection,
148
148
  readTurnRenders,
@@ -157,7 +157,7 @@ import {
157
157
  } from "./chunk-T7V2OPW2.js";
158
158
  import {
159
159
  heldRules
160
- } from "./chunk-MFEYGNH2.js";
160
+ } from "./chunk-ZJXYWHQT.js";
161
161
  import {
162
162
  readAvatars,
163
163
  writeAvatars
@@ -192,7 +192,7 @@ import {
192
192
  sizeDifferenceFinding,
193
193
  takeCheckWarnings,
194
194
  ulid
195
- } from "./chunk-CCV7JFGQ.js";
195
+ } from "./chunk-TI42625W.js";
196
196
  import {
197
197
  BackendClient,
198
198
  LOGO_COMPOSITE_ROLE,
@@ -217,7 +217,7 @@ import {
217
217
  relaidPictureRole,
218
218
  rolesById,
219
219
  staticMasterFormat
220
- } from "./chunk-TAJSLFIT.js";
220
+ } from "./chunk-QNO7X7PC.js";
221
221
  import {
222
222
  bytesOf,
223
223
  judgeWinner,
@@ -266,7 +266,7 @@ import {
266
266
  } from "./chunk-ZSC3LYTP.js";
267
267
  import {
268
268
  describeMarket
269
- } from "./chunk-QKPQ3YUV.js";
269
+ } from "./chunk-AFNO7SSI.js";
270
270
  import {
271
271
  BackendHttpError,
272
272
  LayerExecutionError,
@@ -3375,4 +3375,4 @@ export {
3375
3375
  buildBackendClient,
3376
3376
  postInitialRunRecord
3377
3377
  };
3378
- //# sourceMappingURL=chunk-JHAK5FMN.js.map
3378
+ //# sourceMappingURL=chunk-PAWWO4CQ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  readAdWords,
6
6
  ruleRefusal
7
- } from "./chunk-MFEYGNH2.js";
7
+ } from "./chunk-ZJXYWHQT.js";
8
8
  import {
9
9
  readAllRules
10
10
  } from "./chunk-R2G6SQ3U.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-OWFZLCE2.js";
28
28
  import {
29
29
  marketFromCompanyDoc
30
- } from "./chunk-QKPQ3YUV.js";
30
+ } from "./chunk-AFNO7SSI.js";
31
31
  import {
32
32
  registerSchema,
33
33
  writeJson
@@ -502,4 +502,4 @@ export {
502
502
  checkSurface,
503
503
  checkCommand
504
504
  };
505
- //# sourceMappingURL=chunk-MF43LVW7.js.map
505
+ //# sourceMappingURL=chunk-QJHAL4GT.js.map
@@ -53,7 +53,7 @@ import {
53
53
  } from "./chunk-ZSC3LYTP.js";
54
54
  import {
55
55
  marketCountryName
56
- } from "./chunk-QKPQ3YUV.js";
56
+ } from "./chunk-AFNO7SSI.js";
57
57
  import {
58
58
  ASSET_KINDS,
59
59
  BackendHttpError,
@@ -6337,4 +6337,4 @@ export {
6337
6337
  canSpellNumbers,
6338
6338
  spellNumber
6339
6339
  };
6340
- //# sourceMappingURL=chunk-TAJSLFIT.js.map
6340
+ //# sourceMappingURL=chunk-QNO7X7PC.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REF_PREFIX
3
- } from "./chunk-TAJSLFIT.js";
3
+ } from "./chunk-QNO7X7PC.js";
4
4
 
5
5
  // src/commands/canvas/node-preview.ts
6
6
  var MAX_PARAMS_PREVIEW_LENGTH = 4e3;
@@ -61,4 +61,4 @@ ${body}` : header || body || compactJson(record);
61
61
  export {
62
62
  nodeParamsPreview
63
63
  };
64
- //# sourceMappingURL=chunk-PTAUELBC.js.map
64
+ //# sourceMappingURL=chunk-RGA4RIRY.js.map
@@ -5,7 +5,7 @@ import {
5
5
  heldRules,
6
6
  readAdWords,
7
7
  ruleGate
8
- } from "./chunk-MFEYGNH2.js";
8
+ } from "./chunk-ZJXYWHQT.js";
9
9
  import {
10
10
  avatarRelation,
11
11
  castCompany
@@ -117,7 +117,7 @@ import {
117
117
  trimmedRenderBand,
118
118
  usesTextColour,
119
119
  wordCount
120
- } from "./chunk-TAJSLFIT.js";
120
+ } from "./chunk-QNO7X7PC.js";
121
121
  import {
122
122
  blockingArea,
123
123
  bytesOf
@@ -205,7 +205,7 @@ import {
205
205
  import {
206
206
  AWARENESS_VALUES,
207
207
  marketFromCompanyDoc
208
- } from "./chunk-QKPQ3YUV.js";
208
+ } from "./chunk-AFNO7SSI.js";
209
209
  import {
210
210
  JEV_MODEL,
211
211
  askJev,
@@ -10427,4 +10427,4 @@ export {
10427
10427
  prepareCanvas,
10428
10428
  exitOnPrepareError
10429
10429
  };
10430
- //# sourceMappingURL=chunk-RDU2PZRW.js.map
10430
+ //# sourceMappingURL=chunk-RIIQTI3Q.js.map
@@ -48,7 +48,7 @@ import {
48
48
  topologicalLayers,
49
49
  validateCanvas,
50
50
  validateCanvasDeep
51
- } from "./chunk-TAJSLFIT.js";
51
+ } from "./chunk-QNO7X7PC.js";
52
52
  import {
53
53
  bandViolations,
54
54
  blockingArea,
@@ -9124,4 +9124,4 @@ export {
9124
9124
  defaultRegistry,
9125
9125
  createEngineFromEnv
9126
9126
  };
9127
- //# sourceMappingURL=chunk-CCV7JFGQ.js.map
9127
+ //# sourceMappingURL=chunk-TI42625W.js.map
@@ -5,7 +5,7 @@ import {
5
5
  BRAND_DIR,
6
6
  inkLuma,
7
7
  logoArtwork
8
- } from "./chunk-TAJSLFIT.js";
8
+ } from "./chunk-QNO7X7PC.js";
9
9
  import {
10
10
  fetchExternalBytes
11
11
  } from "./chunk-4L5HUR2F.js";
@@ -152,4 +152,4 @@ export {
152
152
  fetchClientLogo,
153
153
  withClientLogo
154
154
  };
155
- //# sourceMappingURL=chunk-5BIUBIVM.js.map
155
+ //# sourceMappingURL=chunk-TUP3I2P4.js.map
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  asRecord,
14
14
  shapeListRows
15
- } from "./chunk-LNOI2WZ5.js";
15
+ } from "./chunk-MAMHV6Q3.js";
16
16
  import {
17
17
  writeAdsOutput
18
18
  } from "./chunk-NX4EB2TK.js";
@@ -397,4 +397,4 @@ export {
397
397
  META_LIST_SHAPE_ARGS,
398
398
  registerMetaListSchema
399
399
  };
400
- //# sourceMappingURL=chunk-D7VGMMBR.js.map
400
+ //# sourceMappingURL=chunk-WKRVHRWY.js.map
@@ -2,7 +2,7 @@ import {
2
2
  STATIC_AD_ROLE,
3
3
  fixBriefNode,
4
4
  plateFixPrompt
5
- } from "./chunk-RDU2PZRW.js";
5
+ } from "./chunk-RIIQTI3Q.js";
6
6
  import {
7
7
  fetchRunRecord
8
8
  } from "./chunk-3IJKXTDQ.js";
@@ -25,7 +25,7 @@ import {
25
25
  isPlateCanvas,
26
26
  rolesById,
27
27
  staticMasterFormat
28
- } from "./chunk-TAJSLFIT.js";
28
+ } from "./chunk-QNO7X7PC.js";
29
29
  import {
30
30
  canonicalize
31
31
  } from "./chunk-ZSC3LYTP.js";
@@ -657,4 +657,4 @@ export {
657
657
  relaysSizesOnly,
658
658
  variantImage
659
659
  };
660
- //# sourceMappingURL=chunk-TR7SOQIS.js.map
660
+ //# sourceMappingURL=chunk-YSXPWTTW.js.map
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-NC6NLGN3.js";
23
23
  import {
24
24
  marketFromCompanyDoc
25
- } from "./chunk-QKPQ3YUV.js";
25
+ } from "./chunk-AFNO7SSI.js";
26
26
 
27
27
  // src/engine/creative-context/ad-words.ts
28
28
  import { readdir, readFile } from "fs/promises";
@@ -139,4 +139,4 @@ export {
139
139
  heldRules,
140
140
  ruleGate
141
141
  };
142
- //# sourceMappingURL=chunk-MFEYGNH2.js.map
142
+ //# sourceMappingURL=chunk-ZJXYWHQT.js.map
package/dist/cli.js CHANGED
@@ -625,9 +625,9 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
625
625
  capabilities: () => import("./capabilities-ZXQYSSXD.js").then((m) => m.capabilitiesCommand),
626
626
  actions: () => import("./actions-4L7MLFPC.js").then((m) => m.actionsCommand),
627
627
  "scheduled-agents": () => import("./scheduled-agents-7QQNV4N6.js").then((m) => m.scheduledAgentsCommand),
628
- ads: () => import("./ads-XJ7HSPQL.js").then((m) => m.adsCommand),
628
+ ads: () => import("./ads-F6IN27LX.js").then((m) => m.adsCommand),
629
629
  brand: () => import("./brand-ARJMSWJA.js").then((m) => m.brandCommand),
630
- analytics: () => import("./analytics-M4W62IFX.js").then((m) => m.analyticsCommand),
630
+ analytics: () => import("./analytics-2JEGNTNZ.js").then((m) => m.analyticsCommand),
631
631
  experiment: () => import("./experiment-KOCG7PPI.js").then((m) => m.experimentCommand),
632
632
  ga4: () => import("./ga4-RWTSGUNB.js").then((m) => m.ga4Command),
633
633
  gsc: () => import("./gsc-JYP4ZCSH.js").then((m) => m.gscCommand),
@@ -635,8 +635,8 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
635
635
  decide: () => import("./decide-VYHRTULV.js").then((m) => m.decideCommand),
636
636
  data: () => import("./data-BKTQ4YER.js").then((m) => m.dataCommand),
637
637
  knowledge: () => import("./knowledge-7JQWEFN2.js").then((m) => m.knowledgeCommand),
638
- creatives: () => import("./creatives-TUCOHGY4.js").then((m) => m.creativesCommand),
639
- rules: () => import("./rules-QEKCMD5H.js").then((m) => m.rulesCommand),
638
+ creatives: () => import("./creatives-DQNJ3J3Q.js").then((m) => m.creativesCommand),
639
+ rules: () => import("./rules-23LHDFC5.js").then((m) => m.rulesCommand),
640
640
  files: () => import("./files-4BWOK6EW.js").then((m) => m.filesCommand),
641
641
  flows: () => import("./flows-7HCMUYG6.js").then((m) => m.flowsCommand),
642
642
  funnel: () => import("./funnel-UHRFQERQ.js").then((m) => m.funnelCommand),
@@ -646,13 +646,13 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
646
646
  landings: () => import("./landings-OZG6RXMO.js").then((m) => m.landingsCommand),
647
647
  videos: () => import("./videos-556OVNK7.js").then((m) => m.videosCommand),
648
648
  testimonials: () => import("./testimonials-KMNIBWZQ.js").then((m) => m.testimonialsCommand),
649
- canvas: () => import("./canvas-H7NEBLIL.js").then((m) => m.canvasCommand),
649
+ canvas: () => import("./canvas-23IQXJEF.js").then((m) => m.canvasCommand),
650
650
  tags: () => import("./tags-FAOFI4Y6.js").then((m) => m.tagsCommand),
651
651
  "tag-manager": () => import("./tag-manager-UJDARCXH.js").then((m) => m.tagManagerCommand),
652
652
  chats: () => import("./chats-ZDCIXZVC.js").then((m) => m.chatsCommand),
653
653
  history: () => import("./history-XIZQ7GK5.js").then((m) => m.historyCommand),
654
654
  credentials: () => import("./credentials-TLN4MYX5.js").then((m) => m.credentialsCommand),
655
- hubspot: () => import("./hubspot-EQI27OIR.js").then((m) => m.hubspotCommand),
655
+ hubspot: () => import("./hubspot-72LKX7CR.js").then((m) => m.hubspotCommand),
656
656
  activecampaign: () => import("./activecampaign-U4GIT3HE.js").then((m) => m.activecampaignCommand),
657
657
  pipedrive: () => import("./pipedrive-SUYPR2EH.js").then((m) => m.pipedriveCommand),
658
658
  accounts: () => import("./accounts-DBTLIKZI.js").then((m) => m.accountsCommand),
@@ -667,7 +667,7 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
667
667
  feedback: () => import("./feedback-KBKA6WAT.js").then((m) => m.feedbackCommand),
668
668
  visuals: () => import("./visuals-3YHVAPRL.js").then((m) => m.visualsCommand),
669
669
  organization: () => import("./organization-H6NNPOZO.js").then((m) => m.organizationCommand),
670
- schema: () => import("./schema-DMZCRTXQ.js").then((m) => m.schemaCommand)
670
+ schema: () => import("./schema-4GRR5NAI.js").then((m) => m.schemaCommand)
671
671
  }
672
672
  });
673
673
 
@@ -3,7 +3,7 @@ import {
3
3
  registerMetaListSchema,
4
4
  shapeMetaListRows,
5
5
  writeMetaListRows
6
- } from "./chunk-D7VGMMBR.js";
6
+ } from "./chunk-WKRVHRWY.js";
7
7
  import "./chunk-PRPSV4VB.js";
8
8
  import {
9
9
  csvOrJson,
@@ -14,7 +14,7 @@ import "./chunk-QALAJNBG.js";
14
14
  import {
15
15
  NO_CACHE_ARG
16
16
  } from "./chunk-TBT6NWDX.js";
17
- import "./chunk-LNOI2WZ5.js";
17
+ import "./chunk-MAMHV6Q3.js";
18
18
  import "./chunk-NX4EB2TK.js";
19
19
  import {
20
20
  apiGet
@@ -116,4 +116,4 @@ Examples:
116
116
  export {
117
117
  creativesCommand
118
118
  };
119
- //# sourceMappingURL=creatives-72OJSUFE.js.map
119
+ //# sourceMappingURL=creatives-CPLH3KHQ.js.map
@@ -32,12 +32,12 @@ How published creatives are doing in live Meta ads (results, fatigue, angle; hoo
32
32
  Full guide: __tooling__/docs/tools/baker/creatives.md`
33
33
  },
34
34
  subCommands: {
35
- brief: () => import("./brief-TRRAYXYE.js").then((m) => m.briefCommand),
36
- ideas: () => import("./ideas-X2IQXG3U.js").then((m) => m.ideasCommand),
37
- make: () => import("./make-LHLR54IM.js").then((m) => m.makeCommand),
38
- translate: () => import("./translate-5X533F6J.js").then((m) => m.translateCommand),
35
+ brief: () => import("./brief-WGNRT2KX.js").then((m) => m.briefCommand),
36
+ ideas: () => import("./ideas-T5P5OOU5.js").then((m) => m.ideasCommand),
37
+ make: () => import("./make-PQU6T3LJ.js").then((m) => m.makeCommand),
38
+ translate: () => import("./translate-IBYLAVFU.js").then((m) => m.translateCommand),
39
39
  learn: () => import("./learn-KT26DRVN.js").then((m) => m.learnCommand),
40
- select: () => import("./select-MMOVRFNE.js").then((m) => m.selectCommand),
40
+ select: () => import("./select-EWXF3CKB.js").then((m) => m.selectCommand),
41
41
  publish: () => import("./publish-WTFUVHZS.js").then((m) => m.publishCommand),
42
42
  performance: () => import("./performance-U4E5HG27.js").then((m) => m.performanceCommand)
43
43
  }
@@ -45,4 +45,4 @@ Full guide: __tooling__/docs/tools/baker/creatives.md`
45
45
  export {
46
46
  creativesCommand
47
47
  };
48
- //# sourceMappingURL=creatives-TUCOHGY4.js.map
48
+ //# sourceMappingURL=creatives-DQNJ3J3Q.js.map
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-TBT6NWDX.js";
13
13
  import {
14
14
  shapeListRows
15
- } from "./chunk-LNOI2WZ5.js";
15
+ } from "./chunk-MAMHV6Q3.js";
16
16
  import {
17
17
  writeAdsOutput,
18
18
  writeJsonEnvelope
@@ -233,4 +233,4 @@ export {
233
233
  creativesCommand,
234
234
  unmappedShapeWarnings
235
235
  };
236
- //# sourceMappingURL=creatives-J5LXNIWE.js.map
236
+ //# sourceMappingURL=creatives-J64BHJA7.js.map