dhurandhar 2.0.0 ā 2.0.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/CHANGELOG.md +20 -0
- package/cli/dhurandhar.js +34 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ 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.2] - 2026-04-02
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Fixed --version command exit code (was showing version but exiting with error)
|
|
12
|
+
- Proper exit handling for --version and --help commands
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## [2.0.1] - 2026-04-02
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- Improved error messages for unknown commands with helpful suggestions
|
|
20
|
+
- Updated glob to latest version (13.0.6) to avoid deprecation warnings
|
|
21
|
+
- Added command suggestions (e.g., "install" ā suggests "init")
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- Better UX when typing incorrect commands
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
8
28
|
## [2.0.0] - 2026-04-02
|
|
9
29
|
|
|
10
30
|
### š 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,13 @@ try {
|
|
|
273
299
|
if (err.code === 'commander.help' || err.code === 'commander.helpDisplayed') {
|
|
274
300
|
process.exit(0);
|
|
275
301
|
}
|
|
302
|
+
if (err.code === 'commander.version') {
|
|
303
|
+
process.exit(0);
|
|
304
|
+
}
|
|
305
|
+
if (err.code === 'commander.unknownCommand') {
|
|
306
|
+
// Already handled by command:* listener above
|
|
307
|
+
process.exit(1);
|
|
308
|
+
}
|
|
276
309
|
console.error(chalk.red('Error:'), err.message);
|
|
277
310
|
process.exit(1);
|
|
278
311
|
}
|
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.
|
|
4
|
+
"version": "2.0.2",
|
|
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": "^
|
|
81
|
+
"glob": "^13.0.6",
|
|
82
82
|
"js-yaml": "^4.1.0",
|
|
83
83
|
"picocolors": "^1.1.1",
|
|
84
84
|
"yaml": "^2.7.0"
|