@tryarcanist/cli 0.1.344 → 0.1.346
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/dist/index.js +16 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7409,7 +7409,7 @@ function isTerminalPhase(phase, _sessionKind) {
|
|
|
7409
7409
|
// package.json
|
|
7410
7410
|
var package_default = {
|
|
7411
7411
|
name: "@tryarcanist/cli",
|
|
7412
|
-
version: "0.1.
|
|
7412
|
+
version: "0.1.346",
|
|
7413
7413
|
description: "Command-line interface for Arcanist: inspect sessions, prepare Zeus environments, and trigger reviews",
|
|
7414
7414
|
type: "module",
|
|
7415
7415
|
bin: {
|
|
@@ -23898,6 +23898,19 @@ async function reviewCommand(prUrl, options = {}, command) {
|
|
|
23898
23898
|
config2,
|
|
23899
23899
|
`/api/pr-reviews/status?prUrl=${encodeURIComponent(prUrl)}`
|
|
23900
23900
|
);
|
|
23901
|
+
if (status.status === "cancelled" || status.status === "admission_rejected") {
|
|
23902
|
+
assertSameAttempt(triggeredSessionId, status.sessionId, "PR review");
|
|
23903
|
+
if (status.status === "cancelled") {
|
|
23904
|
+
throw new CliError(
|
|
23905
|
+
"conflict",
|
|
23906
|
+
status.terminalReason ? `Zeus review was cancelled: ${status.terminalReason}` : "Zeus review was cancelled."
|
|
23907
|
+
);
|
|
23908
|
+
}
|
|
23909
|
+
throw new CliError(
|
|
23910
|
+
"user",
|
|
23911
|
+
status.terminalReason ? `Zeus review was rejected at admission: ${status.terminalReason}` : "Zeus review was rejected at admission."
|
|
23912
|
+
);
|
|
23913
|
+
}
|
|
23901
23914
|
if (status.status !== "completed") return null;
|
|
23902
23915
|
assertSameAttempt(triggeredSessionId, status.sessionId, "PR review");
|
|
23903
23916
|
return {
|
|
@@ -27492,7 +27505,7 @@ codex.command("use <state>").description("Turn using your saved Codex subscripti
|
|
|
27492
27505
|
codex.command("status").description("Show Codex subscription availability and whether auth is saved").action((options, command) => codexStatusCommand(options, command));
|
|
27493
27506
|
codex.command("logout").description("Deactivate the selector and remove the stored Codex subscription auth for your user").action((options, command) => codexLogoutCommand(options, command));
|
|
27494
27507
|
var sessions = program.command("sessions").description("Session commands");
|
|
27495
|
-
program.command("review <pr-url>").description("Run a Zeus review for a GitHub pull request").option("--focus <text>", "Ignored. Zeus always reviews the full pull request").option("--model <model>", "Pin the reviewer model (Arcanist members only); defaults to the Codex reviewer").option("--sandbox-runtime <runtime>", "Force the sandbox runtime (Arcanist members only): modal, e2b, or sailbox").option("--wait", "Wait
|
|
27508
|
+
program.command("review <pr-url>").description("Run a Zeus review for a GitHub pull request").option("--focus <text>", "Ignored. Zeus always reviews the full pull request").option("--model <model>", "Pin the reviewer model (Arcanist members only); defaults to the Codex reviewer").option("--sandbox-runtime <runtime>", "Force the sandbox runtime (Arcanist members only): modal, e2b, or sailbox").option("--wait", "Wait until the review is published, cancelled, or admission-rejected").option("--poll-interval <ms>", "Polling interval in milliseconds while waiting (default 10000)").addHelpText(
|
|
27496
27509
|
"after",
|
|
27497
27510
|
`
|
|
27498
27511
|
Examples:
|
|
@@ -27500,6 +27513,7 @@ Examples:
|
|
|
27500
27513
|
arcanist review https://github.com/org/repo/pull/123 --model gpt-5.5 --wait
|
|
27501
27514
|
arcanist review https://github.com/org/repo/pull/123 --sandbox-runtime sailbox --wait
|
|
27502
27515
|
|
|
27516
|
+
--wait returns when the review is published, cancelled, or admission-rejected. The 30-minute timeout applies only while status is in_flight.
|
|
27503
27517
|
Zeus reviews with a pinned Codex reviewer model. --model pins a different reviewer model
|
|
27504
27518
|
instead (members only).
|
|
27505
27519
|
Zeus review is currently available to Arcanist members only.
|