@tryarcanist/cli 0.1.142 → 0.1.144
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 +42 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -536,9 +536,11 @@ function formatTime(value) {
|
|
|
536
536
|
// ../../shared/agent/agent-runtime-backend.ts
|
|
537
537
|
var CODEX_AGENT_RUNTIME_BACKEND = "codex";
|
|
538
538
|
var CLAUDE_CODE_AGENT_RUNTIME_BACKEND = "claude_code";
|
|
539
|
+
var OPENCODE_AGENT_RUNTIME_BACKEND = "opencode";
|
|
539
540
|
var AGENT_RUNTIME_BACKENDS = [
|
|
540
541
|
CODEX_AGENT_RUNTIME_BACKEND,
|
|
541
|
-
CLAUDE_CODE_AGENT_RUNTIME_BACKEND
|
|
542
|
+
CLAUDE_CODE_AGENT_RUNTIME_BACKEND,
|
|
543
|
+
OPENCODE_AGENT_RUNTIME_BACKEND
|
|
542
544
|
];
|
|
543
545
|
function isAgentRuntimeBackend(value) {
|
|
544
546
|
return AGENT_RUNTIME_BACKENDS.includes(value);
|
|
@@ -570,14 +572,23 @@ var AnthropicModel = {
|
|
|
570
572
|
Opus48: "claude-opus-4-8",
|
|
571
573
|
Sonnet46: "claude-sonnet-4-6"
|
|
572
574
|
};
|
|
573
|
-
var
|
|
575
|
+
var BasetenModel = {
|
|
576
|
+
GptOss120B: "gpt-oss-120b"
|
|
577
|
+
};
|
|
578
|
+
var MODEL_PROVIDERS_SET = /* @__PURE__ */ new Set([
|
|
579
|
+
"openai",
|
|
580
|
+
"anthropic",
|
|
581
|
+
"baseten"
|
|
582
|
+
]);
|
|
574
583
|
var SESSION_START_MODEL_IDS_BY_BACKEND = {
|
|
575
584
|
[CODEX_AGENT_RUNTIME_BACKEND]: [OpenAIModel.GPT55, OpenAIModel.GPT54, OpenAIModel.GPT54Nano],
|
|
576
|
-
[CLAUDE_CODE_AGENT_RUNTIME_BACKEND]: [AnthropicModel.Opus48, AnthropicModel.Sonnet46]
|
|
585
|
+
[CLAUDE_CODE_AGENT_RUNTIME_BACKEND]: [AnthropicModel.Opus48, AnthropicModel.Sonnet46],
|
|
586
|
+
[OPENCODE_AGENT_RUNTIME_BACKEND]: [BasetenModel.GptOss120B]
|
|
577
587
|
};
|
|
578
588
|
var DEFAULT_SESSION_START_MODEL_ID_BY_BACKEND = {
|
|
579
589
|
[CODEX_AGENT_RUNTIME_BACKEND]: OpenAIModel.GPT54,
|
|
580
|
-
[CLAUDE_CODE_AGENT_RUNTIME_BACKEND]: AnthropicModel.Opus48
|
|
590
|
+
[CLAUDE_CODE_AGENT_RUNTIME_BACKEND]: AnthropicModel.Opus48,
|
|
591
|
+
[OPENCODE_AGENT_RUNTIME_BACKEND]: BasetenModel.GptOss120B
|
|
581
592
|
};
|
|
582
593
|
var DEFAULT_SESSION_START_MODEL_ID = DEFAULT_SESSION_START_MODEL_ID_BY_BACKEND[CODEX_AGENT_RUNTIME_BACKEND];
|
|
583
594
|
var MODEL_REGISTRY = [
|
|
@@ -662,18 +673,31 @@ var MODEL_REGISTRY = [
|
|
|
662
673
|
provider: "anthropic",
|
|
663
674
|
backends: [CLAUDE_CODE_AGENT_RUNTIME_BACKEND],
|
|
664
675
|
contextWindow: 1e6
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
id: BasetenModel.GptOss120B,
|
|
679
|
+
name: "GPT-OSS 120B",
|
|
680
|
+
provider: "baseten",
|
|
681
|
+
backends: [OPENCODE_AGENT_RUNTIME_BACKEND],
|
|
682
|
+
contextWindow: 128e3,
|
|
683
|
+
visibility: "internal_probe",
|
|
684
|
+
// Verified 2026-06-26 against GET https://inference.baseten.co/v1/models:
|
|
685
|
+
// the served id is namespaced `openai/gpt-oss-120b`, not bare `gpt-oss-120b`.
|
|
686
|
+
providerModelId: "openai/gpt-oss-120b"
|
|
665
687
|
}
|
|
666
688
|
];
|
|
667
689
|
var MODEL_PROVIDER_NAMES = {
|
|
668
690
|
openai: "OpenAI",
|
|
669
|
-
anthropic: "Anthropic"
|
|
691
|
+
anthropic: "Anthropic",
|
|
692
|
+
baseten: "Baseten"
|
|
670
693
|
};
|
|
671
694
|
var VALID_MODEL_IDS = new Set(MODEL_REGISTRY.map((model) => model.id));
|
|
672
695
|
var VALID_SESSION_START_MODEL_IDS_BY_BACKEND = {
|
|
673
696
|
[CODEX_AGENT_RUNTIME_BACKEND]: new Set(SESSION_START_MODEL_IDS_BY_BACKEND[CODEX_AGENT_RUNTIME_BACKEND]),
|
|
674
697
|
[CLAUDE_CODE_AGENT_RUNTIME_BACKEND]: new Set(
|
|
675
698
|
SESSION_START_MODEL_IDS_BY_BACKEND[CLAUDE_CODE_AGENT_RUNTIME_BACKEND]
|
|
676
|
-
)
|
|
699
|
+
),
|
|
700
|
+
[OPENCODE_AGENT_RUNTIME_BACKEND]: new Set(SESSION_START_MODEL_IDS_BY_BACKEND[OPENCODE_AGENT_RUNTIME_BACKEND])
|
|
677
701
|
};
|
|
678
702
|
var MODEL_CONTEXT_WINDOWS = {
|
|
679
703
|
...Object.fromEntries(
|
|
@@ -736,7 +760,8 @@ var MODEL_TIER_BY_ID = {
|
|
|
736
760
|
[OpenAIModel.GPT54]: "mid",
|
|
737
761
|
[OpenAIModel.GPT54Nano]: "mid",
|
|
738
762
|
[AnthropicModel.Opus48]: "frontier",
|
|
739
|
-
[AnthropicModel.Sonnet46]: "mid"
|
|
763
|
+
[AnthropicModel.Sonnet46]: "mid",
|
|
764
|
+
[BasetenModel.GptOss120B]: "mid"
|
|
740
765
|
};
|
|
741
766
|
var CODEX_MODEL_ID_BY_TIER = {
|
|
742
767
|
// Single source of truth: the frontier codex model follows the codex default,
|
|
@@ -796,6 +821,11 @@ var SESSION_START_MODEL_ID_SET_ANY_BACKEND = new Set(
|
|
|
796
821
|
var SESSION_START_MODEL_PROVIDER_GROUPS = buildModelProviderGroups(
|
|
797
822
|
MODEL_REGISTRY.filter((model) => SESSION_START_MODEL_ID_SET_ANY_BACKEND.has(model.id))
|
|
798
823
|
);
|
|
824
|
+
var PUBLIC_SESSION_START_MODEL_PROVIDER_GROUPS = buildModelProviderGroups(
|
|
825
|
+
MODEL_REGISTRY.filter(
|
|
826
|
+
(model) => SESSION_START_MODEL_ID_SET_ANY_BACKEND.has(model.id) && model.visibility !== "internal_probe"
|
|
827
|
+
)
|
|
828
|
+
);
|
|
799
829
|
|
|
800
830
|
// ../../shared/utils/timing.ts
|
|
801
831
|
function sleep(ms) {
|
|
@@ -2597,7 +2627,10 @@ async function createCommand(repoUrl, promptArg, options, command) {
|
|
|
2597
2627
|
let agentRuntimeBackend = CODEX_AGENT_RUNTIME_BACKEND;
|
|
2598
2628
|
if (options.backend !== void 0) {
|
|
2599
2629
|
if (!isAgentRuntimeBackend(options.backend)) {
|
|
2600
|
-
throw new CliError(
|
|
2630
|
+
throw new CliError(
|
|
2631
|
+
"user",
|
|
2632
|
+
`Invalid --backend '${options.backend}'. Expected ${AGENT_RUNTIME_BACKENDS.join(", ")}.`
|
|
2633
|
+
);
|
|
2601
2634
|
}
|
|
2602
2635
|
agentRuntimeBackend = options.backend;
|
|
2603
2636
|
}
|
|
@@ -4373,7 +4406,7 @@ program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
|
4373
4406
|
applyColorEnvironment(getRuntimeOptions(actionCommand));
|
|
4374
4407
|
});
|
|
4375
4408
|
function addCreateOptions(cmd) {
|
|
4376
|
-
return cmd.argument("<repo-url>", "Repository URL").argument("[prompt]", "Prompt to send, or '-' to read stdin").option("--model <model>", "Model to use").option("--backend <backend>", "Agent runtime backend: codex (default) or
|
|
4409
|
+
return cmd.argument("<repo-url>", "Repository URL").argument("[prompt]", "Prompt to send, or '-' to read stdin").option("--model <model>", "Model to use").option("--backend <backend>", "Agent runtime backend: codex (default), claude_code, or opencode").option("--reasoning-effort <effort>", "Reasoning effort to use for models that support it").option("--base-branch <branch>", "Base branch to create the session against (defaults to the repo default branch)").option(
|
|
4377
4410
|
"--start-branch <branch>",
|
|
4378
4411
|
"Resume an existing branch with its history instead of forking a new one off base"
|
|
4379
4412
|
).option("--prompt-stdin", "Read prompt from stdin").option(
|