gearbox-code 0.1.29 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +54 -61
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -147904,7 +147904,7 @@ init_permission();
|
|
|
147904
147904
|
var jsx_dev_runtime13 = __toESM(require_jsx_dev_runtime(), 1);
|
|
147905
147905
|
process.env.LANG = process.env.LANG || "en_US.UTF-8";
|
|
147906
147906
|
process.env.LC_ALL = process.env.LC_ALL || "en_US.UTF-8";
|
|
147907
|
-
var VERSION16 = "0.1.
|
|
147907
|
+
var VERSION16 = "0.1.31";
|
|
147908
147908
|
var args = process.argv.slice(2);
|
|
147909
147909
|
var supportsAnsi = process.env.FORCE_COLOR === "1" || process.env.TERM !== "dumb" && process.env.NO_COLOR !== "1" && process.stdout.isTTY;
|
|
147910
147910
|
var ansi = (code) => supportsAnsi ? `\x1B[${code}m` : "";
|
|
@@ -147924,85 +147924,78 @@ function onboardingBanner(termWidth) {
|
|
|
147924
147924
|
const pad3 = Math.max(0, Math.floor((w - visibleLength(s2)) / 2));
|
|
147925
147925
|
return " ".repeat(pad3) + s2;
|
|
147926
147926
|
};
|
|
147927
|
+
const RST = supportsAnsi ? "\x1B[0m" : "";
|
|
147928
|
+
const rgb = (r2, g, b) => supportsAnsi ? `\x1B[38;2;${r2};${g};${b}m` : "";
|
|
147929
|
+
const FACE = rgb(0, 215, 255);
|
|
147930
|
+
const DEPTH = rgb(0, 90, 145);
|
|
147931
|
+
const colorize2 = (s2) => s2.split("").map((c) => c === "█" ? FACE + c + RST : c === " " ? " " : DEPTH + c + RST).join("");
|
|
147927
147932
|
const F2 = {
|
|
147928
147933
|
G: [
|
|
147929
|
-
"
|
|
147930
|
-
"
|
|
147931
|
-
"
|
|
147932
|
-
"
|
|
147933
|
-
"
|
|
147934
|
-
"
|
|
147935
|
-
" ██████ "
|
|
147934
|
+
" ██████╗ ",
|
|
147935
|
+
"██╔════╝ ",
|
|
147936
|
+
"██║ ███╗",
|
|
147937
|
+
"██║ ██║",
|
|
147938
|
+
"╚██████╔╝",
|
|
147939
|
+
" ╚═════╝ "
|
|
147936
147940
|
],
|
|
147937
147941
|
E: [
|
|
147938
|
-
"
|
|
147939
|
-
"
|
|
147940
|
-
"
|
|
147941
|
-
"
|
|
147942
|
-
"
|
|
147943
|
-
"
|
|
147944
|
-
"████████"
|
|
147942
|
+
"███████╗",
|
|
147943
|
+
"██╔════╝",
|
|
147944
|
+
"█████╗ ",
|
|
147945
|
+
"██╔══╝ ",
|
|
147946
|
+
"███████╗",
|
|
147947
|
+
"╚══════╝"
|
|
147945
147948
|
],
|
|
147946
147949
|
A: [
|
|
147947
|
-
"
|
|
147948
|
-
"
|
|
147949
|
-
"
|
|
147950
|
-
"
|
|
147951
|
-
"
|
|
147952
|
-
"
|
|
147953
|
-
"██ ██"
|
|
147950
|
+
" █████╗ ",
|
|
147951
|
+
"██╔══██╗",
|
|
147952
|
+
"███████║",
|
|
147953
|
+
"██╔══██║",
|
|
147954
|
+
"██║ ██║",
|
|
147955
|
+
"╚═╝ ╚═╝"
|
|
147954
147956
|
],
|
|
147955
147957
|
R: [
|
|
147956
|
-
"
|
|
147957
|
-
"
|
|
147958
|
-
"
|
|
147959
|
-
"
|
|
147960
|
-
"
|
|
147961
|
-
"
|
|
147962
|
-
"██ ███"
|
|
147958
|
+
"██████╗ ",
|
|
147959
|
+
"██╔══██╗",
|
|
147960
|
+
"██████╔╝",
|
|
147961
|
+
"██╔══╗ ",
|
|
147962
|
+
"██║ ██╗",
|
|
147963
|
+
"╚═╝ ╚═╝"
|
|
147963
147964
|
],
|
|
147964
147965
|
B: [
|
|
147965
|
-
"
|
|
147966
|
-
"
|
|
147967
|
-
"
|
|
147968
|
-
"
|
|
147969
|
-
"
|
|
147970
|
-
"
|
|
147971
|
-
"███████ "
|
|
147966
|
+
"██████╗ ",
|
|
147967
|
+
"██╔══██╗",
|
|
147968
|
+
"██████╔╝",
|
|
147969
|
+
"██╔══██╗",
|
|
147970
|
+
"██████╔╝",
|
|
147971
|
+
"╚═════╝ "
|
|
147972
147972
|
],
|
|
147973
147973
|
O: [
|
|
147974
|
-
"
|
|
147975
|
-
"
|
|
147976
|
-
"
|
|
147977
|
-
"
|
|
147978
|
-
"
|
|
147979
|
-
"
|
|
147980
|
-
" ██████ "
|
|
147974
|
+
" ██████╗ ",
|
|
147975
|
+
"██╔═══██╗",
|
|
147976
|
+
"██║ ██║",
|
|
147977
|
+
"██║ ██║",
|
|
147978
|
+
"╚██████╔╝",
|
|
147979
|
+
" ╚═════╝ "
|
|
147981
147980
|
],
|
|
147982
147981
|
X: [
|
|
147983
|
-
"
|
|
147984
|
-
"
|
|
147985
|
-
"
|
|
147986
|
-
"
|
|
147987
|
-
"
|
|
147988
|
-
"
|
|
147989
|
-
"██ ██"
|
|
147982
|
+
"██╗ ██╗",
|
|
147983
|
+
"╚██╗██╔╝",
|
|
147984
|
+
" ╚████╔╝",
|
|
147985
|
+
" ██╔╗██ ",
|
|
147986
|
+
"██╔╝╚██╗",
|
|
147987
|
+
"╚═╝ ╚═╝"
|
|
147990
147988
|
]
|
|
147991
147989
|
};
|
|
147992
147990
|
const letters = "GEARBOX".split("");
|
|
147993
147991
|
console.log("");
|
|
147994
|
-
for (let r2 = 0;r2 <
|
|
147995
|
-
const
|
|
147996
|
-
console.log(center(
|
|
147997
|
-
}
|
|
147998
|
-
const shadow = letters.map((ch) => {
|
|
147999
|
-
const last3 = F2[ch]?.[6] ?? " ";
|
|
148000
|
-
return last3.split("").map((c) => c === " " ? " " : "▀").join("");
|
|
148001
|
-
}).join(" ");
|
|
148002
|
-
console.log(center(dim(shadow)));
|
|
147992
|
+
for (let r2 = 0;r2 < 6; r2++) {
|
|
147993
|
+
const raw = letters.map((ch) => F2[ch]?.[r2] ?? "").join(" ");
|
|
147994
|
+
console.log(center(colorize2(raw)));
|
|
147995
|
+
}
|
|
148003
147996
|
console.log("");
|
|
148004
|
-
console.log(center(
|
|
148005
|
-
console.log(center(
|
|
147997
|
+
console.log(center(`${rgb(0, 155, 200)}one terminal · every model you pay for${RST}`));
|
|
147998
|
+
console.log(center(`${rgb(0, 125, 165)}keys stay local · never sent anywhere${RST}`));
|
|
148006
147999
|
console.log("");
|
|
148007
148000
|
}
|
|
148008
148001
|
var centerStr = (text2, width) => {
|
package/package.json
CHANGED