@liquidmetal-ai/raindrop 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +69 -69
  2. package/bundle/chunk-2HWWLWLM.js +74 -0
  3. package/bundle/chunk-6AU7I5YZ.js +44 -0
  4. package/bundle/chunk-6VCATADU.js +384 -0
  5. package/bundle/chunk-BC3Z5E5X.js +502 -0
  6. package/bundle/chunk-DSP542FN.js +12148 -0
  7. package/bundle/chunk-FFKINGT5.js +231 -0
  8. package/bundle/chunk-FV4QERYA.js +48 -0
  9. package/bundle/chunk-KYP4ZWG7.js +292 -0
  10. package/bundle/chunk-O75RZNCU.js +4539 -0
  11. package/bundle/chunk-QN2OJEAL.js +238746 -0
  12. package/bundle/chunk-RUORC7A6.js +315 -0
  13. package/bundle/chunk-T7WFDN3I.js +805 -0
  14. package/bundle/chunk-VW5YPIKL.js +4458 -0
  15. package/bundle/chunk-WTTFYUHL.js +133 -0
  16. package/bundle/chunk-XN52RPCA.js +75 -0
  17. package/bundle/chunk-ZEKMKKMJ.js +22452 -0
  18. package/bundle/commands/annotation/get.js +3 -3
  19. package/bundle/commands/annotation/list.js +3 -3
  20. package/bundle/commands/annotation/put.js +3 -3
  21. package/bundle/commands/auth/list.js +2 -2
  22. package/bundle/commands/auth/login.js +3 -3
  23. package/bundle/commands/auth/logout.js +2 -2
  24. package/bundle/commands/auth/select.js +3 -3
  25. package/bundle/commands/bucket/create-credential.js +2 -2
  26. package/bundle/commands/bucket/delete-credential.js +2 -2
  27. package/bundle/commands/bucket/get-credential.js +2 -2
  28. package/bundle/commands/bucket/list-credentials.js +2 -2
  29. package/bundle/commands/build/branch.js +9 -9
  30. package/bundle/commands/build/checkout.js +6 -6
  31. package/bundle/commands/build/clone.js +5 -5
  32. package/bundle/commands/build/delete.js +6 -6
  33. package/bundle/commands/build/deploy.js +9 -9
  34. package/bundle/commands/build/env/get.js +2 -2
  35. package/bundle/commands/build/env/set.js +2 -2
  36. package/bundle/commands/build/find.js +4 -4
  37. package/bundle/commands/build/generate.js +3 -3
  38. package/bundle/commands/build/init-workspace.js +3 -3
  39. package/bundle/commands/build/init.js +3 -3
  40. package/bundle/commands/build/list.js +5 -5
  41. package/bundle/commands/build/sandbox.js +7 -7
  42. package/bundle/commands/build/start.js +2 -2
  43. package/bundle/commands/build/status.js +5 -5
  44. package/bundle/commands/build/stop.js +2 -2
  45. package/bundle/commands/build/tools/check.js +2 -2
  46. package/bundle/commands/build/tools/fmt.js +2 -2
  47. package/bundle/commands/build/unsandbox.js +7 -7
  48. package/bundle/commands/build/upload.js +5 -5
  49. package/bundle/commands/build/validate.js +4 -4
  50. package/bundle/commands/build/workos/delete.js +4 -4
  51. package/bundle/commands/build/workos/env/attach.js +3 -3
  52. package/bundle/commands/build/workos/env/create.js +3 -3
  53. package/bundle/commands/build/workos/env/delete.js +3 -3
  54. package/bundle/commands/build/workos/env/detach.js +3 -3
  55. package/bundle/commands/build/workos/env/get.js +3 -3
  56. package/bundle/commands/build/workos/env/list.js +3 -3
  57. package/bundle/commands/build/workos/env/set.js +3 -3
  58. package/bundle/commands/build/workos/invite.js +3 -3
  59. package/bundle/commands/build/workos/setup.js +3 -3
  60. package/bundle/commands/build/workos/status.js +3 -3
  61. package/bundle/commands/dns/create.js +2 -2
  62. package/bundle/commands/dns/delete.js +4 -4
  63. package/bundle/commands/dns/get.js +4 -4
  64. package/bundle/commands/dns/list.js +3 -3
  65. package/bundle/commands/dns/records/create.js +2 -2
  66. package/bundle/commands/dns/records/delete.js +3 -3
  67. package/bundle/commands/dns/records/get.js +2 -2
  68. package/bundle/commands/dns/records/list.js +2 -2
  69. package/bundle/commands/dns/records/update.js +2 -2
  70. package/bundle/commands/logs/query.js +3 -3
  71. package/bundle/commands/logs/tail.js +3 -3
  72. package/bundle/commands/mcp/install-claude.js +2 -2
  73. package/bundle/commands/mcp/install-gemini.js +2 -2
  74. package/bundle/commands/mcp/install-goose.js +2 -2
  75. package/bundle/commands/mcp/status.js +2 -2
  76. package/bundle/commands/object/delete.js +2 -2
  77. package/bundle/commands/object/get.js +2 -2
  78. package/bundle/commands/object/list.js +2 -2
  79. package/bundle/commands/object/put.js +2 -2
  80. package/bundle/commands/query/chunk-search.js +3 -3
  81. package/bundle/commands/query/document.js +3 -3
  82. package/bundle/commands/query/events.js +2 -2
  83. package/bundle/commands/query/reindex.js +2 -2
  84. package/bundle/commands/query/search.js +3 -3
  85. package/bundle/commands/tail.js +2 -2
  86. package/bundle/index.js +1 -1
  87. package/oclif.manifest.json +2807 -2807
  88. package/package.json +4 -4
  89. package/templates/init/RAINDROP.md.hbs +21 -25
  90. package/templates/init/src/_app/cors.ts +4 -5
@@ -0,0 +1,502 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-QN2OJEAL.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
+ };