@maycombhq/atticus 2.0.0-beta.2 → 2.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +8 -4
- package/dist/chunk-265LWMOA.js +91 -0
- package/dist/chunk-26WBY34Y.js +37 -0
- package/dist/{chunk-UBBC2XSG.js → chunk-26Z7OGQW.js} +518 -93
- package/dist/chunk-2D7PWSOK.js +172 -0
- package/dist/{chunk-JCZIKA4C.js → chunk-2HH3UCZM.js} +4 -4
- package/dist/{chunk-GDLULHTC.js → chunk-2HTEMYTB.js} +12 -26
- package/dist/chunk-2UCRFXFZ.js +130 -0
- package/dist/{chunk-MVZVGYXH.js → chunk-2V2ZPQQU.js} +81 -13
- package/dist/{chunk-BOHJZTEQ.js → chunk-36RY7ZXM.js} +130 -71
- package/dist/{chunk-I3E7CX4H.js → chunk-37WE3LS2.js} +3 -3
- package/dist/{chunk-IPKHE5D6.js → chunk-3AQ2R5NL.js} +1520 -871
- package/dist/chunk-3G6S7LAA.js +43 -0
- package/dist/chunk-3J5I7ZOU.js +58 -0
- package/dist/{chunk-65NYPGRC.js → chunk-3LZ6P5EP.js} +1 -1
- package/dist/chunk-3SSTNB4E.js +191 -0
- package/dist/chunk-3TD6S4TC.js +49 -0
- package/dist/{chunk-3C7EYRFZ.js → chunk-3UTYPHN3.js} +1 -1
- package/dist/{chunk-G2B4ZQGH.js → chunk-3WON4G3M.js} +2 -2
- package/dist/{chunk-S3QNRWYR.js → chunk-42EPP7OB.js} +12 -12
- package/dist/chunk-455SYIIE.js +113 -0
- package/dist/{chunk-YISXLPHN.js → chunk-4B6BT75O.js} +166 -23
- package/dist/{chunk-C6EKFH7J.js → chunk-4CLK2RJO.js} +7 -7
- package/dist/chunk-4CYTJ5TZ.js +38 -0
- package/dist/{chunk-EYWIDJFU.js → chunk-4D62IZII.js} +5 -5
- package/dist/chunk-4FOAYLI4.js +328 -0
- package/dist/{chunk-7JUKDRSZ.js → chunk-4KNOJC6J.js} +294 -215
- package/dist/{chunk-YMZ3TNYB.js → chunk-4PYC2UGC.js} +2 -2
- package/dist/{chunk-27NKUS3X.js → chunk-4SLBCEPD.js} +2104 -726
- package/dist/chunk-4TKVU2I2.js +122 -0
- package/dist/{chunk-RUVFXE2L.js → chunk-4WXRPQDE.js} +448 -47
- package/dist/{chunk-7ZUIMTOU.js → chunk-5CMPVC3N.js} +24 -24
- package/dist/chunk-5G7ILBUG.js +66 -0
- package/dist/{chunk-HFQCFSJR.js → chunk-5PV7S2ZP.js} +3 -3
- package/dist/{chunk-FITWGOJ2.js → chunk-5QUOPNLN.js} +4 -4
- package/dist/{chunk-Z6LF7HQN.js → chunk-5TDRBOAV.js} +5 -5
- package/dist/{chunk-T6AIP7H5.js → chunk-5WERBKLE.js} +199 -63
- package/dist/{chunk-XPCM366L.js → chunk-62DLJSLV.js} +8 -8
- package/dist/{chunk-L24C55VN.js → chunk-64AADMTW.js} +99 -25
- package/dist/{chunk-K65BJIMT.js → chunk-67BP7HXL.js} +17 -17
- package/dist/chunk-6DQYZU2W.js +379 -0
- package/dist/{chunk-EDS2L2LD.js → chunk-6EXDI5GI.js} +52 -26
- package/dist/chunk-6FNAKCET.js +38 -0
- package/dist/{chunk-6IU67AEK.js → chunk-75ASLHBT.js} +21 -15
- package/dist/{chunk-A3GY6SOA.js → chunk-75ZOZFGH.js} +18 -18
- package/dist/{chunk-MGYZM27B.js → chunk-77O633L5.js} +49 -23
- package/dist/{chunk-GQ4N4WKF.js → chunk-7AB6OWTV.js} +3 -3
- package/dist/{chunk-M766ZJ6W.js → chunk-7CZHUZBL.js} +25 -25
- package/dist/{chunk-A7UPUQFY.js → chunk-7FHNFCHK.js} +643 -124
- package/dist/chunk-7FUIVIBG.js +415 -0
- package/dist/{chunk-6QSERWXH.js → chunk-7QPCGTPS.js} +21 -21
- package/dist/{chunk-LR3R6Z2A.js → chunk-A2G72UI4.js} +7 -7
- package/dist/{chunk-I4JRCD6M.js → chunk-AE4P57KK.js} +23 -17
- package/dist/{chunk-AVJDSJ2F.js → chunk-AHW3RY3X.js} +7 -7
- package/dist/chunk-AM6FP6JW.js +43 -0
- package/dist/{chunk-CSZ4C5N6.js → chunk-AOCWFA7T.js} +93 -10
- package/dist/{chunk-EPTBZ3GP.js → chunk-API5TOUB.js} +1 -1
- package/dist/{chunk-652QWTLZ.js → chunk-AZDITBCT.js} +3 -3
- package/dist/{chunk-DPUYDDQG.js → chunk-BA2HUMDN.js} +25 -3
- package/dist/chunk-BA3U7ALS.js +99 -0
- package/dist/{chunk-HVUPKCGJ.js → chunk-BC6KKZ67.js} +5 -5
- package/dist/{chunk-CKSITVS4.js → chunk-BEPCKDCP.js} +2554 -722
- package/dist/{chunk-3ALD2W2A.js → chunk-BPPU3PW7.js} +4 -4
- package/dist/{chunk-QRAOANID.js → chunk-BVWWPBKD.js} +21 -21
- package/dist/{chunk-ZDPAS56H.js → chunk-BXBCMGIQ.js} +7 -1
- package/dist/chunk-BXZ4PKIT.js +233 -0
- package/dist/chunk-C7CEK3KW.js +247 -0
- package/dist/chunk-CFH3QH26.js +29 -0
- package/dist/chunk-CG6CULP6.js +170 -0
- package/dist/chunk-CLD4RVTA.js +45 -0
- package/dist/{chunk-DKJA76CJ.js → chunk-CNPY4NTZ.js} +13 -13
- package/dist/chunk-CNU5Q2D5.js +575 -0
- package/dist/{chunk-T2UYZSCQ.js → chunk-COYN3UAN.js} +126 -23
- package/dist/{chunk-23W7VWKR.js → chunk-CPK7QSBG.js} +1360 -113
- package/dist/{chunk-4AK7IBVP.js → chunk-D2WSW4GU.js} +1 -1
- package/dist/{chunk-ABWHYWNI.js → chunk-D57MFJPP.js} +3 -3
- package/dist/chunk-D5KV5PSK.js +45 -0
- package/dist/chunk-D5MASS4I.js +48 -0
- package/dist/{chunk-7EOBHUMC.js → chunk-DCWN3HFV.js} +2 -2
- package/dist/{chunk-QSXK2RGH.js → chunk-DDJPM5YX.js} +2 -2
- package/dist/chunk-DN4A2Q2O.js +57 -0
- package/dist/{chunk-IHMLFRVV.js → chunk-DUPZPDCJ.js} +58 -16
- package/dist/{chunk-PRPPGYZG.js → chunk-E2VXBSIR.js} +4 -4
- package/dist/chunk-E57AOFYN.js +32 -0
- package/dist/{chunk-UGLN7QHV.js → chunk-ECLXZWAG.js} +12 -12
- package/dist/{chunk-5WG5YP4T.js → chunk-EDZ45WIR.js} +14 -14
- package/dist/chunk-EFCQSMXB.js +37 -0
- package/dist/{chunk-2ANOROX3.js → chunk-EZIN5E5B.js} +8 -8
- package/dist/{chunk-BWZ77RQT.js → chunk-F6H2RJ3N.js} +1 -1
- package/dist/{chunk-OLQJTJJU.js → chunk-FAJDKNSD.js} +7 -3
- package/dist/chunk-FGAGWYZB.js +47 -0
- package/dist/{chunk-4WBVUHXN.js → chunk-FLVZFTLQ.js} +18 -18
- package/dist/chunk-FQ6WH6PB.js +140 -0
- package/dist/{chunk-T6XQL73F.js → chunk-FRHD22WM.js} +61 -23
- package/dist/{chunk-XAKWMCXI.js → chunk-FVMPFCDS.js} +4 -4
- package/dist/{chunk-B2WLAWNJ.js → chunk-FY3QIRTL.js} +3 -3
- package/dist/{chunk-CPA6HPVR.js → chunk-FYBF5MB2.js} +15 -11
- package/dist/{chunk-V2YTAIQO.js → chunk-G5YJBNDZ.js} +21 -6
- package/dist/chunk-G6IQYM25.js +339 -0
- package/dist/chunk-G6X4YL4D.js +161 -0
- package/dist/{chunk-SJRGMG6A.js → chunk-GC2VK3JT.js} +25 -25
- package/dist/{chunk-SP2I63OO.js → chunk-GCS3FZOB.js} +77 -3
- package/dist/{chunk-6TACQN3N.js → chunk-GDZB57IU.js} +5 -5
- package/dist/chunk-GIFMBCTW.js +221 -0
- package/dist/{chunk-YY6ZQQBP.js → chunk-GK4PYVEC.js} +18 -8
- package/dist/{chunk-TDD55CJH.js → chunk-GNWAOVFQ.js} +6 -5
- package/dist/chunk-GS76RXQE.js +226 -0
- package/dist/{chunk-YYQN46FY.js → chunk-GSGIZ2OO.js} +23 -23
- package/dist/chunk-GUYL7RMK.js +60 -0
- package/dist/chunk-GX74YWR7.js +321 -0
- package/dist/chunk-HE3HRDNZ.js +122 -0
- package/dist/{chunk-AIOQPLA5.js → chunk-HGHRSF3E.js} +30 -12
- package/dist/{chunk-2RMYG36Q.js → chunk-HK3VOHIE.js} +198 -336
- package/dist/{chunk-QZSX3F7C.js → chunk-HS4BGB4G.js} +24 -22
- package/dist/{chunk-XY3P7JW7.js → chunk-HSZMPH5T.js} +834 -149
- package/dist/{chunk-L6SGQIR3.js → chunk-HWD4JPU7.js} +4 -2
- package/dist/{chunk-PCVDV3UZ.js → chunk-HXXP2NTE.js} +6 -6
- package/dist/{chunk-AA6YULYB.js → chunk-I2A3Z5AK.js} +7 -7
- package/dist/{chunk-N7IXEHK3.js → chunk-ICHDSWEY.js} +7 -7
- package/dist/chunk-IFFRGC3N.js +31 -0
- package/dist/{chunk-4BN53TG3.js → chunk-IFHDV6KQ.js} +31 -23
- package/dist/chunk-J2O4LFVI.js +80 -0
- package/dist/chunk-J5AAZ6OJ.js +161 -0
- package/dist/{chunk-ZMFPW66A.js → chunk-JAABT3DA.js} +3 -3
- package/dist/chunk-JITJP64K.js +34 -0
- package/dist/chunk-JKIGL3XQ.js +162 -0
- package/dist/chunk-JRVNXLZP.js +615 -0
- package/dist/chunk-JRXHON4E.js +41 -0
- package/dist/{chunk-DHPACDG7.js → chunk-JS6WMC3J.js} +8 -8
- package/dist/chunk-JU4QNJSR.js +62 -0
- package/dist/{chunk-PAMPPUR6.js → chunk-JYMIB5XY.js} +1697 -172
- package/dist/{chunk-RRTKKSLQ.js → chunk-JYTIHTIK.js} +8 -6
- package/dist/{chunk-3HI6Z55Y.js → chunk-K332XW7K.js} +324 -39
- package/dist/{chunk-GLUX4EEP.js → chunk-K6JB6XTX.js} +9 -9
- package/dist/chunk-KDAHXQIE.js +294 -0
- package/dist/chunk-KYZMRSPS.js +93 -0
- package/dist/chunk-L4CESDPB.js +22 -0
- package/dist/{chunk-NXFPS2LR.js → chunk-LEBR5NHW.js} +14 -14
- package/dist/chunk-LIJJCBQI.js +223 -0
- package/dist/{chunk-DE76JROX.js → chunk-LIRVU3HW.js} +16 -16
- package/dist/{chunk-JMSCMUCA.js → chunk-LN77DXBM.js} +145 -21
- package/dist/{chunk-JIITQXFB.js → chunk-LNWEWYCM.js} +2969 -788
- package/dist/{chunk-TANFV3MZ.js → chunk-LO3BLMVG.js} +3 -3
- package/dist/chunk-LPV6T362.js +250 -0
- package/dist/{chunk-2VHF7OXM.js → chunk-LQH4P45K.js} +1 -1
- package/dist/chunk-LU4MQVAL.js +41 -0
- package/dist/chunk-LWDNKE4X.js +273 -0
- package/dist/chunk-M4H2UG4R.js +218 -0
- package/dist/{chunk-6BVONWJ7.js → chunk-M6D2U3YM.js} +3 -3
- package/dist/chunk-MD7KUEJ3.js +514 -0
- package/dist/{chunk-66YVAGGM.js → chunk-MMZUN7ZO.js} +20 -20
- package/dist/chunk-MZGRDONP.js +916 -0
- package/dist/chunk-N3RUGTGV.js +39 -0
- package/dist/{chunk-JGZCG5VM.js → chunk-NCB6656Z.js} +7 -7
- package/dist/{chunk-4NDAAFQT.js → chunk-NRQ65LTQ.js} +7 -5
- package/dist/{chunk-UNM6ZOKP.js → chunk-NTAVOWYD.js} +145 -18
- package/dist/{chunk-3USYZGRF.js → chunk-NYOABJNK.js} +36 -27
- package/dist/{chunk-WVPJSRRJ.js → chunk-O4IKAIZ2.js} +24 -20
- package/dist/{chunk-D3PO4DOZ.js → chunk-ODMBPDDV.js} +51 -14
- package/dist/chunk-OKUB6RJA.js +533 -0
- package/dist/chunk-OMPENNWY.js +39 -0
- package/dist/chunk-OPQZISG3.js +25 -0
- package/dist/{chunk-5GGOLAKC.js → chunk-OV57AHCG.js} +26 -26
- package/dist/chunk-OZJ3JLYI.js +58 -0
- package/dist/{chunk-KEM4SDDP.js → chunk-P2VBXX7N.js} +11 -10
- package/dist/{chunk-S2A7YC3Q.js → chunk-PAINMSID.js} +10150 -1720
- package/dist/chunk-PKJAV25S.js +43 -0
- package/dist/{chunk-EBEW3XXQ.js → chunk-PNQLCRSS.js} +4 -4
- package/dist/{chunk-WY6PP6AA.js → chunk-PQH56YF6.js} +37 -5
- package/dist/chunk-PRTBPXYA.js +50 -0
- package/dist/{chunk-YEDDOYSC.js → chunk-PRW3HXM3.js} +2 -2
- package/dist/chunk-PRZ7KMWL.js +42 -0
- package/dist/{chunk-6M5NK3K3.js → chunk-PTQ3ZALZ.js} +42 -4
- package/dist/{chunk-5GDRCDQB.js → chunk-PUEWDYGP.js} +2 -2
- package/dist/chunk-Q26LDIUV.js +236 -0
- package/dist/{chunk-CR3MTH32.js → chunk-Q46QDDMF.js} +77 -7
- package/dist/chunk-QBNWF5ZU.js +19 -0
- package/dist/chunk-QE527XRY.js +342 -0
- package/dist/{chunk-CNUKCS2T.js → chunk-QHJJMZLX.js} +1518 -54
- package/dist/chunk-QJCJOMW3.js +425 -0
- package/dist/{chunk-VYDBJ73M.js → chunk-QKMRFNMA.js} +15 -15
- package/dist/chunk-QOOEYDNJ.js +317 -0
- package/dist/chunk-QSIDVFB7.js +45 -0
- package/dist/{chunk-R77KLRB3.js → chunk-RA33EYS4.js} +19 -18
- package/dist/{chunk-DFBCSHVT.js → chunk-RALY3E5U.js} +4 -4
- package/dist/{chunk-ZCJDOK2S.js → chunk-S2RY3BOD.js} +35 -21
- package/dist/chunk-S5LSDXV4.js +40 -0
- package/dist/chunk-SB5GRUFM.js +54 -0
- package/dist/chunk-SH27FYPF.js +150 -0
- package/dist/chunk-T74WQQGS.js +40 -0
- package/dist/{chunk-O3WI5KWW.js → chunk-TGVVUKTG.js} +2 -2
- package/dist/chunk-THN26IEF.js +48 -0
- package/dist/chunk-TJH2EUAZ.js +47 -0
- package/dist/{chunk-ZNCEKR4J.js → chunk-TQ4TG57V.js} +12 -8
- package/dist/{chunk-7FBGJFEE.js → chunk-TQTRWENN.js} +12 -12
- package/dist/{chunk-TYAID7B7.js → chunk-TSM6T6GQ.js} +23 -23
- package/dist/{chunk-DPZHZQKE.js → chunk-TW3KOSQK.js} +43 -10
- package/dist/{chunk-MC3H7736.js → chunk-TWQRPM76.js} +37 -4
- package/dist/chunk-TYD6I4CZ.js +109 -0
- package/dist/chunk-U3NBK4EU.js +420 -0
- package/dist/{chunk-6JCPI55B.js → chunk-UDXWIPCB.js} +47 -7
- package/dist/{chunk-MMOSZPWJ.js → chunk-UEVZZZU2.js} +4 -4
- package/dist/{chunk-JBTK5OP2.js → chunk-UF4UHCIG.js} +2 -2
- package/dist/{chunk-6JUBZBMW.js → chunk-UFE36WJH.js} +4 -4
- package/dist/{chunk-ONLS5QA5.js → chunk-URIKUID7.js} +12 -12
- package/dist/chunk-UYLBRRFK.js +1106 -0
- package/dist/chunk-UZACEG2C.js +515 -0
- package/dist/{chunk-7SW2QWLU.js → chunk-VAMHOHUU.js} +12 -12
- package/dist/{chunk-RZPYKDWS.js → chunk-VUVGX5L2.js} +1 -1
- package/dist/{chunk-Q4D5X7QB.js → chunk-VYOCPTUB.js} +44 -24
- package/dist/{chunk-CAQZUNOH.js → chunk-WAZEXEJH.js} +567 -3
- package/dist/chunk-WCEF7H6L.js +221 -0
- package/dist/{chunk-2DIQQJCB.js → chunk-WEOMJHPV.js} +12 -12
- package/dist/{chunk-FHH4I4ZV.js → chunk-WFU77T3A.js} +12 -6
- package/dist/chunk-WIWTJMMR.js +292 -0
- package/dist/{chunk-2BFCZ3RK.js → chunk-WNTIOBOG.js} +18 -18
- package/dist/{chunk-7WD63HU2.js → chunk-X2CUXTWU.js} +6 -6
- package/dist/chunk-X7EMBM5X.js +34 -0
- package/dist/chunk-XEQCQO66.js +33 -0
- package/dist/{chunk-F7HYOUFF.js → chunk-XG4WJHLQ.js} +20 -4
- package/dist/{chunk-EFHQ3TWP.js → chunk-XOL3GFW2.js} +171 -31
- package/dist/{chunk-NE2W3OO7.js → chunk-XQ3YZ4QW.js} +22 -22
- package/dist/{chunk-CEXSU4S6.js → chunk-Y6K3CJBU.js} +723 -85
- package/dist/{chunk-4RS5KZQD.js → chunk-YAH5IQAL.js} +5 -5
- package/dist/{chunk-64EQYWCA.js → chunk-YBOVNMHC.js} +51 -14
- package/dist/chunk-YF5DZCPN.js +1212 -0
- package/dist/chunk-YIGBJNH4.js +37 -0
- package/dist/{chunk-BKVWTZ6A.js → chunk-YJ3TBOTK.js} +25 -25
- package/dist/{chunk-Q5AMFEWD.js → chunk-YKTE2RU3.js} +2 -2
- package/dist/{chunk-7EKXJZ2Y.js → chunk-YO2PKTXT.js} +296 -37
- package/dist/{chunk-6J5OKA4Y.js → chunk-YTTNTQOX.js} +15 -15
- package/dist/{chunk-OT2O76OS.js → chunk-YWAKDNMH.js} +183 -33
- package/dist/{chunk-R6XF6UR3.js → chunk-YZDZOEV4.js} +4 -4
- package/dist/chunk-Z3QFH7YG.js +17 -0
- package/dist/{chunk-W5BVQF44.js → chunk-Z6VLC5X4.js} +17 -17
- package/dist/{chunk-HLJAXMM4.js → chunk-ZFQMMU5Y.js} +2 -2
- package/dist/{chunk-W3BQAZ3Q.js → chunk-ZKYRDV7A.js} +12 -12
- package/dist/{chunk-ZMAINWBW.js → chunk-ZLS6PU2O.js} +3 -3
- package/dist/{chunk-ZVM6AKKM.js → chunk-ZOSD4FXV.js} +3 -3
- package/dist/chunk-ZPDDEVQX.js +47 -0
- package/dist/{chunk-TXLH6WHQ.js → chunk-ZQLRCA2V.js} +11 -11
- package/dist/{chunk-HITVBIJS.js → chunk-ZX7235KR.js} +128 -54
- package/dist/{chunk-GT4I4ZWM.js → chunk-ZZFHLRQW.js} +18 -16
- package/dist/files.json +636 -364
- package/dist/packages/naysayer/constitution/constitution.yaml +19 -0
- package/dist/packages/sdk/npm/index.js +5614 -2343
- package/dist/packages/ui/dist/assets/{elk-api-tma0MCuh.js → elk-api-CowTnhEJ.js} +2 -2
- package/dist/packages/ui/dist/assets/index-Dw20IRhQ.css +1 -0
- package/dist/packages/ui/dist/assets/index-z2wv0d5d.js +47 -0
- package/dist/packages/ui/dist/index.html +2 -2
- package/package.json +4 -4
- package/dist/chunk-2BF2EYJV.js +0 -174
- package/dist/chunk-42EVSKME.js +0 -37
- package/dist/chunk-4BKGMUIK.js +0 -53
- package/dist/chunk-5KLGBXG5.js +0 -48
- package/dist/chunk-6BNC6EQ4.js +0 -41
- package/dist/chunk-6D2CQ5II.js +0 -41
- package/dist/chunk-7AVHLZGD.js +0 -45
- package/dist/chunk-D46WUV3T.js +0 -33
- package/dist/chunk-E36QOJMD.js +0 -47
- package/dist/chunk-FQXYPF7E.js +0 -147
- package/dist/chunk-GBRFVT63.js +0 -45
- package/dist/chunk-ICY36XCH.js +0 -34
- package/dist/chunk-J4K3KVLD.js +0 -131
- package/dist/chunk-JZU3H6UQ.js +0 -54
- package/dist/chunk-NN2ZQEB4.js +0 -38
- package/dist/chunk-PCOCACY3.js +0 -385
- package/dist/chunk-RTEYOSJY.js +0 -29
- package/dist/chunk-RVH5SUW5.js +0 -69
- package/dist/chunk-VN3DP4LQ.js +0 -43
- package/dist/chunk-XPTOBS2D.js +0 -48
- package/dist/packages/ui/dist/assets/index-B54fm9FQ.js +0 -29
- package/dist/packages/ui/dist/assets/index-DD_hufQz.css +0 -1
|
@@ -0,0 +1,379 @@
|
|
|
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
|
+
HttpError,
|
|
8
|
+
badRequest,
|
|
9
|
+
conflict,
|
|
10
|
+
notFound
|
|
11
|
+
} from "./chunk-HK3VOHIE.js";
|
|
12
|
+
import {
|
|
13
|
+
appendLines,
|
|
14
|
+
safeMessage,
|
|
15
|
+
withFileLock
|
|
16
|
+
} from "./chunk-THN26IEF.js";
|
|
17
|
+
import {
|
|
18
|
+
estateJoinOnFile,
|
|
19
|
+
stampOf
|
|
20
|
+
} from "./chunk-GX74YWR7.js";
|
|
21
|
+
import {
|
|
22
|
+
intakeContext
|
|
23
|
+
} from "./chunk-TQ4TG57V.js";
|
|
24
|
+
import {
|
|
25
|
+
estateFacts,
|
|
26
|
+
estateRepos,
|
|
27
|
+
outsideProfileSystems
|
|
28
|
+
} from "./chunk-4SLBCEPD.js";
|
|
29
|
+
import {
|
|
30
|
+
readVendorSpec
|
|
31
|
+
} from "./chunk-CPK7QSBG.js";
|
|
32
|
+
import {
|
|
33
|
+
FactCorrection,
|
|
34
|
+
QuestionError,
|
|
35
|
+
TARGETS_STEP_ID,
|
|
36
|
+
answerQuestion,
|
|
37
|
+
api_exports,
|
|
38
|
+
correctionLine,
|
|
39
|
+
factsDirOf,
|
|
40
|
+
factsRelOf,
|
|
41
|
+
inputsDirOf,
|
|
42
|
+
isAdopted,
|
|
43
|
+
linkCandidates,
|
|
44
|
+
listQuestions,
|
|
45
|
+
loadOrgPack,
|
|
46
|
+
orgPackDirOf,
|
|
47
|
+
parseCorrections,
|
|
48
|
+
questionsRelOf
|
|
49
|
+
} from "./chunk-PAINMSID.js";
|
|
50
|
+
import {
|
|
51
|
+
writeFileAtomic
|
|
52
|
+
} from "./chunk-ODMBPDDV.js";
|
|
53
|
+
|
|
54
|
+
// packages/cli/dist/ui-api-links.js
|
|
55
|
+
import { mkdir, readFile } from "node:fs/promises";
|
|
56
|
+
import { join } from "node:path";
|
|
57
|
+
var REPO = /^[A-Za-z0-9._-]{1,200}$/;
|
|
58
|
+
var SPECS = /* @__PURE__ */ new Set(["openapi", "swagger"]);
|
|
59
|
+
var quiet = { out: () => void 0, err: () => void 0 };
|
|
60
|
+
var JOINABLE_CALL = /* @__PURE__ */ new Set(["rest", "soap", "grpc", "graphql"]);
|
|
61
|
+
function settingsOf(facts) {
|
|
62
|
+
const out = {};
|
|
63
|
+
for (const f of facts)
|
|
64
|
+
if (f.kind === "config" && f.value && !(f.key in out))
|
|
65
|
+
out[f.key] = f.value;
|
|
66
|
+
return out;
|
|
67
|
+
}
|
|
68
|
+
async function boxApis(root, op, estate, to) {
|
|
69
|
+
if (to.repo) {
|
|
70
|
+
const known = estateRepos(op).find((r) => r.id === to.repo);
|
|
71
|
+
if (!known)
|
|
72
|
+
throw notFound(`No repo of the manifest is ${to.repo}.`);
|
|
73
|
+
const facts = estate.repos.find((r) => r.repo === to.repo)?.facts ?? [];
|
|
74
|
+
const gateway = /gateway|proxy|apigee/i.test(known.type ?? "");
|
|
75
|
+
const forwardsOf = (entry) => {
|
|
76
|
+
const f = facts.find((x) => x.kind === "call" && x.from === entry && JOINABLE_CALL.has(x.callType));
|
|
77
|
+
return f?.kind === "call" ? f.path : void 0;
|
|
78
|
+
};
|
|
79
|
+
const apis2 = facts.flatMap((f) => {
|
|
80
|
+
if (f.kind !== "entry" || !f.path)
|
|
81
|
+
return [];
|
|
82
|
+
const forwards = gateway ? forwardsOf(f.id) : void 0;
|
|
83
|
+
return [
|
|
84
|
+
{
|
|
85
|
+
id: f.id,
|
|
86
|
+
kind: gateway ? "route" : "entry",
|
|
87
|
+
...f.method ? { method: f.method.toUpperCase() } : {},
|
|
88
|
+
path: f.path,
|
|
89
|
+
at: `${f.cite.file}:${f.cite.line}`,
|
|
90
|
+
...forwards ? { forwards } : {}
|
|
91
|
+
}
|
|
92
|
+
];
|
|
93
|
+
});
|
|
94
|
+
return {
|
|
95
|
+
name: to.repo,
|
|
96
|
+
apis: apis2,
|
|
97
|
+
...apis2.length ? {} : {
|
|
98
|
+
noApis: estate.unverified?.includes(to.repo) ? { why: "unverified", command: `atticus verify ${to.repo}` } : { why: "not-read", command: `atticus map --all --repos ${to.repo}` }
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const system = outsideProfileSystems(op).find((s) => s.id === to.system);
|
|
103
|
+
if (!system)
|
|
104
|
+
throw notFound(`No outside system of the profile is ${to.system}.`);
|
|
105
|
+
const { inputs } = await intakeContext(root, quiet);
|
|
106
|
+
const doc = inputs.documents.find((d) => d.id && !d.supersededBy && SPECS.has(d.classification) && d.systems[0] === system.id);
|
|
107
|
+
const spec = doc ? readVendorSpec(doc.path, await readFile(join(inputsDirOf(root), ...doc.path.split("/").slice(1)), "utf8"), system.id) : void 0;
|
|
108
|
+
const apis = (spec?.operations ?? []).map((o) => ({
|
|
109
|
+
id: o.id,
|
|
110
|
+
kind: "operation",
|
|
111
|
+
method: o.method.toUpperCase(),
|
|
112
|
+
path: o.fullPath ?? o.path,
|
|
113
|
+
...o.cite ? { at: o.cite } : {},
|
|
114
|
+
...o.operationId ? { words: o.operationId } : {}
|
|
115
|
+
}));
|
|
116
|
+
return {
|
|
117
|
+
name: system.name || system.id,
|
|
118
|
+
apis,
|
|
119
|
+
...apis.length ? {} : {
|
|
120
|
+
noApis: {
|
|
121
|
+
why: "no-spec",
|
|
122
|
+
command: `atticus intake add <${system.id}'s OpenAPI file>`
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
async function context(root, from, to) {
|
|
128
|
+
if (!REPO.test(from))
|
|
129
|
+
throw badRequest(`${JSON.stringify(from)} isn't a repo name.`);
|
|
130
|
+
if (to.repo && to.repo === from)
|
|
131
|
+
throw badRequest("Pick another box: a box can't call itself here.");
|
|
132
|
+
const op = await loadOrgPack(orgPackDirOf(root));
|
|
133
|
+
if (!estateRepos(op).some((r) => r.id === from))
|
|
134
|
+
throw notFound(`No repo of the manifest is ${from}.`);
|
|
135
|
+
const stamp = await stampOf(root);
|
|
136
|
+
const estate = await estateFacts(root, op, "");
|
|
137
|
+
const join0 = await estateJoinOnFile(root, op, estate, stamp);
|
|
138
|
+
const facts = estate.repos.find((r) => r.repo === from)?.facts ?? [];
|
|
139
|
+
const b = await boxApis(root, op, estate, to);
|
|
140
|
+
return { op, estate, join: join0, facts, b, pairs: estate.pairs[from] ?? {} };
|
|
141
|
+
}
|
|
142
|
+
async function openRuleQuestion(root, from) {
|
|
143
|
+
const qs = (await listQuestions(root, { step: TARGETS_STEP_ID }).catch(() => ({ questions: [] }))).questions;
|
|
144
|
+
return qs.find((q) => q.repo === from && q.state === "open");
|
|
145
|
+
}
|
|
146
|
+
function boxesOf(query) {
|
|
147
|
+
const from = query.get("from") ?? "";
|
|
148
|
+
const to = query.get("system") ? { system: query.get("system") } : { repo: query.get("to") ?? "" };
|
|
149
|
+
if (!from || !to.repo && !to.system)
|
|
150
|
+
throw badRequest("Say both boxes: from=<repo> and to=<repo> (or system=<id>).");
|
|
151
|
+
return { from, to };
|
|
152
|
+
}
|
|
153
|
+
async function candidatesOf(root, from, to) {
|
|
154
|
+
const c = await context(root, from, to);
|
|
155
|
+
const cands = linkCandidates({
|
|
156
|
+
from,
|
|
157
|
+
facts: c.facts,
|
|
158
|
+
join: c.join,
|
|
159
|
+
apis: c.b.apis,
|
|
160
|
+
pairs: c.pairs,
|
|
161
|
+
to,
|
|
162
|
+
settings: settingsOf(c.facts)
|
|
163
|
+
});
|
|
164
|
+
const q = await openRuleQuestion(root, from);
|
|
165
|
+
const loose = cands.calls.filter((x) => x.status !== "paired").length;
|
|
166
|
+
const view = {
|
|
167
|
+
from,
|
|
168
|
+
to,
|
|
169
|
+
toName: c.b.name,
|
|
170
|
+
calls: cands.calls,
|
|
171
|
+
apis: cands.apis,
|
|
172
|
+
...c.facts.some((f) => f.kind === "call") ? {} : c.estate.unverified.includes(from) ? { noCalls: { why: "unverified", command: `atticus verify ${from}` } } : { noCalls: { command: `atticus map --all --gaps --repos ${from}` } },
|
|
173
|
+
...c.b.noApis ? { noApis: c.b.noApis } : {},
|
|
174
|
+
...q && loose ? { rule: { question: q.id, calls: loose } } : {}
|
|
175
|
+
};
|
|
176
|
+
return { view, facts: c.facts };
|
|
177
|
+
}
|
|
178
|
+
function uiLinkRoutes(r, ctx, deps = {}) {
|
|
179
|
+
const now = deps.now ?? (() => /* @__PURE__ */ new Date());
|
|
180
|
+
return r.add("GET", "/api/links/candidates", async ({ query }) => {
|
|
181
|
+
const { from, to } = boxesOf(query);
|
|
182
|
+
return { status: 200, body: (await candidatesOf(ctx.root, from, to)).view };
|
|
183
|
+
}).add("POST", "/api/links/connect", async ({ body }) => {
|
|
184
|
+
const b = api_exports.ConnectLinksRequest.safeParse(body ?? {});
|
|
185
|
+
if (!b.success)
|
|
186
|
+
throw badRequest("Say from, to and the pairs: { from, to: { repo }, pairs: [{ call, api }] }.", {
|
|
187
|
+
errors: b.error.issues.map((i) => ({ path: i.path.join("."), message: i.message }))
|
|
188
|
+
});
|
|
189
|
+
const { from, to, pairs, rule, preview } = b.data;
|
|
190
|
+
if (!pairs.length && !rule)
|
|
191
|
+
throw badRequest("Pick at least one pair, or the rule for all.");
|
|
192
|
+
const c = await context(ctx.root, from, to);
|
|
193
|
+
const calls = new Map(c.facts.filter((f) => f.kind === "call").map((f) => [f.id, f]));
|
|
194
|
+
const apis = new Map(c.b.apis.map((a) => [a.id, a]));
|
|
195
|
+
const at = now().toISOString();
|
|
196
|
+
const corrections = [];
|
|
197
|
+
for (const p of pairs) {
|
|
198
|
+
const f = calls.get(p.call);
|
|
199
|
+
if (!f)
|
|
200
|
+
throw c.estate.unverified.includes(from) ? conflict(`${from}'s facts aren't all verified yet: atticus verify ${from} first.`) : notFound(`${from} has no call ${p.call} on record.`);
|
|
201
|
+
const api = apis.get(p.api);
|
|
202
|
+
if (!api)
|
|
203
|
+
throw notFound(`${c.b.name} has no API ${p.api} on record.`);
|
|
204
|
+
corrections.push(FactCorrection.parse({
|
|
205
|
+
schemaVersion: 1,
|
|
206
|
+
fact: f.id,
|
|
207
|
+
target: { kind: "call", file: f.cite.file, line: f.cite.line, value: f.cite.value },
|
|
208
|
+
action: "link",
|
|
209
|
+
link: {
|
|
210
|
+
...to.repo ? { repo: to.repo } : { system: to.system },
|
|
211
|
+
...api.kind !== "operation" ? { entry: api.id } : {},
|
|
212
|
+
...api.method ? { method: api.method } : {},
|
|
213
|
+
path: api.path
|
|
214
|
+
},
|
|
215
|
+
by: ctx.user,
|
|
216
|
+
at
|
|
217
|
+
}));
|
|
218
|
+
}
|
|
219
|
+
let ruleOut;
|
|
220
|
+
const q = rule ? await openRuleQuestion(ctx.root, from) : void 0;
|
|
221
|
+
if (rule && !q)
|
|
222
|
+
throw conflict(`${from} has no open target question to answer for all its calls: pair them one by one.`);
|
|
223
|
+
const target = to.repo ?? to.system;
|
|
224
|
+
if (q)
|
|
225
|
+
ruleOut = { question: q.id, match: "/**", target };
|
|
226
|
+
const rel = `${factsRelOf(ctx.root)}/${from}.corrections.jsonl`;
|
|
227
|
+
const lines = corrections.map(correctionLine);
|
|
228
|
+
const verify = `atticus verify ${from} --write`;
|
|
229
|
+
const commit = `git add ${rel}${q ? ` ${questionsRelOf(ctx.root)}/` : ""}
|
|
230
|
+
git commit -m "${safeMessage(`${from}: calls paired with ${target} on the canvas`)}"`;
|
|
231
|
+
let answer;
|
|
232
|
+
if (q) {
|
|
233
|
+
const { targetAnswerOf } = await import("./chunk-IFFRGC3N.js");
|
|
234
|
+
const t = await targetAnswerOf(ctx.root, q, target);
|
|
235
|
+
if ("problem" in t)
|
|
236
|
+
throw new HttpError(422, "Atticus can't do that yet", t.problem);
|
|
237
|
+
answer = t;
|
|
238
|
+
}
|
|
239
|
+
if (preview) {
|
|
240
|
+
const { verifyWritePreview } = await import("./chunk-KDAHXQIE.js");
|
|
241
|
+
const v = await verifyWritePreview(ctx.root, from, { extra: corrections });
|
|
242
|
+
return {
|
|
243
|
+
status: 200,
|
|
244
|
+
body: {
|
|
245
|
+
written: false,
|
|
246
|
+
file: rel,
|
|
247
|
+
lines,
|
|
248
|
+
...ruleOut ? { rule: ruleOut } : {},
|
|
249
|
+
...v ? { preview: v } : {},
|
|
250
|
+
verify,
|
|
251
|
+
commit
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
if (lines.length) {
|
|
256
|
+
await mkdir(factsDirOf(ctx.root), { recursive: true });
|
|
257
|
+
const file = join(factsDirOf(ctx.root), `${from}.corrections.jsonl`);
|
|
258
|
+
await appendLines(file, lines);
|
|
259
|
+
ctx.events.publish({ type: "file.changed", path: rel });
|
|
260
|
+
}
|
|
261
|
+
if (q && answer) {
|
|
262
|
+
try {
|
|
263
|
+
await answerQuestion(ctx.root, q.id, {
|
|
264
|
+
text: answer.text,
|
|
265
|
+
match: "/**",
|
|
266
|
+
by: ctx.user,
|
|
267
|
+
at
|
|
268
|
+
});
|
|
269
|
+
ctx.events.publish({ type: "file.changed", path: questionsRelOf(ctx.root) });
|
|
270
|
+
} catch (e) {
|
|
271
|
+
if (e instanceof QuestionError)
|
|
272
|
+
throw new HttpError(422, "Atticus can't do that yet", e.message);
|
|
273
|
+
throw e;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return {
|
|
277
|
+
status: 200,
|
|
278
|
+
body: {
|
|
279
|
+
written: true,
|
|
280
|
+
file: rel,
|
|
281
|
+
lines,
|
|
282
|
+
...ruleOut ? { rule: ruleOut } : {},
|
|
283
|
+
verify,
|
|
284
|
+
commit
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
}).add("POST", "/api/reading-rules/from-pairing", async ({ body }) => {
|
|
288
|
+
const b = api_exports.RuleFromPairingRequest.safeParse(body ?? {});
|
|
289
|
+
if (!b.success)
|
|
290
|
+
throw badRequest("Say the repo and the pairing's line: { repo, line }.");
|
|
291
|
+
if (!REPO.test(b.data.repo))
|
|
292
|
+
throw badRequest(`${JSON.stringify(b.data.repo)} isn't a repo name.`);
|
|
293
|
+
const onFile = await readFile(join(factsDirOf(ctx.root), `${b.data.repo}.corrections.jsonl`), "utf8").catch(() => "");
|
|
294
|
+
if (!onFile.split(/\r?\n/).some((l) => l.trim() === b.data.line.trim()))
|
|
295
|
+
throw notFound(`${b.data.repo}'s corrections have no such pairing.`);
|
|
296
|
+
const c = parseCorrections(b.data.line).corrections[0];
|
|
297
|
+
if (!c || c.action !== "link" || !c.link)
|
|
298
|
+
throw badRequest("That line isn't a pairing (a link correction).");
|
|
299
|
+
const op = await loadOrgPack(orgPackDirOf(ctx.root));
|
|
300
|
+
const type = estateRepos(op).find((x) => x.id === b.data.repo)?.type;
|
|
301
|
+
if (!type)
|
|
302
|
+
throw notFound(`No repo of the manifest is ${b.data.repo}.`);
|
|
303
|
+
const { ruleFromPairing } = await import("./chunk-3G6S7LAA.js");
|
|
304
|
+
const { rulesAddCommand } = await import("./chunk-GUYL7RMK.js");
|
|
305
|
+
const rule = ruleFromPairing({
|
|
306
|
+
type,
|
|
307
|
+
to: c.link.repo ?? c.link.system ?? "it",
|
|
308
|
+
file: c.target.file,
|
|
309
|
+
line: c.target.line,
|
|
310
|
+
value: c.target.value,
|
|
311
|
+
...c.link.method ? { method: c.link.method } : {},
|
|
312
|
+
path: c.link.path,
|
|
313
|
+
by: c.by,
|
|
314
|
+
drafter: ctx.user
|
|
315
|
+
});
|
|
316
|
+
const said = [];
|
|
317
|
+
const code = await rulesAddCommand(ctx.root, { type }, {
|
|
318
|
+
key: rule.key,
|
|
319
|
+
rule: rule.rule,
|
|
320
|
+
files: (rule.files ?? []).join(","),
|
|
321
|
+
...rule.example ? { example: rule.example } : {},
|
|
322
|
+
draft: true,
|
|
323
|
+
...rule.by ? { by: rule.by } : {}
|
|
324
|
+
}, { out: (l) => said.push(l), err: (l) => said.push(l) });
|
|
325
|
+
if (code !== 0)
|
|
326
|
+
throw conflict(said.join(" "));
|
|
327
|
+
const rel = `${isAdopted(ctx.root) ? ".atticus/org-pack" : "org-pack"}/reading-rules/types/${type}.yaml`;
|
|
328
|
+
ctx.events.publish({ type: "file.changed", path: rel });
|
|
329
|
+
return {
|
|
330
|
+
status: 200,
|
|
331
|
+
body: {
|
|
332
|
+
file: rel,
|
|
333
|
+
key: rule.key,
|
|
334
|
+
rule: rule.rule,
|
|
335
|
+
activate: `atticus rules activate ${rule.key} --type ${type}`
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
}).add("POST", "/api/facts/{repo}/corrections/undo", async ({ params, body }) => {
|
|
339
|
+
const repo = params.repo;
|
|
340
|
+
if (!REPO.test(repo))
|
|
341
|
+
throw badRequest(`${JSON.stringify(repo)} isn't a repo name.`);
|
|
342
|
+
const b = api_exports.UndoCorrectionRequest.safeParse(body ?? {});
|
|
343
|
+
if (!b.success)
|
|
344
|
+
throw badRequest("Say which line to remove: { line }.");
|
|
345
|
+
const file = join(factsDirOf(ctx.root), `${repo}.corrections.jsonl`);
|
|
346
|
+
const rel = `${factsRelOf(ctx.root)}/${repo}.corrections.jsonl`;
|
|
347
|
+
await withFileLock(file, async () => {
|
|
348
|
+
const text = await readFile(file, "utf8").catch(() => void 0);
|
|
349
|
+
if (text === void 0)
|
|
350
|
+
throw notFound(`There is no ${rel}.`);
|
|
351
|
+
const lines = text.split(/\r?\n/);
|
|
352
|
+
if (!b.data.line.trim())
|
|
353
|
+
throw badRequest("Say which correction line to remove.");
|
|
354
|
+
const i = lines.findIndex((l) => l.trim() === b.data.line.trim());
|
|
355
|
+
if (i < 0)
|
|
356
|
+
throw notFound(`${rel} has no such line (it may be removed already).`);
|
|
357
|
+
lines.splice(i, 1);
|
|
358
|
+
await writeFileAtomic(file, lines.join(/\r\n/.test(text) ? "\r\n" : "\n"));
|
|
359
|
+
});
|
|
360
|
+
ctx.events.publish({ type: "file.changed", path: rel });
|
|
361
|
+
return {
|
|
362
|
+
status: 200,
|
|
363
|
+
body: {
|
|
364
|
+
removed: b.data.line,
|
|
365
|
+
file: rel,
|
|
366
|
+
verify: `atticus verify ${repo} --write`,
|
|
367
|
+
commit: `git add ${rel}
|
|
368
|
+
git commit -m "${safeMessage(`${repo}: a correction undone`)}"`
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export {
|
|
375
|
+
settingsOf,
|
|
376
|
+
boxesOf,
|
|
377
|
+
candidatesOf,
|
|
378
|
+
uiLinkRoutes
|
|
379
|
+
};
|
|
@@ -6,40 +6,54 @@ var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
|
|
|
6
6
|
import {
|
|
7
7
|
changeSteps,
|
|
8
8
|
readNextState
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-4WXRPQDE.js";
|
|
10
|
+
import "./chunk-HE3HRDNZ.js";
|
|
11
|
+
import "./chunk-PNQLCRSS.js";
|
|
12
|
+
import "./chunk-3J5I7ZOU.js";
|
|
13
|
+
import "./chunk-OMPENNWY.js";
|
|
14
|
+
import "./chunk-4FOAYLI4.js";
|
|
15
|
+
import "./chunk-GX74YWR7.js";
|
|
16
|
+
import "./chunk-G6IQYM25.js";
|
|
17
|
+
import "./chunk-LPV6T362.js";
|
|
18
|
+
import "./chunk-Y6K3CJBU.js";
|
|
19
|
+
import "./chunk-GIFMBCTW.js";
|
|
20
|
+
import "./chunk-MD7KUEJ3.js";
|
|
21
|
+
import "./chunk-Q46QDDMF.js";
|
|
22
|
+
import "./chunk-TGVVUKTG.js";
|
|
23
|
+
import "./chunk-TQ4TG57V.js";
|
|
24
|
+
import "./chunk-EZIN5E5B.js";
|
|
25
|
+
import "./chunk-3LZ6P5EP.js";
|
|
26
|
+
import "./chunk-YWAKDNMH.js";
|
|
14
27
|
import "./chunk-3G4YI4ZU.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-3AQ2R5NL.js";
|
|
29
|
+
import "./chunk-BEPCKDCP.js";
|
|
30
|
+
import "./chunk-HWD4JPU7.js";
|
|
31
|
+
import "./chunk-5WERBKLE.js";
|
|
32
|
+
import "./chunk-VOGCSYOI.js";
|
|
33
|
+
import "./chunk-K332XW7K.js";
|
|
20
34
|
import {
|
|
21
35
|
changeReport
|
|
22
|
-
} from "./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-
|
|
36
|
+
} from "./chunk-HSZMPH5T.js";
|
|
37
|
+
import "./chunk-D2WSW4GU.js";
|
|
38
|
+
import "./chunk-4KNOJC6J.js";
|
|
39
|
+
import "./chunk-4SLBCEPD.js";
|
|
40
|
+
import "./chunk-64AADMTW.js";
|
|
41
|
+
import "./chunk-JYMIB5XY.js";
|
|
42
|
+
import "./chunk-CPK7QSBG.js";
|
|
43
|
+
import "./chunk-YO2PKTXT.js";
|
|
44
|
+
import "./chunk-TWQRPM76.js";
|
|
45
|
+
import "./chunk-VUVGX5L2.js";
|
|
32
46
|
import {
|
|
33
47
|
readChangeRepos
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-XOL3GFW2.js";
|
|
49
|
+
import "./chunk-QHJJMZLX.js";
|
|
50
|
+
import "./chunk-7AB6OWTV.js";
|
|
37
51
|
import {
|
|
38
52
|
changesDirOf,
|
|
39
53
|
listQuestions,
|
|
40
54
|
require_dist
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-PAINMSID.js";
|
|
56
|
+
import "./chunk-ODMBPDDV.js";
|
|
43
57
|
import {
|
|
44
58
|
__toESM
|
|
45
59
|
} from "./chunk-TV45EUGM.js";
|
|
@@ -65,7 +79,7 @@ async function stageProgress(dir, stage, open) {
|
|
|
65
79
|
asked: asked.filter((q) => open.has(q))
|
|
66
80
|
};
|
|
67
81
|
}
|
|
68
|
-
async function cockpit(root, id) {
|
|
82
|
+
async function cockpit(root, id, o = {}) {
|
|
69
83
|
const report = await changeReport(root, id);
|
|
70
84
|
const dir = join(changesDirOf(root), id);
|
|
71
85
|
const { questions } = await listQuestions(root, { state: "open" }).catch(() => ({
|
|
@@ -79,6 +93,16 @@ async function cockpit(root, id) {
|
|
|
79
93
|
...questions.filter((q) => q.repo === id).map((q) => q.id),
|
|
80
94
|
...stages.flatMap((s) => s.asked)
|
|
81
95
|
]);
|
|
96
|
+
const { stageQuestions, roleWithStage, personsRoles } = await import("./chunk-KYZMRSPS.js");
|
|
97
|
+
const raisedBy = await stageQuestions(root, id);
|
|
98
|
+
const byRole = {};
|
|
99
|
+
for (const q of questions) {
|
|
100
|
+
if (!ofChange.has(q.id))
|
|
101
|
+
continue;
|
|
102
|
+
const r = roleWithStage(q, raisedBy);
|
|
103
|
+
if (r)
|
|
104
|
+
byRole[r] = (byRole[r] ?? 0) + 1;
|
|
105
|
+
}
|
|
82
106
|
const state = (await readNextState(root)).changes.find((c) => c.id === id);
|
|
83
107
|
const next = state ? changeSteps(state)[0] : void 0;
|
|
84
108
|
const repos = await readChangeRepos(root, id).catch(() => void 0);
|
|
@@ -92,6 +116,8 @@ async function cockpit(root, id) {
|
|
|
92
116
|
...report.progress ? { work: report.progress.summary } : {},
|
|
93
117
|
stages: stages.map(({ asked: _asked, ...rest }) => rest),
|
|
94
118
|
openQuestions: ofChange.size,
|
|
119
|
+
openQuestionsByRole: byRole,
|
|
120
|
+
...o.user !== void 0 ? { yourRoles: await personsRoles(root, id, o.user) } : {},
|
|
95
121
|
repos: (repos?.repos ?? []).map((r) => ({
|
|
96
122
|
id: r.id,
|
|
97
123
|
branch: r.branch,
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
changeEstimateCommand,
|
|
8
|
+
estimateOf
|
|
9
|
+
} from "./chunk-WFU77T3A.js";
|
|
10
|
+
import "./chunk-GNWAOVFQ.js";
|
|
11
|
+
import "./chunk-36RY7ZXM.js";
|
|
12
|
+
import "./chunk-2V2ZPQQU.js";
|
|
13
|
+
import "./chunk-5QUOPNLN.js";
|
|
14
|
+
import "./chunk-EZIN5E5B.js";
|
|
15
|
+
import "./chunk-3LZ6P5EP.js";
|
|
16
|
+
import "./chunk-BEPCKDCP.js";
|
|
17
|
+
import "./chunk-HWD4JPU7.js";
|
|
18
|
+
import "./chunk-5WERBKLE.js";
|
|
19
|
+
import "./chunk-K332XW7K.js";
|
|
20
|
+
import "./chunk-HSZMPH5T.js";
|
|
21
|
+
import "./chunk-D2WSW4GU.js";
|
|
22
|
+
import "./chunk-4KNOJC6J.js";
|
|
23
|
+
import "./chunk-4SLBCEPD.js";
|
|
24
|
+
import "./chunk-64AADMTW.js";
|
|
25
|
+
import "./chunk-JYMIB5XY.js";
|
|
26
|
+
import "./chunk-CPK7QSBG.js";
|
|
27
|
+
import "./chunk-YO2PKTXT.js";
|
|
28
|
+
import "./chunk-TWQRPM76.js";
|
|
29
|
+
import "./chunk-XOL3GFW2.js";
|
|
30
|
+
import "./chunk-QHJJMZLX.js";
|
|
31
|
+
import "./chunk-7AB6OWTV.js";
|
|
32
|
+
import "./chunk-PAINMSID.js";
|
|
33
|
+
import "./chunk-ODMBPDDV.js";
|
|
34
|
+
import "./chunk-TV45EUGM.js";
|
|
35
|
+
export {
|
|
36
|
+
changeEstimateCommand,
|
|
37
|
+
estimateOf
|
|
38
|
+
};
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
CONSTITUTION_FILE_LABEL,
|
|
10
10
|
CriticError,
|
|
11
11
|
DRAFT_DIR,
|
|
12
|
+
LENS_BATCH_AGENT,
|
|
12
13
|
LENS_RECORDS,
|
|
13
14
|
MERGED_FLOWS,
|
|
14
15
|
OPEN_FINDINGS,
|
|
@@ -45,6 +46,7 @@ import {
|
|
|
45
46
|
clean,
|
|
46
47
|
codeRepos,
|
|
47
48
|
codeSearchFor,
|
|
49
|
+
completeLensBatch,
|
|
48
50
|
completeLensRun,
|
|
49
51
|
contentLines,
|
|
50
52
|
countedRounds,
|
|
@@ -57,6 +59,7 @@ import {
|
|
|
57
59
|
docOf,
|
|
58
60
|
draftDocs,
|
|
59
61
|
dropReviewedBefore,
|
|
62
|
+
editedByPerson,
|
|
60
63
|
escapeRe,
|
|
61
64
|
evaluateNeeds,
|
|
62
65
|
explicitQuestion,
|
|
@@ -153,23 +156,23 @@ import {
|
|
|
153
156
|
writeProposals,
|
|
154
157
|
writeQuarantineItems,
|
|
155
158
|
wroteIn
|
|
156
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-K332XW7K.js";
|
|
157
160
|
import {
|
|
158
161
|
BUILT_IN_GATES
|
|
159
|
-
} from "./chunk-
|
|
160
|
-
import "./chunk-
|
|
161
|
-
import "./chunk-
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
164
|
-
import "./chunk-
|
|
165
|
-
import "./chunk-
|
|
166
|
-
import "./chunk-
|
|
167
|
-
import "./chunk-
|
|
168
|
-
import "./chunk-
|
|
169
|
-
import "./chunk-
|
|
170
|
-
import "./chunk-
|
|
171
|
-
import "./chunk-
|
|
172
|
-
import "./chunk-
|
|
162
|
+
} from "./chunk-HSZMPH5T.js";
|
|
163
|
+
import "./chunk-D2WSW4GU.js";
|
|
164
|
+
import "./chunk-4KNOJC6J.js";
|
|
165
|
+
import "./chunk-4SLBCEPD.js";
|
|
166
|
+
import "./chunk-64AADMTW.js";
|
|
167
|
+
import "./chunk-JYMIB5XY.js";
|
|
168
|
+
import "./chunk-CPK7QSBG.js";
|
|
169
|
+
import "./chunk-YO2PKTXT.js";
|
|
170
|
+
import "./chunk-TWQRPM76.js";
|
|
171
|
+
import "./chunk-XOL3GFW2.js";
|
|
172
|
+
import "./chunk-QHJJMZLX.js";
|
|
173
|
+
import "./chunk-7AB6OWTV.js";
|
|
174
|
+
import "./chunk-PAINMSID.js";
|
|
175
|
+
import "./chunk-ODMBPDDV.js";
|
|
173
176
|
import "./chunk-TV45EUGM.js";
|
|
174
177
|
export {
|
|
175
178
|
ANSWERS_TEXT,
|
|
@@ -178,6 +181,7 @@ export {
|
|
|
178
181
|
CONSTITUTION_FILE_LABEL,
|
|
179
182
|
CriticError,
|
|
180
183
|
DRAFT_DIR,
|
|
184
|
+
LENS_BATCH_AGENT,
|
|
181
185
|
LENS_RECORDS,
|
|
182
186
|
MERGED_FLOWS,
|
|
183
187
|
OPEN_FINDINGS,
|
|
@@ -214,6 +218,7 @@ export {
|
|
|
214
218
|
clean,
|
|
215
219
|
codeRepos,
|
|
216
220
|
codeSearchFor,
|
|
221
|
+
completeLensBatch,
|
|
217
222
|
completeLensRun,
|
|
218
223
|
contentLines,
|
|
219
224
|
countedRounds,
|
|
@@ -226,6 +231,7 @@ export {
|
|
|
226
231
|
docOf,
|
|
227
232
|
draftDocs,
|
|
228
233
|
dropReviewedBefore,
|
|
234
|
+
editedByPerson,
|
|
229
235
|
escapeRe,
|
|
230
236
|
evaluateNeeds,
|
|
231
237
|
explicitQuestion,
|
|
@@ -8,28 +8,28 @@ import {
|
|
|
8
8
|
knowledgeAppliesMarkdown,
|
|
9
9
|
readKnowledgeApplies,
|
|
10
10
|
setKnowledgeStatus
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-BEPCKDCP.js";
|
|
12
|
+
import "./chunk-HWD4JPU7.js";
|
|
13
|
+
import "./chunk-5WERBKLE.js";
|
|
14
|
+
import "./chunk-K332XW7K.js";
|
|
15
|
+
import "./chunk-HSZMPH5T.js";
|
|
16
|
+
import "./chunk-D2WSW4GU.js";
|
|
17
|
+
import "./chunk-4KNOJC6J.js";
|
|
18
|
+
import "./chunk-4SLBCEPD.js";
|
|
18
19
|
import {
|
|
19
20
|
conflictLine
|
|
20
|
-
} from "./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-CNUKCS2T.js";
|
|
21
|
+
} from "./chunk-64AADMTW.js";
|
|
22
|
+
import "./chunk-JYMIB5XY.js";
|
|
23
|
+
import "./chunk-CPK7QSBG.js";
|
|
24
|
+
import "./chunk-YO2PKTXT.js";
|
|
25
|
+
import "./chunk-TWQRPM76.js";
|
|
26
|
+
import "./chunk-XOL3GFW2.js";
|
|
27
|
+
import "./chunk-QHJJMZLX.js";
|
|
28
|
+
import "./chunk-7AB6OWTV.js";
|
|
29
29
|
import {
|
|
30
30
|
changesRelOf
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-PAINMSID.js";
|
|
32
|
+
import "./chunk-ODMBPDDV.js";
|
|
33
33
|
import "./chunk-TV45EUGM.js";
|
|
34
34
|
|
|
35
35
|
// packages/cli/dist/knowledge-applies-commands.js
|