@diagonal-hq/cli 0.42.10 → 0.42.11

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ This package is the authoring SDK for file-based workspaces. A workspace reposit
9
9
  - The `diagonal make:migration <name>` command. It creates an ordinary workflow in `migrations/` with a timestamped filename. Every migration runs as system.
10
10
  - The `diagonal update` command. It updates the `@diagonal-hq` packages of the workspace and installs them.
11
11
  - The `diagonal assets upload` and `diagonal assets list` commands. They upload Application Assets, update `assets.ts`, and list immutable references.
12
- - The `diagonal workflows`, `diagonal run`, and `diagonal logs` commands. They list the deployed workflows, run a manual workflow by its file path, and print recent runs with the error of each failed run.
12
+ - The `diagonal workflows`, `diagonal run`, and `diagonal logs` commands. They list the deployed workflows, run a workflow by its file path, and print recent runs with the error of each failed run.
13
13
 
14
14
  ## Check a workspace
15
15
 
@@ -73,11 +73,11 @@ diagonal logs [path | execution id] [--status <status>] [--limit <1-100>] [--jso
73
73
  ```
74
74
 
75
75
  - `diagonal workflows` prints the path, the trigger type, and the title of each workflow of the active deployment. `--json` prints the API response, which also has each workflow id and version id.
76
- - `diagonal run workflows/seed-catalog.ts` runs the manual workflow at that path in the active deployment and waits for it. It prints the terminal status, the execution id, and the output. A workflow with `executionMode: 'async'` does not wait: it prints `execution.pending` and the execution id of the queued run. Use `diagonal logs <execution id>` to read its result. `--input` gives the workflow input as a JSON object. `--json` prints the API response.
76
+ - `diagonal run workflows/seed-catalog.ts` runs the workflow at that path in the active deployment and waits for it. It prints the terminal status, the execution id, and the output. A manual or request workflow with `executionMode: 'async'` does not wait: it prints `execution.pending` and the execution id of the queued run. Use `diagonal logs <execution id>` to read its result. `--input` gives the workflow input as a JSON object. A record event, record lifecycle, or record schedule workflow runs against the record whose id `--input` gives as `record`, for example `--input '{"record":"<record id>"}'`. `--json` prints the API response.
77
77
 
78
78
  - `diagonal logs` prints the recent runs of the deployed workflows, oldest first: the start time, the status and the response status, the path, the trigger, the duration, and the execution id. Under a failed run it prints the error type and message, and each field error. A path narrows the list to one workflow. `--status` takes `success`, `error` (a declared failure or an exception), `exception`, `started`, or `pending`. `--limit` sets the number of runs (default 20). `diagonal logs <execution id>` prints one run with its full error or its output. `--json` prints the API response.
79
79
 
80
- `diagonal run` exits with 0 when the run succeeds or is queued, with 1 when the request or the run fails, and with 2 for a usage error or a missing environment variable. A workflow that is not manual, or a path that the active deployment does not have, is a request failure.
80
+ `diagonal run` exits with 0 when the run succeeds or is queued, with 1 when the request or the run fails, and with 2 for a usage error or a missing environment variable. A record workflow without a `record` in its input, a migration, or a path that the active deployment does not have, is a request failure.
81
81
 
82
82
  ## What the checks do
83
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.42.10",
3
+ "version": "0.42.11",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {