pod-type-index
Use when discovering or registering Solid classes with @jeswr/pod-type-index, using LWS type index/search services and creation hints, or maintaining this package.
- License 许可
- MIT
- 所属仓库
- jeswr/solid-sdk
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- pod-type-index
- description
- Use when discovering or registering Solid classes with @jeswr/pod-type-index, using LWS type index/search services and creation hints, or maintaining this package.
02 资源文件 15
- 参考文档package.json1.1 KB
- 参考文档README.md4.7 KB
- 脚本src/common.ts2.6 KB
- 脚本src/index.test.ts2.8 KB
- 脚本src/index.ts1.7 KB
- 脚本src/lws.test.ts13.4 KB
- 脚本src/lws.ts6.8 KB
- 脚本src/rdf.ts2.4 KB
- 脚本src/solid.test.ts21.1 KB
- 脚本src/solid.ts10.3 KB
- 脚本src/testing.ts195 B
- 脚本src/types.ts1.8 KB
- 脚本src/validation.test.ts3.6 KB
- 参考文档tsconfig.json251 B
- 脚本vitest.config.ts524 B
03 SKILL.md 正文
<!-- AUTHORED-BY Codex GPT-6.1-Sol --> <!-- AUTHORED-BY Codex GPT-6 -->
@jeswr/pod-type-index
Read README.md and skills/solid-type-index/SKILL.md before changing this package.
createTypeIndex({ storage, features, profile, fetch? }) exposes find, findAll, register,
unregister, and LWS listClasses. The factory is synchronous and performs no requests.
Use only the public storage-client surface for storage I/O. The optional guarded authenticated
fetch is exclusively for LWS QUERY; absence fails closed. Never reach into storage backends.
Solid public pointers live on the WebID subject in the profile. Private pointers live on the same
subject in preferences reached through pim:preferencesFile. Read/maintain direct private profile
pointers for older clients. Bootstrap only confirmed 404s with exact-name create; require observed
strong ETags for edits. Re-read and reconcile on conflict with at most two retries. New writes use
suite-vocab canonical classes, typed TermWrapper/SetFrom construction, and N3 serialization.
Do not overwrite an unreadable document or grant permissions implicitly. The caller's access layer
must provision owner-only private destinations. Preserve profile readability and unrelated RDF.
Find all requested classes with one request per Solid document. Accept legacy namespace aliases, return scoped instances and containers, and avoid container crawling. Unregister requires an exact location; preserve unrelated registrations/annotations and reject ambiguous registrations.
LWS TypeSearchService uses QUERY with application/lws-query+json and an OR group of requested
classes plus aliases. Responses are application/lws+json ContainerPage; subsequent opaque page
links use GET. TypeIndexService uses GET and TypeIndex pages. Register returns an object whose
links can be spread into storage.create; unregister is a no-op. Never edit server-managed types.
Scope all URLs, forbid redirects, bound pages/body sizes, and reject overflow rather than truncating.
This is a security-critical package with 100% statement, branch, function, and line thresholds. Use memory storage and injected transports for regression/adversarial tests. Build dependencies first, then run this package's lint, build, typecheck, and test scripts plus the repository gates.
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.