@goodandready/dsh-image-gen 0.11.16 → 0.11.17

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
@@ -146,7 +146,7 @@ export function apply(ctx, rawConfig) {
146
146
  return {
147
147
  get: () => live(),
148
148
  replace: async (next) => {
149
- const parsed = Config(structuredClone(plainConfig(next)))
149
+ const parsed = plainConfig(Config(structuredClone(plainConfig(next))))
150
150
  currentLiveConfig = parsed
151
151
  const payload = volatileConfig(parsed)
152
152
  if (typeof svc.replace === 'function') {
@@ -157,7 +157,7 @@ export function apply(ctx, rawConfig) {
157
157
  return parsed
158
158
  },
159
159
  update: async (patch) => {
160
- const merged = Config({ ...publicConfig(live()), ...plainConfig(patch) })
160
+ const merged = plainConfig(Config({ ...publicConfig(live()), ...plainConfig(patch) }))
161
161
  currentLiveConfig = merged
162
162
  const payload = volatileConfig(merged)
163
163
  if (typeof svc.update === 'function') {
@@ -103,7 +103,7 @@ export function registerSettingsRoutes(ctx, { live, getSettingsApi, setLiveConfi
103
103
 
104
104
  try {
105
105
  const base = plainConfig(live()) || {}
106
- const merged = Config({ ...base, ...raw })
106
+ const merged = plainConfig(Config({ ...base, ...raw }))
107
107
  const settingsApi = getSettingsApi ? getSettingsApi() : null
108
108
  if (settingsApi && typeof settingsApi.replace === 'function') {
109
109
  await settingsApi.replace(merged)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-image-gen",
3
- "version": "0.11.16",
3
+ "version": "0.11.17",
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",