@maycombhq/atticus 2.0.0-beta.2 → 2.0.0-beta.21
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-265LWMOA.js +91 -0
- package/dist/chunk-26WBY34Y.js +37 -0
- package/dist/{chunk-UBBC2XSG.js → chunk-26Z7OGQW.js} +518 -93
- package/dist/chunk-2D7PWSOK.js +172 -0
- package/dist/{chunk-JCZIKA4C.js → chunk-2HH3UCZM.js} +4 -4
- package/dist/{chunk-GDLULHTC.js → chunk-2HTEMYTB.js} +12 -26
- package/dist/chunk-2UCRFXFZ.js +130 -0
- package/dist/{chunk-MVZVGYXH.js → chunk-2V2ZPQQU.js} +81 -13
- package/dist/{chunk-BOHJZTEQ.js → chunk-36RY7ZXM.js} +130 -71
- package/dist/{chunk-I3E7CX4H.js → chunk-37WE3LS2.js} +3 -3
- package/dist/{chunk-IPKHE5D6.js → chunk-3AQ2R5NL.js} +1520 -871
- package/dist/chunk-3G6S7LAA.js +43 -0
- package/dist/chunk-3J5I7ZOU.js +58 -0
- package/dist/{chunk-65NYPGRC.js → chunk-3LZ6P5EP.js} +1 -1
- package/dist/chunk-3SSTNB4E.js +191 -0
- package/dist/chunk-3TD6S4TC.js +49 -0
- package/dist/{chunk-3C7EYRFZ.js → chunk-3UTYPHN3.js} +1 -1
- package/dist/{chunk-G2B4ZQGH.js → chunk-3WON4G3M.js} +2 -2
- package/dist/{chunk-S3QNRWYR.js → chunk-42EPP7OB.js} +12 -12
- package/dist/chunk-455SYIIE.js +113 -0
- package/dist/{chunk-YISXLPHN.js → chunk-4B6BT75O.js} +166 -23
- package/dist/{chunk-C6EKFH7J.js → chunk-4CLK2RJO.js} +7 -7
- package/dist/chunk-4CYTJ5TZ.js +38 -0
- package/dist/{chunk-EYWIDJFU.js → chunk-4D62IZII.js} +5 -5
- package/dist/chunk-4FOAYLI4.js +328 -0
- package/dist/{chunk-7JUKDRSZ.js → chunk-4KNOJC6J.js} +294 -215
- package/dist/{chunk-YMZ3TNYB.js → chunk-4PYC2UGC.js} +2 -2
- package/dist/{chunk-27NKUS3X.js → chunk-4SLBCEPD.js} +2104 -726
- package/dist/chunk-4TKVU2I2.js +122 -0
- package/dist/{chunk-RUVFXE2L.js → chunk-4WXRPQDE.js} +448 -47
- package/dist/{chunk-7ZUIMTOU.js → chunk-5CMPVC3N.js} +24 -24
- package/dist/chunk-5G7ILBUG.js +66 -0
- package/dist/{chunk-HFQCFSJR.js → chunk-5PV7S2ZP.js} +3 -3
- package/dist/{chunk-FITWGOJ2.js → chunk-5QUOPNLN.js} +4 -4
- package/dist/{chunk-Z6LF7HQN.js → chunk-5TDRBOAV.js} +5 -5
- package/dist/{chunk-T6AIP7H5.js → chunk-5WERBKLE.js} +199 -63
- package/dist/{chunk-XPCM366L.js → chunk-62DLJSLV.js} +8 -8
- package/dist/{chunk-L24C55VN.js → chunk-64AADMTW.js} +99 -25
- package/dist/{chunk-K65BJIMT.js → chunk-67BP7HXL.js} +17 -17
- package/dist/chunk-6DQYZU2W.js +379 -0
- package/dist/{chunk-EDS2L2LD.js → chunk-6EXDI5GI.js} +52 -26
- package/dist/chunk-6FNAKCET.js +38 -0
- package/dist/{chunk-6IU67AEK.js → chunk-75ASLHBT.js} +21 -15
- package/dist/{chunk-A3GY6SOA.js → chunk-75ZOZFGH.js} +18 -18
- package/dist/{chunk-MGYZM27B.js → chunk-77O633L5.js} +49 -23
- package/dist/{chunk-GQ4N4WKF.js → chunk-7AB6OWTV.js} +3 -3
- package/dist/{chunk-M766ZJ6W.js → chunk-7CZHUZBL.js} +25 -25
- package/dist/{chunk-A7UPUQFY.js → chunk-7FHNFCHK.js} +643 -124
- package/dist/chunk-7FUIVIBG.js +415 -0
- package/dist/{chunk-6QSERWXH.js → chunk-7QPCGTPS.js} +21 -21
- package/dist/{chunk-LR3R6Z2A.js → chunk-A2G72UI4.js} +7 -7
- package/dist/{chunk-I4JRCD6M.js → chunk-AE4P57KK.js} +23 -17
- package/dist/{chunk-AVJDSJ2F.js → chunk-AHW3RY3X.js} +7 -7
- package/dist/chunk-AM6FP6JW.js +43 -0
- package/dist/{chunk-CSZ4C5N6.js → chunk-AOCWFA7T.js} +93 -10
- package/dist/{chunk-EPTBZ3GP.js → chunk-API5TOUB.js} +1 -1
- package/dist/{chunk-652QWTLZ.js → chunk-AZDITBCT.js} +3 -3
- package/dist/{chunk-DPUYDDQG.js → chunk-BA2HUMDN.js} +25 -3
- package/dist/chunk-BA3U7ALS.js +99 -0
- package/dist/{chunk-HVUPKCGJ.js → chunk-BC6KKZ67.js} +5 -5
- package/dist/{chunk-CKSITVS4.js → chunk-BEPCKDCP.js} +2554 -722
- package/dist/{chunk-3ALD2W2A.js → chunk-BPPU3PW7.js} +4 -4
- package/dist/{chunk-QRAOANID.js → chunk-BVWWPBKD.js} +21 -21
- package/dist/{chunk-ZDPAS56H.js → chunk-BXBCMGIQ.js} +7 -1
- package/dist/chunk-BXZ4PKIT.js +233 -0
- package/dist/chunk-C7CEK3KW.js +247 -0
- package/dist/chunk-CFH3QH26.js +29 -0
- package/dist/chunk-CG6CULP6.js +170 -0
- package/dist/chunk-CLD4RVTA.js +45 -0
- package/dist/{chunk-DKJA76CJ.js → chunk-CNPY4NTZ.js} +13 -13
- package/dist/chunk-CNU5Q2D5.js +575 -0
- package/dist/{chunk-T2UYZSCQ.js → chunk-COYN3UAN.js} +126 -23
- package/dist/{chunk-23W7VWKR.js → chunk-CPK7QSBG.js} +1360 -113
- package/dist/{chunk-4AK7IBVP.js → chunk-D2WSW4GU.js} +1 -1
- package/dist/{chunk-ABWHYWNI.js → chunk-D57MFJPP.js} +3 -3
- package/dist/chunk-D5KV5PSK.js +45 -0
- package/dist/chunk-D5MASS4I.js +48 -0
- package/dist/{chunk-7EOBHUMC.js → chunk-DCWN3HFV.js} +2 -2
- package/dist/{chunk-QSXK2RGH.js → chunk-DDJPM5YX.js} +2 -2
- package/dist/chunk-DN4A2Q2O.js +57 -0
- package/dist/{chunk-IHMLFRVV.js → chunk-DUPZPDCJ.js} +58 -16
- package/dist/{chunk-PRPPGYZG.js → chunk-E2VXBSIR.js} +4 -4
- package/dist/chunk-E57AOFYN.js +32 -0
- package/dist/{chunk-UGLN7QHV.js → chunk-ECLXZWAG.js} +12 -12
- package/dist/{chunk-5WG5YP4T.js → chunk-EDZ45WIR.js} +14 -14
- package/dist/chunk-EFCQSMXB.js +37 -0
- package/dist/{chunk-2ANOROX3.js → chunk-EZIN5E5B.js} +8 -8
- package/dist/{chunk-BWZ77RQT.js → chunk-F6H2RJ3N.js} +1 -1
- package/dist/{chunk-OLQJTJJU.js → chunk-FAJDKNSD.js} +7 -3
- package/dist/chunk-FGAGWYZB.js +47 -0
- package/dist/{chunk-4WBVUHXN.js → chunk-FLVZFTLQ.js} +18 -18
- package/dist/chunk-FQ6WH6PB.js +140 -0
- package/dist/{chunk-T6XQL73F.js → chunk-FRHD22WM.js} +61 -23
- package/dist/{chunk-XAKWMCXI.js → chunk-FVMPFCDS.js} +4 -4
- package/dist/{chunk-B2WLAWNJ.js → chunk-FY3QIRTL.js} +3 -3
- package/dist/{chunk-CPA6HPVR.js → chunk-FYBF5MB2.js} +15 -11
- package/dist/{chunk-V2YTAIQO.js → chunk-G5YJBNDZ.js} +21 -6
- package/dist/chunk-G6IQYM25.js +339 -0
- package/dist/chunk-G6X4YL4D.js +161 -0
- package/dist/{chunk-SJRGMG6A.js → chunk-GC2VK3JT.js} +25 -25
- package/dist/{chunk-SP2I63OO.js → chunk-GCS3FZOB.js} +77 -3
- package/dist/{chunk-6TACQN3N.js → chunk-GDZB57IU.js} +5 -5
- package/dist/chunk-GIFMBCTW.js +221 -0
- package/dist/{chunk-YY6ZQQBP.js → chunk-GK4PYVEC.js} +18 -8
- package/dist/{chunk-TDD55CJH.js → chunk-GNWAOVFQ.js} +6 -5
- package/dist/chunk-GS76RXQE.js +226 -0
- package/dist/{chunk-YYQN46FY.js → chunk-GSGIZ2OO.js} +23 -23
- package/dist/chunk-GUYL7RMK.js +60 -0
- package/dist/chunk-GX74YWR7.js +321 -0
- package/dist/chunk-HE3HRDNZ.js +122 -0
- package/dist/{chunk-AIOQPLA5.js → chunk-HGHRSF3E.js} +30 -12
- package/dist/{chunk-2RMYG36Q.js → chunk-HK3VOHIE.js} +198 -336
- package/dist/{chunk-QZSX3F7C.js → chunk-HS4BGB4G.js} +24 -22
- package/dist/{chunk-XY3P7JW7.js → chunk-HSZMPH5T.js} +834 -149
- package/dist/{chunk-L6SGQIR3.js → chunk-HWD4JPU7.js} +4 -2
- package/dist/{chunk-PCVDV3UZ.js → chunk-HXXP2NTE.js} +6 -6
- package/dist/{chunk-AA6YULYB.js → chunk-I2A3Z5AK.js} +7 -7
- package/dist/{chunk-N7IXEHK3.js → chunk-ICHDSWEY.js} +7 -7
- package/dist/chunk-IFFRGC3N.js +31 -0
- package/dist/{chunk-4BN53TG3.js → chunk-IFHDV6KQ.js} +31 -23
- package/dist/chunk-J2O4LFVI.js +80 -0
- package/dist/chunk-J5AAZ6OJ.js +161 -0
- package/dist/{chunk-ZMFPW66A.js → chunk-JAABT3DA.js} +3 -3
- package/dist/chunk-JITJP64K.js +34 -0
- package/dist/chunk-JKIGL3XQ.js +162 -0
- package/dist/chunk-JRVNXLZP.js +615 -0
- package/dist/chunk-JRXHON4E.js +41 -0
- package/dist/{chunk-DHPACDG7.js → chunk-JS6WMC3J.js} +8 -8
- package/dist/chunk-JU4QNJSR.js +62 -0
- package/dist/{chunk-PAMPPUR6.js → chunk-JYMIB5XY.js} +1697 -172
- package/dist/{chunk-RRTKKSLQ.js → chunk-JYTIHTIK.js} +8 -6
- package/dist/{chunk-3HI6Z55Y.js → chunk-K332XW7K.js} +324 -39
- package/dist/{chunk-GLUX4EEP.js → chunk-K6JB6XTX.js} +9 -9
- package/dist/chunk-KDAHXQIE.js +294 -0
- package/dist/chunk-KYZMRSPS.js +93 -0
- package/dist/chunk-L4CESDPB.js +22 -0
- package/dist/{chunk-NXFPS2LR.js → chunk-LEBR5NHW.js} +14 -14
- package/dist/chunk-LIJJCBQI.js +223 -0
- package/dist/{chunk-DE76JROX.js → chunk-LIRVU3HW.js} +16 -16
- package/dist/{chunk-JMSCMUCA.js → chunk-LN77DXBM.js} +145 -21
- package/dist/{chunk-JIITQXFB.js → chunk-LNWEWYCM.js} +2969 -788
- package/dist/{chunk-TANFV3MZ.js → chunk-LO3BLMVG.js} +3 -3
- package/dist/chunk-LPV6T362.js +250 -0
- package/dist/{chunk-2VHF7OXM.js → chunk-LQH4P45K.js} +1 -1
- package/dist/chunk-LU4MQVAL.js +41 -0
- package/dist/chunk-LWDNKE4X.js +273 -0
- package/dist/chunk-M4H2UG4R.js +218 -0
- package/dist/{chunk-6BVONWJ7.js → chunk-M6D2U3YM.js} +3 -3
- package/dist/chunk-MD7KUEJ3.js +514 -0
- package/dist/{chunk-66YVAGGM.js → chunk-MMZUN7ZO.js} +20 -20
- package/dist/chunk-MZGRDONP.js +916 -0
- package/dist/chunk-N3RUGTGV.js +39 -0
- package/dist/{chunk-JGZCG5VM.js → chunk-NCB6656Z.js} +7 -7
- package/dist/{chunk-4NDAAFQT.js → chunk-NRQ65LTQ.js} +7 -5
- package/dist/{chunk-UNM6ZOKP.js → chunk-NTAVOWYD.js} +145 -18
- package/dist/{chunk-3USYZGRF.js → chunk-NYOABJNK.js} +36 -27
- package/dist/{chunk-WVPJSRRJ.js → chunk-O4IKAIZ2.js} +24 -20
- package/dist/{chunk-D3PO4DOZ.js → chunk-ODMBPDDV.js} +51 -14
- package/dist/chunk-OKUB6RJA.js +533 -0
- package/dist/chunk-OMPENNWY.js +39 -0
- package/dist/chunk-OPQZISG3.js +25 -0
- package/dist/{chunk-5GGOLAKC.js → chunk-OV57AHCG.js} +26 -26
- package/dist/chunk-OZJ3JLYI.js +58 -0
- package/dist/{chunk-KEM4SDDP.js → chunk-P2VBXX7N.js} +11 -10
- package/dist/{chunk-S2A7YC3Q.js → chunk-PAINMSID.js} +10150 -1720
- package/dist/chunk-PKJAV25S.js +43 -0
- package/dist/{chunk-EBEW3XXQ.js → chunk-PNQLCRSS.js} +4 -4
- package/dist/{chunk-WY6PP6AA.js → chunk-PQH56YF6.js} +37 -5
- package/dist/chunk-PRTBPXYA.js +50 -0
- package/dist/{chunk-YEDDOYSC.js → chunk-PRW3HXM3.js} +2 -2
- package/dist/chunk-PRZ7KMWL.js +42 -0
- package/dist/{chunk-6M5NK3K3.js → chunk-PTQ3ZALZ.js} +42 -4
- package/dist/{chunk-5GDRCDQB.js → chunk-PUEWDYGP.js} +2 -2
- package/dist/chunk-Q26LDIUV.js +236 -0
- package/dist/{chunk-CR3MTH32.js → chunk-Q46QDDMF.js} +77 -7
- package/dist/chunk-QBNWF5ZU.js +19 -0
- package/dist/chunk-QE527XRY.js +342 -0
- package/dist/{chunk-CNUKCS2T.js → chunk-QHJJMZLX.js} +1518 -54
- package/dist/chunk-QJCJOMW3.js +425 -0
- package/dist/{chunk-VYDBJ73M.js → chunk-QKMRFNMA.js} +15 -15
- package/dist/chunk-QOOEYDNJ.js +317 -0
- package/dist/chunk-QSIDVFB7.js +45 -0
- package/dist/{chunk-R77KLRB3.js → chunk-RA33EYS4.js} +19 -18
- package/dist/{chunk-DFBCSHVT.js → chunk-RALY3E5U.js} +4 -4
- package/dist/{chunk-ZCJDOK2S.js → chunk-S2RY3BOD.js} +35 -21
- package/dist/chunk-S5LSDXV4.js +40 -0
- package/dist/chunk-SB5GRUFM.js +54 -0
- package/dist/chunk-SH27FYPF.js +150 -0
- package/dist/chunk-T74WQQGS.js +40 -0
- package/dist/{chunk-O3WI5KWW.js → chunk-TGVVUKTG.js} +2 -2
- package/dist/chunk-THN26IEF.js +48 -0
- package/dist/chunk-TJH2EUAZ.js +47 -0
- package/dist/{chunk-ZNCEKR4J.js → chunk-TQ4TG57V.js} +12 -8
- package/dist/{chunk-7FBGJFEE.js → chunk-TQTRWENN.js} +12 -12
- package/dist/{chunk-TYAID7B7.js → chunk-TSM6T6GQ.js} +23 -23
- package/dist/{chunk-DPZHZQKE.js → chunk-TW3KOSQK.js} +43 -10
- package/dist/{chunk-MC3H7736.js → chunk-TWQRPM76.js} +37 -4
- package/dist/chunk-TYD6I4CZ.js +109 -0
- package/dist/chunk-U3NBK4EU.js +420 -0
- package/dist/{chunk-6JCPI55B.js → chunk-UDXWIPCB.js} +47 -7
- package/dist/{chunk-MMOSZPWJ.js → chunk-UEVZZZU2.js} +4 -4
- package/dist/{chunk-JBTK5OP2.js → chunk-UF4UHCIG.js} +2 -2
- package/dist/{chunk-6JUBZBMW.js → chunk-UFE36WJH.js} +4 -4
- package/dist/{chunk-ONLS5QA5.js → chunk-URIKUID7.js} +12 -12
- package/dist/chunk-UYLBRRFK.js +1106 -0
- package/dist/chunk-UZACEG2C.js +515 -0
- package/dist/{chunk-7SW2QWLU.js → chunk-VAMHOHUU.js} +12 -12
- package/dist/{chunk-RZPYKDWS.js → chunk-VUVGX5L2.js} +1 -1
- package/dist/{chunk-Q4D5X7QB.js → chunk-VYOCPTUB.js} +44 -24
- package/dist/{chunk-CAQZUNOH.js → chunk-WAZEXEJH.js} +567 -3
- package/dist/chunk-WCEF7H6L.js +221 -0
- package/dist/{chunk-2DIQQJCB.js → chunk-WEOMJHPV.js} +12 -12
- package/dist/{chunk-FHH4I4ZV.js → chunk-WFU77T3A.js} +12 -6
- package/dist/chunk-WIWTJMMR.js +292 -0
- package/dist/{chunk-2BFCZ3RK.js → chunk-WNTIOBOG.js} +18 -18
- package/dist/{chunk-7WD63HU2.js → chunk-X2CUXTWU.js} +6 -6
- package/dist/chunk-X7EMBM5X.js +34 -0
- package/dist/chunk-XEQCQO66.js +33 -0
- package/dist/{chunk-F7HYOUFF.js → chunk-XG4WJHLQ.js} +20 -4
- package/dist/{chunk-EFHQ3TWP.js → chunk-XOL3GFW2.js} +171 -31
- package/dist/{chunk-NE2W3OO7.js → chunk-XQ3YZ4QW.js} +22 -22
- package/dist/{chunk-CEXSU4S6.js → chunk-Y6K3CJBU.js} +723 -85
- package/dist/{chunk-4RS5KZQD.js → chunk-YAH5IQAL.js} +5 -5
- package/dist/{chunk-64EQYWCA.js → chunk-YBOVNMHC.js} +51 -14
- package/dist/chunk-YF5DZCPN.js +1212 -0
- package/dist/chunk-YIGBJNH4.js +37 -0
- package/dist/{chunk-BKVWTZ6A.js → chunk-YJ3TBOTK.js} +25 -25
- package/dist/{chunk-Q5AMFEWD.js → chunk-YKTE2RU3.js} +2 -2
- package/dist/{chunk-7EKXJZ2Y.js → chunk-YO2PKTXT.js} +296 -37
- package/dist/{chunk-6J5OKA4Y.js → chunk-YTTNTQOX.js} +15 -15
- package/dist/{chunk-OT2O76OS.js → chunk-YWAKDNMH.js} +183 -33
- package/dist/{chunk-R6XF6UR3.js → chunk-YZDZOEV4.js} +4 -4
- package/dist/chunk-Z3QFH7YG.js +17 -0
- package/dist/{chunk-W5BVQF44.js → chunk-Z6VLC5X4.js} +17 -17
- package/dist/{chunk-HLJAXMM4.js → chunk-ZFQMMU5Y.js} +2 -2
- package/dist/{chunk-W3BQAZ3Q.js → chunk-ZKYRDV7A.js} +12 -12
- package/dist/{chunk-ZMAINWBW.js → chunk-ZLS6PU2O.js} +3 -3
- package/dist/{chunk-ZVM6AKKM.js → chunk-ZOSD4FXV.js} +3 -3
- package/dist/chunk-ZPDDEVQX.js +47 -0
- package/dist/{chunk-TXLH6WHQ.js → chunk-ZQLRCA2V.js} +11 -11
- package/dist/{chunk-HITVBIJS.js → chunk-ZX7235KR.js} +128 -54
- package/dist/{chunk-GT4I4ZWM.js → chunk-ZZFHLRQW.js} +18 -16
- package/dist/files.json +636 -364
- package/dist/packages/naysayer/constitution/constitution.yaml +19 -0
- package/dist/packages/sdk/npm/index.js +5614 -2343
- package/dist/packages/ui/dist/assets/{elk-api-tma0MCuh.js → elk-api-CowTnhEJ.js} +2 -2
- package/dist/packages/ui/dist/assets/index-Dw20IRhQ.css +1 -0
- package/dist/packages/ui/dist/assets/index-z2wv0d5d.js +47 -0
- package/dist/packages/ui/dist/index.html +2 -2
- package/package.json +4 -4
- 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-RVH5SUW5.js +0 -69
- package/dist/chunk-VN3DP4LQ.js +0 -43
- 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
|
@@ -0,0 +1,328 @@
|
|
|
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
|
+
contractCheckOf
|
|
8
|
+
} from "./chunk-GX74YWR7.js";
|
|
9
|
+
import {
|
|
10
|
+
readCatalog
|
|
11
|
+
} from "./chunk-4SLBCEPD.js";
|
|
12
|
+
import {
|
|
13
|
+
frameworkFacts,
|
|
14
|
+
frameworkGaps
|
|
15
|
+
} from "./chunk-JYMIB5XY.js";
|
|
16
|
+
import {
|
|
17
|
+
baseClonePath,
|
|
18
|
+
loadRepos
|
|
19
|
+
} from "./chunk-XOL3GFW2.js";
|
|
20
|
+
import {
|
|
21
|
+
auditItemHolds,
|
|
22
|
+
auditPrecision,
|
|
23
|
+
catalogDirOf,
|
|
24
|
+
factsDirOf,
|
|
25
|
+
factsFileOf,
|
|
26
|
+
factsRelOf,
|
|
27
|
+
headFromFiles,
|
|
28
|
+
isAdopted,
|
|
29
|
+
listQuestions,
|
|
30
|
+
parseAuditFile,
|
|
31
|
+
parseFacts,
|
|
32
|
+
require_dist
|
|
33
|
+
} from "./chunk-PAINMSID.js";
|
|
34
|
+
import {
|
|
35
|
+
__toESM
|
|
36
|
+
} from "./chunk-TV45EUGM.js";
|
|
37
|
+
|
|
38
|
+
// packages/cli/dist/ui-api-trust.js
|
|
39
|
+
var import_yaml = __toESM(require_dist(), 1);
|
|
40
|
+
import { readdir, readFile, stat } from "node:fs/promises";
|
|
41
|
+
import { join, relative, sep } from "node:path";
|
|
42
|
+
function rejectedLines(text2) {
|
|
43
|
+
const out = [];
|
|
44
|
+
for (const raw of (text2 ?? "").split(/\r?\n/)) {
|
|
45
|
+
if (!raw.trim())
|
|
46
|
+
continue;
|
|
47
|
+
let l;
|
|
48
|
+
try {
|
|
49
|
+
l = JSON.parse(raw);
|
|
50
|
+
} catch {
|
|
51
|
+
out.push({ code: "unreadable", message: raw.slice(0, 200) });
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
const f = l.fact && typeof l.fact === "object" ? l.fact : void 0;
|
|
55
|
+
const cite = f?.cite;
|
|
56
|
+
out.push({
|
|
57
|
+
...typeof f?.id === "string" ? { fact: f.id } : {},
|
|
58
|
+
...typeof f?.kind === "string" ? { kind: f.kind } : {},
|
|
59
|
+
...typeof cite?.file === "string" ? { file: cite.file } : {},
|
|
60
|
+
...typeof cite?.line === "number" && Number.isInteger(cite.line) ? { line: cite.line } : {},
|
|
61
|
+
code: typeof l.code === "string" ? l.code : "rejected",
|
|
62
|
+
message: typeof l.message === "string" ? l.message : ""
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return out;
|
|
66
|
+
}
|
|
67
|
+
var SHA = /^[0-9a-f]{7,64}$/;
|
|
68
|
+
var FACT_BY = /* @__PURE__ */ new Set(["assistant", "reader", "person"]);
|
|
69
|
+
var UNKNOWN_SHOWN = 50;
|
|
70
|
+
var firstLine = (e) => String(e.message ?? e).split("\n")[0];
|
|
71
|
+
var text = (p) => readFile(p, "utf8").catch(() => void 0);
|
|
72
|
+
function reportOf(raw) {
|
|
73
|
+
const r = raw;
|
|
74
|
+
if (!r || typeof r.accepted !== "number" || typeof r.rejected !== "number")
|
|
75
|
+
return "not a verifier's report: accepted and rejected are missing";
|
|
76
|
+
const list = (v) => Array.isArray(v) ? v.map(String) : [];
|
|
77
|
+
const unknown = list(r.coverage?.unknown);
|
|
78
|
+
return {
|
|
79
|
+
accepted: r.accepted,
|
|
80
|
+
rejected: r.rejected,
|
|
81
|
+
redacted: typeof r.redacted === "number" ? r.redacted : 0,
|
|
82
|
+
coverage: {
|
|
83
|
+
ratio: typeof r.coverage?.ratio === "number" ? r.coverage.ratio : 0,
|
|
84
|
+
read: typeof r.coverage?.read === "number" ? r.coverage.read : 0,
|
|
85
|
+
unknown: unknown.length,
|
|
86
|
+
excluded: list(r.coverage?.excluded).length
|
|
87
|
+
},
|
|
88
|
+
unknownFiles: unknown.slice(0, UNKNOWN_SHOWN),
|
|
89
|
+
...typeof r.commit === "string" && SHA.test(r.commit) ? { commit: r.commit } : {}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
var sameCommit = (a, b) => a && b ? a.startsWith(b) || b.startsWith(a) : null;
|
|
93
|
+
function catalogSources(records) {
|
|
94
|
+
const counts = /* @__PURE__ */ new Map();
|
|
95
|
+
for (const r of records) {
|
|
96
|
+
const seen = /* @__PURE__ */ new Map();
|
|
97
|
+
for (const e of r.evidence) {
|
|
98
|
+
if (!e.repo)
|
|
99
|
+
continue;
|
|
100
|
+
const s = seen.get(e.repo) ?? { facts: false, readers: false };
|
|
101
|
+
if (!e.extractor && e.by && FACT_BY.has(e.by))
|
|
102
|
+
s.facts = true;
|
|
103
|
+
else if (e.source !== "manual")
|
|
104
|
+
s.readers = true;
|
|
105
|
+
seen.set(e.repo, s);
|
|
106
|
+
}
|
|
107
|
+
for (const [repo, s] of seen) {
|
|
108
|
+
const c = counts.get(repo) ?? { facts: 0, readers: 0 };
|
|
109
|
+
if (s.facts)
|
|
110
|
+
c.facts += 1;
|
|
111
|
+
else if (s.readers)
|
|
112
|
+
c.readers += 1;
|
|
113
|
+
counts.set(repo, c);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return counts;
|
|
117
|
+
}
|
|
118
|
+
function nextOf(repo, r) {
|
|
119
|
+
const read = { command: `atticus map ${repo}`, slash: `/atticus-map ${repo}` };
|
|
120
|
+
if (!r.facts.present)
|
|
121
|
+
return { state: "not-read", next: read };
|
|
122
|
+
const report = r.verify.report;
|
|
123
|
+
if (!report)
|
|
124
|
+
return { state: "unverified", next: { command: `atticus verify ${repo}` } };
|
|
125
|
+
if (report.rejected > 0)
|
|
126
|
+
return {
|
|
127
|
+
state: "rejected",
|
|
128
|
+
next: { command: `atticus verify ${repo}`, slash: `/atticus-map ${repo}` }
|
|
129
|
+
};
|
|
130
|
+
if (r.sameCommit === false)
|
|
131
|
+
return { state: "stale", next: read };
|
|
132
|
+
if (r.facts.unverified > 0)
|
|
133
|
+
return { state: "unverified", next: { command: `atticus verify ${repo}` } };
|
|
134
|
+
if (r.catalog.fromFacts === 0)
|
|
135
|
+
return { state: "unwritten", next: { command: `atticus verify ${repo} --write` } };
|
|
136
|
+
if (report.coverage.unknown > 0)
|
|
137
|
+
return { state: "unknown-files", next: read };
|
|
138
|
+
return { state: "trusted" };
|
|
139
|
+
}
|
|
140
|
+
async function trustView(root) {
|
|
141
|
+
const rel = (p) => relative(root, p).split(sep).join("/") || ".";
|
|
142
|
+
const problems = [];
|
|
143
|
+
const dir = factsDirOf(root);
|
|
144
|
+
const factsRel = factsRelOf(root);
|
|
145
|
+
const ids = [];
|
|
146
|
+
try {
|
|
147
|
+
for (const r of await loadRepos(root))
|
|
148
|
+
ids.push(r.id);
|
|
149
|
+
} catch (e) {
|
|
150
|
+
problems.push({ file: "org-pack/profiles", message: firstLine(e) });
|
|
151
|
+
}
|
|
152
|
+
const files = await readdir(dir).catch(() => []);
|
|
153
|
+
const named = /* @__PURE__ */ new Set();
|
|
154
|
+
for (const f of files) {
|
|
155
|
+
const of = factsFileOf(f);
|
|
156
|
+
if (of && (of.facts || f.endsWith(".verify.yaml")))
|
|
157
|
+
named.add(of.repo);
|
|
158
|
+
}
|
|
159
|
+
for (const id of [...named].sort())
|
|
160
|
+
if (!ids.includes(id))
|
|
161
|
+
ids.push(id);
|
|
162
|
+
const catalog = await readCatalog(join(catalogDirOf(root), "generated"), { cacheRoot: root });
|
|
163
|
+
for (const p of catalog.problems)
|
|
164
|
+
problems.push({ file: rel(join(catalogDirOf(root), "generated", p.file)), message: p.message });
|
|
165
|
+
const counts = catalogSources(catalog.records);
|
|
166
|
+
const open = await listQuestions(root, { state: "open" }).then((l) => l.questions, () => []);
|
|
167
|
+
const adopted = isAdopted(root);
|
|
168
|
+
const repos = [];
|
|
169
|
+
for (const repo of ids) {
|
|
170
|
+
const factsPath = join(dir, `${repo}.jsonl`);
|
|
171
|
+
const raw = await text(factsPath);
|
|
172
|
+
const facts = {
|
|
173
|
+
path: rel(factsPath),
|
|
174
|
+
present: raw !== void 0,
|
|
175
|
+
count: 0,
|
|
176
|
+
unverified: 0
|
|
177
|
+
};
|
|
178
|
+
let frameworks;
|
|
179
|
+
let terms;
|
|
180
|
+
let kept = [];
|
|
181
|
+
const lists = { rejected: [], excluded: [], asked: [], unverified: [] };
|
|
182
|
+
if (raw !== void 0 && raw.trim()) {
|
|
183
|
+
const parsed = parseFacts(raw);
|
|
184
|
+
if (parsed.ok) {
|
|
185
|
+
kept = parsed.facts;
|
|
186
|
+
facts.count = parsed.facts.length;
|
|
187
|
+
const unchecked = parsed.facts.filter((f) => f.verified === "none");
|
|
188
|
+
facts.unverified = unchecked.length;
|
|
189
|
+
lists.unverified = unchecked.slice(0, UNKNOWN_SHOWN).map((f) => ({
|
|
190
|
+
fact: f.id,
|
|
191
|
+
kind: f.kind,
|
|
192
|
+
file: f.cite.file,
|
|
193
|
+
line: f.cite.line
|
|
194
|
+
}));
|
|
195
|
+
const commit = parsed.facts[0]?.commit;
|
|
196
|
+
if (commit)
|
|
197
|
+
facts.commit = commit;
|
|
198
|
+
const gaps = new Map(frameworkGaps(parsed.facts).map((g) => [g.id, g.question]));
|
|
199
|
+
const built = frameworkFacts(parsed.facts).map((f) => ({
|
|
200
|
+
name: f.name,
|
|
201
|
+
...f.version ? { version: f.version } : {},
|
|
202
|
+
...f.component ? { component: f.component } : {},
|
|
203
|
+
cite: `${f.cite.file}:${f.cite.line}`,
|
|
204
|
+
...gaps.has(f.id) ? { gap: gaps.get(f.id) } : {}
|
|
205
|
+
}));
|
|
206
|
+
if (built.length)
|
|
207
|
+
frameworks = built;
|
|
208
|
+
const t = parsed.facts.flatMap((f) => f.kind === "term" ? [
|
|
209
|
+
{
|
|
210
|
+
term: f.term,
|
|
211
|
+
value: f.value,
|
|
212
|
+
role: f.role,
|
|
213
|
+
cite: `${f.cite.file}:${f.cite.line}`,
|
|
214
|
+
...f.meaning ? { meaning: `${f.meaning.file}:${f.meaning.line}` } : {},
|
|
215
|
+
...f.note !== void 0 ? { note: f.note } : {}
|
|
216
|
+
}
|
|
217
|
+
] : []);
|
|
218
|
+
if (t.length)
|
|
219
|
+
terms = t;
|
|
220
|
+
} else
|
|
221
|
+
problems.push({
|
|
222
|
+
file: rel(factsPath),
|
|
223
|
+
message: `doesn't read as facts: ${parsed.issues[0]?.message ?? "invalid"}`
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
const reportPath = join(dir, `${repo}.verify.yaml`);
|
|
227
|
+
let report = null;
|
|
228
|
+
let excluded = [];
|
|
229
|
+
const reportText = await text(reportPath);
|
|
230
|
+
if (reportText !== void 0) {
|
|
231
|
+
try {
|
|
232
|
+
const doc = (0, import_yaml.parse)(reportText);
|
|
233
|
+
const r = reportOf(doc);
|
|
234
|
+
if (typeof r === "string")
|
|
235
|
+
problems.push({ file: rel(reportPath), message: r });
|
|
236
|
+
else {
|
|
237
|
+
report = r;
|
|
238
|
+
const ex = doc?.coverage?.excluded;
|
|
239
|
+
if (Array.isArray(ex))
|
|
240
|
+
excluded = ex.map(String).slice(0, UNKNOWN_SHOWN);
|
|
241
|
+
}
|
|
242
|
+
} catch (e) {
|
|
243
|
+
problems.push({ file: rel(reportPath), message: `can't read YAML: ${firstLine(e)}` });
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
if (!facts.commit && report?.commit)
|
|
247
|
+
facts.commit = report.commit;
|
|
248
|
+
lists.rejected = rejectedLines(await text(join(dir, `${repo}.rejected.jsonl`)));
|
|
249
|
+
lists.excluded = excluded;
|
|
250
|
+
lists.asked = open.filter((q) => q.repo === repo).map((q) => ({ id: q.id, question: q.question, lines: q.evidence }));
|
|
251
|
+
let audit;
|
|
252
|
+
const auditPath = join(dir, `${repo}.audit.yaml`);
|
|
253
|
+
const auditText = await text(auditPath);
|
|
254
|
+
if (auditText !== void 0) {
|
|
255
|
+
const a = parseAuditFile(auditText);
|
|
256
|
+
if (!a.ok)
|
|
257
|
+
problems.push({ file: rel(auditPath), message: `isn't an audit file: ${a.issues[0]}` });
|
|
258
|
+
else {
|
|
259
|
+
const byId = new Map(kept.map((f) => [f.id, f]));
|
|
260
|
+
const p = auditPrecision(a.file.items, (i) => auditItemHolds(i, byId));
|
|
261
|
+
audit = {
|
|
262
|
+
path: rel(auditPath),
|
|
263
|
+
facts: p.facts,
|
|
264
|
+
byKind: p.byKind,
|
|
265
|
+
links: p.links,
|
|
266
|
+
// ADR 0181: the AI's decisions audited apart, when any were drawn.
|
|
267
|
+
...p.ai.drawn ? { ai: p.ai } : {}
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
let checkoutDir;
|
|
272
|
+
try {
|
|
273
|
+
checkoutDir = adopted ? root : baseClonePath(root, repo);
|
|
274
|
+
} catch {
|
|
275
|
+
checkoutDir = void 0;
|
|
276
|
+
}
|
|
277
|
+
const head = checkoutDir ? await headFromFiles(checkoutDir) : void 0;
|
|
278
|
+
const present = checkoutDir ? await stat(join(checkoutDir, ".git")).then(() => true, () => false) : false;
|
|
279
|
+
const checkout = {
|
|
280
|
+
path: checkoutDir ? rel(checkoutDir) : `workspace/${repo}`,
|
|
281
|
+
present,
|
|
282
|
+
...head ? { commit: head } : {}
|
|
283
|
+
};
|
|
284
|
+
const c = counts.get(repo) ?? { facts: 0, readers: 0 };
|
|
285
|
+
const from = c.facts && c.readers ? "both" : c.facts ? "facts" : c.readers ? "readers" : "none";
|
|
286
|
+
const base = {
|
|
287
|
+
repo,
|
|
288
|
+
facts,
|
|
289
|
+
verify: { path: rel(reportPath), report },
|
|
290
|
+
checkout,
|
|
291
|
+
sameCommit: sameCommit(report?.commit ?? facts.commit, head),
|
|
292
|
+
catalog: { from, fromFacts: c.facts, fromReaders: c.readers }
|
|
293
|
+
};
|
|
294
|
+
const { state, next } = nextOf(repo, base);
|
|
295
|
+
repos.push({
|
|
296
|
+
...base,
|
|
297
|
+
state,
|
|
298
|
+
...next ? { next } : {},
|
|
299
|
+
...frameworks ? { frameworks } : {},
|
|
300
|
+
...terms ? { terms } : {},
|
|
301
|
+
lists,
|
|
302
|
+
...audit ? { audit } : {}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
const contracts = await contractCheckOf(root).then((c) => c.result.counts.compared ? c.result.counts : void 0, () => void 0);
|
|
306
|
+
return { factsDir: factsRel, repos, problems, ...contracts ? { contracts } : {} };
|
|
307
|
+
}
|
|
308
|
+
function uiTrustRoutes(r, ctx) {
|
|
309
|
+
return r.add("GET", "/api/trust", async () => ({ status: 200, body: await trustView(ctx.root) })).add("GET", "/api/trust/fresh", async () => {
|
|
310
|
+
const { estateFreshness } = await import("./chunk-D5KV5PSK.js");
|
|
311
|
+
const v = await estateFreshness(ctx.root);
|
|
312
|
+
const body = {
|
|
313
|
+
...v,
|
|
314
|
+
repos: v.repos.map(({ rulesLacking: _r, ...r2 }) => {
|
|
315
|
+
if (r2.state !== "rules-changed")
|
|
316
|
+
return { ...r2, state: r2.state };
|
|
317
|
+
const { command: _c, slash: _s, ...x } = r2;
|
|
318
|
+
return { ...x, state: "fresh" };
|
|
319
|
+
})
|
|
320
|
+
};
|
|
321
|
+
return { status: 200, body };
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export {
|
|
326
|
+
catalogSources,
|
|
327
|
+
uiTrustRoutes
|
|
328
|
+
};
|