@goodandready/dsh-image-gen 0.10.11 → 0.10.12

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/README.md CHANGED
@@ -84,6 +84,9 @@
84
84
  * **Subscription Aspect Ratio Mapping**: maps aspect ratios (`16:9`, `3:2`, `9:16`, `2:3`) to appropriate subscription dimensions (`1536x1024` / `1024x1536`) instead of falling back to default square `1024x1024`.
85
85
 
86
86
 
87
+ ### 🚀 What's New in v0.10.12
88
+ * **Fix Syntax Error (#208)**: Resolved variable redeclaration collision (`const hPrompt`) in `checkCache` within `lib/index.js` which could prevent plugin initialization on strict Node.js runtimes. Added automated syntax check across all source modules to test suite.
89
+
87
90
  ### 🚀 What's New in v0.10.11 (#165, #166, #167, #168, #169, #170)
88
91
  * **Negative Prompt Sanitizer (#165)**: Automatic defect filtering and deduplication for diffusion models (SDXL, ComfyUI, Seedream, Local) with style-conflict protection (preserves intentional grainy, vintage, or dark aesthetics).
89
92
  * **Automated Quality Gate & Silent Re-roll (#166)**: Heuristic variance and sharpness inspection combined with `dsh-vision-bridge` hook; performs silent re-rolls (up to 2 attempts) for blank, corrupted, or solid frames before returning results.
package/README.ru.md CHANGED
@@ -130,6 +130,9 @@ graph LR
130
130
  - **100% интернационализация (#140)**: устранены захардкоженные русские строки, добавлены переводы на русский, английский и китайский языки.
131
131
 
132
132
 
133
+ ### 🚀 Что нового в v0.10.12
134
+ * **Исправление синтаксической ошибки (#208)**: Устранено повторное объявление переменной (`const hPrompt`) в функции `checkCache` внутри `lib/index.js`. Добавлена автоматическая проверка синтаксиса всех модулей в набор юнит-тестов.
135
+
133
136
  ### 🚀 Что нового в v0.10.11 (#165, #166, #167, #168, #169, #170)
134
137
  * **Negative Prompt Sanitizer (#165)**: Автоматическая санитизация и дедупликация негативных промптов для диффузионных моделей (SDXL, ComfyUI, Seedream, Local) с защитой от конфликта стилей (сохраняет намеренно запрошенную зернистость, винтажность или тени).
135
138
  * **Quality Gate и Silent Re-roll (#166)**: Экспресс-контроль резкости/энтропии кадра и интеграция с `dsh-vision-bridge` с автоматическим тихим ре-роллом дефектных, пустых или черных кадров (до 2 попыток).
package/lib/index.js CHANGED
@@ -1092,7 +1092,7 @@ export function apply(ctx, config) {
1092
1092
  }
1093
1093
 
1094
1094
  if (!cfg.cacheBySeed && !cfg.cacheByPrompt) return undefined
1095
- const h = computeGenerationHash({
1095
+ const hPrompt = computeGenerationHash({
1096
1096
  provider,
1097
1097
  model: cfg.model,
1098
1098
  prompt: promptVal,
@@ -1100,7 +1100,7 @@ export function apply(ctx, config) {
1100
1100
  size: args.image_size || cfg.defaultSize,
1101
1101
  style: args.style || cfg.stylePreset,
1102
1102
  })
1103
- const found = findCachedGeneration(historyEntries, h)
1103
+ const found = findCachedGeneration(historyEntries, hPrompt)
1104
1104
  if (found) return await cachedResult(found)
1105
1105
  if (cfg.cacheBySeed) {
1106
1106
  const bySeed = await findCached(historyEntries, seedVal, promptVal)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-image-gen",
3
- "version": "0.10.11",
4
- "description": "Image generation for DeepSeek Harness: a generate_image tool with pluggable providers — the FAL queue, any OpenAI-compatible images API, or a ChatGPT/Grok subscription with no API key at all. The picture is shown inline in the conversation; the model receives either a link (works with any chat model) or the image itself (needs dsh-vision-bridge or a vision-capable model).",
3
+ "version": "0.10.12",
4
+ "description": "Image generation for DeepSeek Harness: a generate_image tool with pluggable providers \u2014 the FAL queue, any OpenAI-compatible images API, or a ChatGPT/Grok subscription with no API key at all. The picture is shown inline in the conversation; the model receives either a link (works with any chat model) or the image itself (needs dsh-vision-bridge or a vision-capable model).",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "dsh",