@goodandready/dsh-image-gen 0.11.10 → 0.11.11
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/tools/generation.js +44 -2
- package/lib/tools/ui-asset.js +22 -0
- package/package.json +1 -1
package/lib/tools/generation.js
CHANGED
|
@@ -182,7 +182,28 @@ export function registerGenerationTools(ctx, deps) {
|
|
|
182
182
|
channel: { type: 'string' },
|
|
183
183
|
provider: { type: 'string' },
|
|
184
184
|
model: { type: 'string' },
|
|
185
|
-
_fallback: {
|
|
185
|
+
_fallback: {
|
|
186
|
+
type: 'object',
|
|
187
|
+
additionalProperties: true,
|
|
188
|
+
properties: {
|
|
189
|
+
triggered: { type: 'boolean' },
|
|
190
|
+
primaryProvider: { type: 'string' },
|
|
191
|
+
providerUsed: { type: 'string' },
|
|
192
|
+
attempts: {
|
|
193
|
+
type: 'array',
|
|
194
|
+
items: {
|
|
195
|
+
type: 'object',
|
|
196
|
+
additionalProperties: true,
|
|
197
|
+
properties: {
|
|
198
|
+
provider: { type: 'string' },
|
|
199
|
+
durationMs: { type: 'number' },
|
|
200
|
+
success: { type: 'boolean' },
|
|
201
|
+
error: { type: 'string' },
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
186
207
|
path: { type: 'string' },
|
|
187
208
|
url: { type: 'string' },
|
|
188
209
|
width: { type: 'integer' },
|
|
@@ -231,7 +252,28 @@ export function registerGenerationTools(ctx, deps) {
|
|
|
231
252
|
cost: { type: 'number' },
|
|
232
253
|
fromCache: { type: 'boolean' },
|
|
233
254
|
qualityReport: { type: 'object', additionalProperties: true },
|
|
234
|
-
_fallback: {
|
|
255
|
+
_fallback: {
|
|
256
|
+
type: 'object',
|
|
257
|
+
additionalProperties: true,
|
|
258
|
+
properties: {
|
|
259
|
+
triggered: { type: 'boolean' },
|
|
260
|
+
primaryProvider: { type: 'string' },
|
|
261
|
+
providerUsed: { type: 'string' },
|
|
262
|
+
attempts: {
|
|
263
|
+
type: 'array',
|
|
264
|
+
items: {
|
|
265
|
+
type: 'object',
|
|
266
|
+
additionalProperties: true,
|
|
267
|
+
properties: {
|
|
268
|
+
provider: { type: 'string' },
|
|
269
|
+
durationMs: { type: 'number' },
|
|
270
|
+
success: { type: 'boolean' },
|
|
271
|
+
error: { type: 'string' },
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
},
|
|
235
277
|
provider: { type: 'string' },
|
|
236
278
|
model: { type: 'string' },
|
|
237
279
|
attachment: {
|
package/lib/tools/ui-asset.js
CHANGED
|
@@ -91,6 +91,28 @@ export function registerUiAssetTools(ctx, deps) {
|
|
|
91
91
|
type: 'object',
|
|
92
92
|
additionalProperties: true,
|
|
93
93
|
},
|
|
94
|
+
_fallback: {
|
|
95
|
+
type: 'object',
|
|
96
|
+
additionalProperties: true,
|
|
97
|
+
properties: {
|
|
98
|
+
triggered: { type: 'boolean' },
|
|
99
|
+
primaryProvider: { type: 'string' },
|
|
100
|
+
providerUsed: { type: 'string' },
|
|
101
|
+
attempts: {
|
|
102
|
+
type: 'array',
|
|
103
|
+
items: {
|
|
104
|
+
type: 'object',
|
|
105
|
+
additionalProperties: true,
|
|
106
|
+
properties: {
|
|
107
|
+
provider: { type: 'string' },
|
|
108
|
+
durationMs: { type: 'number' },
|
|
109
|
+
success: { type: 'boolean' },
|
|
110
|
+
error: { type: 'string' },
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
94
116
|
},
|
|
95
117
|
},
|
|
96
118
|
render(args, value) {
|
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.11",
|
|
4
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",
|