From 3e55a8316966b5f6bab4cf977448612e468f7eb1 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 22 Nov 2026 00:19:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(promptlib):=201.4.10=20=E5=B0=81=E9=9D=A2?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E9=98=88=E5=80=BC=20150KB=20/=20=E4=BB=85=20?= =?UTF-8?q?PNG=20=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- promptlib/package.json | 2 +- promptlib/src/index.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/promptlib/package.json b/promptlib/package.json index 97c079f..efa34c2 100644 --- a/promptlib/package.json +++ b/promptlib/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/promptlib", "private": true, - "version": "1.4.9", + "version": "1.4.10", "description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供", "ibwPlugin": { "id": "promptlib", diff --git a/promptlib/src/index.js b/promptlib/src/index.js index 152c9b4..1852689 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.js @@ -116,7 +116,8 @@ var big = prompts.filter(function (p) { var c = p && p.cover if (typeof c !== 'string' || c.indexOf('data:') !== 0) return false - return c.length > 60000 || c.indexOf('data:image/png') === 0 + // v1.4.10:阈值提到 150KB,且只在 PNG(体积虚高)时迁移 —— 否则 JPEG 封面每次挂载都会被再压一次 + return c.length > 150000 || c.indexOf('data:image/png') === 0 }) if (!big.length) return var next = prompts.slice() @@ -720,7 +721,7 @@ global.IWBPluginHost.register({ id: 'promptlib', name: '提示词库', - version: '1.4.9', + version: '1.4.10', apiVersion: 1, capabilities: ['panels', 'promptlib'], data: { schemaVersion: 1, maxBytes: 65536 },