@koda-sl/baker-cli 0.482.0-dev.a5555ab55 → 0.482.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (549) hide show
  1. package/README.md +1 -1
  2. package/dist/{account-KZVOT6HL.js → account-VH2AATWI.js} +5 -5
  3. package/dist/{account-ELL7ZZLM.js → account-Z65CPOWE.js} +3 -3
  4. package/dist/{account-reads-LA45L6G3.js → account-reads-GYI2SS6T.js} +4 -4
  5. package/dist/{account-writes-CEPERFD6.js → account-writes-4N2MA2ZR.js} +3 -3
  6. package/dist/{accounts-HC7GPQNG.js → accounts-SPLE7URQ.js} +6 -6
  7. package/dist/{accounts-7G556DH4.js → accounts-XG472YLB.js} +4 -4
  8. package/dist/{actions-V6YP5C3X.js → actions-KQTXBNJU.js} +18 -18
  9. package/dist/{activecampaign-CHZEHRHZ.js → activecampaign-42JXANUA.js} +4 -4
  10. package/dist/{ad-group-writes-XGSCEQTW.js → ad-group-writes-EUTMPBMK.js} +3 -3
  11. package/dist/{ad-groups-GKOLDGET.js → ad-groups-OVPAI5RM.js} +7 -7
  12. package/dist/{ad-writes-VVD36JKH.js → ad-writes-DACTYFEO.js} +3 -3
  13. package/dist/{add-3MD72QMT.js → add-C3FQ5D62.js} +3 -3
  14. package/dist/{add-TSQNUP5N.js → add-KTEJCE4L.js} +4 -4
  15. package/dist/{ads-EKZVHKPN.js → ads-L65JIKCD.js} +8 -8
  16. package/dist/{ads-KRM4WAMZ.js → ads-WPI3AMSR.js} +5 -5
  17. package/dist/{advertisers-XJG7XDK7.js → advertisers-36HP3AOE.js} +6 -6
  18. package/dist/{analytics-JVT2OBQC.js → analytics-I4LZCRG2.js} +4 -4
  19. package/dist/{analytics-DO4UKW2H.js → analytics-IFNBT7IM.js} +7 -7
  20. package/dist/{animate-G4P3OEJE.js → animate-3LV3LHXQ.js} +4 -4
  21. package/dist/{assign-72YAL6TP.js → assign-WBLSZNCO.js} +4 -4
  22. package/dist/{audience-size-M5NU4QYN.js → audience-size-LOX5BNXI.js} +4 -4
  23. package/dist/{audiences-BU4JZJT7.js → audiences-RPLVMO4H.js} +3 -3
  24. package/dist/{audit-22KQAHJR.js → audit-6AG6BPXQ.js} +4 -4
  25. package/dist/{autocomplete-KLNQIK5T.js → autocomplete-2QRU7ARD.js} +6 -6
  26. package/dist/{avatars-VO6FMJFB.js → avatars-EIETXCF3.js} +4 -4
  27. package/dist/{bid-pricing-52HDANYL.js → bid-pricing-5LZFHQTS.js} +5 -5
  28. package/dist/{brand-XXNOVSGE.js → brand-CINQG3JG.js} +2 -2
  29. package/dist/{brief-JIARAUIR.js → brief-WAQ2V6Q4.js} +19 -19
  30. package/dist/{campaign-groups-JFOFU76X.js → campaign-groups-5CMTEJZZ.js} +9 -9
  31. package/dist/{campaign-writes-PKWLLKB5.js → campaign-writes-4RMPHQCT.js} +4 -4
  32. package/dist/{campaign-writes-NSEJCINS.js → campaign-writes-U5LTDTYK.js} +3 -3
  33. package/dist/{campaigns-5AZMOOID.js → campaigns-NFRLFNXI.js} +5 -5
  34. package/dist/{campaigns-H4VK3GKK.js → campaigns-PC7UAVXR.js} +12 -12
  35. package/dist/{campaigns-VWN2XPK2.js → campaigns-TFEQTSO3.js} +7 -7
  36. package/dist/{canvas-TTV7QZZT.js → canvas-A4XKEBN7.js} +14 -14
  37. package/dist/{capabilities-VJ53ROIP.js → capabilities-FNVTPCDT.js} +4 -4
  38. package/dist/{catalog-43BSTAT6.js → catalog-SJBGNNY4.js} +8 -8
  39. package/dist/{catalogs-XH5NHH4C.js → catalogs-A7XMEEEP.js} +3 -3
  40. package/dist/{changes-F6WUXFC3.js → changes-J67WATHX.js} +4 -4
  41. package/dist/{chatgpt-K6KNTME4.js → chatgpt-4PEWDJKP.js} +13 -13
  42. package/dist/{chats-PWLQO7UY.js → chats-S5FCV7YO.js} +4 -4
  43. package/dist/{check-545MAB4E.js → check-GCZ2ZBKH.js} +11 -11
  44. package/dist/{chunk-GJWMPTUE.js → chunk-2DHHL4PU.js} +4 -4
  45. package/dist/{chunk-XF5R2FQT.js → chunk-2K3NCVDI.js} +19 -31
  46. package/dist/{chunk-XF5R2FQT.js.map → chunk-2K3NCVDI.js.map} +1 -1
  47. package/dist/{chunk-UTLIQBRY.js → chunk-3S5YZWB7.js} +7 -10
  48. package/dist/chunk-3S5YZWB7.js.map +1 -0
  49. package/dist/{chunk-5SRHACZW.js → chunk-3UXMQ3K2.js} +2 -2
  50. package/dist/{chunk-U63S2JWI.js → chunk-4VWTIT5C.js} +2 -2
  51. package/dist/{chunk-XLJVJ5TK.js → chunk-5NS4CNF6.js} +5 -5
  52. package/dist/{chunk-PNVEV3XP.js → chunk-5RCCESDX.js} +41 -109
  53. package/dist/chunk-5RCCESDX.js.map +1 -0
  54. package/dist/{chunk-YU2XIIL3.js → chunk-5YKC2WWG.js} +6 -6
  55. package/dist/{chunk-6OIKNJ7G.js → chunk-65N4ZPQD.js} +2 -2
  56. package/dist/{chunk-I2WRZJAC.js → chunk-6KK26F2T.js} +2 -2
  57. package/dist/{chunk-64HQDJ2E.js → chunk-7U3V64YT.js} +5 -5
  58. package/dist/{chunk-SEPPFM5S.js → chunk-7VHPAGPK.js} +2 -2
  59. package/dist/{chunk-C7MENOP5.js → chunk-A2FKWRKO.js} +6 -6
  60. package/dist/{chunk-MK3OJZIU.js → chunk-ABXTGAG7.js} +2 -2
  61. package/dist/{chunk-G5GV6SUK.js → chunk-ADSNY4KZ.js} +2 -2
  62. package/dist/{chunk-3UBTVAFJ.js → chunk-AHF6TQWB.js} +2 -2
  63. package/dist/{chunk-S7B2TOOU.js → chunk-AQ5WISEG.js} +2 -2
  64. package/dist/{chunk-RGX7AQ2K.js → chunk-AS5VL32C.js} +2 -2
  65. package/dist/{chunk-QKABEX3F.js → chunk-BSEB55E6.js} +2 -2
  66. package/dist/{chunk-TKPVVD52.js → chunk-CCIDHU6M.js} +2 -2
  67. package/dist/{chunk-AOZ7547I.js → chunk-CXQRTLSQ.js} +3 -3
  68. package/dist/{chunk-FQXGII24.js → chunk-DCTEL4KG.js} +4 -4
  69. package/dist/{chunk-P5PX2G7E.js → chunk-DF22CTXE.js} +3 -3
  70. package/dist/{chunk-V4UIM4QE.js → chunk-DH5CKOYK.js} +2 -2
  71. package/dist/{chunk-QZHGIJOW.js → chunk-DQC4NIJE.js} +3 -3
  72. package/dist/{chunk-QTLZXIF3.js → chunk-ELL2IQMF.js} +10 -9
  73. package/dist/chunk-ELL2IQMF.js.map +1 -0
  74. package/dist/{chunk-SQ7DRYCC.js → chunk-FEELV5IV.js} +2 -2
  75. package/dist/{chunk-2QSPPWOU.js → chunk-FRK7SSEH.js} +2 -2
  76. package/dist/{chunk-HNEYIWXW.js → chunk-GQ6JS5MR.js} +11 -56
  77. package/dist/{chunk-HNEYIWXW.js.map → chunk-GQ6JS5MR.js.map} +1 -1
  78. package/dist/{chunk-3BKNGXCL.js → chunk-IG627WWY.js} +169 -169
  79. package/dist/chunk-IG627WWY.js.map +1 -0
  80. package/dist/{chunk-GD6UJDOB.js → chunk-IWWOGBGA.js} +2 -2
  81. package/dist/{chunk-QYAI24PN.js → chunk-JFA4R3KS.js} +2 -2
  82. package/dist/{chunk-WHSTZRUY.js → chunk-K2Z3KGOH.js} +2 -2
  83. package/dist/{chunk-3ZHOBEQD.js → chunk-KQDAFZKR.js} +3 -3
  84. package/dist/{chunk-ZJ6HUCRK.js → chunk-LD4CHA7U.js} +2 -2
  85. package/dist/{chunk-CSN6L345.js → chunk-MIOOPOG2.js} +5 -5
  86. package/dist/{chunk-I2DNBEV6.js → chunk-ML7DLFFY.js} +14 -14
  87. package/dist/chunk-ML7DLFFY.js.map +1 -0
  88. package/dist/{chunk-TY4BDVLG.js → chunk-MMVLRUMK.js} +11 -23
  89. package/dist/chunk-MMVLRUMK.js.map +1 -0
  90. package/dist/{chunk-TNB5EIFV.js → chunk-NCP6RD6A.js} +2 -2
  91. package/dist/{chunk-D6KHVUDS.js → chunk-NNF4RARY.js} +3 -3
  92. package/dist/{chunk-UWT7RCL3.js → chunk-NR2OVOTD.js} +2 -2
  93. package/dist/{chunk-LMZAOTRX.js → chunk-NVGXYF6K.js} +2 -2
  94. package/dist/{chunk-SIKCVWM3.js → chunk-ORQKMXHA.js} +2 -2
  95. package/dist/{chunk-JRFVSSKP.js → chunk-PQTY22FR.js} +6 -7
  96. package/dist/chunk-PQTY22FR.js.map +1 -0
  97. package/dist/{chunk-XP4G2DJL.js → chunk-Q7YZL7PG.js} +2 -2
  98. package/dist/{chunk-K4NMOWG7.js → chunk-R2TAVQGZ.js} +2 -2
  99. package/dist/{chunk-IYELKHBG.js → chunk-R5WNYLG4.js} +2 -2
  100. package/dist/{chunk-XFJNCZXA.js → chunk-RCSOG2DV.js} +5 -5
  101. package/dist/{chunk-ZBUWO4XH.js → chunk-RD2XXQW3.js} +3 -3
  102. package/dist/{chunk-RMNKCVRB.js → chunk-RDCYPWQZ.js} +8 -23
  103. package/dist/chunk-RDCYPWQZ.js.map +1 -0
  104. package/dist/{chunk-46TND6YK.js → chunk-RLS5OPPZ.js} +2 -2
  105. package/dist/{chunk-PHPXAMY3.js → chunk-RMLJNHCU.js} +3 -3
  106. package/dist/{chunk-GM46ZEYP.js → chunk-RTWRNG3E.js} +8 -18
  107. package/dist/{chunk-GM46ZEYP.js.map → chunk-RTWRNG3E.js.map} +1 -1
  108. package/dist/{chunk-F3CZFUXZ.js → chunk-T6ATGN7Y.js} +4 -4
  109. package/dist/chunk-T6ATGN7Y.js.map +1 -0
  110. package/dist/{chunk-LFXE2G6R.js → chunk-TNOJ6O6B.js} +2 -2
  111. package/dist/{chunk-F5IH7G2F.js → chunk-U2452GLO.js} +6 -11
  112. package/dist/chunk-U2452GLO.js.map +1 -0
  113. package/dist/{chunk-TBHRRQZD.js → chunk-U4W4LULB.js} +8 -8
  114. package/dist/{chunk-2WTD5Y34.js → chunk-U6IWRZQF.js} +3 -3
  115. package/dist/{chunk-SK2N45LO.js → chunk-UMZIQIWN.js} +2 -2
  116. package/dist/{chunk-KXSXZAC2.js → chunk-V6PXHQSI.js} +2 -2
  117. package/dist/{chunk-REMR5FHD.js → chunk-WD5BQBVY.js} +3 -3
  118. package/dist/{chunk-ROX7LQRR.js → chunk-WMVTIKET.js} +2 -2
  119. package/dist/{chunk-I44SNQ34.js → chunk-WNJ5SYAG.js} +2 -2
  120. package/dist/{chunk-DDES6J6A.js → chunk-XSGO44OV.js} +4 -4
  121. package/dist/{chunk-TUSR5R7I.js → chunk-XUB2EK65.js} +2 -2
  122. package/dist/{chunk-JQNO6JCV.js → chunk-XUR4QWCS.js} +2 -2
  123. package/dist/{chunk-KOVQ2JGM.js → chunk-YD7BQDJ6.js} +2 -2
  124. package/dist/{chunk-B7FVPHCW.js → chunk-ZBV5IV5T.js} +2 -2
  125. package/dist/{claim-QHXKN7W6.js → claim-6MPQD43X.js} +4 -4
  126. package/dist/cli.js +30 -30
  127. package/dist/{companies-PGVT62JL.js → companies-KRF2K4CA.js} +4 -4
  128. package/dist/{complete-TCTR3XVD.js → complete-V433ON5C.js} +4 -4
  129. package/dist/{connect-4S7JLICS.js → connect-QVIAM3GX.js} +7 -7
  130. package/dist/{conversation-DI4WMEL2.js → conversation-VZKBZZGG.js} +4 -4
  131. package/dist/{conversion-report-KL4LIVY5.js → conversion-report-REOHVLCI.js} +2 -2
  132. package/dist/{conversion-upload-command-EIKJU5ZW.js → conversion-upload-command-ASHA6T6H.js} +4 -4
  133. package/dist/{conversion-writes-MPBCTVSP.js → conversion-writes-JU7Q2MUO.js} +3 -3
  134. package/dist/{conversions-ACYT6K7H.js → conversions-3ISBR3TS.js} +5 -5
  135. package/dist/{conversions-JTYMFX66.js → conversions-ZLC6YTJ5.js} +8 -8
  136. package/dist/{create-VFXEJ3EV.js → create-B3QMYSIX.js} +4 -4
  137. package/dist/{create-3QA7X2DD.js → create-IFCCMKFT.js} +3 -3
  138. package/dist/{create-AFVT5JTH.js → create-R5P6JU5A.js} +4 -4
  139. package/dist/{create-TYCOMVWR.js → create-SF6DOGDJ.js} +4 -4
  140. package/dist/{creatives-E6N2YLHE.js → creatives-KD7MOCR3.js} +9 -9
  141. package/dist/{creatives-5VY3LT6X.js → creatives-U2M4F3D5.js} +12 -12
  142. package/dist/{credentials-34I6ZZWU.js → credentials-2KJUKBMF.js} +4 -4
  143. package/dist/{critique-OCVV6N3U.js → critique-43OVWKN7.js} +18 -18
  144. package/dist/{critique-JM5QADYW.js → critique-JVKJEBAC.js} +7 -7
  145. package/dist/{crm-MNBYNP5R.js → crm-GX72E2LT.js} +5 -5
  146. package/dist/{crm-4F3LFOZD.js → crm-ZYDNEME5.js} +5 -5
  147. package/dist/{currency-3QTI5RSB.js → currency-CGDI2NXI.js} +4 -4
  148. package/dist/{customers-VNYNT2EQ.js → customers-P4N4NXLJ.js} +8 -8
  149. package/dist/{delete-UZRHYEPK.js → delete-AK5IV44E.js} +3 -3
  150. package/dist/{delete-PRJGFA2U.js → delete-RS7RQDUX.js} +4 -4
  151. package/dist/{delete-AZEVPMVO.js → delete-S4VKH7IS.js} +4 -4
  152. package/dist/{demographics-JMZA7MB6.js → demographics-IKWN2H3V.js} +4 -4
  153. package/dist/{discard-OH3B5P4C.js → discard-H6DOHJRG.js} +4 -4
  154. package/dist/{discover-5GLET36U.js → discover-L4TPEKGY.js} +4 -4
  155. package/dist/{domain-K3IILLYE.js → domain-US4KKAXC.js} +4 -4
  156. package/dist/{draft-LZL6VWHX.js → draft-BIQ3ZAYW.js} +5 -5
  157. package/dist/{draft-7RYDPOFS.js → draft-IZ4YLQRD.js} +4 -4
  158. package/dist/{draft-2KHUZTIE.js → draft-OLFQZBWL.js} +4 -4
  159. package/dist/{draft-BB3UUWJP.js → draft-R32RFDCI.js} +4 -4
  160. package/dist/{draft-VXGZDBC7.js → draft-Y2QJE2NM.js} +3 -3
  161. package/dist/engine/index.js +7 -7
  162. package/dist/{facets-PAWOEHOK.js → facets-JBZQHN3D.js} +4 -4
  163. package/dist/{feedback-GAGIKZ6B.js → feedback-3GU3PAEI.js} +21 -21
  164. package/dist/{feedback-record-ZORDBRV2.js → feedback-record-PIJDOJW3.js} +22 -22
  165. package/dist/{fetch-M5GIBURQ.js → fetch-GOY6DQRL.js} +4 -4
  166. package/dist/{fit-DGCYW7LN.js → fit-TVQ7RK52.js} +13 -13
  167. package/dist/{flows-TD6PNUDM.js → flows-274YPU6I.js} +11 -11
  168. package/dist/{fonts-IQ6XOUGU.js → fonts-BMUNDGOZ.js} +9 -9
  169. package/dist/{forecast-YXOKAWDZ.js → forecast-F2CZSIMP.js} +4 -4
  170. package/dist/{forecast-FACEH4WR.js → forecast-W5F2MNOV.js} +5 -5
  171. package/dist/{funnel-CJRFDTCD.js → funnel-LEUXICXU.js} +5 -5
  172. package/dist/{generate-D3LUXFJT.js → generate-4HWNFAH3.js} +3 -3
  173. package/dist/{get-JRMJLLU5.js → get-MGDY5JYZ.js} +4 -4
  174. package/dist/{get-NUL4YJG5.js → get-TY6AMFI4.js} +4 -4
  175. package/dist/{google-URYXWN5O.js → google-ZTTE34A4.js} +22 -22
  176. package/dist/{google-ads-BB7CF4NV.js → google-ads-5ARKO757.js} +4 -4
  177. package/dist/{history-OQAOTEO3.js → history-IQ33J5PB.js} +3 -3
  178. package/dist/{history-Q47TKZJS.js → history-SU7VQCDJ.js} +4 -4
  179. package/dist/{hubspot-A6O5GVTH.js → hubspot-TJED44GO.js} +8 -8
  180. package/dist/{ideas-LD6X753E.js → ideas-UTSCGCT6.js} +10 -10
  181. package/dist/{images-XY5DLJEA.js → images-ZMZ4WLYH.js} +4 -4
  182. package/dist/{ingest-WWNSA6VZ.js → ingest-DGDNZWEM.js} +4 -4
  183. package/dist/{ingest-PUMTHASV.js → ingest-SGBJ3NXX.js} +3 -3
  184. package/dist/{insights-PZXFCMX2.js → insights-SQLE5NOJ.js} +2 -2
  185. package/dist/{inspect-5PRLZLF5.js → inspect-BMQTTKMW.js} +4 -4
  186. package/dist/{intent-4QVVI4FF.js → intent-LM36WK45.js} +4 -4
  187. package/dist/{keyword-gap-YMMDRYVK.js → keyword-gap-P652ODHN.js} +4 -4
  188. package/dist/{keyword-metrics-FB7FCYK6.js → keyword-metrics-MQLGGJBT.js} +6 -6
  189. package/dist/{keywords-for-site-YZYALONY.js → keywords-for-site-JL6H2YGU.js} +6 -6
  190. package/dist/{landing-XOCPIOWX.js → landing-AJO2BPC2.js} +2 -2
  191. package/dist/{languages-R3Y2IOFU.js → languages-HL42MI7H.js} +4 -4
  192. package/dist/{leads-SWINPYEP.js → leads-H6JIWVI6.js} +4 -4
  193. package/dist/{learn-6HVDSTTJ.js → learn-RGO5KDHS.js} +10 -10
  194. package/dist/{line-item-writes-FG3TY4W4.js → line-item-writes-V7AKAHFC.js} +4 -4
  195. package/dist/{line-items-ZNVBFA4H.js → line-items-GAMKVVIQ.js} +5 -5
  196. package/dist/{link-IFEXIUDW.js → link-Z5AQP6JN.js} +4 -4
  197. package/dist/{linkedin-NINSMEW6.js → linkedin-7F6YVXQL.js} +27 -27
  198. package/dist/{list-K65FY6SV.js → list-NLGM3QDP.js} +4 -4
  199. package/dist/{list-RJG3FMZR.js → list-SZH6TH74.js} +4 -4
  200. package/dist/{list-FR2OVRVL.js → list-XZVQWIJN.js} +3 -3
  201. package/dist/{locations-6IH7WGRG.js → locations-AEGZ36JH.js} +4 -4
  202. package/dist/{locations-VL2G22Y5.js → locations-YA7NZY44.js} +2 -2
  203. package/dist/{log-TAKCMC2C.js → log-JM4VLJE4.js} +4 -4
  204. package/dist/{make-EWHS4EHQ.js → make-IHJROEKG.js} +34 -40
  205. package/dist/make-IHJROEKG.js.map +1 -0
  206. package/dist/{map-DWLEYXSW.js → map-HRLUMCR2.js} +5 -5
  207. package/dist/{mcp-NNQZ5B7N.js → mcp-T6SAG4XB.js} +3 -3
  208. package/dist/{media-sources-OAFBA62X.js → media-sources-7AS3274L.js} +2 -2
  209. package/dist/{members-SS7IBYVE.js → members-J5KWXTXY.js} +4 -4
  210. package/dist/{metrics-YLAREC4T.js → metrics-VDBJ6KL7.js} +4 -4
  211. package/dist/{models-IH6KE6OH.js → models-2DQ5NBMT.js} +2 -2
  212. package/dist/{normalize-WOZTAI6C.js → normalize-CHZB4QDD.js} +4 -4
  213. package/dist/{options-PL44BV5E.js → options-QLXFLESP.js} +7 -7
  214. package/dist/{organization-SQBODZUK.js → organization-KEGKAP4P.js} +4 -4
  215. package/dist/{performance-WRARV3YR.js → performance-SPGPGXE5.js} +5 -5
  216. package/dist/{pixels-DWW2TDY2.js → pixels-6IUB3Y3H.js} +3 -3
  217. package/dist/{promoted-tweet-writes-CAD3RGU4.js → promoted-tweet-writes-TRR3KPRJ.js} +4 -4
  218. package/dist/{promoted-tweets-NYJP3TXL.js → promoted-tweets-XRYZNJI2.js} +3 -3
  219. package/dist/{publish-ZW6VHB27.js → publish-V5YGMK53.js} +4 -4
  220. package/dist/{query-QRPBV2AR.js → query-M3IO54U2.js} +5 -5
  221. package/dist/{reddit-VJTNXORD.js → reddit-STSECKMZ.js} +5 -5
  222. package/dist/{refresh-6I52WXG5.js → refresh-RQ3C2MHI.js} +3 -3
  223. package/dist/{release-LSSYP2ZJ.js → release-UHGU5WBY.js} +4 -4
  224. package/dist/{relevant-pages-2XHS5WP4.js → relevant-pages-G6SNC73K.js} +4 -4
  225. package/dist/{remove-K62YJYGT.js → remove-LTKICIIF.js} +3 -3
  226. package/dist/{reopen-RPVEBQVR.js → reopen-BP5ERELB.js} +4 -4
  227. package/dist/{rerun-ETH2NEEX.js → rerun-R3DNEV5U.js} +27 -27
  228. package/dist/{research-6J3EOBAL.js → research-GOYMTKZM.js} +3 -3
  229. package/dist/{research-4ASN2KMB.js → research-MBAPL35Y.js} +13 -13
  230. package/dist/{reset-YVTYHSTY.js → reset-Q62PEGOU.js} +3 -3
  231. package/dist/{reset-ETORO5UO.js → reset-SJPGSQ7I.js} +3 -3
  232. package/dist/{resolve-BI7GB5U2.js → resolve-R45W7QEQ.js} +4 -4
  233. package/dist/{retry-QZ7YHXF3.js → retry-CD2Q2AJN.js} +3 -3
  234. package/dist/{retry-2ZZCKSRW.js → retry-NBZ7Q6HK.js} +3 -3
  235. package/dist/{rules-KEHQEXEU.js → rules-SZIY67QF.js} +10 -10
  236. package/dist/{rules-add-IDBWO6XV.js → rules-add-KTLHU3YD.js} +11 -11
  237. package/dist/{run-KYEOLJFV.js → run-HCJKCEOL.js} +4 -4
  238. package/dist/{run-FFASB4YB.js → run-QYIUO4NB.js} +27 -27
  239. package/dist/{scaffold-ad-EKCXHZPT.js → scaffold-ad-NIVJSO73.js} +26 -26
  240. package/dist/{scaffold-static-ad-MWKTXATN.js → scaffold-static-ad-QX2NUXFR.js} +33 -33
  241. package/dist/{scaffold-video-BYPPH352.js → scaffold-video-NXBM54K3.js} +23 -23
  242. package/dist/{schedule-4BK2ML6F.js → schedule-BSQHXJ5V.js} +3 -3
  243. package/dist/{scheduled-agents-GMGP3G6T.js → scheduled-agents-MFLMG34I.js} +10 -10
  244. package/dist/{schema-QPPWADIL.js → schema-IWPG3YSN.js} +5 -5
  245. package/dist/{search-GCSQ6CSD.js → search-EGI5K77S.js} +3 -3
  246. package/dist/{select-CPFKK57J.js → select-Q4S4CPKV.js} +20 -20
  247. package/dist/{set-prompt-TJ3UTNYS.js → set-prompt-3MVZW3L6.js} +19 -19
  248. package/dist/{setup-links-C3EUV2RX.js → setup-links-5ILQNMFZ.js} +4 -4
  249. package/dist/{site-W5W7FCUD.js → site-LBXNVRPE.js} +5 -5
  250. package/dist/{sources-AWODYZDS.js → sources-GP4PUTX2.js} +7 -7
  251. package/dist/{sources-SGGLJIOA.js → sources-N4UANUHJ.js} +6 -6
  252. package/dist/{stale-KILEXX57.js → stale-NT2JRQHY.js} +19 -19
  253. package/dist/{status-KUSLGZD7.js → status-GSFMLC6W.js} +4 -4
  254. package/dist/{studio-LMDDQWRY.js → studio-YB5WXQYC.js} +4 -4
  255. package/dist/{sync-TCY4NX7J.js → sync-LIV7FU4N.js} +3 -3
  256. package/dist/{sync-definition-DGSAZGQZ.js → sync-definition-6XPX6VJU.js} +22 -22
  257. package/dist/{tags-ZYVOKGHU.js → tags-4JQX7HMT.js} +4 -4
  258. package/dist/{tags-QQLYW2QQ.js → tags-6RQVXS47.js} +3 -3
  259. package/dist/{tags-QXRKKRIR.js → tags-AAIFQ6LS.js} +4 -4
  260. package/dist/{tags-U5YWCPFW.js → tags-F355NMIR.js} +4 -4
  261. package/dist/{tags-IHLO2NDM.js → tags-ZHCGHGYC.js} +4 -4
  262. package/dist/{targeting-criteria-AEBSY6OY.js → targeting-criteria-6FY2JB3V.js} +3 -3
  263. package/dist/{targets-5Q2OFVXL.js → targets-NI7TR4GV.js} +4 -4
  264. package/dist/{testimonials-O52ULRAU.js → testimonials-G7CCH7VN.js} +6 -6
  265. package/dist/{themes-26XFWSWC.js → themes-PXDXIKYR.js} +4 -4
  266. package/dist/{top-companies-OMGAFFWN.js → top-companies-YH2ZJEH5.js} +4 -4
  267. package/dist/{translate-C5LZ6KVN.js → translate-27DIFMBU.js} +24 -24
  268. package/dist/{triggers-PTPG6OQ6.js → triggers-WYFM7PAH.js} +4 -4
  269. package/dist/{unlink-3BAXM2OH.js → unlink-PTWUSM5B.js} +4 -4
  270. package/dist/{unstage-EFW465VN.js → unstage-MCM6EZWK.js} +4 -4
  271. package/dist/{update-VTUB2M5I.js → update-2BDIJDHN.js} +3 -3
  272. package/dist/{update-5A7Q7S6I.js → update-643S2MUW.js} +4 -4
  273. package/dist/{update-XPRHUFBR.js → update-GUIP6G3N.js} +4 -4
  274. package/dist/{update-2RCIXWP3.js → update-V6E3CIFD.js} +4 -4
  275. package/dist/{upload-Y3TACPEN.js → upload-3YJJ5VID.js} +4 -4
  276. package/dist/{url-options-6CNDIUDM.js → url-options-LHS4SWWB.js} +4 -4
  277. package/dist/{url-params-ZUYOLAJG.js → url-params-2DKIXKHH.js} +4 -4
  278. package/dist/{validate-KPJLIGYY.js → validate-AYPLNS7A.js} +22 -22
  279. package/dist/{videos-EFMNE6U2.js → videos-KEDR4GG3.js} +5 -5
  280. package/dist/{viewer-check-2GI26EKA.js → viewer-check-TSH3SAYJ.js} +12 -12
  281. package/dist/{web-4JGYRY36.js → web-UOGBNAHR.js} +4 -4
  282. package/dist/{winning-ads-6SXA4HGB.js → winning-ads-SGBI3WHK.js} +3 -3
  283. package/dist/{write-commands-LQXKNBA5.js → write-commands-E7JOB4HX.js} +5 -5
  284. package/dist/{x-LUEUC3XO.js → x-UNSN57YP.js} +6 -6
  285. package/package.json +1 -1
  286. package/dist/chunk-3BKNGXCL.js.map +0 -1
  287. package/dist/chunk-F3CZFUXZ.js.map +0 -1
  288. package/dist/chunk-F5IH7G2F.js.map +0 -1
  289. package/dist/chunk-I2DNBEV6.js.map +0 -1
  290. package/dist/chunk-JRFVSSKP.js.map +0 -1
  291. package/dist/chunk-PNVEV3XP.js.map +0 -1
  292. package/dist/chunk-QTLZXIF3.js.map +0 -1
  293. package/dist/chunk-RMNKCVRB.js.map +0 -1
  294. package/dist/chunk-TY4BDVLG.js.map +0 -1
  295. package/dist/chunk-UTLIQBRY.js.map +0 -1
  296. package/dist/make-EWHS4EHQ.js.map +0 -1
  297. /package/dist/{account-KZVOT6HL.js.map → account-VH2AATWI.js.map} +0 -0
  298. /package/dist/{account-ELL7ZZLM.js.map → account-Z65CPOWE.js.map} +0 -0
  299. /package/dist/{account-reads-LA45L6G3.js.map → account-reads-GYI2SS6T.js.map} +0 -0
  300. /package/dist/{account-writes-CEPERFD6.js.map → account-writes-4N2MA2ZR.js.map} +0 -0
  301. /package/dist/{accounts-HC7GPQNG.js.map → accounts-SPLE7URQ.js.map} +0 -0
  302. /package/dist/{accounts-7G556DH4.js.map → accounts-XG472YLB.js.map} +0 -0
  303. /package/dist/{actions-V6YP5C3X.js.map → actions-KQTXBNJU.js.map} +0 -0
  304. /package/dist/{activecampaign-CHZEHRHZ.js.map → activecampaign-42JXANUA.js.map} +0 -0
  305. /package/dist/{ad-group-writes-XGSCEQTW.js.map → ad-group-writes-EUTMPBMK.js.map} +0 -0
  306. /package/dist/{ad-groups-GKOLDGET.js.map → ad-groups-OVPAI5RM.js.map} +0 -0
  307. /package/dist/{ad-writes-VVD36JKH.js.map → ad-writes-DACTYFEO.js.map} +0 -0
  308. /package/dist/{add-3MD72QMT.js.map → add-C3FQ5D62.js.map} +0 -0
  309. /package/dist/{add-TSQNUP5N.js.map → add-KTEJCE4L.js.map} +0 -0
  310. /package/dist/{ads-EKZVHKPN.js.map → ads-L65JIKCD.js.map} +0 -0
  311. /package/dist/{ads-KRM4WAMZ.js.map → ads-WPI3AMSR.js.map} +0 -0
  312. /package/dist/{advertisers-XJG7XDK7.js.map → advertisers-36HP3AOE.js.map} +0 -0
  313. /package/dist/{analytics-JVT2OBQC.js.map → analytics-I4LZCRG2.js.map} +0 -0
  314. /package/dist/{analytics-DO4UKW2H.js.map → analytics-IFNBT7IM.js.map} +0 -0
  315. /package/dist/{animate-G4P3OEJE.js.map → animate-3LV3LHXQ.js.map} +0 -0
  316. /package/dist/{assign-72YAL6TP.js.map → assign-WBLSZNCO.js.map} +0 -0
  317. /package/dist/{audience-size-M5NU4QYN.js.map → audience-size-LOX5BNXI.js.map} +0 -0
  318. /package/dist/{audiences-BU4JZJT7.js.map → audiences-RPLVMO4H.js.map} +0 -0
  319. /package/dist/{audit-22KQAHJR.js.map → audit-6AG6BPXQ.js.map} +0 -0
  320. /package/dist/{autocomplete-KLNQIK5T.js.map → autocomplete-2QRU7ARD.js.map} +0 -0
  321. /package/dist/{avatars-VO6FMJFB.js.map → avatars-EIETXCF3.js.map} +0 -0
  322. /package/dist/{bid-pricing-52HDANYL.js.map → bid-pricing-5LZFHQTS.js.map} +0 -0
  323. /package/dist/{brand-XXNOVSGE.js.map → brand-CINQG3JG.js.map} +0 -0
  324. /package/dist/{brief-JIARAUIR.js.map → brief-WAQ2V6Q4.js.map} +0 -0
  325. /package/dist/{campaign-groups-JFOFU76X.js.map → campaign-groups-5CMTEJZZ.js.map} +0 -0
  326. /package/dist/{campaign-writes-PKWLLKB5.js.map → campaign-writes-4RMPHQCT.js.map} +0 -0
  327. /package/dist/{campaign-writes-NSEJCINS.js.map → campaign-writes-U5LTDTYK.js.map} +0 -0
  328. /package/dist/{campaigns-5AZMOOID.js.map → campaigns-NFRLFNXI.js.map} +0 -0
  329. /package/dist/{campaigns-H4VK3GKK.js.map → campaigns-PC7UAVXR.js.map} +0 -0
  330. /package/dist/{campaigns-VWN2XPK2.js.map → campaigns-TFEQTSO3.js.map} +0 -0
  331. /package/dist/{canvas-TTV7QZZT.js.map → canvas-A4XKEBN7.js.map} +0 -0
  332. /package/dist/{capabilities-VJ53ROIP.js.map → capabilities-FNVTPCDT.js.map} +0 -0
  333. /package/dist/{catalog-43BSTAT6.js.map → catalog-SJBGNNY4.js.map} +0 -0
  334. /package/dist/{catalogs-XH5NHH4C.js.map → catalogs-A7XMEEEP.js.map} +0 -0
  335. /package/dist/{changes-F6WUXFC3.js.map → changes-J67WATHX.js.map} +0 -0
  336. /package/dist/{chatgpt-K6KNTME4.js.map → chatgpt-4PEWDJKP.js.map} +0 -0
  337. /package/dist/{chats-PWLQO7UY.js.map → chats-S5FCV7YO.js.map} +0 -0
  338. /package/dist/{check-545MAB4E.js.map → check-GCZ2ZBKH.js.map} +0 -0
  339. /package/dist/{chunk-GJWMPTUE.js.map → chunk-2DHHL4PU.js.map} +0 -0
  340. /package/dist/{chunk-5SRHACZW.js.map → chunk-3UXMQ3K2.js.map} +0 -0
  341. /package/dist/{chunk-U63S2JWI.js.map → chunk-4VWTIT5C.js.map} +0 -0
  342. /package/dist/{chunk-XLJVJ5TK.js.map → chunk-5NS4CNF6.js.map} +0 -0
  343. /package/dist/{chunk-YU2XIIL3.js.map → chunk-5YKC2WWG.js.map} +0 -0
  344. /package/dist/{chunk-6OIKNJ7G.js.map → chunk-65N4ZPQD.js.map} +0 -0
  345. /package/dist/{chunk-I2WRZJAC.js.map → chunk-6KK26F2T.js.map} +0 -0
  346. /package/dist/{chunk-64HQDJ2E.js.map → chunk-7U3V64YT.js.map} +0 -0
  347. /package/dist/{chunk-SEPPFM5S.js.map → chunk-7VHPAGPK.js.map} +0 -0
  348. /package/dist/{chunk-C7MENOP5.js.map → chunk-A2FKWRKO.js.map} +0 -0
  349. /package/dist/{chunk-MK3OJZIU.js.map → chunk-ABXTGAG7.js.map} +0 -0
  350. /package/dist/{chunk-G5GV6SUK.js.map → chunk-ADSNY4KZ.js.map} +0 -0
  351. /package/dist/{chunk-3UBTVAFJ.js.map → chunk-AHF6TQWB.js.map} +0 -0
  352. /package/dist/{chunk-S7B2TOOU.js.map → chunk-AQ5WISEG.js.map} +0 -0
  353. /package/dist/{chunk-RGX7AQ2K.js.map → chunk-AS5VL32C.js.map} +0 -0
  354. /package/dist/{chunk-QKABEX3F.js.map → chunk-BSEB55E6.js.map} +0 -0
  355. /package/dist/{chunk-TKPVVD52.js.map → chunk-CCIDHU6M.js.map} +0 -0
  356. /package/dist/{chunk-AOZ7547I.js.map → chunk-CXQRTLSQ.js.map} +0 -0
  357. /package/dist/{chunk-FQXGII24.js.map → chunk-DCTEL4KG.js.map} +0 -0
  358. /package/dist/{chunk-P5PX2G7E.js.map → chunk-DF22CTXE.js.map} +0 -0
  359. /package/dist/{chunk-V4UIM4QE.js.map → chunk-DH5CKOYK.js.map} +0 -0
  360. /package/dist/{chunk-QZHGIJOW.js.map → chunk-DQC4NIJE.js.map} +0 -0
  361. /package/dist/{chunk-SQ7DRYCC.js.map → chunk-FEELV5IV.js.map} +0 -0
  362. /package/dist/{chunk-2QSPPWOU.js.map → chunk-FRK7SSEH.js.map} +0 -0
  363. /package/dist/{chunk-GD6UJDOB.js.map → chunk-IWWOGBGA.js.map} +0 -0
  364. /package/dist/{chunk-QYAI24PN.js.map → chunk-JFA4R3KS.js.map} +0 -0
  365. /package/dist/{chunk-WHSTZRUY.js.map → chunk-K2Z3KGOH.js.map} +0 -0
  366. /package/dist/{chunk-3ZHOBEQD.js.map → chunk-KQDAFZKR.js.map} +0 -0
  367. /package/dist/{chunk-ZJ6HUCRK.js.map → chunk-LD4CHA7U.js.map} +0 -0
  368. /package/dist/{chunk-CSN6L345.js.map → chunk-MIOOPOG2.js.map} +0 -0
  369. /package/dist/{chunk-TNB5EIFV.js.map → chunk-NCP6RD6A.js.map} +0 -0
  370. /package/dist/{chunk-D6KHVUDS.js.map → chunk-NNF4RARY.js.map} +0 -0
  371. /package/dist/{chunk-UWT7RCL3.js.map → chunk-NR2OVOTD.js.map} +0 -0
  372. /package/dist/{chunk-LMZAOTRX.js.map → chunk-NVGXYF6K.js.map} +0 -0
  373. /package/dist/{chunk-SIKCVWM3.js.map → chunk-ORQKMXHA.js.map} +0 -0
  374. /package/dist/{chunk-XP4G2DJL.js.map → chunk-Q7YZL7PG.js.map} +0 -0
  375. /package/dist/{chunk-K4NMOWG7.js.map → chunk-R2TAVQGZ.js.map} +0 -0
  376. /package/dist/{chunk-IYELKHBG.js.map → chunk-R5WNYLG4.js.map} +0 -0
  377. /package/dist/{chunk-XFJNCZXA.js.map → chunk-RCSOG2DV.js.map} +0 -0
  378. /package/dist/{chunk-ZBUWO4XH.js.map → chunk-RD2XXQW3.js.map} +0 -0
  379. /package/dist/{chunk-46TND6YK.js.map → chunk-RLS5OPPZ.js.map} +0 -0
  380. /package/dist/{chunk-PHPXAMY3.js.map → chunk-RMLJNHCU.js.map} +0 -0
  381. /package/dist/{chunk-LFXE2G6R.js.map → chunk-TNOJ6O6B.js.map} +0 -0
  382. /package/dist/{chunk-TBHRRQZD.js.map → chunk-U4W4LULB.js.map} +0 -0
  383. /package/dist/{chunk-2WTD5Y34.js.map → chunk-U6IWRZQF.js.map} +0 -0
  384. /package/dist/{chunk-SK2N45LO.js.map → chunk-UMZIQIWN.js.map} +0 -0
  385. /package/dist/{chunk-KXSXZAC2.js.map → chunk-V6PXHQSI.js.map} +0 -0
  386. /package/dist/{chunk-REMR5FHD.js.map → chunk-WD5BQBVY.js.map} +0 -0
  387. /package/dist/{chunk-ROX7LQRR.js.map → chunk-WMVTIKET.js.map} +0 -0
  388. /package/dist/{chunk-I44SNQ34.js.map → chunk-WNJ5SYAG.js.map} +0 -0
  389. /package/dist/{chunk-DDES6J6A.js.map → chunk-XSGO44OV.js.map} +0 -0
  390. /package/dist/{chunk-TUSR5R7I.js.map → chunk-XUB2EK65.js.map} +0 -0
  391. /package/dist/{chunk-JQNO6JCV.js.map → chunk-XUR4QWCS.js.map} +0 -0
  392. /package/dist/{chunk-KOVQ2JGM.js.map → chunk-YD7BQDJ6.js.map} +0 -0
  393. /package/dist/{chunk-B7FVPHCW.js.map → chunk-ZBV5IV5T.js.map} +0 -0
  394. /package/dist/{claim-QHXKN7W6.js.map → claim-6MPQD43X.js.map} +0 -0
  395. /package/dist/{companies-PGVT62JL.js.map → companies-KRF2K4CA.js.map} +0 -0
  396. /package/dist/{complete-TCTR3XVD.js.map → complete-V433ON5C.js.map} +0 -0
  397. /package/dist/{connect-4S7JLICS.js.map → connect-QVIAM3GX.js.map} +0 -0
  398. /package/dist/{conversation-DI4WMEL2.js.map → conversation-VZKBZZGG.js.map} +0 -0
  399. /package/dist/{conversion-report-KL4LIVY5.js.map → conversion-report-REOHVLCI.js.map} +0 -0
  400. /package/dist/{conversion-upload-command-EIKJU5ZW.js.map → conversion-upload-command-ASHA6T6H.js.map} +0 -0
  401. /package/dist/{conversion-writes-MPBCTVSP.js.map → conversion-writes-JU7Q2MUO.js.map} +0 -0
  402. /package/dist/{conversions-ACYT6K7H.js.map → conversions-3ISBR3TS.js.map} +0 -0
  403. /package/dist/{conversions-JTYMFX66.js.map → conversions-ZLC6YTJ5.js.map} +0 -0
  404. /package/dist/{create-VFXEJ3EV.js.map → create-B3QMYSIX.js.map} +0 -0
  405. /package/dist/{create-3QA7X2DD.js.map → create-IFCCMKFT.js.map} +0 -0
  406. /package/dist/{create-AFVT5JTH.js.map → create-R5P6JU5A.js.map} +0 -0
  407. /package/dist/{create-TYCOMVWR.js.map → create-SF6DOGDJ.js.map} +0 -0
  408. /package/dist/{creatives-E6N2YLHE.js.map → creatives-KD7MOCR3.js.map} +0 -0
  409. /package/dist/{creatives-5VY3LT6X.js.map → creatives-U2M4F3D5.js.map} +0 -0
  410. /package/dist/{credentials-34I6ZZWU.js.map → credentials-2KJUKBMF.js.map} +0 -0
  411. /package/dist/{critique-OCVV6N3U.js.map → critique-43OVWKN7.js.map} +0 -0
  412. /package/dist/{critique-JM5QADYW.js.map → critique-JVKJEBAC.js.map} +0 -0
  413. /package/dist/{crm-MNBYNP5R.js.map → crm-GX72E2LT.js.map} +0 -0
  414. /package/dist/{crm-4F3LFOZD.js.map → crm-ZYDNEME5.js.map} +0 -0
  415. /package/dist/{currency-3QTI5RSB.js.map → currency-CGDI2NXI.js.map} +0 -0
  416. /package/dist/{customers-VNYNT2EQ.js.map → customers-P4N4NXLJ.js.map} +0 -0
  417. /package/dist/{delete-UZRHYEPK.js.map → delete-AK5IV44E.js.map} +0 -0
  418. /package/dist/{delete-PRJGFA2U.js.map → delete-RS7RQDUX.js.map} +0 -0
  419. /package/dist/{delete-AZEVPMVO.js.map → delete-S4VKH7IS.js.map} +0 -0
  420. /package/dist/{demographics-JMZA7MB6.js.map → demographics-IKWN2H3V.js.map} +0 -0
  421. /package/dist/{discard-OH3B5P4C.js.map → discard-H6DOHJRG.js.map} +0 -0
  422. /package/dist/{discover-5GLET36U.js.map → discover-L4TPEKGY.js.map} +0 -0
  423. /package/dist/{domain-K3IILLYE.js.map → domain-US4KKAXC.js.map} +0 -0
  424. /package/dist/{draft-LZL6VWHX.js.map → draft-BIQ3ZAYW.js.map} +0 -0
  425. /package/dist/{draft-7RYDPOFS.js.map → draft-IZ4YLQRD.js.map} +0 -0
  426. /package/dist/{draft-2KHUZTIE.js.map → draft-OLFQZBWL.js.map} +0 -0
  427. /package/dist/{draft-BB3UUWJP.js.map → draft-R32RFDCI.js.map} +0 -0
  428. /package/dist/{draft-VXGZDBC7.js.map → draft-Y2QJE2NM.js.map} +0 -0
  429. /package/dist/{facets-PAWOEHOK.js.map → facets-JBZQHN3D.js.map} +0 -0
  430. /package/dist/{feedback-GAGIKZ6B.js.map → feedback-3GU3PAEI.js.map} +0 -0
  431. /package/dist/{feedback-record-ZORDBRV2.js.map → feedback-record-PIJDOJW3.js.map} +0 -0
  432. /package/dist/{fetch-M5GIBURQ.js.map → fetch-GOY6DQRL.js.map} +0 -0
  433. /package/dist/{fit-DGCYW7LN.js.map → fit-TVQ7RK52.js.map} +0 -0
  434. /package/dist/{flows-TD6PNUDM.js.map → flows-274YPU6I.js.map} +0 -0
  435. /package/dist/{fonts-IQ6XOUGU.js.map → fonts-BMUNDGOZ.js.map} +0 -0
  436. /package/dist/{forecast-YXOKAWDZ.js.map → forecast-F2CZSIMP.js.map} +0 -0
  437. /package/dist/{forecast-FACEH4WR.js.map → forecast-W5F2MNOV.js.map} +0 -0
  438. /package/dist/{funnel-CJRFDTCD.js.map → funnel-LEUXICXU.js.map} +0 -0
  439. /package/dist/{generate-D3LUXFJT.js.map → generate-4HWNFAH3.js.map} +0 -0
  440. /package/dist/{get-JRMJLLU5.js.map → get-MGDY5JYZ.js.map} +0 -0
  441. /package/dist/{get-NUL4YJG5.js.map → get-TY6AMFI4.js.map} +0 -0
  442. /package/dist/{google-URYXWN5O.js.map → google-ZTTE34A4.js.map} +0 -0
  443. /package/dist/{google-ads-BB7CF4NV.js.map → google-ads-5ARKO757.js.map} +0 -0
  444. /package/dist/{history-OQAOTEO3.js.map → history-IQ33J5PB.js.map} +0 -0
  445. /package/dist/{history-Q47TKZJS.js.map → history-SU7VQCDJ.js.map} +0 -0
  446. /package/dist/{hubspot-A6O5GVTH.js.map → hubspot-TJED44GO.js.map} +0 -0
  447. /package/dist/{ideas-LD6X753E.js.map → ideas-UTSCGCT6.js.map} +0 -0
  448. /package/dist/{images-XY5DLJEA.js.map → images-ZMZ4WLYH.js.map} +0 -0
  449. /package/dist/{ingest-WWNSA6VZ.js.map → ingest-DGDNZWEM.js.map} +0 -0
  450. /package/dist/{ingest-PUMTHASV.js.map → ingest-SGBJ3NXX.js.map} +0 -0
  451. /package/dist/{insights-PZXFCMX2.js.map → insights-SQLE5NOJ.js.map} +0 -0
  452. /package/dist/{inspect-5PRLZLF5.js.map → inspect-BMQTTKMW.js.map} +0 -0
  453. /package/dist/{intent-4QVVI4FF.js.map → intent-LM36WK45.js.map} +0 -0
  454. /package/dist/{keyword-gap-YMMDRYVK.js.map → keyword-gap-P652ODHN.js.map} +0 -0
  455. /package/dist/{keyword-metrics-FB7FCYK6.js.map → keyword-metrics-MQLGGJBT.js.map} +0 -0
  456. /package/dist/{keywords-for-site-YZYALONY.js.map → keywords-for-site-JL6H2YGU.js.map} +0 -0
  457. /package/dist/{landing-XOCPIOWX.js.map → landing-AJO2BPC2.js.map} +0 -0
  458. /package/dist/{languages-R3Y2IOFU.js.map → languages-HL42MI7H.js.map} +0 -0
  459. /package/dist/{leads-SWINPYEP.js.map → leads-H6JIWVI6.js.map} +0 -0
  460. /package/dist/{learn-6HVDSTTJ.js.map → learn-RGO5KDHS.js.map} +0 -0
  461. /package/dist/{line-item-writes-FG3TY4W4.js.map → line-item-writes-V7AKAHFC.js.map} +0 -0
  462. /package/dist/{line-items-ZNVBFA4H.js.map → line-items-GAMKVVIQ.js.map} +0 -0
  463. /package/dist/{link-IFEXIUDW.js.map → link-Z5AQP6JN.js.map} +0 -0
  464. /package/dist/{linkedin-NINSMEW6.js.map → linkedin-7F6YVXQL.js.map} +0 -0
  465. /package/dist/{list-K65FY6SV.js.map → list-NLGM3QDP.js.map} +0 -0
  466. /package/dist/{list-RJG3FMZR.js.map → list-SZH6TH74.js.map} +0 -0
  467. /package/dist/{list-FR2OVRVL.js.map → list-XZVQWIJN.js.map} +0 -0
  468. /package/dist/{locations-6IH7WGRG.js.map → locations-AEGZ36JH.js.map} +0 -0
  469. /package/dist/{locations-VL2G22Y5.js.map → locations-YA7NZY44.js.map} +0 -0
  470. /package/dist/{log-TAKCMC2C.js.map → log-JM4VLJE4.js.map} +0 -0
  471. /package/dist/{map-DWLEYXSW.js.map → map-HRLUMCR2.js.map} +0 -0
  472. /package/dist/{mcp-NNQZ5B7N.js.map → mcp-T6SAG4XB.js.map} +0 -0
  473. /package/dist/{media-sources-OAFBA62X.js.map → media-sources-7AS3274L.js.map} +0 -0
  474. /package/dist/{members-SS7IBYVE.js.map → members-J5KWXTXY.js.map} +0 -0
  475. /package/dist/{metrics-YLAREC4T.js.map → metrics-VDBJ6KL7.js.map} +0 -0
  476. /package/dist/{models-IH6KE6OH.js.map → models-2DQ5NBMT.js.map} +0 -0
  477. /package/dist/{normalize-WOZTAI6C.js.map → normalize-CHZB4QDD.js.map} +0 -0
  478. /package/dist/{options-PL44BV5E.js.map → options-QLXFLESP.js.map} +0 -0
  479. /package/dist/{organization-SQBODZUK.js.map → organization-KEGKAP4P.js.map} +0 -0
  480. /package/dist/{performance-WRARV3YR.js.map → performance-SPGPGXE5.js.map} +0 -0
  481. /package/dist/{pixels-DWW2TDY2.js.map → pixels-6IUB3Y3H.js.map} +0 -0
  482. /package/dist/{promoted-tweet-writes-CAD3RGU4.js.map → promoted-tweet-writes-TRR3KPRJ.js.map} +0 -0
  483. /package/dist/{promoted-tweets-NYJP3TXL.js.map → promoted-tweets-XRYZNJI2.js.map} +0 -0
  484. /package/dist/{publish-ZW6VHB27.js.map → publish-V5YGMK53.js.map} +0 -0
  485. /package/dist/{query-QRPBV2AR.js.map → query-M3IO54U2.js.map} +0 -0
  486. /package/dist/{reddit-VJTNXORD.js.map → reddit-STSECKMZ.js.map} +0 -0
  487. /package/dist/{refresh-6I52WXG5.js.map → refresh-RQ3C2MHI.js.map} +0 -0
  488. /package/dist/{release-LSSYP2ZJ.js.map → release-UHGU5WBY.js.map} +0 -0
  489. /package/dist/{relevant-pages-2XHS5WP4.js.map → relevant-pages-G6SNC73K.js.map} +0 -0
  490. /package/dist/{remove-K62YJYGT.js.map → remove-LTKICIIF.js.map} +0 -0
  491. /package/dist/{reopen-RPVEBQVR.js.map → reopen-BP5ERELB.js.map} +0 -0
  492. /package/dist/{rerun-ETH2NEEX.js.map → rerun-R3DNEV5U.js.map} +0 -0
  493. /package/dist/{research-6J3EOBAL.js.map → research-GOYMTKZM.js.map} +0 -0
  494. /package/dist/{research-4ASN2KMB.js.map → research-MBAPL35Y.js.map} +0 -0
  495. /package/dist/{reset-YVTYHSTY.js.map → reset-Q62PEGOU.js.map} +0 -0
  496. /package/dist/{reset-ETORO5UO.js.map → reset-SJPGSQ7I.js.map} +0 -0
  497. /package/dist/{resolve-BI7GB5U2.js.map → resolve-R45W7QEQ.js.map} +0 -0
  498. /package/dist/{retry-QZ7YHXF3.js.map → retry-CD2Q2AJN.js.map} +0 -0
  499. /package/dist/{retry-2ZZCKSRW.js.map → retry-NBZ7Q6HK.js.map} +0 -0
  500. /package/dist/{rules-KEHQEXEU.js.map → rules-SZIY67QF.js.map} +0 -0
  501. /package/dist/{rules-add-IDBWO6XV.js.map → rules-add-KTLHU3YD.js.map} +0 -0
  502. /package/dist/{run-KYEOLJFV.js.map → run-HCJKCEOL.js.map} +0 -0
  503. /package/dist/{run-FFASB4YB.js.map → run-QYIUO4NB.js.map} +0 -0
  504. /package/dist/{scaffold-ad-EKCXHZPT.js.map → scaffold-ad-NIVJSO73.js.map} +0 -0
  505. /package/dist/{scaffold-static-ad-MWKTXATN.js.map → scaffold-static-ad-QX2NUXFR.js.map} +0 -0
  506. /package/dist/{scaffold-video-BYPPH352.js.map → scaffold-video-NXBM54K3.js.map} +0 -0
  507. /package/dist/{schedule-4BK2ML6F.js.map → schedule-BSQHXJ5V.js.map} +0 -0
  508. /package/dist/{scheduled-agents-GMGP3G6T.js.map → scheduled-agents-MFLMG34I.js.map} +0 -0
  509. /package/dist/{schema-QPPWADIL.js.map → schema-IWPG3YSN.js.map} +0 -0
  510. /package/dist/{search-GCSQ6CSD.js.map → search-EGI5K77S.js.map} +0 -0
  511. /package/dist/{select-CPFKK57J.js.map → select-Q4S4CPKV.js.map} +0 -0
  512. /package/dist/{set-prompt-TJ3UTNYS.js.map → set-prompt-3MVZW3L6.js.map} +0 -0
  513. /package/dist/{setup-links-C3EUV2RX.js.map → setup-links-5ILQNMFZ.js.map} +0 -0
  514. /package/dist/{site-W5W7FCUD.js.map → site-LBXNVRPE.js.map} +0 -0
  515. /package/dist/{sources-AWODYZDS.js.map → sources-GP4PUTX2.js.map} +0 -0
  516. /package/dist/{sources-SGGLJIOA.js.map → sources-N4UANUHJ.js.map} +0 -0
  517. /package/dist/{stale-KILEXX57.js.map → stale-NT2JRQHY.js.map} +0 -0
  518. /package/dist/{status-KUSLGZD7.js.map → status-GSFMLC6W.js.map} +0 -0
  519. /package/dist/{studio-LMDDQWRY.js.map → studio-YB5WXQYC.js.map} +0 -0
  520. /package/dist/{sync-TCY4NX7J.js.map → sync-LIV7FU4N.js.map} +0 -0
  521. /package/dist/{sync-definition-DGSAZGQZ.js.map → sync-definition-6XPX6VJU.js.map} +0 -0
  522. /package/dist/{tags-ZYVOKGHU.js.map → tags-4JQX7HMT.js.map} +0 -0
  523. /package/dist/{tags-QQLYW2QQ.js.map → tags-6RQVXS47.js.map} +0 -0
  524. /package/dist/{tags-QXRKKRIR.js.map → tags-AAIFQ6LS.js.map} +0 -0
  525. /package/dist/{tags-U5YWCPFW.js.map → tags-F355NMIR.js.map} +0 -0
  526. /package/dist/{tags-IHLO2NDM.js.map → tags-ZHCGHGYC.js.map} +0 -0
  527. /package/dist/{targeting-criteria-AEBSY6OY.js.map → targeting-criteria-6FY2JB3V.js.map} +0 -0
  528. /package/dist/{targets-5Q2OFVXL.js.map → targets-NI7TR4GV.js.map} +0 -0
  529. /package/dist/{testimonials-O52ULRAU.js.map → testimonials-G7CCH7VN.js.map} +0 -0
  530. /package/dist/{themes-26XFWSWC.js.map → themes-PXDXIKYR.js.map} +0 -0
  531. /package/dist/{top-companies-OMGAFFWN.js.map → top-companies-YH2ZJEH5.js.map} +0 -0
  532. /package/dist/{translate-C5LZ6KVN.js.map → translate-27DIFMBU.js.map} +0 -0
  533. /package/dist/{triggers-PTPG6OQ6.js.map → triggers-WYFM7PAH.js.map} +0 -0
  534. /package/dist/{unlink-3BAXM2OH.js.map → unlink-PTWUSM5B.js.map} +0 -0
  535. /package/dist/{unstage-EFW465VN.js.map → unstage-MCM6EZWK.js.map} +0 -0
  536. /package/dist/{update-VTUB2M5I.js.map → update-2BDIJDHN.js.map} +0 -0
  537. /package/dist/{update-5A7Q7S6I.js.map → update-643S2MUW.js.map} +0 -0
  538. /package/dist/{update-XPRHUFBR.js.map → update-GUIP6G3N.js.map} +0 -0
  539. /package/dist/{update-2RCIXWP3.js.map → update-V6E3CIFD.js.map} +0 -0
  540. /package/dist/{upload-Y3TACPEN.js.map → upload-3YJJ5VID.js.map} +0 -0
  541. /package/dist/{url-options-6CNDIUDM.js.map → url-options-LHS4SWWB.js.map} +0 -0
  542. /package/dist/{url-params-ZUYOLAJG.js.map → url-params-2DKIXKHH.js.map} +0 -0
  543. /package/dist/{validate-KPJLIGYY.js.map → validate-AYPLNS7A.js.map} +0 -0
  544. /package/dist/{videos-EFMNE6U2.js.map → videos-KEDR4GG3.js.map} +0 -0
  545. /package/dist/{viewer-check-2GI26EKA.js.map → viewer-check-TSH3SAYJ.js.map} +0 -0
  546. /package/dist/{web-4JGYRY36.js.map → web-UOGBNAHR.js.map} +0 -0
  547. /package/dist/{winning-ads-6SXA4HGB.js.map → winning-ads-SGBI3WHK.js.map} +0 -0
  548. /package/dist/{write-commands-LQXKNBA5.js.map → write-commands-E7JOB4HX.js.map} +0 -0
  549. /package/dist/{x-LUEUC3XO.js.map → x-UNSN57YP.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  avatarsOf,
3
3
  castCompany
4
- } from "./chunk-ZJ6HUCRK.js";
4
+ } from "./chunk-LD4CHA7U.js";
5
5
  import {
6
6
  readAvatars
7
7
  } from "./chunk-LCW3U4EA.js";
@@ -9,7 +9,7 @@ import {
9
9
  memeRegister,
10
10
  readCompanyReading,
11
11
  readCreativeContext
12
- } from "./chunk-64HQDJ2E.js";
12
+ } from "./chunk-7U3V64YT.js";
13
13
  import {
14
14
  holdUnbilledSpend
15
15
  } from "./chunk-5WMTPYKT.js";
@@ -18,21 +18,21 @@ import {
18
18
  } from "./chunk-23H4ZJRP.js";
19
19
  import {
20
20
  bytesOf
21
- } from "./chunk-XLJVJ5TK.js";
21
+ } from "./chunk-5NS4CNF6.js";
22
22
  import {
23
23
  CONCEPT_CARRY_LEVELS,
24
24
  LOAD_BEARING_FIELDS,
25
25
  decisionOf,
26
26
  unfitReasons,
27
27
  withDerivedHave
28
- } from "./chunk-F5IH7G2F.js";
28
+ } from "./chunk-U2452GLO.js";
29
29
  import {
30
30
  askAboutImages,
31
31
  rulesBlock
32
- } from "./chunk-B7FVPHCW.js";
32
+ } from "./chunk-ZBV5IV5T.js";
33
33
  import {
34
34
  AD_DESCRIBE_MODEL
35
- } from "./chunk-F3CZFUXZ.js";
35
+ } from "./chunk-T6ATGN7Y.js";
36
36
  import {
37
37
  apiGet
38
38
  } from "./chunk-XDZVBX6L.js";
@@ -262,9 +262,6 @@ function betLines(bet) {
262
262
  "The ad we are making with it:",
263
263
  `- For: ${bet.who}${bet.market ? `, ${bet.market}` : ""}${bet.awareness ? `; awareness: ${bet.awareness}` : ""}`,
264
264
  `- It says: ${bet.message}${bet.angle ? ` (angle: ${bet.angle})` : ""}`,
265
- ...bet.shows ? [
266
- `- What it shows first: ${bet.shows}. A reference whose picture cannot be remade to show this does not fit (verdict reject), however good its buyer match.`
267
- ] : [],
268
265
  ...bet.quotes && bet.quotes.length > 0 ? [`- In our customers' own words: ${bet.quotes.map((q) => `"${q}"`).join("; ")}`] : []
269
266
  ];
270
267
  }
@@ -601,4 +598,4 @@ export {
601
598
  fitReference,
602
599
  fitCommand
603
600
  };
604
- //# sourceMappingURL=chunk-UTLIQBRY.js.map
601
+ //# sourceMappingURL=chunk-3S5YZWB7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/winning-ads/fit.ts","../src/commands/canvas/library-reference.ts"],"sourcesContent":["import { createHash } from \"node:crypto\";\n/**\n * Does this winning ad fit this company, and what would we have to supply to keep why it won?\n *\n * Audited Sept 2026: of 33 creatives built from winning ads, 12 lost the concept. References\n * were picked whose load-bearing ingredient we could not supply (a gift, a peer's voice, priced\n * tiers, a native disguise our \"big logo, big button\" rule broke), and nothing said so until the\n * finished ad came back as a feature list in a notes app. So before scaffolding, one vision call\n * reads the reference beside what the company has (COMPANY.md, the brand's rules, the offers,\n * products and personas in the Knowledge, its reviews, its Avatars) and says, in layers, why the ad\n * wins, what each load-bearing element needs, whether we have it, and a verdict: use, adapt or\n * reject. Always among them what stops the scroll and the proof (Oct 2026: a meme's fit left out the\n * reaction faces it stopped the scroll with), each kept, replaced with ours or impossible, the rule\n * that forbids one quoted; either impossible is a reject. The agent checks about three candidates and\n * scaffolds only one that fits; the scaffold seeds the ad spec's `concept` from the verdict, and\n * `baker canvas run` refuses a `reject`.\n */\nimport { mkdir, readdir, readFile, writeFile } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport type { AvatarsListResponse } from \"@baker/api\";\nimport { AD_DESCRIBE_MODEL } from \"@baker/canvas-contract\";\nimport { defineCommand } from \"citty\";\nimport sharp from \"sharp\";\nimport { z } from \"zod\";\nimport { apiGet } from \"../../client.ts\";\nimport { memeRegister, readCompanyReading } from \"../../engine/creative-context/company.ts\";\nimport { type ContextReaders, type CreativeContext, readCreativeContext } from \"../../engine/creative-context/index.ts\";\nimport { rulesBlock } from \"../../engine/creative-rules/select.ts\";\nimport { askAboutImages, type ReviewUsage } from \"../../engine/nodes/local/lib/render-review.ts\";\nimport { bytesOf } from \"../../engine/nodes/local/lib/static-review.ts\";\nimport {\n CONCEPT_CARRY_LEVELS,\n decisionOf,\n LOAD_BEARING_FIELDS,\n type MemeAudience,\n unfitReasons,\n withDerivedHave,\n} from \"../../engine/scaffold/static-ad-spec.ts\";\nimport { writeJson } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport { readAvatars } from \"../avatars/transport.ts\";\nimport {\n type DesignRefusal,\n fetchLibraryReference,\n LIBRARY_PLATFORMS,\n type LibraryPlatform,\n notADesignReference,\n resolveSourcePlatform,\n} from \"../canvas/library-reference.ts\";\nimport { findWorkspaceRoot } from \"../canvas/normalize-paths.ts\";\nimport { holdUnbilledSpend } from \"../canvas/unbilled-spend.ts\";\nimport { avatarsOf, castCompany } from \"../creatives/cast-inventory.ts\";\n\nconst Layers = z\n .object({\n disguise: z.string().optional(),\n voice: z.string().optional(),\n trigger: z.string().optional(),\n attention: z.string().optional(),\n logic: z.string().optional(),\n })\n .strip();\n\n/**\n * What the fit model answers. A read that names no element stopping the scroll or no proof is no read\n * of why the ad won, and is asked again (a fit cached before either was asked for is read again too).\n */\nexport const FitAnswerSchema = z\n .object({\n why_it_wins: Layers.default({}),\n load_bearing: z.array(z.preprocess(withDerivedHave, z.object(LOAD_BEARING_FIELDS).strip())).default([]),\n verdict: z.enum([\"use\", \"adapt\", \"reject\"]),\n transfer_note: z.string().optional(),\n brand_presence: z.enum([\"native\", \"standard\"]).optional(),\n recognition: z.string().optional(),\n carry: z.enum(CONCEPT_CARRY_LEVELS).optional(),\n carry_why: z.string().optional(),\n /** Asked only with a bet: would the viewer of the ad we are making stop for this one. */\n our_viewer: z\n .object({ stops: z.enum([\"yes\", \"maybe\", \"no\"]), why: z.string().default(\"\") })\n .strip()\n .optional()\n .catch(undefined),\n })\n .refine((fit) => fit.load_bearing.some((l) => l.job === \"stop\") && fit.load_bearing.some((l) => l.job === \"proof\"), {\n message: \"name what stops the scroll (job: stop) and the proof (job: proof) among load_bearing\",\n })\n // An element it wins on that nothing of ours may carry is a reject, whatever the model's verdict.\n .transform((fit) =>\n fit.verdict !== \"reject\" && fit.load_bearing.some((l) => decisionOf(l) === \"impossible\")\n ? { ...fit, verdict: \"reject\" as const }\n : fit,\n );\n\n/** The ad we are making, as the fit judges a reference for it. */\nexport type FitBet = {\n who: string;\n message: string;\n awareness?: string;\n angle?: string;\n /** Our customers' own words the idea stands on. */\n quotes?: readonly string[];\n /** The viewer's market in words (`describeMarket`). */\n market?: string;\n};\nexport type FitAnswer = z.infer<typeof FitAnswerSchema>;\n\n/** The library's read of the reference, as far as the fit needs it. */\nexport type FitLibraryRead = {\n advertiser?: string;\n format_pattern?: string;\n mechanism?: string;\n awareness?: string;\n offer?: string;\n text?: string[];\n /** The library's evidence that it won: winner, scaled_winner, evergreen, rising. */\n winner_category?: string;\n angle?: string;\n hook_archetype?: string;\n composition?: string;\n};\n\n/** Whether our brand's voice runs memes: the company's reading (`memeRegister`), kept with the fit. */\ntype FitAudience = MemeAudience;\n\n/** The line that tells the fit our brand's voice does not run memes, and why. Pure. */\nfunction audienceLines(audience: FitAudience | undefined): string[] {\n return audience?.memes === \"off_brand\"\n ? [\n `Our brand's voice does not run memes${audience.why ? ` (${audience.why})` : \"\"}: a meme or a reaction face that does the stop job is impossible for us (decision impossible, rule: our brand's voice does not run memes), and the verdict is reject.`,\n ]\n : [];\n}\n\n/** The fit with its verdict set to reject when its scroll-stopper is a meme our audience does not read. Pure. */\nexport function rejectForAudience(fit: FitAnswer, audience: FitAudience | undefined): FitAnswer {\n const reasons = unfitReasons(fit, audience).filter((r) => r.includes(\"does not run memes\"));\n if (reasons.length === 0) return fit;\n return { ...fit, verdict: \"reject\", transfer_note: reasons.join(\"; \") };\n}\n\n/** The key a fit is kept under besides its ad: the bet it was made for and the register it was read in; none for neither. Pure. */\nexport function fitKeyOf(bet: FitBet | undefined, audience: FitAudience | undefined): string | undefined {\n const parts = [bet ? JSON.stringify(bet) : \"\", audience ? `memes:${audience.memes}:${audience.why ?? \"\"}` : \"\"];\n return parts.some(Boolean) ? parts.join(\"|\") : undefined;\n}\n\n/** A person the company may show in its ads: one of its Avatars (`castInventory`'s). */\ntype FitCast = { handle: string; real: boolean; who: string; relation: string; castable: boolean };\n\n/** Who the company may show, as the fit reads it: its team's, founder's and made-for-a-role Avatars; a customer's only in their own testimonial. Pure. */\nfunction castLines(cast: readonly FitCast[]): string[] {\n const ours = cast\n .filter((a) => a.castable)\n .map((a) => `@${a.handle} (${a.real ? \"a real person\" : \"made for a role\"}: ${a.who})`);\n const theirs = cast\n .filter((a) => !a.castable)\n .map(\n (a) =>\n `@${a.handle}: a ${a.relation === \"unknown\" ? \"customer\" : a.relation} (${a.who}); only in an ad quoting their own published words, never a reaction face or a model`,\n );\n return [\n `The people OUR ads may show: our team's, founder's or a made-for-a-role Avatar${ours.length > 0 ? ` (${ours.join(\"; \")})` : \" (none made yet)\"}, unless our rules forbid made-up people.`,\n ...(theirs.length > 0\n ? [\n `Avatars of people who are not ours to cast: ${theirs.join(\"; \")}. A customer's face appears only in a testimonial ad that quotes them.`,\n ]\n : [\"A customer's face appears only in a testimonial ad that quotes them.\"]),\n ];\n}\n\n/**\n * The fit model's prompt: the company first, then the question, the answer a fixed JSON the code\n * reads. The layers are the ones the ad spec's `concept` keeps. Pure.\n */\nexport function buildFitPrompt(input: {\n library: FitLibraryRead;\n knowledge: string;\n bet?: FitBet;\n /** The company's Avatars, when they could be read. */\n cast?: readonly FitCast[];\n /** Whether its audience reads memes. */\n audience?: FitAudience;\n}): string {\n const facts = libraryFacts(input.library);\n return [\n \"The image is a winning ad by another advertiser. We want to build an ad for OUR company on its concept: keep why it wins, change everything else to ours.\",\n ...(facts.length > 0 ? [`The ads library read it as: ${facts.join(\". \")}.`] : []),\n \"\",\n \"What OUR company has (its own documents):\",\n input.knowledge.trim() || \"(nothing written down yet)\",\n ...(input.cast ? castLines(input.cast) : []),\n ...audienceLines(input.audience),\n \"\",\n ...(input.bet ? [...betLines(input.bet), \"\"] : []),\n \"Answer in English:\",\n \"why_it_wins, in layers, one short phrase each, empty when a layer does nothing: disguise (what the ad pretends to be: a note, a tweet, a newspaper, a chat, a plain ad), voice (who speaks and how: a peer, a founder, a brand), trigger (the emotion or need it pulls: a free gift, fear of a hidden loss, status, curiosity), attention (what stops the scroll), logic (why it convinces: reciprocity, social proof, a comparison, a price anchor).\",\n 'load_bearing: the 2-5 elements the ad stops working without (never decoration), always these two: what stops the scroll (job \"stop\": the face or reaction, the joke, the meme people know, the odd photo; when attention names a face, that face is it) and the proof that makes it believed (job \"proof\": the ✗/✓ checklist, the before and after, the rating, the result shown), then any other its why_it_wins rests on (job \"other\"). Name each as it shows in the picture (\"the two reaction faces of a famous sitcom boss\", \"the red ✗ and green ✓ marks before each line\"), never as an idea (\"a contrast\", \"relatable fatigue\").',\n \"Each with: element, job, needs (what it takes to carry it), have (have: we have it as it is; adapt: something of ours can do its job; missing: we have nothing that does), decision (keep: as it is; replace: with something of ours that does the same job, named in ours; impossible: nothing of ours may do its job; a person is never kept as theirs: the advertiser's own people, or a celebrity who is not a meme template, are replaced with one of ours; a famous meme's job is done by a meme our buyer persona knows and relates to, from `baker images meme`, our words on it, whenever our brand's voice runs memes: the proven ad's own template only when it is also the one our persona knows best; a two-panel reaction meme becomes two real templates, top and bottom; never a customer's face: a customer appears only in an ad quoting their own words), ours (what of ours does its job, concretely, one thing of ours, never a choice between two: a meme our buyer persona knows and relates to, from `baker images meme` with our words, our team's, founder's or a made-for-a-role Avatar, the ✓/✗ marks in our colours; never invent an offer, a gift, a price, a review or a customer we do not have), rule (only when one of the company's rules forbids it as it is: that rule, quoted word for word).\",\n \"A rule forbids only what it names: \\\"no stock photography\\\" forbids stock photos, never a meme's reaction face, the company's own people or its Avatars; a rule on logos, buttons or colours says nothing about faces.\",\n \"verdict: use (it transfers as it is), adapt (it transfers with ours in place of theirs), reject (what stops the scroll, the proof or another load-bearing element is impossible for us: without it our version loses why it wins).\",\n \"transfer_note: one sentence on how the idea becomes ours, or why it cannot.\",\n \"brand_presence: native when the disguise only works without looking like an ad (the logo as the sender's picture, no big button), else standard.\",\n 'recognition: what kind of product a stranger must take OUR version for in one second, never its format (\"a trade course\", \"a social media API for developers\", \"a payroll app\").',\n \"carry: what made it a winner, so what OUR ad takes from it: whole_ad (it wins as one piece: its disguise, layout and hook together; ours keeps all three with our words, brand and pictures), layout (its composition or container does the work: ours keeps that arrangement), hook (its opening line or first visual stops the scroll: ours opens on the same pattern in our words), angle (the argument or need it pulls wins, its look is ordinary: ours keeps the argument and looks like ours). carry_why: one sentence on why that level.\",\n ...(input.bet\n ? [\n \"our_viewer: would the viewer of the ad we are making stop on THIS ad's move, made ours? stops: yes, maybe or no; why: one sentence naming what in it would or would not reach them (their age, life, market, what they care about). An ad that wins with another audience is no reference for ours.\",\n ]\n : []),\n \"\",\n `Reply with only this JSON: {\"why_it_wins\":{\"disguise\":\"\",\"voice\":\"\",\"trigger\":\"\",\"attention\":\"\",\"logic\":\"\"},\"load_bearing\":[{\"element\":\"\",\"job\":\"stop|proof|other\",\"needs\":\"\",\"have\":\"have|adapt|missing\",\"decision\":\"keep|replace|impossible\",\"ours\":\"\",\"rule\":\"\"}],\"verdict\":\"use|adapt|reject\",\"transfer_note\":\"\",\"brand_presence\":\"native|standard\",\"recognition\":\"\",\"carry\":\"whole_ad|layout|hook|angle\",\"carry_why\":\"\"${input.bet ? ',\"our_viewer\":{\"stops\":\"yes|maybe|no\",\"why\":\"\"}' : \"\"}}`,\n ].join(\"\\n\");\n}\n\n/** The library's read of a reference, as lines the fit prompt quotes. Pure. */\nfunction libraryFacts(lib: FitLibraryRead): string[] {\n return [\n lib.advertiser ? `advertiser: ${lib.advertiser}` : \"\",\n lib.format_pattern ? `container: ${lib.format_pattern}` : \"\",\n lib.mechanism ? `persuasion mechanism: ${lib.mechanism}` : \"\",\n lib.awareness ? `awareness stage: ${lib.awareness}` : \"\",\n lib.offer ? `offer: ${lib.offer}` : \"\",\n lib.winner_category ? `evidence it won: ${lib.winner_category}` : \"\",\n lib.angle ? `angle: ${lib.angle}` : \"\",\n lib.hook_archetype ? `hook: ${lib.hook_archetype}` : \"\",\n lib.composition ? `composition: ${lib.composition}` : \"\",\n lib.text && lib.text.length > 0 ? `its words: ${lib.text.map((t) => `\"${t}\"`).join(\"; \")}` : \"\",\n ].filter(Boolean);\n}\n\n/** The ad we are making, as the fit reads it: who it is for, what it says, in our customers' words. Pure. */\nfunction betLines(bet: FitBet): string[] {\n return [\n \"The ad we are making with it:\",\n `- For: ${bet.who}${bet.market ? `, ${bet.market}` : \"\"}${bet.awareness ? `; awareness: ${bet.awareness}` : \"\"}`,\n `- It says: ${bet.message}${bet.angle ? ` (angle: ${bet.angle})` : \"\"}`,\n ...(bet.quotes && bet.quotes.length > 0\n ? [`- In our customers' own words: ${bet.quotes.map((q) => `\"${q}\"`).join(\"; \")}`]\n : []),\n ];\n}\n\n/** What the agent does next with a fit. Pure. */\nexport function fitHints(fit: FitAnswer, adId: string, platform = \"meta\", audience?: FitAudience): string[] {\n const reasons = unfitReasons(fit, audience);\n if (fit.verdict === \"reject\" || reasons.length > 0) {\n return [\n `Pick another reference: ${reasons.length > 0 ? reasons.join(\"; \") : \"this one wins on something we cannot supply\"}, and our version would lose why it won.${fit.transfer_note ? ` ${fit.transfer_note}` : \"\"} Do not stop or ask the person: check the next candidates (\\`baker winning-ads fit <adId> --platform ${platform}\\`, about three) and scaffold the first that fits.`,\n ];\n }\n const keeps = fit.load_bearing.map((l) => {\n const job = l.job === \"stop\" ? \"what stops the scroll\" : l.job === \"proof\" ? \"the proof\" : `\"${l.element}\"`;\n return decisionOf(l) === \"replace\" && l.ours?.trim() ? `${job} as \"${l.ours.trim()}\"` : `\"${l.element}\"`;\n });\n return [\n `It fits (${fit.verdict}). Scaffold it: \\`baker canvas scaffold-static-ad --source-ad-id ${adId} --source-platform ${platform} --slug <slug>\\`: prompt.json's \\`concept\\` is seeded from this fit, and every render keeps ${keeps.join(\", \") || \"its idea\"}.`,\n ...(fit.brand_presence === \"native\"\n ? [\n \"The concept is a native disguise: the brand shows as the sender (the logo small, as its picture or signature) and there is no big button; prompt.json says `brand_presence: native`.\",\n ]\n : []),\n ];\n}\n\n/** How the scaffold's hint for a reference built on with no fit opens (`creatives make` drops it once it checked the reference). */\nexport const NO_FIT_HINT = \"No fit was made of this reference\";\n\n/** The ad spec fields a fit seeds: `concept`, `brand_presence`, `recognition`. Pure. */\nexport function conceptFromFit(fit: FitAnswer, adId: string) {\n return {\n concept: {\n reference_ad_id: adId,\n why_it_wins: fit.why_it_wins,\n load_bearing: fit.load_bearing,\n verdict: fit.verdict,\n ...(fit.transfer_note ? { transfer_note: fit.transfer_note } : {}),\n // A fit that names no level (cached before `carry`) is read as the whole ad, and says so.\n carry: fit.carry ?? \"whole_ad\",\n ...(fit.carry_why ? { carry_why: fit.carry_why } : {}),\n },\n ...(fit.brand_presence ? { brand_presence: fit.brand_presence } : {}),\n ...(fit.recognition ? { recognition: fit.recognition } : {}),\n };\n}\n\nconst MAX_DOC_CHARS = 6000;\nconst MAX_ENTRY_CHARS = 1200;\nconst KNOWLEDGE_COLLECTIONS = [\"offers\", \"products\", \"personas\", \"positioning\"] as const;\n\nfunction readText(file: string): Promise<string | null> {\n return readFile(file, \"utf8\").catch(() => null);\n}\n\n/** How the brand speaks and looks and which logo its ads use, as its reading says. Pure. */\nfunction brandLines(brand: CreativeContext[\"brand\"]): string {\n const lines = [\n ...(brand?.voice ? [`Voice: ${brand.voice}`] : []),\n ...(brand?.imagery ? [`Pictures: ${brand.imagery}`] : []),\n ...(brand?.logoUsage ? [`Logo: ${brand.logoUsage}`] : []),\n ];\n return lines.length > 0 ? `The brand:\\n${lines.join(\"\\n\")}` : \"\";\n}\n\n/**\n * What the company has, as the fit reads it: COMPANY.md (the records of what it has), how its brand\n * speaks and looks, every rule it sets for a static ad, and every entry of the offers, products and\n * personas in the Knowledge, each cut short. Never throws.\n */\nexport async function readKnowledge(root: string, readers?: ContextReaders): Promise<string> {\n const parts: string[] = [];\n const company = await readText(path.join(root, \"COMPANY.md\"));\n if (company) parts.push(`COMPANY.md:\\n${company.slice(0, MAX_DOC_CHARS)}`);\n const context = await readCreativeContext(root, { kind: \"static\" }, readers ? { readers } : {});\n const brand = brandLines(context.brand);\n if (brand) parts.push(brand);\n const rules = rulesBlock(context.rules);\n if (rules) parts.push(rules);\n for (const collection of KNOWLEDGE_COLLECTIONS) {\n const dir = path.join(root, \"src\", \"content\", collection);\n const files = ((await readdir(dir, { recursive: true }).catch(() => [])) as string[]).filter((f) =>\n f.endsWith(\".md\"),\n );\n for (const file of files.sort().slice(0, 12)) {\n const text = await readText(path.join(dir, file));\n if (text) parts.push(`${collection}/${file}:\\n${text.slice(0, MAX_ENTRY_CHARS)}`);\n }\n }\n return parts.join(\"\\n\\n\");\n}\n\n/** One review as the testimonials route returns it, read loosely so a new field never empties the list. */\nconst ReviewSchema = z.object({\n reviewText: z.string(),\n sourceType: z.string().optional(),\n rating: z.number().optional(),\n});\n\n/** The company's reviews (`/api/testimonials`, a plain list), as a few lines the fit can weigh proof against. Pure. */\nexport function reviewsForFit(data: unknown): string {\n const list = Array.isArray(data) ? data : [];\n const lines = list.slice(0, 15).flatMap((item) => {\n const review = ReviewSchema.safeParse(item);\n if (!review.success || !review.data.reviewText.trim()) return [];\n const { reviewText, sourceType, rating } = review.data;\n const label = [sourceType, rating !== undefined ? `${rating}★` : \"\"].filter(Boolean).join(\" \");\n return [`- ${label ? `${label} ` : \"\"}\"${reviewText.slice(0, 160)}\"`];\n });\n return lines.length > 0\n ? `Reviews we have (${lines.length}):\\n${lines.join(\"\\n\")}`\n : \"Reviews we have: none on file.\";\n}\n\n/** The company's reviews for the fit. Never throws. */\nasync function readReviews(): Promise<string> {\n try {\n return reviewsForFit(await apiGet<unknown>(\"/api/testimonials\", { limit: \"15\" }));\n } catch {\n return \"\";\n }\n}\n\n/** Where a fit is kept, so the scaffold of the same reference seeds its concept from it. */\nexport function fitCachePath(root: string, platform: string, adId: string): string {\n return path.join(root, \"canvas\", \".cache\", \"fit\", `${platform}-${adId.replace(/[^a-zA-Z0-9_-]/g, \"_\")}.json`);\n}\n\n/** The fit this workspace made of a reference, or null. Never throws. */\nexport function readCachedFit(root: string, platform: string, adId: string): Promise<FitAnswer | null> {\n return readFitFile(fitCachePath(root, platform, adId));\n}\n\n/** A cached fit file's answer, or null. Never throws. */\nasync function readFitFile(file: string): Promise<FitAnswer | null> {\n const raw = await readText(file);\n if (!raw) return null;\n try {\n const parsed = FitAnswerSchema.safeParse(JSON.parse(raw));\n return parsed.success ? parsed.data : null;\n } catch {\n return null;\n }\n}\n\nconst DESCRIPTION =\n \"Does a winning ad fit this company? One vision call reads the reference beside what the company has (COMPANY.md, the brand's rules, the offers, products and personas in the Knowledge, its reviews, its Avatars) and says why the ad wins (disguise, voice, trigger, attention, logic), the elements it stops working without (always what stops the scroll, `job: stop`, and its proof, `job: proof`), what our ad does with each (`decision`: keep, replace with `ours`, or impossible, quoting the `rule` that forbids it), and a verdict: use, adapt or reject (a stop or proof that is impossible for us is a reject). Start here before scaffolding a static ad from the library: check about three candidates, scaffold only one that fits. `baker canvas scaffold-static-ad --source-ad-id <adId>` then seeds prompt.json's `concept` from this verdict, and a run refuses a rejected concept. Example: baker winning-ads fit 1310524137919413 --platform meta. Output is compact; --full adds the whole read.\";\n\nconst ARGS = {\n \"ad-id\": { type: \"positional\", required: true, description: \"The library ad id (from search/winners/feed).\" },\n platform: {\n type: \"string\",\n required: false,\n description: `Which platform the ad id is on: ${LIBRARY_PLATFORMS.join(\"|\")} (default meta). The fit reads a still picture: a static ad (on google, a display ad). A video ad, YouTube included, is read with \\`content\\`; a Google search, Shopping or app ad is refused.`,\n },\n full: {\n type: \"boolean\",\n required: false,\n default: false,\n description: \"Add the whole read: every layer, need and note.\",\n },\n} as const;\n\nregisterSchema({ command: \"winning-ads.fit\", description: DESCRIPTION, args: ARGS });\n\ntype LibraryAd = Awaited<ReturnType<typeof fetchLibraryReference>>;\n\n/** The reference's picture as a JPEG the vision model reads, null when it has none to read. */\n/** A picture as the vision models read it: a JPEG at most 1024 px, base64; null when it cannot be read. */\nexport async function pictureOf(url: string | null | undefined): Promise<string | null> {\n if (!url) return null;\n try {\n const bytes = await bytesOf(url);\n return (await sharp(bytes).resize(1024, 1024, { fit: \"inside\" }).jpeg({ quality: 85 }).toBuffer()).toString(\n \"base64\",\n );\n } catch {\n return null;\n }\n}\n\n/** What the library already read of the ad, to ground the fit. */\nfunction libraryRead(ad: LibraryAd) {\n return {\n ...(ad.advertiser ? { advertiser: ad.advertiser } : {}),\n ...(ad.layout.format_pattern ? { format_pattern: ad.layout.format_pattern } : {}),\n ...(ad.message.mechanism ? { mechanism: ad.message.mechanism } : {}),\n ...(ad.message.awareness_stage ? { awareness: ad.message.awareness_stage } : {}),\n ...(ad.offer.offer_type ? { offer: ad.offer.offer_type } : {}),\n ...(ad.winner_category ? { winner_category: ad.winner_category } : {}),\n ...(ad.angle ? { angle: ad.angle } : {}),\n ...(ad.hook_archetype ? { hook_archetype: ad.hook_archetype } : {}),\n ...(ad.layout.composition ? { composition: ad.layout.composition } : {}),\n text: ad.on_screen_text.flatMap((o) => (o.text ? [o.text] : [])).slice(0, 10),\n };\n}\n\n/**\n * The fit this workspace already made of the ad, else a new one from `ask`, kept for next time:\n * asking again is free, and a `reject` stays a reject (the scaffold's concept gate reads it).\n * With a `bet` key (the ad being made), a fit made for another bet is never reused: one ad can\n * suit one idea's viewer and not another's. The latest fit stays the ad's own, for its readers.\n */\nexport async function fitOnce(\n root: string,\n platform: string,\n adId: string,\n ask: () => Promise<FitAnswer | null>,\n bet?: string,\n): Promise<FitAnswer | null> {\n const betFile = bet ? fitCachePath(root, platform, `${adId}--${betKey(bet)}`) : null;\n const cached = betFile ? await readFitFile(betFile) : await readCachedFit(root, platform, adId);\n if (cached) return cached;\n const fit = await ask();\n if (!fit) return null;\n const text = `${JSON.stringify(fit, null, 2)}\\n`;\n for (const file of [betFile, fitCachePath(root, platform, adId)]) {\n if (!file) continue;\n await mkdir(path.dirname(file), { recursive: true });\n await writeFile(file, text, \"utf8\");\n }\n return fit;\n}\n\n/** A short stable key for a bet's text. Pure. */\nfunction betKey(bet: string): string {\n return createHash(\"sha256\").update(bet).digest(\"hex\").slice(0, 16);\n}\n\n/**\n * The first ask reads one reference for one ad the same way every time: whether what stops its\n * scroll can be ours decides the ad, and on dev the same question came back kept, replaced and\n * impossible on four asks. A reply out of shape is asked again as usual.\n */\nconst FIT_REQUEST = { temperature: 0, seed: 0 };\n\n/** The fit, asked at most twice; null when the model never answered in shape. */\nasync function askFit(jpeg: string, prompt: string, onSpend: (usage: ReviewUsage) => void): Promise<FitAnswer | null> {\n for (let attempt = 0; attempt < 2; attempt++) {\n const reply = await askAboutImages(\n AD_DESCRIBE_MODEL,\n [jpeg],\n prompt,\n onSpend,\n undefined,\n undefined,\n undefined,\n attempt === 0 ? FIT_REQUEST : {},\n );\n const parsed = FitAnswerSchema.safeParse(reply);\n if (parsed.success) return parsed.data;\n }\n return null;\n}\n\nexport type FitFailure =\n | { code: \"NOT_FOUND\" | \"UNAVAILABLE\" | \"VIDEO_REFERENCE\"; message: string; fix: string }\n | DesignRefusal;\n\n/** The library ad and its picture the fit reads, or why it cannot: never exits. */\nasync function readFitReference(\n adId: string,\n platform: LibraryPlatform,\n): Promise<{ ok: true; ad: LibraryAd; jpeg: string } | { ok: false; failure: FitFailure }> {\n let ad: LibraryAd;\n try {\n ad = await fetchLibraryReference(adId, platform);\n } catch (e) {\n return {\n ok: false,\n failure: {\n code: \"NOT_FOUND\",\n message: `The library could not return ad ${adId} on ${platform} (${e instanceof Error ? e.message : String(e)}).`,\n fix: \"Check the ad id and --platform against `baker winning-ads search`.\",\n },\n };\n }\n // A search text ad, a Shopping listing or an app-install ad is no design: never billed a fit.\n const refusal = notADesignReference(platform, adId, ad);\n if (refusal) return { ok: false, failure: refusal };\n // The fit reads one still picture: a video is studied whole with `content`, never fetched here.\n if (ad.format === \"video\") {\n return {\n ok: false,\n failure: {\n code: \"VIDEO_REFERENCE\",\n message: `Ad ${adId} is a video: the fit reads still pictures.`,\n fix: `Read it with \\`baker winning-ads content ${adId} --platform ${platform}\\` (transcript, on-screen text, pacing) and build the video with \\`baker canvas scaffold-ad\\`. For a static, pick a static ad.`,\n },\n };\n }\n const jpeg = await pictureOf(ad.media_url);\n if (!jpeg) {\n return {\n ok: false,\n failure: {\n code: \"NOT_FOUND\",\n message: `Ad ${adId} has no picture the fit can read.`,\n fix: \"Pick a static ad with a picture.\",\n },\n };\n }\n return { ok: true, ad, jpeg };\n}\n\n/**\n * The fit of one library ad for this workspace's company: cached, else one vision call. Never\n * exits; a reference the library cannot return, one with no picture, or a model that does not\n * answer is a failure the caller reports.\n */\nexport async function fitReference(\n root: string,\n platform: LibraryPlatform,\n adId: string,\n bet?: FitBet,\n): Promise<{ ok: true; fit: FitAnswer } | { ok: false; error: FitFailure }> {\n let failure = null as FitFailure | null;\n // Read before the cache: a fit made in another register is read again.\n const audience = memeRegister(await readCompanyReading(root).catch(() => null));\n const askFor = async () => {\n const read = await readFitReference(adId, platform);\n if (!read.ok) {\n failure = read.failure;\n return null;\n }\n const { ad, jpeg } = read;\n const knowledge = [await readKnowledge(root), await readReviews()].filter(Boolean).join(\"\\n\\n\");\n // Who we may show decides whether a face the reference stops the scroll with can be ours.\n const company = await castCompany(root);\n const cast = await readAvatars<AvatarsListResponse>(\"/api/avatars\", { status: \"ready\" }).then(\n (response) => avatarsOf(response, company),\n () => undefined,\n );\n const prompt = buildFitPrompt({\n library: libraryRead(ad),\n knowledge,\n ...(bet ? { bet } : {}),\n ...(cast ? { cast } : {}),\n ...(audience ? { audience } : {}),\n });\n const spent: ReviewUsage[] = [];\n const answer = await askFit(jpeg, prompt, (u) => spent.push(u));\n // No run record carries this call: the next render of this workspace bills it.\n await holdUnbilledSpend(path.join(root, \"canvas\", \".cache\"), spent);\n return answer && rejectForAudience(answer, audience);\n };\n // With no bet the ad's own file is the one `make` kept: a register-only key would look elsewhere and overwrite it.\n const fit = await fitOnce(root, platform, adId, askFor, bet ? fitKeyOf(bet, audience) : undefined);\n if (fit) return { ok: true, fit };\n return {\n ok: false,\n error: failure ?? {\n code: \"UNAVAILABLE\",\n message: \"The fit model did not answer (no gateway key here, or it failed twice).\",\n fix: \"Run it again, or read the reference yourself with `baker winning-ads content <adId> --full` and write prompt.json's `concept` by hand.\",\n },\n };\n}\n\nexport const fitCommand = defineCommand({\n meta: { name: \"fit\", description: DESCRIPTION },\n args: ARGS,\n async run({ args }) {\n const adId = String(args[\"ad-id\"]);\n const platformResult = resolveSourcePlatform(args.platform ? String(args.platform) : undefined);\n if (!platformResult.ok) {\n writeJson({ ok: false, error: { code: \"INVALID_ARGUMENT\", message: platformResult.message } });\n process.exit(1);\n }\n const platform = platformResult.platform;\n const root = findWorkspaceRoot(process.cwd()) ?? process.cwd();\n const result = await fitReference(root, platform, adId);\n if (!result.ok) {\n writeJson({ ok: false, error: result.error });\n process.exit(1);\n }\n const fit = result.fit;\n const why = [fit.why_it_wins.disguise, fit.why_it_wins.trigger, fit.why_it_wins.logic].filter(Boolean).join(\"; \");\n writeJson({\n ok: true,\n data: {\n ad_id: adId,\n verdict: fit.verdict,\n why_it_wins: why,\n load_bearing: fit.load_bearing.map((l) => ({\n element: l.element,\n ...(l.job ? { job: l.job } : {}),\n decision: decisionOf(l),\n ...(l.ours ? { ours: l.ours } : {}),\n ...(l.rule ? { rule: l.rule } : {}),\n })),\n ...(fit.brand_presence ? { brand_presence: fit.brand_presence } : {}),\n ...(fit.carry ? { carry: fit.carry } : {}),\n ...(args.full ? { read: fit } : {}),\n },\n hints: fitHints(fit, adId, platform, memeRegister(await readCompanyReading(root).catch(() => null))),\n });\n },\n});\n","import type { AdContent, AdContentResponse } from \"@baker/api/ad-library\";\nimport { apiGet } from \"../../client.ts\";\n\n/**\n * The winners library's structured read of the reference ad, carried into the scaffold by id.\n *\n * Before this, the reference reached `scaffold-static-ad` as a picture plus free text, and the\n * describe pass re-read from pixels what ad-dna had already extracted: the container\n * (`format_pattern`), the composition, the persuasion mechanism, the offer, every text block\n * with its role. That read is fetched here the way `baker winning-ads content <adId> --full`\n * fetches it, projected to what the render can act on, and written into `prompt.json` as\n * `reference`, so the agent and the render prompt read one account of why the ad won.\n */\n\n/** The platforms the library indexes: the `sourcePlatform` enum of the scaffold's creatives collection. */\nexport const LIBRARY_PLATFORMS = [\"meta\", \"linkedin\", \"tiktok\", \"google\"] as const;\nexport type LibraryPlatform = (typeof LIBRARY_PLATFORMS)[number];\n\nexport type SourcePlatformResolution = { ok: true; platform: LibraryPlatform } | { ok: false; message: string };\n\n/** `--source-platform`, default meta; an unknown value is refused, never mapped to a guess. */\nexport function resolveSourcePlatform(flag: string | undefined): SourcePlatformResolution {\n const value = flag?.trim();\n if (!value) return { ok: true, platform: \"meta\" };\n if ((LIBRARY_PLATFORMS as readonly string[]).includes(value)) return { ok: true, platform: value as LibraryPlatform };\n return {\n ok: false,\n message: `--source-platform \"${value}\" is not a library platform. Use one of: ${LIBRARY_PLATFORMS.join(\", \")}.`,\n };\n}\n\nconst PICK_A_DESIGN =\n \"To build a static on a proven design, pick a Google display ad or a static from another platform (`baker winning-ads search --format static`); a YouTube ad is a video reference, read with `baker winning-ads content`.\";\n\n/** Why an ad cannot be built on: what the agent reads it for instead. */\nexport type DesignRefusal = { code: \"NOT_A_DESIGN_REFERENCE\"; message: string; fix: string };\n\n/** What a reference is judged on: its format and, on Google, which kind of ad it is. */\nexport type ReferenceKind = Pick<AdContent, \"format\"> & Partial<Pick<AdContent, \"google_ad_type\">>;\n\n/**\n * Why a library ad is no design to build on, else null. Only Google's display (image) and YouTube\n * (video) ads are: a search ad is words, and a Shopping listing or an app-install ad is assembled by\n * Google from a feed or a store page. An ad whose kind the library does not say is judged by its\n * format alone. Pure.\n */\nexport function notADesignReference(\n platform: LibraryPlatform,\n adId: string,\n ad: ReferenceKind,\n): DesignRefusal | null {\n if (platform !== \"google\") return null;\n if (ad.format === \"text\" || ad.google_ad_type === \"search\") {\n return {\n code: \"NOT_A_DESIGN_REFERENCE\",\n message: `Google ad ${adId} is a search text ad: a reference for wording, not a design.`,\n fix: `Read it with \\`baker winning-ads content ${adId} --platform google\\` and write our own copy. ${PICK_A_DESIGN}`,\n };\n }\n const assembled =\n ad.google_ad_type === \"shopping\"\n ? \"a Shopping product listing, which Google builds from a product feed\"\n : ad.google_ad_type === \"app\"\n ? \"an app-install ad, which Google builds from the app's store page\"\n : null;\n if (assembled) {\n return {\n code: \"NOT_A_DESIGN_REFERENCE\",\n message: `Google ad ${adId} is ${assembled}: there is no design of the advertiser's to build on.`,\n fix: PICK_A_DESIGN,\n };\n }\n return null;\n}\n\nexport type ReferenceTextBlock = { text: string; role?: string; position?: string };\n\n/** The `reference` block `prompt.json` carries: the library's read of the source ad, filled fields only. */\nexport type LibraryReference = {\n ad_id: string;\n platform: LibraryPlatform;\n advertiser?: string;\n advertiser_id?: string;\n format_pattern?: string;\n layout: Record<string, unknown>;\n message: Record<string, unknown>;\n offer: Record<string, unknown>;\n text_blocks: ReferenceTextBlock[];\n copy: Record<string, unknown>;\n};\n\n/** Fetch one ad's content as `baker winning-ads content --full` does. Throws on any failure; the caller degrades. */\nexport async function fetchLibraryReference(adId: string, platform: LibraryPlatform): Promise<AdContent> {\n const data = await apiGet<AdContentResponse>(\"/api/ad-library/ad-content\", { id: adId, platform });\n if (!data?.ad) throw new Error(`the library returned no ad for ${adId} on ${platform}`);\n return data.ad;\n}\n\n/** Only what the library found: null, undefined and empty lists are absences, never findings. */\nfunction filled(entries: Record<string, unknown>): Record<string, unknown> {\n return Object.fromEntries(\n Object.entries(entries).filter(([, v]) => v !== null && v !== undefined && !(Array.isArray(v) && v.length === 0)),\n );\n}\n\n/** Project the library's ad content to the block the blueprint and the render prompt read. */\nexport function libraryReferenceBlock(\n ad: AdContent,\n ids: { adId: string; platform: LibraryPlatform; advertiserId: string | undefined },\n): LibraryReference {\n const textBlocks: ReferenceTextBlock[] = ad.on_screen_text.flatMap((o) =>\n o.text\n ? [{ text: o.text, ...(o.role ? { role: o.role } : {}), ...(o.position ? { position: o.position } : {}) }]\n : [],\n );\n const advertiser = ad.advertiser ?? undefined;\n const advertiserId = ids.advertiserId ?? ad.advertiser_id ?? undefined;\n return {\n ad_id: ids.adId,\n platform: ids.platform,\n ...(advertiser ? { advertiser } : {}),\n ...(advertiserId ? { advertiser_id: advertiserId } : {}),\n ...(ad.layout.format_pattern ? { format_pattern: ad.layout.format_pattern } : {}),\n layout: filled({\n composition: ad.layout.composition,\n focal_subject: ad.layout.focal_subject,\n aspect_ratio: ad.layout.aspect_ratio,\n background: ad.layout.background,\n palette_mood: ad.layout.palette_mood,\n colors: ad.layout.colors,\n production: ad.layout.production,\n aesthetic: ad.layout.aesthetic,\n cta_in_image: ad.layout.cta_in_image,\n markers: ad.layout.markers,\n }),\n message: filled({\n mechanism: ad.message.mechanism,\n awareness: ad.message.awareness_stage,\n sophistication: ad.message.sophistication,\n angle: ad.angle,\n hook_archetype: ad.hook_archetype,\n pain_points: ad.message.pain_points,\n desires: ad.message.desires,\n value_props: ad.message.value_props,\n objections_handled: ad.message.objections_handled,\n proof: ad.message.proof,\n risk_reversal: ad.message.risk_reversal,\n }),\n offer: filled({\n offer_type: ad.offer.offer_type,\n pricing_model: ad.offer.pricing_model,\n entry_price: ad.offer.entry_price,\n no_credit_card: ad.offer.no_credit_card,\n guarantee: ad.offer.guarantee,\n guarantee_days: ad.offer.guarantee_days,\n urgency: ad.offer.urgency,\n bonus: ad.offer.bonus,\n }),\n text_blocks: textBlocks,\n copy: filled({ primary_text: ad.primary_text, headline: ad.headline, cta: ad.cta }),\n };\n}\n\n/**\n * The `context` the describe pass gets: the agent's own provenance plus what the library\n * already read off this ad. The describe pass still reads the pixels (the layout grid, the\n * fonts, the expressions), but it is told the container, the mechanism and the words up front\n * so its blueprint and the library's read cannot disagree on what the ad is.\n */\nexport function referenceDescribeContext(\n reference: LibraryReference | undefined,\n agentContext: string | undefined,\n): string | undefined {\n const own = agentContext?.trim() || undefined;\n if (!reference) return own;\n const facts: string[] = [];\n if (reference.advertiser) facts.push(`advertiser: ${reference.advertiser}`);\n if (reference.format_pattern) facts.push(`container (format_pattern): ${reference.format_pattern}`);\n if (typeof reference.layout.composition === \"string\") facts.push(`composition: ${reference.layout.composition}`);\n if (typeof reference.message.mechanism === \"string\") facts.push(`persuasion mechanism: ${reference.message.mechanism}`);\n if (typeof reference.message.awareness === \"string\") facts.push(`awareness stage: ${reference.message.awareness}`);\n if (typeof reference.offer.offer_type === \"string\") facts.push(`offer: ${reference.offer.offer_type}`);\n if (reference.text_blocks.length > 0) {\n facts.push(\n `text blocks: ${reference.text_blocks.map((b) => `\"${b.text}\"${b.role ? ` (${b.role})` : \"\"}`).join(\"; \")}`,\n );\n }\n const library =\n `The ads library has already read this ad: ${facts.join(\". \")}. ` +\n \"Your blueprint must agree with it on the container and the mechanism; refine and detail them, never contradict them, and transcribe the text blocks exactly.\";\n return own ? `${own}. ${library}` : library;\n}\n\n/**\n * Write the library's read into the blueprint as `reference`. Never a mechanism: the library's\n * container and persuasion label (\"comparison_table container carrying us_vs_them\") name the\n * format, not why the ad won, and seeded as the mechanism they hid that the read found none\n * (audited Sept 2026). Why it wins is `baker winning-ads fit`'s to say.\n */\nexport function mergeReferenceIntoBlueprint(blueprint: unknown, reference: LibraryReference | undefined): unknown {\n if (!reference || !blueprint || typeof blueprint !== \"object\" || Array.isArray(blueprint)) return blueprint;\n return { ...(blueprint as Record<string, unknown>), reference };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,kBAAkB;AAiB3B,SAAS,OAAO,SAAS,UAAU,iBAAiB;AACpD,OAAO,UAAU;AAGjB,SAAS,qBAAqB;AAC9B,OAAO,WAAW;AAClB,SAAS,SAAS;;;ACRX,IAAM,oBAAoB,CAAC,QAAQ,YAAY,UAAU,QAAQ;AAMjE,SAAS,sBAAsB,MAAoD;AACxF,QAAM,QAAQ,MAAM,KAAK;AACzB,MAAI,CAAC,MAAO,QAAO,EAAE,IAAI,MAAM,UAAU,OAAO;AAChD,MAAK,kBAAwC,SAAS,KAAK,EAAG,QAAO,EAAE,IAAI,MAAM,UAAU,MAAyB;AACpH,SAAO;AAAA,IACL,IAAI;AAAA,IACJ,SAAS,sBAAsB,KAAK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A,QACxC,GAAI,KAAK,OAAO,EAAE,MAAM,IAAI,IAAI,CAAC;AAAA,MACnC;AAAA,MACA,OAAO,SAAS,KAAK,MAAM,UAAU,aAAa,MAAM,mBAAmB,IAAI,EAAE,MAAM,MAAM,IAAI,CAAC,CAAC;AAAA,IACrG,CAAC;AAAA,EACH;AACF,CAAC;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  chatgptDraftOpInputSchema,
3
3
  chatgptFailure
4
- } from "./chunk-3BKNGXCL.js";
4
+ } from "./chunk-IG627WWY.js";
5
5
  import {
6
6
  writeJsonEnvelope
7
7
  } from "./chunk-SWL4AAPP.js";
@@ -271,4 +271,4 @@ export {
271
271
  statusCommand,
272
272
  productFiltersArg
273
273
  };
274
- //# sourceMappingURL=chunk-5SRHACZW.js.map
274
+ //# sourceMappingURL=chunk-3UXMQ3K2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseRefExpr
3
- } from "./chunk-QTLZXIF3.js";
3
+ } from "./chunk-ELL2IQMF.js";
4
4
  import {
5
5
  collectAssetRefLikes,
6
6
  isPersistedAssetRef
@@ -164,4 +164,4 @@ export {
164
164
  buildInitialRunRecord,
165
165
  buildFailedRunRecord
166
166
  };
167
- //# sourceMappingURL=chunk-U63S2JWI.js.map
167
+ //# sourceMappingURL=chunk-4VWTIT5C.js.map
@@ -5,13 +5,13 @@ import {
5
5
  confirmBlocking,
6
6
  cutByFrame,
7
7
  reviewAgainstRules
8
- } from "./chunk-I2WRZJAC.js";
8
+ } from "./chunk-6KK26F2T.js";
9
9
  import {
10
10
  citedBy,
11
11
  citedPlatforms,
12
12
  jevCitationJudge,
13
13
  namedPlatform
14
- } from "./chunk-F5IH7G2F.js";
14
+ } from "./chunk-U2452GLO.js";
15
15
  import {
16
16
  FINDING_DEFECTS,
17
17
  FINDING_ELEMENTS,
@@ -20,12 +20,12 @@ import {
20
20
  askAboutImages,
21
21
  askAboutStills,
22
22
  reviewedRules
23
- } from "./chunk-B7FVPHCW.js";
23
+ } from "./chunk-ZBV5IV5T.js";
24
24
  import {
25
25
  AD_PLACEMENTS,
26
26
  TEXT_BOX_READER_MODEL,
27
27
  verticalCover
28
- } from "./chunk-F3CZFUXZ.js";
28
+ } from "./chunk-T6ATGN7Y.js";
29
29
  import {
30
30
  askJev
31
31
  } from "./chunk-DWX44QL6.js";
@@ -1515,4 +1515,4 @@ export {
1515
1515
  checkStaticImage,
1516
1516
  reviewRenderedStatic
1517
1517
  };
1518
- //# sourceMappingURL=chunk-XLJVJ5TK.js.map
1518
+ //# sourceMappingURL=chunk-5NS4CNF6.js.map
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  readInsights
3
- } from "./chunk-QKABEX3F.js";
3
+ } from "./chunk-BSEB55E6.js";
4
4
  import {
5
5
  heldRules,
6
6
  readAdWords,
7
7
  ruleGate
8
- } from "./chunk-XFJNCZXA.js";
8
+ } from "./chunk-RCSOG2DV.js";
9
9
  import {
10
10
  avatarRelation,
11
11
  castCompany
12
- } from "./chunk-ZJ6HUCRK.js";
12
+ } from "./chunk-LD4CHA7U.js";
13
13
  import {
14
14
  readAvatars
15
15
  } from "./chunk-LCW3U4EA.js";
16
16
  import {
17
17
  frontmatterOf,
18
18
  sourcesClaims
19
- } from "./chunk-TY4BDVLG.js";
19
+ } from "./chunk-MMVLRUMK.js";
20
20
  import {
21
21
  GENERIC_FAMILIES,
22
22
  resolveBrandFaces
23
- } from "./chunk-K4NMOWG7.js";
23
+ } from "./chunk-R2TAVQGZ.js";
24
24
  import {
25
25
  LOGO_FILE,
26
26
  readWorkspaceBrandDoc
27
- } from "./chunk-RGX7AQ2K.js";
27
+ } from "./chunk-AS5VL32C.js";
28
28
  import {
29
29
  holdUnbilledSpend
30
30
  } from "./chunk-5WMTPYKT.js";
@@ -98,10 +98,10 @@ import {
98
98
  staticRenderNodes,
99
99
  trimmedRenderBand,
100
100
  wordCount
101
- } from "./chunk-QTLZXIF3.js";
101
+ } from "./chunk-ELL2IQMF.js";
102
102
  import {
103
103
  blockingArea
104
- } from "./chunk-XLJVJ5TK.js";
104
+ } from "./chunk-5NS4CNF6.js";
105
105
  import {
106
106
  ACTOR_SHEET_MODEL,
107
107
  AD_SPEC_SCHEMA,
@@ -142,13 +142,13 @@ import {
142
142
  unwrittenProblems,
143
143
  winningMechanisms,
144
144
  withRenderedLettering
145
- } from "./chunk-F5IH7G2F.js";
145
+ } from "./chunk-U2452GLO.js";
146
146
  import {
147
147
  askAboutText,
148
148
  briefRules,
149
149
  rulesBlock,
150
150
  withoutRulesDeep
151
- } from "./chunk-B7FVPHCW.js";
151
+ } from "./chunk-ZBV5IV5T.js";
152
152
  import {
153
153
  AD_DESCRIBE_MODEL,
154
154
  AD_IMAGE_MODEL,
@@ -178,7 +178,7 @@ import {
178
178
  platformFormats,
179
179
  supportedAspectRatios,
180
180
  supportsLastFrame
181
- } from "./chunk-F3CZFUXZ.js";
181
+ } from "./chunk-T6ATGN7Y.js";
182
182
  import {
183
183
  AWARENESS_VALUES,
184
184
  marketFromCompanyDoc
@@ -196,7 +196,7 @@ import {
196
196
  } from "./chunk-2FSEESJU.js";
197
197
  import {
198
198
  brandTokensSchema
199
- } from "./chunk-2QSPPWOU.js";
199
+ } from "./chunk-FRK7SSEH.js";
200
200
  import {
201
201
  apiPost
202
202
  } from "./chunk-XDZVBX6L.js";
@@ -2635,82 +2635,20 @@ async function readNamedTypefaces(root = ".", opts = {}) {
2635
2635
  return namedTypefaces({ tokensJson, brandDoc });
2636
2636
  }
2637
2637
  var MARK_FILE = /isotype|isologo|symbol|logomark|brandmark|(^|[-_ ])(mark|icon|avatar)([-_ .]|$)/i;
2638
- var VARIANT_WORDS = new Set(
2639
- "logo logos logotype logotipo lockup wordmark isotype isotipo isologo symbol logomark brandmark mark icon avatar favicon brand primary secondary main default full horizontal vertical stacked square round circle alt outline transparent light dark white black mono inverse inverted negative positive negativo positivo reverse reversed color colour on blanco negro negra claro clara oscuro oscura rgb cmyk small large sm md lg".split(" ")
2640
- );
2641
- function artworkOwner(file, slug) {
2642
- const rest = path.basename(file).replace(/\.[a-z0-9]+$/i, "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().split(/[^a-z0-9]+/).filter((w) => w && !VARIANT_WORDS.has(w) && !/^\d+(x|px|w|h)?$/.test(w)).join("");
2643
- return slug.length > 2 ? rest.replace(slug, "") : rest;
2644
- }
2645
- function ownLogoFamily(files, slug) {
2646
- const families = /* @__PURE__ */ new Map();
2647
- for (const f of files) {
2648
- const owner = artworkOwner(f, slug);
2649
- families.set(owner, [...families.get(owner) ?? [], f]);
2650
- }
2651
- const own = families.get("");
2652
- if (own) return own;
2653
- const picked = pickBrandMark(files.map((f) => path.basename(f)));
2654
- const ranked = [...families.values()].sort(
2655
- (a, b) => b.length - a.length || Number(b.some((f) => path.basename(f) === picked)) - Number(a.some((f) => path.basename(f) === picked))
2656
- );
2657
- return ranked[0] ?? [];
2658
- }
2659
2638
  async function readBrandLogoFiles(root, brandName) {
2660
2639
  const dir = path.join(root, BRAND_DIR, "logos");
2640
+ const files = (await readdir(dir).catch(() => [])).filter((f) => /\.(png|jpe?g|webp|svg)$/i.test(f)).sort();
2661
2641
  const slug = (brandName ?? "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "");
2662
- const named2 = await tokenLogos(root);
2663
- let candidates;
2664
- if (named2.length > 0) {
2665
- candidates = named2;
2666
- } else {
2667
- const files = (await readdir(dir).catch(() => [])).filter((f) => /\.(png|jpe?g|webp|svg)$/i.test(f)).sort();
2668
- const ours = (f) => LOGO_FILE.test(f) || slug.length > 2 && f.toLowerCase().replace(/[^a-z0-9]/g, "").includes(slug);
2669
- candidates = ownLogoFamily(files.filter(ours), slug).map((f) => path.join(dir, f));
2670
- }
2671
- const notes = await Promise.all(
2672
- [path.join(root, BRAND_DIR, "BRAND.md"), path.join(dir, "README.md")].map(
2673
- (f) => readFile(f, "utf8").catch(() => "")
2674
- )
2675
- );
2676
- const retired = retiredLogos(notes.join("\n"));
2642
+ const ours = (f) => LOGO_FILE.test(f) || slug.length > 2 && f.toLowerCase().replace(/[^a-z0-9]/g, "").includes(slug);
2677
2643
  const real = [];
2678
- for (const full of candidates) {
2679
- if (retired.has(path.basename(full).toLowerCase())) continue;
2644
+ for (const f of files.filter(ours)) {
2645
+ const full = path.join(dir, f);
2680
2646
  if (await markIsReal(full, root)) real.push(full);
2681
2647
  }
2682
2648
  const mark = real.find((f) => MARK_FILE.test(path.basename(f)));
2683
2649
  const logos = real.filter((f) => f !== mark);
2684
2650
  return { logos: logos.length > 0 ? logos : real, ...mark ? { mark } : {} };
2685
2651
  }
2686
- var RETIRED = /\b(retired|deprecated|legacy|outdated|obsolete|no longer (?:used|in use)|retirad[oa]|obsolet[oa]|antigu[oa])\b/i;
2687
- function retiredLogos(notes) {
2688
- const out = /* @__PURE__ */ new Set();
2689
- for (const line of notes.split("\n")) {
2690
- if (!RETIRED.test(line)) continue;
2691
- const named2 = [...line.matchAll(/[\w.-]+\.(?:png|jpe?g|webp|svg)\b/gi)].map((m) => m[0].toLowerCase());
2692
- if (new Set(named2).size === 1 && named2[0]) out.add(named2[0]);
2693
- }
2694
- return out;
2695
- }
2696
- async function tokenLogos(root) {
2697
- const raw = await readFile(path.join(root, BRAND_DIR, "tokens.json"), "utf8").catch(() => null);
2698
- if (!raw) return [];
2699
- let json2;
2700
- try {
2701
- json2 = JSON.parse(raw);
2702
- } catch {
2703
- return [];
2704
- }
2705
- const parsed = brandTokensSchema.safeParse(json2);
2706
- if (!parsed.success) return [];
2707
- const out = [];
2708
- for (const logo of parsed.data.logos) {
2709
- const abs = path.join(root, logo.path);
2710
- if (/\.(png|jpe?g|webp|svg)$/i.test(abs) && await exists(abs) && !out.includes(abs)) out.push(abs);
2711
- }
2712
- return out;
2713
- }
2714
2652
 
2715
2653
  // src/engine/scaffold/static-native-graph.ts
2716
2654
  var NATIVE_PHOTO_ROLE = "native_photo";
@@ -2770,10 +2708,10 @@ function nativeCanvas(canvas, spec, opts) {
2770
2708
  const kept = nodesOf3(canvas).filter(
2771
2709
  (n) => n.tags?.role === STATIC_AD_ROLE || n.id === "original" || n.id === "font_headline"
2772
2710
  );
2773
- const logos = logosWired(canvas, opts).map((where, i) => ({
2711
+ const logos = opts.logos.map((file, i) => ({
2774
2712
  id: logoId(i),
2775
2713
  type: "ingest",
2776
- params: { ...where, expect: "image" },
2714
+ params: { ...locate(file, opts), expect: "image" },
2777
2715
  ...i === 0 ? { tags: { role: BRAND_LOGO_ROLE } } : {}
2778
2716
  }));
2779
2717
  const mark = opts.mark ? [
@@ -2837,21 +2775,6 @@ function nativeCanvas(canvas, spec, opts) {
2837
2775
  };
2838
2776
  return { ...canvas, nodes: [...kept, ...logos, ...mark, ...photos, ...screens, final] };
2839
2777
  }
2840
- function placeOf(where) {
2841
- return where.source === "url" ? where.url : where.path;
2842
- }
2843
- function logosWired(canvas, opts) {
2844
- const own = opts.logos.map((file) => locate(file, opts));
2845
- const ownPlaces = new Set(own.map(placeOf));
2846
- const chosen = nodesOf3(canvas).filter((n) => n.type === "ingest" && typeof n.id === "string" && /^brand_logo(_\d+)?$/.test(n.id)).flatMap((n) => {
2847
- const p = n.params;
2848
- const where = p?.source === "url" && typeof p.url === "string" ? locate(p.url, opts) : p?.source === "path" && typeof p.path === "string" ? locate(p.path, opts) : null;
2849
- if (!where || !ownPlaces.has(placeOf(where))) return [];
2850
- ownPlaces.delete(placeOf(where));
2851
- return [where];
2852
- });
2853
- return chosen.length > 0 ? chosen : own;
2854
- }
2855
2778
  function locate(file, opts) {
2856
2779
  return /^https?:\/\//i.test(file) ? { source: "url", url: file } : opts.resolve(file);
2857
2780
  }
@@ -7098,7 +7021,6 @@ function lookFirst(reference) {
7098
7021
  }
7099
7022
  function planFormat(format, reference) {
7100
7023
  const theirs = reference?.container;
7101
- if (!format) return theirs ? `the format (the proven ad's ${theirs.replace(/_/g, " ")})` : "the format";
7102
7024
  if (!theirs || theirs === format) return `the format (${format})`;
7103
7025
  const words = (f) => f.replace(/_/g, " ");
7104
7026
  return `the format (the proven ad is a ${words(theirs)}, the idea named a ${words(format)}: keep the proven ad's unless the idea's says the message better, and say which)`;
@@ -7213,7 +7135,7 @@ function memesRecord(audience) {
7213
7135
  }
7214
7136
  function thinkingOutline(input) {
7215
7137
  const { idea, reference } = input;
7216
- const sections = [["The moment in the feed", feedMoment(idea, reference, input.audience)]];
7138
+ const sections = [];
7217
7139
  if (reference) {
7218
7140
  sections.push(
7219
7141
  [
@@ -7231,12 +7153,31 @@ function thinkingOutline(input) {
7231
7153
  );
7232
7154
  const combined = takeFromWhich(reference);
7233
7155
  if (combined) sections.push(["What we take, from which ad", combined]);
7156
+ } else {
7157
+ sections.push([
7158
+ "Why it should work",
7159
+ question(
7160
+ "no proven ad fits, so this is a bet. What should stop this viewer, and why should they believe it? Say what would prove the bet wrong."
7161
+ )
7162
+ ]);
7234
7163
  }
7235
7164
  sections.push(
7236
7165
  [
7237
- "The hook, the angle and the call to action",
7166
+ "Does it fit our audience",
7167
+ `${memesRecord(input.audience)}${question(
7168
+ `our viewer is ${idea.who.replace(/[-_]/g, " ")}. Would they get the joke, recognise the format, see themselves in it? What in it would fall flat or put them off, and what do they care about that it does not say yet?`
7169
+ )}`
7170
+ ],
7171
+ [
7172
+ "The hook, ours",
7238
7173
  question(
7239
- `our message is "${idea.message}". Write the hook ${reference ? "the reference's hook becomes" : "that opens it"} for us, in our customers' words, and say why it stops this viewer; give the two or three you weighed and why this one won. The angle (the idea says "${idea.angle}"${reference ? "; say the one the reference wins on" : ""}) and why it is right for this viewer at this stage. Then the call to action: what we ask, how big an ask it is for this viewer, what lowers the risk (an offer, a guarantee, a free step), and where and how it shows (a button, a line, a native ask, or none).`
7174
+ `our message is "${idea.message}". Write the hook ${reference ? "the reference's hook becomes" : "that opens it"} for us, in our customers' words, and say why it should stop this viewer. Give the two or three you weighed and why this one won.`
7175
+ )
7176
+ ],
7177
+ [
7178
+ "The angle and the call to action",
7179
+ question(
7180
+ `the angle the ${reference ? "reference wins on" : "idea takes"} (pain, desire, fear of loss, status, identity, savings, convenience, proof, authority, urgency, us against them, contrarian) and ours (the idea says "${idea.angle}"): why it is the right one for this viewer at this stage. Then the call to action: what we ask, how big an ask it is for this viewer, what lowers the risk (an offer, a guarantee, a free step), and where and how it shows (a button, a line, a native ask like "comment X", or none).`
7240
7181
  )
7241
7182
  ],
7242
7183
  [CAST_HEADING, castAndShow(input.inventory, input.rules ?? [])]
@@ -7257,15 +7198,6 @@ function thinkingOutline(input) {
7257
7198
  ]);
7258
7199
  return [THINKING_HEADING, "", ...sections.flatMap(([title, body]) => [`### ${title}`, "", body, ""])].join("\n");
7259
7200
  }
7260
- function feedMoment(idea, reference, audience) {
7261
- const viewer = idea.who.replace(/[-_]/g, " ");
7262
- const shows = idea.shows ? `What ours shows first: ${idea.shows}.
7263
-
7264
- ` : "";
7265
- const ask = `${viewer} is scrolling, not looking for an ad. In the first second ours must break their pattern (they stop), make them think "this is for me" (their problem, their words, someone like them) and make them want to know more. Say what of ours does each of the three${idea.shows ? "" : ", starting with what the picture shows"}, and what would leave them scrolling.`;
7266
- const tied = reference ? ` Then: does proven ad ${reference.adId} show that, or the same kind of picture doing the same job? If it does not, it is the wrong reference: find one that does (\`baker winning-ads search "<what ours shows>"\`) and rebuild on it (\`baker creatives make <idea> --reference <adId>\`) before answering anything below.` : " No proven ad fits, so this is a bet: say why it should stop them and what would prove it wrong.";
7267
- return `${shows}${memesRecord(audience)}${question(`${ask}${tied}`)}`;
7268
- }
7269
7201
  function withThinking(definition, outline) {
7270
7202
  if (definition.split("\n").some((line) => line.trim() === THINKING_HEADING)) return definition;
7271
7203
  return `${definition.trimEnd()}
@@ -8925,4 +8857,4 @@ export {
8925
8857
  prepareCanvas,
8926
8858
  exitOnPrepareError
8927
8859
  };
8928
- //# sourceMappingURL=chunk-PNVEV3XP.js.map
8860
+ //# sourceMappingURL=chunk-5RCCESDX.js.map