@kandiforge/spectacle 0.3.40 → 0.3.42

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.
Binary file
Binary file
package/bin/kandi-gpt-bin CHANGED
Binary file
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
+ });
Binary file
package/bin/kandi-run-bin CHANGED
Binary file
Binary file
@@ -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-spectacle-bin.exe' : 'kandi-spectacle-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-spectacle binary:', err.message);
24
+ process.exit(1);
25
+ });
Binary file
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require('child_process');
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+
7
+ // Determine binary name based on platform
8
+ // Handle both naming conventions (kandi-supersmall-bin from install.js, supersmall-bin from release workflow)
9
+ const ext = process.platform === 'win32' ? '.exe' : '';
10
+ const primaryBinary = path.join(__dirname, `kandi-supersmall-bin${ext}`);
11
+ const fallbackBinary = path.join(__dirname, `supersmall-bin${ext}`);
12
+ const binaryPath = fs.existsSync(primaryBinary) ? primaryBinary : fallbackBinary;
13
+
14
+ // Spawn the binary with all arguments
15
+ const child = spawn(binaryPath, process.argv.slice(2), {
16
+ stdio: 'inherit',
17
+ env: process.env
18
+ });
19
+
20
+ // Forward exit code
21
+ child.on('exit', (code) => {
22
+ process.exit(code || 0);
23
+ });
24
+
25
+ // Handle errors
26
+ child.on('error', (err) => {
27
+ console.error('Failed to start kandi-supersmall binary:', err.message);
28
+ process.exit(1);
29
+ });
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kandiforge/spectacle",
3
- "version": "0.3.40",
3
+ "version": "0.3.42",
4
4
  "description": "Spectacle server and CLI tools for KandiForge ecosystem",
5
5
  "author": "Abstract Class Consulting Inc.",
6
6
  "license": "PROPRIETARY",
@@ -22,6 +22,7 @@
22
22
  ],
23
23
  "bin": {
24
24
  "spectacle": "./bin/spectacle",
25
+ "kandi-spectacle": "./bin/kandi-spectacle",
25
26
  "kandi-plan": "./bin/kandi-plan",
26
27
  "kandi-gpt": "./bin/kandi-gpt",
27
28
  "kandi-run": "./bin/kandi-run",
@@ -29,7 +30,8 @@
29
30
  "kandi-deploy": "./bin/kandi-deploy",
30
31
  "kandi-secure": "./bin/kandi-secure",
31
32
  "kandi-forge": "./bin/kandi-forge",
32
- "supersmall": "./bin/supersmall"
33
+ "supersmall": "./bin/supersmall",
34
+ "kandi-supersmall": "./bin/kandi-supersmall"
33
35
  },
34
36
  "scripts": {
35
37
  "postinstall": "node scripts/install.js",
@@ -9,7 +9,7 @@ const stream = require('stream');
9
9
  const pipeline = promisify(stream.pipeline);
10
10
 
11
11
  // This version MUST match package.json
12
- const RELEASE_VERSION = '0.3.40';
12
+ const RELEASE_VERSION = '0.3.42';
13
13
  const GITHUB_REPO = 'KandiForge/distribution';
14
14
 
15
15
  function downloadFile(url, destPath) {