@koda-sl/baker-cli 0.851.0-dev.914922aaf → 0.851.0-dev.9afc75982
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 +8 -2
- package/dist/{account-Z62BVYAI.js → account-LMDIUOJG.js} +4 -4
- package/dist/{account-users-ZDZ7B4BX.js → account-users-6RC5HDP3.js} +4 -4
- package/dist/{accounts-FGWJDM52.js → accounts-LIGSG5NQ.js} +9 -9
- package/dist/{accounts-SUIMNTTA.js → accounts-YMDEDCHU.js} +3 -3
- package/dist/{actions-Q7DDN427.js → actions-U4QMVB4H.js} +18 -18
- package/dist/{activecampaign-BAWTDTSA.js → activecampaign-WPHFFOGW.js} +3 -3
- package/dist/{add-HBRY2SF6.js → add-AFPBNJDW.js} +3 -3
- package/dist/{add-I4DL3DN5.js → add-M3YT32OX.js} +3 -3
- package/dist/{add-3WUVL3MN.js → add-UJOKKBPM.js} +5 -5
- package/dist/{ads-BYETTX2Y.js → ads-T42GRQ7H.js} +4 -4
- package/dist/{advertisers-AJQEQ3VF.js → advertisers-NJE6DBLG.js} +3 -3
- package/dist/{alerts-RJBTQ2OX.js → alerts-CQ34OPCP.js} +5 -5
- package/dist/{analytics-WLFBQOO4.js → analytics-54QRGO5T.js} +3 -3
- package/dist/{analytics-SVV7JZ2J.js → analytics-HW6SG6ZE.js} +7 -7
- package/dist/{assign-MAXWMYQ2.js → assign-WIIL5VY7.js} +3 -3
- package/dist/{audience-size-ISJSPSRW.js → audience-size-2KL27ETQ.js} +3 -3
- package/dist/{audit-EHKSN2WS.js → audit-EPWNTRPE.js} +3 -3
- package/dist/{autocomplete-I6V2CKI4.js → autocomplete-JWML26GX.js} +3 -3
- package/dist/{avatars-775WMIZF.js → avatars-D7S43BGZ.js} +4 -4
- package/dist/{bid-pricing-HFBQ23DD.js → bid-pricing-MD7ROXQT.js} +4 -4
- package/dist/{brief-LR5YTTVQ.js → brief-JWYWQXOP.js} +7 -7
- package/dist/{campaign-groups-DKB3K7L4.js → campaign-groups-ZT3ZHZFF.js} +9 -9
- package/dist/{campaign-writes-DXV2HPB2.js → campaign-writes-72H332R4.js} +3 -3
- package/dist/{campaigns-UEPNMAIN.js → campaigns-Q363NCWU.js} +5 -5
- package/dist/{campaigns-6OYAQVIE.js → campaigns-TDR6VKYL.js} +12 -12
- package/dist/{canvas-6CWER4CP.js → canvas-T6ALQYZT.js} +15 -15
- package/dist/{capabilities-U53QPNBQ.js → capabilities-N52A6X2S.js} +3 -3
- package/dist/{catalog-KTAYEWYO.js → catalog-WKBCL56H.js} +4 -4
- package/dist/{chats-QVGXEYT6.js → chats-D5TGNPFK.js} +3 -3
- package/dist/{check-3YGJFXU2.js → check-6QZ2U6WJ.js} +2 -2
- package/dist/{chunk-MQZHJAH3.js → chunk-2BRVIOKO.js} +2 -2
- package/dist/{chunk-XNTV3QKG.js → chunk-2FBSB7UF.js} +2 -2
- package/dist/{chunk-NR5EJ6TC.js → chunk-2XKSMHDO.js} +3 -3
- package/dist/{chunk-MQIO7WLM.js → chunk-3TWET6OD.js} +2 -2
- package/dist/{chunk-QYOLOU5G.js → chunk-6H6BJBBS.js} +7 -7
- package/dist/{chunk-RS4BSY3E.js → chunk-6XOAPUW4.js} +2 -2
- package/dist/{chunk-WVXJYBWA.js → chunk-ACIBARQU.js} +2 -2
- package/dist/{chunk-JY5OIBMR.js → chunk-AQHT2XKB.js} +12 -12
- package/dist/{chunk-4X6QBNIB.js → chunk-ATUFMGY3.js} +2 -2
- package/dist/{chunk-J4Z2AP32.js → chunk-B43NI7QF.js} +7 -2
- package/dist/chunk-B43NI7QF.js.map +1 -0
- package/dist/{chunk-NOJC3PUZ.js → chunk-BDULC6LM.js} +2 -2
- package/dist/{chunk-5OXVEKML.js → chunk-BPUNOSXM.js} +2 -2
- package/dist/{chunk-ZDDJTA3H.js → chunk-CPRSVECH.js} +3 -3
- package/dist/{chunk-3HAKK5FO.js → chunk-DIOKO2YD.js} +4 -4
- package/dist/{chunk-YXYUHTQM.js → chunk-DZUYNVKJ.js} +3 -3
- package/dist/{chunk-CG6BJIHU.js → chunk-E2BFPWA5.js} +2 -2
- package/dist/{chunk-KDCPM6W2.js → chunk-EMZ6P2KH.js} +2 -2
- package/dist/{chunk-TWSIY2FS.js → chunk-F7DCEGAA.js} +2 -2
- package/dist/{chunk-DSZ3OLQU.js → chunk-FEP257NO.js} +2 -2
- package/dist/{chunk-52V5324M.js → chunk-GB2U76OM.js} +6 -6
- package/dist/{chunk-TDNOPJXB.js → chunk-I3HEOUZT.js} +2 -2
- package/dist/{chunk-CNVV272P.js → chunk-IDBREOFA.js} +2 -2
- package/dist/chunk-IDBREOFA.js.map +1 -0
- package/dist/{chunk-33KRW6HE.js → chunk-INY6DR2Y.js} +2 -2
- package/dist/{chunk-2DGJKIHF.js → chunk-JY2NBRHH.js} +2 -2
- package/dist/{chunk-ECUN7W2Y.js → chunk-KN2UAGSU.js} +2 -2
- package/dist/{chunk-J5LG2M5T.js → chunk-LDF2VXPC.js} +2 -2
- package/dist/{chunk-63XEBJIX.js → chunk-LRWUQABW.js} +5 -5
- package/dist/{chunk-CWYONUBS.js → chunk-MJ5JHMLF.js} +3 -3
- package/dist/{chunk-PMK2WXS5.js → chunk-NLWOT26L.js} +7 -7
- package/dist/{chunk-CHPHAPPP.js → chunk-O2YPJPMO.js} +5 -5
- package/dist/{chunk-YBSRIW5S.js → chunk-ODDHGVQE.js} +3 -3
- package/dist/{chunk-CPBXSDXS.js → chunk-P6Z44HNW.js} +2 -2
- package/dist/{chunk-5WQ3UHJ2.js → chunk-PSPSKOQR.js} +2 -2
- package/dist/{chunk-624DWMDW.js → chunk-QLIJ4NRV.js} +39 -3
- package/dist/{chunk-624DWMDW.js.map → chunk-QLIJ4NRV.js.map} +1 -1
- package/dist/{chunk-S2V54TOS.js → chunk-QNPOFQV5.js} +2 -2
- package/dist/{chunk-KUNNKG4S.js → chunk-QZMBPEUW.js} +3 -3
- package/dist/{chunk-HQISXBEX.js → chunk-RKGYVC2C.js} +2 -2
- package/dist/{chunk-OBT55DQA.js → chunk-SBP7CF7S.js} +2 -2
- package/dist/{chunk-34CJ5QXO.js → chunk-TJZKZKCQ.js} +2 -2
- package/dist/{chunk-CSOESLNA.js → chunk-TVZCWBC5.js} +2 -2
- package/dist/{chunk-Y62YTEPM.js → chunk-WCCFBAH4.js} +2 -2
- package/dist/{chunk-4MIETRE4.js → chunk-XDFXSMPX.js} +2 -2
- package/dist/{chunk-PA5OJXQ3.js → chunk-XFARJ2SL.js} +2 -2
- package/dist/{chunk-EHDZONE6.js → chunk-YNVE62WW.js} +2 -2
- package/dist/{claim-XHSTFNS3.js → claim-QGYCSESF.js} +3 -3
- package/dist/cli.js +33 -33
- package/dist/{companies-ITNWR5Q4.js → companies-VM4DJCIO.js} +7 -7
- package/dist/{company-ANL7K7CY.js → company-BPFVTGZK.js} +3 -3
- package/dist/{complete-7L3ILPCT.js → complete-NNDVV6CH.js} +3 -3
- package/dist/{connect-SD7PFKPI.js → connect-4G722CGF.js} +6 -6
- package/dist/{conversation-SKZMGVA5.js → conversation-TRXRUTL6.js} +3 -3
- package/dist/{conversions-IMST22UQ.js → conversions-4RQGCY3I.js} +8 -8
- package/dist/{create-QBA7VZSZ.js → create-4DUUV34B.js} +3 -3
- package/dist/{create-5KE4XHS3.js → create-GAKJO6RX.js} +3 -3
- package/dist/{create-SPNJBN6K.js → create-NUV6C7T7.js} +2 -2
- package/dist/{create-KGRQQ7WA.js → create-TSB2ED7G.js} +3 -3
- package/dist/{creatives-3E5BEATB.js → creatives-D2756SYZ.js} +9 -9
- package/dist/{creatives-42PW2C24.js → creatives-FRNDPYD2.js} +9 -9
- package/dist/{credentials-T7F2PFNY.js → credentials-VDUQOSAI.js} +3 -3
- package/dist/{critique-I2HAOTTX.js → critique-GCLEP53N.js} +4 -4
- package/dist/{crm-OO2WO6OG.js → crm-6KBBEU5D.js} +4 -4
- package/dist/{crm-EVN7PDQE.js → crm-MUVL3BHT.js} +4 -4
- package/dist/{customers-V7WKKZI2.js → customers-6X6LULB6.js} +5 -5
- package/dist/{delete-XAVEVESN.js → delete-FJPGJ2HP.js} +3 -3
- package/dist/{delete-7VLK5I4V.js → delete-M5Z5QXVO.js} +3 -3
- package/dist/{delete-TRJMPMN5.js → delete-P66UBMWB.js} +3 -3
- package/dist/{demographics-K5WTHZCW.js → demographics-TEDAJJDS.js} +3 -3
- package/dist/{discard-ANRGHE2Z.js → discard-UXSFTA6C.js} +3 -3
- package/dist/{domain-LQ4VCYC4.js → domain-Y3BKIFLA.js} +3 -3
- package/dist/{download-HVNPTNFN.js → download-P2XHLRNA.js} +2 -2
- package/dist/{draft-572T3UNG.js → draft-63RF6RKQ.js} +3 -3
- package/dist/{draft-KZKNUQ2I.js → draft-N2MVECRV.js} +3 -3
- package/dist/{draft-JGEZVDAS.js → draft-OJQT5H3E.js} +4 -4
- package/dist/engine/index.js +3 -3
- package/dist/{experiments-C4R65GA6.js → experiments-BFVLG54V.js} +4 -4
- package/dist/{extract-J7Q6DYE7.js → extract-YH5VKD7W.js} +2 -2
- package/dist/{facets-GXBTQCAW.js → facets-VJOSK5UL.js} +3 -3
- package/dist/{feedback-FZTJATY7.js → feedback-ATORZ5XJ.js} +3 -3
- package/dist/{fetch-GSMAAL7N.js → fetch-UDAWFZXZ.js} +3 -3
- package/dist/{fit-K63JPI3A.js → fit-4CVULFD2.js} +2 -2
- package/dist/{flows-C45HCGGB.js → flows-QXTZHPB6.js} +11 -11
- package/dist/{forecast-NOQNCFTX.js → forecast-DJ67NT6P.js} +4 -4
- package/dist/{funnel-U47RAS7K.js → funnel-2C6Z5VA2.js} +4 -4
- package/dist/{get-H5CUQP7G.js → get-GFVZKATP.js} +3 -3
- package/dist/{get-J2QFYRHW.js → get-JSO4YJFR.js} +3 -3
- package/dist/{google-OYP3AU3I.js → google-H4KVIAL5.js} +2 -2
- package/dist/{google-ads-74CPXLIA.js → google-ads-KCK27DGG.js} +3 -3
- package/dist/{history-M6VLA7TD.js → history-AIZX672U.js} +3 -3
- package/dist/{history-AGCS2TKY.js → history-LYUJTPSP.js} +3 -3
- package/dist/{hubspot-XZYXZ24P.js → hubspot-BZSQ3WMQ.js} +12 -18
- package/dist/hubspot-BZSQ3WMQ.js.map +1 -0
- package/dist/{ideas-6LZ6VINW.js → ideas-HHWTU7F2.js} +2 -2
- package/dist/{images-TUQEYLFE.js → images-BB6BYS54.js} +7 -7
- package/dist/{ingest-S7I6E2GE.js → ingest-S6HP4LXI.js} +3 -3
- package/dist/{ingest-XJNSFWBC.js → ingest-Z3DRI6A3.js} +2 -2
- package/dist/{inspect-AQBNRV5E.js → inspect-KC5LTH4E.js} +4 -4
- package/dist/{keyword-metrics-DSEJ2KDM.js → keyword-metrics-VGZIQBSG.js} +3 -3
- package/dist/{keywords-for-site-CYVRXIF5.js → keywords-for-site-3HREQUQU.js} +3 -3
- package/dist/{leads-ZRHPHJRE.js → leads-AKF42B23.js} +3 -3
- package/dist/{learn-ZR35TBVQ.js → learn-6D45W6YN.js} +4 -4
- package/dist/{line-item-writes-L73P5MN7.js → line-item-writes-SB6B75MY.js} +3 -3
- package/dist/{line-items-KC5PKV2T.js → line-items-22S6PURM.js} +5 -5
- package/dist/{link-64FQKM6S.js → link-CLMY2YW5.js} +3 -3
- package/dist/{linkedin-BD63QPGK.js → linkedin-GTYWIRDX.js} +30 -30
- package/dist/{linkedin-person-6XXLSFDE.js → linkedin-person-LBU3VGNY.js} +3 -3
- package/dist/{list-DBZ3AGW2.js → list-MWGLVZR3.js} +3 -3
- package/dist/{list-G5QSLYQQ.js → list-MXUPVC2W.js} +4 -4
- package/dist/list-MXUPVC2W.js.map +1 -0
- package/dist/{list-KYTLJVHG.js → list-P6IN6K26.js} +73 -16
- package/dist/list-P6IN6K26.js.map +1 -0
- package/dist/{list-WOCSNSYO.js → list-SZKENQ2B.js} +3 -3
- package/dist/{log-LLJ3M63R.js → log-XOYBG7KX.js} +3 -3
- package/dist/{make-UM6P6RD3.js → make-ZBUVEPHX.js} +11 -11
- package/dist/{map-SKH3NVSQ.js → map-VBYQNHJR.js} +4 -4
- package/dist/{mcp-FIBT4HAH.js → mcp-RSB47JCJ.js} +2 -2
- package/dist/{media-sources-NI6U2YWV.js → media-sources-ZCXMQCSE.js} +2 -2
- package/dist/{members-PK3Q7AZX.js → members-QL5TXGND.js} +3 -3
- package/dist/{normalize-KEDHUMAB.js → normalize-YWNW62HI.js} +3 -3
- package/dist/{options-VYRUYL4N.js → options-5RRLBIVY.js} +6 -6
- package/dist/{organization-RTJDOJEV.js → organization-FZUYEBEE.js} +3 -3
- package/dist/{people-A3YXUYUR.js → people-FO6OCDP5.js} +3 -3
- package/dist/{people-3VU3QSRN.js → people-XGMOJZTE.js} +3 -3
- package/dist/{performance-OBAWMTVU.js → performance-7AXRRE5J.js} +4 -4
- package/dist/{performance-6I57ZQTD.js → performance-USJY2HVB.js} +3 -3
- package/dist/{pipedrive-7AA7ZD7M.js → pipedrive-LWAH5BTV.js} +3 -3
- package/dist/{preview-66BGLU5H.js → preview-5ZMTNYCI.js} +3 -3
- package/dist/{promoted-tweet-writes-ZUFVAVGA.js → promoted-tweet-writes-VW6XCOL3.js} +3 -3
- package/dist/{promoted-tweets-3AKHKOI4.js → promoted-tweets-5Y6RGBJS.js} +3 -3
- package/dist/{publish-JPIOQKB4.js → publish-ERJPN3EL.js} +3 -3
- package/dist/{reddit-TKE3IXST.js → reddit-OKEJ7EIX.js} +4 -4
- package/dist/{refresh-BE7KEADW.js → refresh-ACG34ZRD.js} +2 -2
- package/dist/{release-EUXHZEO7.js → release-XYWQM7DE.js} +3 -3
- package/dist/{remove-6HAN547O.js → remove-NJQM5BGF.js} +3 -3
- package/dist/{reopen-HBEWR4CF.js → reopen-BO6G2RRS.js} +3 -3
- package/dist/{rerun-PLS5XYTW.js → rerun-BVUWQCAR.js} +14 -14
- package/dist/{research-RCD54TCL.js → research-2V6WG3XG.js} +2 -2
- package/dist/{research-B5VHPALW.js → research-G7BDWYEG.js} +14 -14
- package/dist/{reset-DQXYM75W.js → reset-2DDLUZGB.js} +3 -3
- package/dist/{reset-Y7UWO233.js → reset-JPOOEIX7.js} +2 -2
- package/dist/{resolve-NVL3FTQU.js → resolve-J4TIUP3W.js} +3 -3
- package/dist/{retry-MMY5H6O6.js → retry-MNGVR37L.js} +2 -2
- package/dist/{retry-YCYZPMXM.js → retry-Y4FLZQVK.js} +2 -2
- package/dist/{revenue-C24BDD5A.js → revenue-AVLQNUT2.js} +4 -4
- package/dist/{rules-MGEJJJ4O.js → rules-UBZ32MQY.js} +5 -5
- package/dist/{run-2RGSNKFH.js → run-VGOXHEO5.js} +14 -14
- package/dist/{run-HCYK5ZAX.js → run-XJXE63QH.js} +3 -3
- package/dist/{scaffold-ad-UOXDJIVB.js → scaffold-ad-6PZGNV3I.js} +9 -9
- package/dist/{scaffold-static-ad-ZM3LOIFK.js → scaffold-static-ad-2QFZLGHK.js} +17 -17
- package/dist/{scaffold-video-EBQOBQXI.js → scaffold-video-5RUBD5YB.js} +8 -8
- package/dist/{schedule-IVNAF7NB.js → schedule-G2AETZEM.js} +3 -3
- package/dist/{scheduled-agents-YHZUPS2I.js → scheduled-agents-JJAT2UDK.js} +11 -11
- package/dist/{schema-F6QTDMJW.js → schema-CCGBDISR.js} +4 -4
- package/dist/{schema-NIYT4JHM.js → schema-WEIPH4ND.js} +1 -1
- package/dist/{search-A4GTDVIE.js → search-7GBSNW7V.js} +44 -7
- package/dist/search-7GBSNW7V.js.map +1 -0
- package/dist/{select-HER2THTU.js → select-OQQ6DG2X.js} +5 -5
- package/dist/{set-MXHNM4NH.js → set-HOITXI2N.js} +5 -5
- package/dist/{set-prompt-G27JMELE.js → set-prompt-ZR2FYPQW.js} +5 -5
- package/dist/{setup-links-LVJU7KHP.js → setup-links-R55MLOHW.js} +3 -3
- package/dist/{shopify-ZQFONX3R.js → shopify-GGDNTMXH.js} +3 -3
- package/dist/{site-X43NFWHL.js → site-QM6WTCDR.js} +4 -4
- package/dist/{sources-3KYI7TSD.js → sources-E2EM2SNG.js} +7 -7
- package/dist/{sources-G7QWYL2J.js → sources-RI4IBRB3.js} +6 -6
- package/dist/{stale-F7UXOYYY.js → stale-MBQ37TKC.js} +5 -5
- package/dist/{status-7RLJ7ZND.js → status-FVVTWIY7.js} +3 -3
- package/dist/{stock-BSMF4FH4.js → stock-FT4NHZXJ.js} +2 -2
- package/dist/{sync-XAWDIOTT.js → sync-FZQUMCEN.js} +3 -3
- package/dist/{sync-definition-73CCAEDP.js → sync-definition-AQVZ3JWE.js} +8 -8
- package/dist/{tags-MWMY3GRG.js → tags-35NZJVQH.js} +3 -3
- package/dist/{tags-QHEJUOHL.js → tags-FOPSMF5B.js} +3 -3
- package/dist/{tags-5V3NCHKE.js → tags-GHXYLYCU.js} +4 -4
- package/dist/{tags-M57YBWGW.js → tags-OPUZMCDP.js} +3 -3
- package/dist/{tags-HSLB3YPN.js → tags-XYNTGG5R.js} +3 -3
- package/dist/{targeting-criteria-FIXPSX2K.js → targeting-criteria-HJGUXYDZ.js} +3 -3
- package/dist/{targets-5A5SOQJM.js → targets-ALLAKOF4.js} +3 -3
- package/dist/{testimonials-RIL2ARX7.js → testimonials-RJGFPCWC.js} +6 -6
- package/dist/{top-companies-KEV55RME.js → top-companies-54CSTO3Q.js} +7 -7
- package/dist/{transcript-ZOJWRPZD.js → transcript-P4VCJV4Y.js} +3 -3
- package/dist/{translate-WL6KD2X4.js → translate-FFNWW66Z.js} +10 -10
- package/dist/{triggers-PH33IQLK.js → triggers-VX4QYB7T.js} +3 -3
- package/dist/{unlink-WD5D3XBG.js → unlink-FFH7O6HU.js} +3 -3
- package/dist/{unstage-52VGCJWF.js → unstage-RAWC4IZG.js} +3 -3
- package/dist/{update-TZLOKZ22.js → update-6GLFLB2Z.js} +3 -3
- package/dist/{update-3YQGAFEX.js → update-OJ3OZCJP.js} +3 -3
- package/dist/{update-6355E7VP.js → update-TZ7D7JGT.js} +2 -2
- package/dist/{update-RD27CPMN.js → update-ZD5O3VU7.js} +3 -3
- package/dist/{upload-PMKPLLAA.js → upload-QA3ZAQ7I.js} +3 -3
- package/dist/{url-params-CXUAYJBD.js → url-params-D3QZKPUJ.js} +3 -3
- package/dist/{validate-YRTGO4UN.js → validate-AHDXK4NQ.js} +10 -10
- package/dist/{videos-KGPDOMSN.js → videos-J45JFDMU.js} +6 -6
- package/dist/{viewer-check-PRUOWSNM.js → viewer-check-NXF23BG5.js} +2 -2
- package/dist/{visuals-L73TEVWN.js → visuals-YCW3QLUS.js} +3 -3
- package/dist/{web-IVYO7PY6.js → web-4AI7PPJ6.js} +3 -3
- package/dist/{winning-ads-274QKPKB.js → winning-ads-WRAW2TC5.js} +3 -3
- package/dist/{write-commands-FUXBKDN7.js → write-commands-Z2PWVPT6.js} +4 -4
- package/dist/{x-WVWMOUAQ.js → x-KQMYVN43.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-CNVV272P.js.map +0 -1
- package/dist/chunk-J4Z2AP32.js.map +0 -1
- package/dist/hubspot-XZYXZ24P.js.map +0 -1
- package/dist/list-G5QSLYQQ.js.map +0 -1
- package/dist/list-KYTLJVHG.js.map +0 -1
- package/dist/search-A4GTDVIE.js.map +0 -1
- /package/dist/{account-Z62BVYAI.js.map → account-LMDIUOJG.js.map} +0 -0
- /package/dist/{account-users-ZDZ7B4BX.js.map → account-users-6RC5HDP3.js.map} +0 -0
- /package/dist/{accounts-FGWJDM52.js.map → accounts-LIGSG5NQ.js.map} +0 -0
- /package/dist/{accounts-SUIMNTTA.js.map → accounts-YMDEDCHU.js.map} +0 -0
- /package/dist/{actions-Q7DDN427.js.map → actions-U4QMVB4H.js.map} +0 -0
- /package/dist/{activecampaign-BAWTDTSA.js.map → activecampaign-WPHFFOGW.js.map} +0 -0
- /package/dist/{add-HBRY2SF6.js.map → add-AFPBNJDW.js.map} +0 -0
- /package/dist/{add-I4DL3DN5.js.map → add-M3YT32OX.js.map} +0 -0
- /package/dist/{add-3WUVL3MN.js.map → add-UJOKKBPM.js.map} +0 -0
- /package/dist/{ads-BYETTX2Y.js.map → ads-T42GRQ7H.js.map} +0 -0
- /package/dist/{advertisers-AJQEQ3VF.js.map → advertisers-NJE6DBLG.js.map} +0 -0
- /package/dist/{alerts-RJBTQ2OX.js.map → alerts-CQ34OPCP.js.map} +0 -0
- /package/dist/{analytics-WLFBQOO4.js.map → analytics-54QRGO5T.js.map} +0 -0
- /package/dist/{analytics-SVV7JZ2J.js.map → analytics-HW6SG6ZE.js.map} +0 -0
- /package/dist/{assign-MAXWMYQ2.js.map → assign-WIIL5VY7.js.map} +0 -0
- /package/dist/{audience-size-ISJSPSRW.js.map → audience-size-2KL27ETQ.js.map} +0 -0
- /package/dist/{audit-EHKSN2WS.js.map → audit-EPWNTRPE.js.map} +0 -0
- /package/dist/{autocomplete-I6V2CKI4.js.map → autocomplete-JWML26GX.js.map} +0 -0
- /package/dist/{avatars-775WMIZF.js.map → avatars-D7S43BGZ.js.map} +0 -0
- /package/dist/{bid-pricing-HFBQ23DD.js.map → bid-pricing-MD7ROXQT.js.map} +0 -0
- /package/dist/{brief-LR5YTTVQ.js.map → brief-JWYWQXOP.js.map} +0 -0
- /package/dist/{campaign-groups-DKB3K7L4.js.map → campaign-groups-ZT3ZHZFF.js.map} +0 -0
- /package/dist/{campaign-writes-DXV2HPB2.js.map → campaign-writes-72H332R4.js.map} +0 -0
- /package/dist/{campaigns-UEPNMAIN.js.map → campaigns-Q363NCWU.js.map} +0 -0
- /package/dist/{campaigns-6OYAQVIE.js.map → campaigns-TDR6VKYL.js.map} +0 -0
- /package/dist/{canvas-6CWER4CP.js.map → canvas-T6ALQYZT.js.map} +0 -0
- /package/dist/{capabilities-U53QPNBQ.js.map → capabilities-N52A6X2S.js.map} +0 -0
- /package/dist/{catalog-KTAYEWYO.js.map → catalog-WKBCL56H.js.map} +0 -0
- /package/dist/{chats-QVGXEYT6.js.map → chats-D5TGNPFK.js.map} +0 -0
- /package/dist/{check-3YGJFXU2.js.map → check-6QZ2U6WJ.js.map} +0 -0
- /package/dist/{chunk-MQZHJAH3.js.map → chunk-2BRVIOKO.js.map} +0 -0
- /package/dist/{chunk-XNTV3QKG.js.map → chunk-2FBSB7UF.js.map} +0 -0
- /package/dist/{chunk-NR5EJ6TC.js.map → chunk-2XKSMHDO.js.map} +0 -0
- /package/dist/{chunk-MQIO7WLM.js.map → chunk-3TWET6OD.js.map} +0 -0
- /package/dist/{chunk-QYOLOU5G.js.map → chunk-6H6BJBBS.js.map} +0 -0
- /package/dist/{chunk-RS4BSY3E.js.map → chunk-6XOAPUW4.js.map} +0 -0
- /package/dist/{chunk-WVXJYBWA.js.map → chunk-ACIBARQU.js.map} +0 -0
- /package/dist/{chunk-JY5OIBMR.js.map → chunk-AQHT2XKB.js.map} +0 -0
- /package/dist/{chunk-4X6QBNIB.js.map → chunk-ATUFMGY3.js.map} +0 -0
- /package/dist/{chunk-NOJC3PUZ.js.map → chunk-BDULC6LM.js.map} +0 -0
- /package/dist/{chunk-5OXVEKML.js.map → chunk-BPUNOSXM.js.map} +0 -0
- /package/dist/{chunk-ZDDJTA3H.js.map → chunk-CPRSVECH.js.map} +0 -0
- /package/dist/{chunk-3HAKK5FO.js.map → chunk-DIOKO2YD.js.map} +0 -0
- /package/dist/{chunk-YXYUHTQM.js.map → chunk-DZUYNVKJ.js.map} +0 -0
- /package/dist/{chunk-CG6BJIHU.js.map → chunk-E2BFPWA5.js.map} +0 -0
- /package/dist/{chunk-KDCPM6W2.js.map → chunk-EMZ6P2KH.js.map} +0 -0
- /package/dist/{chunk-TWSIY2FS.js.map → chunk-F7DCEGAA.js.map} +0 -0
- /package/dist/{chunk-DSZ3OLQU.js.map → chunk-FEP257NO.js.map} +0 -0
- /package/dist/{chunk-52V5324M.js.map → chunk-GB2U76OM.js.map} +0 -0
- /package/dist/{chunk-TDNOPJXB.js.map → chunk-I3HEOUZT.js.map} +0 -0
- /package/dist/{chunk-33KRW6HE.js.map → chunk-INY6DR2Y.js.map} +0 -0
- /package/dist/{chunk-2DGJKIHF.js.map → chunk-JY2NBRHH.js.map} +0 -0
- /package/dist/{chunk-ECUN7W2Y.js.map → chunk-KN2UAGSU.js.map} +0 -0
- /package/dist/{chunk-J5LG2M5T.js.map → chunk-LDF2VXPC.js.map} +0 -0
- /package/dist/{chunk-63XEBJIX.js.map → chunk-LRWUQABW.js.map} +0 -0
- /package/dist/{chunk-CWYONUBS.js.map → chunk-MJ5JHMLF.js.map} +0 -0
- /package/dist/{chunk-PMK2WXS5.js.map → chunk-NLWOT26L.js.map} +0 -0
- /package/dist/{chunk-CHPHAPPP.js.map → chunk-O2YPJPMO.js.map} +0 -0
- /package/dist/{chunk-YBSRIW5S.js.map → chunk-ODDHGVQE.js.map} +0 -0
- /package/dist/{chunk-CPBXSDXS.js.map → chunk-P6Z44HNW.js.map} +0 -0
- /package/dist/{chunk-5WQ3UHJ2.js.map → chunk-PSPSKOQR.js.map} +0 -0
- /package/dist/{chunk-S2V54TOS.js.map → chunk-QNPOFQV5.js.map} +0 -0
- /package/dist/{chunk-KUNNKG4S.js.map → chunk-QZMBPEUW.js.map} +0 -0
- /package/dist/{chunk-HQISXBEX.js.map → chunk-RKGYVC2C.js.map} +0 -0
- /package/dist/{chunk-OBT55DQA.js.map → chunk-SBP7CF7S.js.map} +0 -0
- /package/dist/{chunk-34CJ5QXO.js.map → chunk-TJZKZKCQ.js.map} +0 -0
- /package/dist/{chunk-CSOESLNA.js.map → chunk-TVZCWBC5.js.map} +0 -0
- /package/dist/{chunk-Y62YTEPM.js.map → chunk-WCCFBAH4.js.map} +0 -0
- /package/dist/{chunk-4MIETRE4.js.map → chunk-XDFXSMPX.js.map} +0 -0
- /package/dist/{chunk-PA5OJXQ3.js.map → chunk-XFARJ2SL.js.map} +0 -0
- /package/dist/{chunk-EHDZONE6.js.map → chunk-YNVE62WW.js.map} +0 -0
- /package/dist/{claim-XHSTFNS3.js.map → claim-QGYCSESF.js.map} +0 -0
- /package/dist/{companies-ITNWR5Q4.js.map → companies-VM4DJCIO.js.map} +0 -0
- /package/dist/{company-ANL7K7CY.js.map → company-BPFVTGZK.js.map} +0 -0
- /package/dist/{complete-7L3ILPCT.js.map → complete-NNDVV6CH.js.map} +0 -0
- /package/dist/{connect-SD7PFKPI.js.map → connect-4G722CGF.js.map} +0 -0
- /package/dist/{conversation-SKZMGVA5.js.map → conversation-TRXRUTL6.js.map} +0 -0
- /package/dist/{conversions-IMST22UQ.js.map → conversions-4RQGCY3I.js.map} +0 -0
- /package/dist/{create-QBA7VZSZ.js.map → create-4DUUV34B.js.map} +0 -0
- /package/dist/{create-5KE4XHS3.js.map → create-GAKJO6RX.js.map} +0 -0
- /package/dist/{create-SPNJBN6K.js.map → create-NUV6C7T7.js.map} +0 -0
- /package/dist/{create-KGRQQ7WA.js.map → create-TSB2ED7G.js.map} +0 -0
- /package/dist/{creatives-3E5BEATB.js.map → creatives-D2756SYZ.js.map} +0 -0
- /package/dist/{creatives-42PW2C24.js.map → creatives-FRNDPYD2.js.map} +0 -0
- /package/dist/{credentials-T7F2PFNY.js.map → credentials-VDUQOSAI.js.map} +0 -0
- /package/dist/{critique-I2HAOTTX.js.map → critique-GCLEP53N.js.map} +0 -0
- /package/dist/{crm-OO2WO6OG.js.map → crm-6KBBEU5D.js.map} +0 -0
- /package/dist/{crm-EVN7PDQE.js.map → crm-MUVL3BHT.js.map} +0 -0
- /package/dist/{customers-V7WKKZI2.js.map → customers-6X6LULB6.js.map} +0 -0
- /package/dist/{delete-XAVEVESN.js.map → delete-FJPGJ2HP.js.map} +0 -0
- /package/dist/{delete-7VLK5I4V.js.map → delete-M5Z5QXVO.js.map} +0 -0
- /package/dist/{delete-TRJMPMN5.js.map → delete-P66UBMWB.js.map} +0 -0
- /package/dist/{demographics-K5WTHZCW.js.map → demographics-TEDAJJDS.js.map} +0 -0
- /package/dist/{discard-ANRGHE2Z.js.map → discard-UXSFTA6C.js.map} +0 -0
- /package/dist/{domain-LQ4VCYC4.js.map → domain-Y3BKIFLA.js.map} +0 -0
- /package/dist/{download-HVNPTNFN.js.map → download-P2XHLRNA.js.map} +0 -0
- /package/dist/{draft-572T3UNG.js.map → draft-63RF6RKQ.js.map} +0 -0
- /package/dist/{draft-KZKNUQ2I.js.map → draft-N2MVECRV.js.map} +0 -0
- /package/dist/{draft-JGEZVDAS.js.map → draft-OJQT5H3E.js.map} +0 -0
- /package/dist/{experiments-C4R65GA6.js.map → experiments-BFVLG54V.js.map} +0 -0
- /package/dist/{extract-J7Q6DYE7.js.map → extract-YH5VKD7W.js.map} +0 -0
- /package/dist/{facets-GXBTQCAW.js.map → facets-VJOSK5UL.js.map} +0 -0
- /package/dist/{feedback-FZTJATY7.js.map → feedback-ATORZ5XJ.js.map} +0 -0
- /package/dist/{fetch-GSMAAL7N.js.map → fetch-UDAWFZXZ.js.map} +0 -0
- /package/dist/{fit-K63JPI3A.js.map → fit-4CVULFD2.js.map} +0 -0
- /package/dist/{flows-C45HCGGB.js.map → flows-QXTZHPB6.js.map} +0 -0
- /package/dist/{forecast-NOQNCFTX.js.map → forecast-DJ67NT6P.js.map} +0 -0
- /package/dist/{funnel-U47RAS7K.js.map → funnel-2C6Z5VA2.js.map} +0 -0
- /package/dist/{get-H5CUQP7G.js.map → get-GFVZKATP.js.map} +0 -0
- /package/dist/{get-J2QFYRHW.js.map → get-JSO4YJFR.js.map} +0 -0
- /package/dist/{google-OYP3AU3I.js.map → google-H4KVIAL5.js.map} +0 -0
- /package/dist/{google-ads-74CPXLIA.js.map → google-ads-KCK27DGG.js.map} +0 -0
- /package/dist/{history-M6VLA7TD.js.map → history-AIZX672U.js.map} +0 -0
- /package/dist/{history-AGCS2TKY.js.map → history-LYUJTPSP.js.map} +0 -0
- /package/dist/{ideas-6LZ6VINW.js.map → ideas-HHWTU7F2.js.map} +0 -0
- /package/dist/{images-TUQEYLFE.js.map → images-BB6BYS54.js.map} +0 -0
- /package/dist/{ingest-S7I6E2GE.js.map → ingest-S6HP4LXI.js.map} +0 -0
- /package/dist/{ingest-XJNSFWBC.js.map → ingest-Z3DRI6A3.js.map} +0 -0
- /package/dist/{inspect-AQBNRV5E.js.map → inspect-KC5LTH4E.js.map} +0 -0
- /package/dist/{keyword-metrics-DSEJ2KDM.js.map → keyword-metrics-VGZIQBSG.js.map} +0 -0
- /package/dist/{keywords-for-site-CYVRXIF5.js.map → keywords-for-site-3HREQUQU.js.map} +0 -0
- /package/dist/{leads-ZRHPHJRE.js.map → leads-AKF42B23.js.map} +0 -0
- /package/dist/{learn-ZR35TBVQ.js.map → learn-6D45W6YN.js.map} +0 -0
- /package/dist/{line-item-writes-L73P5MN7.js.map → line-item-writes-SB6B75MY.js.map} +0 -0
- /package/dist/{line-items-KC5PKV2T.js.map → line-items-22S6PURM.js.map} +0 -0
- /package/dist/{link-64FQKM6S.js.map → link-CLMY2YW5.js.map} +0 -0
- /package/dist/{linkedin-BD63QPGK.js.map → linkedin-GTYWIRDX.js.map} +0 -0
- /package/dist/{linkedin-person-6XXLSFDE.js.map → linkedin-person-LBU3VGNY.js.map} +0 -0
- /package/dist/{list-DBZ3AGW2.js.map → list-MWGLVZR3.js.map} +0 -0
- /package/dist/{list-WOCSNSYO.js.map → list-SZKENQ2B.js.map} +0 -0
- /package/dist/{log-LLJ3M63R.js.map → log-XOYBG7KX.js.map} +0 -0
- /package/dist/{make-UM6P6RD3.js.map → make-ZBUVEPHX.js.map} +0 -0
- /package/dist/{map-SKH3NVSQ.js.map → map-VBYQNHJR.js.map} +0 -0
- /package/dist/{mcp-FIBT4HAH.js.map → mcp-RSB47JCJ.js.map} +0 -0
- /package/dist/{media-sources-NI6U2YWV.js.map → media-sources-ZCXMQCSE.js.map} +0 -0
- /package/dist/{members-PK3Q7AZX.js.map → members-QL5TXGND.js.map} +0 -0
- /package/dist/{normalize-KEDHUMAB.js.map → normalize-YWNW62HI.js.map} +0 -0
- /package/dist/{options-VYRUYL4N.js.map → options-5RRLBIVY.js.map} +0 -0
- /package/dist/{organization-RTJDOJEV.js.map → organization-FZUYEBEE.js.map} +0 -0
- /package/dist/{people-A3YXUYUR.js.map → people-FO6OCDP5.js.map} +0 -0
- /package/dist/{people-3VU3QSRN.js.map → people-XGMOJZTE.js.map} +0 -0
- /package/dist/{performance-OBAWMTVU.js.map → performance-7AXRRE5J.js.map} +0 -0
- /package/dist/{performance-6I57ZQTD.js.map → performance-USJY2HVB.js.map} +0 -0
- /package/dist/{pipedrive-7AA7ZD7M.js.map → pipedrive-LWAH5BTV.js.map} +0 -0
- /package/dist/{preview-66BGLU5H.js.map → preview-5ZMTNYCI.js.map} +0 -0
- /package/dist/{promoted-tweet-writes-ZUFVAVGA.js.map → promoted-tweet-writes-VW6XCOL3.js.map} +0 -0
- /package/dist/{promoted-tweets-3AKHKOI4.js.map → promoted-tweets-5Y6RGBJS.js.map} +0 -0
- /package/dist/{publish-JPIOQKB4.js.map → publish-ERJPN3EL.js.map} +0 -0
- /package/dist/{reddit-TKE3IXST.js.map → reddit-OKEJ7EIX.js.map} +0 -0
- /package/dist/{refresh-BE7KEADW.js.map → refresh-ACG34ZRD.js.map} +0 -0
- /package/dist/{release-EUXHZEO7.js.map → release-XYWQM7DE.js.map} +0 -0
- /package/dist/{remove-6HAN547O.js.map → remove-NJQM5BGF.js.map} +0 -0
- /package/dist/{reopen-HBEWR4CF.js.map → reopen-BO6G2RRS.js.map} +0 -0
- /package/dist/{rerun-PLS5XYTW.js.map → rerun-BVUWQCAR.js.map} +0 -0
- /package/dist/{research-RCD54TCL.js.map → research-2V6WG3XG.js.map} +0 -0
- /package/dist/{research-B5VHPALW.js.map → research-G7BDWYEG.js.map} +0 -0
- /package/dist/{reset-DQXYM75W.js.map → reset-2DDLUZGB.js.map} +0 -0
- /package/dist/{reset-Y7UWO233.js.map → reset-JPOOEIX7.js.map} +0 -0
- /package/dist/{resolve-NVL3FTQU.js.map → resolve-J4TIUP3W.js.map} +0 -0
- /package/dist/{retry-MMY5H6O6.js.map → retry-MNGVR37L.js.map} +0 -0
- /package/dist/{retry-YCYZPMXM.js.map → retry-Y4FLZQVK.js.map} +0 -0
- /package/dist/{revenue-C24BDD5A.js.map → revenue-AVLQNUT2.js.map} +0 -0
- /package/dist/{rules-MGEJJJ4O.js.map → rules-UBZ32MQY.js.map} +0 -0
- /package/dist/{run-2RGSNKFH.js.map → run-VGOXHEO5.js.map} +0 -0
- /package/dist/{run-HCYK5ZAX.js.map → run-XJXE63QH.js.map} +0 -0
- /package/dist/{scaffold-ad-UOXDJIVB.js.map → scaffold-ad-6PZGNV3I.js.map} +0 -0
- /package/dist/{scaffold-static-ad-ZM3LOIFK.js.map → scaffold-static-ad-2QFZLGHK.js.map} +0 -0
- /package/dist/{scaffold-video-EBQOBQXI.js.map → scaffold-video-5RUBD5YB.js.map} +0 -0
- /package/dist/{schedule-IVNAF7NB.js.map → schedule-G2AETZEM.js.map} +0 -0
- /package/dist/{scheduled-agents-YHZUPS2I.js.map → scheduled-agents-JJAT2UDK.js.map} +0 -0
- /package/dist/{schema-F6QTDMJW.js.map → schema-CCGBDISR.js.map} +0 -0
- /package/dist/{schema-NIYT4JHM.js.map → schema-WEIPH4ND.js.map} +0 -0
- /package/dist/{select-HER2THTU.js.map → select-OQQ6DG2X.js.map} +0 -0
- /package/dist/{set-MXHNM4NH.js.map → set-HOITXI2N.js.map} +0 -0
- /package/dist/{set-prompt-G27JMELE.js.map → set-prompt-ZR2FYPQW.js.map} +0 -0
- /package/dist/{setup-links-LVJU7KHP.js.map → setup-links-R55MLOHW.js.map} +0 -0
- /package/dist/{shopify-ZQFONX3R.js.map → shopify-GGDNTMXH.js.map} +0 -0
- /package/dist/{site-X43NFWHL.js.map → site-QM6WTCDR.js.map} +0 -0
- /package/dist/{sources-3KYI7TSD.js.map → sources-E2EM2SNG.js.map} +0 -0
- /package/dist/{sources-G7QWYL2J.js.map → sources-RI4IBRB3.js.map} +0 -0
- /package/dist/{stale-F7UXOYYY.js.map → stale-MBQ37TKC.js.map} +0 -0
- /package/dist/{status-7RLJ7ZND.js.map → status-FVVTWIY7.js.map} +0 -0
- /package/dist/{stock-BSMF4FH4.js.map → stock-FT4NHZXJ.js.map} +0 -0
- /package/dist/{sync-XAWDIOTT.js.map → sync-FZQUMCEN.js.map} +0 -0
- /package/dist/{sync-definition-73CCAEDP.js.map → sync-definition-AQVZ3JWE.js.map} +0 -0
- /package/dist/{tags-MWMY3GRG.js.map → tags-35NZJVQH.js.map} +0 -0
- /package/dist/{tags-QHEJUOHL.js.map → tags-FOPSMF5B.js.map} +0 -0
- /package/dist/{tags-5V3NCHKE.js.map → tags-GHXYLYCU.js.map} +0 -0
- /package/dist/{tags-M57YBWGW.js.map → tags-OPUZMCDP.js.map} +0 -0
- /package/dist/{tags-HSLB3YPN.js.map → tags-XYNTGG5R.js.map} +0 -0
- /package/dist/{targeting-criteria-FIXPSX2K.js.map → targeting-criteria-HJGUXYDZ.js.map} +0 -0
- /package/dist/{targets-5A5SOQJM.js.map → targets-ALLAKOF4.js.map} +0 -0
- /package/dist/{testimonials-RIL2ARX7.js.map → testimonials-RJGFPCWC.js.map} +0 -0
- /package/dist/{top-companies-KEV55RME.js.map → top-companies-54CSTO3Q.js.map} +0 -0
- /package/dist/{transcript-ZOJWRPZD.js.map → transcript-P4VCJV4Y.js.map} +0 -0
- /package/dist/{translate-WL6KD2X4.js.map → translate-FFNWW66Z.js.map} +0 -0
- /package/dist/{triggers-PH33IQLK.js.map → triggers-VX4QYB7T.js.map} +0 -0
- /package/dist/{unlink-WD5D3XBG.js.map → unlink-FFH7O6HU.js.map} +0 -0
- /package/dist/{unstage-52VGCJWF.js.map → unstage-RAWC4IZG.js.map} +0 -0
- /package/dist/{update-TZLOKZ22.js.map → update-6GLFLB2Z.js.map} +0 -0
- /package/dist/{update-3YQGAFEX.js.map → update-OJ3OZCJP.js.map} +0 -0
- /package/dist/{update-6355E7VP.js.map → update-TZ7D7JGT.js.map} +0 -0
- /package/dist/{update-RD27CPMN.js.map → update-ZD5O3VU7.js.map} +0 -0
- /package/dist/{upload-PMKPLLAA.js.map → upload-QA3ZAQ7I.js.map} +0 -0
- /package/dist/{url-params-CXUAYJBD.js.map → url-params-D3QZKPUJ.js.map} +0 -0
- /package/dist/{validate-YRTGO4UN.js.map → validate-AHDXK4NQ.js.map} +0 -0
- /package/dist/{videos-KGPDOMSN.js.map → videos-J45JFDMU.js.map} +0 -0
- /package/dist/{viewer-check-PRUOWSNM.js.map → viewer-check-NXF23BG5.js.map} +0 -0
- /package/dist/{visuals-L73TEVWN.js.map → visuals-YCW3QLUS.js.map} +0 -0
- /package/dist/{web-IVYO7PY6.js.map → web-4AI7PPJ6.js.map} +0 -0
- /package/dist/{winning-ads-274QKPKB.js.map → winning-ads-WRAW2TC5.js.map} +0 -0
- /package/dist/{write-commands-FUXBKDN7.js.map → write-commands-Z2PWVPT6.js.map} +0 -0
- /package/dist/{x-WVWMOUAQ.js.map → x-KQMYVN43.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/testimonials/emptyCorpusHints.ts"],"sourcesContent":["/**\n * Zero-result steering for the testimonial corpus.\n *\n * A bare `[]` reads as \"my query missed\" and the agent re-queries — three calls\n * to prove the same thing, in an audited run. It almost never means that here:\n * testimonials are ingested from the client's Google/Trustpilot reviews and an\n * agent cannot create one, so an empty library is a dead end no rewording opens.\n *\n * This module used to *assert* which of those it was, from `resultCount === 0`\n * alone: an unfiltered browse returning nothing was declared \"proof\" that the\n * company had no review corpus connected. It was never checked, and a company\n * with a connected source that simply holds no rows yet got told, confidently,\n * that it had no source at all. An agent then wrote that into the client's\n * knowledge vault as fact.\n *\n * So the reason is now measured against `GET /api/testimonials/sources` before\n * anything is claimed. `resolveEmptyReason` is the whole of that judgement and\n * is kept pure so it can be tested without a backend.\n */\n\nimport { apiGet } from \"../../client.ts\";\nimport type { EmptyEvidence } from \"../../output.ts\";\n\nexport type TestimonialQuery = \"search\" | \"list\";\n\n/**\n * Why a read came back empty.\n *\n * - `filtered_out` — filters were applied; the corpus may be fine.\n * - `no_corpus_connected` — the company has no review source at all. Terminal.\n * - `corpus_empty` — a source exists but holds no rows yet (still\n * ingesting, or the source genuinely has no reviews).\n */\nexport type EmptyCorpusReason = \"no_corpus_connected\" | \"corpus_empty\" | \"filtered_out\";\n\ninterface ResolveInput {\n resultCount: number;\n activeFilters: string[];\n /** Rows from /api/testimonials/sources. */\n sourceCount: number;\n}\n\nexport function resolveEmptyReason({\n resultCount,\n activeFilters,\n sourceCount,\n}: ResolveInput): EmptyCorpusReason | null {\n if (resultCount > 0) {\n return null;\n }\n // Filters first: they explain the empty result without saying anything about\n // the corpus, and a filter combination and an empty library look identical\n // from the result set alone.\n if (activeFilters.length > 0) {\n return \"filtered_out\";\n }\n return sourceCount === 0 ? \"no_corpus_connected\" : \"corpus_empty\";\n}\n\nconst NO_CORPUS_EXIT =\n \"Testimonials are ingested from the client's public review pages — an agent cannot write one — so no \" +\n \"rewording will find quotes. If the user named the client's own review page (Google Maps, Trustpilot, Yelp, \" +\n \"Tripadvisor, G2, Capterra, Amazon, App Store, Google Play), add it with `baker testimonials sources add <link>` \" +\n \"— its reviews arrive over the next minutes, not in this turn. Stop searching and source proof another way: a result or case study the client \" +\n \"already published, a named-customer logo (`baker images logo`), or a founder claim attributed as a claim. \" +\n \"Otherwise ship without a testimonial block and file the gap: `baker actions create \" +\n '--name \"Collect customer quotes for <page>\" --priority medium --tags <slug>`. ' +\n \"Never invent, paraphrase-into-existence, or pad with unrelated praise.\";\n\n/**\n * `detail` is written to be quotable — it ends up in `meta.empty.detail`, and\n * an agent that repeats it verbatim should still be saying something true.\n */\nexport function emptyReasonDetail(reason: EmptyCorpusReason, sourceCount: number, activeFilters: string[]): string {\n if (reason === \"filtered_out\") {\n return `No rows matched, and ${activeFilters.join(\", \")} narrowed this read. The corpus was not checked — drop every filter to see whether the library itself is empty.`;\n }\n if (reason === \"no_corpus_connected\") {\n return \"This company has no review source connected — checked against its source list, not inferred from the empty result.\";\n }\n return `${sourceCount} review source${sourceCount === 1 ? \" is\" : \"s are\"} connected but hold no testimonials yet — the source is there, the rows are not. Ingestion may still be running.`;\n}\n\n/**\n * What to say when the library did not end where this page did.\n *\n * `GET /api/testimonials` is paged — a testimonial row carries a 3072-float\n * embedding, so a listing reads an index page at a time and returns\n * `X-Baker-Next-Cursor` when rows remain unexamined. Until that cursor comes\n * back absent, every conclusion this module otherwise draws is off the table: an\n * empty page proves nothing about the corpus, and a short one is not \"all there\n * is\". The next call is a `--cursor` away, so the hint says exactly that.\n */\nexport function morePagesHint(resultCount: number, cursor: string): string {\n const found = resultCount === 0 ? \"This page held no matches\" : `This page held ${resultCount}`;\n return (\n `${found}, and the library continues past it — so this is one page, not the client's whole set. ` +\n \"Do not report it as the corpus and do not conclude anything is missing from it. Read the next page with \" +\n `\\`baker testimonials list --cursor ${cursor}\\` (same filters), or go straight at the rows you want with ` +\n \"`baker testimonials search <query>`.\"\n );\n}\n\n/** The last page of a walk came back empty: the read is over, and it worked. */\nfunction endOfWalkHint(command: TestimonialQuery): string {\n const noun = command === \"search\" ? \"results\" : \"rows\";\n return (\n `That was the end of the library — no more ${noun} past the page before this one. Nothing here says the ` +\n \"corpus is empty (the earlier pages held it), so answer from what those pages returned rather than re-reading.\"\n );\n}\n\n/**\n * Establishes why a read was empty, by asking the backend rather than inferring.\n *\n * Costs one extra round trip and only on the zero-result path, which is the\n * cheap half of the trade: the call it replaces was the agent re-querying two or\n * three times to convince itself, and the claim it replaces was sometimes wrong.\n *\n * If the source check itself fails we return nothing at all. That is the point\n * of the change — a read that did not happen must never become a confident\n * statement about the client's account, which is exactly the failure this\n * module previously shipped.\n */\nexport async function measureEmptyCorpus({\n command,\n resultCount,\n activeFilters,\n nextCursor = null,\n continued = false,\n}: {\n command: TestimonialQuery;\n resultCount: number;\n activeFilters: string[];\n /** `X-Baker-Next-Cursor` from the response — see `morePagesHint`. */\n nextCursor?: string | null;\n /** This call passed a `--cursor`, so it is the tail of a walk, not a read. */\n continued?: boolean;\n}): Promise<{ hints: string[]; empty?: EmptyEvidence }> {\n // A page that is not the last page establishes nothing about the corpus, so\n // it gets a hint and no `empty` evidence — the same rule as a failed source\n // check below. It is also the one path that speaks when rows came back:\n // \"here are 4\" is the misleading half.\n if (nextCursor) {\n return { hints: [morePagesHint(resultCount, nextCursor)] };\n }\n if (resultCount > 0) {\n return { hints: [] };\n }\n // Zero rows at the end of a walk is the walk ending — the rows were on the\n // pages already read. Measuring the corpus here would answer a question\n // nobody asked and, worse, answer it wrongly: a page can end exactly on the\n // last row (the page cap closes it with `isDone` still false), so a library\n // that was fully read hands back one final empty page, and `corpus_empty`\n // would report a company with reviews as having none.\n if (continued) {\n return { hints: [endOfWalkHint(command)] };\n }\n if (activeFilters.length > 0) {\n // Filters alone explain it; no need to spend a call on the corpus.\n const reason = \"filtered_out\" as const;\n return {\n hints: emptyCorpusHints({ command, reason, sourceCount: 0, activeFilters }),\n empty: { reason, detail: emptyReasonDetail(reason, 0, activeFilters) },\n };\n }\n\n let sourceCount: number;\n try {\n const sources = await apiGet<unknown[]>(\"/api/testimonials/sources\");\n sourceCount = Array.isArray(sources) ? sources.length : 0;\n } catch {\n return {\n hints: [\n \"No rows, and the check for connected review sources failed — so this is NOT evidence that the client \" +\n \"has no reviews. Do not record an absence you could not verify. Re-run once; if it fails again, say \" +\n \"the library could not be read rather than that it is empty.\",\n ],\n };\n }\n\n const reason = resolveEmptyReason({ resultCount, activeFilters, sourceCount });\n if (reason === null) {\n return { hints: [] };\n }\n return {\n hints: emptyCorpusHints({ command, reason, sourceCount, activeFilters }),\n empty: { reason, detail: emptyReasonDetail(reason, sourceCount, activeFilters) },\n };\n}\n\nexport function emptyCorpusHints({\n command,\n reason,\n sourceCount,\n activeFilters,\n}: {\n command: TestimonialQuery;\n reason: EmptyCorpusReason | null;\n sourceCount: number;\n activeFilters: string[];\n}): string[] {\n if (reason === null) {\n return [];\n }\n if (reason === \"filtered_out\") {\n return [\n `No rows — ${activeFilters.join(\", \")} narrowed this. Drop every filter and re-run once before touching ` +\n \"the query; a filter combination and an empty library look identical from here.\",\n ];\n }\n const lead = command === \"search\" ? \"No hits\" : \"No rows\";\n if (reason === \"no_corpus_connected\") {\n // Terminal, and now actually verified — so it is safe to tell the agent to\n // stop, which is the whole point of saying it.\n return [`${lead}, and this company's source list is empty: there is no review corpus to search. ${NO_CORPUS_EXIT}`];\n }\n return [\n `${lead}. ${sourceCount} review source${sourceCount === 1 ? \" is\" : \"s are\"} connected but no testimonials ` +\n \"have landed yet — so this is a timing or ingestion gap, not a missing connection, and re-querying will not \" +\n `change it. Ingestion may still be running: say so rather than reporting the client has no reviews. ${NO_CORPUS_EXIT}`,\n ];\n}\n"],"mappings":";;;;;AA0CO,SAAS,mBAAmB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AACF,GAA2C;AACzC,MAAI,cAAc,GAAG;AACnB,WAAO;AAAA,EACT;AAIA,MAAI,cAAc,SAAS,GAAG;AAC5B,WAAO;AAAA,EACT;AACA,SAAO,gBAAgB,IAAI,wBAAwB;AACrD;AAEA,IAAM,iBACJ;AAaK,SAAS,kBAAkB,QAA2B,aAAqB,eAAiC;AACjH,MAAI,WAAW,gBAAgB;AAC7B,WAAO,wBAAwB,cAAc,KAAK,IAAI,CAAC;AAAA,EACzD;AACA,MAAI,WAAW,uBAAuB;AACpC,WAAO;AAAA,EACT;AACA,SAAO,GAAG,WAAW,iBAAiB,gBAAgB,IAAI,QAAQ,OAAO;AAC3E;AAYO,SAAS,cAAc,aAAqB,QAAwB;AACzE,QAAM,QAAQ,gBAAgB,IAAI,8BAA8B,kBAAkB,WAAW;AAC7F,SACE,GAAG,KAAK,0OAE8B,MAAM;AAGhD;AAGA,SAAS,cAAc,SAAmC;AACxD,QAAM,OAAO,YAAY,WAAW,YAAY;AAChD,SACE,kDAA6C,IAAI;AAGrD;AAcA,eAAsB,mBAAmB;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,YAAY;AACd,GAQwD;AAKtD,MAAI,YAAY;AACd,WAAO,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AAI,WAAW,uBAAuB;AAGpC,WAAO,CAAC,GAAG,IAAI,mFAAmF,cAAc,EAAE;AAAA,EACpH;AACA,SAAO;AAAA,IACL,GAAG,IAAI,KAAK,WAAW,iBAAiB,gBAAgB,IAAI,QAAQ,OAAO,qPAE6B,cAAc;AAAA,EACxH;AACF;","names":["reason"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/testimonials/sources/shared.ts"],"sourcesContent":["import type { TestimonialSourceSummary } from \"@baker/api\";\nimport { ApiError } from \"../../../client.ts\";\nimport { writeJson } from \"../../../output.ts\";\n\n/** Emit the `{ ok: false, error }` envelope and exit non-zero. */\nexport function reportError(err: unknown): never {\n if (err instanceof ApiError) {\n writeJson({ ok: false, error: { code: err.code, message: err.message } });\n process.exit(1);\n }\n writeJson({ ok: false, error: { code: \"INTERNAL_ERROR\", message: \"Unexpected error\" } });\n process.exit(1);\n}\n\n/** Refuse a request that failed its schema, with the first issue. */\nexport function reportInvalid(issue: { path: PropertyKey[]; message: string } | undefined): never {\n writeJson({\n ok: false,\n error: {\n code: \"VALIDATION_ERROR\",\n message: issue ? `${issue.path.map(String).join(\".\") || \"input\"}: ${issue.message}` : \"Invalid request\",\n },\n });\n process.exit(1);\n}\n\n/**\n * What the agent needs to decide with: which listing on which site, whether it\n * is still importing, and how many reviews it has brought in. The id is how\n * every other `sources` command names it.\n */\nexport function compactSource(source: TestimonialSourceSummary): Record<string, unknown> {\n return {\n id: source.id,\n platform: source.platform,\n label: source.label,\n ...(source.pageUrl ? { url: source.pageUrl } : {}),\n status: source.status,\n reviews: source.reviews,\n autoSync: source.refreshInterval,\n ...(source.lastSyncedAt ? { lastSyncedAt: new Date(source.lastSyncedAt).toISOString() } : {}),\n ...(source.pageHasNoReviews ? { pageHasNoReviews: true } : {}),\n ...(source.error ? { error: source.error } : {}),\n };\n}\n"],"mappings":";;;;;;;;AAKO,SAAS,YAAY,KAAqB;AAC/C,MAAI,eAAe,UAAU;AAC3B,cAAU,EAAE,IAAI,OAAO,OAAO,EAAE,MAAM,IAAI,MAAM,SAAS,IAAI,QAAQ,EAAE,CAAC;AACxE,YAAQ,KAAK,CAAC;AAAA,EAChB;AACA,YAAU,EAAE,IAAI,OAAO,OAAO,EAAE,MAAM,kBAAkB,SAAS,mBAAmB,EAAE,CAAC;AACvF,UAAQ,KAAK,CAAC;AAChB;AAGO,SAAS,cAAc,OAAoE;AAChG,YAAU;AAAA,IACR,IAAI;AAAA,IACJ,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS,QAAQ,GAAG,MAAM,KAAK,IAAI,MAAM,EAAE,KAAK,GAAG,KAAK,OAAO,KAAK,MAAM,OAAO,KAAK;AAAA,IACxF;AAAA,EACF,CAAC;AACD,UAAQ,KAAK,CAAC;AAChB;AAOO,SAAS,cAAc,QAA2D;AACvF,SAAO;AAAA,IACL,IAAI,OAAO;AAAA,IACX,UAAU,OAAO;AAAA,IACjB,OAAO,OAAO;AAAA,IACd,GAAI,OAAO,UAAU,EAAE,KAAK,OAAO,QAAQ,IAAI,CAAC;AAAA,IAChD,QAAQ,OAAO;AAAA,IACf,SAAS,OAAO;AAAA,IAChB,UAAU,OAAO;AAAA,IACjB,GAAI,OAAO,eAAe,EAAE,cAAc,IAAI,KAAK,OAAO,YAAY,EAAE,YAAY,EAAE,IAAI,CAAC;AAAA,IAC3F,GAAI,OAAO,mBAAmB,EAAE,kBAAkB,KAAK,IAAI,CAAC;AAAA,IAC5D,GAAI,OAAO,QAAQ,EAAE,OAAO,OAAO,MAAM,IAAI,CAAC;AAAA,EAChD;AACF;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/hubspot/index.ts"],"sourcesContent":["import type {\n HubspotContactFieldsListResponse,\n HubspotContactLookupResponse,\n HubspotContactPropertiesListResponse,\n HubspotContactsSummaryResponse,\n HubspotFormSubmissionsResponse,\n HubspotFormsListResponse,\n HubspotFormsViewResponse,\n HubspotMeetingsListResponse,\n HubspotMeetingsViewResponse,\n HubspotPipelinesListResponse,\n HubspotWorkflowsListResponse,\n HubspotWorkflowsViewResponse,\n} from \"@baker/api\";\nimport { HUBSPOT_OPERATORS } from \"@baker/api/event-sources\";\nimport { defineCommand } from \"citty\";\nimport { ApiError, apiPost } from \"../../client.ts\";\nimport { rowsAsData, writeJson } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport { failNotConnected } from \"./refusal.ts\";\n\nconst EMBED_TYPES = [\"legacy\", \"v4\", \"unknown\"] as const;\n\nfunction assertEmbedType(value: string | undefined): (typeof EMBED_TYPES)[number] | undefined {\n if (value === undefined) {\n return undefined;\n }\n if (!(EMBED_TYPES as readonly string[]).includes(value)) {\n throw new Error(`--embed-type must be one of: ${EMBED_TYPES.join(\"|\")}`);\n }\n return value as (typeof EMBED_TYPES)[number];\n}\n\nregisterSchema({\n command: \"hubspot.forms.list\",\n routes: [\"POST /api/hubspot/forms/list\"],\n effect: \"read_live\",\n description:\n \"Start here for HubSpot forms: every form on the connected account, with just enough to choose one — embed type (legacy vs v4), field count, its post-submit action (inline thank-you vs redirect to a URL), and whether spam prevention (captcha) is on. A form with captcha on can be embedded on a page but can never receive a submission from a Form, so check it before wiring one as a destination. Answers 'which of my forms redirect after submit?' and 'is this form legacy or v4?'. portalId is returned once on meta, not per row. Next step is usually `hubspot forms view <id> --as-node`, which gives you the blob to write straight into a Form step — you do not need request_flow_input for HubSpot.\",\n args: {\n search: { type: \"string\", description: \"Case-insensitive substring match on the form name\", required: false },\n \"redirecting-only\": {\n type: \"boolean\",\n description: \"Only forms whose post-submit action redirects away\",\n required: false,\n default: false,\n },\n \"embed-type\": { type: \"string\", description: \"Filter: legacy|v4|unknown\", required: false, enum: [...EMBED_TYPES] },\n },\n});\n\nregisterSchema({\n command: \"hubspot.forms.view\",\n description:\n \"One HubSpot form in detail: every field (name, label, type, required, hidden, options), the legal-consent mode, the post-submit action, captcha, and language. Read it before wiring a form into a Form (flow) so you know what fields exist to autofill. Add --full for the untouched HubSpot payload, or --as-node to get the object to write into the step's form.external instead.\",\n args: {\n formId: { type: \"positional\", description: \"HubSpot form id (from `baker hubspot forms list`)\", required: true },\n full: { type: \"boolean\", description: \"Include the raw HubSpot payload\", required: false, default: false },\n \"as-node\": {\n type: \"boolean\",\n description:\n \"Emit the resource blob to write into a flow node's form.external, instead of the readable view. Write it into the node yourself; no need for request_flow_input when the account is connected and the form is unambiguous.\",\n required: false,\n default: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.forms.submissions\",\n routes: [\"POST /api/hubspot/forms/submissions\"],\n effect: \"read_live\",\n description:\n \"How many leads a form actually received over a window, and on which days — the difference between 'this form is live' and 'this form is working'. Start here when asked whether a form or a campaign is producing leads. Returns counts and dates only; the leads' own answers need --full and are personal data, so do not put them in a report. Pair with `hubspot pipelines list` to see whether those leads were then worked.\",\n args: {\n formId: { type: \"positional\", description: \"HubSpot form id (from `baker hubspot forms list`)\", required: true },\n days: { type: \"string\", description: \"Window in days, 1-365 (default 30)\", required: false },\n full: {\n type: \"boolean\",\n description: \"Include each submission's field values — personal data, request only when actually needed\",\n required: false,\n default: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.contacts.summary\",\n routes: [\"POST /api/hubspot/contacts/summary\"],\n effect: \"read_live\",\n description:\n \"Whether the leads that arrived recently are actually being worked, as counts: how many contacts were created in the window, how many have someone assigned, and how they split across lifecycle stages. This is the 'have these leads been treated?' answer. Returns no names or emails — use `hubspot contacts lookup` for one specific person.\",\n args: {\n days: { type: \"string\", description: \"Window in days, 1-365 (default 30)\", required: false },\n },\n});\n\nregisterSchema({\n command: \"hubspot.contacts.properties\",\n description:\n \"Every contact property a HubSpot event can watch, with its `kind` (select, string, number, date, boolean) — which decides the operators the trigger takes — and, for a select, the `options` its values come from. Start here to make a HubSpot event: pick the property and condition that mean the outcome (a deal won is usually `lifecyclestage` is `customer`, a custom property the client's team sets, or a number crossing a threshold), then `baker analytics sources --create-hubspot --property <name> [--operator <op>] --value <value>…` reads it every five minutes. Names are HubSpot's internal ones; use them as printed.\",\n args: {},\n});\n\nregisterSchema({\n command: \"hubspot.contacts.fields\",\n description:\n \"Every contact property on the connected HubSpot account — name, label, group and HubSpot's type — which is what a HubSpot event's rows can read: `baker analytics sources --create-hubspot … --field email={{work_email}} --field value={{deal_value}} --field currency=EUR`, or `--map` on an existing one. Names are HubSpot's internal ones; use them as printed, and `{{id}}` for the contact's own id. No personal data.\",\n args: {},\n});\n\nregisterSchema({\n command: \"hubspot.contacts.lookup\",\n routes: [\"POST /api/hubspot/contacts/lookup\"],\n effect: \"read_live\",\n description:\n \"One contact by email: lifecycle stage, whether anyone is assigned, its account (company) and deals with their stage — settles whether a lead was picked up. `--properties utm_campaign,utm_source` also reads those into `contact.properties`, to check a form's tracking reached it: each value, or null when empty; a name the account does not define is left out, never null. `found: false` means the lead never reached the CRM at all — that is a finding, not an error. `dealsReadable: false` / `companyReadable: false` mean deals or account details were not readable on this connection, so an empty deals list or a null company is unknown rather than absent.\",\n args: {\n email: { type: \"positional\", description: \"The contact's email address\", required: true },\n properties: {\n type: \"string\",\n description:\n \"Comma-separated contact properties to read, by HubSpot's internal name (up to 25; `baker hubspot contacts fields` lists them): --properties utm_campaign,utm_source\",\n required: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.workflows.list\",\n description:\n \"Every workflow on the connected account, with whether it is switched on. Read it when auditing what happens to a lead after it is captured — a form wired to a workflow that is off looks connected and does nothing.\",\n args: {\n search: { type: \"string\", description: \"Case-insensitive substring match on the workflow name\", required: false },\n \"enabled-only\": { type: \"boolean\", description: \"Only workflows that are on\", required: false, default: false },\n },\n});\n\nregisterSchema({\n command: \"hubspot.workflows.view\",\n description:\n \"One workflow's actual configuration: what enrols a record, whether it re-enrols, and every step with the property it writes. Read it before saying a workflow is correct — `workflows list` only tells you it exists and whether it is on. Branches come back in HubSpot's order, and on a LIST_BRANCH step that is evaluation order (`order: 1` wins over `order: 2`) — which is where this kind of setup silently breaks: a broad branch placed above a narrow one swallows the records the narrow one was written for, and nothing reports it. A STATIC_BRANCH matches on a value instead, so its order carries no precedence. Steps are NOT in execution order — follow `nextActionId` from step to step. Add --full for the branch filter criteria (which property is compared to which value).\",\n args: {\n workflowId: {\n type: \"positional\",\n description: \"Workflow id (from `baker hubspot workflows list`)\",\n required: true,\n },\n full: {\n type: \"boolean\",\n description: \"Include the raw HubSpot payload — the only place the branch filter criteria can be read\",\n required: false,\n default: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.pipelines.list\",\n description:\n \"The account's deal pipelines and their stages, in the order they run, each stage with `isClosed` / `isWon` (HubSpot's closed-won is closed with probability 1). Use it to answer where a lead lands once captured and whether it moved — the 'have these leads been worked?' half of a form audit — and to pick the pipeline ids for `hubspot deals list --pipeline`.\",\n args: {},\n});\n\nregisterSchema({\n command: \"hubspot.meetings.list\",\n description:\n \"Every HubSpot meeting link (calendar) on the connected account, with just enough to choose one: name, slug, link type (personal / group / round-robin), whether booking redirects somewhere, and how many booking fields it asks for (null = unknown, read it with `meetings view`). Next step is usually `hubspot meetings view <slug> --as-node`, which gives you the blob to write straight into a hubspotMeeting step.\",\n args: {\n search: {\n type: \"string\",\n description:\n \"Case-insensitive match on the meeting name or slug, or a pasted booking link (meetings.hubspot.com/<slug>)\",\n required: false,\n },\n \"redirecting-only\": {\n type: \"boolean\",\n description: \"Only meeting links that redirect after booking\",\n required: false,\n default: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.meetings.view\",\n description:\n \"One HubSpot meeting link in detail: its booking-form fields (name, label, type, required, custom), link, and redirect URL. This is the source of truth for a calendar's fields — the list command cannot see them reliably. Add --as-node to get the object to write into the step's form.external instead.\",\n args: {\n slug: { type: \"positional\", description: \"Meeting slug (from `baker hubspot meetings list`)\", required: true },\n \"as-node\": {\n type: \"boolean\",\n description: \"Emit the resource blob to write into a flow node's form.external, instead of the readable view.\",\n required: false,\n default: false,\n },\n },\n});\n\nconst formsListCommand = defineCommand({\n meta: {\n name: \"list\",\n description:\n \"List HubSpot forms with embed type and post-submit action. Example: baker hubspot forms list --redirecting-only\",\n },\n args: {\n search: { type: \"string\", description: \"Match on form name\", required: false },\n \"redirecting-only\": { type: \"boolean\", description: \"Only forms that redirect on submit\", required: false },\n \"embed-type\": { type: \"string\", description: \"Filter: legacy|v4|unknown\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n if (args.search) {\n body.search = args.search;\n }\n if (args[\"redirecting-only\"]) {\n body.redirectingOnly = true;\n }\n const embedType = assertEmbedType(args[\"embed-type\"]);\n if (embedType) {\n body.embedType = embedType;\n }\n\n const response = await apiPost<HubspotFormsListResponse>(\"/api/hubspot/forms/list\", body, { read: true });\n const { forms } = response.data;\n const redirecting = forms.filter((form) => form.postSubmitAction?.type === \"redirect_url\");\n const hints: string[] = [];\n if (forms.length === 0) {\n hints.push(\"No forms matched. Drop --search/--embed-type, or check the connected HubSpot account.\");\n } else {\n hints.push(\n \"To put one on a page: `baker hubspot forms view <id> --as-node` returns the object to write into the step's form.external. No request_flow_input needed for HubSpot.\",\n );\n }\n if (redirecting.length > 0) {\n hints.push(\n `${redirecting.length} form(s) redirect after submit. That is fine mid-Form: the renderer suppresses the redirect whenever a step follows the form, and honors it when the form is the last step.`,\n );\n }\n const blocked = forms.filter((form) => form.captchaEnabled);\n if (blocked.length > 0) {\n // Named rather than counted, because the next thing the agent does with\n // this is tell a person which of their forms is the problem — but\n // bounded, since every row already carries `captchaEnabled` and an\n // account with forty blocked forms would otherwise print forty names.\n const shown = blocked.slice(0, 3).map((form) => form.name);\n const rest = blocked.length - shown.length;\n hints.push(\n `${blocked.length} form(s) have spam prevention (captcha) on: ${shown.join(\", \")}${rest > 0 ? `, and ${rest} more` : \"\"}. HubSpot refuses every submission sent to those, so they can be embedded on a page but never wired as a Form's destination. Only the user can switch it off, on the form in HubSpot.`,\n );\n }\n\n writeJson({ ok: true, ...rowsAsData(response.data, \"forms\"), ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\n/**\n * The one HubSpot setting that decides whether a form can receive a lead at\n * all. HubSpot refuses every API submission to a form with spam prevention on\n * (`FORM_HAS_RECAPTCHA_ENABLED`) and there is no token to attach, so the answer\n * is never \"send it differently\" — it is a switch only the client can flip.\n */\nconst CAPTCHA_VIEW_HINT =\n \"This form has spam prevention (captcha) on. HubSpot refuses every submission sent to it, so it cannot be a Form's destination — embedding it on a page still works, because the visitor solves the captcha in the browser. Only the user can switch it off, on the form in HubSpot; do not wire a delivery to it, and tell them what has to change.\";\n\nconst CAPTCHA_NODE_HINT =\n \"This form has spam prevention (captcha) on. That is fine for embedding it on a page — the visitor solves it in the browser — but it can never be a Form's delivery destination, so do not also wire a hubspotForm side effect to this form.\";\n\n/**\n * What to say about one form beyond its fields.\n *\n * Pure and exported so the wording is testable: these are the three facts about\n * a HubSpot form that decide whether wiring it works, and each of them is\n * invisible in the form's own field list.\n */\nexport function formViewHints(form: {\n postSubmitAction: { type: string; value: string } | null;\n captchaEnabled: boolean;\n embedType: string;\n}): string[] {\n const hints: string[] = [];\n if (form.postSubmitAction?.type === \"redirect_url\") {\n hints.push(\n `This form redirects to ${form.postSubmitAction.value} on submit. Placed anywhere but the last step of a Form, that redirect is suppressed so the next step can render.`,\n );\n }\n if (form.captchaEnabled) {\n hints.push(CAPTCHA_VIEW_HINT);\n }\n if (form.embedType === \"unknown\") {\n hints.push(\"Embed type could not be determined from HubSpot's response; the renderer treats it as legacy.\");\n }\n return hints;\n}\n\n/**\n * The same for the `--as-node` blob, where the reader is about to *embed* the\n * form. Captcha reads the opposite way here and has to say so: an embedded form\n * with captcha works, because the visitor solves it in the browser. Silence\n * would leave an agent that just read the refusal elsewhere to conclude the\n * form is unusable and quietly pick another.\n */\nexport function formNodeHints(\n external:\n | {\n captchaEnabled: boolean;\n embedType?: string;\n region?: string;\n configuration?: { postSubmitAction: { type: string } };\n }\n | undefined,\n): string[] {\n return [\n \"Write this object into the node's `form.external` in the flow's _data.json, keeping the rest of the node as-is. No request_flow_input needed — the account is already connected.\",\n ...(external?.captchaEnabled ? [CAPTCHA_NODE_HINT] : []),\n ...(external?.configuration?.postSubmitAction.type === \"redirect_url\"\n ? [\n \"This form redirects on submit. Safe unless it is the last step: the renderer suppresses the redirect whenever a step follows it.\",\n ]\n : []),\n ...(external?.embedType === \"v4\" && !external.region\n ? [\n \"WARNING: this is a v4 form and the connected account has no region recorded, so the step will load HubSpot's na1 script host. That is correct for US portals and breaks the form on eu1/ap1 ones. If it renders blank, have the user reconnect HubSpot from Brain -> Integrations -> Tools, then re-run this command.\",\n ]\n : []),\n ];\n}\n\nconst formsViewCommand = defineCommand({\n meta: {\n name: \"view\",\n description: \"Show one HubSpot form's fields and configuration. Example: baker hubspot forms view 1a2b3c\",\n },\n args: {\n formId: { type: \"positional\", description: \"HubSpot form id\", required: true },\n full: { type: \"boolean\", description: \"Include the raw HubSpot payload\", required: false },\n \"as-node\": { type: \"boolean\", description: \"Emit the node-ready form.external blob\", required: false },\n },\n run: async ({ args }) => {\n try {\n const response = await apiPost<HubspotFormsViewResponse>(\n \"/api/hubspot/forms/view\",\n {\n formId: args.formId,\n ...(args.full ? { full: true } : {}),\n ...(args[\"as-node\"] ? { asNode: true } : {}),\n },\n { read: true },\n );\n\n if (args[\"as-node\"]) {\n writeJson({ ...response, hints: formNodeHints(response.data.external) });\n return;\n }\n\n const form = response.data.form;\n if (!form) {\n throw new Error(\"Response did not include the form view\");\n }\n const hints = formViewHints(form);\n\n writeJson({ ...response, meta: { count: form.fields.length }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst meetingsListCommand = defineCommand({\n meta: {\n name: \"list\",\n description: \"List HubSpot meeting links (calendars). Example: baker hubspot meetings list\",\n },\n args: {\n search: { type: \"string\", description: \"Match on meeting name, slug or a pasted booking link\", required: false },\n \"redirecting-only\": { type: \"boolean\", description: \"Only links that redirect after booking\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n if (args.search) {\n body.search = args.search;\n }\n if (args[\"redirecting-only\"]) {\n body.redirectingOnly = true;\n }\n\n const response = await apiPost<HubspotMeetingsListResponse>(\"/api/hubspot/meetings/list\", body, { read: true });\n const { meetings } = response.data;\n const hints: string[] = [];\n if (meetings.length === 0) {\n hints.push(\n args.search\n ? `No meeting link's name, slug or booking link matched \"${args.search}\". Drop --search to see every calendar on the connected account.`\n : \"No meeting links matched. Check the connected HubSpot account.\",\n );\n } else {\n hints.push(\n \"To put one on a page: `baker hubspot meetings view <slug> --as-node` returns the object to write into the step's form.external.\",\n );\n }\n const unknown = meetings.filter((meeting) => !meeting.redirectKnown);\n if (unknown.length > 0) {\n hints.push(\n `HubSpot did not report booking settings for ${unknown.length} of these (${unknown\n .map((meeting) => meeting.slug)\n .join(\n \", \",\n )}), so their redirect and field count are UNKNOWN, not absent. Run \\`baker hubspot meetings view <slug>\\` before concluding one does not redirect.`,\n );\n }\n\n writeJson({ ok: true, ...rowsAsData(response.data, \"meetings\"), ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst meetingsViewCommand = defineCommand({\n meta: {\n name: \"view\",\n description: \"Show one HubSpot meeting link's booking fields. Example: baker hubspot meetings view discovery-call\",\n },\n args: {\n slug: { type: \"positional\", description: \"Meeting slug\", required: true },\n \"as-node\": { type: \"boolean\", description: \"Emit the node-ready form.external blob\", required: false },\n },\n run: async ({ args }) => {\n try {\n const response = await apiPost<HubspotMeetingsViewResponse>(\n \"/api/hubspot/meetings/view\",\n {\n slug: args.slug,\n ...(args[\"as-node\"] ? { asNode: true } : {}),\n },\n { read: true },\n );\n\n if (args[\"as-node\"]) {\n const { external } = response.data;\n writeJson({\n ...response,\n hints: [\n \"Write this object into the node's `form.external` in the flow's _data.json, keeping the rest of the node as-is. No request_flow_input needed — the account is already connected.\",\n ...(external?.customParams.redirectUrl\n ? [\n `This calendar redirects to ${external.customParams.redirectUrl} after booking, and that redirect is NOT suppressed — any step placed after it is unreachable. Keep it as the last step, or ask the user to clear the redirect in HubSpot.`,\n ]\n : []),\n ],\n });\n return;\n }\n\n const meeting = response.data.meeting;\n if (!meeting) {\n throw new Error(\"Response did not include the meeting view\");\n }\n const hints: string[] = [];\n if (meeting.redirectUrl) {\n hints.push(\n `This calendar redirects to ${meeting.redirectUrl} after booking. A step placed after it will not be reached — keep it as the last step, or clear the redirect in HubSpot.`,\n );\n }\n\n writeJson({ ...response, meta: { count: meeting.fields.length }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst formsSubmissionsCommand = defineCommand({\n meta: {\n name: \"submissions\",\n description:\n \"How many leads a form received, and when. Example: baker hubspot forms submissions <formId> --days 30\",\n },\n args: {\n formId: { type: \"positional\", description: \"HubSpot form id\", required: true },\n days: { type: \"string\", description: \"Window in days (default 30)\", required: false },\n full: { type: \"boolean\", description: \"Include each lead's answers\", required: false },\n },\n run: async ({ args }) => {\n try {\n const days = args.days === undefined ? 30 : Number(args.days);\n if (!Number.isInteger(days) || days < 1 || days > 365) {\n throw new ApiError(\"VALIDATION_ERROR\", \"--days must be a whole number between 1 and 365.\");\n }\n\n const response = await apiPost<HubspotFormSubmissionsResponse>(\n \"/api/hubspot/forms/submissions\",\n {\n formId: args.formId,\n days,\n ...(args.full ? { full: true } : {}),\n },\n { read: true },\n );\n const { inWindow, total, truncated, lastSubmittedAt } = response.data;\n\n const hints: string[] = [];\n if (inWindow === 0) {\n hints.push(\n total === 0\n ? \"This form has received nothing at all — check it is the form actually embedded on the page before concluding the campaign is at fault.\"\n : `No leads in the last ${days} days, though the form has ${total} older submission(s). It worked once and has gone quiet.`,\n );\n }\n if (truncated) {\n hints.push(\n \"Stopped before reaching the end of the window, so `inWindow` is a floor, not a count. Say so rather than reporting it as exact.\",\n );\n }\n if (!args.full && inWindow > 0) {\n hints.push(\n \"Counts only — the leads' own answers are not included. Add --full if you genuinely need the field values; it returns personal data, so do not paste it into a report or a chat message.\",\n );\n }\n if (lastSubmittedAt !== null) {\n hints.push(\n \"To find out whether these leads were worked, cross-check the deal pipeline: `baker hubspot pipelines list`.\",\n );\n }\n\n writeJson({ ...response, meta: { count: inWindow }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst workflowsListCommand = defineCommand({\n meta: {\n name: \"list\",\n description: \"List HubSpot workflows. Example: baker hubspot workflows list --enabled-only\",\n },\n args: {\n search: { type: \"string\", description: \"Match on workflow name\", required: false },\n \"enabled-only\": { type: \"boolean\", description: \"Only workflows that are on\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n if (args.search) {\n body.search = args.search;\n }\n if (args[\"enabled-only\"]) {\n body.enabledOnly = true;\n }\n\n const response = await apiPost<HubspotWorkflowsListResponse>(\"/api/hubspot/workflows/list\", body, { read: true });\n const { workflows } = response.data;\n const off = workflows.filter((workflow) => !workflow.enabled);\n const hints: string[] = [];\n if (workflows.length === 0) {\n hints.push(\"No workflows matched. Drop --search/--enabled-only, or the account genuinely has none.\");\n }\n if (off.length > 0) {\n hints.push(\n `${off.length} of these are switched off. A form wired to a workflow that is off looks connected and does nothing — worth flagging to the user.`,\n );\n }\n\n writeJson({ ok: true, ...rowsAsData(response.data, \"workflows\"), ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\n/**\n * What the agent should take from one workflow read.\n *\n * All three of these are silent failures in HubSpot — the workflow saves, looks\n * right in the editor, and runs. Nothing surfaces them but reading the order and\n * the flags, so they are stated rather than left for the agent to notice.\n */\nexport function workflowViewHints(workflow: HubspotWorkflowsViewResponse[\"data\"][\"workflow\"]): string[] {\n const hints: string[] = [];\n if (!workflow.enabled) {\n hints.push(\n \"This workflow is switched off, so nothing below it is running now — it may still have run while it was on. Say so before reporting on what it does.\",\n );\n }\n\n // Only a LIST_BRANCH is evaluated top down. A STATIC_BRANCH splits on a value\n // and matches by equality, so \"a broad branch above a narrow one\" cannot\n // happen there — and both arrive here as `branches`, so the kind has to be\n // read off the step rather than off the list.\n const ordered = workflow.steps.filter((step) => step.type === \"LIST_BRANCH\" && (step.branches?.length ?? 0) > 1);\n if (ordered.length > 0) {\n hints.push(\n \"Branches are listed in evaluation order and the first match wins. Check that no broad branch sits above a narrower one — if it does, the narrow branch never runs and nothing in HubSpot reports it.\",\n );\n }\n if (workflow.raw === undefined && ordered.length > 0) {\n hints.push(\n \"This view names the branches but not what they compare. Re-run with --full to read the filter criteria before judging whether a branch matches what it was meant to match.\",\n );\n }\n\n if (workflow.enrollment.reEnrollment === false) {\n hints.push(\n \"Re-enrolment is off: a record that meets the criteria a second time will not run through this again. That is a real choice, not necessarily a fault — but confirm it is the intended one.\",\n );\n } else if (workflow.enrollment.reEnrollment === null) {\n hints.push(\n \"Whether this re-enrols is not reported for this kind of enrolment, so do not state it either way — read it in HubSpot if it matters.\",\n );\n }\n return hints;\n}\n\nconst workflowsViewCommand = defineCommand({\n meta: {\n name: \"view\",\n description:\n \"Read one workflow's real configuration — enrolment, branches in order, and what each step writes. Example: baker hubspot workflows view 121183594 --full\",\n },\n args: {\n workflowId: {\n type: \"positional\",\n description: \"Workflow id (from `baker hubspot workflows list`)\",\n required: true,\n },\n full: { type: \"boolean\", description: \"Include the raw HubSpot payload with the filter criteria\", required: false },\n },\n run: async ({ args }) => {\n try {\n const response = await apiPost<HubspotWorkflowsViewResponse>(\n \"/api/hubspot/workflows/view\",\n {\n workflowId: args.workflowId,\n ...(args.full ? { full: true } : {}),\n },\n { read: true },\n );\n const { workflow } = response.data;\n const hints = workflowViewHints(workflow);\n\n writeJson({ ...response, meta: { count: workflow.steps.length }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst pipelinesListCommand = defineCommand({\n meta: {\n name: \"list\",\n description: \"List HubSpot deal pipelines and their stages. Example: baker hubspot pipelines list\",\n },\n args: {},\n run: async () => {\n try {\n const response = await apiPost<HubspotPipelinesListResponse>(\"/api/hubspot/pipelines/list\", {}, { read: true });\n const { pipelines } = response.data;\n const hints: string[] =\n pipelines.length === 0\n ? [\"This account has no deal pipelines, so there is nowhere for a lead to be worked.\"]\n : [\"Stages are listed in the order they run in HubSpot, so the first stage is where a new lead lands.\"];\n\n writeJson({ ok: true, ...rowsAsData(response.data, \"pipelines\"), hints });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\ntype HubspotObjectWord = \"contact\" | \"deal\" | \"lead\";\n\nconst OBJECT_WORDS: Record<HubspotObjectWord, { plural: string; command: string; rows: string }> = {\n contact: {\n plural: \"contacts\",\n command: \"baker hubspot contacts\",\n rows: '`--field email={{work_email}}`, `--field currency=EUR`, `--field first_name=\"{{firstname}} {{lastname}}\"`; `{{id}}` is the contact\\'s own id',\n },\n deal: {\n plural: \"deals\",\n command: \"baker hubspot deals\",\n rows: \"`--field value={{amount}}`, `--field currency={{deal_currency_code}}`, `--field email={{contact.email}}` — a deal's own properties bare, its contact's as `contact.<name>`; `{{id}}` is the deal's own id, `{{contact.id}}` the contact's\",\n },\n lead: {\n plural: \"leads\",\n command: \"baker hubspot leads\",\n rows: \"`--field email={{contact.email}}`, `--field properties.stage={{hs_pipeline_stage}}` — a lead's own properties bare, its contact's as `contact.<name>`; `{{id}}` is the lead's own id, `{{contact.id}}` the contact's. A lead carries no amount of its own, so `value` is empty unless you point it at a property\",\n },\n};\n\n/** `properties`, for contacts and for deals: what a HubSpot event can watch. */\nfunction propertiesCommand(object: HubspotObjectWord) {\n const words = OBJECT_WORDS[object];\n return defineCommand({\n meta: {\n name: \"properties\",\n description: `List every ${object} property a HubSpot event can watch, with its kind, the operators that kind takes, and a select's values. Example: ${words.command} properties`,\n },\n args: {},\n run: async () => {\n try {\n const response = await apiPost<HubspotContactPropertiesListResponse>(\n \"/api/hubspot/contacts/properties\",\n {\n object,\n },\n { read: true },\n );\n const { properties } = response.data;\n const operators = Object.entries(HUBSPOT_OPERATORS)\n .map(([kind, list]) => `${kind}: ${list.map((operator) => operator.value).join(\", \")}`)\n .join(\" · \");\n const objectFlag = object === \"contact\" ? \"\" : ` --object ${object}`;\n const hints =\n properties.length === 0\n ? [`This account has no visible ${object} property, so there is nothing an event could watch.`]\n : [\n `Pick the property and the condition that mean the outcome, then \\`baker analytics sources --create-hubspot${objectFlag} --property <name> [--operator <op>] --value <value>…\\` (\\`--value\\` repeats for a list). Operators by kind — ${operators}. Counting starts from creation: a ${object} already satisfying it is not counted until it leaves and comes back.`,\n ];\n writeJson({ ok: true, ...rowsAsData(response.data, \"properties\"), hints });\n } catch (err) {\n failNotConnected(err);\n }\n },\n });\n}\n\nconst contactsPropertiesCommand = propertiesCommand(\"contact\");\n\nconst contactsSummaryCommand = defineCommand({\n meta: {\n name: \"summary\",\n description: \"Whether recent leads are being worked, as counts. Example: baker hubspot contacts summary --days 30\",\n },\n args: {\n days: { type: \"string\", description: \"Window in days (default 30)\", required: false },\n },\n run: async ({ args }) => {\n try {\n const days = args.days === undefined ? 30 : Number(args.days);\n if (!Number.isInteger(days) || days < 1 || days > 365) {\n throw new ApiError(\"VALIDATION_ERROR\", \"--days must be a whole number between 1 and 365.\");\n }\n\n const response = await apiPost<HubspotContactsSummaryResponse>(\n \"/api/hubspot/contacts/summary\",\n { days },\n { read: true },\n );\n const { total, withOwner, withoutOwner, byStage, truncated } = response.data;\n\n const hints: string[] = [];\n if (total === 0) {\n hints.push(`No contacts were created in the last ${days} days — nothing reached the CRM in that window.`);\n } else if (withOwner === 0) {\n hints.push(\n `None of these ${total} contacts has anyone assigned. That is the strongest available signal that the leads are arriving and nobody is picking them up — worth raising with the user.`,\n );\n } else if (withoutOwner > withOwner) {\n hints.push(`${withoutOwner} of ${total} contacts have nobody assigned — more unworked than worked.`);\n }\n const unset = byStage.find((entry) => entry.stage === \"unset\");\n if (unset && unset.count > 0) {\n hints.push(\n `${unset.count} contact(s) have no lifecycle stage set at all, so they were created and never staged.`,\n );\n }\n if (truncated) {\n hints.push(\"Stopped before reading every contact in the window, so these counts are floors, not totals.\");\n }\n\n writeJson({ ...response, meta: { count: total }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\n/**\n * What the agent should take from one contact lookup.\n *\n * An empty `deals` or a null `company` means two different things depending on\n * whether the connection could read them at all, and the wrong reading — \"this\n * lead was never worked\" — is the one conclusion the command exists to settle.\n * So each is paired with its readability flag rather than reported bare.\n */\nexport function contactLookupHints(\n data: HubspotContactLookupResponse[\"data\"],\n askedProperties: readonly string[] = [],\n): string[] {\n const { found, contact, deals, dealsReadable, company, companyReadable } = data;\n if (!found) {\n return [\n \"No contact with that email. The lead never reached the CRM — check the form's submissions before assuming the CRM lost it.\",\n ];\n }\n\n const hints: string[] = [];\n if (contact?.ownerId === null) {\n hints.push(\"Nobody is assigned to this contact.\");\n }\n const undefinedProperties = askedProperties.filter((name) => !Object.hasOwn(contact?.properties ?? {}, name));\n if (undefinedProperties.length > 0) {\n hints.push(\n `No contact property named ${undefinedProperties.join(\", \")} on this account, so there is nothing to read — this is not an empty value. \\`baker hubspot contacts fields\\` lists the names this account uses.`,\n );\n }\n if (!dealsReadable) {\n hints.push(\n \"Deals were not read: this HubSpot connection does not cover them. Do not report the lead as having no deal — you cannot tell. The user can enable it by reconnecting HubSpot.\",\n );\n } else if (deals.length === 0) {\n hints.push(\"No deal is associated, so this contact was never taken into the pipeline.\");\n }\n if (!companyReadable) {\n hints.push(\n \"Account details were not read: this HubSpot connection does not cover them. Do not report the lead as having no account — you cannot tell. The user can enable it by reconnecting HubSpot.\",\n );\n } else if (company === null) {\n hints.push(\n \"No account is associated either. Most B2B setups create one automatically when a contact arrives, so this usually means the lead was never processed at all — not that the account is missing.\",\n );\n }\n return hints;\n}\n\nfunction commaList(raw: string): string[] {\n return [\n ...new Set(\n raw\n .split(\",\")\n .map((item) => item.trim())\n .filter(Boolean),\n ),\n ];\n}\n\nconst contactsLookupCommand = defineCommand({\n meta: {\n name: \"lookup\",\n description:\n \"Find one contact by email and see whether it was worked; --properties reads named contact properties too. Example: baker hubspot contacts lookup a@b.com --properties utm_campaign,utm_source\",\n },\n args: {\n email: { type: \"positional\", description: \"The contact's email address\", required: true },\n properties: {\n type: \"string\",\n description:\n \"Comma-separated contact properties to read, by HubSpot's internal name: --properties utm_campaign,utm_source\",\n required: false,\n },\n },\n run: async ({ args }) => {\n try {\n const properties = typeof args.properties === \"string\" ? commaList(args.properties) : [];\n const response = await apiPost<HubspotContactLookupResponse>(\n \"/api/hubspot/contacts/lookup\",\n {\n email: args.email,\n ...(properties.length > 0 ? { properties } : {}),\n },\n { read: true },\n );\n const hints = contactLookupHints(response.data, properties);\n\n writeJson({\n ...response,\n meta: { count: response.data.found ? 1 : 0 },\n ...(hints.length > 0 ? { hints } : {}),\n });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\n/** `fields`, for contacts and for deals: what a HubSpot event's rows can read. */\nfunction fieldsCommand(object: HubspotObjectWord) {\n const words = OBJECT_WORDS[object];\n return defineCommand({\n meta: {\n name: \"fields\",\n description: `List every property a HubSpot event on a ${object} can read into its rows, with HubSpot's type${object === \"contact\" ? \"\" : ` — the ${object}'s own, and its contact's as contact.<name>`}. Example: ${words.command} fields`,\n },\n args: {},\n run: async () => {\n try {\n const response = await apiPost<HubspotContactFieldsListResponse>(\n \"/api/hubspot/contacts/fields\",\n { object },\n { read: true },\n );\n writeJson({\n ok: true,\n ...rowsAsData(response.data, \"fields\"),\n hints: [\n `A row of a HubSpot event is a template over these names: ${words.rows}. \\`baker analytics sources --preview${object === \"contact\" ? \"\" : ` --object ${object}`} --property <p> --value <v> --field <row>…\\` reads one real ${object} to check the rows against.`,\n ],\n });\n } catch (err) {\n failNotConnected(err);\n }\n },\n });\n}\n\nconst contactsFieldsCommand = fieldsCommand(\"contact\");\n\nconst dealsCommand = defineCommand({\n meta: {\n name: \"deals\",\n description:\n \"Deals on the connected HubSpot account: the deals themselves with amount and stage (`list`), one deal found by its name (`lookup`), and what a HubSpot event on a deal can watch (`properties`) and read (`fields`).\",\n },\n subCommands: {\n list: () => import(\"./crm.ts\").then((m) => m.dealsListCommand),\n lookup: () => import(\"./crm.ts\").then((m) => m.dealsLookupCommand),\n properties: propertiesCommand(\"deal\"),\n fields: fieldsCommand(\"deal\"),\n },\n});\n\nconst leadsCommand = defineCommand({\n meta: {\n name: \"leads\",\n description:\n \"Leads on the connected HubSpot account: what a HubSpot event on a lead can watch (`properties`) and read (`fields`). Start here for qualification and disqualification — a lead's stage is where HubSpot records both, and `hs_pipeline_stage` lists the account's own stages with their labels. Needs Sales Hub Professional or Enterprise; on any other plan the account has no leads to read.\",\n },\n subCommands: { properties: propertiesCommand(\"lead\"), fields: fieldsCommand(\"lead\") },\n});\n\nconst contactsCommand = defineCommand({\n meta: { name: \"contacts\", description: \"Contacts on the connected HubSpot account.\" },\n subCommands: {\n summary: contactsSummaryCommand,\n lookup: contactsLookupCommand,\n properties: contactsPropertiesCommand,\n fields: contactsFieldsCommand,\n },\n});\n\nconst companiesCommand = defineCommand({\n meta: { name: \"companies\", description: \"Companies (accounts) in the connected HubSpot CRM.\" },\n subCommands: {\n search: () => import(\"./crm.ts\").then((m) => m.companiesSearchCommand),\n contacts: () => import(\"./crm.ts\").then((m) => m.companiesContactsCommand),\n },\n});\n\nconst formsCommand = defineCommand({\n meta: { name: \"forms\", description: \"HubSpot forms on the connected account.\" },\n subCommands: { list: formsListCommand, view: formsViewCommand, submissions: formsSubmissionsCommand },\n});\n\nconst workflowsCommand = defineCommand({\n meta: { name: \"workflows\", description: \"HubSpot workflows on the connected account.\" },\n subCommands: { list: workflowsListCommand, view: workflowsViewCommand },\n});\n\nconst pipelinesCommand = defineCommand({\n meta: { name: \"pipelines\", description: \"HubSpot deal pipelines on the connected account.\" },\n subCommands: { list: pipelinesListCommand },\n});\n\nconst meetingsCommand = defineCommand({\n meta: { name: \"meetings\", description: \"HubSpot meeting links (calendars) on the connected account.\" },\n subCommands: { list: meetingsListCommand, view: meetingsViewCommand },\n});\n\nexport const hubspotCommand = defineCommand({\n meta: {\n name: \"hubspot\",\n description: `Read the connected HubSpot account — forms, the leads they received, workflows, deal pipelines, CRM\ncompanies and deals, and meeting links (calendars) — and get the blob to wire a form into a Form step yourself.\n\nExamples:\n baker hubspot forms list # every form: embed type + post-submit action\n baker hubspot forms list --redirecting-only # which forms redirect away on submit\n baker hubspot forms view <formId> # fields, consent mode, full configuration\n baker hubspot forms view <formId> --as-node # the form.external blob -> write into the step\n baker hubspot forms submissions <formId> # how many leads it got, and when\n baker hubspot workflows list --enabled-only # what runs after a lead is captured\n baker hubspot workflows view <workflowId> # its real branches, in order, and what each step writes\n baker hubspot pipelines list # where a lead lands, and the stages after it\n baker hubspot contacts summary --days 30 # are recent leads being worked? (counts only)\n baker hubspot contacts lookup a@b.com # was this one lead picked up? --properties utm_campaign,… reads those too\n baker hubspot companies search --domains acme.com,globex.io --with-deals # which are accounts, with deals\n baker hubspot deals list --modified-since 2026-01-01 # deals: amount, stage, closed won\n baker hubspot deals lookup --search \"Acme\" # is this sale in the CRM? (by deal name)\n baker hubspot deals properties # what a HubSpot event on a deal can watch (dealstage, amount…)\n baker hubspot deals fields # what its rows can read: the deal's own, its contact's as contact.<name>\n baker hubspot meetings list # every calendar + whether booking redirects\n baker hubspot meetings view <slug> --as-node # same, for a hubspotMeeting step\n\nAn account connected before one of these existed cannot serve it — you get HUBSPOT_RECONNECT_REQUIRED, which\nmeans HubSpot IS connected and the user has to reconnect it to widen what Baker may read. Report that and\ncarry on with the rest; never call it broken and never retry.\n\nNothing here is secret, so HubSpot steps do not need request_flow_input: take --as-node and edit the\nflow's _data.json. Use the approval form only when no account is connected or the right form is unclear.\nFull guide: __tooling__/docs/tools/baker/hubspot.md`,\n },\n subCommands: {\n forms: formsCommand,\n workflows: workflowsCommand,\n pipelines: pipelinesCommand,\n contacts: contactsCommand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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA6Bf;AAAA,EACA,aAAa;AAAA,IACX,OAAO;AAAA,IACP,WAAW;AAAA,IACX,WAAW;AAAA,IACX,UAAU;AAAA,IACV,WAAW;AAAA,IACX,OAAO;AAAA,IACP,OAAO;AAAA,IACP,UAAU;AAAA,EACZ;AACF,CAAC;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/testimonials/sources/list.ts"],"sourcesContent":["import type { TestimonialSourcesListResponse } from \"@baker/api\";\nimport { defineCommand } from \"citty\";\nimport { apiGet } from \"../../../client.ts\";\nimport { writeJson } from \"../../../output.ts\";\nimport { registerSchema } from \"../../../schemas.ts\";\nimport { compactSource, reportError } from \"./shared.ts\";\n\nregisterSchema({\n command: \"testimonials.sources.list\",\n description:\n \"List the review pages feeding the testimonials library: each one's id, site, import status and how many reviews it has brought in. A source with status error did not import (its `error` says why; sync it again once). A source with pageHasNoReviews imported fine: the site counts no reviews for that page yet.\",\n args: {},\n});\n\n/** What the agent should do next about the sources it just listed. */\nexport function listSourceHints(sources: TestimonialSourcesListResponse): string[] {\n if (sources.length === 0) {\n return [\n \"No review sources yet. If the client has a public review page (Google Maps, Trustpilot, Yelp, Tripadvisor, G2, Capterra, Amazon, App Store, Google Play), add it with `baker testimonials sources add <link>`.\",\n ];\n }\n const hints = sources\n .filter((source) => source.status === \"error\")\n .map(\n (source) =>\n `${source.label} on ${source.platformLabel} did not import: ${source.error ?? \"the last import failed\"} Retry once with \\`baker testimonials sources sync ${source.id}\\`; if it fails again, tell the user in plain words and carry on with the other sources.`,\n );\n for (const source of sources) {\n if (source.status === \"idle\" && source.reviews === 0 && source.pageHasNoReviews) {\n hints.push(\n `${source.label} on ${source.platformLabel} has no reviews yet: the import worked and the site counts none for this page, so there is nothing to sync again. Tell the user plainly; if they expected reviews there, ask for the business's own review page.`,\n );\n }\n }\n if (sources.some((source) => source.status === \"importing\")) {\n hints.push(\"Some sources are still importing — their review counts will grow over the next minutes.\");\n }\n return hints;\n}\n\nexport const listCommand = defineCommand({\n meta: {\n name: \"list\",\n description:\n \"List testimonial sources (id, site, import status, reviews imported). A source with status error did not import; its `error` says why. A source with pageHasNoReviews imported fine: the site counts no reviews for that page yet.\\n\\nExample: baker testimonials sources list\",\n },\n args: {},\n run: async () => {\n try {\n const sources = await apiGet<TestimonialSourcesListResponse>(\"/api/testimonials/sources/list\");\n const hints = listSourceHints(sources);\n writeJson({ ok: true, data: sources.map(compactSource), hints: hints.length > 0 ? hints : undefined });\n } catch (err) {\n reportError(err);\n }\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;AACA,SAAS,qBAAqB;AAM9B,eAAe;AAAA,EACb,SAAS;AAAA,EACT,aACE;AAAA,EACF,MAAM,CAAC;AACT,CAAC;AAGM,SAAS,gBAAgB,SAAmD;AACjF,MAAI,QAAQ,WAAW,GAAG;AACxB,WAAO;AAAA,MACL;AAAA,IACF;AAAA,EACF;AACA,QAAM,QAAQ,QACX,OAAO,CAAC,WAAW,OAAO,WAAW,OAAO,EAC5C;AAAA,IACC,CAAC,WACC,GAAG,OAAO,KAAK,OAAO,OAAO,aAAa,oBAAoB,OAAO,SAAS,wBAAwB,sDAAsD,OAAO,EAAE;AAAA,EACzK;AACF,aAAW,UAAU,SAAS;AAC5B,QAAI,OAAO,WAAW,UAAU,OAAO,YAAY,KAAK,OAAO,kBAAkB;AAC/E,YAAM;AAAA,QACJ,GAAG,OAAO,KAAK,OAAO,OAAO,aAAa;AAAA,MAC5C;AAAA,IACF;AAAA,EACF;AACA,MAAI,QAAQ,KAAK,CAAC,WAAW,OAAO,WAAW,WAAW,GAAG;AAC3D,UAAM,KAAK,8FAAyF;AAAA,EACtG;AACA,SAAO;AACT;AAEO,IAAM,cAAc,cAAc;AAAA,EACvC,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,aACE;AAAA,EACJ;AAAA,EACA,MAAM,CAAC;AAAA,EACP,KAAK,YAAY;AACf,QAAI;AACF,YAAM,UAAU,MAAM,OAAuC,gCAAgC;AAC7F,YAAM,QAAQ,gBAAgB,OAAO;AACrC,gBAAU,EAAE,IAAI,MAAM,MAAM,QAAQ,IAAI,aAAa,GAAG,OAAO,MAAM,SAAS,IAAI,QAAQ,OAAU,CAAC;AAAA,IACvG,SAAS,KAAK;AACZ,kBAAY,GAAG;AAAA,IACjB;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/testimonials/list.ts"],"sourcesContent":["import { type TestimonialsListResponse, testimonialSourceTypeSchema } from \"@baker/api\";\nimport { defineCommand } from \"citty\";\nimport { ApiError, apiGetWithHeaders } from \"../../client.ts\";\nimport { type OutputFormat, testimonialNormalizer, writeJson, writeOutput } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport { activeFilterFlags } from \"../images/searchHints.ts\";\nimport { measureEmptyCorpus } from \"./emptyCorpusHints.ts\";\nimport { testimonialRows } from \"./rows.ts\";\n\nconst FILTER_FLAGS = [\"source\", \"rating-min\", \"rating-max\", \"status\", \"sentiment\", \"language\", \"tags\"];\n\nregisterSchema({\n command: \"testimonials.list\",\n description: \"List testimonials with optional filters.\",\n args: {\n source: {\n type: \"string\",\n description: `Filter by source: ${testimonialSourceTypeSchema.options.join(\"|\")}`,\n required: false,\n enum: [...testimonialSourceTypeSchema.options],\n },\n \"rating-min\": { type: \"number\", description: \"Minimum star rating (1-5)\", required: false },\n \"rating-max\": { type: \"number\", description: \"Maximum star rating (1-5)\", required: false },\n status: {\n type: \"string\",\n description: \"Filter by status: pending|processing|ready|error\",\n required: false,\n enum: [\"pending\", \"processing\", \"ready\", \"error\"],\n },\n sentiment: {\n type: \"string\",\n description: \"Filter: positive|neutral|negative\",\n required: false,\n enum: [\"positive\", \"neutral\", \"negative\"],\n },\n language: { type: \"string\", description: \"Filter by language code (e.g. en, es)\", required: false },\n tags: { type: \"string\", description: \"Comma-separated tags to filter by\", required: false },\n limit: { type: \"number\", description: \"Max results per page (default 50)\", required: false, default: 50 },\n cursor: {\n type: \"string\",\n description: \"Read the next page: pass meta.next_cursor from the previous call, with the same filters.\",\n required: false,\n },\n },\n});\n\n/** CLI flag names → query-string names, applying only the flags that were passed. */\nconst PARAM_NAMES: Record<string, string> = {\n source: \"source\",\n \"rating-min\": \"rating_min\",\n \"rating-max\": \"rating_max\",\n status: \"status\",\n sentiment: \"sentiment\",\n language: \"language\",\n tags: \"tags\",\n limit: \"limit\",\n cursor: \"cursor\",\n};\n\nfunction buildListParams(args: Record<string, unknown>): Record<string, string> {\n const params: Record<string, string> = {};\n for (const [flag, param] of Object.entries(PARAM_NAMES)) {\n const value = args[flag];\n if (value !== undefined && value !== \"\") {\n params[param] = String(value);\n }\n }\n return params;\n}\n\nexport const listCommand = defineCommand({\n meta: {\n name: \"list\",\n description:\n \"List testimonials with optional filters. Rows are the same compact rows as search; --full adds the whole review. Example: baker testimonials list --source google --sentiment positive\",\n },\n args: {\n source: {\n type: \"string\",\n description: `Filter by source: ${testimonialSourceTypeSchema.options.join(\"|\")}`,\n required: false,\n },\n \"rating-min\": { type: \"string\", description: \"Minimum star rating (1-5)\", required: false },\n \"rating-max\": { type: \"string\", description: \"Maximum star rating (1-5)\", required: false },\n status: { type: \"string\", description: \"Filter by status: pending|processing|ready|error\", required: false },\n sentiment: { type: \"string\", description: \"Filter: positive|neutral|negative\", required: false },\n language: { type: \"string\", description: \"Filter by language code (e.g. en, es)\", required: false },\n tags: { type: \"string\", description: \"Comma-separated tags to filter by\", required: false },\n limit: { type: \"string\", description: \"Max results per page (default 50)\", required: false },\n cursor: { type: \"string\", description: \"meta.next_cursor from the previous page\", required: false },\n output: { type: \"string\", description: \"Output format: json|files|md\", required: false, default: \"json\" },\n fields: { type: \"string\", description: \"Comma-separated field names to include\", required: false },\n full: {\n type: \"boolean\",\n description:\n \"Add the whole review text (by default cut at 200 characters), summary, source URL, dates and status\",\n required: false,\n default: false,\n },\n },\n run: async ({ args }) => {\n try {\n const { data, headers } = await apiGetWithHeaders<TestimonialsListResponse>(\n \"/api/testimonials\",\n buildListParams(args),\n );\n const nextCursor = headers.get(\"x-baker-next-cursor\");\n const { hints, empty } = await measureEmptyCorpus({\n command: \"list\",\n resultCount: data.length,\n activeFilters: activeFilterFlags(args, FILTER_FLAGS),\n nextCursor,\n continued: Boolean(args.cursor),\n });\n const outputFormat = (args.output as OutputFormat) || \"json\";\n const meta = { ...(empty ? { empty } : {}), ...(nextCursor ? { next_cursor: nextCursor } : {}) };\n const fields = args.fields ? args.fields.split(\",\") : undefined;\n writeOutput(\n {\n ok: true,\n data: testimonialRows(data, outputFormat, fields, args.full as boolean),\n ...(Object.keys(meta).length > 0 ? { meta } : {}),\n ...(hints.length > 0 ? { hints } : {}),\n },\n outputFormat,\n fields,\n args.full as boolean,\n testimonialNormalizer,\n );\n // An empty `--output md` is a header row and nothing else, so the hint has\n // to leave the envelope to be seen at all.\n if (outputFormat !== \"json\") {\n for (const hint of hints) {\n process.stderr.write(`${hint}\\n`);\n }\n }\n } catch (err) {\n if (err instanceof ApiError) {\n writeJson({ ok: false, error: { code: err.code, message: err.message } });\n process.exit(1);\n }\n writeJson({ ok: false, error: { code: \"INTERNAL_ERROR\", message: \"Unexpected error\" } });\n process.exit(1);\n }\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,qBAAqB;AAQ9B,IAAM,eAAe,CAAC,UAAU,cAAc,cAAc,UAAU,aAAa,YAAY,MAAM;AAErG,eAAe;AAAA,EACb,SAAS;AAAA,EACT,aAAa;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,aAAa,qBAAqB,4BAA4B,QAAQ,KAAK,GAAG,CAAC;AAAA,MAC/E,UAAU;AAAA,MACV,MAAM,CAAC,GAAG,4BAA4B,OAAO;AAA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,KAAK,MAAM;AAAA,MAChC,CAAC;AACD,YAAM,eAAgB,KAAK,UAA2B;AACtD,YAAM,OAAO,EAAE,GAAI,QAAQ,EAAE,MAAM,IAAI,CAAC,GAAI,GAAI,aAAa,EAAE,aAAa,WAAW,IAAI,CAAC,EAAG;AAC/F,YAAM,SAAS,KAAK,SAAS,KAAK,OAAO,MAAM,GAAG,IAAI;AACtD;AAAA,QACE;AAAA,UACE,IAAI;AAAA,UACJ,MAAM,gBAAgB,MAAM,cAAc,QAAQ,KAAK,IAAe;AAAA,UACtE,GAAI,OAAO,KAAK,IAAI,EAAE,SAAS,IAAI,EAAE,KAAK,IAAI,CAAC;AAAA,UAC/C,GAAI,MAAM,SAAS,IAAI,EAAE,MAAM,IAAI,CAAC;AAAA,QACtC;AAAA,QACA;AAAA,QACA;AAAA,QACA,KAAK;AAAA,QACL;AAAA,MACF;AAGA,UAAI,iBAAiB,QAAQ;AAC3B,mBAAW,QAAQ,OAAO;AACxB,kBAAQ,OAAO,MAAM,GAAG,IAAI;AAAA,CAAI;AAAA,QAClC;AAAA,MACF;AAAA,IACF,SAAS,KAAK;AACZ,UAAI,eAAe,UAAU;AAC3B,kBAAU,EAAE,IAAI,OAAO,OAAO,EAAE,MAAM,IAAI,MAAM,SAAS,IAAI,QAAQ,EAAE,CAAC;AACxE,gBAAQ,KAAK,CAAC;AAAA,MAChB;AACA,gBAAU,EAAE,IAAI,OAAO,OAAO,EAAE,MAAM,kBAAkB,SAAS,mBAAmB,EAAE,CAAC;AACvF,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/testimonials/search.ts"],"sourcesContent":["import {\n type TestimonialsSearchRequest,\n type TestimonialsSearchResponse,\n testimonialSourceTypeSchema,\n} from \"@baker/api\";\nimport { defineCommand } from \"citty\";\nimport { ApiError, apiPost } from \"../../client.ts\";\nimport { type OutputFormat, testimonialNormalizer, writeJson, writeOutput } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport { activeFilterFlags } from \"../images/searchHints.ts\";\nimport { measureEmptyCorpus } from \"./emptyCorpusHints.ts\";\nimport { testimonialRows } from \"./rows.ts\";\n\nconst FILTER_FLAGS = [\"source\", \"rating-min\", \"rating-max\", \"status\", \"sentiment\", \"language\", \"tags\"];\n\n/**\n * Hybrid search reranks over this company's whole corpus with no language\n * awareness, so a corpus seeded in one language returns that language even for\n * an English query. When the caller didn't pin a `--language` and the results\n * clearly skew to one, nudge them to scope by the target market's language —\n * otherwise a Spanish/French-heavy corpus silently starves a market-specific ad\n * of on-language quotes.\n */\nfunction languageBiasHint(results: TestimonialsSearchResponse, requestedLanguage: string | undefined): string | null {\n if (requestedLanguage) {\n return null;\n }\n const withLang = results.filter((r) => typeof r.language === \"string\" && r.language.length > 0);\n if (withLang.length < 3) {\n return null;\n }\n const counts = new Map<string, number>();\n for (const r of withLang) {\n const lang = r.language as string;\n counts.set(lang, (counts.get(lang) ?? 0) + 1);\n }\n const [topLang, topCount] = [...counts.entries()].sort((a, b) => b[1] - a[1])[0] ?? [\"\", 0];\n if (topLang && topCount / withLang.length >= 0.8) {\n return `Results skew ${topLang} (${topCount}/${withLang.length}). If you're sourcing quotes for a specific market, pass --language <code> (e.g. --language en) so the ad's language matches its audience.`;\n }\n return null;\n}\n\nregisterSchema({\n command: \"testimonials.search\",\n description: \"Search testimonials by text query. Uses hybrid BM25 + vector + reranking.\",\n args: {\n query: { type: \"string\", description: \"Search query text\", required: true },\n limit: { type: \"number\", description: \"Maximum results to return\", required: false, default: 10 },\n source: {\n type: \"string\",\n description: `Filter by source: ${testimonialSourceTypeSchema.options.join(\"|\")}`,\n required: false,\n enum: [...testimonialSourceTypeSchema.options],\n },\n \"rating-min\": { type: \"number\", description: \"Minimum star rating (1-5)\", required: false },\n \"rating-max\": { type: \"number\", description: \"Maximum star rating (1-5)\", required: false },\n status: {\n type: \"string\",\n description: \"Filter by status: pending|processing|ready|error\",\n required: false,\n enum: [\"pending\", \"processing\", \"ready\", \"error\"],\n },\n sentiment: {\n type: \"string\",\n description: \"Filter: positive|neutral|negative\",\n required: false,\n enum: [\"positive\", \"neutral\", \"negative\"],\n },\n language: { type: \"string\", description: \"Filter by language code (e.g. en, es)\", required: false },\n tags: { type: \"string\", description: \"Comma-separated tags to filter by\", required: false },\n },\n});\n\n/** Assemble the search request body from CLI args, applying only the flags that were provided. */\nfunction buildSearchRequest(query: string, args: Record<string, unknown>): TestimonialsSearchRequest {\n const body: TestimonialsSearchRequest = { query };\n if (args.limit !== undefined) {\n body.limit = Number(args.limit);\n }\n if (args.source) {\n body.source = args.source as TestimonialsSearchRequest[\"source\"];\n }\n if (args[\"rating-min\"] !== undefined) {\n body.rating_min = Number(args[\"rating-min\"]);\n }\n if (args[\"rating-max\"] !== undefined) {\n body.rating_max = Number(args[\"rating-max\"]);\n }\n if (args.status) {\n body.status = args.status as TestimonialsSearchRequest[\"status\"];\n }\n if (args.sentiment) {\n body.sentiment = args.sentiment as TestimonialsSearchRequest[\"sentiment\"];\n }\n if (args.language) {\n body.language = args.language as string;\n }\n if (args.tags) {\n body.tags = (args.tags as string).split(\",\").filter(Boolean);\n }\n return body;\n}\n\nexport const searchCommand = defineCommand({\n meta: {\n name: \"search\",\n description:\n \"Semantic search testimonials by text query. Uses hybrid BM25 + vector + reranking. Each row is compact: id, reviewer, the review's first 200 characters, highlight, rating, language, reviewer location, sentiment, tags, source; --full adds the whole review. Example: baker testimonials search 'great service' --rating-min 4\",\n },\n args: {\n query: { type: \"positional\", description: \"Search query text\", required: false },\n limit: { type: \"string\", description: \"Max results (default 10)\", required: false },\n source: {\n type: \"string\",\n description: `Filter by source: ${testimonialSourceTypeSchema.options.join(\"|\")}`,\n required: false,\n },\n \"rating-min\": { type: \"string\", description: \"Minimum star rating (1-5)\", required: false },\n \"rating-max\": { type: \"string\", description: \"Maximum star rating (1-5)\", required: false },\n status: { type: \"string\", description: \"Filter by status: pending|processing|ready|error\", required: false },\n sentiment: { type: \"string\", description: \"Filter: positive|neutral|negative\", required: false },\n language: { type: \"string\", description: \"Filter by language code (e.g. en, es)\", required: false },\n tags: { type: \"string\", description: \"Comma-separated tags to filter by\", required: false },\n output: { type: \"string\", description: \"Output format: json|files|md\", required: false, default: \"json\" },\n fields: { type: \"string\", description: \"Comma-separated field names to include\", required: false },\n full: {\n type: \"boolean\",\n description:\n \"Add the whole review text (by default cut at 200 characters), summary, source URL, dates and status\",\n required: false,\n default: false,\n },\n },\n run: async ({ args }) => {\n try {\n const query = args.query as string | undefined;\n if (!query) {\n writeJson({ ok: false, error: { code: \"VALIDATION_ERROR\", message: \"Search query is required\" } });\n process.exit(1);\n }\n\n const body = buildSearchRequest(query, args);\n const data = await apiPost<TestimonialsSearchResponse>(\"/api/testimonials/search\", body);\n const languageHint = languageBiasHint(data, body.language);\n const { hints: emptyHints, empty } = await measureEmptyCorpus({\n command: \"search\",\n resultCount: data.length,\n activeFilters: activeFilterFlags(args, FILTER_FLAGS),\n });\n const hints = [...emptyHints, ...(languageHint ? [languageHint] : [])];\n const outputFormat = (args.output as OutputFormat) || \"json\";\n const fields = args.fields ? args.fields.split(\",\") : undefined;\n writeOutput(\n {\n ok: true,\n data: testimonialRows(data, outputFormat, fields, args.full as boolean),\n ...(empty ? { meta: { empty } } : {}),\n ...(hints.length > 0 ? { hints } : {}),\n },\n outputFormat,\n fields,\n args.full as boolean,\n testimonialNormalizer,\n );\n // md/files render only the table, so hints (which never reach the table)\n // go to stderr — otherwise `--output md` hides the language skew, and an\n // empty result prints a header row and nothing else.\n if (outputFormat !== \"json\") {\n for (const hint of hints) {\n process.stderr.write(`${hint}\\n`);\n }\n }\n } catch (err) {\n if (err instanceof ApiError) {\n writeJson({ ok: false, error: { code: err.code, message: err.message } });\n process.exit(1);\n }\n writeJson({ ok: false, error: { code: \"INTERNAL_ERROR\", message: \"Unexpected error\" } });\n process.exit(1);\n }\n },\n});\n"],"mappings":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iB,MAAM,KAAK,QAAQ;AACzD,YAAM,EAAE,OAAO,YAAY,MAAM,IAAI,MAAM,mBAAmB;AAAA,QAC5D,SAAS;AAAA,QACT,aAAa,KAAK;AAAA,QAClB,eAAe,kBAAkB,MAAM,YAAY;AAAA,MACrD,CAAC;AACD,YAAM,QAAQ,CAAC,GAAG,YAAY,GAAI,eAAe,CAAC,YAAY,IAAI,CAAC,CAAE;AACrE,YAAM,eAAgB,KAAK,UAA2B;AACtD,YAAM,SAAS,KAAK,SAAS,KAAK,OAAO,MAAM,GAAG,IAAI;AACtD;AAAA,QACE;AAAA,UACE,IAAI;AAAA,UACJ,MAAM,gBAAgB,MAAM,cAAc,QAAQ,KAAK,IAAe;AAAA,UACtE,GAAI,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC;AAAA,UACnC,GAAI,MAAM,SAAS,IAAI,EAAE,MAAM,IAAI,CAAC;AAAA,QACtC;AAAA,QACA;AAAA,QACA;AAAA,QACA,KAAK;AAAA,QACL;AAAA,MACF;AAIA,UAAI,iBAAiB,QAAQ;AAC3B,mBAAW,QAAQ,OAAO;AACxB,kBAAQ,OAAO,MAAM,GAAG,IAAI;AAAA,CAAI;AAAA,QAClC;AAAA,MACF;AAAA,IACF,SAAS,KAAK;AACZ,UAAI,eAAe,UAAU;AAC3B,kBAAU,EAAE,IAAI,OAAO,OAAO,EAAE,MAAM,IAAI,MAAM,SAAS,IAAI,QAAQ,EAAE,CAAC;AACxE,gBAAQ,KAAK,CAAC;AAAA,MAChB;AACA,gBAAU,EAAE,IAAI,OAAO,OAAO,EAAE,MAAM,kBAAkB,SAAS,mBAAmB,EAAE,CAAC;AACvF,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|