Skip to content

Commit d7011a5

Browse files
authored
fix(cli): comma lists, stale table types hint, and block version note (#10443)
* fix(cli): comma lists, stale table types hint, and block version note - Every id list flag reads repeated, space-, comma-separated and JSON-array values alike (`--row-ids a,b` deleted nothing); dependency specifiers and folder paths keep their commas. - An unknown option names the commands one group down that take it, by any spelling (`tables batch-delete --row-ids` points to `tables rows batch-delete`). - `blocks get table` notes on stderr that it reads as table_v2, the type to add. - `workflows source check` hints `source status` to refresh table types when a row write names a column the last get's types lack. * 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 79081df commit d7011a5

26 files changed

Lines changed: 527 additions & 120 deletions

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

Lines changed: 4 additions & 4 deletions
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

@@ -333,7 +333,7 @@ Also available as `sim files mv`.
333333

334334
| Option | Required | Description |
335335
| --- | --- | --- |
336-
| `--file-ids <value...>` | Yes | File identifiers to update. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
336+
| `--file-ids <value...>` | Yes | File identifiers to update. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
337337
| `--to <value>` | No | Destination folder path; omit for root. |
338338

339339
</CommandTable>
@@ -417,7 +417,7 @@ sim files share set <fileId> [options]
417417
| `--is-active <true\|false>` | Yes | Whether the share should resolve. Disabling preserves the token and the whole access configuration, so re-enabling restores the share as it was; enabling rewrites the credentials the resulting mode does not use. Accepted values: `true`, `false`. |
418418
| `--auth-type <value>` | No | How access to the share is gated. The stored mode is kept when omitted. Enabling `public` clears the stored password and empties `allowedEmails`; `password` empties `allowedEmails`; `email` and `sso` clear the stored password. Accepted values: `public`, `password`, `email`, `sso`. |
419419
| `--password <value>` | No | Password of 15 to 1024 characters for a password-gated share. Kept when omitted; enabling `password` with neither a supplied nor a stored password is a 400. Taken literally, except that a request from the Sim agent resolves a whole-value `{{ENV_VAR}}` reference to that variable before the rules apply. |
420-
| `--allowed-emails <value...>` | No | Allowed addresses or `@domain` patterns for email and SSO shares. Kept when omitted; enabling `email` or `sso` with an empty resulting list is a 400. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
420+
| `--allowed-emails <value...>` | No | Allowed addresses or `@domain` patterns for email and SSO shares. Kept when omitted; enabling `email` or `sso` with an empty resulting list is a 400. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
421421

422422
</CommandTable>
423423

@@ -653,7 +653,7 @@ sim files batch-delete [file-ids...] [options]
653653

654654
| Option | Required | Description |
655655
| --- | --- | --- |
656-
| `--file-ids <value...>` | No | Files to delete, each by identifier or by the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike. At most 100 entries may be paths. (space-separated, or @path / @- with one value per line; @@value for a literal leading @) (required, or pass the values as arguments). |
656+
| `--file-ids <value...>` | No | Files to delete, each by identifier or by the VFS path of a live file: `files/<folder>/<name>`. Pass the id when two files in a folder have names that display alike. At most 100 entries may be paths. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @) (required, or pass the values as arguments). |
657657
| `-y, --yes` | Yes | Confirm this operation. |
658658

659659
</CommandTable>

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ sim knowledge search [options]
187187

188188
| Option | Required | Description |
189189
| --- | --- | --- |
190-
| `--kb <value...>` | Yes | Knowledge base ID (repeatable) (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
190+
| `--kb <value...>` | Yes | Knowledge base ID (repeatable) (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
191191
| `--query <value>` | No | Text to search for. |
192192
| `--top-k <value>` | No | Maximum number of search results to return. Must be a whole number between 1 and 100. Defaults to 10. |
193193
| `--tag-filters <json\|@file>` | No | Tag filters as [&#123;"tagName":"...","operator":"...","value":"..."&#125;] (JSON, or @path / @- to read a file or stdin). |
@@ -464,7 +464,7 @@ sim knowledge documents batch-update <knowledgeBaseId> [options]
464464
| Option | Required | Description |
465465
| --- | --- | --- |
466466
| `--operation <value>` | Yes | Whether the selected documents become enabled or disabled for search. Accepted values: `enable`, `disable`. |
467-
| `--document <value...>` | No | Documents to update, by identifier. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
467+
| `--document <value...>` | No | Documents to update, by identifier. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
468468
| `--select-all` | No | Apply to every document in the knowledge base. |
469469
| `--enabled-filter <value>` | No | With `selectAll`, restrict the update to documents in this state. Accepted values: `all`, `enabled`, `disabled`. |
470470

@@ -527,7 +527,7 @@ sim knowledge from-workspace-files create <knowledgeBaseId> [options]
527527

528528
| Option | Required | Description |
529529
| --- | --- | --- |
530-
| `--file <value...>` | Yes | Workspace file ID or canonical files/&lt;folder&gt;/&lt;name&gt; path (repeatable) (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
530+
| `--file <value...>` | Yes | Workspace file ID or canonical files/&lt;folder&gt;/&lt;name&gt; path (repeatable) (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
531531

532532
</CommandTable>
533533

@@ -688,7 +688,7 @@ sim knowledge chunks batch-update <knowledgeBaseId> <documentId> [options]
688688
| Option | Required | Description |
689689
| --- | --- | --- |
690690
| `--operation <value>` | Yes | What to do with the selected chunks. Accepted values: `enable`, `disable`, `delete`. |
691-
| `--chunk <value...>` | Yes | Chunks to operate on, by identifier. An id naming no chunk in the document is reported in errors and does not fail the request. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
691+
| `--chunk <value...>` | Yes | Chunks to operate on, by identifier. An id naming no chunk in the document is reported in errors and does not fail the request. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
692692
| `-y, --yes` | Yes | Confirm this operation. |
693693

694694
</CommandTable>
@@ -1174,7 +1174,7 @@ sim knowledge connectors documents update <knowledgeBaseId> <connectorId> [optio
11741174
| Option | Required | Description |
11751175
| --- | --- | --- |
11761176
| `--operation <value>` | Yes | Whether to restore or exclude the selected documents. Accepted values: `restore`, `exclude`. |
1177-
| `--document <value...>` | Yes | Connector document identifiers to update. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
1177+
| `--document <value...>` | Yes | Connector document identifiers to update. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
11781178

11791179
</CommandTable>
11801180

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ sim logs list [options]
2323

2424
| Option | Required | Description |
2525
| --- | --- | --- |
26-
| `--workflow <value...>` | No | Comma-separated workflow identifiers to include. An empty entry is rejected. At most 200 entries. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
27-
| `--trigger <value...>` | No | Comma-separated, lowercase trigger types or webhook provider IDs. Matching is exact and case-sensitive; unknown values select no runs. An empty entry is rejected. The sentinel `all` disables this filter, even when listed with other values. At most 100 entries. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
26+
| `--workflow <value...>` | No | Comma-separated workflow identifiers to include. An empty entry is rejected. At most 200 entries. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
27+
| `--trigger <value...>` | No | Comma-separated, lowercase trigger types or webhook provider IDs. Matching is exact and case-sensitive; unknown values select no runs. An empty entry is rejected. The sentinel `all` disables this filter, even when listed with other values. At most 100 entries. (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
2828
| `--level <value>` | No | Severity level to include. Accepted values: `info`, `error`. |
2929
| `--start-date <value>` | No | Only include runs started at or after this UTC ISO 8601 timestamp, e.g. `2026-08-06T00:00:00Z`. A date without a time, or a timestamp carrying a UTC offset instead of `Z`, is rejected, as is year `0000`, which names no storable instant. |
3030
| `--end-date <value>` | No | Only include runs started at or before this UTC ISO 8601 timestamp, e.g. `2026-08-06T00:00:00Z`. A date without a time, or a timestamp carrying a UTC offset instead of `Z`, is rejected, as is year `0000`, which names no storable instant. |
@@ -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

@@ -95,9 +95,9 @@ sim logs stats [options]
9595

9696
| Option | Required | Description |
9797
| --- | --- | --- |
98-
| `--workflow <value...>` | No | Comma-separated workflow identifiers to include. At most 200 entries. An empty entry is rejected. (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, or @path / @- with one value per line; @@value for a literal leading @). |
100-
| `--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-separated, or @path / @- with one value per line; @@value for a literal leading @). |
98+
| `--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, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
100+
| `--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. |
103103
| `--no-include-handled-errors` | No | Send --include-handled-errors as false. |

‎apps/docs/content/docs/cli/permission-groups.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ sim permission-groups members batch-add [options]
229229
| --- | --- | --- |
230230
| `--organization <value>` | Yes | Organization identifier. |
231231
| `--group <value>` | Yes | Permission group identifier. |
232-
| `--user <value...>` | No | User IDs to add; cannot be combined with --all-members (space-separated, or @path / @- with one value per line; @@value for a literal leading @). |
232+
| `--user <value...>` | No | User IDs to add; cannot be combined with --all-members (space- or comma-separated, a JSON array, or @path / @- with one value per line; @@value for a literal leading @). |
233233
| `--all-members` | No | Add every current organization member; cannot be combined with --user. |
234234

235235
</CommandTable>

0 commit comments

Comments
 (0)