Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 补齐壁纸下架切换测试、只读 CDN 校验与设计规范
kirozengd491c386f0f8
diff --git a/apps/desktop/src/renderer/components/settings/__tests__/WallpaperSection.keyboard.test.tsx b/apps/desktop/src/renderer/components/settings/__tests__/WallpaperSection.keyboard.test.tsxindex eb85916e32..b7632fa1b8 100644--- a/apps/desktop/src/renderer/components/settings/__tests__/WallpaperSection.keyboard.test.tsx+++ b/apps/desktop/src/renderer/components/settings/__tests__/WallpaperSection.keyboard.test.tsx@@ -115,9 +115,16 @@ describe('wallpaper keyboard navigation', () => {expect(setPatch).not.toHaveBeenCalled();});- it('drops the retired tile from the picker once it is not in use', async () => {+ it('drops the retired tile once the user switches away from it', async () => {+ const user = userEvent.setup();+ saved.wallpaperId = 'cindy-window';view();+ act(() => tile('cindy-window').focus());+ await user.keyboard('{ArrowRight}');+ await expectSelected('cindy-whisper');expect(screen.queryByRole('radio', { name: /cindy-window$/ })).toBeNull();+ expect(document.activeElement).toBe(tile('cindy-whisper'));+ expect(tabStops()).toEqual([tile('cindy-whisper')]);});it('moves focus and selection with all four arrows and Home', async () => {diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.mdindex 2b12637e5c..7fad9055f7 100644--- a/docs/design-rules/DESIGN.md+++ b/docs/design-rules/DESIGN.md@@ -76,26 +76,27 @@ align with the same wallpaper instead of introducing an opaque footer rectangle.Built-in SVG wallpapers are decorative assets, not new semantic UI colors.Verify actual Light/Dark screenshots across host pages and the expanded tool pane.-The built-in picker retains Window Companion, Future Atelier and Dream Wander,-with their Static / Dynamic choice, alongside 26 supplied still images: character,-cat, landscape, space and abstract artworks (user curation, 2026-10-16). The supplied-stills use metadata-free WebP at their source resolution, delivered on demand from-the CDN (user decision, 2026-10-17). Only lightweight thumbnails and the three scene-previews ship with the app. Blue Gaze and Amber Light are hidden from the picker.-Previously saved selections keep their artwork and motion behavior;-removing a catalog choice does not rewrite appearance preferences or delete source images.+The built-in picker lists 13 artworks (user curation, 2026-10-17): the Cindy group —+Whisper, Night Glance, Scarlet Stroll, Neon Silhouette, Prism Shards — followed by+Night Launch, Silent Orbits, Dune Dawn, Planet Dawn, Indigo Folds, Dune Sphere,+Ocean Clouds and Rose Quartz. All five Cindy wallpapers offer Static / Dynamic; their+1920×1080, 24fps, 10-second loops keep the source composition as first and last frame.+The other eight are stills. All official originals are metadata-free WebP/MP4 delivered+on demand from the CDN (user decision, 2026-10-17); only lightweight thumbnails and the+three legacy scene previews ship with the app.+Window Companion, Future Atelier and Dream Wander are retired from the picker+(`RETIRED_WALLPAPER_IDS`, 2026-10-17). Their manifest entries and CDN objects stay, so a+saved selection keeps its still and motion; while one is in use it appears selected right+after None with its Static / Dynamic choice, and it disappears once the user switches away.+Removing a catalog choice never rewrites appearance preferences or deletes CDN objects.All official images share the existing on-demand downloader, verified cache reuse,-and preview fallback; only the original three scenes offer video. Download progress and retry appear+and preview fallback; only manifest entries with video metadata offer motion. Download progress and retry appearbelow the grid when needed while the thumbnails remain available for selection.Reuse the settings DownloadMeter. Browsing the grid or hiding the wallpaper does notdownload originals; only a selected, visible image is requested. Reuse valid cachedimages offline and after upgrades. Do not request CDN assets for IDs absent from the manifest.-The original three scenes lead the Cindy group, followed by Whisper, Crimson Realm, Night Glance, Scarlet Stroll,-Neon Silhouette, Prism Shards, followed by the two cat wallpapers Wheatfield Watch-and Teacup Cat. Other artwork follows this group; Moon Gazer (formerly Giant Moon Platform) sits-directly after the two cat wallpapers, and Cloud Roaming follows Indigo Folds. Six-supplied stills were dropped from the picker before release (Palm Shadows, Dusk Arrow,-Rainy Stop, Window Rest, Golden Tides, Forest River) and are not shipped.+Earlier unreleased artwork (including Blue Gaze, Amber Light and the 2026-10-16 batch+trimmed on 2026-10-17) is not shipped and needs no compatibility.The new artwork uses the existing continuous cover fit, theme-derived visibilityand blur controls. None remains the default and restores the theme canvas.The picker remains an inline compact grid (user choice, 2026-10-15): usediff --git a/docs/dev-rules/media-storage-and-protocols.md b/docs/dev-rules/media-storage-and-protocols.mdindex 9a34043fed..ff1519acb0 100644--- a/docs/dev-rules/media-storage-and-protocols.md+++ b/docs/dev-rules/media-storage-and-protocols.md@@ -114,7 +114,8 @@回归见 `main/__tests__/wallpaperVideo.test.ts` 的升级离线复用及损坏修复测试,`customWallpaper.test.ts` 覆盖自定义媒体操作不误删官方图片和视频。发布脚本默认核验仓内原始素材,`--directory` 也接受按 hash 命名的导出目录或旧 `-hd.mp4` 输入。- `node scripts/publish-wallpaper-videos.mjs --verify-only` 离线核验;+ `node scripts/publish-wallpaper-videos.mjs --verify-only --directory=<原始素材目录>` 离线核验(MP4 原片不入库,+ 需指向导出目录);`--check-cdn` 只按清单读取线上对象,干净检出即可运行;`node scripts/publish-wallpaper-videos.mjs --check-cdn --region=global` 只读校验清单全部线上文件;实际发布使用 `node --env-file=<发布配置> scripts/publish-wallpaper-videos.mjs --region=global`。中国大陆版显式用 `--region=cn`,内部 dev 环境显式用 `--region=dev`;三个环境分别发布并校验,diff --git a/scripts/publish-wallpaper-videos.mjs b/scripts/publish-wallpaper-videos.mjsindex fe6f1a3d11..c4705a6f00 100644--- a/scripts/publish-wallpaper-videos.mjs+++ b/scripts/publish-wallpaper-videos.mjs@@ -44,6 +44,11 @@ for (const [id, entry] of Object.entries(manifest)) {[entry.image, ".webp", "image/webp"],]) {if (!asset) continue;+ // Read-only CDN checks verify against the manifest alone; clean checkouts lack originals.+ if (checkCdn) {+ if (entry.delivery === "cdn") assets.push({ id, ...asset, ext, mime });+ continue;+ }let file = path.resolve(source, id + ext);// Accept both the prepared hash-named upload folder and the old external HD input layout.if (directory) {