@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
|
@@ -7,29 +7,29 @@ import {
|
|
|
7
7
|
ConformError,
|
|
8
8
|
conformChange,
|
|
9
9
|
conformanceOf
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-Y6K3CJBU.js";
|
|
11
|
+
import "./chunk-EZIN5E5B.js";
|
|
12
|
+
import "./chunk-3LZ6P5EP.js";
|
|
13
|
+
import "./chunk-YWAKDNMH.js";
|
|
14
|
+
import "./chunk-3AQ2R5NL.js";
|
|
15
|
+
import "./chunk-BEPCKDCP.js";
|
|
16
|
+
import "./chunk-HWD4JPU7.js";
|
|
17
|
+
import "./chunk-5WERBKLE.js";
|
|
18
|
+
import "./chunk-K332XW7K.js";
|
|
19
|
+
import "./chunk-HSZMPH5T.js";
|
|
20
|
+
import "./chunk-D2WSW4GU.js";
|
|
21
|
+
import "./chunk-4KNOJC6J.js";
|
|
22
|
+
import "./chunk-4SLBCEPD.js";
|
|
23
|
+
import "./chunk-64AADMTW.js";
|
|
24
|
+
import "./chunk-JYMIB5XY.js";
|
|
25
|
+
import "./chunk-CPK7QSBG.js";
|
|
26
|
+
import "./chunk-YO2PKTXT.js";
|
|
27
|
+
import "./chunk-TWQRPM76.js";
|
|
28
|
+
import "./chunk-XOL3GFW2.js";
|
|
29
|
+
import "./chunk-QHJJMZLX.js";
|
|
30
|
+
import "./chunk-7AB6OWTV.js";
|
|
31
|
+
import "./chunk-PAINMSID.js";
|
|
32
|
+
import "./chunk-ODMBPDDV.js";
|
|
33
33
|
import "./chunk-TV45EUGM.js";
|
|
34
34
|
|
|
35
35
|
// packages/cli/dist/change-conform.js
|
|
@@ -94,7 +94,7 @@ async function changeConformCommand(root, change, o, io) {
|
|
|
94
94
|
return 1;
|
|
95
95
|
print(run.results, io);
|
|
96
96
|
io.out(bad ? `The findings are on the conform gate${run.round ? ` (round ${run.round})` : ""}: atticus findings ${change} lists them; dismiss one with atticus finding ${change} <id> not-relevant --reason "...".` : "The code has everything its target flows add, and nothing they don't name.");
|
|
97
|
-
return bad ? 1 : 0;
|
|
97
|
+
return bad && !o.findingsAnswer ? 1 : 0;
|
|
98
98
|
} catch (e) {
|
|
99
99
|
if (e instanceof ConformError) {
|
|
100
100
|
io.err(e.message);
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
assistantFiles,
|
|
8
|
+
describeRun,
|
|
9
|
+
driftCommand,
|
|
10
|
+
runDone,
|
|
11
|
+
specHandDown,
|
|
12
|
+
specHandUp,
|
|
13
|
+
taskHandoff,
|
|
14
|
+
taskRun,
|
|
15
|
+
taskRunNotWaiting
|
|
16
|
+
} from "./chunk-AOCWFA7T.js";
|
|
17
|
+
import {
|
|
18
|
+
isTaskRun
|
|
19
|
+
} from "./chunk-Y6K3CJBU.js";
|
|
20
|
+
import "./chunk-IFHDV6KQ.js";
|
|
21
|
+
import "./chunk-LQH4P45K.js";
|
|
22
|
+
import "./chunk-P2VBXX7N.js";
|
|
23
|
+
import "./chunk-ZX7235KR.js";
|
|
24
|
+
import "./chunk-EZIN5E5B.js";
|
|
25
|
+
import "./chunk-3LZ6P5EP.js";
|
|
26
|
+
import "./chunk-YWAKDNMH.js";
|
|
27
|
+
import "./chunk-3AQ2R5NL.js";
|
|
28
|
+
import "./chunk-PTQ3ZALZ.js";
|
|
29
|
+
import "./chunk-A2G72UI4.js";
|
|
30
|
+
import "./chunk-I2A3Z5AK.js";
|
|
31
|
+
import "./chunk-F6H2RJ3N.js";
|
|
32
|
+
import "./chunk-BEPCKDCP.js";
|
|
33
|
+
import "./chunk-HWD4JPU7.js";
|
|
34
|
+
import "./chunk-5WERBKLE.js";
|
|
35
|
+
import "./chunk-VOGCSYOI.js";
|
|
36
|
+
import "./chunk-K332XW7K.js";
|
|
37
|
+
import "./chunk-HSZMPH5T.js";
|
|
38
|
+
import "./chunk-D2WSW4GU.js";
|
|
39
|
+
import "./chunk-4KNOJC6J.js";
|
|
40
|
+
import "./chunk-4SLBCEPD.js";
|
|
41
|
+
import "./chunk-64AADMTW.js";
|
|
42
|
+
import "./chunk-JYMIB5XY.js";
|
|
43
|
+
import "./chunk-CPK7QSBG.js";
|
|
44
|
+
import "./chunk-YO2PKTXT.js";
|
|
45
|
+
import "./chunk-TWQRPM76.js";
|
|
46
|
+
import "./chunk-XOL3GFW2.js";
|
|
47
|
+
import {
|
|
48
|
+
runtimeForCli
|
|
49
|
+
} from "./chunk-QHJJMZLX.js";
|
|
50
|
+
import "./chunk-7AB6OWTV.js";
|
|
51
|
+
import "./chunk-PAINMSID.js";
|
|
52
|
+
import "./chunk-ODMBPDDV.js";
|
|
53
|
+
import "./chunk-TV45EUGM.js";
|
|
54
|
+
export {
|
|
55
|
+
assistantFiles,
|
|
56
|
+
describeRun,
|
|
57
|
+
driftCommand,
|
|
58
|
+
isTaskRun,
|
|
59
|
+
runDone,
|
|
60
|
+
runtimeForCli,
|
|
61
|
+
specHandDown,
|
|
62
|
+
specHandUp,
|
|
63
|
+
taskHandoff,
|
|
64
|
+
taskRun,
|
|
65
|
+
taskRunNotWaiting
|
|
66
|
+
};
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
stampEvidence,
|
|
29
29
|
tooLargeMessage,
|
|
30
30
|
withParseCache
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-7AB6OWTV.js";
|
|
32
|
+
import "./chunk-PAINMSID.js";
|
|
33
|
+
import "./chunk-ODMBPDDV.js";
|
|
34
34
|
import "./chunk-TV45EUGM.js";
|
|
35
35
|
export {
|
|
36
36
|
DEFAULT_IGNORES,
|
|
@@ -5,7 +5,7 @@ var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
|
5
5
|
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
6
|
import {
|
|
7
7
|
readCatalog
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4SLBCEPD.js";
|
|
9
9
|
import {
|
|
10
10
|
VIEW_NAMES,
|
|
11
11
|
ViewError,
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
toDrawio,
|
|
15
15
|
toMermaid,
|
|
16
16
|
viewFromDiagram
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JYMIB5XY.js";
|
|
18
18
|
import {
|
|
19
19
|
readDrawio
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YO2PKTXT.js";
|
|
21
21
|
import {
|
|
22
22
|
loadOrgPack,
|
|
23
23
|
orgPackDirOf
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PAINMSID.js";
|
|
25
25
|
|
|
26
26
|
// packages/cli/dist/diagram-commands.js
|
|
27
27
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
criticCodeSearch,
|
|
9
9
|
metarepoToolBox,
|
|
10
10
|
offerCodeDir
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-ZOSD4FXV.js";
|
|
12
|
+
import "./chunk-5WERBKLE.js";
|
|
13
|
+
import "./chunk-QHJJMZLX.js";
|
|
14
|
+
import "./chunk-PAINMSID.js";
|
|
15
|
+
import "./chunk-ODMBPDDV.js";
|
|
16
16
|
import "./chunk-TV45EUGM.js";
|
|
17
17
|
export {
|
|
18
18
|
codeToolOptions,
|
|
@@ -6,11 +6,13 @@ var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
|
6
6
|
import {
|
|
7
7
|
dotInt8,
|
|
8
8
|
textSha
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QHJJMZLX.js";
|
|
10
10
|
import {
|
|
11
|
+
JOINED_BY_PERSON,
|
|
11
12
|
Question,
|
|
12
13
|
RECORD_KINDS,
|
|
13
14
|
RecordId,
|
|
15
|
+
answerByWords,
|
|
14
16
|
changesDirOf,
|
|
15
17
|
deserializeRecord,
|
|
16
18
|
identifierWords,
|
|
@@ -28,7 +30,7 @@ import {
|
|
|
28
30
|
splitForms,
|
|
29
31
|
stateDirOf,
|
|
30
32
|
toCanonicalYaml
|
|
31
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PAINMSID.js";
|
|
32
34
|
import {
|
|
33
35
|
__toESM
|
|
34
36
|
} from "./chunk-TV45EUGM.js";
|
|
@@ -870,9 +872,9 @@ function questionNodes(path, text) {
|
|
|
870
872
|
name: q.question,
|
|
871
873
|
file: path,
|
|
872
874
|
verified: false,
|
|
873
|
-
line: `answered question ${q.id}: ${q.question} Answer: ${answer} (${a.by}, ${a.at}) [${path}]`,
|
|
875
|
+
line: `answered question ${q.id}: ${q.question} Answer: ${answer} (${answerByWords(a.by)}, ${a.at}) [${path}]`,
|
|
874
876
|
detail: `Question ${q.id} (${path}), asked by ${q.askedBy.step} about repo ${q.repo}: ${q.question}
|
|
875
|
-
Answer, by ${a.by} at ${a.at}: ${answer}
|
|
877
|
+
Answer, by ${answerByWords(a.by)} at ${a.at}: ${answer}
|
|
876
878
|
Evidence: ${q.evidence.join(", ")}`,
|
|
877
879
|
names: "",
|
|
878
880
|
ids: q.id,
|
|
@@ -1004,8 +1006,8 @@ var DOCUMENT_EXTENSIONS = /\.(docx|pptx|xlsx|pdf|md|markdown|html?|txt)$/i;
|
|
|
1004
1006
|
async function documentNodes(path, bytes) {
|
|
1005
1007
|
const out = { nodes: [], names: [], links: [] };
|
|
1006
1008
|
const [{ readDocument }, { screenFile }] = await Promise.all([
|
|
1007
|
-
import("./chunk-
|
|
1008
|
-
import("./chunk-
|
|
1009
|
+
import("./chunk-NRQ65LTQ.js"),
|
|
1010
|
+
import("./chunk-UDXWIPCB.js")
|
|
1009
1011
|
]);
|
|
1010
1012
|
const screen = screenFile(path, bytes);
|
|
1011
1013
|
if (screen.problem)
|
|
@@ -2284,7 +2286,7 @@ function openDb(file) {
|
|
|
2284
2286
|
// packages/index/dist/catalog-index.js
|
|
2285
2287
|
var vectorsFileOf = (file) => join3(dirname2(file), "vectors.sqlite");
|
|
2286
2288
|
var notInstalled = (e, pkg) => e.code === "ERR_MODULE_NOT_FOUND" && String(e.message).includes(pkg);
|
|
2287
|
-
async function embedderOf(root, setting, load = () => import("./chunk-
|
|
2289
|
+
async function embedderOf(root, setting, load = () => import("./chunk-LO3BLMVG.js")) {
|
|
2288
2290
|
if (setting === "off")
|
|
2289
2291
|
return { why: "turned off for this command" };
|
|
2290
2292
|
if (setting && setting !== "auto")
|
|
@@ -2525,6 +2527,10 @@ var CatalogIndex = class {
|
|
|
2525
2527
|
list(kind, o = {}) {
|
|
2526
2528
|
const where = ["kind = ?"];
|
|
2527
2529
|
const params = [kind];
|
|
2530
|
+
if (o.confidence) {
|
|
2531
|
+
where.push("confidence = ?");
|
|
2532
|
+
params.push(o.confidence);
|
|
2533
|
+
}
|
|
2528
2534
|
if (o.status) {
|
|
2529
2535
|
where.push("status = ?");
|
|
2530
2536
|
params.push(o.status);
|
|
@@ -2713,7 +2719,8 @@ function impact(ix, rootId, depth = 4) {
|
|
|
2713
2719
|
};
|
|
2714
2720
|
for (const a of affected) {
|
|
2715
2721
|
const rec = recordOf(a.kind, a.id);
|
|
2716
|
-
|
|
2722
|
+
const paired = Array.isArray(rec.flags) && rec.flags.includes(JOINED_BY_PERSON);
|
|
2723
|
+
if (a.kind === "Interface" && rec.confidence === "inferred" && !paired)
|
|
2717
2724
|
addGap({
|
|
2718
2725
|
record: a.id,
|
|
2719
2726
|
field: "confidence",
|
|
@@ -2867,8 +2874,11 @@ function translate(question, lookup) {
|
|
|
2867
2874
|
terms.push(`refs:${rec.id}`);
|
|
2868
2875
|
if (has(/\b(without|no|missing) (a |an )?pattern\b/))
|
|
2869
2876
|
terms.push("missing:pattern");
|
|
2870
|
-
if (has(/\b(inferred|unconfirmed|one end)\b/))
|
|
2877
|
+
if (has(/\b(inferred|unconfirmed|one end)\b/)) {
|
|
2871
2878
|
terms.push("confidence:inferred");
|
|
2879
|
+
if (has(/\bone end\b/))
|
|
2880
|
+
terms.push("-flags:joined-by-person");
|
|
2881
|
+
}
|
|
2872
2882
|
return {
|
|
2873
2883
|
action: "query",
|
|
2874
2884
|
query: terms.join(" "),
|
|
@@ -2888,6 +2898,131 @@ function translate(question, lookup) {
|
|
|
2888
2898
|
import { existsSync, readdirSync } from "node:fs";
|
|
2889
2899
|
import { readdir as readdir2, readFile as readFile3, realpath, stat as stat2 } from "node:fs/promises";
|
|
2890
2900
|
import { isAbsolute, join as join4, relative as relative2, resolve, sep as sep2 } from "node:path";
|
|
2901
|
+
import { createContext, runInContext, Script } from "node:vm";
|
|
2902
|
+
|
|
2903
|
+
// packages/index/dist/glob.js
|
|
2904
|
+
var notSlash = (c) => c !== "/";
|
|
2905
|
+
var anyChar = (c) => !/[\n\r\u2028\u2029]/.test(c);
|
|
2906
|
+
var Builder = class {
|
|
2907
|
+
states = [];
|
|
2908
|
+
add(s) {
|
|
2909
|
+
this.states.push(s);
|
|
2910
|
+
return this.states.length - 1;
|
|
2911
|
+
}
|
|
2912
|
+
/** `c*` looping on a test, then on to next. */
|
|
2913
|
+
loop(test, next) {
|
|
2914
|
+
const split = this.add({ kind: "split", outs: [] });
|
|
2915
|
+
const ch = this.add({ kind: "char", test, out: split });
|
|
2916
|
+
this.states[split].outs.push(ch, next);
|
|
2917
|
+
return split;
|
|
2918
|
+
}
|
|
2919
|
+
/** `(?:.*\/)?` then next: any folders, or none. */
|
|
2920
|
+
folders(next) {
|
|
2921
|
+
const slash = this.add({ kind: "char", test: (c) => c === "/", out: next });
|
|
2922
|
+
return this.add({ kind: "split", outs: [this.loop(anyChar, slash), next] });
|
|
2923
|
+
}
|
|
2924
|
+
};
|
|
2925
|
+
function tidy(glob2) {
|
|
2926
|
+
return glob2.trim().replace(/\\/g, "/").replace(/^\.\//, "");
|
|
2927
|
+
}
|
|
2928
|
+
function compile(b, g, next) {
|
|
2929
|
+
const pieces = [];
|
|
2930
|
+
for (let i = 0; i < g.length; i++) {
|
|
2931
|
+
const ch = g[i];
|
|
2932
|
+
if (ch === "*") {
|
|
2933
|
+
if (g[i + 1] === "*") {
|
|
2934
|
+
const slash = g[i + 2] === "/";
|
|
2935
|
+
pieces.push(slash ? (n) => b.folders(n) : (n) => b.loop(anyChar, n));
|
|
2936
|
+
i += slash ? 2 : 1;
|
|
2937
|
+
} else
|
|
2938
|
+
pieces.push((n) => b.loop(notSlash, n));
|
|
2939
|
+
} else if (ch === "?")
|
|
2940
|
+
pieces.push((n) => b.add({ kind: "char", test: notSlash, out: n }));
|
|
2941
|
+
else if (ch === "[") {
|
|
2942
|
+
const end = g.indexOf("]", i + 2);
|
|
2943
|
+
if (end < 0)
|
|
2944
|
+
pieces.push(lit("["));
|
|
2945
|
+
else {
|
|
2946
|
+
const body = g.slice(i + 1, end).replace(/^!/, "^").replace(/\\/g, "\\\\");
|
|
2947
|
+
const re = new RegExp(`^[${body}]$`);
|
|
2948
|
+
pieces.push((n) => b.add({ kind: "char", test: (c) => re.test(c), out: n }));
|
|
2949
|
+
i = end;
|
|
2950
|
+
}
|
|
2951
|
+
} else if (ch === "{") {
|
|
2952
|
+
const end = g.indexOf("}", i);
|
|
2953
|
+
if (end < 0)
|
|
2954
|
+
pieces.push(lit("{"));
|
|
2955
|
+
else {
|
|
2956
|
+
const parts = g.slice(i + 1, end).split(",").map((p) => {
|
|
2957
|
+
let t = tidy(p);
|
|
2958
|
+
if (t.startsWith("/"))
|
|
2959
|
+
t = t.slice(1);
|
|
2960
|
+
return t;
|
|
2961
|
+
});
|
|
2962
|
+
const probe = new Builder();
|
|
2963
|
+
for (const p of parts)
|
|
2964
|
+
compile(probe, p, probe.add({ kind: "match" }));
|
|
2965
|
+
pieces.push((n) => b.add({ kind: "split", outs: parts.map((p) => compile(b, p, n)) }));
|
|
2966
|
+
i = end;
|
|
2967
|
+
}
|
|
2968
|
+
} else
|
|
2969
|
+
pieces.push(lit(ch));
|
|
2970
|
+
}
|
|
2971
|
+
let at = next;
|
|
2972
|
+
for (let k = pieces.length - 1; k >= 0; k--)
|
|
2973
|
+
at = pieces[k](at);
|
|
2974
|
+
return at;
|
|
2975
|
+
function lit(c) {
|
|
2976
|
+
return (n) => b.add({ kind: "char", test: (x) => x === c, out: n });
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
function globMatcher(glob2, anyDepth = !glob2.replace(/\/$/, "").includes("/")) {
|
|
2980
|
+
let g = tidy(glob2);
|
|
2981
|
+
if (g.startsWith("/")) {
|
|
2982
|
+
g = g.slice(1);
|
|
2983
|
+
anyDepth = false;
|
|
2984
|
+
}
|
|
2985
|
+
const b = new Builder();
|
|
2986
|
+
const end = b.add({ kind: "match" });
|
|
2987
|
+
let start = compile(b, g, end);
|
|
2988
|
+
if (anyDepth)
|
|
2989
|
+
start = b.folders(start);
|
|
2990
|
+
const states = b.states;
|
|
2991
|
+
const close = (set, s) => {
|
|
2992
|
+
const stack = [s];
|
|
2993
|
+
while (stack.length) {
|
|
2994
|
+
const at = stack.pop();
|
|
2995
|
+
if (set.has(at))
|
|
2996
|
+
continue;
|
|
2997
|
+
set.add(at);
|
|
2998
|
+
const st = states[at];
|
|
2999
|
+
if (st.kind === "split")
|
|
3000
|
+
for (const o of st.outs)
|
|
3001
|
+
stack.push(o);
|
|
3002
|
+
}
|
|
3003
|
+
};
|
|
3004
|
+
return {
|
|
3005
|
+
test(path) {
|
|
3006
|
+
let live = /* @__PURE__ */ new Set();
|
|
3007
|
+
close(live, start);
|
|
3008
|
+
for (let i = 0; i < path.length; i++) {
|
|
3009
|
+
const c = path[i];
|
|
3010
|
+
const next = /* @__PURE__ */ new Set();
|
|
3011
|
+
for (const s of live) {
|
|
3012
|
+
const st = states[s];
|
|
3013
|
+
if (st.kind === "char" && st.test(c))
|
|
3014
|
+
close(next, st.out);
|
|
3015
|
+
}
|
|
3016
|
+
if (!next.size)
|
|
3017
|
+
return false;
|
|
3018
|
+
live = next;
|
|
3019
|
+
}
|
|
3020
|
+
return live.has(end);
|
|
3021
|
+
}
|
|
3022
|
+
};
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
// packages/index/dist/tools.js
|
|
2891
3026
|
var ContextToolError = class extends Error {
|
|
2892
3027
|
constructor(message) {
|
|
2893
3028
|
super(message);
|
|
@@ -2918,6 +3053,12 @@ var CONTEXT_TOOL_BOUNDS = {
|
|
|
2918
3053
|
/** The longest pattern grep takes, and the most of a hit's line it shows. */
|
|
2919
3054
|
grepPattern: 200,
|
|
2920
3055
|
grepLineChars: 200,
|
|
3056
|
+
/**
|
|
3057
|
+
* The most time a regular expression may spend on one file, and on one grep call in all,
|
|
3058
|
+
* so a pattern that backtracks without end (`(a+)+$`) can't hang the MCP server or a scan.
|
|
3059
|
+
*/
|
|
3060
|
+
grepRegexMs: 1e3,
|
|
3061
|
+
grepRegexTotalMs: 5e3,
|
|
2921
3062
|
/** Files one grep or files call walks at most, and bytes grep reads at most. */
|
|
2922
3063
|
walkFiles: 2e4,
|
|
2923
3064
|
grepBytes: 64e6,
|
|
@@ -3488,46 +3629,6 @@ function reposOf(root, input, o) {
|
|
|
3488
3629
|
throw new ContextToolError("No repo is cloned in the workspace.");
|
|
3489
3630
|
return out;
|
|
3490
3631
|
}
|
|
3491
|
-
function globRe(glob2, anyDepth = !glob2.replace(/\/$/, "").includes("/")) {
|
|
3492
|
-
let g = glob2.trim().replace(/\\/g, "/").replace(/^\.\//, "");
|
|
3493
|
-
if (g.startsWith("/")) {
|
|
3494
|
-
g = g.slice(1);
|
|
3495
|
-
anyDepth = false;
|
|
3496
|
-
}
|
|
3497
|
-
let re = "";
|
|
3498
|
-
for (let i = 0; i < g.length; i++) {
|
|
3499
|
-
const ch = g[i];
|
|
3500
|
-
if (ch === "*") {
|
|
3501
|
-
if (g[i + 1] === "*") {
|
|
3502
|
-
const slash = g[i + 2] === "/";
|
|
3503
|
-
re += slash ? "(?:.*/)?" : ".*";
|
|
3504
|
-
i += slash ? 2 : 1;
|
|
3505
|
-
} else
|
|
3506
|
-
re += "[^/]*";
|
|
3507
|
-
} else if (ch === "?")
|
|
3508
|
-
re += "[^/]";
|
|
3509
|
-
else if (ch === "[") {
|
|
3510
|
-
const end = g.indexOf("]", i + 2);
|
|
3511
|
-
if (end < 0)
|
|
3512
|
-
re += "\\[";
|
|
3513
|
-
else {
|
|
3514
|
-
const body = g.slice(i + 1, end).replace(/^!/, "^").replace(/\\/g, "\\\\");
|
|
3515
|
-
re += `[${body}]`;
|
|
3516
|
-
i = end;
|
|
3517
|
-
}
|
|
3518
|
-
} else if (ch === "{") {
|
|
3519
|
-
const end = g.indexOf("}", i);
|
|
3520
|
-
if (end < 0)
|
|
3521
|
-
re += "\\{";
|
|
3522
|
-
else {
|
|
3523
|
-
re += `(?:${g.slice(i + 1, end).split(",").map((p) => globRe(p, false).source.slice(1, -1)).join("|")})`;
|
|
3524
|
-
i = end;
|
|
3525
|
-
}
|
|
3526
|
-
} else
|
|
3527
|
-
re += ch.replace(/[.+^$()|\\]/g, "\\$&");
|
|
3528
|
-
}
|
|
3529
|
-
return new RegExp(`^${anyDepth ? "(?:.*/)?" : ""}${re}$`);
|
|
3530
|
-
}
|
|
3531
3632
|
function ignoreRules(text, base) {
|
|
3532
3633
|
const out = [];
|
|
3533
3634
|
for (let line of text.split(/\r?\n/)) {
|
|
@@ -3547,7 +3648,7 @@ function ignoreRules(text, base) {
|
|
|
3547
3648
|
continue;
|
|
3548
3649
|
const anchored = line.includes("/");
|
|
3549
3650
|
try {
|
|
3550
|
-
out.push({ base, re:
|
|
3651
|
+
out.push({ base, re: globMatcher(line.replace(/^\//, ""), !anchored), negate, dirOnly });
|
|
3551
3652
|
} catch {
|
|
3552
3653
|
}
|
|
3553
3654
|
}
|
|
@@ -3634,6 +3735,34 @@ async function runCodeTool(root, name, input, o) {
|
|
|
3634
3735
|
return filesTool(root, input, o);
|
|
3635
3736
|
return outlineTool(root, input, o);
|
|
3636
3737
|
}
|
|
3738
|
+
var REGEX_LINES = new Script("(() => { const out = []; for (let i = 0; i < lines.length; i++) if (re.test(lines[i])) out.push(i); return out; })()");
|
|
3739
|
+
function regexMatcher(pattern, flags) {
|
|
3740
|
+
const B = CONTEXT_TOOL_BOUNDS;
|
|
3741
|
+
const context = createContext({ pattern, flags, lines: [] });
|
|
3742
|
+
runInContext("globalThis.re = new RegExp(pattern, flags);", context);
|
|
3743
|
+
let spent = 0;
|
|
3744
|
+
return (lines) => {
|
|
3745
|
+
const left = B.grepRegexTotalMs - spent;
|
|
3746
|
+
if (left < 1)
|
|
3747
|
+
return void 0;
|
|
3748
|
+
const timeout = Math.min(B.grepRegexMs, left);
|
|
3749
|
+
context.lines = lines;
|
|
3750
|
+
const started = performance.now();
|
|
3751
|
+
try {
|
|
3752
|
+
return Array.from(REGEX_LINES.runInContext(context, { timeout }));
|
|
3753
|
+
} catch (e) {
|
|
3754
|
+
if (e.code === "ERR_SCRIPT_EXECUTION_TIMEOUT") {
|
|
3755
|
+
if (timeout < B.grepRegexMs)
|
|
3756
|
+
return void 0;
|
|
3757
|
+
throw new ContextToolError(`The pattern ${pattern} took too long; make it simpler (no quantifier inside a repeated group, such as (a+)+).`);
|
|
3758
|
+
}
|
|
3759
|
+
throw e;
|
|
3760
|
+
} finally {
|
|
3761
|
+
context.lines = [];
|
|
3762
|
+
spent += performance.now() - started;
|
|
3763
|
+
}
|
|
3764
|
+
};
|
|
3765
|
+
}
|
|
3637
3766
|
async function grepTool(root, input, o) {
|
|
3638
3767
|
const B = CONTEXT_TOOL_BOUNDS;
|
|
3639
3768
|
const pattern = typeof input.pattern === "string" && input.pattern ? input.pattern : void 0;
|
|
@@ -3642,22 +3771,26 @@ async function grepTool(root, input, o) {
|
|
|
3642
3771
|
if (pattern.length > B.grepPattern)
|
|
3643
3772
|
throw new ContextToolError(`A grep pattern is at most ${B.grepPattern} characters.`);
|
|
3644
3773
|
const ignoreCase = input.ignoreCase === true;
|
|
3645
|
-
let
|
|
3774
|
+
let matching;
|
|
3646
3775
|
if (input.regex === true) {
|
|
3647
|
-
let re;
|
|
3648
3776
|
try {
|
|
3649
|
-
|
|
3777
|
+
new RegExp(pattern, ignoreCase ? "i" : "");
|
|
3650
3778
|
} catch (e) {
|
|
3651
3779
|
throw new ContextToolError(`${pattern} isn't a regular expression: ${e.message}.`);
|
|
3652
3780
|
}
|
|
3653
|
-
|
|
3781
|
+
matching = regexMatcher(pattern, ignoreCase ? "i" : "");
|
|
3654
3782
|
} else {
|
|
3655
3783
|
const p = ignoreCase ? pattern.toLowerCase() : pattern;
|
|
3656
|
-
test = ignoreCase ? (l) => l.toLowerCase().includes(p) : (l) => l.includes(p);
|
|
3784
|
+
const test = ignoreCase ? (l) => l.toLowerCase().includes(p) : (l) => l.includes(p);
|
|
3785
|
+
matching = function* (lines) {
|
|
3786
|
+
for (let i = 0; i < lines.length; i++)
|
|
3787
|
+
if (test(lines[i]))
|
|
3788
|
+
yield i;
|
|
3789
|
+
};
|
|
3657
3790
|
}
|
|
3658
3791
|
const limit = int(input.limit, 1, B.grepLimit, B.grepDefault);
|
|
3659
3792
|
const paths = str2(input.paths);
|
|
3660
|
-
const only = paths ?
|
|
3793
|
+
const only = paths ? globMatcher(paths) : void 0;
|
|
3661
3794
|
const repos = reposOf(root, input, o);
|
|
3662
3795
|
const hits = [];
|
|
3663
3796
|
let more = false;
|
|
@@ -3679,11 +3812,14 @@ async function grepTool(root, input, o) {
|
|
|
3679
3812
|
return false;
|
|
3680
3813
|
}
|
|
3681
3814
|
read++;
|
|
3682
|
-
const lines = buf.toString("utf8").split(/\r?\n/);
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3815
|
+
const lines = buf.toString("utf8").split(/\r?\n/).map((l) => l.slice(0, 2e3));
|
|
3816
|
+
const found = matching(lines);
|
|
3817
|
+
if (!found) {
|
|
3818
|
+
cut = true;
|
|
3819
|
+
return false;
|
|
3820
|
+
}
|
|
3821
|
+
for (const i of found) {
|
|
3822
|
+
const line = lines[i];
|
|
3687
3823
|
if (hits.length >= limit) {
|
|
3688
3824
|
more = true;
|
|
3689
3825
|
return false;
|
|
@@ -3707,7 +3843,7 @@ async function grepTool(root, input, o) {
|
|
|
3707
3843
|
`${plural(hits.length, "hit")} for "${pattern}"${where}${scope} (${plural(read, "file")} read):`,
|
|
3708
3844
|
...hits,
|
|
3709
3845
|
...more ? [`\u2026 more hits past the ${limit} shown; narrow the pattern or the paths.`] : [],
|
|
3710
|
-
...cut ? [`\u2026 the search stopped at its cap of files or
|
|
3846
|
+
...cut ? [`\u2026 the search stopped at its cap of files, bytes or time; name a repo or narrower paths.`] : [],
|
|
3711
3847
|
"Show the lines around a hit with show_code (repo, path, line). A hit is a pointer, not a fact: a fact cites its file and line, and Atticus checks the value there."
|
|
3712
3848
|
].join("\n");
|
|
3713
3849
|
}
|
|
@@ -3717,7 +3853,7 @@ async function filesTool(root, input, o) {
|
|
|
3717
3853
|
if (!glob2)
|
|
3718
3854
|
throw new ContextToolError("files needs a glob, for example src/**/*.java.");
|
|
3719
3855
|
const limit = int(input.limit, 1, B.filesLimit, B.filesDefault);
|
|
3720
|
-
const re =
|
|
3856
|
+
const re = globMatcher(glob2);
|
|
3721
3857
|
const repos = reposOf(root, input, o);
|
|
3722
3858
|
const out = [];
|
|
3723
3859
|
let more = false;
|
|
@@ -6,14 +6,14 @@ var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
|
6
6
|
import {
|
|
7
7
|
acceptOrgPackDraft,
|
|
8
8
|
draftOrgPack
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-64AADMTW.js";
|
|
10
|
+
import "./chunk-CPK7QSBG.js";
|
|
11
|
+
import "./chunk-YO2PKTXT.js";
|
|
12
|
+
import "./chunk-TWQRPM76.js";
|
|
13
|
+
import "./chunk-QHJJMZLX.js";
|
|
14
|
+
import "./chunk-7AB6OWTV.js";
|
|
15
|
+
import "./chunk-PAINMSID.js";
|
|
16
|
+
import "./chunk-ODMBPDDV.js";
|
|
17
17
|
import "./chunk-TV45EUGM.js";
|
|
18
18
|
|
|
19
19
|
// packages/cli/dist/orgpack-draft-commands.js
|