@oxagen/cli 3.0.1-61 → 3.0.1-624
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 +48 -9
- package/oxagen.mjs +94104 -72090
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -138,8 +138,8 @@ command for its flags. The full command tree lives in
|
|
|
138
138
|
`apps/cli/src/program.ts` and is documented at
|
|
139
139
|
https://docs.oxagen.sh/docs/cli/commands.
|
|
140
140
|
|
|
141
|
-
Everything except `cost`, `logs`, `telemetry` and
|
|
142
|
-
platform API and needs `oxagen login` first. `oxagen agent enroll` with a one-time enrollment
|
|
141
|
+
Everything except `cost`, `logs`, `telemetry` and the code graph commands
|
|
142
|
+
under `graph` talks to the platform API and needs `oxagen login` first. `oxagen agent enroll` with a one-time enrollment
|
|
143
143
|
token needs no login either.
|
|
144
144
|
|
|
145
145
|
**Meter and bill**
|
|
@@ -157,13 +157,11 @@ oxagen router preview|policy # the verified-outcome market router
|
|
|
157
157
|
**Map the code:** the local code graph and CI upload
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
oxagen
|
|
161
|
-
oxagen
|
|
162
|
-
oxagen
|
|
163
|
-
oxagen
|
|
164
|
-
oxagen
|
|
165
|
-
oxagen codegraph stop [path] # stop watching and remove the MCP entries; --purge deletes the local tables
|
|
166
|
-
oxagen codegraph upload --coverage "lcov=coverage/lcov.info" # CI: send coverage, reports, profiles, dumps, plans, and specs
|
|
160
|
+
oxagen graph init [path] # give each agent the oxagen MCP entry, then build the repo's code graph here
|
|
161
|
+
oxagen graph status # each local graph with its pin, build state, and base commit
|
|
162
|
+
oxagen graph rebuild [path] # build again, even when the working tree has not changed
|
|
163
|
+
oxagen graph stop # stop the local code graph server; --purge deletes every local graph
|
|
164
|
+
oxagen graph upload --coverage "lcov=coverage/lcov.info" # CI: send coverage, reports, profiles, dumps, plans, and specs
|
|
167
165
|
```
|
|
168
166
|
|
|
169
167
|
`init` needs an enrolled machine. The local graph never leaves the machine.
|
|
@@ -173,6 +171,40 @@ needs no login. Its other flags are `--test-report`, `--runtime`,
|
|
|
173
171
|
and `--fail-on-unconnected`. Each file flag takes `source=pattern` lines and
|
|
174
172
|
can repeat. See https://docs.oxagen.sh/docs/cli/code-graph.
|
|
175
173
|
|
|
174
|
+
Use `oxagen graph` in scripts and CI jobs. The `oxagen codegraph` command has been removed.
|
|
175
|
+
|
|
176
|
+
## MCP tools
|
|
177
|
+
|
|
178
|
+
Use the MCP commands to list, inspect, and call the tools the server ships.
|
|
179
|
+
They use the token saved by `oxagen login`, or `OXAGEN_API_TOKEN` when set.
|
|
180
|
+
The server applies the token's workspace scope and permissions to each call.
|
|
181
|
+
|
|
182
|
+
```sh
|
|
183
|
+
oxagen mcp list
|
|
184
|
+
oxagen mcp describe send_work_item
|
|
185
|
+
oxagen mcp call list_work_items --input '{}'
|
|
186
|
+
oxagen mcp call send_work_item --input-file work-input.json
|
|
187
|
+
cat work-input.json | oxagen mcp call send_work_item --input-file -
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Each command prints JSON. `list` follows every page and includes the tool
|
|
191
|
+
schemas. `describe` prints the complete descriptor for one tool. `call`
|
|
192
|
+
prints the complete MCP result, including content and structured output.
|
|
193
|
+
A tool refusal or a connection or protocol error exits with a nonzero code.
|
|
194
|
+
The server validates arguments against the tool's schema.
|
|
195
|
+
|
|
196
|
+
Input defaults to `{}` and must be a JSON object. Use `--input-file` for
|
|
197
|
+
sensitive input so it stays out of shell history and the process list.
|
|
198
|
+
`--input` and `--input-file` cannot be combined.
|
|
199
|
+
|
|
200
|
+
The default endpoint is `https://mcp.oxagen.sh/mcp`. Use `--endpoint <url>`
|
|
201
|
+
only for a trusted MCP server: the CLI sends your token to that address.
|
|
202
|
+
The URL must use HTTPS without credentials, query parameters, or a fragment.
|
|
203
|
+
The CLI refuses redirects. `--timeout-ms <ms>` sets the deadline for the
|
|
204
|
+
connection and request, including all catalogue pages. The default is 60000
|
|
205
|
+
milliseconds and the maximum is 600000 milliseconds. A timed-out call may
|
|
206
|
+
have reached the server; inspect the affected record before retrying a write.
|
|
207
|
+
|
|
176
208
|
**Explain:** runs and audit
|
|
177
209
|
|
|
178
210
|
```bash
|
|
@@ -208,12 +240,19 @@ oxagen agent verify --harness codex # one headless turn, confirmed
|
|
|
208
240
|
oxagen agent run --name my-agent -- ./my-agent # one custom agent session under Oxagen
|
|
209
241
|
oxagen agent detect # which harnesses this machine has
|
|
210
242
|
oxagen agent reassign|unenroll|export|hosts # move, remove, export, list machines
|
|
243
|
+
oxagen agent export --session <id> --format recorder|trace|otlp
|
|
211
244
|
```
|
|
212
245
|
|
|
213
246
|
`oxagen hook`, `oxagen daemon`, `oxagen mcp-stdio`, `oxagen credential`,
|
|
214
247
|
`oxagen github`, and `oxagen arp` are hidden from help. The hooks, the user
|
|
215
248
|
service, and the connected apps that enrollment installs run them.
|
|
216
249
|
|
|
250
|
+
The recorder also ships as its own `recorder` executable, with the same
|
|
251
|
+
commands. It was named `tacho` until #7501, and `tacho` still runs it. Typed
|
|
252
|
+
by a person under the old name, a command prints one warning line on stderr
|
|
253
|
+
that names the `recorder` command. `agent export --format` still takes
|
|
254
|
+
`tacho` and reads it as `recorder`.
|
|
255
|
+
|
|
217
256
|
**Telemetry**
|
|
218
257
|
|
|
219
258
|
```bash
|