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,568 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
5
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
6
|
+
let index = string.indexOf(substring);
|
|
7
|
+
if (index === -1) {
|
|
8
|
+
return string;
|
|
9
|
+
}
|
|
10
|
+
const substringLength = substring.length;
|
|
11
|
+
let endIndex = 0;
|
|
12
|
+
let returnValue = "";
|
|
13
|
+
do {
|
|
14
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
15
|
+
endIndex = index + substringLength;
|
|
16
|
+
index = string.indexOf(substring, endIndex);
|
|
17
|
+
} while (index !== -1);
|
|
18
|
+
returnValue += string.slice(endIndex);
|
|
19
|
+
return returnValue;
|
|
20
|
+
}
|
|
21
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
22
|
+
let endIndex = 0;
|
|
23
|
+
let returnValue = "";
|
|
24
|
+
do {
|
|
25
|
+
const isGotCR = string[index - 1] === "\r";
|
|
26
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
27
|
+
endIndex = index + 1;
|
|
28
|
+
index = string.indexOf("\n", endIndex);
|
|
29
|
+
} while (index !== -1);
|
|
30
|
+
returnValue += string.slice(endIndex);
|
|
31
|
+
return returnValue;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
35
|
+
var ANSI_BACKGROUND_OFFSET = 10;
|
|
36
|
+
var ANSI_UNDERLINE_OFFSET = 20;
|
|
37
|
+
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
38
|
+
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
39
|
+
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
40
|
+
var wrapUnderlineAnsi = (code) => `\x1B[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
41
|
+
var styles = {
|
|
42
|
+
modifier: {
|
|
43
|
+
reset: [0, 0],
|
|
44
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
45
|
+
bold: [1, 22],
|
|
46
|
+
dim: [2, 22],
|
|
47
|
+
italic: [3, 23],
|
|
48
|
+
underline: [4, 24],
|
|
49
|
+
// Extended underline styles (`SGR 4:x` sub-parameters). Not in upstream `ansi-styles`.
|
|
50
|
+
underlineDouble: ["4:2", 24],
|
|
51
|
+
underlineCurly: ["4:3", 24],
|
|
52
|
+
underlineDotted: ["4:4", 24],
|
|
53
|
+
underlineDashed: ["4:5", 24],
|
|
54
|
+
overline: [53, 55],
|
|
55
|
+
inverse: [7, 27],
|
|
56
|
+
hidden: [8, 28],
|
|
57
|
+
strikethrough: [9, 29]
|
|
58
|
+
},
|
|
59
|
+
color: {
|
|
60
|
+
black: [30, 39],
|
|
61
|
+
red: [31, 39],
|
|
62
|
+
green: [32, 39],
|
|
63
|
+
yellow: [33, 39],
|
|
64
|
+
blue: [34, 39],
|
|
65
|
+
magenta: [35, 39],
|
|
66
|
+
cyan: [36, 39],
|
|
67
|
+
white: [37, 39],
|
|
68
|
+
// Bright color
|
|
69
|
+
blackBright: [90, 39],
|
|
70
|
+
gray: [90, 39],
|
|
71
|
+
// Alias of `blackBright`
|
|
72
|
+
grey: [90, 39],
|
|
73
|
+
// Alias of `blackBright`
|
|
74
|
+
redBright: [91, 39],
|
|
75
|
+
greenBright: [92, 39],
|
|
76
|
+
yellowBright: [93, 39],
|
|
77
|
+
blueBright: [94, 39],
|
|
78
|
+
magentaBright: [95, 39],
|
|
79
|
+
cyanBright: [96, 39],
|
|
80
|
+
whiteBright: [97, 39]
|
|
81
|
+
},
|
|
82
|
+
bgColor: {
|
|
83
|
+
bgBlack: [40, 49],
|
|
84
|
+
bgRed: [41, 49],
|
|
85
|
+
bgGreen: [42, 49],
|
|
86
|
+
bgYellow: [43, 49],
|
|
87
|
+
bgBlue: [44, 49],
|
|
88
|
+
bgMagenta: [45, 49],
|
|
89
|
+
bgCyan: [46, 49],
|
|
90
|
+
bgWhite: [47, 49],
|
|
91
|
+
// Bright color
|
|
92
|
+
bgBlackBright: [100, 49],
|
|
93
|
+
bgGray: [100, 49],
|
|
94
|
+
// Alias of `bgBlackBright`
|
|
95
|
+
bgGrey: [100, 49],
|
|
96
|
+
// Alias of `bgBlackBright`
|
|
97
|
+
bgRedBright: [101, 49],
|
|
98
|
+
bgGreenBright: [102, 49],
|
|
99
|
+
bgYellowBright: [103, 49],
|
|
100
|
+
bgBlueBright: [104, 49],
|
|
101
|
+
bgMagentaBright: [105, 49],
|
|
102
|
+
bgCyanBright: [106, 49],
|
|
103
|
+
bgWhiteBright: [107, 49]
|
|
104
|
+
},
|
|
105
|
+
// Underline color (`SGR 58`/`59`). Not in upstream `ansi-styles`.
|
|
106
|
+
underlineColor: {
|
|
107
|
+
underlineBlack: ["58;5;0", 59],
|
|
108
|
+
underlineRed: ["58;5;1", 59],
|
|
109
|
+
underlineGreen: ["58;5;2", 59],
|
|
110
|
+
underlineYellow: ["58;5;3", 59],
|
|
111
|
+
underlineBlue: ["58;5;4", 59],
|
|
112
|
+
underlineMagenta: ["58;5;5", 59],
|
|
113
|
+
underlineCyan: ["58;5;6", 59],
|
|
114
|
+
underlineWhite: ["58;5;7", 59],
|
|
115
|
+
// Bright color
|
|
116
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
117
|
+
underlineGray: ["58;5;8", 59],
|
|
118
|
+
// Alias of `underlineBlackBright`
|
|
119
|
+
underlineGrey: ["58;5;8", 59],
|
|
120
|
+
// Alias of `underlineBlackBright`
|
|
121
|
+
underlineRedBright: ["58;5;9", 59],
|
|
122
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
123
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
124
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
125
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
126
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
127
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
131
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
132
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
133
|
+
var underlineColorNames = Object.keys(styles.underlineColor);
|
|
134
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
135
|
+
function assembleStyles() {
|
|
136
|
+
const codes = /* @__PURE__ */ new Map();
|
|
137
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
138
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
139
|
+
styles[styleName] = {
|
|
140
|
+
open: `\x1B[${style[0]}m`,
|
|
141
|
+
close: `\x1B[${style[1]}m`
|
|
142
|
+
};
|
|
143
|
+
group[styleName] = styles[styleName];
|
|
144
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
145
|
+
}
|
|
146
|
+
Object.defineProperty(styles, groupName, {
|
|
147
|
+
value: group,
|
|
148
|
+
enumerable: false
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
Object.defineProperty(styles, "codes", {
|
|
152
|
+
value: codes,
|
|
153
|
+
enumerable: false
|
|
154
|
+
});
|
|
155
|
+
styles.color.close = "\x1B[39m";
|
|
156
|
+
styles.bgColor.close = "\x1B[49m";
|
|
157
|
+
styles.underlineColor.close = "\x1B[59m";
|
|
158
|
+
styles.color.ansi = wrapAnsi16();
|
|
159
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
160
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
161
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
162
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
163
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
164
|
+
styles.underlineColor.ansi = wrapUnderlineAnsi;
|
|
165
|
+
styles.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
166
|
+
styles.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
167
|
+
Object.defineProperties(styles, {
|
|
168
|
+
rgbToAnsi256: {
|
|
169
|
+
value(red, green, blue) {
|
|
170
|
+
if (red === green && green === blue) {
|
|
171
|
+
if (red < 8) {
|
|
172
|
+
return 16;
|
|
173
|
+
}
|
|
174
|
+
if (red > 248) {
|
|
175
|
+
return 231;
|
|
176
|
+
}
|
|
177
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
178
|
+
}
|
|
179
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
180
|
+
},
|
|
181
|
+
enumerable: false
|
|
182
|
+
},
|
|
183
|
+
hexToRgb: {
|
|
184
|
+
value(hex) {
|
|
185
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
186
|
+
if (!matches) {
|
|
187
|
+
return [0, 0, 0];
|
|
188
|
+
}
|
|
189
|
+
let [colorString] = matches;
|
|
190
|
+
if (colorString.length === 3) {
|
|
191
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
192
|
+
}
|
|
193
|
+
const integer = Number.parseInt(colorString, 16);
|
|
194
|
+
return [
|
|
195
|
+
/* eslint-disable no-bitwise -- We need the speed */
|
|
196
|
+
integer >> 16 & 255,
|
|
197
|
+
integer >> 8 & 255,
|
|
198
|
+
integer & 255
|
|
199
|
+
/* eslint-enable no-bitwise */
|
|
200
|
+
];
|
|
201
|
+
},
|
|
202
|
+
enumerable: false
|
|
203
|
+
},
|
|
204
|
+
hexToAnsi256: {
|
|
205
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
206
|
+
enumerable: false
|
|
207
|
+
},
|
|
208
|
+
ansi256ToAnsi: {
|
|
209
|
+
value(code) {
|
|
210
|
+
if (code < 8) {
|
|
211
|
+
return 30 + code;
|
|
212
|
+
}
|
|
213
|
+
if (code < 16) {
|
|
214
|
+
return 90 + (code - 8);
|
|
215
|
+
}
|
|
216
|
+
let red;
|
|
217
|
+
let green;
|
|
218
|
+
let blue;
|
|
219
|
+
if (code >= 232) {
|
|
220
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
221
|
+
green = red;
|
|
222
|
+
blue = red;
|
|
223
|
+
} else {
|
|
224
|
+
code -= 16;
|
|
225
|
+
const remainder = code % 36;
|
|
226
|
+
red = Math.floor(code / 36) / 5;
|
|
227
|
+
green = Math.floor(remainder / 6) / 5;
|
|
228
|
+
blue = remainder % 6 / 5;
|
|
229
|
+
}
|
|
230
|
+
const value = Math.max(red, green, blue) * 2;
|
|
231
|
+
if (value === 0) {
|
|
232
|
+
return 30;
|
|
233
|
+
}
|
|
234
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
235
|
+
if (value === 2) {
|
|
236
|
+
result += 60;
|
|
237
|
+
}
|
|
238
|
+
return result;
|
|
239
|
+
},
|
|
240
|
+
enumerable: false
|
|
241
|
+
},
|
|
242
|
+
rgbToAnsi: {
|
|
243
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
244
|
+
enumerable: false
|
|
245
|
+
},
|
|
246
|
+
hexToAnsi: {
|
|
247
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
248
|
+
enumerable: false
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
return styles;
|
|
252
|
+
}
|
|
253
|
+
var ansiStyles = assembleStyles();
|
|
254
|
+
var ansi_styles_default = ansiStyles;
|
|
255
|
+
|
|
256
|
+
// node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
257
|
+
import process from "node:process";
|
|
258
|
+
import os from "node:os";
|
|
259
|
+
import tty from "node:tty";
|
|
260
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
|
|
261
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
262
|
+
const position = argv.indexOf(prefix + flag);
|
|
263
|
+
const terminatorPosition = argv.indexOf("--");
|
|
264
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
265
|
+
}
|
|
266
|
+
var { env } = process;
|
|
267
|
+
var flagForceColor;
|
|
268
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
269
|
+
flagForceColor = 0;
|
|
270
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
271
|
+
flagForceColor = 1;
|
|
272
|
+
}
|
|
273
|
+
function hasNumericForceColor() {
|
|
274
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
275
|
+
}
|
|
276
|
+
function envForceColor() {
|
|
277
|
+
if (!("FORCE_COLOR" in env)) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
if (env.FORCE_COLOR === "false") {
|
|
281
|
+
return 0;
|
|
282
|
+
}
|
|
283
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) {
|
|
284
|
+
return 1;
|
|
285
|
+
}
|
|
286
|
+
if (!hasNumericForceColor()) {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
290
|
+
}
|
|
291
|
+
function translateLevel(level) {
|
|
292
|
+
if (level === 0) {
|
|
293
|
+
return false;
|
|
294
|
+
}
|
|
295
|
+
return {
|
|
296
|
+
level,
|
|
297
|
+
hasBasic: true,
|
|
298
|
+
has256: level >= 2,
|
|
299
|
+
has16m: level >= 3
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
303
|
+
const noFlagForceColor = envForceColor();
|
|
304
|
+
if (noFlagForceColor !== void 0) {
|
|
305
|
+
flagForceColor = noFlagForceColor;
|
|
306
|
+
}
|
|
307
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
308
|
+
if (forceColor === 0) {
|
|
309
|
+
return 0;
|
|
310
|
+
}
|
|
311
|
+
if (sniffFlags) {
|
|
312
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
313
|
+
return 3;
|
|
314
|
+
}
|
|
315
|
+
if (hasFlag("color=256")) {
|
|
316
|
+
return 2;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
if (forceColor !== void 0 && hasNumericForceColor()) {
|
|
320
|
+
return forceColor;
|
|
321
|
+
}
|
|
322
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
323
|
+
return 1;
|
|
324
|
+
}
|
|
325
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
326
|
+
return 0;
|
|
327
|
+
}
|
|
328
|
+
const min = forceColor || 0;
|
|
329
|
+
if (env.TERM === "dumb") {
|
|
330
|
+
return min;
|
|
331
|
+
}
|
|
332
|
+
if (process.platform === "win32") {
|
|
333
|
+
const osRelease = os.release().split(".");
|
|
334
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
335
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
336
|
+
}
|
|
337
|
+
return 1;
|
|
338
|
+
}
|
|
339
|
+
if ("CI" in env) {
|
|
340
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
341
|
+
return 3;
|
|
342
|
+
}
|
|
343
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
344
|
+
return 1;
|
|
345
|
+
}
|
|
346
|
+
return min;
|
|
347
|
+
}
|
|
348
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
349
|
+
return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
350
|
+
}
|
|
351
|
+
if (env.COLORTERM === "truecolor") {
|
|
352
|
+
return 3;
|
|
353
|
+
}
|
|
354
|
+
if (env.TERM === "xterm-kitty") {
|
|
355
|
+
return 3;
|
|
356
|
+
}
|
|
357
|
+
if (env.TERM === "xterm-ghostty") {
|
|
358
|
+
return 3;
|
|
359
|
+
}
|
|
360
|
+
if (env.TERM === "wezterm") {
|
|
361
|
+
return 3;
|
|
362
|
+
}
|
|
363
|
+
if ("TERM_PROGRAM" in env) {
|
|
364
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
365
|
+
switch (env.TERM_PROGRAM) {
|
|
366
|
+
case "iTerm.app": {
|
|
367
|
+
return version >= 3 ? 3 : 2;
|
|
368
|
+
}
|
|
369
|
+
case "Apple_Terminal": {
|
|
370
|
+
return 2;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
if (/-256(?:color)?$/i.test(env.TERM)) {
|
|
375
|
+
return 2;
|
|
376
|
+
}
|
|
377
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
378
|
+
return 1;
|
|
379
|
+
}
|
|
380
|
+
if ("COLORTERM" in env) {
|
|
381
|
+
return 1;
|
|
382
|
+
}
|
|
383
|
+
return min;
|
|
384
|
+
}
|
|
385
|
+
function createSupportsColor(stream, options = {}) {
|
|
386
|
+
const level = _supportsColor(stream, {
|
|
387
|
+
streamIsTTY: stream && stream.isTTY,
|
|
388
|
+
...options
|
|
389
|
+
});
|
|
390
|
+
return translateLevel(level);
|
|
391
|
+
}
|
|
392
|
+
var supportsColor = {
|
|
393
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
394
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
395
|
+
};
|
|
396
|
+
var supports_color_default = supportsColor;
|
|
397
|
+
|
|
398
|
+
// node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
399
|
+
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
400
|
+
var GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
|
|
401
|
+
var STYLER = /* @__PURE__ */ Symbol("STYLER");
|
|
402
|
+
var IS_EMPTY = /* @__PURE__ */ Symbol("IS_EMPTY");
|
|
403
|
+
var LEVEL = /* @__PURE__ */ Symbol("LEVEL");
|
|
404
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
405
|
+
var assertValidLevel = (level) => {
|
|
406
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) {
|
|
407
|
+
throw new Error("The `level` should be an integer from 0 to 3");
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
var levelDescriptor = {
|
|
411
|
+
enumerable: true,
|
|
412
|
+
get() {
|
|
413
|
+
return this[LEVEL];
|
|
414
|
+
},
|
|
415
|
+
set(level) {
|
|
416
|
+
assertValidLevel(level);
|
|
417
|
+
this[LEVEL] = level;
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
var applyOptions = (object, options = {}) => {
|
|
421
|
+
if (options.level !== void 0) {
|
|
422
|
+
assertValidLevel(options.level);
|
|
423
|
+
}
|
|
424
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
425
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
426
|
+
};
|
|
427
|
+
var chalkFactory = (options) => {
|
|
428
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
429
|
+
applyOptions(chalk2, options);
|
|
430
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
431
|
+
return chalk2;
|
|
432
|
+
};
|
|
433
|
+
function createChalk(options) {
|
|
434
|
+
return chalkFactory(options);
|
|
435
|
+
}
|
|
436
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
437
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
438
|
+
styles2[styleName] = {
|
|
439
|
+
get() {
|
|
440
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
441
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
442
|
+
return builder;
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
styles2.visible = {
|
|
447
|
+
get() {
|
|
448
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
449
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
450
|
+
return builder;
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
var createModelConverters = (model, type) => {
|
|
454
|
+
const style = ansi_styles_default[type];
|
|
455
|
+
if (model === "rgb") {
|
|
456
|
+
const ansi2 = (red, green, blue) => style.ansi(ansi_styles_default.rgbToAnsi(red, green, blue));
|
|
457
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansi_styles_default.rgbToAnsi256(red, green, blue));
|
|
458
|
+
return [ansi2, ansi2, ansi256, style.ansi16m];
|
|
459
|
+
}
|
|
460
|
+
if (model === "hex") {
|
|
461
|
+
const ansi2 = (hex) => style.ansi(ansi_styles_default.hexToAnsi(hex));
|
|
462
|
+
const ansi256 = (hex) => style.ansi256(ansi_styles_default.hexToAnsi256(hex));
|
|
463
|
+
return [ansi2, ansi2, ansi256, (hex) => style.ansi16m(...ansi_styles_default.hexToRgb(hex))];
|
|
464
|
+
}
|
|
465
|
+
const ansi = (code) => style.ansi(ansi_styles_default.ansi256ToAnsi(code));
|
|
466
|
+
return [ansi, ansi, style.ansi256, style.ansi256];
|
|
467
|
+
};
|
|
468
|
+
var usedModels = ["rgb", "hex", "ansi256"];
|
|
469
|
+
for (const model of usedModels) {
|
|
470
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
471
|
+
for (const [styleName, type] of [
|
|
472
|
+
[model, "color"],
|
|
473
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
474
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
475
|
+
]) {
|
|
476
|
+
const { close } = ansi_styles_default[type];
|
|
477
|
+
const converters = createModelConverters(model, type);
|
|
478
|
+
styles2[styleName] = {
|
|
479
|
+
get() {
|
|
480
|
+
const styleFunction = function(first, second, third) {
|
|
481
|
+
const open = converters[this.level](first, second, third);
|
|
482
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
483
|
+
};
|
|
484
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
485
|
+
return styleFunction;
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
var proto = Object.defineProperties(
|
|
491
|
+
() => {
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
...styles2,
|
|
495
|
+
level: {
|
|
496
|
+
enumerable: true,
|
|
497
|
+
get() {
|
|
498
|
+
return this[GENERATOR].level;
|
|
499
|
+
},
|
|
500
|
+
set(level) {
|
|
501
|
+
this[GENERATOR].level = level;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
);
|
|
506
|
+
var createStyler = (open, close, parent) => {
|
|
507
|
+
let openAll;
|
|
508
|
+
let closeAll;
|
|
509
|
+
if (parent === void 0) {
|
|
510
|
+
openAll = open;
|
|
511
|
+
closeAll = close;
|
|
512
|
+
} else {
|
|
513
|
+
openAll = parent.openAll + open;
|
|
514
|
+
closeAll = close + parent.closeAll;
|
|
515
|
+
}
|
|
516
|
+
return {
|
|
517
|
+
open,
|
|
518
|
+
close,
|
|
519
|
+
openAll,
|
|
520
|
+
closeAll,
|
|
521
|
+
parent
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
var createBuilder = (self, _styler, _isEmpty) => {
|
|
525
|
+
const builder = (...arguments_) => {
|
|
526
|
+
if (arguments_.length === 1) {
|
|
527
|
+
return applyStyle(builder, "" + arguments_[0]);
|
|
528
|
+
}
|
|
529
|
+
if (arguments_.length === 2) {
|
|
530
|
+
return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
531
|
+
}
|
|
532
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
533
|
+
};
|
|
534
|
+
Object.setPrototypeOf(builder, proto);
|
|
535
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
536
|
+
builder[STYLER] = _styler;
|
|
537
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
538
|
+
return builder;
|
|
539
|
+
};
|
|
540
|
+
var applyStyle = (self, string) => {
|
|
541
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) {
|
|
542
|
+
return self[IS_EMPTY] ? "" : string;
|
|
543
|
+
}
|
|
544
|
+
let styler = self[STYLER];
|
|
545
|
+
if (styler === void 0) {
|
|
546
|
+
return string;
|
|
547
|
+
}
|
|
548
|
+
const { openAll, closeAll } = styler;
|
|
549
|
+
if (string.includes("\x1B")) {
|
|
550
|
+
while (styler !== void 0) {
|
|
551
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
552
|
+
styler = styler.parent;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
const lfIndex = string.indexOf("\n");
|
|
556
|
+
if (lfIndex !== -1) {
|
|
557
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
558
|
+
}
|
|
559
|
+
return openAll + string + closeAll;
|
|
560
|
+
};
|
|
561
|
+
Object.defineProperties(createChalk.prototype, { ...styles2, level: levelDescriptor });
|
|
562
|
+
var chalk = createChalk();
|
|
563
|
+
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
564
|
+
var source_default = chalk;
|
|
565
|
+
|
|
566
|
+
export {
|
|
567
|
+
source_default
|
|
568
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createRequire as __clikcodeCreateRequire } from 'node:module';
|
|
2
|
+
const require = __clikcodeCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
DESTRUCTIVE_STEP,
|
|
5
|
+
describeRecipe,
|
|
6
|
+
destructiveStep,
|
|
7
|
+
detectBlocker,
|
|
8
|
+
fillPlaceholders,
|
|
9
|
+
getRecipe,
|
|
10
|
+
listRecipes,
|
|
11
|
+
normalizeHost,
|
|
12
|
+
recipeProblem,
|
|
13
|
+
replayHostAllowed,
|
|
14
|
+
replayRecipe,
|
|
15
|
+
saveRecipe
|
|
16
|
+
} from "./chunk-OQ245JLA.js";
|
|
17
|
+
import "./chunk-MCBRVPA7.js";
|
|
18
|
+
import "./chunk-CBANJFBO.js";
|
|
19
|
+
import "./chunk-PWXII6HF.js";
|
|
20
|
+
export {
|
|
21
|
+
DESTRUCTIVE_STEP,
|
|
22
|
+
describeRecipe,
|
|
23
|
+
destructiveStep,
|
|
24
|
+
detectBlocker,
|
|
25
|
+
fillPlaceholders,
|
|
26
|
+
getRecipe,
|
|
27
|
+
listRecipes,
|
|
28
|
+
normalizeHost,
|
|
29
|
+
recipeProblem,
|
|
30
|
+
replayHostAllowed,
|
|
31
|
+
replayRecipe,
|
|
32
|
+
saveRecipe
|
|
33
|
+
};
|