better-codex 0.1.1 → 0.1.3

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.
@@ -212,7 +212,7 @@ const ensureDeps = (cwd, name) => {
212
212
  return true;
213
213
  }
214
214
  log.step(`Installing dependencies for ${c.cyan}${name}${c.reset}...`);
215
- const result = spawnSync('bun', ['install'], { cwd, stdio: 'inherit' });
215
+ const result = spawnSync('bun', ['install'], { cwd, stdio: 'ignore' });
216
216
  if (result.status !== 0) {
217
217
  log.error(`Failed to install dependencies in ${cwd}`);
218
218
  process.exit(1);
@@ -265,7 +265,8 @@ const runWeb = (options) => {
265
265
  CODEX_HUB_TOKEN: token,
266
266
  CODEX_HUB_DEFAULT_CWD: process.cwd(),
267
267
  },
268
- stdio: 'ignore',
268
+ stdio: 'pipe',
269
+ detached: false,
269
270
  });
270
271
 
271
272
  const web = spawn(
@@ -278,10 +279,16 @@ const runWeb = (options) => {
278
279
  VITE_CODEX_HUB_URL: backendUrl,
279
280
  VITE_CODEX_HUB_TOKEN: token,
280
281
  },
281
- stdio: 'ignore',
282
+ stdio: 'pipe',
283
+ detached: false,
282
284
  }
283
285
  );
284
286
 
287
+ backend.stdout?.resume();
288
+ backend.stderr?.resume();
289
+ web.stdout?.resume();
290
+ web.stderr?.resume();
291
+
285
292
  setTimeout(() => {
286
293
  console.log('');
287
294
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-codex",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Web launcher for Codex Hub",
5
5
  "bin": {
6
6
  "better-codex": "bin/better-codex.cjs"