@amaster.ai/runtime-cli 1.1.13 → 1.1.14-beta.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
@@ -9,7 +9,7 @@ CLI for Amaster SDK - Multi-app support for OpenClaw. Manage multiple Amaster ap
9
9
  - **Structured Output**: `json`, `pretty`, `table`, `ndjson`, and `csv`
10
10
  - **Entity Management**: CRUD, options lookup, and bulk operations on entities
11
11
  - **BPM**: Manage Camunda processes, tasks, and instances
12
- - **Workflow**: Run workflows
12
+ - **Workflow**: Discover, inspect, and run workflows
13
13
  - **S3 Storage**: Upload files, download objects, and inspect metadata
14
14
  - **OpenClaw Integration**: Initialize app-specific skills and MCP servers
15
15
 
@@ -86,6 +86,10 @@ amaster logout --app myapp
86
86
  ### 4. Use SDK Features
87
87
 
88
88
  ```bash
89
+ # Discover runnable workflows and inspect required inputs
90
+ amaster workflow list --app myapp --format pretty
91
+ amaster workflow get <workflow-app-id> --app myapp --format pretty
92
+
89
93
  # Run an anonymous workflow when the app exposes it publicly
90
94
  amaster workflow run text-sentiment-analysis --app myapp \
91
95
  --input '{"input_text":"I love this product. It is fast and easy to use."}'
@@ -173,6 +177,15 @@ amaster entity bulk-delete default products --app myapp --ids 1,2,3
173
177
 
174
178
  # Bulk delete by JSON array
175
179
  amaster entity bulk-delete default products --app myapp --ids '[1,2,3]'
180
+
181
+ # Discover runtime datasources and models
182
+ amaster model datasources --app myapp
183
+
184
+ # Fetch CREATE TABLE statements for one datasource
185
+ amaster model table-schema source-123 --app myapp
186
+
187
+ # Limit schema output to selected tables
188
+ amaster model table-schema source-123 --app myapp --tables products,categories
176
189
  ```
177
190
 
178
191
  For `amaster entity list`, explicit options such as `--page`, `--page-size`, `--fields`, `--relations`, and `--order-by` override the same keys inside `--query`. If you omit `--page` and `--page-size`, the CLI does not inject pagination defaults and forwards only the parameters you provided.
@@ -271,6 +284,17 @@ amaster entity bulk-delete <namespace> <entity> [options]
271
284
  --ids <ids> # Comma-separated IDs, JSON array, or @file
272
285
  ```
273
286
 
287
+ ### Model Discovery
288
+
289
+ ```bash
290
+ amaster model datasources [options]
291
+ --app <app-code> # App code (uses default if not specified)
292
+
293
+ amaster model table-schema <source-id> [options]
294
+ --app <app-code> # App code (uses default if not specified)
295
+ --tables <tables> # Comma-separated table names, JSON array, or @file
296
+ ```
297
+
274
298
  #### Entity Parameter Examples
275
299
 
276
300
  ```bash
@@ -340,6 +364,15 @@ amaster entity bulk-update default products --app myapp \
340
364
 
341
365
  # bulk-delete --ids
342
366
  amaster entity bulk-delete default products --app myapp --ids 1,2,3
367
+
368
+ # model datasources
369
+ amaster model datasources --app bleulig7o
370
+
371
+ # model table-schema
372
+ amaster model table-schema source-ae0rbo4tg9a8 --app bleulig7o
373
+
374
+ # model table-schema --tables
375
+ amaster model table-schema source-ae0rbo4tg9a8 --app bleulig7o --tables products,categories
343
376
  ```
344
377
 
345
378
  ### BPM (Business Process Management)
@@ -610,6 +643,15 @@ amaster bpm modify-instance proc-123 --app myapp \
610
643
  ### Workflow
611
644
 
612
645
  ```bash
646
+ amaster workflow list [options] # List workflow apps and runnable names
647
+ --app <app-code> # App code (uses default if not specified)
648
+ --page <n> # Page number
649
+ --limit <n> # Page size
650
+ --mode <mode> # workflow | chat | completion | agent-chat
651
+
652
+ amaster workflow get <id> [options] # Get workflow details and input variables by workflow app ID
653
+ --app <app-code> # App code (uses default if not specified)
654
+
613
655
  amaster workflow run <name> [options] # Run a workflow
614
656
  --app <app-code> # App code (uses default if not specified)
615
657
  -i, --input <json> # Workflow inputs object as JSON or @file
@@ -620,6 +662,8 @@ amaster workflow run <name> [options] # Run a workflow
620
662
  --trace-id <traceId> # Workflow trace ID
621
663
  ```
622
664
 
665
+ Use `workflow list` to discover workflow app IDs and `runnable_name`. Use the `id` with `workflow get`, and use the `runnable_name` or the `name` returned by `workflow get` with `workflow run`.
666
+
623
667
  ### S3 Storage
624
668
 
625
669
  ```bash