markov-cli 1.0.10 → 1.0.11

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/package.json +1 -1
  2. package/src/interactive.js +20 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markov-cli",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Markov CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -480,9 +480,22 @@ async function runAgentLoop(messages, opts = {}) {
480
480
  };
481
481
  }
482
482
 
483
+ /** Short intro shown on first load; /intro re-displays this. */
484
+ const INTRO_TEXT =
485
+ '\n' +
486
+ chalk.bold('Quick start:\n') +
487
+ chalk.cyan(' /help') + chalk.dim(' show all commands\n') +
488
+ chalk.cyan(' /login') + chalk.dim(' authenticate with email & password\n') +
489
+ chalk.cyan(' /cd [path]') + chalk.dim(' change working directory\n') +
490
+ chalk.cyan(' /plan') + chalk.dim(' [prompt] stream a plan (no tools)\n') +
491
+ chalk.cyan(' /build') + chalk.dim(' execute last plan with tools\n') +
492
+ chalk.cyan(' /yolo') + chalk.dim(' [prompt] plan in stream mode, then auto-run until done\n') +
493
+ chalk.dim('\nType a message · ') + chalk.cyan('@filename') + chalk.dim(' to attach · ctrl+q to cancel\n');
494
+
483
495
  const HELP_TEXT =
484
496
  '\n' +
485
497
  chalk.bold('Commands:\n') +
498
+ chalk.cyan(' /intro') + chalk.dim(' show quick start (same as on first load)\n') +
486
499
  chalk.cyan(' /help') + chalk.dim(' show this help\n') +
487
500
  chalk.cyan(' /setup-nextjs') + chalk.dim(' scaffold a Next.js app\n') +
488
501
  chalk.cyan(' /setup-laravel') + chalk.dim(' scaffold a Laravel API\n') +
@@ -554,7 +567,7 @@ export async function startInteractive() {
554
567
  const chatMessages = [];
555
568
 
556
569
  console.log(chalk.dim(`Chat with Markov (${MODEL}).`));
557
- console.log(HELP_TEXT);
570
+ console.log(INTRO_TEXT);
558
571
 
559
572
  if (!getToken()) {
560
573
  console.log(chalk.yellow('⚠ Not logged in. Use /login to authenticate.\n'));
@@ -597,6 +610,12 @@ export async function startInteractive() {
597
610
  continue;
598
611
  }
599
612
 
613
+ // /intro — show quick start (same as on first load)
614
+ if (trimmed === '/intro') {
615
+ console.log(INTRO_TEXT);
616
+ continue;
617
+ }
618
+
600
619
  // /help — list all commands
601
620
  if (trimmed === '/help') {
602
621
  console.log(HELP_TEXT);