@tryarcanist/cli 0.1.323 → 0.1.325
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 +48 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7370,7 +7370,7 @@ import { Command } from "commander";
|
|
|
7370
7370
|
// package.json
|
|
7371
7371
|
var package_default = {
|
|
7372
7372
|
name: "@tryarcanist/cli",
|
|
7373
|
-
version: "0.1.
|
|
7373
|
+
version: "0.1.325",
|
|
7374
7374
|
description: "CLI for Arcanist - create and manage coding agent sessions",
|
|
7375
7375
|
type: "module",
|
|
7376
7376
|
bin: {
|
|
@@ -23364,6 +23364,9 @@ var DeepSeekModel = {
|
|
|
23364
23364
|
V4Flash: "deepseek-v4-flash",
|
|
23365
23365
|
V4Pro: "deepseek-v4-pro"
|
|
23366
23366
|
};
|
|
23367
|
+
var GlmModel = {
|
|
23368
|
+
Flash53: "glm-5.3-flash"
|
|
23369
|
+
};
|
|
23367
23370
|
var MODEL_PROVIDERS_SET = /* @__PURE__ */ new Set(["openai", "anthropic"]);
|
|
23368
23371
|
var BACKEND_DESKTOP_IMAGE_FEEDBACK_CONFIGS = {
|
|
23369
23372
|
[CODEX_AGENT_RUNTIME_BACKEND]: {
|
|
@@ -23379,6 +23382,7 @@ var MODEL_REGISTRY = [
|
|
|
23379
23382
|
name: "GPT-5.4",
|
|
23380
23383
|
provider: "openai",
|
|
23381
23384
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23385
|
+
codexProviderRoute: "openai",
|
|
23382
23386
|
capabilities: { codexToolSearch: true },
|
|
23383
23387
|
contextWindow: 1e6,
|
|
23384
23388
|
// Default codex model after the gpt-5.5 downgrade; carries gpt-5.5's prior
|
|
@@ -23405,6 +23409,7 @@ var MODEL_REGISTRY = [
|
|
|
23405
23409
|
name: "GPT-5.6",
|
|
23406
23410
|
provider: "openai",
|
|
23407
23411
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23412
|
+
codexProviderRoute: "openai",
|
|
23408
23413
|
capabilities: { codexToolSearch: true },
|
|
23409
23414
|
contextWindow: 105e4,
|
|
23410
23415
|
// Verified 2026-07-09 against OpenAI's GPT-5.6 migration guide and model
|
|
@@ -23433,6 +23438,7 @@ var MODEL_REGISTRY = [
|
|
|
23433
23438
|
name: "GPT-5.6 Sol",
|
|
23434
23439
|
provider: "openai",
|
|
23435
23440
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23441
|
+
codexProviderRoute: "openai",
|
|
23436
23442
|
capabilities: { codexToolSearch: true },
|
|
23437
23443
|
contextWindow: 105e4,
|
|
23438
23444
|
reasoning: { efforts: ["none", "low", "medium", "high", "xhigh", "max"], default: "medium" },
|
|
@@ -23458,6 +23464,7 @@ var MODEL_REGISTRY = [
|
|
|
23458
23464
|
name: "GPT-5.6 Terra",
|
|
23459
23465
|
provider: "openai",
|
|
23460
23466
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23467
|
+
codexProviderRoute: "openai",
|
|
23461
23468
|
capabilities: { codexToolSearch: true },
|
|
23462
23469
|
contextWindow: 105e4,
|
|
23463
23470
|
reasoning: { efforts: ["none", "low", "medium", "high", "xhigh", "max"], default: "medium" },
|
|
@@ -23485,6 +23492,7 @@ var MODEL_REGISTRY = [
|
|
|
23485
23492
|
provider: "openai",
|
|
23486
23493
|
overloadFallback: OpenAIModel.GPT56Terra,
|
|
23487
23494
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23495
|
+
codexProviderRoute: "openai",
|
|
23488
23496
|
capabilities: { codexToolSearch: true },
|
|
23489
23497
|
contextWindow: 105e4,
|
|
23490
23498
|
reasoning: { efforts: ["none", "low", "medium", "high", "xhigh", "max"], default: "medium" },
|
|
@@ -23511,6 +23519,7 @@ var MODEL_REGISTRY = [
|
|
|
23511
23519
|
name: "GPT-5.5",
|
|
23512
23520
|
provider: "openai",
|
|
23513
23521
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23522
|
+
codexProviderRoute: "openai",
|
|
23514
23523
|
capabilities: { codexToolSearch: true },
|
|
23515
23524
|
contextWindow: 1e6,
|
|
23516
23525
|
reasoning: { efforts: ["none", "low", "medium", "high", "xhigh"], default: "medium" },
|
|
@@ -23532,6 +23541,7 @@ var MODEL_REGISTRY = [
|
|
|
23532
23541
|
name: "GPT-5.4 Mini",
|
|
23533
23542
|
provider: "openai",
|
|
23534
23543
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23544
|
+
codexProviderRoute: "openai",
|
|
23535
23545
|
capabilities: { codexToolSearch: true },
|
|
23536
23546
|
contextWindow: 4e5,
|
|
23537
23547
|
reasoning: { efforts: ["none", "low", "medium", "high", "xhigh"], default: void 0 },
|
|
@@ -23552,6 +23562,7 @@ var MODEL_REGISTRY = [
|
|
|
23552
23562
|
name: "GPT-5.4 Nano",
|
|
23553
23563
|
provider: "openai",
|
|
23554
23564
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23565
|
+
codexProviderRoute: "openai",
|
|
23555
23566
|
capabilities: { codexToolSearch: false },
|
|
23556
23567
|
contextWindow: 4e5,
|
|
23557
23568
|
reasoning: { efforts: ["none", "low", "medium", "high", "xhigh"], default: void 0 },
|
|
@@ -23563,6 +23574,7 @@ var MODEL_REGISTRY = [
|
|
|
23563
23574
|
name: "GPT-5.3 Codex Spark",
|
|
23564
23575
|
provider: "openai",
|
|
23565
23576
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23577
|
+
codexProviderRoute: "openai",
|
|
23566
23578
|
capabilities: { codexToolSearch: true },
|
|
23567
23579
|
contextWindow: 128e3,
|
|
23568
23580
|
reasoning: { efforts: ["low", "medium", "high", "xhigh"], default: "high" },
|
|
@@ -23576,6 +23588,7 @@ var MODEL_REGISTRY = [
|
|
|
23576
23588
|
name: "GPT-5.3 Codex",
|
|
23577
23589
|
provider: "openai",
|
|
23578
23590
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23591
|
+
codexProviderRoute: "openai",
|
|
23579
23592
|
capabilities: { codexToolSearch: true },
|
|
23580
23593
|
contextWindow: 4e5,
|
|
23581
23594
|
reasoning: { efforts: ["low", "medium", "high", "xhigh"], default: "high" },
|
|
@@ -23586,6 +23599,7 @@ var MODEL_REGISTRY = [
|
|
|
23586
23599
|
name: "GPT-5.2",
|
|
23587
23600
|
provider: "openai",
|
|
23588
23601
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23602
|
+
codexProviderRoute: "openai",
|
|
23589
23603
|
capabilities: { codexToolSearch: true },
|
|
23590
23604
|
contextWindow: 4e5,
|
|
23591
23605
|
reasoning: { efforts: ["none", "low", "medium", "high", "xhigh"], default: void 0 },
|
|
@@ -23596,6 +23610,7 @@ var MODEL_REGISTRY = [
|
|
|
23596
23610
|
name: "GPT-5.2 Chat",
|
|
23597
23611
|
provider: "openai",
|
|
23598
23612
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23613
|
+
codexProviderRoute: "openai",
|
|
23599
23614
|
capabilities: { codexToolSearch: true },
|
|
23600
23615
|
contextWindow: 128e3,
|
|
23601
23616
|
reasoning: { efforts: ["none", "low", "medium", "high", "xhigh"], default: void 0 },
|
|
@@ -23606,6 +23621,7 @@ var MODEL_REGISTRY = [
|
|
|
23606
23621
|
name: "GPT-5.2 Codex",
|
|
23607
23622
|
provider: "openai",
|
|
23608
23623
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23624
|
+
codexProviderRoute: "openai",
|
|
23609
23625
|
capabilities: { codexToolSearch: true },
|
|
23610
23626
|
contextWindow: 4e5,
|
|
23611
23627
|
reasoning: { efforts: ["low", "medium", "high", "xhigh"], default: "high" },
|
|
@@ -23624,6 +23640,7 @@ var MODEL_REGISTRY = [
|
|
|
23624
23640
|
// silently fails those closed instead of routing anywhere.
|
|
23625
23641
|
provider: "openai",
|
|
23626
23642
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23643
|
+
codexProviderRoute: "baseten",
|
|
23627
23644
|
// Required for codex session-start eligibility: the codex backend is the
|
|
23628
23645
|
// sole consumer of this flag and drops any model without it from the
|
|
23629
23646
|
// session-start set (see modelSupportsRequiredSessionStartCapabilities).
|
|
@@ -23656,6 +23673,7 @@ var MODEL_REGISTRY = [
|
|
|
23656
23673
|
// bridge's model guard.
|
|
23657
23674
|
provider: "openai",
|
|
23658
23675
|
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23676
|
+
codexProviderRoute: "baseten",
|
|
23659
23677
|
// Required for codex session-start eligibility (sole consumer of the flag).
|
|
23660
23678
|
capabilities: { codexToolSearch: true },
|
|
23661
23679
|
contextWindow: 262144,
|
|
@@ -23671,6 +23689,26 @@ var MODEL_REGISTRY = [
|
|
|
23671
23689
|
visibility: "internal_probe"
|
|
23672
23690
|
// Deliberately no overloadFallback — see DeepSeek V4 Flash: an A/B arm must
|
|
23673
23691
|
// retry the same model on a Baseten 429, never silently swap models.
|
|
23692
|
+
},
|
|
23693
|
+
{
|
|
23694
|
+
id: GlmModel.Flash53,
|
|
23695
|
+
name: "GLM-5.3 Flash",
|
|
23696
|
+
// Same contract as the DeepSeek V4 entries: "openai" is the wire protocol
|
|
23697
|
+
// (OpenAI Responses), not the vendor. GLM-5.3-Flash is served by Baseten.
|
|
23698
|
+
provider: "openai",
|
|
23699
|
+
backends: [CODEX_AGENT_RUNTIME_BACKEND],
|
|
23700
|
+
codexProviderRoute: "baseten",
|
|
23701
|
+
capabilities: { codexToolSearch: true },
|
|
23702
|
+
contextWindow: 1e6,
|
|
23703
|
+
// Only the effort the live streamed Baseten probe proved on 2026-08-27.
|
|
23704
|
+
reasoning: { efforts: ["medium"], default: "medium" },
|
|
23705
|
+
// Verified against https://www.baseten.co/pricing on 2026-08-27 (Model APIs
|
|
23706
|
+
// token pricing, row `zai-org/GLM-5.3-Flash`): $0.15/M input, $0.03/M cached
|
|
23707
|
+
// input, $0.50/M output. Cached-input rate is published, so it is carried
|
|
23708
|
+
// verbatim. No longContext and no flex (OpenAI-only axes).
|
|
23709
|
+
pricing: { inputPerMillion: 0.15, outputPerMillion: 0.5, cacheReadPerMillion: 0.03 },
|
|
23710
|
+
sessionStart: { eligible: true },
|
|
23711
|
+
visibility: "internal_probe"
|
|
23674
23712
|
}
|
|
23675
23713
|
];
|
|
23676
23714
|
var MODEL_PROVIDER_NAMES = {
|
|
@@ -23763,7 +23801,6 @@ function extractModelId(raw) {
|
|
|
23763
23801
|
function getProviderForModel(modelId) {
|
|
23764
23802
|
return MODEL_PROVIDERS[modelId] ?? "openai";
|
|
23765
23803
|
}
|
|
23766
|
-
var BASETEN_SERVED_MODEL_IDS = new Set(Object.values(DeepSeekModel));
|
|
23767
23804
|
function toModelSelection(raw) {
|
|
23768
23805
|
const modelID = extractModelId(raw);
|
|
23769
23806
|
if (!modelID) return void 0;
|
|
@@ -23879,12 +23916,16 @@ var PR_REVIEW_POLL_INTERVAL_MS = 1e4;
|
|
|
23879
23916
|
var PR_REVIEW_WAIT_TIMEOUT_MS = 30 * 60 * 1e3;
|
|
23880
23917
|
var SANDBOX_RUNTIME_BACKENDS = {
|
|
23881
23918
|
e2b: "e2b_cloud",
|
|
23882
|
-
modal: "modal_cloud"
|
|
23919
|
+
modal: "modal_cloud",
|
|
23920
|
+
sailbox: "sail_cloud"
|
|
23883
23921
|
};
|
|
23922
|
+
function isSandboxRuntimeOption(runtime) {
|
|
23923
|
+
return Object.hasOwn(SANDBOX_RUNTIME_BACKENDS, runtime);
|
|
23924
|
+
}
|
|
23884
23925
|
function resolveSandboxRuntimeBackend(runtime) {
|
|
23885
23926
|
if (runtime === void 0) return null;
|
|
23886
|
-
if (runtime
|
|
23887
|
-
throw new CliError("user", "Sandbox runtime must be modal or
|
|
23927
|
+
if (!isSandboxRuntimeOption(runtime)) {
|
|
23928
|
+
throw new CliError("user", "Sandbox runtime must be modal, e2b, or sailbox.");
|
|
23888
23929
|
}
|
|
23889
23930
|
return SANDBOX_RUNTIME_BACKENDS[runtime];
|
|
23890
23931
|
}
|
|
@@ -27514,13 +27555,13 @@ codex.command("use <state>").description("Turn using your saved Codex subscripti
|
|
|
27514
27555
|
codex.command("status").description("Show Codex subscription availability and whether auth is saved").action((options, command) => codexStatusCommand(options, command));
|
|
27515
27556
|
codex.command("logout").description("Deactivate the selector and remove the stored Codex subscription auth for your user").action((options, command) => codexLogoutCommand(options, command));
|
|
27516
27557
|
var sessions = program.command("sessions").description("Session commands");
|
|
27517
|
-
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 or
|
|
27558
|
+
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 for the review and print its verdict and findings").option("--poll-interval <ms>", "Polling interval in milliseconds while waiting (default 10000)").addHelpText(
|
|
27518
27559
|
"after",
|
|
27519
27560
|
`
|
|
27520
27561
|
Examples:
|
|
27521
27562
|
arcanist review https://github.com/org/repo/pull/123 --wait --json
|
|
27522
27563
|
arcanist review https://github.com/org/repo/pull/123 --model gpt-5.5 --wait
|
|
27523
|
-
arcanist review https://github.com/org/repo/pull/123 --sandbox-runtime
|
|
27564
|
+
arcanist review https://github.com/org/repo/pull/123 --sandbox-runtime sailbox --wait
|
|
27524
27565
|
|
|
27525
27566
|
Zeus reviews with a pinned Codex reviewer model. --model pins a different reviewer model
|
|
27526
27567
|
instead (members only).
|