@estebanforge/pi-antigravity-bridge 1.20.0 → 1.20.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.20.1] - 2026-12-04
6
+
7
+ ### Fixed
8
+
9
+ - Child process spawns on Windows no longer flash a visible `conhost` console window when running under console-less hosts such as `pi-web` (issue #42, thanks to @JsonSong89 for the report and diagnosis): added `windowsHide: true` to all remaining `spawn`, `execSync`, and `execFileSync` calls across [models.ts](src/models.ts), [agy-version.ts](src/agy-version.ts), [tasks.ts](src/tasks.ts), [ask-tool.ts](src/ask-tool.ts), [patch-cleanup.ts](src/patch-cleanup.ts), [diff-render.ts](src/diff-render.ts), and [extensions/index.ts](extensions/index.ts), pinned by a contract test in [tests/windows-hide.test.ts](tests/windows-hide.test.ts).
10
+
5
11
  ## [1.20.0] - 2026-12-03
6
12
 
7
13
  ### Fixed
@@ -1828,7 +1828,8 @@ function registerAgyCommand(pi: ExtensionAPI, ctx: AgyCommandCtx): void {
1828
1828
  ui?.notify(`no file-open handler for ${process.platform}; the file is at ${artifact.absolutePath}`, "warning");
1829
1829
  return;
1830
1830
  }
1831
- spawn(openCmd.cmd, [artifact.absolutePath], { detached: true, stdio: "ignore", shell: false }).unref();
1831
+ // win32: hide console on detached spawns (issue #42, @JsonSong89).
1832
+ spawn(openCmd.cmd, [artifact.absolutePath], { detached: true, stdio: "ignore", shell: false, windowsHide: true }).unref();
1832
1833
  ui?.notify(`opened ${artifact.name}`, "info");
1833
1834
  return;
1834
1835
  }
@@ -1858,7 +1859,8 @@ function registerAgyCommand(pi: ExtensionAPI, ctx: AgyCommandCtx): void {
1858
1859
  ui.notify(`no file-open handler for ${process.platform}.`, "warning");
1859
1860
  continue;
1860
1861
  }
1861
- spawn(openCmd.cmd, [action.artifact.absolutePath], { detached: true, stdio: "ignore", shell: false }).unref();
1862
+ // win32: hide console on detached spawns (issue #42, @JsonSong89).
1863
+ spawn(openCmd.cmd, [action.artifact.absolutePath], { detached: true, stdio: "ignore", shell: false, windowsHide: true }).unref();
1862
1864
  }
1863
1865
  break;
1864
1866
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@estebanforge/pi-antigravity-bridge",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "Gemini provider for Pi on the Antigravity ACP server (official Google ACP) or the stream-json agy CLI. Use antigravity/* models in Pi. Full /model picker support. Models runs Pi's tools. ToS safe to use.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -105,7 +105,8 @@ export function checkAgyCliVersion(binary: string = "agy"): Promise<AgyVersionCh
105
105
  };
106
106
  let proc: ReturnType<typeof spawn>;
107
107
  try {
108
- proc = spawn(binary, ["--version"], { stdio: ["ignore", "pipe", "ignore"], shell: false });
108
+ // win32: prevent conhost flash in console-less hosts (issue #42, @JsonSong89).
109
+ proc = spawn(binary, ["--version"], { stdio: ["ignore", "pipe", "ignore"], shell: false, windowsHide: true });
109
110
  } catch {
110
111
  finish({ status: "unavailable", raw: "" });
111
112
  return;
@@ -236,6 +237,7 @@ export function probeGeminiDirFlag(binary: string = "agy", opts: ProbeGeminiDirO
236
237
  proc = spawn(binary, ["--gemini_dir", tmp, "--version"], {
237
238
  stdio: ["ignore", "pipe", "pipe"],
238
239
  shell: false,
240
+ windowsHide: true,
239
241
  env: opts.env ? { ...process.env, ...opts.env } : process.env,
240
242
  });
241
243
  } catch {
package/src/ask-tool.ts CHANGED
@@ -252,6 +252,8 @@ async function runAgyProcess(o: {
252
252
  stdio: ["ignore", "pipe", "pipe"],
253
253
  shell: false,
254
254
  detached: true,
255
+ // win32: prevent conhost flash in console-less hosts (issue #42, @JsonSong89).
256
+ windowsHide: true,
255
257
  });
256
258
  proc.stdout?.setEncoding("utf8");
257
259
  proc.stderr?.setEncoding("utf8");
@@ -38,6 +38,8 @@ export function createExecGitOps(): GitOps {
38
38
  cwd,
39
39
  encoding: "utf-8",
40
40
  stdio: ["ignore", "pipe", "ignore"],
41
+ // win32: prevent conhost flash in console-less hosts (issue #42, @JsonSong89).
42
+ windowsHide: true,
41
43
  });
42
44
  } catch {
43
45
  return null;
package/src/models.ts CHANGED
@@ -144,6 +144,8 @@ export async function spawnAgyRaw(
144
144
  const proc = spawn(binary, args, {
145
145
  stdio: ["ignore", "pipe", "ignore"],
146
146
  shell: false,
147
+ // win32: prevent conhost flash in console-less hosts (issue #42, @JsonSong89).
148
+ windowsHide: true,
147
149
  });
148
150
  proc.stdout?.setEncoding("utf8");
149
151
  let out = "";
@@ -288,7 +288,8 @@ function candidateFromResolve(): string | null {
288
288
  /** Candidate from `npm root -g`. */
289
289
  function candidateFromNpmGlobal(): string | null {
290
290
  try {
291
- const root = execSync("npm root -g", { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim();
291
+ // win32: prevent conhost flash in console-less hosts (issue #42, @JsonSong89).
292
+ const root = execSync("npm root -g", { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"], windowsHide: true }).trim();
292
293
  return path.join(root, PACKAGE_NAME);
293
294
  } catch {
294
295
  return null;
package/src/tasks.ts CHANGED
@@ -120,7 +120,8 @@ async function defaultSpawnRaw(
120
120
  capBytes: number,
121
121
  ): Promise<string> {
122
122
  return new Promise<string>((resolve, reject) => {
123
- const child = spawn(cmd, args, { stdio: ["ignore", "pipe", "ignore"] });
123
+ // win32: prevent conhost flash in console-less hosts (issue #42, @JsonSong89).
124
+ const child = spawn(cmd, args, { stdio: ["ignore", "pipe", "ignore"], windowsHide: true });
124
125
  let out = "";
125
126
  let settled = false;
126
127
  const done = (fn: () => void) => {