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 +15 -1
- package/dist/{api-command--2ZkNMvH.js → api-command-DXiAX_N2.js} +2147 -328
- package/dist/help-inputs-NGARVZL_.js +109 -0
- package/dist/{json-output-saHY68hr.js → json-output-xgN0ZLWP.js} +11 -1
- package/dist/{machine-session-ADcw9uJm.js → machine-session-Cvo9BqYB.js} +4 -4
- package/dist/{notify-session-06flGBgK.js → notify-session-C8USviF_.js} +2 -2
- package/dist/oclif/auto-signal-worker.js +3 -3
- package/dist/oclif/auto-signals.js +1 -1
- package/dist/oclif/command-not-found.js +69 -21
- package/dist/oclif/help.js +65 -11
- package/dist/oclif/index.js +1421 -613
- package/dist/oclif/proxy-auto-detect.js +1 -1
- package/dist/oclif/receiver-heal.js +2 -2
- package/dist/{repeats-Dj_o6c-X-DTtFzwNd.js → repeats-Dj_o6c-X-CliyH3ge.js} +64 -4
- package/dist/retry-ids-04ZPJCZY.js +59 -0
- package/dist/{scoped-chat-C7l2BSZr.js → scoped-chat-CUy0Ta_y.js} +1 -1
- package/dist/{signal-command-D6oaza1W.js → signal-command-DHwFky03.js} +4 -4
- package/package.json +1 -1
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,
|
|
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
|