@chvor/cli 0.1.3 → 0.1.4

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.
@@ -99,6 +99,7 @@ export async function spawnServer(opts = {}) {
99
99
  console.log(`Starting Chvor on port ${port} (foreground)...`);
100
100
  const child = spawn("node", ["--import", "tsx", serverEntry], {
101
101
  env,
102
+ cwd: getAppDir(),
102
103
  stdio: "inherit",
103
104
  });
104
105
  if (child.pid === undefined) {
@@ -151,6 +152,7 @@ export async function spawnServer(opts = {}) {
151
152
  const logFd = openSync(logPath, "a");
152
153
  const child = spawn("node", ["--import", "tsx", serverEntry], {
153
154
  env,
155
+ cwd: getAppDir(),
154
156
  stdio: ["ignore", logFd, logFd],
155
157
  detached: true,
156
158
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chvor/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Your own AI — install and run chvor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",