@testmuai/kane-cli 0.9.0 → 0.10.0-rc.1

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 (634) hide show
  1. package/dist/ChatSurface-VPD5G67Q.js +2 -0
  2. package/dist/ChromeProfilePicker-CRKQEFYD.js +2 -0
  3. package/dist/CliFeedbackPrompt-M7BMWLKK.js +2 -0
  4. package/dist/CliUploadProgress-OP7DXMC2.js +2 -0
  5. package/dist/ConfigView-XI74BCCH.js +2 -0
  6. package/dist/EvidenceViewOffer-HAAK6DS5.js +2 -0
  7. package/dist/FolderPicker-W5S6RFCP.js +2 -0
  8. package/dist/InfoBox-OWUEHV2D.js +2 -0
  9. package/dist/LinksBox-PNSESNCU.js +2 -0
  10. package/dist/ProfilesView-PYDZZHKO.js +2 -0
  11. package/dist/ProjectPicker-BGFCUGT5.js +2 -0
  12. package/dist/SaveSessionPrompt-SUJE54GS.js +2 -0
  13. package/dist/ScrollbackTap-4SPXGFMU.js +2 -0
  14. package/dist/SingleShotApp-4TDXZEUA.js +2 -0
  15. package/dist/SummaryBox-FALOODAQ.js +2 -0
  16. package/dist/TestMdRunView-4GPRWHEU.js +2 -0
  17. package/dist/TestrunEvidenceTable-OBVQJ6IO.js +2 -0
  18. package/dist/WhoamiView-6WXGRANY.js +2 -0
  19. package/dist/{agent-parse-2MLJOJTH.js → agent-parse-CAS45UKA.js} +1 -1
  20. package/dist/app-client-U2YYF65L.js +2 -0
  21. package/dist/app-download-RXVZB6MM.js +2 -0
  22. package/dist/assurance-job-C3TXZGLL.js +7 -0
  23. package/dist/auth-7Z54TMQQ.js +2 -0
  24. package/dist/{binary-LVHXED3O.js → binary-DJCDMGPX.js} +1 -1
  25. package/dist/bind-XVO4CQYV.js +2 -0
  26. package/dist/bootstrap-TY5RANJ7.js +2 -0
  27. package/dist/bridge-T6QMYKED.js +2 -0
  28. package/dist/build-5ZN47FAT.js +2 -0
  29. package/dist/catalog-RRQF4TCA.js +2 -0
  30. package/dist/{changelog-N5AZHXOS.js → changelog-GBEVIUFJ.js} +1 -1
  31. package/dist/chat-committer-ZCSRJEUB.js +2 -0
  32. package/dist/chat-controller-XINCDH6Z.js +2 -0
  33. package/dist/child-G2GCW73X.js +2 -0
  34. package/dist/chunk-22PIMG52.js +2 -0
  35. package/dist/chunk-252FWF2G.js +19 -0
  36. package/dist/{chunk-UWXDURAB.js → chunk-2IZRPMZN.js} +1 -1
  37. package/dist/{chunk-X2A6CC6B.js → chunk-2NFS4KE4.js} +1 -1
  38. package/dist/{chunk-ZXY4P76I.js → chunk-2OOFURWD.js} +1 -1
  39. package/dist/chunk-2OSFI33O.js +97 -0
  40. package/dist/{chunk-CSNJPD2J.js → chunk-2S3W2JT3.js} +3 -3
  41. package/dist/chunk-2SWSVJUP.js +12 -0
  42. package/dist/chunk-2TVPA3LL.js +2 -0
  43. package/dist/{chunk-FMUV6UCX.js → chunk-2XW33VOK.js} +1 -1
  44. package/dist/chunk-33DWJV67.js +235 -0
  45. package/dist/chunk-34R7BNZ2.js +2 -0
  46. package/dist/chunk-35ECWCCK.js +2 -0
  47. package/dist/chunk-3BSYOCSW.js +3 -0
  48. package/dist/chunk-3G2LSTK5.js +2 -0
  49. package/dist/chunk-3GXN6VF6.js +2 -0
  50. package/dist/chunk-3JLEDSG5.js +4 -0
  51. package/dist/chunk-3QICDXY5.js +5 -0
  52. package/dist/chunk-3UVSAAES.js +10 -0
  53. package/dist/chunk-42PALMW2.js +4 -0
  54. package/dist/chunk-432ZOE42.js +21 -0
  55. package/dist/chunk-44B6THYK.js +2 -0
  56. package/dist/chunk-47WQBG5I.js +6 -0
  57. package/dist/{chunk-DOOI2JBD.js → chunk-4D5PC6QE.js} +1 -1
  58. package/dist/chunk-4I7YN6YY.js +3 -0
  59. package/dist/chunk-4IEQNX7F.js +2 -0
  60. package/dist/{chunk-KXEE6VCA.js → chunk-4LPX2OLV.js} +1 -1
  61. package/dist/chunk-4LTHDJ3D.js +2 -0
  62. package/dist/chunk-4QTH7VYE.js +2 -0
  63. package/dist/chunk-54XA5MZH.js +2 -0
  64. package/dist/chunk-57MDWTON.js +2 -0
  65. package/dist/{chunk-CNUCP6DK.js → chunk-5BUIIFLC.js} +1 -1
  66. package/dist/{chunk-AKE2CTV6.js → chunk-5D7ENQTQ.js} +1 -1
  67. package/dist/chunk-63EKRZKI.js +2 -0
  68. package/dist/{chunk-EHN5HTUD.js → chunk-65VANXOF.js} +51 -51
  69. package/dist/chunk-672CQECV.js +47 -0
  70. package/dist/chunk-6LIC2R22.js +3 -0
  71. package/dist/chunk-6NFOH4AC.js +4 -0
  72. package/dist/chunk-6NWT2TEJ.js +2 -0
  73. package/dist/chunk-6PIIUAZF.js +3 -0
  74. package/dist/{chunk-4CYBXJIA.js → chunk-6U7ID777.js} +1 -1
  75. package/dist/chunk-6UVIY56J.js +2 -0
  76. package/dist/chunk-72KYMWQ5.js +2 -0
  77. package/dist/chunk-72RC7JSA.js +21 -0
  78. package/dist/chunk-74W4AOT2.js +2 -0
  79. package/dist/chunk-77ZZQJLX.js +2 -0
  80. package/dist/chunk-7DFBOVUB.js +2 -0
  81. package/dist/chunk-7EXDYXXD.js +2 -0
  82. package/dist/chunk-7HO4NX5W.js +1 -0
  83. package/dist/chunk-7KX2BHKG.js +2 -0
  84. package/dist/chunk-7LKCWO2R.js +11 -0
  85. package/dist/{chunk-ULGZPRKU.js → chunk-7NCJMWFX.js} +1 -1
  86. package/dist/{chunk-EBLXHOE3.js → chunk-7RPKHKA3.js} +1 -1
  87. package/dist/chunk-7RWP4Y3H.js +2 -0
  88. package/dist/chunk-7V4BQSSV.js +2 -0
  89. package/dist/chunk-7XBNMOH4.js +6 -0
  90. package/dist/chunk-A6TJOZ24.js +2 -0
  91. package/dist/chunk-AA674WLL.js +2 -0
  92. package/dist/chunk-AIXJYMSP.js +9 -0
  93. package/dist/chunk-AJQZ3ST5.js +8 -0
  94. package/dist/chunk-AQ2OG2EF.js +2 -0
  95. package/dist/chunk-AUJSC7PU.js +4 -0
  96. package/dist/chunk-AVI5H4UM.js +13 -0
  97. package/dist/chunk-AZLNLHUA.js +4 -0
  98. package/dist/chunk-B2HXPGIZ.js +26 -0
  99. package/dist/{chunk-HGFWIBVF.js → chunk-B7ZX5HEN.js} +5 -5
  100. package/dist/{chunk-WRSIKZ2V.js → chunk-BJJUKB5K.js} +1 -1
  101. package/dist/{chunk-66MOZKD2.js → chunk-BSRSXYDZ.js} +1 -1
  102. package/dist/{chunk-4BZOG6PE.js → chunk-BVO4C5F2.js} +1 -1
  103. package/dist/chunk-BWXLZS5O.js +2 -0
  104. package/dist/chunk-BY65QAAN.js +4 -0
  105. package/dist/chunk-BZVNI44O.js +6 -0
  106. package/dist/chunk-C5Z7MQE6.js +2 -0
  107. package/dist/chunk-C6HI6Y3S.js +2 -0
  108. package/dist/chunk-CB4ARIHR.js +2 -0
  109. package/dist/{chunk-C25M2J5Q.js → chunk-CPBBYNL7.js} +1 -1
  110. package/dist/{chunk-75MMTNPB.js → chunk-D4FFXCX6.js} +2 -2
  111. package/dist/chunk-D756UWY2.js +6 -0
  112. package/dist/chunk-DBMW3VUN.js +4 -0
  113. package/dist/chunk-DD5TULWQ.js +34 -0
  114. package/dist/{chunk-Q5RDCSYM.js → chunk-DDJNYQBH.js} +1 -1
  115. package/dist/{chunk-6HU5M2DS.js → chunk-DHQ4SQWA.js} +1 -1
  116. package/dist/chunk-DNGOT65K.js +3 -0
  117. package/dist/chunk-DPGOAFKF.js +2 -0
  118. package/dist/chunk-DREQ3RAA.js +2 -0
  119. package/dist/chunk-DTUPEKEO.js +2 -0
  120. package/dist/chunk-E6KSRQXL.js +8 -0
  121. package/dist/chunk-EF47KRUK.js +2 -0
  122. package/dist/chunk-ENL4XTQ2.js +2 -0
  123. package/dist/chunk-EXFDIVNI.js +9 -0
  124. package/dist/chunk-EZN7CF45.js +4 -0
  125. package/dist/chunk-F3U6T4YD.js +22 -0
  126. package/dist/{chunk-DHJSM5DT.js → chunk-FCD3NYOM.js} +1 -1
  127. package/dist/chunk-FFL55I2M.js +2 -0
  128. package/dist/chunk-FIP5L6LV.js +9 -0
  129. package/dist/chunk-FOJHSG5M.js +6 -0
  130. package/dist/chunk-FSYOTRMC.js +2 -0
  131. package/dist/chunk-GFLB2SHW.js +2 -0
  132. package/dist/chunk-GMTHZUZ3.js +2 -0
  133. package/dist/chunk-GRURFGBP.js +2 -0
  134. package/dist/chunk-GZFLJORM.js +2 -0
  135. package/dist/{chunk-EOA6YPES.js → chunk-H3HHSTEK.js} +4 -4
  136. package/dist/chunk-HAW5WEKT.js +13 -0
  137. package/dist/chunk-HFJSP4KD.js +2 -0
  138. package/dist/chunk-HHW6MRU3.js +6 -0
  139. package/dist/chunk-HIUAUZNL.js +2 -0
  140. package/dist/chunk-HJLMH7ZM.js +2 -0
  141. package/dist/{chunk-5GUD3CIH.js → chunk-HQ2E2XCU.js} +1 -1
  142. package/dist/{chunk-K3IQEL7R.js → chunk-I2KOGINW.js} +1 -1
  143. package/dist/chunk-I2MC6VVX.js +2 -0
  144. package/dist/chunk-I5NSJBOZ.js +2 -0
  145. package/dist/chunk-I6OQISK4.js +2 -0
  146. package/dist/chunk-IBBD36FQ.js +2 -0
  147. package/dist/{chunk-GCISXCDU.js → chunk-IINZZ4BZ.js} +1 -1
  148. package/dist/{chunk-M3UAZTDK.js → chunk-IMDMRJQ6.js} +2 -2
  149. package/dist/chunk-IXW7FOGX.js +2 -0
  150. package/dist/chunk-IZ65ZPWY.js +3 -0
  151. package/dist/chunk-JD52IXON.js +9 -0
  152. package/dist/chunk-JGRXMTME.js +15 -0
  153. package/dist/{chunk-NBXYL2JT.js → chunk-JIRNI5TB.js} +7 -7
  154. package/dist/chunk-JNSWKGTB.js +2 -0
  155. package/dist/chunk-JPYW6U4D.js +2 -0
  156. package/dist/chunk-JQSLUGD4.js +3 -0
  157. package/dist/{chunk-GFBAK7WQ.js → chunk-K45BKGB5.js} +7 -7
  158. package/dist/chunk-KF4DKXSS.js +2 -0
  159. package/dist/chunk-KGNE5CIM.js +2 -0
  160. package/dist/chunk-KM3YCIDV.js +3 -0
  161. package/dist/chunk-KU3YHPWZ.js +2 -0
  162. package/dist/chunk-L4UVUFL6.js +3 -0
  163. package/dist/chunk-LCSJ7GOG.js +2 -0
  164. package/dist/chunk-LKQFG4RW.js +5 -0
  165. package/dist/chunk-LNNWCBPQ.js +2 -0
  166. package/dist/chunk-LRS5MGBY.js +3 -0
  167. package/dist/chunk-LRXBJTD4.js +4 -0
  168. package/dist/chunk-LSDJOVWW.js +6 -0
  169. package/dist/chunk-LWJRSUE2.js +2 -0
  170. package/dist/chunk-LX2I4JEH.js +2 -0
  171. package/dist/{chunk-RWSOZPJQ.js → chunk-M6MBMRFR.js} +1 -1
  172. package/dist/chunk-MGNRNLBE.js +2 -0
  173. package/dist/chunk-MII3JOO3.js +4 -0
  174. package/dist/chunk-MNBGG4H3.js +16 -0
  175. package/dist/chunk-MYVKUJGS.js +2 -0
  176. package/dist/chunk-MYZHOBS4.js +2 -0
  177. package/dist/chunk-MZOIHUVX.js +27 -0
  178. package/dist/{chunk-7GAHJZLH.js → chunk-N3TCNZSX.js} +1 -1
  179. package/dist/chunk-NC7D7GOM.js +21 -0
  180. package/dist/{chunk-HAYV4D2I.js → chunk-NDEI7R4K.js} +1 -1
  181. package/dist/{chunk-BL3SJDCG.js → chunk-NFRA64NU.js} +1 -1
  182. package/dist/chunk-NLZZLANH.js +4 -0
  183. package/dist/{chunk-DWMESHFI.js → chunk-NQTYWHPB.js} +1 -1
  184. package/dist/chunk-NWBLYMH7.js +3 -0
  185. package/dist/chunk-NWD54VV5.js +2 -0
  186. package/dist/chunk-NXRF7FFS.js +2 -0
  187. package/dist/chunk-O3HHTKZ5.js +6 -0
  188. package/dist/{chunk-F7NSSQYZ.js → chunk-OAKYUBD3.js} +1 -1
  189. package/dist/{chunk-7WXMV3O3.js → chunk-OEWYXCTA.js} +1 -1
  190. package/dist/{chunk-4FHK4LKQ.js → chunk-OF7WPCTQ.js} +1 -1
  191. package/dist/chunk-OFSDB7B4.js +3 -0
  192. package/dist/chunk-OJ33Q6DU.js +2 -0
  193. package/dist/chunk-OQ5G773E.js +2 -0
  194. package/dist/chunk-OVNRRI4E.js +2 -0
  195. package/dist/{chunk-C6S2RPZA.js → chunk-OZNBTSW5.js} +1 -1
  196. package/dist/chunk-P2ZQDQDB.js +2 -0
  197. package/dist/chunk-P7MSVLAH.js +6 -0
  198. package/dist/chunk-PUVMC4PX.js +26 -0
  199. package/dist/{chunk-SEEEGDVK.js → chunk-PZA3BSOE.js} +1 -1
  200. package/dist/chunk-Q3C6NDGI.js +2 -0
  201. package/dist/chunk-QCKA665H.js +2 -0
  202. package/dist/chunk-QDFY5GGO.js +5 -0
  203. package/dist/{chunk-YBAVDT3G.js → chunk-QHRUBG7J.js} +1 -1
  204. package/dist/chunk-QI5RZ7LL.js +2 -0
  205. package/dist/chunk-QNLVC5ZB.js +2 -0
  206. package/dist/{chunk-WDMUPK6I.js → chunk-QQ4TKLWP.js} +1 -1
  207. package/dist/chunk-QS5ZJFGF.js +4 -0
  208. package/dist/chunk-QTZBVDPR.js +12 -0
  209. package/dist/chunk-QXQ7KVEN.js +2 -0
  210. package/dist/chunk-R4JUKTDO.js +2 -0
  211. package/dist/chunk-R7KXAISS.js +12 -0
  212. package/dist/chunk-RDP7GWSY.js +2 -0
  213. package/dist/chunk-REKHAN53.js +5 -0
  214. package/dist/{chunk-KWEOLPBJ.js → chunk-RFEON5GN.js} +1 -1
  215. package/dist/{chunk-SOCHN2PY.js → chunk-RFIIM33J.js} +1 -1
  216. package/dist/chunk-RG372DON.js +6 -0
  217. package/dist/chunk-RPRXRKKR.js +2 -0
  218. package/dist/chunk-RTVWQK7I.js +2 -0
  219. package/dist/{chunk-2PKME4VT.js → chunk-RW3Z2HMB.js} +4 -4
  220. package/dist/chunk-RX47NRSM.js +2 -0
  221. package/dist/chunk-RX6776AI.js +5 -0
  222. package/dist/chunk-S53AQU7R.js +6 -0
  223. package/dist/{chunk-XT7XA4DN.js → chunk-SA6IKFFD.js} +1 -1
  224. package/dist/{chunk-Q5CINJYL.js → chunk-SLKYD44Y.js} +1 -1
  225. package/dist/chunk-SMTBOSEJ.js +2 -0
  226. package/dist/chunk-SMXABALN.js +2 -0
  227. package/dist/chunk-SONMD3W5.js +5 -0
  228. package/dist/chunk-SWMTXMKB.js +2 -0
  229. package/dist/{chunk-TM7VRLWS.js → chunk-SXRHKXSE.js} +1 -1
  230. package/dist/chunk-T3HEJASG.js +5 -0
  231. package/dist/chunk-T4AVLJCW.js +6 -0
  232. package/dist/{chunk-6VY62QC2.js → chunk-T6K2MEWP.js} +1 -1
  233. package/dist/{chunk-PCKIANML.js → chunk-T7H4LBFK.js} +1 -1
  234. package/dist/chunk-TNORODUF.js +2 -0
  235. package/dist/chunk-TW63WWEN.js +2 -0
  236. package/dist/chunk-UALJTPSA.js +18 -0
  237. package/dist/chunk-UAWWLLTI.js +2 -0
  238. package/dist/chunk-UEE3RZN4.js +14 -0
  239. package/dist/chunk-UTM7D4PI.js +2 -0
  240. package/dist/chunk-UUJIGOEO.js +2 -0
  241. package/dist/chunk-UYDHOHSZ.js +2 -0
  242. package/dist/chunk-V5JGXOV7.js +2 -0
  243. package/dist/chunk-V7S6S5W3.js +2 -0
  244. package/dist/{chunk-OHOJSADN.js → chunk-VG44B5JD.js} +1 -1
  245. package/dist/chunk-VJGWVBZR.js +1 -0
  246. package/dist/chunk-VLDCHFXF.js +2 -0
  247. package/dist/chunk-VO66KP2W.js +2 -0
  248. package/dist/{chunk-J3BGYSMD.js → chunk-VQLH63X7.js} +8 -8
  249. package/dist/chunk-VRIZDOO5.js +2 -0
  250. package/dist/chunk-VYHT2IET.js +1397 -0
  251. package/dist/chunk-VZJ6LUXX.js +2 -0
  252. package/dist/chunk-W3OVSDBN.js +29 -0
  253. package/dist/chunk-W7FLXW6Q.js +5 -0
  254. package/dist/{chunk-UA2QDAWT.js → chunk-WEM3MOAL.js} +1 -1
  255. package/dist/chunk-WI7K6VKQ.js +2 -0
  256. package/dist/chunk-WMGKUERB.js +6 -0
  257. package/dist/{chunk-DFS4RMVP.js → chunk-WN5VKKJ3.js} +1 -1
  258. package/dist/chunk-WOSANGV6.js +5 -0
  259. package/dist/chunk-WYSZ6TPW.js +15 -0
  260. package/dist/chunk-XB6BJPDL.js +2 -0
  261. package/dist/{chunk-YWYORBY3.js → chunk-XBEYWXPV.js} +1 -1
  262. package/dist/chunk-XIPKSXRQ.js +16 -0
  263. package/dist/chunk-XJ7HCXKW.js +2 -0
  264. package/dist/chunk-XMPTFXPW.js +5 -0
  265. package/dist/chunk-XZYA7DNH.js +2 -0
  266. package/dist/chunk-Y4T4SLDO.js +2 -0
  267. package/dist/{chunk-OIUV3ISA.js → chunk-Y6Y6RAY4.js} +1 -1
  268. package/dist/chunk-YDPTSDIJ.js +2 -0
  269. package/dist/chunk-YDSGXB25.js +2 -0
  270. package/dist/chunk-YIKF4ERQ.js +375 -0
  271. package/dist/chunk-Z55KBMYV.js +2 -0
  272. package/dist/chunk-ZCRZFAOT.js +2 -0
  273. package/dist/chunk-ZFM77AQU.js +2 -0
  274. package/dist/{chunk-Q6F23V7L.js → chunk-ZFMRQ57Y.js} +1 -1
  275. package/dist/chunk-ZHWU6L2G.js +5 -0
  276. package/dist/chunk-ZTHYAHDN.js +17 -0
  277. package/dist/chunk-ZZP5SHUV.js +3 -0
  278. package/dist/committer-JGY66PFM.js +2 -0
  279. package/dist/config-5ZOALGKE.js +2 -0
  280. package/dist/controller-client-PB3AZAGG.js +2 -0
  281. package/dist/cover-cmd-UA2SVIZZ.js +2 -0
  282. package/dist/{credentials-QD32Y7K7.js → credentials-MRG452Y6.js} +1 -1
  283. package/dist/{deps-bundle-OI7JJ22L.js → deps-bundle-FWINW4XM.js} +1 -1
  284. package/dist/{deps-resolve-ZOALDS6H.js → deps-resolve-IET4KIBO.js} +1 -1
  285. package/dist/descriptor-7T32VRMB.js +2 -0
  286. package/dist/design-chat-MM5PJD2N.js +2 -0
  287. package/dist/design-committer-TRYP3LOZ.js +2 -0
  288. package/dist/design-headless-FZONCKHW.js +2 -0
  289. package/dist/design-remote-SPVRIY2H.js +3 -0
  290. package/dist/device-env-LXJ65AVF.js +2 -0
  291. package/dist/dispatch-DVQ3H7EJ.js +2 -0
  292. package/dist/doctor-VAX2BWQF.js +2 -0
  293. package/dist/docx-convert-6IZO5P5K.js +2 -0
  294. package/dist/{dossier-7HVC6BNK.js → dossier-NROC2MCY.js} +1 -1
  295. package/dist/evidence-LVVK7ROT.js +2 -0
  296. package/dist/evidence-presentation-YYTIDCBS.js +2 -0
  297. package/dist/evolve-cmd-AGRKG7T3.js +2 -0
  298. package/dist/evolve-remote-BGHULJTL.js +2 -0
  299. package/dist/{exit-manager-ZLDO54S4.js → exit-manager-EDHCETUN.js} +1 -1
  300. package/dist/explain-DGJ5T6V5.js +2 -0
  301. package/dist/explain-cmd-VYAANFFZ.js +4 -0
  302. package/dist/explain-cmd-WOBGS6KX.js +12 -0
  303. package/dist/explore-LOKNOVNP.js +2 -0
  304. package/dist/explore-context-tty-JTZVZFOE.js +2 -0
  305. package/dist/explore-entry-5OGNLFAU.js +6 -0
  306. package/dist/explore-live-2XZHUYFS.js +5 -0
  307. package/dist/explore-run-tty-LGTIK2NA.js +5 -0
  308. package/dist/extract-bind-NM2BBK4I.js +14 -0
  309. package/dist/extract-chat-HLQMJJIC.js +2 -0
  310. package/dist/extract-cmd-T2TSAC3N.js +6 -0
  311. package/dist/extract-headless-OQTQ3FJK.js +2 -0
  312. package/dist/feeder-NY45UFJK.js +2 -0
  313. package/dist/folder-flags-WXUR6OPJ.js +2 -0
  314. package/dist/gaps-cmd-PTSKPTF7.js +3 -0
  315. package/dist/gate-P57VP4E5.js +2 -0
  316. package/dist/gate-WISOUTHQ.js +2 -0
  317. package/dist/{generate-headless-6WMJYNI6.js → generate-headless-JYZP6VXZ.js} +3 -3
  318. package/dist/headless-io-FFM5T6KL.js +2 -0
  319. package/dist/hold-passthrough-IOWPVB4W.js +2 -0
  320. package/dist/identity-HL5CJJXR.js +2 -0
  321. package/dist/index.js +178 -160
  322. package/dist/ingest-PDGS5ZTL.js +2 -0
  323. package/dist/ingest-cmd-LHCBMO4Z.js +8 -0
  324. package/dist/ingest-remote-D5TO5JQP.js +2 -0
  325. package/dist/ink-screen-RZ7QDIUI.js +2 -0
  326. package/dist/install-Z6K2D2VY.js +2 -0
  327. package/dist/interactive-bind-5EJQUGKI.js +26 -0
  328. package/dist/interactive-remote-D77ULJGL.js +65 -0
  329. package/dist/interrupt-guard-QETBPINI.js +2 -0
  330. package/dist/lane-AQYRIW24.js +2 -0
  331. package/dist/lattice-auth-74XGF77Y.js +2 -0
  332. package/dist/lifecycle-cmd-7SM6UCMH.js +2 -0
  333. package/dist/list-cmd-Z6FZXMFU.js +3 -0
  334. package/dist/list-commands-CZYZ7GIG.js +2 -0
  335. package/dist/list-remote-WOPOC6KK.js +15 -0
  336. package/dist/locks-cmd-JJ2QNTNY.js +2 -0
  337. package/dist/logical-ids-RXAQJZ3T.js +2 -0
  338. package/dist/login-flow-2FZEOVHM.js +2 -0
  339. package/dist/maintenance-cmd-VRTGZVRE.js +2 -0
  340. package/dist/mobile-prompts-KNAHU64X.js +2 -0
  341. package/dist/{next-KZXH4UA4.js → next-O6SUSX3R.js} +1 -1
  342. package/dist/{objective-variable-gate-CG2KK5UX.js → objective-variable-gate-3Z7DNVVC.js} +1 -1
  343. package/dist/onboarding-LGT6PMDZ.js +5 -0
  344. package/dist/open-provider-OZAG6WZS.js +2 -0
  345. package/dist/{paths-JCYX6UWL.js → paths-UMIX3RJF.js} +1 -1
  346. package/dist/pdf-convert-447ACUB3.js +2 -0
  347. package/dist/persist-recorded-session-BX7II5P7.js +3 -0
  348. package/dist/phase-seed-LCJ4WSYV.js +2 -0
  349. package/dist/pipeline-IXVTVRS5.js +2 -0
  350. package/dist/prepare-target-ULMKVKMC.js +2 -0
  351. package/dist/pull-cmd-6AL2WYHB.js +2 -0
  352. package/dist/pull-route-TTVARJMV.js +2 -0
  353. package/dist/readmodel-INMP6MNW.js +2 -0
  354. package/dist/real-device-run-2LFS5WE2.js +2 -0
  355. package/dist/reconcile-cmd-R6H37SQR.js +5 -0
  356. package/dist/reconcile-deps-TWJ3FTSU.js +2 -0
  357. package/dist/reconcile-remote-GWDV5CUT.js +13 -0
  358. package/dist/recording-banner-ACC67Q2U.js +2 -0
  359. package/dist/registry-6IJYQXQC.js +2 -0
  360. package/dist/remote-entry-YL7O2NJQ.js +2 -0
  361. package/dist/remote-mode-7G6PLJCW.js +4 -0
  362. package/dist/remote-words-45USLRVN.js +2 -0
  363. package/dist/require-project-folder-A3UDRELU.js +2 -0
  364. package/dist/resolve-run-intent-ZGPSUBXV.js +2 -0
  365. package/dist/resolver-IPM6R7U4.js +2 -0
  366. package/dist/revert-FHOBLZWF.js +2 -0
  367. package/dist/review-cmd-NNT5C5RZ.js +5 -0
  368. package/dist/run-5RQUCNYP.js +2 -0
  369. package/dist/run-PC5YO4AS.js +2 -0
  370. package/dist/run-channel-63SVP5OI.js +2 -0
  371. package/dist/run-remote-3AYYVPKX.js +2 -0
  372. package/dist/run-startup-gate-NKRMKYBB.js +2 -0
  373. package/dist/run-test-md-HE6DUWQR.js +17 -0
  374. package/dist/scrollback-GGNBDFQV.js +2 -0
  375. package/dist/session-target-DD53UXO7.js +2 -0
  376. package/dist/session-worker.js +12 -0
  377. package/dist/sessions-CFV7FOIT.js +2 -0
  378. package/dist/sessions-cmd-GYMETJHG.js +26 -0
  379. package/dist/sessions-remote-GI7GOBMH.js +3 -0
  380. package/dist/shell-arg-FN3MT5U7.js +2 -0
  381. package/dist/{skill-installer-32YYMM4N.js → skill-installer-3QAVQGDH.js} +1 -1
  382. package/dist/spawner-C7NLLM4F.js +2 -0
  383. package/dist/store-X6XPFSKF.js +2 -0
  384. package/dist/store-choice-RT73HAI7.js +2 -0
  385. package/dist/store-guard-SNWKLHQV.js +2 -0
  386. package/dist/store-id-YZ5WKJ25.js +2 -0
  387. package/dist/store-site-KA2DNBGY.js +2 -0
  388. package/dist/stream-warnings-GEQKKJU7.js +2 -0
  389. package/dist/structured-answers-EQ2AP3F7.js +2 -0
  390. package/dist/sync-cmd-NBPPDG3B.js +2 -0
  391. package/dist/sync-setup-5NUCH6N3.js +2 -0
  392. package/dist/{sync-setup-ui-RC727VK6.js → sync-setup-ui-XITPGSO4.js} +2 -2
  393. package/dist/tcg-generate-Z23CUISY.js +2 -0
  394. package/dist/test-definition-VRI4YIYL.js +2 -0
  395. package/dist/testmd-actions-GH5BW5V5.js +2 -0
  396. package/dist/testmd-sync-ACKCIOL3.js +2 -0
  397. package/dist/tms-client-NXAB6VJD.js +2 -0
  398. package/dist/token-refresh-4UCYAG6A.js +2 -0
  399. package/dist/trust-gate-AT2XBWN4.js +2 -0
  400. package/dist/turn-preflight-LHYLRL7G.js +2 -0
  401. package/dist/ui-SNV3FD2G.js +4 -0
  402. package/dist/use-case-ref-NE4X4MZN.js +2 -0
  403. package/dist/validate-basic-RE2WLIGQ.js +2 -0
  404. package/dist/{variable-receipt-YWNS24TH.js → variable-receipt-BXSZO36E.js} +1 -1
  405. package/dist/verdicts-XK3GAUX3.js +2 -0
  406. package/dist/version-check-4FJVZP3K.js +2 -0
  407. package/dist/{view-cmd-3WHG6MVB.js → view-cmd-N47BQZPD.js} +4 -3
  408. package/dist/walk-session-DA7QWXSW.js +2 -0
  409. package/dist/with-telemetry-7V4LY2BG.js +2 -0
  410. package/package.json +11 -11
  411. package/dist/ChatSurface-FJPK3XEJ.js +0 -8
  412. package/dist/ChromeProfilePicker-7DUDJTE2.js +0 -2
  413. package/dist/CliFeedbackPrompt-ZZPYC6OS.js +0 -2
  414. package/dist/CliUploadProgress-WQYKIBAR.js +0 -2
  415. package/dist/ConfigView-KXNOODDW.js +0 -2
  416. package/dist/EvidenceViewOffer-BTBVPBZX.js +0 -2
  417. package/dist/FolderPicker-H4YEX5LV.js +0 -2
  418. package/dist/InfoBox-DTM7X24Z.js +0 -2
  419. package/dist/LinksBox-KFG3FVOT.js +0 -2
  420. package/dist/ProfilesView-KBZHT4KL.js +0 -2
  421. package/dist/ProjectPicker-OARWULNN.js +0 -2
  422. package/dist/SaveSessionPrompt-37SMU5MC.js +0 -2
  423. package/dist/ScrollbackTap-QHJOFYMC.js +0 -2
  424. package/dist/SingleShotApp-UYCAW65Y.js +0 -2
  425. package/dist/SummaryBox-6RB5DSAH.js +0 -2
  426. package/dist/TestMdRunView-ZMOII3PL.js +0 -2
  427. package/dist/TestrunEvidenceTable-3UP2EYIV.js +0 -2
  428. package/dist/WhoamiView-MC62GERR.js +0 -2
  429. package/dist/app-client-PQFJAB63.js +0 -2
  430. package/dist/app-download-P6YXWSVQ.js +0 -2
  431. package/dist/auth-LXW4OFKF.js +0 -2
  432. package/dist/bind-ZYESQSCJ.js +0 -15
  433. package/dist/bootstrap-DI4UGMH3.js +0 -2
  434. package/dist/bridge-7J3JE3JS.js +0 -2
  435. package/dist/build-JIKYOZUH.js +0 -2
  436. package/dist/catalog-LLME3744.js +0 -2
  437. package/dist/chat-committer-6D7AQI6Z.js +0 -2
  438. package/dist/chat-controller-UJQ6Z4RE.js +0 -2
  439. package/dist/chunk-243ZJHT6.js +0 -4
  440. package/dist/chunk-2KVECC36.js +0 -2
  441. package/dist/chunk-2YEHV2CX.js +0 -2
  442. package/dist/chunk-3MCPTVJX.js +0 -2
  443. package/dist/chunk-3UI5VTQS.js +0 -4
  444. package/dist/chunk-3VAU3PNU.js +0 -2
  445. package/dist/chunk-3YIZG7WZ.js +0 -3
  446. package/dist/chunk-4Y2WH77W.js +0 -2
  447. package/dist/chunk-5EOX4MEY.js +0 -2
  448. package/dist/chunk-5HMN74RZ.js +0 -9
  449. package/dist/chunk-5LJRZI7S.js +0 -6
  450. package/dist/chunk-5RCS2LIQ.js +0 -26
  451. package/dist/chunk-5TQFOPJV.js +0 -2
  452. package/dist/chunk-5ZFOKYFB.js +0 -5
  453. package/dist/chunk-63DYVWNX.js +0 -2
  454. package/dist/chunk-6MD7SR7D.js +0 -9
  455. package/dist/chunk-7N6OCHPC.js +0 -7
  456. package/dist/chunk-A2SQD2AY.js +0 -4
  457. package/dist/chunk-AACQE24F.js +0 -2
  458. package/dist/chunk-AHFIRHSP.js +0 -18
  459. package/dist/chunk-AJT34ESA.js +0 -38
  460. package/dist/chunk-AUMJ4RVA.js +0 -21
  461. package/dist/chunk-AXTPNZPX.js +0 -2
  462. package/dist/chunk-BB2W35TW.js +0 -2
  463. package/dist/chunk-BKM2LWU2.js +0 -3
  464. package/dist/chunk-BUPRL2TE.js +0 -2
  465. package/dist/chunk-C44QQJR4.js +0 -239
  466. package/dist/chunk-CW3RHKLA.js +0 -5
  467. package/dist/chunk-D6E6KRVX.js +0 -2
  468. package/dist/chunk-DTRKTBCE.js +0 -17
  469. package/dist/chunk-DTRSYWZE.js +0 -2
  470. package/dist/chunk-EVFFDODK.js +0 -5
  471. package/dist/chunk-F2OBORCG.js +0 -2
  472. package/dist/chunk-FQNQVC5O.js +0 -5
  473. package/dist/chunk-FY7TCYPK.js +0 -6
  474. package/dist/chunk-GTVQYT3D.js +0 -35
  475. package/dist/chunk-HG5LLZBU.js +0 -2
  476. package/dist/chunk-I7TIGB7K.js +0 -2
  477. package/dist/chunk-IICT4VOU.js +0 -2
  478. package/dist/chunk-ILDHE4P4.js +0 -6
  479. package/dist/chunk-IPXKUYUK.js +0 -2
  480. package/dist/chunk-JQY5HRZ4.js +0 -15
  481. package/dist/chunk-JX6BFEDO.js +0 -4
  482. package/dist/chunk-K2UJYY2U.js +0 -2
  483. package/dist/chunk-KBM3XHAM.js +0 -2
  484. package/dist/chunk-KDNNMU7Q.js +0 -4
  485. package/dist/chunk-KJQNAOOE.js +0 -6
  486. package/dist/chunk-LH4IPANP.js +0 -2
  487. package/dist/chunk-LLG7NEGX.js +0 -6
  488. package/dist/chunk-LSDWPG6C.js +0 -2
  489. package/dist/chunk-MSGW4JDG.js +0 -2
  490. package/dist/chunk-NJ4BXZBX.js +0 -2
  491. package/dist/chunk-NLCCBXXV.js +0 -2
  492. package/dist/chunk-NMSZ7G6P.js +0 -2
  493. package/dist/chunk-OC6H6BYI.js +0 -6
  494. package/dist/chunk-OJAXOOZ5.js +0 -8
  495. package/dist/chunk-OMNLAGQC.js +0 -29
  496. package/dist/chunk-OOCCUUR2.js +0 -2
  497. package/dist/chunk-OXC6O5O7.js +0 -2
  498. package/dist/chunk-OZQDD2EX.js +0 -94
  499. package/dist/chunk-PEDINHVU.js +0 -2
  500. package/dist/chunk-PNUAP3RY.js +0 -8
  501. package/dist/chunk-Q2F5QB2W.js +0 -2
  502. package/dist/chunk-Q4YYAN6E.js +0 -2
  503. package/dist/chunk-Q6AHSGOE.js +0 -5
  504. package/dist/chunk-QAB3Y5FQ.js +0 -4
  505. package/dist/chunk-RDHWNSDP.js +0 -7
  506. package/dist/chunk-RKXHVP2Z.js +0 -2
  507. package/dist/chunk-RRY5IXOB.js +0 -2
  508. package/dist/chunk-RSSOJ3L2.js +0 -21
  509. package/dist/chunk-RTSBKCZY.js +0 -16
  510. package/dist/chunk-SID4X77D.js +0 -370
  511. package/dist/chunk-SRTKRHYI.js +0 -12
  512. package/dist/chunk-T2ONUKTL.js +0 -5
  513. package/dist/chunk-U6OTFMIT.js +0 -4
  514. package/dist/chunk-UD7KKHPW.js +0 -5
  515. package/dist/chunk-USOYXCZ4.js +0 -2
  516. package/dist/chunk-USY7VAO6.js +0 -2
  517. package/dist/chunk-V4B5QA3U.js +0 -4
  518. package/dist/chunk-VBS33P2C.js +0 -2
  519. package/dist/chunk-VHW7BMZQ.js +0 -2
  520. package/dist/chunk-VIO7CCFW.js +0 -5
  521. package/dist/chunk-VORWZLS3.js +0 -9
  522. package/dist/chunk-VVOKM2VO.js +0 -2
  523. package/dist/chunk-W5TTF7GB.js +0 -6
  524. package/dist/chunk-WESMQEPO.js +0 -2
  525. package/dist/chunk-WMI4P76K.js +0 -27
  526. package/dist/chunk-WNOC6MQC.js +0 -2
  527. package/dist/chunk-WVHMPIDQ.js +0 -2
  528. package/dist/chunk-XBX643ZD.js +0 -2
  529. package/dist/chunk-XKHWWKJZ.js +0 -3
  530. package/dist/chunk-XLSOQLVT.js +0 -2
  531. package/dist/chunk-Y3ZYN6AK.js +0 -4
  532. package/dist/chunk-YCCUBQY4.js +0 -2
  533. package/dist/chunk-YKTYVJBN.js +0 -3
  534. package/dist/chunk-YLQHY4A7.js +0 -2
  535. package/dist/chunk-Z7IGTVJW.js +0 -2
  536. package/dist/chunk-ZC2CKWLB.js +0 -2
  537. package/dist/chunk-ZER3FZSZ.js +0 -22
  538. package/dist/chunk-ZJYT72BA.js +0 -9
  539. package/dist/chunk-ZKSN2SJ7.js +0 -2
  540. package/dist/chunk-ZLWURCJ7.js +0 -2
  541. package/dist/committer-2QPBANRD.js +0 -2
  542. package/dist/config-YGTHSGQN.js +0 -2
  543. package/dist/controller-client-ZF5IXRUV.js +0 -2
  544. package/dist/cover-cmd-6RO366CC.js +0 -3
  545. package/dist/descriptor-3JJUOHBM.js +0 -2
  546. package/dist/design-committer-D44GSUXY.js +0 -2
  547. package/dist/device-env-DXDJJMTL.js +0 -2
  548. package/dist/dispatch-7EWWQRQ5.js +0 -2
  549. package/dist/doctor-TPYPEEUL.js +0 -2
  550. package/dist/docx-convert-SQRTF7XS.js +0 -2
  551. package/dist/evidence-NPFTBGDF.js +0 -2
  552. package/dist/evidence-presentation-XF23B7F2.js +0 -2
  553. package/dist/evolve-cmd-VGVXV6XW.js +0 -2
  554. package/dist/explain-NEFBUX5G.js +0 -2
  555. package/dist/explain-cmd-GOP5TE63.js +0 -9
  556. package/dist/explain-cmd-M7IX2YNB.js +0 -3
  557. package/dist/extract-bind-CKIRLXAJ.js +0 -14
  558. package/dist/extract-cmd-3EWLSPGS.js +0 -5
  559. package/dist/feeder-66TUPB2R.js +0 -2
  560. package/dist/gaps-cmd-WVC5GXQC.js +0 -3
  561. package/dist/gate-OYRDJMF6.js +0 -2
  562. package/dist/headless-io-75HUMWZB.js +0 -2
  563. package/dist/identity-ADZ4PAJF.js +0 -2
  564. package/dist/ingest-OSNNM3DH.js +0 -2
  565. package/dist/ingest-cmd-AECK5T4H.js +0 -2
  566. package/dist/install-ZV3KJZV4.js +0 -2
  567. package/dist/interactive-bind-IYS6KDOH.js +0 -26
  568. package/dist/interrupt-guard-UREUWNRL.js +0 -2
  569. package/dist/lifecycle-cmd-XCSBELFQ.js +0 -2
  570. package/dist/list-cmd-S4DSN2ET.js +0 -3
  571. package/dist/list-commands-GLNGHPDU.js +0 -2
  572. package/dist/locks-cmd-67OHQZNV.js +0 -2
  573. package/dist/logical-ids-GLVM2SVR.js +0 -2
  574. package/dist/login-flow-ASUUU7SO.js +0 -2
  575. package/dist/maintenance-cmd-K5KXRIFL.js +0 -2
  576. package/dist/mobile-prompts-ZUZTA3RV.js +0 -2
  577. package/dist/open-provider-YIBB77FE.js +0 -2
  578. package/dist/pdf-convert-RLXSXFWN.js +0 -2
  579. package/dist/persist-recorded-session-EWV56TSZ.js +0 -3
  580. package/dist/phase-seed-MKHEWUN6.js +0 -2
  581. package/dist/pipeline-LAWACB2O.js +0 -2
  582. package/dist/prepare-target-WGPCZKLE.js +0 -2
  583. package/dist/readmodel-FVLRQWZ7.js +0 -2
  584. package/dist/real-device-run-MDLFKFVQ.js +0 -2
  585. package/dist/reconcile-cmd-XFM2ZXUJ.js +0 -2
  586. package/dist/reconcile-deps-V5VLDPYT.js +0 -4
  587. package/dist/reconcile-engine-VZBTMPUK.js +0 -2
  588. package/dist/recording-banner-CJHRPHHF.js +0 -2
  589. package/dist/records-LMCVKPE5.js +0 -2
  590. package/dist/registry-3JXQFZEG.js +0 -2
  591. package/dist/require-project-folder-SE5GVCYJ.js +0 -2
  592. package/dist/resolve-run-intent-DD4MB6UD.js +0 -2
  593. package/dist/resolver-TLO4SRWV.js +0 -2
  594. package/dist/revert-NOUECRW4.js +0 -2
  595. package/dist/review-cmd-7EOYQMPE.js +0 -5
  596. package/dist/run-EHUNJPW6.js +0 -2
  597. package/dist/run-OTMPUQSH.js +0 -2
  598. package/dist/run-channel-RGH4WIQX.js +0 -2
  599. package/dist/run-test-md-KBDEHGXJ.js +0 -17
  600. package/dist/scrollback-JLPJR25X.js +0 -2
  601. package/dist/session-items-2ATN7VXG.js +0 -2
  602. package/dist/session-target-UMNASXI7.js +0 -2
  603. package/dist/sessions-NH7WQWMX.js +0 -2
  604. package/dist/sessions-cmd-M3SECFKQ.js +0 -25
  605. package/dist/spawner-DPT2RLAO.js +0 -2
  606. package/dist/store-guard-U32JE6JJ.js +0 -2
  607. package/dist/store-id-EOSGEKVK.js +0 -2
  608. package/dist/structured-answers-ZI2B6JJE.js +0 -2
  609. package/dist/sync-cmd-3EP7LZGL.js +0 -2
  610. package/dist/sync-setup-SWTBVQEV.js +0 -2
  611. package/dist/tcg-generate-KXU7E2GF.js +0 -2
  612. package/dist/testmd-actions-PEWCPQ5R.js +0 -2
  613. package/dist/testmd-sync-ZWFQWZ2X.js +0 -2
  614. package/dist/tms-client-KU6HCA23.js +0 -2
  615. package/dist/token-refresh-QD3OCGJJ.js +0 -2
  616. package/dist/trust-gate-EX7R2P4Y.js +0 -2
  617. package/dist/turn-preflight-JGYT7LXP.js +0 -2
  618. package/dist/ui-JEJGTURD.js +0 -4
  619. package/dist/validate-basic-AAIXSAWH.js +0 -2
  620. package/dist/verdicts-LAB5BGCC.js +0 -2
  621. package/dist/version-check-EHOLX3YH.js +0 -2
  622. package/dist/walk-session-XP4KYFKO.js +0 -2
  623. package/dist/with-telemetry-FJMJQDCM.js +0 -2
  624. /package/dist/{chunk-BKHXPBWN.js → chunk-2RUSXQ3O.js} +0 -0
  625. /package/dist/{chunk-6J5T5FEY.js → chunk-3AGP2BVN.js} +0 -0
  626. /package/dist/{chunk-CH273NAE.js → chunk-73Y6T2UK.js} +0 -0
  627. /package/dist/{chunk-ZMNJBUAO.js → chunk-73ZFOJOK.js} +0 -0
  628. /package/dist/{chunk-NOL7MNZH.js → chunk-A7RJQJNT.js} +0 -0
  629. /package/dist/{chunk-N2P4MI32.js → chunk-FWGUISUG.js} +0 -0
  630. /package/dist/{chunk-UJZZDPDY.js → chunk-HD6NR44L.js} +0 -0
  631. /package/dist/{chunk-LDPLJFCV.js → chunk-I6S6DZ2E.js} +0 -0
  632. /package/dist/{chunk-427OQS2N.js → chunk-LD5B3QFW.js} +0 -0
  633. /package/dist/{chunk-2UIHS2FH.js → chunk-PGESS7BW.js} +0 -0
  634. /package/dist/{chunk-BZAGVBCX.js → chunk-ZCIWQHCO.js} +0 -0
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b,c}from"./chunk-AJQZ3ST5.js";import"./chunk-OQ5G773E.js";import"./chunk-IXW7FOGX.js";import"./chunk-RX47NRSM.js";import"./chunk-RX6776AI.js";import"./chunk-H3HHSTEK.js";import"./chunk-3AGP2BVN.js";import"./chunk-A6TJOZ24.js";import"./chunk-5Y2G4NC7.js";import"./chunk-SMXABALN.js";import"./chunk-WN5VKKJ3.js";import"./chunk-HD6NR44L.js";import"./chunk-FFL55I2M.js";import"./chunk-BWXLZS5O.js";import"./chunk-63EKRZKI.js";import"./chunk-3JLEDSG5.js";import"./chunk-42PALMW2.js";import"./chunk-W3OVSDBN.js";import"./chunk-GFLB2SHW.js";import"./chunk-2TVPA3LL.js";import"./chunk-VJGWVBZR.js";import"./chunk-22PIMG52.js";import"./chunk-I2MC6VVX.js";import"./chunk-RPRXRKKR.js";import"./chunk-QXQ7KVEN.js";import"./chunk-57MDWTON.js";import"./chunk-NWBLYMH7.js";import"./chunk-QSCXXNC2.js";import"./chunk-UEE3RZN4.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-6NFOH4AC.js";import"./chunk-7V4BQSSV.js";import"./chunk-VO66KP2W.js";import"./chunk-HHW6MRU3.js";import"./chunk-7DFBOVUB.js";import"./chunk-4I7YN6YY.js";import"./chunk-6PIIUAZF.js";import"./chunk-NC7D7GOM.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-I5NSJBOZ.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{c as ChatSurface,b as reviewReadLine,a as tailVisualRows};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b,c}from"./chunk-T7H4LBFK.js";import"./chunk-OVNRRI4E.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{c as ChromeProfilePicker,b as formatChromeProfileLine,a as listChromeProfiles};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a as r}from"./chunk-4D5PC6QE.js";import"./chunk-OVNRRI4E.js";import"./chunk-HCBYKLMW.js";import{c as e}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import{a as i}from"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import{e as m}from"./chunk-UR6MHSHU.js";var t=m(i(),1);async function d(){return new Promise(o=>{let c=e(t.default.createElement(r,{onSubmit:n=>{c.unmount(),o(n)}}),{stdout:process.stderr,exitOnCtrlC:!1})})}export{d as renderFeedbackPrompt};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a as P,b as g,c as f}from"./chunk-QQ4TKLWP.js";import"./chunk-NQTYWHPB.js";import"./chunk-5Y2G4NC7.js";import{a as c}from"./chunk-HCBYKLMW.js";import{c as d}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import{a as h}from"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import{e as p}from"./chunk-UR6MHSHU.js";var e=p(h(),1);var m=p(c(),1);function w({pipeline:t,buildShareUrl:r,onDone:o}){let[n,i]=(0,e.useState)(P()),[S,l]=(0,e.useState)("uploading"),[U,R]=(0,e.useState)(),[C,E]=(0,e.useState)();return(0,e.useEffect)(()=>{let x=t.config.onProgress;t.config.onProgress=(s,u,a)=>{x(s,u,a),i(y=>g(y,s,u,a))},t.execute().then(s=>{s.success?(R(r?.(s)),l("success")):(E(s.error),l("failed")),setTimeout(()=>o(s),1500)})},[]),(0,m.jsx)(f,{steps:n,status:S,testUrl:U,error:C})}async function O(t,r){return new Promise(o=>{let n=d(e.default.createElement(w,{pipeline:t,buildShareUrl:r,onDone:i=>{n.unmount(),o(i)}}),{stdout:process.stderr,exitOnCtrlC:!1})})}export{O as renderUploadProgress};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a as h,b as l,c as i}from"./chunk-I5NSJBOZ.js";import{a as x}from"./chunk-HCBYKLMW.js";import{a as s,j as C}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import{a as S}from"./chunk-6YGTRKDT.js";import{y as n}from"./chunk-I6OQISK4.js";import{e as u}from"./chunk-UR6MHSHU.js";var B=u(S(),1);var e=u(x(),1);function T({model:D,authLabel:w,profile:$,env:y,defaultUrl:d,projectId:a,projectName:v,folderId:t,folderName:g,windowSize:P,chromeProfile:R,target:r,deviceName:m,osVersion:f,appLabel:b,deviceSettings:c=[]}){let V=a?v?`${v} (${a})`:a:"(none)",A=t?g?`${g} (${t})`:t:"(none)",{exit:p}=C();return(0,B.useEffect)(()=>{let o=setTimeout(()=>p(),50);return()=>clearTimeout(o)},[p]),(0,e.jsx)(s,{flexDirection:"column",children:(0,e.jsx)(h,{title:"Configuration",children:(0,e.jsxs)(s,{flexDirection:"column",paddingY:1,children:[(0,e.jsx)(i,{label:"Auth"}),(0,e.jsx)(l,{label:" method",value:w}),(0,e.jsx)(l,{label:" profile",value:$}),(0,e.jsx)(l,{label:" env",value:y}),(0,e.jsx)(i,{label:"Defaults"}),(0,e.jsx)(l,{label:" url",value:d??"(none)",valueColor:d?n.orange:n.dim}),(0,e.jsx)(l,{label:" model",value:D}),(0,e.jsx)(l,{label:" window",value:P}),(0,e.jsx)(l,{label:" project",value:V}),(0,e.jsx)(l,{label:" folder",value:A}),r!==void 0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{label:" target",value:r}),r!=="desktop"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{label:" device_name",value:m??"(not set)",valueColor:m?void 0:n.dim}),(0,e.jsx)(l,{label:" os_version",value:f??"(not set)",valueColor:f?void 0:n.dim}),(0,e.jsx)(l,{label:" app",value:b??"(not set)",valueColor:b?void 0:n.dim})]})]}),c.length>0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i,{label:"Device settings"}),c.map(o=>(0,e.jsx)(l,{label:` ${o.label}`,value:o.value},o.label))]}),(0,e.jsx)(i,{label:"Paths"}),(0,e.jsx)(l,{label:" chrome",value:R,valueColor:n.dim})]})})})}export{T as ConfigView};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a}from"./chunk-2IZRPMZN.js";import"./chunk-EXFDIVNI.js";import"./chunk-6U7ID777.js";import"./chunk-DREQ3RAA.js";import"./chunk-HQ2E2XCU.js";import"./chunk-SMTBOSEJ.js";import"./chunk-FIP5L6LV.js";import"./chunk-R7KXAISS.js";import"./chunk-WMGKUERB.js";import"./chunk-NLZZLANH.js";import"./chunk-WOSANGV6.js";import"./chunk-65VANXOF.js";import"./chunk-34R7BNZ2.js";import"./chunk-IINZZ4BZ.js";import"./chunk-NWD54VV5.js";import"./chunk-XMPTFXPW.js";import"./chunk-L4UVUFL6.js";import"./chunk-73Y6T2UK.js";import"./chunk-RFHMDQXZ.js";import"./chunk-VG44B5JD.js";import"./chunk-UAWWLLTI.js";import"./chunk-Y6Y6RAY4.js";import"./chunk-SA6IKFFD.js";import"./chunk-MMBBQ4OZ.js";import"./chunk-D4FFXCX6.js";import"./chunk-SXRHKXSE.js";import"./chunk-4JOD47QI.js";import"./chunk-VLDCHFXF.js";import"./chunk-EZN7CF45.js";import"./chunk-7XBNMOH4.js";import"./chunk-ZCIWQHCO.js";import"./chunk-XB6BJPDL.js";import"./chunk-ZFM77AQU.js";import"./chunk-SWMTXMKB.js";import"./chunk-XZYA7DNH.js";import"./chunk-W3OVSDBN.js";import"./chunk-GFLB2SHW.js";import"./chunk-2TVPA3LL.js";import"./chunk-VJGWVBZR.js";import"./chunk-22PIMG52.js";import"./chunk-I2MC6VVX.js";import"./chunk-RPRXRKKR.js";import"./chunk-QXQ7KVEN.js";import"./chunk-57MDWTON.js";import"./chunk-NWBLYMH7.js";import"./chunk-QSCXXNC2.js";import"./chunk-UEE3RZN4.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-6NFOH4AC.js";import"./chunk-PUVMC4PX.js";import"./chunk-B7ZX5HEN.js";import"./chunk-VZ7KXRXB.js";import"./chunk-7V4BQSSV.js";import"./chunk-VO66KP2W.js";import"./chunk-HHW6MRU3.js";import"./chunk-7DFBOVUB.js";import"./chunk-4I7YN6YY.js";import"./chunk-6PIIUAZF.js";import"./chunk-GMTHZUZ3.js";import"./chunk-NC7D7GOM.js";import"./chunk-ZCRZFAOT.js";import"./chunk-MGNRNLBE.js";import"./chunk-4QTH7VYE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-XBEYWXPV.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{a as EvidenceViewOffer};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b}from"./chunk-IBBD36FQ.js";import"./chunk-SMXABALN.js";import"./chunk-HFJSP4KD.js";import"./chunk-C6HI6Y3S.js";import"./chunk-OVNRRI4E.js";import"./chunk-3G2LSTK5.js";import"./chunk-MGNRNLBE.js";import"./chunk-4QTH7VYE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-XBEYWXPV.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{b as FolderPicker,a as formatFolderLine};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a}from"./chunk-5BUIIFLC.js";import"./chunk-I5NSJBOZ.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{a as InfoBox};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a}from"./chunk-V7S6S5W3.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{a as LinksBox};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b}from"./chunk-T6K2MEWP.js";import"./chunk-OVNRRI4E.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{b as ProfilesView,a as formatProfileLine};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b,c}from"./chunk-ENL4XTQ2.js";import"./chunk-SMXABALN.js";import"./chunk-HFJSP4KD.js";import"./chunk-C6HI6Y3S.js";import"./chunk-OVNRRI4E.js";import"./chunk-3G2LSTK5.js";import"./chunk-MGNRNLBE.js";import"./chunk-4QTH7VYE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-XBEYWXPV.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{c as ProjectPicker,b as RUN_GATE_PICKER,a as formatProjectLine};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b,c}from"./chunk-DDJNYQBH.js";import"./chunk-S3DAAAE5.js";import"./chunk-5BUIIFLC.js";import"./chunk-I5NSJBOZ.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{a as SaveSessionPrompt,b as defaultSessionTimestamp,c as renderSavePrompt};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a}from"./chunk-BSRSXYDZ.js";import"./chunk-WN5VKKJ3.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{a as ScrollbackTap};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b}from"./chunk-LWJRSUE2.js";import"./chunk-NDEI7R4K.js";import"./chunk-2NFS4KE4.js";import"./chunk-UALJTPSA.js";import"./chunk-72KYMWQ5.js";import"./chunk-JQ64X2TO.js";import"./chunk-TDPWFYTJ.js";import"./chunk-34R7BNZ2.js";import"./chunk-BVO4C5F2.js";import"./chunk-LRXBJTD4.js";import"./chunk-VE3SUJMA.js";import"./chunk-5D7ENQTQ.js";import"./chunk-UAWWLLTI.js";import"./chunk-Y6Y6RAY4.js";import"./chunk-SA6IKFFD.js";import"./chunk-ENL4XTQ2.js";import"./chunk-IBBD36FQ.js";import"./chunk-SMXABALN.js";import"./chunk-HFJSP4KD.js";import"./chunk-C6HI6Y3S.js";import"./chunk-TZXXJWHA.js";import"./chunk-SXRHKXSE.js";import"./chunk-OVNRRI4E.js";import"./chunk-Z7S3IWUX.js";import"./chunk-OZNBTSW5.js";import"./chunk-FCD3NYOM.js";import"./chunk-3G2LSTK5.js";import"./chunk-VZ7KXRXB.js";import"./chunk-NC7D7GOM.js";import"./chunk-ZCRZFAOT.js";import"./chunk-MGNRNLBE.js";import"./chunk-4QTH7VYE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-2XW33VOK.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-XBEYWXPV.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{b as SingleShotApp,a as phaseAfterAuth};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-6NWT2TEJ.js";import"./chunk-5BUIIFLC.js";import"./chunk-I5NSJBOZ.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{d as AutoExitSummaryBox,c as SummaryBox,b as buildSummaryEvent,a as buildSummaryRendered};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{g as a}from"./chunk-CPBBYNL7.js";import"./chunk-OEWYXCTA.js";import"./chunk-I2KOGINW.js";import"./chunk-TDPWFYTJ.js";import"./chunk-NQTYWHPB.js";import"./chunk-5Y2G4NC7.js";import"./chunk-IINZZ4BZ.js";import"./chunk-LRXBJTD4.js";import"./chunk-5D7ENQTQ.js";import"./chunk-2OOFURWD.js";import"./chunk-MMBBQ4OZ.js";import"./chunk-D4FFXCX6.js";import"./chunk-WN5VKKJ3.js";import"./chunk-Z7S3IWUX.js";import"./chunk-4JOD47QI.js";import"./chunk-GMTHZUZ3.js";import"./chunk-NC7D7GOM.js";import"./chunk-ZCRZFAOT.js";import"./chunk-MGNRNLBE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-2XW33VOK.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-XBEYWXPV.js";import"./chunk-5BUIIFLC.js";import"./chunk-I5NSJBOZ.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{a as TestMdRunView};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b}from"./chunk-WEM3MOAL.js";import"./chunk-6U7ID777.js";import"./chunk-RFHMDQXZ.js";import"./chunk-MGNRNLBE.js";import"./chunk-XBEYWXPV.js";import"./chunk-I5NSJBOZ.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{a as buildServeMap,b as renderTestrunEvidenceTable};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a as f,b as r}from"./chunk-I5NSJBOZ.js";import{a as s}from"./chunk-HCBYKLMW.js";import{a as i,b as l,j as x}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import{a as B}from"./chunk-6YGTRKDT.js";import{y as o}from"./chunk-I6OQISK4.js";import{e as a}from"./chunk-UR6MHSHU.js";var p=a(B(),1);var e=a(s(),1);function V({profile:b,env:g,authenticated:n,authMethod:v,username:c,tokenStatus:t,serverStatus:d,detail:u}){let{exit:m}=x();return(0,p.useEffect)(()=>{let h=setTimeout(()=>m(),50);return()=>clearTimeout(h)},[m]),(0,e.jsx)(i,{flexDirection:"column",children:(0,e.jsx)(f,{title:"Identity",variant:n?"success":"warning",children:(0,e.jsxs)(i,{flexDirection:"column",paddingY:1,children:[(0,e.jsx)(i,{children:d==="rejected"?(0,e.jsx)(l,{color:o.red,bold:!0,children:"\u2717 Not authenticated"}):d==="unreachable"?(0,e.jsx)(l,{color:o.orange,bold:!0,children:"\u26A0 Couldn't verify"}):n?(0,e.jsx)(l,{color:o.green,bold:!0,children:"\u2713 Authenticated"}):(0,e.jsx)(l,{color:o.orange,bold:!0,children:"\u26A0 Not logged in"})}),(0,e.jsxs)(i,{flexDirection:"column",marginTop:1,children:[(0,e.jsx)(r,{label:"Profile",value:b}),(0,e.jsx)(r,{label:"Environment",value:g}),(0,e.jsx)(r,{label:"Method",value:v}),c&&(0,e.jsx)(r,{label:"User",value:c}),t&&(0,e.jsx)(r,{label:"Token",value:t,valueColor:t==="valid"?o.green:t==="expired"?o.red:o.dim}),u&&(0,e.jsx)(r,{label:"Detail",value:u})]})]})})})}export{V as WhoamiView};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as u}from"./chunk-ZUZ6QJRA.js";import{d as m}from"./chunk-T2ONUKTL.js";import"./chunk-UR6MHSHU.js";function v(t){let e=d(t),[n,r]=e;return n==="context"?r==="sync"||r==="pull"||r==="push"||r==="clone"?"sync":r==="ingest"||r==="extract"?"extract":r==="name"||r==="retire"||r==="revert"||r==="review"?r:r??n:n==="maintain"&&(r==="reconcile"||r==="evolve")?r:n==="cover"?r==="gaps"?"gaps":"cover":n??"sync"}function d(t){let e=[];for(let n=0;n<t.length&&e.length<2;n++){let r=t[n];if(r==="--")break;if(r==="--mode"){n++;continue}r.startsWith("-")||e.push(r)}return e}function p(t){return t.startsWith("--")?t.split("=",1)[0]:t.slice(0,2)}function c(t){let e=t;return typeof e.long=="string"||typeof e.short=="string"?e.long??e.short??"option":typeof e.name=="function"?e.name():"argument"}var f={unknownOption:(t,[e])=>({code:"commander.unknownOption",name:p(String(e))}),missingArgument:(t,[e])=>({code:"commander.missingArgument",name:String(e)}),unknownCommand:t=>({code:"commander.unknownCommand",name:String(t.args[0]??"")}),optionMissingArgument:(t,[e])=>({code:"commander.optionMissingArgument",name:c(e)}),missingMandatoryOptionValue:(t,[e])=>({code:"commander.missingMandatoryOptionValue",name:c(e)}),_conflictingOption:(t,[e,n])=>({code:"commander.conflictingOption",name:c(e),other:c(n)}),_excessArguments:(t,[e])=>({code:"commander.excessArguments",name:t.parent?t.name():void 0,expected:t.registeredArguments.length,got:e.length}),_callParseArg:(t,[e])=>({code:"commander.invalidArgument",name:c(e)})};function w(t,e){let n=e&&e.code===t?e:null;switch(t){case"commander.unknownOption":return n?`unknown option ${n.name}`:"unknown option";case"commander.missingArgument":return n?`missing required argument ${n.name}`:"missing required argument";case"commander.unknownCommand":return n?`unknown command ${n.name}`:"unknown command";case"commander.optionMissingArgument":return n?`option ${n.name} needs a value`:"an option needs a value";case"commander.missingMandatoryOptionValue":return n?`required option ${n.name} not given`:"a required option was not given";case"commander.conflictingOption":return n?`option ${n.name} cannot be used with option ${n.other}`:"two options cannot be used together";case"commander.excessArguments":return n?`too many arguments${n.name?` for ${n.name}`:""}: expected ${n.expected}, got ${n.got}`:"too many arguments";case"commander.invalidArgument":return n?`invalid value for ${n.name}`:"an argument's value is invalid";case"kane.answerOnSubcommand":return"option --answer belongs to kane-cli context sync [name] and kane-cli context pull";default:return"the command line was not accepted"}}function g(t,e={current:null}){t.exitOverride(),t.configureOutput({writeErr:()=>{},writeOut:()=>{}});let n=t;for(let[o,i]of Object.entries(f)){let s=n[o];typeof s=="function"&&(n[o]=function(...a){try{return s.apply(this,a)}catch(l){throw e.current=i(this,a),l}})}let r=n.error;n.error=function(...o){let i=o[1]?.code;return i==="commander.unknownCommand"&&e.current?.code!==i&&(e.current={code:i,name:String(this.args[0]??"")}),r.apply(this,o)};for(let o of t.commands)g(o,e);return e}async function x(t,e,n,r={stdout:o=>process.stdout.write(o),stderr:o=>process.stderr.write(o)}){let o=g(t);try{return await t.parseAsync(e),null}catch(i){if(!(i instanceof u))throw i;let s=m("ndjson",n,r);if(i.exitCode===0)return s.done(0);let a=d(e.slice(2))[0];return s.event({type:"error",code:"USAGE",message:w(i.code,o.current),remedy:`run kane-cli${a?` ${a}`:""} --help`}),s.done(2,"refused")}}export{x as parseAsAgent,g as silenceCommandTree,v as streamVerbFor,w as usageMessage};
2
+ import{a as u}from"./chunk-ZUZ6QJRA.js";import{e as m}from"./chunk-XMPTFXPW.js";import"./chunk-UR6MHSHU.js";function v(t){let e=d(t),[n,r]=e;return n==="context"?r==="sync"||r==="pull"||r==="push"||r==="clone"?"sync":r==="ingest"||r==="extract"?"extract":r==="name"||r==="retire"||r==="revert"||r==="review"?r:r??n:n==="maintain"&&(r==="reconcile"||r==="evolve")?r:n==="cover"?r==="gaps"?"gaps":"cover":n??"sync"}function d(t){let e=[];for(let n=0;n<t.length&&e.length<2;n++){let r=t[n];if(r==="--")break;if(r==="--mode"){n++;continue}r.startsWith("-")||e.push(r)}return e}function p(t){return t.startsWith("--")?t.split("=",1)[0]:t.slice(0,2)}function c(t){let e=t;return typeof e.long=="string"||typeof e.short=="string"?e.long??e.short??"option":typeof e.name=="function"?e.name():"argument"}var f={unknownOption:(t,[e])=>({code:"commander.unknownOption",name:p(String(e))}),missingArgument:(t,[e])=>({code:"commander.missingArgument",name:String(e)}),unknownCommand:t=>({code:"commander.unknownCommand",name:String(t.args[0]??"")}),optionMissingArgument:(t,[e])=>({code:"commander.optionMissingArgument",name:c(e)}),missingMandatoryOptionValue:(t,[e])=>({code:"commander.missingMandatoryOptionValue",name:c(e)}),_conflictingOption:(t,[e,n])=>({code:"commander.conflictingOption",name:c(e),other:c(n)}),_excessArguments:(t,[e])=>({code:"commander.excessArguments",name:t.parent?t.name():void 0,expected:t.registeredArguments.length,got:e.length}),_callParseArg:(t,[e])=>({code:"commander.invalidArgument",name:c(e)})};function w(t,e){let n=e&&e.code===t?e:null;switch(t){case"commander.unknownOption":return n?`unknown option ${n.name}`:"unknown option";case"commander.missingArgument":return n?`missing required argument ${n.name}`:"missing required argument";case"commander.unknownCommand":return n?`unknown command ${n.name}`:"unknown command";case"commander.optionMissingArgument":return n?`option ${n.name} needs a value`:"an option needs a value";case"commander.missingMandatoryOptionValue":return n?`required option ${n.name} not given`:"a required option was not given";case"commander.conflictingOption":return n?`option ${n.name} cannot be used with option ${n.other}`:"two options cannot be used together";case"commander.excessArguments":return n?`too many arguments${n.name?` for ${n.name}`:""}: expected ${n.expected}, got ${n.got}`:"too many arguments";case"commander.invalidArgument":return n?`invalid value for ${n.name}`:"an argument's value is invalid";case"kane.answerOnSubcommand":return"option --answer belongs to kane-cli context sync [name] and kane-cli context pull";default:return"the command line was not accepted"}}function g(t,e={current:null}){t.exitOverride(),t.configureOutput({writeErr:()=>{},writeOut:()=>{}});let n=t;for(let[o,i]of Object.entries(f)){let s=n[o];typeof s=="function"&&(n[o]=function(...a){try{return s.apply(this,a)}catch(l){throw e.current=i(this,a),l}})}let r=n.error;n.error=function(...o){let i=o[1]?.code;return i==="commander.unknownCommand"&&e.current?.code!==i&&(e.current={code:i,name:String(this.args[0]??"")}),r.apply(this,o)};for(let o of t.commands)g(o,e);return e}async function x(t,e,n,r={stdout:o=>process.stdout.write(o),stderr:o=>process.stderr.write(o)}){let o=g(t);try{return await t.parseAsync(e),null}catch(i){if(!(i instanceof u))throw i;let s=m("ndjson",n,r);if(i.exitCode===0)return s.done(0);let a=d(e.slice(2))[0];return s.event({type:"error",code:"USAGE",message:w(i.code,o.current),remedy:`run kane-cli${a?` ${a}`:""} --help`}),s.done(2,"refused")}}export{x as parseAsAgent,g as silenceCommandTree,v as streamVerbFor,w as usageMessage};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d,e,f,g,h}from"./chunk-SXRHKXSE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";export{h as AppClient,g as AppUploadError,a as UPLOAD_CONTENT_TYPE,e as parseAppDetails,b as parseAppListPage,d as parseSignedDownload,c as parseUploadResponse,f as transportReason};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{b as a,c as b}from"./chunk-SA6IKFFD.js";import"./chunk-SXRHKXSE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{a as isAppId,b as resolveCloudApp};
@@ -0,0 +1,7 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a as q,b as Ne}from"./chunk-GZFLJORM.js";import{c as Ae,e as Ie,f as ve}from"./chunk-7LKCWO2R.js";import{d as $e}from"./chunk-QS5ZJFGF.js";import"./chunk-6LIC2R22.js";import{f as Ee,k as ye}from"./chunk-LRS5MGBY.js";import"./chunk-SONMD3W5.js";import"./chunk-QCKA665H.js";import"./chunk-XJ7HCXKW.js";import"./chunk-QTZBVDPR.js";import"./chunk-NLZZLANH.js";import"./chunk-NWD54VV5.js";import{e as ue}from"./chunk-XMPTFXPW.js";import{g as le}from"./chunk-L4UVUFL6.js";import"./chunk-73Y6T2UK.js";import"./chunk-P2ZQDQDB.js";import"./chunk-3BSYOCSW.js";import"./chunk-HIUAUZNL.js";import"./chunk-252FWF2G.js";import"./chunk-JQSLUGD4.js";import"./chunk-FFL55I2M.js";import"./chunk-42PALMW2.js";import"./chunk-KF4DKXSS.js";import"./chunk-AUJSC7PU.js";import{a as pe}from"./chunk-JNSWKGTB.js";import{a as H,b as j,d as ge,e as me,f as he,g as _e,i as we}from"./chunk-3UVSAAES.js";import"./chunk-3QICDXY5.js";import{h as fe}from"./chunk-UUJIGOEO.js";import"./chunk-ZTHYAHDN.js";import"./chunk-PGESS7BW.js";import"./chunk-FWGUISUG.js";import"./chunk-AZLNLHUA.js";import"./chunk-AQ2OG2EF.js";import"./chunk-DPGOAFKF.js";import"./chunk-4IEQNX7F.js";import"./chunk-MNBGG4H3.js";import"./chunk-VRIZDOO5.js";import"./chunk-ZHWU6L2G.js";import"./chunk-REKHAN53.js";import"./chunk-GRURFGBP.js";import"./chunk-MYZHOBS4.js";import"./chunk-ZFM77AQU.js";import{c as B}from"./chunk-SWMTXMKB.js";import"./chunk-XZYA7DNH.js";import{a as V,ba as de,c as G,e as ie,f as ae,fa as ce}from"./chunk-W3OVSDBN.js";import"./chunk-GFLB2SHW.js";import"./chunk-2TVPA3LL.js";import"./chunk-VJGWVBZR.js";import"./chunk-22PIMG52.js";import{a as I}from"./chunk-I2MC6VVX.js";import"./chunk-RPRXRKKR.js";import"./chunk-QXQ7KVEN.js";import"./chunk-57MDWTON.js";import"./chunk-NWBLYMH7.js";import"./chunk-QSCXXNC2.js";import"./chunk-UEE3RZN4.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-6NFOH4AC.js";import"./chunk-PUVMC4PX.js";import"./chunk-B7ZX5HEN.js";import"./chunk-VZ7KXRXB.js";import"./chunk-7V4BQSSV.js";import"./chunk-VO66KP2W.js";import"./chunk-HHW6MRU3.js";import"./chunk-7DFBOVUB.js";import"./chunk-4I7YN6YY.js";import"./chunk-6PIIUAZF.js";import"./chunk-NC7D7GOM.js";import"./chunk-ZCRZFAOT.js";import{a as ne,c as re}from"./chunk-MGNRNLBE.js";import{a as oe}from"./chunk-4QTH7VYE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-A7RJQJNT.js";import"./chunk-XBEYWXPV.js";import"./chunk-FOJHSG5M.js";import{a as x}from"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";import{mkdtempSync as We}from"fs";import{tmpdir as Xe}from"os";import{join as Ye}from"path";function W(e){if(e<1e3)return`${Math.max(0,Math.round(e))}ms`;let t=Math.round(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60);return n<60?`${n}m${String(t%60).padStart(2,"0")}s`:`${Math.floor(n/60)}h${String(n%60).padStart(2,"0")}m`}var be=e=>e===null?"none":`${e.run}@v${e.run_version}+${e.deltas}${e.cut!==void 0?` cut ${String(e.cut)}`:""}`;function Te(e,t){return[`assurance-job: job ${e.jobId} \xB7 attempt ${e.attempt} \xB7 trigger ${e.trigger} \xB7 kane-cli ${t} \xB7 ${e.env}`,`assurance-job: exploration ${e.explorationId} \xB7 run ${e.runId} \xB7 cut ${String(e.cut)} \xB7 project ${e.projectId}`,`assurance-job: cursor ${be(e.cursorFrom)} \u2192 ${be(e.cursorTo)}${e.cursorFromUnreadable?" (KANE_AJ_CURSOR_FROM unreadable: ignored)":""}`]}function Be(e){return e==null?null:typeof e=="string"?e.length>120?`${JSON.stringify(e.slice(0,117))}\u2026`:/[\s"]/.test(e)?JSON.stringify(e):e:typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?`[${e.length}]`:typeof e=="object"?"{\u2026}":null}var He=new Set(["type","v","ts","kind","verb"]);function O(e,t){if(typeof t=="string")return`${e} ${t.length>400?`${t.slice(0,397)}\u2026`:t}`;let n=typeof t.type=="string"?t.type:typeof t.kind=="string"?t.kind:"line",o=[];for(let[s,r]of Object.entries(t)){if(He.has(s))continue;let u=Be(r);if(u!==null&&(o.push(`${s}=${u}`),o.length===8))break}return`${e} ${n}${o.length?` ${o.join(" ")}`:""}`}function Re(e){if(e.length===0)return["assurance-job: summary: no session ran"];let t=e.map(r=>[r.verb,r.target,r.status,r.tests===null?"-":String(r.tests),r.ms===null?"-":`${Math.round(r.ms/100)/10}s`]),n=["verb","target","status","tests","seconds"],o=n.map((r,u)=>Math.max(r.length,...t.map(a=>a[u].length))),s=r=>`assurance-job: ${r.map((u,a)=>u.padEnd(o[a])).join(" ").trimEnd()}`;return["assurance-job: summary",s(n),...t.map(s)]}var je="assurance-job-outcome/1",Se=["run_end","checkpoint","manual","catch_up"],X=e=>typeof e=="number"&&Number.isInteger(e)&&e>=0,U=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;function J(e){let t;try{t=JSON.parse(e)}catch{return null}if(Array.isArray(t)){let[s,r,u,a,i,c]=t;t={export_version:s,run:r,run_version:u,deltas:a,...t.length>=6?{cut:i,provisional:c}:{}}}if(typeof t!="object"||t===null)return null;let n=t;if(typeof n.export_version!="string"||n.export_version===""||typeof n.run!="string"||n.run===""||!X(n.run_version)||!X(n.deltas))return null;let o={export_version:n.export_version,run:n.run,run_version:n.run_version,deltas:n.deltas};if(n.cut!==void 0||n.provisional!==void 0){if(n.cut!=="end"&&!X(n.cut)||typeof n.provisional!="boolean")return null;o.cut=n.cut,o.provisional=n.provisional}return o}var xe=new Set(["exploration-export/1","exploration-export/2"]);function v(e,t){return!xe.has(e.export_version)||!xe.has(t.export_version)?"unordered":e.run_version<t.run_version?"older":e.run_version>t.run_version?"at-or-past":e.deltas<t.deltas?"older":e.deltas>t.deltas?"at-or-past":!Oe(e)&&Oe(t)?"older":"at-or-past"}var Oe=e=>e.cut===void 0||e.cut==="end";function Je(e,t){let n=[],o={KANE_AJ_JOB_ID:e.KANE_AJ_JOB_ID,KANE_AJ_ATTEMPT:e.KANE_AJ_ATTEMPT,KANE_AJ_TRIGGER:e.KANE_AJ_TRIGGER,KANE_AJ_EXPLORATION_ID:e.KANE_AJ_EXPLORATION_ID,KANE_AJ_RUN_ID:e.KANE_AJ_RUN_ID,KANE_AJ_CUT:e.KANE_AJ_CUT,KANE_AJ_PROJECT_ID:e.KANE_AJ_PROJECT_ID,KANE_AJ_CURSOR_FROM:e.KANE_AJ_CURSOR_FROM,KANE_AJ_CURSOR_TO:e.KANE_AJ_CURSOR_TO,KANE_AJ_REPORT_URL:e.KANE_AJ_REPORT_URL,TESTMUAI_ENV:e.TESTMUAI_ENV,LT_USERNAME:e.LT_USERNAME,LT_ACCESS_KEY:e.LT_ACCESS_KEY},s=$=>{let S=o[$];return S===void 0||S.trim()===""?(n.push(`${$} is not set`),null):S.trim()},r={},u=s("KANE_AJ_JOB_ID");u!==null&&(U.test(u)?r.jobId=u:n.push("KANE_AJ_JOB_ID is not an id"));let a=s("KANE_AJ_ATTEMPT");a!==null&&(a==="1"||a==="2"?r.attempt=Number(a):n.push("KANE_AJ_ATTEMPT is not 1 or 2"));let i=s("KANE_AJ_TRIGGER");i!==null&&(Se.includes(i)?r.trigger=i:n.push(`KANE_AJ_TRIGGER is not one of ${Se.join(" | ")}`));let c=s("KANE_AJ_EXPLORATION_ID");c!==null&&(U.test(c)?r.explorationId=c:n.push("KANE_AJ_EXPLORATION_ID is not an id"));let f=s("KANE_AJ_RUN_ID");f!==null&&(U.test(f)?r.runId=f:n.push("KANE_AJ_RUN_ID is not an id"));let g=s("KANE_AJ_CUT");g!==null&&(g==="end"?r.cut="end":/^\d{1,9}$/.test(g)?r.cut=Number(g):n.push('KANE_AJ_CUT is not a whole number or "end"'));let h=s("KANE_AJ_PROJECT_ID");h!==null&&!U.test(h)&&n.push("KANE_AJ_PROJECT_ID is not an id");let d=o.KANE_AJ_CURSOR_FROM?.trim()??"",_=d===""?null:J(d),l=s("KANE_AJ_CURSOR_TO"),m=l===null?null:J(l);l!==null&&m===null&&n.push("KANE_AJ_CURSOR_TO is not a cursor"),m!==null&&r.runId!==void 0&&m.run!==r.runId&&n.push("KANE_AJ_CURSOR_TO names another run than KANE_AJ_RUN_ID");let p=s("TESTMUAI_ENV"),y=p==="prod"||p==="stage";p!==null&&!y&&n.push("TESTMUAI_ENV is not prod or stage");let w=s("KANE_AJ_REPORT_URL"),R=!1;if(w!==null){let $=null;try{$=new URL(w)}catch{$=null}let S=M=>M==="localhost"||M==="127.0.0.1"||M==="[::1]",P=null;if(y)try{P=t(p)}catch{P=null}$===null||!($.protocol==="https:"||$.protocol==="http:"&&S($.hostname))?n.push("KANE_AJ_REPORT_URL is not an https address"):y?P===null?n.push("TESTMUAI_BASE_URL is not a URL, so KANE_AJ_REPORT_URL can't be checked"):$.origin!==P?n.push("KANE_AJ_REPORT_URL is not on the controller's origin"):R=!0:n.push("KANE_AJ_REPORT_URL can't be checked without a valid TESTMUAI_ENV")}let N=s("LT_USERNAME"),A=s("LT_ACCESS_KEY");if(n.length>0){let $=r.jobId!==void 0&&R&&N!==null&&A!==null?{url:w,login:{username:N,accessKey:A}}:null;return{ok:!1,identity:r,message:n.join("; "),report:$}}return{ok:!0,input:{jobId:r.jobId,attempt:r.attempt,trigger:r.trigger,explorationId:r.explorationId,runId:r.runId,cut:r.cut,projectId:h,cursorFrom:_,cursorFromUnreadable:d!==""&&_===null,cursorTo:m,reportUrl:w,env:p,login:{username:N,accessKey:A}}}}function Y(e,t){return{v:je,job_id:e.jobId??null,attempt:e.attempt??null,trigger:e.trigger??null,exploration_id:e.explorationId??null,run_id:e.runId??null,cut:e.cut??null,cursor:{from:null,to:null},status:"failed",use_cases:{added:[],modified:[]},tests:{designed:0,saved:0,updated:0,failed:[],saved_cases:[]},held:[],sessions:[],credits:null,duration_s:0,kane_cli_version:t,error:null,errors:[]}}function z(e){if(e===null||e.accessKey==="")return n=>n;let t=[e.accessKey,Buffer.from(`${e.username}:${e.accessKey}`,"utf8").toString("base64")].filter(n=>n.length>=4);return n=>t.reduce((o,s)=>o.split(s).join("[redacted]"),n)}var Q=(e,t)=>t(JSON.stringify(e));async function Z(e,t,n,o={}){let s=o.fetch??fetch,r=o.backoffMs??[1e3,2e3,4e3],u=o.sleep??(i=>new Promise(c=>setTimeout(c,i))),a=`Basic ${Buffer.from(`${n.username}:${n.accessKey}`,"utf8").toString("base64")}`;for(let i=0;i<=r.length;i++){i>0&&await u(r[i-1]);try{let c=await s(e,{method:"POST",headers:{authorization:a,"content-type":"application/json"},body:t,signal:AbortSignal.timeout(3e4)});if(c.ok)return!0;if(c.status!==429&&c.status<500)return!1}catch{}}return!1}var b=class extends Error{constructor(n,o,s){super(s);this.status=n;this.code=o}},E=(e,t)=>{throw new b("failed",e,t)};async function Ce(e,t,n,o){let s;try{s=await e.sources(t)}catch(i){if(i instanceof I&&(i.code==="NO_CONTEXT"||i.code==="NOT_FOUND"))return{source:null,cursor:null};throw i}let r=s.find(i=>i.sourceId===n&&i.head!==null)??null,u=r?.media?.format==="plugin"&&r.media.plugin?.id==="explore"?r.media.plugin.fetch:void 0,a=u?.ref===o&&typeof u.cursor=="string"?J(u.cursor):null;return{source:r,cursor:a}}async function ze(e,t,n){return n.head===null||n.completeness?.sourceCid===n.head?!1:!(await e.mainNode(t,n.head)).edgesOut.some(s=>s.type==="DERIVES"&&s.other?.label==="usecase")}async function De(e,t){let n=j("explore",t?{fetchImpl:t}:{});if(n===void 0)return E("INTERNAL","this build has no connection for the explore plugin");let o=`${H().replace(/\/+$/,"")}/exploration/${encodeURIComponent(e.explorationId)}/assurance/head?cut=${e.cut}&run=${encodeURIComponent(e.runId)}`,s;try{s=await n.request({url:o,headers:{accept:"application/json"}})}catch(a){return E("INGEST_FAILED",`the controller could not be read for exploration ${e.explorationId}: ${a instanceof Error?a.message:String(a)}`)}finally{n.close()}let r={};try{r=JSON.parse(new TextDecoder().decode(s.body))}catch{r={}}if((s.status===401||s.status===403)&&E("AUTH_FAILED",`the controller refused the job's credentials (${s.status})`),s.status===409&&r.code==="RUN_ACTIVE"&&E("RUN_ACTIVE",`a run of exploration ${e.explorationId} is in progress${typeof r.active_run=="string"?` (run ${r.active_run})`:""}: its export is read once it ends`),s.status===404&&r.code==="NO_ENDED_RUN"&&E("NO_ENDED_RUN",`exploration ${e.explorationId} has no ended run yet`),s.status===409&&r.code==="CUT_SUPERSEDED")throw new b("noop",null,"");s.status===404&&r.code==="CUT_NOT_FOUND"&&E("CUT_NOT_FOUND",`cut ${e.cut} of run ${e.runId} of exploration ${e.explorationId} was never taken`),s.status!==200&&E("INGEST_FAILED",`the controller answered ${s.status} for the head of exploration ${e.explorationId}`);let u=J(JSON.stringify(r.cursor??null));return u===null?E("INGEST_FAILED",`the controller's head of exploration ${e.explorationId} carries no cursor`):u}async function Qe(e,t){let n=j("explore",t?{fetchImpl:t}:{});if(n===void 0)return!1;try{let o={exploration:e.explorationId,run:e.runId,cut:e.cut},s=await n.request({url:he(H(),o,"export"),headers:{accept:"application/json"}});return s.status!==200?!1:me(_e(s,o)).units.length===0}catch{return!1}finally{n.close()}}function L(e){return e==="MARK_REFUSED"||e==="PERMISSION_REQUIRED"?"MARK_REFUSED":e==="PROJECT_NOT_MARKED"||e==="ASSURANCE_OFF"?"PROJECT_NOT_MARKED":null}function Pe(e){return/\(CUT_NOT_FOUND\)/.test(e)?"CUT_NOT_FOUND":/is in progress/.test(e)?"RUN_ACTIVE":/no ended run/.test(e)?"NO_ENDED_RUN":/refused (kane-cli's credentials|the credential)/.test(e)?"AUTH_FAILED":"INGEST_FAILED"}async function D(e,t){let n=e.deps.now??Date.now,o=n(),s=`[${t.verb} ${t.log.target}]`,r=t.verb==="extract"||t.verb==="reconcile"?`source ${t.log.target}`:`use case ${t.log.target}`;e.diag(`[${t.log.step}] ${t.verb} starting (${r})${t.resume!==void 0?`: resuming session ${t.resume}`:""}`);let u=[],a=m=>{for(let p of m.split(`
3
+ `)){if(p.trim()==="")continue;let y;try{y=JSON.parse(p)}catch{e.diag(O(s,e.redact(p)));continue}u.push(y);let w;try{w=JSON.parse(e.redact(p))}catch{w=e.redact(p)}e.diag(O(s,w))}},i=m=>{for(let p of m.split(`
4
+ `))p.trim()!==""&&e.diag(O(`${s} stderr:`,e.redact(p)))},c=ue("ndjson",t.verb,{stdout:a,stderr:i}),f=null,g=await ye({verb:t.verb,mode:"agent",choice:e.choice,basicAuth:e.basicAuth,start:t.resume!==void 0?{kind:"resume",sessionId:t.resume}:{kind:"new",body:{projectId:e.input.projectId,verb:t.verb,mode:"agent",...t.body}},run:t.run,io:c,check:e.deps.check??Ee,onProgress:()=>{},onOpened:m=>{f=m.sessionId,e.diag(`[${t.log.step}] ${t.verb} started: session ${m.sessionId} (${r})`)},...t.step?{ingest:[t.step.step]}:{},signals:!1,onRefusal:m=>{u.push({type:"error",code:m.code??null,message:m.message}),e.diag(O(s,{type:"refused",code:m.code??null,message:e.redact(m.message)}))},...e.deps.run?{testing:e.deps.run}:{}}),h=t.step?t.step.ended():null;f??=h?.sid??null,f!==null&&!e.outcome.sessions.includes(f)&&e.outcome.sessions.push(f);let d=null;for(let m of u){let p=m.credits_consumed??m.credits;typeof p=="number"&&Number.isFinite(p)&&(d=(d??0)+p)}d!==null&&(e.credits=(e.credits??0)+d);let _=n()-o;e.diag(`[${t.log.step}] ${t.verb} ended exit ${g} \xB7 ${W(_)}${d!==null?` \xB7 ${d} credits`:""}${f!==null?` \xB7 session ${f}`:" \xB7 no session opened"}`);let l={verb:t.verb,target:t.log.target,status:g===0?"ran":g===3?"paused":`exit ${g}`,tests:null,ms:_};return e.summary.push(l),{code:g,sid:f,lines:u,end:h,row:l}}function Ke(e,t,n,o,s,r){s.tests=r.tests,r.ok?s.status=s.status==="ran"?"saved":`saved (${s.status})`:s.status="save failed",e.diag(r.ok?`[${t}] ${n} saved: session ${o} \xB7 ${r.tests} test(s)`:`[${t}] ${n} NOT saved: session ${o} \xB7 ${r.message}`)}async function Me(e,t){let n=0,o="",s=null,r=new Proxy(e.person,{get(a,i,c){let f=Reflect.get(a,i,c);return i!=="land"||typeof f!="function"?f:async(...g)=>(s=await f.apply(a,g),s)}}),u=await $e({person:r,projectId:e.input.projectId,projectName:e.choice.projectName,sid:t,mode:"agent",yes:!0,confirm:async()=>!0,onProgress:a=>{let i=a;i.kind==="save"&&i.phase==="check"&&(n=i.counts?.tests??0)},emit:a=>{let i=a;i.type==="error"&&typeof i.message=="string"&&(o=i.message)},print:()=>{}});return u===0&&s!==null&&await et(e,t,s,n),u===0?{ok:!0,tests:n,message:o}:{ok:!1,tests:n,message:o||`the save of session ${t} ended with exit ${u}`}}async function F(e,t,n){let o=new Array(e.length),s=0,r=async()=>{for(;s<e.length;){let u=s++;o[u]=await n(e[u])}};return await Promise.all(Array.from({length:Math.min(t,e.length)},r)),o}function Ze(e,t){for(let n of t){let o=new Map;for(let s of ie(n)){let r=e.get(s.old);r!==void 0&&e.delete(s.old),s.new!==null&&o.set(s.new,r?.change??"updated")}for(let s of G(n)){if(s.label!=="test")continue;let r=typeof s.content.definitionId=="string"?s.content.definitionId:null;e.set(s.cid,{change:o.get(s.cid)??"added",definitionId:r})}}}async function et(e,t,n,o){let s=Array.from({length:Math.max(0,n.position-n.basePosition)},(u,a)=>n.basePosition+1+a),r;try{r=await F(s,8,u=>e.person.mainRecord(e.input.projectId,u))}catch(u){e.savedUnlisted+=o,e.diag(`assurance-job: session ${t}'s landed records couldn't be read (${u instanceof Error?u.message:String(u)}): its ${o} test(s) counted, not listed`);return}Ze(e.savedTests,r.map(u=>u.record))}async function tt(e,t,n){let{person:o}=e,s=Date.now(),r=(await o.project(t))?.mainPosition??0,u=[];for(let a=1;a<=r;a+=1){let{record:i}=await o.mainRecord(t,a);for(let c of G(i))c.label==="source"&&c.content.source_id===n&&!u.includes(c.cid)&&u.push(c.cid)}return e.diag(`assurance-job: scope walk read ${r} main position(s) in ${Date.now()-s}ms, ${u.length} version(s) of ${n}`),u}async function se(e,t,n){let o=new Set;for(let s of await tt(e,t,n)){let r=await e.person.mainNode(t,s);for(let u of r.edgesOut)u.type==="DERIVES"&&u.other?.label==="usecase"&&u.other.name&&o.add(u.other.name)}return o}async function st(e,t,n){return(await e.stale(t)).some(o=>o.label==="usecase"&&o.name!==null&&n.has(o.name))}function te(e,t){let n=null;for(let o of t){if(o.type==="extract_use_cases"&&Array.isArray(o.use_cases))for(let s of o.use_cases)typeof s.id=="string"&&!e.outcome.use_cases.added.includes(s.id)&&e.outcome.use_cases.added.push(s.id);if(o.type==="reconcile_use_cases"&&Array.isArray(o.use_cases))for(let s of o.use_cases)s.state==="new"&&typeof s.id=="string"&&!e.outcome.use_cases.added.includes(s.id)&&e.outcome.use_cases.added.push(s.id);if(o.type==="reconcile_held"&&Array.isArray(o.held))for(let s of o.held)typeof s.ref=="string"&&!e.outcome.held.some(r=>r.ref===s.ref)&&e.outcome.held.push({ref:s.ref,why:typeof s.why=="string"?s.why:""});o.type==="error"&&n===null&&(n={code:typeof o.code=="string"?o.code:"",message:typeof o.message=="string"?o.message:""})}return{error:n}}var nt=e=>`resume it with \`kane-cli design tests --resume ${e} --mode override\``,rt={connection_lost:{why:"it lost its connection to the project",resumable:!0},not_accepted:{why:"the project didn't accept a save",resumable:!0},computer_slept:{why:"its hold on the session lapsed",resumable:!0},resumed_elsewhere:{why:"the session was resumed elsewhere",resumable:!1}};function ot(e){let t=e.filter(a=>a.type==="session_paused");if(t.length===0)return null;let n=Math.max(...t.map(a=>Array.isArray(a.pending_questions)?a.pending_questions.length:0)),o=t.map(a=>typeof a.reason=="string"?rt[a.reason]:void 0).find(a=>a!==void 0);if(o!==void 0)return{questions:n,...o};let s=t.some(a=>a.crashed===!0),r=t.map(a=>a.cause?.message).find(a=>typeof a=="string"),u=s?"its agent stopped mid-turn":r!==void 0?`the model service did not answer: ${String(r)}`:"its checkpoint wasn't acknowledged in time";return{questions:n,why:u,resumable:!0}}var T=(e,t,n)=>{e.failure??={code:t,message:n},e.errors.push({code:t,message:n})},Ve=(e,t)=>e==="design"?nt(t):e==="evolve"?"resume or discard it from the project's sessions (`kane-cli context sessions`)":`resume it with \`kane-cli context extract --resume ${t} --mode override\``;function it(e,t,n,o,s){let r=e==="extract"||e==="reconcile"?"the next job reviews the source again":e==="design"?"the next job designs it again":"the next job evolves it again";switch(s){case"paused":case"running":return`${n}; session ${o} is left ${s==="paused"?"paused":"open"}: ${Ve(e,o)}`;case"discarded":return`whose run discarded session ${o}, which held nothing: ${r}`;case"saved":return`${n}; session ${o} was saved already, with nothing of this run in it`;case"failed":return`${n}; session ${o} ended failed: ${r}`;case"ready_to_save":return`${n}; session ${o} is left unsaved, ready to save with nothing in it: ${r}`;default:return`${n}; session ${o}'s state couldn't be read after it, so it is left as it is`}}var at=e=>e.scope?.position??e.basePosition;async function Ge(e,t,n){let o=t.resumeVerb??t.verb,s=n;for(let r=!1;;r=!0){let u=s.code===3&&s.sid!==null?ot(s.lines):null;if(u===null)return{go:s};let a=s.sid,i=await e.person.getSession(a).catch(()=>null),c=i===null?null:V(i),f=`[${t.step}] ${t.verb} ${t.target} paused (${u.why}; ${u.questions} question(s) pending)`;if(c==="ready_to_save"||c==="saved")return e.diag(`${f}: decision save, its session finished`),s.row.status=r?"paused, resumed, finished":"paused, finished",{go:{...s,code:0}};if(c==="failed"||c==="discarded"||c===null){e.diag(`${f}: decision fail, its session ${c===null?"unread":c}`),s.row.status="failed (paused)";let h=c==="failed"?"ended failed":c==="discarded"?"was discarded":"couldn't be read";return{failed:`${t.target}: its ${t.verb} paused (${u.why}) and its session ${a} ${h}`}}if(!r&&u.questions===0&&u.resumable){e.diag(`${f}: decision resume once`),e.diag(`assurance-job: ${t.target}: its ${t.verb} paused with no question pending (${u.why}); resumed once`),s.row.status="paused, resumed";let h=await t.resume(a);if(s={...h,sid:h.sid??a,end:h.end??s.end},s.code!==0){if(s.code===3)continue;return{go:s}}let d=await e.person.getSession(a).catch(()=>null),_=d===null?!1:ce(await de(e.person,t.projectId,a).catch(()=>({})),at(d)>d.basePosition),l=t.verb==="design"||t.verb==="evolve"||s.lines.some(y=>y.type==="session_complete"||y.type==="done");if(_&&l)return{go:s};let m=l?"which left nothing to save":"which never reached its end",p=d===null?"unread":V(d);return e.diag(`[${t.step}] ${t.verb} ${t.target} resumed once through ${o}, ${m}: decision fail, nothing saved`),s.row.status="failed (resumed, nothing to save)",{failed:`${t.target}: its ${t.verb} paused (${u.why}); resumed once through ${o}, ${it(t.verb,o,m,a,p)}`}}let g=r?u.questions>0?"paused again, with a question pending":`paused twice with no question pending (${u.why})`:u.questions>0?"paused with a question pending":`paused and was not resumed here (${u.why})`;return e.diag(`${f}: decision fail, session left paused`),s.row.status=r?"failed (paused twice)":"failed (paused)",{failed:`${t.target}: its ${t.verb} ${g}; session ${a} is left paused: ${Ve(t.verb,a)}`}}}async function Ue(e,t,n){let{input:o,person:s}=e,r=`explore://${o.explorationId}?run=${o.runId}&cut=${o.cut}`,u=fe().route(r,pe);if(u===null||u.plugin.manifest.id!=="explore")return E("INTERNAL","this build routes explore:// to no explore plugin");let a=await Ae(r,u,void 0);if("refusal"in a)return E("INGEST_FAILED",a.refusal.message);let i=a.item,c=t.source===null,f=Ie({person:s,choice:e.choice,item:i,first:c,then:c?"extract":"review",supported:"",retryMs:e.deps.run?.retryDeadlineMs??12e4,remoteDeps:ve(e.deps.run?.remoteDeps)}),g=c?"extract":"reconcile",h=c?null:await ke(s,o.projectId),d=await D(e,{verb:g,body:{sourceId:i.sourceId},run:{source:i.sourceId,override:!0},step:f,log:{step:5,target:n}}),_=te(e,d.lines),l=p=>p!==void 0&&/\(CUT_SUPERSEDED\)/.test(p);if(l(d.end?.refused?.refusal.message)||l(_.error?.message))throw d.row.status="superseded",e.diag(`[5] the cut was superseded by a later one: nothing to do here${d.sid!==null?`; session ${d.sid} discarded`:""}`),d.sid!==null&&(await s.discard(d.sid).catch(()=>{}),e.outcome.sessions=e.outcome.sessions.filter(p=>p!==d.sid)),new b("noop",null,"");if(d.end?.refused&&E(L(d.end.refused.refusal.code)??Pe(d.end.refused.refusal.message),d.end.refused.refusal.message),!c&&d.end?.added==="unchanged"&&d.end.behind===0&&!d.end.unread)return d.row.status="nothing to read",e.diag(`assurance-job: the review of ${n} found nothing to read (unchanged, no use case behind, its head read)${d.sid!==null?`; session ${d.sid} discarded`:""}`),d.sid!==null&&(await s.discard(d.sid).catch(()=>{}),e.outcome.sessions=e.outcome.sessions.filter(p=>p!==d.sid)),"unchanged";if(d.sid===null&&E(_.error?L(_.error.code)??Pe(_.error.message):"INGEST_FAILED",_.error?.message??`the ${g} opened no session (exit ${d.code})`),d.code===3){let p=await Ge(e,{verb:g,target:n,step:5,projectId:o.projectId,resumeVerb:"extract",resume:y=>D(e,{verb:"extract",body:{},run:{source:i.sourceId,override:!0},resume:y,log:{step:5,target:n}})},d);"failed"in p?E("INGEST_FAILED",p.failed):p.go!==d&&(d=p.go,_=te(e,d.lines))}d.code===3&&e.diag(`[5] ${g} ended exit 3 with no pause said: decision fail, nothing saved; session ${d.sid} left as it is`),d.code===3&&E("INGEST_FAILED",`the ${g} session ${d.sid} paused before it ended`);for(let p of d.lines)p.type!=="error"||p.code!=="DESIGN_CHILD_FAILED"||typeof p.use_case!="string"||(e.outcome.tests.failed.includes(p.use_case)||e.outcome.tests.failed.push(p.use_case),T(e,"DESIGN_FAILED",`${p.use_case}: ${typeof p.message=="string"?p.message:"its redesign failed"}`));d.code!==0&&T(e,"INGEST_FAILED",_.error?.message??`the ${g} session ${d.sid} ended with exit ${d.code}`);let m=await Me(e,d.sid);if(Ke(e,5,g,d.sid,d.row,m),!m.ok&&d.code!==0&&E("INGEST_FAILED",`the ${g} session ${d.sid} ended with exit ${d.code} before it finished: ${_.error?.message??m.message}`),m.ok||E("SAVE_FAILED",`the ${g} session ${d.sid} was not saved: ${m.message}`),e.outcome.tests.designed+=m.tests,h!==null){let p=await se(e,o.projectId,n);for(let[y,w]of await ke(s,o.projectId))p.has(y)&&h.has(y)&&h.get(y)!==w&&!e.outcome.use_cases.modified.includes(y)&&e.outcome.use_cases.modified.push(y)}return d.end?.added??null}async function ke(e,t){let n=new Map,o=[];try{o=await e.nodes(t,"usecase")}catch(s){if(s instanceof I&&(s.code==="NO_CONTEXT"||s.code==="NOT_FOUND"))return n;throw s}for(let s of o)s.name!==null&&s.trust!=="archived"&&n.set(s.name,s.cid);return n}var C=e=>`run ${e.run} (run_version ${e.run_version}, deltas ${e.deltas}${e.cut!==void 0?`, cut ${String(e.cut)}`:""})`;function ut(e,t){return v(e,t)==="unordered"?"unordered":v(e,t)==="at-or-past"&&v(t,e)==="at-or-past"}function Le(e,t,n=new Set,o=new Set){let s=r=>t.has(r.id)&&r.upToDate==="tests_out_of_date"||r.upToDate==="yes"&&n.has(r.id);return[...e.filter(r=>!t.has(r.id)&&r.upToDate==="yes"&&!n.has(r.id)).map(r=>({id:r.id,verb:o.has(r.id)?"hold":"design"})),...e.filter(s).map(r=>({id:r.id,verb:"evolve"}))]}var ee="designed, no testable scenario";async function dt(e,t){let{person:n,input:o}=e,s=new Set;if(t.length===0)return s;let r=new Set(t),u=[];try{u=await n.edges(o.projectId,"belongs_to")}catch(i){if(!(i instanceof I&&(i.code==="NO_CONTEXT"||i.code==="NOT_FOUND")))throw i}if(u.length>0){let i=new Map((await n.nodes(o.projectId,"usecase")).flatMap(f=>f.name!==null?[[f.cid,f.name]]:[])),c=[...new Set(u.map(f=>f.dst).filter(f=>!i.has(f)))];for(let[f,g]of await F(c,8,async h=>[h,await n.mainNode(o.projectId,h).catch(()=>null)]))g?.label==="usecase"&&g.name!==null&&i.set(f,g.name);for(let f of u){let g=i.get(f.dst);g!==void 0&&r.has(g)&&s.add(g)}}let a=t.filter(i=>!s.has(i));for(let[i,c]of await F(a,8,async f=>[f,await n.listSessions(o.projectId,{useCase:f})]))c.some(f=>f.verb==="design"&&f.useCase===i&&f.scope?.state==="finalized")&&s.add(i);return s}async function Fe(e,t){let n=new Set,o=async r=>(await e.mainNode(t,r)).edgesOut.find(i=>i.type==="belongs_to"&&i.other?.label==="usecase")?.other?.name??null,s;try{s=await e.stale(t)}catch(r){if(r instanceof I&&(r.code==="NO_CONTEXT"||r.code==="NOT_FOUND"))return n;throw r}for(let r of s){if(r.freshness!=="stale"||!["ac","scenario","test"].includes(r.label))continue;let u=await e.mainNode(t,r.cid),a=null;if(r.label==="scenario")a=u.edgesOut.find(i=>i.type==="belongs_to"&&i.other?.label==="usecase")?.other?.name??null;else if(r.label==="ac"){let i=u.edgesOut.find(c=>c.type==="scoped_to");i?.other?.label==="usecase"?a=i.other.name??null:i?.other?.label==="scenario"&&(a=await o(i.dst))}else if(r.label==="test"){let i=u.edgesOut.find(c=>c.type==="automates"&&c.other?.label==="scenario");i&&(a=await o(i.dst))}a!==null&&n.add(a)}return n}async function ct(e,t,n,o,s){let r=(await e.listSessions(t,{useCase:n})).filter(p=>p.verb==="evolve"&&p.useCase===n&&p.scope?.state==="finalized");if(r.length===0)return null;let u=Math.max(...r.map(p=>p.scope.position)),[a,i]=await Promise.all([e.nodes(t,"usecase"),e.nodes(t,"source")]);if((a.find(p=>p.name===n)?.position??Number.POSITIVE_INFINITY)>u)return null;let f=i.filter(p=>p.title===o).map(p=>p.position);if(f.length===0)return null;let g=Math.max(...f),h=`its last evolve landed at position ${u}`;if(g<=u)return{landedAt:u,why:`${h}; nothing it rests on has moved since; still out of date (upstream); not retried until the source moves`};if(s.cut==="end")return null;let d=f.filter(p=>p<=u);if(d.length===0)return null;let l=(await e.mainRecord(t,Math.max(...d))).record.media?.[o]?.plugin?.fetch?.cursor,m=typeof l=="string"?ge(l)?.run:void 0;return m===void 0||m!==s.runId?null:{landedAt:u,why:`${h}, while the source was of run ${m}; this run's cuts don't retry it; still out of date (upstream); retried at the run's end or in a new run`}}async function lt(e,t){let{person:n,input:o,outcome:s}=e,r=await se(e,o.projectId,t);for(let l of s.use_cases.added)r.add(l);let u=(await q(n,o.projectId,["usecase"])).filter(l=>r.has(l.id)&&l.upToDate!=="archived"),a=await Ne(n,o.projectId),i=await Fe(n,o.projectId),c=Le(u,a,i).filter(l=>l.verb==="design").map(l=>l.id),f=await dt(e,c),g=Le(u,a,i,f),h=new Map;for(let{id:l,verb:m}of g){let p=m==="evolve"?await ct(n,o.projectId,l,t,{cut:o.cut,runId:o.runId}):null;p!==null&&h.set(l,p)}let d=l=>g.filter(m=>m.verb===l&&!h.has(m.id)).map(m=>m.id).join(", ")||"none",_=[...g.filter(l=>l.verb==="hold").map(l=>`${l.id} (${ee})`),...[...h].map(([l,m])=>`${l} (${m.why})`)].join("; ")||"none";e.diag(`[6] targets: design ${d("design")} \xB7 evolve ${d("evolve")} \xB7 held ${_}`);for(let{id:l,verb:m}of g){if(m==="hold"){s.held.some(A=>A.ref===l)||s.held.push({ref:l,why:ee}),e.summary.push({verb:"design",target:l,status:"held",tests:null,ms:null}),e.diag(`[6] design ${l} held: ${ee}; no session`);continue}let p=h.get(l)??null;if(p!==null){let A=p.why;s.held.some($=>$.ref===l)||s.held.push({ref:l,why:A}),e.summary.push({verb:m,target:l,status:"held",tests:null,ms:null}),T(e,"DESIGN_FAILED",`${l}: ${A}`);continue}let y={ref:l,useCase:l,override:!0},w=m==="design"?await D(e,{verb:"design",body:{useCase:l},run:{useCase:l,allowUnreviewed:!0,override:!0},log:{step:6,target:l}}):await D(e,{verb:"evolve",body:{useCase:l},run:{ref:l,useCase:l,override:!0,answer:[`evolve:${l}=proceed`]},log:{step:6,target:l}});if(w.code===3){let A=await Ge(e,{verb:m,target:l,step:6,projectId:o.projectId,resume:$=>D(e,{verb:m,body:{},run:m==="design"?{allowUnreviewed:!0,override:!0}:y,resume:$,log:{step:6,target:l}})},w);if("failed"in A){s.tests.failed.push(l),T(e,"DESIGN_FAILED",A.failed);continue}w=A.go}let R=te(e,w.lines);if(m==="evolve"&&R.error?.code==="NOTHING_CHANGED"){w.row.status="nothing changed",e.diag(`assurance-job: ${l}: its evolve found nothing changed in its design; left as it is`),w.sid!==null&&(s.sessions=s.sessions.filter(A=>A!==w.sid));continue}if(w.code!==0||w.sid===null){w.row.status=`failed (exit ${w.code})`,s.tests.failed.push(l),T(e,"DESIGN_FAILED",`${l}: ${R.error?.message??`the ${m} ended with exit ${w.code}`}`);continue}let N=await Me(e,w.sid);if(Ke(e,6,m,w.sid,w.row,N),s.tests.designed+=N.tests,!N.ok){s.tests.failed.push(l),T(e,"SAVE_FAILED",`${l}: ${N.message}`);continue}if(m==="evolve"){let A=(await q(n,o.projectId,["usecase"])).find($=>$.id===l);A?.upToDate==="tests_out_of_date"||(await Fe(n,o.projectId)).has(l)?(w.row.status="saved, still out of date",s.tests.failed.push(l),T(e,"DESIGN_FAILED",`${l}: its evolve was saved, and its ${A?.upToDate==="tests_out_of_date"?"tests are":"design is"} still out of date`)):s.use_cases.modified.includes(l)||s.use_cases.modified.push(l)}}await pt(e)}async function ft(e,t){try{return await e.nodes(t,"test")}catch(n){if(n instanceof I&&(n.code==="NO_CONTEXT"||n.code==="NOT_FOUND"))return[];throw n}}async function pt(e){let{person:t,input:n,outcome:o}=e;if(e.savedTests.size===0)return;let s=new Map((await ft(t,n.projectId)).map(a=>[a.cid,a])),r=[...e.savedTests].flatMap(([a,i])=>{let c=s.get(a)?.name??null;return c!==null?[{cid:a,name:c,...i}]:[]}),u=await F(r,8,async a=>{try{let i=a.definitionId??String((await t.mainNode(n.projectId,a.cid)).content.definitionId??""),c=await t.testCase(n.projectId,a.name,i);return"linked"in c?{test:a.name,change:a.change,case_id:c.linked.caseId,tc:c.linked.internalId,refused:null}:{test:a.name,change:a.change,case_id:null,tc:null,refused:c.refused.code??"REFUSED"}}catch(i){return{test:a.name,change:a.change,case_id:null,tc:null,refused:i instanceof I?i.code:"UNREAD"}}});o.tests.saved_cases.push(...u)}function gt(e,t){return new URL(ne(e,t).controllerBaseUrl).origin}async function Wt(e={}){let t=e.env??process.env,n=e.out??(d=>{process.stdout.write(`${d}
5
+ `)}),o=e.now??Date.now,s=o(),r=Je(t,d=>gt(d,t));if(!r.ok){let d=Y(r.identity,x);d.status="failed",d.error={code:"INPUT_INVALID",message:r.message},d.errors=[d.error];let _=typeof t.LT_ACCESS_KEY=="string"&&t.LT_ACCESS_KEY!==""?{username:t.LT_USERNAME??"",accessKey:t.LT_ACCESS_KEY}:null,l=Q(d,z(_));return r.report!==null&&(await Z(r.report.url,l,r.report.login,e.post)||(e.diag??(p=>{process.stderr.write(`${p}
6
+ `)}))("assurance-job: the INPUT_INVALID outcome could not be posted to the report address")),n(l),2}let u=r.input,a=z(u.login),i=Y(u,x);i.cursor.from=u.cursorFrom;let c=d=>(e.diag??(_=>{process.stderr.write(`${_}
7
+ `)}))(a(d));for(let d of Te(u,x))c(d);let f=null;try{f=await _t(u,i,e,c,a),await wt(f),i.status=f.failure?"partial":i.sessions.length===0?"noop":"ok",i.error=f.failure}catch(d){d instanceof b?(i.status=d.status,i.error=d.code===null?null:{code:d.code,message:d.message}):d instanceof I&&L(d.code)!==null?(i.status="failed",i.error={code:L(d.code),message:d.message}):d instanceof K?(i.status="failed",i.error={code:"LATTICE_UNAVAILABLE",message:d.message}):(i.status="failed",i.error={code:"INTERNAL",message:d instanceof Error?d.message:String(d)})}finally{if(f!==null){i.credits=f.credits;let _=[...f.savedTests.values()].map(l=>l.change);i.tests.saved=_.filter(l=>l==="added").length+f.savedUnlisted,i.tests.updated=_.filter(l=>l==="updated").length}i.errors=[...f?.errors??[]];let d=i.error;d!==null&&!i.errors.some(_=>_.code===d.code&&_.message===d.message)&&i.errors.push(d),B(null),k!==null&&process.chdir(k),k=null}i.duration_s=Math.round((o()-s)/100)/10;for(let d of Re(f?.summary??[]))c(d);i.errors.length>1&&c(`[7] ${i.errors.length} failures: ${i.errors.map(d=>d.code).join(", ")}`),c(`[7] outcome: ${i.status}${i.error?` \xB7 ${i.error.code}: ${i.error.message}`:""} \xB7 ${i.tests.saved} test(s) saved${i.tests.updated>0?`, ${i.tests.updated} updated`:""} \xB7 ${i.credits??"unknown"} credits \xB7 ${W(o()-s)}`);let g=Q(i,a),h=await Z(u.reportUrl,g,u.login,e.post);return c(h?"[7] outcome posted to the report address":"[7] outcome NOT posted to the report address (exit 3)"),n(g),h?0:3}var mt=new Set(["project","sources","mainRecord","mainNode","nodes","edges","stale","testCase","getSession","listSessions","proposes","counts"]),K=class extends Error{};function ht(e,t={},n=()=>{}){let o=t.backoffMs??[2e3,5e3],s=t.sleep??(r=>new Promise(u=>setTimeout(u,r)));return new Proxy(e,{get(r,u,a){let i=Reflect.get(r,u,a);return typeof u!="string"||!mt.has(u)||typeof i!="function"?i:async(...c)=>{for(let f=0;;f++)try{return await i.apply(r,c)}catch(g){if(!(g instanceof I)||!g.retryable)throw g;if(f>=o.length)throw new K(`Lattice did not answer ${u} after ${f+1} tries (last status ${g.status||"none"}): ${g.message}`);n(`assurance-job: Lattice did not answer ${u} (status ${g.status||"none"}); trying again in ${o[f]}ms`),await s(o[f])}}}})}var k=null;async function _t(e,t,n,o,s){B(e.login);let r=re().replace(/\/+$/,"");r===""&&E("PROJECT_UNAVAILABLE",`shared projects are off in ${e.env}: no assurance store to write to`);let u=oe(e.login.username,e.login.accessKey),a=ht(ae({url:r,basicAuth:u,...n.latticeFetch?{fetch:n.latticeFetch}:{}}),n.latticeRetry,o),i;try{i=await a.project(e.projectId)}catch(g){throw g instanceof I&&g.status===401&&E("AUTH_FAILED","the shared store refused the job's credentials (401)"),g}i===null&&E("PROJECT_UNAVAILABLE",`project ${e.projectId} is not one this login can use`),o(`[3] project ${e.projectId}: readable; linked in a folder of its own`);let c=e.projectId,f=n.workspace??We(Ye(Xe(),"kane-assurance-job-"));return le(f,{projectId:e.projectId,projectName:c,writtenBy:`kane-cli ${x} assurance-job`}),k=process.cwd(),process.chdir(f),we(),{input:e,person:a,basicAuth:u,choice:{kind:"remote",latticeUrl:r,projectId:e.projectId,projectName:c},deps:n,outcome:t,failure:null,errors:[],credits:null,diag:o,redact:s,savedTests:new Map,savedUnlisted:0,summary:[]}}async function wt(e){let{input:t,person:n,outcome:o,deps:s}=e,r=`explore-${t.explorationId}`,u=`explore://${t.explorationId}`,a=await Ce(n,t.projectId,r,u);o.cursor.from=a.cursor??t.cursorFrom,o.cursor.to=a.cursor;let i;if(a.source===null)i=!0;else{if(a.cursor===null)return E("INTERNAL",`${r} holds no cursor the job can order against the cut`);{let c=v(a.cursor,t.cursorTo);c==="unordered"&&E("INTERNAL",`${r}'s cursor is of export version ${a.cursor.export_version}, the cut's of ${t.cursorTo.export_version}: they can't be ordered`),i=c==="older"}}if(t.cursorFromUnreadable&&e.diag("assurance-job: KANE_AJ_CURSOR_FROM is not a cursor: left out, the store's cursor alone orders the cut"),e.diag(`[4] store cursor ${a.cursor!==null?C(a.cursor):a.source===null?"none (source not held yet)":"unreadable"} against the cut ${C(t.cursorTo)}: ${a.source===null?"first ingest":i?"the cut moves it":"at or past the cut"}`),i&&a.source!==null&&t.cursorFrom!==null&&v(t.cursorTo,t.cursorFrom)==="older")throw e.diag(`assurance-job: the cut, ${C(t.cursorTo)}, is older than the last handled one, ${C(t.cursorFrom)}: nothing to do`),new b("noop",null,"");if(i){let c=await De(t,s.controllerFetch);if(v(c,t.cursorTo)==="older"&&E("INGEST_FAILED",`the controller's head of exploration ${t.explorationId} is older than the cut: run_version ${c.run_version}, deltas ${c.deltas}`),a.source===null&&await Qe(t,s.controllerFetch))throw e.diag(`assurance-job: the export of exploration ${t.explorationId} (run ${t.runId}, cut ${t.cut}) holds no units yet: nothing to ingest`),new b("noop",null,"");let f=await Ue(e,a,r);a=await Ce(n,t.projectId,r,u),o.cursor.to=a.cursor,f==="unchanged"&&a.cursor!==null&&v(a.cursor,t.cursorTo)==="older"?(e.diag(`assurance-job: ${r}: content unchanged since ${C(a.cursor)}; nothing landed`),o.cursor.to=t.cursorTo??c):(a.cursor===null||v(a.cursor,t.cursorTo)==="older")&&E("INGEST_FAILED",`${r} is not at the cut after the ingest`)}else if(a.source!==null){let c=await se(e,t.projectId,r);if(await ze(n,t.projectId,a.source)||await st(n,t.projectId,c)){let g=await De(t,s.controllerFetch),h=ut(g,a.cursor);h==="unordered"&&E("INTERNAL",`${r}'s cursor is of export version ${a.cursor.export_version}, the controller's head of ${g.export_version}: they can't be compared, so its review was not run`),h&&await Ue(e,a,r)}}await lt(e,r)}export{ee as DESIGNED_NO_TEST,K as LatticeUnavailable,F as bounded,Le as designTargets,ct as evolveStuck,L as markCode,ot as pauseOf,gt as reportOriginOf,ht as retryingReads,Wt as runAssuranceJob,ut as sameHead,Ge as settlePause,Fe as staleSlices,Ze as takeLanded};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import"./chunk-UR6MHSHU.js";async function o(e){let r=e.env??process.env,s=await(e.resolveBase??(async()=>(await import("./spawner-C7NLLM4F.js")).resolveAgentAuthEnv(e.credentials)))();if(s.TESTMUAI_BASIC_AUTH||r.TESTMUAI_BASIC_AUTH)return s;let t=r.TESTMUAI_ENV==="stage"?"stage":"prod",n=await(e.exchange??(async()=>(await e.credentials.lis().catch(()=>{}))?.basic??null))(t);return n?{...s,TESTMUAI_BASIC_AUTH:n}:s}export{o as resolveLisAuthEnv};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a,b}from"./chunk-RWSOZPJQ.js";import"./chunk-7GAHJZLH.js";import"./chunk-5TQFOPJV.js";import"./chunk-UR6MHSHU.js";export{b as ensureHyperexecuteBinary,a as hyperexecuteDownloadUrl};
2
+ import{a,b}from"./chunk-M6MBMRFR.js";import"./chunk-N3TCNZSX.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{b as ensureHyperexecuteBinary,a as hyperexecuteDownloadUrl};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b}from"./chunk-XIPKSXRQ.js";import"./chunk-432ZOE42.js";import"./chunk-TW63WWEN.js";import"./chunk-A6TJOZ24.js";import"./chunk-CB4ARIHR.js";import"./chunk-BSRSXYDZ.js";import"./chunk-R7KXAISS.js";import"./chunk-WMGKUERB.js";import"./chunk-WOSANGV6.js";import"./chunk-XMPTFXPW.js";import"./chunk-73Y6T2UK.js";import"./chunk-SMXABALN.js";import"./chunk-WN5VKKJ3.js";import"./chunk-MNBGG4H3.js";import"./chunk-VRIZDOO5.js";import"./chunk-ZHWU6L2G.js";import"./chunk-EZN7CF45.js";import"./chunk-7XBNMOH4.js";import"./chunk-ZCIWQHCO.js";import"./chunk-ZFM77AQU.js";import"./chunk-UEE3RZN4.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-6NFOH4AC.js";import"./chunk-PUVMC4PX.js";import"./chunk-B7ZX5HEN.js";import"./chunk-VZ7KXRXB.js";import"./chunk-7V4BQSSV.js";import"./chunk-HHW6MRU3.js";import"./chunk-7DFBOVUB.js";import"./chunk-4I7YN6YY.js";import"./chunk-6PIIUAZF.js";import"./chunk-NC7D7GOM.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-A7RJQJNT.js";import"./chunk-HCBYKLMW.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{b as designTestsCommand,a as normalizeOpts};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{c as a,d as b,e as c,f as d}from"./chunk-NWBLYMH7.js";import"./chunk-QSCXXNC2.js";import"./chunk-VO66KP2W.js";import"./chunk-HHW6MRU3.js";import"./chunk-7DFBOVUB.js";import"./chunk-4I7YN6YY.js";import"./chunk-6PIIUAZF.js";import"./chunk-NC7D7GOM.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{d as telemetryBootstrap,c as telemetryEnabled,b as telemetryEnvName,a as telemetryProxyUrl};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b}from"./chunk-LSDJOVWW.js";import"./chunk-KF4DKXSS.js";import"./chunk-AUJSC7PU.js";import"./chunk-I2MC6VVX.js";import"./chunk-4I7YN6YY.js";import"./chunk-UR6MHSHU.js";export{a as KILL_GRACE_MS,b as runAgent};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{a as Box,f as Newline,g as Spacer,d as Static,b as Text,e as Transform,o as measureElement,c as render,j as useApp,m as useFocus,n as useFocusManager,i as useInput,l as useStderr,h as useStdin,k as useStdout};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{f as a,g as b,h as c,i as d,j as e,k as f,l as g}from"./chunk-NFRA64NU.js";import"./chunk-MGNRNLBE.js";import"./chunk-RZ4F3BHX.js";import"./chunk-XBEYWXPV.js";import"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";export{a as ANY_REAL_DEVICE,g as checkRealDevice,c as fetchRealDeviceCatalog,e as isAnyRealDevice,f as matchRealDevice,d as osMajorOf,b as parseRealDeviceCatalog};
@@ -1,4 +1,4 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as l}from"./chunk-RZ4F3BHX.js";import{b as i,f as c}from"./chunk-5TQFOPJV.js";import"./chunk-UR6MHSHU.js";import{readFileSync as u,writeFileSync as g,mkdirSync as d}from"fs";import{join as f}from"path";var h=f(i,"changelog-cache.json"),p=3600*1e3;function y(){try{let e=JSON.parse(u(h,"utf-8"));if(Date.now()-e.cachedAt<p)return e}catch{}return null}function m(e){try{d(i,{recursive:!0}),g(h,JSON.stringify({entries:e,cachedAt:Date.now()}))}catch{}}async function A(e){try{let t=y();if(t){let r=t.entries;return e?.all?r:r.slice(0,5)}let n=new AbortController,o=setTimeout(()=>n.abort(),5e3),a=await l(`${c}?per_page=30`,{headers:{Accept:"application/vnd.github+json"},signal:n.signal});if(clearTimeout(o),!a.ok)return[];let s=(await a.json()).map(r=>({version:r.tag_name.replace(/^v/,""),date:r.published_at?r.published_at.slice(0,10):"",body:r.body??""}));return m(s),e?.all?s:s.slice(0,5)}catch{return[]}}function v(e){if(e.length===0)return"Could not fetch changelog. Visit https://github.com/LambdaTest/kane-cli/releases";let t=["kane-cli Changelog","\u2500".repeat(40),""];for(let n of e){if(t.push(`v${n.version} (${n.date})`),n.body){let o=n.body.split(`
2
+ import{a as l}from"./chunk-RZ4F3BHX.js";import{b as i,f as c}from"./chunk-I6OQISK4.js";import"./chunk-UR6MHSHU.js";import{readFileSync as u,writeFileSync as g,mkdirSync as d}from"fs";import{join as f}from"path";var h=f(i,"changelog-cache.json"),p=3600*1e3;function y(){try{let e=JSON.parse(u(h,"utf-8"));if(Date.now()-e.cachedAt<p)return e}catch{}return null}function m(e){try{d(i,{recursive:!0}),g(h,JSON.stringify({entries:e,cachedAt:Date.now()}))}catch{}}async function A(e){try{let t=y();if(t){let r=t.entries;return e?.all?r:r.slice(0,5)}let n=new AbortController,o=setTimeout(()=>n.abort(),5e3),a=await l(`${c}?per_page=30`,{headers:{Accept:"application/vnd.github+json"},signal:n.signal});if(clearTimeout(o),!a.ok)return[];let s=(await a.json()).map(r=>({version:r.tag_name.replace(/^v/,""),date:r.published_at?r.published_at.slice(0,10):"",body:r.body??""}));return m(s),e?.all?s:s.slice(0,5)}catch{return[]}}function v(e){if(e.length===0)return"Could not fetch changelog. Visit https://github.com/LambdaTest/kane-cli/releases";let t=["kane-cli Changelog","\u2500".repeat(40),""];for(let n of e){if(t.push(`v${n.version} (${n.date})`),n.body){let o=n.body.split(`
3
3
  `).filter(a=>a.trim());for(let a of o)t.push(` ${a}`)}t.push("")}return t.join(`
4
4
  `)}export{A as fetchChangelog,v as formatChangelog};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{c as a}from"./chunk-OJ33Q6DU.js";import"./chunk-LD5B3QFW.js";import"./chunk-42PALMW2.js";import"./chunk-ZCIWQHCO.js";import"./chunk-UEE3RZN4.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-6NFOH4AC.js";import"./chunk-7V4BQSSV.js";import"./chunk-7DFBOVUB.js";import"./chunk-4I7YN6YY.js";import"./chunk-UR6MHSHU.js";export{a as commitChatTurn};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-RX6776AI.js";import"./chunk-BWXLZS5O.js";import"./chunk-63EKRZKI.js";import"./chunk-3JLEDSG5.js";import"./chunk-42PALMW2.js";import"./chunk-22PIMG52.js";import"./chunk-UEE3RZN4.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-6NFOH4AC.js";import"./chunk-7V4BQSSV.js";import"./chunk-7DFBOVUB.js";import"./chunk-4I7YN6YY.js";import"./chunk-UR6MHSHU.js";export{d as makeChatController,b as optionLabel,c as questionStub,a as recommendationPicks};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{a as b,b as c,c as d}from"./chunk-6UVIY56J.js";import"./chunk-RTVWQK7I.js";import{a}from"./chunk-YIKF4ERQ.js";import"./chunk-QI5RZ7LL.js";import"./chunk-44B6THYK.js";import"./chunk-W7FLXW6Q.js";import"./chunk-R4JUKTDO.js";import"./chunk-OJ33Q6DU.js";import"./chunk-7KX2BHKG.js";import"./chunk-D756UWY2.js";import"./chunk-LX2I4JEH.js";import"./chunk-O3HHTKZ5.js";import"./chunk-NXRF7FFS.js";import"./chunk-E6KSRQXL.js";import"./chunk-54XA5MZH.js";import"./chunk-QDFY5GGO.js";import"./chunk-VZJ6LUXX.js";import"./chunk-35ECWCCK.js";import"./chunk-IZ65ZPWY.js";import"./chunk-EF47KRUK.js";import"./chunk-3GXN6VF6.js";import"./chunk-Z55KBMYV.js";import"./chunk-LD5B3QFW.js";import"./chunk-3BSYOCSW.js";import"./chunk-BWXLZS5O.js";import"./chunk-63EKRZKI.js";import"./chunk-3JLEDSG5.js";import"./chunk-42PALMW2.js";import"./chunk-ZFMRQ57Y.js";import"./chunk-PZA3BSOE.js";import"./chunk-2RUSXQ3O.js";import"./chunk-AUJSC7PU.js";import"./chunk-JNSWKGTB.js";import"./chunk-UUJIGOEO.js";import"./chunk-ZTHYAHDN.js";import"./chunk-PGESS7BW.js";import"./chunk-FWGUISUG.js";import"./chunk-AZLNLHUA.js";import"./chunk-AQ2OG2EF.js";import"./chunk-DPGOAFKF.js";import"./chunk-4IEQNX7F.js";import"./chunk-MNBGG4H3.js";import"./chunk-VRIZDOO5.js";import"./chunk-ZHWU6L2G.js";import"./chunk-GRURFGBP.js";import"./chunk-MYZHOBS4.js";import"./chunk-7XBNMOH4.js";import"./chunk-ZCIWQHCO.js";import"./chunk-XB6BJPDL.js";import"./chunk-ZFM77AQU.js";import"./chunk-GFLB2SHW.js";import"./chunk-2TVPA3LL.js";import"./chunk-VJGWVBZR.js";import"./chunk-22PIMG52.js";import"./chunk-QXQ7KVEN.js";import"./chunk-UEE3RZN4.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-6NFOH4AC.js";import"./chunk-PUVMC4PX.js";import"./chunk-B7ZX5HEN.js";import"./chunk-VZ7KXRXB.js";import"./chunk-7V4BQSSV.js";import"./chunk-HHW6MRU3.js";import"./chunk-7DFBOVUB.js";import"./chunk-4I7YN6YY.js";import"./chunk-GMTHZUZ3.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";export{c as designLanded,b as lastLandedPhase,d as launchDesignChild,a as testsWrittenBy};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ var u={graph_search_similar:"find similar items",graph_get_node:"read an item",graph_get_edges:"read an item's links",graph_match_by_type:"list items by kind",graph_find_by_provenance:"list a source's items",graph_stale_nodes:"find out-of-date items",ask_user:"ask",finalize_proposal:"propose use-cases",chat_turn:"apply changes",read_image:"read image",source_read:"read source",source_grep:"search source",finalize_design:"propose design",expand_bva:"find edge values",covering_array:"combine the options",dedupe_candidates:"drop duplicates",budget_cut:"trim to the limit",source_list:"list sources",graph_search_similar_batch:"find similar items",graph_history:"read history"},p="working";function d(e){let r=u[e.name],s=e.status==="error"||e.status==="aborted"?" \u2717":"",i=e.detail?` \u2014 ${e.detail}`:"";return`\u2692 ${r??p}${i}${s}`}function l(e){return d(e).replace(/^\S+ /,"")}function m(e){let r=Math.floor(e/60);return r>0?`${r}m ${String(e%60).padStart(2,"0")}s`:`${e}s`}function _(e,r,s){let i=m(e),o=new Map;for(let t of s){let n=u[t.name]??p;o.set(n,(o.get(n)??0)+t.n)}let a=[...o.entries()],g=a.slice(0,4).map(([t,n])=>n>1?`${t} \xD7${n}`:t),c=a.length-4;return[`worked ${i} \u2014 ${r} tool call${r===1?"":"s"}`,...g,...c>0?[`+${c} more`]:[]]}export{p as a,l as b,m as c,_ as d};
@@ -0,0 +1,19 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import{b as E}from"./chunk-FFL55I2M.js";import{a as A,b as I,c as L,d as p,e as N,f as O,g as R,m as T}from"./chunk-ZTHYAHDN.js";import{Fa as f,ka as c}from"./chunk-W3OVSDBN.js";var h="https://integrations.lambdatest.com",m=" kane-cli context ingest <file>";function $(e){try{let n=new URL(e);return`${n.hostname}${n.pathname==="/"?"":n.pathname}`}catch{return e}}function D(e){switch(e.provider){case"web":return`the page ${e.display}`;case"jira":return`Jira issue ${e.display}`;case"confluence":return e.title?`Confluence page "${e.title}"`:`Confluence page ${e.display.split("/").at(-1)}`;case"linear":return`Linear issue ${e.display}`;case"linear-doc":return e.display.startsWith("document ")?`Linear ${e.display}`:`Linear document "${e.display}"`;default:return e.display}}function U(e,n){let t=C(e,n),i={jira:"Jira issue",confluence:"Confluence page",linear:"Linear issue","linear-doc":"Linear document"}[e];return i&&t!==n?`${i} ${t}`:t}function C(e,n){return e==="jira"?A(n)?.issueKey??n:e==="confluence"?L(n)?.pageId??n:e==="linear"?p(n)?.key??n:e==="linear-doc"?N(n)?.slugId??n:$(n)}var k=(e,n)=>e==="web"?`the page ${$(n)}`:U(e,n);function z(e){if(!e?.url)return null;let n=e.kind==="url"?"web":e.kind==="linear"?p(e.url)?"linear":"linear-doc":e.kind;return["web","jira","confluence","linear","linear-doc"].includes(n)?k(n,e.url):null}var x=e=>e.provider==="confluence"?e.title??e.display.split("/").at(-1):e.display;function P(e,n){let t={reading:e.provider==="web"?e.display:D(e),address:e.address,...n?{as:n}:{}};return e.provider==="confluence"&&!e.title?{...t,shown:`Confluence page ${e.display.split("/").at(-1)}`,bare:!0}:e.provider==="linear-doc"&&e.display.startsWith("document ")?{...t,shown:`Linear ${e.display}`,bare:!0}:{...t,shown:x(e)}}function q(e,n,t){return T(e)?.sourceIdFor(n)===t?void 0:t}function Q(e,n){try{let t=I(e,n)?.title;return typeof t=="string"&&t.length>0?t:void 0}catch{return}}function X(e,n,t,i){let s=C(e,n),d=e==="linear-doc"?t??`document ${s}`:s;return P({provider:e,display:d,...t?{title:t}:{},address:n},i)}var Z=e=>`with ${e.delivered+e.omitted} attachments: ${e.delivered} of its images added, ${e.omitted} left out`,ee=(e,n,t=!1)=>`the same ${t?"file":"text"} as "${e}", already in "${n}"`;function y(e,n){return e==="jira"?A(n)?.issueKey??n:e==="confluence"?`the Confluence page ${L(n)?.pageId??n}`:e==="linear"?p(n)?.key??n:e==="linear-doc"?`the Linear document ${N(n)?.slugId??n}`:`the page ${$(n)}`}var w=e=>e==="jira"?"Jira":e==="confluence"?"Confluence":e.startsWith("linear")?"Linear":"the web",S=e=>e.startsWith("linear")?"Linear":"Atlassian",b=e=>O(e)?.workspace??R(e)?.workspace??"<workspace>",G={invalid_url:"INVALID_URL",target_disallowed:"ADDRESS_NOT_ALLOWED",page_not_found:"PAGE_NOT_FOUND",page_access_blocked:"PAGE_BLOCKED",page_paywalled:"PAGE_PAYWALLED",unsupported_content_type:"NOT_A_PAGE",page_too_large:"PAGE_TOO_LARGE",page_timeout:"PAGE_TIMEOUT",scrape_unavailable:"PAGES_UNAVAILABLE",scrape_rate_limited:"PAGES_UNAVAILABLE",internal_error:"PAGES_UNAVAILABLE",malformed_response:"PAGES_UNAVAILABLE",credit_denied:"OUT_OF_CREDITS",auth_rejected:"CREDENTIALS_REJECTED",route_missing:"PAGES_NOT_AVAILABLE",transport_unreachable:"CONNECTION_FAILED",LIS_AUTH:"CREDENTIALS_REJECTED",JIRA_NOT_CONNECTED:"NO_CONNECTION",JIRA_ISSUE_UNAVAILABLE:"ITEM_UNAVAILABLE",LIS_UNAVAILABLE:"INTEGRATION_UNAVAILABLE",LIS_SETUP:"INTEGRATION_SETUP",LIS_FORBIDDEN:"NO_ACCESS",LIS_RATE_LIMITED:"INTEGRATION_BUSY"};function ne(e,n,t){let i=G[t.code]??t.code,s=y(e,n),d=w(e),a=(u,o,g=!1)=>({code:i,message:u,remedy:o,...g?{support:!0}:{}});switch(i){case"INVALID_URL":return a(`${n} isn't a valid public web address, so nothing was added`,"check the address, then run the command again");case"ADDRESS_NOT_ALLOWED":return a(`${n} can't be fetched: it isn't an allowed public web page, so nothing was added`,`use a public page's address, or save the page as a file and add the file:
3
+ ${m}`);case"PAGE_NOT_FOUND":return a(`${s} couldn't be found, so nothing was added`,"check that the address is right and the page still exists, then run the command again");case"PAGE_BLOCKED":return a(`${s} refused automated access, so nothing was added`,`use a version of the page anyone can open, or save it as a file and add the file:
4
+ ${m}`);case"PAGE_PAYWALLED":return a(`${s} is behind a paywall or a sign-in, so nothing was added`,`use a copy anyone can open, or save it as a file and add the file:
5
+ ${m}`);case"NOT_A_PAGE":return a(`${$(n)} isn't a web page, so nothing was added`,`download the document, then add the file:
6
+ ${m}`);case"PAGE_TOO_LARGE":return v(e,n,"","");case"PAGE_TIMEOUT":return a(`${s} took too long to load, so nothing was added`,"run the command again later");case"PAGES_UNAVAILABLE":return a("web pages can't be fetched right now, so nothing was added","run the command again later");case"OUT_OF_CREDITS":return a(`${s} couldn't be added: your organization is out of credits`,"to see your organization's credits, run: kane-cli balance");case"CREDENTIALS_REJECTED":return a(`your login was refused, so ${s} couldn't be read and nothing was added`,`log in again, then run the command again:
7
+ kane-cli login`);case"PAGES_NOT_AVAILABLE":return a("adding web pages isn't available here yet, so nothing was added",`save the page as a file, then add the file:
8
+ ${m}`);case"CONNECTION_FAILED":return a(`${s} couldn't be fetched: kane-cli couldn't connect, so nothing was added`,"check your connection, then run the command again");case"NO_CONNECTION":return a(`${s} can't be read: your account has no ${S(e)} connection yet, so nothing was added`,`connect ${d} at ${h}, then run the command again`);case"NO_COMMENTS_ACCESS":return a(`${s} can't be read: your Atlassian connection can't read comments yet, so nothing was added`,`sync the connection again at ${h}, then run the command again`);case"PROJECT_NOT_SELECTED":{let u=t.facts?.project??"";return a(`${s} can't be read: your Jira connection doesn't read the project ${u}, so nothing was added`,`add ${u} to the connection at ${h}, then run the command again`)}case"NO_CONFLUENCE_ACCESS":return a(`${s} can't be read: your Atlassian connection has no Confluence access, so nothing was added`,`connect again with Confluence at ${h}, then run the command again`);case"NO_ISSUE_ACCESS":return a(`${s} can't be read: your Linear connection can't read issues or their comments yet, so nothing was added`,`sync the connection again at ${h}, then run the command again`);case"NO_DOCUMENT_ACCESS":return a(`${s} can't be read: your Linear connection can't read documents yet, so nothing was added`,`sync the connection again at ${h}, then run the command again`);case"LINEAR_PAGE":return a("that Linear page isn't an issue or a document, so nothing was added",`add its issues or documents one by one, for example:
9
+ kane-cli context ingest https://linear.app/${b(n)}/issue/ENG-42`);case"LINEAR_LINK_MALFORMED":return a("that Linear address is incomplete, so nothing was added",`use the full address, for example:
10
+ kane-cli context ingest https://linear.app/${b(n)}/issue/ENG-42`);case"ITEM_UNAVAILABLE":return a(`${s} couldn't be found, or you don't have access to it, so nothing was added`,`check the address and your access in ${d}, then run the command again`);case"INTEGRATION_UNAVAILABLE":return a(`${d} can't be reached right now, so nothing was added`,"run the command again later");case"ATTACHMENT_TOO_LARGE":return a(`an attachment of ${s} is too large to add, so nothing was added`,`remove or shrink it in ${d}, then run the command again`);case"INTEGRATION_SETUP":return a(`your ${S(e)} connection needs syncing again, so nothing was added`,`sync it at ${h}, then run the command again`);case"NO_ACCESS":return a(`you don't have access to ${s}, so nothing was added`,`ask for access in ${d}, then run the command again`);case"INTEGRATION_BUSY":return a(`${d} is busy right now, so nothing was added`,"wait a moment, then run the command again");default:return{code:"FETCH_FAILED",message:`${s} couldn't be fetched, so nothing was added`,remedy:"run the command again",support:!0}}}function v(e,n,t,i){if(e==="web")return{code:"PAGE_TOO_LARGE",message:`${y(e,n)} has too much text to add as one source, so nothing was added`,remedy:"use a narrower page, or trim it, then run the command again"};let s=e==="jira"?"trim its description or attachments in Jira":e==="confluence"?"trim the page in Confluence":e==="linear"?"trim the issue in Linear":"trim the document in Linear",d=t&&i?` (${t}; the limit is ${i})`:"";return{code:"FETCH_FAILED",message:`${y(e,n)} is too large to add${d}, so nothing was added`,remedy:`${s}, then run the command again`}}var F={web:"a web page",jira:"a Jira issue",confluence:"a Confluence page",linear:"a Linear issue","linear-doc":"a Linear document"},B={web:{kind:"a web page",noun:"page"},jira:{kind:"a Jira issue",noun:"issue"},confluence:{kind:"a Confluence page",noun:"page"},linear:{kind:"a Linear issue",noun:"issue"},"linear-doc":{kind:"a Linear document",noun:"document"}};function te(e,n,t,i){let s=t.facts?.id??"",{kind:d,noun:a}=B[e]??{kind:"a source",noun:"source"},u=`${c([n])} --as ${f(t.facts?.freeId??`${s}-2`)}`,o=`to add this ${a} as a source of its own, run:
11
+ ${u}`,g=[{cmd:u,why:"add it as a source of its own"}];switch(t.code){case"SITE_MOVED":return{code:"SITE_MOVED",message:`"${s}" in "${i}" came from another ${w(e)} site, so this ${a} can't be its new version, and nothing was added`,remedy:o,next:g};case"KIND_MISMATCH":{let l=F[t.facts?.heldKind??""]??"a file";return{code:"KIND_MISMATCH",message:`"${s}" in "${i}" is ${l}, not ${d}, so this ${a} can't be its new version, and nothing was added`,remedy:o,next:g}}case"WEB_URL_CHANGED":return{code:"WEB_URL_CHANGED",message:`"${s}" in "${i}" was added from another address, ${$(t.facts?.previous??"")}, so nothing was added`,remedy:o,next:g};case"UUID_MOVED":if(t.facts?.holder){let l=t.facts.holder,_=`${c([n])} --as ${f(l)}`;return{code:"UUID_MOVED",message:`this ${w(e)} ${a} is already in "${i}" as "${l}" (its key changed), so nothing was added`,remedy:`to add this read as its new version, run:
12
+ ${_}`,next:[{cmd:_,why:"add it as its new version"}]}}return{code:"UUID_MOVED",message:`"${s}" in "${i}" came from another ${w(e)} ${a} with the same key, so this ${a} can't be its new version, and nothing was added`,remedy:o,next:g};default:return{code:t.code,message:`"${s}" in "${i}" came from another ${w(e)} ${a} with the same key, so this ${a} can't be its new version, and nothing was added`,remedy:o,next:g}}}function ae(e){let n=`${e} isn't a file or a web address, so nothing was added`,t=e.slice(e.indexOf(":")+1),i=e.slice(0,e.indexOf(":")).toLowerCase();return i==="jira"?{code:"UNSUPPORTED_URL",message:n,remedy:`for a Jira issue, add its address, for example:
13
+ kane-cli context ingest https://<your site>/browse/${t}`}:i==="confluence"?{code:"UNSUPPORTED_URL",message:n,remedy:`for a Confluence page, add its address, for example:
14
+ kane-cli context ingest https://<your site>/wiki/spaces/<space>/pages/${t}`}:i==="linear"?{code:"UNSUPPORTED_URL",message:n,remedy:`for a Linear issue, add its address, for example:
15
+ kane-cli context ingest https://linear.app/<workspace>/issue/${t}`}:{code:"UNSUPPORTED_URL",message:n,remedy:"add a file, or the item's full web address, then run the command again"}}var se=e=>({code:"AS_SINGLE_SOURCE",message:"--as names one source, so it takes one file or address at a time, and nothing was added",remedy:`to add each as a source of its own, run it without --as:
16
+ ${c(e)}`,next:[{cmd:c(e),why:"add each as a source of its own"}]});function ie(e,n,t,i={}){let{reviews:s=[],link:d=!1,firstTwin:a=!0}=i,u=r=>r.length>2?`${r.slice(0,-1).join(", ")} and ${r.at(-1)}`:`${r[0]} and ${r[1]}`,[o,g]=e,l=s.length===0?"":s.length===1?`, then ${s[0].name} on its own to review what changed`:", then each new version on its own";return{code:"SAME_SOURCE_ID",message:e.length>2?`${e.length} sets of sources would each share an id (${u(e.map(r=>`"${r.id}"`))}), so nothing was added`:`${u(o.names)} would ${o.names.length>2?"all":"both"} be added as "${o.id}"${g?`, and ${u(g.names)} as "${g.id}"`:""}, so nothing was added`,remedy:[`add them one at a time, the second under another id${l}:`,...n.length>0?[` ${c(n)}`]:[],...t.map(r=>` ${c([r.ref])} --as ${r.as===null?"<another id>":f(r.as)}`),...s.map(r=>` ${c([r.ref])}`)].join(`
17
+ `),...t.every(r=>r.as!==null)&&!d?{next:[...n.length>0?[{cmd:c(n),why:a?"add the first":"add the others"}]:[],...t.map(r=>({cmd:`${c([r.ref])} --as ${f(r.as)}`,why:`add the ${M[r.place??2]??"next"} under another id`})),...s.map(r=>({cmd:c([r.ref]),why:`review what changed in ${E(r.id)}`}))]}:{}}}var M={2:"second",3:"third",4:"fourth",5:"fifth"};function oe(e,n,t){let i=e[0],s=e.length===1?`${i.name} on its own`:"each new version on its own",d=o=>o.length>2?`${o.slice(0,-1).join(", ")} and ${o.at(-1)}`:o.join(" and "),a=e.some(o=>o.shown!==void 0);return{code:"NEW_VERSION_ALONE",message:e.length===1?i.shown!==void 0?`${i.name} is already in "${t}", and its new version is reviewed on its own, so nothing was added`:`${i.name} is a new version of "${i.id}", and a new version is reviewed on its own, so nothing was added`:e.length===2&&!a?`${e[0].name} and ${e[1].name} are new versions of "${e[0].id}" and "${e[1].id}", and a new version is reviewed on its own, so nothing was added`:`${e.length} of these sources are new versions (${d(e.map(o=>E(o.shown??o.id)))}), and each is reviewed on its own, so nothing was added`,remedy:[n.length>0?`add the others first, then ${s} to review what changed:`:`add ${s} to review what changed:`,...n.length>0?[` ${c(n)}`]:[],...e.map(o=>` ${c([o.ref])}`)].join(`
18
+ `),next:[...n.length>0?[{cmd:c(n),why:"add the others"}]:[],...e.map(o=>({cmd:c([o.ref]),why:`review what changed in ${E(o.shown??o.id)}`}))]}}var re=e=>`${e.length>1?`${e.slice(0,-1).join(", ")} and ${e.at(-1)}`:e[0]} ${e.length>1?"weren't":"wasn't"} added either: one command adds all its sources, or none`,de=e=>({code:"LINKS_NOT_TAKEN",message:`"${e}" can't take links yet, so nothing was added`,remedy:`save the page as a file, then add the file:
19
+ ${m}`});export{D as a,U as b,C as c,k as d,z as e,x as f,P as g,q as h,Q as i,X as j,Z as k,ee as l,ne as m,v as n,te as o,ae as p,se as q,ie as r,oe as s,re as t,de as u};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{b as O,d as S}from"./chunk-4CYBXJIA.js";import{c as L}from"./chunk-RFHMDQXZ.js";import{n as P,o as R}from"./chunk-RSSOJ3L2.js";import{y as s}from"./chunk-5TQFOPJV.js";import{a as y}from"./chunk-HCBYKLMW.js";import{a as E,b as o,i as h}from"./chunk-C44QQJR4.js";import{a as B}from"./chunk-6YGTRKDT.js";import{e as d}from"./chunk-UR6MHSHU.js";var n=d(B(),1);import{basename as D}from"path";var r=d(y(),1),U="evidence-view-server";function Q({packPath:m,viewerBase:w,onDone:V,openUrl:k}){let[t,a]=(0,n.useState)("ask"),[g,b]=(0,n.useState)(null),[l,p]=(0,n.useState)(null),f=(0,n.useRef)(null),u=(0,n.useRef)(!1),x=async()=>{let e=f.current;f.current=null,e&&(R(U),await e.close())},v=()=>{u.current||(u.current=!0,V())};return h((e,i)=>{u.current||(t==="ask"?e==="y"||e==="Y"?a("starting"):(e==="n"||e==="N"||i.return||i.escape)&&v():t==="serving"&&(e==="q"||e==="Q"||i.escape)&&x().then(v))}),(0,n.useEffect)(()=>{if(t!=="starting")return;let e=!1;return(async()=>{try{let i=D(m),c=await O({packs:new Map([[i,m]]),allowedOrigins:[new URL(w).origin]});if(e){await c.close();return}f.current=c,P(U,()=>{c.close()});let T=S(c.urlFor(i),w);b(T);try{await(k??(q=>L(q)))(T)}catch{p("could not open browser \u2014 open the URL manually")}a("serving")}catch(i){p(`evidence view failed \u2014 ${i.message}`),a("failed")}})(),()=>{e=!0}},[t]),(0,n.useEffect)(()=>{if(t!=="failed")return;let e=setTimeout(v,0);return()=>clearTimeout(e)},[t]),(0,n.useEffect)(()=>()=>{x()},[]),t==="ask"?(0,r.jsxs)(o,{children:["View evidence in browser? ",(0,r.jsx)(o,{color:s.dim,children:"(y/N)"})]}):t==="serving"||t==="starting"?(0,r.jsxs)(E,{flexDirection:"column",children:[g?(0,r.jsxs)(o,{children:["viewer ",(0,r.jsx)(o,{color:s.orange,children:g})]}):(0,r.jsx)(o,{color:s.dim,children:"starting\u2026"}),l?(0,r.jsx)(o,{color:"yellow",children:l}):null,t==="serving"?(0,r.jsx)(o,{color:s.dim,children:"Press q when done"}):null]}):l?(0,r.jsx)(o,{color:"yellow",children:l}):null}export{Q as a};
2
+ import{b as O,d as S}from"./chunk-6U7ID777.js";import{c as L}from"./chunk-RFHMDQXZ.js";import{n as P,o as R}from"./chunk-NC7D7GOM.js";import{a as y}from"./chunk-HCBYKLMW.js";import{a as E,b as o,i as h}from"./chunk-33DWJV67.js";import{a as B}from"./chunk-6YGTRKDT.js";import{y as s}from"./chunk-I6OQISK4.js";import{e as d}from"./chunk-UR6MHSHU.js";var n=d(B(),1);import{basename as D}from"path";var r=d(y(),1),U="evidence-view-server";function Q({packPath:m,viewerBase:w,onDone:V,openUrl:k}){let[t,a]=(0,n.useState)("ask"),[g,b]=(0,n.useState)(null),[l,p]=(0,n.useState)(null),f=(0,n.useRef)(null),u=(0,n.useRef)(!1),x=async()=>{let e=f.current;f.current=null,e&&(R(U),await e.close())},v=()=>{u.current||(u.current=!0,V())};return h((e,i)=>{u.current||(t==="ask"?e==="y"||e==="Y"?a("starting"):(e==="n"||e==="N"||i.return||i.escape)&&v():t==="serving"&&(e==="q"||e==="Q"||i.escape)&&x().then(v))}),(0,n.useEffect)(()=>{if(t!=="starting")return;let e=!1;return(async()=>{try{let i=D(m),c=await O({packs:new Map([[i,m]]),allowedOrigins:[new URL(w).origin]});if(e){await c.close();return}f.current=c,P(U,()=>{c.close()});let T=S(c.urlFor(i),w);b(T);try{await(k??(q=>L(q)))(T)}catch{p("could not open browser \u2014 open the URL manually")}a("serving")}catch(i){p(`evidence view failed \u2014 ${i.message}`),a("failed")}})(),()=>{e=!0}},[t]),(0,n.useEffect)(()=>{if(t!=="failed")return;let e=setTimeout(v,0);return()=>clearTimeout(e)},[t]),(0,n.useEffect)(()=>()=>{x()},[]),t==="ask"?(0,r.jsxs)(o,{children:["View evidence in browser? ",(0,r.jsx)(o,{color:s.dim,children:"(y/N)"})]}):t==="serving"||t==="starting"?(0,r.jsxs)(E,{flexDirection:"column",children:[g?(0,r.jsxs)(o,{children:["viewer ",(0,r.jsx)(o,{color:s.orange,children:g})]}):(0,r.jsx)(o,{color:s.dim,children:"starting\u2026"}),l?(0,r.jsx)(o,{color:"yellow",children:l}):null,t==="serving"?(0,r.jsx)(o,{color:s.dim,children:"Press q when done"}):null]}):l?(0,r.jsx)(o,{color:"yellow",children:l}):null}export{Q as a};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{b as g}from"./chunk-TZXXJWHA.js";import{a as C}from"./chunk-ZC2CKWLB.js";import{d as b,j as x,k as T,n as S}from"./chunk-NOL7MNZH.js";import{y as s}from"./chunk-5TQFOPJV.js";import{a as v}from"./chunk-HCBYKLMW.js";import{a,b as l,i as f}from"./chunk-C44QQJR4.js";import{a as B}from"./chunk-6YGTRKDT.js";import{e as h}from"./chunk-UR6MHSHU.js";var y=h(B(),1);var o=h(v(),1);function k(i,d=g()){let n=S(d);return(i==="all"?n:i==="devices"?n.filter(e=>b(e)):["emulator","simulator"].filter(e=>n.includes(e))).map(e=>({value:e,label:x(e),hint:T(e)}))}function H({mode:i="all",hostSupportsMobile:d=g(),onSelect:n,onCancel:c}){let e=k(i,d),[m,u]=(0,y.useState)(0);return f((p,t)=>{if(t.escape&&c){c();return}t.upArrow&&u(r=>Math.max(0,r-1)),t.downArrow&&u(r=>Math.min(e.length-1,r+1)),t.return&&n(e[m].value)}),(0,o.jsxs)(a,{flexDirection:"column",borderStyle:"round",borderColor:s.orange,paddingX:2,paddingY:1,children:[(0,o.jsx)(l,{color:s.orange,bold:!0,children:i==="all"?"Where should tests run?":"Which kind of device?"}),(0,o.jsx)(a,{marginTop:1,flexDirection:"column",children:e.map((p,t)=>{let r=t===m;return(0,o.jsxs)(a,{children:[(0,o.jsxs)(l,{color:r?s.orange:void 0,children:[r?"\u276F ":" ",p.label]}),(0,o.jsxs)(l,{color:s.dim,children:[" ",p.hint]})]},p.value)})}),(0,o.jsx)(a,{marginTop:1,children:(0,o.jsx)(l,{color:s.dim,children:"You can change this any time with /desktop or /mobile."})}),(0,o.jsx)(C,{bindings:[{keys:"\u2191\u2193",label:"navigate"},{keys:"\u21B5",label:"select"}],suppressEscBack:!c,escBackLabel:"skip"})]})}export{H as a};
2
+ import{b as g}from"./chunk-TZXXJWHA.js";import{a as C}from"./chunk-OVNRRI4E.js";import{d as b,j as x,k as T,n as S}from"./chunk-A7RJQJNT.js";import{a as v}from"./chunk-HCBYKLMW.js";import{a,b as l,i as f}from"./chunk-33DWJV67.js";import{a as B}from"./chunk-6YGTRKDT.js";import{y as s}from"./chunk-I6OQISK4.js";import{e as h}from"./chunk-UR6MHSHU.js";var y=h(B(),1);var o=h(v(),1);function k(i,d=g()){let n=S(d);return(i==="all"?n:i==="devices"?n.filter(e=>b(e)):["emulator","simulator"].filter(e=>n.includes(e))).map(e=>({value:e,label:x(e),hint:T(e)}))}function H({mode:i="all",hostSupportsMobile:d=g(),onSelect:n,onCancel:c}){let e=k(i,d),[m,u]=(0,y.useState)(0);return f((p,t)=>{if(t.escape&&c){c();return}t.upArrow&&u(r=>Math.max(0,r-1)),t.downArrow&&u(r=>Math.min(e.length-1,r+1)),t.return&&n(e[m].value)}),(0,o.jsxs)(a,{flexDirection:"column",borderStyle:"round",borderColor:s.orange,paddingX:2,paddingY:1,children:[(0,o.jsx)(l,{color:s.orange,bold:!0,children:i==="all"?"Where should tests run?":"Which kind of device?"}),(0,o.jsx)(a,{marginTop:1,flexDirection:"column",children:e.map((p,t)=>{let r=t===m;return(0,o.jsxs)(a,{children:[(0,o.jsxs)(l,{color:r?s.orange:void 0,children:[r?"\u276F ":" ",p.label]}),(0,o.jsxs)(l,{color:s.dim,children:[" ",p.hint]})]},p.value)})}),(0,o.jsx)(a,{marginTop:1,children:(0,o.jsx)(l,{color:s.dim,children:"You can change this any time with /desktop or /mobile."})}),(0,o.jsx)(C,{bindings:[{keys:"\u2191\u2193",label:"navigate"},{keys:"\u21B5",label:"select"}],suppressEscBack:!c,escBackLabel:"skip"})]})}export{H as a};
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as ae}from"./chunk-MMBBQ4OZ.js";import{j as R}from"./chunk-75MMTNPB.js";import{c as ie,e as ne,i as re,j as K}from"./chunk-Z7S3IWUX.js";import{d as $,e as oe}from"./chunk-4JOD47QI.js";import{a as se}from"./chunk-RZ4F3BHX.js";import{spawn as ze}from"child_process";import{closeSync as Xe,existsSync as Ge,mkdirSync as We,openSync as Ye,readFileSync as Ze,rmSync as Qe}from"fs";import{homedir as ge}from"os";import{dirname as X,join as S}from"path";import{access as Re,mkdir as de,readFile as Le}from"fs/promises";import{homedir as Ce}from"os";import{arch as Fe,platform as Be}from"process";import{join as M}from"path";var Ue=35,qe="google_apis",Ve="KaneCLI_Pixel_API35",He="KaneAI_Pixel_API35";function Ht(t){return t===He?Ve:t}var je=1;function Ke(t,e){return t==="darwin"&&e==="arm64"?"arm64-v8a":"x86_64"}function Je(){return{home:Ce(),os:Be,arch:Fe}}async function le(t){try{return await Re(t),!0}catch{return!1}}var J=class{deps;constructor(e={}){this.deps={...Je(),...e}}paths(){let e=M(this.deps.home,".testmuai","kaneai","mobile"),r=M(e,"android-sdk");return{root:r,emulatorDir:M(r,"emulator"),systemImageDir:M(r,"system-images",`android-${Ue}`,qe,Ke(this.deps.os,this.deps.arch)),avdHome:M(e,"avd"),manifest:M(r,"sdk-manifest.json")}}environment(){let e=this.paths();return{ANDROID_HOME:e.root,ANDROID_SDK_ROOT:e.root,ANDROID_AVD_HOME:e.avdHome}}async ensureSdkRootMarkers(){let e=this.paths().root;await de(M(e,"platforms"),{recursive:!0}),await de(M(e,"platform-tools"),{recursive:!0})}async status(){let e=this.paths(),r=null;try{r=JSON.parse(await Le(e.manifest,"utf8"))}catch{}if(!r||r.schemaVersion!==je)return{emulator:!1,systemImage:!1};let o=this.deps.os==="win32"?"emulator.exe":"emulator";return{emulator:!!r.components.emulator&&await le(M(e.emulatorDir,o)),systemImage:!!r.components.systemImage&&await le(M(e.systemImageDir,"system.img"))}}},ue;function B(){return ue??=new J,ue}var G="android",et="http://127.0.0.1:4723/status",tt=2e3,z=(()=>{let t=Number(process.env.KANE_CLI_EMULATOR_BOOT_TIMEOUT_MS);return Number.isFinite(t)&&t>=3e4?t:3e5})(),it=1e3,nt=3e5;var rt=5,ce="Run `kane-cli doctor --target emulator --install` to install the managed Appium tree.",st={device:"ready",unauthorized:"unauthorized",offline:"offline"};function ot(t){let e={};for(let r of t){let o=r.indexOf(":");o<=0||(e[r.slice(0,o)]=r.slice(o+1))}return e}function at(t){let e=[];for(let r of t.split(`
2
+ import{a as ae}from"./chunk-MMBBQ4OZ.js";import{j as R}from"./chunk-D4FFXCX6.js";import{c as ie,e as ne,i as re,j as K}from"./chunk-Z7S3IWUX.js";import{d as $,e as oe}from"./chunk-4JOD47QI.js";import{a as se}from"./chunk-RZ4F3BHX.js";import{spawn as ze}from"child_process";import{closeSync as Xe,existsSync as Ge,mkdirSync as We,openSync as Ye,readFileSync as Ze,rmSync as Qe}from"fs";import{homedir as ge}from"os";import{dirname as X,join as S}from"path";import{access as Re,mkdir as de,readFile as Le}from"fs/promises";import{homedir as Ce}from"os";import{arch as Fe,platform as Be}from"process";import{join as M}from"path";var Ue=35,qe="google_apis",Ve="KaneCLI_Pixel_API35",He="KaneAI_Pixel_API35";function Ht(t){return t===He?Ve:t}var je=1;function Ke(t,e){return t==="darwin"&&e==="arm64"?"arm64-v8a":"x86_64"}function Je(){return{home:Ce(),os:Be,arch:Fe}}async function le(t){try{return await Re(t),!0}catch{return!1}}var J=class{deps;constructor(e={}){this.deps={...Je(),...e}}paths(){let e=M(this.deps.home,".testmuai","kaneai","mobile"),r=M(e,"android-sdk");return{root:r,emulatorDir:M(r,"emulator"),systemImageDir:M(r,"system-images",`android-${Ue}`,qe,Ke(this.deps.os,this.deps.arch)),avdHome:M(e,"avd"),manifest:M(r,"sdk-manifest.json")}}environment(){let e=this.paths();return{ANDROID_HOME:e.root,ANDROID_SDK_ROOT:e.root,ANDROID_AVD_HOME:e.avdHome}}async ensureSdkRootMarkers(){let e=this.paths().root;await de(M(e,"platforms"),{recursive:!0}),await de(M(e,"platform-tools"),{recursive:!0})}async status(){let e=this.paths(),r=null;try{r=JSON.parse(await Le(e.manifest,"utf8"))}catch{}if(!r||r.schemaVersion!==je)return{emulator:!1,systemImage:!1};let o=this.deps.os==="win32"?"emulator.exe":"emulator";return{emulator:!!r.components.emulator&&await le(M(e.emulatorDir,o)),systemImage:!!r.components.systemImage&&await le(M(e.systemImageDir,"system.img"))}}},ue;function B(){return ue??=new J,ue}var G="android",et="http://127.0.0.1:4723/status",tt=2e3,z=(()=>{let t=Number(process.env.KANE_CLI_EMULATOR_BOOT_TIMEOUT_MS);return Number.isFinite(t)&&t>=3e4?t:3e5})(),it=1e3,nt=3e5;var rt=5,ce="Run `kane-cli doctor --target emulator --install` to install the managed Appium tree.",st={device:"ready",unauthorized:"unauthorized",offline:"offline"};function ot(t){let e={};for(let r of t){let o=r.indexOf(":");o<=0||(e[r.slice(0,o)]=r.slice(o+1))}return e}function at(t){let e=[];for(let r of t.split(`
3
3
  `)){let o=r.trim();if(!o||o.startsWith("*"))continue;let u=o.toLowerCase();if(u.startsWith("list of devices")||u.startsWith("adb server"))continue;let g=o.split(/\s+/),p=g[0],w=g[1];if(!p||!w)continue;let v=ot(g.slice(2)),x=/^(localhost|127\.0\.0\.1):\d{1,5}$/.test(p),P=/^[A-Za-z0-9._-]+:\d{1,5}$/.test(p),C=/^sdk_/.test(v.product??"")||/^sdk_/.test(v.model??"")||/^emu/.test(v.device??"");if(!p.startsWith("emulator-")&&!x&&!(P&&C))continue;let l=v.model?v.model.replace(/_/g," "):void 0;e.push({platform:G,kind:"emulator",id:p,displayName:l??p,state:st[w]??"offline"})}return e}function me(t){let e=[];for(let r of t.split(`
4
4
  `)){let o=r.trim();o&&/^[A-Za-z0-9._-]+$/.test(o)&&(e.includes(o)||e.push(o))}return e}function dt(t){for(let e of t.split(`
5
5
  `)){let r=e.trim();if(!(!r||r==="OK"))return r}}function lt(t){let e=/^Version\s+(\S+)/m.exec(t);return e?.[1]?e[1].split("-")[0]:/Android Debug Bridge version\s+(\S+)/.exec(t)?.[1]}function ut(t){let e=[];for(let r of t.split(`