@maycombhq/atticus 2.0.0-beta.10 → 2.0.0-beta.12
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 +3 -3
- package/dist/{chunk-AY2IUF4K.js → chunk-22GLUHGE.js} +659 -73
- package/dist/{chunk-CIUHAHM6.js → chunk-2A24BNRZ.js} +8 -8
- package/dist/{chunk-2RX7PI2Y.js → chunk-2ELFEKOO.js} +4 -4
- package/dist/{chunk-QKEFZRHS.js → chunk-2P6IHSRO.js} +17 -17
- package/dist/chunk-2Q2YBAR5.js +40 -0
- package/dist/{chunk-7DUDLVFJ.js → chunk-2VQLFNBO.js} +20 -20
- package/dist/{chunk-E3Z67HRK.js → chunk-3256EDLL.js} +4 -4
- package/dist/{chunk-OIU657QQ.js → chunk-34BCKMBS.js} +4 -4
- package/dist/{chunk-UR7RMZ3R.js → chunk-34NWVIBC.js} +2 -2
- package/dist/{chunk-6VBXAGJX.js → chunk-36KD4OGC.js} +14 -14
- package/dist/{chunk-I7IWQIEB.js → chunk-3CFBU2O6.js} +4 -4
- package/dist/{chunk-OSGQW2Z6.js → chunk-3JLTN3Y7.js} +8 -8
- package/dist/{chunk-FOGG4AUR.js → chunk-3M7QBKKG.js} +25 -7
- package/dist/{chunk-UF7TAFJM.js → chunk-3RP34PYV.js} +18 -18
- package/dist/{chunk-YLAJAI2W.js → chunk-3ZKLWM5Y.js} +11 -11
- package/dist/{chunk-LTQANUDH.js → chunk-47HPZ34V.js} +25 -25
- package/dist/chunk-4BPROPGG.js +45 -0
- package/dist/{chunk-Y4BRGOJR.js → chunk-4G56W6H7.js} +13 -10
- package/dist/{chunk-YXJ4XOHF.js → chunk-4HIQ2FTI.js} +4 -4
- package/dist/{chunk-AJJK7GLO.js → chunk-4HTILEXW.js} +3 -3
- package/dist/{chunk-OJLRFGBP.js → chunk-4Q2PGM5T.js} +78 -15
- package/dist/{chunk-GR6YKM55.js → chunk-4RDW2X43.js} +108 -14
- package/dist/{chunk-23M2LUYM.js → chunk-4VOG5H2K.js} +1 -1
- package/dist/chunk-5CSZTVXH.js +34 -0
- package/dist/{chunk-65C57N7P.js → chunk-5FFMJMVH.js} +19 -19
- package/dist/{chunk-XNYNEEBR.js → chunk-5GGGAI5C.js} +18 -18
- package/dist/{chunk-IUD3ME4E.js → chunk-5H46QFSL.js} +4 -4
- package/dist/{chunk-KIHOIVST.js → chunk-5ION6STH.js} +3 -3
- package/dist/chunk-5M3CLAOV.js +39 -0
- package/dist/chunk-5OACMWWI.js +886 -0
- package/dist/{chunk-2HMWX4T6.js → chunk-6ENDKY52.js} +11 -11
- package/dist/{chunk-OS7PQ35Z.js → chunk-6FG7QKJC.js} +22 -22
- package/dist/{chunk-FEZE6NIA.js → chunk-6JV3YHRR.js} +18 -18
- package/dist/{chunk-WGZWR4RF.js → chunk-6ROZRBWH.js} +5 -5
- package/dist/{chunk-WARBF2KY.js → chunk-6S27MUQQ.js} +10 -6
- package/dist/{chunk-TZDSDDSV.js → chunk-72DY5NCN.js} +2 -2
- package/dist/chunk-76QVBNEM.js +37 -0
- package/dist/{chunk-N4QZJJVB.js → chunk-77UOXZVM.js} +5 -5
- package/dist/{chunk-LVGBKKSM.js → chunk-7AXMUE2U.js} +15 -15
- package/dist/{chunk-FJCFYKVO.js → chunk-7TEQF64E.js} +196 -76
- package/dist/{chunk-IDGSU7JF.js → chunk-7TH6I6TL.js} +9 -9
- package/dist/{chunk-ZONE6E3Z.js → chunk-7UKETVPW.js} +2 -2
- package/dist/{chunk-XKS6THI5.js → chunk-7VNEDDCC.js} +2 -2
- package/dist/{chunk-BMHGA7WD.js → chunk-A5GY2EWH.js} +12 -12
- package/dist/{chunk-E3JYO547.js → chunk-AEZ3EICK.js} +20 -20
- package/dist/{chunk-7F2RUWPU.js → chunk-ARLH2ZMD.js} +1 -1
- package/dist/{chunk-VKMTFIWS.js → chunk-AYVLEB55.js} +18 -18
- package/dist/chunk-B6X5PJSA.js +320 -0
- package/dist/{chunk-JMSEEBN4.js → chunk-BRCDEGNE.js} +1 -1
- package/dist/{chunk-67J3VZBA.js → chunk-BSVTNNUK.js} +5 -5
- package/dist/{chunk-3GTZ2OON.js → chunk-BTOGAUWX.js} +20 -11
- package/dist/{chunk-4SVJNVEE.js → chunk-BXBCMGIQ.js} +2 -0
- package/dist/chunk-BXP2Q4TD.js +48 -0
- package/dist/{chunk-XPEEICAO.js → chunk-BZRWJUB4.js} +15 -15
- package/dist/{chunk-MH5OCRUM.js → chunk-CH6LUQLD.js} +2 -2
- package/dist/{chunk-T6USVBEJ.js → chunk-CIIRPLI6.js} +5 -5
- package/dist/chunk-CJXM6SG4.js +339 -0
- package/dist/{chunk-5XDNUJ4P.js → chunk-CQD26SMZ.js} +4 -2
- package/dist/{chunk-7TGYNOXD.js → chunk-CW5SEPUT.js} +7 -7
- package/dist/{chunk-5KTOPOEP.js → chunk-CWSZP2LU.js} +25 -25
- package/dist/chunk-CXK27ZUY.js +32 -0
- package/dist/{chunk-YGKYFMSL.js → chunk-CXY4YDXS.js} +3 -3
- package/dist/{chunk-R64GLVBO.js → chunk-DDZZXVQ5.js} +10 -10
- package/dist/{chunk-7YYEKTYF.js → chunk-DGZXJO5I.js} +8 -8
- package/dist/{chunk-IV7BCWWN.js → chunk-DONCF2XC.js} +3 -3
- package/dist/{chunk-RRVT4MPS.js → chunk-DPNCAFMB.js} +18 -18
- package/dist/{chunk-UBWCUP3G.js → chunk-DQKNOHUZ.js} +2 -2
- package/dist/{chunk-NGPU2ARF.js → chunk-DW4BM73R.js} +1 -1
- package/dist/{chunk-PEF5OEMB.js → chunk-DWN7RSNQ.js} +4 -4
- package/dist/{chunk-KC5DROFC.js → chunk-DWYPYVPJ.js} +14 -14
- package/dist/{chunk-B7434AE2.js → chunk-E73QLYK7.js} +24 -3
- package/dist/{chunk-EX6ZXS5K.js → chunk-EE3UNC44.js} +4 -4
- package/dist/chunk-EJDZEK22.js +53 -0
- package/dist/{chunk-ISNZYKAS.js → chunk-ENZWVTTN.js} +21 -21
- package/dist/{chunk-ROTY5J2L.js → chunk-EREL3TQG.js} +1 -1
- package/dist/{chunk-ZZXF6OOJ.js → chunk-ESGIBN3S.js} +2 -2
- package/dist/{chunk-YGR6OCHQ.js → chunk-EU7VTBAI.js} +8 -14
- package/dist/chunk-F5GA6G3U.js +48 -0
- package/dist/{chunk-JAA53T23.js → chunk-F6FGIYPT.js} +20 -20
- package/dist/{chunk-NPCD54I7.js → chunk-FAET4BB6.js} +8 -5
- package/dist/{chunk-YPBQNJHA.js → chunk-FBFSTYAB.js} +8 -8
- package/dist/{chunk-OEI7LVRP.js → chunk-FEBYMFZA.js} +24 -24
- package/dist/chunk-FMV6IZ3P.js +54 -0
- package/dist/{chunk-F7UQR4ZX.js → chunk-FQ6IBYFC.js} +3 -3
- package/dist/{chunk-J5LHDJU4.js → chunk-FSJMFPA3.js} +7 -7
- package/dist/chunk-GFZ5MIQG.js +47 -0
- package/dist/{chunk-LK44ULGI.js → chunk-GHSVJNVL.js} +104 -11
- package/dist/{chunk-LRS573EX.js → chunk-GKPOCUQR.js} +12 -7
- package/dist/{chunk-LDKUC2QJ.js → chunk-GLSNVC67.js} +17 -17
- package/dist/{chunk-47QE246J.js → chunk-GMDOXWIS.js} +5 -5
- package/dist/{chunk-5MI2SEV5.js → chunk-GN5ZLSLD.js} +3 -3
- package/dist/{chunk-JQ7XQPQS.js → chunk-GUNBOZ75.js} +4 -4
- package/dist/{chunk-HHUFVJF7.js → chunk-GYS64N6F.js} +6 -6
- package/dist/{chunk-AKJTKMXU.js → chunk-HIQWJ6JZ.js} +5 -5
- package/dist/{chunk-6GNS32SI.js → chunk-HJ52XDST.js} +4 -4
- package/dist/{chunk-2KDSXJFJ.js → chunk-HJUEQERG.js} +34 -7
- package/dist/chunk-HKGQUOQ3.js +88 -0
- package/dist/chunk-HP32HUWR.js +41 -0
- package/dist/{chunk-R4TBNKKC.js → chunk-HY2VVVFZ.js} +1249 -610
- package/dist/{chunk-G5SFOH7P.js → chunk-I2PNEG3M.js} +38 -23
- package/dist/{chunk-Y5PZHS4K.js → chunk-INCECZ2E.js} +5 -5
- package/dist/{chunk-RK6MKKKP.js → chunk-ISXNWUG7.js} +1 -1
- package/dist/{chunk-73VPWF5R.js → chunk-ITJ7ST5E.js} +4 -4
- package/dist/{chunk-5IALSMZ2.js → chunk-J3VAFDEX.js} +14 -14
- package/dist/chunk-JGLZUQVN.js +29 -0
- package/dist/{chunk-5XN76FTF.js → chunk-JLIEAQP4.js} +5 -5
- package/dist/{chunk-MGVYVW7Q.js → chunk-JQG4VO47.js} +1 -1
- package/dist/chunk-JXXQHETS.js +130 -0
- package/dist/{chunk-APSVL2AI.js → chunk-KNGESBFW.js} +15 -15
- package/dist/{chunk-7UKVYFQ2.js → chunk-KUYA2E7M.js} +8 -8
- package/dist/{chunk-WLIIQ2A4.js → chunk-KY2ZHTBJ.js} +7 -7
- package/dist/{chunk-YPIEYQF4.js → chunk-L4UIKAWD.js} +6 -6
- package/dist/chunk-LDUJ6NIT.js +247 -0
- package/dist/{chunk-5YIBJXGB.js → chunk-LTLR4JZJ.js} +10 -10
- package/dist/{chunk-IZNSAEBX.js → chunk-MFRPLAOH.js} +2 -2
- package/dist/{chunk-6GWHKMQR.js → chunk-MH7UBG47.js} +4 -4
- package/dist/{chunk-4GZXS6S2.js → chunk-MLAACAES.js} +278 -17
- package/dist/{chunk-D3PO4DOZ.js → chunk-MMB2OHUY.js} +4 -2
- package/dist/{chunk-DDAHCPGA.js → chunk-MNCQ2GL7.js} +12 -12
- package/dist/{chunk-UYYN2IUZ.js → chunk-MNUZX67F.js} +6 -6
- package/dist/{chunk-YFSSNGLR.js → chunk-MQHYCS6A.js} +32 -29
- package/dist/{chunk-MKRBG5EF.js → chunk-MRLCNXXR.js} +1 -1
- package/dist/{chunk-BUYJL3GJ.js → chunk-NBQO75XT.js} +1 -1
- package/dist/{chunk-GXJVY6WT.js → chunk-NCONDPHH.js} +5 -5
- package/dist/{chunk-ZP4FJHR4.js → chunk-NHS55U7T.js} +18 -18
- package/dist/{chunk-CRE4BJHM.js → chunk-NL6XQZSV.js} +23 -23
- package/dist/{chunk-YVLMBAYE.js → chunk-NSJ6ZR2A.js} +3 -3
- package/dist/{chunk-XRO65C7V.js → chunk-NTNJNRHW.js} +8 -6
- package/dist/{chunk-FTV6I76U.js → chunk-NTTXTLCQ.js} +25 -25
- package/dist/chunk-NWL7XEQ4.js +37 -0
- package/dist/{chunk-CNKGYDMG.js → chunk-NWXY3B4R.js} +23 -23
- package/dist/{chunk-52R2YXP5.js → chunk-O5W4ECUY.js} +16 -16
- package/dist/{chunk-OGRWQ562.js → chunk-O6ILVBYB.js} +2 -2
- package/dist/{chunk-BJPMKJTL.js → chunk-OJAJXU65.js} +102 -2
- package/dist/{chunk-FZL2HNWP.js → chunk-OMH3I5BH.js} +3 -3
- package/dist/{chunk-MF7QH4AX.js → chunk-P6UJ22XR.js} +5 -5
- package/dist/{chunk-HE4ZQXZM.js → chunk-P76AW3PA.js} +309 -15
- package/dist/{chunk-GZ4TKR3Q.js → chunk-PCCPXWJC.js} +48 -139
- package/dist/{chunk-6TJCUYC5.js → chunk-PGFRXGHA.js} +3 -3
- package/dist/{chunk-NIXVDQVO.js → chunk-PJRMMWU4.js} +2 -2
- package/dist/{chunk-X4W4XXWP.js → chunk-PKJ3K3GM.js} +5 -5
- package/dist/{chunk-KM2FBM3T.js → chunk-PVW2N63M.js} +302 -55
- package/dist/{chunk-Y7KBQ4BD.js → chunk-Q55UP5EZ.js} +22 -22
- package/dist/{chunk-7URGP4DD.js → chunk-QAFMLBPF.js} +12 -12
- package/dist/{chunk-KIAI6PWL.js → chunk-QEZSA2O7.js} +17 -17
- package/dist/{chunk-PKCMRPPB.js → chunk-QJ3OX7OC.js} +33 -27
- package/dist/{chunk-6EDQE7GO.js → chunk-QL4VNY4U.js} +2 -2
- package/dist/{chunk-6JLPXDWN.js → chunk-QR65C3DV.js} +5 -5
- package/dist/{chunk-ILFKECGI.js → chunk-QXGOEP44.js} +4 -4
- package/dist/chunk-QY7RGTUP.js +326 -0
- package/dist/{chunk-PGKHJYOB.js → chunk-RA64IK43.js} +1 -1
- package/dist/{chunk-XB5RFZHH.js → chunk-RLJDYLID.js} +12 -12
- package/dist/{chunk-AWECWW5Y.js → chunk-RMLUZYEA.js} +13 -11
- package/dist/chunk-RSVBX6A3.js +54 -0
- package/dist/chunk-RZWZO2JQ.js +42 -0
- package/dist/chunk-S5LSDXV4.js +40 -0
- package/dist/{chunk-TM7LC37P.js → chunk-SAC6FNKR.js} +181 -117
- package/dist/{chunk-DPHCFZ7W.js → chunk-SCBU46AJ.js} +3 -3
- package/dist/{chunk-EZIUFEN6.js → chunk-SGNHNN3G.js} +12 -12
- package/dist/{chunk-XKZHAD6Y.js → chunk-SHAAGH3T.js} +15 -15
- package/dist/chunk-SK5OYWIY.js +122 -0
- package/dist/{chunk-FR7JPYBD.js → chunk-SNSFQ47W.js} +12 -12
- package/dist/{chunk-FV5YFR6I.js → chunk-SSL6JMPA.js} +9 -9
- package/dist/{chunk-XEG3FE2R.js → chunk-TA2ZNDYD.js} +1 -1
- package/dist/{chunk-JF2NSTFO.js → chunk-TEHH47TG.js} +3 -3
- package/dist/{chunk-W5OYJMBT.js → chunk-TEZSZ24W.js} +5 -5
- package/dist/{chunk-SS66Q4VE.js → chunk-TH526O6E.js} +12 -12
- package/dist/{chunk-R6B6XAKK.js → chunk-TIAPEYWI.js} +4 -4
- package/dist/chunk-TLCRIAU3.js +44 -0
- package/dist/{chunk-FMKKVWZD.js → chunk-TQYBXDVH.js} +2 -2
- package/dist/chunk-TV4CGNEY.js +43 -0
- package/dist/{chunk-QICFHVRW.js → chunk-TVSNWIAM.js} +8 -6
- package/dist/{chunk-CHC5FKTU.js → chunk-TWHZU36X.js} +1 -1
- package/dist/{chunk-BMCKL3VQ.js → chunk-TXV2AYZB.js} +24 -24
- package/dist/{chunk-577AJVRS.js → chunk-U25OX22K.js} +2039 -289
- package/dist/{chunk-7EKESFWV.js → chunk-U4NNG3ES.js} +11 -11
- package/dist/{chunk-XQ3YIV5R.js → chunk-U5T4A2QV.js} +6 -6
- package/dist/{chunk-2XM6PYQQ.js → chunk-UT5OA7KA.js} +43 -11
- package/dist/{chunk-BXIX7S7O.js → chunk-V3VCUSQ6.js} +15 -15
- package/dist/{chunk-4QUQEBFT.js → chunk-V5XV3JSP.js} +6 -6
- package/dist/{chunk-F7YL2RZ4.js → chunk-VF4VOPMB.js} +23 -23
- package/dist/{chunk-3QAKDIEU.js → chunk-VLDM4QZM.js} +23 -23
- package/dist/chunk-VP5H6DII.js +34 -0
- package/dist/{chunk-N3NBWIYQ.js → chunk-VRYQJZFL.js} +10 -9
- package/dist/{chunk-FQSRHTTC.js → chunk-VS6FS472.js} +15 -15
- package/dist/{chunk-YMOJD5BO.js → chunk-VTMIRRIZ.js} +3 -3
- package/dist/{chunk-4PJADZRR.js → chunk-VXSJKWB7.js} +16 -16
- package/dist/{chunk-MTAUZW2Z.js → chunk-WE5VMPUP.js} +216 -106
- package/dist/{chunk-ZE3P35DA.js → chunk-WEG7DY5K.js} +9 -9
- package/dist/{chunk-V2TH46ZY.js → chunk-WIF7A6JU.js} +12 -12
- package/dist/{chunk-GFXLPJWY.js → chunk-WM4N2L4T.js} +2 -2
- package/dist/{chunk-XIWYUQZQ.js → chunk-X64BFQ3R.js} +9 -9
- package/dist/{chunk-QWVBEK4P.js → chunk-XJRC3ZDI.js} +13 -13
- package/dist/{chunk-F2FOQLJ7.js → chunk-XVIVWG7B.js} +6 -6
- package/dist/{chunk-XTVDAHH2.js → chunk-Y3ZKT6IF.js} +5 -5
- package/dist/{chunk-62YMDXY6.js → chunk-YURIUFKF.js} +16 -16
- package/dist/{chunk-HKTUIMH4.js → chunk-YY2WGL6S.js} +3 -3
- package/dist/{chunk-BDEKREZH.js → chunk-Z2BA4NNR.js} +3 -3
- package/dist/{chunk-MTEBM4Y4.js → chunk-Z47YGBUY.js} +19 -12
- package/dist/chunk-Z4JSRKNR.js +41 -0
- package/dist/{chunk-G2E5MNYP.js → chunk-Z53ZB34U.js} +7 -7
- package/dist/{chunk-NNUASOAA.js → chunk-ZBOPIYOY.js} +12 -12
- package/dist/{chunk-7GB4ZRE2.js → chunk-ZBQCLKTH.js} +12 -12
- package/dist/chunk-ZGI7DNJ6.js +38 -0
- package/dist/{chunk-P3TKKBAH.js → chunk-ZPT4QX3J.js} +4 -4
- package/dist/chunk-ZS47PQ3O.js +41 -0
- package/dist/{chunk-PIVKU64W.js → chunk-ZTIMXVV5.js} +2 -2
- package/dist/{chunk-T4RTWMJD.js → chunk-ZYASEL7K.js} +5 -5
- package/dist/files.json +469 -417
- package/dist/packages/sdk/npm/index.js +2309 -1983
- package/dist/packages/ui/dist/assets/{elk-api-Mo5w5xCa.js → elk-api-D2NcYpUJ.js} +2 -2
- package/dist/packages/ui/dist/assets/{index-Bp3XhPHX.css → index-C0JEkXyN.css} +1 -1
- package/dist/packages/ui/dist/assets/index-CT7skl01.js +29 -0
- package/dist/packages/ui/dist/index.html +2 -2
- package/package.json +4 -4
- package/dist/chunk-26PLPSQW.js +0 -48
- package/dist/chunk-2G4DFUWJ.js +0 -43
- package/dist/chunk-2M6WXO73.js +0 -38
- package/dist/chunk-5F3RJCHB.js +0 -45
- package/dist/chunk-B2VSVN4P.js +0 -34
- package/dist/chunk-B3O52AUQ.js +0 -275
- package/dist/chunk-CITDNDIZ.js +0 -53
- package/dist/chunk-DAQBIK5G.js +0 -47
- package/dist/chunk-DZRQDNPT.js +0 -34
- package/dist/chunk-FLOEZA6K.js +0 -29
- package/dist/chunk-FNHSVBRA.js +0 -48
- package/dist/chunk-FPGVOSOG.js +0 -41
- package/dist/chunk-FZ2E5LGK.js +0 -54
- package/dist/chunk-HB6XSGI6.js +0 -131
- package/dist/chunk-HUZQDKQK.js +0 -48
- package/dist/chunk-L4VJ4ETL.js +0 -41
- package/dist/chunk-XPCWQXTY.js +0 -37
- package/dist/chunk-YIEOFHOL.js +0 -30
- package/dist/packages/ui/dist/assets/index-DM212ZbV.js +0 -29
|
@@ -6,32 +6,32 @@ var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
|
6
6
|
import {
|
|
7
7
|
renderTaskContext,
|
|
8
8
|
taskContext
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-DWYPYVPJ.js";
|
|
10
|
+
import "./chunk-ISXNWUG7.js";
|
|
11
|
+
import "./chunk-GMDOXWIS.js";
|
|
12
12
|
import {
|
|
13
13
|
changeFolder,
|
|
14
14
|
changeStore
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-U5T4A2QV.js";
|
|
16
|
+
import "./chunk-JQG4VO47.js";
|
|
17
|
+
import "./chunk-DW4BM73R.js";
|
|
18
|
+
import "./chunk-22GLUHGE.js";
|
|
19
|
+
import "./chunk-QR65C3DV.js";
|
|
20
|
+
import "./chunk-MLAACAES.js";
|
|
21
21
|
import {
|
|
22
22
|
attachToChange
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-HY2VVVFZ.js";
|
|
24
|
+
import "./chunk-PJRMMWU4.js";
|
|
25
|
+
import "./chunk-34NWVIBC.js";
|
|
26
|
+
import "./chunk-77UOXZVM.js";
|
|
27
|
+
import "./chunk-RA64IK43.js";
|
|
28
|
+
import "./chunk-MRLCNXXR.js";
|
|
29
|
+
import "./chunk-CQD26SMZ.js";
|
|
30
30
|
import {
|
|
31
31
|
changesRelOf,
|
|
32
32
|
inputsDirOf
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-U25OX22K.js";
|
|
34
|
+
import "./chunk-MMB2OHUY.js";
|
|
35
35
|
import "./chunk-TV45EUGM.js";
|
|
36
36
|
|
|
37
37
|
// packages/cli/dist/attach-commands.js
|
|
@@ -90,7 +90,7 @@ async function promoteChangeInput(root, change, file) {
|
|
|
90
90
|
} catch {
|
|
91
91
|
throw new AttachError("not-found", `inputs/${name} isn't attached to ${c.id}: atticus change attach ${c.id} adds it.`);
|
|
92
92
|
}
|
|
93
|
-
const { addToInbox } = await import("./chunk-
|
|
93
|
+
const { addToInbox } = await import("./chunk-ZBOPIYOY.js");
|
|
94
94
|
const r = await addToInbox(root, [{ name, bytes }]);
|
|
95
95
|
const added = r.added[0];
|
|
96
96
|
if (!added)
|
|
@@ -107,11 +107,11 @@ function attachedLine(rel, a) {
|
|
|
107
107
|
async function changeAttachCli(root, change, paths, o, io) {
|
|
108
108
|
if (change && o.prototype) {
|
|
109
109
|
if (paths.length) {
|
|
110
|
-
const { PROTOTYPE_CLI_WORDS } = await import("./chunk-
|
|
110
|
+
const { PROTOTYPE_CLI_WORDS } = await import("./chunk-7AXMUE2U.js");
|
|
111
111
|
io.err(PROTOTYPE_CLI_WORDS.usage(change, o.prototype));
|
|
112
112
|
return 2;
|
|
113
113
|
}
|
|
114
|
-
const { attachPrototype } = await import("./chunk-
|
|
114
|
+
const { attachPrototype } = await import("./chunk-7AXMUE2U.js");
|
|
115
115
|
return attachPrototype(root, change, o.prototype, { by: o.by, ...o.json ? { json: true } : {}, ...o.now ? { now: o.now } : {} }, io);
|
|
116
116
|
}
|
|
117
117
|
if (change && o.like) {
|
|
@@ -119,7 +119,7 @@ async function changeAttachCli(root, change, paths, o, io) {
|
|
|
119
119
|
io.err("--like names an archived change, attached on its own: atticus change attach add-refund-window --like raise-transfer-limit");
|
|
120
120
|
return 2;
|
|
121
121
|
}
|
|
122
|
-
const { attachPastChange, findPastChange } = await import("./chunk-
|
|
122
|
+
const { attachPastChange, findPastChange } = await import("./chunk-P6UJ22XR.js");
|
|
123
123
|
const folder = await findPastChange(root, o.like);
|
|
124
124
|
if (!folder) {
|
|
125
125
|
io.err(`There is no archived change ${o.like}: atticus change similar "<what it is about>" lists them.`);
|
|
@@ -5,31 +5,31 @@ var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
|
5
5
|
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
6
|
import {
|
|
7
7
|
INPUTS_SOURCE_ID
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DONCF2XC.js";
|
|
9
9
|
import {
|
|
10
10
|
readCatalog
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-22GLUHGE.js";
|
|
12
12
|
import {
|
|
13
13
|
readKnowledge,
|
|
14
14
|
readSnapshot
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-QR65C3DV.js";
|
|
16
|
+
import "./chunk-MLAACAES.js";
|
|
17
17
|
import {
|
|
18
18
|
scanInputs
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-HY2VVVFZ.js";
|
|
20
|
+
import "./chunk-PJRMMWU4.js";
|
|
21
|
+
import "./chunk-34NWVIBC.js";
|
|
22
|
+
import "./chunk-RA64IK43.js";
|
|
23
|
+
import "./chunk-MRLCNXXR.js";
|
|
24
|
+
import "./chunk-CQD26SMZ.js";
|
|
25
25
|
import {
|
|
26
26
|
catalogDirOf,
|
|
27
27
|
inputsDirOf,
|
|
28
28
|
knowledgeRelOf,
|
|
29
29
|
loadOrgPack,
|
|
30
30
|
orgPackDirOf
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-U25OX22K.js";
|
|
32
|
+
import "./chunk-MMB2OHUY.js";
|
|
33
33
|
import "./chunk-TV45EUGM.js";
|
|
34
34
|
|
|
35
35
|
// packages/cli/dist/documents.js
|
|
@@ -7,26 +7,26 @@ import {
|
|
|
7
7
|
expectedLine,
|
|
8
8
|
expectedModel,
|
|
9
9
|
handoffStep
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5H46QFSL.js";
|
|
11
11
|
import {
|
|
12
12
|
isHandoffStep
|
|
13
13
|
} from "./chunk-4Q3NN7VF.js";
|
|
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-
|
|
14
|
+
import "./chunk-GMDOXWIS.js";
|
|
15
|
+
import "./chunk-U5T4A2QV.js";
|
|
16
|
+
import "./chunk-JQG4VO47.js";
|
|
17
|
+
import "./chunk-DW4BM73R.js";
|
|
18
|
+
import "./chunk-22GLUHGE.js";
|
|
19
|
+
import "./chunk-QR65C3DV.js";
|
|
20
|
+
import "./chunk-MLAACAES.js";
|
|
21
|
+
import "./chunk-HY2VVVFZ.js";
|
|
22
|
+
import "./chunk-PJRMMWU4.js";
|
|
23
|
+
import "./chunk-34NWVIBC.js";
|
|
24
|
+
import "./chunk-77UOXZVM.js";
|
|
25
|
+
import "./chunk-RA64IK43.js";
|
|
26
|
+
import "./chunk-MRLCNXXR.js";
|
|
27
|
+
import "./chunk-CQD26SMZ.js";
|
|
28
|
+
import "./chunk-U25OX22K.js";
|
|
29
|
+
import "./chunk-MMB2OHUY.js";
|
|
30
30
|
import "./chunk-TV45EUGM.js";
|
|
31
31
|
export {
|
|
32
32
|
expectedLine,
|
|
@@ -6,43 +6,49 @@ var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
|
6
6
|
import {
|
|
7
7
|
changeSteps,
|
|
8
8
|
readNextState
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-PCCPXWJC.js";
|
|
10
|
+
import "./chunk-SK5OYWIY.js";
|
|
11
|
+
import "./chunk-3CFBU2O6.js";
|
|
11
12
|
import "./chunk-MKFYQQ5Q.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-2ELFEKOO.js";
|
|
14
|
+
import "./chunk-HJUEQERG.js";
|
|
15
|
+
import "./chunk-B6X5PJSA.js";
|
|
16
|
+
import "./chunk-P76AW3PA.js";
|
|
17
|
+
import "./chunk-7VNEDDCC.js";
|
|
18
|
+
import "./chunk-6S27MUQQ.js";
|
|
19
|
+
import "./chunk-EU7VTBAI.js";
|
|
20
|
+
import "./chunk-NCONDPHH.js";
|
|
17
21
|
import "./chunk-3G4YI4ZU.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-7TH6I6TL.js";
|
|
23
|
+
import "./chunk-GHSVJNVL.js";
|
|
24
|
+
import "./chunk-DWYPYVPJ.js";
|
|
25
|
+
import "./chunk-ISXNWUG7.js";
|
|
26
|
+
import "./chunk-VOGCSYOI.js";
|
|
27
|
+
import "./chunk-GMDOXWIS.js";
|
|
23
28
|
import {
|
|
24
29
|
changeReport
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-U5T4A2QV.js";
|
|
31
|
+
import "./chunk-JQG4VO47.js";
|
|
32
|
+
import "./chunk-DW4BM73R.js";
|
|
33
|
+
import "./chunk-22GLUHGE.js";
|
|
34
|
+
import "./chunk-QR65C3DV.js";
|
|
35
|
+
import "./chunk-MLAACAES.js";
|
|
36
|
+
import "./chunk-HY2VVVFZ.js";
|
|
37
|
+
import "./chunk-PJRMMWU4.js";
|
|
38
|
+
import "./chunk-34NWVIBC.js";
|
|
39
|
+
import "./chunk-77UOXZVM.js";
|
|
40
|
+
import "./chunk-TWHZU36X.js";
|
|
35
41
|
import {
|
|
36
42
|
readChangeRepos
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-RA64IK43.js";
|
|
44
|
+
import "./chunk-MRLCNXXR.js";
|
|
45
|
+
import "./chunk-CQD26SMZ.js";
|
|
40
46
|
import {
|
|
41
47
|
changesDirOf,
|
|
42
48
|
listQuestions,
|
|
43
49
|
require_dist
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-U25OX22K.js";
|
|
51
|
+
import "./chunk-MMB2OHUY.js";
|
|
46
52
|
import {
|
|
47
53
|
__toESM
|
|
48
54
|
} from "./chunk-TV45EUGM.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
RuntimeError,
|
|
9
9
|
estimateTokens,
|
|
10
10
|
registerModelProvider
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CQD26SMZ.js";
|
|
12
12
|
import {
|
|
13
13
|
redactText
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MMB2OHUY.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
@@ -6,11 +6,11 @@ var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
|
6
6
|
import {
|
|
7
7
|
boundedId,
|
|
8
8
|
opt
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HY2VVVFZ.js";
|
|
10
10
|
import {
|
|
11
11
|
curatedAliases,
|
|
12
12
|
resolveNames
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PJRMMWU4.js";
|
|
14
14
|
import {
|
|
15
15
|
DATA_RULE,
|
|
16
16
|
INSTRUCTION_RULES,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
toRunSummary,
|
|
29
29
|
verdictOf,
|
|
30
30
|
wrapData
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CQD26SMZ.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentDefinition,
|
|
34
34
|
ChecklistPack,
|
|
@@ -65,11 +65,11 @@ import {
|
|
|
65
65
|
serializeRecord,
|
|
66
66
|
sourceReadsPage,
|
|
67
67
|
toCanonicalYaml
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-U25OX22K.js";
|
|
69
69
|
import {
|
|
70
70
|
SCHEMA_VERSION,
|
|
71
71
|
writeFileAtomic
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-MMB2OHUY.js";
|
|
73
73
|
import {
|
|
74
74
|
__toESM
|
|
75
75
|
} from "./chunk-TV45EUGM.js";
|
|
@@ -5,10 +5,10 @@ var __atticusUrl = (p) => new URL("./" + p, import.meta.url).href;
|
|
|
5
5
|
var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
6
6
|
import {
|
|
7
7
|
defaultKeyStore
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-QL4VNY4U.js";
|
|
9
|
+
import "./chunk-CQD26SMZ.js";
|
|
10
|
+
import "./chunk-U25OX22K.js";
|
|
11
|
+
import "./chunk-MMB2OHUY.js";
|
|
12
12
|
import "./chunk-TV45EUGM.js";
|
|
13
13
|
|
|
14
14
|
// packages/cli/dist/secret-commands.js
|
|
@@ -0,0 +1,326 @@
|
|
|
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
|
+
loadReadPlan,
|
|
8
|
+
saveReadPlan
|
|
9
|
+
} from "./chunk-P76AW3PA.js";
|
|
10
|
+
import {
|
|
11
|
+
FACT_RULES_HASH,
|
|
12
|
+
RULE_SETS,
|
|
13
|
+
factRulesFor,
|
|
14
|
+
factsReference,
|
|
15
|
+
ruleSetKinds,
|
|
16
|
+
rulesLacking,
|
|
17
|
+
rulesNow,
|
|
18
|
+
topUpWords
|
|
19
|
+
} from "./chunk-GHSVJNVL.js";
|
|
20
|
+
import {
|
|
21
|
+
fileKinds,
|
|
22
|
+
kindsOf,
|
|
23
|
+
lineRangeOf,
|
|
24
|
+
planBatches,
|
|
25
|
+
readingRank,
|
|
26
|
+
sameCommit
|
|
27
|
+
} from "./chunk-MLAACAES.js";
|
|
28
|
+
import {
|
|
29
|
+
DATA_RULE,
|
|
30
|
+
neutralise,
|
|
31
|
+
wrapData
|
|
32
|
+
} from "./chunk-CQD26SMZ.js";
|
|
33
|
+
import {
|
|
34
|
+
citedFiles,
|
|
35
|
+
factsDirOf,
|
|
36
|
+
factsRelOf,
|
|
37
|
+
parseFacts
|
|
38
|
+
} from "./chunk-U25OX22K.js";
|
|
39
|
+
import {
|
|
40
|
+
writeFileAtomic
|
|
41
|
+
} from "./chunk-MMB2OHUY.js";
|
|
42
|
+
|
|
43
|
+
// packages/cli/dist/map-rules.js
|
|
44
|
+
import { readFile } from "node:fs/promises";
|
|
45
|
+
import { join } from "node:path";
|
|
46
|
+
var has = (a, b) => a.some((x) => b.includes(x));
|
|
47
|
+
function applies(set, f) {
|
|
48
|
+
switch (set) {
|
|
49
|
+
case "field-types":
|
|
50
|
+
case "message-types":
|
|
51
|
+
return f.code ? f.rank === 2 || f.rank === 3 || f.cited.has("entry") || f.cited.has("call") || f.cited.has("field") : f.rank === 3 && f.kinds.includes("protocols");
|
|
52
|
+
case "mappings":
|
|
53
|
+
return f.kinds.includes("gateway");
|
|
54
|
+
case "terms":
|
|
55
|
+
return !f.code && has(f.kinds, ["config", "deploy", "gateway"]);
|
|
56
|
+
case "call-auth":
|
|
57
|
+
return f.code ? f.rank === 1 || f.rank === 3 || f.cited.has("call") : has(f.kinds, ["config", "gateway"]);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function topUpFiles(o) {
|
|
61
|
+
const whole = planBatches(o.source, {
|
|
62
|
+
room: Number.MAX_SAFE_INTEGER,
|
|
63
|
+
exclude: o.exclude,
|
|
64
|
+
...o.conventions ? { conventions: o.conventions } : {}
|
|
65
|
+
});
|
|
66
|
+
const cites = /* @__PURE__ */ new Map();
|
|
67
|
+
for (const f of o.facts)
|
|
68
|
+
for (const p of citedFiles(f)) {
|
|
69
|
+
const k = cites.get(p) ?? /* @__PURE__ */ new Set();
|
|
70
|
+
k.add(f.kind);
|
|
71
|
+
cites.set(p, k);
|
|
72
|
+
}
|
|
73
|
+
const out = [];
|
|
74
|
+
for (const slice of whole.batches.flat()) {
|
|
75
|
+
const path = slice.path;
|
|
76
|
+
const rank = readingRank(path);
|
|
77
|
+
if (rank === 5)
|
|
78
|
+
continue;
|
|
79
|
+
const kinds = fileKinds(path);
|
|
80
|
+
const of = {
|
|
81
|
+
kinds,
|
|
82
|
+
rank,
|
|
83
|
+
code: kinds.includes("backend") || kinds.includes("frontend"),
|
|
84
|
+
cited: cites.get(path) ?? /* @__PURE__ */ new Set()
|
|
85
|
+
};
|
|
86
|
+
const sets = o.sets.filter((s) => has(kinds, ruleSetKinds(s)) && applies(s, of));
|
|
87
|
+
if (sets.length)
|
|
88
|
+
out.push({ path, tokens: slice.tokens, lines: slice.of, sets });
|
|
89
|
+
}
|
|
90
|
+
return out;
|
|
91
|
+
}
|
|
92
|
+
function ruleSetsOfFiles(files) {
|
|
93
|
+
const all = new Set(files.flatMap((f) => f.sets));
|
|
94
|
+
return RULE_SETS.filter((x) => all.has(x));
|
|
95
|
+
}
|
|
96
|
+
function topUpSessions(files, room) {
|
|
97
|
+
const reads = [];
|
|
98
|
+
for (const f of files) {
|
|
99
|
+
if (f.tokens <= room || f.lines <= 1) {
|
|
100
|
+
reads.push({ path: f.path, file: f.path, tokens: f.tokens, sets: f.sets });
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
const per = Math.max(1, Math.floor(f.lines * room / f.tokens));
|
|
104
|
+
for (let from = 1; from <= f.lines; from += per) {
|
|
105
|
+
const to = Math.min(f.lines, from + per - 1);
|
|
106
|
+
reads.push({
|
|
107
|
+
path: `${f.path}#L${from}-L${to}`,
|
|
108
|
+
file: f.path,
|
|
109
|
+
tokens: Math.ceil(f.tokens * (to - from + 1) / f.lines),
|
|
110
|
+
sets: f.sets
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const sessions = [];
|
|
115
|
+
for (const r of reads) {
|
|
116
|
+
const last = sessions.at(-1);
|
|
117
|
+
if (last && last.tokens + r.tokens <= room) {
|
|
118
|
+
last.reads.push(r);
|
|
119
|
+
last.tokens += r.tokens;
|
|
120
|
+
} else
|
|
121
|
+
sessions.push({ reads: [r], tokens: r.tokens });
|
|
122
|
+
}
|
|
123
|
+
return sessions.map((s) => ({
|
|
124
|
+
paths: s.reads.map((r) => r.path),
|
|
125
|
+
sets: ruleSetsOfFiles(s.reads),
|
|
126
|
+
files: new Set(s.reads.map((r) => r.file)).size,
|
|
127
|
+
tokens: s.tokens
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
var stamp = () => (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
131
|
+
async function factsOf(root, repo) {
|
|
132
|
+
const text = await readFile(join(factsDirOf(root), `${repo}.jsonl`), "utf8").catch(() => "");
|
|
133
|
+
if (!text.trim())
|
|
134
|
+
return `${repo} isn't read yet: atticus map ${repo} reads it, under every rule.`;
|
|
135
|
+
const p = parseFacts(text);
|
|
136
|
+
return p.ok ? p.facts : `${factsRelOf(root)}/${repo}.jsonl does not read as facts (${p.issues[0]?.message ?? "?"}).`;
|
|
137
|
+
}
|
|
138
|
+
async function topUpOf(root, repo, o) {
|
|
139
|
+
const plan = await loadReadPlan(root, repo);
|
|
140
|
+
const lacking = rulesLacking(plan?.rules);
|
|
141
|
+
if (!lacking.length)
|
|
142
|
+
return { lacking, files: [], ...plan ? { plan } : {} };
|
|
143
|
+
const facts = o.facts?.length ? [...o.facts] : await factsOf(root, repo);
|
|
144
|
+
if (typeof facts === "string")
|
|
145
|
+
return { error: facts };
|
|
146
|
+
if (!facts.length)
|
|
147
|
+
return { error: `${repo} isn't read yet: atticus map ${repo} reads it.` };
|
|
148
|
+
if (!facts.every((f) => sameCommit(f.commit, o.commit)))
|
|
149
|
+
return {
|
|
150
|
+
error: `${repo}'s clone moved past its facts' commit: read what changed first (atticus map ${repo}), then top it up.`
|
|
151
|
+
};
|
|
152
|
+
const files = topUpFiles({
|
|
153
|
+
facts,
|
|
154
|
+
source: o.source,
|
|
155
|
+
exclude: o.exclude,
|
|
156
|
+
sets: lacking,
|
|
157
|
+
...o.conventions ? { conventions: o.conventions } : {}
|
|
158
|
+
});
|
|
159
|
+
return { lacking, files, ...plan ? { plan } : {} };
|
|
160
|
+
}
|
|
161
|
+
var planOr = (plan, repo, commit, session) => plan ?? { schemaVersion: 2, repo, commit, session, plannedAt: stamp(), parts: [] };
|
|
162
|
+
async function recordRulesNow(root, repo, commit) {
|
|
163
|
+
const plan = await loadReadPlan(root, repo);
|
|
164
|
+
const { topUp: _t, ...rest } = planOr(plan, repo, commit, 15e4);
|
|
165
|
+
if (plan?.rules?.hash === FACT_RULES_HASH && !plan.topUp)
|
|
166
|
+
return;
|
|
167
|
+
await saveReadPlan(root, { ...rest, rules: rulesNow() });
|
|
168
|
+
}
|
|
169
|
+
async function recordTopUpVerified(root, repo, o) {
|
|
170
|
+
const plan = await loadReadPlan(root, repo);
|
|
171
|
+
const t = plan?.topUp;
|
|
172
|
+
if (!plan || !t || !o.commit || !sameCommit(t.commit, o.commit))
|
|
173
|
+
return;
|
|
174
|
+
const given = t.sessions.filter((s) => s.given && !s.done);
|
|
175
|
+
if (!given.length)
|
|
176
|
+
return;
|
|
177
|
+
const at = o.now ?? stamp();
|
|
178
|
+
const sessions = t.sessions.map((s) => s.given && !s.done ? { ...s, done: { at, commit: o.commit } } : s);
|
|
179
|
+
if (sessions.every((s) => s.done)) {
|
|
180
|
+
const { topUp: _t, ...rest } = plan;
|
|
181
|
+
const sets = [.../* @__PURE__ */ new Set([...plan.rules?.sets ?? [], ...t.sets])];
|
|
182
|
+
await saveReadPlan(root, {
|
|
183
|
+
...rest,
|
|
184
|
+
rules: t.hash === FACT_RULES_HASH ? rulesNow() : { hash: t.hash, sets }
|
|
185
|
+
});
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
await saveReadPlan(root, { ...plan, topUp: { ...t, sessions } });
|
|
189
|
+
}
|
|
190
|
+
var rulesRelOf = (root, repo) => `${factsRelOf(root)}/${repo}.rules.md`;
|
|
191
|
+
var sameSets = (a, b) => a.length === b.length && a.every((x) => b.includes(x));
|
|
192
|
+
async function plannedTopUp(root, repo, o) {
|
|
193
|
+
const t = await topUpOf(root, repo, o);
|
|
194
|
+
if ("error" in t)
|
|
195
|
+
return t;
|
|
196
|
+
if (!t.lacking.length)
|
|
197
|
+
return { lacking: [], facts: [] };
|
|
198
|
+
const facts = await factsOf(root, repo);
|
|
199
|
+
if (typeof facts === "string")
|
|
200
|
+
return { error: facts };
|
|
201
|
+
const on = t.plan?.topUp;
|
|
202
|
+
if (on && sameCommit(on.commit, o.commit) && on.hash === FACT_RULES_HASH && sameSets(on.sets, t.lacking))
|
|
203
|
+
return { lacking: t.lacking, topUp: on, facts };
|
|
204
|
+
const topUp = {
|
|
205
|
+
commit: o.commit,
|
|
206
|
+
hash: FACT_RULES_HASH,
|
|
207
|
+
sets: t.lacking,
|
|
208
|
+
session: o.session,
|
|
209
|
+
plannedAt: stamp(),
|
|
210
|
+
sessions: topUpSessions(t.files, o.session)
|
|
211
|
+
};
|
|
212
|
+
if (!o.dryRun && topUp.sessions.length)
|
|
213
|
+
await saveReadPlan(root, { ...planOr(t.plan, repo, o.commit, o.session), topUp });
|
|
214
|
+
return { lacking: t.lacking, topUp, facts };
|
|
215
|
+
}
|
|
216
|
+
async function mapRules(root, repo, o, io) {
|
|
217
|
+
const p = await plannedTopUp(root, repo, o);
|
|
218
|
+
if ("error" in p) {
|
|
219
|
+
io.err(p.error);
|
|
220
|
+
return 2;
|
|
221
|
+
}
|
|
222
|
+
if (!p.lacking.length || !p.topUp) {
|
|
223
|
+
if (o.json)
|
|
224
|
+
io.out(JSON.stringify({ repo, commit: o.commit, sets: [], sessions: 0 }, null, 2));
|
|
225
|
+
else
|
|
226
|
+
io.out(`${repo} was read under the reading rules there are now: nothing to top up.`);
|
|
227
|
+
return 0;
|
|
228
|
+
}
|
|
229
|
+
const t = p.topUp;
|
|
230
|
+
if (!t.sessions.length) {
|
|
231
|
+
await recordRulesNow(root, repo, o.commit);
|
|
232
|
+
if (o.json)
|
|
233
|
+
io.out(JSON.stringify({ repo, commit: o.commit, sets: t.sets, sessions: 0 }, null, 2));
|
|
234
|
+
else
|
|
235
|
+
io.out(`No file of ${repo} is one the reading rules added since it was read apply to (${t.sets.join(", ")}): its read is recorded as under the rules there are now.`);
|
|
236
|
+
return 0;
|
|
237
|
+
}
|
|
238
|
+
const n = t.sessions.findIndex((s) => !s.done);
|
|
239
|
+
const next = t.sessions[n];
|
|
240
|
+
const sessions = t.sessions.map((s, i) => i === n ? { ...s, given: stamp() } : s);
|
|
241
|
+
const plan = await loadReadPlan(root, repo);
|
|
242
|
+
await saveReadPlan(root, { ...plan, topUp: { ...t, sessions } });
|
|
243
|
+
const rel = rulesRelOf(root, repo);
|
|
244
|
+
await writeFileAtomic(join(factsDirOf(root), `${repo}.rules.md`), rulesPrompt(repo, o.commit, {
|
|
245
|
+
rel: factsRelOf(root),
|
|
246
|
+
session: next,
|
|
247
|
+
n: n + 1,
|
|
248
|
+
of: t.sessions.length,
|
|
249
|
+
facts: p.facts,
|
|
250
|
+
notes: o.notes
|
|
251
|
+
}));
|
|
252
|
+
if (o.json) {
|
|
253
|
+
io.out(JSON.stringify({
|
|
254
|
+
repo,
|
|
255
|
+
commit: o.commit,
|
|
256
|
+
sets: t.sets,
|
|
257
|
+
session: n + 1,
|
|
258
|
+
sessions: t.sessions.length,
|
|
259
|
+
paths: next.paths,
|
|
260
|
+
tokens: next.tokens,
|
|
261
|
+
prompt: rel
|
|
262
|
+
}, null, 2));
|
|
263
|
+
return 0;
|
|
264
|
+
}
|
|
265
|
+
const files = new Set(t.sessions.flatMap((s) => s.paths.map((x) => lineRangeOf(x)?.file ?? x)));
|
|
266
|
+
const tokens = t.sessions.reduce((x, s) => x + s.tokens, 0);
|
|
267
|
+
io.out(`Top-up of ${repo} for the reading rules added since it was read (${t.sets.join(", ")}): ${files.size} ${files.size === 1 ? "file" : "files"}, about ${tokens.toLocaleString("en-US")} tokens, in ${t.sessions.length} ${t.sessions.length === 1 ? "session" : "sessions"} of ${o.session.toLocaleString("en-US")} at most.`);
|
|
268
|
+
io.out(`Wrote ${rel}: session ${n + 1} of ${t.sessions.length}, ${next.paths.length} ${next.paths.length === 1 ? "read" : "reads"} (${next.sets.join(", ")}), about ${next.tokens.toLocaleString("en-US")} tokens.`);
|
|
269
|
+
io.out(`Start a new chat, so the session holds only these files, and run /atticus-map ${repo} --rules there (or paste ${rel}). When atticus verify ${repo} passes after it, the session is done${t.sessions.length > n + 1 ? `; the next is for another new chat` : ` and the read records the rules there are now`}.`);
|
|
270
|
+
return 0;
|
|
271
|
+
}
|
|
272
|
+
var factLine = (f) => `- ${f.id} (${f.kind}, ${f.cite.file}:${f.cite.line})`;
|
|
273
|
+
function rulesPrompt(repo, commit, c) {
|
|
274
|
+
const s = c.session;
|
|
275
|
+
const sets = s.sets;
|
|
276
|
+
const files = s.paths.map((x) => lineRangeOf(x)?.file ?? x);
|
|
277
|
+
const list = s.paths.map((x) => `- \`${x}\``).join("\n");
|
|
278
|
+
const kept = c.facts.filter((f) => citedFiles(f).some((p) => files.includes(p)));
|
|
279
|
+
const block = (id, kind, origin, text) => wrapData({ id, kind, origin }, neutralise(text, void 0, { mark: true }).text);
|
|
280
|
+
return [
|
|
281
|
+
`# Top-up of ${repo} at ${commit}`,
|
|
282
|
+
"",
|
|
283
|
+
`Session ${c.n} of ${c.of}, about ${s.tokens.toLocaleString("en-US")} tokens of source. ${topUpWords(sets)} Open each path below and nothing else: a path ending \`#L<from>-L<to>\` by those lines only, never the whole file.`,
|
|
284
|
+
"",
|
|
285
|
+
`- Write each fact to \`${c.rel}/${repo}.jsonl\`, appended, with \`commit\` ${commit}. A kept fact you add to is written again whole, under its id.`,
|
|
286
|
+
`- Then run \`atticus verify ${repo}\` and fix what it rejects until it exits 0: that records this session done${c.of > c.n ? `. The next session is for a new chat: \`/atticus-map ${repo} --rules\` there` : ", and the read as under the rules there are now"}.`,
|
|
287
|
+
"",
|
|
288
|
+
"## The rules",
|
|
289
|
+
"",
|
|
290
|
+
"Each fact has this shape:",
|
|
291
|
+
"",
|
|
292
|
+
factsReference(),
|
|
293
|
+
"",
|
|
294
|
+
factRulesFor(kindsOf(files), void 0, sets),
|
|
295
|
+
"",
|
|
296
|
+
"## Read",
|
|
297
|
+
"",
|
|
298
|
+
`The paths to open are in the data block below. ${DATA_RULE}`,
|
|
299
|
+
"",
|
|
300
|
+
block(`${repo}.rules`, "rules", `${c.rel}/${repo}.read-plan.yaml`, list),
|
|
301
|
+
"",
|
|
302
|
+
"## Facts already kept (by id; don't write them again)",
|
|
303
|
+
"",
|
|
304
|
+
kept.length ? block(`${repo}.kept`, "facts", `${c.rel}/${repo}.jsonl`, kept.map(factLine).join("\n")) : "None cite these files.",
|
|
305
|
+
...c.notes ? [
|
|
306
|
+
"",
|
|
307
|
+
"## The organisation's notes for this repo",
|
|
308
|
+
"",
|
|
309
|
+
block(`${repo}.notes`, "notes", "org-pack", c.notes)
|
|
310
|
+
] : [],
|
|
311
|
+
""
|
|
312
|
+
].join("\n");
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export {
|
|
316
|
+
topUpFiles,
|
|
317
|
+
ruleSetsOfFiles,
|
|
318
|
+
topUpSessions,
|
|
319
|
+
topUpOf,
|
|
320
|
+
recordRulesNow,
|
|
321
|
+
recordTopUpVerified,
|
|
322
|
+
rulesRelOf,
|
|
323
|
+
plannedTopUp,
|
|
324
|
+
mapRules,
|
|
325
|
+
rulesPrompt
|
|
326
|
+
};
|