@maycombhq/atticus 2.0.0-beta.2 → 2.0.0-beta.22
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/dist/bin.js +8 -4
- package/dist/chunk-23XVSEV5.js +49 -0
- package/dist/{chunk-ZDPAS56H.js → chunk-24OXGB3P.js} +8 -2
- package/dist/{chunk-7EOBHUMC.js → chunk-24XLDU72.js} +4 -3
- package/dist/{chunk-CR3MTH32.js → chunk-2F4CYZKJ.js} +86 -11
- package/dist/{chunk-6IU67AEK.js → chunk-2GF7OLF3.js} +23 -15
- package/dist/chunk-2IIMFOPM.js +41 -0
- package/dist/chunk-2LGRMVCA.js +617 -0
- package/dist/{chunk-XPCM366L.js → chunk-2MMCFP5C.js} +10 -8
- package/dist/{chunk-JBTK5OP2.js → chunk-2Q56PQPS.js} +6 -4
- package/dist/{chunk-Z6LF7HQN.js → chunk-2Q5EDGEO.js} +7 -5
- package/dist/{chunk-3USYZGRF.js → chunk-2RLKFUUL.js} +38 -27
- package/dist/chunk-2SKB4O2E.js +59 -0
- package/dist/{chunk-SP2I63OO.js → chunk-34S2WGOB.js} +87 -4
- package/dist/{chunk-GQ4N4WKF.js → chunk-3NFFJL5D.js} +33 -27
- package/dist/{chunk-SJRGMG6A.js → chunk-3NWDLGG6.js} +28 -25
- package/dist/{chunk-4WBVUHXN.js → chunk-3RM4UK6W.js} +20 -18
- package/dist/chunk-42SIDKEU.js +583 -0
- package/dist/{chunk-GLUX4EEP.js → chunk-4EURQWQD.js} +20 -15
- package/dist/chunk-4U276ICE.js +39 -0
- package/dist/{chunk-ZMFPW66A.js → chunk-53T4O55J.js} +4 -3
- package/dist/{chunk-6J5OKA4Y.js → chunk-57TDNMI3.js} +17 -15
- package/dist/chunk-5BD2KYLE.js +57 -0
- package/dist/{chunk-7EFILTCI.js → chunk-5F7GFN2F.js} +28 -0
- package/dist/chunk-5NMKONLP.js +95 -0
- package/dist/{chunk-7ZUIMTOU.js → chunk-5SJZW52K.js} +26 -24
- package/dist/{chunk-4RS5KZQD.js → chunk-63YRMR6J.js} +6 -5
- package/dist/chunk-66PPNOON.js +62 -0
- package/dist/chunk-6H3Z5JHH.js +64 -0
- package/dist/{chunk-CEXSU4S6.js → chunk-6MUGR4LS.js} +775 -89
- package/dist/{chunk-QSXK2RGH.js → chunk-6OJQOPUN.js} +5 -3
- package/dist/{chunk-MVZVGYXH.js → chunk-6PPOWY5E.js} +84 -14
- package/dist/{chunk-7EKXJZ2Y.js → chunk-6ZGLAACW.js} +299 -38
- package/dist/chunk-6ZJ5A7AF.js +222 -0
- package/dist/{chunk-L24C55VN.js → chunk-745DAZ4L.js} +142 -30
- package/dist/{chunk-Q4D5X7QB.js → chunk-7ASNL4Q4.js} +46 -24
- package/dist/chunk-7BR7IPOH.js +35 -0
- package/dist/{chunk-7WD63HU2.js → chunk-7DOR27HL.js} +6 -6
- package/dist/chunk-7FTTA3HD.js +341 -0
- package/dist/{chunk-OLQJTJJU.js → chunk-7GJS6DNX.js} +12 -3
- package/dist/{chunk-7JUKDRSZ.js → chunk-7IGKHZ4Z.js} +347 -226
- package/dist/{chunk-G2B4ZQGH.js → chunk-7IOWA5D5.js} +11 -6
- package/dist/{chunk-EBEW3XXQ.js → chunk-7JITZFJC.js} +7 -5
- package/dist/chunk-7MJSQTL5.js +174 -0
- package/dist/{chunk-I4JRCD6M.js → chunk-7UOMVMFG.js} +25 -17
- package/dist/{chunk-YY6ZQQBP.js → chunk-AFWUDXEM.js} +19 -7
- package/dist/chunk-AFZ3QA6W.js +47 -0
- package/dist/chunk-AJQ72EBM.js +420 -0
- package/dist/chunk-AJYXNTNZ.js +317 -0
- package/dist/chunk-AVTBS4OW.js +49 -0
- package/dist/{chunk-FHH4I4ZV.js → chunk-BDKC6H5P.js} +12 -6
- package/dist/{chunk-IPKHE5D6.js → chunk-BEVTIBRH.js} +1526 -875
- package/dist/chunk-BHT7QK4G.js +162 -0
- package/dist/{chunk-6JUBZBMW.js → chunk-BIGDQDHD.js} +6 -4
- package/dist/{chunk-2BFCZ3RK.js → chunk-BO4KX37X.js} +20 -18
- package/dist/chunk-BPK5P77O.js +115 -0
- package/dist/chunk-BQ4SQQC6.js +59 -0
- package/dist/chunk-BQGDB6ZL.js +7342 -0
- package/dist/{chunk-2ANOROX3.js → chunk-BTGPE6CR.js} +11 -9
- package/dist/chunk-BTY3HZBO.js +93 -0
- package/dist/{chunk-DPZHZQKE.js → chunk-BXYMYEJ4.js} +44 -10
- package/dist/{chunk-2RMYG36Q.js → chunk-C3RY6KU6.js} +309 -346
- package/dist/chunk-C4R4JLHE.js +40 -0
- package/dist/chunk-CADWLE2T.js +18 -0
- package/dist/chunk-CBGGOQWU.js +82 -0
- package/dist/chunk-CMDXGQTS.js +47 -0
- package/dist/{chunk-MC3H7736.js → chunk-CQDGOPGH.js} +58 -18
- package/dist/{chunk-HFQCFSJR.js → chunk-CX4RZ2KS.js} +4 -3
- package/dist/{chunk-PAMPPUR6.js → chunk-CXJ6FUKN.js} +1852 -207
- package/dist/{chunk-ABWHYWNI.js → chunk-D73UEXYW.js} +3 -3
- package/dist/chunk-DCZWQLYT.js +1205 -0
- package/dist/chunk-DLOBCJL6.js +48 -0
- package/dist/{chunk-4BN53TG3.js → chunk-DOBQKHIF.js} +31 -23
- package/dist/chunk-E3ISYXO3.js +423 -0
- package/dist/{chunk-7SW2QWLU.js → chunk-E6ZIEVOI.js} +16 -13
- package/dist/chunk-EBL2R3YG.js +43 -0
- package/dist/{chunk-AIOQPLA5.js → chunk-EGQRREQH.js} +41 -15
- package/dist/chunk-EHA7RMZ3.js +58 -0
- package/dist/{chunk-M766ZJ6W.js → chunk-EIPTLPFC.js} +38 -27
- package/dist/chunk-EMRIQUND.js +517 -0
- package/dist/{chunk-DFBCSHVT.js → chunk-EPCJQQWD.js} +6 -4
- package/dist/{chunk-RZPYKDWS.js → chunk-F3P7N7SF.js} +1 -1
- package/dist/{chunk-R77KLRB3.js → chunk-FFLNS6VP.js} +21 -18
- package/dist/chunk-FFTRTL6R.js +26 -0
- package/dist/{chunk-IHMLFRVV.js → chunk-FPJPLKDW.js} +62 -16
- package/dist/{chunk-JCZIKA4C.js → chunk-FSMSFDLD.js} +5 -4
- package/dist/{chunk-AVJDSJ2F.js → chunk-FUJM6RTF.js} +8 -7
- package/dist/chunk-FZOJFH7Q.js +132 -0
- package/dist/{chunk-QRAOANID.js → chunk-G6X77UJZ.js} +23 -21
- package/dist/{chunk-3ALD2W2A.js → chunk-GCWRWSU7.js} +10 -4
- package/dist/chunk-GIW4ZVDB.js +39 -0
- package/dist/{chunk-B2WLAWNJ.js → chunk-GUX3PTYM.js} +3 -3
- package/dist/{chunk-DPUYDDQG.js → chunk-GZY6RUZ6.js} +25 -3
- package/dist/chunk-H4VO6WG3.js +10 -0
- package/dist/{chunk-MMOSZPWJ.js → chunk-H5HBGNXU.js} +5 -4
- package/dist/chunk-H7KM7LZE.js +229 -0
- package/dist/{chunk-AA6YULYB.js → chunk-HNM2YQT2.js} +7 -7
- package/dist/{chunk-3C7EYRFZ.js → chunk-HYU5VLGA.js} +1 -1
- package/dist/{chunk-XY3P7JW7.js → chunk-IDKCWSM5.js} +1032 -172
- package/dist/chunk-IFKEI4SA.js +237 -0
- package/dist/{chunk-F7HYOUFF.js → chunk-IGOE6KPG.js} +67 -22
- package/dist/{chunk-TDD55CJH.js → chunk-IH2XURVQ.js} +6 -5
- package/dist/chunk-INQHESFB.js +38 -0
- package/dist/chunk-IP74LCOQ.js +57 -0
- package/dist/chunk-IPHHDDC6.js +45 -0
- package/dist/{chunk-T6AIP7H5.js → chunk-ISUAAMGS.js} +110 -153
- package/dist/{chunk-A7UPUQFY.js → chunk-IUPG3UKI.js} +624 -319
- package/dist/{chunk-L6SGQIR3.js → chunk-IVBOQAGB.js} +7 -3
- package/dist/{chunk-27NKUS3X.js → chunk-J2JAKCIW.js} +2205 -796
- package/dist/{chunk-V2YTAIQO.js → chunk-J3IOLXWM.js} +24 -7
- package/dist/chunk-JA5FI3QV.js +142 -0
- package/dist/chunk-JAVI7JSP.js +49 -0
- package/dist/{chunk-HLJAXMM4.js → chunk-JB5LINEM.js} +6 -2
- package/dist/{chunk-2VHF7OXM.js → chunk-JENSEMXF.js} +1 -1
- package/dist/{chunk-6BVONWJ7.js → chunk-JJF6HALY.js} +4 -3
- package/dist/chunk-JLUCKAEL.js +38 -0
- package/dist/chunk-JRBFANFE.js +221 -0
- package/dist/{chunk-R6XF6UR3.js → chunk-KDNTAPLX.js} +4 -4
- package/dist/chunk-KFAVQZSX.js +33 -0
- package/dist/chunk-KJXD4PNL.js +50 -0
- package/dist/chunk-KN5BXMWN.js +44 -0
- package/dist/{chunk-PCVDV3UZ.js → chunk-KQGURXFU.js} +9 -7
- package/dist/{chunk-WY6PP6AA.js → chunk-KXITGYLF.js} +40 -6
- package/dist/{chunk-66YVAGGM.js → chunk-L27SV425.js} +22 -20
- package/dist/{chunk-NE2W3OO7.js → chunk-LDLL7LB3.js} +24 -22
- package/dist/chunk-LFGTYX5U.js +379 -0
- package/dist/{chunk-EYWIDJFU.js → chunk-LGBMTVNT.js} +7 -5
- package/dist/{chunk-Q5AMFEWD.js → chunk-LGFL54FP.js} +3 -2
- package/dist/{chunk-6TACQN3N.js → chunk-LJXMYKZJ.js} +7 -5
- package/dist/{chunk-BKVWTZ6A.js → chunk-LKOR5UET.js} +29 -26
- package/dist/chunk-LNBQOP7D.js +294 -0
- package/dist/{chunk-O3WI5KWW.js → chunk-LO6P2VYG.js} +2 -2
- package/dist/chunk-LQJPN536.js +122 -0
- package/dist/{chunk-YEDDOYSC.js → chunk-LYBNHMVZ.js} +29 -5
- package/dist/{chunk-A3GY6SOA.js → chunk-LZ7NUC62.js} +20 -18
- package/dist/chunk-M32BLWDH.js +37 -0
- package/dist/{chunk-VYDBJ73M.js → chunk-M3NANSDZ.js} +17 -15
- package/dist/chunk-MFHL5URL.js +31 -0
- package/dist/chunk-MFR5OPBD.js +109 -0
- package/dist/{chunk-DE76JROX.js → chunk-MG4ZL5RW.js} +32 -20
- package/dist/{chunk-N7IXEHK3.js → chunk-MO6P2JZH.js} +10 -8
- package/dist/{chunk-65NYPGRC.js → chunk-MUWDB4R4.js} +1 -1
- package/dist/chunk-MZCGSXVR.js +34 -0
- package/dist/{chunk-MGYZM27B.js → chunk-N3XIYPU3.js} +51 -23
- package/dist/chunk-NDCF4R6S.js +172 -0
- package/dist/{chunk-DHPACDG7.js → chunk-NR2UJWOC.js} +10 -8
- package/dist/chunk-NXJ5URP6.js +51 -0
- package/dist/{chunk-UNM6ZOKP.js → chunk-NY2XSR5K.js} +147 -18
- package/dist/{chunk-5GDRCDQB.js → chunk-O45HFTFS.js} +3 -2
- package/dist/{chunk-ONLS5QA5.js → chunk-O4GXGGBX.js} +14 -12
- package/dist/chunk-O5PXQR67.js +249 -0
- package/dist/{chunk-PRPPGYZG.js → chunk-O66DM6DJ.js} +6 -4
- package/dist/{chunk-KEM4SDDP.js → chunk-O7FDLW7L.js} +11 -8
- package/dist/{chunk-T2UYZSCQ.js → chunk-O7XLYEFA.js} +169 -29
- package/dist/{chunk-FITWGOJ2.js → chunk-OHNCWBKF.js} +4 -4
- package/dist/{chunk-652QWTLZ.js → chunk-OHVTTOPS.js} +3 -3
- package/dist/chunk-OMI6FPPN.js +43 -0
- package/dist/chunk-ONUPY3H6.js +53 -0
- package/dist/chunk-OTLDSZDV.js +69 -0
- package/dist/chunk-OUBGGKDU.js +22 -0
- package/dist/chunk-OWNCM4ZN.js +330 -0
- package/dist/{chunk-YISXLPHN.js → chunk-P2V7QW4D.js} +235 -35
- package/dist/{chunk-CNUKCS2T.js → chunk-P32RUW3B.js} +1632 -93
- package/dist/{chunk-BWZ77RQT.js → chunk-PAQ2AS5E.js} +1 -1
- package/dist/{chunk-ZMAINWBW.js → chunk-PBPBMP2B.js} +4 -3
- package/dist/{chunk-ZVM6AKKM.js → chunk-PJSJPMJI.js} +3 -3
- package/dist/{chunk-EFHQ3TWP.js → chunk-PKBHS4AA.js} +233 -56
- package/dist/{chunk-GT4I4ZWM.js → chunk-PMUAJGLI.js} +20 -16
- package/dist/chunk-PPD7HTDP.js +152 -0
- package/dist/chunk-PSOFBQWB.js +42 -0
- package/dist/{chunk-S2A7YC3Q.js → chunk-Q2TECDIT.js} +10694 -8896
- package/dist/chunk-Q4K5WB2W.js +42 -0
- package/dist/{chunk-UGLN7QHV.js → chunk-Q6DFNVRJ.js} +14 -12
- package/dist/chunk-QA4O2GGC.js +265 -0
- package/dist/chunk-QAXW2N3B.js +1216 -0
- package/dist/chunk-QBNWF5ZU.js +19 -0
- package/dist/chunk-QFWA2DPH.js +224 -0
- package/dist/{chunk-23W7VWKR.js → chunk-QKUJMING.js} +1363 -114
- package/dist/{chunk-NXFPS2LR.js → chunk-R44CYFPV.js} +16 -13
- package/dist/{chunk-CKSITVS4.js → chunk-R7NYHMUU.js} +2687 -786
- package/dist/chunk-REWWDVQB.js +162 -0
- package/dist/{chunk-JMSCMUCA.js → chunk-RGERPOIV.js} +145 -21
- package/dist/{chunk-6JCPI55B.js → chunk-RLDGWLQ7.js} +49 -7
- package/dist/chunk-RUGXBPWI.js +384 -0
- package/dist/{chunk-CPA6HPVR.js → chunk-RXPJMEOW.js} +18 -12
- package/dist/{chunk-3HI6Z55Y.js → chunk-S4PMJU6H.js} +339 -43
- package/dist/chunk-S5LSDXV4.js +40 -0
- package/dist/chunk-S7FCV7S5.js +51 -0
- package/dist/{chunk-5GGOLAKC.js → chunk-SDKLKB6I.js} +28 -26
- package/dist/chunk-SFSPGFCV.js +62 -0
- package/dist/{chunk-ZNCEKR4J.js → chunk-SFUP7TTO.js} +12 -8
- package/dist/{chunk-64EQYWCA.js → chunk-SLXZOMA6.js} +69 -19
- package/dist/chunk-SQV37XO2.js +273 -0
- package/dist/{chunk-K65BJIMT.js → chunk-SU74NDMQ.js} +19 -17
- package/dist/chunk-SYV5LHML.js +165 -0
- package/dist/chunk-T4YPZIQN.js +36 -0
- package/dist/chunk-T6DQR5TV.js +323 -0
- package/dist/{chunk-JIITQXFB.js → chunk-THDMSZ3R.js} +3075 -802
- package/dist/{chunk-JGZCG5VM.js → chunk-TNR75OXT.js} +7 -7
- package/dist/{chunk-D3PO4DOZ.js → chunk-TUULXQRW.js} +174 -15
- package/dist/chunk-TYQBFTBR.js +516 -0
- package/dist/chunk-U76OWS3Q.js +49 -0
- package/dist/{chunk-YYQN46FY.js → chunk-UCROWG2D.js} +27 -24
- package/dist/{chunk-6M5NK3K3.js → chunk-UF4AZOZB.js} +50 -10
- package/dist/chunk-UF4GLFBX.js +345 -0
- package/dist/{chunk-OT2O76OS.js → chunk-UGUP3ZM6.js} +240 -39
- package/dist/chunk-UNAGJYET.js +45 -0
- package/dist/{chunk-5WG5YP4T.js → chunk-UOR2DTHH.js} +16 -14
- package/dist/{chunk-S3QNRWYR.js → chunk-UPOY4YSQ.js} +14 -12
- package/dist/{chunk-EPTBZ3GP.js → chunk-UPS2DGFC.js} +1 -1
- package/dist/{chunk-4AK7IBVP.js → chunk-UUU4CLJG.js} +4 -2
- package/dist/{chunk-W3BQAZ3Q.js → chunk-UWMJKX5U.js} +14 -12
- package/dist/{chunk-QZSX3F7C.js → chunk-UWOJLHFT.js} +27 -23
- package/dist/chunk-VBTP56CE.js +535 -0
- package/dist/chunk-VCTWPLAO.js +211 -0
- package/dist/chunk-VNU26RCO.js +1215 -0
- package/dist/{chunk-CSZ4C5N6.js → chunk-VTZMAJ3W.js} +93 -10
- package/dist/{chunk-TXLH6WHQ.js → chunk-VW62D6QE.js} +14 -12
- package/dist/{chunk-CAQZUNOH.js → chunk-VY72R2XZ.js} +610 -3
- package/dist/{chunk-2DIQQJCB.js → chunk-VZALIKIF.js} +18 -15
- package/dist/{chunk-TYAID7B7.js → chunk-W62H2XSO.js} +25 -23
- package/dist/{chunk-HVUPKCGJ.js → chunk-W7VWI2YH.js} +9 -6
- package/dist/{chunk-TANFV3MZ.js → chunk-WERM6KPJ.js} +7 -4
- package/dist/{chunk-BOHJZTEQ.js → chunk-WF7B67YE.js} +208 -87
- package/dist/{chunk-7FBGJFEE.js → chunk-WG5U3F5V.js} +14 -12
- package/dist/{chunk-4NDAAFQT.js → chunk-WJF2CS6M.js} +8 -5
- package/dist/{chunk-XAKWMCXI.js → chunk-WKUJ3KPV.js} +4 -4
- package/dist/chunk-WMTRHUI5.js +103 -0
- package/dist/chunk-WNKPRSGI.js +36 -0
- package/dist/chunk-WXFLMQSR.js +223 -0
- package/dist/{chunk-RRTKKSLQ.js → chunk-X3WY6MN3.js} +8 -6
- package/dist/{chunk-ZCJDOK2S.js → chunk-X4CXA2IL.js} +47 -23
- package/dist/{chunk-UBBC2XSG.js → chunk-X5F3Q5LV.js} +560 -105
- package/dist/{chunk-C6EKFH7J.js → chunk-XD75VZIH.js} +9 -7
- package/dist/chunk-XERYFDB5.js +297 -0
- package/dist/chunk-XI2LCCYQ.js +420 -0
- package/dist/chunk-Y2EQNWKV.js +933 -0
- package/dist/{chunk-LR3R6Z2A.js → chunk-YHCMZC2J.js} +7 -7
- package/dist/chunk-YYY3AZFE.js +122 -0
- package/dist/{chunk-GDLULHTC.js → chunk-Z5IA3WDR.js} +19 -31
- package/dist/{chunk-T6XQL73F.js → chunk-ZFFYNRIO.js} +63 -23
- package/dist/{chunk-EDS2L2LD.js → chunk-ZFL7NY4F.js} +56 -27
- package/dist/{chunk-YMZ3TNYB.js → chunk-ZGULQAPZ.js} +7 -4
- package/dist/{chunk-4SKZDI62.js → chunk-ZIUFM5HT.js} +3 -1
- package/dist/{chunk-DKJA76CJ.js → chunk-ZJFRMSJT.js} +15 -13
- package/dist/chunk-ZJXLNDH4.js +239 -0
- package/dist/chunk-ZQ3ON2VQ.js +252 -0
- package/dist/{chunk-HITVBIJS.js → chunk-ZQ7SKESZ.js} +150 -415
- package/dist/{chunk-6QSERWXH.js → chunk-ZQXZ2SES.js} +24 -21
- package/dist/chunk-ZX57KSEQ.js +39 -0
- package/dist/{chunk-I3E7CX4H.js → chunk-ZZK56BLP.js} +5 -3
- package/dist/files.json +664 -368
- package/dist/packages/naysayer/constitution/constitution.yaml +19 -0
- package/dist/packages/sdk/npm/index.js +6194 -2542
- package/dist/packages/ui/dist/assets/{elk-api-tma0MCuh.js → elk-api-CIf-0gz5.js} +2 -2
- package/dist/packages/ui/dist/assets/index-CoK_Dl0D.js +47 -0
- package/dist/packages/ui/dist/assets/index-Dw20IRhQ.css +1 -0
- package/dist/packages/ui/dist/index.html +3 -2
- package/package.json +5 -5
- package/dist/chunk-2BF2EYJV.js +0 -174
- package/dist/chunk-42EVSKME.js +0 -37
- package/dist/chunk-4BKGMUIK.js +0 -53
- package/dist/chunk-5KLGBXG5.js +0 -48
- package/dist/chunk-6BNC6EQ4.js +0 -41
- package/dist/chunk-6D2CQ5II.js +0 -41
- package/dist/chunk-7AVHLZGD.js +0 -45
- package/dist/chunk-D46WUV3T.js +0 -33
- package/dist/chunk-E36QOJMD.js +0 -47
- package/dist/chunk-FQXYPF7E.js +0 -147
- package/dist/chunk-GBRFVT63.js +0 -45
- package/dist/chunk-ICY36XCH.js +0 -34
- package/dist/chunk-J4K3KVLD.js +0 -131
- package/dist/chunk-JZU3H6UQ.js +0 -54
- package/dist/chunk-NN2ZQEB4.js +0 -38
- package/dist/chunk-PCOCACY3.js +0 -385
- package/dist/chunk-RTEYOSJY.js +0 -29
- package/dist/chunk-RUVFXE2L.js +0 -666
- package/dist/chunk-RVH5SUW5.js +0 -69
- package/dist/chunk-VN3DP4LQ.js +0 -43
- package/dist/chunk-W5BVQF44.js +0 -36
- package/dist/chunk-WVPJSRRJ.js +0 -52
- package/dist/chunk-XPTOBS2D.js +0 -48
- package/dist/packages/ui/dist/assets/index-B54fm9FQ.js +0 -29
- package/dist/packages/ui/dist/assets/index-DD_hufQz.css +0 -1
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
CriticError,
|
|
11
11
|
act,
|
|
12
12
|
checkRoundRule,
|
|
13
|
+
completeLensBatch,
|
|
13
14
|
completeLensRun,
|
|
14
15
|
gateStatus,
|
|
15
16
|
lensAnswerProblem,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
roundsUsed,
|
|
22
23
|
runCritic,
|
|
23
24
|
waitingLenses
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S4PMJU6H.js";
|
|
25
26
|
import {
|
|
26
27
|
changeFolder,
|
|
27
28
|
changeStore,
|
|
@@ -29,21 +30,23 @@ import {
|
|
|
29
30
|
phaseStage,
|
|
30
31
|
stageCommand,
|
|
31
32
|
statePhase
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IDKCWSM5.js";
|
|
33
34
|
import {
|
|
34
35
|
AiOffError,
|
|
35
36
|
HandoffRuntime,
|
|
36
37
|
RuntimeConfigError,
|
|
37
38
|
runtimeForCli
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-P32RUW3B.js";
|
|
39
40
|
import {
|
|
40
41
|
CriticQuestion,
|
|
41
42
|
LEGACY_LENSES,
|
|
42
43
|
Lens,
|
|
43
|
-
require_dist,
|
|
44
44
|
runsDirOf,
|
|
45
45
|
runsRelOf
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-Q2TECDIT.js";
|
|
47
|
+
import {
|
|
48
|
+
require_dist
|
|
49
|
+
} from "./chunk-BQGDB6ZL.js";
|
|
47
50
|
import {
|
|
48
51
|
__toESM
|
|
49
52
|
} from "./chunk-TV45EUGM.js";
|
|
@@ -107,7 +110,7 @@ function statusLine(s, change = "<change>") {
|
|
|
107
110
|
return owner;
|
|
108
111
|
if (s.humanDecides)
|
|
109
112
|
return `The ${s.gate} gate is closed (${counts}) and ${roundsUsed(s)}: a person decides now. Once a person acts on round ${s.round}'s findings, ${checkRoundRule(s.round)}.`;
|
|
110
|
-
return `The ${s.gate} gate is closed: ${counts}. Act on each with atticus finding <id> <action>.`;
|
|
113
|
+
return `The ${s.gate} gate is closed: ${counts}. Act on each with atticus finding ${change} <id> <action>.`;
|
|
111
114
|
}
|
|
112
115
|
async function runtimeOf(root, mode, deps) {
|
|
113
116
|
if (deps.runtime)
|
|
@@ -228,7 +231,7 @@ async function critic(root, changeId, o, io, deps = {}) {
|
|
|
228
231
|
io.out(`${l.lens} lens ${l.state}: ${l.reason ?? ""}`.trimEnd());
|
|
229
232
|
if (r.discarded.length)
|
|
230
233
|
io.out(`Discarded ${r.discarded.length} AI finding${r.discarded.length > 1 ? "s" : ""} without valid evidence.`);
|
|
231
|
-
io.out(statusLine(s));
|
|
234
|
+
io.out(statusLine(s, r.change));
|
|
232
235
|
return s.mayProceed ? 0 : 1;
|
|
233
236
|
}
|
|
234
237
|
function printCompleted(c, io) {
|
|
@@ -241,7 +244,7 @@ function printCompleted(c, io) {
|
|
|
241
244
|
if (c.waiting.length)
|
|
242
245
|
io.out(`${plural(c.waiting.length, "AI lens", "AI lenses")} ${c.waiting.length === 1 ? "is" : "are"} still with your assistant: ${c.waiting.map((w) => `${w.lens} (atticus handoff done ${w.runId})`).join(", ")}.`);
|
|
243
246
|
else
|
|
244
|
-
io.out(statusLine(c.status));
|
|
247
|
+
io.out(statusLine(c.status, c.change));
|
|
245
248
|
return c.waiting.length === 0;
|
|
246
249
|
}
|
|
247
250
|
async function completeCriticLens(root, run, io, o = {}) {
|
|
@@ -253,6 +256,35 @@ async function completeCriticLens(root, run, io, o = {}) {
|
|
|
253
256
|
return fail(io, e);
|
|
254
257
|
}
|
|
255
258
|
}
|
|
259
|
+
async function completeCriticBatch(root, batch, result, io, o = {}) {
|
|
260
|
+
let read;
|
|
261
|
+
try {
|
|
262
|
+
read = await completeLensBatch(root, batch, result, o.now ? { now: o.now } : {});
|
|
263
|
+
} catch (e) {
|
|
264
|
+
return fail(io, e);
|
|
265
|
+
}
|
|
266
|
+
for (const c of read) {
|
|
267
|
+
const where2 = `The ${c.lens.lens} lens of round ${c.round} at the ${c.gate} gate`;
|
|
268
|
+
io.out(c.lens.state === "ran" ? `${where2} raised ${plural(c.findings.length, "finding", "findings")}.` : `${where2} ${c.lens.state}: ${c.lens.reason ?? ""}`.trimEnd());
|
|
269
|
+
for (const d of c.discarded)
|
|
270
|
+
io.err(`Discarded: ${d.reason}`);
|
|
271
|
+
if (c.lens.state === "ran" && c.lens.reason)
|
|
272
|
+
io.out(` ${c.lens.reason}`);
|
|
273
|
+
}
|
|
274
|
+
if (batch.state !== "validated") {
|
|
275
|
+
for (const e of batch.errors)
|
|
276
|
+
io.err(e);
|
|
277
|
+
io.err(`Fix what is listed in ${runsRelOf(root)}/${batch.request.change}/${batch.runId}/${batch.request.outputPath} and run atticus handoff done ${batch.runId} again: only the lenses still out are checked. Or answer a lens alone with its own run.`);
|
|
278
|
+
}
|
|
279
|
+
const last = read.at(-1);
|
|
280
|
+
if (last) {
|
|
281
|
+
if (last.waiting.length)
|
|
282
|
+
io.out(`${plural(last.waiting.length, "AI lens", "AI lenses")} ${last.waiting.length === 1 ? "is" : "are"} still with your assistant: ${last.waiting.map((w) => w.lens).join(", ")}.`);
|
|
283
|
+
else
|
|
284
|
+
io.out(statusLine(last.status, last.change));
|
|
285
|
+
}
|
|
286
|
+
return batch.state === "validated" && read.every((c) => c.lens.state === "ran") ? 0 : 1;
|
|
287
|
+
}
|
|
256
288
|
async function resumeLenses(root, changeId, o, io, deps) {
|
|
257
289
|
try {
|
|
258
290
|
await changeStore(root).read(changeId).catch((e) => {
|
|
@@ -285,7 +317,7 @@ async function resumeLenses(root, changeId, o, io, deps) {
|
|
|
285
317
|
for (const gate of gates) {
|
|
286
318
|
const s = await gateStatus(root, changeId, gate);
|
|
287
319
|
if (!statusPrinted && (any || s.round !== void 0))
|
|
288
|
-
io.out(statusLine(s));
|
|
320
|
+
io.out(statusLine(s, changeId));
|
|
289
321
|
mayProceed = s.mayProceed && s.round !== void 0;
|
|
290
322
|
}
|
|
291
323
|
return mayProceed ? 0 : 1;
|
|
@@ -342,7 +374,7 @@ async function findings(root, changeId, o, io) {
|
|
|
342
374
|
f.finding.summary
|
|
343
375
|
])))
|
|
344
376
|
io.out(` ${line}`);
|
|
345
|
-
io.out(statusLine(s));
|
|
377
|
+
io.out(statusLine(s, changeId));
|
|
346
378
|
}
|
|
347
379
|
return 0;
|
|
348
380
|
}
|
|
@@ -370,6 +402,13 @@ async function findingAction(root, changeId, findingId, action, o, io, deps = {}
|
|
|
370
402
|
...deps.now ? { now: deps.now } : {}
|
|
371
403
|
});
|
|
372
404
|
io.out(r.message);
|
|
405
|
+
if (r.finding.state !== "open") {
|
|
406
|
+
const { retireChangeEscalations } = await import("./chunk-NY2XSR5K.js");
|
|
407
|
+
const at = deps.now ?? (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
408
|
+
const stages = await retireChangeEscalations(root, changeId, at).catch(() => []);
|
|
409
|
+
if (stages.length)
|
|
410
|
+
io.out(`Retired the ${stages.join(" and ")} stage's question about it: the finding is settled.`);
|
|
411
|
+
}
|
|
373
412
|
return 0;
|
|
374
413
|
} catch (e) {
|
|
375
414
|
return fail(io, e);
|
|
@@ -409,6 +448,7 @@ export {
|
|
|
409
448
|
statusLine,
|
|
410
449
|
critic,
|
|
411
450
|
completeCriticLens,
|
|
451
|
+
completeCriticBatch,
|
|
412
452
|
findings,
|
|
413
453
|
findingAction,
|
|
414
454
|
criticStats
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { createRequire as __atticusCreateRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __atticusFileURLToPath } from "node:url";
|
|
3
|
+
var require = __atticusCreateRequire(import.meta.url);
|
|
4
|
+
var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
5
|
+
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
|
+
import {
|
|
7
|
+
FRESH_STATES,
|
|
8
|
+
estateFreshness
|
|
9
|
+
} from "./chunk-SQV37XO2.js";
|
|
10
|
+
import "./chunk-OWNCM4ZN.js";
|
|
11
|
+
import "./chunk-T6DQR5TV.js";
|
|
12
|
+
import "./chunk-WXFLMQSR.js";
|
|
13
|
+
import {
|
|
14
|
+
loadReadPlan,
|
|
15
|
+
readCostOf
|
|
16
|
+
} from "./chunk-TYQBFTBR.js";
|
|
17
|
+
import "./chunk-2F4CYZKJ.js";
|
|
18
|
+
import "./chunk-LO6P2VYG.js";
|
|
19
|
+
import "./chunk-SFUP7TTO.js";
|
|
20
|
+
import "./chunk-7FTTA3HD.js";
|
|
21
|
+
import "./chunk-ZQ3ON2VQ.js";
|
|
22
|
+
import "./chunk-3G4YI4ZU.js";
|
|
23
|
+
import "./chunk-VOGCSYOI.js";
|
|
24
|
+
import {
|
|
25
|
+
componentRenames,
|
|
26
|
+
estateFacts,
|
|
27
|
+
isPrototypeRepo,
|
|
28
|
+
joinReposOf,
|
|
29
|
+
outsideSystems
|
|
30
|
+
} from "./chunk-J2JAKCIW.js";
|
|
31
|
+
import "./chunk-745DAZ4L.js";
|
|
32
|
+
import "./chunk-CXJ6FUKN.js";
|
|
33
|
+
import "./chunk-QKUJMING.js";
|
|
34
|
+
import "./chunk-6ZGLAACW.js";
|
|
35
|
+
import "./chunk-CQDGOPGH.js";
|
|
36
|
+
import "./chunk-3NFFJL5D.js";
|
|
37
|
+
import "./chunk-F3P7N7SF.js";
|
|
38
|
+
import "./chunk-PKBHS4AA.js";
|
|
39
|
+
import "./chunk-P32RUW3B.js";
|
|
40
|
+
import "./chunk-QA4O2GGC.js";
|
|
41
|
+
import {
|
|
42
|
+
HOSTS_STEP,
|
|
43
|
+
LINK_QUESTION_STEPS,
|
|
44
|
+
TARGETS_STEP_ID,
|
|
45
|
+
TERM_STEP,
|
|
46
|
+
TOPICS_STEP_ID,
|
|
47
|
+
factsDirOf,
|
|
48
|
+
factsFileOf,
|
|
49
|
+
helperOn,
|
|
50
|
+
isGuessedJoin,
|
|
51
|
+
joinConventions,
|
|
52
|
+
joinFacts,
|
|
53
|
+
joinGuessesOf,
|
|
54
|
+
listQuestions,
|
|
55
|
+
loadOrgPack,
|
|
56
|
+
orgPackDirOf,
|
|
57
|
+
parseFacts
|
|
58
|
+
} from "./chunk-Q2TECDIT.js";
|
|
59
|
+
import "./chunk-TUULXQRW.js";
|
|
60
|
+
import {
|
|
61
|
+
require_dist
|
|
62
|
+
} from "./chunk-BQGDB6ZL.js";
|
|
63
|
+
import {
|
|
64
|
+
__toESM
|
|
65
|
+
} from "./chunk-TV45EUGM.js";
|
|
66
|
+
|
|
67
|
+
// packages/cli/dist/doctor-counts.js
|
|
68
|
+
var import_yaml = __toESM(require_dist(), 1);
|
|
69
|
+
import { readdir, readFile } from "node:fs/promises";
|
|
70
|
+
import { join } from "node:path";
|
|
71
|
+
var QUESTION_STEPS = /* @__PURE__ */ new Set([
|
|
72
|
+
"map",
|
|
73
|
+
"scan-survey",
|
|
74
|
+
"scan-verify",
|
|
75
|
+
"spec-draft",
|
|
76
|
+
"spec-check",
|
|
77
|
+
HOSTS_STEP,
|
|
78
|
+
TARGETS_STEP_ID,
|
|
79
|
+
TOPICS_STEP_ID,
|
|
80
|
+
TERM_STEP,
|
|
81
|
+
...LINK_QUESTION_STEPS,
|
|
82
|
+
// The planner's, a change's stages (planner/src/stages) and its gaps; the knowledge conflicts.
|
|
83
|
+
"change-feature",
|
|
84
|
+
"change-architecture",
|
|
85
|
+
"change-stories",
|
|
86
|
+
"change-small",
|
|
87
|
+
"context-gap",
|
|
88
|
+
"knowledge-conflict"
|
|
89
|
+
]);
|
|
90
|
+
var OTHER_STEP = "other";
|
|
91
|
+
var bump = (m, k, n = 1) => {
|
|
92
|
+
m[k] = (m[k] ?? 0) + n;
|
|
93
|
+
};
|
|
94
|
+
var sorted = (m) => Object.fromEntries(Object.entries(m).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0));
|
|
95
|
+
var LISTENS = /^(subscribe|consume|listen)$/i;
|
|
96
|
+
async function doctorCounts(root, o = {}) {
|
|
97
|
+
let problems = 0;
|
|
98
|
+
const qs = await listQuestions(root, { state: "open" }).catch(() => {
|
|
99
|
+
problems++;
|
|
100
|
+
return { questions: [], problems: [] };
|
|
101
|
+
});
|
|
102
|
+
problems += qs.problems.length;
|
|
103
|
+
const byKind = {};
|
|
104
|
+
for (const q of qs.questions)
|
|
105
|
+
bump(byKind, QUESTION_STEPS.has(q.askedBy.step) ? q.askedBy.step : OTHER_STEP);
|
|
106
|
+
const targets = {
|
|
107
|
+
open: 0,
|
|
108
|
+
calls: 0,
|
|
109
|
+
alone: 0,
|
|
110
|
+
groups: 0,
|
|
111
|
+
inGroups: 0,
|
|
112
|
+
bySize: {}
|
|
113
|
+
};
|
|
114
|
+
for (const q of qs.questions) {
|
|
115
|
+
if (q.askedBy.step !== TARGETS_STEP_ID)
|
|
116
|
+
continue;
|
|
117
|
+
const n = Math.max(1, new Set(q.evidence).size);
|
|
118
|
+
targets.open++;
|
|
119
|
+
targets.calls += n;
|
|
120
|
+
if (n === 1)
|
|
121
|
+
targets.alone++;
|
|
122
|
+
else {
|
|
123
|
+
targets.groups++;
|
|
124
|
+
targets.inGroups += n;
|
|
125
|
+
}
|
|
126
|
+
bump(targets.bySize, n === 1 ? "1" : n <= 4 ? "2-4" : n <= 9 ? "5-9" : "10+");
|
|
127
|
+
}
|
|
128
|
+
const fresh = await estateFreshness(root, o.git ? { git: o.git } : {}).catch(() => {
|
|
129
|
+
problems++;
|
|
130
|
+
return { repos: [], problems: [] };
|
|
131
|
+
});
|
|
132
|
+
problems += fresh.problems.length;
|
|
133
|
+
const byState = Object.fromEntries(FRESH_STATES.map((s) => [s, 0]));
|
|
134
|
+
for (const r of fresh.repos)
|
|
135
|
+
byState[r.state]++;
|
|
136
|
+
const total = fresh.repos.length;
|
|
137
|
+
const facts = { accepted: 0, rejected: 0, notVerified: 0, filesNotRead: 0 };
|
|
138
|
+
const dir = factsDirOf(root);
|
|
139
|
+
const names = (await readdir(dir).catch(() => [])).sort();
|
|
140
|
+
const read = async (n) => readFile(join(dir, n), "utf8").catch(() => void 0);
|
|
141
|
+
for (const n of names) {
|
|
142
|
+
const of = factsFileOf(n);
|
|
143
|
+
if (!of)
|
|
144
|
+
continue;
|
|
145
|
+
const text = await read(n);
|
|
146
|
+
if (text === void 0) {
|
|
147
|
+
problems++;
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
if (of.facts) {
|
|
151
|
+
const p = parseFacts(text);
|
|
152
|
+
if (!p.ok) {
|
|
153
|
+
problems++;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
for (const f of p.facts)
|
|
157
|
+
if (f.verified === "none")
|
|
158
|
+
facts.notVerified++;
|
|
159
|
+
else
|
|
160
|
+
facts.accepted++;
|
|
161
|
+
} else if (n.endsWith(".rejected.jsonl"))
|
|
162
|
+
facts.rejected += text.split("\n").filter((l) => l.trim()).length;
|
|
163
|
+
else if (n.endsWith(".verify.yaml"))
|
|
164
|
+
try {
|
|
165
|
+
const v = (0, import_yaml.parse)(text);
|
|
166
|
+
const u = v?.coverage?.unknown;
|
|
167
|
+
facts.filesNotRead += Array.isArray(u) ? u.length : typeof u === "number" ? u : 0;
|
|
168
|
+
} catch {
|
|
169
|
+
problems++;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const tokens = { reported: 0, reports: 0, repos: 0 };
|
|
173
|
+
for (const r of fresh.repos) {
|
|
174
|
+
const plan = await Promise.resolve().then(() => loadReadPlan(root, r.repo)).catch(() => {
|
|
175
|
+
problems++;
|
|
176
|
+
return void 0;
|
|
177
|
+
});
|
|
178
|
+
const cost = plan ? readCostOf(plan).reported : void 0;
|
|
179
|
+
if (!cost)
|
|
180
|
+
continue;
|
|
181
|
+
tokens.repos++;
|
|
182
|
+
tokens.reports += cost.reports;
|
|
183
|
+
tokens.reported += cost.tokens ?? 0;
|
|
184
|
+
}
|
|
185
|
+
const links = {
|
|
186
|
+
verified: 0,
|
|
187
|
+
inferred: 0,
|
|
188
|
+
inferredBy: {},
|
|
189
|
+
asked: 0,
|
|
190
|
+
askedBy: {},
|
|
191
|
+
outside: 0,
|
|
192
|
+
unresolved: 0,
|
|
193
|
+
unresolvedBy: {}
|
|
194
|
+
};
|
|
195
|
+
let op;
|
|
196
|
+
try {
|
|
197
|
+
op = await loadOrgPack(orgPackDirOf(root));
|
|
198
|
+
} catch {
|
|
199
|
+
if (total)
|
|
200
|
+
problems++;
|
|
201
|
+
}
|
|
202
|
+
if (op)
|
|
203
|
+
try {
|
|
204
|
+
Object.assign(links, await linkCounts(root, op));
|
|
205
|
+
} catch {
|
|
206
|
+
problems++;
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
questions: {
|
|
210
|
+
open: qs.questions.length,
|
|
211
|
+
byKind: sorted(byKind),
|
|
212
|
+
targets: { ...targets, bySize: bySizeOrder(targets.bySize) }
|
|
213
|
+
},
|
|
214
|
+
links,
|
|
215
|
+
repos: {
|
|
216
|
+
total,
|
|
217
|
+
read: total - byState["not-read"],
|
|
218
|
+
unread: byState["not-read"],
|
|
219
|
+
stale: byState.stale,
|
|
220
|
+
byState
|
|
221
|
+
},
|
|
222
|
+
facts,
|
|
223
|
+
tokens,
|
|
224
|
+
problems
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
async function linkCounts(root, op) {
|
|
228
|
+
const estate = await estateFacts(root, op, "");
|
|
229
|
+
const repos = estate.repos.filter((x) => !isPrototypeRepo(op, x.repo));
|
|
230
|
+
const join2 = joinFacts({
|
|
231
|
+
repos: joinReposOf(op, repos, componentRenames(repos, op)),
|
|
232
|
+
...Object.keys(estate.targets).length ? { targets: estate.targets } : {},
|
|
233
|
+
...Object.keys(estate.pairs).length ? { pairs: estate.pairs } : {},
|
|
234
|
+
...Object.keys(estate.aiTargets).length ? { aiTargets: estate.aiTargets } : {},
|
|
235
|
+
outside: outsideSystems(op),
|
|
236
|
+
...joinConventions(op),
|
|
237
|
+
walkGateways: helperOn("gateway-walk"),
|
|
238
|
+
// Why each call was left, in the join's own words, for unresolvedBy.
|
|
239
|
+
explain: true
|
|
240
|
+
});
|
|
241
|
+
const factOf = /* @__PURE__ */ new Map();
|
|
242
|
+
for (const r of repos)
|
|
243
|
+
for (const f of r.facts)
|
|
244
|
+
factOf.set(`${r.repo}\0${f.id}`, f);
|
|
245
|
+
const key = (e) => `${e.repo}\0${e.fact}`;
|
|
246
|
+
const declared = (e) => factOf.get(key(e))?.conf === "declared";
|
|
247
|
+
const out = {
|
|
248
|
+
verified: 0,
|
|
249
|
+
inferred: 0,
|
|
250
|
+
inferredBy: {},
|
|
251
|
+
asked: 0,
|
|
252
|
+
askedBy: {},
|
|
253
|
+
outside: 0,
|
|
254
|
+
unresolved: 0,
|
|
255
|
+
unresolvedBy: {}
|
|
256
|
+
};
|
|
257
|
+
const answered = /* @__PURE__ */ new Set();
|
|
258
|
+
const why = new Map((join2.left ?? []).map((l) => [key(l.call), l.reason]));
|
|
259
|
+
for (const j of join2.joins) {
|
|
260
|
+
answered.add(key(j.call));
|
|
261
|
+
if (!isGuessedJoin(j) && declared(j.call) && declared(j.entry))
|
|
262
|
+
out.verified++;
|
|
263
|
+
else {
|
|
264
|
+
out.inferred++;
|
|
265
|
+
const flags = joinGuessesOf(j);
|
|
266
|
+
if (flags.length)
|
|
267
|
+
for (const f of flags)
|
|
268
|
+
bump(out.inferredBy, f);
|
|
269
|
+
else
|
|
270
|
+
bump(out.inferredBy, "one-end-inferred");
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
for (const a of join2.asks) {
|
|
274
|
+
if (answered.has(key(a.call)))
|
|
275
|
+
continue;
|
|
276
|
+
answered.add(key(a.call));
|
|
277
|
+
out.asked++;
|
|
278
|
+
bump(out.askedBy, a.reason);
|
|
279
|
+
}
|
|
280
|
+
for (const x of join2.outside ?? []) {
|
|
281
|
+
if (answered.has(key(x.call)))
|
|
282
|
+
continue;
|
|
283
|
+
answered.add(key(x.call));
|
|
284
|
+
out.outside++;
|
|
285
|
+
}
|
|
286
|
+
for (const r of repos)
|
|
287
|
+
for (const f of r.facts) {
|
|
288
|
+
if (f.kind !== "call" || LISTENS.test(f.method ?? ""))
|
|
289
|
+
continue;
|
|
290
|
+
const k = `${r.repo}\0${f.id}`;
|
|
291
|
+
if (answered.has(k))
|
|
292
|
+
continue;
|
|
293
|
+
out.unresolved++;
|
|
294
|
+
bump(out.unresolvedBy, why.get(k) ?? "other");
|
|
295
|
+
}
|
|
296
|
+
out.inferredBy = sorted(out.inferredBy);
|
|
297
|
+
out.askedBy = sorted(out.askedBy);
|
|
298
|
+
out.unresolvedBy = sorted(out.unresolvedBy);
|
|
299
|
+
return out;
|
|
300
|
+
}
|
|
301
|
+
var kv = (m) => Object.entries(m).filter(([, n]) => n > 0).map(([k, n]) => `${k} ${n}`).join(", ");
|
|
302
|
+
var SIZES = ["1", "2-4", "5-9", "10+"];
|
|
303
|
+
var bySizeOrder = (m) => Object.fromEntries(SIZES.filter((k) => m[k]).map((k) => [k, m[k]]));
|
|
304
|
+
function countsLines(c) {
|
|
305
|
+
const by = kv(c.questions.byKind);
|
|
306
|
+
const inferred = kv(c.links.inferredBy);
|
|
307
|
+
const states = kv(c.repos.byState);
|
|
308
|
+
const askedBy = kv(c.links.askedBy);
|
|
309
|
+
const unresolvedBy = kv(c.links.unresolvedBy);
|
|
310
|
+
const t = c.questions.targets;
|
|
311
|
+
const sizes = kv(t.bySize);
|
|
312
|
+
return [
|
|
313
|
+
`Questions: ${c.questions.open} open${by ? ` (${by})` : ""}`,
|
|
314
|
+
...t.open ? [
|
|
315
|
+
`Target questions: ${t.open} open, covering ${t.calls} calls: ${t.alone} asked alone, ${t.groups} groups holding ${t.inGroups}${sizes ? ` (by calls each: ${sizes})` : ""}`
|
|
316
|
+
] : [],
|
|
317
|
+
`Links: ${c.links.verified} verified, ${c.links.inferred} inferred${inferred ? ` (${inferred})` : ""}, ${c.links.asked} asked, ${c.links.outside} to outside systems, ${c.links.unresolved} unresolved calls`,
|
|
318
|
+
...askedBy || unresolvedBy ? [
|
|
319
|
+
`Calls ${[askedBy ? `asked by why: ${askedBy}` : "", unresolvedBy ? `unresolved by why: ${unresolvedBy}` : ""].filter(Boolean).join("; ")}`
|
|
320
|
+
] : [],
|
|
321
|
+
`Repos: ${c.repos.total} in all, ${c.repos.read} read, ${c.repos.unread} unread, ${c.repos.stale} stale${states ? ` (${states})` : ""}`,
|
|
322
|
+
`Facts: ${c.facts.accepted} accepted, ${c.facts.rejected} rejected, ${c.facts.notVerified} not verified; ${c.facts.filesNotRead} source files not read`,
|
|
323
|
+
`Tokens reported: ${c.tokens.reported} tokens over ${c.tokens.reports} reports for ${c.tokens.repos} repos`,
|
|
324
|
+
"Counts and flags only: nothing here names a repo, system, host or file, so it is safe to paste."
|
|
325
|
+
];
|
|
326
|
+
}
|
|
327
|
+
async function doctorCountsCommand(root, o, io, deps = {}) {
|
|
328
|
+
const { problems, ...c } = await doctorCounts(root, deps);
|
|
329
|
+
if (o.json)
|
|
330
|
+
io.out(JSON.stringify({ ...c, problems }, null, 2));
|
|
331
|
+
else {
|
|
332
|
+
for (const l of countsLines(c))
|
|
333
|
+
io.out(l);
|
|
334
|
+
if (problems)
|
|
335
|
+
io.out(`${problems} file${problems === 1 ? "" : "s"} didn't read; atticus doctor and atticus estate fresh say which.`);
|
|
336
|
+
}
|
|
337
|
+
return 0;
|
|
338
|
+
}
|
|
339
|
+
export {
|
|
340
|
+
OTHER_STEP,
|
|
341
|
+
QUESTION_STEPS,
|
|
342
|
+
countsLines,
|
|
343
|
+
doctorCounts,
|
|
344
|
+
doctorCountsCommand
|
|
345
|
+
};
|