nexrall-code 0.5.98 → 0.5.99

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 +22 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -103755,6 +103755,8 @@ ${ctx.repeatError}
103755
103755
  return `Browser: type "${String(input.text ?? "").slice(0, 40)}"`;
103756
103756
  if (action === "snapshot")
103757
103757
  return "Browser: read page";
103758
+ if (action === "read_text")
103759
+ return "Browser: read page text";
103758
103760
  return `Browser: ${action || "(unknown action)"}`;
103759
103761
  }
103760
103762
  default:
@@ -104167,7 +104169,15 @@ ${partial}` : "",
104167
104169
  "deepseek-v4-pro": 1048576,
104168
104170
  "deepseek-v4-flash": 1048576,
104169
104171
  // Qwen (DashScope), by real model id (documented max input, same caveat).
104170
- "qwen3.7-max": 991800
104172
+ "qwen3.7-max": 991800,
104173
+ // Z.ai (GLM), by real model id. contextWindow is documented (Z.ai/
104174
+ // Cloudflare Workers AI model cards, both list 1,048,576) rather than
104175
+ // measured — a ~400K-token request was ACCEPTED (200), not rejected, so
104176
+ // there was no 400 to read a real ceiling out of. maxOutputTokens IS
104177
+ // measured: `max_tokens: 999999` was rejected with the ceiling in the
104178
+ // error body (backend services/providers/modelRegistry.js's glm-5.3 row
104179
+ // has the full verification notes).
104180
+ "glm-5.3": 1048576
104171
104181
  };
104172
104182
  function contextWindowFor2(model) {
104173
104183
  return MODEL_CONTEXT_TOKENS[model ?? "turbo"] ?? 128e3;
@@ -153125,7 +153135,8 @@ var MODEL_LABELS = {
153125
153135
  "gpt-4.1": "GPT-4.1",
153126
153136
  "deepseek-v4-pro": "DeepSeek V4 Pro",
153127
153137
  "deepseek-v4-flash": "DeepSeek V4 Flash",
153128
- "qwen3.7-max": "Qwen3.7 Max"
153138
+ "qwen3.7-max": "Qwen3.7 Max",
153139
+ "glm-5.3": "GLM 5.3"
153129
153140
  };
153130
153141
  var LEGACY_MODEL_ALIASES = {
153131
153142
  turbo: "claude-sonnet-5",
@@ -153144,7 +153155,8 @@ var SELECTABLE_MODELS = [
153144
153155
  "gpt-4.1",
153145
153156
  "deepseek-v4-pro",
153146
153157
  "deepseek-v4-flash",
153147
- "qwen3.7-max"
153158
+ "qwen3.7-max",
153159
+ "glm-5.3"
153148
153160
  ];
153149
153161
  var MODEL_COST_MULTIPLIER = {
153150
153162
  "claude-sonnet-5": 1.5,
@@ -153155,13 +153167,18 @@ var MODEL_COST_MULTIPLIER = {
153155
153167
  "gpt-4.1": 1,
153156
153168
  "deepseek-v4-pro": 0.1,
153157
153169
  "deepseek-v4-flash": 0.05,
153158
- "qwen3.7-max": 1
153170
+ "qwen3.7-max": 1,
153171
+ // $1.40/$4.40 per 1M in/out (docs.z.ai, 2026-08-30) vs gpt-4.1's $2.00/$8.00
153172
+ // (migration 113) — roughly 0.6x on a blended 75/25 in/out turn. Rounded to
153173
+ // a friendly number like every other row; re-check backend/migrations/
153174
+ // 130_glm_5_3_pricing.sql's own caveat if Z.ai ships a GLM-5.3-specific rate.
153175
+ "glm-5.3": 0.6
153159
153176
  };
153160
153177
  function modelWithCostHint(id) {
153161
153178
  const mult = MODEL_COST_MULTIPLIER[id];
153162
153179
  return mult === void 0 ? id : `${id} (${mult}x)`;
153163
153180
  }
153164
- var NO_VISION_MODELS = /* @__PURE__ */ new Set(["deepseek-v4-pro", "deepseek-v4-flash", "qwen3.7-max"]);
153181
+ var NO_VISION_MODELS = /* @__PURE__ */ new Set(["deepseek-v4-pro", "deepseek-v4-flash", "qwen3.7-max", "glm-5.3"]);
153165
153182
  var NO_PDF_MODELS = /* @__PURE__ */ new Set([
153166
153183
  "gpt-5.4",
153167
153184
  "gpt-5.4-mini",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexrall-code",
3
- "version": "0.5.98",
3
+ "version": "0.5.99",
4
4
  "description": "Nexrall Code — AI coding assistant for your terminal (headless agent for scripts, CI and automation)",
5
5
  "keywords": [
6
6
  "ai",