@koda-sl/baker-cli 0.868.0-dev.dd070597a → 0.868.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 +1 -1
- package/dist/account-4N7MM5BP.js +82 -0
- package/dist/account-YGVM4LWF.js +84 -0
- package/dist/account-reads-BQMDEBWP.js +230 -0
- package/dist/account-users-3HZZRKN2.js +70 -0
- package/dist/account-writes-JNCSQ6RL.js +68 -0
- package/dist/accounts-BRFLWGQY.js +82 -0
- package/dist/accounts-ILCTHJ3Q.js +571 -0
- package/dist/accounts-X2FHTWUB.js +122 -0
- package/dist/actions-2J5CYE7U.js +55 -0
- package/dist/activecampaign-RMFBCQND.js +936 -0
- package/dist/ad-group-writes-JGOWTRYQ.js +172 -0
- package/dist/ad-groups-Y2GEOCED.js +70 -0
- package/dist/ad-writes-GKFAQQJK.js +176 -0
- package/dist/add-E2ZFU726.js +662 -0
- package/dist/add-LS3OSS35.js +109 -0
- package/dist/add-VJ6GKCTD.js +663 -0
- package/dist/ads-36WWVPUI.js +48 -0
- package/dist/ads-QCH2Z5BN.js +79 -0
- package/dist/advertisers-KTAXJNHA.js +155 -0
- package/dist/alerts-OKQABIN6.js +154 -0
- package/dist/analytics-NKZOKK42.js +2792 -0
- package/dist/analytics-VJAE7IEX.js +462 -0
- package/dist/animate-PNIMVVD3.js +482 -0
- package/dist/assign-NMGHBIA6.js +84 -0
- package/dist/audience-size-6WRECSTU.js +138 -0
- package/dist/audiences-TLMMXV4L.js +280 -0
- package/dist/audit-ITUWBBFD.js +156 -0
- package/dist/autocomplete-355RK3VJ.js +118 -0
- package/dist/avatars-R7LSPYE6.js +38 -0
- package/dist/bid-pricing-LMNMUESJ.js +105 -0
- package/dist/brief-EKOHTIXI.js +512 -0
- package/dist/campaign-groups-EEUEFQDE.js +119 -0
- package/dist/campaign-writes-HHD2VVP2.js +170 -0
- package/dist/campaign-writes-OMHR7WHK.js +176 -0
- package/dist/campaigns-IEA4VRFI.js +78 -0
- package/dist/campaigns-PXDNM7HX.js +111 -0
- package/dist/campaigns-TE5F5ISC.js +194 -0
- package/dist/canvas-X47MCSBD.js +48 -0
- package/dist/capabilities-CPKDR3Q2.js +185 -0
- package/dist/catalog-AJ6LIJZF.js +90 -0
- package/dist/catalogs-5F7RB44K.js +130 -0
- package/dist/changes-AIAMM7QF.js +288 -0
- package/dist/chatgpt-U5FFOZAO.js +47 -0
- package/dist/chats-7TXOBRLH.js +660 -0
- package/dist/check-FGOIYTSV.js +55 -0
- package/dist/chunk-365APOGK.js +396 -0
- package/dist/chunk-44RZEKDP.js +51 -0
- package/dist/chunk-4BCCOYFG.js +877 -0
- package/dist/chunk-4BCCOYFG.js.map +1 -0
- package/dist/chunk-6U4ILEJ3.js +396 -0
- package/dist/chunk-6Y4AXDU4.js +65 -0
- package/dist/chunk-7SOSXRZC.js +660 -0
- package/dist/chunk-AOV3VKPL.js +78 -0
- package/dist/chunk-B3JBIAXI.js +1883 -0
- package/dist/chunk-C3742YL7.js +313 -0
- package/dist/chunk-CZZXW6VK.js +24026 -0
- package/dist/chunk-CZZXW6VK.js.map +1 -0
- package/dist/chunk-D7VLNNDV.js +152 -0
- package/dist/chunk-DBDQEIGX.js +303 -0
- package/dist/chunk-DFTN5SRH.js +103 -0
- package/dist/chunk-DX3TB5RV.js +423 -0
- package/dist/chunk-DZE2UHST.js +147 -0
- package/dist/chunk-E4DHH5EL.js +46 -0
- package/dist/chunk-F3OYRVLY.js +170 -0
- package/dist/chunk-F4EMZQ66.js +3378 -0
- package/dist/chunk-FBW4FH4V.js +7829 -0
- package/dist/chunk-FN4QQJPZ.js +98 -0
- package/dist/chunk-FY6CYD5M.js +23 -0
- package/dist/chunk-FZNCML5Q.js +732 -0
- package/dist/chunk-G4ZQIR3R.js +163 -0
- package/dist/chunk-G6YNRJZO.js +723 -0
- package/dist/chunk-GBT2TTA2.js +548 -0
- package/dist/chunk-GZAHNOUP.js +746 -0
- package/dist/chunk-H7JSYC4X.js +4416 -0
- package/dist/chunk-H7JSYC4X.js.map +1 -0
- package/dist/chunk-HAV4GBBK.js +411 -0
- package/dist/chunk-HXHAYR5R.js +604 -0
- package/dist/chunk-IFAZWSIJ.js +1577 -0
- package/dist/chunk-INW3G4P3.js +749 -0
- package/dist/chunk-JPDIM55H.js +341 -0
- package/dist/chunk-JX3SQ26G.js +329 -0
- package/dist/chunk-L3RQJHQO.js +170 -0
- package/dist/chunk-LIRPFZVV.js +509 -0
- package/dist/chunk-LNLUJ6TH.js +155 -0
- package/dist/chunk-LPECS3YX.js +10430 -0
- package/dist/chunk-LXDZCFII.js +375 -0
- package/dist/chunk-M2QT2THK.js +1124 -0
- package/dist/chunk-M6I75FEO.js +374 -0
- package/dist/chunk-MTOHGVQD.js +91 -0
- package/dist/chunk-MVG66YDQ.js +9127 -0
- package/dist/chunk-NC6NLGN3.js +1862 -0
- package/dist/chunk-NQMLQXXP.js +547 -0
- package/dist/chunk-OR6I7R7X.js +6340 -0
- package/dist/chunk-OWFZLCE2.js +915 -0
- package/dist/chunk-P4R37O5D.js +274 -0
- package/dist/chunk-QJHAL4GT.js +505 -0
- package/dist/chunk-QVFLYWE3.js +685 -0
- package/dist/chunk-QVG4U55R.js +197 -0
- package/dist/chunk-R2G6SQ3U.js +430 -0
- package/dist/chunk-RNJVJBD7.js +337 -0
- package/dist/chunk-RWKK7GMY.js +89 -0
- package/dist/chunk-SCN5ZF4U.js +76 -0
- package/dist/chunk-SDWMLIIK.js +202 -0
- package/dist/chunk-SF3U3WQR.js +262 -0
- package/dist/chunk-T7V2OPW2.js +127 -0
- package/dist/chunk-U56ERMJY.js +479 -0
- package/dist/chunk-UGGFCTH2.js +260 -0
- package/dist/chunk-UJMTTIW2.js +285 -0
- package/dist/chunk-UP3VE7X4.js +863 -0
- package/dist/chunk-WMSRZZH7.js +175 -0
- package/dist/chunk-X77CRONC.js +61 -0
- package/dist/chunk-XGE7G3K3.js +252 -0
- package/dist/chunk-YJ4M3X7T.js +91 -0
- package/dist/chunk-ZB7EZMK5.js +224 -0
- package/dist/chunk-ZJXYWHQT.js +142 -0
- package/dist/chunk-ZSC3LYTP.js +3248 -0
- package/dist/chunk-ZSC3LYTP.js.map +1 -0
- package/dist/chunk-ZUML4HW7.js +64 -0
- package/dist/chunk-ZXG5MYV4.js +26 -0
- package/dist/claim-KXDG6QWC.js +219 -0
- package/dist/cli.js +35 -35
- package/dist/companies-7MWAWS6C.js +37 -0
- package/dist/company-U2OIPLKE.js +312 -0
- package/dist/complete-KUDG34NE.js +88 -0
- package/dist/connect-TWMBWL5I.js +47 -0
- package/dist/conversation-Z23EH7WU.js +101 -0
- package/dist/conversion-report-OILIT55D.js +130 -0
- package/dist/conversion-upload-command-6PILGKCD.js +456 -0
- package/dist/conversion-writes-GLCPMZXY.js +194 -0
- package/dist/conversions-KI7FEA7E.js +142 -0
- package/dist/conversions-O2V6L6DY.js +78 -0
- package/dist/create-KUOSRCES.js +66 -0
- package/dist/create-VZ2QUD53.js +220 -0
- package/dist/create-XYILXJQS.js +357 -0
- package/dist/create-YOI6O536.js +191 -0
- package/dist/creatives-6WQAK2AD.js +236 -0
- package/dist/creatives-CM24TZ4T.js +48 -0
- package/dist/credentials-YDMJYQX3.js +292 -0
- package/dist/critique-X6DG7ZKI.js +231 -0
- package/dist/crm-R3W3KRDT.js +328 -0
- package/dist/crm-USZALGLQ.js +419 -0
- package/dist/currency-KV3FJN27.js +91 -0
- package/dist/customers-4P7K65PC.js +70 -0
- package/dist/data-BKTQ4YER.js +665 -0
- package/dist/delete-5FTWWBXC.js +72 -0
- package/dist/delete-FYNPYLYX.js +61 -0
- package/dist/delete-SSMJXTBX.js +71 -0
- package/dist/demographics-EQG3AEXT.js +146 -0
- package/dist/discard-THTOYECS.js +73 -0
- package/dist/discover-FORYQELN.js +191 -0
- package/dist/domain-P3TEXMW5.js +105 -0
- package/dist/download-LYZ2LCKD.js +175 -0
- package/dist/draft-5WZYZSGH.js +640 -0
- package/dist/draft-I5FLNPRP.js +340 -0
- package/dist/draft-QX7DEJST.js +390 -0
- package/dist/draft-TLXYX73G.js +228 -0
- package/dist/draft-VBEIOMYX.js +428 -0
- package/dist/engine/index.js +9 -9
- package/dist/experiments-P45F6ETV.js +242 -0
- package/dist/extract-V56BJWHI.js +178 -0
- package/dist/facets-IKX2537Q.js +161 -0
- package/dist/feedback-SUFQ2ZJB.js +116 -0
- package/dist/fetch-YKXXN6UE.js +488 -0
- package/dist/fit-HPRLXVND.js +70 -0
- package/dist/flows-YLA3VDPP.js +343 -0
- package/dist/forecast-KPJ7WCUA.js +123 -0
- package/dist/forecast-TSYLGQAK.js +189 -0
- package/dist/funnel-SVO2SF3A.js +702 -0
- package/dist/generate-IYV672VJ.js +265 -0
- package/dist/get-GC3OCAAM.js +78 -0
- package/dist/get-IGEAFGDQ.js +115 -0
- package/dist/google-TMDWMV5J.js +165 -0
- package/dist/google-Y5BQU36K.js +3765 -0
- package/dist/google-Y5BQU36K.js.map +1 -0
- package/dist/google-ads-FH7FPLE3.js +231 -0
- package/dist/history-ARBPQ4EE.js +156 -0
- package/dist/history-DKOEXEHI.js +204 -0
- package/dist/history-R6NI2GSX.js +109 -0
- package/dist/hubspot-KYCGWZKK.js +966 -0
- package/dist/ideas-ONWEP2WA.js +50 -0
- package/dist/images-HI7SUZRP.js +92 -0
- package/dist/ingest-T5HB5N4A.js +32 -0
- package/dist/ingest-YPSRKTP4.js +163 -0
- package/dist/insights-GXODLEC2.js +151 -0
- package/dist/inspect-DK6B23M5.js +39 -0
- package/dist/intent-6O5IPSOY.js +97 -0
- package/dist/keyword-gap-DYNWN7QL.js +173 -0
- package/dist/keyword-metrics-LAX4E7EX.js +235 -0
- package/dist/keywords-for-site-EWXNSUNC.js +135 -0
- package/dist/languages-R2NXKMXP.js +41 -0
- package/dist/leads-E4Z5I5NW.js +138 -0
- package/dist/learn-BMTDLH6C.js +214 -0
- package/dist/line-item-writes-2GY4ENP4.js +213 -0
- package/dist/line-items-QTUQ7VHT.js +107 -0
- package/dist/link-IFE2UQZ2.js +71 -0
- package/dist/linkedin-DMRTMNHL.js +1513 -0
- package/dist/linkedin-person-LDKH6CYE.js +143 -0
- package/dist/list-CTEYZ2KA.js +90 -0
- package/dist/list-KXS76WRQ.js +321 -0
- package/dist/list-UDYTPBSY.js +227 -0
- package/dist/locations-6LW7LNOI.js +41 -0
- package/dist/locations-IJ6NZQHI.js +69 -0
- package/dist/log-WRXEC3Y4.js +99 -0
- package/dist/make-KALI7FDX.js +1392 -0
- package/dist/map-FC6H2VXU.js +520 -0
- package/dist/mcp-JEMZ5S3N.js +1018 -0
- package/dist/media-sources-6AUMIFLZ.js +35 -0
- package/dist/members-SODGC2JS.js +51 -0
- package/dist/meta-2NGF4AWV.js +152 -0
- package/dist/metrics-J4JSMZHP.js +193 -0
- package/dist/models-ZFQ6KKYQ.js +155 -0
- package/dist/normalize-MJXBLITR.js +146 -0
- package/dist/options-R67VNTFT.js +127 -0
- package/dist/organization-WVNV6JTP.js +950 -0
- package/dist/people-CI74TMWP.js +162 -0
- package/dist/people-TPZC5SV3.js +172 -0
- package/dist/performance-6COMR55P.js +6361 -0
- package/dist/performance-Q53WVYP3.js +29 -0
- package/dist/pipedrive-MALR7HLL.js +534 -0
- package/dist/pixels-GZJVG26E.js +230 -0
- package/dist/pixels-GZJVG26E.js.map +1 -0
- package/dist/pixels-JU3PPEBU.js +62 -0
- package/dist/preview-MLUYV5YJ.js +104 -0
- package/dist/promoted-tweet-writes-VA77PU6F.js +185 -0
- package/dist/promoted-tweets-BLEB2562.js +119 -0
- package/dist/publish-O4A5LYXC.js +431 -0
- package/dist/query-2WO3CHHS.js +68 -0
- package/dist/reddit-EYIVSTLX.js +31 -0
- package/dist/refresh-6ULVVUX3.js +101 -0
- package/dist/release-R25UDKC4.js +67 -0
- package/dist/relevant-pages-LQADLWOX.js +101 -0
- package/dist/remove-2J5JPNYD.js +55 -0
- package/dist/reopen-WJTGGGSW.js +70 -0
- package/dist/rerun-6GYEOTLW.js +102 -0
- package/dist/research-K32VHARZ.js +78 -0
- package/dist/research-RARA76OT.js +267 -0
- package/dist/reset-6NCDX64B.js +59 -0
- package/dist/reset-PJHTU3FZ.js +59 -0
- package/dist/resolve-KOJLKGF2.js +126 -0
- package/dist/retry-2SCLTF22.js +67 -0
- package/dist/retry-737X2PY7.js +67 -0
- package/dist/revenue-7CTR5X4Y.js +100 -0
- package/dist/rules-BCMC4ZO2.js +164 -0
- package/dist/run-ESJTTQZR.js +79 -0
- package/dist/run-WFL6QOQC.js +74 -0
- package/dist/scaffold-ad-4O2POBKK.js +1604 -0
- package/dist/scaffold-static-ad-ZG47OQP3.js +999 -0
- package/dist/scaffold-video-BGPRMLF5.js +890 -0
- package/dist/schedule-3ZN3BEV4.js +66 -0
- package/dist/scheduled-agents-6NPQYF7S.js +59 -0
- package/dist/schema-U4OPVDEL.js +241 -0
- package/dist/schema-VVWZ74WG.js +137 -0
- package/dist/search-CMNN5ZE7.js +230 -0
- package/dist/search-terms-L7XVSUED.js +412 -0
- package/dist/select-3FRMBMKG.js +135 -0
- package/dist/set-B3UW3XQ3.js +287 -0
- package/dist/set-prompt-T3DYLITY.js +205 -0
- package/dist/setup-links-TNSCVEM4.js +146 -0
- package/dist/shopify-XK6WESI7.js +4033 -0
- package/dist/site-IKFHQS4O.js +182 -0
- package/dist/sources-IURSG7ZP.js +470 -0
- package/dist/sources-X24PA4RB.js +30 -0
- package/dist/stale-JGUZLHIV.js +93 -0
- package/dist/status-L6PF6S2Z.js +69 -0
- package/dist/stock-SZVCE7TD.js +214 -0
- package/dist/studio-JM6ZM4VP.js +49 -0
- package/dist/sync-AJSPVD3B.js +59 -0
- package/dist/sync-definition-WUC3JIXI.js +75 -0
- package/dist/tags-4J24JJCL.js +25 -0
- package/dist/tags-B7Z2JDUO.js +25 -0
- package/dist/tags-OBUNEHLM.js +26 -0
- package/dist/tags-R2QYEYZP.js +183 -0
- package/dist/tags-T4GJL3X3.js +25 -0
- package/dist/targeting-criteria-VZ2UHFWC.js +113 -0
- package/dist/targets-IZF263WP.js +111 -0
- package/dist/testimonials-EMD6I4A4.js +32 -0
- package/dist/themes-VQHOGFND.js +102 -0
- package/dist/top-companies-NTTNHKHK.js +251 -0
- package/dist/transcript-UEHGL67P.js +169 -0
- package/dist/translate-UBVQOFVD.js +608 -0
- package/dist/triggers-7JRPTB2V.js +149 -0
- package/dist/unlink-56PVDBCF.js +74 -0
- package/dist/unstage-JPWHVQ43.js +93 -0
- package/dist/update-DKPGAWYZ.js +194 -0
- package/dist/update-MTCISYL5.js +70 -0
- package/dist/update-OWF4YMIR.js +176 -0
- package/dist/update-V2LDE5MX.js +238 -0
- package/dist/upload-EUKDFNGN.js +186 -0
- package/dist/url-options-QYL7J3CQ.js +137 -0
- package/dist/url-params-7QV3BS4F.js +103 -0
- package/dist/validate-LVRQ6BAT.js +181 -0
- package/dist/videos-KR7S3NTF.js +41 -0
- package/dist/viewer-check-P56Q4MBH.js +90 -0
- package/dist/visuals-KW4UQ7XC.js +130 -0
- package/dist/web-BGSYX4MC.js +225 -0
- package/dist/winning-ads-Q5NRUXCB.js +88 -0
- package/dist/write-commands-B25QPBUY.js +1556 -0
- package/dist/x-LGCRY3MH.js +47 -0
- package/package.json +1 -1
- package/dist/account-3EUJJMLD.js +0 -82
- package/dist/account-CTM4XBY3.js +0 -84
- package/dist/account-reads-3LP4F3L4.js +0 -230
- package/dist/account-users-DL3UD2XG.js +0 -70
- package/dist/account-writes-FLMRUDQA.js +0 -68
- package/dist/accounts-7ACHUCAY.js +0 -82
- package/dist/accounts-KNMGEMMG.js +0 -571
- package/dist/accounts-PRKZ3YCO.js +0 -122
- package/dist/actions-PO35WQVS.js +0 -55
- package/dist/activecampaign-4S63QE4C.js +0 -936
- package/dist/ad-group-writes-D3KTU7UI.js +0 -172
- package/dist/ad-groups-JPTN3ZB4.js +0 -70
- package/dist/ad-writes-YUFL3P6K.js +0 -176
- package/dist/add-2F6KL6KB.js +0 -662
- package/dist/add-4PCJL2QX.js +0 -109
- package/dist/add-ZMOFKHFR.js +0 -663
- package/dist/ads-M3BHYWLI.js +0 -79
- package/dist/ads-O76TVWHX.js +0 -48
- package/dist/advertisers-Y2ATV7L6.js +0 -155
- package/dist/alerts-C4UFNZMJ.js +0 -154
- package/dist/analytics-EM4NNEG5.js +0 -2792
- package/dist/analytics-YRGTZHAY.js +0 -462
- package/dist/animate-7DXSRWEI.js +0 -482
- package/dist/assign-GDV4YOFF.js +0 -84
- package/dist/audience-size-ONXW6YWQ.js +0 -138
- package/dist/audiences-BASHMZ7Z.js +0 -280
- package/dist/audit-3Z6ZZKCH.js +0 -156
- package/dist/autocomplete-4ZI234QK.js +0 -118
- package/dist/avatars-4OT3XVOD.js +0 -38
- package/dist/bid-pricing-7NZ7QKXF.js +0 -105
- package/dist/brief-WOGFWWB3.js +0 -512
- package/dist/campaign-groups-VBOFSUJS.js +0 -119
- package/dist/campaign-writes-E5UJZ2U6.js +0 -176
- package/dist/campaign-writes-NMMJXTYD.js +0 -170
- package/dist/campaigns-AHXTOR45.js +0 -78
- package/dist/campaigns-YFB3PCLE.js +0 -194
- package/dist/campaigns-ZWPYUZFF.js +0 -111
- package/dist/canvas-NJV6RSX3.js +0 -48
- package/dist/capabilities-FJAYWDY6.js +0 -185
- package/dist/catalog-XEALUTOG.js +0 -90
- package/dist/catalogs-MWMKCFWI.js +0 -130
- package/dist/changes-CNGAKH52.js +0 -288
- package/dist/chatgpt-FV4PVN4W.js +0 -47
- package/dist/chats-65GTXYEC.js +0 -660
- package/dist/check-YQIY4BTG.js +0 -55
- package/dist/chunk-2N5MQP65.js +0 -127
- package/dist/chunk-2RYEYBMF.js +0 -3378
- package/dist/chunk-2U4HJDUO.js +0 -46
- package/dist/chunk-3YZBGH2W.js +0 -103
- package/dist/chunk-4U4YQOO2.js +0 -6340
- package/dist/chunk-4YQ46MM4.js +0 -374
- package/dist/chunk-52YU7I5M.js +0 -23
- package/dist/chunk-5EQF26Z4.js +0 -61
- package/dist/chunk-5I2TABSH.js +0 -142
- package/dist/chunk-5NLZJ75G.js +0 -423
- package/dist/chunk-6HQATKKL.js +0 -548
- package/dist/chunk-6LFIF6BK.js +0 -91
- package/dist/chunk-6VAUBRY3.js +0 -260
- package/dist/chunk-7ANWNBVL.js +0 -170
- package/dist/chunk-7EVUIALZ.js +0 -732
- package/dist/chunk-7FH3IREG.js +0 -375
- package/dist/chunk-7IZNYZZ5.js +0 -915
- package/dist/chunk-7MVVDZM2.js +0 -262
- package/dist/chunk-7YHMZVKM.js +0 -479
- package/dist/chunk-B5RLBFMI.js +0 -26
- package/dist/chunk-CBQTKSSP.js +0 -202
- package/dist/chunk-CVAQZO4I.js +0 -4416
- package/dist/chunk-CVAQZO4I.js.map +0 -1
- package/dist/chunk-CYT3HWSV.js +0 -147
- package/dist/chunk-D4MNDYPX.js +0 -51
- package/dist/chunk-D7DLBQLS.js +0 -76
- package/dist/chunk-DNI4DYGT.js +0 -337
- package/dist/chunk-E3G2BZEQ.js +0 -604
- package/dist/chunk-F6MNCSXP.js +0 -89
- package/dist/chunk-FRYH2T32.js +0 -660
- package/dist/chunk-FZWLNE53.js +0 -64
- package/dist/chunk-GOC2ZZJF.js +0 -746
- package/dist/chunk-GZV7523D.js +0 -749
- package/dist/chunk-IESEWO3A.js +0 -24026
- package/dist/chunk-IESEWO3A.js.map +0 -1
- package/dist/chunk-IGHITD2B.js +0 -285
- package/dist/chunk-IIC5WLB7.js +0 -152
- package/dist/chunk-IIXEFX33.js +0 -303
- package/dist/chunk-J4ZRPGNJ.js +0 -329
- package/dist/chunk-JE3NZOFS.js +0 -274
- package/dist/chunk-JGXB7NBP.js +0 -7829
- package/dist/chunk-JPFYTKQA.js +0 -313
- package/dist/chunk-JPP3LYVH.js +0 -197
- package/dist/chunk-KPQJVORC.js +0 -396
- package/dist/chunk-KYOKEQ5E.js +0 -224
- package/dist/chunk-L2IC4WE6.js +0 -98
- package/dist/chunk-LUWN4X7E.js +0 -863
- package/dist/chunk-LVR2UYQ7.js +0 -685
- package/dist/chunk-MIIY3MVK.js +0 -65
- package/dist/chunk-N366L5EF.js +0 -905
- package/dist/chunk-N366L5EF.js.map +0 -1
- package/dist/chunk-NJ6ZJGUO.js +0 -723
- package/dist/chunk-NKXH4YZT.js +0 -547
- package/dist/chunk-NZZ7ATO5.js +0 -3248
- package/dist/chunk-NZZ7ATO5.js.map +0 -1
- package/dist/chunk-O5UWZ4AI.js +0 -170
- package/dist/chunk-PUDEC2K3.js +0 -78
- package/dist/chunk-Q7V5XSFZ.js +0 -411
- package/dist/chunk-RVWBLOXX.js +0 -9127
- package/dist/chunk-SBID6GZZ.js +0 -252
- package/dist/chunk-TKDET4WF.js +0 -430
- package/dist/chunk-TU3HH4O3.js +0 -155
- package/dist/chunk-TZPFQJTH.js +0 -175
- package/dist/chunk-UBUFWX5O.js +0 -91
- package/dist/chunk-W3XIDU5C.js +0 -509
- package/dist/chunk-W5JX7LUK.js +0 -10430
- package/dist/chunk-XOW4EBDN.js +0 -396
- package/dist/chunk-Y2VYMMVR.js +0 -1577
- package/dist/chunk-YQ5DCDWD.js +0 -1862
- package/dist/chunk-YUZGTNAO.js +0 -1124
- package/dist/chunk-YY6D3PI6.js +0 -163
- package/dist/chunk-Z4GSPW5B.js +0 -505
- package/dist/chunk-Z6WDG4DW.js +0 -341
- package/dist/chunk-ZFBDDOKR.js +0 -1883
- package/dist/claim-IOM6PVO5.js +0 -219
- package/dist/companies-WY4K6WLI.js +0 -37
- package/dist/company-PVCI3LC7.js +0 -312
- package/dist/complete-2QF4BZ5T.js +0 -88
- package/dist/connect-GSLMEPHD.js +0 -47
- package/dist/conversation-5NCE56L3.js +0 -101
- package/dist/conversion-report-DXPM2LDV.js +0 -130
- package/dist/conversion-upload-command-HJOVSWZD.js +0 -456
- package/dist/conversion-writes-6MJ7JTHC.js +0 -194
- package/dist/conversions-DGKHWOMN.js +0 -142
- package/dist/conversions-VM4HKWBN.js +0 -78
- package/dist/create-2EFBCVF4.js +0 -220
- package/dist/create-KKJX3JLV.js +0 -66
- package/dist/create-TRL622CZ.js +0 -357
- package/dist/create-X2R7FNDZ.js +0 -191
- package/dist/creatives-D5WLUJWC.js +0 -236
- package/dist/creatives-EWTMQK7H.js +0 -48
- package/dist/credentials-H4W36WE7.js +0 -292
- package/dist/critique-4Q3XEGS5.js +0 -231
- package/dist/crm-APNCVLF2.js +0 -419
- package/dist/crm-T3NV4EOU.js +0 -328
- package/dist/currency-NRI2TLP3.js +0 -91
- package/dist/customers-VZYCYMSL.js +0 -70
- package/dist/data-HJHRUE34.js +0 -665
- package/dist/delete-BWPILWUN.js +0 -72
- package/dist/delete-JGR3HPY5.js +0 -71
- package/dist/delete-VJEOLHNE.js +0 -61
- package/dist/demographics-CBJ26IAA.js +0 -146
- package/dist/discard-3MMFPF26.js +0 -73
- package/dist/discover-F4TO7A3K.js +0 -191
- package/dist/domain-7MSMJMDP.js +0 -105
- package/dist/download-N3R6G3QV.js +0 -175
- package/dist/draft-ACWK2FGW.js +0 -340
- package/dist/draft-F6FHBF6I.js +0 -228
- package/dist/draft-MKFFXTJK.js +0 -390
- package/dist/draft-OLSFLDME.js +0 -640
- package/dist/draft-XBO2DYIJ.js +0 -428
- package/dist/experiments-VYYS5Y7W.js +0 -242
- package/dist/extract-F7D62JMA.js +0 -178
- package/dist/facets-6GJJIRRR.js +0 -161
- package/dist/feedback-3TYBQZY4.js +0 -116
- package/dist/fetch-JBXBMJBK.js +0 -488
- package/dist/fit-ZFPYO3MS.js +0 -70
- package/dist/flows-PP6BRBD7.js +0 -343
- package/dist/forecast-AQDB4LLG.js +0 -189
- package/dist/forecast-H24SICMO.js +0 -123
- package/dist/funnel-BFVSY5A6.js +0 -702
- package/dist/generate-SIS2OKZR.js +0 -265
- package/dist/get-J4CETDIS.js +0 -115
- package/dist/get-SPKPNRXF.js +0 -78
- package/dist/google-4IKGTP3C.js +0 -165
- package/dist/google-HLE7YIYM.js +0 -3782
- package/dist/google-HLE7YIYM.js.map +0 -1
- package/dist/google-ads-SGKGDWV6.js +0 -231
- package/dist/history-5EATPXPS.js +0 -204
- package/dist/history-K5ULNTEM.js +0 -156
- package/dist/history-QOQY2F77.js +0 -109
- package/dist/hubspot-HNZLT2BH.js +0 -966
- package/dist/ideas-35LERPN4.js +0 -50
- package/dist/images-R3EK4BDH.js +0 -92
- package/dist/ingest-5TSJM7A7.js +0 -163
- package/dist/ingest-LYVNO5M5.js +0 -32
- package/dist/insights-PVBTR5SK.js +0 -151
- package/dist/inspect-36R5WLLX.js +0 -39
- package/dist/intent-T6BUKGQG.js +0 -97
- package/dist/keyword-gap-TC7UWZ5Q.js +0 -173
- package/dist/keyword-metrics-JRB6DREM.js +0 -235
- package/dist/keywords-for-site-FQOELX5H.js +0 -135
- package/dist/languages-AFTPOHIV.js +0 -41
- package/dist/leads-ILZAOKIF.js +0 -138
- package/dist/learn-AWQ6JTP2.js +0 -214
- package/dist/line-item-writes-APTZP3DI.js +0 -213
- package/dist/line-items-5YSLNBGJ.js +0 -107
- package/dist/link-2MGGDKLP.js +0 -71
- package/dist/linkedin-EBOTX37R.js +0 -1513
- package/dist/linkedin-person-FNKW44RV.js +0 -143
- package/dist/list-75NNAGBR.js +0 -90
- package/dist/list-CJU2Y6OP.js +0 -321
- package/dist/list-L3NBK64M.js +0 -227
- package/dist/locations-BMGOEKLN.js +0 -69
- package/dist/locations-OPMVTKHK.js +0 -41
- package/dist/log-JJDSDLOK.js +0 -99
- package/dist/make-U323I4SF.js +0 -1392
- package/dist/map-KFN2QLYV.js +0 -520
- package/dist/mcp-KGAXFVUM.js +0 -1018
- package/dist/media-sources-BSECLIMM.js +0 -35
- package/dist/members-6FHV7EM2.js +0 -51
- package/dist/meta-SPPSYRMC.js +0 -152
- package/dist/metrics-S5G6W36J.js +0 -193
- package/dist/models-H5WM4UGE.js +0 -155
- package/dist/normalize-YWIDJR4R.js +0 -146
- package/dist/options-R4Q46LU5.js +0 -127
- package/dist/organization-76LF7MHK.js +0 -950
- package/dist/people-BK6GRJXB.js +0 -162
- package/dist/people-HR7CAKZS.js +0 -172
- package/dist/performance-PTBBUEZU.js +0 -29
- package/dist/performance-Y2S5FDGI.js +0 -6361
- package/dist/pipedrive-NONV3NBQ.js +0 -534
- package/dist/pixels-EX6FHVHW.js +0 -215
- package/dist/pixels-EX6FHVHW.js.map +0 -1
- package/dist/pixels-KIFMIBPJ.js +0 -62
- package/dist/preview-HD3QAR53.js +0 -104
- package/dist/promoted-tweet-writes-3LNFAGEM.js +0 -185
- package/dist/promoted-tweets-IHUQA35K.js +0 -119
- package/dist/publish-IUE7RHRD.js +0 -431
- package/dist/query-5XB5OP4B.js +0 -68
- package/dist/reddit-BOTUVLHL.js +0 -31
- package/dist/refresh-RPVVOQX4.js +0 -101
- package/dist/release-4YZWORV2.js +0 -67
- package/dist/relevant-pages-NUWR6FNB.js +0 -101
- package/dist/remove-FO7I4RQ3.js +0 -55
- package/dist/reopen-FMPQVL2C.js +0 -70
- package/dist/rerun-RYL5UJRE.js +0 -102
- package/dist/research-2H3ST6C2.js +0 -78
- package/dist/research-3LSWITEK.js +0 -267
- package/dist/reset-PNCDMWGO.js +0 -59
- package/dist/reset-RI6NO6NQ.js +0 -59
- package/dist/resolve-SGL3A5N5.js +0 -126
- package/dist/retry-4FMP73MN.js +0 -67
- package/dist/retry-JRH3WJSF.js +0 -67
- package/dist/revenue-V4ODLBZ6.js +0 -100
- package/dist/rules-EPNUXMHG.js +0 -164
- package/dist/run-2SPQZ2ZZ.js +0 -79
- package/dist/run-HLQUPQZ2.js +0 -74
- package/dist/scaffold-ad-3YLGTFRT.js +0 -1604
- package/dist/scaffold-static-ad-3RCD642H.js +0 -999
- package/dist/scaffold-video-F5HTBM4R.js +0 -890
- package/dist/schedule-O36GKVZV.js +0 -66
- package/dist/scheduled-agents-4UNG26CX.js +0 -59
- package/dist/schema-EOQASVWI.js +0 -137
- package/dist/schema-SRFWL4ZT.js +0 -241
- package/dist/search-DLMLA423.js +0 -230
- package/dist/search-terms-WKEPRHN2.js +0 -412
- package/dist/select-KBYLNNL4.js +0 -135
- package/dist/set-6L7YV57E.js +0 -287
- package/dist/set-prompt-WBYLKIO3.js +0 -205
- package/dist/setup-links-XT4TEZWI.js +0 -146
- package/dist/shopify-ICWRWUZE.js +0 -4033
- package/dist/site-LYDFZM5U.js +0 -182
- package/dist/sources-CP4UQ5KA.js +0 -30
- package/dist/sources-FPWA4AJN.js +0 -470
- package/dist/stale-GWG4V65Q.js +0 -93
- package/dist/status-W6S7AY43.js +0 -69
- package/dist/stock-6VZFFAHW.js +0 -214
- package/dist/studio-VU7CEAEU.js +0 -49
- package/dist/sync-I6ZVQOSZ.js +0 -59
- package/dist/sync-definition-NADPEPFQ.js +0 -75
- package/dist/tags-47QAF2ZJ.js +0 -25
- package/dist/tags-AN5B56GA.js +0 -26
- package/dist/tags-ETUV62EB.js +0 -25
- package/dist/tags-IQ6BCRLE.js +0 -183
- package/dist/tags-UKAR6FCS.js +0 -25
- package/dist/targeting-criteria-4E6SURB5.js +0 -113
- package/dist/targets-GJUR5WTB.js +0 -111
- package/dist/testimonials-UCVT5VQY.js +0 -32
- package/dist/themes-2T5BOIZU.js +0 -102
- package/dist/top-companies-WID72GN5.js +0 -251
- package/dist/transcript-OMYAOZSP.js +0 -169
- package/dist/translate-TIAJBFQ3.js +0 -608
- package/dist/triggers-IEMDGR6W.js +0 -149
- package/dist/unlink-WCLQPP7S.js +0 -74
- package/dist/unstage-KRPX3AGF.js +0 -93
- package/dist/update-CPSZ4EH3.js +0 -194
- package/dist/update-CQ4VF2S5.js +0 -70
- package/dist/update-NP2MOMJS.js +0 -238
- package/dist/update-XF462N7M.js +0 -176
- package/dist/upload-WRRNFTRK.js +0 -186
- package/dist/url-options-BANFHIHH.js +0 -137
- package/dist/url-params-DKGJVTGL.js +0 -103
- package/dist/validate-6AHY2UQR.js +0 -181
- package/dist/videos-FG64T3XK.js +0 -41
- package/dist/viewer-check-3YGDWCTR.js +0 -90
- package/dist/visuals-3C2QUE6G.js +0 -130
- package/dist/web-K3JH5TXT.js +0 -225
- package/dist/winning-ads-QDVS56XX.js +0 -88
- package/dist/write-commands-X72A5F7K.js +0 -1556
- package/dist/x-JU6LF2MM.js +0 -47
- /package/dist/{account-3EUJJMLD.js.map → account-4N7MM5BP.js.map} +0 -0
- /package/dist/{account-CTM4XBY3.js.map → account-YGVM4LWF.js.map} +0 -0
- /package/dist/{account-reads-3LP4F3L4.js.map → account-reads-BQMDEBWP.js.map} +0 -0
- /package/dist/{account-users-DL3UD2XG.js.map → account-users-3HZZRKN2.js.map} +0 -0
- /package/dist/{account-writes-FLMRUDQA.js.map → account-writes-JNCSQ6RL.js.map} +0 -0
- /package/dist/{accounts-7ACHUCAY.js.map → accounts-BRFLWGQY.js.map} +0 -0
- /package/dist/{accounts-KNMGEMMG.js.map → accounts-ILCTHJ3Q.js.map} +0 -0
- /package/dist/{accounts-PRKZ3YCO.js.map → accounts-X2FHTWUB.js.map} +0 -0
- /package/dist/{actions-PO35WQVS.js.map → actions-2J5CYE7U.js.map} +0 -0
- /package/dist/{activecampaign-4S63QE4C.js.map → activecampaign-RMFBCQND.js.map} +0 -0
- /package/dist/{ad-group-writes-D3KTU7UI.js.map → ad-group-writes-JGOWTRYQ.js.map} +0 -0
- /package/dist/{ad-groups-JPTN3ZB4.js.map → ad-groups-Y2GEOCED.js.map} +0 -0
- /package/dist/{ad-writes-YUFL3P6K.js.map → ad-writes-GKFAQQJK.js.map} +0 -0
- /package/dist/{add-2F6KL6KB.js.map → add-E2ZFU726.js.map} +0 -0
- /package/dist/{add-4PCJL2QX.js.map → add-LS3OSS35.js.map} +0 -0
- /package/dist/{add-ZMOFKHFR.js.map → add-VJ6GKCTD.js.map} +0 -0
- /package/dist/{ads-O76TVWHX.js.map → ads-36WWVPUI.js.map} +0 -0
- /package/dist/{ads-M3BHYWLI.js.map → ads-QCH2Z5BN.js.map} +0 -0
- /package/dist/{advertisers-Y2ATV7L6.js.map → advertisers-KTAXJNHA.js.map} +0 -0
- /package/dist/{alerts-C4UFNZMJ.js.map → alerts-OKQABIN6.js.map} +0 -0
- /package/dist/{analytics-EM4NNEG5.js.map → analytics-NKZOKK42.js.map} +0 -0
- /package/dist/{analytics-YRGTZHAY.js.map → analytics-VJAE7IEX.js.map} +0 -0
- /package/dist/{animate-7DXSRWEI.js.map → animate-PNIMVVD3.js.map} +0 -0
- /package/dist/{assign-GDV4YOFF.js.map → assign-NMGHBIA6.js.map} +0 -0
- /package/dist/{audience-size-ONXW6YWQ.js.map → audience-size-6WRECSTU.js.map} +0 -0
- /package/dist/{audiences-BASHMZ7Z.js.map → audiences-TLMMXV4L.js.map} +0 -0
- /package/dist/{audit-3Z6ZZKCH.js.map → audit-ITUWBBFD.js.map} +0 -0
- /package/dist/{autocomplete-4ZI234QK.js.map → autocomplete-355RK3VJ.js.map} +0 -0
- /package/dist/{avatars-4OT3XVOD.js.map → avatars-R7LSPYE6.js.map} +0 -0
- /package/dist/{bid-pricing-7NZ7QKXF.js.map → bid-pricing-LMNMUESJ.js.map} +0 -0
- /package/dist/{brief-WOGFWWB3.js.map → brief-EKOHTIXI.js.map} +0 -0
- /package/dist/{campaign-groups-VBOFSUJS.js.map → campaign-groups-EEUEFQDE.js.map} +0 -0
- /package/dist/{campaign-writes-NMMJXTYD.js.map → campaign-writes-HHD2VVP2.js.map} +0 -0
- /package/dist/{campaign-writes-E5UJZ2U6.js.map → campaign-writes-OMHR7WHK.js.map} +0 -0
- /package/dist/{campaigns-AHXTOR45.js.map → campaigns-IEA4VRFI.js.map} +0 -0
- /package/dist/{campaigns-ZWPYUZFF.js.map → campaigns-PXDNM7HX.js.map} +0 -0
- /package/dist/{campaigns-YFB3PCLE.js.map → campaigns-TE5F5ISC.js.map} +0 -0
- /package/dist/{canvas-NJV6RSX3.js.map → canvas-X47MCSBD.js.map} +0 -0
- /package/dist/{capabilities-FJAYWDY6.js.map → capabilities-CPKDR3Q2.js.map} +0 -0
- /package/dist/{catalog-XEALUTOG.js.map → catalog-AJ6LIJZF.js.map} +0 -0
- /package/dist/{catalogs-MWMKCFWI.js.map → catalogs-5F7RB44K.js.map} +0 -0
- /package/dist/{changes-CNGAKH52.js.map → changes-AIAMM7QF.js.map} +0 -0
- /package/dist/{chatgpt-FV4PVN4W.js.map → chatgpt-U5FFOZAO.js.map} +0 -0
- /package/dist/{chats-65GTXYEC.js.map → chats-7TXOBRLH.js.map} +0 -0
- /package/dist/{check-YQIY4BTG.js.map → check-FGOIYTSV.js.map} +0 -0
- /package/dist/{chunk-KPQJVORC.js.map → chunk-365APOGK.js.map} +0 -0
- /package/dist/{chunk-D4MNDYPX.js.map → chunk-44RZEKDP.js.map} +0 -0
- /package/dist/{chunk-XOW4EBDN.js.map → chunk-6U4ILEJ3.js.map} +0 -0
- /package/dist/{chunk-MIIY3MVK.js.map → chunk-6Y4AXDU4.js.map} +0 -0
- /package/dist/{chunk-FRYH2T32.js.map → chunk-7SOSXRZC.js.map} +0 -0
- /package/dist/{chunk-PUDEC2K3.js.map → chunk-AOV3VKPL.js.map} +0 -0
- /package/dist/{chunk-ZFBDDOKR.js.map → chunk-B3JBIAXI.js.map} +0 -0
- /package/dist/{chunk-JPFYTKQA.js.map → chunk-C3742YL7.js.map} +0 -0
- /package/dist/{chunk-IIC5WLB7.js.map → chunk-D7VLNNDV.js.map} +0 -0
- /package/dist/{chunk-IIXEFX33.js.map → chunk-DBDQEIGX.js.map} +0 -0
- /package/dist/{chunk-3YZBGH2W.js.map → chunk-DFTN5SRH.js.map} +0 -0
- /package/dist/{chunk-5NLZJ75G.js.map → chunk-DX3TB5RV.js.map} +0 -0
- /package/dist/{chunk-CYT3HWSV.js.map → chunk-DZE2UHST.js.map} +0 -0
- /package/dist/{chunk-2U4HJDUO.js.map → chunk-E4DHH5EL.js.map} +0 -0
- /package/dist/{chunk-7ANWNBVL.js.map → chunk-F3OYRVLY.js.map} +0 -0
- /package/dist/{chunk-2RYEYBMF.js.map → chunk-F4EMZQ66.js.map} +0 -0
- /package/dist/{chunk-JGXB7NBP.js.map → chunk-FBW4FH4V.js.map} +0 -0
- /package/dist/{chunk-L2IC4WE6.js.map → chunk-FN4QQJPZ.js.map} +0 -0
- /package/dist/{chunk-52YU7I5M.js.map → chunk-FY6CYD5M.js.map} +0 -0
- /package/dist/{chunk-7EVUIALZ.js.map → chunk-FZNCML5Q.js.map} +0 -0
- /package/dist/{chunk-YY6D3PI6.js.map → chunk-G4ZQIR3R.js.map} +0 -0
- /package/dist/{chunk-NJ6ZJGUO.js.map → chunk-G6YNRJZO.js.map} +0 -0
- /package/dist/{chunk-6HQATKKL.js.map → chunk-GBT2TTA2.js.map} +0 -0
- /package/dist/{chunk-GOC2ZZJF.js.map → chunk-GZAHNOUP.js.map} +0 -0
- /package/dist/{chunk-Q7V5XSFZ.js.map → chunk-HAV4GBBK.js.map} +0 -0
- /package/dist/{chunk-E3G2BZEQ.js.map → chunk-HXHAYR5R.js.map} +0 -0
- /package/dist/{chunk-Y2VYMMVR.js.map → chunk-IFAZWSIJ.js.map} +0 -0
- /package/dist/{chunk-GZV7523D.js.map → chunk-INW3G4P3.js.map} +0 -0
- /package/dist/{chunk-Z6WDG4DW.js.map → chunk-JPDIM55H.js.map} +0 -0
- /package/dist/{chunk-J4ZRPGNJ.js.map → chunk-JX3SQ26G.js.map} +0 -0
- /package/dist/{chunk-O5UWZ4AI.js.map → chunk-L3RQJHQO.js.map} +0 -0
- /package/dist/{chunk-W3XIDU5C.js.map → chunk-LIRPFZVV.js.map} +0 -0
- /package/dist/{chunk-TU3HH4O3.js.map → chunk-LNLUJ6TH.js.map} +0 -0
- /package/dist/{chunk-W5JX7LUK.js.map → chunk-LPECS3YX.js.map} +0 -0
- /package/dist/{chunk-7FH3IREG.js.map → chunk-LXDZCFII.js.map} +0 -0
- /package/dist/{chunk-YUZGTNAO.js.map → chunk-M2QT2THK.js.map} +0 -0
- /package/dist/{chunk-4YQ46MM4.js.map → chunk-M6I75FEO.js.map} +0 -0
- /package/dist/{chunk-6LFIF6BK.js.map → chunk-MTOHGVQD.js.map} +0 -0
- /package/dist/{chunk-RVWBLOXX.js.map → chunk-MVG66YDQ.js.map} +0 -0
- /package/dist/{chunk-YQ5DCDWD.js.map → chunk-NC6NLGN3.js.map} +0 -0
- /package/dist/{chunk-NKXH4YZT.js.map → chunk-NQMLQXXP.js.map} +0 -0
- /package/dist/{chunk-4U4YQOO2.js.map → chunk-OR6I7R7X.js.map} +0 -0
- /package/dist/{chunk-7IZNYZZ5.js.map → chunk-OWFZLCE2.js.map} +0 -0
- /package/dist/{chunk-JE3NZOFS.js.map → chunk-P4R37O5D.js.map} +0 -0
- /package/dist/{chunk-Z4GSPW5B.js.map → chunk-QJHAL4GT.js.map} +0 -0
- /package/dist/{chunk-LVR2UYQ7.js.map → chunk-QVFLYWE3.js.map} +0 -0
- /package/dist/{chunk-JPP3LYVH.js.map → chunk-QVG4U55R.js.map} +0 -0
- /package/dist/{chunk-TKDET4WF.js.map → chunk-R2G6SQ3U.js.map} +0 -0
- /package/dist/{chunk-DNI4DYGT.js.map → chunk-RNJVJBD7.js.map} +0 -0
- /package/dist/{chunk-F6MNCSXP.js.map → chunk-RWKK7GMY.js.map} +0 -0
- /package/dist/{chunk-D7DLBQLS.js.map → chunk-SCN5ZF4U.js.map} +0 -0
- /package/dist/{chunk-CBQTKSSP.js.map → chunk-SDWMLIIK.js.map} +0 -0
- /package/dist/{chunk-7MVVDZM2.js.map → chunk-SF3U3WQR.js.map} +0 -0
- /package/dist/{chunk-2N5MQP65.js.map → chunk-T7V2OPW2.js.map} +0 -0
- /package/dist/{chunk-7YHMZVKM.js.map → chunk-U56ERMJY.js.map} +0 -0
- /package/dist/{chunk-6VAUBRY3.js.map → chunk-UGGFCTH2.js.map} +0 -0
- /package/dist/{chunk-IGHITD2B.js.map → chunk-UJMTTIW2.js.map} +0 -0
- /package/dist/{chunk-LUWN4X7E.js.map → chunk-UP3VE7X4.js.map} +0 -0
- /package/dist/{chunk-TZPFQJTH.js.map → chunk-WMSRZZH7.js.map} +0 -0
- /package/dist/{chunk-5EQF26Z4.js.map → chunk-X77CRONC.js.map} +0 -0
- /package/dist/{chunk-SBID6GZZ.js.map → chunk-XGE7G3K3.js.map} +0 -0
- /package/dist/{chunk-UBUFWX5O.js.map → chunk-YJ4M3X7T.js.map} +0 -0
- /package/dist/{chunk-KYOKEQ5E.js.map → chunk-ZB7EZMK5.js.map} +0 -0
- /package/dist/{chunk-5I2TABSH.js.map → chunk-ZJXYWHQT.js.map} +0 -0
- /package/dist/{chunk-FZWLNE53.js.map → chunk-ZUML4HW7.js.map} +0 -0
- /package/dist/{chunk-B5RLBFMI.js.map → chunk-ZXG5MYV4.js.map} +0 -0
- /package/dist/{claim-IOM6PVO5.js.map → claim-KXDG6QWC.js.map} +0 -0
- /package/dist/{companies-WY4K6WLI.js.map → companies-7MWAWS6C.js.map} +0 -0
- /package/dist/{company-PVCI3LC7.js.map → company-U2OIPLKE.js.map} +0 -0
- /package/dist/{complete-2QF4BZ5T.js.map → complete-KUDG34NE.js.map} +0 -0
- /package/dist/{connect-GSLMEPHD.js.map → connect-TWMBWL5I.js.map} +0 -0
- /package/dist/{conversation-5NCE56L3.js.map → conversation-Z23EH7WU.js.map} +0 -0
- /package/dist/{conversion-report-DXPM2LDV.js.map → conversion-report-OILIT55D.js.map} +0 -0
- /package/dist/{conversion-upload-command-HJOVSWZD.js.map → conversion-upload-command-6PILGKCD.js.map} +0 -0
- /package/dist/{conversion-writes-6MJ7JTHC.js.map → conversion-writes-GLCPMZXY.js.map} +0 -0
- /package/dist/{conversions-DGKHWOMN.js.map → conversions-KI7FEA7E.js.map} +0 -0
- /package/dist/{conversions-VM4HKWBN.js.map → conversions-O2V6L6DY.js.map} +0 -0
- /package/dist/{create-KKJX3JLV.js.map → create-KUOSRCES.js.map} +0 -0
- /package/dist/{create-2EFBCVF4.js.map → create-VZ2QUD53.js.map} +0 -0
- /package/dist/{create-TRL622CZ.js.map → create-XYILXJQS.js.map} +0 -0
- /package/dist/{create-X2R7FNDZ.js.map → create-YOI6O536.js.map} +0 -0
- /package/dist/{creatives-D5WLUJWC.js.map → creatives-6WQAK2AD.js.map} +0 -0
- /package/dist/{creatives-EWTMQK7H.js.map → creatives-CM24TZ4T.js.map} +0 -0
- /package/dist/{credentials-H4W36WE7.js.map → credentials-YDMJYQX3.js.map} +0 -0
- /package/dist/{critique-4Q3XEGS5.js.map → critique-X6DG7ZKI.js.map} +0 -0
- /package/dist/{crm-T3NV4EOU.js.map → crm-R3W3KRDT.js.map} +0 -0
- /package/dist/{crm-APNCVLF2.js.map → crm-USZALGLQ.js.map} +0 -0
- /package/dist/{currency-NRI2TLP3.js.map → currency-KV3FJN27.js.map} +0 -0
- /package/dist/{customers-VZYCYMSL.js.map → customers-4P7K65PC.js.map} +0 -0
- /package/dist/{data-HJHRUE34.js.map → data-BKTQ4YER.js.map} +0 -0
- /package/dist/{delete-BWPILWUN.js.map → delete-5FTWWBXC.js.map} +0 -0
- /package/dist/{delete-VJEOLHNE.js.map → delete-FYNPYLYX.js.map} +0 -0
- /package/dist/{delete-JGR3HPY5.js.map → delete-SSMJXTBX.js.map} +0 -0
- /package/dist/{demographics-CBJ26IAA.js.map → demographics-EQG3AEXT.js.map} +0 -0
- /package/dist/{discard-3MMFPF26.js.map → discard-THTOYECS.js.map} +0 -0
- /package/dist/{discover-F4TO7A3K.js.map → discover-FORYQELN.js.map} +0 -0
- /package/dist/{domain-7MSMJMDP.js.map → domain-P3TEXMW5.js.map} +0 -0
- /package/dist/{download-N3R6G3QV.js.map → download-LYZ2LCKD.js.map} +0 -0
- /package/dist/{draft-OLSFLDME.js.map → draft-5WZYZSGH.js.map} +0 -0
- /package/dist/{draft-ACWK2FGW.js.map → draft-I5FLNPRP.js.map} +0 -0
- /package/dist/{draft-MKFFXTJK.js.map → draft-QX7DEJST.js.map} +0 -0
- /package/dist/{draft-F6FHBF6I.js.map → draft-TLXYX73G.js.map} +0 -0
- /package/dist/{draft-XBO2DYIJ.js.map → draft-VBEIOMYX.js.map} +0 -0
- /package/dist/{experiments-VYYS5Y7W.js.map → experiments-P45F6ETV.js.map} +0 -0
- /package/dist/{extract-F7D62JMA.js.map → extract-V56BJWHI.js.map} +0 -0
- /package/dist/{facets-6GJJIRRR.js.map → facets-IKX2537Q.js.map} +0 -0
- /package/dist/{feedback-3TYBQZY4.js.map → feedback-SUFQ2ZJB.js.map} +0 -0
- /package/dist/{fetch-JBXBMJBK.js.map → fetch-YKXXN6UE.js.map} +0 -0
- /package/dist/{fit-ZFPYO3MS.js.map → fit-HPRLXVND.js.map} +0 -0
- /package/dist/{flows-PP6BRBD7.js.map → flows-YLA3VDPP.js.map} +0 -0
- /package/dist/{forecast-H24SICMO.js.map → forecast-KPJ7WCUA.js.map} +0 -0
- /package/dist/{forecast-AQDB4LLG.js.map → forecast-TSYLGQAK.js.map} +0 -0
- /package/dist/{funnel-BFVSY5A6.js.map → funnel-SVO2SF3A.js.map} +0 -0
- /package/dist/{generate-SIS2OKZR.js.map → generate-IYV672VJ.js.map} +0 -0
- /package/dist/{get-SPKPNRXF.js.map → get-GC3OCAAM.js.map} +0 -0
- /package/dist/{get-J4CETDIS.js.map → get-IGEAFGDQ.js.map} +0 -0
- /package/dist/{google-4IKGTP3C.js.map → google-TMDWMV5J.js.map} +0 -0
- /package/dist/{google-ads-SGKGDWV6.js.map → google-ads-FH7FPLE3.js.map} +0 -0
- /package/dist/{history-K5ULNTEM.js.map → history-ARBPQ4EE.js.map} +0 -0
- /package/dist/{history-5EATPXPS.js.map → history-DKOEXEHI.js.map} +0 -0
- /package/dist/{history-QOQY2F77.js.map → history-R6NI2GSX.js.map} +0 -0
- /package/dist/{hubspot-HNZLT2BH.js.map → hubspot-KYCGWZKK.js.map} +0 -0
- /package/dist/{ideas-35LERPN4.js.map → ideas-ONWEP2WA.js.map} +0 -0
- /package/dist/{images-R3EK4BDH.js.map → images-HI7SUZRP.js.map} +0 -0
- /package/dist/{ingest-LYVNO5M5.js.map → ingest-T5HB5N4A.js.map} +0 -0
- /package/dist/{ingest-5TSJM7A7.js.map → ingest-YPSRKTP4.js.map} +0 -0
- /package/dist/{insights-PVBTR5SK.js.map → insights-GXODLEC2.js.map} +0 -0
- /package/dist/{inspect-36R5WLLX.js.map → inspect-DK6B23M5.js.map} +0 -0
- /package/dist/{intent-T6BUKGQG.js.map → intent-6O5IPSOY.js.map} +0 -0
- /package/dist/{keyword-gap-TC7UWZ5Q.js.map → keyword-gap-DYNWN7QL.js.map} +0 -0
- /package/dist/{keyword-metrics-JRB6DREM.js.map → keyword-metrics-LAX4E7EX.js.map} +0 -0
- /package/dist/{keywords-for-site-FQOELX5H.js.map → keywords-for-site-EWXNSUNC.js.map} +0 -0
- /package/dist/{languages-AFTPOHIV.js.map → languages-R2NXKMXP.js.map} +0 -0
- /package/dist/{leads-ILZAOKIF.js.map → leads-E4Z5I5NW.js.map} +0 -0
- /package/dist/{learn-AWQ6JTP2.js.map → learn-BMTDLH6C.js.map} +0 -0
- /package/dist/{line-item-writes-APTZP3DI.js.map → line-item-writes-2GY4ENP4.js.map} +0 -0
- /package/dist/{line-items-5YSLNBGJ.js.map → line-items-QTUQ7VHT.js.map} +0 -0
- /package/dist/{link-2MGGDKLP.js.map → link-IFE2UQZ2.js.map} +0 -0
- /package/dist/{linkedin-EBOTX37R.js.map → linkedin-DMRTMNHL.js.map} +0 -0
- /package/dist/{linkedin-person-FNKW44RV.js.map → linkedin-person-LDKH6CYE.js.map} +0 -0
- /package/dist/{list-75NNAGBR.js.map → list-CTEYZ2KA.js.map} +0 -0
- /package/dist/{list-CJU2Y6OP.js.map → list-KXS76WRQ.js.map} +0 -0
- /package/dist/{list-L3NBK64M.js.map → list-UDYTPBSY.js.map} +0 -0
- /package/dist/{locations-OPMVTKHK.js.map → locations-6LW7LNOI.js.map} +0 -0
- /package/dist/{locations-BMGOEKLN.js.map → locations-IJ6NZQHI.js.map} +0 -0
- /package/dist/{log-JJDSDLOK.js.map → log-WRXEC3Y4.js.map} +0 -0
- /package/dist/{make-U323I4SF.js.map → make-KALI7FDX.js.map} +0 -0
- /package/dist/{map-KFN2QLYV.js.map → map-FC6H2VXU.js.map} +0 -0
- /package/dist/{mcp-KGAXFVUM.js.map → mcp-JEMZ5S3N.js.map} +0 -0
- /package/dist/{media-sources-BSECLIMM.js.map → media-sources-6AUMIFLZ.js.map} +0 -0
- /package/dist/{members-6FHV7EM2.js.map → members-SODGC2JS.js.map} +0 -0
- /package/dist/{meta-SPPSYRMC.js.map → meta-2NGF4AWV.js.map} +0 -0
- /package/dist/{metrics-S5G6W36J.js.map → metrics-J4JSMZHP.js.map} +0 -0
- /package/dist/{models-H5WM4UGE.js.map → models-ZFQ6KKYQ.js.map} +0 -0
- /package/dist/{normalize-YWIDJR4R.js.map → normalize-MJXBLITR.js.map} +0 -0
- /package/dist/{options-R4Q46LU5.js.map → options-R67VNTFT.js.map} +0 -0
- /package/dist/{organization-76LF7MHK.js.map → organization-WVNV6JTP.js.map} +0 -0
- /package/dist/{people-BK6GRJXB.js.map → people-CI74TMWP.js.map} +0 -0
- /package/dist/{people-HR7CAKZS.js.map → people-TPZC5SV3.js.map} +0 -0
- /package/dist/{performance-Y2S5FDGI.js.map → performance-6COMR55P.js.map} +0 -0
- /package/dist/{performance-PTBBUEZU.js.map → performance-Q53WVYP3.js.map} +0 -0
- /package/dist/{pipedrive-NONV3NBQ.js.map → pipedrive-MALR7HLL.js.map} +0 -0
- /package/dist/{pixels-KIFMIBPJ.js.map → pixels-JU3PPEBU.js.map} +0 -0
- /package/dist/{preview-HD3QAR53.js.map → preview-MLUYV5YJ.js.map} +0 -0
- /package/dist/{promoted-tweet-writes-3LNFAGEM.js.map → promoted-tweet-writes-VA77PU6F.js.map} +0 -0
- /package/dist/{promoted-tweets-IHUQA35K.js.map → promoted-tweets-BLEB2562.js.map} +0 -0
- /package/dist/{publish-IUE7RHRD.js.map → publish-O4A5LYXC.js.map} +0 -0
- /package/dist/{query-5XB5OP4B.js.map → query-2WO3CHHS.js.map} +0 -0
- /package/dist/{reddit-BOTUVLHL.js.map → reddit-EYIVSTLX.js.map} +0 -0
- /package/dist/{refresh-RPVVOQX4.js.map → refresh-6ULVVUX3.js.map} +0 -0
- /package/dist/{release-4YZWORV2.js.map → release-R25UDKC4.js.map} +0 -0
- /package/dist/{relevant-pages-NUWR6FNB.js.map → relevant-pages-LQADLWOX.js.map} +0 -0
- /package/dist/{remove-FO7I4RQ3.js.map → remove-2J5JPNYD.js.map} +0 -0
- /package/dist/{reopen-FMPQVL2C.js.map → reopen-WJTGGGSW.js.map} +0 -0
- /package/dist/{rerun-RYL5UJRE.js.map → rerun-6GYEOTLW.js.map} +0 -0
- /package/dist/{research-2H3ST6C2.js.map → research-K32VHARZ.js.map} +0 -0
- /package/dist/{research-3LSWITEK.js.map → research-RARA76OT.js.map} +0 -0
- /package/dist/{reset-PNCDMWGO.js.map → reset-6NCDX64B.js.map} +0 -0
- /package/dist/{reset-RI6NO6NQ.js.map → reset-PJHTU3FZ.js.map} +0 -0
- /package/dist/{resolve-SGL3A5N5.js.map → resolve-KOJLKGF2.js.map} +0 -0
- /package/dist/{retry-JRH3WJSF.js.map → retry-2SCLTF22.js.map} +0 -0
- /package/dist/{retry-4FMP73MN.js.map → retry-737X2PY7.js.map} +0 -0
- /package/dist/{revenue-V4ODLBZ6.js.map → revenue-7CTR5X4Y.js.map} +0 -0
- /package/dist/{rules-EPNUXMHG.js.map → rules-BCMC4ZO2.js.map} +0 -0
- /package/dist/{run-2SPQZ2ZZ.js.map → run-ESJTTQZR.js.map} +0 -0
- /package/dist/{run-HLQUPQZ2.js.map → run-WFL6QOQC.js.map} +0 -0
- /package/dist/{scaffold-ad-3YLGTFRT.js.map → scaffold-ad-4O2POBKK.js.map} +0 -0
- /package/dist/{scaffold-static-ad-3RCD642H.js.map → scaffold-static-ad-ZG47OQP3.js.map} +0 -0
- /package/dist/{scaffold-video-F5HTBM4R.js.map → scaffold-video-BGPRMLF5.js.map} +0 -0
- /package/dist/{schedule-O36GKVZV.js.map → schedule-3ZN3BEV4.js.map} +0 -0
- /package/dist/{scheduled-agents-4UNG26CX.js.map → scheduled-agents-6NPQYF7S.js.map} +0 -0
- /package/dist/{schema-SRFWL4ZT.js.map → schema-U4OPVDEL.js.map} +0 -0
- /package/dist/{schema-EOQASVWI.js.map → schema-VVWZ74WG.js.map} +0 -0
- /package/dist/{search-DLMLA423.js.map → search-CMNN5ZE7.js.map} +0 -0
- /package/dist/{search-terms-WKEPRHN2.js.map → search-terms-L7XVSUED.js.map} +0 -0
- /package/dist/{select-KBYLNNL4.js.map → select-3FRMBMKG.js.map} +0 -0
- /package/dist/{set-6L7YV57E.js.map → set-B3UW3XQ3.js.map} +0 -0
- /package/dist/{set-prompt-WBYLKIO3.js.map → set-prompt-T3DYLITY.js.map} +0 -0
- /package/dist/{setup-links-XT4TEZWI.js.map → setup-links-TNSCVEM4.js.map} +0 -0
- /package/dist/{shopify-ICWRWUZE.js.map → shopify-XK6WESI7.js.map} +0 -0
- /package/dist/{site-LYDFZM5U.js.map → site-IKFHQS4O.js.map} +0 -0
- /package/dist/{sources-FPWA4AJN.js.map → sources-IURSG7ZP.js.map} +0 -0
- /package/dist/{sources-CP4UQ5KA.js.map → sources-X24PA4RB.js.map} +0 -0
- /package/dist/{stale-GWG4V65Q.js.map → stale-JGUZLHIV.js.map} +0 -0
- /package/dist/{status-W6S7AY43.js.map → status-L6PF6S2Z.js.map} +0 -0
- /package/dist/{stock-6VZFFAHW.js.map → stock-SZVCE7TD.js.map} +0 -0
- /package/dist/{studio-VU7CEAEU.js.map → studio-JM6ZM4VP.js.map} +0 -0
- /package/dist/{sync-I6ZVQOSZ.js.map → sync-AJSPVD3B.js.map} +0 -0
- /package/dist/{sync-definition-NADPEPFQ.js.map → sync-definition-WUC3JIXI.js.map} +0 -0
- /package/dist/{tags-47QAF2ZJ.js.map → tags-4J24JJCL.js.map} +0 -0
- /package/dist/{tags-ETUV62EB.js.map → tags-B7Z2JDUO.js.map} +0 -0
- /package/dist/{tags-AN5B56GA.js.map → tags-OBUNEHLM.js.map} +0 -0
- /package/dist/{tags-IQ6BCRLE.js.map → tags-R2QYEYZP.js.map} +0 -0
- /package/dist/{tags-UKAR6FCS.js.map → tags-T4GJL3X3.js.map} +0 -0
- /package/dist/{targeting-criteria-4E6SURB5.js.map → targeting-criteria-VZ2UHFWC.js.map} +0 -0
- /package/dist/{targets-GJUR5WTB.js.map → targets-IZF263WP.js.map} +0 -0
- /package/dist/{testimonials-UCVT5VQY.js.map → testimonials-EMD6I4A4.js.map} +0 -0
- /package/dist/{themes-2T5BOIZU.js.map → themes-VQHOGFND.js.map} +0 -0
- /package/dist/{top-companies-WID72GN5.js.map → top-companies-NTTNHKHK.js.map} +0 -0
- /package/dist/{transcript-OMYAOZSP.js.map → transcript-UEHGL67P.js.map} +0 -0
- /package/dist/{translate-TIAJBFQ3.js.map → translate-UBVQOFVD.js.map} +0 -0
- /package/dist/{triggers-IEMDGR6W.js.map → triggers-7JRPTB2V.js.map} +0 -0
- /package/dist/{unlink-WCLQPP7S.js.map → unlink-56PVDBCF.js.map} +0 -0
- /package/dist/{unstage-KRPX3AGF.js.map → unstage-JPWHVQ43.js.map} +0 -0
- /package/dist/{update-CPSZ4EH3.js.map → update-DKPGAWYZ.js.map} +0 -0
- /package/dist/{update-CQ4VF2S5.js.map → update-MTCISYL5.js.map} +0 -0
- /package/dist/{update-XF462N7M.js.map → update-OWF4YMIR.js.map} +0 -0
- /package/dist/{update-NP2MOMJS.js.map → update-V2LDE5MX.js.map} +0 -0
- /package/dist/{upload-WRRNFTRK.js.map → upload-EUKDFNGN.js.map} +0 -0
- /package/dist/{url-options-BANFHIHH.js.map → url-options-QYL7J3CQ.js.map} +0 -0
- /package/dist/{url-params-DKGJVTGL.js.map → url-params-7QV3BS4F.js.map} +0 -0
- /package/dist/{validate-6AHY2UQR.js.map → validate-LVRQ6BAT.js.map} +0 -0
- /package/dist/{videos-FG64T3XK.js.map → videos-KR7S3NTF.js.map} +0 -0
- /package/dist/{viewer-check-3YGDWCTR.js.map → viewer-check-P56Q4MBH.js.map} +0 -0
- /package/dist/{visuals-3C2QUE6G.js.map → visuals-KW4UQ7XC.js.map} +0 -0
- /package/dist/{web-K3JH5TXT.js.map → web-BGSYX4MC.js.map} +0 -0
- /package/dist/{winning-ads-QDVS56XX.js.map → winning-ads-Q5NRUXCB.js.map} +0 -0
- /package/dist/{write-commands-X72A5F7K.js.map → write-commands-B25QPBUY.js.map} +0 -0
- /package/dist/{x-JU6LF2MM.js.map → x-LGCRY3MH.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/ads/google/draft-account.ts","../src/commands/ads/google/write-shared.ts","../src/commands/ads/google/copy-list-usage.ts","../src/commands/ads/google/draft-status.ts","../src/commands/ads/google/stage-streak.ts"],"sourcesContent":["import type { GoogleDraftListResponse } from \"@baker/api/ads-google\";\n\n/**\n * `--customer-id` on the draft reads. A draft belongs to the chat, not to an account, and may span\n * several; every other Google Ads command takes the flag, so agents carry it here (BAKER-497).\n * `list` narrows to that account and says what the others still hold; `validate` and `show` keep\n * their whole answer, because publish sends every account together and a ref names one op.\n */\n\nfunction changes(n: number, staged: boolean): string {\n const noun = staged ? \"staged change\" : \"change\";\n return n === 1 ? `1 ${noun}` : `${n} ${noun}s`;\n}\n\n/**\n * The draft as one account holds it, with what the rest of the chat's draft holds. `empty` is the\n * readable line for an account holding none of it, where the whole-chat \"nothing staged\" would be false.\n * Only an active draft's other changes are still to publish; a published one's are already done.\n */\nexport function draftInAccount(\n data: GoogleDraftListResponse,\n customerId: string,\n): { data: GoogleDraftListResponse; hints: string[]; empty?: string } {\n const ops = data.ops.filter((op) => op.customerId === customerId);\n const narrowed = {\n ...data,\n count: ops.length,\n ops,\n ...(data.tree ? { tree: data.tree.filter((node) => node.customerId === customerId) } : {}),\n };\n const others = data.ops.filter((op) => op.customerId !== customerId);\n if (others.length === 0) return { data: narrowed, hints: [] };\n const staged = data.status === \"active\";\n const accounts = [...new Set(others.map((op) => op.customerId))];\n const where = `account${accounts.length === 1 ? \"\" : \"s\"} ${accounts.join(\", \")}`;\n const one = others.length === 1;\n if (ops.length === 0) {\n return {\n data: narrowed,\n empty: `No Google Ads changes in account ${customerId} on this chat.`,\n hints: [`This chat's ${changes(others.length, staged)} ${one ? \"is\" : \"are\"} in ${where}, not ${customerId}.`],\n };\n }\n const more = `${others.length} more ${staged ? \"staged \" : \"\"}change${one ? \"\" : \"s\"}`;\n const verb = staged ? (one ? \"publishes\" : \"publish\") : one ? \"is\" : \"are\";\n return {\n data: narrowed,\n hints: [\n `Showing account ${customerId} only. ${more} in ${where} ${verb} ${staged ? \"with this chat too\" : \"on this chat too\"}; \\`baker ads google draft list\\` without --customer-id shows ${one ? \"it\" : \"them\"}.`,\n ],\n };\n}\n\n/** `draft validate --customer-id`: said back, since the verdicts still cover every account. */\nexport function validateAccountHint(customerId: string): string {\n return `Validated this chat's whole draft, not only account ${customerId}: publish sends every account's changes together, so each verdict above counts.`;\n}\n\n/** `draft show --customer-id` naming another account than the op's own. */\nexport function showAccountHint(customerId: string, opCustomerId: string): string | undefined {\n return opCustomerId === customerId ? undefined : `This op is staged in account ${opCustomerId}, not ${customerId}.`;\n}\n","import { readFileSync } from \"node:fs\";\nimport {\n GOOGLE_DRAFT_BATCH_MAX,\n type GoogleDraftListResponse,\n type GoogleDraftOpKind,\n type GoogleDraftStageBatchResponse,\n type GoogleDraftStageResponse,\n googleDraftBatchOpSchema,\n googleDraftOpInputSchema,\n OP_TOO_LARGE_FIX,\n OP_TOO_LARGE_MESSAGE_START,\n toMicros,\n} from \"@baker/api/ads-google\";\nimport { defineCommand } from \"citty\";\nimport { ApiError, apiPost } from \"../../../client.ts\";\nimport { requireChatId, resolveChatId } from \"../../../env.ts\";\nimport { handleConnectionError, isNotConnectedError } from \"../../../error-handler.ts\";\nimport { repeatedValues } from \"../../../lib/repeatedFlags.ts\";\nimport { type CommandEffectDeclaration, type PayloadSource, payloadArg, withEffect } from \"../../../schemas.ts\";\nimport { payloadFix } from \"../../capabilities/fix.ts\";\nimport { type DraftWhere, draftListWhere, wholeDraftHints } from \"../../draft-where.ts\";\nimport { booleanWordPositionalError } from \"../boolean-word-positional.ts\";\nimport { adCopyHints } from \"../copy-hints.ts\";\nimport { hintLines, withHints } from \"../hints.ts\";\nimport { bareCustomerId, writeJsonEnvelope } from \"../output.ts\";\nimport { termsRefusalFix } from \"../terms-output.ts\";\nimport { copyListCountFix } from \"./copy-list-usage.ts\";\nimport { draftInAccount } from \"./draft-account.ts\";\nimport { renderDraftStatus } from \"./draft-status.ts\";\nimport { recordSingleStage, recordTreeStage } from \"./stage-streak.ts\";\n\n/**\n * Shared plumbing for the staged Google Ads write commands. Writes NEVER hit\n * the Google Ads API directly: every command stages an op against this chat's\n * draft (`/api/ads/google/draft/stage`), the dashboard shows it as a pending\n * Google Ads change, and the draft applies as one `GoogleAdsService.Mutate`\n * request per advertiser account when the chat is published. `--customer-id` is\n * required on every write — a draft may span several accounts, so nothing is\n * picked for you.\n */\n\n/** What a staged Google Ads write command does: one op of these kinds onto this chat's draft. */\nexport function googleStaged(...kinds: GoogleDraftOpKind[]): CommandEffectDeclaration {\n return { effect: \"stage\", routes: [\"POST /api/ads/google/draft/stage\"], stages: kinds };\n}\n\n/** A staged write that takes one op or many: several go as one batch (`stageGoogleOps`). */\nexport function googleStagedBatch(...kinds: GoogleDraftOpKind[]): CommandEffectDeclaration {\n return {\n effect: \"stage\",\n routes: [\"POST /api/ads/google/draft/stage\", \"POST /api/ads/google/draft/stage-batch\"],\n stages: kinds,\n };\n}\n\nexport function failWriteValidation(message: string): never {\n writeJsonEnvelope({ ok: false, error: { code: \"VALIDATION_ERROR\", message } });\n process.exit(1);\n}\n\nexport function requireCustomerId(args: Record<string, unknown>): string {\n const given = (args[\"customer-id\"] ?? args.customerId) as string | undefined;\n const raw = given === undefined ? undefined : bareCustomerId(String(given));\n if (!raw || !/^\\d{10}$/.test(raw)) {\n failWriteValidation(\"pass --customer-id as the 10-digit Google Ads customer id (386-508-3115 or 3865083115)\");\n }\n return raw;\n}\n\nexport function requireTarget(args: Record<string, unknown>, entity: string): string {\n // `--flag false` is refused, not documented: citty parses it as the flag set to TRUE plus a stray\n // positional nobody consumes, so on `conversions update --primary` it silently PROMOTES an action\n // into what every Maximize Conversions campaign bids toward. Caught here because this is the only\n // place on this surface that reads positionals, and every target-taking command goes through it.\n const booleanWord = booleanWordPositionalError(args, entity);\n if (booleanWord) {\n failWriteValidation(booleanWord);\n }\n const positional = Array.isArray(args._) ? args._[0] : undefined;\n const target = args.id ?? args.target ?? args.ref ?? positional;\n if (typeof target !== \"string\" || target.length === 0) {\n failWriteValidation(`pass the ${entity} resource name or id as the positional argument`);\n }\n return target;\n}\n\n/**\n * The targets a bulk status command was given: every positional (comma-separated ones split), plus\n * `--file` with one target per line (blank lines and `#` comments skipped), deduped in order. One\n * call then stages them all as one batch instead of one command per row.\n */\nexport function targetEntries(args: Record<string, unknown>, entity: string): string[] {\n const booleanWord = booleanWordPositionalError(args, entity);\n if (booleanWord) {\n failWriteValidation(booleanWord);\n }\n const positionals = Array.isArray(args._) ? args._.filter((v): v is string => typeof v === \"string\") : [];\n const raw = [...positionals.flatMap((v) => v.split(\",\")), ...rawFileEntries(args.file)]\n .map((v) => v.trim())\n .filter(Boolean);\n const targets = [...new Set(raw)];\n if (targets.length === 0) {\n failWriteValidation(`pass the ${entity} resource name(s) as positional arguments and/or --file (one per line)`);\n }\n if (targets.length > GOOGLE_DRAFT_BATCH_MAX) {\n failWriteValidation(`${targets.length} targets exceeds the batch limit of ${GOOGLE_DRAFT_BATCH_MAX} — split them`);\n }\n return targets;\n}\n\n/**\n * The targets an update command was given: one, or several (space- or comma-separated) that each get\n * the same payload, staged as one batch. `--file` here is the payload, never a list of targets.\n */\nexport function updateTargets(args: Record<string, unknown>, entity: string): string[] {\n return Array.isArray(args._) && args._.length > 0\n ? targetEntries({ ...args, file: undefined }, entity)\n : [requireTarget(args, entity)];\n}\n\nexport function requireStringFlag(value: unknown, flag: string): string {\n if (typeof value !== \"string\" || value.length === 0) {\n failWriteValidation(`${flag} is required`);\n }\n return value;\n}\n\n/** Money flag in major currency units → micros. */\nexport function microsFlag(value: unknown, flag: string): number | undefined {\n if (value === undefined || value === null || value === \"\") {\n return undefined;\n }\n const num = Number(value);\n if (Number.isNaN(num) || num <= 0) {\n failWriteValidation(`${flag} must be a positive amount (major currency units, e.g. 50 or 50.00)`);\n }\n return toMicros(num);\n}\n\n/** Split a comma-separated flag into trimmed non-empty values. */\nexport function listFlag(value: unknown): string[] | undefined {\n if (typeof value !== \"string\" || value.length === 0) {\n return undefined;\n }\n const items = value\n .split(\",\")\n .map((v) => v.trim())\n .filter(Boolean);\n return items.length > 0 ? items : undefined;\n}\n\nexport interface KeywordEntry {\n text: string;\n matchType: string;\n}\n\nconst MATCH_TYPES = new Set([\"EXACT\", \"PHRASE\", \"BROAD\"]);\n\n/**\n * One raw keyword entry → { text, matchType }. A trailing `:EXACT|:PHRASE|:BROAD`\n * suffix overrides the default match type; colons and commas aren't legal in Google\n * keyword text, so the syntax is unambiguous.\n */\nfunction parseKeywordEntry(raw: string, defaultMatch: string | undefined): KeywordEntry {\n const colon = raw.lastIndexOf(\":\");\n if (colon > 0) {\n const suffix = raw\n .slice(colon + 1)\n .trim()\n .toUpperCase();\n if (MATCH_TYPES.has(suffix)) {\n return { text: raw.slice(0, colon).trim(), matchType: suffix };\n }\n failWriteValidation(`\"${raw}\": \":${raw.slice(colon + 1)}\" is not a match type (EXACT | PHRASE | BROAD)`);\n }\n if (!defaultMatch) {\n failWriteValidation(`\"${raw}\" has no match type — add a :EXACT/:PHRASE/:BROAD suffix or pass --match-type`);\n }\n return { text: raw, matchType: defaultMatch };\n}\n\n/**\n * Raw --text value(s) → individual entries: repeated flags and comma-separated\n * both work. The repeats have to come off `rawArgs`, because citty parses a\n * repeated flag down to its last value alone.\n */\nfunction rawTextEntries(value: unknown, rawArgs: readonly string[] | undefined): string[] {\n return repeatedValues(rawArgs, \"text\", value)\n .flatMap((v) => v.split(\",\"))\n .map((v) => v.trim())\n .filter(Boolean);\n}\n\n/** Newline-separated keyword file: one `text[:MATCH_TYPE]` per line; blank lines and `#` comments skipped. */\nfunction rawFileEntries(path: unknown): string[] {\n return typeof path === \"string\" && path.length > 0 ? fileLines(path) : [];\n}\n\n/** A text file's entries: one per line, trimmed; blank lines and `#` comments skipped. */\nexport function fileLines(path: string): string[] {\n return readFileSync(path, \"utf8\")\n .split(/\\r?\\n/)\n .map((line) => line.trim())\n .filter((line) => line.length > 0 && !line.startsWith(\"#\"));\n}\n\n/**\n * The keyword batch a command was invoked with: comma-separated `--text` entries\n * (optional `:MATCH_TYPE` suffix each) plus `--file` lines, deduped, each falling\n * back to `--match-type`. One entry stages exactly like before; many stage as one batch.\n */\nexport function keywordEntries(args: Record<string, unknown>, rawArgs?: readonly string[]): KeywordEntry[] {\n const defaultMatch = typeof args[\"match-type\"] === \"string\" ? args[\"match-type\"].toUpperCase() : undefined;\n const raw = [...rawTextEntries(args.text, rawArgs), ...rawFileEntries(args.file)];\n if (raw.length === 0) {\n failWriteValidation(\"pass keywords via --text (comma-separated) and/or --file (one per line)\");\n }\n if (raw.length > GOOGLE_DRAFT_BATCH_MAX) {\n failWriteValidation(`${raw.length} keywords exceeds the batch limit of ${GOOGLE_DRAFT_BATCH_MAX}`);\n }\n const entries: KeywordEntry[] = [];\n const seen = new Set<string>();\n for (const item of raw) {\n const entry = parseKeywordEntry(item, defaultMatch);\n const key = JSON.stringify([entry.text, entry.matchType]);\n if (!seen.has(key)) {\n seen.add(key);\n entries.push(entry);\n }\n }\n return entries;\n}\n\n/**\n * The payloads behind `--file`: a path to a JSON file, or the JSON written inline. The file holds one\n * payload object, a JSON array of them, or JSON Lines (one object per line) — many payloads stage as\n * one batch, which is how a bulk change lands in one call instead of hundreds.\n *\n * Inline is here because every doc example already writes it that way — `packages/cli/README.md`\n * and the scaffold's `ads-google.md` both show `--file '{\"type\":\"image\",…}'` — while the arg only\n * ever read a path, so following the documentation answered with a raw ENOENT stack trace. Reading\n * a leading `{` or `[` as the payload makes those examples true rather than making the agent re-learn\n * the one shape that works.\n */\nexport function loadJsonPayloads(path: unknown): Array<Record<string, unknown>> {\n if (typeof path !== \"string\" || path.length === 0) {\n return [];\n }\n const inline = /^\\s*[[{]/.test(path);\n const source = inline ? \"inline JSON\" : path;\n const text = inline ? path : readFileSync(path, \"utf8\");\n return parsedPayloads(text, source).map((item, index, all) => {\n if (item === null || typeof item !== \"object\" || Array.isArray(item)) {\n failWriteValidation(\n all.length === 1 ? `${source} must contain a JSON object` : `${source}: item ${index} must be a JSON object`,\n );\n }\n return item as Record<string, unknown>;\n });\n}\n\n/** One JSON value (an array spreads into its items), else JSON Lines; the JSON error when neither parses. */\nfunction parsedPayloads(text: string, source: string): unknown[] {\n try {\n const parsed = JSON.parse(text) as unknown;\n return Array.isArray(parsed) ? parsed : [parsed];\n } catch (err) {\n if (!(err instanceof SyntaxError)) {\n throw err;\n }\n const lines = text.split(/\\r?\\n/).filter((line) => line.trim().length > 0);\n if (lines.length > 1) {\n return lines.map((line, index) => parseJsonLine(line, index, source));\n }\n failWriteValidation(`${source} is not valid JSON: ${err.message}`);\n }\n}\n\n/** One JSON Lines entry, or the line's own error naming where it is. */\nfunction parseJsonLine(line: string, index: number, source: string): unknown {\n try {\n return JSON.parse(line) as unknown;\n } catch (err) {\n return failWriteValidation(\n `${source} line ${index + 1} is not valid JSON: ${err instanceof Error ? err.message : String(err)}`,\n );\n }\n}\n\n/** The ONE op payload behind `--file`, for commands that change a single entity. */\nexport function loadJsonFileArg(path: unknown): Record<string, unknown> {\n const payloads = loadJsonPayloads(path);\n if (payloads.length > 1) {\n failWriteValidation(\n `this command changes one entity, and --file holds ${payloads.length} payloads — stage many changes from one file with \\`baker ads google draft stage --file\\` (one op per item: {\"kind\",\"customerId\",\"target\"?,\"payload\"?})`,\n );\n }\n return payloads[0] ?? {};\n}\n\n/** Flags override file keys — the file is the base, flags are the overrides. */\nexport function mergePayload(file: Record<string, unknown>, flags: Record<string, unknown>): Record<string, unknown> {\n const merged: Record<string, unknown> = { ...file };\n for (const [key, value] of Object.entries(flags)) {\n if (value !== undefined) {\n merged[key] = value;\n }\n }\n return merged;\n}\n\n/**\n * The `draft amend` patch: exactly one of `--file <path>` (JSON file) or `--patch '<json>'`\n * (inline string), and it must parse to a JSON object — RFC-7386 merge-patch needs an object to\n * merge, and a stray array/scalar would silently no-op or replace the whole payload.\n */\nexport function loadPatchArg(args: Record<string, unknown>): Record<string, unknown> {\n const file = typeof args.file === \"string\" && args.file.length > 0 ? args.file : undefined;\n const inline = typeof args.patch === \"string\" && args.patch.length > 0 ? args.patch : undefined;\n if (Boolean(file) === Boolean(inline)) {\n failWriteValidation(\"pass exactly one of --file <patch.json> or --patch '<json>'\");\n }\n if (file) {\n return loadJsonFileArg(file);\n }\n try {\n const parsed = JSON.parse(inline as string) as unknown;\n if (parsed === null || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n failWriteValidation(\"--patch must be a JSON object\");\n }\n return parsed as Record<string, unknown>;\n } catch (err) {\n if (err instanceof SyntaxError) {\n failWriteValidation(`--patch is not valid JSON: ${err.message}`);\n }\n throw err;\n }\n}\n\nexport function handleGoogleError(err: unknown): never {\n if (err instanceof ApiError) {\n // Covers both \"no connection\" and staging's 403 for an account this company\n // never connected — same remedy either way: connect, and pick the account.\n if (isNotConnectedError(err.code, err.message)) {\n handleConnectionError(\"google_ads\", err.message);\n }\n const terms = termsRefusalFix(err.code, err.message);\n if (terms) {\n writeJsonEnvelope({\n ok: false,\n error: { code: terms.code, message: err.message, retryable: false, fix: terms.fix },\n });\n process.exit(1);\n }\n if (err.message.includes(OP_TOO_LARGE_MESSAGE_START)) {\n writeJsonEnvelope({\n ok: false,\n error: {\n code: \"OP_TOO_LARGE\",\n message: err.message,\n retryable: false,\n fix: { action: \"split_the_change\", explanation: OP_TOO_LARGE_FIX },\n },\n });\n process.exit(1);\n }\n writeJsonEnvelope({ ok: false, error: { code: err.code ?? \"API_ERROR\", message: err.message } });\n process.exit(1);\n }\n writeJsonEnvelope({\n ok: false,\n error: { code: \"UNKNOWN\", message: err instanceof Error ? err.message : String(err) },\n });\n process.exit(1);\n}\n\ninterface StageEnvelope extends Record<string, unknown> {\n ok: true;\n data: GoogleDraftStageResponse;\n}\n\n/**\n * A no-op response isn't a failure — the change was already in place, so nothing was\n * staged. Say so explicitly, otherwise the agent re-stages it or reports work it\n * didn't do.\n */\nfunction noopHints(data: GoogleDraftStageResponse): string[] {\n return data.staged\n ? []\n : [`NOT STAGED — ${data.reason}. Nothing to publish for this change; say so rather than reporting it as done.`];\n}\n\n/**\n * What to tell the agent about the ops a batch didn't stage.\n *\n * Two different things land in `skipped`: a change already in place, and a change Google refuses\n * outright (editing an experiment campaign's status, dates or budget). This hint used to assert the\n * first — \"already in the requested state\" — which read as \"done\" for a refusal the user never heard\n * about. So it leads with each op's own reason and asks for the refusals to be passed on.\n */\nexport function skippedHints(skipped: Array<{ summary: string; reason: string }>, total: number): string[] {\n if (skipped.length === 0) {\n return [];\n }\n const detail = skipped.map((s) => `${s.summary} — ${s.reason}`).join(\"; \");\n return [\n `${skipped.length} of ${total} op(s) NOT STAGED: ${detail}. Don't re-stage them; tell the user which changes couldn't be made and why, then carry on with the rest.`,\n ];\n}\n\n/**\n * Preflight-validates the op against the shared `@baker/api/ads-google`\n * contract (the same schema the backend enforces), then stages it. Prints the\n * staged envelope — ref, mode (always `live`: publishing reaches the real\n * account), summary, warnings.\n */\nexport async function stageGoogleOp(raw: Record<string, unknown>, hints?: string[]): Promise<void> {\n const preflight = googleDraftOpInputSchema.safeParse(raw);\n if (!preflight.success) {\n const fields = preflight.error.issues.map((issue) => ({ path: issue.path.join(\".\"), message: issue.message }));\n writeJsonEnvelope({\n ok: false,\n error: {\n code: \"VALIDATION_ERROR\",\n message: fields.map((f) => (f.path ? `${f.path}: ${f.message}` : f.message)).join(\"; \"),\n fields,\n fix: copyListCountFix(raw, preflight.error.issues) ?? payloadFix(\"google-ads\", googleDraftOpInputSchema, raw),\n },\n });\n process.exit(1);\n }\n try {\n const chatId = requireChatId();\n const response = await apiPost<StageEnvelope>(\"/api/ads/google/draft/stage\", { chatId, op: preflight.data });\n const allHints = [\n ...noopHints(response.data),\n ...recordSingleStage(chatId, preflight.data.kind),\n ...recordTreeStage(chatId, response.data),\n ...(hints ?? []),\n ...(await adCopyHints(preflight.data)),\n ];\n writeJsonEnvelope(withHints(response, allHints));\n } catch (err) {\n handleGoogleError(err);\n }\n}\n\n/** Stage a create op: `{ kind, customerId, payload }`. */\nexport async function stageCreate(\n kind: string,\n customerId: string,\n payload: Record<string, unknown>,\n hints?: string[],\n): Promise<void> {\n await stageGoogleOp({ kind, customerId, payload }, hints);\n}\n\ninterface StageBatchEnvelope extends Record<string, unknown> {\n ok: true;\n data: GoogleDraftStageBatchResponse;\n}\n\n/**\n * A batch reads every target's before-state and checks each op against the account, which for a few\n * hundred removals outlasts the default 60 s. Timing out early reported a batch as failed that went on\n * to stage, so a retry then collided with the ops it had already staged.\n */\nconst STAGE_BATCH_TIMEOUT_MS = 5 * 60_000;\n\n/** `--full` on every command that stages a batch: the compact result lists only the ops that need a look. */\nexport const STAGE_FULL_ARG = {\n type: \"boolean\",\n description:\n \"List every staged op with its ref and summary (default: counts, the `as` → ref names, and only the ops with warnings)\",\n} as const;\n\n/**\n * What a batch stage prints by default: counts by kind, the ref each `\"as\"` name became (later calls\n * name the ref), and only the ops that carry a warning. A batch of 384 negatives printed one object\n * per op — 85 KB of the agent's own input echoed back with `\"warnings\": []` — so agents cut it with\n * `head`, which also cuts a late op's warning and the hints (BAKER-4005, BAKER-3464).\n */\nfunction stageBatchView(\n data: GoogleDraftStageBatchResponse,\n full: boolean,\n): GoogleDraftStageBatchResponse & { byKind?: Record<string, number>; refs?: Record<string, string> } {\n if (full) {\n return data;\n }\n const { ops, ...rest } = data;\n const byKind: Record<string, number> = {};\n const refs: Record<string, string> = {};\n for (const op of ops) {\n byKind[op.kind] = (byKind[op.kind] ?? 0) + 1;\n if (op.as) refs[op.as] = op.ref;\n }\n return {\n ...rest,\n byKind,\n ...(Object.keys(refs).length > 0 ? { refs } : {}),\n ops: ops.filter((op) => op.warnings.length > 0),\n };\n}\n\n/**\n * Stage several ops as ONE request (`/stage-batch`) — all-or-nothing on the backend,\n * one rate-limit hit instead of one per keyword. A single op falls through to the\n * plain stage path so its envelope (and amend behavior) stays exactly as before.\n * Prints `stageBatchView`: compact unless `full`.\n */\nexport async function stageGoogleOps(\n rawOps: Array<Record<string, unknown>>,\n hints?: string[],\n full = false,\n): Promise<void> {\n if (rawOps.length === 1 && rawOps[0]) {\n await stageGoogleOp(rawOps[0], hints);\n return;\n }\n const ops: unknown[] = [];\n for (const [index, raw] of rawOps.entries()) {\n const preflight = googleDraftBatchOpSchema.safeParse(raw);\n if (!preflight.success) {\n const fields = preflight.error.issues.map((issue) => ({\n path: `ops[${index}].${issue.path.join(\".\")}`,\n message: issue.message,\n }));\n writeJsonEnvelope({\n ok: false,\n error: {\n code: \"VALIDATION_ERROR\",\n message: fields.map((f) => `${f.path}: ${f.message}`).join(\"; \"),\n fields,\n fix: copyListCountFix(raw, preflight.error.issues) ?? payloadFix(\"google-ads\", googleDraftOpInputSchema, raw),\n },\n });\n process.exit(1);\n }\n ops.push(preflight.data);\n }\n try {\n const chatId = requireChatId();\n const response = await apiPost<StageBatchEnvelope>(\n \"/api/ads/google/draft/stage-batch\",\n { chatId, ops },\n { timeoutMs: STAGE_BATCH_TIMEOUT_MS },\n );\n const view = stageBatchView(response.data, full);\n const omitted = response.data.ops.length - view.ops.length;\n const allHints = [\n ...skippedHints(response.data.skipped ?? [], ops.length),\n ...(omitted > 0\n ? [\n `${omitted} staged ops without a warning are left out. They are already staged — do not stage them again; read their refs with \\`baker ads google draft list --json\\` (pass --full on a later stage to print every op).`,\n ]\n : []),\n ...(hints ?? []),\n ...(await adCopyHints(ops)),\n ];\n writeJsonEnvelope(withHints({ ...response, data: view }, allHints));\n } catch (err) {\n handleGoogleError(err);\n }\n}\n\n/** Stage an update op: `{ kind, customerId, target, payload }`. */\nexport async function stageUpdate(\n kind: string,\n customerId: string,\n target: string,\n payload: Record<string, unknown>,\n hints?: string[],\n): Promise<void> {\n await stageGoogleOp({ kind, customerId, target, payload }, hints);\n}\n\n/** Stage a target-only op (pause/resume/remove/detach): `{ kind, customerId, target }`. */\nexport async function stageTarget(kind: string, customerId: string, target: string, hints?: string[]): Promise<void> {\n await stageGoogleOp({ kind, customerId, target }, hints);\n}\n\nexport async function draftAction(path: string, body: Record<string, unknown>, chat?: unknown): Promise<void> {\n try {\n const chatId = resolveChatId(chat);\n const response = await apiPost<Record<string, unknown>>(path, { chatId, ...body });\n writeJsonEnvelope(response);\n } catch (err) {\n handleGoogleError(err);\n }\n}\n\ninterface DraftListEnvelope extends Record<string, unknown> {\n ok: boolean;\n data?: GoogleDraftListResponse;\n}\n\n/**\n * List the staged draft. By default renders a readable campaign ▸ ad group ▸ ad status tree so the\n * agent can review everything it has staged at a glance; `--json` returns the raw envelope for tools,\n * and `--full` that envelope with every op's payload.\n */\nexport async function draftListAction(\n json: boolean,\n chat?: unknown,\n full = false,\n customerId?: string,\n selected?: { where: DraftWhere; selector: string },\n): Promise<void> {\n try {\n const chatId = resolveChatId(chat);\n const listed = await apiPost<DraftListEnvelope>(\"/api/ads/google/draft\", {\n chatId,\n ...(full || selected ? { full: true } : {}),\n });\n const inAccount =\n customerId !== undefined && listed.ok && listed.data ? draftInAccount(listed.data, customerId) : undefined;\n const response = inAccount ? withHints({ ...listed, data: inAccount.data }, inAccount.hints) : listed;\n if (selected && response.ok && response.data) {\n const narrowed = draftListWhere(response.data, selected.where, selected.selector);\n writeJsonEnvelope(withHints({ ...response, data: narrowed.data }, narrowed.hints));\n return;\n }\n if (json || full || !response.ok || !response.data) {\n const whole =\n response.ok && response.data\n ? wholeDraftHints(response.data.ops, \"baker ads google draft list\", \"google.\")\n : [];\n writeJsonEnvelope(withHints(response, whole));\n return;\n }\n process.stdout.write(`${inAccount?.empty ?? renderDraftStatus(response.data)}${hintLines(response)}\\n`);\n } catch (err) {\n handleGoogleError(err);\n }\n}\n\nexport const customerIdArg = {\n \"customer-id\": { type: \"string\" as const, description: \"10-digit Google Ads customer id\" },\n};\n/** The entity a command changes, read by position the way `requireTarget` reads it — declared so --help shows it. */\nexport function targetArg(entity: string) {\n return {\n id: {\n type: \"positional\" as const,\n description: `The ${entity} to change: its id or resource name (customers/…)`,\n required: false,\n },\n };\n}\n\nconst PAYLOAD_FIELDS = \"run `baker schema` on this command for every field the payload takes\";\n\nfunction payloadShape(kind: string): () => PayloadSource {\n return () => ({ union: googleDraftOpInputSchema, kind });\n}\n\n/** `--file` for a command that stages one `kind` op; `baker schema` prints that op's payload shape. */\nexport function fileArg(kind: string) {\n return {\n file: payloadArg(\n {\n type: \"string\" as const,\n description: `The op payload: a JSON file path, or the JSON object inline (flags override it) — ${PAYLOAD_FIELDS}`,\n },\n payloadShape(kind),\n ),\n };\n}\n\n/** `--file` that stages one or many `kind` ops; `baker schema` prints that op's payload shape. */\nexport function fileBatchArg(kind: string) {\n return {\n file: payloadArg(\n {\n type: \"string\" as const,\n description: `The op payload: a JSON file path or inline JSON — one object, or a JSON array / JSON Lines of objects to stage many in one call (up to 500) — ${PAYLOAD_FIELDS}`,\n },\n payloadShape(kind),\n ),\n };\n}\n\n/** A create command whose payload is a JSON file or inline JSON — one object or an array staged as one batch. */\nexport function fileCreateCommand(\n name: string,\n kind: GoogleDraftOpKind,\n description: string,\n hints?: string[] | ((payload: Record<string, unknown>) => string[]),\n) {\n return withEffect(\n googleStagedBatch(kind),\n defineCommand({\n meta: { name, description },\n args: { ...customerIdArg, ...fileBatchArg(kind), full: STAGE_FULL_ARG },\n run: async ({ args }) => {\n const customerId = requireCustomerId(args);\n const payloads = loadJsonPayloads(args.file);\n if (payloads.length === 0 || payloads.some((payload) => Object.keys(payload).length === 0)) {\n failWriteValidation(`${kind} needs --file with the op payload (one object, or a JSON array to stage many)`);\n }\n if (payloads.length > GOOGLE_DRAFT_BATCH_MAX) {\n failWriteValidation(\n `${payloads.length} payloads exceeds the batch limit of ${GOOGLE_DRAFT_BATCH_MAX} — split the file`,\n );\n }\n const payloadHints = [\n ...new Set(payloads.flatMap((payload) => (typeof hints === \"function\" ? hints(payload) : (hints ?? [])))),\n ];\n await stageGoogleOps(\n payloads.map((payload) => ({ kind, customerId, payload })),\n payloadHints,\n args.full === true,\n );\n },\n }),\n );\n}\n\n/**\n * `--bid-modifier` as a number, validated against the range Google actually accepts.\n *\n * Rejecting the (0, 0.1) gap here rather than at the backend is the point: 0 and 0.1 are a hundredth\n * apart in value and mean \"never serve\" versus \"bid a tenth\", so a typo between them is a real spend\n * decision, and the error should arrive before anything is staged.\n */\nexport function bidModifierFlag(value: unknown): number {\n if (value === undefined || value === null || value === \"\") {\n failWriteValidation(\n \"--bid-modifier is required: 1 for no adjustment, 1.25 to bid 25% more, 0.9 to bid 10% less, 0 to stop serving on a device\",\n );\n }\n const num = Number(value);\n if (Number.isNaN(num) || num < 0 || num > 10 || (num > 0 && num < 0.1)) {\n failWriteValidation(\"--bid-modifier must be 0 (stop serving on it) or between 0.1 and 10.0\");\n }\n return num;\n}\n","import type { z } from \"zod\";\n\n/** Appended to each copy flag's help, so `--help` and `baker schema` say how to pass a comma. */\nexport const AD_COPY_LIST_USAGE =\n \"repeat the flag once per item, or pass one comma-separated list and wrap an item that contains a comma in double quotes: '\\\"Fast, free quotes\\\",Book today'. A flag given once is read as a list, so a lone item with a comma needs its double quotes too: '\\\"Fast, free quotes\\\"'\";\n\n/** The op's copy-list fields, by the flag an agent passes them with. */\nconst COPY_LIST_FLAG: Readonly<Record<string, string>> = {\n headlines: \"--headlines\",\n descriptions: \"--descriptions\",\n longHeadlines: \"--long-headlines\",\n};\n\ninterface CountRefusal {\n flag: string;\n count: number | undefined;\n bound: string;\n tooMany: boolean;\n}\n\nfunction valueAt(root: unknown, path: readonly PropertyKey[]): unknown {\n let node = root;\n for (const key of path) {\n if (node === null || typeof node !== \"object\") return undefined;\n node = (node as Record<PropertyKey, unknown>)[key];\n }\n return node;\n}\n\nfunction countRefusal(op: unknown, issue: z.core.$ZodIssue): CountRefusal | undefined {\n if ((issue.code !== \"too_big\" && issue.code !== \"too_small\") || issue.origin !== \"array\") return undefined;\n const flag = COPY_LIST_FLAG[String(issue.path.at(-1))];\n if (!flag) return undefined;\n const value = valueAt(op, issue.path);\n const count = Array.isArray(value) ? value.length : undefined;\n return issue.code === \"too_big\"\n ? { flag, count, bound: `at most ${issue.maximum}`, tooMany: true }\n : { flag, count, bound: `at least ${issue.minimum}`, tooMany: false };\n}\n\n/**\n * The fix for a stage refused only for how many headlines, descriptions or long headlines it has.\n *\n * That is a limit on a field the agent named correctly, so the generic \"read `baker capabilities`,\n * do not guess another field name\" sent it through draft list, schema and --help before it saw the\n * cause. Too many items is usually copy cut at its commas — a flag given once is a comma-separated\n * list, so \"Rated 4,5/5\" becomes two items — which is why that case names the forms that keep a\n * comma. Undefined when anything else was refused too, so the capabilities pointer still covers it.\n */\nexport function copyListCountFix(\n op: unknown,\n issues: readonly z.core.$ZodIssue[],\n): { action: string; explanation: string } | undefined {\n const refusals = issues.map((issue) => countRefusal(op, issue));\n if (refusals.length === 0 || refusals.some((refusal) => refusal === undefined)) return undefined;\n const counted = refusals.filter((refusal): refusal is CountRefusal => refusal !== undefined);\n const limits = counted\n .map(({ flag, count, bound }) => `${flag} has ${count ?? \"the wrong number of\"} items; this ad takes ${bound}.`)\n .join(\" \");\n const commaCause = counted.some((refusal) => refusal.tooMany)\n ? ' If you meant fewer items, the copy was cut at its commas: a flag given once is read as a comma-separated list, so an item with a comma in it (\"Fast, free quotes\", a decimal like \"4,5/5\") becomes two. To keep a comma, ' +\n `${AD_COPY_LIST_USAGE} — or put the content in --file as JSON.`\n : \"\";\n return {\n action: \"fix_copy_list_count\",\n explanation: `${limits}${commaCause} ${commaCause ? \"Otherwise add\" : \"Add\"} or drop items to fit the limit, then stage again; the field names are right.`,\n };\n}\n","import type {\n GoogleDraftListResponse,\n GoogleDraftStatusCollection,\n GoogleDraftStatusNode,\n} from \"@baker/api/ads-google\";\n\n/**\n * Render the staged Google Ads draft as a readable campaign ▸ ad group ▸ ad tree — the CLI\n * counterpart to the dashboard's Google Ads tab, so an agent can review everything it has staged\n * with one command instead of reading raw JSON. Pure: takes the draft-list response, returns text.\n */\n\nconst OPERATION_LABELS: Record<string, string> = {\n create: \"Creating\",\n update: \"Updating\",\n pause: \"Pausing\",\n resume: \"Resuming\",\n remove: \"Removing\",\n upload: \"Uploading\",\n};\n\n/** The same verbs once the publish has run: a published draft reports what happened, not what is staged. */\nconst APPLIED_LABELS: Record<string, string> = {\n create: \"Created\",\n update: \"Updated\",\n pause: \"Paused\",\n resume: \"Resumed\",\n remove: \"Removed\",\n upload: \"Uploaded\",\n};\n\n/** Folded changes that did not land (\"1 change failed\", \"2 changes skipped\"), named beside the node's own outcome. */\nfunction notAppliedText(node: GoogleDraftStatusNode): string | undefined {\n const { failed = 0, skipped = 0 } = node.foldedNotApplied ?? {};\n const changes = (n: number) => `${n} change${n === 1 ? \"\" : \"s\"}`;\n const parts = [\n ...(failed > 0 ? [`${changes(failed)} failed`] : []),\n ...(skipped > 0 ? [`${changes(skipped)} skipped`] : []),\n ];\n return parts.length > 0 ? parts.join(\", \") : undefined;\n}\n\nfunction outcomeBadge(node: GoogleDraftStatusNode, result: NonNullable<GoogleDraftStatusNode[\"result\"]>): string {\n const verb = node.operation ?? \"update\";\n if (result === \"applied\") {\n return node.operation ? (APPLIED_LABELS[verb] ?? \"Applied\") : \"Changes applied\";\n }\n if (result === \"simulated\") {\n return `Simulated (${verb})`;\n }\n if (result === \"failed\") {\n return node.operation ? `Failed to ${verb}` : \"Failed\";\n }\n return \"Skipped\";\n}\n\nfunction badge(node: GoogleDraftStatusNode): string {\n const label = node.result\n ? outcomeBadge(node, node.result)\n : ((node.operation ? OPERATION_LABELS[node.operation] : undefined) ?? (node.existing ? \"on Google Ads\" : \"staged\"));\n const parts = [label, ...(node.status && node.status !== label ? [node.status] : [])];\n const notApplied = notAppliedText(node);\n return [...parts, ...(notApplied ? [notApplied] : [])].join(\" · \");\n}\n\nfunction collectionLine(collection: GoogleDraftStatusCollection): string | undefined {\n const parts: string[] = [];\n if (collection.added > 0) {\n parts.push(`+${collection.added}`);\n }\n if (collection.existing > 0) {\n parts.push(`${collection.existing} existing`);\n }\n if (collection.removed > 0) {\n parts.push(`-${collection.removed}`);\n }\n // Neither an add nor a remove — a member that stays in the set with a changed value (a device's\n // bid adjustment). Left out, a draft whose only criterion change is one printed no line at all.\n if ((collection.updated ?? 0) > 0) {\n parts.push(`~${collection.updated}`);\n }\n return parts.length > 0 ? `${collection.label}: ${parts.join(\", \")}` : undefined;\n}\n\n/**\n * Every advertiser account the tree touches. A draft may legitimately span\n * several, and a criterion id is derived from the keyword's text and match type\n * — so the same keyword carries the same id in every account. The account is\n * printed on each node once there is more than one, and left off when there is not.\n */\nfunction accountsInTree(nodes: readonly GoogleDraftStatusNode[]): Set<string> {\n const accounts = new Set<string>();\n const walk = (node: GoogleDraftStatusNode): void => {\n accounts.add(node.customerId);\n for (const child of node.children) {\n walk(child);\n }\n };\n for (const node of nodes) {\n walk(node);\n }\n return accounts;\n}\n\nfunction renderNode(node: GoogleDraftStatusNode, depth: number, lines: string[], showAccount: boolean): void {\n const indent = \" \".repeat(depth);\n const account = showAccount ? ` · account ${node.customerId}` : \"\";\n const ref = node.ref ? ` · ${node.ref}` : \"\";\n lines.push(`${indent}• ${node.name} · ${badge(node)}${account}${ref}`);\n for (const warning of node.warnings ?? []) {\n lines.push(`${indent} ⚠ ${warning}`);\n }\n for (const folded of node.folded ?? []) {\n lines.push(`${indent} ${folded.summary} · ${folded.ref}`);\n }\n for (const collection of node.collections) {\n const line = collectionLine(collection);\n if (line) {\n lines.push(`${indent} ${line}`);\n }\n }\n for (const child of node.children) {\n renderNode(child, depth + 1, lines, showAccount);\n }\n}\n\nconst RESOURCE_ENTITIES = new Set([\n \"sharedSet\",\n \"biddingStrategy\",\n \"audience\",\n \"conversionAction\",\n \"label\",\n \"budget\",\n \"asset\",\n]);\n\nfunction renderSection(title: string, nodes: GoogleDraftStatusNode[], lines: string[], showAccount: boolean): void {\n if (nodes.length === 0) {\n return;\n }\n lines.push(\"\");\n lines.push(title);\n for (const node of nodes) {\n renderNode(node, 1, lines, showAccount);\n }\n}\n\nfunction renderAdvisories(data: GoogleDraftListResponse, lines: string[]): void {\n const advisories = data.advisories ?? [];\n // Every advisory is phrased as something to settle BEFORE publishing. On a published draft there\n // is nothing left to settle here, and printing them reads as work still outstanding on this chat.\n if (advisories.length === 0 || data.status === \"applied\") {\n return;\n }\n lines.push(\"\");\n // Two kinds of finding share this block: build-out nudges (\"this ad group has one ad\") and\n // whole-draft coherence findings (\"this campaign will report zero conversions\", \"two of your\n // campaigns bid on the same keyword\"). The coherence ones come first and cost money, so the\n // heading no longer frames the block as optional polish.\n lines.push(\"Advisories (non-blocking, checked across the whole draft — settle these before you publish)\");\n for (const advisory of advisories) {\n lines.push(` • ${advisory.message}`);\n }\n}\n\n/**\n * What the publish did, once there is a publish to report.\n *\n * A published Google Ads draft rendered exactly like a staged one — same count, every op still\n * reading \"Creating\" — so the surface `.claude/rules/cli-env.md` sends an agent to for the outcome\n * could not answer, and a failed op was invisible in the human output while sitting in the JSON\n * envelope the whole time. Found by publishing a BUSINESS_LOGO link that Google refused with\n * \"Customer is not verified\": the draft still read \"4 staged changes\". LinkedIn fixed the same\n * shape first; this is its counterpart.\n */\nfunction renderOutcome(data: GoogleDraftListResponse, lines: string[]): void {\n const counts = new Map<string, number>();\n for (const op of data.ops) {\n const status = op.result?.status ?? \"pending\";\n counts.set(status, (counts.get(status) ?? 0) + 1);\n }\n const summary = [...counts].map(([status, count]) => `${count} ${status}`).join(\", \");\n lines.push(`Google Ads — published · ${summary || `${data.count} op(s)`} · ${data.mode}`);\n // A failure is the reason to read this at all, so it is named with its error rather than left as\n // a number to go and look up.\n for (const op of data.ops) {\n const status = op.result?.status;\n if (status !== \"failed\" && status !== \"skipped\") {\n continue;\n }\n const reason = op.result?.error ?? op.result?.skippedBecause ?? \"no reason recorded\";\n lines.push(` ✗ ${op.summary} — ${status}: ${reason}`);\n }\n // Google answers \"applied\" to a field it accepted and never stored (a portfolio's bid ceiling),\n // so the read-back after publish is the only thing that knows the change did not land as sent.\n for (const op of data.ops) {\n const verification = op.result?.verification;\n if (op.result?.status === \"applied\" && verification?.status === \"drifted\") {\n lines.push(` ⚠ ${op.summary} — not as sent: ${verification.note ?? \"Google Ads shows something else\"}`);\n }\n }\n}\n\nexport function renderDraftStatus(data: GoogleDraftListResponse): string {\n if (data.status === \"none\" || data.count === 0) {\n return \"No staged Google Ads changes on this chat.\";\n }\n const modeNote =\n data.mode === \"live\"\n ? \"Live — publishing writes directly to Google Ads.\"\n : \"Simulated — publishing completes the whole draft without calling Google Ads.\";\n const lines: string[] = [];\n if (data.status === \"applied\") {\n renderOutcome(data, lines);\n } else if (data.status === \"publishing\") {\n lines.push(`Google Ads — publishing ${data.count} change${data.count === 1 ? \"\" : \"s\"} · ${data.mode}`);\n } else {\n lines.push(`Google Ads — ${data.count} staged change${data.count === 1 ? \"\" : \"s\"} · ${data.mode}`);\n }\n lines.push(modeNote);\n\n const tree = data.tree ?? [];\n const showAccount = accountsInTree(tree).size > 1;\n renderSection(\n \"Shared resources\",\n tree.filter((node) => RESOURCE_ENTITIES.has(node.entity)),\n lines,\n showAccount,\n );\n renderSection(\n \"Campaigns\",\n tree.filter((node) => node.entity === \"campaign\"),\n lines,\n showAccount,\n );\n const rest = tree.filter((node) => !RESOURCE_ENTITIES.has(node.entity) && node.entity !== \"campaign\");\n renderSection(\"Other\", rest, lines, showAccount);\n renderAdvisories(data, lines);\n\n return lines.join(\"\\n\");\n}\n","import { type GoogleDraftStageResponse, isCreateKind } from \"@baker/api/ads-google\";\nimport { cacheGet, cacheSet } from \"../cache.ts\";\nimport { loopWarnings } from \"../output.ts\";\n\n/**\n * Bulk work done as a loop of single commands — one `keywords update` per keyword, one\n * `negative-keywords remove` per term — is one request, one rate-limit hit and one tool call per row;\n * production saw 1,284 of them. The CLI cannot see the loop from inside one call, so it remembers the\n * last few single stages per chat and, once the same kind repeats, says how to do the rest in one call.\n */\n\nexport interface StageStreak {\n kind: string;\n count: number;\n lastAt: number;\n}\n\n/** Singles further apart than this are separate decisions, not a loop. */\nconst STREAK_WINDOW_MS = 5 * 60_000;\n/** The streak length that reads as a loop. */\nconst STREAK_THRESHOLD = 5;\n\nexport function nextStageStreak(previous: StageStreak | undefined, kind: string, now: number): StageStreak {\n const continues = previous && previous.kind === kind && now - previous.lastAt <= STREAK_WINDOW_MS;\n return { kind, count: continues ? previous.count + 1 : 1, lastAt: now };\n}\n\n/** The one-call form of a kind, where a command has one beside `draft stage --file`. */\nconst BATCH_FORMS: Record<string, string> = {\n \"google.keyword.add\": \"`keywords add --file keywords.txt` (one term[:MATCH_TYPE] per line)\",\n \"google.keyword.update\":\n \"`keywords pause|resume <resource name> <resource name>…` (or --file, one per line) for status\",\n \"google.keyword.remove\": \"`draft stage --file` with one google.keyword.remove per target\",\n \"google.negativeKeyword.add\":\n \"`negative-keywords add --ad-group-id <id>,<id> --file terms.txt` (every term on every ad group)\",\n \"google.sharedSetMember.add\": \"`keyword-lists add --file terms.txt`\",\n \"google.sharedSetMember.remove\": '`keyword-lists remove --list-ref <id> --text \"a,b,c\"`',\n};\n\nexport function stageStreakHints(streak: StageStreak): string[] {\n if (streak.count < STREAK_THRESHOLD) {\n return [];\n }\n const form = BATCH_FORMS[streak.kind];\n return [\n `LOOP: that is ${streak.count} ${streak.kind} ops staged one command at a time. Stop looping — put every remaining change in one file and stage them in ONE call: \\`baker ads google draft stage --file ops.json --customer-id <id>\\` (a JSON array of {\"kind\",\"target\"?,\"payload\"?}, up to 500, any mix of kinds)${form ? `, or ${form}` : \"\"}. Fix staged ops together with \\`draft amend --file\\`.`,\n ];\n}\n\nconst STREAK_CACHE = \"stage-streak\";\n\n/** Record one single stage on this chat and return the nudge it earns, if any. Never throws. */\nexport function recordSingleStage(chatId: string, kind: string): string[] {\n try {\n const streak = nextStageStreak(cacheGet<StageStreak>(STREAK_CACHE, chatId)?.data, kind, Date.now());\n cacheSet(STREAK_CACHE, chatId, streak, STREAK_WINDOW_MS);\n const hints = stageStreakHints(streak);\n // Also on stderr: agents pipe each stage through a filter that keeps only `ok`, which drops the\n // hint from the JSON — 26 times in one Session. stderr reaches the agent past any such filter.\n for (const hint of hints) process.stderr.write(`${hint}\\n`);\n return hints;\n } catch {\n return [];\n }\n}\n\nconst TREE_CACHE = \"stage-tree\";\n\n/**\n * A single create (not an update merged into a staged one) that depends on a create staged earlier in this chat is a new campaign tree being\n * built one level at a time. Each level changes kind, so the LOOP streak never fires; this says once\n * per chat (per window) how to stage the rest in one call. Never throws.\n */\nexport function recordTreeStage(chatId: string, staged: GoogleDraftStageResponse): string[] {\n try {\n if (!staged.staged || staged.amended || !isCreateKind(staged.kind) || staged.dependsOn.length === 0) {\n return [];\n }\n if (cacheGet<boolean>(TREE_CACHE, chatId)?.data) {\n return [];\n }\n cacheSet(TREE_CACHE, chatId, true, STREAK_WINDOW_MS);\n return loopWarnings([\n `TREE: this ${staged.kind} hangs off a create staged earlier in this chat — a new campaign tree built one command per entity. Stage everything still to build (ad groups, keywords, ads, assets and their links) in ONE call: \\`baker ads google draft stage --file ops.json --customer-id <id>\\`, giving each create a name with \"as\": \"g_temp_<name>\" so later ops in the same file can point at it (refs staged earlier still work).`,\n ]);\n } catch {\n return [];\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,QAAQ,GAAW,QAAyB;AACnD,QAAM,OAAO,SAAS,kBAAkB;AACxC,SAAO,MAAM,IAAI,KAAK,IAAI,KAAK,GAAG,CAAC,IAAI,IAAI;AAC7C;AAOO,SAAS,eACd,MACA,YACoE;AACpE,QAAM,MAAM,KAAK,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ASO,SAAS,gBAAgB,OAAwB;AACtD,MAAI,UAAU,UAAa,UAAU,QAAQ,UAAU,IAAI;AACzD;AAAA,MACE;AAAA,IACF;AAAA,EACF;AACA,QAAM,MAAM,OAAO,KAAK;AACxB,MAAI,OAAO,MAAM,GAAG,KAAK,MAAM,KAAK,MAAM,MAAO,MAAM,KAAK,MAAM,KAAM;AACtE,wBAAoB,uEAAuE;AAAA,EAC7F;AACA,SAAO;AACT;","names":["changes"]}
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RESEARCH_GOOGLE_ADS_MAX_COPY
|
|
3
|
+
} from "./chunk-FBW4FH4V.js";
|
|
4
|
+
|
|
5
|
+
// src/commands/research/hints.ts
|
|
6
|
+
var AD_COPY_ROUTE = 'This returns competing domains and their SERP economics \u2014 no ad copy, no headlines, no creative. For a competitor\'s Google ads and their copy: `baker research google-ads <competitor.com> --copy` (Google\'s Ads Transparency Center: every ad, how long it has run, and the text ads\' headline and description). For Meta and LinkedIn: `baker winning-ads advertisers "<brand>"` \u2192 `baker winning-ads search "<brief>" --advertiser-id <id>` \u2192 `baker winning-ads content <adId>` (`primary_text` / `headline` / `cta`, plus the spoken transcript and on-screen text for video). Do not keep querying this command for copy.';
|
|
7
|
+
function noSerpRowsHints(rowCount, queryContext) {
|
|
8
|
+
if (rowCount > 0) {
|
|
9
|
+
return [];
|
|
10
|
+
}
|
|
11
|
+
const defaulted = queryContext.location_is_default || queryContext.language_is_default;
|
|
12
|
+
if (defaulted) {
|
|
13
|
+
return [
|
|
14
|
+
`No rows for ${queryContext.location} / ${queryContext.language} \u2014 the market you did not set. Set --location and --language for the client's actual market and re-run once (\`baker research countries\` / \`baker research languages\` for the accepted codes) before you touch the keyword.`
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
return [
|
|
18
|
+
`No rows for ${queryContext.location} / ${queryContext.language}, which you set explicitly. This term has no third-party SERP coverage in that market \u2014 move on rather than re-querying it. For demand signal try \`baker research autocomplete\`; for a competitor's actual terms, \`baker research keywords-for-site <domain>\`.`
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
function advertisersHints(rowCount, queryContext) {
|
|
22
|
+
return [...noSerpRowsHints(rowCount, queryContext), AD_COPY_ROUTE];
|
|
23
|
+
}
|
|
24
|
+
function keywordsForSiteHints(rowCount, queryContext, typeFilter) {
|
|
25
|
+
if (rowCount > 0) {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
if (typeFilter === "paid" || typeFilter === "organic") {
|
|
29
|
+
return [
|
|
30
|
+
`No rows with --type ${typeFilter} in ${queryContext.location} / ${queryContext.language}. A domain with zero ${typeFilter} keywords in a market is itself the finding \u2014 record it and move on. Confirm once with --type all (nothing at all there means the domain has no SERP coverage, not that it has no ads) instead of re-running with a different --sort or --limit.`
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
return noSerpRowsHints(rowCount, queryContext);
|
|
34
|
+
}
|
|
35
|
+
var THIN_ANSWER_CHARS = 600;
|
|
36
|
+
var THIN_SOURCE_COUNT = 2;
|
|
37
|
+
var ESCALATION = {
|
|
38
|
+
medium: "`medium` is a quick lookup, not a search. Re-ask the SAME question once with `--depth high` before concluding the web has nothing on it.",
|
|
39
|
+
high: "`high` already thought hard about this. `--depth xhigh` is the only step left and it can run 15 minutes \u2014 take it only if this answer blocks a deliverable; otherwise record the gap and move on."
|
|
40
|
+
};
|
|
41
|
+
function webSourceHints(sources) {
|
|
42
|
+
if (sources.length === 0) {
|
|
43
|
+
return [
|
|
44
|
+
"This answer came back with no sources. Treat every claim in it as Synthesis: \u2014 no source to cite. Do not attach a URL to it; to cite a fact, find the page that states it and read it with `baker research fetch`."
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
const unresolved = sources.filter((s) => s.resolved === false).length;
|
|
48
|
+
if (unresolved > 0) {
|
|
49
|
+
return [
|
|
50
|
+
`${unresolved} of ${sources.length} sources are Google links that could not be followed (resolved: false). Do not cite them or guess a path from the site name \u2014 cite only a resolved URL, or open the claim's page yourself.`
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
55
|
+
function fetchHints({
|
|
56
|
+
truncated,
|
|
57
|
+
contentChars,
|
|
58
|
+
shownChars,
|
|
59
|
+
maxChars
|
|
60
|
+
}) {
|
|
61
|
+
const hints = [];
|
|
62
|
+
if (shownChars < contentChars) {
|
|
63
|
+
const more = maxChars === void 0 ? "Re-run the same command with `--full` for the whole page" : "Re-run with a larger `--max-chars` for more, or without `--max-chars` and with `--full` for the whole page";
|
|
64
|
+
hints.push(
|
|
65
|
+
`Showing the first ${shownChars.toLocaleString("en-US")} of ${contentChars.toLocaleString("en-US")} characters. ${more}, or \`--find '<words>'\` for only the lines you need \u2014 the read is cached for 24h, so it costs no extra time and no extra credit.`
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
if (truncated) hints.push(TRUNCATED_READ);
|
|
69
|
+
return hints;
|
|
70
|
+
}
|
|
71
|
+
var TRUNCATED_READ = "This page is longer than one read returns, so the end of it is missing. Don't present this as the complete page; if the part you need is further down, fetch the deeper URL directly.";
|
|
72
|
+
var wholePageNudge = (wholePage) => wholePage ? "" : " The read is the main content only: add `--whole-page` to include the header, nav and footer.";
|
|
73
|
+
function findHints({
|
|
74
|
+
find,
|
|
75
|
+
matches,
|
|
76
|
+
shownMatches,
|
|
77
|
+
maxChars,
|
|
78
|
+
wholePage,
|
|
79
|
+
truncated
|
|
80
|
+
}) {
|
|
81
|
+
const hints = [];
|
|
82
|
+
if (matches === 0) {
|
|
83
|
+
hints.push(
|
|
84
|
+
`No line of the page matches \`${find}\` (case-insensitive). Try another word the page would use \u2014 its language, a currency sign, a digit pattern like '[0-9]+,[0-9]{2}'.${wholePageNudge(wholePage)}`
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
if (shownMatches < matches) {
|
|
88
|
+
const more = maxChars === void 0 ? "" : ", or raise `--max-chars`";
|
|
89
|
+
hints.push(
|
|
90
|
+
`${matches - shownMatches} more matching lines are not shown. Narrow \`--find\` to the words around what you need${more}.`
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
if (truncated) hints.push(TRUNCATED_READ);
|
|
94
|
+
return hints;
|
|
95
|
+
}
|
|
96
|
+
function refsHints({
|
|
97
|
+
links,
|
|
98
|
+
images,
|
|
99
|
+
find,
|
|
100
|
+
wholePage,
|
|
101
|
+
truncated
|
|
102
|
+
}) {
|
|
103
|
+
const hints = [];
|
|
104
|
+
const empty = (name, count) => {
|
|
105
|
+
if (count.kept > 0) return;
|
|
106
|
+
hints.push(
|
|
107
|
+
count.total > 0 && find !== void 0 ? `None of the page's ${count.total} ${name} matches \`${find}\`.${wholePageNudge(wholePage)}` : `The page references no ${name}.${wholePageNudge(wholePage)}`
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
if (links) empty("links", links);
|
|
111
|
+
if (images) empty("images", images);
|
|
112
|
+
if (truncated) hints.push(TRUNCATED_READ);
|
|
113
|
+
return hints;
|
|
114
|
+
}
|
|
115
|
+
function webDepthHints({
|
|
116
|
+
answer,
|
|
117
|
+
sourceCount,
|
|
118
|
+
depth
|
|
119
|
+
}) {
|
|
120
|
+
const thin = answer.length < THIN_ANSWER_CHARS || sourceCount <= THIN_SOURCE_COUNT;
|
|
121
|
+
const escalation = ESCALATION[depth];
|
|
122
|
+
if (!thin || !escalation) {
|
|
123
|
+
return [];
|
|
124
|
+
}
|
|
125
|
+
return [`Thin answer (${answer.length} chars, ${sourceCount} source(s)). ${escalation}`];
|
|
126
|
+
}
|
|
127
|
+
function keywordMetricsHints({
|
|
128
|
+
rows,
|
|
129
|
+
asked,
|
|
130
|
+
clickstream,
|
|
131
|
+
queryContext
|
|
132
|
+
}) {
|
|
133
|
+
if (rows.length === 0) {
|
|
134
|
+
return noSerpRowsHints(0, queryContext);
|
|
135
|
+
}
|
|
136
|
+
const provenance = "DataForSEO resells Google's Keyword Planner volume \u2014 planner_search_volume here is the SAME number `baker ads google keywords metrics` returns, not an independent reading of it. Quoting the two as agreeing sources is not corroboration." + (clickstream ? " clickstream_search_volume IS independent (DataForSEO's own panels); when the two disagree, say which one you are quoting." : " For a genuinely independent estimate of demand, re-run with --clickstream (costs 2x), or use first-party data: `baker gsc query` for what already reaches the site, or the account's own search terms.");
|
|
137
|
+
const hints = [provenance];
|
|
138
|
+
const compared = rows.some((row) => row.location !== void 0);
|
|
139
|
+
const empty = rows.filter((row) => row.search_volume === null).map((row) => row.location === void 0 ? row.keyword : `${row.keyword} (${row.location})`);
|
|
140
|
+
if (empty.length > 0) {
|
|
141
|
+
hints.push(
|
|
142
|
+
`${empty.length} of ${compared ? `${rows.length} keyword/market rows` : `${asked.length} keywords`} came back with no data in ${queryContext.location} / ${queryContext.language}: ${empty.join(", ")}. That is missing coverage, NOT zero demand \u2014 do not report them as unsearched, and do not re-query them reworded. \`baker research autocomplete\` on the head term is the way to find the phrasing that market uses.`
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
return hints;
|
|
146
|
+
}
|
|
147
|
+
var ARCHIVE_NOTE = "Read from the Reddit archive: the words are as posted, but points and comment counts on anything under ~36h old are as first captured \u2014 don't quote those numbers as current.";
|
|
148
|
+
function redditSearchHints({
|
|
149
|
+
resultCount,
|
|
150
|
+
kind,
|
|
151
|
+
source
|
|
152
|
+
}) {
|
|
153
|
+
const hints = [];
|
|
154
|
+
if (resultCount === 0) {
|
|
155
|
+
hints.push(
|
|
156
|
+
'Nothing matched. Reddit search matches words, not meaning: try the audience\'s own phrasing (one distinctive word, or a seed from `baker research autocomplete`), a longer --since window, or other subreddits \u2014 `baker research reddit subreddits "<topic>"` finds where the audience actually talks' + (kind === "posts" ? ", and try --kind comments \u2014 most of the voice is in the replies." : ".")
|
|
157
|
+
);
|
|
158
|
+
} else if (kind === "posts") {
|
|
159
|
+
hints.push(
|
|
160
|
+
"Titles rarely carry the voice. Read the promising threads with `baker research reddit thread <permalink>` for the replies, or search the replies directly with --kind comments."
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
if (source === "archive" && resultCount > 0) hints.push(ARCHIVE_NOTE);
|
|
164
|
+
return hints;
|
|
165
|
+
}
|
|
166
|
+
function redditThreadHints({
|
|
167
|
+
commentsShown,
|
|
168
|
+
commentsAsked,
|
|
169
|
+
commentCount,
|
|
170
|
+
source
|
|
171
|
+
}) {
|
|
172
|
+
const hints = [];
|
|
173
|
+
if (commentsAsked > 0 && commentsShown === 0 && (commentCount ?? 0) > 0) {
|
|
174
|
+
hints.push(
|
|
175
|
+
`This thread has ${commentCount} comments but none could be read just now. Quote the post only, and don't describe the replies.`
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
if (source === "archive") hints.push(ARCHIVE_NOTE);
|
|
179
|
+
return hints;
|
|
180
|
+
}
|
|
181
|
+
var REDDIT_HOST = /(^|\.)reddit\.com$|^redd\.it$/i;
|
|
182
|
+
function redditSubredditsHints({ resultCount }) {
|
|
183
|
+
if (resultCount === 0) {
|
|
184
|
+
return [
|
|
185
|
+
'No subreddits matched. Try the audience\'s role or the platform they work on ("amazon flex", "deliveroo", "nurses"), one word at a time, or a web search for `site:reddit.com <topic>`.'
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
return [
|
|
189
|
+
'Members say how big a subreddit is, not how active it is. Before mining one, run `baker research reddit search "<word>" --subreddit <name> --since <a recent date>`: nothing back means it is quiet, so pick another. `restricted` can still be read; `private` cannot.'
|
|
190
|
+
];
|
|
191
|
+
}
|
|
192
|
+
var REDDIT_LINK_REJECTED = {
|
|
193
|
+
action: "reject",
|
|
194
|
+
explanation: "Do not quote anything attributed to this link \u2014 it does not lead to those words. Find the real thread with `baker research reddit search`, and if you already wrote a quote from it, remove it."
|
|
195
|
+
};
|
|
196
|
+
function redditPageFix(url, code) {
|
|
197
|
+
let host;
|
|
198
|
+
try {
|
|
199
|
+
host = new URL(url).hostname;
|
|
200
|
+
} catch {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
if (!REDDIT_HOST.test(host)) return null;
|
|
204
|
+
if (code === "NOT_FOUND") return REDDIT_LINK_REJECTED;
|
|
205
|
+
if (code !== "FORBIDDEN") return null;
|
|
206
|
+
return {
|
|
207
|
+
action: "retry_with_changes",
|
|
208
|
+
explanation: 'Read Reddit with its own commands: `baker research reddit search "<words>" --subreddit <name>` to find what people said, `baker research reddit thread <url>` for one thread.'
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
function googleAdsHints({
|
|
212
|
+
target,
|
|
213
|
+
adCount,
|
|
214
|
+
located,
|
|
215
|
+
textWithoutCopy,
|
|
216
|
+
copyAsked,
|
|
217
|
+
copyUnread,
|
|
218
|
+
visual
|
|
219
|
+
}) {
|
|
220
|
+
if (adCount === 0) {
|
|
221
|
+
return [
|
|
222
|
+
`No Google ads point to ${target}${located ? " in that region" : ""} \u2014 that is the answer, not a failed call: this competitor is not advertising on Google there, or its ads point to another domain. ` + (located ? "Re-run once without --location to see every region; then move on. " : "Move on. ") + `Its paid search terms, if any: \`baker research keywords-for-site ${target} --type paid\`.`
|
|
223
|
+
];
|
|
224
|
+
}
|
|
225
|
+
const hints = [];
|
|
226
|
+
if (!copyAsked && textWithoutCopy > 0) {
|
|
227
|
+
hints.push(
|
|
228
|
+
`${textWithoutCopy} text ads came back without their words. Re-run with --copy to read the headline and description of up to ${RESEARCH_GOOGLE_ADS_MAX_COPY} (cached, so only the reading is new).`
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
const pastCap = copyAsked ? textWithoutCopy - copyUnread : 0;
|
|
232
|
+
if (pastCap > 0) {
|
|
233
|
+
hints.push(
|
|
234
|
+
`${pastCap} text ads past the first ${RESEARCH_GOOGLE_ADS_MAX_COPY} were not read \u2014 one request reads at most ${RESEARCH_GOOGLE_ADS_MAX_COPY}. Narrow with --since, --location or --platform google_search and re-run for their words.`
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
if (visual > 0 || copyUnread > 0) {
|
|
238
|
+
const without = [
|
|
239
|
+
visual > 0 ? `${visual} image or video ads (Google gives no text for those)` : "",
|
|
240
|
+
copyUnread > 0 ? `${copyUnread} text ads whose image could not be read` : ""
|
|
241
|
+
].filter(Boolean);
|
|
242
|
+
hints.push(
|
|
243
|
+
`No copy for ${without.join(" and ")}: show those by their \`transparency_url\`. Do not open the Transparency Center in agent-browser to read them \u2014 it is the browser load this command exists to avoid.`
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
return hints;
|
|
247
|
+
}
|
|
248
|
+
var LINKEDIN_PERSON_USE = "For ad and page messaging only; nothing is stored \u2014 quote their stated priorities into the creative brief for this account, and don't save the person to Knowledge or read them again to keep track of them.";
|
|
249
|
+
function peopleHints({
|
|
250
|
+
found,
|
|
251
|
+
dropped,
|
|
252
|
+
verified
|
|
253
|
+
}) {
|
|
254
|
+
if (found === 0) {
|
|
255
|
+
return [
|
|
256
|
+
`Nobody in public LinkedIn results holds this role here${dropped > 0 ? ` (${dropped} profiles were elsewhere now or in another role)` : ""}. Try the name people write on LinkedIn with --name, a broader --seniority, or the client's CRM: \`baker hubspot companies contacts <domain>\`.`
|
|
257
|
+
];
|
|
258
|
+
}
|
|
259
|
+
const hints = [
|
|
260
|
+
verified ? "These are public search results a decision model checked \u2014 likely holders of the role, to confirm before anyone reaches out. Brief sales with them; never contact anyone or save them to Knowledge." : "The check could not run, so these profiles are unchecked: Google matched the words, not the person. Read each headline before naming anyone.",
|
|
261
|
+
"To write to one of them in their own words, read their profile once: `baker research linkedin-person <profile_url>`."
|
|
262
|
+
];
|
|
263
|
+
return hints;
|
|
264
|
+
}
|
|
265
|
+
function linkedinPersonHints({ isPrivate, postCount }) {
|
|
266
|
+
if (isPrivate) {
|
|
267
|
+
return [
|
|
268
|
+
"LinkedIn doesn't show this profile publicly, and reading it again won't change that. Find their own words elsewhere \u2014 a keynote, podcast or earnings call through `baker research transcript <url>`, or an interview through `baker research fetch <url>` \u2014 or write the brief from the account's company-level priorities."
|
|
269
|
+
];
|
|
270
|
+
}
|
|
271
|
+
if (postCount === 0) {
|
|
272
|
+
return [
|
|
273
|
+
LINKEDIN_PERSON_USE,
|
|
274
|
+
"They have no recent posts, so their `about` is the only first-person line here. Their priorities are more often said aloud: a keynote, podcast or earnings call through `baker research transcript <url>`."
|
|
275
|
+
];
|
|
276
|
+
}
|
|
277
|
+
return [LINKEDIN_PERSON_USE];
|
|
278
|
+
}
|
|
279
|
+
function transcriptHints({ excerpted, truncated }) {
|
|
280
|
+
const hints = [];
|
|
281
|
+
if (excerpted) {
|
|
282
|
+
hints.push(
|
|
283
|
+
"This is the opening excerpt. Re-run with `--out <file>` to write the whole text to a file and read the parts you need, or `--full` to have it all here \u2014 the transcript is cached for 7 days, so either costs nothing more."
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
if (truncated) {
|
|
287
|
+
hints.push(
|
|
288
|
+
"The recording is longer than one transcript carries, so the end of the recording is missing. Don't quote this as the whole talk."
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
return hints;
|
|
292
|
+
}
|
|
293
|
+
function thinProfileHint(domain, profile) {
|
|
294
|
+
const missing = [
|
|
295
|
+
profile.linkedinUrl ? null : "no LinkedIn page",
|
|
296
|
+
profile.hqCountry ? null : "no HQ country",
|
|
297
|
+
profile.employees ? null : "no employee band"
|
|
298
|
+
].filter((gap) => gap !== null);
|
|
299
|
+
const tiny = profile.employees === "1-10";
|
|
300
|
+
if (missing.length < 2 && !tiny) return null;
|
|
301
|
+
const why = [...missing, ...tiny ? ["1-10 employees"] : []].join(", ");
|
|
302
|
+
return `This profile is thin (${why}). Check ${domain} is the company's main website \u2014 companies often run on another domain (e.g. factorial.es vs factorialhr.com) \u2014 before using these facts for tiering.`;
|
|
303
|
+
}
|
|
304
|
+
function companyHints({
|
|
305
|
+
domain,
|
|
306
|
+
profile,
|
|
307
|
+
hiring
|
|
308
|
+
}) {
|
|
309
|
+
const hints = [];
|
|
310
|
+
if (!profile) {
|
|
311
|
+
hints.push(
|
|
312
|
+
"There's no company profile for this domain, only its hiring. Check it is the company's main website; otherwise take size, industry and location from its LinkedIn page or its own site."
|
|
313
|
+
);
|
|
314
|
+
} else {
|
|
315
|
+
const thin = thinProfileHint(domain, profile);
|
|
316
|
+
if (thin) hints.push(thin);
|
|
317
|
+
}
|
|
318
|
+
if (hiring.status === "unavailable" && hiring.reason === "not_configured") {
|
|
319
|
+
hints.push(
|
|
320
|
+
"Hiring signals aren't switched on for this workspace yet, so these are the firmographics alone. Score the account on them and leave hiring out of the reason."
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
if (hiring.status === "unavailable" && hiring.reason === "failed") {
|
|
324
|
+
hints.push(
|
|
325
|
+
"Hiring signals couldn't be read this time; don't retry in a loop. Use the firmographics and say hiring is unknown for this account."
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
if (hiring.status === "not_tracked") {
|
|
329
|
+
hints.push(
|
|
330
|
+
"No hiring data is kept for this company \u2014 that means unknown, not that it isn't hiring. Don't score it down for it."
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
return hints;
|
|
334
|
+
}
|
|
335
|
+
function industryList(industries) {
|
|
336
|
+
return industries.map(({ slug, companies }) => `${slug} (${companies.toLocaleString("en-US")})`).join(", ");
|
|
337
|
+
}
|
|
338
|
+
function relatedIndustriesHint(related) {
|
|
339
|
+
if (related.length === 0) return null;
|
|
340
|
+
return `Related industries not included (companies each adds with your other filters): ${industryList(related)} \u2014 add them with --industry a,b to widen.`;
|
|
341
|
+
}
|
|
342
|
+
function companySearchHints({
|
|
343
|
+
total,
|
|
344
|
+
returned,
|
|
345
|
+
page,
|
|
346
|
+
lastPage,
|
|
347
|
+
related
|
|
348
|
+
}) {
|
|
349
|
+
const hints = [];
|
|
350
|
+
if (total === 0) {
|
|
351
|
+
hints.push(
|
|
352
|
+
"No company matches every filter. Widen one at a time \u2014 a neighbouring size band, a related industry, one more country."
|
|
353
|
+
);
|
|
354
|
+
} else if (page < lastPage && returned > 0) {
|
|
355
|
+
hints.push(
|
|
356
|
+
`${total} companies match and ${returned} came back (each one returned is billed). Use \`total\` to size the market; ask for \`--page ${page + 1}\` only if you need the next rows for the list.`
|
|
357
|
+
);
|
|
358
|
+
}
|
|
359
|
+
const widen = relatedIndustriesHint(related);
|
|
360
|
+
if (widen) hints.push(widen);
|
|
361
|
+
return hints;
|
|
362
|
+
}
|
|
363
|
+
function unknownIndustriesFix(industries) {
|
|
364
|
+
const misses = industries.map(
|
|
365
|
+
({ input, closest }) => closest.length > 0 ? `"${input}" is not an industry. Closest (companies each matches with your other filters): ${industryList(closest)}.` : `"${input}" is not an industry, and none is named like it \u2014 try a broader word (software, logistics, retail).`
|
|
366
|
+
);
|
|
367
|
+
return {
|
|
368
|
+
action: "retry_with_changes",
|
|
369
|
+
explanation: `${misses.join(" ")} Pass one or several of these slugs with --industry a,b \u2014 several widen the search, any of them matching. Nothing was charged.`
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export {
|
|
374
|
+
noSerpRowsHints,
|
|
375
|
+
advertisersHints,
|
|
376
|
+
keywordsForSiteHints,
|
|
377
|
+
webSourceHints,
|
|
378
|
+
fetchHints,
|
|
379
|
+
findHints,
|
|
380
|
+
refsHints,
|
|
381
|
+
webDepthHints,
|
|
382
|
+
keywordMetricsHints,
|
|
383
|
+
redditSearchHints,
|
|
384
|
+
redditThreadHints,
|
|
385
|
+
redditSubredditsHints,
|
|
386
|
+
REDDIT_LINK_REJECTED,
|
|
387
|
+
redditPageFix,
|
|
388
|
+
googleAdsHints,
|
|
389
|
+
peopleHints,
|
|
390
|
+
linkedinPersonHints,
|
|
391
|
+
transcriptHints,
|
|
392
|
+
companyHints,
|
|
393
|
+
companySearchHints,
|
|
394
|
+
unknownIndustriesFix
|
|
395
|
+
};
|
|
396
|
+
//# sourceMappingURL=chunk-6U4ILEJ3.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TAG_IDENTIFYING_FIELD
|
|
3
|
+
} from "./chunk-FBW4FH4V.js";
|
|
4
|
+
import {
|
|
5
|
+
ApiError
|
|
6
|
+
} from "./chunk-EHEPW3O2.js";
|
|
7
|
+
import {
|
|
8
|
+
writeJson
|
|
9
|
+
} from "./chunk-2RTB2DDO.js";
|
|
10
|
+
|
|
11
|
+
// src/commands/tags/shared.ts
|
|
12
|
+
function failApi(err) {
|
|
13
|
+
if (err instanceof ApiError) {
|
|
14
|
+
writeJson({ ok: false, error: { code: err.code, message: err.message } });
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
if (err instanceof Error) {
|
|
18
|
+
writeJson({ ok: false, error: { code: "INTERNAL_ERROR", message: err.message } });
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
writeJson({ ok: false, error: { code: "INTERNAL_ERROR", message: "Unexpected error" } });
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
function failValidation(message) {
|
|
25
|
+
writeJson({ ok: false, error: { code: "VALIDATION_ERROR", message } });
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
function renderConfigValue(value) {
|
|
29
|
+
return value.includes("\n") ? value.replace(/\n/g, "\n ") : value;
|
|
30
|
+
}
|
|
31
|
+
function renderEffectiveEntry(entry) {
|
|
32
|
+
const parts = [entry.ref, entry.type];
|
|
33
|
+
if (entry.identifier !== void 0) {
|
|
34
|
+
parts.push(entry.identifier);
|
|
35
|
+
}
|
|
36
|
+
if (entry.staged !== void 0) {
|
|
37
|
+
parts.push(`[staged: ${entry.staged}]`);
|
|
38
|
+
}
|
|
39
|
+
const secretBits = [
|
|
40
|
+
...entry.secretsSet.map((field) => `${field} \u2713 set`),
|
|
41
|
+
...entry.secretsPending.map((field) => `${field} \u23F3 pending`)
|
|
42
|
+
];
|
|
43
|
+
if (secretBits.length > 0) {
|
|
44
|
+
parts.push(`[secrets: ${secretBits.join(", ")}]`);
|
|
45
|
+
}
|
|
46
|
+
const header = parts.join(" ");
|
|
47
|
+
const identifyingField = TAG_IDENTIFYING_FIELD[entry.type];
|
|
48
|
+
const configLines = Object.entries(entry.config).filter(([key]) => key !== identifyingField).map(([key, value]) => ` ${key}: ${renderConfigValue(value)}`);
|
|
49
|
+
return configLines.length > 0 ? `${header}
|
|
50
|
+
${configLines.join("\n")}` : header;
|
|
51
|
+
}
|
|
52
|
+
function tagsListHints() {
|
|
53
|
+
return [
|
|
54
|
+
"To create, edit or delete a tag, call the `request_tag_input` approval form (tool `mcp__baker_ui__request_tag_input`, server `baker_ui`) \u2014 it is attached to every turn of this chat and collects any secret values itself.",
|
|
55
|
+
"Don't conclude the form is unavailable from your tool list: call it, and report what it returns. And never file a tag change as a Task \u2014 a Task hands the user work this chat can stage in one call."
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
failApi,
|
|
61
|
+
failValidation,
|
|
62
|
+
renderEffectiveEntry,
|
|
63
|
+
tagsListHints
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=chunk-6Y4AXDU4.js.map
|