@liquidmetal-ai/raindrop 0.13.0 → 0.15.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 (250) hide show
  1. package/README.md +327 -89
  2. package/bundle/build-CBEGQPJT.js +62 -0
  3. package/bundle/{chunk-IEF2XC25.js → chunk-2PH3PHH3.js} +5 -3
  4. package/bundle/{chunk-4HZ22KOV.js → chunk-3CMR7ES5.js} +4 -4
  5. package/bundle/{chunk-JSBM2JYW.js → chunk-3EYKCHIK.js} +1 -1
  6. package/bundle/chunk-5XHDP4VK.js +1697 -0
  7. package/bundle/{chunk-TSQK4HH6.js → chunk-674GMSXY.js} +1 -1
  8. package/bundle/{chunk-PS3WZBDF.js → chunk-6L4V66WZ.js} +1105 -2728
  9. package/bundle/{chunk-5245CEUM.js → chunk-AGG7JZVH.js} +2 -2
  10. package/bundle/{chunk-3GFKUF5D.js → chunk-B3IY2XS6.js} +4 -2
  11. package/bundle/{chunk-WIDI65NO.js → chunk-CBAXTRCS.js} +1 -1
  12. package/bundle/{chunk-JLVDTXO2.js → chunk-DPV5HIG7.js} +4 -4
  13. package/bundle/{chunk-36GNZK4A.js → chunk-EVXLXWP7.js} +1 -1
  14. package/bundle/{chunk-4YVU5KEQ.js → chunk-HN3AAKRY.js} +4 -2
  15. package/bundle/{chunk-NVNEQXHN.js → chunk-IGLE4Y3B.js} +7 -5
  16. package/bundle/{chunk-FGSYWVBA.js → chunk-IQ6HFRA6.js} +1 -1
  17. package/bundle/{chunk-O3QZDJ75.js → chunk-JQONDSHY.js} +2 -2
  18. package/bundle/{chunk-W4IPOFZC.js → chunk-KADMFJLN.js} +8 -6
  19. package/bundle/chunk-KG5BLUGU.js +246 -0
  20. package/bundle/{chunk-V5LHJTYS.js → chunk-KLOYSTZY.js} +13 -2
  21. package/bundle/{chunk-ETC5VU7H.js → chunk-KXHVSLAI.js} +1 -1
  22. package/bundle/{chunk-Y4WFGNPM.js → chunk-L6FRQULN.js} +1 -1
  23. package/bundle/{chunk-3QCVYSRU.js → chunk-LT3BFQ4O.js} +1 -1
  24. package/bundle/{chunk-KQZJHBNG.js → chunk-MBLKVNI5.js} +1 -1
  25. package/bundle/{chunk-6AIUQUUM.js → chunk-MFMVJZW6.js} +71 -15
  26. package/bundle/{chunk-25T7MEKO.js → chunk-MJBLNWG3.js} +1 -1
  27. package/bundle/{chunk-MSJ33O5Y.js → chunk-NRCQIE3Z.js} +95 -115
  28. package/bundle/{chunk-XKKPPSPC.js → chunk-OCYTN4IH.js} +2 -2
  29. package/bundle/{chunk-2GAMWFJE.js → chunk-QEF5D4VE.js} +1 -1
  30. package/bundle/{chunk-4B3QYXBA.js → chunk-T7MQCLXF.js} +5 -3
  31. package/bundle/{chunk-LDFYPOXJ.js → chunk-TFQY5TSY.js} +1 -1
  32. package/bundle/{chunk-BWK4MC7Y.js → chunk-USZXZZAR.js} +8 -6
  33. package/bundle/{chunk-ER2RCPCY.js → chunk-V54KHS5B.js} +2 -2
  34. package/bundle/{chunk-YSKASURB.js → chunk-V6J23FL2.js} +1 -1
  35. package/bundle/{chunk-UHSTDJ7X.js → chunk-VN2QYX4C.js} +1 -1
  36. package/bundle/{chunk-Z4OWKG7J.js → chunk-VOT5MMEY.js} +1 -1
  37. package/bundle/{chunk-W6GU26WO.js → chunk-WG6BDFPZ.js} +1 -1
  38. package/bundle/{chunk-AK77X5GL.js → chunk-XX74I5RK.js} +4 -2
  39. package/bundle/{chunk-6BT265R3.js → chunk-YQCRWPNI.js} +1 -1
  40. package/bundle/commands/annotation/get.js +3 -3
  41. package/bundle/commands/annotation/list.js +3 -3
  42. package/bundle/commands/annotation/put.js +3 -3
  43. package/bundle/commands/auth/apikey.js +2 -2
  44. package/bundle/commands/auth/list.js +2 -2
  45. package/bundle/commands/auth/login.js +2 -2
  46. package/bundle/commands/auth/logout.js +2 -2
  47. package/bundle/commands/auth/select.js +3 -3
  48. package/bundle/commands/bucket/create-credential.js +2 -2
  49. package/bundle/commands/bucket/delete-credential.js +2 -2
  50. package/bundle/commands/bucket/get-credential.js +2 -2
  51. package/bundle/commands/bucket/list-credentials.js +2 -2
  52. package/bundle/commands/build/actor/setup.js +124 -0
  53. package/bundle/commands/build/branch.js +10 -10
  54. package/bundle/commands/build/bucket-events/setup.js +146 -0
  55. package/bundle/commands/build/checkout.js +8 -8
  56. package/bundle/commands/build/clone.js +6 -6
  57. package/bundle/commands/build/delete.js +8 -8
  58. package/bundle/commands/build/deploy.js +10 -10
  59. package/bundle/commands/build/env/get.js +3 -3
  60. package/bundle/commands/build/env/list.js +2 -2
  61. package/bundle/commands/build/env/set.js +3 -3
  62. package/bundle/commands/build/env.js +2 -2
  63. package/bundle/commands/build/features.js +192 -0
  64. package/bundle/commands/build/find.js +4 -4
  65. package/bundle/commands/build/generate.js +52 -3
  66. package/bundle/commands/build/init-workspace.js +3 -3
  67. package/bundle/commands/build/init.js +15 -3
  68. package/bundle/commands/build/list.js +5 -5
  69. package/bundle/commands/build/queue/setup.js +133 -0
  70. package/bundle/commands/build/sandbox.js +6 -6
  71. package/bundle/commands/build/smartbucket/setup.js +165 -0
  72. package/bundle/commands/build/smartmemory/setup.js +171 -0
  73. package/bundle/commands/build/smartsql/setup.js +167 -0
  74. package/bundle/commands/build/start.js +2 -2
  75. package/bundle/commands/build/status.js +5 -5
  76. package/bundle/commands/build/stop.js +2 -2
  77. package/bundle/commands/build/stripe/dashboard.js +3 -3
  78. package/bundle/commands/build/stripe/onboard.js +3 -3
  79. package/bundle/commands/build/stripe/setup.js +3 -3
  80. package/bundle/commands/build/stripe/start.js +14 -14
  81. package/bundle/commands/build/stripe/status.js +3 -3
  82. package/bundle/commands/build/stripe/subscription/create.js +4 -4
  83. package/bundle/commands/build/stripe/subscription/get.js +4 -4
  84. package/bundle/commands/build/stripe/subscription/update.js +4 -4
  85. package/bundle/commands/build/tools/check.js +2 -2
  86. package/bundle/commands/build/tools/fmt.js +2 -2
  87. package/bundle/commands/build/unsandbox.js +6 -6
  88. package/bundle/commands/build/upload.js +5 -5
  89. package/bundle/commands/build/validate.js +85 -14
  90. package/bundle/commands/build/workos/delete.js +6 -6
  91. package/bundle/commands/build/workos/env/attach.js +3 -3
  92. package/bundle/commands/build/workos/env/attached.js +3 -3
  93. package/bundle/commands/build/workos/env/create.js +3 -3
  94. package/bundle/commands/build/workos/env/delete.js +3 -3
  95. package/bundle/commands/build/workos/env/detach.js +3 -3
  96. package/bundle/commands/build/workos/env/dev-login.js +3 -3
  97. package/bundle/commands/build/workos/env/get.js +3 -3
  98. package/bundle/commands/build/workos/env/list.js +3 -3
  99. package/bundle/commands/build/workos/env/set.js +3 -3
  100. package/bundle/commands/build/workos/invite.js +3 -3
  101. package/bundle/commands/build/workos/jwt.js +172 -0
  102. package/bundle/commands/build/workos/setup.js +3 -3
  103. package/bundle/commands/build/workos/status.js +3 -3
  104. package/bundle/commands/dns/create.js +2 -2
  105. package/bundle/commands/dns/delete.js +6 -6
  106. package/bundle/commands/dns/get.js +6 -6
  107. package/bundle/commands/dns/list.js +3 -3
  108. package/bundle/commands/dns/records/create.js +2 -2
  109. package/bundle/commands/dns/records/delete.js +3 -3
  110. package/bundle/commands/dns/records/get.js +2 -2
  111. package/bundle/commands/dns/records/list.js +2 -2
  112. package/bundle/commands/dns/records/update.js +2 -2
  113. package/bundle/commands/doctor.js +309 -0
  114. package/bundle/commands/logs/query.js +3 -3
  115. package/bundle/commands/logs/tail.js +3 -3
  116. package/bundle/commands/mcp/install-claude.js +2 -2
  117. package/bundle/commands/mcp/install-gemini.js +2 -2
  118. package/bundle/commands/mcp/install-goose.js +2 -2
  119. package/bundle/commands/mcp/status.js +2 -2
  120. package/bundle/commands/object/delete.js +5 -37
  121. package/bundle/commands/object/get.js +5 -37
  122. package/bundle/commands/object/list.js +7 -39
  123. package/bundle/commands/object/put.js +5 -37
  124. package/bundle/commands/query/chunk-search.js +14 -46
  125. package/bundle/commands/query/document.js +17 -55
  126. package/bundle/commands/query/events.js +2 -2
  127. package/bundle/commands/query/reindex.js +2 -2
  128. package/bundle/commands/query/search.js +14 -46
  129. package/bundle/commands/tail.js +2 -2
  130. package/bundle/index.js +1 -1
  131. package/dist/commands/build/actor/setup.d.ts +22 -0
  132. package/dist/commands/build/actor/setup.d.ts.map +1 -0
  133. package/dist/commands/build/actor/setup.js +116 -0
  134. package/dist/commands/build/bucket-events/setup.d.ts +22 -0
  135. package/dist/commands/build/bucket-events/setup.d.ts.map +1 -0
  136. package/dist/commands/build/bucket-events/setup.js +134 -0
  137. package/dist/commands/build/features.d.ts +19 -0
  138. package/dist/commands/build/features.d.ts.map +1 -0
  139. package/dist/commands/build/features.js +97 -0
  140. package/dist/commands/build/generate.d.ts +2 -0
  141. package/dist/commands/build/generate.d.ts.map +1 -1
  142. package/dist/commands/build/generate.js +52 -0
  143. package/dist/commands/build/init.d.ts.map +1 -1
  144. package/dist/commands/build/init.js +10 -0
  145. package/dist/commands/build/queue/setup.d.ts +21 -0
  146. package/dist/commands/build/queue/setup.d.ts.map +1 -0
  147. package/dist/commands/build/queue/setup.js +120 -0
  148. package/dist/commands/build/smartbucket/setup.d.ts +23 -0
  149. package/dist/commands/build/smartbucket/setup.d.ts.map +1 -0
  150. package/dist/commands/build/smartbucket/setup.js +167 -0
  151. package/dist/commands/build/smartmemory/setup.d.ts +23 -0
  152. package/dist/commands/build/smartmemory/setup.d.ts.map +1 -0
  153. package/dist/commands/build/smartmemory/setup.js +172 -0
  154. package/dist/commands/build/smartsql/setup.d.ts +23 -0
  155. package/dist/commands/build/smartsql/setup.d.ts.map +1 -0
  156. package/dist/commands/build/smartsql/setup.js +169 -0
  157. package/dist/commands/build/validate.d.ts +2 -0
  158. package/dist/commands/build/validate.d.ts.map +1 -1
  159. package/dist/commands/build/validate.js +80 -8
  160. package/dist/commands/build/workos/jwt.d.ts +23 -0
  161. package/dist/commands/build/workos/jwt.d.ts.map +1 -0
  162. package/dist/commands/build/workos/jwt.js +172 -0
  163. package/dist/commands/doctor.d.ts +27 -0
  164. package/dist/commands/doctor.d.ts.map +1 -0
  165. package/dist/commands/doctor.js +328 -0
  166. package/dist/commands/object/delete.d.ts +0 -2
  167. package/dist/commands/object/delete.d.ts.map +1 -1
  168. package/dist/commands/object/delete.js +3 -38
  169. package/dist/commands/object/get.d.ts +0 -2
  170. package/dist/commands/object/get.d.ts.map +1 -1
  171. package/dist/commands/object/get.js +3 -38
  172. package/dist/commands/object/list.d.ts +0 -2
  173. package/dist/commands/object/list.d.ts.map +1 -1
  174. package/dist/commands/object/list.js +5 -40
  175. package/dist/commands/object/put.d.ts +0 -2
  176. package/dist/commands/object/put.d.ts.map +1 -1
  177. package/dist/commands/object/put.js +3 -38
  178. package/dist/commands/query/chunk-search.d.ts +0 -2
  179. package/dist/commands/query/chunk-search.d.ts.map +1 -1
  180. package/dist/commands/query/chunk-search.js +12 -46
  181. package/dist/commands/query/document.d.ts +1 -3
  182. package/dist/commands/query/document.d.ts.map +1 -1
  183. package/dist/commands/query/document.js +16 -60
  184. package/dist/commands/query/search.d.ts +0 -2
  185. package/dist/commands/query/search.d.ts.map +1 -1
  186. package/dist/commands/query/search.js +12 -46
  187. package/dist/feature-catalog.d.ts +28 -0
  188. package/dist/feature-catalog.d.ts.map +1 -0
  189. package/dist/feature-catalog.js +104 -0
  190. package/dist/index.d.ts.map +1 -1
  191. package/dist/index.js +16 -2
  192. package/oclif.manifest.json +4811 -3433
  193. package/package.json +3 -3
  194. package/templates/examples/smartbucket-minimal.ts.hbs +87 -0
  195. package/templates/examples/smartmemory-minimal.ts.hbs +82 -0
  196. package/templates/examples/smartsql-minimal.ts.hbs +69 -0
  197. package/templates/handlers/actor/index.test.ts.hbs +48 -85
  198. package/templates/handlers/actor/index.ts.hbs +16 -316
  199. package/templates/handlers/bucket-event-notification/index.ts.hbs +32 -235
  200. package/templates/handlers/bucket-event-observer.ts.hbs +79 -0
  201. package/templates/handlers/http-service/index.test.ts.hbs +3 -0
  202. package/templates/handlers/http-service/index.ts.hbs +43 -15
  203. package/templates/handlers/queue-consumer-setup.ts.hbs +45 -0
  204. package/templates/handlers/task/index.test.ts.hbs +30 -112
  205. package/templates/handlers/task/index.ts.hbs +19 -58
  206. package/templates/init/RAINDROP.md.hbs +97 -1
  207. package/templates/init/eslint.config.js +43 -0
  208. package/templates/init/package.json.hbs +4 -1
  209. package/templates/init/tsconfig.json +3 -3
  210. package/bundle/chunk-23UBI7BN.js +0 -48
  211. package/bundle/chunk-2QWMBNE3.js +0 -384
  212. package/bundle/chunk-45IYWQDC.js +0 -384
  213. package/bundle/chunk-5YUO23QU.js +0 -4585
  214. package/bundle/chunk-6MIGCNUO.js +0 -75
  215. package/bundle/chunk-7ZJWA6HP.js +0 -805
  216. package/bundle/chunk-AIYVX2M7.js +0 -44
  217. package/bundle/chunk-BB5TNIEM.js +0 -48
  218. package/bundle/chunk-BUR3HFKH.js +0 -488
  219. package/bundle/chunk-BYSBS7KT.js +0 -488
  220. package/bundle/chunk-CX3RWI62.js +0 -28658
  221. package/bundle/chunk-DLH7MI57.js +0 -305
  222. package/bundle/chunk-E3WJIYJZ.js +0 -12148
  223. package/bundle/chunk-EX7NOPRF.js +0 -12148
  224. package/bundle/chunk-F76JQS2J.js +0 -231
  225. package/bundle/chunk-FBOXMVKD.js +0 -28679
  226. package/bundle/chunk-FTPZ6SQW.js +0 -238909
  227. package/bundle/chunk-H3CFZ7ZH.js +0 -74
  228. package/bundle/chunk-HXOILVWA.js +0 -384
  229. package/bundle/chunk-IMP7O5AC.js +0 -22452
  230. package/bundle/chunk-IPYOAKRE.js +0 -231
  231. package/bundle/chunk-J7HN6XF2.js +0 -4461
  232. package/bundle/chunk-JOLOAALA.js +0 -231
  233. package/bundle/chunk-JZ2G4Q35.js +0 -4585
  234. package/bundle/chunk-KVAWPWF7.js +0 -231
  235. package/bundle/chunk-MEUAAIXV.js +0 -28657
  236. package/bundle/chunk-QBWFE57Z.js +0 -384
  237. package/bundle/chunk-SP3LOXPC.js +0 -46
  238. package/bundle/chunk-T7C564PR.js +0 -28678
  239. package/bundle/chunk-UFH545WJ.js +0 -22452
  240. package/bundle/chunk-UHVMPWM5.js +0 -315
  241. package/bundle/chunk-VB7ZTSZV.js +0 -1089
  242. package/bundle/chunk-VBIJDFMJ.js +0 -384
  243. package/bundle/chunk-VR7RLTE3.js +0 -231
  244. package/bundle/chunk-WFZUJLEC.js +0 -231
  245. package/bundle/chunk-YDGJTLVZ.js +0 -133
  246. package/bundle/chunk-YPNQ7UFK.js +0 -502
  247. package/bundle/chunk-YXFDRMSN.js +0 -384
  248. package/dist/lib/dns-utils.d.ts +0 -7
  249. package/dist/lib/dns-utils.d.ts.map +0 -1
  250. package/dist/lib/dns-utils.js +0 -44
@@ -1,502 +0,0 @@
1
- import {
2
- init_cjs_shims
3
- } from "./chunk-FTPZ6SQW.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
- };