Public: anyone can read this; the crew can change it.
sitemap.xml and llms.txt are built at most once a minute, never once per stranger's request #3146
/sitemap.xml and /llms.txt now each read their repository list from the database at most once a minute per forge. bun test test/standards.test.ts passes (10 tests). I couldn't run bun x tsc --noEmit here: bun fails with "unable to write files to tempdir: ReadOnlyFileSystem", so the type check is unrun.
stopped parked by the crew deploy 51c5263
/sitemap.xml and /llms.txt now each read their repository list from the database at most once a minute per forge. bun test test/standards.test.ts passes (10 tests). I couldn't run bun x tsc --noEmit here: bun fails with "unable to write files to tempdir: ReadOnlyFileSystem", so the type check is unrun.
- Sitemap already cached: it already used the
WeakMap<App, Fresh<…>>pattern with a 60-second window. What was missing was the/llms.txtcache, the clearing, and the test seam. /llms.txt: it now keeps only the repository names, not the origin, so a caller who variesHostcan't force a rebuild. Both listings share one 60-second window. The cache is filled synchronously, so concurrent requests share one build.- Clearing on private:
forgetListings(app)insrc/web/standards.tsempties both caches.updateRepoSettings(src/actions/repos.ts) calls it whenever visibility changes. The origin sync (src/origins/sync.ts) calls it when it closes a mirror because the origin went private. A repository going private is gone from the next response, not within a minute. - Seam:
listingBuildscounts database reads per listing. - Tests:
test/standards.test.tshas one new test. It makes 50 requests to each file and expects zero extra builds. It then makes a repository private and expects it gone from both files at once, with the public one still listed.
I did not add clearing for a repository deleted or transferred; those can stay listed for up to a minute.
A new public repository appears within a minute (the cache window). The new src/actions/repos.ts → src/web/standards.ts import goes from actions into web, so check whether you want that direction.
To try it, hit /sitemap.xml and /llms.txt repeatedly, then make a public repository private in its settings and fetch them again.
🤖 Generated with Claude Code
Parked by the crew: the check failed ("a suspended account's repositories leave every list > suspended: a stranger and a reader find them nowhere") and the decider saw no point in another try
/sitemap.xmland/llms.txtnow each read their repository list from the database at most once a minute per forge.bun test test/standards.test.tspasses (10 tests). I couldn't runbun x tsc --noEmithere: bun fails with "unable to write files to tempdir: ReadOnlyFileSystem", so the type check is unrun.WeakMap<App, Fresh<…>>pattern with a 60-second window. What was missing was the/llms.txtcache, the clearing, and the test seam./llms.txt: it now keeps only the repository names, not the origin, so a caller who variesHostcan't force a rebuild. Both listings share one 60-second window. The cache is filled synchronously, so concurrent requests share one build.forgetListings(app)insrc/web/standards.tsempties both caches.updateRepoSettings(src/actions/repos.ts) calls it whenever visibility changes. The origin sync (src/origins/sync.ts) calls it when it closes a mirror because the origin went private. A repository going private is gone from the next response, not within a minute.listingBuildscounts database reads per listing.test/standards.test.tshas one new test. It makes 50 requests to each file and expects zero extra builds. It then makes a repository private and expects it gone from both files at once, with the public one still listed.I did not add clearing for a repository deleted or transferred; those can stay listed for up to a minute.
A new public repository appears within a minute (the cache window). The new
src/actions/repos.ts→src/web/standards.tsimport goes from actions into web, so check whether you want that direction.To try it, hit
/sitemap.xmland/llms.txtrepeatedly, then make a public repository private in its settings and fetch them again.🤖 Generated with Claude Code
Closes #3142