gearbox-code 0.1.24 → 0.1.26
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 +21 -8
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -147867,7 +147867,7 @@ init_permission();
|
|
|
147867
147867
|
var jsx_dev_runtime13 = __toESM(require_jsx_dev_runtime(), 1);
|
|
147868
147868
|
process.env.LANG = process.env.LANG || "en_US.UTF-8";
|
|
147869
147869
|
process.env.LC_ALL = process.env.LC_ALL || "en_US.UTF-8";
|
|
147870
|
-
var VERSION16 = "0.1.
|
|
147870
|
+
var VERSION16 = "0.1.26";
|
|
147871
147871
|
var args = process.argv.slice(2);
|
|
147872
147872
|
var supportsAnsi = process.env.FORCE_COLOR === "1" || process.env.TERM !== "dumb" && process.env.NO_COLOR !== "1" && process.stdout.isTTY;
|
|
147873
147873
|
var ansi = (code) => supportsAnsi ? `\x1B[${code}m` : "";
|
|
@@ -147882,15 +147882,28 @@ var stripAnsi2 = (text2) => text2.replace(/\x1b\[[0-9;]*m/g, "");
|
|
|
147882
147882
|
var visibleLength = (text2) => stripAnsi2(text2).length;
|
|
147883
147883
|
var padVisible = (text2, width) => text2 + " ".repeat(Math.max(width - visibleLength(text2), 0));
|
|
147884
147884
|
function onboardingBanner(termWidth) {
|
|
147885
|
-
const
|
|
147886
|
-
const
|
|
147885
|
+
const w = Math.min(termWidth, 120);
|
|
147886
|
+
const center = (s2) => {
|
|
147887
|
+
const pad3 = Math.max(0, Math.floor((w - visibleLength(s2)) / 2));
|
|
147888
|
+
return " ".repeat(pad3) + s2;
|
|
147889
|
+
};
|
|
147890
|
+
const F2 = {
|
|
147891
|
+
G: [" █████", "██ ", "██ ██", "██ █", " █████"],
|
|
147892
|
+
E: ["█████ ", "█ ", "████ ", "█ ", "█████ "],
|
|
147893
|
+
A: [" ██ ", " █ █ ", "██████", "█ █", "█ █"],
|
|
147894
|
+
R: ["████ ", "█ █ ", "████ ", "█ █ ", "█ █ "],
|
|
147895
|
+
B: ["████ ", "█ █ ", "████ ", "█ █ ", "████ "],
|
|
147896
|
+
O: [" ████ ", "█ █", "█ █", "█ █", " ████ "],
|
|
147897
|
+
X: ["█ █", " █ █ ", " ██ ", " █ █ ", "█ █"]
|
|
147898
|
+
};
|
|
147887
147899
|
console.log("");
|
|
147888
|
-
|
|
147889
|
-
|
|
147890
|
-
|
|
147900
|
+
for (let r2 = 0;r2 < 5; r2++) {
|
|
147901
|
+
const line = "GEARBOX".split("").map((ch) => F2[ch]?.[r2] ?? " ").join(" ");
|
|
147902
|
+
console.log(center(accent(line)));
|
|
147903
|
+
}
|
|
147891
147904
|
console.log("");
|
|
147892
|
-
console.log(
|
|
147893
|
-
console.log(
|
|
147905
|
+
console.log(center(dim("one terminal · every model you pay for")));
|
|
147906
|
+
console.log(center(dim("keys stay local · never sent anywhere")));
|
|
147894
147907
|
console.log("");
|
|
147895
147908
|
}
|
|
147896
147909
|
var centerStr = (text2, width) => {
|
package/package.json
CHANGED