clikcode 1.0.3 → 1.0.5

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 (323) hide show
  1. package/README.md +25 -14
  2. package/dist/chunk-23TDEBGZ.js +71 -0
  3. package/dist/chunk-25T3GVS7.js +425 -0
  4. package/dist/chunk-2BBELGHY.js +11 -0
  5. package/dist/chunk-2EOL5PZL.js +208 -0
  6. package/dist/chunk-2GAB36IE.js +26 -0
  7. package/dist/chunk-2OLS7V66.js +2440 -0
  8. package/dist/chunk-2QFO2URB.js +179 -0
  9. package/dist/chunk-2QWPQRSU.js +254 -0
  10. package/dist/chunk-2YPAPAR3.js +184 -0
  11. package/dist/chunk-2ZAG5372.js +33 -0
  12. package/dist/chunk-32IKAIZC.js +12507 -0
  13. package/dist/chunk-34AZEGYW.js +95 -0
  14. package/dist/chunk-34JQYQCA.js +175 -0
  15. package/dist/chunk-34ZISPAO.js +67 -0
  16. package/dist/chunk-3AAAARE6.js +46 -0
  17. package/dist/chunk-3AJ6Q3OY.js +510 -0
  18. package/dist/chunk-3B2CHX7M.js +884 -0
  19. package/dist/chunk-3BUFORRX.js +59 -0
  20. package/dist/chunk-3QLHYYFK.js +30 -0
  21. package/dist/chunk-3RXBMYKZ.js +140 -0
  22. package/dist/chunk-3TFNIJWS.js +52 -0
  23. package/dist/chunk-3W3IPDFP.js +119 -0
  24. package/dist/chunk-3WMS7SEE.js +417 -0
  25. package/dist/chunk-435ZNSZ3.js +23 -0
  26. package/dist/chunk-4AQ5NINV.js +39 -0
  27. package/dist/chunk-4GVEJ5FK.js +168 -0
  28. package/dist/chunk-4GXAO3UY.js +262 -0
  29. package/dist/chunk-4L2ZZM4Q.js +332 -0
  30. package/dist/chunk-4LPDG57B.js +17 -0
  31. package/dist/chunk-4NN3XQQT.js +223 -0
  32. package/dist/chunk-4QZEZME7.js +54 -0
  33. package/dist/chunk-4R6CSC3S.js +38 -0
  34. package/dist/chunk-4RHXTL3W.js +514 -0
  35. package/dist/chunk-4SJMPTVQ.js +18 -0
  36. package/dist/chunk-4VY7G6TX.js +114 -0
  37. package/dist/chunk-5642PBF7.js +124 -0
  38. package/dist/chunk-5B6TVO4A.js +33 -0
  39. package/dist/chunk-5BJLDUPL.js +62 -0
  40. package/dist/chunk-5HMFFJWU.js +19 -0
  41. package/dist/chunk-5IKLK33T.js +69 -0
  42. package/dist/chunk-5NQ5FFMX.js +44 -0
  43. package/dist/chunk-5QNNW5L6.js +176 -0
  44. package/dist/chunk-5SM5UAWN.js +239 -0
  45. package/dist/chunk-5WYJTA6O.js +74 -0
  46. package/dist/chunk-5ZSR2Y5T.js +227 -0
  47. package/dist/chunk-5ZWUM5GH.js +39 -0
  48. package/dist/chunk-64E7D4HY.js +364 -0
  49. package/dist/chunk-6CK466BC.js +99 -0
  50. package/dist/chunk-6ES45HHO.js +138 -0
  51. package/dist/chunk-6HYEZFGL.js +277 -0
  52. package/dist/chunk-6Y7HLXGW.js +29 -0
  53. package/dist/chunk-6YKK4FYR.js +258 -0
  54. package/dist/chunk-74WNMLMS.js +117 -0
  55. package/dist/chunk-7AULZ7OD.js +55 -0
  56. package/dist/chunk-7DOKGSUN.js +101 -0
  57. package/dist/chunk-7IH5LTIZ.js +195 -0
  58. package/dist/chunk-7ISTS5NS.js +21 -0
  59. package/dist/chunk-7NMUTGOW.js +527 -0
  60. package/dist/chunk-7PNHUZEL.js +153 -0
  61. package/dist/chunk-7TSQLONI.js +88 -0
  62. package/dist/chunk-AE7TOLD5.js +30 -0
  63. package/dist/chunk-AEMHSXKA.js +130 -0
  64. package/dist/chunk-AKRYTS2D.js +211 -0
  65. package/dist/chunk-AMNSE36L.js +59 -0
  66. package/dist/chunk-AZVD74ZV.js +23 -0
  67. package/dist/chunk-B35DVOTK.js +1981 -0
  68. package/dist/chunk-B4HNJRAH.js +626 -0
  69. package/dist/chunk-B5WYPPHS.js +13 -0
  70. package/dist/chunk-BBOVDXQM.js +59 -0
  71. package/dist/chunk-BD3ECZLK.js +62 -0
  72. package/dist/chunk-BDGSOT74.js +4578 -0
  73. package/dist/chunk-BF5VEOPK.js +31 -0
  74. package/dist/chunk-BFFRW4XH.js +47 -0
  75. package/dist/chunk-BFPC6PEW.js +208 -0
  76. package/dist/chunk-BGEMY2JJ.js +376 -0
  77. package/dist/chunk-BISGNHKD.js +35 -0
  78. package/dist/chunk-BMRAEBRY.js +21 -0
  79. package/dist/chunk-BNTXAZXW.js +127 -0
  80. package/dist/chunk-BOQBXGSN.js +75 -0
  81. package/dist/chunk-BTJDSTQP.js +213 -0
  82. package/dist/chunk-BUOPJQP5.js +218 -0
  83. package/dist/chunk-BXFJS65Q.js +52 -0
  84. package/dist/chunk-BXPQFSX5.js +59 -0
  85. package/dist/chunk-C57LIWNY.js +1269 -0
  86. package/dist/chunk-C6YVCCWR.js +74 -0
  87. package/dist/chunk-CAADDF6M.js +167 -0
  88. package/dist/chunk-CBANJFBO.js +69 -0
  89. package/dist/chunk-CERF3RIB.js +597 -0
  90. package/dist/chunk-COAS5ETR.js +46 -0
  91. package/dist/chunk-CQ7J6UQ7.js +78 -0
  92. package/dist/chunk-CRUVYGO2.js +26 -0
  93. package/dist/chunk-CVFVFRGN.js +58 -0
  94. package/dist/chunk-D2UK66HM.js +37 -0
  95. package/dist/chunk-D2W7SA4R.js +18 -0
  96. package/dist/chunk-DA44ZENT.js +501 -0
  97. package/dist/chunk-DAJ76TOC.js +99 -0
  98. package/dist/chunk-DCZ6CIUM.js +147 -0
  99. package/dist/chunk-DF35KMXM.js +1314 -0
  100. package/dist/chunk-DGASQT26.js +151 -0
  101. package/dist/chunk-DJT57C5P.js +55 -0
  102. package/dist/chunk-DKDPZTD3.js +44 -0
  103. package/dist/chunk-DQYVQ2N7.js +77 -0
  104. package/dist/chunk-DRTP2RTY.js +266 -0
  105. package/dist/chunk-DW2BMUKY.js +61 -0
  106. package/dist/chunk-DW5T5ZVU.js +307 -0
  107. package/dist/chunk-DXKNDNFC.js +164 -0
  108. package/dist/chunk-DZEQ7UYR.js +291 -0
  109. package/dist/chunk-E4F4OUAC.js +463 -0
  110. package/dist/chunk-EE4B6A7W.js +69 -0
  111. package/dist/chunk-EISKIYWG.js +23 -0
  112. package/dist/chunk-EKAQK7UQ.js +235 -0
  113. package/dist/chunk-EOBTJV32.js +123 -0
  114. package/dist/chunk-ESF3DIZY.js +325 -0
  115. package/dist/chunk-EVOHOZ4U.js +45 -0
  116. package/dist/chunk-EXN4KHLB.js +110 -0
  117. package/dist/chunk-F252T6Y3.js +78 -0
  118. package/dist/chunk-F3DP4ZA2.js +40 -0
  119. package/dist/chunk-F6F47QAY.js +58 -0
  120. package/dist/chunk-FA3Y23ZW.js +57 -0
  121. package/dist/chunk-FBKXE4EJ.js +640 -0
  122. package/dist/chunk-FCGEB3H6.js +23 -0
  123. package/dist/chunk-FF7ZVYJF.js +3732 -0
  124. package/dist/chunk-FFGKN6L3.js +39 -0
  125. package/dist/chunk-FFGU4GCC.js +94 -0
  126. package/dist/chunk-FSFDAOVP.js +74 -0
  127. package/dist/chunk-FT5TX7OX.js +1573 -0
  128. package/dist/chunk-G3QP67Z7.js +232 -0
  129. package/dist/chunk-G5ORJKV2.js +179 -0
  130. package/dist/chunk-GFNC62PE.js +111 -0
  131. package/dist/chunk-GGK43Q3N.js +67 -0
  132. package/dist/chunk-GGYKY4GF.js +11537 -0
  133. package/dist/chunk-GGYNHGNJ.js +55 -0
  134. package/dist/chunk-GLY7RM3C.js +354 -0
  135. package/dist/chunk-GQBZU6EO.js +20 -0
  136. package/dist/chunk-GSXENUZL.js +9 -0
  137. package/dist/chunk-GTOAT5D3.js +40 -0
  138. package/dist/chunk-GWCMDPQU.js +1007 -0
  139. package/dist/chunk-GXYSMYHJ.js +152 -0
  140. package/dist/chunk-GYMAI5NY.js +14 -0
  141. package/dist/chunk-H2VZMKPE.js +30 -0
  142. package/dist/chunk-H4THUNBM.js +2091 -0
  143. package/dist/chunk-HGRVSNUZ.js +361 -0
  144. package/dist/chunk-HI4VY473.js +27 -0
  145. package/dist/chunk-HOJRSD3Q.js +447 -0
  146. package/dist/chunk-HRX25W35.js +82 -0
  147. package/dist/chunk-HSE4AQYV.js +55 -0
  148. package/dist/chunk-HU5SSUFX.js +383 -0
  149. package/dist/chunk-I3GDBJLH.js +196 -0
  150. package/dist/chunk-I75EDU75.js +684 -0
  151. package/dist/chunk-IBA7DMIO.js +20 -0
  152. package/dist/chunk-IC6N4NZA.js +231 -0
  153. package/dist/chunk-IF43HIGV.js +284 -0
  154. package/dist/chunk-IGZ6C2MC.js +439 -0
  155. package/dist/chunk-IMLTL2MY.js +192 -0
  156. package/dist/chunk-IMZL6SGR.js +33 -0
  157. package/dist/chunk-IS4USJPY.js +516 -0
  158. package/dist/chunk-ISFSPN2F.js +82 -0
  159. package/dist/chunk-IXE7GTFI.js +55 -0
  160. package/dist/chunk-IZ77QJQG.js +36 -0
  161. package/dist/chunk-J2PACWRQ.js +34 -0
  162. package/dist/chunk-J6EGFVQX.js +180 -0
  163. package/dist/chunk-JEKOD43D.js +22 -0
  164. package/dist/chunk-JGIWATSG.js +30 -0
  165. package/dist/chunk-JYBONKD4.js +43 -0
  166. package/dist/chunk-K2NLG2HK.js +454 -0
  167. package/dist/chunk-KCQ4TBLS.js +164 -0
  168. package/dist/chunk-KD5KIVMS.js +176 -0
  169. package/dist/chunk-KHW6TX6I.js +63 -0
  170. package/dist/chunk-KI5GZFCE.js +520 -0
  171. package/dist/chunk-KN34B7NO.js +105 -0
  172. package/dist/chunk-KYUHIFP3.js +136 -0
  173. package/dist/chunk-KZL5VS4B.js +300 -0
  174. package/dist/chunk-L3VW3QIH.js +48 -0
  175. package/dist/chunk-LA6MG4ET.js +2110 -0
  176. package/dist/chunk-LAVFOA3S.js +66 -0
  177. package/dist/chunk-LB4OA77N.js +13 -0
  178. package/dist/chunk-LBFRF2K4.js +196 -0
  179. package/dist/chunk-LM6EIA4B.js +93 -0
  180. package/dist/chunk-LPCNRGJ7.js +692 -0
  181. package/dist/chunk-LSLNL5T3.js +168 -0
  182. package/dist/chunk-LVRRWP4W.js +568 -0
  183. package/dist/chunk-LWCFBRHL.js +33 -0
  184. package/dist/chunk-LXFTMGZZ.js +166 -0
  185. package/dist/chunk-M33LVA4M.js +151 -0
  186. package/dist/chunk-M3FO5UMK.js +4944 -0
  187. package/dist/chunk-M5QNDBAY.js +66 -0
  188. package/dist/chunk-M6ND6KBE.js +1291 -0
  189. package/dist/chunk-M7H3WQTE.js +76 -0
  190. package/dist/chunk-MCBRVPA7.js +191 -0
  191. package/dist/chunk-MCSDWZET.js +91 -0
  192. package/dist/chunk-MDT5XDXL.js +289 -0
  193. package/dist/chunk-MJG3IQY4.js +91 -0
  194. package/dist/chunk-MOU3N2UL.js +44 -0
  195. package/dist/chunk-MP4KZOQC.js +3451 -0
  196. package/dist/chunk-MPAJ446F.js +66 -0
  197. package/dist/chunk-MVJZZ6AL.js +16 -0
  198. package/dist/chunk-MXS6S2PY.js +253 -0
  199. package/dist/chunk-N3SFDYM7.js +291 -0
  200. package/dist/chunk-NAOX3JUB.js +13 -0
  201. package/dist/chunk-NEKKIBCX.js +283 -0
  202. package/dist/chunk-NKDATMEM.js +133 -0
  203. package/dist/chunk-NR4FMC4K.js +395 -0
  204. package/dist/chunk-NSOHOJBR.js +221 -0
  205. package/dist/chunk-NTDB6QKF.js +29 -0
  206. package/dist/chunk-NWEYRBWK.js +25 -0
  207. package/dist/chunk-O2YSNYWD.js +23 -0
  208. package/dist/chunk-O3EW7LAY.js +54 -0
  209. package/dist/chunk-O7BNJIXU.js +366 -0
  210. package/dist/chunk-OARL2NXZ.js +116 -0
  211. package/dist/chunk-OHKZUEJW.js +351 -0
  212. package/dist/chunk-OKU45BXA.js +647 -0
  213. package/dist/chunk-OL4JBD3J.js +59 -0
  214. package/dist/chunk-OLUO5DDR.js +192 -0
  215. package/dist/chunk-OQ245JLA.js +196 -0
  216. package/dist/chunk-P72UZAQI.js +289 -0
  217. package/dist/chunk-PAL2ENB6.js +20 -0
  218. package/dist/chunk-PAXYQZH7.js +53 -0
  219. package/dist/chunk-PDPEM5VW.js +51 -0
  220. package/dist/chunk-PEWCDI2C.js +668 -0
  221. package/dist/chunk-PGZ54EDX.js +27 -0
  222. package/dist/chunk-PRWVLDZF.js +73 -0
  223. package/dist/chunk-PSQQ75VJ.js +52 -0
  224. package/dist/chunk-PUOVIFHW.js +118 -0
  225. package/dist/chunk-PWBF2X3V.js +107 -0
  226. package/dist/chunk-PWXII6HF.js +43 -0
  227. package/dist/chunk-Q35VLJRT.js +80 -0
  228. package/dist/chunk-QJP7EYGL.js +128 -0
  229. package/dist/chunk-QPQKX2MK.js +8836 -0
  230. package/dist/chunk-QQRLPY25.js +1053 -0
  231. package/dist/chunk-QUS4ER2W.js +407 -0
  232. package/dist/chunk-QYHI3YET.js +29 -0
  233. package/dist/chunk-QYRU2UQI.js +32 -0
  234. package/dist/chunk-R6XVVQGC.js +13 -0
  235. package/dist/chunk-R7QN6ONS.js +483 -0
  236. package/dist/chunk-RD23MPGC.js +221 -0
  237. package/dist/chunk-RDDWQBEM.js +185 -0
  238. package/dist/chunk-RDLLDYFO.js +104 -0
  239. package/dist/chunk-RE4TGORR.js +84 -0
  240. package/dist/chunk-RJLHVYQY.js +217 -0
  241. package/dist/chunk-RJLPTWHW.js +905 -0
  242. package/dist/chunk-RKUVLRZI.js +295 -0
  243. package/dist/chunk-ROGXPGYR.js +37 -0
  244. package/dist/chunk-RSZGEL5U.js +163 -0
  245. package/dist/chunk-RVUOIJXN.js +909 -0
  246. package/dist/chunk-RW7F4JRP.js +11 -0
  247. package/dist/chunk-S4UO3AO3.js +53 -0
  248. package/dist/chunk-S5JAAF6S.js +585 -0
  249. package/dist/chunk-SNU37TQI.js +56 -0
  250. package/dist/chunk-SQVUDO2O.js +31 -0
  251. package/dist/chunk-SYVHIYQT.js +66 -0
  252. package/dist/chunk-SZBQMTG2.js +85 -0
  253. package/dist/chunk-T5VCXA3J.js +25 -0
  254. package/dist/chunk-TK6NSP56.js +30 -0
  255. package/dist/chunk-TKWVMA6L.js +22 -0
  256. package/dist/chunk-TQDKJHWX.js +59 -0
  257. package/dist/chunk-TQDM7S5N.js +127 -0
  258. package/dist/chunk-TULAXS77.js +23 -0
  259. package/dist/chunk-TVT45XNH.js +4625 -0
  260. package/dist/chunk-TWCVV2JO.js +467 -0
  261. package/dist/chunk-U4DKAD6S.js +47 -0
  262. package/dist/chunk-UA5K2BTI.js +564 -0
  263. package/dist/chunk-UAMKCMOK.js +40 -0
  264. package/dist/chunk-UBMVADBF.js +51 -0
  265. package/dist/chunk-UFQ5A5PW.js +645 -0
  266. package/dist/chunk-UOD2SOLL.js +1301 -0
  267. package/dist/chunk-UTSB4LOW.js +156 -0
  268. package/dist/chunk-UVXNIUTN.js +412 -0
  269. package/dist/chunk-UXVPXYPE.js +90 -0
  270. package/dist/chunk-UYEEMIWR.js +374 -0
  271. package/dist/chunk-VBGM5ZBW.js +54 -0
  272. package/dist/chunk-VEWPCZPG.js +762 -0
  273. package/dist/chunk-VIRDLZ5E.js +108 -0
  274. package/dist/chunk-VMPO7WKN.js +52 -0
  275. package/dist/chunk-W2NVSDO5.js +5122 -0
  276. package/dist/chunk-W3YYPBEA.js +176 -0
  277. package/dist/chunk-W5AYOICN.js +280 -0
  278. package/dist/chunk-W5GZOIUF.js +27 -0
  279. package/dist/chunk-WHKNLZ3C.js +76 -0
  280. package/dist/chunk-WKBEPPQ5.js +1409 -0
  281. package/dist/chunk-WM3Z6QKQ.js +151 -0
  282. package/dist/chunk-WMI2TPMA.js +31 -0
  283. package/dist/chunk-WNX5VD7S.js +150 -0
  284. package/dist/chunk-WOVTYST3.js +60 -0
  285. package/dist/chunk-WPB5WEZJ.js +546 -0
  286. package/dist/chunk-WUO5EOAT.js +44 -0
  287. package/dist/chunk-WWLJMP6D.js +133 -0
  288. package/dist/chunk-WZMLH3XP.js +58 -0
  289. package/dist/chunk-WZYVLUVQ.js +79 -0
  290. package/dist/chunk-X2OCPVU5.js +135 -0
  291. package/dist/chunk-X3CL6DTR.js +95 -0
  292. package/dist/chunk-X6WF7JEV.js +354 -0
  293. package/dist/chunk-XAHGBPWT.js +44 -0
  294. package/dist/chunk-XCKQ5BM2.js +228 -0
  295. package/dist/chunk-XIBYREEY.js +106 -0
  296. package/dist/chunk-XKW5NDMR.js +378 -0
  297. package/dist/chunk-XRDALAO3.js +100 -0
  298. package/dist/chunk-XUP22EAS.js +41 -0
  299. package/dist/chunk-XWAC3MKW.js +243 -0
  300. package/dist/chunk-Y3R7JMXB.js +59 -0
  301. package/dist/chunk-Y54LTP4W.js +82 -0
  302. package/dist/chunk-Y7UECI4M.js +99 -0
  303. package/dist/chunk-YACGDFHC.js +47 -0
  304. package/dist/chunk-YHNIQPKY.js +71 -0
  305. package/dist/chunk-YMBR6HYP.js +111 -0
  306. package/dist/chunk-YMCH3L2S.js +26 -0
  307. package/dist/chunk-Z4ZU6T7V.js +99 -0
  308. package/dist/chunk-ZDPF67ZZ.js +173 -0
  309. package/dist/chunk-ZFC2Q67K.js +101 -0
  310. package/dist/chunk-ZGHNNSCT.js +114 -0
  311. package/dist/chunk-ZGX3ERAT.js +173 -0
  312. package/dist/chunk-ZI3YHEBY.js +37 -0
  313. package/dist/chunk-ZN7G6JLS.js +639 -0
  314. package/dist/chunk-ZNPFQMXT.js +47 -0
  315. package/dist/chunk-ZOU3LV4U.js +63 -0
  316. package/dist/chunk-ZT7B4H2V.js +117 -0
  317. package/dist/chunk-ZZCBDNZI.js +58 -0
  318. package/dist/cli.js +498 -112593
  319. package/dist/computer-tools.js +36642 -21258
  320. package/dist/harness-catalog.cjs +88 -43
  321. package/dist/index.js +1 -1
  322. package/dist/local-model-supervisor.cjs +555 -0
  323. package/package.json +3 -4
@@ -0,0 +1,136 @@
1
+ import { createRequire as __clikcodeCreateRequire } from 'node:module';
2
+ const require = __clikcodeCreateRequire(import.meta.url);
3
+ import {
4
+ reloadCustomAcpHarnesses
5
+ } from "./chunk-RSZGEL5U.js";
6
+ import {
7
+ augmentProcessPath
8
+ } from "./chunk-WZYVLUVQ.js";
9
+
10
+ // src/runtime/lazy-bridge.ts
11
+ import { createRequire } from "node:module";
12
+ import { fileURLToPath } from "node:url";
13
+ var require2 = createRequire(import.meta.url);
14
+ function sibling(name) {
15
+ const attempts = [
16
+ () => require2(`../${name}`),
17
+ () => require2(fileURLToPath(new URL(`./${name}`, import.meta.url))),
18
+ // Source tests and a source entry load the bundle the build already wrote.
19
+ () => require2(fileURLToPath(new URL(`../../dist/${name}`, import.meta.url)))
20
+ ];
21
+ let missing;
22
+ for (const attempt of attempts) {
23
+ try {
24
+ return attempt();
25
+ } catch (error) {
26
+ if (error.code !== "MODULE_NOT_FOUND") throw error;
27
+ missing = error;
28
+ }
29
+ }
30
+ throw missing;
31
+ }
32
+ var routerRuntime;
33
+ var localRouter = () => routerRuntime ??= sibling("ai-router-runtime.cjs");
34
+ var catalogRuntime;
35
+ function localCatalog() {
36
+ if (!catalogRuntime) {
37
+ catalogRuntime = sibling("harness-catalog.cjs");
38
+ augmentProcessPath(catalogRuntime.allLocalHarnesses());
39
+ }
40
+ reloadCustomAcpHarnesses(catalogRuntime);
41
+ return catalogRuntime;
42
+ }
43
+ function withoutRuntime(read, structural) {
44
+ try {
45
+ return read(localCatalog());
46
+ } catch (error) {
47
+ if (error.code !== "MODULE_NOT_FOUND") throw error;
48
+ return structural();
49
+ }
50
+ }
51
+ var isDirectModelProvider = (provider) => Boolean(localCatalog().getAiProvider(provider));
52
+ var localHarnessForCommand = (command) => localCatalog().localHarnessForCommand(command);
53
+ var localHarnessForProvider = (provider) => localCatalog().localHarnessForProvider(provider);
54
+ var localHarnessCapabilityManifest = (harness) => localCatalog().localHarnessCapabilityManifest(harness);
55
+ var harnessSupportsEffort = (harness) => localCatalog().harnessSupportsEffort(harness);
56
+ var harnessSupportsModelSelection = (harness) => localCatalog().harnessSupportsModelSelection(harness);
57
+ var harnessSupportsPermissionMode = (harness, mode) => localCatalog().harnessSupportsPermissionMode(harness, mode);
58
+ var harnessSupportsImages = (harness) => localCatalog().harnessSupportsImages(harness);
59
+ var builtInHarnesses = () => localCatalog().AI_LOCAL_HARNESSES;
60
+ var harnessAdapterVersion = () => localCatalog().AI_LOCAL_HARNESS_ADAPTER_VERSION;
61
+ var keyProviders = () => localCatalog().KEY_PROVIDERS;
62
+ var allLocalHarnesses = () => localCatalog().allLocalHarnesses();
63
+ var harnessAcpLaunch = (harness, input) => localCatalog().harnessAcpLaunch(harness, input);
64
+ var harnessTierRank = (harness) => withoutRuntime(
65
+ (router) => router.harnessTierRank(harness),
66
+ () => ({ primary: 0, more: 1, experimental: 2 })[harness.tier ?? "experimental"] ?? 2
67
+ );
68
+ var nativeHarnessTurnArgv = (harness, input) => localCatalog().nativeHarnessTurnArgv(harness, input);
69
+ var harnessLoginArgvForModel = (harness, model) => localCatalog().harnessLoginArgvForModel(harness, model);
70
+ var modelProvider = (harness, model) => localCatalog().modelProvider(harness, model);
71
+ var modelDisplayId = (harness, model) => localCatalog().modelDisplayId(harness, model);
72
+ var modelIdFromDisplay = (harness, typed) => localCatalog().modelIdFromDisplay(harness, typed);
73
+ var harnessReplyError = (harness, text) => localCatalog().harnessReplyError(harness, text);
74
+ var maxPromptArgvBytes = () => localCatalog().maxPromptArgvBytes;
75
+ var promptExceedsArgvLimit = (harness, prompt) => localCatalog().promptExceedsArgvLimit(harness, prompt);
76
+ var harnessCanRunTurns = (harness) => Boolean(harness.turn || harness.acp);
77
+ var harnessIntegrationLevel = (harness) => {
78
+ if (harness.integration) return harness.integration;
79
+ return withoutRuntime((router) => router.harnessIntegrationLevel(harness), () => {
80
+ if (harness.transport === "codex-app-server") return "native";
81
+ if (harness.transport === "acp" && harness.acp) return "structured";
82
+ if (harness.transport === "text-cli") return "compatibility";
83
+ return harness.turn && harness.turn.output !== "text" ? "structured" : "compatibility";
84
+ });
85
+ };
86
+ var harnessPreferredTransport = (harness) => withoutRuntime((router) => router.harnessTurnTransport(harness), () => {
87
+ if (harness.transport === "codex-app-server") return "codex-app-server";
88
+ const cli = harness.turn?.output === "text" ? "text-cli" : "structured-cli";
89
+ if (!harness.acp) return harness.turn ? cli : harness.transport ?? cli;
90
+ return "acp";
91
+ });
92
+ var streamLocalAiTurn = (input) => localRouter().streamAiChatTurn(input);
93
+ function homeRedirectEnvironment(harness, base, deps) {
94
+ if (harness.profileEnv !== "HOME" || base.HOME === void 0 || base.HOME === deps.home) return { ...base };
95
+ const defaults = withoutRuntime((router) => router.HOME_REDIRECT_ENV_DEFAULTS, () => ({}));
96
+ const environment = deps.env ?? process.env;
97
+ const result = { ...base };
98
+ for (const name of harness.profileEnvPassthrough ?? Object.keys(defaults)) {
99
+ if (result[name] !== void 0 || environment[name]) continue;
100
+ const target = defaults[name];
101
+ if (typeof target !== "string") continue;
102
+ const path = target.startsWith("~/") ? `${deps.home.replace(/[\\/]$/, "")}/${target.slice(2)}` : target;
103
+ if (deps.exists(path)) result[name] = path;
104
+ }
105
+ return result;
106
+ }
107
+
108
+ export {
109
+ isDirectModelProvider,
110
+ localHarnessForCommand,
111
+ localHarnessForProvider,
112
+ localHarnessCapabilityManifest,
113
+ harnessSupportsEffort,
114
+ harnessSupportsModelSelection,
115
+ harnessSupportsPermissionMode,
116
+ harnessSupportsImages,
117
+ builtInHarnesses,
118
+ harnessAdapterVersion,
119
+ keyProviders,
120
+ allLocalHarnesses,
121
+ harnessAcpLaunch,
122
+ harnessTierRank,
123
+ nativeHarnessTurnArgv,
124
+ harnessLoginArgvForModel,
125
+ modelProvider,
126
+ modelDisplayId,
127
+ modelIdFromDisplay,
128
+ harnessReplyError,
129
+ maxPromptArgvBytes,
130
+ promptExceedsArgvLimit,
131
+ harnessCanRunTurns,
132
+ harnessIntegrationLevel,
133
+ harnessPreferredTransport,
134
+ streamLocalAiTurn,
135
+ homeRedirectEnvironment
136
+ };
@@ -0,0 +1,300 @@
1
+ import { createRequire as __clikcodeCreateRequire } from 'node:module';
2
+ const require = __clikcodeCreateRequire(import.meta.url);
3
+ import {
4
+ OPENS_ANOTHER_APP,
5
+ PRESSABLE_SITE,
6
+ withPageControls
7
+ } from "./chunk-DW2BMUKY.js";
8
+ import {
9
+ quiet
10
+ } from "./chunk-RDDWQBEM.js";
11
+ import {
12
+ scrubSecrets
13
+ } from "./chunk-CBANJFBO.js";
14
+
15
+ // src/agent/computer/keygrab-live.ts
16
+ import { mkdtemp } from "node:fs/promises";
17
+ import { tmpdir } from "node:os";
18
+ import { join } from "node:path";
19
+ var DEFAULT_TAB = "keygrab";
20
+ var clean = (text) => scrubSecrets(text).replace(/\s+/g, " ").trim().slice(0, 300);
21
+ function collectView(readControls) {
22
+ const doc = globalThis.document;
23
+ const norm = (t) => (t ?? "").replace(/\s+/g, " ").trim();
24
+ const all = (selector) => {
25
+ const found = [];
26
+ const walk = (root) => {
27
+ for (const n of Array.from(root.querySelectorAll(selector))) found.push(n);
28
+ for (const host of Array.from(root.querySelectorAll("*"))) if (host.shadowRoot) walk(host.shadowRoot);
29
+ };
30
+ walk(doc);
31
+ return found;
32
+ };
33
+ const controls = readControls();
34
+ const fields = [];
35
+ let hasPassword = false;
36
+ for (const n of all("input, textarea")) {
37
+ if (!n.getClientRects().length || /^(hidden|checkbox|radio|submit|button|file|image)$/.test(n.type ?? "")) continue;
38
+ if (n.type === "password") hasPassword = true;
39
+ const name = norm(n.getAttribute("aria-label")) || norm(n.labels?.[0]?.textContent) || norm(n.getAttribute("placeholder"));
40
+ if (name && !fields.includes(name)) fields.push(name);
41
+ }
42
+ let text = doc.body?.innerText ?? "";
43
+ for (const host of Array.from(doc.querySelectorAll("*")).slice(0, 4e3)) {
44
+ if (host.shadowRoot) {
45
+ for (const child of Array.from(host.shadowRoot.children)) if (!/^(STYLE|SCRIPT|LINK)$/.test(child.tagName) && child.innerText) text += `
46
+ ${child.innerText}`;
47
+ }
48
+ }
49
+ return { text: text.slice(0, 6e3), controls, fields, hasPassword };
50
+ }
51
+ var VIEW_SOURCE = withPageControls(collectView, { pressable: PRESSABLE_SITE, otherApp: OPENS_ANOTHER_APP.source, cap: 2500, shadow: true, detail: true });
52
+ var SKIP_FRAME = /recaptcha|hcaptcha|challenges\.cloudflare|turnstile|arkoselabs|funcaptcha|doubleclick|googletagmanager|googlesyndication|facebook\.com\/tr|youtube\.com|vimeo\.com|google\.com\/maps|stripe\.com\/(?:v3|elements-inner-(?:fraud|controller))|intercom|crisp\.chat|hotjar|clarity\.ms/i;
53
+ var MAX_FRAMES = 6;
54
+ async function lookAt(page) {
55
+ const seen = await page.evaluate(VIEW_SOURCE).catch(() => ({ text: "", controls: [], fields: [], hasPassword: false }));
56
+ const controls = [...seen.controls];
57
+ const fields = [...seen.fields];
58
+ let text = seen.text, hasPassword = seen.hasPassword;
59
+ let read = 0;
60
+ for (const frame of page.frames()) {
61
+ if (frame === page.mainFrame() || read >= MAX_FRAMES) continue;
62
+ const src = frame.url();
63
+ if (!src || src === "about:blank" || SKIP_FRAME.test(src)) continue;
64
+ try {
65
+ const element = await frame.frameElement();
66
+ const box = await element.boundingBox();
67
+ if (!box || box.width < 40 || box.height < 24) continue;
68
+ const inside = await Promise.race([frame.evaluate(VIEW_SOURCE), new Promise((resolve) => setTimeout(() => resolve(void 0), 3e3))]);
69
+ if (!inside) continue;
70
+ read++;
71
+ const have = new Set(controls.map((c) => `${c.leaf ? "l" : "p"}|${c.name}`));
72
+ for (const c of inside.controls) if (!have.has(`${c.leaf ? "l" : "p"}|${c.name}`)) controls.push({ ...c, frame: true });
73
+ for (const f of inside.fields) if (!fields.includes(f)) fields.push(f);
74
+ if (inside.hasPassword) hasPassword = true;
75
+ if (inside.text.trim()) text = `${text}
76
+ ${inside.text}`.slice(0, 8e3);
77
+ } catch {
78
+ }
79
+ }
80
+ const check = await (await import("./chunk-F3DP4ZA2.js")).detectHumanCheck(page).catch(quiet("agent/computer/keygrab-live"));
81
+ return { url: page.url(), text, controls, fields, hasPassword, ...check ? { captchaFrame: true } : {} };
82
+ }
83
+ async function liveKeygrabPort(options) {
84
+ const { computerWebTool } = await import("./chunk-4VY7G6TX.js");
85
+ const { computerPage } = await import("./chunk-ZFC2Q67K.js");
86
+ const { profileEmail } = await import("./chunk-BXFJS65Q.js");
87
+ const ctx = { stateDir: options.stateDir, ...options.signal ? { signal: options.signal } : {} };
88
+ const run = async (args, ms = args.action === "login" || args.action === "read_email_code" || args.action === "open_email_link" ? 12e4 : 6e4) => {
89
+ const timeout = AbortSignal.timeout(ms);
90
+ const signal = options.signal ? AbortSignal.any([options.signal, timeout]) : timeout;
91
+ let timer;
92
+ const late = new Promise((resolve) => {
93
+ timer = setTimeout(() => resolve({ output: `${String(args.action)} did not finish within ${Math.round(ms / 1e3)}s`, isError: true }), ms + 2e3);
94
+ });
95
+ try {
96
+ return await Promise.race([computerWebTool.run({ tab: options.tab ?? DEFAULT_TAB, ...args }, { ...ctx, signal }), late]);
97
+ } finally {
98
+ if (timer) clearTimeout(timer);
99
+ }
100
+ };
101
+ const page = () => computerPage(options.stateDir, options.tab ?? DEFAULT_TAB);
102
+ const shots = options.screenshotDir ?? (() => mkdtemp(join(tmpdir(), "clikcode-keygrab-shots-")));
103
+ const failed = (r) => r.isError ? clean(r.output) : void 0;
104
+ return {
105
+ open: async (url) => failed(await run({ action: "open", url })),
106
+ look: async () => lookAt(await page()),
107
+ click: async (name) => failed(await run({ action: "click", target: name })),
108
+ press: async (key) => failed(await run({ action: "press", key })),
109
+ fill: async (name, text) => failed(await run({ action: "fill", target: name, ...text !== void 0 ? { text } : {} })),
110
+ login: async () => {
111
+ const r = await run({ action: "login" });
112
+ return { ok: !r.isError, message: clean(r.output.split("\n")[0] ?? "") };
113
+ },
114
+ cardAllowed: async (pageText) => (await (await import("./chunk-ISFSPN2F.js")).ruleAllowsCard(options.stateDir, pageText)).allowed,
115
+ authenticatorCode: async () => {
116
+ const { vendorMfaAccounts, vendorMfaAccountFor, vendorMfaCode } = await import("./chunk-PSQQ75VJ.js");
117
+ const account = vendorMfaAccountFor((await page()).url(), await vendorMfaAccounts());
118
+ if (!account) return void 0;
119
+ const code = await vendorMfaCode(account);
120
+ return "error" in code ? void 0 : code.code;
121
+ },
122
+ emailCode: async () => {
123
+ for (const subject of ["verification", "code", "confirm"]) {
124
+ const r = await run({ action: "read_email_code", subject, seconds: 45 });
125
+ const code = r.isError ? void 0 : /Code:\s*([A-Za-z0-9-]{4,10})\b/.exec(r.output)?.[1];
126
+ if (code) return code;
127
+ }
128
+ return void 0;
129
+ },
130
+ businessEmail: async () => {
131
+ const { emailStatus } = await import("./chunk-3AAAARE6.js");
132
+ const free = /@(?:gmail|googlemail|yahoo|ymail|outlook|hotmail|live|msn|icloud|me|mac|aol|proton(?:mail)?|gmx|mail|yandex|zoho)\./i;
133
+ return (await emailStatus(options.stateDir)).mailboxes.map((m) => m.email).find((address) => !free.test(address));
134
+ },
135
+ smsCode: async (since) => {
136
+ const { smsSource, twilioSms, waitForTextedCode } = await import("./chunk-DRTP2RTY.js");
137
+ if (!await smsSource(options.stateDir) && !await twilioSms(options.stateDir)) return void 0;
138
+ const found = await waitForTextedCode(options.stateDir, { since, seconds: 90, site: (await page()).url(), ...options.signal ? { signal: options.signal } : {} });
139
+ return "error" in found ? void 0 : found.code;
140
+ },
141
+ resetLink: async () => {
142
+ for (const subject of ["password", "reset"]) if (!(await run({ action: "open_email_link", subject, seconds: 60 })).isError) return true;
143
+ return false;
144
+ },
145
+ emailLink: async () => {
146
+ for (const subject of ["verify", "confirm", "welcome"]) if (!(await run({ action: "open_email_link", subject, seconds: 45 })).isError) return true;
147
+ return false;
148
+ },
149
+ capture: async (target) => {
150
+ const sendTo = options.delivery?.sendTo;
151
+ const r = await run({ action: "capture_secret", ...target ? { target } : {}, secret_name: options.delivery?.secretName ?? `${options.id}/key`, vendor: options.id, ...sendTo?.length ? { send_to: sendTo } : {} });
152
+ return { ok: !r.isError, message: clean(r.output) };
153
+ },
154
+ probe: async (url) => {
155
+ try {
156
+ const res = await fetch(url, { redirect: "follow", signal: AbortSignal.timeout(8e3), headers: { "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124 Safari/537.36", accept: "text/html,application/xhtml+xml" } });
157
+ const type = res.headers.get("content-type") ?? "";
158
+ await res.body?.cancel().catch(quiet("agent/computer/keygrab-live"));
159
+ return { html: /html/i.test(type), status: res.status, url: res.url || url };
160
+ } catch {
161
+ return void 0;
162
+ }
163
+ },
164
+ humanCheck: async () => {
165
+ const { captchaSolvingAllowed } = await import("./chunk-YHNIQPKY.js");
166
+ const { passHumanCheck } = await import("./chunk-F3DP4ZA2.js");
167
+ return (await passHumanCheck(await page(), { stateDir: options.stateDir, solve: await captchaSolvingAllowed(options.stateDir), ...options.signal ? { signal: options.signal } : {} })).outcome;
168
+ },
169
+ screenshot: async () => {
170
+ try {
171
+ const p = await page();
172
+ if (p.isClosed()) return void 0;
173
+ const path = join(await shots(), `${options.id}.png`);
174
+ await p.screenshot({ path, timeout: 1e4 });
175
+ return path;
176
+ } catch {
177
+ return void 0;
178
+ }
179
+ },
180
+ profileEmail: async () => await profileEmail(options.stateDir)
181
+ };
182
+ }
183
+ async function liveKeygrab(options, id, url, budget) {
184
+ const [{ runKeygrab }, { listRecipes }, browser, recorder, park] = await Promise.all([import("./chunk-GWCMDPQU.js"), import("./chunk-LWCFBRHL.js"), import("./chunk-ZFC2Q67K.js"), import("./chunk-AE7TOLD5.js"), import("./chunk-H2VZMKPE.js")]);
185
+ const { closeComputerPage, releaseComputerBrowser } = browser;
186
+ const stamp = async () => (await listRecipes(options.stateDir).catch(() => [])).map((r) => `${r.host}:${r.loginRoute}:${r.verifiedAt}`).sort().join("|");
187
+ const changed = (a, b) => b.split("|").filter((x) => x && !a.split("|").includes(x)).map((x) => x.split(":")[0]);
188
+ const before = await stamp();
189
+ const TAB = options.tab ?? DEFAULT_TAB;
190
+ const journalKey = `${options.stateDir}#${TAB}`;
191
+ let parked = false;
192
+ try {
193
+ const marker = park.markerFor(id);
194
+ if (!budget.resume) {
195
+ const desk = await import("./chunk-MOU3N2UL.js");
196
+ const finished = (await desk.listDeskItems(options.stateDir)).filter((item) => item.resume === id && item.status !== "waiting");
197
+ if (finished.some((item) => item.status === "done")) {
198
+ const record2 = await park.loadParked(options.stateDir, id);
199
+ if (record2 && await browser.reattachParkedPage(options.stateDir, TAB, marker)) {
200
+ if (record2.journal) recorder.importJournal(journalKey, record2.journal);
201
+ budget = { ...budget, resume: record2 };
202
+ }
203
+ }
204
+ for (const item of finished) await desk.removeDeskItem(options.stateDir, item.id);
205
+ }
206
+ const delivery = options.delivery ?? budget.resume?.delivery;
207
+ const port = await liveKeygrabPort({ ...options, id, ...delivery ? { delivery } : {} });
208
+ const knownKeyPages = await knownKeyPagesFor(options.stateDir, [url, ...budget.alternates ?? []]);
209
+ const { computerTunable } = await import("./chunk-YHNIQPKY.js");
210
+ const log = await computerTunable(options.stateDir, "keygrabLog") ? (line) => void process.stderr.write(`${line}
211
+ `) : void 0;
212
+ const done = await runKeygrab(port, {
213
+ id,
214
+ url,
215
+ ...log ? { log } : {},
216
+ ...delivery?.keyName ? { keyName: delivery.keyName } : {},
217
+ maxMs: budget.maxMs,
218
+ ...knownKeyPages.length ? { knownKeyPages } : {},
219
+ ...budget.maxSteps ? { maxSteps: budget.maxSteps } : {},
220
+ ...budget.alternates?.length ? { alternates: budget.alternates } : {},
221
+ ...budget.resume ? { resume: { visited: budget.resume.visited, menus: budget.resume.menus, ...budget.resume.signedIn ? { signedIn: true } : {} } } : {}
222
+ });
223
+ if (done.ok) {
224
+ await park.clearParked(options.stateDir, id);
225
+ await browser.closeParkedPage(options.stateDir, marker).catch(quiet("agent/computer/keygrab-live"));
226
+ const hosts = [...new Set(changed(before, await stamp()))];
227
+ return { ok: true, note: `${done.note} (${done.steps} browser actions, signed in via ${done.route}; ${hosts.length ? `a recipe for ${hosts.join(", ")} was recorded` : "no new recipe was recorded"})`, actions: done.steps, recipe: hosts.length > 0, ...done.capturedOn ? { capturedOn: done.capturedOn } : {} };
228
+ }
229
+ if (!budget.resume) await browser.closeParkedPage(options.stateDir, marker).catch(quiet("agent/computer/keygrab-live"));
230
+ const stop = done.stop;
231
+ const record = {
232
+ id,
233
+ marker,
234
+ parkedAt: (/* @__PURE__ */ new Date()).toISOString(),
235
+ url: stop.url,
236
+ vendorUrl: url,
237
+ ...budget.alternates?.length ? { alternates: budget.alternates } : {},
238
+ trail: [...budget.resume?.trail ?? [], ...stop.trail ?? []].slice(-40),
239
+ controls: stop.controls,
240
+ visited: stop.visited ?? [],
241
+ menus: stop.menus ?? [],
242
+ ...stop.signedIn || budget.resume?.signedIn ? { signedIn: true } : {},
243
+ why: stop.message.slice(0, 300),
244
+ ...recorder.exportJournal(journalKey) ? { journal: recorder.exportJournal(journalKey) } : {},
245
+ tab: TAB,
246
+ ...delivery ? { delivery } : {}
247
+ };
248
+ const deskKind = stop.kind === "captcha" ? "captcha" : stop.kind === "mfa" ? "code" : stop.kind === "password" ? "sign-in" : void 0;
249
+ if (deskKind) await browser.putTabOnDesk(options.stateDir, TAB, { label: id, kind: deskKind, note: stop.message, resume: id }).catch(quiet("agent/computer/keygrab-live"));
250
+ parked = await browser.parkComputerPage(options.stateDir, TAB, marker);
251
+ if (parked) {
252
+ await park.saveParked(options.stateDir, record);
253
+ for (const old of (await park.listParked(options.stateDir)).slice(0, -park.MAX_PARKED)) {
254
+ await browser.closeParkedPage(options.stateDir, old.marker).catch(quiet("agent/computer/keygrab-live"));
255
+ await park.clearParked(options.stateDir, old.id);
256
+ }
257
+ }
258
+ return { ok: false, stop: { ...stop, vendorUrl: url, ...parked ? { parked: true } : {} } };
259
+ } finally {
260
+ if (!parked) await closeComputerPage(options.stateDir, TAB).catch(quiet("agent/computer/keygrab-live"));
261
+ if (!options.keepBrowser) await releaseComputerBrowser(options.stateDir).catch(quiet("agent/computer/keygrab-live"));
262
+ }
263
+ }
264
+ function siteOf(host) {
265
+ const labels = host.toLowerCase().replace(/^www\./, "").split(".");
266
+ const keep = labels.length > 2 && /^(?:co|com|org|net|gov|ac)$/.test(labels.at(-2)) && labels.at(-1).length === 2 ? 3 : 2;
267
+ return labels.slice(-keep).join(".");
268
+ }
269
+ async function knownKeyPagesFor(stateDir, urls) {
270
+ const sites = new Set(urls.flatMap((u) => {
271
+ try {
272
+ return [siteOf(new URL(u).hostname)];
273
+ } catch {
274
+ return [];
275
+ }
276
+ }));
277
+ if (!sites.size) return [];
278
+ try {
279
+ const { listRecipes } = await import("./chunk-LWCFBRHL.js");
280
+ const pages = (await listRecipes(stateDir)).filter((r) => r.keyPage && sites.has(siteOf(r.host)) && (() => {
281
+ try {
282
+ return sites.has(siteOf(new URL(r.keyPage).hostname));
283
+ } catch {
284
+ return false;
285
+ }
286
+ })()).sort((a, b) => b.verifiedAt.localeCompare(a.verifiedAt)).map((r) => r.keyPage);
287
+ return [...new Set(pages)];
288
+ } catch {
289
+ return [];
290
+ }
291
+ }
292
+
293
+ export {
294
+ DEFAULT_TAB,
295
+ lookAt,
296
+ liveKeygrabPort,
297
+ liveKeygrab,
298
+ siteOf,
299
+ knownKeyPagesFor
300
+ };
@@ -0,0 +1,48 @@
1
+ import { createRequire as __clikcodeCreateRequire } from 'node:module';
2
+ const require = __clikcodeCreateRequire(import.meta.url);
3
+ import {
4
+ decodeTerminalSpec
5
+ } from "./chunk-O2YSNYWD.js";
6
+ import {
7
+ localHarnessForCommand
8
+ } from "./chunk-KYUHIFP3.js";
9
+ import "./chunk-RSZGEL5U.js";
10
+ import {
11
+ ensureNativeHarness,
12
+ runNativeHarnessCommand
13
+ } from "./chunk-DF35KMXM.js";
14
+ import "./chunk-ZT7B4H2V.js";
15
+ import "./chunk-OL4JBD3J.js";
16
+ import "./chunk-IGZ6C2MC.js";
17
+ import "./chunk-4NN3XQQT.js";
18
+ import "./chunk-4AQ5NINV.js";
19
+ import "./chunk-WPB5WEZJ.js";
20
+ import "./chunk-GYMAI5NY.js";
21
+ import "./chunk-CQ7J6UQ7.js";
22
+ import "./chunk-XKW5NDMR.js";
23
+ import "./chunk-W3YYPBEA.js";
24
+ import "./chunk-XIBYREEY.js";
25
+ import "./chunk-EE4B6A7W.js";
26
+ import "./chunk-WZYVLUVQ.js";
27
+ import "./chunk-O3EW7LAY.js";
28
+ import "./chunk-KHW6TX6I.js";
29
+ import "./chunk-YMCH3L2S.js";
30
+ import "./chunk-G3QP67Z7.js";
31
+ import "./chunk-4L2ZZM4Q.js";
32
+ import "./chunk-F6F47QAY.js";
33
+ import "./chunk-RDDWQBEM.js";
34
+ import "./chunk-MPAJ446F.js";
35
+ import "./chunk-CBANJFBO.js";
36
+ import "./chunk-PWXII6HF.js";
37
+
38
+ // src/ide/terminal.ts
39
+ async function runIdeTerminal(encoded) {
40
+ const spec = decodeTerminalSpec(encoded);
41
+ const harness = localHarnessForCommand(spec.command);
42
+ if (!harness) throw new Error(`unknown harness ${spec.command}`);
43
+ await ensureNativeHarness(harness);
44
+ await runNativeHarnessCommand(harness, spec.argv, {});
45
+ }
46
+ export {
47
+ runIdeTerminal
48
+ };