clikcode 1.0.4 → 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.
- package/README.md +25 -14
- package/dist/chunk-23TDEBGZ.js +71 -0
- package/dist/chunk-25T3GVS7.js +425 -0
- package/dist/chunk-2BBELGHY.js +11 -0
- package/dist/chunk-2EOL5PZL.js +208 -0
- package/dist/chunk-2GAB36IE.js +26 -0
- package/dist/chunk-2OLS7V66.js +2440 -0
- package/dist/chunk-2QFO2URB.js +179 -0
- package/dist/chunk-2QWPQRSU.js +254 -0
- package/dist/chunk-2YPAPAR3.js +184 -0
- package/dist/chunk-2ZAG5372.js +33 -0
- package/dist/chunk-32IKAIZC.js +12507 -0
- package/dist/chunk-34AZEGYW.js +95 -0
- package/dist/chunk-34JQYQCA.js +175 -0
- package/dist/chunk-34ZISPAO.js +67 -0
- package/dist/chunk-3AAAARE6.js +46 -0
- package/dist/chunk-3AJ6Q3OY.js +510 -0
- package/dist/chunk-3B2CHX7M.js +884 -0
- package/dist/chunk-3BUFORRX.js +59 -0
- package/dist/chunk-3QLHYYFK.js +30 -0
- package/dist/chunk-3RXBMYKZ.js +140 -0
- package/dist/chunk-3TFNIJWS.js +52 -0
- package/dist/chunk-3W3IPDFP.js +119 -0
- package/dist/chunk-3WMS7SEE.js +417 -0
- package/dist/chunk-435ZNSZ3.js +23 -0
- package/dist/chunk-4AQ5NINV.js +39 -0
- package/dist/chunk-4GVEJ5FK.js +168 -0
- package/dist/chunk-4GXAO3UY.js +262 -0
- package/dist/chunk-4L2ZZM4Q.js +332 -0
- package/dist/chunk-4LPDG57B.js +17 -0
- package/dist/chunk-4NN3XQQT.js +223 -0
- package/dist/chunk-4QZEZME7.js +54 -0
- package/dist/chunk-4R6CSC3S.js +38 -0
- package/dist/chunk-4RHXTL3W.js +514 -0
- package/dist/chunk-4SJMPTVQ.js +18 -0
- package/dist/chunk-4VY7G6TX.js +114 -0
- package/dist/chunk-5642PBF7.js +124 -0
- package/dist/chunk-5B6TVO4A.js +33 -0
- package/dist/chunk-5BJLDUPL.js +62 -0
- package/dist/chunk-5HMFFJWU.js +19 -0
- package/dist/chunk-5IKLK33T.js +69 -0
- package/dist/chunk-5NQ5FFMX.js +44 -0
- package/dist/chunk-5QNNW5L6.js +176 -0
- package/dist/chunk-5SM5UAWN.js +239 -0
- package/dist/chunk-5WYJTA6O.js +74 -0
- package/dist/chunk-5ZSR2Y5T.js +227 -0
- package/dist/chunk-5ZWUM5GH.js +39 -0
- package/dist/chunk-64E7D4HY.js +364 -0
- package/dist/chunk-6CK466BC.js +99 -0
- package/dist/chunk-6ES45HHO.js +138 -0
- package/dist/chunk-6HYEZFGL.js +277 -0
- package/dist/chunk-6Y7HLXGW.js +29 -0
- package/dist/chunk-6YKK4FYR.js +258 -0
- package/dist/chunk-74WNMLMS.js +117 -0
- package/dist/chunk-7AULZ7OD.js +55 -0
- package/dist/chunk-7DOKGSUN.js +101 -0
- package/dist/chunk-7IH5LTIZ.js +195 -0
- package/dist/chunk-7ISTS5NS.js +21 -0
- package/dist/chunk-7NMUTGOW.js +527 -0
- package/dist/chunk-7PNHUZEL.js +153 -0
- package/dist/chunk-7TSQLONI.js +88 -0
- package/dist/chunk-AE7TOLD5.js +30 -0
- package/dist/chunk-AEMHSXKA.js +130 -0
- package/dist/chunk-AKRYTS2D.js +211 -0
- package/dist/chunk-AMNSE36L.js +59 -0
- package/dist/chunk-AZVD74ZV.js +23 -0
- package/dist/chunk-B35DVOTK.js +1981 -0
- package/dist/chunk-B4HNJRAH.js +626 -0
- package/dist/chunk-B5WYPPHS.js +13 -0
- package/dist/chunk-BBOVDXQM.js +59 -0
- package/dist/chunk-BD3ECZLK.js +62 -0
- package/dist/chunk-BDGSOT74.js +4578 -0
- package/dist/chunk-BF5VEOPK.js +31 -0
- package/dist/chunk-BFFRW4XH.js +47 -0
- package/dist/chunk-BFPC6PEW.js +208 -0
- package/dist/chunk-BGEMY2JJ.js +376 -0
- package/dist/chunk-BISGNHKD.js +35 -0
- package/dist/chunk-BMRAEBRY.js +21 -0
- package/dist/chunk-BNTXAZXW.js +127 -0
- package/dist/chunk-BOQBXGSN.js +75 -0
- package/dist/chunk-BTJDSTQP.js +213 -0
- package/dist/chunk-BUOPJQP5.js +218 -0
- package/dist/chunk-BXFJS65Q.js +52 -0
- package/dist/chunk-BXPQFSX5.js +59 -0
- package/dist/chunk-C57LIWNY.js +1269 -0
- package/dist/chunk-C6YVCCWR.js +74 -0
- package/dist/chunk-CAADDF6M.js +167 -0
- package/dist/chunk-CBANJFBO.js +69 -0
- package/dist/chunk-CERF3RIB.js +597 -0
- package/dist/chunk-COAS5ETR.js +46 -0
- package/dist/chunk-CQ7J6UQ7.js +78 -0
- package/dist/chunk-CRUVYGO2.js +26 -0
- package/dist/chunk-CVFVFRGN.js +58 -0
- package/dist/chunk-D2UK66HM.js +37 -0
- package/dist/chunk-D2W7SA4R.js +18 -0
- package/dist/chunk-DA44ZENT.js +501 -0
- package/dist/chunk-DAJ76TOC.js +99 -0
- package/dist/chunk-DCZ6CIUM.js +147 -0
- package/dist/chunk-DF35KMXM.js +1314 -0
- package/dist/chunk-DGASQT26.js +151 -0
- package/dist/chunk-DJT57C5P.js +55 -0
- package/dist/chunk-DKDPZTD3.js +44 -0
- package/dist/chunk-DQYVQ2N7.js +77 -0
- package/dist/chunk-DRTP2RTY.js +266 -0
- package/dist/chunk-DW2BMUKY.js +61 -0
- package/dist/chunk-DW5T5ZVU.js +307 -0
- package/dist/chunk-DXKNDNFC.js +164 -0
- package/dist/chunk-DZEQ7UYR.js +291 -0
- package/dist/chunk-E4F4OUAC.js +463 -0
- package/dist/chunk-EE4B6A7W.js +69 -0
- package/dist/chunk-EISKIYWG.js +23 -0
- package/dist/chunk-EKAQK7UQ.js +235 -0
- package/dist/chunk-EOBTJV32.js +123 -0
- package/dist/chunk-ESF3DIZY.js +325 -0
- package/dist/chunk-EVOHOZ4U.js +45 -0
- package/dist/chunk-EXN4KHLB.js +110 -0
- package/dist/chunk-F252T6Y3.js +78 -0
- package/dist/chunk-F3DP4ZA2.js +40 -0
- package/dist/chunk-F6F47QAY.js +58 -0
- package/dist/chunk-FA3Y23ZW.js +57 -0
- package/dist/chunk-FBKXE4EJ.js +640 -0
- package/dist/chunk-FCGEB3H6.js +23 -0
- package/dist/chunk-FF7ZVYJF.js +3732 -0
- package/dist/chunk-FFGKN6L3.js +39 -0
- package/dist/chunk-FFGU4GCC.js +94 -0
- package/dist/chunk-FSFDAOVP.js +74 -0
- package/dist/chunk-FT5TX7OX.js +1573 -0
- package/dist/chunk-G3QP67Z7.js +232 -0
- package/dist/chunk-G5ORJKV2.js +179 -0
- package/dist/chunk-GFNC62PE.js +111 -0
- package/dist/chunk-GGK43Q3N.js +67 -0
- package/dist/chunk-GGYKY4GF.js +11537 -0
- package/dist/chunk-GGYNHGNJ.js +55 -0
- package/dist/chunk-GLY7RM3C.js +354 -0
- package/dist/chunk-GQBZU6EO.js +20 -0
- package/dist/chunk-GSXENUZL.js +9 -0
- package/dist/chunk-GTOAT5D3.js +40 -0
- package/dist/chunk-GWCMDPQU.js +1007 -0
- package/dist/chunk-GXYSMYHJ.js +152 -0
- package/dist/chunk-GYMAI5NY.js +14 -0
- package/dist/chunk-H2VZMKPE.js +30 -0
- package/dist/chunk-H4THUNBM.js +2091 -0
- package/dist/chunk-HGRVSNUZ.js +361 -0
- package/dist/chunk-HI4VY473.js +27 -0
- package/dist/chunk-HOJRSD3Q.js +447 -0
- package/dist/chunk-HRX25W35.js +82 -0
- package/dist/chunk-HSE4AQYV.js +55 -0
- package/dist/chunk-HU5SSUFX.js +383 -0
- package/dist/chunk-I3GDBJLH.js +196 -0
- package/dist/chunk-I75EDU75.js +684 -0
- package/dist/chunk-IBA7DMIO.js +20 -0
- package/dist/chunk-IC6N4NZA.js +231 -0
- package/dist/chunk-IF43HIGV.js +284 -0
- package/dist/chunk-IGZ6C2MC.js +439 -0
- package/dist/chunk-IMLTL2MY.js +192 -0
- package/dist/chunk-IMZL6SGR.js +33 -0
- package/dist/chunk-IS4USJPY.js +516 -0
- package/dist/chunk-ISFSPN2F.js +82 -0
- package/dist/chunk-IXE7GTFI.js +55 -0
- package/dist/chunk-IZ77QJQG.js +36 -0
- package/dist/chunk-J2PACWRQ.js +34 -0
- package/dist/chunk-J6EGFVQX.js +180 -0
- package/dist/chunk-JEKOD43D.js +22 -0
- package/dist/chunk-JGIWATSG.js +30 -0
- package/dist/chunk-JYBONKD4.js +43 -0
- package/dist/chunk-K2NLG2HK.js +454 -0
- package/dist/chunk-KCQ4TBLS.js +164 -0
- package/dist/chunk-KD5KIVMS.js +176 -0
- package/dist/chunk-KHW6TX6I.js +63 -0
- package/dist/chunk-KI5GZFCE.js +520 -0
- package/dist/chunk-KN34B7NO.js +105 -0
- package/dist/chunk-KYUHIFP3.js +136 -0
- package/dist/chunk-KZL5VS4B.js +300 -0
- package/dist/chunk-L3VW3QIH.js +48 -0
- package/dist/chunk-LA6MG4ET.js +2110 -0
- package/dist/chunk-LAVFOA3S.js +66 -0
- package/dist/chunk-LB4OA77N.js +13 -0
- package/dist/chunk-LBFRF2K4.js +196 -0
- package/dist/chunk-LM6EIA4B.js +93 -0
- package/dist/chunk-LPCNRGJ7.js +692 -0
- package/dist/chunk-LSLNL5T3.js +168 -0
- package/dist/chunk-LVRRWP4W.js +568 -0
- package/dist/chunk-LWCFBRHL.js +33 -0
- package/dist/chunk-LXFTMGZZ.js +166 -0
- package/dist/chunk-M33LVA4M.js +151 -0
- package/dist/chunk-M3FO5UMK.js +4944 -0
- package/dist/chunk-M5QNDBAY.js +66 -0
- package/dist/chunk-M6ND6KBE.js +1291 -0
- package/dist/chunk-M7H3WQTE.js +76 -0
- package/dist/chunk-MCBRVPA7.js +191 -0
- package/dist/chunk-MCSDWZET.js +91 -0
- package/dist/chunk-MDT5XDXL.js +289 -0
- package/dist/chunk-MJG3IQY4.js +91 -0
- package/dist/chunk-MOU3N2UL.js +44 -0
- package/dist/chunk-MP4KZOQC.js +3451 -0
- package/dist/chunk-MPAJ446F.js +66 -0
- package/dist/chunk-MVJZZ6AL.js +16 -0
- package/dist/chunk-MXS6S2PY.js +253 -0
- package/dist/chunk-N3SFDYM7.js +291 -0
- package/dist/chunk-NAOX3JUB.js +13 -0
- package/dist/chunk-NEKKIBCX.js +283 -0
- package/dist/chunk-NKDATMEM.js +133 -0
- package/dist/chunk-NR4FMC4K.js +395 -0
- package/dist/chunk-NSOHOJBR.js +221 -0
- package/dist/chunk-NTDB6QKF.js +29 -0
- package/dist/chunk-NWEYRBWK.js +25 -0
- package/dist/chunk-O2YSNYWD.js +23 -0
- package/dist/chunk-O3EW7LAY.js +54 -0
- package/dist/chunk-O7BNJIXU.js +366 -0
- package/dist/chunk-OARL2NXZ.js +116 -0
- package/dist/chunk-OHKZUEJW.js +351 -0
- package/dist/chunk-OKU45BXA.js +647 -0
- package/dist/chunk-OL4JBD3J.js +59 -0
- package/dist/chunk-OLUO5DDR.js +192 -0
- package/dist/chunk-OQ245JLA.js +196 -0
- package/dist/chunk-P72UZAQI.js +289 -0
- package/dist/chunk-PAL2ENB6.js +20 -0
- package/dist/chunk-PAXYQZH7.js +53 -0
- package/dist/chunk-PDPEM5VW.js +51 -0
- package/dist/chunk-PEWCDI2C.js +668 -0
- package/dist/chunk-PGZ54EDX.js +27 -0
- package/dist/chunk-PRWVLDZF.js +73 -0
- package/dist/chunk-PSQQ75VJ.js +52 -0
- package/dist/chunk-PUOVIFHW.js +118 -0
- package/dist/chunk-PWBF2X3V.js +107 -0
- package/dist/chunk-PWXII6HF.js +43 -0
- package/dist/chunk-Q35VLJRT.js +80 -0
- package/dist/chunk-QJP7EYGL.js +128 -0
- package/dist/chunk-QPQKX2MK.js +8836 -0
- package/dist/chunk-QQRLPY25.js +1053 -0
- package/dist/chunk-QUS4ER2W.js +407 -0
- package/dist/chunk-QYHI3YET.js +29 -0
- package/dist/chunk-QYRU2UQI.js +32 -0
- package/dist/chunk-R6XVVQGC.js +13 -0
- package/dist/chunk-R7QN6ONS.js +483 -0
- package/dist/chunk-RD23MPGC.js +221 -0
- package/dist/chunk-RDDWQBEM.js +185 -0
- package/dist/chunk-RDLLDYFO.js +104 -0
- package/dist/chunk-RE4TGORR.js +84 -0
- package/dist/chunk-RJLHVYQY.js +217 -0
- package/dist/chunk-RJLPTWHW.js +905 -0
- package/dist/chunk-RKUVLRZI.js +295 -0
- package/dist/chunk-ROGXPGYR.js +37 -0
- package/dist/chunk-RSZGEL5U.js +163 -0
- package/dist/chunk-RVUOIJXN.js +909 -0
- package/dist/chunk-RW7F4JRP.js +11 -0
- package/dist/chunk-S4UO3AO3.js +53 -0
- package/dist/chunk-S5JAAF6S.js +585 -0
- package/dist/chunk-SNU37TQI.js +56 -0
- package/dist/chunk-SQVUDO2O.js +31 -0
- package/dist/chunk-SYVHIYQT.js +66 -0
- package/dist/chunk-SZBQMTG2.js +85 -0
- package/dist/chunk-T5VCXA3J.js +25 -0
- package/dist/chunk-TK6NSP56.js +30 -0
- package/dist/chunk-TKWVMA6L.js +22 -0
- package/dist/chunk-TQDKJHWX.js +59 -0
- package/dist/chunk-TQDM7S5N.js +127 -0
- package/dist/chunk-TULAXS77.js +23 -0
- package/dist/chunk-TVT45XNH.js +4625 -0
- package/dist/chunk-TWCVV2JO.js +467 -0
- package/dist/chunk-U4DKAD6S.js +47 -0
- package/dist/chunk-UA5K2BTI.js +564 -0
- package/dist/chunk-UAMKCMOK.js +40 -0
- package/dist/chunk-UBMVADBF.js +51 -0
- package/dist/chunk-UFQ5A5PW.js +645 -0
- package/dist/chunk-UOD2SOLL.js +1301 -0
- package/dist/chunk-UTSB4LOW.js +156 -0
- package/dist/chunk-UVXNIUTN.js +412 -0
- package/dist/chunk-UXVPXYPE.js +90 -0
- package/dist/chunk-UYEEMIWR.js +374 -0
- package/dist/chunk-VBGM5ZBW.js +54 -0
- package/dist/chunk-VEWPCZPG.js +762 -0
- package/dist/chunk-VIRDLZ5E.js +108 -0
- package/dist/chunk-VMPO7WKN.js +52 -0
- package/dist/chunk-W2NVSDO5.js +5122 -0
- package/dist/chunk-W3YYPBEA.js +176 -0
- package/dist/chunk-W5AYOICN.js +280 -0
- package/dist/chunk-W5GZOIUF.js +27 -0
- package/dist/chunk-WHKNLZ3C.js +76 -0
- package/dist/chunk-WKBEPPQ5.js +1409 -0
- package/dist/chunk-WM3Z6QKQ.js +151 -0
- package/dist/chunk-WMI2TPMA.js +31 -0
- package/dist/chunk-WNX5VD7S.js +150 -0
- package/dist/chunk-WOVTYST3.js +60 -0
- package/dist/chunk-WPB5WEZJ.js +546 -0
- package/dist/chunk-WUO5EOAT.js +44 -0
- package/dist/chunk-WWLJMP6D.js +133 -0
- package/dist/chunk-WZMLH3XP.js +58 -0
- package/dist/chunk-WZYVLUVQ.js +79 -0
- package/dist/chunk-X2OCPVU5.js +135 -0
- package/dist/chunk-X3CL6DTR.js +95 -0
- package/dist/chunk-X6WF7JEV.js +354 -0
- package/dist/chunk-XAHGBPWT.js +44 -0
- package/dist/chunk-XCKQ5BM2.js +228 -0
- package/dist/chunk-XIBYREEY.js +106 -0
- package/dist/chunk-XKW5NDMR.js +378 -0
- package/dist/chunk-XRDALAO3.js +100 -0
- package/dist/chunk-XUP22EAS.js +41 -0
- package/dist/chunk-XWAC3MKW.js +243 -0
- package/dist/chunk-Y3R7JMXB.js +59 -0
- package/dist/chunk-Y54LTP4W.js +82 -0
- package/dist/chunk-Y7UECI4M.js +99 -0
- package/dist/chunk-YACGDFHC.js +47 -0
- package/dist/chunk-YHNIQPKY.js +71 -0
- package/dist/chunk-YMBR6HYP.js +111 -0
- package/dist/chunk-YMCH3L2S.js +26 -0
- package/dist/chunk-Z4ZU6T7V.js +99 -0
- package/dist/chunk-ZDPF67ZZ.js +173 -0
- package/dist/chunk-ZFC2Q67K.js +101 -0
- package/dist/chunk-ZGHNNSCT.js +114 -0
- package/dist/chunk-ZGX3ERAT.js +173 -0
- package/dist/chunk-ZI3YHEBY.js +37 -0
- package/dist/chunk-ZN7G6JLS.js +639 -0
- package/dist/chunk-ZNPFQMXT.js +47 -0
- package/dist/chunk-ZOU3LV4U.js +63 -0
- package/dist/chunk-ZT7B4H2V.js +117 -0
- package/dist/chunk-ZZCBDNZI.js +58 -0
- package/dist/cli.js +494 -112923
- package/dist/computer-tools.js +36642 -21259
- package/dist/harness-catalog.cjs +88 -43
- package/dist/index.js +1 -1
- package/dist/local-model-supervisor.cjs +555 -0
- package/package.json +3 -4
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
childEnvironment
|
|
5
|
+
} from "./chunk-GYMAI5NY.js";
|
|
6
|
+
import {
|
|
7
|
+
__commonJS,
|
|
8
|
+
__require,
|
|
9
|
+
__toESM
|
|
10
|
+
} from "./chunk-PWXII6HF.js";
|
|
11
|
+
|
|
12
|
+
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
13
|
+
var require_windows = __commonJS({
|
|
14
|
+
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
15
|
+
module.exports = isexe;
|
|
16
|
+
isexe.sync = sync;
|
|
17
|
+
var fs = __require("fs");
|
|
18
|
+
function checkPathExt(path, options) {
|
|
19
|
+
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
20
|
+
if (!pathext) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
pathext = pathext.split(";");
|
|
24
|
+
if (pathext.indexOf("") !== -1) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
for (var i = 0; i < pathext.length; i++) {
|
|
28
|
+
var p = pathext[i].toLowerCase();
|
|
29
|
+
if (p && path.substr(-p.length).toLowerCase() === p) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
function checkStat(stat, path, options) {
|
|
36
|
+
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
return checkPathExt(path, options);
|
|
40
|
+
}
|
|
41
|
+
function isexe(path, options, cb) {
|
|
42
|
+
fs.stat(path, function(er, stat) {
|
|
43
|
+
cb(er, er ? false : checkStat(stat, path, options));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function sync(path, options) {
|
|
47
|
+
return checkStat(fs.statSync(path), path, options);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
53
|
+
var require_mode = __commonJS({
|
|
54
|
+
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
|
|
55
|
+
module.exports = isexe;
|
|
56
|
+
isexe.sync = sync;
|
|
57
|
+
var fs = __require("fs");
|
|
58
|
+
function isexe(path, options, cb) {
|
|
59
|
+
fs.stat(path, function(er, stat) {
|
|
60
|
+
cb(er, er ? false : checkStat(stat, options));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function sync(path, options) {
|
|
64
|
+
return checkStat(fs.statSync(path), options);
|
|
65
|
+
}
|
|
66
|
+
function checkStat(stat, options) {
|
|
67
|
+
return stat.isFile() && checkMode(stat, options);
|
|
68
|
+
}
|
|
69
|
+
function checkMode(stat, options) {
|
|
70
|
+
var mod = stat.mode;
|
|
71
|
+
var uid = stat.uid;
|
|
72
|
+
var gid = stat.gid;
|
|
73
|
+
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
74
|
+
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
75
|
+
var u = parseInt("100", 8);
|
|
76
|
+
var g = parseInt("010", 8);
|
|
77
|
+
var o = parseInt("001", 8);
|
|
78
|
+
var ug = u | g;
|
|
79
|
+
var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
80
|
+
return ret;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
86
|
+
var require_isexe = __commonJS({
|
|
87
|
+
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
|
|
88
|
+
var fs = __require("fs");
|
|
89
|
+
var core;
|
|
90
|
+
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
91
|
+
core = require_windows();
|
|
92
|
+
} else {
|
|
93
|
+
core = require_mode();
|
|
94
|
+
}
|
|
95
|
+
module.exports = isexe;
|
|
96
|
+
isexe.sync = sync;
|
|
97
|
+
function isexe(path, options, cb) {
|
|
98
|
+
if (typeof options === "function") {
|
|
99
|
+
cb = options;
|
|
100
|
+
options = {};
|
|
101
|
+
}
|
|
102
|
+
if (!cb) {
|
|
103
|
+
if (typeof Promise !== "function") {
|
|
104
|
+
throw new TypeError("callback not provided");
|
|
105
|
+
}
|
|
106
|
+
return new Promise(function(resolve, reject) {
|
|
107
|
+
isexe(path, options || {}, function(er, is) {
|
|
108
|
+
if (er) {
|
|
109
|
+
reject(er);
|
|
110
|
+
} else {
|
|
111
|
+
resolve(is);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
core(path, options || {}, function(er, is) {
|
|
117
|
+
if (er) {
|
|
118
|
+
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
119
|
+
er = null;
|
|
120
|
+
is = false;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
cb(er, is);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function sync(path, options) {
|
|
127
|
+
try {
|
|
128
|
+
return core.sync(path, options || {});
|
|
129
|
+
} catch (er) {
|
|
130
|
+
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
131
|
+
return false;
|
|
132
|
+
} else {
|
|
133
|
+
throw er;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
// node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
141
|
+
var require_which = __commonJS({
|
|
142
|
+
"node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
|
|
143
|
+
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
144
|
+
var path = __require("path");
|
|
145
|
+
var COLON = isWindows ? ";" : ":";
|
|
146
|
+
var isexe = require_isexe();
|
|
147
|
+
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
148
|
+
var getPathInfo = (cmd, opt) => {
|
|
149
|
+
const colon = opt.colon || COLON;
|
|
150
|
+
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
|
|
151
|
+
// windows always checks the cwd first
|
|
152
|
+
...isWindows ? [process.cwd()] : [],
|
|
153
|
+
...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
154
|
+
"").split(colon)
|
|
155
|
+
];
|
|
156
|
+
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
157
|
+
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
158
|
+
if (isWindows) {
|
|
159
|
+
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
160
|
+
pathExt.unshift("");
|
|
161
|
+
}
|
|
162
|
+
return {
|
|
163
|
+
pathEnv,
|
|
164
|
+
pathExt,
|
|
165
|
+
pathExtExe
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
var which = (cmd, opt, cb) => {
|
|
169
|
+
if (typeof opt === "function") {
|
|
170
|
+
cb = opt;
|
|
171
|
+
opt = {};
|
|
172
|
+
}
|
|
173
|
+
if (!opt)
|
|
174
|
+
opt = {};
|
|
175
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
176
|
+
const found = [];
|
|
177
|
+
const step = (i) => new Promise((resolve, reject) => {
|
|
178
|
+
if (i === pathEnv.length)
|
|
179
|
+
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
180
|
+
const ppRaw = pathEnv[i];
|
|
181
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
182
|
+
const pCmd = path.join(pathPart, cmd);
|
|
183
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
184
|
+
resolve(subStep(p, i, 0));
|
|
185
|
+
});
|
|
186
|
+
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
187
|
+
if (ii === pathExt.length)
|
|
188
|
+
return resolve(step(i + 1));
|
|
189
|
+
const ext = pathExt[ii];
|
|
190
|
+
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
191
|
+
if (!er && is) {
|
|
192
|
+
if (opt.all)
|
|
193
|
+
found.push(p + ext);
|
|
194
|
+
else
|
|
195
|
+
return resolve(p + ext);
|
|
196
|
+
}
|
|
197
|
+
return resolve(subStep(p, i, ii + 1));
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
201
|
+
};
|
|
202
|
+
var whichSync = (cmd, opt) => {
|
|
203
|
+
opt = opt || {};
|
|
204
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
205
|
+
const found = [];
|
|
206
|
+
for (let i = 0; i < pathEnv.length; i++) {
|
|
207
|
+
const ppRaw = pathEnv[i];
|
|
208
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
209
|
+
const pCmd = path.join(pathPart, cmd);
|
|
210
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
211
|
+
for (let j = 0; j < pathExt.length; j++) {
|
|
212
|
+
const cur = p + pathExt[j];
|
|
213
|
+
try {
|
|
214
|
+
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
215
|
+
if (is) {
|
|
216
|
+
if (opt.all)
|
|
217
|
+
found.push(cur);
|
|
218
|
+
else
|
|
219
|
+
return cur;
|
|
220
|
+
}
|
|
221
|
+
} catch (ex) {
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (opt.all && found.length)
|
|
226
|
+
return found;
|
|
227
|
+
if (opt.nothrow)
|
|
228
|
+
return null;
|
|
229
|
+
throw getNotFoundError(cmd);
|
|
230
|
+
};
|
|
231
|
+
module.exports = which;
|
|
232
|
+
which.sync = whichSync;
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
// node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
237
|
+
var require_path_key = __commonJS({
|
|
238
|
+
"node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
|
|
239
|
+
"use strict";
|
|
240
|
+
var pathKey = (options = {}) => {
|
|
241
|
+
const environment = options.env || process.env;
|
|
242
|
+
const platform = options.platform || process.platform;
|
|
243
|
+
if (platform !== "win32") {
|
|
244
|
+
return "PATH";
|
|
245
|
+
}
|
|
246
|
+
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
247
|
+
};
|
|
248
|
+
module.exports = pathKey;
|
|
249
|
+
module.exports.default = pathKey;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
254
|
+
var require_resolveCommand = __commonJS({
|
|
255
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
256
|
+
"use strict";
|
|
257
|
+
var path = __require("path");
|
|
258
|
+
var which = require_which();
|
|
259
|
+
var getPathKey = require_path_key();
|
|
260
|
+
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
261
|
+
const env = parsed.options.env || process.env;
|
|
262
|
+
const cwd = process.cwd();
|
|
263
|
+
const hasCustomCwd = parsed.options.cwd != null;
|
|
264
|
+
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
265
|
+
if (shouldSwitchCwd) {
|
|
266
|
+
try {
|
|
267
|
+
process.chdir(parsed.options.cwd);
|
|
268
|
+
} catch (err) {
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
let resolved;
|
|
272
|
+
try {
|
|
273
|
+
resolved = which.sync(parsed.command, {
|
|
274
|
+
path: env[getPathKey({ env })],
|
|
275
|
+
pathExt: withoutPathExt ? path.delimiter : void 0
|
|
276
|
+
});
|
|
277
|
+
} catch (e) {
|
|
278
|
+
} finally {
|
|
279
|
+
if (shouldSwitchCwd) {
|
|
280
|
+
process.chdir(cwd);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
if (resolved) {
|
|
284
|
+
resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
285
|
+
}
|
|
286
|
+
return resolved;
|
|
287
|
+
}
|
|
288
|
+
function resolveCommand(parsed) {
|
|
289
|
+
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
290
|
+
}
|
|
291
|
+
module.exports = resolveCommand;
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
296
|
+
var require_escape = __commonJS({
|
|
297
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
298
|
+
"use strict";
|
|
299
|
+
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
300
|
+
function escapeCommand(arg) {
|
|
301
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
302
|
+
return arg;
|
|
303
|
+
}
|
|
304
|
+
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
305
|
+
arg = `${arg}`;
|
|
306
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
307
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
308
|
+
arg = `"${arg}"`;
|
|
309
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
310
|
+
if (doubleEscapeMetaChars) {
|
|
311
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
312
|
+
}
|
|
313
|
+
return arg;
|
|
314
|
+
}
|
|
315
|
+
module.exports.command = escapeCommand;
|
|
316
|
+
module.exports.argument = escapeArgument;
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
// node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
321
|
+
var require_shebang_regex = __commonJS({
|
|
322
|
+
"node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
|
|
323
|
+
"use strict";
|
|
324
|
+
module.exports = /^#!(.*)/;
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
// node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
329
|
+
var require_shebang_command = __commonJS({
|
|
330
|
+
"node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
|
|
331
|
+
"use strict";
|
|
332
|
+
var shebangRegex = require_shebang_regex();
|
|
333
|
+
module.exports = (string = "") => {
|
|
334
|
+
const match = string.match(shebangRegex);
|
|
335
|
+
if (!match) {
|
|
336
|
+
return null;
|
|
337
|
+
}
|
|
338
|
+
const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
339
|
+
const binary = path.split("/").pop();
|
|
340
|
+
if (binary === "env") {
|
|
341
|
+
return argument;
|
|
342
|
+
}
|
|
343
|
+
return argument ? `${binary} ${argument}` : binary;
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
349
|
+
var require_readShebang = __commonJS({
|
|
350
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
351
|
+
"use strict";
|
|
352
|
+
var fs = __require("fs");
|
|
353
|
+
var shebangCommand = require_shebang_command();
|
|
354
|
+
function readShebang(command) {
|
|
355
|
+
const size = 150;
|
|
356
|
+
const buffer = Buffer.alloc(size);
|
|
357
|
+
let fd;
|
|
358
|
+
try {
|
|
359
|
+
fd = fs.openSync(command, "r");
|
|
360
|
+
fs.readSync(fd, buffer, 0, size, 0);
|
|
361
|
+
fs.closeSync(fd);
|
|
362
|
+
} catch (e) {
|
|
363
|
+
}
|
|
364
|
+
return shebangCommand(buffer.toString());
|
|
365
|
+
}
|
|
366
|
+
module.exports = readShebang;
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
371
|
+
var require_parse = __commonJS({
|
|
372
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
373
|
+
"use strict";
|
|
374
|
+
var path = __require("path");
|
|
375
|
+
var resolveCommand = require_resolveCommand();
|
|
376
|
+
var escape = require_escape();
|
|
377
|
+
var readShebang = require_readShebang();
|
|
378
|
+
var isWin = process.platform === "win32";
|
|
379
|
+
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
380
|
+
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
381
|
+
function detectShebang(parsed) {
|
|
382
|
+
parsed.file = resolveCommand(parsed);
|
|
383
|
+
const shebang = parsed.file && readShebang(parsed.file);
|
|
384
|
+
if (shebang) {
|
|
385
|
+
parsed.args.unshift(parsed.file);
|
|
386
|
+
parsed.command = shebang;
|
|
387
|
+
return resolveCommand(parsed);
|
|
388
|
+
}
|
|
389
|
+
return parsed.file;
|
|
390
|
+
}
|
|
391
|
+
function parseNonShell(parsed) {
|
|
392
|
+
if (!isWin) {
|
|
393
|
+
return parsed;
|
|
394
|
+
}
|
|
395
|
+
const commandFile = detectShebang(parsed);
|
|
396
|
+
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
397
|
+
if (parsed.options.forceShell || needsShell) {
|
|
398
|
+
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
399
|
+
parsed.command = path.normalize(parsed.command);
|
|
400
|
+
parsed.command = escape.command(parsed.command);
|
|
401
|
+
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
402
|
+
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
403
|
+
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
404
|
+
parsed.command = process.env.comspec || "cmd.exe";
|
|
405
|
+
parsed.options.windowsVerbatimArguments = true;
|
|
406
|
+
}
|
|
407
|
+
return parsed;
|
|
408
|
+
}
|
|
409
|
+
function parse(command, args, options) {
|
|
410
|
+
if (args && !Array.isArray(args)) {
|
|
411
|
+
options = args;
|
|
412
|
+
args = null;
|
|
413
|
+
}
|
|
414
|
+
args = args ? args.slice(0) : [];
|
|
415
|
+
options = Object.assign({}, options);
|
|
416
|
+
const parsed = {
|
|
417
|
+
command,
|
|
418
|
+
args,
|
|
419
|
+
options,
|
|
420
|
+
file: void 0,
|
|
421
|
+
original: {
|
|
422
|
+
command,
|
|
423
|
+
args
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
return options.shell ? parsed : parseNonShell(parsed);
|
|
427
|
+
}
|
|
428
|
+
module.exports = parse;
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
|
|
432
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
433
|
+
var require_enoent = __commonJS({
|
|
434
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
435
|
+
"use strict";
|
|
436
|
+
var isWin = process.platform === "win32";
|
|
437
|
+
function notFoundError(original, syscall) {
|
|
438
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
439
|
+
code: "ENOENT",
|
|
440
|
+
errno: "ENOENT",
|
|
441
|
+
syscall: `${syscall} ${original.command}`,
|
|
442
|
+
path: original.command,
|
|
443
|
+
spawnargs: original.args
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
function hookChildProcess(cp, parsed) {
|
|
447
|
+
if (!isWin) {
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
const originalEmit = cp.emit;
|
|
451
|
+
cp.emit = function(name, arg1) {
|
|
452
|
+
if (name === "exit") {
|
|
453
|
+
const err = verifyENOENT(arg1, parsed);
|
|
454
|
+
if (err) {
|
|
455
|
+
return originalEmit.call(cp, "error", err);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
return originalEmit.apply(cp, arguments);
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
function verifyENOENT(status, parsed) {
|
|
462
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
463
|
+
return notFoundError(parsed.original, "spawn");
|
|
464
|
+
}
|
|
465
|
+
return null;
|
|
466
|
+
}
|
|
467
|
+
function verifyENOENTSync(status, parsed) {
|
|
468
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
469
|
+
return notFoundError(parsed.original, "spawnSync");
|
|
470
|
+
}
|
|
471
|
+
return null;
|
|
472
|
+
}
|
|
473
|
+
module.exports = {
|
|
474
|
+
hookChildProcess,
|
|
475
|
+
verifyENOENT,
|
|
476
|
+
verifyENOENTSync,
|
|
477
|
+
notFoundError
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
// node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
483
|
+
var require_cross_spawn = __commonJS({
|
|
484
|
+
"node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
|
|
485
|
+
"use strict";
|
|
486
|
+
var cp = __require("child_process");
|
|
487
|
+
var parse = require_parse();
|
|
488
|
+
var enoent = require_enoent();
|
|
489
|
+
function spawn(command, args, options) {
|
|
490
|
+
const parsed = parse(command, args, options);
|
|
491
|
+
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
492
|
+
enoent.hookChildProcess(spawned, parsed);
|
|
493
|
+
return spawned;
|
|
494
|
+
}
|
|
495
|
+
function spawnSync(command, args, options) {
|
|
496
|
+
const parsed = parse(command, args, options);
|
|
497
|
+
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
498
|
+
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
499
|
+
return result;
|
|
500
|
+
}
|
|
501
|
+
module.exports = spawn;
|
|
502
|
+
module.exports.spawn = spawn;
|
|
503
|
+
module.exports.sync = spawnSync;
|
|
504
|
+
module.exports._parse = parse;
|
|
505
|
+
module.exports._enoent = enoent;
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
|
|
509
|
+
// src/harness/transport/spawn.ts
|
|
510
|
+
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
511
|
+
var spawnPortable = ((command, args, options) => {
|
|
512
|
+
if (!Array.isArray(args)) return spawnPortable(command, [], args);
|
|
513
|
+
const env = childEnvironment(command, options?.env ?? process.env);
|
|
514
|
+
return (0, import_cross_spawn.default)(command, args, env === (options?.env ?? process.env) ? options : { ...options, env });
|
|
515
|
+
});
|
|
516
|
+
function terminatePortable(child, signal = "SIGTERM") {
|
|
517
|
+
if (child.exitCode !== null || child.signalCode !== null) return;
|
|
518
|
+
if (process.platform !== "win32" || !child.pid) {
|
|
519
|
+
child.kill(signal);
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
const killer = (0, import_cross_spawn.default)("taskkill.exe", ["/PID", String(child.pid), "/T", "/F"], {
|
|
523
|
+
stdio: "ignore",
|
|
524
|
+
windowsHide: true
|
|
525
|
+
});
|
|
526
|
+
killer.once("error", () => {
|
|
527
|
+
if (child.exitCode === null) child.kill();
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
function killProcessTreePortable(child, signal = "SIGTERM", detached = false) {
|
|
531
|
+
if (child.exitCode !== null || child.signalCode !== null) return;
|
|
532
|
+
if (detached && process.platform !== "win32" && child.pid) {
|
|
533
|
+
try {
|
|
534
|
+
process.kill(-child.pid, signal);
|
|
535
|
+
return;
|
|
536
|
+
} catch {
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
terminatePortable(child, signal);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
export {
|
|
543
|
+
spawnPortable,
|
|
544
|
+
terminatePortable,
|
|
545
|
+
killProcessTreePortable
|
|
546
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
computerHostFile,
|
|
5
|
+
computerProfile,
|
|
6
|
+
hostChromeArgs,
|
|
7
|
+
hostDisplay,
|
|
8
|
+
runComputerHost,
|
|
9
|
+
runningHostDisplay
|
|
10
|
+
} from "./chunk-MP4KZOQC.js";
|
|
11
|
+
import "./chunk-PWBF2X3V.js";
|
|
12
|
+
import "./chunk-HU5SSUFX.js";
|
|
13
|
+
import "./chunk-AKRYTS2D.js";
|
|
14
|
+
import "./chunk-4GVEJ5FK.js";
|
|
15
|
+
import "./chunk-O7BNJIXU.js";
|
|
16
|
+
import "./chunk-MCBRVPA7.js";
|
|
17
|
+
import "./chunk-RJLHVYQY.js";
|
|
18
|
+
import "./chunk-YMCH3L2S.js";
|
|
19
|
+
import "./chunk-I75EDU75.js";
|
|
20
|
+
import "./chunk-5SM5UAWN.js";
|
|
21
|
+
import "./chunk-PAXYQZH7.js";
|
|
22
|
+
import {
|
|
23
|
+
BROWSER_CHANNELS,
|
|
24
|
+
VIRTUAL_DISPLAY_ENV,
|
|
25
|
+
launchFirst
|
|
26
|
+
} from "./chunk-CAADDF6M.js";
|
|
27
|
+
import "./chunk-G3QP67Z7.js";
|
|
28
|
+
import "./chunk-4L2ZZM4Q.js";
|
|
29
|
+
import "./chunk-F6F47QAY.js";
|
|
30
|
+
import "./chunk-RDDWQBEM.js";
|
|
31
|
+
import "./chunk-MPAJ446F.js";
|
|
32
|
+
import "./chunk-CBANJFBO.js";
|
|
33
|
+
import "./chunk-PWXII6HF.js";
|
|
34
|
+
export {
|
|
35
|
+
BROWSER_CHANNELS,
|
|
36
|
+
VIRTUAL_DISPLAY_ENV,
|
|
37
|
+
computerHostFile,
|
|
38
|
+
computerProfile,
|
|
39
|
+
hostChromeArgs,
|
|
40
|
+
hostDisplay,
|
|
41
|
+
launchFirst,
|
|
42
|
+
runComputerHost,
|
|
43
|
+
runningHostDisplay
|
|
44
|
+
};
|