@tryarcanist/cli 0.1.287 → 0.1.288

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.
Files changed (2) hide show
  1. package/dist/index.js +68 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8593,6 +8593,10 @@ var OpenAIModel = {
8593
8593
  GPT52ChatLatest: "gpt-5.2-chat-latest",
8594
8594
  GPT52Codex: "gpt-5.2-codex"
8595
8595
  };
8596
+ var DeepSeekModel = {
8597
+ V4Flash: "deepseek-v4-flash",
8598
+ V4Pro: "deepseek-v4-pro"
8599
+ };
8596
8600
  var MODEL_PROVIDERS_SET = /* @__PURE__ */ new Set(["openai", "anthropic"]);
8597
8601
  var BACKEND_DESKTOP_IMAGE_FEEDBACK_CONFIGS = {
8598
8602
  [CODEX_AGENT_RUNTIME_BACKEND]: {
@@ -8839,6 +8843,67 @@ var MODEL_REGISTRY = [
8839
8843
  contextWindow: 4e5,
8840
8844
  reasoning: { efforts: ["low", "medium", "high", "xhigh"], default: "high" },
8841
8845
  pricing: { inputPerMillion: 1.75, outputPerMillion: 14, cacheReadPerMillion: 0.175 }
8846
+ },
8847
+ {
8848
+ id: DeepSeekModel.V4Flash,
8849
+ name: "DeepSeek V4 Flash",
8850
+ // `provider` names the WIRE PROTOCOL the gateway speaks (OpenAI Responses),
8851
+ // not the vendor. DeepSeek V4 is served by Baseten: the gateway maps these
8852
+ // registry ids to Baseten wire ids and swaps the upstream host, while every
8853
+ // request/response stays OpenAI-shaped. Do NOT "fix" this to a new
8854
+ // "baseten" provider — `ModelProvider` is what review-model validation, the
8855
+ // credential gate (`PROVIDER_ENV_VAR` / spawn credential resolution), and
8856
+ // the sandbox bridge's model guard all key off, so a new provider value
8857
+ // silently fails those closed instead of routing anywhere.
8858
+ provider: "openai",
8859
+ backends: [CODEX_AGENT_RUNTIME_BACKEND],
8860
+ // Required for codex session-start eligibility: the codex backend is the
8861
+ // sole consumer of this flag and drops any model without it from the
8862
+ // session-start set (see modelSupportsRequiredSessionStartCapabilities).
8863
+ capabilities: { codexToolSearch: true },
8864
+ contextWindow: 1048576,
8865
+ // Only the effort our live Baseten probes actually proved. Registry efforts
8866
+ // are treated as supported capabilities and are selectable by other paths
8867
+ // (isValidReasoningEffort, review config, CLI overrides), so widen this list
8868
+ // only after probing each added value end-to-end against Baseten.
8869
+ reasoning: { efforts: ["high"], default: "high" },
8870
+ // Verified against https://www.baseten.co/pricing on 2026-08-11 (Model APIs
8871
+ // token pricing, row `deepseek-ai/DeepSeek-V4-Flash-0731`): $0.13/M input,
8872
+ // $0.028/M cached input, $0.26/M output. Baseten publishes a cached-input
8873
+ // rate for this model, so cacheReadPerMillion carries it rather than
8874
+ // mirroring the input rate. No longContext and no flex: both are OpenAI-only
8875
+ // pricing axes and Baseten prices a single flat tier.
8876
+ pricing: { inputPerMillion: 0.13, outputPerMillion: 0.26, cacheReadPerMillion: 0.028 },
8877
+ sessionStart: { eligible: true },
8878
+ visibility: "internal_probe"
8879
+ // Deliberately no overloadFallback. A Baseten 429 must not silently re-run
8880
+ // an A/B arm on a different model; with no fallback the loop retries the
8881
+ // same model, which is what an A/B comparison requires.
8882
+ },
8883
+ {
8884
+ id: DeepSeekModel.V4Pro,
8885
+ name: "DeepSeek V4 Pro",
8886
+ // See the DeepSeek V4 Flash entry above: "openai" is the wire protocol
8887
+ // (OpenAI Responses), not the vendor. Changing it to a "baseten" provider
8888
+ // breaks review-model validation, the credential gate, and the sandbox
8889
+ // bridge's model guard.
8890
+ provider: "openai",
8891
+ backends: [CODEX_AGENT_RUNTIME_BACKEND],
8892
+ // Required for codex session-start eligibility (sole consumer of the flag).
8893
+ capabilities: { codexToolSearch: true },
8894
+ contextWindow: 262144,
8895
+ // Only the probed effort; widen only after probing each value against
8896
+ // Baseten, since registry efforts are selectable capabilities.
8897
+ reasoning: { efforts: ["high"], default: "high" },
8898
+ // Verified against https://www.baseten.co/pricing on 2026-08-11 (Model APIs
8899
+ // token pricing, row `DeepSeek V4 Pro`): $1.74/M input, $0.145/M cached
8900
+ // input, $3.48/M output. Cached-input rate is published, so it is carried
8901
+ // verbatim. No longContext and no flex (OpenAI-only axes).
8902
+ pricing: { inputPerMillion: 1.74, outputPerMillion: 3.48, cacheReadPerMillion: 0.145 },
8903
+ sessionStart: { eligible: true },
8904
+ visibility: "internal_probe"
8905
+ // Deliberately no overloadFallback — see DeepSeek V4 Flash: an A/B arm must
8906
+ // retry the same model on a Baseten 429, never silently swap models.
8842
8907
  }
8843
8908
  ];
8844
8909
  var MODEL_PROVIDER_NAMES = {
@@ -8931,6 +8996,7 @@ function extractModelId(raw) {
8931
8996
  function getProviderForModel(modelId) {
8932
8997
  return MODEL_PROVIDERS[modelId] ?? "openai";
8933
8998
  }
8999
+ var BASETEN_SERVED_MODEL_IDS = new Set(Object.values(DeepSeekModel));
8934
9000
  function toModelSelection(raw) {
8935
9001
  const modelID = extractModelId(raw);
8936
9002
  if (!modelID) return void 0;
@@ -11273,6 +11339,7 @@ var ERROR_CODES = [
11273
11339
  "api_error",
11274
11340
  "model_overloaded",
11275
11341
  "config_error",
11342
+ "github_pr_context",
11276
11343
  "github_app_permission",
11277
11344
  "failed_edits",
11278
11345
  // No producer since the memory subsystem was removed. Retained because the code is
@@ -11319,6 +11386,7 @@ var ERROR_CODE_LABELS = {
11319
11386
  api_error: "Model service error",
11320
11387
  model_overloaded: "Model at capacity",
11321
11388
  config_error: "Configuration error",
11389
+ github_pr_context: "GitHub pull request context unavailable",
11322
11390
  github_app_permission: "GitHub App permissions missing",
11323
11391
  failed_edits: "Edit failure",
11324
11392
  memory_enforcement_failed: "Memory enforcement failed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.287",
3
+ "version": "0.1.288",
4
4
  "description": "CLI for Arcanist - create and manage coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {