@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.
- package/README.md +1 -1
- package/dist/account-2RNYGT6E.js +82 -0
- package/dist/account-T26J6HSJ.js +82 -0
- package/dist/account-reads-P2WXB3NZ.js +219 -0
- package/dist/account-users-REWJY2TN.js +64 -0
- package/dist/account-writes-QEZQCU46.js +68 -0
- package/dist/accounts-MJ7AGPOW.js +701 -0
- package/dist/accounts-PGSNRUNV.js +80 -0
- package/dist/actions-NGBCTPNG.js +55 -0
- package/dist/activecampaign-ASE4IVTD.js +938 -0
- package/dist/ad-group-writes-MVQKICSC.js +172 -0
- package/dist/ad-groups-5OGD7PJ7.js +70 -0
- package/dist/ad-writes-OVD6EESQ.js +176 -0
- package/dist/add-QBEF2C7Z.js +107 -0
- package/dist/add-YJP43JWJ.js +305 -0
- package/dist/ads-GF7QLKBX.js +48 -0
- package/dist/ads-SCWCG2YI.js +79 -0
- package/dist/advertisers-SUZT4NRJ.js +123 -0
- package/dist/analytics-NJBF3U54.js +2437 -0
- package/dist/analytics-PI6SXDW4.js +447 -0
- package/dist/animate-HV2QJWVE.js +480 -0
- package/dist/assign-6YG56OCM.js +80 -0
- package/dist/audience-size-5X3BHQ6Q.js +76 -0
- package/dist/audiences-6N5B7CA2.js +280 -0
- package/dist/audit-PLXF2NAS.js +154 -0
- package/dist/autocomplete-YJSDRTMT.js +114 -0
- package/dist/avatars-BDQWTQKY.js +38 -0
- package/dist/bid-pricing-BUNOVWUB.js +103 -0
- package/dist/brand-MHFSUXWN.js +22 -0
- package/dist/brief-A5AEZBZL.js +543 -0
- package/dist/campaign-groups-UYNINWXX.js +99 -0
- package/dist/campaign-writes-RCA52SAP.js +168 -0
- package/dist/campaign-writes-TFRV62VN.js +176 -0
- package/dist/campaigns-CIQIZ46G.js +113 -0
- package/dist/campaigns-EETR5UJR.js +111 -0
- package/dist/campaigns-KPUA4GP2.js +78 -0
- package/dist/canvas-M3RXWJ2T.js +46 -0
- package/dist/capabilities-XFLST37G.js +147 -0
- package/dist/catalog-JVBRY2U6.js +66 -0
- package/dist/catalogs-QYAAPTMV.js +130 -0
- package/dist/changes-Y4NAQ2IV.js +135 -0
- package/dist/chatgpt-KJAUJBRK.js +47 -0
- package/dist/chats-5BNHZWO7.js +384 -0
- package/dist/check-ESD3QPIZ.js +107 -0
- package/dist/chunk-2EVHGBQY.js +319 -0
- package/dist/chunk-2JFCDUZO.js +156 -0
- package/dist/chunk-2MAQKELK.js +494 -0
- package/dist/chunk-2OCUXPWT.js +1919 -0
- package/dist/chunk-3ANPDWU7.js +438 -0
- package/dist/chunk-3C3IR2F6.js +2209 -0
- package/dist/chunk-3GMJEM4C.js +377 -0
- package/dist/chunk-4YWSFFOP.js +831 -0
- package/dist/chunk-5JG77PP3.js +57 -0
- package/dist/chunk-5TWI6FFY.js +344 -0
- package/dist/chunk-65HTWFKN.js +224 -0
- package/dist/chunk-6OIKNJ7G.js +26 -0
- package/dist/chunk-6RUHIXVA.js +455 -0
- package/dist/chunk-6X4XAANZ.js +191 -0
- package/dist/chunk-6Z32HS4D.js +91 -0
- package/dist/chunk-7MK4TND6.js +163 -0
- package/dist/chunk-AUO4QNMI.js +148 -0
- package/dist/chunk-B6WOWVAA.js +285 -0
- package/dist/chunk-BF32BRMX.js +98 -0
- package/dist/chunk-BIFK5OGB.js +249 -0
- package/dist/chunk-BNO3EFGR.js +4266 -0
- package/dist/chunk-BNO3EFGR.js.map +1 -0
- package/dist/chunk-BUXPBPAP.js +142 -0
- package/dist/chunk-CDRS2QAP.js +392 -0
- package/dist/chunk-CFVVZKSU.js +387 -0
- package/dist/chunk-D3KWV63D.js +19 -0
- package/dist/chunk-D5LV3ECR.js +23 -0
- package/dist/chunk-DBLOEIJ2.js +5368 -0
- package/dist/chunk-DQIPDAPH.js +274 -0
- package/dist/chunk-EFBJ35ZS.js +930 -0
- package/dist/chunk-EMXBMLQ4.js +91 -0
- package/dist/chunk-EZVRXFCC.js +169 -0
- package/dist/chunk-F3CZFUXZ.js +3187 -0
- package/dist/chunk-F3CZFUXZ.js.map +1 -0
- package/dist/chunk-GCFC2MNR.js +228 -0
- package/dist/chunk-GQ4D3BT6.js +207 -0
- package/dist/chunk-HMFIOE4P.js +63 -0
- package/dist/chunk-HXLCETLB.js +3510 -0
- package/dist/chunk-JZ6XRIXG.js +846 -0
- package/dist/chunk-KAUW3OFC.js +843 -0
- package/dist/chunk-KFHW5TCM.js +167 -0
- package/dist/chunk-MHRFRSQ6.js +676 -0
- package/dist/chunk-MQZXGTGI.js +479 -0
- package/dist/chunk-NNNMTRGI.js +547 -0
- package/dist/chunk-NQF5U6FX.js +150 -0
- package/dist/chunk-OROWRGRJ.js +170 -0
- package/dist/chunk-OWJGBIQ2.js +1646 -0
- package/dist/chunk-PAU4VS7H.js +103 -0
- package/dist/chunk-PTGC7CVG.js +429 -0
- package/dist/chunk-RAO7FTMY.js +64 -0
- package/dist/chunk-RM5T4MA6.js +783 -0
- package/dist/chunk-RP2PU3CA.js +275 -0
- package/dist/chunk-RSKU45CU.js +89 -0
- package/dist/chunk-SA6XZ3FP.js +1902 -0
- package/dist/chunk-SIKCVWM3.js +76 -0
- package/dist/chunk-SPQHISWX.js +8954 -0
- package/dist/chunk-SQVT243W.js +51 -0
- package/dist/chunk-T267DS5U.js +297 -0
- package/dist/chunk-UQKDP46G.js +197 -0
- package/dist/chunk-UVVOG5A7.js +61 -0
- package/dist/chunk-UZGZS35I.js +592 -0
- package/dist/chunk-W7BORINM.js +66 -0
- package/dist/chunk-WM6JHUPY.js +5471 -0
- package/dist/chunk-XBMZNFN7.js +203 -0
- package/dist/chunk-XHW24Q5Q.js +910 -0
- package/dist/chunk-XMHTLWWE.js +225 -0
- package/dist/chunk-XPXHJ6EP.js +24026 -0
- package/dist/chunk-XPXHJ6EP.js.map +1 -0
- package/dist/chunk-XXS6SUVM.js +7712 -0
- package/dist/chunk-Y3ESEQRI.js +46 -0
- package/dist/chunk-YAX5CGUY.js +638 -0
- package/dist/chunk-ZCN2XUPQ.js +604 -0
- package/dist/chunk-ZJOXRK2G.js +1518 -0
- package/dist/chunk-ZPHHJPDG.js +131 -0
- package/dist/claim-NM5T33W6.js +200 -0
- package/dist/cli.js +31 -31
- package/dist/companies-VBNBS6LR.js +198 -0
- package/dist/company-3KOV3TJT.js +308 -0
- package/dist/complete-TVY4F5YX.js +84 -0
- package/dist/connect-W6H3DT2C.js +45 -0
- package/dist/conversation-LCGWNPUG.js +96 -0
- package/dist/conversion-report-GK2FUT2R.js +127 -0
- package/dist/conversion-upload-command-Q7LZFFZL.js +439 -0
- package/dist/conversion-writes-STESFLTB.js +122 -0
- package/dist/conversions-D2RPIL3I.js +140 -0
- package/dist/conversions-JBRU7CGB.js +78 -0
- package/dist/create-DHIXUD4Q.js +135 -0
- package/dist/create-OW2BLTBE.js +239 -0
- package/dist/create-TYG5SAQE.js +210 -0
- package/dist/create-XGDJKMDB.js +62 -0
- package/dist/creatives-3ZPFUAKL.js +58 -0
- package/dist/creatives-PN6EQYVU.js +223 -0
- package/dist/credentials-AVRHDGM5.js +290 -0
- package/dist/critique-76EMERXI.js +1451 -0
- package/dist/critique-SZSKQYUL.js +232 -0
- package/dist/crm-4O65STFF.js +227 -0
- package/dist/crm-JMIIB55O.js +323 -0
- package/dist/currency-HQW6FJS5.js +88 -0
- package/dist/customers-GV3AD6B6.js +59 -0
- package/dist/delete-CJGW5MKC.js +69 -0
- package/dist/delete-ISAOQTI5.js +57 -0
- package/dist/delete-WFF5EVIL.js +67 -0
- package/dist/demographics-XSMD6KI4.js +141 -0
- package/dist/discard-B5QMX35Q.js +69 -0
- package/dist/discover-DLGO3VW6.js +172 -0
- package/dist/domain-WA4HAHCE.js +101 -0
- package/dist/download-67IB5DPC.js +172 -0
- package/dist/draft-4MKYX4VU.js +396 -0
- package/dist/draft-I7HIRQ6F.js +283 -0
- package/dist/draft-NXGJ3DD4.js +220 -0
- package/dist/draft-P73N5PT4.js +310 -0
- package/dist/draft-QAPMXYBR.js +335 -0
- package/dist/engine/index.js +8 -8
- package/dist/experiments-YEI3HSBU.js +236 -0
- package/dist/facets-EQLEOMDT.js +117 -0
- package/dist/feedback-JNSHN7DE.js +115 -0
- package/dist/feedback-record-JV43NSJI.js +269 -0
- package/dist/fetch-O4EYJVMN.js +179 -0
- package/dist/fit-7N7AHYQF.js +65 -0
- package/dist/flows-DTZGIGZS.js +250 -0
- package/dist/fonts-TYDQXRIU.js +39 -0
- package/dist/forecast-AODSMD7S.js +169 -0
- package/dist/forecast-VO7XY46L.js +121 -0
- package/dist/funnel-CV4DZXUS.js +397 -0
- package/dist/generate-HSDSCKDW.js +263 -0
- package/dist/get-4S4XRZ2J.js +82 -0
- package/dist/get-FDZZEB5R.js +59 -0
- package/dist/google-DPBZJ3TV.js +3267 -0
- package/dist/google-ads-EPFX2NA4.js +198 -0
- package/dist/history-7UJW5TRO.js +102 -0
- package/dist/history-JCLXT3AO.js +136 -0
- package/dist/history-SHQVK5I7.js +69 -0
- package/dist/hubspot-J6372OWH.js +782 -0
- package/dist/ideas-TKMMQ557.js +45 -0
- package/dist/images-J7LJETPR.js +92 -0
- package/dist/ingest-LVAH5OF5.js +123 -0
- package/dist/ingest-UBP7TEXU.js +27 -0
- package/dist/insights-UMPXHRKD.js +132 -0
- package/dist/inspect-22G3OPFK.js +192 -0
- package/dist/intent-NBP5IDND.js +95 -0
- package/dist/keyword-gap-67UJ2LDD.js +130 -0
- package/dist/keyword-metrics-QP5ZNOC6.js +200 -0
- package/dist/keywords-for-site-QTE332T7.js +131 -0
- package/dist/landing-TOYYCWFX.js +28 -0
- package/dist/languages-TM7SHGRO.js +40 -0
- package/dist/leads-FTWBDLBQ.js +115 -0
- package/dist/learn-3N7M3UHA.js +207 -0
- package/dist/line-item-writes-VFPXT4W6.js +211 -0
- package/dist/line-items-HB2N7RKO.js +107 -0
- package/dist/link-KAY6VYFH.js +67 -0
- package/dist/linkedin-CDSEMSCF.js +1328 -0
- package/dist/linkedin-person-HR6HKFUU.js +139 -0
- package/dist/list-INU27RQJ.js +306 -0
- package/dist/list-QWCU77C3.js +67 -0
- package/dist/list-VJ3CVEDW.js +154 -0
- package/dist/locations-HAXZUHJP.js +40 -0
- package/dist/locations-JFBM4XBL.js +69 -0
- package/dist/log-AUN4NOPP.js +95 -0
- package/dist/make-B5HDRFCX.js +1367 -0
- package/dist/map-CCBSITK7.js +436 -0
- package/dist/mcp-45YWYNYM.js +729 -0
- package/dist/media-sources-N7MBY3GE.js +35 -0
- package/dist/members-2P2QCBJO.js +47 -0
- package/dist/metrics-XWHE4LYQ.js +152 -0
- package/dist/models-3C6BWHEC.js +155 -0
- package/dist/normalize-MLRJ6IYU.js +144 -0
- package/dist/options-6QAJ67XB.js +125 -0
- package/dist/organization-P5LAMNMT.js +949 -0
- package/dist/performance-3PH7UYQN.js +27 -0
- package/dist/performance-6BMFU6IJ.js +5565 -0
- package/dist/pixels-PMPL63ON.js +62 -0
- package/dist/promoted-tweet-writes-EPXZFIUP.js +183 -0
- package/dist/promoted-tweets-Q46HUYN6.js +119 -0
- package/dist/publish-DHDRUTXM.js +344 -0
- package/dist/query-IR3LCFON.js +62 -0
- package/dist/reddit-2FQOS3B3.js +29 -0
- package/dist/refresh-VJPKAPJM.js +97 -0
- package/dist/release-O233BAQA.js +63 -0
- package/dist/relevant-pages-NPUSAV3K.js +99 -0
- package/dist/remove-HNSOYQVB.js +53 -0
- package/dist/reopen-B7KHVN5X.js +66 -0
- package/dist/rerun-KAB7AXTY.js +96 -0
- package/dist/research-I4ZQ4YQ3.js +72 -0
- package/dist/research-Z2SE775C.js +265 -0
- package/dist/reset-4T6XUNOO.js +57 -0
- package/dist/reset-YHEMD5N5.js +57 -0
- package/dist/resolve-5RJD2ELK.js +124 -0
- package/dist/retry-S3EC6FCA.js +65 -0
- package/dist/retry-WKYMY2KB.js +63 -0
- package/dist/revenue-C4E4PRLL.js +91 -0
- package/dist/rules-JGTKFXM3.js +99 -0
- package/dist/rules-add-3DTRLVGR.js +465 -0
- package/dist/run-2TKYHCN2.js +71 -0
- package/dist/run-TYJLOJW7.js +69 -0
- package/dist/scaffold-ad-RFRUPUKW.js +1513 -0
- package/dist/scaffold-static-ad-N5QCJFGP.js +1011 -0
- package/dist/scaffold-video-VAG3WN5W.js +885 -0
- package/dist/schedule-6UYJLE5K.js +64 -0
- package/dist/scheduled-agents-YEHJ4XIB.js +55 -0
- package/dist/schema-BCCCNVNO.js +135 -0
- package/dist/search-J43ZG7W3.js +177 -0
- package/dist/select-I2UPGGZ5.js +110 -0
- package/dist/sends-CEZAPEQN.js +349 -0
- package/dist/sends-CEZAPEQN.js.map +1 -0
- package/dist/set-prompt-SU7YM7FW.js +199 -0
- package/dist/setup-links-VWK4MBI3.js +144 -0
- package/dist/shopify-6KNHPC4R.js +3958 -0
- package/dist/site-PHTJ5VI3.js +180 -0
- package/dist/sources-255OGK6K.js +30 -0
- package/dist/sources-52N253A7.js +457 -0
- package/dist/sources-52N253A7.js.map +1 -0
- package/dist/stale-KN2ZOJ5T.js +90 -0
- package/dist/status-BJH7ODU4.js +65 -0
- package/dist/studio-C2UVCTDD.js +49 -0
- package/dist/sync-MIKA6IM6.js +57 -0
- package/dist/sync-definition-LO425HBD.js +70 -0
- package/dist/tags-DKSJ4E7E.js +227 -0
- package/dist/tags-JEGCEFMZ.js +23 -0
- package/dist/tags-MNHBZ7FH.js +23 -0
- package/dist/tags-S5XY63D3.js +23 -0
- package/dist/tags-VVO3BT66.js +26 -0
- package/dist/targeting-criteria-BIIGZTLQ.js +113 -0
- package/dist/targets-SX3NMYQ3.js +106 -0
- package/dist/testimonials-U3KBI3VU.js +32 -0
- package/dist/themes-32CUPT4M.js +95 -0
- package/dist/top-companies-DFM4F2SE.js +111 -0
- package/dist/transcript-4BSUSOQ4.js +165 -0
- package/dist/translate-JE7CZJ26.js +603 -0
- package/dist/triggers-SRI27OAP.js +144 -0
- package/dist/unlink-U7HZ4CYW.js +70 -0
- package/dist/unstage-JJGZJVHT.js +88 -0
- package/dist/update-JN75LN32.js +66 -0
- package/dist/update-PU5LSQ7W.js +192 -0
- package/dist/update-PUWD5HX4.js +101 -0
- package/dist/update-R4EEEWT4.js +155 -0
- package/dist/upload-4CUPZI3X.js +130 -0
- package/dist/url-options-P3UTLYUY.js +131 -0
- package/dist/url-params-V7KQMWK3.js +101 -0
- package/dist/validate-6GRMJKZI.js +125 -0
- package/dist/videos-6ZZ6LLTL.js +41 -0
- package/dist/viewer-check-B36TNSZI.js +83 -0
- package/dist/web-H5CWLHRA.js +143 -0
- package/dist/winning-ads-SHNXPIYB.js +86 -0
- package/dist/write-commands-RI6UP4YG.js +1525 -0
- package/dist/x-CI2XPNBR.js +47 -0
- package/package.json +1 -1
- package/dist/account-LO57QU6O.js +0 -82
- package/dist/account-V5XHQY2D.js +0 -82
- package/dist/account-reads-CPL3HLZ5.js +0 -219
- package/dist/account-users-RF3VN6VL.js +0 -64
- package/dist/account-writes-MFKCVMMV.js +0 -68
- package/dist/accounts-DTHZLL3R.js +0 -701
- package/dist/accounts-SJ5MKHKE.js +0 -80
- package/dist/actions-LRJRQXC3.js +0 -55
- package/dist/activecampaign-DMFUWRD6.js +0 -938
- package/dist/ad-group-writes-WFYPFO7R.js +0 -172
- package/dist/ad-groups-IPY3TJUX.js +0 -70
- package/dist/ad-writes-LDNNN72V.js +0 -176
- package/dist/add-HSF5S544.js +0 -107
- package/dist/add-IOIY44HY.js +0 -305
- package/dist/ads-CDA6DGGZ.js +0 -48
- package/dist/ads-NTDJRTEG.js +0 -79
- package/dist/advertisers-T4AGXFN4.js +0 -123
- package/dist/analytics-MDIE5CPL.js +0 -2437
- package/dist/analytics-TLEWXYXV.js +0 -447
- package/dist/animate-CQON6SZE.js +0 -480
- package/dist/assign-N5PNZWUW.js +0 -80
- package/dist/audience-size-GMANWKU5.js +0 -76
- package/dist/audiences-KRI7E7FY.js +0 -280
- package/dist/audit-EGLLMYFY.js +0 -154
- package/dist/autocomplete-6DUDQLRT.js +0 -114
- package/dist/avatars-UZN75NVZ.js +0 -38
- package/dist/bid-pricing-SQERHWYU.js +0 -103
- package/dist/brand-XY7EVNPW.js +0 -22
- package/dist/brief-NMACLLA2.js +0 -543
- package/dist/campaign-groups-VWSLBQKJ.js +0 -99
- package/dist/campaign-writes-DAL4EFIV.js +0 -176
- package/dist/campaign-writes-FBIQOLRS.js +0 -168
- package/dist/campaigns-64JH3U6Z.js +0 -113
- package/dist/campaigns-KYI6WAXT.js +0 -111
- package/dist/campaigns-TKQDXU5H.js +0 -78
- package/dist/canvas-DTJM2LTE.js +0 -46
- package/dist/capabilities-O5UVQ4KK.js +0 -147
- package/dist/catalog-6CXOEKBI.js +0 -66
- package/dist/catalogs-ETVY5OZ5.js +0 -130
- package/dist/changes-MHNRAC2E.js +0 -135
- package/dist/chatgpt-GINMQJBI.js +0 -47
- package/dist/chats-NUO3CA4N.js +0 -384
- package/dist/check-RRHOCY2U.js +0 -107
- package/dist/chunk-2AJ5UNOF.js +0 -131
- package/dist/chunk-2Y3VZILY.js +0 -98
- package/dist/chunk-3BOPIUO6.js +0 -163
- package/dist/chunk-3LH5ANM4.js +0 -7712
- package/dist/chunk-3RWSYI6N.js +0 -63
- package/dist/chunk-4PWC4KAK.js +0 -843
- package/dist/chunk-5MMAYAWR.js +0 -103
- package/dist/chunk-5VVXF3OS.js +0 -676
- package/dist/chunk-5Y3EEI52.js +0 -224
- package/dist/chunk-6EMVPPSQ.js +0 -89
- package/dist/chunk-77MDZIHK.js +0 -23
- package/dist/chunk-A5PQYKVO.js +0 -344
- package/dist/chunk-AA3WWPX2.js +0 -392
- package/dist/chunk-AL6373J7.js +0 -930
- package/dist/chunk-AMHVCMBW.js +0 -3510
- package/dist/chunk-BQYSBQZ3.js +0 -91
- package/dist/chunk-BYZQ43VI.js +0 -592
- package/dist/chunk-C54JXXV3.js +0 -24026
- package/dist/chunk-C54JXXV3.js.map +0 -1
- package/dist/chunk-C753PJBU.js +0 -91
- package/dist/chunk-CB7GZQVN.js +0 -249
- package/dist/chunk-CTBDVZ5E.js +0 -274
- package/dist/chunk-CV35AJYT.js +0 -57
- package/dist/chunk-EJBHZ7AQ.js +0 -387
- package/dist/chunk-EKQCHHZW.js +0 -319
- package/dist/chunk-FOD5VSHH.js +0 -51
- package/dist/chunk-FSLSISPI.js +0 -46
- package/dist/chunk-G523URK2.js +0 -438
- package/dist/chunk-G6KE737R.js +0 -377
- package/dist/chunk-GNZM7SWV.js +0 -156
- package/dist/chunk-GRXBD43G.js +0 -169
- package/dist/chunk-GT76FWES.js +0 -1919
- package/dist/chunk-GTIQUOYC.js +0 -148
- package/dist/chunk-GTV62WIS.js +0 -479
- package/dist/chunk-GY6N42PE.js +0 -142
- package/dist/chunk-H27R5IVQ.js +0 -64
- package/dist/chunk-HHQYP6RM.js +0 -783
- package/dist/chunk-HN7GK5UX.js +0 -910
- package/dist/chunk-I6W6FAUZ.js +0 -547
- package/dist/chunk-IJ5DWALA.js +0 -225
- package/dist/chunk-JAC6JVCI.js +0 -26
- package/dist/chunk-K5CEP7W4.js +0 -66
- package/dist/chunk-KJOEW2PI.js +0 -297
- package/dist/chunk-KVBNUGQ6.js +0 -197
- package/dist/chunk-MCJ5I5LR.js +0 -3187
- package/dist/chunk-MCJ5I5LR.js.map +0 -1
- package/dist/chunk-MLMQR24H.js +0 -1646
- package/dist/chunk-MZPS46OR.js +0 -76
- package/dist/chunk-N2MZLW6O.js +0 -170
- package/dist/chunk-NGXZQESA.js +0 -5471
- package/dist/chunk-NJIRVF2B.js +0 -8954
- package/dist/chunk-NNG4QCKJ.js +0 -207
- package/dist/chunk-NPF4KTRK.js +0 -191
- package/dist/chunk-NQ5O2NCJ.js +0 -5368
- package/dist/chunk-OU4TDC2P.js +0 -275
- package/dist/chunk-P7WISPGE.js +0 -61
- package/dist/chunk-R2VP7FK4.js +0 -831
- package/dist/chunk-RD63FPG6.js +0 -150
- package/dist/chunk-RFR7ZN3P.js +0 -604
- package/dist/chunk-RW32BYY3.js +0 -1518
- package/dist/chunk-SMDJW5W4.js +0 -19
- package/dist/chunk-THV7SMY6.js +0 -203
- package/dist/chunk-TI4UL56R.js +0 -4266
- package/dist/chunk-TI4UL56R.js.map +0 -1
- package/dist/chunk-TNQJDM2P.js +0 -1902
- package/dist/chunk-TQDZQT6U.js +0 -167
- package/dist/chunk-UC46M2KW.js +0 -494
- package/dist/chunk-UIPSSTMA.js +0 -228
- package/dist/chunk-VMUJ6JHR.js +0 -2209
- package/dist/chunk-VWKFQ4ZY.js +0 -285
- package/dist/chunk-WAE4G3Q6.js +0 -846
- package/dist/chunk-WTYKTPZP.js +0 -455
- package/dist/chunk-XFMFZAWL.js +0 -429
- package/dist/chunk-YFIWCMVC.js +0 -638
- package/dist/claim-ZKKC5472.js +0 -200
- package/dist/companies-CJFQ63MC.js +0 -198
- package/dist/company-7K4EDRIN.js +0 -308
- package/dist/complete-ODOQLGSO.js +0 -84
- package/dist/connect-APAK3WAY.js +0 -45
- package/dist/conversation-B6V3VCT5.js +0 -96
- package/dist/conversion-report-JNWBTLA5.js +0 -127
- package/dist/conversion-upload-command-6OKMSO2T.js +0 -439
- package/dist/conversion-writes-2VOWP4RD.js +0 -122
- package/dist/conversions-D32UTEPH.js +0 -140
- package/dist/conversions-JGIBYLK5.js +0 -78
- package/dist/create-ALMXIVHA.js +0 -239
- package/dist/create-EUQYK2SH.js +0 -135
- package/dist/create-TOCR7EFZ.js +0 -62
- package/dist/create-VAGPIZTU.js +0 -210
- package/dist/creatives-62PV7BIF.js +0 -223
- package/dist/creatives-HUDKBUDS.js +0 -58
- package/dist/credentials-WCD4F225.js +0 -290
- package/dist/critique-KJXHSKLT.js +0 -1451
- package/dist/critique-OO6SORTA.js +0 -232
- package/dist/crm-5CYCCV34.js +0 -323
- package/dist/crm-YVRIT2RL.js +0 -227
- package/dist/currency-SH4DDE3X.js +0 -88
- package/dist/customers-FSOXPMOU.js +0 -59
- package/dist/delete-EEU6WJ6M.js +0 -67
- package/dist/delete-H7IWZGUZ.js +0 -69
- package/dist/delete-QXZFJNUS.js +0 -57
- package/dist/demographics-RM5PA54R.js +0 -141
- package/dist/discard-6XOYXNZ6.js +0 -69
- package/dist/discover-VEHKBNCY.js +0 -172
- package/dist/domain-X7MT3XUG.js +0 -101
- package/dist/download-YQYR5GUP.js +0 -172
- package/dist/draft-DUAFRL2G.js +0 -283
- package/dist/draft-FXMGEY3E.js +0 -220
- package/dist/draft-V7VGPJK4.js +0 -396
- package/dist/draft-XWHU5C5Z.js +0 -335
- package/dist/draft-YXGASP7M.js +0 -310
- package/dist/experiments-2XOC77Y7.js +0 -236
- package/dist/facets-7Q36JF2D.js +0 -117
- package/dist/feedback-WPV2RKJS.js +0 -115
- package/dist/feedback-record-UEWS4FZJ.js +0 -269
- package/dist/fetch-AARAG6UL.js +0 -179
- package/dist/fit-T4ALNNXL.js +0 -65
- package/dist/flows-PYPA2FM3.js +0 -250
- package/dist/fonts-H2GG2JXA.js +0 -39
- package/dist/forecast-LMSPNY6X.js +0 -121
- package/dist/forecast-UYBYSH3Y.js +0 -169
- package/dist/funnel-KIYPFPIY.js +0 -397
- package/dist/generate-QG7GX6WO.js +0 -263
- package/dist/get-IN6UXQRX.js +0 -59
- package/dist/get-ROETYEYF.js +0 -82
- package/dist/google-ZT3J3G4Z.js +0 -3267
- package/dist/google-ads-CBJZKTXG.js +0 -198
- package/dist/history-GTT55ZP7.js +0 -102
- package/dist/history-UYG35MNJ.js +0 -136
- package/dist/history-XOB23MLX.js +0 -69
- package/dist/hubspot-B6Z77JY6.js +0 -782
- package/dist/ideas-RVK4RNKN.js +0 -45
- package/dist/images-RGJZ6FJL.js +0 -92
- package/dist/ingest-7FHCKRYR.js +0 -27
- package/dist/ingest-GBWY2ZEP.js +0 -123
- package/dist/insights-7CQJOBWX.js +0 -132
- package/dist/inspect-RC6GKLIF.js +0 -192
- package/dist/intent-P75BDP4H.js +0 -95
- package/dist/keyword-gap-54F6CZLM.js +0 -130
- package/dist/keyword-metrics-PL5IYZGN.js +0 -200
- package/dist/keywords-for-site-4FMJ5IGN.js +0 -131
- package/dist/landing-24TVKWTP.js +0 -28
- package/dist/languages-PEGOE365.js +0 -40
- package/dist/leads-6TFBPYMM.js +0 -115
- package/dist/learn-4LGNFGWH.js +0 -207
- package/dist/line-item-writes-AOTRDB4L.js +0 -211
- package/dist/line-items-ERV3F2EI.js +0 -107
- package/dist/link-QZXI5YJP.js +0 -67
- package/dist/linkedin-4BKZ5KUE.js +0 -1328
- package/dist/linkedin-person-ZLXMOG2U.js +0 -139
- package/dist/list-7FB6764Q.js +0 -67
- package/dist/list-QHAYR2IQ.js +0 -154
- package/dist/list-UCQEHPIR.js +0 -306
- package/dist/locations-MXWGZIGU.js +0 -69
- package/dist/locations-SHYN5J4Q.js +0 -40
- package/dist/log-WPZRUMZU.js +0 -95
- package/dist/make-VCAS2M2W.js +0 -1367
- package/dist/map-5EQO2VXB.js +0 -436
- package/dist/mcp-CKOYL4IU.js +0 -729
- package/dist/media-sources-EDZ2PBJY.js +0 -35
- package/dist/members-E2AGJIU6.js +0 -47
- package/dist/metrics-25LYUEB7.js +0 -152
- package/dist/models-EU3NO4IY.js +0 -155
- package/dist/normalize-PHJT5CAD.js +0 -144
- package/dist/options-KFABOCWK.js +0 -125
- package/dist/organization-BP5DTWL7.js +0 -949
- package/dist/performance-C4M3GJPC.js +0 -27
- package/dist/performance-H3SJD3SN.js +0 -5565
- package/dist/pixels-NLH2PN6Q.js +0 -62
- package/dist/promoted-tweet-writes-ATWAKV6N.js +0 -183
- package/dist/promoted-tweets-TWQP3MDP.js +0 -119
- package/dist/publish-Q4W7MI7P.js +0 -344
- package/dist/query-TP3L4W7Z.js +0 -62
- package/dist/reddit-JWZYSUAG.js +0 -29
- package/dist/refresh-VRBHP4AA.js +0 -97
- package/dist/release-OV4ZDCXG.js +0 -63
- package/dist/relevant-pages-VJHTUJMB.js +0 -99
- package/dist/remove-DBCSQSEP.js +0 -53
- package/dist/reopen-5ZOEKYQ5.js +0 -66
- package/dist/rerun-YMRW6BHM.js +0 -96
- package/dist/research-HUM6CF74.js +0 -265
- package/dist/research-M3QPWTYX.js +0 -72
- package/dist/reset-BPAFOW6M.js +0 -57
- package/dist/reset-WAY3BSZX.js +0 -57
- package/dist/resolve-AQ6UFEMN.js +0 -124
- package/dist/retry-3KYFTPXZ.js +0 -65
- package/dist/retry-XO54CIRK.js +0 -63
- package/dist/revenue-PPDMQO3H.js +0 -91
- package/dist/rules-4ENXG5XW.js +0 -99
- package/dist/rules-add-FTBOOE6L.js +0 -465
- package/dist/run-2ZRTKR7A.js +0 -69
- package/dist/run-UECCNQ63.js +0 -71
- package/dist/scaffold-ad-DFKFUOOZ.js +0 -1513
- package/dist/scaffold-static-ad-II3TUE5I.js +0 -1011
- package/dist/scaffold-video-IKVYICIY.js +0 -885
- package/dist/schedule-ERHKGQID.js +0 -64
- package/dist/scheduled-agents-ICXFV7NP.js +0 -55
- package/dist/schema-NUUZ3MG7.js +0 -135
- package/dist/search-B2APYHV6.js +0 -177
- package/dist/select-WVNPJDXP.js +0 -110
- package/dist/sends-H7WMLJ5H.js +0 -349
- package/dist/sends-H7WMLJ5H.js.map +0 -1
- package/dist/set-prompt-KHBDWDXA.js +0 -199
- package/dist/setup-links-R3FH7WK4.js +0 -144
- package/dist/shopify-34CFN6SG.js +0 -3958
- package/dist/site-H6AMVMIX.js +0 -180
- package/dist/sources-2VJMHUH7.js +0 -30
- package/dist/sources-S63224S7.js +0 -457
- package/dist/sources-S63224S7.js.map +0 -1
- package/dist/stale-6BEHWQZ7.js +0 -90
- package/dist/status-MCMOSDVX.js +0 -65
- package/dist/studio-4QOFG7MQ.js +0 -49
- package/dist/sync-WJCJHNET.js +0 -57
- package/dist/sync-definition-THVMBGJR.js +0 -70
- package/dist/tags-AGFUJ2BB.js +0 -227
- package/dist/tags-OPMPPJY2.js +0 -23
- package/dist/tags-VGJ76RJT.js +0 -26
- package/dist/tags-VOCMMZ75.js +0 -23
- package/dist/tags-WK6P5A4D.js +0 -23
- package/dist/targeting-criteria-KRIMZRVI.js +0 -113
- package/dist/targets-MCOEM4XQ.js +0 -106
- package/dist/testimonials-A2AFXSZV.js +0 -32
- package/dist/themes-JBX6W4SP.js +0 -95
- package/dist/top-companies-ESCRXLSK.js +0 -111
- package/dist/transcript-N2ZWN4CI.js +0 -165
- package/dist/translate-YGUYVOGA.js +0 -603
- package/dist/triggers-G4EW5XG6.js +0 -144
- package/dist/unlink-DRIVH2GT.js +0 -70
- package/dist/unstage-WUQV6QBV.js +0 -88
- package/dist/update-5GIAKABM.js +0 -66
- package/dist/update-COXCKREW.js +0 -101
- package/dist/update-NA4M4J5D.js +0 -155
- package/dist/update-T7PSOZES.js +0 -192
- package/dist/upload-IXVEJLZU.js +0 -130
- package/dist/url-options-LHEGWNAH.js +0 -131
- package/dist/url-params-IL2M2WZI.js +0 -101
- package/dist/validate-QAJJ7QCJ.js +0 -125
- package/dist/videos-I7PCC2EC.js +0 -41
- package/dist/viewer-check-PUAWVYWP.js +0 -83
- package/dist/web-O2MCPPB5.js +0 -143
- package/dist/winning-ads-FTMP4FUC.js +0 -86
- package/dist/write-commands-NKKNWQIM.js +0 -1525
- package/dist/x-FPRMRQLQ.js +0 -47
- /package/dist/{account-LO57QU6O.js.map → account-2RNYGT6E.js.map} +0 -0
- /package/dist/{account-V5XHQY2D.js.map → account-T26J6HSJ.js.map} +0 -0
- /package/dist/{account-reads-CPL3HLZ5.js.map → account-reads-P2WXB3NZ.js.map} +0 -0
- /package/dist/{account-users-RF3VN6VL.js.map → account-users-REWJY2TN.js.map} +0 -0
- /package/dist/{account-writes-MFKCVMMV.js.map → account-writes-QEZQCU46.js.map} +0 -0
- /package/dist/{accounts-DTHZLL3R.js.map → accounts-MJ7AGPOW.js.map} +0 -0
- /package/dist/{accounts-SJ5MKHKE.js.map → accounts-PGSNRUNV.js.map} +0 -0
- /package/dist/{actions-LRJRQXC3.js.map → actions-NGBCTPNG.js.map} +0 -0
- /package/dist/{activecampaign-DMFUWRD6.js.map → activecampaign-ASE4IVTD.js.map} +0 -0
- /package/dist/{ad-group-writes-WFYPFO7R.js.map → ad-group-writes-MVQKICSC.js.map} +0 -0
- /package/dist/{ad-groups-IPY3TJUX.js.map → ad-groups-5OGD7PJ7.js.map} +0 -0
- /package/dist/{ad-writes-LDNNN72V.js.map → ad-writes-OVD6EESQ.js.map} +0 -0
- /package/dist/{add-HSF5S544.js.map → add-QBEF2C7Z.js.map} +0 -0
- /package/dist/{add-IOIY44HY.js.map → add-YJP43JWJ.js.map} +0 -0
- /package/dist/{ads-CDA6DGGZ.js.map → ads-GF7QLKBX.js.map} +0 -0
- /package/dist/{ads-NTDJRTEG.js.map → ads-SCWCG2YI.js.map} +0 -0
- /package/dist/{advertisers-T4AGXFN4.js.map → advertisers-SUZT4NRJ.js.map} +0 -0
- /package/dist/{analytics-MDIE5CPL.js.map → analytics-NJBF3U54.js.map} +0 -0
- /package/dist/{analytics-TLEWXYXV.js.map → analytics-PI6SXDW4.js.map} +0 -0
- /package/dist/{animate-CQON6SZE.js.map → animate-HV2QJWVE.js.map} +0 -0
- /package/dist/{assign-N5PNZWUW.js.map → assign-6YG56OCM.js.map} +0 -0
- /package/dist/{audience-size-GMANWKU5.js.map → audience-size-5X3BHQ6Q.js.map} +0 -0
- /package/dist/{audiences-KRI7E7FY.js.map → audiences-6N5B7CA2.js.map} +0 -0
- /package/dist/{audit-EGLLMYFY.js.map → audit-PLXF2NAS.js.map} +0 -0
- /package/dist/{autocomplete-6DUDQLRT.js.map → autocomplete-YJSDRTMT.js.map} +0 -0
- /package/dist/{avatars-UZN75NVZ.js.map → avatars-BDQWTQKY.js.map} +0 -0
- /package/dist/{bid-pricing-SQERHWYU.js.map → bid-pricing-BUNOVWUB.js.map} +0 -0
- /package/dist/{brand-XY7EVNPW.js.map → brand-MHFSUXWN.js.map} +0 -0
- /package/dist/{brief-NMACLLA2.js.map → brief-A5AEZBZL.js.map} +0 -0
- /package/dist/{campaign-groups-VWSLBQKJ.js.map → campaign-groups-UYNINWXX.js.map} +0 -0
- /package/dist/{campaign-writes-FBIQOLRS.js.map → campaign-writes-RCA52SAP.js.map} +0 -0
- /package/dist/{campaign-writes-DAL4EFIV.js.map → campaign-writes-TFRV62VN.js.map} +0 -0
- /package/dist/{campaigns-64JH3U6Z.js.map → campaigns-CIQIZ46G.js.map} +0 -0
- /package/dist/{campaigns-KYI6WAXT.js.map → campaigns-EETR5UJR.js.map} +0 -0
- /package/dist/{campaigns-TKQDXU5H.js.map → campaigns-KPUA4GP2.js.map} +0 -0
- /package/dist/{canvas-DTJM2LTE.js.map → canvas-M3RXWJ2T.js.map} +0 -0
- /package/dist/{capabilities-O5UVQ4KK.js.map → capabilities-XFLST37G.js.map} +0 -0
- /package/dist/{catalog-6CXOEKBI.js.map → catalog-JVBRY2U6.js.map} +0 -0
- /package/dist/{catalogs-ETVY5OZ5.js.map → catalogs-QYAAPTMV.js.map} +0 -0
- /package/dist/{changes-MHNRAC2E.js.map → changes-Y4NAQ2IV.js.map} +0 -0
- /package/dist/{chatgpt-GINMQJBI.js.map → chatgpt-KJAUJBRK.js.map} +0 -0
- /package/dist/{chats-NUO3CA4N.js.map → chats-5BNHZWO7.js.map} +0 -0
- /package/dist/{check-RRHOCY2U.js.map → check-ESD3QPIZ.js.map} +0 -0
- /package/dist/{chunk-EKQCHHZW.js.map → chunk-2EVHGBQY.js.map} +0 -0
- /package/dist/{chunk-GNZM7SWV.js.map → chunk-2JFCDUZO.js.map} +0 -0
- /package/dist/{chunk-UC46M2KW.js.map → chunk-2MAQKELK.js.map} +0 -0
- /package/dist/{chunk-GT76FWES.js.map → chunk-2OCUXPWT.js.map} +0 -0
- /package/dist/{chunk-G523URK2.js.map → chunk-3ANPDWU7.js.map} +0 -0
- /package/dist/{chunk-VMUJ6JHR.js.map → chunk-3C3IR2F6.js.map} +0 -0
- /package/dist/{chunk-G6KE737R.js.map → chunk-3GMJEM4C.js.map} +0 -0
- /package/dist/{chunk-R2VP7FK4.js.map → chunk-4YWSFFOP.js.map} +0 -0
- /package/dist/{chunk-CV35AJYT.js.map → chunk-5JG77PP3.js.map} +0 -0
- /package/dist/{chunk-A5PQYKVO.js.map → chunk-5TWI6FFY.js.map} +0 -0
- /package/dist/{chunk-5Y3EEI52.js.map → chunk-65HTWFKN.js.map} +0 -0
- /package/dist/{chunk-JAC6JVCI.js.map → chunk-6OIKNJ7G.js.map} +0 -0
- /package/dist/{chunk-WTYKTPZP.js.map → chunk-6RUHIXVA.js.map} +0 -0
- /package/dist/{chunk-NPF4KTRK.js.map → chunk-6X4XAANZ.js.map} +0 -0
- /package/dist/{chunk-C753PJBU.js.map → chunk-6Z32HS4D.js.map} +0 -0
- /package/dist/{chunk-3BOPIUO6.js.map → chunk-7MK4TND6.js.map} +0 -0
- /package/dist/{chunk-GTIQUOYC.js.map → chunk-AUO4QNMI.js.map} +0 -0
- /package/dist/{chunk-VWKFQ4ZY.js.map → chunk-B6WOWVAA.js.map} +0 -0
- /package/dist/{chunk-2Y3VZILY.js.map → chunk-BF32BRMX.js.map} +0 -0
- /package/dist/{chunk-CB7GZQVN.js.map → chunk-BIFK5OGB.js.map} +0 -0
- /package/dist/{chunk-GY6N42PE.js.map → chunk-BUXPBPAP.js.map} +0 -0
- /package/dist/{chunk-AA3WWPX2.js.map → chunk-CDRS2QAP.js.map} +0 -0
- /package/dist/{chunk-EJBHZ7AQ.js.map → chunk-CFVVZKSU.js.map} +0 -0
- /package/dist/{chunk-SMDJW5W4.js.map → chunk-D3KWV63D.js.map} +0 -0
- /package/dist/{chunk-77MDZIHK.js.map → chunk-D5LV3ECR.js.map} +0 -0
- /package/dist/{chunk-NQ5O2NCJ.js.map → chunk-DBLOEIJ2.js.map} +0 -0
- /package/dist/{chunk-CTBDVZ5E.js.map → chunk-DQIPDAPH.js.map} +0 -0
- /package/dist/{chunk-AL6373J7.js.map → chunk-EFBJ35ZS.js.map} +0 -0
- /package/dist/{chunk-BQYSBQZ3.js.map → chunk-EMXBMLQ4.js.map} +0 -0
- /package/dist/{chunk-GRXBD43G.js.map → chunk-EZVRXFCC.js.map} +0 -0
- /package/dist/{chunk-UIPSSTMA.js.map → chunk-GCFC2MNR.js.map} +0 -0
- /package/dist/{chunk-NNG4QCKJ.js.map → chunk-GQ4D3BT6.js.map} +0 -0
- /package/dist/{chunk-3RWSYI6N.js.map → chunk-HMFIOE4P.js.map} +0 -0
- /package/dist/{chunk-AMHVCMBW.js.map → chunk-HXLCETLB.js.map} +0 -0
- /package/dist/{chunk-WAE4G3Q6.js.map → chunk-JZ6XRIXG.js.map} +0 -0
- /package/dist/{chunk-4PWC4KAK.js.map → chunk-KAUW3OFC.js.map} +0 -0
- /package/dist/{chunk-TQDZQT6U.js.map → chunk-KFHW5TCM.js.map} +0 -0
- /package/dist/{chunk-5VVXF3OS.js.map → chunk-MHRFRSQ6.js.map} +0 -0
- /package/dist/{chunk-GTV62WIS.js.map → chunk-MQZXGTGI.js.map} +0 -0
- /package/dist/{chunk-I6W6FAUZ.js.map → chunk-NNNMTRGI.js.map} +0 -0
- /package/dist/{chunk-RD63FPG6.js.map → chunk-NQF5U6FX.js.map} +0 -0
- /package/dist/{chunk-N2MZLW6O.js.map → chunk-OROWRGRJ.js.map} +0 -0
- /package/dist/{chunk-MLMQR24H.js.map → chunk-OWJGBIQ2.js.map} +0 -0
- /package/dist/{chunk-5MMAYAWR.js.map → chunk-PAU4VS7H.js.map} +0 -0
- /package/dist/{chunk-XFMFZAWL.js.map → chunk-PTGC7CVG.js.map} +0 -0
- /package/dist/{chunk-H27R5IVQ.js.map → chunk-RAO7FTMY.js.map} +0 -0
- /package/dist/{chunk-HHQYP6RM.js.map → chunk-RM5T4MA6.js.map} +0 -0
- /package/dist/{chunk-OU4TDC2P.js.map → chunk-RP2PU3CA.js.map} +0 -0
- /package/dist/{chunk-6EMVPPSQ.js.map → chunk-RSKU45CU.js.map} +0 -0
- /package/dist/{chunk-TNQJDM2P.js.map → chunk-SA6XZ3FP.js.map} +0 -0
- /package/dist/{chunk-MZPS46OR.js.map → chunk-SIKCVWM3.js.map} +0 -0
- /package/dist/{chunk-NJIRVF2B.js.map → chunk-SPQHISWX.js.map} +0 -0
- /package/dist/{chunk-FOD5VSHH.js.map → chunk-SQVT243W.js.map} +0 -0
- /package/dist/{chunk-KJOEW2PI.js.map → chunk-T267DS5U.js.map} +0 -0
- /package/dist/{chunk-KVBNUGQ6.js.map → chunk-UQKDP46G.js.map} +0 -0
- /package/dist/{chunk-P7WISPGE.js.map → chunk-UVVOG5A7.js.map} +0 -0
- /package/dist/{chunk-BYZQ43VI.js.map → chunk-UZGZS35I.js.map} +0 -0
- /package/dist/{chunk-K5CEP7W4.js.map → chunk-W7BORINM.js.map} +0 -0
- /package/dist/{chunk-NGXZQESA.js.map → chunk-WM6JHUPY.js.map} +0 -0
- /package/dist/{chunk-THV7SMY6.js.map → chunk-XBMZNFN7.js.map} +0 -0
- /package/dist/{chunk-HN7GK5UX.js.map → chunk-XHW24Q5Q.js.map} +0 -0
- /package/dist/{chunk-IJ5DWALA.js.map → chunk-XMHTLWWE.js.map} +0 -0
- /package/dist/{chunk-3LH5ANM4.js.map → chunk-XXS6SUVM.js.map} +0 -0
- /package/dist/{chunk-FSLSISPI.js.map → chunk-Y3ESEQRI.js.map} +0 -0
- /package/dist/{chunk-YFIWCMVC.js.map → chunk-YAX5CGUY.js.map} +0 -0
- /package/dist/{chunk-RFR7ZN3P.js.map → chunk-ZCN2XUPQ.js.map} +0 -0
- /package/dist/{chunk-RW32BYY3.js.map → chunk-ZJOXRK2G.js.map} +0 -0
- /package/dist/{chunk-2AJ5UNOF.js.map → chunk-ZPHHJPDG.js.map} +0 -0
- /package/dist/{claim-ZKKC5472.js.map → claim-NM5T33W6.js.map} +0 -0
- /package/dist/{companies-CJFQ63MC.js.map → companies-VBNBS6LR.js.map} +0 -0
- /package/dist/{company-7K4EDRIN.js.map → company-3KOV3TJT.js.map} +0 -0
- /package/dist/{complete-ODOQLGSO.js.map → complete-TVY4F5YX.js.map} +0 -0
- /package/dist/{connect-APAK3WAY.js.map → connect-W6H3DT2C.js.map} +0 -0
- /package/dist/{conversation-B6V3VCT5.js.map → conversation-LCGWNPUG.js.map} +0 -0
- /package/dist/{conversion-report-JNWBTLA5.js.map → conversion-report-GK2FUT2R.js.map} +0 -0
- /package/dist/{conversion-upload-command-6OKMSO2T.js.map → conversion-upload-command-Q7LZFFZL.js.map} +0 -0
- /package/dist/{conversion-writes-2VOWP4RD.js.map → conversion-writes-STESFLTB.js.map} +0 -0
- /package/dist/{conversions-D32UTEPH.js.map → conversions-D2RPIL3I.js.map} +0 -0
- /package/dist/{conversions-JGIBYLK5.js.map → conversions-JBRU7CGB.js.map} +0 -0
- /package/dist/{create-EUQYK2SH.js.map → create-DHIXUD4Q.js.map} +0 -0
- /package/dist/{create-ALMXIVHA.js.map → create-OW2BLTBE.js.map} +0 -0
- /package/dist/{create-VAGPIZTU.js.map → create-TYG5SAQE.js.map} +0 -0
- /package/dist/{create-TOCR7EFZ.js.map → create-XGDJKMDB.js.map} +0 -0
- /package/dist/{creatives-HUDKBUDS.js.map → creatives-3ZPFUAKL.js.map} +0 -0
- /package/dist/{creatives-62PV7BIF.js.map → creatives-PN6EQYVU.js.map} +0 -0
- /package/dist/{credentials-WCD4F225.js.map → credentials-AVRHDGM5.js.map} +0 -0
- /package/dist/{critique-KJXHSKLT.js.map → critique-76EMERXI.js.map} +0 -0
- /package/dist/{critique-OO6SORTA.js.map → critique-SZSKQYUL.js.map} +0 -0
- /package/dist/{crm-YVRIT2RL.js.map → crm-4O65STFF.js.map} +0 -0
- /package/dist/{crm-5CYCCV34.js.map → crm-JMIIB55O.js.map} +0 -0
- /package/dist/{currency-SH4DDE3X.js.map → currency-HQW6FJS5.js.map} +0 -0
- /package/dist/{customers-FSOXPMOU.js.map → customers-GV3AD6B6.js.map} +0 -0
- /package/dist/{delete-H7IWZGUZ.js.map → delete-CJGW5MKC.js.map} +0 -0
- /package/dist/{delete-QXZFJNUS.js.map → delete-ISAOQTI5.js.map} +0 -0
- /package/dist/{delete-EEU6WJ6M.js.map → delete-WFF5EVIL.js.map} +0 -0
- /package/dist/{demographics-RM5PA54R.js.map → demographics-XSMD6KI4.js.map} +0 -0
- /package/dist/{discard-6XOYXNZ6.js.map → discard-B5QMX35Q.js.map} +0 -0
- /package/dist/{discover-VEHKBNCY.js.map → discover-DLGO3VW6.js.map} +0 -0
- /package/dist/{domain-X7MT3XUG.js.map → domain-WA4HAHCE.js.map} +0 -0
- /package/dist/{download-YQYR5GUP.js.map → download-67IB5DPC.js.map} +0 -0
- /package/dist/{draft-V7VGPJK4.js.map → draft-4MKYX4VU.js.map} +0 -0
- /package/dist/{draft-DUAFRL2G.js.map → draft-I7HIRQ6F.js.map} +0 -0
- /package/dist/{draft-FXMGEY3E.js.map → draft-NXGJ3DD4.js.map} +0 -0
- /package/dist/{draft-YXGASP7M.js.map → draft-P73N5PT4.js.map} +0 -0
- /package/dist/{draft-XWHU5C5Z.js.map → draft-QAPMXYBR.js.map} +0 -0
- /package/dist/{experiments-2XOC77Y7.js.map → experiments-YEI3HSBU.js.map} +0 -0
- /package/dist/{facets-7Q36JF2D.js.map → facets-EQLEOMDT.js.map} +0 -0
- /package/dist/{feedback-WPV2RKJS.js.map → feedback-JNSHN7DE.js.map} +0 -0
- /package/dist/{feedback-record-UEWS4FZJ.js.map → feedback-record-JV43NSJI.js.map} +0 -0
- /package/dist/{fetch-AARAG6UL.js.map → fetch-O4EYJVMN.js.map} +0 -0
- /package/dist/{fit-T4ALNNXL.js.map → fit-7N7AHYQF.js.map} +0 -0
- /package/dist/{flows-PYPA2FM3.js.map → flows-DTZGIGZS.js.map} +0 -0
- /package/dist/{fonts-H2GG2JXA.js.map → fonts-TYDQXRIU.js.map} +0 -0
- /package/dist/{forecast-UYBYSH3Y.js.map → forecast-AODSMD7S.js.map} +0 -0
- /package/dist/{forecast-LMSPNY6X.js.map → forecast-VO7XY46L.js.map} +0 -0
- /package/dist/{funnel-KIYPFPIY.js.map → funnel-CV4DZXUS.js.map} +0 -0
- /package/dist/{generate-QG7GX6WO.js.map → generate-HSDSCKDW.js.map} +0 -0
- /package/dist/{get-ROETYEYF.js.map → get-4S4XRZ2J.js.map} +0 -0
- /package/dist/{get-IN6UXQRX.js.map → get-FDZZEB5R.js.map} +0 -0
- /package/dist/{google-ZT3J3G4Z.js.map → google-DPBZJ3TV.js.map} +0 -0
- /package/dist/{google-ads-CBJZKTXG.js.map → google-ads-EPFX2NA4.js.map} +0 -0
- /package/dist/{history-GTT55ZP7.js.map → history-7UJW5TRO.js.map} +0 -0
- /package/dist/{history-UYG35MNJ.js.map → history-JCLXT3AO.js.map} +0 -0
- /package/dist/{history-XOB23MLX.js.map → history-SHQVK5I7.js.map} +0 -0
- /package/dist/{hubspot-B6Z77JY6.js.map → hubspot-J6372OWH.js.map} +0 -0
- /package/dist/{ideas-RVK4RNKN.js.map → ideas-TKMMQ557.js.map} +0 -0
- /package/dist/{images-RGJZ6FJL.js.map → images-J7LJETPR.js.map} +0 -0
- /package/dist/{ingest-GBWY2ZEP.js.map → ingest-LVAH5OF5.js.map} +0 -0
- /package/dist/{ingest-7FHCKRYR.js.map → ingest-UBP7TEXU.js.map} +0 -0
- /package/dist/{insights-7CQJOBWX.js.map → insights-UMPXHRKD.js.map} +0 -0
- /package/dist/{inspect-RC6GKLIF.js.map → inspect-22G3OPFK.js.map} +0 -0
- /package/dist/{intent-P75BDP4H.js.map → intent-NBP5IDND.js.map} +0 -0
- /package/dist/{keyword-gap-54F6CZLM.js.map → keyword-gap-67UJ2LDD.js.map} +0 -0
- /package/dist/{keyword-metrics-PL5IYZGN.js.map → keyword-metrics-QP5ZNOC6.js.map} +0 -0
- /package/dist/{keywords-for-site-4FMJ5IGN.js.map → keywords-for-site-QTE332T7.js.map} +0 -0
- /package/dist/{landing-24TVKWTP.js.map → landing-TOYYCWFX.js.map} +0 -0
- /package/dist/{languages-PEGOE365.js.map → languages-TM7SHGRO.js.map} +0 -0
- /package/dist/{leads-6TFBPYMM.js.map → leads-FTWBDLBQ.js.map} +0 -0
- /package/dist/{learn-4LGNFGWH.js.map → learn-3N7M3UHA.js.map} +0 -0
- /package/dist/{line-item-writes-AOTRDB4L.js.map → line-item-writes-VFPXT4W6.js.map} +0 -0
- /package/dist/{line-items-ERV3F2EI.js.map → line-items-HB2N7RKO.js.map} +0 -0
- /package/dist/{link-QZXI5YJP.js.map → link-KAY6VYFH.js.map} +0 -0
- /package/dist/{linkedin-4BKZ5KUE.js.map → linkedin-CDSEMSCF.js.map} +0 -0
- /package/dist/{linkedin-person-ZLXMOG2U.js.map → linkedin-person-HR6HKFUU.js.map} +0 -0
- /package/dist/{list-UCQEHPIR.js.map → list-INU27RQJ.js.map} +0 -0
- /package/dist/{list-7FB6764Q.js.map → list-QWCU77C3.js.map} +0 -0
- /package/dist/{list-QHAYR2IQ.js.map → list-VJ3CVEDW.js.map} +0 -0
- /package/dist/{locations-SHYN5J4Q.js.map → locations-HAXZUHJP.js.map} +0 -0
- /package/dist/{locations-MXWGZIGU.js.map → locations-JFBM4XBL.js.map} +0 -0
- /package/dist/{log-WPZRUMZU.js.map → log-AUN4NOPP.js.map} +0 -0
- /package/dist/{make-VCAS2M2W.js.map → make-B5HDRFCX.js.map} +0 -0
- /package/dist/{map-5EQO2VXB.js.map → map-CCBSITK7.js.map} +0 -0
- /package/dist/{mcp-CKOYL4IU.js.map → mcp-45YWYNYM.js.map} +0 -0
- /package/dist/{media-sources-EDZ2PBJY.js.map → media-sources-N7MBY3GE.js.map} +0 -0
- /package/dist/{members-E2AGJIU6.js.map → members-2P2QCBJO.js.map} +0 -0
- /package/dist/{metrics-25LYUEB7.js.map → metrics-XWHE4LYQ.js.map} +0 -0
- /package/dist/{models-EU3NO4IY.js.map → models-3C6BWHEC.js.map} +0 -0
- /package/dist/{normalize-PHJT5CAD.js.map → normalize-MLRJ6IYU.js.map} +0 -0
- /package/dist/{options-KFABOCWK.js.map → options-6QAJ67XB.js.map} +0 -0
- /package/dist/{organization-BP5DTWL7.js.map → organization-P5LAMNMT.js.map} +0 -0
- /package/dist/{performance-C4M3GJPC.js.map → performance-3PH7UYQN.js.map} +0 -0
- /package/dist/{performance-H3SJD3SN.js.map → performance-6BMFU6IJ.js.map} +0 -0
- /package/dist/{pixels-NLH2PN6Q.js.map → pixels-PMPL63ON.js.map} +0 -0
- /package/dist/{promoted-tweet-writes-ATWAKV6N.js.map → promoted-tweet-writes-EPXZFIUP.js.map} +0 -0
- /package/dist/{promoted-tweets-TWQP3MDP.js.map → promoted-tweets-Q46HUYN6.js.map} +0 -0
- /package/dist/{publish-Q4W7MI7P.js.map → publish-DHDRUTXM.js.map} +0 -0
- /package/dist/{query-TP3L4W7Z.js.map → query-IR3LCFON.js.map} +0 -0
- /package/dist/{reddit-JWZYSUAG.js.map → reddit-2FQOS3B3.js.map} +0 -0
- /package/dist/{refresh-VRBHP4AA.js.map → refresh-VJPKAPJM.js.map} +0 -0
- /package/dist/{release-OV4ZDCXG.js.map → release-O233BAQA.js.map} +0 -0
- /package/dist/{relevant-pages-VJHTUJMB.js.map → relevant-pages-NPUSAV3K.js.map} +0 -0
- /package/dist/{remove-DBCSQSEP.js.map → remove-HNSOYQVB.js.map} +0 -0
- /package/dist/{reopen-5ZOEKYQ5.js.map → reopen-B7KHVN5X.js.map} +0 -0
- /package/dist/{rerun-YMRW6BHM.js.map → rerun-KAB7AXTY.js.map} +0 -0
- /package/dist/{research-M3QPWTYX.js.map → research-I4ZQ4YQ3.js.map} +0 -0
- /package/dist/{research-HUM6CF74.js.map → research-Z2SE775C.js.map} +0 -0
- /package/dist/{reset-BPAFOW6M.js.map → reset-4T6XUNOO.js.map} +0 -0
- /package/dist/{reset-WAY3BSZX.js.map → reset-YHEMD5N5.js.map} +0 -0
- /package/dist/{resolve-AQ6UFEMN.js.map → resolve-5RJD2ELK.js.map} +0 -0
- /package/dist/{retry-3KYFTPXZ.js.map → retry-S3EC6FCA.js.map} +0 -0
- /package/dist/{retry-XO54CIRK.js.map → retry-WKYMY2KB.js.map} +0 -0
- /package/dist/{revenue-PPDMQO3H.js.map → revenue-C4E4PRLL.js.map} +0 -0
- /package/dist/{rules-4ENXG5XW.js.map → rules-JGTKFXM3.js.map} +0 -0
- /package/dist/{rules-add-FTBOOE6L.js.map → rules-add-3DTRLVGR.js.map} +0 -0
- /package/dist/{run-UECCNQ63.js.map → run-2TKYHCN2.js.map} +0 -0
- /package/dist/{run-2ZRTKR7A.js.map → run-TYJLOJW7.js.map} +0 -0
- /package/dist/{scaffold-ad-DFKFUOOZ.js.map → scaffold-ad-RFRUPUKW.js.map} +0 -0
- /package/dist/{scaffold-static-ad-II3TUE5I.js.map → scaffold-static-ad-N5QCJFGP.js.map} +0 -0
- /package/dist/{scaffold-video-IKVYICIY.js.map → scaffold-video-VAG3WN5W.js.map} +0 -0
- /package/dist/{schedule-ERHKGQID.js.map → schedule-6UYJLE5K.js.map} +0 -0
- /package/dist/{scheduled-agents-ICXFV7NP.js.map → scheduled-agents-YEHJ4XIB.js.map} +0 -0
- /package/dist/{schema-NUUZ3MG7.js.map → schema-BCCCNVNO.js.map} +0 -0
- /package/dist/{search-B2APYHV6.js.map → search-J43ZG7W3.js.map} +0 -0
- /package/dist/{select-WVNPJDXP.js.map → select-I2UPGGZ5.js.map} +0 -0
- /package/dist/{set-prompt-KHBDWDXA.js.map → set-prompt-SU7YM7FW.js.map} +0 -0
- /package/dist/{setup-links-R3FH7WK4.js.map → setup-links-VWK4MBI3.js.map} +0 -0
- /package/dist/{shopify-34CFN6SG.js.map → shopify-6KNHPC4R.js.map} +0 -0
- /package/dist/{site-H6AMVMIX.js.map → site-PHTJ5VI3.js.map} +0 -0
- /package/dist/{sources-2VJMHUH7.js.map → sources-255OGK6K.js.map} +0 -0
- /package/dist/{stale-6BEHWQZ7.js.map → stale-KN2ZOJ5T.js.map} +0 -0
- /package/dist/{status-MCMOSDVX.js.map → status-BJH7ODU4.js.map} +0 -0
- /package/dist/{studio-4QOFG7MQ.js.map → studio-C2UVCTDD.js.map} +0 -0
- /package/dist/{sync-WJCJHNET.js.map → sync-MIKA6IM6.js.map} +0 -0
- /package/dist/{sync-definition-THVMBGJR.js.map → sync-definition-LO425HBD.js.map} +0 -0
- /package/dist/{tags-AGFUJ2BB.js.map → tags-DKSJ4E7E.js.map} +0 -0
- /package/dist/{tags-OPMPPJY2.js.map → tags-JEGCEFMZ.js.map} +0 -0
- /package/dist/{tags-VOCMMZ75.js.map → tags-MNHBZ7FH.js.map} +0 -0
- /package/dist/{tags-WK6P5A4D.js.map → tags-S5XY63D3.js.map} +0 -0
- /package/dist/{tags-VGJ76RJT.js.map → tags-VVO3BT66.js.map} +0 -0
- /package/dist/{targeting-criteria-KRIMZRVI.js.map → targeting-criteria-BIIGZTLQ.js.map} +0 -0
- /package/dist/{targets-MCOEM4XQ.js.map → targets-SX3NMYQ3.js.map} +0 -0
- /package/dist/{testimonials-A2AFXSZV.js.map → testimonials-U3KBI3VU.js.map} +0 -0
- /package/dist/{themes-JBX6W4SP.js.map → themes-32CUPT4M.js.map} +0 -0
- /package/dist/{top-companies-ESCRXLSK.js.map → top-companies-DFM4F2SE.js.map} +0 -0
- /package/dist/{transcript-N2ZWN4CI.js.map → transcript-4BSUSOQ4.js.map} +0 -0
- /package/dist/{translate-YGUYVOGA.js.map → translate-JE7CZJ26.js.map} +0 -0
- /package/dist/{triggers-G4EW5XG6.js.map → triggers-SRI27OAP.js.map} +0 -0
- /package/dist/{unlink-DRIVH2GT.js.map → unlink-U7HZ4CYW.js.map} +0 -0
- /package/dist/{unstage-WUQV6QBV.js.map → unstage-JJGZJVHT.js.map} +0 -0
- /package/dist/{update-5GIAKABM.js.map → update-JN75LN32.js.map} +0 -0
- /package/dist/{update-T7PSOZES.js.map → update-PU5LSQ7W.js.map} +0 -0
- /package/dist/{update-COXCKREW.js.map → update-PUWD5HX4.js.map} +0 -0
- /package/dist/{update-NA4M4J5D.js.map → update-R4EEEWT4.js.map} +0 -0
- /package/dist/{upload-IXVEJLZU.js.map → upload-4CUPZI3X.js.map} +0 -0
- /package/dist/{url-options-LHEGWNAH.js.map → url-options-P3UTLYUY.js.map} +0 -0
- /package/dist/{url-params-IL2M2WZI.js.map → url-params-V7KQMWK3.js.map} +0 -0
- /package/dist/{validate-QAJJ7QCJ.js.map → validate-6GRMJKZI.js.map} +0 -0
- /package/dist/{videos-I7PCC2EC.js.map → videos-6ZZ6LLTL.js.map} +0 -0
- /package/dist/{viewer-check-PUAWVYWP.js.map → viewer-check-B36TNSZI.js.map} +0 -0
- /package/dist/{web-O2MCPPB5.js.map → web-H5CWLHRA.js.map} +0 -0
- /package/dist/{winning-ads-FTMP4FUC.js.map → winning-ads-SHNXPIYB.js.map} +0 -0
- /package/dist/{write-commands-NKKNWQIM.js.map → write-commands-RI6UP4YG.js.map} +0 -0
- /package/dist/{x-FPRMRQLQ.js.map → x-CI2XPNBR.js.map} +0 -0
|
@@ -0,0 +1,1513 @@
|
|
|
1
|
+
import {
|
|
2
|
+
stampCompositionDims
|
|
3
|
+
} from "./chunk-5MBPIONY.js";
|
|
4
|
+
import {
|
|
5
|
+
fetchClientLogo
|
|
6
|
+
} from "./chunk-XMHTLWWE.js";
|
|
7
|
+
import {
|
|
8
|
+
SHIPPED_CAPTIONS_DIR,
|
|
9
|
+
SHIPPED_OVERLAY_COMPOSITION_DIR
|
|
10
|
+
} from "./chunk-SIKCVWM3.js";
|
|
11
|
+
import {
|
|
12
|
+
readDefinitionPlatforms,
|
|
13
|
+
syncCreativeDefinitionBestEffort
|
|
14
|
+
} from "./chunk-65HTWFKN.js";
|
|
15
|
+
import "./chunk-RAO7FTMY.js";
|
|
16
|
+
import {
|
|
17
|
+
pinnedModelHint
|
|
18
|
+
} from "./chunk-6OIKNJ7G.js";
|
|
19
|
+
import "./chunk-KFHW5TCM.js";
|
|
20
|
+
import {
|
|
21
|
+
REBUILD_FILE,
|
|
22
|
+
authoredRole,
|
|
23
|
+
brandHeadlineFont,
|
|
24
|
+
buildCreativeDefinition,
|
|
25
|
+
cachedJev,
|
|
26
|
+
canvasDims,
|
|
27
|
+
carriesOnFromAnswers,
|
|
28
|
+
carriesOnQuestions,
|
|
29
|
+
computeSourceSha,
|
|
30
|
+
definitionPlatformsOf,
|
|
31
|
+
escapeHtml,
|
|
32
|
+
findBrandRoot,
|
|
33
|
+
genAspectsFor,
|
|
34
|
+
languageFromAnswer,
|
|
35
|
+
languageQuestion,
|
|
36
|
+
parseDefinitionStrategyFields,
|
|
37
|
+
readNamedTypefaces,
|
|
38
|
+
readStaticBrandKit,
|
|
39
|
+
renderStyleProjectionFromValue,
|
|
40
|
+
resolveAspect,
|
|
41
|
+
resolveFormats,
|
|
42
|
+
scaffoldVideoCanvas,
|
|
43
|
+
spokenLanguage,
|
|
44
|
+
titleFromSlug,
|
|
45
|
+
voiceGenderModel,
|
|
46
|
+
webFontUrl,
|
|
47
|
+
writeSceneFiles
|
|
48
|
+
} from "./chunk-SPQHISWX.js";
|
|
49
|
+
import "./chunk-BBGKZJXP.js";
|
|
50
|
+
import "./chunk-EKX37C3T.js";
|
|
51
|
+
import "./chunk-AUO4QNMI.js";
|
|
52
|
+
import "./chunk-BUXPBPAP.js";
|
|
53
|
+
import "./chunk-RSKU45CU.js";
|
|
54
|
+
import {
|
|
55
|
+
readAvatars
|
|
56
|
+
} from "./chunk-LXV2U4MI.js";
|
|
57
|
+
import "./chunk-5TWI6FFY.js";
|
|
58
|
+
import "./chunk-YAX5CGUY.js";
|
|
59
|
+
import {
|
|
60
|
+
fetchJson,
|
|
61
|
+
lookupGoogleCss
|
|
62
|
+
} from "./chunk-2MAQKELK.js";
|
|
63
|
+
import "./chunk-6RUHIXVA.js";
|
|
64
|
+
import "./chunk-BIFK5OGB.js";
|
|
65
|
+
import "./chunk-ZPHHJPDG.js";
|
|
66
|
+
import "./chunk-NRMJWNX3.js";
|
|
67
|
+
import {
|
|
68
|
+
holdUnbilledSpend
|
|
69
|
+
} from "./chunk-W3PJ7V4W.js";
|
|
70
|
+
import {
|
|
71
|
+
findWorkspaceRoot,
|
|
72
|
+
resolveRelativeCanvasPaths
|
|
73
|
+
} from "./chunk-CM2LECNX.js";
|
|
74
|
+
import {
|
|
75
|
+
defaultRegistry,
|
|
76
|
+
validateCanvasDeep
|
|
77
|
+
} from "./chunk-WM6JHUPY.js";
|
|
78
|
+
import "./chunk-HXLCETLB.js";
|
|
79
|
+
import {
|
|
80
|
+
BRAND_DIR,
|
|
81
|
+
READ_WORDS_PER_SECOND,
|
|
82
|
+
markInkIsLight,
|
|
83
|
+
markIsReal,
|
|
84
|
+
plateIsDark,
|
|
85
|
+
readBrandFromWorkspace,
|
|
86
|
+
svgIsLiveText,
|
|
87
|
+
wordCount
|
|
88
|
+
} from "./chunk-DBLOEIJ2.js";
|
|
89
|
+
import {
|
|
90
|
+
videoSafeArea
|
|
91
|
+
} from "./chunk-ZJOXRK2G.js";
|
|
92
|
+
import "./chunk-DGCUPJZD.js";
|
|
93
|
+
import "./chunk-Y3ESEQRI.js";
|
|
94
|
+
import {
|
|
95
|
+
ACTOR_SHEET_MODEL
|
|
96
|
+
} from "./chunk-2OCUXPWT.js";
|
|
97
|
+
import "./chunk-KAUW3OFC.js";
|
|
98
|
+
import {
|
|
99
|
+
AD_IMAGE_MODEL,
|
|
100
|
+
DEFAULT_VIDEO_GENERATE_MODEL,
|
|
101
|
+
SEEDANCE_DURATIONS,
|
|
102
|
+
SPOKEN_CLIP_DURATION_S,
|
|
103
|
+
VIDEO_GENERATE_MODELS,
|
|
104
|
+
clipDurationsFor,
|
|
105
|
+
frameRealismDirection,
|
|
106
|
+
withoutCastName
|
|
107
|
+
} from "./chunk-F3CZFUXZ.js";
|
|
108
|
+
import "./chunk-2WZI36D3.js";
|
|
109
|
+
import "./chunk-65Y3RCWP.js";
|
|
110
|
+
import {
|
|
111
|
+
askJevQuestions
|
|
112
|
+
} from "./chunk-ZPF253G5.js";
|
|
113
|
+
import "./chunk-AXSSATJW.js";
|
|
114
|
+
import "./chunk-DNRXEP4A.js";
|
|
115
|
+
import {
|
|
116
|
+
fetchExternalBytes
|
|
117
|
+
} from "./chunk-OYYAR5TD.js";
|
|
118
|
+
import "./chunk-XXS6SUVM.js";
|
|
119
|
+
import "./chunk-QV6AST5T.js";
|
|
120
|
+
import "./chunk-WCU362Z6.js";
|
|
121
|
+
import "./chunk-GIWHHCD6.js";
|
|
122
|
+
import "./chunk-SOPVIIUW.js";
|
|
123
|
+
import "./chunk-G4FG5EQO.js";
|
|
124
|
+
import "./chunk-NSBNIPIW.js";
|
|
125
|
+
import "./chunk-BNO3EFGR.js";
|
|
126
|
+
import "./chunk-C35UMKYG.js";
|
|
127
|
+
import "./chunk-ELAYD7O3.js";
|
|
128
|
+
import "./chunk-LBIF6FJY.js";
|
|
129
|
+
import {
|
|
130
|
+
registerSchema,
|
|
131
|
+
writeJson
|
|
132
|
+
} from "./chunk-TRXGJZDL.js";
|
|
133
|
+
import "./chunk-YQSBHWOI.js";
|
|
134
|
+
|
|
135
|
+
// src/commands/canvas/scaffold-ad.ts
|
|
136
|
+
import { copyFile, cp, mkdir, readFile, stat, writeFile } from "fs/promises";
|
|
137
|
+
import path from "path";
|
|
138
|
+
import { defineCommand } from "citty";
|
|
139
|
+
|
|
140
|
+
// src/engine/scaffold/ad-spec.ts
|
|
141
|
+
import { z } from "zod";
|
|
142
|
+
var oneClause = (line) => (line.match(/[.!?](\s|$)/g) ?? []).length <= 1;
|
|
143
|
+
var isSpeech = (line) => new RegExp("\\p{L}\\p{L}", "u").test(line);
|
|
144
|
+
var Beat = z.object({
|
|
145
|
+
/**
|
|
146
|
+
* The line the voice says in this beat — ONE clause, ending in its own
|
|
147
|
+
* punctuation. It becomes the caption card verbatim.
|
|
148
|
+
*/
|
|
149
|
+
say: z.string().min(1).refine(
|
|
150
|
+
isSpeech,
|
|
151
|
+
"a beat's line has to be words someone says \u2014 a dot or a dash is not a line, and an ad with no voiceover is not supported yet"
|
|
152
|
+
).refine(oneClause, "a beat is one clause: split a second sentence into its own beat"),
|
|
153
|
+
/** What is on screen while it is said, as a shot brief for the video model. */
|
|
154
|
+
show: z.string().min(1),
|
|
155
|
+
/**
|
|
156
|
+
* What this shot SOUNDS like — one effect, in words. Usually absent.
|
|
157
|
+
*
|
|
158
|
+
* An effect earns its place when the picture shows a SPECIFIC PHYSICAL EVENT the
|
|
159
|
+
* viewer expects to hear: a drill tightening a bolt, a door closing, rain on glass, a
|
|
160
|
+
* card tapping a reader, a graphic snapping into place. It grounds the shot.
|
|
161
|
+
*
|
|
162
|
+
* It does NOT belong on a talking head, on a lifestyle shot with no event in it, or
|
|
163
|
+
* on a beat that is simply someone sitting and reacting. Sound laid over those reads
|
|
164
|
+
* as a stock-library sting, and a bed of them turns a calm ad into a noisy one. Most
|
|
165
|
+
* ads are a music bed and a voice; a couple of effects at the right moments, or none
|
|
166
|
+
* at all, is a normal and often better answer than one per beat.
|
|
167
|
+
*
|
|
168
|
+
* Describe the SOUND, not the picture: "a cordless drill tightening a bolt", not "the
|
|
169
|
+
* fitter works on the rail".
|
|
170
|
+
*/
|
|
171
|
+
sound: z.string().min(1).max(200).optional(),
|
|
172
|
+
/**
|
|
173
|
+
* Whether this beat's subject is talking to camera.
|
|
174
|
+
*
|
|
175
|
+
* Left unset it follows the cast: an ad that cast a presenter, in a shot they are in,
|
|
176
|
+
* with a line, is that person speaking. Set it to FALSE for the exception — a cutaway,
|
|
177
|
+
* a product shot, a beat you want a narrator to carry over.
|
|
178
|
+
*
|
|
179
|
+
* It used to be opt-in, back when the only route was dubbing and OFF was the safe
|
|
180
|
+
* default. That inverted the moment on-camera started meaning the video model voices
|
|
181
|
+
* the clip itself: measured on a real run, a brief that said "talking to camera all the
|
|
182
|
+
* way through" produced an ad with her face on screen and a narrator cast from a prose
|
|
183
|
+
* description reading her lines, because nothing set this flag.
|
|
184
|
+
*/
|
|
185
|
+
on_camera: z.boolean().optional(),
|
|
186
|
+
/**
|
|
187
|
+
* Whether the ad's recurring person is in this shot. Defaults to true whenever the
|
|
188
|
+
* spec declares a `cast`, because an ad is usually about one person and defaulting
|
|
189
|
+
* the other way is how continuity gets forgotten. Set false for a beat they are not
|
|
190
|
+
* in — a fitter on a roof, a product close-up.
|
|
191
|
+
*/
|
|
192
|
+
cast: z.boolean().optional()
|
|
193
|
+
});
|
|
194
|
+
var AdSpec = z.object({
|
|
195
|
+
format: z.object({
|
|
196
|
+
aspect_ratio: z.string().default("9:16"),
|
|
197
|
+
resolution: z.string().default("720p")
|
|
198
|
+
}).default({ aspect_ratio: "9:16", resolution: "720p" }),
|
|
199
|
+
brand: z.object({
|
|
200
|
+
name: z.string().optional(),
|
|
201
|
+
/** Figures to lift typographically — the one gold number every ad has. */
|
|
202
|
+
highlight: z.array(z.string()).optional(),
|
|
203
|
+
/**
|
|
204
|
+
* Brand hex colours, most important first. They dress the brand plate and
|
|
205
|
+
* the type — never the scenes: pushing hex into a shot brief makes the
|
|
206
|
+
* model paint the whole frame that colour, which reads as a filter.
|
|
207
|
+
*/
|
|
208
|
+
palette: z.array(z.string()).optional(),
|
|
209
|
+
/** Repo path to the brand mark, so the CTA carries it instead of a name in a font. */
|
|
210
|
+
logo: z.string().optional()
|
|
211
|
+
}).optional(),
|
|
212
|
+
voice: z.object({
|
|
213
|
+
description: z.string().min(1),
|
|
214
|
+
language: z.string().optional()
|
|
215
|
+
}).optional(),
|
|
216
|
+
/**
|
|
217
|
+
* Where the ad is set, as a place a model can picture: "Spain", "Mexico",
|
|
218
|
+
* "the UK". Omitted, it is the country a regional `voice.language` names ("es-MX" →
|
|
219
|
+
* Mexico), else nowhere: a language alone names no country.
|
|
220
|
+
*
|
|
221
|
+
* It exists because nothing else in a shot brief says where it is, and a model
|
|
222
|
+
* with no location picks its own. An ad for Spain came back full of British
|
|
223
|
+
* houses — sash windows, slate roofs, English suburbs — in every single frame,
|
|
224
|
+
* from briefs that were otherwise perfectly good.
|
|
225
|
+
*/
|
|
226
|
+
market: z.string().min(1).optional(),
|
|
227
|
+
/**
|
|
228
|
+
* The one person the ad is about.
|
|
229
|
+
*
|
|
230
|
+
* Declared once and grounded on every beat they appear in, because the engine already
|
|
231
|
+
* builds a reference sheet from this and tells each frame to render THE SAME
|
|
232
|
+
* individual. Without it each beat invents its own face: a 28-second ad came back
|
|
233
|
+
* with five different men playing one customer, which reads as a stock-footage
|
|
234
|
+
* collage rather than a story.
|
|
235
|
+
*/
|
|
236
|
+
cast: z.object({
|
|
237
|
+
/**
|
|
238
|
+
* A cast Avatar's handle — `baker avatars list` shows who there is.
|
|
239
|
+
*
|
|
240
|
+
* The right way to put a person in an ad. The avatar already has a settled
|
|
241
|
+
* identity and a rendered identity sheet, so the ad grounds on the same face the
|
|
242
|
+
* rest of the company's work uses, and its subject description is copied verbatim
|
|
243
|
+
* rather than re-written per spec — re-phrasing it per render is the other reason
|
|
244
|
+
* a face drifts across a set.
|
|
245
|
+
*/
|
|
246
|
+
avatar: z.string().min(1).optional(),
|
|
247
|
+
/** Who they are, plainly: age, build, hair, wardrobe, the register of the ad. */
|
|
248
|
+
description: z.string().min(1).optional()
|
|
249
|
+
}).refine((c) => Boolean(c.avatar || c.description), {
|
|
250
|
+
message: "give `avatar` (a cast avatar's handle) or `description` \u2014 a cast with neither grounds on nothing"
|
|
251
|
+
}).optional(),
|
|
252
|
+
/**
|
|
253
|
+
* The bed, described in words — or `false` for an ad that is meant to be dry.
|
|
254
|
+
*
|
|
255
|
+
* Omitted lays a soft, neutral bed. It used to leave the ad silent, on the reasoning
|
|
256
|
+
* that silence is a legitimate choice; it is, but only as a choice. In practice nothing
|
|
257
|
+
* ever set this, and finished ads shipped with a voice over nothing — which reads as
|
|
258
|
+
* unfinished, not as restraint. A bed is the ordinary case, so it is the default, and
|
|
259
|
+
* an ad that wants silence says `false` and means it.
|
|
260
|
+
*
|
|
261
|
+
* The bed never plays over the first beat: the opening line is the scroll-stopper and
|
|
262
|
+
* has to read clean. That is the engine's rule, not this one, and it is why the prompt
|
|
263
|
+
* is all this needs to carry.
|
|
264
|
+
*/
|
|
265
|
+
music: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
266
|
+
/**
|
|
267
|
+
* The place the ad keeps coming back to, held still across every shot.
|
|
268
|
+
*
|
|
269
|
+
* The person has an identity sheet; nothing held the SETTING. Each shot's start frame is
|
|
270
|
+
* generated on its own, so three beats in "her living room" came back as three different
|
|
271
|
+
* living rooms. The engine already builds `location` reference sheets — its own comment
|
|
272
|
+
* calls them the strongest cross-scene consistency lock it has — and the ad path simply
|
|
273
|
+
* never emitted one.
|
|
274
|
+
*
|
|
275
|
+
* `image` is a real picture of the place, and it is what makes this work at all: a sheet
|
|
276
|
+
* fuses source material into a turnaround. Fed nothing, it is not a reference sheet, it
|
|
277
|
+
* is `image_generate` with extra steps — the model registry says exactly that. Generate
|
|
278
|
+
* the plate once with gpt-image-2 and pass its URL here.
|
|
279
|
+
*/
|
|
280
|
+
set: z.object({
|
|
281
|
+
description: z.string().min(1).max(400),
|
|
282
|
+
image: z.string().min(1).optional()
|
|
283
|
+
}).optional(),
|
|
284
|
+
/**
|
|
285
|
+
* How the ad closes.
|
|
286
|
+
*
|
|
287
|
+
* On by default whenever the spec carries a brand, because an ad that stops instead
|
|
288
|
+
* of closing is what shipped: the last caption fell four seconds before the last
|
|
289
|
+
* frame and the picture simply ran out on a man shuffling paper. The closing beat's
|
|
290
|
+
* PICTURE becomes a flat brand plate — the engine already refuses to generate one as
|
|
291
|
+
* a photograph, since a video model garbles a wordmark — and the mark and the call to
|
|
292
|
+
* action are drawn over it by the composition.
|
|
293
|
+
*
|
|
294
|
+
* `false` opts out, for an ad that genuinely ends on its footage.
|
|
295
|
+
*/
|
|
296
|
+
end_card: z.union([
|
|
297
|
+
z.literal(false),
|
|
298
|
+
z.object({
|
|
299
|
+
/**
|
|
300
|
+
* The words on the button. No default — with none the card carries the mark
|
|
301
|
+
* alone, because falling back to the last beat's line printed that sentence
|
|
302
|
+
* twice on the closing frame. See `endCardCta`.
|
|
303
|
+
*/
|
|
304
|
+
cta: z.string().min(1).optional()
|
|
305
|
+
})
|
|
306
|
+
]).optional(),
|
|
307
|
+
/**
|
|
308
|
+
* Whether a voice reads the lines.
|
|
309
|
+
*
|
|
310
|
+
* On by default. Turned off, the ad carries its music and its pictures and the `say`
|
|
311
|
+
* lines become ON-SCREEN text instead of spoken ones — which is how most music-led
|
|
312
|
+
* social ads are actually built.
|
|
313
|
+
*
|
|
314
|
+
* It exists because an agent wanted exactly this and had no way to ask: it wrote "·"
|
|
315
|
+
* as every line with a voice description reading "No voiceover; music only". The dot
|
|
316
|
+
* was sent to the voice model, the near-silence that came back was transcribed, and
|
|
317
|
+
* the transcriber hallucinated "Thank you." — which became the ad's only caption card,
|
|
318
|
+
* held over all sixteen seconds, in English, in a Spanish ad.
|
|
319
|
+
*
|
|
320
|
+
* The captions are BETTER on this path, not worse: they come from the script itself
|
|
321
|
+
* rather than from transcribing a rendered read, so the text is exact and no speech
|
|
322
|
+
* model is between the copy and the screen.
|
|
323
|
+
*/
|
|
324
|
+
voiceover: z.boolean().default(true),
|
|
325
|
+
beats: z.array(Beat).min(2)
|
|
326
|
+
});
|
|
327
|
+
function presenterIsInEveryShot(spec) {
|
|
328
|
+
if (!spec.cast) return false;
|
|
329
|
+
const storyBeats = spec.beats.filter((_, i) => !(endCardWanted(spec) && i === spec.beats.length - 1));
|
|
330
|
+
return storyBeats.length >= 3 && storyBeats.every((b) => b.cast !== false);
|
|
331
|
+
}
|
|
332
|
+
var CURRENCY_BY_MARKET = {
|
|
333
|
+
spain: "\u20AC (euros)",
|
|
334
|
+
mexico: "$ (Mexican pesos)",
|
|
335
|
+
portugal: "\u20AC (euros)",
|
|
336
|
+
brazil: "R$ (reais)",
|
|
337
|
+
france: "\u20AC (euros)",
|
|
338
|
+
italy: "\u20AC (euros)",
|
|
339
|
+
germany: "\u20AC (euros)",
|
|
340
|
+
"united kingdom": "\xA3 (pounds sterling)",
|
|
341
|
+
"united states": "$ (US dollars)"
|
|
342
|
+
};
|
|
343
|
+
var currencyFor = (market) => CURRENCY_BY_MARKET[market.trim().toLowerCase().replace(/^the\s+/, "")];
|
|
344
|
+
function spokenLanguageFor(spec, known = {}) {
|
|
345
|
+
const declared = spec.voice?.language ? spokenLanguage(spec.voice.language) : null;
|
|
346
|
+
if (declared) return declared.tag;
|
|
347
|
+
const defined = known.definitionLanguage ? spokenLanguage(known.definitionLanguage) : null;
|
|
348
|
+
if (defined) return defined.tag;
|
|
349
|
+
return known.reading?.scriptLanguage;
|
|
350
|
+
}
|
|
351
|
+
function marketFor(spec, definitionLanguage) {
|
|
352
|
+
if (spec.market) return spec.market;
|
|
353
|
+
for (const tag of [spec.voice?.language, definitionLanguage]) {
|
|
354
|
+
const region = tag ? spokenLanguage(tag)?.region : void 0;
|
|
355
|
+
if (region) return region.name;
|
|
356
|
+
}
|
|
357
|
+
return void 0;
|
|
358
|
+
}
|
|
359
|
+
function beatSeconds(line, videoModel) {
|
|
360
|
+
const spoken = wordCount(line) / READ_WORDS_PER_SECOND;
|
|
361
|
+
const allowed = (videoModel ? clipDurationsFor(videoModel) : void 0) ?? [...SEEDANCE_DURATIONS].sort((a, b) => a - b);
|
|
362
|
+
const wanted = Math.max(spoken, SPOKEN_CLIP_DURATION_S);
|
|
363
|
+
return allowed.find((d) => d >= wanted) ?? allowed[allowed.length - 1];
|
|
364
|
+
}
|
|
365
|
+
var BRAND_PLATE = "A solid flat brand colour plate \u2014 an end card. No people, no objects, no scenery, no text of any kind.";
|
|
366
|
+
function endCardWanted(spec) {
|
|
367
|
+
if (spec.end_card === false) return false;
|
|
368
|
+
return Boolean(spec.brand?.name || spec.brand?.logo);
|
|
369
|
+
}
|
|
370
|
+
function endCardCta(spec) {
|
|
371
|
+
if (!endCardWanted(spec)) return null;
|
|
372
|
+
const declared = spec.end_card === false ? void 0 : spec.end_card?.cta?.trim();
|
|
373
|
+
if (!declared) return null;
|
|
374
|
+
const closing = (spec.beats[spec.beats.length - 1]?.say ?? "").trim().toLowerCase();
|
|
375
|
+
return declared.toLowerCase().replace(/[.!?]$/, "") === closing.replace(/[.!?]$/, "") ? null : declared;
|
|
376
|
+
}
|
|
377
|
+
var AD_CAST_ID = "customer";
|
|
378
|
+
var AD_NARRATOR_ID = "ad_narrator";
|
|
379
|
+
var AD_SET_ID = "set";
|
|
380
|
+
function castedAvatarOnRoster(ad, roster) {
|
|
381
|
+
if (ad.cast?.avatar) return null;
|
|
382
|
+
const haystack = [ad.cast?.description ?? "", ...(ad.beats ?? []).map((b) => b.show ?? "")].join(" ");
|
|
383
|
+
if (!haystack.trim()) return null;
|
|
384
|
+
const written = new Set(haystack.split(/[^\p{L}\p{N}]+/u).filter(Boolean));
|
|
385
|
+
for (const person of roster) {
|
|
386
|
+
if (labelWrittenAsName(person.name, written) || labelWrittenAsName(person.handle, written)) return person.handle;
|
|
387
|
+
}
|
|
388
|
+
return null;
|
|
389
|
+
}
|
|
390
|
+
function labelWrittenAsName(label, written) {
|
|
391
|
+
const token = label.trim();
|
|
392
|
+
if (!token || token.includes("-") || token.length < 3) return false;
|
|
393
|
+
const folded = token.toLowerCase();
|
|
394
|
+
for (const word of written) {
|
|
395
|
+
if (word.toLowerCase() === folded && word[0] === word[0]?.toUpperCase()) return true;
|
|
396
|
+
}
|
|
397
|
+
return false;
|
|
398
|
+
}
|
|
399
|
+
function adSpecCastElements(spec, avatar) {
|
|
400
|
+
const lastIndex = spec.beats.length - 1;
|
|
401
|
+
const speakingScenes = spec.beats.map((_, i) => i).filter((i) => !(endCardWanted(spec) && i === lastIndex));
|
|
402
|
+
const place = spec.set?.description?.trim();
|
|
403
|
+
const elements = [];
|
|
404
|
+
if (place && speakingScenes.length > 0) {
|
|
405
|
+
elements.push({
|
|
406
|
+
type: "location",
|
|
407
|
+
label: AD_SET_ID,
|
|
408
|
+
cast_id: AD_SET_ID,
|
|
409
|
+
description: place,
|
|
410
|
+
scenes: speakingScenes,
|
|
411
|
+
...spec.set?.image?.trim() ? { source_image: spec.set.image.trim() } : {}
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
const description = (avatar?.subjectDescription ?? spec.cast?.description)?.trim();
|
|
415
|
+
if (!description) return elements;
|
|
416
|
+
const scenes = spec.beats.map((beat, i) => ({ beat, i })).filter(({ beat, i }) => beat.cast !== false && !(endCardWanted(spec) && i === lastIndex)).map(({ i }) => i);
|
|
417
|
+
if (scenes.length === 0) return elements;
|
|
418
|
+
const sheet = avatar?.sheetUrl?.trim();
|
|
419
|
+
elements.push({
|
|
420
|
+
type: "person",
|
|
421
|
+
label: AD_CAST_ID,
|
|
422
|
+
// Same id the dialogue names as speaker: that pairing is what lets the engine see
|
|
423
|
+
// the presenter as present in a scene and route it to native audio.
|
|
424
|
+
cast_id: AD_CAST_ID,
|
|
425
|
+
description,
|
|
426
|
+
scenes,
|
|
427
|
+
// An avatar's identity sheet IS the turnaround the engine would otherwise render,
|
|
428
|
+
// so it is handed over as one. Left unmarked, the run paid to generate a sheet OF
|
|
429
|
+
// a sheet and every frame grounded on the copy instead of the avatar.
|
|
430
|
+
...sheet ? { source_image: sheet, source_is_sheet: true } : {}
|
|
431
|
+
});
|
|
432
|
+
return elements;
|
|
433
|
+
}
|
|
434
|
+
function motionPrompt(beat, toCamera, isClosingCard, place) {
|
|
435
|
+
if (isClosingCard) return BRAND_PLATE;
|
|
436
|
+
const shot = `${beat.show}${place}`;
|
|
437
|
+
if (toCamera) return shot;
|
|
438
|
+
return `${shot} Nobody in frame is speaking: mouths CLOSED and STILL throughout, no talking, no lip movement. Whoever is in shot is looking, reacting or working \u2014 never addressing the camera.`;
|
|
439
|
+
}
|
|
440
|
+
function staticTranscript(spec, videoModel) {
|
|
441
|
+
const out = [];
|
|
442
|
+
let clock = 0;
|
|
443
|
+
for (const beat of spec.beats) {
|
|
444
|
+
const duration = beatSeconds(beat.say, videoModel);
|
|
445
|
+
const words = beat.say.trim().split(/\s+/).filter(Boolean);
|
|
446
|
+
const each = words.length > 0 ? duration / words.length : duration;
|
|
447
|
+
words.forEach((text, i) => {
|
|
448
|
+
const start = clock + i * each;
|
|
449
|
+
out.push({
|
|
450
|
+
text,
|
|
451
|
+
start: Math.round(start * 100) / 100,
|
|
452
|
+
end: Math.round((start + each) * 100) / 100
|
|
453
|
+
});
|
|
454
|
+
});
|
|
455
|
+
clock += duration;
|
|
456
|
+
}
|
|
457
|
+
return out;
|
|
458
|
+
}
|
|
459
|
+
function spokenVariety(avatarAccent, market) {
|
|
460
|
+
const accent = avatarAccent?.trim();
|
|
461
|
+
if (accent) return `${accent} \u2014 perform the pronunciation of that region, not a neutral one`;
|
|
462
|
+
if (!market) return null;
|
|
463
|
+
return `the local accent of ${market} \u2014 the way people there actually speak, not a neighbouring country's variety of the same language`;
|
|
464
|
+
}
|
|
465
|
+
function musicBed(spec) {
|
|
466
|
+
if (spec.music === false) return null;
|
|
467
|
+
if (typeof spec.music === "string") return spec.music;
|
|
468
|
+
return "A soft, warm instrumental bed that sits well under a spoken voiceover: gentle acoustic guitar or soft piano with light pads, steady and unobtrusive, no vocals, no lyrics, no drop, no build to a climax, nothing that pulls attention off the voice.";
|
|
469
|
+
}
|
|
470
|
+
function beatToCamera(spec, beat, isClosingCard) {
|
|
471
|
+
if (isClosingCard) return false;
|
|
472
|
+
if (spec.cast?.avatar && beat.cast !== false) return true;
|
|
473
|
+
if (beat.on_camera !== void 0) return beat.on_camera;
|
|
474
|
+
return Boolean(spec.cast) && beat.cast !== false;
|
|
475
|
+
}
|
|
476
|
+
function beatsIntroducingSpeakerOffCamera(spec, reading) {
|
|
477
|
+
const closesOnCard = endCardWanted(spec);
|
|
478
|
+
const last = spec.beats.length - 1;
|
|
479
|
+
return spec.beats.flatMap(
|
|
480
|
+
(beat, i) => reading.introducesSpeaker[i] === true && !beatToCamera(spec, beat, closesOnCard && i === last) ? [i] : []
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
function beatSpeaksNatively(spec, beat, isClosingCard) {
|
|
484
|
+
if (!spec.cast || spec.voiceover === false) return false;
|
|
485
|
+
return beatToCamera(spec, beat, isClosingCard) && beat.cast !== false;
|
|
486
|
+
}
|
|
487
|
+
function beatDialogue(spec, beat, window) {
|
|
488
|
+
if (spec.voiceover === false) return [];
|
|
489
|
+
const narrator = narratorVoice(spec, window.avatarVoice);
|
|
490
|
+
return [
|
|
491
|
+
{
|
|
492
|
+
line: beat.say,
|
|
493
|
+
start_s: window.start,
|
|
494
|
+
end_s: window.end,
|
|
495
|
+
// Always stated, never left to the engine: absent, it guesses from who is in frame,
|
|
496
|
+
// which is how a still photograph once got lip-synced.
|
|
497
|
+
on_camera: beatToCamera(spec, beat, window.isClosingCard),
|
|
498
|
+
// Naming the CAST as speaker is the other half of what sends this beat down the
|
|
499
|
+
// native path. Left unnamed, the speaker defaults to "voiceover" — a narrator, who is
|
|
500
|
+
// by definition never on camera — so every beat took the dubbed path: a clip generated
|
|
501
|
+
// with one mouth and a separate ElevenLabs track laid over it. That is the mismatch
|
|
502
|
+
// behind every "the mouth does not match" in this ad's history.
|
|
503
|
+
//
|
|
504
|
+
// A beat that is NOT hers names the ad's OWN narrator (`AD_NARRATOR_ID`), rather
|
|
505
|
+
// than leaving the label off. A different speaker is what breaks the phrase, and a
|
|
506
|
+
// phrase break is what keeps each beat its own clip: left unlabelled, the engine read
|
|
507
|
+
// the cutaway as her narrating over an insert in one continuous take and merged the
|
|
508
|
+
// beats around it into a single native read with the dubbed one laid on top.
|
|
509
|
+
speaker: window.nativeSpeech ? AD_CAST_ID : AD_NARRATOR_ID,
|
|
510
|
+
// The narrator is cast from the ad's voice, and failing that from the CAST's own
|
|
511
|
+
// description. Naming a speaker of our own cost this: the engine casts an unnamed
|
|
512
|
+
// narrator by folding it into the lone presenter and reusing her casting, so the
|
|
513
|
+
// closing line inherited her persona for free. Named, it is a speaker in nobody's
|
|
514
|
+
// `cast`, and the engine's last-resort description for one of those is the literal
|
|
515
|
+
// "<speaker> voice" — so an ad with an avatar, a closing card and no `voice`
|
|
516
|
+
// (a perfectly ordinary spec) had its closing tagline cast off the words
|
|
517
|
+
// "ad_narrator voice".
|
|
518
|
+
...narrator ? { voice_description: narrator } : {}
|
|
519
|
+
}
|
|
520
|
+
];
|
|
521
|
+
}
|
|
522
|
+
function narratorVoice(spec, avatarVoice) {
|
|
523
|
+
return spec.voice?.description?.trim() || avatarVoice?.trim() || spec.cast?.description?.trim() || void 0;
|
|
524
|
+
}
|
|
525
|
+
function nativeSpeechByBeat(spec, closesOnCard) {
|
|
526
|
+
const last = spec.beats.length - 1;
|
|
527
|
+
return spec.beats.map((beat, i) => beatSpeaksNatively(spec, beat, closesOnCard && i === last));
|
|
528
|
+
}
|
|
529
|
+
function voiceoverMode(spec, nativeByBeat, closesOnCard) {
|
|
530
|
+
if (spec.voiceover === false) return "none";
|
|
531
|
+
const spoken = closesOnCard ? nativeByBeat.slice(0, -1) : nativeByBeat;
|
|
532
|
+
const native = spoken.filter(Boolean).length;
|
|
533
|
+
if (native === 0) return "voiceover";
|
|
534
|
+
return native === spoken.length ? "on_camera" : "mixed";
|
|
535
|
+
}
|
|
536
|
+
function castRole(spec, reading) {
|
|
537
|
+
if (!spec.cast) return void 0;
|
|
538
|
+
const described = spec.cast.description?.trim();
|
|
539
|
+
if (!described) return "a customer telling their own story, not a worker";
|
|
540
|
+
if (reading?.castWorksThere === false) return `${described} \u2014 a customer telling their own story, not a worker`;
|
|
541
|
+
return described;
|
|
542
|
+
}
|
|
543
|
+
function adSpecToBlueprint(spec, opts = {}) {
|
|
544
|
+
const avatarAccent = opts.avatarAccent;
|
|
545
|
+
const total = spec.beats.length;
|
|
546
|
+
const market = marketFor(spec, opts.definitionLanguage);
|
|
547
|
+
const place = market ? ` Set in ${market}: the architecture, streets and styling are ${market}'s.` : "";
|
|
548
|
+
const currency = market ? currencyFor(market) : void 0;
|
|
549
|
+
const physics = frameRealismDirection({ currency, role: castRole(spec, opts.reading) });
|
|
550
|
+
const closesOnCard = endCardWanted(spec);
|
|
551
|
+
const nativeByBeat = nativeSpeechByBeat(spec, closesOnCard);
|
|
552
|
+
const spokenMode = voiceoverMode(spec, nativeByBeat, closesOnCard);
|
|
553
|
+
let clock = 0;
|
|
554
|
+
const scenes = spec.beats.map((beat, i) => {
|
|
555
|
+
const isClosingCard = closesOnCard && i === total - 1;
|
|
556
|
+
const duration = beatSeconds(beat.say, opts.videoModel);
|
|
557
|
+
const start = clock;
|
|
558
|
+
clock += duration;
|
|
559
|
+
return {
|
|
560
|
+
start_s: Math.round(start * 100) / 100,
|
|
561
|
+
end_s: Math.round(clock * 100) / 100,
|
|
562
|
+
duration_s: duration,
|
|
563
|
+
summary: isClosingCard ? `${BRAND_PLATE} ${beat.say}` : beat.say,
|
|
564
|
+
narrative_role: authoredRole(i, total),
|
|
565
|
+
...isClosingCard ? { route_hint: "brand_card" } : {},
|
|
566
|
+
// The read is built from per-scene dialogue, not from the global
|
|
567
|
+
// transcript: emitting only the transcript scaffolds a SILENT ad. And
|
|
568
|
+
// `on_camera` is the engine's own switch for "this line is narration" —
|
|
569
|
+
// absent, it guesses from who is in frame, which is how a still photograph
|
|
570
|
+
// once got lip-synced.
|
|
571
|
+
// No dialogue at all when nobody speaks: an empty array is what stops the engine
|
|
572
|
+
// wiring a voice track, and no voice track is what makes this a music-led ad
|
|
573
|
+
// rather than one with a silent narrator.
|
|
574
|
+
// One effect per beat, placed on this beat's window. The engine clamps the
|
|
575
|
+
// length to what the provider accepts. An ad emitted none of these until now,
|
|
576
|
+
// so every one shipped with a music bed and no sound design at all.
|
|
577
|
+
...beat.sound?.trim() ? { sfx: [{ sound_effect_prompt: beat.sound.trim(), duration_s: Math.min(duration, 30) }] } : {},
|
|
578
|
+
dialogue: beatDialogue(spec, beat, {
|
|
579
|
+
start: Math.round(start * 100) / 100,
|
|
580
|
+
end: Math.round(clock * 100) / 100,
|
|
581
|
+
isClosingCard,
|
|
582
|
+
nativeSpeech: nativeByBeat[i] === true,
|
|
583
|
+
avatarVoice: opts.avatarVoice
|
|
584
|
+
}),
|
|
585
|
+
motion_prompt: motionPrompt(beat, beatToCamera(spec, beat, isClosingCard), isClosingCard, place),
|
|
586
|
+
start_frame_prompt: isClosingCard ? BRAND_PLATE : `${beat.show}${place}${physics}`
|
|
587
|
+
};
|
|
588
|
+
});
|
|
589
|
+
const accent = spokenVariety(avatarAccent, market);
|
|
590
|
+
const narrator = narratorVoice(spec, opts.avatarVoice);
|
|
591
|
+
const music = musicBed(spec);
|
|
592
|
+
return {
|
|
593
|
+
estimated_duration_s: Math.round(clock * 100) / 100,
|
|
594
|
+
global: {
|
|
595
|
+
transcript: spec.beats.map((b) => b.say).join(" "),
|
|
596
|
+
// Resolved: `marketFor` also reads the country a declared regional language names.
|
|
597
|
+
...market ? { market } : {},
|
|
598
|
+
voiceover: {
|
|
599
|
+
mode: spokenMode,
|
|
600
|
+
...accent ? { accent } : {},
|
|
601
|
+
...narrator ? { voice_description: narrator } : {}
|
|
602
|
+
},
|
|
603
|
+
...spec.cast ? {
|
|
604
|
+
cast: [
|
|
605
|
+
{
|
|
606
|
+
id: AD_CAST_ID,
|
|
607
|
+
description: (spec.cast.description ?? "the ad's recurring person").trim()
|
|
608
|
+
}
|
|
609
|
+
]
|
|
610
|
+
} : {},
|
|
611
|
+
...spec.brand?.name || spec.brand?.logo ? {
|
|
612
|
+
branding: {
|
|
613
|
+
...spec.brand?.name ? { name: spec.brand.name } : {},
|
|
614
|
+
...spec.brand?.logo ? { logo_path: spec.brand.logo } : {}
|
|
615
|
+
}
|
|
616
|
+
} : {},
|
|
617
|
+
...spec.brand?.palette?.length ? { style: { palette: spec.brand.palette.map((hex) => ({ hex })) } } : {},
|
|
618
|
+
...music ? { music: { music_prompt: music } } : {}
|
|
619
|
+
},
|
|
620
|
+
scenes
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
var MIN_BEAT_WORDS = 4;
|
|
624
|
+
function beatsTooShortToPlay(spec) {
|
|
625
|
+
return spec.beats.map((beat, i) => ({ i, words: beat.say.trim().split(/\s+/).filter(Boolean).length })).filter(({ words }) => words < MIN_BEAT_WORDS).map(({ i }) => i + 1);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
// src/engine/scaffold/ad-spec-reading.ts
|
|
629
|
+
var INTRODUCES_SPEAKER_HELD = 0.5;
|
|
630
|
+
var WANTS_LEGIBLE_TEXT_HELD = 0.5;
|
|
631
|
+
var WORKS_THERE_HELD = 0.5;
|
|
632
|
+
var INTRODUCES_SPEAKER = 'Does the speaker of `line` introduce themselves, saying their own name or who they are ("Hi, I\'m Marta")? A line about somebody else, or a first-person line that names nobody, is not.';
|
|
633
|
+
var WANTS_LEGIBLE_TEXT = "Does `brief` ask for words, a number, a price or a figure in the picture to be readable (in focus, legible, highlighted, the point of the shot)? A document, screen or sign that is only present, out of focus or not meant to be read is not.";
|
|
634
|
+
var WORKS_THERE = "Does `person` describe someone who works for the business in the ad (an installer, a technician, an employee, a doctor, a chef, its founder or owner, its team) rather than a customer or an ordinary person?";
|
|
635
|
+
function adSpecVoices(spec, avatarVoice) {
|
|
636
|
+
const all = [spec.voice?.description, avatarVoice, spec.cast?.description].map((d) => d?.trim() ?? "");
|
|
637
|
+
return [...new Set(all.filter(Boolean))];
|
|
638
|
+
}
|
|
639
|
+
function unreadAdSpec(spec) {
|
|
640
|
+
return {
|
|
641
|
+
introducesSpeaker: spec.beats.map(() => false),
|
|
642
|
+
wantsLegibleText: spec.beats.map(() => false),
|
|
643
|
+
voiceGenders: {},
|
|
644
|
+
captionCarriesOn: [],
|
|
645
|
+
read: false
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
var yes = (answer, held) => answer !== void 0 && "noul" in answer && answer.noul >= held;
|
|
649
|
+
async function readAdSpec(spec, options, readers) {
|
|
650
|
+
const lines = spec.beats.map((b) => b.say);
|
|
651
|
+
const castDescription = spec.cast?.description?.trim();
|
|
652
|
+
const carries = carriesOnQuestions(lines);
|
|
653
|
+
const sections = [
|
|
654
|
+
{ name: "language", questions: options.askLanguage ? [languageQuestion(lines)] : [] },
|
|
655
|
+
{
|
|
656
|
+
name: "intro",
|
|
657
|
+
questions: lines.map((line) => ({ type: "noul", instructions: { line, question: INTRODUCES_SPEAKER } }))
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
name: "legible",
|
|
661
|
+
questions: spec.beats.map((b) => ({
|
|
662
|
+
type: "noul",
|
|
663
|
+
instructions: { brief: b.show, question: WANTS_LEGIBLE_TEXT }
|
|
664
|
+
}))
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: "works",
|
|
668
|
+
questions: castDescription ? [{ type: "noul", instructions: { person: castDescription, question: WORKS_THERE } }] : []
|
|
669
|
+
},
|
|
670
|
+
{ name: "carries", questions: carries.questions }
|
|
671
|
+
];
|
|
672
|
+
const [answers, genders] = await Promise.all([
|
|
673
|
+
readers.ask(sections.flatMap((s) => s.questions)),
|
|
674
|
+
readers.genders(options.voices).catch(() => null)
|
|
675
|
+
]);
|
|
676
|
+
const voiceGenders = genders ?? {};
|
|
677
|
+
if (!answers) return { ...unreadAdSpec(spec), voiceGenders };
|
|
678
|
+
const bySection = /* @__PURE__ */ new Map();
|
|
679
|
+
let at = 0;
|
|
680
|
+
for (const section of sections) {
|
|
681
|
+
bySection.set(section.name, answers.slice(at, at + section.questions.length));
|
|
682
|
+
at += section.questions.length;
|
|
683
|
+
}
|
|
684
|
+
const of = (name) => bySection.get(name) ?? [];
|
|
685
|
+
const scriptLanguage = languageFromAnswer(of("language")[0]);
|
|
686
|
+
const works = of("works")[0];
|
|
687
|
+
return {
|
|
688
|
+
...scriptLanguage ? { scriptLanguage } : {},
|
|
689
|
+
introducesSpeaker: lines.map((_, i) => yes(of("intro")[i], INTRODUCES_SPEAKER_HELD)),
|
|
690
|
+
wantsLegibleText: spec.beats.map((_, i) => yes(of("legible")[i], WANTS_LEGIBLE_TEXT_HELD)),
|
|
691
|
+
...works && "noul" in works ? { castWorksThere: works.noul >= WORKS_THERE_HELD } : {},
|
|
692
|
+
voiceGenders,
|
|
693
|
+
captionCarriesOn: carriesOnFromAnswers(carries.words, of("carries")),
|
|
694
|
+
read: true
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
// src/engine/scaffold/ad-display-face.ts
|
|
699
|
+
var AD_DISPLAY_FAMILY = "AdDisplay";
|
|
700
|
+
function displayFontStack(face) {
|
|
701
|
+
const fallback = "'Arial Black', 'Helvetica Neue', Arial, sans-serif";
|
|
702
|
+
return face ? `'${face}', ${fallback}` : fallback;
|
|
703
|
+
}
|
|
704
|
+
function adDisplayFaceCss(file) {
|
|
705
|
+
return [
|
|
706
|
+
" /* --- the brand's face (baker canvas scaffold-ad) --- */",
|
|
707
|
+
` @font-face { font-family: '${AD_DISPLAY_FAMILY}'; src: url('./${file}'); font-weight: 100 900; font-display: block; }`,
|
|
708
|
+
` .caption-group { font-family: ${displayFontStack(AD_DISPLAY_FAMILY)}; }`
|
|
709
|
+
].join("\n");
|
|
710
|
+
}
|
|
711
|
+
function injectAdDisplayFace(indexHtml, file) {
|
|
712
|
+
return indexHtml.replace(" </style>", `${adDisplayFaceCss(file)}
|
|
713
|
+
</style>`);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
// src/engine/scaffold/ad-layer-placement.ts
|
|
717
|
+
var CAPTION_MIN_LIFT = 0.1;
|
|
718
|
+
function adLayerPlacement(aspect) {
|
|
719
|
+
const safe = videoSafeArea(aspect);
|
|
720
|
+
return {
|
|
721
|
+
caption: { bottom: Math.max(safe.bottom, CAPTION_MIN_LIFT), side: Math.max(safe.left, safe.right) },
|
|
722
|
+
mark: { top: safe.top, left: safe.left },
|
|
723
|
+
card: safe
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
var cssPct = (fraction) => `${Math.round(fraction * 1e3) / 10}%`;
|
|
727
|
+
function adCaptionPlacementCss(aspect) {
|
|
728
|
+
const { caption } = adLayerPlacement(aspect);
|
|
729
|
+
return [
|
|
730
|
+
" /* --- caption placement (baker canvas scaffold-ad) --- */",
|
|
731
|
+
" /* Relative to the frame and inside what the platform leaves clear: Reels covers the",
|
|
732
|
+
" bottom 35% of a 9:16 frame, and cards drawn at the old 320px sat under it. */",
|
|
733
|
+
` .caption-container { bottom: ${cssPct(caption.bottom)}; padding: 0 ${cssPct(caption.side)}; }`,
|
|
734
|
+
` .caption-group { bottom: 0; max-width: ${cssPct(1 - 2 * caption.side)}; }`
|
|
735
|
+
].join("\n");
|
|
736
|
+
}
|
|
737
|
+
function injectAdCaptionPlacement(indexHtml, aspect) {
|
|
738
|
+
return indexHtml.replace(" </style>", `${adCaptionPlacementCss(aspect)}
|
|
739
|
+
</style>`);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
// src/engine/scaffold/ad-brand-overlay.ts
|
|
743
|
+
var markFallback = (name) => name.trim() ? ` onerror="this.replaceWith(Object.assign(document.createElement('span'),{className:this.className+' brand-wordmark',textContent:${escapeHtml(JSON.stringify(name.trim()))}}))"` : "";
|
|
744
|
+
function buildAdBrandOverlay(opts) {
|
|
745
|
+
const { logo, cta, cardAtS, cardDurationS, totalS } = opts;
|
|
746
|
+
if (!logo && !cta?.trim()) return "";
|
|
747
|
+
const inkClass = opts.markIsLight ? " on-dark" : "";
|
|
748
|
+
const parts = [
|
|
749
|
+
"<!-- Brand layer, emitted by `baker canvas scaffold-ad`. The mark and the closing",
|
|
750
|
+
" card are drawn HERE, by the composition \u2014 never generated as a picture, because",
|
|
751
|
+
" a video model garbles a wordmark every time. Restyle freely, but keep the",
|
|
752
|
+
" data-start/data-dur attributes and the script below: that script is what shows",
|
|
753
|
+
" and hides these, and the host composition has nothing that would. -->"
|
|
754
|
+
];
|
|
755
|
+
if (logo) {
|
|
756
|
+
parts.push(
|
|
757
|
+
`<img class="clip brand-mark${inkClass}" src="${escapeHtml(logo.file)}" alt="${escapeHtml(logo.alt)}" data-start="0" data-dur="${totalS}"${markFallback(logo.alt)} />`
|
|
758
|
+
);
|
|
759
|
+
}
|
|
760
|
+
const cardBits = [];
|
|
761
|
+
if (logo) {
|
|
762
|
+
cardBits.push(
|
|
763
|
+
`<img class="endcard-logo${inkClass}" src="${escapeHtml(logo.file)}" alt="${escapeHtml(logo.alt)}"${markFallback(logo.alt)} />`
|
|
764
|
+
);
|
|
765
|
+
}
|
|
766
|
+
if (cta?.trim()) {
|
|
767
|
+
cardBits.push(
|
|
768
|
+
`<div class="endcard-cta${opts.plateIsDark ? " on-dark-plate" : ""}">${escapeHtml(cta.trim())}</div>`
|
|
769
|
+
);
|
|
770
|
+
}
|
|
771
|
+
parts.push(
|
|
772
|
+
`<div class="clip endcard" data-start="${cardAtS}" data-dur="${cardDurationS}" data-role="cta">`,
|
|
773
|
+
...cardBits.map((b) => ` ${b}`),
|
|
774
|
+
"</div>",
|
|
775
|
+
brandLayerDriver()
|
|
776
|
+
);
|
|
777
|
+
return parts.join("\n");
|
|
778
|
+
}
|
|
779
|
+
function brandLayerDriver() {
|
|
780
|
+
return [
|
|
781
|
+
"<script>",
|
|
782
|
+
" (function () {",
|
|
783
|
+
" var els = Array.prototype.slice.call(document.querySelectorAll('.brand-mark, .endcard'));",
|
|
784
|
+
" if (!els.length) return;",
|
|
785
|
+
" els.forEach(function (el) { gsap.set(el, { visibility: 'hidden' }); });",
|
|
786
|
+
" var card = document.querySelector('.endcard');",
|
|
787
|
+
" var captions = document.getElementById('captions');",
|
|
788
|
+
" function attach(tl) {",
|
|
789
|
+
" if (!tl) return;",
|
|
790
|
+
" els.forEach(function (el) {",
|
|
791
|
+
" var at = parseFloat(el.getAttribute('data-start') || '0') || 0;",
|
|
792
|
+
" var dur = parseFloat(el.getAttribute('data-dur') || '0') || 0;",
|
|
793
|
+
" tl.set(el, { visibility: 'visible' }, at);",
|
|
794
|
+
" if (dur > 0) tl.set(el, { visibility: 'hidden' }, at + dur);",
|
|
795
|
+
" });",
|
|
796
|
+
" // The closing card owns the frame it lands on. The caption track otherwise",
|
|
797
|
+
" // keeps running underneath it, and what it captions there is the line spoken",
|
|
798
|
+
" // OVER the card \u2014 the call to action, printed a second time in smaller letters",
|
|
799
|
+
" // directly below the button that already says it. Hidden on the CONTAINER and",
|
|
800
|
+
" // with `display`, because each caption group sets its own `visibility: visible`",
|
|
801
|
+
" // and would win against anything set on its parent.",
|
|
802
|
+
" if (card && captions) {",
|
|
803
|
+
" var cardAt = parseFloat(card.getAttribute('data-start') || '0') || 0;",
|
|
804
|
+
" var cardDur = parseFloat(card.getAttribute('data-dur') || '0') || 0;",
|
|
805
|
+
" tl.set(captions, { display: 'none' }, cardAt);",
|
|
806
|
+
" if (cardDur > 0) tl.set(captions, { display: '' }, cardAt + cardDur);",
|
|
807
|
+
" }",
|
|
808
|
+
" }",
|
|
809
|
+
" var store = window.__timelines || {};",
|
|
810
|
+
" var main = store.main;",
|
|
811
|
+
" if (main) { attach(main); return; }",
|
|
812
|
+
" Object.defineProperty(store, 'main', {",
|
|
813
|
+
" configurable: true,",
|
|
814
|
+
" get: function () { return main; },",
|
|
815
|
+
" set: function (tl) { main = tl; attach(tl); },",
|
|
816
|
+
" });",
|
|
817
|
+
" window.__timelines = store;",
|
|
818
|
+
" })();",
|
|
819
|
+
"</script>"
|
|
820
|
+
].join("\n");
|
|
821
|
+
}
|
|
822
|
+
function adBrandOverlayCss(opts = {}) {
|
|
823
|
+
const { mark, card } = adLayerPlacement(opts.aspect ?? "9:16");
|
|
824
|
+
return [
|
|
825
|
+
" /* --- brand layer (baker canvas scaffold-ad) --- */",
|
|
826
|
+
" /* Positioned by this block alone. The composition that actually renders an ad",
|
|
827
|
+
" is the caption track, which has no .pos-* helpers \u2014 relying on them put the",
|
|
828
|
+
" brand layer in a file nothing opens and shipped an empty green end plate. */",
|
|
829
|
+
" /* Height-led, not width-led. Pinned to 220px WIDE, a wordmark whose SVG",
|
|
830
|
+
" viewBox is wider than it is tall rendered clipped \u2014 the first real ad drew",
|
|
831
|
+
" `greenlea`. Constraining the height and letting the width follow keeps any",
|
|
832
|
+
" aspect ratio whole, and the max-width stops a very wide mark spanning the frame. */",
|
|
833
|
+
" /* A LIGHT panel behind the mark by DEFAULT. A brand mark is usually drawn to sit",
|
|
834
|
+
" on white \u2014 the first one here was #1D5D47 on transparent \u2014 so a dark backing hid",
|
|
835
|
+
" it on the corner and the brand-coloured closing plate erased it completely: the",
|
|
836
|
+
" end card came out as an empty green frame with a single leaf floating in it. A",
|
|
837
|
+
" near-white panel is the background most marks in a brand kit are designed",
|
|
838
|
+
" against; the ones that are not get `.on-dark` below. */",
|
|
839
|
+
" /* Placed in percentages inside the frame's safe area (`adLayerPlacement`): at a fixed",
|
|
840
|
+
" 90px from the top it sat under the Stories and Reels header on every 9:16 ad. */",
|
|
841
|
+
` .brand-mark { position: absolute; top: ${cssPct(mark.top)}; left: ${cssPct(mark.left)}; height: 52px; width: auto;`,
|
|
842
|
+
" max-width: 420px; object-fit: contain; padding: 14px 22px; border-radius: 18px;",
|
|
843
|
+
" background: rgba(255,255,255,0.94);",
|
|
844
|
+
" filter: drop-shadow(0 3px 10px rgba(0,0,0,0.35)); }",
|
|
845
|
+
" /* Centred in the safe area, not the frame, so the mark and the call to action stay",
|
|
846
|
+
" clear of the chrome on a 9:16 closing card. */",
|
|
847
|
+
` .endcard { position: absolute; top: ${cssPct(card.top)}; bottom: ${cssPct(card.bottom)}; left: ${cssPct(card.left)}; right: ${cssPct(card.right)};`,
|
|
848
|
+
" display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px;",
|
|
849
|
+
" text-align: center; }",
|
|
850
|
+
" /* Sized to FILL, not merely bounded. Given only max-* constraints an SVG",
|
|
851
|
+
" renders at its own intrinsic size, and a small viewBox drew a closing mark",
|
|
852
|
+
" a few dozen pixels tall in the middle of a 1080px frame. */",
|
|
853
|
+
" .endcard-logo { width: 62%; height: auto; max-height: 300px; object-fit: contain;",
|
|
854
|
+
" padding: 46px 56px; border-radius: 40px; background: rgba(255,255,255,0.96);",
|
|
855
|
+
" box-shadow: 0 10px 40px rgba(0,0,0,0.28); }",
|
|
856
|
+
" /* A mark whose own ink is LIGHT gets the opposite panel. The near-white panel",
|
|
857
|
+
" above is right for the mark a brand kit usually ships \u2014 drawn to sit on white",
|
|
858
|
+
" \u2014 and it erases the one it does not: a client's white `logo-dark.svg` rendered",
|
|
859
|
+
" as an empty white box in the corner, and again 300px tall on the closing card.",
|
|
860
|
+
" Which one a mark is gets MEASURED off the file (`markInkIsLight`), never read",
|
|
861
|
+
" off its name: `logo-dark` names the background it is for in one brand kit and",
|
|
862
|
+
" the ink itself in the next. */",
|
|
863
|
+
" .brand-mark.on-dark, .endcard-logo.on-dark { background: rgba(16,20,18,0.92); }",
|
|
864
|
+
" /* The name, when the mark itself could not be drawn. */",
|
|
865
|
+
` .brand-wordmark { display: inline-block; font-family: ${displayFontStack(opts.face)};`,
|
|
866
|
+
" font-weight: 900; color: #14231b; letter-spacing: -0.01em; }",
|
|
867
|
+
" .brand-mark.brand-wordmark { font-size: 34px; line-height: 1; height: auto; }",
|
|
868
|
+
" .endcard-logo.brand-wordmark { font-size: 96px; line-height: 1; width: auto; }",
|
|
869
|
+
" /* Capped and wrapping, not sized to its content: measured in a real browser,",
|
|
870
|
+
" `GET YOUR FREE QUOTE` renders 948px wide against a 1080px canvas, so the next",
|
|
871
|
+
" slightly longer call to action runs off the frame. Two lines beat an edge. */",
|
|
872
|
+
" /* The SAME family the caption track uses, and only names the compiler maps.",
|
|
873
|
+
" Declaring one matters \u2014 rendered without it the call to action inherited the",
|
|
874
|
+
" document default and came out in Times beside sans-serif captions. But the",
|
|
875
|
+
" first attempt led with 'BrandFont', which the overlay composition defines and",
|
|
876
|
+
" the caption composition does not: HyperFrames refuses an unmapped family and",
|
|
877
|
+
" the whole render died with `No deterministic font mapping for: BrandFont`. */",
|
|
878
|
+
" /* The button is the OPPOSITE of the plate it sits on. Filling it with the brand",
|
|
879
|
+
" colour made it invisible \u2014 the plate is filled with that same colour, so the",
|
|
880
|
+
" button was brand-on-brand and its white copy read as another caption line \u2014",
|
|
881
|
+
" and a fixed near-black fill is that defect mirrored, on the black plate an ad",
|
|
882
|
+
" with no palette gets. The plate carries the brand; the button carries the",
|
|
883
|
+
" contrast. Light copy on the near-black default, dark copy on the light one. */",
|
|
884
|
+
` .endcard-cta { font-family: ${displayFontStack(opts.face)};`,
|
|
885
|
+
" font-size: 64px; font-weight: 900; text-transform: uppercase;",
|
|
886
|
+
" letter-spacing: 0.01em; color: #fff; padding: 28px 58px; border-radius: 56px;",
|
|
887
|
+
" max-width: 900px; line-height: 1.15; background: rgba(0,0,0,0.82); }",
|
|
888
|
+
" .endcard-cta.on-dark-plate { background: rgba(255,255,255,0.96); color: #14231b; }"
|
|
889
|
+
].join("\n");
|
|
890
|
+
}
|
|
891
|
+
function injectAdBrandOverlay(indexHtml, overlayHtml, style = {}) {
|
|
892
|
+
if (!overlayHtml.trim()) return indexHtml;
|
|
893
|
+
const withCss = indexHtml.replace(" </style>", `${adBrandOverlayCss(style)}
|
|
894
|
+
</style>`);
|
|
895
|
+
if (withCss.includes("<!--OVERLAYS-->")) return withCss.replace("<!--OVERLAYS-->", () => overlayHtml);
|
|
896
|
+
const rootClose = withCss.lastIndexOf("</div>");
|
|
897
|
+
if (rootClose === -1) return withCss;
|
|
898
|
+
return `${withCss.slice(0, rootClose)}${overlayHtml}
|
|
899
|
+
${withCss.slice(rootClose)}`;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
// src/commands/canvas/scaffold-ad.ts
|
|
903
|
+
function pinnedOnAvatar(handle, model) {
|
|
904
|
+
const hint = pinnedModelHint({ avatar: handle ?? void 0, model, generateAudio: true });
|
|
905
|
+
return hint ? [hint] : [];
|
|
906
|
+
}
|
|
907
|
+
var AD_SPEC_FILE = "ad.spec.json";
|
|
908
|
+
registerSchema({
|
|
909
|
+
command: "canvas.scaffold-ad",
|
|
910
|
+
description: "Build a captioned vertical ad from a WRITTEN SPEC \u2014 no reference video. Start here when someone asks for an ad, a promo or a UGC-style clip and there is nothing to copy: `scaffold-video` reproduces a video you already have, this one writes a new one. You supply a spec of BEATS, and a beat is one line the voice says plus one shot the viewer sees while it is said. Everything else \u2014 the read, the caption cards, the clips, the music, the render \u2014 is derived from that pair, so the ad cannot drift out of sync with itself.",
|
|
911
|
+
args: {
|
|
912
|
+
spec: {
|
|
913
|
+
type: "string",
|
|
914
|
+
required: true,
|
|
915
|
+
description: 'Path to the ad spec JSON. Shape: { format?, market?, brand?, cast?, end_card?, voice?, music?, beats: [{ say, show, on_camera?, cast? }] }. Fill `brand` from src/brand/BRAND.md \u2014 `palette` (its hex tokens, most important first) and `logo` (the repo path to the mark) are what make the ad look like the client rather than like stock. `market` is where the ad is set ("Mexico"); omitted, it is the country of a regional `voice.language` ("es-MX"), else nowhere \u2014 a language alone names no country, and an ad with no place is what fills a Spanish ad with British houses. `voice.language` is a BCP-47 tag; omitted, the language is read off the `say` lines. `say` is one clause ending in its own punctuation \u2014 it becomes a caption card verbatim, so two sentences in one beat produce a card holding both. `show` is the shot brief for that line. Set `on_camera` only when that beat\'s subject talks to camera. A beat\'s `sound` is one sound effect for that shot, and most beats should not have one. Add it only where the picture shows a specific physical event the viewer expects to hear (a drill tightening a bolt, a door closing, rain on glass, a graphic snapping in). On a talking head or a calm lifestyle shot it reads as a stock sting, and one per beat turns a quiet ad into a noisy one. A music bed plus two well-placed effects beats eight. `voiceover: false` makes it a MUSIC-LED ad: nobody speaks, the `say` lines become on-screen text captioned straight from the script, and it needs `music`. `cast` is WHO the ad is about, and an ad with people in it needs one: `{ "avatar": "marta" }` names a cast avatar (`baker avatars list`) and every beat is grounded on that avatar\'s identity sheet with its subject description copied verbatim \u2014 the same face here as in the rest of the company\'s work. Without it each beat invents its own stranger, which is how one 28-second ad came back with five different men playing one customer. `{ "description": "..." }` invents a realistic person for this one ad: a candid portrait is generated from the description and every beat grounds on it. Use an avatar only when the same actor must recur across ads. A beat sets `cast: false` for a shot they are not in. `end_card` is on by default whenever `brand` is set: the last beat becomes a flat brand plate with the mark and a call to action drawn over it. `{ "cta": "..." }` sets the button copy \u2014 there is no default, so with no `cta` the card carries the mark alone, and a `cta` repeating the closing line is dropped rather than printed twice. `false` keeps the footage.'
|
|
916
|
+
},
|
|
917
|
+
avatar: {
|
|
918
|
+
type: "string",
|
|
919
|
+
required: false,
|
|
920
|
+
description: "Cast this avatar as the ad's recurring person \u2014 the same flag, the same word and the same meaning as on `baker studio generate` and `baker studio animate`. Every beat they appear in is grounded on their identity sheet and their subject description is copied verbatim, so it is one face throughout and the same face as the rest of the company's work. Overrides `cast.avatar` in the spec. `baker avatars list` shows who there is."
|
|
921
|
+
},
|
|
922
|
+
"no-brand": {
|
|
923
|
+
type: "boolean",
|
|
924
|
+
description: "Build the ad with no brand layer at all: no logo and no closing card. For an ad they asked to keep plain. A missing logo does not need it: with no mark in src/brand/logos/ the ad is built without the corner mark and the hints say how to add one. Never draw a stand-in mark.",
|
|
925
|
+
required: false,
|
|
926
|
+
default: false
|
|
927
|
+
},
|
|
928
|
+
"video-model": {
|
|
929
|
+
type: "string",
|
|
930
|
+
required: false,
|
|
931
|
+
description: "Curated video model id for the shots. Only for comparing models on one brief.",
|
|
932
|
+
enum: [...VIDEO_GENERATE_MODELS]
|
|
933
|
+
},
|
|
934
|
+
platforms: {
|
|
935
|
+
type: "string",
|
|
936
|
+
required: false,
|
|
937
|
+
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."
|
|
938
|
+
},
|
|
939
|
+
slug: {
|
|
940
|
+
type: "string",
|
|
941
|
+
required: false,
|
|
942
|
+
description: "Creative slug \u2014 writes to src/creatives/<slug>/<slug>.canvas.json"
|
|
943
|
+
},
|
|
944
|
+
out: {
|
|
945
|
+
type: "string",
|
|
946
|
+
required: false,
|
|
947
|
+
description: "Output canvas path (default <spec-dir>/<name>.canvas.json)"
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
function avatarVoiceBrief(avatar) {
|
|
952
|
+
if (!avatar) return void 0;
|
|
953
|
+
const parts = [avatar.subjectDescription, avatar.profile?.persona, avatar.profile?.speech].map((p) => p?.trim()).filter((p) => Boolean(p));
|
|
954
|
+
return parts.length > 0 ? parts.join("; ") : void 0;
|
|
955
|
+
}
|
|
956
|
+
var scaffoldAdCommand = defineCommand({
|
|
957
|
+
meta: {
|
|
958
|
+
name: "scaffold-ad",
|
|
959
|
+
description: 'Build a captioned vertical ad from a written spec, with no reference video to copy.\n\nA spec is a list of BEATS. One beat = one line the voice says + one shot on screen while it is said. That pairing is what keeps the ad honest: the caption card IS the line, so it can never end mid-sentence, and the picture can never drift from the read.\n\nTwo rules the spec enforces for you, both learned the expensive way:\n \u2022 `say` is one clause with its own punctuation. Two sentences in a beat is rejected.\n \u2022 Nobody in shot is speaking unless you set `on_camera` on that beat. A person visibly talking under a voice that is not theirs reads as bad dubbing.\n\nExample spec:\n { "beats": [\n { "say": "Mientras t\xFA sigues pagando la luz a precio de oro,", "show": "Aerial over Spanish rooftops at golden hour." },\n { "say": "Haz clic en el enlace y reserva tu estudio gratuito.", "show": "A couple walking home at sunset." } ] }\n\nWho is in it:\n `cast: { avatar: "marta" }` grounds every beat on that avatar\'s face \u2014 cast one with `baker avatars`.\n Without a cast, each beat invents its own person and the ad reads as a stock-footage collage.\n\nHow it ends: with a `brand`, the last beat closes on a flat brand plate carrying the mark and the CTA.\n\nThen: baker canvas run <the canvas it writes>'
|
|
960
|
+
},
|
|
961
|
+
args: {
|
|
962
|
+
spec: { type: "string", required: true, description: "Path to the ad spec JSON" },
|
|
963
|
+
avatar: { type: "string", required: false, description: "Cast this avatar as the ad's recurring person \u2014 the same flag, the same word and the same meaning as on `baker studio generate` and `baker studio animate`. Every beat they appear in is grounded on their identity sheet and their subject description is copied verbatim, so it is one face throughout and the same face as the rest of the company's work. Overrides `cast.avatar` in the spec. `baker avatars list` shows who there is." },
|
|
964
|
+
"video-model": {
|
|
965
|
+
type: "string",
|
|
966
|
+
required: false,
|
|
967
|
+
description: "Which curated video model renders the shots. Defaults to the one the lane picks; pass this only to compare models on the same brief, because mixing models across a campaign changes how the same face reads. `baker canvas catalog --node video_generate` lists what each one takes."
|
|
968
|
+
},
|
|
969
|
+
"no-brand": {
|
|
970
|
+
type: "boolean",
|
|
971
|
+
required: false,
|
|
972
|
+
default: false,
|
|
973
|
+
description: "Build the ad with no brand layer at all: no logo and no closing card. For an ad they asked to keep plain. A missing logo does not need it: the ad is then built without the corner mark."
|
|
974
|
+
},
|
|
975
|
+
platforms: {
|
|
976
|
+
type: "string",
|
|
977
|
+
required: false,
|
|
978
|
+
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."
|
|
979
|
+
},
|
|
980
|
+
slug: {
|
|
981
|
+
type: "string",
|
|
982
|
+
required: false,
|
|
983
|
+
description: "Creative slug \u2014 writes to src/creatives/<slug>/<slug>.canvas.json"
|
|
984
|
+
},
|
|
985
|
+
out: { type: "string", required: false, description: "Output canvas path" }
|
|
986
|
+
},
|
|
987
|
+
async run({ args }) {
|
|
988
|
+
const specPath = args.spec;
|
|
989
|
+
let parsed;
|
|
990
|
+
try {
|
|
991
|
+
parsed = JSON.parse(await readFile(specPath, "utf-8"));
|
|
992
|
+
} catch (e) {
|
|
993
|
+
writeJson({
|
|
994
|
+
ok: false,
|
|
995
|
+
error: {
|
|
996
|
+
code: "VALIDATION_ERROR",
|
|
997
|
+
message: `Could not read the ad spec at ${specPath}: ${e instanceof Error ? e.message : String(e)}`,
|
|
998
|
+
fix: "Write the spec first \u2014 a JSON file with a `beats` array, each beat holding `say` (one clause) and `show` (the shot)."
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
process.exit(1);
|
|
1002
|
+
return;
|
|
1003
|
+
}
|
|
1004
|
+
const spec = AdSpec.safeParse(parsed);
|
|
1005
|
+
if (!spec.success) {
|
|
1006
|
+
writeJson({
|
|
1007
|
+
ok: false,
|
|
1008
|
+
error: {
|
|
1009
|
+
code: "VALIDATION_ERROR",
|
|
1010
|
+
message: `That ad spec is not usable: ${spec.error.issues.map((i) => `${i.path.join(".")}: ${i.message}`).join("; ")}`,
|
|
1011
|
+
fix: "A beat is ONE line and ONE shot. If a beat holds two sentences, split it into two beats \u2014 the line becomes a caption card verbatim, and a card holding two sentences is the defect this refuses."
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
process.exit(1);
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
const flagAvatar = args.avatar?.trim();
|
|
1018
|
+
if (flagAvatar) {
|
|
1019
|
+
spec.data.cast = { ...spec.data.cast, avatar: flagAvatar };
|
|
1020
|
+
}
|
|
1021
|
+
let autoCast = null;
|
|
1022
|
+
if (!flagAvatar && !spec.data.cast?.avatar) {
|
|
1023
|
+
const roster = await readAvatars(
|
|
1024
|
+
"/api/avatars",
|
|
1025
|
+
{ status: "ready" }
|
|
1026
|
+
).catch(() => null);
|
|
1027
|
+
const named = roster ? castedAvatarOnRoster(spec.data, roster.avatars) : null;
|
|
1028
|
+
if (named) {
|
|
1029
|
+
spec.data.cast = { ...spec.data.cast, avatar: named };
|
|
1030
|
+
autoCast = named;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
const specArtifact = structuredClone(spec.data);
|
|
1034
|
+
if (spec.data.set?.description && !spec.data.set.image?.trim()) {
|
|
1035
|
+
writeJson({
|
|
1036
|
+
ok: false,
|
|
1037
|
+
error: {
|
|
1038
|
+
code: "VALIDATION_ERROR",
|
|
1039
|
+
message: "This ad names a recurring place but gives no picture of it. A location sheet is fused from a real image; with nothing to fuse there is no sheet, and every shot invents the room again.",
|
|
1040
|
+
// Names `studio generate`, which is the command that exists — `baker images`
|
|
1041
|
+
// finds and ingests pictures, it does not make them, so the line this used to
|
|
1042
|
+
// print could not be run. No `--model` either: the lane already defaults to the
|
|
1043
|
+
// curated image model, and the one named here was the legacy id the picker now
|
|
1044
|
+
// offers to nobody.
|
|
1045
|
+
fix: `Make the plate once, then pass it: \`baker studio generate "${spec.data.set.description}"\`, then put its url in the spec as \`"set": { "description": "\u2026", "image": "<url>" }\`. Drop \`set\` entirely if the ad does not keep returning to one place.`
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
process.exit(1);
|
|
1049
|
+
return;
|
|
1050
|
+
}
|
|
1051
|
+
const requestedModel = args["video-model"]?.trim();
|
|
1052
|
+
if (requestedModel && !VIDEO_GENERATE_MODELS.includes(requestedModel)) {
|
|
1053
|
+
writeJson({
|
|
1054
|
+
ok: false,
|
|
1055
|
+
error: {
|
|
1056
|
+
code: "VALIDATION_ERROR",
|
|
1057
|
+
message: `\`${requestedModel}\` is not one of the curated video models.`,
|
|
1058
|
+
fix: `Pick one of: ${VIDEO_GENERATE_MODELS.join(", ")}. Leave --video-model off to use the default.`
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
process.exit(1);
|
|
1062
|
+
return;
|
|
1063
|
+
}
|
|
1064
|
+
const chosenVideoModel = requestedModel ?? DEFAULT_VIDEO_GENERATE_MODEL;
|
|
1065
|
+
const handle = flagAvatar || spec.data.cast?.avatar?.trim();
|
|
1066
|
+
let avatar = null;
|
|
1067
|
+
let avatarError = null;
|
|
1068
|
+
if (handle) {
|
|
1069
|
+
try {
|
|
1070
|
+
avatar = await readAvatars(
|
|
1071
|
+
"/api/avatars/get",
|
|
1072
|
+
{ handle, full: "true" }
|
|
1073
|
+
);
|
|
1074
|
+
if (avatar?.status && avatar.status !== "ready") {
|
|
1075
|
+
avatarError = `Avatar \`${handle}\` is ${avatar.status}, not ready \u2014 only a ready avatar can be cast. Check \`baker avatars get ${handle}\`.`;
|
|
1076
|
+
avatar = null;
|
|
1077
|
+
} else if (!avatar?.sheetUrl) {
|
|
1078
|
+
avatarError = `Avatar \`${handle}\` has no identity sheet yet, so the ad cannot ground on their face.`;
|
|
1079
|
+
avatar = null;
|
|
1080
|
+
}
|
|
1081
|
+
} catch (e) {
|
|
1082
|
+
avatarError = `Could not read avatar \`${handle}\`: ${e instanceof Error ? e.message : String(e)}. \`baker avatars list\` shows who there is.`;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
if (avatarError && !spec.data.cast?.description?.trim()) {
|
|
1086
|
+
writeJson({
|
|
1087
|
+
ok: false,
|
|
1088
|
+
error: {
|
|
1089
|
+
code: "VALIDATION_ERROR",
|
|
1090
|
+
message: avatarError,
|
|
1091
|
+
fix: `This ad casts \`${handle}\` and describes nobody else, so without them every shot renders a person nobody chose. Wait for the avatar and re-run \u2014 \`baker avatars get ${handle} --wait\` returns the moment it is ready \u2014 or cast someone who is (\`baker avatars list\`). To build it with an invented person instead, put a written description in \`cast.description\`.`
|
|
1092
|
+
}
|
|
1093
|
+
});
|
|
1094
|
+
process.exit(1);
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
const fromWorkspace = await readBrandFromWorkspace();
|
|
1098
|
+
const filledLogo = !spec.data.brand?.logo && fromWorkspace.logo ? fromWorkspace.logo : void 0;
|
|
1099
|
+
const filledPalette = !spec.data.brand?.palette?.length && fromWorkspace.palette?.length ? fromWorkspace.palette : void 0;
|
|
1100
|
+
if (filledLogo || filledPalette) {
|
|
1101
|
+
spec.data.brand = {
|
|
1102
|
+
...spec.data.brand,
|
|
1103
|
+
...filledLogo ? { logo: filledLogo } : {},
|
|
1104
|
+
...filledPalette ? { palette: filledPalette } : {}
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
const resolvedLogo = spec.data.brand?.logo?.trim();
|
|
1108
|
+
const logoExists = resolvedLogo ? await stat(resolvedLogo).then(() => true, () => false) : false;
|
|
1109
|
+
const noBrand = Boolean(args["no-brand"]);
|
|
1110
|
+
const fetched = !logoExists && !noBrand ? await fetchClientLogo() : null;
|
|
1111
|
+
if (fetched?.ok) {
|
|
1112
|
+
spec.data.brand = { ...spec.data.brand, logo: fetched.path };
|
|
1113
|
+
}
|
|
1114
|
+
const haveLogo = logoExists || fetched?.ok === true;
|
|
1115
|
+
if (!haveLogo && spec.data.brand?.logo) {
|
|
1116
|
+
const { logo: _missing, ...rest } = spec.data.brand;
|
|
1117
|
+
spec.data.brand = rest;
|
|
1118
|
+
}
|
|
1119
|
+
const noLogoHint = !haveLogo && !noBrand ? [
|
|
1120
|
+
`This ad has no logo on screen: ${resolvedLogo ? `the mark at \`${resolvedLogo}\` does not exist` : `there is no mark in \`${BRAND_DIR}/logos/\``}. ${fetched && !fetched.ok ? `${fetched.reason} ` : ""}Meta still shows the page name and picture above it, so it can run as it is; say in your reply that it has no logo. To add the client's logo, put the file their designer delivered in \`${BRAND_DIR}/logos/\` and re-run this command. Never draw one.`
|
|
1121
|
+
] : [];
|
|
1122
|
+
const markPath = spec.data.brand?.logo?.trim();
|
|
1123
|
+
if (!noBrand && markPath?.toLowerCase().endsWith(".svg")) {
|
|
1124
|
+
const svg = await readFile(markPath, "utf-8").catch(() => null);
|
|
1125
|
+
if (svg === null) {
|
|
1126
|
+
writeJson({
|
|
1127
|
+
ok: false,
|
|
1128
|
+
error: {
|
|
1129
|
+
code: "VALIDATION_ERROR",
|
|
1130
|
+
message: `The brand mark at \`${markPath}\` could not be read, so there is no way to tell whether it is a real logo or a typed stand-in. An ad is not shipped on a mark nobody could open.`,
|
|
1131
|
+
fix: `Check the file is there and readable, or put the client's logo in \`${BRAND_DIR}/logos/\` \u2014 the file their designer delivered \u2014 an outlined SVG, or the PNG they gave you.`
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
process.exit(1);
|
|
1135
|
+
return;
|
|
1136
|
+
}
|
|
1137
|
+
if (svgIsLiveText(svg)) {
|
|
1138
|
+
writeJson({
|
|
1139
|
+
ok: false,
|
|
1140
|
+
error: {
|
|
1141
|
+
code: "VALIDATION_ERROR",
|
|
1142
|
+
message: `The mark at \`${markPath}\` draws its wordmark with live \`<text>\`, not outlines. That is a typed stand-in, not a logo: it renders in whatever font the machine happens to have, and the one that shipped this way came out reading "greenle\xE1" in every frame.`,
|
|
1143
|
+
fix: `Ask the client for their real logo file and put it in \`${BRAND_DIR}/logos/\` \u2014 the one their designer delivered, as an outlined SVG or a PNG they gave you. Do not redraw it, and do not export this file to PNG: rasterising it only bakes the invented letters into pixels, where nothing downstream can tell they are wrong.`
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
process.exit(1);
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
if (!noBrand && markPath && !await markIsReal(markPath)) {
|
|
1151
|
+
writeJson({
|
|
1152
|
+
ok: false,
|
|
1153
|
+
error: {
|
|
1154
|
+
code: "VALIDATION_ERROR",
|
|
1155
|
+
message: `There is no real logo in \`${BRAND_DIR}/logos/\` \u2014 what is there is a typed stand-in, whose wordmark is drawn as live text in a font the renderer does not have. An ad built on it wears letters the machine invented, and converting it to a PNG only bakes them in.`,
|
|
1156
|
+
fix: `Ask the client for their actual logo file and put it in \`${BRAND_DIR}/logos/\` \u2014 the one their designer delivered, as an outlined SVG or a PNG they gave you. Do not redraw it and do not export the stand-in to another format.`
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
process.exit(1);
|
|
1160
|
+
return;
|
|
1161
|
+
}
|
|
1162
|
+
if (handle) {
|
|
1163
|
+
const names = [handle, avatar?.name].filter((value) => Boolean(value));
|
|
1164
|
+
spec.data.beats = spec.data.beats.map((beat) => ({ ...beat, show: withoutCastName(beat.show, names) }));
|
|
1165
|
+
if (spec.data.cast?.description) {
|
|
1166
|
+
spec.data.cast = { ...spec.data.cast, description: withoutCastName(spec.data.cast.description, names) };
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
const avatarVoice = avatarVoiceBrief(avatar);
|
|
1170
|
+
if (noBrand || !haveLogo && !endCardCta(spec.data)) spec.data.end_card = false;
|
|
1171
|
+
const slug = args.slug ?? path.basename(specPath).replace(/\.[^.]+$/, "");
|
|
1172
|
+
const outPath = args.out ?? (args.slug ? path.join("src/creatives", slug, `${slug}.canvas.json`) : path.join(path.dirname(specPath), `${slug}.canvas.json`));
|
|
1173
|
+
const definitionLanguage = parseDefinitionStrategyFields(
|
|
1174
|
+
await readFile(path.join(path.dirname(outPath), "_definition.md"), "utf8").catch(() => "")
|
|
1175
|
+
).language;
|
|
1176
|
+
const cacheDir = path.join(findWorkspaceRoot(path.dirname(path.resolve(outPath))) ?? process.cwd(), "canvas", ".cache");
|
|
1177
|
+
const spent = [];
|
|
1178
|
+
const reading = await readAdSpec(
|
|
1179
|
+
spec.data,
|
|
1180
|
+
{
|
|
1181
|
+
voices: adSpecVoices(spec.data, avatarVoice),
|
|
1182
|
+
askLanguage: !spokenLanguageFor(spec.data, { definitionLanguage })
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
ask: cachedJev(cacheDir, (questions) => askJevQuestions(questions, (u) => spent.push(u))),
|
|
1186
|
+
genders: voiceGenderModel(cacheDir, (u) => spent.push(u))
|
|
1187
|
+
}
|
|
1188
|
+
);
|
|
1189
|
+
await holdUnbilledSpend(cacheDir, spent).catch(() => {
|
|
1190
|
+
});
|
|
1191
|
+
const contradicts = spec.data.beats.flatMap((beat, i) => reading.wantsLegibleText[i] ? [{ i, show: beat.show }] : []);
|
|
1192
|
+
if (contradicts.length > 0) {
|
|
1193
|
+
writeJson({
|
|
1194
|
+
ok: false,
|
|
1195
|
+
error: {
|
|
1196
|
+
code: "VALIDATION_ERROR",
|
|
1197
|
+
message: `Beat ${contradicts.map(({ i }) => i + 1).join(", ")} asks the picture for a readable figure (e.g. "${contradicts[0]?.show.trim().slice(0, 90)}"). Every frame also carries "no readable text or numbers", so the two fight and the picture wins \u2014 one such brief rendered a bill reading $58,085.00 over a total of $139.00.`,
|
|
1198
|
+
fix: "Say what the shot LOOKS like, not what it reads: 'a bill in her hands, her face falling'. The ad's numbers belong in the `say` line, where the caption track renders them correctly."
|
|
1199
|
+
}
|
|
1200
|
+
});
|
|
1201
|
+
process.exit(1);
|
|
1202
|
+
return;
|
|
1203
|
+
}
|
|
1204
|
+
const introducesOffCamera = beatsIntroducingSpeakerOffCamera(spec.data, reading);
|
|
1205
|
+
const firstIntro = introducesOffCamera[0];
|
|
1206
|
+
if (firstIntro !== void 0) {
|
|
1207
|
+
const line = (spec.data.beats[firstIntro]?.say ?? "").trim();
|
|
1208
|
+
writeJson({
|
|
1209
|
+
ok: false,
|
|
1210
|
+
error: {
|
|
1211
|
+
code: "VALIDATION_ERROR",
|
|
1212
|
+
message: `Beat ${firstIntro + 1} says "${line}" \u2014 the speaker introducing themselves \u2014 but nobody is on camera saying it. A voice from off screen introducing the person standing in shot reads as a mistake, the same way a moving mouth under someone else's voice does.`,
|
|
1213
|
+
fix: 'Either set `on_camera: true` on that beat so they say it themselves \u2014 which needs the avatar to have their own accent \u2014 or rewrite the line as narration about them rather than by them: "Marta instal\xF3 placas en nueve d\xEDas", not "Hola, soy Marta".'
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
process.exit(1);
|
|
1217
|
+
return;
|
|
1218
|
+
}
|
|
1219
|
+
const spokenLanguage2 = spokenLanguageFor(spec.data, { definitionLanguage, reading });
|
|
1220
|
+
const blueprint = adSpecToBlueprint(spec.data, {
|
|
1221
|
+
avatarAccent: avatar?.profile?.accent,
|
|
1222
|
+
videoModel: chosenVideoModel,
|
|
1223
|
+
...avatarVoice ? { avatarVoice } : {},
|
|
1224
|
+
...definitionLanguage ? { definitionLanguage } : {},
|
|
1225
|
+
reading
|
|
1226
|
+
});
|
|
1227
|
+
let outAr;
|
|
1228
|
+
try {
|
|
1229
|
+
outAr = resolveAspect(void 0, spec.data.format.aspect_ratio, genAspectsFor(chosenVideoModel)).outAr;
|
|
1230
|
+
} catch (e) {
|
|
1231
|
+
writeJson({
|
|
1232
|
+
ok: false,
|
|
1233
|
+
error: {
|
|
1234
|
+
code: "VALIDATION_ERROR",
|
|
1235
|
+
message: e instanceof Error ? e.message : String(e),
|
|
1236
|
+
fix: 'Set `format.aspect_ratio` to one of the ratios the message lists, e.g. "9:16" for Reels and Stories or "4:5" for the feed.'
|
|
1237
|
+
}
|
|
1238
|
+
});
|
|
1239
|
+
process.exit(1);
|
|
1240
|
+
return;
|
|
1241
|
+
}
|
|
1242
|
+
const outDims = canvasDims(outAr);
|
|
1243
|
+
const outDir = path.dirname(outPath);
|
|
1244
|
+
await mkdir(outDir, { recursive: true });
|
|
1245
|
+
const compositionDest = path.join(outDir, "video-overlay-composition");
|
|
1246
|
+
const captionsDest = path.join(outDir, "tiktok-captions-composition");
|
|
1247
|
+
await cp(SHIPPED_OVERLAY_COMPOSITION_DIR, compositionDest, { recursive: true });
|
|
1248
|
+
await cp(SHIPPED_CAPTIONS_DIR, captionsDest, { recursive: true });
|
|
1249
|
+
await stampCompositionDims(compositionDest, outDims);
|
|
1250
|
+
await stampCompositionDims(captionsDest, outDims);
|
|
1251
|
+
const captionsIndex = path.join(captionsDest, "index.html");
|
|
1252
|
+
await writeFile(captionsIndex, injectAdCaptionPlacement(await readFile(captionsIndex, "utf-8"), outAr), "utf-8");
|
|
1253
|
+
const face = await stageBrandDisplayFace(outDir, captionsDest);
|
|
1254
|
+
if (face) {
|
|
1255
|
+
await writeFile(captionsIndex, injectAdDisplayFace(await readFile(captionsIndex, "utf-8"), face.file), "utf-8");
|
|
1256
|
+
}
|
|
1257
|
+
const blueprintPath = path.join(outDir, "prompt.json");
|
|
1258
|
+
const blueprintStylePath = path.join(outDir, "prompt.style.json");
|
|
1259
|
+
await writeSceneFiles(outDir, blueprint);
|
|
1260
|
+
await writeFile(blueprintStylePath, renderStyleProjectionFromValue(blueprint), "utf8");
|
|
1261
|
+
await writeFile(path.join(outDir, AD_SPEC_FILE), `${JSON.stringify(specArtifact, null, 2)}
|
|
1262
|
+
`, "utf8");
|
|
1263
|
+
const logoPath = noBrand ? void 0 : spec.data.brand?.logo?.trim();
|
|
1264
|
+
const transcriptPath = path.join(outDir, "transcript.json");
|
|
1265
|
+
if (spec.data.voiceover === false) {
|
|
1266
|
+
await writeFile(transcriptPath, `${JSON.stringify(staticTranscript(spec.data, chosenVideoModel), null, 2)}
|
|
1267
|
+
`, "utf-8");
|
|
1268
|
+
}
|
|
1269
|
+
const opts = {
|
|
1270
|
+
imageModel: AD_IMAGE_MODEL,
|
|
1271
|
+
// The frames' model cannot make the sheet: `image_reference_sheet` registers only
|
|
1272
|
+
// the Gemini image models, and a sheet asked of gpt-image is an `unknown_model` node
|
|
1273
|
+
// that stops the whole canvas. The same sheet model every other scaffold uses.
|
|
1274
|
+
sheetModel: ACTOR_SHEET_MODEL,
|
|
1275
|
+
videoModel: chosenVideoModel,
|
|
1276
|
+
overlayCompositionPath: path.relative(outDir, compositionDest),
|
|
1277
|
+
captionsCompositionPath: path.relative(outDir, captionsDest),
|
|
1278
|
+
blueprintPath: path.relative(outDir, blueprintPath),
|
|
1279
|
+
blueprintStylePath: path.relative(outDir, blueprintStylePath),
|
|
1280
|
+
aspect: spec.data.format.aspect_ratio,
|
|
1281
|
+
resolution: spec.data.format.resolution,
|
|
1282
|
+
// A beat is one clause and one card, so the cap has to clear a whole clause.
|
|
1283
|
+
// The composition's default of 3 is TikTok karaoke styling; applied to an ad
|
|
1284
|
+
// it overrode the clause rule on every line and rendered "IS STANDARD. WE".
|
|
1285
|
+
// 8 is the composition's own maximum and clears every beat measured here.
|
|
1286
|
+
captionWordsPerGroup: 8,
|
|
1287
|
+
// The `say` lines are the copy the viewer reads, so they are what the captions print;
|
|
1288
|
+
// the transcription of the voice track only times them.
|
|
1289
|
+
captionsFromScript: true,
|
|
1290
|
+
// Declared, or read off the lines by Jev; never off the voice description.
|
|
1291
|
+
...spokenLanguage2 ? { spokenLanguage: spokenLanguage2 } : {},
|
|
1292
|
+
voiceGenders: reading.voiceGenders,
|
|
1293
|
+
...reading.captionCarriesOn.length ? { captionCarriesOn: reading.captionCarriesOn } : {},
|
|
1294
|
+
// The avatar's ACCENT reaches the clip through the blueprint (`avatarAccent` above,
|
|
1295
|
+
// baked into `global.voiceover.accent`), not a pinned voice. A pinned voice was
|
|
1296
|
+
// removed on purpose (ADR 0005): the re-voice is speech-to-speech, so it replaces
|
|
1297
|
+
// timbre and keeps the pronunciation it is handed. The clip speaks in the voice the
|
|
1298
|
+
// video model renders, and the region is directed in the prompt.
|
|
1299
|
+
//
|
|
1300
|
+
// Same decision, one step further: with an avatar on camera the clip's own voice is
|
|
1301
|
+
// kept, not re-voiced. The re-voice is the speech-to-speech route ADR 0005 measured
|
|
1302
|
+
// and rejected — it would swap the voice that matches the mouth and the directed
|
|
1303
|
+
// region for one cast off an English stock list. Only the on-camera voice; a
|
|
1304
|
+
// voiceover read has no rendered voice to keep and is still cast.
|
|
1305
|
+
//
|
|
1306
|
+
// The KNOWN RISK this carries, recorded here because it is decided here: keeping the
|
|
1307
|
+
// rendered voice also means no pass unifies her beats, and each beat is its own
|
|
1308
|
+
// generation, so nothing guarantees two of them sound like the same person. The
|
|
1309
|
+
// reference image fixes the face; nothing fixes the voice. Measured on a finished
|
|
1310
|
+
// three-beat ad (her, a cutaway, her): median speaking pitch 210.5 Hz and 216.2 Hz,
|
|
1311
|
+
// near-identical spreads — the same voice as far as pitch can say — and the two
|
|
1312
|
+
// extracts were then listened to side by side and judged to be the same person. Not
|
|
1313
|
+
// proof for every ad: one listener, one ad, and pitch is one dimension of a voice.
|
|
1314
|
+
//
|
|
1315
|
+
// If it does show up, the fix is not to drop `keepRenderedVoice` — that brings back
|
|
1316
|
+
// the stock voice this exists to avoid. It is to convert the LATER extracts onto the
|
|
1317
|
+
// first beat of the same speaker, which keeps a voice the clip really produced.
|
|
1318
|
+
...avatar ? { keepRenderedVoice: true } : {},
|
|
1319
|
+
...spec.data.voiceover === false ? { staticTranscriptPath: path.relative(outDir, transcriptPath) } : {}
|
|
1320
|
+
};
|
|
1321
|
+
const canvas = scaffoldVideoCanvas(blueprint, adSpecCastElements(spec.data, avatar), opts);
|
|
1322
|
+
const renderNode = canvas.nodes.find((n) => n.type === "hyperframe_render");
|
|
1323
|
+
const renderedDir = renderNode ? path.join(outDir, String(renderNode.params?.composition ?? "")) : null;
|
|
1324
|
+
let staged = null;
|
|
1325
|
+
let markIsLight = false;
|
|
1326
|
+
if (logoPath && renderedDir) {
|
|
1327
|
+
const ext = path.extname(logoPath) || ".png";
|
|
1328
|
+
try {
|
|
1329
|
+
await copyFile(logoPath, path.join(renderedDir, `brand-mark${ext}`));
|
|
1330
|
+
staged = { file: `brand-mark${ext}`, alt: spec.data.brand?.name ?? "brand" };
|
|
1331
|
+
markIsLight = await markInkIsLight(logoPath);
|
|
1332
|
+
} catch {
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
const closing = blueprint.scenes[blueprint.scenes.length - 1];
|
|
1336
|
+
const overlayHtml = !noBrand && endCardWanted(spec.data) && closing && renderedDir ? buildAdBrandOverlay({
|
|
1337
|
+
logo: staged,
|
|
1338
|
+
cta: endCardCta(spec.data),
|
|
1339
|
+
cardAtS: closing.start_s,
|
|
1340
|
+
cardDurationS: closing.duration_s,
|
|
1341
|
+
totalS: blueprint.estimated_duration_s,
|
|
1342
|
+
markIsLight,
|
|
1343
|
+
// The card's button is coloured against the plate the engine will fill from
|
|
1344
|
+
// this same palette — including the black plate an ad with no palette gets.
|
|
1345
|
+
plateIsDark: plateIsDark(spec.data.brand?.palette)
|
|
1346
|
+
}) : "";
|
|
1347
|
+
if (overlayHtml && renderedDir) {
|
|
1348
|
+
const indexPath = path.join(renderedDir, "index.html");
|
|
1349
|
+
const html = await readFile(indexPath, "utf-8");
|
|
1350
|
+
await writeFile(indexPath, injectAdBrandOverlay(html, overlayHtml, { aspect: outAr, ...face ? { face: AD_DISPLAY_FAMILY } : {} }), "utf-8");
|
|
1351
|
+
}
|
|
1352
|
+
await writeFile(
|
|
1353
|
+
path.join(outDir, REBUILD_FILE),
|
|
1354
|
+
`${JSON.stringify({ elements: adSpecCastElements(spec.data, avatar), opts }, null, 2)}
|
|
1355
|
+
`,
|
|
1356
|
+
"utf8"
|
|
1357
|
+
);
|
|
1358
|
+
const validation = await validateCanvasDeep(resolveRelativeCanvasPaths(canvas, outDir), defaultRegistry());
|
|
1359
|
+
if (!validation.ok) {
|
|
1360
|
+
const meta = canvas.metadata;
|
|
1361
|
+
meta.todo = { ...meta.todo ?? {}, blocking_validation_issues: validation.issues };
|
|
1362
|
+
}
|
|
1363
|
+
await writeFile(outPath, `${JSON.stringify(canvas, null, 2)}
|
|
1364
|
+
`, "utf-8");
|
|
1365
|
+
if (!validation.ok) {
|
|
1366
|
+
process.stderr.write(
|
|
1367
|
+
`${JSON.stringify(
|
|
1368
|
+
{
|
|
1369
|
+
ok: false,
|
|
1370
|
+
error: { code: "validation", issues: validation.issues },
|
|
1371
|
+
canvas_path: outPath,
|
|
1372
|
+
note: "The canvas WAS written despite the blocking issue(s). Fix the spec and re-run this command, or fix them in place, then `baker canvas validate` before running."
|
|
1373
|
+
},
|
|
1374
|
+
null,
|
|
1375
|
+
2
|
|
1376
|
+
)}
|
|
1377
|
+
`
|
|
1378
|
+
);
|
|
1379
|
+
process.exit(2);
|
|
1380
|
+
return;
|
|
1381
|
+
}
|
|
1382
|
+
if (args.slug) {
|
|
1383
|
+
const definitionPath = path.join(outDir, "_definition.md");
|
|
1384
|
+
const definitionExists = await stat(definitionPath).then(() => true, () => false);
|
|
1385
|
+
if (!definitionExists) {
|
|
1386
|
+
await writeFile(
|
|
1387
|
+
definitionPath,
|
|
1388
|
+
buildCreativeDefinition({
|
|
1389
|
+
title: titleFromSlug(slug),
|
|
1390
|
+
kind: "video",
|
|
1391
|
+
...definitionPlatformsOf(args.platforms ? String(args.platforms) : void 0, void 0),
|
|
1392
|
+
formats: resolveFormats(spec.data.format.aspect_ratio),
|
|
1393
|
+
description: spec.data.beats.map((beat) => beat.say.trim()).join(" ")
|
|
1394
|
+
}),
|
|
1395
|
+
"utf8"
|
|
1396
|
+
);
|
|
1397
|
+
}
|
|
1398
|
+
await syncCreativeDefinitionBestEffort({
|
|
1399
|
+
slug,
|
|
1400
|
+
title: titleFromSlug(slug),
|
|
1401
|
+
...await readDefinitionPlatforms(outPath),
|
|
1402
|
+
formats: [spec.data.format.aspect_ratio],
|
|
1403
|
+
canvas,
|
|
1404
|
+
sourceSha: await computeSourceSha(outPath)
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
writeJson({
|
|
1408
|
+
ok: true,
|
|
1409
|
+
data: { canvas: outPath, beats: spec.data.beats.length, slug },
|
|
1410
|
+
hints: [
|
|
1411
|
+
// Before anything else: a beat too short to play is a beat to merge, and it is
|
|
1412
|
+
// free to fix here and expensive to discover in a finished ad.
|
|
1413
|
+
...shortBeatHint(beatsTooShortToPlay(spec.data), spec.data.beats.length),
|
|
1414
|
+
...noLogoHint,
|
|
1415
|
+
...face ? [`The captions and the closing button are set in the brand's face: ${face.label}.`] : [],
|
|
1416
|
+
...noBrand ? [
|
|
1417
|
+
"Built with NO brand mark and no closing card, because you passed --no-brand. Say that in your reply: the user is getting an unbranded ad and should know it, not discover it. When they do have a logo, put it in `src/brand/logos/` and re-run without the flag."
|
|
1418
|
+
] : [],
|
|
1419
|
+
// Same reasoning as `studio animate`: a cast avatar that speaks routes to the
|
|
1420
|
+
// default model on purpose, and pinning one discards that silently. An ad's
|
|
1421
|
+
// beats always speak, so there is no silent case to exclude here.
|
|
1422
|
+
...pinnedOnAvatar(handle, requestedModel),
|
|
1423
|
+
// `--until frames` on anything carrying a face or a mark, because that is where
|
|
1424
|
+
// getting it wrong is expensive: the pictures cost a fraction of the clips, and
|
|
1425
|
+
// every defect anyone has caught in a finished ad was visible in them. The run
|
|
1426
|
+
// stops, the agent reviews the frames, and continuing pays for none of them twice.
|
|
1427
|
+
handle || staged ? `Wrote ${spec.data.beats.length} beats to ${outPath}. Run it with \`baker canvas run ${outPath} --until frames --brief "<what they asked for, their words>"\`, review the frames against the brief and Brand, fix any defects, then resume immediately with the \`--run-id\` it gives you. Wait for the user only when they explicitly requested storyboards only or a review before continuing. This ad carries ${handle ? "a person's face" : "the client's mark"}, and a wrong look costs a whole ad to discover after the clips.` : `Wrote ${spec.data.beats.length} beats to ${outPath}. Run it with \`baker canvas run ${outPath} --brief "<what they asked for, their words>"\`.`,
|
|
1428
|
+
...autoCast ? [
|
|
1429
|
+
`Cast \`${autoCast}\` \u2014 the spec described this person in words, and they are one of this company's avatars. Every shot now grounds on their identity sheet and carries their accent and delivery. Write \`"cast": { "avatar": "` + autoCast + '" }` yourself next time; a written description is for someone the company does not have.'
|
|
1430
|
+
] : [],
|
|
1431
|
+
`These beats run about ${blueprint.estimated_duration_s}s. If the ask was longer, add beats \u2014 the length is the sum of the lines, so a 25s ad needs roughly 25s of script and cannot be stretched by holding shots.`,
|
|
1432
|
+
...logoPath && !staged ? [`Could not read the logo at \`${logoPath}\` \u2014 the ad has no mark on screen. Give the path as it appears in src/brand/BRAND.md, relative to the workspace root.`] : [],
|
|
1433
|
+
...staged ? ["The brand mark is drawn by the composition \u2014 top-left throughout, and large on the closing card. It is never generated as a picture, so it cannot come back garbled."] : [],
|
|
1434
|
+
...endCardWanted(spec.data) ? ["The last beat closes on a flat brand plate with the call to action over it, instead of one more photograph."] : [],
|
|
1435
|
+
...spec.data.brand?.logo && !filledLogo && !spec.data.brand.logo.startsWith(`${BRAND_DIR}/`) ? [
|
|
1436
|
+
`The mark at \`${spec.data.brand.logo}\` is not in \`${BRAND_DIR}/logos/\`. If you drew it for this ad, it is not the client's logo and the ad is going out wearing something you invented \u2014 put the real one in the brand folder (\`/brand-build\`) and re-run. A hand-drawn wordmark also tends to overflow its own viewBox, which renders as a clipped word.`
|
|
1437
|
+
] : [],
|
|
1438
|
+
...filledLogo || filledPalette ? [
|
|
1439
|
+
`The spec left the brand empty, so it was read from the workspace: ${[filledLogo ? `logo \`${filledLogo}\`` : null, filledPalette ? `palette ${filledPalette.slice(0, 3).join(", ")}` : null].filter(Boolean).join(" and ")}. Pass them yourself when the ad needs a different mark or colour.`
|
|
1440
|
+
] : [],
|
|
1441
|
+
...avatarError ? [avatarError] : [],
|
|
1442
|
+
...avatar ? [
|
|
1443
|
+
...avatar?.profile?.accent?.trim() ? [] : [
|
|
1444
|
+
`Avatar \`${handle}\` has no accent on their profile, so the video model picks a region on its own and usually picks the commonest one. An avatar has no pinned voice by design (ADR 0005) \u2014 the accent IS the lever: \`baker avatars update ${handle} --accent "Spanish from Spain, Madrid"\`.`
|
|
1445
|
+
],
|
|
1446
|
+
`Every beat the customer appears in is grounded on \`${handle}\`'s identity sheet, and their subject description was copied into the frames verbatim \u2014 so it is the same face throughout and the same face as the rest of this company's work.`
|
|
1447
|
+
] : [],
|
|
1448
|
+
...presenterIsInEveryShot(spec.data) ? [
|
|
1449
|
+
"The presenter is in every beat, so this ad has no cutaway \u2014 the viewer never sees the bill, the roof, the install or the house, only a face. A rendered ad built this way came back as three near-identical shots of one person smiling. Set `cast: false` on the beats that should show the thing itself."
|
|
1450
|
+
] : [],
|
|
1451
|
+
...!spec.data.cast ? [
|
|
1452
|
+
'This ad declares no `cast`, so every beat renders whoever the model invents \u2014 a different face per shot. If a person appears more than once, describe them in `cast: { description: "..." }` (one invented person throughout), or cast an avatar with `cast: { avatar: "<handle>" }` when they must recur across ads.'
|
|
1453
|
+
] : [],
|
|
1454
|
+
...spec.data.cast && !avatar ? [
|
|
1455
|
+
"This cast has a description but no avatar, so a realistic person is invented from it for this ad (a candid portrait every beat grounds on). That is right for a one-off ad; if the same actor has to come back in other ads, cast an avatar (`baker avatars list`) and pass `cast.avatar`."
|
|
1456
|
+
] : [],
|
|
1457
|
+
...marketFor(spec.data, definitionLanguage) ? [] : [
|
|
1458
|
+
'This ad names no `market`, so its frames say nowhere and the model picks the place. A language is not a country: set `market` ("Mexico", "Spain") or give `voice.language` with its country ("es-MX") and re-run.'
|
|
1459
|
+
],
|
|
1460
|
+
...reading.read ? [] : [
|
|
1461
|
+
`The spec's lines could not be read this time, so ${spokenLanguage2 ? "" : "the voice is cast with no language, "}no voice is held to a gender, captions break on the word count alone, and no line or brief was checked for a self-introduction or readable text. Re-run to read them, or set \`voice.language\` to say the language.`
|
|
1462
|
+
],
|
|
1463
|
+
...spec.data.voiceover === false ? [
|
|
1464
|
+
"Nobody speaks in this ad, so the `say` lines are ON-SCREEN text: they are captioned straight from the script, exactly as written, with no voice and no transcription in between. Give it `music` \u2014 a music-led ad with no bed is a silent one."
|
|
1465
|
+
] : [],
|
|
1466
|
+
"The caption cards print your `say` lines as written, timed to the voice as it reads them; a word the voice slurs or the recogniser mishears still shows as you wrote it. Read the lines back before running: that is the copy the viewer sees.",
|
|
1467
|
+
"Every clip renders with nobody speaking unless a beat set `on_camera`. If a beat needs a presenter talking, set it there rather than describing it in `show`.",
|
|
1468
|
+
// Keyed on what is MISSING, not on whether `brand` exists at all: a spec holding
|
|
1469
|
+
// `brand.name` and nothing else once rendered 28 seconds with no palette anywhere.
|
|
1470
|
+
// A missing logo is said once, by `noLogoHint`.
|
|
1471
|
+
...spec.data.brand?.palette?.length ? [] : [
|
|
1472
|
+
"This spec has no `brand.palette`. Read src/brand/BRAND.md and re-run with it: a name alone leaves the ad in someone else's clothes."
|
|
1473
|
+
],
|
|
1474
|
+
"`brand.palette` colours the closing plate the card sits on; `brand.logo` is the repo path to the mark, and it is drawn by the composition \u2014 top-left throughout and large on the closing card \u2014 never generated as a picture, so it cannot come back garbled. Give it whenever the client has one."
|
|
1475
|
+
]
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
});
|
|
1479
|
+
function shortBeatHint(short, total) {
|
|
1480
|
+
if (short.length === 0) return [];
|
|
1481
|
+
return [
|
|
1482
|
+
`Beat${short.length === 1 ? "" : "s"} ${short.join(", ")} of ${total} ${short.length === 1 ? "is" : "are"} a fragment rather than a line \u2014 a few words with a whole shot to themselves. Every beat's picture holds for at least ${SPOKEN_CLIP_DURATION_S}s, so a two-word beat buys six seconds of somebody standing still, and a run of those plays as a slideshow rather than an ad. Don't pad them. Merge them into the beat before or after, so each one carries a whole thought. Edit the spec and re-run this command.`
|
|
1483
|
+
];
|
|
1484
|
+
}
|
|
1485
|
+
var MAX_FONT_BYTES = 5e6;
|
|
1486
|
+
async function stageBrandDisplayFace(outDir, compositionDir) {
|
|
1487
|
+
const root = await findBrandRoot(outDir) ?? process.cwd();
|
|
1488
|
+
const kit = await readStaticBrandKit(root);
|
|
1489
|
+
const face = await brandHeadlineFont({
|
|
1490
|
+
file: kit.headlineFont,
|
|
1491
|
+
named: await readNamedTypefaces(root),
|
|
1492
|
+
resolveUrl: (family, weight) => webFontUrl(family, weight, { lookupGoogleCss, fetchJson })
|
|
1493
|
+
}).catch(() => null);
|
|
1494
|
+
if (!face) return null;
|
|
1495
|
+
try {
|
|
1496
|
+
if ("path" in face.slot) {
|
|
1497
|
+
const file2 = `brand-face${path.extname(face.slot.path).toLowerCase()}`;
|
|
1498
|
+
await copyFile(face.slot.path, path.join(compositionDir, file2));
|
|
1499
|
+
return { file: file2, label: `the font file \`${path.relative(root, face.slot.path)}\`` };
|
|
1500
|
+
}
|
|
1501
|
+
const { buffer } = await fetchExternalBytes(face.slot.url, { maxBytes: MAX_FONT_BYTES });
|
|
1502
|
+
const extension = /\.(woff2|woff|ttf|otf)(?:\?|$)/i.exec(face.slot.url)?.[1]?.toLowerCase() ?? "woff2";
|
|
1503
|
+
const file = `brand-face.${extension}`;
|
|
1504
|
+
await writeFile(path.join(compositionDir, file), buffer);
|
|
1505
|
+
return { file, label: `${face.family ?? "the brand's typeface"}, loaded as a web font` };
|
|
1506
|
+
} catch {
|
|
1507
|
+
return null;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
export {
|
|
1511
|
+
scaffoldAdCommand
|
|
1512
|
+
};
|
|
1513
|
+
//# sourceMappingURL=scaffold-ad-RFRUPUKW.js.map
|