@cascade-flow/cli 0.2.2 → 0.2.5

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,6 +1,6 @@
1
1
  # CLI
2
2
 
3
- Command-line interface for workflow execution.
3
+ Command-line interface for queue-based workflow execution.
4
4
 
5
5
  ## Installation
6
6
 
@@ -10,25 +10,26 @@ bun install
10
10
 
11
11
  ## Commands
12
12
 
13
- ### Direct Execution
13
+ ### Worker
14
14
 
15
15
  ```bash
16
- cf run <workflow> [--input '{}' | --input-file path] [--output-file path] [--run-id id]
17
- cf list # List workflows
16
+ cf worker start [--mode unified|executor|scheduler] [--concurrency n] [--workflows-dir path]
18
17
  ```
19
18
 
20
- ### Queue-Based Execution
19
+ ### Submit & Manage
21
20
 
22
21
  ```bash
23
- # Worker
24
- cf worker start [--mode unified|executor|scheduler] [--concurrency n] [--workflows-dir path]
25
-
26
- # Submit
27
22
  cf submit <workflow> [--input '{}' | --input-file path] [--priority n] [--timeout ms]
28
-
29
- # Manage
30
23
  cf status <runId>
31
24
  cf cancel <runId> [--reason text]
25
+ cf retry <runId> [--reason text]
26
+ ```
27
+
28
+ ### Workflows & Runs
29
+
30
+ ```bash
31
+ cf workflows list
32
+ cf runs list [--workflow slug] [--status pending|running|completed|failed] [--all]
32
33
  ```
33
34
 
34
35
  ## Worker Modes
@@ -49,13 +50,12 @@ cf cancel <runId> [--reason text]
49
50
  ## Examples
50
51
 
51
52
  ```bash
52
- # Direct execution
53
- cf run my-workflow --input '{"key": "value"}'
54
-
55
- # Queue-based execution
53
+ # Start worker
56
54
  cf worker start --concurrency 5 # Terminal 1
55
+
56
+ # Submit and manage workflows
57
57
  cf submit my-workflow --input '{}' --timeout 60000 # Terminal 2
58
- cf status <runId> # Terminal 2
58
+ cf status <runId>
59
59
 
60
60
  # Scaled deployment
61
61
  cf worker start --mode scheduler # Terminal 1
Binary file
Binary file
package/dist/cf-linux-x64 CHANGED
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cascade-flow/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "cf": "./bin/cf.js"
@@ -13,11 +13,11 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@cliffy/command": "npm:@jsr/cliffy__command@1.0.0-rc.8",
16
- "@cascade-flow/runner": "0.2.4",
17
- "@cascade-flow/backend-factory": "0.2.5",
18
- "@cascade-flow/backend-filesystem": "0.2.4",
19
- "@cascade-flow/worker": "0.2.4",
20
- "@cascade-flow/client": "0.2.4",
16
+ "@cascade-flow/runner": "0.2.5",
17
+ "@cascade-flow/backend-factory": "0.2.8",
18
+ "@cascade-flow/backend-filesystem": "0.2.5",
19
+ "@cascade-flow/worker": "0.2.5",
20
+ "@cascade-flow/client": "0.2.5",
21
21
  "@types/bun": "latest",
22
22
  "typescript": "^5"
23
23
  },