inquirerer 4.9.0 → 4.9.1

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/esm/prompt.js CHANGED
@@ -172,7 +172,7 @@ export class Inquirerer {
172
172
  if (timeout !== undefined) {
173
173
  this.timeout = timeout;
174
174
  }
175
- else if (!noTty && !input.isTTY) {
175
+ else if (!noTty) {
176
176
  this.timeout = DEFAULT_NON_TTY_TIMEOUT;
177
177
  }
178
178
  if (!noTty) {
@@ -1252,8 +1252,7 @@ export class Inquirerer {
1252
1252
  lines.push('');
1253
1253
  lines.push(`PROMPT TIMEOUT: No input received for "${currentQuestion.name}" after ${seconds}s.`);
1254
1254
  lines.push('');
1255
- lines.push('This usually happens when running in a non-interactive environment');
1256
- lines.push('(CI, scripts, AI agents) without the proper flags.');
1255
+ lines.push('No input was received before the inactivity timeout.');
1257
1256
  lines.push('');
1258
1257
  lines.push('REQUIRED ARGUMENTS:');
1259
1258
  for (const q of allQuestions) {
@@ -1288,9 +1287,9 @@ export class Inquirerer {
1288
1287
  lines.push(' 3. Or pass --no-tty if the CLI supports it.');
1289
1288
  lines.push('');
1290
1289
  lines.push('WHY THIS HAPPENED:');
1291
- lines.push(' The prompt expected interactive TTY input (keyboard), but no input');
1292
- lines.push(' was received. AI agents and CI pipelines must pass arguments via');
1293
- lines.push(' CLI flags instead of interactive prompts.');
1290
+ lines.push(' The prompt waited for input but none was received within the');
1291
+ lines.push(' timeout window. Pass the required arguments as CLI flags');
1292
+ lines.push(' to avoid interactive prompts.');
1294
1293
  lines.push('');
1295
1294
  return lines.join('\n');
1296
1295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inquirerer",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "TypeScript-first library for building beautiful CLI interfaces with interactive prompts",
6
6
  "main": "index.js",
@@ -46,5 +46,5 @@
46
46
  "makage": "0.1.10",
47
47
  "string-width": "4.2.3"
48
48
  },
49
- "gitHead": "76f01d32d05f29d9a53a30b516951fc373655ae2"
49
+ "gitHead": "e4fa1ffdded38205e01b42c5f12171a5601cdac6"
50
50
  }
package/prompt.js CHANGED
@@ -180,7 +180,7 @@ class Inquirerer {
180
180
  if (timeout !== undefined) {
181
181
  this.timeout = timeout;
182
182
  }
183
- else if (!noTty && !input.isTTY) {
183
+ else if (!noTty) {
184
184
  this.timeout = DEFAULT_NON_TTY_TIMEOUT;
185
185
  }
186
186
  if (!noTty) {
@@ -1260,8 +1260,7 @@ class Inquirerer {
1260
1260
  lines.push('');
1261
1261
  lines.push(`PROMPT TIMEOUT: No input received for "${currentQuestion.name}" after ${seconds}s.`);
1262
1262
  lines.push('');
1263
- lines.push('This usually happens when running in a non-interactive environment');
1264
- lines.push('(CI, scripts, AI agents) without the proper flags.');
1263
+ lines.push('No input was received before the inactivity timeout.');
1265
1264
  lines.push('');
1266
1265
  lines.push('REQUIRED ARGUMENTS:');
1267
1266
  for (const q of allQuestions) {
@@ -1296,9 +1295,9 @@ class Inquirerer {
1296
1295
  lines.push(' 3. Or pass --no-tty if the CLI supports it.');
1297
1296
  lines.push('');
1298
1297
  lines.push('WHY THIS HAPPENED:');
1299
- lines.push(' The prompt expected interactive TTY input (keyboard), but no input');
1300
- lines.push(' was received. AI agents and CI pipelines must pass arguments via');
1301
- lines.push(' CLI flags instead of interactive prompts.');
1298
+ lines.push(' The prompt waited for input but none was received within the');
1299
+ lines.push(' timeout window. Pass the required arguments as CLI flags');
1300
+ lines.push(' to avoid interactive prompts.');
1302
1301
  lines.push('');
1303
1302
  return lines.join('\n');
1304
1303
  }