@testmuai/kane-cli 0.10.0 → 0.10.3

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 (405) hide show
  1. package/dist/ChatSurface-Z26BOE5U.js +2 -0
  2. package/dist/{ChromeProfilePicker-FWPUDKD6.js → ChromeProfilePicker-ODRIAXL3.js} +1 -1
  3. package/dist/{CliFeedbackPrompt-D5L2DO6A.js → CliFeedbackPrompt-JWCTMIGI.js} +1 -1
  4. package/dist/{CliUploadProgress-HQX57WE6.js → CliUploadProgress-XFRRFRL4.js} +1 -1
  5. package/dist/{ConfigView-DGQXKEON.js → ConfigView-6JF4DOJN.js} +1 -1
  6. package/dist/EvidenceViewOffer-6344EX74.js +2 -0
  7. package/dist/FolderPicker-4PCYHE75.js +2 -0
  8. package/dist/InfoBox-NJ2DL7YC.js +2 -0
  9. package/dist/{LinksBox-WZ4RAMSH.js → LinksBox-HNDNFVUT.js} +1 -1
  10. package/dist/{ProfilesView-AGRNPGSW.js → ProfilesView-DEJKJOHY.js} +1 -1
  11. package/dist/ProjectPicker-DTWMWOH7.js +2 -0
  12. package/dist/SaveSessionPrompt-3GCLB3ZT.js +2 -0
  13. package/dist/SingleShotApp-HMOXO5DW.js +2 -0
  14. package/dist/{SummaryBox-XQJUZBAN.js → SummaryBox-7PPDMSSM.js} +1 -1
  15. package/dist/TestMdRunView-QLKRUU4V.js +2 -0
  16. package/dist/TestrunEvidenceTable-T2JUB4TE.js +2 -0
  17. package/dist/{WhoamiView-JQCURK2M.js → WhoamiView-H7JNLLCY.js} +1 -1
  18. package/dist/{app-download-OU6AGH2X.js → app-download-GKRF2EIM.js} +1 -1
  19. package/dist/{assurance-job-ZI3L6I4F.js → assurance-job-F4L3T4VJ.js} +1 -1
  20. package/dist/{auth-7Z54TMQQ.js → auth-WBIEHHDS.js} +1 -1
  21. package/dist/{binary-S5YL5GJD.js → binary-K3XMILST.js} +1 -1
  22. package/dist/{bind-LIV72SEZ.js → bind-SSHAZAB3.js} +1 -1
  23. package/dist/{bootstrap-3V6TOO6I.js → bootstrap-XGKU4WXB.js} +1 -1
  24. package/dist/bridge-2UHJOVLX.js +2 -0
  25. package/dist/{catalog-I3PC6LT6.js → catalog-YCU6OHNV.js} +1 -1
  26. package/dist/{catalog-client-WKYG3JN6.js → catalog-client-MVEEHTG2.js} +1 -1
  27. package/dist/{changelog-IHNWFYWY.js → changelog-5UB3AQT6.js} +1 -1
  28. package/dist/chat-committer-ZKEKJA2R.js +2 -0
  29. package/dist/chat-controller-FXRJXUG3.js +2 -0
  30. package/dist/child-JHYENXE7.js +2 -0
  31. package/dist/{chunk-ZTAZ2R5Z.js → chunk-23DKB2MT.js} +1 -1
  32. package/dist/{chunk-UX2CDUPE.js → chunk-2JFRN62I.js} +2 -2
  33. package/dist/chunk-2RBMQTYS.js +26 -0
  34. package/dist/{chunk-VVCZRCRD.js → chunk-2TK4MDF2.js} +1 -1
  35. package/dist/{chunk-G3J4XY3Z.js → chunk-32HED7X2.js} +1 -1
  36. package/dist/{chunk-GRURFGBP.js → chunk-32MFECUA.js} +1 -1
  37. package/dist/{chunk-N3KTLWJL.js → chunk-35BG2EMW.js} +1 -1
  38. package/dist/{chunk-4523YDTG.js → chunk-35WUYKGO.js} +1 -1
  39. package/dist/{chunk-KDR662D2.js → chunk-3KY7HHQU.js} +1 -1
  40. package/dist/{chunk-UNWPBMVM.js → chunk-3MD2XLE7.js} +2 -2
  41. package/dist/{chunk-YKL5H4K6.js → chunk-3NWUXRSI.js} +1 -1
  42. package/dist/{chunk-QQI6N3FO.js → chunk-3RO2YGKH.js} +1 -1
  43. package/dist/{chunk-AGXAJ2II.js → chunk-3ZC7GSMM.js} +1 -1
  44. package/dist/{chunk-I2MC6VVX.js → chunk-4C7WVQOD.js} +1 -1
  45. package/dist/{chunk-VQZOKTJ2.js → chunk-4CJQ7XZP.js} +1 -1
  46. package/dist/{chunk-7KX2BHKG.js → chunk-4KCYNP2K.js} +1 -1
  47. package/dist/{chunk-AUBSLPJZ.js → chunk-4KL3TSTT.js} +5 -5
  48. package/dist/{chunk-AG5XJWEV.js → chunk-4UX5N7YI.js} +1 -1
  49. package/dist/{chunk-WERIGVOH.js → chunk-5F5IVART.js} +1 -1
  50. package/dist/{chunk-RFEON5GN.js → chunk-5XVWT6UK.js} +1 -1
  51. package/dist/{chunk-FBQ7PQJV.js → chunk-5YYCCM6K.js} +1 -1
  52. package/dist/{chunk-SBR6D6GS.js → chunk-6FFX4S7N.js} +1 -1
  53. package/dist/{chunk-DHYGCHKB.js → chunk-6HRNG4CK.js} +1 -1
  54. package/dist/{chunk-HBVHIEPB.js → chunk-6QCCTZO3.js} +1 -1
  55. package/dist/{chunk-GI2JPIX5.js → chunk-6QH75BPJ.js} +1 -1
  56. package/dist/{chunk-5R3ODQHH.js → chunk-6SD4XTYC.js} +1 -1
  57. package/dist/{chunk-J4LQAT5P.js → chunk-7LYLJ75Z.js} +1 -1
  58. package/dist/{chunk-Y3YULFCK.js → chunk-7RELCXRW.js} +1 -1
  59. package/dist/{chunk-GXMD23XB.js → chunk-7SU53QGU.js} +1 -1
  60. package/dist/{chunk-DTYT6KBO.js → chunk-7Y55CO42.js} +1 -1
  61. package/dist/{chunk-2L3A5NKZ.js → chunk-7YV2FCN4.js} +1 -1
  62. package/dist/{chunk-ULGBK4NS.js → chunk-A2DODRHG.js} +1 -1
  63. package/dist/{chunk-EVZLINBN.js → chunk-AHT2ORJT.js} +1 -1
  64. package/dist/{chunk-RDH3E25Q.js → chunk-AT7AT3AR.js} +2 -2
  65. package/dist/{chunk-ZI3X7DI2.js → chunk-AVLYSNEG.js} +1 -1
  66. package/dist/{chunk-GET4DINR.js → chunk-BBJAKSA7.js} +1 -1
  67. package/dist/{chunk-CBVHP7JB.js → chunk-BJO6J5X2.js} +1 -1
  68. package/dist/{chunk-G3CYFCSR.js → chunk-BLVDV3QQ.js} +1 -1
  69. package/dist/{chunk-2N75WO7Y.js → chunk-C4KAPGBS.js} +1 -1
  70. package/dist/{chunk-XLQ4F6BI.js → chunk-CB2BWDHG.js} +2 -2
  71. package/dist/chunk-CB344EDO.js +2 -0
  72. package/dist/chunk-CCOD4GQJ.js +2 -0
  73. package/dist/{chunk-JSLKCCD2.js → chunk-CNHKZE4F.js} +1 -1
  74. package/dist/{chunk-CJE7PKRV.js → chunk-CQDCNP7V.js} +1 -1
  75. package/dist/{chunk-3OVFKUXV.js → chunk-CTHUX7O4.js} +1 -1
  76. package/dist/{chunk-4JWJH6TB.js → chunk-DC5F2ADJ.js} +1 -1
  77. package/dist/chunk-DIOK3SER.js +34 -0
  78. package/dist/{chunk-EQWMOGLO.js → chunk-DQXQJJOP.js} +2 -2
  79. package/dist/{chunk-EH43VWVR.js → chunk-DXIQVBMI.js} +1 -1
  80. package/dist/{chunk-WZLDFEWR.js → chunk-E4GIGM5V.js} +1 -1
  81. package/dist/{chunk-K3OSK6PB.js → chunk-EBJW6POT.js} +1 -1
  82. package/dist/{chunk-MYZHOBS4.js → chunk-EHB55V23.js} +1 -1
  83. package/dist/{chunk-RARD6TC6.js → chunk-EJGCIGQY.js} +1 -1
  84. package/dist/{chunk-OR2B6T3B.js → chunk-ENRFXGID.js} +1 -1
  85. package/dist/{chunk-3ZPEQDXZ.js → chunk-ERRIDBE7.js} +1 -1
  86. package/dist/{chunk-HGVM2OZU.js → chunk-EZMRWXRT.js} +1 -1
  87. package/dist/chunk-F2F257PU.js +6 -0
  88. package/dist/{chunk-AUJSC7PU.js → chunk-FNUGDPTS.js} +1 -1
  89. package/dist/{chunk-MPEIMWQI.js → chunk-FOLUB336.js} +1 -1
  90. package/dist/{chunk-HHW6MRU3.js → chunk-G4K3TP2I.js} +1 -1
  91. package/dist/{chunk-P2ZQDQDB.js → chunk-GAKBHNC4.js} +1 -1
  92. package/dist/{chunk-DPGOAFKF.js → chunk-GBQ4K25P.js} +1 -1
  93. package/dist/{chunk-PCDIEYV6.js → chunk-GEZVC4S3.js} +1 -1
  94. package/dist/{chunk-PL3SG3M2.js → chunk-GJXO6FF7.js} +1 -1
  95. package/dist/{chunk-252GEI3H.js → chunk-GLM5UGTF.js} +1 -1
  96. package/dist/{chunk-JOCEZK2M.js → chunk-GQAWZEA4.js} +1 -1
  97. package/dist/{chunk-45URQUAK.js → chunk-GXQYFOBD.js} +1 -1
  98. package/dist/{chunk-PBWYQR5I.js → chunk-HBLHKQR7.js} +1 -1
  99. package/dist/chunk-HC6VLPUB.js +5 -0
  100. package/dist/{chunk-K2PLULJD.js → chunk-HRIDAK6Y.js} +1 -1
  101. package/dist/{chunk-D6CS62O7.js → chunk-HV2CDY4K.js} +1 -1
  102. package/dist/{chunk-P2LDAW3C.js → chunk-HVOXMCKE.js} +1 -1
  103. package/dist/{chunk-4I7YN6YY.js → chunk-HYJVYYAZ.js} +2 -2
  104. package/dist/{chunk-GYDJO32R.js → chunk-IEHJG6J4.js} +1 -1
  105. package/dist/{chunk-GGS3ATPB.js → chunk-IZ66FKPC.js} +1 -1
  106. package/dist/{chunk-QMOGBKJM.js → chunk-J4FIESTB.js} +1 -1
  107. package/dist/{chunk-436FZ4KG.js → chunk-JBKHX5ES.js} +1 -1
  108. package/dist/{chunk-EX6ORR7P.js → chunk-JNPFEBUR.js} +1 -1
  109. package/dist/{chunk-AU26ZZTX.js → chunk-JTNEF5ZP.js} +1 -1
  110. package/dist/{chunk-5IO5ZC4S.js → chunk-KBGMQYMD.js} +1 -1
  111. package/dist/{chunk-WX4VGH5Q.js → chunk-KCXLRR3Q.js} +1 -1
  112. package/dist/{chunk-4R4YUOVY.js → chunk-KKLCXRW6.js} +1 -1
  113. package/dist/{chunk-YGMQXS2J.js → chunk-KL7XFNSD.js} +1 -1
  114. package/dist/{chunk-MJKRJGER.js → chunk-KQ4XKTIZ.js} +1 -1
  115. package/dist/{chunk-I2VU2DTS.js → chunk-L3BUPFAQ.js} +4 -4
  116. package/dist/{chunk-ZZNQIFFI.js → chunk-LHJSIHLC.js} +1 -1
  117. package/dist/{chunk-2GE5X2A5.js → chunk-LLQWEGXD.js} +1 -1
  118. package/dist/{chunk-PQXYHI5W.js → chunk-LPJKNX6D.js} +1 -1
  119. package/dist/{chunk-ZGQM6KWN.js → chunk-LRNUGKYH.js} +1 -1
  120. package/dist/chunk-LTPOMMAB.js +2 -0
  121. package/dist/{chunk-MHB6DMKZ.js → chunk-LUA25RYS.js} +1 -1
  122. package/dist/{chunk-2PZKMT3I.js → chunk-LV7224DG.js} +1 -1
  123. package/dist/{chunk-X3J4CC27.js → chunk-LXK4B2FE.js} +1 -1
  124. package/dist/{chunk-YH4VZVHJ.js → chunk-LZGAFKYH.js} +1 -1
  125. package/dist/{chunk-3QICDXY5.js → chunk-LZPYIFHZ.js} +1 -1
  126. package/dist/{chunk-4BUEOKFV.js → chunk-M2E5CPPV.js} +1 -1
  127. package/dist/{chunk-65BG6GAE.js → chunk-M7A66MSK.js} +1 -1
  128. package/dist/{chunk-JX5NVKTV.js → chunk-MD3RABID.js} +1 -1
  129. package/dist/{chunk-QECTIQAC.js → chunk-MEBEVHGP.js} +1 -1
  130. package/dist/{chunk-52VCA4K2.js → chunk-MEMXFTLD.js} +1 -1
  131. package/dist/{chunk-U7NRZBB5.js → chunk-MINDIQET.js} +1 -1
  132. package/dist/{chunk-HJLMH7ZM.js → chunk-MUX2A37P.js} +1 -1
  133. package/dist/{chunk-YKOEABP2.js → chunk-N7IWR45S.js} +1 -1
  134. package/dist/{chunk-WQR2GYP7.js → chunk-ND6OP3O2.js} +1 -1
  135. package/dist/{chunk-URAYFJGM.js → chunk-NHGPMYM3.js} +1 -1
  136. package/dist/{chunk-ZKPY3AXW.js → chunk-NI3TIAD7.js} +1 -1
  137. package/dist/{chunk-JCSVBD4F.js → chunk-NPAUSUNM.js} +1 -1
  138. package/dist/{chunk-XMALVGH7.js → chunk-NRAPCFI2.js} +2 -2
  139. package/dist/{chunk-567D5ZTO.js → chunk-NZJSGINB.js} +16 -16
  140. package/dist/{chunk-A4BB6GLN.js → chunk-OBNVGD5H.js} +1 -1
  141. package/dist/{chunk-BRVIK3BU.js → chunk-OCMPWCKQ.js} +1 -1
  142. package/dist/{chunk-4SJAOAYY.js → chunk-OCVDMZWB.js} +1 -1
  143. package/dist/{chunk-JRSEAXFE.js → chunk-OHGL4GEJ.js} +1 -1
  144. package/dist/{chunk-YYVBE6W2.js → chunk-OOGKX4Y6.js} +1 -1
  145. package/dist/{chunk-QWZJ5QDO.js → chunk-OTMHCHH6.js} +2 -2
  146. package/dist/{chunk-Z5BFCTHI.js → chunk-OZNYQONA.js} +2 -2
  147. package/dist/{chunk-EPJ5SJL2.js → chunk-PB6RXDWQ.js} +2 -2
  148. package/dist/{chunk-TZVPDGJD.js → chunk-PCQK62MP.js} +1 -1
  149. package/dist/{chunk-Z777GGHB.js → chunk-PI7OXS62.js} +1 -1
  150. package/dist/{chunk-MW2WNYJO.js → chunk-PRBWZXFA.js} +2 -2
  151. package/dist/{chunk-2SY2NCOP.js → chunk-PTLOOVV4.js} +1 -1
  152. package/dist/{chunk-EC5IP5HZ.js → chunk-Q4ALB7SH.js} +1 -1
  153. package/dist/{chunk-FYCD765R.js → chunk-Q4JV4U65.js} +58 -58
  154. package/dist/{chunk-CJQUVHHS.js → chunk-Q4SMITTV.js} +1 -1
  155. package/dist/{chunk-NJCN6LP5.js → chunk-QE4AWNOV.js} +6 -6
  156. package/dist/{chunk-BY2B4YJN.js → chunk-QEM5ZRDN.js} +1 -1
  157. package/dist/{chunk-VA3BSIUQ.js → chunk-QHH42RH5.js} +1 -1
  158. package/dist/{chunk-FPPVNF53.js → chunk-R6TFRAMZ.js} +1 -1
  159. package/dist/{chunk-3T2TYDPT.js → chunk-RNHSULQM.js} +1 -1
  160. package/dist/{chunk-32Y6QVFG.js → chunk-SALZ6WSF.js} +1 -1
  161. package/dist/chunk-SB26HQO7.js +2 -0
  162. package/dist/{chunk-4NUSW4A2.js → chunk-SIHX5FW5.js} +1 -1
  163. package/dist/{chunk-LHQUCRCH.js → chunk-SJQTTEXQ.js} +1 -1
  164. package/dist/{chunk-W3NWHWK2.js → chunk-SMGRXKXX.js} +1 -1
  165. package/dist/{chunk-USJ3LUAL.js → chunk-SSOUYKVG.js} +1 -1
  166. package/dist/{chunk-2B75UL7Y.js → chunk-SVIIUKJ2.js} +1 -1
  167. package/dist/{chunk-7ZJWUWSN.js → chunk-SXBPUUQ5.js} +1 -1
  168. package/dist/{chunk-QVP4FSKT.js → chunk-T77LTLAD.js} +1 -1
  169. package/dist/{chunk-KRRZCY7U.js → chunk-TAY7J5VS.js} +1 -1
  170. package/dist/chunk-TD6GCEIK.js +2 -0
  171. package/dist/{chunk-VZA7BPCK.js → chunk-TM45NPWL.js} +1 -1
  172. package/dist/{chunk-ZY65IZJR.js → chunk-TM6VLC6V.js} +1 -1
  173. package/dist/{chunk-COJINPOK.js → chunk-TU2KPOW2.js} +2 -2
  174. package/dist/{chunk-JTJ7IPNI.js → chunk-TUSG7DIL.js} +1 -1
  175. package/dist/{chunk-3BSYOCSW.js → chunk-U2VYTVKV.js} +1 -1
  176. package/dist/{chunk-JQ7ZZQXC.js → chunk-UJ37XGSP.js} +3 -3
  177. package/dist/chunk-ULIIYKZB.js +7 -0
  178. package/dist/{chunk-LNHBZEDC.js → chunk-UWPG5MWM.js} +1 -1
  179. package/dist/{chunk-UUWSULIM.js → chunk-UXGMKRS4.js} +61 -60
  180. package/dist/{chunk-6DZ7LVOG.js → chunk-VCVEZEVS.js} +1 -1
  181. package/dist/{chunk-ZRDX2ARO.js → chunk-VKVYT6KZ.js} +2 -2
  182. package/dist/{chunk-B2WFW74J.js → chunk-VO2NNXKR.js} +1 -1
  183. package/dist/{chunk-B7JLM3IX.js → chunk-W54BX6HC.js} +1 -1
  184. package/dist/{chunk-IZ65ZPWY.js → chunk-W5HFUBXD.js} +1 -1
  185. package/dist/{chunk-TLOYTGVT.js → chunk-WE7HRAGO.js} +1 -1
  186. package/dist/{chunk-GRO6DLN3.js → chunk-WEJR2V7R.js} +1 -1
  187. package/dist/{chunk-YI4ESDAX.js → chunk-WIVKLNIO.js} +1 -1
  188. package/dist/chunk-WLEWXE6L.js +2 -0
  189. package/dist/{chunk-DBTMKBHU.js → chunk-X2MDL6S4.js} +1 -1
  190. package/dist/{chunk-MKPDF26Q.js → chunk-X45RZIAJ.js} +1 -1
  191. package/dist/{chunk-G2KTWFMU.js → chunk-X52YIWGG.js} +1 -1
  192. package/dist/{chunk-UEPJ26X2.js → chunk-X6FCXBXU.js} +1 -1
  193. package/dist/{chunk-LXM7VHYN.js → chunk-X7S7IGCV.js} +1 -1
  194. package/dist/{chunk-FVYIV36L.js → chunk-XKOVEMVZ.js} +1 -1
  195. package/dist/{chunk-3UHPVQLU.js → chunk-Y2HQMJGS.js} +1 -1
  196. package/dist/{chunk-4MNSP4EO.js → chunk-Y3RJHWNK.js} +1 -1
  197. package/dist/{chunk-A3TCFSCK.js → chunk-YCVEI7BT.js} +1 -1
  198. package/dist/{chunk-JGRXMTME.js → chunk-YDB72F4K.js} +1 -1
  199. package/dist/{chunk-7C4IEL5V.js → chunk-YILRYMMG.js} +1 -1
  200. package/dist/{chunk-7DFBOVUB.js → chunk-YJAQZMJT.js} +1 -1
  201. package/dist/{chunk-JGLADDRH.js → chunk-YNDELIXL.js} +1 -1
  202. package/dist/{chunk-WKZLK57W.js → chunk-YPGZ5E4I.js} +1 -1
  203. package/dist/{chunk-NTXFPNAP.js → chunk-YQZ736IQ.js} +1 -1
  204. package/dist/{chunk-FPVGA6XT.js → chunk-YVVFXBT5.js} +1 -1
  205. package/dist/{chunk-JT6WLJSV.js → chunk-YWWVF5OU.js} +1 -1
  206. package/dist/{chunk-RLOJH5O6.js → chunk-Z24SD2EJ.js} +1 -1
  207. package/dist/{chunk-ENG2UTMX.js → chunk-Z36KVIRR.js} +1 -1
  208. package/dist/{chunk-JFBEHCJN.js → chunk-Z47ZEFH7.js} +1 -1
  209. package/dist/{chunk-6NFOH4AC.js → chunk-ZAQGIC33.js} +1 -1
  210. package/dist/{chunk-GGV336P5.js → chunk-ZCBOHWN3.js} +1 -1
  211. package/dist/{chunk-AIGQCMGY.js → chunk-ZCL7XIVS.js} +1 -1
  212. package/dist/{chunk-ORNVIEUA.js → chunk-ZDCXWEQG.js} +1 -1
  213. package/dist/{chunk-6TNLITJO.js → chunk-ZHAMVLQZ.js} +1 -1
  214. package/dist/{chunk-FLOQ5NZL.js → chunk-ZIHQ5JGB.js} +4 -4
  215. package/dist/{chunk-PTISAIZW.js → chunk-ZMIKNNO6.js} +1 -1
  216. package/dist/{chunk-H4KPNGY4.js → chunk-ZMWTRXFH.js} +1 -1
  217. package/dist/{chunk-ONZ2CSTZ.js → chunk-ZPU3WAC4.js} +1 -1
  218. package/dist/commands-JBFLLT7A.js +2 -0
  219. package/dist/{committer-26UZDYSA.js → committer-UO3B3S5Y.js} +1 -1
  220. package/dist/{config-B472DZSR.js → config-7WTZPMAH.js} +1 -1
  221. package/dist/cover-cmd-DU6ZYJFL.js +2 -0
  222. package/dist/{credentials-TLT3RQOO.js → credentials-5WIFF5DG.js} +1 -1
  223. package/dist/{deps-bundle-CMTIWBS5.js → deps-bundle-BLLJ2BQ4.js} +1 -1
  224. package/dist/{deps-resolve-XLFZK74A.js → deps-resolve-WQ6J6RLI.js} +1 -1
  225. package/dist/{design-chat-I7X3QDDY.js → design-chat-ZICGVYIH.js} +1 -1
  226. package/dist/design-committer-7YIPFKMO.js +2 -0
  227. package/dist/design-headless-HYWZIIDS.js +2 -0
  228. package/dist/{design-remote-UDC5FP45.js → design-remote-HPX4VZ63.js} +2 -2
  229. package/dist/device-env-4P4GUVBW.js +2 -0
  230. package/dist/dispatch-BV6XMCN3.js +2 -0
  231. package/dist/{doctor-UHFCIM4B.js → doctor-Z2YQ2DBX.js} +1 -1
  232. package/dist/{docx-convert-N4KMLLKO.js → docx-convert-DO5AQYD3.js} +1 -1
  233. package/dist/{dossier-6KMKEIXV.js → dossier-5XKNAK6Q.js} +1 -1
  234. package/dist/evidence-BJIID6VT.js +2 -0
  235. package/dist/evidence-presentation-LSFOZGLH.js +2 -0
  236. package/dist/evolve-cmd-GZCUSCEK.js +2 -0
  237. package/dist/evolve-remote-LILOAHYH.js +2 -0
  238. package/dist/{explain-cmd-R67B4YR3.js → explain-cmd-KNDORU2D.js} +1 -1
  239. package/dist/{explain-cmd-235TY7QX.js → explain-cmd-LXIVHGN7.js} +1 -1
  240. package/dist/explore-SA2P3SGX.js +2 -0
  241. package/dist/{explore-context-tty-YXEFT32U.js → explore-context-tty-PERKIWXD.js} +1 -1
  242. package/dist/{explore-entry-V6L5FSP4.js → explore-entry-E6EY3VV3.js} +4 -4
  243. package/dist/{explore-live-N5VBLBUI.js → explore-live-XIWWUV52.js} +1 -1
  244. package/dist/{explore-run-tty-ZZQ33GNA.js → explore-run-tty-M56I23IF.js} +2 -2
  245. package/dist/{extract-bind-BTINHHE5.js → extract-bind-LZ22VFKB.js} +3 -3
  246. package/dist/extract-chat-Z64LEAJ5.js +2 -0
  247. package/dist/{extract-cmd-45OZETCM.js → extract-cmd-46E2XDWZ.js} +2 -2
  248. package/dist/extract-headless-XLS56LMN.js +2 -0
  249. package/dist/{feeder-L55TH2NC.js → feeder-NGWIPZ26.js} +1 -1
  250. package/dist/folder-flags-ZIDJVDKX.js +2 -0
  251. package/dist/gaps-cmd-XYOBJVTO.js +3 -0
  252. package/dist/gate-AK44VDHC.js +2 -0
  253. package/dist/gate-NB5CJMTN.js +2 -0
  254. package/dist/{generate-headless-DAH3HHRQ.js → generate-headless-HXAVEAEZ.js} +2 -2
  255. package/dist/hold-passthrough-JGHWMYDM.js +2 -0
  256. package/dist/{impact-cmd-3VFJAKYK.js → impact-cmd-TJTUFAFO.js} +2 -2
  257. package/dist/index.js +4159 -190
  258. package/dist/ingest-ZHHHBUXR.js +2 -0
  259. package/dist/{ingest-cmd-YSEH5EPU.js → ingest-cmd-OJSKTSQK.js} +3 -3
  260. package/dist/ingest-remote-2WM6PYUW.js +2 -0
  261. package/dist/install-JBWBF3WX.js +2 -0
  262. package/dist/{interactive-bind-P3GTFIZM.js → interactive-bind-SOD7VTAY.js} +4 -4
  263. package/dist/{interactive-remote-PBRQHTAF.js → interactive-remote-7ZSTI66T.js} +1 -1
  264. package/dist/lane-CNGO7LH5.js +2 -0
  265. package/dist/lattice-auth-UQPFQSG7.js +2 -0
  266. package/dist/{lifecycle-cmd-PUNFWKV5.js → lifecycle-cmd-DGIO3VAO.js} +1 -1
  267. package/dist/{list-cmd-RD7YBF4S.js → list-cmd-HQIN3HX4.js} +1 -1
  268. package/dist/{list-commands-UZELZAB3.js → list-commands-OFRRBU3D.js} +1 -1
  269. package/dist/{list-remote-KGKXPCQA.js → list-remote-EFCET42K.js} +1 -1
  270. package/dist/{locks-cmd-LXZ6I4QG.js → locks-cmd-AZKCSGHI.js} +1 -1
  271. package/dist/{logical-ids-D5PFYY4C.js → logical-ids-74PLU3VR.js} +1 -1
  272. package/dist/login-flow-SYKXXDLH.js +2 -0
  273. package/dist/{maintenance-cmd-WRWBCP3R.js → maintenance-cmd-X5247RSJ.js} +1 -1
  274. package/dist/{mobile-prompts-Z7NQHRGP.js → mobile-prompts-I66ENBDW.js} +1 -1
  275. package/dist/{objective-variable-gate-3Z7DNVVC.js → objective-variable-gate-V5HHFOUS.js} +1 -1
  276. package/dist/{onboarding-ZP4XDYEO.js → onboarding-6HIP3KW6.js} +1 -1
  277. package/dist/open-provider-XDJKT3W3.js +2 -0
  278. package/dist/pdf-convert-YB6PJFMI.js +2 -0
  279. package/dist/persist-recorded-session-RSSMTVF3.js +3 -0
  280. package/dist/phase-seed-ZZSJME7M.js +2 -0
  281. package/dist/pipeline-NTJDH5TC.js +2 -0
  282. package/dist/{policy-commands-TY6WOR73.js → policy-commands-4PUGESCW.js} +1 -1
  283. package/dist/{prepare-target-EVL2QSXA.js → prepare-target-AI3GGZF6.js} +1 -1
  284. package/dist/{pull-cmd-QJQANBAW.js → pull-cmd-NRVB5ZN7.js} +1 -1
  285. package/dist/{pull-route-AIOTLA3D.js → pull-route-FWCZW76M.js} +1 -1
  286. package/dist/readmodel-TRV4E3MW.js +2 -0
  287. package/dist/real-device-run-NQ7RNH7C.js +2 -0
  288. package/dist/{reconcile-cmd-IJTQAJZX.js → reconcile-cmd-7B7THAFJ.js} +4 -4
  289. package/dist/reconcile-deps-UDQBWSLE.js +2 -0
  290. package/dist/{reconcile-remote-23D6SXXT.js → reconcile-remote-3W6ZTO3G.js} +2 -2
  291. package/dist/{recording-banner-MNRMMEX4.js → recording-banner-WVDTWTSE.js} +1 -1
  292. package/dist/registry-PFOSXOIH.js +2 -0
  293. package/dist/remote-entry-BZU4NFNS.js +2 -0
  294. package/dist/{remote-mode-AFNCN6EE.js → remote-mode-NXUKDUXG.js} +1 -1
  295. package/dist/{remote-words-RCNFI2TQ.js → remote-words-JRDDNOZ6.js} +1 -1
  296. package/dist/{require-project-folder-7UH43GHI.js → require-project-folder-3DTI2CVB.js} +1 -1
  297. package/dist/{resolve-run-intent-XEWFYMGN.js → resolve-run-intent-QCL7QXIB.js} +1 -1
  298. package/dist/{resolver-QMPX6RBR.js → resolver-CDF7QKVD.js} +1 -1
  299. package/dist/revert-QKHPCRT6.js +2 -0
  300. package/dist/{review-cmd-2OECKNL5.js → review-cmd-XBK3TGRE.js} +1 -1
  301. package/dist/run-CSYGVV3D.js +2 -0
  302. package/dist/run-YUHHD54J.js +2 -0
  303. package/dist/{run-channel-63SVP5OI.js → run-channel-IIIYXOIW.js} +1 -1
  304. package/dist/run-remote-SFR3F2T5.js +2 -0
  305. package/dist/{run-startup-gate-USQFSW47.js → run-startup-gate-QSFJRYUY.js} +1 -1
  306. package/dist/run-test-md-ZSREINDQ.js +20 -0
  307. package/dist/session-worker.js +2 -2
  308. package/dist/{sessions-CFV7FOIT.js → sessions-NH2EG7BP.js} +1 -1
  309. package/dist/{sessions-cmd-LQ2LZQOC.js → sessions-cmd-TLUITRG5.js} +2 -2
  310. package/dist/{sessions-remote-H7CQST42.js → sessions-remote-INO7AWKB.js} +1 -1
  311. package/dist/{skill-installer-LKYY6XFJ.js → skill-installer-7JH5QCJF.js} +1 -1
  312. package/dist/spawner-MQ4XEHIX.js +2 -0
  313. package/dist/{store-KM5MG3XB.js → store-X4UK4AP7.js} +1 -1
  314. package/dist/store-choice-27HDIFTU.js +2 -0
  315. package/dist/{store-guard-34GG2TW2.js → store-guard-ZXKB5DQH.js} +1 -1
  316. package/dist/{store-site-ZSFINU6C.js → store-site-K5NHLI7D.js} +1 -1
  317. package/dist/stream-warnings-GM7YEOVG.js +2 -0
  318. package/dist/sync-cmd-2PCO7LZA.js +2 -0
  319. package/dist/{sync-setup-QQXYO6R4.js → sync-setup-5WQO73Y5.js} +1 -1
  320. package/dist/tcg-generate-DGJD5KSM.js +2 -0
  321. package/dist/testmd-actions-XE2JPQHB.js +2 -0
  322. package/dist/{testmd-sync-PQ4GFKHB.js → testmd-sync-LYHEXWCT.js} +1 -1
  323. package/dist/{tms-client-XWCR7O7J.js → tms-client-J4OCD3EP.js} +1 -1
  324. package/dist/token-refresh-E4FTJVHY.js +2 -0
  325. package/dist/{trust-gate-AT2XBWN4.js → trust-gate-674C2NZS.js} +1 -1
  326. package/dist/{turn-preflight-LHYLRL7G.js → turn-preflight-R4PU6NYY.js} +1 -1
  327. package/dist/{use-case-ref-NA3IXGQW.js → use-case-ref-44BPIP4N.js} +1 -1
  328. package/dist/{validate-basic-3DX3MMC7.js → validate-basic-66XDPA3S.js} +1 -1
  329. package/dist/{variable-receipt-BXSZO36E.js → variable-receipt-7PRKDTRJ.js} +1 -1
  330. package/dist/verdicts-PVB7TV5S.js +2 -0
  331. package/dist/{version-check-OV6AOVED.js → version-check-SHNVYTMU.js} +1 -1
  332. package/dist/{view-cmd-QDKBBNIU.js → view-cmd-QOB3O6YW.js} +1 -1
  333. package/dist/{walk-session-BAYYPIKN.js → walk-session-WIEROYOT.js} +1 -1
  334. package/dist/with-telemetry-T2PWI5CY.js +2 -0
  335. package/package.json +16 -16
  336. package/dist/ChatSurface-XUV3EQPZ.js +0 -2
  337. package/dist/EvidenceViewOffer-EIANIYN7.js +0 -2
  338. package/dist/FolderPicker-XOA7FTHF.js +0 -2
  339. package/dist/InfoBox-OBH7SUGC.js +0 -2
  340. package/dist/ProjectPicker-6KRLKV4U.js +0 -2
  341. package/dist/SaveSessionPrompt-J2OPDEOO.js +0 -2
  342. package/dist/SingleShotApp-QI4B2TSL.js +0 -2
  343. package/dist/TestMdRunView-I4MV54FB.js +0 -2
  344. package/dist/TestrunEvidenceTable-WEIUSW3E.js +0 -2
  345. package/dist/bridge-SDEP7Y33.js +0 -2
  346. package/dist/chat-committer-FM5NG46O.js +0 -2
  347. package/dist/chat-controller-FWFQVZTB.js +0 -2
  348. package/dist/child-H2YSDFCG.js +0 -2
  349. package/dist/chunk-2EVP636F.js +0 -26
  350. package/dist/chunk-34R7BNZ2.js +0 -2
  351. package/dist/chunk-5T6II7VN.js +0 -7
  352. package/dist/chunk-6K5BEEAJ.js +0 -2
  353. package/dist/chunk-HMQ5M4JJ.js +0 -34
  354. package/dist/chunk-KF4DKXSS.js +0 -2
  355. package/dist/chunk-NOFJXCYP.js +0 -5
  356. package/dist/chunk-SB6P5EQH.js +0 -2
  357. package/dist/chunk-Y6Y6RAY4.js +0 -2
  358. package/dist/commands-QOORPTSI.js +0 -2
  359. package/dist/cover-cmd-3VO6QC5Y.js +0 -2
  360. package/dist/design-committer-Y7R56RFZ.js +0 -2
  361. package/dist/design-headless-HUQOXLZB.js +0 -2
  362. package/dist/device-env-MMGISNHN.js +0 -2
  363. package/dist/dispatch-P2445PUU.js +0 -2
  364. package/dist/evidence-M3JTOJNL.js +0 -2
  365. package/dist/evidence-presentation-DV3DRB4S.js +0 -2
  366. package/dist/evolve-cmd-K3JXACMN.js +0 -2
  367. package/dist/evolve-remote-CUDVV2O2.js +0 -2
  368. package/dist/explore-UDD5FHXW.js +0 -2
  369. package/dist/extract-chat-ABZ5S7UU.js +0 -2
  370. package/dist/extract-headless-ALEFAMVS.js +0 -2
  371. package/dist/folder-flags-HTKJCXKB.js +0 -2
  372. package/dist/gaps-cmd-ROGQWK5X.js +0 -3
  373. package/dist/gate-QA5J7UZA.js +0 -2
  374. package/dist/gate-XFFFX5ZF.js +0 -2
  375. package/dist/hold-passthrough-K5PP26CP.js +0 -2
  376. package/dist/ingest-S5R736ZV.js +0 -2
  377. package/dist/ingest-remote-C6AP2Q7E.js +0 -2
  378. package/dist/install-B26Y2NU4.js +0 -2
  379. package/dist/lane-7IEAE6AC.js +0 -2
  380. package/dist/lattice-auth-7EL4ET3P.js +0 -2
  381. package/dist/login-flow-CHLGQGHK.js +0 -2
  382. package/dist/open-provider-U26BBVUE.js +0 -2
  383. package/dist/pdf-convert-LMKOKLXT.js +0 -2
  384. package/dist/persist-recorded-session-4IRYG5CJ.js +0 -3
  385. package/dist/phase-seed-2H6OXZXT.js +0 -2
  386. package/dist/pipeline-U7D25NST.js +0 -2
  387. package/dist/readmodel-KXCFPL2M.js +0 -2
  388. package/dist/real-device-run-QODMDUXF.js +0 -2
  389. package/dist/reconcile-deps-2CTIFXDR.js +0 -2
  390. package/dist/registry-MZYBLEW2.js +0 -2
  391. package/dist/remote-entry-DW2J56N4.js +0 -2
  392. package/dist/revert-37346WLE.js +0 -2
  393. package/dist/run-JWOHNWA3.js +0 -2
  394. package/dist/run-QFJ6ZRVD.js +0 -2
  395. package/dist/run-remote-66QTUQ2M.js +0 -2
  396. package/dist/run-test-md-7DRWCSQE.js +0 -19
  397. package/dist/spawner-C7NLLM4F.js +0 -2
  398. package/dist/store-choice-4J2NN6OQ.js +0 -2
  399. package/dist/stream-warnings-N4KVVWXV.js +0 -2
  400. package/dist/sync-cmd-3CHSWWWW.js +0 -2
  401. package/dist/tcg-generate-IPD5FQUW.js +0 -2
  402. package/dist/testmd-actions-V7P7BMKE.js +0 -2
  403. package/dist/token-refresh-LR33BKAB.js +0 -2
  404. package/dist/verdicts-7GKZEDHV.js +0 -2
  405. package/dist/with-telemetry-62LW4VFI.js +0 -2
@@ -1,4 +1,4 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as $}from"./chunk-MMBBQ4OZ.js";import{j as h}from"./chunk-XMALVGH7.js";import{a as w}from"./chunk-RZ4F3BHX.js";import{b as v}from"./chunk-QMOGBKJM.js";import{spawn as V,spawnSync as _}from"child_process";import{createServer as K}from"net";import{mkdirSync as g,openSync as W,readFileSync as I,renameSync as j,rmSync as x,statSync as Y,writeFileSync as M}from"fs";import{readFile as q}from"fs/promises";import{dirname as l,join as y}from"path";var G=[4723,4724,4725,4726,4727,4728,4729,4730],X={emulator:4750,simulator:4790},z=40,E=2e3,D=3e4,T=500,Ce=["emulator","simulator"];function Q(e){return y(v,"mobile",`appium-server-${e}.log`)}function m(){return y(v,"mobile","appium-servers.json")}function Z(){return y(v,"mobile","appium-servers.lock")}var ee=1e4,re=50;function C(e){let r=Z();try{g(l(r),{recursive:!0})}catch{return e()}let n=!1;for(let o=0;o<re;o++)try{g(r),n=!0;break}catch{try{Date.now()-Y(r).mtimeMs>ee&&x(r,{recursive:!0,force:!0})}catch{}ne(10)}try{return e()}finally{if(n)try{x(r,{recursive:!0,force:!0})}catch{}}}function ne(e){try{Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,e)}catch{}}function te(){try{let e=JSON.parse(I(m(),"utf8"));return Array.isArray(e)?e:[]}catch{return[]}}function oe(e){let r=m();g(l(r),{recursive:!0});let n=`${r}.tmp`;M(n,JSON.stringify(e,null,2)),j(n,r)}function se(e,r,n){return`Another mobile session is already running${n?` on ${n}`:""}. Wait for it to finish, or close the terminal running it.`}var A=class extends Error{constructor(n,o){super(n);this.port=o;this.name="DeviceBusyError"}};function ie(e){return w(e,{signal:AbortSignal.timeout(E)}).then(r=>r.ok,()=>!1)}async function ae(e,r){try{return(await w(`http://127.0.0.1:${e}/session/${r}`,{method:"DELETE",signal:AbortSignal.timeout(E)})).ok}catch{return!1}}function R(e){let r=e?.value;return Array.isArray(r)?r.map(n=>{let o=n??{},t=o.capabilities??o;return{...typeof o.id=="string"?{id:o.id}:{},caps:t}}):[]}async function ue(e){try{let r=await w(`http://127.0.0.1:${e}/sessions`,{signal:AbortSignal.timeout(E)});return r.ok?R(await r.json()):[]}catch{return[]}}var ce=["udid","appium:udid","deviceUDID","appium:deviceUDID","deviceName","appium:deviceName"];function L(){let e=r=>{try{let n=_("curl",["-s","--noproxy","*","--max-time","2",...r],{encoding:"utf8",timeout:5e3});return{ok:n.status===0,stdout:n.stdout??""}}catch{return{ok:!1,stdout:""}}};return{readState:()=>{try{let r=JSON.parse(I(m(),"utf8"));return Array.isArray(r)?r:[]}catch{return[]}},alive:b,getJson:r=>{let n=e([r]);if(n.ok)try{return JSON.parse(n.stdout)}catch{return}},del:r=>{let n=e(["-o","/dev/null","-w","%{http_code}","-X","DELETE",r]);return n.ok&&/^2\d\d$/.test(n.stdout.trim())}}}function Le(e,r={}){let n={...L(),...r},o=0;try{for(let t of n.readState()){if(!n.alive(t.pid))continue;let i=R(n.getJson(`http://127.0.0.1:${t.port}/sessions`));for(let s of i)s.id&&de(s.caps,e.udid,e.displayName)&&n.del(`http://127.0.0.1:${t.port}/session/${s.id}`)&&(o+=1)}}catch{}return o}function de(e,r,n){let o=[r,n].filter(t=>!!t).map(t=>t.toLowerCase());for(let t of ce){let i=e[t];if(typeof i=="string"&&o.includes(i.toLowerCase()))return!0}return!1}function pe(e,r,n){let o=W(n.logPath,"a"),t=V(e,r,{stdio:["ignore",o,o],detached:!0,env:{...process.env,...n.env}});return t.unref(),t.pid}async function le(e,r){for(let n=e;n<e+r;n++)if(await new Promise(t=>{let i=K();i.once("error",()=>t(!1)),i.once("listening",()=>i.close(()=>t(!0))),i.listen(n)}))return n;throw new Error(`No free port for the managed Appium server in ${e}-${e+r-1}.`)}function b(e){try{return process.kill(e,0),!0}catch{return!1}}function P(e){try{let r=_("ps",["-o","comm=","-p",String(e)],{encoding:"utf8",timeout:2e3});if(r.status!==0)return!1;let n=r.stdout.trim().toLowerCase();return n===""?!0:n.includes("node")||n.includes("kane")}catch{return!0}}function k(e){try{process.kill(e)}catch{}}async function me(){try{let e=JSON.parse(await q(m(),"utf8"));return Array.isArray(e)?e:[]}catch{return[]}}async function fe(e){let r=process.pid,n=e.filter(o=>o.owner===r);C(()=>{let o=[];for(let t of te())t.owner!==r&&(Se(t)?o.push(t):b(t.pid)&&k(t.pid));oe([...o,...n])})}function Se(e){return e.owner===void 0?!1:b(e.owner)&&P(e.owner)}function ve(){return{probe:ie,sessions:ue,deleteSession:ae,spawn:pe,freePort:le,alive:b,kill:k,readState:me,writeState:fe,owner:process.pid,depsEnv:e=>h().environment(e),bundleVersion:async e=>(await h().status(e)).version,nodeBinary:process.execPath,env:process.env,os:process.platform,now:()=>Date.now(),sleep:e=>new Promise(r=>setTimeout(r,e))}}function we(e,r,n){if(!e.platformToolsDir)return{};let o=n==="win32"?";":":",t=$(r),i=t?.root??l(e.platformToolsDir),s=t?.platformToolsDir??e.platformToolsDir;return{ANDROID_HOME:i,ANDROID_SDK_ROOT:i,PATH:r.PATH?`${s}${o}${r.PATH}`:s}}async function ge(e){let r=await e.readState(),n=[],o=[];for(let t of r)t.owner!==void 0&&e.alive(t.owner)&&(e.ownerIsOurs??P)(t.owner)?n.push(t):o.push(t);for(let t of o){let i=e.ownerIsOurs??P;e.alive(t.pid)&&i(t.pid)&&e.kill(t.pid)}return o.length>0&&await e.writeState(n),n}async function Je(e,r={}){if(r.appiumUrl)return{result:"external",url:r.appiumUrl};let n={...ve(),...r.deps},o=await ge(n),t=o.filter(a=>a.owner===n.owner),i=new Set(t.map(a=>a.port)),s=new Set(o.map(a=>a.port));if(r.device){let a=await ye(n,s,i,e);if(a!==null)throw new A(se(r.device,a.port,a.device),a.port)}let c=await n.bundleVersion(e),u=t.find(a=>a.deviceClass===e&&(a.bundleVersion??c)===c);if(u&&await n.probe(`http://127.0.0.1:${u.port}/status`))return{result:"reused",url:`http://127.0.0.1:${u.port}`};for(let a of t.filter(S=>S.deviceClass===e&&S!==u))n.kill(a.pid);u&&n.kill(u.pid);let d=await n.depsEnv(e);if(!d.appiumHome)throw new Error(`The managed dependencies for the ${e} class are not installed.
2
+ import{a as $}from"./chunk-MMBBQ4OZ.js";import{j as h}from"./chunk-NRAPCFI2.js";import{a as w}from"./chunk-RZ4F3BHX.js";import{b as v}from"./chunk-J4FIESTB.js";import{spawn as V,spawnSync as _}from"child_process";import{createServer as K}from"net";import{mkdirSync as g,openSync as W,readFileSync as I,renameSync as j,rmSync as x,statSync as Y,writeFileSync as M}from"fs";import{readFile as q}from"fs/promises";import{dirname as l,join as y}from"path";var G=[4723,4724,4725,4726,4727,4728,4729,4730],X={emulator:4750,simulator:4790},z=40,E=2e3,D=3e4,T=500,Ce=["emulator","simulator"];function Q(e){return y(v,"mobile",`appium-server-${e}.log`)}function m(){return y(v,"mobile","appium-servers.json")}function Z(){return y(v,"mobile","appium-servers.lock")}var ee=1e4,re=50;function C(e){let r=Z();try{g(l(r),{recursive:!0})}catch{return e()}let n=!1;for(let o=0;o<re;o++)try{g(r),n=!0;break}catch{try{Date.now()-Y(r).mtimeMs>ee&&x(r,{recursive:!0,force:!0})}catch{}ne(10)}try{return e()}finally{if(n)try{x(r,{recursive:!0,force:!0})}catch{}}}function ne(e){try{Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,e)}catch{}}function te(){try{let e=JSON.parse(I(m(),"utf8"));return Array.isArray(e)?e:[]}catch{return[]}}function oe(e){let r=m();g(l(r),{recursive:!0});let n=`${r}.tmp`;M(n,JSON.stringify(e,null,2)),j(n,r)}function se(e,r,n){return`Another mobile session is already running${n?` on ${n}`:""}. Wait for it to finish, or close the terminal running it.`}var A=class extends Error{constructor(n,o){super(n);this.port=o;this.name="DeviceBusyError"}};function ie(e){return w(e,{signal:AbortSignal.timeout(E)}).then(r=>r.ok,()=>!1)}async function ae(e,r){try{return(await w(`http://127.0.0.1:${e}/session/${r}`,{method:"DELETE",signal:AbortSignal.timeout(E)})).ok}catch{return!1}}function R(e){let r=e?.value;return Array.isArray(r)?r.map(n=>{let o=n??{},t=o.capabilities??o;return{...typeof o.id=="string"?{id:o.id}:{},caps:t}}):[]}async function ue(e){try{let r=await w(`http://127.0.0.1:${e}/sessions`,{signal:AbortSignal.timeout(E)});return r.ok?R(await r.json()):[]}catch{return[]}}var ce=["udid","appium:udid","deviceUDID","appium:deviceUDID","deviceName","appium:deviceName"];function L(){let e=r=>{try{let n=_("curl",["-s","--noproxy","*","--max-time","2",...r],{encoding:"utf8",timeout:5e3});return{ok:n.status===0,stdout:n.stdout??""}}catch{return{ok:!1,stdout:""}}};return{readState:()=>{try{let r=JSON.parse(I(m(),"utf8"));return Array.isArray(r)?r:[]}catch{return[]}},alive:b,getJson:r=>{let n=e([r]);if(n.ok)try{return JSON.parse(n.stdout)}catch{return}},del:r=>{let n=e(["-o","/dev/null","-w","%{http_code}","-X","DELETE",r]);return n.ok&&/^2\d\d$/.test(n.stdout.trim())}}}function Le(e,r={}){let n={...L(),...r},o=0;try{for(let t of n.readState()){if(!n.alive(t.pid))continue;let i=R(n.getJson(`http://127.0.0.1:${t.port}/sessions`));for(let s of i)s.id&&de(s.caps,e.udid,e.displayName)&&n.del(`http://127.0.0.1:${t.port}/session/${s.id}`)&&(o+=1)}}catch{}return o}function de(e,r,n){let o=[r,n].filter(t=>!!t).map(t=>t.toLowerCase());for(let t of ce){let i=e[t];if(typeof i=="string"&&o.includes(i.toLowerCase()))return!0}return!1}function pe(e,r,n){let o=W(n.logPath,"a"),t=V(e,r,{stdio:["ignore",o,o],detached:!0,env:{...process.env,...n.env}});return t.unref(),t.pid}async function le(e,r){for(let n=e;n<e+r;n++)if(await new Promise(t=>{let i=K();i.once("error",()=>t(!1)),i.once("listening",()=>i.close(()=>t(!0))),i.listen(n)}))return n;throw new Error(`No free port for the managed Appium server in ${e}-${e+r-1}.`)}function b(e){try{return process.kill(e,0),!0}catch{return!1}}function P(e){try{let r=_("ps",["-o","comm=","-p",String(e)],{encoding:"utf8",timeout:2e3});if(r.status!==0)return!1;let n=r.stdout.trim().toLowerCase();return n===""?!0:n.includes("node")||n.includes("kane")}catch{return!0}}function k(e){try{process.kill(e)}catch{}}async function me(){try{let e=JSON.parse(await q(m(),"utf8"));return Array.isArray(e)?e:[]}catch{return[]}}async function fe(e){let r=process.pid,n=e.filter(o=>o.owner===r);C(()=>{let o=[];for(let t of te())t.owner!==r&&(Se(t)?o.push(t):b(t.pid)&&k(t.pid));oe([...o,...n])})}function Se(e){return e.owner===void 0?!1:b(e.owner)&&P(e.owner)}function ve(){return{probe:ie,sessions:ue,deleteSession:ae,spawn:pe,freePort:le,alive:b,kill:k,readState:me,writeState:fe,owner:process.pid,depsEnv:e=>h().environment(e),bundleVersion:async e=>(await h().status(e)).version,nodeBinary:process.execPath,env:process.env,os:process.platform,now:()=>Date.now(),sleep:e=>new Promise(r=>setTimeout(r,e))}}function we(e,r,n){if(!e.platformToolsDir)return{};let o=n==="win32"?";":":",t=$(r),i=t?.root??l(e.platformToolsDir),s=t?.platformToolsDir??e.platformToolsDir;return{ANDROID_HOME:i,ANDROID_SDK_ROOT:i,PATH:r.PATH?`${s}${o}${r.PATH}`:s}}async function ge(e){let r=await e.readState(),n=[],o=[];for(let t of r)t.owner!==void 0&&e.alive(t.owner)&&(e.ownerIsOurs??P)(t.owner)?n.push(t):o.push(t);for(let t of o){let i=e.ownerIsOurs??P;e.alive(t.pid)&&i(t.pid)&&e.kill(t.pid)}return o.length>0&&await e.writeState(n),n}async function Je(e,r={}){if(r.appiumUrl)return{result:"external",url:r.appiumUrl};let n={...ve(),...r.deps},o=await ge(n),t=o.filter(a=>a.owner===n.owner),i=new Set(t.map(a=>a.port)),s=new Set(o.map(a=>a.port));if(r.device){let a=await ye(n,s,i,e);if(a!==null)throw new A(se(r.device,a.port,a.device),a.port)}let c=await n.bundleVersion(e),u=t.find(a=>a.deviceClass===e&&(a.bundleVersion??c)===c);if(u&&await n.probe(`http://127.0.0.1:${u.port}/status`))return{result:"reused",url:`http://127.0.0.1:${u.port}`};for(let a of t.filter(S=>S.deviceClass===e&&S!==u))n.kill(a.pid);u&&n.kill(u.pid);let d=await n.depsEnv(e);if(!d.appiumHome)throw new Error(`The managed dependencies for the ${e} class are not installed.
3
3
  Run \`kane-cli doctor --target ${e} --install\` to install them, or pass --appium-url for an external server.`);let p=await n.freePort(X[e],z),O=`http://127.0.0.1:${p}`,J=l(d.appiumHome),U=y(J,"appium","node_modules","appium","index.js"),N=Q(e);r.onProgress?.(`starting the managed Appium server (${e}, port ${p})\u2026`);let f=n.spawn(n.nodeBinary,[U,"--port",String(p),"--allow-insecure=uiautomator2:adb_shell"],{env:{APPIUM_HOME:d.appiumHome,...we(d,n.env,n.os)},logPath:N}),B=n.now()+D,F=Math.ceil(D/T)+1;for(let a=0;a<F&&n.now()<B;a++)if(await n.sleep(T),await n.probe(`${O}/status`)){if(f!==void 0){let S=t.filter(H=>H.deviceClass!==e);await n.writeState([...S,{port:p,pid:f,owner:n.owner,deviceClass:e,...c?{bundleVersion:c}:{},startedAt:new Date(n.now()).toISOString()}])}return r.onProgress?.("Appium server ready"),{result:"started",url:O}}throw f!==void 0&&n.kill(f),new Error(`The managed Appium server (${e}) did not answer on ${p} within ${D/1e3}s.
4
4
  Check its log: ${N}`)}async function ye(e,r=[],n=[],o){let t=new Set(n),i=new Set([...G,...r]);for(let s of i)if(!t.has(s))for(let c of await e.sessions(s)){if(!c.id)continue;if(o){let d=be(c.caps);if(d&&d!==o)continue}let u=De(c.caps);return{port:s,...u?{device:u}:{}}}return null}function be(e){let r=t=>{let i=e[t];return typeof i=="string"?i.toLowerCase():""},n=r("platformName")||r("appium:platformName");if(n.includes("ios"))return"simulator";if(n.includes("android"))return"emulator";let o=r("appium:automationName")||r("automationName");if(o.includes("xcuitest"))return"simulator";if(o.includes("uiautomator"))return"emulator"}var he=["appium:deviceName","deviceName","appium:udid","udid","appium:deviceUDID","deviceUDID"];function De(e){for(let r of he){let n=e[r];if(typeof n=="string"&&n.trim())return n}}function Ue(e={}){let r={...L(),kill:k,writeState:Ae,...e.deps};try{let n=r.readState(),o=e.owner??process.pid,t=n.filter(s=>s.owner===o&&(!e.deviceClass||s.deviceClass===e.deviceClass));for(let s of t){if(!r.alive(s.pid))continue;let c=R(r.getJson(`http://127.0.0.1:${s.port}/sessions`));for(let u of c)u.id&&r.del(`http://127.0.0.1:${s.port}/session/${u.id}`);r.kill(s.pid)}let i=new Set(t.map(s=>`${s.port}:${s.pid}`));C(()=>{r.writeState(r.readState().filter(s=>!i.has(`${s.port}:${s.pid}`)))})}catch{}}function Ae(e){try{let r=m();g(l(r),{recursive:!0}),M(r,JSON.stringify(e,null,2))}catch{}}export{Ce as a,Q as b,se as c,Le as d,ve as e,Je as f,ye as g,Ue as h};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as A,b as T,c as $,d as x,e as c,h as F}from"./chunk-ORNVIEUA.js";import{f as k,l as v,q as E}from"./chunk-RLOJH5O6.js";import{M as S,j as N,m as U,n as O}from"./chunk-Z777GGHB.js";import{d as m}from"./chunk-DBMW3VUN.js";import{existsSync as R,readFileSync as H,statSync as M}from"fs";var B=t=>{try{return R(t)&&M(t).isFile()}catch{return!1}},C=t=>N(t)&&A.test(t);async function y(t,n,o,l){let e=t.manifest.id,s,a=new Promise((r,d)=>{s=setTimeout(()=>d(new $({code:"PLUGIN_HOOK_TIMEOUT",message:`plugin ${e} did not answer ${n} within ${Math.round(o/1e3)} seconds`,plugin:e,hook:n})),o)});try{return await Promise.race([Promise.resolve().then(l),a])}catch(r){throw r instanceof $?r:r instanceof T?new $({code:"PLUGIN_REFUSED",message:r.message,plugin:e,hook:n,...r.remedy?{remedy:r.remedy}:{}}):new $({code:"PLUGIN_HOOK_FAILED",message:`plugin ${e} failed in ${n}: ${r instanceof Error?r.message:String(r)}`,plugin:e,hook:n})}finally{clearTimeout(s)}}async function ee(t){let{plugin:n,ref:o,named:l}=t,e=n.manifest.id,s=t.hookMs??m.hookMs,a=t.isFile??B(o),r=!a&&x(n).includes("remote")&&typeof n.fetch=="function",d=l?`${e}:${o}`:o,I=r?O(d):null;I!==null&&c("PLUGIN_REF_INVALID",`${d.length>80?`${d.slice(0,80)}\u2026`:d} cannot be recorded as a reference: ${I}`,{plugin:e,remedy:`give the source as <scheme>:<rest>, one word of at most ${U} characters`});let h=await y(n,"claim",s,()=>n.claim({ref:o,named:l,isFile:a}));h==null&&c("PLUGIN_NOT_CLAIMED",`plugin ${e} does not read ${o}`,{plugin:e,hook:"claim",remedy:l?`drop the ${e}: prefix, or name the plugin that reads it`:"ingest it as a file of a built-in kind"}),(typeof h!="object"||typeof h.sourceId!="string")&&c("PLUGIN_HOOK_FAILED",`plugin ${e} answered claim with something that is not a claim`,{plugin:e,hook:"claim"});let p=t.asId??h.sourceId,b=h.recorded;if(r&&b!==void 0){(typeof b!="string"||b==="")&&c("PLUGIN_HOOK_FAILED",`plugin ${e} answered claim with a recorded reference that is not one`,{plugin:e,hook:"claim"});let i=l?`${e}:${b}`:b,u=O(i);u!==null&&c("PLUGIN_HOOK_FAILED",`plugin ${e} would record ${i.length>80?`${i.slice(0,80)}\u2026`:i}, which cannot be recorded as a reference: ${u}`,{plugin:e,hook:"claim"});let f=(t.registry??F()).route(i,()=>!1);(f===null||f.plugin.manifest.id!==e)&&c("PLUGIN_HOOK_FAILED",`plugin ${e} would record ${i.length>80?`${i.slice(0,80)}\u2026`:i}, which ${f===null?"no plugin reads":`plugin ${f.plugin.manifest.id} reads`}: a recorded reference must route back to the plugin that read it`,{plugin:e,hook:"claim"});let w=await y(n,"claim",s,()=>n.claim({ref:f.ref,named:f.named,isFile:!1}));(w==null||typeof w!="object"||w.sourceId!==h.sourceId)&&c("PLUGIN_HOOK_FAILED",`plugin ${e} would record ${b} for ${h.sourceId}, but claiming it again ${w?`gives ${String(w.sourceId)}`:"is refused"}: a recorded reference must name the same source`,{plugin:e,hook:"claim"}),d=i}C(p)||c("PLUGIN_SOURCE_ID_INVALID",`${JSON.stringify(p)} is not an id a source may have: it starts with a letter or digit and holds letters, digits and . _ -, at most 128 characters`,{plugin:e,hook:"claim",remedy:t.asId===void 0?"give the source an id with --as <id>":"give another id with --as <id>"});let g,L;if(!a&&t.supplied!==void 0){r||c("PLUGIN_REMOTE_UNAVAILABLE",`${o} is not a file on this machine, and plugin ${e} has no connection to fetch it through`,{plugin:e,remedy:"save the source to a file and ingest the file"}),g=Buffer.from(t.supplied.bytes),g.byteLength>m.contentBytes&&c("PLUGIN_CONTENT_TOO_LARGE",`${o} is ${g.byteLength} bytes; a plugin's source may be at most ${m.contentBytes}`,{plugin:e,hook:"fetch"});let i=t.supplied.cursor??null;L={ref:d,...i!==null?{cursor:i}:{}}}else if(a)g=t.supplied!==void 0?Buffer.from(t.supplied.bytes):H(o),g.byteLength>m.contentBytes&&c("PLUGIN_CONTENT_TOO_LARGE",`${o} is ${g.byteLength} bytes; a plugin's source may be at most ${m.contentBytes}`,{plugin:e});else{let i=r?t.connect?.(e):void 0;i===void 0&&c("PLUGIN_REMOTE_UNAVAILABLE",`${o} is not a file on this machine, and plugin ${e} has no connection to fetch it through`,{plugin:e,remedy:"save the source to a file and ingest the file"});let u=t.cursor!==void 0?t.cursor:j(t.store,p,e,d),f=await D(n,i,{ref:o,sourceId:p,cursor:u},s);if(f.kind==="unchanged")return K(t.store,p,e);g=f.bytes,L={ref:d,...f.cursor!==null?{cursor:f.cursor}:{}},t.onFetched?.({bytes:new Uint8Array(g),cursor:f.cursor})}let _={sourceId:p,bytes:new Uint8Array(g)},G=async()=>{let u=(await y(n,"render",s,()=>n.render(_)))?.text;(typeof u!="string"||u===""||u.includes("\0"))&&c("PLUGIN_TEXT_INVALID",`plugin ${e} rendered ${p} to something that is not text: ${typeof u!="string"?"no text":u===""?"empty text":"text holding a NUL"}`,{plugin:e,hook:"render"});let f=await y(n,"index",s,()=>n.index(_,{text:u}));return{projection:u,inventory:[],blobs:new Map,delivered:[],converter:{name:e,version:n.manifest.version,policy:`rules-${n.manifest.rules}`},units:f}},P=x(n);return E({store:t.store,bytes:g,media:k,sourceId:p,label:o,plugin:{id:e,rules:n.manifest.rules,...L!==void 0?{fetch:L}:{},...P.includes("cites-deep")?{citesDeep:!0}:{}},converters:{plugin:G},...P.includes("explain")&&typeof n.explain=="function"?{explain:(i,u)=>y(n,"explain",Math.min(u,s),()=>n.explain(i))}:{},...t.explainMs!==void 0?{explainMs:t.explainMs}:{},...P.includes("context")&&typeof n.context=="function"?{context:(i,u)=>y(n,"context",Math.min(u,s),()=>n.context({..._,text:i.text,units:i.units}))}:{},...P.includes("coverage")&&typeof n.coverage=="function"?{coverage:(i,u)=>y(n,"coverage",Math.min(u,s),()=>n.coverage({sourceId:_.sourceId,units:i.units}))}:{},...t.confirmSameSource?{confirmSameSource:t.confirmSameSource}:{},...t.eventIds?{eventIds:t.eventIds}:{},...t.provenance?{provenance:t.provenance}:{}})}async function D(t,n,o,l){let e=t.manifest.id,s;try{s=await y(t,"fetch",l,()=>t.fetch({...o,connection:n}))}catch(h){throw n.breach?n.breach:h}finally{n.close()}if(n.breach)throw n.breach;let a=s?.kind;if(a==="unchanged")return{kind:"unchanged"};let r=s;(a!=="content"||!(r.bytes instanceof Uint8Array))&&c("PLUGIN_HOOK_FAILED",`plugin ${e} answered fetch with something that is not an answer: neither the content, with its bytes, nor "unchanged"`,{plugin:e,hook:"fetch"});let d=Buffer.from(r.bytes);d.byteLength>m.contentBytes&&c("PLUGIN_CONTENT_TOO_LARGE",`plugin ${e} fetched ${d.byteLength} bytes for ${o.ref}; a plugin's source may be at most ${m.contentBytes}`,{plugin:e,hook:"fetch"}),r.cursor!==void 0&&typeof r.cursor!="string"&&c("PLUGIN_HOOK_FAILED",`plugin ${e} answered fetch with a cursor that is not a string`,{plugin:e,hook:"fetch"});let I=r.cursor===void 0?null:r.cursor;return I!==null&&Buffer.byteLength(I,"utf8")>m.cursorBytes&&c("PLUGIN_CURSOR_TOO_LARGE",`plugin ${e} answered fetch with a cursor of ${Buffer.byteLength(I,"utf8")} bytes; a cursor may be at most ${m.cursorBytes}`,{plugin:e,hook:"fetch",remedy:"the plugin must be fixed: every later fetch of this source starts from the same cursor and is refused the same way"}),{kind:"content",bytes:d,cursor:I}}function K(t,n,o){let l=S(t),e=l.heads.get(n);typeof e!="string"&&c("PLUGIN_HOOK_FAILED",`plugin ${o} answered fetch with "unchanged" for ${n}, which this store holds no current version of`,{plugin:o,hook:"fetch"});let s=l.mediaOf(e),a=v(n,s.format==="plugin"?s.plugin?.id??"":null,o,!1);if(a!==void 0)throw new Error(a);let r=l.getNode(e)?.content.blob;return{status:"unchanged",source_id:n,cid:e,blob:typeof r=="string"?r:""}}function j(t,n,o,l){let e=S(t),s=e.heads.get(n);if(typeof s!="string")return null;let a=e.mediaOf(s).plugin;return a?.id!==o||a.fetch?.ref!==l?null:a.fetch.cursor??null}export{B as a,C as b,y as c,ee as d};
2
+ import{a as A,b as T,c as $,d as x,e as c,h as F}from"./chunk-ZDCXWEQG.js";import{f as k,l as v,q as E}from"./chunk-Z24SD2EJ.js";import{M as S,j as N,m as U,n as O}from"./chunk-PI7OXS62.js";import{d as m}from"./chunk-DBMW3VUN.js";import{existsSync as R,readFileSync as H,statSync as M}from"fs";var B=t=>{try{return R(t)&&M(t).isFile()}catch{return!1}},C=t=>N(t)&&A.test(t);async function y(t,n,o,l){let e=t.manifest.id,s,a=new Promise((r,d)=>{s=setTimeout(()=>d(new $({code:"PLUGIN_HOOK_TIMEOUT",message:`plugin ${e} did not answer ${n} within ${Math.round(o/1e3)} seconds`,plugin:e,hook:n})),o)});try{return await Promise.race([Promise.resolve().then(l),a])}catch(r){throw r instanceof $?r:r instanceof T?new $({code:"PLUGIN_REFUSED",message:r.message,plugin:e,hook:n,...r.remedy?{remedy:r.remedy}:{}}):new $({code:"PLUGIN_HOOK_FAILED",message:`plugin ${e} failed in ${n}: ${r instanceof Error?r.message:String(r)}`,plugin:e,hook:n})}finally{clearTimeout(s)}}async function ee(t){let{plugin:n,ref:o,named:l}=t,e=n.manifest.id,s=t.hookMs??m.hookMs,a=t.isFile??B(o),r=!a&&x(n).includes("remote")&&typeof n.fetch=="function",d=l?`${e}:${o}`:o,I=r?O(d):null;I!==null&&c("PLUGIN_REF_INVALID",`${d.length>80?`${d.slice(0,80)}\u2026`:d} cannot be recorded as a reference: ${I}`,{plugin:e,remedy:`give the source as <scheme>:<rest>, one word of at most ${U} characters`});let h=await y(n,"claim",s,()=>n.claim({ref:o,named:l,isFile:a}));h==null&&c("PLUGIN_NOT_CLAIMED",`plugin ${e} does not read ${o}`,{plugin:e,hook:"claim",remedy:l?`drop the ${e}: prefix, or name the plugin that reads it`:"ingest it as a file of a built-in kind"}),(typeof h!="object"||typeof h.sourceId!="string")&&c("PLUGIN_HOOK_FAILED",`plugin ${e} answered claim with something that is not a claim`,{plugin:e,hook:"claim"});let p=t.asId??h.sourceId,b=h.recorded;if(r&&b!==void 0){(typeof b!="string"||b==="")&&c("PLUGIN_HOOK_FAILED",`plugin ${e} answered claim with a recorded reference that is not one`,{plugin:e,hook:"claim"});let i=l?`${e}:${b}`:b,u=O(i);u!==null&&c("PLUGIN_HOOK_FAILED",`plugin ${e} would record ${i.length>80?`${i.slice(0,80)}\u2026`:i}, which cannot be recorded as a reference: ${u}`,{plugin:e,hook:"claim"});let f=(t.registry??F()).route(i,()=>!1);(f===null||f.plugin.manifest.id!==e)&&c("PLUGIN_HOOK_FAILED",`plugin ${e} would record ${i.length>80?`${i.slice(0,80)}\u2026`:i}, which ${f===null?"no plugin reads":`plugin ${f.plugin.manifest.id} reads`}: a recorded reference must route back to the plugin that read it`,{plugin:e,hook:"claim"});let w=await y(n,"claim",s,()=>n.claim({ref:f.ref,named:f.named,isFile:!1}));(w==null||typeof w!="object"||w.sourceId!==h.sourceId)&&c("PLUGIN_HOOK_FAILED",`plugin ${e} would record ${b} for ${h.sourceId}, but claiming it again ${w?`gives ${String(w.sourceId)}`:"is refused"}: a recorded reference must name the same source`,{plugin:e,hook:"claim"}),d=i}C(p)||c("PLUGIN_SOURCE_ID_INVALID",`${JSON.stringify(p)} is not an id a source may have: it starts with a letter or digit and holds letters, digits and . _ -, at most 128 characters`,{plugin:e,hook:"claim",remedy:t.asId===void 0?"give the source an id with --as <id>":"give another id with --as <id>"});let g,L;if(!a&&t.supplied!==void 0){r||c("PLUGIN_REMOTE_UNAVAILABLE",`${o} is not a file on this machine, and plugin ${e} has no connection to fetch it through`,{plugin:e,remedy:"save the source to a file and ingest the file"}),g=Buffer.from(t.supplied.bytes),g.byteLength>m.contentBytes&&c("PLUGIN_CONTENT_TOO_LARGE",`${o} is ${g.byteLength} bytes; a plugin's source may be at most ${m.contentBytes}`,{plugin:e,hook:"fetch"});let i=t.supplied.cursor??null;L={ref:d,...i!==null?{cursor:i}:{}}}else if(a)g=t.supplied!==void 0?Buffer.from(t.supplied.bytes):H(o),g.byteLength>m.contentBytes&&c("PLUGIN_CONTENT_TOO_LARGE",`${o} is ${g.byteLength} bytes; a plugin's source may be at most ${m.contentBytes}`,{plugin:e});else{let i=r?t.connect?.(e):void 0;i===void 0&&c("PLUGIN_REMOTE_UNAVAILABLE",`${o} is not a file on this machine, and plugin ${e} has no connection to fetch it through`,{plugin:e,remedy:"save the source to a file and ingest the file"});let u=t.cursor!==void 0?t.cursor:j(t.store,p,e,d),f=await D(n,i,{ref:o,sourceId:p,cursor:u},s);if(f.kind==="unchanged")return K(t.store,p,e);g=f.bytes,L={ref:d,...f.cursor!==null?{cursor:f.cursor}:{}},t.onFetched?.({bytes:new Uint8Array(g),cursor:f.cursor})}let _={sourceId:p,bytes:new Uint8Array(g)},G=async()=>{let u=(await y(n,"render",s,()=>n.render(_)))?.text;(typeof u!="string"||u===""||u.includes("\0"))&&c("PLUGIN_TEXT_INVALID",`plugin ${e} rendered ${p} to something that is not text: ${typeof u!="string"?"no text":u===""?"empty text":"text holding a NUL"}`,{plugin:e,hook:"render"});let f=await y(n,"index",s,()=>n.index(_,{text:u}));return{projection:u,inventory:[],blobs:new Map,delivered:[],converter:{name:e,version:n.manifest.version,policy:`rules-${n.manifest.rules}`},units:f}},P=x(n);return E({store:t.store,bytes:g,media:k,sourceId:p,label:o,plugin:{id:e,rules:n.manifest.rules,...L!==void 0?{fetch:L}:{},...P.includes("cites-deep")?{citesDeep:!0}:{}},converters:{plugin:G},...P.includes("explain")&&typeof n.explain=="function"?{explain:(i,u)=>y(n,"explain",Math.min(u,s),()=>n.explain(i))}:{},...t.explainMs!==void 0?{explainMs:t.explainMs}:{},...P.includes("context")&&typeof n.context=="function"?{context:(i,u)=>y(n,"context",Math.min(u,s),()=>n.context({..._,text:i.text,units:i.units}))}:{},...P.includes("coverage")&&typeof n.coverage=="function"?{coverage:(i,u)=>y(n,"coverage",Math.min(u,s),()=>n.coverage({sourceId:_.sourceId,units:i.units}))}:{},...t.confirmSameSource?{confirmSameSource:t.confirmSameSource}:{},...t.eventIds?{eventIds:t.eventIds}:{},...t.provenance?{provenance:t.provenance}:{}})}async function D(t,n,o,l){let e=t.manifest.id,s;try{s=await y(t,"fetch",l,()=>t.fetch({...o,connection:n}))}catch(h){throw n.breach?n.breach:h}finally{n.close()}if(n.breach)throw n.breach;let a=s?.kind;if(a==="unchanged")return{kind:"unchanged"};let r=s;(a!=="content"||!(r.bytes instanceof Uint8Array))&&c("PLUGIN_HOOK_FAILED",`plugin ${e} answered fetch with something that is not an answer: neither the content, with its bytes, nor "unchanged"`,{plugin:e,hook:"fetch"});let d=Buffer.from(r.bytes);d.byteLength>m.contentBytes&&c("PLUGIN_CONTENT_TOO_LARGE",`plugin ${e} fetched ${d.byteLength} bytes for ${o.ref}; a plugin's source may be at most ${m.contentBytes}`,{plugin:e,hook:"fetch"}),r.cursor!==void 0&&typeof r.cursor!="string"&&c("PLUGIN_HOOK_FAILED",`plugin ${e} answered fetch with a cursor that is not a string`,{plugin:e,hook:"fetch"});let I=r.cursor===void 0?null:r.cursor;return I!==null&&Buffer.byteLength(I,"utf8")>m.cursorBytes&&c("PLUGIN_CURSOR_TOO_LARGE",`plugin ${e} answered fetch with a cursor of ${Buffer.byteLength(I,"utf8")} bytes; a cursor may be at most ${m.cursorBytes}`,{plugin:e,hook:"fetch",remedy:"the plugin must be fixed: every later fetch of this source starts from the same cursor and is refused the same way"}),{kind:"content",bytes:d,cursor:I}}function K(t,n,o){let l=S(t),e=l.heads.get(n);typeof e!="string"&&c("PLUGIN_HOOK_FAILED",`plugin ${o} answered fetch with "unchanged" for ${n}, which this store holds no current version of`,{plugin:o,hook:"fetch"});let s=l.mediaOf(e),a=v(n,s.format==="plugin"?s.plugin?.id??"":null,o,!1);if(a!==void 0)throw new Error(a);let r=l.getNode(e)?.content.blob;return{status:"unchanged",source_id:n,cid:e,blob:typeof r=="string"?r:""}}function j(t,n,o,l){let e=S(t),s=e.heads.get(n);if(typeof s!="string")return null;let a=e.mediaOf(s).plugin;return a?.id!==o||a.fetch?.ref!==l?null:a.fetch.cursor??null}export{B as a,C as b,y as c,ee as d};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{d as u,e as b}from"./chunk-MYZHOBS4.js";import{basename as I}from"path";var H="objective",R=/(\\?)\{\{\s*([^{}]+?)\s*\}\}/g;function p(e){let t=[];if(!e)return t;for(let n of e.matchAll(R)){if(n[1])continue;let s=u(n[2]??"");s&&!t.includes(s)&&t.push(s)}return t}var T=/(\\?)\$\{\s*([^{}]+?)\s*\}/g;function k(e){let t=[];if(!e)return t;for(let n of e.matchAll(T)){if(n[1])continue;let s=(n[2]??"").split(/[.[]/)[0]?.trim()??"";s&&!t.includes(s)&&t.push(s)}return t}function K(e,t,n){return E(e.map(({text:s,usedBy:o})=>k(s).filter(i=>!t.has(i)).map(i=>({name:i,reason:"not_a_dataset_column",dataset:n,used_by:[o]}))))}var O=/\b(?:store|save|extract|remember|capture)\b/i,L=/\bas\s+(?:['"`]([A-Za-z_][A-Za-z0-9_]*)['"`]|([A-Za-z_][A-Za-z0-9_]*)(?=\s*(?:,|$)))/gi,j=new Set(["a","an","the"]),D=/\b(?:open|opens|go(?:es)? to|navigate(?:s)? to|visit(?:s)?|browse(?:s)? to|load(?:s)?|launch(?:es)?|start(?:s)? (?:at|on|from))\b/i,N=/[.;,:\n]|\b(?:and|then|but|or|with|as|using|via)\b/gi,P=/^\s*(?:page|tab|screen|section|menu|list|item|button)\b/i,z=new Set(["url","uri","link","site","website","page","homepage","host","domain"]),C=/[a-z0-9](?:Url|URL|Uri|URI|Link|Site|Website|Page|Homepage|Host|Domain)$/,F=/\bhttps?:\/\/\S|\bwww\.[a-z0-9-]+\.[a-z]/i,B=new Set(["emulator","simulator","android","ios"]),M=e=>z.has(e.split(/[_.]/).at(-1).toLowerCase())||C.test(e);function G(e){let t=0;for(let n of e.matchAll(N))t=n.index+n[0].length;return e.slice(t)}function S(e){let t=[];if(!e)return t;for(let n of e.matchAll(R)){if(n[1])continue;let s=n[2]??"",o=u(s),i=o??s.split(/[.[\]]/).map(l=>l.trim()).filter(Boolean).at(-1)??"";i&&(M(i)||!P.test(e.slice(n.index+n[0].length))&&D.test(G(e.slice(0,n.index))))&&t.push(o)}return t}function W(e){let t=[];for(let n of S(e))n!==null&&!t.includes(n)&&t.push(n);return t}function Z(e){return S(e).length>0||F.test(e)}function J(e){return!e.surfaceRequired||e.target!==void 0&&B.has(e.target)||e.firstStep===null?!1:!e.firstStep||!Z(e.firstStep)}function A(e){let t=[];if(!e)return t;for(let n of e.split(/[.;\n]/))if(O.test(n))for(let s of n.matchAll(L)){let o=s[1]??s[2];!o||j.has(o.toLowerCase())||t.includes(o)||t.push(o)}return t}function w(e,t,n){let s=t.get(e);return s?s.has_value?null:{name:e,reason:"value_missing",file:s.source,used_by:[n]}:{name:e,reason:"not_declared",used_by:[n]}}function Q(e,t,n,s=[]){let o=new Set([...s,...A(e)]),i=[];for(let l of p(e)){if(o.has(l))continue;let c=w(l,t,n);c&&i.push(c)}return i}function X(e,t,n={}){let s=e.rootGlobal.variables??{},o=new Set(n.produced??[]),i=n.authorFrom??0,l=[];for(let c of e.steps){let y=c.flatIndex-1>=i,f=A(c.objective);if(!y){for(let r of f)o.add(r);continue}let V={file:I(c.sourceFile),step:c.flatIndex},U=c.config.variables??{},d=new Map,m=r=>u(b(r))??b(r);for(let[r,a]of Object.entries(s))d.set(m(r),a.value);for(let[r,a]of Object.entries(U))d.set(m(r),a.value);let g=new Set,_=(r,a)=>{if(o.has(r)||f.includes(r))return;let h=d.get(r);if(h===void 0){g.add(r);return}if(a.has(r)){g.add(r);return}a.add(r);for(let x of p(h))_(x,a);a.delete(r)};for(let r of p(c.objective))_(r,new Set);let v=[];for(let r of g){let a=w(r,t,V);a&&v.push(a)}l.push(v);for(let r of f)o.add(r)}return E(l)}function Y(e){let t=new Set,n=e&&typeof e=="object"?e:null;for(let s of n?.prior_runs??[])for(let o of Object.keys(s.variables??{}))t.add(o);return[...t]}function E(e){let t=new Map;for(let n of e)for(let s of n){let o=t.get(s.name);o?o.used_by.push(...s.used_by):t.set(s.name,{...s,used_by:[...s.used_by]})}return[...t.values()].sort((n,s)=>n.name<s.name?-1:1)}export{H as a,p as b,K as c,W as d,J as e,A as f,Q as g,X as h,Y as i,E as j};
2
+ import{d as u,e as b}from"./chunk-EHB55V23.js";import{basename as I}from"path";var H="objective",R=/(\\?)\{\{\s*([^{}]+?)\s*\}\}/g;function p(e){let t=[];if(!e)return t;for(let n of e.matchAll(R)){if(n[1])continue;let s=u(n[2]??"");s&&!t.includes(s)&&t.push(s)}return t}var T=/(\\?)\$\{\s*([^{}]+?)\s*\}/g;function k(e){let t=[];if(!e)return t;for(let n of e.matchAll(T)){if(n[1])continue;let s=(n[2]??"").split(/[.[]/)[0]?.trim()??"";s&&!t.includes(s)&&t.push(s)}return t}function K(e,t,n){return E(e.map(({text:s,usedBy:o})=>k(s).filter(i=>!t.has(i)).map(i=>({name:i,reason:"not_a_dataset_column",dataset:n,used_by:[o]}))))}var O=/\b(?:store|save|extract|remember|capture)\b/i,L=/\bas\s+(?:['"`]([A-Za-z_][A-Za-z0-9_]*)['"`]|([A-Za-z_][A-Za-z0-9_]*)(?=\s*(?:,|$)))/gi,j=new Set(["a","an","the"]),D=/\b(?:open|opens|go(?:es)? to|navigate(?:s)? to|visit(?:s)?|browse(?:s)? to|load(?:s)?|launch(?:es)?|start(?:s)? (?:at|on|from))\b/i,N=/[.;,:\n]|\b(?:and|then|but|or|with|as|using|via)\b/gi,P=/^\s*(?:page|tab|screen|section|menu|list|item|button)\b/i,z=new Set(["url","uri","link","site","website","page","homepage","host","domain"]),C=/[a-z0-9](?:Url|URL|Uri|URI|Link|Site|Website|Page|Homepage|Host|Domain)$/,F=/\bhttps?:\/\/\S|\bwww\.[a-z0-9-]+\.[a-z]/i,B=new Set(["emulator","simulator","android","ios"]),M=e=>z.has(e.split(/[_.]/).at(-1).toLowerCase())||C.test(e);function G(e){let t=0;for(let n of e.matchAll(N))t=n.index+n[0].length;return e.slice(t)}function S(e){let t=[];if(!e)return t;for(let n of e.matchAll(R)){if(n[1])continue;let s=n[2]??"",o=u(s),i=o??s.split(/[.[\]]/).map(l=>l.trim()).filter(Boolean).at(-1)??"";i&&(M(i)||!P.test(e.slice(n.index+n[0].length))&&D.test(G(e.slice(0,n.index))))&&t.push(o)}return t}function W(e){let t=[];for(let n of S(e))n!==null&&!t.includes(n)&&t.push(n);return t}function Z(e){return S(e).length>0||F.test(e)}function J(e){return!e.surfaceRequired||e.target!==void 0&&B.has(e.target)||e.firstStep===null?!1:!e.firstStep||!Z(e.firstStep)}function A(e){let t=[];if(!e)return t;for(let n of e.split(/[.;\n]/))if(O.test(n))for(let s of n.matchAll(L)){let o=s[1]??s[2];!o||j.has(o.toLowerCase())||t.includes(o)||t.push(o)}return t}function w(e,t,n){let s=t.get(e);return s?s.has_value?null:{name:e,reason:"value_missing",file:s.source,used_by:[n]}:{name:e,reason:"not_declared",used_by:[n]}}function Q(e,t,n,s=[]){let o=new Set([...s,...A(e)]),i=[];for(let l of p(e)){if(o.has(l))continue;let c=w(l,t,n);c&&i.push(c)}return i}function X(e,t,n={}){let s=e.rootGlobal.variables??{},o=new Set(n.produced??[]),i=n.authorFrom??0,l=[];for(let c of e.steps){let y=c.flatIndex-1>=i,f=A(c.objective);if(!y){for(let r of f)o.add(r);continue}let V={file:I(c.sourceFile),step:c.flatIndex},U=c.config.variables??{},d=new Map,m=r=>u(b(r))??b(r);for(let[r,a]of Object.entries(s))d.set(m(r),a.value);for(let[r,a]of Object.entries(U))d.set(m(r),a.value);let g=new Set,_=(r,a)=>{if(o.has(r)||f.includes(r))return;let h=d.get(r);if(h===void 0){g.add(r);return}if(a.has(r)){g.add(r);return}a.add(r);for(let x of p(h))_(x,a);a.delete(r)};for(let r of p(c.objective))_(r,new Set);let v=[];for(let r of g){let a=w(r,t,V);a&&v.push(a)}l.push(v);for(let r of f)o.add(r)}return E(l)}function Y(e){let t=new Set,n=e&&typeof e=="object"?e:null;for(let s of n?.prior_runs??[])for(let o of Object.keys(s.variables??{}))t.add(o);return[...t]}function E(e){let t=new Map;for(let n of e)for(let s of n){let o=t.get(s.name);o?o.used_by.push(...s.used_by):t.set(s.name,{...s,used_by:[...s.used_by]})}return[...t.values()].sort((n,s)=>n.name<s.name?-1:1)}export{H as a,p as b,K as c,W as d,J as e,A as f,Q as g,X as h,Y as i,E as j};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{M as r,vb as e}from"./chunk-Z777GGHB.js";function p(t,o){return{store:o,dir:t,graph:()=>e(t)}}function a(t){return{store:t,dir:null,graph:()=>r(t)}}export{p as a,a as b};
2
+ import{M as r,vb as e}from"./chunk-PI7OXS62.js";function p(t,o){return{store:o,dir:t,graph:()=>e(t)}}function a(t){return{store:t,dir:null,graph:()=>r(t)}}export{p as a,a as b};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as y}from"./chunk-GGV336P5.js";import{createServer as b}from"http";import{createReadStream as C,promises as S}from"fs";import{randomBytes as R}from"crypto";var u="127.0.0.1";function A(n,e){if(!n)return null;let o=/^bytes=(\d*)-(\d*)$/.exec(n.trim());if(!o)return null;let[,a,r]=o;if(a===""&&r==="")return null;if(a===""){let i=Number(r);return i===0||e===0?"unsatisfiable":{start:Math.max(0,e-i),end:e-1}}let t=Number(a);if(t>=e)return"unsatisfiable";let c=r===""?e-1:Math.min(Number(r),e-1);return c<t?null:{start:t,end:c}}async function I(n){let e=R(16).toString("hex"),o=b((r,t)=>{H(r,t,n,e).catch(()=>t.destroy())});await new Promise((r,t)=>{o.once("error",t),o.listen(n.port??0,u,()=>{o.removeListener("error",t),r()})});let a=o.address().port;return{port:a,urlFor:r=>`http://${u}:${a}/${e}/${encodeURIComponent(r)}`,close:()=>new Promise(r=>{o.close(()=>r()),o.closeAllConnections()})}}async function H(n,e,o,a){let r=n.url??"/",t=s=>{try{o.log?.("warn","EVIDENCE_SERVE_DENIED",{reason:s,path:r})}catch{}};if(n.headers.host!==`${u}:${n.socket.localPort}`){t("host_mismatch"),e.writeHead(403).end();return}let c=n.headers.origin;if(c!==void 0&&!o.allowedOrigins.includes(c)){t("origin_denied"),e.writeHead(403).end();return}let i=c?{"Access-Control-Allow-Origin":c,Vary:"Origin","Access-Control-Expose-Headers":"Content-Range, Content-Length"}:{};if(n.method==="OPTIONS"){let s={...i,"Access-Control-Allow-Methods":"GET, HEAD, OPTIONS","Access-Control-Allow-Headers":"range","Access-Control-Max-Age":"86400"};n.headers["access-control-request-private-network"]==="true"&&(s["Access-Control-Allow-Private-Network"]="true"),e.writeHead(204,s).end();return}if(n.method!=="GET"&&n.method!=="HEAD"){e.writeHead(405,i).end();return}let v;try{let s=new URL(n.url??"/",`http://${u}`).pathname.split("/");if(s.length!==3||s[1]!==a){t("bad_token"),e.writeHead(404,i).end();return}v=decodeURIComponent(s[2])}catch{t("not_found"),e.writeHead(404,i).end();return}let g=o.packs.get(v);if(!g){t("not_found"),e.writeHead(404,i).end();return}let d;try{let s=await S.stat(g);if(!s.isFile())throw new Error("not a file");d=s.size}catch{t("not_found"),e.writeHead(404,i).end();return}let h={...i,"Accept-Ranges":"bytes","Content-Type":"application/zip","Cache-Control":"no-store"};if(n.method==="HEAD"){e.writeHead(200,{...h,"Content-Length":String(d)}).end();return}let l=A(n.headers.range,d);if(l==="unsatisfiable"){t("unsatisfiable"),e.writeHead(416,{...i,"Content-Range":`bytes */${d}`}).end();return}let[m,p,w]=l===null?[0,d-1,200]:[l.start,l.end,206],E={...h,"Content-Length":String(p-m+1)};if(w===206&&(E["Content-Range"]=`bytes ${m}-${p}/${d}`),e.writeHead(w,E),d===0){e.end();return}let f=C(g,{start:m,end:p});f.on("error",()=>e.destroy()),e.on("close",()=>f.destroy()),f.pipe(e)}function O(n,e){return(e??y(n).evidenceViewerUrl).replace(/\/+$/,"")}function k(n,e){return`${e}/?pack=${encodeURIComponent(n)}`}function P(n){return`evidence: view locally with \`kane-cli evidence serve ${n}\``}export{A as a,I as b,O as c,k as d,P as e};
2
+ import{a as y}from"./chunk-ZCBOHWN3.js";import{createServer as b}from"http";import{createReadStream as C,promises as S}from"fs";import{randomBytes as R}from"crypto";var u="127.0.0.1";function A(n,e){if(!n)return null;let o=/^bytes=(\d*)-(\d*)$/.exec(n.trim());if(!o)return null;let[,a,r]=o;if(a===""&&r==="")return null;if(a===""){let i=Number(r);return i===0||e===0?"unsatisfiable":{start:Math.max(0,e-i),end:e-1}}let t=Number(a);if(t>=e)return"unsatisfiable";let c=r===""?e-1:Math.min(Number(r),e-1);return c<t?null:{start:t,end:c}}async function I(n){let e=R(16).toString("hex"),o=b((r,t)=>{H(r,t,n,e).catch(()=>t.destroy())});await new Promise((r,t)=>{o.once("error",t),o.listen(n.port??0,u,()=>{o.removeListener("error",t),r()})});let a=o.address().port;return{port:a,urlFor:r=>`http://${u}:${a}/${e}/${encodeURIComponent(r)}`,close:()=>new Promise(r=>{o.close(()=>r()),o.closeAllConnections()})}}async function H(n,e,o,a){let r=n.url??"/",t=s=>{try{o.log?.("warn","EVIDENCE_SERVE_DENIED",{reason:s,path:r})}catch{}};if(n.headers.host!==`${u}:${n.socket.localPort}`){t("host_mismatch"),e.writeHead(403).end();return}let c=n.headers.origin;if(c!==void 0&&!o.allowedOrigins.includes(c)){t("origin_denied"),e.writeHead(403).end();return}let i=c?{"Access-Control-Allow-Origin":c,Vary:"Origin","Access-Control-Expose-Headers":"Content-Range, Content-Length"}:{};if(n.method==="OPTIONS"){let s={...i,"Access-Control-Allow-Methods":"GET, HEAD, OPTIONS","Access-Control-Allow-Headers":"range","Access-Control-Max-Age":"86400"};n.headers["access-control-request-private-network"]==="true"&&(s["Access-Control-Allow-Private-Network"]="true"),e.writeHead(204,s).end();return}if(n.method!=="GET"&&n.method!=="HEAD"){e.writeHead(405,i).end();return}let v;try{let s=new URL(n.url??"/",`http://${u}`).pathname.split("/");if(s.length!==3||s[1]!==a){t("bad_token"),e.writeHead(404,i).end();return}v=decodeURIComponent(s[2])}catch{t("not_found"),e.writeHead(404,i).end();return}let g=o.packs.get(v);if(!g){t("not_found"),e.writeHead(404,i).end();return}let d;try{let s=await S.stat(g);if(!s.isFile())throw new Error("not a file");d=s.size}catch{t("not_found"),e.writeHead(404,i).end();return}let h={...i,"Accept-Ranges":"bytes","Content-Type":"application/zip","Cache-Control":"no-store"};if(n.method==="HEAD"){e.writeHead(200,{...h,"Content-Length":String(d)}).end();return}let l=A(n.headers.range,d);if(l==="unsatisfiable"){t("unsatisfiable"),e.writeHead(416,{...i,"Content-Range":`bytes */${d}`}).end();return}let[m,p,w]=l===null?[0,d-1,200]:[l.start,l.end,206],E={...h,"Content-Length":String(p-m+1)};if(w===206&&(E["Content-Range"]=`bytes ${m}-${p}/${d}`),e.writeHead(w,E),d===0){e.end();return}let f=C(g,{start:m,end:p});f.on("error",()=>e.destroy()),e.on("close",()=>f.destroy()),f.pipe(e)}function O(n,e){return(e??y(n).evidenceViewerUrl).replace(/\/+$/,"")}function k(n,e){return`${e}/?pack=${encodeURIComponent(n)}`}function P(n){return`evidence: view locally with \`kane-cli evidence serve ${n}\``}export{A as a,I as b,O as c,k as d,P as e};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{ta as u}from"./chunk-Z777GGHB.js";import{m as c}from"./chunk-4I7YN6YY.js";function a(e,r){let n=u(e.superseded,i=>e.nodeLabel.get(i)),t=r,o=new Set;for(;n.has(t)&&!o.has(t);)o.add(t),t=n.get(t);return t}function d(e,r){let n=e.resolve(r);if(n===null)return null;let t=e.designGenerationOf.get(a(e,n.cid));if(t===void 0)return null;let o=e.tipOf(n.cid),i=!e.superseded.has(o);return{gen:t.gen,live:i,minted_at_seq:t.seq}}function _(e,r,n){let t=e.resolve(r);if(t===null)return{error:{code:"UNKNOWN_REF",detail:`'${r}' names no use-case in this context`}};let o=a(e,t.cid),i=e.designGenerationOf.get(o);if(i===void 0)return{uc_root:o,next_gen:1,expected_prev_gen:null,...n.because?{because:n.because}:{}};let s=d(e,r);return s!==null&&s.live&&!n.force?{error:{code:"GENERATION_LIVE",detail:c().text("GENERATION_LIVE",{use_case:r,gen:i.gen})}}:s!==null&&s.live&&n.force&&!n.because?{error:{code:"MISSING_BECAUSE",detail:`superseding the live generation of ${r} requires --because <reason>`}}:{uc_root:o,next_gen:i.gen+1,expected_prev_gen:i.gen,...n.because?{because:n.because}:{}}}function f(e,r){let n=e.designGenerationOf.get(r.uc_root)?.gen??null;return n!==r.expected_prev_gen?{code:"GENERATION_MOVED",detail:`design generation of ${r.uc_root.slice(0,12)} moved (expected ${String(r.expected_prev_gen)}, found ${String(n)}) \u2014 another session finalized; re-open and re-ground`}:null}function p(e,r,n){return{uc_root:e.uc_root,uc_cid:r,generation:e.next_gen,supersedes_generation:e.expected_prev_gen,...e.because?{because:e.because}:{},by:n}}export{a,d as b,_ as c,f as d,p as e};
2
+ import{ta as u}from"./chunk-PI7OXS62.js";import{o as c}from"./chunk-HYJVYYAZ.js";function a(e,r){let n=u(e.superseded,i=>e.nodeLabel.get(i)),t=r,o=new Set;for(;n.has(t)&&!o.has(t);)o.add(t),t=n.get(t);return t}function d(e,r){let n=e.resolve(r);if(n===null)return null;let t=e.designGenerationOf.get(a(e,n.cid));if(t===void 0)return null;let o=e.tipOf(n.cid),i=!e.superseded.has(o);return{gen:t.gen,live:i,minted_at_seq:t.seq}}function _(e,r,n){let t=e.resolve(r);if(t===null)return{error:{code:"UNKNOWN_REF",detail:`'${r}' names no use-case in this context`}};let o=a(e,t.cid),i=e.designGenerationOf.get(o);if(i===void 0)return{uc_root:o,next_gen:1,expected_prev_gen:null,...n.because?{because:n.because}:{}};let s=d(e,r);return s!==null&&s.live&&!n.force?{error:{code:"GENERATION_LIVE",detail:c().text("GENERATION_LIVE",{use_case:r,gen:i.gen})}}:s!==null&&s.live&&n.force&&!n.because?{error:{code:"MISSING_BECAUSE",detail:`superseding the live generation of ${r} requires --because <reason>`}}:{uc_root:o,next_gen:i.gen+1,expected_prev_gen:i.gen,...n.because?{because:n.because}:{}}}function f(e,r){let n=e.designGenerationOf.get(r.uc_root)?.gen??null;return n!==r.expected_prev_gen?{code:"GENERATION_MOVED",detail:`design generation of ${r.uc_root.slice(0,12)} moved (expected ${String(r.expected_prev_gen)}, found ${String(n)}) \u2014 another session finalized; re-open and re-ground`}:null}function p(e,r,n){return{uc_root:e.uc_root,uc_cid:r,generation:e.next_gen,supersedes_generation:e.expected_prev_gen,...e.because?{because:e.because}:{},by:n}}export{a,d as b,_ as c,f as d,p as e};
@@ -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-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"
2
+ import{c as d,d as p,e as g}from"./chunk-PTLOOVV4.js";import{b as m}from"./chunk-J4FIESTB.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}}
@@ -8,7 +8,7 @@ shell: bash
8
8
  runtime:
9
9
  - language: python
10
10
  version: "3.11.9"
11
- {{timeouts}}{{deviceDirective}}env:
11
+ {{timeouts}}{{deviceDirective}}{{tunnelDirective}}env:
12
12
  KANE_CLI_MODE: hyperexecute
13
13
  TESTMUAI_ENV: {{env}}
14
14
  {{gridEnv}}pre:
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{g as A,h as _}from"./chunk-ULGBK4NS.js";import{b as N}from"./chunk-PQXYHI5W.js";import{d as b,i as h}from"./chunk-Z7S3IWUX.js";import{a as F,c as x,e as k}from"./chunk-2XW33VOK.js";import{a as $,b as T,c as D,d as I,f as v,h as g,i as V,l as m,q as P,t as y,u as w}from"./chunk-A7RJQJNT.js";function E(e,n){return e.kind==="app_id"?!0:n==="emulator"?e.kind==="apk":e.kind==="zip"}function S(e){let n=e.deviceName,i=e.osVersion;return n!==void 0&&n.trim()===""||i!==void 0&&i.trim()===""?{ok:!1,message:"--device-name and --os-version cannot be empty."}:{ok:!0,...n!==void 0?{name:n.trim()}:{},...i!==void 0?{osVersion:i.trim()}:{}}}function C(e){return`--device-name needs an OS version \u2014 a bare name matches every runtime that ships it.
2
+ import{g as A,h as _}from"./chunk-A2DODRHG.js";import{b as N}from"./chunk-LPJKNX6D.js";import{d as b,i as h}from"./chunk-Z7S3IWUX.js";import{a as F,c as x,e as k}from"./chunk-2XW33VOK.js";import{a as $,b as T,c as D,d as I,f as v,h as g,i as V,l as m,q as P,t as y,u as w}from"./chunk-A7RJQJNT.js";function E(e,n){return e.kind==="app_id"?!0:n==="emulator"?e.kind==="apk":e.kind==="zip"}function S(e){let n=e.deviceName,i=e.osVersion;return n!==void 0&&n.trim()===""||i!==void 0&&i.trim()===""?{ok:!1,message:"--device-name and --os-version cannot be empty."}:{ok:!0,...n!==void 0?{name:n.trim()}:{},...i!==void 0?{osVersion:i.trim()}:{}}}function C(e){return`--device-name needs an OS version \u2014 a bare name matches every runtime that ships it.
3
3
  Provide one: ${e}`}function R(e,n,i){let t=_(e);return t?E(t,n)?null:n==="emulator"?`${i} cannot run on an emulator (needs an .apk, or an APP\u2026 id).`:`${i} cannot run on a simulator (needs a .zip of the .app bundle, or an APP\u2026 id).`:`${e}: ${A}`}function M(e){return D(e)?e:null}function O(e){return`--target must be one of ${$.join(", ")} (got "${e}")`}function L(e){let n=[];for(let[i,t]of[["--device-name",e.deviceName],["--os-version",e.osVersion],["--app",e.app]])t!==void 0&&n.push(`ignored ${i} ${t}: session target is desktop \u2014 set --target ${T.join("|")} to run on a device`);return n}function W(e){let{flags:n,saved:i}=e,t=[],a;if(n.target!==void 0){let r=M(n.target);if(!r)return{kind:"invalid",message:O(n.target)};a=r}else{let r=F(i?.tui_target,i?.default_target?.kind);if(r.kind==="choose-mobile")return{kind:"choose-mobile-kind"};a=r.kind==="unset"?"desktop":r.kind}if(a==="desktop")return t.push(...L(n)),{kind:"web",warnings:t};if(v(a))return B(a,n,i,t);if(!e.host.supported)return{kind:"invalid",message:e.host.reason??"this machine cannot run mobile targets."};let s=[],o,d,c=S(n);if(!c.ok)return{kind:"invalid",message:c.message};let p=i?.default_target&&i.default_target.kind===a?b(i.default_target):void 0;if(c.name!==void 0||c.osVersion!==void 0){let r=c.name??p?.name,l=c.osVersion??p?.osVersion;if(l===void 0)return{kind:"invalid",message:C("--os-version <version>, or save one (kane-cli config set-os-version)")};d={...r!==void 0?{name:r}:{},osVersion:l},o={value:r?`${r} (${l})`:`any device on ${l}`,source:"flag"}}else if(i?.default_target&&i.default_target.kind===a&&(b(i.default_target)!==void 0||i.default_target.id!==void 0))o={value:h(i.default_target)??"(saved device)",source:"saved"};else{if(i?.default_target&&i.default_target.kind!==a&&(b(i.default_target)!==void 0||i.default_target.id!==void 0))return{kind:"invalid",message:`Your saved device '${h(i.default_target)}' is ${i.default_target.kind==="simulator"?"a simulator":"an emulator"}, but this run targets ${a==="simulator"?"a simulator":"an emulator"}. Pass --device-name and --os-version, or update your config (set-target, set-device-name, set-os-version).`};s.push("device")}let u;if(n.app!==void 0){let r=R(n.app,a,`--app ${n.app}`);if(r)return{kind:"invalid",message:r};u={value:n.app,source:"flag"}}else{let r=i?.default_app,l=r?_(r):null;l&&E(l,a)&&i?.default_target?.kind===a?u={value:r,source:"saved"}:s.push("app")}return{kind:"mobile",target:a,...d?{deviceSelector:d}:{},...o?{device:o}:{},...u?{app:u}:{},missing:s,warnings:t}}function K(e,n,i){let t=e.trim();return N(t)||y(n,t)?null:`${i} cannot run on ${m(n)} \u2014 use ${w(n)} file, or an ${V(g(n))} app ID from \`kane-cli apps list --target ${n}\`.`}function j(e,n,i){let t=S(e);if(!t.ok)return{ok:!1,message:t.message};let a=(u,r)=>{if(u!==void 0)return{value:u,source:"flag"};let l=r?.trim();return l?{value:l,source:n.source}:void 0},s=a(t.name,n.device_name),o=a(t.osVersion,n.os_version),d=a(e.app,n.app),c=d?.source==="flag"?`--app ${d.value}`:d?.source==="file"?`the file's app: ${d?.value}`:`your saved app ${d?.value}`,p=d?K(d.value,i,c):null;return{ok:!0,...s?{deviceName:s}:{},...o?{osVersion:o}:{},...d?{app:d}:{},...p?{appProblem:p}:{}}}function Z(e,n,i){return v(e)?K(n,e,i):R(n,e,i)}function G(e,n,i){let t=j(e,n.target===i?{source:"file",device_name:n.device_name,os_version:n.os_version,app:n.app}:{source:"file"},i);if(!t.ok)return t;if(!t.app)return{ok:!1,message:`no app for this real-device test \u2014 add \`app: <path-to-build | AppId>\` to the file, or pass --app. See your uploads: kane-cli apps list --target ${i}`};if(t.appProblem)return{ok:!1,message:t.appProblem};let{deviceName:a,osVersion:s,app:o}=t;return{ok:!0,selection:{...a?{deviceName:a}:{},...s?{osVersion:s}:{},app:o}}}function B(e,n,i,t){let a=x(i,e),s=j(n,{source:"saved",device_name:a.deviceName,os_version:a.osVersion,app:a.app},e);if(!s.ok)return{kind:"invalid",message:s.message};if(s.appProblem&&s.app?.source==="flag")return{kind:"invalid",message:s.appProblem};let o=s.appProblem?void 0:s.app;return{kind:"real-device",target:e,platform:g(e),...s.deviceName?{deviceName:s.deviceName}:{},...s.osVersion?{osVersion:s.osVersion}:{},...o?{app:o}:{},missing:o?[]:["app"],warnings:s.appProblem?[...t,s.appProblem]:t}}function z(e){let n=[];for(let[i,t]of[["--device-name",e.deviceName],["--os-version",e.osVersion],["--app",e.app]])t!==void 0&&n.push(`ignored ${i} ${t}: a real-device run takes its device and app from the run's device config`);return n}function H(e){return`this run was given a device config (KANE_CLI_DEVICE_CONFIG), so it runs on a real device, but the test file ${e?`has \`target: ${e}\``:"has no `target:` (a web test)"} \u2014 only a \`target: android\` or \`target: ios\` test runs on a real device.`}function ee(e){let{flags:n,file:i}=e,t=[],a=I(i.target)?i.target:void 0,s;if(n.target!==void 0){let r=M(n.target);if(!r)return{kind:"invalid",message:O(n.target)};s=r;let l=a;l&&l!==s&&t.push(`--target ${s} overrides the file's \`target: ${l}\` \u2014 steps recorded on ${m(l)} may not replay here`)}else s=a??"desktop";if(v(s)){if(e.deviceConfig)return t.push(...z(n)),{kind:"real-device",platform:g(s),warnings:t};let r=G(n,i,s);return r.ok?{kind:"real-device",platform:g(s),selection:r.selection,warnings:t}:{kind:"invalid",message:r.message}}if(s!=="desktop"&&e.grid)return{kind:"invalid",message:`KANE_CLI_GRID is set, which works only for real-device tests (\`target: android\` / \`target: ios\`), and this test targets ${m(s)}. Unset KANE_CLI_GRID and try again.`};if(e.deviceConfig)return{kind:"invalid",message:H(i.target)};if(s==="desktop")return t.push(...L(n)),{kind:"web",warnings:t};let o=S(n);if(!o.ok)return{kind:"invalid",message:o.message};let d=o.name??(i.device_name?.trim()||void 0),c=o.osVersion??(i.os_version?.trim()||void 0);if(d!==void 0&&c===void 0)return{kind:"invalid",message:C("--os-version <version>, or os_version: in the test file")};let p=c!==void 0?{...d!==void 0?{name:d}:{},osVersion:c}:void 0;if(s==="simulator"&&p&&p.name===void 0&&t.push(`the file names no device_name \u2014 any simulator on ${c} may be used. Add device_name: to the file (or pass --device-name) to pin the device.`),n.app!==void 0){let r=R(n.app,s,`--app ${n.app}`);if(r)return{kind:"invalid",message:r}}else if(i.app){let r=R(i.app,s,`the file's app: ${i.app}`);if(r)return{kind:"invalid",message:r}}let u=n.app??(i.app||void 0);return{kind:"mobile",target:s,platform:g(s)??"",...u?{app:u}:{},...p?{deviceSelector:p}:{},...i.no_reset!==void 0?{noReset:i.no_reset}:{},warnings:t}}function ne(e){return e.target==="desktop"?"Running on: Desktop \xB7 Chrome":`Running on: ${k(e.target)} \xB7 ${e.deviceLabel} \xB7 ${e.appLabel}`}function f(e){return`</path/to/app${P(e)[0]} | AppId>`}function ie(e){return{type:"error",code:"APP_NOT_SET",message:`no app is set for this ${k(e).toLowerCase()} run`,remedy:`name the app under test with --app ${f(e)}, or for every run with kane-cli config set-app ${f(e)}`,next:[{cmd:`kane-cli apps list --target ${e} --agent`,why:"lists the builds you've uploaded, to name one with --app"}]}}function te(e,n){let i=k(e).toLowerCase();return n==="device"?[`session target is "${i}" but no device is set.`,` See devices: kane-cli devices list --target ${e}`,' Set one: kane-cli config set-device-name "<name>" && kane-cli config set-os-version "<version>"',' Or per-run: --device-name "<name>" --os-version "<version>"'].join(`
4
4
  `):[`session target is "${i}" but no app is set.`,` Set one: kane-cli config set-app ${f(e)}`,` Or per-run: --app ${f(e)}`].join(`
5
5
  `)}function se(e){return[`saved device "${e}" was not found on this machine.`," See devices: kane-cli devices list",' Set one: kane-cli config set-device-name "<name>" && kane-cli config set-os-version "<version>"'].join(`
@@ -1,3 +1,3 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as p}from"./chunk-73Y6T2UK.js";import{Ha as l}from"./chunk-TLOYTGVT.js";import{c as u}from"./chunk-GGV336P5.js";import{existsSync as d,mkdirSync as m,readFileSync as j,rmSync as g,writeFileSync as y,statSync as I}from"fs";import{dirname as f,join as n}from"path";var o=n(".testmuai","assurance.json");function N(e,r=u()){let t={kind:"local",dir:p(e)},s=r.trim().replace(/\/+$/,"");if(!s)return t;let a=d(n(e,o));if(d(t.dir))return a?{kind:"refuse",code:"BOTH_STORES",refusal:l.bothStores(i(n(e,o))?.projectName??null)}:t;if(!a)return{kind:"pick",latticeUrl:s};let c=i(n(e,o));return c===null?{kind:"refuse",code:"PROJECT_FILE_UNREADABLE",refusal:l.linkUnreadable()}:{kind:"remote",latticeUrl:s,projectId:c.projectId,projectName:c.projectName}}function P(e){return i(n(e,o))?.lastUserId??null}function R(e,r){let t=i(n(e,o));t!==null&&t.lastUserId!==r&&S(e,{...t,lastUserId:r})}function i(e){try{let r=JSON.parse(j(e,"utf8"));return typeof r!="object"||r===null||Array.isArray(r)||typeof r.projectId!="string"||r.projectId===""||typeof r.projectName!="string"?null:{projectId:r.projectId,projectName:r.projectName,writtenBy:typeof r.writtenBy=="string"?r.writtenBy:"",...typeof r.lastUserId=="string"?{lastUserId:r.lastUserId}:{}}}catch{return null}}function O(e){try{return!I(n(e,f(o))).isDirectory()}catch{return!1}}function S(e,r){let t=n(e,o);m(f(t),{recursive:!0}),y(t,JSON.stringify(r,null,2)+`
2
+ import{a as p}from"./chunk-73Y6T2UK.js";import{Ha as l}from"./chunk-WE7HRAGO.js";import{c as u}from"./chunk-ZCBOHWN3.js";import{existsSync as d,mkdirSync as m,readFileSync as j,rmSync as g,writeFileSync as y,statSync as I}from"fs";import{dirname as f,join as n}from"path";var o=n(".testmuai","assurance.json");function N(e,r=u()){let t={kind:"local",dir:p(e)},s=r.trim().replace(/\/+$/,"");if(!s)return t;let a=d(n(e,o));if(d(t.dir))return a?{kind:"refuse",code:"BOTH_STORES",refusal:l.bothStores(i(n(e,o))?.projectName??null)}:t;if(!a)return{kind:"pick",latticeUrl:s};let c=i(n(e,o));return c===null?{kind:"refuse",code:"PROJECT_FILE_UNREADABLE",refusal:l.linkUnreadable()}:{kind:"remote",latticeUrl:s,projectId:c.projectId,projectName:c.projectName}}function P(e){return i(n(e,o))?.lastUserId??null}function R(e,r){let t=i(n(e,o));t!==null&&t.lastUserId!==r&&S(e,{...t,lastUserId:r})}function i(e){try{let r=JSON.parse(j(e,"utf8"));return typeof r!="object"||r===null||Array.isArray(r)||typeof r.projectId!="string"||r.projectId===""||typeof r.projectName!="string"?null:{projectId:r.projectId,projectName:r.projectName,writtenBy:typeof r.writtenBy=="string"?r.writtenBy:"",...typeof r.lastUserId=="string"?{lastUserId:r.lastUserId}:{}}}catch{return null}}function O(e){try{return!I(n(e,f(o))).isDirectory()}catch{return!1}}function S(e,r){let t=n(e,o);m(f(t),{recursive:!0}),y(t,JSON.stringify(r,null,2)+`
3
3
  `)}function A(e){g(n(e,o),{force:!0})}export{o as a,N as b,P as c,R as d,i as e,O as f,S as g,A as h};