@goodandready/dsh-image-gen 0.11.5 → 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 +1 -1
- package/lib/tools/frontend.js +1 -0
- package/lib/tools/generation.js +11 -1
- package/lib/tools/processing-advanced.js +1 -0
- package/package.json +1 -1
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'
|
package/lib/tools/frontend.js
CHANGED
package/lib/tools/generation.js
CHANGED
|
@@ -42,6 +42,16 @@ import { trackAndAssertLoopGuard } from '../loop-guard.js'
|
|
|
42
42
|
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
|
+
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'
|
|
45
55
|
|
|
46
56
|
|
|
47
57
|
export function registerGenerationTools(ctx, deps) {
|
|
@@ -285,7 +295,7 @@ export function registerGenerationTools(ctx, deps) {
|
|
|
285
295
|
assertBudgetAvailable(estimatedCost, cfg.dailyBudgetUsd)
|
|
286
296
|
const providers = makeProviders(
|
|
287
297
|
{ fetchImpl: fetch, resolveKey: (ref) => resolveApiKey(ctx, ref), cfg, subscriptionImages },
|
|
288
|
-
{ prompt: effectivePrompt, size, format, seed: args.seed, signal: exec.signal, negativePrompt:
|
|
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 },
|
|
289
299
|
)
|
|
290
300
|
// Subscription providers return {ok:false, reason} instead of throwing:
|
|
291
301
|
// rejection reaches the model as text. Without this guard,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-image-gen",
|
|
3
|
-
"version": "0.11.
|
|
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",
|