koishi-plugin-p-draw 1.2.2 → 1.2.4

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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -578,7 +578,7 @@ function animaStyleI2IWorkflow(cfg, prompt, negativePrompt, width, height, steps
578
578
  '11': { class_type: 'CLIPTextEncode', inputs: { text: prompt, clip: ['45', 0] } },
579
579
  '12': { class_type: 'CLIPTextEncode', inputs: { text: negativePrompt, clip: ['45', 0] } },
580
580
  '70': { class_type: 'Canny', inputs: { image: ['13', 0], low_threshold: 0.4, high_threshold: 0.8 } },
581
- '71': { class_type: 'ControlNetLoader', inputs: { controlnet_name: controlNetModel } },
581
+ '71': { class_type: 'ControlNetLoader', inputs: { control_net_name: controlNetModel } },
582
582
  '72': { class_type: 'ControlNetApplyAdvanced', inputs: { positive: ['11', 0], negative: ['12', 0], control_net: ['71', 0], image: ['70', 0], strength: controlNetStrength, start_percent: 0, end_percent: 1 } },
583
583
  '19': {
584
584
  class_type: 'KSampler',
@@ -3050,7 +3050,7 @@ exports.apply = async function apply(ctx, cfg) {
3050
3050
  logger.warn(`上传原图失败:${e.message}`)
3051
3051
  return session.text('.i2i-upload-fail', [e.message])
3052
3052
  }
3053
- if (cfg.outputLogs) logger.info(`[p-draw] i2i ${session.userId} 原图已上传:${uploadName} 模式=${mode} ControlNet=${caps.controlNet.available ? caps.controlNet.model : '-'} IPAdapter=${caps.ipAdapter.available ? 'on' : 'off'}`)
3053
+ if (cfg.outputLogs) logger.info(`[p-draw] i2i ${session.userId} 原图已上传:${uploadName}`)
3054
3054
 
3055
3055
  // 能力检测(ControlNet / Anima IP-Adapter)
3056
3056
  const caps = await detectI2ICapabilities()
@@ -3071,6 +3071,7 @@ exports.apply = async function apply(ctx, cfg) {
3071
3071
  if (mode === 'style') await session.send(session.text('.i2i-mode-style'))
3072
3072
  if (mode === 'ootd') await session.send(session.text('.i2i-mode-ootd'))
3073
3073
  }
3074
+ if (cfg.outputLogs) logger.info(`[p-draw] i2i ${session.userId} 模式=${mode} ControlNet=${caps.controlNet.available ? caps.controlNet.model : '-'} IPAdapter=${caps.ipAdapter.available ? 'on' : 'off'}`)
3074
3075
 
3075
3076
  // 所选模式依赖的节点缺失时给出提示(仍会回退普通 img2img,不中断)
3076
3077
  const notices = []
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-p-draw",
3
3
  "description": "p点-绘图,连接本地 ComfyUI 生图。支持自然语言优化、尺寸选择、画师组、固定角色、生成队列,需要配合 p-qiandao 使用",
4
- "version": "1.2.2",
4
+ "version": "1.2.4",
5
5
  "main": "index.js",
6
6
  "files": [
7
7
  "index.js",