@hyperdrive.bot/bmad-workflow 1.0.15 → 1.0.16

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.
@@ -338,6 +338,12 @@ Write output to: ${outputPath}`;
338
338
  this.logger.info({ input }, 'Detecting input type');
339
339
  try {
340
340
  const result = await this.inputDetector.detect(input);
341
+ // Fail loudly when input type cannot be determined
342
+ if (result.type === null) {
343
+ const reason = result.error || 'Could not determine input type';
344
+ this.logger.error({ input, reason }, 'Input detection failed');
345
+ throw new ValidationError(reason, { input });
346
+ }
341
347
  this.logger.info({
342
348
  filePath: result.filePath,
343
349
  inputType: result.type,
@@ -346,6 +352,8 @@ Write output to: ${outputPath}`;
346
352
  return result;
347
353
  }
348
354
  catch (error) {
355
+ if (error instanceof ValidationError)
356
+ throw error;
349
357
  this.logger.error({ error: error.message, input }, 'Failed to detect input type');
350
358
  throw new ValidationError(`Failed to detect input type: ${error.message}`, {
351
359
  input,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hyperdrive.bot/bmad-workflow",
3
3
  "description": "AI-driven development workflow orchestration CLI for BMAD projects",
4
- "version": "1.0.15",
4
+ "version": "1.0.16",
5
5
  "author": {
6
6
  "name": "DevSquad",
7
7
  "email": "marcelo@devsquad.email",