@liquidmetal-ai/raindrop 0.8.0 → 0.9.0

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 (208) hide show
  1. package/README.md +254 -207
  2. package/bundle/chunk-5AOMZVOJ.js +48 -0
  3. package/bundle/chunk-5AP5HNN3.js +133 -0
  4. package/bundle/chunk-6CDCK5IP.js +58 -0
  5. package/bundle/chunk-6GTBXHHK.js +502 -0
  6. package/bundle/chunk-A26NDSVL.js +12148 -0
  7. package/bundle/{chunk-6UE75KX2.js → chunk-AKNNZNIC.js} +1 -2
  8. package/bundle/{chunk-CW5ZHVPX.js → chunk-DOTQ3CSX.js} +2 -2
  9. package/bundle/chunk-FO7VH4GU.js +75 -0
  10. package/bundle/chunk-HEOY5F6W.js +147 -0
  11. package/bundle/chunk-HMD2JXLE.js +238722 -0
  12. package/bundle/chunk-KGZ7KWP4.js +44 -0
  13. package/bundle/chunk-MNUILM7W.js +380 -0
  14. package/bundle/chunk-OROAB5YF.js +805 -0
  15. package/bundle/chunk-OZWZILJX.js +4539 -0
  16. package/bundle/{chunk-6B4I2CKP.js → chunk-YDVG2SA2.js} +4 -4
  17. package/bundle/chunk-ZQQFKWNC.js +22452 -0
  18. package/bundle/commands/annotation/get.js +4 -4
  19. package/bundle/commands/annotation/list.js +4 -4
  20. package/bundle/commands/annotation/put.js +4 -4
  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 +3 -3
  26. package/bundle/commands/bucket/delete-credential.js +3 -3
  27. package/bundle/commands/bucket/get-credential.js +3 -3
  28. package/bundle/commands/bucket/list-credentials.js +3 -3
  29. package/bundle/commands/build/branch.js +26 -14
  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 +24 -14
  33. package/bundle/commands/build/deploy.js +25 -13
  34. package/bundle/commands/build/env/get.js +19 -6
  35. package/bundle/commands/build/env/set.js +19 -6
  36. package/bundle/commands/build/find.js +18 -10
  37. package/bundle/commands/build/generate.js +4 -4
  38. package/bundle/commands/build/init.js +3 -3
  39. package/bundle/commands/build/list-templates.js +63 -0
  40. package/bundle/commands/build/list.js +4 -4
  41. package/bundle/commands/build/package-template.js +238 -0
  42. package/bundle/commands/build/sandbox.js +16 -10
  43. package/bundle/commands/build/start.js +10 -6
  44. package/bundle/commands/build/status.js +16 -11
  45. package/bundle/commands/build/stop.js +10 -6
  46. package/bundle/commands/build/tools/check.js +2 -2
  47. package/bundle/commands/build/tools/fmt.js +2 -2
  48. package/bundle/commands/build/unsandbox.js +16 -10
  49. package/bundle/commands/build/upload.js +23 -9
  50. package/bundle/commands/build/validate.js +5 -5
  51. package/bundle/commands/build/workos/delete.js +4 -4
  52. package/bundle/commands/build/workos/env/attach.js +20 -8
  53. package/bundle/commands/build/workos/env/create.js +60 -11
  54. package/bundle/commands/build/workos/env/delete.js +3 -3
  55. package/bundle/commands/build/workos/env/detach.js +20 -8
  56. package/bundle/commands/build/workos/env/get.js +21 -3
  57. package/bundle/commands/build/workos/env/list.js +3 -3
  58. package/bundle/commands/build/workos/env/set.js +91 -25
  59. package/bundle/commands/build/workos/invite.js +3 -3
  60. package/bundle/commands/build/workos/setup.js +14 -5
  61. package/bundle/commands/build/workos/status.js +116 -25
  62. package/bundle/commands/dns/create.js +2 -2
  63. package/bundle/commands/dns/delete.js +4 -4
  64. package/bundle/commands/dns/get.js +4 -4
  65. package/bundle/commands/dns/list.js +3 -3
  66. package/bundle/commands/dns/records/create.js +2 -2
  67. package/bundle/commands/dns/records/delete.js +3 -3
  68. package/bundle/commands/dns/records/get.js +2 -2
  69. package/bundle/commands/dns/records/list.js +2 -2
  70. package/bundle/commands/dns/records/update.js +2 -2
  71. package/bundle/commands/logs/query.js +15 -10
  72. package/bundle/commands/logs/tail.js +16 -11
  73. package/bundle/commands/mcp/install-claude.js +2 -2
  74. package/bundle/commands/mcp/install-gemini.js +2 -2
  75. package/bundle/commands/mcp/install-goose.js +2 -2
  76. package/bundle/commands/mcp/status.js +2 -2
  77. package/bundle/commands/object/delete.js +27 -14
  78. package/bundle/commands/object/get.js +27 -14
  79. package/bundle/commands/object/list.js +28 -15
  80. package/bundle/commands/object/put.js +27 -14
  81. package/bundle/commands/query/chunk-search.js +24 -10
  82. package/bundle/commands/query/document.js +39 -16
  83. package/bundle/commands/query/events.js +13 -8
  84. package/bundle/commands/query/reindex.js +14 -6
  85. package/bundle/commands/query/search.js +40 -17
  86. package/bundle/commands/tail.js +2 -2
  87. package/bundle/index.js +1 -1
  88. package/dist/base-command.d.ts.map +1 -1
  89. package/dist/base-command.js +27 -0
  90. package/dist/commands/annotation/get.js +1 -1
  91. package/dist/commands/annotation/list.js +1 -1
  92. package/dist/commands/annotation/put.js +1 -1
  93. package/dist/commands/bucket/create-credential.js +1 -1
  94. package/dist/commands/bucket/delete-credential.js +1 -1
  95. package/dist/commands/bucket/get-credential.js +1 -1
  96. package/dist/commands/bucket/list-credentials.js +1 -1
  97. package/dist/commands/build/branch.d.ts +2 -0
  98. package/dist/commands/build/branch.d.ts.map +1 -1
  99. package/dist/commands/build/branch.js +18 -5
  100. package/dist/commands/build/checkout.js +1 -1
  101. package/dist/commands/build/delete.d.ts +1 -0
  102. package/dist/commands/build/delete.d.ts.map +1 -1
  103. package/dist/commands/build/delete.js +25 -12
  104. package/dist/commands/build/deploy.d.ts +2 -0
  105. package/dist/commands/build/deploy.d.ts.map +1 -1
  106. package/dist/commands/build/deploy.js +17 -4
  107. package/dist/commands/build/env/get.d.ts +2 -0
  108. package/dist/commands/build/env/get.d.ts.map +1 -1
  109. package/dist/commands/build/env/get.js +18 -4
  110. package/dist/commands/build/env/set.d.ts +2 -0
  111. package/dist/commands/build/env/set.d.ts.map +1 -1
  112. package/dist/commands/build/env/set.js +18 -4
  113. package/dist/commands/build/find.d.ts +1 -0
  114. package/dist/commands/build/find.d.ts.map +1 -1
  115. package/dist/commands/build/find.js +18 -7
  116. package/dist/commands/build/generate.js +1 -1
  117. package/dist/commands/build/list-templates.d.ts +11 -0
  118. package/dist/commands/build/list-templates.d.ts.map +1 -0
  119. package/dist/commands/build/list-templates.js +47 -0
  120. package/dist/commands/build/list.js +1 -1
  121. package/dist/commands/build/package-template.d.ts +28 -0
  122. package/dist/commands/build/package-template.d.ts.map +1 -0
  123. package/dist/commands/build/package-template.js +256 -0
  124. package/dist/commands/build/sandbox.d.ts +1 -0
  125. package/dist/commands/build/sandbox.d.ts.map +1 -1
  126. package/dist/commands/build/sandbox.js +10 -3
  127. package/dist/commands/build/start.d.ts +1 -0
  128. package/dist/commands/build/start.d.ts.map +1 -1
  129. package/dist/commands/build/start.js +9 -4
  130. package/dist/commands/build/status.d.ts +1 -0
  131. package/dist/commands/build/status.d.ts.map +1 -1
  132. package/dist/commands/build/status.js +13 -7
  133. package/dist/commands/build/stop.d.ts +1 -0
  134. package/dist/commands/build/stop.d.ts.map +1 -1
  135. package/dist/commands/build/stop.js +9 -4
  136. package/dist/commands/build/unsandbox.d.ts +1 -0
  137. package/dist/commands/build/unsandbox.d.ts.map +1 -1
  138. package/dist/commands/build/unsandbox.js +10 -3
  139. package/dist/commands/build/upload.d.ts +3 -1
  140. package/dist/commands/build/upload.d.ts.map +1 -1
  141. package/dist/commands/build/upload.js +19 -4
  142. package/dist/commands/build/validate.js +1 -1
  143. package/dist/commands/build/workos/env/attach.d.ts +2 -0
  144. package/dist/commands/build/workos/env/attach.d.ts.map +1 -1
  145. package/dist/commands/build/workos/env/attach.js +17 -5
  146. package/dist/commands/build/workos/env/create.d.ts +3 -0
  147. package/dist/commands/build/workos/env/create.d.ts.map +1 -1
  148. package/dist/commands/build/workos/env/create.js +61 -8
  149. package/dist/commands/build/workos/env/detach.d.ts +2 -0
  150. package/dist/commands/build/workos/env/detach.d.ts.map +1 -1
  151. package/dist/commands/build/workos/env/detach.js +17 -5
  152. package/dist/commands/build/workos/env/get.d.ts.map +1 -1
  153. package/dist/commands/build/workos/env/get.js +19 -0
  154. package/dist/commands/build/workos/env/set.d.ts +12 -6
  155. package/dist/commands/build/workos/env/set.d.ts.map +1 -1
  156. package/dist/commands/build/workos/env/set.js +83 -22
  157. package/dist/commands/build/workos/setup.d.ts +1 -0
  158. package/dist/commands/build/workos/setup.d.ts.map +1 -1
  159. package/dist/commands/build/workos/setup.js +12 -3
  160. package/dist/commands/build/workos/status.d.ts +5 -0
  161. package/dist/commands/build/workos/status.d.ts.map +1 -1
  162. package/dist/commands/build/workos/status.js +128 -21
  163. package/dist/commands/logs/query.d.ts +1 -0
  164. package/dist/commands/logs/query.d.ts.map +1 -1
  165. package/dist/commands/logs/query.js +13 -7
  166. package/dist/commands/logs/tail.d.ts +1 -0
  167. package/dist/commands/logs/tail.d.ts.map +1 -1
  168. package/dist/commands/logs/tail.js +14 -8
  169. package/dist/commands/object/delete.d.ts +1 -0
  170. package/dist/commands/object/delete.d.ts.map +1 -1
  171. package/dist/commands/object/delete.js +25 -11
  172. package/dist/commands/object/get.d.ts +1 -0
  173. package/dist/commands/object/get.d.ts.map +1 -1
  174. package/dist/commands/object/get.js +25 -11
  175. package/dist/commands/object/list.d.ts +1 -0
  176. package/dist/commands/object/list.d.ts.map +1 -1
  177. package/dist/commands/object/list.js +26 -12
  178. package/dist/commands/object/put.d.ts +1 -0
  179. package/dist/commands/object/put.d.ts.map +1 -1
  180. package/dist/commands/object/put.js +25 -11
  181. package/dist/commands/query/chunk-search.d.ts +1 -0
  182. package/dist/commands/query/chunk-search.d.ts.map +1 -1
  183. package/dist/commands/query/chunk-search.js +21 -6
  184. package/dist/commands/query/document.d.ts +3 -1
  185. package/dist/commands/query/document.d.ts.map +1 -1
  186. package/dist/commands/query/document.js +36 -13
  187. package/dist/commands/query/events.d.ts +1 -0
  188. package/dist/commands/query/events.d.ts.map +1 -1
  189. package/dist/commands/query/events.js +12 -6
  190. package/dist/commands/query/reindex.d.ts +1 -0
  191. package/dist/commands/query/reindex.d.ts.map +1 -1
  192. package/dist/commands/query/reindex.js +13 -4
  193. package/dist/commands/query/search.d.ts +2 -0
  194. package/dist/commands/query/search.d.ts.map +1 -1
  195. package/dist/commands/query/search.js +37 -13
  196. package/dist/index.d.ts.map +1 -1
  197. package/dist/index.js +3 -1
  198. package/dist/templates/registry.d.ts +38 -0
  199. package/dist/templates/registry.d.ts.map +1 -0
  200. package/dist/templates/registry.js +72 -0
  201. package/dist/tsconfig.tsbuildinfo +1 -0
  202. package/oclif.manifest.json +2823 -2047
  203. package/package.json +3 -3
  204. package/templates/db/node_modules/.bin/prisma +2 -2
  205. package/templates/db/node_modules/.bin/prisma-kysely +2 -2
  206. package/templates/db/node_modules/.bin/tsc +2 -2
  207. package/templates/db/node_modules/.bin/tsserver +2 -2
  208. package/templates/db/node_modules/.bin/zx +2 -2
@@ -0,0 +1,502 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-HMD2JXLE.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
+ };