@goodandready/dsh-image-gen 0.11.6 → 0.11.7

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/lib/index.js CHANGED
@@ -41,7 +41,7 @@ import {
41
41
  testProviderConnection,
42
42
  } from './providers.js'
43
43
 
44
- import { resolveConversationImage, analyzeImageWithVision } from './resolve-image.js'
44
+ import { resolveConversationImage, analyzeImageWithVision, validateImageSignature } from './resolve-image.js'
45
45
  import { registerImageCommand } from './commands.js'
46
46
  import { registerAllTools } from './register-tools.js'
47
47
  import { registerPluginUpdater } from './updater.js'
@@ -10,6 +10,7 @@ import {
10
10
  checkWcagContrast,
11
11
  optimizeSvgContent,
12
12
  generatePwaIconSuite,
13
+ extractSampleColorsFromBuffer,
13
14
  } from '../frontend-assets.js'
14
15
 
15
16
  export function registerFrontendTools(ctx, deps) {
@@ -43,6 +43,15 @@ import { getCachedGeneration, setCachedGeneration } from '../generation-cache.js
43
43
  import { resolveFallbackChain, executeWithFallback } from '../fallback-router.js'
44
44
  import { getSessionAnchor, applyAnchorPromptHints } from '../anchor-helpers.js'
45
45
  import { enhancePrompt } from '../prompt-enhancer.js'
46
+ import {
47
+ readHistory,
48
+ writeHistory,
49
+ pruneHistory,
50
+ findCachedGeneration,
51
+ findCached,
52
+ findCachedByPrompt,
53
+ cachedResult,
54
+ } from '../history.js'
46
55
 
47
56
 
48
57
  export function registerGenerationTools(ctx, deps) {
@@ -286,7 +295,7 @@ export function registerGenerationTools(ctx, deps) {
286
295
  assertBudgetAvailable(estimatedCost, cfg.dailyBudgetUsd)
287
296
  const providers = makeProviders(
288
297
  { fetchImpl: fetch, resolveKey: (ref) => resolveApiKey(ctx, ref), cfg, subscriptionImages },
289
- { prompt: effectivePrompt, size, format, seed: args.seed, signal: exec.signal, negativePrompt: effectivePolishedNegative, guidanceScale: effectiveGuidance, source, mask, strength: args.strength, quality: args.quality, style: args.style, aspectPixels, aspectRatio: args.aspect_ratio },
298
+ { prompt: effectivePrompt, size, format, seed: args.seed, signal: exec.signal, negativePrompt: effectiveNegative, guidanceScale: effectiveGuidance, source, mask, strength: args.strength, quality: args.quality, style: args.style, aspectPixels, aspectRatio: args.aspect_ratio },
290
299
  )
291
300
  // Subscription providers return {ok:false, reason} instead of throwing:
292
301
  // rejection reaches the model as text. Without this guard,
@@ -11,6 +11,7 @@ import {
11
11
  saveAttachmentSafe,
12
12
  } from '../providers.js'
13
13
  import { sanitizeErrorAndLogs } from '../security.js'
14
+ import { resolveConversationImage } from '../resolve-image.js'
14
15
 
15
16
  export function registerProcessingAdvancedTools(ctx, deps) {
16
17
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-image-gen",
3
- "version": "0.11.6",
3
+ "version": "0.11.7",
4
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).",
5
5
  "keywords": [
6
6
  "deepseek-harness",