@amaster.ai/runtime-cli 1.1.14-beta.0 → 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.
@@ -287,17 +287,24 @@ amaster bpm user-roles user_2 --app myapp
287
287
  ### Workflow
288
288
 
289
289
  ```bash
290
+ amaster workflow list [--app <app-code>] [--page <n>] [--limit <n>] [--mode <mode>]
291
+ amaster workflow get <id> [--app <app-code>]
290
292
  amaster workflow run <name> [--app <app-code>] [--input '<json-or-@file>'] [--request '<json-or-@file>'] [--response-mode <mode>] [--user <user>] [--files '<json-or-@file>'] [--trace-id <traceId>]
291
293
  ```
292
294
 
293
295
  Command semantics:
294
296
 
297
+ - `list`: discover workflow apps exposed by the current runtime app.
298
+ - `get <id>`: fetch one workflow DSL and derive its start-node input variables.
295
299
  - `run <name>`: call `workflow-client.run` and print the workflow run result.
296
300
 
297
301
  Important details:
298
302
 
299
- - `name` must be the workflow YAML filename without extension and without subpaths.
300
- - Workflow names are app-specific. The current SDK and CLI do not provide a `workflow list` command, so agents must obtain the workflow name from app docs, UI, or the operator.
303
+ - `list` defaults to `mode=workflow`, because `workflow run` only applies to runnable workflow apps.
304
+ - `list` returns two different identifiers: use `id` with `amaster workflow get <id>`, and use `runnable_name` with `amaster workflow run <runnable_name>`.
305
+ - `get <id>` expects the workflow app ID from `workflow list`, not the runnable name.
306
+ - `get <id>` returns `name`, and that `name` is the runnable workflow name for `workflow run`.
307
+ - `name` in `workflow run` must be the runnable workflow name without subpaths.
301
308
  - `--input` must be a JSON object and maps to `WorkflowRunRequest.inputs`.
302
309
  - `--request` accepts the full `WorkflowRunRequest` object.
303
310
  - Explicit flags such as `--input`, `--response-mode`, `--user`, `--files`, and `--trace-id` override the same keys inside `--request`.
@@ -310,6 +317,8 @@ Important details:
310
317
  Minimal examples:
311
318
 
312
319
  ```bash
320
+ amaster workflow list --app myapp --format pretty
321
+ amaster workflow get bdcb98cf-613b-4ad7-bd41-d9a7f8aec199 --app rcz7v42lr --format pretty
313
322
  amaster workflow run data-processor --app myapp --input '{"documentId":"abc"}'
314
323
  amaster workflow run data-processor --app myapp --request '{"inputs":{"documentId":"abc"},"user":"user-1"}'
315
324
  amaster workflow run text-sentiment-analysis --app rcz7v42lr --input '{"input_text":"I love this product. It is fast and easy to use."}'
@@ -347,7 +356,6 @@ amaster s3 metadata uploads/report.pdf --app myapp
347
356
  ## Scope Limits
348
357
 
349
358
  - Only use commands documented in this skill. Do not invent additional subcommands from intuition, stale README text, or helper functions that are not wired into the public CLI.
350
- - Workflow discovery is not available in the current CLI or SDK surface. There is no `amaster workflow list`, so workflow names must come from app docs, UI, or the operator.
351
359
  - Local app config is stored in `~/.amaster/config.json`.
352
360
 
353
361
  ## Runtime State And File Locations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/runtime-cli",
3
- "version": "1.1.14-beta.0",
3
+ "version": "1.1.14-beta.1",
4
4
  "description": "CLI for Amaster SDK - Multi-app support for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -39,7 +39,7 @@
39
39
  "ora": "^8.0.1",
40
40
  "yaml": "^2.3.4",
41
41
  "inquirer": "^9.2.12",
42
- "@amaster.ai/client": "1.1.14-beta.0"
42
+ "@amaster.ai/client": "1.1.14-beta.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/inquirer": "^9.0.7",