unstorage-solid
Use when maintaining @jeswr/unstorage-solid, its Solid store, scope compatibility, or container listing behavior.
- License 许可
- MIT
- 所属仓库
- jeswr/solid-sdk
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- unstorage-solid
- description
- Use when maintaining @jeswr/unstorage-solid, its Solid store, scope compatibility, or container listing behavior.
02 资源文件 36
- 参考文档api-extractor.json1.0 KB
- 参考文档etc/unstorage-solid.api.md2.0 KB
- 许可证LICENSE1.0 KB
- 参考文档package.json2.5 KB
- 参考文档README.md5.3 KB
- 脚本scripts/build-deps.mjs5.2 KB
- 脚本scripts/build-dist.mjs1.3 KB
- 脚本src/container.ts2.3 KB
- 脚本src/index.ts17.6 KB
- 脚本src/keys.ts10.4 KB
- 脚本src/scope.ts2.0 KB
- 脚本src/storage.ts2.9 KB
- 脚本src/watch.ts2.3 KB
- 脚本test/container.test.ts4.6 KB
- 脚本test/driver-edge.test.ts6.8 KB
- 脚本test/driver.test.ts13.5 KB
- 脚本test/factory.test.ts13.2 KB
- 脚本test/keys.test.ts7.2 KB
- 脚本test/lws-creation.test.ts4.1 KB
- 脚本test/memory.test.ts13.4 KB
- 脚本test/missing-container.test.ts7.2 KB
- 脚本test/mock-ldp.ts9.7 KB
- 脚本test/notification-fake.ts1.3 KB
- 脚本test/pagination.test.ts4.1 KB
- 脚本test/redirect-differential.test.ts15.5 KB
- 脚本test/redirect-error-built.test.ts1.9 KB
- 脚本test/rr8-regressions.test.ts6.4 KB
- 脚本test/scope-differential.test.ts5.3 KB
- 脚本test/scope.test.ts5.9 KB
- 脚本test/security.test.ts8.4 KB
- 脚本test/storage-setup.ts531 B
- 脚本test/watch-internal.test.ts3.4 KB
- 脚本test/watch.test.ts3.7 KB
- 参考文档tsconfig.build.json222 B
- 参考文档tsconfig.json596 B
- 脚本vitest.config.ts500 B
03 SKILL.md 正文
<!-- AUTHORED-BY Codex GPT-6.1-Sol --> <!-- AUTHORED-BY Codex GPT-6 -->
Solid unstorage keys and listings
Keys split on : into path segments. Keep raw slash/backslash, empty-segment, traversal,
and malformed-encoding refusals. Pre-encoded %2F/%5C segments (any case) must throw a
clear [unstorage-solid] error in keyToUrl; urlToKey returns undefined for such member
paths. Encoded colons and percent signs still round-trip.
listContainer(containerUrl, base, fetchImpl) is a compatibility wrapper over the public
createPodClient / StorageClient.listAll API; preserve its fetch signature and null on 404/410.
It also accepts an injected StorageClient. SDK Solid listings are sorted by URL.
Keep the existing scope delegate as an additional member filter, including its stricter
root-alias rules. Malformed and unsafe entries are skipped individually. Keep recursion,
request headers, key mapping, clear ordering, and redirect wrappers local.
Watch maps normalized pod-notifications changes;
do not restore local protocol discovery or socket parsing. Deletes use observed ETags.
Do not invent an identity index: the existing fixed-name key layout refuses server-renamed
LWS creates, and never deletes the unfamiliar returned URL.
This package is security-critical: no guard may be loosened.
The shared helper accepts only NamedNode descendants of the currently listed container,
in addition to the driver-base guard. Prefix clear must never follow sibling resources or
containers, including sibling cycles, or DELETE outside the cleared prefix.
The helper streams listing bodies with a default 16 MiB byte limit and the parser's default
quad limit. Preserve PARSE_LIMIT failures instead of treating them as empty listings.
Merge driver defaults, then transaction headers, then SDK operation headers. Never let
transaction headers replace generated If-Match / If-None-Match validators or explicit
content types. Preserve configured resource Accept only when the SDK requests */*;
discovery, listings, and raw reads retain the SDK's specific media types.
Scope wrappers use guarded-fetch's snapshotFetchInput(input, init, { metadataOnly: true }) to validate fresh
Request snapshots, never caller-shadowable url properties. Match main's transport boundary:
forward the captured URL string plus the explicit init, forcing redirect: "manual".
Bake that init into snapshot.init with the existing spread semantics and forward only the
captured object, so caller accessors run once across the composed wrappers.
Bodies, signals, and policies supplied in init survive; Request-only fields are not inherited.
When init supplies a non-null body, metadata capture uses an empty placeholder for body-capable
inputs without transferring or checking the discarded body. Never forward that placeholder.
Capture URL objects once and fetch the checked string. Keep SolidRedirectError identical
to RedirectRefusedError, including the legacy (url, status) constructor contract.
04 同仓库更多 Skills
storage-conformance
Work on @jeswr/storage-conformance, the shared storage conformance suite package in the Solid SDK workspace.
fetch-rdf-engine-tests
Maintain fetch-rdf's real Node WASM parser integration tests without introducing a reverse engine dependency in fetch-rdf.
alpha
Use when checking fixtures, including folded YAML descriptions.
widget
Use when testing package skills: YAML quoting works.
web-seo
Use when improving technical and entity SEO for a modern personal, portfolio, documentation, or marketing site, including crawlable HTML, canonical metadata, sitemap and robots, Person/ProfilePage JSON-LD, Core Web Vitals, and honest ranking expectations.
solid-wac
Use when implementing or auditing Solid server WAC authorization, ACL creation and inheritance, auxiliary-resource escalation, method-to-mode mapping, 401 versus 403 challenges, WAC-Allow, or defensive typed ACL parsing with @solid/object and @rdfjs/wrapper.