gearbox-code 0.1.18 → 0.1.19

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 (2) hide show
  1. package/dist/cli.mjs +18 -10
  2. 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.18";
147870
+ var VERSION16 = "0.1.19";
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` : "";
@@ -147906,10 +147906,17 @@ function ghostLines(cells, pad3 = " ") {
147906
147906
  return line;
147907
147907
  });
147908
147908
  }
147909
- function onboardingBoo() {
147910
- return ghostLines(renderGhost({ palette: "default", face: "happy", scale: 1 })).join(`
147909
+ function onboardingBoo(termWidth) {
147910
+ const cells = renderGhost({ palette: "default", face: "happy", scale: 1 });
147911
+ const ghostW = cells[0]?.length ?? 20;
147912
+ const leftPad = Math.max(2, Math.floor((termWidth - ghostW) / 2));
147913
+ return ghostLines(cells, " ".repeat(leftPad)).join(`
147911
147914
  `);
147912
147915
  }
147916
+ var centerStr = (text2, width) => {
147917
+ const pad3 = Math.max(0, Math.floor((width - visibleLength(text2)) / 2));
147918
+ return " ".repeat(pad3) + text2;
147919
+ };
147913
147920
  function box(title, lines) {
147914
147921
  const width = Math.min(78, Math.max(title.length + 4, ...lines.map((l) => visibleLength(l) + 4)));
147915
147922
  const rule = "─".repeat(width - 2);
@@ -147971,12 +147978,13 @@ async function runCliOnboarding() {
147971
147978
  return true;
147972
147979
  };
147973
147980
  try {
147981
+ const termWidth = Math.min(process.stdout.columns || 80, 100);
147974
147982
  console.log("");
147975
- console.log(onboardingBoo());
147983
+ console.log(onboardingBoo(termWidth));
147976
147984
  console.log("");
147977
- console.log(bold("Gearbox setup"));
147978
- console.log("Boo needs one model account before the coding app opens.");
147979
- console.log(dim("Your credentials stay local. API keys are stored in Gearbox's credential store; subscription sign-ins stay inside the vendor CLI."));
147985
+ console.log(centerStr(bold("gearbox"), termWidth));
147986
+ console.log(centerStr("set up one account Gearbox routes from there", termWidth));
147987
+ console.log(centerStr(dim("keys stay local, never sent anywhere"), termWidth));
147980
147988
  console.log("");
147981
147989
  while (!anyProviderAvailable()) {
147982
147990
  const env3 = importableEnvCreds2();
@@ -148131,8 +148139,8 @@ Options:
148131
148139
  --model <name> e.g. sonnet-4.6, haiku, gemini-flash, deepseek
148132
148140
  -c, --continue resume the most recent session here (/resume to pick one)
148133
148141
  --yolo auto-approve writes/edits/shell (no permission prompts)
148134
- --inline use terminal scrollback instead of the fullscreen app frame
148135
- --fullscreen fullscreen app frame (default when stdout is a TTY)
148142
+ --fullscreen fullscreen app frame with fixed footer (alt-screen)
148143
+ --inline terminal scrollback mode (default)
148136
148144
  -v, --version print version
148137
148145
  -h, --help this help
148138
148146
 
@@ -148284,7 +148292,7 @@ if (process.stdout.isTTY && imageMode === "kitty")
148284
148292
  var uiPrefs = loadPrefs();
148285
148293
  var explicitInline = args.includes("--inline") || process.env.GEARBOX_INLINE === "1" || process.env.GEARBOX_FULLSCREEN === "0";
148286
148294
  var explicitFullscreen = args.includes("--fullscreen") || process.env.GEARBOX_FULLSCREEN === "1";
148287
- var wantsInline = explicitInline || !explicitFullscreen && uiPrefs.fullscreen === false;
148295
+ var wantsInline = !explicitFullscreen && (explicitInline || uiPrefs.fullscreen !== true);
148288
148296
  var wantsFullscreen = !wantsInline;
148289
148297
  var fullscreen = Boolean(process.stdout.isTTY) && wantsFullscreen;
148290
148298
  var mouse = Boolean(process.stdout.isTTY) && process.env.GEARBOX_MOUSE !== "0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gearbox-code",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "A beautiful multi-provider coding harness for the terminal. (Intelligent model routing lands on top of this soon.)",
5
5
  "type": "module",
6
6
  "license": "MIT",