dsh-mo-image 0.6.0 → 0.7.0

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.
@@ -251,7 +251,8 @@ function walkText(graph, startLink, pool) {
251
251
  if (!node) return;
252
252
  const ordered = [...inputEntries(node)].sort(([a], [b]) => rank(a) - rank(b));
253
253
  for (const [name, value] of ordered) {
254
- if (typeof value !== 'string' || value.trim() === '') continue;
254
+ // 空字符串也是字面量:导出和模板里的文本框默认就是空的,跳过它等于让整条角色参数消失。
255
+ if (typeof value !== 'string') continue;
255
256
  pool.push(makeCandidate(id, node, name, value));
256
257
  if (!primary && TEXTISH.test(name)) primary = { node: id, input: name };
257
258
  }
@@ -430,8 +431,11 @@ export function collectParams(graph, mapping, objectInfo) {
430
431
  return TUNABLE_PARAMS.filter((name) => found.has(name)).map((name) => found.get(name));
431
432
  }
432
433
 
433
- /** 默认对对话模型可见的参数:提示词、负面词和尺寸。种子和模型保持隐藏。 */
434
- export const DEFAULT_EXPOSED = new Set(['prompt', 'negative_prompt', 'width', 'height']);
434
+ /**
435
+ * 默认对对话模型可见的参数:只有提示词和负面词。
436
+ * 宽高、种子、模型都由选择器或插件决定,暴露出去只会多一条绕过选择器的后门。
437
+ */
438
+ export const DEFAULT_EXPOSED = new Set(['prompt', 'negative_prompt']);
435
439
 
436
440
  /**
437
441
  * 映射角色也当成参数:提示词、负面词、宽高、种子、模型。