@tryarcanist/cli 0.1.192 → 0.1.194
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 +15 -44
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -648,8 +648,6 @@ var AnthropicModel = {
|
|
|
648
648
|
Fable5: "claude-fable-5"
|
|
649
649
|
};
|
|
650
650
|
var BasetenModel = {
|
|
651
|
-
Glm47: "glm-4.7",
|
|
652
|
-
GptOss120B: "gpt-oss-120b",
|
|
653
651
|
KimiK27Code: "kimi-k2.7-code"
|
|
654
652
|
};
|
|
655
653
|
var MODEL_PROVIDERS_SET = /* @__PURE__ */ new Set([
|
|
@@ -880,34 +878,6 @@ var MODEL_REGISTRY = [
|
|
|
880
878
|
pricing: { inputPerMillion: 10, outputPerMillion: 50, cacheReadPerMillion: 1, cacheWritePerMillion: 12.5 },
|
|
881
879
|
sessionStart: { eligible: true }
|
|
882
880
|
},
|
|
883
|
-
{
|
|
884
|
-
id: BasetenModel.Glm47,
|
|
885
|
-
name: "GLM-4.7",
|
|
886
|
-
provider: "baseten",
|
|
887
|
-
backends: [OPENCODE_AGENT_RUNTIME_BACKEND],
|
|
888
|
-
contextWindow: 2e5,
|
|
889
|
-
// Verified 2026-06-30: GLM-4.6V is not served by Baseten, so opencode GA
|
|
890
|
-
// ships the served GLM-4.7 Model API instead. The served id is namespaced
|
|
891
|
-
// `zai-org/GLM-4.7`, not bare `glm-4.7`. GLM-4.7 is text-only (vision lives
|
|
892
|
-
// in the separate `-V` line), so opencode image input is plumbed but not
|
|
893
|
-
// exercised until a served `-V` model returns.
|
|
894
|
-
providerModelId: "zai-org/GLM-4.7",
|
|
895
|
-
pricing: { inputPerMillion: 0.6, outputPerMillion: 2.2, cacheReadPerMillion: 0.12 },
|
|
896
|
-
sessionStart: { eligible: true, isDefault: true }
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
id: BasetenModel.GptOss120B,
|
|
900
|
-
name: "GPT OSS 120B",
|
|
901
|
-
provider: "baseten",
|
|
902
|
-
backends: [OPENCODE_AGENT_RUNTIME_BACKEND],
|
|
903
|
-
contextWindow: 128e3,
|
|
904
|
-
// Verified 2026-07-04 against Baseten Model APIs docs and model library:
|
|
905
|
-
// wire id `openai/gpt-oss-120b`, 128k served context/output, OpenAI SDK
|
|
906
|
-
// compatible, Apache 2.0, tool calling supported for all Model APIs.
|
|
907
|
-
providerModelId: "openai/gpt-oss-120b",
|
|
908
|
-
pricing: { inputPerMillion: 0.1, outputPerMillion: 0.5 },
|
|
909
|
-
sessionStart: { eligible: true }
|
|
910
|
-
},
|
|
911
881
|
{
|
|
912
882
|
id: BasetenModel.KimiK27Code,
|
|
913
883
|
name: "Kimi K2.7 Code",
|
|
@@ -920,7 +890,7 @@ var MODEL_REGISTRY = [
|
|
|
920
890
|
// supported for all Model APIs.
|
|
921
891
|
providerModelId: "moonshotai/Kimi-K2.7-Code",
|
|
922
892
|
pricing: { inputPerMillion: 0.95, outputPerMillion: 4, cacheReadPerMillion: 0.16 },
|
|
923
|
-
sessionStart: { eligible: true }
|
|
893
|
+
sessionStart: { eligible: true, isDefault: true }
|
|
924
894
|
}
|
|
925
895
|
];
|
|
926
896
|
var MODEL_PROVIDER_NAMES = {
|
|
@@ -2612,8 +2582,8 @@ var ERROR_CODE_LABELS = {
|
|
|
2612
2582
|
output_length: "Output was too long",
|
|
2613
2583
|
context_overflow: "Context window exceeded",
|
|
2614
2584
|
aborted: "Stopped by user",
|
|
2615
|
-
rate_limit: "
|
|
2616
|
-
api_error: "
|
|
2585
|
+
rate_limit: "Rate limited - please retry shortly",
|
|
2586
|
+
api_error: "Model service error",
|
|
2617
2587
|
config_error: "Configuration error",
|
|
2618
2588
|
failed_edits: "Edit failure",
|
|
2619
2589
|
memory_enforcement_failed: "Memory enforcement failed",
|
|
@@ -2626,7 +2596,7 @@ var ERROR_CODE_LABELS = {
|
|
|
2626
2596
|
spawn_modal_error: "Sandbox spawn failed (legacy provider error)",
|
|
2627
2597
|
spawn_provider_error: "Sandbox spawn failed (provider API error)",
|
|
2628
2598
|
spawn_deadline_no_object: "Sandbox spawn timed out before provider responded",
|
|
2629
|
-
spawn_deadline_no_bridge: "Sandbox
|
|
2599
|
+
spawn_deadline_no_bridge: "Sandbox startup timed out before the runtime became reachable",
|
|
2630
2600
|
spawn_preconnect: "Sandbox failed before connecting",
|
|
2631
2601
|
sandbox_terminated: "Sandbox terminated",
|
|
2632
2602
|
sandbox_disconnected: "Sandbox disconnected",
|
|
@@ -2634,13 +2604,13 @@ var ERROR_CODE_LABELS = {
|
|
|
2634
2604
|
sandbox_never_started: "Sandbox never started the prompt",
|
|
2635
2605
|
session_archived: "Session archived while processing",
|
|
2636
2606
|
sandbox_callback: "Sandbox callback failed",
|
|
2637
|
-
codex_startup_timeout: "
|
|
2638
|
-
codex_api_readiness_timeout: "
|
|
2639
|
-
codex_session_create_timeout: "
|
|
2640
|
-
codex_prompt_dispatch_timeout: "
|
|
2641
|
-
codex_not_ready: "
|
|
2642
|
-
codex_transport_closed: "
|
|
2643
|
-
codex_unrecoverable: "
|
|
2607
|
+
codex_startup_timeout: "Agent runtime startup timed out",
|
|
2608
|
+
codex_api_readiness_timeout: "Agent runtime did not become ready",
|
|
2609
|
+
codex_session_create_timeout: "Agent runtime session could not be created",
|
|
2610
|
+
codex_prompt_dispatch_timeout: "Prompt could not be delivered to the agent runtime",
|
|
2611
|
+
codex_not_ready: "Agent runtime did not become ready",
|
|
2612
|
+
codex_transport_closed: "Agent runtime connection closed",
|
|
2613
|
+
codex_unrecoverable: "Agent runtime stopped unexpectedly",
|
|
2644
2614
|
question_delivery_failed: "Answer could not be delivered to the agent",
|
|
2645
2615
|
malformed_search_command: "Malformed search command blocked",
|
|
2646
2616
|
unknown: "Unknown failure"
|
|
@@ -2725,8 +2695,7 @@ ${event.answer ? `**Answer:** ${event.answer}
|
|
|
2725
2695
|
return `**Error:** ${formatSessionErrorMessage(event.error, event.code)}
|
|
2726
2696
|
`;
|
|
2727
2697
|
case "session_resumed_cold":
|
|
2728
|
-
return
|
|
2729
|
-
`;
|
|
2698
|
+
return "*[Environment was reset; in-environment state was lost]*\n";
|
|
2730
2699
|
case "customer_activity":
|
|
2731
2700
|
return `**${event.title}:** ${event.summary}
|
|
2732
2701
|
`;
|
|
@@ -3084,7 +3053,9 @@ function formatStatusLine(status) {
|
|
|
3084
3053
|
const substate = [];
|
|
3085
3054
|
if (status.sandboxSubstate && status.sandboxSubstate !== "none") substate.push(status.sandboxSubstate);
|
|
3086
3055
|
if (status.stopMode && status.stopMode !== "none") substate.push(status.stopMode);
|
|
3087
|
-
if (status.finalizingStep && status.finalizingStep !== "none")
|
|
3056
|
+
if (status.finalizingStep && status.finalizingStep !== "none") {
|
|
3057
|
+
substate.push(status.finalizingStep === "post_execution" ? "verification" : status.finalizingStep);
|
|
3058
|
+
}
|
|
3088
3059
|
const phaseLabel2 = substate.length > 0 ? `${label}/${substate.join("/")}` : label;
|
|
3089
3060
|
const details = [];
|
|
3090
3061
|
if (status.title) details.push(status.title);
|