primcli 3.0.0-preview.19 → 3.0.0-preview.20

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
@@ -141,7 +141,7 @@ primitive emails latest --limit 5
141
141
  primitive inbox next
142
142
  ```
143
143
 
144
- Run `primitive --help` for the full command list. Per-command help (`primitive functions deploy --help`, or `-h`) is one screen: a summary, usage, one line per flag, and two examples. `primitive functions deploy --help-full` prints the complete text, with every flag's full description, behavior notes, and all examples, so an agent can compose any operation without leaving the terminal.
144
+ Run `primitive --help` for the full command list. Per-command help (`primitive functions deploy --help`, or `-h`) is one screen: a summary, usage, required inputs, command options, common flags, and up to two examples. Common flags compact to names when needed to fit. Required request-body fields can be supplied as flags or JSON. `primitive functions deploy --help-full` prints the complete text, with every flag's full description, behavior notes, and all examples, so an agent can compose any operation without leaving the terminal.
145
145
 
146
146
  ## Verification codes and sign-in links
147
147
 
@@ -515,6 +515,20 @@ and stderr stays empty. Output merged with `2>&1` therefore still parses:
515
515
  CLI raises itself carries a `code`: `usage_error` (exit 2) when it refused
516
516
  before sending anything, such as a bad flag or an unreadable file, and
517
517
  `cli_error` otherwise.
518
+ - Generated commands check missing required request-body fields after merging
519
+ flags and JSON, before authentication or HTTP requests. Their `usage_error` includes
520
+ `error.details.missing`: an array of `{ field, flag, json_path }`, such as
521
+ `{ "field": "email", "flag": "--email", "json_path": "$.email" }`.
522
+ `flag` is null when the field must be supplied in JSON.
523
+ - For UUID input fields explicitly marked `x-primitive-retry-id` in the API
524
+ contract, generated commands create a retry ID when omitted. Caller values
525
+ are preserved. The ID is reused during approval and printed before requests
526
+ in human output. With `--json`, `cli_retry_ids` lists generated values as
527
+ `{ field, flag, json_path, value, source: "generated" }` on success or failure.
528
+ Retry the same operation and inputs with that value explicitly supplied.
529
+ Unmarked fields, including resource IDs named `request_id`, have no default.
530
+ - Unknown commands exit 2 with `error.code` `command_not_found`. When nearby
531
+ commands exist, `error.details.suggestions` lists their full invocations.
518
532
  - Generated API commands (`primitive sent list`, `primitive emails list`, ...)
519
533
  print the API's response body with `--json`: `data`, and `meta` with
520
534
  `meta.cursor` for the next page where the route sends it, plus the CLI's own