From 4bdf6d0313b3de666badaae62d3c4b77ad6b7218 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 22 Nov 2026 17:10:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(plugins):=20=E6=8B=96=E6=8B=BD=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E8=8A=82=E7=82=B9=E4=BD=BF=E7=94=A8=20plugin:promptli?= =?UTF-8?q?b:ptpl=20=E7=B1=BB=E5=9E=8B=20+=201.5.8=20=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/index.json | 2 +- plugins/promptlib/main.js | 2 +- plugins/promptlib/manifest.json | 2 +- src/runtime-workbench-logic.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/index.json b/plugins/index.json index 4d7bf74..7829a1a 100644 --- a/plugins/index.json +++ b/plugins/index.json @@ -46,7 +46,7 @@ "style": "styles.css", "version": "1.5.0", "files": { - "main.js": "5482e49e99329f368c7e63e30ec64989439ac999b684c7dbafc5916807184c61", + "main.js": "4b2381ed6c3418ed6e70073b96f1ad54f51c0a422224862c6d48292fcdf51343", "styles.css": "28a267866d81708fc51aa61a40f922decd917c9ea907c52c8c916fe6398cad68" } }, diff --git a/plugins/promptlib/main.js b/plugins/promptlib/main.js index efb65b5..4e423c4 100644 --- a/plugins/promptlib/main.js +++ b/plugins/promptlib/main.js @@ -940,7 +940,7 @@ text: p.text || '', name: p.name || '', vars: vd.map(function (v) { return v.key }), vdefs: vd, - cover: p.cover || '', + cover: p.cover || '', pluginId: ctx.id, nodeType: 'ptpl', })) e.dataTransfer.setData('application/x-iwb-promptid', p.id) e.dataTransfer.setData('text/plain', (p.text || '').slice(0, 200)) diff --git a/plugins/promptlib/manifest.json b/plugins/promptlib/manifest.json index 09d0781..95fe00c 100644 --- a/plugins/promptlib/manifest.json +++ b/plugins/promptlib/manifest.json @@ -13,7 +13,7 @@ "提示词" ], "files": { - "main.js": "5482e49e99329f368c7e63e30ec64989439ac999b684c7dbafc5916807184c61", + "main.js": "4b2381ed6c3418ed6e70073b96f1ad54f51c0a422224862c6d48292fcdf51343", "styles.css": "28a267866d81708fc51aa61a40f922decd917c9ea907c52c8c916fe6398cad68" } } diff --git a/src/runtime-workbench-logic.js b/src/runtime-workbench-logic.js index e928226..35f38af 100644 --- a/src/runtime-workbench-logic.js +++ b/src/runtime-workbench-logic.js @@ -1093,7 +1093,7 @@ const hasVars = Array.isArray(obj.vars) && obj.vars.length > 0 const node = hasVars ? { - id, type: 'ptpl', x: Math.round(wx - 210), y: Math.round(wy - 20), w: 420, + id, type: 'plugin:' + String(obj.pluginId || 'promptlib') + ':ptpl', x: Math.round(wx - 210), y: Math.round(wy - 20), w: 420, data: { promptId: '', name: obj.name || '提示词模板', tpl: obj.text || '', vdefs: Array.isArray(obj.vdefs) ? obj.vdefs : [],