@circuitorg/agent-cli 1.1.1 → 1.1.3
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/README.md +0 -4
- package/bin/circuit +7 -2
- 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/README.md
CHANGED
|
@@ -68,9 +68,6 @@ circuit --version
|
|
|
68
68
|
|
|
69
69
|
# RECOMMENDED FIRST STEP: Get an overview of the tooling and quick start guide
|
|
70
70
|
circuit help
|
|
71
|
-
|
|
72
|
-
# Start with interactive mode (recommended for beginners)
|
|
73
|
-
circuit
|
|
74
71
|
```
|
|
75
72
|
|
|
76
73
|
### Creating Your First Agent
|
|
@@ -129,7 +126,6 @@ circuit run
|
|
|
129
126
|
|
|
130
127
|
| Command | Description |
|
|
131
128
|
|---------|-------------|
|
|
132
|
-
| `circuit` | Start interactive mode with menu |
|
|
133
129
|
| `circuit whoami` | Show current authenticated user |
|
|
134
130
|
| `circuit login` | Authenticate with Circuit platform |
|
|
135
131
|
| `circuit logout` | Sign out from Circuit platform |
|
package/bin/circuit
CHANGED
|
@@ -37,14 +37,19 @@ if (!fs.existsSync(binaryPath)) {
|
|
|
37
37
|
|
|
38
38
|
try {
|
|
39
39
|
// Get the arguments, excluding node/bun and script path
|
|
40
|
-
|
|
40
|
+
let args = process.argv.slice(2);
|
|
41
|
+
|
|
42
|
+
// Filter out the binary path if it was somehow included as an argument
|
|
43
|
+
// This can happen with certain npm/bun execution contexts
|
|
44
|
+
args = args.filter(arg => !arg.includes(binaryName) && !arg.includes(__dirname));
|
|
41
45
|
|
|
42
46
|
// Execute the appropriate binary with all arguments
|
|
43
47
|
// Use spawnSync instead of execSync to avoid shell interpretation issues
|
|
44
48
|
const result = spawnSync(binaryPath, args, {
|
|
45
49
|
stdio: 'inherit',
|
|
46
50
|
cwd: process.cwd(),
|
|
47
|
-
env: process.env
|
|
51
|
+
env: process.env,
|
|
52
|
+
shell: false
|
|
48
53
|
});
|
|
49
54
|
|
|
50
55
|
process.exit(result.status || 0);
|
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
|