@tryarcanist/cli 0.1.381 → 0.1.382
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 +42 -0
- package/dist/index.js +3437 -1089
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -186,6 +186,8 @@ JSON mode prints the raw `/api/auth/whoami` API response. Fields currently inclu
|
|
|
186
186
|
|
|
187
187
|
### `arcanist codex login`
|
|
188
188
|
|
|
189
|
+
Local development only; deployed workspaces return 403.
|
|
190
|
+
|
|
189
191
|
Authenticates a Codex/ChatGPT subscription and stores it for your Codex sessions, then activates it (turns on "use subscription auth for OpenAI sessions"). Runs the Codex CLI device-authorization login locally under a temporary `CODEX_HOME`, then uploads the resulting `auth.json` to Arcanist (encrypted, per user). The credential is never written to your default `~/.codex`. Requires a write-scoped token. If activation fails the credential is still saved; run `arcanist codex use on`.
|
|
190
192
|
|
|
191
193
|
```bash
|
|
@@ -197,6 +199,8 @@ arcanist codex login --codex-path /usr/local/bin/codex
|
|
|
197
199
|
|
|
198
200
|
### `arcanist codex use <on|off>`
|
|
199
201
|
|
|
202
|
+
`on` works in local development only; deployed workspaces return 403. `off` works everywhere.
|
|
203
|
+
|
|
200
204
|
Turns using your saved Codex subscription auth for OpenAI sessions on or off, without changing the stored credential. `arcanist codex login` turns it on automatically; use this to toggle it later.
|
|
201
205
|
|
|
202
206
|
```bash
|
|
@@ -206,6 +210,8 @@ arcanist codex use off
|
|
|
206
210
|
|
|
207
211
|
### `arcanist codex status`
|
|
208
212
|
|
|
213
|
+
Deployed workspaces report subscription auth as unavailable; it works in local development only.
|
|
214
|
+
|
|
209
215
|
Shows that Codex subscription auth is available and whether an `auth.json` is currently saved.
|
|
210
216
|
|
|
211
217
|
```bash
|
|
@@ -308,6 +314,42 @@ arcanist repos list --json
|
|
|
308
314
|
|
|
309
315
|
JSON mode returns `{repos, ssoOrgs}`.
|
|
310
316
|
|
|
317
|
+
### `arcanist review [pr-url]`
|
|
318
|
+
|
|
319
|
+
Review your local commits before you open a pull request. Run it inside a checkout of a repository that Arcanist is installed on. A write-scoped token and a paid Arcanist plan or a pilot are required.
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
arcanist review
|
|
323
|
+
arcanist review --base origin/release --json
|
|
324
|
+
arcanist review --include config/.env.test
|
|
325
|
+
arcanist review --request <id>
|
|
326
|
+
arcanist review --no-wait --json
|
|
327
|
+
arcanist review --request <id> --no-wait --json
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
What is uploaded: the committed changes on your branch that are not on the default branch of `origin`, plus their commit messages. Nothing is posted to GitHub.
|
|
331
|
+
|
|
332
|
+
What is left out:
|
|
333
|
+
|
|
334
|
+
- Uncommitted changes are not reviewed. Commit them first.
|
|
335
|
+
- Secret-looking files (dotenv files, keys, certificates) and git-ignored files are held back unless you name them with `--include`.
|
|
336
|
+
- Binary files are skipped.
|
|
337
|
+
|
|
338
|
+
The upload limit is 3 MB. Each delivered review counts toward your plan's review usage; a review that fails does not.
|
|
339
|
+
|
|
340
|
+
- `--base <ref>` compares against this ref instead of the default branch.
|
|
341
|
+
- `--include <path>` uploads a held-back file or folder. Repeat it for more.
|
|
342
|
+
- `--request <id>` gets the result of a review that is already running or finished. Use it when the command was interrupted; the request id is always printed to stderr when the review starts, also with `--json` and `--quiet`.
|
|
343
|
+
- `--no-wait` starts a review, or checks one with `--request <id>`, and returns at once. It exits `5` while the review is still running.
|
|
344
|
+
- `--poll-interval <ms>` sets how often the CLI checks for the result (default `10000`).
|
|
345
|
+
- `--wait` applies only to a PR URL; a local review waits by default, up to 30 minutes, and prints `Still reviewing (Nm)` with the `--request` command every minute (stderr, not with `--json` or `--quiet`).
|
|
346
|
+
|
|
347
|
+
Held-back files are committed, so they ship with your branch; the CLI lists them as `Committed but not uploaded for review (pass --include <path> to upload)`.
|
|
348
|
+
|
|
349
|
+
Output is the headline (`Arcanist review: Hold off on merging.` when a finding blocks merge, else `Arcanist review: Ready to merge.`), the summary, then each finding as `file:line - title` followed by its full text. A blocking finding's title ends with `(blocks merge)`; a non-blocking finding has no tag. Nitpicks come last, under `Nitpicks (N)`. JSON mode returns `{status, requestId, sessionId, verdict, summary, findings}`, where each finding is `{file, line, blocksMerge, title, body}`, plus `nit: true` on a nitpick.
|
|
350
|
+
|
|
351
|
+
Exit codes: `0` when no finding blocks merge, `1` when a finding blocks merge or the review could not start, `4` when another review of yours is still running, `5` when the review is still running (`--no-wait`), `10` when the review failed, `130` when interrupted (Ctrl-C or SIGTERM).
|
|
352
|
+
|
|
311
353
|
## Automation recipes
|
|
312
354
|
|
|
313
355
|
Chain commands with `--json` and `jq`:
|