@koda-sl/baker-cli 0.853.0-dev.f59b82e2f → 0.854.0-dev.bb3617379

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 (1549) hide show
  1. package/README.md +4 -9
  2. package/dist/account-B57D3OSA.js +139 -0
  3. package/dist/account-Y3IDIJ3T.js +82 -0
  4. package/dist/account-Z62BVYAI.js +83 -0
  5. package/dist/account-assets-MQK5BDAJ.js +290 -0
  6. package/dist/account-level-2TRH77KO.js +615 -0
  7. package/dist/account-reads-XOGHJB3K.js +230 -0
  8. package/dist/account-users-ZDZ7B4BX.js +69 -0
  9. package/dist/account-writes-EP35RCNO.js +68 -0
  10. package/dist/accounts-53TMHS5X.js +79 -0
  11. package/dist/accounts-5ZMP7KU7.js +505 -0
  12. package/dist/accounts-7CHGRXBP.js +122 -0
  13. package/dist/accounts-SUIMNTTA.js +81 -0
  14. package/dist/accounts-XNQZXODM.js +115 -0
  15. package/dist/actions-Q7DDN427.js +55 -0
  16. package/dist/active-entities-HRHBOZGY.js +107 -0
  17. package/dist/activecampaign-BAWTDTSA.js +935 -0
  18. package/dist/activities-NWXWO7T2.js +84 -0
  19. package/dist/ad-group-writes-EVLV4BRD.js +172 -0
  20. package/dist/ad-groups-UQRBWF2N.js +70 -0
  21. package/dist/ad-writes-EBCZ5DCY.js +176 -0
  22. package/dist/add-3WUVL3MN.js +662 -0
  23. package/dist/add-ECUL6A7E.js +97 -0
  24. package/dist/add-EQG73P2N.js +85 -0
  25. package/dist/add-HBRY2SF6.js +108 -0
  26. package/dist/add-I4DL3DN5.js +661 -0
  27. package/dist/add-VGWLOZZK.js +148 -0
  28. package/dist/add-Y65O76WS.js +83 -0
  29. package/dist/add-accounts-R7UR645T.js +93 -0
  30. package/dist/ads-2TOWF4GX.js +79 -0
  31. package/dist/ads-BYETTX2Y.js +48 -0
  32. package/dist/ads-EUQYHCBO.js +132 -0
  33. package/dist/ads-WF6BCLCJ.js +130 -0
  34. package/dist/adsets-CZFTSQQC.js +198 -0
  35. package/dist/advertisers-AJQEQ3VF.js +126 -0
  36. package/dist/advertisers-AJQEQ3VF.js.map +1 -0
  37. package/dist/advertisers-QGST4SG4.js +127 -0
  38. package/dist/alerts-RJBTQ2OX.js +153 -0
  39. package/dist/analytics-RIZ4RJ6O.js +2791 -0
  40. package/dist/analytics-WLFBQOO4.js +461 -0
  41. package/dist/animate-EN7VTJEI.js +482 -0
  42. package/dist/approved-IFWTYWUE.js +73 -0
  43. package/dist/asset-writes-P7BLGX53.js +54 -0
  44. package/dist/assign-MAXWMYQ2.js +83 -0
  45. package/dist/audience-size-ISJSPSRW.js +77 -0
  46. package/dist/audience-writes-K4R6RQ7G.js +331 -0
  47. package/dist/audiences-EZK4PDB5.js +280 -0
  48. package/dist/audiences-SDFCRXHD.js +117 -0
  49. package/dist/audiences-ZYV75JP2.js +85 -0
  50. package/dist/audit-EHKSN2WS.js +155 -0
  51. package/dist/audit-L434S5FY.js +91 -0
  52. package/dist/autocomplete-I6V2CKI4.js +117 -0
  53. package/dist/avatars-775WMIZF.js +38 -0
  54. package/dist/bid-pricing-HFBQ23DD.js +104 -0
  55. package/dist/brand-SDDWXOOT.js +22 -0
  56. package/dist/brief-LR5YTTVQ.js +511 -0
  57. package/dist/businesses-Y555ZAIW.js +54 -0
  58. package/dist/campaign-groups-DKB3K7L4.js +118 -0
  59. package/dist/campaign-writes-4T5DSUMT.js +176 -0
  60. package/dist/campaign-writes-DXV2HPB2.js +169 -0
  61. package/dist/campaigns-4JY3JKPY.js +139 -0
  62. package/dist/campaigns-5BYWFXHO.js +78 -0
  63. package/dist/campaigns-6OYAQVIE.js +193 -0
  64. package/dist/campaigns-UEPNMAIN.js +111 -0
  65. package/dist/canvas-6CWER4CP.js +48 -0
  66. package/dist/capabilities-U53QPNBQ.js +184 -0
  67. package/dist/cards-EVGVO5NV.js +85 -0
  68. package/dist/catalog-KTAYEWYO.js +89 -0
  69. package/dist/catalogs-UQ6ZUNZL.js +786 -0
  70. package/dist/catalogs-YJSOVGDM.js +130 -0
  71. package/dist/changes-LXFW7GYZ.js +551 -0
  72. package/dist/changes-LXFW7GYZ.js.map +1 -0
  73. package/dist/changes-YOTRCCNB.js +288 -0
  74. package/dist/chatgpt-DPLD452Q.js +47 -0
  75. package/dist/chats-QVGXEYT6.js +659 -0
  76. package/dist/check-3YGJFXU2.js +54 -0
  77. package/dist/chunk-2AW62CH3.js +46 -0
  78. package/dist/chunk-2IGAUSWL.js +212 -0
  79. package/dist/chunk-2QSDGRRX.js +102 -0
  80. package/dist/chunk-2TEZDAAR.js +3106 -0
  81. package/dist/chunk-2TEZDAAR.js.map +1 -0
  82. package/dist/chunk-2UFHCU7A.js +215 -0
  83. package/dist/chunk-2Z2AEFVW.js +915 -0
  84. package/dist/chunk-33KRW6HE.js +374 -0
  85. package/dist/chunk-34CJ5QXO.js +91 -0
  86. package/dist/chunk-3HAKK5FO.js +660 -0
  87. package/dist/chunk-4A2UZ3Q3.js +24026 -0
  88. package/dist/chunk-4BRNQDYX.js +93 -0
  89. package/dist/chunk-4MIETRE4.js +103 -0
  90. package/dist/chunk-4PXBUMXP.js +21 -0
  91. package/dist/chunk-4X6QBNIB.js +320 -0
  92. package/dist/chunk-52V5324M.js +224 -0
  93. package/dist/chunk-5H4M4R73.js +81 -0
  94. package/dist/chunk-5OB4ZBC4.js +56 -0
  95. package/dist/chunk-5WQ3UHJ2.js +341 -0
  96. package/dist/chunk-63XEBJIX.js +262 -0
  97. package/dist/chunk-65QWF5C5.js +349 -0
  98. package/dist/chunk-6AUTRWTB.js +26 -0
  99. package/dist/chunk-6QS2CRDW.js +219 -0
  100. package/dist/chunk-7J5XOR5D.js +98 -0
  101. package/dist/chunk-7M2EY3CA.js +230 -0
  102. package/dist/chunk-A6B45KSH.js +724 -0
  103. package/dist/chunk-A6B45KSH.js.map +1 -0
  104. package/dist/chunk-AEYE57MX.js +1853 -0
  105. package/dist/chunk-APZTJM5M.js +84 -0
  106. package/dist/chunk-CE6M4VLG.js +1883 -0
  107. package/dist/chunk-CG6BJIHU.js +175 -0
  108. package/dist/chunk-CHPHAPPP.js +547 -0
  109. package/dist/chunk-CNVV272P.js +106 -0
  110. package/dist/chunk-CPBXSDXS.js +9127 -0
  111. package/dist/chunk-CV74M3H6.js +723 -0
  112. package/dist/chunk-CWYONUBS.js +163 -0
  113. package/dist/chunk-CZWMU2GB.js +142 -0
  114. package/dist/chunk-D7AJ4N2X.js +131 -0
  115. package/dist/chunk-DA3UIKWS.js +94 -0
  116. package/dist/chunk-DSZ3OLQU.js +65 -0
  117. package/dist/chunk-ECUN7W2Y.js +91 -0
  118. package/dist/chunk-EDDHOHTW.js +285 -0
  119. package/dist/chunk-EKC2AY2Z.js +108 -0
  120. package/dist/chunk-FCWDXKLI.js +732 -0
  121. package/dist/chunk-FU3YCG3Z.js +69 -0
  122. package/dist/chunk-G4IFJB4Z.js +863 -0
  123. package/dist/chunk-G5QPVGVD.js +42 -0
  124. package/dist/chunk-GT5JWGZR.js +573 -0
  125. package/dist/chunk-GZAZHFB3.js +57 -0
  126. package/dist/chunk-HQISXBEX.js +685 -0
  127. package/dist/chunk-HSAS5RPH.js +87 -0
  128. package/dist/chunk-HSPOURUB.js +877 -0
  129. package/dist/chunk-ILRH5CQ2.js +153 -0
  130. package/dist/chunk-IWPYFKQZ.js +70 -0
  131. package/dist/chunk-J4Z2AP32.js +47 -0
  132. package/dist/chunk-J5LG2M5T.js +155 -0
  133. package/dist/chunk-J6UWQG4I.js +287 -0
  134. package/dist/chunk-JBIBDAER.js +76 -0
  135. package/dist/chunk-JHPZATWG.js +152 -0
  136. package/dist/chunk-JKED3LEQ.js +69 -0
  137. package/dist/chunk-JKFQQAYM.js +296 -0
  138. package/dist/chunk-JY5OIBMR.js +3378 -0
  139. package/dist/chunk-KDCPM6W2.js +6340 -0
  140. package/dist/chunk-KKZGO4XP.js +16 -0
  141. package/dist/chunk-KNJDHJSM.js +106 -0
  142. package/dist/chunk-KQAKXWQ2.js +145 -0
  143. package/dist/chunk-KUNNKG4S.js +202 -0
  144. package/dist/chunk-KUTQFIZ6.js +114 -0
  145. package/dist/chunk-KV6P2A2T.js +98 -0
  146. package/dist/chunk-KV6P2A2T.js.map +1 -0
  147. package/dist/chunk-MERI62BI.js +225 -0
  148. package/dist/chunk-MKV6DCAC.js +79 -0
  149. package/dist/chunk-MQZHJAH3.js +197 -0
  150. package/dist/chunk-N2MVLNJH.js +58 -0
  151. package/dist/chunk-NEYQACET.js +65 -0
  152. package/dist/chunk-NJZEVCKE.js +39 -0
  153. package/dist/chunk-NR5EJ6TC.js +10361 -0
  154. package/dist/chunk-OBT55DQA.js +260 -0
  155. package/dist/chunk-OC3BLHKN.js +113 -0
  156. package/dist/chunk-P7Q7YO4E.js +170 -0
  157. package/dist/chunk-PA5OJXQ3.js +313 -0
  158. package/dist/chunk-PDHKESLI.js +138 -0
  159. package/dist/chunk-PH27RN3O.js +343 -0
  160. package/dist/chunk-PMK2WXS5.js +411 -0
  161. package/dist/chunk-PVTJCDZE.js +37 -0
  162. package/dist/chunk-QB72UFAO.js +134 -0
  163. package/dist/chunk-QGIRVS5R.js +25 -0
  164. package/dist/chunk-QSZRATGC.js +746 -0
  165. package/dist/chunk-QYOLOU5G.js +329 -0
  166. package/dist/chunk-RDRWLYFV.js +604 -0
  167. package/dist/chunk-RS4BSY3E.js +509 -0
  168. package/dist/chunk-S2V54TOS.js +170 -0
  169. package/dist/chunk-S2WUFUSW.js +399 -0
  170. package/dist/chunk-S4RISBEX.js +225 -0
  171. package/dist/chunk-SCK7U53A.js +190 -0
  172. package/dist/chunk-SD75FQEP.js +125 -0
  173. package/dist/chunk-STWMK24H.js +45 -0
  174. package/dist/chunk-SY7CUZGW.js +89 -0
  175. package/dist/chunk-SZCEKDLE.js +259 -0
  176. package/dist/chunk-T7BJTDEJ.js +159 -0
  177. package/dist/chunk-TDNOPJXB.js +1124 -0
  178. package/dist/chunk-TXLSPOLG.js +505 -0
  179. package/dist/chunk-U4SWDSLZ.js +65 -0
  180. package/dist/chunk-UWXMWEAU.js +494 -0
  181. package/dist/chunk-VDZD56G6.js +76 -0
  182. package/dist/chunk-VELT4JFT.js +274 -0
  183. package/dist/chunk-VGKBJNTJ.js +115 -0
  184. package/dist/chunk-VHKEKK2L.js +52 -0
  185. package/dist/chunk-VTQG5SUE.js +262 -0
  186. package/dist/chunk-WE2FY3CF.js +1862 -0
  187. package/dist/chunk-WJL56TQE.js +84 -0
  188. package/dist/chunk-WVXJYBWA.js +251 -0
  189. package/dist/chunk-WYBX53EI.js +164 -0
  190. package/dist/chunk-WZS4U3VF.js +114 -0
  191. package/dist/chunk-XBLVA6BC.js +1577 -0
  192. package/dist/chunk-XNTV3QKG.js +64 -0
  193. package/dist/chunk-XQIAWIO5.js +495 -0
  194. package/dist/chunk-Y3SVCUUH.js +74 -0
  195. package/dist/chunk-Y62YTEPM.js +23 -0
  196. package/dist/chunk-YBSRIW5S.js +51 -0
  197. package/dist/chunk-YUQAAPK6.js +76 -0
  198. package/dist/chunk-YXYUHTQM.js +423 -0
  199. package/dist/chunk-ZBSG24TQ.js +430 -0
  200. package/dist/chunk-ZDDJTA3H.js +303 -0
  201. package/dist/cite-J3BDH6EM.js +194 -0
  202. package/dist/claim-XHSTFNS3.js +218 -0
  203. package/dist/cli.js +129 -60
  204. package/dist/cli.js.map +1 -1
  205. package/dist/client-ZVLGESWV.js +21 -0
  206. package/dist/code-INTC7C6S.js +76 -0
  207. package/dist/companies-ITNWR5Q4.js +36 -0
  208. package/dist/company-ANL7K7CY.js +311 -0
  209. package/dist/complete-7L3ILPCT.js +87 -0
  210. package/dist/config-623ZSJRY.js +89 -0
  211. package/dist/connect-SD7PFKPI.js +46 -0
  212. package/dist/content-KSPHSCEA.js +162 -0
  213. package/dist/conversation-SKZMGVA5.js +100 -0
  214. package/dist/conversion-report-ZPENZMJF.js +130 -0
  215. package/dist/conversion-upload-command-6TY2DIBM.js +456 -0
  216. package/dist/conversion-writes-NIDUTQHX.js +194 -0
  217. package/dist/conversions-3Q3PEAAN.js +78 -0
  218. package/dist/conversions-IMST22UQ.js +141 -0
  219. package/dist/copy-writes-IQ5RZQIR.js +174 -0
  220. package/dist/countries-DLPPH2HT.js +83 -0
  221. package/dist/create-5KE4XHS3.js +65 -0
  222. package/dist/create-NR4WX6PS.js +190 -0
  223. package/dist/create-QBA7VZSZ.js +356 -0
  224. package/dist/create-SPNJBN6K.js +219 -0
  225. package/dist/creatives-3E5BEATB.js +48 -0
  226. package/dist/creatives-42PW2C24.js +235 -0
  227. package/dist/creatives-Q3DWV55N.js +119 -0
  228. package/dist/credentials-T7F2PFNY.js +291 -0
  229. package/dist/critique-I2HAOTTX.js +230 -0
  230. package/dist/crm-EVN7PDQE.js +418 -0
  231. package/dist/crm-OO2WO6OG.js +327 -0
  232. package/dist/crop-5GOGWZBZ.js +113 -0
  233. package/dist/currency-CLB7ROUV.js +91 -0
  234. package/dist/custom-conversions-RFFTAVXT.js +128 -0
  235. package/dist/customers-V7WKKZI2.js +69 -0
  236. package/dist/data-ZDTEJD6A.js +665 -0
  237. package/dist/decide-ZUABEECJ.js +199 -0
  238. package/dist/delete-4QSARZJR.js +71 -0
  239. package/dist/delete-5P6K4EOJ.js +71 -0
  240. package/dist/delete-6KVYWSGA.js +69 -0
  241. package/dist/delete-7VLK5I4V.js +60 -0
  242. package/dist/delete-JHTSAJFB.js +86 -0
  243. package/dist/delete-TRJMPMN5.js +70 -0
  244. package/dist/demographics-K5WTHZCW.js +145 -0
  245. package/dist/describe-RNZAYFEJ.js +94 -0
  246. package/dist/describe-SEWK4DBO.js +93 -0
  247. package/dist/dimensions-QB5T6EWT.js +101 -0
  248. package/dist/discard-ANRGHE2Z.js +72 -0
  249. package/dist/discover-EAI4WDSL.js +191 -0
  250. package/dist/discover-K7DDJHD7.js +96 -0
  251. package/dist/domain-LQ4VCYC4.js +104 -0
  252. package/dist/download-HVNPTNFN.js +174 -0
  253. package/dist/download-KMEFJ3Q6.js +366 -0
  254. package/dist/draft-4DFLYVL6.js +153 -0
  255. package/dist/draft-572T3UNG.js +427 -0
  256. package/dist/draft-IHEEODST.js +340 -0
  257. package/dist/draft-JGEZVDAS.js +389 -0
  258. package/dist/draft-JMIGVR5G.js +149 -0
  259. package/dist/draft-KZKNUQ2I.js +227 -0
  260. package/dist/draft-R3GI7JWY.js +640 -0
  261. package/dist/draft-RTZU6INK.js +349 -0
  262. package/dist/engine/index.js +15 -15
  263. package/dist/env-BSWB7OCN.js +57 -0
  264. package/dist/experiment-WEWASTVO.js +2094 -0
  265. package/dist/experiments-C4R65GA6.js +241 -0
  266. package/dist/export-S4BY2GWM.js +169 -0
  267. package/dist/extract-J7Q6DYE7.js +144 -0
  268. package/dist/facets-GXBTQCAW.js +118 -0
  269. package/dist/favorites-5NPJFWFY.js +178 -0
  270. package/dist/feed-NHETXTZK.js +246 -0
  271. package/dist/feedback-FZTJATY7.js +115 -0
  272. package/dist/fetch-GSMAAL7N.js +487 -0
  273. package/dist/fetch-JYLCS2EU.js +139 -0
  274. package/dist/files-CVB5LNVZ.js +21 -0
  275. package/dist/find-F7QVEOF2.js +144 -0
  276. package/dist/fit-K63JPI3A.js +69 -0
  277. package/dist/flows-C45HCGGB.js +342 -0
  278. package/dist/folders-3P77VB54.js +228 -0
  279. package/dist/follow-K5V3364I.js +114 -0
  280. package/dist/follow-competitors-7NMXP67A.js +189 -0
  281. package/dist/following-BGKELTHN.js +187 -0
  282. package/dist/fonts-C4XDCCI2.js +20 -0
  283. package/dist/forecast-NOQNCFTX.js +122 -0
  284. package/dist/forecast-YFCLMXAV.js +189 -0
  285. package/dist/funding-BSJEX6UQ.js +85 -0
  286. package/dist/funnel-U47RAS7K.js +701 -0
  287. package/dist/ga4-XVCLJG6R.js +55 -0
  288. package/dist/generate-7467FZZH.js +265 -0
  289. package/dist/get-4JHQAABK.js +30 -0
  290. package/dist/get-I77O6MRD.js +114 -0
  291. package/dist/get-J2QFYRHW.js +77 -0
  292. package/dist/get-QB3VXSUK.js +92 -0
  293. package/dist/get-QLVNHWEI.js +68 -0
  294. package/dist/get-SGMPBUCB.js +38 -0
  295. package/dist/get-TBXIAEWE.js +59 -0
  296. package/dist/get-UQVH3Q4T.js +69 -0
  297. package/dist/gif-44B7JLEN.js +111 -0
  298. package/dist/google-GBGLPAP5.js +3759 -0
  299. package/dist/google-OYP3AU3I.js +164 -0
  300. package/dist/google-ads-74CPXLIA.js +201 -0
  301. package/dist/google-ads-74CPXLIA.js.map +1 -0
  302. package/dist/group-F7OQOLZ5.js +43 -0
  303. package/dist/group-RH2O7Y23.js +43 -0
  304. package/dist/gsc-WR65MURL.js +30 -0
  305. package/dist/history-DD3UWZZ4.js +108 -0
  306. package/dist/history-KBTYILFZ.js +204 -0
  307. package/dist/history-M6VLA7TD.js +155 -0
  308. package/dist/hubspot-W5LYFWTH.js +853 -0
  309. package/dist/icon-DVK3X5Q3.js +168 -0
  310. package/dist/ideas-6LZ6VINW.js +49 -0
  311. package/dist/images-TUQEYLFE.js +92 -0
  312. package/dist/improve-DDQC3GMD.js +86 -0
  313. package/dist/ingest-S7I6E2GE.js +31 -0
  314. package/dist/ingest-XJNSFWBC.js +162 -0
  315. package/dist/insights-HCLFFFFV.js +1227 -0
  316. package/dist/insights-MZ5DPH5X.js +151 -0
  317. package/dist/inspect-AQBNRV5E.js +38 -0
  318. package/dist/inspiration-VWYZJABF.js +53 -0
  319. package/dist/instant-experiences-IRBTOXAW.js +268 -0
  320. package/dist/intent-6NJBN3OR.js +97 -0
  321. package/dist/job-EYCWS5N7.js +206 -0
  322. package/dist/job-create-XQIK4OTR.js +113 -0
  323. package/dist/job-status-PNP2TENA.js +74 -0
  324. package/dist/keep-6GNM3ZGK.js +78 -0
  325. package/dist/keyword-gap-Y5J2VZDP.js +132 -0
  326. package/dist/keyword-gap-Y5J2VZDP.js.map +1 -0
  327. package/dist/keyword-metrics-DSEJ2KDM.js +234 -0
  328. package/dist/keywords-for-site-CYVRXIF5.js +134 -0
  329. package/dist/knowledge-LJETCORU.js +195 -0
  330. package/dist/landings-PJBVYMC3.js +30 -0
  331. package/dist/landings-ZZBDYJSM.js +289 -0
  332. package/dist/languages-2VJCTQ4I.js +56 -0
  333. package/dist/languages-H4VPFO7Y.js +41 -0
  334. package/dist/launches-WSXWPOEY.js +19 -0
  335. package/dist/layerize-FCRXY3VB.js +199 -0
  336. package/dist/lead-routes-LKWVY645.js +733 -0
  337. package/dist/leads-UTBT62TH.js +574 -0
  338. package/dist/leads-ZRHPHJRE.js +137 -0
  339. package/dist/learn-ZR35TBVQ.js +213 -0
  340. package/dist/library-UBIXM7AL.js +234 -0
  341. package/dist/lighthouse-OLKLIMIR.js +77 -0
  342. package/dist/line-item-writes-L73P5MN7.js +212 -0
  343. package/dist/line-items-KC5PKV2T.js +107 -0
  344. package/dist/link-64FQKM6S.js +70 -0
  345. package/dist/linkedin-BD63QPGK.js +1498 -0
  346. package/dist/linkedin-person-6XXLSFDE.js +142 -0
  347. package/dist/list-63K7DBHJ.js +53 -0
  348. package/dist/list-7HIQW6MN.js +76 -0
  349. package/dist/list-G5QSLYQQ.js +64 -0
  350. package/dist/list-H6ETFATT.js +93 -0
  351. package/dist/list-IGRZ5JED.js +50 -0
  352. package/dist/list-KYTLJVHG.js +169 -0
  353. package/dist/list-U524VV4Q.js +65 -0
  354. package/dist/list-VQNYW5R4.js +89 -0
  355. package/dist/list-WOCSNSYO.js +320 -0
  356. package/dist/locations-AR4ZTFT4.js +69 -0
  357. package/dist/locations-UPY33JUY.js +41 -0
  358. package/dist/log-LLJ3M63R.js +98 -0
  359. package/dist/logo-YM46ZKEJ.js +18 -0
  360. package/dist/lookup-IAY43D6F.js +26 -0
  361. package/dist/make-UM6P6RD3.js +1391 -0
  362. package/dist/map-SKH3NVSQ.js +519 -0
  363. package/dist/mcp-FIBT4HAH.js +1017 -0
  364. package/dist/media-J375SRWQ.js +89 -0
  365. package/dist/media-WRBQFCP6.js +18 -0
  366. package/dist/media-sources-ZY7S74U2.js +35 -0
  367. package/dist/members-PK3Q7AZX.js +50 -0
  368. package/dist/meme-JR4XI745.js +108 -0
  369. package/dist/meta-2ZQ3CWLF.js +152 -0
  370. package/dist/metrics-BNLDV4BU.js +193 -0
  371. package/dist/models-QEB3EOSF.js +155 -0
  372. package/dist/music-NULWVHQP.js +75 -0
  373. package/dist/normalize-CKAPAYL2.js +806 -0
  374. package/dist/normalize-KEDHUMAB.js +145 -0
  375. package/dist/normalize-paths-UTFTLTTF.js +23 -0
  376. package/dist/options-VYRUYL4N.js +126 -0
  377. package/dist/organization-RTJDOJEV.js +949 -0
  378. package/dist/output-K3J4NHRY.js +30 -0
  379. package/dist/page-2RVXSH5V.js +105 -0
  380. package/dist/page-photos-7TTMQUFQ.js +122 -0
  381. package/dist/pages-G5DNWE2G.js +67 -0
  382. package/dist/people-3VU3QSRN.js +161 -0
  383. package/dist/people-A3YXUYUR.js +171 -0
  384. package/dist/performance-6I57ZQTD.js +6294 -0
  385. package/dist/performance-OBAWMTVU.js +28 -0
  386. package/dist/pinterest-XZDCUELU.js +105 -0
  387. package/dist/pipedrive-7AA7ZD7M.js +533 -0
  388. package/dist/pixels-IEIARQNK.js +215 -0
  389. package/dist/pixels-M2UBKUJI.js +62 -0
  390. package/dist/plan-YP5D6JXM.js +213 -0
  391. package/dist/posts-B5DGAKAC.js +36 -0
  392. package/dist/preview-66BGLU5H.js +103 -0
  393. package/dist/preview-S5QKIKNG.js +246 -0
  394. package/dist/profile-YSTVWMUL.js +284 -0
  395. package/dist/promoted-tweet-writes-ZUFVAVGA.js +184 -0
  396. package/dist/promoted-tweets-3AKHKOI4.js +119 -0
  397. package/dist/properties-SJ3DVYWT.js +103 -0
  398. package/dist/publish-JPIOQKB4.js +430 -0
  399. package/dist/query-DBDRPW3D.js +278 -0
  400. package/dist/query-FZAFUWCX.js +68 -0
  401. package/dist/query-L2E6BR7S.js +345 -0
  402. package/dist/questionnaire-7Y4QYVC6.js +103 -0
  403. package/dist/read-N6FYJYNX.js +358 -0
  404. package/dist/read-OMNUPQ77.js +166 -0
  405. package/dist/reddit-TKE3IXST.js +30 -0
  406. package/dist/refresh-BE7KEADW.js +100 -0
  407. package/dist/refresh-BH6FXQ3U.js +42 -0
  408. package/dist/release-EUXHZEO7.js +66 -0
  409. package/dist/relevant-pages-OFFMPMKG.js +101 -0
  410. package/dist/remove-6HAN547O.js +54 -0
  411. package/dist/remove-OUXUL7S2.js +49 -0
  412. package/dist/reopen-HBEWR4CF.js +69 -0
  413. package/dist/rerun-PLS5XYTW.js +101 -0
  414. package/dist/research-B5VHPALW.js +78 -0
  415. package/dist/research-RCD54TCL.js +266 -0
  416. package/dist/reset-DQXYM75W.js +58 -0
  417. package/dist/reset-Y7UWO233.js +58 -0
  418. package/dist/resolve-NVL3FTQU.js +125 -0
  419. package/dist/retry-MMY5H6O6.js +66 -0
  420. package/dist/retry-YCYZPMXM.js +66 -0
  421. package/dist/retry-failed-TPA6BN5O.js +45 -0
  422. package/dist/revenue-C24BDD5A.js +99 -0
  423. package/dist/rule-writes-BHR45HA2.js +534 -0
  424. package/dist/rules-MCM7DGAQ.js +217 -0
  425. package/dist/rules-MGEJJJ4O.js +163 -0
  426. package/dist/run-2RGSNKFH.js +78 -0
  427. package/dist/run-TPAZDCY2.js +73 -0
  428. package/dist/scaffold-ad-UOXDJIVB.js +1600 -0
  429. package/dist/scaffold-static-ad-ZM3LOIFK.js +998 -0
  430. package/dist/scaffold-video-EBQOBQXI.js +888 -0
  431. package/dist/schedule-7MFRP2UI.js +67 -0
  432. package/dist/schedule-IVNAF7NB.js +65 -0
  433. package/dist/scheduled-agents-NODIHKKM.js +59 -0
  434. package/dist/schema-F6QTDMJW.js +136 -0
  435. package/dist/schema-JCAV2D44.js +241 -0
  436. package/dist/scrape-2GYN64LS.js +2209 -0
  437. package/dist/screenshot-4I53QQIB.js +103 -0
  438. package/dist/search-7QDZVCBI.js +113 -0
  439. package/dist/search-A4GTDVIE.js +192 -0
  440. package/dist/search-CM3YN6AF.js +228 -0
  441. package/dist/search-DOLDN7XN.js +51 -0
  442. package/dist/search-GMQLUXGM.js +100 -0
  443. package/dist/search-R2ZMD3UZ.js +26 -0
  444. package/dist/search-copy-RXLF7CDZ.js +170 -0
  445. package/dist/search-terms-OFLKWSEF.js +412 -0
  446. package/dist/seeds-RJJKNQ3Q.js +103 -0
  447. package/dist/select-HER2THTU.js +134 -0
  448. package/dist/sends-TCVUTCLV.js +405 -0
  449. package/dist/sequences-5QJ4MCQU.js +146 -0
  450. package/dist/set-MXHNM4NH.js +274 -0
  451. package/dist/set-prompt-G27JMELE.js +204 -0
  452. package/dist/setup-links-LVJU7KHP.js +145 -0
  453. package/dist/shared-M3B6KGKW.js +34 -0
  454. package/dist/shopify-ZQFONX3R.js +4032 -0
  455. package/dist/site-X43NFWHL.js +181 -0
  456. package/dist/sitemaps-HHB5KWLV.js +77 -0
  457. package/dist/sites-RBIQYTTX.js +97 -0
  458. package/dist/skills-F3RZS4AL.js +47 -0
  459. package/dist/sources-3KYI7TSD.js +30 -0
  460. package/dist/sources-G7QWYL2J.js +463 -0
  461. package/dist/stale-F7UXOYYY.js +92 -0
  462. package/dist/stats-JQ2SMWSV.js +34 -0
  463. package/dist/status-7RLJ7ZND.js +68 -0
  464. package/dist/sticker-FMKFZF6H.js +103 -0
  465. package/dist/stock-BSMF4FH4.js +213 -0
  466. package/dist/studies-B5TD7QQ3.js +250 -0
  467. package/dist/studio-2X6UOCAR.js +49 -0
  468. package/dist/study-writes-SPXA62IW.js +475 -0
  469. package/dist/suggest-X3VYDUDZ.js +66 -0
  470. package/dist/sync-CYVBFBVM.js +55 -0
  471. package/dist/sync-DQZZAAWR.js +307 -0
  472. package/dist/sync-XAWDIOTT.js +58 -0
  473. package/dist/sync-definition-73CCAEDP.js +74 -0
  474. package/dist/tag-ZM7JVUQP.js +57 -0
  475. package/dist/tag-manager-YQDCSQ54.js +45 -0
  476. package/dist/tag-manager-YQDCSQ54.js.map +1 -0
  477. package/dist/tags-5V3NCHKE.js +26 -0
  478. package/dist/tags-HSLB3YPN.js +24 -0
  479. package/dist/tags-M57YBWGW.js +182 -0
  480. package/dist/tags-MWMY3GRG.js +24 -0
  481. package/dist/tags-QHEJUOHL.js +24 -0
  482. package/dist/targeting-T2HTV2OD.js +777 -0
  483. package/dist/targeting-constants-FXSAUQGQ.js +118 -0
  484. package/dist/targeting-criteria-FIXPSX2K.js +113 -0
  485. package/dist/targets-BVAFNU4K.js +110 -0
  486. package/dist/terms-J33CD7MY.js +102 -0
  487. package/dist/testimonials-RIL2ARX7.js +32 -0
  488. package/dist/themes-VAKXKG4M.js +102 -0
  489. package/dist/top-companies-KEV55RME.js +250 -0
  490. package/dist/transcript-ZOJWRPZD.js +168 -0
  491. package/dist/translate-WL6KD2X4.js +607 -0
  492. package/dist/triggers-AALSXPLW.js +148 -0
  493. package/dist/tweets-APLLXXXE.js +123 -0
  494. package/dist/unfollow-5T56ESNZ.js +48 -0
  495. package/dist/unlink-WD5D3XBG.js +73 -0
  496. package/dist/unstage-6QVKZITE.js +101 -0
  497. package/dist/unstage-BVNREABR.js +92 -0
  498. package/dist/update-3YQGAFEX.js +69 -0
  499. package/dist/update-6355E7VP.js +193 -0
  500. package/dist/update-HYZXKLZ7.js +237 -0
  501. package/dist/update-TZLOKZ22.js +175 -0
  502. package/dist/update-UFRVCSJA.js +81 -0
  503. package/dist/upload-F5FT3U62.js +194 -0
  504. package/dist/upload-PMKPLLAA.js +185 -0
  505. package/dist/upscale-LQXISRH2.js +163 -0
  506. package/dist/url-options-DOOHH2JE.js +137 -0
  507. package/dist/url-params-CXUAYJBD.js +102 -0
  508. package/dist/use-J2TQU5UA.js +117 -0
  509. package/dist/validate-YRTGO4UN.js +180 -0
  510. package/dist/variant-P2A3NQTP.js +338 -0
  511. package/dist/videos-KGPDOMSN.js +41 -0
  512. package/dist/videos-KN2TUWQ6.js +146 -0
  513. package/dist/view-RHYPHQ2I.js +133 -0
  514. package/dist/viewer-check-PRUOWSNM.js +89 -0
  515. package/dist/visuals-L73TEVWN.js +129 -0
  516. package/dist/web-IVYO7PY6.js +180 -0
  517. package/dist/web-IVYO7PY6.js.map +1 -0
  518. package/dist/winners-KZO2ISHS.js +115 -0
  519. package/dist/winning-ads-QRBI3TLN.js +88 -0
  520. package/dist/write-commands-BRVVNJHH.js +722 -0
  521. package/dist/write-commands-FUXBKDN7.js +1555 -0
  522. package/dist/write-commands-KJR3EK3O.js +1261 -0
  523. package/dist/write-commands-YECHEWMG.js +207 -0
  524. package/dist/x-WVWMOUAQ.js +47 -0
  525. package/package.json +1 -1
  526. package/dist/account-DGXGALNZ.js +0 -82
  527. package/dist/account-KF3CUS2E.js +0 -139
  528. package/dist/account-ZX45PDC6.js +0 -83
  529. package/dist/account-assets-XU5SX4DY.js +0 -290
  530. package/dist/account-level-LF6YOQSW.js +0 -615
  531. package/dist/account-reads-CAM7GMRN.js +0 -230
  532. package/dist/account-users-HRF4R2DA.js +0 -69
  533. package/dist/account-writes-CWHCXDUY.js +0 -68
  534. package/dist/accounts-5A5TQX3P.js +0 -122
  535. package/dist/accounts-6WKW2CP3.js +0 -81
  536. package/dist/accounts-7SUGL6ST.js +0 -505
  537. package/dist/accounts-HJZTHNDM.js +0 -79
  538. package/dist/accounts-XWQRZMKB.js +0 -115
  539. package/dist/actions-CT6RZX5E.js +0 -55
  540. package/dist/active-entities-AEIP6SC3.js +0 -107
  541. package/dist/activecampaign-CWECNJAE.js +0 -935
  542. package/dist/activities-B2NSYUIC.js +0 -84
  543. package/dist/ad-group-writes-A6AON56E.js +0 -172
  544. package/dist/ad-groups-NO2R2RFH.js +0 -70
  545. package/dist/ad-writes-LCI5BKZW.js +0 -176
  546. package/dist/add-2T6YYFLV.js +0 -83
  547. package/dist/add-3GZOX3N3.js +0 -108
  548. package/dist/add-6LBLEEMV.js +0 -661
  549. package/dist/add-BFMZ26CN.js +0 -85
  550. package/dist/add-MOPRLPEH.js +0 -148
  551. package/dist/add-PDKZHDPA.js +0 -97
  552. package/dist/add-PTWHBWEA.js +0 -662
  553. package/dist/add-accounts-KFXX5W4D.js +0 -93
  554. package/dist/ads-7P6OVEL3.js +0 -130
  555. package/dist/ads-MS5HVD2W.js +0 -79
  556. package/dist/ads-NMP4AMCT.js +0 -132
  557. package/dist/ads-W2B6DVKA.js +0 -48
  558. package/dist/adsets-NZ76HTTF.js +0 -198
  559. package/dist/advertisers-5M3TU2OY.js +0 -154
  560. package/dist/advertisers-5M3TU2OY.js.map +0 -1
  561. package/dist/advertisers-XZAJMCUA.js +0 -127
  562. package/dist/alerts-TNKABZZM.js +0 -153
  563. package/dist/analytics-EP4VU6WG.js +0 -461
  564. package/dist/analytics-UKVKUP52.js +0 -2791
  565. package/dist/animate-SHZ4O7CV.js +0 -482
  566. package/dist/approved-KGUEIHUI.js +0 -73
  567. package/dist/asset-writes-NOXX5L6U.js +0 -54
  568. package/dist/assign-TGSJJX6I.js +0 -83
  569. package/dist/audience-size-GUNODAWA.js +0 -77
  570. package/dist/audience-writes-NAVJKYIK.js +0 -331
  571. package/dist/audiences-27CTTMEX.js +0 -85
  572. package/dist/audiences-C7N7XJ6L.js +0 -280
  573. package/dist/audiences-FVFR6U5N.js +0 -117
  574. package/dist/audit-4L6ZW774.js +0 -91
  575. package/dist/audit-GQVMNU4H.js +0 -155
  576. package/dist/autocomplete-IPCIBEY2.js +0 -117
  577. package/dist/avatars-5ILEKVYJ.js +0 -38
  578. package/dist/bid-pricing-RS4AN4BB.js +0 -104
  579. package/dist/brand-G7BCNS3T.js +0 -22
  580. package/dist/brief-WJGXPIVU.js +0 -511
  581. package/dist/businesses-6I5YJXZO.js +0 -54
  582. package/dist/campaign-groups-VRRE3LWV.js +0 -118
  583. package/dist/campaign-writes-LVNA45ST.js +0 -169
  584. package/dist/campaign-writes-TJXALXFN.js +0 -176
  585. package/dist/campaigns-ARVKUEYN.js +0 -139
  586. package/dist/campaigns-HSF2R6RB.js +0 -193
  587. package/dist/campaigns-Q5YV6MGW.js +0 -111
  588. package/dist/campaigns-UGKES6EN.js +0 -78
  589. package/dist/canvas-T3GLGUA6.js +0 -48
  590. package/dist/capabilities-CP3C5RIZ.js +0 -184
  591. package/dist/cards-AQRDO5RA.js +0 -85
  592. package/dist/catalog-YAARUK57.js +0 -89
  593. package/dist/catalogs-JEOZD7KA.js +0 -130
  594. package/dist/catalogs-W7IC4WUM.js +0 -786
  595. package/dist/changes-AJMURYJE.js +0 -288
  596. package/dist/chatgpt-7F744ZTT.js +0 -47
  597. package/dist/chats-KWQ3Z4ZG.js +0 -659
  598. package/dist/check-BVS5BIWA.js +0 -54
  599. package/dist/chunk-2TF7VAJK.js +0 -159
  600. package/dist/chunk-2ZT2A2MZ.js +0 -23
  601. package/dist/chunk-37BE7GJE.js +0 -37
  602. package/dist/chunk-3FGHKDML.js +0 -85
  603. package/dist/chunk-3FGHKDML.js.map +0 -1
  604. package/dist/chunk-43DUHGEK.js +0 -230
  605. package/dist/chunk-46PM7VWO.js +0 -57
  606. package/dist/chunk-4EUNTJET.js +0 -131
  607. package/dist/chunk-4KGHDZ5D.js +0 -106
  608. package/dist/chunk-4XXEIO7Y.js +0 -91
  609. package/dist/chunk-6LLAXJ2U.js +0 -113
  610. package/dist/chunk-7NVCSBLS.js +0 -102
  611. package/dist/chunk-7SPM3BPY.js +0 -296
  612. package/dist/chunk-A25DPPKT.js +0 -863
  613. package/dist/chunk-AFOQKTVU.js +0 -84
  614. package/dist/chunk-AVM2BH2M.js +0 -93
  615. package/dist/chunk-BHLAO334.js +0 -69
  616. package/dist/chunk-BMJ2I543.js +0 -56
  617. package/dist/chunk-BMLIM6L6.js +0 -58
  618. package/dist/chunk-BXGXVPLO.js +0 -224
  619. package/dist/chunk-BZ6PPPQW.js +0 -430
  620. package/dist/chunk-CL4MZZIU.js +0 -76
  621. package/dist/chunk-CQAJE6FO.js +0 -98
  622. package/dist/chunk-CQEYKED5.js +0 -64
  623. package/dist/chunk-CT3UFJ67.js +0 -65
  624. package/dist/chunk-DLO76U36.js +0 -225
  625. package/dist/chunk-DQM2C22J.js +0 -197
  626. package/dist/chunk-DS2NHLWY.js +0 -212
  627. package/dist/chunk-DVYYMVFF.js +0 -1124
  628. package/dist/chunk-E2BUXJ6G.js +0 -660
  629. package/dist/chunk-EBMTRYE3.js +0 -10361
  630. package/dist/chunk-EE5ZSJO4.js +0 -202
  631. package/dist/chunk-EVGV6S76.js +0 -114
  632. package/dist/chunk-EWX4TSCV.js +0 -219
  633. package/dist/chunk-F67LVVKW.js +0 -87
  634. package/dist/chunk-FEDOG4I3.js +0 -138
  635. package/dist/chunk-FUZPSXDN.js +0 -329
  636. package/dist/chunk-G45DFBAZ.js +0 -25
  637. package/dist/chunk-GAYISIRK.js +0 -215
  638. package/dist/chunk-GL3CLKTQ.js +0 -175
  639. package/dist/chunk-GNS5T6GX.js +0 -6340
  640. package/dist/chunk-HMXM56SK.js +0 -685
  641. package/dist/chunk-I2BUVSDV.js +0 -495
  642. package/dist/chunk-IFTRFS46.js +0 -423
  643. package/dist/chunk-IPJ6CRDD.js +0 -24026
  644. package/dist/chunk-JXK7TSXL.js +0 -74
  645. package/dist/chunk-K63JVZ5S.js +0 -573
  646. package/dist/chunk-K6G2OW2Y.js +0 -106
  647. package/dist/chunk-KLG4D6OD.js +0 -163
  648. package/dist/chunk-KNSLYNL7.js +0 -155
  649. package/dist/chunk-KPPCSJOH.js +0 -1883
  650. package/dist/chunk-KPQMFG56.js +0 -170
  651. package/dist/chunk-KQ24JNDM.js +0 -285
  652. package/dist/chunk-KT65LAIX.js +0 -1862
  653. package/dist/chunk-KYHP5LU2.js +0 -411
  654. package/dist/chunk-LAK4VNIW.js +0 -225
  655. package/dist/chunk-LS2ONBRK.js +0 -190
  656. package/dist/chunk-LSCP5K5H.js +0 -287
  657. package/dist/chunk-M2J7NRZH.js +0 -877
  658. package/dist/chunk-M4AVXONP.js +0 -45
  659. package/dist/chunk-M5YBBMND.js +0 -39
  660. package/dist/chunk-MNNE2EIQ.js +0 -89
  661. package/dist/chunk-MOU6TA2M.js +0 -494
  662. package/dist/chunk-MPK4XT4K.js +0 -115
  663. package/dist/chunk-MREVBQDE.js +0 -3108
  664. package/dist/chunk-MREVBQDE.js.map +0 -1
  665. package/dist/chunk-MWAIKWJF.js +0 -91
  666. package/dist/chunk-N3UHJHS4.js +0 -343
  667. package/dist/chunk-N7HWEO5I.js +0 -732
  668. package/dist/chunk-N7RWUYX5.js +0 -1577
  669. package/dist/chunk-NMDISPRO.js +0 -505
  670. package/dist/chunk-NXUYUFSB.js +0 -21
  671. package/dist/chunk-NZOJW3WO.js +0 -94
  672. package/dist/chunk-O3LRMQP5.js +0 -52
  673. package/dist/chunk-O6LOUJXZ.js +0 -349
  674. package/dist/chunk-O73BILSC.js +0 -1853
  675. package/dist/chunk-OBVBIKHJ.js +0 -118
  676. package/dist/chunk-OBVBIKHJ.js.map +0 -1
  677. package/dist/chunk-ODKR6QJZ.js +0 -65
  678. package/dist/chunk-OHN4CIOT.js +0 -103
  679. package/dist/chunk-OSYX3I4Z.js +0 -170
  680. package/dist/chunk-P2ERSPZ4.js +0 -76
  681. package/dist/chunk-PATEYWDY.js +0 -274
  682. package/dist/chunk-PK562ZYR.js +0 -152
  683. package/dist/chunk-Q7BFZR53.js +0 -374
  684. package/dist/chunk-QAGMTRJ4.js +0 -46
  685. package/dist/chunk-QDHNSQTB.js +0 -313
  686. package/dist/chunk-QDUKDDH7.js +0 -114
  687. package/dist/chunk-QPTQCSE2.js +0 -604
  688. package/dist/chunk-QYRVGYBO.js +0 -69
  689. package/dist/chunk-RBGHUV6S.js +0 -723
  690. package/dist/chunk-RIQRKMJ6.js +0 -399
  691. package/dist/chunk-SM7NLN5M.js +0 -262
  692. package/dist/chunk-SPD42IAU.js +0 -746
  693. package/dist/chunk-SRM22KRY.js +0 -153
  694. package/dist/chunk-T32NBYPE.js +0 -26
  695. package/dist/chunk-T65HG22D.js +0 -76
  696. package/dist/chunk-TF7JI2NP.js +0 -134
  697. package/dist/chunk-TJ4FIV3W.js +0 -70
  698. package/dist/chunk-TLUYOKEP.js +0 -79
  699. package/dist/chunk-TPJ66HU6.js +0 -3378
  700. package/dist/chunk-TQLURXGW.js +0 -723
  701. package/dist/chunk-TQLURXGW.js.map +0 -1
  702. package/dist/chunk-TTN6BRR4.js +0 -47
  703. package/dist/chunk-TXWV7V63.js +0 -320
  704. package/dist/chunk-TYPTPDXT.js +0 -65
  705. package/dist/chunk-U7XRHUXR.js +0 -251
  706. package/dist/chunk-ULREBSXS.js +0 -915
  707. package/dist/chunk-V7NI53OJ.js +0 -163
  708. package/dist/chunk-VADAZKT5.js +0 -262
  709. package/dist/chunk-VALONO45.js +0 -42
  710. package/dist/chunk-VBN5XUYW.js +0 -81
  711. package/dist/chunk-VTZDE2PS.js +0 -108
  712. package/dist/chunk-VYSPNAWP.js +0 -341
  713. package/dist/chunk-W7UAEMT6.js +0 -547
  714. package/dist/chunk-WRJ6RW6D.js +0 -145
  715. package/dist/chunk-X24J2RXF.js +0 -125
  716. package/dist/chunk-XAZJVR5N.js +0 -509
  717. package/dist/chunk-XF63RH5S.js +0 -51
  718. package/dist/chunk-XK2N6QOE.js +0 -259
  719. package/dist/chunk-YKHAPCHQ.js +0 -9127
  720. package/dist/chunk-YQ3CJE3K.js +0 -84
  721. package/dist/chunk-YVTUZQSE.js +0 -142
  722. package/dist/chunk-Z6ECYB7Q.js +0 -16
  723. package/dist/chunk-ZR7PUF43.js +0 -260
  724. package/dist/chunk-ZS2GIK77.js +0 -303
  725. package/dist/chunk-ZTUSYRWL.js +0 -102
  726. package/dist/chunk-ZTUSYRWL.js.map +0 -1
  727. package/dist/cite-U3MWAUPD.js +0 -194
  728. package/dist/claim-SZ75R7N5.js +0 -218
  729. package/dist/client-B3IZE4A3.js +0 -21
  730. package/dist/code-SNP65OIL.js +0 -76
  731. package/dist/companies-MJBUF2K5.js +0 -36
  732. package/dist/company-GIOC3RGZ.js +0 -311
  733. package/dist/complete-LWTY2IYJ.js +0 -87
  734. package/dist/config-OQQSUXPG.js +0 -89
  735. package/dist/connect-34FG4BBN.js +0 -46
  736. package/dist/content-C5FQZEYZ.js +0 -162
  737. package/dist/conversation-ITZUWTWQ.js +0 -100
  738. package/dist/conversion-report-HRAJZIYR.js +0 -130
  739. package/dist/conversion-upload-command-64M5WIRT.js +0 -456
  740. package/dist/conversion-writes-VOM3B5PD.js +0 -194
  741. package/dist/conversions-5KDHCOR6.js +0 -141
  742. package/dist/conversions-UHSBZMMN.js +0 -78
  743. package/dist/copy-writes-OMKD6AYT.js +0 -174
  744. package/dist/countries-VCNXGJ2Q.js +0 -83
  745. package/dist/create-Q5ZJBC3Q.js +0 -219
  746. package/dist/create-TYH6FGT2.js +0 -65
  747. package/dist/create-UHMFYP6Y.js +0 -190
  748. package/dist/create-XQIVB72T.js +0 -356
  749. package/dist/creatives-2OJCRQMA.js +0 -119
  750. package/dist/creatives-GH2XDJBE.js +0 -235
  751. package/dist/creatives-UF6BWIER.js +0 -48
  752. package/dist/credentials-YR3YOUF5.js +0 -291
  753. package/dist/critique-GZWCKEIC.js +0 -230
  754. package/dist/crm-6VILSYD3.js +0 -418
  755. package/dist/crm-7I5RLM4P.js +0 -327
  756. package/dist/crop-MA4WY5R6.js +0 -113
  757. package/dist/currency-WTB5RMTD.js +0 -91
  758. package/dist/custom-conversions-NQEHD33J.js +0 -128
  759. package/dist/customers-JKPM5FDO.js +0 -69
  760. package/dist/data-D42NPCJ7.js +0 -665
  761. package/dist/decide-6YPTHW4L.js +0 -199
  762. package/dist/delete-R27M2KE5.js +0 -70
  763. package/dist/delete-TGJLT545.js +0 -60
  764. package/dist/delete-X6CZURWJ.js +0 -71
  765. package/dist/delete-Y3XLSGE6.js +0 -86
  766. package/dist/delete-Y52FER26.js +0 -69
  767. package/dist/delete-ZGIVLLR2.js +0 -71
  768. package/dist/demographics-MIBOKEZ6.js +0 -145
  769. package/dist/describe-IHQZQOVC.js +0 -93
  770. package/dist/describe-J4DM4QAI.js +0 -94
  771. package/dist/dimensions-DMOKMRXB.js +0 -101
  772. package/dist/discard-XEOZMTUW.js +0 -72
  773. package/dist/discover-TJ3JCE27.js +0 -191
  774. package/dist/discover-Y7XBXK5D.js +0 -96
  775. package/dist/domain-OB7VN76D.js +0 -104
  776. package/dist/download-3N4RX43O.js +0 -174
  777. package/dist/download-Y3HY3OD4.js +0 -366
  778. package/dist/draft-3HEIPAEO.js +0 -349
  779. package/dist/draft-BTRMNQD5.js +0 -153
  780. package/dist/draft-D7ZJMZGX.js +0 -149
  781. package/dist/draft-JL7VQO5F.js +0 -640
  782. package/dist/draft-L7XD6PU7.js +0 -227
  783. package/dist/draft-R4ANSR2P.js +0 -389
  784. package/dist/draft-UKQNGJND.js +0 -340
  785. package/dist/draft-YHPXVKJS.js +0 -427
  786. package/dist/env-G2RJ5FYU.js +0 -57
  787. package/dist/experiment-BG3IIAKL.js +0 -2094
  788. package/dist/experiments-YN2W5WFD.js +0 -241
  789. package/dist/export-U5I3UFF5.js +0 -169
  790. package/dist/extract-BKB3GLLJ.js +0 -144
  791. package/dist/facets-2CHYSIHI.js +0 -118
  792. package/dist/favorites-VBX2RKT3.js +0 -178
  793. package/dist/feed-FFKKWHAK.js +0 -246
  794. package/dist/feedback-6LMUAZUP.js +0 -115
  795. package/dist/fetch-UEHBRD4Q.js +0 -139
  796. package/dist/fetch-VLGQMD3I.js +0 -487
  797. package/dist/files-5ZJF53IP.js +0 -21
  798. package/dist/find-CXVZXUO4.js +0 -144
  799. package/dist/fit-ACHJHW42.js +0 -69
  800. package/dist/flows-424TMGHT.js +0 -342
  801. package/dist/folders-2IL4FGFP.js +0 -228
  802. package/dist/follow-KJYNMGVH.js +0 -114
  803. package/dist/follow-competitors-KPQAQ4Y7.js +0 -189
  804. package/dist/following-B7DLRJRB.js +0 -187
  805. package/dist/fonts-SVPSDJKU.js +0 -20
  806. package/dist/forecast-7B277LRR.js +0 -189
  807. package/dist/forecast-JFNKUFLE.js +0 -122
  808. package/dist/funding-OKGO6RFC.js +0 -85
  809. package/dist/funnel-ZV5DCV6Q.js +0 -701
  810. package/dist/ga4-7574RGE2.js +0 -55
  811. package/dist/generate-M2U363ZT.js +0 -265
  812. package/dist/get-2PK66UGH.js +0 -77
  813. package/dist/get-5ZZK3YJ3.js +0 -114
  814. package/dist/get-AKOWQB6H.js +0 -92
  815. package/dist/get-M2ZTJV5E.js +0 -30
  816. package/dist/get-RARCQCWD.js +0 -59
  817. package/dist/get-RXQLEETH.js +0 -69
  818. package/dist/get-YNO4DZVE.js +0 -38
  819. package/dist/get-YUCNJAVQ.js +0 -68
  820. package/dist/gif-QHG6VNZJ.js +0 -111
  821. package/dist/google-6ZPP5RPE.js +0 -3759
  822. package/dist/google-XMWBSQID.js +0 -164
  823. package/dist/google-ads-OIE35UBA.js +0 -230
  824. package/dist/google-ads-OIE35UBA.js.map +0 -1
  825. package/dist/group-2HYW6LV6.js +0 -43
  826. package/dist/group-4OO5CD6H.js +0 -43
  827. package/dist/gsc-NSWQCID5.js +0 -30
  828. package/dist/history-4ELVTL43.js +0 -108
  829. package/dist/history-PFDTKF2L.js +0 -155
  830. package/dist/history-Y6OE7QKW.js +0 -204
  831. package/dist/hubspot-7I6ZWX5K.js +0 -853
  832. package/dist/icon-5ZOCFUM2.js +0 -168
  833. package/dist/ideas-4AV4XIVT.js +0 -49
  834. package/dist/images-XQE5REUR.js +0 -92
  835. package/dist/improve-5II6UBA6.js +0 -86
  836. package/dist/ingest-U5H4NLBN.js +0 -162
  837. package/dist/ingest-VYYQ5HN7.js +0 -31
  838. package/dist/insights-DWJV33QQ.js +0 -151
  839. package/dist/insights-NR3IMZPY.js +0 -1227
  840. package/dist/inspect-5WPCXQ4V.js +0 -38
  841. package/dist/inspiration-7NGZB54F.js +0 -53
  842. package/dist/instant-experiences-YIKLSGY4.js +0 -268
  843. package/dist/intent-KRVMY7XU.js +0 -97
  844. package/dist/job-SNXDY3AK.js +0 -206
  845. package/dist/job-create-KAZEN63G.js +0 -113
  846. package/dist/job-status-J4ET4JF4.js +0 -74
  847. package/dist/keep-EQBQ3RBW.js +0 -78
  848. package/dist/keyword-gap-Z576AY66.js +0 -173
  849. package/dist/keyword-gap-Z576AY66.js.map +0 -1
  850. package/dist/keyword-metrics-OK6PVTKW.js +0 -234
  851. package/dist/keywords-for-site-A6YJ224O.js +0 -134
  852. package/dist/knowledge-RR6TK33E.js +0 -195
  853. package/dist/landings-IZ7QBCUU.js +0 -289
  854. package/dist/landings-TAILT2BK.js +0 -30
  855. package/dist/languages-SOJAIXJN.js +0 -56
  856. package/dist/languages-V6VMH7DU.js +0 -41
  857. package/dist/launches-QLDHLOKR.js +0 -19
  858. package/dist/layerize-RQ3RUMFW.js +0 -199
  859. package/dist/lead-routes-FZ2673HU.js +0 -733
  860. package/dist/leads-3X6JA5FC.js +0 -137
  861. package/dist/leads-5G6YHN7J.js +0 -574
  862. package/dist/learn-VWC7ZVMJ.js +0 -213
  863. package/dist/library-QACELNVY.js +0 -234
  864. package/dist/lighthouse-Y4B3KGAR.js +0 -77
  865. package/dist/line-item-writes-Y7RBQJXN.js +0 -212
  866. package/dist/line-items-RZT4VH3Z.js +0 -107
  867. package/dist/link-53WD7YIN.js +0 -70
  868. package/dist/linkedin-FJE5AH2L.js +0 -1498
  869. package/dist/linkedin-person-726JB6VO.js +0 -142
  870. package/dist/list-6VQIBDWX.js +0 -93
  871. package/dist/list-FBTGR6PN.js +0 -320
  872. package/dist/list-MIKLNRYT.js +0 -65
  873. package/dist/list-PNZSULWU.js +0 -89
  874. package/dist/list-PVS6IY42.js +0 -53
  875. package/dist/list-VTIPHCYH.js +0 -64
  876. package/dist/list-WIVTP4YH.js +0 -76
  877. package/dist/list-XD63USQ6.js +0 -169
  878. package/dist/list-XLMBA2Z7.js +0 -50
  879. package/dist/locations-5HJX4FB3.js +0 -69
  880. package/dist/locations-PG23GN5E.js +0 -41
  881. package/dist/log-Q5PR2DA6.js +0 -98
  882. package/dist/logo-KBCCXPGK.js +0 -18
  883. package/dist/lookup-IXDIASBG.js +0 -26
  884. package/dist/make-WTQQ4VIQ.js +0 -1391
  885. package/dist/map-PXJSEINB.js +0 -519
  886. package/dist/mcp-UTMF5GG3.js +0 -1017
  887. package/dist/media-7BHHNPMB.js +0 -89
  888. package/dist/media-HSX4YZ2D.js +0 -18
  889. package/dist/media-sources-JUZINMHO.js +0 -35
  890. package/dist/members-44UC4M7O.js +0 -50
  891. package/dist/meme-A6IVQQH5.js +0 -108
  892. package/dist/meta-C5MR6QOM.js +0 -152
  893. package/dist/metrics-YQWEGI4T.js +0 -193
  894. package/dist/models-GTACOTSC.js +0 -155
  895. package/dist/music-NAJ3KL2Z.js +0 -75
  896. package/dist/normalize-42R6SKYW.js +0 -806
  897. package/dist/normalize-YLPIN2HO.js +0 -145
  898. package/dist/normalize-paths-UPFRFIOW.js +0 -23
  899. package/dist/options-CMHAGNNM.js +0 -126
  900. package/dist/organization-BIGZP6GT.js +0 -949
  901. package/dist/output-NZGCSPJX.js +0 -30
  902. package/dist/page-2LSTKCQS.js +0 -105
  903. package/dist/page-photos-QULVMDUO.js +0 -122
  904. package/dist/pages-U6WWYYY4.js +0 -67
  905. package/dist/people-HIUN5JMM.js +0 -171
  906. package/dist/people-J6YYDSDD.js +0 -161
  907. package/dist/performance-5JPVKOXT.js +0 -28
  908. package/dist/performance-IB4LCC64.js +0 -6294
  909. package/dist/pinterest-HFL6W4PR.js +0 -105
  910. package/dist/pipedrive-4QIUH53K.js +0 -533
  911. package/dist/pixels-C7UPLWJV.js +0 -62
  912. package/dist/pixels-G7UQWBG6.js +0 -215
  913. package/dist/plan-6R537XH2.js +0 -213
  914. package/dist/posts-PLJBZSGK.js +0 -36
  915. package/dist/preview-I2NWUXHU.js +0 -246
  916. package/dist/preview-XYOG6SXQ.js +0 -103
  917. package/dist/profile-E3QDF64P.js +0 -284
  918. package/dist/promoted-tweet-writes-BNLUZWX5.js +0 -184
  919. package/dist/promoted-tweets-NAUQABBH.js +0 -119
  920. package/dist/properties-RIFRKVXN.js +0 -103
  921. package/dist/publish-VDJE3AIV.js +0 -430
  922. package/dist/query-EEJ6UPSH.js +0 -68
  923. package/dist/query-ND74DZXD.js +0 -278
  924. package/dist/query-ZY635OIE.js +0 -345
  925. package/dist/questionnaire-H2S34CYU.js +0 -103
  926. package/dist/read-QSA3DLVD.js +0 -358
  927. package/dist/read-RFD5YKQJ.js +0 -166
  928. package/dist/reddit-75DA6F7C.js +0 -30
  929. package/dist/refresh-B25VCALR.js +0 -42
  930. package/dist/refresh-Z3DWGRIV.js +0 -100
  931. package/dist/release-EB4YYKZC.js +0 -66
  932. package/dist/relevant-pages-XOWIAGKB.js +0 -101
  933. package/dist/remove-GFIPX3ZH.js +0 -54
  934. package/dist/remove-NMSDSZEO.js +0 -49
  935. package/dist/reopen-2DGA2IVD.js +0 -69
  936. package/dist/rerun-SIONT5FZ.js +0 -101
  937. package/dist/research-A3UEFKAX.js +0 -266
  938. package/dist/research-VA3WD2U7.js +0 -78
  939. package/dist/reset-IW764W2P.js +0 -58
  940. package/dist/reset-WVGXW3PE.js +0 -58
  941. package/dist/resolve-BBSNAH3D.js +0 -125
  942. package/dist/retry-HEPYO7GZ.js +0 -66
  943. package/dist/retry-HN55KRUP.js +0 -66
  944. package/dist/retry-failed-IZQT3PTW.js +0 -45
  945. package/dist/revenue-W74AFXRB.js +0 -99
  946. package/dist/rule-writes-YE5KJD2G.js +0 -534
  947. package/dist/rules-53FEXCIO.js +0 -217
  948. package/dist/rules-J6FCGGCU.js +0 -163
  949. package/dist/run-RMODKFQR.js +0 -78
  950. package/dist/run-ZSX4ZVCK.js +0 -73
  951. package/dist/scaffold-ad-MZZOK2DK.js +0 -1600
  952. package/dist/scaffold-static-ad-SXYJ5WF4.js +0 -998
  953. package/dist/scaffold-video-EXHKQ2OH.js +0 -888
  954. package/dist/schedule-4ZW3ERFB.js +0 -65
  955. package/dist/schedule-BVDEGZKJ.js +0 -67
  956. package/dist/scheduled-agents-47WBMXF5.js +0 -59
  957. package/dist/schema-NHKFPJLQ.js +0 -241
  958. package/dist/schema-NXCOMHLV.js +0 -136
  959. package/dist/scrape-TSM6GAOX.js +0 -2209
  960. package/dist/screenshot-I6LWMHJM.js +0 -103
  961. package/dist/search-26BUZCSQ.js +0 -192
  962. package/dist/search-3WI7TDSH.js +0 -26
  963. package/dist/search-EPA4L4MA.js +0 -113
  964. package/dist/search-TSRSP5MD.js +0 -228
  965. package/dist/search-VDVIYFGS.js +0 -100
  966. package/dist/search-XT7BT46O.js +0 -51
  967. package/dist/search-copy-J3JP5QFJ.js +0 -170
  968. package/dist/search-terms-FTZF5D6Y.js +0 -412
  969. package/dist/seeds-5JXTCF25.js +0 -103
  970. package/dist/select-24SUIGMN.js +0 -134
  971. package/dist/sends-A3GIZEBE.js +0 -405
  972. package/dist/sequences-FQDROWV3.js +0 -146
  973. package/dist/set-5Q7W5F4M.js +0 -274
  974. package/dist/set-prompt-K6NDA2JK.js +0 -204
  975. package/dist/setup-links-5QE64HW5.js +0 -145
  976. package/dist/shared-6A46ZB4C.js +0 -34
  977. package/dist/shopify-YXRAB5RR.js +0 -4032
  978. package/dist/site-TTDWHCSY.js +0 -181
  979. package/dist/sitemaps-Z5I4X7O5.js +0 -77
  980. package/dist/sites-75MF6AWM.js +0 -97
  981. package/dist/skills-XY7E3T26.js +0 -47
  982. package/dist/sources-RWEZCOKX.js +0 -463
  983. package/dist/sources-YAJEVWJZ.js +0 -30
  984. package/dist/stale-MQSHZCZ6.js +0 -92
  985. package/dist/stats-Z62MQKUT.js +0 -34
  986. package/dist/status-KN6J2NCN.js +0 -68
  987. package/dist/sticker-2MHAK7VB.js +0 -103
  988. package/dist/stock-JDENS4OK.js +0 -213
  989. package/dist/studies-UQ2ENMF7.js +0 -250
  990. package/dist/studio-6BBF7H5F.js +0 -49
  991. package/dist/study-writes-4GL77R4A.js +0 -475
  992. package/dist/suggest-VXRFUVTE.js +0 -66
  993. package/dist/sync-KKREYAM6.js +0 -58
  994. package/dist/sync-RL6EBMJL.js +0 -55
  995. package/dist/sync-ZNMO5RSK.js +0 -307
  996. package/dist/sync-definition-ADFTZDWX.js +0 -74
  997. package/dist/tag-DIOV7DVB.js +0 -57
  998. package/dist/tag-manager-HHHPAX5X.js +0 -43
  999. package/dist/tag-manager-HHHPAX5X.js.map +0 -1
  1000. package/dist/tags-3NSXRPXA.js +0 -24
  1001. package/dist/tags-43FSWG5U.js +0 -24
  1002. package/dist/tags-VKPIT6O6.js +0 -24
  1003. package/dist/tags-VVPBW3J5.js +0 -26
  1004. package/dist/tags-XBJGQPFE.js +0 -182
  1005. package/dist/targeting-QTYUCWQV.js +0 -777
  1006. package/dist/targeting-constants-A5WBCBBA.js +0 -118
  1007. package/dist/targeting-criteria-SJS3J742.js +0 -113
  1008. package/dist/targets-SY5GB3ZP.js +0 -110
  1009. package/dist/terms-JKV7HBJM.js +0 -102
  1010. package/dist/testimonials-LTYJCBPH.js +0 -32
  1011. package/dist/themes-MYB7UHVC.js +0 -102
  1012. package/dist/top-companies-YSCNAAKW.js +0 -250
  1013. package/dist/transcript-BZGIGPRK.js +0 -168
  1014. package/dist/translate-2CLUAVHD.js +0 -607
  1015. package/dist/triggers-H4C6GPBQ.js +0 -148
  1016. package/dist/tweets-2Q5QGEJL.js +0 -123
  1017. package/dist/unfollow-PYKBINSN.js +0 -48
  1018. package/dist/unlink-VBKVRRYE.js +0 -73
  1019. package/dist/unstage-3C5KRFWW.js +0 -92
  1020. package/dist/unstage-N2HFHBL3.js +0 -101
  1021. package/dist/update-3LUDZXM5.js +0 -81
  1022. package/dist/update-GDIPH35R.js +0 -193
  1023. package/dist/update-GUDK6ZBD.js +0 -237
  1024. package/dist/update-HKTA45ML.js +0 -69
  1025. package/dist/update-KIEPFW66.js +0 -175
  1026. package/dist/upload-GBMKFPVF.js +0 -194
  1027. package/dist/upload-J64E3RN7.js +0 -185
  1028. package/dist/upscale-NU4SLBBS.js +0 -163
  1029. package/dist/url-options-54MDKYUL.js +0 -137
  1030. package/dist/url-params-LF6U3YEW.js +0 -102
  1031. package/dist/use-PHHOXPFJ.js +0 -117
  1032. package/dist/validate-LK7E32VU.js +0 -180
  1033. package/dist/variant-CCH2DOBH.js +0 -338
  1034. package/dist/videos-VCEXDAIS.js +0 -41
  1035. package/dist/videos-VDOOWKBZ.js +0 -146
  1036. package/dist/view-OEDTEIHR.js +0 -133
  1037. package/dist/viewer-check-FWJ6FRVK.js +0 -89
  1038. package/dist/visuals-IEU3X6AS.js +0 -129
  1039. package/dist/web-LCDRAHMF.js +0 -224
  1040. package/dist/web-LCDRAHMF.js.map +0 -1
  1041. package/dist/winners-PWATNQ6E.js +0 -115
  1042. package/dist/winning-ads-KHZ2W3WM.js +0 -88
  1043. package/dist/write-commands-2AN6LDAL.js +0 -722
  1044. package/dist/write-commands-7Y4AAMET.js +0 -1555
  1045. package/dist/write-commands-COBTUQA7.js +0 -1261
  1046. package/dist/write-commands-UQD4IOPM.js +0 -207
  1047. package/dist/x-P2O4A7JZ.js +0 -47
  1048. /package/dist/{account-KF3CUS2E.js.map → account-B57D3OSA.js.map} +0 -0
  1049. /package/dist/{account-DGXGALNZ.js.map → account-Y3IDIJ3T.js.map} +0 -0
  1050. /package/dist/{account-ZX45PDC6.js.map → account-Z62BVYAI.js.map} +0 -0
  1051. /package/dist/{account-assets-XU5SX4DY.js.map → account-assets-MQK5BDAJ.js.map} +0 -0
  1052. /package/dist/{account-level-LF6YOQSW.js.map → account-level-2TRH77KO.js.map} +0 -0
  1053. /package/dist/{account-reads-CAM7GMRN.js.map → account-reads-XOGHJB3K.js.map} +0 -0
  1054. /package/dist/{account-users-HRF4R2DA.js.map → account-users-ZDZ7B4BX.js.map} +0 -0
  1055. /package/dist/{account-writes-CWHCXDUY.js.map → account-writes-EP35RCNO.js.map} +0 -0
  1056. /package/dist/{accounts-HJZTHNDM.js.map → accounts-53TMHS5X.js.map} +0 -0
  1057. /package/dist/{accounts-7SUGL6ST.js.map → accounts-5ZMP7KU7.js.map} +0 -0
  1058. /package/dist/{accounts-5A5TQX3P.js.map → accounts-7CHGRXBP.js.map} +0 -0
  1059. /package/dist/{accounts-6WKW2CP3.js.map → accounts-SUIMNTTA.js.map} +0 -0
  1060. /package/dist/{accounts-XWQRZMKB.js.map → accounts-XNQZXODM.js.map} +0 -0
  1061. /package/dist/{actions-CT6RZX5E.js.map → actions-Q7DDN427.js.map} +0 -0
  1062. /package/dist/{active-entities-AEIP6SC3.js.map → active-entities-HRHBOZGY.js.map} +0 -0
  1063. /package/dist/{activecampaign-CWECNJAE.js.map → activecampaign-BAWTDTSA.js.map} +0 -0
  1064. /package/dist/{activities-B2NSYUIC.js.map → activities-NWXWO7T2.js.map} +0 -0
  1065. /package/dist/{ad-group-writes-A6AON56E.js.map → ad-group-writes-EVLV4BRD.js.map} +0 -0
  1066. /package/dist/{ad-groups-NO2R2RFH.js.map → ad-groups-UQRBWF2N.js.map} +0 -0
  1067. /package/dist/{ad-writes-LCI5BKZW.js.map → ad-writes-EBCZ5DCY.js.map} +0 -0
  1068. /package/dist/{add-PTWHBWEA.js.map → add-3WUVL3MN.js.map} +0 -0
  1069. /package/dist/{add-PDKZHDPA.js.map → add-ECUL6A7E.js.map} +0 -0
  1070. /package/dist/{add-BFMZ26CN.js.map → add-EQG73P2N.js.map} +0 -0
  1071. /package/dist/{add-3GZOX3N3.js.map → add-HBRY2SF6.js.map} +0 -0
  1072. /package/dist/{add-6LBLEEMV.js.map → add-I4DL3DN5.js.map} +0 -0
  1073. /package/dist/{add-MOPRLPEH.js.map → add-VGWLOZZK.js.map} +0 -0
  1074. /package/dist/{add-2T6YYFLV.js.map → add-Y65O76WS.js.map} +0 -0
  1075. /package/dist/{add-accounts-KFXX5W4D.js.map → add-accounts-R7UR645T.js.map} +0 -0
  1076. /package/dist/{ads-MS5HVD2W.js.map → ads-2TOWF4GX.js.map} +0 -0
  1077. /package/dist/{ads-W2B6DVKA.js.map → ads-BYETTX2Y.js.map} +0 -0
  1078. /package/dist/{ads-NMP4AMCT.js.map → ads-EUQYHCBO.js.map} +0 -0
  1079. /package/dist/{ads-7P6OVEL3.js.map → ads-WF6BCLCJ.js.map} +0 -0
  1080. /package/dist/{adsets-NZ76HTTF.js.map → adsets-CZFTSQQC.js.map} +0 -0
  1081. /package/dist/{advertisers-XZAJMCUA.js.map → advertisers-QGST4SG4.js.map} +0 -0
  1082. /package/dist/{alerts-TNKABZZM.js.map → alerts-RJBTQ2OX.js.map} +0 -0
  1083. /package/dist/{analytics-UKVKUP52.js.map → analytics-RIZ4RJ6O.js.map} +0 -0
  1084. /package/dist/{analytics-EP4VU6WG.js.map → analytics-WLFBQOO4.js.map} +0 -0
  1085. /package/dist/{animate-SHZ4O7CV.js.map → animate-EN7VTJEI.js.map} +0 -0
  1086. /package/dist/{approved-KGUEIHUI.js.map → approved-IFWTYWUE.js.map} +0 -0
  1087. /package/dist/{asset-writes-NOXX5L6U.js.map → asset-writes-P7BLGX53.js.map} +0 -0
  1088. /package/dist/{assign-TGSJJX6I.js.map → assign-MAXWMYQ2.js.map} +0 -0
  1089. /package/dist/{audience-size-GUNODAWA.js.map → audience-size-ISJSPSRW.js.map} +0 -0
  1090. /package/dist/{audience-writes-NAVJKYIK.js.map → audience-writes-K4R6RQ7G.js.map} +0 -0
  1091. /package/dist/{audiences-C7N7XJ6L.js.map → audiences-EZK4PDB5.js.map} +0 -0
  1092. /package/dist/{audiences-FVFR6U5N.js.map → audiences-SDFCRXHD.js.map} +0 -0
  1093. /package/dist/{audiences-27CTTMEX.js.map → audiences-ZYV75JP2.js.map} +0 -0
  1094. /package/dist/{audit-GQVMNU4H.js.map → audit-EHKSN2WS.js.map} +0 -0
  1095. /package/dist/{audit-4L6ZW774.js.map → audit-L434S5FY.js.map} +0 -0
  1096. /package/dist/{autocomplete-IPCIBEY2.js.map → autocomplete-I6V2CKI4.js.map} +0 -0
  1097. /package/dist/{avatars-5ILEKVYJ.js.map → avatars-775WMIZF.js.map} +0 -0
  1098. /package/dist/{bid-pricing-RS4AN4BB.js.map → bid-pricing-HFBQ23DD.js.map} +0 -0
  1099. /package/dist/{brand-G7BCNS3T.js.map → brand-SDDWXOOT.js.map} +0 -0
  1100. /package/dist/{brief-WJGXPIVU.js.map → brief-LR5YTTVQ.js.map} +0 -0
  1101. /package/dist/{businesses-6I5YJXZO.js.map → businesses-Y555ZAIW.js.map} +0 -0
  1102. /package/dist/{campaign-groups-VRRE3LWV.js.map → campaign-groups-DKB3K7L4.js.map} +0 -0
  1103. /package/dist/{campaign-writes-TJXALXFN.js.map → campaign-writes-4T5DSUMT.js.map} +0 -0
  1104. /package/dist/{campaign-writes-LVNA45ST.js.map → campaign-writes-DXV2HPB2.js.map} +0 -0
  1105. /package/dist/{campaigns-ARVKUEYN.js.map → campaigns-4JY3JKPY.js.map} +0 -0
  1106. /package/dist/{campaigns-UGKES6EN.js.map → campaigns-5BYWFXHO.js.map} +0 -0
  1107. /package/dist/{campaigns-HSF2R6RB.js.map → campaigns-6OYAQVIE.js.map} +0 -0
  1108. /package/dist/{campaigns-Q5YV6MGW.js.map → campaigns-UEPNMAIN.js.map} +0 -0
  1109. /package/dist/{canvas-T3GLGUA6.js.map → canvas-6CWER4CP.js.map} +0 -0
  1110. /package/dist/{capabilities-CP3C5RIZ.js.map → capabilities-U53QPNBQ.js.map} +0 -0
  1111. /package/dist/{cards-AQRDO5RA.js.map → cards-EVGVO5NV.js.map} +0 -0
  1112. /package/dist/{catalog-YAARUK57.js.map → catalog-KTAYEWYO.js.map} +0 -0
  1113. /package/dist/{catalogs-W7IC4WUM.js.map → catalogs-UQ6ZUNZL.js.map} +0 -0
  1114. /package/dist/{catalogs-JEOZD7KA.js.map → catalogs-YJSOVGDM.js.map} +0 -0
  1115. /package/dist/{changes-AJMURYJE.js.map → changes-YOTRCCNB.js.map} +0 -0
  1116. /package/dist/{chatgpt-7F744ZTT.js.map → chatgpt-DPLD452Q.js.map} +0 -0
  1117. /package/dist/{chats-KWQ3Z4ZG.js.map → chats-QVGXEYT6.js.map} +0 -0
  1118. /package/dist/{check-BVS5BIWA.js.map → check-3YGJFXU2.js.map} +0 -0
  1119. /package/dist/{chunk-QAGMTRJ4.js.map → chunk-2AW62CH3.js.map} +0 -0
  1120. /package/dist/{chunk-DS2NHLWY.js.map → chunk-2IGAUSWL.js.map} +0 -0
  1121. /package/dist/{chunk-7NVCSBLS.js.map → chunk-2QSDGRRX.js.map} +0 -0
  1122. /package/dist/{chunk-GAYISIRK.js.map → chunk-2UFHCU7A.js.map} +0 -0
  1123. /package/dist/{chunk-ULREBSXS.js.map → chunk-2Z2AEFVW.js.map} +0 -0
  1124. /package/dist/{chunk-Q7BFZR53.js.map → chunk-33KRW6HE.js.map} +0 -0
  1125. /package/dist/{chunk-MWAIKWJF.js.map → chunk-34CJ5QXO.js.map} +0 -0
  1126. /package/dist/{chunk-E2BUXJ6G.js.map → chunk-3HAKK5FO.js.map} +0 -0
  1127. /package/dist/{chunk-IPJ6CRDD.js.map → chunk-4A2UZ3Q3.js.map} +0 -0
  1128. /package/dist/{chunk-AVM2BH2M.js.map → chunk-4BRNQDYX.js.map} +0 -0
  1129. /package/dist/{chunk-OHN4CIOT.js.map → chunk-4MIETRE4.js.map} +0 -0
  1130. /package/dist/{chunk-NXUYUFSB.js.map → chunk-4PXBUMXP.js.map} +0 -0
  1131. /package/dist/{chunk-TXWV7V63.js.map → chunk-4X6QBNIB.js.map} +0 -0
  1132. /package/dist/{chunk-BXGXVPLO.js.map → chunk-52V5324M.js.map} +0 -0
  1133. /package/dist/{chunk-VBN5XUYW.js.map → chunk-5H4M4R73.js.map} +0 -0
  1134. /package/dist/{chunk-BMJ2I543.js.map → chunk-5OB4ZBC4.js.map} +0 -0
  1135. /package/dist/{chunk-VYSPNAWP.js.map → chunk-5WQ3UHJ2.js.map} +0 -0
  1136. /package/dist/{chunk-SM7NLN5M.js.map → chunk-63XEBJIX.js.map} +0 -0
  1137. /package/dist/{chunk-O6LOUJXZ.js.map → chunk-65QWF5C5.js.map} +0 -0
  1138. /package/dist/{chunk-T32NBYPE.js.map → chunk-6AUTRWTB.js.map} +0 -0
  1139. /package/dist/{chunk-EWX4TSCV.js.map → chunk-6QS2CRDW.js.map} +0 -0
  1140. /package/dist/{chunk-CQAJE6FO.js.map → chunk-7J5XOR5D.js.map} +0 -0
  1141. /package/dist/{chunk-43DUHGEK.js.map → chunk-7M2EY3CA.js.map} +0 -0
  1142. /package/dist/{chunk-O73BILSC.js.map → chunk-AEYE57MX.js.map} +0 -0
  1143. /package/dist/{chunk-AFOQKTVU.js.map → chunk-APZTJM5M.js.map} +0 -0
  1144. /package/dist/{chunk-KPPCSJOH.js.map → chunk-CE6M4VLG.js.map} +0 -0
  1145. /package/dist/{chunk-GL3CLKTQ.js.map → chunk-CG6BJIHU.js.map} +0 -0
  1146. /package/dist/{chunk-W7UAEMT6.js.map → chunk-CHPHAPPP.js.map} +0 -0
  1147. /package/dist/{chunk-K6G2OW2Y.js.map → chunk-CNVV272P.js.map} +0 -0
  1148. /package/dist/{chunk-YKHAPCHQ.js.map → chunk-CPBXSDXS.js.map} +0 -0
  1149. /package/dist/{chunk-RBGHUV6S.js.map → chunk-CV74M3H6.js.map} +0 -0
  1150. /package/dist/{chunk-V7NI53OJ.js.map → chunk-CWYONUBS.js.map} +0 -0
  1151. /package/dist/{chunk-YVTUZQSE.js.map → chunk-CZWMU2GB.js.map} +0 -0
  1152. /package/dist/{chunk-4EUNTJET.js.map → chunk-D7AJ4N2X.js.map} +0 -0
  1153. /package/dist/{chunk-NZOJW3WO.js.map → chunk-DA3UIKWS.js.map} +0 -0
  1154. /package/dist/{chunk-ODKR6QJZ.js.map → chunk-DSZ3OLQU.js.map} +0 -0
  1155. /package/dist/{chunk-4XXEIO7Y.js.map → chunk-ECUN7W2Y.js.map} +0 -0
  1156. /package/dist/{chunk-KQ24JNDM.js.map → chunk-EDDHOHTW.js.map} +0 -0
  1157. /package/dist/{chunk-VTZDE2PS.js.map → chunk-EKC2AY2Z.js.map} +0 -0
  1158. /package/dist/{chunk-N7HWEO5I.js.map → chunk-FCWDXKLI.js.map} +0 -0
  1159. /package/dist/{chunk-BHLAO334.js.map → chunk-FU3YCG3Z.js.map} +0 -0
  1160. /package/dist/{chunk-A25DPPKT.js.map → chunk-G4IFJB4Z.js.map} +0 -0
  1161. /package/dist/{chunk-VALONO45.js.map → chunk-G5QPVGVD.js.map} +0 -0
  1162. /package/dist/{chunk-K63JVZ5S.js.map → chunk-GT5JWGZR.js.map} +0 -0
  1163. /package/dist/{chunk-46PM7VWO.js.map → chunk-GZAZHFB3.js.map} +0 -0
  1164. /package/dist/{chunk-HMXM56SK.js.map → chunk-HQISXBEX.js.map} +0 -0
  1165. /package/dist/{chunk-F67LVVKW.js.map → chunk-HSAS5RPH.js.map} +0 -0
  1166. /package/dist/{chunk-M2J7NRZH.js.map → chunk-HSPOURUB.js.map} +0 -0
  1167. /package/dist/{chunk-SRM22KRY.js.map → chunk-ILRH5CQ2.js.map} +0 -0
  1168. /package/dist/{chunk-TJ4FIV3W.js.map → chunk-IWPYFKQZ.js.map} +0 -0
  1169. /package/dist/{chunk-TTN6BRR4.js.map → chunk-J4Z2AP32.js.map} +0 -0
  1170. /package/dist/{chunk-KNSLYNL7.js.map → chunk-J5LG2M5T.js.map} +0 -0
  1171. /package/dist/{chunk-LSCP5K5H.js.map → chunk-J6UWQG4I.js.map} +0 -0
  1172. /package/dist/{chunk-T65HG22D.js.map → chunk-JBIBDAER.js.map} +0 -0
  1173. /package/dist/{chunk-PK562ZYR.js.map → chunk-JHPZATWG.js.map} +0 -0
  1174. /package/dist/{chunk-QYRVGYBO.js.map → chunk-JKED3LEQ.js.map} +0 -0
  1175. /package/dist/{chunk-7SPM3BPY.js.map → chunk-JKFQQAYM.js.map} +0 -0
  1176. /package/dist/{chunk-TPJ66HU6.js.map → chunk-JY5OIBMR.js.map} +0 -0
  1177. /package/dist/{chunk-GNS5T6GX.js.map → chunk-KDCPM6W2.js.map} +0 -0
  1178. /package/dist/{chunk-Z6ECYB7Q.js.map → chunk-KKZGO4XP.js.map} +0 -0
  1179. /package/dist/{chunk-4KGHDZ5D.js.map → chunk-KNJDHJSM.js.map} +0 -0
  1180. /package/dist/{chunk-WRJ6RW6D.js.map → chunk-KQAKXWQ2.js.map} +0 -0
  1181. /package/dist/{chunk-EE5ZSJO4.js.map → chunk-KUNNKG4S.js.map} +0 -0
  1182. /package/dist/{chunk-QDUKDDH7.js.map → chunk-KUTQFIZ6.js.map} +0 -0
  1183. /package/dist/{chunk-LAK4VNIW.js.map → chunk-MERI62BI.js.map} +0 -0
  1184. /package/dist/{chunk-TLUYOKEP.js.map → chunk-MKV6DCAC.js.map} +0 -0
  1185. /package/dist/{chunk-DQM2C22J.js.map → chunk-MQZHJAH3.js.map} +0 -0
  1186. /package/dist/{chunk-BMLIM6L6.js.map → chunk-N2MVLNJH.js.map} +0 -0
  1187. /package/dist/{chunk-CT3UFJ67.js.map → chunk-NEYQACET.js.map} +0 -0
  1188. /package/dist/{chunk-M5YBBMND.js.map → chunk-NJZEVCKE.js.map} +0 -0
  1189. /package/dist/{chunk-EBMTRYE3.js.map → chunk-NR5EJ6TC.js.map} +0 -0
  1190. /package/dist/{chunk-ZR7PUF43.js.map → chunk-OBT55DQA.js.map} +0 -0
  1191. /package/dist/{chunk-6LLAXJ2U.js.map → chunk-OC3BLHKN.js.map} +0 -0
  1192. /package/dist/{chunk-KPQMFG56.js.map → chunk-P7Q7YO4E.js.map} +0 -0
  1193. /package/dist/{chunk-QDHNSQTB.js.map → chunk-PA5OJXQ3.js.map} +0 -0
  1194. /package/dist/{chunk-FEDOG4I3.js.map → chunk-PDHKESLI.js.map} +0 -0
  1195. /package/dist/{chunk-N3UHJHS4.js.map → chunk-PH27RN3O.js.map} +0 -0
  1196. /package/dist/{chunk-KYHP5LU2.js.map → chunk-PMK2WXS5.js.map} +0 -0
  1197. /package/dist/{chunk-37BE7GJE.js.map → chunk-PVTJCDZE.js.map} +0 -0
  1198. /package/dist/{chunk-TF7JI2NP.js.map → chunk-QB72UFAO.js.map} +0 -0
  1199. /package/dist/{chunk-G45DFBAZ.js.map → chunk-QGIRVS5R.js.map} +0 -0
  1200. /package/dist/{chunk-SPD42IAU.js.map → chunk-QSZRATGC.js.map} +0 -0
  1201. /package/dist/{chunk-FUZPSXDN.js.map → chunk-QYOLOU5G.js.map} +0 -0
  1202. /package/dist/{chunk-QPTQCSE2.js.map → chunk-RDRWLYFV.js.map} +0 -0
  1203. /package/dist/{chunk-XAZJVR5N.js.map → chunk-RS4BSY3E.js.map} +0 -0
  1204. /package/dist/{chunk-OSYX3I4Z.js.map → chunk-S2V54TOS.js.map} +0 -0
  1205. /package/dist/{chunk-RIQRKMJ6.js.map → chunk-S2WUFUSW.js.map} +0 -0
  1206. /package/dist/{chunk-DLO76U36.js.map → chunk-S4RISBEX.js.map} +0 -0
  1207. /package/dist/{chunk-LS2ONBRK.js.map → chunk-SCK7U53A.js.map} +0 -0
  1208. /package/dist/{chunk-X24J2RXF.js.map → chunk-SD75FQEP.js.map} +0 -0
  1209. /package/dist/{chunk-M4AVXONP.js.map → chunk-STWMK24H.js.map} +0 -0
  1210. /package/dist/{chunk-MNNE2EIQ.js.map → chunk-SY7CUZGW.js.map} +0 -0
  1211. /package/dist/{chunk-XK2N6QOE.js.map → chunk-SZCEKDLE.js.map} +0 -0
  1212. /package/dist/{chunk-2TF7VAJK.js.map → chunk-T7BJTDEJ.js.map} +0 -0
  1213. /package/dist/{chunk-DVYYMVFF.js.map → chunk-TDNOPJXB.js.map} +0 -0
  1214. /package/dist/{chunk-NMDISPRO.js.map → chunk-TXLSPOLG.js.map} +0 -0
  1215. /package/dist/{chunk-TYPTPDXT.js.map → chunk-U4SWDSLZ.js.map} +0 -0
  1216. /package/dist/{chunk-MOU6TA2M.js.map → chunk-UWXMWEAU.js.map} +0 -0
  1217. /package/dist/{chunk-P2ERSPZ4.js.map → chunk-VDZD56G6.js.map} +0 -0
  1218. /package/dist/{chunk-PATEYWDY.js.map → chunk-VELT4JFT.js.map} +0 -0
  1219. /package/dist/{chunk-MPK4XT4K.js.map → chunk-VGKBJNTJ.js.map} +0 -0
  1220. /package/dist/{chunk-O3LRMQP5.js.map → chunk-VHKEKK2L.js.map} +0 -0
  1221. /package/dist/{chunk-VADAZKT5.js.map → chunk-VTQG5SUE.js.map} +0 -0
  1222. /package/dist/{chunk-KT65LAIX.js.map → chunk-WE2FY3CF.js.map} +0 -0
  1223. /package/dist/{chunk-YQ3CJE3K.js.map → chunk-WJL56TQE.js.map} +0 -0
  1224. /package/dist/{chunk-U7XRHUXR.js.map → chunk-WVXJYBWA.js.map} +0 -0
  1225. /package/dist/{chunk-KLG4D6OD.js.map → chunk-WYBX53EI.js.map} +0 -0
  1226. /package/dist/{chunk-EVGV6S76.js.map → chunk-WZS4U3VF.js.map} +0 -0
  1227. /package/dist/{chunk-N7RWUYX5.js.map → chunk-XBLVA6BC.js.map} +0 -0
  1228. /package/dist/{chunk-CQEYKED5.js.map → chunk-XNTV3QKG.js.map} +0 -0
  1229. /package/dist/{chunk-I2BUVSDV.js.map → chunk-XQIAWIO5.js.map} +0 -0
  1230. /package/dist/{chunk-JXK7TSXL.js.map → chunk-Y3SVCUUH.js.map} +0 -0
  1231. /package/dist/{chunk-2ZT2A2MZ.js.map → chunk-Y62YTEPM.js.map} +0 -0
  1232. /package/dist/{chunk-XF63RH5S.js.map → chunk-YBSRIW5S.js.map} +0 -0
  1233. /package/dist/{chunk-CL4MZZIU.js.map → chunk-YUQAAPK6.js.map} +0 -0
  1234. /package/dist/{chunk-IFTRFS46.js.map → chunk-YXYUHTQM.js.map} +0 -0
  1235. /package/dist/{chunk-BZ6PPPQW.js.map → chunk-ZBSG24TQ.js.map} +0 -0
  1236. /package/dist/{chunk-ZS2GIK77.js.map → chunk-ZDDJTA3H.js.map} +0 -0
  1237. /package/dist/{cite-U3MWAUPD.js.map → cite-J3BDH6EM.js.map} +0 -0
  1238. /package/dist/{claim-SZ75R7N5.js.map → claim-XHSTFNS3.js.map} +0 -0
  1239. /package/dist/{client-B3IZE4A3.js.map → client-ZVLGESWV.js.map} +0 -0
  1240. /package/dist/{code-SNP65OIL.js.map → code-INTC7C6S.js.map} +0 -0
  1241. /package/dist/{companies-MJBUF2K5.js.map → companies-ITNWR5Q4.js.map} +0 -0
  1242. /package/dist/{company-GIOC3RGZ.js.map → company-ANL7K7CY.js.map} +0 -0
  1243. /package/dist/{complete-LWTY2IYJ.js.map → complete-7L3ILPCT.js.map} +0 -0
  1244. /package/dist/{config-OQQSUXPG.js.map → config-623ZSJRY.js.map} +0 -0
  1245. /package/dist/{connect-34FG4BBN.js.map → connect-SD7PFKPI.js.map} +0 -0
  1246. /package/dist/{content-C5FQZEYZ.js.map → content-KSPHSCEA.js.map} +0 -0
  1247. /package/dist/{conversation-ITZUWTWQ.js.map → conversation-SKZMGVA5.js.map} +0 -0
  1248. /package/dist/{conversion-report-HRAJZIYR.js.map → conversion-report-ZPENZMJF.js.map} +0 -0
  1249. /package/dist/{conversion-upload-command-64M5WIRT.js.map → conversion-upload-command-6TY2DIBM.js.map} +0 -0
  1250. /package/dist/{conversion-writes-VOM3B5PD.js.map → conversion-writes-NIDUTQHX.js.map} +0 -0
  1251. /package/dist/{conversions-UHSBZMMN.js.map → conversions-3Q3PEAAN.js.map} +0 -0
  1252. /package/dist/{conversions-5KDHCOR6.js.map → conversions-IMST22UQ.js.map} +0 -0
  1253. /package/dist/{copy-writes-OMKD6AYT.js.map → copy-writes-IQ5RZQIR.js.map} +0 -0
  1254. /package/dist/{countries-VCNXGJ2Q.js.map → countries-DLPPH2HT.js.map} +0 -0
  1255. /package/dist/{create-TYH6FGT2.js.map → create-5KE4XHS3.js.map} +0 -0
  1256. /package/dist/{create-UHMFYP6Y.js.map → create-NR4WX6PS.js.map} +0 -0
  1257. /package/dist/{create-XQIVB72T.js.map → create-QBA7VZSZ.js.map} +0 -0
  1258. /package/dist/{create-Q5ZJBC3Q.js.map → create-SPNJBN6K.js.map} +0 -0
  1259. /package/dist/{creatives-UF6BWIER.js.map → creatives-3E5BEATB.js.map} +0 -0
  1260. /package/dist/{creatives-GH2XDJBE.js.map → creatives-42PW2C24.js.map} +0 -0
  1261. /package/dist/{creatives-2OJCRQMA.js.map → creatives-Q3DWV55N.js.map} +0 -0
  1262. /package/dist/{credentials-YR3YOUF5.js.map → credentials-T7F2PFNY.js.map} +0 -0
  1263. /package/dist/{critique-GZWCKEIC.js.map → critique-I2HAOTTX.js.map} +0 -0
  1264. /package/dist/{crm-6VILSYD3.js.map → crm-EVN7PDQE.js.map} +0 -0
  1265. /package/dist/{crm-7I5RLM4P.js.map → crm-OO2WO6OG.js.map} +0 -0
  1266. /package/dist/{crop-MA4WY5R6.js.map → crop-5GOGWZBZ.js.map} +0 -0
  1267. /package/dist/{currency-WTB5RMTD.js.map → currency-CLB7ROUV.js.map} +0 -0
  1268. /package/dist/{custom-conversions-NQEHD33J.js.map → custom-conversions-RFFTAVXT.js.map} +0 -0
  1269. /package/dist/{customers-JKPM5FDO.js.map → customers-V7WKKZI2.js.map} +0 -0
  1270. /package/dist/{data-D42NPCJ7.js.map → data-ZDTEJD6A.js.map} +0 -0
  1271. /package/dist/{decide-6YPTHW4L.js.map → decide-ZUABEECJ.js.map} +0 -0
  1272. /package/dist/{delete-X6CZURWJ.js.map → delete-4QSARZJR.js.map} +0 -0
  1273. /package/dist/{delete-ZGIVLLR2.js.map → delete-5P6K4EOJ.js.map} +0 -0
  1274. /package/dist/{delete-Y52FER26.js.map → delete-6KVYWSGA.js.map} +0 -0
  1275. /package/dist/{delete-TGJLT545.js.map → delete-7VLK5I4V.js.map} +0 -0
  1276. /package/dist/{delete-Y3XLSGE6.js.map → delete-JHTSAJFB.js.map} +0 -0
  1277. /package/dist/{delete-R27M2KE5.js.map → delete-TRJMPMN5.js.map} +0 -0
  1278. /package/dist/{demographics-MIBOKEZ6.js.map → demographics-K5WTHZCW.js.map} +0 -0
  1279. /package/dist/{describe-J4DM4QAI.js.map → describe-RNZAYFEJ.js.map} +0 -0
  1280. /package/dist/{describe-IHQZQOVC.js.map → describe-SEWK4DBO.js.map} +0 -0
  1281. /package/dist/{dimensions-DMOKMRXB.js.map → dimensions-QB5T6EWT.js.map} +0 -0
  1282. /package/dist/{discard-XEOZMTUW.js.map → discard-ANRGHE2Z.js.map} +0 -0
  1283. /package/dist/{discover-TJ3JCE27.js.map → discover-EAI4WDSL.js.map} +0 -0
  1284. /package/dist/{discover-Y7XBXK5D.js.map → discover-K7DDJHD7.js.map} +0 -0
  1285. /package/dist/{domain-OB7VN76D.js.map → domain-LQ4VCYC4.js.map} +0 -0
  1286. /package/dist/{download-3N4RX43O.js.map → download-HVNPTNFN.js.map} +0 -0
  1287. /package/dist/{download-Y3HY3OD4.js.map → download-KMEFJ3Q6.js.map} +0 -0
  1288. /package/dist/{draft-BTRMNQD5.js.map → draft-4DFLYVL6.js.map} +0 -0
  1289. /package/dist/{draft-YHPXVKJS.js.map → draft-572T3UNG.js.map} +0 -0
  1290. /package/dist/{draft-UKQNGJND.js.map → draft-IHEEODST.js.map} +0 -0
  1291. /package/dist/{draft-R4ANSR2P.js.map → draft-JGEZVDAS.js.map} +0 -0
  1292. /package/dist/{draft-D7ZJMZGX.js.map → draft-JMIGVR5G.js.map} +0 -0
  1293. /package/dist/{draft-L7XD6PU7.js.map → draft-KZKNUQ2I.js.map} +0 -0
  1294. /package/dist/{draft-JL7VQO5F.js.map → draft-R3GI7JWY.js.map} +0 -0
  1295. /package/dist/{draft-3HEIPAEO.js.map → draft-RTZU6INK.js.map} +0 -0
  1296. /package/dist/{env-G2RJ5FYU.js.map → env-BSWB7OCN.js.map} +0 -0
  1297. /package/dist/{experiment-BG3IIAKL.js.map → experiment-WEWASTVO.js.map} +0 -0
  1298. /package/dist/{experiments-YN2W5WFD.js.map → experiments-C4R65GA6.js.map} +0 -0
  1299. /package/dist/{export-U5I3UFF5.js.map → export-S4BY2GWM.js.map} +0 -0
  1300. /package/dist/{extract-BKB3GLLJ.js.map → extract-J7Q6DYE7.js.map} +0 -0
  1301. /package/dist/{facets-2CHYSIHI.js.map → facets-GXBTQCAW.js.map} +0 -0
  1302. /package/dist/{favorites-VBX2RKT3.js.map → favorites-5NPJFWFY.js.map} +0 -0
  1303. /package/dist/{feed-FFKKWHAK.js.map → feed-NHETXTZK.js.map} +0 -0
  1304. /package/dist/{feedback-6LMUAZUP.js.map → feedback-FZTJATY7.js.map} +0 -0
  1305. /package/dist/{fetch-VLGQMD3I.js.map → fetch-GSMAAL7N.js.map} +0 -0
  1306. /package/dist/{fetch-UEHBRD4Q.js.map → fetch-JYLCS2EU.js.map} +0 -0
  1307. /package/dist/{files-5ZJF53IP.js.map → files-CVB5LNVZ.js.map} +0 -0
  1308. /package/dist/{find-CXVZXUO4.js.map → find-F7QVEOF2.js.map} +0 -0
  1309. /package/dist/{fit-ACHJHW42.js.map → fit-K63JPI3A.js.map} +0 -0
  1310. /package/dist/{flows-424TMGHT.js.map → flows-C45HCGGB.js.map} +0 -0
  1311. /package/dist/{folders-2IL4FGFP.js.map → folders-3P77VB54.js.map} +0 -0
  1312. /package/dist/{follow-KJYNMGVH.js.map → follow-K5V3364I.js.map} +0 -0
  1313. /package/dist/{follow-competitors-KPQAQ4Y7.js.map → follow-competitors-7NMXP67A.js.map} +0 -0
  1314. /package/dist/{following-B7DLRJRB.js.map → following-BGKELTHN.js.map} +0 -0
  1315. /package/dist/{fonts-SVPSDJKU.js.map → fonts-C4XDCCI2.js.map} +0 -0
  1316. /package/dist/{forecast-JFNKUFLE.js.map → forecast-NOQNCFTX.js.map} +0 -0
  1317. /package/dist/{forecast-7B277LRR.js.map → forecast-YFCLMXAV.js.map} +0 -0
  1318. /package/dist/{funding-OKGO6RFC.js.map → funding-BSJEX6UQ.js.map} +0 -0
  1319. /package/dist/{funnel-ZV5DCV6Q.js.map → funnel-U47RAS7K.js.map} +0 -0
  1320. /package/dist/{ga4-7574RGE2.js.map → ga4-XVCLJG6R.js.map} +0 -0
  1321. /package/dist/{generate-M2U363ZT.js.map → generate-7467FZZH.js.map} +0 -0
  1322. /package/dist/{get-M2ZTJV5E.js.map → get-4JHQAABK.js.map} +0 -0
  1323. /package/dist/{get-5ZZK3YJ3.js.map → get-I77O6MRD.js.map} +0 -0
  1324. /package/dist/{get-2PK66UGH.js.map → get-J2QFYRHW.js.map} +0 -0
  1325. /package/dist/{get-AKOWQB6H.js.map → get-QB3VXSUK.js.map} +0 -0
  1326. /package/dist/{get-YUCNJAVQ.js.map → get-QLVNHWEI.js.map} +0 -0
  1327. /package/dist/{get-YNO4DZVE.js.map → get-SGMPBUCB.js.map} +0 -0
  1328. /package/dist/{get-RARCQCWD.js.map → get-TBXIAEWE.js.map} +0 -0
  1329. /package/dist/{get-RXQLEETH.js.map → get-UQVH3Q4T.js.map} +0 -0
  1330. /package/dist/{gif-QHG6VNZJ.js.map → gif-44B7JLEN.js.map} +0 -0
  1331. /package/dist/{google-6ZPP5RPE.js.map → google-GBGLPAP5.js.map} +0 -0
  1332. /package/dist/{google-XMWBSQID.js.map → google-OYP3AU3I.js.map} +0 -0
  1333. /package/dist/{group-2HYW6LV6.js.map → group-F7OQOLZ5.js.map} +0 -0
  1334. /package/dist/{group-4OO5CD6H.js.map → group-RH2O7Y23.js.map} +0 -0
  1335. /package/dist/{gsc-NSWQCID5.js.map → gsc-WR65MURL.js.map} +0 -0
  1336. /package/dist/{history-4ELVTL43.js.map → history-DD3UWZZ4.js.map} +0 -0
  1337. /package/dist/{history-Y6OE7QKW.js.map → history-KBTYILFZ.js.map} +0 -0
  1338. /package/dist/{history-PFDTKF2L.js.map → history-M6VLA7TD.js.map} +0 -0
  1339. /package/dist/{hubspot-7I6ZWX5K.js.map → hubspot-W5LYFWTH.js.map} +0 -0
  1340. /package/dist/{icon-5ZOCFUM2.js.map → icon-DVK3X5Q3.js.map} +0 -0
  1341. /package/dist/{ideas-4AV4XIVT.js.map → ideas-6LZ6VINW.js.map} +0 -0
  1342. /package/dist/{images-XQE5REUR.js.map → images-TUQEYLFE.js.map} +0 -0
  1343. /package/dist/{improve-5II6UBA6.js.map → improve-DDQC3GMD.js.map} +0 -0
  1344. /package/dist/{ingest-VYYQ5HN7.js.map → ingest-S7I6E2GE.js.map} +0 -0
  1345. /package/dist/{ingest-U5H4NLBN.js.map → ingest-XJNSFWBC.js.map} +0 -0
  1346. /package/dist/{insights-NR3IMZPY.js.map → insights-HCLFFFFV.js.map} +0 -0
  1347. /package/dist/{insights-DWJV33QQ.js.map → insights-MZ5DPH5X.js.map} +0 -0
  1348. /package/dist/{inspect-5WPCXQ4V.js.map → inspect-AQBNRV5E.js.map} +0 -0
  1349. /package/dist/{inspiration-7NGZB54F.js.map → inspiration-VWYZJABF.js.map} +0 -0
  1350. /package/dist/{instant-experiences-YIKLSGY4.js.map → instant-experiences-IRBTOXAW.js.map} +0 -0
  1351. /package/dist/{intent-KRVMY7XU.js.map → intent-6NJBN3OR.js.map} +0 -0
  1352. /package/dist/{job-SNXDY3AK.js.map → job-EYCWS5N7.js.map} +0 -0
  1353. /package/dist/{job-create-KAZEN63G.js.map → job-create-XQIK4OTR.js.map} +0 -0
  1354. /package/dist/{job-status-J4ET4JF4.js.map → job-status-PNP2TENA.js.map} +0 -0
  1355. /package/dist/{keep-EQBQ3RBW.js.map → keep-6GNM3ZGK.js.map} +0 -0
  1356. /package/dist/{keyword-metrics-OK6PVTKW.js.map → keyword-metrics-DSEJ2KDM.js.map} +0 -0
  1357. /package/dist/{keywords-for-site-A6YJ224O.js.map → keywords-for-site-CYVRXIF5.js.map} +0 -0
  1358. /package/dist/{knowledge-RR6TK33E.js.map → knowledge-LJETCORU.js.map} +0 -0
  1359. /package/dist/{landings-TAILT2BK.js.map → landings-PJBVYMC3.js.map} +0 -0
  1360. /package/dist/{landings-IZ7QBCUU.js.map → landings-ZZBDYJSM.js.map} +0 -0
  1361. /package/dist/{languages-SOJAIXJN.js.map → languages-2VJCTQ4I.js.map} +0 -0
  1362. /package/dist/{languages-V6VMH7DU.js.map → languages-H4VPFO7Y.js.map} +0 -0
  1363. /package/dist/{launches-QLDHLOKR.js.map → launches-WSXWPOEY.js.map} +0 -0
  1364. /package/dist/{layerize-RQ3RUMFW.js.map → layerize-FCRXY3VB.js.map} +0 -0
  1365. /package/dist/{lead-routes-FZ2673HU.js.map → lead-routes-LKWVY645.js.map} +0 -0
  1366. /package/dist/{leads-5G6YHN7J.js.map → leads-UTBT62TH.js.map} +0 -0
  1367. /package/dist/{leads-3X6JA5FC.js.map → leads-ZRHPHJRE.js.map} +0 -0
  1368. /package/dist/{learn-VWC7ZVMJ.js.map → learn-ZR35TBVQ.js.map} +0 -0
  1369. /package/dist/{library-QACELNVY.js.map → library-UBIXM7AL.js.map} +0 -0
  1370. /package/dist/{lighthouse-Y4B3KGAR.js.map → lighthouse-OLKLIMIR.js.map} +0 -0
  1371. /package/dist/{line-item-writes-Y7RBQJXN.js.map → line-item-writes-L73P5MN7.js.map} +0 -0
  1372. /package/dist/{line-items-RZT4VH3Z.js.map → line-items-KC5PKV2T.js.map} +0 -0
  1373. /package/dist/{link-53WD7YIN.js.map → link-64FQKM6S.js.map} +0 -0
  1374. /package/dist/{linkedin-FJE5AH2L.js.map → linkedin-BD63QPGK.js.map} +0 -0
  1375. /package/dist/{linkedin-person-726JB6VO.js.map → linkedin-person-6XXLSFDE.js.map} +0 -0
  1376. /package/dist/{list-PVS6IY42.js.map → list-63K7DBHJ.js.map} +0 -0
  1377. /package/dist/{list-WIVTP4YH.js.map → list-7HIQW6MN.js.map} +0 -0
  1378. /package/dist/{list-VTIPHCYH.js.map → list-G5QSLYQQ.js.map} +0 -0
  1379. /package/dist/{list-6VQIBDWX.js.map → list-H6ETFATT.js.map} +0 -0
  1380. /package/dist/{list-XLMBA2Z7.js.map → list-IGRZ5JED.js.map} +0 -0
  1381. /package/dist/{list-XD63USQ6.js.map → list-KYTLJVHG.js.map} +0 -0
  1382. /package/dist/{list-MIKLNRYT.js.map → list-U524VV4Q.js.map} +0 -0
  1383. /package/dist/{list-PNZSULWU.js.map → list-VQNYW5R4.js.map} +0 -0
  1384. /package/dist/{list-FBTGR6PN.js.map → list-WOCSNSYO.js.map} +0 -0
  1385. /package/dist/{locations-5HJX4FB3.js.map → locations-AR4ZTFT4.js.map} +0 -0
  1386. /package/dist/{locations-PG23GN5E.js.map → locations-UPY33JUY.js.map} +0 -0
  1387. /package/dist/{log-Q5PR2DA6.js.map → log-LLJ3M63R.js.map} +0 -0
  1388. /package/dist/{logo-KBCCXPGK.js.map → logo-YM46ZKEJ.js.map} +0 -0
  1389. /package/dist/{lookup-IXDIASBG.js.map → lookup-IAY43D6F.js.map} +0 -0
  1390. /package/dist/{make-WTQQ4VIQ.js.map → make-UM6P6RD3.js.map} +0 -0
  1391. /package/dist/{map-PXJSEINB.js.map → map-SKH3NVSQ.js.map} +0 -0
  1392. /package/dist/{mcp-UTMF5GG3.js.map → mcp-FIBT4HAH.js.map} +0 -0
  1393. /package/dist/{media-7BHHNPMB.js.map → media-J375SRWQ.js.map} +0 -0
  1394. /package/dist/{media-HSX4YZ2D.js.map → media-WRBQFCP6.js.map} +0 -0
  1395. /package/dist/{media-sources-JUZINMHO.js.map → media-sources-ZY7S74U2.js.map} +0 -0
  1396. /package/dist/{members-44UC4M7O.js.map → members-PK3Q7AZX.js.map} +0 -0
  1397. /package/dist/{meme-A6IVQQH5.js.map → meme-JR4XI745.js.map} +0 -0
  1398. /package/dist/{meta-C5MR6QOM.js.map → meta-2ZQ3CWLF.js.map} +0 -0
  1399. /package/dist/{metrics-YQWEGI4T.js.map → metrics-BNLDV4BU.js.map} +0 -0
  1400. /package/dist/{models-GTACOTSC.js.map → models-QEB3EOSF.js.map} +0 -0
  1401. /package/dist/{music-NAJ3KL2Z.js.map → music-NULWVHQP.js.map} +0 -0
  1402. /package/dist/{normalize-42R6SKYW.js.map → normalize-CKAPAYL2.js.map} +0 -0
  1403. /package/dist/{normalize-YLPIN2HO.js.map → normalize-KEDHUMAB.js.map} +0 -0
  1404. /package/dist/{normalize-paths-UPFRFIOW.js.map → normalize-paths-UTFTLTTF.js.map} +0 -0
  1405. /package/dist/{options-CMHAGNNM.js.map → options-VYRUYL4N.js.map} +0 -0
  1406. /package/dist/{organization-BIGZP6GT.js.map → organization-RTJDOJEV.js.map} +0 -0
  1407. /package/dist/{output-NZGCSPJX.js.map → output-K3J4NHRY.js.map} +0 -0
  1408. /package/dist/{page-2LSTKCQS.js.map → page-2RVXSH5V.js.map} +0 -0
  1409. /package/dist/{page-photos-QULVMDUO.js.map → page-photos-7TTMQUFQ.js.map} +0 -0
  1410. /package/dist/{pages-U6WWYYY4.js.map → pages-G5DNWE2G.js.map} +0 -0
  1411. /package/dist/{people-J6YYDSDD.js.map → people-3VU3QSRN.js.map} +0 -0
  1412. /package/dist/{people-HIUN5JMM.js.map → people-A3YXUYUR.js.map} +0 -0
  1413. /package/dist/{performance-IB4LCC64.js.map → performance-6I57ZQTD.js.map} +0 -0
  1414. /package/dist/{performance-5JPVKOXT.js.map → performance-OBAWMTVU.js.map} +0 -0
  1415. /package/dist/{pinterest-HFL6W4PR.js.map → pinterest-XZDCUELU.js.map} +0 -0
  1416. /package/dist/{pipedrive-4QIUH53K.js.map → pipedrive-7AA7ZD7M.js.map} +0 -0
  1417. /package/dist/{pixels-G7UQWBG6.js.map → pixels-IEIARQNK.js.map} +0 -0
  1418. /package/dist/{pixels-C7UPLWJV.js.map → pixels-M2UBKUJI.js.map} +0 -0
  1419. /package/dist/{plan-6R537XH2.js.map → plan-YP5D6JXM.js.map} +0 -0
  1420. /package/dist/{posts-PLJBZSGK.js.map → posts-B5DGAKAC.js.map} +0 -0
  1421. /package/dist/{preview-XYOG6SXQ.js.map → preview-66BGLU5H.js.map} +0 -0
  1422. /package/dist/{preview-I2NWUXHU.js.map → preview-S5QKIKNG.js.map} +0 -0
  1423. /package/dist/{profile-E3QDF64P.js.map → profile-YSTVWMUL.js.map} +0 -0
  1424. /package/dist/{promoted-tweet-writes-BNLUZWX5.js.map → promoted-tweet-writes-ZUFVAVGA.js.map} +0 -0
  1425. /package/dist/{promoted-tweets-NAUQABBH.js.map → promoted-tweets-3AKHKOI4.js.map} +0 -0
  1426. /package/dist/{properties-RIFRKVXN.js.map → properties-SJ3DVYWT.js.map} +0 -0
  1427. /package/dist/{publish-VDJE3AIV.js.map → publish-JPIOQKB4.js.map} +0 -0
  1428. /package/dist/{query-ND74DZXD.js.map → query-DBDRPW3D.js.map} +0 -0
  1429. /package/dist/{query-EEJ6UPSH.js.map → query-FZAFUWCX.js.map} +0 -0
  1430. /package/dist/{query-ZY635OIE.js.map → query-L2E6BR7S.js.map} +0 -0
  1431. /package/dist/{questionnaire-H2S34CYU.js.map → questionnaire-7Y4QYVC6.js.map} +0 -0
  1432. /package/dist/{read-QSA3DLVD.js.map → read-N6FYJYNX.js.map} +0 -0
  1433. /package/dist/{read-RFD5YKQJ.js.map → read-OMNUPQ77.js.map} +0 -0
  1434. /package/dist/{reddit-75DA6F7C.js.map → reddit-TKE3IXST.js.map} +0 -0
  1435. /package/dist/{refresh-Z3DWGRIV.js.map → refresh-BE7KEADW.js.map} +0 -0
  1436. /package/dist/{refresh-B25VCALR.js.map → refresh-BH6FXQ3U.js.map} +0 -0
  1437. /package/dist/{release-EB4YYKZC.js.map → release-EUXHZEO7.js.map} +0 -0
  1438. /package/dist/{relevant-pages-XOWIAGKB.js.map → relevant-pages-OFFMPMKG.js.map} +0 -0
  1439. /package/dist/{remove-GFIPX3ZH.js.map → remove-6HAN547O.js.map} +0 -0
  1440. /package/dist/{remove-NMSDSZEO.js.map → remove-OUXUL7S2.js.map} +0 -0
  1441. /package/dist/{reopen-2DGA2IVD.js.map → reopen-HBEWR4CF.js.map} +0 -0
  1442. /package/dist/{rerun-SIONT5FZ.js.map → rerun-PLS5XYTW.js.map} +0 -0
  1443. /package/dist/{research-VA3WD2U7.js.map → research-B5VHPALW.js.map} +0 -0
  1444. /package/dist/{research-A3UEFKAX.js.map → research-RCD54TCL.js.map} +0 -0
  1445. /package/dist/{reset-IW764W2P.js.map → reset-DQXYM75W.js.map} +0 -0
  1446. /package/dist/{reset-WVGXW3PE.js.map → reset-Y7UWO233.js.map} +0 -0
  1447. /package/dist/{resolve-BBSNAH3D.js.map → resolve-NVL3FTQU.js.map} +0 -0
  1448. /package/dist/{retry-HN55KRUP.js.map → retry-MMY5H6O6.js.map} +0 -0
  1449. /package/dist/{retry-HEPYO7GZ.js.map → retry-YCYZPMXM.js.map} +0 -0
  1450. /package/dist/{retry-failed-IZQT3PTW.js.map → retry-failed-TPA6BN5O.js.map} +0 -0
  1451. /package/dist/{revenue-W74AFXRB.js.map → revenue-C24BDD5A.js.map} +0 -0
  1452. /package/dist/{rule-writes-YE5KJD2G.js.map → rule-writes-BHR45HA2.js.map} +0 -0
  1453. /package/dist/{rules-53FEXCIO.js.map → rules-MCM7DGAQ.js.map} +0 -0
  1454. /package/dist/{rules-J6FCGGCU.js.map → rules-MGEJJJ4O.js.map} +0 -0
  1455. /package/dist/{run-RMODKFQR.js.map → run-2RGSNKFH.js.map} +0 -0
  1456. /package/dist/{run-ZSX4ZVCK.js.map → run-TPAZDCY2.js.map} +0 -0
  1457. /package/dist/{scaffold-ad-MZZOK2DK.js.map → scaffold-ad-UOXDJIVB.js.map} +0 -0
  1458. /package/dist/{scaffold-static-ad-SXYJ5WF4.js.map → scaffold-static-ad-ZM3LOIFK.js.map} +0 -0
  1459. /package/dist/{scaffold-video-EXHKQ2OH.js.map → scaffold-video-EBQOBQXI.js.map} +0 -0
  1460. /package/dist/{schedule-BVDEGZKJ.js.map → schedule-7MFRP2UI.js.map} +0 -0
  1461. /package/dist/{schedule-4ZW3ERFB.js.map → schedule-IVNAF7NB.js.map} +0 -0
  1462. /package/dist/{scheduled-agents-47WBMXF5.js.map → scheduled-agents-NODIHKKM.js.map} +0 -0
  1463. /package/dist/{schema-NXCOMHLV.js.map → schema-F6QTDMJW.js.map} +0 -0
  1464. /package/dist/{schema-NHKFPJLQ.js.map → schema-JCAV2D44.js.map} +0 -0
  1465. /package/dist/{scrape-TSM6GAOX.js.map → scrape-2GYN64LS.js.map} +0 -0
  1466. /package/dist/{screenshot-I6LWMHJM.js.map → screenshot-4I53QQIB.js.map} +0 -0
  1467. /package/dist/{search-EPA4L4MA.js.map → search-7QDZVCBI.js.map} +0 -0
  1468. /package/dist/{search-26BUZCSQ.js.map → search-A4GTDVIE.js.map} +0 -0
  1469. /package/dist/{search-TSRSP5MD.js.map → search-CM3YN6AF.js.map} +0 -0
  1470. /package/dist/{search-XT7BT46O.js.map → search-DOLDN7XN.js.map} +0 -0
  1471. /package/dist/{search-VDVIYFGS.js.map → search-GMQLUXGM.js.map} +0 -0
  1472. /package/dist/{search-3WI7TDSH.js.map → search-R2ZMD3UZ.js.map} +0 -0
  1473. /package/dist/{search-copy-J3JP5QFJ.js.map → search-copy-RXLF7CDZ.js.map} +0 -0
  1474. /package/dist/{search-terms-FTZF5D6Y.js.map → search-terms-OFLKWSEF.js.map} +0 -0
  1475. /package/dist/{seeds-5JXTCF25.js.map → seeds-RJJKNQ3Q.js.map} +0 -0
  1476. /package/dist/{select-24SUIGMN.js.map → select-HER2THTU.js.map} +0 -0
  1477. /package/dist/{sends-A3GIZEBE.js.map → sends-TCVUTCLV.js.map} +0 -0
  1478. /package/dist/{sequences-FQDROWV3.js.map → sequences-5QJ4MCQU.js.map} +0 -0
  1479. /package/dist/{set-5Q7W5F4M.js.map → set-MXHNM4NH.js.map} +0 -0
  1480. /package/dist/{set-prompt-K6NDA2JK.js.map → set-prompt-G27JMELE.js.map} +0 -0
  1481. /package/dist/{setup-links-5QE64HW5.js.map → setup-links-LVJU7KHP.js.map} +0 -0
  1482. /package/dist/{shared-6A46ZB4C.js.map → shared-M3B6KGKW.js.map} +0 -0
  1483. /package/dist/{shopify-YXRAB5RR.js.map → shopify-ZQFONX3R.js.map} +0 -0
  1484. /package/dist/{site-TTDWHCSY.js.map → site-X43NFWHL.js.map} +0 -0
  1485. /package/dist/{sitemaps-Z5I4X7O5.js.map → sitemaps-HHB5KWLV.js.map} +0 -0
  1486. /package/dist/{sites-75MF6AWM.js.map → sites-RBIQYTTX.js.map} +0 -0
  1487. /package/dist/{skills-XY7E3T26.js.map → skills-F3RZS4AL.js.map} +0 -0
  1488. /package/dist/{sources-YAJEVWJZ.js.map → sources-3KYI7TSD.js.map} +0 -0
  1489. /package/dist/{sources-RWEZCOKX.js.map → sources-G7QWYL2J.js.map} +0 -0
  1490. /package/dist/{stale-MQSHZCZ6.js.map → stale-F7UXOYYY.js.map} +0 -0
  1491. /package/dist/{stats-Z62MQKUT.js.map → stats-JQ2SMWSV.js.map} +0 -0
  1492. /package/dist/{status-KN6J2NCN.js.map → status-7RLJ7ZND.js.map} +0 -0
  1493. /package/dist/{sticker-2MHAK7VB.js.map → sticker-FMKFZF6H.js.map} +0 -0
  1494. /package/dist/{stock-JDENS4OK.js.map → stock-BSMF4FH4.js.map} +0 -0
  1495. /package/dist/{studies-UQ2ENMF7.js.map → studies-B5TD7QQ3.js.map} +0 -0
  1496. /package/dist/{studio-6BBF7H5F.js.map → studio-2X6UOCAR.js.map} +0 -0
  1497. /package/dist/{study-writes-4GL77R4A.js.map → study-writes-SPXA62IW.js.map} +0 -0
  1498. /package/dist/{suggest-VXRFUVTE.js.map → suggest-X3VYDUDZ.js.map} +0 -0
  1499. /package/dist/{sync-RL6EBMJL.js.map → sync-CYVBFBVM.js.map} +0 -0
  1500. /package/dist/{sync-ZNMO5RSK.js.map → sync-DQZZAAWR.js.map} +0 -0
  1501. /package/dist/{sync-KKREYAM6.js.map → sync-XAWDIOTT.js.map} +0 -0
  1502. /package/dist/{sync-definition-ADFTZDWX.js.map → sync-definition-73CCAEDP.js.map} +0 -0
  1503. /package/dist/{tag-DIOV7DVB.js.map → tag-ZM7JVUQP.js.map} +0 -0
  1504. /package/dist/{tags-VVPBW3J5.js.map → tags-5V3NCHKE.js.map} +0 -0
  1505. /package/dist/{tags-VKPIT6O6.js.map → tags-HSLB3YPN.js.map} +0 -0
  1506. /package/dist/{tags-XBJGQPFE.js.map → tags-M57YBWGW.js.map} +0 -0
  1507. /package/dist/{tags-43FSWG5U.js.map → tags-MWMY3GRG.js.map} +0 -0
  1508. /package/dist/{tags-3NSXRPXA.js.map → tags-QHEJUOHL.js.map} +0 -0
  1509. /package/dist/{targeting-QTYUCWQV.js.map → targeting-T2HTV2OD.js.map} +0 -0
  1510. /package/dist/{targeting-constants-A5WBCBBA.js.map → targeting-constants-FXSAUQGQ.js.map} +0 -0
  1511. /package/dist/{targeting-criteria-SJS3J742.js.map → targeting-criteria-FIXPSX2K.js.map} +0 -0
  1512. /package/dist/{targets-SY5GB3ZP.js.map → targets-BVAFNU4K.js.map} +0 -0
  1513. /package/dist/{terms-JKV7HBJM.js.map → terms-J33CD7MY.js.map} +0 -0
  1514. /package/dist/{testimonials-LTYJCBPH.js.map → testimonials-RIL2ARX7.js.map} +0 -0
  1515. /package/dist/{themes-MYB7UHVC.js.map → themes-VAKXKG4M.js.map} +0 -0
  1516. /package/dist/{top-companies-YSCNAAKW.js.map → top-companies-KEV55RME.js.map} +0 -0
  1517. /package/dist/{transcript-BZGIGPRK.js.map → transcript-ZOJWRPZD.js.map} +0 -0
  1518. /package/dist/{translate-2CLUAVHD.js.map → translate-WL6KD2X4.js.map} +0 -0
  1519. /package/dist/{triggers-H4C6GPBQ.js.map → triggers-AALSXPLW.js.map} +0 -0
  1520. /package/dist/{tweets-2Q5QGEJL.js.map → tweets-APLLXXXE.js.map} +0 -0
  1521. /package/dist/{unfollow-PYKBINSN.js.map → unfollow-5T56ESNZ.js.map} +0 -0
  1522. /package/dist/{unlink-VBKVRRYE.js.map → unlink-WD5D3XBG.js.map} +0 -0
  1523. /package/dist/{unstage-N2HFHBL3.js.map → unstage-6QVKZITE.js.map} +0 -0
  1524. /package/dist/{unstage-3C5KRFWW.js.map → unstage-BVNREABR.js.map} +0 -0
  1525. /package/dist/{update-HKTA45ML.js.map → update-3YQGAFEX.js.map} +0 -0
  1526. /package/dist/{update-GDIPH35R.js.map → update-6355E7VP.js.map} +0 -0
  1527. /package/dist/{update-GUDK6ZBD.js.map → update-HYZXKLZ7.js.map} +0 -0
  1528. /package/dist/{update-KIEPFW66.js.map → update-TZLOKZ22.js.map} +0 -0
  1529. /package/dist/{update-3LUDZXM5.js.map → update-UFRVCSJA.js.map} +0 -0
  1530. /package/dist/{upload-GBMKFPVF.js.map → upload-F5FT3U62.js.map} +0 -0
  1531. /package/dist/{upload-J64E3RN7.js.map → upload-PMKPLLAA.js.map} +0 -0
  1532. /package/dist/{upscale-NU4SLBBS.js.map → upscale-LQXISRH2.js.map} +0 -0
  1533. /package/dist/{url-options-54MDKYUL.js.map → url-options-DOOHH2JE.js.map} +0 -0
  1534. /package/dist/{url-params-LF6U3YEW.js.map → url-params-CXUAYJBD.js.map} +0 -0
  1535. /package/dist/{use-PHHOXPFJ.js.map → use-J2TQU5UA.js.map} +0 -0
  1536. /package/dist/{validate-LK7E32VU.js.map → validate-YRTGO4UN.js.map} +0 -0
  1537. /package/dist/{variant-CCH2DOBH.js.map → variant-P2A3NQTP.js.map} +0 -0
  1538. /package/dist/{videos-VCEXDAIS.js.map → videos-KGPDOMSN.js.map} +0 -0
  1539. /package/dist/{videos-VDOOWKBZ.js.map → videos-KN2TUWQ6.js.map} +0 -0
  1540. /package/dist/{view-OEDTEIHR.js.map → view-RHYPHQ2I.js.map} +0 -0
  1541. /package/dist/{viewer-check-FWJ6FRVK.js.map → viewer-check-PRUOWSNM.js.map} +0 -0
  1542. /package/dist/{visuals-IEU3X6AS.js.map → visuals-L73TEVWN.js.map} +0 -0
  1543. /package/dist/{winners-PWATNQ6E.js.map → winners-KZO2ISHS.js.map} +0 -0
  1544. /package/dist/{winning-ads-KHZ2W3WM.js.map → winning-ads-QRBI3TLN.js.map} +0 -0
  1545. /package/dist/{write-commands-2AN6LDAL.js.map → write-commands-BRVVNJHH.js.map} +0 -0
  1546. /package/dist/{write-commands-7Y4AAMET.js.map → write-commands-FUXBKDN7.js.map} +0 -0
  1547. /package/dist/{write-commands-COBTUQA7.js.map → write-commands-KJR3EK3O.js.map} +0 -0
  1548. /package/dist/{write-commands-UQD4IOPM.js.map → write-commands-YECHEWMG.js.map} +0 -0
  1549. /package/dist/{x-P2O4A7JZ.js.map → x-WVWMOUAQ.js.map} +0 -0
@@ -1,3378 +0,0 @@
1
- import {
2
- nodeParamsPreview
3
- } from "./chunk-CQEYKED5.js";
4
- import {
5
- keepRunResult,
6
- previewsOf
7
- } from "./chunk-VYSPNAWP.js";
8
- import {
9
- correctedGraph,
10
- keptPictureForSizes,
11
- keptPictureGraph,
12
- outputRatioWarningsFor,
13
- runResult,
14
- shownBaseline,
15
- shownVersion,
16
- unreviewedHint,
17
- verticalRelayoutHints
18
- } from "./chunk-KYHP5LU2.js";
19
- import {
20
- waitForSheet
21
- } from "./chunk-WN4KX7GE.js";
22
- import {
23
- fetchBrandLogo
24
- } from "./chunk-VTZDE2PS.js";
25
- import {
26
- runBaker,
27
- seriesLeadsAbove,
28
- seriesMembers,
29
- seriesRunHints,
30
- writeSeriesMemberCanvas
31
- } from "./chunk-FUZPSXDN.js";
32
- import {
33
- correctedPicture,
34
- growFromVersion,
35
- isStaticAdCanvas,
36
- keepsChosen,
37
- madeThisRun,
38
- pictureRecord,
39
- previousAdImage,
40
- previousDelivered,
41
- relaysSizesOnly,
42
- staticReviewCredits,
43
- variantImage,
44
- versionRun
45
- } from "./chunk-E2BUXJ6G.js";
46
- import {
47
- buildFailedRunRecord,
48
- buildInitialRunRecord,
49
- buildRunRecord,
50
- creativeSlugFromCanvasPath,
51
- finalFiles,
52
- finalOutputLabelsFromCanvas,
53
- nodeOutputsToRecord,
54
- withFacts
55
- } from "./chunk-GL3CLKTQ.js";
56
- import {
57
- RENDERS_PER_REASON,
58
- canvasFreshness,
59
- clearLegacyDirtyMarker,
60
- readRenderState,
61
- recordReasons,
62
- recordRemake,
63
- recordRenderAttempt,
64
- recordRendered,
65
- recordReviewOutcome,
66
- recordSeriesLeadRun,
67
- recordSnapshot,
68
- spentReasons,
69
- withDurableRenders
70
- } from "./chunk-EE5ZSJO4.js";
71
- import {
72
- AUTO_FIX_ROUNDS,
73
- BRAND_LOGO_ROLE,
74
- CLAIMS_MODEL,
75
- CLAIMS_REQUEST,
76
- CanvasPrepareError,
77
- PATCHED_WORDS,
78
- PEOPLE_PROMPT_VERSION,
79
- REBUILD_FILE,
80
- UNREAD_WORDS,
81
- anchorLines,
82
- autoFixChoice,
83
- carryUnchanged,
84
- castHandles,
85
- computeSourceSha,
86
- correctFrom,
87
- deliveredLogoFindings,
88
- droppedKeeps,
89
- exitOnPrepareError,
90
- findBrandRoot,
91
- fixMemoryOf,
92
- formatOfAdaptId,
93
- formatOfSizeNode,
94
- frameChanges,
95
- isNativeCanvas,
96
- keptLostHint,
97
- listSceneFiles,
98
- logoMissesBefore,
99
- logoPlacementFindings,
100
- lostVital,
101
- paidFor,
102
- peoplePrompt,
103
- persistingDefects,
104
- placedLogoBoxes,
105
- placedTooFar,
106
- plainRunEdit,
107
- plannedFormats,
108
- plannedPlacements,
109
- prepareCanvas,
110
- readIdeaAnchor,
111
- readPeople,
112
- readStaticBrandKit,
113
- readStaticPromptJson,
114
- rederiveFromVariant,
115
- rendersNewPicture,
116
- repeatsFailedFix,
117
- repeatsFailedRemake,
118
- seriesOf,
119
- stopsWithoutRepair,
120
- switchToLogoFile,
121
- uncastPeople,
122
- unmendedSource,
123
- wireNamedPeople,
124
- wireProofBadges,
125
- withDeliveredSizes,
126
- withExtendedSizes,
127
- withPlannedRelay,
128
- withRelayEdit,
129
- withRelayNote
130
- } from "./chunk-EBMTRYE3.js";
131
- import {
132
- advanceDefinitionStatus
133
- } from "./chunk-3ACMDRSE.js";
134
- import {
135
- ViewerAnswerSchema,
136
- describeViewer,
137
- gatewayViewerModel,
138
- jevReadJudge,
139
- judgeViewerAnswer,
140
- liveViewerLookups,
141
- misreadings,
142
- sureEnough,
143
- viewerCheckBeforeRender,
144
- viewerCheckSkip
145
- } from "./chunk-N7HWEO5I.js";
146
- import {
147
- mayBeCorrection,
148
- readTurnRenders,
149
- recordTurnRender,
150
- recordViewerFail,
151
- roundFitsRun,
152
- runRenderChain,
153
- turnRefusals,
154
- turnRenderRefusal,
155
- updateTurnRenders,
156
- viewerChecksSpent
157
- } from "./chunk-2N5MQP65.js";
158
- import {
159
- heldRules
160
- } from "./chunk-YVTUZQSE.js";
161
- import {
162
- readAvatars,
163
- writeAvatars
164
- } from "./chunk-G45DFBAZ.js";
165
- import {
166
- readCompanyReading
167
- } from "./chunk-BZ6PPPQW.js";
168
- import {
169
- frontmatterOf,
170
- ruleTells
171
- } from "./chunk-RBGHUV6S.js";
172
- import {
173
- holdUnbilledSpend,
174
- holdWhenSettled,
175
- sendBillingSpend,
176
- takeUnbilledSpend
177
- } from "./chunk-YQ3CJE3K.js";
178
- import {
179
- canvasOutputsRoot,
180
- describeRewrites,
181
- findWorkspaceRoot,
182
- localPathParam
183
- } from "./chunk-FEDOG4I3.js";
184
- import {
185
- MISALIGNED,
186
- ValidationError,
187
- asReviewNote,
188
- compareSizes,
189
- createEngineFromEnv,
190
- planVertical,
191
- resolveConcurrency,
192
- sizeDifferenceFinding,
193
- takeCheckWarnings,
194
- ulid
195
- } from "./chunk-YKHAPCHQ.js";
196
- import {
197
- BackendClient,
198
- LOGO_COMPOSITE_ROLE,
199
- STATIC_ADAPT_FORMAT_ROLE,
200
- STATIC_ADAPT_ROLE,
201
- STATIC_FIX_ROLE,
202
- STATIC_FORMAT_ROLE,
203
- STATIC_LEAD_ROLE,
204
- STATIC_MASTER_ROLE,
205
- STATIC_PICK_ROLE,
206
- STATIC_PLACE_ROLE,
207
- STATIC_PLATE_ROLE,
208
- STATIC_SAFE_FIT_ROLE,
209
- STATIC_SIZE_ROLE,
210
- STATIC_VARIANTS_ROLE,
211
- STATIC_VARIANT_CALL_ROLE,
212
- VARIANT_PREFILTER_ROLE,
213
- castsNobody,
214
- isPlateCanvas,
215
- nodesWithRole,
216
- regenerateTargets,
217
- relaidPictureRole,
218
- rolesById,
219
- staticMasterFormat
220
- } from "./chunk-GNS5T6GX.js";
221
- import {
222
- bytesOf,
223
- judgeWinner,
224
- nearIdenticalFindings,
225
- parseJudgeScores,
226
- reviewRenderedStatic,
227
- samePictureSizes,
228
- staticSafeArea,
229
- staticVerdict
230
- } from "./chunk-N7RWUYX5.js";
231
- import {
232
- reviewAgainstRules
233
- } from "./chunk-QAGMTRJ4.js";
234
- import {
235
- AdSpecSchema,
236
- adSpecJsonSchema,
237
- conceptSummary,
238
- decisionOf,
239
- isAdSpec,
240
- isMemeTemplate,
241
- isVital,
242
- nativeChrome,
243
- nativeCopy,
244
- nativeSurfaceName,
245
- readAdSpec,
246
- readInterfaceWords
247
- } from "./chunk-KT65LAIX.js";
248
- import {
249
- jevCitationJudge
250
- } from "./chunk-TJ4FIV3W.js";
251
- import {
252
- RENDER_REVIEW_MODEL,
253
- RENDER_REVIEW_UNAVAILABLE,
254
- askAboutImages,
255
- askAboutText,
256
- reviewContextBeside,
257
- reviewRenderedVideo,
258
- rulesDigest,
259
- sceneWindowsBeside,
260
- sceneWindowsOnDelivered,
261
- videoPathFromOutput
262
- } from "./chunk-ULREBSXS.js";
263
- import {
264
- GLANCE_CHECK_MODEL,
265
- VIEWER_CHECK_MODEL
266
- } from "./chunk-NZZ7ATO5.js";
267
- import {
268
- describeMarket
269
- } from "./chunk-QKPQ3YUV.js";
270
- import {
271
- BackendHttpError,
272
- LayerExecutionError,
273
- RunAbortedError,
274
- describeFailureReason,
275
- requireCredentialsFromEnv,
276
- runFailureCode,
277
- runFailureFix
278
- } from "./chunk-O73BILSC.js";
279
- import {
280
- sha256Hex
281
- } from "./chunk-WZ5YRUQU.js";
282
- import {
283
- creativesReasonsResponseSchema
284
- } from "./chunk-624DWMDW.js";
285
- import {
286
- apiPost
287
- } from "./chunk-XK2N6QOE.js";
288
- import {
289
- optionalChatId,
290
- optionalTurnId
291
- } from "./chunk-I2BUVSDV.js";
292
-
293
- // src/commands/canvas/run.ts
294
- import { readFile as readFile7 } from "fs/promises";
295
- import path9 from "path";
296
- import { defineCommand } from "citty";
297
-
298
- // src/commands/canvas/remembered-review.ts
299
- import { createHash } from "crypto";
300
- import { mkdir, readFile, writeFile } from "fs/promises";
301
- import path from "path";
302
- async function rememberedVideoReview(opts, review) {
303
- const bytes = await readFile(opts.video).catch(() => null);
304
- if (bytes === null) return review();
305
- const key = createHash("sha256").update(bytes).update(JSON.stringify(opts.asked ?? null)).digest("hex");
306
- const file = path.join(opts.cacheDir, "video-review", `${key}.json`);
307
- const kept = await readFile(file, "utf8").then((t) => JSON.parse(t), () => null);
308
- if (Array.isArray(kept)) return kept;
309
- const findings = await review();
310
- if (findings !== null) {
311
- await mkdir(path.dirname(file), { recursive: true }).catch(() => void 0);
312
- await writeFile(file, JSON.stringify(findings), "utf8").catch(() => void 0);
313
- }
314
- return findings;
315
- }
316
-
317
- // src/commands/canvas/run-progress.ts
318
- function clampNodeError(error) {
319
- return { ...error, message: error.message.slice(0, 2e3) };
320
- }
321
- var RunProgressTracker = class {
322
- runId;
323
- meta;
324
- startedAt;
325
- nodes = /* @__PURE__ */ new Map();
326
- finalLabels;
327
- planned = false;
328
- constructor(runId, meta, finalLabels) {
329
- this.runId = runId;
330
- this.meta = meta;
331
- this.finalLabels = finalLabels;
332
- this.startedAt = Date.now();
333
- }
334
- apply(event) {
335
- if (event.kind === "plan") {
336
- for (const node of event.nodes) {
337
- this.nodes.set(node.node_id, {
338
- nodeId: node.node_id,
339
- nodeType: node.node_type,
340
- cached: false,
341
- credits: 0,
342
- durationMs: 0,
343
- outputs: [],
344
- deps: node.deps,
345
- status: "pending",
346
- paramsPreview: nodeParamsPreview(node.params, node.deps),
347
- ...node.role !== void 0 ? { role: node.role } : {}
348
- });
349
- }
350
- this.planned = true;
351
- return;
352
- }
353
- if (event.kind === "node_start") {
354
- this.patchNode(event.node_id, { status: "running" });
355
- return;
356
- }
357
- if (event.kind === "node_settled") {
358
- this.patchNode(event.run.node_id, {
359
- status: "completed",
360
- cached: event.run.cached,
361
- credits: event.run.credits,
362
- durationMs: event.run.duration_ms,
363
- outputs: nodeOutputsToRecord(
364
- event.outputs,
365
- event.run.node_id === this.finalLabels?.nodeId ? this.finalLabels.labels : void 0
366
- ),
367
- ...withFacts(event.outputs)
368
- });
369
- return;
370
- }
371
- this.patchNode(event.node_id, { status: "failed", error: clampNodeError(event.error) });
372
- }
373
- /** True once the plan event landed — before that there is nothing worth posting. */
374
- hasPlan() {
375
- return this.planned;
376
- }
377
- /** Plan facts (deps + params preview) for stamping the terminal record's nodes. */
378
- planInfo() {
379
- const info = /* @__PURE__ */ new Map();
380
- for (const node of this.nodes.values()) {
381
- info.set(node.nodeId, {
382
- deps: node.deps ?? [],
383
- paramsPreview: node.paramsPreview,
384
- ...node.role !== void 0 ? { role: node.role } : {}
385
- });
386
- }
387
- return info;
388
- }
389
- /** The current in-flight state as a postable full record. */
390
- snapshot() {
391
- const nodes = [...this.nodes.values()];
392
- return {
393
- runId: this.runId,
394
- ...this.meta,
395
- status: "running",
396
- stats: {
397
- totalNodes: nodes.length,
398
- cachedNodes: nodes.filter((n) => n.cached).length,
399
- totalCredits: nodes.reduce((sum, n) => sum + n.credits, 0),
400
- durationMs: Date.now() - this.startedAt
401
- },
402
- nodes
403
- };
404
- }
405
- /**
406
- * Terminal record for a failed run, preserving what each node got to —
407
- * completed nodes keep their outputs so the graph shows exactly where the
408
- * run died instead of an empty husk.
409
- */
410
- failedSnapshot(errorMessage) {
411
- const snapshot = this.snapshot();
412
- return {
413
- ...snapshot,
414
- status: "failed",
415
- errorMessage: errorMessage.slice(0, 2e3),
416
- stats: { ...snapshot.stats, durationMs: Date.now() - this.startedAt }
417
- };
418
- }
419
- patchNode(nodeId, patch) {
420
- const existing = this.nodes.get(nodeId);
421
- if (!existing) return;
422
- this.nodes.set(nodeId, { ...existing, ...patch, status: patch.status ?? existing.status });
423
- }
424
- };
425
- var RunRecordPoster = class {
426
- post;
427
- latest = null;
428
- inflight = null;
429
- warned = false;
430
- keepaliveTimer = null;
431
- constructor(post) {
432
- this.post = post;
433
- }
434
- /** Queue a progress snapshot; returns immediately. */
435
- enqueue(payload) {
436
- this.latest = payload;
437
- if (!this.inflight) this.inflight = this.pump();
438
- }
439
- /**
440
- * Re-post the latest snapshot on an interval even with no new node events, so
441
- * the backend's `canvasRuns.updatedAt` heartbeat stays fresh during a long
442
- * single-clip poll (a video_generate clip can run minutes with no
443
- * intervening node events). When this process dies the keepalive stops → the
444
- * run's `updatedAt` goes stale → the backend reconciliation sweep force-fails
445
- * it as interrupted and surfaces the clips that finished. `produce` returns
446
- * null before the plan lands (nothing worth posting yet).
447
- */
448
- startKeepalive(produce, intervalMs = 6e4) {
449
- if (this.keepaliveTimer) return;
450
- this.keepaliveTimer = setInterval(() => {
451
- const snapshot = produce();
452
- if (snapshot) this.enqueue(snapshot);
453
- }, intervalMs);
454
- this.keepaliveTimer.unref?.();
455
- }
456
- stopKeepalive() {
457
- if (this.keepaliveTimer) {
458
- clearInterval(this.keepaliveTimer);
459
- this.keepaliveTimer = null;
460
- }
461
- }
462
- /**
463
- * Post the terminal record (awaited, errors surfaced to the caller). Any
464
- * queued progress snapshot is superseded — the terminal record is the full
465
- * state — but an in-flight POST is awaited first so it can't land after.
466
- */
467
- async flush(terminal) {
468
- this.stopKeepalive();
469
- this.latest = null;
470
- if (this.inflight) await this.inflight;
471
- await this.post(terminal);
472
- }
473
- async pump() {
474
- while (this.latest) {
475
- const payload = this.latest;
476
- this.latest = null;
477
- try {
478
- await this.post(payload);
479
- } catch (e) {
480
- if (!this.warned) {
481
- this.warned = true;
482
- const msg = e instanceof Error ? e.message : String(e);
483
- process.stderr.write(`[warn] live run progress not streaming (${msg})
484
- `);
485
- }
486
- }
487
- }
488
- this.inflight = null;
489
- }
490
- };
491
-
492
- // src/commands/canvas/spec-renders.ts
493
- async function specRenders(slug, sourceSha, post = (path10, body) => apiPost(path10, body, { read: true, timeoutMs: 15e3 })) {
494
- try {
495
- return creativesReasonsResponseSchema.parse(await post("/api/creatives/reasons", { slug, sourceSha })).data.runs;
496
- } catch {
497
- return null;
498
- }
499
- }
500
-
501
- // src/commands/canvas/run-retention.ts
502
- import { rm } from "fs/promises";
503
- import path2 from "path";
504
- function runDirsToPrune(entries, keep, currentRunId) {
505
- const runs = entries.filter((e) => /^r_[0-9A-Za-z]+$/.test(e) && e !== currentRunId).sort();
506
- if (keep <= 0) return runs;
507
- return runs.slice(0, Math.max(0, runs.length - keep));
508
- }
509
- async function pruneOldRuns(outputsDir, keep, currentRunId, log) {
510
- const { readdir: readdir2 } = await import("fs/promises");
511
- let entries;
512
- try {
513
- entries = await readdir2(outputsDir);
514
- } catch {
515
- return;
516
- }
517
- const toPrune = runDirsToPrune(entries, keep, currentRunId);
518
- if (toPrune.length === 0) return;
519
- for (const dir of toPrune) {
520
- await rm(path2.join(outputsDir, dir), { recursive: true, force: true }).catch(
521
- (e) => log(`[prune ] could not remove ${dir}: ${e.message}`)
522
- );
523
- }
524
- log(`[prune ] removed ${toPrune.length} old run dir(s), kept the ${keep} newest`);
525
- }
526
-
527
- // src/commands/canvas/run-resume.ts
528
- import { randomUUID } from "crypto";
529
- import { rmSync } from "fs";
530
- import { mkdir as mkdir2, readFile as readFile2, rm as rm2, writeFile as writeFile2 } from "fs/promises";
531
- import path3 from "path";
532
- function markerKey(canvasPath) {
533
- const slug = creativeSlugFromCanvasPath(canvasPath);
534
- const identity = slug ?? path3.relative(process.cwd(), path3.resolve(canvasPath));
535
- return sha256Hex(Buffer.from(identity)).slice(0, 32);
536
- }
537
- function markerFile(outputsDir, canvasPath) {
538
- return path3.join(outputsDir, ".inflight", `${markerKey(canvasPath)}.json`);
539
- }
540
- function classifyRemoteRun(run) {
541
- if (run.interrupted === true || run.status === "awaiting_approval") return "adopt";
542
- if (run.status !== "running") return "ignore";
543
- return run.adoptable === true ? "adopt" : "concurrent";
544
- }
545
- var HEARTBEAT_MS = 2e4;
546
- var MARKER_LIVE_MS = 9e4;
547
- function isLiveRender(marker, now = Date.now()) {
548
- if (marker.pid === void 0) return false;
549
- const beat = marker.heartbeatAt ?? marker.startedAt;
550
- if (beat === void 0 || now - beat > MARKER_LIVE_MS) return false;
551
- try {
552
- process.kill(marker.pid, 0);
553
- return true;
554
- } catch (e) {
555
- return e.code === "EPERM";
556
- }
557
- }
558
- async function resolveRunId(opts) {
559
- const existing = await readMarker(opts.outputsDir, opts.canvasPath);
560
- if (existing?.pid !== void 0 && existing.pid !== process.pid && (opts.isRendering ?? ((marker) => isLiveRender(marker)))(existing)) {
561
- return { runId: existing.runId, resumed: false, rendering: { runId: existing.runId, pid: existing.pid } };
562
- }
563
- if (opts.explicitRunId) return { runId: opts.explicitRunId, resumed: false };
564
- if (!opts.fresh) {
565
- if (existing) {
566
- const sameSource = existing.sourceSha !== void 0 && existing.sourceSha === opts.sourceSha;
567
- return { runId: existing.runId, resumed: true, source: "local", sameSource };
568
- }
569
- if (opts.adoptedRunId) return { runId: opts.adoptedRunId, resumed: true, source: "remote", sameSource: true };
570
- if (opts.remote) {
571
- try {
572
- const active = await opts.remote.getActiveRun(opts.remote.creativeSlug, opts.remote.sourceSha);
573
- if (active) {
574
- const decision = classifyRemoteRun(active);
575
- if (decision === "adopt") return { runId: active.runId, resumed: true, source: "remote", sameSource: true };
576
- if (decision === "concurrent") {
577
- return { runId: `r_${ulid()}`, resumed: false, concurrentRunId: active.runId };
578
- }
579
- }
580
- } catch (e) {
581
- const msg = e instanceof Error ? e.message : String(e);
582
- process.stderr.write(`[warn] resumable-run lookup failed (${msg}) \u2014 starting a fresh run
583
- `);
584
- }
585
- }
586
- }
587
- return { runId: `r_${ulid()}`, resumed: false };
588
- }
589
- async function readMarker(outputsDir, canvasPath) {
590
- try {
591
- const parsed = JSON.parse(await readFile2(markerFile(outputsDir, canvasPath), "utf8"));
592
- if (typeof parsed.runId !== "string" || parsed.runId.length === 0) return null;
593
- const num = (value) => typeof value === "number" && Number.isFinite(value) ? value : void 0;
594
- return {
595
- runId: parsed.runId,
596
- ...Number.isInteger(parsed.pid) ? { pid: parsed.pid } : {},
597
- ...typeof parsed.token === "string" ? { token: parsed.token } : {},
598
- ...num(parsed.startedAt) !== void 0 ? { startedAt: num(parsed.startedAt) } : {},
599
- ...num(parsed.heartbeatAt) !== void 0 ? { heartbeatAt: num(parsed.heartbeatAt) } : {},
600
- ...typeof parsed.sourceSha === "string" ? { sourceSha: parsed.sourceSha } : {}
601
- };
602
- } catch {
603
- return null;
604
- }
605
- }
606
- async function markRunInFlight(outputsDir, canvasPath, runId, sourceSha) {
607
- const file = markerFile(outputsDir, canvasPath);
608
- const token = randomUUID();
609
- const startedAt = Date.now();
610
- const write = (heartbeatAt) => writeFile2(
611
- file,
612
- JSON.stringify({
613
- runId,
614
- pid: process.pid,
615
- token,
616
- canvasPath: path3.resolve(canvasPath),
617
- startedAt,
618
- heartbeatAt,
619
- ...sourceSha ? { sourceSha } : {}
620
- })
621
- );
622
- try {
623
- await mkdir2(path3.dirname(file), { recursive: true });
624
- await write(startedAt);
625
- } catch {
626
- }
627
- const timer = setInterval(() => {
628
- void readMarker(outputsDir, canvasPath).then((marker) => marker?.token === token ? write(Date.now()) : void 0).catch(() => void 0);
629
- }, HEARTBEAT_MS);
630
- timer.unref();
631
- return { token, stop: () => clearInterval(timer) };
632
- }
633
- function busyFile(outputsDir, canvasPath) {
634
- return path3.join(outputsDir, ".inflight", `${markerKey(canvasPath)}.busy.json`);
635
- }
636
- async function markCanvasBusy(outputsDir, canvasPath, runId, pid = process.pid) {
637
- const file = busyFile(outputsDir, canvasPath);
638
- const write = () => writeFile2(file, JSON.stringify({ runId, pid, heartbeatAt: Date.now() }));
639
- try {
640
- await mkdir2(path3.dirname(file), { recursive: true });
641
- await write();
642
- } catch {
643
- }
644
- const timer = setInterval(() => void write().catch(() => void 0), HEARTBEAT_MS);
645
- timer.unref();
646
- let released = false;
647
- const release = () => {
648
- if (released) return;
649
- released = true;
650
- clearInterval(timer);
651
- try {
652
- rmSync(file, { force: true });
653
- } catch {
654
- }
655
- };
656
- return { release };
657
- }
658
- async function canvasBusyElsewhere(outputsDir, canvasPath, now = Date.now()) {
659
- try {
660
- const held = JSON.parse(await readFile2(busyFile(outputsDir, canvasPath), "utf8"));
661
- if (typeof held.runId !== "string" || held.pid === void 0 || held.pid === process.pid) return null;
662
- return isLiveRender(held, now) ? { runId: held.runId, pid: held.pid } : null;
663
- } catch {
664
- return null;
665
- }
666
- }
667
- async function clearRunMarker(outputsDir, canvasPath, token) {
668
- try {
669
- if (token !== void 0) {
670
- const marker = await readMarker(outputsDir, canvasPath);
671
- if (marker?.token !== void 0 && marker.token !== token) return;
672
- }
673
- await rm2(markerFile(outputsDir, canvasPath), { force: true });
674
- } catch {
675
- }
676
- }
677
-
678
- // src/commands/canvas/run-snapshot.ts
679
- import { existsSync } from "fs";
680
- import { mkdir as mkdir3, readdir, readFile as readFile3, stat, writeFile as writeFile3 } from "fs/promises";
681
- import path4 from "path";
682
- var SNAPSHOT_SCHEMA = "baker-canvas-snapshot/1";
683
- var MAX_SNAPSHOT_FILE_BYTES = 32 * 1024 * 1024;
684
- var EXT_TO_MIME = {
685
- json: "application/json",
686
- html: "text/html",
687
- css: "text/css",
688
- js: "text/javascript",
689
- txt: "text/plain",
690
- md: "text/markdown",
691
- png: "image/png",
692
- jpg: "image/jpeg",
693
- jpeg: "image/jpeg",
694
- webp: "image/webp",
695
- gif: "image/gif",
696
- avif: "image/avif",
697
- mp3: "audio/mpeg",
698
- wav: "audio/wav",
699
- mp4: "video/mp4",
700
- webm: "video/webm",
701
- mov: "video/quicktime",
702
- ttf: "font/ttf",
703
- otf: "font/otf",
704
- woff: "font/woff",
705
- woff2: "font/woff2"
706
- };
707
- function mimeForFile(filePath) {
708
- const ext = path4.extname(filePath).slice(1).toLowerCase();
709
- return EXT_TO_MIME[ext] ?? "application/octet-stream";
710
- }
711
- function toPosix(p) {
712
- return p.split(path4.sep).join("/");
713
- }
714
- function isInside(dir, target) {
715
- const rel = path4.relative(dir, target);
716
- return !rel.startsWith("..") && !path4.isAbsolute(rel);
717
- }
718
- function localPathRefsFromCanvas(parsed) {
719
- const nodes = parsed?.nodes;
720
- if (!Array.isArray(nodes)) return [];
721
- const refs = /* @__PURE__ */ new Set();
722
- for (const node of nodes) {
723
- const n = node;
724
- const params = n.params;
725
- if (!params || typeof params !== "object") continue;
726
- const key = localPathParam(n);
727
- const value = key ? params[key] : void 0;
728
- if (isSnapshotablePath(value)) refs.add(value);
729
- }
730
- return [...refs];
731
- }
732
- function isSnapshotablePath(value) {
733
- return typeof value === "string" && value.length > 0 && !value.includes("[TODO");
734
- }
735
- var FINGERPRINTED_FILES = ["prompt.json", "_definition.md"];
736
- async function sourceRefsToSnapshot(canvasDir, parsed) {
737
- const refs = new Set(localPathRefsFromCanvas(parsed));
738
- for (const sceneFile of await listSceneFiles(canvasDir)) {
739
- refs.add(toPosix(path4.relative(canvasDir, sceneFile)));
740
- }
741
- refs.add(REBUILD_FILE);
742
- for (const fingerprinted of FINGERPRINTED_FILES) {
743
- if (existsSync(path4.join(canvasDir, fingerprinted))) refs.add(fingerprinted);
744
- }
745
- return [...refs];
746
- }
747
- async function uploadRunSnapshot(client, opts) {
748
- try {
749
- const canvasDir = path4.dirname(opts.canvasPath);
750
- const canvasBytes = Buffer.from(opts.raw);
751
- const canvasEntry = {
752
- path: path4.basename(opts.canvasPath),
753
- bytes: canvasBytes,
754
- sha256: sha256Hex(canvasBytes),
755
- mime: "application/json"
756
- };
757
- const files = [];
758
- const skipped = [];
759
- for (const refPath of await sourceRefsToSnapshot(canvasDir, opts.parsed)) {
760
- const abs = path4.isAbsolute(refPath) ? refPath : path4.resolve(canvasDir, refPath);
761
- if (!isInside(canvasDir, abs)) {
762
- skipped.push({
763
- path: toPosix(path4.relative(canvasDir, abs)),
764
- reason: "outside the creative folder \u2014 read from the workspace on rerun"
765
- });
766
- continue;
767
- }
768
- let st;
769
- try {
770
- st = await stat(abs);
771
- } catch {
772
- skipped.push({ path: toPosix(path4.relative(canvasDir, abs)), reason: "missing" });
773
- continue;
774
- }
775
- const fileList = st.isDirectory() ? await listFilesRecursive(abs) : [abs];
776
- for (const file of fileList) {
777
- const rel = toPosix(path4.relative(canvasDir, file));
778
- const size = (await stat(file)).size;
779
- if (size > MAX_SNAPSHOT_FILE_BYTES) {
780
- skipped.push({ path: rel, reason: `too large (${size} bytes)` });
781
- continue;
782
- }
783
- const bytes = await readFile3(file);
784
- files.push({ path: rel, bytes, sha256: sha256Hex(bytes), mime: mimeForFile(file) });
785
- }
786
- }
787
- const identity = sha256Hex(
788
- Buffer.from(
789
- JSON.stringify({
790
- creativeSlug: opts.creativeSlug,
791
- entries: [canvasEntry, ...files].map((entry) => [entry.path, entry.sha256]),
792
- skipped
793
- })
794
- )
795
- );
796
- if (opts.previous?.identity === identity) return opts.previous;
797
- const put = (bytes, mime) => putContentAddressed(client, bytes, mime, opts.signal);
798
- const canvasUpload = await put(canvasEntry.bytes, canvasEntry.mime);
799
- const uploaded = [];
800
- for (const file of files) {
801
- const upload = await put(file.bytes, file.mime);
802
- uploaded.push({ path: file.path, sha256: upload.sha256, url: upload.url });
803
- }
804
- const manifest = {
805
- schema: SNAPSHOT_SCHEMA,
806
- creativeSlug: opts.creativeSlug,
807
- canvasSha: canvasUpload.sha256,
808
- canvas: { path: canvasEntry.path, sha256: canvasUpload.sha256, url: canvasUpload.url },
809
- files: uploaded,
810
- skipped: skipped.length > 0 ? skipped : void 0
811
- };
812
- const manifestUpload = await put(Buffer.from(JSON.stringify(manifest)), "application/json");
813
- return { identity, url: manifestUpload.url };
814
- } catch (e) {
815
- const msg = e instanceof Error ? e.message : String(e);
816
- process.stderr.write(`[warn] canvas snapshot not uploaded (${msg}) \u2014 this run cannot be re-run from another workspace
817
- `);
818
- return null;
819
- }
820
- }
821
- var MAX_GRAPH_BYTES = 4 * 1024 * 1024;
822
- async function uploadRunGraph(client, graph, signal) {
823
- try {
824
- const bytes = Buffer.from(JSON.stringify(graph));
825
- if (bytes.length > MAX_GRAPH_BYTES) return null;
826
- return (await putContentAddressed(client, bytes, "application/json", signal)).url;
827
- } catch (e) {
828
- const msg = e instanceof Error ? e.message : String(e);
829
- process.stderr.write(`[warn] run graph not kept (${msg}) \u2014 a correction from another workspace starts from its picture
830
- `);
831
- return null;
832
- }
833
- }
834
- async function putContentAddressed(client, bytes, mime, signal) {
835
- const sha256 = sha256Hex(bytes);
836
- const { putUrl, publicUrl } = await client.presignAssetUpload(sha256, mime, signal, "blueprint");
837
- const held = await fetch(publicUrl, { method: "HEAD", signal }).then(
838
- (res2) => res2.ok,
839
- () => false
840
- );
841
- if (held) return { sha256, url: publicUrl };
842
- const res = await fetch(putUrl, {
843
- method: "PUT",
844
- body: new Uint8Array(bytes),
845
- headers: { "Content-Type": mime },
846
- signal
847
- });
848
- if (!res.ok) throw new Error(`snapshot PUT failed ${res.status} ${res.statusText}`);
849
- return { sha256, url: publicUrl };
850
- }
851
- async function listFilesRecursive(dir) {
852
- const entries = await readdir(dir, { recursive: true, withFileTypes: true });
853
- return entries.filter((d) => d.isFile()).map((d) => path4.join(d.parentPath, d.name));
854
- }
855
- var SnapshotConflictError = class extends Error {
856
- conflicts;
857
- constructor(conflicts) {
858
- super(`local files differ from the recorded snapshot: ${conflicts.join(", ")}`);
859
- this.name = "SnapshotConflictError";
860
- this.conflicts = conflicts;
861
- }
862
- };
863
- async function restoreRunSnapshot(manifest, targetDir, opts = {}) {
864
- const entries = [manifest.canvas, ...manifest.files];
865
- const resolvedTarget = path4.resolve(targetDir);
866
- const planned = [];
867
- const conflicts = [];
868
- const upToDate = [];
869
- for (const entry of entries) {
870
- if (path4.isAbsolute(entry.path) || entry.path.split("/").includes("..")) {
871
- throw new Error(`snapshot entry escapes the creative directory: ${entry.path}`);
872
- }
873
- const target = path4.resolve(resolvedTarget, entry.path);
874
- if (target !== resolvedTarget && !target.startsWith(resolvedTarget + path4.sep)) {
875
- throw new Error(`snapshot entry escapes the creative directory: ${entry.path}`);
876
- }
877
- const existing = await readFile3(target).catch(() => null);
878
- if (existing) {
879
- if (sha256Hex(existing) === entry.sha256) {
880
- upToDate.push(entry.path);
881
- continue;
882
- }
883
- if (!opts.force) {
884
- conflicts.push(entry.path);
885
- continue;
886
- }
887
- }
888
- planned.push({ entry, target });
889
- }
890
- if (conflicts.length > 0) throw new SnapshotConflictError(conflicts);
891
- const restored = [];
892
- for (const { entry, target } of planned) {
893
- const res = await fetch(entry.url);
894
- if (!res.ok) throw new Error(`snapshot download failed for ${entry.path}: ${res.status} ${res.statusText}`);
895
- const bytes = Buffer.from(await res.arrayBuffer());
896
- if (sha256Hex(bytes) !== entry.sha256) {
897
- throw new Error(`snapshot download for ${entry.path} does not match its recorded sha256`);
898
- }
899
- await mkdir3(path4.dirname(target), { recursive: true });
900
- await writeFile3(target, bytes);
901
- restored.push(entry.path);
902
- }
903
- return { canvasPath: path4.resolve(resolvedTarget, manifest.canvas.path), restored, upToDate };
904
- }
905
-
906
- // src/commands/canvas/named-people-read.ts
907
- import { createHash as createHash2 } from "crypto";
908
- import { mkdir as mkdir4, readFile as readFile4, writeFile as writeFile4 } from "fs/promises";
909
- import path5 from "path";
910
- var PEOPLE_TIMEOUT_MS = 3e4;
911
- function peopleReader(cacheDir, spent) {
912
- const dir = path5.join(cacheDir, "named-people");
913
- return async (lines) => {
914
- const said = lines.filter((l) => l.trim());
915
- if (said.length === 0) return [];
916
- const key = createHash2("sha256").update(JSON.stringify([PEOPLE_PROMPT_VERSION, CLAIMS_MODEL, said])).digest("hex");
917
- const file = path5.join(dir, `${key}.json`);
918
- const cached = await readFile4(file, "utf8").then((text) => readPeople(JSON.parse(text), said)).catch(() => null);
919
- if (cached) return cached;
920
- const answer = await askAboutText(CLAIMS_MODEL, peoplePrompt(said), spent, {
921
- timeoutMs: PEOPLE_TIMEOUT_MS,
922
- request: CLAIMS_REQUEST
923
- });
924
- const people = readPeople(answer, said);
925
- if (people) {
926
- await mkdir4(dir, { recursive: true });
927
- await writeFile4(file, JSON.stringify(answer), "utf8");
928
- }
929
- return people;
930
- };
931
- }
932
-
933
- // src/commands/avatars/namedPerson.ts
934
- var RESEARCH_TIMEOUT_MS = 18e4;
935
- async function avatarOfNamedPerson(who) {
936
- const research = await writeAvatars(
937
- "/api/avatars/research",
938
- { who, create: true },
939
- { timeoutMs: RESEARCH_TIMEOUT_MS }
940
- );
941
- const handle = research.avatar?.handle;
942
- if (research.status !== "found" || !handle) return null;
943
- const read = () => readAvatars("/api/avatars/get", { handle });
944
- const avatar = await waitForSheet(await read(), read);
945
- return avatar.sheetUrl ? { handle, sheetUrl: avatar.sheetUrl } : null;
946
- }
947
-
948
- // src/commands/canvas/slug-restore.ts
949
- import { existsSync as existsSync2 } from "fs";
950
- import path6 from "path";
951
- var SLUG_PATTERN = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
952
- var SlugRestoreError = class extends Error {
953
- code;
954
- fix;
955
- constructor(code, message, fix) {
956
- super(message);
957
- this.name = "SlugRestoreError";
958
- this.code = code;
959
- this.fix = fix;
960
- }
961
- };
962
- async function canvasForSlug(slug, opts) {
963
- if (!SLUG_PATTERN.test(slug)) {
964
- throw new SlugRestoreError("invalid_slug", `"${slug}" is not a valid creative slug`);
965
- }
966
- const targetDir = path6.join(opts.workspaceRoot, "src", "creatives", slug);
967
- const local = path6.join(targetDir, `${slug}.canvas.json`);
968
- if (!opts.forceRemote && existsSync2(local)) return { canvasPath: local };
969
- const client = opts.client();
970
- if (!client) {
971
- throw new SlugRestoreError(
972
- "missing_credentials",
973
- `"${slug}" is not in this workspace, and restoring it from run history needs Baker credentials (BAKER_API_URL / BAKER_API_KEY).`
974
- );
975
- }
976
- const latest = await client.getLatestSnapshotRun(slug);
977
- if (!latest) {
978
- throw new SlugRestoreError(
979
- "no_snapshot_run",
980
- `No creative "${slug}" in this workspace, and no recorded run of it to restore from.`,
981
- "Check the slug against `ls src/creatives`, or scaffold the creative first."
982
- );
983
- }
984
- const manifest = await fetchManifest(latest.canvasSnapshotUrl);
985
- if (latest.canvasSha && manifest.canvasSha !== latest.canvasSha) {
986
- throw new SlugRestoreError("snapshot_mismatch", `the snapshot of run ${latest.runId} does not match its recorded canvas`);
987
- }
988
- try {
989
- const restore = await restoreRunSnapshot(manifest, targetDir, { force: opts.forceRemote });
990
- opts.log(
991
- restore.restored.length > 0 ? `[restore] ${restore.restored.length} file(s) from run ${latest.runId}: ${restore.restored.join(", ")}` : `[restore] local files already match run ${latest.runId}, nothing downloaded`
992
- );
993
- for (const skipped of manifest.skipped ?? []) {
994
- opts.log(`[warn] snapshot omitted ${skipped.path} (${skipped.reason}); supply it locally if the run needs it fresh`);
995
- }
996
- return { canvasPath: restore.canvasPath, adoptRunId: await adoptableRun(client, slug, latest.runId) };
997
- } catch (e) {
998
- if (e instanceof SnapshotConflictError) {
999
- throw new SlugRestoreError(
1000
- "local_files_differ",
1001
- `local files differ from the recorded snapshot: ${e.conflicts.join(", ")}`,
1002
- "Re-run with --force-remote to overwrite them, or run the local canvas file directly with `baker canvas run <file>`."
1003
- );
1004
- }
1005
- throw e;
1006
- }
1007
- }
1008
- async function adoptableRun(client, slug, restoredRunId) {
1009
- const active = await client.getActiveRun(slug).catch(() => null);
1010
- return active?.runId === restoredRunId && active.adoptable === true ? restoredRunId : void 0;
1011
- }
1012
- async function fetchManifest(url) {
1013
- const res = await fetch(url);
1014
- if (!res.ok) {
1015
- throw new SlugRestoreError("snapshot_unavailable", `snapshot manifest download failed: ${res.status} ${res.statusText}`);
1016
- }
1017
- const manifest = await res.json();
1018
- if (manifest?.schema !== SNAPSHOT_SCHEMA || typeof manifest.canvas?.path !== "string") {
1019
- throw new SlugRestoreError("snapshot_invalid", "snapshot manifest has an unexpected shape");
1020
- }
1021
- return manifest;
1022
- }
1023
-
1024
- // src/commands/canvas/batch-run.ts
1025
- import path7 from "path";
1026
-
1027
- // src/commands/canvas/series-run.ts
1028
- async function runSeries(slugs, deps) {
1029
- return Promise.all(
1030
- slugs.map(async (slug) => {
1031
- const plan = await deps.plan(slug);
1032
- if ("refused" in plan) return { slug, status: "refused", error: plan.refused };
1033
- if (!plan.run) return { slug, status: "up_to_date", ...plan.runId ? { run_id: plan.runId } : {} };
1034
- return resultOf(slug, await deps.run(slug));
1035
- })
1036
- );
1037
- }
1038
- function resultOf(slug, answer) {
1039
- if (answer.ok !== true) {
1040
- const error = answer.error ?? {};
1041
- return {
1042
- slug,
1043
- status: "failed",
1044
- error: {
1045
- code: error.code ?? "render_failed",
1046
- message: error.message ?? "The render did not finish.",
1047
- ...error.fix ? { fix: error.fix } : {}
1048
- }
1049
- };
1050
- }
1051
- const verdict = answer.verdict;
1052
- const status = verdict === "ready" || verdict === "ready_with_notes" || verdict === "needs_fixes" ? verdict : "ready";
1053
- return {
1054
- slug,
1055
- status,
1056
- ...typeof answer.run_id === "string" ? { run_id: answer.run_id } : {},
1057
- ...answer.files !== void 0 ? { files: answer.files } : {},
1058
- ...answer.previews !== void 0 ? { previews: answer.previews } : {}
1059
- };
1060
- }
1061
- function seriesEnvelope(lead, results) {
1062
- const ready = results.filter((r) => r.status === "ready" || r.status === "ready_with_notes");
1063
- const fixes = results.filter((r) => r.status === "needs_fixes");
1064
- const stopped = results.filter((r) => r.status === "refused" || r.status === "failed");
1065
- return {
1066
- ok: true,
1067
- data: { lead, ready: ready.map((r) => r.slug), ads: results },
1068
- hints: [
1069
- ...ready.filter((r) => r.run_id).map((r) => `Save: baker creatives publish --slug ${r.slug} --run-id ${r.run_id} --title "<title>" --output <lead size>`),
1070
- ...fixes.length > 0 ? [
1071
- `Still needs fixes after its own corrections: ${fixes.map((r) => r.slug).join(", ")}. Correct each by itself (baker canvas run --slug <slug> --fix "<what to change>"); the others stay as they are.`
1072
- ] : [],
1073
- ...stopped.map((r) => `${r.slug}: ${r.error?.message ?? "not rendered"}${r.error?.fix ? ` ${r.error.fix}` : ""}`),
1074
- `A new version of the lead (${lead}) reaches every ad of the series on the next \`baker canvas run --series ${lead}\`.`
1075
- ]
1076
- };
1077
- }
1078
-
1079
- // src/commands/canvas/batch-run.ts
1080
- var CANVASES_AT_ONCE = 6;
1081
- var STATIC_VERDICTS = /* @__PURE__ */ new Set(["ready", "ready_with_notes", "needs_fixes", "not_reviewed"]);
1082
- function rowOf(slug, answer, full) {
1083
- const hints = Array.isArray(answer.hints) ? answer.hints.filter((h) => typeof h === "string") : [];
1084
- const withHints = hints.length > 0 ? { hints } : {};
1085
- if (answer.ok !== true) {
1086
- const failed = resultOf(slug, answer);
1087
- return { slug, status: "failed", ...failed.error ? { error: failed.error } : {}, ...withHints };
1088
- }
1089
- const data = answer.data ?? {};
1090
- if (data.stopped === "frames") {
1091
- return {
1092
- slug,
1093
- status: "frames_ready",
1094
- ...typeof data.runId === "string" ? { run_id: data.runId } : {},
1095
- frames: data.frames,
1096
- ...withHints
1097
- };
1098
- }
1099
- const verdict = typeof answer.verdict === "string" && STATIC_VERDICTS.has(answer.verdict) ? answer.verdict : null;
1100
- const review = Array.isArray(answer.review) ? answer.review : null;
1101
- const blocking = review?.some((f) => f?.severity === "blocking") ?? false;
1102
- const unwatched = review === null && hints.includes(RENDER_REVIEW_UNAVAILABLE);
1103
- const status = verdict ? verdict : unwatched ? "not_reviewed" : blocking ? "needs_fixes" : "ready";
1104
- return {
1105
- slug,
1106
- status,
1107
- ...verdict ? { verdict } : {},
1108
- ...review ? { review } : {},
1109
- ...typeof answer.run_id === "string" ? { run_id: answer.run_id } : {},
1110
- ...answer.files !== void 0 ? { files: answer.files } : {},
1111
- ...answer.previews !== void 0 ? { previews: answer.previews } : {},
1112
- ...withHints,
1113
- ...full ? Object.fromEntries(
1114
- ["outputs_dir", "output", "stats", "judge"].filter((key) => answer[key] !== void 0).map((key) => [key, answer[key]])
1115
- ) : {}
1116
- };
1117
- }
1118
- function targetLabel(target) {
1119
- return "slug" in target ? target.slug : creativeSlugFromCanvasPath(path7.resolve(target.file)) ?? target.file;
1120
- }
1121
- function canvasTargets(args) {
1122
- const files = args.files.filter((f) => typeof f === "string" && f !== "");
1123
- if (files.length > 0) return [...new Set(files)].map((file) => ({ file }));
1124
- const slugs = (args.slug ?? "").split(",").map((s) => s.trim()).filter(Boolean);
1125
- return [...new Set(slugs)].map((slug) => ({ slug }));
1126
- }
1127
- function oneCanvasOnly(opts) {
1128
- return [
1129
- opts.fix ? "--fix" : null,
1130
- opts.from ? "--from" : null,
1131
- opts.useVariant ? "--use-variant" : null,
1132
- opts.runId ? "--run-id" : null,
1133
- opts.keepRuns !== void 0 ? "--keep-runs" : null
1134
- ].filter((flag) => flag !== null);
1135
- }
1136
- function childRunArgs(target, opts) {
1137
- const value = (flag, v) => v !== void 0 ? [flag, v] : [];
1138
- return [
1139
- "canvas",
1140
- "run",
1141
- ..."slug" in target ? ["--slug", target.slug] : [target.file],
1142
- ...opts.forceRemote && "slug" in target ? ["--force-remote"] : [],
1143
- ...opts.fresh ? ["--fresh"] : [],
1144
- ...opts.autoFix === false ? ["--no-autofix"] : [],
1145
- ...opts.skipViewerCheck ? ["--skip-viewer-check"] : [],
1146
- ...value("--brief", opts.brief),
1147
- ...value("--until", opts.until),
1148
- ...value("--regenerate", opts.regenerate),
1149
- ...value("--concurrency", opts.concurrency),
1150
- ...value("--cache-policy", opts.cachePolicy),
1151
- ...opts.record === false ? ["--no-record"] : [],
1152
- ...value("--cache-dir", opts.cacheDir),
1153
- ...value("--outputs-dir", opts.outputsDir),
1154
- ...opts.remoteCache !== void 0 ? ["--remote-cache", opts.remoteCache ? "on" : "off"] : [],
1155
- ...opts.full ? ["--full"] : []
1156
- ];
1157
- }
1158
- async function runCanvases(targets, run, limit = CANVASES_AT_ONCE, opts = {}) {
1159
- const results = new Array(targets.length);
1160
- let next = 0;
1161
- const worker = async () => {
1162
- while (next < targets.length) {
1163
- const at = next++;
1164
- const target = targets[at];
1165
- results[at] = rowOf(targetLabel(target), await run(target), opts.full === true);
1166
- }
1167
- };
1168
- await Promise.all(Array.from({ length: Math.min(limit, targets.length) }, worker));
1169
- return results;
1170
- }
1171
- function batchEnvelope(rows) {
1172
- const ready = rows.filter((r) => r.status === "ready" || r.status === "ready_with_notes");
1173
- return {
1174
- ok: true,
1175
- data: { ready: ready.map((r) => r.slug), canvases: rows },
1176
- hints: rows.filter((r) => !ready.includes(r)).flatMap(
1177
- (r) => r.error ? [`${r.slug}: ${r.error.message}${r.error.fix ? ` ${r.error.fix}` : ""}`] : (r.hints ?? []).map((h) => `${r.slug}: ${h}`)
1178
- )
1179
- };
1180
- }
1181
-
1182
- // src/commands/canvas/voice-retake.ts
1183
- var nodesOf = (graph) => {
1184
- const nodes = graph?.nodes;
1185
- return Array.isArray(nodes) ? nodes : [];
1186
- };
1187
- function refsIn(value) {
1188
- if (typeof value === "string") {
1189
- const id = /^\$ref:([^.]+)\./.exec(value)?.[1];
1190
- return id ? [id] : [];
1191
- }
1192
- if (Array.isArray(value)) return value.flatMap(refsIn);
1193
- if (value && typeof value === "object") return Object.values(value).flatMap(refsIn);
1194
- return [];
1195
- }
1196
- function keptVoiceClips(graph) {
1197
- const nodes = nodesOf(graph);
1198
- const byId = new Map(nodes.flatMap((n) => typeof n.id === "string" ? [[n.id, n]] : []));
1199
- const tracks = nodes.filter((n) => {
1200
- const tags = n.tags ?? {};
1201
- return n.type === "audio_timeline" && tags.role === "voice" && tags.on_camera === true;
1202
- });
1203
- const seen = /* @__PURE__ */ new Set();
1204
- const queue = tracks.flatMap((t) => refsIn(t.inputs));
1205
- while (queue.length > 0) {
1206
- const id = queue.pop();
1207
- if (seen.has(id)) continue;
1208
- seen.add(id);
1209
- queue.push(...refsIn(byId.get(id)?.inputs));
1210
- }
1211
- return [...seen].flatMap((id) => {
1212
- const node = byId.get(id);
1213
- return node?.type === "video_generate" ? [node] : [];
1214
- });
1215
- }
1216
- var promptOf = (node) => JSON.stringify(node?.params?.prompt ?? null);
1217
- function retakenTalkingScenes(previous, canvas) {
1218
- const before = new Map(nodesOf(previous).map((n) => [n.id, n]));
1219
- return keptVoiceClips(canvas).filter((clip) => before.has(clip.id) && promptOf(before.get(clip.id)) !== promptOf(clip)).map((clip) => String(clip.id));
1220
- }
1221
-
1222
- // src/commands/canvas/static-run-review.ts
1223
- import { readFile as readFile5 } from "fs/promises";
1224
- import path8 from "path";
1225
-
1226
- // src/commands/canvas/glance-check.ts
1227
- import sharp from "sharp";
1228
- import { z } from "zod";
1229
- var GLANCE_REQUIRED = {
1230
- offer: "guess",
1231
- for_whom: "unclear",
1232
- next_step: "unclear"
1233
- };
1234
- var GLANCE_WIDTH = 400;
1235
- var GlanceAnswerSchema = ViewerAnswerSchema.extend({
1236
- /** What kind of product or service they take it for (D4). */
1237
- category: z.object({ answer: z.string().default(""), clarity: z.enum(["clear", "guess", "unclear"]).default("unclear") }).default({ answer: "", clarity: "unclear" }),
1238
- stopped: z.string().default(""),
1239
- me: z.enum(["yes", "no", "unsure"]).default("unsure")
1240
- });
1241
- function wherePhrase(placements) {
1242
- const fullScreen = placements.length === 0 || placements.some((p) => /automatic|stor|reel/i.test(p));
1243
- return fullScreen ? "your Instagram or Facebook feed, Stories or Reels" : "your Instagram or Facebook feed";
1244
- }
1245
- function knowledge(viewer) {
1246
- if (!viewer.knows.includes("brand")) return "You have never heard of the advertiser.";
1247
- const offer = viewer.knows.includes("offer") ? " You know roughly what they sell." : "";
1248
- return `You have come across the advertiser before.${offer}`;
1249
- }
1250
- function buildGlancePrompt(input) {
1251
- const who = input.market ? `You are ${input.market}. ` : "";
1252
- return [
1253
- `${who}You are scrolling ${wherePhrase(input.viewer.placements)} on your phone. ${knowledge(input.viewer)}`,
1254
- "This ad passes under your thumb and holds you for about three seconds: you take in the picture and read the biggest words, not the small print. The image is shown at the size your phone shows it.",
1255
- "Answer as this person, from those three seconds alone. Do not fill gaps with what ads like this usually sell.",
1256
- 'For each question give your answer in English and how sure you are: "clear" when the ad says it outright or you already know it; "guess" when you are piecing it together; "unclear" when you cannot tell.',
1257
- "offer: what is being sold or offered?",
1258
- "for_whom: who is it for?",
1259
- "next_step: what would you do next if you wanted it?",
1260
- "category: what kind of product or service is this for (a payroll app, a trade course, a phone)?",
1261
- 'missing: in one short sentence, what you would need to be told to get it; "" when nothing.',
1262
- "stopped: what made you stop on it, or what nearly made you scroll past, in a few words.",
1263
- 'me: is this for someone like you? "yes", "no" or "unsure".',
1264
- "",
1265
- 'Reply with only this JSON: {"offer":{"answer":"","clarity":"clear|guess|unclear"},"for_whom":{"answer":"","clarity":"clear|guess|unclear"},"next_step":{"answer":"","clarity":"clear|guess|unclear"},"category":{"answer":"","clarity":"clear|guess|unclear"},"missing":"","stopped":"","me":"yes|no|unsure"}'
1266
- ].join("\n");
1267
- }
1268
- var QUESTION_WORDS = {
1269
- offer: "what is offered",
1270
- for_whom: "who it is for",
1271
- next_step: "what to do next"
1272
- };
1273
- function missWords(miss) {
1274
- if (miss.question === "presumes") return `it talks to them as a customer already ("${miss.viewerSaid}")`;
1275
- const said = miss.viewerSaid.trim() ? `"${miss.viewerSaid.trim()}"` : "nothing";
1276
- const what = QUESTION_WORDS[miss.question];
1277
- return miss.reason === "misread" ? `${what} (they were sure it is ${said})` : `${what} (they said ${said})`;
1278
- }
1279
- function glanceFindings(answer, intended, format, viewer, misread = { offer: false, category: false }) {
1280
- const verdict = judgeViewerAnswer({ ...answer, presumes: "" }, intended, GLANCE_REQUIRED, misread.offer);
1281
- const category = answer.category.answer.trim();
1282
- const kind = intended.recognition && category && misread.category ? [
1283
- {
1284
- severity: "warning",
1285
- what: `${format}: At a glance, a stranger took it for "${category}"; it is meant as ${intended.recognition}.`
1286
- }
1287
- ] : [];
1288
- if (verdict.pass) return kind;
1289
- const needed = answer.missing.trim() ? ` They needed: ${answer.missing.trim().replace(/[.!]+$/, "")}.` : "";
1290
- const missed = verdict.missed.map(missWords).join("; ");
1291
- return [
1292
- {
1293
- severity: "blocking",
1294
- what: `${format}: At a glance, ${describeViewer(viewer).replace(/, on .* placements$/, "")} could not tell ${missed}.${needed}`
1295
- },
1296
- ...kind
1297
- ];
1298
- }
1299
- async function glanceMisreads(answer, intended, judge) {
1300
- const sure = sureEnough(answer.offer.clarity, GLANCE_REQUIRED.offer);
1301
- const [offer = false, category = false] = await misreadings(
1302
- [
1303
- { said: sure ? answer.offer.answer : "", meant: intended.offer, sells: intended.sells },
1304
- { said: answer.category.answer, meant: intended.recognition }
1305
- ],
1306
- judge
1307
- );
1308
- return { offer, category };
1309
- }
1310
- function gatewayGlanceModel(onSpend) {
1311
- return (jpeg, prompt) => askAboutImages(GLANCE_CHECK_MODEL, [jpeg], prompt, onSpend);
1312
- }
1313
- async function glanceCheck(opts) {
1314
- let jpeg;
1315
- try {
1316
- const bytes = await bytesOf(opts.image);
1317
- jpeg = (await sharp(bytes).resize({ width: GLANCE_WIDTH }).jpeg({ quality: 85 }).toBuffer()).toString("base64");
1318
- } catch {
1319
- return null;
1320
- }
1321
- const prompt = buildGlancePrompt({ viewer: opts.viewer, ...opts.market ? { market: opts.market } : {} });
1322
- for (let attempt = 0; attempt < 2; attempt++) {
1323
- const parsed = GlanceAnswerSchema.safeParse(await opts.ask(jpeg, prompt));
1324
- if (parsed.success) {
1325
- const misread = await glanceMisreads(parsed.data, opts.intended, opts.judge ?? jevReadJudge());
1326
- return glanceFindings(parsed.data, opts.intended, opts.format, opts.viewer, misread);
1327
- }
1328
- }
1329
- return null;
1330
- }
1331
-
1332
- // src/commands/canvas/static-run-review.ts
1333
- function imagesOf(output) {
1334
- const list = Array.isArray(output) ? output : [output];
1335
- const images = list.filter((o) => Boolean(o) && typeof o === "object");
1336
- return images.length > 0 && images.every((i) => i.kind === "image") ? images : null;
1337
- }
1338
- function promptPathOf(parsed) {
1339
- const nodes = parsed?.nodes;
1340
- if (!Array.isArray(nodes)) return null;
1341
- const prompt = nodes.find((n) => n?.id === "prompt" && n?.type === "ingest");
1342
- const p = prompt?.params;
1343
- return p?.source === "path" && p.expect === "json" && typeof p.path === "string" ? p.path : null;
1344
- }
1345
- function staticReviewTargets(parsed, output) {
1346
- const promptPath = promptPathOf(parsed);
1347
- const images = imagesOf(output);
1348
- if (!promptPath || !images) return null;
1349
- const labels = finalOutputLabelsFromCanvas(parsed)?.labels ?? [];
1350
- return {
1351
- promptPath,
1352
- // A local file when the run downloaded it, else its durable URL.
1353
- images: images.flatMap((image, i) => {
1354
- const source = typeof image.path === "string" ? image.path : typeof image.url === "string" ? image.url : null;
1355
- return source ? [{ path: source, format: labels[i] ?? "" }] : [];
1356
- })
1357
- };
1358
- }
1359
- function nodesOf2(parsed) {
1360
- const nodes = parsed?.nodes;
1361
- return Array.isArray(nodes) ? nodes : [];
1362
- }
1363
- var refId = (ref) => typeof ref === "string" ? ref.match(/^\$ref:([a-z][a-z0-9_]*)\./)?.[1] ?? null : null;
1364
- var hasRole = (n, role) => n.tags?.role === role;
1365
- function variantCount(nodes) {
1366
- const calls = nodes.filter((n) => hasRole(n, STATIC_VARIANT_CALL_ROLE)).length;
1367
- if (calls > 0) return calls;
1368
- const one = nodes.find((n) => hasRole(n, STATIC_VARIANTS_ROLE) && n.type === "image_generate");
1369
- if (one) return typeof one.params?.n === "number" ? one.params.n : 1;
1370
- if (nodes.some((n) => hasRole(n, STATIC_FIX_ROLE))) return 1;
1371
- return nodes.filter((n) => n.type === "image_generate" && /^ad(_[a-z])?$/.test(String(n.id))).length;
1372
- }
1373
- function staticRunShape(parsed) {
1374
- const nodes = nodesOf2(parsed);
1375
- const renders = nodes.filter((n) => n.type === "image_generate" && typeof n.id === "string");
1376
- const candidates = variantCount(nodes);
1377
- const logoIds = new Set(nodes.filter((n) => hasRole(n, BRAND_LOGO_ROLE)).map((n) => String(n.id)));
1378
- const logo = nodes.some((n) => hasRole(n, LOGO_COMPOSITE_ROLE)) || renders.some((n) => {
1379
- const refs = n.inputs?.reference;
1380
- return (Array.isArray(refs) ? refs : [refs]).some((r) => logoIds.has(refId(r) ?? ""));
1381
- }) || // On one picture each size's words call places the logo file.
1382
- nodes.some((n) => n.type === "static_format" && logoIds.has(refId(n.inputs?.logo) ?? ""));
1383
- const masterId = nodes.find((n) => hasRole(n, STATIC_MASTER_ROLE))?.id;
1384
- const adapt = nodes.find((n) => hasRole(n, STATIC_ADAPT_ROLE));
1385
- return {
1386
- candidates,
1387
- judged: candidates > 1 && nodes.some(
1388
- (n) => n.type === "image_select" && (hasRole(n, STATIC_PICK_ROLE) || n.id === "pick") || hasRole(n, VARIANT_PREFILTER_ROLE) && typeof n.params?.judge_model === "string"
1389
- ),
1390
- relays: masterId !== void 0 ? 0 : Math.max(0, renders.length - candidates),
1391
- cuts: nodes.filter((n) => {
1392
- const from = refId(n.inputs?.image);
1393
- return hasRole(n, STATIC_SIZE_ROLE) && from !== null && from === masterId;
1394
- }).length,
1395
- relaid: nodes.filter((n) => hasRole(n, STATIC_ADAPT_FORMAT_ROLE)).length,
1396
- adapted: Array.isArray(adapt?.params?.formats) ? adapt.params.formats.length : 0,
1397
- plates: nodes.some((n) => hasRole(n, STATIC_LEAD_ROLE)) ? nodes.filter((n) => hasRole(n, STATIC_VARIANT_CALL_ROLE)).length : 0,
1398
- // The lead the master delivers is the chosen option's own words, replayed: not a size set again.
1399
- worded: nodes.filter((n) => hasRole(n, STATIC_FORMAT_ROLE) && n.id !== masterReads(nodes)).length,
1400
- logo
1401
- };
1402
- }
1403
- function masterReads(nodes) {
1404
- return refId(nodes.find((n) => hasRole(n, STATIC_MASTER_ROLE))?.inputs?.image);
1405
- }
1406
- function shapeHint(shape, copy) {
1407
- const drawn = shape.plates > 0 ? " (a picture each without the ad's words, the lead size's words set on it)" : "";
1408
- const variants = `${shape.candidates} variant${shape.candidates === 1 ? "" : "s"} rendered${drawn}${shape.judged ? ", ranked by the checks with a judge on a tie" : ", no judge"}`;
1409
- const sizes = [
1410
- ...shape.worded > 0 ? [`${shape.worded} size${shape.worded === 1 ? "" : "s"} cut from the chosen picture with ${shape.worded === 1 ? "its" : "their"} words set for ${shape.worded === 1 ? "it" : "them"} (one request each)`] : [],
1411
- ...shape.relaid > 0 ? [`${shape.relaid} size${shape.relaid === 1 ? "" : "s"} re-laid out from the chosen picture (one request each)`] : [],
1412
- ...shape.cuts > 0 ? [`${shape.cuts} size${shape.cuts === 1 ? "" : "s"} cut from the chosen picture`] : [],
1413
- ...shape.adapted > 0 ? [`${shape.adapted} adapted from it`] : [],
1414
- ...shape.relays > 0 ? [`${shape.relays} other format${shape.relays === 1 ? "" : "s"} re-laid from the winner`] : []
1415
- ];
1416
- const text = copy === 0 ? "no copy (the picture is the ad)" : "the copy set by the model and read back word for word";
1417
- return `This run: ${variants}${sizes.length > 0 ? `; ${sizes.join("; ")}` : ""}; ${text}; ${shape.logo ? "the brand logo on the ad from its real file" : "no logo"}.`;
1418
- }
1419
- var PAID_FOR = {
1420
- edit: "one edit of the version shown",
1421
- sizes: "only the sizes asked for, laid out again",
1422
- options: "new options from scratch, every size made from the one chosen"
1423
- };
1424
- function runCostHint(stats, kind) {
1425
- if (!stats) return null;
1426
- const cached = stats.cached_nodes > 0 ? ` (${stats.cached_nodes} of ${stats.total_nodes} steps came from the cache, free)` : "";
1427
- return `This run cost ${Math.round(stats.total_credits)} credits: ${PAID_FOR[kind]}${cached}.`;
1428
- }
1429
- async function textOf(ref) {
1430
- const r = ref;
1431
- try {
1432
- if (typeof r?.path === "string") return await readFile5(r.path, "utf8");
1433
- if (typeof r?.url === "string") {
1434
- const res = await fetch(r.url);
1435
- return res.ok ? await res.text() : null;
1436
- }
1437
- } catch {
1438
- return null;
1439
- }
1440
- return null;
1441
- }
1442
- function sizeShapeOf(canvas) {
1443
- return isPlateCanvas(canvas) ? "plate" : "relayout";
1444
- }
1445
- function oneSizeFix(shape) {
1446
- return shape === "plate" ? "`baker canvas run \u2026 --regenerate format_<size>` (for example `format_9x16`) sets that size's words again on the same picture (one request)" : "`baker canvas run \u2026 --regenerate adapt_<size>` (for example `adapt_9x16`) lays out that size again from the same picture (one request)";
1447
- }
1448
- function fixHint(shape) {
1449
- return `One thing wrong in a version that is otherwise right: \`baker canvas run \u2026 --fix "<what to change>"\` edits that version and changes only that, keeping the picture, the layout and the other words (one render). Wrong or missing words: check the lines in prompt.json \`copy\` are exactly what should be printed, shorten a line the model keeps breaking, and re-run: a change only to copy, positions or colours is made as an edit of the version shown. Wrong picture, colour or subject: edit prompt.json's \`scene\`, \`colors\` or \`references\`. Layout or a logo drawn wrong: say in each line's \`position\` (and \`scene.layout\`) where it sits, by what is around it. A right prompt that rolled badly: \`baker canvas run \u2026 --regenerate static_variants\` renders new options (every size follows from the new pick). One size wrong while the chosen picture is right (words cut or too small, the button small, something drawn twice): ${oneSizeFix(shape)}.`;
1450
- }
1451
- function verdictHints(verdict, shape = "plate") {
1452
- if (verdict === "needs_fixes") {
1453
- const cost = shape === "plate" ? "each size's words take one request" : "each re-laid-out size takes one request; a cut is free";
1454
- return [
1455
- `NOT READY: the finished ad has blocking problems. Do not present it as done, and never ask the person whether to fix them: fix them now, inside this version. A defect in a version that is otherwise right is a \`--fix\`: it edits the chosen picture only, and every size is made from it again (${cost}). The same defect after a fix means the fix does not work: change the spec (prompt.json) or the approach, never the same retry. If it still cannot be fixed, show the person the best version and say in one plain sentence what is left, in their words ("the logo sits where Stories covers it"), without a question; never record your own checks as their feedback.`,
1456
- fixHint(shape)
1457
- ];
1458
- }
1459
- if (verdict === "not_reviewed") {
1460
- return [
1461
- "The finished ad was NOT reviewed: no model gateway key here, or the review model did not answer twice. Look at every word of every format yourself before showing it, or re-run the same command (every node comes from the cache) to review it again."
1462
- ];
1463
- }
1464
- if (verdict === "ready") {
1465
- return ["Reviewed every format of the finished ad: every word read back exactly, nothing to fix.", SHOW_IT];
1466
- }
1467
- return verdict === "ready_with_notes" ? [SHOW_IT] : [];
1468
- }
1469
- function verdictBrief(verdict, shape = "plate") {
1470
- if (verdict === "needs_fixes") {
1471
- const size = shape === "plate" ? "format_<size>" : "adapt_<size>";
1472
- return [
1473
- `NOT READY: fix every blocking finding now, never asking the person: \`--fix "<what to change>"\` for one thing wrong, \`--regenerate ${size}\` for one size. Never present it as done.`
1474
- ];
1475
- }
1476
- if (verdict === "not_reviewed") return verdictHints(verdict, shape);
1477
- const show = 'Show it as a Version ("Version 2"), never a run id or a file; never ask which to keep or whether to publish.';
1478
- if (verdict === "ready") return [`Reviewed every format: nothing to fix. ${show}`];
1479
- return verdict === "ready_with_notes" ? [show] : [];
1480
- }
1481
- var SHOW_IT = `Show it as a Version ("Version 2"), never a run id or a file, in one line: the idea's message, who it is for, the customer quote it stands on (or that it is an explore bet), and the finding it answers. Name the versions you would run first; never ask which to keep or whether to publish: the person answers in their own time.`;
1482
- function allowedSceneWords(spec) {
1483
- return [.../* @__PURE__ */ new Set([...spec.scene_text, ...spec.third_party_brands.map((b) => b.name)])];
1484
- }
1485
- function brandPalette(brand) {
1486
- if (!brand) return [];
1487
- const named = [brand.ink, brand.accent, brand.cta, brand.ground, ...brand.palette];
1488
- return [...new Set(named.filter((hex) => typeof hex === "string"))];
1489
- }
1490
- function safeAreaPlacements(viewer) {
1491
- const named = (viewer?.placements ?? []).filter((p) => p !== "automatic");
1492
- return named.length > 0 && named.length === viewer?.placements.length ? named : void 0;
1493
- }
1494
- function canvasPlacements(parsed) {
1495
- const node = nodesWithRole(parsed, VARIANT_PREFILTER_ROLE)[0];
1496
- const placements = node?.params?.placements;
1497
- return Array.isArray(placements) && placements.length > 0 && placements.every((p) => typeof p === "string") ? placements : void 0;
1498
- }
1499
- async function reviewStaticRun(opts) {
1500
- const targets = staticReviewTargets(opts.parsed, opts.output);
1501
- if (!targets) return null;
1502
- const prefilterId = nodesWithRole(opts.parsed, VARIANT_PREFILTER_ROLE)[0]?.id;
1503
- const tieBreak = prefilterId ? opts.outputsByNode[prefilterId]?.reasoning : void 0;
1504
- const pickId = nodesWithRole(opts.parsed, STATIC_PICK_ROLE)[0]?.id ?? "pick";
1505
- const reasoning = typeof tieBreak === "string" ? tieBreak : await textOf(opts.outputsByNode[pickId]?.reasoning);
1506
- const judge = reasoning ? parseJudgeScores(reasoning) : null;
1507
- let copy = [];
1508
- let mechanisms = [];
1509
- let intended = {};
1510
- let expectLogo = false;
1511
- let concept = null;
1512
- let uncast = [];
1513
- let nobody = false;
1514
- let brand = opts.brandName;
1515
- let lockup = [...opts.lockup ?? []];
1516
- let sceneText = [];
1517
- let lines = [];
1518
- let native;
1519
- let palette = [];
1520
- try {
1521
- const spec = readAdSpec(JSON.parse(await readFile5(targets.promptPath, "utf8")));
1522
- copy = spec.copy.map((l) => l.text);
1523
- lines = spec.copy.map((l) => ({ text: l.text, lettering: l.lettering, ...l.role ? { role: l.role } : {} }));
1524
- if (spec.native) {
1525
- copy = nativeCopy(spec.native);
1526
- lines = copy.map((text) => ({ text, lettering: "designed" }));
1527
- native = nativeSurfaceName(spec.native);
1528
- }
1529
- palette = spec.native ? [] : brandPalette(spec.brand);
1530
- mechanisms = spec.mechanism.map((m) => m.device);
1531
- brand = spec.brand?.name ?? opts.brandName;
1532
- const sells = (await readCompanyReading(path8.resolve(path8.dirname(targets.promptPath), "../../..")))?.sells;
1533
- intended = {
1534
- ...spec.message?.trim() ? { offer: spec.message.trim() } : {},
1535
- ...spec.viewer?.who.trim() ? { persona: spec.viewer.who.trim() } : {},
1536
- ...spec.recognition?.trim() ? { recognition: spec.recognition.trim() } : {},
1537
- ...sells ? { sells } : {}
1538
- };
1539
- lockup = [.../* @__PURE__ */ new Set([...spec.brand?.lockup ?? [], ...lockup])];
1540
- sceneText = [
1541
- ...allowedSceneWords(spec),
1542
- ...spec.native ? nativeChrome(spec.native, spec.viewer?.market?.language, interfaceWordsOf(opts.parsed)) : []
1543
- ];
1544
- expectLogo = spec.logo && !spec.native && staticRunShape(opts.parsed).logo;
1545
- concept = conceptSummary(spec);
1546
- const cacheDir = path8.join(findWorkspaceRoot(path8.dirname(targets.promptPath)) ?? path8.dirname(targets.promptPath), "canvas", ".cache");
1547
- const people = spec.native ? [] : await peopleReader(cacheDir, (u) => opts.onSpend?.(u))(copy) ?? [];
1548
- uncast = uncastPeople(spec, people);
1549
- nobody = !spec.native && castsNobody(spec);
1550
- } catch {
1551
- copy = [];
1552
- }
1553
- const shape = staticRunShape(opts.parsed);
1554
- const placements = canvasPlacements(opts.parsed) ?? safeAreaPlacements(opts.viewer);
1555
- const masterFormat = staticMasterFormat(opts.parsed) ?? void 0;
1556
- const glancing = opts.glance === false ? Promise.resolve(null) : glanceAtFinished(
1557
- targets.images,
1558
- opts.viewer ?? STRANGER,
1559
- intended,
1560
- opts.glance ?? gatewayGlanceModel(opts.onSpend),
1561
- opts.onSpend
1562
- ).catch(() => null);
1563
- const comparing = opts.previous ? nearIdenticalFindings(targets.images, opts.previous).catch(() => []) : Promise.resolve([]);
1564
- const leadFormat = masterFormat ?? targets.images[0]?.format ?? "";
1565
- const lead = targets.images.find((i) => i.format === leadFormat);
1566
- const drawn = native || !lead ? [] : drawnSizes(opts.parsed, targets.images.map((i) => i.format), leadFormat);
1567
- const matching = lead && drawn.length > 0 ? compareSizes(
1568
- lead,
1569
- targets.images.filter((i) => drawn.includes(i.format)),
1570
- { ...opts.onSpend ? { onSpend: opts.onSpend } : {} }
1571
- ).catch(() => drawn.map((format) => ({ format, compared: false, differences: [] }))) : Promise.resolve([]);
1572
- const untouched = opts.settled ? await samePictureSizes(targets.images, opts.settled.images) : [];
1573
- const changed = targets.images.filter((i) => !untouched.includes(i.format));
1574
- const held = await heldRules(path8.dirname(targets.promptPath)).catch(() => ({ rules: [] }));
1575
- const review = await reviewRenderedStatic({
1576
- images: changed.length > 0 ? changed : targets.images,
1577
- rules: held.rules,
1578
- copy,
1579
- lines,
1580
- palette,
1581
- ...placements ? { placements } : {},
1582
- ...brand ? { brand } : {},
1583
- ...lockup.length > 0 ? { lockup } : {},
1584
- ...sceneText.length > 0 ? { sceneText } : {},
1585
- ...masterFormat ? { masterFormat } : {},
1586
- ...expectLogo ? { expectLogo } : {},
1587
- ...concept && concept.mustKeep.length > 0 && referenceSource(opts.parsed) ? { concept: { ...concept, reference: referenceSource(opts.parsed) } } : {},
1588
- logo: shape.logo,
1589
- ...native ? { native } : {},
1590
- ...uncast.length > 0 ? { uncastPeople: uncast } : {},
1591
- ...nobody ? { castsNobody: true } : {},
1592
- ...native ? { scrolled: scrolledLines(opts.parsed, opts.outputsByNode) } : {},
1593
- mechanisms,
1594
- ...opts.viewer ? { viewer: describeViewer(opts.viewer) } : {},
1595
- placedLogos: placedLogoBoxes(opts.parsed, opts.outputsByNode),
1596
- onSpend: opts.onSpend
1597
- });
1598
- const [glanced, compared, matched] = await Promise.all([glancing, comparing, matching]);
1599
- const glance = review === null ? null : glanced;
1600
- const unchanged = review === null ? [] : compared;
1601
- const sized = sizeFactFindings(opts.parsed, opts.outputsByNode);
1602
- const logoChecked = expectLogo && review !== null;
1603
- const placedLogo = logoChecked ? logoPlacementFindings(opts.parsed, opts.outputsByNode) : [];
1604
- const deliveredLogo = logoChecked ? await deliveredLogoFindings(opts.parsed, opts.outputsByNode, changed.length > 0 ? changed : targets.images, [
1605
- .../* @__PURE__ */ new Set([...palette, "#FFFFFF", "#000000"])
1606
- ]).catch(() => []) : [];
1607
- const differing = matched.flatMap((m) => m.differences.length > 0 ? [sizeDifferenceFinding(m.format, m.differences)] : []);
1608
- const fresh = review === null ? null : [...review, ...glance ?? [], ...unchanged, ...sized, ...placedLogo, ...deliveredLogo, ...differing];
1609
- const reviewed = fresh === null || !opts.settled ? fresh : carryUnchanged(fresh, opts.settled.review, untouched);
1610
- const verdict = staticVerdict(reviewed);
1611
- const hints = verdictHints(verdict, sizeShapeOf(opts.parsed));
1612
- const notes = [];
1613
- const note = (hint) => {
1614
- hints.push(hint);
1615
- notes.push(hint);
1616
- };
1617
- const lost = keptLostHint(reviewed ?? [], await ideaOf(targets.promptPath));
1618
- if (lost) note(lost);
1619
- const sizeHints = verdict === "needs_fixes" ? sizeFixHints(opts.parsed, reviewed) : [];
1620
- const sizesFirst = sizeHints[0]?.startsWith("Do this first") === true;
1621
- if (sizesFirst) hints.push(...sizeHints);
1622
- for (const f of reviewed ?? []) hints.push(`${f.severity === "blocking" ? "Must fix" : "Should fix"}: ${f.what}`);
1623
- if ((reviewed ?? []).some((f) => f.severity === "blocking" && f.kind?.item === "rule" && f.kind.element === "copy")) {
1624
- note(
1625
- 'A company rule the words break is yours to rewrite in prompt.json\'s `copy` (no automatic round changes the words); only when the person asked for those words, keep them and add `"waive": [{"rule": "<id>", "why": "<their ask>"}]`.'
1626
- );
1627
- }
1628
- if (review !== null && glance === null && opts.glance !== false) {
1629
- note("The finished ad was not shown to a stranger at a glance (the model did not answer): look at the 4:5 at phone size yourself and say what it sells in three seconds.");
1630
- }
1631
- const unmatched = review === null ? [] : matched.filter((m) => !m.compared).map((m) => m.format);
1632
- if (unmatched.length > 0) {
1633
- note(
1634
- `The ${unmatched.join(" and ")} could not be compared with the ${leadFormat} (the model did not answer): look at them side by side yourself, for the same people and product, shown once, unstretched.`
1635
- );
1636
- }
1637
- if (!sizesFirst) hints.push(...sizeHints);
1638
- hints.push(shapeHint(shape, copy.length));
1639
- hints.push(...variantHints(judge, prefilterOutcome(opts.parsed, opts.outputsByNode)));
1640
- return { review: reviewed, verdict, judge, hints, notes };
1641
- }
1642
- function scrolledLines(parsed, outputsByNode) {
1643
- return Object.fromEntries(
1644
- nodesOf2(parsed).flatMap((n) => {
1645
- const out = typeof n.id === "string" ? outputsByNode[n.id] : void 0;
1646
- const format = n.params?.format;
1647
- return n.type === "static_native" && typeof format === "string" && Array.isArray(out?.scrolled) ? [[format, out.scrolled.filter((t) => typeof t === "string")]] : [];
1648
- })
1649
- );
1650
- }
1651
- async function ideaOf(promptPath) {
1652
- const definition = await readFile5(path8.join(path8.dirname(promptPath), "_definition.md"), "utf8").catch(() => "");
1653
- const idea = frontmatterOf(definition)?.idea;
1654
- return typeof idea === "string" && idea.trim() ? idea.trim() : void 0;
1655
- }
1656
- function referenceSource(parsed) {
1657
- const original = nodesOf2(parsed).find((n) => n.id === "original" && n.type === "ingest");
1658
- const source = original?.params?.url ?? original?.params?.path;
1659
- return typeof source === "string" && !source.includes("[TODO") ? source : null;
1660
- }
1661
- function interfaceWordsOf(parsed) {
1662
- const nodes = parsed?.nodes;
1663
- const screen = Array.isArray(nodes) ? nodes.find((n) => n?.type === "static_native") : void 0;
1664
- return readInterfaceWords(screen?.params?.interface_words) ?? void 0;
1665
- }
1666
- var STRANGER = { temperature: "cold", knows: [], placements: ["automatic"], source: "knowledge", reasons: [] };
1667
- async function glanceAtFinished(images, viewer, intended, ask, onSpend) {
1668
- const shown = images.find((i) => i.format === "4:5") ?? images[0];
1669
- if (!shown) return null;
1670
- return await glanceCheck({
1671
- image: shown.path,
1672
- format: shown.format,
1673
- viewer,
1674
- intended,
1675
- ask,
1676
- judge: jevReadJudge(onSpend),
1677
- ...viewer.market ? { market: describeMarket(viewer.market) } : {}
1678
- });
1679
- }
1680
- function sizeFixHints(parsed, review) {
1681
- const cut = new Set(nodesWithRole(parsed, STATIC_FORMAT_ROLE).map((n) => n.id));
1682
- const relaid = [...nodesWithRole(parsed, STATIC_ADAPT_FORMAT_ROLE).map((n) => n.id), ...cut];
1683
- const blocking = (review ?? []).filter((f) => f.severity === "blocking");
1684
- const regenerate = relaid.flatMap((id) => {
1685
- const format = formatOfSizeNode(parsed, id);
1686
- if (!format || !blocking.some((f) => f.what.startsWith(`${format}:`))) return [];
1687
- return [
1688
- cut.has(id) ? `The ${format}'s words alone need fixing and the picture is right: \`baker canvas run \u2026 --regenerate ${id}\` sets the ${format}'s words again on the same picture (one request). If the picture itself is wrong, \`--fix\` it instead: every size's words are set again on the corrected picture.` : `The ${format} alone needs fixing and the chosen picture is right: \`baker canvas run \u2026 --regenerate ${id}\` lays out the ${format} again from the same picture (one request). If the chosen picture itself is wrong, \`--fix\` it instead: every size follows.`
1689
- ];
1690
- });
1691
- const relaidFormats = relaid.map((id) => formatOfSizeNode(parsed, id)).filter((f) => Boolean(f));
1692
- const sizesOnly = regenerate.length > 0 && blocking.every((f) => relaidFormats.some((format) => f.what.startsWith(`${format}:`)));
1693
- const lead = sizesOnly ? regenerate.map((h, i) => i === 0 ? `Do this first, not a --fix: ${h}` : h) : regenerate;
1694
- return [...lead, ...safeFitHints(parsed, blocking)];
1695
- }
1696
- var COVERED = / sits? where .+? covers? (?:it|them) /;
1697
- function safeFitHints(parsed, blocking) {
1698
- return nodesWithRole(parsed, STATIC_SAFE_FIT_ROLE).flatMap((n) => {
1699
- const format = typeof n.params?.format === "string" ? n.params.format : formatOfSlug(n.id.replace(/^safe_/, ""));
1700
- if (!blocking.some((f) => f.what.startsWith(`${format}:`) && COVERED.test(f.what))) return [];
1701
- return [
1702
- `The ${format} was already shrunk and shifted automatically to clear what the app covers; small misses are corrected that way, so this one is too large for it. Change the layout itself (shorter copy, fewer lines, a smaller block of text) rather than a \`--fix\` asking to move it, which moves it only about 1%.`
1703
- ];
1704
- });
1705
- }
1706
- var SIZE_FACT_FINDING = {
1707
- band_too_far: {
1708
- what: (format) => `${format}: the words reach too far past the part of the frame the app leaves clear to be moved inside it; set them inside it.`,
1709
- kind: { item: "safe_zone", element: "copy", defect: "other", edges: [] }
1710
- },
1711
- words_over_face: {
1712
- what: (format) => `${format}: the words were set over a face; set them where no face is.`,
1713
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1714
- },
1715
- words_misaligned: {
1716
- what: (format) => `${format}: ${PATCHED_WORDS}, which shows as a box; set them again on the same picture.`,
1717
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1718
- },
1719
- words_not_read: {
1720
- what: (format) => `${format}: ${UNREAD_WORDS}, so the picture around them may have been redrawn; set them again on the same picture.`,
1721
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1722
- },
1723
- subject_covered: {
1724
- what: (format, facts) => `${format}: the words hide ${(facts.covered ?? ["the product"]).join(" and ")}, which the other sizes show; set them where it stays in view.`,
1725
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1726
- },
1727
- subject_cut: {
1728
- what: (format) => `${format}: no cut of the picture keeps every person and product whole in this size.`,
1729
- kind: { item: "picture", element: "picture", defect: "cut", edges: [] }
1730
- }
1731
- };
1732
- function coveredIn(facts) {
1733
- if (facts === void 0 || facts === null || typeof facts !== "object") return null;
1734
- const covered = facts.covered;
1735
- return Array.isArray(covered) ? covered.filter((c) => typeof c === "string") : [];
1736
- }
1737
- function hiddenEverywhere(sizes, outputsByNode) {
1738
- const lists = sizes.map((s) => ({ ...s, covered: coveredIn(outputsByNode[s.id]?.facts) }));
1739
- const labels = new Set(
1740
- (lists[0]?.covered ?? []).filter((label) => lists.length > 1 && lists.every((s) => s.covered?.includes(label)))
1741
- );
1742
- const first = lists.find((s) => s.format && s.covered?.some((label) => labels.has(label)));
1743
- const notes = first?.format && labels.size > 0 ? [
1744
- {
1745
- severity: "warning",
1746
- what: `${first.format}: the words hide ${[...labels].join(" and ")} in every size; set them where it stays in view if it is what the ad sells.`,
1747
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1748
- }
1749
- ] : [];
1750
- return { labels, notes };
1751
- }
1752
- function sizeFactFindings(parsed, outputsByNode) {
1753
- const added = paintedAdditions(parsed, outputsByNode);
1754
- const sizes = nodesWithRole(parsed, STATIC_FORMAT_ROLE);
1755
- const everywhere = hiddenEverywhere(
1756
- sizes.map((n) => ({ id: n.id, format: formatOfSizeNode(parsed, n.id) })),
1757
- outputsByNode
1758
- );
1759
- const found = sizes.flatMap((n) => {
1760
- const format = formatOfSizeNode(parsed, n.id);
1761
- const facts = outputsByNode[n.id]?.facts ?? {};
1762
- const shownElsewhere = (coveredIn(facts) ?? []).some((label) => !everywhere.labels.has(label));
1763
- const said = typeof facts.reason === "string" && (facts.reason !== "subject_covered" || shownElsewhere) ? SIZE_FACT_FINDING[facts.reason] : void 0;
1764
- const patched = facts.reason !== "words_misaligned" && facts.words_mode !== "whole" && typeof facts.residual === "number" && facts.residual > MISALIGNED ? SIZE_FACT_FINDING.words_misaligned : void 0;
1765
- const covered = (coveredIn(facts) ?? []).filter((label) => !everywhere.labels.has(label));
1766
- const fromPlate = refId(n.inputs?.plate);
1767
- const extra = fromPlate ? added.get(fromPlate) : void 0;
1768
- if (!format) return [];
1769
- return [
1770
- ...[said, patched].flatMap(
1771
- (f) => f ? [{ severity: "blocking", what: f.what(format, covered.length > 0 ? { covered } : {}), kind: f.kind }] : []
1772
- ),
1773
- ...extra ? [
1774
- {
1775
- severity: "blocking",
1776
- what: `${format}: the picture painted wider from the chosen one shows ${extra.join(", ")}, which the other sizes do not. It must show the main size's people and product, once each.`,
1777
- kind: { item: "sizes", element: "picture", defect: "other", edges: [] }
1778
- }
1779
- ] : []
1780
- ];
1781
- });
1782
- return [...found, ...everywhere.notes];
1783
- }
1784
- function paintedAdditions(parsed, outputsByNode) {
1785
- return new Map(
1786
- nodesWithRole(parsed, STATIC_PLATE_ROLE).flatMap((n) => {
1787
- const facts = outputsByNode[n.id]?.facts;
1788
- const added = Array.isArray(facts?.added) ? facts.added.filter((a) => typeof a === "string") : [];
1789
- return facts?.reason === "subject_added" && added.length > 0 ? [[n.id, added]] : [];
1790
- })
1791
- );
1792
- }
1793
- function drawnSizes(parsed, delivered, masterFormat) {
1794
- const others = delivered.filter((format) => format && format !== masterFormat);
1795
- const cut = nodesWithRole(parsed, STATIC_FORMAT_ROLE);
1796
- if (cut.length === 0) return others;
1797
- const painted = new Set(nodesWithRole(parsed, STATIC_PLATE_ROLE).map((n) => n.id));
1798
- const fromPainted = new Set(
1799
- cut.flatMap((n) => {
1800
- const plate = refId(n.inputs?.plate);
1801
- const format = formatOfSizeNode(parsed, n.id);
1802
- return plate && painted.has(plate) && format ? [format] : [];
1803
- })
1804
- );
1805
- return others.filter((format) => fromPainted.has(format));
1806
- }
1807
- function formatOfSlug(slug) {
1808
- return slug.replace("x", ":").replace("_", ".");
1809
- }
1810
- function prefilterNodeId(parsed) {
1811
- return nodesWithRole(parsed, VARIANT_PREFILTER_ROLE)[0]?.id ?? null;
1812
- }
1813
- function prefilterOutcome(parsed, outputsByNode) {
1814
- const id = prefilterNodeId(parsed);
1815
- const out = id ? outputsByNode[id] : void 0;
1816
- return out && Array.isArray(out.dropped) ? out : null;
1817
- }
1818
- function prefilterSpend(parsed, outputsByNode, nodeRuns) {
1819
- const cached = (id2) => nodeRuns.some((r) => r.node_id === id2 && r.cached);
1820
- const id = prefilterNodeId(parsed);
1821
- const checks = id && !cached(id) ? prefilterOutcome(parsed, outputsByNode)?.usage ?? [] : [];
1822
- const fits = [
1823
- ...nodesWithRole(parsed, STATIC_SAFE_FIT_ROLE),
1824
- ...nodesWithRole(parsed, STATIC_PLACE_ROLE),
1825
- // A size cut from one picture reads its subjects and its words; a widened picture its subjects.
1826
- ...nodesWithRole(parsed, STATIC_LEAD_ROLE),
1827
- ...nodesWithRole(parsed, STATIC_FORMAT_ROLE),
1828
- ...nodesWithRole(parsed, STATIC_PLATE_ROLE),
1829
- // The logo's composite reads the size's words for its check.
1830
- ...nodesWithRole(parsed, LOGO_COMPOSITE_ROLE),
1831
- // A finished ad's 9:16 is planned and read, on any canvas.
1832
- ...nodesOf2(parsed).filter(
1833
- (n) => n.type === "static_vertical_relayout" && typeof n.id === "string"
1834
- )
1835
- ].filter((n) => !cached(n.id)).flatMap((n) => {
1836
- const usage = outputsByNode[n.id]?.usage;
1837
- return Array.isArray(usage) ? usage : [];
1838
- });
1839
- return [...checks, ...fits];
1840
- }
1841
- function variantHints(judge, prefilter) {
1842
- const hints = [];
1843
- const dropped = prefilter?.dropped ?? [];
1844
- const kept = Array.isArray(prefilter?.images) ? prefilter.images.length : judge?.length ?? 0;
1845
- const total = dropped.length + kept;
1846
- if (prefilter?.flagged) {
1847
- hints.push(
1848
- `Every variant failed the checks; variant ${prefilter.flagged.index + 1} had the fewest problems and was kept: ${prefilter.flagged.reasons.join(" ")}`
1849
- );
1850
- } else if (dropped.length > 0) {
1851
- const list = dropped.map((d) => `variant ${d.index + 1} (${d.reasons.join(" ")})`).join("; ");
1852
- hints.push(`${dropped.length} of ${total} variants set aside by the checks before the judge: ${list}.`);
1853
- }
1854
- const alone = prefilter?.order?.length === 1 && !prefilter.flagged ? prefilter.order[0] : void 0;
1855
- if (alone !== void 0 && dropped.length > 0) {
1856
- hints.push(
1857
- `The checks ranked variant ${alone + 1} best, so no judge was needed; the others stay in this run as options the person can switch to (\`baker canvas run --use-variant\`).`
1858
- );
1859
- }
1860
- const winner = judge ? judgeWinner(judge) : null;
1861
- if (judge && winner) {
1862
- const gone = new Set(dropped.map((d) => d.index));
1863
- const shown = prefilter?.order ?? Array.from({ length: total }, (_, i) => i).filter((i) => !gone.has(i));
1864
- const variant = (shown[winner.image - 1] ?? winner.image - 1) + 1;
1865
- const why = winner.of === void 0 ? `${winner.total}/${Object.keys(winner.scores).length * 5}` : `first on ${Object.entries(winner.scores).filter(([, beaten]) => beaten === winner.of).map(([criterion]) => criterion.replace(/_/g, " ")).join(", ") || "none of the criteria alone"}`;
1866
- hints.push(
1867
- `The judge picked variant ${variant} of the ${judge.length} it compared (${why}); the others it compared stay in this run as options the person can switch to (\`baker canvas run --use-variant\`).`
1868
- );
1869
- }
1870
- return hints;
1871
- }
1872
-
1873
- // src/commands/canvas/static-spec-repair.ts
1874
- import { readFile as readFile6, writeFile as writeFile5 } from "fs/promises";
1875
- import sharp2 from "sharp";
1876
- import { z as z2 } from "zod";
1877
- var Answer = z2.object({
1878
- changed: z2.string().min(1),
1879
- set: z2.array(z2.object({ path: z2.string().min(1), value: z2.unknown() }))
1880
- });
1881
- function withValueAt(root, path10, value) {
1882
- const [key, ...rest] = path10;
1883
- if (key === void 0) return value;
1884
- if (Array.isArray(root)) {
1885
- const at = Number(key);
1886
- if (!Number.isInteger(at) || at < 0 || at > root.length) return root;
1887
- const next = [...root];
1888
- next[at] = withValueAt(root[at], rest, value);
1889
- return next;
1890
- }
1891
- const holder = root && typeof root === "object" ? root : {};
1892
- return { ...holder, [key]: withValueAt(holder[key], rest, value) };
1893
- }
1894
- function declaredAvatars(spec) {
1895
- return new Set((spec.concept?.load_bearing ?? []).filter(isVital).flatMap((l) => castHandles(l.ours ?? "")));
1896
- }
1897
- function groundedAvatars(spec) {
1898
- return new Set(spec.references.flatMap((r) => r.avatar ? [r.avatar.toLowerCase()] : []));
1899
- }
1900
- function castsOnly(spec, avatars) {
1901
- const people = spec.references.filter((r) => r.id.startsWith("PERSON_"));
1902
- return people.length > 0 && people.every((r) => r.avatar !== void 0 && avatars.has(r.avatar.toLowerCase()));
1903
- }
1904
- function keepsCast(was, now) {
1905
- const declared = declaredAvatars(was);
1906
- if (castsNobody(was) && !castsNobody(now) && !castsOnly(now, declared)) return false;
1907
- const before = groundedAvatars(was);
1908
- const after = groundedAvatars(now);
1909
- return ![...declared].some((handle) => before.has(handle) && !after.has(handle));
1910
- }
1911
- function memeTemplateReferences(spec) {
1912
- return spec.references.filter(isMemeTemplate);
1913
- }
1914
- function keepsMemeTemplates(was, now) {
1915
- return memeTemplateReferences(was).every(
1916
- (t) => now.references.some((r) => r.id === t.id && r.role === t.role && r.image === t.image && r.what === t.what && r.keep === t.keep)
1917
- );
1918
- }
1919
- function printedWords(spec) {
1920
- return [...spec.copy.map((l) => l.text), ...spec.native ? nativeCopy(spec.native) : []];
1921
- }
1922
- function acceptRepair(before, answer, held = { rules: [] }) {
1923
- const parsed = Answer.safeParse(answer);
1924
- if (!parsed.success || !isAdSpec(before)) return null;
1925
- const spec = parsed.data.set.reduce((at, { path: path10, value }) => withValueAt(at, path10.split("."), value), before);
1926
- if (!isAdSpec(spec)) return null;
1927
- const was = AdSpecSchema.safeParse(before);
1928
- const now = AdSpecSchema.safeParse(spec);
1929
- if (!was.success || !now.success) return null;
1930
- if (JSON.stringify(was.data) === JSON.stringify(now.data)) return null;
1931
- for (const key of ["concept", "mechanism", "message", "brand", "viewer"]) {
1932
- if (JSON.stringify(was.data[key]) !== JSON.stringify(now.data[key])) return null;
1933
- }
1934
- if (was.data.native && was.data.native.surface !== now.data.native?.surface) return null;
1935
- if (!keepsCast(was.data, now.data) || !keepsMemeTemplates(was.data, now.data)) return null;
1936
- const kept = printedWords(now.data);
1937
- const said = printedWords(was.data);
1938
- if (!said.every((text) => kept.includes(text))) return null;
1939
- if (was.data.native) {
1940
- const shown = now.data.native ? nativeCopy(now.data.native) : [];
1941
- if (!nativeCopy(was.data.native).every((text) => shown.includes(text))) return null;
1942
- }
1943
- const added = kept.filter((text) => !said.includes(text));
1944
- if (ruleTells(added, held.rules, held.language).some((t) => t.kind === "forbidden")) return null;
1945
- return { changed: parsed.data.changed, spec };
1946
- }
1947
- function memeTemplatesOf(spec) {
1948
- let raw;
1949
- try {
1950
- raw = JSON.parse(spec);
1951
- } catch {
1952
- return [];
1953
- }
1954
- const parsed = AdSpecSchema.safeParse(raw);
1955
- return parsed.success ? memeTemplateReferences(parsed.data).map((r) => `${r.id} (${r.what})`) : [];
1956
- }
1957
- function buildSpecRepairPrompt(spec, findings, schema, restore = []) {
1958
- const templates = memeTemplatesOf(spec);
1959
- return [
1960
- "This is the spec (prompt.json) a static ad was drawn from, and the image is the ad it gave.",
1961
- "A review found these defects in it, and they come from what the spec asks for, so drawing it again or editing the picture brings them back:",
1962
- ...findings.map((f) => `- ${f}`),
1963
- ...restore.length > 0 ? [
1964
- "",
1965
- "Restore what made the proven ad win, as the concept declares it: put each of these back in the scene, the references and the lines' `look`, carried by exactly what of ours the concept names; never drop it or put anything the concept does not declare in its place.",
1966
- ...restore.map((r) => `- ${r}`)
1967
- ] : [],
1968
- "",
1969
- "Correct the spec so these defects cannot happen, changing as little as you can:",
1970
- "- Drop, replace or reword the element, photo, reference, layout or scene instruction that causes a defect (never what the concept keeps of the proven ad). A second subject the viewer would read as another one (another pet, another person) is dropped, or made unmistakably the same one.",
1971
- "- A rating or stars shown with no source: name the source only if the spec already states one anywhere; otherwise drop the stars or the rating. Never invent a source, a number or a claim.",
1972
- "- A native screen's layout (where its headline, bubbles or cards sit, what it shows) is changed in its `native` block.",
1973
- "- Keep every line of copy word for word: never reword, shorten or drop one. Keep the schema, the brand and everything the defects do not touch.",
1974
- "- Preserve `concept`, `mechanism`, `message` and `brand` exactly, including the CTA colour. Fix how the ad executes its idea; never change why it works or remove its load-bearing elements to make a defect pass.",
1975
- ...templates.length > 0 ? [
1976
- `- These references are real meme templates, grounded on their real pictures: ${templates.join("; ")}. Keep each exactly as it is (id, role, image and use) and keep the scene using it as the picture; never drop, replace or redraw one, and never describe its people or faces in the scene for the image model to draw.`
1977
- ] : [],
1978
- "- Keep a native screen on the same `native.surface`. Notes stays Notes, a review stays on its review platform. Change its layout or content only; never replace it with a physical document or a generic ad.",
1979
- "",
1980
- 'Reply with only this JSON, naming only the fields you replace, each by its dotted path in the spec ("scene.layout", "references", "copy.2.position", "native.messages"), with its whole new value: {"changed": "<one plain sentence a marketer reads: what you changed and why>", "set": [{"path": "<dotted path>", "value": <its new value>}]}',
1981
- "",
1982
- "The spec:",
1983
- spec,
1984
- // Bench, Oct 2026: without it the model set a field the spec does not have ("native.layout").
1985
- ...schema ? ["", "Its JSON schema: set only fields and values it allows.", JSON.stringify(schema)] : []
1986
- ].join("\n");
1987
- }
1988
- function restoreLines(spec, jobs) {
1989
- const parsed = AdSpecSchema.safeParse(spec);
1990
- if (!parsed.success || jobs.length === 0) return [];
1991
- return (parsed.data.concept?.load_bearing ?? []).filter((l) => isVital(l) && l.job !== void 0 && jobs.includes(l.job)).map((l) => {
1992
- const carried = decisionOf(l) === "keep" ? "kept as in the proven ad" : `carried by ${l.ours?.trim() || "what of ours the concept names"}`;
1993
- return `${l.job === "stop" ? "what stops the scroll" : "the proof"}, "${l.element}": ${carried}`;
1994
- });
1995
- }
1996
- var REPAIR_TIMEOUT_MS = 15e4;
1997
- var SHOWN_WIDTH = 768;
1998
- async function repairSpec(opts) {
1999
- const text = await readFile6(opts.promptPath, "utf8").catch(() => null);
2000
- if (text === null) return null;
2001
- let before;
2002
- try {
2003
- before = JSON.parse(text);
2004
- } catch {
2005
- return null;
2006
- }
2007
- const shown = opts.image ? await bytesOf(opts.image).then(async (bytes) => (await sharp2(bytes).resize({ width: SHOWN_WIDTH }).jpeg({ quality: 85 }).toBuffer()).toString("base64")).catch(() => null) : null;
2008
- const prompt = buildSpecRepairPrompt(
2009
- text,
2010
- opts.findings,
2011
- adSpecJsonSchema(),
2012
- restoreLines(before, opts.restore ?? [])
2013
- );
2014
- const repair = acceptRepair(
2015
- before,
2016
- await askAboutImages(RENDER_REVIEW_MODEL, shown ? [shown] : [], prompt, opts.onSpend, REPAIR_TIMEOUT_MS),
2017
- opts.held
2018
- );
2019
- if (!repair) return null;
2020
- await writeFile5(opts.promptPath, `${JSON.stringify(repair.spec, null, 2)}
2021
- `, "utf8");
2022
- return repair.changed;
2023
- }
2024
-
2025
- // src/commands/canvas/band-relay-plan.ts
2026
- async function bandRelayPlans(canvas, ids, outputsByNode, onSpend) {
2027
- const ad = outputsByNode.master?.image;
2028
- const source = typeof ad?.path === "string" ? ad.path : typeof ad?.url === "string" ? ad.url : void 0;
2029
- if (!source) return {};
2030
- const bytes = await bytesOf(source).catch(() => null);
2031
- if (!bytes) return {};
2032
- const nodes = canvas?.nodes;
2033
- const placements = Array.isArray(nodes) ? plannedPlacements(nodes) : void 0;
2034
- const plans = {};
2035
- for (const id of ids) {
2036
- const format = formatOfAdaptId(id);
2037
- if (!format) continue;
2038
- const plan = await planVertical(bytes, staticSafeArea(format, placements), onSpend, { keepWords: true }).catch(() => null);
2039
- if (plan) plans[id] = plan.prompt;
2040
- }
2041
- return plans;
2042
- }
2043
-
2044
- // src/commands/canvas/run.ts
2045
- function refusePlateVersion(runId) {
2046
- const message = `The version of run ${runId} could not be found with the picture its sizes are cut from, so it cannot be changed on top of. Render the creative again (baker canvas run --slug <slug>), then make the change on that version.`;
2047
- process.stderr.write(`${JSON.stringify({ ok: false, error: { code: "version_not_found", message } }, null, 2)}
2048
- `);
2049
- process.exit(2);
2050
- }
2051
- var OPERATOR = "Operator only, agents never need it.";
2052
- var runCommand = defineCommand({
2053
- meta: {
2054
- name: "run",
2055
- description: "Validate and execute a canvas. Pass the canvas file, or `--slug <slug>` to run a creative by name: its canvas in this workspace, or, when this workspace does not have it (a fresh workspace, another chat's creative), its files restored from its latest recorded run first. A run that was interrupted resumes; a finished one re-renders from the cache. Several creatives render at once in one command: pass several files, or `--slug a,b,c` (one row each: slug, status, run_id, files, previews). Each delivered picture also gets a JPEG preview at most 1024px on its longest edge, by the same label as its file in `previews`: look at that, not the full file."
2056
- },
2057
- args: {
2058
- file: {
2059
- type: "positional",
2060
- required: false,
2061
- description: "Path to canvas JSON (or use --slug). Several files render at once, each its own run: baker canvas run src/creatives/a/a.canvas.json src/creatives/b/b.canvas.json"
2062
- },
2063
- slug: {
2064
- type: "string",
2065
- description: "Run the creative src/creatives/<slug>/ by name instead of passing its file. Restores its files from run history when they are not in this workspace; local files are never overwritten unless you pass --force-remote. Several, comma-separated, render at once, each its own run: --slug spring-a,spring-b,spring-c"
2066
- },
2067
- series: {
2068
- type: "string",
2069
- description: "Render every ad of the series this lead ad leads, all at once (`baker creatives make <idea> --series <lead>` made them): each is the lead's ready version with its own words, reviewed and corrected on its own. An ad already ready from the lead's current version is not rendered again. Start here for several messages in one style: baker canvas run --series spring-offer"
2070
- },
2071
- "force-remote": {
2072
- type: "boolean",
2073
- default: false,
2074
- description: "With --slug: restore the recorded files even over local ones, replacing those that differ"
2075
- },
2076
- until: {
2077
- type: "string",
2078
- description: "Stop before the expensive half and leave the run resumable. `frames` settles the pictures and stops on the doorstep of the clips, so the look can be checked for the price of a few images instead of a whole ad. Continue with `baker canvas run <file> --run-id <the same id>` \u2014 everything already done is cached and is not paid for twice."
2079
- },
2080
- brief: {
2081
- type: "string",
2082
- description: "What the person asked for, IN THEIR OWN WORDS \u2014 paste their message, do not summarise it. The review compares the finished video against this and reports what they asked for that is missing or contradicted. Without it the review can only say whether the video is well made, not whether it is the one they wanted: every other check grades the render against the spec, and a spec that misread the request agrees with itself."
2083
- },
2084
- full: {
2085
- type: "boolean",
2086
- default: false,
2087
- description: "Also print the per-node output, the run's stats, the judge's scores and the full guide in hints. The default is the result alone on stdout (verdict, review, the next step as hints, run_id, files, previews); on stderr, one [log] line naming the progress log (the [hint] lines there are the full guide) and the [warn] lines."
2088
- },
2089
- "run-id": { type: "string", description: "Override run id (also resumes that run, re-attaching its in-flight jobs)" },
2090
- fix: {
2091
- type: "string",
2092
- description: `Static ad only: correct a finished version instead of rendering a new one. One render takes that version as its first reference and changes only what you say here ("the CTA sits in the Stories band: move it up", "'Analitica' is missing its accent"), keeping the picture, layout and every other word. It is added on top of that version: its options, pick and earlier corrections are kept as they were made (free), the edit after them. Every size is made again from it (each other size re-laid out from it, one request each) and the review follows as usual. The version is the creative's last render, or --from <run_id>.`
2093
- },
2094
- from: {
2095
- type: "string",
2096
- description: "With --fix, --use-variant or a --regenerate of sizes only: the run id of the version (default: the one the creative shows, its last render here, or in a new chat the version chosen, else its newest)"
2097
- },
2098
- "use-variant": {
2099
- type: "string",
2100
- description: "Static ad only: the person asked in the chat for another of a version's variants over the judge's pick. Give its sha256 (the picture's, never the option's number): every size is made again from that picture, the judge's pick replaced. The only requests re-lay out each other size from that picture (one per size). The version is --from <run_id>, else the creative's last render."
2101
- },
2102
- autofix: {
2103
- type: "boolean",
2104
- default: true,
2105
- description: `Static ad: when the review finds a blocking defect, the run corrects it itself before it reports (up to ${AUTO_FIX_ROUNDS} more renders: the chosen picture fixed, or only the size at fault laid out again). A logo the model drew that is still not the brand's after a correction (misspelt, redrawn, far from the file) is not drawn again: the brand's logo file is placed on every size of the ad instead, and src/brand/tokens.json records "logoPlacement": "composite" so the brand's next ads place it too (keep that key). --no-autofix reports after the first render.`
2106
- },
2107
- "skip-viewer-check": {
2108
- type: "boolean",
2109
- default: false,
2110
- description: "Static ad only: render without the viewer check (see `baker canvas viewer-check`). Only when the person has heard what the viewer missed and asked for this copy as it is."
2111
- },
2112
- fresh: {
2113
- type: "boolean",
2114
- default: false,
2115
- description: "Ignore any interrupted-run marker and start a new run id instead of resuming"
2116
- },
2117
- "cache-policy": { type: "string", description: "read_write | bypass | read_only" },
2118
- regenerate: {
2119
- type: "string",
2120
- description: "Comma-separated node ids or roles to force fresh THIS run (e.g. --regenerate pick,adapt; on a static ad --regenerate static_variants, or its id gen, renders the variants again; on one cut from one picture --regenerate format_9x16 sets the 9:16's words again on the picture the last version shows, its --fix correction or chosen variant included; on one laid out again for each size --regenerate adapt_9x16 lays out the 9:16 again from that picture, and --regenerate static_adapt_format every re-laid-out size), bypassing the content cache for just those nodes + everything downstream. For a persistent re-render, bump a node's `regenerate` field in the canvas JSON instead."
2121
- },
2122
- concurrency: {
2123
- type: "string",
2124
- description: "Max nodes running at once (default 8; env BAKER_CANVAS_CONCURRENCY)"
2125
- },
2126
- parallel: {
2127
- type: "string",
2128
- description: "Alias for --concurrency: independent clips (and every other same-layer node) already fan out in parallel up to this bound"
2129
- },
2130
- // citty consumes any `--no-<flag>` as a negation of `<flag>`, so the
2131
- // opt-out spelling `--no-record` requires the flag to be named `record`
2132
- // (a literal "no-record" arg would never receive a value).
2133
- record: {
2134
- type: "boolean",
2135
- default: true,
2136
- description: "Post the durable run-history record to Baker (disable with --no-record)"
2137
- },
2138
- "cache-dir": { type: "string", description: `${OPERATOR} Cache root (default <workspace root>/canvas/.cache)` },
2139
- "outputs-dir": { type: "string", description: `${OPERATOR} Per-run outputs root (default <workspace root>/canvas)` },
2140
- "keep-runs": {
2141
- type: "string",
2142
- description: `${OPERATOR} After the run, prune old r_* run dirs, keeping the N newest (off by default)`
2143
- },
2144
- "remote-cache": {
2145
- type: "string",
2146
- description: `${OPERATOR} on | off: company-scoped remote cache + durable asset persistence (default on; env BAKER_CANVAS_REMOTE_CACHE)`
2147
- }
2148
- },
2149
- async run({ args }) {
2150
- if (args.series) {
2151
- await executeSeriesRun(String(args.series));
2152
- return;
2153
- }
2154
- const targets = canvasTargets({
2155
- files: Array.isArray(args._) ? args._ : [],
2156
- slug: args.slug ? String(args.slug) : void 0
2157
- });
2158
- const opts = {
2159
- ...targets.length === 1 ? targets[0] : {},
2160
- forceRemote: args["force-remote"] === true,
2161
- cacheDir: args["cache-dir"] ? String(args["cache-dir"]) : void 0,
2162
- outputsDir: args["outputs-dir"] ? String(args["outputs-dir"]) : void 0,
2163
- runId: args["run-id"] ? String(args["run-id"]) : void 0,
2164
- fresh: args.fresh === true,
2165
- fix: args.fix ? String(args.fix) : void 0,
2166
- from: args.from ? String(args.from) : void 0,
2167
- useVariant: args["use-variant"] ? String(args["use-variant"]) : void 0,
2168
- skipViewerCheck: args["skip-viewer-check"] === true,
2169
- autoFix: args.autofix !== false,
2170
- brief: args.brief ? String(args.brief) : void 0,
2171
- until: args.until ? String(args.until) : void 0,
2172
- cachePolicy: args["cache-policy"] ? String(args["cache-policy"]) : void 0,
2173
- regenerate: args.regenerate !== void 0 ? String(args.regenerate) : void 0,
2174
- // --concurrency wins; --parallel is the discoverable alias for the same bound.
2175
- concurrency: (args.concurrency ?? args.parallel) !== void 0 ? String(args.concurrency ?? args.parallel) : void 0,
2176
- keepRuns: args["keep-runs"] !== void 0 ? Number(args["keep-runs"]) : void 0,
2177
- remoteCache: args["remote-cache"] !== void 0 ? String(args["remote-cache"]) !== "off" : void 0,
2178
- record: args.record !== false,
2179
- full: args.full === true
2180
- };
2181
- if (targets.length > 1) {
2182
- await executeBatchRun(targets, opts);
2183
- return;
2184
- }
2185
- await executeCanvasRun(opts);
2186
- }
2187
- });
2188
- function stopBeforeKinds(until) {
2189
- if (until?.trim() === "frames") return /* @__PURE__ */ new Set(["video_generate"]);
2190
- return null;
2191
- }
2192
- function failPreflight(code, message, fix) {
2193
- process.stderr.write(`${JSON.stringify({ ok: false, error: { code, message, ...fix ? { fix } : {} } }, null, 2)}
2194
- `);
2195
- process.exit(2);
2196
- }
2197
- async function canvasFileFor(opts) {
2198
- if (opts.file) return { canvasPath: path9.resolve(opts.file) };
2199
- if (!opts.slug) failPreflight("missing_canvas", "Pass the canvas file, or --slug <slug> to run a creative by name.");
2200
- const cwd = process.cwd();
2201
- try {
2202
- return await canvasForSlug(opts.slug, {
2203
- workspaceRoot: findWorkspaceRoot(cwd) ?? cwd,
2204
- forceRemote: opts.forceRemote === true,
2205
- client: buildBackendClient,
2206
- log: (line) => process.stdout.write(`${line}
2207
- `)
2208
- });
2209
- } catch (e) {
2210
- if (e instanceof SlugRestoreError) failPreflight(e.code, e.message, e.fix);
2211
- throw e;
2212
- }
2213
- }
2214
- async function executeSeriesRun(lead) {
2215
- const root = findWorkspaceRoot(process.cwd()) ?? process.cwd();
2216
- const members = await seriesMembers(root, lead);
2217
- if (members.length === 0) {
2218
- failPreflight(
2219
- "no_series_ads",
2220
- `No ad names "${lead}" as its lead (\`series: ${lead}\` in its _definition.md).`,
2221
- `Make each other message as an ad of the series first (baker creatives make <idea> --series ${lead}), or each language (baker creatives translate --slug ${lead} --to es-MX,de).`
2222
- );
2223
- }
2224
- const canvasRoot = path9.join(root, "canvas");
2225
- process.stdout.write(`[series] rendering ${members.length} ads of ${lead} at once: ${members.join(", ")}
2226
- `);
2227
- const results = await runSeries(members, {
2228
- plan: async (slug) => {
2229
- const made = await writeSeriesMemberCanvas(root, slug, { takeLeadDesign: true });
2230
- if (made === null) return { refused: { code: "not_in_series", message: `${slug} is no ad of this series.`, fix: "" } };
2231
- if ("refused" in made) return made;
2232
- if (made.designFromLead) process.stdout.write(`[series] ${slug} takes the lead's design, its own words kept
2233
- `);
2234
- try {
2235
- const prepared = await prepareCanvas(made.canvasPath, { write: false });
2236
- const state = await readRenderState(canvasRoot, slug);
2237
- const { rendered } = canvasFreshness(state, slug, made.canvasPath);
2238
- const fresh = rendered?.sourceSha === prepared.sourceSha && (state.blocking ?? []).length === 0;
2239
- return fresh ? { run: false, runId: rendered?.runId } : { run: true };
2240
- } catch (e) {
2241
- const envelope = e instanceof CanvasPrepareError ? e.toEnvelope().error : null;
2242
- return {
2243
- refused: {
2244
- code: String(envelope?.code ?? "prepare_failed"),
2245
- message: String(envelope?.message ?? (e instanceof Error ? e.message : e)),
2246
- fix: String(envelope?.fix ?? "")
2247
- }
2248
- };
2249
- }
2250
- },
2251
- run: (slug) => runBaker(["canvas", "run", "--slug", slug])
2252
- });
2253
- process.stdout.write(`${JSON.stringify(seriesEnvelope(lead, results), null, 2)}
2254
- `);
2255
- }
2256
- async function executeBatchRun(targets, opts) {
2257
- const versionFlags = oneCanvasOnly(opts);
2258
- if (versionFlags.length > 0) {
2259
- failPreflight(
2260
- "one_canvas_only",
2261
- `${versionFlags.join(", ")} applies to one canvas run only, and ${targets.length} canvases were given.`,
2262
- "Run that creative by itself (baker canvas run --slug <slug> \u2026), or drop the flag to render them all."
2263
- );
2264
- }
2265
- process.stderr.write(
2266
- `[canvases] rendering ${targets.length} canvases, up to ${CANVASES_AT_ONCE} at once: ${targets.map(targetLabel).join(", ")}
2267
- `
2268
- );
2269
- const rows = await runCanvases(
2270
- targets,
2271
- (target) => runBaker(childRunArgs(target, opts), void 0, `[${targetLabel(target)}] `),
2272
- CANVASES_AT_ONCE,
2273
- { full: opts.full === true }
2274
- );
2275
- process.stdout.write(`${JSON.stringify(batchEnvelope(rows), null, 2)}
2276
- `);
2277
- }
2278
- async function refreshSeriesAd(opts) {
2279
- const slug = opts.slug ?? (opts.file ? creativeSlugFromCanvasPath(path9.resolve(opts.file)) : null);
2280
- if (!slug) return false;
2281
- const root = findWorkspaceRoot(opts.file ? path9.dirname(path9.resolve(opts.file)) : process.cwd());
2282
- if (!root) return false;
2283
- const made = await writeSeriesMemberCanvas(root, slug);
2284
- if (made === null) return false;
2285
- if ("refused" in made) failPreflight(made.refused.code, made.refused.message, made.refused.fix);
2286
- process.stdout.write(
2287
- `[series] ${slug} is the lead ${made.lead}'s version ${made.leadRunId} with this ad's words${made.written ? " (canvas written)" : ""}
2288
- `
2289
- );
2290
- return made.newLeadVersion;
2291
- }
2292
- async function editScopeNotes(input) {
2293
- const { opts, shown } = input;
2294
- const plain = (opts.autoFixRound ?? 0) === 0 && opts.fix === void 0 && opts.regenerate === void 0 && opts.useVariant === void 0 && opts.from === void 0;
2295
- if (!plain || !shown.rendered) return [];
2296
- const notes = [];
2297
- const changed = !input.native && input.asEdit === null && shown.prompt ? frameChanges(shown.prompt, input.promptNow) : [];
2298
- if (changed.length > 0) {
2299
- notes.push(
2300
- `[scope] this run changes ${changed.join(", ")} since the version shown: new pictures are made. If the person asked only for words, colours or one element, put the rest back (or use --fix).`
2301
- );
2302
- }
2303
- const local = { record: async () => null, graph: async () => null };
2304
- const previous = await versionRun(input.canvasRoot, shown.rendered.runId, local);
2305
- for (const clip of previous ? retakenTalkingScenes(previous.canvas, input.canvas) : []) {
2306
- notes.push(
2307
- `[voice] the take ${clip} is said again by the video model: it may not sound like the other takes; listen to it before you show it.`
2308
- );
2309
- }
2310
- return notes;
2311
- }
2312
- async function reasonsOfSpec(canvasRoot, slug, here, sourceSha) {
2313
- if (spentReasons(here, sourceSha).length > 0) return here;
2314
- const kept = await specRenders(slug, sourceSha);
2315
- if (!kept) return here;
2316
- const merged = withDurableRenders(here, sourceSha, kept);
2317
- const known = here?.sourceSha === sourceSha ? here.runs.length : 0;
2318
- if (merged.runs.length === known) return here;
2319
- await recordReasons(canvasRoot, slug, merged);
2320
- return merged;
2321
- }
2322
- var canvasHeld = false;
2323
- var RECORDED_RULE_IDS = 100;
2324
- async function executeCanvasRun(opts) {
2325
- await runRenderChain(opts, canvasRunRound);
2326
- }
2327
- async function canvasRunRound(opts) {
2328
- const startedAt = opts.autoFixStartedAt ?? Date.now();
2329
- const newAsk = (opts.autoFixRound ?? 0) === 0 ? await refreshSeriesAd(opts) : false;
2330
- const { canvasPath: filePath, adoptRunId } = await canvasFileFor(opts);
2331
- const canvasRoot = canvasOutputsRoot(filePath);
2332
- const creativeSlug = creativeSlugFromCanvasPath(filePath) ?? void 0;
2333
- const held = creativeSlug ? await heldRules(path9.dirname(filePath)) : { rules: [] };
2334
- if (creativeSlug) await clearLegacyDirtyMarker(canvasRoot, creativeSlug);
2335
- const turnId = optionalTurnId();
2336
- const turnCache = opts.cacheDir ?? path9.join(canvasRoot, ".cache");
2337
- const refusal = creativeSlug && (opts.autoFixRound ?? 0) === 0 ? turnRenderRefusal(await readTurnRenders(turnCache), turnId, creativeSlug) : null;
2338
- if (refusal) {
2339
- process.stderr.write(
2340
- `${JSON.stringify({ ok: false, error: refusal }, null, 2)}
2341
- `
2342
- );
2343
- process.exit(2);
2344
- }
2345
- const shown = creativeSlug ? await shownVersion(canvasRoot, creativeSlug) : {};
2346
- const promptOnDisk = await readFile7(path9.join(path9.dirname(filePath), "prompt.json"), "utf8").then((text) => JSON.parse(text)).catch(() => null);
2347
- const promptEdited = mayBeCorrection({}, shown.prompt, promptOnDisk);
2348
- const ideaHeld = creativeSlug && (opts.autoFixRound ?? 0) === 0 ? (await shownBaseline({
2349
- canvasRoot,
2350
- slug: creativeSlug,
2351
- creativeDir: path9.dirname(filePath),
2352
- turnId,
2353
- shown,
2354
- record: true
2355
- })).baseline : void 0;
2356
- const citing = [];
2357
- await wireProofBadges(
2358
- path9.join(path9.dirname(filePath), "prompt.json"),
2359
- fetchBrandLogo,
2360
- (line) => process.stderr.write(`${line}
2361
- `),
2362
- jevCitationJudge((u) => citing.push(u))
2363
- );
2364
- await holdUnbilledSpend(turnCache, citing);
2365
- if ((opts.autoFixRound ?? 0) === 0) {
2366
- const reading = [];
2367
- await wireNamedPeople(
2368
- path9.join(path9.dirname(filePath), "prompt.json"),
2369
- avatarOfNamedPerson,
2370
- (line) => process.stderr.write(`${line}
2371
- `),
2372
- peopleReader(turnCache, (u) => reading.push(u))
2373
- );
2374
- await holdUnbilledSpend(turnCache, reading);
2375
- }
2376
- let prepared;
2377
- try {
2378
- prepared = await prepareCanvas(filePath, {
2379
- requireSuppliedAssets: true,
2380
- gate: true,
2381
- log: (line) => process.stderr.write(`${line}
2382
- `),
2383
- ...ideaHeld ? { baseline: ideaHeld } : {},
2384
- firstRender: creativeSlug !== void 0 && !shown.rendered && (opts.autoFixRound ?? 0) === 0,
2385
- // The same refusal of this ad met on two edited versions in this turn lets the next attempt through (`check-policy.ts`).
2386
- ...creativeSlug ? { breaker: turnRefusals(turnCache, turnId, creativeSlug) } : {}
2387
- });
2388
- } catch (e) {
2389
- if (creativeSlug) await recordRenderAttempt(canvasRoot, creativeSlug, await computeSourceSha(filePath), filePath);
2390
- exitOnPrepareError(e);
2391
- }
2392
- if (creativeSlug) await recordRenderAttempt(canvasRoot, creativeSlug, prepared.sourceSha, filePath);
2393
- if (prepared.rewrites.length > 0) {
2394
- process.stderr.write(
2395
- `[canvas] rewrote ${prepared.rewrites.length} asset reference(s) in the canvas file so it says what runs (absolute paths \u2192 canvas-relative, a URL in an ingest path \u2192 source "url", a path into canvas/ \u2192 the durable URL of the same bytes):
2396
- ${describeRewrites(prepared.rewrites)}
2397
- `
2398
- );
2399
- }
2400
- let parsed = prepared.canvas;
2401
- const promptNow = isStaticAdCanvas(parsed) ? await readStaticPromptJson(parsed).catch(() => null) : null;
2402
- const native = isNativeCanvas(parsed);
2403
- if (native && (opts.fix !== void 0 || opts.useVariant !== void 0)) {
2404
- process.stderr.write(
2405
- `${JSON.stringify(
2406
- {
2407
- ok: false,
2408
- error: {
2409
- code: "nothing_to_fix",
2410
- message: "This ad is a native screen drawn exactly from prompt.json, not a painted picture: there is nothing to correct by --fix or to pick by --use-variant.",
2411
- fix: "Edit prompt.json's `native` block (its words, people, photos, frame) and run again: nothing renders but a photo whose description changed. A photo with a defect: `--regenerate photo_<n>`."
2412
- }
2413
- },
2414
- null,
2415
- 2
2416
- )}
2417
- `
2418
- );
2419
- process.exit(2);
2420
- }
2421
- const asEdit = opts.fix === void 0 && opts.useVariant === void 0 && opts.regenerate === void 0 && opts.from === void 0 && shown.rendered ? plainRunEdit(parsed, shown.prompt, promptNow) : null;
2422
- const editOf = asEdit && shown.rendered ? await previousAdImage(canvasRoot, shown.rendered.runId, void 0, { ...rolesById(parsed), ...relaidPictureRole(parsed) }) : null;
2423
- const editInstruction = editOf ? asEdit : null;
2424
- if (editInstruction) {
2425
- process.stdout.write(`[edit] only the words or colours changed: editing the version of run ${shown.rendered?.runId}: ${editInstruction}
2426
- `);
2427
- }
2428
- const runNotes = await editScopeNotes({
2429
- opts,
2430
- asEdit,
2431
- native,
2432
- shown,
2433
- promptNow,
2434
- canvas: parsed,
2435
- canvasRoot
2436
- });
2437
- for (const note of runNotes) process.stderr.write(`${note}
2438
- `);
2439
- const fixInstruction = opts.fix ?? editInstruction ?? void 0;
2440
- const requested = opts.regenerate?.split(",").map((id) => id.trim()) ?? [];
2441
- const plainKeep = opts.fix === void 0 && opts.useVariant === void 0 && requested.length === 0 && !promptEdited;
2442
- const fromRun = opts.from ?? shown.rendered?.runId;
2443
- const memory = fixMemoryOf(shown, opts.from);
2444
- if (opts.fix !== void 0 && repeatsFailedFix(memory.lastFix, opts.fix)) {
2445
- const left = memory.lastFix?.blocking ?? [];
2446
- process.stderr.write(
2447
- `${JSON.stringify(
2448
- {
2449
- ok: false,
2450
- error: {
2451
- code: "no_progress",
2452
- message: `Not rendered: this exact fix already ran and left ${left.length === 1 ? "this" : "these"} in place: ${left.join(" | ")}`,
2453
- fix: `Do not ask for the same correction again. Change the approach: edit prompt.json so the problem cannot happen (shorter words, a line moved or dropped, a different position), make just the size at fault again (${oneSizeFix(sizeShapeOf(parsed))}), or ask for new options with \`--regenerate static_variants\`.`
2454
- }
2455
- },
2456
- null,
2457
- 2
2458
- )}
2459
- `
2460
- );
2461
- process.exit(2);
2462
- }
2463
- const remadeAlready = (opts.autoFixRound ?? 0) === 0 && opts.fix === void 0 && opts.useVariant === void 0 ? repeatsFailedRemake(shown, requested, { from: opts.from, sourceSha: prepared.sourceSha }) : [];
2464
- if (remadeAlready.length > 0) {
2465
- const again = `--regenerate ${requested.join(",")}`;
2466
- const variants = requested.includes(STATIC_VARIANTS_ROLE) || requested.includes("gen");
2467
- process.stderr.write(
2468
- `${JSON.stringify(
2469
- {
2470
- ok: false,
2471
- error: {
2472
- code: "no_progress",
2473
- message: `Not rendered: \`${again}\` already ran on this version with prompt.json as it is now, and left ${remadeAlready.length === 1 ? "this" : "these"} as ${remadeAlready.length === 1 ? "it was" : "they were"}: ${remadeAlready.join(" | ")}`,
2474
- fix: `Do not make the same part again from the same prompt.json: it comes back with the same problems. Change the approach: edit prompt.json so the problem cannot happen (shorter words, a line moved or dropped, a different position), or correct this version with \`--fix "<what to change>"\`${variants ? "" : ", or ask for new options with `--regenerate static_variants`"}.`
2475
- }
2476
- },
2477
- null,
2478
- 2
2479
- )}
2480
- `
2481
- );
2482
- process.exit(2);
2483
- }
2484
- const reasons = (opts.autoFixRound ?? 0) === 0 && creativeSlug && prepared.sourceSha && isStaticAdCanvas(parsed) ? await reasonsOfSpec(canvasRoot, creativeSlug, shown.reasons, prepared.sourceSha) : shown.reasons;
2485
- const recovering = opts.runId !== void 0 && fixInstruction === void 0 && opts.regenerate === void 0 && opts.useVariant === void 0 && opts.from === void 0 && opts.fresh !== true && reasons?.sourceSha === prepared.sourceSha && (reasons?.runs ?? []).some((r) => r.runId === opts.runId);
2486
- const spent = (opts.autoFixRound ?? 0) === 0 && !recovering ? spentReasons(reasons, prepared.sourceSha) : [];
2487
- if (spent.length > 0) {
2488
- process.stderr.write(
2489
- `${JSON.stringify(
2490
- {
2491
- ok: false,
2492
- error: {
2493
- code: "no_progress",
2494
- message: `Not rendered: ${RENDERS_PER_REASON} renders of this ad, with prompt.json and the canvas as they are now, already ended with ${spent.length === 1 ? "this problem" : "these problems"}: ${spent.join(" | ")}`,
2495
- fix: `Another render of the same spec pays again for ${spent.length === 1 ? "it" : "them"}, whatever the retry (\`--fix\`, \`--regenerate\`, a plain run). Change the spec in prompt.json so ${spent.length === 1 ? "it" : "they"} cannot happen: shorter words, a line moved or dropped, a different position, a size left out of \`formats\`, or less of the reference kept (\`concept.carry\`); then run again. If nothing in the spec can change it, stop and show the person the best version, saying in one plain sentence what is left.`
2496
- }
2497
- },
2498
- null,
2499
- 2
2500
- )}
2501
- `
2502
- );
2503
- process.exit(2);
2504
- }
2505
- const dropped = (opts.autoFixRound ?? 0) === 0 && !native ? droppedKeeps(shown.prompt, promptNow) : [];
2506
- if (dropped.length > 0) {
2507
- const said = dropped.map((d) => `"${d.element}" still names ${d.words.map((w) => `"${w}"`).join(", ")}`);
2508
- process.stderr.write(
2509
- `${JSON.stringify(
2510
- {
2511
- ok: false,
2512
- error: {
2513
- code: "concept_does_not_fit",
2514
- message: `Not rendered: the copy no longer has words prompt.json's plan keeps as essential (${said.join("; ")}). The review would ask for them and every correction would draw them back.`,
2515
- fix: `Update prompt.json's \`concept.load_bearing\` ${dropped.map((d) => `"${d.element}"`).join(", ")}: rewrite its \`ours\` to what of the ad now carries it, the words unchanged in \`element\`, or put the words back in the copy. Then run again.`
2516
- }
2517
- },
2518
- null,
2519
- 2
2520
- )}
2521
- `
2522
- );
2523
- process.exit(2);
2524
- }
2525
- const remakeOutcome = creativeSlug && (opts.autoFixRound ?? 0) === 0 && isStaticAdCanvas(parsed) ? {
2526
- lastRemake: requested.length > 0 && opts.fix === void 0 && opts.useVariant === void 0 ? { regenerate: [...requested].sort(), before: memory.blocking } : void 0
2527
- } : null;
2528
- let grown = null;
2529
- const growOn = async (from, growth) => {
2530
- const version = await versionRun(canvasRoot, from);
2531
- return version ? growFromVersion(parsed, version, growth) : null;
2532
- };
2533
- if (fixInstruction !== void 0) {
2534
- const instruction = fixInstruction.trim();
2535
- const from = opts.from ?? shown.rendered?.runId;
2536
- const previous = editOf ?? (from ? await previousAdImage(canvasRoot, from, void 0, { ...rolesById(parsed), ...relaidPictureRole(parsed) }) : null);
2537
- if (!instruction || !isStaticAdCanvas(parsed) || !from || !previous) {
2538
- const message = !instruction ? "--fix needs the correction in words." : !isStaticAdCanvas(parsed) ? "--fix corrects a static ad; this canvas is not one." : !from ? "--fix needs a version to correct: this creative has no recorded render here. Pass --from <run_id>." : `--fix could not find the finished ad of run ${from}.`;
2539
- const shownRun = shown.rendered?.runId;
2540
- const fix = instruction && isStaticAdCanvas(parsed) && from ? shownRun && shownRun !== from ? `Correct the version the creative shows: \`baker canvas run --slug ${creativeSlug ?? "<slug>"} --from ${shownRun} --fix "<what to change>"\`.` : `Show the ad as it stands, as a version ("Version 3"), and name in one plain sentence the defect left in it: it is corrected with the person's next message.` : void 0;
2541
- process.stderr.write(
2542
- `${JSON.stringify({ ok: false, error: { code: "nothing_to_fix", message, ...fix ? { fix } : {} } }, null, 2)}
2543
- `
2544
- );
2545
- process.exit(2);
2546
- }
2547
- const { rules } = held;
2548
- const corrected = await correctedGraph({
2549
- canvas: parsed,
2550
- canvasRoot,
2551
- from,
2552
- previous,
2553
- instruction,
2554
- promptNow,
2555
- rules,
2556
- ...opts.relayAlso ? { relayAlso: opts.relayAlso } : {},
2557
- ...opts.keepSizes ? { keepSizes: opts.keepSizes } : {},
2558
- log: (line) => process.stdout.write(`${line}
2559
- `)
2560
- });
2561
- if (!corrected) refusePlateVersion(from);
2562
- grown = corrected.grown;
2563
- parsed = corrected.canvas;
2564
- if (!editInstruction) process.stdout.write(`[fix] correcting the version of run ${from}: ${instruction}
2565
- `);
2566
- }
2567
- if (opts.useVariant !== void 0 && opts.fix === void 0) {
2568
- const sha = opts.useVariant.trim();
2569
- const from = opts.from ?? shown.rendered?.runId;
2570
- grown = from && isStaticAdCanvas(parsed) ? await growOn(from, { kind: "variant", sha256: sha }) : null;
2571
- const url = from && !grown && isStaticAdCanvas(parsed) ? await variantImage(canvasRoot, from, sha, void 0, rolesById(parsed)) : null;
2572
- if (!from || !grown && !url) {
2573
- const message = !isStaticAdCanvas(parsed) ? "--use-variant re-makes the sizes of a static ad; this canvas is not one." : !from ? "--use-variant needs the version the variant belongs to: this creative has no recorded render here. Pass --from <run_id>." : `--use-variant found no variant ${sha} in run ${from}: pass the sha256 of one of that version's variants (never the option's number), and --from with that version's run.`;
2574
- process.stderr.write(`${JSON.stringify({ ok: false, error: { code: "no_such_variant", message } }, null, 2)}
2575
- `);
2576
- process.exit(2);
2577
- }
2578
- if (!grown && isPlateCanvas(parsed)) refusePlateVersion(from);
2579
- if (grown) parsed = grown.canvas;
2580
- else if (url) parsed = rederiveFromVariant(parsed, { url });
2581
- process.stdout.write(`[variant] making every size of run ${from} again from the chosen variant ${sha.slice(0, 12)}
2582
- `);
2583
- }
2584
- let relaidFrom;
2585
- if (opts.regenerate !== void 0 && opts.fix === void 0 && opts.useVariant === void 0 && isStaticAdCanvas(parsed)) {
2586
- const requested2 = opts.regenerate.split(",").map((id) => id.trim());
2587
- const from = opts.from ?? shown.rendered?.runId;
2588
- const sizesOnly = relaysSizesOnly(parsed, regenerateTargets(parsed, requested2).ids);
2589
- grown = from && sizesOnly ? await growOn(from, { kind: "keep" }) : null;
2590
- const url = from && sizesOnly && !grown ? await correctedPicture(canvasRoot, from) ?? (shown.picture?.redrawn && shown.picture.runId === from ? await previousAdImage(canvasRoot, from, void 0, { ...rolesById(parsed), ...relaidPictureRole(parsed) }) : null) : null;
2591
- if (from && grown) {
2592
- parsed = grown.canvas;
2593
- relaidFrom = from;
2594
- process.stdout.write(`[regenerate] re-laying out from the picture run ${from} shows, kept as it was made
2595
- `);
2596
- } else if (from && url && !isPlateCanvas(parsed)) {
2597
- parsed = rederiveFromVariant(parsed, { url });
2598
- relaidFrom = from;
2599
- process.stdout.write(`[regenerate] re-laying out from the picture run ${from} shows (its correction or the person's choice)
2600
- `);
2601
- }
2602
- }
2603
- const plain = fixInstruction === void 0 && opts.useVariant === void 0 && opts.regenerate === void 0 && (opts.extendSizes?.length ?? 0) === 0;
2604
- if (plain && fromRun && !native && isStaticAdCanvas(parsed) && !seriesOf(parsed)) {
2605
- grown = await keptPictureGraph({
2606
- canvas: parsed,
2607
- canvasRoot,
2608
- creativeDir: path9.dirname(filePath),
2609
- fromRun,
2610
- shownPrompt: shown.prompt,
2611
- promptNow
2612
- });
2613
- if (grown) {
2614
- parsed = grown.canvas;
2615
- relaidFrom = fromRun;
2616
- process.stdout.write(`[version] nothing the variants are made from changed: keeping the picture of run ${fromRun}
2617
- `);
2618
- }
2619
- }
2620
- if (plain && plainKeep && !grown && fromRun && !native && isStaticAdCanvas(parsed) && !seriesOf(parsed)) {
2621
- grown = await keptPictureForSizes({
2622
- canvas: parsed,
2623
- canvasRoot,
2624
- creativeDir: path9.dirname(filePath),
2625
- fromRun,
2626
- promptNow,
2627
- rules: held.rules
2628
- });
2629
- if (grown) {
2630
- parsed = grown.canvas;
2631
- relaidFrom = fromRun;
2632
- process.stdout.write(`[version] only the sizes added changed: keeping the picture of run ${fromRun}
2633
- `);
2634
- }
2635
- }
2636
- if (grown) {
2637
- const kept = Object.keys(grown.pinned);
2638
- process.stdout.write(`[version] built on top of the version before: ${kept.join(", ")} kept as they were made (free)
2639
- `);
2640
- }
2641
- const canvasText = prepared.text;
2642
- let regenerate;
2643
- if (opts.regenerate !== void 0) {
2644
- const requested2 = opts.regenerate.split(",").map((id) => id.trim()).filter((id) => id.length > 0);
2645
- const known = new Set(canvasNodeIds(parsed));
2646
- const { ids: resolved, unknown } = regenerateTargets(parsed, requested2);
2647
- if (unknown.length > 0) {
2648
- process.stderr.write(
2649
- `${JSON.stringify(
2650
- {
2651
- ok: false,
2652
- error: {
2653
- code: "unknown_regenerate_node",
2654
- message: `--regenerate names node id(s) not in this canvas: ${unknown.join(", ")}. Known ids: ${[...known].join(", ")}`
2655
- }
2656
- },
2657
- null,
2658
- 2
2659
- )}
2660
- `
2661
- );
2662
- process.exit(2);
2663
- }
2664
- if (resolved.length > 0) {
2665
- regenerate = new Set(resolved);
2666
- process.stdout.write(`[regenerate] forcing fresh this run: ${[...regenerate].join(", ")} (+ downstream)
2667
- `);
2668
- if (opts.relayNote) parsed = withRelayNote(parsed, resolved, opts.relayNote);
2669
- const editFrom = opts.from ?? shown.rendered?.runId;
2670
- if (opts.relayEdits && editFrom) {
2671
- const labels = finalOutputLabelsFromCanvas(parsed);
2672
- const delivered = await previousDelivered(canvasRoot, editFrom, labels?.nodeId ?? "final", labels?.labels ?? [], {
2673
- prefer: "url"
2674
- });
2675
- for (const [id, instruction] of Object.entries(opts.relayEdits)) {
2676
- if (!resolved.includes(id)) continue;
2677
- const last = delivered.find((d) => d.format === formatOfSizeNode(parsed, id))?.path;
2678
- const plan = opts.relayPlans?.[id];
2679
- parsed = plan ? withPlannedRelay(parsed, id, plan) : last ? withRelayEdit(parsed, id, { previous: last, instruction, asked: opts.relayAsked?.[id] ?? [] }) : withRelayNote(parsed, [id], instruction);
2680
- }
2681
- const relaid = resolved.flatMap((id) => formatOfSizeNode(parsed, id) ?? []);
2682
- parsed = withDeliveredSizes(
2683
- parsed,
2684
- Object.fromEntries(delivered.filter((d) => !relaid.includes(d.format)).map((d) => [d.format, d.path]))
2685
- );
2686
- }
2687
- }
2688
- }
2689
- if (opts.extendSizes && opts.extendSizes.length > 0 && isStaticAdCanvas(parsed)) {
2690
- const from = opts.from ?? shown.rendered?.runId;
2691
- if (opts.extendOnly && from) {
2692
- const labels = finalOutputLabelsFromCanvas(parsed);
2693
- const delivered = await previousDelivered(canvasRoot, from, labels?.nodeId ?? "final", labels?.labels ?? [], {
2694
- prefer: "url"
2695
- });
2696
- parsed = withDeliveredSizes(parsed, Object.fromEntries(delivered.map((d) => [d.format, d.path])));
2697
- }
2698
- parsed = withExtendedSizes(parsed, opts.extendSizes);
2699
- process.stdout.write(`[extend] placing ${opts.extendSizes.join(", ")} clear of what covers or cuts it, its margins painted
2700
- `);
2701
- }
2702
- const cacheDir = opts.cacheDir ?? path9.join(canvasRoot, ".cache");
2703
- const engine = createEngineFromEnv({
2704
- cacheDir,
2705
- outputsDir: opts.outputsDir ?? canvasRoot,
2706
- log: (line) => process.stdout.write(`${line}
2707
- `),
2708
- remoteCache: opts.remoteCache
2709
- });
2710
- const validation = await engine.validateDeep(parsed);
2711
- if (!validation.ok) {
2712
- process.stderr.write(
2713
- `${JSON.stringify({ ok: false, error: { code: "validation", issues: validation.issues } }, null, 2)}
2714
- `
2715
- );
2716
- process.exit(2);
2717
- }
2718
- for (const w of await outputRatioWarningsFor(parsed, filePath)) {
2719
- process.stdout.write(`[warn] ${w.code}: ${w.message}
2720
- `);
2721
- }
2722
- const canvasSha = sha256Hex(Buffer.from(canvasText));
2723
- const sourceSha = prepared.sourceSha;
2724
- const client = opts.record === false ? null : buildBackendClient();
2725
- const outputsDir = opts.outputsDir ? path9.resolve(opts.outputsDir) : canvasRoot;
2726
- const { runId, resumed, source, sameSource, concurrentRunId, rendering } = await resolveRunId({
2727
- explicitRunId: opts.runId,
2728
- adoptedRunId: adoptRunId,
2729
- fresh: opts.fresh === true || fixInstruction !== void 0 || opts.useVariant !== void 0 || relaidFrom !== void 0,
2730
- outputsDir,
2731
- canvasPath: filePath,
2732
- sourceSha,
2733
- remote: client && creativeSlug && sourceSha ? { creativeSlug, sourceSha, getActiveRun: (slug, sha) => client.getActiveRun(slug, sha) } : void 0
2734
- });
2735
- const holder = rendering ?? await canvasBusyElsewhere(outputsDir, filePath);
2736
- if (holder) {
2737
- process.stderr.write(
2738
- `${JSON.stringify(
2739
- {
2740
- ok: false,
2741
- error: {
2742
- code: "CONFLICT",
2743
- message: `This canvas is already rendering in another process (run ${holder.runId}, pid ${holder.pid}).`,
2744
- fix: "Wait for that render to finish and use its result instead of starting a second one: two renders of one canvas share a run and overwrite each other. If you started it in the background, read its output when it completes."
2745
- }
2746
- },
2747
- null,
2748
- 2
2749
- )}
2750
- `
2751
- );
2752
- process.exit(2);
2753
- }
2754
- const viewerUsage = [];
2755
- const viewerCheck = creativeSlug && isStaticAdCanvas(parsed) ? await viewerCheckBeforeRender({
2756
- creativeDir: path9.dirname(filePath),
2757
- cacheDir,
2758
- slug: creativeSlug,
2759
- skip: viewerCheckSkip({
2760
- fix: opts.fix !== void 0,
2761
- useVariant: opts.useVariant !== void 0,
2762
- relaid: relaidFrom !== void 0,
2763
- autoFixRound: opts.autoFixRound ?? 0,
2764
- resumed: resumed && sameSource === true,
2765
- asked: opts.skipViewerCheck === true
2766
- }),
2767
- spent: viewerChecksSpent(await readTurnRenders(turnCache), turnId, creativeSlug),
2768
- lookups: liveViewerLookups(path9.dirname(canvasRoot)),
2769
- model: VIEWER_CHECK_MODEL,
2770
- ask: gatewayViewerModel(VIEWER_CHECK_MODEL, (usage) => viewerUsage.push(usage)),
2771
- judge: jevReadJudge((usage) => viewerUsage.push(usage))
2772
- }) : null;
2773
- for (const line of viewerCheck?.lines ?? []) process.stdout.write(`${line}
2774
- `);
2775
- await holdUnbilledSpend(cacheDir, viewerUsage);
2776
- if (viewerCheck?.failure) {
2777
- if (creativeSlug && turnId && viewerCheck.failure.error.code === "viewer_check_failed") {
2778
- await updateTurnRenders(turnCache, (ledger) => recordViewerFail(ledger, turnId, creativeSlug));
2779
- }
2780
- process.stderr.write(`${JSON.stringify(viewerCheck.failure, null, 2)}
2781
- `);
2782
- process.exit(2);
2783
- }
2784
- if (resumed) {
2785
- process.stdout.write(
2786
- `[resume] continuing interrupted run ${runId}${source === "remote" ? " (adopted from run history)" : ""} \u2014 in-flight jobs re-attach, cached nodes skip
2787
- `
2788
- );
2789
- }
2790
- if (concurrentRunId) {
2791
- process.stderr.write(
2792
- `[concurrent] this canvas appears to be running elsewhere right now (run ${concurrentRunId}) \u2014 starting a separate run; pass --run-id ${concurrentRunId} to adopt it instead
2793
- `
2794
- );
2795
- }
2796
- const abort = new AbortController();
2797
- let abortedBy = null;
2798
- for (const signalName of ["SIGINT", "SIGTERM"]) {
2799
- process.once(signalName, () => {
2800
- abortedBy = signalName;
2801
- process.stderr.write(`[interrupt] ${signalName} received \u2014 flushing a resumable snapshot (repeat to force-quit)
2802
- `);
2803
- abort.abort(new Error(`aborted by ${signalName}`));
2804
- });
2805
- }
2806
- const inFlight = await markRunInFlight(outputsDir, filePath, runId, sourceSha);
2807
- if (!canvasHeld) {
2808
- const held2 = await markCanvasBusy(outputsDir, filePath, runId);
2809
- canvasHeld = true;
2810
- process.once("exit", held2.release);
2811
- }
2812
- const clearMarker = () => {
2813
- inFlight.stop();
2814
- return clearRunMarker(outputsDir, filePath, inFlight.token);
2815
- };
2816
- const snapshot = client && creativeSlug ? await uploadRunSnapshot(client, {
2817
- canvasPath: filePath,
2818
- raw: canvasText,
2819
- creativeSlug,
2820
- parsed,
2821
- previous: (await readRenderState(canvasRoot, creativeSlug)).snapshot
2822
- }) : null;
2823
- if (snapshot && creativeSlug) await recordSnapshot(canvasRoot, creativeSlug, snapshot);
2824
- const graphUrl = client && creativeSlug && isStaticAdCanvas(parsed) ? await uploadRunGraph(client, parsed) : null;
2825
- const recordMeta = {
2826
- creativeSlug,
2827
- canvasPath: path9.relative(path9.dirname(canvasRoot), filePath) || void 0,
2828
- canvasSha,
2829
- // The fingerprint the dashboard compares against the current source to flag
2830
- // "edited since last render": the same `computeSourceSha` the edit-sync posts,
2831
- // taken after the preflight wrote the projected graph, so the two are comparable.
2832
- sourceSha,
2833
- chatId: optionalChatId(),
2834
- canvasSnapshotUrl: snapshot?.url,
2835
- ...graphUrl ? { graphUrl } : {},
2836
- ...newAsk ? { newAsk: true } : {},
2837
- ...creativeSlug ? { rules: { digest: rulesDigest(held.rules), ids: held.rules.slice(0, RECORDED_RULE_IDS).map((r) => r.id) } } : {}
2838
- };
2839
- if (client) {
2840
- const registered = await postInitialRunRecord(client, buildInitialRunRecord(runId, recordMeta));
2841
- if (!registered) {
2842
- process.stderr.write(
2843
- "[warn] run start not registered \u2014 this run stays invisible to the dashboard until a later progress post lands, and cannot be resumed from another workspace\n"
2844
- );
2845
- }
2846
- }
2847
- const leadRun = seriesOf(parsed)?.run_id;
2848
- if (creativeSlug && leadRun) await recordSeriesLeadRun(canvasRoot, creativeSlug, leadRun);
2849
- const record = client ? (payload) => client.recordRun(payload) : null;
2850
- const finalLabels = finalOutputLabelsFromCanvas(parsed) ?? void 0;
2851
- const progress = record ? new RunProgressTracker(runId, recordMeta, finalLabels) : null;
2852
- const poster = record ? new RunRecordPoster(record) : null;
2853
- const flushBilled = async (p, payload) => {
2854
- const failure = await sendBillingSpend(cacheDir, payload.reviewUsage ?? [], () => p.flush(payload));
2855
- if (failure !== null) process.stderr.write(`[warn] run record not persisted (${failure})
2856
- `);
2857
- return failure;
2858
- };
2859
- if (progress && poster) {
2860
- poster.startKeepalive(() => progress.hasPlan() ? progress.snapshot() : null);
2861
- }
2862
- const frameUrls = [];
2863
- let next = null;
2864
- let cached = false;
2865
- let recordRender = (_cached) => Promise.resolve();
2866
- const madeHere = grown ? madeThisRun({ canvas: parsed, pinned: grown.pinned }) : parsed;
2867
- const readerSpend = holdWhenSettled(cacheDir, (run, outputs) => prefilterSpend(madeHere, { [run.node_id]: outputs }, [run]));
2868
- const isFrameNode = (id) => parsed.nodes?.find((n) => n.id === id)?.type === "image_generate";
2869
- try {
2870
- const policy = opts.cachePolicy ?? "read_write";
2871
- const result = await engine.run(parsed, {
2872
- run_id: runId,
2873
- signal: abort.signal,
2874
- cache_policy: policy,
2875
- ...stopBeforeKinds(opts.until) ? { stop_before_kinds: stopBeforeKinds(opts.until) } : {},
2876
- concurrency: resolveConcurrency(opts.concurrency, process.env.BAKER_CANVAS_CONCURRENCY),
2877
- regenerate,
2878
- ...client ? { has_credits: () => client.hasCredits(abort.signal) } : {},
2879
- ...grown ? { pinned: grown.pinned } : {},
2880
- // A creative's render record says whether this is its first render, which no cache read can.
2881
- ...creativeSlug ? { rendered_before: shown.rendered !== void 0 } : {},
2882
- review_credits: staticReviewCredits(parsed),
2883
- // Always set, because the frame collector has to run whether or not this run is
2884
- // reporting progress to a backend — without it a checkpoint stops with nothing to
2885
- // show, which is the only thing a checkpoint is for.
2886
- onProgress: (event) => {
2887
- if (event.kind === "node_settled") readerSpend.settled(event.run, event.outputs);
2888
- if (event.kind === "node_settled" && isFrameNode(event.run.node_id)) {
2889
- for (const out of Object.values(event.outputs ?? {})) {
2890
- const url = out?.url;
2891
- if (url) frameUrls.push(url);
2892
- }
2893
- }
2894
- if (progress && poster) {
2895
- progress.apply(event);
2896
- if (progress.hasPlan()) poster.enqueue(progress.snapshot());
2897
- }
2898
- }
2899
- });
2900
- cached = result.node_runs.every((r) => r.cached);
2901
- await clearMarker();
2902
- const beforeRunId = shown.rendered?.runId;
2903
- if (creativeSlug) {
2904
- const idea = await readIdeaAnchor(path9.dirname(filePath));
2905
- await recordRendered(canvasRoot, creativeSlug, sourceSha, result.run_id, {
2906
- canvas: filePath,
2907
- ...promptNow ? { prompt: promptNow } : {},
2908
- ...idea ? { anchor: idea.anchor, idea: anchorLines(idea.view) } : {},
2909
- ...seriesOf(parsed)?.run_id ? { seriesLeadRun: seriesOf(parsed)?.run_id } : {},
2910
- picture: pictureRecord(result.run_id, {
2911
- chose: opts.useVariant !== void 0,
2912
- of: shown.picture,
2913
- from: fromRun,
2914
- keeps: fixInstruction !== void 0 || relaidFrom !== void 0,
2915
- redrawn: opts.autoFixKind === "regenerate"
2916
- })
2917
- });
2918
- }
2919
- const keepRuns = opts.keepRuns;
2920
- if (keepRuns !== void 0 && Number.isFinite(keepRuns)) {
2921
- await pruneOldRuns(outputsDir, keepRuns, result.run_id, (line) => process.stdout.write(`${line}
2922
- `));
2923
- }
2924
- const reviewable = videoPathFromOutput(result.output);
2925
- await readerSpend.drained();
2926
- const reviewUsage = poster ? await takeUnbilledSpend(cacheDir) : [];
2927
- const videoRules = held.rules;
2928
- const videoAsked = reviewable ? {
2929
- windows: sceneWindowsOnDelivered(await sceneWindowsBeside(filePath), result.output),
2930
- context: await reviewContextBeside(filePath),
2931
- rules: videoRules.map((r) => r.text),
2932
- brief: opts.brief?.trim() || void 0
2933
- } : null;
2934
- const review = reviewable && videoAsked ? await rememberedVideoReview(
2935
- { cacheDir, video: reviewable, asked: videoAsked },
2936
- () => reviewRenderedVideo({
2937
- video: reviewable,
2938
- windows: videoAsked.windows,
2939
- ...videoAsked.context,
2940
- rules: videoRules,
2941
- checkStills: (stills, labels) => reviewAgainstRules({ stills, formats: labels, rules: videoRules, onSpend: (usage) => reviewUsage.push(usage) }),
2942
- brief: videoAsked.brief,
2943
- onSpend: (usage) => reviewUsage.push(usage)
2944
- })
2945
- ) : null;
2946
- const brandKit = reviewable ? null : await readStaticBrandKit(await findBrandRoot(path9.dirname(filePath)) ?? process.cwd());
2947
- const runShape = {
2948
- fix: fixInstruction !== void 0,
2949
- useVariant: opts.useVariant !== void 0,
2950
- sizesOnly: relaidFrom !== void 0 || opts.extendOnly === true || regenerate !== void 0 && relaysSizesOnly(parsed, [...regenerate])
2951
- };
2952
- const staticReview = reviewable ? null : await reviewStaticRun({
2953
- parsed: madeHere,
2954
- output: result.output,
2955
- outputsByNode: result.outputs_by_node,
2956
- onSpend: (usage) => reviewUsage.push(usage),
2957
- viewer: viewerCheck?.viewer ?? null,
2958
- ...brandKit?.name ? { brandName: brandKit.name } : {},
2959
- ...brandKit?.lockup ? { lockup: brandKit.lockup } : {},
2960
- // Only a new picture is compared with the last one: an edit, a fix, a chosen option or a
2961
- // re-layout keeps it on purpose, and would read as "this retry changed nothing".
2962
- ...beforeRunId && beforeRunId !== result.run_id && rendersNewPicture(runShape) ? { previous: await previousDelivered(canvasRoot, beforeRunId, finalLabels?.nodeId ?? "final", finalLabels?.labels ?? []) } : {},
2963
- // A size this round did not touch keeps the last round's verdict: the review's second look at it is no defect of the round.
2964
- ...opts.settledReview && opts.from ? {
2965
- settled: {
2966
- review: opts.settledReview,
2967
- images: await previousDelivered(canvasRoot, opts.from, finalLabels?.nodeId ?? "final", finalLabels?.labels ?? [])
2968
- }
2969
- } : {}
2970
- });
2971
- const blockingNow = (staticReview?.review ?? []).filter((f) => f.severity === "blocking").map((f) => f.what);
2972
- const stillThere = fixInstruction !== void 0 && staticReview?.review ? persistingDefects(memory.blocking, staticReview.review) : [];
2973
- if (creativeSlug && staticReview) {
2974
- await recordReviewOutcome(
2975
- canvasRoot,
2976
- creativeSlug,
2977
- {
2978
- blocking: blockingNow,
2979
- ...fixInstruction !== void 0 ? { lastFix: { instruction: fixInstruction.trim(), blocking: stillThere } } : {},
2980
- ...remakeOutcome ?? {}
2981
- },
2982
- // Counted against the spec it drew, unless replayed whole from the cache: that renders and pays nothing (BAKER-1645).
2983
- cached ? void 0 : { sourceSha: prepared.sourceSha, runId: result.run_id }
2984
- );
2985
- } else if (creativeSlug && remakeOutcome) {
2986
- await recordRemake(canvasRoot, creativeSlug, void 0);
2987
- }
2988
- const costHint = staticReview ? runCostHint(result.stats, paidFor(runShape)) : null;
2989
- const corrected = opts.autoFixed ?? [];
2990
- const seriesRoot = creativeSlug && staticReview ? findWorkspaceRoot(path9.dirname(filePath)) : null;
2991
- const seriesHints = seriesRoot && creativeSlug ? seriesRunHints(creativeSlug, {
2992
- leads: await seriesLeadsAbove(seriesRoot, creativeSlug),
2993
- members: await seriesMembers(seriesRoot, creativeSlug)
2994
- }) : [];
2995
- const unremoved = stillThere.length > 0 ? [
2996
- `The fix did not remove ${stillThere.length === 1 ? "this" : "these"}: ${stillThere.join(" | ")}. The same instruction will not run again; change the approach (edit prompt.json so it cannot happen, or make only that size again with \`--regenerate\` on its size node).`
2997
- ] : [];
2998
- const unreviewed = !reviewable && !staticReview ? unreviewedHint(result.output) : null;
2999
- const reviewHints = staticReview ? [
3000
- ...corrected.length > 0 ? [
3001
- `Corrected automatically before this result, ${corrected.length} more render${corrected.length === 1 ? "" : "s"}: ${corrected.join(" Then ")} What follows is the review of the corrected version.`
3002
- ] : [],
3003
- ...staticReview.hints,
3004
- ...costHint ? [costHint] : [],
3005
- ...seriesHints,
3006
- ...unremoved
3007
- ] : reviewable ? review === null ? [RENDER_REVIEW_UNAVAILABLE] : review.length === 0 ? ["Reviewed the finished video frame by frame \u2014 nothing to report."] : [
3008
- `Reviewed the finished video and found ${review.length} thing${review.length === 1 ? "" : "s"} to fix. Show the user what is wrong before you show them the ad.`,
3009
- ...review.map((f) => `${f.severity === "blocking" ? "Must fix" : "Should fix"} \u2014 ${f.what}`),
3010
- ...review.some((f) => f.scene) ? [
3011
- `Anything about the mark or the closing card is a composition fix, not a re-render: both are drawn as HTML by the caption composition, so editing it and re-running re-renders only that pass \u2014 the clips are cached and no generation is paid for again. Fix them, then re-run: edit the \`show\` of the scene files named above \u2014 a shot with a person handling equipment is where limbs and objects go wrong, so widen it, move the hands out of frame, or drop the person from that beat. Re-running re-renders only the scenes you edited; everything else comes from the cache (this run: ${result.stats?.cached_nodes ?? 0} of ${result.stats?.total_nodes ?? 0} nodes were cached).`
3012
- ] : []
3013
- ] : unreviewed ? [unreviewed] : [];
3014
- const verticalHints = verticalRelayoutHints(madeHere, result.outputs_by_node);
3015
- const hints = [...runNotes, ...verticalHints, ...reviewHints];
3016
- const brief = staticReview ? [
3017
- ...runNotes,
3018
- ...corrected.length > 0 ? [`Corrected automatically before this result, ${corrected.length} more render${corrected.length === 1 ? "" : "s"}; what follows is the review of the corrected version.`] : [],
3019
- ...verticalHints,
3020
- ...verdictBrief(staticReview.verdict, sizeShapeOf(madeHere)),
3021
- ...staticReview.notes,
3022
- ...seriesHints,
3023
- ...unremoved
3024
- ] : reviewable && review !== null && review.length > 0 ? [...runNotes, ...verticalHints, ...reviewHints.slice(0, 1)] : void 0;
3025
- const lead = (hint) => {
3026
- hints.unshift(hint);
3027
- brief?.unshift(hint);
3028
- };
3029
- const letThrough = [...prepared.warnings, ...viewerCheck?.warnings ?? [], ...takeCheckWarnings(result.run_id)].map(asReviewNote);
3030
- const reviewed = staticReview ? staticReview.review : review;
3031
- const findings = reviewed ? [...reviewed, ...letThrough] : null;
3032
- const ready = staticReview ? staticReview.verdict === "ready" || staticReview.verdict === "ready_with_notes" : review !== null && !review.some((f) => f.severity === "blocking");
3033
- const definitionStatus = ready && creativeSlug ? await advanceDefinitionStatus(path9.join(path9.dirname(filePath), "_definition.md"), "rendered") : null;
3034
- let recordError = null;
3035
- if (poster) {
3036
- const unrecorded = await flushBilled(
3037
- poster,
3038
- // `review` is null only when nobody looked (no key, no ffmpeg, unreadable video);
3039
- // an empty array is a render that was reviewed and came back clean. The record
3040
- // has to keep those apart.
3041
- buildRunRecord(
3042
- result,
3043
- {
3044
- ...recordMeta,
3045
- ...findings ? { review: findings } : {},
3046
- ...reviewUsage.length > 0 ? { reviewUsage } : {},
3047
- // A static ad that failed a check is never shown as a version (the backend reads both).
3048
- ...staticReview ? { verdict: staticReview.verdict, presentable: staticReview.verdict !== "needs_fixes" } : {}
3049
- },
3050
- progress?.planInfo(),
3051
- finalLabels
3052
- )
3053
- );
3054
- if (unrecorded !== null) {
3055
- recordError = `This version was not saved in Baker (${unrecorded}). Run it again with \`--run-id ${result.run_id}\` before showing it or recording feedback on it.`;
3056
- lead(
3057
- `This version was not saved in Baker (${unrecorded}): it does not appear in the chat or in Creatives, and the person's feedback cannot be recorded on it. Run it again with \`--run-id ${result.run_id}\` before showing it \u2014 what was already made comes from the cache.`
3058
- );
3059
- }
3060
- }
3061
- const round = opts.autoFixRound ?? 0;
3062
- const keepPicture = opts.useVariant !== void 0 || opts.autoFixKeepPicture === true || (fixInstruction !== void 0 || relaidFrom !== void 0) && keepsChosen(shown.picture, fromRun);
3063
- const attempts = staticReview?.review ? [
3064
- ...opts.autoFixAttempts ?? [],
3065
- {
3066
- runId: result.run_id,
3067
- review: staticReview.review,
3068
- ...nodesWithRole(parsed, LOGO_COMPOSITE_ROLE).length > 0 ? { logoOnFile: true } : {}
3069
- }
3070
- ] : [];
3071
- const base = attempts.length > 0 ? correctFrom(attempts) : null;
3072
- const reverted = base !== null && base.runId !== result.run_id;
3073
- const before = !reverted && opts.autoFixKind ? opts.autoFixAttempts?.find((a) => a.runId === opts.from)?.review : void 0;
3074
- const choice = staticReview && base && opts.autoFix !== false ? (
3075
- // The graph the next round re-prepares (the file's), never this run's rewrite of it: a fix or a
3076
- // re-layout takes the variants out of `parsed`, and only the file's graph can draw a new picture.
3077
- autoFixChoice(prepared.canvas, base.review, {
3078
- round,
3079
- keepPicture,
3080
- // Gone back to an earlier attempt: what this round did and left is no longer the picture's.
3081
- ...!reverted && opts.autoFixKind ? { previous: opts.autoFixKind } : {},
3082
- ...!reverted && fixInstruction !== void 0 ? { lastFix: { instruction: fixInstruction.trim(), blocking: stillThere } } : {},
3083
- tooFar: reverted ? [] : placedTooFar(parsed, result.outputs_by_node),
3084
- fixedBefore: base.fixedBefore,
3085
- ...opts.autoFixPlanned ? { plannedBefore: opts.autoFixPlanned } : {},
3086
- ...before ? { before } : {},
3087
- // What the round this one corrected placed: placing a size for the first time is a new approach.
3088
- ...before && opts.extendSizes ? { placedBefore: opts.extendSizes } : {},
3089
- // A drawn logo an earlier attempt, or the version this --fix corrected, already had rejected:
3090
- // a round after it did not mend it, whatever its match read then.
3091
- logoMissedBefore: logoMissesBefore(
3092
- attempts,
3093
- base.runId,
3094
- !reverted && fixInstruction !== void 0 ? memory.blocking : []
3095
- )
3096
- })
3097
- ) : null;
3098
- let step = choice?.step ?? null;
3099
- if (step && reverted && base) {
3100
- process.stdout.write(
3101
- `[autofix] run ${result.run_id} came out worse than run ${base.runId}: the next correction starts from run ${base.runId}
3102
- `
3103
- );
3104
- }
3105
- const leftAlone = choice?.unmended ?? [];
3106
- if (leftAlone.length > 0) {
3107
- process.stdout.write(
3108
- `[autofix] stopped: round ${round} left the same problems as the version it corrected; another round of its kind would pay for them again
3109
- `
3110
- );
3111
- lead(
3112
- `The automatic correction stopped: its last round left exactly the problems of the version it corrected (${leftAlone.join(" | ")}). ${unmendedSource(promptOnDisk)} Running the same correction again, or making the same size again from the same prompt.json, repeats them. Change the approach: edit prompt.json so the problem cannot happen (shorter words, a line moved or dropped, a different position), or ask for new options with \`--regenerate static_variants\`.`
3113
- );
3114
- }
3115
- const outOfTime = step !== null && !roundFitsRun(Date.now() - startedAt, step.kind);
3116
- if (outOfTime) {
3117
- process.stdout.write(
3118
- `[autofix] not started: this render has had its time (${Math.round((Date.now() - startedAt) / 6e4)} min). It stands as it is.
3119
- `
3120
- );
3121
- lead(
3122
- "This render's automatic corrections stopped here. Correct what is left with a run of your own now (`--fix \"<what to change>\"`, or `--regenerate format_<size>` / `adapt_<size>` for one size): it has its own time. Tell the person the ad's state, never how many times it was made or corrected, nor any time or try used up."
3123
- );
3124
- step = null;
3125
- }
3126
- if (!step && reverted && base) {
3127
- lead(
3128
- `Run ${base.runId} has fewer problems than this one: correct that one, never this one (add \`--from ${base.runId}\` to a --fix).`
3129
- );
3130
- }
3131
- let respecced = null;
3132
- const briefFindings = step?.kind === "respec" ? step.findings : step?.kind === "regenerate" ? step.brief ?? [] : [];
3133
- const lost = [...new Set((base?.review ?? []).filter(lostVital).flatMap((f) => f.kind?.job ? [f.kind.job] : []))];
3134
- if (briefFindings.length > 0) {
3135
- const target = staticReviewTargets(parsed, result.output);
3136
- const spent2 = [];
3137
- respecced = target ? await repairSpec({
3138
- promptPath: target.promptPath,
3139
- findings: briefFindings,
3140
- held,
3141
- ...lost.length > 0 ? { restore: lost } : {},
3142
- ...target.images[0] ? { image: target.images[0].path } : {},
3143
- onSpend: (usage) => spent2.push(usage)
3144
- }) : null;
3145
- if (spent2.length > 0) await holdUnbilledSpend(cacheDir, spent2);
3146
- if (step?.kind === "respec" && respecced === null) step = null;
3147
- }
3148
- if (step && stopsWithoutRepair(base?.review ?? [], briefFindings, respecced !== null)) {
3149
- process.stdout.write(
3150
- "[autofix] stopped: what made the proven ad win is gone and no correction of prompt.json may restore it\n"
3151
- );
3152
- lead(
3153
- "The automatic correction stopped: what made the proven ad win is gone and no correction of prompt.json may restore it, so a new picture from the same plan would come back without it."
3154
- );
3155
- step = null;
3156
- }
3157
- let logoSwitch = null;
3158
- if (step && (step.kind === "fix" || step.kind === "regenerate") && step.logoOnFile) {
3159
- const switched = await switchToLogoFile(filePath).catch(() => ({ placed: false, recorded: false }));
3160
- if (switched.placed) logoSwitch = { sizes: step.logoOnFile, recorded: switched.recorded };
3161
- else step = null;
3162
- }
3163
- const persisted = step && creativeSlug && respecced === null && !logoSwitch ? spentReasons((await readRenderState(canvasRoot, creativeSlug)).reasons, prepared.sourceSha) : [];
3164
- if (persisted.length > 0) {
3165
- process.stdout.write(
3166
- `[autofix] stopped: ${RENDERS_PER_REASON} renders of this spec ended with the same blocking problem; another would pay for it again
3167
- `
3168
- );
3169
- lead(
3170
- `The automatic correction stopped: ${RENDERS_PER_REASON} renders of this ad as prompt.json describes it ended with ${persisted.length === 1 ? "this problem" : "these problems"} (${persisted.join(" | ")}), and another render of the same spec is refused. Change the spec in prompt.json so ${persisted.length === 1 ? "it" : "they"} cannot happen (shorter words, a line moved or dropped, a different position, a size left out of \`formats\`, or less of the reference kept), then run again.`
3171
- );
3172
- step = null;
3173
- }
3174
- const files = finalFiles(result.output, finalLabels?.labels);
3175
- const printed = runResult(
3176
- {
3177
- outputs_dir: result.outputs_dir,
3178
- output: result.output,
3179
- stats: result.stats,
3180
- // The agent reads a finding's words; the review model's typed fields are the correction's.
3181
- // Null is a video or a picture nobody could look at: its verdict is not_reviewed.
3182
- ...reviewed ? { review: [...reviewed.map(({ kind: _kind, ...finding }) => finding), ...letThrough] } : reviewable || unreviewed ? { review: null } : {},
3183
- ...staticReview?.judge?.length ? { judge: staticReview.judge } : {},
3184
- ...definitionStatus === "updated" ? { definition_status: "rendered" } : {},
3185
- hints,
3186
- ...brief ? { brief } : {},
3187
- // A static ad whose review found a blocking problem is finished but NOT ready.
3188
- ...staticReview ? { verdict: staticReview.verdict } : {},
3189
- ...leftAlone.length > 0 || persisted.length > 0 ? { stopped: "defect_persists" } : {},
3190
- ...recordError !== null ? { version_recorded: false, record_error: recordError } : {},
3191
- run_id: result.run_id,
3192
- files,
3193
- previews: await previewsOf(files, result.outputs_dir)
3194
- },
3195
- { full: opts.full === true }
3196
- );
3197
- await keepRunResult(result.outputs_dir, {
3198
- verdict: printed.verdict,
3199
- review: printed.review,
3200
- hints,
3201
- ...staticReview?.judge?.length ? { judge: staticReview.judge } : {}
3202
- });
3203
- let relayPlans = {};
3204
- if (step?.kind === "relayout" && step.planned && !reverted) {
3205
- const spent2 = [];
3206
- relayPlans = await bandRelayPlans(parsed, step.planned, result.outputs_by_node, (usage) => spent2.push(usage));
3207
- if (spent2.length > 0) await holdUnbilledSpend(cacheDir, spent2);
3208
- }
3209
- const laidOut = Object.keys(relayPlans).flatMap((id) => formatOfSizeNode(parsed, id) ?? []);
3210
- const planned = plannedFormats(parsed, step, { reverted });
3211
- if (step) {
3212
- const did = logoSwitch ? `The logo the model drew was still not the brand's on ${logoSwitch.sizes.join(" and ")} after a correction, so the brand's own logo file is now placed on every size of this ad${logoSwitch.recorded ? ", and on this brand's next ads (src/brand/tokens.json)" : ""}.` : step.kind === "respec" ? `The spec was corrected: ${respecced}` : step.kind === "fix" ? `The picture was corrected for: ${step.instruction.replace(/^[^:]*: /, "")}` : step.kind === "regenerate" && relaysSizesOnly(parsed, regenerateTargets(parsed, step.ids).ids) ? `The ${step.ids.join(" and ")} ${step.ids.length === 1 ? "was" : "were"} made again from the same chosen picture, avoiding: ${step.note.replace(/^[^:]*: /, "")}` : step.kind === "regenerate" ? `${respecced ? `The spec was corrected (${respecced}) and a` : "A"} new picture was made, avoiding: ${step.note.replace(/^[^:]*: /, "")}` : step.kind === "extend" ? `The ${step.sizes.join(" and ")} ${step.sizes.length === 1 ? "was" : "were"} placed clear of what covers or cuts ${step.sizes.length === 1 ? "it" : "them"}, the margins painted to match.` : laidOut.length > 0 ? `The ${laidOut.join(" and ")} was laid out again so its words, logo and button sit clear of what the app's interface covers.` : `The ${step.ids.map((id) => formatOfSizeNode(parsed, id) ?? id).join(" and ")} was edited: ${Object.values(step.edits).join(" ")}`;
3213
- process.stdout.write(
3214
- `[autofix] round ${round + 1} of ${AUTO_FIX_ROUNDS}: run ${result.run_id} needs fixes. ${did} If the correction fails, run ${result.run_id} stands as the latest version: ${JSON.stringify(files)}
3215
- `
3216
- );
3217
- next = {
3218
- file: filePath,
3219
- cacheDir: opts.cacheDir,
3220
- outputsDir: opts.outputsDir,
3221
- concurrency: opts.concurrency,
3222
- keepRuns: opts.keepRuns,
3223
- remoteCache: opts.remoteCache,
3224
- record: opts.record,
3225
- brief: opts.brief,
3226
- full: opts.full,
3227
- cachePolicy: opts.cachePolicy,
3228
- fresh: true,
3229
- from: base?.runId ?? result.run_id,
3230
- autoFixRound: round + 1,
3231
- autoFixAttempts: attempts,
3232
- autoFixStartedAt: startedAt,
3233
- autoFixed: [...corrected, did],
3234
- autoFixKind: step.kind,
3235
- ...opts.autoFixPlanned || planned.length > 0 ? { autoFixPlanned: [...opts.autoFixPlanned ?? [], ...planned] } : {},
3236
- ...base ? { settledReview: [...base.review] } : {},
3237
- ...keepPicture ? { autoFixKeepPicture: true } : {},
3238
- ...step.kind === "fix" ? {
3239
- fix: step.instruction,
3240
- ...step.relay ? { relayAlso: step.relay } : {},
3241
- ...step.keep ? { keepSizes: step.keep } : {},
3242
- ...step.extend ? { extendSizes: step.extend } : {}
3243
- } : step.kind === "extend" ? { extendSizes: step.sizes, extendOnly: true } : step.kind === "relayout" ? {
3244
- ...step.extend ? { extendSizes: step.extend } : {},
3245
- regenerate: step.ids.join(","),
3246
- relayEdits: step.edits,
3247
- ...Object.keys(relayPlans).length > 0 ? { relayPlans } : {},
3248
- // A second edit of a size is told what the first asked for.
3249
- ...opts.autoFixKind === "relayout" && opts.relayEdits ? { relayAsked: Object.fromEntries(Object.entries(opts.relayEdits).map(([id, asked]) => [id, [asked]])) } : {}
3250
- } : step.kind === "regenerate" ? { regenerate: step.ids.join(","), relayNote: step.note, ...step.extend ? { extendSizes: step.extend } : {} } : {}
3251
- };
3252
- } else {
3253
- if (brief && opts.full !== true) for (const hint of hints) process.stderr.write(`[hint] ${hint}
3254
- `);
3255
- process.stdout.write(`${JSON.stringify(printed, null, 2)}
3256
- `);
3257
- if (creativeSlug && turnId && staticReview) {
3258
- const verdict = staticReview.verdict;
3259
- recordRender = (chainCached) => updateTurnRenders(turnCache, (ledger) => recordTurnRender(ledger, turnId, creativeSlug, verdict, { cached: chainCached }));
3260
- }
3261
- }
3262
- } catch (e) {
3263
- const failedPayload = async (message) => {
3264
- await readerSpend.drained();
3265
- const payload = progress?.hasPlan() ? progress.failedSnapshot(message) : buildFailedRunRecord(runId, message, recordMeta);
3266
- const held2 = await takeUnbilledSpend(cacheDir);
3267
- return held2.length > 0 ? { ...payload, reviewUsage: held2 } : payload;
3268
- };
3269
- if (e instanceof RunAbortedError && e.reason === "signal") {
3270
- const message = `Interrupted${abortedBy ? ` by ${abortedBy}` : ""} \u2014 re-run \`baker canvas run\` to resume; in-flight jobs re-attach, completed nodes come from the cache.`;
3271
- if (poster) await flushBilled(poster, { ...await failedPayload(message), interrupted: true });
3272
- process.stderr.write(`${JSON.stringify({ ok: false, error: { code: "interrupted", message } }, null, 2)}
3273
- `);
3274
- process.exit(abortedBy === "SIGTERM" ? 143 : 130);
3275
- }
3276
- if (e instanceof RunAbortedError && e.reason === "checkpoint") {
3277
- await clearMarker();
3278
- if (poster) {
3279
- await flushBilled(poster, {
3280
- ...await failedPayload(`Frames ready to review before the clips. Resume with --run-id ${runId}.`),
3281
- status: "awaiting_approval"
3282
- });
3283
- }
3284
- const frames = frameUrls;
3285
- process.stdout.write(
3286
- `${JSON.stringify(
3287
- {
3288
- ok: true,
3289
- data: { stopped: "frames", runId, frames },
3290
- hints: [
3291
- `${e.message}`,
3292
- frames.length > 0 ? `Review these ${frames.length} frames against the brief and Brand, fix any defects, then resume immediately with the same run id. Wait for the user only when they explicitly requested storyboards only or a review before continuing; do not ask them to choose a version.` : "No frame outputs were captured \u2014 carry on rather than blocking on nothing.",
3293
- `Carry on with: baker canvas run ${filePath} --run-id ${runId}`
3294
- ]
3295
- },
3296
- null,
3297
- 2
3298
- )}
3299
- `
3300
- );
3301
- process.exit(0);
3302
- }
3303
- await clearMarker();
3304
- if (e instanceof ValidationError) {
3305
- process.stderr.write(
3306
- `${JSON.stringify({ ok: false, error: { code: "validation", issues: e.issues } }, null, 2)}
3307
- `
3308
- );
3309
- process.exit(2);
3310
- }
3311
- if (e instanceof LayerExecutionError) {
3312
- const failures = e.failures.map((f) => ({ node_id: f.nodeId, message: describeFailureReason(f.reason) }));
3313
- const failure2 = runFailure(e, runId);
3314
- if (poster) await flushBilled(poster, { ...await failedPayload(e.message), ...resumableFor(failure2) });
3315
- process.stderr.write(`${JSON.stringify({ ok: false, error: { ...failure2, message: e.message, failures } }, null, 2)}
3316
- `);
3317
- process.exit(1);
3318
- }
3319
- const msg = e instanceof Error ? e.message : String(e);
3320
- const failure = runFailure(e, runId);
3321
- if (poster) await flushBilled(poster, { ...await failedPayload(msg), ...resumableFor(failure) });
3322
- process.stderr.write(`${JSON.stringify({ ok: false, error: { ...failure, message: msg } }, null, 2)}
3323
- `);
3324
- process.exit(1);
3325
- }
3326
- return { cached, next, record: recordRender };
3327
- }
3328
- function runFailure(e, runId) {
3329
- const code = runFailureCode(e);
3330
- const fix = runFailureFix(code, runId);
3331
- return fix ? { code, fix } : { code };
3332
- }
3333
- function resumableFor(failure) {
3334
- return failure.fix ? { resumable: true } : {};
3335
- }
3336
- function canvasNodeIds(parsed) {
3337
- const nodes = parsed?.nodes;
3338
- if (!Array.isArray(nodes)) return [];
3339
- return nodes.map((node) => node?.id).filter((id) => typeof id === "string");
3340
- }
3341
- function buildBackendClient() {
3342
- try {
3343
- const creds = requireCredentialsFromEnv();
3344
- return new BackendClient({ baseUrl: creds.url, apiKey: creds.apiKey });
3345
- } catch (e) {
3346
- const msg = e instanceof Error ? e.message : String(e);
3347
- process.stderr.write(`[warn] run history disabled (${msg})
3348
- `);
3349
- return null;
3350
- }
3351
- }
3352
- var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
3353
- function refusedForGood(e) {
3354
- if (!(e instanceof BackendHttpError) || !("status" in e.detail)) return false;
3355
- const { status } = e.detail;
3356
- return status >= 400 && status < 500 && status !== 408 && status !== 429;
3357
- }
3358
- async function postInitialRunRecord(client, payload, wait = sleep) {
3359
- for (let attempt = 0; attempt < 3; attempt++) {
3360
- try {
3361
- await client.recordRun(payload);
3362
- return true;
3363
- } catch (e) {
3364
- if (refusedForGood(e)) return false;
3365
- if (attempt < 2) await wait(500 * 2 ** attempt);
3366
- }
3367
- }
3368
- return false;
3369
- }
3370
-
3371
- export {
3372
- runCommand,
3373
- stopBeforeKinds,
3374
- executeCanvasRun,
3375
- buildBackendClient,
3376
- postInitialRunRecord
3377
- };
3378
- //# sourceMappingURL=chunk-TPJ66HU6.js.map