From 5f51bf1b8ff4982ceef0c1ff8316b8b80c52416b Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Thu, 20 Aug 2026 13:04:12 +0200 Subject: [PATCH] fix: flag react-postprocessing and a11y as publishing a llms-full.txt Both sites serve `/llms-full.txt` today -- react-postprocessing has for a while, a11y since pmndrs/react-three-a11y#55 moved its build to v4 -- so `browse`, `search` and the MCP server can read them. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_0189fTPDjQHrqHxdaMkKCcEC --- .changeset/tidy-moons-report.md | 7 +++++++ src/app/api/[transport]/route.test.ts | 19 +++++++++---------- src/libs.ts | 2 ++ 3 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 .changeset/tidy-moons-report.md diff --git a/.changeset/tidy-moons-report.md b/.changeset/tidy-moons-report.md new file mode 100644 index 00000000..e634e6a5 --- /dev/null +++ b/.changeset/tidy-moons-report.md @@ -0,0 +1,7 @@ +--- +'@pmndrs/docs': patch +--- + +Read `react-postprocessing` and `a11y` in `browse` and over MCP. Both sites publish a +`llms-full.txt` now — react-postprocessing has for a while, a11y since its build moved to v4 — +so the flag was simply behind the world. diff --git a/src/app/api/[transport]/route.test.ts b/src/app/api/[transport]/route.test.ts index e449e290..99bf6859 100644 --- a/src/app/api/[transport]/route.test.ts +++ b/src/app/api/[transport]/route.test.ts @@ -197,7 +197,14 @@ describe('MCP Route Handler', () => { .filter(([, lib]) => 'llms_full' in lib && lib.llms_full) .map(([libname]) => libname) - expect(exposed).toEqual(['react-three-fiber', 'drei', 'zustand', 'docs']) + expect(exposed).toEqual([ + 'react-three-fiber', + 'drei', + 'zustand', + 'a11y', + 'react-postprocessing', + 'docs', + ]) }) it('should exclude pmndrs.github.io libraries that publish no llms-full.txt', async () => { @@ -206,15 +213,7 @@ describe('MCP Route Handler', () => { // Regression: these are hosted on pmndrs.github.io but are not built with this // generator, so `${docs_url}/llms-full.txt` 404s. Selecting on the host alone // used to expose them with a silently empty index. - for (const libname of [ - 'a11y', - 'react-postprocessing', - 'uikit', - 'xr', - 'prai', - 'viverse', - 'leva', - ] as const) { + for (const libname of ['uikit', 'xr', 'prai', 'viverse', 'leva'] as const) { const lib = libs[libname] expect(lib.docs_url).toContain('pmndrs.github.io') expect('llms_full' in lib && lib.llms_full).toBeFalsy() diff --git a/src/libs.ts b/src/libs.ts index 09ca2fc8..f19aa368 100644 --- a/src/libs.ts +++ b/src/libs.ts @@ -67,12 +67,14 @@ export const libs = { github: 'https://github.com/pmndrs/react-three-a11y', description: '@react-three/a11y brings accessibility to webGL with easy-to-use react-three-fiber components', + llms_full: true, }, 'react-postprocessing': { title: 'React Postprocessing', docs_url: 'https://pmndrs.github.io/react-postprocessing', github: 'https://github.com/pmndrs/react-postprocessing', description: 'React Postprocessing is a postprocessing wrapper for @react-three/fiber', + llms_full: true, }, uikit: { title: 'uikit',