@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { execSync } from 'child_process';
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(`"${binaryPath}" ${process.argv.slice(2).join(' ')}`, {
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
  }
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@circuitorg/agent-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A CLI tool for deploying agents to the Circuit platform",
5
5
  "type": "module",
6
6
  "bin": {