nubos-pilot 0.2.1 → 0.2.2

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/install.js CHANGED
@@ -194,7 +194,7 @@ async function _runInitQuestions(detectedRuntime, askUser, flags) {
194
194
  const labels = _runtimeSelectLabels();
195
195
  const detectedIdx = Math.max(0, VALID_AGENTS.indexOf(detectedRuntime || 'claude'));
196
196
  const picked = (await askUser({ type: 'multiselect',
197
- question: yellow + 'Which runtime(s) would you like to install for?' + reset,
197
+ question: 'Which runtime(s) would you like to install for?',
198
198
  options: labels, default: [labels[detectedIdx]] })).value;
199
199
  runtimes = Array.isArray(picked) && picked.length && typeof picked[0] === 'string'
200
200
  && picked[0].includes('(')
@@ -89,8 +89,13 @@ function _parseAnswer(type, rawLine, options, def) {
89
89
  }
90
90
 
91
91
  const NUBOS_BLUE = '\x1b[38;5;33m';
92
+ const ANSI_YELLOW = '\x1b[33m';
92
93
  const ANSI_RESET = '\x1b[0m';
93
94
 
95
+ function _stripAnsi(s) {
96
+ return String(s).replace(/\x1b\[[0-9;]*m/g, '');
97
+ }
98
+
94
99
  function _defaultDisplay(type, options, def) {
95
100
  if (def == null) {
96
101
  if (type === 'confirm') return '[y/n]';
@@ -129,7 +134,7 @@ async function askUserReadline({ type, question, options, def }) {
129
134
  );
130
135
  }
131
136
  process.stderr.write('\n');
132
- process.stderr.write(' ' + question + '\n');
137
+ process.stderr.write(' ' + ANSI_YELLOW + _stripAnsi(question) + ANSI_RESET + '\n');
133
138
  process.stderr.write('\n');
134
139
  if (type === 'select' || type === 'multiselect') {
135
140
  if (options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nubos-pilot",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "AI-driven planning and execution tool for code projects",
5
5
  "homepage": "https://github.com/Nubos-AI/nubos-pilot",
6
6
  "repository": {