diff --git a/CHANGELOG.md b/CHANGELOG.md index cfbb477..28a99e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,14 @@ > 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。 > 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。 +## v3.26.129(2026-11-30)诊断:插件源读数(目录 / 索引条数 / 版本表 / 报错) + +现象:资料目录里插件已更新到 album 1.2.4 / gallery 1.9.8 / promptlib 1.14.10, +但插件页仍显示旧版本号。加载器读的是 `<资料目录>/plugins/index.json` + 各 `manifest.json`, +两边对不上,先把「加载器实际读到了什么」打出来。 + +- 诊断页新增一行「插件源:<目录> · 索引 N 条 · 目录 M · 」;读失败时直接显示错误。 + ## v3.26.128(2026-11-30)浏览器独立窗口空闲 30 分钟自动销毁 127 实测(三面板全开):合计 1212MB;关掉浏览器窗口后 728MB —— 那个窗口一个人占约 480MB。 diff --git a/app.js b/app.js index 0fc5449..46e7d38 100644 --- a/app.js +++ b/app.js @@ -4998,6 +4998,21 @@ const tbCenterSeed = (type, refs) => { const F = wStoreMod() out.decode = (F && typeof F.decodeStats === 'function') ? F.decodeStats() : null out.thumbs = (F && typeof F.thumbStats === 'function') ? await F.thumbStats() : null + // v3.26.129:插件源读数 —— 加载器到底读的哪个目录、拿到什么版本、有没有报错 + const pi = { dir: (F && typeof F.dir === 'function') ? F.dir() : '', n: 0, dirs: 0, list: '', err: '' } + try { + if (F && F.plugins && typeof F.plugins.manifest === 'function') { + const m = await F.plugins.manifest() + const arr = Array.isArray(m) ? m : [] + pi.n = arr.length + pi.list = arr.map((e) => String((e && e.id) || '?') + '@' + String((e && e.version) || '?')).join(' ') + } + if (F && F.plugins && typeof F.plugins.listDirs === 'function') { + const ds = await F.plugins.listDirs() + pi.dirs = Array.isArray(ds) ? ds.length : 0 + } + } catch (e2) { pi.err = String((e2 && e2.message) || e2) } + out.plugins = pi } catch (e) { /* ignore */ } return out } diff --git a/package.json b/package.json index 579337c..255fb38 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "image-workbench-web", "private": true, - "version": "3.26.128", + "version": "3.26.129", "description": "Browser-based node canvas image workbench", "scripts": { "build": "node scripts/build.js && node scripts/copy-plugins.js", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index cfb6d50..2db3dbd 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2014,7 +2014,7 @@ dependencies = [ [[package]] name = "image-workbench" -version = "3.26.128" +version = "3.26.129" dependencies = [ "arboard", "base64 0.22.1", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 3ab8963..64263ab 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "image-workbench" -version = "3.26.128" +version = "3.26.129" description = "无限画布 · 生图工作台桌面版" authors = ["malongan"] license = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3e556a3..f77fe94 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "image-workbench", - "version": "3.26.128", + "version": "3.26.129", "identifier": "com.malongan.imageworkbench", "build": { "frontendDist": "../dist", diff --git a/src/ui-settings-tab-diag.js b/src/ui-settings-tab-diag.js index 0f33d5b..432fb69 100644 --- a/src/ui-settings-tab-diag.js +++ b/src/ui-settings-tab-diag.js @@ -149,6 +149,7 @@ const k = d.decode || {} const t = d.thumbs || null return el('div', null, + (d.plugins ? el('div', { className: 'iwb-diag-extra', title: '加载器实际读取的插件目录与版本表' }, '插件源:' + (d.plugins.dir || '未知') + ' · 索引 ' + d.plugins.n + ' 条 · 目录 ' + d.plugins.dirs + (d.plugins.err ? (' · 错误:' + d.plugins.err) : '') + (d.plugins.list ? (' ' + d.plugins.list) : '')) : null), el('div', { className: 'iwb-section-sub' }, '图片管线'), el('div', { className: 'iwb-diag-extra' }, '原生解码:进行中 ' + (k.active || 0) + ' · 峰值 ' + (k.peak || 0) + ' · 累计 ' + (k.total || 0) + (t ? (' | 缩略图磁盘 ' + t.n + ' 个 / ' + t.mb + 'MB(512:' + t.n512 + ' · 256:' + t.n256 + ' · 旧768:' + t.n768 + ')') : '')),