@circuitorg/agent-cli 1.0.5 → 1.0.6
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 +12 -215
- 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
|
@@ -9,10 +9,7 @@ The official command-line tool for creating, testing, and deploying agents on th
|
|
|
9
9
|
- [🚀 Features](#-features)
|
|
10
10
|
- [📦 Installation](#-installation)
|
|
11
11
|
- [Installation Methods Explained](#installation-methods-explained)
|
|
12
|
-
|
|
13
|
-
- [Option 1: Direct Download (All Platforms)](#option-1-direct-download-all-platforms)
|
|
14
|
-
- [Option 2: Install via npm/Bun (Requires node/Bun Runtime)](#option-2-install-via-npmbun-requires-nodebun-runtime)
|
|
15
|
-
- [Installation Size Comparison](#installation-size-comparison)
|
|
12
|
+
- [Option 1: Install via Bun (Requires Bun runtime)](#option-1-install-via-bun-requires-bun-runtime)
|
|
16
13
|
- [🎯 Quick Start](#-quick-start)
|
|
17
14
|
- [First Steps](#first-steps)
|
|
18
15
|
- [Creating Your First Agent](#creating-your-first-agent)
|
|
@@ -26,12 +23,6 @@ The official command-line tool for creating, testing, and deploying agents on th
|
|
|
26
23
|
- [Simulation Mode Flags](#simulation-mode-flags)
|
|
27
24
|
- [Authentication Commands](#authentication-commands)
|
|
28
25
|
- [Wallet Commands](#wallet-commands)
|
|
29
|
-
- [🔧 Configuration](#-configuration)
|
|
30
|
-
- [Project Configuration](#project-configuration)
|
|
31
|
-
- [🏗️ Agent Development](#️-agent-development)
|
|
32
|
-
- [Supported Project Types](#supported-project-types)
|
|
33
|
-
- [TypeScript Agents](#typescript-agents)
|
|
34
|
-
- [Python Agents](#python-agents)
|
|
35
26
|
- [Getting Started with Agents](#getting-started-with-agents)
|
|
36
27
|
- [🔧 Troubleshooting](#-troubleshooting)
|
|
37
28
|
- [Common Issues](#common-issues)
|
|
@@ -39,8 +30,6 @@ The official command-line tool for creating, testing, and deploying agents on th
|
|
|
39
30
|
- ["Server failed to start within timeout"](#server-failed-to-start-within-timeout)
|
|
40
31
|
- ["Authentication Required"](#authentication-required)
|
|
41
32
|
- [Need Help?](#need-help)
|
|
42
|
-
- [📄 License](#-license)
|
|
43
|
-
- [📞 Support](#-support)
|
|
44
33
|
- [🔗 Related](#-related)
|
|
45
34
|
|
|
46
35
|
## 🚀 Features
|
|
@@ -56,142 +45,24 @@ The official command-line tool for creating, testing, and deploying agents on th
|
|
|
56
45
|
|
|
57
46
|
### Installation Methods Explained
|
|
58
47
|
|
|
59
|
-
**
|
|
48
|
+
**How to install Circuit CLI:**
|
|
60
49
|
|
|
61
|
-
1. **
|
|
62
|
-
|
|
63
|
-
- File size: ~57MB (includes everything needed)
|
|
64
|
-
- Best for: Python developers, CI/CD, users without Bun installed
|
|
65
|
-
- Works anywhere, no runtime dependencies
|
|
50
|
+
1. **Bun package manager** - Requires Bun runtime
|
|
51
|
+
2. **NPM package manager** - Coming soon
|
|
66
52
|
|
|
67
|
-
2. **npm/Bun Package** - Requires Bun runtime
|
|
68
|
-
- What you get: Minified JavaScript bundle that runs with your local Bun
|
|
69
|
-
- File size: ~640KB (minified bundle)
|
|
70
|
-
- Best for: JavaScript/TypeScript developers who already have Bun
|
|
71
|
-
- Requires: Bun v1.0.0 or higher installed on your system
|
|
72
53
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Since this repository is currently private, you'll need to download the executables directly from the GitHub releases page.
|
|
76
|
-
|
|
77
|
-
#### Option 1: Direct Download (All Platforms)
|
|
78
|
-
|
|
79
|
-
1. Go to the [releases page](https://github.com/circuitorg/agents-cli/releases/latest)
|
|
80
|
-
2. Download the appropriate file for your platform:
|
|
81
|
-
- **macOS Intel**: `circuit-darwin-x64-vX.X.X.tar.gz`
|
|
82
|
-
- **macOS Apple Silicon**: `circuit-darwin-arm64-vX.X.X.tar.gz`
|
|
83
|
-
- **Linux x64**: `circuit-linux-x64-vX.X.X.tar.gz`
|
|
84
|
-
- **Linux ARM64**: `circuit-linux-arm64-vX.X.X.tar.gz`
|
|
85
|
-
- **Windows**: `circuit-windows-x64-vX.X.X.zip`
|
|
86
|
-
|
|
87
|
-
3. Extract and install:
|
|
88
|
-
```bash
|
|
89
|
-
# macOS/Linux - One Liner after download
|
|
90
|
-
cd ~/Downloads && tar -xzf circuit-darwin-arm64-v0.1.29.tar.gz && \
|
|
91
|
-
sudo mv circuit-darwin-arm64 /usr/local/bin/circuit && \
|
|
92
|
-
sudo xattr -rd com.apple.quarantine /usr/local/bin/circuit
|
|
93
|
-
|
|
94
|
-
# Verify installation
|
|
95
|
-
circuit --version
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
#### Option 2: Install via npm/Bun (Requires node/Bun Runtime)
|
|
54
|
+
#### Option 1: Install via Bun (Requires Bun runtime)
|
|
99
55
|
|
|
100
56
|
**⚠️ Prerequisites**:
|
|
101
57
|
- You must have Bun or node installed - bun install link: (`curl -fsSL https://bun.sh/install | bash`)
|
|
102
|
-
- For global install, you must have a properly configured ~/.npmrc file
|
|
103
|
-
```bash
|
|
104
|
-
# Sample .npmrc file
|
|
105
|
-
# Create a GitHub Personal Access Token with `read:packages` scope
|
|
106
|
-
# https://github.com/settings/tokens/new
|
|
107
|
-
@circuitorg:registry=https://npm.pkg.github.com
|
|
108
|
-
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
|
|
109
|
-
```
|
|
110
58
|
|
|
111
59
|
```bash
|
|
112
|
-
# Install the CLI (this installs TypeScript source, not a binary)
|
|
113
|
-
npm install -g @circuitorg/agent-cli
|
|
114
|
-
# or with Bun
|
|
115
60
|
bun install -g @circuitorg/agent-cli
|
|
116
61
|
```
|
|
117
62
|
|
|
118
63
|
**Note**: This method installs a minified JavaScript bundle, not a compiled binary. The `circuit` command will run using your local Bun runtime.
|
|
119
64
|
|
|
120
65
|
|
|
121
|
-
<!-- Remove this comment block when the repository becomes public -->
|
|
122
|
-
<!--
|
|
123
|
-
### For Public Repository (Future)
|
|
124
|
-
### Option 1: Quick Install (Recommended)
|
|
125
|
-
|
|
126
|
-
Download and install the standalone executable - no dependencies required:
|
|
127
|
-
|
|
128
|
-
#### macOS/Linux (One-liner)
|
|
129
|
-
```bash
|
|
130
|
-
# Automatic detection of platform and architecture
|
|
131
|
-
curl -fsSL https://raw.githubusercontent.com/circuitorg/agents-cli/main/install.sh | bash
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
#### macOS/Linux (Manual one-liner for specific platforms)
|
|
135
|
-
```bash
|
|
136
|
-
# macOS Apple Silicon
|
|
137
|
-
curl -L https://github.com/circuitorg/agents-cli/releases/latest/download/circuit-darwin-arm64.tar.gz | tar -xz && sudo install -m 755 circuit-darwin-arm64 /usr/local/bin/circuit
|
|
138
|
-
|
|
139
|
-
# macOS Intel
|
|
140
|
-
curl -L https://github.com/circuitorg/agents-cli/releases/latest/download/circuit-darwin-x64.tar.gz | tar -xz && sudo install -m 755 circuit-darwin-x64 /usr/local/bin/circuit
|
|
141
|
-
|
|
142
|
-
# Linux x64
|
|
143
|
-
curl -L https://github.com/circuitorg/agents-cli/releases/latest/download/circuit-linux-x64.tar.gz | tar -xz && sudo install -m 755 circuit-linux-x64 /usr/local/bin/circuit
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
#### Windows
|
|
147
|
-
```powershell
|
|
148
|
-
# Quick install (PowerShell)
|
|
149
|
-
Invoke-WebRequest -Uri "https://github.com/circuitorg/agents-cli/releases/latest/download/circuit-windows-x64.exe.zip" -OutFile "circuit.zip"
|
|
150
|
-
Expand-Archive "circuit.zip" -Force
|
|
151
|
-
Remove-Item "circuit.zip"
|
|
152
|
-
# Add to PATH or move circuit.exe to a PATH directory
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
### Option 2: Install with package managers
|
|
156
|
-
|
|
157
|
-
```bash
|
|
158
|
-
# With Homebrew (macOS/Linux)
|
|
159
|
-
brew install circuitorg/tap/circuit
|
|
160
|
-
|
|
161
|
-
# With npm
|
|
162
|
-
npm install -g @circuitorg/agent-cli
|
|
163
|
-
|
|
164
|
-
# With Bun
|
|
165
|
-
bun install -g @circuitorg/agent-cli
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
| Platform | Architecture | Download |
|
|
169
|
-
|----------|--------------|----------|
|
|
170
|
-
| macOS | Apple Silicon (M1/M2) | `circuit-darwin-arm64.tar.gz` |
|
|
171
|
-
| macOS | Intel | `circuit-darwin-x64.tar.gz` |
|
|
172
|
-
| Linux | x64 | `circuit-linux-x64.tar.gz` |
|
|
173
|
-
| Linux | ARM64 | `circuit-linux-arm64.tar.gz` |
|
|
174
|
-
| Windows | x64 | `circuit-windows-x64.exe.zip` |
|
|
175
|
-
|
|
176
|
-
After downloading:
|
|
177
|
-
```bash
|
|
178
|
-
# macOS/Linux
|
|
179
|
-
tar -xzf circuit-<platform>.tar.gz
|
|
180
|
-
sudo mv circuit-<platform> /usr/local/bin/circuit
|
|
181
|
-
chmod +x /usr/local/bin/circuit
|
|
182
|
-
|
|
183
|
-
# Windows
|
|
184
|
-
# Extract the zip and add to PATH
|
|
185
|
-
```
|
|
186
|
-
-->
|
|
187
|
-
|
|
188
|
-
### Installation Size Comparison
|
|
189
|
-
|
|
190
|
-
| Method | Download Size | Installed Size | Runtime Required |
|
|
191
|
-
|--------|---------------|----------------|------------------|
|
|
192
|
-
| Standalone Executable | ~20-25MB (compressed) | ~57MB | None (self-contained) |
|
|
193
|
-
| npm/Bun Package | ~640KB | ~640KB | Bun v1.0.0+ |
|
|
194
|
-
|
|
195
66
|
## 🎯 Quick Start
|
|
196
67
|
|
|
197
68
|
### First Steps
|
|
@@ -200,14 +71,11 @@ chmod +x /usr/local/bin/circuit
|
|
|
200
71
|
# Verify installation
|
|
201
72
|
circuit --version
|
|
202
73
|
|
|
203
|
-
#
|
|
204
|
-
circuit
|
|
74
|
+
# RECOMMENDED FIRST STEP: Get an overview of the tooling and quick start guide
|
|
75
|
+
circuit help
|
|
205
76
|
|
|
206
77
|
# Start with interactive mode (recommended for beginners)
|
|
207
78
|
circuit
|
|
208
|
-
|
|
209
|
-
# Get a welcome overview and quick start guide
|
|
210
|
-
circuit welcome
|
|
211
79
|
```
|
|
212
80
|
|
|
213
81
|
### Creating Your First Agent
|
|
@@ -231,6 +99,8 @@ cd my-agent
|
|
|
231
99
|
|
|
232
100
|
# Install your local dependencies (required to run the 'circuit agent simulate' commands)
|
|
233
101
|
bun install
|
|
102
|
+
# OR
|
|
103
|
+
uv sync
|
|
234
104
|
|
|
235
105
|
```
|
|
236
106
|
|
|
@@ -350,74 +220,12 @@ circuit agent simulate stop --custom --port 8080
|
|
|
350
220
|
|
|
351
221
|
|
|
352
222
|
|
|
353
|
-
## 🔧 Configuration
|
|
354
|
-
|
|
355
|
-
### Project Configuration
|
|
356
|
-
|
|
357
|
-
Create a `circuit.json` file in your agent project:
|
|
358
|
-
|
|
359
|
-
```json
|
|
360
|
-
{
|
|
361
|
-
"name": "my-agent",
|
|
362
|
-
"description": "My Circuit agent",
|
|
363
|
-
"environment": "development",
|
|
364
|
-
"projectType": "custom",
|
|
365
|
-
"runCommand": "bun index.ts",
|
|
366
|
-
"circuit": {
|
|
367
|
-
"name": "My Agent",
|
|
368
|
-
"slug": "my-agent",
|
|
369
|
-
"description": "A test agent",
|
|
370
|
-
"version": 1,
|
|
371
|
-
"defaultSleepIntervalMinutes": 15,
|
|
372
|
-
"imageUrl": "https://i.imgur.com/GCjt5Hs.png",
|
|
373
|
-
"allowedWalletTypes": ["ethereum"],
|
|
374
|
-
"filesToExclude": ["node_modules", ".git", "*.log"]
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
## 🏗️ Agent Development
|
|
380
|
-
|
|
381
|
-
### Supported Project Types
|
|
382
|
-
|
|
383
|
-
The CLI supports two project types:
|
|
384
|
-
|
|
385
|
-
#### TypeScript Agents
|
|
386
|
-
|
|
387
|
-
```bash
|
|
388
|
-
# Initialize TypeScript agent
|
|
389
|
-
circuit agent init
|
|
390
|
-
|
|
391
|
-
# Project structure:
|
|
392
|
-
my-agent/
|
|
393
|
-
├── index.ts # Main agent file
|
|
394
|
-
├── package.json # Dependencies with @circuitorg/agents-sdk@0.1.4
|
|
395
|
-
└── circuit.json # Agent configuration
|
|
396
|
-
```
|
|
397
|
-
|
|
398
|
-
**Available Templates:**
|
|
399
|
-
- **Bare**: Simple message sending template (recommended for beginners)
|
|
400
|
-
- **More to come!**
|
|
401
|
-
|
|
402
|
-
#### Python Agents
|
|
403
|
-
|
|
404
|
-
```bash
|
|
405
|
-
# Initialize Python agent
|
|
406
|
-
circuit agent init
|
|
407
|
-
|
|
408
|
-
# Project structure:
|
|
409
|
-
my-agent/
|
|
410
|
-
├── main.py # Main agent file
|
|
411
|
-
├── pyproject.toml # Dependencies
|
|
412
|
-
└── circuit.json # Agent configuration
|
|
413
|
-
```
|
|
414
|
-
|
|
415
223
|
### Getting Started with Agents
|
|
416
224
|
|
|
417
225
|
When you run `circuit agent init`, the CLI will:
|
|
418
226
|
|
|
419
227
|
1. Prompt you to choose TypeScript or Python
|
|
420
|
-
2. For TypeScript: Select from available templates (bare, self-send
|
|
228
|
+
2. For TypeScript: Select from available templates (bare, self-send)
|
|
421
229
|
3. Create a complete project structure with:
|
|
422
230
|
- Main agent file with example code
|
|
423
231
|
- Configuration file (`circuit.json`)
|
|
@@ -468,19 +276,8 @@ circuit agent --help
|
|
|
468
276
|
circuit --verbose
|
|
469
277
|
```
|
|
470
278
|
|
|
471
|
-
## 📄 License
|
|
472
|
-
|
|
473
|
-
MIT License - see [LICENSE](LICENSE) for details.
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
## 📞 Support
|
|
477
|
-
|
|
478
|
-
- **Documentation**: [GitHub Wiki](https://github.com/circuitorg/agents-cli/wiki)
|
|
479
|
-
- **Issues**: [GitHub Issues](https://github.com/circuitorg/agents-cli/issues)
|
|
480
|
-
- **Discussions**: [GitHub Discussions](https://github.com/circuitorg/agents-cli/discussions)
|
|
481
|
-
|
|
482
279
|
## 🔗 Related
|
|
483
280
|
|
|
484
|
-
- [Circuit
|
|
485
|
-
- [Circuit Agents SDK](https://
|
|
281
|
+
- [Circuit Agents SDK Typescript](https://www.npmjs.com/package/@circuitorg/agent-sdk)
|
|
282
|
+
- [Circuit Agents SDK Python](https://pypi.org/project/circuit-agent-sdk/)
|
|
486
283
|
- [Bun Runtime](https://bun.sh)
|
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
|