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.
- package/CHANGELOG.md +11 -0
- package/README.md +57 -17
- package/icon.png +0 -0
- package/lib/adapter-kit.js +363 -11
- package/lib/adapters/async.js +258 -31
- package/lib/adapters/cn.js +13 -0
- package/lib/adapters/openai.js +21 -2
- package/lib/adapters.js +880 -139
- package/lib/client.js +459 -131
- package/lib/comfy-workflow.js +7 -3
- package/lib/config-store.js +692 -0
- package/lib/image-execution.js +835 -0
- package/lib/image-jobs.js +333 -0
- package/lib/image-queue.js +195 -0
- package/lib/image-service.js +226 -0
- package/lib/image-worker.js +195 -0
- package/lib/index.js +439 -858
- package/lib/png-scale.js +103 -28
- package/lib/prompt-profiles.js +139 -68
- package/lib/request-auth.js +143 -0
- package/lib/retry.js +162 -0
- package/lib/settings-memory.js +33 -0
- package/lib/status.js +187 -0
- package/locale/messages.csv +226 -214
- package/package.json +3 -1
- package/skills/mo-image-editing/SKILL.md +34 -72
- package/skills/mo-image-generation/SKILL.md +59 -152
package/lib/comfy-workflow.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
434
|
+
/**
|
|
435
|
+
* 默认对对话模型可见的参数:只有提示词和负面词。
|
|
436
|
+
* 宽高、种子、模型都由选择器或插件决定,暴露出去只会多一条绕过选择器的后门。
|
|
437
|
+
*/
|
|
438
|
+
export const DEFAULT_EXPOSED = new Set(['prompt', 'negative_prompt']);
|
|
435
439
|
|
|
436
440
|
/**
|
|
437
441
|
* 映射角色也当成参数:提示词、负面词、宽高、种子、模型。
|