@koda-sl/baker-cli 0.560.0 → 0.562.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 (1340) hide show
  1. package/README.md +6 -1
  2. package/dist/account-B77TBYMN.js +82 -0
  3. package/dist/account-OCFXNHG7.js +139 -0
  4. package/dist/account-U6DFMD2V.js +82 -0
  5. package/dist/account-assets-W7K2PUYB.js +290 -0
  6. package/dist/account-level-Z2JEIJ3X.js +611 -0
  7. package/dist/account-reads-X35O4MCA.js +219 -0
  8. package/dist/account-users-UKKABT5U.js +64 -0
  9. package/dist/account-writes-QSJ74QFR.js +68 -0
  10. package/dist/accounts-55PDBEDN.js +76 -0
  11. package/dist/accounts-AK4QIG24.js +115 -0
  12. package/dist/accounts-HGCR3WFZ.js +119 -0
  13. package/dist/accounts-QYNZXW2E.js +80 -0
  14. package/dist/accounts-XL2TMLGE.js +701 -0
  15. package/dist/actions-CVTRCHPG.js +55 -0
  16. package/dist/active-entities-HR7NJJLU.js +103 -0
  17. package/dist/activecampaign-UNNM6J7M.js +938 -0
  18. package/dist/activities-DEWHKBID.js +75 -0
  19. package/dist/ad-group-writes-QBHOPTT5.js +172 -0
  20. package/dist/ad-groups-JZDUFT6J.js +70 -0
  21. package/dist/ad-writes-QYJO4IB3.js +176 -0
  22. package/dist/add-3GOSW7LW.js +107 -0
  23. package/dist/add-DPCBGUA5.js +305 -0
  24. package/dist/add-IMKVYDQV.js +85 -0
  25. package/dist/add-PZEVRQ7Z.js +81 -0
  26. package/dist/add-QXI627AS.js +148 -0
  27. package/dist/add-SPQ4MOCQ.js +97 -0
  28. package/dist/add-accounts-D4V5K7SO.js +91 -0
  29. package/dist/ads-LDCZ65B5.js +48 -0
  30. package/dist/ads-QKVNPHBH.js +120 -0
  31. package/dist/ads-RTRWWEP5.js +128 -0
  32. package/dist/ads-UMSWEI5X.js +79 -0
  33. package/dist/adsets-FEVYHKAQ.js +182 -0
  34. package/dist/advertisers-2GKICB23.js +125 -0
  35. package/dist/advertisers-3D36UJTQ.js +123 -0
  36. package/dist/analytics-YHOXWFBI.js +2437 -0
  37. package/dist/analytics-ZPPZJETP.js +447 -0
  38. package/dist/animate-WS63CZ3Y.js +480 -0
  39. package/dist/approved-3XFZNRJR.js +73 -0
  40. package/dist/asset-writes-7RFZZYU7.js +50 -0
  41. package/dist/assign-5P7OJBAH.js +80 -0
  42. package/dist/audience-size-PHFJ22TX.js +76 -0
  43. package/dist/audience-writes-RUGU6KEC.js +327 -0
  44. package/dist/audiences-6GVUZUCN.js +106 -0
  45. package/dist/audiences-7OS2ZJYO.js +85 -0
  46. package/dist/audiences-RSAUXKHR.js +280 -0
  47. package/dist/audit-3GRXRDLR.js +154 -0
  48. package/dist/audit-4L7IKIRY.js +88 -0
  49. package/dist/autocomplete-GQLXBG5V.js +114 -0
  50. package/dist/avatars-I73KFB3F.js +38 -0
  51. package/dist/bid-pricing-6MZ7SC72.js +103 -0
  52. package/dist/brief-MI4RLV4N.js +543 -0
  53. package/dist/businesses-42NZP6FP.js +54 -0
  54. package/dist/campaign-groups-QZ2NW5AW.js +99 -0
  55. package/dist/campaign-writes-BGS53O4B.js +168 -0
  56. package/dist/campaign-writes-GKNH2EHV.js +176 -0
  57. package/dist/campaigns-7RV65SXR.js +78 -0
  58. package/dist/campaigns-FGIVPEVA.js +113 -0
  59. package/dist/campaigns-TO74Z7UH.js +130 -0
  60. package/dist/campaigns-YBPXM6B3.js +111 -0
  61. package/dist/canvas-YTSJAEOF.js +46 -0
  62. package/dist/capabilities-YFXCTUJJ.js +147 -0
  63. package/dist/cards-CAOGPPG4.js +85 -0
  64. package/dist/catalogs-5LWEXG5X.js +130 -0
  65. package/dist/catalogs-7IEXGLSR.js +782 -0
  66. package/dist/changes-6CL42LG3.js +167 -0
  67. package/dist/chatgpt-HLIQ7OJZ.js +47 -0
  68. package/dist/chats-D5W2UWD4.js +449 -0
  69. package/dist/check-FFMWUB72.js +107 -0
  70. package/dist/chunk-2DAWUWA4.js +115 -0
  71. package/dist/chunk-2DVFPCH3.js +91 -0
  72. package/dist/chunk-2LBQNTTH.js +76 -0
  73. package/dist/chunk-2VHYY4RU.js +191 -0
  74. package/dist/chunk-3E74OM2E.js +288 -0
  75. package/dist/chunk-3FLSRUID.js +344 -0
  76. package/dist/chunk-3LYT3NQX.js +42 -0
  77. package/dist/chunk-4UNJ4ENA.js +106 -0
  78. package/dist/chunk-533R4P5O.js +224 -0
  79. package/dist/chunk-5E4Y6RVY.js +56 -0
  80. package/dist/chunk-5H6N36LS.js +217 -0
  81. package/dist/chunk-6I7GJDBX.js +910 -0
  82. package/dist/chunk-6IR7IQPV.js +69 -0
  83. package/dist/chunk-6PO3WSFJ.js +97 -0
  84. package/dist/chunk-6QNXBEIN.js +207 -0
  85. package/dist/chunk-BESCYH3K.js +125 -0
  86. package/dist/chunk-BGMIO2FR.js +64 -0
  87. package/dist/chunk-BVGRKVHL.js +103 -0
  88. package/dist/chunk-C3EX5OKN.js +188 -0
  89. package/dist/chunk-CHVLFACB.js +91 -0
  90. package/dist/chunk-CP6RFWLW.js +69 -0
  91. package/dist/chunk-D2GDHVZP.js +51 -0
  92. package/dist/chunk-D3YAFC6K.js +98 -0
  93. package/dist/chunk-DFDV42NY.js +709 -0
  94. package/dist/chunk-EFTYCX5C.js +46 -0
  95. package/dist/chunk-F62BW6DJ.js +139 -0
  96. package/dist/chunk-FLQNIFG2.js +84 -0
  97. package/dist/chunk-FWHEAR7F.js +138 -0
  98. package/dist/chunk-FXZGRP3F.js +454 -0
  99. package/dist/chunk-GQ4DMO5Q.js +8954 -0
  100. package/dist/chunk-GUH2A5R5.js +66 -0
  101. package/dist/chunk-HJ3Q4NOM.js +58 -0
  102. package/dist/chunk-IDDG4QKO.js +39 -0
  103. package/dist/chunk-ILGRC7LJ.js +287 -0
  104. package/dist/chunk-JTIWQLY5.js +98 -0
  105. package/dist/chunk-KDVYI4LC.js +35 -0
  106. package/dist/chunk-LAP23AND.js +399 -0
  107. package/dist/chunk-LFPBZL2X.js +163 -0
  108. package/dist/chunk-MSGIF4EC.js +275 -0
  109. package/dist/chunk-MYIOR35H.js +225 -0
  110. package/dist/chunk-NTFNLVZG.js +26 -0
  111. package/dist/chunk-OAJ6LVL2.js +430 -0
  112. package/dist/chunk-OASXBRXQ.js +24026 -0
  113. package/dist/chunk-OFMFBRSL.js +25 -0
  114. package/dist/chunk-ORQ3WBM6.js +225 -0
  115. package/dist/chunk-OSQTSS27.js +74 -0
  116. package/dist/chunk-OTRKBCUB.js +219 -0
  117. package/dist/chunk-OWEON2S7.js +1246 -0
  118. package/dist/chunk-PH3FZZIT.js +544 -0
  119. package/dist/chunk-PXLBPOI3.js +203 -0
  120. package/dist/chunk-QEREDRZO.js +246 -0
  121. package/dist/chunk-QEREDRZO.js.map +1 -0
  122. package/dist/chunk-QLXVHWAC.js +685 -0
  123. package/dist/chunk-QPTYTM2X.js +142 -0
  124. package/dist/chunk-R2Z5L5CF.js +297 -0
  125. package/dist/chunk-R4RWQ6YX.js +152 -0
  126. package/dist/chunk-RBCO3C3Q.js +324 -0
  127. package/dist/chunk-RHSKKWPO.js +1902 -0
  128. package/dist/chunk-RJ2ETGAQ.js +73 -0
  129. package/dist/chunk-S37ZZSNM.js +604 -0
  130. package/dist/chunk-SJIEU3VG.js +831 -0
  131. package/dist/chunk-SKI7QMDT.js +170 -0
  132. package/dist/chunk-SLLY4ZTT.js +169 -0
  133. package/dist/chunk-TCR6KI6P.js +1320 -0
  134. package/dist/chunk-UKDILXEA.js +23 -0
  135. package/dist/chunk-ULIQNJ5J.js +274 -0
  136. package/dist/chunk-UR7ENZ3F.js +547 -0
  137. package/dist/chunk-UYZ4FUC7.js +225 -0
  138. package/dist/chunk-WBWEKZQ2.js +191 -0
  139. package/dist/chunk-WYXYAKUP.js +19 -0
  140. package/dist/chunk-X7XFAFU4.js +2209 -0
  141. package/dist/chunk-Y43FKOED.js +89 -0
  142. package/dist/chunk-Y6XWO4V4.js +111 -0
  143. package/dist/chunk-YB6G3B3L.js +45 -0
  144. package/dist/chunk-YD6OZSSY.js +106 -0
  145. package/dist/chunk-YFBHZ57K.js +197 -0
  146. package/dist/chunk-ZD5MNBLA.js +930 -0
  147. package/dist/chunk-ZZ5B2ZRM.js +94 -0
  148. package/dist/cite-AJ5ZQWD2.js +191 -0
  149. package/dist/claim-G4TW75Z2.js +200 -0
  150. package/dist/cli.js +100 -39
  151. package/dist/cli.js.map +1 -1
  152. package/dist/client-F6KOC77S.js +19 -0
  153. package/dist/code-NV4ARLFS.js +76 -0
  154. package/dist/companies-TYDUEKET.js +198 -0
  155. package/dist/company-V5WKGDGU.js +308 -0
  156. package/dist/complete-QEKKP7YL.js +84 -0
  157. package/dist/config-NDL2YP37.js +88 -0
  158. package/dist/connect-5Q2HQ7LT.js +45 -0
  159. package/dist/content-EQZKKIST.js +85 -0
  160. package/dist/conversation-JIVOIZ5E.js +96 -0
  161. package/dist/conversion-report-76S5JOVT.js +127 -0
  162. package/dist/conversion-upload-command-WNHVNVMW.js +439 -0
  163. package/dist/conversion-writes-6HX665JT.js +122 -0
  164. package/dist/conversions-A524MH5C.js +78 -0
  165. package/dist/conversions-PSXVU4JL.js +140 -0
  166. package/dist/copy-writes-X2LM5I4Z.js +170 -0
  167. package/dist/countries-GZSBGSVT.js +82 -0
  168. package/dist/create-7QGB33HI.js +135 -0
  169. package/dist/create-AV7UY4N5.js +239 -0
  170. package/dist/create-CHBC745Y.js +62 -0
  171. package/dist/create-SBQU7B3S.js +218 -0
  172. package/dist/creatives-LNUSBQXQ.js +229 -0
  173. package/dist/creatives-SFPNXJ6Z.js +118 -0
  174. package/dist/creatives-XQILGK6P.js +58 -0
  175. package/dist/credentials-IWF37PAQ.js +290 -0
  176. package/dist/critique-ETRQP3QZ.js +232 -0
  177. package/dist/crm-IDN55BIC.js +323 -0
  178. package/dist/crm-T2ZJNZ6G.js +229 -0
  179. package/dist/crm-T2ZJNZ6G.js.map +1 -0
  180. package/dist/currency-VQMZZXSS.js +88 -0
  181. package/dist/custom-conversions-UHRBVUD2.js +128 -0
  182. package/dist/customers-XANEOEW6.js +65 -0
  183. package/dist/decide-AM6B7WIL.js +199 -0
  184. package/dist/delete-2WL6K24W.js +69 -0
  185. package/dist/delete-46B7DSQV.js +71 -0
  186. package/dist/delete-6K7EZXNR.js +67 -0
  187. package/dist/delete-SCAVFYZL.js +57 -0
  188. package/dist/delete-WAPC4XC2.js +69 -0
  189. package/dist/delete-YYIM564B.js +85 -0
  190. package/dist/demographics-JJKL7MZC.js +141 -0
  191. package/dist/describe-5OC7XX2U.js +97 -0
  192. package/dist/describe-EAPKNUUU.js +97 -0
  193. package/dist/discard-FQDZ5GKN.js +69 -0
  194. package/dist/discover-4F4USNHE.js +172 -0
  195. package/dist/discover-P7PBB3IV.js +93 -0
  196. package/dist/domain-AFWPUOI7.js +101 -0
  197. package/dist/download-MXKBJPPF.js +172 -0
  198. package/dist/download-YB2DVMRS.js +337 -0
  199. package/dist/draft-44KTLX4P.js +134 -0
  200. package/dist/draft-CKFSZDVI.js +260 -0
  201. package/dist/draft-EKJQGNFT.js +374 -0
  202. package/dist/draft-OJHTFELQ.js +332 -0
  203. package/dist/draft-RSKZSUOS.js +138 -0
  204. package/dist/draft-VIZTQ6W4.js +557 -0
  205. package/dist/draft-WOE7KQ7T.js +315 -0
  206. package/dist/draft-Z5IVHUHR.js +220 -0
  207. package/dist/experiment-EFLKDQ3C.js +1397 -0
  208. package/dist/experiments-YUBVWNB5.js +236 -0
  209. package/dist/export-RPNRPTDK.js +168 -0
  210. package/dist/extract-VHM2UNIE.js +143 -0
  211. package/dist/facets-5GLKSHTA.js +117 -0
  212. package/dist/favorites-536I3GZD.js +178 -0
  213. package/dist/feed-W3ECHUEX.js +177 -0
  214. package/dist/feedback-36TL4GPS.js +115 -0
  215. package/dist/feedback-ECAZWGJP.js +114 -0
  216. package/dist/feedback-ECAZWGJP.js.map +1 -0
  217. package/dist/feedback-record-QGAP4HA4.js +269 -0
  218. package/dist/fetch-X4RIDS7N.js +204 -0
  219. package/dist/find-57WYB4V3.js +144 -0
  220. package/dist/fit-V4CRDVQV.js +65 -0
  221. package/dist/flows-YPBWZR4P.js +250 -0
  222. package/dist/follow-5VX5JWAQ.js +94 -0
  223. package/dist/follow-competitors-D7I33T5C.js +112 -0
  224. package/dist/following-6DI4IZ7P.js +113 -0
  225. package/dist/forecast-E2HJSD6E.js +169 -0
  226. package/dist/forecast-LMYMZHZE.js +121 -0
  227. package/dist/funding-BSAHWU35.js +85 -0
  228. package/dist/funnel-MF2KFXEX.js +397 -0
  229. package/dist/ga4-FCMTGV4S.js +55 -0
  230. package/dist/generate-VGGXTZBP.js +263 -0
  231. package/dist/get-42V7UTNF.js +59 -0
  232. package/dist/get-5SCYUC4G.js +38 -0
  233. package/dist/get-7NI64G6K.js +82 -0
  234. package/dist/get-BQBLPGFE.js +74 -0
  235. package/dist/get-JHOH74X5.js +56 -0
  236. package/dist/get-MVZWQ4BE.js +62 -0
  237. package/dist/get-TBMTBGHJ.js +62 -0
  238. package/dist/get-V4NJXKUR.js +92 -0
  239. package/dist/gif-M2GMVWM4.js +111 -0
  240. package/dist/google-YNVTLX5E.js +163 -0
  241. package/dist/google-ZRZGM2XI.js +3300 -0
  242. package/dist/google-ads-UER2CSQN.js +198 -0
  243. package/dist/group-PLTVV7UZ.js +43 -0
  244. package/dist/group-THZPJALS.js +43 -0
  245. package/dist/gsc-A3KB36WH.js +30 -0
  246. package/dist/history-3GRRZSWW.js +102 -0
  247. package/dist/history-LBIA45H3.js +153 -0
  248. package/dist/history-LXRFZNW7.js +69 -0
  249. package/dist/hubspot-NEENQKIP.js +814 -0
  250. package/dist/hubspot-NEENQKIP.js.map +1 -0
  251. package/dist/icon-7WND6UPY.js +138 -0
  252. package/dist/ideas-LDQMFMJM.js +45 -0
  253. package/dist/images-2FDXHKMR.js +92 -0
  254. package/dist/improve-NWFQI63B.js +86 -0
  255. package/dist/ingest-OJDK7AGH.js +131 -0
  256. package/dist/ingest-PS2LOYBM.js +28 -0
  257. package/dist/insights-H6M6VI43.js +132 -0
  258. package/dist/insights-LZJZGNJZ.js +658 -0
  259. package/dist/inspect-ALSHVHUP.js +192 -0
  260. package/dist/inspiration-TQHQNILK.js +53 -0
  261. package/dist/instant-experiences-J4GSS3Y6.js +264 -0
  262. package/dist/intent-ZKLT4DAW.js +95 -0
  263. package/dist/job-UFGGBDG7.js +202 -0
  264. package/dist/job-create-XM4NH322.js +109 -0
  265. package/dist/job-status-47L5Z57J.js +74 -0
  266. package/dist/keep-I6FLGJH4.js +78 -0
  267. package/dist/keyword-gap-QC3ITLNG.js +130 -0
  268. package/dist/keyword-metrics-PERWGH54.js +200 -0
  269. package/dist/keywords-for-site-CCCB6KHE.js +131 -0
  270. package/dist/knowledge-H5PJ6LZB.js +195 -0
  271. package/dist/landing-VE3MHOA3.js +28 -0
  272. package/dist/landings-AELJXEYN.js +151 -0
  273. package/dist/languages-GCRI2PI3.js +55 -0
  274. package/dist/languages-QMLC4QWZ.js +40 -0
  275. package/dist/launches-CKPZFVMQ.js +19 -0
  276. package/dist/layerize-PHY25VNC.js +190 -0
  277. package/dist/lead-routes-ZMKRNL57.js +733 -0
  278. package/dist/leads-SEEJ3KRR.js +541 -0
  279. package/dist/leads-TPMLYLBH.js +115 -0
  280. package/dist/learn-KK3AJS3N.js +207 -0
  281. package/dist/library-5YJCCEFL.js +212 -0
  282. package/dist/lighthouse-W3KAVW2G.js +75 -0
  283. package/dist/line-item-writes-ONKDXKOM.js +211 -0
  284. package/dist/line-items-ILJYVUHX.js +107 -0
  285. package/dist/link-YDHTMDC5.js +67 -0
  286. package/dist/linkedin-N3NGCE5N.js +1344 -0
  287. package/dist/linkedin-person-6F3YJHXM.js +139 -0
  288. package/dist/list-2EJ3XZ6I.js +93 -0
  289. package/dist/list-BQWHFEWY.js +65 -0
  290. package/dist/list-E7JG27WS.js +50 -0
  291. package/dist/list-EKL5HIR7.js +306 -0
  292. package/dist/list-ERCPPED6.js +76 -0
  293. package/dist/list-F7UDUU7C.js +67 -0
  294. package/dist/list-HYZL4576.js +57 -0
  295. package/dist/list-IKQFAJP7.js +51 -0
  296. package/dist/list-WDTPTY2T.js +154 -0
  297. package/dist/locations-5SLLGWZO.js +69 -0
  298. package/dist/locations-DNRK7DY4.js +40 -0
  299. package/dist/log-BZBRXB5P.js +95 -0
  300. package/dist/logo-ODONF6N7.js +19 -0
  301. package/dist/lookup-OU6CLATK.js +23 -0
  302. package/dist/make-W27CB5X4.js +1367 -0
  303. package/dist/map-FNB7IWDY.js +436 -0
  304. package/dist/mcp-QSDCAWMU.js +729 -0
  305. package/dist/media-DGV2AMZI.js +89 -0
  306. package/dist/media-YKCCMLXL.js +18 -0
  307. package/dist/media-sources-NMT4G45B.js +35 -0
  308. package/dist/members-2XQ6E33F.js +47 -0
  309. package/dist/meme-3QYKC4BF.js +108 -0
  310. package/dist/meta-5KQ6CQBT.js +122 -0
  311. package/dist/metrics-P4QDFCVB.js +152 -0
  312. package/dist/normalize-5AU7SKYY.js +144 -0
  313. package/dist/options-CH52EP5K.js +125 -0
  314. package/dist/organization-6T4Q6XYI.js +949 -0
  315. package/dist/output-7X5WPPCA.js +24 -0
  316. package/dist/page-GBLVAKU3.js +105 -0
  317. package/dist/page-photos-VYJU4RNQ.js +118 -0
  318. package/dist/pages-6YMPZDEY.js +67 -0
  319. package/dist/performance-2SCAQSQK.js +27 -0
  320. package/dist/performance-4DMGJCN7.js +5565 -0
  321. package/dist/pinterest-235S7E6H.js +105 -0
  322. package/dist/pixels-DZDVNIVL.js +109 -0
  323. package/dist/pixels-WTTLC4O5.js +62 -0
  324. package/dist/plan-JAWESWJN.js +208 -0
  325. package/dist/posts-TRQCRLYZ.js +36 -0
  326. package/dist/preview-ICZR3SGB.js +101 -0
  327. package/dist/preview-JZXGR4KN.js +245 -0
  328. package/dist/profile-MKKJT2UF.js +159 -0
  329. package/dist/promoted-tweet-writes-DR6V7MHW.js +183 -0
  330. package/dist/promoted-tweets-IRECARIO.js +119 -0
  331. package/dist/properties-Z5S3LRJ5.js +101 -0
  332. package/dist/publish-4HM2CJVF.js +350 -0
  333. package/dist/query-AQ6HNKW7.js +62 -0
  334. package/dist/query-KKXCMH3Q.js +236 -0
  335. package/dist/query-QXKGVHZL.js +231 -0
  336. package/dist/questionnaire-U7UYICEA.js +94 -0
  337. package/dist/read-ENUS7P3L.js +141 -0
  338. package/dist/reddit-KOC7KLYS.js +29 -0
  339. package/dist/refresh-2KEQLXRK.js +97 -0
  340. package/dist/refresh-JSCYTM4B.js +42 -0
  341. package/dist/release-X3Q3RFQC.js +63 -0
  342. package/dist/relevant-pages-NZKXWMNA.js +99 -0
  343. package/dist/remove-6FXTPEB6.js +49 -0
  344. package/dist/remove-RYR6EAJY.js +53 -0
  345. package/dist/reopen-PIKLC5OW.js +66 -0
  346. package/dist/rerun-2HBMXJ55.js +97 -0
  347. package/dist/research-ZBZONY3D.js +75 -0
  348. package/dist/research-ZTA4XKNA.js +265 -0
  349. package/dist/reset-7YTMXVNX.js +57 -0
  350. package/dist/reset-Q3XSD4WI.js +57 -0
  351. package/dist/resolve-P3AT2S6A.js +124 -0
  352. package/dist/retry-CEZLEN7Z.js +63 -0
  353. package/dist/retry-YNNFUDWI.js +65 -0
  354. package/dist/retry-failed-FCS6PNUZ.js +45 -0
  355. package/dist/revenue-6PR3BJFJ.js +91 -0
  356. package/dist/rule-writes-WT6DQZZE.js +530 -0
  357. package/dist/rules-R7NK5X4Z.js +99 -0
  358. package/dist/rules-Y75KR2PC.js +217 -0
  359. package/dist/rules-add-2GIJGODB.js +465 -0
  360. package/dist/run-CDMNDJ7B.js +72 -0
  361. package/dist/run-RORVKARV.js +69 -0
  362. package/dist/scaffold-ad-DDGYTRFK.js +1513 -0
  363. package/dist/scaffold-static-ad-ES5AIQPA.js +1012 -0
  364. package/dist/scaffold-video-NWRJZQ7N.js +885 -0
  365. package/dist/schedule-2ELAAXVW.js +64 -0
  366. package/dist/schedule-XFEPEQTN.js +67 -0
  367. package/dist/scheduled-agents-RRAWQYPE.js +55 -0
  368. package/dist/schema-FHP43TLD.js +135 -0
  369. package/dist/scrape-D3XGARHR.js +2209 -0
  370. package/dist/screenshot-5LWUP5VN.js +103 -0
  371. package/dist/search-4DBP6EH5.js +92 -0
  372. package/dist/search-G6W4LGVZ.js +177 -0
  373. package/dist/search-HNRANK6H.js +51 -0
  374. package/dist/search-KGE3BSSH.js +228 -0
  375. package/dist/search-O3AOWEXC.js +26 -0
  376. package/dist/search-QQDR74KQ.js +91 -0
  377. package/dist/search-copy-EB3TONDS.js +168 -0
  378. package/dist/seeds-RGIFHHYC.js +101 -0
  379. package/dist/select-GFPXXVBU.js +110 -0
  380. package/dist/sends-4ZO6BNZ4.js +349 -0
  381. package/dist/sequences-SSLZ3XTP.js +146 -0
  382. package/dist/set-prompt-TQDOBUFT.js +199 -0
  383. package/dist/setup-links-CK7LBYJK.js +144 -0
  384. package/dist/shared-UPMEBTVP.js +32 -0
  385. package/dist/shopify-SOTGSWXW.js +4009 -0
  386. package/dist/site-IAIGIP3R.js +180 -0
  387. package/dist/sitemaps-P3K5Z4TW.js +77 -0
  388. package/dist/sites-TURWC53D.js +97 -0
  389. package/dist/skills-PDHUHP2T.js +47 -0
  390. package/dist/sources-62MIDG3D.js +457 -0
  391. package/dist/sources-D5XODGIV.js +30 -0
  392. package/dist/stale-4STBM2Z3.js +90 -0
  393. package/dist/stats-XNKAJD2Z.js +34 -0
  394. package/dist/status-BKSOFB53.js +65 -0
  395. package/dist/sticker-MWICUYQM.js +103 -0
  396. package/dist/stock-F5QNFRPM.js +212 -0
  397. package/dist/studies-5G67ODR2.js +250 -0
  398. package/dist/studio-ZRAZ2C25.js +49 -0
  399. package/dist/study-writes-34BJFZAZ.js +471 -0
  400. package/dist/suggest-KCN2NDYE.js +66 -0
  401. package/dist/sync-QVEUQKU5.js +279 -0
  402. package/dist/sync-TANGFXUN.js +55 -0
  403. package/dist/sync-VPE5G6YX.js +57 -0
  404. package/dist/sync-definition-VSNVCRNG.js +70 -0
  405. package/dist/tag-NKAHDL35.js +57 -0
  406. package/dist/tag-manager-3GIW6BPB.js +43 -0
  407. package/dist/tags-CBNWQTFX.js +23 -0
  408. package/dist/tags-IFBIJ7BE.js +23 -0
  409. package/dist/tags-J6IPWIZ5.js +227 -0
  410. package/dist/tags-XPLXA3LV.js +26 -0
  411. package/dist/tags-ZV7JAF6S.js +23 -0
  412. package/dist/targeting-TVZPIUUI.js +762 -0
  413. package/dist/targeting-constants-RJS2STR5.js +118 -0
  414. package/dist/targeting-criteria-VVZQFPNS.js +113 -0
  415. package/dist/targets-EQAZUKT6.js +106 -0
  416. package/dist/terms-AATAGKPT.js +102 -0
  417. package/dist/testimonials-5MA427KH.js +32 -0
  418. package/dist/themes-WMZJWXFT.js +95 -0
  419. package/dist/top-companies-V5FVQMCS.js +111 -0
  420. package/dist/transcript-2TE2R4DH.js +165 -0
  421. package/dist/translate-XIF6VTDN.js +603 -0
  422. package/dist/triggers-ZMNQ6W3M.js +144 -0
  423. package/dist/tweets-MLDLLLDB.js +123 -0
  424. package/dist/unfollow-OEMFPAFS.js +46 -0
  425. package/dist/unlink-HRCAROB3.js +70 -0
  426. package/dist/unstage-5WSEDFNH.js +88 -0
  427. package/dist/unstage-65DUBYNZ.js +96 -0
  428. package/dist/update-A64IC24P.js +101 -0
  429. package/dist/update-BESMEMQU.js +155 -0
  430. package/dist/update-CADTFTYC.js +81 -0
  431. package/dist/update-WU4FAGEA.js +192 -0
  432. package/dist/update-ZUBU5NQP.js +66 -0
  433. package/dist/upload-FR6WRGXI.js +137 -0
  434. package/dist/upload-GXS5CTOR.js +155 -0
  435. package/dist/upscale-BCI42TCP.js +109 -0
  436. package/dist/url-options-QLDSJ7QJ.js +131 -0
  437. package/dist/url-params-YWIBMV3P.js +101 -0
  438. package/dist/use-26VARHJT.js +111 -0
  439. package/dist/validate-5EWYG4QS.js +125 -0
  440. package/dist/variant-F4EEYQJ7.js +338 -0
  441. package/dist/videos-MXEQHDMN.js +41 -0
  442. package/dist/view-X65GETAV.js +133 -0
  443. package/dist/viewer-check-QI4HKF7A.js +83 -0
  444. package/dist/web-DYT5YHEU.js +173 -0
  445. package/dist/winners-5PRDG7GT.js +113 -0
  446. package/dist/winning-ads-YKBB2UZC.js +86 -0
  447. package/dist/write-commands-OBQPQUIE.js +721 -0
  448. package/dist/write-commands-SIOVTRHH.js +1169 -0
  449. package/dist/write-commands-USXHGCVT.js +1524 -0
  450. package/dist/write-commands-XLZCRVTU.js +206 -0
  451. package/dist/x-OIDZY7DM.js +47 -0
  452. package/package.json +1 -1
  453. package/dist/account-DUGYQJEM.js +0 -82
  454. package/dist/account-NSRT5KE6.js +0 -139
  455. package/dist/account-OXD426YD.js +0 -82
  456. package/dist/account-assets-QMKT5AT7.js +0 -290
  457. package/dist/account-level-BELF6JHB.js +0 -611
  458. package/dist/account-reads-GQWTMLTY.js +0 -219
  459. package/dist/account-users-BXJQ4XZV.js +0 -64
  460. package/dist/account-writes-VRRLT356.js +0 -68
  461. package/dist/accounts-45MUDNOM.js +0 -76
  462. package/dist/accounts-DXQ3DHMB.js +0 -80
  463. package/dist/accounts-KQ7NCM4L.js +0 -115
  464. package/dist/accounts-KXQY6WKR.js +0 -701
  465. package/dist/accounts-RRCALMPX.js +0 -119
  466. package/dist/actions-LI43PTFN.js +0 -55
  467. package/dist/active-entities-3266UJYN.js +0 -103
  468. package/dist/activecampaign-5A6YHDJW.js +0 -938
  469. package/dist/activities-ORMACIG2.js +0 -75
  470. package/dist/ad-group-writes-Y6CCMPCM.js +0 -172
  471. package/dist/ad-groups-TW2UKDVU.js +0 -70
  472. package/dist/ad-writes-J3UVUH7D.js +0 -176
  473. package/dist/add-CKJXQUVI.js +0 -97
  474. package/dist/add-NJUG3IQ2.js +0 -81
  475. package/dist/add-TJHGYZYH.js +0 -85
  476. package/dist/add-W4HEMTFL.js +0 -107
  477. package/dist/add-XYSUKZSU.js +0 -148
  478. package/dist/add-ZSKEB3CI.js +0 -305
  479. package/dist/add-accounts-IRHBFNNC.js +0 -91
  480. package/dist/ads-5CJQRTUN.js +0 -79
  481. package/dist/ads-DI3J3KCQ.js +0 -128
  482. package/dist/ads-H5AEYIY3.js +0 -120
  483. package/dist/ads-OC3ENYUC.js +0 -48
  484. package/dist/adsets-BUIT7HF2.js +0 -182
  485. package/dist/advertisers-5XCIZ7WS.js +0 -125
  486. package/dist/advertisers-KPVUVXZZ.js +0 -123
  487. package/dist/analytics-4WBRNSUC.js +0 -447
  488. package/dist/analytics-XT4ANMLP.js +0 -2437
  489. package/dist/animate-Q43SOWB4.js +0 -480
  490. package/dist/approved-RP5ADN7E.js +0 -73
  491. package/dist/asset-writes-JVFE457M.js +0 -50
  492. package/dist/assign-SQK4UF3I.js +0 -80
  493. package/dist/audience-size-5Y5Q6UVA.js +0 -76
  494. package/dist/audience-writes-DWSCHYQF.js +0 -327
  495. package/dist/audiences-4MYDTY74.js +0 -280
  496. package/dist/audiences-5TOTVZMK.js +0 -85
  497. package/dist/audiences-PYBJU2GV.js +0 -106
  498. package/dist/audit-GOZNIXNM.js +0 -154
  499. package/dist/audit-SACXTAIP.js +0 -88
  500. package/dist/autocomplete-36S76BGA.js +0 -114
  501. package/dist/avatars-SDQ5LCNG.js +0 -38
  502. package/dist/bid-pricing-6DFGC6YC.js +0 -103
  503. package/dist/brief-2UXKUTFC.js +0 -543
  504. package/dist/businesses-F6PN34WK.js +0 -54
  505. package/dist/campaign-groups-32LDB42N.js +0 -99
  506. package/dist/campaign-writes-62V55CNW.js +0 -168
  507. package/dist/campaign-writes-BHS3POAH.js +0 -176
  508. package/dist/campaigns-2Z6WXIVA.js +0 -130
  509. package/dist/campaigns-I5GSGZDJ.js +0 -111
  510. package/dist/campaigns-IRMLPW6N.js +0 -78
  511. package/dist/campaigns-OGNE4XHM.js +0 -113
  512. package/dist/canvas-HGU7FJ34.js +0 -46
  513. package/dist/capabilities-EDXVGZXC.js +0 -147
  514. package/dist/cards-HUXBNMEM.js +0 -85
  515. package/dist/catalogs-OEUNVE4N.js +0 -782
  516. package/dist/catalogs-WYRRTRCM.js +0 -130
  517. package/dist/changes-AEAVFB3M.js +0 -167
  518. package/dist/chatgpt-6KBW7F5S.js +0 -47
  519. package/dist/chats-HFKSZWZD.js +0 -449
  520. package/dist/check-GRVUI3LI.js +0 -107
  521. package/dist/chunk-26UW2GMK.js +0 -8954
  522. package/dist/chunk-2LGDWOD7.js +0 -170
  523. package/dist/chunk-37QHT7J4.js +0 -91
  524. package/dist/chunk-3J52GJAY.js +0 -46
  525. package/dist/chunk-4ICSKDI7.js +0 -454
  526. package/dist/chunk-5G6R3WYN.js +0 -58
  527. package/dist/chunk-5HPKYRTE.js +0 -45
  528. package/dist/chunk-5NJQXV4K.js +0 -142
  529. package/dist/chunk-65CQYRMK.js +0 -98
  530. package/dist/chunk-6KEVNO5O.js +0 -191
  531. package/dist/chunk-6MZFOMLU.js +0 -225
  532. package/dist/chunk-724E32DM.js +0 -399
  533. package/dist/chunk-72JEATZ5.js +0 -51
  534. package/dist/chunk-7SNNQCDD.js +0 -274
  535. package/dist/chunk-AL4MRNYI.js +0 -709
  536. package/dist/chunk-AQ6LJ7EI.js +0 -23
  537. package/dist/chunk-BS4PRGEJ.js +0 -73
  538. package/dist/chunk-BU7W7MKF.js +0 -42
  539. package/dist/chunk-CQMAR4BH.js +0 -69
  540. package/dist/chunk-CXYX6G3I.js +0 -98
  541. package/dist/chunk-CZESYOCC.js +0 -94
  542. package/dist/chunk-CZTKRP6M.js +0 -103
  543. package/dist/chunk-D7FJ5KHG.js +0 -39
  544. package/dist/chunk-DSDI5DY3.js +0 -115
  545. package/dist/chunk-DYWKYP7Z.js +0 -203
  546. package/dist/chunk-EDWW3THE.js +0 -344
  547. package/dist/chunk-EENYLJUN.js +0 -225
  548. package/dist/chunk-EHNORFUW.js +0 -225
  549. package/dist/chunk-EJMPKO6V.js +0 -287
  550. package/dist/chunk-FAV6GUOZ.js +0 -24026
  551. package/dist/chunk-G3ZUMNLG.js +0 -66
  552. package/dist/chunk-G4JTXVLA.js +0 -74
  553. package/dist/chunk-GAP7SOGA.js +0 -188
  554. package/dist/chunk-GFWWHCBF.js +0 -229
  555. package/dist/chunk-GFWWHCBF.js.map +0 -1
  556. package/dist/chunk-H6GTG665.js +0 -106
  557. package/dist/chunk-HHMBHLX6.js +0 -910
  558. package/dist/chunk-IIK4WNWV.js +0 -84
  559. package/dist/chunk-J6KCVW6N.js +0 -207
  560. package/dist/chunk-KDTSXLY7.js +0 -685
  561. package/dist/chunk-KE5TI23P.js +0 -430
  562. package/dist/chunk-KV4E4KGE.js +0 -831
  563. package/dist/chunk-KY6Q4WLC.js +0 -224
  564. package/dist/chunk-LBJ2CLRT.js +0 -106
  565. package/dist/chunk-LIBSSGE4.js +0 -275
  566. package/dist/chunk-LK5OKVCM.js +0 -544
  567. package/dist/chunk-NKZDYXEN.js +0 -1246
  568. package/dist/chunk-NPDZ4EO6.js +0 -297
  569. package/dist/chunk-OEH7ANJJ.js +0 -91
  570. package/dist/chunk-OVC2PIOP.js +0 -111
  571. package/dist/chunk-P5HG6WDH.js +0 -152
  572. package/dist/chunk-PBKUESJD.js +0 -191
  573. package/dist/chunk-PGAYESXE.js +0 -25
  574. package/dist/chunk-PZSOJYER.js +0 -604
  575. package/dist/chunk-QBCZLD3A.js +0 -2209
  576. package/dist/chunk-QFODAMYR.js +0 -69
  577. package/dist/chunk-QY7EK6Q4.js +0 -217
  578. package/dist/chunk-QYH2UZAK.js +0 -324
  579. package/dist/chunk-RIVHJC6L.js +0 -35
  580. package/dist/chunk-SKVQRTDO.js +0 -197
  581. package/dist/chunk-SNSLYZIT.js +0 -64
  582. package/dist/chunk-TLNYAZX5.js +0 -76
  583. package/dist/chunk-TWFZIHKK.js +0 -219
  584. package/dist/chunk-UB34H4VD.js +0 -547
  585. package/dist/chunk-UZEKIMLY.js +0 -163
  586. package/dist/chunk-VAQOSV3I.js +0 -138
  587. package/dist/chunk-VIRPAJEF.js +0 -97
  588. package/dist/chunk-VKYDHIBT.js +0 -169
  589. package/dist/chunk-VR6XCLY6.js +0 -1320
  590. package/dist/chunk-WLD443MX.js +0 -19
  591. package/dist/chunk-WQIHLJAO.js +0 -1902
  592. package/dist/chunk-XGN3BGSL.js +0 -930
  593. package/dist/chunk-XZMO52BP.js +0 -56
  594. package/dist/chunk-YS7T735Q.js +0 -89
  595. package/dist/chunk-YXUIVOUL.js +0 -139
  596. package/dist/chunk-ZSZ76MUL.js +0 -125
  597. package/dist/chunk-ZU6JW3ZB.js +0 -26
  598. package/dist/chunk-ZW2CN6L6.js +0 -288
  599. package/dist/cite-TRNZYG4W.js +0 -191
  600. package/dist/claim-NUUED375.js +0 -200
  601. package/dist/client-45COYUUH.js +0 -19
  602. package/dist/code-K4YTLOPA.js +0 -76
  603. package/dist/companies-3EKQ6PBV.js +0 -198
  604. package/dist/company-35ZI77NI.js +0 -308
  605. package/dist/complete-V2HNULPO.js +0 -84
  606. package/dist/config-TCAHWE6T.js +0 -88
  607. package/dist/connect-77K3A6WK.js +0 -45
  608. package/dist/content-MKJP7T7L.js +0 -85
  609. package/dist/conversation-MWBPIT4W.js +0 -96
  610. package/dist/conversion-report-OFV4EKTA.js +0 -127
  611. package/dist/conversion-upload-command-U36QYHUT.js +0 -439
  612. package/dist/conversion-writes-B3H6VLA2.js +0 -122
  613. package/dist/conversions-RXNIACU5.js +0 -140
  614. package/dist/conversions-UGRVDRWU.js +0 -78
  615. package/dist/copy-writes-2B36QJUY.js +0 -170
  616. package/dist/countries-6ST54UGJ.js +0 -82
  617. package/dist/create-AE52ZZMG.js +0 -239
  618. package/dist/create-K2EUYE54.js +0 -218
  619. package/dist/create-L53KW6GN.js +0 -62
  620. package/dist/create-RJHGT2S4.js +0 -135
  621. package/dist/creatives-22BYP5VN.js +0 -118
  622. package/dist/creatives-2JP24JNL.js +0 -229
  623. package/dist/creatives-UPZU7BLY.js +0 -58
  624. package/dist/credentials-WRC7ERSS.js +0 -290
  625. package/dist/critique-VTNN6A5I.js +0 -232
  626. package/dist/crm-2MZLMSEV.js +0 -323
  627. package/dist/crm-VO6ZBW64.js +0 -227
  628. package/dist/crm-VO6ZBW64.js.map +0 -1
  629. package/dist/currency-GLHXNSHY.js +0 -88
  630. package/dist/custom-conversions-V7QPZIB4.js +0 -128
  631. package/dist/customers-MHQ72YBY.js +0 -65
  632. package/dist/decide-JZXG6LZR.js +0 -199
  633. package/dist/delete-5NEAIDA4.js +0 -85
  634. package/dist/delete-6WKVGKRF.js +0 -57
  635. package/dist/delete-POHL3TKX.js +0 -69
  636. package/dist/delete-Q7J734W2.js +0 -71
  637. package/dist/delete-QFASUSVU.js +0 -67
  638. package/dist/delete-ULI3MVAD.js +0 -69
  639. package/dist/demographics-5SXTDRFU.js +0 -141
  640. package/dist/describe-MA54W67X.js +0 -97
  641. package/dist/describe-MJ5SOVWY.js +0 -97
  642. package/dist/discard-P4PGGYYO.js +0 -69
  643. package/dist/discover-J5344ATV.js +0 -172
  644. package/dist/discover-PPMLFJMU.js +0 -93
  645. package/dist/domain-RINRCQ5G.js +0 -101
  646. package/dist/download-H3ZDQTFG.js +0 -337
  647. package/dist/download-HPYGPNHN.js +0 -172
  648. package/dist/draft-2JVWCYRF.js +0 -134
  649. package/dist/draft-4WMYCA7I.js +0 -315
  650. package/dist/draft-4WPWILSX.js +0 -220
  651. package/dist/draft-7VGBJIJU.js +0 -260
  652. package/dist/draft-DR5BJK7V.js +0 -138
  653. package/dist/draft-FWCF4Y6P.js +0 -332
  654. package/dist/draft-M7XINDQU.js +0 -374
  655. package/dist/draft-OIGJUFOH.js +0 -557
  656. package/dist/experiment-O6726OBP.js +0 -1397
  657. package/dist/experiments-NULZPBF2.js +0 -236
  658. package/dist/export-6WWVO4O6.js +0 -168
  659. package/dist/extract-Y3OZG5DZ.js +0 -143
  660. package/dist/facets-HIADYZQQ.js +0 -117
  661. package/dist/favorites-54Z7PTYR.js +0 -178
  662. package/dist/feed-TAGQWMRK.js +0 -177
  663. package/dist/feedback-WEZEKTCH.js +0 -115
  664. package/dist/feedback-Y4AXR354.js +0 -136
  665. package/dist/feedback-Y4AXR354.js.map +0 -1
  666. package/dist/feedback-record-YZNGRSNR.js +0 -269
  667. package/dist/fetch-T6WPGAWP.js +0 -204
  668. package/dist/find-TTJH5NVJ.js +0 -144
  669. package/dist/fit-MLDFA4ZK.js +0 -65
  670. package/dist/flows-XWU2XNYP.js +0 -250
  671. package/dist/follow-SX6BV6VZ.js +0 -94
  672. package/dist/follow-competitors-UBJJHX36.js +0 -112
  673. package/dist/following-L7WUEMZ2.js +0 -113
  674. package/dist/forecast-E5QXQFKQ.js +0 -121
  675. package/dist/forecast-HFCRTFIF.js +0 -169
  676. package/dist/funding-7M4TJ3MW.js +0 -85
  677. package/dist/funnel-NMC3JWTF.js +0 -397
  678. package/dist/ga4-XFJO7VK2.js +0 -55
  679. package/dist/generate-22HT24SA.js +0 -263
  680. package/dist/get-AKTMYS57.js +0 -82
  681. package/dist/get-JIB6PMGI.js +0 -59
  682. package/dist/get-JQE7XWKL.js +0 -62
  683. package/dist/get-MK6M4DKF.js +0 -62
  684. package/dist/get-Q4M6G7YN.js +0 -92
  685. package/dist/get-QS2A6YVM.js +0 -56
  686. package/dist/get-UFCNLDE2.js +0 -74
  687. package/dist/get-X44ZCIFN.js +0 -38
  688. package/dist/gif-TBKH7VSP.js +0 -111
  689. package/dist/google-TKRS4CGR.js +0 -3300
  690. package/dist/google-YDGZ2Q3M.js +0 -163
  691. package/dist/google-ads-AFJV5ZJO.js +0 -198
  692. package/dist/group-45M7V46T.js +0 -43
  693. package/dist/group-RAXOR36M.js +0 -43
  694. package/dist/gsc-ILEIJYWP.js +0 -30
  695. package/dist/history-6RCRBB4Q.js +0 -153
  696. package/dist/history-BEEREY26.js +0 -69
  697. package/dist/history-T6Y5IR4V.js +0 -102
  698. package/dist/hubspot-SNLOCDPF.js +0 -782
  699. package/dist/hubspot-SNLOCDPF.js.map +0 -1
  700. package/dist/icon-CYUIAFTE.js +0 -138
  701. package/dist/ideas-VTBVERCN.js +0 -45
  702. package/dist/images-36DGQZMH.js +0 -92
  703. package/dist/improve-PHFWWTOL.js +0 -86
  704. package/dist/ingest-MLIOEHL3.js +0 -131
  705. package/dist/ingest-OJV3CYYK.js +0 -28
  706. package/dist/insights-A5BKVXFQ.js +0 -132
  707. package/dist/insights-U6QAA77O.js +0 -658
  708. package/dist/inspect-6P2WNFAC.js +0 -192
  709. package/dist/inspiration-WGUU7W5Z.js +0 -53
  710. package/dist/instant-experiences-U6U3FYIH.js +0 -264
  711. package/dist/intent-PU3XUDLL.js +0 -95
  712. package/dist/job-RCEPBGZC.js +0 -202
  713. package/dist/job-create-MDVJ3E7K.js +0 -109
  714. package/dist/job-status-53FJIFYR.js +0 -74
  715. package/dist/keep-ZIHW5OEQ.js +0 -78
  716. package/dist/keyword-gap-B6T7ZFTZ.js +0 -130
  717. package/dist/keyword-metrics-IDMR3ES2.js +0 -200
  718. package/dist/keywords-for-site-V3SGYZDW.js +0 -131
  719. package/dist/knowledge-PN3FAZJ2.js +0 -195
  720. package/dist/landing-7PZPYD3M.js +0 -28
  721. package/dist/landings-FBRB3FF5.js +0 -151
  722. package/dist/languages-ETKG5WM3.js +0 -40
  723. package/dist/languages-Q5RMPGI4.js +0 -55
  724. package/dist/launches-EQ4VS2OR.js +0 -19
  725. package/dist/layerize-SX6LQK35.js +0 -190
  726. package/dist/lead-routes-RLYGO47M.js +0 -733
  727. package/dist/leads-IG3IIHXG.js +0 -541
  728. package/dist/leads-TWABHSJH.js +0 -115
  729. package/dist/learn-MXJSGDVI.js +0 -207
  730. package/dist/library-F4GB5X6G.js +0 -212
  731. package/dist/lighthouse-D3BJGHLO.js +0 -75
  732. package/dist/line-item-writes-2R7VSOWO.js +0 -211
  733. package/dist/line-items-MY6JP2W6.js +0 -107
  734. package/dist/link-LR5LSFTA.js +0 -67
  735. package/dist/linkedin-UJEBBO7G.js +0 -1344
  736. package/dist/linkedin-person-5LJEMW54.js +0 -139
  737. package/dist/list-2NWMHKTR.js +0 -93
  738. package/dist/list-5H6UAX6T.js +0 -57
  739. package/dist/list-5O5NB56G.js +0 -306
  740. package/dist/list-6AAKH6UV.js +0 -67
  741. package/dist/list-ACJBOHPS.js +0 -50
  742. package/dist/list-COWCCJ4F.js +0 -65
  743. package/dist/list-EEQJSTLN.js +0 -51
  744. package/dist/list-OTZB7DOX.js +0 -76
  745. package/dist/list-UYQOLFPN.js +0 -154
  746. package/dist/locations-VPZYTFVK.js +0 -40
  747. package/dist/locations-ZO7F75KT.js +0 -69
  748. package/dist/log-LPY5KYGP.js +0 -95
  749. package/dist/logo-SBIDRBA2.js +0 -19
  750. package/dist/lookup-BGNLEZMU.js +0 -23
  751. package/dist/make-UK2OYKCZ.js +0 -1367
  752. package/dist/map-XEJOI63E.js +0 -436
  753. package/dist/mcp-Y43SKNHV.js +0 -729
  754. package/dist/media-422INJCD.js +0 -89
  755. package/dist/media-AT3VV3PU.js +0 -18
  756. package/dist/media-sources-POL5DMD4.js +0 -35
  757. package/dist/members-5EJVXTE7.js +0 -47
  758. package/dist/meme-VR3IHBRW.js +0 -108
  759. package/dist/meta-XUHI3E3L.js +0 -122
  760. package/dist/metrics-J3WD2CUD.js +0 -152
  761. package/dist/normalize-IOW2V6E7.js +0 -144
  762. package/dist/options-YD6XFRZV.js +0 -125
  763. package/dist/organization-KORFOK7Q.js +0 -949
  764. package/dist/output-2MGOSPDE.js +0 -24
  765. package/dist/page-WKWRKLTC.js +0 -105
  766. package/dist/page-photos-ABK4CJME.js +0 -118
  767. package/dist/pages-LT3KCVC3.js +0 -67
  768. package/dist/performance-BXSNPNC3.js +0 -27
  769. package/dist/performance-Z353JXHB.js +0 -5565
  770. package/dist/pinterest-42NLOZW4.js +0 -105
  771. package/dist/pixels-3BHTXTDV.js +0 -62
  772. package/dist/pixels-IGJFC2XC.js +0 -109
  773. package/dist/plan-ATH2VCVA.js +0 -208
  774. package/dist/posts-K3QTBX2B.js +0 -36
  775. package/dist/preview-3UGPTK44.js +0 -101
  776. package/dist/preview-OV2EZ6YF.js +0 -245
  777. package/dist/profile-OWDBNPNI.js +0 -159
  778. package/dist/promoted-tweet-writes-3D6GG6K4.js +0 -183
  779. package/dist/promoted-tweets-BGQJDEQ2.js +0 -119
  780. package/dist/properties-VSOMFI5V.js +0 -101
  781. package/dist/publish-DBUBFV5R.js +0 -350
  782. package/dist/query-5OS6M4ON.js +0 -231
  783. package/dist/query-NTWXOWPZ.js +0 -236
  784. package/dist/query-YWDUKFS7.js +0 -62
  785. package/dist/questionnaire-HUNGUZNQ.js +0 -94
  786. package/dist/read-DXZJ7UOJ.js +0 -141
  787. package/dist/reddit-GPSRX4TI.js +0 -29
  788. package/dist/refresh-3X45Q6ZM.js +0 -97
  789. package/dist/refresh-BKYZXXRF.js +0 -42
  790. package/dist/release-PE7KBFGK.js +0 -63
  791. package/dist/relevant-pages-7U6I2WPM.js +0 -99
  792. package/dist/remove-2A3XDOKA.js +0 -53
  793. package/dist/remove-MX2FV44C.js +0 -49
  794. package/dist/reopen-LHMLXG6G.js +0 -66
  795. package/dist/rerun-S4VWOIKE.js +0 -97
  796. package/dist/research-55XA4Z2O.js +0 -265
  797. package/dist/research-JN3JGEEL.js +0 -75
  798. package/dist/reset-C5SDRQTX.js +0 -57
  799. package/dist/reset-IY7GNRLF.js +0 -57
  800. package/dist/resolve-PCN7BR7U.js +0 -124
  801. package/dist/retry-2KYMH2IV.js +0 -63
  802. package/dist/retry-KUWJ4GGA.js +0 -65
  803. package/dist/retry-failed-T6PK5SKL.js +0 -45
  804. package/dist/revenue-CRZRJJ7H.js +0 -91
  805. package/dist/rule-writes-HUBHHYEO.js +0 -530
  806. package/dist/rules-47LFGCPW.js +0 -217
  807. package/dist/rules-EKOXAK2O.js +0 -99
  808. package/dist/rules-add-IC3SXNYW.js +0 -465
  809. package/dist/run-WUD5U5GY.js +0 -72
  810. package/dist/run-Y4SEFETX.js +0 -69
  811. package/dist/scaffold-ad-OJ4WOJM6.js +0 -1513
  812. package/dist/scaffold-static-ad-EXUKKYSD.js +0 -1012
  813. package/dist/scaffold-video-7PDZZSKD.js +0 -885
  814. package/dist/schedule-ANIYXLG6.js +0 -67
  815. package/dist/schedule-VCL2OPIL.js +0 -64
  816. package/dist/scheduled-agents-YAHYCFDA.js +0 -55
  817. package/dist/schema-L6DGAUB5.js +0 -135
  818. package/dist/scrape-O4X6VGV2.js +0 -2209
  819. package/dist/screenshot-RR6RA6CN.js +0 -103
  820. package/dist/search-6XKFFDMJ.js +0 -228
  821. package/dist/search-E75B5APM.js +0 -92
  822. package/dist/search-EKTUTXVN.js +0 -51
  823. package/dist/search-OUJUEORX.js +0 -177
  824. package/dist/search-OW3E2Z7Z.js +0 -91
  825. package/dist/search-YARSBZ6D.js +0 -26
  826. package/dist/search-copy-2KO3VR6R.js +0 -168
  827. package/dist/seeds-E64JKXWS.js +0 -101
  828. package/dist/select-R3NT7OI4.js +0 -110
  829. package/dist/sends-DEVRKO4M.js +0 -349
  830. package/dist/sequences-YIQSLKV5.js +0 -146
  831. package/dist/set-prompt-F3SYRT22.js +0 -199
  832. package/dist/setup-links-AHWFGUAO.js +0 -144
  833. package/dist/shared-V5ZS25EO.js +0 -32
  834. package/dist/shopify-BPQCUFFX.js +0 -4009
  835. package/dist/site-KYB2EL72.js +0 -180
  836. package/dist/sitemaps-ZSISKT6L.js +0 -77
  837. package/dist/sites-XMZ3HPHT.js +0 -97
  838. package/dist/skills-6MJC6CSZ.js +0 -47
  839. package/dist/sources-JYOOLCOU.js +0 -30
  840. package/dist/sources-X4URMRLY.js +0 -457
  841. package/dist/stale-KFVY7LSB.js +0 -90
  842. package/dist/stats-FSAXWTSE.js +0 -34
  843. package/dist/status-YVRZBK56.js +0 -65
  844. package/dist/sticker-HMHR7QM7.js +0 -103
  845. package/dist/stock-IAQBUPGQ.js +0 -212
  846. package/dist/studies-QLSKON6M.js +0 -250
  847. package/dist/studio-ZLBBYHNY.js +0 -49
  848. package/dist/study-writes-GBUUKX4O.js +0 -471
  849. package/dist/suggest-DSMKK4FP.js +0 -66
  850. package/dist/sync-KJEXXD3P.js +0 -57
  851. package/dist/sync-WKV3N3LD.js +0 -279
  852. package/dist/sync-XFK4U6TA.js +0 -55
  853. package/dist/sync-definition-BQUVWLCC.js +0 -70
  854. package/dist/tag-L2H5TSFJ.js +0 -57
  855. package/dist/tag-manager-5WZPX2FJ.js +0 -43
  856. package/dist/tags-7CEVWFEZ.js +0 -23
  857. package/dist/tags-BU4KLB37.js +0 -26
  858. package/dist/tags-HKR2GWXV.js +0 -227
  859. package/dist/tags-SKGPECNG.js +0 -23
  860. package/dist/tags-ZLPLHP2G.js +0 -23
  861. package/dist/targeting-DAUTJDUB.js +0 -762
  862. package/dist/targeting-constants-ZS422W5A.js +0 -118
  863. package/dist/targeting-criteria-4C4M3XLJ.js +0 -113
  864. package/dist/targets-C5K2OH3B.js +0 -106
  865. package/dist/terms-NX5CAJXT.js +0 -102
  866. package/dist/testimonials-OJV7EFGS.js +0 -32
  867. package/dist/themes-C4PPU427.js +0 -95
  868. package/dist/top-companies-IZQOKMBU.js +0 -111
  869. package/dist/transcript-K6W7VRA5.js +0 -165
  870. package/dist/translate-M6W6KZZS.js +0 -603
  871. package/dist/triggers-CQFQSODZ.js +0 -144
  872. package/dist/tweets-33OCH74J.js +0 -123
  873. package/dist/unfollow-G26NHR5X.js +0 -46
  874. package/dist/unlink-ITGOP2YH.js +0 -70
  875. package/dist/unstage-EAUF74PI.js +0 -88
  876. package/dist/unstage-OAPP6Z5V.js +0 -96
  877. package/dist/update-GX26VDM4.js +0 -66
  878. package/dist/update-HOFM27UT.js +0 -192
  879. package/dist/update-KXTP3VPI.js +0 -81
  880. package/dist/update-N5NA3JTW.js +0 -101
  881. package/dist/update-PCVDM7HO.js +0 -155
  882. package/dist/upload-3ZGL4WHA.js +0 -155
  883. package/dist/upload-SPCZNAUN.js +0 -137
  884. package/dist/upscale-X3B5CHG3.js +0 -109
  885. package/dist/url-options-5PUWQKWS.js +0 -131
  886. package/dist/url-params-H4LQAYXG.js +0 -101
  887. package/dist/use-HYK67YKZ.js +0 -111
  888. package/dist/validate-XHQ4MIW5.js +0 -125
  889. package/dist/variant-MEHXEXFK.js +0 -338
  890. package/dist/videos-GY6YCGFH.js +0 -41
  891. package/dist/view-HTCYEBXN.js +0 -133
  892. package/dist/viewer-check-UCNIAY7X.js +0 -83
  893. package/dist/web-E7XDCTVJ.js +0 -173
  894. package/dist/winners-CGLS7SZ3.js +0 -113
  895. package/dist/winning-ads-L7FHCD75.js +0 -86
  896. package/dist/write-commands-F5XPPLOO.js +0 -1169
  897. package/dist/write-commands-HQQOJGP4.js +0 -721
  898. package/dist/write-commands-JESAYUEQ.js +0 -1524
  899. package/dist/write-commands-QNXR5ENS.js +0 -206
  900. package/dist/x-ROAUMBHA.js +0 -47
  901. /package/dist/{account-DUGYQJEM.js.map → account-B77TBYMN.js.map} +0 -0
  902. /package/dist/{account-NSRT5KE6.js.map → account-OCFXNHG7.js.map} +0 -0
  903. /package/dist/{account-OXD426YD.js.map → account-U6DFMD2V.js.map} +0 -0
  904. /package/dist/{account-assets-QMKT5AT7.js.map → account-assets-W7K2PUYB.js.map} +0 -0
  905. /package/dist/{account-level-BELF6JHB.js.map → account-level-Z2JEIJ3X.js.map} +0 -0
  906. /package/dist/{account-reads-GQWTMLTY.js.map → account-reads-X35O4MCA.js.map} +0 -0
  907. /package/dist/{account-users-BXJQ4XZV.js.map → account-users-UKKABT5U.js.map} +0 -0
  908. /package/dist/{account-writes-VRRLT356.js.map → account-writes-QSJ74QFR.js.map} +0 -0
  909. /package/dist/{accounts-45MUDNOM.js.map → accounts-55PDBEDN.js.map} +0 -0
  910. /package/dist/{accounts-KQ7NCM4L.js.map → accounts-AK4QIG24.js.map} +0 -0
  911. /package/dist/{accounts-RRCALMPX.js.map → accounts-HGCR3WFZ.js.map} +0 -0
  912. /package/dist/{accounts-DXQ3DHMB.js.map → accounts-QYNZXW2E.js.map} +0 -0
  913. /package/dist/{accounts-KXQY6WKR.js.map → accounts-XL2TMLGE.js.map} +0 -0
  914. /package/dist/{actions-LI43PTFN.js.map → actions-CVTRCHPG.js.map} +0 -0
  915. /package/dist/{active-entities-3266UJYN.js.map → active-entities-HR7NJJLU.js.map} +0 -0
  916. /package/dist/{activecampaign-5A6YHDJW.js.map → activecampaign-UNNM6J7M.js.map} +0 -0
  917. /package/dist/{activities-ORMACIG2.js.map → activities-DEWHKBID.js.map} +0 -0
  918. /package/dist/{ad-group-writes-Y6CCMPCM.js.map → ad-group-writes-QBHOPTT5.js.map} +0 -0
  919. /package/dist/{ad-groups-TW2UKDVU.js.map → ad-groups-JZDUFT6J.js.map} +0 -0
  920. /package/dist/{ad-writes-J3UVUH7D.js.map → ad-writes-QYJO4IB3.js.map} +0 -0
  921. /package/dist/{add-W4HEMTFL.js.map → add-3GOSW7LW.js.map} +0 -0
  922. /package/dist/{add-ZSKEB3CI.js.map → add-DPCBGUA5.js.map} +0 -0
  923. /package/dist/{add-TJHGYZYH.js.map → add-IMKVYDQV.js.map} +0 -0
  924. /package/dist/{add-NJUG3IQ2.js.map → add-PZEVRQ7Z.js.map} +0 -0
  925. /package/dist/{add-XYSUKZSU.js.map → add-QXI627AS.js.map} +0 -0
  926. /package/dist/{add-CKJXQUVI.js.map → add-SPQ4MOCQ.js.map} +0 -0
  927. /package/dist/{add-accounts-IRHBFNNC.js.map → add-accounts-D4V5K7SO.js.map} +0 -0
  928. /package/dist/{ads-OC3ENYUC.js.map → ads-LDCZ65B5.js.map} +0 -0
  929. /package/dist/{ads-H5AEYIY3.js.map → ads-QKVNPHBH.js.map} +0 -0
  930. /package/dist/{ads-DI3J3KCQ.js.map → ads-RTRWWEP5.js.map} +0 -0
  931. /package/dist/{ads-5CJQRTUN.js.map → ads-UMSWEI5X.js.map} +0 -0
  932. /package/dist/{adsets-BUIT7HF2.js.map → adsets-FEVYHKAQ.js.map} +0 -0
  933. /package/dist/{advertisers-5XCIZ7WS.js.map → advertisers-2GKICB23.js.map} +0 -0
  934. /package/dist/{advertisers-KPVUVXZZ.js.map → advertisers-3D36UJTQ.js.map} +0 -0
  935. /package/dist/{analytics-XT4ANMLP.js.map → analytics-YHOXWFBI.js.map} +0 -0
  936. /package/dist/{analytics-4WBRNSUC.js.map → analytics-ZPPZJETP.js.map} +0 -0
  937. /package/dist/{animate-Q43SOWB4.js.map → animate-WS63CZ3Y.js.map} +0 -0
  938. /package/dist/{approved-RP5ADN7E.js.map → approved-3XFZNRJR.js.map} +0 -0
  939. /package/dist/{asset-writes-JVFE457M.js.map → asset-writes-7RFZZYU7.js.map} +0 -0
  940. /package/dist/{assign-SQK4UF3I.js.map → assign-5P7OJBAH.js.map} +0 -0
  941. /package/dist/{audience-size-5Y5Q6UVA.js.map → audience-size-PHFJ22TX.js.map} +0 -0
  942. /package/dist/{audience-writes-DWSCHYQF.js.map → audience-writes-RUGU6KEC.js.map} +0 -0
  943. /package/dist/{audiences-PYBJU2GV.js.map → audiences-6GVUZUCN.js.map} +0 -0
  944. /package/dist/{audiences-5TOTVZMK.js.map → audiences-7OS2ZJYO.js.map} +0 -0
  945. /package/dist/{audiences-4MYDTY74.js.map → audiences-RSAUXKHR.js.map} +0 -0
  946. /package/dist/{audit-GOZNIXNM.js.map → audit-3GRXRDLR.js.map} +0 -0
  947. /package/dist/{audit-SACXTAIP.js.map → audit-4L7IKIRY.js.map} +0 -0
  948. /package/dist/{autocomplete-36S76BGA.js.map → autocomplete-GQLXBG5V.js.map} +0 -0
  949. /package/dist/{avatars-SDQ5LCNG.js.map → avatars-I73KFB3F.js.map} +0 -0
  950. /package/dist/{bid-pricing-6DFGC6YC.js.map → bid-pricing-6MZ7SC72.js.map} +0 -0
  951. /package/dist/{brief-2UXKUTFC.js.map → brief-MI4RLV4N.js.map} +0 -0
  952. /package/dist/{businesses-F6PN34WK.js.map → businesses-42NZP6FP.js.map} +0 -0
  953. /package/dist/{campaign-groups-32LDB42N.js.map → campaign-groups-QZ2NW5AW.js.map} +0 -0
  954. /package/dist/{campaign-writes-62V55CNW.js.map → campaign-writes-BGS53O4B.js.map} +0 -0
  955. /package/dist/{campaign-writes-BHS3POAH.js.map → campaign-writes-GKNH2EHV.js.map} +0 -0
  956. /package/dist/{campaigns-IRMLPW6N.js.map → campaigns-7RV65SXR.js.map} +0 -0
  957. /package/dist/{campaigns-OGNE4XHM.js.map → campaigns-FGIVPEVA.js.map} +0 -0
  958. /package/dist/{campaigns-2Z6WXIVA.js.map → campaigns-TO74Z7UH.js.map} +0 -0
  959. /package/dist/{campaigns-I5GSGZDJ.js.map → campaigns-YBPXM6B3.js.map} +0 -0
  960. /package/dist/{canvas-HGU7FJ34.js.map → canvas-YTSJAEOF.js.map} +0 -0
  961. /package/dist/{capabilities-EDXVGZXC.js.map → capabilities-YFXCTUJJ.js.map} +0 -0
  962. /package/dist/{cards-HUXBNMEM.js.map → cards-CAOGPPG4.js.map} +0 -0
  963. /package/dist/{catalogs-WYRRTRCM.js.map → catalogs-5LWEXG5X.js.map} +0 -0
  964. /package/dist/{catalogs-OEUNVE4N.js.map → catalogs-7IEXGLSR.js.map} +0 -0
  965. /package/dist/{changes-AEAVFB3M.js.map → changes-6CL42LG3.js.map} +0 -0
  966. /package/dist/{chatgpt-6KBW7F5S.js.map → chatgpt-HLIQ7OJZ.js.map} +0 -0
  967. /package/dist/{chats-HFKSZWZD.js.map → chats-D5W2UWD4.js.map} +0 -0
  968. /package/dist/{check-GRVUI3LI.js.map → check-FFMWUB72.js.map} +0 -0
  969. /package/dist/{chunk-DSDI5DY3.js.map → chunk-2DAWUWA4.js.map} +0 -0
  970. /package/dist/{chunk-37QHT7J4.js.map → chunk-2DVFPCH3.js.map} +0 -0
  971. /package/dist/{chunk-TLNYAZX5.js.map → chunk-2LBQNTTH.js.map} +0 -0
  972. /package/dist/{chunk-PBKUESJD.js.map → chunk-2VHYY4RU.js.map} +0 -0
  973. /package/dist/{chunk-ZW2CN6L6.js.map → chunk-3E74OM2E.js.map} +0 -0
  974. /package/dist/{chunk-EDWW3THE.js.map → chunk-3FLSRUID.js.map} +0 -0
  975. /package/dist/{chunk-BU7W7MKF.js.map → chunk-3LYT3NQX.js.map} +0 -0
  976. /package/dist/{chunk-LBJ2CLRT.js.map → chunk-4UNJ4ENA.js.map} +0 -0
  977. /package/dist/{chunk-KY6Q4WLC.js.map → chunk-533R4P5O.js.map} +0 -0
  978. /package/dist/{chunk-XZMO52BP.js.map → chunk-5E4Y6RVY.js.map} +0 -0
  979. /package/dist/{chunk-QY7EK6Q4.js.map → chunk-5H6N36LS.js.map} +0 -0
  980. /package/dist/{chunk-HHMBHLX6.js.map → chunk-6I7GJDBX.js.map} +0 -0
  981. /package/dist/{chunk-CQMAR4BH.js.map → chunk-6IR7IQPV.js.map} +0 -0
  982. /package/dist/{chunk-VIRPAJEF.js.map → chunk-6PO3WSFJ.js.map} +0 -0
  983. /package/dist/{chunk-J6KCVW6N.js.map → chunk-6QNXBEIN.js.map} +0 -0
  984. /package/dist/{chunk-ZSZ76MUL.js.map → chunk-BESCYH3K.js.map} +0 -0
  985. /package/dist/{chunk-SNSLYZIT.js.map → chunk-BGMIO2FR.js.map} +0 -0
  986. /package/dist/{chunk-CZTKRP6M.js.map → chunk-BVGRKVHL.js.map} +0 -0
  987. /package/dist/{chunk-GAP7SOGA.js.map → chunk-C3EX5OKN.js.map} +0 -0
  988. /package/dist/{chunk-OEH7ANJJ.js.map → chunk-CHVLFACB.js.map} +0 -0
  989. /package/dist/{chunk-QFODAMYR.js.map → chunk-CP6RFWLW.js.map} +0 -0
  990. /package/dist/{chunk-72JEATZ5.js.map → chunk-D2GDHVZP.js.map} +0 -0
  991. /package/dist/{chunk-CXYX6G3I.js.map → chunk-D3YAFC6K.js.map} +0 -0
  992. /package/dist/{chunk-AL4MRNYI.js.map → chunk-DFDV42NY.js.map} +0 -0
  993. /package/dist/{chunk-3J52GJAY.js.map → chunk-EFTYCX5C.js.map} +0 -0
  994. /package/dist/{chunk-YXUIVOUL.js.map → chunk-F62BW6DJ.js.map} +0 -0
  995. /package/dist/{chunk-IIK4WNWV.js.map → chunk-FLQNIFG2.js.map} +0 -0
  996. /package/dist/{chunk-VAQOSV3I.js.map → chunk-FWHEAR7F.js.map} +0 -0
  997. /package/dist/{chunk-4ICSKDI7.js.map → chunk-FXZGRP3F.js.map} +0 -0
  998. /package/dist/{chunk-26UW2GMK.js.map → chunk-GQ4DMO5Q.js.map} +0 -0
  999. /package/dist/{chunk-G3ZUMNLG.js.map → chunk-GUH2A5R5.js.map} +0 -0
  1000. /package/dist/{chunk-5G6R3WYN.js.map → chunk-HJ3Q4NOM.js.map} +0 -0
  1001. /package/dist/{chunk-D7FJ5KHG.js.map → chunk-IDDG4QKO.js.map} +0 -0
  1002. /package/dist/{chunk-EJMPKO6V.js.map → chunk-ILGRC7LJ.js.map} +0 -0
  1003. /package/dist/{chunk-65CQYRMK.js.map → chunk-JTIWQLY5.js.map} +0 -0
  1004. /package/dist/{chunk-RIVHJC6L.js.map → chunk-KDVYI4LC.js.map} +0 -0
  1005. /package/dist/{chunk-724E32DM.js.map → chunk-LAP23AND.js.map} +0 -0
  1006. /package/dist/{chunk-UZEKIMLY.js.map → chunk-LFPBZL2X.js.map} +0 -0
  1007. /package/dist/{chunk-LIBSSGE4.js.map → chunk-MSGIF4EC.js.map} +0 -0
  1008. /package/dist/{chunk-EHNORFUW.js.map → chunk-MYIOR35H.js.map} +0 -0
  1009. /package/dist/{chunk-ZU6JW3ZB.js.map → chunk-NTFNLVZG.js.map} +0 -0
  1010. /package/dist/{chunk-KE5TI23P.js.map → chunk-OAJ6LVL2.js.map} +0 -0
  1011. /package/dist/{chunk-FAV6GUOZ.js.map → chunk-OASXBRXQ.js.map} +0 -0
  1012. /package/dist/{chunk-PGAYESXE.js.map → chunk-OFMFBRSL.js.map} +0 -0
  1013. /package/dist/{chunk-6MZFOMLU.js.map → chunk-ORQ3WBM6.js.map} +0 -0
  1014. /package/dist/{chunk-G4JTXVLA.js.map → chunk-OSQTSS27.js.map} +0 -0
  1015. /package/dist/{chunk-TWFZIHKK.js.map → chunk-OTRKBCUB.js.map} +0 -0
  1016. /package/dist/{chunk-NKZDYXEN.js.map → chunk-OWEON2S7.js.map} +0 -0
  1017. /package/dist/{chunk-LK5OKVCM.js.map → chunk-PH3FZZIT.js.map} +0 -0
  1018. /package/dist/{chunk-DYWKYP7Z.js.map → chunk-PXLBPOI3.js.map} +0 -0
  1019. /package/dist/{chunk-KDTSXLY7.js.map → chunk-QLXVHWAC.js.map} +0 -0
  1020. /package/dist/{chunk-5NJQXV4K.js.map → chunk-QPTYTM2X.js.map} +0 -0
  1021. /package/dist/{chunk-NPDZ4EO6.js.map → chunk-R2Z5L5CF.js.map} +0 -0
  1022. /package/dist/{chunk-P5HG6WDH.js.map → chunk-R4RWQ6YX.js.map} +0 -0
  1023. /package/dist/{chunk-QYH2UZAK.js.map → chunk-RBCO3C3Q.js.map} +0 -0
  1024. /package/dist/{chunk-WQIHLJAO.js.map → chunk-RHSKKWPO.js.map} +0 -0
  1025. /package/dist/{chunk-BS4PRGEJ.js.map → chunk-RJ2ETGAQ.js.map} +0 -0
  1026. /package/dist/{chunk-PZSOJYER.js.map → chunk-S37ZZSNM.js.map} +0 -0
  1027. /package/dist/{chunk-KV4E4KGE.js.map → chunk-SJIEU3VG.js.map} +0 -0
  1028. /package/dist/{chunk-2LGDWOD7.js.map → chunk-SKI7QMDT.js.map} +0 -0
  1029. /package/dist/{chunk-VKYDHIBT.js.map → chunk-SLLY4ZTT.js.map} +0 -0
  1030. /package/dist/{chunk-VR6XCLY6.js.map → chunk-TCR6KI6P.js.map} +0 -0
  1031. /package/dist/{chunk-AQ6LJ7EI.js.map → chunk-UKDILXEA.js.map} +0 -0
  1032. /package/dist/{chunk-7SNNQCDD.js.map → chunk-ULIQNJ5J.js.map} +0 -0
  1033. /package/dist/{chunk-UB34H4VD.js.map → chunk-UR7ENZ3F.js.map} +0 -0
  1034. /package/dist/{chunk-EENYLJUN.js.map → chunk-UYZ4FUC7.js.map} +0 -0
  1035. /package/dist/{chunk-6KEVNO5O.js.map → chunk-WBWEKZQ2.js.map} +0 -0
  1036. /package/dist/{chunk-WLD443MX.js.map → chunk-WYXYAKUP.js.map} +0 -0
  1037. /package/dist/{chunk-QBCZLD3A.js.map → chunk-X7XFAFU4.js.map} +0 -0
  1038. /package/dist/{chunk-YS7T735Q.js.map → chunk-Y43FKOED.js.map} +0 -0
  1039. /package/dist/{chunk-OVC2PIOP.js.map → chunk-Y6XWO4V4.js.map} +0 -0
  1040. /package/dist/{chunk-5HPKYRTE.js.map → chunk-YB6G3B3L.js.map} +0 -0
  1041. /package/dist/{chunk-H6GTG665.js.map → chunk-YD6OZSSY.js.map} +0 -0
  1042. /package/dist/{chunk-SKVQRTDO.js.map → chunk-YFBHZ57K.js.map} +0 -0
  1043. /package/dist/{chunk-XGN3BGSL.js.map → chunk-ZD5MNBLA.js.map} +0 -0
  1044. /package/dist/{chunk-CZESYOCC.js.map → chunk-ZZ5B2ZRM.js.map} +0 -0
  1045. /package/dist/{cite-TRNZYG4W.js.map → cite-AJ5ZQWD2.js.map} +0 -0
  1046. /package/dist/{claim-NUUED375.js.map → claim-G4TW75Z2.js.map} +0 -0
  1047. /package/dist/{client-45COYUUH.js.map → client-F6KOC77S.js.map} +0 -0
  1048. /package/dist/{code-K4YTLOPA.js.map → code-NV4ARLFS.js.map} +0 -0
  1049. /package/dist/{companies-3EKQ6PBV.js.map → companies-TYDUEKET.js.map} +0 -0
  1050. /package/dist/{company-35ZI77NI.js.map → company-V5WKGDGU.js.map} +0 -0
  1051. /package/dist/{complete-V2HNULPO.js.map → complete-QEKKP7YL.js.map} +0 -0
  1052. /package/dist/{config-TCAHWE6T.js.map → config-NDL2YP37.js.map} +0 -0
  1053. /package/dist/{connect-77K3A6WK.js.map → connect-5Q2HQ7LT.js.map} +0 -0
  1054. /package/dist/{content-MKJP7T7L.js.map → content-EQZKKIST.js.map} +0 -0
  1055. /package/dist/{conversation-MWBPIT4W.js.map → conversation-JIVOIZ5E.js.map} +0 -0
  1056. /package/dist/{conversion-report-OFV4EKTA.js.map → conversion-report-76S5JOVT.js.map} +0 -0
  1057. /package/dist/{conversion-upload-command-U36QYHUT.js.map → conversion-upload-command-WNHVNVMW.js.map} +0 -0
  1058. /package/dist/{conversion-writes-B3H6VLA2.js.map → conversion-writes-6HX665JT.js.map} +0 -0
  1059. /package/dist/{conversions-UGRVDRWU.js.map → conversions-A524MH5C.js.map} +0 -0
  1060. /package/dist/{conversions-RXNIACU5.js.map → conversions-PSXVU4JL.js.map} +0 -0
  1061. /package/dist/{copy-writes-2B36QJUY.js.map → copy-writes-X2LM5I4Z.js.map} +0 -0
  1062. /package/dist/{countries-6ST54UGJ.js.map → countries-GZSBGSVT.js.map} +0 -0
  1063. /package/dist/{create-RJHGT2S4.js.map → create-7QGB33HI.js.map} +0 -0
  1064. /package/dist/{create-AE52ZZMG.js.map → create-AV7UY4N5.js.map} +0 -0
  1065. /package/dist/{create-L53KW6GN.js.map → create-CHBC745Y.js.map} +0 -0
  1066. /package/dist/{create-K2EUYE54.js.map → create-SBQU7B3S.js.map} +0 -0
  1067. /package/dist/{creatives-2JP24JNL.js.map → creatives-LNUSBQXQ.js.map} +0 -0
  1068. /package/dist/{creatives-22BYP5VN.js.map → creatives-SFPNXJ6Z.js.map} +0 -0
  1069. /package/dist/{creatives-UPZU7BLY.js.map → creatives-XQILGK6P.js.map} +0 -0
  1070. /package/dist/{credentials-WRC7ERSS.js.map → credentials-IWF37PAQ.js.map} +0 -0
  1071. /package/dist/{critique-VTNN6A5I.js.map → critique-ETRQP3QZ.js.map} +0 -0
  1072. /package/dist/{crm-2MZLMSEV.js.map → crm-IDN55BIC.js.map} +0 -0
  1073. /package/dist/{currency-GLHXNSHY.js.map → currency-VQMZZXSS.js.map} +0 -0
  1074. /package/dist/{custom-conversions-V7QPZIB4.js.map → custom-conversions-UHRBVUD2.js.map} +0 -0
  1075. /package/dist/{customers-MHQ72YBY.js.map → customers-XANEOEW6.js.map} +0 -0
  1076. /package/dist/{decide-JZXG6LZR.js.map → decide-AM6B7WIL.js.map} +0 -0
  1077. /package/dist/{delete-ULI3MVAD.js.map → delete-2WL6K24W.js.map} +0 -0
  1078. /package/dist/{delete-Q7J734W2.js.map → delete-46B7DSQV.js.map} +0 -0
  1079. /package/dist/{delete-QFASUSVU.js.map → delete-6K7EZXNR.js.map} +0 -0
  1080. /package/dist/{delete-6WKVGKRF.js.map → delete-SCAVFYZL.js.map} +0 -0
  1081. /package/dist/{delete-POHL3TKX.js.map → delete-WAPC4XC2.js.map} +0 -0
  1082. /package/dist/{delete-5NEAIDA4.js.map → delete-YYIM564B.js.map} +0 -0
  1083. /package/dist/{demographics-5SXTDRFU.js.map → demographics-JJKL7MZC.js.map} +0 -0
  1084. /package/dist/{describe-MJ5SOVWY.js.map → describe-5OC7XX2U.js.map} +0 -0
  1085. /package/dist/{describe-MA54W67X.js.map → describe-EAPKNUUU.js.map} +0 -0
  1086. /package/dist/{discard-P4PGGYYO.js.map → discard-FQDZ5GKN.js.map} +0 -0
  1087. /package/dist/{discover-J5344ATV.js.map → discover-4F4USNHE.js.map} +0 -0
  1088. /package/dist/{discover-PPMLFJMU.js.map → discover-P7PBB3IV.js.map} +0 -0
  1089. /package/dist/{domain-RINRCQ5G.js.map → domain-AFWPUOI7.js.map} +0 -0
  1090. /package/dist/{download-HPYGPNHN.js.map → download-MXKBJPPF.js.map} +0 -0
  1091. /package/dist/{download-H3ZDQTFG.js.map → download-YB2DVMRS.js.map} +0 -0
  1092. /package/dist/{draft-2JVWCYRF.js.map → draft-44KTLX4P.js.map} +0 -0
  1093. /package/dist/{draft-7VGBJIJU.js.map → draft-CKFSZDVI.js.map} +0 -0
  1094. /package/dist/{draft-M7XINDQU.js.map → draft-EKJQGNFT.js.map} +0 -0
  1095. /package/dist/{draft-FWCF4Y6P.js.map → draft-OJHTFELQ.js.map} +0 -0
  1096. /package/dist/{draft-DR5BJK7V.js.map → draft-RSKZSUOS.js.map} +0 -0
  1097. /package/dist/{draft-OIGJUFOH.js.map → draft-VIZTQ6W4.js.map} +0 -0
  1098. /package/dist/{draft-4WMYCA7I.js.map → draft-WOE7KQ7T.js.map} +0 -0
  1099. /package/dist/{draft-4WPWILSX.js.map → draft-Z5IVHUHR.js.map} +0 -0
  1100. /package/dist/{experiment-O6726OBP.js.map → experiment-EFLKDQ3C.js.map} +0 -0
  1101. /package/dist/{experiments-NULZPBF2.js.map → experiments-YUBVWNB5.js.map} +0 -0
  1102. /package/dist/{export-6WWVO4O6.js.map → export-RPNRPTDK.js.map} +0 -0
  1103. /package/dist/{extract-Y3OZG5DZ.js.map → extract-VHM2UNIE.js.map} +0 -0
  1104. /package/dist/{facets-HIADYZQQ.js.map → facets-5GLKSHTA.js.map} +0 -0
  1105. /package/dist/{favorites-54Z7PTYR.js.map → favorites-536I3GZD.js.map} +0 -0
  1106. /package/dist/{feed-TAGQWMRK.js.map → feed-W3ECHUEX.js.map} +0 -0
  1107. /package/dist/{feedback-WEZEKTCH.js.map → feedback-36TL4GPS.js.map} +0 -0
  1108. /package/dist/{feedback-record-YZNGRSNR.js.map → feedback-record-QGAP4HA4.js.map} +0 -0
  1109. /package/dist/{fetch-T6WPGAWP.js.map → fetch-X4RIDS7N.js.map} +0 -0
  1110. /package/dist/{find-TTJH5NVJ.js.map → find-57WYB4V3.js.map} +0 -0
  1111. /package/dist/{fit-MLDFA4ZK.js.map → fit-V4CRDVQV.js.map} +0 -0
  1112. /package/dist/{flows-XWU2XNYP.js.map → flows-YPBWZR4P.js.map} +0 -0
  1113. /package/dist/{follow-SX6BV6VZ.js.map → follow-5VX5JWAQ.js.map} +0 -0
  1114. /package/dist/{follow-competitors-UBJJHX36.js.map → follow-competitors-D7I33T5C.js.map} +0 -0
  1115. /package/dist/{following-L7WUEMZ2.js.map → following-6DI4IZ7P.js.map} +0 -0
  1116. /package/dist/{forecast-HFCRTFIF.js.map → forecast-E2HJSD6E.js.map} +0 -0
  1117. /package/dist/{forecast-E5QXQFKQ.js.map → forecast-LMYMZHZE.js.map} +0 -0
  1118. /package/dist/{funding-7M4TJ3MW.js.map → funding-BSAHWU35.js.map} +0 -0
  1119. /package/dist/{funnel-NMC3JWTF.js.map → funnel-MF2KFXEX.js.map} +0 -0
  1120. /package/dist/{ga4-XFJO7VK2.js.map → ga4-FCMTGV4S.js.map} +0 -0
  1121. /package/dist/{generate-22HT24SA.js.map → generate-VGGXTZBP.js.map} +0 -0
  1122. /package/dist/{get-JIB6PMGI.js.map → get-42V7UTNF.js.map} +0 -0
  1123. /package/dist/{get-X44ZCIFN.js.map → get-5SCYUC4G.js.map} +0 -0
  1124. /package/dist/{get-AKTMYS57.js.map → get-7NI64G6K.js.map} +0 -0
  1125. /package/dist/{get-UFCNLDE2.js.map → get-BQBLPGFE.js.map} +0 -0
  1126. /package/dist/{get-QS2A6YVM.js.map → get-JHOH74X5.js.map} +0 -0
  1127. /package/dist/{get-JQE7XWKL.js.map → get-MVZWQ4BE.js.map} +0 -0
  1128. /package/dist/{get-MK6M4DKF.js.map → get-TBMTBGHJ.js.map} +0 -0
  1129. /package/dist/{get-Q4M6G7YN.js.map → get-V4NJXKUR.js.map} +0 -0
  1130. /package/dist/{gif-TBKH7VSP.js.map → gif-M2GMVWM4.js.map} +0 -0
  1131. /package/dist/{google-YDGZ2Q3M.js.map → google-YNVTLX5E.js.map} +0 -0
  1132. /package/dist/{google-TKRS4CGR.js.map → google-ZRZGM2XI.js.map} +0 -0
  1133. /package/dist/{google-ads-AFJV5ZJO.js.map → google-ads-UER2CSQN.js.map} +0 -0
  1134. /package/dist/{group-RAXOR36M.js.map → group-PLTVV7UZ.js.map} +0 -0
  1135. /package/dist/{group-45M7V46T.js.map → group-THZPJALS.js.map} +0 -0
  1136. /package/dist/{gsc-ILEIJYWP.js.map → gsc-A3KB36WH.js.map} +0 -0
  1137. /package/dist/{history-T6Y5IR4V.js.map → history-3GRRZSWW.js.map} +0 -0
  1138. /package/dist/{history-6RCRBB4Q.js.map → history-LBIA45H3.js.map} +0 -0
  1139. /package/dist/{history-BEEREY26.js.map → history-LXRFZNW7.js.map} +0 -0
  1140. /package/dist/{icon-CYUIAFTE.js.map → icon-7WND6UPY.js.map} +0 -0
  1141. /package/dist/{ideas-VTBVERCN.js.map → ideas-LDQMFMJM.js.map} +0 -0
  1142. /package/dist/{images-36DGQZMH.js.map → images-2FDXHKMR.js.map} +0 -0
  1143. /package/dist/{improve-PHFWWTOL.js.map → improve-NWFQI63B.js.map} +0 -0
  1144. /package/dist/{ingest-MLIOEHL3.js.map → ingest-OJDK7AGH.js.map} +0 -0
  1145. /package/dist/{ingest-OJV3CYYK.js.map → ingest-PS2LOYBM.js.map} +0 -0
  1146. /package/dist/{insights-A5BKVXFQ.js.map → insights-H6M6VI43.js.map} +0 -0
  1147. /package/dist/{insights-U6QAA77O.js.map → insights-LZJZGNJZ.js.map} +0 -0
  1148. /package/dist/{inspect-6P2WNFAC.js.map → inspect-ALSHVHUP.js.map} +0 -0
  1149. /package/dist/{inspiration-WGUU7W5Z.js.map → inspiration-TQHQNILK.js.map} +0 -0
  1150. /package/dist/{instant-experiences-U6U3FYIH.js.map → instant-experiences-J4GSS3Y6.js.map} +0 -0
  1151. /package/dist/{intent-PU3XUDLL.js.map → intent-ZKLT4DAW.js.map} +0 -0
  1152. /package/dist/{job-RCEPBGZC.js.map → job-UFGGBDG7.js.map} +0 -0
  1153. /package/dist/{job-create-MDVJ3E7K.js.map → job-create-XM4NH322.js.map} +0 -0
  1154. /package/dist/{job-status-53FJIFYR.js.map → job-status-47L5Z57J.js.map} +0 -0
  1155. /package/dist/{keep-ZIHW5OEQ.js.map → keep-I6FLGJH4.js.map} +0 -0
  1156. /package/dist/{keyword-gap-B6T7ZFTZ.js.map → keyword-gap-QC3ITLNG.js.map} +0 -0
  1157. /package/dist/{keyword-metrics-IDMR3ES2.js.map → keyword-metrics-PERWGH54.js.map} +0 -0
  1158. /package/dist/{keywords-for-site-V3SGYZDW.js.map → keywords-for-site-CCCB6KHE.js.map} +0 -0
  1159. /package/dist/{knowledge-PN3FAZJ2.js.map → knowledge-H5PJ6LZB.js.map} +0 -0
  1160. /package/dist/{landing-7PZPYD3M.js.map → landing-VE3MHOA3.js.map} +0 -0
  1161. /package/dist/{landings-FBRB3FF5.js.map → landings-AELJXEYN.js.map} +0 -0
  1162. /package/dist/{languages-Q5RMPGI4.js.map → languages-GCRI2PI3.js.map} +0 -0
  1163. /package/dist/{languages-ETKG5WM3.js.map → languages-QMLC4QWZ.js.map} +0 -0
  1164. /package/dist/{launches-EQ4VS2OR.js.map → launches-CKPZFVMQ.js.map} +0 -0
  1165. /package/dist/{layerize-SX6LQK35.js.map → layerize-PHY25VNC.js.map} +0 -0
  1166. /package/dist/{lead-routes-RLYGO47M.js.map → lead-routes-ZMKRNL57.js.map} +0 -0
  1167. /package/dist/{leads-IG3IIHXG.js.map → leads-SEEJ3KRR.js.map} +0 -0
  1168. /package/dist/{leads-TWABHSJH.js.map → leads-TPMLYLBH.js.map} +0 -0
  1169. /package/dist/{learn-MXJSGDVI.js.map → learn-KK3AJS3N.js.map} +0 -0
  1170. /package/dist/{library-F4GB5X6G.js.map → library-5YJCCEFL.js.map} +0 -0
  1171. /package/dist/{lighthouse-D3BJGHLO.js.map → lighthouse-W3KAVW2G.js.map} +0 -0
  1172. /package/dist/{line-item-writes-2R7VSOWO.js.map → line-item-writes-ONKDXKOM.js.map} +0 -0
  1173. /package/dist/{line-items-MY6JP2W6.js.map → line-items-ILJYVUHX.js.map} +0 -0
  1174. /package/dist/{link-LR5LSFTA.js.map → link-YDHTMDC5.js.map} +0 -0
  1175. /package/dist/{linkedin-UJEBBO7G.js.map → linkedin-N3NGCE5N.js.map} +0 -0
  1176. /package/dist/{linkedin-person-5LJEMW54.js.map → linkedin-person-6F3YJHXM.js.map} +0 -0
  1177. /package/dist/{list-2NWMHKTR.js.map → list-2EJ3XZ6I.js.map} +0 -0
  1178. /package/dist/{list-COWCCJ4F.js.map → list-BQWHFEWY.js.map} +0 -0
  1179. /package/dist/{list-ACJBOHPS.js.map → list-E7JG27WS.js.map} +0 -0
  1180. /package/dist/{list-5O5NB56G.js.map → list-EKL5HIR7.js.map} +0 -0
  1181. /package/dist/{list-OTZB7DOX.js.map → list-ERCPPED6.js.map} +0 -0
  1182. /package/dist/{list-6AAKH6UV.js.map → list-F7UDUU7C.js.map} +0 -0
  1183. /package/dist/{list-5H6UAX6T.js.map → list-HYZL4576.js.map} +0 -0
  1184. /package/dist/{list-EEQJSTLN.js.map → list-IKQFAJP7.js.map} +0 -0
  1185. /package/dist/{list-UYQOLFPN.js.map → list-WDTPTY2T.js.map} +0 -0
  1186. /package/dist/{locations-ZO7F75KT.js.map → locations-5SLLGWZO.js.map} +0 -0
  1187. /package/dist/{locations-VPZYTFVK.js.map → locations-DNRK7DY4.js.map} +0 -0
  1188. /package/dist/{log-LPY5KYGP.js.map → log-BZBRXB5P.js.map} +0 -0
  1189. /package/dist/{logo-SBIDRBA2.js.map → logo-ODONF6N7.js.map} +0 -0
  1190. /package/dist/{lookup-BGNLEZMU.js.map → lookup-OU6CLATK.js.map} +0 -0
  1191. /package/dist/{make-UK2OYKCZ.js.map → make-W27CB5X4.js.map} +0 -0
  1192. /package/dist/{map-XEJOI63E.js.map → map-FNB7IWDY.js.map} +0 -0
  1193. /package/dist/{mcp-Y43SKNHV.js.map → mcp-QSDCAWMU.js.map} +0 -0
  1194. /package/dist/{media-422INJCD.js.map → media-DGV2AMZI.js.map} +0 -0
  1195. /package/dist/{media-AT3VV3PU.js.map → media-YKCCMLXL.js.map} +0 -0
  1196. /package/dist/{media-sources-POL5DMD4.js.map → media-sources-NMT4G45B.js.map} +0 -0
  1197. /package/dist/{members-5EJVXTE7.js.map → members-2XQ6E33F.js.map} +0 -0
  1198. /package/dist/{meme-VR3IHBRW.js.map → meme-3QYKC4BF.js.map} +0 -0
  1199. /package/dist/{meta-XUHI3E3L.js.map → meta-5KQ6CQBT.js.map} +0 -0
  1200. /package/dist/{metrics-J3WD2CUD.js.map → metrics-P4QDFCVB.js.map} +0 -0
  1201. /package/dist/{normalize-IOW2V6E7.js.map → normalize-5AU7SKYY.js.map} +0 -0
  1202. /package/dist/{options-YD6XFRZV.js.map → options-CH52EP5K.js.map} +0 -0
  1203. /package/dist/{organization-KORFOK7Q.js.map → organization-6T4Q6XYI.js.map} +0 -0
  1204. /package/dist/{output-2MGOSPDE.js.map → output-7X5WPPCA.js.map} +0 -0
  1205. /package/dist/{page-WKWRKLTC.js.map → page-GBLVAKU3.js.map} +0 -0
  1206. /package/dist/{page-photos-ABK4CJME.js.map → page-photos-VYJU4RNQ.js.map} +0 -0
  1207. /package/dist/{pages-LT3KCVC3.js.map → pages-6YMPZDEY.js.map} +0 -0
  1208. /package/dist/{performance-BXSNPNC3.js.map → performance-2SCAQSQK.js.map} +0 -0
  1209. /package/dist/{performance-Z353JXHB.js.map → performance-4DMGJCN7.js.map} +0 -0
  1210. /package/dist/{pinterest-42NLOZW4.js.map → pinterest-235S7E6H.js.map} +0 -0
  1211. /package/dist/{pixels-IGJFC2XC.js.map → pixels-DZDVNIVL.js.map} +0 -0
  1212. /package/dist/{pixels-3BHTXTDV.js.map → pixels-WTTLC4O5.js.map} +0 -0
  1213. /package/dist/{plan-ATH2VCVA.js.map → plan-JAWESWJN.js.map} +0 -0
  1214. /package/dist/{posts-K3QTBX2B.js.map → posts-TRQCRLYZ.js.map} +0 -0
  1215. /package/dist/{preview-3UGPTK44.js.map → preview-ICZR3SGB.js.map} +0 -0
  1216. /package/dist/{preview-OV2EZ6YF.js.map → preview-JZXGR4KN.js.map} +0 -0
  1217. /package/dist/{profile-OWDBNPNI.js.map → profile-MKKJT2UF.js.map} +0 -0
  1218. /package/dist/{promoted-tweet-writes-3D6GG6K4.js.map → promoted-tweet-writes-DR6V7MHW.js.map} +0 -0
  1219. /package/dist/{promoted-tweets-BGQJDEQ2.js.map → promoted-tweets-IRECARIO.js.map} +0 -0
  1220. /package/dist/{properties-VSOMFI5V.js.map → properties-Z5S3LRJ5.js.map} +0 -0
  1221. /package/dist/{publish-DBUBFV5R.js.map → publish-4HM2CJVF.js.map} +0 -0
  1222. /package/dist/{query-YWDUKFS7.js.map → query-AQ6HNKW7.js.map} +0 -0
  1223. /package/dist/{query-NTWXOWPZ.js.map → query-KKXCMH3Q.js.map} +0 -0
  1224. /package/dist/{query-5OS6M4ON.js.map → query-QXKGVHZL.js.map} +0 -0
  1225. /package/dist/{questionnaire-HUNGUZNQ.js.map → questionnaire-U7UYICEA.js.map} +0 -0
  1226. /package/dist/{read-DXZJ7UOJ.js.map → read-ENUS7P3L.js.map} +0 -0
  1227. /package/dist/{reddit-GPSRX4TI.js.map → reddit-KOC7KLYS.js.map} +0 -0
  1228. /package/dist/{refresh-3X45Q6ZM.js.map → refresh-2KEQLXRK.js.map} +0 -0
  1229. /package/dist/{refresh-BKYZXXRF.js.map → refresh-JSCYTM4B.js.map} +0 -0
  1230. /package/dist/{release-PE7KBFGK.js.map → release-X3Q3RFQC.js.map} +0 -0
  1231. /package/dist/{relevant-pages-7U6I2WPM.js.map → relevant-pages-NZKXWMNA.js.map} +0 -0
  1232. /package/dist/{remove-MX2FV44C.js.map → remove-6FXTPEB6.js.map} +0 -0
  1233. /package/dist/{remove-2A3XDOKA.js.map → remove-RYR6EAJY.js.map} +0 -0
  1234. /package/dist/{reopen-LHMLXG6G.js.map → reopen-PIKLC5OW.js.map} +0 -0
  1235. /package/dist/{rerun-S4VWOIKE.js.map → rerun-2HBMXJ55.js.map} +0 -0
  1236. /package/dist/{research-JN3JGEEL.js.map → research-ZBZONY3D.js.map} +0 -0
  1237. /package/dist/{research-55XA4Z2O.js.map → research-ZTA4XKNA.js.map} +0 -0
  1238. /package/dist/{reset-IY7GNRLF.js.map → reset-7YTMXVNX.js.map} +0 -0
  1239. /package/dist/{reset-C5SDRQTX.js.map → reset-Q3XSD4WI.js.map} +0 -0
  1240. /package/dist/{resolve-PCN7BR7U.js.map → resolve-P3AT2S6A.js.map} +0 -0
  1241. /package/dist/{retry-2KYMH2IV.js.map → retry-CEZLEN7Z.js.map} +0 -0
  1242. /package/dist/{retry-KUWJ4GGA.js.map → retry-YNNFUDWI.js.map} +0 -0
  1243. /package/dist/{retry-failed-T6PK5SKL.js.map → retry-failed-FCS6PNUZ.js.map} +0 -0
  1244. /package/dist/{revenue-CRZRJJ7H.js.map → revenue-6PR3BJFJ.js.map} +0 -0
  1245. /package/dist/{rule-writes-HUBHHYEO.js.map → rule-writes-WT6DQZZE.js.map} +0 -0
  1246. /package/dist/{rules-EKOXAK2O.js.map → rules-R7NK5X4Z.js.map} +0 -0
  1247. /package/dist/{rules-47LFGCPW.js.map → rules-Y75KR2PC.js.map} +0 -0
  1248. /package/dist/{rules-add-IC3SXNYW.js.map → rules-add-2GIJGODB.js.map} +0 -0
  1249. /package/dist/{run-WUD5U5GY.js.map → run-CDMNDJ7B.js.map} +0 -0
  1250. /package/dist/{run-Y4SEFETX.js.map → run-RORVKARV.js.map} +0 -0
  1251. /package/dist/{scaffold-ad-OJ4WOJM6.js.map → scaffold-ad-DDGYTRFK.js.map} +0 -0
  1252. /package/dist/{scaffold-static-ad-EXUKKYSD.js.map → scaffold-static-ad-ES5AIQPA.js.map} +0 -0
  1253. /package/dist/{scaffold-video-7PDZZSKD.js.map → scaffold-video-NWRJZQ7N.js.map} +0 -0
  1254. /package/dist/{schedule-VCL2OPIL.js.map → schedule-2ELAAXVW.js.map} +0 -0
  1255. /package/dist/{schedule-ANIYXLG6.js.map → schedule-XFEPEQTN.js.map} +0 -0
  1256. /package/dist/{scheduled-agents-YAHYCFDA.js.map → scheduled-agents-RRAWQYPE.js.map} +0 -0
  1257. /package/dist/{schema-L6DGAUB5.js.map → schema-FHP43TLD.js.map} +0 -0
  1258. /package/dist/{scrape-O4X6VGV2.js.map → scrape-D3XGARHR.js.map} +0 -0
  1259. /package/dist/{screenshot-RR6RA6CN.js.map → screenshot-5LWUP5VN.js.map} +0 -0
  1260. /package/dist/{search-E75B5APM.js.map → search-4DBP6EH5.js.map} +0 -0
  1261. /package/dist/{search-OUJUEORX.js.map → search-G6W4LGVZ.js.map} +0 -0
  1262. /package/dist/{search-EKTUTXVN.js.map → search-HNRANK6H.js.map} +0 -0
  1263. /package/dist/{search-6XKFFDMJ.js.map → search-KGE3BSSH.js.map} +0 -0
  1264. /package/dist/{search-YARSBZ6D.js.map → search-O3AOWEXC.js.map} +0 -0
  1265. /package/dist/{search-OW3E2Z7Z.js.map → search-QQDR74KQ.js.map} +0 -0
  1266. /package/dist/{search-copy-2KO3VR6R.js.map → search-copy-EB3TONDS.js.map} +0 -0
  1267. /package/dist/{seeds-E64JKXWS.js.map → seeds-RGIFHHYC.js.map} +0 -0
  1268. /package/dist/{select-R3NT7OI4.js.map → select-GFPXXVBU.js.map} +0 -0
  1269. /package/dist/{sends-DEVRKO4M.js.map → sends-4ZO6BNZ4.js.map} +0 -0
  1270. /package/dist/{sequences-YIQSLKV5.js.map → sequences-SSLZ3XTP.js.map} +0 -0
  1271. /package/dist/{set-prompt-F3SYRT22.js.map → set-prompt-TQDOBUFT.js.map} +0 -0
  1272. /package/dist/{setup-links-AHWFGUAO.js.map → setup-links-CK7LBYJK.js.map} +0 -0
  1273. /package/dist/{shared-V5ZS25EO.js.map → shared-UPMEBTVP.js.map} +0 -0
  1274. /package/dist/{shopify-BPQCUFFX.js.map → shopify-SOTGSWXW.js.map} +0 -0
  1275. /package/dist/{site-KYB2EL72.js.map → site-IAIGIP3R.js.map} +0 -0
  1276. /package/dist/{sitemaps-ZSISKT6L.js.map → sitemaps-P3K5Z4TW.js.map} +0 -0
  1277. /package/dist/{sites-XMZ3HPHT.js.map → sites-TURWC53D.js.map} +0 -0
  1278. /package/dist/{skills-6MJC6CSZ.js.map → skills-PDHUHP2T.js.map} +0 -0
  1279. /package/dist/{sources-X4URMRLY.js.map → sources-62MIDG3D.js.map} +0 -0
  1280. /package/dist/{sources-JYOOLCOU.js.map → sources-D5XODGIV.js.map} +0 -0
  1281. /package/dist/{stale-KFVY7LSB.js.map → stale-4STBM2Z3.js.map} +0 -0
  1282. /package/dist/{stats-FSAXWTSE.js.map → stats-XNKAJD2Z.js.map} +0 -0
  1283. /package/dist/{status-YVRZBK56.js.map → status-BKSOFB53.js.map} +0 -0
  1284. /package/dist/{sticker-HMHR7QM7.js.map → sticker-MWICUYQM.js.map} +0 -0
  1285. /package/dist/{stock-IAQBUPGQ.js.map → stock-F5QNFRPM.js.map} +0 -0
  1286. /package/dist/{studies-QLSKON6M.js.map → studies-5G67ODR2.js.map} +0 -0
  1287. /package/dist/{studio-ZLBBYHNY.js.map → studio-ZRAZ2C25.js.map} +0 -0
  1288. /package/dist/{study-writes-GBUUKX4O.js.map → study-writes-34BJFZAZ.js.map} +0 -0
  1289. /package/dist/{suggest-DSMKK4FP.js.map → suggest-KCN2NDYE.js.map} +0 -0
  1290. /package/dist/{sync-WKV3N3LD.js.map → sync-QVEUQKU5.js.map} +0 -0
  1291. /package/dist/{sync-XFK4U6TA.js.map → sync-TANGFXUN.js.map} +0 -0
  1292. /package/dist/{sync-KJEXXD3P.js.map → sync-VPE5G6YX.js.map} +0 -0
  1293. /package/dist/{sync-definition-BQUVWLCC.js.map → sync-definition-VSNVCRNG.js.map} +0 -0
  1294. /package/dist/{tag-L2H5TSFJ.js.map → tag-NKAHDL35.js.map} +0 -0
  1295. /package/dist/{tag-manager-5WZPX2FJ.js.map → tag-manager-3GIW6BPB.js.map} +0 -0
  1296. /package/dist/{tags-7CEVWFEZ.js.map → tags-CBNWQTFX.js.map} +0 -0
  1297. /package/dist/{tags-ZLPLHP2G.js.map → tags-IFBIJ7BE.js.map} +0 -0
  1298. /package/dist/{tags-HKR2GWXV.js.map → tags-J6IPWIZ5.js.map} +0 -0
  1299. /package/dist/{tags-BU4KLB37.js.map → tags-XPLXA3LV.js.map} +0 -0
  1300. /package/dist/{tags-SKGPECNG.js.map → tags-ZV7JAF6S.js.map} +0 -0
  1301. /package/dist/{targeting-DAUTJDUB.js.map → targeting-TVZPIUUI.js.map} +0 -0
  1302. /package/dist/{targeting-constants-ZS422W5A.js.map → targeting-constants-RJS2STR5.js.map} +0 -0
  1303. /package/dist/{targeting-criteria-4C4M3XLJ.js.map → targeting-criteria-VVZQFPNS.js.map} +0 -0
  1304. /package/dist/{targets-C5K2OH3B.js.map → targets-EQAZUKT6.js.map} +0 -0
  1305. /package/dist/{terms-NX5CAJXT.js.map → terms-AATAGKPT.js.map} +0 -0
  1306. /package/dist/{testimonials-OJV7EFGS.js.map → testimonials-5MA427KH.js.map} +0 -0
  1307. /package/dist/{themes-C4PPU427.js.map → themes-WMZJWXFT.js.map} +0 -0
  1308. /package/dist/{top-companies-IZQOKMBU.js.map → top-companies-V5FVQMCS.js.map} +0 -0
  1309. /package/dist/{transcript-K6W7VRA5.js.map → transcript-2TE2R4DH.js.map} +0 -0
  1310. /package/dist/{translate-M6W6KZZS.js.map → translate-XIF6VTDN.js.map} +0 -0
  1311. /package/dist/{triggers-CQFQSODZ.js.map → triggers-ZMNQ6W3M.js.map} +0 -0
  1312. /package/dist/{tweets-33OCH74J.js.map → tweets-MLDLLLDB.js.map} +0 -0
  1313. /package/dist/{unfollow-G26NHR5X.js.map → unfollow-OEMFPAFS.js.map} +0 -0
  1314. /package/dist/{unlink-ITGOP2YH.js.map → unlink-HRCAROB3.js.map} +0 -0
  1315. /package/dist/{unstage-EAUF74PI.js.map → unstage-5WSEDFNH.js.map} +0 -0
  1316. /package/dist/{unstage-OAPP6Z5V.js.map → unstage-65DUBYNZ.js.map} +0 -0
  1317. /package/dist/{update-N5NA3JTW.js.map → update-A64IC24P.js.map} +0 -0
  1318. /package/dist/{update-PCVDM7HO.js.map → update-BESMEMQU.js.map} +0 -0
  1319. /package/dist/{update-KXTP3VPI.js.map → update-CADTFTYC.js.map} +0 -0
  1320. /package/dist/{update-HOFM27UT.js.map → update-WU4FAGEA.js.map} +0 -0
  1321. /package/dist/{update-GX26VDM4.js.map → update-ZUBU5NQP.js.map} +0 -0
  1322. /package/dist/{upload-SPCZNAUN.js.map → upload-FR6WRGXI.js.map} +0 -0
  1323. /package/dist/{upload-3ZGL4WHA.js.map → upload-GXS5CTOR.js.map} +0 -0
  1324. /package/dist/{upscale-X3B5CHG3.js.map → upscale-BCI42TCP.js.map} +0 -0
  1325. /package/dist/{url-options-5PUWQKWS.js.map → url-options-QLDSJ7QJ.js.map} +0 -0
  1326. /package/dist/{url-params-H4LQAYXG.js.map → url-params-YWIBMV3P.js.map} +0 -0
  1327. /package/dist/{use-HYK67YKZ.js.map → use-26VARHJT.js.map} +0 -0
  1328. /package/dist/{validate-XHQ4MIW5.js.map → validate-5EWYG4QS.js.map} +0 -0
  1329. /package/dist/{variant-MEHXEXFK.js.map → variant-F4EEYQJ7.js.map} +0 -0
  1330. /package/dist/{videos-GY6YCGFH.js.map → videos-MXEQHDMN.js.map} +0 -0
  1331. /package/dist/{view-HTCYEBXN.js.map → view-X65GETAV.js.map} +0 -0
  1332. /package/dist/{viewer-check-UCNIAY7X.js.map → viewer-check-QI4HKF7A.js.map} +0 -0
  1333. /package/dist/{web-E7XDCTVJ.js.map → web-DYT5YHEU.js.map} +0 -0
  1334. /package/dist/{winners-CGLS7SZ3.js.map → winners-5PRDG7GT.js.map} +0 -0
  1335. /package/dist/{winning-ads-L7FHCD75.js.map → winning-ads-YKBB2UZC.js.map} +0 -0
  1336. /package/dist/{write-commands-HQQOJGP4.js.map → write-commands-OBQPQUIE.js.map} +0 -0
  1337. /package/dist/{write-commands-F5XPPLOO.js.map → write-commands-SIOVTRHH.js.map} +0 -0
  1338. /package/dist/{write-commands-JESAYUEQ.js.map → write-commands-USXHGCVT.js.map} +0 -0
  1339. /package/dist/{write-commands-QNXR5ENS.js.map → write-commands-XLZCRVTU.js.map} +0 -0
  1340. /package/dist/{x-ROAUMBHA.js.map → x-OIDZY7DM.js.map} +0 -0
@@ -1,1902 +0,0 @@
1
- import {
2
- finalOutputLabelsFromCanvas
3
- } from "./chunk-EJBLF2LI.js";
4
- import {
5
- BRAND_LOGO_ROLE,
6
- CLAIMS_MODEL,
7
- CLAIMS_REQUEST,
8
- PEOPLE_PROMPT_VERSION,
9
- STATIC_AD_ROLE,
10
- formatOfAdaptId,
11
- isNativeCanvas,
12
- isWordsObject,
13
- peoplePrompt,
14
- plannedPlacements,
15
- prepareCanvas,
16
- readPeople,
17
- uncastPeople,
18
- unsuppliedPlaceholderAssets
19
- } from "./chunk-26UW2GMK.js";
20
- import {
21
- ViewerAnswerSchema,
22
- describeViewer,
23
- jevReadJudge,
24
- judgeViewerAnswer,
25
- misreadings,
26
- readTurnRenders,
27
- sureEnough,
28
- turnRenderRefusal
29
- } from "./chunk-KV4E4KGE.js";
30
- import {
31
- heldRules
32
- } from "./chunk-5NJQXV4K.js";
33
- import {
34
- readCompanyReading
35
- } from "./chunk-EDWW3THE.js";
36
- import {
37
- frontmatterOf
38
- } from "./chunk-UKZKLXTE.js";
39
- import {
40
- findWorkspaceRoot
41
- } from "./chunk-N3PASNUA.js";
42
- import {
43
- LogoFacts,
44
- MISALIGNED,
45
- compareSizes,
46
- sizeDifferenceFinding
47
- } from "./chunk-HBRXFQQV.js";
48
- import {
49
- LOGO_COMPOSITE_ROLE,
50
- SERIES_LEAD_ROLE,
51
- STATIC_ADAPT_FORMAT_ROLE,
52
- STATIC_ADAPT_ROLE,
53
- STATIC_FIX_ROLE,
54
- STATIC_FORMAT_ROLE,
55
- STATIC_LEAD_ROLE,
56
- STATIC_MASTER_ROLE,
57
- STATIC_PICK_ROLE,
58
- STATIC_PLACE_ROLE,
59
- STATIC_PLATE_ROLE,
60
- STATIC_SAFE_FIT_ROLE,
61
- STATIC_SIZE_ROLE,
62
- STATIC_VARIANTS_ROLE,
63
- STATIC_VARIANT_CALL_ROLE,
64
- VARIANT_PREFILTER_ROLE,
65
- adaptPlan,
66
- castsNobody,
67
- deliveredSize,
68
- fitArtwork,
69
- formatSlug,
70
- isPlateCanvas,
71
- logoArtwork,
72
- logoCornerWords,
73
- nodesWithRole,
74
- placementProblems,
75
- rolesById,
76
- slotPosition,
77
- staticMasterFormat,
78
- textColourSource,
79
- usesTextColour
80
- } from "./chunk-X3GWGFZP.js";
81
- import {
82
- bytesOf,
83
- judgeWinner,
84
- nearIdenticalFindings,
85
- parseJudgeScores,
86
- reviewRenderedStatic,
87
- samePictureSizes,
88
- staticVerdict
89
- } from "./chunk-GWLP45WQ.js";
90
- import {
91
- conceptSummary,
92
- nativeChrome,
93
- nativeCopy,
94
- nativeSurfaceName,
95
- readAdSpec,
96
- readInterfaceWords
97
- } from "./chunk-H3HA22Z3.js";
98
- import {
99
- askAboutImages,
100
- askAboutText
101
- } from "./chunk-DLM5OSHM.js";
102
- import {
103
- GLANCE_CHECK_MODEL,
104
- nearestSupportedAspectRatio
105
- } from "./chunk-MCJ5I5LR.js";
106
- import {
107
- describeMarket
108
- } from "./chunk-2WZI36D3.js";
109
- import {
110
- isSourceStale
111
- } from "./chunk-TK7VRZKM.js";
112
-
113
- // src/commands/canvas/static-edit.ts
114
- function specOf(raw) {
115
- try {
116
- return raw ? readAdSpec(raw) : null;
117
- } catch {
118
- return null;
119
- }
120
- }
121
- function frame(spec) {
122
- const { copy: _copy, colors: _colors, brand, notes: _notes, source: _source, reference: _reference, ...rest } = spec;
123
- const concept = rest.concept ? { ...rest.concept, transfer_note: void 0 } : void 0;
124
- const brandShape = brand ? { ...brand, ground: void 0, ink: void 0, accent: void 0, cta: void 0, palette: [] } : void 0;
125
- return JSON.stringify({ ...rest, concept, brand: brandShape });
126
- }
127
- var ROLE_WORDS = {
128
- headline: "the headline",
129
- cta: "the button",
130
- button: "the button",
131
- price: "the price",
132
- body: "body text",
133
- caption: "a caption",
134
- label: "a label",
135
- fine_print: "the fine print"
136
- };
137
- function copyEdits(before, after) {
138
- const out = [];
139
- const shared = Math.min(before.length, after.length);
140
- for (let i = 0; i < shared; i++) {
141
- const a = before[i];
142
- const b = after[i];
143
- if (a.text !== b.text) out.push(`Change the words "${a.text}" to exactly "${b.text}".`);
144
- if ((a.position ?? "") !== (b.position ?? "") && b.position) out.push(`Move "${b.text}" to ${b.position}.`);
145
- if ((a.look ?? "") !== (b.look ?? "") && b.look) out.push(`Set "${b.text}" ${b.look}.`);
146
- if (a.lettering !== b.lettering || (a.role ?? "") !== (b.role ?? "") || (a.on ?? "") !== (b.on ?? "")) {
147
- out.push(`Set "${b.text}" as ${ROLE_WORDS[b.role ?? ""] ?? "it is described"}${b.on ? `, lettered on ${b.on}` : ""}.`);
148
- }
149
- }
150
- for (const added of after.slice(shared)) {
151
- const role = ROLE_WORDS[added.role ?? ""];
152
- out.push(`Add the words "${added.text}"${role ? ` (${role})` : ""}${added.position ? `, ${added.position}` : ""}.`);
153
- }
154
- for (const removed of before.slice(shared)) out.push(`Remove the words "${removed.text}".`);
155
- return out;
156
- }
157
- function colourEdits(before, after) {
158
- const out = [];
159
- for (const use of after.colors) {
160
- const was = before.colors.find((c) => c.object === use.object);
161
- if (was && was.name === use.name && was.hex === use.hex) continue;
162
- out.push(`Make ${use.object} ${use.name}${use.hex ? ` (${use.hex})` : ""}.`);
163
- }
164
- const roles = [
165
- ["cta", "the button"],
166
- ["ground", "the background"],
167
- ["ink", "the designed type"],
168
- ["accent", "the accent colour"]
169
- ];
170
- for (const [key, object] of roles) {
171
- const was = before.brand?.[key];
172
- const now = after.brand?.[key];
173
- if (typeof now === "string" && was !== now) out.push(`Make ${object} ${now}.`);
174
- }
175
- return out;
176
- }
177
- function specEditInstruction(previous, next) {
178
- const before = specOf(previous);
179
- const after = specOf(next);
180
- if (!before || !after || frame(before) !== frame(after)) return null;
181
- const edits = [...copyEdits(before.copy, after.copy), ...colourEdits(before, after)];
182
- return edits.length > 0 ? edits.join(" ") : null;
183
- }
184
- function frameChanges(previous, next) {
185
- const before = specOf(previous);
186
- const after = specOf(next);
187
- if (!before || !after) return [];
188
- const was = JSON.parse(frame(before));
189
- const now = JSON.parse(frame(after));
190
- return [.../* @__PURE__ */ new Set([...Object.keys(was), ...Object.keys(now)])].filter(
191
- (key) => JSON.stringify(was[key]) !== JSON.stringify(now[key])
192
- );
193
- }
194
- var normalized = (text) => text.trim().toLowerCase().replace(/\s+/g, " ");
195
- function repeatsFailedFix(last, instruction) {
196
- return Boolean(last && last.blocking.length > 0 && normalized(last.instruction) === normalized(instruction));
197
- }
198
- function fixMemoryOf(shown, from) {
199
- if (from !== void 0 && from !== shown.rendered?.runId) return { blocking: [] };
200
- return { ...shown.lastFix ? { lastFix: shown.lastFix } : {}, blocking: shown.blocking ?? [] };
201
- }
202
- function persistingDefects(before, after) {
203
- const now = new Set((after ?? []).filter((f) => f.severity === "blocking").map((f) => f.what));
204
- return before.filter((what) => now.has(what));
205
- }
206
- var onSurface = (line) => line.on ? ` on ${line.on}` : "";
207
- function inSceneEdits(before, after) {
208
- const was = before.filter((line) => line.lettering === "in_scene");
209
- const now = after.filter((line) => line.lettering === "in_scene");
210
- const out = [];
211
- for (let i = 0; i < Math.min(was.length, now.length); i++) {
212
- const a = was[i];
213
- const b = now[i];
214
- if (a.text !== b.text) out.push(`Change the words "${a.text}"${onSurface(a)} to exactly "${b.text}".`);
215
- if ((a.on ?? "") !== (b.on ?? "") && b.on)
216
- out.push(`Letter "${b.text}" on ${b.on}${a.on ? ` instead of ${a.on}` : ""}.`);
217
- }
218
- for (const added of now.slice(was.length)) out.push(`Letter the words "${added.text}"${onSurface(added)}.`);
219
- for (const removed of was.slice(now.length)) out.push(`Remove the words "${removed.text}" from the picture.`);
220
- return out;
221
- }
222
- function pictureEdit(previous, next) {
223
- const before = specOf(previous);
224
- const after = specOf(next);
225
- if (!before || !after || frame(before) !== frame(after)) return null;
226
- const changed = after.colors.filter((use) => {
227
- const was = before.colors.find((c) => c.object === use.object);
228
- return !isWordsObject(use.object) && !(was && was.name === use.name && was.hex === use.hex);
229
- });
230
- const ground = after.brand?.ground;
231
- const edits = [
232
- ...inSceneEdits(before.copy, after.copy),
233
- ...changed.map((use) => `Make ${use.object} ${use.name}${use.hex ? ` (${use.hex})` : ""}.`),
234
- ...typeof ground === "string" && before.brand?.ground !== ground ? [`Make the background ${ground}.`] : []
235
- ];
236
- return edits.length > 0 ? edits.join(" ") : null;
237
- }
238
- function plainRunEdit(canvas, shownPrompt, promptNow) {
239
- if (isNativeCanvas(canvas)) return null;
240
- return isPlateCanvas(canvas) ? pictureEdit(shownPrompt, promptNow) : specEditInstruction(shownPrompt, promptNow);
241
- }
242
-
243
- // src/commands/canvas/static-ad-canvas.ts
244
- function isStaticAdCanvas(parsed) {
245
- const nodes = parsed?.nodes;
246
- if (!Array.isArray(nodes)) return false;
247
- return nodes.some((n) => {
248
- const role = n?.tags?.role;
249
- if (role === STATIC_VARIANTS_ROLE) return true;
250
- return n?.type === "ingest" && (role === STATIC_AD_ROLE || n?.id === "compose_spec");
251
- });
252
- }
253
-
254
- // src/commands/canvas/named-people-read.ts
255
- import { createHash } from "crypto";
256
- import { mkdir, readFile, writeFile } from "fs/promises";
257
- import path from "path";
258
- var PEOPLE_TIMEOUT_MS = 3e4;
259
- function peopleReader(cacheDir, spent) {
260
- const dir = path.join(cacheDir, "named-people");
261
- return async (lines) => {
262
- const said2 = lines.filter((l) => l.trim());
263
- if (said2.length === 0) return [];
264
- const key = createHash("sha256").update(JSON.stringify([PEOPLE_PROMPT_VERSION, CLAIMS_MODEL, said2])).digest("hex");
265
- const file = path.join(dir, `${key}.json`);
266
- const cached = await readFile(file, "utf8").then((text) => readPeople(JSON.parse(text), said2)).catch(() => null);
267
- if (cached) return cached;
268
- const answer = await askAboutText(CLAIMS_MODEL, peoplePrompt(said2), spent, {
269
- timeoutMs: PEOPLE_TIMEOUT_MS,
270
- request: CLAIMS_REQUEST
271
- });
272
- const people = readPeople(answer, said2);
273
- if (people) {
274
- await mkdir(dir, { recursive: true });
275
- await writeFile(file, JSON.stringify(answer), "utf8");
276
- }
277
- return people;
278
- };
279
- }
280
-
281
- // src/commands/canvas/static-autofix.ts
282
- var AUTO_FIX_ROUNDS = 3;
283
- function wholePicture(f) {
284
- const kind = f.kind;
285
- if (!kind) return false;
286
- return kind.item === "subject" || kind.item === "one_idea" || kind.item === "concept" || (kind.item === "picture" || kind.item === "native" || kind.item === "rule") && kind.element === "picture";
287
- }
288
- var BRIEF_ITEMS = /* @__PURE__ */ new Set(["subject", "concept", "proof", "person"]);
289
- var fromBrief = (f) => f.kind !== void 0 && (BRIEF_ITEMS.has(f.kind.item) || f.kind.item === "rule" && f.kind.element === "picture");
290
- var wordsBreakRule = (f) => f.kind?.item === "rule" && f.kind.element === "copy";
291
- var lostVital = (f) => f.severity === "blocking" && f.kind?.item === "concept" && f.kind.job !== void 0;
292
- function keptLostHint(review, idea) {
293
- const lost = unique(review.filter(lostVital).map((f) => f.what.replace(/\.$/, "")));
294
- if (lost.length === 0) return null;
295
- return `Not done: what made the proven ad win is gone (${lost.join("; ")}). Never show this version as done: restore it as the plan decided it (its line under "What survives and what changes" and prompt.json's \`concept.load_bearing\`, carried in the scene, the references and the lines' \`look\`) and run again; if nothing of ours may carry it, build the idea on another proven ad (\`baker winning-ads fit <adId>\` on the next candidates, then \`baker creatives make ${idea ?? "<idea>"} --slug <new slug> --reference <adId>\`) and tell the person why, in one line.`;
296
- }
297
- function stopsWithoutRepair(review, brief, repaired) {
298
- return !repaired && review.some((f) => lostVital(f) && brief.includes(withoutSize(f.what)));
299
- }
300
- var comparesSizes = (f) => f.kind?.item === "sizes";
301
- var cutCopy = (f) => f.kind?.defect === "cut" && (f.kind.element === "logo" || f.kind.element === "button" || f.kind.element === "copy");
302
- function aboutWords(f) {
303
- const what = withoutSize(f.what);
304
- return PLACED.some((p) => p.test(what)) || MISREAD.test(what) || MISSING.test(what) || EXTRA_WORDS.test(what) || cutCopy(f) || f.kind !== void 0 && ["copy", "button", "logo"].includes(f.kind.element);
305
- }
306
- var PATCHED_WORDS = "the words came with a patch of redrawn picture around them";
307
- var UNREAD_WORDS = "where the words sit could not be read";
308
- var ARTIFACT = /\b(?:halos?|glow|seams?|smears?|smudges?|blotch(?:es)?|patch(?:es)?|box(?:es)?|rectangles?|scrims?|backings?|ghost(?:ed|ing|s)?)\b/i;
309
- var WORDS = /\b(?:words?|text|copy|headline|lines?|lettering|type|quote|caption|label|button|pill|cta|logo)\b/i;
310
- var wordsArtifact = (f) => {
311
- const what = withoutSize(f.what);
312
- return ARTIFACT.test(what) && WORDS.test(what);
313
- };
314
- var MANY_DEFECTS = 3;
315
- var withoutSize = (what) => what.replace(/^\d+(?:\.\d+)?:\d+(?:\.\d+)?(?:,\s*\d+(?:\.\d+)?:\d+(?:\.\d+)?)*:\s*/, "");
316
- var sizesOf = (what) => what.match(/^(\d+(?:\.\d+)?:\d+(?:\.\d+)?(?:,\s*\d+(?:\.\d+)?:\d+(?:\.\d+)?)*):\s/)?.[1]?.split(/,\s*/) ?? [];
317
- function carryUnchanged(now, prior, unchanged) {
318
- const settled = (f) => {
319
- const sizes = sizesOf(f.what);
320
- return sizes.length > 0 && sizes.every((s) => unchanged.includes(s)) && !comparesSizes(f);
321
- };
322
- return [...now.filter((f) => !settled(f)), ...prior.filter(settled)];
323
- }
324
- var pct = (share) => `${Math.round(share * 100)}%`;
325
- var PAST_BAND = /^(.+?) sits? (?:close to )?where (.+?) covers? (?:it|them) \((.+)\)\.?$/;
326
- var OFF_EDGE = /^(.+?) runs? off the edge of the picture \((.+)\)\.?$/;
327
- var OUTSIDE_SPACE = /^(.+?) sits? outside the space every size keeps clear \((.+)\)\.?$/;
328
- var EXTRA_WORDS = /^the picture adds words that aren't in the copy: (.+?)\. Remove them, or add them to the copy\.?$/;
329
- var SCENE_PRICES = /^the picture shows prices the copy does not hold: (.+?)\. Make them unreadable\.?$/;
330
- var PLACED = [PAST_BAND, OFF_EDGE, OUTSIDE_SPACE];
331
- var MISREAD = /^Text: (".+") reads (".*")\.?$/;
332
- var MISSING = /^Text: (".+") is missing\.?$/;
333
- var MAKE_ROOM = "Make the room by moving what is next to it with it and shortening the picture or the gaps, keeping every block in its order.";
334
- var OVERSHOOT = 0.06;
335
- function moveInto(what, edges, band) {
336
- const at = (edge) => edges.includes(edge);
337
- const top = band ? band.top + OVERSHOOT : 0;
338
- const bottom = band ? band.bottom + OVERSHOOT : 0;
339
- const vertical = at("bottom") && at("top") ? band ? `so all of it sits between ${pct(top)} and ${pct(1 - bottom)} of the height` : "into the middle of the frame, away from its top and bottom" : at("bottom") && band ? `up so all of it sits above ${pct(1 - bottom)} of the height, the bottom ${pct(bottom)} showing only the picture` : at("top") && band ? `down so all of it sits below ${pct(top)} of the height, the top ${pct(top)} showing only the picture` : at("bottom") ? "up, away from the bottom of the frame" : at("top") ? "down, away from the top of the frame" : "";
340
- const sides = ["right", "left"].filter((e) => at(e === "right" ? "right edge" : "left edge"));
341
- const side = sides.map((e) => band ? `at least ${pct(band[e])} in from the ${e} edge` : `away from the ${e} edge`).join(" and ");
342
- if (!vertical) return `Move ${what} ${side}`;
343
- return side ? `Move ${what} ${vertical}, and ${side}` : `Move ${what} ${vertical}`;
344
- }
345
- function correctionOf(finding, band, kind) {
346
- const what = withoutSize(finding).trim();
347
- if (/could not be read back/.test(what)) return null;
348
- const past = what.match(PAST_BAND);
349
- if (past) {
350
- const [, block = "", surface = "", edges = ""] = past;
351
- const covers = band && edges.includes("bottom") && edges.includes("top") ? `: ${surface} covers the top ${pct(band.top)} and the bottom ${pct(band.bottom)} of the frame` : band && edges.includes("bottom") ? `: ${surface} covers the bottom ${pct(band.bottom)} of the frame` : band && edges.includes("top") ? `: ${surface} covers the top ${pct(band.top)} of the frame` : "";
352
- return `${moveInto(block, edges, band)}${covers}. ${MAKE_ROOM}`;
353
- }
354
- const off = what.match(OFF_EDGE) ?? what.match(OUTSIDE_SPACE);
355
- if (off) {
356
- const [, block = "", edges = ""] = off;
357
- const named = edges.replace(/the (top|bottom) of the screen/g, "the $1 edge").replace(/ and /g, " and ");
358
- return `Move ${block} fully inside the frame, with clear space between it and ${named}, smaller if it needs to be.`;
359
- }
360
- const extra = what.match(EXTRA_WORDS);
361
- if (extra) {
362
- return `Erase these words wherever they appear, leaving the surface they are on blank or with plain lines: ${extra[1]}.`;
363
- }
364
- const prices = what.match(SCENE_PRICES);
365
- if (prices) {
366
- return `Blur these figures until no digit can be read, keeping the document or screen they are on as it is: ${prices[1]}.`;
367
- }
368
- const misread = what.match(MISREAD);
369
- if (misread) return `Re-letter ${misread[1]} exactly as written, letter for letter (it now reads ${misread[2]}).`;
370
- const missing = what.match(MISSING);
371
- if (missing) return `Add the line ${missing[1]}, spelled exactly, where it belongs in the layout.`;
372
- if (kind?.item === "sizes") return FOLLOW_PICTURE;
373
- const described = what.replace(/\.$/, "");
374
- return `Fix this: ${described.charAt(0).toLowerCase()}${described.slice(1)}.`;
375
- }
376
- function autoFixStep(canvas, review, opts = {}) {
377
- if ((opts.round ?? 0) >= AUTO_FIX_ROUNDS) return null;
378
- const flagged = (review ?? []).filter((f) => f.severity === "blocking" && !wordsBreakRule(f));
379
- if (flagged.length === 0) return null;
380
- if (isNativeCanvas(canvas)) return { kind: "respec", findings: unique(flagged.map((f) => f.what)) };
381
- const relaid = relaidSizes(canvas);
382
- const blocking = onDerivedSizes(flagged, relaid);
383
- const painted = paintedPlates(canvas);
384
- const onPainted = (f) => comparesSizes(f) && sizesOf(f.what).length > 0 && sizesOf(f.what).every((size) => painted.has(size));
385
- const cutSizes = new Map(relaid.filter((r) => r.words).map((r) => [r.format, r.id]));
386
- const patched = (f) => !lostVital(f) && ([PATCHED_WORDS, UNREAD_WORDS].some((said2) => withoutSize(f.what).startsWith(said2)) || wordsArtifact(f)) && sizesOf(f.what).length > 0 && sizesOf(f.what).every((size) => cutSizes.has(size));
387
- const wordsOnly = (f) => patched(f) || aboutWords(f) && sizesOf(f.what).length > 0 && sizesOf(f.what).every((size) => cutSizes.has(size));
388
- if (blocking.length > 0 && blocking.some(patched) && blocking.every(wordsOnly)) {
389
- return {
390
- kind: "regenerate",
391
- ids: unique(blocking.flatMap((f) => sizesOf(f.what).flatMap((size) => cutSizes.get(size) ?? []))),
392
- note: unique(blocking.map((f) => withoutSize(f.what))).join(" ")
393
- };
394
- }
395
- if (blocking.length > 0 && blocking.every(onPainted)) {
396
- return {
397
- kind: "regenerate",
398
- ids: unique(blocking.flatMap((f) => sizesOf(f.what).flatMap((size) => painted.get(size) ?? []))),
399
- note: `The last picture painted from the chosen one had this wrong, so avoid it: ${unique(blocking.map((f) => withoutSize(f.what))).join(" ")}`
400
- };
401
- }
402
- const worded = relaid.filter((r) => r.words).map((r) => r.format);
403
- const unplaceable = /* @__PURE__ */ new Set([
404
- ...(opts.tooFar ?? []).filter((format) => relaid.some((r) => r.format === format)),
405
- ...worded
406
- ]);
407
- const misplaced = (f) => {
408
- const what = withoutSize(f.what);
409
- const sizes = sizesOf(f.what);
410
- return sizes.length > 0 && !sizes.every((size) => unplaceable.has(size)) && (PLACED.some((p) => p.test(what)) || cutCopy(f));
411
- };
412
- const extend = unique(blocking.filter(misplaced).flatMap((f) => sizesOf(f.what))).filter((size) => !unplaceable.has(size));
413
- const placing = extend.length > 0 ? { extend } : {};
414
- const rest = blocking.filter((f) => !misplaced(f));
415
- const at = (f) => relaid.find((r) => f.what.startsWith(`${r.format}:`) && (!r.words || aboutWords(f)));
416
- const keepRight = keptRules(opts.fixedBefore);
417
- const edits = {};
418
- for (const r of relaid) {
419
- const lines = unique(rest.filter((f) => at(f) === r).flatMap((f) => correctionOf(f.what, r.band, f.kind) ?? []));
420
- if (lines.length > 0) edits[r.id] = [...lines, ...keepRight ? [keepRight] : []].join(" ");
421
- }
422
- const sizesOnly = () => {
423
- const ids = Object.keys(edits);
424
- if (ids.length > 0) return { kind: "relayout", ids, edits, ...placing };
425
- return extend.length > 0 ? { kind: "extend", sizes: extend } : null;
426
- };
427
- const onSeveralSizes = (f) => {
428
- const what = withoutSize(f.what);
429
- return new Set(rest.filter((g) => withoutSize(g.what) === what).flatMap((g) => sizesOf(g.what))).size >= 2;
430
- };
431
- const settledPicture = opts.previous === "relayout" || opts.previous === "extend";
432
- const pictureFindings = rest.filter((f) => !at(f) && !patched(f) && (!settledPicture || onSeveralSizes(f)));
433
- const onPicture = unique(pictureFindings.map((f) => withoutSize(f.what)));
434
- if (onPicture.length === 0) return sizesOnly();
435
- const every = unique([...extend, ...deliveredSizes(canvas)]).filter((size) => !worded.includes(size));
436
- const afterNewPicture = every.length > 0 ? { extend: every } : {};
437
- const persisting = new Set((opts.lastFix?.blocking ?? []).map(withoutSize));
438
- const stillWrong = opts.previous === "fix" && onPicture.some((w) => persisting.has(w));
439
- const brief = unique(pictureFindings.filter(fromBrief).map((f) => withoutSize(f.what)));
440
- const rollAgain = stillWrong || brief.length > 0 || onPicture.length >= MANY_DEFECTS || pictureFindings.some(wholePicture);
441
- const last = (opts.round ?? 0) >= AUTO_FIX_ROUNDS - 1;
442
- if (rollAgain && (!last || brief.length > 0) && !opts.keepPicture && nodesWithRole(canvas, STATIC_VARIANTS_ROLE).length > 0) {
443
- return {
444
- kind: "regenerate",
445
- ids: [STATIC_VARIANTS_ROLE],
446
- note: [`The last picture made from this brief had this wrong, so avoid it: ${onPicture.join(" ")}`, ...keepRight ? [keepRight] : []].join(" "),
447
- ...brief.length > 0 ? { brief } : {},
448
- ...afterNewPicture
449
- };
450
- }
451
- const changes = unique(
452
- pictureFindings.filter((f) => !fromBrief(f)).flatMap((f) => correctionOf(f.what, void 0, f.kind) ?? [])
453
- );
454
- if (changes.length === 0) return sizesOnly();
455
- const named = new Set(blocking.flatMap((f) => sizesOf(f.what)));
456
- const keep = relaid.filter((r) => !r.words).map((r) => r.format).filter((format) => !named.has(format));
457
- const remade = every.filter((size) => !keep.includes(size));
458
- const kept = {
459
- ...keep.length > 0 ? { keep } : {},
460
- ...remade.length > 0 ? { extend: remade } : {}
461
- };
462
- const asked = `Change only this: ${changes.join(" ")}`;
463
- const again = onPicture.filter((w) => persisting.has(w)).map((w) => w.replace(/\.$/, ""));
464
- const instruction = [
465
- again.length > 0 ? `${asked} The last edit was already asked for this and Image 1 still shows it, so make it clearly: ${again.join("; ")}.` : asked,
466
- ...keepRight ? [keepRight] : []
467
- ].join(" ");
468
- if (repeatsFailedFix(opts.lastFix, asked) || repeatsFailedFix(opts.lastFix, instruction)) return null;
469
- const relay = Object.fromEntries(Object.entries(edits).filter(([id]) => relaid.some((r) => r.id === id && !r.words)));
470
- return { kind: "fix", instruction, ...Object.keys(relay).length > 0 ? { relay } : {}, ...kept };
471
- }
472
- var unique = (lines) => [...new Set(lines)];
473
- var blockingOf = (review) => unique(review.filter((f) => f.severity === "blocking").map((f) => f.what));
474
- function correctFrom(attempts) {
475
- const latest = attempts[attempts.length - 1];
476
- const fewest = Math.min(...attempts.map((a) => blockingOf(a.review).length));
477
- const base = blockingOf(latest.review).length > fewest ? attempts.find((a) => blockingOf(a.review).length === fewest) : latest;
478
- const now = new Set(blockingOf(base.review).map(withoutSize));
479
- const fixedBefore = unique(
480
- attempts.filter((a) => a !== base).flatMap((a) => blockingOf(a.review)).filter((what) => !now.has(withoutSize(what)))
481
- );
482
- return { ...base, fixedBefore };
483
- }
484
- function keptRules(fixedBefore) {
485
- const rules = unique((fixedBefore ?? []).map((f) => withoutSize(f).replace(/\.$/, "")));
486
- return rules.length > 0 ? `These were wrong in an earlier version and are right now, so keep them right: ${rules.join("; ")}.` : null;
487
- }
488
- var FOLLOW_PICTURE = "Show exactly what the finished ad (Image 2) shows: its people, products, panels and their order, and nothing it does not show.";
489
- function onDerivedSizes(findings, relaid) {
490
- if (relaid.length === 0) return [...findings];
491
- return findings.flatMap((f) => {
492
- const sizes = sizesOf(f.what);
493
- const onPicture = sizes.length > 0 && sizes.every((size) => !relaid.some((r) => r.format === size));
494
- if (!onPicture || !comparesSizes(f)) return [f];
495
- return relaid.map((r) => ({ ...f, what: `${r.format}: ${withoutSize(f.what)}` }));
496
- });
497
- }
498
- function deliveredSizes(canvas) {
499
- const nodes = canvas?.nodes;
500
- const labels = Array.isArray(nodes) ? nodes.find((n) => n.id === "final" && n.type === "collect")?.params?.labels : void 0;
501
- return Array.isArray(labels) ? labels.filter((l) => typeof l === "string") : [];
502
- }
503
- function relaidSizes(canvas) {
504
- const nodes = canvas?.nodes;
505
- const placements = Array.isArray(nodes) ? plannedPlacements(nodes) : void 0;
506
- const relaid = nodesWithRole(canvas, STATIC_ADAPT_FORMAT_ROLE).flatMap((n) => {
507
- const format = formatOfAdaptId(n.id);
508
- if (!format) return [];
509
- const model = String(n.params?.model ?? "");
510
- return [{ id: n.id, format, band: adaptPlan(model, format, placements).safe, words: false }];
511
- });
512
- const cut = nodesWithRole(canvas, STATIC_FORMAT_ROLE).flatMap((n) => {
513
- const format = n.params?.format;
514
- if (typeof format !== "string") return [];
515
- const model = String(n.params?.words?.model ?? "");
516
- const own = Array.isArray(n.params?.placements) ? n.params.placements : placements;
517
- return [{ id: n.id, format, band: adaptPlan(model, format, own).safe, words: true }];
518
- });
519
- return [...relaid, ...cut];
520
- }
521
- function paintedPlates(canvas) {
522
- const plates = new Set(nodesWithRole(canvas, STATIC_PLATE_ROLE).map((n) => n.id));
523
- return new Map(
524
- nodesWithRole(canvas, STATIC_FORMAT_ROLE).flatMap((n) => {
525
- const plate = String(n.inputs?.plate ?? "").match(/^\$ref:([a-z][a-z0-9_]*)\./)?.[1];
526
- const format = n.params?.format;
527
- return plate && plates.has(plate) && typeof format === "string" ? [[format, plate]] : [];
528
- })
529
- );
530
- }
531
- function placedTooFar(canvas, outputsByNode) {
532
- const placed = nodesWithRole(canvas, STATIC_PLACE_ROLE).flatMap((n) => {
533
- const format = n.params?.format;
534
- const unmoved = outputsByNode[n.id]?.reason;
535
- return (unmoved === "too_far" || unmoved === "inside_band") && typeof format === "string" ? [format] : [];
536
- });
537
- const cut = nodesWithRole(canvas, STATIC_FORMAT_ROLE).flatMap((n) => {
538
- const format = n.params?.format;
539
- const facts = outputsByNode[n.id]?.facts;
540
- return facts?.reason === "band_too_far" && typeof format === "string" ? [format] : [];
541
- });
542
- return [...placed, ...cut];
543
- }
544
- function formatOfSizeNode(canvas, id) {
545
- const relaid = formatOfAdaptId(id);
546
- if (relaid) return relaid;
547
- const node = nodesWithRole(canvas, STATIC_FORMAT_ROLE).find((n) => n.id === id);
548
- const format = node?.params?.format;
549
- return typeof format === "string" ? format : null;
550
- }
551
- function rendersNewPicture(run) {
552
- return !run.fix && !run.useVariant && !run.sizesOnly;
553
- }
554
- function paidFor(run) {
555
- if (run.fix) return "edit";
556
- return run.useVariant || run.sizesOnly ? "sizes" : "options";
557
- }
558
- function withRelayNote(canvas, ids, note) {
559
- const holder = canvas;
560
- if (!Array.isArray(holder.nodes)) return canvas;
561
- return {
562
- ...holder,
563
- nodes: holder.nodes.map((n) => {
564
- if (typeof n.id !== "string" || !ids.includes(n.id)) return n;
565
- const paint = n.params?.paint;
566
- if (paint && typeof paint === "object") {
567
- const prompt = [typeof paint.prompt === "string" ? paint.prompt : "", note].filter(Boolean).join("\n\n");
568
- return { ...n, params: { ...n.params, paint: { ...paint, prompt } } };
569
- }
570
- if (typeof n.params?.prompt !== "string") return n;
571
- const [lead = "", ...rest] = n.params.prompt.split("\n\n");
572
- return { ...n, params: { ...n.params, prompt: [lead, note, ...rest].join("\n\n") } };
573
- })
574
- };
575
- }
576
- function withRelayEdit(canvas, id, opts) {
577
- const holder = canvas;
578
- if (!Array.isArray(holder.nodes)) return canvas;
579
- const target = holder.nodes.find((n) => n.id === id);
580
- if (target?.type === "static_format") return withWordsEdit({ nodes: holder.nodes, holder }, target, opts);
581
- const prompt = target?.params?.prompt;
582
- const refs = target?.inputs?.reference;
583
- if (!target || typeof prompt !== "string" || !Array.isArray(refs)) return canvas;
584
- const lastId = `last_${id}`;
585
- const remote = /^(?:https?|data):/.test(opts.previous);
586
- const last = {
587
- id: lastId,
588
- type: "ingest",
589
- params: remote ? { source: "url", url: opts.previous, expect: "image" } : { source: "path", path: opts.previous, expect: "image" }
590
- };
591
- const again = opts.asked?.includes(opts.instruction) ? "The last edit was asked for this and Image 1 still shows it wrong, so make the change clearly: " : "";
592
- const lead = `Edit: Image 1 is this ad as it was last laid out for this size. ${again}${opts.instruction} Keep the rest of Image 1 as it is: the picture, the colours, the lettering and every word, its layout changed only as much as this needs.`;
593
- const kept = prompt.split("\n\n").slice(1).filter((p) => !p.startsWith("Scale:")).map((p) => p.replace(/\bImage (\d+)\b/g, (_, n) => `Image ${Number(n) + 1}`)).map(
594
- (p) => p.startsWith("References:") ? p.replace("References:", "References:\nImage 1 (THIS SIZE): the last layout of this size, to edit.").replace(/^Image 2 \(AD\):.*$/m, "Image 2 (AD): the finished ad this size is made from: its words, logo and picture are the ones to keep.") : p
595
- );
596
- const leads = new Set(
597
- holder.nodes.flatMap((n) => n.tags?.role === SERIES_LEAD_ROLE ? [n.id] : [])
598
- );
599
- const own = refs.map((r) => typeof r === "string" && leads.has(r.match(/^\$ref:([a-z][a-z0-9_]*)\./)?.[1]) ? "$ref:master.image" : r);
600
- const edited = {
601
- ...target,
602
- inputs: { ...target.inputs, reference: [`$ref:${lastId}.asset`, ...own] },
603
- params: { ...target.params, prompt: [lead, ...kept].join("\n\n") }
604
- };
605
- const at = holder.nodes.indexOf(target);
606
- return { ...holder, nodes: [...holder.nodes.slice(0, at), last, edited, ...holder.nodes.slice(at + 1)] };
607
- }
608
- function lastFile(id, file) {
609
- const remote = /^(?:https?|data):/.test(file);
610
- return {
611
- id,
612
- type: "ingest",
613
- params: remote ? { source: "url", url: file, expect: "image" } : { source: "path", path: file, expect: "image" }
614
- };
615
- }
616
- function withWordsEdit(at, target, opts) {
617
- const words = target.params?.words;
618
- if (typeof words?.prompt !== "string") return at.holder;
619
- const lastId = `last_${String(target.id)}`;
620
- const again = opts.asked?.includes(opts.instruction) ? "The last edit was asked for this and Image 1 still shows it wrong, so make the change clearly: " : "";
621
- const instruction = `Image 1 is this size as its words were last set. ${again}${opts.instruction} Keep the rest of Image 1's words as they are: the lines, the type, the colours and what carries them, moved only as much as this needs. The picture is Image 2's, unchanged.`;
622
- const prompt = words.prompt.replace(/\bImage (\d+)\b/g, (_, n) => `Image ${Number(n) + 1}`).replace("References:", "References:\nImage 1 (THIS SIZE): this size as its words were last set, to edit.");
623
- const edited = {
624
- ...target,
625
- inputs: { ...target.inputs, previous: `$ref:${lastId}.asset` },
626
- params: { ...target.params, words: { ...words, prompt, edit: { instruction } } }
627
- };
628
- const index = at.nodes.indexOf(target);
629
- return {
630
- ...at.holder,
631
- nodes: [...at.nodes.slice(0, index), lastFile(lastId, opts.previous), edited, ...at.nodes.slice(index + 1)]
632
- };
633
- }
634
- function withSizesFollowingFix(canvas, opts) {
635
- let out = canvas;
636
- for (const n of nodesWithRole(canvas, STATIC_ADAPT_FORMAT_ROLE)) {
637
- const also = opts.also?.[n.id];
638
- const previous = opts.last[n.id];
639
- if (previous) {
640
- const instruction = `Make the change the finished ad (Image 2) just had: ${opts.change}${also ? ` ${also}` : ""}`;
641
- out = withRelayEdit(out, n.id, { previous, instruction });
642
- } else if (also) out = withRelayNote(out, [n.id], `This size must also change this: ${also}`);
643
- }
644
- return out;
645
- }
646
- var EXTEND_PROMPT = [
647
- "Deliverable: Image 1 is a finished ad set inside a frame with flat grey margins around it. Paint only the grey: continue the picture outward into it so the whole frame reads as one picture, the scene going on (the wall, the floor, the sky, the room) or, where the ad has no scene, its own plain ground and colours.",
648
- "Keep everything that is not grey exactly where and as it is: every word, the logo, the button, the people, the products. Nothing in it moves, grows or is redrawn.",
649
- "Add nothing in the grey: no words, no letters, no logos, no buttons, no new people or objects, no frames, borders or shadows around the ad. Never repeat any part of the ad in it: no second logo, button, line of text, card or person; the grey is only more of the room, the table, the floor, the sky or the plain ground."
650
- ].join("\n\n");
651
- function withExtendedSizes(canvas, formats) {
652
- const holder = canvas;
653
- if (!Array.isArray(holder.nodes)) return canvas;
654
- const nodes = holder.nodes;
655
- const final = nodes.find((n) => n.id === "final" && n.type === "collect");
656
- const labels = final?.params?.labels;
657
- const images = final?.inputs?.images;
658
- if (!final || !Array.isArray(labels) || !Array.isArray(images)) return canvas;
659
- const painter = nodesWithRole(canvas, STATIC_ADAPT_FORMAT_ROLE)[0] ?? nodesWithRole(canvas, STATIC_VARIANT_CALL_ROLE)[0];
660
- const params = painter?.params ?? {};
661
- const model = typeof params.model === "string" ? params.model : void 0;
662
- if (!model) return canvas;
663
- const placements = plannedPlacements(nodes) ?? nodes.find((n) => n.type === "static_safe_fit" && Array.isArray(n.params?.placements))?.params?.placements;
664
- const copy = placingCopy(nodes);
665
- const added = [];
666
- const delivered = [...images];
667
- const logoOn = /* @__PURE__ */ new Map();
668
- const cut = new Set(nodesWithRole(canvas, STATIC_FORMAT_ROLE).map((n) => `$ref:${n.id}.image`));
669
- for (const format of formats) {
670
- const at = labels.indexOf(format);
671
- const reads = images[at];
672
- const composite = nodes.find(
673
- (n) => typeof reads === "string" && reads === `$ref:${String(n.id)}.image` && n.tags?.role === LOGO_COMPOSITE_ROLE
674
- );
675
- const source = composite ? composite.inputs?.image : reads;
676
- if (at < 0 || typeof source !== "string" || cut.has(source)) continue;
677
- const slug = formatSlug(format);
678
- const ratio = nearestSupportedAspectRatio("image_generate", model, format);
679
- added.push(
680
- {
681
- id: `place_${slug}`,
682
- type: "static_place",
683
- inputs: { image: source },
684
- params: {
685
- format,
686
- render_ratio: ratio,
687
- ...placements ? { placements: [...placements] } : {},
688
- ...copy ? { copy } : {}
689
- },
690
- tags: { role: STATIC_PLACE_ROLE }
691
- },
692
- {
693
- id: `merge_${slug}`,
694
- type: "static_extend_merge",
695
- inputs: { placed: `$ref:place_${slug}.placed`, shown: `$ref:place_${slug}.shown`, keep: `$ref:place_${slug}.keep` },
696
- params: {
697
- render_ratio: ratio,
698
- paint: {
699
- model,
700
- aspect_ratio: ratio,
701
- ...params.quality !== void 0 ? { quality: params.quality } : {},
702
- ...params.image_size !== void 0 ? { image_size: params.image_size } : {},
703
- prompt: EXTEND_PROMPT
704
- }
705
- }
706
- }
707
- );
708
- if (composite) logoOn.set(String(composite.id), { ...composite, inputs: { ...composite.inputs, image: `$ref:merge_${slug}.image` } });
709
- else delivered[at] = `$ref:merge_${slug}.image`;
710
- }
711
- if (added.length === 0) return canvas;
712
- const kept = nodes.filter((n) => n !== final && !logoOn.has(String(n.id)));
713
- return {
714
- ...holder,
715
- nodes: [...kept, ...added, ...logoOn.values(), { ...final, inputs: { ...final.inputs, images: delivered } }]
716
- };
717
- }
718
- function placingCopy(nodes) {
719
- const told = nodes.find(
720
- (n) => (n.type === "static_safe_fit" || n.type === "static_place") && Array.isArray(n.params?.copy)
721
- )?.params?.copy;
722
- if (Array.isArray(told)) return told;
723
- const kept = nodes.find((n) => n.type === "image_aspect_adapt" && Array.isArray(n.params?.copy))?.params?.copy;
724
- return Array.isArray(kept) ? kept.filter((t) => typeof t === "string").map((text) => ({ text })) : void 0;
725
- }
726
- function deliveredRole(ref, nodes, roles) {
727
- const idOf = (r) => typeof r === "string" ? /^\$ref:([^.]+)\./.exec(r)?.[1] : void 0;
728
- const read = idOf(ref);
729
- const composite = read && roles[read] === LOGO_COMPOSITE_ROLE ? nodes.find((n) => n.id === read) : void 0;
730
- const from = composite ? idOf(composite.inputs?.image) : read;
731
- return from ? roles[from] : void 0;
732
- }
733
- function withDeliveredSizes(canvas, last) {
734
- const holder = canvas;
735
- if (!Array.isArray(holder.nodes)) return canvas;
736
- const final = holder.nodes.find((n) => n.id === "final" && n.type === "collect");
737
- const labels = final?.params?.labels;
738
- const images = final?.inputs?.images;
739
- if (!final || !Array.isArray(labels) || !Array.isArray(images)) return canvas;
740
- const ingests = [];
741
- const roles = rolesById(canvas);
742
- const delivered = images.map((ref, i) => {
743
- const format = labels[i];
744
- const file = typeof format === "string" ? last[format] : void 0;
745
- if (!file || typeof format !== "string") return ref;
746
- const id = `last_${formatSlug(format)}`;
747
- const remote = /^(?:https?|data):/.test(file);
748
- const role = deliveredRole(ref, holder.nodes ?? [], roles);
749
- ingests.push({
750
- id,
751
- type: "ingest",
752
- params: remote ? { source: "url", url: file, expect: "image" } : { source: "path", path: file, expect: "image" },
753
- ...role === STATIC_MASTER_ROLE ? { tags: { role } } : {}
754
- });
755
- return `$ref:${id}.asset`;
756
- });
757
- const at = holder.nodes.indexOf(final);
758
- return {
759
- ...holder,
760
- nodes: [
761
- ...holder.nodes.slice(0, at),
762
- ...ingests,
763
- { ...final, inputs: { ...final.inputs, images: delivered } },
764
- ...holder.nodes.slice(at + 1)
765
- ]
766
- };
767
- }
768
-
769
- // src/commands/canvas/static-run-review.ts
770
- import { readFile as readFile2 } from "fs/promises";
771
- import path2 from "path";
772
-
773
- // src/commands/canvas/glance-check.ts
774
- import sharp from "sharp";
775
- import { z } from "zod";
776
- var GLANCE_REQUIRED = {
777
- offer: "guess",
778
- for_whom: "unclear",
779
- next_step: "unclear"
780
- };
781
- var GLANCE_WIDTH = 400;
782
- var GlanceAnswerSchema = ViewerAnswerSchema.extend({
783
- /** What kind of product or service they take it for (D4). */
784
- category: z.object({ answer: z.string().default(""), clarity: z.enum(["clear", "guess", "unclear"]).default("unclear") }).default({ answer: "", clarity: "unclear" }),
785
- stopped: z.string().default(""),
786
- me: z.enum(["yes", "no", "unsure"]).default("unsure")
787
- });
788
- function wherePhrase(placements) {
789
- const fullScreen = placements.length === 0 || placements.some((p) => /automatic|stor|reel/i.test(p));
790
- return fullScreen ? "your Instagram or Facebook feed, Stories or Reels" : "your Instagram or Facebook feed";
791
- }
792
- function knowledge(viewer) {
793
- if (!viewer.knows.includes("brand")) return "You have never heard of the advertiser.";
794
- const offer = viewer.knows.includes("offer") ? " You know roughly what they sell." : "";
795
- return `You have come across the advertiser before.${offer}`;
796
- }
797
- function buildGlancePrompt(input) {
798
- const who = input.market ? `You are ${input.market}. ` : "";
799
- return [
800
- `${who}You are scrolling ${wherePhrase(input.viewer.placements)} on your phone. ${knowledge(input.viewer)}`,
801
- "This ad passes under your thumb and holds you for about three seconds: you take in the picture and read the biggest words, not the small print. The image is shown at the size your phone shows it.",
802
- "Answer as this person, from those three seconds alone. Do not fill gaps with what ads like this usually sell.",
803
- 'For each question give your answer in English and how sure you are: "clear" when the ad says it outright or you already know it; "guess" when you are piecing it together; "unclear" when you cannot tell.',
804
- "offer: what is being sold or offered?",
805
- "for_whom: who is it for?",
806
- "next_step: what would you do next if you wanted it?",
807
- "category: what kind of product or service is this for (a payroll app, a trade course, a phone)?",
808
- 'missing: in one short sentence, what you would need to be told to get it; "" when nothing.',
809
- "stopped: what made you stop on it, or what nearly made you scroll past, in a few words.",
810
- 'me: is this for someone like you? "yes", "no" or "unsure".',
811
- "",
812
- 'Reply with only this JSON: {"offer":{"answer":"","clarity":"clear|guess|unclear"},"for_whom":{"answer":"","clarity":"clear|guess|unclear"},"next_step":{"answer":"","clarity":"clear|guess|unclear"},"category":{"answer":"","clarity":"clear|guess|unclear"},"missing":"","stopped":"","me":"yes|no|unsure"}'
813
- ].join("\n");
814
- }
815
- var QUESTION_WORDS = {
816
- offer: "what is offered",
817
- for_whom: "who it is for",
818
- next_step: "what to do next"
819
- };
820
- function missWords(miss) {
821
- if (miss.question === "presumes") return `it talks to them as a customer already ("${miss.viewerSaid}")`;
822
- const said2 = miss.viewerSaid.trim() ? `"${miss.viewerSaid.trim()}"` : "nothing";
823
- const what = QUESTION_WORDS[miss.question];
824
- return miss.reason === "misread" ? `${what} (they were sure it is ${said2})` : `${what} (they said ${said2})`;
825
- }
826
- function glanceFindings(answer, intended, format, viewer, misread = { offer: false, category: false }) {
827
- const verdict = judgeViewerAnswer({ ...answer, presumes: "" }, intended, GLANCE_REQUIRED, misread.offer);
828
- const category = answer.category.answer.trim();
829
- const kind = intended.recognition && category && misread.category ? [
830
- {
831
- severity: "warning",
832
- what: `${format}: At a glance, a stranger took it for "${category}"; it is meant as ${intended.recognition}.`
833
- }
834
- ] : [];
835
- if (verdict.pass) return kind;
836
- const needed = answer.missing.trim() ? ` They needed: ${answer.missing.trim().replace(/[.!]+$/, "")}.` : "";
837
- const missed = verdict.missed.map(missWords).join("; ");
838
- return [
839
- {
840
- severity: "blocking",
841
- what: `${format}: At a glance, ${describeViewer(viewer).replace(/, on .* placements$/, "")} could not tell ${missed}.${needed}`
842
- },
843
- ...kind
844
- ];
845
- }
846
- async function glanceMisreads(answer, intended, judge) {
847
- const sure = sureEnough(answer.offer.clarity, GLANCE_REQUIRED.offer);
848
- const [offer = false, category = false] = await misreadings(
849
- [
850
- { said: sure ? answer.offer.answer : "", meant: intended.offer, sells: intended.sells },
851
- { said: answer.category.answer, meant: intended.recognition }
852
- ],
853
- judge
854
- );
855
- return { offer, category };
856
- }
857
- function gatewayGlanceModel(onSpend) {
858
- return (jpeg, prompt) => askAboutImages(GLANCE_CHECK_MODEL, [jpeg], prompt, onSpend);
859
- }
860
- async function glanceCheck(opts) {
861
- let jpeg;
862
- try {
863
- const bytes = await bytesOf(opts.image);
864
- jpeg = (await sharp(bytes).resize({ width: GLANCE_WIDTH }).jpeg({ quality: 85 }).toBuffer()).toString("base64");
865
- } catch {
866
- return null;
867
- }
868
- const prompt = buildGlancePrompt({ viewer: opts.viewer, ...opts.market ? { market: opts.market } : {} });
869
- for (let attempt = 0; attempt < 2; attempt++) {
870
- const parsed = GlanceAnswerSchema.safeParse(await opts.ask(jpeg, prompt));
871
- if (parsed.success) {
872
- const misread = await glanceMisreads(parsed.data, opts.intended, opts.judge ?? jevReadJudge());
873
- return glanceFindings(parsed.data, opts.intended, opts.format, opts.viewer, misread);
874
- }
875
- }
876
- return null;
877
- }
878
-
879
- // src/commands/canvas/logo-review.ts
880
- import sharp2 from "sharp";
881
-
882
- // src/engine/nodes/local/lib/logo-match.ts
883
- var SOLID = 250;
884
- var SAME_COLOUR = 60;
885
- var LOGO_MATCH = 0.98;
886
- var DRAWN_LOGO_MATCH = 0.9;
887
- var COARSE_WIDTH = 180;
888
- var MIN_SHOWN = 0.4;
889
- var MAIN_COLOUR = 0.12;
890
- var INK_NEAR = 90;
891
- function inkColours(logo) {
892
- const bins = /* @__PURE__ */ new Map();
893
- let total = 0;
894
- for (let i = 0; i < logo.width * logo.height; i++) {
895
- if ((logo.data[i * 4 + 3] ?? 0) < SOLID) continue;
896
- const r = logo.data[i * 4] ?? 0;
897
- const g = logo.data[i * 4 + 1] ?? 0;
898
- const b = logo.data[i * 4 + 2] ?? 0;
899
- const key = r >> 5 << 6 | g >> 5 << 3 | b >> 5;
900
- const bin = bins.get(key) ?? { n: 0, r: 0, g: 0, b: 0 };
901
- bins.set(key, { n: bin.n + 1, r: bin.r + r, g: bin.g + g, b: bin.b + b });
902
- total++;
903
- }
904
- return [...bins.values()].filter((b) => b.n >= MAIN_COLOUR * total).map((b) => [b.r / b.n, b.g / b.n, b.b / b.n]);
905
- }
906
- function mapOf(img, f, test) {
907
- const width = Math.max(1, Math.floor(img.width / f));
908
- const height = Math.max(1, Math.floor(img.height / f));
909
- const map = new Uint8Array(width * height);
910
- for (let y = 0; y < height; y++) {
911
- for (let x = 0; x < width; x++) map[y * width + x] = cellOn(img.width, f, x * f, y * f, test) ? 1 : 0;
912
- }
913
- return { map, width, height };
914
- }
915
- function cellOn(width, f, x0, y0, test) {
916
- let on = 0;
917
- for (let j = 0; j < f; j++) {
918
- for (let i = 0; i < f; i++) on += test((y0 + j) * width + x0 + i) ? 1 : 0;
919
- }
920
- return on * 2 >= f * f;
921
- }
922
- function inkMapOf(image, colours, f) {
923
- return mapOf(image, f, (i) => colours.some((c) => distance(image.data, i * 4, c, 0) < INK_NEAR));
924
- }
925
- var maskOf = (logo, f) => mapOf(logo, f, (i) => (logo.data[i * 4 + 3] ?? 0) >= 128);
926
- function summed(m) {
927
- const w = m.width + 1;
928
- const sum = new Int32Array(w * (m.height + 1));
929
- for (let y = 0; y < m.height; y++) {
930
- let row = 0;
931
- for (let x = 0; x < m.width; x++) {
932
- row += m.map[y * m.width + x] ?? 0;
933
- sum[(y + 1) * w + x + 1] = (sum[y * w + x + 1] ?? 0) + row;
934
- }
935
- }
936
- return { ...m, sum };
937
- }
938
- function inkIn(m, x0, y0, x1, y1) {
939
- const w = m.width + 1;
940
- const [a, b] = [Math.max(0, x0), Math.min(m.width, x1)];
941
- const [c, d] = [Math.max(0, y0), Math.min(m.height, y1)];
942
- if (a >= b || c >= d) return 0;
943
- return (m.sum[d * w + b] ?? 0) - (m.sum[c * w + b] ?? 0) - (m.sum[d * w + a] ?? 0) + (m.sum[c * w + a] ?? 0);
944
- }
945
- function cellsOf(m) {
946
- const rows = [];
947
- const x0s = [];
948
- const x1s = [];
949
- for (let y = 0; y < m.height; y++) {
950
- for (let x = 0; x < m.width; x++) {
951
- if (!m.map[y * m.width + x]) continue;
952
- const start = x;
953
- while (x < m.width && m.map[y * m.width + x]) x++;
954
- rows.push(y);
955
- x0s.push(start);
956
- x1s.push(x);
957
- }
958
- }
959
- const mask = summed(m);
960
- return {
961
- rows: Int32Array.from(rows),
962
- x0s: Int32Array.from(x0s),
963
- x1s: Int32Array.from(x1s),
964
- mask,
965
- area: inkIn(mask, 0, 0, m.width, m.height),
966
- width: m.width,
967
- height: m.height
968
- };
969
- }
970
- var fitScore = (inter, inside, win, area) => inter / (inside + win - inter) * Math.sqrt(inside / area);
971
- function fitAt(ink, cells, x, y, floor = 0) {
972
- const inside = inkIn(cells.mask, -x, -y, ink.width - x, ink.height - y);
973
- if (inside < MIN_SHOWN * cells.area) return 0;
974
- const win = inkIn(ink, x, y, x + cells.width, y + cells.height);
975
- if (fitScore(Math.min(inside, win), inside, win, cells.area) <= floor) return 0;
976
- let inter = 0;
977
- for (let k = 0; k < cells.rows.length; k++) {
978
- const v = y + (cells.rows[k] ?? 0);
979
- inter += inkIn(ink, x + (cells.x0s[k] ?? 0), v, x + (cells.x1s[k] ?? 0), v + 1);
980
- }
981
- return fitScore(inter, inside, win, cells.area);
982
- }
983
- function bestFit(ink, cells, xs, ys, step = 1) {
984
- let best = { x: 0, y: 0, score: 0 };
985
- if (cells.area === 0) return best;
986
- for (let y = ys[0]; y <= ys[1]; y += step) {
987
- for (let x = xs[0]; x <= xs[1]; x += step) {
988
- const score = fitAt(ink, cells, x, y, best.score);
989
- if (score > best.score) best = { x, y, score };
990
- }
991
- }
992
- return best;
993
- }
994
- function locateLogo(image, templates) {
995
- const first = templates[0];
996
- if (!first) return null;
997
- const colours = inkColours(templates[templates.length - 1] ?? first);
998
- if (colours.length === 0) return null;
999
- const f = Math.max(1, Math.round(image.width / COARSE_WIDTH));
1000
- const found = coarseFind(summed(inkMapOf(image, colours, f)), templates, f);
1001
- if (!found || found.score === 0) return null;
1002
- if (f === 1) {
1003
- const t = templates[found.template];
1004
- return { x: found.x, y: found.y, width: t.width, height: t.height, template: found.template, score: found.score };
1005
- }
1006
- return fineFind(summed(inkMapOf(image, colours, 1)), templates, found, f);
1007
- }
1008
- function coarseFind(coarse, templates, f) {
1009
- let found = null;
1010
- templates.forEach((t, k) => {
1011
- const cells = cellsOf(maskOf(t, f));
1012
- const reachX = Math.round(cells.width * (1 - MIN_SHOWN));
1013
- const reachY = Math.round(cells.height * (1 - MIN_SHOWN));
1014
- const fit = bestFit(
1015
- coarse,
1016
- cells,
1017
- [-reachX, coarse.width - cells.width + reachX],
1018
- [-reachY, coarse.height - cells.height + reachY]
1019
- );
1020
- if (!found || fit.score > found.score) found = { template: k, ...fit };
1021
- });
1022
- return found;
1023
- }
1024
- function fineFind(full, templates, found, f) {
1025
- let fine = null;
1026
- const [cx, cy] = [found.x * f, found.y * f];
1027
- for (const k of [-2, -1, 0, 1, 2].map((d) => found.template + d)) {
1028
- const t = templates[k];
1029
- if (!t) continue;
1030
- const cells = cellsOf(maskOf(t, 1));
1031
- const near = bestFit(full, cells, [cx - 2 * f, cx + 2 * f], [cy - 2 * f, cy + 2 * f], 3);
1032
- const fit = bestFit(full, cells, [near.x - 2, near.x + 2], [near.y - 2, near.y + 2]);
1033
- if (!fine || fit.score > fine.score)
1034
- fine = { x: fit.x, y: fit.y, width: t.width, height: t.height, template: k, score: fit.score };
1035
- }
1036
- return fine;
1037
- }
1038
- var distance = (a, i, b, j) => Math.hypot((a[i] ?? 0) - (b[j] ?? 0), (a[i + 1] ?? 0) - (b[j + 1] ?? 0), (a[i + 2] ?? 0) - (b[j + 2] ?? 0));
1039
- function logoAgreement(image, logo, at) {
1040
- let solid = 0;
1041
- let same = 0;
1042
- for (let j = 0; j < logo.height; j++) {
1043
- for (let i = 0; i < logo.width; i++) {
1044
- const s = (j * logo.width + i) * 4;
1045
- if ((logo.data[s + 3] ?? 0) < SOLID) continue;
1046
- solid++;
1047
- const u = at.x + i;
1048
- const v = at.y + j;
1049
- if (u < 0 || v < 0 || u >= image.width || v >= image.height) continue;
1050
- if (distance(image.data, (v * image.width + u) * 4, logo.data, s) < SAME_COLOUR) same++;
1051
- }
1052
- }
1053
- return solid === 0 ? 0 : same / solid;
1054
- }
1055
-
1056
- // src/commands/canvas/logo-review.ts
1057
- var nodesOf = (parsed) => {
1058
- const nodes = parsed?.nodes;
1059
- return Array.isArray(nodes) ? nodes : [];
1060
- };
1061
- var refId = (ref) => typeof ref === "string" ? ref.match(/^\$ref:([a-z][a-z0-9_]*)\./)?.[1] ?? null : null;
1062
- var edgesSaid = (edges) => edges.join(" and ") || "edge";
1063
- var sizeId = formatSlug;
1064
- function wordsNodeOf(nodes, composite, format) {
1065
- let ref = composite?.inputs?.image;
1066
- for (let hops = 0; hops < 12; hops++) {
1067
- const n = nodes.find((m) => m.id === refId(ref));
1068
- if (!n) break;
1069
- if (n.type === "static_format" || n.type === "image_generate") return String(n.id);
1070
- if (n.type === "static_prefilter") return null;
1071
- ref = n.inputs?.image;
1072
- }
1073
- return `format_${sizeId(format)}`;
1074
- }
1075
- function saidOfRoom(format, defect, corner, words = `format_${sizeId(format)}`) {
1076
- const kind = { item: "logo", element: "logo", defect: "other", edges: [] };
1077
- const room = words === null ? `keep the ${corner} plain for the logo, with no word, button or card in it (a \`--fix\` of the chosen picture).` : `run \`baker canvas run \u2026 --regenerate ${words}\` and keep the ${corner} clear for the logo.`;
1078
- const what = defect === "no_room" ? `${format}: there is no room for the logo, not even on a small plate; ${room}` : `${format}: the logo is lost on the picture under it; run \`--regenerate logo_${sizeId(format)}\` so it is set on a plate.`;
1079
- return { severity: "blocking", what, kind };
1080
- }
1081
- function said(format, p, corner = logoCornerWords(void 0), words) {
1082
- if (p.defect === "no_room" || p.defect === "illegible") return saidOfRoom(format, p.defect, corner, words);
1083
- const kind = (item, element, defect) => ({
1084
- item,
1085
- element,
1086
- defect,
1087
- edges: p.defect === "cut" ? [...p.edges] : []
1088
- });
1089
- const blocking = (what, k) => ({
1090
- severity: "blocking",
1091
- what: `${format}: ${what}`,
1092
- kind: k
1093
- });
1094
- if (p.element === "logo") {
1095
- return p.defect === "cut" ? blocking(
1096
- `the frame cuts the logo at its ${edgesSaid(p.edges)}; place it again inside the frame.`,
1097
- kind("logo", "logo", "cut")
1098
- ) : blocking(
1099
- `the logo reaches past the ${edgesSaid(p.edges)} of the part of the frame the app leaves clear; place it again inside it.`,
1100
- kind("safe_zone", "logo", "other")
1101
- );
1102
- }
1103
- if (p.defect === "under_logo") {
1104
- const what = p.element === "headline" ? "the headline" : "a line of the copy";
1105
- return blocking(
1106
- `the logo covers ${what}; set the words again clear of the logo's corner.`,
1107
- kind("layout", "copy", "other")
1108
- );
1109
- }
1110
- return p.defect === "cut" ? blocking(
1111
- `the frame cuts the headline at its ${edgesSaid(p.edges)}; set the words again inside the frame.`,
1112
- kind("layout", "copy", "cut")
1113
- ) : blocking(
1114
- `the headline reaches past the ${edgesSaid(p.edges)} of the part of the frame the app leaves clear; set the words again inside it.`,
1115
- kind("safe_zone", "copy", "other")
1116
- );
1117
- }
1118
- function logoPlacementFindings(parsed, outputsByNode) {
1119
- return nodesWithRole(parsed, LOGO_COMPOSITE_ROLE).flatMap((n) => {
1120
- const facts = LogoFacts.safeParse(outputsByNode[n.id]?.facts);
1121
- if (!facts.success) return [];
1122
- const { format, slot, problems } = facts.data;
1123
- const kept = problems.some((p) => p.defect === "no_room") ? slotPosition(slot, deliveredSize(format)) : void 0;
1124
- const corner = logoCornerWords(kept ?? n.params?.position);
1125
- const words = wordsNodeOf(nodesOf(parsed), n, facts.data.format);
1126
- return facts.data.problems.map((p) => said(facts.data.format, p, corner, words));
1127
- });
1128
- }
1129
- async function rgbaOf(bytes) {
1130
- const { data, info } = await sharp2(bytes).ensureAlpha().raw().toBuffer({ resolveWithObject: true });
1131
- return { data, width: info.width, height: info.height };
1132
- }
1133
- async function ingestBytes(ref, outputsByNode) {
1134
- const id = refId(ref);
1135
- const asset = id ? outputsByNode[id]?.asset : void 0;
1136
- const source = await textColourSource(asset?.metadata);
1137
- if (source) return source;
1138
- const at = typeof asset?.path === "string" ? asset.path : typeof asset?.url === "string" ? asset.url : null;
1139
- return at ? await bytesOf(at).catch(() => null) : null;
1140
- }
1141
- var LOGO_FOUND = 0.6;
1142
- var pct2 = (v) => `${Math.round(v * 100)}%`;
1143
- function mismatch(format, agreement) {
1144
- return {
1145
- severity: "blocking",
1146
- what: `${format}: the logo is not the brand's file as it is (redrawn or altered: ${pct2(agreement)} of it matches the file); run it again so the file itself is placed.`,
1147
- kind: { item: "logo", element: "logo", defect: "other", edges: [] }
1148
- };
1149
- }
1150
- function drawnMismatch(format, agreement) {
1151
- return {
1152
- severity: "blocking",
1153
- what: `${format}: the logo drawn is not the brand's logo (only ${pct2(agreement)} of it matches the file); draw this size again with the brand's logo copied exactly from the logo file, letter for letter.`,
1154
- kind: { item: "logo", element: "logo", defect: "other", edges: [] }
1155
- };
1156
- }
1157
- function searchWidths(frameWidth) {
1158
- const widths = [];
1159
- for (let w = frameWidth * 0.08; w <= frameWidth * 0.45; w *= 1.04) widths.push(Math.round(w));
1160
- return widths;
1161
- }
1162
- async function placedLogoFinding(n, outputsByNode, images) {
1163
- const facts = LogoFacts.safeParse(outputsByNode[String(n.id)]?.facts);
1164
- if (!facts.success || facts.data.problems.some((p) => p.defect === "no_room")) return [];
1165
- const { format, box, variant, ink } = facts.data;
1166
- const image = images.find((i) => i.format === format);
1167
- const logos = Array.isArray(n.inputs?.logos) ? n.inputs.logos : [];
1168
- const [ad, file] = await Promise.all([
1169
- image ? bytesOf(image.path).catch(() => null) : null,
1170
- ingestBytes(logos[variant], outputsByNode)
1171
- ]);
1172
- if (!ad || !file) return [];
1173
- const placed = await fitArtwork(await logoArtwork(file, ink ? { currentColor: ink } : {}), box);
1174
- const agreement = logoAgreement(await rgbaOf(ad), placed, box);
1175
- return agreement < LOGO_MATCH ? [mismatch(format, agreement)] : [];
1176
- }
1177
- async function drawnLogoOn(picture, arts) {
1178
- let best = null;
1179
- for (const art of arts) {
1180
- if (!art) continue;
1181
- const templates = await Promise.all(
1182
- searchWidths(picture.width).map((w) => fitArtwork(art, { width: w, height: picture.height }))
1183
- );
1184
- const at = locateLogo(picture, templates);
1185
- if (!at || at.score < LOGO_FOUND || best && best.score >= at.score) continue;
1186
- best = { agreement: logoAgreement(picture, templates[at.template], at), box: at, score: at.score };
1187
- }
1188
- return best;
1189
- }
1190
- var NO_MARGIN = { top: 0, bottom: 0, left: 0, right: 0 };
1191
- async function artworksOf(file, inks) {
1192
- const colours = usesTextColour(file) ? inks : [void 0];
1193
- return await Promise.all(colours.map((ink) => logoArtwork(file, ink ? { currentColor: ink } : {}).catch(() => null)));
1194
- }
1195
- async function drawnLogoFinding(image, arts) {
1196
- const ad = await bytesOf(image.path).catch(() => null);
1197
- if (!ad) return [];
1198
- const picture = await rgbaOf(ad);
1199
- const drawn = await drawnLogoOn(picture, arts);
1200
- if (!drawn) return [];
1201
- const frame2 = { width: picture.width, height: picture.height };
1202
- const cut = placementProblems({ frame: frame2, safe: NO_MARGIN, logo: drawn.box });
1203
- if (cut.length > 0) return cut.map((p) => said(image.format, p));
1204
- return drawn.agreement < DRAWN_LOGO_MATCH ? [drawnMismatch(image.format, drawn.agreement)] : [];
1205
- }
1206
- async function deliveredLogoFindings(parsed, outputsByNode, images, inks = ["#000000", "#FFFFFF"]) {
1207
- const nodes = nodesOf(parsed);
1208
- const composites = nodes.filter((n) => n.tags?.role === LOGO_COMPOSITE_ROLE && n.type === "static_logo");
1209
- if (composites.length > 0) {
1210
- return (await Promise.all(composites.map((n) => placedLogoFinding(n, outputsByNode, images)))).flat();
1211
- }
1212
- const logos = nodes.filter((n) => n.type === "ingest" && /^brand_logo/.test(String(n.tags?.role ?? "")));
1213
- const files = await Promise.all(logos.map((n) => ingestBytes(`$ref:${String(n.id)}.asset`, outputsByNode)));
1214
- const arts = (await Promise.all(files.map((f) => f ? artworksOf(f, inks) : []))).flat();
1215
- if (!arts.some((a) => a !== null)) return [];
1216
- const asIs = deliveredAsIs(nodes);
1217
- const drawn = images.filter((i) => !asIs.has(i.format));
1218
- return (await Promise.all(drawn.map((image) => drawnLogoFinding(image, arts)))).flat();
1219
- }
1220
- function deliveredAsIs(nodes) {
1221
- const final = nodes.find((n) => n.id === "final" && n.type === "collect");
1222
- const labels = final?.params?.labels;
1223
- const images = final?.inputs?.images;
1224
- if (!Array.isArray(labels) || !Array.isArray(images)) return /* @__PURE__ */ new Set();
1225
- return new Set(
1226
- labels.filter((label, i) => {
1227
- const from = nodes.find((n) => n.id === refId(images[i]));
1228
- return typeof label === "string" && from?.type === "ingest";
1229
- })
1230
- );
1231
- }
1232
-
1233
- // src/commands/canvas/static-run-review.ts
1234
- function imagesOf(output) {
1235
- const list = Array.isArray(output) ? output : [output];
1236
- const images = list.filter((o) => Boolean(o) && typeof o === "object");
1237
- return images.length > 0 && images.every((i) => i.kind === "image") ? images : null;
1238
- }
1239
- function promptPathOf(parsed) {
1240
- const nodes = parsed?.nodes;
1241
- if (!Array.isArray(nodes)) return null;
1242
- const prompt = nodes.find((n) => n?.id === "prompt" && n?.type === "ingest");
1243
- const p = prompt?.params;
1244
- return p?.source === "path" && p.expect === "json" && typeof p.path === "string" ? p.path : null;
1245
- }
1246
- function staticReviewTargets(parsed, output) {
1247
- const promptPath = promptPathOf(parsed);
1248
- const images = imagesOf(output);
1249
- if (!promptPath || !images) return null;
1250
- const labels = finalOutputLabelsFromCanvas(parsed)?.labels ?? [];
1251
- return {
1252
- promptPath,
1253
- // A local file when the run downloaded it, else its durable URL.
1254
- images: images.flatMap((image, i) => {
1255
- const source = typeof image.path === "string" ? image.path : typeof image.url === "string" ? image.url : null;
1256
- return source ? [{ path: source, format: labels[i] ?? "" }] : [];
1257
- })
1258
- };
1259
- }
1260
- function nodesOf2(parsed) {
1261
- const nodes = parsed?.nodes;
1262
- return Array.isArray(nodes) ? nodes : [];
1263
- }
1264
- var refId2 = (ref) => typeof ref === "string" ? ref.match(/^\$ref:([a-z][a-z0-9_]*)\./)?.[1] ?? null : null;
1265
- var hasRole = (n, role) => n.tags?.role === role;
1266
- function variantCount(nodes) {
1267
- const calls = nodes.filter((n) => hasRole(n, STATIC_VARIANT_CALL_ROLE)).length;
1268
- if (calls > 0) return calls;
1269
- const one = nodes.find((n) => hasRole(n, STATIC_VARIANTS_ROLE) && n.type === "image_generate");
1270
- if (one) return typeof one.params?.n === "number" ? one.params.n : 1;
1271
- if (nodes.some((n) => hasRole(n, STATIC_FIX_ROLE))) return 1;
1272
- return nodes.filter((n) => n.type === "image_generate" && /^ad(_[a-z])?$/.test(String(n.id))).length;
1273
- }
1274
- function staticRunShape(parsed) {
1275
- const nodes = nodesOf2(parsed);
1276
- const renders = nodes.filter((n) => n.type === "image_generate" && typeof n.id === "string");
1277
- const candidates = variantCount(nodes);
1278
- const logoIds = new Set(nodes.filter((n) => hasRole(n, BRAND_LOGO_ROLE)).map((n) => String(n.id)));
1279
- const logo = nodes.some((n) => hasRole(n, LOGO_COMPOSITE_ROLE)) || renders.some((n) => {
1280
- const refs = n.inputs?.reference;
1281
- return (Array.isArray(refs) ? refs : [refs]).some((r) => logoIds.has(refId2(r) ?? ""));
1282
- }) || // On one picture each size's words call places the logo file.
1283
- nodes.some((n) => n.type === "static_format" && logoIds.has(refId2(n.inputs?.logo) ?? ""));
1284
- const masterId = nodes.find((n) => hasRole(n, STATIC_MASTER_ROLE))?.id;
1285
- const adapt = nodes.find((n) => hasRole(n, STATIC_ADAPT_ROLE));
1286
- return {
1287
- candidates,
1288
- judged: candidates > 1 && nodes.some(
1289
- (n) => n.type === "image_select" && (hasRole(n, STATIC_PICK_ROLE) || n.id === "pick") || hasRole(n, VARIANT_PREFILTER_ROLE) && typeof n.params?.judge_model === "string"
1290
- ),
1291
- relays: masterId !== void 0 ? 0 : Math.max(0, renders.length - candidates),
1292
- cuts: nodes.filter((n) => {
1293
- const from = refId2(n.inputs?.image);
1294
- return hasRole(n, STATIC_SIZE_ROLE) && from !== null && from === masterId;
1295
- }).length,
1296
- relaid: nodes.filter((n) => hasRole(n, STATIC_ADAPT_FORMAT_ROLE)).length,
1297
- adapted: Array.isArray(adapt?.params?.formats) ? adapt.params.formats.length : 0,
1298
- plates: nodes.some((n) => hasRole(n, STATIC_LEAD_ROLE)) ? nodes.filter((n) => hasRole(n, STATIC_VARIANT_CALL_ROLE)).length : 0,
1299
- // The lead the master delivers is the chosen option's own words, replayed: not a size set again.
1300
- worded: nodes.filter((n) => hasRole(n, STATIC_FORMAT_ROLE) && n.id !== masterReads(nodes)).length,
1301
- logo
1302
- };
1303
- }
1304
- function masterReads(nodes) {
1305
- return refId2(nodes.find((n) => hasRole(n, STATIC_MASTER_ROLE))?.inputs?.image);
1306
- }
1307
- function shapeHint(shape, copy) {
1308
- const drawn = shape.plates > 0 ? " (a picture each without the ad's words, the lead size's words set on it)" : "";
1309
- const variants = `${shape.candidates} variant${shape.candidates === 1 ? "" : "s"} rendered${drawn}${shape.judged ? ", ranked by the checks with a judge on a tie" : ", no judge"}`;
1310
- const sizes = [
1311
- ...shape.worded > 0 ? [`${shape.worded} size${shape.worded === 1 ? "" : "s"} cut from the chosen picture with ${shape.worded === 1 ? "its" : "their"} words set for ${shape.worded === 1 ? "it" : "them"} (one request each)`] : [],
1312
- ...shape.relaid > 0 ? [`${shape.relaid} size${shape.relaid === 1 ? "" : "s"} re-laid out from the chosen picture (one request each)`] : [],
1313
- ...shape.cuts > 0 ? [`${shape.cuts} size${shape.cuts === 1 ? "" : "s"} cut from the chosen picture`] : [],
1314
- ...shape.adapted > 0 ? [`${shape.adapted} adapted from it`] : [],
1315
- ...shape.relays > 0 ? [`${shape.relays} other format${shape.relays === 1 ? "" : "s"} re-laid from the winner`] : []
1316
- ];
1317
- const text = copy === 0 ? "no copy (the picture is the ad)" : "the copy set by the model and read back word for word";
1318
- return `This run: ${variants}${sizes.length > 0 ? `; ${sizes.join("; ")}` : ""}; ${text}; ${shape.logo ? "the brand logo on the ad from its real file" : "no logo"}.`;
1319
- }
1320
- var PAID_FOR = {
1321
- edit: "one edit of the version shown",
1322
- sizes: "only the sizes asked for, laid out again",
1323
- options: "new options from scratch, every size made from the one chosen"
1324
- };
1325
- function runCostHint(stats, kind) {
1326
- if (!stats) return null;
1327
- const cached = stats.cached_nodes > 0 ? ` (${stats.cached_nodes} of ${stats.total_nodes} steps came from the cache, free)` : "";
1328
- return `This run cost ${Math.round(stats.total_credits)} credits: ${PAID_FOR[kind]}${cached}.`;
1329
- }
1330
- async function textOf(ref) {
1331
- const r = ref;
1332
- try {
1333
- if (typeof r?.path === "string") return await readFile2(r.path, "utf8");
1334
- if (typeof r?.url === "string") {
1335
- const res = await fetch(r.url);
1336
- return res.ok ? await res.text() : null;
1337
- }
1338
- } catch {
1339
- return null;
1340
- }
1341
- return null;
1342
- }
1343
- function sizeShapeOf(canvas) {
1344
- return isPlateCanvas(canvas) ? "plate" : "relayout";
1345
- }
1346
- function oneSizeFix(shape) {
1347
- return shape === "plate" ? "`baker canvas run \u2026 --regenerate format_<size>` (for example `format_9x16`) sets that size's words again on the same picture (one request)" : "`baker canvas run \u2026 --regenerate adapt_<size>` (for example `adapt_9x16`) lays out that size again from the same picture (one request)";
1348
- }
1349
- function fixHint(shape) {
1350
- return `One thing wrong in a version that is otherwise right: \`baker canvas run \u2026 --fix "<what to change>"\` edits that version and changes only that, keeping the picture, the layout and the other words (one render). Wrong or missing words: check the lines in prompt.json \`copy\` are exactly what should be printed, shorten a line the model keeps breaking, and re-run: a change only to copy, positions or colours is made as an edit of the version shown. Wrong picture, colour or subject: edit prompt.json's \`scene\`, \`colors\` or \`references\`. Layout or a logo drawn wrong: say in each line's \`position\` (and \`scene.layout\`) where it sits, by what is around it. A right prompt that rolled badly: \`baker canvas run \u2026 --regenerate static_variants\` renders new options (every size follows from the new pick). One size wrong while the chosen picture is right (words cut or too small, the button small, something drawn twice): ${oneSizeFix(shape)}.`;
1351
- }
1352
- function verdictHints(verdict, shape = "plate") {
1353
- if (verdict === "needs_fixes") {
1354
- const cost = shape === "plate" ? "each size's words take one request" : "each re-laid-out size takes one request; a cut is free";
1355
- return [
1356
- `NOT READY: the finished ad has blocking problems. Do not present it as done, and never ask the person whether to fix them: fix them now, inside this version. A defect in a version that is otherwise right is a \`--fix\`: it edits the chosen picture only, and every size is made from it again (${cost}). The same defect after a fix means the fix does not work: change the spec (prompt.json) or the approach, never the same retry. If it still cannot be fixed, show the person the best version and say in one plain sentence what is left, in their words ("the logo sits where Stories covers it"), without a question; never record your own checks as their feedback.`,
1357
- fixHint(shape)
1358
- ];
1359
- }
1360
- if (verdict === "not_reviewed") {
1361
- return [
1362
- "The finished ad was NOT reviewed: no model gateway key here, or the review model did not answer twice. Look at every word of every format yourself before showing it, or re-run the same command (every node comes from the cache) to review it again."
1363
- ];
1364
- }
1365
- if (verdict === "ready") {
1366
- return ["Reviewed every format of the finished ad: every word read back exactly, nothing to fix.", SHOW_IT];
1367
- }
1368
- return verdict === "ready_with_notes" ? [SHOW_IT] : [];
1369
- }
1370
- var SHOW_IT = `Show it as a Version ("Version 2"), never a run id or a file, in one line: the idea's message, who it is for, the customer quote it stands on (or that it is an explore bet), and the finding it answers. Name the versions you would run first; never ask which to keep or whether to publish: the person answers in their own time.`;
1371
- function allowedSceneWords(spec) {
1372
- return [.../* @__PURE__ */ new Set([...spec.scene_text, ...spec.third_party_brands.map((b) => b.name)])];
1373
- }
1374
- function brandPalette(brand) {
1375
- if (!brand) return [];
1376
- const named = [brand.ink, brand.accent, brand.cta, brand.ground, ...brand.palette];
1377
- return [...new Set(named.filter((hex) => typeof hex === "string"))];
1378
- }
1379
- function safeAreaPlacements(viewer) {
1380
- const named = (viewer?.placements ?? []).filter((p) => p !== "automatic");
1381
- return named.length > 0 && named.length === viewer?.placements.length ? named : void 0;
1382
- }
1383
- function canvasPlacements(parsed) {
1384
- const node = nodesWithRole(parsed, VARIANT_PREFILTER_ROLE)[0];
1385
- const placements = node?.params?.placements;
1386
- return Array.isArray(placements) && placements.length > 0 && placements.every((p) => typeof p === "string") ? placements : void 0;
1387
- }
1388
- async function reviewStaticRun(opts) {
1389
- const targets = staticReviewTargets(opts.parsed, opts.output);
1390
- if (!targets) return null;
1391
- const prefilterId = nodesWithRole(opts.parsed, VARIANT_PREFILTER_ROLE)[0]?.id;
1392
- const tieBreak = prefilterId ? opts.outputsByNode[prefilterId]?.reasoning : void 0;
1393
- const pickId = nodesWithRole(opts.parsed, STATIC_PICK_ROLE)[0]?.id ?? "pick";
1394
- const reasoning = typeof tieBreak === "string" ? tieBreak : await textOf(opts.outputsByNode[pickId]?.reasoning);
1395
- const judge = reasoning ? parseJudgeScores(reasoning) : null;
1396
- let copy = [];
1397
- let mechanisms = [];
1398
- let intended = {};
1399
- let expectLogo = false;
1400
- let concept = null;
1401
- let uncast = [];
1402
- let nobody = false;
1403
- let brand = opts.brandName;
1404
- let lockup = [...opts.lockup ?? []];
1405
- let sceneText = [];
1406
- let lines = [];
1407
- let native;
1408
- let palette = [];
1409
- try {
1410
- const spec = readAdSpec(JSON.parse(await readFile2(targets.promptPath, "utf8")));
1411
- copy = spec.copy.map((l) => l.text);
1412
- lines = spec.copy.map((l) => ({ text: l.text, lettering: l.lettering, ...l.role ? { role: l.role } : {} }));
1413
- if (spec.native) {
1414
- copy = nativeCopy(spec.native);
1415
- lines = copy.map((text) => ({ text, lettering: "designed" }));
1416
- native = nativeSurfaceName(spec.native);
1417
- }
1418
- palette = spec.native ? [] : brandPalette(spec.brand);
1419
- mechanisms = spec.mechanism.map((m) => m.device);
1420
- brand = spec.brand?.name ?? opts.brandName;
1421
- const sells = (await readCompanyReading(path2.resolve(path2.dirname(targets.promptPath), "../../..")))?.sells;
1422
- intended = {
1423
- ...spec.message?.trim() ? { offer: spec.message.trim() } : {},
1424
- ...spec.viewer?.who.trim() ? { persona: spec.viewer.who.trim() } : {},
1425
- ...spec.recognition?.trim() ? { recognition: spec.recognition.trim() } : {},
1426
- ...sells ? { sells } : {}
1427
- };
1428
- lockup = [.../* @__PURE__ */ new Set([...spec.brand?.lockup ?? [], ...lockup])];
1429
- sceneText = [
1430
- ...allowedSceneWords(spec),
1431
- ...spec.native ? nativeChrome(spec.native, spec.viewer?.market?.language, interfaceWordsOf(opts.parsed)) : []
1432
- ];
1433
- expectLogo = spec.logo && !spec.native && staticRunShape(opts.parsed).logo;
1434
- concept = conceptSummary(spec);
1435
- const cacheDir = path2.join(findWorkspaceRoot(path2.dirname(targets.promptPath)) ?? path2.dirname(targets.promptPath), "canvas", ".cache");
1436
- const people = spec.native ? [] : await peopleReader(cacheDir, (u) => opts.onSpend?.(u))(copy) ?? [];
1437
- uncast = uncastPeople(spec, people);
1438
- nobody = !spec.native && castsNobody(spec);
1439
- } catch {
1440
- copy = [];
1441
- }
1442
- const shape = staticRunShape(opts.parsed);
1443
- const placements = canvasPlacements(opts.parsed) ?? safeAreaPlacements(opts.viewer);
1444
- const masterFormat = staticMasterFormat(opts.parsed) ?? void 0;
1445
- const glancing = opts.glance === false ? Promise.resolve(null) : glanceAtFinished(
1446
- targets.images,
1447
- opts.viewer ?? STRANGER,
1448
- intended,
1449
- opts.glance ?? gatewayGlanceModel(opts.onSpend),
1450
- opts.onSpend
1451
- ).catch(() => null);
1452
- const comparing = opts.previous ? nearIdenticalFindings(targets.images, opts.previous).catch(() => []) : Promise.resolve([]);
1453
- const leadFormat = masterFormat ?? targets.images[0]?.format ?? "";
1454
- const lead = targets.images.find((i) => i.format === leadFormat);
1455
- const drawn = native || !lead ? [] : drawnSizes(opts.parsed, targets.images.map((i) => i.format), leadFormat);
1456
- const matching = lead && drawn.length > 0 ? compareSizes(
1457
- lead,
1458
- targets.images.filter((i) => drawn.includes(i.format)),
1459
- { ...opts.onSpend ? { onSpend: opts.onSpend } : {} }
1460
- ).catch(() => drawn.map((format) => ({ format, compared: false, differences: [] }))) : Promise.resolve([]);
1461
- const untouched = opts.settled ? await samePictureSizes(targets.images, opts.settled.images) : [];
1462
- const changed = targets.images.filter((i) => !untouched.includes(i.format));
1463
- const held = await heldRules(path2.dirname(targets.promptPath)).catch(() => ({ rules: [] }));
1464
- const review = await reviewRenderedStatic({
1465
- images: changed.length > 0 ? changed : targets.images,
1466
- rules: held.rules,
1467
- copy,
1468
- lines,
1469
- palette,
1470
- ...placements ? { placements } : {},
1471
- ...brand ? { brand } : {},
1472
- ...lockup.length > 0 ? { lockup } : {},
1473
- ...sceneText.length > 0 ? { sceneText } : {},
1474
- ...masterFormat ? { masterFormat } : {},
1475
- ...expectLogo ? { expectLogo } : {},
1476
- ...concept && concept.mustKeep.length > 0 && referenceSource(opts.parsed) ? { concept: { ...concept, reference: referenceSource(opts.parsed) } } : {},
1477
- logo: shape.logo,
1478
- ...native ? { native } : {},
1479
- ...uncast.length > 0 ? { uncastPeople: uncast } : {},
1480
- ...nobody ? { castsNobody: true } : {},
1481
- ...native ? { scrolled: scrolledLines(opts.parsed, opts.outputsByNode) } : {},
1482
- mechanisms,
1483
- ...opts.viewer ? { viewer: describeViewer(opts.viewer) } : {},
1484
- onSpend: opts.onSpend
1485
- });
1486
- const [glanced, compared, matched] = await Promise.all([glancing, comparing, matching]);
1487
- const glance = review === null ? null : glanced;
1488
- const unchanged = review === null ? [] : compared;
1489
- const sized = sizeFactFindings(opts.parsed, opts.outputsByNode);
1490
- const logoChecked = expectLogo && review !== null;
1491
- const placedLogo = logoChecked ? logoPlacementFindings(opts.parsed, opts.outputsByNode) : [];
1492
- const deliveredLogo = logoChecked ? await deliveredLogoFindings(opts.parsed, opts.outputsByNode, changed.length > 0 ? changed : targets.images, [
1493
- .../* @__PURE__ */ new Set([...palette, "#FFFFFF", "#000000"])
1494
- ]).catch(() => []) : [];
1495
- const differing = matched.flatMap((m) => m.differences.length > 0 ? [sizeDifferenceFinding(m.format, m.differences)] : []);
1496
- const fresh = review === null ? null : [...review, ...glance ?? [], ...unchanged, ...sized, ...placedLogo, ...deliveredLogo, ...differing];
1497
- const reviewed = fresh === null || !opts.settled ? fresh : carryUnchanged(fresh, opts.settled.review, untouched);
1498
- const verdict = staticVerdict(reviewed);
1499
- const hints = verdictHints(verdict, sizeShapeOf(opts.parsed));
1500
- const lost = keptLostHint(reviewed ?? [], await ideaOf(targets.promptPath));
1501
- if (lost) hints.push(lost);
1502
- const sizeHints = verdict === "needs_fixes" ? sizeFixHints(opts.parsed, reviewed) : [];
1503
- const sizesFirst = sizeHints[0]?.startsWith("Do this first") === true;
1504
- if (sizesFirst) hints.push(...sizeHints);
1505
- for (const f of reviewed ?? []) hints.push(`${f.severity === "blocking" ? "Must fix" : "Should fix"}: ${f.what}`);
1506
- if ((reviewed ?? []).some((f) => f.severity === "blocking" && f.kind?.item === "rule" && f.kind.element === "copy")) {
1507
- hints.push(
1508
- 'A company rule the words break is yours to rewrite in prompt.json\'s `copy` (no automatic round changes the words); only when the person asked for those words, keep them and add `"waive": [{"rule": "<id>", "why": "<their ask>"}]`.'
1509
- );
1510
- }
1511
- if (review !== null && glance === null && opts.glance !== false) {
1512
- hints.push("The finished ad was not shown to a stranger at a glance (the model did not answer): look at the 4:5 at phone size yourself and say what it sells in three seconds.");
1513
- }
1514
- const unmatched = review === null ? [] : matched.filter((m) => !m.compared).map((m) => m.format);
1515
- if (unmatched.length > 0) {
1516
- hints.push(
1517
- `The ${unmatched.join(" and ")} could not be compared with the ${leadFormat} (the model did not answer): look at them side by side yourself, for the same people and product, shown once, unstretched.`
1518
- );
1519
- }
1520
- if (!sizesFirst) hints.push(...sizeHints);
1521
- hints.push(shapeHint(shape, copy.length));
1522
- hints.push(...variantHints(judge, prefilterOutcome(opts.parsed, opts.outputsByNode)));
1523
- return { review: reviewed, verdict, judge, hints };
1524
- }
1525
- function scrolledLines(parsed, outputsByNode) {
1526
- return Object.fromEntries(
1527
- nodesOf2(parsed).flatMap((n) => {
1528
- const out = typeof n.id === "string" ? outputsByNode[n.id] : void 0;
1529
- const format = n.params?.format;
1530
- return n.type === "static_native" && typeof format === "string" && Array.isArray(out?.scrolled) ? [[format, out.scrolled.filter((t) => typeof t === "string")]] : [];
1531
- })
1532
- );
1533
- }
1534
- async function ideaOf(promptPath) {
1535
- const definition = await readFile2(path2.join(path2.dirname(promptPath), "_definition.md"), "utf8").catch(() => "");
1536
- const idea = frontmatterOf(definition)?.idea;
1537
- return typeof idea === "string" && idea.trim() ? idea.trim() : void 0;
1538
- }
1539
- function referenceSource(parsed) {
1540
- const original = nodesOf2(parsed).find((n) => n.id === "original" && n.type === "ingest");
1541
- const source = original?.params?.url ?? original?.params?.path;
1542
- return typeof source === "string" && !source.includes("[TODO") ? source : null;
1543
- }
1544
- function interfaceWordsOf(parsed) {
1545
- const nodes = parsed?.nodes;
1546
- const screen = Array.isArray(nodes) ? nodes.find((n) => n?.type === "static_native") : void 0;
1547
- return readInterfaceWords(screen?.params?.interface_words) ?? void 0;
1548
- }
1549
- var STRANGER = { temperature: "cold", knows: [], placements: ["automatic"], source: "knowledge", reasons: [] };
1550
- async function glanceAtFinished(images, viewer, intended, ask, onSpend) {
1551
- const shown = images.find((i) => i.format === "4:5") ?? images[0];
1552
- if (!shown) return null;
1553
- return await glanceCheck({
1554
- image: shown.path,
1555
- format: shown.format,
1556
- viewer,
1557
- intended,
1558
- ask,
1559
- judge: jevReadJudge(onSpend),
1560
- ...viewer.market ? { market: describeMarket(viewer.market) } : {}
1561
- });
1562
- }
1563
- function sizeFixHints(parsed, review) {
1564
- const cut = new Set(nodesWithRole(parsed, STATIC_FORMAT_ROLE).map((n) => n.id));
1565
- const relaid = [...nodesWithRole(parsed, STATIC_ADAPT_FORMAT_ROLE).map((n) => n.id), ...cut];
1566
- const blocking = (review ?? []).filter((f) => f.severity === "blocking");
1567
- const regenerate = relaid.flatMap((id) => {
1568
- const format = formatOfSizeNode(parsed, id);
1569
- if (!format || !blocking.some((f) => f.what.startsWith(`${format}:`))) return [];
1570
- return [
1571
- cut.has(id) ? `The ${format}'s words alone need fixing and the picture is right: \`baker canvas run \u2026 --regenerate ${id}\` sets the ${format}'s words again on the same picture (one request). If the picture itself is wrong, \`--fix\` it instead: every size's words are set again on the corrected picture.` : `The ${format} alone needs fixing and the chosen picture is right: \`baker canvas run \u2026 --regenerate ${id}\` lays out the ${format} again from the same picture (one request). If the chosen picture itself is wrong, \`--fix\` it instead: every size follows.`
1572
- ];
1573
- });
1574
- const relaidFormats = relaid.map((id) => formatOfSizeNode(parsed, id)).filter((f) => Boolean(f));
1575
- const sizesOnly = regenerate.length > 0 && blocking.every((f) => relaidFormats.some((format) => f.what.startsWith(`${format}:`)));
1576
- const lead = sizesOnly ? regenerate.map((h, i) => i === 0 ? `Do this first, not a --fix: ${h}` : h) : regenerate;
1577
- return [...lead, ...safeFitHints(parsed, blocking)];
1578
- }
1579
- var COVERED = / sits? where .+? covers? (?:it|them) /;
1580
- function safeFitHints(parsed, blocking) {
1581
- return nodesWithRole(parsed, STATIC_SAFE_FIT_ROLE).flatMap((n) => {
1582
- const format = typeof n.params?.format === "string" ? n.params.format : formatOfSlug(n.id.replace(/^safe_/, ""));
1583
- if (!blocking.some((f) => f.what.startsWith(`${format}:`) && COVERED.test(f.what))) return [];
1584
- return [
1585
- `The ${format} was already shrunk and shifted automatically to clear what the app covers; small misses are corrected that way, so this one is too large for it. Change the layout itself (shorter copy, fewer lines, a smaller block of text) rather than a \`--fix\` asking to move it, which moves it only about 1%.`
1586
- ];
1587
- });
1588
- }
1589
- var SIZE_FACT_FINDING = {
1590
- band_too_far: {
1591
- what: (format) => `${format}: the words reach too far past the part of the frame the app leaves clear to be moved inside it; set them inside it.`,
1592
- kind: { item: "safe_zone", element: "copy", defect: "other", edges: [] }
1593
- },
1594
- words_over_face: {
1595
- what: (format) => `${format}: the words were set over a face; set them where no face is.`,
1596
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1597
- },
1598
- words_misaligned: {
1599
- what: (format) => `${format}: ${PATCHED_WORDS}, which shows as a box; set them again on the same picture.`,
1600
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1601
- },
1602
- words_not_read: {
1603
- what: (format) => `${format}: ${UNREAD_WORDS}, so the picture around them may have been redrawn; set them again on the same picture.`,
1604
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1605
- },
1606
- subject_covered: {
1607
- what: (format, facts) => `${format}: the words hide ${(facts.covered ?? ["the product"]).join(" and ")}, which the other sizes show; set them where it stays in view.`,
1608
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1609
- },
1610
- subject_cut: {
1611
- what: (format) => `${format}: no cut of the picture keeps every person and product whole in this size.`,
1612
- kind: { item: "picture", element: "picture", defect: "cut", edges: [] }
1613
- }
1614
- };
1615
- function coveredIn(facts) {
1616
- if (facts === void 0 || facts === null || typeof facts !== "object") return null;
1617
- const covered = facts.covered;
1618
- return Array.isArray(covered) ? covered.filter((c) => typeof c === "string") : [];
1619
- }
1620
- function hiddenEverywhere(sizes, outputsByNode) {
1621
- const lists = sizes.map((s) => ({ ...s, covered: coveredIn(outputsByNode[s.id]?.facts) }));
1622
- const labels = new Set(
1623
- (lists[0]?.covered ?? []).filter((label) => lists.length > 1 && lists.every((s) => s.covered?.includes(label)))
1624
- );
1625
- const first = lists.find((s) => s.format && s.covered?.some((label) => labels.has(label)));
1626
- const notes = first?.format && labels.size > 0 ? [
1627
- {
1628
- severity: "warning",
1629
- what: `${first.format}: the words hide ${[...labels].join(" and ")} in every size; set them where it stays in view if it is what the ad sells.`,
1630
- kind: { item: "layout", element: "copy", defect: "other", edges: [] }
1631
- }
1632
- ] : [];
1633
- return { labels, notes };
1634
- }
1635
- function sizeFactFindings(parsed, outputsByNode) {
1636
- const added = paintedAdditions(parsed, outputsByNode);
1637
- const sizes = nodesWithRole(parsed, STATIC_FORMAT_ROLE);
1638
- const everywhere = hiddenEverywhere(
1639
- sizes.map((n) => ({ id: n.id, format: formatOfSizeNode(parsed, n.id) })),
1640
- outputsByNode
1641
- );
1642
- const found = sizes.flatMap((n) => {
1643
- const format = formatOfSizeNode(parsed, n.id);
1644
- const facts = outputsByNode[n.id]?.facts ?? {};
1645
- const shownElsewhere = (coveredIn(facts) ?? []).some((label) => !everywhere.labels.has(label));
1646
- const said2 = typeof facts.reason === "string" && (facts.reason !== "subject_covered" || shownElsewhere) ? SIZE_FACT_FINDING[facts.reason] : void 0;
1647
- const patched = facts.reason !== "words_misaligned" && facts.words_mode !== "whole" && typeof facts.residual === "number" && facts.residual > MISALIGNED ? SIZE_FACT_FINDING.words_misaligned : void 0;
1648
- const covered = (coveredIn(facts) ?? []).filter((label) => !everywhere.labels.has(label));
1649
- const fromPlate = refId2(n.inputs?.plate);
1650
- const extra = fromPlate ? added.get(fromPlate) : void 0;
1651
- if (!format) return [];
1652
- return [
1653
- ...[said2, patched].flatMap(
1654
- (f) => f ? [{ severity: "blocking", what: f.what(format, covered.length > 0 ? { covered } : {}), kind: f.kind }] : []
1655
- ),
1656
- ...extra ? [
1657
- {
1658
- severity: "blocking",
1659
- what: `${format}: the picture painted wider from the chosen one shows ${extra.join(", ")}, which the other sizes do not. It must show the main size's people and product, once each.`,
1660
- kind: { item: "sizes", element: "picture", defect: "other", edges: [] }
1661
- }
1662
- ] : []
1663
- ];
1664
- });
1665
- return [...found, ...everywhere.notes];
1666
- }
1667
- function paintedAdditions(parsed, outputsByNode) {
1668
- return new Map(
1669
- nodesWithRole(parsed, STATIC_PLATE_ROLE).flatMap((n) => {
1670
- const facts = outputsByNode[n.id]?.facts;
1671
- const added = Array.isArray(facts?.added) ? facts.added.filter((a) => typeof a === "string") : [];
1672
- return facts?.reason === "subject_added" && added.length > 0 ? [[n.id, added]] : [];
1673
- })
1674
- );
1675
- }
1676
- function drawnSizes(parsed, delivered, masterFormat) {
1677
- const others = delivered.filter((format) => format && format !== masterFormat);
1678
- const cut = nodesWithRole(parsed, STATIC_FORMAT_ROLE);
1679
- if (cut.length === 0) return others;
1680
- const painted = new Set(nodesWithRole(parsed, STATIC_PLATE_ROLE).map((n) => n.id));
1681
- const fromPainted = new Set(
1682
- cut.flatMap((n) => {
1683
- const plate = refId2(n.inputs?.plate);
1684
- const format = formatOfSizeNode(parsed, n.id);
1685
- return plate && painted.has(plate) && format ? [format] : [];
1686
- })
1687
- );
1688
- return others.filter((format) => fromPainted.has(format));
1689
- }
1690
- function formatOfSlug(slug) {
1691
- return slug.replace("x", ":").replace("_", ".");
1692
- }
1693
- function prefilterNodeId(parsed) {
1694
- return nodesWithRole(parsed, VARIANT_PREFILTER_ROLE)[0]?.id ?? null;
1695
- }
1696
- function prefilterOutcome(parsed, outputsByNode) {
1697
- const id = prefilterNodeId(parsed);
1698
- const out = id ? outputsByNode[id] : void 0;
1699
- return out && Array.isArray(out.dropped) ? out : null;
1700
- }
1701
- function prefilterSpend(parsed, outputsByNode, nodeRuns) {
1702
- const cached = (id2) => nodeRuns.some((r) => r.node_id === id2 && r.cached);
1703
- const id = prefilterNodeId(parsed);
1704
- const checks = id && !cached(id) ? prefilterOutcome(parsed, outputsByNode)?.usage ?? [] : [];
1705
- const fits = [
1706
- ...nodesWithRole(parsed, STATIC_SAFE_FIT_ROLE),
1707
- ...nodesWithRole(parsed, STATIC_PLACE_ROLE),
1708
- // A size cut from one picture reads its subjects and its words; a widened picture its subjects.
1709
- ...nodesWithRole(parsed, STATIC_LEAD_ROLE),
1710
- ...nodesWithRole(parsed, STATIC_FORMAT_ROLE),
1711
- ...nodesWithRole(parsed, STATIC_PLATE_ROLE),
1712
- // The logo's composite reads the size's words for its check.
1713
- ...nodesWithRole(parsed, LOGO_COMPOSITE_ROLE)
1714
- ].filter((n) => !cached(n.id)).flatMap((n) => {
1715
- const usage = outputsByNode[n.id]?.usage;
1716
- return Array.isArray(usage) ? usage : [];
1717
- });
1718
- return [...checks, ...fits];
1719
- }
1720
- function variantHints(judge, prefilter) {
1721
- const hints = [];
1722
- const dropped = prefilter?.dropped ?? [];
1723
- const kept = Array.isArray(prefilter?.images) ? prefilter.images.length : judge?.length ?? 0;
1724
- const total = dropped.length + kept;
1725
- if (prefilter?.flagged) {
1726
- hints.push(
1727
- `Every variant failed the checks; variant ${prefilter.flagged.index + 1} had the fewest problems and was kept: ${prefilter.flagged.reasons.join(" ")}`
1728
- );
1729
- } else if (dropped.length > 0) {
1730
- const list = dropped.map((d) => `variant ${d.index + 1} (${d.reasons.join(" ")})`).join("; ");
1731
- hints.push(`${dropped.length} of ${total} variants set aside by the checks before the judge: ${list}.`);
1732
- }
1733
- const alone = prefilter?.order?.length === 1 && !prefilter.flagged ? prefilter.order[0] : void 0;
1734
- if (alone !== void 0 && dropped.length > 0) {
1735
- hints.push(
1736
- `The checks ranked variant ${alone + 1} best, so no judge was needed; the others stay in this run as options the person can switch to (\`baker canvas run --use-variant\`).`
1737
- );
1738
- }
1739
- const winner = judge ? judgeWinner(judge) : null;
1740
- if (judge && winner) {
1741
- const gone = new Set(dropped.map((d) => d.index));
1742
- const shown = prefilter?.order ?? Array.from({ length: total }, (_, i) => i).filter((i) => !gone.has(i));
1743
- const variant = (shown[winner.image - 1] ?? winner.image - 1) + 1;
1744
- const why = winner.of === void 0 ? `${winner.total}/${Object.keys(winner.scores).length * 5}` : `first on ${Object.entries(winner.scores).filter(([, beaten]) => beaten === winner.of).map(([criterion]) => criterion.replace(/_/g, " ")).join(", ") || "none of the criteria alone"}`;
1745
- hints.push(
1746
- `The judge picked variant ${variant} of the ${judge.length} it compared (${why}); the others it compared stay in this run as options the person can switch to (\`baker canvas run --use-variant\`).`
1747
- );
1748
- }
1749
- return hints;
1750
- }
1751
-
1752
- // src/commands/canvas/render-state.ts
1753
- import { mkdir as mkdir2, readdir, readFile as readFile3, rm, writeFile as writeFile2 } from "fs/promises";
1754
- import path3 from "path";
1755
- var RENDER_STATE_DIR = ".rendered";
1756
- function statePath(canvasRoot, slug) {
1757
- return path3.join(canvasRoot, RENDER_STATE_DIR, `${slug}.json`);
1758
- }
1759
- async function readRenderState(canvasRoot, slug) {
1760
- try {
1761
- const parsed = JSON.parse(await readFile3(statePath(canvasRoot, slug), "utf8"));
1762
- return parsed && typeof parsed === "object" ? parsed : {};
1763
- } catch {
1764
- return {};
1765
- }
1766
- }
1767
- async function latestVersion(canvasRoot, slug) {
1768
- return (await readRenderState(canvasRoot, slug)).rendered?.runId ?? null;
1769
- }
1770
- async function updateRenderState(canvasRoot, slug, patch) {
1771
- try {
1772
- const next = { ...await readRenderState(canvasRoot, slug), ...patch };
1773
- await mkdir2(path3.join(canvasRoot, RENDER_STATE_DIR), { recursive: true });
1774
- await writeFile2(statePath(canvasRoot, slug), `${JSON.stringify(next, null, 2)}
1775
- `, "utf8");
1776
- } catch {
1777
- }
1778
- }
1779
- async function recordRenderAttempt(canvasRoot, slug, sourceSha) {
1780
- if (!sourceSha) return;
1781
- await updateRenderState(canvasRoot, slug, { attempted: { sourceSha, at: Date.now() } });
1782
- }
1783
- async function recordRendered(canvasRoot, slug, sourceSha, runId, drawn = {}) {
1784
- if (!sourceSha) return;
1785
- await updateRenderState(canvasRoot, slug, {
1786
- rendered: { sourceSha, runId, at: Date.now() },
1787
- ...drawn.prompt !== void 0 ? { prompt: drawn.prompt } : {},
1788
- ...drawn.anchor ? { anchor: drawn.anchor } : {},
1789
- ...drawn.idea ? { idea: drawn.idea } : {},
1790
- lastFix: drawn.lastFix,
1791
- picture: drawn.picture,
1792
- ...drawn.seriesLeadRun ? { seriesLeadRun: drawn.seriesLeadRun } : {}
1793
- });
1794
- }
1795
- async function recordSeen(canvasRoot, slug, seen) {
1796
- await updateRenderState(canvasRoot, slug, { seen });
1797
- }
1798
- async function recordIdeaLines(canvasRoot, slug, idea) {
1799
- if ((await readRenderState(canvasRoot, slug)).idea) return;
1800
- await updateRenderState(canvasRoot, slug, { idea });
1801
- }
1802
- async function recordReviewOutcome(canvasRoot, slug, outcome) {
1803
- await updateRenderState(canvasRoot, slug, outcome);
1804
- }
1805
- async function recordSeriesLeadRun(canvasRoot, slug, leadRunId) {
1806
- await updateRenderState(canvasRoot, slug, { seriesLeadRun: leadRunId });
1807
- }
1808
- async function recordSnapshot(canvasRoot, slug, snapshot) {
1809
- await updateRenderState(canvasRoot, slug, { snapshot });
1810
- }
1811
- function isRenderStale(state, currentSourceSha) {
1812
- if (!state.rendered) return false;
1813
- if (!isSourceStale(currentSourceSha, state.rendered.sourceSha)) return false;
1814
- return state.attempted?.sourceSha !== currentSourceSha;
1815
- }
1816
- async function staleCreatives(workspaceRoot, turnId) {
1817
- const creativesDir = path3.join(workspaceRoot, "src", "creatives");
1818
- const canvasRoot = path3.join(workspaceRoot, "canvas");
1819
- const turnRenders = turnId === void 0 ? void 0 : await readTurnRenders(path3.join(canvasRoot, ".cache"));
1820
- let slugs;
1821
- try {
1822
- slugs = (await readdir(creativesDir, { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);
1823
- } catch {
1824
- return [];
1825
- }
1826
- const stale = [];
1827
- for (const slug of slugs.sort()) {
1828
- const state = await readRenderState(canvasRoot, slug);
1829
- if (!state.rendered) continue;
1830
- const canvasPath = path3.join(creativesDir, slug, `${slug}.canvas.json`);
1831
- let prepared;
1832
- try {
1833
- prepared = await prepareCanvas(canvasPath, { write: false });
1834
- } catch {
1835
- continue;
1836
- }
1837
- if (unsuppliedPlaceholderAssets(prepared.fileGraph).length > 0) continue;
1838
- const current = prepared.sourceSha;
1839
- if (!current || !isRenderStale(state, current)) continue;
1840
- const promptOnDisk = await readFile3(path3.join(creativesDir, slug, "prompt.json"), "utf8").then((text) => JSON.parse(text)).catch(() => null);
1841
- const promptNow = isStaticAdCanvas(prepared.canvas) ? promptOnDisk : null;
1842
- const refusal = turnRenderRefusal(turnRenders, turnId, slug, {
1843
- correction: plainRunEdit(prepared.canvas, state.prompt, promptNow) !== null,
1844
- shape: sizeShapeOf(prepared.fileGraph)
1845
- });
1846
- stale.push({
1847
- slug,
1848
- canvasPath: path3.relative(workspaceRoot, canvasPath).split(path3.sep).join("/"),
1849
- renderedRunId: state.rendered.runId,
1850
- sourceSha: current,
1851
- ...refusal ? { refusedThisTurn: `${refusal.message} ${refusal.fix}` } : {}
1852
- });
1853
- }
1854
- return stale;
1855
- }
1856
- async function clearLegacyDirtyMarker(canvasRoot, slug) {
1857
- await rm(path3.join(canvasRoot, ".dirty", `${slug}.json`), { force: true }).catch(() => void 0);
1858
- }
1859
-
1860
- export {
1861
- specEditInstruction,
1862
- frameChanges,
1863
- repeatsFailedFix,
1864
- fixMemoryOf,
1865
- persistingDefects,
1866
- pictureEdit,
1867
- plainRunEdit,
1868
- isStaticAdCanvas,
1869
- peopleReader,
1870
- AUTO_FIX_ROUNDS,
1871
- lostVital,
1872
- stopsWithoutRepair,
1873
- autoFixStep,
1874
- correctFrom,
1875
- placedTooFar,
1876
- formatOfSizeNode,
1877
- rendersNewPicture,
1878
- paidFor,
1879
- withRelayNote,
1880
- withRelayEdit,
1881
- withSizesFollowingFix,
1882
- withExtendedSizes,
1883
- withDeliveredSizes,
1884
- staticReviewTargets,
1885
- runCostHint,
1886
- sizeShapeOf,
1887
- oneSizeFix,
1888
- reviewStaticRun,
1889
- prefilterSpend,
1890
- readRenderState,
1891
- latestVersion,
1892
- recordRenderAttempt,
1893
- recordRendered,
1894
- recordSeen,
1895
- recordIdeaLines,
1896
- recordReviewOutcome,
1897
- recordSeriesLeadRun,
1898
- recordSnapshot,
1899
- staleCreatives,
1900
- clearLegacyDirtyMarker
1901
- };
1902
- //# sourceMappingURL=chunk-WQIHLJAO.js.map