gearbox-code 0.1.27 → 0.1.28

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 +22 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -146004,9 +146004,29 @@ function App2({ selector: initialSelector, runner, fullscreen = false, resumeId
146004
146004
  const activeAccount = getAccount(cli.id);
146005
146005
  const activeName = activeAccount ? accountName(activeAccount).match(/\((.*)\)/)?.[1] : undefined;
146006
146006
  const reloginCommand = cli.binary.includes("codex") ? `/account add codex${activeName ? ` ${activeName}` : ""}` : `/account add claude${activeName ? ` ${activeName}` : ""}`;
146007
+ let cliPrompt = prompt;
146008
+ if (!cliSessionRef.current) {
146009
+ try {
146010
+ const cwd2 = process.cwd();
146011
+ const allFiles = listProjectFiles(cwd2).slice(0, 300);
146012
+ const map4 = repoMap(cwd2, 3000);
146013
+ const fileList = allFiles.join(`
146014
+ `);
146015
+ cliPrompt = `<project-context cwd="${cwd2}">
146016
+ ` + `<files>
146017
+ ${fileList}
146018
+ </files>
146019
+ ` + (map4 ? `<signatures>
146020
+ ${map4}
146021
+ </signatures>
146022
+ ` : "") + `</project-context>
146023
+
146024
+ ` + prompt;
146025
+ } catch {}
146026
+ }
146007
146027
  const r3 = await runCliTask({
146008
146028
  binary: cli.binary,
146009
- prompt,
146029
+ prompt: cliPrompt,
146010
146030
  messages,
146011
146031
  onEvent,
146012
146032
  signal,
@@ -147884,7 +147904,7 @@ init_permission();
147884
147904
  var jsx_dev_runtime13 = __toESM(require_jsx_dev_runtime(), 1);
147885
147905
  process.env.LANG = process.env.LANG || "en_US.UTF-8";
147886
147906
  process.env.LC_ALL = process.env.LC_ALL || "en_US.UTF-8";
147887
- var VERSION16 = "0.1.27";
147907
+ var VERSION16 = "0.1.28";
147888
147908
  var args = process.argv.slice(2);
147889
147909
  var supportsAnsi = process.env.FORCE_COLOR === "1" || process.env.TERM !== "dumb" && process.env.NO_COLOR !== "1" && process.stdout.isTTY;
147890
147910
  var ansi = (code) => supportsAnsi ? `\x1B[${code}m` : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gearbox-code",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
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",