@goodandready/dsh-image-gen 0.11.9 → 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.
@@ -178,16 +178,54 @@ export function registerGenerationTools(ctx, deps) {
178
178
  type: 'object',
179
179
  additionalProperties: true,
180
180
  properties: {
181
+ summary: { type: 'string' },
182
+ channel: { type: 'string' },
183
+ provider: { type: 'string' },
184
+ model: { type: 'string' },
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
+ },
181
207
  path: { type: 'string' },
182
208
  url: { type: 'string' },
183
209
  width: { type: 'integer' },
184
210
  height: { type: 'integer' },
185
211
  seed: { type: 'integer' },
186
212
  prompt: { type: 'string' },
213
+ originalPrompt: { type: 'string' },
187
214
  format: { type: 'string' },
215
+ cost: { type: 'number' },
216
+ fromCache: { type: 'boolean' },
217
+ qualityReport: { type: 'object', additionalProperties: true },
218
+ anchor: {
219
+ type: 'object',
220
+ additionalProperties: true,
221
+ properties: {
222
+ label: { type: 'string' },
223
+ mode: { type: 'string' },
224
+ },
225
+ },
188
226
  attachment: {
189
227
  type: 'object',
190
- additionalProperties: false,
228
+ additionalProperties: true,
191
229
  properties: {
192
230
  attachmentId: { type: 'string' },
193
231
  mediaType: { type: 'string' },
@@ -201,7 +239,7 @@ export function registerGenerationTools(ctx, deps) {
201
239
  type: 'array',
202
240
  items: {
203
241
  type: 'object',
204
- additionalProperties: false,
242
+ additionalProperties: true,
205
243
  properties: {
206
244
  path: { type: 'string' },
207
245
  url: { type: 'string' },
@@ -209,7 +247,47 @@ export function registerGenerationTools(ctx, deps) {
209
247
  height: { type: 'integer' },
210
248
  seed: { type: 'integer' },
211
249
  prompt: { type: 'string' },
250
+ originalPrompt: { type: 'string' },
212
251
  format: { type: 'string' },
252
+ cost: { type: 'number' },
253
+ fromCache: { type: 'boolean' },
254
+ qualityReport: { type: 'object', additionalProperties: true },
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
+ },
277
+ provider: { type: 'string' },
278
+ model: { type: 'string' },
279
+ attachment: {
280
+ type: 'object',
281
+ additionalProperties: true,
282
+ properties: {
283
+ attachmentId: { type: 'string' },
284
+ mediaType: { type: 'string' },
285
+ bytes: { type: 'integer' },
286
+ width: { type: 'integer' },
287
+ height: { type: 'integer' },
288
+ name: { type: 'string' },
289
+ },
290
+ },
213
291
  },
214
292
  },
215
293
  },
@@ -22,7 +22,7 @@ export function registerInspectTools(ctx, deps) {
22
22
  render: (_args, value) => renderToolOutput(value),
23
23
  schema: {
24
24
  type: 'object',
25
- additionalProperties: false,
25
+ additionalProperties: true,
26
26
  properties: {
27
27
  diffRatio: { type: 'number' },
28
28
  error: { type: 'string' },
@@ -50,7 +50,7 @@ export function registerInspectTools(ctx, deps) {
50
50
  render: (_args, value) => renderToolOutput(value),
51
51
  schema: {
52
52
  type: 'object',
53
- additionalProperties: false,
53
+ additionalProperties: true,
54
54
  properties: {
55
55
  qualityScore: { type: 'number' },
56
56
  passed: { type: 'boolean' },
@@ -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,7 +1,7 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-image-gen",
3
- "version": "0.11.9",
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.11.11",
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",