Repository navigation
feat(product-photo-studio): add product photo batch studio UI plugin - #217
ppppp2005-p wants to merge 16 commits into
Conversation
|
ZCode desktop demo (ZCode 4.0.0, macOS arm64) pps-final.mp4Flow shown:
Note: ZCode asks for approval for every tool call in "Ask before changes" mode, including the panel's app-only read-only tools, so the video shows several approval prompts ("Always allow in this project" was used). 演示流程:本地 marketplace 安装 → |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
…project_save reports check warnings
…project_save reports check warnings
…project_save reports check warnings
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
Plugin type (required) / 插件类型(必填)
Affected plugin name(s) / 涉及的插件名称:
product-photo-studio(UI Plugin, new)What / 改动内容
New community UI plugin Product Photo Studio / 电商商品图助手: batch-prepare e-commerce product photos.
ui://product-photo-studio/panel.html): global settings (background removal tolerance, product size, vertical offset, alignment, ground/drop shadow, background colour), output-size checklist with custom sizes, thumbnail grid with warning flags, per-photo override editor with a large live preview, export all / export one.photos_open,project_save,photos_export(+ app-onlyphotos_preview,photo_thumbs,workspace_images)..photostudio.jsonprojects.Network / API / side effects: local stdio MCP server only; no network, no API keys, no hooks, no command execution; originals are never modified; writes only to the output folder (default
product-photos-output/<size>/) and the chosen project file.Third-party: pngjs (MIT), jpeg-js (BSD-3-Clause), MCP SDK / ext-apps (MIT); notices generated into
dist/THIRD_PARTY_NOTICES.txt. Test photos: Wikimedia Commons CC0 / public domain (seetest/fixtures/SOURCES.md), not shipped in the package.Tests: vitest over MCP (product fraction within 2 %, centring within 10 px, pure-white corners, transparent background, per-photo override, custom size, path escape rejected); Chrome e2e with the official AppBridge host on 8 real product photos (sneakers on black, headphones on grey gradient, perfume, backpack, canvas shoe on textured floor…): open folder, change global settings, adjust one photo, transparent preview, export all.
validate.py,build_dist.py,git diff --check,oxlint,tscpass.A ZCode Desktop demo recording is attached in the comments. / ZCode 桌面版演示录屏见评论。
Self-check / 自查清单
external_plugins/<name>/categoryis set (productivity)version0.1.0 in bothplugin.jsonandmarketplace.jsonREADME.md(EN) andREADME_CN.md(中文) both provided and equivalentdescription_i18nhas bothenandzh-CNpython3 scripts/validate.pyandpython3 scripts/build_dist.pypass locallyphotos_open→ side panel → per-photo override →project_save→photos_export; demo video in the comments)Known limitation seen in the ZCode run: background enclosed by the product (e.g. the inside of a headphone band) is not connected to the photo edge, so it is kept; the skill tells the agent to flag such photos for manual cleanup.