0agent 1.0.24 → 1.0.25

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/chat.js +3 -4
  2. package/package.json +1 -1
package/bin/chat.js CHANGED
@@ -469,10 +469,9 @@ connectWS();
469
469
  } catch {
470
470
  // Auto-start
471
471
  startSpin.start();
472
- const { resolve: res, existsSync: ef } = await import('node:path').then(m => m);
473
- const pkgRoot = res(new URL(import.meta.url).pathname, '..', '..');
474
- const bundled = res(pkgRoot, 'dist', 'daemon.mjs');
475
- if (ef(bundled) && ef(CONFIG_PATH)) {
472
+ const pkgRoot = resolve(new URL(import.meta.url).pathname, '..', '..');
473
+ const bundled = resolve(pkgRoot, 'dist', 'daemon.mjs');
474
+ if (existsSync(bundled) && existsSync(CONFIG_PATH)) {
476
475
  const { spawn } = await import('node:child_process');
477
476
  const child = spawn(process.execPath, [bundled], { detached: true, stdio: 'ignore', env: { ...process.env, ZEROAGENT_CONFIG: CONFIG_PATH } });
478
477
  child.unref();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "0agent",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "A persistent, learning AI agent that runs on your machine. An agent that learns.",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",