From 5d4bdf5400e63df238d8b925d12303a5e6e6ae2f Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 22 Nov 2026 22:22:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(promptlib):=201.6.19=20=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E8=90=BD=E7=82=B9=3D=E9=BC=A0=E6=A0=87=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=88=E8=8A=82=E7=82=B9=E5=B7=A6=E4=B8=8A=E8=A7=92=EF=BC=8C?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E9=A3=8E=E6=A0=BC=E5=BA=93=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- promptlib/package.json | 2 +- promptlib/src/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/promptlib/package.json b/promptlib/package.json index 1d40569..289baec 100644 --- a/promptlib/package.json +++ b/promptlib/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/promptlib", "private": true, - "version": "1.6.18", + "version": "1.6.19", "description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供", "ibwPlugin": { "id": "promptlib", diff --git a/promptlib/src/index.js b/promptlib/src/index.js index 9ca33d5..dfc4153 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.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 },