@deepblend/dsh-blender-contracts 0.2.1 → 0.2.3

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/lib/index.js +20 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -193,6 +193,26 @@ export const BlenderErrorCode = Object.freeze({
193
193
 
194
194
  /** The requested render profile is not defined in the SceneSpec. */
195
195
  RENDER_PROFILE_MISSING: 'RENDER_PROFILE_MISSING',
196
+ // ---- M2: the vision reviewer's own route ---------------------------------
197
+
198
+ /**
199
+ * The configured vision model cannot be used for a review — it is not in the provider's
200
+ * catalog, or it does not accept images.
201
+ *
202
+ * MEASURED, and it had been happening for a day before anything noticed: the shipped default
203
+ * was `deepseek-flash`, which the provider stopped serving (`The model 'deepseek-flash' does
204
+ * not exist`, HTTP 404), and EVERY visual review in the store recorded the same line —
205
+ * "the vision reviewer could not be consulted, so this review carries measurements and a sheet
206
+ * but no second opinion". The loop degraded exactly as designed and nobody read the note, so a
207
+ * headline capability of M2 was dead while every suite stayed green.
208
+ *
209
+ * The refusal exists so the next occurrence is not a 404 from inside a stream: the route is
210
+ * checked BEFORE the sheet is uploaded and before a token is spent, and the detail names what
211
+ * the catalog actually offers — including which of those models can see an image, because a
212
+ * text-only model would silently omit the sheet rather than fail.
213
+ */
214
+ VISUAL_REVIEW_MODEL_UNAVAILABLE: 'VISUAL_REVIEW_MODEL_UNAVAILABLE',
215
+
196
216
  /** A render was refused because its estimated cost exceeds the configured budget. */
197
217
  RENDER_BUDGET_EXCEEDED: 'RENDER_BUDGET_EXCEEDED',
198
218
  /** Blender rendered but produced no image file. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepblend/dsh-blender-contracts",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "DeepBlend Studio Service Definition, protocol contracts, and stable error codes.",
6
6
  "main": "lib/index.js",