Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(docs): Emit folder names as headings in llms.txt
Sushmithamallesha41a205936f9
diff --git a/docs/app/llms.txt/route.ts b/docs/app/llms.txt/route.tsindex 5b9da8450..c11685530 100644--- a/docs/app/llms.txt/route.ts+++ b/docs/app/llms.txt/route.ts@@ -44,11 +44,15 @@ function walkPageTree(nodes: TreeNode[], depth = 2): string {break;case 'folder':+ // Emit folder name as a heading to preserve sidebar hierarchy+ if (node.name) {+ lines.push(`${'#'.repeat(depth)} ${String(node.name)}`, '');+ }// If folder has an index page, include itif (node.index) {lines.push(`- https://docs.composio.dev${node.index.url}.md`);}- // Recurse into children+ // Recurse into children at deeper depth for hierarchyif (node.children.length > 0) {lines.push(walkPageTree(node.children, depth + 1));}