@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
|
@@ -4,15 +4,26 @@ var require = __atticusCreateRequire(import.meta.url);
|
|
|
4
4
|
var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
5
5
|
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
6
|
import {
|
|
7
|
+
ACP_ERRORS,
|
|
8
|
+
ACP_METHODS,
|
|
9
|
+
ACP_OFFERED,
|
|
10
|
+
ACP_PROTOCOL_VERSION,
|
|
7
11
|
ANSWERED_BY_SPEC,
|
|
8
12
|
APPLIES_SPEC,
|
|
9
13
|
ASKS_CHECK_SPEC,
|
|
14
|
+
AcpClient,
|
|
15
|
+
AcpRpcError,
|
|
16
|
+
AcpSetupError,
|
|
17
|
+
AcpSignInError,
|
|
10
18
|
AiOffError,
|
|
19
|
+
BATCH_OUTPUT,
|
|
11
20
|
BIGGER_MODEL,
|
|
12
21
|
BREAKING_SPEC,
|
|
13
22
|
CLASSIFIED_PERSONAL,
|
|
14
23
|
COVERS_FIELD_SPEC,
|
|
24
|
+
CopilotAcpRuntime,
|
|
15
25
|
DATA_RULE,
|
|
26
|
+
DEFAULT_BATCH_MAX_TOKENS,
|
|
16
27
|
DEFENCES_VERSION,
|
|
17
28
|
FLAG_OPEN,
|
|
18
29
|
HandoffRuntime,
|
|
@@ -20,6 +31,7 @@ import {
|
|
|
20
31
|
HeadlessClaudeCodeRuntime,
|
|
21
32
|
INSTRUCTION_RULES,
|
|
22
33
|
JUDGE_AGENT,
|
|
34
|
+
MAX_NUDGES,
|
|
23
35
|
MockModelProvider,
|
|
24
36
|
MockRuntime,
|
|
25
37
|
ModelRuntime,
|
|
@@ -44,16 +56,25 @@ import {
|
|
|
44
56
|
ToolError,
|
|
45
57
|
ToolSession,
|
|
46
58
|
UNDOES_SPEC,
|
|
59
|
+
UPDATE,
|
|
60
|
+
acpPathsOf,
|
|
47
61
|
answerJudge,
|
|
48
62
|
answerProblem,
|
|
49
63
|
assess,
|
|
64
|
+
atticusArgvOf,
|
|
65
|
+
atticusExec,
|
|
66
|
+
batchSections,
|
|
50
67
|
buildContextPack,
|
|
68
|
+
carryOnPrompt,
|
|
51
69
|
chatWithTools,
|
|
52
70
|
checkAllowed,
|
|
71
|
+
chunkText,
|
|
53
72
|
claudeCodeCliRunner,
|
|
54
73
|
clearModelProviders,
|
|
55
74
|
collectChild,
|
|
56
75
|
combine,
|
|
76
|
+
commandLineOf,
|
|
77
|
+
copilotAcpProbe,
|
|
57
78
|
cosine,
|
|
58
79
|
createRuntime,
|
|
59
80
|
currentPromptLimit,
|
|
@@ -62,24 +83,31 @@ import {
|
|
|
62
83
|
dotInt8,
|
|
63
84
|
escapeDelimiters,
|
|
64
85
|
estimateTokens,
|
|
86
|
+
factsOnly,
|
|
65
87
|
fitBudget,
|
|
66
88
|
formatOf,
|
|
67
89
|
guardToolText,
|
|
68
90
|
hiddenDiagramLabels,
|
|
69
91
|
hiddenOfficeRuns,
|
|
70
92
|
hiddenSpans,
|
|
93
|
+
isAuthRequired,
|
|
94
|
+
isPersonsFactsFile,
|
|
71
95
|
judge,
|
|
72
96
|
judgeInstructions,
|
|
73
97
|
judgeItemsOf,
|
|
74
98
|
judgeStandIn,
|
|
75
99
|
judgesDirectly,
|
|
100
|
+
keepAcpRun,
|
|
101
|
+
killTree,
|
|
76
102
|
makeModelProvider,
|
|
77
103
|
makeRunId,
|
|
78
104
|
modelEnvOf,
|
|
79
105
|
modelSourceWords,
|
|
80
106
|
modelsByClass,
|
|
81
107
|
namesWord,
|
|
108
|
+
needsShell,
|
|
82
109
|
neutralise,
|
|
110
|
+
personOnlyWhy,
|
|
83
111
|
personalItem,
|
|
84
112
|
posixPath,
|
|
85
113
|
promptBudget,
|
|
@@ -90,16 +118,22 @@ import {
|
|
|
90
118
|
quarantineItems,
|
|
91
119
|
quarantineReason,
|
|
92
120
|
questionJudge,
|
|
121
|
+
quoteForCmd,
|
|
122
|
+
quoteForCmdAlways,
|
|
123
|
+
readRootsOf,
|
|
93
124
|
readToolCalls,
|
|
94
125
|
recordRun,
|
|
95
126
|
recordToolCalls,
|
|
96
127
|
recordedJudge,
|
|
128
|
+
registerCopilotAcp,
|
|
97
129
|
registerModelProvider,
|
|
98
130
|
registerModelProviderPluginLoader,
|
|
99
131
|
registerToolSource,
|
|
100
132
|
registeredModelProviders,
|
|
133
|
+
resolveWindowsCommand,
|
|
101
134
|
resumedAttempt,
|
|
102
135
|
riskAtLeast,
|
|
136
|
+
runAcpSession,
|
|
103
137
|
runtimeForCli,
|
|
104
138
|
screenAbsorbed,
|
|
105
139
|
screenDiagramXml,
|
|
@@ -110,6 +144,7 @@ import {
|
|
|
110
144
|
settle,
|
|
111
145
|
sha256,
|
|
112
146
|
skeleton,
|
|
147
|
+
spawnAcpServer,
|
|
113
148
|
stepClassOf,
|
|
114
149
|
stepClassOfCommand,
|
|
115
150
|
stepClassOfNextStep,
|
|
@@ -119,25 +154,38 @@ import {
|
|
|
119
154
|
tokenFormatIn,
|
|
120
155
|
toolStops,
|
|
121
156
|
transition,
|
|
157
|
+
usageOf,
|
|
122
158
|
vectorFromText,
|
|
123
159
|
vectorToText,
|
|
124
160
|
verdictOf,
|
|
161
|
+
windowsName,
|
|
125
162
|
withPromptLimit,
|
|
126
163
|
wrapData
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import "./chunk-
|
|
129
|
-
import "./chunk-
|
|
164
|
+
} from "./chunk-QHJJMZLX.js";
|
|
165
|
+
import "./chunk-PAINMSID.js";
|
|
166
|
+
import "./chunk-ODMBPDDV.js";
|
|
130
167
|
import "./chunk-TV45EUGM.js";
|
|
131
168
|
export {
|
|
169
|
+
ACP_ERRORS,
|
|
170
|
+
ACP_METHODS,
|
|
171
|
+
ACP_OFFERED,
|
|
172
|
+
ACP_PROTOCOL_VERSION,
|
|
132
173
|
ANSWERED_BY_SPEC,
|
|
133
174
|
APPLIES_SPEC,
|
|
134
175
|
ASKS_CHECK_SPEC,
|
|
176
|
+
AcpClient,
|
|
177
|
+
AcpRpcError,
|
|
178
|
+
AcpSetupError,
|
|
179
|
+
AcpSignInError,
|
|
135
180
|
AiOffError,
|
|
181
|
+
BATCH_OUTPUT,
|
|
136
182
|
BIGGER_MODEL,
|
|
137
183
|
BREAKING_SPEC,
|
|
138
184
|
CLASSIFIED_PERSONAL,
|
|
139
185
|
COVERS_FIELD_SPEC,
|
|
186
|
+
CopilotAcpRuntime,
|
|
140
187
|
DATA_RULE,
|
|
188
|
+
DEFAULT_BATCH_MAX_TOKENS,
|
|
141
189
|
DEFENCES_VERSION,
|
|
142
190
|
FLAG_OPEN,
|
|
143
191
|
HandoffRuntime,
|
|
@@ -145,6 +193,7 @@ export {
|
|
|
145
193
|
HeadlessClaudeCodeRuntime,
|
|
146
194
|
INSTRUCTION_RULES,
|
|
147
195
|
JUDGE_AGENT,
|
|
196
|
+
MAX_NUDGES,
|
|
148
197
|
MockModelProvider,
|
|
149
198
|
MockRuntime,
|
|
150
199
|
ModelRuntime,
|
|
@@ -169,16 +218,25 @@ export {
|
|
|
169
218
|
ToolError,
|
|
170
219
|
ToolSession,
|
|
171
220
|
UNDOES_SPEC,
|
|
221
|
+
UPDATE,
|
|
222
|
+
acpPathsOf,
|
|
172
223
|
answerJudge,
|
|
173
224
|
answerProblem,
|
|
174
225
|
assess,
|
|
226
|
+
atticusArgvOf,
|
|
227
|
+
atticusExec,
|
|
228
|
+
batchSections,
|
|
175
229
|
buildContextPack,
|
|
230
|
+
carryOnPrompt,
|
|
176
231
|
chatWithTools,
|
|
177
232
|
checkAllowed,
|
|
233
|
+
chunkText,
|
|
178
234
|
claudeCodeCliRunner,
|
|
179
235
|
clearModelProviders,
|
|
180
236
|
collectChild,
|
|
181
237
|
combine,
|
|
238
|
+
commandLineOf,
|
|
239
|
+
copilotAcpProbe,
|
|
182
240
|
cosine,
|
|
183
241
|
createRuntime,
|
|
184
242
|
currentPromptLimit,
|
|
@@ -187,24 +245,31 @@ export {
|
|
|
187
245
|
dotInt8,
|
|
188
246
|
escapeDelimiters,
|
|
189
247
|
estimateTokens,
|
|
248
|
+
factsOnly,
|
|
190
249
|
fitBudget,
|
|
191
250
|
formatOf,
|
|
192
251
|
guardToolText,
|
|
193
252
|
hiddenDiagramLabels,
|
|
194
253
|
hiddenOfficeRuns,
|
|
195
254
|
hiddenSpans,
|
|
255
|
+
isAuthRequired,
|
|
256
|
+
isPersonsFactsFile,
|
|
196
257
|
judge,
|
|
197
258
|
judgeInstructions,
|
|
198
259
|
judgeItemsOf,
|
|
199
260
|
judgeStandIn,
|
|
200
261
|
judgesDirectly,
|
|
262
|
+
keepAcpRun,
|
|
263
|
+
killTree,
|
|
201
264
|
makeModelProvider,
|
|
202
265
|
makeRunId,
|
|
203
266
|
modelEnvOf,
|
|
204
267
|
modelSourceWords,
|
|
205
268
|
modelsByClass,
|
|
206
269
|
namesWord,
|
|
270
|
+
needsShell,
|
|
207
271
|
neutralise,
|
|
272
|
+
personOnlyWhy,
|
|
208
273
|
personalItem,
|
|
209
274
|
posixPath,
|
|
210
275
|
promptBudget,
|
|
@@ -215,16 +280,22 @@ export {
|
|
|
215
280
|
quarantineItems,
|
|
216
281
|
quarantineReason,
|
|
217
282
|
questionJudge,
|
|
283
|
+
quoteForCmd,
|
|
284
|
+
quoteForCmdAlways,
|
|
285
|
+
readRootsOf,
|
|
218
286
|
readToolCalls,
|
|
219
287
|
recordRun,
|
|
220
288
|
recordToolCalls,
|
|
221
289
|
recordedJudge,
|
|
290
|
+
registerCopilotAcp,
|
|
222
291
|
registerModelProvider,
|
|
223
292
|
registerModelProviderPluginLoader,
|
|
224
293
|
registerToolSource,
|
|
225
294
|
registeredModelProviders,
|
|
295
|
+
resolveWindowsCommand,
|
|
226
296
|
resumedAttempt,
|
|
227
297
|
riskAtLeast,
|
|
298
|
+
runAcpSession,
|
|
228
299
|
runtimeForCli,
|
|
229
300
|
screenAbsorbed,
|
|
230
301
|
screenDiagramXml,
|
|
@@ -235,6 +306,7 @@ export {
|
|
|
235
306
|
settle,
|
|
236
307
|
sha256,
|
|
237
308
|
skeleton,
|
|
309
|
+
spawnAcpServer,
|
|
238
310
|
stepClassOf,
|
|
239
311
|
stepClassOfCommand,
|
|
240
312
|
stepClassOfNextStep,
|
|
@@ -244,9 +316,11 @@ export {
|
|
|
244
316
|
tokenFormatIn,
|
|
245
317
|
toolStops,
|
|
246
318
|
transition,
|
|
319
|
+
usageOf,
|
|
247
320
|
vectorFromText,
|
|
248
321
|
vectorToText,
|
|
249
322
|
verdictOf,
|
|
323
|
+
windowsName,
|
|
250
324
|
withPromptLimit,
|
|
251
325
|
wrapData
|
|
252
326
|
};
|
|
@@ -5,18 +5,18 @@ var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
|
5
5
|
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
6
|
import {
|
|
7
7
|
PluginProvider
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PRW3HXM3.js";
|
|
9
9
|
import {
|
|
10
10
|
RuntimeConfigError,
|
|
11
11
|
registerModelProviderPluginLoader
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-QHJJMZLX.js";
|
|
13
|
+
import "./chunk-PAINMSID.js";
|
|
14
|
+
import "./chunk-ODMBPDDV.js";
|
|
15
15
|
import "./chunk-TV45EUGM.js";
|
|
16
16
|
|
|
17
17
|
// packages/cli/dist/model-plugins.js
|
|
18
18
|
async function pluginProviderFactory(p, deps = {}) {
|
|
19
|
-
const { readPinnedEntry, runTranslator } = await import("./chunk-
|
|
19
|
+
const { readPinnedEntry, runTranslator } = await import("./chunk-5PV7S2ZP.js");
|
|
20
20
|
const entry = await readPinnedEntry(p.dir, p.manifest);
|
|
21
21
|
if (!entry.ok)
|
|
22
22
|
throw new RuntimeConfigError(`The model-provider plugin org-pack/plugins/model-providers/${p.manifest.id}/ ${entry.message}.`);
|
|
@@ -0,0 +1,221 @@
|
|
|
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
|
+
estateRepos,
|
|
8
|
+
matchRepoType
|
|
9
|
+
} from "./chunk-4SLBCEPD.js";
|
|
10
|
+
import {
|
|
11
|
+
baseClonePath
|
|
12
|
+
} from "./chunk-XOL3GFW2.js";
|
|
13
|
+
import {
|
|
14
|
+
fsRepo,
|
|
15
|
+
globToRegExp
|
|
16
|
+
} from "./chunk-7AB6OWTV.js";
|
|
17
|
+
import {
|
|
18
|
+
ReadingRulesFile,
|
|
19
|
+
isAdopted,
|
|
20
|
+
loadOrgPack,
|
|
21
|
+
notesFor,
|
|
22
|
+
orgPackDirOf,
|
|
23
|
+
require_dist
|
|
24
|
+
} from "./chunk-PAINMSID.js";
|
|
25
|
+
import {
|
|
26
|
+
__toESM
|
|
27
|
+
} from "./chunk-TV45EUGM.js";
|
|
28
|
+
|
|
29
|
+
// packages/cli/dist/reading-rules.js
|
|
30
|
+
var import_yaml = __toESM(require_dist(), 1);
|
|
31
|
+
import { createHash } from "node:crypto";
|
|
32
|
+
import { readdir, readFile } from "node:fs/promises";
|
|
33
|
+
import { join } from "node:path";
|
|
34
|
+
import { existsSync } from "node:fs";
|
|
35
|
+
|
|
36
|
+
// packages/cli/dist/org-notes.js
|
|
37
|
+
async function repoTypeOf(op, repo, dir) {
|
|
38
|
+
const named = estateRepos(op).find((r2) => r2.id === repo)?.type;
|
|
39
|
+
const byName = op.repoTypes.find((t) => t.id === named);
|
|
40
|
+
if (byName)
|
|
41
|
+
return byName;
|
|
42
|
+
if (!dir || !op.repoTypes.length)
|
|
43
|
+
return void 0;
|
|
44
|
+
const r = await matchRepoType(fsRepo(repo, dir, "0".repeat(40)), op.repoTypes).catch(() => void 0);
|
|
45
|
+
return r && (r.verdict === "clear" || r.verdict === "partial") ? op.repoTypes.find((t) => t.id === r.best) : void 0;
|
|
46
|
+
}
|
|
47
|
+
async function notesAt(root, repo, dir, given) {
|
|
48
|
+
const op = given ?? await loadOrgPack(orgPackDirOf(root)).catch(() => void 0);
|
|
49
|
+
if (!op)
|
|
50
|
+
return { notes: [] };
|
|
51
|
+
const type = await repoTypeOf(op, repo, dir);
|
|
52
|
+
return { ...type ? { type: type.id } : {}, notes: notesFor(type, op.conventions) };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// packages/cli/dist/reading-rules.js
|
|
56
|
+
var rulesDirOf = (root) => join(orgPackDirOf(root), "reading-rules");
|
|
57
|
+
var relDir = (root) => `${isAdopted(root) ? ".atticus/org-pack" : "org-pack"}/reading-rules`;
|
|
58
|
+
var ruleId = (r) => `org:${r.key}@${createHash("sha256").update(JSON.stringify([r.rule, r.files ?? []])).digest("hex").slice(0, 8)}`;
|
|
59
|
+
async function readLayer(root, rel) {
|
|
60
|
+
const text = await readFile(join(rulesDirOf(root), ...rel.split("/")), "utf8").catch(() => void 0);
|
|
61
|
+
if (text === void 0)
|
|
62
|
+
return {};
|
|
63
|
+
let data;
|
|
64
|
+
try {
|
|
65
|
+
data = (0, import_yaml.parse)(text);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
return {
|
|
68
|
+
problem: `${relDir(root)}/${rel} can't be read: ${e.message.split("\n")[0]}`
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
const r = ReadingRulesFile.safeParse(data);
|
|
72
|
+
return r.success ? { file: r.data } : {
|
|
73
|
+
problem: `${relDir(root)}/${rel} isn't valid: ${r.error.issues.map((i) => `${i.path.join(".") || "(top)"}: ${i.message}`).join("; ")}`
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
async function layerFiles(root, repo, type) {
|
|
77
|
+
const out = [];
|
|
78
|
+
if (type) {
|
|
79
|
+
const teams = await readdir(join(rulesDirOf(root), "imported"), { withFileTypes: true }).catch(() => []);
|
|
80
|
+
for (const t of teams.filter((x) => x.isDirectory()).map((x) => x.name).sort())
|
|
81
|
+
out.push({ layer: "imported", rel: `imported/${t}/${type}.yaml` });
|
|
82
|
+
}
|
|
83
|
+
out.push({ layer: "org", rel: "org.yaml" });
|
|
84
|
+
if (type)
|
|
85
|
+
out.push({ layer: "type", rel: `types/${type}.yaml` });
|
|
86
|
+
out.push({ layer: "repo", rel: `repos/${repo}.yaml` });
|
|
87
|
+
return out;
|
|
88
|
+
}
|
|
89
|
+
async function effectiveRules(root, repo, o = {}) {
|
|
90
|
+
const op = o.op ?? await loadOrgPack(orgPackDirOf(root)).catch(() => void 0);
|
|
91
|
+
const cloneOf = () => {
|
|
92
|
+
try {
|
|
93
|
+
const c = isAdopted(root) ? root : baseClonePath(root, repo);
|
|
94
|
+
return existsSync(c) ? c : void 0;
|
|
95
|
+
} catch {
|
|
96
|
+
return void 0;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const dir = o.dir ?? (op ? cloneOf() : void 0);
|
|
100
|
+
const type = op ? (await repoTypeOf(op, repo, dir))?.id ?? estateRepos(op).find((r) => r.id === repo)?.type : void 0;
|
|
101
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
102
|
+
const drafts = [];
|
|
103
|
+
const off = [];
|
|
104
|
+
const problems = [];
|
|
105
|
+
const builtinOff = /* @__PURE__ */ new Set();
|
|
106
|
+
for (const { layer, rel } of await layerFiles(root, repo, type)) {
|
|
107
|
+
const { file, problem } = await readLayer(root, rel);
|
|
108
|
+
if (problem)
|
|
109
|
+
problems.push(problem);
|
|
110
|
+
if (!file)
|
|
111
|
+
continue;
|
|
112
|
+
const at = `${relDir(root)}/${rel}`;
|
|
113
|
+
for (const x of layer === "imported" ? [] : file.off) {
|
|
114
|
+
off.push({ ...x, layer, file: at });
|
|
115
|
+
if (x.key.startsWith("builtin:"))
|
|
116
|
+
builtinOff.add(x.key.slice("builtin:".length));
|
|
117
|
+
else
|
|
118
|
+
byKey.delete(x.key);
|
|
119
|
+
}
|
|
120
|
+
for (const r of file.rules) {
|
|
121
|
+
const e = { ...r, layer, file: at, id: ruleId(r) };
|
|
122
|
+
if (r.status === "draft")
|
|
123
|
+
drafts.push(e);
|
|
124
|
+
else {
|
|
125
|
+
const had = byKey.get(r.key);
|
|
126
|
+
if (had && had.layer === "imported" && layer === "imported")
|
|
127
|
+
problems.push(`${had.file} and ${at} both have an active rule ${r.key}: ${at}'s is given to reads. Rename one, or set one back to draft.`);
|
|
128
|
+
byKey.set(r.key, e);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
rules: [...byKey.values()],
|
|
134
|
+
drafts,
|
|
135
|
+
off,
|
|
136
|
+
problems,
|
|
137
|
+
builtinOff: [...builtinOff].sort()
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
var ruleMatches = (r, path) => !r.files?.length || r.files.some((g) => globToRegExp(g).test(path));
|
|
141
|
+
var ruleIds = (e) => e.rules.map((r) => r.id).sort();
|
|
142
|
+
function orgRulesLacking(rec, e) {
|
|
143
|
+
const had = new Set(rec?.sets ?? []);
|
|
144
|
+
return e.rules.filter((r) => !had.has(r.id));
|
|
145
|
+
}
|
|
146
|
+
function readingRulesText(e, only) {
|
|
147
|
+
const rules = only ? e.rules.filter((r) => only.has(r.id)) : e.rules;
|
|
148
|
+
if (!rules.length && !e.builtinOff.length)
|
|
149
|
+
return "";
|
|
150
|
+
return [
|
|
151
|
+
"## The organisation's reading rules for this repo",
|
|
152
|
+
"",
|
|
153
|
+
"These come from the organisation's org pack, reviewed like code. Follow them as you follow the rules above; every fact still cites its line, and a rule never changes a fact's shape.",
|
|
154
|
+
"",
|
|
155
|
+
...rules.map((r) => `- ${r.key} (${r.layer}${r.files?.length ? `; for ${r.files.join(", ")}` : ""}): ${r.rule.replace(/\s+/g, " ").trim()}${exampleOf(r.example)}`),
|
|
156
|
+
...e.builtinOff.length ? [
|
|
157
|
+
"",
|
|
158
|
+
`Switched off here by the organisation: Atticus's ${e.builtinOff.join(", ")} rules; leave out what only they ask for.`
|
|
159
|
+
] : []
|
|
160
|
+
].join("\n");
|
|
161
|
+
}
|
|
162
|
+
var exampleOf = (e) => {
|
|
163
|
+
if (!e || e.length > 300)
|
|
164
|
+
return "";
|
|
165
|
+
const m = /^(.+):(\d+)$/.exec(e);
|
|
166
|
+
if (!m)
|
|
167
|
+
return "";
|
|
168
|
+
const rel = m[1].replace(/\\/g, "/");
|
|
169
|
+
if (/^([A-Za-z]:|\/|~)/.test(rel))
|
|
170
|
+
return "";
|
|
171
|
+
const segs = rel.split("/");
|
|
172
|
+
const last = segs.at(-1);
|
|
173
|
+
const folders = segs.slice(0, -1);
|
|
174
|
+
const ok = /^[^\s`/:,]+$/.test(last) && folders.every((x) => x !== ".." && !/[`\n\r:,!?]|\.\s/.test(x) && x.split(/\s+/).length <= 2) && folders.filter((x) => /\s/.test(x)).length <= 1;
|
|
175
|
+
return ok ? ` For example \`${e}\`.` : "";
|
|
176
|
+
};
|
|
177
|
+
async function rulesLackingAll(root, repo, rec, o = {}) {
|
|
178
|
+
const { rulesLacking } = await import("./chunk-G6X4YL4D.js");
|
|
179
|
+
return [
|
|
180
|
+
...rulesLacking(rec),
|
|
181
|
+
...orgRulesLacking(rec, await effectiveRules(root, repo, o).catch(() => void 0) ?? {
|
|
182
|
+
rules: [],
|
|
183
|
+
drafts: [],
|
|
184
|
+
off: [],
|
|
185
|
+
problems: [],
|
|
186
|
+
builtinOff: []
|
|
187
|
+
}).filter((r) => r.files?.length).map((r) => r.id)
|
|
188
|
+
];
|
|
189
|
+
}
|
|
190
|
+
function kindGlob(file) {
|
|
191
|
+
const base = file.split("/").pop() ?? file;
|
|
192
|
+
const m = /([A-Z][a-z0-9]+)\.([A-Za-z0-9]+)$/.exec(base);
|
|
193
|
+
return m ? `**/*${m[1]}.${m[2]}` : `**/${base}`;
|
|
194
|
+
}
|
|
195
|
+
function ruleFromPairing(o) {
|
|
196
|
+
const key = `paths-to-${o.to}`.toLowerCase().replace(/[^a-z0-9-]+/g, "-").slice(0, 60);
|
|
197
|
+
return {
|
|
198
|
+
key,
|
|
199
|
+
status: "draft",
|
|
200
|
+
rule: `In ${o.type} repos, a call to ${o.to} can name its path through a field, a setting or a helper (here \`${o.value}\`), not the path itself: follow it to the literal path the code or its settings give, and write that as the call's path, with the line that sets it in cite.with. The routes it reaches start like ${[o.method, o.path].filter(Boolean).join(" ")}.`,
|
|
201
|
+
files: [kindGlob(o.file)],
|
|
202
|
+
example: `${o.file}:${o.line}`,
|
|
203
|
+
by: `drafted${o.drafter ? ` by ${o.drafter}` : ""} from ${o.by}'s pairing on the canvas`
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export {
|
|
208
|
+
repoTypeOf,
|
|
209
|
+
notesAt,
|
|
210
|
+
rulesDirOf,
|
|
211
|
+
ruleId,
|
|
212
|
+
effectiveRules,
|
|
213
|
+
ruleMatches,
|
|
214
|
+
ruleIds,
|
|
215
|
+
orgRulesLacking,
|
|
216
|
+
readingRulesText,
|
|
217
|
+
exampleOf,
|
|
218
|
+
rulesLackingAll,
|
|
219
|
+
kindGlob,
|
|
220
|
+
ruleFromPairing
|
|
221
|
+
};
|
|
@@ -3,22 +3,22 @@ import { fileURLToPath as __atticusFileURLToPath } from "node:url";
|
|
|
3
3
|
var require = __atticusCreateRequire(import.meta.url);
|
|
4
4
|
var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
5
5
|
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
|
+
import {
|
|
7
|
+
doctorChecks
|
|
8
|
+
} from "./chunk-HGHRSF3E.js";
|
|
6
9
|
import {
|
|
7
10
|
buildSite,
|
|
8
11
|
catalogRecords,
|
|
9
12
|
openChanges
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
doctorChecks
|
|
13
|
-
} from "./chunk-AIOQPLA5.js";
|
|
13
|
+
} from "./chunk-FY3QIRTL.js";
|
|
14
14
|
import {
|
|
15
15
|
readProbes,
|
|
16
16
|
whatRunsWhere
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3AQ2R5NL.js";
|
|
18
18
|
import {
|
|
19
19
|
baseClonePath,
|
|
20
20
|
loadRepos
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XOL3GFW2.js";
|
|
22
22
|
import {
|
|
23
23
|
CatalogBaseline,
|
|
24
24
|
DEFAULT_RUNTIME,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
loadOrgPack,
|
|
29
29
|
orgPackDirOf,
|
|
30
30
|
require_dist
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PAINMSID.js";
|
|
32
32
|
import {
|
|
33
33
|
__toESM
|
|
34
34
|
} from "./chunk-TV45EUGM.js";
|
|
@@ -90,7 +90,17 @@ async function setupSteps(root, o = {}) {
|
|
|
90
90
|
label: "The org pack has an owner",
|
|
91
91
|
done: !!op.pack?.owner && op.pack.owner !== "unassigned",
|
|
92
92
|
detail: op.pack?.owner && op.pack.owner !== "unassigned" ? op.pack.owner : "unassigned",
|
|
93
|
-
fix: "
|
|
93
|
+
fix: "Name the person who looks after the org pack (normally the platform lead): type their handle under this step on Home in the app, or run atticus orgpack owner <handle>. It is saved as owner in org-pack/pack.yaml; propose it for review."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
// Ninth UX walk: the constitution's pattern rule has nothing to check against while the
|
|
97
|
+
// registry is empty (so it doesn't fire), and nobody can pick a code: register them here.
|
|
98
|
+
id: "patterns",
|
|
99
|
+
label: "The integration pattern registry has patterns",
|
|
100
|
+
done: op.patterns.length > 0,
|
|
101
|
+
detail: op.patterns.length ? `${op.patterns.length} pattern${op.patterns.length === 1 ? "" : "s"}: ${op.patterns.map((p) => p.code).sort().join(", ")}` : "empty: the critic can't check a hop's pattern until it has some",
|
|
102
|
+
fix: "Add one YAML file per integration pattern your organisation approves under org-pack/patterns/ (its code, status confirmed, its route and controls; the starter pack's patterns show the shape), run atticus orgpack validate, and propose it for review. The app has no editor for patterns yet.",
|
|
103
|
+
optional: true
|
|
94
104
|
},
|
|
95
105
|
{
|
|
96
106
|
// ADR 0121 item 6: how AI runs here is a choice, not the default left by accident.
|
|
@@ -5,26 +5,26 @@ var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
|
5
5
|
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
6
|
import {
|
|
7
7
|
loadCatalog
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5QUOPNLN.js";
|
|
9
9
|
import {
|
|
10
10
|
TARGET_DIR,
|
|
11
11
|
mergeDelta,
|
|
12
12
|
readDeltas
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BEPCKDCP.js";
|
|
14
14
|
import {
|
|
15
15
|
changeStore
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HSZMPH5T.js";
|
|
17
17
|
import {
|
|
18
18
|
changeView,
|
|
19
19
|
toDrawio,
|
|
20
20
|
toMermaid
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JYMIB5XY.js";
|
|
22
22
|
import {
|
|
23
23
|
changesDirOf,
|
|
24
24
|
changesRelOf,
|
|
25
25
|
readRepoSpec,
|
|
26
26
|
specRepos
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-PAINMSID.js";
|
|
28
28
|
|
|
29
29
|
// packages/cli/dist/change-map.js
|
|
30
30
|
import { stat } from "node:fs/promises";
|
|
@@ -56,6 +56,7 @@ async function targetFlowsOf(root, change) {
|
|
|
56
56
|
title,
|
|
57
57
|
source: `${changesRelOf(root)}/${change}/${TARGET_DIR}`,
|
|
58
58
|
merged,
|
|
59
|
+
deltas,
|
|
59
60
|
problems,
|
|
60
61
|
records,
|
|
61
62
|
known
|