@koda-sl/baker-cli 0.852.0-dev.0fbe16456 → 0.852.0-dev.4f443e346

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 (841) hide show
  1. package/README.md +0 -3
  2. package/dist/account-KRF7EIGP.js +84 -0
  3. package/dist/account-KRF7EIGP.js.map +1 -0
  4. package/dist/account-users-4I2AAEAO.js +70 -0
  5. package/dist/account-users-4I2AAEAO.js.map +1 -0
  6. package/dist/accounts-A37M7HW3.js +506 -0
  7. package/dist/accounts-A37M7HW3.js.map +1 -0
  8. package/dist/accounts-DXLJFGM6.js +82 -0
  9. package/dist/accounts-DXLJFGM6.js.map +1 -0
  10. package/dist/actions-KWHMTMLD.js +55 -0
  11. package/dist/activecampaign-AJURU2SD.js +936 -0
  12. package/dist/activecampaign-AJURU2SD.js.map +1 -0
  13. package/dist/activities-NWXWO7T2.js +84 -0
  14. package/dist/add-2CN64JRZ.js +109 -0
  15. package/dist/add-2CN64JRZ.js.map +1 -0
  16. package/dist/add-INCMGBM2.js +662 -0
  17. package/dist/add-INCMGBM2.js.map +1 -0
  18. package/dist/add-M6LS32QO.js +663 -0
  19. package/dist/add-M6LS32QO.js.map +1 -0
  20. package/dist/ads-7Q7PRFJ4.js +48 -0
  21. package/dist/ads-EUQYHCBO.js +132 -0
  22. package/dist/ads-EUQYHCBO.js.map +1 -0
  23. package/dist/adsets-CZFTSQQC.js +198 -0
  24. package/dist/advertisers-A3YGDOLM.js +127 -0
  25. package/dist/advertisers-A3YGDOLM.js.map +1 -0
  26. package/dist/alerts-DEP2DXBN.js +154 -0
  27. package/dist/alerts-DEP2DXBN.js.map +1 -0
  28. package/dist/analytics-7UCEXUVF.js +2792 -0
  29. package/dist/analytics-7UCEXUVF.js.map +1 -0
  30. package/dist/analytics-XHWSVXYX.js +462 -0
  31. package/dist/analytics-XHWSVXYX.js.map +1 -0
  32. package/dist/assign-JUXS2HIS.js +84 -0
  33. package/dist/assign-JUXS2HIS.js.map +1 -0
  34. package/dist/audience-size-ZWHF4BMF.js +78 -0
  35. package/dist/audience-size-ZWHF4BMF.js.map +1 -0
  36. package/dist/audiences-SDFCRXHD.js +117 -0
  37. package/dist/audit-G5SNO6AP.js +156 -0
  38. package/dist/audit-G5SNO6AP.js.map +1 -0
  39. package/dist/autocomplete-RQPSDMYX.js +118 -0
  40. package/dist/autocomplete-RQPSDMYX.js.map +1 -0
  41. package/dist/avatars-PILXCCPG.js +38 -0
  42. package/dist/bid-pricing-7ZNHIIJI.js +105 -0
  43. package/dist/bid-pricing-7ZNHIIJI.js.map +1 -0
  44. package/dist/brief-RBOKX3HZ.js +512 -0
  45. package/dist/brief-RBOKX3HZ.js.map +1 -0
  46. package/dist/campaign-groups-VFVDSZVA.js +119 -0
  47. package/dist/campaign-groups-VFVDSZVA.js.map +1 -0
  48. package/dist/campaign-writes-NYSYVJC6.js +170 -0
  49. package/dist/campaign-writes-NYSYVJC6.js.map +1 -0
  50. package/dist/campaigns-4JY3JKPY.js +139 -0
  51. package/dist/campaigns-I55PNY55.js +194 -0
  52. package/dist/campaigns-I55PNY55.js.map +1 -0
  53. package/dist/campaigns-XS52PZQL.js +111 -0
  54. package/dist/canvas-3AHETASK.js +48 -0
  55. package/dist/capabilities-KIPCD5SQ.js +185 -0
  56. package/dist/capabilities-KIPCD5SQ.js.map +1 -0
  57. package/dist/catalog-3OIBTMBV.js +90 -0
  58. package/dist/catalog-3OIBTMBV.js.map +1 -0
  59. package/dist/chats-JWH4BIWL.js +660 -0
  60. package/dist/chats-JWH4BIWL.js.map +1 -0
  61. package/dist/check-3SVCK3V3.js +55 -0
  62. package/dist/chunk-2CV2LEJN.js +685 -0
  63. package/dist/chunk-2PNBK7KZ.js +1124 -0
  64. package/dist/chunk-3B7GRVIM.js +392 -0
  65. package/dist/chunk-3MJTL763.js +103 -0
  66. package/dist/chunk-4GM3TBGL.js +320 -0
  67. package/dist/chunk-5UG7AJB5.js +65 -0
  68. package/dist/chunk-AOXHDVWS.js +260 -0
  69. package/dist/chunk-AYW4VFTH.js +547 -0
  70. package/dist/chunk-BMUAE5IR.js +411 -0
  71. package/dist/chunk-BPQY4KIM.js +251 -0
  72. package/dist/chunk-BYYIJMLP.js +197 -0
  73. package/dist/chunk-CDU64GKK.js +61 -0
  74. package/dist/chunk-DA634ZIV.js +175 -0
  75. package/dist/chunk-DJLTDVRD.js +479 -0
  76. package/dist/chunk-DKRPMGEN.js +89 -0
  77. package/dist/chunk-DKRPMGEN.js.map +1 -0
  78. package/dist/chunk-GHEURTBN.js +224 -0
  79. package/dist/chunk-H2IG6MOX.js +78 -0
  80. package/dist/chunk-HVVE3GT6.js +91 -0
  81. package/dist/chunk-IAOXI7MJ.js +9127 -0
  82. package/dist/chunk-M6RQJCDW.js +746 -0
  83. package/dist/chunk-N5IR2T2B.js +509 -0
  84. package/dist/chunk-NZ3PQBRV.js +51 -0
  85. package/dist/chunk-NZFVC7RP.js +548 -0
  86. package/dist/chunk-PNGXJPM5.js +604 -0
  87. package/dist/chunk-PNGXJPM5.js.map +1 -0
  88. package/dist/chunk-QLSNKH5D.js +91 -0
  89. package/dist/chunk-RN3IVT3B.js +3378 -0
  90. package/dist/chunk-RZOHIOPP.js +262 -0
  91. package/dist/chunk-S2WUFUSW.js +399 -0
  92. package/dist/chunk-S2WUFUSW.js.map +1 -0
  93. package/dist/chunk-SELCZP76.js +6340 -0
  94. package/dist/chunk-T55DY36I.js +163 -0
  95. package/dist/chunk-T5FACY43.js +170 -0
  96. package/dist/chunk-TR72BZ4D.js +660 -0
  97. package/dist/chunk-UTOVP53O.js +313 -0
  98. package/dist/chunk-VDHPAQUM.js +23 -0
  99. package/dist/chunk-VPWLH6VS.js +202 -0
  100. package/dist/chunk-VXLFFMW6.js +155 -0
  101. package/dist/chunk-VZQHMRYM.js +303 -0
  102. package/dist/chunk-X4NF7IMQ.js +423 -0
  103. package/dist/chunk-X6CSCKXX.js +341 -0
  104. package/dist/chunk-Y4XW2LW3.js +10361 -0
  105. package/dist/chunk-YAMDF3DT.js +374 -0
  106. package/dist/chunk-YCCTIFI7.js +396 -0
  107. package/dist/chunk-YWHOPJG5.js +64 -0
  108. package/dist/chunk-Z7WMTBGD.js +329 -0
  109. package/dist/chunk-ZJY3ACX3.js +7782 -0
  110. package/dist/chunk-ZJY3ACX3.js.map +1 -0
  111. package/dist/claim-H5HZFRPG.js +219 -0
  112. package/dist/claim-H5HZFRPG.js.map +1 -0
  113. package/dist/cli.js +34 -34
  114. package/dist/companies-6FM3CALY.js +37 -0
  115. package/dist/company-U67GZ652.js +312 -0
  116. package/dist/company-U67GZ652.js.map +1 -0
  117. package/dist/complete-7PB5RC47.js +88 -0
  118. package/dist/complete-7PB5RC47.js.map +1 -0
  119. package/dist/connect-J6M3W7WW.js +47 -0
  120. package/dist/conversation-6FGVSJQV.js +101 -0
  121. package/dist/conversation-6FGVSJQV.js.map +1 -0
  122. package/dist/conversions-T3WPLUNU.js +142 -0
  123. package/dist/conversions-T3WPLUNU.js.map +1 -0
  124. package/dist/create-3UEEKKBJ.js +66 -0
  125. package/dist/create-3UEEKKBJ.js.map +1 -0
  126. package/dist/create-BQFV23KE.js +220 -0
  127. package/dist/create-BQFV23KE.js.map +1 -0
  128. package/dist/create-PYNZG2I7.js +191 -0
  129. package/dist/create-PYNZG2I7.js.map +1 -0
  130. package/dist/create-WGQKASYJ.js +357 -0
  131. package/dist/create-WGQKASYJ.js.map +1 -0
  132. package/dist/creatives-PW2P7VMU.js +48 -0
  133. package/dist/creatives-Q3DWV55N.js +119 -0
  134. package/dist/creatives-X4ZDII4J.js +236 -0
  135. package/dist/creatives-X4ZDII4J.js.map +1 -0
  136. package/dist/credentials-IGLXTK56.js +292 -0
  137. package/dist/credentials-IGLXTK56.js.map +1 -0
  138. package/dist/critique-HF4ZNSFG.js +231 -0
  139. package/dist/critique-HF4ZNSFG.js.map +1 -0
  140. package/dist/crm-EOXLQJTJ.js +419 -0
  141. package/dist/crm-EOXLQJTJ.js.map +1 -0
  142. package/dist/crm-J7YGM36V.js +328 -0
  143. package/dist/crm-J7YGM36V.js.map +1 -0
  144. package/dist/customers-OHB5EY7Z.js +70 -0
  145. package/dist/delete-I24TSU35.js +61 -0
  146. package/dist/delete-I24TSU35.js.map +1 -0
  147. package/dist/delete-O6GJAIDU.js +72 -0
  148. package/dist/delete-O6GJAIDU.js.map +1 -0
  149. package/dist/delete-UM6ENIDW.js +71 -0
  150. package/dist/delete-UM6ENIDW.js.map +1 -0
  151. package/dist/demographics-BGSWNDRQ.js +146 -0
  152. package/dist/demographics-BGSWNDRQ.js.map +1 -0
  153. package/dist/discard-3S5LU3GF.js +73 -0
  154. package/dist/discard-3S5LU3GF.js.map +1 -0
  155. package/dist/domain-DJ4Y72PN.js +105 -0
  156. package/dist/domain-DJ4Y72PN.js.map +1 -0
  157. package/dist/download-FR7XSZWV.js +175 -0
  158. package/dist/download-FR7XSZWV.js.map +1 -0
  159. package/dist/draft-MUMANPJ7.js +228 -0
  160. package/dist/draft-MUMANPJ7.js.map +1 -0
  161. package/dist/draft-Z6YHU3AR.js +390 -0
  162. package/dist/draft-Z6YHU3AR.js.map +1 -0
  163. package/dist/draft-ZJ4VSYKB.js +428 -0
  164. package/dist/draft-ZJ4VSYKB.js.map +1 -0
  165. package/dist/engine/index.js +4 -3
  166. package/dist/experiment-QSABRTUR.js +2123 -0
  167. package/dist/experiment-QSABRTUR.js.map +1 -0
  168. package/dist/experiments-SJ2ODFHA.js +242 -0
  169. package/dist/experiments-SJ2ODFHA.js.map +1 -0
  170. package/dist/extract-X7H37JJT.js +145 -0
  171. package/dist/extract-X7H37JJT.js.map +1 -0
  172. package/dist/facets-BXRB3I6Q.js +119 -0
  173. package/dist/facets-BXRB3I6Q.js.map +1 -0
  174. package/dist/feedback-YWJUV7LV.js +116 -0
  175. package/dist/feedback-YWJUV7LV.js.map +1 -0
  176. package/dist/fetch-SZORBUY6.js +488 -0
  177. package/dist/fetch-SZORBUY6.js.map +1 -0
  178. package/dist/fit-BNMTWIDZ.js +70 -0
  179. package/dist/flows-CXLGJZX3.js +343 -0
  180. package/dist/flows-CXLGJZX3.js.map +1 -0
  181. package/dist/forecast-4GMD2VLH.js +123 -0
  182. package/dist/forecast-4GMD2VLH.js.map +1 -0
  183. package/dist/funnel-6T744PW5.js +702 -0
  184. package/dist/funnel-6T744PW5.js.map +1 -0
  185. package/dist/get-AV7SAPWM.js +115 -0
  186. package/dist/get-AV7SAPWM.js.map +1 -0
  187. package/dist/get-XGNDE6U5.js +78 -0
  188. package/dist/get-XGNDE6U5.js.map +1 -0
  189. package/dist/google-5PTZYW6Q.js +165 -0
  190. package/dist/google-5PTZYW6Q.js.map +1 -0
  191. package/dist/google-ads-LL4VNYPD.js +202 -0
  192. package/dist/google-ads-LL4VNYPD.js.map +1 -0
  193. package/dist/history-CFVA6FMG.js +109 -0
  194. package/dist/history-CFVA6FMG.js.map +1 -0
  195. package/dist/history-DSRIBYK6.js +156 -0
  196. package/dist/history-DSRIBYK6.js.map +1 -0
  197. package/dist/hubspot-QEDQFEME.js +854 -0
  198. package/dist/hubspot-QEDQFEME.js.map +1 -0
  199. package/dist/ideas-UK74GJGE.js +50 -0
  200. package/dist/images-OH7KDUR5.js +92 -0
  201. package/dist/ingest-2BC3W4WC.js +32 -0
  202. package/dist/ingest-U46BUNPL.js +163 -0
  203. package/dist/ingest-U46BUNPL.js.map +1 -0
  204. package/dist/inspect-ZMCRHR2P.js +39 -0
  205. package/dist/keyword-metrics-RHQHOBBD.js +235 -0
  206. package/dist/keyword-metrics-RHQHOBBD.js.map +1 -0
  207. package/dist/keywords-for-site-SXM5GYNK.js +135 -0
  208. package/dist/keywords-for-site-SXM5GYNK.js.map +1 -0
  209. package/dist/leads-SXKIKE33.js +138 -0
  210. package/dist/leads-SXKIKE33.js.map +1 -0
  211. package/dist/leads-UTBT62TH.js +574 -0
  212. package/dist/leads-UTBT62TH.js.map +1 -0
  213. package/dist/learn-IUTTKGIM.js +214 -0
  214. package/dist/learn-IUTTKGIM.js.map +1 -0
  215. package/dist/line-item-writes-4UCLAFCM.js +213 -0
  216. package/dist/line-item-writes-4UCLAFCM.js.map +1 -0
  217. package/dist/line-items-RUC54PIV.js +107 -0
  218. package/dist/link-DVOBJDBN.js +71 -0
  219. package/dist/link-DVOBJDBN.js.map +1 -0
  220. package/dist/linkedin-2Y7TU4US.js +1499 -0
  221. package/dist/linkedin-2Y7TU4US.js.map +1 -0
  222. package/dist/linkedin-person-MTXQCPG5.js +143 -0
  223. package/dist/linkedin-person-MTXQCPG5.js.map +1 -0
  224. package/dist/list-KYEFILOK.js +170 -0
  225. package/dist/list-KYEFILOK.js.map +1 -0
  226. package/dist/list-V5XCBLJ7.js +321 -0
  227. package/dist/list-V5XCBLJ7.js.map +1 -0
  228. package/dist/list-VXWXN54Z.js +90 -0
  229. package/dist/list-VXWXN54Z.js.map +1 -0
  230. package/dist/log-STIZ76SH.js +99 -0
  231. package/dist/log-STIZ76SH.js.map +1 -0
  232. package/dist/make-HDEKIJC6.js +1392 -0
  233. package/dist/make-HDEKIJC6.js.map +1 -0
  234. package/dist/map-2SS3BULX.js +520 -0
  235. package/dist/map-2SS3BULX.js.map +1 -0
  236. package/dist/mcp-I5ASSVSH.js +1018 -0
  237. package/dist/mcp-I5ASSVSH.js.map +1 -0
  238. package/dist/media-sources-KUEQ45V5.js +35 -0
  239. package/dist/members-65P2J63J.js +51 -0
  240. package/dist/members-65P2J63J.js.map +1 -0
  241. package/dist/meta-2ZQ3CWLF.js +152 -0
  242. package/dist/normalize-WNJDY66N.js +146 -0
  243. package/dist/normalize-WNJDY66N.js.map +1 -0
  244. package/dist/options-G4KR2KM7.js +127 -0
  245. package/dist/options-G4KR2KM7.js.map +1 -0
  246. package/dist/organization-FVZ6EIQB.js +950 -0
  247. package/dist/organization-FVZ6EIQB.js.map +1 -0
  248. package/dist/people-654OH5SE.js +162 -0
  249. package/dist/people-654OH5SE.js.map +1 -0
  250. package/dist/people-G3X6XVSH.js +172 -0
  251. package/dist/people-G3X6XVSH.js.map +1 -0
  252. package/dist/performance-BIH653SL.js +29 -0
  253. package/dist/performance-IU4CAW5U.js +6295 -0
  254. package/dist/performance-IU4CAW5U.js.map +1 -0
  255. package/dist/pipedrive-7AHNEUZI.js +534 -0
  256. package/dist/pipedrive-7AHNEUZI.js.map +1 -0
  257. package/dist/preview-ZOTNLVQF.js +104 -0
  258. package/dist/preview-ZOTNLVQF.js.map +1 -0
  259. package/dist/promoted-tweet-writes-7OXSBCSP.js +185 -0
  260. package/dist/promoted-tweet-writes-7OXSBCSP.js.map +1 -0
  261. package/dist/promoted-tweets-6YCNFVJK.js +119 -0
  262. package/dist/publish-W6YO4KXM.js +431 -0
  263. package/dist/publish-W6YO4KXM.js.map +1 -0
  264. package/dist/reddit-Z4REP3DB.js +31 -0
  265. package/dist/refresh-J4EVW5NK.js +101 -0
  266. package/dist/refresh-J4EVW5NK.js.map +1 -0
  267. package/dist/release-J7PM3S26.js +67 -0
  268. package/dist/release-J7PM3S26.js.map +1 -0
  269. package/dist/remove-47SNXAN4.js +55 -0
  270. package/dist/remove-47SNXAN4.js.map +1 -0
  271. package/dist/reopen-QZ5H7BM4.js +70 -0
  272. package/dist/reopen-QZ5H7BM4.js.map +1 -0
  273. package/dist/rerun-NXCWZO6J.js +102 -0
  274. package/dist/rerun-NXCWZO6J.js.map +1 -0
  275. package/dist/research-FYPPBDZD.js +267 -0
  276. package/dist/research-FYPPBDZD.js.map +1 -0
  277. package/dist/research-M6YZMTCC.js +78 -0
  278. package/dist/reset-HOZN4FOM.js +59 -0
  279. package/dist/reset-HOZN4FOM.js.map +1 -0
  280. package/dist/reset-YSI4KD65.js +59 -0
  281. package/dist/reset-YSI4KD65.js.map +1 -0
  282. package/dist/resolve-4LGAMITK.js +126 -0
  283. package/dist/resolve-4LGAMITK.js.map +1 -0
  284. package/dist/retry-JE7MVPCY.js +67 -0
  285. package/dist/retry-JE7MVPCY.js.map +1 -0
  286. package/dist/retry-NF5WFRK3.js +67 -0
  287. package/dist/retry-NF5WFRK3.js.map +1 -0
  288. package/dist/revenue-UNKQMFEP.js +100 -0
  289. package/dist/revenue-UNKQMFEP.js.map +1 -0
  290. package/dist/rules-ZQVMBEGF.js +164 -0
  291. package/dist/rules-ZQVMBEGF.js.map +1 -0
  292. package/dist/run-3AFY2WEP.js +74 -0
  293. package/dist/run-3AFY2WEP.js.map +1 -0
  294. package/dist/run-MBVV64FY.js +79 -0
  295. package/dist/scaffold-ad-5BDDIBIE.js +1601 -0
  296. package/dist/scaffold-ad-5BDDIBIE.js.map +1 -0
  297. package/dist/scaffold-static-ad-VI4HHQXS.js +999 -0
  298. package/dist/scaffold-static-ad-VI4HHQXS.js.map +1 -0
  299. package/dist/scaffold-video-EPMMQHUN.js +889 -0
  300. package/dist/scaffold-video-EPMMQHUN.js.map +1 -0
  301. package/dist/schedule-MYNSAWBJ.js +66 -0
  302. package/dist/schedule-MYNSAWBJ.js.map +1 -0
  303. package/dist/scheduled-agents-T7CITLJL.js +59 -0
  304. package/dist/schema-4WMUT43Q.js +137 -0
  305. package/dist/schema-4WMUT43Q.js.map +1 -0
  306. package/dist/schema-6WONG4NR.js +241 -0
  307. package/dist/search-AF7G5TRI.js +193 -0
  308. package/dist/search-AF7G5TRI.js.map +1 -0
  309. package/dist/select-LUFSBEFK.js +135 -0
  310. package/dist/select-LUFSBEFK.js.map +1 -0
  311. package/dist/set-Z754PYIP.js +275 -0
  312. package/dist/set-Z754PYIP.js.map +1 -0
  313. package/dist/set-prompt-WDCKB4GU.js +205 -0
  314. package/dist/set-prompt-WDCKB4GU.js.map +1 -0
  315. package/dist/setup-links-3FCP4CMO.js +146 -0
  316. package/dist/setup-links-3FCP4CMO.js.map +1 -0
  317. package/dist/shopify-OMTDOM6H.js +4033 -0
  318. package/dist/shopify-OMTDOM6H.js.map +1 -0
  319. package/dist/site-E6VDWABB.js +182 -0
  320. package/dist/site-E6VDWABB.js.map +1 -0
  321. package/dist/sources-3RQZ3AR2.js +30 -0
  322. package/dist/sources-IB2WBJLU.js +464 -0
  323. package/dist/sources-IB2WBJLU.js.map +1 -0
  324. package/dist/stale-V4NS3MDH.js +93 -0
  325. package/dist/stale-V4NS3MDH.js.map +1 -0
  326. package/dist/status-T67ZC4E3.js +69 -0
  327. package/dist/status-T67ZC4E3.js.map +1 -0
  328. package/dist/stock-V2ITAW3L.js +214 -0
  329. package/dist/stock-V2ITAW3L.js.map +1 -0
  330. package/dist/sync-O5OC466B.js +59 -0
  331. package/dist/sync-O5OC466B.js.map +1 -0
  332. package/dist/sync-definition-MR7XESTS.js +75 -0
  333. package/dist/tags-ACDAA5T6.js +25 -0
  334. package/dist/tags-ACDAA5T6.js.map +1 -0
  335. package/dist/tags-I3AJEMKF.js +26 -0
  336. package/dist/tags-IMTMMKH3.js +25 -0
  337. package/dist/tags-IMTMMKH3.js.map +1 -0
  338. package/dist/tags-Q32N3AGN.js +25 -0
  339. package/dist/tags-Q32N3AGN.js.map +1 -0
  340. package/dist/tags-YWZLXCDK.js +183 -0
  341. package/dist/tags-YWZLXCDK.js.map +1 -0
  342. package/dist/targeting-T2HTV2OD.js +777 -0
  343. package/dist/targeting-criteria-QFFAYBGE.js +113 -0
  344. package/dist/targets-VJ7FDIRY.js +111 -0
  345. package/dist/targets-VJ7FDIRY.js.map +1 -0
  346. package/dist/testimonials-67Q3OTBU.js +32 -0
  347. package/dist/top-companies-6XTBQ26K.js +251 -0
  348. package/dist/top-companies-6XTBQ26K.js.map +1 -0
  349. package/dist/transcript-VJ3SAEUV.js +169 -0
  350. package/dist/transcript-VJ3SAEUV.js.map +1 -0
  351. package/dist/translate-ET2MK3H2.js +608 -0
  352. package/dist/translate-ET2MK3H2.js.map +1 -0
  353. package/dist/triggers-JP6VF7BW.js +149 -0
  354. package/dist/triggers-JP6VF7BW.js.map +1 -0
  355. package/dist/unlink-KMFC3LDG.js +74 -0
  356. package/dist/unlink-KMFC3LDG.js.map +1 -0
  357. package/dist/unstage-GPI2NIBV.js +93 -0
  358. package/dist/unstage-GPI2NIBV.js.map +1 -0
  359. package/dist/update-2FH5MZVD.js +238 -0
  360. package/dist/update-2FH5MZVD.js.map +1 -0
  361. package/dist/update-ACOQHC7J.js +194 -0
  362. package/dist/update-ACOQHC7J.js.map +1 -0
  363. package/dist/update-CUQLNEAD.js +176 -0
  364. package/dist/update-CUQLNEAD.js.map +1 -0
  365. package/dist/update-RZXG7Z62.js +70 -0
  366. package/dist/update-RZXG7Z62.js.map +1 -0
  367. package/dist/upload-HVE7JHOF.js +186 -0
  368. package/dist/upload-HVE7JHOF.js.map +1 -0
  369. package/dist/url-params-EHRE7RFC.js +103 -0
  370. package/dist/url-params-EHRE7RFC.js.map +1 -0
  371. package/dist/validate-2SL473DR.js +181 -0
  372. package/dist/validate-2SL473DR.js.map +1 -0
  373. package/dist/videos-URSOTIHU.js +41 -0
  374. package/dist/viewer-check-N3SEOOMX.js +90 -0
  375. package/dist/visuals-2Q643EXW.js +130 -0
  376. package/dist/visuals-2Q643EXW.js.map +1 -0
  377. package/dist/web-SEZ7DJLY.js +181 -0
  378. package/dist/web-SEZ7DJLY.js.map +1 -0
  379. package/dist/winning-ads-TCRRYKCR.js +88 -0
  380. package/dist/write-commands-DSQDZBN7.js +1556 -0
  381. package/dist/write-commands-DSQDZBN7.js.map +1 -0
  382. package/dist/x-K6IWYLK3.js +47 -0
  383. package/package.json +1 -1
  384. package/dist/account-Z62BVYAI.js +0 -83
  385. package/dist/account-Z62BVYAI.js.map +0 -1
  386. package/dist/account-users-ZDZ7B4BX.js +0 -69
  387. package/dist/account-users-ZDZ7B4BX.js.map +0 -1
  388. package/dist/accounts-FGWJDM52.js +0 -505
  389. package/dist/accounts-FGWJDM52.js.map +0 -1
  390. package/dist/accounts-SUIMNTTA.js +0 -81
  391. package/dist/accounts-SUIMNTTA.js.map +0 -1
  392. package/dist/actions-Q7DDN427.js +0 -55
  393. package/dist/activecampaign-BAWTDTSA.js +0 -935
  394. package/dist/activecampaign-BAWTDTSA.js.map +0 -1
  395. package/dist/activities-SUUW5KH7.js +0 -84
  396. package/dist/add-3WUVL3MN.js +0 -662
  397. package/dist/add-3WUVL3MN.js.map +0 -1
  398. package/dist/add-HBRY2SF6.js +0 -108
  399. package/dist/add-HBRY2SF6.js.map +0 -1
  400. package/dist/add-I4DL3DN5.js +0 -661
  401. package/dist/add-I4DL3DN5.js.map +0 -1
  402. package/dist/ads-2O3DC7ZM.js +0 -139
  403. package/dist/ads-2O3DC7ZM.js.map +0 -1
  404. package/dist/ads-DJHUXK2O.js +0 -48
  405. package/dist/adsets-PMEPGGAI.js +0 -198
  406. package/dist/advertisers-AJQEQ3VF.js +0 -126
  407. package/dist/advertisers-AJQEQ3VF.js.map +0 -1
  408. package/dist/alerts-RJBTQ2OX.js +0 -153
  409. package/dist/alerts-RJBTQ2OX.js.map +0 -1
  410. package/dist/analytics-SVV7JZ2J.js +0 -2791
  411. package/dist/analytics-SVV7JZ2J.js.map +0 -1
  412. package/dist/analytics-WLFBQOO4.js +0 -461
  413. package/dist/analytics-WLFBQOO4.js.map +0 -1
  414. package/dist/assign-MAXWMYQ2.js +0 -83
  415. package/dist/assign-MAXWMYQ2.js.map +0 -1
  416. package/dist/audience-size-ISJSPSRW.js +0 -77
  417. package/dist/audience-size-ISJSPSRW.js.map +0 -1
  418. package/dist/audiences-Y6UFKHZ5.js +0 -117
  419. package/dist/audit-EHKSN2WS.js +0 -155
  420. package/dist/audit-EHKSN2WS.js.map +0 -1
  421. package/dist/autocomplete-I6V2CKI4.js +0 -117
  422. package/dist/autocomplete-I6V2CKI4.js.map +0 -1
  423. package/dist/avatars-775WMIZF.js +0 -38
  424. package/dist/bid-pricing-HFBQ23DD.js +0 -104
  425. package/dist/bid-pricing-HFBQ23DD.js.map +0 -1
  426. package/dist/brief-LR5YTTVQ.js +0 -511
  427. package/dist/brief-LR5YTTVQ.js.map +0 -1
  428. package/dist/campaign-groups-DKB3K7L4.js +0 -118
  429. package/dist/campaign-groups-DKB3K7L4.js.map +0 -1
  430. package/dist/campaign-writes-DXV2HPB2.js +0 -169
  431. package/dist/campaign-writes-DXV2HPB2.js.map +0 -1
  432. package/dist/campaigns-6OYAQVIE.js +0 -193
  433. package/dist/campaigns-6OYAQVIE.js.map +0 -1
  434. package/dist/campaigns-RNPLAVXM.js +0 -139
  435. package/dist/campaigns-UEPNMAIN.js +0 -111
  436. package/dist/canvas-6CWER4CP.js +0 -48
  437. package/dist/capabilities-U53QPNBQ.js +0 -184
  438. package/dist/capabilities-U53QPNBQ.js.map +0 -1
  439. package/dist/catalog-KTAYEWYO.js +0 -89
  440. package/dist/catalog-KTAYEWYO.js.map +0 -1
  441. package/dist/chats-QVGXEYT6.js +0 -659
  442. package/dist/chats-QVGXEYT6.js.map +0 -1
  443. package/dist/check-3YGJFXU2.js +0 -54
  444. package/dist/chunk-2DGJKIHF.js +0 -78
  445. package/dist/chunk-33KRW6HE.js +0 -374
  446. package/dist/chunk-34CJ5QXO.js +0 -91
  447. package/dist/chunk-3HAKK5FO.js +0 -660
  448. package/dist/chunk-4MIETRE4.js +0 -103
  449. package/dist/chunk-4X6QBNIB.js +0 -320
  450. package/dist/chunk-52V5324M.js +0 -224
  451. package/dist/chunk-5OXVEKML.js +0 -548
  452. package/dist/chunk-5WQ3UHJ2.js +0 -341
  453. package/dist/chunk-624DWMDW.js +0 -8382
  454. package/dist/chunk-624DWMDW.js.map +0 -1
  455. package/dist/chunk-63XEBJIX.js +0 -262
  456. package/dist/chunk-CG6BJIHU.js +0 -175
  457. package/dist/chunk-CHPHAPPP.js +0 -547
  458. package/dist/chunk-CPBXSDXS.js +0 -9127
  459. package/dist/chunk-CSOESLNA.js +0 -61
  460. package/dist/chunk-CWYONUBS.js +0 -163
  461. package/dist/chunk-DSZ3OLQU.js +0 -65
  462. package/dist/chunk-ECUN7W2Y.js +0 -91
  463. package/dist/chunk-EHDZONE6.js +0 -746
  464. package/dist/chunk-GN6X5C57.js +0 -400
  465. package/dist/chunk-GN6X5C57.js.map +0 -1
  466. package/dist/chunk-HQISXBEX.js +0 -685
  467. package/dist/chunk-J5LG2M5T.js +0 -155
  468. package/dist/chunk-JY5OIBMR.js +0 -3378
  469. package/dist/chunk-KDCPM6W2.js +0 -6340
  470. package/dist/chunk-KUNNKG4S.js +0 -202
  471. package/dist/chunk-MQIO7WLM.js +0 -396
  472. package/dist/chunk-MQZHJAH3.js +0 -197
  473. package/dist/chunk-NOJC3PUZ.js +0 -479
  474. package/dist/chunk-NR5EJ6TC.js +0 -10361
  475. package/dist/chunk-OBT55DQA.js +0 -260
  476. package/dist/chunk-PA5OJXQ3.js +0 -313
  477. package/dist/chunk-PMK2WXS5.js +0 -411
  478. package/dist/chunk-PRPSV4VB.js +0 -105
  479. package/dist/chunk-PRPSV4VB.js.map +0 -1
  480. package/dist/chunk-QYOLOU5G.js +0 -329
  481. package/dist/chunk-RS4BSY3E.js +0 -509
  482. package/dist/chunk-S2V54TOS.js +0 -170
  483. package/dist/chunk-TDNOPJXB.js +0 -1124
  484. package/dist/chunk-TWSIY2FS.js +0 -392
  485. package/dist/chunk-WVXJYBWA.js +0 -251
  486. package/dist/chunk-XNTV3QKG.js +0 -64
  487. package/dist/chunk-Y62YTEPM.js +0 -23
  488. package/dist/chunk-YBSRIW5S.js +0 -51
  489. package/dist/chunk-YXYUHTQM.js +0 -423
  490. package/dist/chunk-ZDDJTA3H.js +0 -303
  491. package/dist/claim-XHSTFNS3.js +0 -218
  492. package/dist/claim-XHSTFNS3.js.map +0 -1
  493. package/dist/companies-ITNWR5Q4.js +0 -36
  494. package/dist/company-ANL7K7CY.js +0 -311
  495. package/dist/company-ANL7K7CY.js.map +0 -1
  496. package/dist/complete-7L3ILPCT.js +0 -87
  497. package/dist/complete-7L3ILPCT.js.map +0 -1
  498. package/dist/connect-SD7PFKPI.js +0 -46
  499. package/dist/conversation-SKZMGVA5.js +0 -100
  500. package/dist/conversation-SKZMGVA5.js.map +0 -1
  501. package/dist/conversions-IMST22UQ.js +0 -141
  502. package/dist/conversions-IMST22UQ.js.map +0 -1
  503. package/dist/create-5KE4XHS3.js +0 -65
  504. package/dist/create-5KE4XHS3.js.map +0 -1
  505. package/dist/create-KGRQQ7WA.js +0 -190
  506. package/dist/create-KGRQQ7WA.js.map +0 -1
  507. package/dist/create-QBA7VZSZ.js +0 -356
  508. package/dist/create-QBA7VZSZ.js.map +0 -1
  509. package/dist/create-SPNJBN6K.js +0 -219
  510. package/dist/create-SPNJBN6K.js.map +0 -1
  511. package/dist/creatives-3E5BEATB.js +0 -48
  512. package/dist/creatives-42PW2C24.js +0 -235
  513. package/dist/creatives-42PW2C24.js.map +0 -1
  514. package/dist/creatives-OTKJRMBJ.js +0 -119
  515. package/dist/credentials-T7F2PFNY.js +0 -291
  516. package/dist/credentials-T7F2PFNY.js.map +0 -1
  517. package/dist/critique-I2HAOTTX.js +0 -230
  518. package/dist/critique-I2HAOTTX.js.map +0 -1
  519. package/dist/crm-EVN7PDQE.js +0 -418
  520. package/dist/crm-EVN7PDQE.js.map +0 -1
  521. package/dist/crm-OO2WO6OG.js +0 -327
  522. package/dist/crm-OO2WO6OG.js.map +0 -1
  523. package/dist/customers-V7WKKZI2.js +0 -69
  524. package/dist/delete-7VLK5I4V.js +0 -60
  525. package/dist/delete-7VLK5I4V.js.map +0 -1
  526. package/dist/delete-TRJMPMN5.js +0 -70
  527. package/dist/delete-TRJMPMN5.js.map +0 -1
  528. package/dist/delete-XAVEVESN.js +0 -71
  529. package/dist/delete-XAVEVESN.js.map +0 -1
  530. package/dist/demographics-K5WTHZCW.js +0 -145
  531. package/dist/demographics-K5WTHZCW.js.map +0 -1
  532. package/dist/discard-ANRGHE2Z.js +0 -72
  533. package/dist/discard-ANRGHE2Z.js.map +0 -1
  534. package/dist/domain-LQ4VCYC4.js +0 -104
  535. package/dist/domain-LQ4VCYC4.js.map +0 -1
  536. package/dist/download-HVNPTNFN.js +0 -174
  537. package/dist/download-HVNPTNFN.js.map +0 -1
  538. package/dist/draft-572T3UNG.js +0 -427
  539. package/dist/draft-572T3UNG.js.map +0 -1
  540. package/dist/draft-JGEZVDAS.js +0 -389
  541. package/dist/draft-JGEZVDAS.js.map +0 -1
  542. package/dist/draft-KZKNUQ2I.js +0 -227
  543. package/dist/draft-KZKNUQ2I.js.map +0 -1
  544. package/dist/experiment-WEWASTVO.js +0 -2094
  545. package/dist/experiment-WEWASTVO.js.map +0 -1
  546. package/dist/experiments-C4R65GA6.js +0 -241
  547. package/dist/experiments-C4R65GA6.js.map +0 -1
  548. package/dist/extract-J7Q6DYE7.js +0 -144
  549. package/dist/extract-J7Q6DYE7.js.map +0 -1
  550. package/dist/facets-GXBTQCAW.js +0 -118
  551. package/dist/facets-GXBTQCAW.js.map +0 -1
  552. package/dist/feedback-FZTJATY7.js +0 -115
  553. package/dist/feedback-FZTJATY7.js.map +0 -1
  554. package/dist/fetch-GSMAAL7N.js +0 -487
  555. package/dist/fetch-GSMAAL7N.js.map +0 -1
  556. package/dist/fit-K63JPI3A.js +0 -69
  557. package/dist/flows-C45HCGGB.js +0 -342
  558. package/dist/flows-C45HCGGB.js.map +0 -1
  559. package/dist/forecast-NOQNCFTX.js +0 -122
  560. package/dist/forecast-NOQNCFTX.js.map +0 -1
  561. package/dist/funnel-U47RAS7K.js +0 -701
  562. package/dist/funnel-U47RAS7K.js.map +0 -1
  563. package/dist/get-H5CUQP7G.js +0 -114
  564. package/dist/get-H5CUQP7G.js.map +0 -1
  565. package/dist/get-J2QFYRHW.js +0 -77
  566. package/dist/get-J2QFYRHW.js.map +0 -1
  567. package/dist/google-OYP3AU3I.js +0 -164
  568. package/dist/google-OYP3AU3I.js.map +0 -1
  569. package/dist/google-ads-74CPXLIA.js +0 -201
  570. package/dist/google-ads-74CPXLIA.js.map +0 -1
  571. package/dist/history-AGCS2TKY.js +0 -108
  572. package/dist/history-AGCS2TKY.js.map +0 -1
  573. package/dist/history-M6VLA7TD.js +0 -155
  574. package/dist/history-M6VLA7TD.js.map +0 -1
  575. package/dist/hubspot-W5LYFWTH.js +0 -853
  576. package/dist/hubspot-W5LYFWTH.js.map +0 -1
  577. package/dist/ideas-6LZ6VINW.js +0 -49
  578. package/dist/images-TUQEYLFE.js +0 -92
  579. package/dist/ingest-S7I6E2GE.js +0 -31
  580. package/dist/ingest-XJNSFWBC.js +0 -162
  581. package/dist/ingest-XJNSFWBC.js.map +0 -1
  582. package/dist/inspect-AQBNRV5E.js +0 -38
  583. package/dist/keyword-metrics-DSEJ2KDM.js +0 -234
  584. package/dist/keyword-metrics-DSEJ2KDM.js.map +0 -1
  585. package/dist/keywords-for-site-CYVRXIF5.js +0 -134
  586. package/dist/keywords-for-site-CYVRXIF5.js.map +0 -1
  587. package/dist/leads-DAXPX7V5.js +0 -575
  588. package/dist/leads-DAXPX7V5.js.map +0 -1
  589. package/dist/leads-ZRHPHJRE.js +0 -137
  590. package/dist/leads-ZRHPHJRE.js.map +0 -1
  591. package/dist/learn-ZR35TBVQ.js +0 -213
  592. package/dist/learn-ZR35TBVQ.js.map +0 -1
  593. package/dist/line-item-writes-L73P5MN7.js +0 -212
  594. package/dist/line-item-writes-L73P5MN7.js.map +0 -1
  595. package/dist/line-items-KC5PKV2T.js +0 -107
  596. package/dist/link-64FQKM6S.js +0 -70
  597. package/dist/link-64FQKM6S.js.map +0 -1
  598. package/dist/linkedin-BD63QPGK.js +0 -1498
  599. package/dist/linkedin-BD63QPGK.js.map +0 -1
  600. package/dist/linkedin-person-6XXLSFDE.js +0 -142
  601. package/dist/linkedin-person-6XXLSFDE.js.map +0 -1
  602. package/dist/list-DBZ3AGW2.js +0 -89
  603. package/dist/list-DBZ3AGW2.js.map +0 -1
  604. package/dist/list-KYTLJVHG.js +0 -169
  605. package/dist/list-KYTLJVHG.js.map +0 -1
  606. package/dist/list-WOCSNSYO.js +0 -320
  607. package/dist/list-WOCSNSYO.js.map +0 -1
  608. package/dist/log-LLJ3M63R.js +0 -98
  609. package/dist/log-LLJ3M63R.js.map +0 -1
  610. package/dist/make-UM6P6RD3.js +0 -1391
  611. package/dist/make-UM6P6RD3.js.map +0 -1
  612. package/dist/map-SKH3NVSQ.js +0 -519
  613. package/dist/map-SKH3NVSQ.js.map +0 -1
  614. package/dist/mcp-FIBT4HAH.js +0 -1017
  615. package/dist/mcp-FIBT4HAH.js.map +0 -1
  616. package/dist/media-sources-NI6U2YWV.js +0 -35
  617. package/dist/members-PK3Q7AZX.js +0 -50
  618. package/dist/members-PK3Q7AZX.js.map +0 -1
  619. package/dist/meta-GSTM6EBD.js +0 -152
  620. package/dist/normalize-KEDHUMAB.js +0 -145
  621. package/dist/normalize-KEDHUMAB.js.map +0 -1
  622. package/dist/options-VYRUYL4N.js +0 -126
  623. package/dist/options-VYRUYL4N.js.map +0 -1
  624. package/dist/organization-RTJDOJEV.js +0 -949
  625. package/dist/organization-RTJDOJEV.js.map +0 -1
  626. package/dist/people-3VU3QSRN.js +0 -161
  627. package/dist/people-3VU3QSRN.js.map +0 -1
  628. package/dist/people-A3YXUYUR.js +0 -171
  629. package/dist/people-A3YXUYUR.js.map +0 -1
  630. package/dist/performance-6I57ZQTD.js +0 -6294
  631. package/dist/performance-6I57ZQTD.js.map +0 -1
  632. package/dist/performance-OBAWMTVU.js +0 -28
  633. package/dist/pipedrive-7AA7ZD7M.js +0 -533
  634. package/dist/pipedrive-7AA7ZD7M.js.map +0 -1
  635. package/dist/preview-66BGLU5H.js +0 -103
  636. package/dist/preview-66BGLU5H.js.map +0 -1
  637. package/dist/promoted-tweet-writes-ZUFVAVGA.js +0 -184
  638. package/dist/promoted-tweet-writes-ZUFVAVGA.js.map +0 -1
  639. package/dist/promoted-tweets-3AKHKOI4.js +0 -119
  640. package/dist/publish-JPIOQKB4.js +0 -430
  641. package/dist/publish-JPIOQKB4.js.map +0 -1
  642. package/dist/reddit-TKE3IXST.js +0 -30
  643. package/dist/refresh-BE7KEADW.js +0 -100
  644. package/dist/refresh-BE7KEADW.js.map +0 -1
  645. package/dist/release-EUXHZEO7.js +0 -66
  646. package/dist/release-EUXHZEO7.js.map +0 -1
  647. package/dist/remove-6HAN547O.js +0 -54
  648. package/dist/remove-6HAN547O.js.map +0 -1
  649. package/dist/reopen-HBEWR4CF.js +0 -69
  650. package/dist/reopen-HBEWR4CF.js.map +0 -1
  651. package/dist/rerun-PLS5XYTW.js +0 -101
  652. package/dist/rerun-PLS5XYTW.js.map +0 -1
  653. package/dist/research-B5VHPALW.js +0 -78
  654. package/dist/research-RCD54TCL.js +0 -266
  655. package/dist/research-RCD54TCL.js.map +0 -1
  656. package/dist/reset-DQXYM75W.js +0 -58
  657. package/dist/reset-DQXYM75W.js.map +0 -1
  658. package/dist/reset-Y7UWO233.js +0 -58
  659. package/dist/reset-Y7UWO233.js.map +0 -1
  660. package/dist/resolve-NVL3FTQU.js +0 -125
  661. package/dist/resolve-NVL3FTQU.js.map +0 -1
  662. package/dist/retry-MMY5H6O6.js +0 -66
  663. package/dist/retry-MMY5H6O6.js.map +0 -1
  664. package/dist/retry-YCYZPMXM.js +0 -66
  665. package/dist/retry-YCYZPMXM.js.map +0 -1
  666. package/dist/revenue-C24BDD5A.js +0 -99
  667. package/dist/revenue-C24BDD5A.js.map +0 -1
  668. package/dist/rules-MGEJJJ4O.js +0 -163
  669. package/dist/rules-MGEJJJ4O.js.map +0 -1
  670. package/dist/run-2RGSNKFH.js +0 -78
  671. package/dist/run-HCYK5ZAX.js +0 -73
  672. package/dist/run-HCYK5ZAX.js.map +0 -1
  673. package/dist/scaffold-ad-UOXDJIVB.js +0 -1600
  674. package/dist/scaffold-ad-UOXDJIVB.js.map +0 -1
  675. package/dist/scaffold-static-ad-ZM3LOIFK.js +0 -998
  676. package/dist/scaffold-static-ad-ZM3LOIFK.js.map +0 -1
  677. package/dist/scaffold-video-EBQOBQXI.js +0 -888
  678. package/dist/scaffold-video-EBQOBQXI.js.map +0 -1
  679. package/dist/schedule-IVNAF7NB.js +0 -65
  680. package/dist/schedule-IVNAF7NB.js.map +0 -1
  681. package/dist/scheduled-agents-YHZUPS2I.js +0 -59
  682. package/dist/schema-F6QTDMJW.js +0 -136
  683. package/dist/schema-F6QTDMJW.js.map +0 -1
  684. package/dist/schema-NIYT4JHM.js +0 -241
  685. package/dist/search-A4GTDVIE.js +0 -192
  686. package/dist/search-A4GTDVIE.js.map +0 -1
  687. package/dist/select-HER2THTU.js +0 -134
  688. package/dist/select-HER2THTU.js.map +0 -1
  689. package/dist/set-MXHNM4NH.js +0 -274
  690. package/dist/set-MXHNM4NH.js.map +0 -1
  691. package/dist/set-prompt-G27JMELE.js +0 -204
  692. package/dist/set-prompt-G27JMELE.js.map +0 -1
  693. package/dist/setup-links-LVJU7KHP.js +0 -145
  694. package/dist/setup-links-LVJU7KHP.js.map +0 -1
  695. package/dist/shopify-ZQFONX3R.js +0 -4032
  696. package/dist/shopify-ZQFONX3R.js.map +0 -1
  697. package/dist/site-X43NFWHL.js +0 -181
  698. package/dist/site-X43NFWHL.js.map +0 -1
  699. package/dist/sources-3KYI7TSD.js +0 -30
  700. package/dist/sources-G7QWYL2J.js +0 -463
  701. package/dist/sources-G7QWYL2J.js.map +0 -1
  702. package/dist/stale-F7UXOYYY.js +0 -92
  703. package/dist/stale-F7UXOYYY.js.map +0 -1
  704. package/dist/status-7RLJ7ZND.js +0 -68
  705. package/dist/status-7RLJ7ZND.js.map +0 -1
  706. package/dist/stock-BSMF4FH4.js +0 -213
  707. package/dist/stock-BSMF4FH4.js.map +0 -1
  708. package/dist/sync-XAWDIOTT.js +0 -58
  709. package/dist/sync-XAWDIOTT.js.map +0 -1
  710. package/dist/sync-definition-73CCAEDP.js +0 -74
  711. package/dist/tags-5V3NCHKE.js +0 -26
  712. package/dist/tags-HSLB3YPN.js +0 -24
  713. package/dist/tags-HSLB3YPN.js.map +0 -1
  714. package/dist/tags-M57YBWGW.js +0 -182
  715. package/dist/tags-M57YBWGW.js.map +0 -1
  716. package/dist/tags-MWMY3GRG.js +0 -24
  717. package/dist/tags-MWMY3GRG.js.map +0 -1
  718. package/dist/tags-QHEJUOHL.js +0 -24
  719. package/dist/tags-QHEJUOHL.js.map +0 -1
  720. package/dist/targeting-HIXQGQ7A.js +0 -777
  721. package/dist/targeting-criteria-FIXPSX2K.js +0 -113
  722. package/dist/targets-5A5SOQJM.js +0 -110
  723. package/dist/targets-5A5SOQJM.js.map +0 -1
  724. package/dist/testimonials-RIL2ARX7.js +0 -32
  725. package/dist/top-companies-KEV55RME.js +0 -250
  726. package/dist/top-companies-KEV55RME.js.map +0 -1
  727. package/dist/transcript-ZOJWRPZD.js +0 -168
  728. package/dist/transcript-ZOJWRPZD.js.map +0 -1
  729. package/dist/translate-WL6KD2X4.js +0 -607
  730. package/dist/translate-WL6KD2X4.js.map +0 -1
  731. package/dist/triggers-PH33IQLK.js +0 -148
  732. package/dist/triggers-PH33IQLK.js.map +0 -1
  733. package/dist/unlink-WD5D3XBG.js +0 -73
  734. package/dist/unlink-WD5D3XBG.js.map +0 -1
  735. package/dist/unstage-52VGCJWF.js +0 -92
  736. package/dist/unstage-52VGCJWF.js.map +0 -1
  737. package/dist/update-3YQGAFEX.js +0 -69
  738. package/dist/update-3YQGAFEX.js.map +0 -1
  739. package/dist/update-6355E7VP.js +0 -193
  740. package/dist/update-6355E7VP.js.map +0 -1
  741. package/dist/update-RD27CPMN.js +0 -237
  742. package/dist/update-RD27CPMN.js.map +0 -1
  743. package/dist/update-TZLOKZ22.js +0 -175
  744. package/dist/update-TZLOKZ22.js.map +0 -1
  745. package/dist/upload-PMKPLLAA.js +0 -185
  746. package/dist/upload-PMKPLLAA.js.map +0 -1
  747. package/dist/url-params-CXUAYJBD.js +0 -102
  748. package/dist/url-params-CXUAYJBD.js.map +0 -1
  749. package/dist/validate-YRTGO4UN.js +0 -180
  750. package/dist/validate-YRTGO4UN.js.map +0 -1
  751. package/dist/videos-KGPDOMSN.js +0 -41
  752. package/dist/viewer-check-PRUOWSNM.js +0 -89
  753. package/dist/visuals-L73TEVWN.js +0 -129
  754. package/dist/visuals-L73TEVWN.js.map +0 -1
  755. package/dist/web-IVYO7PY6.js +0 -180
  756. package/dist/web-IVYO7PY6.js.map +0 -1
  757. package/dist/winning-ads-274QKPKB.js +0 -88
  758. package/dist/write-commands-FUXBKDN7.js +0 -1555
  759. package/dist/write-commands-FUXBKDN7.js.map +0 -1
  760. package/dist/x-WVWMOUAQ.js +0 -47
  761. /package/dist/{actions-Q7DDN427.js.map → actions-KWHMTMLD.js.map} +0 -0
  762. /package/dist/{activities-SUUW5KH7.js.map → activities-NWXWO7T2.js.map} +0 -0
  763. /package/dist/{ads-DJHUXK2O.js.map → ads-7Q7PRFJ4.js.map} +0 -0
  764. /package/dist/{adsets-PMEPGGAI.js.map → adsets-CZFTSQQC.js.map} +0 -0
  765. /package/dist/{audiences-Y6UFKHZ5.js.map → audiences-SDFCRXHD.js.map} +0 -0
  766. /package/dist/{avatars-775WMIZF.js.map → avatars-PILXCCPG.js.map} +0 -0
  767. /package/dist/{campaigns-RNPLAVXM.js.map → campaigns-4JY3JKPY.js.map} +0 -0
  768. /package/dist/{campaigns-UEPNMAIN.js.map → campaigns-XS52PZQL.js.map} +0 -0
  769. /package/dist/{canvas-6CWER4CP.js.map → canvas-3AHETASK.js.map} +0 -0
  770. /package/dist/{check-3YGJFXU2.js.map → check-3SVCK3V3.js.map} +0 -0
  771. /package/dist/{chunk-HQISXBEX.js.map → chunk-2CV2LEJN.js.map} +0 -0
  772. /package/dist/{chunk-TDNOPJXB.js.map → chunk-2PNBK7KZ.js.map} +0 -0
  773. /package/dist/{chunk-TWSIY2FS.js.map → chunk-3B7GRVIM.js.map} +0 -0
  774. /package/dist/{chunk-4MIETRE4.js.map → chunk-3MJTL763.js.map} +0 -0
  775. /package/dist/{chunk-4X6QBNIB.js.map → chunk-4GM3TBGL.js.map} +0 -0
  776. /package/dist/{chunk-DSZ3OLQU.js.map → chunk-5UG7AJB5.js.map} +0 -0
  777. /package/dist/{chunk-OBT55DQA.js.map → chunk-AOXHDVWS.js.map} +0 -0
  778. /package/dist/{chunk-CHPHAPPP.js.map → chunk-AYW4VFTH.js.map} +0 -0
  779. /package/dist/{chunk-PMK2WXS5.js.map → chunk-BMUAE5IR.js.map} +0 -0
  780. /package/dist/{chunk-WVXJYBWA.js.map → chunk-BPQY4KIM.js.map} +0 -0
  781. /package/dist/{chunk-MQZHJAH3.js.map → chunk-BYYIJMLP.js.map} +0 -0
  782. /package/dist/{chunk-CSOESLNA.js.map → chunk-CDU64GKK.js.map} +0 -0
  783. /package/dist/{chunk-CG6BJIHU.js.map → chunk-DA634ZIV.js.map} +0 -0
  784. /package/dist/{chunk-NOJC3PUZ.js.map → chunk-DJLTDVRD.js.map} +0 -0
  785. /package/dist/{chunk-52V5324M.js.map → chunk-GHEURTBN.js.map} +0 -0
  786. /package/dist/{chunk-2DGJKIHF.js.map → chunk-H2IG6MOX.js.map} +0 -0
  787. /package/dist/{chunk-ECUN7W2Y.js.map → chunk-HVVE3GT6.js.map} +0 -0
  788. /package/dist/{chunk-CPBXSDXS.js.map → chunk-IAOXI7MJ.js.map} +0 -0
  789. /package/dist/{chunk-EHDZONE6.js.map → chunk-M6RQJCDW.js.map} +0 -0
  790. /package/dist/{chunk-RS4BSY3E.js.map → chunk-N5IR2T2B.js.map} +0 -0
  791. /package/dist/{chunk-YBSRIW5S.js.map → chunk-NZ3PQBRV.js.map} +0 -0
  792. /package/dist/{chunk-5OXVEKML.js.map → chunk-NZFVC7RP.js.map} +0 -0
  793. /package/dist/{chunk-34CJ5QXO.js.map → chunk-QLSNKH5D.js.map} +0 -0
  794. /package/dist/{chunk-JY5OIBMR.js.map → chunk-RN3IVT3B.js.map} +0 -0
  795. /package/dist/{chunk-63XEBJIX.js.map → chunk-RZOHIOPP.js.map} +0 -0
  796. /package/dist/{chunk-KDCPM6W2.js.map → chunk-SELCZP76.js.map} +0 -0
  797. /package/dist/{chunk-CWYONUBS.js.map → chunk-T55DY36I.js.map} +0 -0
  798. /package/dist/{chunk-S2V54TOS.js.map → chunk-T5FACY43.js.map} +0 -0
  799. /package/dist/{chunk-3HAKK5FO.js.map → chunk-TR72BZ4D.js.map} +0 -0
  800. /package/dist/{chunk-PA5OJXQ3.js.map → chunk-UTOVP53O.js.map} +0 -0
  801. /package/dist/{chunk-Y62YTEPM.js.map → chunk-VDHPAQUM.js.map} +0 -0
  802. /package/dist/{chunk-KUNNKG4S.js.map → chunk-VPWLH6VS.js.map} +0 -0
  803. /package/dist/{chunk-J5LG2M5T.js.map → chunk-VXLFFMW6.js.map} +0 -0
  804. /package/dist/{chunk-ZDDJTA3H.js.map → chunk-VZQHMRYM.js.map} +0 -0
  805. /package/dist/{chunk-YXYUHTQM.js.map → chunk-X4NF7IMQ.js.map} +0 -0
  806. /package/dist/{chunk-5WQ3UHJ2.js.map → chunk-X6CSCKXX.js.map} +0 -0
  807. /package/dist/{chunk-NR5EJ6TC.js.map → chunk-Y4XW2LW3.js.map} +0 -0
  808. /package/dist/{chunk-33KRW6HE.js.map → chunk-YAMDF3DT.js.map} +0 -0
  809. /package/dist/{chunk-MQIO7WLM.js.map → chunk-YCCTIFI7.js.map} +0 -0
  810. /package/dist/{chunk-XNTV3QKG.js.map → chunk-YWHOPJG5.js.map} +0 -0
  811. /package/dist/{chunk-QYOLOU5G.js.map → chunk-Z7WMTBGD.js.map} +0 -0
  812. /package/dist/{companies-ITNWR5Q4.js.map → companies-6FM3CALY.js.map} +0 -0
  813. /package/dist/{connect-SD7PFKPI.js.map → connect-J6M3W7WW.js.map} +0 -0
  814. /package/dist/{creatives-3E5BEATB.js.map → creatives-PW2P7VMU.js.map} +0 -0
  815. /package/dist/{creatives-OTKJRMBJ.js.map → creatives-Q3DWV55N.js.map} +0 -0
  816. /package/dist/{customers-V7WKKZI2.js.map → customers-OHB5EY7Z.js.map} +0 -0
  817. /package/dist/{fit-K63JPI3A.js.map → fit-BNMTWIDZ.js.map} +0 -0
  818. /package/dist/{ideas-6LZ6VINW.js.map → ideas-UK74GJGE.js.map} +0 -0
  819. /package/dist/{images-TUQEYLFE.js.map → images-OH7KDUR5.js.map} +0 -0
  820. /package/dist/{ingest-S7I6E2GE.js.map → ingest-2BC3W4WC.js.map} +0 -0
  821. /package/dist/{inspect-AQBNRV5E.js.map → inspect-ZMCRHR2P.js.map} +0 -0
  822. /package/dist/{line-items-KC5PKV2T.js.map → line-items-RUC54PIV.js.map} +0 -0
  823. /package/dist/{media-sources-NI6U2YWV.js.map → media-sources-KUEQ45V5.js.map} +0 -0
  824. /package/dist/{meta-GSTM6EBD.js.map → meta-2ZQ3CWLF.js.map} +0 -0
  825. /package/dist/{performance-OBAWMTVU.js.map → performance-BIH653SL.js.map} +0 -0
  826. /package/dist/{promoted-tweets-3AKHKOI4.js.map → promoted-tweets-6YCNFVJK.js.map} +0 -0
  827. /package/dist/{reddit-TKE3IXST.js.map → reddit-Z4REP3DB.js.map} +0 -0
  828. /package/dist/{research-B5VHPALW.js.map → research-M6YZMTCC.js.map} +0 -0
  829. /package/dist/{run-2RGSNKFH.js.map → run-MBVV64FY.js.map} +0 -0
  830. /package/dist/{scheduled-agents-YHZUPS2I.js.map → scheduled-agents-T7CITLJL.js.map} +0 -0
  831. /package/dist/{schema-NIYT4JHM.js.map → schema-6WONG4NR.js.map} +0 -0
  832. /package/dist/{sources-3KYI7TSD.js.map → sources-3RQZ3AR2.js.map} +0 -0
  833. /package/dist/{sync-definition-73CCAEDP.js.map → sync-definition-MR7XESTS.js.map} +0 -0
  834. /package/dist/{tags-5V3NCHKE.js.map → tags-I3AJEMKF.js.map} +0 -0
  835. /package/dist/{targeting-HIXQGQ7A.js.map → targeting-T2HTV2OD.js.map} +0 -0
  836. /package/dist/{targeting-criteria-FIXPSX2K.js.map → targeting-criteria-QFFAYBGE.js.map} +0 -0
  837. /package/dist/{testimonials-RIL2ARX7.js.map → testimonials-67Q3OTBU.js.map} +0 -0
  838. /package/dist/{videos-KGPDOMSN.js.map → videos-URSOTIHU.js.map} +0 -0
  839. /package/dist/{viewer-check-PRUOWSNM.js.map → viewer-check-N3SEOOMX.js.map} +0 -0
  840. /package/dist/{winning-ads-274QKPKB.js.map → winning-ads-TCRRYKCR.js.map} +0 -0
  841. /package/dist/{x-WVWMOUAQ.js.map → x-K6IWYLK3.js.map} +0 -0
@@ -0,0 +1,520 @@
1
+ import {
2
+ MappingError,
3
+ activeCampaignDestinationFields,
4
+ activeCampaignFieldsResponseSchema,
5
+ activeCampaignMappingHints,
6
+ activeCampaignUnlistedField,
7
+ buildFieldMapping,
8
+ currentMapping,
9
+ describeSlots,
10
+ formValues,
11
+ namesComeFromAccount,
12
+ otherSlots,
13
+ shapeFor
14
+ } from "./chunk-2PNBK7KZ.js";
15
+ import {
16
+ collectConfigStatus,
17
+ collectSideEffects,
18
+ flowDataPath,
19
+ readFlowTree,
20
+ readSettings,
21
+ requestFlowInputCall,
22
+ sealedSideEffects,
23
+ sideEffectNeedsInput,
24
+ writeFlowTree
25
+ } from "./chunk-UTOVP53O.js";
26
+ import {
27
+ repeatedFlagValues
28
+ } from "./chunk-ERSX3MKH.js";
29
+ import "./chunk-ZJY3ACX3.js";
30
+ import "./chunk-RJHGIRU2.js";
31
+ import "./chunk-WCU362Z6.js";
32
+ import "./chunk-AFA4TY5Q.js";
33
+ import "./chunk-GIWHHCD6.js";
34
+ import "./chunk-PNGXJPM5.js";
35
+ import "./chunk-SOPVIIUW.js";
36
+ import "./chunk-G4FG5EQO.js";
37
+ import "./chunk-CS4VA3GQ.js";
38
+ import "./chunk-433NCHRS.js";
39
+ import {
40
+ apiPost
41
+ } from "./chunk-SZCEKDLE.js";
42
+ import "./chunk-2UFHCU7A.js";
43
+ import {
44
+ optionalConnection
45
+ } from "./chunk-XQIAWIO5.js";
46
+ import {
47
+ registerSchema,
48
+ writeJson
49
+ } from "./chunk-2TEZDAAR.js";
50
+ import "./chunk-YQSBHWOI.js";
51
+
52
+ // src/commands/flows/map.ts
53
+ import { readFileSync } from "fs";
54
+ import { defineCommand } from "citty";
55
+ registerSchema({
56
+ command: "flows.map",
57
+ description: "Map form fields onto any named value a side effect sends: a CRM fieldMapping, a sheet columnMapping, a webhook payloadKeys, a pixel eventParams, or a platform matching block. Emits the mapping and splices it in with --write. Configure the destination through request_flow_input FIRST \u2014 the destination-side names come from the connected account, not from you.",
58
+ args: {
59
+ slug: { type: "positional", description: "Form slug (folder under flows/)", required: true },
60
+ map: {
61
+ type: "string",
62
+ description: '<destField>[:<fieldType>]=<value>, repeatable. Omit both this and --from to read what the side effect maps now (`current`), what it accepts (`mappable`), every value this Form can supply (`values`: fields by step, code values, globals with where each is read from, tracking variables) and, on a HubSpot form it can read, `destinationFields` with `mapped: false` for each field not mapped yet. Sheet: A=name. HubSpot: firstname=nombre (the type is read off the form the side effect is connected to, or the one --hubspot-form names). ActiveCampaign: email=email, SECTOR=sector (custom field by id, personalization tag or label; custom.UTM_SOURCE for one only staged so far), tags="withbaker-"+tracking:page_path, lists="Newsletter", automations="Welcome", deal.title=\u2026/deal.pipeline="Sales"/deal.value=budget, account.name=company, note=\u2026, event.name="demo_requested" \u2014 every type is read off the connected account. Where a destination cannot be read, state the type on the LEFT \u2014 c0ffee:varchar=email \u2014 because `:` on the right belongs to the value grammar. A JSON body (webhook, Zapier, JSON email) is the one slot you name yourself: a dot NESTS (hidden.utm_source=\u2026 arrives as "hidden": { "utm_source": \u2026 }), every value is sent as text, and :boolean / :number on the left (gdprTos:boolean=consent) sends a JSON scalar for an endpoint that validates types.',
63
+ required: false
64
+ },
65
+ from: {
66
+ type: "string",
67
+ description: 'The whole mapping as a JSON file, or `-` for stdin: { "sideEffect": "\u2026", "map": { "<destField>": "<value>", \u2026 } }. Past ~3 fields prefer this over repeated --map.',
68
+ required: false
69
+ },
70
+ "side-effect": { type: "string", description: "Side-effect id, when the form has more than one", required: false },
71
+ "hubspot-form": {
72
+ type: "string",
73
+ description: "HubSpot formGuid of the configured destination. Fills every mapping's fieldType and objectTypeId from the form itself, so you write no types at all. The guid is the `formGuid` in the `destination` request_flow_input returned.",
74
+ required: false
75
+ },
76
+ into: {
77
+ type: "string",
78
+ description: "Slot to map into when the type has more than one: meta/tiktok/pinterest take eventParams (default) or their matching record; googleAds takes enhancedConversions or value/currency/transactionId.",
79
+ required: false
80
+ },
81
+ entity: {
82
+ type: "string",
83
+ description: "Destination object (pipedrive: person|organization|lead, \u2026)",
84
+ required: false
85
+ },
86
+ custom: { type: "boolean", description: "The destination fields are custom fields", required: false },
87
+ standard: { type: "boolean", description: "The destination fields are standard fields", required: false },
88
+ "object-type": { type: "string", description: "HubSpot objectTypeId (default 0-1, contact)", required: false },
89
+ "prune-missing": {
90
+ type: "boolean",
91
+ description: "Drop the mappings whose destination field no longer exists on the account, and nothing else. The repair for a deleted HubSpot property: HubSpot refuses the WHOLE submission when it names a field it does not have, so one dead mapping loses every lead. Reads the live field list off the connected HubSpot form (or the one --hubspot-form names). Runs on its own \u2014 no --map required. Prefer this to --replace, which drops everything this call does not name.",
92
+ required: false
93
+ },
94
+ replace: {
95
+ type: "boolean",
96
+ description: "Make the slot exactly what this call passes, dropping every mapping already in it. Without it, mappings MERGE by destination name \u2014 re-mapping a name overwrites it, a new name is appended, and the rest are left alone. To REMOVE a dead mapping, reach for --prune-missing instead: this one also deletes every mapping you did not re-state.",
97
+ required: false
98
+ },
99
+ write: {
100
+ type: "boolean",
101
+ description: "Splice the mapping into the form. Without it, prints and changes nothing",
102
+ required: false
103
+ }
104
+ }
105
+ });
106
+ function mapSpecsFrom(rawArgs) {
107
+ return repeatedFlagValues(rawArgs, "map");
108
+ }
109
+ function specsFromFile(parsed) {
110
+ return Object.entries(parsed.map ?? {}).map(([destField, entry]) => {
111
+ if (typeof entry === "string") return `${destField}=${entry}`;
112
+ const type = entry?.type ? `:${entry.type}` : "";
113
+ return `${destField}${type}=${entry?.value ?? ""}`;
114
+ });
115
+ }
116
+ function readSpecFile(path) {
117
+ let raw;
118
+ try {
119
+ raw = path === "-" ? readFileSync(0, "utf-8") : readFileSync(path, "utf-8");
120
+ } catch (error) {
121
+ refuse(
122
+ `Could not read ${path === "-" ? "the mapping from stdin" : `"${path}"`}: ${error instanceof Error ? error.message : String(error)}`
123
+ );
124
+ }
125
+ let parsed;
126
+ try {
127
+ parsed = JSON.parse(raw);
128
+ } catch (error) {
129
+ refuse(
130
+ `${path === "-" ? "stdin" : `"${path}"`} is not valid JSON: ${error instanceof Error ? error.message : String(error)}`,
131
+ 'Expected { "map": { "<destField>": "<value>", \u2026 } }'
132
+ );
133
+ }
134
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
135
+ refuse("A mapping file must be a JSON object.", 'Expected { "map": { "<destField>": "<value>", \u2026 } }');
136
+ }
137
+ const spec = parsed;
138
+ if (!spec.map || typeof spec.map !== "object" || Object.keys(spec.map).length === 0) {
139
+ refuse("A mapping file needs a non-empty `map` object.", 'Expected { "map": { "firstname": "nombre", \u2026 } }');
140
+ }
141
+ return spec;
142
+ }
143
+ function refuse(message, fix) {
144
+ writeJson({ ok: false, error: { code: "VALIDATION_ERROR", message, ...fix ? { fix } : {} } });
145
+ process.exit(1);
146
+ }
147
+ async function hubspotFieldCatalog(formId, { named }) {
148
+ let response;
149
+ try {
150
+ response = await apiPost("/api/hubspot/forms/view", { formId });
151
+ } catch (error) {
152
+ if (!named) return void 0;
153
+ refuse(
154
+ `Could not read HubSpot form "${formId}": ${error instanceof Error ? error.message : String(error)}`,
155
+ "Check the guid against the `destination` request_flow_input returned, or `baker hubspot forms list`. Drop --hubspot-form and write `<field>:<fieldType>=<value>` per mapping only if HubSpot is unreachable."
156
+ );
157
+ }
158
+ const fields = response.data.form?.fields ?? [];
159
+ if (fields.length === 0) {
160
+ refuse(
161
+ `HubSpot form "${formId}" reports no fields, so nothing can be mapped against it.`,
162
+ "Confirm the guid names the form this side effect submits to: baker hubspot forms list"
163
+ );
164
+ }
165
+ return {
166
+ fields: new Map(
167
+ fields.map((field) => [
168
+ field.name,
169
+ { fieldType: field.fieldType, ...field.objectTypeId ? { objectTypeId: field.objectTypeId } : {} }
170
+ ])
171
+ ),
172
+ // Read while the form is already open, because this is the moment a
173
+ // delivery is being wired: HubSpot refuses every submission sent to a form
174
+ // with spam prevention on, so a mapping written against one is correct and
175
+ // will still never arrive. Reported, not refused — the mapping is not the
176
+ // mistake, and the client can switch it off without the work being redone.
177
+ captchaEnabled: response.data.form?.captchaEnabled === true
178
+ };
179
+ }
180
+ async function connectedHubspotForm(tree, sideEffect) {
181
+ if (sealedSideEffects(tree).every((sealed) => sealed.sideEffectId !== String(sideEffect.id))) return {};
182
+ if (!optionalConnection()) return { unread: CONNECTED_FORM_UNREAD };
183
+ const settings = await readSettings(tree);
184
+ if (settings === null) return { unread: CONNECTED_FORM_UNREAD };
185
+ const formGuid = settings[String(sideEffect.id)]?.formGuid;
186
+ return typeof formGuid === "string" && formGuid.length > 0 ? { formGuid } : {};
187
+ }
188
+ var CONNECTED_FORM_UNREAD = "This side effect is already connected to a HubSpot form, but that form could not be read just now, so no field type could be read off it.";
189
+ async function activeCampaignFieldCatalog(sideEffect) {
190
+ const account = typeof sideEffect.oauthProviderId === "string" ? sideEffect.oauthProviderId : void 0;
191
+ const body = account ? { account } : {};
192
+ let response;
193
+ try {
194
+ response = activeCampaignFieldsResponseSchema.parse(
195
+ await apiPost("/api/activecampaign/fields", body)
196
+ );
197
+ } catch (error) {
198
+ refuse(
199
+ `Could not read the ActiveCampaign account's fields: ${error instanceof Error ? error.message : String(error)}`,
200
+ 'If ActiveCampaign is not connected (or its key stopped working), call request_connection with { platform: "activecampaign" } \u2014 the user pastes the API URL and key into that card, never into the chat \u2014 then run this again.'
201
+ );
202
+ }
203
+ const { account: _account, ...catalog } = response.data;
204
+ return { fields: new Map(activeCampaignDestinationFields(catalog.fields)), catalog };
205
+ }
206
+ function probeHeadline(type, current) {
207
+ if (current.length === 0) {
208
+ return `Nothing mapped yet on this ${type} side effect \u2014 below is what it accepts. Add --map <key>=<value> to build one.`;
209
+ }
210
+ return `No --map given, so nothing changed. Mapped now: ${current.join("; ")}. Below is what a ${type} side effect accepts; --map <key>=<value> adds or overwrites one.`;
211
+ }
212
+ function describeDestination(tree, chosen, destination) {
213
+ const type = String(chosen.sideEffect.type ?? "");
214
+ const slots = describeSlots(type);
215
+ if (slots.length === 0) {
216
+ refuse(
217
+ `A ${type} side effect has no mappable field.`,
218
+ `Nothing on it addresses named values. \`baker flows schema side-effect ${type}\` shows what it does take.`
219
+ );
220
+ }
221
+ const current = currentMapping(chosen.sideEffect);
222
+ writeJson({
223
+ ok: true,
224
+ data: {
225
+ sideEffectId: chosen.sideEffect.id,
226
+ type,
227
+ current,
228
+ mappable: slots,
229
+ values: formValues(tree),
230
+ ...destination.hubspot ? { destinationFields: hubspotFieldsMapped(destination.hubspot.fields, chosen.sideEffect) } : {}
231
+ },
232
+ hints: [
233
+ probeHeadline(type, current),
234
+ ...destination.destinationUnread ? [destination.destinationUnread] : [],
235
+ ...slots.map(
236
+ (slot) => slot.keys ? `${slot.slot}: ${slot.keys.join(", ")}` : `${slot.slot}: ${slot.keysFrom !== "account" ? "keys are yours to choose \u2014 whatever the receiving system expects" : destination.hubspot ? "keys are the connected form's fields \u2014 destinationFields lists them, mapped: false for each not mapped yet" : "keys come from the connected account (request_flow_input returns them)"}`
237
+ ),
238
+ // Named separately from the key hint above: the key and its field type are
239
+ // two different questions with two different answers, and the type is the
240
+ // one an agent does not know it is being asked until a mapping is refused.
241
+ ...slots.flatMap((slot) => slot.fieldTypes ? [`${slot.slot} field types \u2014 ${slot.fieldTypes}`] : []),
242
+ 'Values (right of the `=`) are the same for every slot: a form field, tracking:<var>, global:<name>, code:<name>, a "literal", or those joined with +. `values` lists every field, code value, global (and where it is read from) and tracking variable this Form has. A field may also be written as the file stores it, {{<stepId>.customForm.<field>}}. A value cannot run code (no .split(), .slice(), [0]).'
243
+ ]
244
+ });
245
+ }
246
+ function hubspotFieldsMapped(fields, sideEffect) {
247
+ const entries = Array.isArray(sideEffect.fieldMapping) ? sideEffect.fieldMapping : [];
248
+ const mapped = new Set(entries.filter((entry) => entry?.value != null).map((entry) => entry.fieldName));
249
+ return [...fields].map(([name, field]) => ({ name, fieldType: field.fieldType, mapped: mapped.has(name) }));
250
+ }
251
+ function shapeOrRefuse(type, into) {
252
+ try {
253
+ return shapeFor(type, into);
254
+ } catch (error) {
255
+ if (error instanceof MappingError) refuse(error.message, error.fix);
256
+ throw error;
257
+ }
258
+ }
259
+ function assertDestinationReady(slug, tree, chosen, into) {
260
+ if (!sideEffectNeedsInput(chosen.sideEffect)) return;
261
+ const type = String(chosen.sideEffect.type ?? "");
262
+ const status = collectConfigStatusFor(tree, slug, String(chosen.sideEffect.id ?? ""));
263
+ const call = status ? requestFlowInputCall(slug, status) : `request_flow_input for the ${type} side effect`;
264
+ if (!namesComeFromAccount(shapeOrRefuse(type, into))) return;
265
+ refuse(
266
+ `The ${type} destination is not configured yet, so its field names cannot be anything but a guess.`,
267
+ `Configure it first, then map against the names that call returns: ${call}`
268
+ );
269
+ }
270
+ function collectConfigStatusFor(tree, _slug, sideEffectId) {
271
+ const rows = [];
272
+ collectConfigStatus(tree, rows);
273
+ return rows.find((row) => row.sideEffectId === sideEffectId);
274
+ }
275
+ function slotHintFor(type, into) {
276
+ const others = otherSlots(type, shapeFor(type, into));
277
+ if (others.length === 0) return [];
278
+ return [`This side effect also takes ${others.join(" and ")} \u2014 pass --into <slot> to map into one of those instead.`];
279
+ }
280
+ function survivorHint(built, replacing) {
281
+ if (built.kept > 0) {
282
+ return [`${built.kept} mapping${built.kept === 1 ? "" : "s"} already in ${built.key} kept \u2014 this merged by name.`];
283
+ }
284
+ if (!replacing) return [];
285
+ return [`--replace: ${built.key} is now exactly these ${built.count}; anything else it held is gone.`];
286
+ }
287
+ function droppedHint(built) {
288
+ if (built.dropped.length === 0) return [];
289
+ return [
290
+ `--prune-missing dropped ${built.dropped.length} mapping${built.dropped.length === 1 ? "" : "s"} the destination no longer has: ${built.dropped.join(", ")}. Every other mapping in ${built.key} was left alone.`
291
+ ];
292
+ }
293
+ function pendingEndpointHint(slug, tree, chosen) {
294
+ if (!sideEffectNeedsInput(chosen.sideEffect)) return [];
295
+ const status = collectConfigStatusFor(tree, slug, String(chosen.sideEffect.id ?? ""));
296
+ if (!status) return [];
297
+ return [`The mapping is written, but this destination still needs the user: ${requestFlowInputCall(slug, status)}`];
298
+ }
299
+ function pickSideEffect(slug, found, named) {
300
+ if (found.length === 0) {
301
+ refuse(
302
+ `"${slug}" has no side effects \u2014 author the side effect first, then map into it.`,
303
+ `baker flows add-side-effect ${slug} --node <nodeId> --type <type>`
304
+ );
305
+ }
306
+ const chosen = named ? found.find((entry) => entry.sideEffect.id === named) : found.length === 1 ? found[0] : void 0;
307
+ if (chosen) return chosen;
308
+ const inventory = found.map((entry) => `${entry.sideEffect.id} (${entry.sideEffect.type})`).join(", ");
309
+ refuse(
310
+ named ? `No side effect with id "${named}" in "${slug}".` : `"${slug}" has ${found.length} side effects \u2014 name one with --side-effect <id>.`,
311
+ `Side effects in this form: ${inventory}`
312
+ );
313
+ }
314
+ function customFlag(custom, standard) {
315
+ if (custom === true && standard === true) {
316
+ refuse("--custom and --standard contradict each other. Pass one.");
317
+ }
318
+ if (custom === true) return true;
319
+ if (standard === true) return false;
320
+ return void 0;
321
+ }
322
+ async function hubspotDestination(namedForm, tree, sideEffect) {
323
+ if (namedForm !== void 0) return { hubspot: await hubspotFieldCatalog(namedForm, { named: true }) };
324
+ if (sideEffect.type !== "hubspotForm") return {};
325
+ const connected = await connectedHubspotForm(tree, sideEffect);
326
+ if (!connected.formGuid) return { destinationUnread: connected.unread };
327
+ const hubspot = await hubspotFieldCatalog(connected.formGuid, { named: false });
328
+ return hubspot ? { hubspot } : { destinationUnread: CONNECTED_FORM_UNREAD };
329
+ }
330
+ function namedHubspotForm(args, fromFile) {
331
+ return args["hubspot-form"] ? String(args["hubspot-form"]) : fromFile?.hubspotForm;
332
+ }
333
+ async function mapOptions(args, fromFile, into, tree, sideEffect) {
334
+ const { hubspot, destinationUnread } = await hubspotDestination(namedHubspotForm(args, fromFile), tree, sideEffect);
335
+ const activeCampaign = !hubspot && sideEffect.type === "activeCampaignContact" ? await activeCampaignFieldCatalog(sideEffect) : void 0;
336
+ return {
337
+ options: {
338
+ into,
339
+ entity: args.entity ? String(args.entity) : fromFile?.entity,
340
+ isCustomField: customFlag(args.custom, args.standard) ?? fromFile?.custom,
341
+ objectType: args["object-type"] ? String(args["object-type"]) : fromFile?.objectType,
342
+ replace: args.replace === true || fromFile?.replace === true,
343
+ pruneMissing: args["prune-missing"] === true || fromFile?.pruneMissing === true,
344
+ destinationFields: hubspot?.fields ?? activeCampaign?.fields,
345
+ unlistedField: activeCampaign ? activeCampaignUnlistedField : void 0,
346
+ destinationUnread
347
+ },
348
+ hints: [
349
+ ...hubspot?.captchaEnabled ? [
350
+ "WARNING: this HubSpot form has spam prevention (captcha) on. HubSpot refuses every submission sent to a form with it on, so nothing mapped here will arrive \u2014 the mapping is fine, the destination is not. Only the user can switch it off, on the form in HubSpot. Tell them that, and do not swap the destination yourself."
351
+ ] : [],
352
+ ...destinationUnread ? [
353
+ `${destinationUnread} The types written on the left were kept as given and not checked against the form; re-run once it can be read to check them.`
354
+ ] : []
355
+ ],
356
+ activeCampaign: activeCampaign?.catalog
357
+ };
358
+ }
359
+ var mapCommand = defineCommand({
360
+ meta: {
361
+ name: "map",
362
+ description: "Map form fields onto any value a side effect sends \u2014 never hand-write a mapping. Without --map it lists every value the Form can supply (`values`) and, on HubSpot, which form fields are not mapped yet (`destinationFields`). Start here: baker flows map contact --from map.json --write"
363
+ },
364
+ args: {
365
+ slug: { type: "positional", description: "Form slug", required: true },
366
+ map: {
367
+ type: "string",
368
+ description: "<destField>[:<fieldType>]=<value> (repeatable). Omit it to read `current`, `values` and, on HubSpot, `destinationFields`"
369
+ },
370
+ from: { type: "string", description: "Read the whole mapping from a JSON file, or `-` for stdin" },
371
+ "side-effect": { type: "string", description: "Side-effect id, when the form has more than one" },
372
+ "hubspot-form": {
373
+ type: "string",
374
+ description: "HubSpot formGuid \u2014 only to override the form the side effect is connected to; its field types are read either way"
375
+ },
376
+ into: {
377
+ type: "string",
378
+ description: "Which slot to map into, for a type with more than one (e.g. meta: eventParams | advancedMatching)"
379
+ },
380
+ entity: { type: "string", description: "Destination object (person, contact, lead, \u2026)" },
381
+ custom: { type: "boolean", description: "Destination fields are custom fields" },
382
+ standard: { type: "boolean", description: "Destination fields are standard fields" },
383
+ "object-type": { type: "string", description: "HubSpot objectTypeId (default 0-1)" },
384
+ "prune-missing": {
385
+ type: "boolean",
386
+ description: "Drop only the mappings the destination no longer has \u2014 the repair for a deleted HubSpot field"
387
+ },
388
+ replace: {
389
+ type: "boolean",
390
+ description: "Drop every mapping already in the slot. Default merges by destination name"
391
+ },
392
+ write: { type: "boolean", description: "Splice the mapping into the form" }
393
+ },
394
+ run: async ({ args, rawArgs }) => {
395
+ const slug = String(args.slug);
396
+ const fromFile = args.from ? readSpecFile(String(args.from)) : void 0;
397
+ const specs = fromFile ? specsFromFile(fromFile) : mapSpecsFrom(rawArgs);
398
+ const into = args.into ? String(args.into) : fromFile?.into;
399
+ const replacing = args.replace === true || fromFile?.replace === true;
400
+ const pruning = args["prune-missing"] === true || fromFile?.pruneMissing === true;
401
+ const tree = readFlowTree(slug);
402
+ const chosen = pickSideEffect(
403
+ slug,
404
+ collectSideEffects(tree),
405
+ args["side-effect"] ? String(args["side-effect"]) : fromFile?.sideEffect
406
+ );
407
+ if (specs.length === 0 && !pruning) {
408
+ describeDestination(
409
+ tree,
410
+ chosen,
411
+ await hubspotDestination(namedHubspotForm(args, fromFile), tree, chosen.sideEffect)
412
+ );
413
+ return;
414
+ }
415
+ assertDestinationReady(slug, tree, chosen, into);
416
+ const {
417
+ options,
418
+ hints: destinationHints,
419
+ activeCampaign
420
+ } = await mapOptions(args, fromFile, into, tree, chosen.sideEffect);
421
+ let built;
422
+ try {
423
+ built = buildFieldMapping(tree, chosen.sideEffect, specs, options);
424
+ } catch (error) {
425
+ if (error instanceof MappingError) {
426
+ refuse(error.message, error.fix);
427
+ }
428
+ throw error;
429
+ }
430
+ const sideEffectType = String(chosen.sideEffect.type ?? "");
431
+ const slotHint = [
432
+ ...destinationHints,
433
+ ...activeCampaign && Array.isArray(built.patch.fieldMapping) ? activeCampaignMappingHints(built.patch.fieldMapping, activeCampaign) : [],
434
+ ...droppedHint(built),
435
+ ...survivorHint(built, replacing),
436
+ ...slotHintFor(sideEffectType, into),
437
+ ...jsonBodyHint(shapeFor(sideEffectType, into), built),
438
+ ...pendingEndpointHint(slug, tree, chosen)
439
+ ];
440
+ if (args.write !== true) {
441
+ emitDryRun(slug, chosen, built, slotHint);
442
+ return;
443
+ }
444
+ Object.assign(chosen.sideEffect, built.patch);
445
+ writeFlowTree(slug, tree);
446
+ emitWritten(slug, chosen, built, slotHint);
447
+ }
448
+ });
449
+ function mapHeadline(built, phase, slug = "") {
450
+ const wrote = `${built.count} ${built.key} mapping${built.count === 1 ? "" : "s"}`;
451
+ const drops = `${built.dropped.length} dead mapping${built.dropped.length === 1 ? "" : "s"}`;
452
+ if (phase === "dry-run") {
453
+ if (built.count === 0 && built.dropped.length > 0) {
454
+ return `Nothing written. Re-run with --write to drop ${drops} from ${slug}.`;
455
+ }
456
+ return `Nothing written. Re-run with --write to splice ${wrote} into ${slug}.`;
457
+ }
458
+ if (built.dropped.length === 0) return `Wrote ${wrote}.`;
459
+ if (built.count === 0) return `Dropped ${drops} from ${built.key}; nothing else changed.`;
460
+ return `Wrote ${wrote} and dropped ${drops}.`;
461
+ }
462
+ function jsonBodyHint(shape, built) {
463
+ if (shape.kind !== "list" || shape.jsonBody !== true) return [];
464
+ const entries = built.patch[built.key] ?? built.patch.body?.[built.key];
465
+ if (!Array.isArray(entries)) return [];
466
+ const nested = entries.flatMap(
467
+ (entry) => typeof entry.key === "string" && entry.key.includes(".") ? [entry.key] : []
468
+ );
469
+ const typed = entries.flatMap(
470
+ (entry) => typeof entry.key === "string" && typeof entry.jsonType === "string" ? [`${entry.key} as ${entry.jsonType}`] : []
471
+ );
472
+ if (entries.length === 0) return [];
473
+ const groups = [...new Set(nested.map((key) => key.slice(0, key.indexOf("."))))];
474
+ return [
475
+ [
476
+ nested.length > 0 ? `${nested.length} key${nested.length === 1 ? "" : "s"} nest on the way out \u2014 the endpoint receives ${groups.map((group) => `"${group}": { \u2026 }`).join(", ")}, not the dotted names.` : "",
477
+ typed.length > 0 ? `Sent as a JSON scalar rather than text: ${typed.join(", ")}.` : "Every value is sent as text \u2014 add `:boolean` or `:number` on the left for an endpoint that validates types."
478
+ ].filter(Boolean).join(" ")
479
+ ];
480
+ }
481
+ function emitDryRun(slug, chosen, built, slotHint) {
482
+ writeJson({
483
+ ok: true,
484
+ data: {
485
+ sideEffectId: chosen.sideEffect.id,
486
+ type: chosen.sideEffect.type,
487
+ key: built.key,
488
+ patch: built.patch
489
+ },
490
+ hints: [mapHeadline(built, "dry-run", slug), ...slotHint]
491
+ });
492
+ }
493
+ function emitWritten(slug, chosen, built, slotHint) {
494
+ writeJson({
495
+ ok: true,
496
+ data: {
497
+ sideEffectId: chosen.sideEffect.id,
498
+ type: chosen.sideEffect.type,
499
+ key: built.key,
500
+ written: built.count,
501
+ kept: built.kept,
502
+ dropped: built.dropped,
503
+ path: flowDataPath(slug)
504
+ },
505
+ hints: [
506
+ mapHeadline(built, "written"),
507
+ `A mapping is only real once the destination is set \u2014 check with: baker flows show ${slug}`,
508
+ ...slotHint
509
+ ]
510
+ });
511
+ }
512
+ export {
513
+ jsonBodyHint,
514
+ mapCommand,
515
+ mapHeadline,
516
+ mapSpecsFrom,
517
+ probeHeadline,
518
+ specsFromFile
519
+ };
520
+ //# sourceMappingURL=map-2SS3BULX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/flows/map.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\nimport type { HubspotFormsViewResponse } from \"@baker/api\";\nimport {\n type ActiveCampaignCatalog,\n type ActiveCampaignFieldsRequest,\n type ActiveCampaignFieldsResponse,\n activeCampaignFieldsResponseSchema,\n} from \"@baker/api/activecampaign\";\nimport { defineCommand } from \"citty\";\nimport { apiPost } from \"../../client.ts\";\nimport { optionalConnection } from \"../../env.ts\";\nimport { repeatedFlagValues } from \"../../lib/repeatedFlags.ts\";\nimport { writeJson } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport {\n activeCampaignDestinationFields,\n activeCampaignMappingHints,\n activeCampaignUnlistedField,\n type BuiltMapping,\n buildFieldMapping,\n currentMapping,\n type DestinationField,\n describeSlots,\n type MapOptions,\n MappingError,\n type MappingShape,\n namesComeFromAccount,\n otherSlots,\n shapeFor,\n} from \"./mapping.ts\";\nimport {\n collectConfigStatus,\n collectSideEffects,\n flowDataPath,\n readFlowTree,\n readSettings,\n requestFlowInputCall,\n sealedSideEffects,\n sideEffectNeedsInput,\n writeFlowTree,\n} from \"./shared.ts\";\nimport { formValues } from \"./value-expression.ts\";\n\nregisterSchema({\n command: \"flows.map\",\n description:\n \"Map form fields onto any named value a side effect sends: a CRM fieldMapping, a sheet columnMapping, a webhook payloadKeys, a pixel eventParams, or a platform matching block. Emits the mapping and splices it in with --write. Configure the destination through request_flow_input FIRST — the destination-side names come from the connected account, not from you.\",\n args: {\n slug: { type: \"positional\", description: \"Form slug (folder under flows/)\", required: true },\n map: {\n type: \"string\",\n description:\n '<destField>[:<fieldType>]=<value>, repeatable. Omit both this and --from to read what the side effect maps now (`current`), what it accepts (`mappable`), every value this Form can supply (`values`: fields by step, code values, globals with where each is read from, tracking variables) and, on a HubSpot form it can read, `destinationFields` with `mapped: false` for each field not mapped yet. Sheet: A=name. HubSpot: firstname=nombre (the type is read off the form the side effect is connected to, or the one --hubspot-form names). ActiveCampaign: email=email, SECTOR=sector (custom field by id, personalization tag or label; custom.UTM_SOURCE for one only staged so far), tags=\"withbaker-\"+tracking:page_path, lists=\"Newsletter\", automations=\"Welcome\", deal.title=…/deal.pipeline=\"Sales\"/deal.value=budget, account.name=company, note=…, event.name=\"demo_requested\" — every type is read off the connected account. Where a destination cannot be read, state the type on the LEFT — c0ffee:varchar=email — because `:` on the right belongs to the value grammar. A JSON body (webhook, Zapier, JSON email) is the one slot you name yourself: a dot NESTS (hidden.utm_source=… arrives as \"hidden\": { \"utm_source\": … }), every value is sent as text, and :boolean / :number on the left (gdprTos:boolean=consent) sends a JSON scalar for an endpoint that validates types.',\n required: false,\n },\n from: {\n type: \"string\",\n description:\n 'The whole mapping as a JSON file, or `-` for stdin: { \"sideEffect\": \"…\", \"map\": { \"<destField>\": \"<value>\", … } }. Past ~3 fields prefer this over repeated --map.',\n required: false,\n },\n \"side-effect\": { type: \"string\", description: \"Side-effect id, when the form has more than one\", required: false },\n \"hubspot-form\": {\n type: \"string\",\n description:\n \"HubSpot formGuid of the configured destination. Fills every mapping's fieldType and objectTypeId from the form itself, so you write no types at all. The guid is the `formGuid` in the `destination` request_flow_input returned.\",\n required: false,\n },\n into: {\n type: \"string\",\n description:\n \"Slot to map into when the type has more than one: meta/tiktok/pinterest take eventParams (default) or their matching record; googleAds takes enhancedConversions or value/currency/transactionId.\",\n required: false,\n },\n entity: {\n type: \"string\",\n description: \"Destination object (pipedrive: person|organization|lead, …)\",\n required: false,\n },\n custom: { type: \"boolean\", description: \"The destination fields are custom fields\", required: false },\n standard: { type: \"boolean\", description: \"The destination fields are standard fields\", required: false },\n \"object-type\": { type: \"string\", description: \"HubSpot objectTypeId (default 0-1, contact)\", required: false },\n \"prune-missing\": {\n type: \"boolean\",\n description:\n \"Drop the mappings whose destination field no longer exists on the account, and nothing else. The repair for a deleted HubSpot property: HubSpot refuses the WHOLE submission when it names a field it does not have, so one dead mapping loses every lead. Reads the live field list off the connected HubSpot form (or the one --hubspot-form names). Runs on its own — no --map required. Prefer this to --replace, which drops everything this call does not name.\",\n required: false,\n },\n replace: {\n type: \"boolean\",\n description:\n \"Make the slot exactly what this call passes, dropping every mapping already in it. Without it, mappings MERGE by destination name — re-mapping a name overwrites it, a new name is appended, and the rest are left alone. To REMOVE a dead mapping, reach for --prune-missing instead: this one also deletes every mapping you did not re-state.\",\n required: false,\n },\n write: {\n type: \"boolean\",\n description: \"Splice the mapping into the form. Without it, prints and changes nothing\",\n required: false,\n },\n },\n});\n\n/**\n * Every `--map` on the command line.\n *\n * Read from `rawArgs`, not `args.map`: citty collapses a repeated flag to its\n * LAST value, so `--map A=name --map B=email` arrives as the single string\n * `\"B=email\"`. Taken from `args`, this command would map one field, report\n * success, and leave the other silently unmapped — which is the exact\n * failure mode it exists to prevent, one level up.\n */\nexport function mapSpecsFrom(rawArgs: readonly string[]): string[] {\n return repeatedFlagValues(rawArgs, \"map\");\n}\n\n/**\n * A whole mapping in one file, which is what a real one looks like.\n *\n * A CRM mapping is eight to fifteen fields. As repeated `--map` flags that is a\n * fifteen-flag command line whose shell quoting is its own hazard — an\n * improvement on hand-writing 230 lines of ProseMirror, but not much of one.\n * The JSON form is what the agent is actually holding in its head, and it is one\n * Write plus one command however many fields there are.\n *\n * {\n * \"sideEffect\": \"se-hubspotForm-1\",\n * \"hubspotForm\": \"8b1f…\",\n * \"map\": {\n * \"email\": \"email\",\n * \"firstname\": \"nombre\",\n * \"hs_lead_source\": \"tracking:utm_source\",\n * \"full_name\": \"nombre + \\\" \\\" + apellido\"\n * }\n * }\n *\n * `\"firstname\": { \"type\": \"…\", \"value\": \"…\" }` is still accepted for a\n * destination this command cannot read, but naming the destination once\n * (`hubspotForm` here, `--hubspot-form` on the command line) is strictly better:\n * the types then come from the account instead of from memory.\n */\ntype MapSpecFile = {\n sideEffect?: string;\n into?: string;\n entity?: string;\n custom?: boolean;\n objectType?: string;\n /**\n * Treat this file as the WHOLE mapping: anything in the slot it does not name\n * is dropped. Off by default so a file that lists three fields cannot delete\n * the five that were mapped before it.\n */\n replace?: boolean;\n /** Drop the mappings the destination no longer has. See `MapOptions.pruneMissing`. */\n pruneMissing?: boolean;\n /** HubSpot formGuid of the configured destination, so its field types can be read. */\n hubspotForm?: string;\n map?: Record<string, string | { type?: string; value?: string }>;\n};\n\n/** Flatten the JSON form into the same `<dest>[:<type>]=<value>` specs the flags produce. */\nexport function specsFromFile(parsed: MapSpecFile): string[] {\n return Object.entries(parsed.map ?? {}).map(([destField, entry]) => {\n if (typeof entry === \"string\") return `${destField}=${entry}`;\n const type = entry?.type ? `:${entry.type}` : \"\";\n return `${destField}${type}=${entry?.value ?? \"\"}`;\n });\n}\n\nfunction readSpecFile(path: string): MapSpecFile {\n let raw: string;\n try {\n raw = path === \"-\" ? readFileSync(0, \"utf-8\") : readFileSync(path, \"utf-8\");\n } catch (error) {\n refuse(\n `Could not read ${path === \"-\" ? \"the mapping from stdin\" : `\"${path}\"`}: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n let parsed: unknown;\n try {\n parsed = JSON.parse(raw);\n } catch (error) {\n refuse(\n `${path === \"-\" ? \"stdin\" : `\"${path}\"`} is not valid JSON: ${error instanceof Error ? error.message : String(error)}`,\n 'Expected { \"map\": { \"<destField>\": \"<value>\", … } }',\n );\n }\n if (!parsed || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n refuse(\"A mapping file must be a JSON object.\", 'Expected { \"map\": { \"<destField>\": \"<value>\", … } }');\n }\n const spec = parsed as MapSpecFile;\n if (!spec.map || typeof spec.map !== \"object\" || Object.keys(spec.map).length === 0) {\n refuse(\"A mapping file needs a non-empty `map` object.\", 'Expected { \"map\": { \"firstname\": \"nombre\", … } }');\n }\n return spec;\n}\n\n/** Refuse with the same envelope shape everywhere, so the agent parses one thing. */\nfunction refuse(message: string, fix?: string): never {\n writeJson({ ok: false, error: { code: \"VALIDATION_ERROR\", message, ...(fix ? { fix } : {}) } });\n process.exit(1);\n}\n\n/**\n * The destination's own field catalog, read off the connected account.\n *\n * This is the whole reason a HubSpot mapping no longer needs a type per field.\n * `fieldType` and `objectTypeId` are HubSpot's answers about its own properties,\n * not the agent's — the engine concatenates them into\n * `<objectTypeId>.<fieldType>.<fieldName>`, which is byte-for-byte the key the\n * dashboard's picker writes. Asking the agent to remember them is both more work\n * and less accurate than asking HubSpot, and a plausible-but-wrong one is the\n * silent kind: on a date property the engine skips the YYYY-MM-DD coercion and\n * HubSpot drops the value.\n *\n * One call for the whole mapping. A failure on a form the caller named refuses\n * rather than falling back to writing types nobody verified; on the form read\n * off the side effect's connection it returns nothing, which leaves the\n * per-mapping `<field>:<fieldType>` route that worked without HubSpot.\n */\nasync function hubspotFieldCatalog(\n formId: string,\n { named }: { named: boolean },\n): Promise<{ fields: Map<string, DestinationField>; captchaEnabled: boolean } | undefined> {\n let response: HubspotFormsViewResponse;\n try {\n response = await apiPost<HubspotFormsViewResponse>(\"/api/hubspot/forms/view\", { formId });\n } catch (error) {\n if (!named) return undefined;\n refuse(\n `Could not read HubSpot form \"${formId}\": ${error instanceof Error ? error.message : String(error)}`,\n \"Check the guid against the `destination` request_flow_input returned, or `baker hubspot forms list`. Drop --hubspot-form and write `<field>:<fieldType>=<value>` per mapping only if HubSpot is unreachable.\",\n );\n }\n const fields = response.data.form?.fields ?? [];\n if (fields.length === 0) {\n refuse(\n `HubSpot form \"${formId}\" reports no fields, so nothing can be mapped against it.`,\n \"Confirm the guid names the form this side effect submits to: baker hubspot forms list\",\n );\n }\n return {\n fields: new Map(\n fields.map((field) => [\n field.name,\n { fieldType: field.fieldType, ...(field.objectTypeId ? { objectTypeId: field.objectTypeId } : {}) },\n ]),\n ),\n // Read while the form is already open, because this is the moment a\n // delivery is being wired: HubSpot refuses every submission sent to a form\n // with spam prevention on, so a mapping written against one is correct and\n // will still never arrive. Reported, not refused — the mapping is not the\n // mistake, and the client can switch it off without the work being redone.\n captchaEnabled: response.data.form?.captchaEnabled === true,\n };\n}\n\n/**\n * The form a `hubspotForm` side effect already submits to, read from what\n * `flows connect` (or the dashboard's picker) sealed onto it — so a connected\n * side effect needs no `--hubspot-form` to have its field types read.\n *\n * Optional by design: nothing sealed leaves the per-mapping type route as it\n * was, and a read that cannot happen (no Baker connection here, or the reveal\n * failed) says why in `unread` rather than ending the command, so a mapping\n * whose types are written on the left still goes through.\n */\nasync function connectedHubspotForm(\n tree: Record<string, unknown>,\n sideEffect: Record<string, unknown>,\n): Promise<{ formGuid?: string; unread?: string }> {\n if (sealedSideEffects(tree).every((sealed) => sealed.sideEffectId !== String(sideEffect.id))) return {};\n if (!optionalConnection()) return { unread: CONNECTED_FORM_UNREAD };\n const settings = await readSettings(tree);\n if (settings === null) return { unread: CONNECTED_FORM_UNREAD };\n const formGuid = settings[String(sideEffect.id)]?.formGuid;\n return typeof formGuid === \"string\" && formGuid.length > 0 ? { formGuid } : {};\n}\n\nconst CONNECTED_FORM_UNREAD =\n \"This side effect is already connected to a HubSpot form, but that form could not be read just now, so no field type could be read off it.\";\n\n/**\n * The connected ActiveCampaign account's fields, read for every\n * `activeCampaignContact` mapping — there is no resource to name, so there is\n * no flag to ask for: the side effect's own connection is the destination.\n *\n * Read rather than remembered for the same reason as HubSpot's: the field type\n * decides how the backend sends each value, and a custom field is stored by an\n * id only the account knows. A failure refuses rather than writing a guess.\n */\nasync function activeCampaignFieldCatalog(\n sideEffect: Record<string, unknown>,\n): Promise<{ fields: Map<string, DestinationField>; catalog: ActiveCampaignCatalog }> {\n const account = typeof sideEffect.oauthProviderId === \"string\" ? sideEffect.oauthProviderId : undefined;\n const body: ActiveCampaignFieldsRequest = account ? { account } : {};\n let response: ActiveCampaignFieldsResponse;\n try {\n response = activeCampaignFieldsResponseSchema.parse(\n await apiPost<ActiveCampaignFieldsResponse>(\"/api/activecampaign/fields\", body),\n );\n } catch (error) {\n refuse(\n `Could not read the ActiveCampaign account's fields: ${error instanceof Error ? error.message : String(error)}`,\n 'If ActiveCampaign is not connected (or its key stopped working), call request_connection with { platform: \"activecampaign\" } — the user pastes the API URL and key into that card, never into the chat — then run this again.',\n );\n }\n const { account: _account, ...catalog } = response.data;\n return { fields: new Map(activeCampaignDestinationFields(catalog.fields)), catalog };\n}\n\n/** The probe's first line: what this side effect sends today, then what it accepts. */\nexport function probeHeadline(type: string, current: readonly string[]): string {\n if (current.length === 0) {\n return `Nothing mapped yet on this ${type} side effect — below is what it accepts. Add --map <key>=<value> to build one.`;\n }\n return `No --map given, so nothing changed. Mapped now: ${current.join(\"; \")}. Below is what a ${type} side effect accepts; --map <key>=<value> adds or overwrites one.`;\n}\n\n/**\n * Answer the bare `baker flows map <slug> --side-effect <id>` probe.\n *\n * The left of a mapping is a different question per slot — a closed platform\n * set, a name the agent picks, or a name that only exists in the connected\n * account — and none of it was readable without guessing wrong first.\n */\nfunction describeDestination(\n tree: Record<string, unknown>,\n chosen: Located,\n destination: Awaited<ReturnType<typeof hubspotDestination>>,\n): void {\n const type = String(chosen.sideEffect.type ?? \"\");\n const slots = describeSlots(type);\n if (slots.length === 0) {\n refuse(\n `A ${type} side effect has no mappable field.`,\n `Nothing on it addresses named values. \\`baker flows schema side-effect ${type}\\` shows what it does take.`,\n );\n }\n const current = currentMapping(chosen.sideEffect);\n writeJson({\n ok: true,\n data: {\n sideEffectId: chosen.sideEffect.id,\n type,\n current,\n mappable: slots,\n values: formValues(tree),\n ...(destination.hubspot\n ? { destinationFields: hubspotFieldsMapped(destination.hubspot.fields, chosen.sideEffect) }\n : {}),\n },\n hints: [\n probeHeadline(type, current),\n ...(destination.destinationUnread ? [destination.destinationUnread] : []),\n ...slots.map((slot) =>\n slot.keys\n ? `${slot.slot}: ${slot.keys.join(\", \")}`\n : `${slot.slot}: ${slot.keysFrom !== \"account\" ? \"keys are yours to choose — whatever the receiving system expects\" : destination.hubspot ? \"keys are the connected form's fields — destinationFields lists them, mapped: false for each not mapped yet\" : \"keys come from the connected account (request_flow_input returns them)\"}`,\n ),\n // Named separately from the key hint above: the key and its field type are\n // two different questions with two different answers, and the type is the\n // one an agent does not know it is being asked until a mapping is refused.\n ...slots.flatMap((slot) => (slot.fieldTypes ? [`${slot.slot} field types — ${slot.fieldTypes}`] : [])),\n 'Values (right of the `=`) are the same for every slot: a form field, tracking:<var>, global:<name>, code:<name>, a \"literal\", or those joined with +. `values` lists every field, code value, global (and where it is read from) and tracking variable this Form has. A field may also be written as the file stores it, {{<stepId>.customForm.<field>}}. A value cannot run code (no .split(), .slice(), [0]).',\n ],\n });\n}\n\n/**\n * The connected HubSpot form's fields, each saying whether this side effect\n * maps it yet — the to-do list the probe exists to answer, read off the form\n * rather than left for the agent to compare by hand.\n */\nfunction hubspotFieldsMapped(\n fields: Map<string, DestinationField>,\n sideEffect: Record<string, unknown>,\n): { name: string; fieldType: string; mapped: boolean }[] {\n const entries = Array.isArray(sideEffect.fieldMapping) ? (sideEffect.fieldMapping as Record<string, unknown>[]) : [];\n // A field added in the dashboard but given no value carries `value: null`, and\n // delivery skips it, so it is still on the to-do list.\n const mapped = new Set(entries.filter((entry) => entry?.value != null).map((entry) => entry.fieldName));\n return [...fields].map(([name, field]) => ({ name, fieldType: field.fieldType, mapped: mapped.has(name) }));\n}\n\n/**\n * `shapeFor` as a refusal rather than a throw.\n *\n * `assertDestinationReady` is the one place `shapeFor` is reached BEFORE the\n * try/catch around `buildFieldMapping`, so an uncaught error here would escape\n * the `{ ok: false }` envelope every other path emits and reach the agent as a\n * stack trace.\n *\n * In practice the live case is an unrecognised `--into`, because only a type in\n * `FLOW_DELIVERY_SIDE_EFFECT_TYPES` gets this far (everything else returns at the\n * `sideEffectNeedsInput` check above) and every one of those has a slot. So\n * `--into eventParams` on an unconfigured `googleSpreadsheet` is enough to hit\n * it, and the message it would lose — the list of slots that type does have —\n * is exactly the one that answers it.\n */\nfunction shapeOrRefuse(type: string, into: string | undefined): ReturnType<typeof shapeFor> {\n try {\n return shapeFor(type, into);\n } catch (error) {\n if (error instanceof MappingError) refuse(error.message, error.fix);\n throw error;\n }\n}\n\n/**\n * Stop a mapping written against a destination nobody has picked yet.\n *\n * This is the failure the whole command exists to prevent, one level up: the\n * column letters and field keys live in an account only `request_flow_input`\n * can see, so before that call has run they can only be guesses — and a guessed\n * destination is structurally valid, passes every check here, ships, and sends\n * nothing forever. `verify` does catch it later (`flow-schema-unconfigured-oauth`),\n * but by then the mapping is written and the agent has moved on.\n *\n * Only for slots whose names come from the account. A webhook body or a pixel\n * parameter is the agent's to name, so an unset endpoint is a note, not a block.\n */\nfunction assertDestinationReady(\n slug: string,\n tree: Record<string, unknown>,\n chosen: Located,\n into: string | undefined,\n): void {\n if (!sideEffectNeedsInput(chosen.sideEffect)) return;\n\n const type = String(chosen.sideEffect.type ?? \"\");\n const status = collectConfigStatusFor(tree, slug, String(chosen.sideEffect.id ?? \"\"));\n const call = status ? requestFlowInputCall(slug, status) : `request_flow_input for the ${type} side effect`;\n\n if (!namesComeFromAccount(shapeOrRefuse(type, into))) return;\n\n refuse(\n `The ${type} destination is not configured yet, so its field names cannot be anything but a guess.`,\n `Configure it first, then map against the names that call returns: ${call}`,\n );\n}\n\n/** The config row for one side effect, so the refusal can carry a ready-to-issue call. */\nfunction collectConfigStatusFor(tree: Record<string, unknown>, _slug: string, sideEffectId: string) {\n const rows: Parameters<typeof requestFlowInputCall>[1][] = [];\n collectConfigStatus(tree, rows);\n return rows.find((row) => row.sideEffectId === sideEffectId);\n}\n\n/**\n * Name the slots this side effect has and this call did not use.\n *\n * A `meta` side effect has both `eventParams` and `advancedMatching`, and the\n * one an agent most often needs — advanced matching, which decides whether Meta\n * can attribute the conversion at all — is not the default. Saying so on every\n * response is cheaper than the agent finding out from a reference file it may\n * not open.\n */\nfunction slotHintFor(type: string, into: string | undefined): string[] {\n const others = otherSlots(type, shapeFor(type, into));\n if (others.length === 0) return [];\n return [`This side effect also takes ${others.join(\" and \")} — pass --into <slot> to map into one of those instead.`];\n}\n\n/**\n * What happened to the mappings this call did NOT name.\n *\n * Said out loud in both directions, because a slot whose size moved without\n * being mentioned is exactly how the loss stays silent: \"kept\" answers the\n * question a merge raises (\"did it drop the others?\"), and `--replace` has to\n * state its drop or it is the same bug with a flag on it.\n */\nfunction survivorHint(built: BuiltMapping, replacing: boolean): string[] {\n if (built.kept > 0) {\n return [`${built.kept} mapping${built.kept === 1 ? \"\" : \"s\"} already in ${built.key} kept — this merged by name.`];\n }\n if (!replacing) return [];\n return [`--replace: ${built.key} is now exactly these ${built.count}; anything else it held is gone.`];\n}\n\n/**\n * Every mapping `--prune-missing` removed, named one by one.\n *\n * A count would be the same mistake this whole repair exists to undo: the drift\n * Task that nobody could act on said \"an answer HubSpot no longer accepts\" and\n * named none of them, and six Forms were closed as false positives off that\n * sentence. A removal the agent cannot repeat back to the user is a removal\n * nobody can check.\n */\nfunction droppedHint(built: BuiltMapping): string[] {\n if (built.dropped.length === 0) return [];\n return [\n `--prune-missing dropped ${built.dropped.length} mapping${built.dropped.length === 1 ? \"\" : \"s\"} the destination no longer has: ${built.dropped.join(\", \")}. Every other mapping in ${built.key} was left alone.`,\n ];\n}\n\n/**\n * A note, not a block: these keys are the agent's to choose, but the endpoint\n * they are posted to is still the user's to supply, and nothing later in this\n * command will mention it.\n */\nfunction pendingEndpointHint(slug: string, tree: Record<string, unknown>, chosen: Located): string[] {\n if (!sideEffectNeedsInput(chosen.sideEffect)) return [];\n const status = collectConfigStatusFor(tree, slug, String(chosen.sideEffect.id ?? \"\"));\n if (!status) return [];\n return [`The mapping is written, but this destination still needs the user: ${requestFlowInputCall(slug, status)}`];\n}\n\ntype Located = { node: Record<string, unknown>; sideEffect: Record<string, unknown> };\n\n/** The side effect to map into: the named one, or the only one. Never a guess between several. */\nfunction pickSideEffect(slug: string, found: Located[], named: string | undefined): Located {\n if (found.length === 0) {\n refuse(\n `\"${slug}\" has no side effects — author the side effect first, then map into it.`,\n `baker flows add-side-effect ${slug} --node <nodeId> --type <type>`,\n );\n }\n const chosen = named\n ? found.find((entry) => entry.sideEffect.id === named)\n : found.length === 1\n ? found[0]\n : undefined;\n if (chosen) return chosen;\n\n const inventory = found.map((entry) => `${entry.sideEffect.id} (${entry.sideEffect.type})`).join(\", \");\n refuse(\n named\n ? `No side effect with id \"${named}\" in \"${slug}\".`\n : `\"${slug}\" has ${found.length} side effects — name one with --side-effect <id>.`,\n `Side effects in this form: ${inventory}`,\n );\n}\n\n/**\n * `--custom` and `--standard` answer the same question, and the answer decides\n * whether the write lands or is silently dropped. Taking the last flag would\n * pick one of two contradictory instructions at random.\n */\nfunction customFlag(custom: unknown, standard: unknown): boolean | undefined {\n if (custom === true && standard === true) {\n refuse(\"--custom and --standard contradict each other. Pass one.\");\n }\n if (custom === true) return true;\n if (standard === true) return false;\n return undefined;\n}\n\n/**\n * The HubSpot form whose field types this call reads: the one named (flag or\n * file), else the one the side effect is connected to. `destinationUnread`\n * says the connected form exists but could not be read.\n */\nasync function hubspotDestination(\n namedForm: string | undefined,\n tree: Record<string, unknown>,\n sideEffect: Record<string, unknown>,\n): Promise<{\n hubspot?: { fields: Map<string, DestinationField>; captchaEnabled: boolean } | undefined;\n destinationUnread?: string | undefined;\n}> {\n if (namedForm !== undefined) return { hubspot: await hubspotFieldCatalog(namedForm, { named: true }) };\n if (sideEffect.type !== \"hubspotForm\") return {};\n const connected = await connectedHubspotForm(tree, sideEffect);\n if (!connected.formGuid) return { destinationUnread: connected.unread };\n const hubspot = await hubspotFieldCatalog(connected.formGuid, { named: false });\n return hubspot ? { hubspot } : { destinationUnread: CONNECTED_FORM_UNREAD };\n}\n\n/** The HubSpot form a flag or the mapping file names; the flag wins. */\nfunction namedHubspotForm(args: Record<string, unknown>, fromFile: MapSpecFile | undefined): string | undefined {\n return args[\"hubspot-form\"] ? String(args[\"hubspot-form\"]) : fromFile?.hubspotForm;\n}\n\n/**\n * The destination-side options, from the flags and the mapping file together.\n *\n * A flag beats the file, so a saved mapping can be retargeted without editing\n * it. The destination catalog is read HERE, before anything is built, so every\n * mapping's field type is derived from the account rather than remembered —\n * and only when a destination was actually named: without one the build still\n * runs, and refuses per mapping if it turns out a type was needed.\n */\nasync function mapOptions(\n args: Record<string, unknown>,\n fromFile: MapSpecFile | undefined,\n into: string | undefined,\n tree: Record<string, unknown>,\n sideEffect: Record<string, unknown>,\n): Promise<{ options: MapOptions; hints: string[]; activeCampaign?: ActiveCampaignCatalog | undefined }> {\n const { hubspot, destinationUnread } = await hubspotDestination(namedHubspotForm(args, fromFile), tree, sideEffect);\n const activeCampaign =\n !hubspot && sideEffect.type === \"activeCampaignContact\" ? await activeCampaignFieldCatalog(sideEffect) : undefined;\n return {\n options: {\n into,\n entity: args.entity ? String(args.entity) : fromFile?.entity,\n isCustomField: customFlag(args.custom, args.standard) ?? fromFile?.custom,\n objectType: args[\"object-type\"] ? String(args[\"object-type\"]) : fromFile?.objectType,\n replace: args.replace === true || fromFile?.replace === true,\n pruneMissing: args[\"prune-missing\"] === true || fromFile?.pruneMissing === true,\n destinationFields: hubspot?.fields ?? activeCampaign?.fields,\n unlistedField: activeCampaign ? activeCampaignUnlistedField : undefined,\n destinationUnread,\n },\n hints: [\n ...(hubspot?.captchaEnabled\n ? [\n \"WARNING: this HubSpot form has spam prevention (captcha) on. HubSpot refuses every submission sent to a form with it on, so nothing mapped here will arrive — the mapping is fine, the destination is not. Only the user can switch it off, on the form in HubSpot. Tell them that, and do not swap the destination yourself.\",\n ]\n : []),\n ...(destinationUnread\n ? [\n `${destinationUnread} The types written on the left were kept as given and not checked against the form; re-run once it can be read to check them.`,\n ]\n : []),\n ],\n activeCampaign: activeCampaign?.catalog,\n };\n}\n\nexport const mapCommand = defineCommand({\n meta: {\n name: \"map\",\n description:\n \"Map form fields onto any value a side effect sends — never hand-write a mapping. Without --map it lists every value the Form can supply (`values`) and, on HubSpot, which form fields are not mapped yet (`destinationFields`). Start here: baker flows map contact --from map.json --write\",\n },\n args: {\n slug: { type: \"positional\", description: \"Form slug\", required: true },\n map: {\n type: \"string\",\n description:\n \"<destField>[:<fieldType>]=<value> (repeatable). Omit it to read `current`, `values` and, on HubSpot, `destinationFields`\",\n },\n from: { type: \"string\", description: \"Read the whole mapping from a JSON file, or `-` for stdin\" },\n \"side-effect\": { type: \"string\", description: \"Side-effect id, when the form has more than one\" },\n \"hubspot-form\": {\n type: \"string\",\n description:\n \"HubSpot formGuid — only to override the form the side effect is connected to; its field types are read either way\",\n },\n into: {\n type: \"string\",\n description: \"Which slot to map into, for a type with more than one (e.g. meta: eventParams | advancedMatching)\",\n },\n entity: { type: \"string\", description: \"Destination object (person, contact, lead, …)\" },\n custom: { type: \"boolean\", description: \"Destination fields are custom fields\" },\n standard: { type: \"boolean\", description: \"Destination fields are standard fields\" },\n \"object-type\": { type: \"string\", description: \"HubSpot objectTypeId (default 0-1)\" },\n \"prune-missing\": {\n type: \"boolean\",\n description: \"Drop only the mappings the destination no longer has — the repair for a deleted HubSpot field\",\n },\n replace: {\n type: \"boolean\",\n description: \"Drop every mapping already in the slot. Default merges by destination name\",\n },\n write: { type: \"boolean\", description: \"Splice the mapping into the form\" },\n },\n run: async ({ args, rawArgs }) => {\n const slug = String(args.slug);\n const fromFile = args.from ? readSpecFile(String(args.from)) : undefined;\n const specs = fromFile ? specsFromFile(fromFile) : mapSpecsFrom(rawArgs);\n const into = args.into ? String(args.into) : fromFile?.into;\n const replacing = args.replace === true || fromFile?.replace === true;\n const pruning = args[\"prune-missing\"] === true || fromFile?.pruneMissing === true;\n\n const tree = readFlowTree(slug);\n // A flag beats the file, so a saved mapping can be retargeted without editing it.\n const chosen = pickSideEffect(\n slug,\n collectSideEffects(tree),\n args[\"side-effect\"] ? String(args[\"side-effect\"]) : fromFile?.sideEffect,\n );\n\n // No mappings given: answer \"what can I map here, and where do the key names\n // come from\" rather than printing usage. The command already holds the side\n // effect, so refusing threw the answer away and left the only discovery path\n // a wrong guess — name a key outside a closed set and read it off the refusal.\n // `--prune-missing` is a whole call on its own: the repair for a deleted\n // destination field is a removal, and requiring a `--map` alongside it would\n // mean inventing a mapping to make a deletion legal.\n if (specs.length === 0 && !pruning) {\n describeDestination(\n tree,\n chosen,\n await hubspotDestination(namedHubspotForm(args, fromFile), tree, chosen.sideEffect),\n );\n return;\n }\n\n assertDestinationReady(slug, tree, chosen, into);\n\n const {\n options,\n hints: destinationHints,\n activeCampaign,\n } = await mapOptions(args, fromFile, into, tree, chosen.sideEffect);\n\n let built: ReturnType<typeof buildFieldMapping>;\n try {\n built = buildFieldMapping(tree, chosen.sideEffect, specs, options);\n } catch (error) {\n if (error instanceof MappingError) {\n refuse(error.message, error.fix);\n }\n throw error;\n }\n\n const sideEffectType = String(chosen.sideEffect.type ?? \"\");\n const slotHint = [\n ...destinationHints,\n ...(activeCampaign && Array.isArray(built.patch.fieldMapping)\n ? activeCampaignMappingHints(built.patch.fieldMapping as Record<string, unknown>[], activeCampaign)\n : []),\n ...droppedHint(built),\n ...survivorHint(built, replacing),\n ...slotHintFor(sideEffectType, into),\n ...jsonBodyHint(shapeFor(sideEffectType, into), built),\n ...pendingEndpointHint(slug, tree, chosen),\n ];\n\n if (args.write !== true) {\n emitDryRun(slug, chosen, built, slotHint);\n return;\n }\n\n Object.assign(chosen.sideEffect, built.patch);\n writeFlowTree(slug, tree);\n emitWritten(slug, chosen, built, slotHint);\n },\n});\n\n/**\n * The first line of the answer: what this call did, or would do.\n *\n * It has to survive a call that only REMOVES. `--prune-missing` on its own\n * writes nothing and drops something, and \"Wrote 0 fieldMapping mappings\"\n * describes the opposite of what happened — it reads as a no-op, which is the\n * one reading that sends an agent looking for a different command after the\n * repair has already landed. The drops are named by `droppedHint` two lines\n * further down, and that is not where anybody looks to find out whether a\n * command worked.\n *\n * Exported for its own test, because this sentence is the whole report.\n */\nexport function mapHeadline(built: BuiltMapping, phase: \"written\" | \"dry-run\", slug = \"\"): string {\n const wrote = `${built.count} ${built.key} mapping${built.count === 1 ? \"\" : \"s\"}`;\n const drops = `${built.dropped.length} dead mapping${built.dropped.length === 1 ? \"\" : \"s\"}`;\n\n if (phase === \"dry-run\") {\n if (built.count === 0 && built.dropped.length > 0) {\n return `Nothing written. Re-run with --write to drop ${drops} from ${slug}.`;\n }\n return `Nothing written. Re-run with --write to splice ${wrote} into ${slug}.`;\n }\n\n if (built.dropped.length === 0) return `Wrote ${wrote}.`;\n if (built.count === 0) return `Dropped ${drops} from ${built.key}; nothing else changed.`;\n return `Wrote ${wrote} and dropped ${drops}.`;\n}\n\n/**\n * What the body this call just wrote looks like on the wire.\n *\n * Fires on every mapped JSON body, because the written mapping and the request\n * differ in two ways that nothing else reports: a dotted key nests, and an\n * undeclared value goes as text. Shown as the body itself rather than as a\n * rule — `\"hidden\": { \"utm_source\": … }` is what a client's developer asks\n * about, and `hidden.utm_source` is what every surface here shows.\n */\nexport function jsonBodyHint(shape: MappingShape, built: BuiltMapping): string[] {\n if (shape.kind !== \"list\" || shape.jsonBody !== true) return [];\n const entries = (built.patch[built.key] ?? (built.patch.body as Record<string, unknown>)?.[built.key]) as\n | Record<string, unknown>[]\n | undefined;\n if (!Array.isArray(entries)) return [];\n\n const nested = entries.flatMap((entry) =>\n typeof entry.key === \"string\" && entry.key.includes(\".\") ? [entry.key] : [],\n );\n const typed = entries.flatMap((entry) =>\n typeof entry.key === \"string\" && typeof entry.jsonType === \"string\" ? [`${entry.key} as ${entry.jsonType}`] : [],\n );\n if (entries.length === 0) return [];\n\n const groups = [...new Set(nested.map((key) => key.slice(0, key.indexOf(\".\"))))];\n return [\n [\n nested.length > 0\n ? `${nested.length} key${nested.length === 1 ? \"\" : \"s\"} nest on the way out — the endpoint receives ${groups\n .map((group) => `\"${group}\": { … }`)\n .join(\", \")}, not the dotted names.`\n : \"\",\n typed.length > 0\n ? `Sent as a JSON scalar rather than text: ${typed.join(\", \")}.`\n : \"Every value is sent as text — add `:boolean` or `:number` on the left for an endpoint that validates types.\",\n ]\n .filter(Boolean)\n .join(\" \"),\n ];\n}\n\n/** What the call WOULD do, plus the one sentence saying how to make it happen. */\nfunction emitDryRun(slug: string, chosen: Located, built: BuiltMapping, slotHint: string[]): void {\n writeJson({\n ok: true,\n data: {\n sideEffectId: chosen.sideEffect.id,\n type: chosen.sideEffect.type,\n key: built.key,\n patch: built.patch,\n },\n hints: [mapHeadline(built, \"dry-run\", slug), ...slotHint],\n });\n}\n\nfunction emitWritten(slug: string, chosen: Located, built: BuiltMapping, slotHint: string[]): void {\n writeJson({\n ok: true,\n data: {\n sideEffectId: chosen.sideEffect.id,\n type: chosen.sideEffect.type,\n key: built.key,\n written: built.count,\n kept: built.kept,\n dropped: built.dropped,\n path: flowDataPath(slug),\n },\n hints: [\n mapHeadline(built, \"written\"),\n `A mapping is only real once the destination is set — check with: baker flows show ${slug}`,\n ...slotHint,\n ],\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,oBAAoB;AAQ7B,SAAS,qBAAqB;AAmC9B,eAAe;AAAA,EACb,SAAS;AAAA,EACT,aACE;AAAA,EACF,MAAM;AAAA,IACJ,MAAM,EAAE,MAAM,cAAc,aAAa,mCAAmC,UAAU,KAAK;AAAA,IAC3F,KAAK;AAAA,MACH,MAAM;AAAA,MACN,aACE;AAAA,MACF,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aACE;AAAA,MACF,UAAU;AAAA,IACZ;AAAA,IACA,eAAe,EAAE,MAAM,UAAU,aAAa,mDAAmD,UAAU,MAAM;AAAA,IACjH,gBAAgB;AAAA,MACd,MAAM;AAAA,MACN,aACE;AAAA,MACF,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aACE;AAAA,MACF,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,MACb,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ,EAAE,MAAM,WAAW,aAAa,4CAA4C,UAAU,MAAM;AAAA,IACpG,UAAU,EAAE,MAAM,WAAW,aAAa,8CAA8C,UAAU,MAAM;AAAA,IACxG,eAAe,EAAE,MAAM,UAAU,aAAa,+CAA+C,UAAU,MAAM;AAAA,IAC7G,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,aACE;AAAA,MACF,UAAU;AAAA,IACZ;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,aACE;AAAA,MACF,UAAU;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,aAAa;AAAA,MACb,UA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