Commit Graph
47 Commits
Author SHA1 Message Date
qiqi 1d9ef0cc99 feat(plugins): 同步便利贴 sticky v1.0.7(自定义调色后自动收起色板)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 48s
2026-11-24 11:55:08 +08:00
qiqi 18dad1b9af feat(plugins): 同步便利贴 sticky v1.0.6(文本回缩外框自动降高)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 33s
2026-11-24 11:52:28 +08:00
qiqi f7ace22121 feat(plugins): 同步便利贴 sticky v1.0.5(圆角对齐宿主节点)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 36s
2026-11-24 11:49:20 +08:00
qiqi 5b5dbbd417 feat(plugins): 同步便利贴 sticky v1.0.4(rows=1 去掉预留行高)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 35s
2026-11-24 11:45:29 +08:00
qiqi f64898db96 feat(plugins): 同步便利贴 sticky v1.0.3(外框贴字+调色点右上)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 40s
2026-11-24 11:38:04 +08:00
qiqi 9c8e7745f9 feat(plugins): 同步便利贴 sticky v1.0.2(贴字自适应+色板跟随按钮)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 54s
2026-11-24 11:20:31 +08:00
qiqi c4305c184a feat(plugins): 同步便利贴 sticky v1.0.1(修拖动漏底/字号无上限/双击编辑)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 55s
2026-11-24 11:00:32 +08:00
qiqi a378dc52ad feat(plugins): 接入便利贴 sticky v1.0.0 —— 白名单+meta+同步产物
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 37s
2026-11-24 10:37:39 +08:00
qiqi 21554b05ae feat(tokens): M6 延展验证 —— 面板合并重写 + 三个闭集缺口回填(3.26.51)
- style.css 插件面板两段六次叠加(1819-1885 / 2194-2295)合并成一份有意图的实现;133 行新增零裸值,净减 34 行,删 3 个死类与 1 条死兜底
- 新增 --iwb-font-base: 14px(8 档):全站 10 处标准正文原本在 13→15 之间无处安放;走 gen-tokens 单一源同步 CSS/DTCG/快照
- derive() 亮色状态色调深(ok #15803d / err #b91c1c / warn #b45309,暗色不变)—— --iwb-ok 原本对浅页面仅 2.13 却一直当文字色用
- theme-contrast-test 补 3 状态色 × 4 表面 × 2 主题,114 → 138 对
- 新增 ⑦⑧ 组件夹具基线(桌面端面板在网页 e2e 不可达),夹具内禁用 transition 消除 1 级灰度随机 diff;16 张连跑两次全绿
- batch-export 1.2.2 同步(内容寻址 + SRI):状态色走宿主 token,去掉纯蓝主按钮
- 棘轮基线首次下调:字号 159 / 圆角 95 / 间距 377 / hex 79 / 圆角种数 17 / 阴影 44
- 文档:规范 §5.7 接入案例、§3.3 第 8 档、修正 §5.2 里不存在的 --iwb-dur-* 引用;计划 M6 执行结果与度量看板
2026-11-23 18:19:04 +08:00
qiqi c81a107b5f feat(tokens): M4-B6 收尾 —— 半像素清零 + 插件契约文件级豁免归零(3.26.49)
- style.css 剩余 16 处半像素字号并入闭集,删 2 条归并后重复的规则;守卫收紧为全文件断言
- 裁定 --iwb-control-h 不扩到全局控件(并排表单 vs 成组紧凑控件),新增「全局 input 不得写死 height」守卫
- plugin-theme-contract-test 重写:ALLOW_FILES 6 → 0,改为私有皮肤自声明(skin) + chroma 强调色判据 + 行内内容色标记;私有皮肤必须自洽(不引用宿主颜色 token)
- token-audit 插件段同口径分三类报数;插件侧中性色写死归零
- 插件仓同步 4 个版本:browser 1.7.1 / batch-export 1.2.1 / image-annotate 1.20.7 / image-vectorize 0.6.1
- 视觉基线 8 张更新(含画布场景的字号栅格化变化),A/B 回退确认非环境噪声,复核 12/12
2026-11-23 17:09:46 +08:00
qiqi eda67df9bf chore(plugins): style-source 1.3.3 token 化(深色气泡/警示色走主题 token)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m3s
2026-11-22 15:09:35 +08:00
qiqi 411a7c9572 feat(plugin): 同步 promptlib 1.0.1(分组胶囊自适应换行)
- plugins/promptlib:转为目录形态(manifest.json + main.js + styles.css),旧单文件产物清理
  (源仓带 styles.css 即自动目录化,样式才能随包分发)
- tests/plugin-promptlib-render-test.js:钉住「无滚动容器 + 全部胶囊为换行容器直接子节点」
- 市场已发布 promptlib 1.0.1(客户端仍 3.25.57,无需重装)
2026-11-20 17:37:40 +08:00
qiqi 1738027da6 feat(plugin): 同步 grouplib 1.0.3(分类胶囊自适应换行)+ 样式随包分发
- plugins/grouplib:转为目录形态(manifest.json + main.js + styles.css),旧单文件产物清理
- scripts/sync-plugins-from-repo.js:源仓存在 <id>/styles.css 的插件自动走目录形态
  (单文件产物带不走样式,否则插件自带样式会被静默忽略)
- tests/plugin-grouplib-render-test.js:钉住「无滚动容器 + 全部胶囊为换行容器直接子节点 + 分组名在同一行」
- 市场已发布 grouplib 1.0.3(客户端仍 3.25.57,无需重装)
2026-11-20 17:29:14 +08:00
qiqi b955812658 feat(release): v3.25.57 提示词库插件化(promptlib capability + 删宿主 ui-lib-sidebar) 2026-11-20 13:42:25 +08:00
qiqi bd138b7a7e chore(plugin): 同步 gallery 1.5.1 / grouplib 1.0.2 + 回归(胶囊滚动容器、.iwb-hint 作用域) 2026-11-20 13:32:00 +08:00
qiqi 1d308377a5 fix(plugin): 同步 grouplib 1.0.1(mount 注入 ctx);回归按宿主 mount(node) 契约调用 2026-11-20 13:28:14 +08:00
qiqi d8153f24d2 feat(plugin): 节点组库插件化(grouplib capability + 删宿主侧栏),同步 grouplib 1.0.0 2026-11-20 13:12:14 +08:00
qiqi a4aaa547a7 feat(plugin): 目录插件支持自带 styles.css(sync 拷贝+manifest.style);gallery 1.5.0 上架 2026-11-20 12:59:09 +08:00
qiqi f02f18863a fix(gallery): 图标按钮去外框 + 底栏信息区防溢出,同步 1.4.2 2026-11-20 12:53:44 +08:00
qiqi 1ddfa7f601 feat(gallery): 图标按钮样式 + 同步 gallery 1.4.1(刷新/设置不占字宽) 2026-11-20 12:50:39 +08:00
qiqi 03c79bf5e8 feat(gallery): 设置浮层样式 + 同步 gallery 1.4.0(下拉不占前台) 2026-11-20 12:45:54 +08:00
qiqi fb654844bf chore(plugin): 同步 gallery 1.3.0 产物(自动恢复 + 刷新按钮 + 坏图保护) 2026-11-20 12:19:13 +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 9ad6f7230f feat(gallery-ui): 图库去标题 + 底部横栏(张数左/设定右)+ 下拉收窄 1/3 v3.25.53 2026-11-20 12:02:52 +08:00
qiqi 2e5ac0d144 test(gallery): 新增插件渲染回归(异步缩略图)+ 同步 gallery 1.0.1 产物
- tests/plugin-gallery-render-test.js:jsdom 里挂载插件,断言 2 张图都渲染、缩略图走 thumb()、无「图片已丢失」
- plugins/:gallery 1.0.1(异步缩略图修复)已同步并发布市场
- facts 计数同步
2026-11-20 11:47:55 +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 d98580065f chore(plugin): 纠正『桌面包内置插件』的错误假设;annotate 试点回退单文件;市场发布 browser 1.7.0 2026-11-20 10:10:32 +08:00
qiqi f69b7e5a85 feat(plugin): 浏览器插件 1.7.0 接入 ctx.data(最近访问),验证数据层真机写入 v3.25.43 2026-11-20 09:42: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 92370c9254 chore(plugins): 同步 image-vectorize 0.6.0(关闭按钮主色调 + 全屏源码同步)
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 50s
2026-11-19 15:01:54 +08:00
qiqi b4bc52b177 chore(plugins): 同步 image-vectorize 0.5.0(编辑器全屏铺满)
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 52s
2026-11-19 14:14:20 +08:00
qiqi 13c741e460 chore(plugins): 同步 browser 1.6.0(库面板默认缩放可配置)
从 iwb-plugins-desktop 同步 browser 插件产物(sync-plugins-from-repo.js):
- 旧 plugin-browser.91399c13d011.js → 新 plugin-browser.9e9fa4cdb25d.js(内容寻址)
- index.json:browser 1.5.0→1.6.0,integrity 更新
- 功能:库面板浏览器默认缩放可配置(panelZoom,默认 60%),宿主零改动
market/ 由 gen-market.js 重新生成(gitignore,发布时 scp 上传 NAS)。
2026-11-19 13:27:20 +08:00
qiqi e1120ec52b release: v3.25.30(浏览器插件 1.5.0 配套客户端 + 库面板浮窗可框选)
- bump 3.25.30(package.json / tauri.conf.json / Cargo.toml)
- 同步插件源仓产物:browser 1.5.0(plugin-browser.91399c13d011.js),清掉 4 个旧 hash 产物
- CHANGELOG + 事实基线锚点
2026-11-19 10:05:33 +08:00
qiqi 67472f3019 chore(release): 3.25.29 发布产物 + browser 1.4.0 市场索引
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 39s
2026-11-19 07:18:22 +08:00
qiqi dc7c1cc65a chore(plugins): 收进 browser 1.3.0 运行时产物
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 42s
2026-11-19 06:49:11 +08:00
qiqi dce8aac1f3 refactor!: 下线画布内网页节点(原生子 webview 路线的维护成本远超收益)
背景:画布内网页用 Window::add_child 挂原生子 webview,连续踩到三个平台坑且修不干净:
- hide() 之后 show() 静默失效(都返回 Ok,网页永久不再绘制);
- get_webview_window("main") 在出现任何子 webview 后永久返回 None;
- 子 webview 抢指针事件,拖动只能靠标题栏。
剩下的日常操作(换工作区、LOD 降级、快速拖拽、被遮挡)全靠每帧推 bounds / 挪出窗口 /
延迟 900ms 回收这类脆弱补偿兜底 ⇒ 撤掉,不留半成品。独立窗口浏览器不受影响。

删除:
- Rust:canvas_webview_ensure/bounds/navigate/action/state/close_all 六个命令 + _cwv.log 诊断(约 250 行)
- 前端:src/canvas-webview.js(463 行)+ build.js 模块登记(89 → 88)
- 插件 browser:节点类型 web 与 nodeTypes 能力(1.1.1 → 1.2.0,市场已更新)

保留(与本功能无关的独立修复):save_geom/restore_geom/托盘/单实例改用 get_window。

版本 3.25.27
2026-11-19 00:11:47 +08:00
qiqi 0b7c1b30f0 fix(canvas-webview): 网页裁到「节点 ∩ 画布」而不是整个隐藏;插件补旧客户端提示
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m35s
实测问题:画布不够大时节点必然溢出,原逻辑「不完全在画布内就隐藏」会让画布节点
永远是一片白,用户以为功能坏了。改成交集裁切:既不越界盖住侧边栏(原生层不受
overflow:hidden 约束),又保证只要节点露得出来就能看到网页。裁切只在 settle 后
推一次 bounds,不会随拖动逐帧重排。

插件 1.1.1:节点体检测宿主有没有 IWBCanvasWebview 引擎,旧客户端直接提示
「需要 v3.25.24 及以上」—— 上一轮插件先上架、客户端没升级,用户只看到白屏。
2026-11-18 23:32:49 +08:00
qiqi 05dd343155 feat(canvas-webview): 画布内嵌网页节点(原生子 webview)
- lib.rs:新增 canvas_webview_ensure/bounds/navigate/action/state/close_all,
  用 Window::add_child 建 label=cwv-<节点id> 的子 webview(tauri 启用 unstable feature)。
  子 webview 不在 capabilities ⇒ 外部页面拿不到宿主 IPC。
- 新增 src/canvas-webview.js:锚点扫描 + 每帧位置同步。自启动、对 app.js 零侵入
  (app.js 总行数棘轮只剩 1 行余量)。快速平移缩放拖拽时先隐藏避免拖影;
  节点必须完整落在画布内才显示(原生层不受 overflow:hidden 约束,溢出会盖住侧边栏);
  选中时内缩 12px 露出缩放手柄;锚点消失 900ms 后才回收(LOD 降级不重载页面)。
- 插件节点可声明初始宽度:nodes.register 的 width 经 addPluginNode 生效。
- browser 插件 1.1.0:新增「网页」节点(地址栏 + 后退/前进/刷新/关闭)。
- 同步模块顺序快照与架构文档计数(89 个模块)。
2026-11-18 23:29:17 +08:00
qiqi a4a899f424 feat(browser): 应用内浏览器插件 + 独立浏览器窗口命令
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m8s
- lib.rs:新增 open_browser_window(label=browser 单窗口复用,原生 navigate 导航,
  只放行 http/https),以及 browser_control(back/forward/reload/close)、
  browser_state(open/url)两个主窗口发起的控制命令。
- 窗口几何按 label 存取:主窗口沿用 window-geom.json,浏览器窗口用 browser-geom.json
  (下限 800x600,换显示器只恢复尺寸)。
- 修 CloseRequested 对非 main 窗口也 prevent_close 的问题:此前浏览器窗口点 ✕ 只是被隐藏,
  页面/音频在后台继续跑且再也关不掉。现在非 main 窗口正常销毁。
- 同步源仓新增 browser 插件(上架白名单 + meta 展示信息 + 产物 plugin-browser.1bcb58.js)。
2026-11-18 22:40:29 +08:00
qiqi 9283e76f1a chore(plugins): 同步标注插件 1.20.6(反白修正)
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m46s
2026-11-17 21:05:26 +08:00
qiqi 13a34073bd chore(plugins): 同步标注插件 1.20.5(反白公式修正)
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 3m11s
2026-11-17 20:53:11 +08:00
qiqi aff77cef75 chore(plugins): 同步标注插件 1.20.4
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 2m12s
2026-11-17 20:48:38 +08:00
qiqi ac62c3bfbc chore(plugins): 同步标注插件 1.20.3(快速效果兜底)+ 市场产物
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 3m38s
2026-11-17 20:37:57 +08:00
qiqi fe4a64f98b chore(plugins): 同步标注插件 1.20.2(指针自愈)+ 市场重建
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m38s
2026-11-17 17:24:21 +08:00
qiqi 78f8057384 chore(plugins): 同步标注插件 1.20.2(指针状态自愈)+ 市场产物重建
Verify (Gitea) / gate (build · unit · facts) (push) Successful in 1m21s
2026-11-17 17:21:25 +08:00
qiqi cddbd1f8eb feat(tauri): 完成桌面端迁移(原生另存为 + plugin-http 取图 + 插件静态化 + 中文注释) 2026-11-16 18:52:30 +08:00