dhurandhar 2.0.0 → 2.0.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/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to Dhurandhar will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.0.1] - 2026-04-02
9
+
10
+ ### Fixed
11
+ - Improved error messages for unknown commands with helpful suggestions
12
+ - Updated glob to latest version (13.0.6) to avoid deprecation warnings
13
+ - Added command suggestions (e.g., "install" → suggests "init")
14
+
15
+ ### Changed
16
+ - Better UX when typing incorrect commands
17
+
18
+ ---
19
+
8
20
  ## [2.0.0] - 2026-04-02
9
21
 
10
22
  ### šŸŽ‰ MAJOR RELEASE - Production Ready!
package/cli/dhurandhar.js CHANGED
@@ -264,7 +264,33 @@ program
264
264
  await undoCommand(options);
265
265
  });
266
266
 
267
- // Error handling
267
+ // Error handling for unknown commands
268
+ program.on('command:*', function (operands) {
269
+ const unknownCommand = operands[0];
270
+ console.error(chalk.red(`\nāŒ Error: unknown command '${unknownCommand}'\n`));
271
+
272
+ // Suggest similar commands
273
+ const suggestions = {
274
+ 'install': 'init',
275
+ 'setup': 'init',
276
+ 'create': 'init',
277
+ 'start': 'init',
278
+ 'generate': 'codegen',
279
+ 'gen': 'codegen',
280
+ 'code': 'codegen',
281
+ 'review': 'status',
282
+ 'check': 'status',
283
+ 'help': '--help',
284
+ };
285
+
286
+ if (suggestions[unknownCommand]) {
287
+ console.log(chalk.yellow(`šŸ’” Did you mean: ${chalk.cyan(suggestions[unknownCommand])}?\n`));
288
+ }
289
+
290
+ console.log(chalk.gray('Run'), chalk.cyan('dhurandhar --help'), chalk.gray('to see all available commands.\n'));
291
+ process.exit(1);
292
+ });
293
+
268
294
  program.exitOverride();
269
295
 
270
296
  try {
@@ -273,6 +299,10 @@ try {
273
299
  if (err.code === 'commander.help' || err.code === 'commander.helpDisplayed') {
274
300
  process.exit(0);
275
301
  }
302
+ if (err.code === 'commander.unknownCommand') {
303
+ // Already handled by command:* listener above
304
+ process.exit(1);
305
+ }
276
306
  console.error(chalk.red('Error:'), err.message);
277
307
  process.exit(1);
278
308
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "dhurandhar",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "description": "The world's first AI-powered dharma-centric design framework. 8 Pandava agents + 21 sub-agents guide you from idea to production code. Features → Requirements → Entities → API → HLD → LLD → Implementation → Blessing. Complete with code generation, enterprise integrations, and mythological accuracy.",
6
6
  "keywords": [
7
7
  "system-design",
@@ -78,7 +78,7 @@
78
78
  "chalk": "^5.3.0",
79
79
  "commander": "^14.0.0",
80
80
  "fs-extra": "^11.3.0",
81
- "glob": "^11.0.3",
81
+ "glob": "^13.0.6",
82
82
  "js-yaml": "^4.1.0",
83
83
  "picocolors": "^1.1.1",
84
84
  "yaml": "^2.7.0"