@kandiforge/spectacle 0.3.20 → 0.3.25

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-plan 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-plan-bin.exe' : 'kandi-plan-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-plan binary:', err.message);
24
+ process.exit(1);
25
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kandiforge/spectacle",
3
- "version": "0.3.20",
3
+ "version": "0.3.25",
4
4
  "description": "Spectacle server and CLI tools for KandiForge ecosystem",
5
5
  "author": "Abstract Class Consulting Inc.",
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 = '0.3.20';
9
+ const RELEASE_VERSION = '0.3.25';
10
10
  const GITHUB_REPO = 'KandiForge/distribution';
11
11
 
12
12
  function downloadFile(url, destPath) {