@kandiforge/kandi-cli 9.3.0 → 9.3.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/bin/kandi ADDED
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require('child_process');
4
+ const path = require('path');
5
+
6
+ // Determine binary name based on platform
7
+ const binaryName = process.platform === 'win32' ? 'kandi-bin.exe' : 'kandi-bin';
8
+ const binaryPath = path.join(__dirname, binaryName);
9
+
10
+ // Spawn the binary with all arguments
11
+ const child = spawn(binaryPath, process.argv.slice(2), {
12
+ stdio: 'inherit',
13
+ env: process.env
14
+ });
15
+
16
+ // Forward exit code
17
+ child.on('exit', (code) => {
18
+ process.exit(code || 0);
19
+ });
20
+
21
+ // Handle errors
22
+ child.on('error', (err) => {
23
+ console.error('Failed to start kandi binary:', err.message);
24
+ process.exit(1);
25
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kandiforge/kandi-cli",
3
- "version": "9.3.0",
3
+ "version": "9.3.2",
4
4
  "description": "AI-assisted software development CLI with interactive chat and 26 built-in tools",
5
5
  "author": "KandiForge",
6
6
  "license": "Proprietary",
@@ -6,7 +6,7 @@ const https = require('https');
6
6
  const { execSync } = require('child_process');
7
7
 
8
8
  // This version MUST match package.json
9
- const RELEASE_VERSION = '9.3.0';
9
+ const RELEASE_VERSION = '9.3.2';
10
10
  const GITHUB_REPO = 'KandiForge/distribution';
11
11
 
12
12
  function downloadFile(url, destPath) {