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.
- package/bin/chat.js +8 -8
- 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
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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
|
}
|