feat(mcp): emit catalog.json twin + carry returnsSchema in catalog

This commit is contained in:
DrSmoothl committed 2026-06-26 22:03:42 +08:00
1 parent 18014fb3c5
commit 5e0d2db8b2
4 files changed
+7709 -20

No files matched your search

+7
View File
@@ -29,4 +29,11 @@ it('generates src/generated/catalog.ts from the live action specs', () => {
const dir = new URL('../src/generated/', import.meta.url);
mkdirSync(dir, { recursive: true });
writeFileSync(new URL('../src/generated/catalog.ts', import.meta.url), body);
// Plain-JSON twin of the catalog, consumed by the docs site (SnowLumaDocs)
// via the sync-docs-catalog workflow. Same data as catalog.ts.
writeFileSync(
new URL('../src/generated/catalog.json', import.meta.url),
JSON.stringify({ actions, categories }, null, 2) + '\n',
);
});