@aristobyte-ui/cli 2.6.1 → 2.8.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 (76) hide show
  1. package/es/.tsbuildinfo +1 -0
  2. package/es/commands/add.d.ts +1 -0
  3. package/es/commands/add.js +106 -0
  4. package/es/commands/doctor.d.ts +1 -0
  5. package/es/commands/doctor.js +166 -0
  6. package/es/commands/env.d.ts +1 -0
  7. package/es/commands/env.js +175 -0
  8. package/es/commands/init.d.ts +1 -0
  9. package/es/commands/init.js +180 -0
  10. package/es/commands/list.d.ts +2 -0
  11. package/es/commands/list.js +195 -0
  12. package/es/commands/remove.d.ts +1 -0
  13. package/es/commands/remove.js +100 -0
  14. package/es/commands/upgrade.d.ts +1 -0
  15. package/es/commands/upgrade.js +122 -0
  16. package/es/index.d.ts +2 -0
  17. package/es/index.js +212 -0
  18. package/es/utils/checkVersion.d.ts +1 -0
  19. package/es/utils/checkVersion.js +8 -0
  20. package/es/utils/colors.d.ts +14 -0
  21. package/es/utils/colors.js +77 -0
  22. package/es/utils/compareVersions.d.ts +1 -0
  23. package/es/utils/compareVersions.js +11 -0
  24. package/es/utils/getBanner.d.ts +1 -0
  25. package/es/utils/getBanner.js +30 -0
  26. package/es/utils/getCurrentPackageManager.d.ts +2 -0
  27. package/es/utils/getCurrentPackageManager.js +55 -0
  28. package/es/utils/getDescription.d.ts +1 -0
  29. package/es/utils/getDescription.js +21 -0
  30. package/es/utils/getTip.d.ts +1 -0
  31. package/es/utils/getTip.js +21 -0
  32. package/es/utils/installPackage.d.ts +1 -0
  33. package/es/utils/installPackage.js +75 -0
  34. package/es/utils/parseHelp.d.ts +2 -0
  35. package/es/utils/parseHelp.js +22 -0
  36. package/es/utils/typography.d.ts +2 -0
  37. package/es/utils/typography.js +9 -0
  38. package/lib/.tsbuildinfo +1 -0
  39. package/lib/commands/add.d.ts +1 -0
  40. package/lib/commands/add.js +112 -0
  41. package/lib/commands/doctor.d.ts +1 -0
  42. package/lib/commands/doctor.js +172 -0
  43. package/lib/commands/env.d.ts +1 -0
  44. package/lib/commands/env.js +181 -0
  45. package/lib/commands/init.d.ts +1 -0
  46. package/lib/commands/init.js +186 -0
  47. package/lib/commands/list.d.ts +2 -0
  48. package/lib/commands/list.js +202 -0
  49. package/lib/commands/remove.d.ts +1 -0
  50. package/lib/commands/remove.js +106 -0
  51. package/lib/commands/upgrade.d.ts +1 -0
  52. package/lib/commands/upgrade.js +128 -0
  53. package/lib/index.d.ts +2 -0
  54. package/lib/index.js +217 -0
  55. package/lib/utils/checkVersion.d.ts +1 -0
  56. package/lib/utils/checkVersion.js +14 -0
  57. package/lib/utils/colors.d.ts +14 -0
  58. package/lib/utils/colors.js +96 -0
  59. package/lib/utils/compareVersions.d.ts +1 -0
  60. package/lib/utils/compareVersions.js +14 -0
  61. package/lib/utils/getBanner.d.ts +1 -0
  62. package/lib/utils/getBanner.js +33 -0
  63. package/lib/utils/getCurrentPackageManager.d.ts +2 -0
  64. package/lib/utils/getCurrentPackageManager.js +61 -0
  65. package/lib/utils/getDescription.d.ts +1 -0
  66. package/lib/utils/getDescription.js +24 -0
  67. package/lib/utils/getTip.d.ts +1 -0
  68. package/lib/utils/getTip.js +24 -0
  69. package/lib/utils/installPackage.d.ts +1 -0
  70. package/lib/utils/installPackage.js +78 -0
  71. package/lib/utils/parseHelp.d.ts +2 -0
  72. package/lib/utils/parseHelp.js +25 -0
  73. package/lib/utils/typography.d.ts +2 -0
  74. package/lib/utils/typography.js +13 -0
  75. package/package.json +1 -1
  76. package/README.md +0 -11
@@ -0,0 +1,14 @@
1
+ export declare function logo1(text: string): string;
2
+ export declare function logo2(text: string): string;
3
+ export declare function logo3(text: string): string;
4
+ export declare function logo4(text: string): string;
5
+ export declare function logo5(text: string): string;
6
+ export declare function reset(text: string): string;
7
+ export declare function red(text: string): string;
8
+ export declare function lightGrey(text: string): string;
9
+ export declare function darkGrey(text: string): string;
10
+ export declare function white(text: string): string;
11
+ export declare function yellow(text: string): string;
12
+ export declare function redBright(text: string): string;
13
+ export declare function logoGradient(text: string): string;
14
+ export declare function logoSmallGradient(text: string): string;
@@ -0,0 +1,77 @@
1
+ var __read = (this && this.__read) || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o), r, ar = [], e;
5
+ try {
6
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7
+ }
8
+ catch (error) { e = { error: error }; }
9
+ finally {
10
+ try {
11
+ if (r && !r.done && (m = i["return"])) m.call(i);
12
+ }
13
+ finally { if (e) throw e.error; }
14
+ }
15
+ return ar;
16
+ };
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
26
+ import chalk from "chalk";
27
+ import gradient from "gradient-string";
28
+ var LOGO_COLORS = ["#ffee27", "#fec800", "#f18e35", "#e95f32", "#e2312d"];
29
+ export function logo1(text) {
30
+ return chalk.hex(LOGO_COLORS[0])(text);
31
+ }
32
+ export function logo2(text) {
33
+ return chalk.hex(LOGO_COLORS[1])(text);
34
+ }
35
+ export function logo3(text) {
36
+ return chalk.hex(LOGO_COLORS[2])(text);
37
+ }
38
+ export function logo4(text) {
39
+ return chalk.hex(LOGO_COLORS[3])(text);
40
+ }
41
+ export function logo5(text) {
42
+ return chalk.hex(LOGO_COLORS[4])(text);
43
+ }
44
+ export function reset(text) {
45
+ return chalk.reset(text);
46
+ }
47
+ export function red(text) {
48
+ return chalk.redBright(text);
49
+ }
50
+ export function lightGrey(text) {
51
+ return chalk.hex("#afbfff")(text);
52
+ }
53
+ export function darkGrey(text) {
54
+ return chalk.hex("#7580aa")(text);
55
+ }
56
+ export function white(text) {
57
+ return chalk.hex("#cfd5edff")(text);
58
+ }
59
+ export function yellow(text) {
60
+ return chalk.yellow(text);
61
+ }
62
+ export function redBright(text) {
63
+ return chalk.redBright(text);
64
+ }
65
+ export function logoGradient(text) {
66
+ return gradient(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(LOGO_COLORS), false), __read(LOGO_COLORS.reverse()), false), __read(LOGO_COLORS), false), __read(LOGO_COLORS.reverse()), false), __read(LOGO_COLORS), false)).multiline(text);
67
+ }
68
+ export function logoSmallGradient(text) {
69
+ return gradient([
70
+ LOGO_COLORS[0],
71
+ LOGO_COLORS[1],
72
+ LOGO_COLORS[1],
73
+ LOGO_COLORS[0],
74
+ LOGO_COLORS[0],
75
+ LOGO_COLORS[1],
76
+ ]).multiline(text);
77
+ }
@@ -0,0 +1 @@
1
+ export declare function compareVersions(v1: string, v2: string): 1 | 0 | -1;
@@ -0,0 +1,11 @@
1
+ export function compareVersions(v1, v2) {
2
+ var a = v1.replace(/^v/, "").split(".").map(Number);
3
+ var b = v2.replace(/^v/, "").split(".").map(Number);
4
+ for (var i = 0; i < 3; i++) {
5
+ if (a[i] > b[i])
6
+ return 1;
7
+ if (a[i] < b[i])
8
+ return -1;
9
+ }
10
+ return 0;
11
+ }
@@ -0,0 +1 @@
1
+ export declare function getBanner(id: string): string;
@@ -0,0 +1,30 @@
1
+ import { logoGradient } from "./colors";
2
+ var mainBanner = " \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \n \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591 \u2591\u2591\u2591\u2588\u2588\u2588\u2591 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2591\u2588\u2588\u2588\u2591 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\n \u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2588\u2588\u2588\u2591\u2591\u2591 \n \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \n \u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \n \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2591\u2591\u2591\u2591\u2591 ";
3
+ var initBanner = " \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2591\u2588\u2588\u2588\u2591 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\n \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 ";
4
+ var addBanner = " \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\n \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \n \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\n\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 ";
5
+ var removeBanner = " \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\n \u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2591 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2591 \n \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 ";
6
+ var doctorBanner = " \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2588\u2588\u2588\u2591 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \n \u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \n \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 ";
7
+ var envBanner = " \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588 \n \u2591\u2588\u2588\u2588 \u2588 \u2591 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\n \u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588\u2591\u2591\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591 \u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \n \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 ";
8
+ var listBanner = " \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591 \u2591\u2591\u2591\u2588\u2588\u2588\u2591 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\n \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 ";
9
+ var upgradeBanner = " \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \n\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2591\u2591 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2591 \n \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2588\u2588\u2588\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \n \u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \n \u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588 \n \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 ";
10
+ export function getBanner(id) {
11
+ switch (id) {
12
+ case "add":
13
+ return logoGradient(addBanner);
14
+ case "doctor":
15
+ return logoGradient(doctorBanner);
16
+ case "env":
17
+ return logoGradient(envBanner);
18
+ case "init":
19
+ return logoGradient(initBanner);
20
+ case "list":
21
+ return logoGradient(listBanner);
22
+ case "remove":
23
+ return logoGradient(removeBanner);
24
+ case "upgrade":
25
+ return logoGradient(upgradeBanner);
26
+ case "aristobyte-ui":
27
+ default:
28
+ return logoGradient(mainBanner);
29
+ }
30
+ }
@@ -0,0 +1,2 @@
1
+ export type PackageManager = "npm" | "yarn" | "pnpm" | "bun";
2
+ export declare function getCurrentPackageManager(cwd?: string): PackageManager;
@@ -0,0 +1,55 @@
1
+ var __values = (this && this.__values) || function(o) {
2
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3
+ if (m) return m.call(o);
4
+ if (o && typeof o.length === "number") return {
5
+ next: function () {
6
+ if (o && i >= o.length) o = void 0;
7
+ return { value: o && o[i++], done: !o };
8
+ }
9
+ };
10
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
11
+ };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
28
+ import fs from "fs";
29
+ import path from "path";
30
+ export function getCurrentPackageManager(cwd) {
31
+ var e_1, _a;
32
+ if (cwd === void 0) { cwd = process.cwd(); }
33
+ var lockFiles = {
34
+ bun: "bun.lockb",
35
+ pnpm: "pnpm-lock.yaml",
36
+ yarn: "yarn.lock",
37
+ npm: "package-lock.json",
38
+ };
39
+ try {
40
+ for (var _b = __values(Object.entries(lockFiles)), _c = _b.next(); !_c.done; _c = _b.next()) {
41
+ var _d = __read(_c.value, 2), manager = _d[0], lockFile = _d[1];
42
+ if (fs.existsSync(path.join(cwd, lockFile))) {
43
+ return manager;
44
+ }
45
+ }
46
+ }
47
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
48
+ finally {
49
+ try {
50
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
51
+ }
52
+ finally { if (e_1) throw e_1.error; }
53
+ }
54
+ return "npm";
55
+ }
@@ -0,0 +1 @@
1
+ export declare function getDescription(id: string): "Initialize a new AristoByteUI project from pre-configured templates.\n Supports automatic project setup, template selection, and package manager configuration." | "Add new UI components to your existing AristoByteUI project.\n Handles component installation, configuration, and dependency management." | "Remove installed AristoByteUI components cleanly from your project.\n Ensures proper cleanup of related files and dependencies." | "Upgrade AristoByteUI components or core packages to their latest versions.\n Supports selective or full project upgrades." | "List all installed AristoByteUI components in your project.\n Displays version, status, and available updates for each component." | "Run a system and project health check.\n Detects configuration issues, missing dependencies, and environment mismatches." | "Display detailed environment information.\n Includes Node.js version, package manager details, and AristoByteUI configuration paths." | "Create new AristoByteUI projects or manage existing projects with full control\n over components, dependencies, and UI stack configuration. Supports initialization,\n addition, removal, upgrading of components, and project diagnostics.";
@@ -0,0 +1,21 @@
1
+ export function getDescription(id) {
2
+ switch (id) {
3
+ case "init":
4
+ return "Initialize a new AristoByteUI project from pre-configured templates.\n Supports automatic project setup, template selection, and package manager configuration.";
5
+ case "add":
6
+ return "Add new UI components to your existing AristoByteUI project.\n Handles component installation, configuration, and dependency management.";
7
+ case "remove":
8
+ return "Remove installed AristoByteUI components cleanly from your project.\n Ensures proper cleanup of related files and dependencies.";
9
+ case "upgrade":
10
+ return "Upgrade AristoByteUI components or core packages to their latest versions.\n Supports selective or full project upgrades.";
11
+ case "list":
12
+ return "List all installed AristoByteUI components in your project.\n Displays version, status, and available updates for each component.";
13
+ case "doctor":
14
+ return "Run a system and project health check.\n Detects configuration issues, missing dependencies, and environment mismatches.";
15
+ case "env":
16
+ return "Display detailed environment information.\n Includes Node.js version, package manager details, and AristoByteUI configuration paths.";
17
+ case "aristobyte-ui":
18
+ default:
19
+ return "Create new AristoByteUI projects or manage existing projects with full control\n over components, dependencies, and UI stack configuration. Supports initialization,\n addition, removal, upgrading of components, and project diagnostics.";
20
+ }
21
+ }
@@ -0,0 +1 @@
1
+ export declare function getTip(id: string): "Run 'aristobyte-ui init' or 'aristobyte-ui init [ myProject ] --template <templateName> --package-manager <packageManagerName>' to bootstrap a new project quickly.\n Use interactive prompts to customize or provide flags for automation." | "Use 'aristobyte-ui add [ component ]' to install a specific UI component.\n Combine multiple components for faster setup." | "Run 'aristobyte-ui remove [ component ]' to cleanly uninstall components.\n Useful for maintaining a lightweight project." | "Use 'aristobyte-ui upgrade [ component ]' to update components or core packages.\n Add '--all' to upgrade everything at once." | "Run 'aristobyte-ui list' to view installed components and versions.\n Add '--outdated' to check for available updates." | "Execute 'aristobyte-ui doctor' to analyze your setup.\n Fixes and recommendations will be displayed for common issues." | "Run 'aristobyte-ui env' to inspect your development environment.\n Helpful for debugging version or configuration conflicts." | "Use 'aristobyte-ui [ command ] --help' for detailed info on a command.";
@@ -0,0 +1,21 @@
1
+ export function getTip(id) {
2
+ switch (id) {
3
+ case "init":
4
+ return "Run 'aristobyte-ui init' or 'aristobyte-ui init [ myProject ] --template <templateName> --package-manager <packageManagerName>' to bootstrap a new project quickly.\n Use interactive prompts to customize or provide flags for automation.";
5
+ case "add":
6
+ return "Use 'aristobyte-ui add [ component ]' to install a specific UI component.\n Combine multiple components for faster setup.";
7
+ case "remove":
8
+ return "Run 'aristobyte-ui remove [ component ]' to cleanly uninstall components.\n Useful for maintaining a lightweight project.";
9
+ case "upgrade":
10
+ return "Use 'aristobyte-ui upgrade [ component ]' to update components or core packages.\n Add '--all' to upgrade everything at once.";
11
+ case "list":
12
+ return "Run 'aristobyte-ui list' to view installed components and versions.\n Add '--outdated' to check for available updates.";
13
+ case "doctor":
14
+ return "Execute 'aristobyte-ui doctor' to analyze your setup.\n Fixes and recommendations will be displayed for common issues.";
15
+ case "env":
16
+ return "Run 'aristobyte-ui env' to inspect your development environment.\n Helpful for debugging version or configuration conflicts.";
17
+ case "aristobyte-ui":
18
+ default:
19
+ return "Use 'aristobyte-ui [ command ] --help' for detailed info on a command.";
20
+ }
21
+ }
@@ -0,0 +1 @@
1
+ export declare function installPackage(pkgManager: "npm" | "yarn" | "pnpm" | "bun", pkg: string, dev?: boolean): Promise<void>;
@@ -0,0 +1,75 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { execa } from 'execa';
38
+ export function installPackage(pkgManager_1, pkg_1) {
39
+ return __awaiter(this, arguments, void 0, function (pkgManager, pkg, dev) {
40
+ var args;
41
+ if (dev === void 0) { dev = false; }
42
+ return __generator(this, function (_a) {
43
+ switch (_a.label) {
44
+ case 0:
45
+ args = [];
46
+ switch (pkgManager) {
47
+ case "npm":
48
+ args = ["install", pkg, dev ? "--save-dev" : "--save"];
49
+ break;
50
+ case "yarn":
51
+ args = ["add", pkg];
52
+ if (dev)
53
+ args.push("-D");
54
+ break;
55
+ case "pnpm":
56
+ args = ["add", pkg];
57
+ if (dev)
58
+ args.push("-D");
59
+ break;
60
+ case "bun":
61
+ args = ["add", pkg];
62
+ if (dev)
63
+ args.push("-d");
64
+ break;
65
+ default:
66
+ throw new Error("Unsupported package manager: ".concat(pkgManager));
67
+ }
68
+ return [4, execa(pkgManager, args, { stdio: "inherit" })];
69
+ case 1:
70
+ _a.sent();
71
+ return [2];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -0,0 +1,2 @@
1
+ import type { Command, Help } from "commander";
2
+ export declare function parseHelp(cmd: Command, helper: Help): string;
@@ -0,0 +1,22 @@
1
+ import { logoSmallGradient, logo3, logo4, darkGrey, lightGrey } from "./colors";
2
+ import { description } from "./typography";
3
+ import { getBanner } from "./getBanner";
4
+ import { getTip } from "./getTip";
5
+ import { getDescription } from "./getDescription";
6
+ export function parseHelp(cmd, helper) {
7
+ return "\n".concat(getBanner(cmd.name()), "\n\n").concat(logoSmallGradient("Usage:"), " \n").concat(logo3(helper.commandUsage(cmd)), "\n\n").concat(logoSmallGradient("Description:"), "\n ").concat(darkGrey(getDescription(cmd.name())), "\n\n").concat(helper.visibleCommands(cmd).length > 0
8
+ ? "".concat(logoSmallGradient("Commands:"), "\n").concat(helper
9
+ .visibleCommands(cmd)
10
+ .map(function (c) {
11
+ return " ".concat("".concat(logo3(c.name()).padEnd(31), " ").concat(c.usage() || "".padEnd(30)).padEnd(129), " ").concat(description(c.description()));
12
+ })
13
+ .join("\n"), "\n\n")
14
+ : "").concat(helper.visibleOptions(cmd).length > 0
15
+ ? "".concat(logoSmallGradient("Options:"), "\n").concat(helper
16
+ .visibleOptions(cmd)
17
+ .map(function (option) {
18
+ return " ".concat("".concat(logo3(option.flags.split(/,\s*/)[0])).concat(darkGrey(", ")).concat(logo4(option.flags.split(/,\s*/)[1])).padEnd(93), " ").concat(description(option.description));
19
+ })
20
+ .join("\n"), "\n\n")
21
+ : "").concat(logoSmallGradient("Tip:"), "\n ").concat(lightGrey(getTip(cmd.name())), "\n");
22
+ }
@@ -0,0 +1,2 @@
1
+ export declare function usage(params: string[]): string;
2
+ export declare function description(text: string): string;
@@ -0,0 +1,9 @@
1
+ import { logo4, darkGrey, lightGrey } from "./colors";
2
+ export function usage(params) {
3
+ return params
4
+ .map(function (param) { return "".concat(logo4("["), " ").concat(lightGrey(param), " ").concat(logo4("]")); })
5
+ .join(" ");
6
+ }
7
+ export function description(text) {
8
+ return darkGrey("- ".concat(text));
9
+ }