87 Commits
Author SHA1 Message Date
qiqi e827f47d04 fix: 封面 PNG→JPEG 兜底 + 停靠栏/小地图补测 + 主题契约扩围 v3.26.21
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m11s
2026-11-22 00:16:30 +08:00
qiqi 2c94401d45 feat(canvas): 小地图与工具栏同排 + 挤压自动隐藏 v3.26.18
Verify (Gitea) / gate (build · unit · facts) (push) Canceled after 1m40s
2026-11-21 23:42:55 +08:00
qiqi 202f7b81de fix(dock): 面板去重(同侧+跨侧),修重复注册残留 v3.26.12
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m52s
2026-11-21 23:01:17 +08:00
qiqi 9c0d3b1221 revert: 回退到 v3.26.5 插件行为(v3.26.10),promptlib 回退 1.4.0 内容
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 53s
2026-11-21 22:50:21 +08:00
qiqi 5f8f4d229f fix: CSP nonce 导致动态 style 全丢(插件样式失效)v3.26.9 / promptlib 1.4.5
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m52s
2026-11-21 22:43:41 +08:00
qiqi 774b980f69 feat: 市场缓存回退 + 启动层恢复 + 卡片键盘可达(v3.26.6 / promptlib 1.4.1)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m28s
2026-11-21 22:17:46 +08:00
qiqi a993d44f4e chore: 体检清理(死代码/截图/封面瘦身/测试)(v3.26.5 / promptlib 1.4.0)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m3s
2026-11-21 22:12:01 +08:00
qiqi 2fb0a6941f feat(promptlib): 封面任意比例(上传/详情/插入)(v3.26.2 / 1.3.3)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m38s
2026-11-21 21:49:07 +08:00
qiqi 0b20c5597c feat(promptlib): 详情插入图片(封面参考图节点)(v3.26.1 / 1.3.2)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m33s
2026-11-21 21:42:30 +08:00
qiqi f8635d4e19 fix(promptlib): 封面改内联压缩图(3.26.0 / 1.3.0)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m33s
2026-11-21 21:26:16 +08:00
qiqi 6ee5a37d68 feat(promptlib): 弹窗化详情/编辑(同宽可拖动可缩放)+ coverUrl 异步(v3.25.98)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 3m28s
2026-11-21 19:36:53 +08:00
qiqi 1342613ab9 feat(promptlib): 封面能力 + 1.1.0 方形网格/长文详情/宽编辑(v3.25.97)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m30s
2026-11-21 19:14:21 +08:00
qiqi 0439e8b743 revert: 回滚到 v3.25.88 插件渲染(v3.25.94)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m9s
2026-11-21 16:18:15 +08:00
qiqi 8dc01708dc feat(boot): 静态启动层 + 授权提示(v3.25.90)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m28s
2026-11-21 15:53:32 +08:00
qiqi 78519b56d8 fix(dock): 停靠栏仅画布渲染 + 插件重启用恢复默认面板 + 保存设置按钮(v3.25.86)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 28s
2026-11-21 09:21:06 +08:00
qiqi 73a7126e30 fix(ui): 删底栏资源库按钮 + 停靠栏按插件过滤 + 修右侧栏串面板(v3.25.82)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 25s
2026-11-21 08:19:37 +08:00
qiqi 7a4204d0a9 perf(images): 合并预览/远程图本地缓存/legacy 清理/图库缩略图回收(v3.25.80)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 31s
2026-11-21 07:55:12 +08:00
qiqi 2860faacbb fix(images): 缩略图 MIME 魔数嗅探 + 取消在用 objectURL 撤销 + 缩略图回收(v3.25.78/79)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 25s
2026-11-21 07:41:18 +08:00
qiqi f02b3dcec2 feat(settings): 设置窗可拖动 + 外观实时预览(v3.25.76)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 32s
2026-11-21 07:24:33 +08:00
qiqi f6d104fd95 feat(shell): 状态栏内存显示 + 修外观网格设置(v3.25.74)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 30s
2026-11-21 07:05:24 +08:00
qiqi 94680fd127 perf(images): 缩略图入库预热 + 稳定 key + Blob/objectURL + 按需切原图(v3.25.73)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 25s
2026-11-21 06:53:32 +08:00
qiqi 17fbbd284d feat(settings): 低缩放 LOD 可关闭(v3.25.71)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m6s
2026-11-20 23:20:26 +08:00
qiqi fb3a3f3623 perf(canvas): 网格贴图化 + LOD 滞回(v3.25.70)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 41s
2026-11-20 23:14:01 +08:00
qiqi 7e544b9e10 perf(canvas): 移除低缩放 LOD + 节点去阴影(v3.25.69)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 52s
2026-11-20 23:04:49 +08:00
qiqi e79095e848 perf(canvas): 平移/缩放改走 DOM + 远视距 LOD(v3.25.68,p95 211ms→52ms)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m3s
2026-11-20 22:53:21 +08:00
qiqi 0baeda2abd perf(canvas): 缩略图生成限流 + 空闲启动 + 大图 paint 隔离(v3.25.67)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m7s
2026-11-20 22:40:40 +08:00
qiqi 675239f6d1 fix(shell): 保留导航首页、下掉标签条旧首页按钮、logo 缩到 28px、插件页去掉旧顶栏(v3.25.62)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 47s
2026-11-20 22:07:48 +08:00
qiqi efb885ef91 feat(shell): 去重旧入口 + 插件页重叠修复 + 品牌 W logo + 帮助与快捷键分开(v3.25.60)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m39s
2026-11-20 21:57:29 +08:00
qiqi 7b2f07bdad feat(shell): 一级导航(52px 纯图标)+ 插件整页 + 快捷键弹窗分区罗列(v3.25.59)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m5s
2026-11-20 21:47:27 +08:00
qiqi b955812658 feat(release): v3.25.57 提示词库插件化(promptlib capability + 删宿主 ui-lib-sidebar) 2026-11-20 13:42:25 +08:00
qiqi d8153f24d2 feat(plugin): 节点组库插件化(grouplib capability + 删宿主侧栏),同步 grouplib 1.0.0 2026-11-20 13:12:14 +08:00
qiqi d5449e8b71 fix(gallery): 删除后不残留「图片已丢失」格子(deleteOutputs 返回 Promise + 插件本地先摘除)v3.25.55
- deleteOutputs 返回 Promise(删除+refreshOutputs 完成才 resolve)
- capability.remove 等删除完成再返回
- gallery 1.2.1:先本地摘除重排,250ms 后重拉校正
- 回归测试增加删除场景
2026-11-20 12:15:02 +08:00
qiqi 163e62f5a3 feat(gallery): 下载重试与失败上报 + 缩略图失败重试(gallery 1.2.0)v3.25.54
- capability.download 每张最多 3 次尝试,返回 failed[];不再恒 ok
- gallery 1.2.0:缩略图 error 自动重试 2 次、可点击重试;alt 置空避免破图文字;底部状态位显示下载结果
- 市场已发布 gallery 1.2.0
2026-11-20 12:09:03 +08:00
qiqi e8d782b4da feat(gallery): 图库只由插件提供,宿主删除第二份界面 v3.25.52
- 删除 src/ui-gallery-panel.js / ui-gallery-head.js 与 app.js 的图库面板装配(8951→8879 行)
- dock 图库固定 pluginId:'gallery',未安装显示安装提示
- 宿主仅保留 gallery capability(list/thumb/preview/download/insert/remove)+ 索引
- insert 支持插件传入 insertK 档位压缩
- 插件仓新增 gallery 1.0.0 并发布市场(9 个插件)
2026-11-20 11:32:16 +08:00
qiqi 2594623c09 feat(plugin): 宿主 gallery capability + 图库面板 A 方案自动切换/回落 v3.25.51
- 新增 src/plugin-api-gallery.js(list/thumb/preview/download/insert/remove),impl 由 Workbench 渲染时注入
- plugin-host 能力表加 gallery
- 右栏图库:装了插件走插件,未装或挂载失败回落宿主面板(PluginBox 支持 fallback)
- 测试与边界快照同步(能力表含 gallery)
2026-11-20 11:24:27 +08:00
qiqi 9b9ad5cc37 refactor(gallery): 图库面板抽成 src/ui-gallery-panel.js(M5 第 1 步,行为不变)v3.25.50
- 视图 props 化,app.js 8951→8937,为 gallery capability 腾行数
- 插入画布抽 insertOutputsToCanvas(list),单图/批量共用
- 边界快照同步(IWBUIGalleryPanel / ui-gallery-panel.js)
2026-11-20 11:10:56 +08:00
qiqi 3211beb706 fix(plugin): 外置旧版本不再盖住内置升级(高版本胜)v3.25.44
真实事故:资料目录 plugins/ 残留 browser 1.6.0,内置已有 1.7.0,但合并规则是外置无条件覆盖
⇒ 设置里永远显示 1.6.0 且无更新入口。

- loader 新增 compareVersions(数字分段、缺段补 0)
- 合并规则:ext / 目录插件 只在版本 >= 当前时覆盖(同版本外置胜,允许本地打补丁)
- 新增 tests/plugin-loader-test.js(1.6<1.7 / 1.10>1.9 / 1.20.6>1.9.0 / 空版本)
2026-11-20 10:00:25 +08:00
qiqi 7b1164febb feat(plugin): 插件数据层 M2 —— ctx.data(原子写 + 串行队列 + 旧数据迁移)v3.25.42
- 新增 src/plugin-data.js:read/write/patch/remove/size;桌面落 plugin-data/<id>.json(tmp+rename),
  同一插件读写串行排队,maxBytes 上限(默认 2MiB/最高 16MiB)超限抛错且不破坏已有数据
- storage-file 增加 pluginData 命名空间(read/write/remove/list)
- stripLegacy:宿主 init 前同步暂存 iwb_plugins[id].data,插件首次 read 时落盘并清暂存
- 备份携带 items.pluginData 并支持恢复;存储体检显示「插件数据 N 个 / X KB」
- 非桌面环境走 IWBStorageLocal 门面 → 内存兜底(仅测试)
- 新增 tests/plugin-data-test.js(串行/上限/迁移/备份)
2026-11-20 09:27:53 +08:00
qiqi 7ed3ba6738 feat(plugin): 插件目录化 M1 —— 目录插件加载 + 旧单文件兼容 v3.25.41
- loader 新增 loadFolder():manifest → main.js(逐文件 sha256,内置信随包 index.json)→ blob 注入;
  样式文本暂存,激活时注入、停用时移除(配合 host 新增 onActivate/onDeactivate 钩子)
- storage-file 增加 plugins.listDirs/readFile/writeFile/writeBinary/mkdir/removeDir(按段校验,禁 ..)
- app.js:三路合并支持目录条目(dir/main/style/files),失败隔离 + 按 id 排序
- 修复:无 iwb_plugins 记录时插件永不激活(首次安装面板显示「未加载」)
- 备份模块兼容目录形态;市场暂时跳过目录插件(M3 zip 后恢复)
- 试点:image-annotate 转为 plugins/image-annotate/{manifest.json,main.js}
- 方案文档 docs/PLUGIN-ARCHITECTURE-PLAN.md 一并入库
2026-11-20 09:08:56 +08:00
qiqi 7b34a1c0f6 feat(gallery): 图库头部重排为 标题/操作/设定 三行,补齐批量插入 v3.25.39
- 标题独占一行;操作行 全选/反选/下载/插入/删除;设定行 插入尺寸/显示大小/时间筛选
- 去掉语义重复的「清除」与底部「自动清理」文案(连带删除 retentionText 死代码)
- 批量插入走 refSrcOf + 压缩档 + 引用化,与单图插入同一入口
- 下拉带 2 字标签并限宽 48-72px;头部抽到 src/ui-gallery-head.js(app.js 8947→8936)
- 边界快照同步新增模块与耦合面(IWBUIGalleryHead / ui-gallery-head.js)
2026-11-20 07:15:48 +08:00
qiqi cbafd38780 fix(gallery): 三个下拉收成一组(窄栏整组换行);快捷键分支合并为单行 2026-11-20 06:46:13 +08:00
qiqi 540da6deba fix(dock/gallery): 图库图幅自适应重做 + 左右栏快捷键 n/t + 面板层级与滚轮修正 v3.25.38
- 图库列数改为按「面板宽 / 图幅」计算(图幅可选 110/130/170/220,默认 130,持久化),
  同一图幅下列宽稳定、只靠增减列数适应面板宽度;去掉 460px 上下限(竖图不再被 letterbox 缩成小图)
- 图库头部 flex-wrap:窄面板自动两行,按钮不被挤压
- n = 右栏开合、t = 左栏开合;顶栏「图库」按钮与其快捷键一并下线(帮助/设置文案同步)
- 左右栏从标签条下方开始(top:36px),标签条恢复满宽并压在面板之上;首页/落地页隐藏停靠栏
  (原生子 webview 因 rect 归零被 park,不再盖住首页)
- 停靠栏在 .iwb-canvas 内 ⇒ 面板根节点吞掉 wheel/pointerdown/contextmenu,画布 wheel 白名单补
  .iwb-dock;图库网格 overscroll-behavior:contain
- 图库宽度测量改为可重挂(面板延迟挂载时不再固定按 300 计算列宽)
2026-11-20 06:44:16 +08:00
qiqi 6d66b260e0 fix(layout): 去掉折叠竖条,左右开关移到画布顶栏,功能图标回到顶栏右上 v3.25.37 2026-11-19 22:59:34 +08:00
qiqi 9425c74b2f fix(layout): 停靠栏置顶、折叠按钮归位、顶部功能图标上移 v3.25.36
- 左右栏 top:0 贴顶(去掉上方缺口);标签条/画布状态行按 --iwb-dock-* 内缩,标题跟随缩进
- 左栏折叠图标移到头部最右;右栏保持在最右;折叠后边缘 14px 窄条 + 展开图标
- 画布状态行右侧功能图标(主题/设置/图库/更多)上移到标签条最右;保存按钮去掉
- 更新 shell-render / single-canvas / page-chrome / left-resource 断言与 boundary 快照
2026-11-19 22:46:20 +08:00
qiqi 6e7c22123d feat(layout): 左右停靠栏(P1 布局 + P2 图标拖拽)v3.25.35
- 新增 src/ui-dock.js(IWBDockArea):左=节点组/浏览器/风格库,右=提示词库/图库;
  默认左浏览器、右图库;独立开合、宽度自由拖动(最小 100px、无上限)、状态持久化。
- 图标横排:点击切换 / 拖动排序 / 拖到另一栏按位置插入;每栏至少保留一个面板。
- 画布不动;工具栏/小地图/提示按 --iwb-dock-l/--iwb-dock-r 让位;停靠栏从顶栏下方开始。
- 顶部资源中心按钮与 Esc 继续控制右栏;右栏默认图库。
- 更新 boundary 快照、架构文档计数与 3 个外壳结构测试。
2026-11-19 22:32:56 +08:00
qiqi b4a3e947b1 perf(download): awaitArchive 仅在自动下载开启时生效 + autoSaveImages 标注废弃(v3.25.34)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 49s
2026-11-19 17:06:41 +08:00
qiqi 7b8d755cac fix(download): 出图不再弹「另存为」;自动下载改为从图库原图复制 v3.25.33
① 删除 runtime-workbench-logic 里遗留的逐张自动下载(默认开、无 UI 开关),
   它走交互式 downloadUrl:写失败回退 dialog.save(默认路径是旧目录)→ 每张都弹框;
   四级兜底最后一级 openExternal → 弹出浏览器、落到浏览器下载目录。
② wSaveBlobNative 弹框只由「有没有导出目录」决定:有目录静默写,失败先 grant_dir
   重授权重试,仍失败只 toast;没目录才弹一次选位置。
③ archiveGenerationResults 改为「归档 → 刷新 → 自动下载」串行;wAddOutputs 新增
   awaitArchive 等本批原图落盘;resolveSrc 按 url 回查图库索引取 out_orig_ 原图,
   本地命中不碰图床;dataURL 直接解码 Blob。
④ 删除死代码 wSaveGenImageToDir。

app.js 行数 8947(守门上限内)。verify: build/check-dist/lint/typecheck/test:unit 全过。
2026-11-19 16:46:35 +08:00
qiqi c60ecc7366 fix(canvas): 库面板浮窗开着时画布仍可框选;补 globe 图标给浏览器插件 tab
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 51s
- 模态层守卫收窄:只有真模态(.iwb-modal-mask/.iwb-ctxmask)才整体拦画布按下;
  库面板 .iwb-fullmask 是可拖可连的浮窗,画布露在它外面必须能框选(v3.25.21 引入的回归)
- 手势进行中(框选/平移/拖节点/连线/缩放)时 onMove/onUp 不再按 target 断流:
  否则指针划过库面板,框选卡住、在面板上松手收不了尾
- ICONS 补 globe(lucide):浏览器插件面板/网页节点此前声明 'globe' 但库里没有,tab 上渲染成空白
- e2e:新增「库面板开着仍能框选」回归测试;⑤⑦⑨ 三条右键菜单测试改到「该节点▸」二级结构
2026-11-19 09:56:36 +08:00
qiqi 1851f6cf04 feat(plugin-canvas): canvasWrite.createNode 支持插件节点变体;addPluginNode 可带初值
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 42s
浏览器面板的「↗」要从「开独立窗口」改成「在画布上建一个网页节点」。插件能拿到
canvasWrite.createNode,但它只认内置 NODE_TYPES,插件节点(plugin:<插件>:<变体>)
一律返回 null。

- createNode 的守卫改成:type 不在内置表里就交给 addPluginNode(它负责拼 plugin:xxx
  并处理 data)。变体 id 传错时 addPluginNode 返回 null,不会留下没有渲染器的空壳节点。
- addPluginNode 增加第 4 个参数 extra(初值合并进 data)并返回 node.id —— 面板要把
  当前网址、标题、zoom/paused 一起带过去,调用方也需要拿到 id 做后续操作。

为什么绕这一圈而不是给 canvasWrite 加个 createPluginNode:PluginHost.init 在 IIFE 层,
拿不到 Workbench 内的 addPluginNode,加一个方法就等于在桥对象和 canvasWrite 各加一行,
app.js 会超出 8947 行棘轮(改守卫只动 0 行,只多一行注释)。

verify:ci 全绿;app.js 8946 / 8947。
2026-11-19 09:36:26 +08:00
qiqi 9321356f59 feat(ctxmenu): 右键菜单「选中操作 / 该节点」收进二级菜单
一级原来 18 项、678px 高,屏幕下半区右键要内部滚动。现在一级只留
「添加节点 / 插件节点 / 选中操作 ▸ / 该节点 ▸」,高度 678 → 388px(无选中 355px)。

- 纯 CSS 展开(.iwb-ctx-subwrap:hover > .iwb-ctx-sub + :focus-within),
  不引入 React 状态;button 获得焦点也会展开,键盘 Tab 可用。
- 坑 1:一级菜单有 overflow-y:auto,会把绝对定位的子菜单裁掉 ⇒ 加 .iwb-ctx-noclip。
- 坑 2:子菜单自身也继承了 overflow-y:auto,把跨 6px 缝隙的 ::before 桥接裁没了,
  鼠标一滑就收起来 ⇒ 子菜单必须 overflow:visible。
- 定位:底对齐入口向上展开(两组都在菜单下半区,向下会顶出视口);
  右侧留 6px + 伪元素桥接,一级菜单 left 夹取保证右边恒有 ≥210px,200px 子菜单放得下。
- 粘贴/清空仍在同一个子菜单里,canPaste 仍只读一次 readClipboardGraph。

app.js 8946 → 8945 行(上限 8947)。verify:ci 全绿;Playwright 实测:
一级 388px、无选中 355px、跨缝隙悬停不收起、子菜单「复制选中」执行后节点数 +1。
2026-11-19 08:59:23 +08:00