gearbox-code 0.1.21 → 0.1.22
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 +11 -7
- 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.22";
|
|
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` : "";
|
|
@@ -147907,7 +147907,7 @@ function ghostLines(cells, pad3 = " ") {
|
|
|
147907
147907
|
});
|
|
147908
147908
|
}
|
|
147909
147909
|
function onboardingBoo(termWidth) {
|
|
147910
|
-
const cells = renderGhost({ palette: "default", face: "
|
|
147910
|
+
const cells = renderGhost({ palette: "default", face: "joy", scale: 1 });
|
|
147911
147911
|
const ghostW = cells[0]?.length ?? 20;
|
|
147912
147912
|
const leftPad = Math.max(2, Math.floor((termWidth - ghostW) / 2));
|
|
147913
147913
|
return ghostLines(cells, " ".repeat(leftPad)).join(`
|
|
@@ -147979,12 +147979,14 @@ async function runCliOnboarding() {
|
|
|
147979
147979
|
};
|
|
147980
147980
|
try {
|
|
147981
147981
|
const termWidth = Math.min(process.stdout.columns || 80, 100);
|
|
147982
|
+
const ruleW = Math.min(32, termWidth - 8);
|
|
147982
147983
|
console.log("");
|
|
147983
147984
|
console.log(onboardingBoo(termWidth));
|
|
147984
147985
|
console.log("");
|
|
147985
|
-
console.log(centerStr(bold("gearbox"), termWidth));
|
|
147986
|
-
console.log(centerStr("
|
|
147987
|
-
console.log(
|
|
147986
|
+
console.log(centerStr(bold(accent("gearbox")), termWidth));
|
|
147987
|
+
console.log(centerStr(dim("one terminal · every model you already pay for"), termWidth));
|
|
147988
|
+
console.log("");
|
|
147989
|
+
console.log(centerStr(dim("─".repeat(ruleW)), termWidth));
|
|
147988
147990
|
console.log("");
|
|
147989
147991
|
while (!anyProviderAvailable()) {
|
|
147990
147992
|
const env3 = importableEnvCreds2();
|
|
@@ -148090,8 +148092,10 @@ async function runCliOnboarding() {
|
|
|
148090
148092
|
console.log(warn("Choose one of the listed options."));
|
|
148091
148093
|
}
|
|
148092
148094
|
console.log("");
|
|
148093
|
-
console.log(ok("
|
|
148094
|
-
console.log(
|
|
148095
|
+
console.log(centerStr(ok("✓ you're all set"), termWidth));
|
|
148096
|
+
console.log("");
|
|
148097
|
+
console.log(centerStr(dim(`cd ~/your-project → ${accent("gearbox")}`), termWidth));
|
|
148098
|
+
console.log("");
|
|
148095
148099
|
return true;
|
|
148096
148100
|
} finally {
|
|
148097
148101
|
rl?.close();
|
package/package.json
CHANGED