dhurandhar 2.4.0 → 2.4.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 CHANGED
@@ -5,6 +5,34 @@ 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
+
22
+ ## [2.4.1] - 2026-04-02
23
+
24
+ ### Fixed - Critical Bug Fix
25
+ - Fixed "require is not defined" error in setup
26
+ - Added `chmodSync` to imports (was missing)
27
+ - Removed `require()` call in ES module
28
+ - Local executable now creates successfully
29
+
30
+ ### Error Fixed
31
+ User saw: "Error creating directories: require is not defined"
32
+ **FIXED**: Proper ES module imports now used!
33
+
34
+ ---
35
+
8
36
  ## [2.4.0] - 2026-04-02
9
37
 
10
38
  ### Added - LOCAL EXECUTABLE! No Global Install Needed! 🎉
@@ -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/'));
@@ -10,7 +10,7 @@
10
10
 
11
11
  import * as clack from '@clack/prompts';
12
12
  import chalk from 'chalk';
13
- import { existsSync, writeFileSync, mkdirSync } from 'fs';
13
+ import { existsSync, writeFileSync, mkdirSync, chmodSync } from 'fs';
14
14
  import { homedir } from 'os';
15
15
  import { join } from 'path';
16
16
 
@@ -496,10 +496,9 @@ npx --yes dhurandhar@latest "$@"
496
496
  `;
497
497
 
498
498
  const scriptPath = join(cwd, 'dhurandhar');
499
- writeFileSync(scriptPath, scriptContent, { mode: 0o755 });
499
+ writeFileSync(scriptPath, scriptContent, 'utf-8');
500
500
 
501
501
  // Make it executable
502
- const { chmodSync } = require('fs');
503
502
  chmodSync(scriptPath, 0o755);
504
503
 
505
504
  // Create Windows batch file too
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.0",
4
+ "version": "2.4.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",