mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-29 16:14:59 +00:00
bump version to 6.0.0-alpha.21 and enhance stdin handling for Windows in CLI (#1200)
This commit is contained in:
parent
e0090e5602
commit
b509fb9a1e
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bmad-method",
|
"name": "bmad-method",
|
||||||
"version": "6.0.0-alpha.20",
|
"version": "6.0.0-alpha.21",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bmad-method",
|
"name": "bmad-method",
|
||||||
"version": "6.0.0-alpha.20",
|
"version": "6.0.0-alpha.21",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@kayvan/markdown-tree-parser": "^1.6.1",
|
"@kayvan/markdown-tree-parser": "^1.6.1",
|
||||||
|
|||||||
@ -2,6 +2,24 @@ const { program } = require('commander');
|
|||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
const fs = require('node:fs');
|
const fs = require('node:fs');
|
||||||
|
|
||||||
|
// Fix for stdin issues when running through npm on Windows
|
||||||
|
// Ensures keyboard interaction works properly with inquirer prompts
|
||||||
|
if (process.stdin.isTTY) {
|
||||||
|
try {
|
||||||
|
process.stdin.resume();
|
||||||
|
process.stdin.setEncoding('utf8');
|
||||||
|
|
||||||
|
// On Windows, explicitly reference the stdin stream to ensure it's properly initialized
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
process.stdin.on('error', () => {
|
||||||
|
// Ignore stdin errors - they can occur when the terminal is closing
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
// Silently ignore - some environments may not support these operations
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Load package.json from root for version info
|
// Load package.json from root for version info
|
||||||
const packageJson = require('../../package.json');
|
const packageJson = require('../../package.json');
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
|
const inquirer = require('inquirer');
|
||||||
const { Installer } = require('../installers/lib/core/installer');
|
const { Installer } = require('../installers/lib/core/installer');
|
||||||
const { UI } = require('../lib/ui');
|
const { UI } = require('../lib/ui');
|
||||||
|
|
||||||
@ -65,18 +66,13 @@ module.exports = {
|
|||||||
console.log(chalk.dim(' • ElevenLabs AI (150+ premium voices)'));
|
console.log(chalk.dim(' • ElevenLabs AI (150+ premium voices)'));
|
||||||
console.log(chalk.dim(' • Piper TTS (50+ free voices)\n'));
|
console.log(chalk.dim(' • Piper TTS (50+ free voices)\n'));
|
||||||
|
|
||||||
const readline = require('node:readline');
|
await inquirer.prompt([
|
||||||
const rl = readline.createInterface({
|
{
|
||||||
input: process.stdin,
|
type: 'input',
|
||||||
output: process.stdout,
|
name: 'continue',
|
||||||
});
|
message: chalk.green('Press Enter to start AgentVibes installer...'),
|
||||||
|
},
|
||||||
await new Promise((resolve) => {
|
]);
|
||||||
rl.question(chalk.green('Press Enter to start AgentVibes installer...'), () => {
|
|
||||||
rl.close();
|
|
||||||
resolve();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user