@koda-sl/baker-cli 0.554.0 → 0.555.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.
- package/README.md +5 -3
- package/dist/{account-XIC5TTV3.js → account-H5CL6KUY.js} +4 -4
- package/dist/{account-assets-V7KSSTVP.js → account-assets-QMKT5AT7.js} +6 -6
- package/dist/{account-level-2KLG6HTG.js → account-level-BELF6JHB.js} +8 -8
- package/dist/{account-reads-ZPZUCB3P.js → account-reads-T6GTSAXE.js} +7 -7
- package/dist/{account-users-XTUKRDWK.js → account-users-ZGJCVGX4.js} +9 -9
- package/dist/{accounts-25JL77F7.js → accounts-EXQNPSYH.js} +5 -5
- package/dist/{accounts-AF72N4NV.js → accounts-GNVLFZ3X.js} +3 -3
- package/dist/{actions-IJO4JW7J.js → actions-Q2BMP27K.js} +18 -18
- package/dist/{activecampaign-PBTUMTO5.js → activecampaign-SJO2YK6M.js} +3 -3
- package/dist/{add-YQPFRDVM.js → add-Q3FGYX5Q.js} +3 -3
- package/dist/{add-KHQXXHC5.js → add-YGQBSEVK.js} +2 -2
- package/dist/{ads-5YCCRXEU.js → ads-7QKQEHKT.js} +6 -6
- package/dist/{ads-EVQ37EV3.js → ads-H5AEYIY3.js} +10 -10
- package/dist/{adsets-4IW5TRAK.js → adsets-BUIT7HF2.js} +13 -13
- package/dist/{advertisers-JNOWSZZC.js → advertisers-ZAHXMIAT.js} +3 -3
- package/dist/{analytics-CZMCM7XC.js → analytics-B6ER4TQ7.js} +6 -6
- package/dist/{analytics-K5FCQLI5.js → analytics-QW5ZXDJR.js} +3 -3
- package/dist/{animate-C6BRMRRD.js → animate-Q43SOWB4.js} +4 -4
- package/dist/{asset-writes-RF6XTWLY.js → asset-writes-JVFE457M.js} +8 -8
- package/dist/{assign-WXZNXVJH.js → assign-HJ2NXW4W.js} +3 -3
- package/dist/{audience-size-ZCWH4CFC.js → audience-size-IM3N6W7C.js} +3 -3
- package/dist/{audience-writes-5KT6FHUY.js → audience-writes-DWSCHYQF.js} +7 -7
- package/dist/{audiences-ZDOK3OYC.js → audiences-PYBJU2GV.js} +6 -6
- package/dist/{audit-RBRXPPKK.js → audit-N3LAQMD4.js} +3 -3
- package/dist/{autocomplete-P5OU7QVL.js → autocomplete-FBTPT5MA.js} +3 -3
- package/dist/{avatars-UHBA2BQ3.js → avatars-Y3DALQIU.js} +4 -4
- package/dist/{bid-pricing-LHNYSDG4.js → bid-pricing-UUAC4GTQ.js} +4 -4
- package/dist/{brand-7WL3O74X.js → brand-IZYD5SBJ.js} +2 -2
- package/dist/{brief-HWZU75WP.js → brief-NA3E2W4P.js} +18 -18
- package/dist/{campaign-groups-BYS3GNEP.js → campaign-groups-3IUOLEK2.js} +9 -9
- package/dist/{campaign-writes-N6OHAK6V.js → campaign-writes-Y7QNFOE7.js} +3 -3
- package/dist/{campaigns-3U5IRXSV.js → campaigns-2Z6WXIVA.js} +9 -9
- package/dist/{campaigns-QLKGN4FB.js → campaigns-B2AUW4TV.js} +5 -5
- package/dist/{campaigns-2E4AQBFB.js → campaigns-IDEA3LOK.js} +12 -12
- package/dist/{canvas-GGHJ26ZM.js → canvas-WHFDCHUP.js} +14 -14
- package/dist/{capabilities-TKEEHR7K.js → capabilities-FVMMLKPY.js} +3 -3
- package/dist/{catalog-7KQN43HS.js → catalog-URTZYAPU.js} +6 -6
- package/dist/{catalogs-5CHPI4H6.js → catalogs-OEUNVE4N.js} +7 -7
- package/dist/{chats-PBXYH2LT.js → chats-EENMDXWZ.js} +3 -3
- package/dist/{check-SVYI72DF.js → check-7735BPTR.js} +10 -10
- package/dist/{chunk-5AOTCCTT.js → chunk-2QGGI7MF.js} +6 -6
- package/dist/{chunk-4XMPL3RU.js → chunk-3HKZU3Y5.js} +3 -3
- package/dist/{chunk-B5UVOCYA.js → chunk-3OMFSYQ3.js} +4 -4
- package/dist/chunk-4N3Y5QWW.js +29 -0
- package/dist/chunk-4N3Y5QWW.js.map +1 -0
- package/dist/{chunk-LMOZWB4G.js → chunk-65CQYRMK.js} +2 -2
- package/dist/{chunk-I4BQTVMY.js → chunk-6MZFOMLU.js} +3 -3
- package/dist/{chunk-IBBGABK2.js → chunk-6PT22YSR.js} +3 -3
- package/dist/{chunk-QFVZIQRQ.js → chunk-6WVYBY2G.js} +11 -11
- package/dist/{chunk-VX6GTRT3.js → chunk-757ZFIL4.js} +2 -2
- package/dist/{chunk-IJ6NQKAT.js → chunk-75HAGIH6.js} +2 -2
- package/dist/{chunk-XSBX3LJP.js → chunk-7BVRFQN4.js} +2 -2
- package/dist/{chunk-7OVPQX4X.js → chunk-7TDJCDKT.js} +3 -3
- package/dist/{chunk-ZMTWQDFC.js → chunk-AL4MRNYI.js} +2 -2
- package/dist/{chunk-NO52OH3Y.js → chunk-BMNOMOWP.js} +3 -3
- package/dist/{chunk-4AEAL63J.js → chunk-BS2MC62Y.js} +2 -2
- package/dist/{chunk-DWSSQBLO.js → chunk-C6PWVZQE.js} +2 -2
- package/dist/{chunk-P4MXGSSJ.js → chunk-CDTAKCJR.js} +3 -3
- package/dist/{chunk-2RL2T5JO.js → chunk-CH44XVPE.js} +4 -4
- package/dist/{chunk-RHNNFCRY.js → chunk-CJWLDKFO.js} +2 -2
- package/dist/{chunk-YCAJCVW4.js → chunk-DAMC4FKK.js} +7 -7
- package/dist/{chunk-D6VQPBVM.js → chunk-DWPOAU4Z.js} +5 -5
- package/dist/{chunk-6MXM6DA6.js → chunk-EENYLJUN.js} +2 -2
- package/dist/{chunk-IZROFBH7.js → chunk-EJBLF2LI.js} +3 -3
- package/dist/{chunk-DNH2ZPZP.js → chunk-EJMPKO6V.js} +2 -2
- package/dist/{chunk-RMZLB4AH.js → chunk-EKXLJRO3.js} +2 -2
- package/dist/{chunk-ZANXEMON.js → chunk-EL3TDR5S.js} +2 -2
- package/dist/{chunk-LFELUKCA.js → chunk-GRDZWZKQ.js} +3 -3
- package/dist/{chunk-S4NMWYHW.js → chunk-GVUBRSD3.js} +3 -3
- package/dist/{chunk-LVLTWPRR.js → chunk-GYREQDTJ.js} +2 -2
- package/dist/{chunk-J5UTL4HE.js → chunk-HBRXFQQV.js} +3 -3
- package/dist/{chunk-NE3OMP7R.js → chunk-HLHR3EK2.js} +2 -2
- package/dist/{chunk-RJQT7QXX.js → chunk-IMFIRELA.js} +5 -5
- package/dist/{chunk-SP3MHBME.js → chunk-IOKD77L2.js} +2 -2
- package/dist/{chunk-TGT4XHLX.js → chunk-KDAINT54.js} +2 -2
- package/dist/{chunk-QI5UKQX3.js → chunk-KKKZRQFY.js} +3 -3
- package/dist/{chunk-N5AIO23H.js → chunk-KOEXPN3G.js} +15 -15
- package/dist/{chunk-JBMZVC5D.js → chunk-KT5JVIPZ.js} +2 -2
- package/dist/{chunk-NZYWKZ3Q.js → chunk-LC6PVPJX.js} +2 -2
- package/dist/{chunk-DK66PUXL.js → chunk-LETR3RQE.js} +2 -2
- package/dist/{chunk-RCNAKWK7.js → chunk-MKLAZD23.js} +7 -2
- package/dist/{chunk-RCNAKWK7.js.map → chunk-MKLAZD23.js.map} +1 -1
- package/dist/{chunk-XB4NKZAQ.js → chunk-N3PASNUA.js} +2 -2
- package/dist/{chunk-SFQFUQDW.js → chunk-NL77JRKE.js} +4 -4
- package/dist/{chunk-OIORUNKH.js → chunk-OBQ5YUOZ.js} +10 -10
- package/dist/{chunk-42JTSTQ3.js → chunk-OTFHIGEO.js} +2 -2
- package/dist/{chunk-ESXUIV6V.js → chunk-PCUWBZM3.js} +2 -2
- package/dist/{chunk-OKXLOLEV.js → chunk-PNWXTOQ4.js} +2 -2
- package/dist/{chunk-PYAR343F.js → chunk-PQFTKHDA.js} +2 -2
- package/dist/{chunk-XXBP73RV.js → chunk-Q5DFEVLE.js} +2 -2
- package/dist/{chunk-NRIKX35V.js → chunk-QXCGWAC6.js} +4 -4
- package/dist/{chunk-CJFCQMUY.js → chunk-RKDMYL4A.js} +2 -2
- package/dist/{chunk-S6XZIBWV.js → chunk-SCBSAIVV.js} +2 -2
- package/dist/{chunk-3HLQZTQ3.js → chunk-SPBUE7R4.js} +4 -4
- package/dist/{chunk-IC4MREQH.js → chunk-TWFZIHKK.js} +2 -2
- package/dist/{chunk-73MLPGI2.js → chunk-U6G6ALXP.js} +4 -4
- package/dist/{chunk-WGJ2QEW4.js → chunk-UCJAPB5Y.js} +2 -2
- package/dist/{chunk-4PM32OS3.js → chunk-VFDWUIGR.js} +2 -2
- package/dist/{chunk-BRNZMKO4.js → chunk-WC3YSN7L.js} +5 -5
- package/dist/{chunk-FSEFZZ2T.js → chunk-WIOPEK7K.js} +8 -8
- package/dist/{chunk-5NLUTJCQ.js → chunk-X3GWGFZP.js} +2 -2
- package/dist/{chunk-4ULGRGBG.js → chunk-X6U3B6YK.js} +19 -9
- package/dist/{chunk-4ULGRGBG.js.map → chunk-X6U3B6YK.js.map} +1 -1
- package/dist/{chunk-Y4ZBNZBU.js → chunk-XYKODRQR.js} +5 -5
- package/dist/{chunk-6FWVRXDW.js → chunk-XZAVBONI.js} +2 -2
- package/dist/{chunk-Y3SK6EMU.js → chunk-Y5PNLB24.js} +2 -2
- package/dist/{claim-Q76T3MYA.js → claim-PGDIRXIC.js} +3 -3
- package/dist/cli.js +32 -32
- package/dist/{companies-MLWRWQ73.js → companies-WTPKGEB3.js} +3 -3
- package/dist/{company-X5Z67PMK.js → company-6H2H73YP.js} +3 -3
- package/dist/{complete-3CFP6XVY.js → complete-2QBC3POO.js} +3 -3
- package/dist/{connect-QXFAB4RJ.js → connect-35YPFAUL.js} +6 -6
- package/dist/{conversation-C6K6IZTH.js → conversation-YZFNEWDV.js} +3 -3
- package/dist/{conversion-upload-command-D7S5HF22.js → conversion-upload-command-J2FIO74Y.js} +7 -7
- package/dist/{conversions-4ILDIG3K.js → conversions-ZFDBD3OU.js} +8 -8
- package/dist/{copy-writes-FYXKHJDB.js → copy-writes-2B36QJUY.js} +8 -8
- package/dist/{create-LDQ3YHET.js → create-3H67EUTO.js} +3 -3
- package/dist/{create-WQNT345R.js → create-ALTOBDP4.js} +7 -7
- package/dist/{create-TKOG7DNJ.js → create-C3MWUYX2.js} +2 -2
- package/dist/{create-WFMJOZLO.js → create-WHTT6IXY.js} +3 -3
- package/dist/{creatives-45SJAD3G.js → creatives-22BYP5VN.js} +4 -4
- package/dist/{creatives-Q4OXNCTT.js → creatives-LTIV3XPT.js} +12 -12
- package/dist/{creatives-E4CTMZJJ.js → creatives-Y2WLGDJW.js} +9 -9
- package/dist/{credentials-E2AIMWKX.js → credentials-J5DMQJWN.js} +3 -3
- package/dist/{critique-JVT6X2T3.js → critique-RFTS2I46.js} +15 -15
- package/dist/{critique-EWV3O3TD.js → critique-X6XVPIUG.js} +8 -8
- package/dist/{crm-NQH5FTK6.js → crm-LWRGJYHW.js} +4 -4
- package/dist/{crm-YGQKK76D.js → crm-RUNEJY2R.js} +8 -8
- package/dist/{crop-KV24WHOR.js → crop-4V4P3SKI.js} +3 -3
- package/dist/{custom-conversions-EJNX4MCK.js → custom-conversions-V7QPZIB4.js} +4 -4
- package/dist/{customers-YFEPJF4G.js → customers-IDB6NLQ6.js} +9 -9
- package/dist/{delete-2UJVTHRE.js → delete-2QKVUKKB.js} +3 -3
- package/dist/{delete-O4RO2HMR.js → delete-B7BKF24X.js} +3 -3
- package/dist/{delete-7QAJSOCO.js → delete-HBRYUWAA.js} +2 -2
- package/dist/{demographics-YWBHAMZ5.js → demographics-JHB3NFLU.js} +3 -3
- package/dist/{dimensions-YXOXHOXW.js → dimensions-KI3OENZD.js} +3 -3
- package/dist/{discard-YX4XUXG3.js → discard-FEJ6YL22.js} +3 -3
- package/dist/{domain-5R6CYVFY.js → domain-JYWNXBKS.js} +3 -3
- package/dist/{download-SYWQXF57.js → download-H3ZDQTFG.js} +50 -12
- package/dist/download-H3ZDQTFG.js.map +1 -0
- package/dist/{download-D2O4RYJ3.js → download-LOBPOIU5.js} +2 -2
- package/dist/{draft-SGNQOUYH.js → draft-EB5ZFDVN.js} +7 -7
- package/dist/{draft-3MPADYS4.js → draft-I2FLECEX.js} +3 -3
- package/dist/{draft-L56EMJQT.js → draft-N56HPS36.js} +3 -3
- package/dist/{draft-NLSQDRVQ.js → draft-ZLZRTPY6.js} +9 -9
- package/dist/engine/index.js +5 -5
- package/dist/{experiments-DYNNWQRB.js → experiments-WVTBHD6G.js} +9 -9
- package/dist/{extract-DWDZI35Y.js → extract-UELZV3NI.js} +31 -10
- package/dist/extract-UELZV3NI.js.map +1 -0
- package/dist/{facets-Y2IEM37E.js → facets-V2ITIUKD.js} +3 -3
- package/dist/{feedback-IVSLM5PN.js → feedback-PXWPR3NZ.js} +3 -3
- package/dist/{feedback-HJRVTU6C.js → feedback-QSIPSNAL.js} +21 -21
- package/dist/{feedback-record-P7CO3IGE.js → feedback-record-DJHJWJAF.js} +22 -22
- package/dist/{fetch-V2U5VUQZ.js → fetch-QVOOC3FA.js} +3 -3
- package/dist/{fit-JDG6E46O.js → fit-REGMM46H.js} +10 -10
- package/dist/{flows-DP574PEX.js → flows-EZV3KCV6.js} +10 -10
- package/dist/{fonts-RMROS3LX.js → fonts-NUX66HEI.js} +10 -10
- package/dist/{forecast-BRXNGMGD.js → forecast-W6HKYVX5.js} +4 -4
- package/dist/{forecast-AAHHVTBK.js → forecast-XDRKCR65.js} +7 -7
- package/dist/{funnel-FQX3DOE7.js → funnel-3YABA3G2.js} +4 -4
- package/dist/{generate-SYOQE3F7.js → generate-22HT24SA.js} +4 -4
- package/dist/{get-HMTI2IR6.js → get-GQQLBE5C.js} +3 -3
- package/dist/{get-VFDNTZ54.js → get-NL3YZFUJ.js} +3 -3
- package/dist/{google-HWEDJ4YS.js → google-BPB5JLJG.js} +20 -2
- package/dist/google-BPB5JLJG.js.map +1 -0
- package/dist/{google-4FP6AHBL.js → google-UJ4YJGTJ.js} +15 -15
- package/dist/{google-ads-4DLYASRC.js → google-ads-RRKKSKDD.js} +3 -3
- package/dist/{history-6B6RXNV3.js → history-2UANIBRN.js} +3 -3
- package/dist/{history-NLZSX4BK.js → history-YZ727ZRG.js} +3 -3
- package/dist/{hubspot-LABBRJ44.js → hubspot-KWLXJ6QD.js} +7 -7
- package/dist/{ideas-A4ELJN23.js → ideas-ZO533P5Y.js} +10 -10
- package/dist/{images-JVNT7KYM.js → images-VUWUKGD6.js} +11 -11
- package/dist/{ingest-GQWR3RHR.js → ingest-C2HJ5LUY.js} +3 -3
- package/dist/{ingest-JYN2IDKV.js → ingest-H53JR4GK.js} +2 -2
- package/dist/{inspect-72DY33YD.js → inspect-BM6GJHQV.js} +6 -6
- package/dist/{instant-experiences-6NTBX4SL.js → instant-experiences-U6U3FYIH.js} +7 -7
- package/dist/{keyword-metrics-GP7L2MQE.js → keyword-metrics-R2QCEDYW.js} +3 -3
- package/dist/{keywords-for-site-6YWAUOKJ.js → keywords-for-site-NBV72C3W.js} +3 -3
- package/dist/{landing-EKHAZS5P.js → landing-L3WDTW4D.js} +2 -2
- package/dist/{leads-UCXIIA5K.js → leads-6PF7ZWCH.js} +3 -3
- package/dist/{leads-RN6RYOMU.js → leads-IG3IIHXG.js} +7 -7
- package/dist/{learn-EJEFERQZ.js → learn-V2LIBEEY.js} +9 -9
- package/dist/{line-item-writes-IMCE2FDW.js → line-item-writes-GMNWL4DI.js} +3 -3
- package/dist/{line-items-ISUC3WDO.js → line-items-KPIKXLG4.js} +5 -5
- package/dist/{link-6QL4ZVSU.js → link-X7IYKR5V.js} +3 -3
- package/dist/{linkedin-OFL77SUR.js → linkedin-RONIUYLJ.js} +34 -34
- package/dist/{linkedin-person-C24CBKCH.js → linkedin-person-47XFTBIN.js} +3 -3
- package/dist/{list-2VNI3U7I.js → list-PHNA7QIF.js} +2 -2
- package/dist/{list-SUXUMXPJ.js → list-QF3BANBM.js} +3 -3
- package/dist/{list-PZD2QOZL.js → list-SB3SUTH6.js} +3 -3
- package/dist/{log-VLI7KQF2.js → log-JFLSSUJ6.js} +3 -3
- package/dist/{make-365ZJ25L.js → make-ZIJQZD5K.js} +24 -24
- package/dist/{map-OEFL45WA.js → map-NYJT2MGI.js} +4 -4
- package/dist/{mcp-NCZYQXQL.js → mcp-ABQEICYR.js} +2 -2
- package/dist/{media-WASM45QW.js → media-AT3VV3PU.js} +3 -3
- package/dist/{media-sources-CZDK4W5Q.js → media-sources-L4BI7HFL.js} +2 -2
- package/dist/{members-N3PQSVQC.js → members-BX37KHKO.js} +3 -3
- package/dist/{meta-QFLNABF5.js → meta-2GJZPVKM.js} +29 -29
- package/dist/{normalize-4OKUF5BJ.js → normalize-M3VMWF4W.js} +3 -3
- package/dist/{normalize-6DEJPTBF.js → normalize-MA2FBBIV.js} +3 -3
- package/dist/{options-OJX77MYT.js → options-NMWWF2HN.js} +6 -6
- package/dist/{organization-URQGKFEC.js → organization-GRAA6ZXU.js} +3 -3
- package/dist/{page-photos-N4S7U7FR.js → page-photos-ABK4CJME.js} +7 -7
- package/dist/{performance-SIWBDORI.js → performance-MQLRSH44.js} +3 -3
- package/dist/{performance-P5T4LJRG.js → performance-RUBIGEAQ.js} +4 -4
- package/dist/{promoted-tweet-writes-S2HP5DEI.js → promoted-tweet-writes-3P6QFGLN.js} +3 -3
- package/dist/{promoted-tweets-WZT4N5IR.js → promoted-tweets-TGFPH7UI.js} +3 -3
- package/dist/{publish-EDYBQHGJ.js → publish-OUVO65Z5.js} +6 -6
- package/dist/{reddit-DEGGHR4M.js → reddit-HWQCUSEM.js} +4 -4
- package/dist/{refresh-HPNJGI2U.js → refresh-ENQDQGTK.js} +2 -2
- package/dist/{release-H7M37CEO.js → release-ZTVXLUQS.js} +3 -3
- package/dist/{remove-MV4YS72N.js → remove-XAFRT7O7.js} +2 -2
- package/dist/{reopen-EFW2SKOY.js → reopen-SWSZHXJZ.js} +3 -3
- package/dist/{rerun-OM4N74YK.js → rerun-MA2GB6WL.js} +25 -25
- package/dist/{research-7YDQOKA6.js → research-TDH4OBX6.js} +2 -2
- package/dist/{research-MHXKAQW4.js → research-WWJUNYSJ.js} +13 -13
- package/dist/{reset-HT4AGJPR.js → reset-34HTKUBQ.js} +2 -2
- package/dist/{reset-XPZQ5F4D.js → reset-KMMGLM7W.js} +2 -2
- package/dist/{resolve-RTTXEN2B.js → resolve-2CIIKADD.js} +3 -3
- package/dist/{retry-DVLVWHEK.js → retry-V7KZIZKR.js} +2 -2
- package/dist/{retry-SBGWOUQO.js → retry-YXM23NSB.js} +2 -2
- package/dist/{revenue-KJLJ53XY.js → revenue-D4L6U2CW.js} +9 -9
- package/dist/{rule-writes-DNXELESR.js → rule-writes-HUBHHYEO.js} +7 -7
- package/dist/{rules-KCSET46P.js → rules-47LFGCPW.js} +7 -7
- package/dist/{rules-NVKU732Z.js → rules-F6RNUOXP.js} +10 -10
- package/dist/{rules-add-KY42EHJE.js → rules-add-SAQRESVK.js} +10 -10
- package/dist/{run-2LQ7XJEO.js → run-FRPO2WNQ.js} +3 -3
- package/dist/{run-M7YU6KCV.js → run-HENSSAQW.js} +25 -25
- package/dist/{scaffold-ad-6YPZ75YJ.js → scaffold-ad-QQBCUYUO.js} +22 -22
- package/dist/{scaffold-static-ad-UJEWTDU5.js → scaffold-static-ad-WUOAQEXS.js} +30 -30
- package/dist/{scaffold-video-M4VWSVJ6.js → scaffold-video-KFQAKQUO.js} +20 -20
- package/dist/{schedule-J7HZQ2EL.js → schedule-S4XAVVEI.js} +2 -2
- package/dist/{scheduled-agents-IVUQUKF4.js → scheduled-agents-ZWAP6QLC.js} +11 -11
- package/dist/{schema-LHBKBUV7.js → schema-EJ2XPUN6.js} +4 -4
- package/dist/{search-3AW52FO6.js → search-2BAY3KKX.js} +2 -2
- package/dist/{select-STIWQ36I.js → select-K2SXPDDJ.js} +20 -20
- package/dist/{set-prompt-TODWV2F4.js → set-prompt-BZFOV3EB.js} +17 -17
- package/dist/{setup-links-MNBD3UMH.js → setup-links-QT63UZBR.js} +3 -3
- package/dist/{shopify-RJWLTNPQ.js → shopify-Q7TQIQ6N.js} +3 -3
- package/dist/{site-ZZUKS6MQ.js → site-S6QVMP7W.js} +4 -4
- package/dist/{sources-36MJ6T4V.js → sources-DTQ4NQAM.js} +6 -6
- package/dist/{sources-GNLQHTSJ.js → sources-ORG5KQSW.js} +6 -6
- package/dist/{stale-GJN7UO3D.js → stale-5O7BQVTN.js} +19 -19
- package/dist/{status-6EGB6ORB.js → status-4G2YUCZR.js} +3 -3
- package/dist/{stock-DJ6I3CTO.js → stock-5SQ2PGEC.js} +26 -2
- package/dist/stock-5SQ2PGEC.js.map +1 -0
- package/dist/{studies-4XXCEAHH.js → studies-QLSKON6M.js} +5 -5
- package/dist/{studio-OARORMDJ.js → studio-IDXFTGHP.js} +3 -3
- package/dist/{study-writes-J56UIIE3.js → study-writes-GBUUKX4O.js} +7 -7
- package/dist/{sync-QHM3LMAX.js → sync-7LJZPHM3.js} +2 -2
- package/dist/{sync-definition-YXGN6PIQ.js → sync-definition-Q3XUSEZJ.js} +20 -20
- package/dist/{tags-MQYF2JHQ.js → tags-2ARVNEYS.js} +3 -3
- package/dist/{tags-ZGXJHATH.js → tags-F4IT7RQR.js} +3 -3
- package/dist/{tags-MBBRBZJH.js → tags-F7ZO52EM.js} +3 -3
- package/dist/{tags-IDWUV2FY.js → tags-NBGGBHXR.js} +2 -2
- package/dist/{tags-GHV5R7NI.js → tags-TCSGQYDR.js} +4 -4
- package/dist/{targeting-KJ4DI56R.js → targeting-DAUTJDUB.js} +7 -7
- package/dist/{targeting-criteria-GDCXOAUD.js → targeting-criteria-H42LRULY.js} +3 -3
- package/dist/{targets-MYHOPAYY.js → targets-WB4E5XL2.js} +3 -3
- package/dist/{testimonials-R6RFGAKP.js → testimonials-KLF3Y4QO.js} +6 -6
- package/dist/{themes-LHVXXVTX.js → themes-BGBDYQQK.js} +7 -7
- package/dist/{top-companies-POTV3Y2A.js → top-companies-C2W5TJ7G.js} +3 -3
- package/dist/{transcript-4RVYKDVZ.js → transcript-S7VR2GJE.js} +3 -3
- package/dist/{translate-UCASCVMN.js → translate-CBITGC7C.js} +22 -22
- package/dist/{triggers-XHMMOZJK.js → triggers-EOKMR74O.js} +3 -3
- package/dist/{unlink-3IW3EORE.js → unlink-PC3TMWUT.js} +3 -3
- package/dist/{unstage-APVF6KHB.js → unstage-SU2ATDSZ.js} +3 -3
- package/dist/{update-V7SRDGHN.js → update-DKX3EEES.js} +3 -3
- package/dist/{update-2VSJH4LQ.js → update-JYZ45YJG.js} +3 -3
- package/dist/{update-ESK6PSME.js → update-TAZSUOAS.js} +2 -2
- package/dist/{update-42QYBUE3.js → update-WRJUH2NM.js} +3 -3
- package/dist/{upload-42IR5RIL.js → upload-BLXTMK5Q.js} +3 -3
- package/dist/{url-params-GEESXN57.js → url-params-YVOFU6MK.js} +3 -3
- package/dist/{validate-Z5SSEUES.js → validate-SAQEORZY.js} +21 -21
- package/dist/{videos-PJAPZPOT.js → videos-GOIDZVVD.js} +6 -6
- package/dist/{viewer-check-6M34VY7K.js → viewer-check-KTRRUVZN.js} +11 -11
- package/dist/{web-PUVVFMV3.js → web-6KUM7Q7S.js} +3 -3
- package/dist/{winning-ads-ZCP4MIEQ.js → winning-ads-LOMI72Q2.js} +3 -3
- package/dist/{write-commands-ZS4O4DSV.js → write-commands-3U5ZMIHH.js} +9 -9
- package/dist/{write-commands-5LEEPKA7.js → write-commands-F5XPPLOO.js} +9 -9
- package/dist/{x-ZKCLP23S.js → x-APVY4YHX.js} +6 -6
- package/package.json +1 -1
- package/dist/download-SYWQXF57.js.map +0 -1
- package/dist/extract-DWDZI35Y.js.map +0 -1
- package/dist/google-HWEDJ4YS.js.map +0 -1
- package/dist/stock-DJ6I3CTO.js.map +0 -1
- /package/dist/{account-XIC5TTV3.js.map → account-H5CL6KUY.js.map} +0 -0
- /package/dist/{account-assets-V7KSSTVP.js.map → account-assets-QMKT5AT7.js.map} +0 -0
- /package/dist/{account-level-2KLG6HTG.js.map → account-level-BELF6JHB.js.map} +0 -0
- /package/dist/{account-reads-ZPZUCB3P.js.map → account-reads-T6GTSAXE.js.map} +0 -0
- /package/dist/{account-users-XTUKRDWK.js.map → account-users-ZGJCVGX4.js.map} +0 -0
- /package/dist/{accounts-25JL77F7.js.map → accounts-EXQNPSYH.js.map} +0 -0
- /package/dist/{accounts-AF72N4NV.js.map → accounts-GNVLFZ3X.js.map} +0 -0
- /package/dist/{actions-IJO4JW7J.js.map → actions-Q2BMP27K.js.map} +0 -0
- /package/dist/{activecampaign-PBTUMTO5.js.map → activecampaign-SJO2YK6M.js.map} +0 -0
- /package/dist/{add-YQPFRDVM.js.map → add-Q3FGYX5Q.js.map} +0 -0
- /package/dist/{add-KHQXXHC5.js.map → add-YGQBSEVK.js.map} +0 -0
- /package/dist/{ads-5YCCRXEU.js.map → ads-7QKQEHKT.js.map} +0 -0
- /package/dist/{ads-EVQ37EV3.js.map → ads-H5AEYIY3.js.map} +0 -0
- /package/dist/{adsets-4IW5TRAK.js.map → adsets-BUIT7HF2.js.map} +0 -0
- /package/dist/{advertisers-JNOWSZZC.js.map → advertisers-ZAHXMIAT.js.map} +0 -0
- /package/dist/{analytics-CZMCM7XC.js.map → analytics-B6ER4TQ7.js.map} +0 -0
- /package/dist/{analytics-K5FCQLI5.js.map → analytics-QW5ZXDJR.js.map} +0 -0
- /package/dist/{animate-C6BRMRRD.js.map → animate-Q43SOWB4.js.map} +0 -0
- /package/dist/{asset-writes-RF6XTWLY.js.map → asset-writes-JVFE457M.js.map} +0 -0
- /package/dist/{assign-WXZNXVJH.js.map → assign-HJ2NXW4W.js.map} +0 -0
- /package/dist/{audience-size-ZCWH4CFC.js.map → audience-size-IM3N6W7C.js.map} +0 -0
- /package/dist/{audience-writes-5KT6FHUY.js.map → audience-writes-DWSCHYQF.js.map} +0 -0
- /package/dist/{audiences-ZDOK3OYC.js.map → audiences-PYBJU2GV.js.map} +0 -0
- /package/dist/{audit-RBRXPPKK.js.map → audit-N3LAQMD4.js.map} +0 -0
- /package/dist/{autocomplete-P5OU7QVL.js.map → autocomplete-FBTPT5MA.js.map} +0 -0
- /package/dist/{avatars-UHBA2BQ3.js.map → avatars-Y3DALQIU.js.map} +0 -0
- /package/dist/{bid-pricing-LHNYSDG4.js.map → bid-pricing-UUAC4GTQ.js.map} +0 -0
- /package/dist/{brand-7WL3O74X.js.map → brand-IZYD5SBJ.js.map} +0 -0
- /package/dist/{brief-HWZU75WP.js.map → brief-NA3E2W4P.js.map} +0 -0
- /package/dist/{campaign-groups-BYS3GNEP.js.map → campaign-groups-3IUOLEK2.js.map} +0 -0
- /package/dist/{campaign-writes-N6OHAK6V.js.map → campaign-writes-Y7QNFOE7.js.map} +0 -0
- /package/dist/{campaigns-3U5IRXSV.js.map → campaigns-2Z6WXIVA.js.map} +0 -0
- /package/dist/{campaigns-QLKGN4FB.js.map → campaigns-B2AUW4TV.js.map} +0 -0
- /package/dist/{campaigns-2E4AQBFB.js.map → campaigns-IDEA3LOK.js.map} +0 -0
- /package/dist/{canvas-GGHJ26ZM.js.map → canvas-WHFDCHUP.js.map} +0 -0
- /package/dist/{capabilities-TKEEHR7K.js.map → capabilities-FVMMLKPY.js.map} +0 -0
- /package/dist/{catalog-7KQN43HS.js.map → catalog-URTZYAPU.js.map} +0 -0
- /package/dist/{catalogs-5CHPI4H6.js.map → catalogs-OEUNVE4N.js.map} +0 -0
- /package/dist/{chats-PBXYH2LT.js.map → chats-EENMDXWZ.js.map} +0 -0
- /package/dist/{check-SVYI72DF.js.map → check-7735BPTR.js.map} +0 -0
- /package/dist/{chunk-5AOTCCTT.js.map → chunk-2QGGI7MF.js.map} +0 -0
- /package/dist/{chunk-4XMPL3RU.js.map → chunk-3HKZU3Y5.js.map} +0 -0
- /package/dist/{chunk-B5UVOCYA.js.map → chunk-3OMFSYQ3.js.map} +0 -0
- /package/dist/{chunk-LMOZWB4G.js.map → chunk-65CQYRMK.js.map} +0 -0
- /package/dist/{chunk-I4BQTVMY.js.map → chunk-6MZFOMLU.js.map} +0 -0
- /package/dist/{chunk-IBBGABK2.js.map → chunk-6PT22YSR.js.map} +0 -0
- /package/dist/{chunk-QFVZIQRQ.js.map → chunk-6WVYBY2G.js.map} +0 -0
- /package/dist/{chunk-VX6GTRT3.js.map → chunk-757ZFIL4.js.map} +0 -0
- /package/dist/{chunk-IJ6NQKAT.js.map → chunk-75HAGIH6.js.map} +0 -0
- /package/dist/{chunk-XSBX3LJP.js.map → chunk-7BVRFQN4.js.map} +0 -0
- /package/dist/{chunk-7OVPQX4X.js.map → chunk-7TDJCDKT.js.map} +0 -0
- /package/dist/{chunk-ZMTWQDFC.js.map → chunk-AL4MRNYI.js.map} +0 -0
- /package/dist/{chunk-NO52OH3Y.js.map → chunk-BMNOMOWP.js.map} +0 -0
- /package/dist/{chunk-4AEAL63J.js.map → chunk-BS2MC62Y.js.map} +0 -0
- /package/dist/{chunk-DWSSQBLO.js.map → chunk-C6PWVZQE.js.map} +0 -0
- /package/dist/{chunk-P4MXGSSJ.js.map → chunk-CDTAKCJR.js.map} +0 -0
- /package/dist/{chunk-2RL2T5JO.js.map → chunk-CH44XVPE.js.map} +0 -0
- /package/dist/{chunk-RHNNFCRY.js.map → chunk-CJWLDKFO.js.map} +0 -0
- /package/dist/{chunk-YCAJCVW4.js.map → chunk-DAMC4FKK.js.map} +0 -0
- /package/dist/{chunk-D6VQPBVM.js.map → chunk-DWPOAU4Z.js.map} +0 -0
- /package/dist/{chunk-6MXM6DA6.js.map → chunk-EENYLJUN.js.map} +0 -0
- /package/dist/{chunk-IZROFBH7.js.map → chunk-EJBLF2LI.js.map} +0 -0
- /package/dist/{chunk-DNH2ZPZP.js.map → chunk-EJMPKO6V.js.map} +0 -0
- /package/dist/{chunk-RMZLB4AH.js.map → chunk-EKXLJRO3.js.map} +0 -0
- /package/dist/{chunk-ZANXEMON.js.map → chunk-EL3TDR5S.js.map} +0 -0
- /package/dist/{chunk-LFELUKCA.js.map → chunk-GRDZWZKQ.js.map} +0 -0
- /package/dist/{chunk-S4NMWYHW.js.map → chunk-GVUBRSD3.js.map} +0 -0
- /package/dist/{chunk-LVLTWPRR.js.map → chunk-GYREQDTJ.js.map} +0 -0
- /package/dist/{chunk-J5UTL4HE.js.map → chunk-HBRXFQQV.js.map} +0 -0
- /package/dist/{chunk-NE3OMP7R.js.map → chunk-HLHR3EK2.js.map} +0 -0
- /package/dist/{chunk-RJQT7QXX.js.map → chunk-IMFIRELA.js.map} +0 -0
- /package/dist/{chunk-SP3MHBME.js.map → chunk-IOKD77L2.js.map} +0 -0
- /package/dist/{chunk-TGT4XHLX.js.map → chunk-KDAINT54.js.map} +0 -0
- /package/dist/{chunk-QI5UKQX3.js.map → chunk-KKKZRQFY.js.map} +0 -0
- /package/dist/{chunk-N5AIO23H.js.map → chunk-KOEXPN3G.js.map} +0 -0
- /package/dist/{chunk-JBMZVC5D.js.map → chunk-KT5JVIPZ.js.map} +0 -0
- /package/dist/{chunk-NZYWKZ3Q.js.map → chunk-LC6PVPJX.js.map} +0 -0
- /package/dist/{chunk-DK66PUXL.js.map → chunk-LETR3RQE.js.map} +0 -0
- /package/dist/{chunk-XB4NKZAQ.js.map → chunk-N3PASNUA.js.map} +0 -0
- /package/dist/{chunk-SFQFUQDW.js.map → chunk-NL77JRKE.js.map} +0 -0
- /package/dist/{chunk-OIORUNKH.js.map → chunk-OBQ5YUOZ.js.map} +0 -0
- /package/dist/{chunk-42JTSTQ3.js.map → chunk-OTFHIGEO.js.map} +0 -0
- /package/dist/{chunk-ESXUIV6V.js.map → chunk-PCUWBZM3.js.map} +0 -0
- /package/dist/{chunk-OKXLOLEV.js.map → chunk-PNWXTOQ4.js.map} +0 -0
- /package/dist/{chunk-PYAR343F.js.map → chunk-PQFTKHDA.js.map} +0 -0
- /package/dist/{chunk-XXBP73RV.js.map → chunk-Q5DFEVLE.js.map} +0 -0
- /package/dist/{chunk-NRIKX35V.js.map → chunk-QXCGWAC6.js.map} +0 -0
- /package/dist/{chunk-CJFCQMUY.js.map → chunk-RKDMYL4A.js.map} +0 -0
- /package/dist/{chunk-S6XZIBWV.js.map → chunk-SCBSAIVV.js.map} +0 -0
- /package/dist/{chunk-3HLQZTQ3.js.map → chunk-SPBUE7R4.js.map} +0 -0
- /package/dist/{chunk-IC4MREQH.js.map → chunk-TWFZIHKK.js.map} +0 -0
- /package/dist/{chunk-73MLPGI2.js.map → chunk-U6G6ALXP.js.map} +0 -0
- /package/dist/{chunk-WGJ2QEW4.js.map → chunk-UCJAPB5Y.js.map} +0 -0
- /package/dist/{chunk-4PM32OS3.js.map → chunk-VFDWUIGR.js.map} +0 -0
- /package/dist/{chunk-BRNZMKO4.js.map → chunk-WC3YSN7L.js.map} +0 -0
- /package/dist/{chunk-FSEFZZ2T.js.map → chunk-WIOPEK7K.js.map} +0 -0
- /package/dist/{chunk-5NLUTJCQ.js.map → chunk-X3GWGFZP.js.map} +0 -0
- /package/dist/{chunk-Y4ZBNZBU.js.map → chunk-XYKODRQR.js.map} +0 -0
- /package/dist/{chunk-6FWVRXDW.js.map → chunk-XZAVBONI.js.map} +0 -0
- /package/dist/{chunk-Y3SK6EMU.js.map → chunk-Y5PNLB24.js.map} +0 -0
- /package/dist/{claim-Q76T3MYA.js.map → claim-PGDIRXIC.js.map} +0 -0
- /package/dist/{companies-MLWRWQ73.js.map → companies-WTPKGEB3.js.map} +0 -0
- /package/dist/{company-X5Z67PMK.js.map → company-6H2H73YP.js.map} +0 -0
- /package/dist/{complete-3CFP6XVY.js.map → complete-2QBC3POO.js.map} +0 -0
- /package/dist/{connect-QXFAB4RJ.js.map → connect-35YPFAUL.js.map} +0 -0
- /package/dist/{conversation-C6K6IZTH.js.map → conversation-YZFNEWDV.js.map} +0 -0
- /package/dist/{conversion-upload-command-D7S5HF22.js.map → conversion-upload-command-J2FIO74Y.js.map} +0 -0
- /package/dist/{conversions-4ILDIG3K.js.map → conversions-ZFDBD3OU.js.map} +0 -0
- /package/dist/{copy-writes-FYXKHJDB.js.map → copy-writes-2B36QJUY.js.map} +0 -0
- /package/dist/{create-LDQ3YHET.js.map → create-3H67EUTO.js.map} +0 -0
- /package/dist/{create-WQNT345R.js.map → create-ALTOBDP4.js.map} +0 -0
- /package/dist/{create-TKOG7DNJ.js.map → create-C3MWUYX2.js.map} +0 -0
- /package/dist/{create-WFMJOZLO.js.map → create-WHTT6IXY.js.map} +0 -0
- /package/dist/{creatives-45SJAD3G.js.map → creatives-22BYP5VN.js.map} +0 -0
- /package/dist/{creatives-Q4OXNCTT.js.map → creatives-LTIV3XPT.js.map} +0 -0
- /package/dist/{creatives-E4CTMZJJ.js.map → creatives-Y2WLGDJW.js.map} +0 -0
- /package/dist/{credentials-E2AIMWKX.js.map → credentials-J5DMQJWN.js.map} +0 -0
- /package/dist/{critique-JVT6X2T3.js.map → critique-RFTS2I46.js.map} +0 -0
- /package/dist/{critique-EWV3O3TD.js.map → critique-X6XVPIUG.js.map} +0 -0
- /package/dist/{crm-NQH5FTK6.js.map → crm-LWRGJYHW.js.map} +0 -0
- /package/dist/{crm-YGQKK76D.js.map → crm-RUNEJY2R.js.map} +0 -0
- /package/dist/{crop-KV24WHOR.js.map → crop-4V4P3SKI.js.map} +0 -0
- /package/dist/{custom-conversions-EJNX4MCK.js.map → custom-conversions-V7QPZIB4.js.map} +0 -0
- /package/dist/{customers-YFEPJF4G.js.map → customers-IDB6NLQ6.js.map} +0 -0
- /package/dist/{delete-2UJVTHRE.js.map → delete-2QKVUKKB.js.map} +0 -0
- /package/dist/{delete-O4RO2HMR.js.map → delete-B7BKF24X.js.map} +0 -0
- /package/dist/{delete-7QAJSOCO.js.map → delete-HBRYUWAA.js.map} +0 -0
- /package/dist/{demographics-YWBHAMZ5.js.map → demographics-JHB3NFLU.js.map} +0 -0
- /package/dist/{dimensions-YXOXHOXW.js.map → dimensions-KI3OENZD.js.map} +0 -0
- /package/dist/{discard-YX4XUXG3.js.map → discard-FEJ6YL22.js.map} +0 -0
- /package/dist/{domain-5R6CYVFY.js.map → domain-JYWNXBKS.js.map} +0 -0
- /package/dist/{download-D2O4RYJ3.js.map → download-LOBPOIU5.js.map} +0 -0
- /package/dist/{draft-SGNQOUYH.js.map → draft-EB5ZFDVN.js.map} +0 -0
- /package/dist/{draft-3MPADYS4.js.map → draft-I2FLECEX.js.map} +0 -0
- /package/dist/{draft-L56EMJQT.js.map → draft-N56HPS36.js.map} +0 -0
- /package/dist/{draft-NLSQDRVQ.js.map → draft-ZLZRTPY6.js.map} +0 -0
- /package/dist/{experiments-DYNNWQRB.js.map → experiments-WVTBHD6G.js.map} +0 -0
- /package/dist/{facets-Y2IEM37E.js.map → facets-V2ITIUKD.js.map} +0 -0
- /package/dist/{feedback-IVSLM5PN.js.map → feedback-PXWPR3NZ.js.map} +0 -0
- /package/dist/{feedback-HJRVTU6C.js.map → feedback-QSIPSNAL.js.map} +0 -0
- /package/dist/{feedback-record-P7CO3IGE.js.map → feedback-record-DJHJWJAF.js.map} +0 -0
- /package/dist/{fetch-V2U5VUQZ.js.map → fetch-QVOOC3FA.js.map} +0 -0
- /package/dist/{fit-JDG6E46O.js.map → fit-REGMM46H.js.map} +0 -0
- /package/dist/{flows-DP574PEX.js.map → flows-EZV3KCV6.js.map} +0 -0
- /package/dist/{fonts-RMROS3LX.js.map → fonts-NUX66HEI.js.map} +0 -0
- /package/dist/{forecast-BRXNGMGD.js.map → forecast-W6HKYVX5.js.map} +0 -0
- /package/dist/{forecast-AAHHVTBK.js.map → forecast-XDRKCR65.js.map} +0 -0
- /package/dist/{funnel-FQX3DOE7.js.map → funnel-3YABA3G2.js.map} +0 -0
- /package/dist/{generate-SYOQE3F7.js.map → generate-22HT24SA.js.map} +0 -0
- /package/dist/{get-HMTI2IR6.js.map → get-GQQLBE5C.js.map} +0 -0
- /package/dist/{get-VFDNTZ54.js.map → get-NL3YZFUJ.js.map} +0 -0
- /package/dist/{google-4FP6AHBL.js.map → google-UJ4YJGTJ.js.map} +0 -0
- /package/dist/{google-ads-4DLYASRC.js.map → google-ads-RRKKSKDD.js.map} +0 -0
- /package/dist/{history-6B6RXNV3.js.map → history-2UANIBRN.js.map} +0 -0
- /package/dist/{history-NLZSX4BK.js.map → history-YZ727ZRG.js.map} +0 -0
- /package/dist/{hubspot-LABBRJ44.js.map → hubspot-KWLXJ6QD.js.map} +0 -0
- /package/dist/{ideas-A4ELJN23.js.map → ideas-ZO533P5Y.js.map} +0 -0
- /package/dist/{images-JVNT7KYM.js.map → images-VUWUKGD6.js.map} +0 -0
- /package/dist/{ingest-GQWR3RHR.js.map → ingest-C2HJ5LUY.js.map} +0 -0
- /package/dist/{ingest-JYN2IDKV.js.map → ingest-H53JR4GK.js.map} +0 -0
- /package/dist/{inspect-72DY33YD.js.map → inspect-BM6GJHQV.js.map} +0 -0
- /package/dist/{instant-experiences-6NTBX4SL.js.map → instant-experiences-U6U3FYIH.js.map} +0 -0
- /package/dist/{keyword-metrics-GP7L2MQE.js.map → keyword-metrics-R2QCEDYW.js.map} +0 -0
- /package/dist/{keywords-for-site-6YWAUOKJ.js.map → keywords-for-site-NBV72C3W.js.map} +0 -0
- /package/dist/{landing-EKHAZS5P.js.map → landing-L3WDTW4D.js.map} +0 -0
- /package/dist/{leads-UCXIIA5K.js.map → leads-6PF7ZWCH.js.map} +0 -0
- /package/dist/{leads-RN6RYOMU.js.map → leads-IG3IIHXG.js.map} +0 -0
- /package/dist/{learn-EJEFERQZ.js.map → learn-V2LIBEEY.js.map} +0 -0
- /package/dist/{line-item-writes-IMCE2FDW.js.map → line-item-writes-GMNWL4DI.js.map} +0 -0
- /package/dist/{line-items-ISUC3WDO.js.map → line-items-KPIKXLG4.js.map} +0 -0
- /package/dist/{link-6QL4ZVSU.js.map → link-X7IYKR5V.js.map} +0 -0
- /package/dist/{linkedin-OFL77SUR.js.map → linkedin-RONIUYLJ.js.map} +0 -0
- /package/dist/{linkedin-person-C24CBKCH.js.map → linkedin-person-47XFTBIN.js.map} +0 -0
- /package/dist/{list-2VNI3U7I.js.map → list-PHNA7QIF.js.map} +0 -0
- /package/dist/{list-SUXUMXPJ.js.map → list-QF3BANBM.js.map} +0 -0
- /package/dist/{list-PZD2QOZL.js.map → list-SB3SUTH6.js.map} +0 -0
- /package/dist/{log-VLI7KQF2.js.map → log-JFLSSUJ6.js.map} +0 -0
- /package/dist/{make-365ZJ25L.js.map → make-ZIJQZD5K.js.map} +0 -0
- /package/dist/{map-OEFL45WA.js.map → map-NYJT2MGI.js.map} +0 -0
- /package/dist/{mcp-NCZYQXQL.js.map → mcp-ABQEICYR.js.map} +0 -0
- /package/dist/{media-WASM45QW.js.map → media-AT3VV3PU.js.map} +0 -0
- /package/dist/{media-sources-CZDK4W5Q.js.map → media-sources-L4BI7HFL.js.map} +0 -0
- /package/dist/{members-N3PQSVQC.js.map → members-BX37KHKO.js.map} +0 -0
- /package/dist/{meta-QFLNABF5.js.map → meta-2GJZPVKM.js.map} +0 -0
- /package/dist/{normalize-4OKUF5BJ.js.map → normalize-M3VMWF4W.js.map} +0 -0
- /package/dist/{normalize-6DEJPTBF.js.map → normalize-MA2FBBIV.js.map} +0 -0
- /package/dist/{options-OJX77MYT.js.map → options-NMWWF2HN.js.map} +0 -0
- /package/dist/{organization-URQGKFEC.js.map → organization-GRAA6ZXU.js.map} +0 -0
- /package/dist/{page-photos-N4S7U7FR.js.map → page-photos-ABK4CJME.js.map} +0 -0
- /package/dist/{performance-SIWBDORI.js.map → performance-MQLRSH44.js.map} +0 -0
- /package/dist/{performance-P5T4LJRG.js.map → performance-RUBIGEAQ.js.map} +0 -0
- /package/dist/{promoted-tweet-writes-S2HP5DEI.js.map → promoted-tweet-writes-3P6QFGLN.js.map} +0 -0
- /package/dist/{promoted-tweets-WZT4N5IR.js.map → promoted-tweets-TGFPH7UI.js.map} +0 -0
- /package/dist/{publish-EDYBQHGJ.js.map → publish-OUVO65Z5.js.map} +0 -0
- /package/dist/{reddit-DEGGHR4M.js.map → reddit-HWQCUSEM.js.map} +0 -0
- /package/dist/{refresh-HPNJGI2U.js.map → refresh-ENQDQGTK.js.map} +0 -0
- /package/dist/{release-H7M37CEO.js.map → release-ZTVXLUQS.js.map} +0 -0
- /package/dist/{remove-MV4YS72N.js.map → remove-XAFRT7O7.js.map} +0 -0
- /package/dist/{reopen-EFW2SKOY.js.map → reopen-SWSZHXJZ.js.map} +0 -0
- /package/dist/{rerun-OM4N74YK.js.map → rerun-MA2GB6WL.js.map} +0 -0
- /package/dist/{research-7YDQOKA6.js.map → research-TDH4OBX6.js.map} +0 -0
- /package/dist/{research-MHXKAQW4.js.map → research-WWJUNYSJ.js.map} +0 -0
- /package/dist/{reset-HT4AGJPR.js.map → reset-34HTKUBQ.js.map} +0 -0
- /package/dist/{reset-XPZQ5F4D.js.map → reset-KMMGLM7W.js.map} +0 -0
- /package/dist/{resolve-RTTXEN2B.js.map → resolve-2CIIKADD.js.map} +0 -0
- /package/dist/{retry-DVLVWHEK.js.map → retry-V7KZIZKR.js.map} +0 -0
- /package/dist/{retry-SBGWOUQO.js.map → retry-YXM23NSB.js.map} +0 -0
- /package/dist/{revenue-KJLJ53XY.js.map → revenue-D4L6U2CW.js.map} +0 -0
- /package/dist/{rule-writes-DNXELESR.js.map → rule-writes-HUBHHYEO.js.map} +0 -0
- /package/dist/{rules-KCSET46P.js.map → rules-47LFGCPW.js.map} +0 -0
- /package/dist/{rules-NVKU732Z.js.map → rules-F6RNUOXP.js.map} +0 -0
- /package/dist/{rules-add-KY42EHJE.js.map → rules-add-SAQRESVK.js.map} +0 -0
- /package/dist/{run-2LQ7XJEO.js.map → run-FRPO2WNQ.js.map} +0 -0
- /package/dist/{run-M7YU6KCV.js.map → run-HENSSAQW.js.map} +0 -0
- /package/dist/{scaffold-ad-6YPZ75YJ.js.map → scaffold-ad-QQBCUYUO.js.map} +0 -0
- /package/dist/{scaffold-static-ad-UJEWTDU5.js.map → scaffold-static-ad-WUOAQEXS.js.map} +0 -0
- /package/dist/{scaffold-video-M4VWSVJ6.js.map → scaffold-video-KFQAKQUO.js.map} +0 -0
- /package/dist/{schedule-J7HZQ2EL.js.map → schedule-S4XAVVEI.js.map} +0 -0
- /package/dist/{scheduled-agents-IVUQUKF4.js.map → scheduled-agents-ZWAP6QLC.js.map} +0 -0
- /package/dist/{schema-LHBKBUV7.js.map → schema-EJ2XPUN6.js.map} +0 -0
- /package/dist/{search-3AW52FO6.js.map → search-2BAY3KKX.js.map} +0 -0
- /package/dist/{select-STIWQ36I.js.map → select-K2SXPDDJ.js.map} +0 -0
- /package/dist/{set-prompt-TODWV2F4.js.map → set-prompt-BZFOV3EB.js.map} +0 -0
- /package/dist/{setup-links-MNBD3UMH.js.map → setup-links-QT63UZBR.js.map} +0 -0
- /package/dist/{shopify-RJWLTNPQ.js.map → shopify-Q7TQIQ6N.js.map} +0 -0
- /package/dist/{site-ZZUKS6MQ.js.map → site-S6QVMP7W.js.map} +0 -0
- /package/dist/{sources-36MJ6T4V.js.map → sources-DTQ4NQAM.js.map} +0 -0
- /package/dist/{sources-GNLQHTSJ.js.map → sources-ORG5KQSW.js.map} +0 -0
- /package/dist/{stale-GJN7UO3D.js.map → stale-5O7BQVTN.js.map} +0 -0
- /package/dist/{status-6EGB6ORB.js.map → status-4G2YUCZR.js.map} +0 -0
- /package/dist/{studies-4XXCEAHH.js.map → studies-QLSKON6M.js.map} +0 -0
- /package/dist/{studio-OARORMDJ.js.map → studio-IDXFTGHP.js.map} +0 -0
- /package/dist/{study-writes-J56UIIE3.js.map → study-writes-GBUUKX4O.js.map} +0 -0
- /package/dist/{sync-QHM3LMAX.js.map → sync-7LJZPHM3.js.map} +0 -0
- /package/dist/{sync-definition-YXGN6PIQ.js.map → sync-definition-Q3XUSEZJ.js.map} +0 -0
- /package/dist/{tags-MQYF2JHQ.js.map → tags-2ARVNEYS.js.map} +0 -0
- /package/dist/{tags-ZGXJHATH.js.map → tags-F4IT7RQR.js.map} +0 -0
- /package/dist/{tags-MBBRBZJH.js.map → tags-F7ZO52EM.js.map} +0 -0
- /package/dist/{tags-IDWUV2FY.js.map → tags-NBGGBHXR.js.map} +0 -0
- /package/dist/{tags-GHV5R7NI.js.map → tags-TCSGQYDR.js.map} +0 -0
- /package/dist/{targeting-KJ4DI56R.js.map → targeting-DAUTJDUB.js.map} +0 -0
- /package/dist/{targeting-criteria-GDCXOAUD.js.map → targeting-criteria-H42LRULY.js.map} +0 -0
- /package/dist/{targets-MYHOPAYY.js.map → targets-WB4E5XL2.js.map} +0 -0
- /package/dist/{testimonials-R6RFGAKP.js.map → testimonials-KLF3Y4QO.js.map} +0 -0
- /package/dist/{themes-LHVXXVTX.js.map → themes-BGBDYQQK.js.map} +0 -0
- /package/dist/{top-companies-POTV3Y2A.js.map → top-companies-C2W5TJ7G.js.map} +0 -0
- /package/dist/{transcript-4RVYKDVZ.js.map → transcript-S7VR2GJE.js.map} +0 -0
- /package/dist/{translate-UCASCVMN.js.map → translate-CBITGC7C.js.map} +0 -0
- /package/dist/{triggers-XHMMOZJK.js.map → triggers-EOKMR74O.js.map} +0 -0
- /package/dist/{unlink-3IW3EORE.js.map → unlink-PC3TMWUT.js.map} +0 -0
- /package/dist/{unstage-APVF6KHB.js.map → unstage-SU2ATDSZ.js.map} +0 -0
- /package/dist/{update-V7SRDGHN.js.map → update-DKX3EEES.js.map} +0 -0
- /package/dist/{update-2VSJH4LQ.js.map → update-JYZ45YJG.js.map} +0 -0
- /package/dist/{update-ESK6PSME.js.map → update-TAZSUOAS.js.map} +0 -0
- /package/dist/{update-42QYBUE3.js.map → update-WRJUH2NM.js.map} +0 -0
- /package/dist/{upload-42IR5RIL.js.map → upload-BLXTMK5Q.js.map} +0 -0
- /package/dist/{url-params-GEESXN57.js.map → url-params-YVOFU6MK.js.map} +0 -0
- /package/dist/{validate-Z5SSEUES.js.map → validate-SAQEORZY.js.map} +0 -0
- /package/dist/{videos-PJAPZPOT.js.map → videos-GOIDZVVD.js.map} +0 -0
- /package/dist/{viewer-check-6M34VY7K.js.map → viewer-check-KTRRUVZN.js.map} +0 -0
- /package/dist/{web-PUVVFMV3.js.map → web-6KUM7Q7S.js.map} +0 -0
- /package/dist/{winning-ads-ZCP4MIEQ.js.map → winning-ads-LOMI72Q2.js.map} +0 -0
- /package/dist/{write-commands-ZS4O4DSV.js.map → write-commands-3U5ZMIHH.js.map} +0 -0
- /package/dist/{write-commands-5LEEPKA7.js.map → write-commands-F5XPPLOO.js.map} +0 -0
- /package/dist/{x-ZKCLP23S.js.map → x-APVY4YHX.js.map} +0 -0
|
@@ -2,11 +2,14 @@ import {
|
|
|
2
2
|
atomicWrite,
|
|
3
3
|
isDirectory,
|
|
4
4
|
isRemoteUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LC6PVPJX.js";
|
|
6
6
|
import {
|
|
7
|
+
ExternalFetchError,
|
|
7
8
|
MAX_REMOTE_IMAGE_BYTES,
|
|
9
|
+
NO_ANSWER_MESSAGE,
|
|
10
|
+
OversizeFetchError,
|
|
8
11
|
fetchExternalBytes
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X6U3B6YK.js";
|
|
10
13
|
import {
|
|
11
14
|
ApiError,
|
|
12
15
|
apiGet,
|
|
@@ -21,6 +24,8 @@ import {
|
|
|
21
24
|
import "./chunk-YQSBHWOI.js";
|
|
22
25
|
|
|
23
26
|
// src/commands/images/download.ts
|
|
27
|
+
import { mkdir } from "fs/promises";
|
|
28
|
+
import { dirname } from "path";
|
|
24
29
|
import { defineCommand } from "citty";
|
|
25
30
|
|
|
26
31
|
// src/commands/images/downloadPaths.ts
|
|
@@ -121,7 +126,7 @@ registerSchema({
|
|
|
121
126
|
},
|
|
122
127
|
out: {
|
|
123
128
|
type: "string",
|
|
124
|
-
description: "Output directory (
|
|
129
|
+
description: "Output directory (created if missing; end it with `/`) or, with a single target, an exact file path. Default: the working directory.",
|
|
125
130
|
required: false
|
|
126
131
|
}
|
|
127
132
|
}
|
|
@@ -175,10 +180,35 @@ async function fetchBytes(url) {
|
|
|
175
180
|
}
|
|
176
181
|
var NEXT_STEP_HINT = "Downloaded files are local paths \u2014 the local transforms take them directly: `baker images normalize <file> --color '#FFFFFF' --height 40`, `baker images crop <file> --x \u2026 --y \u2026 --width \u2026 --height \u2026`, `baker images dimensions <file>`. For a landing, page-scoped images belong in `src/pages/{landing}/_images/`.";
|
|
177
182
|
var PARTIAL_FAILURE_HINT = "Some targets did not download. Carry on with the ones that did \u2014 a missing asset never blocks the rest of the job. Retry a failed URL only if it was a transient 5xx; a 403 means the host will not serve these bytes to anyone but a browser, so re-source it (`baker images extract <page>`) instead.";
|
|
178
|
-
var
|
|
179
|
-
|
|
180
|
-
|
|
183
|
+
var CAUSE_ADVICE = {
|
|
184
|
+
write: () => "Writing the file failed on this machine (the error names the path) \u2014 point `--out` at a writable folder and re-run; the host is not the problem.",
|
|
185
|
+
too_large: (failed) => `${failed.find((f) => f.cause === "too_large")?.error ?? "A file is over the download limit."} Pick a smaller version of that asset (another hit, a smaller size) rather than retrying it.`,
|
|
186
|
+
library: () => "For a library image, check the id and that the row is `ready` with `baker images get <id>`.",
|
|
187
|
+
refused: () => "A 403/404 (or another refusal: a security check, an address not on the public web) means these bytes will not be served \u2014 re-source the asset (`baker images extract <page-url>`, `baker images stock <query>`).",
|
|
188
|
+
unavailable: () => "The host failed on its side or did not answer (a 5xx or a timeout) \u2014 retry that URL once; if it fails again, re-source the asset (`baker images extract <page-url>`, `baker images stock <query>`)."
|
|
181
189
|
};
|
|
190
|
+
function fetchFailureCause(err, target) {
|
|
191
|
+
if (err instanceof OversizeFetchError) return "too_large";
|
|
192
|
+
if (err instanceof ApiError || target.kind === "imageId") return "library";
|
|
193
|
+
return err instanceof ExternalFetchError && isTransient(err) ? "unavailable" : "refused";
|
|
194
|
+
}
|
|
195
|
+
function isTransient(err) {
|
|
196
|
+
if (err.status !== null) return err.status >= 500;
|
|
197
|
+
return err.ourFault || err.message === NO_ANSWER_MESSAGE;
|
|
198
|
+
}
|
|
199
|
+
function allFailedAction(causes) {
|
|
200
|
+
if (causes.every((cause) => cause === "write")) return "retry_with_changes";
|
|
201
|
+
if (causes.every((cause) => cause === "unavailable")) return "retry_once";
|
|
202
|
+
return "use_different_resource";
|
|
203
|
+
}
|
|
204
|
+
function allFailedFix(failed) {
|
|
205
|
+
const causes = [...new Set(failed.map((f) => f.cause))];
|
|
206
|
+
const advice = causes.map((cause) => CAUSE_ADVICE[cause](failed)).join(" ");
|
|
207
|
+
return {
|
|
208
|
+
action: allFailedAction(causes),
|
|
209
|
+
explanation: `None of the targets could be downloaded. ${advice} Do not retry the same URLs in a loop, and do not fall back to \`curl\` \u2014 continue the job with a placeholder if nothing can be fetched.`
|
|
210
|
+
};
|
|
211
|
+
}
|
|
182
212
|
async function outIsDirectory(out) {
|
|
183
213
|
if (!out) return false;
|
|
184
214
|
return out.endsWith("/") || await isDirectory(out);
|
|
@@ -193,7 +223,7 @@ async function buildPlan(args) {
|
|
|
193
223
|
const outIsDir = await outIsDirectory(out);
|
|
194
224
|
if (out && !outIsDir && targets.length > 1) {
|
|
195
225
|
throw new ValidationError(
|
|
196
|
-
`--out must be
|
|
226
|
+
`--out must be a directory when downloading more than one image (got "${out}"); end it with \`/\` to have it created.`
|
|
197
227
|
);
|
|
198
228
|
}
|
|
199
229
|
return { targets, out, outIsDir };
|
|
@@ -220,7 +250,11 @@ async function runDownloads(plan) {
|
|
|
220
250
|
})
|
|
221
251
|
});
|
|
222
252
|
} catch (err) {
|
|
223
|
-
failed.push({
|
|
253
|
+
failed.push({
|
|
254
|
+
input: target.raw,
|
|
255
|
+
error: failureMessage(err, "Download failed"),
|
|
256
|
+
cause: fetchFailureCause(err, target)
|
|
257
|
+
});
|
|
224
258
|
}
|
|
225
259
|
}
|
|
226
260
|
const paths = disambiguate(fetched.map((item) => item.path));
|
|
@@ -228,10 +262,11 @@ async function runDownloads(plan) {
|
|
|
228
262
|
for (const [index, item] of fetched.entries()) {
|
|
229
263
|
const path = paths[index] ?? item.path;
|
|
230
264
|
try {
|
|
265
|
+
await mkdir(dirname(path), { recursive: true });
|
|
231
266
|
await atomicWrite(path, item.buffer);
|
|
232
267
|
downloaded.push({ input: item.input, output: path, bytes: item.buffer.length, contentType: item.contentType });
|
|
233
268
|
} catch (err) {
|
|
234
|
-
failed.push({ input: item.input, error: failureMessage(err, "Write failed") });
|
|
269
|
+
failed.push({ input: item.input, error: failureMessage(err, "Write failed"), cause: "write" });
|
|
235
270
|
}
|
|
236
271
|
}
|
|
237
272
|
return { downloaded, failed };
|
|
@@ -269,7 +304,10 @@ var downloadCommand = defineCommand({
|
|
|
269
304
|
},
|
|
270
305
|
args: {
|
|
271
306
|
targets: { type: "positional", description: "Image URLs and/or library image ids", required: false },
|
|
272
|
-
out: {
|
|
307
|
+
out: {
|
|
308
|
+
type: "string",
|
|
309
|
+
description: "Output directory (created if missing; end it with /), or exact file path for a single target"
|
|
310
|
+
}
|
|
273
311
|
},
|
|
274
312
|
run: async ({ args }) => {
|
|
275
313
|
try {
|
|
@@ -281,7 +319,7 @@ var downloadCommand = defineCommand({
|
|
|
281
319
|
error: {
|
|
282
320
|
code: "DOWNLOAD_FAILED",
|
|
283
321
|
message: `None of the ${plan.targets.length} target(s) could be downloaded: ${failed.map((f) => `${f.input} (${f.error})`).join("; ")}`,
|
|
284
|
-
fix:
|
|
322
|
+
fix: allFailedFix(failed)
|
|
285
323
|
}
|
|
286
324
|
});
|
|
287
325
|
process.exit(1);
|
|
@@ -296,4 +334,4 @@ var downloadCommand = defineCommand({
|
|
|
296
334
|
export {
|
|
297
335
|
downloadCommand
|
|
298
336
|
};
|
|
299
|
-
//# sourceMappingURL=download-
|
|
337
|
+
//# sourceMappingURL=download-H3ZDQTFG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/images/download.ts","../src/commands/images/downloadPaths.ts"],"sourcesContent":["import { mkdir } from \"node:fs/promises\";\nimport { dirname } from \"node:path\";\nimport type { ImagesGetResponse } from \"@baker/api\";\nimport { defineCommand } from \"citty\";\nimport { ApiError, apiGet, validateConvexId } from \"../../client.ts\";\nimport {\n ExternalFetchError,\n fetchExternalBytes,\n MAX_REMOTE_IMAGE_BYTES,\n NO_ANSWER_MESSAGE,\n OversizeFetchError,\n} from \"../../lib/externalFetch.ts\";\nimport { atomicWrite, isDirectory, isRemoteUrl } from \"../../lib/image/io.ts\";\nimport { writeJson } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport {\n baseNameFromUrl,\n deriveExtension,\n disambiguate,\n resolveDownloadPath,\n sanitizeBaseName,\n} from \"./downloadPaths.ts\";\n\n/**\n * Remote asset → local file.\n *\n * The docs have always described the pipeline as `source → download → normalize\n * → place` and told the agent \"local files only — download remote assets\n * first\", while no download command existed: `normalize` refuses URLs and takes\n * no library ids, and the only URL→disk writer was `crop`, which demands\n * rectangle coordinates. Agents filled the hole with `curl`, hand-assembling\n * media URLs out of JSON responses.\n *\n * Local-only by design, like `normalize` / `crop` / `dimensions` — the bytes go\n * to the sandbox, not through the backend. Library ids resolve through the\n * existing `GET /api/images/get` route, so no new backend surface is needed.\n */\n\nregisterSchema({\n command: \"images.download\",\n description:\n \"Download remote images or library images to local files, so the local transforms (normalize, crop, dimensions) can read them.\",\n args: {\n targets: {\n type: \"string\",\n description:\n \"One or more image URLs and/or library image ids, space- or comma-separated (e.g. 'https://…/logo.webp j57abc123').\",\n required: true,\n },\n out: {\n type: \"string\",\n description:\n \"Output directory (created if missing; end it with `/`) or, with a single target, an exact file path. Default: the working directory.\",\n required: false,\n },\n },\n});\n\ninterface Target {\n raw: string;\n kind: \"url\" | \"imageId\";\n}\n\ninterface Downloaded {\n input: string;\n output: string;\n bytes: number;\n contentType: string | null;\n}\n\n/**\n * Why a target failed, which decides what the agent should do about it:\n * `refused` is anything that will answer the same way again (a 403/404 or other\n * refusing status, a security check, an address off the public web),\n * `unavailable` a host that failed on its side or never answered (a 5xx, a\n * timeout, a dead route).\n */\ntype FailureCause = \"write\" | \"too_large\" | \"library\" | \"refused\" | \"unavailable\";\n\ninterface FailedDownload {\n input: string;\n error: string;\n cause: FailureCause;\n}\n\nclass ValidationError extends Error {}\n\n/** A target that is neither a URL nor a library id — usually a local path,\n * which needs no download at all. */\nclass UnusableTargetError extends Error {\n constructor(readonly target: string) {\n super(`\"${target}\" is neither an image URL nor a library image id.`);\n }\n}\n\n/** Every positional, each of which may itself be a comma-separated list. */\nfunction readTargets(args: Record<string, unknown>): string[] {\n const positionals = Array.isArray(args._) ? args._ : [];\n const named = typeof args.targets === \"string\" ? [args.targets] : [];\n const all = positionals.length > 0 ? positionals : named;\n const seen = new Set<string>();\n const out: string[] = [];\n for (const value of all) {\n if (typeof value !== \"string\") continue;\n for (const part of value.split(\",\").map((p) => p.trim())) {\n if (part.length > 0 && !seen.has(part)) {\n seen.add(part);\n out.push(part);\n }\n }\n }\n return out;\n}\n\n/** A target is a URL or a library id — nothing else resolves to bytes. */\nfunction classify(raw: string): Target {\n if (isRemoteUrl(raw)) {\n return { raw, kind: \"url\" };\n }\n try {\n validateConvexId(raw);\n } catch {\n throw new UnusableTargetError(raw);\n }\n return { raw, kind: \"imageId\" };\n}\n\ninterface Resolved {\n input: string;\n url: string;\n baseName: string;\n}\n\n/** Turn a target into a fetchable URL plus the stem to name its file after. */\nasync function resolveTarget(target: Target): Promise<Resolved> {\n if (target.kind === \"url\") {\n return { input: target.raw, url: target.raw, baseName: baseNameFromUrl(target.raw) };\n }\n const doc = await apiGet<ImagesGetResponse>(\"/api/images/get\", { id: target.raw });\n // The library row's own name is what the agent searched for; fall back to the\n // id so a nameless row still writes a file it can find again.\n const stem = sanitizeBaseName(doc.name.length > 0 ? doc.name : target.raw);\n return { input: target.raw, url: doc.imageUrl, baseName: stem };\n}\n\nasync function fetchBytes(url: string): Promise<{ buffer: Buffer; contentType: string | null }> {\n // These URLs come straight from agent argv, so the ceiling is not a formality:\n // nothing upstream has looked at where they point or how big they are.\n return await fetchExternalBytes(url, { maxBytes: MAX_REMOTE_IMAGE_BYTES });\n}\n\nconst NEXT_STEP_HINT =\n \"Downloaded files are local paths — the local transforms take them directly: `baker images normalize <file> --color '#FFFFFF' --height 40`, `baker images crop <file> --x … --y … --width … --height …`, `baker images dimensions <file>`. For a landing, page-scoped images belong in `src/pages/{landing}/_images/`.\";\n\n// These two used to explain a 403 as \"the host refuses datacenter IPs, so\n// re-source it\". That was an accurate diagnosis and is now a stale instruction:\n// a refusal is retried from a different exit before this command ever reports\n// one, so a 403 that survives to here has already been answered from more than\n// one address and will not yield to another attempt. The advice is unchanged —\n// move on — but the reason is now \"this host will not serve us\", not \"try\n// somewhere our address is welcome\". Neither string may mention how that was\n// established; the agent has no proxy to reason about and no decision to make\n// about one.\nconst PARTIAL_FAILURE_HINT =\n \"Some targets did not download. Carry on with the ones that did — a missing asset never blocks the rest of the job. Retry a failed URL only if it was a transient 5xx; a 403 means the host will not serve these bytes to anyone but a browser, so re-source it (`baker images extract <page>`) instead.\";\n\n/** One sentence per cause: a local write error or a size cap is not a host refusing. */\nconst CAUSE_ADVICE: Record<FailureCause, (failed: FailedDownload[]) => string> = {\n write: () =>\n \"Writing the file failed on this machine (the error names the path) — point `--out` at a writable folder and re-run; the host is not the problem.\",\n too_large: (failed) =>\n `${failed.find((f) => f.cause === \"too_large\")?.error ?? \"A file is over the download limit.\"} Pick a smaller version of that asset (another hit, a smaller size) rather than retrying it.`,\n library: () => \"For a library image, check the id and that the row is `ready` with `baker images get <id>`.\",\n refused: () =>\n \"A 403/404 (or another refusal: a security check, an address not on the public web) means these bytes will not be served — re-source the asset (`baker images extract <page-url>`, `baker images stock <query>`).\",\n unavailable: () =>\n \"The host failed on its side or did not answer (a 5xx or a timeout) — retry that URL once; if it fails again, re-source the asset (`baker images extract <page-url>`, `baker images stock <query>`).\",\n};\n\n/** A library id is the row's problem whatever its file fetch said; a URL is the host's. */\nfunction fetchFailureCause(err: unknown, target: Target): FailureCause {\n if (err instanceof OversizeFetchError) return \"too_large\";\n if (err instanceof ApiError || target.kind === \"imageId\") return \"library\";\n return err instanceof ExternalFetchError && isTransient(err) ? \"unavailable\" : \"refused\";\n}\n\n/**\n * Only a 5xx, a host that did not answer, or a route we could not open is worth\n * a retry. Everything else — a 403/404/401/410/429, a security check, an address\n * that is not on the public web — answers the same way next time.\n */\nfunction isTransient(err: ExternalFetchError): boolean {\n if (err.status !== null) return err.status >= 500;\n return err.ourFault || err.message === NO_ANSWER_MESSAGE;\n}\n\nfunction allFailedAction(causes: FailureCause[]): string {\n if (causes.every((cause) => cause === \"write\")) return \"retry_with_changes\";\n if (causes.every((cause) => cause === \"unavailable\")) return \"retry_once\";\n return \"use_different_resource\";\n}\n\n/** The fix for a download where nothing landed, built from why each target failed. */\nfunction allFailedFix(failed: FailedDownload[]): { action: string; explanation: string } {\n const causes = [...new Set(failed.map((f) => f.cause))];\n const advice = causes.map((cause) => CAUSE_ADVICE[cause](failed)).join(\" \");\n return {\n action: allFailedAction(causes),\n explanation: `None of the targets could be downloaded. ${advice} Do not retry the same URLs in a loop, and do not fall back to \\`curl\\` — continue the job with a placeholder if nothing can be fetched.`,\n };\n}\n\n/** Resolve `--out` once: an existing directory, or a trailing slash meaning one. */\nasync function outIsDirectory(out: string | undefined): Promise<boolean> {\n if (!out) return false;\n return out.endsWith(\"/\") || (await isDirectory(out));\n}\n\ninterface DownloadPlan {\n targets: Target[];\n out: string | undefined;\n outIsDir: boolean;\n}\n\nasync function buildPlan(args: Record<string, unknown>): Promise<DownloadPlan> {\n const raw = readTargets(args);\n if (raw.length === 0) {\n throw new ValidationError(\"At least one image URL or library image id is required.\");\n }\n const targets = raw.map(classify);\n const out = typeof args.out === \"string\" && args.out.length > 0 ? args.out : undefined;\n const outIsDir = await outIsDirectory(out);\n if (out && !outIsDir && targets.length > 1) {\n throw new ValidationError(\n `--out must be a directory when downloading more than one image (got \"${out}\"); end it with \\`/\\` to have it created.`,\n );\n }\n return { targets, out, outIsDir };\n}\n\ninterface FetchedTarget {\n input: string;\n buffer: Buffer;\n contentType: string | null;\n path: string;\n}\n\nfunction failureMessage(err: unknown, fallback: string): string {\n return err instanceof Error ? err.message : fallback;\n}\n\n/**\n * Fetch every target, keeping going past a failure: one unreachable host must\n * not cost the agent the other five assets. Paths are resolved for the whole\n * batch before any write, so collisions can be renamed rather than overwritten.\n */\nasync function runDownloads(plan: DownloadPlan): Promise<{ downloaded: Downloaded[]; failed: FailedDownload[] }> {\n const failed: FailedDownload[] = [];\n const fetched: FetchedTarget[] = [];\n\n for (const target of plan.targets) {\n try {\n const resolved = await resolveTarget(target);\n const { buffer, contentType } = await fetchBytes(resolved.url);\n fetched.push({\n input: resolved.input,\n buffer,\n contentType,\n path: resolveDownloadPath({\n baseName: resolved.baseName,\n extension: deriveExtension(contentType, resolved.url),\n out: plan.out,\n outIsDirectory: plan.outIsDir,\n }),\n });\n } catch (err) {\n failed.push({\n input: target.raw,\n error: failureMessage(err, \"Download failed\"),\n cause: fetchFailureCause(err, target),\n });\n }\n }\n\n const paths = disambiguate(fetched.map((item) => item.path));\n const downloaded: Downloaded[] = [];\n for (const [index, item] of fetched.entries()) {\n const path = paths[index] ?? item.path;\n try {\n await mkdir(dirname(path), { recursive: true });\n await atomicWrite(path, item.buffer);\n downloaded.push({ input: item.input, output: path, bytes: item.buffer.length, contentType: item.contentType });\n } catch (err) {\n failed.push({ input: item.input, error: failureMessage(err, \"Write failed\"), cause: \"write\" });\n }\n }\n return { downloaded, failed };\n}\n\nfunction emitError(err: unknown): never {\n if (err instanceof UnusableTargetError) {\n writeJson({\n ok: false,\n error: {\n code: \"VALIDATION_ERROR\",\n message: err.message,\n fix: {\n action: \"retry_with_changes\",\n explanation:\n \"`download` takes remote image URLs (https://…) and library image ids. A path that is already on disk needs no download — pass it straight to `baker images normalize` / `crop` / `dimensions`. To get a library id, run `baker images library <query>` and read `_id`.\",\n },\n },\n });\n process.exit(1);\n }\n if (err instanceof ValidationError) {\n writeJson({ ok: false, error: { code: \"VALIDATION_ERROR\", message: err.message } });\n process.exit(1);\n }\n if (err instanceof ApiError) {\n writeJson({ ok: false, error: { code: err.code, message: err.message } });\n process.exit(1);\n }\n writeJson({ ok: false, error: { code: \"INTERNAL_ERROR\", message: \"Unexpected error\" } });\n process.exit(1);\n}\n\nexport const downloadCommand = defineCommand({\n meta: {\n name: \"download\",\n description:\n \"Download image URLs and/or library images to local files — the missing first half of `source → download → normalize → place`. Never use `curl` for this.\\n\\nExamples:\\n baker images download https://media.withbaker.com/…/logo.webp\\n baker images download j57abc123 j57def456 --out src/pages/pricing/_images/\\n baker images download https://…/hero.png --out ./hero.png\",\n },\n args: {\n targets: { type: \"positional\", description: \"Image URLs and/or library image ids\", required: false },\n out: {\n type: \"string\",\n description: \"Output directory (created if missing; end it with /), or exact file path for a single target\",\n },\n },\n run: async ({ args }) => {\n try {\n const plan = await buildPlan(args as Record<string, unknown>);\n const { downloaded, failed } = await runDownloads(plan);\n\n if (downloaded.length === 0) {\n writeJson({\n ok: false,\n error: {\n code: \"DOWNLOAD_FAILED\",\n message: `None of the ${plan.targets.length} target(s) could be downloaded: ${failed\n .map((f) => `${f.input} (${f.error})`)\n .join(\"; \")}`,\n fix: allFailedFix(failed),\n },\n });\n process.exit(1);\n }\n\n const hints = [NEXT_STEP_HINT, ...(failed.length > 0 ? [PARTIAL_FAILURE_HINT] : [])];\n writeJson({ ok: true, data: { downloaded, failed }, hints });\n } catch (err) {\n emitError(err);\n }\n },\n});\n","/**\n * Where a downloaded asset lands, and what it is called.\n *\n * Split out from the command so the naming rules are testable without a\n * network or a filesystem — the part that decides whether `normalize` can read\n * the file back is the extension, and deriving it from the URL alone is how\n * a `.png` URL serving webp bytes ends up misnamed.\n */\n\nimport { basename, extname, join } from \"node:path\";\n\nconst CONTENT_TYPE_EXTENSIONS: Record<string, string> = {\n \"image/webp\": \".webp\",\n \"image/png\": \".png\",\n \"image/jpeg\": \".jpg\",\n \"image/jpg\": \".jpg\",\n \"image/gif\": \".gif\",\n \"image/svg+xml\": \".svg\",\n \"image/avif\": \".avif\",\n \"image/bmp\": \".bmp\",\n \"image/tiff\": \".tiff\",\n \"image/x-icon\": \".ico\",\n \"image/vnd.microsoft.icon\": \".ico\",\n};\n\nconst KNOWN_EXTENSIONS = new Set([\".webp\", \".png\", \".jpg\", \".jpeg\", \".gif\", \".svg\", \".avif\", \".bmp\", \".tiff\", \".ico\"]);\n\n/** The path portion of a URL, with the host and query removed. A bare host must\n * not leak into a filename — `https://media.withbaker.com/` names no file. */\nfunction urlPath(sourceUrl: string): string {\n try {\n return new URL(sourceUrl).pathname;\n } catch {\n return sourceUrl.split(/[?#]/)[0] ?? \"\";\n }\n}\n\n/** The URL's own path extension, when it names an image format we recognise. */\nfunction extensionFromUrl(sourceUrl: string): string | null {\n const ext = extname(urlPath(sourceUrl)).toLowerCase();\n return KNOWN_EXTENSIONS.has(ext) ? ext : null;\n}\n\n/**\n * The extension to write under. The served `Content-Type` wins: Baker's media\n * host routinely serves webp from a `.png` URL, and a file named for the URL\n * would then lie to every local tool that reads it back.\n */\nexport function deriveExtension(contentType: string | null | undefined, sourceUrl: string): string {\n const normalized = (contentType ?? \"\").split(\";\")[0]?.trim().toLowerCase() ?? \"\";\n const fromType = CONTENT_TYPE_EXTENSIONS[normalized];\n if (fromType) {\n return fromType;\n }\n return extensionFromUrl(sourceUrl) ?? \".bin\";\n}\n\n/**\n * A stem long enough and featureless enough to be a CDN hash rather than a name.\n *\n * Pixabay serves every file under one — an 80-character token with no word\n * breaks — so a downloaded illustration landed in a client's `_images/` as\n * `g030ff139944c078854d52b34eb635c9f5...png`, and that name then goes in the\n * page's `src` and into their repo. Pexels' `pexels-photo-11982694` has word\n * breaks and is left alone.\n */\nfunction looksLikeCdnHash(stem: string): boolean {\n return stem.length >= 32 && !/[-_.]/.test(stem);\n}\n\n/** The site a URL belongs to, as a short word usable in a filename. */\nfunction hostLabel(sourceUrl: string): string | null {\n try {\n const host = new URL(sourceUrl).hostname.replace(/^www\\./, \"\");\n const label = host.split(\".\").filter((part) => part !== \"cdn\" && part !== \"images\")[0];\n return label && /^[a-z0-9-]+$/.test(label) ? label : null;\n } catch {\n return null;\n }\n}\n\n/** A filesystem-safe stem, with no extension. */\nexport function sanitizeBaseName(raw: string): string {\n const stem = raw\n .trim()\n .toLowerCase()\n .replace(/\\.[a-z0-9]{1,5}$/i, \"\")\n .replace(/[^a-z0-9._-]+/g, \"-\")\n .replace(/^[-.]+|[-.]+$/g, \"\")\n .slice(0, 80);\n return stem.length > 0 ? stem : \"image\";\n}\n\n/**\n * The stem for a remote URL: its last path segment, or `image`. A segment that\n * is only a CDN hash is replaced by the site it came from plus a short prefix of\n * the hash, which stays unique between two files from the same site while being\n * readable in a page's markup.\n */\nexport function baseNameFromUrl(sourceUrl: string): string {\n const stem = sanitizeBaseName(basename(urlPath(sourceUrl)));\n if (looksLikeCdnHash(stem)) {\n const label = hostLabel(sourceUrl);\n if (label) return `${label}-${stem.slice(0, 8)}`;\n }\n return stem;\n}\n\ninterface DownloadPathInput {\n baseName: string;\n extension: string;\n /** `--out`, as given. */\n out?: string;\n /** Whether `--out` resolved to an existing directory (or is written as one). */\n outIsDirectory: boolean;\n}\n\n/**\n * `--out` naming a directory keeps the derived filename; `--out` naming a file\n * is taken literally, extension included — the caller asked for that path.\n */\nexport function resolveDownloadPath({ baseName, extension, out, outIsDirectory }: DownloadPathInput): string {\n const filename = `${baseName}${extension}`;\n if (!out) {\n return filename;\n }\n if (outIsDirectory) {\n return join(out, filename);\n }\n return out;\n}\n\n/**\n * Make a batch of resolved paths collision-free.\n *\n * Two hits from different hosts routinely end in the same segment (`/a/logo.png`\n * and `/b/logo.png`), and writing both would leave one file where the agent\n * asked for two — silently, since each write succeeds.\n *\n * The names this mints are claimed too, which is the whole difference between\n * this and a per-name counter. `[\"logo.png\", \"logo.png\", \"logo-2.png\"]` used to\n * produce `logo-2.png` twice: the third entry was its own first sighting, so it\n * passed through untouched and collided with the name invented for the second.\n * That reproduced the exact failure the function exists to prevent, one step\n * further along.\n */\nexport function disambiguate(paths: string[]): string[] {\n const taken = new Set<string>();\n return paths.map((path) => {\n if (!taken.has(path)) {\n taken.add(path);\n return path;\n }\n const ext = extname(path);\n const stem = path.slice(0, path.length - ext.length);\n // Step until free rather than trusting a count: the candidate can collide\n // with a name that arrived on its own, not only with an earlier duplicate.\n let n = 2;\n while (taken.has(`${stem}-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gB,GAAI,OAAO,SAAS,IAAI,CAAC,oBAAoB,IAAI,CAAC,CAAE;AACnF,gBAAU,EAAE,IAAI,MAAM,MAAM,EAAE,YAAY,OAAO,GAAG,MAAM,CAAC;AAAA,IAC7D,SAAS,KAAK;AACZ,gBAAU,GAAG;AAAA,IACf;AAAA,EACF;AACF,CAAC;","names":["outIsDirectory"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
videosDownloadResponseSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MKLAZD23.js";
|
|
4
4
|
import "./chunk-QV6AST5T.js";
|
|
5
5
|
import "./chunk-WCU362Z6.js";
|
|
6
6
|
import "./chunk-GIWHHCD6.js";
|
|
@@ -169,4 +169,4 @@ export {
|
|
|
169
169
|
downloadLibraryVideo,
|
|
170
170
|
saveVideoFile
|
|
171
171
|
};
|
|
172
|
-
//# sourceMappingURL=download-
|
|
172
|
+
//# sourceMappingURL=download-LOBPOIU5.js.map
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
loadPatchArg,
|
|
12
12
|
requireTarget,
|
|
13
13
|
stageGoogleOps
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AL4MRNYI.js";
|
|
15
15
|
import "./chunk-ERSX3MKH.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-CDTAKCJR.js";
|
|
17
17
|
import "./chunk-4NZ47VXO.js";
|
|
18
18
|
import "./chunk-D5FY4FAK.js";
|
|
19
19
|
import "./chunk-4H6XLX7E.js";
|
|
@@ -22,12 +22,12 @@ import "./chunk-SNWFM2DB.js";
|
|
|
22
22
|
import {
|
|
23
23
|
writeJsonEnvelope
|
|
24
24
|
} from "./chunk-QYH2UZAK.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-Y5PNLB24.js";
|
|
26
|
+
import "./chunk-N3PASNUA.js";
|
|
27
27
|
import "./chunk-E56V3RFO.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-EL3TDR5S.js";
|
|
29
29
|
import "./chunk-G6U45QD3.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-X6U3B6YK.js";
|
|
31
31
|
import {
|
|
32
32
|
CHAT_READ_ARG,
|
|
33
33
|
DRAFT_FULL_ARG
|
|
@@ -554,4 +554,4 @@ export {
|
|
|
554
554
|
draftCommand,
|
|
555
555
|
importHints
|
|
556
556
|
};
|
|
557
|
-
//# sourceMappingURL=draft-
|
|
557
|
+
//# sourceMappingURL=draft-EB5ZFDVN.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
failApi,
|
|
6
6
|
failValidation,
|
|
7
7
|
isTempId
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BS2MC62Y.js";
|
|
9
9
|
import {
|
|
10
10
|
REMOVABLE_DRAFT_OP_KINDS
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MKLAZD23.js";
|
|
12
12
|
import "./chunk-QV6AST5T.js";
|
|
13
13
|
import "./chunk-WCU362Z6.js";
|
|
14
14
|
import "./chunk-GIWHHCD6.js";
|
|
@@ -217,4 +217,4 @@ export {
|
|
|
217
217
|
draftCommand,
|
|
218
218
|
draftOpNormalizer
|
|
219
219
|
};
|
|
220
|
-
//# sourceMappingURL=draft-
|
|
220
|
+
//# sourceMappingURL=draft-I2FLECEX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
failWriteValidation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PCUWBZM3.js";
|
|
4
4
|
import {
|
|
5
5
|
parseXApiError
|
|
6
6
|
} from "./chunk-FIN4ZXGJ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
CHAT_READ_ARG,
|
|
19
19
|
DRAFT_FULL_ARG
|
|
20
20
|
} from "./chunk-X32MFGWW.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-MKLAZD23.js";
|
|
22
22
|
import "./chunk-QV6AST5T.js";
|
|
23
23
|
import "./chunk-WCU362Z6.js";
|
|
24
24
|
import "./chunk-GIWHHCD6.js";
|
|
@@ -371,4 +371,4 @@ Examples:
|
|
|
371
371
|
export {
|
|
372
372
|
draftCommand
|
|
373
373
|
};
|
|
374
|
-
//# sourceMappingURL=draft-
|
|
374
|
+
//# sourceMappingURL=draft-N56HPS36.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPatchArg,
|
|
3
3
|
requireTarget
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QXCGWAC6.js";
|
|
5
5
|
import {
|
|
6
6
|
handleLinkedinError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OTFHIGEO.js";
|
|
8
8
|
import {
|
|
9
9
|
amendDraftRefs,
|
|
10
10
|
draftRefs,
|
|
11
11
|
removeDraftRefs
|
|
12
12
|
} from "./chunk-DSDI5DY3.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-CDTAKCJR.js";
|
|
14
14
|
import "./chunk-4NZ47VXO.js";
|
|
15
15
|
import {
|
|
16
16
|
hintLines
|
|
@@ -19,17 +19,17 @@ import "./chunk-4H6XLX7E.js";
|
|
|
19
19
|
import {
|
|
20
20
|
writeJsonEnvelope
|
|
21
21
|
} from "./chunk-QYH2UZAK.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-Y5PNLB24.js";
|
|
23
|
+
import "./chunk-N3PASNUA.js";
|
|
24
24
|
import "./chunk-E56V3RFO.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-EL3TDR5S.js";
|
|
26
26
|
import "./chunk-G6U45QD3.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-X6U3B6YK.js";
|
|
28
28
|
import {
|
|
29
29
|
CHAT_READ_ARG,
|
|
30
30
|
DRAFT_FULL_ARG
|
|
31
31
|
} from "./chunk-X32MFGWW.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-MKLAZD23.js";
|
|
33
33
|
import "./chunk-QV6AST5T.js";
|
|
34
34
|
import "./chunk-WCU362Z6.js";
|
|
35
35
|
import "./chunk-GIWHHCD6.js";
|
|
@@ -329,4 +329,4 @@ var linkedinDraftCommand = defineCommand({
|
|
|
329
329
|
export {
|
|
330
330
|
linkedinDraftCommand
|
|
331
331
|
};
|
|
332
|
-
//# sourceMappingURL=draft-
|
|
332
|
+
//# sourceMappingURL=draft-ZLZRTPY6.js.map
|
package/dist/engine/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
defaultRegistry,
|
|
9
9
|
generateCatalog,
|
|
10
10
|
validateCanvasDeep
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-DWPOAU4Z.js";
|
|
12
|
+
import "../chunk-HBRXFQQV.js";
|
|
13
|
+
import "../chunk-X3GWGFZP.js";
|
|
14
14
|
import "../chunk-GWLP45WQ.js";
|
|
15
15
|
import "../chunk-DGCUPJZD.js";
|
|
16
16
|
import "../chunk-6QINKM6T.js";
|
|
@@ -20,9 +20,9 @@ import "../chunk-MCJ5I5LR.js";
|
|
|
20
20
|
import "../chunk-2WZI36D3.js";
|
|
21
21
|
import "../chunk-65Y3RCWP.js";
|
|
22
22
|
import "../chunk-E56V3RFO.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-EL3TDR5S.js";
|
|
24
24
|
import "../chunk-G6U45QD3.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-X6U3B6YK.js";
|
|
26
26
|
import "../chunk-JXTNP3B5.js";
|
|
27
27
|
import "../chunk-45D6WRCJ.js";
|
|
28
28
|
import "../chunk-CCYZJMZ7.js";
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
parseDateFlag,
|
|
5
5
|
requireTarget,
|
|
6
6
|
stageOp
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QXCGWAC6.js";
|
|
8
8
|
import {
|
|
9
9
|
handleLinkedinError
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-OTFHIGEO.js";
|
|
11
|
+
import "./chunk-CDTAKCJR.js";
|
|
12
12
|
import "./chunk-4NZ47VXO.js";
|
|
13
13
|
import "./chunk-D5FY4FAK.js";
|
|
14
14
|
import "./chunk-4H6XLX7E.js";
|
|
15
15
|
import {
|
|
16
16
|
writeJsonEnvelope
|
|
17
17
|
} from "./chunk-QYH2UZAK.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-Y5PNLB24.js";
|
|
19
|
+
import "./chunk-N3PASNUA.js";
|
|
20
20
|
import "./chunk-E56V3RFO.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-EL3TDR5S.js";
|
|
22
22
|
import "./chunk-G6U45QD3.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-X6U3B6YK.js";
|
|
24
|
+
import "./chunk-MKLAZD23.js";
|
|
25
25
|
import "./chunk-QV6AST5T.js";
|
|
26
26
|
import "./chunk-WCU362Z6.js";
|
|
27
27
|
import "./chunk-GIWHHCD6.js";
|
|
@@ -233,4 +233,4 @@ Examples:
|
|
|
233
233
|
export {
|
|
234
234
|
experimentsCommand
|
|
235
235
|
};
|
|
236
|
-
//# sourceMappingURL=experiments-
|
|
236
|
+
//# sourceMappingURL=experiments-WVTBHD6G.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseRequestFlags
|
|
3
|
+
} from "./chunk-4N3Y5QWW.js";
|
|
1
4
|
import {
|
|
2
5
|
AUTO_INGEST_MAX,
|
|
3
6
|
parseAutoIngest
|
|
@@ -6,6 +9,17 @@ import {
|
|
|
6
9
|
OUTPUT_ARGS,
|
|
7
10
|
writeProviderHits
|
|
8
11
|
} from "./chunk-IAZKXDWV.js";
|
|
12
|
+
import {
|
|
13
|
+
IMAGES_EXTRACT_LIMIT_MAX,
|
|
14
|
+
imagesExtractRequestSchema
|
|
15
|
+
} from "./chunk-MKLAZD23.js";
|
|
16
|
+
import "./chunk-QV6AST5T.js";
|
|
17
|
+
import "./chunk-WCU362Z6.js";
|
|
18
|
+
import "./chunk-GIWHHCD6.js";
|
|
19
|
+
import "./chunk-SOPVIIUW.js";
|
|
20
|
+
import "./chunk-G4FG5EQO.js";
|
|
21
|
+
import "./chunk-R7XDGNZD.js";
|
|
22
|
+
import "./chunk-MSMTG6OC.js";
|
|
9
23
|
import {
|
|
10
24
|
ApiError,
|
|
11
25
|
apiPost
|
|
@@ -23,17 +37,14 @@ import { defineCommand } from "citty";
|
|
|
23
37
|
|
|
24
38
|
// src/commands/images/extractErrors.ts
|
|
25
39
|
var RETRYABLE = /* @__PURE__ */ new Set(["UNAVAILABLE", "RATE_LIMITED", "TIMEOUT", "NETWORK_ERROR"]);
|
|
40
|
+
var PAGE_FAILURES = /* @__PURE__ */ new Set(["VALIDATION_ERROR", "INTERNAL_ERROR"]);
|
|
26
41
|
function extractErrorEnvelope(err, url) {
|
|
27
42
|
const retryable = RETRYABLE.has(err.code);
|
|
28
43
|
const fallback = `use \`baker images screenshot ${url}\` to capture the page as one image, or \`baker images logo <domain>\` for the brand's mark, and carry on with the rest of the job.`;
|
|
44
|
+
const fix = retryable ? { action: "retry_once", explanation: `Run the same command once more. If it fails again, ${fallback}` } : PAGE_FAILURES.has(err.code) ? { action: "use_fallback", explanation: `Retrying the same address will fail the same way \u2014 ${fallback}` } : err.fix;
|
|
29
45
|
return {
|
|
30
46
|
ok: false,
|
|
31
|
-
error: {
|
|
32
|
-
code: err.code,
|
|
33
|
-
message: err.message,
|
|
34
|
-
retryable,
|
|
35
|
-
fix: retryable ? { action: "retry_once", explanation: `Run the same command once more. If it fails again, ${fallback}` } : { action: "use_fallback", explanation: `Retrying the same address will fail the same way \u2014 ${fallback}` }
|
|
36
|
-
}
|
|
47
|
+
error: { code: err.code, message: err.message, retryable, ...fix ? { fix } : {} }
|
|
37
48
|
};
|
|
38
49
|
}
|
|
39
50
|
|
|
@@ -44,7 +55,12 @@ registerSchema({
|
|
|
44
55
|
args: {
|
|
45
56
|
url: { type: "string", description: "URL to scrape", required: true },
|
|
46
57
|
"wait-for": { type: "number", description: "JS render wait ms", required: false },
|
|
47
|
-
limit: {
|
|
58
|
+
limit: {
|
|
59
|
+
type: "number",
|
|
60
|
+
description: `Most images to return (1-${IMAGES_EXTRACT_LIMIT_MAX}, default ${IMAGES_EXTRACT_LIMIT_MAX})`,
|
|
61
|
+
required: false,
|
|
62
|
+
default: IMAGES_EXTRACT_LIMIT_MAX
|
|
63
|
+
},
|
|
48
64
|
"auto-ingest": {
|
|
49
65
|
type: "number",
|
|
50
66
|
description: `Auto-ingest top N (0-${AUTO_INGEST_MAX.extract}, default 0)`,
|
|
@@ -69,7 +85,7 @@ var extractCommand = defineCommand({
|
|
|
69
85
|
args: {
|
|
70
86
|
url: { type: "positional", description: "URL to scrape", required: false },
|
|
71
87
|
"wait-for": { type: "string", description: "JS render wait ms", required: false },
|
|
72
|
-
limit: { type: "string", description:
|
|
88
|
+
limit: { type: "string", description: `Most images to return (1-${IMAGES_EXTRACT_LIMIT_MAX})`, required: false },
|
|
73
89
|
"auto-ingest": { type: "string", description: `Auto-ingest top N (0-${AUTO_INGEST_MAX.extract})`, required: false },
|
|
74
90
|
context: { type: "string", description: "Description context hint applied to auto-ingested hits", required: false },
|
|
75
91
|
...OUTPUT_ARGS
|
|
@@ -103,7 +119,12 @@ var extractCommand = defineCommand({
|
|
|
103
119
|
body.autoIngest = parsed.value;
|
|
104
120
|
}
|
|
105
121
|
if (args.context) body.descriptionContext = args.context;
|
|
106
|
-
const
|
|
122
|
+
const request = parseRequestFlags(imagesExtractRequestSchema, body, { limit: "--limit", waitFor: "--wait-for" });
|
|
123
|
+
if (!request.ok) {
|
|
124
|
+
writeJson(request.envelope);
|
|
125
|
+
process.exit(1);
|
|
126
|
+
}
|
|
127
|
+
const data = await apiPost("/api/images/extract", request.data);
|
|
107
128
|
writeProviderHits(data, data.hits, args, []);
|
|
108
129
|
} catch (err) {
|
|
109
130
|
if (err instanceof ApiError) {
|
|
@@ -118,4 +139,4 @@ var extractCommand = defineCommand({
|
|
|
118
139
|
export {
|
|
119
140
|
extractCommand
|
|
120
141
|
};
|
|
121
|
-
//# sourceMappingURL=extract-
|
|
142
|
+
//# sourceMappingURL=extract-UELZV3NI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/images/extract.ts","../src/commands/images/extractErrors.ts"],"sourcesContent":["import {\n IMAGES_EXTRACT_LIMIT_MAX,\n type ImagesExtractRequest,\n type ImagesExtractResponse,\n imagesExtractRequestSchema,\n} from \"@baker/api\";\nimport { defineCommand } from \"citty\";\nimport { ApiError, apiPost } from \"../../client.ts\";\nimport { writeJson } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport { AUTO_INGEST_MAX, parseAutoIngest } from \"./autoIngest.ts\";\nimport { extractErrorEnvelope } from \"./extractErrors.ts\";\nimport { OUTPUT_ARGS, writeProviderHits } from \"./providerHits.ts\";\nimport { parseRequestFlags } from \"./requestFlags.ts\";\n\nregisterSchema({\n command: \"images.extract\",\n description: \"Extract images from a URL via Firecrawl (formats: images).\",\n args: {\n url: { type: \"string\", description: \"URL to scrape\", required: true },\n \"wait-for\": { type: \"number\", description: \"JS render wait ms\", required: false },\n limit: {\n type: \"number\",\n description: `Most images to return (1-${IMAGES_EXTRACT_LIMIT_MAX}, default ${IMAGES_EXTRACT_LIMIT_MAX})`,\n required: false,\n default: IMAGES_EXTRACT_LIMIT_MAX,\n },\n \"auto-ingest\": {\n type: \"number\",\n description: `Auto-ingest top N (0-${AUTO_INGEST_MAX.extract}, default 0)`,\n required: false,\n default: 0,\n },\n context: {\n type: \"string\",\n description: \"Free-text hint applied to every auto-ingested hit (overrides provider-derived context)\",\n required: false,\n },\n output: { type: \"string\", description: \"Output format: json|files|md\", required: false, default: \"json\" },\n fields: { type: \"string\", description: \"Comma-separated field names to include\", required: false },\n full: { type: \"boolean\", description: \"Include full metadata\", required: false, default: false },\n },\n});\n\nexport const extractCommand = defineCommand({\n meta: {\n name: \"extract\",\n description:\n \"Pull every image from a single URL via Firecrawl. ~$0.001/scrape. Cap auto-ingest at 20.\\n\\nExample: baker images extract https://stripe.com --auto-ingest 5\",\n },\n args: {\n url: { type: \"positional\", description: \"URL to scrape\", required: false },\n \"wait-for\": { type: \"string\", description: \"JS render wait ms\", required: false },\n limit: { type: \"string\", description: `Most images to return (1-${IMAGES_EXTRACT_LIMIT_MAX})`, required: false },\n \"auto-ingest\": { type: \"string\", description: `Auto-ingest top N (0-${AUTO_INGEST_MAX.extract})`, required: false },\n context: { type: \"string\", description: \"Description context hint applied to auto-ingested hits\", required: false },\n ...OUTPUT_ARGS,\n },\n run: async ({ args }) => {\n try {\n const url = args.url as string | undefined;\n if (!url) {\n writeJson({ ok: false, error: { code: \"VALIDATION_ERROR\", message: \"URL is required\" } });\n process.exit(1);\n }\n const body: ImagesExtractRequest = { url };\n if (args[\"wait-for\"]) body.waitFor = Number(args[\"wait-for\"]);\n if (args.limit) body.limit = Number(args.limit);\n if (args[\"auto-ingest\"] !== undefined) {\n const parsed = parseAutoIngest(args[\"auto-ingest\"], AUTO_INGEST_MAX.extract);\n if (!parsed.ok) {\n writeJson({\n ok: false,\n error: {\n code: \"VALIDATION_ERROR\",\n message: parsed.message,\n fix: {\n action: \"retry_with_changes\",\n explanation: `Re-run with --auto-ingest in 0-${AUTO_INGEST_MAX.extract}.`,\n },\n },\n });\n process.exit(1);\n }\n body.autoIngest = parsed.value;\n }\n if (args.context) body.descriptionContext = args.context as string;\n\n const request = parseRequestFlags(imagesExtractRequestSchema, body, { limit: \"--limit\", waitFor: \"--wait-for\" });\n if (!request.ok) {\n writeJson(request.envelope);\n process.exit(1);\n }\n const data = await apiPost<ImagesExtractResponse>(\"/api/images/extract\", request.data);\n writeProviderHits(data, data.hits, args as Record<string, unknown>, []);\n } catch (err) {\n if (err instanceof ApiError) {\n writeJson(extractErrorEnvelope(err, String(args.url)));\n process.exit(1);\n }\n writeJson({ ok: false, error: { code: \"INTERNAL_ERROR\", message: \"Unexpected error\" } });\n process.exit(1);\n }\n },\n});\n","import type { ApiError } from \"../../client.ts\";\n\n/** Failures a second attempt can change: the reader or the connection had a bad moment. */\nconst RETRYABLE = new Set([\"UNAVAILABLE\", \"RATE_LIMITED\", \"TIMEOUT\", \"NETWORK_ERROR\"]);\n\n/**\n * Failures that are about the page, so another address or another capture of it\n * is the way on. Once the request has passed `parseRequestFlags`, a 400 can only\n * be the page refusing or being unreadable, and an internal error our own reader\n * account. Anything else — a refused key, a missing permission — is not about the\n * page, and a screenshot of it would be refused the same way.\n */\nconst PAGE_FAILURES = new Set([\"VALIDATION_ERROR\", \"INTERNAL_ERROR\"]);\n\ninterface ExtractErrorEnvelope {\n ok: false;\n error: {\n code: string;\n message: string;\n retryable: boolean;\n fix?: { action: string; explanation: string };\n };\n}\n\n/**\n * The envelope for a failed `baker images extract`. Without `retryable` an\n * agent cannot tell a reader that hiccupped from a page nobody can read, and it\n * abandons the page for an image search. Either way the job carries on: the\n * page can still be captured whole, and the brand's mark fetched on its own.\n */\nexport function extractErrorEnvelope(err: ApiError, url: string): ExtractErrorEnvelope {\n const retryable = RETRYABLE.has(err.code);\n const fallback = `use \\`baker images screenshot ${url}\\` to capture the page as one image, or \\`baker images logo <domain>\\` for the brand's mark, and carry on with the rest of the job.`;\n const fix = retryable\n ? { action: \"retry_once\", explanation: `Run the same command once more. If it fails again, ${fallback}` }\n : PAGE_FAILURES.has(err.code)\n ? { action: \"use_fallback\", explanation: `Retrying the same address will fail the same way — ${fallback}` }\n : err.fix;\n return {\n ok: false,\n error: { code: err.code, message: err.message, retryable, ...(fix ? { fix } : {}) },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,SAAS,qBAAqB;;;ACH9B,IAAM,YAAY,oBAAI,IAAI,CAAC,eAAe,gBAAgB,WAAW,eAAe,CAAC;AASrF,IAAM,gBAAgB,oBAAI,IAAI,CAAC,oBAAoB,gBAAgB,CAAC;AAkB7D,SAAS,qBAAqB,KAAe,KAAmC;AACrF,QAAM,YAAY,UAAU,IAAI,IAAI,IAAI;AACxC,QAAM,WAAW,iCAAiC,GAAG;AACrD,QAAM,MAAM,YACR,EAAE,QAAQ,cAAc,aAAa,sDAAsD,QAAQ,GAAG,IACtG,cAAc,IAAI,IAAI,IAAI,IACxB,EAAE,QAAQ,gBAAgB,aAAa,2DAAsD,QAAQ,GAAG,IACxG,IAAI;AACV,SAAO;AAAA,IACL,IAAI;AAAA,IACJ,OAAO,EAAE,MAAM,IAAI,MAAM,SAAS,IAAI,SAAS,WAAW,GAAI,MAAM,EAAE,IAAI,IAAI,CAAC,EAAG;AAAA,EACpF;AACF;;;AD3BA,eAAe;AAAA,EACb,SAAS;AAAA,EACT,aAAa;AAAA,EACb,MAAM;AAAA,IACJ,KAAK,EAAE,MAAM,UAAU,aAAa,iBAAiB,UAAU,KAAK;AAAA,IACpE,YAAY,EAAE,MAAM,UAAU,aAAa,qBAAqB,UAAU,MAAM;AAAA,IAChF,OAAO;AAAA,MACL,MAAM;AAAA,MACN,aAAa,4BAA4B,wBAAwB,aAAa,wBAAwB;AAAA,MACtG,UAAU;AAAA,MACV,SAAS;AAAA,IACX;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,aAAa,wBAAwB,gBAAgB,OAAO;AAAA,MAC5D,UAAU;AAAA,MACV,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,aA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YAAI,CAAC,OAAO,IAAI;AACd,oBAAU;AAAA,YACR,IAAI;AAAA,YACJ,OAAO;AAAA,cACL,MAAM;AAAA,cACN,SAAS,OAAO;AAAA,cAChB,KAAK;AAAA,gBACH,QAAQ;AAAA,gBACR,aAAa,kCAAkC,gBAAgB,OAAO;AAAA,cACxE;AAAA,YACF;AAAA,UACF,CAAC;AACD,kBAAQ,KAAK,CAAC;AAAA,QAChB;AACA,aAAK,aAAa,OAAO;AAAA,MAC3B;AACA,UAAI,KAAK,QAAS,MAAK,qBAAqB,KAAK;AAEjD,YAAM,UAAU,kBAAkB,4BAA4B,MAAM,EAAE,OAAO,WAAW,SAAS,aAAa,CAAC;AAC/G,UAAI,CAAC,QAAQ,IAAI;AACf,kBAAU,QAAQ,QAAQ;AAC1B,gBAAQ,KAAK,CAAC;AAAA,MAChB;AACA,YAAM,OAAO,MAAM,QAA+B,uBAAuB,QAAQ,IAAI;AACrF,wBAAkB,MAAM,KAAK,MAAM,MAAiC,CAAC,CAAC;AAAA,IACxE,SAAS,KAAK;AACZ,UAAI,eAAe,UAAU;AAC3B,kBAAU,qBAAqB,KAAK,OAAO,KAAK,GAAG,CAAC,CAAC;AACrD,gBAAQ,KAAK,CAAC;AAAA,MAChB;AACA,gBAAU,EAAE,IAAI,OAAO,OAAO,EAAE,MAAM,kBAAkB,SAAS,mBAAmB,EAAE,CAAC;AACvF,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
csvOrJson,
|
|
3
3
|
handleLinkedinError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OTFHIGEO.js";
|
|
5
5
|
import {
|
|
6
6
|
writeAdsJson,
|
|
7
7
|
writeAdsOutput
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
NO_CACHE_ARG
|
|
11
11
|
} from "./chunk-GO6ISZUZ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-MKLAZD23.js";
|
|
13
13
|
import "./chunk-QV6AST5T.js";
|
|
14
14
|
import "./chunk-WCU362Z6.js";
|
|
15
15
|
import "./chunk-GIWHHCD6.js";
|
|
@@ -114,4 +114,4 @@ Subcommands:
|
|
|
114
114
|
export {
|
|
115
115
|
facetsCommand
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=facets-
|
|
117
|
+
//# sourceMappingURL=facets-V2ITIUKD.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
failApi,
|
|
3
3
|
failValidation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BS2MC62Y.js";
|
|
5
5
|
import {
|
|
6
6
|
PLATFORM_REPORT_KINDS,
|
|
7
7
|
feedbackReportRequestSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MKLAZD23.js";
|
|
9
9
|
import "./chunk-QV6AST5T.js";
|
|
10
10
|
import "./chunk-WCU362Z6.js";
|
|
11
11
|
import "./chunk-GIWHHCD6.js";
|
|
@@ -133,4 +133,4 @@ export {
|
|
|
133
133
|
reportBody,
|
|
134
134
|
waitForIssue
|
|
135
135
|
};
|
|
136
|
-
//# sourceMappingURL=feedback-
|
|
136
|
+
//# sourceMappingURL=feedback-PXWPR3NZ.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readCreativeIdea,
|
|
3
3
|
withAnchor
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-U6G6ALXP.js";
|
|
5
|
+
import "./chunk-OBQ5YUOZ.js";
|
|
6
|
+
import "./chunk-EJBLF2LI.js";
|
|
7
|
+
import "./chunk-6WVYBY2G.js";
|
|
8
8
|
import "./chunk-QFODAMYR.js";
|
|
9
9
|
import "./chunk-EKX37C3T.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-Q5DFEVLE.js";
|
|
11
|
+
import "./chunk-2QGGI7MF.js";
|
|
12
|
+
import "./chunk-CH44XVPE.js";
|
|
13
|
+
import "./chunk-IOKD77L2.js";
|
|
14
14
|
import "./chunk-PGAYESXE.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-3OMFSYQ3.js";
|
|
16
16
|
import "./chunk-UKZKLXTE.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-PNWXTOQ4.js";
|
|
18
|
+
import "./chunk-GRDZWZKQ.js";
|
|
19
|
+
import "./chunk-KDAINT54.js";
|
|
20
20
|
import "./chunk-G6XKD7QE.js";
|
|
21
21
|
import "./chunk-4H6XLX7E.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-Y5PNLB24.js";
|
|
23
|
+
import "./chunk-N3PASNUA.js";
|
|
24
|
+
import "./chunk-HBRXFQQV.js";
|
|
25
|
+
import "./chunk-X3GWGFZP.js";
|
|
26
26
|
import "./chunk-GWLP45WQ.js";
|
|
27
27
|
import "./chunk-DGCUPJZD.js";
|
|
28
28
|
import "./chunk-6QINKM6T.js";
|
|
@@ -32,10 +32,10 @@ import "./chunk-MCJ5I5LR.js";
|
|
|
32
32
|
import "./chunk-2WZI36D3.js";
|
|
33
33
|
import "./chunk-65Y3RCWP.js";
|
|
34
34
|
import "./chunk-E56V3RFO.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-EL3TDR5S.js";
|
|
36
36
|
import "./chunk-G6U45QD3.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-X6U3B6YK.js";
|
|
38
|
+
import "./chunk-MKLAZD23.js";
|
|
39
39
|
import "./chunk-QV6AST5T.js";
|
|
40
40
|
import "./chunk-WCU362Z6.js";
|
|
41
41
|
import "./chunk-GIWHHCD6.js";
|
|
@@ -100,7 +100,7 @@ var feedbackCommand = defineCommand({
|
|
|
100
100
|
meta: { name: "feedback", description: DESCRIPTION },
|
|
101
101
|
subCommands: {
|
|
102
102
|
read: feedbackReadCommand,
|
|
103
|
-
record: () => import("./feedback-record-
|
|
103
|
+
record: () => import("./feedback-record-DJHJWJAF.js").then((m) => m.feedbackRecordCommand)
|
|
104
104
|
},
|
|
105
105
|
// `args` stays although the parent has no `run`: citty finds the subcommand
|
|
106
106
|
// name with THIS command's arg defs, so without them `--slug spring-offer`
|
|
@@ -112,4 +112,4 @@ var feedbackCommand = defineCommand({
|
|
|
112
112
|
export {
|
|
113
113
|
feedbackCommand
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=feedback-
|
|
115
|
+
//# sourceMappingURL=feedback-QSIPSNAL.js.map
|