@devries-cameron20 / composio-1 / commits / 1b716d09a
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.

docs: exclude bare JavaScript library names from links

Sushmitha committed Oct 13, 2026 at 00:13 UTC 1b716d09a4390bc090b22c1bc895aa8785a6389d
1 file changed +4 -1
docs/lib/description-links.ts
+4 -1
@@ -16,7 +16,10 @@ export function descriptionLinks(description: string): DescriptionPart[] {
16 text = text.slice(0, -1);
17 }
18 text = text.replace(/[\]}]+$/, '');
19 - const href = /^https?:\/\//i.test(text) ? text : `https://${text}`;
19 + const explicitUrl = /^https?:\/\//i.test(text);
20 + // Bare .js names refer to JavaScript libraries (for example, Chart.js and Node.js).
21 + if (!explicitUrl && /^[^/?#:]+\.js(?:[/?#:]|$)/i.test(text)) continue;
22 + const href = explicitUrl ? text : `https://${text}`;
23 try {
24 new URL(href);
25 } catch {