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

Test updates

Brendan O'Leary committed Sep 22, 2026 at 09:56 UTC 9136807ef5cf4444508e523bd1c9477466d33ac6
3 files changed +9 -13
docs/lib/home-navigation.ts
+5 -9
@@ -1,6 +1,6 @@
1 export type DocsProduct = 'for-you' | 'platform';
2
3 -export type ProductSidebarGroupLink =
3 +type ProductSidebarGroupLink =
4 | { type?: 'page'; url: string; label?: string }
5 | { type: 'folder'; path: string; label?: string }
6 | { type: 'link'; url: string; label: string; external?: boolean };
@@ -43,17 +43,13 @@ interface DocsProductConfig {
43 home: Omit<HomeIntent, 'productId' | 'product'>;
44 }
45
46 -const SHARED_SIDEBAR_ITEMS: readonly ProductSidebarItem[] = [
46 +const SHARED_SIDEBAR_ITEMS = [
47 { type: 'page', url: '/docs/using-composio-skill' },
48 { type: 'folder', path: 'security', label: 'Security and data' },
49 -];
49 +] as const satisfies readonly ProductSidebarItem[];
50
51 -const SHARED_ROUTE_PREFIXES = SHARED_SIDEBAR_ITEMS.flatMap(item =>
52 - item.type === 'page' || item.type === 'link'
53 - ? [item.url]
54 - : item.type === 'folder'
55 - ? [`/docs/${item.path}`]
56 - : item.links.map(link => (link.type === 'folder' ? `/docs/${link.path}` : link.url))
51 +const SHARED_ROUTE_PREFIXES = SHARED_SIDEBAR_ITEMS.map(item =>
52 + item.type === 'page' ? item.url : `/docs/${item.path}`
53 );
54
55 /**
docs/tests/static/product-navigation.test.ts
+3 -3
@@ -137,13 +137,13 @@ describe('Docs product navigation', () => {
137 expect(platformUrls).toContain('/docs/agent-setup');
138
139 const agentGuides = platformTree.children.find(
140 - node => node.type === 'folder' && node.name === 'Agent guides',
140 + node => node.type === 'folder' && node.name === 'Guides & Examples',
141 );
142 expect(agentGuides?.type).toBe('folder');
143 - if (agentGuides?.type !== 'folder') throw new Error('Agent guides group is missing');
143 + if (agentGuides?.type !== 'folder') throw new Error('Guides & Examples group is missing');
144 expect(agentGuides.index?.url).toBe('/docs/consumer-agents');
145 expect(agentGuides.children.map(node => node.type === 'page' ? node.url : null)).toEqual(
146 - ['/docs/consumer-agents', '/docs/b2b-agents'],
146 + ['/docs/consumer-agents', '/docs/b2b-agents', '/examples'],
147 );
148 expect(platformUrls.filter(url => url === '/docs/consumer-agents')).toHaveLength(1);
149
docs/tests/static/sidebar-nav-index.test.ts
+1 -1
@@ -46,7 +46,7 @@ describe('buildSidebarNavIndex', () => {
46 group: 'Core concepts',
47 folder: 'Authentication',
48 depth: 1,
49 - position: index['/docs/configuring-sessions'].position + 1,
49 + position: index['/docs/toolkits'].position + 1,
50 });
51 });
52