@1mancompany/onemancompany 0.2.302 → 0.2.304

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/bin/cli.js +5 -0
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -395,12 +395,17 @@ ${green("What gets installed automatically:")}
395
395
  const debugMode = passthrough.includes("--debug");
396
396
  const launchArgs = passthrough.filter((a) => a !== "--debug");
397
397
 
398
+ // Build env: pass OMC_DEBUG=1 in debug mode
399
+ const childEnv = { ...process.env };
400
+ if (debugMode) childEnv.OMC_DEBUG = "1";
401
+
398
402
  if (debugMode) {
399
403
  // ── Foreground mode: show logs, Ctrl+C to kill ──────────────────
400
404
  info("Starting OneManCompany in debug mode (Ctrl+C to stop)...\n");
401
405
  const child = spawn(pythonBin, ["-m", "onemancompany.main", ...launchArgs], {
402
406
  cwd: installDir,
403
407
  stdio: "inherit",
408
+ env: childEnv,
404
409
  });
405
410
 
406
411
  writePidFile(installDir, child.pid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1mancompany/onemancompany",
3
- "version": "0.2.302",
3
+ "version": "0.2.304",
4
4
  "description": "The AI Operating System for One-Person Companies",
5
5
  "bin": {
6
6
  "onemancompany": "bin/cli.js"