@lobu/cli 3.0.0 → 3.0.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/README.md CHANGED
@@ -1,25 +1,24 @@
1
- # create-lobu
1
+ # @lobu/cli
2
2
 
3
- CLI tool for initializing Lobu projects with Docker Compose.
3
+ CLI tool for initializing and managing Lobu projects.
4
4
 
5
5
  ## Installation
6
6
 
7
- ### Standalone
7
+ ### npx (Recommended)
8
8
 
9
9
  ```bash
10
- npm install -g create-lobu
11
-
12
- mkdir my-lobu
13
- cd my-lobu
14
- npm create lobu my-lobu
10
+ npx @lobu/cli init my-bot
11
+ cd my-bot
15
12
  docker compose up -d
16
13
  ```
17
14
 
18
- ### npx/npm create (Recommended)
15
+ ### Global Install
19
16
 
20
17
  ```bash
21
- npm create lobu my-lobu
22
- cd my-lobu
18
+ npm install -g @lobu/cli
19
+
20
+ lobu init my-bot
21
+ cd my-bot
23
22
  docker compose up -d
24
23
  ```
25
24
 
@@ -41,13 +40,13 @@ RUN apt-get install postgresql-client
41
40
  ```
42
41
 
43
42
  **Pros:**
44
- - Turnkey experience - just works
45
- - All dependencies pre-installed
46
- - Predictable environment
43
+ - Turnkey experience - just works
44
+ - All dependencies pre-installed
45
+ - Predictable environment
47
46
 
48
47
  **Cons:**
49
- - Stuck with our base OS choice
50
- - May not meet compliance requirements
48
+ - Stuck with our base OS choice
49
+ - May not meet compliance requirements
51
50
 
52
51
  ---
53
52
 
@@ -76,14 +75,14 @@ CMD ["lobu-worker"]
76
75
  ```
77
76
 
78
77
  **Pros:**
79
- - Full control over base OS
80
- - Use company-approved images
81
- - Smaller images (Alpine, Distroless)
82
- - Meet security/compliance requirements
78
+ - Full control over base OS
79
+ - Use company-approved images
80
+ - Smaller images (Alpine, Distroless)
81
+ - Meet security/compliance requirements
83
82
 
84
83
  **Cons:**
85
- - More setup required
86
- - Must install system dependencies yourself
84
+ - More setup required
85
+ - Must install system dependencies yourself
87
86
 
88
87
  See [Worker Package Documentation](../worker/docs/custom-base-image.md) for details.
89
88
 
@@ -91,7 +90,7 @@ See [Worker Package Documentation](../worker/docs/custom-base-image.md) for deta
91
90
 
92
91
  ## Commands
93
92
 
94
- ### `create-lobu`
93
+ ### `lobu init`
95
94
 
96
95
  Initialize a new Lobu project in the current directory.
97
96
 
@@ -111,7 +110,7 @@ Initialize a new Lobu project in the current directory.
111
110
 
112
111
  ## Usage
113
112
 
114
- After running `npm create lobu`:
113
+ After running `npx @lobu/cli init`:
115
114
 
116
115
  ```bash
117
116
  # Start services
@@ -172,9 +171,7 @@ CMD ["lobu-worker"]
172
171
 
173
172
  ```bash
174
173
  # 1. Create project
175
- mkdir my-bot
176
- cd my-bot
177
- npm create lobu
174
+ npx @lobu/cli init my-bot
178
175
 
179
176
  # 2. Choose worker mode during init
180
177
  # - Base image (recommended)
@@ -184,6 +181,7 @@ npm create lobu
184
181
  # Edit Dockerfile.worker
185
182
 
186
183
  # 4. Start services
184
+ cd my-bot
187
185
  docker compose up -d
188
186
 
189
187
  # 5. View logs
@@ -200,8 +198,8 @@ docker compose down
200
198
 
201
199
  The CLI version locks to base image versions:
202
200
 
203
- - CLI `0.1.0` `buremba/lobu-worker-base:0.1.0`
204
- - CLI `0.2.0` `buremba/lobu-worker-base:0.2.0`
201
+ - CLI `0.1.0` -> `buremba/lobu-worker-base:0.1.0`
202
+ - CLI `0.2.0` -> `buremba/lobu-worker-base:0.2.0`
205
203
 
206
204
  This ensures compatibility between CLI and runtime images.
207
205
 
@@ -233,7 +231,7 @@ docker pull buremba/lobu-worker-base:0.1.0
233
231
  **NPM Registry:**
234
232
  ```bash
235
233
  # CLI tool
236
- npm install -g create-lobu@0.1.0
234
+ npm install -g @lobu/cli
237
235
 
238
236
  # Worker runtime (for custom base images)
239
237
  npm install -g @lobu/worker@0.1.0
@@ -243,27 +241,25 @@ npm install -g @lobu/worker@0.1.0
243
241
 
244
242
  ```
245
243
  User creates project
246
-
247
- mkdir my-bot && cd my-bot
248
-
249
- npm create lobu
250
-
244
+ |
245
+ npx @lobu/cli init my-bot
246
+ |
251
247
  Choose: Base image or Package?
252
-
253
- ┌───────────────┴────────────────┐
254
- Base Image Mode Package Mode
255
- │ │
256
- FROM lobu-worker-base FROM your-company/base
257
- RUN pip install pandas RUN npm install -g @lobu/worker
258
- │ │ RUN pip install pandas
259
- └───────────────┬────────────────┘
260
-
248
+ |
249
+ +---------------+----------------+
250
+ | Base Image Mode | Package Mode
251
+ | |
252
+ | FROM lobu-worker-base | FROM your-company/base
253
+ | RUN pip install pandas | RUN npm install -g @lobu/worker
254
+ | | RUN pip install pandas
255
+ +---------------+----------------+
256
+ |
261
257
  CLI generates docker-compose.yml
262
-
258
+ |
263
259
  User runs: docker compose up -d
264
-
260
+ |
265
261
  Docker builds worker:latest
266
-
262
+ |
267
263
  Gateway spawns workers dynamically
268
264
  ```
269
265
 
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@lobu/cli",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "CLI for deploying and managing AI agents on Lobu",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
8
- "lobu": "bin/lobu.js",
9
- "create-lobu": "bin/create-lobu.js"
8
+ "lobu": "bin/lobu.js"
10
9
  },
11
10
  "scripts": {
12
11
  "build": "tsc && node scripts/build.cjs",
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { runCli } from "../dist/index.js";
4
-
5
- await runCli(process.argv);