@koda-sl/baker-cli 0.537.0 → 0.538.0-dev.fc2958a1d

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 (852) hide show
  1. package/README.md +1 -1
  2. package/dist/account-2RNYGT6E.js +82 -0
  3. package/dist/account-T26J6HSJ.js +82 -0
  4. package/dist/account-reads-P2WXB3NZ.js +219 -0
  5. package/dist/account-users-REWJY2TN.js +64 -0
  6. package/dist/account-writes-QEZQCU46.js +68 -0
  7. package/dist/accounts-MJ7AGPOW.js +701 -0
  8. package/dist/accounts-PGSNRUNV.js +80 -0
  9. package/dist/actions-NGBCTPNG.js +55 -0
  10. package/dist/activecampaign-ASE4IVTD.js +938 -0
  11. package/dist/ad-group-writes-MVQKICSC.js +172 -0
  12. package/dist/ad-groups-5OGD7PJ7.js +70 -0
  13. package/dist/ad-writes-OVD6EESQ.js +176 -0
  14. package/dist/add-QBEF2C7Z.js +107 -0
  15. package/dist/add-YJP43JWJ.js +305 -0
  16. package/dist/ads-GF7QLKBX.js +48 -0
  17. package/dist/ads-SCWCG2YI.js +79 -0
  18. package/dist/advertisers-SUZT4NRJ.js +123 -0
  19. package/dist/analytics-NJBF3U54.js +2437 -0
  20. package/dist/analytics-PI6SXDW4.js +447 -0
  21. package/dist/animate-HV2QJWVE.js +480 -0
  22. package/dist/assign-6YG56OCM.js +80 -0
  23. package/dist/audience-size-5X3BHQ6Q.js +76 -0
  24. package/dist/audiences-6N5B7CA2.js +280 -0
  25. package/dist/audit-PLXF2NAS.js +154 -0
  26. package/dist/autocomplete-YJSDRTMT.js +114 -0
  27. package/dist/avatars-BDQWTQKY.js +38 -0
  28. package/dist/bid-pricing-BUNOVWUB.js +103 -0
  29. package/dist/brand-MHFSUXWN.js +22 -0
  30. package/dist/brief-A5AEZBZL.js +543 -0
  31. package/dist/campaign-groups-UYNINWXX.js +99 -0
  32. package/dist/campaign-writes-RCA52SAP.js +168 -0
  33. package/dist/campaign-writes-TFRV62VN.js +176 -0
  34. package/dist/campaigns-CIQIZ46G.js +113 -0
  35. package/dist/campaigns-EETR5UJR.js +111 -0
  36. package/dist/campaigns-KPUA4GP2.js +78 -0
  37. package/dist/canvas-M3RXWJ2T.js +46 -0
  38. package/dist/capabilities-XFLST37G.js +147 -0
  39. package/dist/catalog-JVBRY2U6.js +66 -0
  40. package/dist/catalogs-QYAAPTMV.js +130 -0
  41. package/dist/changes-Y4NAQ2IV.js +135 -0
  42. package/dist/chatgpt-KJAUJBRK.js +47 -0
  43. package/dist/chats-5BNHZWO7.js +384 -0
  44. package/dist/check-ESD3QPIZ.js +107 -0
  45. package/dist/chunk-2EVHGBQY.js +319 -0
  46. package/dist/chunk-2JFCDUZO.js +156 -0
  47. package/dist/chunk-2MAQKELK.js +494 -0
  48. package/dist/chunk-2OCUXPWT.js +1919 -0
  49. package/dist/chunk-3ANPDWU7.js +438 -0
  50. package/dist/chunk-3C3IR2F6.js +2209 -0
  51. package/dist/chunk-3GMJEM4C.js +377 -0
  52. package/dist/chunk-4YWSFFOP.js +831 -0
  53. package/dist/chunk-5JG77PP3.js +57 -0
  54. package/dist/chunk-5TWI6FFY.js +344 -0
  55. package/dist/chunk-65HTWFKN.js +224 -0
  56. package/dist/chunk-6OIKNJ7G.js +26 -0
  57. package/dist/chunk-6RUHIXVA.js +455 -0
  58. package/dist/chunk-6X4XAANZ.js +191 -0
  59. package/dist/chunk-6Z32HS4D.js +91 -0
  60. package/dist/chunk-7MK4TND6.js +163 -0
  61. package/dist/chunk-AUO4QNMI.js +148 -0
  62. package/dist/chunk-B6WOWVAA.js +285 -0
  63. package/dist/chunk-BF32BRMX.js +98 -0
  64. package/dist/chunk-BIFK5OGB.js +249 -0
  65. package/dist/chunk-BNO3EFGR.js +4266 -0
  66. package/dist/chunk-BNO3EFGR.js.map +1 -0
  67. package/dist/chunk-BUXPBPAP.js +142 -0
  68. package/dist/chunk-CDRS2QAP.js +392 -0
  69. package/dist/chunk-CFVVZKSU.js +387 -0
  70. package/dist/chunk-D3KWV63D.js +19 -0
  71. package/dist/chunk-D5LV3ECR.js +23 -0
  72. package/dist/chunk-DBLOEIJ2.js +5368 -0
  73. package/dist/chunk-DQIPDAPH.js +274 -0
  74. package/dist/chunk-EFBJ35ZS.js +930 -0
  75. package/dist/chunk-EMXBMLQ4.js +91 -0
  76. package/dist/chunk-EZVRXFCC.js +169 -0
  77. package/dist/chunk-F3CZFUXZ.js +3187 -0
  78. package/dist/chunk-F3CZFUXZ.js.map +1 -0
  79. package/dist/chunk-GCFC2MNR.js +228 -0
  80. package/dist/chunk-GQ4D3BT6.js +207 -0
  81. package/dist/chunk-HMFIOE4P.js +63 -0
  82. package/dist/chunk-HXLCETLB.js +3510 -0
  83. package/dist/chunk-JZ6XRIXG.js +846 -0
  84. package/dist/chunk-KAUW3OFC.js +843 -0
  85. package/dist/chunk-KFHW5TCM.js +167 -0
  86. package/dist/chunk-MHRFRSQ6.js +676 -0
  87. package/dist/chunk-MQZXGTGI.js +479 -0
  88. package/dist/chunk-NNNMTRGI.js +547 -0
  89. package/dist/chunk-NQF5U6FX.js +150 -0
  90. package/dist/chunk-OROWRGRJ.js +170 -0
  91. package/dist/chunk-OWJGBIQ2.js +1646 -0
  92. package/dist/chunk-PAU4VS7H.js +103 -0
  93. package/dist/chunk-PTGC7CVG.js +429 -0
  94. package/dist/chunk-RAO7FTMY.js +64 -0
  95. package/dist/chunk-RM5T4MA6.js +783 -0
  96. package/dist/chunk-RP2PU3CA.js +275 -0
  97. package/dist/chunk-RSKU45CU.js +89 -0
  98. package/dist/chunk-SA6XZ3FP.js +1902 -0
  99. package/dist/chunk-SIKCVWM3.js +76 -0
  100. package/dist/chunk-SPQHISWX.js +8954 -0
  101. package/dist/chunk-SQVT243W.js +51 -0
  102. package/dist/chunk-T267DS5U.js +297 -0
  103. package/dist/chunk-UQKDP46G.js +197 -0
  104. package/dist/chunk-UVVOG5A7.js +61 -0
  105. package/dist/chunk-UZGZS35I.js +592 -0
  106. package/dist/chunk-W7BORINM.js +66 -0
  107. package/dist/chunk-WM6JHUPY.js +5471 -0
  108. package/dist/chunk-XBMZNFN7.js +203 -0
  109. package/dist/chunk-XHW24Q5Q.js +910 -0
  110. package/dist/chunk-XMHTLWWE.js +225 -0
  111. package/dist/chunk-XPXHJ6EP.js +24026 -0
  112. package/dist/chunk-XPXHJ6EP.js.map +1 -0
  113. package/dist/chunk-XXS6SUVM.js +7712 -0
  114. package/dist/chunk-Y3ESEQRI.js +46 -0
  115. package/dist/chunk-YAX5CGUY.js +638 -0
  116. package/dist/chunk-ZCN2XUPQ.js +604 -0
  117. package/dist/chunk-ZJOXRK2G.js +1518 -0
  118. package/dist/chunk-ZPHHJPDG.js +131 -0
  119. package/dist/claim-NM5T33W6.js +200 -0
  120. package/dist/cli.js +31 -31
  121. package/dist/companies-VBNBS6LR.js +198 -0
  122. package/dist/company-3KOV3TJT.js +308 -0
  123. package/dist/complete-TVY4F5YX.js +84 -0
  124. package/dist/connect-W6H3DT2C.js +45 -0
  125. package/dist/conversation-LCGWNPUG.js +96 -0
  126. package/dist/conversion-report-GK2FUT2R.js +127 -0
  127. package/dist/conversion-upload-command-Q7LZFFZL.js +439 -0
  128. package/dist/conversion-writes-STESFLTB.js +122 -0
  129. package/dist/conversions-D2RPIL3I.js +140 -0
  130. package/dist/conversions-JBRU7CGB.js +78 -0
  131. package/dist/create-DHIXUD4Q.js +135 -0
  132. package/dist/create-OW2BLTBE.js +239 -0
  133. package/dist/create-TYG5SAQE.js +210 -0
  134. package/dist/create-XGDJKMDB.js +62 -0
  135. package/dist/creatives-3ZPFUAKL.js +58 -0
  136. package/dist/creatives-PN6EQYVU.js +223 -0
  137. package/dist/credentials-AVRHDGM5.js +290 -0
  138. package/dist/critique-76EMERXI.js +1451 -0
  139. package/dist/critique-SZSKQYUL.js +232 -0
  140. package/dist/crm-4O65STFF.js +227 -0
  141. package/dist/crm-JMIIB55O.js +323 -0
  142. package/dist/currency-HQW6FJS5.js +88 -0
  143. package/dist/customers-GV3AD6B6.js +59 -0
  144. package/dist/delete-CJGW5MKC.js +69 -0
  145. package/dist/delete-ISAOQTI5.js +57 -0
  146. package/dist/delete-WFF5EVIL.js +67 -0
  147. package/dist/demographics-XSMD6KI4.js +141 -0
  148. package/dist/discard-B5QMX35Q.js +69 -0
  149. package/dist/discover-DLGO3VW6.js +172 -0
  150. package/dist/domain-WA4HAHCE.js +101 -0
  151. package/dist/download-67IB5DPC.js +172 -0
  152. package/dist/draft-4MKYX4VU.js +396 -0
  153. package/dist/draft-I7HIRQ6F.js +283 -0
  154. package/dist/draft-NXGJ3DD4.js +220 -0
  155. package/dist/draft-P73N5PT4.js +310 -0
  156. package/dist/draft-QAPMXYBR.js +335 -0
  157. package/dist/engine/index.js +8 -8
  158. package/dist/experiments-YEI3HSBU.js +236 -0
  159. package/dist/facets-EQLEOMDT.js +117 -0
  160. package/dist/feedback-JNSHN7DE.js +115 -0
  161. package/dist/feedback-record-JV43NSJI.js +269 -0
  162. package/dist/fetch-O4EYJVMN.js +179 -0
  163. package/dist/fit-7N7AHYQF.js +65 -0
  164. package/dist/flows-DTZGIGZS.js +250 -0
  165. package/dist/fonts-TYDQXRIU.js +39 -0
  166. package/dist/forecast-AODSMD7S.js +169 -0
  167. package/dist/forecast-VO7XY46L.js +121 -0
  168. package/dist/funnel-CV4DZXUS.js +397 -0
  169. package/dist/generate-HSDSCKDW.js +263 -0
  170. package/dist/get-4S4XRZ2J.js +82 -0
  171. package/dist/get-FDZZEB5R.js +59 -0
  172. package/dist/google-DPBZJ3TV.js +3267 -0
  173. package/dist/google-ads-EPFX2NA4.js +198 -0
  174. package/dist/history-7UJW5TRO.js +102 -0
  175. package/dist/history-JCLXT3AO.js +136 -0
  176. package/dist/history-SHQVK5I7.js +69 -0
  177. package/dist/hubspot-J6372OWH.js +782 -0
  178. package/dist/ideas-TKMMQ557.js +45 -0
  179. package/dist/images-J7LJETPR.js +92 -0
  180. package/dist/ingest-LVAH5OF5.js +123 -0
  181. package/dist/ingest-UBP7TEXU.js +27 -0
  182. package/dist/insights-UMPXHRKD.js +132 -0
  183. package/dist/inspect-22G3OPFK.js +192 -0
  184. package/dist/intent-NBP5IDND.js +95 -0
  185. package/dist/keyword-gap-67UJ2LDD.js +130 -0
  186. package/dist/keyword-metrics-QP5ZNOC6.js +200 -0
  187. package/dist/keywords-for-site-QTE332T7.js +131 -0
  188. package/dist/landing-TOYYCWFX.js +28 -0
  189. package/dist/languages-TM7SHGRO.js +40 -0
  190. package/dist/leads-FTWBDLBQ.js +115 -0
  191. package/dist/learn-3N7M3UHA.js +207 -0
  192. package/dist/line-item-writes-VFPXT4W6.js +211 -0
  193. package/dist/line-items-HB2N7RKO.js +107 -0
  194. package/dist/link-KAY6VYFH.js +67 -0
  195. package/dist/linkedin-CDSEMSCF.js +1328 -0
  196. package/dist/linkedin-person-HR6HKFUU.js +139 -0
  197. package/dist/list-INU27RQJ.js +306 -0
  198. package/dist/list-QWCU77C3.js +67 -0
  199. package/dist/list-VJ3CVEDW.js +154 -0
  200. package/dist/locations-HAXZUHJP.js +40 -0
  201. package/dist/locations-JFBM4XBL.js +69 -0
  202. package/dist/log-AUN4NOPP.js +95 -0
  203. package/dist/make-B5HDRFCX.js +1367 -0
  204. package/dist/map-CCBSITK7.js +436 -0
  205. package/dist/mcp-45YWYNYM.js +729 -0
  206. package/dist/media-sources-N7MBY3GE.js +35 -0
  207. package/dist/members-2P2QCBJO.js +47 -0
  208. package/dist/metrics-XWHE4LYQ.js +152 -0
  209. package/dist/models-3C6BWHEC.js +155 -0
  210. package/dist/normalize-MLRJ6IYU.js +144 -0
  211. package/dist/options-6QAJ67XB.js +125 -0
  212. package/dist/organization-P5LAMNMT.js +949 -0
  213. package/dist/performance-3PH7UYQN.js +27 -0
  214. package/dist/performance-6BMFU6IJ.js +5565 -0
  215. package/dist/pixels-PMPL63ON.js +62 -0
  216. package/dist/promoted-tweet-writes-EPXZFIUP.js +183 -0
  217. package/dist/promoted-tweets-Q46HUYN6.js +119 -0
  218. package/dist/publish-DHDRUTXM.js +344 -0
  219. package/dist/query-IR3LCFON.js +62 -0
  220. package/dist/reddit-2FQOS3B3.js +29 -0
  221. package/dist/refresh-VJPKAPJM.js +97 -0
  222. package/dist/release-O233BAQA.js +63 -0
  223. package/dist/relevant-pages-NPUSAV3K.js +99 -0
  224. package/dist/remove-HNSOYQVB.js +53 -0
  225. package/dist/reopen-B7KHVN5X.js +66 -0
  226. package/dist/rerun-KAB7AXTY.js +96 -0
  227. package/dist/research-I4ZQ4YQ3.js +72 -0
  228. package/dist/research-Z2SE775C.js +265 -0
  229. package/dist/reset-4T6XUNOO.js +57 -0
  230. package/dist/reset-YHEMD5N5.js +57 -0
  231. package/dist/resolve-5RJD2ELK.js +124 -0
  232. package/dist/retry-S3EC6FCA.js +65 -0
  233. package/dist/retry-WKYMY2KB.js +63 -0
  234. package/dist/revenue-C4E4PRLL.js +91 -0
  235. package/dist/rules-JGTKFXM3.js +99 -0
  236. package/dist/rules-add-3DTRLVGR.js +465 -0
  237. package/dist/run-2TKYHCN2.js +71 -0
  238. package/dist/run-TYJLOJW7.js +69 -0
  239. package/dist/scaffold-ad-RFRUPUKW.js +1513 -0
  240. package/dist/scaffold-static-ad-N5QCJFGP.js +1011 -0
  241. package/dist/scaffold-video-VAG3WN5W.js +885 -0
  242. package/dist/schedule-6UYJLE5K.js +64 -0
  243. package/dist/scheduled-agents-YEHJ4XIB.js +55 -0
  244. package/dist/schema-BCCCNVNO.js +135 -0
  245. package/dist/search-J43ZG7W3.js +177 -0
  246. package/dist/select-I2UPGGZ5.js +110 -0
  247. package/dist/sends-CEZAPEQN.js +349 -0
  248. package/dist/sends-CEZAPEQN.js.map +1 -0
  249. package/dist/set-prompt-SU7YM7FW.js +199 -0
  250. package/dist/setup-links-VWK4MBI3.js +144 -0
  251. package/dist/shopify-6KNHPC4R.js +3958 -0
  252. package/dist/site-PHTJ5VI3.js +180 -0
  253. package/dist/sources-255OGK6K.js +30 -0
  254. package/dist/sources-52N253A7.js +457 -0
  255. package/dist/sources-52N253A7.js.map +1 -0
  256. package/dist/stale-KN2ZOJ5T.js +90 -0
  257. package/dist/status-BJH7ODU4.js +65 -0
  258. package/dist/studio-C2UVCTDD.js +49 -0
  259. package/dist/sync-MIKA6IM6.js +57 -0
  260. package/dist/sync-definition-LO425HBD.js +70 -0
  261. package/dist/tags-DKSJ4E7E.js +227 -0
  262. package/dist/tags-JEGCEFMZ.js +23 -0
  263. package/dist/tags-MNHBZ7FH.js +23 -0
  264. package/dist/tags-S5XY63D3.js +23 -0
  265. package/dist/tags-VVO3BT66.js +26 -0
  266. package/dist/targeting-criteria-BIIGZTLQ.js +113 -0
  267. package/dist/targets-SX3NMYQ3.js +106 -0
  268. package/dist/testimonials-U3KBI3VU.js +32 -0
  269. package/dist/themes-32CUPT4M.js +95 -0
  270. package/dist/top-companies-DFM4F2SE.js +111 -0
  271. package/dist/transcript-4BSUSOQ4.js +165 -0
  272. package/dist/translate-JE7CZJ26.js +603 -0
  273. package/dist/triggers-SRI27OAP.js +144 -0
  274. package/dist/unlink-U7HZ4CYW.js +70 -0
  275. package/dist/unstage-JJGZJVHT.js +88 -0
  276. package/dist/update-JN75LN32.js +66 -0
  277. package/dist/update-PU5LSQ7W.js +192 -0
  278. package/dist/update-PUWD5HX4.js +101 -0
  279. package/dist/update-R4EEEWT4.js +155 -0
  280. package/dist/upload-4CUPZI3X.js +130 -0
  281. package/dist/url-options-P3UTLYUY.js +131 -0
  282. package/dist/url-params-V7KQMWK3.js +101 -0
  283. package/dist/validate-6GRMJKZI.js +125 -0
  284. package/dist/videos-6ZZ6LLTL.js +41 -0
  285. package/dist/viewer-check-B36TNSZI.js +83 -0
  286. package/dist/web-H5CWLHRA.js +143 -0
  287. package/dist/winning-ads-SHNXPIYB.js +86 -0
  288. package/dist/write-commands-RI6UP4YG.js +1525 -0
  289. package/dist/x-CI2XPNBR.js +47 -0
  290. package/package.json +1 -1
  291. package/dist/account-LO57QU6O.js +0 -82
  292. package/dist/account-V5XHQY2D.js +0 -82
  293. package/dist/account-reads-CPL3HLZ5.js +0 -219
  294. package/dist/account-users-RF3VN6VL.js +0 -64
  295. package/dist/account-writes-MFKCVMMV.js +0 -68
  296. package/dist/accounts-DTHZLL3R.js +0 -701
  297. package/dist/accounts-SJ5MKHKE.js +0 -80
  298. package/dist/actions-LRJRQXC3.js +0 -55
  299. package/dist/activecampaign-DMFUWRD6.js +0 -938
  300. package/dist/ad-group-writes-WFYPFO7R.js +0 -172
  301. package/dist/ad-groups-IPY3TJUX.js +0 -70
  302. package/dist/ad-writes-LDNNN72V.js +0 -176
  303. package/dist/add-HSF5S544.js +0 -107
  304. package/dist/add-IOIY44HY.js +0 -305
  305. package/dist/ads-CDA6DGGZ.js +0 -48
  306. package/dist/ads-NTDJRTEG.js +0 -79
  307. package/dist/advertisers-T4AGXFN4.js +0 -123
  308. package/dist/analytics-MDIE5CPL.js +0 -2437
  309. package/dist/analytics-TLEWXYXV.js +0 -447
  310. package/dist/animate-CQON6SZE.js +0 -480
  311. package/dist/assign-N5PNZWUW.js +0 -80
  312. package/dist/audience-size-GMANWKU5.js +0 -76
  313. package/dist/audiences-KRI7E7FY.js +0 -280
  314. package/dist/audit-EGLLMYFY.js +0 -154
  315. package/dist/autocomplete-6DUDQLRT.js +0 -114
  316. package/dist/avatars-UZN75NVZ.js +0 -38
  317. package/dist/bid-pricing-SQERHWYU.js +0 -103
  318. package/dist/brand-XY7EVNPW.js +0 -22
  319. package/dist/brief-NMACLLA2.js +0 -543
  320. package/dist/campaign-groups-VWSLBQKJ.js +0 -99
  321. package/dist/campaign-writes-DAL4EFIV.js +0 -176
  322. package/dist/campaign-writes-FBIQOLRS.js +0 -168
  323. package/dist/campaigns-64JH3U6Z.js +0 -113
  324. package/dist/campaigns-KYI6WAXT.js +0 -111
  325. package/dist/campaigns-TKQDXU5H.js +0 -78
  326. package/dist/canvas-DTJM2LTE.js +0 -46
  327. package/dist/capabilities-O5UVQ4KK.js +0 -147
  328. package/dist/catalog-6CXOEKBI.js +0 -66
  329. package/dist/catalogs-ETVY5OZ5.js +0 -130
  330. package/dist/changes-MHNRAC2E.js +0 -135
  331. package/dist/chatgpt-GINMQJBI.js +0 -47
  332. package/dist/chats-NUO3CA4N.js +0 -384
  333. package/dist/check-RRHOCY2U.js +0 -107
  334. package/dist/chunk-2AJ5UNOF.js +0 -131
  335. package/dist/chunk-2Y3VZILY.js +0 -98
  336. package/dist/chunk-3BOPIUO6.js +0 -163
  337. package/dist/chunk-3LH5ANM4.js +0 -7712
  338. package/dist/chunk-3RWSYI6N.js +0 -63
  339. package/dist/chunk-4PWC4KAK.js +0 -843
  340. package/dist/chunk-5MMAYAWR.js +0 -103
  341. package/dist/chunk-5VVXF3OS.js +0 -676
  342. package/dist/chunk-5Y3EEI52.js +0 -224
  343. package/dist/chunk-6EMVPPSQ.js +0 -89
  344. package/dist/chunk-77MDZIHK.js +0 -23
  345. package/dist/chunk-A5PQYKVO.js +0 -344
  346. package/dist/chunk-AA3WWPX2.js +0 -392
  347. package/dist/chunk-AL6373J7.js +0 -930
  348. package/dist/chunk-AMHVCMBW.js +0 -3510
  349. package/dist/chunk-BQYSBQZ3.js +0 -91
  350. package/dist/chunk-BYZQ43VI.js +0 -592
  351. package/dist/chunk-C54JXXV3.js +0 -24026
  352. package/dist/chunk-C54JXXV3.js.map +0 -1
  353. package/dist/chunk-C753PJBU.js +0 -91
  354. package/dist/chunk-CB7GZQVN.js +0 -249
  355. package/dist/chunk-CTBDVZ5E.js +0 -274
  356. package/dist/chunk-CV35AJYT.js +0 -57
  357. package/dist/chunk-EJBHZ7AQ.js +0 -387
  358. package/dist/chunk-EKQCHHZW.js +0 -319
  359. package/dist/chunk-FOD5VSHH.js +0 -51
  360. package/dist/chunk-FSLSISPI.js +0 -46
  361. package/dist/chunk-G523URK2.js +0 -438
  362. package/dist/chunk-G6KE737R.js +0 -377
  363. package/dist/chunk-GNZM7SWV.js +0 -156
  364. package/dist/chunk-GRXBD43G.js +0 -169
  365. package/dist/chunk-GT76FWES.js +0 -1919
  366. package/dist/chunk-GTIQUOYC.js +0 -148
  367. package/dist/chunk-GTV62WIS.js +0 -479
  368. package/dist/chunk-GY6N42PE.js +0 -142
  369. package/dist/chunk-H27R5IVQ.js +0 -64
  370. package/dist/chunk-HHQYP6RM.js +0 -783
  371. package/dist/chunk-HN7GK5UX.js +0 -910
  372. package/dist/chunk-I6W6FAUZ.js +0 -547
  373. package/dist/chunk-IJ5DWALA.js +0 -225
  374. package/dist/chunk-JAC6JVCI.js +0 -26
  375. package/dist/chunk-K5CEP7W4.js +0 -66
  376. package/dist/chunk-KJOEW2PI.js +0 -297
  377. package/dist/chunk-KVBNUGQ6.js +0 -197
  378. package/dist/chunk-MCJ5I5LR.js +0 -3187
  379. package/dist/chunk-MCJ5I5LR.js.map +0 -1
  380. package/dist/chunk-MLMQR24H.js +0 -1646
  381. package/dist/chunk-MZPS46OR.js +0 -76
  382. package/dist/chunk-N2MZLW6O.js +0 -170
  383. package/dist/chunk-NGXZQESA.js +0 -5471
  384. package/dist/chunk-NJIRVF2B.js +0 -8954
  385. package/dist/chunk-NNG4QCKJ.js +0 -207
  386. package/dist/chunk-NPF4KTRK.js +0 -191
  387. package/dist/chunk-NQ5O2NCJ.js +0 -5368
  388. package/dist/chunk-OU4TDC2P.js +0 -275
  389. package/dist/chunk-P7WISPGE.js +0 -61
  390. package/dist/chunk-R2VP7FK4.js +0 -831
  391. package/dist/chunk-RD63FPG6.js +0 -150
  392. package/dist/chunk-RFR7ZN3P.js +0 -604
  393. package/dist/chunk-RW32BYY3.js +0 -1518
  394. package/dist/chunk-SMDJW5W4.js +0 -19
  395. package/dist/chunk-THV7SMY6.js +0 -203
  396. package/dist/chunk-TI4UL56R.js +0 -4266
  397. package/dist/chunk-TI4UL56R.js.map +0 -1
  398. package/dist/chunk-TNQJDM2P.js +0 -1902
  399. package/dist/chunk-TQDZQT6U.js +0 -167
  400. package/dist/chunk-UC46M2KW.js +0 -494
  401. package/dist/chunk-UIPSSTMA.js +0 -228
  402. package/dist/chunk-VMUJ6JHR.js +0 -2209
  403. package/dist/chunk-VWKFQ4ZY.js +0 -285
  404. package/dist/chunk-WAE4G3Q6.js +0 -846
  405. package/dist/chunk-WTYKTPZP.js +0 -455
  406. package/dist/chunk-XFMFZAWL.js +0 -429
  407. package/dist/chunk-YFIWCMVC.js +0 -638
  408. package/dist/claim-ZKKC5472.js +0 -200
  409. package/dist/companies-CJFQ63MC.js +0 -198
  410. package/dist/company-7K4EDRIN.js +0 -308
  411. package/dist/complete-ODOQLGSO.js +0 -84
  412. package/dist/connect-APAK3WAY.js +0 -45
  413. package/dist/conversation-B6V3VCT5.js +0 -96
  414. package/dist/conversion-report-JNWBTLA5.js +0 -127
  415. package/dist/conversion-upload-command-6OKMSO2T.js +0 -439
  416. package/dist/conversion-writes-2VOWP4RD.js +0 -122
  417. package/dist/conversions-D32UTEPH.js +0 -140
  418. package/dist/conversions-JGIBYLK5.js +0 -78
  419. package/dist/create-ALMXIVHA.js +0 -239
  420. package/dist/create-EUQYK2SH.js +0 -135
  421. package/dist/create-TOCR7EFZ.js +0 -62
  422. package/dist/create-VAGPIZTU.js +0 -210
  423. package/dist/creatives-62PV7BIF.js +0 -223
  424. package/dist/creatives-HUDKBUDS.js +0 -58
  425. package/dist/credentials-WCD4F225.js +0 -290
  426. package/dist/critique-KJXHSKLT.js +0 -1451
  427. package/dist/critique-OO6SORTA.js +0 -232
  428. package/dist/crm-5CYCCV34.js +0 -323
  429. package/dist/crm-YVRIT2RL.js +0 -227
  430. package/dist/currency-SH4DDE3X.js +0 -88
  431. package/dist/customers-FSOXPMOU.js +0 -59
  432. package/dist/delete-EEU6WJ6M.js +0 -67
  433. package/dist/delete-H7IWZGUZ.js +0 -69
  434. package/dist/delete-QXZFJNUS.js +0 -57
  435. package/dist/demographics-RM5PA54R.js +0 -141
  436. package/dist/discard-6XOYXNZ6.js +0 -69
  437. package/dist/discover-VEHKBNCY.js +0 -172
  438. package/dist/domain-X7MT3XUG.js +0 -101
  439. package/dist/download-YQYR5GUP.js +0 -172
  440. package/dist/draft-DUAFRL2G.js +0 -283
  441. package/dist/draft-FXMGEY3E.js +0 -220
  442. package/dist/draft-V7VGPJK4.js +0 -396
  443. package/dist/draft-XWHU5C5Z.js +0 -335
  444. package/dist/draft-YXGASP7M.js +0 -310
  445. package/dist/experiments-2XOC77Y7.js +0 -236
  446. package/dist/facets-7Q36JF2D.js +0 -117
  447. package/dist/feedback-WPV2RKJS.js +0 -115
  448. package/dist/feedback-record-UEWS4FZJ.js +0 -269
  449. package/dist/fetch-AARAG6UL.js +0 -179
  450. package/dist/fit-T4ALNNXL.js +0 -65
  451. package/dist/flows-PYPA2FM3.js +0 -250
  452. package/dist/fonts-H2GG2JXA.js +0 -39
  453. package/dist/forecast-LMSPNY6X.js +0 -121
  454. package/dist/forecast-UYBYSH3Y.js +0 -169
  455. package/dist/funnel-KIYPFPIY.js +0 -397
  456. package/dist/generate-QG7GX6WO.js +0 -263
  457. package/dist/get-IN6UXQRX.js +0 -59
  458. package/dist/get-ROETYEYF.js +0 -82
  459. package/dist/google-ZT3J3G4Z.js +0 -3267
  460. package/dist/google-ads-CBJZKTXG.js +0 -198
  461. package/dist/history-GTT55ZP7.js +0 -102
  462. package/dist/history-UYG35MNJ.js +0 -136
  463. package/dist/history-XOB23MLX.js +0 -69
  464. package/dist/hubspot-B6Z77JY6.js +0 -782
  465. package/dist/ideas-RVK4RNKN.js +0 -45
  466. package/dist/images-RGJZ6FJL.js +0 -92
  467. package/dist/ingest-7FHCKRYR.js +0 -27
  468. package/dist/ingest-GBWY2ZEP.js +0 -123
  469. package/dist/insights-7CQJOBWX.js +0 -132
  470. package/dist/inspect-RC6GKLIF.js +0 -192
  471. package/dist/intent-P75BDP4H.js +0 -95
  472. package/dist/keyword-gap-54F6CZLM.js +0 -130
  473. package/dist/keyword-metrics-PL5IYZGN.js +0 -200
  474. package/dist/keywords-for-site-4FMJ5IGN.js +0 -131
  475. package/dist/landing-24TVKWTP.js +0 -28
  476. package/dist/languages-PEGOE365.js +0 -40
  477. package/dist/leads-6TFBPYMM.js +0 -115
  478. package/dist/learn-4LGNFGWH.js +0 -207
  479. package/dist/line-item-writes-AOTRDB4L.js +0 -211
  480. package/dist/line-items-ERV3F2EI.js +0 -107
  481. package/dist/link-QZXI5YJP.js +0 -67
  482. package/dist/linkedin-4BKZ5KUE.js +0 -1328
  483. package/dist/linkedin-person-ZLXMOG2U.js +0 -139
  484. package/dist/list-7FB6764Q.js +0 -67
  485. package/dist/list-QHAYR2IQ.js +0 -154
  486. package/dist/list-UCQEHPIR.js +0 -306
  487. package/dist/locations-MXWGZIGU.js +0 -69
  488. package/dist/locations-SHYN5J4Q.js +0 -40
  489. package/dist/log-WPZRUMZU.js +0 -95
  490. package/dist/make-VCAS2M2W.js +0 -1367
  491. package/dist/map-5EQO2VXB.js +0 -436
  492. package/dist/mcp-CKOYL4IU.js +0 -729
  493. package/dist/media-sources-EDZ2PBJY.js +0 -35
  494. package/dist/members-E2AGJIU6.js +0 -47
  495. package/dist/metrics-25LYUEB7.js +0 -152
  496. package/dist/models-EU3NO4IY.js +0 -155
  497. package/dist/normalize-PHJT5CAD.js +0 -144
  498. package/dist/options-KFABOCWK.js +0 -125
  499. package/dist/organization-BP5DTWL7.js +0 -949
  500. package/dist/performance-C4M3GJPC.js +0 -27
  501. package/dist/performance-H3SJD3SN.js +0 -5565
  502. package/dist/pixels-NLH2PN6Q.js +0 -62
  503. package/dist/promoted-tweet-writes-ATWAKV6N.js +0 -183
  504. package/dist/promoted-tweets-TWQP3MDP.js +0 -119
  505. package/dist/publish-Q4W7MI7P.js +0 -344
  506. package/dist/query-TP3L4W7Z.js +0 -62
  507. package/dist/reddit-JWZYSUAG.js +0 -29
  508. package/dist/refresh-VRBHP4AA.js +0 -97
  509. package/dist/release-OV4ZDCXG.js +0 -63
  510. package/dist/relevant-pages-VJHTUJMB.js +0 -99
  511. package/dist/remove-DBCSQSEP.js +0 -53
  512. package/dist/reopen-5ZOEKYQ5.js +0 -66
  513. package/dist/rerun-YMRW6BHM.js +0 -96
  514. package/dist/research-HUM6CF74.js +0 -265
  515. package/dist/research-M3QPWTYX.js +0 -72
  516. package/dist/reset-BPAFOW6M.js +0 -57
  517. package/dist/reset-WAY3BSZX.js +0 -57
  518. package/dist/resolve-AQ6UFEMN.js +0 -124
  519. package/dist/retry-3KYFTPXZ.js +0 -65
  520. package/dist/retry-XO54CIRK.js +0 -63
  521. package/dist/revenue-PPDMQO3H.js +0 -91
  522. package/dist/rules-4ENXG5XW.js +0 -99
  523. package/dist/rules-add-FTBOOE6L.js +0 -465
  524. package/dist/run-2ZRTKR7A.js +0 -69
  525. package/dist/run-UECCNQ63.js +0 -71
  526. package/dist/scaffold-ad-DFKFUOOZ.js +0 -1513
  527. package/dist/scaffold-static-ad-II3TUE5I.js +0 -1011
  528. package/dist/scaffold-video-IKVYICIY.js +0 -885
  529. package/dist/schedule-ERHKGQID.js +0 -64
  530. package/dist/scheduled-agents-ICXFV7NP.js +0 -55
  531. package/dist/schema-NUUZ3MG7.js +0 -135
  532. package/dist/search-B2APYHV6.js +0 -177
  533. package/dist/select-WVNPJDXP.js +0 -110
  534. package/dist/sends-H7WMLJ5H.js +0 -349
  535. package/dist/sends-H7WMLJ5H.js.map +0 -1
  536. package/dist/set-prompt-KHBDWDXA.js +0 -199
  537. package/dist/setup-links-R3FH7WK4.js +0 -144
  538. package/dist/shopify-34CFN6SG.js +0 -3958
  539. package/dist/site-H6AMVMIX.js +0 -180
  540. package/dist/sources-2VJMHUH7.js +0 -30
  541. package/dist/sources-S63224S7.js +0 -457
  542. package/dist/sources-S63224S7.js.map +0 -1
  543. package/dist/stale-6BEHWQZ7.js +0 -90
  544. package/dist/status-MCMOSDVX.js +0 -65
  545. package/dist/studio-4QOFG7MQ.js +0 -49
  546. package/dist/sync-WJCJHNET.js +0 -57
  547. package/dist/sync-definition-THVMBGJR.js +0 -70
  548. package/dist/tags-AGFUJ2BB.js +0 -227
  549. package/dist/tags-OPMPPJY2.js +0 -23
  550. package/dist/tags-VGJ76RJT.js +0 -26
  551. package/dist/tags-VOCMMZ75.js +0 -23
  552. package/dist/tags-WK6P5A4D.js +0 -23
  553. package/dist/targeting-criteria-KRIMZRVI.js +0 -113
  554. package/dist/targets-MCOEM4XQ.js +0 -106
  555. package/dist/testimonials-A2AFXSZV.js +0 -32
  556. package/dist/themes-JBX6W4SP.js +0 -95
  557. package/dist/top-companies-ESCRXLSK.js +0 -111
  558. package/dist/transcript-N2ZWN4CI.js +0 -165
  559. package/dist/translate-YGUYVOGA.js +0 -603
  560. package/dist/triggers-G4EW5XG6.js +0 -144
  561. package/dist/unlink-DRIVH2GT.js +0 -70
  562. package/dist/unstage-WUQV6QBV.js +0 -88
  563. package/dist/update-5GIAKABM.js +0 -66
  564. package/dist/update-COXCKREW.js +0 -101
  565. package/dist/update-NA4M4J5D.js +0 -155
  566. package/dist/update-T7PSOZES.js +0 -192
  567. package/dist/upload-IXVEJLZU.js +0 -130
  568. package/dist/url-options-LHEGWNAH.js +0 -131
  569. package/dist/url-params-IL2M2WZI.js +0 -101
  570. package/dist/validate-QAJJ7QCJ.js +0 -125
  571. package/dist/videos-I7PCC2EC.js +0 -41
  572. package/dist/viewer-check-PUAWVYWP.js +0 -83
  573. package/dist/web-O2MCPPB5.js +0 -143
  574. package/dist/winning-ads-FTMP4FUC.js +0 -86
  575. package/dist/write-commands-NKKNWQIM.js +0 -1525
  576. package/dist/x-FPRMRQLQ.js +0 -47
  577. /package/dist/{account-LO57QU6O.js.map → account-2RNYGT6E.js.map} +0 -0
  578. /package/dist/{account-V5XHQY2D.js.map → account-T26J6HSJ.js.map} +0 -0
  579. /package/dist/{account-reads-CPL3HLZ5.js.map → account-reads-P2WXB3NZ.js.map} +0 -0
  580. /package/dist/{account-users-RF3VN6VL.js.map → account-users-REWJY2TN.js.map} +0 -0
  581. /package/dist/{account-writes-MFKCVMMV.js.map → account-writes-QEZQCU46.js.map} +0 -0
  582. /package/dist/{accounts-DTHZLL3R.js.map → accounts-MJ7AGPOW.js.map} +0 -0
  583. /package/dist/{accounts-SJ5MKHKE.js.map → accounts-PGSNRUNV.js.map} +0 -0
  584. /package/dist/{actions-LRJRQXC3.js.map → actions-NGBCTPNG.js.map} +0 -0
  585. /package/dist/{activecampaign-DMFUWRD6.js.map → activecampaign-ASE4IVTD.js.map} +0 -0
  586. /package/dist/{ad-group-writes-WFYPFO7R.js.map → ad-group-writes-MVQKICSC.js.map} +0 -0
  587. /package/dist/{ad-groups-IPY3TJUX.js.map → ad-groups-5OGD7PJ7.js.map} +0 -0
  588. /package/dist/{ad-writes-LDNNN72V.js.map → ad-writes-OVD6EESQ.js.map} +0 -0
  589. /package/dist/{add-HSF5S544.js.map → add-QBEF2C7Z.js.map} +0 -0
  590. /package/dist/{add-IOIY44HY.js.map → add-YJP43JWJ.js.map} +0 -0
  591. /package/dist/{ads-CDA6DGGZ.js.map → ads-GF7QLKBX.js.map} +0 -0
  592. /package/dist/{ads-NTDJRTEG.js.map → ads-SCWCG2YI.js.map} +0 -0
  593. /package/dist/{advertisers-T4AGXFN4.js.map → advertisers-SUZT4NRJ.js.map} +0 -0
  594. /package/dist/{analytics-MDIE5CPL.js.map → analytics-NJBF3U54.js.map} +0 -0
  595. /package/dist/{analytics-TLEWXYXV.js.map → analytics-PI6SXDW4.js.map} +0 -0
  596. /package/dist/{animate-CQON6SZE.js.map → animate-HV2QJWVE.js.map} +0 -0
  597. /package/dist/{assign-N5PNZWUW.js.map → assign-6YG56OCM.js.map} +0 -0
  598. /package/dist/{audience-size-GMANWKU5.js.map → audience-size-5X3BHQ6Q.js.map} +0 -0
  599. /package/dist/{audiences-KRI7E7FY.js.map → audiences-6N5B7CA2.js.map} +0 -0
  600. /package/dist/{audit-EGLLMYFY.js.map → audit-PLXF2NAS.js.map} +0 -0
  601. /package/dist/{autocomplete-6DUDQLRT.js.map → autocomplete-YJSDRTMT.js.map} +0 -0
  602. /package/dist/{avatars-UZN75NVZ.js.map → avatars-BDQWTQKY.js.map} +0 -0
  603. /package/dist/{bid-pricing-SQERHWYU.js.map → bid-pricing-BUNOVWUB.js.map} +0 -0
  604. /package/dist/{brand-XY7EVNPW.js.map → brand-MHFSUXWN.js.map} +0 -0
  605. /package/dist/{brief-NMACLLA2.js.map → brief-A5AEZBZL.js.map} +0 -0
  606. /package/dist/{campaign-groups-VWSLBQKJ.js.map → campaign-groups-UYNINWXX.js.map} +0 -0
  607. /package/dist/{campaign-writes-FBIQOLRS.js.map → campaign-writes-RCA52SAP.js.map} +0 -0
  608. /package/dist/{campaign-writes-DAL4EFIV.js.map → campaign-writes-TFRV62VN.js.map} +0 -0
  609. /package/dist/{campaigns-64JH3U6Z.js.map → campaigns-CIQIZ46G.js.map} +0 -0
  610. /package/dist/{campaigns-KYI6WAXT.js.map → campaigns-EETR5UJR.js.map} +0 -0
  611. /package/dist/{campaigns-TKQDXU5H.js.map → campaigns-KPUA4GP2.js.map} +0 -0
  612. /package/dist/{canvas-DTJM2LTE.js.map → canvas-M3RXWJ2T.js.map} +0 -0
  613. /package/dist/{capabilities-O5UVQ4KK.js.map → capabilities-XFLST37G.js.map} +0 -0
  614. /package/dist/{catalog-6CXOEKBI.js.map → catalog-JVBRY2U6.js.map} +0 -0
  615. /package/dist/{catalogs-ETVY5OZ5.js.map → catalogs-QYAAPTMV.js.map} +0 -0
  616. /package/dist/{changes-MHNRAC2E.js.map → changes-Y4NAQ2IV.js.map} +0 -0
  617. /package/dist/{chatgpt-GINMQJBI.js.map → chatgpt-KJAUJBRK.js.map} +0 -0
  618. /package/dist/{chats-NUO3CA4N.js.map → chats-5BNHZWO7.js.map} +0 -0
  619. /package/dist/{check-RRHOCY2U.js.map → check-ESD3QPIZ.js.map} +0 -0
  620. /package/dist/{chunk-EKQCHHZW.js.map → chunk-2EVHGBQY.js.map} +0 -0
  621. /package/dist/{chunk-GNZM7SWV.js.map → chunk-2JFCDUZO.js.map} +0 -0
  622. /package/dist/{chunk-UC46M2KW.js.map → chunk-2MAQKELK.js.map} +0 -0
  623. /package/dist/{chunk-GT76FWES.js.map → chunk-2OCUXPWT.js.map} +0 -0
  624. /package/dist/{chunk-G523URK2.js.map → chunk-3ANPDWU7.js.map} +0 -0
  625. /package/dist/{chunk-VMUJ6JHR.js.map → chunk-3C3IR2F6.js.map} +0 -0
  626. /package/dist/{chunk-G6KE737R.js.map → chunk-3GMJEM4C.js.map} +0 -0
  627. /package/dist/{chunk-R2VP7FK4.js.map → chunk-4YWSFFOP.js.map} +0 -0
  628. /package/dist/{chunk-CV35AJYT.js.map → chunk-5JG77PP3.js.map} +0 -0
  629. /package/dist/{chunk-A5PQYKVO.js.map → chunk-5TWI6FFY.js.map} +0 -0
  630. /package/dist/{chunk-5Y3EEI52.js.map → chunk-65HTWFKN.js.map} +0 -0
  631. /package/dist/{chunk-JAC6JVCI.js.map → chunk-6OIKNJ7G.js.map} +0 -0
  632. /package/dist/{chunk-WTYKTPZP.js.map → chunk-6RUHIXVA.js.map} +0 -0
  633. /package/dist/{chunk-NPF4KTRK.js.map → chunk-6X4XAANZ.js.map} +0 -0
  634. /package/dist/{chunk-C753PJBU.js.map → chunk-6Z32HS4D.js.map} +0 -0
  635. /package/dist/{chunk-3BOPIUO6.js.map → chunk-7MK4TND6.js.map} +0 -0
  636. /package/dist/{chunk-GTIQUOYC.js.map → chunk-AUO4QNMI.js.map} +0 -0
  637. /package/dist/{chunk-VWKFQ4ZY.js.map → chunk-B6WOWVAA.js.map} +0 -0
  638. /package/dist/{chunk-2Y3VZILY.js.map → chunk-BF32BRMX.js.map} +0 -0
  639. /package/dist/{chunk-CB7GZQVN.js.map → chunk-BIFK5OGB.js.map} +0 -0
  640. /package/dist/{chunk-GY6N42PE.js.map → chunk-BUXPBPAP.js.map} +0 -0
  641. /package/dist/{chunk-AA3WWPX2.js.map → chunk-CDRS2QAP.js.map} +0 -0
  642. /package/dist/{chunk-EJBHZ7AQ.js.map → chunk-CFVVZKSU.js.map} +0 -0
  643. /package/dist/{chunk-SMDJW5W4.js.map → chunk-D3KWV63D.js.map} +0 -0
  644. /package/dist/{chunk-77MDZIHK.js.map → chunk-D5LV3ECR.js.map} +0 -0
  645. /package/dist/{chunk-NQ5O2NCJ.js.map → chunk-DBLOEIJ2.js.map} +0 -0
  646. /package/dist/{chunk-CTBDVZ5E.js.map → chunk-DQIPDAPH.js.map} +0 -0
  647. /package/dist/{chunk-AL6373J7.js.map → chunk-EFBJ35ZS.js.map} +0 -0
  648. /package/dist/{chunk-BQYSBQZ3.js.map → chunk-EMXBMLQ4.js.map} +0 -0
  649. /package/dist/{chunk-GRXBD43G.js.map → chunk-EZVRXFCC.js.map} +0 -0
  650. /package/dist/{chunk-UIPSSTMA.js.map → chunk-GCFC2MNR.js.map} +0 -0
  651. /package/dist/{chunk-NNG4QCKJ.js.map → chunk-GQ4D3BT6.js.map} +0 -0
  652. /package/dist/{chunk-3RWSYI6N.js.map → chunk-HMFIOE4P.js.map} +0 -0
  653. /package/dist/{chunk-AMHVCMBW.js.map → chunk-HXLCETLB.js.map} +0 -0
  654. /package/dist/{chunk-WAE4G3Q6.js.map → chunk-JZ6XRIXG.js.map} +0 -0
  655. /package/dist/{chunk-4PWC4KAK.js.map → chunk-KAUW3OFC.js.map} +0 -0
  656. /package/dist/{chunk-TQDZQT6U.js.map → chunk-KFHW5TCM.js.map} +0 -0
  657. /package/dist/{chunk-5VVXF3OS.js.map → chunk-MHRFRSQ6.js.map} +0 -0
  658. /package/dist/{chunk-GTV62WIS.js.map → chunk-MQZXGTGI.js.map} +0 -0
  659. /package/dist/{chunk-I6W6FAUZ.js.map → chunk-NNNMTRGI.js.map} +0 -0
  660. /package/dist/{chunk-RD63FPG6.js.map → chunk-NQF5U6FX.js.map} +0 -0
  661. /package/dist/{chunk-N2MZLW6O.js.map → chunk-OROWRGRJ.js.map} +0 -0
  662. /package/dist/{chunk-MLMQR24H.js.map → chunk-OWJGBIQ2.js.map} +0 -0
  663. /package/dist/{chunk-5MMAYAWR.js.map → chunk-PAU4VS7H.js.map} +0 -0
  664. /package/dist/{chunk-XFMFZAWL.js.map → chunk-PTGC7CVG.js.map} +0 -0
  665. /package/dist/{chunk-H27R5IVQ.js.map → chunk-RAO7FTMY.js.map} +0 -0
  666. /package/dist/{chunk-HHQYP6RM.js.map → chunk-RM5T4MA6.js.map} +0 -0
  667. /package/dist/{chunk-OU4TDC2P.js.map → chunk-RP2PU3CA.js.map} +0 -0
  668. /package/dist/{chunk-6EMVPPSQ.js.map → chunk-RSKU45CU.js.map} +0 -0
  669. /package/dist/{chunk-TNQJDM2P.js.map → chunk-SA6XZ3FP.js.map} +0 -0
  670. /package/dist/{chunk-MZPS46OR.js.map → chunk-SIKCVWM3.js.map} +0 -0
  671. /package/dist/{chunk-NJIRVF2B.js.map → chunk-SPQHISWX.js.map} +0 -0
  672. /package/dist/{chunk-FOD5VSHH.js.map → chunk-SQVT243W.js.map} +0 -0
  673. /package/dist/{chunk-KJOEW2PI.js.map → chunk-T267DS5U.js.map} +0 -0
  674. /package/dist/{chunk-KVBNUGQ6.js.map → chunk-UQKDP46G.js.map} +0 -0
  675. /package/dist/{chunk-P7WISPGE.js.map → chunk-UVVOG5A7.js.map} +0 -0
  676. /package/dist/{chunk-BYZQ43VI.js.map → chunk-UZGZS35I.js.map} +0 -0
  677. /package/dist/{chunk-K5CEP7W4.js.map → chunk-W7BORINM.js.map} +0 -0
  678. /package/dist/{chunk-NGXZQESA.js.map → chunk-WM6JHUPY.js.map} +0 -0
  679. /package/dist/{chunk-THV7SMY6.js.map → chunk-XBMZNFN7.js.map} +0 -0
  680. /package/dist/{chunk-HN7GK5UX.js.map → chunk-XHW24Q5Q.js.map} +0 -0
  681. /package/dist/{chunk-IJ5DWALA.js.map → chunk-XMHTLWWE.js.map} +0 -0
  682. /package/dist/{chunk-3LH5ANM4.js.map → chunk-XXS6SUVM.js.map} +0 -0
  683. /package/dist/{chunk-FSLSISPI.js.map → chunk-Y3ESEQRI.js.map} +0 -0
  684. /package/dist/{chunk-YFIWCMVC.js.map → chunk-YAX5CGUY.js.map} +0 -0
  685. /package/dist/{chunk-RFR7ZN3P.js.map → chunk-ZCN2XUPQ.js.map} +0 -0
  686. /package/dist/{chunk-RW32BYY3.js.map → chunk-ZJOXRK2G.js.map} +0 -0
  687. /package/dist/{chunk-2AJ5UNOF.js.map → chunk-ZPHHJPDG.js.map} +0 -0
  688. /package/dist/{claim-ZKKC5472.js.map → claim-NM5T33W6.js.map} +0 -0
  689. /package/dist/{companies-CJFQ63MC.js.map → companies-VBNBS6LR.js.map} +0 -0
  690. /package/dist/{company-7K4EDRIN.js.map → company-3KOV3TJT.js.map} +0 -0
  691. /package/dist/{complete-ODOQLGSO.js.map → complete-TVY4F5YX.js.map} +0 -0
  692. /package/dist/{connect-APAK3WAY.js.map → connect-W6H3DT2C.js.map} +0 -0
  693. /package/dist/{conversation-B6V3VCT5.js.map → conversation-LCGWNPUG.js.map} +0 -0
  694. /package/dist/{conversion-report-JNWBTLA5.js.map → conversion-report-GK2FUT2R.js.map} +0 -0
  695. /package/dist/{conversion-upload-command-6OKMSO2T.js.map → conversion-upload-command-Q7LZFFZL.js.map} +0 -0
  696. /package/dist/{conversion-writes-2VOWP4RD.js.map → conversion-writes-STESFLTB.js.map} +0 -0
  697. /package/dist/{conversions-D32UTEPH.js.map → conversions-D2RPIL3I.js.map} +0 -0
  698. /package/dist/{conversions-JGIBYLK5.js.map → conversions-JBRU7CGB.js.map} +0 -0
  699. /package/dist/{create-EUQYK2SH.js.map → create-DHIXUD4Q.js.map} +0 -0
  700. /package/dist/{create-ALMXIVHA.js.map → create-OW2BLTBE.js.map} +0 -0
  701. /package/dist/{create-VAGPIZTU.js.map → create-TYG5SAQE.js.map} +0 -0
  702. /package/dist/{create-TOCR7EFZ.js.map → create-XGDJKMDB.js.map} +0 -0
  703. /package/dist/{creatives-HUDKBUDS.js.map → creatives-3ZPFUAKL.js.map} +0 -0
  704. /package/dist/{creatives-62PV7BIF.js.map → creatives-PN6EQYVU.js.map} +0 -0
  705. /package/dist/{credentials-WCD4F225.js.map → credentials-AVRHDGM5.js.map} +0 -0
  706. /package/dist/{critique-KJXHSKLT.js.map → critique-76EMERXI.js.map} +0 -0
  707. /package/dist/{critique-OO6SORTA.js.map → critique-SZSKQYUL.js.map} +0 -0
  708. /package/dist/{crm-YVRIT2RL.js.map → crm-4O65STFF.js.map} +0 -0
  709. /package/dist/{crm-5CYCCV34.js.map → crm-JMIIB55O.js.map} +0 -0
  710. /package/dist/{currency-SH4DDE3X.js.map → currency-HQW6FJS5.js.map} +0 -0
  711. /package/dist/{customers-FSOXPMOU.js.map → customers-GV3AD6B6.js.map} +0 -0
  712. /package/dist/{delete-H7IWZGUZ.js.map → delete-CJGW5MKC.js.map} +0 -0
  713. /package/dist/{delete-QXZFJNUS.js.map → delete-ISAOQTI5.js.map} +0 -0
  714. /package/dist/{delete-EEU6WJ6M.js.map → delete-WFF5EVIL.js.map} +0 -0
  715. /package/dist/{demographics-RM5PA54R.js.map → demographics-XSMD6KI4.js.map} +0 -0
  716. /package/dist/{discard-6XOYXNZ6.js.map → discard-B5QMX35Q.js.map} +0 -0
  717. /package/dist/{discover-VEHKBNCY.js.map → discover-DLGO3VW6.js.map} +0 -0
  718. /package/dist/{domain-X7MT3XUG.js.map → domain-WA4HAHCE.js.map} +0 -0
  719. /package/dist/{download-YQYR5GUP.js.map → download-67IB5DPC.js.map} +0 -0
  720. /package/dist/{draft-V7VGPJK4.js.map → draft-4MKYX4VU.js.map} +0 -0
  721. /package/dist/{draft-DUAFRL2G.js.map → draft-I7HIRQ6F.js.map} +0 -0
  722. /package/dist/{draft-FXMGEY3E.js.map → draft-NXGJ3DD4.js.map} +0 -0
  723. /package/dist/{draft-YXGASP7M.js.map → draft-P73N5PT4.js.map} +0 -0
  724. /package/dist/{draft-XWHU5C5Z.js.map → draft-QAPMXYBR.js.map} +0 -0
  725. /package/dist/{experiments-2XOC77Y7.js.map → experiments-YEI3HSBU.js.map} +0 -0
  726. /package/dist/{facets-7Q36JF2D.js.map → facets-EQLEOMDT.js.map} +0 -0
  727. /package/dist/{feedback-WPV2RKJS.js.map → feedback-JNSHN7DE.js.map} +0 -0
  728. /package/dist/{feedback-record-UEWS4FZJ.js.map → feedback-record-JV43NSJI.js.map} +0 -0
  729. /package/dist/{fetch-AARAG6UL.js.map → fetch-O4EYJVMN.js.map} +0 -0
  730. /package/dist/{fit-T4ALNNXL.js.map → fit-7N7AHYQF.js.map} +0 -0
  731. /package/dist/{flows-PYPA2FM3.js.map → flows-DTZGIGZS.js.map} +0 -0
  732. /package/dist/{fonts-H2GG2JXA.js.map → fonts-TYDQXRIU.js.map} +0 -0
  733. /package/dist/{forecast-UYBYSH3Y.js.map → forecast-AODSMD7S.js.map} +0 -0
  734. /package/dist/{forecast-LMSPNY6X.js.map → forecast-VO7XY46L.js.map} +0 -0
  735. /package/dist/{funnel-KIYPFPIY.js.map → funnel-CV4DZXUS.js.map} +0 -0
  736. /package/dist/{generate-QG7GX6WO.js.map → generate-HSDSCKDW.js.map} +0 -0
  737. /package/dist/{get-ROETYEYF.js.map → get-4S4XRZ2J.js.map} +0 -0
  738. /package/dist/{get-IN6UXQRX.js.map → get-FDZZEB5R.js.map} +0 -0
  739. /package/dist/{google-ZT3J3G4Z.js.map → google-DPBZJ3TV.js.map} +0 -0
  740. /package/dist/{google-ads-CBJZKTXG.js.map → google-ads-EPFX2NA4.js.map} +0 -0
  741. /package/dist/{history-GTT55ZP7.js.map → history-7UJW5TRO.js.map} +0 -0
  742. /package/dist/{history-UYG35MNJ.js.map → history-JCLXT3AO.js.map} +0 -0
  743. /package/dist/{history-XOB23MLX.js.map → history-SHQVK5I7.js.map} +0 -0
  744. /package/dist/{hubspot-B6Z77JY6.js.map → hubspot-J6372OWH.js.map} +0 -0
  745. /package/dist/{ideas-RVK4RNKN.js.map → ideas-TKMMQ557.js.map} +0 -0
  746. /package/dist/{images-RGJZ6FJL.js.map → images-J7LJETPR.js.map} +0 -0
  747. /package/dist/{ingest-GBWY2ZEP.js.map → ingest-LVAH5OF5.js.map} +0 -0
  748. /package/dist/{ingest-7FHCKRYR.js.map → ingest-UBP7TEXU.js.map} +0 -0
  749. /package/dist/{insights-7CQJOBWX.js.map → insights-UMPXHRKD.js.map} +0 -0
  750. /package/dist/{inspect-RC6GKLIF.js.map → inspect-22G3OPFK.js.map} +0 -0
  751. /package/dist/{intent-P75BDP4H.js.map → intent-NBP5IDND.js.map} +0 -0
  752. /package/dist/{keyword-gap-54F6CZLM.js.map → keyword-gap-67UJ2LDD.js.map} +0 -0
  753. /package/dist/{keyword-metrics-PL5IYZGN.js.map → keyword-metrics-QP5ZNOC6.js.map} +0 -0
  754. /package/dist/{keywords-for-site-4FMJ5IGN.js.map → keywords-for-site-QTE332T7.js.map} +0 -0
  755. /package/dist/{landing-24TVKWTP.js.map → landing-TOYYCWFX.js.map} +0 -0
  756. /package/dist/{languages-PEGOE365.js.map → languages-TM7SHGRO.js.map} +0 -0
  757. /package/dist/{leads-6TFBPYMM.js.map → leads-FTWBDLBQ.js.map} +0 -0
  758. /package/dist/{learn-4LGNFGWH.js.map → learn-3N7M3UHA.js.map} +0 -0
  759. /package/dist/{line-item-writes-AOTRDB4L.js.map → line-item-writes-VFPXT4W6.js.map} +0 -0
  760. /package/dist/{line-items-ERV3F2EI.js.map → line-items-HB2N7RKO.js.map} +0 -0
  761. /package/dist/{link-QZXI5YJP.js.map → link-KAY6VYFH.js.map} +0 -0
  762. /package/dist/{linkedin-4BKZ5KUE.js.map → linkedin-CDSEMSCF.js.map} +0 -0
  763. /package/dist/{linkedin-person-ZLXMOG2U.js.map → linkedin-person-HR6HKFUU.js.map} +0 -0
  764. /package/dist/{list-UCQEHPIR.js.map → list-INU27RQJ.js.map} +0 -0
  765. /package/dist/{list-7FB6764Q.js.map → list-QWCU77C3.js.map} +0 -0
  766. /package/dist/{list-QHAYR2IQ.js.map → list-VJ3CVEDW.js.map} +0 -0
  767. /package/dist/{locations-SHYN5J4Q.js.map → locations-HAXZUHJP.js.map} +0 -0
  768. /package/dist/{locations-MXWGZIGU.js.map → locations-JFBM4XBL.js.map} +0 -0
  769. /package/dist/{log-WPZRUMZU.js.map → log-AUN4NOPP.js.map} +0 -0
  770. /package/dist/{make-VCAS2M2W.js.map → make-B5HDRFCX.js.map} +0 -0
  771. /package/dist/{map-5EQO2VXB.js.map → map-CCBSITK7.js.map} +0 -0
  772. /package/dist/{mcp-CKOYL4IU.js.map → mcp-45YWYNYM.js.map} +0 -0
  773. /package/dist/{media-sources-EDZ2PBJY.js.map → media-sources-N7MBY3GE.js.map} +0 -0
  774. /package/dist/{members-E2AGJIU6.js.map → members-2P2QCBJO.js.map} +0 -0
  775. /package/dist/{metrics-25LYUEB7.js.map → metrics-XWHE4LYQ.js.map} +0 -0
  776. /package/dist/{models-EU3NO4IY.js.map → models-3C6BWHEC.js.map} +0 -0
  777. /package/dist/{normalize-PHJT5CAD.js.map → normalize-MLRJ6IYU.js.map} +0 -0
  778. /package/dist/{options-KFABOCWK.js.map → options-6QAJ67XB.js.map} +0 -0
  779. /package/dist/{organization-BP5DTWL7.js.map → organization-P5LAMNMT.js.map} +0 -0
  780. /package/dist/{performance-C4M3GJPC.js.map → performance-3PH7UYQN.js.map} +0 -0
  781. /package/dist/{performance-H3SJD3SN.js.map → performance-6BMFU6IJ.js.map} +0 -0
  782. /package/dist/{pixels-NLH2PN6Q.js.map → pixels-PMPL63ON.js.map} +0 -0
  783. /package/dist/{promoted-tweet-writes-ATWAKV6N.js.map → promoted-tweet-writes-EPXZFIUP.js.map} +0 -0
  784. /package/dist/{promoted-tweets-TWQP3MDP.js.map → promoted-tweets-Q46HUYN6.js.map} +0 -0
  785. /package/dist/{publish-Q4W7MI7P.js.map → publish-DHDRUTXM.js.map} +0 -0
  786. /package/dist/{query-TP3L4W7Z.js.map → query-IR3LCFON.js.map} +0 -0
  787. /package/dist/{reddit-JWZYSUAG.js.map → reddit-2FQOS3B3.js.map} +0 -0
  788. /package/dist/{refresh-VRBHP4AA.js.map → refresh-VJPKAPJM.js.map} +0 -0
  789. /package/dist/{release-OV4ZDCXG.js.map → release-O233BAQA.js.map} +0 -0
  790. /package/dist/{relevant-pages-VJHTUJMB.js.map → relevant-pages-NPUSAV3K.js.map} +0 -0
  791. /package/dist/{remove-DBCSQSEP.js.map → remove-HNSOYQVB.js.map} +0 -0
  792. /package/dist/{reopen-5ZOEKYQ5.js.map → reopen-B7KHVN5X.js.map} +0 -0
  793. /package/dist/{rerun-YMRW6BHM.js.map → rerun-KAB7AXTY.js.map} +0 -0
  794. /package/dist/{research-M3QPWTYX.js.map → research-I4ZQ4YQ3.js.map} +0 -0
  795. /package/dist/{research-HUM6CF74.js.map → research-Z2SE775C.js.map} +0 -0
  796. /package/dist/{reset-BPAFOW6M.js.map → reset-4T6XUNOO.js.map} +0 -0
  797. /package/dist/{reset-WAY3BSZX.js.map → reset-YHEMD5N5.js.map} +0 -0
  798. /package/dist/{resolve-AQ6UFEMN.js.map → resolve-5RJD2ELK.js.map} +0 -0
  799. /package/dist/{retry-3KYFTPXZ.js.map → retry-S3EC6FCA.js.map} +0 -0
  800. /package/dist/{retry-XO54CIRK.js.map → retry-WKYMY2KB.js.map} +0 -0
  801. /package/dist/{revenue-PPDMQO3H.js.map → revenue-C4E4PRLL.js.map} +0 -0
  802. /package/dist/{rules-4ENXG5XW.js.map → rules-JGTKFXM3.js.map} +0 -0
  803. /package/dist/{rules-add-FTBOOE6L.js.map → rules-add-3DTRLVGR.js.map} +0 -0
  804. /package/dist/{run-UECCNQ63.js.map → run-2TKYHCN2.js.map} +0 -0
  805. /package/dist/{run-2ZRTKR7A.js.map → run-TYJLOJW7.js.map} +0 -0
  806. /package/dist/{scaffold-ad-DFKFUOOZ.js.map → scaffold-ad-RFRUPUKW.js.map} +0 -0
  807. /package/dist/{scaffold-static-ad-II3TUE5I.js.map → scaffold-static-ad-N5QCJFGP.js.map} +0 -0
  808. /package/dist/{scaffold-video-IKVYICIY.js.map → scaffold-video-VAG3WN5W.js.map} +0 -0
  809. /package/dist/{schedule-ERHKGQID.js.map → schedule-6UYJLE5K.js.map} +0 -0
  810. /package/dist/{scheduled-agents-ICXFV7NP.js.map → scheduled-agents-YEHJ4XIB.js.map} +0 -0
  811. /package/dist/{schema-NUUZ3MG7.js.map → schema-BCCCNVNO.js.map} +0 -0
  812. /package/dist/{search-B2APYHV6.js.map → search-J43ZG7W3.js.map} +0 -0
  813. /package/dist/{select-WVNPJDXP.js.map → select-I2UPGGZ5.js.map} +0 -0
  814. /package/dist/{set-prompt-KHBDWDXA.js.map → set-prompt-SU7YM7FW.js.map} +0 -0
  815. /package/dist/{setup-links-R3FH7WK4.js.map → setup-links-VWK4MBI3.js.map} +0 -0
  816. /package/dist/{shopify-34CFN6SG.js.map → shopify-6KNHPC4R.js.map} +0 -0
  817. /package/dist/{site-H6AMVMIX.js.map → site-PHTJ5VI3.js.map} +0 -0
  818. /package/dist/{sources-2VJMHUH7.js.map → sources-255OGK6K.js.map} +0 -0
  819. /package/dist/{stale-6BEHWQZ7.js.map → stale-KN2ZOJ5T.js.map} +0 -0
  820. /package/dist/{status-MCMOSDVX.js.map → status-BJH7ODU4.js.map} +0 -0
  821. /package/dist/{studio-4QOFG7MQ.js.map → studio-C2UVCTDD.js.map} +0 -0
  822. /package/dist/{sync-WJCJHNET.js.map → sync-MIKA6IM6.js.map} +0 -0
  823. /package/dist/{sync-definition-THVMBGJR.js.map → sync-definition-LO425HBD.js.map} +0 -0
  824. /package/dist/{tags-AGFUJ2BB.js.map → tags-DKSJ4E7E.js.map} +0 -0
  825. /package/dist/{tags-OPMPPJY2.js.map → tags-JEGCEFMZ.js.map} +0 -0
  826. /package/dist/{tags-VOCMMZ75.js.map → tags-MNHBZ7FH.js.map} +0 -0
  827. /package/dist/{tags-WK6P5A4D.js.map → tags-S5XY63D3.js.map} +0 -0
  828. /package/dist/{tags-VGJ76RJT.js.map → tags-VVO3BT66.js.map} +0 -0
  829. /package/dist/{targeting-criteria-KRIMZRVI.js.map → targeting-criteria-BIIGZTLQ.js.map} +0 -0
  830. /package/dist/{targets-MCOEM4XQ.js.map → targets-SX3NMYQ3.js.map} +0 -0
  831. /package/dist/{testimonials-A2AFXSZV.js.map → testimonials-U3KBI3VU.js.map} +0 -0
  832. /package/dist/{themes-JBX6W4SP.js.map → themes-32CUPT4M.js.map} +0 -0
  833. /package/dist/{top-companies-ESCRXLSK.js.map → top-companies-DFM4F2SE.js.map} +0 -0
  834. /package/dist/{transcript-N2ZWN4CI.js.map → transcript-4BSUSOQ4.js.map} +0 -0
  835. /package/dist/{translate-YGUYVOGA.js.map → translate-JE7CZJ26.js.map} +0 -0
  836. /package/dist/{triggers-G4EW5XG6.js.map → triggers-SRI27OAP.js.map} +0 -0
  837. /package/dist/{unlink-DRIVH2GT.js.map → unlink-U7HZ4CYW.js.map} +0 -0
  838. /package/dist/{unstage-WUQV6QBV.js.map → unstage-JJGZJVHT.js.map} +0 -0
  839. /package/dist/{update-5GIAKABM.js.map → update-JN75LN32.js.map} +0 -0
  840. /package/dist/{update-T7PSOZES.js.map → update-PU5LSQ7W.js.map} +0 -0
  841. /package/dist/{update-COXCKREW.js.map → update-PUWD5HX4.js.map} +0 -0
  842. /package/dist/{update-NA4M4J5D.js.map → update-R4EEEWT4.js.map} +0 -0
  843. /package/dist/{upload-IXVEJLZU.js.map → upload-4CUPZI3X.js.map} +0 -0
  844. /package/dist/{url-options-LHEGWNAH.js.map → url-options-P3UTLYUY.js.map} +0 -0
  845. /package/dist/{url-params-IL2M2WZI.js.map → url-params-V7KQMWK3.js.map} +0 -0
  846. /package/dist/{validate-QAJJ7QCJ.js.map → validate-6GRMJKZI.js.map} +0 -0
  847. /package/dist/{videos-I7PCC2EC.js.map → videos-6ZZ6LLTL.js.map} +0 -0
  848. /package/dist/{viewer-check-PUAWVYWP.js.map → viewer-check-B36TNSZI.js.map} +0 -0
  849. /package/dist/{web-O2MCPPB5.js.map → web-H5CWLHRA.js.map} +0 -0
  850. /package/dist/{winning-ads-FTMP4FUC.js.map → winning-ads-SHNXPIYB.js.map} +0 -0
  851. /package/dist/{write-commands-NKKNWQIM.js.map → write-commands-RI6UP4YG.js.map} +0 -0
  852. /package/dist/{x-FPRMRQLQ.js.map → x-CI2XPNBR.js.map} +0 -0
@@ -0,0 +1,843 @@
1
+ import {
2
+ AD_PLACEMENTS
3
+ } from "./chunk-F3CZFUXZ.js";
4
+ import {
5
+ hasOpenRouterKey,
6
+ openRouterKey
7
+ } from "./chunk-LBIF6FJY.js";
8
+
9
+ // src/engine/creative-rules/select.ts
10
+ import { createHash } from "crypto";
11
+ function platformFamily(name) {
12
+ const platform = AD_PLACEMENTS.find((p) => p.id === name)?.platform ?? name;
13
+ return platform.startsWith("google_") ? "google" : platform;
14
+ }
15
+ function runsOn(scoped, runs) {
16
+ return runs.some((run) => scoped.some((name) => name === run || platformFamily(name) === platformFamily(run)));
17
+ }
18
+ var RULES_CHARS = 12e3;
19
+ var STRENGTH_ORDER = { never: 0, must: 1, prefer: 2 };
20
+ function holdsFor(rule, target) {
21
+ const { kinds, products, platforms } = rule.scope;
22
+ if (kinds?.length && target.kind && !kinds.includes(target.kind)) return false;
23
+ if (products?.length && target.product && !products.includes(target.product)) return false;
24
+ const runs = target.platforms?.length ? target.platforms : target.platform ? [target.platform] : [];
25
+ if (platforms?.length && runs.length > 0 && !runsOn(platforms, runs)) return false;
26
+ return true;
27
+ }
28
+ function byStrength(a, b) {
29
+ return STRENGTH_ORDER[a.strength] - STRENGTH_ORDER[b.strength] || Number(a.origin === "declared") - Number(b.origin === "declared") || (b.source.date ?? "").localeCompare(a.source.date ?? "");
30
+ }
31
+ function selectRules(rules, target, waived = []) {
32
+ const held = rules.filter((r) => r.status === "active" && !waived.includes(r.id) && holdsFor(r, target)).sort(byStrength);
33
+ const picked = [];
34
+ let used = 0;
35
+ for (const rule of held) {
36
+ used += rule.text.length + (rule.source.quote?.length ?? 0);
37
+ if (used > RULES_CHARS && picked.length > 0) break;
38
+ picked.push(rule);
39
+ }
40
+ return picked;
41
+ }
42
+ function rulesDigest(rules) {
43
+ const canonical = [...rules].map((r) => [r.id, r.strength, r.applies, r.text, r.check ?? null]).sort((a, b) => String(a[0]).localeCompare(String(b[0])));
44
+ return createHash("sha256").update(JSON.stringify(canonical)).digest("hex").slice(0, 12);
45
+ }
46
+ var RULES_OPEN = "<company_rules>";
47
+ var RULES_CLOSE = "</company_rules>";
48
+ function rulesBlock(rules, intro) {
49
+ if (rules.length === 0) return "";
50
+ const lines = rules.map((r) => {
51
+ const quote = r.source.quote && r.source.quote !== r.text ? ` (their words: "${r.source.quote}")` : "";
52
+ return `- [${r.strength}] ${r.id}: ${r.text}${quote}`;
53
+ });
54
+ const lead = intro ?? "The company's standing rules for its ads: a never or a must is a requirement, a prefer is its taste.";
55
+ return [RULES_OPEN, lead, ...lines, RULES_CLOSE].join("\n");
56
+ }
57
+ function withoutRulesBlocks(text) {
58
+ if (!text.includes(RULES_OPEN)) return text;
59
+ return text.replace(new RegExp(`\\s*${RULES_OPEN}[\\s\\S]*?${RULES_CLOSE.replace("/", "\\/")}`, "g"), "");
60
+ }
61
+ function withoutRulesDeep(value) {
62
+ if (typeof value === "string") return withoutRulesBlocks(value);
63
+ if (Array.isArray(value)) return value.map(withoutRulesDeep);
64
+ if (value && typeof value === "object") {
65
+ return Object.fromEntries(Object.entries(value).map(([k, v]) => [k, withoutRulesDeep(v)]));
66
+ }
67
+ return value;
68
+ }
69
+ var BRIEF_RULES = 8;
70
+ function briefRules(rules) {
71
+ return rules.filter(
72
+ (r) => r.origin === "learned" ? r.applies === "picture" || r.applies === "cast" || r.applies === "logo" : r.applies === "cast" || r.applies === "logo"
73
+ ).slice(0, BRIEF_RULES);
74
+ }
75
+
76
+ // src/engine/nodes/local/lib/render-review.ts
77
+ import { execFile } from "child_process";
78
+ import { mkdtemp, readdir, readFile, rm } from "fs/promises";
79
+ import { tmpdir } from "os";
80
+ import path from "path";
81
+ import { promisify } from "util";
82
+ import { z } from "zod";
83
+
84
+ // src/engine/nodes/local/lib/rules-findings.ts
85
+ var SEEN_IN_A_STILL = /* @__PURE__ */ new Set(["copy", "picture", "cast", "logo", "any"]);
86
+ var reviewedRules = (rules) => rules.filter((r) => r.origin === "learned" && SEEN_IN_A_STILL.has(r.applies));
87
+ function buildRulesReviewPrompt(opts) {
88
+ const ids = reviewedRules(opts.rules).map((r) => r.id);
89
+ return [
90
+ `These are the finished sizes of ONE ad, in this order: ${opts.formats.join(", ")}.`,
91
+ `Check the ad against each of the company's rules above (${ids.join(", ")}). A rule is broken only when you can plainly see it broken on the ad as it is: its words as they print, what the picture shows, who appears, the logo. A rule about something this ad does not show is not broken. Never report anything that is not one of these rules.`,
92
+ 'For each rule broken, give its id exactly, the size you see it on, and in under twenty words what on the ad breaks it. Reply with only this JSON: {"broken":[{"rule":"<rule id>","format":"4:5","what":"..."}]}; {"broken":[]} when the ad keeps every rule.'
93
+ ].join("\n");
94
+ }
95
+ function rulesSystem(rules) {
96
+ return rulesBlock(
97
+ reviewedRules(rules),
98
+ "You check finished ads against the company's own standing rules for every ad. A never or a must is a requirement; a prefer is its taste. The rules, each with its id:"
99
+ );
100
+ }
101
+ var ELEMENT = {
102
+ copy: "copy",
103
+ logo: "logo",
104
+ picture: "picture",
105
+ cast: "picture",
106
+ any: "picture",
107
+ voice: "other",
108
+ sound: "other",
109
+ subtitles: "other"
110
+ };
111
+ function classifyRuleFindings(json, rules) {
112
+ const broken = json?.broken;
113
+ if (!Array.isArray(broken)) return [];
114
+ return broken.flatMap((raw) => {
115
+ const entry = raw ?? {};
116
+ const rule = rules.find((r) => r.id === entry.rule);
117
+ const what = typeof entry.what === "string" ? entry.what.trim() : "";
118
+ if (!rule || !what) return [];
119
+ const format = typeof entry.format === "string" && entry.format.trim() ? `${entry.format.trim()}: ` : "";
120
+ const kind = {
121
+ item: "rule",
122
+ element: ELEMENT[rule.applies],
123
+ defect: "other",
124
+ edges: [],
125
+ rule: rule.id
126
+ };
127
+ return [
128
+ {
129
+ severity: rule.strength === "prefer" ? "warning" : "blocking",
130
+ what: `${format}breaks ${rule.id} (${rule.text}): ${what}`,
131
+ kind
132
+ }
133
+ ];
134
+ });
135
+ }
136
+ var HEARD = /* @__PURE__ */ new Set(["voice", "sound", "subtitles", "copy", "any"]);
137
+ var heardRules = (rules) => rules.filter((r) => r.origin === "learned" && HEARD.has(r.applies));
138
+
139
+ // src/engine/nodes/local/lib/render-review.ts
140
+ var RENDER_REVIEW_MODEL = "~google/gemini-pro-latest";
141
+ var RENDER_REVIEW_FRAMES = 12;
142
+ var RENDER_REVIEW_WIDTH = 1024;
143
+ var RENDER_WATCH_MODEL = "~google/gemini-flash-latest";
144
+ function usageFrom(model, body) {
145
+ const usage = body?.usage;
146
+ if (!usage) return null;
147
+ const positive = (value) => typeof value === "number" && Number.isFinite(value) && value > 0 ? value : null;
148
+ return {
149
+ model,
150
+ inputTokens: usage.prompt_tokens ?? 0,
151
+ outputTokens: usage.completion_tokens ?? 0,
152
+ costUsd: positive(usage.cost) ?? positive(usage.cost_details?.upstream_inference_cost) ?? 0
153
+ };
154
+ }
155
+ var WATCH_MAX_BYTES = 60 * 1024 * 1024;
156
+ var STATIC_REVIEW_ITEMS = [
157
+ "text",
158
+ "logo",
159
+ "layout",
160
+ "safe_zone",
161
+ "picture",
162
+ "subject",
163
+ "person",
164
+ "people",
165
+ "one_idea",
166
+ "thumbnail",
167
+ "concept",
168
+ "viewer",
169
+ "proof",
170
+ "sizes",
171
+ "native",
172
+ "rule",
173
+ "other"
174
+ ];
175
+ var FINDING_ELEMENTS = ["copy", "button", "logo", "scene_text", "picture", "other"];
176
+ var FINDING_DEFECTS = ["cut", "missing", "unreadable", "other"];
177
+ var FRAME_EDGES = ["top", "bottom", "left", "right"];
178
+ function sceneAt(windows, atS) {
179
+ return windows.find((w) => atS >= w.startS && atS < w.endS)?.file;
180
+ }
181
+ function reviewFrameTimes(durationS, frames) {
182
+ const n = Math.max(2, frames);
183
+ const last = Math.max(0, durationS - 0.15);
184
+ const step = last / (n - 1);
185
+ return Array.from({ length: n }, (_, i) => Math.round(i * step * 100) / 100);
186
+ }
187
+ function buildFrameGrabArgs(video, atS, out) {
188
+ return [
189
+ "-v",
190
+ "error",
191
+ "-ss",
192
+ String(atS),
193
+ "-i",
194
+ video,
195
+ "-frames:v",
196
+ "1",
197
+ "-vf",
198
+ `scale=${RENDER_REVIEW_WIDTH}:-2`,
199
+ out,
200
+ "-y"
201
+ ];
202
+ }
203
+ var FrameReview = z.object({
204
+ /** Something in shot that could not happen, or is being done wrong. */
205
+ impossible: z.array(z.string()).default([]),
206
+ /** Objects present in frame that belong to no part of the scene. */
207
+ strays: z.array(z.string()).default([])
208
+ });
209
+ var ReelReview = z.object({
210
+ /** Whether the people the script treats as one person stay one person. */
211
+ cast_is_consistent: z.boolean().default(true),
212
+ cast_note: z.string().default(""),
213
+ /** Whether the advertiser's mark is visible anywhere. */
214
+ brand_mark_visible: z.boolean().default(false),
215
+ /** Whether the last frames close the ad rather than trailing off. */
216
+ ends_on_a_close: z.boolean().default(false),
217
+ ending_note: z.string().default(""),
218
+ /** Whether the ad ever cuts away from the presenter to show anything. */
219
+ shows_more_than_a_face: z.boolean().default(true),
220
+ shows_note: z.string().default("")
221
+ });
222
+ function buildFrameReviewPrompt(opts) {
223
+ const subject = opts.subject ? ` The advertiser is ${opts.subject}.` : "";
224
+ return `This is ONE frame from a video advertisement.${subject}
225
+
226
+ Answer only about what is visible in THIS frame. Do not judge whether the ad is good, and do not comment on style, mood or lighting.
227
+
228
+ 1. IMPOSSIBLE OR WRONG. Is anything shown that could not physically happen, or that shows the job being done incorrectly? Judge the PROCEDURE, not only the physics: equipment resting where it would never rest, a component fitted to nothing, someone handling a part in a way that would damage it, an object at the wrong scale beside a person, a body with a limb missing or duplicated.
229
+ 2. STRAYS. Is any object present that belongs to no part of the scene \u2014 floating, unattached, or cut off from whatever should hold it?
230
+
231
+ Report only what you can actually see. An empty list is the right answer for a clean frame. Keep each item under twelve words.
232
+
233
+ Reply with only this JSON: {"impossible":[],"strays":[]}`;
234
+ }
235
+ function buildReelReviewPrompt(opts) {
236
+ const subject = opts.subject ? ` The advertiser is ${opts.subject}.` : "";
237
+ const script = opts.script ? `
238
+
239
+ The voiceover says, in order:
240
+ ${opts.script}` : "";
241
+ return `These frames are sampled in order from one video advertisement.${subject}` + script + `
242
+
243
+ Answer only about what is visible.
244
+
245
+ 1. CAST. Do the people stay the same people? If the script speaks about one customer and the frames show different faces in that role, say so and count them.
246
+ 2. BRAND. Is the advertiser's logo or wordmark visible in ANY frame? Answer yes only if you can actually see a mark \u2014 a colour is not a mark.
247
+ 3. ENDING. Do the final frames close the advertisement \u2014 a call to action, a mark, a card \u2014 or does the picture simply carry on and stop?
248
+ 4. WHAT IT SHOWS. Does the advertisement ever cut away from the person to show the thing it is selling, or its result? Answer false if every frame is the same person with only the framing changed, and nothing is ever shown.
249
+
250
+ Reply with only this JSON:
251
+ {"cast_is_consistent":true,"cast_note":"","brand_mark_visible":false,"ends_on_a_close":false,"ending_note":"","shows_more_than_a_face":true,"shows_note":""}`;
252
+ }
253
+ function parseReviewJson(raw) {
254
+ const fenced = raw.match(/```(?:json)?\s*([\s\S]*?)```/);
255
+ const body = (fenced?.[1] ?? raw).trim();
256
+ const start = body.indexOf("{");
257
+ const end = body.lastIndexOf("}");
258
+ if (start === -1 || end === -1 || end < start) return null;
259
+ const json = body.slice(start, end + 1);
260
+ for (const candidate of [json, json.replace(UNCLOSED_NUMBERS, "[$1]}")]) {
261
+ try {
262
+ return JSON.parse(candidate);
263
+ } catch {
264
+ }
265
+ }
266
+ return boxListOf(json.replace(UNCLOSED_NUMBERS, "[$1]}"));
267
+ }
268
+ var UNCLOSED_NUMBERS = /\[(\s*-?\d+(?:\.\d+)?(?:\s*,\s*-?\d+(?:\.\d+)?)*)\s*\}/g;
269
+ var BOX_LIST = /^\{\s*"items"\s*:\s*\[/;
270
+ function closingQuote(text, open) {
271
+ for (let i = open + 1; i < text.length; i++) {
272
+ if (text[i] === "\\") i++;
273
+ else if (text[i] === '"') return i;
274
+ }
275
+ return text.length;
276
+ }
277
+ function objectsIn(text) {
278
+ const out = [];
279
+ let end = 0;
280
+ let depth = 0;
281
+ let from = 0;
282
+ for (let i = 0; i < text.length; i++) {
283
+ const ch = text[i];
284
+ if (ch === '"') i = closingQuote(text, i);
285
+ else if (ch === "{") {
286
+ if (depth === 0) from = i;
287
+ depth++;
288
+ } else if (ch === "}" && depth > 0) {
289
+ depth--;
290
+ if (depth === 0) {
291
+ out.push(text.slice(from, i + 1));
292
+ end = i + 1;
293
+ }
294
+ }
295
+ }
296
+ return { objects: out, end, open: depth > 0 };
297
+ }
298
+ function boxListOf(json) {
299
+ const list = json.match(BOX_LIST);
300
+ if (!list) return null;
301
+ const seen = /* @__PURE__ */ new Set();
302
+ const items = [];
303
+ const body = json.slice(list[0].length);
304
+ const scan = objectsIn(body);
305
+ if (scan.open || !body.slice(scan.end).includes("]")) return null;
306
+ for (const object of scan.objects) {
307
+ let item;
308
+ try {
309
+ item = JSON.parse(object);
310
+ } catch {
311
+ return null;
312
+ }
313
+ const key = JSON.stringify(item);
314
+ if (seen.has(key)) continue;
315
+ seen.add(key);
316
+ items.push(item);
317
+ }
318
+ return items.length > 0 ? { items } : null;
319
+ }
320
+ var normalise = (s) => s.toLowerCase().replace(/[^a-z0-9 ]/g, " ").replace(/\s+/g, " ").trim();
321
+ var ANATOMY = /\b(finger|fingers|hand|hands|thumb|limb|leg|legs|arm|arms|foot|feet|anatomy)\b/i;
322
+ function collapseRepeats(frames) {
323
+ const seen = /* @__PURE__ */ new Map();
324
+ for (const frame of frames) {
325
+ const parsed = FrameReview.safeParse(frame.json);
326
+ if (!parsed.success) continue;
327
+ for (const item of [...parsed.data.impossible, ...parsed.data.strays]) {
328
+ const text = item.trim();
329
+ const key = normalise(text);
330
+ if (!key) continue;
331
+ const hit = seen.get(key);
332
+ if (hit) hit.at.push(frame.at);
333
+ else seen.set(key, { what: text, at: [frame.at] });
334
+ }
335
+ }
336
+ return [...seen.values()];
337
+ }
338
+ function classifyFrameFindings(frames, windows = []) {
339
+ const seen = collapseRepeats(frames);
340
+ const anatomy = seen.filter((f) => ANATOMY.test(f.what));
341
+ const rest = seen.filter((f) => !ANATOMY.test(f.what));
342
+ const findings = rest.map((f) => {
343
+ const scene = sceneAt(windows, f.at[0]);
344
+ return {
345
+ severity: "blocking",
346
+ what: `At ${f.at.map((s) => `${s}s`).join(", ")}${scene ? ` (${scene})` : ""}: ${f.what}`,
347
+ ...scene ? { scene } : {}
348
+ };
349
+ });
350
+ if (anatomy.length > 0) {
351
+ const at = [...new Set(anatomy.flatMap((f) => f.at))].sort((a, b) => a - b);
352
+ findings.push({
353
+ severity: "blocking",
354
+ what: `Malformed hands or limbs in ${at.length} of ${frames.length} sampled frames (${at.map((s) => `${s}s${sceneAt(windows, s) ? ` \u2192 ${sceneAt(windows, s)}` : ""}`).join(", ")}): ${anatomy.map((f) => f.what).join(" ")} Re-render those beats \u2014 keep hands out of frame, or away from the object being held.`
355
+ });
356
+ }
357
+ return findings;
358
+ }
359
+ function buildWatchReviewPrompt(opts) {
360
+ const market = opts.market?.trim();
361
+ const heard = heardRules(opts.rules ?? []);
362
+ const rules = heard.length > 0 ? `${rulesBlock(heard, "5. RULES. The company holds every ad to its own rules, each with its id:")}
363
+ For each rule this video plainly breaks, in what is said, how it sounds, its subtitles or what is shown, give its id exactly, the timestamp and what breaks it. A rule about something this video does not do is not broken.
364
+ ` : "";
365
+ return `Watch and LISTEN to this advertisement, then answer about the things that only exist in motion and in sound.
366
+ 1. SPOKEN VARIETY. ${market ? `The ad is set in ${market}. ` : ""}Does the speaker's accent belong there? Quote the words you heard that show it \u2014 a phonetic marker beats an impression.
367
+ 2. VOICE AND MOUTH. Does the voice belong to the mouth on screen, in timing and in person?
368
+ 3. CUTS. Do the shot changes hold, or does something jump, repeat or stutter between them?
369
+ 4. DEFECTS. List anything else wrong, each with the exact timestamp where it happens \u2014 a moment maps to the shot that produced it, and a defect without one is a complaint rather than an instruction.
370
+ ` + rules + `Answer JSON only: {"spoken_variety_matches":true|false,"variety_note":"...","voice_matches_mouth":true|false,"mouth_note":"...","cuts_are_clean":true|false,"cuts_note":"...","defects":[{"at":"MM:SS.s","kind":"cut|lipsync|audio|visual","what":"..."}]${heard.length > 0 ? ',"rules_broken":[{"rule":"<rule id>","at":"MM:SS.s","what":"..."}]' : ""}}`;
371
+ }
372
+ var WatchReview = z.object({
373
+ spoken_variety_matches: z.boolean(),
374
+ variety_note: z.string().default(""),
375
+ voice_matches_mouth: z.boolean(),
376
+ mouth_note: z.string().default(""),
377
+ cuts_are_clean: z.boolean(),
378
+ cuts_note: z.string().default("")
379
+ });
380
+ var WatchDefects = z.object({
381
+ defects: z.array(
382
+ z.object({
383
+ at: z.string().default(""),
384
+ kind: z.string().default(""),
385
+ what: z.string().default("")
386
+ })
387
+ ).default([])
388
+ });
389
+ function classifyWatchRules(json, rules, windows) {
390
+ const broken = json?.rules_broken;
391
+ if (!Array.isArray(broken)) return [];
392
+ return broken.flatMap((raw) => {
393
+ const entry = raw ?? {};
394
+ const at = typeof entry.at === "string" ? entry.at.trim() : "";
395
+ const [finding] = classifyRuleFindings({ broken: [{ ...raw, format: at }] }, heardRules(rules));
396
+ if (!finding) return [];
397
+ const moment = parseMoment(at);
398
+ const scene = moment === null ? void 0 : sceneAt(windows, moment);
399
+ return [{ ...finding, ...scene ? { scene } : {} }];
400
+ });
401
+ }
402
+ function parseMoment(at) {
403
+ const trimmed = at.trim();
404
+ const clock = /^(\d+):(\d+(?:\.\d+)?)$/.exec(trimmed);
405
+ if (clock) return Number(clock[1]) * 60 + Number(clock[2]);
406
+ const plain = Number(trimmed.replace(/s$/i, ""));
407
+ return Number.isFinite(plain) ? plain : null;
408
+ }
409
+ function classifyWatchDefects(json, windows) {
410
+ const parsed = WatchDefects.safeParse(json);
411
+ if (!parsed.success) return [];
412
+ return parsed.data.defects.filter((d) => d.what.trim()).map((d) => {
413
+ const at = parseMoment(d.at);
414
+ const scene = at === null ? void 0 : sceneAt(windows, at);
415
+ const when = d.at.trim() ? ` at ${d.at.trim()}` : "";
416
+ return {
417
+ severity: "warning",
418
+ what: `${d.what.trim()}${when}${d.kind.trim() ? ` (${d.kind.trim()})` : ""}.`,
419
+ ...scene ? { scene } : {}
420
+ };
421
+ });
422
+ }
423
+ var FidelityReview = z.object({
424
+ delivers_the_ask: z.boolean(),
425
+ missing: z.array(z.string()).default([]),
426
+ contradicted: z.array(z.string()).default([])
427
+ });
428
+ function buildFidelityPrompt(brief) {
429
+ return `Someone asked for an advertisement in these words:
430
+
431
+ """${brief.trim()}"""
432
+
433
+ Watch and LISTEN to the video, then answer only this: does it deliver what they asked for? Judge the request as it was written \u2014 not what would make a good ad, and not what you would have made. Two lists: what they asked for that is NOT in the video, and what the video does that CONTRADICTS what they asked for. Quote their own words in each entry so the answer can be checked. Empty lists when it delivers.
434
+ Answer JSON only: {"delivers_the_ask":true|false,"missing":["..."],"contradicted":["..."]}`;
435
+ }
436
+ function classifyFidelityFindings(json) {
437
+ const parsed = FidelityReview.safeParse(json);
438
+ if (!parsed.success) return [];
439
+ const r = parsed.data;
440
+ if (r.delivers_the_ask) return [];
441
+ return [...r.missing, ...r.contradicted].map((entry) => entry.trim()).filter(Boolean).map((what) => ({ severity: "blocking", what: `Not what was asked for: ${what}.` }));
442
+ }
443
+ function classifyWatchFindings(json) {
444
+ const parsed = WatchReview.safeParse(json);
445
+ if (!parsed.success) return [];
446
+ const r = parsed.data;
447
+ const findings = [];
448
+ if (!r.spoken_variety_matches) {
449
+ findings.push({
450
+ severity: "blocking",
451
+ what: `The voice speaks the wrong variety of the language${r.variety_note.trim() ? `: ${r.variety_note.trim()}` : ""}. A pinned voice cannot fix this \u2014 the re-voicing is speech-to-speech and carries the accent across, so state the market on the ad and let the clip prompt name the accent.`
452
+ });
453
+ }
454
+ if (!r.voice_matches_mouth) {
455
+ findings.push({
456
+ severity: "blocking",
457
+ what: `The voice does not match the mouth${r.mouth_note.trim() ? `: ${r.mouth_note.trim()}` : ""}. A person visibly speaking under a track that is not theirs reads as bad dubbing.`
458
+ });
459
+ }
460
+ if (!r.cuts_are_clean) {
461
+ findings.push({
462
+ severity: "warning",
463
+ what: `The cuts do not hold${r.cuts_note.trim() ? `: ${r.cuts_note.trim()}` : ""}.`
464
+ });
465
+ }
466
+ return findings;
467
+ }
468
+ function classifyReelFindings(json) {
469
+ const parsed = ReelReview.safeParse(json);
470
+ if (!parsed.success) return [];
471
+ const r = parsed.data;
472
+ const findings = [];
473
+ if (!r.cast_is_consistent) {
474
+ findings.push({
475
+ severity: "blocking",
476
+ what: `The cast changes between shots${r.cast_note.trim() ? `: ${r.cast_note.trim()}` : ""}. One customer played by several faces reads as stock footage. Ground the frames on one identity (\`baker avatars\`) or write the beats so the subject is never the same person twice.`
477
+ });
478
+ }
479
+ if (!r.brand_mark_visible) {
480
+ findings.push({
481
+ severity: "warning",
482
+ what: "No brand mark is visible in any frame. THIS IS NOT A RE-RENDER: the mark is drawn by the caption composition as an ordinary `<img>`, never generated as a picture \u2014 so fix the mark itself (a bad path, or an SVG whose geometry clips its own wordmark) or the `.brand-mark` / `.endcard-logo` rules in `<composition>/index.html`, then re-run. Every clip comes back from the cache and only the composition pass renders again, so it costs seconds and no generation."
483
+ });
484
+ }
485
+ if (!r.shows_more_than_a_face) {
486
+ findings.push({
487
+ severity: "blocking",
488
+ what: `The ad never shows what it is selling${r.shows_note.trim() ? `: ${r.shows_note.trim()}` : ""} \u2014 every frame is the same person with only the framing changed. Give the middle beats their own picture (the bill, the roof, the install, the house) and set \`cast: false\` on them.`
489
+ });
490
+ }
491
+ if (!r.ends_on_a_close) {
492
+ findings.push({
493
+ severity: "warning",
494
+ what: `The video does not close${r.ending_note.trim() ? `: ${r.ending_note.trim()}` : ""} \u2014 it runs on and stops. Give the last beat a call to action, and keep its shot short enough that the picture ends with the read.`
495
+ });
496
+ }
497
+ return findings;
498
+ }
499
+ function videoPathFromOutput(output) {
500
+ const refs = Array.isArray(output) ? output : [output];
501
+ let found = null;
502
+ for (const ref of refs) {
503
+ const r = ref;
504
+ if (!r || typeof r !== "object") continue;
505
+ const isVideo = r.kind === "video" || typeof r.mime === "string" && r.mime.startsWith("video/");
506
+ if (isVideo && typeof r.path === "string" && r.path) found = r.path;
507
+ }
508
+ return found;
509
+ }
510
+ function parseVolume(volumedetect, key) {
511
+ const raw = new RegExp(`${key}:\\s*(-?(?:inf|[\\d.]+)) dB`).exec(volumedetect)?.[1];
512
+ if (raw === void 0) return Number.NaN;
513
+ if (raw === "-inf") return Number.NEGATIVE_INFINITY;
514
+ return Number.parseFloat(raw);
515
+ }
516
+ function classifyAudio(volumedetect, hasAudioStream) {
517
+ if (!hasAudioStream) {
518
+ return [
519
+ {
520
+ severity: "blocking",
521
+ what: "The finished video has no audio track at all \u2014 no voice, no music, nothing. An ad that plays silent in a feed is not an ad."
522
+ }
523
+ ];
524
+ }
525
+ const mean = parseVolume(volumedetect, "mean_volume");
526
+ const max = parseVolume(volumedetect, "max_volume");
527
+ const findings = [];
528
+ if (mean === Number.NEGATIVE_INFINITY || max === Number.NEGATIVE_INFINITY) {
529
+ return [
530
+ {
531
+ severity: "blocking",
532
+ what: "The finished video has an audio track, but it is completely silent \u2014 digital zero from start to end. An ad that plays silent in a feed is not an ad."
533
+ }
534
+ ];
535
+ }
536
+ if (Number.isFinite(mean) && mean < -30) {
537
+ findings.push({
538
+ severity: "warning",
539
+ what: `The mix is very quiet (${mean} dB average). On a phone at half volume this is close to silence \u2014 check the music bed is not ducked into nothing under the voice.`
540
+ });
541
+ }
542
+ if (Number.isFinite(max) && max > -0.5) {
543
+ findings.push({
544
+ severity: "warning",
545
+ what: `The mix peaks at ${max} dB, which is at or over the ceiling \u2014 the voice will distort on a phone speaker. Bring the loudest track down a few dB.`
546
+ });
547
+ }
548
+ return findings;
549
+ }
550
+ var RENDER_REVIEW_UNAVAILABLE = "The render was NOT reviewed \u2014 no model gateway key in this environment. Watch it yourself before sending it on.";
551
+ var RULE_FRAME_STEP = 3;
552
+ async function framesAgainstRules(grabbed, checkStills) {
553
+ if (!checkStills) return [];
554
+ const sampled = grabbed.filter((_, i) => i % RULE_FRAME_STEP === 0);
555
+ const found = await checkStills(
556
+ sampled.map((f) => f.image),
557
+ sampled.map((f) => `the frame at ${f.at.toFixed(1)}s`)
558
+ ).catch(() => null);
559
+ return found ?? [
560
+ {
561
+ severity: "warning",
562
+ what: "The frames were not checked against the company's rules (the model did not answer): read them against `rules` in the brief yourself."
563
+ }
564
+ ];
565
+ }
566
+ var REVIEW_CONCURRENCY = 3;
567
+ async function mapWithLimit(items, limit, fn) {
568
+ const out = new Array(items.length);
569
+ let next = 0;
570
+ await Promise.all(
571
+ Array.from({ length: Math.min(limit, items.length) }, async () => {
572
+ for (let i = next++; i < items.length; i = next++) {
573
+ out[i] = await fn(items[i]);
574
+ }
575
+ })
576
+ );
577
+ return out;
578
+ }
579
+ var execFileAsync = promisify(execFile);
580
+ async function measureAudio(video) {
581
+ const streams = await execFileAsync(
582
+ "ffprobe",
583
+ ["-v", "error", "-select_streams", "a", "-show_entries", "stream=codec_type", "-of", "csv=p=0", video],
584
+ { timeout: 2e4 }
585
+ ).catch(() => null);
586
+ if (!streams) return [];
587
+ const hasAudio = streams.stdout.trim().length > 0;
588
+ if (!hasAudio) return classifyAudio("", false);
589
+ const vol = await execFileAsync("ffmpeg", ["-i", video, "-map", "0:a:0", "-af", "volumedetect", "-f", "null", "-"], {
590
+ timeout: 12e4,
591
+ maxBuffer: 8 * 1024 * 1024
592
+ }).catch((e) => ({ stdout: "", stderr: e.stderr ?? "" }));
593
+ return classifyAudio(vol.stderr ?? "", true);
594
+ }
595
+ async function videoDuration(video) {
596
+ try {
597
+ const { stdout } = await execFileAsync(
598
+ "ffprobe",
599
+ ["-v", "error", "-show_entries", "format=duration", "-of", "default=nw=1:nk=1", video],
600
+ { timeout: 2e4 }
601
+ );
602
+ const seconds = Number.parseFloat(stdout.trim());
603
+ return Number.isFinite(seconds) && seconds > 0 ? seconds : null;
604
+ } catch {
605
+ return null;
606
+ }
607
+ }
608
+ async function askGateway(model, parts, timeoutMs, spent, reasoning, extra = {}, system) {
609
+ const key = openRouterKey();
610
+ if (!key) return null;
611
+ try {
612
+ const response = await fetch("https://openrouter.ai/api/v1/chat/completions", {
613
+ method: "POST",
614
+ headers: { "content-type": "application/json", authorization: `Bearer ${key}` },
615
+ body: JSON.stringify({
616
+ model,
617
+ messages: [...system ? [{ role: "system", content: system }] : [], { role: "user", content: parts }],
618
+ usage: { include: true },
619
+ ...reasoning ? { reasoning } : {},
620
+ ...extra
621
+ }),
622
+ signal: AbortSignal.timeout(timeoutMs)
623
+ });
624
+ if (!response.ok) return null;
625
+ const body = await response.json();
626
+ const usage = usageFrom(model, body);
627
+ if (usage) spent(usage);
628
+ const text = body.choices?.[0]?.message?.content;
629
+ return text ? parseReviewJson(text) : null;
630
+ } catch {
631
+ return null;
632
+ }
633
+ }
634
+ async function askVideo(video, prompt, spent) {
635
+ let bytes;
636
+ try {
637
+ bytes = await readFile(video);
638
+ } catch {
639
+ return null;
640
+ }
641
+ if (bytes.byteLength > WATCH_MAX_BYTES) return null;
642
+ return await askGateway(
643
+ RENDER_WATCH_MODEL,
644
+ [
645
+ { type: "text", text: prompt },
646
+ { type: "video_url", video_url: { url: `data:video/mp4;base64,${bytes.toString("base64")}` } }
647
+ ],
648
+ 6e5,
649
+ spent
650
+ );
651
+ }
652
+ async function ask(images, prompt, spent) {
653
+ return await askGateway(
654
+ RENDER_REVIEW_MODEL,
655
+ [
656
+ { type: "text", text: prompt },
657
+ ...images.map(
658
+ (b64) => ({ type: "image_url", image_url: { url: `data:image/jpeg;base64,${b64}` } })
659
+ )
660
+ ],
661
+ 18e4,
662
+ spent
663
+ );
664
+ }
665
+ async function askAboutStills(images, prompt, onSpend) {
666
+ if (!hasOpenRouterKey()) return null;
667
+ return await ask(images, prompt, (usage) => onSpend?.(usage));
668
+ }
669
+ async function askAboutImages(model, images, prompt, onSpend, timeoutMs = 6e4, reasoning, system, request = {}) {
670
+ if (!hasOpenRouterKey()) return null;
671
+ return await askGateway(
672
+ model,
673
+ [
674
+ { type: "text", text: prompt },
675
+ ...images.map(
676
+ (b64) => ({ type: "image_url", image_url: { url: `data:image/jpeg;base64,${b64}` } })
677
+ )
678
+ ],
679
+ timeoutMs,
680
+ (usage) => onSpend?.(usage),
681
+ reasoning,
682
+ request,
683
+ system
684
+ );
685
+ }
686
+ async function askAboutText(model, prompt, onSpend, opts = {}) {
687
+ if (!hasOpenRouterKey()) return null;
688
+ return await askGateway(
689
+ model,
690
+ [{ type: "text", text: prompt }],
691
+ opts.timeoutMs ?? 6e4,
692
+ (usage) => onSpend?.(usage),
693
+ void 0,
694
+ opts.request
695
+ );
696
+ }
697
+ async function reviewRenderedVideo(opts) {
698
+ if (!hasOpenRouterKey()) return null;
699
+ const duration = await videoDuration(opts.video);
700
+ if (duration === null) return null;
701
+ const spent = (usage) => opts.onSpend?.(usage);
702
+ const dir = await mkdtemp(path.join(tmpdir(), "baker-review-"));
703
+ try {
704
+ const grabbed = [];
705
+ for (const [i, at] of reviewFrameTimes(duration, RENDER_REVIEW_FRAMES).entries()) {
706
+ const out = path.join(dir, `f${String(i).padStart(2, "0")}.jpg`);
707
+ try {
708
+ await execFileAsync("ffmpeg", buildFrameGrabArgs(opts.video, at, out), { timeout: 3e4 });
709
+ grabbed.push({ at, image: await readFile(out, { encoding: "base64" }) });
710
+ } catch {
711
+ }
712
+ }
713
+ if (grabbed.length === 0) return null;
714
+ const reel = await ask(
715
+ grabbed.map((f) => f.image),
716
+ buildReelReviewPrompt({ subject: opts.subject, script: opts.script }),
717
+ spent
718
+ );
719
+ const framePrompt = buildFrameReviewPrompt({ subject: opts.subject });
720
+ const perFrame = await mapWithLimit(grabbed, REVIEW_CONCURRENCY, async (f) => ({
721
+ at: f.at,
722
+ json: await ask([f.image], framePrompt, spent)
723
+ }));
724
+ const unread = perFrame.filter((f) => f.json === null).length;
725
+ if (unread === perFrame.length && reel === null) return null;
726
+ const watch = await askVideo(
727
+ opts.video,
728
+ buildWatchReviewPrompt({
729
+ market: opts.market,
730
+ script: opts.script,
731
+ ...opts.rules ? { rules: opts.rules } : {}
732
+ }),
733
+ spent
734
+ );
735
+ const ruled = await framesAgainstRules(grabbed, opts.checkStills);
736
+ const fidelity = opts.brief?.trim() ? await askVideo(opts.video, buildFidelityPrompt(opts.brief), spent) : null;
737
+ const findings = [
738
+ ...classifyFrameFindings(perFrame, opts.windows ?? []),
739
+ ...classifyReelFindings(reel),
740
+ ...classifyWatchFindings(watch),
741
+ ...classifyWatchDefects(watch, opts.windows ?? []),
742
+ ...classifyWatchRules(watch, opts.rules ?? [], opts.windows ?? []),
743
+ ...ruled,
744
+ ...classifyFidelityFindings(fidelity),
745
+ // Measured, not judged: a model looking at frames cannot hear the mix.
746
+ ...await measureAudio(opts.video)
747
+ ];
748
+ findings.push(
749
+ ...unreviewedNotes({
750
+ watched: watch !== null,
751
+ fidelityAsked: Boolean(opts.brief?.trim()),
752
+ fidelityRead: fidelity !== null,
753
+ unread,
754
+ frames: perFrame.length
755
+ })
756
+ );
757
+ return findings;
758
+ } finally {
759
+ await rm(dir, { recursive: true, force: true });
760
+ }
761
+ }
762
+ async function reviewContextBeside(canvasPath) {
763
+ const raw = await readFile(path.join(path.dirname(canvasPath), "prompt.json"), "utf-8").catch(() => null);
764
+ if (!raw) return {};
765
+ try {
766
+ const blueprint = JSON.parse(raw);
767
+ const global = blueprint.global ?? {};
768
+ const text = (value) => typeof value === "string" && value.trim() ? value.trim() : void 0;
769
+ return {
770
+ ...text(global.market) ? { market: text(global.market) } : {},
771
+ ...text(global.branding?.name) ? { subject: text(global.branding?.name) } : {},
772
+ ...text(global.transcript) ? { script: text(global.transcript) } : {}
773
+ };
774
+ } catch {
775
+ return {};
776
+ }
777
+ }
778
+ async function sceneWindowsBeside(canvasPath) {
779
+ const dir = path.join(path.dirname(canvasPath), "scenes");
780
+ const files = await readdir(dir).catch(() => null);
781
+ if (!files) return [];
782
+ const windows = [];
783
+ for (const name of files.filter((f) => f.endsWith(".json")).sort()) {
784
+ const raw = await readFile(path.join(dir, name), "utf-8").catch(() => null);
785
+ if (!raw) continue;
786
+ try {
787
+ const scene = JSON.parse(raw);
788
+ if (typeof scene.start_s === "number" && typeof scene.end_s === "number") {
789
+ windows.push({ file: `scenes/${name}`, startS: scene.start_s, endS: scene.end_s });
790
+ }
791
+ } catch {
792
+ }
793
+ }
794
+ return windows;
795
+ }
796
+ function unreviewedNotes(state) {
797
+ const notes = [];
798
+ if (!state.watched) {
799
+ notes.push({
800
+ severity: "warning",
801
+ what: "Nobody watched the finished video end to end \u2014 the accent, the voice against the mouth and the cuts are unchecked. The frame-by-frame review still ran."
802
+ });
803
+ }
804
+ if (state.fidelityAsked && !state.fidelityRead) {
805
+ notes.push({
806
+ severity: "warning",
807
+ what: "The video was not checked against what you asked for \u2014 only against whether it is well made. A well-made ad of the wrong brief passes every other check here."
808
+ });
809
+ }
810
+ if (state.unread > 0) {
811
+ notes.push({
812
+ severity: "warning",
813
+ what: `${state.unread} of ${state.frames} frames could not be reviewed \u2014 that part of the video is unchecked.`
814
+ });
815
+ }
816
+ return notes;
817
+ }
818
+
819
+ export {
820
+ selectRules,
821
+ rulesDigest,
822
+ rulesBlock,
823
+ withoutRulesDeep,
824
+ briefRules,
825
+ reviewedRules,
826
+ buildRulesReviewPrompt,
827
+ rulesSystem,
828
+ classifyRuleFindings,
829
+ RENDER_REVIEW_MODEL,
830
+ STATIC_REVIEW_ITEMS,
831
+ FINDING_ELEMENTS,
832
+ FINDING_DEFECTS,
833
+ FRAME_EDGES,
834
+ videoPathFromOutput,
835
+ RENDER_REVIEW_UNAVAILABLE,
836
+ askAboutStills,
837
+ askAboutImages,
838
+ askAboutText,
839
+ reviewRenderedVideo,
840
+ reviewContextBeside,
841
+ sceneWindowsBeside
842
+ };
843
+ //# sourceMappingURL=chunk-KAUW3OFC.js.map