@devries-cameron20 / composio Mirror · read-only / commits / 17ff9cce8
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 21, 13:30 UTC

docs: expose release notes from agent-readable pages

Brendan O'Leary committed Sep 10, 2026 at 11:21 UTC 17ff9cce8514b17c8784a214c8950c21e6df92d8
4 files changed +33 -2
docs/app/llms-full.txt/route.ts
+1 -1
@@ -166,7 +166,7 @@ export async function GET() {
166 ]);
167
168 const results = [
169 - `# Composio Documentation\n\n> Composio powers ${TOOLKIT_COUNT_LABEL} toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.${SESSION_GUARDRAILS}\n# Documentation\n`,
169 + `# Composio Documentation\n\n> Composio powers ${TOOLKIT_COUNT_LABEL} toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.${SESSION_GUARDRAILS}\n\n[Changelog](https://docs.composio.dev/docs/changelog.md): Browse dated release notes and follow each date for its full Markdown.\n# Documentation\n`,
170 ...docsResults,
171 '\n# Knowledge Hub navigation\n',
172 knowledgeDiscoveryLinks,
docs/lib/source.ts
+1 -1
@@ -588,7 +588,7 @@ ${page.data.description || ''}`;
588 }
589
590 const footer = includeFooter
591 - ? `\n\n---\n\n📚 **More documentation:** [View all docs](https://docs.composio.dev/llms.txt) | [Glossary](https://docs.composio.dev/llms.mdx/reference/glossary) | [Examples](https://docs.composio.dev/llms.mdx/examples) | [API Reference](https://docs.composio.dev/llms.mdx/reference)`
591 + ? `\n\n---\n\n📚 **More documentation:** [View all docs](https://docs.composio.dev/llms.txt) | [Changelog](https://docs.composio.dev/docs/changelog.md) | [Glossary](https://docs.composio.dev/llms.mdx/reference/glossary) | [Examples](https://docs.composio.dev/llms.mdx/examples) | [API Reference](https://docs.composio.dev/llms.mdx/reference)`
592 : '';
593
594 // Legacy pages (frontmatter `legacy: true`) document point-in-time migrations
docs/tests/integration/changelog-discovery.test.ts new
+18
@@ -0,0 +1,18 @@
1 +import { expect, test } from 'bun:test';
2 +import { fetchPage } from './helpers';
3 +
4 +test('an agent can discover the changelog and read a dated release', async () => {
5 + const quickstart = await fetchPage('/docs/quickstart.md');
6 + expect(quickstart.status).toBe(200);
7 + expect(await quickstart.text()).toContain('https://docs.composio.dev/docs/changelog.md');
8 + const index = await fetchPage('/docs/changelog.md');
9 + expect(index.status).toBe(200);
10 + expect(index.headers.get('content-type')).toContain('text/markdown');
11 + const text = await index.text();
12 + const dated = text.match(/https:\/\/docs\.composio\.dev(\/docs\/changelog\/\d{4}\/\d{2}\/\d{2}\.md)/);
13 + expect(dated).not.toBeNull();
14 + const release = await fetchPage(dated![1]);
15 + expect(release.status).toBe(200);
16 + expect(release.headers.get('content-type')).toContain('text/markdown');
17 + expect((await release.text()).length).toBeGreaterThan(200);
18 +});
docs/tests/static/changelog-discovery.test.ts new
+13
@@ -0,0 +1,13 @@
1 +import { expect, test } from 'bun:test';
2 +import { getLLMText } from '../../lib/source';
3 +import { readFileSync } from 'node:fs';
4 +
5 +test('page Markdown and the full corpus route agents to dated release notes', async () => {
6 + const markdown = await getLLMText({
7 + url: '/docs/quickstart',
8 + data: { title: 'Quickstart', getText: async () => 'Install the SDK.' },
9 + });
10 + expect(markdown).toContain('[Changelog](https://docs.composio.dev/docs/changelog.md)');
11 + expect(readFileSync('app/llms-full.txt/route.ts', 'utf8'))
12 + .toContain('[Changelog](https://docs.composio.dev/docs/changelog.md)');
13 +});