Sites 0.3.0: library catalog #5
Loading…
Reference in a new issue
No description provided.
Delete branch "phase-8"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 8 of the Sites plan (spec S11): the library catalog.
latest) fromregistry.npmjs.org, fetched with an SSRF-guarded fetch limited to that host. The tarball is checked againstdist.integrity(sha512) before anything is kept. The page shows the license; the operator picks files (no HTML; at most 300 files and 60 MiB per library) and sets the kind (ES module / classic script / stylesheet), the entry file and the import alias.{v:1, kind:'libs', files}with paths<id>/<version>/…, canonical and content-addressed. It goes into every target's desired state (payload.libs), andreferencedBymakes it and its objects fetchable for that target's deployer only./_lib/…from the store withimmutablecaching. Publish checks now receive the catalog, solib-unknownfires only for libraries that are really missing.script.jsfor modules; for classic libraries, the entry first and then any add-ons.dist/packages/unsafe-eval.min.js. Checked in headless Chromium under the exact site CSP: PixiJS 8.23 renders through WebGL with no CSP violation. The ESM build fails there (script-src eval), so it is not suggested.Tests: tar reader (pax/prefix/links), snippets, integrity mismatch, file and entry rules. A store and Redis case covers the full path: catalog → desired state → deployer references → preview
/_lib/→ publish check → removal. Pack suite 58/58.🤖 Generated with Claude Code