@circuitorg/agent-cli 1.1.0 → 1.1.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/bin/circuit +10 -3
- package/bin/circuit-darwin-arm64 +0 -0
- package/bin/circuit-darwin-x64 +0 -0
- package/bin/circuit-linux-arm64 +0 -0
- package/bin/circuit-linux-x64 +0 -0
- package/bin/circuit-win32-x64.exe +0 -0
- package/package.json +1 -1
package/bin/circuit
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { spawnSync } from 'child_process';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
import fs from 'fs';
|
|
6
6
|
import { fileURLToPath } from 'url';
|
|
@@ -36,11 +36,18 @@ if (!fs.existsSync(binaryPath)) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
try {
|
|
39
|
+
// Get the arguments, excluding node/bun and script path
|
|
40
|
+
const args = process.argv.slice(2);
|
|
41
|
+
|
|
39
42
|
// Execute the appropriate binary with all arguments
|
|
40
|
-
execSync
|
|
43
|
+
// Use spawnSync instead of execSync to avoid shell interpretation issues
|
|
44
|
+
const result = spawnSync(binaryPath, args, {
|
|
41
45
|
stdio: 'inherit',
|
|
42
|
-
cwd: process.cwd()
|
|
46
|
+
cwd: process.cwd(),
|
|
47
|
+
env: process.env
|
|
43
48
|
});
|
|
49
|
+
|
|
50
|
+
process.exit(result.status || 0);
|
|
44
51
|
} catch (error) {
|
|
45
52
|
process.exit(error.status || 1);
|
|
46
53
|
}
|
package/bin/circuit-darwin-arm64
CHANGED
|
Binary file
|
package/bin/circuit-darwin-x64
CHANGED
|
Binary file
|
package/bin/circuit-linux-arm64
CHANGED
|
Binary file
|
package/bin/circuit-linux-x64
CHANGED
|
Binary file
|
|
Binary file
|