dhurandhar 2.4.1 → 2.4.3

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,20 @@ 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.4.2] - 2026-04-02
9
+
10
+ ### Fixed - "config already declared" Error
11
+ - Fixed duplicate `const config` declaration in init.js
12
+ - Renamed second declaration to `globalConfig`
13
+ - Updated all references to use correct variable
14
+ - Init command now works properly
15
+
16
+ ### User Error Fixed
17
+ "Error: Identifier 'config' has already been declared"
18
+ **SOLUTION**: Renamed duplicate variable!
19
+
20
+ ---
21
+
8
22
  ## [2.4.1] - 2026-04-02
9
23
 
10
24
  ### Fixed - Critical Bug Fix
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Dhurandhar v2.0.0 - Init Command
3
- *
2
+ * Dhurandhar v2.4.3 - Init Command
3
+ *
4
4
  * Initialize a new Dhurandhar project
5
5
  */
6
6
 
@@ -92,7 +92,7 @@ export default async function initCommand(options) {
92
92
 
93
93
  // Create config file
94
94
  const config = {
95
- version: '2.0.0',
95
+ version: '2.4.3',
96
96
  project: {
97
97
  name: projectName,
98
98
  type: projectType,
@@ -118,12 +118,12 @@ export default async function initCommand(options) {
118
118
  );
119
119
 
120
120
  // Create SYSTEM_DESIGN_MAP.yaml
121
- const sdmTemplate = `# Dhurandhar System Design Map v2.0.0
121
+ const sdmTemplate = `# Dhurandhar System Design Map v2.4.3
122
122
  # Project: ${projectName}
123
123
  # Type: ${projectType}
124
124
  # Created: ${new Date().toISOString()}
125
125
 
126
- version: "2.0.0"
126
+ version: "2.4.3"
127
127
 
128
128
  project:
129
129
  name: "${projectName}"
@@ -148,13 +148,13 @@ apis: []
148
148
  # Phase 5: High-Level Design
149
149
  services: []
150
150
  technical_strategies:
151
- persistence: null
152
- communication: null
153
- security: null
154
- resilience: null
155
- deployment: null
156
- observability: null
157
- scalability: null
151
+ persistence: {}
152
+ communication: {}
153
+ security: {}
154
+ resilience: {}
155
+ deployment: {}
156
+ observability: {}
157
+ scalability: {}
158
158
 
159
159
  # Phase 6: Low-Level Design
160
160
  detailed_design: {}
@@ -178,7 +178,7 @@ decision_registry:
178
178
  // Create README
179
179
  const readmeTemplate = `# ${projectName}
180
180
 
181
- System design created with **Dhurandhar v2.0.0**
181
+ System design created with **Dhurandhar v2.4.3**
182
182
 
183
183
  ## Project Type
184
184
  ${projectType}
@@ -215,22 +215,22 @@ dhurandhar next
215
215
  spinner.stop('Project initialized!');
216
216
 
217
217
  // Setup AI coding assistant integration
218
- const config = loadConfig();
218
+ const globalConfig = loadConfig();
219
219
  const assistant = getAICodingAssistant();
220
220
 
221
- if (config.aiCodingAssistant !== 'none' && config.deepIntegration) {
221
+ if (globalConfig.aiCodingAssistant !== 'none' && globalConfig.deepIntegration) {
222
222
  console.log(''); // Blank line
223
- setupAIAssistantIntegration(config.aiCodingAssistant, projectName, projectType);
223
+ setupAIAssistantIntegration(globalConfig.aiCodingAssistant, projectName, projectType);
224
224
  }
225
225
 
226
226
  clack.outro(chalk.green.bold('āœ“ Project created successfully!'));
227
227
 
228
228
  console.log('');
229
229
  console.log(chalk.cyan('Next steps:'));
230
- console.log(' 1. ' + chalk.bold('dhurandhar yudhishthira') + ' - Start Phase 1 (Features)');
231
- console.log(' 2. ' + chalk.bold('dhurandhar status') + ' - Check project status');
230
+ console.log(' 1. ' + chalk.bold('./dhurandhar yudhishthira') + ' - Start Phase 1 (Features)');
231
+ console.log(' 2. ' + chalk.bold('./dhurandhar status') + ' - Check project status');
232
232
 
233
- if (config.aiCodingAssistant !== 'none') {
233
+ if (globalConfig.aiCodingAssistant !== 'none') {
234
234
  console.log('');
235
235
  console.log(chalk.magenta(`šŸ’” ${assistant.name} Integration:`));
236
236
  console.log(chalk.gray(' - Context files created in .augment/'));
@@ -46,11 +46,17 @@ export default async function setupCommand(options) {
46
46
  // Step 7: Create project directories (like BMAD's _bmad and _bmad-output)
47
47
  await createProjectDirectories(config);
48
48
 
49
+ // Step 8: Auto-run init to complete setup in one step
50
+ console.log(chalk.cyan('\nšŸš€ Initializing project...\n'));
51
+
52
+ const { default: initCommand } = await import('./init.js');
53
+ await initCommand({});
54
+
49
55
  clack.outro(chalk.green.bold('āœ… Setup Complete!'));
50
56
 
51
57
  console.log(chalk.cyan('\nšŸ“š Next Steps:'));
52
- console.log(chalk.gray(' 1. ./dhurandhar init (to initialize design)'));
53
- console.log(chalk.gray(' 2. ./dhurandhar yudhishthira (start Phase 1)\n'));
58
+ console.log(chalk.gray(' 1. ./dhurandhar yudhishthira (start Phase 1)'));
59
+ console.log(chalk.gray(' 2. ./dhurandhar status (check status)\n'));
54
60
 
55
61
  console.log(chalk.green('✨ No global installation needed!'));
56
62
  console.log(chalk.gray(' Use ./dhurandhar (just like BMAD)\n'));
@@ -255,7 +261,7 @@ async function saveConfiguration(config) {
255
261
  }
256
262
 
257
263
  // Add metadata
258
- config.version = '2.0.2';
264
+ config.version = '2.4.3';
259
265
  config.setupDate = new Date().toISOString();
260
266
  config.setupCompleted = true;
261
267
 
@@ -346,8 +352,8 @@ Setup completed on: ${new Date().toISOString()}
346
352
  - \`${assistantDir}/\` - AI assistant integration
347
353
 
348
354
  ## Next Steps
349
- 1. Run \`dhurandhar init\` to initialize your design project
350
- 2. Start Phase 1: \`dhurandhar yudhishthira\`
355
+ 1. Start Phase 1: \`dhurandhar yudhishthira\`
356
+ 2. Check status: \`dhurandhar status\`
351
357
 
352
358
  ## Available Commands
353
359
  - \`dhurandhar status\` - Check project status
@@ -53,7 +53,7 @@ function setupCursorIntegration(projectName, projectType) {
53
53
  ${projectType}
54
54
 
55
55
  ## Framework
56
- Dhurandhar v2.1.x - Dharma-centric design framework
56
+ Dhurandhar v2.4.3 - Dharma-centric design framework
57
57
 
58
58
  ## Design Phases
59
59
  Execute these phases in order:
@@ -99,7 +99,7 @@ function setupClaudeIntegration(projectName, projectType) {
99
99
 
100
100
  Project: ${projectName}
101
101
  Type: ${projectType}
102
- Framework: Dhurandhar v2.1.x
102
+ Framework: Dhurandhar v2.4.3
103
103
 
104
104
  Use Dhurandhar commands to guide system design.
105
105
  See .claude/commands.md for available commands.
@@ -187,7 +187,7 @@ function getGenericContext(projectName, projectType) {
187
187
  return `# ${projectName}
188
188
 
189
189
  Type: ${projectType}
190
- Framework: Dhurandhar v2.1.x
190
+ Framework: Dhurandhar v2.4.3
191
191
 
192
192
  Execute design phases:
193
193
  1. dhurandhar yudhishthira
@@ -94,7 +94,7 @@ function createAuggieCommands() {
94
94
  // Create commands.json for Auggie to parse
95
95
  const commandsJson = {
96
96
  "name": "Dhurandhar Design Framework",
97
- "version": "2.2.1",
97
+ "version": "2.4.3",
98
98
  "commands": [
99
99
  {
100
100
  "name": "Status",
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.4.1",
4
+ "version": "2.4.3",
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",