Skip to content

Commit ac3e9ea

Browse files
committed
fix(cli): explicit list value policy and an unambiguous stale-table hint
- List flags declare how a value reads (`listValues`): ids split on commas, `text` (dependencies, output selectors, folder paths) keeps commas, and `fileReferences` keeps a `files/` path whole; every list decodes a JSON array. - `workflows runs get --select-output` reads its values with the same parser before resolving block names. - The stale-table hint names a table only when exactly one stored table is the printed row, reads single-quoted keys, and shell-quotes the directory.
1 parent a7b837e commit ac3e9ea

16 files changed

Lines changed: 254 additions & 75 deletions

File tree

‎apps/docs/content/docs/cli/files.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ sim files search [options]
8282
| `--query <value>` | Yes | Regular expression, or exact text when `mode` is `exact`. |
8383
| `--mode <value>` | No | How `query` is read. Defaults to "regex". Accepted values: `exact`, `regex`. |
8484
| `--max-results <value>` | No | Maximum matching lines to return. Defaults to 50. |
85-
| `--folder <value...>` | No | Folders to search, by path as shown in the app; omit to search the whole workspace (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
85+
| `--folder <value...>` | No | Folders to search, by path as shown in the app; omit to search the whole workspace (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
8686
| `--include-subfolders` | No | Whether each folder scope includes nested folders; on by default. |
8787
| `--no-include-subfolders` | No | Send --include-subfolders as false. |
8888

‎apps/docs/content/docs/cli/logs.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sim logs list [options]
4747
| `--run-id <value>` | No | Exact run identifier to match. |
4848
| `--sort-by <value>` | No | Field used to sort the result. `durationMs` and `cost` are null until a run settles; those runs sort before recorded values in ascending order and after them in descending order. Only `startedAt` can order Chat and Sim-agent job runs, so any other value is rejected when job runs are included. Defaults to "startedAt". Accepted values: `startedAt`, `durationMs`, `cost`, `status`. |
4949
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
50-
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
50+
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
5151

5252
</CommandTable>
5353

@@ -96,7 +96,7 @@ sim logs stats [options]
9696
| Option | Required | Description |
9797
| --- | --- | --- |
9898
| `--workflow <value...>` | No | Comma-separated workflow identifiers to include. At most 200 entries. An empty entry is rejected. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
99-
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
99+
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
100100
| `--trigger <value...>` | No | Comma-separated trigger types to include. An empty entry is rejected. The vocabulary is open, so an unrecognized member selects no runs; the literal `all` disables this filter. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
101101
| `--level <value>` | No | Severity level to include. Accepted values: `info`, `error`. |
102102
| `--include-handled-errors` | No | Whether runs with a handled block error are counted as `handledErrorRuns`, and whether `level=error` also selects them. Off by default: counting them scans each run’s stored trace. |

‎apps/docs/content/docs/cli/reference.mdx‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ sim files search [options]
17361736
| `--query <value>` | Yes | Regular expression, or exact text when `mode` is `exact`. |
17371737
| `--mode <value>` | No | How `query` is read. Defaults to "regex". Accepted values: `exact`, `regex`. |
17381738
| `--max-results <value>` | No | Maximum matching lines to return. Defaults to 50. |
1739-
| `--folder <value...>` | No | Folders to search, by path as shown in the app; omit to search the whole workspace (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
1739+
| `--folder <value...>` | No | Folders to search, by path as shown in the app; omit to search the whole workspace (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
17401740
| `--include-subfolders` | No | Whether each folder scope includes nested folders; on by default. |
17411741
| `--no-include-subfolders` | No | Send --include-subfolders as false. |
17421742

@@ -3356,7 +3356,7 @@ sim logs stats [options]
33563356
| Option | Required | Description |
33573357
| --- | --- | --- |
33583358
| `--workflow <value...>` | No | Comma-separated workflow identifiers to include. At most 200 entries. An empty entry is rejected. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
3359-
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
3359+
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
33603360
| `--trigger <value...>` | No | Comma-separated trigger types to include. An empty entry is rejected. The vocabulary is open, so an unrecognized member selects no runs; the literal `all` disables this filter. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
33613361
| `--level <value>` | No | Severity level to include. Accepted values: `info`, `error`. |
33623362
| `--include-handled-errors` | No | Whether runs with a handled block error are counted as `handledErrorRuns`, and whether `level=error` also selects them. Off by default: counting them scans each run’s stored trace. |
@@ -3408,7 +3408,7 @@ sim logs list [options]
34083408
| `--run-id <value>` | No | Exact run identifier to match. |
34093409
| `--sort-by <value>` | No | Field used to sort the result. `durationMs` and `cost` are null until a run settles; those runs sort before recorded values in ascending order and after them in descending order. Only `startedAt` can order Chat and Sim-agent job runs, so any other value is rejected when job runs are included. Defaults to "startedAt". Accepted values: `startedAt`, `durationMs`, `cost`, `status`. |
34103410
| `--sort-order <value>` | No | Sort direction. Defaults to "desc". Accepted values: `asc`, `desc`. |
3411-
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
3411+
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
34123412

34133413
</CommandTable>
34143414

@@ -5330,7 +5330,7 @@ sim sandboxes create [options]
53305330
| --- | --- | --- |
53315331
| `--name <value>` | Yes | Display name, unique within the workspace; 1 to 64 characters. |
53325332
| `--language <value>` | Yes | Dependency ecosystem: `javascript` installs from npm, `python` from PyPI. Accepted values: `javascript`, `python`. |
5333-
| `--dependencies <value...>` | No | Package specifiers installed into the sandbox, one per entry. Defaults to []. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
5333+
| `--dependencies <value...>` | No | Package specifiers installed into the sandbox, one per entry. Defaults to []. (space-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
53345334
| `--cli-tools <value...>` | No | Pinned managed CLI ids installed into the sandbox, at most 10, no duplicates. Defaults to []. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
53355335
| `--system-packages <value...>` | No | Debian packages installed into the sandbox, one per entry. Defaults to []. (space- or comma-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
53365336

@@ -5439,7 +5439,7 @@ sim sandboxes update <sandboxId> [options]
54395439
| --- | --- | --- |
54405440
| `--name <value>` | No | New display name, unique within the workspace; 1 to 64 characters. |
54415441
| `--language <value>` | No | Replacement dependency ecosystem. The whole spec is revalidated against it, so a Python dependency list does not survive a switch to JavaScript. Accepted values: `javascript`, `python`. |
5442-
| `--dependencies <value...>` | No | Replacement package list; replaces the whole list. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
5442+
| `--dependencies <value...>` | No | Replacement package list; replaces the whole list. (space-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
54435443
| `--cli-tools <value...>` | No | Replacement managed CLI list; replaces the whole list. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
54445444
| `--system-packages <value...>` | No | Replacement Debian package list; replaces the whole list. (space- or comma-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
54455445

@@ -6105,7 +6105,7 @@ sim tables batch-delete [options]
61056105
| Option | Required | Description |
61066106
| --- | --- | --- |
61076107
| `--table-ids <json\|@file>` | No | Tables to archive, by identifier. Defaults to []. (JSON, or @path / @- to read a file or stdin). |
6108-
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
6108+
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
61096109
| `-y, --yes` | Yes | Confirm this operation. |
61106110

61116111
</CommandTable>
@@ -7179,7 +7179,7 @@ sim tables move [options]
71797179
| Option | Required | Description |
71807180
| --- | --- | --- |
71817181
| `--table-ids <json\|@file>` | No | Tables to move, by identifier. Defaults to []. (JSON, or @path / @- to read a file or stdin). |
7182-
| `--folder <value...>` | No | Table folders to move, by path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
7182+
| `--folder <value...>` | No | Table folders to move, by path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
71837183
| `--to <value>` | No | Destination folder path; omit for root. |
71847184

71857185
</CommandTable>
@@ -7923,7 +7923,7 @@ sim workflows runs get <runId> [options]
79237923
| --- | --- | --- |
79247924
| `--workflow <workflowId>` | Yes | Workflow ID. |
79257925
| `--include-output` | No | Include the final output in JSON or YAML output. |
7926-
| `--select-output <value...>` | No | Include blockName.path or blockId.path values (e.g. agent_1.content) in JSON or YAML output; names resolve against the workflow’s current blocks, and missing paths are omitted (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
7926+
| `--select-output <value...>` | No | Include blockName.path or blockId.path values (e.g. agent_1.content) in JSON or YAML output; names resolve against the workflow’s current blocks, and missing paths are omitted (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
79277927
| `--include-file-base64` | No | Inline each produced file's bytes as base64. Requires `includeOutput`. A file above the inline ceiling answers `413` naming its download path; fetch large files from `downloadPath` instead. |
79287928
| `--no-include-file-base64` | No | Send --include-file-base64 as false. |
79297929
| `--base64-max-bytes <value>` | No | Per-file inline ceiling, lowering but never raising the server limit of 16 MiB. |
@@ -8510,7 +8510,7 @@ sim workflows run <workflowId> [options]
85108510
| `--input <json\|@file>` | No | Trigger input as JSON (JSON, or @path / @- to read a file or stdin). |
85118511
| `--async` | No | Queue the run and return immediately. Defaults to false. |
85128512
| `--execution-timeout-seconds <value>` | No | Maximum duration of the run in seconds, capped by the plan's execution timeout. Requires --async or --wait-timeout. |
8513-
| `--select-output <value...>` | No | Return blockName.path values (e.g. agent_1.content), or childWorkflowId.blockName.path for a child workflow (applies to every invocation) — in blockOutputs on a sync run, or from the streamed result with --follow; missing paths are omitted. Not available with --async (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
8513+
| `--select-output <value...>` | No | Return blockName.path values (e.g. agent_1.content), or childWorkflowId.blockName.path for a child workflow (applies to every invocation) — in blockOutputs on a sync run, or from the streamed result with --follow; missing paths are omitted. Not available with --async (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
85148514
| `--include-file-base64` | No | Inline eligible output files as base64 content. Defaults to true for the installed CLI; Chat defaults to file references and admits requested bytes only for synchronous runs. Rejected when async is true. |
85158515
| `--no-include-file-base64` | No | Send --include-file-base64 as false. |
85168516
| `--base64-max-bytes <value>` | No | Maximum total bytes of file content to inline as base64, lowering but never raising the server limit of 16 MiB. Rejected when `async` is true. |

‎apps/docs/content/docs/cli/sandboxes.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ sim sandboxes create [options]
6666
| --- | --- | --- |
6767
| `--name <value>` | Yes | Display name, unique within the workspace; 1 to 64 characters. |
6868
| `--language <value>` | Yes | Dependency ecosystem: `javascript` installs from npm, `python` from PyPI. Accepted values: `javascript`, `python`. |
69-
| `--dependencies <value...>` | No | Package specifiers installed into the sandbox, one per entry. Defaults to []. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
69+
| `--dependencies <value...>` | No | Package specifiers installed into the sandbox, one per entry. Defaults to []. (space-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
7070
| `--cli-tools <value...>` | No | Pinned managed CLI ids installed into the sandbox, at most 10, no duplicates. Defaults to []. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
7171
| `--system-packages <value...>` | No | Debian packages installed into the sandbox, one per entry. Defaults to []. (space- or comma-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
7272

@@ -100,7 +100,7 @@ sim sandboxes update <sandboxId> [options]
100100
| --- | --- | --- |
101101
| `--name <value>` | No | New display name, unique within the workspace; 1 to 64 characters. |
102102
| `--language <value>` | No | Replacement dependency ecosystem. The whole spec is revalidated against it, so a Python dependency list does not survive a switch to JavaScript. Accepted values: `javascript`, `python`. |
103-
| `--dependencies <value...>` | No | Replacement package list; replaces the whole list. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
103+
| `--dependencies <value...>` | No | Replacement package list; replaces the whole list. (space-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
104104
| `--cli-tools <value...>` | No | Replacement managed CLI list; replaces the whole list. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
105105
| `--system-packages <value...>` | No | Replacement Debian package list; replaces the whole list. (space- or comma-separated, a JSON array, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). |
106106

‎apps/docs/content/docs/cli/tables.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ sim tables move [options]
118118
| Option | Required | Description |
119119
| --- | --- | --- |
120120
| `--table-ids <json\|@file>` | No | Tables to move, by identifier. Defaults to []. (JSON, or @path / @- to read a file or stdin). |
121-
| `--folder <value...>` | No | Table folders to move, by path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
121+
| `--folder <value...>` | No | Table folders to move, by path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
122122
| `--to <value>` | No | Destination folder path; omit for root. |
123123

124124
</CommandTable>
@@ -189,7 +189,7 @@ sim tables batch-delete [options]
189189
| Option | Required | Description |
190190
| --- | --- | --- |
191191
| `--table-ids <json\|@file>` | No | Tables to archive, by identifier. Defaults to []. (JSON, or @path / @- to read a file or stdin). |
192-
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
192+
| `--folder <value...>` | No | Folder path as shown in the app; the leading / is optional (space-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
193193
| `-y, --yes` | Yes | Confirm this operation. |
194194

195195
</CommandTable>

0 commit comments

Comments
 (0)