@walkeros/cli 1.4.0-next-1771334965900 → 2.0.0

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @walkeros/cli
2
2
 
3
- ## 1.4.0-next-1771334965900
3
+ ## 2.0.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -11,8 +11,8 @@
11
11
 
12
12
  - 1ae6972: Fix missing trailing newline in JSON output
13
13
  - Updated dependencies [7b2d750]
14
- - @walkeros/core@1.4.0-next-1771334965900
15
- - @walkeros/server-core@1.0.6-next-1771334965900
14
+ - @walkeros/core@1.4.0
15
+ - @walkeros/server-core@2.0.0
16
16
 
17
17
  ## 1.3.0
18
18
 
package/README.md CHANGED
@@ -257,6 +257,40 @@ walkeros run serve flow.json --port 8080 --static-dir ./dist
257
257
  3. Runs in current Node.js process
258
258
  4. Press Ctrl+C for graceful shutdown
259
259
 
260
+ ### deploy
261
+
262
+ Deploy flows to walkerOS cloud.
263
+
264
+ ```bash
265
+ walkeros deploy start <flowId> [options]
266
+ walkeros deploy status <flowId> [options]
267
+ ```
268
+
269
+ **Options:**
270
+
271
+ - `--project <id>` - Project ID (defaults to WALKEROS_PROJECT_ID)
272
+ - `--flow <name>` - Flow name for multi-config flows
273
+ - `--no-wait` - Do not wait for deployment to complete (start only)
274
+ - `--json` - Output as JSON
275
+ - `-v, --verbose` - Verbose output
276
+ - `-s, --silent` - Suppress output
277
+
278
+ **Examples:**
279
+
280
+ ```bash
281
+ # Deploy a single-config flow
282
+ walkeros deploy start cfg_abc123
283
+
284
+ # Deploy a specific config from a multi-config flow
285
+ walkeros deploy start cfg_abc123 --flow web
286
+
287
+ # Check deployment status
288
+ walkeros deploy status cfg_abc123 --flow server
289
+ ```
290
+
291
+ When a flow has multiple configs, the CLI requires `--flow <name>` to specify
292
+ which one to deploy. If omitted, the error message lists available names.
293
+
260
294
  ## Caching
261
295
 
262
296
  The CLI implements intelligent caching for faster builds:
@@ -542,41 +576,36 @@ CLI (downloads packages + bundles with esbuild)
542
576
 
543
577
  **Key principle**: CLI handles both build-time and runtime operations.
544
578
 
545
- ## Production Deployment
546
-
547
- Deploy your flows using Docker or Node.js.
548
-
549
- ### Using Docker
550
-
551
- The `walkeros/flow` image runs pre-built bundles in production:
552
-
553
- ```bash
554
- # Build your flow with Dockerfile
555
- walkeros bundle flow.json --dockerfile
556
-
557
- # Deploy (e.g., to Cloud Run)
558
- gcloud run deploy my-service --source ./dist
559
- ```
560
-
561
- Or run locally:
579
+ ## Runner (Docker)
562
580
 
563
- ```bash
564
- docker run -v ./dist:/flow -p 8080:8080 walkeros/flow
565
- ```
566
-
567
- **Custom Dockerfile:**
581
+ The `walkeros/flow` Docker image is a self-bundling runner for production
582
+ deployment. It supports four deployment modes — from fully local to fully
583
+ managed — all using the same image and config format.
568
584
 
569
585
  ```bash
570
- # Use a custom Dockerfile with extra packages or configuration
571
- walkeros bundle flow.json --dockerfile Dockerfile.custom
586
+ # Mode A: Local only no signup, no API
587
+ docker run -v ./flow.json:/app/flow.json -e BUNDLE=/app/flow.json walkeros/flow
588
+
589
+ # Mode B: Local config + dashboard visibility
590
+ docker run -v ./flow.json:/app/flow.json \
591
+ -e BUNDLE=/app/flow.json \
592
+ -e WALKEROS_TOKEN=sk-walkeros-xxx \
593
+ -e PROJECT_ID=proj_xxx \
594
+ walkeros/flow
595
+
596
+ # Mode C: Remote config with hot-swap
597
+ docker run \
598
+ -e WALKEROS_TOKEN=sk-walkeros-xxx \
599
+ -e PROJECT_ID=proj_xxx \
600
+ -e FLOW_ID=flow_xxx \
601
+ walkeros/flow
572
602
  ```
573
603
 
574
- **Environment variables:**
604
+ Each step adds one env var. Same runner, same config, same bundle pipeline.
575
605
 
576
- - `MODE` - `collect` or `serve` (default: `collect`)
577
- - `PORT` - Server port (default: `8080`)
578
- - `BUNDLE` - Bundle file path or URL (default: `/app/flow/bundle.mjs`). Also
579
- accepts stdin pipe: `cat flow.mjs | docker run -i walkeros/flow`
606
+ See the [Runner documentation](https://www.walkeros.io/docs/apps/runner/) for
607
+ the full reference (env vars, pipeline, caching, hot-swap, health checks,
608
+ troubleshooting).
580
609
 
581
610
  ### Using Node.js
582
611
 
@@ -605,6 +634,10 @@ See [src/types.ts](./src/types.ts) for TypeScript interfaces.
605
634
  ## Related
606
635
 
607
636
  - [Website Documentation](https://www.walkeros.io/docs/apps/cli/)
637
+ - [Runner Documentation](https://www.walkeros.io/docs/apps/runner/) -
638
+ Self-hosted runner with config polling and hot-swap
639
+ - [Docker Runtime](https://www.walkeros.io/docs/apps/docker/) - Pre-built bundle
640
+ deployment
608
641
  - [Flow Configuration](https://www.walkeros.io/docs/getting-started/flow/)
609
642
  - [Collector Package](../collector/) - For Integrated mode (direct imports)
610
643
  - [Operating Modes](https://www.walkeros.io/docs/getting-started/modes/) -