From 81c520fe522eae193924171b2af5486bfe2bb1c5 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 22 Nov 2026 22:22:05 +0800 Subject: [PATCH] =?UTF-8?q?chore(plugins):=20promptlib=201.6.19=EF=BC=88?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E8=90=BD=E7=82=B9=E6=94=B9=E4=B8=BA=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=3D=E5=B7=A6=E4=B8=8A=E8=A7=92=EF=BC=89+=20=E5=B8=82?= =?UTF-8?q?=E5=9C=BA=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/index.json | 4 ++-- plugins/promptlib/main.js | 6 +++--- plugins/promptlib/manifest.json | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/index.json b/plugins/index.json index 893a63f..73bc951 100644 --- a/plugins/index.json +++ b/plugins/index.json @@ -44,9 +44,9 @@ "dir": "promptlib", "main": "main.js", "style": "styles.css", - "version": "1.6.18", + "version": "1.6.19", "files": { - "main.js": "0efdfbbfe7e9318610bb94330c0a3c361a0aa38f2b3a44c243c872f0e02a09e8", + "main.js": "541fd18a8f34a8d3720b96f27e2e0ce278a6361f650f4f52a68664e560fc7139", "styles.css": "1fdad04e2ffe1c8ba2a991a88072f780b65238096f9ccd1b5adba671ff2c9cb3" } }, diff --git a/plugins/promptlib/main.js b/plugins/promptlib/main.js index 9ca33d5..dfc4153 100644 --- a/plugins/promptlib/main.js +++ b/plugins/promptlib/main.js @@ -771,10 +771,10 @@ if (!w) return var vd = varsOf(st.p) if (vd.length) { - api2.createNode('ptpl', w.x - 210, w.y - 20, { promptId: '', name: st.p.name || '提示词模板', tpl: st.p.text || '', vdefs: vd, vars: {}, cover: st.p.cover || '', refOn: false, text: st.p.text || '', outKind: 'prompt' }) + api2.createNode('ptpl', w.x, w.y, { promptId: '', name: st.p.name || '提示词模板', tpl: st.p.text || '', vdefs: vd, vars: {}, cover: st.p.cover || '', refOn: false, text: st.p.text || '', outKind: 'prompt' }) notify('已插入模板节点:' + (st.p.name || '')) } else { - api2.createNode('prompt', w.x - 132, w.y - 20, { text: st.p.text || '', title: st.p.name || '' }) + api2.createNode('prompt', w.x, w.y, { text: st.p.text || '', title: st.p.name || '' }) notify('已插入提示词:' + (st.p.name || '')) } } catch (err) { notify('拖拽插入失败:' + ((err && err.message) || err), 'err') } @@ -1594,7 +1594,7 @@ global.IWBPluginHost.register({ id: 'promptlib', name: '提示词库', - version: '1.6.18', + version: '1.6.19', apiVersion: 1, capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite'], data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 }, diff --git a/plugins/promptlib/manifest.json b/plugins/promptlib/manifest.json index b3a908b..9757210 100644 --- a/plugins/promptlib/manifest.json +++ b/plugins/promptlib/manifest.json @@ -1,7 +1,7 @@ { "id": "promptlib", "name": "提示词库", - "version": "1.6.18", + "version": "1.6.19", "apiVersion": 1, "main": "main.js", "style": "styles.css", @@ -13,7 +13,7 @@ "提示词" ], "files": { - "main.js": "0efdfbbfe7e9318610bb94330c0a3c361a0aa38f2b3a44c243c872f0e02a09e8", + "main.js": "541fd18a8f34a8d3720b96f27e2e0ce278a6361f650f4f52a68664e560fc7139", "styles.css": "1fdad04e2ffe1c8ba2a991a88072f780b65238096f9ccd1b5adba671ff2c9cb3" } }