0agent 1.0.23 → 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.
- package/bin/0agent.js +3 -0
- package/bin/chat.js +3 -4
- package/dist/daemon.mjs +1575 -1543
- package/package.json +1 -1
package/bin/0agent.js
CHANGED
|
@@ -352,6 +352,9 @@ ${ghToken && ghOwner ? `\ngithub_memory:\n enabled: true\n token: "${ghToken}"
|
|
|
352
352
|
console.log(' ✓ Built-in skills installed');
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
+
// Always kill any existing daemon so the new config (with API key) is loaded
|
|
356
|
+
try { stopDaemon(); await sleep(800); } catch {}
|
|
357
|
+
|
|
355
358
|
console.log('\n Starting daemon...\n');
|
|
356
359
|
await startDaemon();
|
|
357
360
|
}
|
package/bin/chat.js
CHANGED
|
@@ -469,10 +469,9 @@ connectWS();
|
|
|
469
469
|
} catch {
|
|
470
470
|
// Auto-start
|
|
471
471
|
startSpin.start();
|
|
472
|
-
const
|
|
473
|
-
const
|
|
474
|
-
|
|
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();
|