fix: serve raster PNG for pi.dev preview image instead of SVG - #701
Conversation
📦 Built Package ArtifactBranch: Option A — Install from npm PR tag (recommended)npm install -g billion-context@pr-701Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pr701.tgz
npm install -g packageThis comment is automatically updated on each push. |
[bot] 🏷 Review 完成,结论:可以合并。以下是完整核查记录。 查重无重复。开放 issue/PR 里没有其它涉及 pi.dev 头像/预览图的条目;相关项只有父 issue #698(优化请求)、#699(已合,原始 SVG 方案)、#700(已合,v0.1.104 发布)。本 PR 是针对「SVG 在 pi.dev 栅格管线里渲染不稳」这一独立缺陷的后续修复,目的与上述条目不同,单独处理合理。 审核(bug 类三步)
资产核验(本地实际执行)
Diff 整洁度干净。仅 2 个文件: CI初跑 6 项里 5 绿, 这是已知 flake 模式而非回归: 后续(需要你操作)
中文小结:PR 把 pi.dev 头像从 SVG 换成 1600×1000 的栅格 PNG(与预览框 16:10 精确匹配),我逐像素核验了图片完整性与 artwork 一致性、diff 干净无版本号变更、CI 唯一的 windows-22 失败经日志定位为已知时序 flake 且重跑已通过,可以合并。 |
Replace the generated geometric logo with the provided hero artwork (glowing crystal gem + wordmark + tagline) as the pi.dev listing preview. - docs/logo.png -> provided 1024x639 hero image (ratio 1.603 ~ 16:10, matches the pi.dev preview frame, no crop) - drop the now-superseded generated docs/logo.svg - pi.image -> docs/logo.png (raster, consistent with other listed packages) Content change, no version bump; ships in the next release once merged.
7fbfca2 to
eb88da9
Compare
pi.dev's stored record for billion-context still points pi.image at docs/logo.svg (the value as of v0.1.104), but ranxianglei#701 deleted that file -> 404 -> broken image on https://pi.dev/packages/billion-context. npm 0.1.105 already correctly points at docs/logo.png, but pi.dev has not re-indexed to it yet and exposes no self-serve re-index. Restore the SVG so the currently-cached reference resolves immediately (no new publish needed; raw.githubusercontent.com serves master directly). The hero PNG takes over automatically once pi.dev re-indexes 0.1.105. Lesson: don't delete an asset that a published version's metadata may still reference.
Follow-up to #698 (pi.dev listing).
The avatar/preview on pi.dev renders from
pi.imagethrough a raster-image pipeline, and every other working listed package uses png/jpg (e.g. pi-web-codex.jpg, @janvitos/pi-plan-build.png). Pointing it at the SVG rendered unreliably (screenshot feedback from @Dog).Changes:
pi.image->docs/logo.pngdocs/logo.svg, rendered at 1600x1000) to match the pi.dev preview-frame aspect ratioNo version bump (content change); ships in the next release once merged.
Pre-flight: metadata-only change; typecheck/test/build unaffected.