0agent 1.0.1 → 1.0.2

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/0agent.js +4 -2
  2. package/package.json +1 -1
package/bin/0agent.js CHANGED
@@ -361,8 +361,10 @@ async function runSkill(skillName, extraArgs) {
361
361
  async function streamSession(sessionId) {
362
362
  await requireDaemon();
363
363
 
364
+ const WS = await importWS();
365
+
364
366
  return new Promise((resolve) => {
365
- const ws = new (await importWS())(`ws://localhost:4200/ws`);
367
+ const ws = new WS(`ws://localhost:4200/ws`);
366
368
 
367
369
  ws.on('open', () => {
368
370
  ws.send(JSON.stringify({ type: 'subscribe', topics: ['sessions'] }));
@@ -531,7 +533,7 @@ async function runImprove(improveArgs) {
531
533
  function showLogs(logArgs) {
532
534
  const n = parseInt(logArgs.find(a => a.match(/^\d+$/)) ?? '100', 10);
533
535
  if (!existsSync(LOG_PATH)) { console.log(' No logs yet. Run `0agent start` first.'); return; }
534
- const { execSync } = await import('node:child_process');
536
+ // execSync already imported at top level via node:child_process
535
537
  execSync(`tail -${n} "${LOG_PATH}"`, { stdio: 'inherit' });
536
538
  }
537
539
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "0agent",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
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",