@onbox/cli 0.3.0 → 0.4.0
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 +33 -1
- package/dist/onbox.js +2177 -656
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,9 +108,41 @@ onbox api PATCH /v1/drafts/<id> -d '{"subject":"Re: lunch"}'
|
|
|
108
108
|
- `onbox api <GET|POST|PUT|PATCH|DELETE> <path>` calls any route: `-q key=value` for query parameters, `-d <json|@file|@->` for the body.
|
|
109
109
|
- Shell completion: `source <(onbox completion bash)`, or `onbox completion zsh|fish`.
|
|
110
110
|
|
|
111
|
+
### Agent run traces
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
onbox agent-runs trace get <agentRunId>
|
|
115
|
+
onbox agent-runs trace get <agentRunId> --turns 40-45 --include reasoning,content
|
|
116
|
+
onbox agent-runs trace get <agentRunId> --include tool-results
|
|
117
|
+
onbox agent-runs trace get <agentRunId> --summary --json
|
|
118
|
+
onbox agent-runs trace get <agentRunId> --full
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The default output is a text summary, including when piped.
|
|
122
|
+
It follows every cursor, requesting 1 MB per page, and joins split messages before rendering.
|
|
123
|
+
Each row shows the trace step, tool names, short arguments, recorded statuses and errors, and the reasoning size in UTF-8 bytes.
|
|
124
|
+
The result-size column appears when a displayed tool has a recorded size.
|
|
125
|
+
`--turns a-b` selects an inclusive range of 1-based positions in the stored trace.
|
|
126
|
+
Retry notices keep their original positions and are skipped in the summary.
|
|
127
|
+
|
|
128
|
+
- Plain `--json` still prints one unmodified API page.
|
|
129
|
+
Pass its `nextCursor` back as `--cursor` to continue manually.
|
|
130
|
+
An optional `--page-size-bytes` sets the API message budget for each request.
|
|
131
|
+
- `--summary --json` returns `agentRunId`, `conversationId`, `status`, `type`, `totalMessages`, an optional run `error` preview, and `turns`.
|
|
132
|
+
Each turn has `step`, `reasoningBytes`, and a `tools` array.
|
|
133
|
+
Turns may have an `error` preview or `superseded: true` when recorded.
|
|
134
|
+
Tools have a `name` and may have `arguments`, `status`, `error`, `refusal`, and `resultBytes`.
|
|
135
|
+
`--include reasoning,content` adds the selected fields to each turn when present.
|
|
136
|
+
Organisation admins can use `--include tool-results` to print up to 20 KB of stored JSON per result.
|
|
137
|
+
The output marks previews that were cut.
|
|
138
|
+
Add `--full` to read the complete stored results, up to 1 MiB per call.
|
|
139
|
+
`--json` with `--include` or `--turns` also selects the summary shape.
|
|
140
|
+
- `--full` prints JSON with the run metadata, the original `fields`, `nextCursor: null`, and `messages` as an array of reassembled trace values.
|
|
141
|
+
Pair it with `--turns` to select a range of messages.
|
|
142
|
+
|
|
111
143
|
## Output and safety
|
|
112
144
|
|
|
113
|
-
-
|
|
145
|
+
- API results are generally tables on a terminal.
|
|
114
146
|
Piped, or with `--json`, they are the API's JSON, unchanged apart from paging (`--all` merges the list and keeps the last page's `nextCursor` or `hasMore`).
|
|
115
147
|
- With `--json`, errors are `{"error":{"code","message","use?"}}` on stderr.
|
|
116
148
|
`use` names the route to call instead, when the API says so.
|