@maycombhq/atticus 2.0.0-beta.10 → 2.0.0-beta.11

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.
Files changed (232) hide show
  1. package/dist/bin.js +3 -3
  2. package/dist/{chunk-GZ4TKR3Q.js → chunk-23VFQHFQ.js} +33 -134
  3. package/dist/{chunk-VKMTFIWS.js → chunk-26DBAGOP.js} +18 -18
  4. package/dist/{chunk-PKCMRPPB.js → chunk-27EDZN52.js} +33 -27
  5. package/dist/{chunk-AJJK7GLO.js → chunk-2K2ZEJVR.js} +3 -3
  6. package/dist/{chunk-XRO65C7V.js → chunk-3DDJLI7N.js} +8 -6
  7. package/dist/{chunk-XQ3YIV5R.js → chunk-3LU6YCSQ.js} +6 -6
  8. package/dist/{chunk-XTVDAHH2.js → chunk-3WU7LVTL.js} +5 -5
  9. package/dist/{chunk-6GNS32SI.js → chunk-4AYZQ3SY.js} +4 -4
  10. package/dist/{chunk-6VBXAGJX.js → chunk-4ONORLK5.js} +14 -14
  11. package/dist/{chunk-7TGYNOXD.js → chunk-4URR24DD.js} +7 -7
  12. package/dist/{chunk-CIUHAHM6.js → chunk-4UZJOQYK.js} +8 -8
  13. package/dist/chunk-4Y4FY34K.js +34 -0
  14. package/dist/{chunk-52R2YXP5.js → chunk-4YWRU7JK.js} +16 -16
  15. package/dist/chunk-52WCHTVZ.js +41 -0
  16. package/dist/{chunk-YIEOFHOL.js → chunk-55TBYJF2.js} +17 -11
  17. package/dist/{chunk-MH5OCRUM.js → chunk-5ACUW753.js} +2 -2
  18. package/dist/chunk-5BJFMAQU.js +32 -0
  19. package/dist/{chunk-YPBQNJHA.js → chunk-5ICB2BXH.js} +8 -8
  20. package/dist/{chunk-YGKYFMSL.js → chunk-5NZSJ5ZG.js} +3 -3
  21. package/dist/{chunk-YPIEYQF4.js → chunk-5P5BGG5L.js} +6 -6
  22. package/dist/{chunk-B7434AE2.js → chunk-5RUMHLIS.js} +2 -2
  23. package/dist/{chunk-5MI2SEV5.js → chunk-5TY4DTHQ.js} +3 -3
  24. package/dist/{chunk-NIXVDQVO.js → chunk-5V5BJACL.js} +2 -2
  25. package/dist/{chunk-7DUDLVFJ.js → chunk-6E2GJANQ.js} +20 -20
  26. package/dist/{chunk-RK6MKKKP.js → chunk-6N2GUZMZ.js} +1 -1
  27. package/dist/{chunk-LK44ULGI.js → chunk-6RGIM2ZH.js} +32 -6
  28. package/dist/{chunk-OS7PQ35Z.js → chunk-6V3DTQWK.js} +22 -22
  29. package/dist/{chunk-OSGQW2Z6.js → chunk-77RSRG3A.js} +8 -8
  30. package/dist/{chunk-5YIBJXGB.js → chunk-7A7IG7OA.js} +10 -10
  31. package/dist/{chunk-YLAJAI2W.js → chunk-7HQOZALR.js} +11 -11
  32. package/dist/{chunk-XB5RFZHH.js → chunk-7HWXYP4H.js} +12 -12
  33. package/dist/{chunk-PIVKU64W.js → chunk-7J7UY46S.js} +2 -2
  34. package/dist/{chunk-62YMDXY6.js → chunk-7KXYMC2P.js} +16 -16
  35. package/dist/{chunk-23M2LUYM.js → chunk-7LCQ7JAM.js} +1 -1
  36. package/dist/{chunk-5XN76FTF.js → chunk-7RGCQ4VZ.js} +5 -5
  37. package/dist/{chunk-CHC5FKTU.js → chunk-7RUMD56V.js} +1 -1
  38. package/dist/{chunk-IUD3ME4E.js → chunk-7S3XFWOU.js} +4 -4
  39. package/dist/{chunk-ZONE6E3Z.js → chunk-7SZPENUP.js} +2 -2
  40. package/dist/{chunk-T6USVBEJ.js → chunk-7VFVQX5K.js} +5 -5
  41. package/dist/chunk-ACWQDL6T.js +37 -0
  42. package/dist/{chunk-AKJTKMXU.js → chunk-ANCI3LFS.js} +5 -5
  43. package/dist/{chunk-B3O52AUQ.js → chunk-ASKDCMW5.js} +4 -4
  44. package/dist/chunk-ATNG5VOZ.js +122 -0
  45. package/dist/{chunk-I7IWQIEB.js → chunk-B3QOYE74.js} +4 -4
  46. package/dist/chunk-B3UHYXHU.js +41 -0
  47. package/dist/{chunk-GXJVY6WT.js → chunk-BA5DTXHQ.js} +5 -5
  48. package/dist/{chunk-5XDNUJ4P.js → chunk-BKFGGJKA.js} +2 -2
  49. package/dist/{chunk-DDAHCPGA.js → chunk-BQNEHB5U.js} +12 -12
  50. package/dist/{chunk-P3TKKBAH.js → chunk-BUWSOQLU.js} +4 -4
  51. package/dist/{chunk-X4W4XXWP.js → chunk-BX52REMA.js} +5 -5
  52. package/dist/{chunk-4SVJNVEE.js → chunk-BXBCMGIQ.js} +2 -0
  53. package/dist/{chunk-CRE4BJHM.js → chunk-C2YGYTU6.js} +23 -23
  54. package/dist/{chunk-7URGP4DD.js → chunk-C5JFMAXX.js} +12 -12
  55. package/dist/chunk-C75W7VXX.js +42 -0
  56. package/dist/{chunk-NGPU2ARF.js → chunk-CAN3EBE5.js} +1 -1
  57. package/dist/{chunk-FR7JPYBD.js → chunk-CE4S5ZY3.js} +12 -12
  58. package/dist/{chunk-BMHGA7WD.js → chunk-CRQ73DIF.js} +12 -12
  59. package/dist/{chunk-KIAI6PWL.js → chunk-CZI2ACNT.js} +17 -17
  60. package/dist/chunk-D7MWYJZF.js +43 -0
  61. package/dist/chunk-DDAEAZEV.js +54 -0
  62. package/dist/{chunk-G2E5MNYP.js → chunk-DGKNOPSE.js} +7 -7
  63. package/dist/{chunk-UF7TAFJM.js → chunk-DQNKG4HY.js} +18 -18
  64. package/dist/{chunk-6TJCUYC5.js → chunk-DS3ZEJVN.js} +3 -3
  65. package/dist/{chunk-3QAKDIEU.js → chunk-DYWTQXP4.js} +23 -23
  66. package/dist/chunk-E25G46RW.js +54 -0
  67. package/dist/{chunk-F2FOQLJ7.js → chunk-EAQFRD2B.js} +6 -6
  68. package/dist/{chunk-W5OYJMBT.js → chunk-EATSD7YD.js} +5 -5
  69. package/dist/{chunk-YGR6OCHQ.js → chunk-EBWIOODZ.js} +8 -14
  70. package/dist/{chunk-LVGBKKSM.js → chunk-EHUYLNLC.js} +15 -15
  71. package/dist/{chunk-IDGSU7JF.js → chunk-EI4KQYJ3.js} +9 -9
  72. package/dist/{chunk-FQSRHTTC.js → chunk-EQOSXLK3.js} +15 -15
  73. package/dist/{chunk-KC5DROFC.js → chunk-EV4TEFOD.js} +14 -14
  74. package/dist/{chunk-2KDSXJFJ.js → chunk-EW7MRMD5.js} +24 -6
  75. package/dist/{chunk-FZL2HNWP.js → chunk-EZSZFI54.js} +3 -3
  76. package/dist/{chunk-MKRBG5EF.js → chunk-FMRMTI7W.js} +1 -1
  77. package/dist/{chunk-E3JYO547.js → chunk-FOQXYMOR.js} +20 -20
  78. package/dist/{chunk-G5SFOH7P.js → chunk-G3PBLW4K.js} +8 -18
  79. package/dist/{chunk-2XM6PYQQ.js → chunk-G7WZH54P.js} +33 -11
  80. package/dist/{chunk-FTV6I76U.js → chunk-GG6HIU74.js} +25 -25
  81. package/dist/{chunk-6EDQE7GO.js → chunk-GMJXC5AL.js} +2 -2
  82. package/dist/chunk-GPLFYLGH.js +130 -0
  83. package/dist/{chunk-UR7RMZ3R.js → chunk-GVFUEGGM.js} +2 -2
  84. package/dist/{chunk-WGZWR4RF.js → chunk-GWSWS264.js} +5 -5
  85. package/dist/{chunk-NPCD54I7.js → chunk-H4VJO3M2.js} +8 -5
  86. package/dist/{chunk-73VPWF5R.js → chunk-HGQZTUAC.js} +4 -4
  87. package/dist/{chunk-2RX7PI2Y.js → chunk-HOUUBE74.js} +4 -4
  88. package/dist/{chunk-BDEKREZH.js → chunk-HQMCHHY5.js} +3 -3
  89. package/dist/{chunk-DPHCFZ7W.js → chunk-HR4DVO6X.js} +3 -3
  90. package/dist/chunk-HZYFLEWO.js +39 -0
  91. package/dist/chunk-IA2RKC6I.js +279 -0
  92. package/dist/{chunk-AY2IUF4K.js → chunk-IILZ7J3L.js} +541 -64
  93. package/dist/chunk-IRW64JFF.js +247 -0
  94. package/dist/{chunk-BJPMKJTL.js → chunk-IVHN2VYG.js} +100 -2
  95. package/dist/{chunk-OEI7LVRP.js → chunk-IWZPGIGT.js} +24 -24
  96. package/dist/{chunk-QICFHVRW.js → chunk-IY4PHPHT.js} +4 -4
  97. package/dist/{chunk-ZE3P35DA.js → chunk-J27QGXO4.js} +9 -9
  98. package/dist/{chunk-BMCKL3VQ.js → chunk-JBSD57N7.js} +24 -24
  99. package/dist/{chunk-67J3VZBA.js → chunk-JEUXCIRD.js} +5 -5
  100. package/dist/{chunk-577AJVRS.js → chunk-JMOLB347.js} +1976 -282
  101. package/dist/{chunk-7EKESFWV.js → chunk-JQX6BSE4.js} +11 -11
  102. package/dist/{chunk-YXJ4XOHF.js → chunk-JRPQX2EK.js} +4 -4
  103. package/dist/{chunk-MTEBM4Y4.js → chunk-JUQHYTXN.js} +18 -12
  104. package/dist/{chunk-APSVL2AI.js → chunk-JUZ75OG4.js} +15 -15
  105. package/dist/{chunk-7GB4ZRE2.js → chunk-KIWEBM6G.js} +12 -12
  106. package/dist/{chunk-KM2FBM3T.js → chunk-KLKENMWQ.js} +282 -50
  107. package/dist/chunk-KQK6SQPE.js +48 -0
  108. package/dist/{chunk-TM7LC37P.js → chunk-KQRYW7OS.js} +179 -115
  109. package/dist/{chunk-65C57N7P.js → chunk-KU4T2CXJ.js} +19 -19
  110. package/dist/{chunk-GFXLPJWY.js → chunk-KXZR2BLL.js} +2 -2
  111. package/dist/{chunk-MGVYVW7Q.js → chunk-L7I5PKGD.js} +1 -1
  112. package/dist/{chunk-XKS6THI5.js → chunk-LDIARP6F.js} +2 -2
  113. package/dist/{chunk-NNUASOAA.js → chunk-LEHZTKB3.js} +12 -12
  114. package/dist/{chunk-FJCFYKVO.js → chunk-LS3WR2RF.js} +86 -29
  115. package/dist/{chunk-Y4BRGOJR.js → chunk-LUPW4WLK.js} +13 -10
  116. package/dist/{chunk-HE4ZQXZM.js → chunk-LVBPY2M6.js} +14 -4
  117. package/dist/{chunk-EX6ZXS5K.js → chunk-LZWVK4YY.js} +4 -4
  118. package/dist/chunk-MCWWMMLN.js +48 -0
  119. package/dist/{chunk-BXIX7S7O.js → chunk-MKC7P5LD.js} +15 -15
  120. package/dist/{chunk-JQ7XQPQS.js → chunk-MKIULIUQ.js} +4 -4
  121. package/dist/{chunk-D3PO4DOZ.js → chunk-MMB2OHUY.js} +4 -2
  122. package/dist/{chunk-MTAUZW2Z.js → chunk-MQNBEO3N.js} +210 -104
  123. package/dist/{chunk-4PJADZRR.js → chunk-MSL3CLHX.js} +16 -16
  124. package/dist/{chunk-5KTOPOEP.js → chunk-MV4637YA.js} +25 -25
  125. package/dist/{chunk-WARBF2KY.js → chunk-MYKQVS5W.js} +4 -4
  126. package/dist/{chunk-4QUQEBFT.js → chunk-MYOW3RPC.js} +6 -6
  127. package/dist/{chunk-ROTY5J2L.js → chunk-NBGBMRIS.js} +1 -1
  128. package/dist/{chunk-BUYJL3GJ.js → chunk-NBQO75XT.js} +1 -1
  129. package/dist/chunk-NCR24CPV.js +41 -0
  130. package/dist/chunk-NDW4ROST.js +38 -0
  131. package/dist/{chunk-AWECWW5Y.js → chunk-NELU7LSL.js} +13 -11
  132. package/dist/{chunk-R64GLVBO.js → chunk-NG5R2WIY.js} +10 -10
  133. package/dist/{chunk-ZZXF6OOJ.js → chunk-NH5QH3WS.js} +2 -2
  134. package/dist/{chunk-XIWYUQZQ.js → chunk-NIYB5K5B.js} +9 -9
  135. package/dist/{chunk-LDKUC2QJ.js → chunk-NR5T46ZY.js} +17 -17
  136. package/dist/{chunk-PEF5OEMB.js → chunk-NX6QEEOA.js} +4 -4
  137. package/dist/{chunk-OGRWQ562.js → chunk-O6ILVBYB.js} +2 -2
  138. package/dist/{chunk-Y7KBQ4BD.js → chunk-OFWYZH6B.js} +22 -22
  139. package/dist/{chunk-N3NBWIYQ.js → chunk-OHXTB6CO.js} +11 -9
  140. package/dist/chunk-OJN7WME4.js +34 -0
  141. package/dist/{chunk-2HMWX4T6.js → chunk-OR5VRULZ.js} +11 -11
  142. package/dist/{chunk-UBWCUP3G.js → chunk-ORZSD2KD.js} +2 -2
  143. package/dist/{chunk-V2TH46ZY.js → chunk-OXVVRJDQ.js} +12 -12
  144. package/dist/{chunk-7YYEKTYF.js → chunk-PQW7PYUR.js} +8 -8
  145. package/dist/{chunk-EZIUFEN6.js → chunk-Q32Y5T2U.js} +12 -12
  146. package/dist/{chunk-FOGG4AUR.js → chunk-QWHTTA2X.js} +23 -7
  147. package/dist/{chunk-HKTUIMH4.js → chunk-R3RVFCJ2.js} +3 -3
  148. package/dist/{chunk-J5LHDJU4.js → chunk-R3VFLYZZ.js} +7 -7
  149. package/dist/{chunk-QKEFZRHS.js → chunk-R6UTCLH5.js} +17 -17
  150. package/dist/{chunk-SS66Q4VE.js → chunk-RB2VSED2.js} +12 -12
  151. package/dist/chunk-REWZE2XI.js +53 -0
  152. package/dist/{chunk-MF7QH4AX.js → chunk-RIEFYHXI.js} +5 -5
  153. package/dist/{chunk-7F2RUWPU.js → chunk-RJDP642F.js} +1 -1
  154. package/dist/{chunk-YFSSNGLR.js → chunk-RWMSJP7H.js} +31 -29
  155. package/dist/{chunk-JMSEEBN4.js → chunk-S2FDPN32.js} +1 -1
  156. package/dist/chunk-S5LSDXV4.js +40 -0
  157. package/dist/{chunk-OJLRFGBP.js → chunk-S7ZWCMDO.js} +79 -15
  158. package/dist/{chunk-ILFKECGI.js → chunk-SG5KY4VB.js} +4 -4
  159. package/dist/{chunk-FEZE6NIA.js → chunk-SH7AZZDA.js} +18 -18
  160. package/dist/{chunk-E3Z67HRK.js → chunk-SILY6ZEZ.js} +4 -4
  161. package/dist/{chunk-5IALSMZ2.js → chunk-SINJKQSI.js} +14 -14
  162. package/dist/chunk-SIUDWWKS.js +47 -0
  163. package/dist/{chunk-XEG3FE2R.js → chunk-SKMHS4CL.js} +1 -1
  164. package/dist/chunk-SNHOLLGN.js +280 -0
  165. package/dist/{chunk-LTQANUDH.js → chunk-SUQZGPVG.js} +25 -25
  166. package/dist/{chunk-47QE246J.js → chunk-T6ESD5KM.js} +5 -5
  167. package/dist/{chunk-YVLMBAYE.js → chunk-TC3KTG33.js} +3 -3
  168. package/dist/{chunk-IV7BCWWN.js → chunk-TCADP67G.js} +3 -3
  169. package/dist/{chunk-6JLPXDWN.js → chunk-TEBBD4XH.js} +5 -5
  170. package/dist/{chunk-F7UQR4ZX.js → chunk-TGEOLIAK.js} +3 -3
  171. package/dist/{chunk-FMKKVWZD.js → chunk-TQYBXDVH.js} +2 -2
  172. package/dist/{chunk-TZDSDDSV.js → chunk-TZXHUDI6.js} +2 -2
  173. package/dist/{chunk-YMOJD5BO.js → chunk-U5PDQTLA.js} +3 -3
  174. package/dist/{chunk-CNKGYDMG.js → chunk-U6YKL7SI.js} +23 -23
  175. package/dist/{chunk-7UKVYFQ2.js → chunk-UABFFMWH.js} +8 -8
  176. package/dist/{chunk-XPEEICAO.js → chunk-UFBKJOWB.js} +15 -15
  177. package/dist/chunk-UFTQIK2J.js +43 -0
  178. package/dist/{chunk-ZP4FJHR4.js → chunk-UNFCFJMF.js} +18 -18
  179. package/dist/{chunk-IZNSAEBX.js → chunk-UTR67XU2.js} +2 -2
  180. package/dist/{chunk-6GWHKMQR.js → chunk-V4XKYGLK.js} +4 -4
  181. package/dist/{chunk-ISNZYKAS.js → chunk-VYNZED7B.js} +21 -21
  182. package/dist/{chunk-FV5YFR6I.js → chunk-WCLAOKCH.js} +9 -9
  183. package/dist/chunk-WFYHOXTB.js +29 -0
  184. package/dist/{chunk-QWVBEK4P.js → chunk-WGU6NIUV.js} +13 -13
  185. package/dist/{chunk-R4TBNKKC.js → chunk-WIMOJMAK.js} +974 -489
  186. package/dist/{chunk-XKZHAD6Y.js → chunk-WKXOEIOY.js} +15 -15
  187. package/dist/chunk-WUE6HKIU.js +790 -0
  188. package/dist/{chunk-R6B6XAKK.js → chunk-WUP77GG2.js} +4 -4
  189. package/dist/{chunk-RRVT4MPS.js → chunk-XF3DATVU.js} +18 -18
  190. package/dist/{chunk-KIHOIVST.js → chunk-XJAJQGXJ.js} +3 -3
  191. package/dist/{chunk-Y5PZHS4K.js → chunk-XKJRPVJO.js} +5 -5
  192. package/dist/{chunk-N4QZJJVB.js → chunk-XNRPCI23.js} +5 -5
  193. package/dist/{chunk-XNYNEEBR.js → chunk-XOVLGBKI.js} +18 -18
  194. package/dist/{chunk-GR6YKM55.js → chunk-XPJR74MA.js} +95 -13
  195. package/dist/{chunk-4GZXS6S2.js → chunk-XPWSNKF3.js} +226 -8
  196. package/dist/{chunk-LRS573EX.js → chunk-XR5DD5DQ.js} +4 -4
  197. package/dist/{chunk-PGKHJYOB.js → chunk-XZJE6WIT.js} +1 -1
  198. package/dist/{chunk-3GTZ2OON.js → chunk-Y5AYBGLB.js} +16 -10
  199. package/dist/{chunk-OIU657QQ.js → chunk-YLAM4HZH.js} +4 -4
  200. package/dist/{chunk-JF2NSTFO.js → chunk-YVCOQ5TZ.js} +3 -3
  201. package/dist/{chunk-F7YL2RZ4.js → chunk-YWOMGMZB.js} +23 -23
  202. package/dist/{chunk-WLIIQ2A4.js → chunk-YWZDAZMA.js} +7 -7
  203. package/dist/{chunk-JAA53T23.js → chunk-Z2EYRUOH.js} +20 -20
  204. package/dist/{chunk-UYYN2IUZ.js → chunk-Z46OXTBE.js} +6 -6
  205. package/dist/chunk-ZHWSL6SR.js +45 -0
  206. package/dist/chunk-ZJQUIG3A.js +87 -0
  207. package/dist/{chunk-T4RTWMJD.js → chunk-ZKUDS7JG.js} +5 -5
  208. package/dist/{chunk-HHUFVJF7.js → chunk-ZTNS3L5Z.js} +6 -6
  209. package/dist/files.json +471 -423
  210. package/dist/packages/sdk/npm/index.js +2300 -1983
  211. package/dist/packages/ui/dist/assets/{elk-api-Mo5w5xCa.js → elk-api-DDup23Us.js} +2 -2
  212. package/dist/packages/ui/dist/assets/{index-Bp3XhPHX.css → index-C0JEkXyN.css} +1 -1
  213. package/dist/packages/ui/dist/assets/index-mTOWhQZm.js +29 -0
  214. package/dist/packages/ui/dist/index.html +2 -2
  215. package/package.json +5 -5
  216. package/dist/chunk-26PLPSQW.js +0 -48
  217. package/dist/chunk-2G4DFUWJ.js +0 -43
  218. package/dist/chunk-2M6WXO73.js +0 -38
  219. package/dist/chunk-5F3RJCHB.js +0 -45
  220. package/dist/chunk-B2VSVN4P.js +0 -34
  221. package/dist/chunk-CITDNDIZ.js +0 -53
  222. package/dist/chunk-DAQBIK5G.js +0 -47
  223. package/dist/chunk-DZRQDNPT.js +0 -34
  224. package/dist/chunk-FLOEZA6K.js +0 -29
  225. package/dist/chunk-FNHSVBRA.js +0 -48
  226. package/dist/chunk-FPGVOSOG.js +0 -41
  227. package/dist/chunk-FZ2E5LGK.js +0 -54
  228. package/dist/chunk-HB6XSGI6.js +0 -131
  229. package/dist/chunk-HUZQDKQK.js +0 -48
  230. package/dist/chunk-L4VJ4ETL.js +0 -41
  231. package/dist/chunk-XPCWQXTY.js +0 -37
  232. package/dist/packages/ui/dist/assets/index-DM212ZbV.js +0 -29
@@ -6,14 +6,14 @@ var __atticusPath = (p) => __atticusFileURLToPath(__atticusUrl(p));
6
6
  import {
7
7
  listRuns,
8
8
  runTranscript
9
- } from "./chunk-IZNSAEBX.js";
9
+ } from "./chunk-UTR67XU2.js";
10
10
  import {
11
11
  historyEntry,
12
12
  listHistory
13
- } from "./chunk-MH5OCRUM.js";
13
+ } from "./chunk-5ACUW753.js";
14
14
  import {
15
15
  uiFactsRoutes
16
- } from "./chunk-NPCD54I7.js";
16
+ } from "./chunk-H4VJO3M2.js";
17
17
  import {
18
18
  answerAudit,
19
19
  auditLines,
@@ -21,11 +21,21 @@ import {
21
21
  precisionOf,
22
22
  prepareAudit,
23
23
  writeAudit
24
- } from "./chunk-6GWHKMQR.js";
25
- import "./chunk-3GTZ2OON.js";
24
+ } from "./chunk-V4XKYGLK.js";
25
+ import "./chunk-Y5AYBGLB.js";
26
+ import "./chunk-52WCHTVZ.js";
27
+ import {
28
+ estimateOf
29
+ } from "./chunk-BX52REMA.js";
30
+ import {
31
+ changeArchive,
32
+ changeHandoff,
33
+ changeNew,
34
+ changeSync
35
+ } from "./chunk-MSL3CLHX.js";
26
36
  import {
27
37
  uiCiteRoutes
28
- } from "./chunk-YVLMBAYE.js";
38
+ } from "./chunk-TC3KTG33.js";
29
39
  import {
30
40
  HttpError,
31
41
  badRequest,
@@ -33,27 +43,14 @@ import {
33
43
  notFound,
34
44
  startServer,
35
45
  strParam
36
- } from "./chunk-HHUFVJF7.js";
37
- import "./chunk-IUD3ME4E.js";
46
+ } from "./chunk-ZTNS3L5Z.js";
47
+ import "./chunk-7S3XFWOU.js";
38
48
  import {
39
49
  isHandoffStep
40
50
  } from "./chunk-4Q3NN7VF.js";
41
- import {
42
- estimateOf
43
- } from "./chunk-X4W4XXWP.js";
44
- import {
45
- changeMapBody,
46
- changeMapOf
47
- } from "./chunk-67J3VZBA.js";
48
- import {
49
- changeArchive,
50
- changeHandoff,
51
- changeNew,
52
- changeSync
53
- } from "./chunk-4PJADZRR.js";
54
51
  import {
55
52
  conformanceCommand
56
- } from "./chunk-XRO65C7V.js";
53
+ } from "./chunk-3DDJLI7N.js";
57
54
  import {
58
55
  outcomeList,
59
56
  outcomeRecord,
@@ -62,21 +59,21 @@ import {
62
59
  releaseNotesCommand,
63
60
  releasePlanCommand,
64
61
  releaseSecurityCommand
65
- } from "./chunk-5MI2SEV5.js";
62
+ } from "./chunk-5TY4DTHQ.js";
66
63
  import {
67
- taskRun
68
- } from "./chunk-YPIEYQF4.js";
69
- import "./chunk-XB5RFZHH.js";
64
+ changeMapBody,
65
+ changeMapOf
66
+ } from "./chunk-JEUXCIRD.js";
70
67
  import {
71
68
  executorsCheck,
72
69
  todoDone,
73
70
  todoRun,
74
71
  todoShow
75
- } from "./chunk-TZDSDDSV.js";
72
+ } from "./chunk-TZXHUDI6.js";
76
73
  import {
77
74
  inputsSha256,
78
75
  loadExecutors
79
- } from "./chunk-PIVKU64W.js";
76
+ } from "./chunk-7J7UY46S.js";
80
77
  import {
81
78
  isSandbox,
82
79
  learnCheck,
@@ -84,107 +81,116 @@ import {
84
81
  lessonsFor,
85
82
  readProgress,
86
83
  sandboxCreate
87
- } from "./chunk-7UKVYFQ2.js";
84
+ } from "./chunk-UABFFMWH.js";
88
85
  import {
89
86
  defencesScan,
90
87
  evalRun
91
- } from "./chunk-6GNS32SI.js";
88
+ } from "./chunk-4AYZQ3SY.js";
92
89
  import {
93
90
  listReports,
94
91
  readQuality
95
- } from "./chunk-AWECWW5Y.js";
92
+ } from "./chunk-NELU7LSL.js";
96
93
  import {
97
94
  readServiceRequests
98
- } from "./chunk-5YIBJXGB.js";
95
+ } from "./chunk-7A7IG7OA.js";
99
96
  import {
100
97
  initiativeStatus,
101
98
  readView
102
- } from "./chunk-UYYN2IUZ.js";
99
+ } from "./chunk-Z46OXTBE.js";
100
+ import {
101
+ taskRun
102
+ } from "./chunk-5P5BGG5L.js";
103
+ import "./chunk-7HWXYP4H.js";
104
+ import {
105
+ digestCommand
106
+ } from "./chunk-MYOW3RPC.js";
103
107
  import {
104
108
  reconcileCommand
105
- } from "./chunk-F7UQR4ZX.js";
109
+ } from "./chunk-TGEOLIAK.js";
106
110
  import {
107
111
  sourcesAdd,
108
112
  sourcesSync
109
- } from "./chunk-F2FOQLJ7.js";
113
+ } from "./chunk-EAQFRD2B.js";
110
114
  import {
111
115
  INPUTS_SOURCE_ID
112
- } from "./chunk-IV7BCWWN.js";
113
- import "./chunk-P3TKKBAH.js";
114
- import {
115
- intakeContext
116
- } from "./chunk-WARBF2KY.js";
116
+ } from "./chunk-TCADP67G.js";
117
+ import "./chunk-BUWSOQLU.js";
117
118
  import {
118
119
  baselineCommand,
119
120
  setupSteps
120
- } from "./chunk-XTVDAHH2.js";
121
+ } from "./chunk-3WU7LVTL.js";
122
+ import {
123
+ readMe,
124
+ writeMe
125
+ } from "./chunk-ORZSD2KD.js";
121
126
  import {
122
127
  uiOnboardingRoutes
123
- } from "./chunk-2RX7PI2Y.js";
124
- import "./chunk-HE4ZQXZM.js";
128
+ } from "./chunk-HOUUBE74.js";
129
+ import "./chunk-LVBPY2M6.js";
125
130
  import {
126
131
  uiTrustRoutes
127
- } from "./chunk-2KDSXJFJ.js";
128
- import "./chunk-B3O52AUQ.js";
129
- import "./chunk-XKS6THI5.js";
132
+ } from "./chunk-EW7MRMD5.js";
130
133
  import {
131
- readMe,
132
- writeMe
133
- } from "./chunk-UBWCUP3G.js";
134
+ contractCheckOf
135
+ } from "./chunk-IA2RKC6I.js";
136
+ import "./chunk-ASKDCMW5.js";
137
+ import "./chunk-LDIARP6F.js";
134
138
  import {
135
- digestCommand
136
- } from "./chunk-4QUQEBFT.js";
139
+ intakeContext
140
+ } from "./chunk-MYKQVS5W.js";
141
+ import "./chunk-EBWIOODZ.js";
142
+ import "./chunk-BA5DTXHQ.js";
137
143
  import {
138
144
  scanCommand
139
- } from "./chunk-7TGYNOXD.js";
140
- import "./chunk-LRS573EX.js";
145
+ } from "./chunk-4URR24DD.js";
146
+ import "./chunk-XR5DD5DQ.js";
141
147
  import {
142
148
  catalogRecords,
143
149
  openChanges,
144
150
  systemGuide
145
- } from "./chunk-DPHCFZ7W.js";
151
+ } from "./chunk-HR4DVO6X.js";
146
152
  import {
147
153
  doctorChecks
148
- } from "./chunk-FV5YFR6I.js";
154
+ } from "./chunk-WCLAOKCH.js";
149
155
  import "./chunk-3G4YI4ZU.js";
150
- import "./chunk-Y4BRGOJR.js";
151
- import "./chunk-R64GLVBO.js";
156
+ import "./chunk-LUPW4WLK.js";
157
+ import "./chunk-NG5R2WIY.js";
152
158
  import {
153
159
  handoffDone,
154
160
  workspaceOpen,
155
161
  workspaceSync
156
- } from "./chunk-APSVL2AI.js";
157
- import "./chunk-23M2LUYM.js";
158
- import "./chunk-Y5PZHS4K.js";
162
+ } from "./chunk-JUZ75OG4.js";
163
+ import "./chunk-7LCQ7JAM.js";
164
+ import "./chunk-XKJRPVJO.js";
159
165
  import {
160
166
  readChangeTasks,
161
167
  readStory
162
- } from "./chunk-IDGSU7JF.js";
168
+ } from "./chunk-EI4KQYJ3.js";
163
169
  import {
164
170
  ASSISTANT_FORMATS,
165
171
  readProbes,
166
172
  whatRunsWhere
167
- } from "./chunk-LK44ULGI.js";
173
+ } from "./chunk-6RGIM2ZH.js";
168
174
  import {
169
175
  critic,
170
176
  criticStats,
171
177
  findingAction
172
- } from "./chunk-73VPWF5R.js";
173
- import "./chunk-J5LHDJU4.js";
178
+ } from "./chunk-HGQZTUAC.js";
179
+ import "./chunk-R3VFLYZZ.js";
174
180
  import {
175
181
  planStories,
176
182
  snowDraft,
177
183
  snowSubmit
178
- } from "./chunk-YXJ4XOHF.js";
179
- import "./chunk-ROTY5J2L.js";
184
+ } from "./chunk-JRPQX2EK.js";
185
+ import "./chunk-NBGBMRIS.js";
180
186
  import {
181
187
  archiveGate,
182
188
  ciArchiveGate
183
- } from "./chunk-ZE3P35DA.js";
189
+ } from "./chunk-J27QGXO4.js";
184
190
  import {
185
191
  traceMatrix
186
- } from "./chunk-7YYEKTYF.js";
187
- import "./chunk-XEG3FE2R.js";
192
+ } from "./chunk-PQW7PYUR.js";
193
+ import "./chunk-SKMHS4CL.js";
188
194
  import {
189
195
  NEEDS_FILE,
190
196
  PlannerError,
@@ -203,12 +209,12 @@ import {
203
209
  setKnowledgeStatus,
204
210
  stageComments,
205
211
  stageGate
206
- } from "./chunk-KC5DROFC.js";
212
+ } from "./chunk-EV4TEFOD.js";
207
213
  import {
208
214
  STAGE_PHASE,
209
215
  fieldNames,
210
216
  rerunOf
211
- } from "./chunk-RK6MKKKP.js";
217
+ } from "./chunk-6N2GUZMZ.js";
212
218
  import "./chunk-VOGCSYOI.js";
213
219
  import {
214
220
  layerRules,
@@ -222,7 +228,7 @@ import {
222
228
  readStoryIndex,
223
229
  reviewedGates,
224
230
  roundsOf
225
- } from "./chunk-47QE246J.js";
231
+ } from "./chunk-T6ESD5KM.js";
226
232
  import {
227
233
  artifactFiles,
228
234
  artifactPhase,
@@ -234,13 +240,13 @@ import {
234
240
  liveHandoff,
235
241
  loadChangeContext,
236
242
  requiredArtifacts
237
- } from "./chunk-XQ3YIV5R.js";
238
- import "./chunk-MGVYVW7Q.js";
243
+ } from "./chunk-3LU6YCSQ.js";
244
+ import "./chunk-L7I5PKGD.js";
239
245
  import {
240
246
  fileStepStore,
241
247
  manualAdapter,
242
248
  stepOfProvisional
243
- } from "./chunk-NGPU2ARF.js";
249
+ } from "./chunk-CAN3EBE5.js";
244
250
  import {
245
251
  componentRenames,
246
252
  estateFacts,
@@ -251,7 +257,7 @@ import {
251
257
  keepCatalogsInMemory,
252
258
  outsideProfileSystems,
253
259
  readCatalog
254
- } from "./chunk-AY2IUF4K.js";
260
+ } from "./chunk-IILZ7J3L.js";
255
261
  import {
256
262
  OrgPackProposal,
257
263
  SNAPSHOT_FILE,
@@ -275,37 +281,37 @@ import {
275
281
  snapshotDates,
276
282
  snapshotSources,
277
283
  writeReview
278
- } from "./chunk-6JLPXDWN.js";
284
+ } from "./chunk-TEBBD4XH.js";
279
285
  import {
280
286
  NoSuchNode,
281
287
  buildEstate,
282
288
  focusView,
283
289
  nodeView,
284
290
  viewKey
285
- } from "./chunk-4GZXS6S2.js";
291
+ } from "./chunk-XPWSNKF3.js";
286
292
  import {
287
293
  readServiceRequestExports,
288
294
  readVendorSpec,
289
295
  readWorkItemExports
290
- } from "./chunk-R4TBNKKC.js";
291
- import "./chunk-NIXVDQVO.js";
292
- import "./chunk-UR7RMZ3R.js";
293
- import "./chunk-N4QZJJVB.js";
294
- import "./chunk-CHC5FKTU.js";
295
- import "./chunk-7F2RUWPU.js";
296
+ } from "./chunk-WIMOJMAK.js";
297
+ import "./chunk-5V5BJACL.js";
298
+ import "./chunk-GVFUEGGM.js";
299
+ import "./chunk-XNRPCI23.js";
300
+ import "./chunk-7RUMD56V.js";
301
+ import "./chunk-RJDP642F.js";
296
302
  import {
297
303
  readChangeRepos
298
- } from "./chunk-PGKHJYOB.js";
299
- import "./chunk-MKRBG5EF.js";
304
+ } from "./chunk-XZJE6WIT.js";
305
+ import "./chunk-FMRMTI7W.js";
300
306
  import {
301
307
  COMMON_SETTINGS,
302
308
  PROVIDER_SETTINGS,
303
309
  defaultKeyStore,
304
310
  looksLikeKey
305
- } from "./chunk-6EDQE7GO.js";
311
+ } from "./chunk-GMJXC5AL.js";
306
312
  import {
307
313
  providerFactoryFor
308
- } from "./chunk-5XDNUJ4P.js";
314
+ } from "./chunk-BKFGGJKA.js";
309
315
  import {
310
316
  ASSISTANTS,
311
317
  ChangeArtifact,
@@ -322,6 +328,8 @@ import {
322
328
  RecordId,
323
329
  Runtime,
324
330
  SOURCE_KIND_SUGGESTIONS,
331
+ TARGETS_STEP_ID,
332
+ TOPICS_STEP_ID,
325
333
  ViewKey,
326
334
  acceptProposal,
327
335
  answerQuestion,
@@ -356,11 +364,11 @@ import {
356
364
  runsRelOf,
357
365
  specRelOf,
358
366
  specRepos
359
- } from "./chunk-577AJVRS.js";
367
+ } from "./chunk-JMOLB347.js";
360
368
  import {
361
369
  createLog,
362
370
  writeFileAtomic
363
- } from "./chunk-D3PO4DOZ.js";
371
+ } from "./chunk-MMB2OHUY.js";
364
372
  import {
365
373
  __toESM
366
374
  } from "./chunk-TV45EUGM.js";
@@ -651,14 +659,14 @@ function uiRoutes(r, ctx, deps = {}) {
651
659
  };
652
660
  }).add("GET", "/api/changes/{changeId}/inputs", async ({ params }) => {
653
661
  const c = await readChange(root, params.changeId);
654
- const { readChangeInputs } = await import("./chunk-FOGG4AUR.js");
662
+ const { readChangeInputs } = await import("./chunk-QWHTTA2X.js");
655
663
  return {
656
664
  status: 200,
657
665
  body: api_exports.ChangeInputList.parse(await readChangeInputs(join2(changesDirOf(root), c.id)))
658
666
  };
659
667
  }).add("GET", "/api/changes/{changeId}/prototypes", async ({ params }) => {
660
668
  const c = await readChange(root, params.changeId);
661
- const { changePrototypes } = await import("./chunk-LVGBKKSM.js");
669
+ const { changePrototypes } = await import("./chunk-EHUYLNLC.js");
662
670
  return {
663
671
  status: 200,
664
672
  body: api_exports.ChangePrototypeList.parse(await changePrototypes(root, c.id))
@@ -669,7 +677,7 @@ function uiRoutes(r, ctx, deps = {}) {
669
677
  const bytes = new Uint8Array(Buffer.from(b.content, "base64"));
670
678
  if (bytes.length > MAX_ATTACH)
671
679
  throw new HttpError(413, "The file is too large", "Attach a file of 15 MB or less.");
672
- const { attachFiles } = await import("./chunk-Y7KBQ4BD.js");
680
+ const { attachFiles } = await import("./chunk-OFWYZH6B.js");
673
681
  const r2 = await attachFiles(root, c.id, [{ name: b.name, bytes }], user);
674
682
  if (!r2.added.length)
675
683
  throw new HttpError(422, "Atticus can't attach that", r2.refused[0]?.why ?? "", {
@@ -1747,7 +1755,7 @@ function uiKnowRoutes(r, ctx, o = {}) {
1747
1755
  const args = build(arg);
1748
1756
  if (!args)
1749
1757
  throw badRequest(`The ${name} view needs an id: /api/view/${name}/<id>.`);
1750
- const { main } = await import("./chunk-MTAUZW2Z.js");
1758
+ const { main } = await import("./chunk-MQNBEO3N.js");
1751
1759
  const out = [];
1752
1760
  const err = [];
1753
1761
  const code = await main([...args, "--json", "--root", ctx.root], { out: (l) => out.push(l), err: (l) => err.push(l) }, { quiet: true });
@@ -1771,7 +1779,7 @@ function uiKnowRoutes(r, ctx, o = {}) {
1771
1779
  return { status: 200, body: { code, data: body, problems: err } };
1772
1780
  };
1773
1781
  const text = async (args) => {
1774
- const { main } = await import("./chunk-MTAUZW2Z.js");
1782
+ const { main } = await import("./chunk-MQNBEO3N.js");
1775
1783
  const out = [];
1776
1784
  const err = [];
1777
1785
  const code = await main([...args, "--root", ctx.root], { out: (l) => out.push(l), err: (l) => err.push(l) }, { quiet: true });
@@ -1789,7 +1797,7 @@ function uiKnowRoutes(r, ctx, o = {}) {
1789
1797
  throw badRequest("Some fields aren't right.", {
1790
1798
  errors: b.error.issues.map((i) => ({ path: i.path.join("."), message: i.message }))
1791
1799
  });
1792
- const { triageDecide } = await import("./chunk-NNUASOAA.js");
1800
+ const { triageDecide } = await import("./chunk-LEHZTKB3.js");
1793
1801
  const out = [];
1794
1802
  const err = [];
1795
1803
  const code = await triageDecide(ctx.root, params.itemId, b.data.option, { by: ctx.user, ...b.data.reason ? { reason: b.data.reason } : {} }, { out: (l) => out.push(l), err: (l) => err.push(l) });
@@ -1887,7 +1895,7 @@ function uiQuestionRoutes(r, ctx, deps = {}) {
1887
1895
  if (mine !== void 0 && mine !== "true")
1888
1896
  throw badRequest("mine is true, or left out.");
1889
1897
  const listed = await listQuestions(ctx.root, state ? { state } : {});
1890
- const { routeQuestions } = await import("./chunk-QICFHVRW.js");
1898
+ const { routeQuestions } = await import("./chunk-IY4PHPHT.js");
1891
1899
  const routed = await routeQuestions(ctx.root, listed.questions, mine ? { mine: ctx.user } : {});
1892
1900
  const body = {
1893
1901
  questions: routed.questions,
@@ -1903,11 +1911,19 @@ function uiQuestionRoutes(r, ctx, deps = {}) {
1903
1911
  if (!q)
1904
1912
  throw notFound(`There is no question ${params.id}.`);
1905
1913
  return { status: 200, body: q };
1914
+ }).add("GET", "/api/questions/{id}/targets", async ({ params }) => {
1915
+ const q = await readQuestion(ctx.root, params.id).catch(() => void 0);
1916
+ if (!q)
1917
+ throw notFound(`There is no question ${params.id}.`);
1918
+ if (q.askedBy.step !== TARGETS_STEP_ID && q.askedBy.step !== TOPICS_STEP_ID)
1919
+ throw new HttpError(422, "That question doesn't ask where a call goes or who owns a topic", `${q.id} isn't a targets or topics question, so it has no picker.`);
1920
+ const { pickerOf } = await import("./chunk-GPLFYLGH.js");
1921
+ return { status: 200, body: { picks: await pickerOf(ctx.root) } };
1906
1922
  }).add("GET", "/api/questions/{id}/evidence", async ({ params }) => {
1907
1923
  const q = await readQuestion(ctx.root, params.id).catch(() => void 0);
1908
1924
  if (!q)
1909
1925
  throw notFound(`There is no question ${params.id}.`);
1910
- const { evidenceExcerpts } = await import("./chunk-R6B6XAKK.js");
1926
+ const { evidenceExcerpts } = await import("./chunk-WUP77GG2.js");
1911
1927
  return {
1912
1928
  status: 200,
1913
1929
  body: {
@@ -1921,7 +1937,25 @@ function uiQuestionRoutes(r, ctx, deps = {}) {
1921
1937
  errors: b.error.issues.map((i) => ({ path: i.path.join("."), message: i.message }))
1922
1938
  });
1923
1939
  try {
1924
- const { acceptProposal: acceptProposal2, ...given } = b.data;
1940
+ const { acceptProposal: acceptProposal2, target, addSystem, name, ...given } = b.data;
1941
+ let writeSystem;
1942
+ let system;
1943
+ if (target) {
1944
+ if (acceptProposal2 || given.option !== void 0 || given.text !== void 0)
1945
+ throw badRequest("Give target alone, not with option, text or acceptProposal.");
1946
+ const q0 = await readQuestion(ctx.root, params.id).catch(() => void 0);
1947
+ if (!q0)
1948
+ throw notFound(`There is no question ${params.id}.`);
1949
+ const { targetAnswerOf, offerLine } = await import("./chunk-GPLFYLGH.js");
1950
+ const t = await targetAnswerOf(ctx.root, q0, target, {
1951
+ ...addSystem ? { addSystem } : {},
1952
+ ...name ? { name } : {}
1953
+ });
1954
+ if ("problem" in t)
1955
+ throw badRequest([t.problem, ...t.offer ? [offerLine(q0.id, target, t.offer)] : []].join(" "), t.offer ? { offer: t.offer } : void 0);
1956
+ given.text = t.text;
1957
+ writeSystem = t.write;
1958
+ }
1925
1959
  const r2 = acceptProposal2 ? await acceptProposal(ctx.root, params.id, {
1926
1960
  ...given.scope ? { scope: given.scope } : {},
1927
1961
  ...given.repoType ? { repoType: given.repoType } : {},
@@ -1930,6 +1964,12 @@ function uiQuestionRoutes(r, ctx, deps = {}) {
1930
1964
  at: now().toISOString()
1931
1965
  }) : await answerQuestion(ctx.root, params.id, {
1932
1966
  ...given,
1967
+ // Review item 14: the profile is written only once the answer is accepted.
1968
+ ...writeSystem ? {
1969
+ beforeWrite: async () => {
1970
+ system = await writeSystem();
1971
+ }
1972
+ } : {},
1933
1973
  by: ctx.user,
1934
1974
  at: now().toISOString()
1935
1975
  });
@@ -1938,7 +1978,8 @@ function uiQuestionRoutes(r, ctx, deps = {}) {
1938
1978
  body: {
1939
1979
  question: r2.question,
1940
1980
  rerun: r2.question.rerun,
1941
- ...r2.skill ? { skill: r2.skill } : {}
1981
+ ...r2.skill ? { skill: r2.skill } : {},
1982
+ ...system ? { system } : {}
1942
1983
  }
1943
1984
  };
1944
1985
  } catch (e) {
@@ -2417,7 +2458,7 @@ function uiSpecRoutes(r, ctx) {
2417
2458
  });
2418
2459
  r.add("GET", "/api/changes/{changeId}/conformance", async ({ params }) => {
2419
2460
  const change = idOf2(params.changeId, "change");
2420
- const { conformanceOf } = await import("./chunk-F7YL2RZ4.js");
2461
+ const { conformanceOf } = await import("./chunk-YWOMGMZB.js");
2421
2462
  const c = await conformanceOf(root, change);
2422
2463
  if (!c)
2423
2464
  throw notFound(`There is no change ${change}.`);
@@ -2432,7 +2473,7 @@ function uiSpecRoutes(r, ctx) {
2432
2473
  });
2433
2474
  r.add("GET", "/api/changes/{changeId}/impact", async ({ params }) => {
2434
2475
  const change = idOf2(params.changeId, "change");
2435
- const { changeImpactOf } = await import("./chunk-JAA53T23.js");
2476
+ const { changeImpactOf } = await import("./chunk-Z2EYRUOH.js");
2436
2477
  const i = await changeImpactOf(root, change);
2437
2478
  if (!i)
2438
2479
  throw notFound(`There is no change ${change}.`);
@@ -3038,7 +3079,7 @@ async function configuredModel(root) {
3038
3079
  function uiModelRunRoutes(r, ctx, deps = {}) {
3039
3080
  const root = ctx.root;
3040
3081
  const runStep = deps.runStep ?? (async (args) => {
3041
- const { main } = await import("./chunk-MTAUZW2Z.js");
3082
+ const { main } = await import("./chunk-MQNBEO3N.js");
3042
3083
  const out = [];
3043
3084
  const err = [];
3044
3085
  const code = await main([...args, "--root", root], { out: (l) => out.push(l), err: (l) => err.push(l) }, { quiet: true });
@@ -3274,7 +3315,7 @@ function uiDocumentRoutes(r, ctx) {
3274
3315
  const root = ctx.root;
3275
3316
  const changed = (path) => ctx.events.publish({ type: "file.changed", path });
3276
3317
  return r.add("GET", "/api/knowledge/documents", async () => {
3277
- const { listDocuments } = await import("./chunk-7URGP4DD.js");
3318
+ const { listDocuments } = await import("./chunk-C5JFMAXX.js");
3278
3319
  return { status: 200, body: api_exports.DocumentList.parse(await listDocuments(root)) };
3279
3320
  }).add("POST", "/api/knowledge/documents", async ({ body }) => {
3280
3321
  const b = api_exports.AttachFileRequest.safeParse(body ?? {});
@@ -3283,7 +3324,7 @@ function uiDocumentRoutes(r, ctx) {
3283
3324
  const bytes = new Uint8Array(Buffer.from(b.data.content, "base64"));
3284
3325
  if (bytes.length > MAX_FILE)
3285
3326
  throw new HttpError(413, "The file is too large", "Add a file of 15 MB or less.");
3286
- const { addToInbox } = await import("./chunk-NNUASOAA.js");
3327
+ const { addToInbox } = await import("./chunk-LEHZTKB3.js");
3287
3328
  const res = await addToInbox(root, [{ name: b.data.name, bytes }]);
3288
3329
  if (!res.added.length)
3289
3330
  throw new HttpError(422, "Atticus can't add that", res.refused[0]?.why ?? "", {
@@ -3293,7 +3334,7 @@ function uiDocumentRoutes(r, ctx) {
3293
3334
  changed(a.path);
3294
3335
  return { status: 201, body: api_exports.AddDocumentResult.parse(res) };
3295
3336
  }, { maxBody: Math.ceil(MAX_FILE * 4 / 3) + 64 * 1024 }).add("POST", "/api/changes/{changeId}/inputs/{name}/promote", async ({ params }) => {
3296
- const { AttachError, promoteChangeInput } = await import("./chunk-Y7KBQ4BD.js");
3337
+ const { AttachError, promoteChangeInput } = await import("./chunk-OFWYZH6B.js");
3297
3338
  try {
3298
3339
  const res = await promoteChangeInput(root, params.changeId, params.name);
3299
3340
  changed(res.path);
@@ -3310,13 +3351,13 @@ function uiDocumentRoutes(r, ctx) {
3310
3351
  function uiRepoRoutes(r, ctx) {
3311
3352
  const root = ctx.root;
3312
3353
  return r.add("GET", "/api/repos/branches", async () => {
3313
- const { repoBranches } = await import("./chunk-YLAJAI2W.js");
3354
+ const { repoBranches } = await import("./chunk-7HQOZALR.js");
3314
3355
  return { status: 200, body: api_exports.RepoBranchesList.parse(await repoBranches(root)) };
3315
3356
  }).add("GET", "/api/repos/compare", async ({ query }) => {
3316
3357
  const branch = query.get("branch")?.trim() ?? "";
3317
3358
  if (!branch)
3318
3359
  throw badRequest("Say which branch: ?branch=<name>.");
3319
- const { compareBranch } = await import("./chunk-YLAJAI2W.js");
3360
+ const { compareBranch } = await import("./chunk-7HQOZALR.js");
3320
3361
  const c = await compareBranch(root, branch);
3321
3362
  if (!c)
3322
3363
  throw notFound(`${branch} hasn't been scanned beside the baseline yet.`);
@@ -3325,7 +3366,7 @@ function uiRepoRoutes(r, ctx) {
3325
3366
  const b = api_exports.EditRepoBranchesRequest.safeParse(body ?? {});
3326
3367
  if (!b.success)
3327
3368
  throw badRequest("Send defaultBranch and branches as branch names.");
3328
- const { editRepoBranches, RepoEditError } = await import("./chunk-YLAJAI2W.js");
3369
+ const { editRepoBranches, RepoEditError } = await import("./chunk-7HQOZALR.js");
3329
3370
  try {
3330
3371
  const file = await editRepoBranches(root, params.repoId, b.data);
3331
3372
  ctx.events.publish({ type: "file.changed", path: file });
@@ -3345,7 +3386,7 @@ function uiRepoRoutes(r, ctx) {
3345
3386
  const b = api_exports.EditRepoDescriptionRequest.safeParse(body ?? {});
3346
3387
  if (!b.success)
3347
3388
  throw badRequest("Send what the repo is as text, or accept: true to confirm the draft, or reject: true to drop it.");
3348
- const { editRepoDescription, RepoEditError } = await import("./chunk-YLAJAI2W.js");
3389
+ const { editRepoDescription, RepoEditError } = await import("./chunk-7HQOZALR.js");
3349
3390
  try {
3350
3391
  const r2 = await editRepoDescription(root, params.repoId, b.data);
3351
3392
  ctx.events.publish({ type: "file.changed", path: r2.file });
@@ -3368,7 +3409,7 @@ function uiRepoRoutes(r, ctx) {
3368
3409
  // packages/cli/dist/ui-api-cockpit.js
3369
3410
  function uiCockpitRoutes(r, ctx) {
3370
3411
  return r.add("GET", "/api/changes/{changeId}/cockpit", async ({ params }) => {
3371
- const { cockpit } = await import("./chunk-PKCMRPPB.js");
3412
+ const { cockpit } = await import("./chunk-27EDZN52.js");
3372
3413
  try {
3373
3414
  return {
3374
3415
  status: 200,
@@ -3380,7 +3421,7 @@ function uiCockpitRoutes(r, ctx) {
3380
3421
  throw e;
3381
3422
  }
3382
3423
  }).add("GET", "/api/past-changes", async ({ query }) => {
3383
- const { changeAboutText, similarChanges } = await import("./chunk-MF7QH4AX.js");
3424
+ const { changeAboutText, similarChanges } = await import("./chunk-RIEFYHXI.js");
3384
3425
  const change = query.get("change");
3385
3426
  const text = change ? await changeAboutText(ctx.root, change) : query.get("text")?.trim();
3386
3427
  if (change && !text)
@@ -3398,11 +3439,11 @@ function uiCockpitRoutes(r, ctx) {
3398
3439
  const b = api_exports.AttachPastChangeRequest.safeParse(body ?? {});
3399
3440
  if (!b.success)
3400
3441
  throw badRequest("Say which archived change: { like: <its folder or id> }.");
3401
- const { attachPastChange, findPastChange } = await import("./chunk-MF7QH4AX.js");
3442
+ const { attachPastChange, findPastChange } = await import("./chunk-RIEFYHXI.js");
3402
3443
  const folder = await findPastChange(ctx.root, b.data.like);
3403
3444
  if (!folder)
3404
3445
  throw notFound(`There is no archived change ${b.data.like}.`);
3405
- const { AttachError } = await import("./chunk-Y7KBQ4BD.js");
3446
+ const { AttachError } = await import("./chunk-OFWYZH6B.js");
3406
3447
  try {
3407
3448
  const name = await attachPastChange(ctx.root, params.changeId, folder, ctx.user);
3408
3449
  ctx.events.publish({ type: "file.changed", path: `inputs/${name}` });
@@ -3582,6 +3623,7 @@ async function outsideView(root) {
3582
3623
  targets: estate.targets,
3583
3624
  ...joinConventions(op)
3584
3625
  }) : { matches: [], gaps: [], asks: [] };
3626
+ const contracts = await contractCheckOf(root).catch(() => void 0);
3585
3627
  const catalog = records.length ? records : (await readCatalog(join9(catalogDirOf(root), "generated"), { cacheRoot: root })).records;
3586
3628
  const ifaces = catalog.filter((r) => r.kind === "Interface");
3587
3629
  const componentsOf = (id) => /* @__PURE__ */ new Set([
@@ -3601,6 +3643,15 @@ async function outsideView(root) {
3601
3643
  ...x?.path ? { path: x.path } : {}
3602
3644
  };
3603
3645
  };
3646
+ const contractsOf = (id) => {
3647
+ const findings = contracts?.result.findings.filter((f) => f.system === id) ?? [];
3648
+ const fresh = contracts?.newBySystem.get(id);
3649
+ if (!findings.length && !fresh)
3650
+ return {};
3651
+ return {
3652
+ contracts: { findings, ...fresh ? { new: fresh.map((f) => f.id) } : {} }
3653
+ };
3654
+ };
3604
3655
  const out = systems.map((s) => {
3605
3656
  const names = new Set([s.id, s.name, ...s.aliases].map(factIdPart));
3606
3657
  const comps = componentsOf(s.id);
@@ -3685,6 +3736,7 @@ async function outsideView(root) {
3685
3736
  ambiguous: matched.asks.filter((a) => a.vendor === s.id).map((a) => ({ ...callOf(a.call), seen: ["spec"], candidates: a.candidates })),
3686
3737
  questions,
3687
3738
  ...spec ? {} : { addSpec: OUTSIDE_ADD_SPEC(s.id) },
3739
+ ...contractsOf(s.id),
3688
3740
  ...map ? {
3689
3741
  shared: {
3690
3742
  team: map.team,
@@ -3717,6 +3769,18 @@ function uiOutsideRoutes(r, ctx) {
3717
3769
  }));
3718
3770
  }
3719
3771
 
3772
+ // packages/cli/dist/ui-api-contracts.js
3773
+ async function contractsView(root) {
3774
+ const { result, notes } = await contractCheckOf(root);
3775
+ return { links: result.links, findings: result.findings, counts: result.counts, notes };
3776
+ }
3777
+ function uiContractsRoutes(r, ctx) {
3778
+ return r.add("GET", "/api/contracts", async () => ({
3779
+ status: 200,
3780
+ body: await contractsView(ctx.root)
3781
+ }));
3782
+ }
3783
+
3720
3784
  // packages/cli/dist/ui-api-stages.js
3721
3785
  import { stat as stat4 } from "node:fs/promises";
3722
3786
  import { join as join10 } from "node:path";
@@ -3934,7 +3998,7 @@ async function startUi(root, o = {}, deps = {}) {
3934
3998
  });
3935
3999
  const views = uiGraphRoutes(uiAcrossRoutes(uiMeRoutes(base, ctx), ctx), ctx);
3936
4000
  const specs = uiSpecRoutes(uiOnboardingRoutes(uiQuestionRoutes(views, ctx), ctx), ctx);
3937
- return uiStageRoutes(uiOutsideRoutes(uiAuditRoutes(uiFactsRoutes(uiTrustRoutes(uiCockpitRoutes(uiRepoRoutes(uiDocumentRoutes(uiAiRoutes(uiHistoryRoutes(uiModelRunRoutes(uiKnowledgeRoutes(uiCiteRoutes(specs, ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx);
4001
+ return uiStageRoutes(uiContractsRoutes(uiOutsideRoutes(uiAuditRoutes(uiFactsRoutes(uiTrustRoutes(uiCockpitRoutes(uiRepoRoutes(uiDocumentRoutes(uiAiRoutes(uiHistoryRoutes(uiModelRunRoutes(uiKnowledgeRoutes(uiCiteRoutes(specs, ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx), ctx);
3938
4002
  }
3939
4003
  });
3940
4004
  keepCatalogsInMemory(true);