@testmuai/kane-cli 0.10.0-rc.3 → 0.10.0

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 (375) hide show
  1. package/dist/ChatSurface-XUV3EQPZ.js +2 -0
  2. package/dist/{ChromeProfilePicker-M4WXOB5O.js → ChromeProfilePicker-FWPUDKD6.js} +1 -1
  3. package/dist/{CliFeedbackPrompt-6MJA7DF6.js → CliFeedbackPrompt-D5L2DO6A.js} +1 -1
  4. package/dist/{CliUploadProgress-6NLS7XHH.js → CliUploadProgress-HQX57WE6.js} +1 -1
  5. package/dist/{ConfigView-O4WKZ5PU.js → ConfigView-DGQXKEON.js} +1 -1
  6. package/dist/EvidenceViewOffer-EIANIYN7.js +2 -0
  7. package/dist/FolderPicker-XOA7FTHF.js +2 -0
  8. package/dist/InfoBox-OBH7SUGC.js +2 -0
  9. package/dist/{LinksBox-DXP66H3H.js → LinksBox-WZ4RAMSH.js} +1 -1
  10. package/dist/{ProfilesView-TWOY5PVC.js → ProfilesView-AGRNPGSW.js} +1 -1
  11. package/dist/ProjectPicker-6KRLKV4U.js +2 -0
  12. package/dist/SaveSessionPrompt-J2OPDEOO.js +2 -0
  13. package/dist/SingleShotApp-QI4B2TSL.js +2 -0
  14. package/dist/{SummaryBox-IA2KS6GT.js → SummaryBox-XQJUZBAN.js} +1 -1
  15. package/dist/TestMdRunView-I4MV54FB.js +2 -0
  16. package/dist/TestrunEvidenceTable-WEIUSW3E.js +2 -0
  17. package/dist/{WhoamiView-SNL75TEF.js → WhoamiView-JQCURK2M.js} +1 -1
  18. package/dist/{app-download-UI4ABEIX.js → app-download-OU6AGH2X.js} +1 -1
  19. package/dist/{assurance-job-FFSSS4XV.js → assurance-job-ZI3L6I4F.js} +1 -1
  20. package/dist/{binary-THPLXCOD.js → binary-S5YL5GJD.js} +1 -1
  21. package/dist/bind-LIV72SEZ.js +2 -0
  22. package/dist/bootstrap-3V6TOO6I.js +2 -0
  23. package/dist/{bridge-T6QMYKED.js → bridge-SDEP7Y33.js} +1 -1
  24. package/dist/{catalog-MYPS2BXY.js → catalog-I3PC6LT6.js} +1 -1
  25. package/dist/catalog-client-WKYG3JN6.js +2 -0
  26. package/dist/{changelog-SU674BVE.js → changelog-IHNWFYWY.js} +1 -1
  27. package/dist/chat-committer-FM5NG46O.js +2 -0
  28. package/dist/{chat-controller-XINCDH6Z.js → chat-controller-FWFQVZTB.js} +1 -1
  29. package/dist/child-H2YSDFCG.js +2 -0
  30. package/dist/{chunk-QDFY5GGO.js → chunk-252GEI3H.js} +1 -1
  31. package/dist/{chunk-TNORODUF.js → chunk-2B75UL7Y.js} +1 -1
  32. package/dist/{chunk-FWDUVFS6.js → chunk-2EVP636F.js} +17 -17
  33. package/dist/{chunk-7XBNMOH4.js → chunk-2GE5X2A5.js} +1 -1
  34. package/dist/{chunk-DJC7NTLA.js → chunk-2L3A5NKZ.js} +1 -1
  35. package/dist/{chunk-CUXY6KQ2.js → chunk-2N75WO7Y.js} +1 -1
  36. package/dist/{chunk-CGITGJ3I.js → chunk-2PZKMT3I.js} +1 -1
  37. package/dist/{chunk-M43WH5DQ.js → chunk-2SY2NCOP.js} +1 -1
  38. package/dist/{chunk-Q3C6NDGI.js → chunk-32Y6QVFG.js} +1 -1
  39. package/dist/{chunk-734ORT6O.js → chunk-3OVFKUXV.js} +1 -1
  40. package/dist/{chunk-IGEAET7M.js → chunk-3T2TYDPT.js} +1 -1
  41. package/dist/{chunk-TU42YZOJ.js → chunk-3UHPVQLU.js} +1 -1
  42. package/dist/{chunk-WEIPY3CI.js → chunk-3ZPEQDXZ.js} +1 -1
  43. package/dist/{chunk-RHGW7B5Q.js → chunk-436FZ4KG.js} +1 -1
  44. package/dist/{chunk-YQ5C6UDG.js → chunk-4523YDTG.js} +1 -1
  45. package/dist/{chunk-7SY34IIL.js → chunk-45URQUAK.js} +1 -1
  46. package/dist/{chunk-VSVWNRI2.js → chunk-4BUEOKFV.js} +1 -1
  47. package/dist/{chunk-NZ6AV2TA.js → chunk-4JWJH6TB.js} +1 -1
  48. package/dist/{chunk-YPFQ4UGF.js → chunk-4MNSP4EO.js} +1 -1
  49. package/dist/{chunk-ZFMRQ57Y.js → chunk-4NUSW4A2.js} +1 -1
  50. package/dist/{chunk-FSYOTRMC.js → chunk-4R4YUOVY.js} +1 -1
  51. package/dist/{chunk-FWUPJORV.js → chunk-4SJAOAYY.js} +1 -1
  52. package/dist/{chunk-SMTBOSEJ.js → chunk-52VCA4K2.js} +1 -1
  53. package/dist/{chunk-4YW767UV.js → chunk-567D5ZTO.js} +7 -7
  54. package/dist/{chunk-W4QSZNMB.js → chunk-5IO5ZC4S.js} +1 -1
  55. package/dist/{chunk-LSDJOVWW.js → chunk-5R3ODQHH.js} +1 -1
  56. package/dist/{chunk-WXJCJL5L.js → chunk-5T6II7VN.js} +1 -1
  57. package/dist/{chunk-3YTCKCBG.js → chunk-65BG6GAE.js} +1 -1
  58. package/dist/{chunk-LAOTVZHV.js → chunk-6DZ7LVOG.js} +1 -1
  59. package/dist/chunk-6K5BEEAJ.js +2 -0
  60. package/dist/{chunk-42PALMW2.js → chunk-6TNLITJO.js} +1 -1
  61. package/dist/{chunk-VXGN3IV7.js → chunk-7C4IEL5V.js} +1 -1
  62. package/dist/{chunk-PUVMC4PX.js → chunk-7V34ZMMS.js} +1 -1
  63. package/dist/{chunk-DDZLCAEO.js → chunk-7ZJWUWSN.js} +1 -1
  64. package/dist/{chunk-ICLUC44J.js → chunk-A3TCFSCK.js} +1 -1
  65. package/dist/{chunk-F5NHG7VB.js → chunk-A4BB6GLN.js} +1 -1
  66. package/dist/{chunk-AVSMXDTX.js → chunk-AG5XJWEV.js} +1 -1
  67. package/dist/{chunk-GQRU3B54.js → chunk-AGXAJ2II.js} +1 -1
  68. package/dist/{chunk-6UVIY56J.js → chunk-AIGQCMGY.js} +1 -1
  69. package/dist/{chunk-RX6776AI.js → chunk-AU26ZZTX.js} +1 -1
  70. package/dist/{chunk-CCP4X75B.js → chunk-AUBSLPJZ.js} +1 -1
  71. package/dist/{chunk-XQMWHPZI.js → chunk-B2WFW74J.js} +1 -1
  72. package/dist/{chunk-NXRF7FFS.js → chunk-B7JLM3IX.js} +1 -1
  73. package/dist/{chunk-LUZBGTYB.js → chunk-BRVIK3BU.js} +1 -1
  74. package/dist/{chunk-URH4FX3H.js → chunk-BY2B4YJN.js} +1 -1
  75. package/dist/{chunk-Y7E5L42F.js → chunk-CBVHP7JB.js} +1 -1
  76. package/dist/{chunk-ZFM77AQU.js → chunk-CJE7PKRV.js} +1 -1
  77. package/dist/{chunk-2DYHAP4E.js → chunk-CJQUVHHS.js} +1 -1
  78. package/dist/{chunk-OFSDB7B4.js → chunk-COJINPOK.js} +2 -2
  79. package/dist/{chunk-JZP3Y4ZM.js → chunk-D6CS62O7.js} +1 -1
  80. package/dist/{chunk-457Y5TEC.js → chunk-DBTMKBHU.js} +1 -1
  81. package/dist/{chunk-CM4CHYSN.js → chunk-DHYGCHKB.js} +1 -1
  82. package/dist/{chunk-DZOYYWOW.js → chunk-DTYT6KBO.js} +1 -1
  83. package/dist/{chunk-6EB5VRAN.js → chunk-EC5IP5HZ.js} +1 -1
  84. package/dist/{chunk-35ECWCCK.js → chunk-EH43VWVR.js} +1 -1
  85. package/dist/{chunk-HQ2E2XCU.js → chunk-ENG2UTMX.js} +1 -1
  86. package/dist/{chunk-VUFIL5VR.js → chunk-EPJ5SJL2.js} +2 -2
  87. package/dist/{chunk-YHFZFV3A.js → chunk-EQWMOGLO.js} +9 -9
  88. package/dist/{chunk-XLEGGC4Y.js → chunk-EVZLINBN.js} +1 -1
  89. package/dist/{chunk-44B6THYK.js → chunk-EX6ORR7P.js} +1 -1
  90. package/dist/{chunk-EBPRPNSA.js → chunk-FBQ7PQJV.js} +1 -1
  91. package/dist/{chunk-AEWNWAXW.js → chunk-FLOQ5NZL.js} +2 -2
  92. package/dist/{chunk-LCSJ7GOG.js → chunk-FPPVNF53.js} +1 -1
  93. package/dist/{chunk-F22K3RRX.js → chunk-FPVGA6XT.js} +1 -1
  94. package/dist/{chunk-IJ2AHSWW.js → chunk-FVYIV36L.js} +1 -1
  95. package/dist/chunk-FYCD765R.js +161 -0
  96. package/dist/{chunk-AVI5H4UM.js → chunk-G2KTWFMU.js} +1 -1
  97. package/dist/{chunk-ACMBMZDQ.js → chunk-G3CYFCSR.js} +1 -1
  98. package/dist/{chunk-JNSWKGTB.js → chunk-G3J4XY3Z.js} +1 -1
  99. package/dist/{chunk-KXHJMAZU.js → chunk-GET4DINR.js} +2 -2
  100. package/dist/{chunk-54XA5MZH.js → chunk-GGS3ATPB.js} +1 -1
  101. package/dist/{chunk-C2RUDJ46.js → chunk-GGV336P5.js} +1 -1
  102. package/dist/{chunk-L5DALV5N.js → chunk-GI2JPIX5.js} +1 -1
  103. package/dist/{chunk-HAW5WEKT.js → chunk-GRO6DLN3.js} +1 -1
  104. package/dist/{chunk-3RJHXOZH.js → chunk-GXMD23XB.js} +1 -1
  105. package/dist/chunk-GYDJO32R.js +2 -0
  106. package/dist/{chunk-W7FLXW6Q.js → chunk-H4KPNGY4.js} +1 -1
  107. package/dist/{chunk-PAWQ4AKN.js → chunk-HBVHIEPB.js} +1 -1
  108. package/dist/{chunk-EF47KRUK.js → chunk-HGVM2OZU.js} +1 -1
  109. package/dist/{chunk-4QFTHUJA.js → chunk-HMQ5M4JJ.js} +1 -1
  110. package/dist/{chunk-ZTHYAHDN.js → chunk-I2VU2DTS.js} +1 -1
  111. package/dist/{chunk-7NCJMWFX.js → chunk-J4LQAT5P.js} +1 -1
  112. package/dist/{chunk-HK62JVQM.js → chunk-JCSVBD4F.js} +1 -1
  113. package/dist/{chunk-7AET4JKQ.js → chunk-JFBEHCJN.js} +1 -1
  114. package/dist/{chunk-EECDDDSB.js → chunk-JGLADDRH.js} +1 -1
  115. package/dist/{chunk-I4WXALQR.js → chunk-JOCEZK2M.js} +1 -1
  116. package/dist/{chunk-5AKJPYUW.js → chunk-JQ7ZZQXC.js} +3 -3
  117. package/dist/{chunk-C62QWG4B.js → chunk-JRSEAXFE.js} +1 -1
  118. package/dist/{chunk-D7U2M26S.js → chunk-JSLKCCD2.js} +1 -1
  119. package/dist/{chunk-RTVHJ23A.js → chunk-JT6WLJSV.js} +1 -1
  120. package/dist/{chunk-P3JXJ4BW.js → chunk-JTJ7IPNI.js} +1 -1
  121. package/dist/{chunk-ZTRRFG52.js → chunk-JX5NVKTV.js} +1 -1
  122. package/dist/{chunk-QBYENBMB.js → chunk-K2PLULJD.js} +1 -1
  123. package/dist/{chunk-RF37IJNN.js → chunk-K3OSK6PB.js} +1 -1
  124. package/dist/{chunk-3GXN6VF6.js → chunk-KDR662D2.js} +1 -1
  125. package/dist/{chunk-NLZZLANH.js → chunk-KRRZCY7U.js} +1 -1
  126. package/dist/{chunk-KODJVOCN.js → chunk-LHQUCRCH.js} +1 -1
  127. package/dist/{chunk-WOSANGV6.js → chunk-LNHBZEDC.js} +1 -1
  128. package/dist/{chunk-PZA3BSOE.js → chunk-LXM7VHYN.js} +1 -1
  129. package/dist/{chunk-D7TKE7LK.js → chunk-MHB6DMKZ.js} +1 -1
  130. package/dist/{chunk-W6HZF56M.js → chunk-MJKRJGER.js} +1 -1
  131. package/dist/{chunk-V7USCQWO.js → chunk-MKPDF26Q.js} +1 -1
  132. package/dist/{chunk-VLDCHFXF.js → chunk-MPEIMWQI.js} +1 -1
  133. package/dist/{chunk-YIKF4ERQ.js → chunk-MW2WNYJO.js} +2 -2
  134. package/dist/{chunk-MYVKUJGS.js → chunk-N3KTLWJL.js} +1 -1
  135. package/dist/{chunk-QDXKEOKI.js → chunk-NJCN6LP5.js} +6 -6
  136. package/dist/{chunk-IUQOG7Z5.js → chunk-NOFJXCYP.js} +1 -1
  137. package/dist/{chunk-I4RVVBG3.js → chunk-NTXFPNAP.js} +1 -1
  138. package/dist/{chunk-XZGEN4NU.js → chunk-ONZ2CSTZ.js} +1 -1
  139. package/dist/{chunk-UYDHOHSZ.js → chunk-OR2B6T3B.js} +1 -1
  140. package/dist/{chunk-UUJIGOEO.js → chunk-ORNVIEUA.js} +1 -1
  141. package/dist/{chunk-R7KXAISS.js → chunk-P2LDAW3C.js} +1 -1
  142. package/dist/{chunk-ECPFI75W.js → chunk-PBWYQR5I.js} +1 -1
  143. package/dist/{chunk-O3HHTKZ5.js → chunk-PCDIEYV6.js} +1 -1
  144. package/dist/{chunk-EZN7CF45.js → chunk-PL3SG3M2.js} +1 -1
  145. package/dist/{chunk-NXAJBSIF.js → chunk-PQXYHI5W.js} +1 -1
  146. package/dist/{chunk-WAOUE7MP.js → chunk-PTISAIZW.js} +1 -1
  147. package/dist/{chunk-XZYA7DNH.js → chunk-PVN64537.js} +1 -1
  148. package/dist/{chunk-NIVFEACM.js → chunk-QECTIQAC.js} +1 -1
  149. package/dist/chunk-QMOGBKJM.js +2 -0
  150. package/dist/{chunk-ZU4W2QGM.js → chunk-QQI6N3FO.js} +1 -1
  151. package/dist/{chunk-7RWP4Y3H.js → chunk-QVP4FSKT.js} +1 -1
  152. package/dist/{chunk-OCDBTAYS.js → chunk-QWZJ5QDO.js} +2 -2
  153. package/dist/{chunk-YLXWAY7D.js → chunk-RARD6TC6.js} +1 -1
  154. package/dist/chunk-RDH3E25Q.js +27 -0
  155. package/dist/{chunk-AZLNLHUA.js → chunk-RLOJH5O6.js} +1 -1
  156. package/dist/{chunk-RPRXRKKR.js → chunk-RQKMSNEU.js} +1 -1
  157. package/dist/{chunk-R4JUKTDO.js → chunk-SB6P5EQH.js} +1 -1
  158. package/dist/{chunk-TU7TVFBK.js → chunk-SBR6D6GS.js} +1 -1
  159. package/dist/{chunk-7HMSMAUG.js → chunk-TLOYTGVT.js} +5 -5
  160. package/dist/{chunk-LUR7JFPP.js → chunk-TZVPDGJD.js} +1 -1
  161. package/dist/{chunk-D756UWY2.js → chunk-U7NRZBB5.js} +1 -1
  162. package/dist/{chunk-72RC7JSA.js → chunk-UEPJ26X2.js} +1 -1
  163. package/dist/chunk-UJLULWSR.js +21 -0
  164. package/dist/{chunk-LQQNPMOD.js → chunk-ULGBK4NS.js} +1 -1
  165. package/dist/{chunk-6DZX5HLZ.js → chunk-UNWPBMVM.js} +1 -1
  166. package/dist/chunk-URAYFJGM.js +87 -0
  167. package/dist/{chunk-FIP5L6LV.js → chunk-USJ3LUAL.js} +1 -1
  168. package/dist/chunk-UUWSULIM.js +101 -0
  169. package/dist/chunk-UX2CDUPE.js +9 -0
  170. package/dist/{chunk-GXKY5A46.js → chunk-VA3BSIUQ.js} +1 -1
  171. package/dist/chunk-VQZOKTJ2.js +12 -0
  172. package/dist/{chunk-36N3EHW5.js → chunk-VVCZRCRD.js} +1 -1
  173. package/dist/{chunk-HJMCXSUJ.js → chunk-VZA7BPCK.js} +1 -1
  174. package/dist/{chunk-LIGTP3A3.js → chunk-W3NWHWK2.js} +1 -1
  175. package/dist/{chunk-E6KSRQXL.js → chunk-WERIGVOH.js} +1 -1
  176. package/dist/{chunk-ETZMFRD6.js → chunk-WKZLK57W.js} +1 -1
  177. package/dist/{chunk-3OQW2GTA.js → chunk-WQR2GYP7.js} +1 -1
  178. package/dist/{chunk-SGPAM5DZ.js → chunk-WX4VGH5Q.js} +1 -1
  179. package/dist/{chunk-OJ33Q6DU.js → chunk-WZLDFEWR.js} +1 -1
  180. package/dist/{chunk-ZAFJQ3SM.js → chunk-X3J4CC27.js} +1 -1
  181. package/dist/chunk-XLQ4F6BI.js +9 -0
  182. package/dist/{chunk-XRNQSXOM.js → chunk-XMALVGH7.js} +2 -2
  183. package/dist/{chunk-TW5AA5A7.js → chunk-Y3YULFCK.js} +1 -1
  184. package/dist/{chunk-7YT4TTKL.js → chunk-YGMQXS2J.js} +1 -1
  185. package/dist/{chunk-RDP7GWSY.js → chunk-YH4VZVHJ.js} +1 -1
  186. package/dist/{chunk-YGRULEZY.js → chunk-YI4ESDAX.js} +1 -1
  187. package/dist/{chunk-YAW6JW6D.js → chunk-YKL5H4K6.js} +1 -1
  188. package/dist/{chunk-VX657KIK.js → chunk-YKOEABP2.js} +1 -1
  189. package/dist/{chunk-3E4ZO73O.js → chunk-YYVBE6W2.js} +1 -1
  190. package/dist/{chunk-MEKPGQAM.js → chunk-Z5BFCTHI.js} +2 -2
  191. package/dist/{chunk-UEE3RZN4.js → chunk-Z777GGHB.js} +1 -1
  192. package/dist/{chunk-7NPTL66J.js → chunk-ZGQM6KWN.js} +1 -1
  193. package/dist/{chunk-QENCC2ZS.js → chunk-ZI3X7DI2.js} +1 -1
  194. package/dist/{chunk-3F5FMH76.js → chunk-ZKPY3AXW.js} +1 -1
  195. package/dist/chunk-ZRDX2ARO.js +4 -0
  196. package/dist/{chunk-MNBGG4H3.js → chunk-ZTAZ2R5Z.js} +1 -1
  197. package/dist/{chunk-LKQFG4RW.js → chunk-ZY65IZJR.js} +1 -1
  198. package/dist/{chunk-WZXPF3BI.js → chunk-ZZNQIFFI.js} +1 -1
  199. package/dist/commands-QOORPTSI.js +2 -0
  200. package/dist/{committer-JGY66PFM.js → committer-26UZDYSA.js} +1 -1
  201. package/dist/{config-754B73XK.js → config-B472DZSR.js} +1 -1
  202. package/dist/{cover-cmd-NBNZCR6C.js → cover-cmd-3VO6QC5Y.js} +1 -1
  203. package/dist/{credentials-F7DYLVWY.js → credentials-TLT3RQOO.js} +1 -1
  204. package/dist/{deps-bundle-PW3WEQJ7.js → deps-bundle-CMTIWBS5.js} +1 -1
  205. package/dist/{deps-resolve-SQYVN76L.js → deps-resolve-XLFZK74A.js} +1 -1
  206. package/dist/{design-chat-F3OEZPNJ.js → design-chat-I7X3QDDY.js} +1 -1
  207. package/dist/design-committer-Y7R56RFZ.js +2 -0
  208. package/dist/design-headless-HUQOXLZB.js +2 -0
  209. package/dist/{design-remote-2BEGCVCX.js → design-remote-UDC5FP45.js} +2 -2
  210. package/dist/device-env-MMGISNHN.js +2 -0
  211. package/dist/dispatch-P2445PUU.js +2 -0
  212. package/dist/{doctor-XY26Z35T.js → doctor-UHFCIM4B.js} +1 -1
  213. package/dist/{docx-convert-6IZO5P5K.js → docx-convert-N4KMLLKO.js} +1 -1
  214. package/dist/{dossier-NROC2MCY.js → dossier-6KMKEIXV.js} +1 -1
  215. package/dist/evidence-M3JTOJNL.js +2 -0
  216. package/dist/{evidence-presentation-YYTIDCBS.js → evidence-presentation-DV3DRB4S.js} +1 -1
  217. package/dist/evolve-cmd-K3JXACMN.js +2 -0
  218. package/dist/{evolve-remote-WLVY3QID.js → evolve-remote-CUDVV2O2.js} +1 -1
  219. package/dist/{exit-manager-EDHCETUN.js → exit-manager-EGWAZHCR.js} +1 -1
  220. package/dist/{explain-cmd-OP5I5W3O.js → explain-cmd-235TY7QX.js} +1 -1
  221. package/dist/{explain-cmd-VYAANFFZ.js → explain-cmd-R67B4YR3.js} +1 -1
  222. package/dist/explore-UDD5FHXW.js +2 -0
  223. package/dist/{explore-context-tty-RZ7D2TBV.js → explore-context-tty-YXEFT32U.js} +1 -1
  224. package/dist/{explore-entry-EKXJ67BD.js → explore-entry-V6L5FSP4.js} +4 -4
  225. package/dist/{explore-live-2YVRAQZO.js → explore-live-N5VBLBUI.js} +1 -1
  226. package/dist/{explore-run-tty-D47FGPX7.js → explore-run-tty-ZZQ33GNA.js} +2 -2
  227. package/dist/{extract-bind-W2NET364.js → extract-bind-BTINHHE5.js} +3 -3
  228. package/dist/{extract-chat-M65NWGUK.js → extract-chat-ABZ5S7UU.js} +1 -1
  229. package/dist/{extract-cmd-FTFLETOP.js → extract-cmd-45OZETCM.js} +2 -2
  230. package/dist/extract-headless-ALEFAMVS.js +2 -0
  231. package/dist/{feeder-NY45UFJK.js → feeder-L55TH2NC.js} +1 -1
  232. package/dist/folder-flags-HTKJCXKB.js +2 -0
  233. package/dist/{gaps-cmd-OIDDLRYL.js → gaps-cmd-ROGQWK5X.js} +1 -1
  234. package/dist/{gate-WISOUTHQ.js → gate-QA5J7UZA.js} +1 -1
  235. package/dist/gate-XFFFX5ZF.js +2 -0
  236. package/dist/{generate-headless-RURIEKVS.js → generate-headless-DAH3HHRQ.js} +2 -2
  237. package/dist/hold-passthrough-K5PP26CP.js +2 -0
  238. package/dist/impact-cmd-3VFJAKYK.js +11 -0
  239. package/dist/index.js +171 -165
  240. package/dist/ingest-S5R736ZV.js +2 -0
  241. package/dist/{ingest-cmd-4G2AK4Y2.js → ingest-cmd-YSEH5EPU.js} +3 -3
  242. package/dist/ingest-remote-C6AP2Q7E.js +2 -0
  243. package/dist/install-B26Y2NU4.js +2 -0
  244. package/dist/{interactive-bind-SI2ZS55Q.js → interactive-bind-P3GTFIZM.js} +4 -4
  245. package/dist/{interactive-remote-J56EWJGA.js → interactive-remote-PBRQHTAF.js} +2 -2
  246. package/dist/lane-7IEAE6AC.js +2 -0
  247. package/dist/lattice-auth-7EL4ET3P.js +2 -0
  248. package/dist/{lifecycle-cmd-HJ37LTXE.js → lifecycle-cmd-PUNFWKV5.js} +1 -1
  249. package/dist/{list-cmd-6XL2FYLQ.js → list-cmd-RD7YBF4S.js} +1 -1
  250. package/dist/list-commands-UZELZAB3.js +2 -0
  251. package/dist/{list-remote-LXPQNXYN.js → list-remote-KGKXPCQA.js} +1 -1
  252. package/dist/{locks-cmd-JJ2QNTNY.js → locks-cmd-LXZ6I4QG.js} +1 -1
  253. package/dist/{logical-ids-RXAQJZ3T.js → logical-ids-D5PFYY4C.js} +1 -1
  254. package/dist/login-flow-CHLGQGHK.js +2 -0
  255. package/dist/{maintenance-cmd-BXXHP36K.js → maintenance-cmd-WRWBCP3R.js} +1 -1
  256. package/dist/{mobile-prompts-CECJ5UY2.js → mobile-prompts-Z7NQHRGP.js} +1 -1
  257. package/dist/{onboarding-PDVYMTY5.js → onboarding-ZP4XDYEO.js} +1 -1
  258. package/dist/{open-provider-OZAG6WZS.js → open-provider-U26BBVUE.js} +1 -1
  259. package/dist/pdf-convert-LMKOKLXT.js +2 -0
  260. package/dist/{persist-recorded-session-A3ID7JFA.js → persist-recorded-session-4IRYG5CJ.js} +1 -1
  261. package/dist/phase-seed-2H6OXZXT.js +2 -0
  262. package/dist/pipeline-U7D25NST.js +2 -0
  263. package/dist/policy-commands-TY6WOR73.js +8 -0
  264. package/dist/prepare-target-EVL2QSXA.js +2 -0
  265. package/dist/{pull-cmd-UPFQYUND.js → pull-cmd-QJQANBAW.js} +1 -1
  266. package/dist/pull-route-AIOTLA3D.js +2 -0
  267. package/dist/{readmodel-INMP6MNW.js → readmodel-KXCFPL2M.js} +1 -1
  268. package/dist/real-device-run-QODMDUXF.js +2 -0
  269. package/dist/{reconcile-cmd-JBH365JL.js → reconcile-cmd-IJTQAJZX.js} +4 -4
  270. package/dist/reconcile-deps-2CTIFXDR.js +2 -0
  271. package/dist/{reconcile-remote-BCX6SWFC.js → reconcile-remote-23D6SXXT.js} +2 -2
  272. package/dist/{recording-banner-YKBAL6UB.js → recording-banner-MNRMMEX4.js} +1 -1
  273. package/dist/registry-MZYBLEW2.js +2 -0
  274. package/dist/remote-entry-DW2J56N4.js +2 -0
  275. package/dist/remote-mode-AFNCN6EE.js +4 -0
  276. package/dist/{remote-words-YVB66R3F.js → remote-words-RCNFI2TQ.js} +1 -1
  277. package/dist/{require-project-folder-MLMEQJYP.js → require-project-folder-7UH43GHI.js} +1 -1
  278. package/dist/{resolve-run-intent-PC7TQZUL.js → resolve-run-intent-XEWFYMGN.js} +1 -1
  279. package/dist/{resolver-EID34LQE.js → resolver-QMPX6RBR.js} +1 -1
  280. package/dist/{revert-FHOBLZWF.js → revert-37346WLE.js} +1 -1
  281. package/dist/{review-cmd-EUHFLFMY.js → review-cmd-2OECKNL5.js} +1 -1
  282. package/dist/run-JWOHNWA3.js +2 -0
  283. package/dist/run-QFJ6ZRVD.js +2 -0
  284. package/dist/run-remote-66QTUQ2M.js +2 -0
  285. package/dist/{run-startup-gate-YO66G6LS.js → run-startup-gate-USQFSW47.js} +1 -1
  286. package/dist/run-test-md-7DRWCSQE.js +19 -0
  287. package/dist/session-worker.js +2 -2
  288. package/dist/{sessions-cmd-S7WZBUCN.js → sessions-cmd-LQ2LZQOC.js} +2 -2
  289. package/dist/{sessions-remote-IWHWIQ2T.js → sessions-remote-H7CQST42.js} +1 -1
  290. package/dist/{skill-installer-MAVQY6GW.js → skill-installer-LKYY6XFJ.js} +1 -1
  291. package/dist/{store-MSA7KASS.js → store-KM5MG3XB.js} +1 -1
  292. package/dist/store-choice-4J2NN6OQ.js +2 -0
  293. package/dist/store-guard-34GG2TW2.js +2 -0
  294. package/dist/{store-site-KA2DNBGY.js → store-site-ZSFINU6C.js} +1 -1
  295. package/dist/stream-warnings-N4KVVWXV.js +2 -0
  296. package/dist/sync-cmd-3CHSWWWW.js +2 -0
  297. package/dist/{sync-setup-RBRDUV7Q.js → sync-setup-QQXYO6R4.js} +1 -1
  298. package/dist/tcg-generate-IPD5FQUW.js +2 -0
  299. package/dist/{test-definition-VRI4YIYL.js → test-definition-53XNBEDE.js} +1 -1
  300. package/dist/testmd-actions-V7P7BMKE.js +2 -0
  301. package/dist/{testmd-sync-UPAA5UMD.js → testmd-sync-PQ4GFKHB.js} +1 -1
  302. package/dist/tms-client-XWCR7O7J.js +2 -0
  303. package/dist/token-refresh-LR33BKAB.js +2 -0
  304. package/dist/{use-case-ref-NE4X4MZN.js → use-case-ref-NA3IXGQW.js} +1 -1
  305. package/dist/{validate-basic-M5JHHNZA.js → validate-basic-3DX3MMC7.js} +1 -1
  306. package/dist/verdicts-7GKZEDHV.js +2 -0
  307. package/dist/{version-check-Q737BE65.js → version-check-OV6AOVED.js} +1 -1
  308. package/dist/{view-cmd-XSNL5DGI.js → view-cmd-QDKBBNIU.js} +1 -1
  309. package/dist/{walk-session-SHGYLFRB.js → walk-session-BAYYPIKN.js} +1 -1
  310. package/dist/with-telemetry-62LW4VFI.js +2 -0
  311. package/package.json +12 -12
  312. package/dist/ChatSurface-6NZGMNHL.js +0 -2
  313. package/dist/EvidenceViewOffer-WIEWCZUP.js +0 -2
  314. package/dist/FolderPicker-AF7ZMV3M.js +0 -2
  315. package/dist/InfoBox-D7GGZJU4.js +0 -2
  316. package/dist/ProjectPicker-OBYHJJLU.js +0 -2
  317. package/dist/SaveSessionPrompt-7XSHS4NL.js +0 -2
  318. package/dist/SingleShotApp-XQUDR36R.js +0 -2
  319. package/dist/TestMdRunView-LS2QUFWR.js +0 -2
  320. package/dist/TestrunEvidenceTable-HNDVJDIF.js +0 -2
  321. package/dist/bind-4XWK3DG2.js +0 -2
  322. package/dist/bootstrap-6ACT4ALI.js +0 -2
  323. package/dist/chat-committer-ZCSRJEUB.js +0 -2
  324. package/dist/child-G2GCW73X.js +0 -2
  325. package/dist/chunk-65VANXOF.js +0 -147
  326. package/dist/chunk-C6HI6Y3S.js +0 -2
  327. package/dist/chunk-D36V5OX6.js +0 -2
  328. package/dist/chunk-HCJ2N3XB.js +0 -12
  329. package/dist/chunk-NC7D7GOM.js +0 -21
  330. package/dist/chunk-OGFU4YY4.js +0 -2
  331. package/dist/chunk-VZ4A6WMK.js +0 -97
  332. package/dist/chunk-W54OT2FU.js +0 -9
  333. package/dist/chunk-W72ACCFL.js +0 -27
  334. package/dist/design-committer-TRYP3LOZ.js +0 -2
  335. package/dist/design-headless-OTHYOX3E.js +0 -2
  336. package/dist/device-env-CHFRRV6W.js +0 -2
  337. package/dist/dispatch-DVQ3H7EJ.js +0 -2
  338. package/dist/evidence-P6FFKC7B.js +0 -2
  339. package/dist/evolve-cmd-WWOB3QJR.js +0 -2
  340. package/dist/explore-K5YBGHK6.js +0 -2
  341. package/dist/extract-headless-G6W6JQ27.js +0 -2
  342. package/dist/folder-flags-KKIH654K.js +0 -2
  343. package/dist/gate-7AKRPRMK.js +0 -2
  344. package/dist/hold-passthrough-IOWPVB4W.js +0 -2
  345. package/dist/ingest-PDGS5ZTL.js +0 -2
  346. package/dist/ingest-remote-SSLUHQVG.js +0 -2
  347. package/dist/install-ZVBHPXGP.js +0 -2
  348. package/dist/lane-AQYRIW24.js +0 -2
  349. package/dist/lattice-auth-6FEVSR7E.js +0 -2
  350. package/dist/list-commands-5DCCKU3L.js +0 -2
  351. package/dist/login-flow-WEK3E476.js +0 -2
  352. package/dist/pdf-convert-447ACUB3.js +0 -2
  353. package/dist/phase-seed-LCJ4WSYV.js +0 -2
  354. package/dist/pipeline-GX3LKPI5.js +0 -2
  355. package/dist/prepare-target-FMT6QFHZ.js +0 -2
  356. package/dist/pull-route-FWBXJMR7.js +0 -2
  357. package/dist/real-device-run-X7JJWOIK.js +0 -2
  358. package/dist/reconcile-deps-TWJ3FTSU.js +0 -2
  359. package/dist/registry-VQC757MJ.js +0 -2
  360. package/dist/remote-entry-X6JMPC2K.js +0 -2
  361. package/dist/remote-mode-FDPA7EWG.js +0 -4
  362. package/dist/run-5RQUCNYP.js +0 -2
  363. package/dist/run-PC5YO4AS.js +0 -2
  364. package/dist/run-remote-SJCRTL7O.js +0 -2
  365. package/dist/run-test-md-BLNBK4MH.js +0 -17
  366. package/dist/store-choice-3OJCV26J.js +0 -2
  367. package/dist/store-guard-OOSDLMEC.js +0 -2
  368. package/dist/stream-warnings-GEQKKJU7.js +0 -2
  369. package/dist/sync-cmd-RDFDMVKQ.js +0 -2
  370. package/dist/tcg-generate-KIECTZ2C.js +0 -2
  371. package/dist/testmd-actions-CMAG6HWI.js +0 -2
  372. package/dist/tms-client-NXAB6VJD.js +0 -2
  373. package/dist/token-refresh-KP3AYMYK.js +0 -2
  374. package/dist/verdicts-XK3GAUX3.js +0 -2
  375. package/dist/with-telemetry-PM2HVN2B.js +0 -2
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{d as G,f as K,h as j}from"./chunk-36N3EHW5.js";import{a as q,b as z,d as V,e as H}from"./chunk-7YT4TTKL.js";import{a as J,b as y,c as Q}from"./chunk-NXAJBSIF.js";import{a as N,b as L,c as O}from"./chunk-IGEAET7M.js";import{d as B,f as $}from"./chunk-CUXY6KQ2.js";import{a as E}from"./chunk-MMBBQ4OZ.js";import{b as R,c as I,j as U}from"./chunk-XRNQSXOM.js";import{a as F}from"./chunk-TZXXJWHA.js";import{e as S}from"./chunk-Z7S3IWUX.js";import{n as h}from"./chunk-NC7D7GOM.js";import{b as _,r as C,s as P}from"./chunk-A7RJQJNT.js";function W(e){return e.kind==="simulator"?e.id:e.virtualName??e.id}function X(e,r,o={}){let t={platform:e.platform,udid:e.id,target:e.kind};return r&&(t.app_package=r),o.noReset!==void 0&&(t.no_reset=o.noReset),o.appiumUrl&&(t.appium_url=o.appiumUrl),e.platform==="android"&&o.autoGrantPermissions!==void 0&&(t.auto_grant_permissions=o.autoGrantPermissions),e.platform==="ios"&&o.autoAcceptAlerts!==void 0&&(t.auto_accept_alerts=o.autoAcceptAlerts),t}function Y(e=process.env){let r=e.KANE_APPIUM_URL?.trim();return r||null}function m(e){return`${e.platform}|${W(e)}`}var g=new Map,Z=new Set;function ee(e){return Z.has(m(e))}function ye(e,r,o){r.state==="stopped"&&(g.has(m(r))||oe(e,r,o))}async function re(e,r,o){let t=g.get(m(r));return t?(o?.(`waiting for ${r.displayName} to finish booting\u2026`),t):oe(e,r,o)}function oe(e,r,o){let t=m(r),a=e.prepare(r,o);g.set(t,a),r.state==="stopped"&&a.then(()=>Z.add(t),()=>{});let n=()=>{g.get(t)===a&&g.delete(t)};return a.then(n,n),a.catch(()=>{}),a}import{basename as le}from"path";import{spawnSync as pe}from"child_process";async function de(e,r,o){if(!e.teardownPlan||!o.appPackage&&!o.shutdown)return;let t;try{t=await e.teardownPlan(r,o)}catch{return}t.length!==0&&h(`device:${r.id}`,()=>{G({udid:r.id,displayName:r.displayName});for(let a of t)try{pe(a.file,a.args,{timeout:3e4,stdio:"ignore"})}catch{}})}var te={emulator:[".apk"],simulator:[".zip"]};async function ce(e,r,o,t){if(e.kind==="package")return e;if(e.kind==="app_id"){let a=r.cloudUpload;if(!a)throw new Error(`${e.value} is an app id, which needs an account to download it. Log in, or pass a path to a local build instead.`);let n=await Q({appId:e.value,baseUrl:a.baseUrl,auth:a.auth,...te[o]?{accepts:te[o]}:{},...t?{onProgress:t}:{}}),s=x(n.path);if(!s||s.kind==="app_id")throw new Error(`${n.name} is not a build this CLI can install (from ${e.value}).`);return s}try{let a=new q,n=await V(e.value,a),s=new J;await s.find(n)||t?.(`copying ${le(e.value)} into the local app store\u2026`);let i=await s.put({key:n,sourcePath:e.value,source:"local"});return{...e,value:i.path}}catch{return e}}function ue(e){h(`appium:${e}`,()=>{j({deviceClass:e,owner:process.pid})})}var k=class extends Error{constructor(r){super(r),this.name="MobileHostUnsupportedError"}},v=class extends Error{constructor(o,t){super(o);this.doctorText=t;this.name="MobilePreflightError"}};async function ge(e,r,o){let t=o.cloudUpload,a=await H({path:e,type:r,env:t.env,orgId:t.orgId,userId:t.userId,auth:t.auth,baseUrl:t.baseUrl,...o.onProgress?{onProgress:o.onProgress}:{}});if(z(a)){o.onProgress?.(`app not uploaded \u2014 ${a.reason}`);return}return a.appId}var fe="app must be a build (.apk for an emulator, .zip of the .app bundle for a simulator) or an app id from your cloud uploads \u2014 a package id names something already installed on one device, so it cannot be uploaded, exported as code, or run anywhere else.",ae=C(_);function x(e){let r=e.trim();if(y(r))return{kind:"app_id",value:r};let o=P(r,ae);return o?{kind:o.slice(1),value:r}:null}function me(e){return!!e&&(P(e,ae)!==void 0||y(e.trim()))}function ve(e){return e.filter(r=>r.required&&r.status==="fail")}function be(e,r){return!!r&&S(e,r)}async function Ke(e){let r=F();if(!r.supported)throw new k(r.reason);let o=Y()??e.appiumUrl??e.defaults?.appium_url,t=!!(e.agent||!e.interactive),a=U(),n=!!E();t&&e.platform?.toLowerCase()!=="ios"&&!n&&((await a.status("emulator")).installed||await a.ensure("emulator",{automatic:!0,onProgress:e.onProgress}));let s=await N(e.platform,{appiumUrl:o});if(O(s)){let l=s.sections.flatMap(w=>ve(w.checks)).map(w=>w.label).join(", ");throw new v(`Mobile toolchain not ready (${l}). Run \`kane-cli doctor --target ${e.platform?.toLowerCase()==="ios"?"simulator":e.platform?.toLowerCase()==="android"?"emulator":"<emulator|simulator>"}\` for details.`,L(s))}let p=await $({device:e.device,platform:e.platform,defaultTarget:e.defaults?.default_target,interactive:e.interactive}),i;if(p.ok)i=p.target;else if(p.reason==="needs-picker"&&e.pickTarget){let l=await e.pickTarget(p.candidates);if(!l)throw new Error("Target selection cancelled");i=l}else throw new Error(p.message);let u=B(i.platform);if(!u)throw new Error(`No provider for platform "${i.platform}"`);let d=R(i);if(!d)throw new Error(`No managed dependencies serve ${i.platform} ${i.kind} targets yet.`);if(!(n&&i.platform.toLowerCase()==="android"))try{await a.ensure(d,{automatic:t,onProgress:e.onProgress})}catch(l){throw l instanceof I?new v(l.message,l.message):l}let ie=i.state!=="ready"||ee(i);i=await re(u,i,e.onProgress);let ne=await K(d,{...o?{appiumUrl:o}:{},device:{udid:i.id,displayName:i.displayName},onProgress:e.onProgress});ue(d);let D=be(i,e.defaults?.default_target)?e.defaults?.default_app:void 0,f=e.app??(me(D)?D:void 0);if(e.app&&!x(e.app))throw new Error(`${e.app}: ${fe}`);let c=f?x(f):null,M=c?await ce(c,e,d,e.onProgress):null,b=M?await u.ensureApp(i,M,e.onProgress):void 0,T=c?.kind==="app_id"?c.value:e.cloudUpload&&c&&f?await ge(c.value,d,e):void 0;await de(u,i,{shutdown:ie,...b?{appPackage:b}:{}});let se=X(i,b,{noReset:e.noReset??e.defaults?.no_reset,appiumUrl:ne.url,autoGrantPermissions:e.defaults?.auto_grant_permissions,autoAcceptAlerts:e.defaults?.auto_accept_alerts}),A=T??f;return{device:se,target:i,provider:u,...T?{appId:T}:{},...A?{appRef:A}:{}}}export{W as a,X as b,ye as c,re as d,k as e,v as f,fe as g,x as h,me as i,Ke as j};
2
+ import{d as G,f as K,h as j}from"./chunk-VVCZRCRD.js";import{a as q,b as z,d as V,e as H}from"./chunk-YGMQXS2J.js";import{a as J,b as y,c as Q}from"./chunk-PQXYHI5W.js";import{a as N,b as L,c as O}from"./chunk-3T2TYDPT.js";import{d as B,f as $}from"./chunk-2N75WO7Y.js";import{a as E}from"./chunk-MMBBQ4OZ.js";import{b as R,c as I,j as U}from"./chunk-XMALVGH7.js";import{a as F}from"./chunk-TZXXJWHA.js";import{e as S}from"./chunk-Z7S3IWUX.js";import{n as h}from"./chunk-UJLULWSR.js";import{b as _,r as C,s as P}from"./chunk-A7RJQJNT.js";function W(e){return e.kind==="simulator"?e.id:e.virtualName??e.id}function X(e,r,o={}){let t={platform:e.platform,udid:e.id,target:e.kind};return r&&(t.app_package=r),o.noReset!==void 0&&(t.no_reset=o.noReset),o.appiumUrl&&(t.appium_url=o.appiumUrl),e.platform==="android"&&o.autoGrantPermissions!==void 0&&(t.auto_grant_permissions=o.autoGrantPermissions),e.platform==="ios"&&o.autoAcceptAlerts!==void 0&&(t.auto_accept_alerts=o.autoAcceptAlerts),t}function Y(e=process.env){let r=e.KANE_APPIUM_URL?.trim();return r||null}function m(e){return`${e.platform}|${W(e)}`}var g=new Map,Z=new Set;function ee(e){return Z.has(m(e))}function ye(e,r,o){r.state==="stopped"&&(g.has(m(r))||oe(e,r,o))}async function re(e,r,o){let t=g.get(m(r));return t?(o?.(`waiting for ${r.displayName} to finish booting\u2026`),t):oe(e,r,o)}function oe(e,r,o){let t=m(r),a=e.prepare(r,o);g.set(t,a),r.state==="stopped"&&a.then(()=>Z.add(t),()=>{});let n=()=>{g.get(t)===a&&g.delete(t)};return a.then(n,n),a.catch(()=>{}),a}import{basename as le}from"path";import{spawnSync as pe}from"child_process";async function de(e,r,o){if(!e.teardownPlan||!o.appPackage&&!o.shutdown)return;let t;try{t=await e.teardownPlan(r,o)}catch{return}t.length!==0&&h(`device:${r.id}`,()=>{G({udid:r.id,displayName:r.displayName});for(let a of t)try{pe(a.file,a.args,{timeout:3e4,stdio:"ignore"})}catch{}})}var te={emulator:[".apk"],simulator:[".zip"]};async function ce(e,r,o,t){if(e.kind==="package")return e;if(e.kind==="app_id"){let a=r.cloudUpload;if(!a)throw new Error(`${e.value} is an app id, which needs an account to download it. Log in, or pass a path to a local build instead.`);let n=await Q({appId:e.value,baseUrl:a.baseUrl,auth:a.auth,...te[o]?{accepts:te[o]}:{},...t?{onProgress:t}:{}}),s=x(n.path);if(!s||s.kind==="app_id")throw new Error(`${n.name} is not a build this CLI can install (from ${e.value}).`);return s}try{let a=new q,n=await V(e.value,a),s=new J;await s.find(n)||t?.(`copying ${le(e.value)} into the local app store\u2026`);let i=await s.put({key:n,sourcePath:e.value,source:"local"});return{...e,value:i.path}}catch{return e}}function ue(e){h(`appium:${e}`,()=>{j({deviceClass:e,owner:process.pid})})}var k=class extends Error{constructor(r){super(r),this.name="MobileHostUnsupportedError"}},v=class extends Error{constructor(o,t){super(o);this.doctorText=t;this.name="MobilePreflightError"}};async function ge(e,r,o){let t=o.cloudUpload,a=await H({path:e,type:r,env:t.env,orgId:t.orgId,userId:t.userId,auth:t.auth,baseUrl:t.baseUrl,...o.onProgress?{onProgress:o.onProgress}:{}});if(z(a)){o.onProgress?.(`app not uploaded \u2014 ${a.reason}`);return}return a.appId}var fe="app must be a build (.apk for an emulator, .zip of the .app bundle for a simulator) or an app id from your cloud uploads \u2014 a package id names something already installed on one device, so it cannot be uploaded, exported as code, or run anywhere else.",ae=C(_);function x(e){let r=e.trim();if(y(r))return{kind:"app_id",value:r};let o=P(r,ae);return o?{kind:o.slice(1),value:r}:null}function me(e){return!!e&&(P(e,ae)!==void 0||y(e.trim()))}function ve(e){return e.filter(r=>r.required&&r.status==="fail")}function be(e,r){return!!r&&S(e,r)}async function Ke(e){let r=F();if(!r.supported)throw new k(r.reason);let o=Y()??e.appiumUrl??e.defaults?.appium_url,t=!!(e.agent||!e.interactive),a=U(),n=!!E();t&&e.platform?.toLowerCase()!=="ios"&&!n&&((await a.status("emulator")).installed||await a.ensure("emulator",{automatic:!0,onProgress:e.onProgress}));let s=await N(e.platform,{appiumUrl:o});if(O(s)){let l=s.sections.flatMap(w=>ve(w.checks)).map(w=>w.label).join(", ");throw new v(`Mobile toolchain not ready (${l}). Run \`kane-cli doctor --target ${e.platform?.toLowerCase()==="ios"?"simulator":e.platform?.toLowerCase()==="android"?"emulator":"<emulator|simulator>"}\` for details.`,L(s))}let p=await $({device:e.device,platform:e.platform,defaultTarget:e.defaults?.default_target,interactive:e.interactive}),i;if(p.ok)i=p.target;else if(p.reason==="needs-picker"&&e.pickTarget){let l=await e.pickTarget(p.candidates);if(!l)throw new Error("Target selection cancelled");i=l}else throw new Error(p.message);let u=B(i.platform);if(!u)throw new Error(`No provider for platform "${i.platform}"`);let d=R(i);if(!d)throw new Error(`No managed dependencies serve ${i.platform} ${i.kind} targets yet.`);if(!(n&&i.platform.toLowerCase()==="android"))try{await a.ensure(d,{automatic:t,onProgress:e.onProgress})}catch(l){throw l instanceof I?new v(l.message,l.message):l}let ie=i.state!=="ready"||ee(i);i=await re(u,i,e.onProgress);let ne=await K(d,{...o?{appiumUrl:o}:{},device:{udid:i.id,displayName:i.displayName},onProgress:e.onProgress});ue(d);let D=be(i,e.defaults?.default_target)?e.defaults?.default_app:void 0,f=e.app??(me(D)?D:void 0);if(e.app&&!x(e.app))throw new Error(`${e.app}: ${fe}`);let c=f?x(f):null,M=c?await ce(c,e,d,e.onProgress):null,b=M?await u.ensureApp(i,M,e.onProgress):void 0,T=c?.kind==="app_id"?c.value:e.cloudUpload&&c&&f?await ge(c.value,d,e):void 0;await de(u,i,{shutdown:ie,...b?{appPackage:b}:{}});let se=X(i,b,{noReset:e.noReset??e.defaults?.no_reset,appiumUrl:ne.url,autoGrantPermissions:e.defaults?.auto_grant_permissions,autoAcceptAlerts:e.defaults?.auto_accept_alerts}),A=T??f;return{device:se,target:i,provider:u,...T?{appId:T}:{},...A?{appRef:A}:{}}}export{W as a,X as b,ye as c,re as d,k as e,v as f,fe as g,x as h,me as i,Ke as j};
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{c as d,d as p,e as g}from"./chunk-M43WH5DQ.js";import{b as m}from"./chunk-D36V5OX6.js";import{mkdirSync as y,writeFileSync as o,existsSync as u,readFileSync as M}from"fs";import{join as a}from"path";var E={name:"remote-execution",version:"0.5.0",backendId:"hyper",kaneCompat:">=0.4.0",defaults:{runson:"mac",concurrency:1}},f={runson:"mac",concurrency:1,timeoutMinutes:120,mobile:{runson:"mac26",queueTimeout:300,appiumPort:4739,androidHome:"$HOME/android-sdk-shim",globalTimeout:90,testSuiteTimeout:90,testSuiteStep:45,ios:{runson:{}},realDevice:{runson:"linux"}}},v=`version: "0.1"
2
+ import{c as d,d as p,e as g}from"./chunk-2SY2NCOP.js";import{b as m}from"./chunk-QMOGBKJM.js";import{mkdirSync as y,writeFileSync as o,existsSync as u,readFileSync as M}from"fs";import{join as a}from"path";var E={name:"remote-execution",version:"0.5.0",backendId:"hyper",kaneCompat:">=0.4.0",defaults:{runson:"mac",concurrency:1}},f={runson:"mac",concurrency:1,timeoutMinutes:120,mobile:{runson:"mac26",queueTimeout:300,appiumPort:4739,androidHome:"$HOME/android-sdk-shim",globalTimeout:90,testSuiteTimeout:90,testSuiteStep:45,ios:{runson:{}},realDevice:{runson:"linux"}}},v=`version: "0.1"
3
3
  runson: {{runson}}
4
4
  autosplit: true
5
5
  concurrency: {{concurrency}}
@@ -0,0 +1,87 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a as c,b as l,c as _}from"./chunk-VZ7KXRXB.js";import{a as y}from"./chunk-GGV336P5.js";import{a as v}from"./chunk-RZ4F3BHX.js";import{a as i,p as f}from"./chunk-QMOGBKJM.js";import{createHash as x}from"crypto";import{promises as o,readFileSync as A,writeFileSync as S,renameSync as N,mkdirSync as F}from"fs";import{dirname as T,join as u}from"path";var w=`# kane-cli metric catalog, version 1.
3
+ #
4
+ # Policies reference these as metrics.<name>. \`where\` and \`value\` expressions
5
+ # are CEL over \`test\` (one tests/*/result.yaml, parsed), \`file\` and \`run\`
6
+ # (run.yaml, parsed); \`expr\` is CEL over \`run\`, \`tests\`, \`totals\`, \`failures\`.
7
+ # A test's run_kind sits in its result.yaml environment on testrun packs and in
8
+ # run.yaml environment on single-test packs.
9
+ catalog: kane-cli
10
+ version: 1
11
+ min_producer: "0.8.10"
12
+ description: Metrics read from the files kane-cli writes into an evidence pack.
13
+ metrics:
14
+ # Tests whose steps contain no assert step. Analyze steps read a value and
15
+ # pass whatever they read, so they do not count as checks.
16
+ tests_without_checks:
17
+ type: count
18
+ unit: tests
19
+ label: Tests without checks
20
+ per_test: true
21
+ verify:
22
+ aggregate: count
23
+ where: "!test.steps.exists(s, has(s.kind) && s.kind == 'assert')"
24
+ merge: recompute
25
+ min_producer: "0.8.10"
26
+ # Tests that failed on replay and passed after adaptive heal re-authored them.
27
+ heal.healed_tests:
28
+ type: count
29
+ unit: tests
30
+ label: Healed tests
31
+ per_test: true
32
+ verify:
33
+ aggregate: count
34
+ where: "has(test.adaptive_heal) && has(test.adaptive_heal.outcome) && test.adaptive_heal.outcome == 'healed'"
35
+ merge: recompute
36
+ min_producer: "0.8.10"
37
+ # Tests that still failed after adaptive heal spent its retry budget.
38
+ heal.exhausted_tests:
39
+ type: count
40
+ unit: tests
41
+ label: Heal-exhausted tests
42
+ per_test: true
43
+ verify:
44
+ aggregate: count
45
+ where: "has(test.adaptive_heal) && has(test.adaptive_heal.outcome) && test.adaptive_heal.outcome == 'exhausted'"
46
+ merge: recompute
47
+ min_producer: "0.8.10"
48
+ # Steps adaptive heal re-authored, summed over the tests where a heal was
49
+ # triggered. Forced-author runs also write reauthored_steps but triggered
50
+ # is false there, so they are left out.
51
+ heal.reauthored_steps:
52
+ type: count
53
+ unit: steps
54
+ label: Re-authored steps
55
+ per_test: true
56
+ verify:
57
+ aggregate: sum
58
+ path: adaptive_heal.reauthored_steps
59
+ where: "has(test.adaptive_heal) && test.adaptive_heal.triggered && has(test.adaptive_heal.reauthored_steps)"
60
+ merge: recompute
61
+ min_producer: "0.8.10"
62
+ # Tests whose run_kind is not replay, so the verdict rests on an authoring
63
+ # run rather than a recorded one.
64
+ non_replay_tests:
65
+ type: count
66
+ unit: tests
67
+ label: Non-replay tests
68
+ per_test: true
69
+ verify:
70
+ aggregate: count
71
+ where: "(has(test.environment) && has(test.environment.run_kind) ? test.environment.run_kind : (has(run.environment.run_kind) ? run.environment.run_kind : 'author')) != 'replay'"
72
+ merge: recompute
73
+ min_producer: "0.8.10"
74
+ # Tests whose attempts disagreed, divided by all tests.
75
+ flaky_rate:
76
+ type: ratio
77
+ unit: fraction of tests
78
+ label: Flaky rate
79
+ range: [0, 1]
80
+ per_test: true
81
+ verify:
82
+ expr: "size(tests) == 0 ? 0.0 : double(tests.filter(t, has(t.flaky) && t.flaky == true).size()) / double(size(tests))"
83
+ merge: recompute
84
+ min_producer: "0.8.10"
85
+ `;var d="kane-cli",P=5e3,E=1;function p(n,e){let r;try{r=l(n)}catch{return null}if(!r||typeof r!="object")return null;let t=r;return t.catalog!==d||typeof t.version!="number"||!Number.isInteger(t.version)||t.version<1||!t.metrics||typeof t.metrics!="object"?null:{yaml:n,id:d,version:t.version,sha256:x("sha256").update(n).digest("hex"),source:e}}function R(){return p(w,"bundled")}function L(n){try{let e=JSON.parse(A(n,"utf-8"));if(e.wrapperVersion!==E||typeof e.yaml!="string")return null;let r=p(e.yaml,"cache");return r?{etag:typeof e.etag=="string"?e.etag:null,catalog:r}:null}catch{return null}}function O(n,e,r){try{F(T(n),{recursive:!0});let t={wrapperVersion:E,writtenByVersion:i,fetchedAt:Date.now(),etag:r,yaml:e},a=`${n}.tmp`;S(a,JSON.stringify(t,null,2)+`
86
+ `),N(a,n)}catch(t){process.stderr.write(`[evidence] Failed to save metric catalog cache: ${t instanceof Error?t.message:String(t)}
87
+ `)}}async function I(n,e={}){let r=e.cachePath??f(n),t=L(r),a=new AbortController,b=setTimeout(()=>a.abort(),P);try{let k=`${y(n).controllerBaseUrl}/public/evidence/catalogs/${d}?producer_version=${encodeURIComponent(i)}`,m={Accept:"application/yaml"};t?.etag&&(m["If-None-Match"]=t.etag);let s=await v(k,{headers:m,signal:a.signal});if(s.status===304&&t)return{...t.catalog,source:"controller"};if(s.ok){let h=await s.text(),g=p(h,"controller");if(g)return O(r,h,s.headers.get("ETag")),g}}catch{}finally{clearTimeout(b)}return t?.catalog??R()}var C=new Map;function G(n){let e=C.get(n);return e||(e=I(n),C.set(n,e)),e}async function J(n,e){await o.mkdir(u(n,"meta"),{recursive:!0}),await o.writeFile(u(n,"meta","metrics-catalog.yaml"),e.yaml);let r=u(n,"run.yaml"),t=l(await o.readFile(r,"utf8"),{schema:c});t.metrics_catalog={id:e.id,version:e.version,sha256:e.sha256,source:e.source},await o.writeFile(r,_(t,{lineWidth:-1,schema:c}))}export{p as a,R as b,I as c,G as d,J as e};
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{I as se,J as oe,L as R,M as E,N as ae,Na as k,a as ie,r as A}from"./chunk-UEE3RZN4.js";import{f as x,h as re}from"./chunk-KU3YHPWZ.js";import{a as J,d as X,h as B,i as Y,j as Q,k as V,l as Z,m as ee,n as te,o as F,p as ne}from"./chunk-PUVMC4PX.js";import{d as P}from"./chunk-B7ZX5HEN.js";import{existsSync as D,readFileSync as I,renameSync as $e,writeFileSync as Ee}from"fs";import{dirname as q,isAbsolute as T,resolve as N}from"path";var ve=new Set(["inline","testmd","testrun"]),ye=new Set(["inferred","authored","runtime-derived"]),C=new Set(["passed","failed","broken","skipped"]);function ce(t,e,n){if(n.facts.length===0)return{record:null,errors:[{code:"EMPTY_EXECUTIONS",detail:"a run with no designed units attaches no facts \u2014 skip the call"}]};let a=e;for(let s=0;;s++){let o=t.head(),c=t.serialize(o);if(!t.sameToken(t.parse(a.latestHash),o)){if(s>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:`graph opened at ${String(a.latestHash)} but chain head is ${String(c)} \u2014 retry budget exhausted`}]};a=E(t);continue}let d=be(t,a,n);if(d!=="cas")return d;if(s>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:"concurrent appends kept moving the head \u2014 retry budget exhausted"}]};a=E(t)}}function de(t,e){return ve.has(t.mode)?C.has(t.verdict)?ye.has(t.oracle_mode)?typeof t.drift_flag!="boolean"||typeof t.stale_at_run!="boolean"?[{code:"MISSING_FIELD",detail:`${e}: drift_flag and stale_at_run are required booleans`}]:!t.execution_id||!t.started_at||!t.definition_id_at_run?[{code:"MISSING_FIELD",detail:`${e}: execution_id, started_at and definition_id_at_run are required`}]:[]:[{code:"BAD_ORACLE_MODE",detail:`${e}: oracle_mode '${t.oracle_mode}' not in inferred|authored|runtime-derived`}]:[{code:"BAD_VERDICT",detail:`${e}: verdict '${t.verdict}' not in ${[...C].join("|")}`}]:[{code:"BAD_MODE",detail:`${e}: mode '${t.mode}' not in inline|testmd|testrun`}]}function ue(t,e,n,a){return{about:e,definition_id_at_run:t.definition_id_at_run,verdict:t.verdict,...n&&n.length?{per_ac:n}:{},drift_flag:t.drift_flag,oracle_mode:t.oracle_mode,stale_at_run:t.stale_at_run,...a.length?{unresolved_acs:a}:{},execution_id:t.execution_id,...t.evidence_id?{evidence_id:t.evidence_id}:{},...t.duration_ms!==void 0?{duration_ms:t.duration_ms}:{},started_at:t.started_at,mode:t.mode,local:t.local,...t.via_parent?{via_parent:t.via_parent}:{}}}function pe(t,e,n={}){if(!Array.isArray(e.facts)||e.facts.length===0)return{record:null,errors:[{code:"EMPTY_EXECUTIONS",detail:"parked line carries no facts"}]};for(let a=0;;a++){let s=E(t),o=e.facts.filter(r=>s.appliedEvents.has(r.event_id)).map(r=>r.event_id),c=e.facts.filter(r=>!s.appliedEvents.has(r.event_id));if(c.length===0)return{record:null,errors:null,applied:[],skipped:o,rejected:[]};let d=[],u=[],l=[],h=[];for(let r of c){let i=`executions[${r.ref}]`,f=[];if(!r.about_cid||!s.hasNode(r.about_cid))f.push({code:"UNKNOWN_REF",detail:`${i}: about_cid '${String(r.about_cid)}' is not in the graph \u2014 the pinned run-time target is gone`});else if(s.nodeLabel.get(r.about_cid)!==x.TEST)f.push({code:"ILLEGAL_TARGET",detail:`${i}: execution facts attach to tests \u2014 '${r.about_cid}' is a ${s.nodeLabel.get(r.about_cid)}`});else if(!r.event_id)f.push({code:"MISSING_FIELD",detail:`${i}: parked facts require event_id`});else{f.push(...de(r,i));for(let g of r.per_ac??[])C.has(g.verdict)||f.push({code:"BAD_VERDICT",detail:`${i}.per_ac['${g.ac_ref}']: verdict '${g.verdict}'`})}if(f.length>0){d.push({event_id:r.event_id??"",errors:f});continue}let p=[],m=[],v=[...r.unresolved_acs??[]];for(let g of r.per_ac??[]){let $=g.ac_cid&&s.hasNode(g.ac_cid)&&s.nodeLabel.get(g.ac_cid)===x.AC?g.ac_cid:null,y=$?null:s.resolve(g.ac_ref),_=$??(y?s.tipOf(y.cid):null);if(!_||!$&&(s.superseded.has(_)||s.nodeLabel.get(_)!==x.AC)){v.push(g.ac_ref);continue}p.push({ac_ref:s.nameOf.get(_)??g.ac_ref,ac_cid:_,verdict:g.verdict}),m.push(_)}u.push(ue(r,r.about_cid,p,v)),h.push({about_cid:r.about_cid,per_ac:m}),l.push(r.event_id)}if(u.length===0)return{record:null,errors:null,applied:[],skipped:o,rejected:d};try{let r=R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:[],supersessions:[],executions:u,event_ids:[...l].sort(),source_head_moves:{}},{returnWarnings:!0,graph:s,expectPrev:s.latestHash,intent:{v:1,verb:"parked",args:A({line:e}),pins:{facts:h}},busyRetry:{deadlineMs:5e3},provenance:n.provenance});return{record:r.record,errors:null,applied:l,skipped:o,rejected:d,...r.warnings?{warnings:r.warnings}:{}}}catch(r){if(!(r instanceof k))throw r;if(a>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:"concurrent appends kept moving the head \u2014 parked replay retry budget exhausted (line stays queued)"}]}}}}function be(t,e,n){let a=[],s=[],o=[];for(let d of n.facts){let u=`executions[${d.ref}]`,l=n.pinned?null:e.resolve(d.ref),h=n.pinned?d.about_cid&&e.hasNode(d.about_cid)?d.about_cid:null:l?e.tipOf(l.cid):null;if(!h||!n.pinned&&e.superseded.has(h)){a.push({code:"UNKNOWN_REF",detail:`${u}: '${n.pinned?String(d.about_cid):d.ref}' is not a ${n.pinned?"":"live "}committed node`});continue}if(e.nodeLabel.get(h)!==x.TEST){a.push({code:"ILLEGAL_TARGET",detail:`${u}: execution facts attach to tests \u2014 '${d.ref}' is a ${e.nodeLabel.get(h)}`});continue}let r=de(d,u);if(r.length>0){a.push(...r);continue}let i=[],f=[];for(let p of d.per_ac??[]){let m=n.pinned?null:e.resolve(p.ac_ref),v=n.pinned?p.ac_cid&&e.hasNode(p.ac_cid)?p.ac_cid:null:m?e.tipOf(m.cid):null;if(!v||!n.pinned&&e.superseded.has(v)||e.nodeLabel.get(v)!==x.AC){a.push({code:"UNKNOWN_REF",detail:`${u}.per_ac: '${n.pinned?String(p.ac_cid):p.ac_ref}' is not a${n.pinned?"n":" live"} AC`});continue}if(!C.has(p.verdict)){a.push({code:"BAD_VERDICT",detail:`${u}.per_ac['${p.ac_ref}']: verdict '${p.verdict}'`});continue}i.push({ac_ref:e.nameOf.get(v)??v,ac_cid:v,verdict:p.verdict}),f.push(v)}s.push(ue(d,h,i,d.unresolved_acs??[])),o.push({about_cid:h,per_ac:f})}if(a.length>0)return{record:null,errors:a};let c;try{c=R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:[],supersessions:[],executions:s,...n.eventIds&&n.eventIds.length>0?{event_ids:n.eventIds}:{},source_head_moves:{}},{returnWarnings:!0,graph:e,expectPrev:e.latestHash,intent:{v:1,verb:"execution",args:A({facts:n.facts,by:n.by,eventIds:n.eventIds??null}),pins:{facts:o}},busyRetry:{deadlineMs:n.lockDeadlineMs??5e3},provenance:n.provenance})}catch(d){if(d instanceof k)return"cas";throw d}return{record:c.record,errors:null,...c.warnings?{warnings:c.warnings}:{}}}function Ye(t){let e={failed:3,broken:2,skipped:1,passed:0},n=new Map;for(let a of t)for(let s of a.verifies??[]){let o=n.get(s);(o===void 0||(e[a.status]??0)>(e[o]??0))&&n.set(s,a.status)}return[...n.entries()].map(([a,s])=>({ref:a,verdict:s}))}function Qe(t){let e=[],{store:n}=t;if(!n.exists())return{synced:0,superseded:0,skipped:"no-context",warnings:e};let a=t.by??{kind:"ai",id:"exec-sync"},s=t.lockDeadlineMs;try{Se(n,e,s)}catch(i){e.push(`sync: parked-facts replay failed (${i instanceof Error?i.message:String(i)}) \u2014 queue intact, retrying next sync`)}let o=E(n),c=[],d=0,u=new Set,l=new Set(t.members.map(i=>T(i.path)?i.path:N(t.projectDir,i.path))),h=new Map;for(let i of t.members){let f=T(i.path)?i.path:N(t.projectDir,i.path);if(!D(f)){e.push(`sync: member file missing: ${f} \u2014 skipped, no fact attached`);continue}for(let p of xe(f,e))if(!u.has(p.path))try{let m=p.path===f,v=!m&&l.has(p.path),g=m?void 0:F(I(f,"utf8"))?.id,$=I(p.path,"utf8"),y=F($);if(!y?.id){u.add(p.path);continue}let _=o.resolve(y.id),S=_?o.tipOf(_.cid):null;if(!_||!S||o.superseded.has(S)){u.add(p.path),e.push(`sync: ${y.id} does not resolve to a live test \u2014 skipped (foreign store?)`);continue}let L=B(V($,ee(q(p.path),o))),_e=String(o.getNode(S)?.content.test_md_blob??""),j=B(V(_e,Z(o))),G=o.getNode(S)?.content.definitionId,M=typeof G=="string"?G:j,w=!1,O=S;if(L===j)y.base!==M&&he(p.path,$,M,e);else if(y.base===j||y.base===M){let b=Ie(n,o,S,$,L,q(p.path),a);b.error?(e.push(`sync: could not supersede ${y.id}: ${b.error}`),w=!0):(d++,O=b.newCid,w=b.oracleTier,he(p.path,I(p.path,"utf8"),L,e),o=E(n))}else w=!0,e.push(y.base?`sync: ${y.id} was edited from an older version \u2014 graph kept; reconcile via a redesign or maintain`:`sync: ${y.id} carries no base pin (hand-copied file?) \u2014 fact attached with drift flag`);if(v){w&&h.set(p.path,!0);continue}u.add(p.path);let H=o.getNode(O)?.content.check,W=m?i.acs??[]:[],U=W.filter(b=>fe(o,b.ref)),z=W.filter(b=>!fe(o,b.ref)).map(b=>b.ref);c.push({ref:y.id,about_cid:O,definition_id_at_run:L,verdict:i.verdict,...U.length?{per_ac:U.map(b=>{let K=ge(o,b.ref);return{ac_ref:b.ref,...K?{ac_cid:K}:{},verdict:b.verdict}})}:{},drift_flag:w||h.get(p.path)===!0||m&&i.driftFlag===!0,oracle_mode:H?.expected_mode??(J(H?.operand)?"runtime-derived":"inferred"),stale_at_run:o.stale(O)!=="fresh",...z.length?{unresolved_acs:z}:{},execution_id:i.executionId,...i.evidenceId?{evidence_id:i.evidenceId}:{},...i.durationMs!==void 0?{duration_ms:i.durationMs}:{},started_at:i.startedAt,mode:i.mode,local:i.local,...g?{via_parent:g}:{}})}catch(m){p.path!==f&&l.has(p.path)||u.add(p.path),e.push(`sync: ${p.path} failed to sync (${m instanceof Error?m.message:String(m)}) \u2014 skipped; other members unaffected`)}}if(c.length===0)return{synced:0,superseded:d,warnings:e};let r;try{r=ce(n,E(n),{facts:c,by:a,eventIds:c.map(i=>`exec-fact:${i.execution_id}:${i.ref}`),lockDeadlineMs:s})}catch(i){return e.push(`sync facts: commit threw: ${i instanceof Error?i.message:String(i)}`),le(n,c,a,e,s),{synced:0,superseded:d,warnings:e}}return r.errors?(le(n,c,a,e,s),e.push(...r.errors.map(i=>`sync facts: ${i.code}: ${i.detail}`)),{synced:0,superseded:d,warnings:e}):(r.warnings&&e.push(...r.warnings.map(i=>`sync facts: ${i}`)),{synced:c.length,superseded:d,warnings:e})}function le(t,e,n,a,s){try{let o={by:n,ts:new Date().toISOString(),facts:e.map(u=>({...u,about_cid:u.about_cid??"",event_id:`exec-fact:${u.execution_id}:${u.ref}`}))},{where:c,sideFile:d}=t.parkedFacts().park(JSON.stringify(o),{deadlineMs:s??5e3});d&&a.push(`sync facts: store lock busy \u2014 parked to ${c}; it drains on the next sync`),a.push(`sync facts: commit failed \u2014 ${e.length} fact(s) parked to ${c}; they replay on the next sync`)}catch(o){a.push(`sync facts: could not park the failed batch (${o instanceof Error?o.message:String(o)}) \u2014 this run's facts are LOST`)}}function Se(t,e,n){let a=t.parkedFacts(),s=n??5e3,o=a.snapshot({deadlineMs:s});if("fenced"in o){e.push(`sync: parked facts stay queued while rebase ${o.fenced} is open \u2014 they drain on the first sync after it is finished`);return}let c=o.lines;if(c.length===0)return;let d=new Set,u=[];for(let l of c){let h=null;try{let i=JSON.parse(l);i&&Array.isArray(i.facts)&&(h=i)}catch{}if(!h){u.push({parent:l,line:l}),d.add(l);continue}let r=pe(t,h);if(r.errors){if(r.errors.some(i=>i.code==="STALE_BASIS")){e.push(`sync: parked facts replay deferred (${r.errors[0].detail}) \u2014 retrying next sync`);continue}u.push({parent:l,line:l}),d.add(l),e.push(`sync: parked facts line quarantined to ${a.quarantinePath} (${r.errors.map(i=>`${i.code}: ${i.detail}`).join("; ")})`);continue}for(let i of r.rejected){let f=h.facts.find(p=>p.event_id===i.event_id);u.push({parent:l,line:JSON.stringify({...f??{event_id:i.event_id},_reason:i.errors})})}if(r.rejected.length>0){let i=r.rejected.map(f=>f.errors.map(p=>`${p.code}: ${p.detail}`).join("; ")).join(" | ");e.push(`sync: ${r.rejected.length} parked fact(s) quarantined to ${a.quarantinePath} (${i})`)}d.add(l),r.warnings&&e.push(...r.warnings.map(i=>`sync: ${i}`)),r.applied.length>0&&e.push(`sync: replayed ${r.applied.length} parked fact(s) from a previous run`)}if(d.size!==0)try{a.settle(d,u,{deadlineMs:s})}catch(l){e.push(`sync: queue rewrite failed (${l instanceof Error?l.message:String(l)}) \u2014 already-applied lines dedupe next sync; bad lines re-quarantine then`)}}function xe(t,e){let n=[],a=new Set,s=o=>{if(a.has(o)||!D(o))return;a.add(o);let c;try{c=I(o,"utf8")}catch(d){e.push(`sync: unreadable unit ${o} (${d instanceof Error?d.message:String(d)}) \u2014 skipped`);return}for(let d of c.split(`
2
+ import{a as J,d as X,h as B,i as Y,j as Q,k as V,l as Z,m as ee,n as te,o as F,p as ne}from"./chunk-7V34ZMMS.js";import{d as P}from"./chunk-B7ZX5HEN.js";import{I as se,J as oe,L as R,M as E,N as ae,Na as k,a as ie,r as A}from"./chunk-Z777GGHB.js";import{f as x,h as re}from"./chunk-KU3YHPWZ.js";import{existsSync as D,readFileSync as I,renameSync as $e,writeFileSync as Ee}from"fs";import{dirname as q,isAbsolute as T,resolve as N}from"path";var ve=new Set(["inline","testmd","testrun"]),ye=new Set(["inferred","authored","runtime-derived"]),C=new Set(["passed","failed","broken","skipped"]);function ce(t,e,n){if(n.facts.length===0)return{record:null,errors:[{code:"EMPTY_EXECUTIONS",detail:"a run with no designed units attaches no facts \u2014 skip the call"}]};let a=e;for(let s=0;;s++){let o=t.head(),c=t.serialize(o);if(!t.sameToken(t.parse(a.latestHash),o)){if(s>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:`graph opened at ${String(a.latestHash)} but chain head is ${String(c)} \u2014 retry budget exhausted`}]};a=E(t);continue}let d=be(t,a,n);if(d!=="cas")return d;if(s>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:"concurrent appends kept moving the head \u2014 retry budget exhausted"}]};a=E(t)}}function de(t,e){return ve.has(t.mode)?C.has(t.verdict)?ye.has(t.oracle_mode)?typeof t.drift_flag!="boolean"||typeof t.stale_at_run!="boolean"?[{code:"MISSING_FIELD",detail:`${e}: drift_flag and stale_at_run are required booleans`}]:!t.execution_id||!t.started_at||!t.definition_id_at_run?[{code:"MISSING_FIELD",detail:`${e}: execution_id, started_at and definition_id_at_run are required`}]:[]:[{code:"BAD_ORACLE_MODE",detail:`${e}: oracle_mode '${t.oracle_mode}' not in inferred|authored|runtime-derived`}]:[{code:"BAD_VERDICT",detail:`${e}: verdict '${t.verdict}' not in ${[...C].join("|")}`}]:[{code:"BAD_MODE",detail:`${e}: mode '${t.mode}' not in inline|testmd|testrun`}]}function ue(t,e,n,a){return{about:e,definition_id_at_run:t.definition_id_at_run,verdict:t.verdict,...n&&n.length?{per_ac:n}:{},drift_flag:t.drift_flag,oracle_mode:t.oracle_mode,stale_at_run:t.stale_at_run,...a.length?{unresolved_acs:a}:{},execution_id:t.execution_id,...t.evidence_id?{evidence_id:t.evidence_id}:{},...t.duration_ms!==void 0?{duration_ms:t.duration_ms}:{},started_at:t.started_at,mode:t.mode,local:t.local,...t.via_parent?{via_parent:t.via_parent}:{}}}function pe(t,e,n={}){if(!Array.isArray(e.facts)||e.facts.length===0)return{record:null,errors:[{code:"EMPTY_EXECUTIONS",detail:"parked line carries no facts"}]};for(let a=0;;a++){let s=E(t),o=e.facts.filter(r=>s.appliedEvents.has(r.event_id)).map(r=>r.event_id),c=e.facts.filter(r=>!s.appliedEvents.has(r.event_id));if(c.length===0)return{record:null,errors:null,applied:[],skipped:o,rejected:[]};let d=[],u=[],l=[],h=[];for(let r of c){let i=`executions[${r.ref}]`,f=[];if(!r.about_cid||!s.hasNode(r.about_cid))f.push({code:"UNKNOWN_REF",detail:`${i}: about_cid '${String(r.about_cid)}' is not in the graph \u2014 the pinned run-time target is gone`});else if(s.nodeLabel.get(r.about_cid)!==x.TEST)f.push({code:"ILLEGAL_TARGET",detail:`${i}: execution facts attach to tests \u2014 '${r.about_cid}' is a ${s.nodeLabel.get(r.about_cid)}`});else if(!r.event_id)f.push({code:"MISSING_FIELD",detail:`${i}: parked facts require event_id`});else{f.push(...de(r,i));for(let g of r.per_ac??[])C.has(g.verdict)||f.push({code:"BAD_VERDICT",detail:`${i}.per_ac['${g.ac_ref}']: verdict '${g.verdict}'`})}if(f.length>0){d.push({event_id:r.event_id??"",errors:f});continue}let p=[],m=[],v=[...r.unresolved_acs??[]];for(let g of r.per_ac??[]){let $=g.ac_cid&&s.hasNode(g.ac_cid)&&s.nodeLabel.get(g.ac_cid)===x.AC?g.ac_cid:null,y=$?null:s.resolve(g.ac_ref),_=$??(y?s.tipOf(y.cid):null);if(!_||!$&&(s.superseded.has(_)||s.nodeLabel.get(_)!==x.AC)){v.push(g.ac_ref);continue}p.push({ac_ref:s.nameOf.get(_)??g.ac_ref,ac_cid:_,verdict:g.verdict}),m.push(_)}u.push(ue(r,r.about_cid,p,v)),h.push({about_cid:r.about_cid,per_ac:m}),l.push(r.event_id)}if(u.length===0)return{record:null,errors:null,applied:[],skipped:o,rejected:d};try{let r=R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:[],supersessions:[],executions:u,event_ids:[...l].sort(),source_head_moves:{}},{returnWarnings:!0,graph:s,expectPrev:s.latestHash,intent:{v:1,verb:"parked",args:A({line:e}),pins:{facts:h}},busyRetry:{deadlineMs:5e3},provenance:n.provenance});return{record:r.record,errors:null,applied:l,skipped:o,rejected:d,...r.warnings?{warnings:r.warnings}:{}}}catch(r){if(!(r instanceof k))throw r;if(a>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:"concurrent appends kept moving the head \u2014 parked replay retry budget exhausted (line stays queued)"}]}}}}function be(t,e,n){let a=[],s=[],o=[];for(let d of n.facts){let u=`executions[${d.ref}]`,l=n.pinned?null:e.resolve(d.ref),h=n.pinned?d.about_cid&&e.hasNode(d.about_cid)?d.about_cid:null:l?e.tipOf(l.cid):null;if(!h||!n.pinned&&e.superseded.has(h)){a.push({code:"UNKNOWN_REF",detail:`${u}: '${n.pinned?String(d.about_cid):d.ref}' is not a ${n.pinned?"":"live "}committed node`});continue}if(e.nodeLabel.get(h)!==x.TEST){a.push({code:"ILLEGAL_TARGET",detail:`${u}: execution facts attach to tests \u2014 '${d.ref}' is a ${e.nodeLabel.get(h)}`});continue}let r=de(d,u);if(r.length>0){a.push(...r);continue}let i=[],f=[];for(let p of d.per_ac??[]){let m=n.pinned?null:e.resolve(p.ac_ref),v=n.pinned?p.ac_cid&&e.hasNode(p.ac_cid)?p.ac_cid:null:m?e.tipOf(m.cid):null;if(!v||!n.pinned&&e.superseded.has(v)||e.nodeLabel.get(v)!==x.AC){a.push({code:"UNKNOWN_REF",detail:`${u}.per_ac: '${n.pinned?String(p.ac_cid):p.ac_ref}' is not a${n.pinned?"n":" live"} AC`});continue}if(!C.has(p.verdict)){a.push({code:"BAD_VERDICT",detail:`${u}.per_ac['${p.ac_ref}']: verdict '${p.verdict}'`});continue}i.push({ac_ref:e.nameOf.get(v)??v,ac_cid:v,verdict:p.verdict}),f.push(v)}s.push(ue(d,h,i,d.unresolved_acs??[])),o.push({about_cid:h,per_ac:f})}if(a.length>0)return{record:null,errors:a};let c;try{c=R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:[],supersessions:[],executions:s,...n.eventIds&&n.eventIds.length>0?{event_ids:n.eventIds}:{},source_head_moves:{}},{returnWarnings:!0,graph:e,expectPrev:e.latestHash,intent:{v:1,verb:"execution",args:A({facts:n.facts,by:n.by,eventIds:n.eventIds??null}),pins:{facts:o}},busyRetry:{deadlineMs:n.lockDeadlineMs??5e3},provenance:n.provenance})}catch(d){if(d instanceof k)return"cas";throw d}return{record:c.record,errors:null,...c.warnings?{warnings:c.warnings}:{}}}function Ye(t){let e={failed:3,broken:2,skipped:1,passed:0},n=new Map;for(let a of t)for(let s of a.verifies??[]){let o=n.get(s);(o===void 0||(e[a.status]??0)>(e[o]??0))&&n.set(s,a.status)}return[...n.entries()].map(([a,s])=>({ref:a,verdict:s}))}function Qe(t){let e=[],{store:n}=t;if(!n.exists())return{synced:0,superseded:0,skipped:"no-context",warnings:e};let a=t.by??{kind:"ai",id:"exec-sync"},s=t.lockDeadlineMs;try{Se(n,e,s)}catch(i){e.push(`sync: parked-facts replay failed (${i instanceof Error?i.message:String(i)}) \u2014 queue intact, retrying next sync`)}let o=E(n),c=[],d=0,u=new Set,l=new Set(t.members.map(i=>T(i.path)?i.path:N(t.projectDir,i.path))),h=new Map;for(let i of t.members){let f=T(i.path)?i.path:N(t.projectDir,i.path);if(!D(f)){e.push(`sync: member file missing: ${f} \u2014 skipped, no fact attached`);continue}for(let p of xe(f,e))if(!u.has(p.path))try{let m=p.path===f,v=!m&&l.has(p.path),g=m?void 0:F(I(f,"utf8"))?.id,$=I(p.path,"utf8"),y=F($);if(!y?.id){u.add(p.path);continue}let _=o.resolve(y.id),S=_?o.tipOf(_.cid):null;if(!_||!S||o.superseded.has(S)){u.add(p.path),e.push(`sync: ${y.id} does not resolve to a live test \u2014 skipped (foreign store?)`);continue}let L=B(V($,ee(q(p.path),o))),_e=String(o.getNode(S)?.content.test_md_blob??""),j=B(V(_e,Z(o))),G=o.getNode(S)?.content.definitionId,M=typeof G=="string"?G:j,w=!1,O=S;if(L===j)y.base!==M&&he(p.path,$,M,e);else if(y.base===j||y.base===M){let b=Ie(n,o,S,$,L,q(p.path),a);b.error?(e.push(`sync: could not supersede ${y.id}: ${b.error}`),w=!0):(d++,O=b.newCid,w=b.oracleTier,he(p.path,I(p.path,"utf8"),L,e),o=E(n))}else w=!0,e.push(y.base?`sync: ${y.id} was edited from an older version \u2014 graph kept; reconcile via a redesign or maintain`:`sync: ${y.id} carries no base pin (hand-copied file?) \u2014 fact attached with drift flag`);if(v){w&&h.set(p.path,!0);continue}u.add(p.path);let H=o.getNode(O)?.content.check,W=m?i.acs??[]:[],U=W.filter(b=>fe(o,b.ref)),z=W.filter(b=>!fe(o,b.ref)).map(b=>b.ref);c.push({ref:y.id,about_cid:O,definition_id_at_run:L,verdict:i.verdict,...U.length?{per_ac:U.map(b=>{let K=ge(o,b.ref);return{ac_ref:b.ref,...K?{ac_cid:K}:{},verdict:b.verdict}})}:{},drift_flag:w||h.get(p.path)===!0||m&&i.driftFlag===!0,oracle_mode:H?.expected_mode??(J(H?.operand)?"runtime-derived":"inferred"),stale_at_run:o.stale(O)!=="fresh",...z.length?{unresolved_acs:z}:{},execution_id:i.executionId,...i.evidenceId?{evidence_id:i.evidenceId}:{},...i.durationMs!==void 0?{duration_ms:i.durationMs}:{},started_at:i.startedAt,mode:i.mode,local:i.local,...g?{via_parent:g}:{}})}catch(m){p.path!==f&&l.has(p.path)||u.add(p.path),e.push(`sync: ${p.path} failed to sync (${m instanceof Error?m.message:String(m)}) \u2014 skipped; other members unaffected`)}}if(c.length===0)return{synced:0,superseded:d,warnings:e};let r;try{r=ce(n,E(n),{facts:c,by:a,eventIds:c.map(i=>`exec-fact:${i.execution_id}:${i.ref}`),lockDeadlineMs:s})}catch(i){return e.push(`sync facts: commit threw: ${i instanceof Error?i.message:String(i)}`),le(n,c,a,e,s),{synced:0,superseded:d,warnings:e}}return r.errors?(le(n,c,a,e,s),e.push(...r.errors.map(i=>`sync facts: ${i.code}: ${i.detail}`)),{synced:0,superseded:d,warnings:e}):(r.warnings&&e.push(...r.warnings.map(i=>`sync facts: ${i}`)),{synced:c.length,superseded:d,warnings:e})}function le(t,e,n,a,s){try{let o={by:n,ts:new Date().toISOString(),facts:e.map(u=>({...u,about_cid:u.about_cid??"",event_id:`exec-fact:${u.execution_id}:${u.ref}`}))},{where:c,sideFile:d}=t.parkedFacts().park(JSON.stringify(o),{deadlineMs:s??5e3});d&&a.push(`sync facts: store lock busy \u2014 parked to ${c}; it drains on the next sync`),a.push(`sync facts: commit failed \u2014 ${e.length} fact(s) parked to ${c}; they replay on the next sync`)}catch(o){a.push(`sync facts: could not park the failed batch (${o instanceof Error?o.message:String(o)}) \u2014 this run's facts are LOST`)}}function Se(t,e,n){let a=t.parkedFacts(),s=n??5e3,o=a.snapshot({deadlineMs:s});if("fenced"in o){e.push(`sync: parked facts stay queued while rebase ${o.fenced} is open \u2014 they drain on the first sync after it is finished`);return}let c=o.lines;if(c.length===0)return;let d=new Set,u=[];for(let l of c){let h=null;try{let i=JSON.parse(l);i&&Array.isArray(i.facts)&&(h=i)}catch{}if(!h){u.push({parent:l,line:l}),d.add(l);continue}let r=pe(t,h);if(r.errors){if(r.errors.some(i=>i.code==="STALE_BASIS")){e.push(`sync: parked facts replay deferred (${r.errors[0].detail}) \u2014 retrying next sync`);continue}u.push({parent:l,line:l}),d.add(l),e.push(`sync: parked facts line quarantined to ${a.quarantinePath} (${r.errors.map(i=>`${i.code}: ${i.detail}`).join("; ")})`);continue}for(let i of r.rejected){let f=h.facts.find(p=>p.event_id===i.event_id);u.push({parent:l,line:JSON.stringify({...f??{event_id:i.event_id},_reason:i.errors})})}if(r.rejected.length>0){let i=r.rejected.map(f=>f.errors.map(p=>`${p.code}: ${p.detail}`).join("; ")).join(" | ");e.push(`sync: ${r.rejected.length} parked fact(s) quarantined to ${a.quarantinePath} (${i})`)}d.add(l),r.warnings&&e.push(...r.warnings.map(i=>`sync: ${i}`)),r.applied.length>0&&e.push(`sync: replayed ${r.applied.length} parked fact(s) from a previous run`)}if(d.size!==0)try{a.settle(d,u,{deadlineMs:s})}catch(l){e.push(`sync: queue rewrite failed (${l instanceof Error?l.message:String(l)}) \u2014 already-applied lines dedupe next sync; bad lines re-quarantine then`)}}function xe(t,e){let n=[],a=new Set,s=o=>{if(a.has(o)||!D(o))return;a.add(o);let c;try{c=I(o,"utf8")}catch(d){e.push(`sync: unreadable unit ${o} (${d instanceof Error?d.message:String(d)}) \u2014 skipped`);return}for(let d of c.split(`
3
3
  `)){let u=/^@import\s+(\S+)\s*$/.exec(d.trim());if(!u)continue;let l=T(u[1])?u[1]:N(q(o),u[1]);if(!D(l))continue;let h;try{h=I(l,"utf8")}catch(r){e.push(`sync: unreadable import ${l} (${r instanceof Error?r.message:String(r)}) \u2014 skipped; importer continues`);continue}F(h)?.id&&s(l)}n.push({path:o})};return s(t),n}function fe(t,e){return ge(t,e)!==null}function ge(t,e){let n=ae(t,e);return n!==null&&t.nodeLabel.get(n)==="ac"?n:null}function ke(t,e,n,a){let s=t.split(`
4
4
  `),o=Q(s),c={};return{blob:s.map((u,l)=>{let h=Y.exec(u.trim());if(!h||o.has(l))return u;let r=h[1];if(a&&r in a){let v=n.tipOf(a[r]);c[r]=v;let g=n.displayNameOf(v);return g?`@import ${g}`:u}let i=n.resolve(r);if(i)return c[r]=i.tip,u;if(e===null&&!T(r))return u;let f=T(r)?r:N(e,r);if(!D(f))return u;let p=F(I(f,"utf8"))?.id,m=p?n.resolve(p):null;return!p||!m?u:(c[r]=m.tip,`@import ${p}`)}).join(`
5
5
  `),imports:c}}function Ie(t,e,n,a,s,o,c,d={}){let u=e.getNode(n);if(!u)return{oracleTier:!1,error:"tip unreadable"};let{blob:l,imports:h}=ke(ne(a),o,e,d.imports),r=String(u.content.test_md_blob??""),i=/^#\s+(.+?)\s*$/m.exec(l)?.[1]??String(u.content.title??""),f={...u.content,test_md_blob:l,definitionId:s,title:i};{let _=we(l);_.target!==void 0?f.target=_.target:delete f.target,_.app!==void 0?f.app=_.app:delete f.app}let p=re("test",f);if(p.length>0)return{oracleTier:!1,error:p.map(_=>_.detail).join("; ")};let m=ie("test",f);if(m===n)return{newCid:n,oracleTier:!1};let v=me(r)!==me(l);if(se(e,n,m))return{oracleTier:v,error:"file content reproduces an already-superseded version (supersession cycle guard) \u2014 graph kept; re-edit forward or redesign"};let g=oe({graph:e,oldTip:n,newCid:m,newLabel:"test",by:c,reason:`re-blessed onto ${m} (edited on disk, run sync)`});if(g.errors.length>0)return{oracleTier:v,error:`edge re-bless refused: ${g.errors.join("; ")}`};let $=t.head(),y=t.serialize($);if(!t.sameToken(t.parse(e.latestHash),$)){if(d.throwTransient)throw new k(`store advanced under the sync (basis ${String(e.latestHash)} vs head ${String(y)})`);return{oracleTier:v,error:`store advanced under the sync (basis ${String(e.latestHash)} vs head ${String(y)}) \u2014 re-run to retry`}}try{R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[{cid:m,label:"test",content:f}],edges:g.edges,review:[{id:m,kind:"review-item",resolution:"edited",edit:null,reason:"edited on disk (run sync)",by:c}],supersessions:[{kind:"node",old:n,new:m,reason:"edited on disk (run sync)",by:c},...g.supersessions],source_head_moves:{}},{graph:e,expectPrev:y,intent:{v:1,verb:"exec-supersede",args:A({tip:n,raw:a,fileId:s,by:c}),pins:{tip:n,imports:h}},provenance:d.provenance})}catch(_){if(d.throwTransient&&_ instanceof k)throw _;return{oracleTier:v,error:_ instanceof Error?_.message:String(_)}}return{newCid:m,oracleTier:v}}function we(t){let e=X(t);return{...typeof e.target=="string"?{target:e.target}:{},...typeof e.app=="string"?{app:e.app}:{}}}function me(t){let e=[],n=t.split(`