@liquidmetal-ai/raindrop 0.9.1 → 0.9.2
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 +111 -85
- package/bundle/{chunk-ZHYJWVIA.js → chunk-33VVNTZ7.js} +2 -2
- package/bundle/{chunk-SP4Q3T7T.js → chunk-3EXF5SKZ.js} +1 -1
- package/bundle/{chunk-JXNZYHAI.js → chunk-3TJC2HRW.js} +89 -105
- package/bundle/{chunk-HBDFBL3W.js → chunk-44MKXST7.js} +1 -1
- package/bundle/{chunk-GDYEPR67.js → chunk-4RZFURCF.js} +1 -1
- package/bundle/{chunk-67CBWZ7Y.js → chunk-4UNXUMLE.js} +3 -3
- package/bundle/chunk-4VJ2X7ZI.js +48 -0
- package/bundle/{chunk-IMQTVYRB.js → chunk-4WGY3ATR.js} +1 -1
- package/bundle/{chunk-ORPX7FPP.js → chunk-5TPOE7P2.js} +1 -5
- package/bundle/chunk-7JFKALLH.js +133 -0
- package/bundle/chunk-7O6U3ZAR.js +75 -0
- package/bundle/chunk-AWUA3C2V.js +114 -0
- package/bundle/{chunk-QKHN66ZN.js → chunk-BEN3KZQU.js} +1 -1
- package/bundle/{chunk-JDMAG4KE.js → chunk-BPZWIRQS.js} +2 -2
- package/bundle/chunk-C7G6I3MQ.js +292 -0
- package/bundle/chunk-D23L4WLL.js +502 -0
- package/bundle/chunk-E2TCXKAT.js +48 -0
- package/bundle/{chunk-FTG32FZ4.js → chunk-E7K6Y6GO.js} +1 -1
- package/bundle/chunk-EBK2SJTZ.js +805 -0
- package/bundle/chunk-FTH4A227.js +46 -0
- package/bundle/chunk-HBWEGYBW.js +4486 -0
- package/bundle/chunk-HFEVZZHW.js +46 -0
- package/bundle/chunk-I5M6WZPS.js +384 -0
- package/bundle/chunk-J44ZDCXF.js +44 -0
- package/bundle/{chunk-D5TOYPUE.js → chunk-J6XV5EH5.js} +1 -1
- package/bundle/chunk-KE7CMLHP.js +292 -0
- package/bundle/{chunk-ZLRYUJ5P.js → chunk-KHYRZQSK.js} +4 -4
- package/bundle/chunk-KOYRAC7N.js +74 -0
- package/bundle/chunk-KQ3F5KG7.js +231 -0
- package/bundle/chunk-KSXGB4ZG.js +4539 -0
- package/bundle/{chunk-7ERI6IFL.js → chunk-LP3LXBGR.js} +1 -1
- package/bundle/chunk-MH3BACIP.js +238722 -0
- package/bundle/chunk-MM7BYDBJ.js +238725 -0
- package/bundle/chunk-MQUFNQI5.js +231 -0
- package/bundle/{chunk-4RVUC2XX.js → chunk-N3LTFUBJ.js} +1 -1
- package/bundle/chunk-NWYJJVCF.js +22452 -0
- package/bundle/chunk-OAMLVMOY.js +133 -0
- package/bundle/chunk-PBVMMANP.js +4480 -0
- package/bundle/chunk-PT6CYFBD.js +74 -0
- package/bundle/chunk-QAG6TIB7.js +12148 -0
- package/bundle/chunk-RSLQIAJB.js +12148 -0
- package/bundle/chunk-SAU2NEDC.js +147 -0
- package/bundle/chunk-SZ6TMVT4.js +22452 -0
- package/bundle/chunk-T3MAVQWW.js +292 -0
- package/bundle/chunk-TCGZNSBY.js +4539 -0
- package/bundle/chunk-TRIIBQDR.js +4480 -0
- package/bundle/chunk-UUTXTOE3.js +231 -0
- package/bundle/chunk-VMKGSIXK.js +75 -0
- package/bundle/chunk-XDCRA7Y2.js +805 -0
- package/bundle/chunk-XEMONOX2.js +384 -0
- package/bundle/chunk-YAPQ2CKV.js +115 -0
- package/bundle/chunk-YDDBYUDC.js +502 -0
- package/bundle/chunk-ZGLCW5YO.js +380 -0
- package/bundle/chunk-ZQ6BFQSX.js +44 -0
- package/bundle/chunk-ZZTNAQSE.js +147 -0
- package/bundle/commands/annotation/get.js +3 -3
- package/bundle/commands/annotation/list.js +3 -3
- package/bundle/commands/annotation/put.js +3 -3
- package/bundle/commands/auth/list.js +2 -2
- package/bundle/commands/auth/login.js +3 -3
- package/bundle/commands/auth/logout.js +2 -2
- package/bundle/commands/auth/select.js +3 -3
- package/bundle/commands/bucket/create-credential.js +2 -2
- package/bundle/commands/bucket/delete-credential.js +2 -2
- package/bundle/commands/bucket/get-credential.js +2 -2
- package/bundle/commands/bucket/list-credentials.js +2 -2
- package/bundle/commands/build/branch.js +9 -9
- package/bundle/commands/build/checkout.js +6 -5
- package/bundle/commands/build/clone.js +5 -5
- package/bundle/commands/build/delete.js +6 -5
- package/bundle/commands/build/deploy.js +9 -9
- package/bundle/commands/build/env/get.js +2 -2
- package/bundle/commands/build/env/set.js +2 -2
- package/bundle/commands/build/find.js +7 -3
- package/bundle/commands/build/generate.js +3 -3
- package/bundle/commands/build/init-workspace.js +102 -0
- package/bundle/commands/build/init.js +3 -3
- package/bundle/commands/build/list.js +5 -4
- package/bundle/commands/build/sandbox.js +7 -7
- package/bundle/commands/build/start.js +2 -2
- package/bundle/commands/build/status.js +8 -4
- package/bundle/commands/build/stop.js +2 -2
- package/bundle/commands/build/tools/check.js +2 -2
- package/bundle/commands/build/tools/fmt.js +2 -2
- package/bundle/commands/build/unsandbox.js +7 -7
- package/bundle/commands/build/upload.js +5 -5
- package/bundle/commands/build/validate.js +4 -4
- package/bundle/commands/build/workos/delete.js +4 -4
- package/bundle/commands/build/workos/env/attach.js +3 -3
- package/bundle/commands/build/workos/env/create.js +3 -3
- package/bundle/commands/build/workos/env/delete.js +3 -3
- package/bundle/commands/build/workos/env/detach.js +3 -3
- package/bundle/commands/build/workos/env/get.js +3 -3
- package/bundle/commands/build/workos/env/list.js +3 -3
- package/bundle/commands/build/workos/env/set.js +3 -3
- package/bundle/commands/build/workos/invite.js +3 -3
- package/bundle/commands/build/workos/setup.js +3 -3
- package/bundle/commands/build/workos/status.js +3 -3
- package/bundle/commands/dns/create.js +2 -2
- package/bundle/commands/dns/delete.js +4 -4
- package/bundle/commands/dns/get.js +4 -4
- package/bundle/commands/dns/list.js +3 -3
- package/bundle/commands/dns/records/create.js +2 -2
- package/bundle/commands/dns/records/delete.js +3 -3
- package/bundle/commands/dns/records/get.js +2 -2
- package/bundle/commands/dns/records/list.js +2 -2
- package/bundle/commands/dns/records/update.js +2 -2
- package/bundle/commands/logs/query.js +3 -3
- package/bundle/commands/logs/tail.js +3 -3
- package/bundle/commands/mcp/install-claude.js +2 -2
- package/bundle/commands/mcp/install-gemini.js +2 -2
- package/bundle/commands/mcp/install-goose.js +2 -2
- package/bundle/commands/mcp/status.js +2 -2
- package/bundle/commands/object/delete.js +2 -2
- package/bundle/commands/object/get.js +2 -2
- package/bundle/commands/object/list.js +2 -2
- package/bundle/commands/object/put.js +2 -2
- package/bundle/commands/query/chunk-search.js +3 -3
- package/bundle/commands/query/document.js +3 -3
- package/bundle/commands/query/events.js +2 -2
- package/bundle/commands/query/reindex.js +2 -2
- package/bundle/commands/query/search.js +3 -3
- package/bundle/commands/tail.js +2 -2
- package/bundle/index.js +1 -1
- package/dist/commands/build/find.d.ts.map +1 -1
- package/dist/commands/build/find.js +3 -0
- package/dist/commands/build/init-workspace.d.ts +16 -0
- package/dist/commands/build/init-workspace.d.ts.map +1 -0
- package/dist/commands/build/init-workspace.js +95 -0
- package/dist/commands/build/list.d.ts.map +1 -1
- package/dist/commands/build/list.js +3 -0
- package/dist/commands/build/status.d.ts.map +1 -1
- package/dist/commands/build/status.js +3 -0
- package/dist/killswitch-utils.d.ts +30 -0
- package/dist/killswitch-utils.d.ts.map +1 -0
- package/dist/killswitch-utils.js +83 -0
- package/oclif.manifest.json +2114 -2007
- package/package.json +3 -3
- package/templates/claude-code/debug-raindrop-app.md +12 -39
- package/templates/claude-code/update-raindrop-app.md +5 -6
- package/templates/db/node_modules/.bin/prisma +2 -2
- package/templates/db/node_modules/.bin/prisma-kysely +2 -2
- package/templates/db/node_modules/.bin/tsc +2 -2
- package/templates/db/node_modules/.bin/tsserver +2 -2
- package/templates/db/node_modules/.bin/zx +2 -2
- package/templates/gemini-code/debug-raindrop-app.toml +12 -39
- package/templates/gemini-code/update-raindrop-app.toml +5 -6
- package/templates/goose/debug-raindrop-app.yaml +12 -39
- package/templates/goose/update-raindrop-app.yaml +5 -6
- package/templates/workspace/.gitignore.hbs +40 -0
- package/templates/workspace/package.json.hbs +22 -0
- package/dist/commands/killswitch.d.ts +0 -20
- package/dist/commands/killswitch.d.ts.map +0 -1
- package/dist/commands/killswitch.js +0 -58
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/utils/mixpanel.d.ts +0 -10
- package/dist/utils/mixpanel.d.ts.map +0 -1
- package/dist/utils/mixpanel.js +0 -43
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_cjs_shims
|
|
3
|
+
} from "./chunk-3TJC2HRW.js";
|
|
4
|
+
|
|
5
|
+
// ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
|
|
6
|
+
init_cjs_shims();
|
|
7
|
+
|
|
8
|
+
// ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
9
|
+
init_cjs_shims();
|
|
10
|
+
var ANSI_BACKGROUND_OFFSET = 10;
|
|
11
|
+
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
12
|
+
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
13
|
+
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
14
|
+
var styles = {
|
|
15
|
+
modifier: {
|
|
16
|
+
reset: [0, 0],
|
|
17
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
18
|
+
bold: [1, 22],
|
|
19
|
+
dim: [2, 22],
|
|
20
|
+
italic: [3, 23],
|
|
21
|
+
underline: [4, 24],
|
|
22
|
+
overline: [53, 55],
|
|
23
|
+
inverse: [7, 27],
|
|
24
|
+
hidden: [8, 28],
|
|
25
|
+
strikethrough: [9, 29]
|
|
26
|
+
},
|
|
27
|
+
color: {
|
|
28
|
+
black: [30, 39],
|
|
29
|
+
red: [31, 39],
|
|
30
|
+
green: [32, 39],
|
|
31
|
+
yellow: [33, 39],
|
|
32
|
+
blue: [34, 39],
|
|
33
|
+
magenta: [35, 39],
|
|
34
|
+
cyan: [36, 39],
|
|
35
|
+
white: [37, 39],
|
|
36
|
+
// Bright color
|
|
37
|
+
blackBright: [90, 39],
|
|
38
|
+
gray: [90, 39],
|
|
39
|
+
// Alias of `blackBright`
|
|
40
|
+
grey: [90, 39],
|
|
41
|
+
// Alias of `blackBright`
|
|
42
|
+
redBright: [91, 39],
|
|
43
|
+
greenBright: [92, 39],
|
|
44
|
+
yellowBright: [93, 39],
|
|
45
|
+
blueBright: [94, 39],
|
|
46
|
+
magentaBright: [95, 39],
|
|
47
|
+
cyanBright: [96, 39],
|
|
48
|
+
whiteBright: [97, 39]
|
|
49
|
+
},
|
|
50
|
+
bgColor: {
|
|
51
|
+
bgBlack: [40, 49],
|
|
52
|
+
bgRed: [41, 49],
|
|
53
|
+
bgGreen: [42, 49],
|
|
54
|
+
bgYellow: [43, 49],
|
|
55
|
+
bgBlue: [44, 49],
|
|
56
|
+
bgMagenta: [45, 49],
|
|
57
|
+
bgCyan: [46, 49],
|
|
58
|
+
bgWhite: [47, 49],
|
|
59
|
+
// Bright color
|
|
60
|
+
bgBlackBright: [100, 49],
|
|
61
|
+
bgGray: [100, 49],
|
|
62
|
+
// Alias of `bgBlackBright`
|
|
63
|
+
bgGrey: [100, 49],
|
|
64
|
+
// Alias of `bgBlackBright`
|
|
65
|
+
bgRedBright: [101, 49],
|
|
66
|
+
bgGreenBright: [102, 49],
|
|
67
|
+
bgYellowBright: [103, 49],
|
|
68
|
+
bgBlueBright: [104, 49],
|
|
69
|
+
bgMagentaBright: [105, 49],
|
|
70
|
+
bgCyanBright: [106, 49],
|
|
71
|
+
bgWhiteBright: [107, 49]
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
75
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
76
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
77
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
78
|
+
function assembleStyles() {
|
|
79
|
+
const codes = /* @__PURE__ */ new Map();
|
|
80
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
81
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
82
|
+
styles[styleName] = {
|
|
83
|
+
open: `\x1B[${style[0]}m`,
|
|
84
|
+
close: `\x1B[${style[1]}m`
|
|
85
|
+
};
|
|
86
|
+
group[styleName] = styles[styleName];
|
|
87
|
+
codes.set(style[0], style[1]);
|
|
88
|
+
}
|
|
89
|
+
Object.defineProperty(styles, groupName, {
|
|
90
|
+
value: group,
|
|
91
|
+
enumerable: false
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
Object.defineProperty(styles, "codes", {
|
|
95
|
+
value: codes,
|
|
96
|
+
enumerable: false
|
|
97
|
+
});
|
|
98
|
+
styles.color.close = "\x1B[39m";
|
|
99
|
+
styles.bgColor.close = "\x1B[49m";
|
|
100
|
+
styles.color.ansi = wrapAnsi16();
|
|
101
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
102
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
103
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
104
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
105
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
106
|
+
Object.defineProperties(styles, {
|
|
107
|
+
rgbToAnsi256: {
|
|
108
|
+
value(red, green, blue) {
|
|
109
|
+
if (red === green && green === blue) {
|
|
110
|
+
if (red < 8) {
|
|
111
|
+
return 16;
|
|
112
|
+
}
|
|
113
|
+
if (red > 248) {
|
|
114
|
+
return 231;
|
|
115
|
+
}
|
|
116
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
117
|
+
}
|
|
118
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
119
|
+
},
|
|
120
|
+
enumerable: false
|
|
121
|
+
},
|
|
122
|
+
hexToRgb: {
|
|
123
|
+
value(hex) {
|
|
124
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
125
|
+
if (!matches) {
|
|
126
|
+
return [0, 0, 0];
|
|
127
|
+
}
|
|
128
|
+
let [colorString] = matches;
|
|
129
|
+
if (colorString.length === 3) {
|
|
130
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
131
|
+
}
|
|
132
|
+
const integer = Number.parseInt(colorString, 16);
|
|
133
|
+
return [
|
|
134
|
+
/* eslint-disable no-bitwise */
|
|
135
|
+
integer >> 16 & 255,
|
|
136
|
+
integer >> 8 & 255,
|
|
137
|
+
integer & 255
|
|
138
|
+
/* eslint-enable no-bitwise */
|
|
139
|
+
];
|
|
140
|
+
},
|
|
141
|
+
enumerable: false
|
|
142
|
+
},
|
|
143
|
+
hexToAnsi256: {
|
|
144
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
145
|
+
enumerable: false
|
|
146
|
+
},
|
|
147
|
+
ansi256ToAnsi: {
|
|
148
|
+
value(code) {
|
|
149
|
+
if (code < 8) {
|
|
150
|
+
return 30 + code;
|
|
151
|
+
}
|
|
152
|
+
if (code < 16) {
|
|
153
|
+
return 90 + (code - 8);
|
|
154
|
+
}
|
|
155
|
+
let red;
|
|
156
|
+
let green;
|
|
157
|
+
let blue;
|
|
158
|
+
if (code >= 232) {
|
|
159
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
160
|
+
green = red;
|
|
161
|
+
blue = red;
|
|
162
|
+
} else {
|
|
163
|
+
code -= 16;
|
|
164
|
+
const remainder = code % 36;
|
|
165
|
+
red = Math.floor(code / 36) / 5;
|
|
166
|
+
green = Math.floor(remainder / 6) / 5;
|
|
167
|
+
blue = remainder % 6 / 5;
|
|
168
|
+
}
|
|
169
|
+
const value = Math.max(red, green, blue) * 2;
|
|
170
|
+
if (value === 0) {
|
|
171
|
+
return 30;
|
|
172
|
+
}
|
|
173
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
174
|
+
if (value === 2) {
|
|
175
|
+
result += 60;
|
|
176
|
+
}
|
|
177
|
+
return result;
|
|
178
|
+
},
|
|
179
|
+
enumerable: false
|
|
180
|
+
},
|
|
181
|
+
rgbToAnsi: {
|
|
182
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
183
|
+
enumerable: false
|
|
184
|
+
},
|
|
185
|
+
hexToAnsi: {
|
|
186
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
187
|
+
enumerable: false
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
return styles;
|
|
191
|
+
}
|
|
192
|
+
var ansiStyles = assembleStyles();
|
|
193
|
+
var ansi_styles_default = ansiStyles;
|
|
194
|
+
|
|
195
|
+
// ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/vendor/supports-color/index.js
|
|
196
|
+
init_cjs_shims();
|
|
197
|
+
import process from "node:process";
|
|
198
|
+
import os from "node:os";
|
|
199
|
+
import tty from "node:tty";
|
|
200
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {
|
|
201
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
202
|
+
const position = argv.indexOf(prefix + flag);
|
|
203
|
+
const terminatorPosition = argv.indexOf("--");
|
|
204
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
205
|
+
}
|
|
206
|
+
var { env } = process;
|
|
207
|
+
var flagForceColor;
|
|
208
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
209
|
+
flagForceColor = 0;
|
|
210
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
211
|
+
flagForceColor = 1;
|
|
212
|
+
}
|
|
213
|
+
function envForceColor() {
|
|
214
|
+
if ("FORCE_COLOR" in env) {
|
|
215
|
+
if (env.FORCE_COLOR === "true") {
|
|
216
|
+
return 1;
|
|
217
|
+
}
|
|
218
|
+
if (env.FORCE_COLOR === "false") {
|
|
219
|
+
return 0;
|
|
220
|
+
}
|
|
221
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function translateLevel(level) {
|
|
225
|
+
if (level === 0) {
|
|
226
|
+
return false;
|
|
227
|
+
}
|
|
228
|
+
return {
|
|
229
|
+
level,
|
|
230
|
+
hasBasic: true,
|
|
231
|
+
has256: level >= 2,
|
|
232
|
+
has16m: level >= 3
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
236
|
+
const noFlagForceColor = envForceColor();
|
|
237
|
+
if (noFlagForceColor !== void 0) {
|
|
238
|
+
flagForceColor = noFlagForceColor;
|
|
239
|
+
}
|
|
240
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
241
|
+
if (forceColor === 0) {
|
|
242
|
+
return 0;
|
|
243
|
+
}
|
|
244
|
+
if (sniffFlags) {
|
|
245
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
246
|
+
return 3;
|
|
247
|
+
}
|
|
248
|
+
if (hasFlag("color=256")) {
|
|
249
|
+
return 2;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
253
|
+
return 1;
|
|
254
|
+
}
|
|
255
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
256
|
+
return 0;
|
|
257
|
+
}
|
|
258
|
+
const min = forceColor || 0;
|
|
259
|
+
if (env.TERM === "dumb") {
|
|
260
|
+
return min;
|
|
261
|
+
}
|
|
262
|
+
if (process.platform === "win32") {
|
|
263
|
+
const osRelease = os.release().split(".");
|
|
264
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
265
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
266
|
+
}
|
|
267
|
+
return 1;
|
|
268
|
+
}
|
|
269
|
+
if ("CI" in env) {
|
|
270
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
271
|
+
return 3;
|
|
272
|
+
}
|
|
273
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
274
|
+
return 1;
|
|
275
|
+
}
|
|
276
|
+
return min;
|
|
277
|
+
}
|
|
278
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
279
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
280
|
+
}
|
|
281
|
+
if (env.COLORTERM === "truecolor") {
|
|
282
|
+
return 3;
|
|
283
|
+
}
|
|
284
|
+
if (env.TERM === "xterm-kitty") {
|
|
285
|
+
return 3;
|
|
286
|
+
}
|
|
287
|
+
if ("TERM_PROGRAM" in env) {
|
|
288
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
289
|
+
switch (env.TERM_PROGRAM) {
|
|
290
|
+
case "iTerm.app": {
|
|
291
|
+
return version >= 3 ? 3 : 2;
|
|
292
|
+
}
|
|
293
|
+
case "Apple_Terminal": {
|
|
294
|
+
return 2;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
299
|
+
return 2;
|
|
300
|
+
}
|
|
301
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
302
|
+
return 1;
|
|
303
|
+
}
|
|
304
|
+
if ("COLORTERM" in env) {
|
|
305
|
+
return 1;
|
|
306
|
+
}
|
|
307
|
+
return min;
|
|
308
|
+
}
|
|
309
|
+
function createSupportsColor(stream, options = {}) {
|
|
310
|
+
const level = _supportsColor(stream, {
|
|
311
|
+
streamIsTTY: stream && stream.isTTY,
|
|
312
|
+
...options
|
|
313
|
+
});
|
|
314
|
+
return translateLevel(level);
|
|
315
|
+
}
|
|
316
|
+
var supportsColor = {
|
|
317
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
318
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
319
|
+
};
|
|
320
|
+
var supports_color_default = supportsColor;
|
|
321
|
+
|
|
322
|
+
// ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/utilities.js
|
|
323
|
+
init_cjs_shims();
|
|
324
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
325
|
+
let index = string.indexOf(substring);
|
|
326
|
+
if (index === -1) {
|
|
327
|
+
return string;
|
|
328
|
+
}
|
|
329
|
+
const substringLength = substring.length;
|
|
330
|
+
let endIndex = 0;
|
|
331
|
+
let returnValue = "";
|
|
332
|
+
do {
|
|
333
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
334
|
+
endIndex = index + substringLength;
|
|
335
|
+
index = string.indexOf(substring, endIndex);
|
|
336
|
+
} while (index !== -1);
|
|
337
|
+
returnValue += string.slice(endIndex);
|
|
338
|
+
return returnValue;
|
|
339
|
+
}
|
|
340
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
341
|
+
let endIndex = 0;
|
|
342
|
+
let returnValue = "";
|
|
343
|
+
do {
|
|
344
|
+
const gotCR = string[index - 1] === "\r";
|
|
345
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
346
|
+
endIndex = index + 1;
|
|
347
|
+
index = string.indexOf("\n", endIndex);
|
|
348
|
+
} while (index !== -1);
|
|
349
|
+
returnValue += string.slice(endIndex);
|
|
350
|
+
return returnValue;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// ../../node_modules/.pnpm/chalk@5.4.1/node_modules/chalk/source/index.js
|
|
354
|
+
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
355
|
+
var GENERATOR = Symbol("GENERATOR");
|
|
356
|
+
var STYLER = Symbol("STYLER");
|
|
357
|
+
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
358
|
+
var levelMapping = [
|
|
359
|
+
"ansi",
|
|
360
|
+
"ansi",
|
|
361
|
+
"ansi256",
|
|
362
|
+
"ansi16m"
|
|
363
|
+
];
|
|
364
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
365
|
+
var applyOptions = (object, options = {}) => {
|
|
366
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
367
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
368
|
+
}
|
|
369
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
370
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
371
|
+
};
|
|
372
|
+
var chalkFactory = (options) => {
|
|
373
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
374
|
+
applyOptions(chalk2, options);
|
|
375
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
376
|
+
return chalk2;
|
|
377
|
+
};
|
|
378
|
+
function createChalk(options) {
|
|
379
|
+
return chalkFactory(options);
|
|
380
|
+
}
|
|
381
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
382
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
383
|
+
styles2[styleName] = {
|
|
384
|
+
get() {
|
|
385
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
386
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
387
|
+
return builder;
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
styles2.visible = {
|
|
392
|
+
get() {
|
|
393
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
394
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
395
|
+
return builder;
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
399
|
+
if (model === "rgb") {
|
|
400
|
+
if (level === "ansi16m") {
|
|
401
|
+
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
402
|
+
}
|
|
403
|
+
if (level === "ansi256") {
|
|
404
|
+
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
405
|
+
}
|
|
406
|
+
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
407
|
+
}
|
|
408
|
+
if (model === "hex") {
|
|
409
|
+
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
410
|
+
}
|
|
411
|
+
return ansi_styles_default[type][model](...arguments_);
|
|
412
|
+
};
|
|
413
|
+
var usedModels = ["rgb", "hex", "ansi256"];
|
|
414
|
+
for (const model of usedModels) {
|
|
415
|
+
styles2[model] = {
|
|
416
|
+
get() {
|
|
417
|
+
const { level } = this;
|
|
418
|
+
return function(...arguments_) {
|
|
419
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
420
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
425
|
+
styles2[bgModel] = {
|
|
426
|
+
get() {
|
|
427
|
+
const { level } = this;
|
|
428
|
+
return function(...arguments_) {
|
|
429
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
430
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
var proto = Object.defineProperties(() => {
|
|
436
|
+
}, {
|
|
437
|
+
...styles2,
|
|
438
|
+
level: {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
get() {
|
|
441
|
+
return this[GENERATOR].level;
|
|
442
|
+
},
|
|
443
|
+
set(level) {
|
|
444
|
+
this[GENERATOR].level = level;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
var createStyler = (open, close, parent) => {
|
|
449
|
+
let openAll;
|
|
450
|
+
let closeAll;
|
|
451
|
+
if (parent === void 0) {
|
|
452
|
+
openAll = open;
|
|
453
|
+
closeAll = close;
|
|
454
|
+
} else {
|
|
455
|
+
openAll = parent.openAll + open;
|
|
456
|
+
closeAll = close + parent.closeAll;
|
|
457
|
+
}
|
|
458
|
+
return {
|
|
459
|
+
open,
|
|
460
|
+
close,
|
|
461
|
+
openAll,
|
|
462
|
+
closeAll,
|
|
463
|
+
parent
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
var createBuilder = (self, _styler, _isEmpty) => {
|
|
467
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
468
|
+
Object.setPrototypeOf(builder, proto);
|
|
469
|
+
builder[GENERATOR] = self;
|
|
470
|
+
builder[STYLER] = _styler;
|
|
471
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
472
|
+
return builder;
|
|
473
|
+
};
|
|
474
|
+
var applyStyle = (self, string) => {
|
|
475
|
+
if (self.level <= 0 || !string) {
|
|
476
|
+
return self[IS_EMPTY] ? "" : string;
|
|
477
|
+
}
|
|
478
|
+
let styler = self[STYLER];
|
|
479
|
+
if (styler === void 0) {
|
|
480
|
+
return string;
|
|
481
|
+
}
|
|
482
|
+
const { openAll, closeAll } = styler;
|
|
483
|
+
if (string.includes("\x1B")) {
|
|
484
|
+
while (styler !== void 0) {
|
|
485
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
486
|
+
styler = styler.parent;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
const lfIndex = string.indexOf("\n");
|
|
490
|
+
if (lfIndex !== -1) {
|
|
491
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
492
|
+
}
|
|
493
|
+
return openAll + string + closeAll;
|
|
494
|
+
};
|
|
495
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
496
|
+
var chalk = createChalk();
|
|
497
|
+
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
498
|
+
var source_default = chalk;
|
|
499
|
+
|
|
500
|
+
export {
|
|
501
|
+
source_default
|
|
502
|
+
};
|