Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

fix(cli): remove invisible first options in inquirer menus

Eyal Toledanob61a2a5f9064
diff --git a/scripts/init.js b/scripts/init.js
index e129d2a4..b8a9cf43 100755
--- a/scripts/init.js
+++ b/scripts/init.js
@@ -18,7 +18,7 @@ import fs from 'fs';
import path from 'path';
import readline from 'readline';
import { ui } from '@tm/cli';
-import { AuthManager, AUTH_TIMEOUT_MS } from '@tm/core';
+import { AUTH_TIMEOUT_MS, AuthManager } from '@tm/core';
import boxen from 'boxen';
import chalk from 'chalk';
import figlet from 'figlet';
@@ -815,20 +815,14 @@ async function promptStorageSelection() {
try {
// Display header
- console.log(
- '\n' +
- chalk.bold.cyan('You need a plan before you execute.') +
- ' ' +
- chalk.white('How do you want to build it?\n')
- );
+ console.log(chalk.bold.cyan('You need a plan before you execute.\n'));
const { storageType } = await inquirer.prompt([
{
type: 'list',
name: 'storageType',
- message: chalk.cyan('Choose one:'),
+ message: chalk.white('How do you want to build it?\n'),
choices: [
- '\n',
{
name: [
chalk.bold('Solo (Taskmaster)'),
diff --git a/scripts/modules/commands.js b/scripts/modules/commands.js
index 9348e5ae..e1c3961f 100644
--- a/scripts/modules/commands.js
+++ b/scripts/modules/commands.js
@@ -203,9 +203,8 @@ async function promptHamsterCollaboration() {
{
type: 'list',
name: 'choice',
- message: chalk.cyan('How would you like to parse your PRD?'),
+ message: chalk.cyan('How would you like to parse your PRD?\n'),
choices: [
- '\n',
{
name: [
chalk.bold('Parse locally'),