privateer-agent 0.15.4 → 0.15.6
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 +11 -0
- package/bin/boot-bundle.d.mts +2 -0
- package/bin/boot-bundle.mjs +44 -0
- package/bin/fresh-supervisor.d.mts +5 -1
- package/bin/fresh-supervisor.mjs +47 -10
- package/bin/privateer-launch.mjs +27 -3
- package/bin/privateer-subagent.mjs +5 -2
- package/bin/privateer-verify.mjs +12 -0
- package/bin/session-recovery.d.mts +53 -0
- package/bin/session-recovery.mjs +240 -0
- package/bin/session-seal-preload.mjs +17 -0
- package/bin/session-seal.d.mts +25 -0
- package/bin/session-seal.mjs +242 -0
- package/dist-boot/boot.mjs +3 -0
- package/dist-boot/c-27JKSMWL.mjs +1460 -0
- package/dist-boot/c-2BMRFV24.mjs +269 -0
- package/dist-boot/c-2CTF6JA3.mjs +166 -0
- package/dist-boot/c-2G3BBHRJ.mjs +84 -0
- package/dist-boot/c-2IDLKXX6.mjs +250 -0
- package/dist-boot/c-2NJD5VYM.mjs +8 -0
- package/dist-boot/c-2S5EEQPW.mjs +1602 -0
- package/dist-boot/c-2WRDCUVI.mjs +25 -0
- package/dist-boot/c-2YN3M256.mjs +14 -0
- package/dist-boot/c-37GM3GMU.mjs +187 -0
- package/dist-boot/c-3STKRSVO.mjs +2480 -0
- package/dist-boot/c-3TPV6TQQ.mjs +2320 -0
- package/dist-boot/c-3UVHLQDJ.mjs +225 -0
- package/dist-boot/c-42PUUZYC.mjs +697 -0
- package/dist-boot/c-4D5UMWVW.mjs +683 -0
- package/dist-boot/c-4ETZRMTA.mjs +46 -0
- package/dist-boot/c-4QT25BD5.mjs +1482 -0
- package/dist-boot/c-4WVR32AP.mjs +2579 -0
- package/dist-boot/c-5EMM567G.mjs +152 -0
- package/dist-boot/c-5FA4CV63.mjs +145 -0
- package/dist-boot/c-5GV3X3RB.mjs +14 -0
- package/dist-boot/c-5JCEPRIY.mjs +52 -0
- package/dist-boot/c-5NDKIIWT.mjs +16 -0
- package/dist-boot/c-5QL3AR26.mjs +4665 -0
- package/dist-boot/c-5XY6MFKN.mjs +5142 -0
- package/dist-boot/c-65UZIZC7.mjs +2897 -0
- package/dist-boot/c-6FUXKHOK.mjs +1969 -0
- package/dist-boot/c-6JHWQE4V.mjs +18242 -0
- package/dist-boot/c-6LOBR4I6.mjs +5280 -0
- package/dist-boot/c-6QHOZXKQ.mjs +14394 -0
- package/dist-boot/c-6ZO2SADQ.mjs +178 -0
- package/dist-boot/c-6ZORVVZP.mjs +1449 -0
- package/dist-boot/c-76QH4UCP.mjs +2441 -0
- package/dist-boot/c-77GO5L5Y.mjs +20982 -0
- package/dist-boot/c-7M23XFTN.mjs +5052 -0
- package/dist-boot/c-7TC367E2.mjs +32 -0
- package/dist-boot/c-7UOG7POX.mjs +1524 -0
- package/dist-boot/c-7VHP3FLN.mjs +376 -0
- package/dist-boot/c-A73JHZP2.mjs +13207 -0
- package/dist-boot/c-ABXULAFL.mjs +71 -0
- package/dist-boot/c-ANDD2AQO.mjs +74 -0
- package/dist-boot/c-AOY77AZL.mjs +1430 -0
- package/dist-boot/c-AXEPZ22I.mjs +108 -0
- package/dist-boot/c-B2Y7VNHU.mjs +427 -0
- package/dist-boot/c-B7VJUH73.mjs +77 -0
- package/dist-boot/c-BFW6CDVL.mjs +24 -0
- package/dist-boot/c-BHNIF2AR.mjs +188 -0
- package/dist-boot/c-BKF2O6BL.mjs +23 -0
- package/dist-boot/c-BOZXFTZN.mjs +8 -0
- package/dist-boot/c-BRNYJWZL.mjs +28 -0
- package/dist-boot/c-C3N4Z2HO.mjs +93 -0
- package/dist-boot/c-C4IV7ZFG.mjs +717 -0
- package/dist-boot/c-C5NK6UYV.mjs +793 -0
- package/dist-boot/c-C67644MB.mjs +1659 -0
- package/dist-boot/c-C6S2YB53.mjs +620 -0
- package/dist-boot/c-CDBEJSBF.mjs +37 -0
- package/dist-boot/c-CG47HBKU.mjs +435 -0
- package/dist-boot/c-CKCTWCT5.mjs +51 -0
- package/dist-boot/c-CN77DCGF.mjs +60 -0
- package/dist-boot/c-CRBXNKFO.mjs +1795 -0
- package/dist-boot/c-CRIHASQ6.mjs +973 -0
- package/dist-boot/c-CU4NGAUO.mjs +3786 -0
- package/dist-boot/c-CWRFLGQU.mjs +1883 -0
- package/dist-boot/c-CYQB2USO.mjs +32 -0
- package/dist-boot/c-DEE67DJO.mjs +379 -0
- package/dist-boot/c-DIFDBYOP.mjs +1258 -0
- package/dist-boot/c-DOSGVXDZ.mjs +34879 -0
- package/dist-boot/c-DR7XQI32.mjs +381 -0
- package/dist-boot/c-DTGPSB46.mjs +14666 -0
- package/dist-boot/c-DTHDNA4P.mjs +320 -0
- package/dist-boot/c-E4Z3Y5B5.mjs +3864 -0
- package/dist-boot/c-E66Z2TI7.mjs +203 -0
- package/dist-boot/c-EBU6RLRV.mjs +1527 -0
- package/dist-boot/c-EBZZNGSF.mjs +432 -0
- package/dist-boot/c-EC3LJ2KF.mjs +1032 -0
- package/dist-boot/c-EQBKXWNX.mjs +15829 -0
- package/dist-boot/c-EUEPIW4S.mjs +574 -0
- package/dist-boot/c-EX4YVWAT.mjs +378 -0
- package/dist-boot/c-EYZGSAJU.mjs +98 -0
- package/dist-boot/c-F75VRKY4.mjs +172 -0
- package/dist-boot/c-FH4NXKHV.mjs +177 -0
- package/dist-boot/c-FHNUCTEM.mjs +140 -0
- package/dist-boot/c-FJ5T42DS.mjs +5349 -0
- package/dist-boot/c-FPCNRL7G.mjs +1728 -0
- package/dist-boot/c-G4DLN7Q4.mjs +8 -0
- package/dist-boot/c-G56GYQFZ.mjs +2507 -0
- package/dist-boot/c-GLIOERDQ.mjs +1200 -0
- package/dist-boot/c-GMJ5HUBM.mjs +14 -0
- package/dist-boot/c-H3HSGMAQ.mjs +461 -0
- package/dist-boot/c-HIKTO6P7.mjs +275 -0
- package/dist-boot/c-I2MCJ34O.mjs +464 -0
- package/dist-boot/c-I3C6LBW4.mjs +765 -0
- package/dist-boot/c-I54OKQHW.mjs +387 -0
- package/dist-boot/c-IFSP3R4D.mjs +80 -0
- package/dist-boot/c-IZK77VB7.mjs +171 -0
- package/dist-boot/c-J3Y25UGE.mjs +54 -0
- package/dist-boot/c-J5IESS7W.mjs +27750 -0
- package/dist-boot/c-JJWZBY7L.mjs +254 -0
- package/dist-boot/c-JKTFXTGF.mjs +463 -0
- package/dist-boot/c-JN57AXQ4.mjs +77 -0
- package/dist-boot/c-KFIO6LUW.mjs +1096 -0
- package/dist-boot/c-KIEMEFWW.mjs +478 -0
- package/dist-boot/c-KIVXWBYD.mjs +28 -0
- package/dist-boot/c-KP6CRIP4.mjs +580 -0
- package/dist-boot/c-L26VOJX4.mjs +11558 -0
- package/dist-boot/c-L5GHWG5G.mjs +5988 -0
- package/dist-boot/c-M7NSQAKK.mjs +353 -0
- package/dist-boot/c-MCEWOPBW.mjs +56 -0
- package/dist-boot/c-MGPIEG7I.mjs +20 -0
- package/dist-boot/c-NREXJV3M.mjs +393 -0
- package/dist-boot/c-O5PP6CTX.mjs +162 -0
- package/dist-boot/c-OBQDHSXM.mjs +1774 -0
- package/dist-boot/c-OLQHHDD4.mjs +21 -0
- package/dist-boot/c-OXW4JQQH.mjs +319 -0
- package/dist-boot/c-P3D7ZUWN.mjs +1288 -0
- package/dist-boot/c-P4PQZVV5.mjs +948 -0
- package/dist-boot/c-P63T3XL2.mjs +26373 -0
- package/dist-boot/c-P6N5DQGZ.mjs +194 -0
- package/dist-boot/c-P7MLKQFC.mjs +58 -0
- package/dist-boot/c-PB3PZJL5.mjs +1276 -0
- package/dist-boot/c-PTN4S6G2.mjs +1259 -0
- package/dist-boot/c-PYCE5J7U.mjs +1083 -0
- package/dist-boot/c-Q4HYCRLB.mjs +19410 -0
- package/dist-boot/c-QUXMETGG.mjs +68 -0
- package/dist-boot/c-RDMJZCOX.mjs +356 -0
- package/dist-boot/c-ROGJK76M.mjs +17 -0
- package/dist-boot/c-RQJJ26T4.mjs +708 -0
- package/dist-boot/c-RSKCUPJF.mjs +7559 -0
- package/dist-boot/c-RVJU4O6P.mjs +37 -0
- package/dist-boot/c-S2RVHR3M.mjs +165 -0
- package/dist-boot/c-SKMK3PEE.mjs +91120 -0
- package/dist-boot/c-TI7SM4EG.mjs +20 -0
- package/dist-boot/c-TILJ6GXD.mjs +1235 -0
- package/dist-boot/c-TT6BCUJD.mjs +114 -0
- package/dist-boot/c-U4ITOXAN.mjs +2107 -0
- package/dist-boot/c-UGERXVO2.mjs +7120 -0
- package/dist-boot/c-UPBH5AXY.mjs +1363 -0
- package/dist-boot/c-US2PUNZL.mjs +597 -0
- package/dist-boot/c-UU4WZPPE.mjs +20 -0
- package/dist-boot/c-UWVIYPQS.mjs +39 -0
- package/dist-boot/c-V4RHQBPQ.mjs +17683 -0
- package/dist-boot/c-V5MRVK47.mjs +351 -0
- package/dist-boot/c-V6CL266R.mjs +1755 -0
- package/dist-boot/c-VJTMFKYE.mjs +14975 -0
- package/dist-boot/c-VJTRUKIB.mjs +773 -0
- package/dist-boot/c-W4IFSHPW.mjs +43 -0
- package/dist-boot/c-WETGB2CF.mjs +113 -0
- package/dist-boot/c-WO3QSZUU.mjs +1337 -0
- package/dist-boot/c-WQLH73TY.mjs +242 -0
- package/dist-boot/c-XL735JW5.mjs +500 -0
- package/dist-boot/c-Y7HADL5B.mjs +1107 -0
- package/dist-boot/c-YGQHSVSK.mjs +41 -0
- package/dist-boot/c-YMP2AMEB.mjs +10350 -0
- package/dist-boot/c-YRDO2WEF.mjs +12012 -0
- package/dist-boot/c-YUSTRATJ.mjs +8 -0
- package/dist-boot/c-Z2262R22.mjs +2697 -0
- package/dist-boot/c-Z4ALQMJC.mjs +709 -0
- package/dist-boot/c-Z5ZUQVUY.mjs +62 -0
- package/dist-boot/c-ZDZUKXF7.mjs +874 -0
- package/dist-boot/c-ZJYLGIC3.mjs +32 -0
- package/dist-boot/c-ZNA5CDMI.mjs +77 -0
- package/dist-boot/c-ZSO6DI3M.mjs +204 -0
- package/dist-boot/c-ZWUVHKMK.mjs +100 -0
- package/dist-boot/c-ZY4MESEW.mjs +832 -0
- package/dist-boot/c-ZZ5REI4L.mjs +329 -0
- package/dist-boot/cli.mjs +51 -0
- package/dist-boot/ext-anthropic-attribution.mjs +207 -0
- package/dist-boot/ext-pi-background-tasks.mjs +7234 -0
- package/dist-boot/ext-pi-subagents.mjs +37 -0
- package/dist-boot/ext-privateer-account.mjs +4426 -0
- package/dist-boot/ext-privateer-brand.mjs +5274 -0
- package/dist-boot/ext-privateer-codemode.mjs +37 -0
- package/dist-boot/ext-privateer-computer.mjs +626 -0
- package/dist-boot/ext-privateer-connect.mjs +1862 -0
- package/dist-boot/ext-privateer-context.mjs +323 -0
- package/dist-boot/ext-privateer-desktop.mjs +92 -0
- package/dist-boot/ext-privateer-final-audit.mjs +48 -0
- package/dist-boot/ext-privateer-fresh.mjs +81 -0
- package/dist-boot/ext-privateer-gate.mjs +5959 -0
- package/dist-boot/ext-privateer-hints.mjs +236 -0
- package/dist-boot/ext-privateer-media.mjs +2626 -0
- package/dist-boot/ext-privateer-models.mjs +3397 -0
- package/dist-boot/ext-privateer-posture.mjs +3006 -0
- package/dist-boot/ext-privateer-privacy.mjs +4578 -0
- package/dist-boot/ext-privateer-recovery.mjs +287 -0
- package/dist-boot/ext-privateer-speak.mjs +4754 -0
- package/dist-boot/ext-privateer-terminals.mjs +725 -0
- package/dist-boot/ext-privateer-tools.mjs +528 -0
- package/dist-boot/ext-privateer-truncation.mjs +74 -0
- package/dist-boot/ext-privateer-update.mjs +210 -0
- package/dist-boot/ext-privateer-vision.mjs +148 -0
- package/dist-boot/ext-privateer-web.mjs +543 -0
- package/dist-boot/ext-rpiv-ask-user-question.mjs +710 -0
- package/dist-boot/manifest.json +9 -0
- package/extensions/privateer-brand.ts +3 -1
- package/extensions/privateer-context.ts +4 -2
- package/extensions/privateer-final-audit.ts +17 -0
- package/extensions/privateer-gate.ts +55 -9
- package/extensions/privateer-recovery.ts +175 -0
- package/extensions/privateer-web.ts +4 -4
- package/package.json +3 -1
- package/patches/@earendil-works+pi-coding-agent+1.3.0.patch +199 -2
- package/patches/pi-background-tasks+2.6.10.patch +91 -7
- package/src/cli/chat.ts +7 -1
- package/src/config/moatManifest.json +2 -0
- package/src/config/whatsNew.json +4 -4
- package/src/context.ts +33 -5
- package/src/engine/finalAudit.ts +38 -0
- package/src/engine/stallWatchdog.ts +8 -1
- package/src/providers/account.ts +34 -3
- package/src/remote/attentionPush.ts +40 -0
- package/src/remote/liveTaskSession.ts +7 -1
- package/src/remote/relayClient.ts +38 -4
- package/src/remote/remoteBridge.ts +17 -0
- package/src/remote/transcriptSnapshot.ts +104 -0
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
import{createRequire as __pvCR}from"node:module";import{fileURLToPath as __pvF}from"node:url";import{dirname as __pvD}from"node:path";const require=__pvCR(import.meta.url);const __pvUrl=(r)=>new URL(r,import.meta.url).href;const __pvFile=(r)=>__pvF(new URL(r,import.meta.url));
|
|
2
|
+
import {
|
|
3
|
+
__name
|
|
4
|
+
} from "./c-CN77DCGF.mjs";
|
|
5
|
+
|
|
6
|
+
// node_modules/@earendil-works/pi-coding-agent/node_modules/chalk/source/utilities.js
|
|
7
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
8
|
+
let index = string.indexOf(substring);
|
|
9
|
+
if (index === -1) {
|
|
10
|
+
return string;
|
|
11
|
+
}
|
|
12
|
+
const substringLength = substring.length;
|
|
13
|
+
let endIndex = 0;
|
|
14
|
+
let returnValue = "";
|
|
15
|
+
do {
|
|
16
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
17
|
+
endIndex = index + substringLength;
|
|
18
|
+
index = string.indexOf(substring, endIndex);
|
|
19
|
+
} while (index !== -1);
|
|
20
|
+
returnValue += string.slice(endIndex);
|
|
21
|
+
return returnValue;
|
|
22
|
+
}
|
|
23
|
+
__name(stringReplaceAll, "stringReplaceAll");
|
|
24
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
25
|
+
let endIndex = 0;
|
|
26
|
+
let returnValue = "";
|
|
27
|
+
do {
|
|
28
|
+
const isGotCR = string[index - 1] === "\r";
|
|
29
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
30
|
+
endIndex = index + 1;
|
|
31
|
+
index = string.indexOf("\n", endIndex);
|
|
32
|
+
} while (index !== -1);
|
|
33
|
+
returnValue += string.slice(endIndex);
|
|
34
|
+
return returnValue;
|
|
35
|
+
}
|
|
36
|
+
__name(stringEncaseCRLFWithFirstIndex, "stringEncaseCRLFWithFirstIndex");
|
|
37
|
+
|
|
38
|
+
// node_modules/@earendil-works/pi-coding-agent/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
39
|
+
var ANSI_BACKGROUND_OFFSET = 10;
|
|
40
|
+
var ANSI_UNDERLINE_OFFSET = 20;
|
|
41
|
+
var wrapAnsi16 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${code + offset}m`, "wrapAnsi16");
|
|
42
|
+
var wrapAnsi256 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, "wrapAnsi256");
|
|
43
|
+
var wrapAnsi16m = /* @__PURE__ */ __name((offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, "wrapAnsi16m");
|
|
44
|
+
var wrapUnderlineAnsi = /* @__PURE__ */ __name((code) => `\x1B[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`, "wrapUnderlineAnsi");
|
|
45
|
+
var styles = {
|
|
46
|
+
modifier: {
|
|
47
|
+
reset: [0, 0],
|
|
48
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
49
|
+
bold: [1, 22],
|
|
50
|
+
dim: [2, 22],
|
|
51
|
+
italic: [3, 23],
|
|
52
|
+
underline: [4, 24],
|
|
53
|
+
// Extended underline styles (`SGR 4:x` sub-parameters). Not in upstream `ansi-styles`.
|
|
54
|
+
underlineDouble: ["4:2", 24],
|
|
55
|
+
underlineCurly: ["4:3", 24],
|
|
56
|
+
underlineDotted: ["4:4", 24],
|
|
57
|
+
underlineDashed: ["4:5", 24],
|
|
58
|
+
overline: [53, 55],
|
|
59
|
+
inverse: [7, 27],
|
|
60
|
+
hidden: [8, 28],
|
|
61
|
+
strikethrough: [9, 29]
|
|
62
|
+
},
|
|
63
|
+
color: {
|
|
64
|
+
black: [30, 39],
|
|
65
|
+
red: [31, 39],
|
|
66
|
+
green: [32, 39],
|
|
67
|
+
yellow: [33, 39],
|
|
68
|
+
blue: [34, 39],
|
|
69
|
+
magenta: [35, 39],
|
|
70
|
+
cyan: [36, 39],
|
|
71
|
+
white: [37, 39],
|
|
72
|
+
// Bright color
|
|
73
|
+
blackBright: [90, 39],
|
|
74
|
+
gray: [90, 39],
|
|
75
|
+
// Alias of `blackBright`
|
|
76
|
+
grey: [90, 39],
|
|
77
|
+
// Alias of `blackBright`
|
|
78
|
+
redBright: [91, 39],
|
|
79
|
+
greenBright: [92, 39],
|
|
80
|
+
yellowBright: [93, 39],
|
|
81
|
+
blueBright: [94, 39],
|
|
82
|
+
magentaBright: [95, 39],
|
|
83
|
+
cyanBright: [96, 39],
|
|
84
|
+
whiteBright: [97, 39]
|
|
85
|
+
},
|
|
86
|
+
bgColor: {
|
|
87
|
+
bgBlack: [40, 49],
|
|
88
|
+
bgRed: [41, 49],
|
|
89
|
+
bgGreen: [42, 49],
|
|
90
|
+
bgYellow: [43, 49],
|
|
91
|
+
bgBlue: [44, 49],
|
|
92
|
+
bgMagenta: [45, 49],
|
|
93
|
+
bgCyan: [46, 49],
|
|
94
|
+
bgWhite: [47, 49],
|
|
95
|
+
// Bright color
|
|
96
|
+
bgBlackBright: [100, 49],
|
|
97
|
+
bgGray: [100, 49],
|
|
98
|
+
// Alias of `bgBlackBright`
|
|
99
|
+
bgGrey: [100, 49],
|
|
100
|
+
// Alias of `bgBlackBright`
|
|
101
|
+
bgRedBright: [101, 49],
|
|
102
|
+
bgGreenBright: [102, 49],
|
|
103
|
+
bgYellowBright: [103, 49],
|
|
104
|
+
bgBlueBright: [104, 49],
|
|
105
|
+
bgMagentaBright: [105, 49],
|
|
106
|
+
bgCyanBright: [106, 49],
|
|
107
|
+
bgWhiteBright: [107, 49]
|
|
108
|
+
},
|
|
109
|
+
// Underline color (`SGR 58`/`59`). Not in upstream `ansi-styles`.
|
|
110
|
+
underlineColor: {
|
|
111
|
+
underlineBlack: ["58;5;0", 59],
|
|
112
|
+
underlineRed: ["58;5;1", 59],
|
|
113
|
+
underlineGreen: ["58;5;2", 59],
|
|
114
|
+
underlineYellow: ["58;5;3", 59],
|
|
115
|
+
underlineBlue: ["58;5;4", 59],
|
|
116
|
+
underlineMagenta: ["58;5;5", 59],
|
|
117
|
+
underlineCyan: ["58;5;6", 59],
|
|
118
|
+
underlineWhite: ["58;5;7", 59],
|
|
119
|
+
// Bright color
|
|
120
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
121
|
+
underlineGray: ["58;5;8", 59],
|
|
122
|
+
// Alias of `underlineBlackBright`
|
|
123
|
+
underlineGrey: ["58;5;8", 59],
|
|
124
|
+
// Alias of `underlineBlackBright`
|
|
125
|
+
underlineRedBright: ["58;5;9", 59],
|
|
126
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
127
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
128
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
129
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
130
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
131
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
135
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
136
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
137
|
+
var underlineColorNames = Object.keys(styles.underlineColor);
|
|
138
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
139
|
+
function assembleStyles() {
|
|
140
|
+
const codes = /* @__PURE__ */ new Map();
|
|
141
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
142
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
143
|
+
styles[styleName] = {
|
|
144
|
+
open: `\x1B[${style[0]}m`,
|
|
145
|
+
close: `\x1B[${style[1]}m`
|
|
146
|
+
};
|
|
147
|
+
group[styleName] = styles[styleName];
|
|
148
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
149
|
+
}
|
|
150
|
+
Object.defineProperty(styles, groupName, {
|
|
151
|
+
value: group,
|
|
152
|
+
enumerable: false
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
Object.defineProperty(styles, "codes", {
|
|
156
|
+
value: codes,
|
|
157
|
+
enumerable: false
|
|
158
|
+
});
|
|
159
|
+
styles.color.close = "\x1B[39m";
|
|
160
|
+
styles.bgColor.close = "\x1B[49m";
|
|
161
|
+
styles.underlineColor.close = "\x1B[59m";
|
|
162
|
+
styles.color.ansi = wrapAnsi16();
|
|
163
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
164
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
165
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
166
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
167
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
168
|
+
styles.underlineColor.ansi = wrapUnderlineAnsi;
|
|
169
|
+
styles.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
170
|
+
styles.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
171
|
+
Object.defineProperties(styles, {
|
|
172
|
+
rgbToAnsi256: {
|
|
173
|
+
value(red, green, blue) {
|
|
174
|
+
if (red === green && green === blue) {
|
|
175
|
+
if (red < 8) {
|
|
176
|
+
return 16;
|
|
177
|
+
}
|
|
178
|
+
if (red > 248) {
|
|
179
|
+
return 231;
|
|
180
|
+
}
|
|
181
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
182
|
+
}
|
|
183
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
184
|
+
},
|
|
185
|
+
enumerable: false
|
|
186
|
+
},
|
|
187
|
+
hexToRgb: {
|
|
188
|
+
value(hex) {
|
|
189
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
190
|
+
if (!matches) {
|
|
191
|
+
return [0, 0, 0];
|
|
192
|
+
}
|
|
193
|
+
let [colorString] = matches;
|
|
194
|
+
if (colorString.length === 3) {
|
|
195
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
196
|
+
}
|
|
197
|
+
const integer = Number.parseInt(colorString, 16);
|
|
198
|
+
return [
|
|
199
|
+
/* eslint-disable no-bitwise -- We need the speed */
|
|
200
|
+
integer >> 16 & 255,
|
|
201
|
+
integer >> 8 & 255,
|
|
202
|
+
integer & 255
|
|
203
|
+
/* eslint-enable no-bitwise */
|
|
204
|
+
];
|
|
205
|
+
},
|
|
206
|
+
enumerable: false
|
|
207
|
+
},
|
|
208
|
+
hexToAnsi256: {
|
|
209
|
+
value: /* @__PURE__ */ __name((hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), "value"),
|
|
210
|
+
enumerable: false
|
|
211
|
+
},
|
|
212
|
+
ansi256ToAnsi: {
|
|
213
|
+
value(code) {
|
|
214
|
+
if (code < 8) {
|
|
215
|
+
return 30 + code;
|
|
216
|
+
}
|
|
217
|
+
if (code < 16) {
|
|
218
|
+
return 90 + (code - 8);
|
|
219
|
+
}
|
|
220
|
+
let red;
|
|
221
|
+
let green;
|
|
222
|
+
let blue;
|
|
223
|
+
if (code >= 232) {
|
|
224
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
225
|
+
green = red;
|
|
226
|
+
blue = red;
|
|
227
|
+
} else {
|
|
228
|
+
code -= 16;
|
|
229
|
+
const remainder = code % 36;
|
|
230
|
+
red = Math.floor(code / 36) / 5;
|
|
231
|
+
green = Math.floor(remainder / 6) / 5;
|
|
232
|
+
blue = remainder % 6 / 5;
|
|
233
|
+
}
|
|
234
|
+
const value = Math.max(red, green, blue) * 2;
|
|
235
|
+
if (value === 0) {
|
|
236
|
+
return 30;
|
|
237
|
+
}
|
|
238
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
239
|
+
if (value === 2) {
|
|
240
|
+
result += 60;
|
|
241
|
+
}
|
|
242
|
+
return result;
|
|
243
|
+
},
|
|
244
|
+
enumerable: false
|
|
245
|
+
},
|
|
246
|
+
rgbToAnsi: {
|
|
247
|
+
value: /* @__PURE__ */ __name((red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)), "value"),
|
|
248
|
+
enumerable: false
|
|
249
|
+
},
|
|
250
|
+
hexToAnsi: {
|
|
251
|
+
value: /* @__PURE__ */ __name((hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), "value"),
|
|
252
|
+
enumerable: false
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
return styles;
|
|
256
|
+
}
|
|
257
|
+
__name(assembleStyles, "assembleStyles");
|
|
258
|
+
var ansiStyles = assembleStyles();
|
|
259
|
+
var ansi_styles_default = ansiStyles;
|
|
260
|
+
|
|
261
|
+
// node_modules/@earendil-works/pi-coding-agent/node_modules/chalk/source/vendor/supports-color/index.js
|
|
262
|
+
import process from "node:process";
|
|
263
|
+
import os from "node:os";
|
|
264
|
+
import tty from "node:tty";
|
|
265
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
|
|
266
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
267
|
+
const position = argv.indexOf(prefix + flag);
|
|
268
|
+
const terminatorPosition = argv.indexOf("--");
|
|
269
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
270
|
+
}
|
|
271
|
+
__name(hasFlag, "hasFlag");
|
|
272
|
+
var { env } = process;
|
|
273
|
+
var flagForceColor;
|
|
274
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
275
|
+
flagForceColor = 0;
|
|
276
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
277
|
+
flagForceColor = 1;
|
|
278
|
+
}
|
|
279
|
+
function hasNumericForceColor() {
|
|
280
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
281
|
+
}
|
|
282
|
+
__name(hasNumericForceColor, "hasNumericForceColor");
|
|
283
|
+
function envForceColor() {
|
|
284
|
+
if (!("FORCE_COLOR" in env)) {
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
if (env.FORCE_COLOR === "false") {
|
|
288
|
+
return 0;
|
|
289
|
+
}
|
|
290
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) {
|
|
291
|
+
return 1;
|
|
292
|
+
}
|
|
293
|
+
if (!hasNumericForceColor()) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
297
|
+
}
|
|
298
|
+
__name(envForceColor, "envForceColor");
|
|
299
|
+
function translateLevel(level) {
|
|
300
|
+
if (level === 0) {
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
return {
|
|
304
|
+
level,
|
|
305
|
+
hasBasic: true,
|
|
306
|
+
has256: level >= 2,
|
|
307
|
+
has16m: level >= 3
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
__name(translateLevel, "translateLevel");
|
|
311
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
312
|
+
const noFlagForceColor = envForceColor();
|
|
313
|
+
if (noFlagForceColor !== void 0) {
|
|
314
|
+
flagForceColor = noFlagForceColor;
|
|
315
|
+
}
|
|
316
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
317
|
+
if (forceColor === 0) {
|
|
318
|
+
return 0;
|
|
319
|
+
}
|
|
320
|
+
if (sniffFlags) {
|
|
321
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
322
|
+
return 3;
|
|
323
|
+
}
|
|
324
|
+
if (hasFlag("color=256")) {
|
|
325
|
+
return 2;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (forceColor !== void 0 && hasNumericForceColor()) {
|
|
329
|
+
return forceColor;
|
|
330
|
+
}
|
|
331
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
332
|
+
return 1;
|
|
333
|
+
}
|
|
334
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
335
|
+
return 0;
|
|
336
|
+
}
|
|
337
|
+
const min = forceColor || 0;
|
|
338
|
+
if (env.TERM === "dumb") {
|
|
339
|
+
return min;
|
|
340
|
+
}
|
|
341
|
+
if (process.platform === "win32") {
|
|
342
|
+
const osRelease = os.release().split(".");
|
|
343
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
344
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
345
|
+
}
|
|
346
|
+
return 1;
|
|
347
|
+
}
|
|
348
|
+
if ("CI" in env) {
|
|
349
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
350
|
+
return 3;
|
|
351
|
+
}
|
|
352
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
353
|
+
return 1;
|
|
354
|
+
}
|
|
355
|
+
return min;
|
|
356
|
+
}
|
|
357
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
358
|
+
return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
359
|
+
}
|
|
360
|
+
if (env.COLORTERM === "truecolor") {
|
|
361
|
+
return 3;
|
|
362
|
+
}
|
|
363
|
+
if (env.TERM === "xterm-kitty") {
|
|
364
|
+
return 3;
|
|
365
|
+
}
|
|
366
|
+
if (env.TERM === "xterm-ghostty") {
|
|
367
|
+
return 3;
|
|
368
|
+
}
|
|
369
|
+
if (env.TERM === "wezterm") {
|
|
370
|
+
return 3;
|
|
371
|
+
}
|
|
372
|
+
if ("TERM_PROGRAM" in env) {
|
|
373
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
374
|
+
switch (env.TERM_PROGRAM) {
|
|
375
|
+
case "iTerm.app": {
|
|
376
|
+
return version >= 3 ? 3 : 2;
|
|
377
|
+
}
|
|
378
|
+
case "Apple_Terminal": {
|
|
379
|
+
return 2;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
if (/-256(?:color)?$/i.test(env.TERM)) {
|
|
384
|
+
return 2;
|
|
385
|
+
}
|
|
386
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
387
|
+
return 1;
|
|
388
|
+
}
|
|
389
|
+
if ("COLORTERM" in env) {
|
|
390
|
+
return 1;
|
|
391
|
+
}
|
|
392
|
+
return min;
|
|
393
|
+
}
|
|
394
|
+
__name(_supportsColor, "_supportsColor");
|
|
395
|
+
function createSupportsColor(stream, options = {}) {
|
|
396
|
+
const level = _supportsColor(stream, {
|
|
397
|
+
streamIsTTY: stream && stream.isTTY,
|
|
398
|
+
...options
|
|
399
|
+
});
|
|
400
|
+
return translateLevel(level);
|
|
401
|
+
}
|
|
402
|
+
__name(createSupportsColor, "createSupportsColor");
|
|
403
|
+
var supportsColor = {
|
|
404
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
405
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
406
|
+
};
|
|
407
|
+
var supports_color_default = supportsColor;
|
|
408
|
+
|
|
409
|
+
// node_modules/@earendil-works/pi-coding-agent/node_modules/chalk/source/index.js
|
|
410
|
+
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
411
|
+
var GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
|
|
412
|
+
var STYLER = /* @__PURE__ */ Symbol("STYLER");
|
|
413
|
+
var IS_EMPTY = /* @__PURE__ */ Symbol("IS_EMPTY");
|
|
414
|
+
var LEVEL = /* @__PURE__ */ Symbol("LEVEL");
|
|
415
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
416
|
+
var assertValidLevel = /* @__PURE__ */ __name((level) => {
|
|
417
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) {
|
|
418
|
+
throw new Error("The `level` should be an integer from 0 to 3");
|
|
419
|
+
}
|
|
420
|
+
}, "assertValidLevel");
|
|
421
|
+
var levelDescriptor = {
|
|
422
|
+
enumerable: true,
|
|
423
|
+
get() {
|
|
424
|
+
return this[LEVEL];
|
|
425
|
+
},
|
|
426
|
+
set(level) {
|
|
427
|
+
assertValidLevel(level);
|
|
428
|
+
this[LEVEL] = level;
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
var applyOptions = /* @__PURE__ */ __name((object, options = {}) => {
|
|
432
|
+
if (options.level !== void 0) {
|
|
433
|
+
assertValidLevel(options.level);
|
|
434
|
+
}
|
|
435
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
436
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
437
|
+
}, "applyOptions");
|
|
438
|
+
var chalkFactory = /* @__PURE__ */ __name((options) => {
|
|
439
|
+
const chalk2 = /* @__PURE__ */ __name((...strings) => strings.join(" "), "chalk");
|
|
440
|
+
applyOptions(chalk2, options);
|
|
441
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
442
|
+
return chalk2;
|
|
443
|
+
}, "chalkFactory");
|
|
444
|
+
function createChalk(options) {
|
|
445
|
+
return chalkFactory(options);
|
|
446
|
+
}
|
|
447
|
+
__name(createChalk, "createChalk");
|
|
448
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
449
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
450
|
+
styles2[styleName] = {
|
|
451
|
+
get() {
|
|
452
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
453
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
454
|
+
return builder;
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
styles2.visible = {
|
|
459
|
+
get() {
|
|
460
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
461
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
462
|
+
return builder;
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
var createModelConverters = /* @__PURE__ */ __name((model, type) => {
|
|
466
|
+
const style = ansi_styles_default[type];
|
|
467
|
+
if (model === "rgb") {
|
|
468
|
+
const ansi2 = /* @__PURE__ */ __name((red, green, blue) => style.ansi(ansi_styles_default.rgbToAnsi(red, green, blue)), "ansi");
|
|
469
|
+
const ansi256 = /* @__PURE__ */ __name((red, green, blue) => style.ansi256(ansi_styles_default.rgbToAnsi256(red, green, blue)), "ansi256");
|
|
470
|
+
return [ansi2, ansi2, ansi256, style.ansi16m];
|
|
471
|
+
}
|
|
472
|
+
if (model === "hex") {
|
|
473
|
+
const ansi2 = /* @__PURE__ */ __name((hex) => style.ansi(ansi_styles_default.hexToAnsi(hex)), "ansi");
|
|
474
|
+
const ansi256 = /* @__PURE__ */ __name((hex) => style.ansi256(ansi_styles_default.hexToAnsi256(hex)), "ansi256");
|
|
475
|
+
return [ansi2, ansi2, ansi256, (hex) => style.ansi16m(...ansi_styles_default.hexToRgb(hex))];
|
|
476
|
+
}
|
|
477
|
+
const ansi = /* @__PURE__ */ __name((code) => style.ansi(ansi_styles_default.ansi256ToAnsi(code)), "ansi");
|
|
478
|
+
return [ansi, ansi, style.ansi256, style.ansi256];
|
|
479
|
+
}, "createModelConverters");
|
|
480
|
+
var usedModels = ["rgb", "hex", "ansi256"];
|
|
481
|
+
for (const model of usedModels) {
|
|
482
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
483
|
+
for (const [styleName, type] of [
|
|
484
|
+
[model, "color"],
|
|
485
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
486
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
487
|
+
]) {
|
|
488
|
+
const { close } = ansi_styles_default[type];
|
|
489
|
+
const converters = createModelConverters(model, type);
|
|
490
|
+
styles2[styleName] = {
|
|
491
|
+
get() {
|
|
492
|
+
const styleFunction = /* @__PURE__ */ __name(function(first, second, third) {
|
|
493
|
+
const open = converters[this.level](first, second, third);
|
|
494
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
495
|
+
}, "styleFunction");
|
|
496
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
497
|
+
return styleFunction;
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
var proto = Object.defineProperties(
|
|
503
|
+
() => {
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
...styles2,
|
|
507
|
+
level: {
|
|
508
|
+
enumerable: true,
|
|
509
|
+
get() {
|
|
510
|
+
return this[GENERATOR].level;
|
|
511
|
+
},
|
|
512
|
+
set(level) {
|
|
513
|
+
this[GENERATOR].level = level;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
);
|
|
518
|
+
var createStyler = /* @__PURE__ */ __name((open, close, parent) => {
|
|
519
|
+
let openAll;
|
|
520
|
+
let closeAll;
|
|
521
|
+
if (parent === void 0) {
|
|
522
|
+
openAll = open;
|
|
523
|
+
closeAll = close;
|
|
524
|
+
} else {
|
|
525
|
+
openAll = parent.openAll + open;
|
|
526
|
+
closeAll = close + parent.closeAll;
|
|
527
|
+
}
|
|
528
|
+
return {
|
|
529
|
+
open,
|
|
530
|
+
close,
|
|
531
|
+
openAll,
|
|
532
|
+
closeAll,
|
|
533
|
+
parent
|
|
534
|
+
};
|
|
535
|
+
}, "createStyler");
|
|
536
|
+
var createBuilder = /* @__PURE__ */ __name((self, _styler, _isEmpty) => {
|
|
537
|
+
const builder = /* @__PURE__ */ __name((...arguments_) => {
|
|
538
|
+
if (arguments_.length === 1) {
|
|
539
|
+
return applyStyle(builder, "" + arguments_[0]);
|
|
540
|
+
}
|
|
541
|
+
if (arguments_.length === 2) {
|
|
542
|
+
return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
543
|
+
}
|
|
544
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
545
|
+
}, "builder");
|
|
546
|
+
Object.setPrototypeOf(builder, proto);
|
|
547
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
548
|
+
builder[STYLER] = _styler;
|
|
549
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
550
|
+
return builder;
|
|
551
|
+
}, "createBuilder");
|
|
552
|
+
var applyStyle = /* @__PURE__ */ __name((self, string) => {
|
|
553
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) {
|
|
554
|
+
return self[IS_EMPTY] ? "" : string;
|
|
555
|
+
}
|
|
556
|
+
let styler = self[STYLER];
|
|
557
|
+
if (styler === void 0) {
|
|
558
|
+
return string;
|
|
559
|
+
}
|
|
560
|
+
const { openAll, closeAll } = styler;
|
|
561
|
+
if (string.includes("\x1B")) {
|
|
562
|
+
while (styler !== void 0) {
|
|
563
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
564
|
+
styler = styler.parent;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
const lfIndex = string.indexOf("\n");
|
|
568
|
+
if (lfIndex !== -1) {
|
|
569
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
570
|
+
}
|
|
571
|
+
return openAll + string + closeAll;
|
|
572
|
+
}, "applyStyle");
|
|
573
|
+
Object.defineProperties(createChalk.prototype, { ...styles2, level: levelDescriptor });
|
|
574
|
+
var chalk = createChalk();
|
|
575
|
+
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
576
|
+
var source_default = chalk;
|
|
577
|
+
|
|
578
|
+
export {
|
|
579
|
+
source_default
|
|
580
|
+
};
|