@koda-sl/baker-cli 0.851.0-dev.9afc75982 → 0.852.0-dev.4f443e346

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (816) hide show
  1. package/README.md +1 -7
  2. package/dist/account-KRF7EIGP.js +84 -0
  3. package/dist/account-KRF7EIGP.js.map +1 -0
  4. package/dist/account-users-4I2AAEAO.js +70 -0
  5. package/dist/account-users-4I2AAEAO.js.map +1 -0
  6. package/dist/accounts-A37M7HW3.js +506 -0
  7. package/dist/accounts-A37M7HW3.js.map +1 -0
  8. package/dist/accounts-DXLJFGM6.js +82 -0
  9. package/dist/accounts-DXLJFGM6.js.map +1 -0
  10. package/dist/actions-KWHMTMLD.js +55 -0
  11. package/dist/activecampaign-AJURU2SD.js +936 -0
  12. package/dist/activecampaign-AJURU2SD.js.map +1 -0
  13. package/dist/add-2CN64JRZ.js +109 -0
  14. package/dist/add-2CN64JRZ.js.map +1 -0
  15. package/dist/add-INCMGBM2.js +662 -0
  16. package/dist/add-INCMGBM2.js.map +1 -0
  17. package/dist/add-M6LS32QO.js +663 -0
  18. package/dist/add-M6LS32QO.js.map +1 -0
  19. package/dist/ads-7Q7PRFJ4.js +48 -0
  20. package/dist/advertisers-A3YGDOLM.js +127 -0
  21. package/dist/advertisers-A3YGDOLM.js.map +1 -0
  22. package/dist/alerts-DEP2DXBN.js +154 -0
  23. package/dist/alerts-DEP2DXBN.js.map +1 -0
  24. package/dist/analytics-7UCEXUVF.js +2792 -0
  25. package/dist/analytics-7UCEXUVF.js.map +1 -0
  26. package/dist/analytics-XHWSVXYX.js +462 -0
  27. package/dist/analytics-XHWSVXYX.js.map +1 -0
  28. package/dist/assign-JUXS2HIS.js +84 -0
  29. package/dist/assign-JUXS2HIS.js.map +1 -0
  30. package/dist/audience-size-ZWHF4BMF.js +78 -0
  31. package/dist/audience-size-ZWHF4BMF.js.map +1 -0
  32. package/dist/audit-G5SNO6AP.js +156 -0
  33. package/dist/audit-G5SNO6AP.js.map +1 -0
  34. package/dist/autocomplete-RQPSDMYX.js +118 -0
  35. package/dist/autocomplete-RQPSDMYX.js.map +1 -0
  36. package/dist/avatars-PILXCCPG.js +38 -0
  37. package/dist/bid-pricing-7ZNHIIJI.js +105 -0
  38. package/dist/bid-pricing-7ZNHIIJI.js.map +1 -0
  39. package/dist/brief-RBOKX3HZ.js +512 -0
  40. package/dist/brief-RBOKX3HZ.js.map +1 -0
  41. package/dist/campaign-groups-VFVDSZVA.js +119 -0
  42. package/dist/campaign-groups-VFVDSZVA.js.map +1 -0
  43. package/dist/campaign-writes-NYSYVJC6.js +170 -0
  44. package/dist/campaign-writes-NYSYVJC6.js.map +1 -0
  45. package/dist/campaigns-I55PNY55.js +194 -0
  46. package/dist/campaigns-I55PNY55.js.map +1 -0
  47. package/dist/campaigns-XS52PZQL.js +111 -0
  48. package/dist/canvas-3AHETASK.js +48 -0
  49. package/dist/capabilities-KIPCD5SQ.js +185 -0
  50. package/dist/capabilities-KIPCD5SQ.js.map +1 -0
  51. package/dist/catalog-3OIBTMBV.js +90 -0
  52. package/dist/catalog-3OIBTMBV.js.map +1 -0
  53. package/dist/chats-JWH4BIWL.js +660 -0
  54. package/dist/chats-JWH4BIWL.js.map +1 -0
  55. package/dist/check-3SVCK3V3.js +55 -0
  56. package/dist/chunk-2CV2LEJN.js +685 -0
  57. package/dist/chunk-2PNBK7KZ.js +1124 -0
  58. package/dist/chunk-3B7GRVIM.js +392 -0
  59. package/dist/chunk-3MJTL763.js +103 -0
  60. package/dist/chunk-4GM3TBGL.js +320 -0
  61. package/dist/chunk-5UG7AJB5.js +65 -0
  62. package/dist/chunk-AOXHDVWS.js +260 -0
  63. package/dist/chunk-AYW4VFTH.js +547 -0
  64. package/dist/chunk-BMUAE5IR.js +411 -0
  65. package/dist/chunk-BPQY4KIM.js +251 -0
  66. package/dist/chunk-BYYIJMLP.js +197 -0
  67. package/dist/chunk-CDU64GKK.js +61 -0
  68. package/dist/chunk-CNVV272P.js +106 -0
  69. package/dist/chunk-CNVV272P.js.map +1 -0
  70. package/dist/chunk-DA634ZIV.js +175 -0
  71. package/dist/chunk-DJLTDVRD.js +479 -0
  72. package/dist/chunk-GHEURTBN.js +224 -0
  73. package/dist/chunk-H2IG6MOX.js +78 -0
  74. package/dist/chunk-HVVE3GT6.js +91 -0
  75. package/dist/chunk-IAOXI7MJ.js +9127 -0
  76. package/dist/chunk-J4Z2AP32.js +47 -0
  77. package/dist/chunk-J4Z2AP32.js.map +1 -0
  78. package/dist/chunk-M6RQJCDW.js +746 -0
  79. package/dist/chunk-N5IR2T2B.js +509 -0
  80. package/dist/chunk-NZ3PQBRV.js +51 -0
  81. package/dist/chunk-NZFVC7RP.js +548 -0
  82. package/dist/chunk-PNGXJPM5.js +604 -0
  83. package/dist/chunk-PNGXJPM5.js.map +1 -0
  84. package/dist/chunk-QLSNKH5D.js +91 -0
  85. package/dist/chunk-RN3IVT3B.js +3378 -0
  86. package/dist/chunk-RZOHIOPP.js +262 -0
  87. package/dist/chunk-SELCZP76.js +6340 -0
  88. package/dist/chunk-T55DY36I.js +163 -0
  89. package/dist/chunk-T5FACY43.js +170 -0
  90. package/dist/chunk-TR72BZ4D.js +660 -0
  91. package/dist/chunk-UTOVP53O.js +313 -0
  92. package/dist/chunk-VDHPAQUM.js +23 -0
  93. package/dist/chunk-VPWLH6VS.js +202 -0
  94. package/dist/chunk-VXLFFMW6.js +155 -0
  95. package/dist/chunk-VZQHMRYM.js +303 -0
  96. package/dist/chunk-X4NF7IMQ.js +423 -0
  97. package/dist/chunk-X6CSCKXX.js +341 -0
  98. package/dist/chunk-Y4XW2LW3.js +10361 -0
  99. package/dist/chunk-YAMDF3DT.js +374 -0
  100. package/dist/chunk-YCCTIFI7.js +396 -0
  101. package/dist/chunk-YWHOPJG5.js +64 -0
  102. package/dist/chunk-Z7WMTBGD.js +329 -0
  103. package/dist/chunk-ZJY3ACX3.js +7782 -0
  104. package/dist/chunk-ZJY3ACX3.js.map +1 -0
  105. package/dist/claim-H5HZFRPG.js +219 -0
  106. package/dist/claim-H5HZFRPG.js.map +1 -0
  107. package/dist/cli.js +34 -34
  108. package/dist/companies-6FM3CALY.js +37 -0
  109. package/dist/company-U67GZ652.js +312 -0
  110. package/dist/company-U67GZ652.js.map +1 -0
  111. package/dist/complete-7PB5RC47.js +88 -0
  112. package/dist/complete-7PB5RC47.js.map +1 -0
  113. package/dist/connect-J6M3W7WW.js +47 -0
  114. package/dist/conversation-6FGVSJQV.js +101 -0
  115. package/dist/conversation-6FGVSJQV.js.map +1 -0
  116. package/dist/conversions-T3WPLUNU.js +142 -0
  117. package/dist/conversions-T3WPLUNU.js.map +1 -0
  118. package/dist/create-3UEEKKBJ.js +66 -0
  119. package/dist/create-3UEEKKBJ.js.map +1 -0
  120. package/dist/create-BQFV23KE.js +220 -0
  121. package/dist/create-BQFV23KE.js.map +1 -0
  122. package/dist/create-PYNZG2I7.js +191 -0
  123. package/dist/create-PYNZG2I7.js.map +1 -0
  124. package/dist/create-WGQKASYJ.js +357 -0
  125. package/dist/create-WGQKASYJ.js.map +1 -0
  126. package/dist/creatives-PW2P7VMU.js +48 -0
  127. package/dist/creatives-X4ZDII4J.js +236 -0
  128. package/dist/creatives-X4ZDII4J.js.map +1 -0
  129. package/dist/credentials-IGLXTK56.js +292 -0
  130. package/dist/credentials-IGLXTK56.js.map +1 -0
  131. package/dist/critique-HF4ZNSFG.js +231 -0
  132. package/dist/critique-HF4ZNSFG.js.map +1 -0
  133. package/dist/crm-EOXLQJTJ.js +419 -0
  134. package/dist/crm-EOXLQJTJ.js.map +1 -0
  135. package/dist/crm-J7YGM36V.js +328 -0
  136. package/dist/crm-J7YGM36V.js.map +1 -0
  137. package/dist/customers-OHB5EY7Z.js +70 -0
  138. package/dist/delete-I24TSU35.js +61 -0
  139. package/dist/delete-I24TSU35.js.map +1 -0
  140. package/dist/delete-O6GJAIDU.js +72 -0
  141. package/dist/delete-O6GJAIDU.js.map +1 -0
  142. package/dist/delete-UM6ENIDW.js +71 -0
  143. package/dist/delete-UM6ENIDW.js.map +1 -0
  144. package/dist/demographics-BGSWNDRQ.js +146 -0
  145. package/dist/demographics-BGSWNDRQ.js.map +1 -0
  146. package/dist/discard-3S5LU3GF.js +73 -0
  147. package/dist/discard-3S5LU3GF.js.map +1 -0
  148. package/dist/domain-DJ4Y72PN.js +105 -0
  149. package/dist/domain-DJ4Y72PN.js.map +1 -0
  150. package/dist/download-FR7XSZWV.js +175 -0
  151. package/dist/download-FR7XSZWV.js.map +1 -0
  152. package/dist/draft-MUMANPJ7.js +228 -0
  153. package/dist/draft-MUMANPJ7.js.map +1 -0
  154. package/dist/draft-Z6YHU3AR.js +390 -0
  155. package/dist/draft-Z6YHU3AR.js.map +1 -0
  156. package/dist/draft-ZJ4VSYKB.js +428 -0
  157. package/dist/draft-ZJ4VSYKB.js.map +1 -0
  158. package/dist/engine/index.js +4 -3
  159. package/dist/experiment-QSABRTUR.js +2123 -0
  160. package/dist/experiment-QSABRTUR.js.map +1 -0
  161. package/dist/experiments-SJ2ODFHA.js +242 -0
  162. package/dist/experiments-SJ2ODFHA.js.map +1 -0
  163. package/dist/extract-X7H37JJT.js +145 -0
  164. package/dist/extract-X7H37JJT.js.map +1 -0
  165. package/dist/facets-BXRB3I6Q.js +119 -0
  166. package/dist/facets-BXRB3I6Q.js.map +1 -0
  167. package/dist/feedback-YWJUV7LV.js +116 -0
  168. package/dist/feedback-YWJUV7LV.js.map +1 -0
  169. package/dist/fetch-SZORBUY6.js +488 -0
  170. package/dist/fetch-SZORBUY6.js.map +1 -0
  171. package/dist/fit-BNMTWIDZ.js +70 -0
  172. package/dist/flows-CXLGJZX3.js +343 -0
  173. package/dist/flows-CXLGJZX3.js.map +1 -0
  174. package/dist/forecast-4GMD2VLH.js +123 -0
  175. package/dist/forecast-4GMD2VLH.js.map +1 -0
  176. package/dist/funnel-6T744PW5.js +702 -0
  177. package/dist/funnel-6T744PW5.js.map +1 -0
  178. package/dist/get-AV7SAPWM.js +115 -0
  179. package/dist/get-AV7SAPWM.js.map +1 -0
  180. package/dist/get-XGNDE6U5.js +78 -0
  181. package/dist/get-XGNDE6U5.js.map +1 -0
  182. package/dist/google-5PTZYW6Q.js +165 -0
  183. package/dist/google-5PTZYW6Q.js.map +1 -0
  184. package/dist/google-ads-LL4VNYPD.js +202 -0
  185. package/dist/google-ads-LL4VNYPD.js.map +1 -0
  186. package/dist/history-CFVA6FMG.js +109 -0
  187. package/dist/history-CFVA6FMG.js.map +1 -0
  188. package/dist/history-DSRIBYK6.js +156 -0
  189. package/dist/history-DSRIBYK6.js.map +1 -0
  190. package/dist/hubspot-QEDQFEME.js +854 -0
  191. package/dist/hubspot-QEDQFEME.js.map +1 -0
  192. package/dist/ideas-UK74GJGE.js +50 -0
  193. package/dist/images-OH7KDUR5.js +92 -0
  194. package/dist/ingest-2BC3W4WC.js +32 -0
  195. package/dist/ingest-U46BUNPL.js +163 -0
  196. package/dist/ingest-U46BUNPL.js.map +1 -0
  197. package/dist/inspect-ZMCRHR2P.js +39 -0
  198. package/dist/keyword-metrics-RHQHOBBD.js +235 -0
  199. package/dist/keyword-metrics-RHQHOBBD.js.map +1 -0
  200. package/dist/keywords-for-site-SXM5GYNK.js +135 -0
  201. package/dist/keywords-for-site-SXM5GYNK.js.map +1 -0
  202. package/dist/leads-SXKIKE33.js +138 -0
  203. package/dist/leads-SXKIKE33.js.map +1 -0
  204. package/dist/learn-IUTTKGIM.js +214 -0
  205. package/dist/learn-IUTTKGIM.js.map +1 -0
  206. package/dist/line-item-writes-4UCLAFCM.js +213 -0
  207. package/dist/line-item-writes-4UCLAFCM.js.map +1 -0
  208. package/dist/line-items-RUC54PIV.js +107 -0
  209. package/dist/link-DVOBJDBN.js +71 -0
  210. package/dist/link-DVOBJDBN.js.map +1 -0
  211. package/dist/linkedin-2Y7TU4US.js +1499 -0
  212. package/dist/linkedin-2Y7TU4US.js.map +1 -0
  213. package/dist/linkedin-person-MTXQCPG5.js +143 -0
  214. package/dist/linkedin-person-MTXQCPG5.js.map +1 -0
  215. package/dist/list-G5QSLYQQ.js +64 -0
  216. package/dist/list-G5QSLYQQ.js.map +1 -0
  217. package/dist/list-KYEFILOK.js +170 -0
  218. package/dist/list-KYEFILOK.js.map +1 -0
  219. package/dist/list-V5XCBLJ7.js +321 -0
  220. package/dist/list-V5XCBLJ7.js.map +1 -0
  221. package/dist/list-VXWXN54Z.js +90 -0
  222. package/dist/list-VXWXN54Z.js.map +1 -0
  223. package/dist/log-STIZ76SH.js +99 -0
  224. package/dist/log-STIZ76SH.js.map +1 -0
  225. package/dist/make-HDEKIJC6.js +1392 -0
  226. package/dist/make-HDEKIJC6.js.map +1 -0
  227. package/dist/map-2SS3BULX.js +520 -0
  228. package/dist/map-2SS3BULX.js.map +1 -0
  229. package/dist/mcp-I5ASSVSH.js +1018 -0
  230. package/dist/mcp-I5ASSVSH.js.map +1 -0
  231. package/dist/media-sources-KUEQ45V5.js +35 -0
  232. package/dist/members-65P2J63J.js +51 -0
  233. package/dist/members-65P2J63J.js.map +1 -0
  234. package/dist/normalize-WNJDY66N.js +146 -0
  235. package/dist/normalize-WNJDY66N.js.map +1 -0
  236. package/dist/options-G4KR2KM7.js +127 -0
  237. package/dist/options-G4KR2KM7.js.map +1 -0
  238. package/dist/organization-FVZ6EIQB.js +950 -0
  239. package/dist/organization-FVZ6EIQB.js.map +1 -0
  240. package/dist/people-654OH5SE.js +162 -0
  241. package/dist/people-654OH5SE.js.map +1 -0
  242. package/dist/people-G3X6XVSH.js +172 -0
  243. package/dist/people-G3X6XVSH.js.map +1 -0
  244. package/dist/performance-BIH653SL.js +29 -0
  245. package/dist/performance-IU4CAW5U.js +6295 -0
  246. package/dist/performance-IU4CAW5U.js.map +1 -0
  247. package/dist/pipedrive-7AHNEUZI.js +534 -0
  248. package/dist/pipedrive-7AHNEUZI.js.map +1 -0
  249. package/dist/preview-ZOTNLVQF.js +104 -0
  250. package/dist/preview-ZOTNLVQF.js.map +1 -0
  251. package/dist/promoted-tweet-writes-7OXSBCSP.js +185 -0
  252. package/dist/promoted-tweet-writes-7OXSBCSP.js.map +1 -0
  253. package/dist/promoted-tweets-6YCNFVJK.js +119 -0
  254. package/dist/publish-W6YO4KXM.js +431 -0
  255. package/dist/publish-W6YO4KXM.js.map +1 -0
  256. package/dist/reddit-Z4REP3DB.js +31 -0
  257. package/dist/refresh-J4EVW5NK.js +101 -0
  258. package/dist/refresh-J4EVW5NK.js.map +1 -0
  259. package/dist/release-J7PM3S26.js +67 -0
  260. package/dist/release-J7PM3S26.js.map +1 -0
  261. package/dist/remove-47SNXAN4.js +55 -0
  262. package/dist/remove-47SNXAN4.js.map +1 -0
  263. package/dist/reopen-QZ5H7BM4.js +70 -0
  264. package/dist/reopen-QZ5H7BM4.js.map +1 -0
  265. package/dist/rerun-NXCWZO6J.js +102 -0
  266. package/dist/rerun-NXCWZO6J.js.map +1 -0
  267. package/dist/research-FYPPBDZD.js +267 -0
  268. package/dist/research-FYPPBDZD.js.map +1 -0
  269. package/dist/research-M6YZMTCC.js +78 -0
  270. package/dist/reset-HOZN4FOM.js +59 -0
  271. package/dist/reset-HOZN4FOM.js.map +1 -0
  272. package/dist/reset-YSI4KD65.js +59 -0
  273. package/dist/reset-YSI4KD65.js.map +1 -0
  274. package/dist/resolve-4LGAMITK.js +126 -0
  275. package/dist/resolve-4LGAMITK.js.map +1 -0
  276. package/dist/retry-JE7MVPCY.js +67 -0
  277. package/dist/retry-JE7MVPCY.js.map +1 -0
  278. package/dist/retry-NF5WFRK3.js +67 -0
  279. package/dist/retry-NF5WFRK3.js.map +1 -0
  280. package/dist/revenue-UNKQMFEP.js +100 -0
  281. package/dist/revenue-UNKQMFEP.js.map +1 -0
  282. package/dist/rules-ZQVMBEGF.js +164 -0
  283. package/dist/rules-ZQVMBEGF.js.map +1 -0
  284. package/dist/run-3AFY2WEP.js +74 -0
  285. package/dist/run-3AFY2WEP.js.map +1 -0
  286. package/dist/run-MBVV64FY.js +79 -0
  287. package/dist/scaffold-ad-5BDDIBIE.js +1601 -0
  288. package/dist/scaffold-ad-5BDDIBIE.js.map +1 -0
  289. package/dist/scaffold-static-ad-VI4HHQXS.js +999 -0
  290. package/dist/scaffold-static-ad-VI4HHQXS.js.map +1 -0
  291. package/dist/scaffold-video-EPMMQHUN.js +889 -0
  292. package/dist/scaffold-video-EPMMQHUN.js.map +1 -0
  293. package/dist/schedule-MYNSAWBJ.js +66 -0
  294. package/dist/schedule-MYNSAWBJ.js.map +1 -0
  295. package/dist/scheduled-agents-T7CITLJL.js +59 -0
  296. package/dist/schema-4WMUT43Q.js +137 -0
  297. package/dist/schema-4WMUT43Q.js.map +1 -0
  298. package/dist/schema-6WONG4NR.js +241 -0
  299. package/dist/search-AF7G5TRI.js +193 -0
  300. package/dist/search-AF7G5TRI.js.map +1 -0
  301. package/dist/select-LUFSBEFK.js +135 -0
  302. package/dist/select-LUFSBEFK.js.map +1 -0
  303. package/dist/set-Z754PYIP.js +275 -0
  304. package/dist/set-Z754PYIP.js.map +1 -0
  305. package/dist/set-prompt-WDCKB4GU.js +205 -0
  306. package/dist/set-prompt-WDCKB4GU.js.map +1 -0
  307. package/dist/setup-links-3FCP4CMO.js +146 -0
  308. package/dist/setup-links-3FCP4CMO.js.map +1 -0
  309. package/dist/shopify-OMTDOM6H.js +4033 -0
  310. package/dist/shopify-OMTDOM6H.js.map +1 -0
  311. package/dist/site-E6VDWABB.js +182 -0
  312. package/dist/site-E6VDWABB.js.map +1 -0
  313. package/dist/sources-3RQZ3AR2.js +30 -0
  314. package/dist/sources-IB2WBJLU.js +464 -0
  315. package/dist/sources-IB2WBJLU.js.map +1 -0
  316. package/dist/stale-V4NS3MDH.js +93 -0
  317. package/dist/stale-V4NS3MDH.js.map +1 -0
  318. package/dist/status-T67ZC4E3.js +69 -0
  319. package/dist/status-T67ZC4E3.js.map +1 -0
  320. package/dist/stock-V2ITAW3L.js +214 -0
  321. package/dist/stock-V2ITAW3L.js.map +1 -0
  322. package/dist/sync-O5OC466B.js +59 -0
  323. package/dist/sync-O5OC466B.js.map +1 -0
  324. package/dist/sync-definition-MR7XESTS.js +75 -0
  325. package/dist/tags-ACDAA5T6.js +25 -0
  326. package/dist/tags-ACDAA5T6.js.map +1 -0
  327. package/dist/tags-I3AJEMKF.js +26 -0
  328. package/dist/tags-IMTMMKH3.js +25 -0
  329. package/dist/tags-IMTMMKH3.js.map +1 -0
  330. package/dist/tags-Q32N3AGN.js +25 -0
  331. package/dist/tags-Q32N3AGN.js.map +1 -0
  332. package/dist/tags-YWZLXCDK.js +183 -0
  333. package/dist/tags-YWZLXCDK.js.map +1 -0
  334. package/dist/targeting-criteria-QFFAYBGE.js +113 -0
  335. package/dist/targets-VJ7FDIRY.js +111 -0
  336. package/dist/targets-VJ7FDIRY.js.map +1 -0
  337. package/dist/testimonials-67Q3OTBU.js +32 -0
  338. package/dist/top-companies-6XTBQ26K.js +251 -0
  339. package/dist/top-companies-6XTBQ26K.js.map +1 -0
  340. package/dist/transcript-VJ3SAEUV.js +169 -0
  341. package/dist/transcript-VJ3SAEUV.js.map +1 -0
  342. package/dist/translate-ET2MK3H2.js +608 -0
  343. package/dist/translate-ET2MK3H2.js.map +1 -0
  344. package/dist/triggers-JP6VF7BW.js +149 -0
  345. package/dist/triggers-JP6VF7BW.js.map +1 -0
  346. package/dist/unlink-KMFC3LDG.js +74 -0
  347. package/dist/unlink-KMFC3LDG.js.map +1 -0
  348. package/dist/unstage-GPI2NIBV.js +93 -0
  349. package/dist/unstage-GPI2NIBV.js.map +1 -0
  350. package/dist/update-2FH5MZVD.js +238 -0
  351. package/dist/update-2FH5MZVD.js.map +1 -0
  352. package/dist/update-ACOQHC7J.js +194 -0
  353. package/dist/update-ACOQHC7J.js.map +1 -0
  354. package/dist/update-CUQLNEAD.js +176 -0
  355. package/dist/update-CUQLNEAD.js.map +1 -0
  356. package/dist/update-RZXG7Z62.js +70 -0
  357. package/dist/update-RZXG7Z62.js.map +1 -0
  358. package/dist/upload-HVE7JHOF.js +186 -0
  359. package/dist/upload-HVE7JHOF.js.map +1 -0
  360. package/dist/url-params-EHRE7RFC.js +103 -0
  361. package/dist/url-params-EHRE7RFC.js.map +1 -0
  362. package/dist/validate-2SL473DR.js +181 -0
  363. package/dist/validate-2SL473DR.js.map +1 -0
  364. package/dist/videos-URSOTIHU.js +41 -0
  365. package/dist/viewer-check-N3SEOOMX.js +90 -0
  366. package/dist/visuals-2Q643EXW.js +130 -0
  367. package/dist/visuals-2Q643EXW.js.map +1 -0
  368. package/dist/web-SEZ7DJLY.js +181 -0
  369. package/dist/web-SEZ7DJLY.js.map +1 -0
  370. package/dist/winning-ads-TCRRYKCR.js +88 -0
  371. package/dist/write-commands-DSQDZBN7.js +1556 -0
  372. package/dist/write-commands-DSQDZBN7.js.map +1 -0
  373. package/dist/x-K6IWYLK3.js +47 -0
  374. package/package.json +1 -1
  375. package/dist/account-LMDIUOJG.js +0 -83
  376. package/dist/account-LMDIUOJG.js.map +0 -1
  377. package/dist/account-users-6RC5HDP3.js +0 -69
  378. package/dist/account-users-6RC5HDP3.js.map +0 -1
  379. package/dist/accounts-LIGSG5NQ.js +0 -505
  380. package/dist/accounts-LIGSG5NQ.js.map +0 -1
  381. package/dist/accounts-YMDEDCHU.js +0 -81
  382. package/dist/accounts-YMDEDCHU.js.map +0 -1
  383. package/dist/actions-U4QMVB4H.js +0 -55
  384. package/dist/activecampaign-WPHFFOGW.js +0 -935
  385. package/dist/activecampaign-WPHFFOGW.js.map +0 -1
  386. package/dist/add-AFPBNJDW.js +0 -108
  387. package/dist/add-AFPBNJDW.js.map +0 -1
  388. package/dist/add-M3YT32OX.js +0 -661
  389. package/dist/add-M3YT32OX.js.map +0 -1
  390. package/dist/add-UJOKKBPM.js +0 -662
  391. package/dist/add-UJOKKBPM.js.map +0 -1
  392. package/dist/ads-T42GRQ7H.js +0 -48
  393. package/dist/advertisers-NJE6DBLG.js +0 -126
  394. package/dist/advertisers-NJE6DBLG.js.map +0 -1
  395. package/dist/alerts-CQ34OPCP.js +0 -153
  396. package/dist/alerts-CQ34OPCP.js.map +0 -1
  397. package/dist/analytics-54QRGO5T.js +0 -461
  398. package/dist/analytics-54QRGO5T.js.map +0 -1
  399. package/dist/analytics-HW6SG6ZE.js +0 -2791
  400. package/dist/analytics-HW6SG6ZE.js.map +0 -1
  401. package/dist/assign-WIIL5VY7.js +0 -83
  402. package/dist/assign-WIIL5VY7.js.map +0 -1
  403. package/dist/audience-size-2KL27ETQ.js +0 -77
  404. package/dist/audience-size-2KL27ETQ.js.map +0 -1
  405. package/dist/audit-EPWNTRPE.js +0 -155
  406. package/dist/audit-EPWNTRPE.js.map +0 -1
  407. package/dist/autocomplete-JWML26GX.js +0 -117
  408. package/dist/autocomplete-JWML26GX.js.map +0 -1
  409. package/dist/avatars-D7S43BGZ.js +0 -38
  410. package/dist/bid-pricing-MD7ROXQT.js +0 -104
  411. package/dist/bid-pricing-MD7ROXQT.js.map +0 -1
  412. package/dist/brief-JWYWQXOP.js +0 -511
  413. package/dist/brief-JWYWQXOP.js.map +0 -1
  414. package/dist/campaign-groups-ZT3ZHZFF.js +0 -118
  415. package/dist/campaign-groups-ZT3ZHZFF.js.map +0 -1
  416. package/dist/campaign-writes-72H332R4.js +0 -169
  417. package/dist/campaign-writes-72H332R4.js.map +0 -1
  418. package/dist/campaigns-Q363NCWU.js +0 -111
  419. package/dist/campaigns-TDR6VKYL.js +0 -193
  420. package/dist/campaigns-TDR6VKYL.js.map +0 -1
  421. package/dist/canvas-T6ALQYZT.js +0 -48
  422. package/dist/capabilities-N52A6X2S.js +0 -184
  423. package/dist/capabilities-N52A6X2S.js.map +0 -1
  424. package/dist/catalog-WKBCL56H.js +0 -89
  425. package/dist/catalog-WKBCL56H.js.map +0 -1
  426. package/dist/chats-D5TGNPFK.js +0 -659
  427. package/dist/chats-D5TGNPFK.js.map +0 -1
  428. package/dist/check-6QZ2U6WJ.js +0 -54
  429. package/dist/chunk-2BRVIOKO.js +0 -197
  430. package/dist/chunk-2FBSB7UF.js +0 -64
  431. package/dist/chunk-2XKSMHDO.js +0 -10361
  432. package/dist/chunk-3TWET6OD.js +0 -396
  433. package/dist/chunk-6H6BJBBS.js +0 -329
  434. package/dist/chunk-6XOAPUW4.js +0 -509
  435. package/dist/chunk-ACIBARQU.js +0 -251
  436. package/dist/chunk-AQHT2XKB.js +0 -3378
  437. package/dist/chunk-ATUFMGY3.js +0 -320
  438. package/dist/chunk-B43NI7QF.js +0 -52
  439. package/dist/chunk-B43NI7QF.js.map +0 -1
  440. package/dist/chunk-BDULC6LM.js +0 -479
  441. package/dist/chunk-BPUNOSXM.js +0 -548
  442. package/dist/chunk-CPRSVECH.js +0 -303
  443. package/dist/chunk-DIOKO2YD.js +0 -660
  444. package/dist/chunk-DZUYNVKJ.js +0 -423
  445. package/dist/chunk-E2BFPWA5.js +0 -175
  446. package/dist/chunk-EMZ6P2KH.js +0 -6340
  447. package/dist/chunk-F7DCEGAA.js +0 -392
  448. package/dist/chunk-FEP257NO.js +0 -65
  449. package/dist/chunk-GB2U76OM.js +0 -224
  450. package/dist/chunk-I3HEOUZT.js +0 -1124
  451. package/dist/chunk-IDBREOFA.js +0 -106
  452. package/dist/chunk-IDBREOFA.js.map +0 -1
  453. package/dist/chunk-INY6DR2Y.js +0 -374
  454. package/dist/chunk-JY2NBRHH.js +0 -78
  455. package/dist/chunk-KN2UAGSU.js +0 -91
  456. package/dist/chunk-LDF2VXPC.js +0 -155
  457. package/dist/chunk-LRWUQABW.js +0 -262
  458. package/dist/chunk-MJ5JHMLF.js +0 -163
  459. package/dist/chunk-NLWOT26L.js +0 -411
  460. package/dist/chunk-O2YPJPMO.js +0 -547
  461. package/dist/chunk-ODDHGVQE.js +0 -51
  462. package/dist/chunk-P6Z44HNW.js +0 -9127
  463. package/dist/chunk-PSPSKOQR.js +0 -341
  464. package/dist/chunk-QLIJ4NRV.js +0 -8418
  465. package/dist/chunk-QLIJ4NRV.js.map +0 -1
  466. package/dist/chunk-QNPOFQV5.js +0 -170
  467. package/dist/chunk-QZMBPEUW.js +0 -202
  468. package/dist/chunk-RKGYVC2C.js +0 -685
  469. package/dist/chunk-SBP7CF7S.js +0 -260
  470. package/dist/chunk-TJZKZKCQ.js +0 -91
  471. package/dist/chunk-TVZCWBC5.js +0 -61
  472. package/dist/chunk-WCCFBAH4.js +0 -23
  473. package/dist/chunk-XDFXSMPX.js +0 -103
  474. package/dist/chunk-XFARJ2SL.js +0 -313
  475. package/dist/chunk-YNVE62WW.js +0 -746
  476. package/dist/claim-QGYCSESF.js +0 -218
  477. package/dist/claim-QGYCSESF.js.map +0 -1
  478. package/dist/companies-VM4DJCIO.js +0 -36
  479. package/dist/company-BPFVTGZK.js +0 -311
  480. package/dist/company-BPFVTGZK.js.map +0 -1
  481. package/dist/complete-NNDVV6CH.js +0 -87
  482. package/dist/complete-NNDVV6CH.js.map +0 -1
  483. package/dist/connect-4G722CGF.js +0 -46
  484. package/dist/conversation-TRXRUTL6.js +0 -100
  485. package/dist/conversation-TRXRUTL6.js.map +0 -1
  486. package/dist/conversions-4RQGCY3I.js +0 -141
  487. package/dist/conversions-4RQGCY3I.js.map +0 -1
  488. package/dist/create-4DUUV34B.js +0 -356
  489. package/dist/create-4DUUV34B.js.map +0 -1
  490. package/dist/create-GAKJO6RX.js +0 -65
  491. package/dist/create-GAKJO6RX.js.map +0 -1
  492. package/dist/create-NUV6C7T7.js +0 -219
  493. package/dist/create-NUV6C7T7.js.map +0 -1
  494. package/dist/create-TSB2ED7G.js +0 -190
  495. package/dist/create-TSB2ED7G.js.map +0 -1
  496. package/dist/creatives-D2756SYZ.js +0 -48
  497. package/dist/creatives-FRNDPYD2.js +0 -235
  498. package/dist/creatives-FRNDPYD2.js.map +0 -1
  499. package/dist/credentials-VDUQOSAI.js +0 -291
  500. package/dist/credentials-VDUQOSAI.js.map +0 -1
  501. package/dist/critique-GCLEP53N.js +0 -230
  502. package/dist/critique-GCLEP53N.js.map +0 -1
  503. package/dist/crm-6KBBEU5D.js +0 -327
  504. package/dist/crm-6KBBEU5D.js.map +0 -1
  505. package/dist/crm-MUVL3BHT.js +0 -418
  506. package/dist/crm-MUVL3BHT.js.map +0 -1
  507. package/dist/customers-6X6LULB6.js +0 -69
  508. package/dist/delete-FJPGJ2HP.js +0 -71
  509. package/dist/delete-FJPGJ2HP.js.map +0 -1
  510. package/dist/delete-M5Z5QXVO.js +0 -60
  511. package/dist/delete-M5Z5QXVO.js.map +0 -1
  512. package/dist/delete-P66UBMWB.js +0 -70
  513. package/dist/delete-P66UBMWB.js.map +0 -1
  514. package/dist/demographics-TEDAJJDS.js +0 -145
  515. package/dist/demographics-TEDAJJDS.js.map +0 -1
  516. package/dist/discard-UXSFTA6C.js +0 -72
  517. package/dist/discard-UXSFTA6C.js.map +0 -1
  518. package/dist/domain-Y3BKIFLA.js +0 -104
  519. package/dist/domain-Y3BKIFLA.js.map +0 -1
  520. package/dist/download-P2XHLRNA.js +0 -174
  521. package/dist/download-P2XHLRNA.js.map +0 -1
  522. package/dist/draft-63RF6RKQ.js +0 -427
  523. package/dist/draft-63RF6RKQ.js.map +0 -1
  524. package/dist/draft-N2MVECRV.js +0 -227
  525. package/dist/draft-N2MVECRV.js.map +0 -1
  526. package/dist/draft-OJQT5H3E.js +0 -389
  527. package/dist/draft-OJQT5H3E.js.map +0 -1
  528. package/dist/experiment-WEWASTVO.js +0 -2094
  529. package/dist/experiment-WEWASTVO.js.map +0 -1
  530. package/dist/experiments-BFVLG54V.js +0 -241
  531. package/dist/experiments-BFVLG54V.js.map +0 -1
  532. package/dist/extract-YH5VKD7W.js +0 -144
  533. package/dist/extract-YH5VKD7W.js.map +0 -1
  534. package/dist/facets-VJOSK5UL.js +0 -118
  535. package/dist/facets-VJOSK5UL.js.map +0 -1
  536. package/dist/feedback-ATORZ5XJ.js +0 -115
  537. package/dist/feedback-ATORZ5XJ.js.map +0 -1
  538. package/dist/fetch-UDAWFZXZ.js +0 -487
  539. package/dist/fetch-UDAWFZXZ.js.map +0 -1
  540. package/dist/fit-4CVULFD2.js +0 -69
  541. package/dist/flows-QXTZHPB6.js +0 -342
  542. package/dist/flows-QXTZHPB6.js.map +0 -1
  543. package/dist/forecast-DJ67NT6P.js +0 -122
  544. package/dist/forecast-DJ67NT6P.js.map +0 -1
  545. package/dist/funnel-2C6Z5VA2.js +0 -701
  546. package/dist/funnel-2C6Z5VA2.js.map +0 -1
  547. package/dist/get-GFVZKATP.js +0 -114
  548. package/dist/get-GFVZKATP.js.map +0 -1
  549. package/dist/get-JSO4YJFR.js +0 -77
  550. package/dist/get-JSO4YJFR.js.map +0 -1
  551. package/dist/google-H4KVIAL5.js +0 -164
  552. package/dist/google-H4KVIAL5.js.map +0 -1
  553. package/dist/google-ads-KCK27DGG.js +0 -201
  554. package/dist/google-ads-KCK27DGG.js.map +0 -1
  555. package/dist/history-AIZX672U.js +0 -155
  556. package/dist/history-AIZX672U.js.map +0 -1
  557. package/dist/history-LYUJTPSP.js +0 -108
  558. package/dist/history-LYUJTPSP.js.map +0 -1
  559. package/dist/hubspot-BZSQ3WMQ.js +0 -853
  560. package/dist/hubspot-BZSQ3WMQ.js.map +0 -1
  561. package/dist/ideas-HHWTU7F2.js +0 -49
  562. package/dist/images-BB6BYS54.js +0 -92
  563. package/dist/ingest-S6HP4LXI.js +0 -31
  564. package/dist/ingest-Z3DRI6A3.js +0 -162
  565. package/dist/ingest-Z3DRI6A3.js.map +0 -1
  566. package/dist/inspect-KC5LTH4E.js +0 -38
  567. package/dist/keyword-metrics-VGZIQBSG.js +0 -234
  568. package/dist/keyword-metrics-VGZIQBSG.js.map +0 -1
  569. package/dist/keywords-for-site-3HREQUQU.js +0 -134
  570. package/dist/keywords-for-site-3HREQUQU.js.map +0 -1
  571. package/dist/leads-AKF42B23.js +0 -137
  572. package/dist/leads-AKF42B23.js.map +0 -1
  573. package/dist/learn-6D45W6YN.js +0 -213
  574. package/dist/learn-6D45W6YN.js.map +0 -1
  575. package/dist/line-item-writes-SB6B75MY.js +0 -212
  576. package/dist/line-item-writes-SB6B75MY.js.map +0 -1
  577. package/dist/line-items-22S6PURM.js +0 -107
  578. package/dist/link-CLMY2YW5.js +0 -70
  579. package/dist/link-CLMY2YW5.js.map +0 -1
  580. package/dist/linkedin-GTYWIRDX.js +0 -1498
  581. package/dist/linkedin-GTYWIRDX.js.map +0 -1
  582. package/dist/linkedin-person-LBU3VGNY.js +0 -142
  583. package/dist/linkedin-person-LBU3VGNY.js.map +0 -1
  584. package/dist/list-MWGLVZR3.js +0 -89
  585. package/dist/list-MWGLVZR3.js.map +0 -1
  586. package/dist/list-MXUPVC2W.js +0 -64
  587. package/dist/list-MXUPVC2W.js.map +0 -1
  588. package/dist/list-P6IN6K26.js +0 -226
  589. package/dist/list-P6IN6K26.js.map +0 -1
  590. package/dist/list-SZKENQ2B.js +0 -320
  591. package/dist/list-SZKENQ2B.js.map +0 -1
  592. package/dist/log-XOYBG7KX.js +0 -98
  593. package/dist/log-XOYBG7KX.js.map +0 -1
  594. package/dist/make-ZBUVEPHX.js +0 -1391
  595. package/dist/make-ZBUVEPHX.js.map +0 -1
  596. package/dist/map-VBYQNHJR.js +0 -519
  597. package/dist/map-VBYQNHJR.js.map +0 -1
  598. package/dist/mcp-RSB47JCJ.js +0 -1017
  599. package/dist/mcp-RSB47JCJ.js.map +0 -1
  600. package/dist/media-sources-ZCXMQCSE.js +0 -35
  601. package/dist/members-QL5TXGND.js +0 -50
  602. package/dist/members-QL5TXGND.js.map +0 -1
  603. package/dist/normalize-YWNW62HI.js +0 -145
  604. package/dist/normalize-YWNW62HI.js.map +0 -1
  605. package/dist/options-5RRLBIVY.js +0 -126
  606. package/dist/options-5RRLBIVY.js.map +0 -1
  607. package/dist/organization-FZUYEBEE.js +0 -949
  608. package/dist/organization-FZUYEBEE.js.map +0 -1
  609. package/dist/people-FO6OCDP5.js +0 -171
  610. package/dist/people-FO6OCDP5.js.map +0 -1
  611. package/dist/people-XGMOJZTE.js +0 -161
  612. package/dist/people-XGMOJZTE.js.map +0 -1
  613. package/dist/performance-7AXRRE5J.js +0 -28
  614. package/dist/performance-USJY2HVB.js +0 -6294
  615. package/dist/performance-USJY2HVB.js.map +0 -1
  616. package/dist/pipedrive-LWAH5BTV.js +0 -533
  617. package/dist/pipedrive-LWAH5BTV.js.map +0 -1
  618. package/dist/preview-5ZMTNYCI.js +0 -103
  619. package/dist/preview-5ZMTNYCI.js.map +0 -1
  620. package/dist/promoted-tweet-writes-VW6XCOL3.js +0 -184
  621. package/dist/promoted-tweet-writes-VW6XCOL3.js.map +0 -1
  622. package/dist/promoted-tweets-5Y6RGBJS.js +0 -119
  623. package/dist/publish-ERJPN3EL.js +0 -430
  624. package/dist/publish-ERJPN3EL.js.map +0 -1
  625. package/dist/reddit-OKEJ7EIX.js +0 -30
  626. package/dist/refresh-ACG34ZRD.js +0 -100
  627. package/dist/refresh-ACG34ZRD.js.map +0 -1
  628. package/dist/release-XYWQM7DE.js +0 -66
  629. package/dist/release-XYWQM7DE.js.map +0 -1
  630. package/dist/remove-NJQM5BGF.js +0 -54
  631. package/dist/remove-NJQM5BGF.js.map +0 -1
  632. package/dist/reopen-BO6G2RRS.js +0 -69
  633. package/dist/reopen-BO6G2RRS.js.map +0 -1
  634. package/dist/rerun-BVUWQCAR.js +0 -101
  635. package/dist/rerun-BVUWQCAR.js.map +0 -1
  636. package/dist/research-2V6WG3XG.js +0 -266
  637. package/dist/research-2V6WG3XG.js.map +0 -1
  638. package/dist/research-G7BDWYEG.js +0 -78
  639. package/dist/reset-2DDLUZGB.js +0 -58
  640. package/dist/reset-2DDLUZGB.js.map +0 -1
  641. package/dist/reset-JPOOEIX7.js +0 -58
  642. package/dist/reset-JPOOEIX7.js.map +0 -1
  643. package/dist/resolve-J4TIUP3W.js +0 -125
  644. package/dist/resolve-J4TIUP3W.js.map +0 -1
  645. package/dist/retry-MNGVR37L.js +0 -66
  646. package/dist/retry-MNGVR37L.js.map +0 -1
  647. package/dist/retry-Y4FLZQVK.js +0 -66
  648. package/dist/retry-Y4FLZQVK.js.map +0 -1
  649. package/dist/revenue-AVLQNUT2.js +0 -99
  650. package/dist/revenue-AVLQNUT2.js.map +0 -1
  651. package/dist/rules-UBZ32MQY.js +0 -163
  652. package/dist/rules-UBZ32MQY.js.map +0 -1
  653. package/dist/run-VGOXHEO5.js +0 -78
  654. package/dist/run-XJXE63QH.js +0 -73
  655. package/dist/run-XJXE63QH.js.map +0 -1
  656. package/dist/scaffold-ad-6PZGNV3I.js +0 -1600
  657. package/dist/scaffold-ad-6PZGNV3I.js.map +0 -1
  658. package/dist/scaffold-static-ad-2QFZLGHK.js +0 -998
  659. package/dist/scaffold-static-ad-2QFZLGHK.js.map +0 -1
  660. package/dist/scaffold-video-5RUBD5YB.js +0 -888
  661. package/dist/scaffold-video-5RUBD5YB.js.map +0 -1
  662. package/dist/schedule-G2AETZEM.js +0 -65
  663. package/dist/schedule-G2AETZEM.js.map +0 -1
  664. package/dist/scheduled-agents-JJAT2UDK.js +0 -59
  665. package/dist/schema-CCGBDISR.js +0 -136
  666. package/dist/schema-CCGBDISR.js.map +0 -1
  667. package/dist/schema-WEIPH4ND.js +0 -241
  668. package/dist/search-7GBSNW7V.js +0 -229
  669. package/dist/search-7GBSNW7V.js.map +0 -1
  670. package/dist/select-OQQ6DG2X.js +0 -134
  671. package/dist/select-OQQ6DG2X.js.map +0 -1
  672. package/dist/set-HOITXI2N.js +0 -274
  673. package/dist/set-HOITXI2N.js.map +0 -1
  674. package/dist/set-prompt-ZR2FYPQW.js +0 -204
  675. package/dist/set-prompt-ZR2FYPQW.js.map +0 -1
  676. package/dist/setup-links-R55MLOHW.js +0 -145
  677. package/dist/setup-links-R55MLOHW.js.map +0 -1
  678. package/dist/shopify-GGDNTMXH.js +0 -4032
  679. package/dist/shopify-GGDNTMXH.js.map +0 -1
  680. package/dist/site-QM6WTCDR.js +0 -181
  681. package/dist/site-QM6WTCDR.js.map +0 -1
  682. package/dist/sources-E2EM2SNG.js +0 -30
  683. package/dist/sources-RI4IBRB3.js +0 -463
  684. package/dist/sources-RI4IBRB3.js.map +0 -1
  685. package/dist/stale-MBQ37TKC.js +0 -92
  686. package/dist/stale-MBQ37TKC.js.map +0 -1
  687. package/dist/status-FVVTWIY7.js +0 -68
  688. package/dist/status-FVVTWIY7.js.map +0 -1
  689. package/dist/stock-FT4NHZXJ.js +0 -213
  690. package/dist/stock-FT4NHZXJ.js.map +0 -1
  691. package/dist/sync-FZQUMCEN.js +0 -58
  692. package/dist/sync-FZQUMCEN.js.map +0 -1
  693. package/dist/sync-definition-AQVZ3JWE.js +0 -74
  694. package/dist/tags-35NZJVQH.js +0 -24
  695. package/dist/tags-35NZJVQH.js.map +0 -1
  696. package/dist/tags-FOPSMF5B.js +0 -24
  697. package/dist/tags-FOPSMF5B.js.map +0 -1
  698. package/dist/tags-GHXYLYCU.js +0 -26
  699. package/dist/tags-OPUZMCDP.js +0 -182
  700. package/dist/tags-OPUZMCDP.js.map +0 -1
  701. package/dist/tags-XYNTGG5R.js +0 -24
  702. package/dist/tags-XYNTGG5R.js.map +0 -1
  703. package/dist/targeting-criteria-HJGUXYDZ.js +0 -113
  704. package/dist/targets-ALLAKOF4.js +0 -110
  705. package/dist/targets-ALLAKOF4.js.map +0 -1
  706. package/dist/testimonials-RJGFPCWC.js +0 -32
  707. package/dist/top-companies-54CSTO3Q.js +0 -250
  708. package/dist/top-companies-54CSTO3Q.js.map +0 -1
  709. package/dist/transcript-P4VCJV4Y.js +0 -168
  710. package/dist/transcript-P4VCJV4Y.js.map +0 -1
  711. package/dist/translate-FFNWW66Z.js +0 -607
  712. package/dist/translate-FFNWW66Z.js.map +0 -1
  713. package/dist/triggers-VX4QYB7T.js +0 -148
  714. package/dist/triggers-VX4QYB7T.js.map +0 -1
  715. package/dist/unlink-FFH7O6HU.js +0 -73
  716. package/dist/unlink-FFH7O6HU.js.map +0 -1
  717. package/dist/unstage-RAWC4IZG.js +0 -92
  718. package/dist/unstage-RAWC4IZG.js.map +0 -1
  719. package/dist/update-6GLFLB2Z.js +0 -175
  720. package/dist/update-6GLFLB2Z.js.map +0 -1
  721. package/dist/update-OJ3OZCJP.js +0 -69
  722. package/dist/update-OJ3OZCJP.js.map +0 -1
  723. package/dist/update-TZ7D7JGT.js +0 -193
  724. package/dist/update-TZ7D7JGT.js.map +0 -1
  725. package/dist/update-ZD5O3VU7.js +0 -237
  726. package/dist/update-ZD5O3VU7.js.map +0 -1
  727. package/dist/upload-QA3ZAQ7I.js +0 -185
  728. package/dist/upload-QA3ZAQ7I.js.map +0 -1
  729. package/dist/url-params-D3QZKPUJ.js +0 -102
  730. package/dist/url-params-D3QZKPUJ.js.map +0 -1
  731. package/dist/validate-AHDXK4NQ.js +0 -180
  732. package/dist/validate-AHDXK4NQ.js.map +0 -1
  733. package/dist/videos-J45JFDMU.js +0 -41
  734. package/dist/viewer-check-NXF23BG5.js +0 -89
  735. package/dist/visuals-YCW3QLUS.js +0 -129
  736. package/dist/visuals-YCW3QLUS.js.map +0 -1
  737. package/dist/web-4AI7PPJ6.js +0 -180
  738. package/dist/web-4AI7PPJ6.js.map +0 -1
  739. package/dist/winning-ads-WRAW2TC5.js +0 -88
  740. package/dist/write-commands-Z2PWVPT6.js +0 -1555
  741. package/dist/write-commands-Z2PWVPT6.js.map +0 -1
  742. package/dist/x-KQMYVN43.js +0 -47
  743. /package/dist/{actions-U4QMVB4H.js.map → actions-KWHMTMLD.js.map} +0 -0
  744. /package/dist/{ads-T42GRQ7H.js.map → ads-7Q7PRFJ4.js.map} +0 -0
  745. /package/dist/{avatars-D7S43BGZ.js.map → avatars-PILXCCPG.js.map} +0 -0
  746. /package/dist/{campaigns-Q363NCWU.js.map → campaigns-XS52PZQL.js.map} +0 -0
  747. /package/dist/{canvas-T6ALQYZT.js.map → canvas-3AHETASK.js.map} +0 -0
  748. /package/dist/{check-6QZ2U6WJ.js.map → check-3SVCK3V3.js.map} +0 -0
  749. /package/dist/{chunk-RKGYVC2C.js.map → chunk-2CV2LEJN.js.map} +0 -0
  750. /package/dist/{chunk-I3HEOUZT.js.map → chunk-2PNBK7KZ.js.map} +0 -0
  751. /package/dist/{chunk-F7DCEGAA.js.map → chunk-3B7GRVIM.js.map} +0 -0
  752. /package/dist/{chunk-XDFXSMPX.js.map → chunk-3MJTL763.js.map} +0 -0
  753. /package/dist/{chunk-ATUFMGY3.js.map → chunk-4GM3TBGL.js.map} +0 -0
  754. /package/dist/{chunk-FEP257NO.js.map → chunk-5UG7AJB5.js.map} +0 -0
  755. /package/dist/{chunk-SBP7CF7S.js.map → chunk-AOXHDVWS.js.map} +0 -0
  756. /package/dist/{chunk-O2YPJPMO.js.map → chunk-AYW4VFTH.js.map} +0 -0
  757. /package/dist/{chunk-NLWOT26L.js.map → chunk-BMUAE5IR.js.map} +0 -0
  758. /package/dist/{chunk-ACIBARQU.js.map → chunk-BPQY4KIM.js.map} +0 -0
  759. /package/dist/{chunk-2BRVIOKO.js.map → chunk-BYYIJMLP.js.map} +0 -0
  760. /package/dist/{chunk-TVZCWBC5.js.map → chunk-CDU64GKK.js.map} +0 -0
  761. /package/dist/{chunk-E2BFPWA5.js.map → chunk-DA634ZIV.js.map} +0 -0
  762. /package/dist/{chunk-BDULC6LM.js.map → chunk-DJLTDVRD.js.map} +0 -0
  763. /package/dist/{chunk-GB2U76OM.js.map → chunk-GHEURTBN.js.map} +0 -0
  764. /package/dist/{chunk-JY2NBRHH.js.map → chunk-H2IG6MOX.js.map} +0 -0
  765. /package/dist/{chunk-KN2UAGSU.js.map → chunk-HVVE3GT6.js.map} +0 -0
  766. /package/dist/{chunk-P6Z44HNW.js.map → chunk-IAOXI7MJ.js.map} +0 -0
  767. /package/dist/{chunk-YNVE62WW.js.map → chunk-M6RQJCDW.js.map} +0 -0
  768. /package/dist/{chunk-6XOAPUW4.js.map → chunk-N5IR2T2B.js.map} +0 -0
  769. /package/dist/{chunk-ODDHGVQE.js.map → chunk-NZ3PQBRV.js.map} +0 -0
  770. /package/dist/{chunk-BPUNOSXM.js.map → chunk-NZFVC7RP.js.map} +0 -0
  771. /package/dist/{chunk-TJZKZKCQ.js.map → chunk-QLSNKH5D.js.map} +0 -0
  772. /package/dist/{chunk-AQHT2XKB.js.map → chunk-RN3IVT3B.js.map} +0 -0
  773. /package/dist/{chunk-LRWUQABW.js.map → chunk-RZOHIOPP.js.map} +0 -0
  774. /package/dist/{chunk-EMZ6P2KH.js.map → chunk-SELCZP76.js.map} +0 -0
  775. /package/dist/{chunk-MJ5JHMLF.js.map → chunk-T55DY36I.js.map} +0 -0
  776. /package/dist/{chunk-QNPOFQV5.js.map → chunk-T5FACY43.js.map} +0 -0
  777. /package/dist/{chunk-DIOKO2YD.js.map → chunk-TR72BZ4D.js.map} +0 -0
  778. /package/dist/{chunk-XFARJ2SL.js.map → chunk-UTOVP53O.js.map} +0 -0
  779. /package/dist/{chunk-WCCFBAH4.js.map → chunk-VDHPAQUM.js.map} +0 -0
  780. /package/dist/{chunk-QZMBPEUW.js.map → chunk-VPWLH6VS.js.map} +0 -0
  781. /package/dist/{chunk-LDF2VXPC.js.map → chunk-VXLFFMW6.js.map} +0 -0
  782. /package/dist/{chunk-CPRSVECH.js.map → chunk-VZQHMRYM.js.map} +0 -0
  783. /package/dist/{chunk-DZUYNVKJ.js.map → chunk-X4NF7IMQ.js.map} +0 -0
  784. /package/dist/{chunk-PSPSKOQR.js.map → chunk-X6CSCKXX.js.map} +0 -0
  785. /package/dist/{chunk-2XKSMHDO.js.map → chunk-Y4XW2LW3.js.map} +0 -0
  786. /package/dist/{chunk-INY6DR2Y.js.map → chunk-YAMDF3DT.js.map} +0 -0
  787. /package/dist/{chunk-3TWET6OD.js.map → chunk-YCCTIFI7.js.map} +0 -0
  788. /package/dist/{chunk-2FBSB7UF.js.map → chunk-YWHOPJG5.js.map} +0 -0
  789. /package/dist/{chunk-6H6BJBBS.js.map → chunk-Z7WMTBGD.js.map} +0 -0
  790. /package/dist/{companies-VM4DJCIO.js.map → companies-6FM3CALY.js.map} +0 -0
  791. /package/dist/{connect-4G722CGF.js.map → connect-J6M3W7WW.js.map} +0 -0
  792. /package/dist/{creatives-D2756SYZ.js.map → creatives-PW2P7VMU.js.map} +0 -0
  793. /package/dist/{customers-6X6LULB6.js.map → customers-OHB5EY7Z.js.map} +0 -0
  794. /package/dist/{fit-4CVULFD2.js.map → fit-BNMTWIDZ.js.map} +0 -0
  795. /package/dist/{ideas-HHWTU7F2.js.map → ideas-UK74GJGE.js.map} +0 -0
  796. /package/dist/{images-BB6BYS54.js.map → images-OH7KDUR5.js.map} +0 -0
  797. /package/dist/{ingest-S6HP4LXI.js.map → ingest-2BC3W4WC.js.map} +0 -0
  798. /package/dist/{inspect-KC5LTH4E.js.map → inspect-ZMCRHR2P.js.map} +0 -0
  799. /package/dist/{line-items-22S6PURM.js.map → line-items-RUC54PIV.js.map} +0 -0
  800. /package/dist/{media-sources-ZCXMQCSE.js.map → media-sources-KUEQ45V5.js.map} +0 -0
  801. /package/dist/{performance-7AXRRE5J.js.map → performance-BIH653SL.js.map} +0 -0
  802. /package/dist/{promoted-tweets-5Y6RGBJS.js.map → promoted-tweets-6YCNFVJK.js.map} +0 -0
  803. /package/dist/{reddit-OKEJ7EIX.js.map → reddit-Z4REP3DB.js.map} +0 -0
  804. /package/dist/{research-G7BDWYEG.js.map → research-M6YZMTCC.js.map} +0 -0
  805. /package/dist/{run-VGOXHEO5.js.map → run-MBVV64FY.js.map} +0 -0
  806. /package/dist/{scheduled-agents-JJAT2UDK.js.map → scheduled-agents-T7CITLJL.js.map} +0 -0
  807. /package/dist/{schema-WEIPH4ND.js.map → schema-6WONG4NR.js.map} +0 -0
  808. /package/dist/{sources-E2EM2SNG.js.map → sources-3RQZ3AR2.js.map} +0 -0
  809. /package/dist/{sync-definition-AQVZ3JWE.js.map → sync-definition-MR7XESTS.js.map} +0 -0
  810. /package/dist/{tags-GHXYLYCU.js.map → tags-I3AJEMKF.js.map} +0 -0
  811. /package/dist/{targeting-criteria-HJGUXYDZ.js.map → targeting-criteria-QFFAYBGE.js.map} +0 -0
  812. /package/dist/{testimonials-RJGFPCWC.js.map → testimonials-67Q3OTBU.js.map} +0 -0
  813. /package/dist/{videos-J45JFDMU.js.map → videos-URSOTIHU.js.map} +0 -0
  814. /package/dist/{viewer-check-NXF23BG5.js.map → viewer-check-N3SEOOMX.js.map} +0 -0
  815. /package/dist/{winning-ads-WRAW2TC5.js.map → winning-ads-TCRRYKCR.js.map} +0 -0
  816. /package/dist/{x-KQMYVN43.js.map → x-K6IWYLK3.js.map} +0 -0
@@ -0,0 +1,889 @@
1
+ import {
2
+ stampCompositionDims
3
+ } from "./chunk-5MBPIONY.js";
4
+ import {
5
+ isValidScaffoldSlug,
6
+ resolveCastAvatars
7
+ } from "./chunk-N2MVLNJH.js";
8
+ import {
9
+ SHIPPED_CAPTIONS_DIR,
10
+ SHIPPED_OVERLAY_COMPOSITION_DIR,
11
+ fail,
12
+ fileExists,
13
+ loadAssetText,
14
+ parseElements,
15
+ resolveModel
16
+ } from "./chunk-D7DLBQLS.js";
17
+ import {
18
+ readDefinitionPlatforms,
19
+ syncCreativeDefinitionBestEffort
20
+ } from "./chunk-GHEURTBN.js";
21
+ import "./chunk-YWHOPJG5.js";
22
+ import "./chunk-DA634ZIV.js";
23
+ import {
24
+ REBUILD_FILE,
25
+ annotateBlueprintWithElements,
26
+ avatarsNotCast,
27
+ buildCreativeDefinition,
28
+ buildOverlayHtml,
29
+ cachedJev,
30
+ canvasDims,
31
+ castAvatarsOnElements,
32
+ computeSourceSha,
33
+ definitionPlatformsOf,
34
+ genAspectsFor,
35
+ languageCodeNamed,
36
+ readBlueprintSpeech,
37
+ renderStyleProjectionFromValue,
38
+ resolveAspect,
39
+ resolveFormats,
40
+ scaffoldVideoCanvas,
41
+ slimBlueprintForSelection,
42
+ spokenLanguage,
43
+ titleFromSlug,
44
+ videoReport,
45
+ voiceGenderModel,
46
+ writeSceneFiles,
47
+ writeStyleProjection
48
+ } from "./chunk-Y4XW2LW3.js";
49
+ import "./chunk-ECRLT7YJ.js";
50
+ import "./chunk-CZWMU2GB.js";
51
+ import "./chunk-SY7CUZGW.js";
52
+ import "./chunk-QGIRVS5R.js";
53
+ import "./chunk-FU3YCG3Z.js";
54
+ import "./chunk-EKX37C3T.js";
55
+ import "./chunk-JHPZATWG.js";
56
+ import "./chunk-ZBSG24TQ.js";
57
+ import "./chunk-CV74M3H6.js";
58
+ import "./chunk-LS5DL5IN.js";
59
+ import "./chunk-U4SWDSLZ.js";
60
+ import {
61
+ holdUnbilledSpend
62
+ } from "./chunk-WJL56TQE.js";
63
+ import {
64
+ findWorkspaceRoot,
65
+ resolveRelativeCanvasPaths
66
+ } from "./chunk-PDHKESLI.js";
67
+ import {
68
+ ValidationError,
69
+ createEngineFromEnv,
70
+ defaultRegistry,
71
+ validateCanvasDeep
72
+ } from "./chunk-IAOXI7MJ.js";
73
+ import "./chunk-SELCZP76.js";
74
+ import "./chunk-XBLVA6BC.js";
75
+ import "./chunk-DGCUPJZD.js";
76
+ import "./chunk-2AW62CH3.js";
77
+ import "./chunk-WE2FY3CF.js";
78
+ import "./chunk-IWPYFKQZ.js";
79
+ import "./chunk-2Z2AEFVW.js";
80
+ import {
81
+ AD_IMAGE_MODEL,
82
+ BLUEPRINT_ANALYSIS_MODEL,
83
+ DEFAULT_VIDEO_GENERATE_MODEL,
84
+ MODEL_ROLES,
85
+ SEEDANCE_DURATIONS,
86
+ VIDEO_DECONSTRUCT_MODEL
87
+ } from "./chunk-NZZ7ATO5.js";
88
+ import "./chunk-QKPQ3YUV.js";
89
+ import "./chunk-LNOI2WZ5.js";
90
+ import "./chunk-6U2SODK6.js";
91
+ import {
92
+ askJevQuestions
93
+ } from "./chunk-HSAS5RPH.js";
94
+ import "./chunk-YSZAKQIA.js";
95
+ import {
96
+ MAX_ASSET_BYTES
97
+ } from "./chunk-AEYE57MX.js";
98
+ import {
99
+ sha256Hex
100
+ } from "./chunk-WZ5YRUQU.js";
101
+ import "./chunk-JKFQQAYM.js";
102
+ import {
103
+ fetchExternalBytes
104
+ } from "./chunk-PH27RN3O.js";
105
+ import "./chunk-4BRNQDYX.js";
106
+ import "./chunk-ZJY3ACX3.js";
107
+ import "./chunk-RJHGIRU2.js";
108
+ import "./chunk-WCU362Z6.js";
109
+ import "./chunk-AFA4TY5Q.js";
110
+ import "./chunk-GIWHHCD6.js";
111
+ import "./chunk-PNGXJPM5.js";
112
+ import "./chunk-SOPVIIUW.js";
113
+ import "./chunk-G4FG5EQO.js";
114
+ import "./chunk-CS4VA3GQ.js";
115
+ import "./chunk-433NCHRS.js";
116
+ import "./chunk-SZCEKDLE.js";
117
+ import "./chunk-2UFHCU7A.js";
118
+ import "./chunk-XQIAWIO5.js";
119
+ import {
120
+ writeJson
121
+ } from "./chunk-2TEZDAAR.js";
122
+ import "./chunk-YQSBHWOI.js";
123
+
124
+ // src/commands/canvas/scaffold-video.ts
125
+ import { cp, mkdir, readFile as readFile3, rm as rm2, writeFile } from "fs/promises";
126
+ import { tmpdir as tmpdir2 } from "os";
127
+ import path2 from "path";
128
+ import { defineCommand } from "citty";
129
+
130
+ // src/engine/scaffold/lib/model-router.ts
131
+ var SEEDANCE = MODEL_ROLES.videoRouterWorkhorse.model;
132
+ var VEO = MODEL_ROLES.videoRouterRealFace.model;
133
+ var VEO_FAST = MODEL_ROLES.videoRouterRealFaceEconomy.model;
134
+ var KLING = MODEL_ROLES.videoRouterMotion.model;
135
+ var GEMINI_OMNI = MODEL_ROLES.videoDefault.model;
136
+ function routeVideoModel(input) {
137
+ const budget = input.budget ?? "standard";
138
+ const signals = [];
139
+ if (input.hasRealFace) {
140
+ signals.push({ model: VEO, weight: 1200, because: "real human likeness \u2192 Veo (dodges the real-person filter)" });
141
+ }
142
+ if (input.needsMotionTransfer) {
143
+ signals.push({ model: KLING, weight: 800, because: "motion-transfer / dynamic multi-shot \u2192 Kling" });
144
+ }
145
+ if (input.needsIdentity && !input.hasRealFace) {
146
+ signals.push({ model: SEEDANCE, weight: 300, because: "identity/product consistency \u2192 Seedance workhorse" });
147
+ }
148
+ signals.push({ model: GEMINI_OMNI, weight: 100, because: "default \u2014 native audio in one call" });
149
+ const scores = { [SEEDANCE]: 0, [VEO]: 0, [VEO_FAST]: 0, [KLING]: 0, [GEMINI_OMNI]: 0 };
150
+ let top = signals[0];
151
+ for (const s of signals) {
152
+ scores[s.model] = (scores[s.model] ?? 0) + s.weight;
153
+ if ((scores[s.model] ?? 0) >= (scores[top.model] ?? 0)) top = s;
154
+ }
155
+ let model = top.model;
156
+ let reason = top.because;
157
+ if (model === VEO && budget === "economy") {
158
+ model = VEO_FAST;
159
+ reason = `${reason}, on the economy fast tier`;
160
+ scores[VEO_FAST] = scores[VEO] ?? 0;
161
+ }
162
+ return { model, reason, scores };
163
+ }
164
+
165
+ // src/engine/nodes/local/lib/sceneDetect.ts
166
+ import { execFile } from "child_process";
167
+ import { mkdtemp, readdir, readFile, rm } from "fs/promises";
168
+ import { tmpdir } from "os";
169
+ import { join } from "path";
170
+ import { promisify } from "util";
171
+ var execFileAsync = promisify(execFile);
172
+ var PYSCENEDETECT_THRESHOLD = 18;
173
+ var PYSCENEDETECT_MIN_SCENE_LEN_S = 0.25;
174
+ var PYSCENEDETECT_RECHECK_THRESHOLD = 27;
175
+ var PYSCENEDETECT_RECHECK_MIN_SCENE_LEN_S = 0.6;
176
+ function isLikelyOverSegmented(cuts, opts = {}) {
177
+ const minCuts = opts.minCuts ?? 6;
178
+ const maxMedianGap = opts.medianGapS ?? 2;
179
+ const sorted = [...cuts].filter((c) => Number.isFinite(c) && c > 0).sort((a, b) => a - b);
180
+ if (sorted.length < minCuts) return false;
181
+ const gaps = [];
182
+ let prev = 0;
183
+ for (const c of sorted) {
184
+ gaps.push(c - prev);
185
+ prev = c;
186
+ }
187
+ gaps.sort((a, b) => a - b);
188
+ const mid = Math.floor(gaps.length / 2);
189
+ const median = gaps.length % 2 ? gaps[mid] : (gaps[mid - 1] + gaps[mid]) / 2;
190
+ return median < maxMedianGap;
191
+ }
192
+ function mergeRecheckCuts(firstPass, recheck, isolationS = 0.75) {
193
+ const kept = [...new Set(recheck)].sort((a, b) => a - b);
194
+ const extras = [...new Set(firstPass)].filter((c) => kept.every((k) => Math.abs(k - c) >= isolationS)).sort((a, b) => a - b);
195
+ const isolated = extras.filter((c, i) => {
196
+ const prev = extras[i - 1];
197
+ const next = extras[i + 1];
198
+ return (prev === void 0 || c - prev >= isolationS) && (next === void 0 || next - c >= isolationS);
199
+ });
200
+ return [.../* @__PURE__ */ new Set([...kept, ...isolated])].sort((a, b) => a - b);
201
+ }
202
+ function timecodeToSeconds(tc) {
203
+ const m = tc.trim().match(/^(\d+):(\d{1,2}):(\d{1,2}(?:\.\d+)?)$/);
204
+ if (!m) return null;
205
+ const h = Number.parseInt(m[1] ?? "", 10);
206
+ const min = Number.parseInt(m[2] ?? "", 10);
207
+ const s = Number.parseFloat(m[3] ?? "");
208
+ if (!Number.isFinite(h) || !Number.isFinite(min) || !Number.isFinite(s)) return null;
209
+ return h * 3600 + min * 60 + s;
210
+ }
211
+ function parsePySceneDetectCsvCuts(csv) {
212
+ const firstLine = csv.split(/\r?\n/, 1)[0] ?? "";
213
+ if (!/^\s*Timecode List:/i.test(firstLine)) return [];
214
+ const cuts = [];
215
+ for (const cell of firstLine.split(",").slice(1)) {
216
+ const t = timecodeToSeconds(cell);
217
+ if (t !== null && t > 0) cuts.push(Math.round(t * 1e3) / 1e3);
218
+ }
219
+ return [...new Set(cuts)].sort((a, b) => a - b);
220
+ }
221
+ async function runSceneDetectOnce(filePath, threshold, minSceneLenS, timeoutMs) {
222
+ const outDir = await mkdtemp(join(tmpdir(), "baker-scenedetect-"));
223
+ try {
224
+ await execFileAsync(
225
+ "scenedetect",
226
+ [
227
+ "--input",
228
+ filePath,
229
+ "--output",
230
+ outDir,
231
+ "detect-content",
232
+ "--threshold",
233
+ String(threshold),
234
+ "--min-scene-len",
235
+ String(minSceneLenS),
236
+ "list-scenes",
237
+ "--quiet"
238
+ ],
239
+ { encoding: "utf-8", maxBuffer: 32 * 1024 * 1024, timeout: timeoutMs }
240
+ );
241
+ const csvName = (await readdir(outDir)).find((f) => f.toLowerCase().endsWith(".csv"));
242
+ if (!csvName) return [];
243
+ return parsePySceneDetectCsvCuts(await readFile(join(outDir, csvName), "utf-8"));
244
+ } finally {
245
+ await rm(outDir, { recursive: true, force: true });
246
+ }
247
+ }
248
+ async function detectSceneCutsPySceneDetect(filePath, opts = {}) {
249
+ const pinned = opts.threshold !== void 0;
250
+ const threshold = opts.threshold ?? PYSCENEDETECT_THRESHOLD;
251
+ const minSceneLenS = opts.minSceneLenS ?? PYSCENEDETECT_MIN_SCENE_LEN_S;
252
+ const timeoutMs = opts.timeout_ms ?? 12e4;
253
+ const cuts = await runSceneDetectOnce(filePath, threshold, minSceneLenS, timeoutMs);
254
+ if (!pinned && isLikelyOverSegmented(cuts)) {
255
+ const rechecked = await runSceneDetectOnce(
256
+ filePath,
257
+ PYSCENEDETECT_RECHECK_THRESHOLD,
258
+ PYSCENEDETECT_RECHECK_MIN_SCENE_LEN_S,
259
+ timeoutMs
260
+ );
261
+ return mergeRecheckCuts(cuts, rechecked);
262
+ }
263
+ return cuts;
264
+ }
265
+
266
+ // src/commands/canvas/gitignore.ts
267
+ import { appendFile, readFile as readFile2 } from "fs/promises";
268
+ import path from "path";
269
+ function missingGitignoreEntries(existing, entries) {
270
+ const present = new Set(
271
+ existing.split("\n").map((l) => l.trim().replace(/\/+$/, "")).filter((l) => l.length > 0 && !l.startsWith("#"))
272
+ );
273
+ return entries.filter((e) => !present.has(e.trim().replace(/\/+$/, "")));
274
+ }
275
+ async function ensureGitignore(dir, entries) {
276
+ const file = path.join(dir, ".gitignore");
277
+ let existing;
278
+ try {
279
+ existing = await readFile2(file, "utf8");
280
+ } catch {
281
+ return;
282
+ }
283
+ const missing = missingGitignoreEntries(existing, entries);
284
+ if (missing.length === 0) return;
285
+ const prefix = existing.endsWith("\n") || existing.length === 0 ? "" : "\n";
286
+ await appendFile(file, `${prefix}
287
+ # Baker canvas (engine cache + scaffold working files)
288
+ ${missing.join("\n")}
289
+ `);
290
+ }
291
+
292
+ // src/commands/canvas/scaffold-video.ts
293
+ var SELECT_SYSTEM = 'You identify the RECURRING, identity-critical visual elements of a video ad from its deconstruction blueprint \u2014 the people, animals, products, and logos that must stay consistent every time they appear, so a faithful reproduction grounds each in ONE real reference image reused across every frame it appears in. Output ONLY a JSON object of the form { "elements": [ ... ] }, no prose.';
294
+ var SELECT_PROMPT = `VIDEO DECONSTRUCTION BLUEPRINT (video-deconstruct/1):
295
+ {{blueprint}}
296
+
297
+ List ONLY the elements worth keeping consistent across frames \u2014 the ones a reproduction must ground in a real asset:
298
+ - each recurring person from global.cast (a presenter/actor/persona) -> type "person"
299
+ - a recurring animal/pet/character with a stable identity -> type "animal"
300
+ - a showcased product, package, card, or device the ad sells or demonstrates -> type "product"
301
+ - the advertiser brand logo/wordmark (from global.branding) -> type "logo"
302
+ - a recurring trust/rating/certification badge -> type "badge"
303
+ - the dominant recording set/location the scenes share (e.g. the same living room, car interior, kitchen) -> type "location"
304
+
305
+ DROP one-off background extras and incidental props \u2014 but the shared set/location is NOT generic scenery: pin it as ONE "location" element so the room stays identical across scenes. A person in global.cast is almost always recurring. Keep at most ~8.
306
+
307
+ ONE PERSON, MULTIPLE LOOKS: if a single individual plays MULTIPLE personas or wardrobes (e.g. a creator as a skeptic in one outfit and a believer in another, or a before/after), emit ONE element PER look (so each outfit gets its own real reference image) and link the extra looks to the first via "same_as" \u2014 they are the SAME person, only the wardrobe/state differs, so the face must stay identical.
308
+
309
+ For each kept element return: { "type": one of person|animal|product|logo|badge|location, "label": a short UPPER_SNAKE_CASE name (e.g. HERO, CREATOR_SKEPTIC, INSURANCE_CARD, LOGO), "description": a concrete reusable description to source/shoot the real asset \u2014 for a person/animal give a NEUTRAL castable role (e.g. "hero pet-owner, woman in her 30s" or "a small beagle"), NOT the original individual's literal face/identity: we RECAST with a FRESH person/animal, so never tell the agent to reuse the original. "expression": a living subject's typical expression or null, "cast_id": the global.cast id if it maps to one else null, "same_as": the label of another element this is the SAME individual as (different wardrobe/persona) else null, "scenes": the 0-based indices of ONLY the scenes where the element is ACTUALLY VISIBLE ON SCREEN \u2014 judged from that scene's start_frame_prompt / end_frame_prompt subjects and its action_detail, NOT from who is merely speaking. A narrator heard over b-roll is NOT present in that b-roll scene; a dog-running cutaway does NOT contain the couch creator just because she talks across it. Do NOT pad the list \u2014 an element wrongly listed in a scene makes the reproduction render the wrong subject there (e.g. the creator appearing in a pure-dog b-roll). When in doubt, leave a scene OUT. Output ONLY the JSON object.`;
310
+ async function loadTranscriptBestEffort(ref) {
311
+ if (!ref) return void 0;
312
+ try {
313
+ return await loadAssetText(ref, "deconstruct transcript");
314
+ } catch {
315
+ return void 0;
316
+ }
317
+ }
318
+ async function stageCaptions(outDir, transcript) {
319
+ const text = transcript?.trim();
320
+ if (!text || text === "[]") return {};
321
+ const compositionPath = path2.join(outDir, "tiktok-captions-composition");
322
+ await cp(SHIPPED_CAPTIONS_DIR, compositionPath, { recursive: true });
323
+ return { compositionPath };
324
+ }
325
+ async function detectShotCutsBestEffort(videoPath, threshold) {
326
+ try {
327
+ const cuts = await detectSceneCutsPySceneDetect(videoPath, threshold ? { threshold } : {});
328
+ if (cuts.length > 0) {
329
+ process.stderr.write(`Detected ${cuts.length} shot cut(s) via PySceneDetect: ${cuts.join(", ")}s
330
+ `);
331
+ } else {
332
+ process.stderr.write("PySceneDetect ran but found no hard cuts; using LLM scene boundaries.\n");
333
+ }
334
+ return cuts;
335
+ } catch (e) {
336
+ const msg = e instanceof Error ? e.message : String(e);
337
+ const code = e?.code;
338
+ const missing = code === "ENOENT" || /ENOENT|not found|command not found/i.test(msg);
339
+ if (missing) {
340
+ process.stderr.write(
341
+ "WARNING: `scenedetect` (PySceneDetect) is NOT installed \u2014 falling back to LLM-only scene boundaries, which under-segments (coarse 9-15s scenes instead of the real 1-4s cuts). Install it (`pipx install scenedetect[opencv]` or `pip install scenedetect[opencv]`) for accurate shot-cut detection.\n"
342
+ );
343
+ } else {
344
+ process.stderr.write(`Shot-cut detection skipped (${msg}); using LLM boundaries.
345
+ `);
346
+ }
347
+ return void 0;
348
+ }
349
+ }
350
+ var VIDEO_EXT_BY_MIME = {
351
+ "video/mp4": ".mp4",
352
+ "video/quicktime": ".mov",
353
+ "video/webm": ".webm",
354
+ "video/x-matroska": ".mkv"
355
+ };
356
+ function referenceVideoExt(url, contentType) {
357
+ const fromPath = path2.extname(new URL(url).pathname).toLowerCase();
358
+ if (fromPath && fromPath.length <= 5) return fromPath;
359
+ const mime = (contentType ?? "").split(";")[0]?.trim().toLowerCase();
360
+ return mime && VIDEO_EXT_BY_MIME[mime] || ".mp4";
361
+ }
362
+ function videoSourceReference(blueprint, fileArg) {
363
+ const bp = blueprint ?? {};
364
+ const durable = typeof bp.source?.url === "string" ? bp.source.url : void 0;
365
+ const original = /^https?:\/\//i.test(fileArg) ? fileArg : void 0;
366
+ const brand = bp.global?.branding?.brand_name;
367
+ return { url: durable ?? original, advertiser: typeof brand === "string" && brand.trim() ? brand.trim() : void 0 };
368
+ }
369
+ function videoDefinitionDescription(blueprint) {
370
+ const g = (blueprint ?? {}).global ?? {};
371
+ const notes = g.reproduction_notes;
372
+ if (typeof notes === "string" && notes.trim()) return notes.trim();
373
+ const product = g.branding?.product;
374
+ return typeof product === "string" && product.trim() ? product.trim() : void 0;
375
+ }
376
+ function framesModeReport(canvas, requested) {
377
+ const todo = canvas.metadata?.todo;
378
+ const mode = typeof todo?.frames_mode === "string" ? todo.frames_mode : requested;
379
+ const refused = typeof todo?.frames_reuse_refused === "string" ? todo.frames_reuse_refused : void 0;
380
+ return { frames_mode: mode, ...refused ? { frames_reuse_refused: refused } : {} };
381
+ }
382
+ async function materializeReferenceVideo(fileArg) {
383
+ if (!/^https?:\/\//i.test(fileArg)) return path2.resolve(fileArg);
384
+ let bytes;
385
+ let contentType;
386
+ try {
387
+ ({ buffer: bytes, contentType } = await fetchExternalBytes(fileArg, {
388
+ sniffChallenge: false,
389
+ maxBytes: MAX_ASSET_BYTES
390
+ }));
391
+ } catch (e) {
392
+ throw new Error(`failed to download reference video: ${e instanceof Error ? e.message : String(e)}`);
393
+ }
394
+ if (bytes.length === 0) throw new Error("reference video download was empty");
395
+ const dest = path2.join(
396
+ tmpdir2(),
397
+ `baker-ref-${sha256Hex(bytes).slice(0, 16)}${referenceVideoExt(fileArg, contentType)}`
398
+ );
399
+ await writeFile(dest, bytes);
400
+ return dest;
401
+ }
402
+ function resolveSeamDedup(raw) {
403
+ if (raw === void 0) return "head";
404
+ const v = String(raw);
405
+ if (v === "head" || v === "tail" || v === "off") return v;
406
+ throw new Error(`--seam-dedup must be "head", "tail", or "off" (got "${v}")`);
407
+ }
408
+ var VIDEO_BUDGETS = ["economy", "standard", "premium"];
409
+ function parseBudget(raw) {
410
+ const v = raw === void 0 ? "standard" : String(raw);
411
+ if (VIDEO_BUDGETS.includes(v)) return v;
412
+ throw new Error(`--budget must be one of ${VIDEO_BUDGETS.join(", ")} (got "${v}")`);
413
+ }
414
+ function resolveModels(args) {
415
+ return {
416
+ // Flash by default (the `videoDeconstruct` role). Override with --deconstruct-model
417
+ // ~google/gemini-pro-latest for the densest extraction when speed matters less.
418
+ deconstructModel: resolveModel("video_deconstruct", args["deconstruct-model"], VIDEO_DECONSTRUCT_MODEL),
419
+ selectModel: resolveModel("text_generate", args["select-model"], BLUEPRINT_ANALYSIS_MODEL),
420
+ // The ad-frame model (matches the static-ad scaffold); the frame generators need the
421
+ // most faithful text/identity reproduction. Override with --image-model for a
422
+ // cheaper/faster pass.
423
+ imageModel: resolveModel("image_generate", args["image-model"], AD_IMAGE_MODEL)
424
+ };
425
+ }
426
+ function hasPhotorealCast(elements) {
427
+ return Array.isArray(elements) && elements.some((e) => {
428
+ const type = typeof e === "object" && e !== null ? e.type : void 0;
429
+ return type === "person" || type === "animal";
430
+ });
431
+ }
432
+ function resolveVideoModel(args, elements) {
433
+ if (args["video-model"]) {
434
+ return { videoModel: resolveModel("video_generate", args["video-model"], DEFAULT_VIDEO_GENERATE_MODEL) };
435
+ }
436
+ const photorealCast = hasPhotorealCast(elements);
437
+ const route = routeVideoModel({
438
+ hasRealFace: Boolean(args["real-face"]) || photorealCast,
439
+ needsIdentity: Boolean(args.identity),
440
+ needsMotionTransfer: Boolean(args["motion-transfer"]),
441
+ budget: parseBudget(args.budget)
442
+ });
443
+ const reason = photorealCast && !args["real-face"] ? `${route.reason} \u2014 detected a photoreal on-camera cast, which Seedance's real-person filter would block` : route.reason;
444
+ return {
445
+ videoModel: resolveModel("video_generate", route.model, DEFAULT_VIDEO_GENERATE_MODEL),
446
+ videoRouteReason: reason
447
+ };
448
+ }
449
+ function buildDeconstructCanvas(videoPath, deconstructModel, opts) {
450
+ const deconstructParams = { model: deconstructModel, mode: "full" };
451
+ if (typeof opts.maxScenes === "number") deconstructParams.max_scenes = opts.maxScenes;
452
+ if (opts.language) deconstructParams.language = opts.language;
453
+ if (opts.focus) deconstructParams.focus = opts.focus;
454
+ if (opts.shotCuts) deconstructParams.shot_cuts = opts.shotCuts;
455
+ deconstructParams.max_clip_s = SEEDANCE_DURATIONS[SEEDANCE_DURATIONS.length - 1];
456
+ return {
457
+ schema: "baker-canvas/1",
458
+ metadata: { name: "video deconstruct pass" },
459
+ nodes: [
460
+ { id: "src", type: "ingest", params: { source: "path", path: videoPath, expect: "video" } },
461
+ { id: "deconstruct", type: "video_deconstruct", inputs: { video: "$ref:src.asset" }, params: deconstructParams }
462
+ ],
463
+ output: { node: "deconstruct", output: "analysis" }
464
+ };
465
+ }
466
+ function buildSelectCanvas(selectModel, slimmedBlueprintJson) {
467
+ return {
468
+ schema: "baker-canvas/1",
469
+ metadata: { name: "element selection pass" },
470
+ nodes: [
471
+ {
472
+ id: "select",
473
+ type: "text_generate",
474
+ params: {
475
+ model: selectModel,
476
+ max_tokens: 6e3,
477
+ temperature: 0,
478
+ response_format: "json_object",
479
+ system: SELECT_SYSTEM,
480
+ prompt: SELECT_PROMPT.replace("{{blueprint}}", () => slimmedBlueprintJson)
481
+ }
482
+ }
483
+ ],
484
+ output: { node: "select", output: "text" }
485
+ };
486
+ }
487
+ async function runAnalysisPasses(deconstructCanvas, selectModel) {
488
+ const engine = createEngineFromEnv({ log: (line) => process.stderr.write(`${line}
489
+ `) });
490
+ let credits = 0;
491
+ let sawCredits = false;
492
+ const addCredits = (stats) => {
493
+ const c = stats?.total_credits;
494
+ if (typeof c === "number") {
495
+ credits += c;
496
+ sawCredits = true;
497
+ }
498
+ };
499
+ let blueprint;
500
+ let transcript;
501
+ let detectedLanguage;
502
+ try {
503
+ const r1 = await engine.run(deconstructCanvas, {});
504
+ addCredits(r1.stats);
505
+ blueprint = JSON.parse(await loadAssetText(r1.outputs_by_node.deconstruct?.analysis, "deconstruct output"));
506
+ transcript = await loadTranscriptBestEffort(r1.outputs_by_node.deconstruct?.transcript);
507
+ const heard = r1.outputs_by_node.deconstruct?.transcript?.metadata?.detected_language;
508
+ detectedLanguage = typeof heard === "string" && heard.trim() ? heard.trim() : void 0;
509
+ } catch (e) {
510
+ if (e instanceof ValidationError) return fail("validation", JSON.stringify(e.issues));
511
+ if (e instanceof SyntaxError) return fail("read_outputs", e.message);
512
+ return fail("deconstruct", e instanceof Error ? e.message : String(e));
513
+ }
514
+ const slimJson = JSON.stringify(slimBlueprintForSelection(blueprint));
515
+ try {
516
+ const r2 = await engine.run(buildSelectCanvas(selectModel, slimJson), {});
517
+ addCredits(r2.stats);
518
+ const elements = parseElements(await loadAssetText(r2.outputs_by_node.select?.text, "selection output"));
519
+ return { blueprint, elements, transcript, detectedLanguage, creditsSpent: sawCredits ? credits : void 0 };
520
+ } catch (e) {
521
+ if (e instanceof ValidationError) return fail("validation", JSON.stringify(e.issues));
522
+ if (e instanceof SyntaxError) return fail("read_outputs", e.message);
523
+ return fail("deconstruct", e instanceof Error ? e.message : String(e));
524
+ }
525
+ }
526
+ var scaffoldVideoCommand = defineCommand({
527
+ meta: {
528
+ name: "scaffold-video",
529
+ description: "Turn a reference video into a runnable reproduction canvas in one command. Runs billed passes \u2014 video_deconstruct (the full scene-by-scene blueprint + transcript, baked to a split, editable blueprint: a global prompt.json plus one small scenes/sNN.json per scene) and an AI selection of the video's RECURRING identity elements (person/animal/product/logo) \u2014 then scaffolds a pipeline where every scene boundary is a static-ad-grade frame (the blueprint as target_blueprint, a reference legend, the real frame as anchor) and each recurring element gets ONE shared [TODO] ingest slot wired into every frame it appears in. The clips feed Seedance an ultra-detailed motion brief (action, camera, dialogue, transcript). Edit a scene's scenes/sNN.json (or prompt.json for global cast/palette/brand), fill the remaining [TODO] images, then `baker canvas run`. A person in the reference is played by an invented, realistic person generated from their description \u2014 never the source actor and never a photo of anyone real; pass `--avatar <handle>` (`baker avatars list`) when the same actor has to recur across the company's ads."
530
+ },
531
+ args: {
532
+ file: {
533
+ type: "positional",
534
+ required: true,
535
+ description: "Reference video \u2014 a local path OR an http(s) URL (e.g. a winning-ads link). A URL is downloaded for you; pass --slug or --out with it."
536
+ },
537
+ out: { type: "string", description: "Output canvas path (default <video-dir>/<name>.video.canvas.json)" },
538
+ slug: {
539
+ type: "string",
540
+ description: "Creative slug \u2014 writes the canvas to src/creatives/<slug>/<slug>.canvas.json (repo convention)"
541
+ },
542
+ frames: {
543
+ type: "string",
544
+ description: `"generate" (default, every frame regenerated for our ad) or "reuse" (wire the source's real frames in). Reuse applies only to a video with nobody in it \u2014 on a video showing people it is refused and every frame is generated, so the source's actors never reach our ad.`
545
+ },
546
+ ambient: {
547
+ type: "boolean",
548
+ description: "Give silent b-roll scenes native diegetic ambient mixed deep under the music bed (off by default)"
549
+ },
550
+ "seam-dedup": {
551
+ type: "string",
552
+ description: `How to dedup the frame two clips SHARE when a long shot is split for length: "head" (default, drop the second clip's first frame), "tail" (drop the first clip's last frame), or "off" (keep both).`
553
+ },
554
+ "max-scenes": { type: "string", description: "Cap the number of scenes the deconstruct emits" },
555
+ "shot-threshold": {
556
+ type: "string",
557
+ description: "PySceneDetect content threshold. Default is adaptive (18, auto re-checked at 27 when a continuous shot looks over-segmented); pinning a value disables the re-check. Lower = more/softer cuts, higher = fewer."
558
+ },
559
+ language: { type: "string", description: "Transcript/dialogue language hint (e.g. fr, en)" },
560
+ focus: { type: "string", description: "Known provenance/emphasis to ground the deconstruct" },
561
+ advertiser: {
562
+ type: "string",
563
+ description: "Source advertiser recorded in _definition.md (default: the brand the deconstruct identified)"
564
+ },
565
+ platforms: {
566
+ type: "string",
567
+ description: "Where the ad runs, the main platform first (meta, linkedin, tiktok, \u2026): recorded in _definition.md. Take it from the person's request or the idea."
568
+ },
569
+ platform: { type: "string", description: "Retired: use --platforms. Still recorded in _definition.md." },
570
+ "deconstruct-model": { type: "string", description: "Override the video_deconstruct model id" },
571
+ "select-model": { type: "string", description: "Override the text_generate model id for element selection" },
572
+ "image-model": { type: "string", description: "Override the image_generate model id for frames" },
573
+ "video-model": { type: "string", description: "Override the video_generate model id for clips (skips the scored router)" },
574
+ "real-face": {
575
+ type: "boolean",
576
+ description: "The ad has a photoreal human face on camera \u2192 the router picks Veo (dodges the ByteDance real-person filter). Set this for ANY photoreal presenter/creator/testimonial cast \u2014 the filter blocks AI-GENERATED photoreal faces too, not just real ones."
577
+ },
578
+ "motion-transfer": {
579
+ type: "boolean",
580
+ description: "Motion driven from a reference video / deliberately hyper-dynamic \u2192 the router picks Kling."
581
+ },
582
+ identity: {
583
+ type: "boolean",
584
+ description: "The same character/product must stay consistent across clips \u2192 the router picks the Seedance workhorse."
585
+ },
586
+ budget: {
587
+ type: "string",
588
+ description: 'Cost posture for the router: "economy" | "standard" | "premium" (default standard).'
589
+ },
590
+ aspect: {
591
+ type: "string",
592
+ description: `Output aspect ratio (e.g. "4:5"). Default: the source video's detected ratio. When the video model can't generate the ratio (Seedance has no 4:5) clips generate at the nearest supported ratio and are center-cropped onto the output canvas.`
593
+ },
594
+ resolution: {
595
+ type: "string",
596
+ description: `Output resolution for generated clips (e.g. "1080p"). Default 1080p \u2014 the highest the video model supports \u2014 so clips keep the keyframe sharpness instead of the model's low default.`
597
+ },
598
+ avatar: {
599
+ type: "string",
600
+ description: "Cast company avatars as the reference's people \u2014 pass this when the same actor has to recur across ads (without it, each person is invented from their description). One handle, or several comma-separated in the order the people appear (`--avatar marta` / `--avatar marta,joan`). Each recurring person grounds on that avatar's identity sheet, so the ad shows the company's own cast instead of the source ad's actors. `baker avatars list` shows who there is; checked before anything is billed."
601
+ }
602
+ },
603
+ async run({ args }) {
604
+ const fileArg = String(args.file);
605
+ const slug = args.slug ? String(args.slug) : void 0;
606
+ if (slug && !isValidScaffoldSlug(slug)) {
607
+ process.stderr.write(
608
+ `${JSON.stringify({ ok: false, error: { code: "invalid_slug", message: "--slug must be lowercase kebab (a-z, 0-9, hyphens), max 100 chars" } }, null, 2)}
609
+ `
610
+ );
611
+ process.exit(2);
612
+ }
613
+ const isUrl = /^https?:\/\//i.test(fileArg);
614
+ if (isUrl && !slug && !args.out) {
615
+ return fail(
616
+ "missing_output_target",
617
+ "When the reference is a URL, pass --slug (writes src/creatives/<slug>/) or --out <path> so the scaffolded canvas has a home in the repo."
618
+ );
619
+ }
620
+ let videoPath;
621
+ try {
622
+ videoPath = await materializeReferenceVideo(fileArg);
623
+ } catch (e) {
624
+ return fail("download", e instanceof Error ? e.message : String(e));
625
+ }
626
+ const base = path2.basename(videoPath, path2.extname(videoPath));
627
+ const outPath = args.out ? path2.resolve(String(args.out)) : slug ? path2.join(process.cwd(), "src", "creatives", slug, `${slug}.canvas.json`) : path2.join(path2.dirname(videoPath), `${base}.video.canvas.json`);
628
+ const outDir = path2.dirname(outPath);
629
+ const blueprintPath = path2.join(outDir, "prompt.json");
630
+ const blueprintStylePath = path2.join(outDir, "prompt.style.json");
631
+ const frames = args.frames === "reuse" ? "reuse" : "generate";
632
+ const maxScenes = args["max-scenes"] ? Number(args["max-scenes"]) : void 0;
633
+ if (Number.isFinite(maxScenes)) {
634
+ process.stderr.write(
635
+ `\u26A0\uFE0F --max-scenes ${maxScenes} caps the deconstruct: any scenes beyond ${maxScenes} are MERGED away, reducing fidelity (fewer cuts, lost beats). Omit it to reproduce every scene.
636
+ `
637
+ );
638
+ }
639
+ let models;
640
+ try {
641
+ models = resolveModels(args);
642
+ if (args["video-model"]) resolveModel("video_generate", args["video-model"], DEFAULT_VIDEO_GENERATE_MODEL);
643
+ } catch (e) {
644
+ return fail("unknown_model", e instanceof Error ? e.message : String(e));
645
+ }
646
+ const { deconstructModel, selectModel, imageModel } = models;
647
+ const cast = await resolveCastAvatars(args.avatar);
648
+ if ("error" in cast) return fail("avatar", cast.error);
649
+ const { handles: avatarHandles, avatars } = cast;
650
+ const shotThreshold = args["shot-threshold"] ? Number(args["shot-threshold"]) : void 0;
651
+ const shotCuts = await detectShotCutsBestEffort(videoPath, shotThreshold);
652
+ const deconstructCanvas = buildDeconstructCanvas(videoPath, deconstructModel, {
653
+ maxScenes: Number.isFinite(maxScenes) ? maxScenes : void 0,
654
+ language: args.language ? String(args.language) : void 0,
655
+ focus: args.focus ? String(args.focus) : void 0,
656
+ shotCuts
657
+ });
658
+ const analysis = await runAnalysisPasses(deconstructCanvas, selectModel);
659
+ const { blueprint, transcript, creditsSpent } = analysis;
660
+ const heard = analysis.detectedLanguage;
661
+ const declaredLanguage = (args.language ? spokenLanguage(String(args.language))?.tag : void 0) ?? (heard ? spokenLanguage(heard)?.tag ?? languageCodeNamed(heard) : void 0);
662
+ const speechCache = path2.join(findWorkspaceRoot(outDir) ?? process.cwd(), "canvas", ".cache");
663
+ const speechSpent = [];
664
+ const speech = await readBlueprintSpeech(
665
+ blueprint,
666
+ declaredLanguage ? { declaredLanguage } : {},
667
+ {
668
+ ask: cachedJev(speechCache, (questions) => askJevQuestions(questions, (u) => speechSpent.push(u))),
669
+ genders: voiceGenderModel(speechCache, (u) => speechSpent.push(u))
670
+ }
671
+ );
672
+ await holdUnbilledSpend(speechCache, speechSpent).catch(() => {
673
+ });
674
+ const elements = castAvatarsOnElements(analysis.elements, avatars);
675
+ const uncast = avatarsNotCast(analysis.elements, avatarHandles);
676
+ const uncastHint = uncast.length ? {
677
+ hints: [
678
+ `NOT CAST: ${uncast.map((h) => `\`${h}\``).join(", ")} \u2014 the element selection found no more recurring people than it cast, so ${uncast.length === 1 ? "this avatar plays" : "these avatars play"} nobody in this canvas. A person shown in only one scene is not a recurring element, so those frames render whoever their scene file describes \u2014 tell the user who is cast and who is not.`
679
+ ]
680
+ } : {};
681
+ let routed;
682
+ try {
683
+ routed = resolveVideoModel(args, elements);
684
+ } catch (e) {
685
+ return fail("unknown_model", e instanceof Error ? e.message : String(e));
686
+ }
687
+ const { videoModel, videoRouteReason } = routed;
688
+ if (videoRouteReason && !args["video-model"] && !args["real-face"] && hasPhotorealCast(elements)) {
689
+ process.stderr.write(`\u{1F3AC} Photoreal on-camera cast detected \u2192 generating clips on ${videoModel} (dodges Seedance's real-person filter).
690
+ `);
691
+ }
692
+ await mkdir(outDir, { recursive: true });
693
+ const annotated = annotateBlueprintWithElements(blueprint, elements);
694
+ await writeSceneFiles(outDir, annotated);
695
+ await writeStyleProjection(blueprintStylePath, renderStyleProjectionFromValue(annotated));
696
+ let aspect;
697
+ try {
698
+ aspect = resolveAspect(
699
+ blueprint.source?.aspect_ratio,
700
+ args.aspect ? String(args.aspect) : void 0,
701
+ genAspectsFor(videoModel)
702
+ );
703
+ } catch (e) {
704
+ return fail("aspect", e instanceof Error ? e.message : String(e));
705
+ }
706
+ const outDims = canvasDims(aspect.outAr);
707
+ if (aspect.remapped) {
708
+ process.stderr.write(
709
+ `\u26A0\uFE0F ${aspect.outAr} output \u2192 clips generate at ${aspect.genAr} (the video model's nearest ratio) and are center-cropped to ${aspect.outAr} (${outDims.w}\xD7${outDims.h}) \u2014 keep subjects centered in frame prompts.
710
+ `
711
+ );
712
+ }
713
+ const compositionDest = path2.join(outDir, "video-overlay-composition");
714
+ await cp(SHIPPED_OVERLAY_COMPOSITION_DIR, compositionDest, { recursive: true });
715
+ await stampCompositionDims(compositionDest, outDims);
716
+ const indexPath = path2.join(compositionDest, "index.html");
717
+ const overlayHtml = buildOverlayHtml(blueprint, { captionsActive: Boolean(transcript), videoModel });
718
+ const indexHtml = await readFile3(indexPath, "utf8");
719
+ const injected = indexHtml.replace("<!--OVERLAYS-->", () => overlayHtml);
720
+ if (injected === indexHtml && overlayHtml.trim()) {
721
+ fail(
722
+ "composition_marker_missing",
723
+ `video-overlay-composition/index.html is missing the <!--OVERLAYS--> marker \u2014 cannot inject the overlay layer`
724
+ );
725
+ }
726
+ await writeFile(indexPath, injected, "utf8");
727
+ const captions = await stageCaptions(outDir, transcript);
728
+ if (captions.compositionPath) await stampCompositionDims(captions.compositionPath, outDims);
729
+ const opts = {
730
+ imageModel,
731
+ videoModel,
732
+ overlayCompositionPath: path2.relative(outDir, compositionDest),
733
+ captionsCompositionPath: captions.compositionPath ? path2.relative(outDir, captions.compositionPath) : void 0,
734
+ blueprintPath: path2.relative(outDir, blueprintPath),
735
+ blueprintStylePath: path2.relative(outDir, blueprintStylePath),
736
+ frames,
737
+ ambient: Boolean(args.ambient),
738
+ seamDedup: resolveSeamDedup(args["seam-dedup"]),
739
+ ...speech.spokenLanguage ? { spokenLanguage: speech.spokenLanguage } : {},
740
+ voiceGenders: speech.voiceGenders,
741
+ ...speech.captionCarriesOn.length ? { captionCarriesOn: speech.captionCarriesOn } : {},
742
+ ...args.aspect ? { aspect: String(args.aspect) } : {},
743
+ ...args.resolution ? { resolution: String(args.resolution) } : {}
744
+ };
745
+ let canvas;
746
+ let report;
747
+ try {
748
+ canvas = scaffoldVideoCanvas(blueprint, elements, opts);
749
+ report = videoReport(blueprint, elements, videoModel);
750
+ } catch (e) {
751
+ return fail("scaffold", e instanceof Error ? e.message : String(e));
752
+ }
753
+ if (captions.compositionPath && !canvas.nodes.some((n) => n.id === "captions")) {
754
+ await rm2(captions.compositionPath, { recursive: true, force: true });
755
+ }
756
+ const validation = await validateCanvasDeep(resolveRelativeCanvasPaths(canvas, outDir), defaultRegistry());
757
+ if (!validation.ok) {
758
+ const meta = canvas.metadata;
759
+ const todo = meta.todo ?? {};
760
+ todo.blocking_validation_issues = validation.issues;
761
+ meta.todo = todo;
762
+ }
763
+ await writeFile(outPath, `${JSON.stringify(canvas, null, 2)}
764
+ `, "utf8");
765
+ await writeFile(
766
+ path2.join(outDir, REBUILD_FILE),
767
+ `${JSON.stringify({ elements, opts }, null, 2)}
768
+ `,
769
+ "utf8"
770
+ );
771
+ if (!validation.ok) {
772
+ process.stderr.write(
773
+ `${JSON.stringify(
774
+ {
775
+ ok: false,
776
+ error: { code: "validation", issues: validation.issues },
777
+ canvas_path: outPath,
778
+ prompt_path: blueprintPath,
779
+ ...framesModeReport(canvas, frames),
780
+ note: "The canvas WAS written despite the blocking issue(s) \u2014 fix them in place, then `baker canvas validate` before running.",
781
+ ...uncastHint
782
+ },
783
+ null,
784
+ 2
785
+ )}
786
+ `
787
+ );
788
+ process.exit(2);
789
+ }
790
+ await ensureGitignore(process.cwd(), ["canvas/", ".context/"]);
791
+ const sourceRef = videoSourceReference(blueprint, fileArg);
792
+ if (slug) {
793
+ const definitionPath = path2.join(outDir, "_definition.md");
794
+ if (!await fileExists(definitionPath)) {
795
+ await writeFile(
796
+ definitionPath,
797
+ buildCreativeDefinition({
798
+ title: titleFromSlug(slug),
799
+ kind: "video",
800
+ ...definitionPlatformsOf(
801
+ args.platforms ? String(args.platforms) : void 0,
802
+ args.platform ? String(args.platform) : void 0
803
+ ),
804
+ formats: resolveFormats(aspect.outAr),
805
+ sourceReferenceUrl: sourceRef.url,
806
+ sourceAdvertiser: args.advertiser ? String(args.advertiser) : sourceRef.advertiser,
807
+ sourceKind: "video",
808
+ description: videoDefinitionDescription(blueprint)
809
+ }),
810
+ "utf8"
811
+ );
812
+ }
813
+ }
814
+ if (slug) {
815
+ await syncCreativeDefinitionBestEffort({
816
+ slug,
817
+ title: titleFromSlug(slug),
818
+ ...await readDefinitionPlatforms(outPath),
819
+ formats: [aspect.outAr],
820
+ canvas,
821
+ sourceReferenceUrl: sourceRef.url,
822
+ sourceSha: await computeSourceSha(outPath)
823
+ });
824
+ }
825
+ writeJson({
826
+ ok: true,
827
+ data: {
828
+ canvas_path: outPath,
829
+ prompt_path: blueprintPath,
830
+ source_reference: sourceRef.url,
831
+ composition_dir: compositionDest,
832
+ output: canvas.output,
833
+ ...framesModeReport(canvas, frames),
834
+ models: {
835
+ deconstruct: deconstructModel,
836
+ select: selectModel,
837
+ image: imageModel,
838
+ video: videoModel,
839
+ ...videoRouteReason ? { video_route_reason: videoRouteReason } : {}
840
+ },
841
+ stats: {
842
+ scene_count: report.scene_count,
843
+ total_nodes: canvas.nodes.length,
844
+ analysis_credits_spent: creditsSpent,
845
+ run_estimated_credits: validation.estimatedCredits,
846
+ // WHY the graph has its nodes: per-scene routes + the node-type histogram
847
+ // (mirrors metadata.video.graph_stats in the canvas).
848
+ graph: canvas.metadata?.video?.graph_stats
849
+ },
850
+ checklist: {
851
+ edit_prompt: `The blueprint is split so you edit ONE small file at a time \u2014 never a giant one. Per-scene content (a scene's dialogue, action, frame prompts, overlays) lives in \`scenes/sNN.json\` \u2014 edit the single scene you want to change. Global cast/palette/brand/copy lives in \`${path2.basename(blueprintPath)}\`. \`baker canvas validate\`/\`run\` re-assemble the blueprint and re-flow every edited scene back into the render (and regenerate ${path2.basename(blueprintStylePath)}, the projection each frame's target_blueprint reads) \u2014 so your scene edits reach the render automatically. Never hand-edit the inlined node prompts in the canvas or the derived ${path2.basename(blueprintStylePath)}; both are regenerated.`,
852
+ recurring_elements_to_supply: report.elements,
853
+ voices_to_confirm: report.dialogue.map((d) => ({
854
+ scene: d.scene,
855
+ speaker: d.speaker,
856
+ voice_description: d.voice_description,
857
+ line: d.line
858
+ })),
859
+ sfx_count: report.sfx_count,
860
+ overlay_count: report.overlay_count,
861
+ has_music: report.has_music,
862
+ scenes_clamped_to_clip_max: report.clamped_scenes,
863
+ oversize_scenes: report.oversize_scenes,
864
+ overstuffed_scenes: report.overstuffed_scenes,
865
+ // Steer the edit toward disciplined prompting + on-brand MOTION, not just
866
+ // on-brand color. The overlays inherit the reference's motion unless the
867
+ // operator restyles easing/transition/accent from the brand's motion language.
868
+ prompt_discipline: "Rewrite each scene with the six-decision structure (Route / Spec / Beats / Copy / Technique / Negatives): quote exact copy, give every beat a timestamp, and name the moves. Pull easing, transition (cut vs fade), pacing, and the accent moment from BRAND.md \xA7 Brand in Motion so the overlays move like THIS brand \u2014 not the reference's. If BRAND.md has no Brand-in-Motion section, seed it with brand-build first. See the creative-canvas-ads skill: references/prompt-anatomy.md + references/hyperframes/.",
869
+ // Photoreal on-camera casts auto-route to Veo above, so this only fires
870
+ // when `--video-model bytedance/seedance-2.0` was EXPLICITLY forced despite
871
+ // a person/animal cast — overriding that safety route. Warn that every such
872
+ // clip will hit ByteDance's real-person filter and burn a wasted attempt.
873
+ ...report.elements.some((e) => e.type === "person" || e.type === "animal") && /seedance/i.test(videoModel) ? {
874
+ content_policy_risk: "You FORCED Seedance (`--video-model bytedance/seedance-2.0`) on an ad with a photoreal on-camera cast. ByteDance's real-person filter will reject those clips (content_policy_blocked, E005) \u2014 no prompt change clears it. Each clip auto-recovers on Veo at render time so the run still completes, but you burn a wasted Seedance attempt per clip. Drop `--video-model` to let the scaffold route the cast to Veo up front, or make the frames less photorealistic."
875
+ } : {},
876
+ note: "Fill each el_* [TODO] \u2014 a person needs none (invented from their description, or cast with `--avatar <handle>`), never a photo of a real person; anything else with ONE real source image (reused across every frame that element appears in) \u2014 confirm each voice_select casting, then `baker canvas validate` and `baker canvas run`. Running generates many billed image/video/audio assets \u2014 it is not free."
877
+ }
878
+ },
879
+ ...uncastHint
880
+ });
881
+ }
882
+ });
883
+ export {
884
+ hasPhotorealCast,
885
+ referenceVideoExt,
886
+ resolveVideoModel,
887
+ scaffoldVideoCommand
888
+ };
889
+ //# sourceMappingURL=scaffold-video-EPMMQHUN.js.map