lettactl 0.1.1 → 0.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 +18 -45
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LettaCTL
|
|
2
2
|
|
|
3
|
-
[](https://github.com/nouamanecodes/lettactl/actions)
|
|
4
4
|
[](https://badge.fury.io/js/lettactl)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
@@ -21,59 +21,39 @@ A kubectl-style CLI for managing stateful Letta AI agent fleets with declarative
|
|
|
21
21
|
## Installation & Setup
|
|
22
22
|
|
|
23
23
|
### Prerequisites
|
|
24
|
-
- Node.js
|
|
25
|
-
- pnpm or npm
|
|
24
|
+
- Node.js 18+
|
|
26
25
|
- A running Letta server instance
|
|
27
26
|
|
|
28
|
-
### Install
|
|
27
|
+
### Install
|
|
29
28
|
|
|
30
29
|
```bash
|
|
31
|
-
#
|
|
32
|
-
|
|
33
|
-
cd lettactl
|
|
34
|
-
|
|
35
|
-
# Install dependencies
|
|
36
|
-
pnpm install
|
|
37
|
-
# or: npm install
|
|
38
|
-
|
|
39
|
-
# Build the CLI
|
|
40
|
-
pnpm build
|
|
41
|
-
# or: npm run build
|
|
30
|
+
# Install globally from npm
|
|
31
|
+
npm install -g lettactl
|
|
42
32
|
|
|
43
33
|
# Set up your environment
|
|
44
34
|
export LETTA_API_URL=http://localhost:8283 # For self-hosting
|
|
45
35
|
export LETTA_API_KEY=your_api_key # Only needed for Letta Cloud
|
|
46
36
|
```
|
|
47
37
|
|
|
48
|
-
###
|
|
38
|
+
### Usage
|
|
49
39
|
|
|
50
|
-
|
|
40
|
+
After installation, you can use lettactl directly:
|
|
51
41
|
|
|
52
42
|
```bash
|
|
53
|
-
#
|
|
54
|
-
|
|
55
|
-
npm start -- get agents
|
|
56
|
-
|
|
57
|
-
# Using the built binary directly:
|
|
58
|
-
node dist/index.js get agents
|
|
59
|
-
./dist/index.js get agents # if executable
|
|
60
|
-
|
|
61
|
-
# Development mode (with TypeScript):
|
|
62
|
-
pnpm dev get agents
|
|
63
|
-
npm run dev get agents
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
> **Note**: Once we finalize hosting and distribution details, we'll streamline the installation process. For now, these development commands work well for testing and evaluation.
|
|
43
|
+
# List all agents
|
|
44
|
+
lettactl get agents
|
|
67
45
|
|
|
68
|
-
|
|
46
|
+
# Deploy agents from configuration
|
|
47
|
+
lettactl apply -f agents.yml
|
|
69
48
|
|
|
70
|
-
|
|
49
|
+
# Send a message to an agent
|
|
50
|
+
lettactl send my-agent "Hello, how are you?" --stream
|
|
71
51
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
# or: npm test
|
|
52
|
+
# View agent details
|
|
53
|
+
lettactl describe agent my-agent
|
|
75
54
|
```
|
|
76
55
|
|
|
56
|
+
|
|
77
57
|
## Commands
|
|
78
58
|
|
|
79
59
|
### Deploy Configuration
|
|
@@ -214,16 +194,9 @@ lettactl delete-all agents --force # Delete ALL agents (da
|
|
|
214
194
|
lettactl delete-all agents --pattern "test.*" # Shows preview, asks for --force
|
|
215
195
|
```
|
|
216
196
|
|
|
217
|
-
###
|
|
218
|
-
|
|
219
|
-
The fastest way to get started is with our complete example:
|
|
220
|
-
|
|
221
|
-
```bash
|
|
222
|
-
cd example
|
|
223
|
-
lettactl apply -f agents.yml
|
|
224
|
-
```
|
|
197
|
+
### Quick Start Example
|
|
225
198
|
|
|
226
|
-
|
|
199
|
+
The fastest way to get started is to create your own `agents.yml` file (see below) and deploy it:
|
|
227
200
|
|
|
228
201
|
### Your First Agent
|
|
229
202
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lettactl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "kubectl-style CLI for managing Letta AI agent fleets",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"prepare": "npm run build",
|
|
15
15
|
"prepublishOnly": "npm test && npm run build",
|
|
16
16
|
"preversion": "npm test",
|
|
17
|
-
"version": "npm run build
|
|
17
|
+
"version": "npm run build",
|
|
18
18
|
"postversion": "git push && git push --tags"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
@@ -58,4 +58,4 @@
|
|
|
58
58
|
"ts-node": "^10.9.2",
|
|
59
59
|
"typescript": "^5.9.3"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|