dhurandhar 2.4.0 → 2.4.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,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.1] - 2026-04-02
9
+
10
+ ### Fixed - Critical Bug Fix
11
+ - Fixed "require is not defined" error in setup
12
+ - Added `chmodSync` to imports (was missing)
13
+ - Removed `require()` call in ES module
14
+ - Local executable now creates successfully
15
+
16
+ ### Error Fixed
17
+ User saw: "Error creating directories: require is not defined"
18
+ **FIXED**: Proper ES module imports now used!
19
+
20
+ ---
21
+
8
22
  ## [2.4.0] - 2026-04-02
9
23
 
10
24
  ### Added - LOCAL EXECUTABLE! No Global Install Needed! 🎉
@@ -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.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",