@devries-cameron20 / composio Mirror · read-only / commits / c0da07e0b
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 08:15 UTC

fix: use async getReferenceSource to include OpenAPI-generated pages

The link checker was using the static referenceSource which only includes MDX pages, missing all OpenAPI-generated API endpoint pages. Switch to getReferenceSource() which merges both MDX and OpenAPI pages. Eliminates 67 false positives from API reference index pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 17, 2026 at 19:57 UTC c0da07e0b5b658717905aa1b4b0b386b9f97dd9f
1 file changed +4 -2
docs/scripts/validate-links.ts
+4 -2
@@ -8,14 +8,14 @@ import {
8 } from 'next-validate-link';
9 import {
10 source,
11 - referenceSource,
11 + getReferenceSource,
12 cookbooksSource,
13 toolkitsSource,
14 } from '../lib/source';
15
16 type AnySource =
17 | typeof source
18 - | typeof referenceSource
18 + | Awaited<ReturnType<typeof getReferenceSource>>
19 | typeof cookbooksSource
20 | typeof toolkitsSource;
21
@@ -87,6 +87,7 @@ async function buildPopulateEntries(src: AnySource) {
87 }
88
89 async function checkLinks() {
90 + const referenceSource = await getReferenceSource();
91 const [docsEntries, refEntries, cookbookEntries, toolkitEntries] = await Promise.all([
92 buildPopulateEntries(source),
93 buildPopulateEntries(referenceSource),
@@ -132,6 +133,7 @@ async function checkLinks() {
133 }
134
135 async function getFiles(): Promise<FileObject[]> {
136 + const referenceSource = await getReferenceSource();
137 const sources = [source, referenceSource, cookbooksSource, toolkitsSource];
138 const allFiles: FileObject[] = [];
139