fix: restore docs/logo.svg so cached pi.dev preview reference resolves - #703
Conversation
pi.dev's stored record for billion-context still points pi.image at docs/logo.svg (the value as of v0.1.104), but #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.
📦 Built Package ArtifactBranch: Option A — Install from npm PR tag (recommended)npm install -g billion-context@pr-703Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pr703.tgz
npm install -g packageThis comment is automatically updated on each push. |
[bot] 🏷 Reviewed PR #703 against the code and live endpoints. Verdict: clean, correct, merge-ready. Bug triage (root cause verified with evidence):
Diff review:
Why the fix works: pi.dev serves the preview straight from Optional follow-up (non-blocking): after pi.dev has re-indexed 0.1.105, I can't merge (human-only per repo rules). Please merge when ready: #703 中文摘要: 该 PR 恢复了被 #701 删除的 |
Fixes the broken image on https://pi.dev/packages/billion-context (图片加载失败).
Root cause (verified):
pi.image->docs/logo.png, and that PNG returns HTTP 200 (image/png, 1055148 B).docs/logo.svg(the value from v0.1.104), but fix: serve raster PNG for pi.dev preview image instead of SVG #701 deleted that file -> 404 -> broken image. pi.dev has not re-indexed to 0.1.105 yet and exposes no self-serve re-index button; its preview-media edge cache is onlymax-age=300.Fix: restore
docs/logo.svgso the currently-cached reference resolves immediately. No new publish needed — raw.githubusercontent.com serves master directly, so within ~5 min the broken image becomes the (older) SVG, and it flips to the hero PNG automatically once pi.dev re-indexes 0.1.105.Content change, no version bump.