0agent 1.0.95 → 1.0.96

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 +8 -8
  2. package/package.json +1 -1
package/bin/chat.js CHANGED
@@ -409,14 +409,13 @@ const history = []; // command history for arrow keys
409
409
 
410
410
  // ─── Header ──────────────────────────────────────────────────────────────────
411
411
  function isFirstRun() {
412
- // Check if the graph DB has any conversations yet
413
- try {
414
- const dbPath = cfg?.graph?.db_path;
415
- if (!dbPath || !existsSync(dbPath)) return true;
416
- // If DB exists but is tiny (<10KB), likely first run
417
- const { statSync } = require('node:fs');
418
- return statSync(dbPath).size < 10240;
419
- } catch { return true; }
412
+ const flag = resolve(homedir(), '.0agent', '.onboarded');
413
+ return !existsSync(flag);
414
+ }
415
+
416
+ function markOnboarded() {
417
+ const flag = resolve(homedir(), '.0agent', '.onboarded');
418
+ try { writeFileSync(flag, new Date().toISOString(), 'utf8'); } catch {}
420
419
  }
421
420
 
422
421
  function printHeader() {
@@ -445,6 +444,7 @@ function printHeader() {
445
444
  console.log();
446
445
  console.log(fmt(C.bold, ' Let\'s start by getting to know each other. Tell me about yourself!'));
447
446
  console.log(fmt(C.dim, ' (Your name, what you do, what you\'re working on)\n'));
447
+ markOnboarded();
448
448
  } else {
449
449
  console.log(fmt(C.dim, '\n Type a task, or / for commands.\n'));
450
450
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "0agent",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
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",