@koda-sl/baker-cli 0.851.0-dev.9afc75982 → 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 (816) hide show
  1. package/README.md +1 -7
  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/add-2CN64JRZ.js +109 -0
  14. package/dist/add-2CN64JRZ.js.map +1 -0
  15. package/dist/add-INCMGBM2.js +662 -0
  16. package/dist/add-INCMGBM2.js.map +1 -0
  17. package/dist/add-M6LS32QO.js +663 -0
  18. package/dist/add-M6LS32QO.js.map +1 -0
  19. package/dist/ads-7Q7PRFJ4.js +48 -0
  20. package/dist/advertisers-A3YGDOLM.js +127 -0
  21. package/dist/advertisers-A3YGDOLM.js.map +1 -0
  22. package/dist/alerts-DEP2DXBN.js +154 -0
  23. package/dist/alerts-DEP2DXBN.js.map +1 -0
  24. package/dist/analytics-7UCEXUVF.js +2792 -0
  25. package/dist/analytics-7UCEXUVF.js.map +1 -0
  26. package/dist/analytics-XHWSVXYX.js +462 -0
  27. package/dist/analytics-XHWSVXYX.js.map +1 -0
  28. package/dist/assign-JUXS2HIS.js +84 -0
  29. package/dist/assign-JUXS2HIS.js.map +1 -0
  30. package/dist/audience-size-ZWHF4BMF.js +78 -0
  31. package/dist/audience-size-ZWHF4BMF.js.map +1 -0
  32. package/dist/audit-G5SNO6AP.js +156 -0
  33. package/dist/audit-G5SNO6AP.js.map +1 -0
  34. package/dist/autocomplete-RQPSDMYX.js +118 -0
  35. package/dist/autocomplete-RQPSDMYX.js.map +1 -0
  36. package/dist/avatars-PILXCCPG.js +38 -0
  37. package/dist/bid-pricing-7ZNHIIJI.js +105 -0
  38. package/dist/bid-pricing-7ZNHIIJI.js.map +1 -0
  39. package/dist/brief-RBOKX3HZ.js +512 -0
  40. package/dist/brief-RBOKX3HZ.js.map +1 -0
  41. package/dist/campaign-groups-VFVDSZVA.js +119 -0
  42. package/dist/campaign-groups-VFVDSZVA.js.map +1 -0
  43. package/dist/campaign-writes-NYSYVJC6.js +170 -0
  44. package/dist/campaign-writes-NYSYVJC6.js.map +1 -0
  45. package/dist/campaigns-I55PNY55.js +194 -0
  46. package/dist/campaigns-I55PNY55.js.map +1 -0
  47. package/dist/campaigns-XS52PZQL.js +111 -0
  48. package/dist/canvas-3AHETASK.js +48 -0
  49. package/dist/capabilities-KIPCD5SQ.js +185 -0
  50. package/dist/capabilities-KIPCD5SQ.js.map +1 -0
  51. package/dist/catalog-3OIBTMBV.js +90 -0
  52. package/dist/catalog-3OIBTMBV.js.map +1 -0
  53. package/dist/chats-JWH4BIWL.js +660 -0
  54. package/dist/chats-JWH4BIWL.js.map +1 -0
  55. package/dist/check-3SVCK3V3.js +55 -0
  56. package/dist/chunk-2CV2LEJN.js +685 -0
  57. package/dist/chunk-2PNBK7KZ.js +1124 -0
  58. package/dist/chunk-3B7GRVIM.js +392 -0
  59. package/dist/chunk-3MJTL763.js +103 -0
  60. package/dist/chunk-4GM3TBGL.js +320 -0
  61. package/dist/chunk-5UG7AJB5.js +65 -0
  62. package/dist/chunk-AOXHDVWS.js +260 -0
  63. package/dist/chunk-AYW4VFTH.js +547 -0
  64. package/dist/chunk-BMUAE5IR.js +411 -0
  65. package/dist/chunk-BPQY4KIM.js +251 -0
  66. package/dist/chunk-BYYIJMLP.js +197 -0
  67. package/dist/chunk-CDU64GKK.js +61 -0
  68. package/dist/chunk-CNVV272P.js +106 -0
  69. package/dist/chunk-CNVV272P.js.map +1 -0
  70. package/dist/chunk-DA634ZIV.js +175 -0
  71. package/dist/chunk-DJLTDVRD.js +479 -0
  72. package/dist/chunk-GHEURTBN.js +224 -0
  73. package/dist/chunk-H2IG6MOX.js +78 -0
  74. package/dist/chunk-HVVE3GT6.js +91 -0
  75. package/dist/chunk-IAOXI7MJ.js +9127 -0
  76. package/dist/chunk-J4Z2AP32.js +47 -0
  77. package/dist/chunk-J4Z2AP32.js.map +1 -0
  78. package/dist/chunk-M6RQJCDW.js +746 -0
  79. package/dist/chunk-N5IR2T2B.js +509 -0
  80. package/dist/chunk-NZ3PQBRV.js +51 -0
  81. package/dist/chunk-NZFVC7RP.js +548 -0
  82. package/dist/chunk-PNGXJPM5.js +604 -0
  83. package/dist/chunk-PNGXJPM5.js.map +1 -0
  84. package/dist/chunk-QLSNKH5D.js +91 -0
  85. package/dist/chunk-RN3IVT3B.js +3378 -0
  86. package/dist/chunk-RZOHIOPP.js +262 -0
  87. package/dist/chunk-SELCZP76.js +6340 -0
  88. package/dist/chunk-T55DY36I.js +163 -0
  89. package/dist/chunk-T5FACY43.js +170 -0
  90. package/dist/chunk-TR72BZ4D.js +660 -0
  91. package/dist/chunk-UTOVP53O.js +313 -0
  92. package/dist/chunk-VDHPAQUM.js +23 -0
  93. package/dist/chunk-VPWLH6VS.js +202 -0
  94. package/dist/chunk-VXLFFMW6.js +155 -0
  95. package/dist/chunk-VZQHMRYM.js +303 -0
  96. package/dist/chunk-X4NF7IMQ.js +423 -0
  97. package/dist/chunk-X6CSCKXX.js +341 -0
  98. package/dist/chunk-Y4XW2LW3.js +10361 -0
  99. package/dist/chunk-YAMDF3DT.js +374 -0
  100. package/dist/chunk-YCCTIFI7.js +396 -0
  101. package/dist/chunk-YWHOPJG5.js +64 -0
  102. package/dist/chunk-Z7WMTBGD.js +329 -0
  103. package/dist/chunk-ZJY3ACX3.js +7782 -0
  104. package/dist/chunk-ZJY3ACX3.js.map +1 -0
  105. package/dist/claim-H5HZFRPG.js +219 -0
  106. package/dist/claim-H5HZFRPG.js.map +1 -0
  107. package/dist/cli.js +34 -34
  108. package/dist/companies-6FM3CALY.js +37 -0
  109. package/dist/company-U67GZ652.js +312 -0
  110. package/dist/company-U67GZ652.js.map +1 -0
  111. package/dist/complete-7PB5RC47.js +88 -0
  112. package/dist/complete-7PB5RC47.js.map +1 -0
  113. package/dist/connect-J6M3W7WW.js +47 -0
  114. package/dist/conversation-6FGVSJQV.js +101 -0
  115. package/dist/conversation-6FGVSJQV.js.map +1 -0
  116. package/dist/conversions-T3WPLUNU.js +142 -0
  117. package/dist/conversions-T3WPLUNU.js.map +1 -0
  118. package/dist/create-3UEEKKBJ.js +66 -0
  119. package/dist/create-3UEEKKBJ.js.map +1 -0
  120. package/dist/create-BQFV23KE.js +220 -0
  121. package/dist/create-BQFV23KE.js.map +1 -0
  122. package/dist/create-PYNZG2I7.js +191 -0
  123. package/dist/create-PYNZG2I7.js.map +1 -0
  124. package/dist/create-WGQKASYJ.js +357 -0
  125. package/dist/create-WGQKASYJ.js.map +1 -0
  126. package/dist/creatives-PW2P7VMU.js +48 -0
  127. package/dist/creatives-X4ZDII4J.js +236 -0
  128. package/dist/creatives-X4ZDII4J.js.map +1 -0
  129. package/dist/credentials-IGLXTK56.js +292 -0
  130. package/dist/credentials-IGLXTK56.js.map +1 -0
  131. package/dist/critique-HF4ZNSFG.js +231 -0
  132. package/dist/critique-HF4ZNSFG.js.map +1 -0
  133. package/dist/crm-EOXLQJTJ.js +419 -0
  134. package/dist/crm-EOXLQJTJ.js.map +1 -0
  135. package/dist/crm-J7YGM36V.js +328 -0
  136. package/dist/crm-J7YGM36V.js.map +1 -0
  137. package/dist/customers-OHB5EY7Z.js +70 -0
  138. package/dist/delete-I24TSU35.js +61 -0
  139. package/dist/delete-I24TSU35.js.map +1 -0
  140. package/dist/delete-O6GJAIDU.js +72 -0
  141. package/dist/delete-O6GJAIDU.js.map +1 -0
  142. package/dist/delete-UM6ENIDW.js +71 -0
  143. package/dist/delete-UM6ENIDW.js.map +1 -0
  144. package/dist/demographics-BGSWNDRQ.js +146 -0
  145. package/dist/demographics-BGSWNDRQ.js.map +1 -0
  146. package/dist/discard-3S5LU3GF.js +73 -0
  147. package/dist/discard-3S5LU3GF.js.map +1 -0
  148. package/dist/domain-DJ4Y72PN.js +105 -0
  149. package/dist/domain-DJ4Y72PN.js.map +1 -0
  150. package/dist/download-FR7XSZWV.js +175 -0
  151. package/dist/download-FR7XSZWV.js.map +1 -0
  152. package/dist/draft-MUMANPJ7.js +228 -0
  153. package/dist/draft-MUMANPJ7.js.map +1 -0
  154. package/dist/draft-Z6YHU3AR.js +390 -0
  155. package/dist/draft-Z6YHU3AR.js.map +1 -0
  156. package/dist/draft-ZJ4VSYKB.js +428 -0
  157. package/dist/draft-ZJ4VSYKB.js.map +1 -0
  158. package/dist/engine/index.js +4 -3
  159. package/dist/experiment-QSABRTUR.js +2123 -0
  160. package/dist/experiment-QSABRTUR.js.map +1 -0
  161. package/dist/experiments-SJ2ODFHA.js +242 -0
  162. package/dist/experiments-SJ2ODFHA.js.map +1 -0
  163. package/dist/extract-X7H37JJT.js +145 -0
  164. package/dist/extract-X7H37JJT.js.map +1 -0
  165. package/dist/facets-BXRB3I6Q.js +119 -0
  166. package/dist/facets-BXRB3I6Q.js.map +1 -0
  167. package/dist/feedback-YWJUV7LV.js +116 -0
  168. package/dist/feedback-YWJUV7LV.js.map +1 -0
  169. package/dist/fetch-SZORBUY6.js +488 -0
  170. package/dist/fetch-SZORBUY6.js.map +1 -0
  171. package/dist/fit-BNMTWIDZ.js +70 -0
  172. package/dist/flows-CXLGJZX3.js +343 -0
  173. package/dist/flows-CXLGJZX3.js.map +1 -0
  174. package/dist/forecast-4GMD2VLH.js +123 -0
  175. package/dist/forecast-4GMD2VLH.js.map +1 -0
  176. package/dist/funnel-6T744PW5.js +702 -0
  177. package/dist/funnel-6T744PW5.js.map +1 -0
  178. package/dist/get-AV7SAPWM.js +115 -0
  179. package/dist/get-AV7SAPWM.js.map +1 -0
  180. package/dist/get-XGNDE6U5.js +78 -0
  181. package/dist/get-XGNDE6U5.js.map +1 -0
  182. package/dist/google-5PTZYW6Q.js +165 -0
  183. package/dist/google-5PTZYW6Q.js.map +1 -0
  184. package/dist/google-ads-LL4VNYPD.js +202 -0
  185. package/dist/google-ads-LL4VNYPD.js.map +1 -0
  186. package/dist/history-CFVA6FMG.js +109 -0
  187. package/dist/history-CFVA6FMG.js.map +1 -0
  188. package/dist/history-DSRIBYK6.js +156 -0
  189. package/dist/history-DSRIBYK6.js.map +1 -0
  190. package/dist/hubspot-QEDQFEME.js +854 -0
  191. package/dist/hubspot-QEDQFEME.js.map +1 -0
  192. package/dist/ideas-UK74GJGE.js +50 -0
  193. package/dist/images-OH7KDUR5.js +92 -0
  194. package/dist/ingest-2BC3W4WC.js +32 -0
  195. package/dist/ingest-U46BUNPL.js +163 -0
  196. package/dist/ingest-U46BUNPL.js.map +1 -0
  197. package/dist/inspect-ZMCRHR2P.js +39 -0
  198. package/dist/keyword-metrics-RHQHOBBD.js +235 -0
  199. package/dist/keyword-metrics-RHQHOBBD.js.map +1 -0
  200. package/dist/keywords-for-site-SXM5GYNK.js +135 -0
  201. package/dist/keywords-for-site-SXM5GYNK.js.map +1 -0
  202. package/dist/leads-SXKIKE33.js +138 -0
  203. package/dist/leads-SXKIKE33.js.map +1 -0
  204. package/dist/learn-IUTTKGIM.js +214 -0
  205. package/dist/learn-IUTTKGIM.js.map +1 -0
  206. package/dist/line-item-writes-4UCLAFCM.js +213 -0
  207. package/dist/line-item-writes-4UCLAFCM.js.map +1 -0
  208. package/dist/line-items-RUC54PIV.js +107 -0
  209. package/dist/link-DVOBJDBN.js +71 -0
  210. package/dist/link-DVOBJDBN.js.map +1 -0
  211. package/dist/linkedin-2Y7TU4US.js +1499 -0
  212. package/dist/linkedin-2Y7TU4US.js.map +1 -0
  213. package/dist/linkedin-person-MTXQCPG5.js +143 -0
  214. package/dist/linkedin-person-MTXQCPG5.js.map +1 -0
  215. package/dist/list-G5QSLYQQ.js +64 -0
  216. package/dist/list-G5QSLYQQ.js.map +1 -0
  217. package/dist/list-KYEFILOK.js +170 -0
  218. package/dist/list-KYEFILOK.js.map +1 -0
  219. package/dist/list-V5XCBLJ7.js +321 -0
  220. package/dist/list-V5XCBLJ7.js.map +1 -0
  221. package/dist/list-VXWXN54Z.js +90 -0
  222. package/dist/list-VXWXN54Z.js.map +1 -0
  223. package/dist/log-STIZ76SH.js +99 -0
  224. package/dist/log-STIZ76SH.js.map +1 -0
  225. package/dist/make-HDEKIJC6.js +1392 -0
  226. package/dist/make-HDEKIJC6.js.map +1 -0
  227. package/dist/map-2SS3BULX.js +520 -0
  228. package/dist/map-2SS3BULX.js.map +1 -0
  229. package/dist/mcp-I5ASSVSH.js +1018 -0
  230. package/dist/mcp-I5ASSVSH.js.map +1 -0
  231. package/dist/media-sources-KUEQ45V5.js +35 -0
  232. package/dist/members-65P2J63J.js +51 -0
  233. package/dist/members-65P2J63J.js.map +1 -0
  234. package/dist/normalize-WNJDY66N.js +146 -0
  235. package/dist/normalize-WNJDY66N.js.map +1 -0
  236. package/dist/options-G4KR2KM7.js +127 -0
  237. package/dist/options-G4KR2KM7.js.map +1 -0
  238. package/dist/organization-FVZ6EIQB.js +950 -0
  239. package/dist/organization-FVZ6EIQB.js.map +1 -0
  240. package/dist/people-654OH5SE.js +162 -0
  241. package/dist/people-654OH5SE.js.map +1 -0
  242. package/dist/people-G3X6XVSH.js +172 -0
  243. package/dist/people-G3X6XVSH.js.map +1 -0
  244. package/dist/performance-BIH653SL.js +29 -0
  245. package/dist/performance-IU4CAW5U.js +6295 -0
  246. package/dist/performance-IU4CAW5U.js.map +1 -0
  247. package/dist/pipedrive-7AHNEUZI.js +534 -0
  248. package/dist/pipedrive-7AHNEUZI.js.map +1 -0
  249. package/dist/preview-ZOTNLVQF.js +104 -0
  250. package/dist/preview-ZOTNLVQF.js.map +1 -0
  251. package/dist/promoted-tweet-writes-7OXSBCSP.js +185 -0
  252. package/dist/promoted-tweet-writes-7OXSBCSP.js.map +1 -0
  253. package/dist/promoted-tweets-6YCNFVJK.js +119 -0
  254. package/dist/publish-W6YO4KXM.js +431 -0
  255. package/dist/publish-W6YO4KXM.js.map +1 -0
  256. package/dist/reddit-Z4REP3DB.js +31 -0
  257. package/dist/refresh-J4EVW5NK.js +101 -0
  258. package/dist/refresh-J4EVW5NK.js.map +1 -0
  259. package/dist/release-J7PM3S26.js +67 -0
  260. package/dist/release-J7PM3S26.js.map +1 -0
  261. package/dist/remove-47SNXAN4.js +55 -0
  262. package/dist/remove-47SNXAN4.js.map +1 -0
  263. package/dist/reopen-QZ5H7BM4.js +70 -0
  264. package/dist/reopen-QZ5H7BM4.js.map +1 -0
  265. package/dist/rerun-NXCWZO6J.js +102 -0
  266. package/dist/rerun-NXCWZO6J.js.map +1 -0
  267. package/dist/research-FYPPBDZD.js +267 -0
  268. package/dist/research-FYPPBDZD.js.map +1 -0
  269. package/dist/research-M6YZMTCC.js +78 -0
  270. package/dist/reset-HOZN4FOM.js +59 -0
  271. package/dist/reset-HOZN4FOM.js.map +1 -0
  272. package/dist/reset-YSI4KD65.js +59 -0
  273. package/dist/reset-YSI4KD65.js.map +1 -0
  274. package/dist/resolve-4LGAMITK.js +126 -0
  275. package/dist/resolve-4LGAMITK.js.map +1 -0
  276. package/dist/retry-JE7MVPCY.js +67 -0
  277. package/dist/retry-JE7MVPCY.js.map +1 -0
  278. package/dist/retry-NF5WFRK3.js +67 -0
  279. package/dist/retry-NF5WFRK3.js.map +1 -0
  280. package/dist/revenue-UNKQMFEP.js +100 -0
  281. package/dist/revenue-UNKQMFEP.js.map +1 -0
  282. package/dist/rules-ZQVMBEGF.js +164 -0
  283. package/dist/rules-ZQVMBEGF.js.map +1 -0
  284. package/dist/run-3AFY2WEP.js +74 -0
  285. package/dist/run-3AFY2WEP.js.map +1 -0
  286. package/dist/run-MBVV64FY.js +79 -0
  287. package/dist/scaffold-ad-5BDDIBIE.js +1601 -0
  288. package/dist/scaffold-ad-5BDDIBIE.js.map +1 -0
  289. package/dist/scaffold-static-ad-VI4HHQXS.js +999 -0
  290. package/dist/scaffold-static-ad-VI4HHQXS.js.map +1 -0
  291. package/dist/scaffold-video-EPMMQHUN.js +889 -0
  292. package/dist/scaffold-video-EPMMQHUN.js.map +1 -0
  293. package/dist/schedule-MYNSAWBJ.js +66 -0
  294. package/dist/schedule-MYNSAWBJ.js.map +1 -0
  295. package/dist/scheduled-agents-T7CITLJL.js +59 -0
  296. package/dist/schema-4WMUT43Q.js +137 -0
  297. package/dist/schema-4WMUT43Q.js.map +1 -0
  298. package/dist/schema-6WONG4NR.js +241 -0
  299. package/dist/search-AF7G5TRI.js +193 -0
  300. package/dist/search-AF7G5TRI.js.map +1 -0
  301. package/dist/select-LUFSBEFK.js +135 -0
  302. package/dist/select-LUFSBEFK.js.map +1 -0
  303. package/dist/set-Z754PYIP.js +275 -0
  304. package/dist/set-Z754PYIP.js.map +1 -0
  305. package/dist/set-prompt-WDCKB4GU.js +205 -0
  306. package/dist/set-prompt-WDCKB4GU.js.map +1 -0
  307. package/dist/setup-links-3FCP4CMO.js +146 -0
  308. package/dist/setup-links-3FCP4CMO.js.map +1 -0
  309. package/dist/shopify-OMTDOM6H.js +4033 -0
  310. package/dist/shopify-OMTDOM6H.js.map +1 -0
  311. package/dist/site-E6VDWABB.js +182 -0
  312. package/dist/site-E6VDWABB.js.map +1 -0
  313. package/dist/sources-3RQZ3AR2.js +30 -0
  314. package/dist/sources-IB2WBJLU.js +464 -0
  315. package/dist/sources-IB2WBJLU.js.map +1 -0
  316. package/dist/stale-V4NS3MDH.js +93 -0
  317. package/dist/stale-V4NS3MDH.js.map +1 -0
  318. package/dist/status-T67ZC4E3.js +69 -0
  319. package/dist/status-T67ZC4E3.js.map +1 -0
  320. package/dist/stock-V2ITAW3L.js +214 -0
  321. package/dist/stock-V2ITAW3L.js.map +1 -0
  322. package/dist/sync-O5OC466B.js +59 -0
  323. package/dist/sync-O5OC466B.js.map +1 -0
  324. package/dist/sync-definition-MR7XESTS.js +75 -0
  325. package/dist/tags-ACDAA5T6.js +25 -0
  326. package/dist/tags-ACDAA5T6.js.map +1 -0
  327. package/dist/tags-I3AJEMKF.js +26 -0
  328. package/dist/tags-IMTMMKH3.js +25 -0
  329. package/dist/tags-IMTMMKH3.js.map +1 -0
  330. package/dist/tags-Q32N3AGN.js +25 -0
  331. package/dist/tags-Q32N3AGN.js.map +1 -0
  332. package/dist/tags-YWZLXCDK.js +183 -0
  333. package/dist/tags-YWZLXCDK.js.map +1 -0
  334. package/dist/targeting-criteria-QFFAYBGE.js +113 -0
  335. package/dist/targets-VJ7FDIRY.js +111 -0
  336. package/dist/targets-VJ7FDIRY.js.map +1 -0
  337. package/dist/testimonials-67Q3OTBU.js +32 -0
  338. package/dist/top-companies-6XTBQ26K.js +251 -0
  339. package/dist/top-companies-6XTBQ26K.js.map +1 -0
  340. package/dist/transcript-VJ3SAEUV.js +169 -0
  341. package/dist/transcript-VJ3SAEUV.js.map +1 -0
  342. package/dist/translate-ET2MK3H2.js +608 -0
  343. package/dist/translate-ET2MK3H2.js.map +1 -0
  344. package/dist/triggers-JP6VF7BW.js +149 -0
  345. package/dist/triggers-JP6VF7BW.js.map +1 -0
  346. package/dist/unlink-KMFC3LDG.js +74 -0
  347. package/dist/unlink-KMFC3LDG.js.map +1 -0
  348. package/dist/unstage-GPI2NIBV.js +93 -0
  349. package/dist/unstage-GPI2NIBV.js.map +1 -0
  350. package/dist/update-2FH5MZVD.js +238 -0
  351. package/dist/update-2FH5MZVD.js.map +1 -0
  352. package/dist/update-ACOQHC7J.js +194 -0
  353. package/dist/update-ACOQHC7J.js.map +1 -0
  354. package/dist/update-CUQLNEAD.js +176 -0
  355. package/dist/update-CUQLNEAD.js.map +1 -0
  356. package/dist/update-RZXG7Z62.js +70 -0
  357. package/dist/update-RZXG7Z62.js.map +1 -0
  358. package/dist/upload-HVE7JHOF.js +186 -0
  359. package/dist/upload-HVE7JHOF.js.map +1 -0
  360. package/dist/url-params-EHRE7RFC.js +103 -0
  361. package/dist/url-params-EHRE7RFC.js.map +1 -0
  362. package/dist/validate-2SL473DR.js +181 -0
  363. package/dist/validate-2SL473DR.js.map +1 -0
  364. package/dist/videos-URSOTIHU.js +41 -0
  365. package/dist/viewer-check-N3SEOOMX.js +90 -0
  366. package/dist/visuals-2Q643EXW.js +130 -0
  367. package/dist/visuals-2Q643EXW.js.map +1 -0
  368. package/dist/web-SEZ7DJLY.js +181 -0
  369. package/dist/web-SEZ7DJLY.js.map +1 -0
  370. package/dist/winning-ads-TCRRYKCR.js +88 -0
  371. package/dist/write-commands-DSQDZBN7.js +1556 -0
  372. package/dist/write-commands-DSQDZBN7.js.map +1 -0
  373. package/dist/x-K6IWYLK3.js +47 -0
  374. package/package.json +1 -1
  375. package/dist/account-LMDIUOJG.js +0 -83
  376. package/dist/account-LMDIUOJG.js.map +0 -1
  377. package/dist/account-users-6RC5HDP3.js +0 -69
  378. package/dist/account-users-6RC5HDP3.js.map +0 -1
  379. package/dist/accounts-LIGSG5NQ.js +0 -505
  380. package/dist/accounts-LIGSG5NQ.js.map +0 -1
  381. package/dist/accounts-YMDEDCHU.js +0 -81
  382. package/dist/accounts-YMDEDCHU.js.map +0 -1
  383. package/dist/actions-U4QMVB4H.js +0 -55
  384. package/dist/activecampaign-WPHFFOGW.js +0 -935
  385. package/dist/activecampaign-WPHFFOGW.js.map +0 -1
  386. package/dist/add-AFPBNJDW.js +0 -108
  387. package/dist/add-AFPBNJDW.js.map +0 -1
  388. package/dist/add-M3YT32OX.js +0 -661
  389. package/dist/add-M3YT32OX.js.map +0 -1
  390. package/dist/add-UJOKKBPM.js +0 -662
  391. package/dist/add-UJOKKBPM.js.map +0 -1
  392. package/dist/ads-T42GRQ7H.js +0 -48
  393. package/dist/advertisers-NJE6DBLG.js +0 -126
  394. package/dist/advertisers-NJE6DBLG.js.map +0 -1
  395. package/dist/alerts-CQ34OPCP.js +0 -153
  396. package/dist/alerts-CQ34OPCP.js.map +0 -1
  397. package/dist/analytics-54QRGO5T.js +0 -461
  398. package/dist/analytics-54QRGO5T.js.map +0 -1
  399. package/dist/analytics-HW6SG6ZE.js +0 -2791
  400. package/dist/analytics-HW6SG6ZE.js.map +0 -1
  401. package/dist/assign-WIIL5VY7.js +0 -83
  402. package/dist/assign-WIIL5VY7.js.map +0 -1
  403. package/dist/audience-size-2KL27ETQ.js +0 -77
  404. package/dist/audience-size-2KL27ETQ.js.map +0 -1
  405. package/dist/audit-EPWNTRPE.js +0 -155
  406. package/dist/audit-EPWNTRPE.js.map +0 -1
  407. package/dist/autocomplete-JWML26GX.js +0 -117
  408. package/dist/autocomplete-JWML26GX.js.map +0 -1
  409. package/dist/avatars-D7S43BGZ.js +0 -38
  410. package/dist/bid-pricing-MD7ROXQT.js +0 -104
  411. package/dist/bid-pricing-MD7ROXQT.js.map +0 -1
  412. package/dist/brief-JWYWQXOP.js +0 -511
  413. package/dist/brief-JWYWQXOP.js.map +0 -1
  414. package/dist/campaign-groups-ZT3ZHZFF.js +0 -118
  415. package/dist/campaign-groups-ZT3ZHZFF.js.map +0 -1
  416. package/dist/campaign-writes-72H332R4.js +0 -169
  417. package/dist/campaign-writes-72H332R4.js.map +0 -1
  418. package/dist/campaigns-Q363NCWU.js +0 -111
  419. package/dist/campaigns-TDR6VKYL.js +0 -193
  420. package/dist/campaigns-TDR6VKYL.js.map +0 -1
  421. package/dist/canvas-T6ALQYZT.js +0 -48
  422. package/dist/capabilities-N52A6X2S.js +0 -184
  423. package/dist/capabilities-N52A6X2S.js.map +0 -1
  424. package/dist/catalog-WKBCL56H.js +0 -89
  425. package/dist/catalog-WKBCL56H.js.map +0 -1
  426. package/dist/chats-D5TGNPFK.js +0 -659
  427. package/dist/chats-D5TGNPFK.js.map +0 -1
  428. package/dist/check-6QZ2U6WJ.js +0 -54
  429. package/dist/chunk-2BRVIOKO.js +0 -197
  430. package/dist/chunk-2FBSB7UF.js +0 -64
  431. package/dist/chunk-2XKSMHDO.js +0 -10361
  432. package/dist/chunk-3TWET6OD.js +0 -396
  433. package/dist/chunk-6H6BJBBS.js +0 -329
  434. package/dist/chunk-6XOAPUW4.js +0 -509
  435. package/dist/chunk-ACIBARQU.js +0 -251
  436. package/dist/chunk-AQHT2XKB.js +0 -3378
  437. package/dist/chunk-ATUFMGY3.js +0 -320
  438. package/dist/chunk-B43NI7QF.js +0 -52
  439. package/dist/chunk-B43NI7QF.js.map +0 -1
  440. package/dist/chunk-BDULC6LM.js +0 -479
  441. package/dist/chunk-BPUNOSXM.js +0 -548
  442. package/dist/chunk-CPRSVECH.js +0 -303
  443. package/dist/chunk-DIOKO2YD.js +0 -660
  444. package/dist/chunk-DZUYNVKJ.js +0 -423
  445. package/dist/chunk-E2BFPWA5.js +0 -175
  446. package/dist/chunk-EMZ6P2KH.js +0 -6340
  447. package/dist/chunk-F7DCEGAA.js +0 -392
  448. package/dist/chunk-FEP257NO.js +0 -65
  449. package/dist/chunk-GB2U76OM.js +0 -224
  450. package/dist/chunk-I3HEOUZT.js +0 -1124
  451. package/dist/chunk-IDBREOFA.js +0 -106
  452. package/dist/chunk-IDBREOFA.js.map +0 -1
  453. package/dist/chunk-INY6DR2Y.js +0 -374
  454. package/dist/chunk-JY2NBRHH.js +0 -78
  455. package/dist/chunk-KN2UAGSU.js +0 -91
  456. package/dist/chunk-LDF2VXPC.js +0 -155
  457. package/dist/chunk-LRWUQABW.js +0 -262
  458. package/dist/chunk-MJ5JHMLF.js +0 -163
  459. package/dist/chunk-NLWOT26L.js +0 -411
  460. package/dist/chunk-O2YPJPMO.js +0 -547
  461. package/dist/chunk-ODDHGVQE.js +0 -51
  462. package/dist/chunk-P6Z44HNW.js +0 -9127
  463. package/dist/chunk-PSPSKOQR.js +0 -341
  464. package/dist/chunk-QLIJ4NRV.js +0 -8418
  465. package/dist/chunk-QLIJ4NRV.js.map +0 -1
  466. package/dist/chunk-QNPOFQV5.js +0 -170
  467. package/dist/chunk-QZMBPEUW.js +0 -202
  468. package/dist/chunk-RKGYVC2C.js +0 -685
  469. package/dist/chunk-SBP7CF7S.js +0 -260
  470. package/dist/chunk-TJZKZKCQ.js +0 -91
  471. package/dist/chunk-TVZCWBC5.js +0 -61
  472. package/dist/chunk-WCCFBAH4.js +0 -23
  473. package/dist/chunk-XDFXSMPX.js +0 -103
  474. package/dist/chunk-XFARJ2SL.js +0 -313
  475. package/dist/chunk-YNVE62WW.js +0 -746
  476. package/dist/claim-QGYCSESF.js +0 -218
  477. package/dist/claim-QGYCSESF.js.map +0 -1
  478. package/dist/companies-VM4DJCIO.js +0 -36
  479. package/dist/company-BPFVTGZK.js +0 -311
  480. package/dist/company-BPFVTGZK.js.map +0 -1
  481. package/dist/complete-NNDVV6CH.js +0 -87
  482. package/dist/complete-NNDVV6CH.js.map +0 -1
  483. package/dist/connect-4G722CGF.js +0 -46
  484. package/dist/conversation-TRXRUTL6.js +0 -100
  485. package/dist/conversation-TRXRUTL6.js.map +0 -1
  486. package/dist/conversions-4RQGCY3I.js +0 -141
  487. package/dist/conversions-4RQGCY3I.js.map +0 -1
  488. package/dist/create-4DUUV34B.js +0 -356
  489. package/dist/create-4DUUV34B.js.map +0 -1
  490. package/dist/create-GAKJO6RX.js +0 -65
  491. package/dist/create-GAKJO6RX.js.map +0 -1
  492. package/dist/create-NUV6C7T7.js +0 -219
  493. package/dist/create-NUV6C7T7.js.map +0 -1
  494. package/dist/create-TSB2ED7G.js +0 -190
  495. package/dist/create-TSB2ED7G.js.map +0 -1
  496. package/dist/creatives-D2756SYZ.js +0 -48
  497. package/dist/creatives-FRNDPYD2.js +0 -235
  498. package/dist/creatives-FRNDPYD2.js.map +0 -1
  499. package/dist/credentials-VDUQOSAI.js +0 -291
  500. package/dist/credentials-VDUQOSAI.js.map +0 -1
  501. package/dist/critique-GCLEP53N.js +0 -230
  502. package/dist/critique-GCLEP53N.js.map +0 -1
  503. package/dist/crm-6KBBEU5D.js +0 -327
  504. package/dist/crm-6KBBEU5D.js.map +0 -1
  505. package/dist/crm-MUVL3BHT.js +0 -418
  506. package/dist/crm-MUVL3BHT.js.map +0 -1
  507. package/dist/customers-6X6LULB6.js +0 -69
  508. package/dist/delete-FJPGJ2HP.js +0 -71
  509. package/dist/delete-FJPGJ2HP.js.map +0 -1
  510. package/dist/delete-M5Z5QXVO.js +0 -60
  511. package/dist/delete-M5Z5QXVO.js.map +0 -1
  512. package/dist/delete-P66UBMWB.js +0 -70
  513. package/dist/delete-P66UBMWB.js.map +0 -1
  514. package/dist/demographics-TEDAJJDS.js +0 -145
  515. package/dist/demographics-TEDAJJDS.js.map +0 -1
  516. package/dist/discard-UXSFTA6C.js +0 -72
  517. package/dist/discard-UXSFTA6C.js.map +0 -1
  518. package/dist/domain-Y3BKIFLA.js +0 -104
  519. package/dist/domain-Y3BKIFLA.js.map +0 -1
  520. package/dist/download-P2XHLRNA.js +0 -174
  521. package/dist/download-P2XHLRNA.js.map +0 -1
  522. package/dist/draft-63RF6RKQ.js +0 -427
  523. package/dist/draft-63RF6RKQ.js.map +0 -1
  524. package/dist/draft-N2MVECRV.js +0 -227
  525. package/dist/draft-N2MVECRV.js.map +0 -1
  526. package/dist/draft-OJQT5H3E.js +0 -389
  527. package/dist/draft-OJQT5H3E.js.map +0 -1
  528. package/dist/experiment-WEWASTVO.js +0 -2094
  529. package/dist/experiment-WEWASTVO.js.map +0 -1
  530. package/dist/experiments-BFVLG54V.js +0 -241
  531. package/dist/experiments-BFVLG54V.js.map +0 -1
  532. package/dist/extract-YH5VKD7W.js +0 -144
  533. package/dist/extract-YH5VKD7W.js.map +0 -1
  534. package/dist/facets-VJOSK5UL.js +0 -118
  535. package/dist/facets-VJOSK5UL.js.map +0 -1
  536. package/dist/feedback-ATORZ5XJ.js +0 -115
  537. package/dist/feedback-ATORZ5XJ.js.map +0 -1
  538. package/dist/fetch-UDAWFZXZ.js +0 -487
  539. package/dist/fetch-UDAWFZXZ.js.map +0 -1
  540. package/dist/fit-4CVULFD2.js +0 -69
  541. package/dist/flows-QXTZHPB6.js +0 -342
  542. package/dist/flows-QXTZHPB6.js.map +0 -1
  543. package/dist/forecast-DJ67NT6P.js +0 -122
  544. package/dist/forecast-DJ67NT6P.js.map +0 -1
  545. package/dist/funnel-2C6Z5VA2.js +0 -701
  546. package/dist/funnel-2C6Z5VA2.js.map +0 -1
  547. package/dist/get-GFVZKATP.js +0 -114
  548. package/dist/get-GFVZKATP.js.map +0 -1
  549. package/dist/get-JSO4YJFR.js +0 -77
  550. package/dist/get-JSO4YJFR.js.map +0 -1
  551. package/dist/google-H4KVIAL5.js +0 -164
  552. package/dist/google-H4KVIAL5.js.map +0 -1
  553. package/dist/google-ads-KCK27DGG.js +0 -201
  554. package/dist/google-ads-KCK27DGG.js.map +0 -1
  555. package/dist/history-AIZX672U.js +0 -155
  556. package/dist/history-AIZX672U.js.map +0 -1
  557. package/dist/history-LYUJTPSP.js +0 -108
  558. package/dist/history-LYUJTPSP.js.map +0 -1
  559. package/dist/hubspot-BZSQ3WMQ.js +0 -853
  560. package/dist/hubspot-BZSQ3WMQ.js.map +0 -1
  561. package/dist/ideas-HHWTU7F2.js +0 -49
  562. package/dist/images-BB6BYS54.js +0 -92
  563. package/dist/ingest-S6HP4LXI.js +0 -31
  564. package/dist/ingest-Z3DRI6A3.js +0 -162
  565. package/dist/ingest-Z3DRI6A3.js.map +0 -1
  566. package/dist/inspect-KC5LTH4E.js +0 -38
  567. package/dist/keyword-metrics-VGZIQBSG.js +0 -234
  568. package/dist/keyword-metrics-VGZIQBSG.js.map +0 -1
  569. package/dist/keywords-for-site-3HREQUQU.js +0 -134
  570. package/dist/keywords-for-site-3HREQUQU.js.map +0 -1
  571. package/dist/leads-AKF42B23.js +0 -137
  572. package/dist/leads-AKF42B23.js.map +0 -1
  573. package/dist/learn-6D45W6YN.js +0 -213
  574. package/dist/learn-6D45W6YN.js.map +0 -1
  575. package/dist/line-item-writes-SB6B75MY.js +0 -212
  576. package/dist/line-item-writes-SB6B75MY.js.map +0 -1
  577. package/dist/line-items-22S6PURM.js +0 -107
  578. package/dist/link-CLMY2YW5.js +0 -70
  579. package/dist/link-CLMY2YW5.js.map +0 -1
  580. package/dist/linkedin-GTYWIRDX.js +0 -1498
  581. package/dist/linkedin-GTYWIRDX.js.map +0 -1
  582. package/dist/linkedin-person-LBU3VGNY.js +0 -142
  583. package/dist/linkedin-person-LBU3VGNY.js.map +0 -1
  584. package/dist/list-MWGLVZR3.js +0 -89
  585. package/dist/list-MWGLVZR3.js.map +0 -1
  586. package/dist/list-MXUPVC2W.js +0 -64
  587. package/dist/list-MXUPVC2W.js.map +0 -1
  588. package/dist/list-P6IN6K26.js +0 -226
  589. package/dist/list-P6IN6K26.js.map +0 -1
  590. package/dist/list-SZKENQ2B.js +0 -320
  591. package/dist/list-SZKENQ2B.js.map +0 -1
  592. package/dist/log-XOYBG7KX.js +0 -98
  593. package/dist/log-XOYBG7KX.js.map +0 -1
  594. package/dist/make-ZBUVEPHX.js +0 -1391
  595. package/dist/make-ZBUVEPHX.js.map +0 -1
  596. package/dist/map-VBYQNHJR.js +0 -519
  597. package/dist/map-VBYQNHJR.js.map +0 -1
  598. package/dist/mcp-RSB47JCJ.js +0 -1017
  599. package/dist/mcp-RSB47JCJ.js.map +0 -1
  600. package/dist/media-sources-ZCXMQCSE.js +0 -35
  601. package/dist/members-QL5TXGND.js +0 -50
  602. package/dist/members-QL5TXGND.js.map +0 -1
  603. package/dist/normalize-YWNW62HI.js +0 -145
  604. package/dist/normalize-YWNW62HI.js.map +0 -1
  605. package/dist/options-5RRLBIVY.js +0 -126
  606. package/dist/options-5RRLBIVY.js.map +0 -1
  607. package/dist/organization-FZUYEBEE.js +0 -949
  608. package/dist/organization-FZUYEBEE.js.map +0 -1
  609. package/dist/people-FO6OCDP5.js +0 -171
  610. package/dist/people-FO6OCDP5.js.map +0 -1
  611. package/dist/people-XGMOJZTE.js +0 -161
  612. package/dist/people-XGMOJZTE.js.map +0 -1
  613. package/dist/performance-7AXRRE5J.js +0 -28
  614. package/dist/performance-USJY2HVB.js +0 -6294
  615. package/dist/performance-USJY2HVB.js.map +0 -1
  616. package/dist/pipedrive-LWAH5BTV.js +0 -533
  617. package/dist/pipedrive-LWAH5BTV.js.map +0 -1
  618. package/dist/preview-5ZMTNYCI.js +0 -103
  619. package/dist/preview-5ZMTNYCI.js.map +0 -1
  620. package/dist/promoted-tweet-writes-VW6XCOL3.js +0 -184
  621. package/dist/promoted-tweet-writes-VW6XCOL3.js.map +0 -1
  622. package/dist/promoted-tweets-5Y6RGBJS.js +0 -119
  623. package/dist/publish-ERJPN3EL.js +0 -430
  624. package/dist/publish-ERJPN3EL.js.map +0 -1
  625. package/dist/reddit-OKEJ7EIX.js +0 -30
  626. package/dist/refresh-ACG34ZRD.js +0 -100
  627. package/dist/refresh-ACG34ZRD.js.map +0 -1
  628. package/dist/release-XYWQM7DE.js +0 -66
  629. package/dist/release-XYWQM7DE.js.map +0 -1
  630. package/dist/remove-NJQM5BGF.js +0 -54
  631. package/dist/remove-NJQM5BGF.js.map +0 -1
  632. package/dist/reopen-BO6G2RRS.js +0 -69
  633. package/dist/reopen-BO6G2RRS.js.map +0 -1
  634. package/dist/rerun-BVUWQCAR.js +0 -101
  635. package/dist/rerun-BVUWQCAR.js.map +0 -1
  636. package/dist/research-2V6WG3XG.js +0 -266
  637. package/dist/research-2V6WG3XG.js.map +0 -1
  638. package/dist/research-G7BDWYEG.js +0 -78
  639. package/dist/reset-2DDLUZGB.js +0 -58
  640. package/dist/reset-2DDLUZGB.js.map +0 -1
  641. package/dist/reset-JPOOEIX7.js +0 -58
  642. package/dist/reset-JPOOEIX7.js.map +0 -1
  643. package/dist/resolve-J4TIUP3W.js +0 -125
  644. package/dist/resolve-J4TIUP3W.js.map +0 -1
  645. package/dist/retry-MNGVR37L.js +0 -66
  646. package/dist/retry-MNGVR37L.js.map +0 -1
  647. package/dist/retry-Y4FLZQVK.js +0 -66
  648. package/dist/retry-Y4FLZQVK.js.map +0 -1
  649. package/dist/revenue-AVLQNUT2.js +0 -99
  650. package/dist/revenue-AVLQNUT2.js.map +0 -1
  651. package/dist/rules-UBZ32MQY.js +0 -163
  652. package/dist/rules-UBZ32MQY.js.map +0 -1
  653. package/dist/run-VGOXHEO5.js +0 -78
  654. package/dist/run-XJXE63QH.js +0 -73
  655. package/dist/run-XJXE63QH.js.map +0 -1
  656. package/dist/scaffold-ad-6PZGNV3I.js +0 -1600
  657. package/dist/scaffold-ad-6PZGNV3I.js.map +0 -1
  658. package/dist/scaffold-static-ad-2QFZLGHK.js +0 -998
  659. package/dist/scaffold-static-ad-2QFZLGHK.js.map +0 -1
  660. package/dist/scaffold-video-5RUBD5YB.js +0 -888
  661. package/dist/scaffold-video-5RUBD5YB.js.map +0 -1
  662. package/dist/schedule-G2AETZEM.js +0 -65
  663. package/dist/schedule-G2AETZEM.js.map +0 -1
  664. package/dist/scheduled-agents-JJAT2UDK.js +0 -59
  665. package/dist/schema-CCGBDISR.js +0 -136
  666. package/dist/schema-CCGBDISR.js.map +0 -1
  667. package/dist/schema-WEIPH4ND.js +0 -241
  668. package/dist/search-7GBSNW7V.js +0 -229
  669. package/dist/search-7GBSNW7V.js.map +0 -1
  670. package/dist/select-OQQ6DG2X.js +0 -134
  671. package/dist/select-OQQ6DG2X.js.map +0 -1
  672. package/dist/set-HOITXI2N.js +0 -274
  673. package/dist/set-HOITXI2N.js.map +0 -1
  674. package/dist/set-prompt-ZR2FYPQW.js +0 -204
  675. package/dist/set-prompt-ZR2FYPQW.js.map +0 -1
  676. package/dist/setup-links-R55MLOHW.js +0 -145
  677. package/dist/setup-links-R55MLOHW.js.map +0 -1
  678. package/dist/shopify-GGDNTMXH.js +0 -4032
  679. package/dist/shopify-GGDNTMXH.js.map +0 -1
  680. package/dist/site-QM6WTCDR.js +0 -181
  681. package/dist/site-QM6WTCDR.js.map +0 -1
  682. package/dist/sources-E2EM2SNG.js +0 -30
  683. package/dist/sources-RI4IBRB3.js +0 -463
  684. package/dist/sources-RI4IBRB3.js.map +0 -1
  685. package/dist/stale-MBQ37TKC.js +0 -92
  686. package/dist/stale-MBQ37TKC.js.map +0 -1
  687. package/dist/status-FVVTWIY7.js +0 -68
  688. package/dist/status-FVVTWIY7.js.map +0 -1
  689. package/dist/stock-FT4NHZXJ.js +0 -213
  690. package/dist/stock-FT4NHZXJ.js.map +0 -1
  691. package/dist/sync-FZQUMCEN.js +0 -58
  692. package/dist/sync-FZQUMCEN.js.map +0 -1
  693. package/dist/sync-definition-AQVZ3JWE.js +0 -74
  694. package/dist/tags-35NZJVQH.js +0 -24
  695. package/dist/tags-35NZJVQH.js.map +0 -1
  696. package/dist/tags-FOPSMF5B.js +0 -24
  697. package/dist/tags-FOPSMF5B.js.map +0 -1
  698. package/dist/tags-GHXYLYCU.js +0 -26
  699. package/dist/tags-OPUZMCDP.js +0 -182
  700. package/dist/tags-OPUZMCDP.js.map +0 -1
  701. package/dist/tags-XYNTGG5R.js +0 -24
  702. package/dist/tags-XYNTGG5R.js.map +0 -1
  703. package/dist/targeting-criteria-HJGUXYDZ.js +0 -113
  704. package/dist/targets-ALLAKOF4.js +0 -110
  705. package/dist/targets-ALLAKOF4.js.map +0 -1
  706. package/dist/testimonials-RJGFPCWC.js +0 -32
  707. package/dist/top-companies-54CSTO3Q.js +0 -250
  708. package/dist/top-companies-54CSTO3Q.js.map +0 -1
  709. package/dist/transcript-P4VCJV4Y.js +0 -168
  710. package/dist/transcript-P4VCJV4Y.js.map +0 -1
  711. package/dist/translate-FFNWW66Z.js +0 -607
  712. package/dist/translate-FFNWW66Z.js.map +0 -1
  713. package/dist/triggers-VX4QYB7T.js +0 -148
  714. package/dist/triggers-VX4QYB7T.js.map +0 -1
  715. package/dist/unlink-FFH7O6HU.js +0 -73
  716. package/dist/unlink-FFH7O6HU.js.map +0 -1
  717. package/dist/unstage-RAWC4IZG.js +0 -92
  718. package/dist/unstage-RAWC4IZG.js.map +0 -1
  719. package/dist/update-6GLFLB2Z.js +0 -175
  720. package/dist/update-6GLFLB2Z.js.map +0 -1
  721. package/dist/update-OJ3OZCJP.js +0 -69
  722. package/dist/update-OJ3OZCJP.js.map +0 -1
  723. package/dist/update-TZ7D7JGT.js +0 -193
  724. package/dist/update-TZ7D7JGT.js.map +0 -1
  725. package/dist/update-ZD5O3VU7.js +0 -237
  726. package/dist/update-ZD5O3VU7.js.map +0 -1
  727. package/dist/upload-QA3ZAQ7I.js +0 -185
  728. package/dist/upload-QA3ZAQ7I.js.map +0 -1
  729. package/dist/url-params-D3QZKPUJ.js +0 -102
  730. package/dist/url-params-D3QZKPUJ.js.map +0 -1
  731. package/dist/validate-AHDXK4NQ.js +0 -180
  732. package/dist/validate-AHDXK4NQ.js.map +0 -1
  733. package/dist/videos-J45JFDMU.js +0 -41
  734. package/dist/viewer-check-NXF23BG5.js +0 -89
  735. package/dist/visuals-YCW3QLUS.js +0 -129
  736. package/dist/visuals-YCW3QLUS.js.map +0 -1
  737. package/dist/web-4AI7PPJ6.js +0 -180
  738. package/dist/web-4AI7PPJ6.js.map +0 -1
  739. package/dist/winning-ads-WRAW2TC5.js +0 -88
  740. package/dist/write-commands-Z2PWVPT6.js +0 -1555
  741. package/dist/write-commands-Z2PWVPT6.js.map +0 -1
  742. package/dist/x-KQMYVN43.js +0 -47
  743. /package/dist/{actions-U4QMVB4H.js.map → actions-KWHMTMLD.js.map} +0 -0
  744. /package/dist/{ads-T42GRQ7H.js.map → ads-7Q7PRFJ4.js.map} +0 -0
  745. /package/dist/{avatars-D7S43BGZ.js.map → avatars-PILXCCPG.js.map} +0 -0
  746. /package/dist/{campaigns-Q363NCWU.js.map → campaigns-XS52PZQL.js.map} +0 -0
  747. /package/dist/{canvas-T6ALQYZT.js.map → canvas-3AHETASK.js.map} +0 -0
  748. /package/dist/{check-6QZ2U6WJ.js.map → check-3SVCK3V3.js.map} +0 -0
  749. /package/dist/{chunk-RKGYVC2C.js.map → chunk-2CV2LEJN.js.map} +0 -0
  750. /package/dist/{chunk-I3HEOUZT.js.map → chunk-2PNBK7KZ.js.map} +0 -0
  751. /package/dist/{chunk-F7DCEGAA.js.map → chunk-3B7GRVIM.js.map} +0 -0
  752. /package/dist/{chunk-XDFXSMPX.js.map → chunk-3MJTL763.js.map} +0 -0
  753. /package/dist/{chunk-ATUFMGY3.js.map → chunk-4GM3TBGL.js.map} +0 -0
  754. /package/dist/{chunk-FEP257NO.js.map → chunk-5UG7AJB5.js.map} +0 -0
  755. /package/dist/{chunk-SBP7CF7S.js.map → chunk-AOXHDVWS.js.map} +0 -0
  756. /package/dist/{chunk-O2YPJPMO.js.map → chunk-AYW4VFTH.js.map} +0 -0
  757. /package/dist/{chunk-NLWOT26L.js.map → chunk-BMUAE5IR.js.map} +0 -0
  758. /package/dist/{chunk-ACIBARQU.js.map → chunk-BPQY4KIM.js.map} +0 -0
  759. /package/dist/{chunk-2BRVIOKO.js.map → chunk-BYYIJMLP.js.map} +0 -0
  760. /package/dist/{chunk-TVZCWBC5.js.map → chunk-CDU64GKK.js.map} +0 -0
  761. /package/dist/{chunk-E2BFPWA5.js.map → chunk-DA634ZIV.js.map} +0 -0
  762. /package/dist/{chunk-BDULC6LM.js.map → chunk-DJLTDVRD.js.map} +0 -0
  763. /package/dist/{chunk-GB2U76OM.js.map → chunk-GHEURTBN.js.map} +0 -0
  764. /package/dist/{chunk-JY2NBRHH.js.map → chunk-H2IG6MOX.js.map} +0 -0
  765. /package/dist/{chunk-KN2UAGSU.js.map → chunk-HVVE3GT6.js.map} +0 -0
  766. /package/dist/{chunk-P6Z44HNW.js.map → chunk-IAOXI7MJ.js.map} +0 -0
  767. /package/dist/{chunk-YNVE62WW.js.map → chunk-M6RQJCDW.js.map} +0 -0
  768. /package/dist/{chunk-6XOAPUW4.js.map → chunk-N5IR2T2B.js.map} +0 -0
  769. /package/dist/{chunk-ODDHGVQE.js.map → chunk-NZ3PQBRV.js.map} +0 -0
  770. /package/dist/{chunk-BPUNOSXM.js.map → chunk-NZFVC7RP.js.map} +0 -0
  771. /package/dist/{chunk-TJZKZKCQ.js.map → chunk-QLSNKH5D.js.map} +0 -0
  772. /package/dist/{chunk-AQHT2XKB.js.map → chunk-RN3IVT3B.js.map} +0 -0
  773. /package/dist/{chunk-LRWUQABW.js.map → chunk-RZOHIOPP.js.map} +0 -0
  774. /package/dist/{chunk-EMZ6P2KH.js.map → chunk-SELCZP76.js.map} +0 -0
  775. /package/dist/{chunk-MJ5JHMLF.js.map → chunk-T55DY36I.js.map} +0 -0
  776. /package/dist/{chunk-QNPOFQV5.js.map → chunk-T5FACY43.js.map} +0 -0
  777. /package/dist/{chunk-DIOKO2YD.js.map → chunk-TR72BZ4D.js.map} +0 -0
  778. /package/dist/{chunk-XFARJ2SL.js.map → chunk-UTOVP53O.js.map} +0 -0
  779. /package/dist/{chunk-WCCFBAH4.js.map → chunk-VDHPAQUM.js.map} +0 -0
  780. /package/dist/{chunk-QZMBPEUW.js.map → chunk-VPWLH6VS.js.map} +0 -0
  781. /package/dist/{chunk-LDF2VXPC.js.map → chunk-VXLFFMW6.js.map} +0 -0
  782. /package/dist/{chunk-CPRSVECH.js.map → chunk-VZQHMRYM.js.map} +0 -0
  783. /package/dist/{chunk-DZUYNVKJ.js.map → chunk-X4NF7IMQ.js.map} +0 -0
  784. /package/dist/{chunk-PSPSKOQR.js.map → chunk-X6CSCKXX.js.map} +0 -0
  785. /package/dist/{chunk-2XKSMHDO.js.map → chunk-Y4XW2LW3.js.map} +0 -0
  786. /package/dist/{chunk-INY6DR2Y.js.map → chunk-YAMDF3DT.js.map} +0 -0
  787. /package/dist/{chunk-3TWET6OD.js.map → chunk-YCCTIFI7.js.map} +0 -0
  788. /package/dist/{chunk-2FBSB7UF.js.map → chunk-YWHOPJG5.js.map} +0 -0
  789. /package/dist/{chunk-6H6BJBBS.js.map → chunk-Z7WMTBGD.js.map} +0 -0
  790. /package/dist/{companies-VM4DJCIO.js.map → companies-6FM3CALY.js.map} +0 -0
  791. /package/dist/{connect-4G722CGF.js.map → connect-J6M3W7WW.js.map} +0 -0
  792. /package/dist/{creatives-D2756SYZ.js.map → creatives-PW2P7VMU.js.map} +0 -0
  793. /package/dist/{customers-6X6LULB6.js.map → customers-OHB5EY7Z.js.map} +0 -0
  794. /package/dist/{fit-4CVULFD2.js.map → fit-BNMTWIDZ.js.map} +0 -0
  795. /package/dist/{ideas-HHWTU7F2.js.map → ideas-UK74GJGE.js.map} +0 -0
  796. /package/dist/{images-BB6BYS54.js.map → images-OH7KDUR5.js.map} +0 -0
  797. /package/dist/{ingest-S6HP4LXI.js.map → ingest-2BC3W4WC.js.map} +0 -0
  798. /package/dist/{inspect-KC5LTH4E.js.map → inspect-ZMCRHR2P.js.map} +0 -0
  799. /package/dist/{line-items-22S6PURM.js.map → line-items-RUC54PIV.js.map} +0 -0
  800. /package/dist/{media-sources-ZCXMQCSE.js.map → media-sources-KUEQ45V5.js.map} +0 -0
  801. /package/dist/{performance-7AXRRE5J.js.map → performance-BIH653SL.js.map} +0 -0
  802. /package/dist/{promoted-tweets-5Y6RGBJS.js.map → promoted-tweets-6YCNFVJK.js.map} +0 -0
  803. /package/dist/{reddit-OKEJ7EIX.js.map → reddit-Z4REP3DB.js.map} +0 -0
  804. /package/dist/{research-G7BDWYEG.js.map → research-M6YZMTCC.js.map} +0 -0
  805. /package/dist/{run-VGOXHEO5.js.map → run-MBVV64FY.js.map} +0 -0
  806. /package/dist/{scheduled-agents-JJAT2UDK.js.map → scheduled-agents-T7CITLJL.js.map} +0 -0
  807. /package/dist/{schema-WEIPH4ND.js.map → schema-6WONG4NR.js.map} +0 -0
  808. /package/dist/{sources-E2EM2SNG.js.map → sources-3RQZ3AR2.js.map} +0 -0
  809. /package/dist/{sync-definition-AQVZ3JWE.js.map → sync-definition-MR7XESTS.js.map} +0 -0
  810. /package/dist/{tags-GHXYLYCU.js.map → tags-I3AJEMKF.js.map} +0 -0
  811. /package/dist/{targeting-criteria-HJGUXYDZ.js.map → targeting-criteria-QFFAYBGE.js.map} +0 -0
  812. /package/dist/{testimonials-RJGFPCWC.js.map → testimonials-67Q3OTBU.js.map} +0 -0
  813. /package/dist/{videos-J45JFDMU.js.map → videos-URSOTIHU.js.map} +0 -0
  814. /package/dist/{viewer-check-NXF23BG5.js.map → viewer-check-N3SEOOMX.js.map} +0 -0
  815. /package/dist/{winning-ads-WRAW2TC5.js.map → winning-ads-TCRRYKCR.js.map} +0 -0
  816. /package/dist/{x-KQMYVN43.js.map → x-K6IWYLK3.js.map} +0 -0
@@ -0,0 +1,702 @@
1
+ import {
2
+ flowEventKeys,
3
+ parseFields,
4
+ renderMarkdown
5
+ } from "./chunk-YAMDF3DT.js";
6
+ import {
7
+ flowDataPath,
8
+ listFlowSlugs
9
+ } from "./chunk-UTOVP53O.js";
10
+ import {
11
+ FUNNEL_VERTICALS,
12
+ funnelRequestSchema
13
+ } from "./chunk-5YOMORZ2.js";
14
+ import "./chunk-T7GAC2WG.js";
15
+ import "./chunk-5TURKO4J.js";
16
+ import {
17
+ repeatedValues
18
+ } from "./chunk-ERSX3MKH.js";
19
+ import "./chunk-NYUWPJ4K.js";
20
+ import "./chunk-NKQWDEB7.js";
21
+ import {
22
+ parseEventKey
23
+ } from "./chunk-KLO3TPTS.js";
24
+ import {
25
+ outputFormatRefusal,
26
+ writeJsonEnvelope
27
+ } from "./chunk-65QWF5C5.js";
28
+ import "./chunk-ZJY3ACX3.js";
29
+ import "./chunk-RJHGIRU2.js";
30
+ import "./chunk-WCU362Z6.js";
31
+ import "./chunk-AFA4TY5Q.js";
32
+ import "./chunk-GIWHHCD6.js";
33
+ import "./chunk-PNGXJPM5.js";
34
+ import "./chunk-SOPVIIUW.js";
35
+ import "./chunk-G4FG5EQO.js";
36
+ import "./chunk-CS4VA3GQ.js";
37
+ import "./chunk-433NCHRS.js";
38
+ import {
39
+ ApiError,
40
+ apiPost
41
+ } from "./chunk-SZCEKDLE.js";
42
+ import "./chunk-2UFHCU7A.js";
43
+ import "./chunk-XQIAWIO5.js";
44
+ import {
45
+ layoutJson,
46
+ maskEnvelope,
47
+ maskRecord,
48
+ registerSchema,
49
+ unmatchedHint
50
+ } from "./chunk-2TEZDAAR.js";
51
+ import "./chunk-YQSBHWOI.js";
52
+
53
+ // src/commands/funnel/index.ts
54
+ import { readFileSync } from "fs";
55
+ import { defineCommand } from "citty";
56
+
57
+ // src/commands/funnel/formMoments.ts
58
+ function offeredEndings(form) {
59
+ return flowEventKeys(form.tree, form.slug).filter((ending) => ending.isCompletion || ending.nodeId === null);
60
+ }
61
+ function formMoments(events, forms, counted) {
62
+ const endings = /* @__PURE__ */ new Map();
63
+ for (const form of forms) {
64
+ for (const ending of offeredEndings(form)) endings.set(ending.eventKey, { slug: form.slug, ending });
65
+ }
66
+ const known = events.map((event) => {
67
+ const found = endings.get(event.eventKey);
68
+ if (found === void 0) return event;
69
+ endings.delete(event.eventKey);
70
+ return { ...event, step: found.ending.nodeName };
71
+ });
72
+ const unfired = [...endings.values()].map(({ slug, ending }) => {
73
+ const countedAs = counted.get(ending.eventKey);
74
+ return {
75
+ eventKey: ending.eventKey,
76
+ origin: "site",
77
+ flowSlug: slug,
78
+ ...ending.nodeType === null ? {} : { nodeType: ending.nodeType },
79
+ events: 0,
80
+ sessions: 0,
81
+ step: ending.nodeName,
82
+ seen: false,
83
+ ...countedAs === void 0 ? {} : { countedAs }
84
+ };
85
+ });
86
+ return [...known, ...unfired];
87
+ }
88
+ function withFormMoments(moments, forms, counted) {
89
+ return { ...moments, events: formMoments(moments.events, forms, counted) };
90
+ }
91
+ function narrowMoments(moments, filter) {
92
+ const words = filter.search?.toLowerCase();
93
+ const matches = (...values) => words === void 0 || values.some((value) => value?.toLowerCase().includes(words));
94
+ const events = moments.events.filter(
95
+ (event) => (filter.flow === void 0 || event.flowSlug === filter.flow) && matches(event.eventKey, event.flowSlug, event.step, event.countedAs)
96
+ );
97
+ const narrowed = filter.flow === void 0 ? {
98
+ events,
99
+ sources: moments.sources.filter((source) => matches(source.eventKey, source.name)),
100
+ landings: moments.landings.filter((landing) => matches(landing.landingId, landing.title, landing.slug))
101
+ } : { events };
102
+ const found = Object.values(narrowed).reduce((total, rows) => total + rows.length, 0);
103
+ if (found > 0) return { moments: narrowed, hints: [] };
104
+ const forms = [...new Set(moments.events.flatMap((event) => event.flowSlug ? [event.flowSlug] : []))].sort();
105
+ const asked = [filter.flow && `the Form "${filter.flow}"`, filter.search && `"${filter.search}"`].filter(Boolean);
106
+ return {
107
+ moments: narrowed,
108
+ hints: [
109
+ `Nothing in the moments matches ${asked.join(" and ")}. ${forms.length === 0 ? "No Form has an ending here yet." : `The Forms with endings here: ${forms.join(", ")}.`} Run \`baker funnel --moments\` without --flow or --search for everything.`
110
+ ]
111
+ };
112
+ }
113
+ function formsNamedHere(forms) {
114
+ return forms.filter((form) => flowEventKeys(form.tree, form.slug).length > 0).map((form) => form.slug);
115
+ }
116
+ function unplacedFormHints(steps, forms, counted) {
117
+ const onAStep = new Set(
118
+ steps.flatMap((step) => (step.triggers ?? []).flatMap((trigger) => trigger.eventKey ? [trigger.eventKey] : []))
119
+ );
120
+ const unplaced = [];
121
+ for (const form of forms) {
122
+ const endings = flowEventKeys(form.tree, form.slug);
123
+ if (endings.length === 0 || endings.some((ending) => onAStep.has(ending.eventKey))) continue;
124
+ const countedOn = endings.filter((ending) => counted.has(ending.eventKey));
125
+ unplaced.push(
126
+ countedOn.length === 0 ? form.slug : `${form.slug} (counted as ${countedOn.map((ending) => `"${counted.get(ending.eventKey)}" on \`${ending.eventKey}\``).join(", ")})`
127
+ );
128
+ }
129
+ if (unplaced.length === 0) return [];
130
+ return [
131
+ `${unplaced.length} Form(s) in this workspace reach no funnel step, so they move nobody along it however many people finish them: ${unplaced.join("; ")}. Which ending moves somebody to which step is your call: \`baker funnel --moments\` lists every Form's endings by the step each happens on, and when the step names do not make it obvious \u2014 a Form that branches into a rejection and a confirmation \u2014 ask the person which one means a lead or a customer. Place it with \`baker funnel --add-trigger <step> --event <key>\`. A Form already counted as a page conversion goes on the funnel by THAT SAME key, or the two numbers disagree for ever.`
132
+ ];
133
+ }
134
+
135
+ // src/commands/funnel/funnelArgs.ts
136
+ var FunnelArgsError = class extends Error {
137
+ /** Structured remediation, in the shape the CLI's error envelope carries. */
138
+ fix;
139
+ constructor(message, fix) {
140
+ super(message);
141
+ this.name = "FunnelArgsError";
142
+ if (fix) {
143
+ this.fix = fix;
144
+ }
145
+ }
146
+ };
147
+ function parseFunnelArgs(raw, rawArgs) {
148
+ const steps = parseSteps(raw.steps);
149
+ const step = parseStep(raw.step);
150
+ const removeStep = parseRemoveStep(raw["remove-step"] ?? raw.removeStep);
151
+ const preset = parsePreset(raw.preset);
152
+ const { addTrigger, removeTrigger } = parseWaysIn(raw, rawArgs);
153
+ const doors = [steps, step, removeStep, preset, addTrigger, removeTrigger].filter(
154
+ (door) => door !== void 0
155
+ ).length;
156
+ if (doors > 1) {
157
+ throw new FunnelArgsError(
158
+ "Give one of --steps, --step, --remove-step, --preset, --add-trigger or --remove-trigger, not two."
159
+ );
160
+ }
161
+ const days = raw.days === void 0 ? void 0 : Number(raw.days);
162
+ if (days !== void 0 && (!Number.isInteger(days) || days <= 0 || days > 400)) {
163
+ throw new FunnelArgsError("--days must be a whole number of days, from 1 to 400.");
164
+ }
165
+ const momentsFilter = parseMomentsFilter(raw);
166
+ return {
167
+ ...steps === void 0 ? {} : { steps },
168
+ ...step === void 0 ? {} : { step },
169
+ ...removeStep === void 0 ? {} : { removeStep },
170
+ ...preset === void 0 ? {} : { preset },
171
+ ...addTrigger === void 0 ? {} : { addTrigger },
172
+ ...removeTrigger === void 0 ? {} : { removeTrigger },
173
+ templates: raw.templates === true,
174
+ moments: raw.moments === true || momentsFilter !== void 0,
175
+ ...momentsFilter === void 0 ? {} : { momentsFilter },
176
+ ...days === void 0 ? {} : { days }
177
+ };
178
+ }
179
+ function parseWaysIn(raw, rawArgs) {
180
+ const events = eventKeysGiven(repeatedValues(rawArgs, "event", raw.event));
181
+ const fromConversion = parseFromConversion(raw["from-conversion"]);
182
+ const addTrigger = parseWayIn(raw["add-trigger"] ?? raw.addTrigger, events, "--add-trigger", fromConversion);
183
+ const removeTrigger = parseWayIn(raw["remove-trigger"] ?? raw.removeTrigger, events, "--remove-trigger");
184
+ if (fromConversion !== void 0 && addTrigger === void 0) {
185
+ throw new FunnelArgsError(
186
+ '--from-conversion only goes with --add-trigger: `--add-trigger lead --from-conversion "Form submitted"`.'
187
+ );
188
+ }
189
+ return {
190
+ ...addTrigger === void 0 ? {} : { addTrigger },
191
+ ...removeTrigger === void 0 ? {} : { removeTrigger }
192
+ };
193
+ }
194
+ function parseMomentsFilter(raw) {
195
+ const flow = optionalText(raw.flow, "--flow takes a Form's slug: `--moments --flow quote-request`.");
196
+ const search = optionalText(raw.search, "--search takes the words to look for: `--moments --search booking`.");
197
+ if (flow === void 0 && search === void 0) return void 0;
198
+ return { ...flow === void 0 ? {} : { flow }, ...search === void 0 ? {} : { search } };
199
+ }
200
+ function optionalText(raw, refusal) {
201
+ if (raw === void 0) return void 0;
202
+ if (typeof raw !== "string" || raw.trim() === "") throw new FunnelArgsError(refusal);
203
+ return raw.trim();
204
+ }
205
+ function funnelWrite(args2) {
206
+ const body = {
207
+ ...args2.steps === void 0 ? {} : { steps: args2.steps },
208
+ ...args2.step === void 0 ? {} : { step: args2.step },
209
+ ...args2.removeStep === void 0 ? {} : { removeStep: args2.removeStep },
210
+ ...args2.preset === void 0 ? {} : { preset: args2.preset },
211
+ ...args2.addTrigger === void 0 ? {} : { addTrigger: args2.addTrigger },
212
+ ...args2.removeTrigger === void 0 ? {} : { removeTrigger: args2.removeTrigger },
213
+ ...args2.templates ? { templates: true } : {},
214
+ ...args2.moments ? { moments: true } : {},
215
+ ...args2.days === void 0 ? {} : { days: args2.days }
216
+ };
217
+ const parsed = funnelRequestSchema.safeParse(body);
218
+ if (!parsed.success) {
219
+ const issue = parsed.error.issues[0];
220
+ throw new FunnelArgsError(
221
+ `That funnel cannot be sent \u2014 ${issue?.path.join(".") || "steps"}: ${issue?.message ?? "invalid"}`,
222
+ {
223
+ action: "read_the_schema",
224
+ explanation: "Run `baker schema funnel` for the exact shape of one step, or `baker funnel --templates` for sixteen worked examples plus every field an event carries."
225
+ }
226
+ );
227
+ }
228
+ return parsed.data;
229
+ }
230
+ function parseSteps(raw) {
231
+ if (raw === void 0) {
232
+ return void 0;
233
+ }
234
+ if (typeof raw !== "string") {
235
+ throw new FunnelArgsError("--steps takes a JSON array of steps.");
236
+ }
237
+ let parsed;
238
+ try {
239
+ parsed = JSON.parse(raw);
240
+ } catch (cause) {
241
+ throw new FunnelArgsError(`--steps is not valid JSON: ${cause instanceof Error ? cause.message : "parse failed"}`, {
242
+ action: "quote_the_json",
243
+ explanation: `Wrap the whole array in single quotes so the shell leaves the double quotes alone: --steps '[{"key":"lead",...}]'.`
244
+ });
245
+ }
246
+ if (!Array.isArray(parsed)) {
247
+ throw new FunnelArgsError("--steps takes an ARRAY of steps, even when the funnel has one step.");
248
+ }
249
+ refuseRetiredShapes(parsed);
250
+ return parsed;
251
+ }
252
+ function parseStep(raw) {
253
+ if (raw === void 0) {
254
+ return void 0;
255
+ }
256
+ if (typeof raw !== "string") {
257
+ throw new FunnelArgsError("--step takes one step as a JSON object.");
258
+ }
259
+ let parsed;
260
+ try {
261
+ parsed = JSON.parse(raw);
262
+ } catch (cause) {
263
+ throw new FunnelArgsError(`--step is not valid JSON: ${cause instanceof Error ? cause.message : "parse failed"}`, {
264
+ action: "quote_the_json",
265
+ explanation: `Wrap the object in single quotes so the shell leaves the double quotes alone: --step '{"key":"demo",...}'.`
266
+ });
267
+ }
268
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
269
+ throw new FunnelArgsError("--step takes ONE step as an object. To restate several, use --steps with an array.");
270
+ }
271
+ refuseRetiredShapes([parsed]);
272
+ return parsed;
273
+ }
274
+ function parseRemoveStep(raw) {
275
+ if (raw === void 0) {
276
+ return void 0;
277
+ }
278
+ if (typeof raw !== "string" || raw.trim() === "") {
279
+ throw new FunnelArgsError("--remove-step takes the key of the step to take off, as `baker funnel` lists it.");
280
+ }
281
+ return raw.trim();
282
+ }
283
+ function refuseRetiredShapes(steps) {
284
+ for (const step of steps) {
285
+ if (typeof step !== "object" || step === null) continue;
286
+ const key = String(step.key ?? "?");
287
+ if ("offlineConversions" in step) {
288
+ throw new FunnelArgsError(`Step "${key}" puts sends on the step, and a send belongs to the conversion.`, {
289
+ action: "set_sends_on_the_conversion",
290
+ explanation: "Drop `offlineConversions`. Name the outcome with `baker analytics conversions`, then `baker analytics sends --set --conversion <name> --platform <p> --tag <tagId> --event <e>`; the step reads its conversions' sends back as `sends[]`."
291
+ });
292
+ }
293
+ const triggers = step.triggers;
294
+ if (!Array.isArray(triggers)) continue;
295
+ const kinds = triggers.map(
296
+ (trigger) => typeof trigger === "object" && trigger !== null ? trigger.kind : void 0
297
+ );
298
+ if (kinds.includes("analytics") || kinds.includes("conversion")) {
299
+ const word = kinds.includes("analytics") ? "analytics" : "conversion";
300
+ throw new FunnelArgsError(
301
+ `Step "${key}" has a \`${word}\` trigger, and a step is reached by an event or a landing only.`,
302
+ {
303
+ action: "use_an_event_trigger",
304
+ explanation: 'Pick the moment from `baker funnel --moments` and write it as `{"kind":"event","eventKey":"<from moments.events or moments.sources>"}` \u2014 nothing has to be named first. A landing is `{"kind":"landing","landingId":"<from moments.landings>"}`.'
305
+ }
306
+ );
307
+ }
308
+ }
309
+ }
310
+ function parsePreset(raw) {
311
+ if (raw === void 0) {
312
+ return void 0;
313
+ }
314
+ if (typeof raw !== "string" || !FUNNEL_VERTICALS.includes(raw)) {
315
+ throw new FunnelArgsError(`--preset must be one of: ${FUNNEL_VERTICALS.join(", ")}`, {
316
+ action: "list_the_presets",
317
+ explanation: "Run `baker funnel --templates` to see what each preset contains before picking one."
318
+ });
319
+ }
320
+ return raw;
321
+ }
322
+ function eventKeysGiven(values) {
323
+ const keys = values.flatMap((value) => value.split(",")).map((key) => key.trim());
324
+ return [...new Set(keys.filter((key) => key !== ""))];
325
+ }
326
+ function parseFromConversion(raw) {
327
+ if (raw === void 0) return void 0;
328
+ if (typeof raw !== "string" || raw.trim() === "") {
329
+ throw new FunnelArgsError(
330
+ "--from-conversion takes the name of a page conversion, as `baker analytics conversions` lists it."
331
+ );
332
+ }
333
+ return raw.trim();
334
+ }
335
+ function parseWayIn(stepKey, eventKeys, flag, fromConversion) {
336
+ if (stepKey === void 0) return void 0;
337
+ if (typeof stepKey !== "string" || stepKey.trim() === "") {
338
+ throw new FunnelArgsError(`${flag} takes the key of the step to change: \`${flag} lead\`.`);
339
+ }
340
+ if (eventKeys.length === 0 && fromConversion === void 0) {
341
+ throw new FunnelArgsError(`${flag} needs --event, naming what gets somebody there.`, {
342
+ action: "read_the_moments",
343
+ explanation: `Run \`baker funnel --moments\` and copy an \`events[].eventKey\` \u2014 a Form's own outcome is listed there at zero before anybody has filled it in. Then: \`${flag} ${stepKey.trim()} --event "<key>"\` (repeat --event for several).`
344
+ });
345
+ }
346
+ const unmatchable = flag === "--add-trigger" ? eventKeys.filter((key) => parseEventKey(key) === null) : [];
347
+ if (unmatchable.length > 0) {
348
+ throw new FunnelArgsError(
349
+ `${unmatchable.map((key) => `"${key}"`).join(", ")} ${unmatchable.length === 1 ? "is not an event key" : "are not event keys"}, so nothing would ever reach that step through ${unmatchable.length === 1 ? "it" : "them"}. Nothing was changed.`,
350
+ {
351
+ action: "read_the_moments",
352
+ explanation: "Run `baker funnel --moments` and copy an `events[].eventKey`. They look like form:<form>:<step>:<trigger>, submit:<form>, page:<name> or view:<landing>."
353
+ }
354
+ );
355
+ }
356
+ return {
357
+ stepKey: stepKey.trim(),
358
+ eventKeys: [...eventKeys],
359
+ ...fromConversion === void 0 ? {} : { fromConversion }
360
+ };
361
+ }
362
+
363
+ // src/commands/funnel/markdown.ts
364
+ var FUNNEL_OUTPUT_FORMATS = ["json", "md"];
365
+ function renderFunnelMarkdown(data, hints, fields) {
366
+ return renderTables(funnelTables(data), hints, fields);
367
+ }
368
+ function renderMomentsMarkdown(moments, hints, fields) {
369
+ return renderTables(momentsTables(moments), hints, fields);
370
+ }
371
+ function renderWriteMarkdown(answer, hints, fields) {
372
+ const { version, staged, removed, step, waysIn, moments } = answer;
373
+ const cell = (value) => Array.isArray(value) ? value.length === 0 ? "none" : value.join(", ") : value;
374
+ return renderTables(
375
+ {
376
+ funnel: { version, staged, removed: removed.length === 0 ? "none" : removed.join(", ") },
377
+ ...step === void 0 ? {} : { steps: [summaryCells(step)] },
378
+ ...waysIn === void 0 ? {} : { waysIn: [Object.fromEntries(Object.entries(waysIn).map(([key, value]) => [key, cell(value)]))] },
379
+ ...moments === void 0 ? {} : momentsTables(moments)
380
+ },
381
+ hints,
382
+ fields
383
+ );
384
+ }
385
+ function momentsTables(moments) {
386
+ return Object.fromEntries(Object.entries(moments).map(([list, rows]) => [`moments.${list}`, rows]));
387
+ }
388
+ function renderTables(tables, hints, fields) {
389
+ if (fields === void 0) {
390
+ return renderMarkdown({ hints, data: escapedTables(tables) });
391
+ }
392
+ const summary = tables.funnel ?? {};
393
+ const summaryKeysOf = (field) => {
394
+ if (field === "funnel") return tables.funnel === void 0 ? null : Object.keys(summary);
395
+ const key = field.startsWith("funnel.") ? field.slice("funnel.".length) : field;
396
+ return key in summary ? [key] : null;
397
+ };
398
+ const summaryFields = [...new Set(fields.flatMap((field) => summaryKeysOf(field) ?? []))];
399
+ const otherFields = fields.filter((field) => summaryKeysOf(field) === null);
400
+ const miss = otherFields.length === 0 ? null : unmatchedHint(tables, otherFields);
401
+ return renderMarkdown({
402
+ hints: miss === null ? hints : [...hints, miss],
403
+ data: escapedTables({
404
+ ...otherFields.length === 0 ? {} : maskRecord(tables, otherFields),
405
+ ...summaryFields.length === 0 ? {} : { funnel: maskRecord(summary, summaryFields) }
406
+ })
407
+ });
408
+ }
409
+ function funnelTables(data) {
410
+ const { steps, moments, version, staged, window, worstStep, removed, counted: _counted, ...rest } = data;
411
+ return {
412
+ funnel: {
413
+ version,
414
+ staged,
415
+ ...window === void 0 ? {} : { window: `${window.startDate} to ${window.endDate} (${window.days} days)` },
416
+ ...worstStep === void 0 ? {} : { worstStep },
417
+ ...removed === void 0 ? {} : { removed: removed.length === 0 ? "none" : removed.join(", ") }
418
+ },
419
+ steps: steps.map(stepRow),
420
+ ...moments === void 0 ? {} : momentsTables(moments),
421
+ ...rest
422
+ };
423
+ }
424
+ function escapedCell(value) {
425
+ if (typeof value === "string") return value.replace(/\|/g, "\\|").replace(/\r?\n/g, " ");
426
+ if (Array.isArray(value)) return value.map(escapedCell);
427
+ if (typeof value === "object" && value !== null) {
428
+ return Object.fromEntries(Object.entries(value).map(([key, inner]) => [key, escapedCell(inner)]));
429
+ }
430
+ return value;
431
+ }
432
+ function escapedTables(tables) {
433
+ return Object.fromEntries(
434
+ Object.entries(tables).map(([key, value]) => [key, Array.isArray(value) ? escapedCell(value) : value])
435
+ );
436
+ }
437
+ function stepSummary(step) {
438
+ return {
439
+ key: step.key,
440
+ displayName: step.displayName,
441
+ stepClass: step.stepClass,
442
+ after: step.after,
443
+ people: step.people,
444
+ atLeast: step.atLeast,
445
+ before: step.before,
446
+ share: step.share,
447
+ events: step.events,
448
+ money: step.money,
449
+ waysIn: step.triggers.length,
450
+ sends: step.sends
451
+ };
452
+ }
453
+ function stepRow(step) {
454
+ return summaryCells(stepSummary(step));
455
+ }
456
+ function summaryCells(summary) {
457
+ return {
458
+ ...summary,
459
+ money: summary.money === void 0 ? void 0 : Object.entries(summary.money).map(([currency, amount]) => `${amount} ${currency}`).join(", "),
460
+ sends: summary.sends.map((send) => `${send.platform} ${send.event}${send.outcome === void 0 ? "" : ` (${send.outcome})`}`).join("; ")
461
+ };
462
+ }
463
+
464
+ // src/commands/funnel/index.ts
465
+ var args = {
466
+ steps: {
467
+ type: "string",
468
+ description: 'The WHOLE funnel, as a JSON array. One object per step: {"key":"meeting_held","displayName":"Demo held","stepClass":"engaged","after":["lead"],"triggers":[{"id":"t1","kind":"event","eventKey":"page:demo_held"}]}. It REPLACES the funnel rather than adding to it, so read first and restate everything you want to keep. `key` is permanent and reaches reporting and URLs (lowercase, digits, underscores); `displayName` is the client\'s own words and can be anything. `stepClass` is the stage, one of visited, lead, engaged, customer, repeat, lost \u2014 six plain words every business has, used to compare one company\'s funnel with another\'s. `after` is a LIST, so two ways into one step is expressible and normal. `triggers` is what MOVES somebody onto the step, any one of them being enough, and there are three kinds: `{"id":"t1","kind":"event","eventKey":"submit:contact"}` for anything the company\'s Forms, pages or systems produced, used by its own key with nothing named first; `{"id":"t2","kind":"landing","landingId":"<from --moments>"}` for one landing page being viewed; `{"id":"t3","kind":"any_landing"}` for any landing being viewed. Take every key and id from `--moments`. A trigger carries no amount: an event is worth what it says, and a step is worth the sum. Where a step SENDS its people is not written here: a send belongs to the system\'s event (`baker analytics sends`), and the step reads it back as `sends[]`',
469
+ required: false
470
+ },
471
+ step: {
472
+ type: "string",
473
+ description: 'ONE step as a JSON object, in the same shape as an entry of --steps. It is added to the funnel as it now stands, or replaces the step with the same `key`, and every other step is left exactly as it is \u2014 the door for adding or changing a stage without restating the rest. Example: --step \'{"key":"demo","displayName":"Demo held","stepClass":"engaged","after":["lead"],"triggers":[{"id":"t1","kind":"event","eventKey":"page:demo_held"}]}\'',
474
+ required: false
475
+ },
476
+ "add-trigger": {
477
+ type: "string",
478
+ description: 'The key of ONE step to add ways in to, with `--event` naming what gets somebody there: `--add-trigger lead --event "submit:contact"`. Start here for "this Form should count as a lead" \u2014 it adds those ways in and leaves the step\'s name, stage, `after[]` and every other trigger exactly as they are. SEVERAL FORMS IN ONE CALL: repeat `--event` (or comma-separate the keys) \u2014 `--add-trigger lead --event submit:contact --event submit:quote` \u2014 or take every key a page conversion counts with `--from-conversion "Form submitted"`; never loop over calls. All or nothing: one key it cannot add refuses the lot. The answer is the step and `waysIn` (`added`, and `unchanged` for keys the step already listened for \u2014 counted rather than listed when a call names more than five keys), not the whole funnel \u2014 `--full` for that. Prefer it to `--step`, which takes a WHOLE step and therefore silently removes any trigger the restatement forgets. Take the keys from `--moments`, never from memory',
479
+ required: false
480
+ },
481
+ "remove-trigger": {
482
+ type: "string",
483
+ description: 'The key of ONE step to take ways in OFF, with `--event` naming which: `--remove-trigger lead --event "submit:contact"` (repeat `--event` for several, in one call). By event key rather than by trigger id, because the id is not something you ever saw. All or nothing: a key the step does not listen for refuses the lot, naming the keys it does. Everything else about the step is untouched',
484
+ required: false
485
+ },
486
+ event: {
487
+ type: "string",
488
+ description: "The event key `--add-trigger` or `--remove-trigger` acts on \u2014 an `events[].eventKey` from `--moments`, never invented. REPEATABLE, or comma-separated: every key given is one write. Every Form's endings are listed there by the step each happens on, at zero before anybody has filled the Form in (`--moments --flow <slug>` for one Form's); which one means the step is your decision",
489
+ required: false
490
+ },
491
+ "from-conversion": {
492
+ type: "string",
493
+ description: 'With `--add-trigger`: every event key this company counts under that page conversion name (as `baker analytics conversions` lists it, this chat\'s staged counts included) becomes a way in \u2014 `baker funnel --add-trigger lead --from-conversion "Form submitted"`. The usual wiring, since a step and its conversion should use the same keys. Combines with `--event`. A name nothing is counted under is refused with the names that are',
494
+ required: false
495
+ },
496
+ "remove-step": {
497
+ type: "string",
498
+ description: "The key of one step to take off the funnel. Whatever came after it moves up to whatever came before it, so the chain stays joined. The response lists it under `removed`",
499
+ required: false
500
+ },
501
+ preset: {
502
+ type: "string",
503
+ description: `Draw one of the ready-made graphs instead of stating steps: b2b_sales, b2b_inbound, saas_self_serve, saas_sales_assisted, ecommerce_purchase. It draws over the whole funnel \u2014 every company already has one, so prefer --step to change a step. Run --templates first to see what each one contains. With a Shopify store connected, ecommerce_purchase comes wired to the store's own events (page:view_item, page:add_to_cart, page:begin_checkout, and page:purchase for a paid order); "Ordered again" stays unwired`,
504
+ required: false
505
+ },
506
+ moments: {
507
+ type: "boolean",
508
+ description: "Also return everything a trigger can name, so a trigger is PICKED rather than invented, under `data.moments` \u2014 `data.moments.events`, `data.moments.sources`, `data.moments.landings`. Wiring one Form? `--moments --flow <slug>` answers with that Form's endings only. `events` (every event this company's Forms, pages and systems produced in the window, with volume, the Form it belongs to, `origin` \u2014 `site` for a page or Form, `systems` for the client's own server, `both` \u2014 and `countedAs` when the company also counts it as a page conversion, which a trigger does not need; PLUS **every workspace Form's endings** \u2014 each step's completion and its `submit:` \u2014 with the `step` each happens on, at zero and `seen: false` until somebody fires one, so a Form built minutes ago is pickable with nothing set up first, and `countedAs` when the company already counts it. Nothing is marked as the outcome: which ending means a step is YOUR decision \u2014 read the step names, and ask the person when they do not make it obvious (a Form that branches into \u201CNot a fit\u201D and \u201CQuote confirmed\u201D). If the Form is already counted, use that same key, so the step and the conversion agree. `baker analytics conversions --flow <slug>` also lists a widget's housekeeping), `sources` (the client's own systems that post events to Baker, by the `page:<name>` key each raises, pickable before its first send arrives) and `landings` (its pages, by the id a `landing` trigger takes). Use this before writing any `triggers`: a key typed from memory saves, publishes and counts nobody forever. A Form's events need NOTHING set up first \u2014 no Source, no conversion: a Baker page raises them by itself",
509
+ required: false
510
+ },
511
+ flow: {
512
+ type: "string",
513
+ description: "With --moments (implies it): only that Form's endings, by its slug \u2014 `baker funnel --moments --flow quote-request` answers with the keys to wire that Form and nothing else, where the whole list is every event, source and landing the company has. Sources and landings belong to no Form, so they are left out, and so is the funnel itself (the plain read has it). Beside a write, the answer is still the write's own, with the narrowed moments in it",
514
+ required: false
515
+ },
516
+ search: {
517
+ type: "string",
518
+ description: "With --moments (implies it): only the events, sources and landings whose key, Form, step, name or title holds these words, in any case \u2014 `--moments --search booking`. Combines with --flow",
519
+ required: false
520
+ },
521
+ days: {
522
+ type: "string",
523
+ description: "How many days the counts beside each step cover (default 30, up to 400). Every step comes back with `people` (reached it), `atLeast` (reached it or anything after it), `before` (got as far as the step before) and `share` (atLeast / before) \u2014 counted in PEOPLE across visits and devices, not in visits",
524
+ required: false
525
+ },
526
+ templates: {
527
+ type: "boolean",
528
+ description: "Also return the libraries: the suggested steps with their stages, the presets, and `stages[]` (the six stages with the test to apply). Where a step can be sent is not here \u2014 a send belongs to the system's event, and `baker analytics sends` lists the platforms and the tags that can send",
529
+ required: false
530
+ },
531
+ output: {
532
+ type: "string",
533
+ description: 'json (default) | md. `md` prints the funnel as one table, a row per step \u2014 key, name, stage, after, people, atLeast, before, share, `waysIn` (how many triggers reach it) and `sends` (platform, event and what happened) \u2014 with the hints above it: a few hundred bytes where the JSON lists every trigger of every step. Start here for "how many people reached each step": `baker funnel --output md`. Stay on json when you are about to wire a step, because only json lists each trigger\'s event key. Works with every other flag; `--moments` and `--templates` come back as tables too',
534
+ required: false
535
+ },
536
+ fields: {
537
+ type: "string",
538
+ description: "Only these columns, comma-separated, in either format: `--output md --fields key,displayName,people,share` prints a four-column step table. A name no row carries comes back as a hint listing the columns there are",
539
+ required: false
540
+ },
541
+ full: {
542
+ type: "boolean",
543
+ description: "On a write to one step (--add-trigger, --remove-trigger, --step, --remove-step): answer with the whole funnel, every step and every trigger, instead of the step it changed and `waysIn` (what the write added, already had, or took off). `--steps` and `--preset` always answer with the whole funnel",
544
+ required: false
545
+ },
546
+ json: {
547
+ type: "boolean",
548
+ description: "The JSON envelope, which is already the default \u2014 the same as --output json",
549
+ required: false
550
+ }
551
+ };
552
+ registerSchema({
553
+ command: "funnel",
554
+ description: "Read the company's funnel, or draw one",
555
+ args
556
+ });
557
+ var funnelCommand = defineCommand({
558
+ meta: {
559
+ name: "funnel",
560
+ description: 'Start here: run with no flags to see the funnel this company has, with the last 30 days of PEOPLE counted beside every step \u2014 `people` reached it, `atLeast` got at least that far, `before` got as far as the step before, `share` is the ratio, and `worstStep` names where the most people are lost. Every company has one from the day it exists: Visited (any landing) \u2192 Became a lead \u2192 Became a customer, the last two with no way in until somebody gives them one. Then `--moments` for everything a trigger can name (every event the company\'s Forms, pages and systems produced, its sources, its landings, plus each Form\'s own outcome at zero), at `data.moments.{events,sources,landings}` \u2014 `--moments --flow <slug>` for one Form\'s endings only, `--search <words>` to narrow by words. **To make an event count on a step \u2014 the usual job \u2014 use `--add-trigger <step> --event <key>`:** it adds that way in and touches nothing else about the step. Several Forms are ONE call: repeat `--event`, or `--from-conversion "<name>"` for every key a page conversion counts; it answers with the step and `waysIn`, not the whole funnel (`--full` for that). `--step \'<json>\'` is for adding or renaming a STEP; it replaces the step with that key, so it means restating its `after` and every trigger it keeps, and one left out is gone. A step is reached by three kinds of thing and nothing else: an event by its own key (`{"id":"t1","kind":"event","eventKey":"<from moments.events or moments.sources>"}`), one landing being viewed (`{"id":"t2","kind":"landing","landingId":"<from moments.landings>"}`) or any landing (`{"id":"t3","kind":"any_landing"}`). Nothing has to be named first. Pick every trigger from `--moments`, never from memory. A step with no `triggers` advances NOBODY and reports zero forever without warning \u2014 that is what the hints keep pointing at. There is no default door: a Form is only counted where a trigger names it. Keep it true: a chat that adds a Form, a Source or an event that moves people forward places it on its step in the same chat. Each step comes back with `sends[]`, read-only: where the people who reach it are sent and what happened, read off the system events behind its ways in. A send is set on the event with `baker analytics sends`, never on a step, and once published it spends ad budget \u2014 a failed one is named in the hints. Everything here is STAGED: it becomes the company\'s funnel in one piece when the chat is published \u2014 the client sees it on the canvas in this chat and can edit it there too \u2014 and the previous version stays on file so what was already measured under it is not lost.'
561
+ },
562
+ args,
563
+ run: async ({ args: raw, rawArgs }) => {
564
+ try {
565
+ const parsed = parseFunnelArgs(raw, rawArgs);
566
+ const format = raw.output === void 0 ? "json" : String(raw.output);
567
+ const refusal = outputFormatRefusal(format, FUNNEL_OUTPUT_FORMATS);
568
+ if (refusal !== null) throw new FunnelArgsError(refusal);
569
+ const forms = workspaceForms();
570
+ const namedByCaller = formsNamedHere(forms);
571
+ const request = {
572
+ ...funnelWrite(parsed),
573
+ ...namedByCaller.length === 0 ? {} : { namedByCaller }
574
+ };
575
+ const response = await apiPost("/api/funnel", request);
576
+ const counted = new Map((response.data.counted ?? []).map((row) => [row.eventKey, row.name]));
577
+ const data = response.data.moments === void 0 ? response.data : { ...response.data, moments: withFormMoments(response.data.moments, forms, counted) };
578
+ const hints = [...response.hints ?? [], ...unplacedFormHints(response.data.steps ?? [], forms, counted)];
579
+ const fields = parseFields(raw.fields);
580
+ const narrowed = parsed.momentsFilter === void 0 || data.moments === void 0 ? void 0 : narrowMoments(data.moments, parsed.momentsFilter);
581
+ printAnswer({ format, fields, data, hints, narrowed, request, full: raw.full === true });
582
+ } catch (err) {
583
+ handleError(err);
584
+ }
585
+ }
586
+ });
587
+ function printAnswer(call) {
588
+ const { format, fields, data, narrowed, request } = call;
589
+ const hints = narrowed === void 0 ? call.hints : [...call.hints, ...narrowed.hints];
590
+ if (narrowed !== void 0 && !isWrite(request)) {
591
+ printOut(
592
+ format,
593
+ fields,
594
+ { moments: narrowed.moments },
595
+ hints,
596
+ () => renderMomentsMarkdown(narrowed.moments, hints, fields)
597
+ );
598
+ return;
599
+ }
600
+ const shown = narrowed === void 0 ? data : { ...data, moments: narrowed.moments };
601
+ const oneStep = call.full ? null : oneStepWriteAnswer(shown, request, hints);
602
+ if (oneStep !== null) {
603
+ const writeHints = [...hints, ...oneStep.hints];
604
+ printOut(format, fields, oneStep.answer, writeHints, () => renderWriteMarkdown(oneStep.answer, writeHints, fields));
605
+ return;
606
+ }
607
+ printOut(format, fields, shown, hints, () => renderFunnelMarkdown(shown, hints, fields));
608
+ }
609
+ function printOut(format, fields, data, hints, markdown) {
610
+ if (format === "md") {
611
+ process.stdout.write(markdown());
612
+ return;
613
+ }
614
+ const envelope = { ok: true, data, ...hints.length > 0 ? { hints } : {} };
615
+ writeJsonEnvelope(fields === void 0 ? envelope : maskEnvelope(envelope, fields));
616
+ }
617
+ function isWrite(request) {
618
+ return [
619
+ request.steps,
620
+ request.step,
621
+ request.removeStep,
622
+ request.preset,
623
+ request.addTrigger,
624
+ request.removeTrigger
625
+ ].some((door) => door !== void 0);
626
+ }
627
+ var WAYS_IN_LISTED = 5;
628
+ var WRITE_ANSWER_BYTES = 2047;
629
+ var SENDS_LISTED = 3;
630
+ var COUNTED_HINT = "`waysIn` counts the keys this write named rather than listing them; `--full` lists every key, with the whole funnel.";
631
+ function oneStepWriteAnswer(data, request, hints) {
632
+ const touched = request.addTrigger?.stepKey ?? request.removeTrigger?.stepKey ?? request.step?.key;
633
+ if (touched === void 0 && request.removeStep === void 0) return null;
634
+ const step = touched === void 0 ? void 0 : data.steps.find((entry) => entry.key === touched);
635
+ const summary = step === void 0 ? void 0 : stepSummary(step);
636
+ const sendsHints = summary === void 0 || summary.sends.length <= SENDS_LISTED ? [] : [
637
+ `\`step.sends\` lists ${SENDS_LISTED} of the ${summary.sends.length} sends this step has; \`--full\` lists every one, with the whole funnel.`
638
+ ];
639
+ const base = {
640
+ version: data.version,
641
+ staged: data.staged,
642
+ ...summary === void 0 ? {} : { step: { ...summary, sends: summary.sends.slice(0, SENDS_LISTED) } },
643
+ removed: data.removed ?? [],
644
+ ...data.moments === void 0 ? {} : { moments: data.moments }
645
+ };
646
+ const waysIn = data.waysIn;
647
+ if (waysIn === void 0) return { answer: base, hints: sendsHints };
648
+ const listed = { ...base, waysIn };
649
+ const keys = waysIn.added.length + waysIn.unchanged.length + waysIn.removed.length;
650
+ if (keys <= WAYS_IN_LISTED && printedBytes(listed, [...hints, ...sendsHints]) <= WRITE_ANSWER_BYTES) {
651
+ return { answer: listed, hints: sendsHints };
652
+ }
653
+ return {
654
+ answer: {
655
+ ...base,
656
+ waysIn: {
657
+ stepKey: waysIn.stepKey,
658
+ added: waysIn.added.length,
659
+ unchanged: waysIn.unchanged.length,
660
+ removed: waysIn.removed.length
661
+ }
662
+ },
663
+ hints: [...sendsHints, COUNTED_HINT]
664
+ };
665
+ }
666
+ function printedBytes(answer, hints) {
667
+ const envelope = { ok: true, data: answer, ...hints.length > 0 ? { hints } : {} };
668
+ return Buffer.byteLength(`${layoutJson(envelope)}
669
+ `);
670
+ }
671
+ function handleError(err) {
672
+ if (err instanceof FunnelArgsError) {
673
+ writeJsonEnvelope({
674
+ ok: false,
675
+ error: { code: "VALIDATION_ERROR", message: err.message, ...err.fix ? { fix: err.fix } : {} }
676
+ });
677
+ process.exit(1);
678
+ }
679
+ if (err instanceof ApiError) {
680
+ writeJsonEnvelope({ ok: false, error: { code: err.code, message: err.message } });
681
+ process.exit(1);
682
+ }
683
+ writeJsonEnvelope({
684
+ ok: false,
685
+ error: { code: "NETWORK_ERROR", message: err instanceof Error ? err.message : "Unexpected error" }
686
+ });
687
+ process.exit(1);
688
+ }
689
+ function workspaceForms() {
690
+ const forms = [];
691
+ for (const slug of listFlowSlugs()) {
692
+ try {
693
+ forms.push({ slug, tree: JSON.parse(readFileSync(flowDataPath(slug), "utf-8")) });
694
+ } catch {
695
+ }
696
+ }
697
+ return forms;
698
+ }
699
+ export {
700
+ funnelCommand
701
+ };
702
+ //# sourceMappingURL=funnel-6T744PW5.js.map