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

feat(llms): add llms-txt generation and deployment scripts

- Introduced a new package for generating and deploying llms.txt. - Added scripts for building, deploying, and watching for changes in llms-txt. - Updated the main package.json and turbo.json to include llms build tasks. - Enhanced the documentation structure by creating a comprehensive llms.txt file from existing documentation. - Integrated Cloudflare API tokens into the workflow for deployment.

balyan.sid@gmail.com committed Jul 29, 2025 at 18:38 UTC 8926accf1218a1453d756b1a12ea7ae1cfbc8a8d
10 files changed +693 -5
.github/workflows/publish_docs.yml
+2
@@ -35,4 +35,6 @@ jobs:
35 POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
36 FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
37 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38 + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
39 + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
40 run: pnpm turbo run publish
fern/llms-txt/package.json new
+15
@@ -0,0 +1,15 @@
1 +{
2 + "name": "composio-docs-proxy",
3 + "version": "0.0.0",
4 + "private": true,
5 + "scripts": {
6 + "build": "echo 'llms.txt generated by parent turbo task'",
7 + "deploy": "wrangler deploy",
8 + "publish": "wrangler deploy",
9 + "dev": "wrangler dev",
10 + "start": "wrangler dev"
11 + },
12 + "devDependencies": {
13 + "wrangler": "^4.26.1"
14 + }
15 +}
\ No newline at end of file
fern/llms-txt/public/llms.txt new
+57
@@ -0,0 +1,57 @@
1 +# Composio Docs
2 +
3 +## Docs
4 +
5 +- [Welcome](https://docs.composio.dev/docs/welcome)
6 +- [Quickstart](https://docs.composio.dev/docs/quickstart): Add authenticated tool-calling to any LLM agent in three steps.
7 +- [IDE and Agent Setup](https://docs.composio.dev/docs/dev-setup): Cursor is an AI-powered code editor that can significantly accelerate your development with Composio. Here's how to set it up optimally.
8 +- [Providers](https://docs.composio.dev/docs/providers): Think of providers as translators. Different AI frameworks (like OpenAI, Anthropic Claude, or LangChain) expect tools to be formatted in their spec...
9 +- [Executing Tools](https://docs.composio.dev/docs/executing-tools): For non-agent providers—such as OpenAI, Anthropic, and Google AI—you can process tool calls using the tool call handlers provided by the Composio SDK.
10 +- [Authenticating Tools](https://docs.composio.dev/docs/authenticating-tools): Each toolkit comes with its own _auth config_.
11 +- [Fetch and Filter Tools](https://docs.composio.dev/docs/fetching-tools): Toolkits are collections of tools from a specific app!
12 +- [Schema Modifiers](https://docs.composio.dev/docs/schema-modifiers): Schema modifiers transform a tool's schema before the tool is seen by an agent.
13 +- [Before Tool Execution](https://docs.composio.dev/docs/before-execution): These modifiers are called before the tool is executed by the LLM. This allows you to modify the _arguments_ called by the LLM before they are exec...
14 +- [After Tool Execution](https://docs.composio.dev/docs/after-execution): These modifiers are called after the tool is executed by the LLM. This allows you to modify the _result_ of the tool before it is returned to the a...
15 +- [Custom tools](https://docs.composio.dev/docs/custom-tools): A standalone tool is the simplest form of custom tool. It only requires input parameters and an execute function:
16 +- [Custom Auth Configs](https://docs.composio.dev/docs/custom-auth-configs): Some apps, like PostHog, Hubspot, Linear, etc. allow customizing the auth config for your usage.
17 +- [Programmatic Auth Configs](https://docs.composio.dev/docs/programmatic-auth-configs): Since OAuth2 is the most common authentication type for applications, Composio provides managed auth for most OAuth2 based applications.
18 +- [Custom Auth Parameters](https://docs.composio.dev/docs/custom-auth-params): First, initialize the Composio SDK with your API key:
19 +- [Using Triggers](https://docs.composio.dev/docs/using-triggers): Head to any app that supports triggers, such as Slack in the dashboard and enable the trigger of choice.
20 +- [Composio MCP Servers](https://docs.composio.dev/docs/mcp-overview): Our MCP SDK features an intuitive, powerful, and developer-friendly API:
21 +- [Developers](https://docs.composio.dev/docs/mcp-developers): - Create and Configure Toolkit permissions:
22 +- [Partner Program](https://docs.composio.dev/docs/mcp-partner-api): As a partner, you receive:
23 +- [Providers](https://docs.composio.dev/docs/mcp-providers): The Mastra Provider is tailored for the Mastra TypeScript-native agent framework. This client provides a getServer method to obtain the Composio MC...
24 +- [Migration Guide](https://docs.composio.dev/docs/migration): A lot of the changes are on the infra side, but from the SDK point of view, here is what you can expect:
25 +- [Basic Hono Server](https://docs.composio.dev/examples/sample-webserver): A simple example of a web server that uses the Composio SDK to call tools.
26 +- [Full Stack Chat App](https://docs.composio.dev/examples/chat-app): Ensure you've followed the README.md in the composiohq/chat repository to set up the project locally.
27 +- [AI Gmail Labeller](https://docs.composio.dev/examples/gmail-reaper): - Clone the filter-gmails-example repository and set the project up locally.
28 +- [Tool Generator](https://docs.composio.dev/examples/tool-generator): An example that show you how to showcase auth scheme and action params for tools
29 +- [OpenAI Provider](https://docs.composio.dev/providers/openai.mdx): By default, the OpenAI Provider is installed when you install the Composio SDK. You can also install it manually:
30 +- [Anthropic Provider](https://docs.composio.dev/providers/anthropic.mdx): The Anthropic provider can be installed for both SDKs.
31 +- [Google Provider](https://docs.composio.dev/providers/google.mdx): The Google Gen AI SDK and theprovider can only be installed for the Python SDK.
32 +- [LangChain Provider](https://docs.composio.dev/providers/langchain.mdx): pip install composio_langchain==0.8.0 langchain
33 +- [CrewAI Provider](https://docs.composio.dev/providers/crewai.mdx): The CrewAI Provider formats the Composio tools into an object compatible with CrewAI's tool calling capabilities. Agents and LLM workflows built wi...
34 +- [Vercel AI SDK Provider](https://docs.composio.dev/providers/vercel.mdx): Vercel AI SDK and the provider are only available for the TypeScript SDK.
35 +- [OpenAI Agents Provider](https://docs.composio.dev/providers/openai-agents.mdx): The OpenAI Agents Provider is a provider that formats the Composio tools into an object compatible with OpenAI's Agents API.
36 +- [Mastra Provider](https://docs.composio.dev/providers/mastra.mdx): npm install @composio/mastra
37 +- [TypeScript](https://docs.composio.dev/providers/custom/typescript): The Composio SDK uses a provider architecture to adapt tools for different AI frameworks. The provider handles:
38 +- [Python](https://docs.composio.dev/providers/custom/python): The Composio SDK uses a provider architecture to adapt tools for different AI frameworks. The provider handles:
39 +- [Introduction](https://docs.composio.dev/tools/introduction.mdx)
40 +- [Premium Tools](https://docs.composio.dev/tools/src/premium-tools.mdx): Premium tools are essential tool calls that cost us more to run, normally paying for more premium services or longer running tasks.
41 +- [Github](https://docs.composio.dev/tools/github): GitHub is a code hosting platform for version control and collaboration, offering Git-based repository management, issue tracking, and continuous i...
42 +- [Gmail](https://docs.composio.dev/tools/gmail): Gmail is Google’s email service, featuring spam protection, search functions, and seamless integration with other G Suite apps for productivity
43 +- [Notion](https://docs.composio.dev/tools/notion): Notion centralizes notes, docs, wikis, and tasks in a unified workspace, letting teams build custom workflows for collaboration and knowledge manag...
44 +- [Googlecalendar](https://docs.composio.dev/tools/googlecalendar): SLUG: GOOGLECALENDAR
45 +- [Composio](https://docs.composio.dev/tools/composio): Composio enables AI Agents and LLMs to authenticate and integrate with various tools via function calling.
46 +- [Python SDK Reference](https://docs.composio.dev/sdk-reference/python/sdk-reference.md): This is the comprehensive SDK reference for the Composio Python SDK.
47 +- [Composio](https://docs.composio.dev/sdk-reference/type-script/composio/classes/Composio.mdx): Defined in: ts/packages/core/src/composio.ts:82
48 +- [ComposioProvider](https://docs.composio.dev/sdk-reference/type-script/provider/ComposioProvider/classes/ComposioProvider.mdx): Defined in: ts/packages/core/src/provider/ComposioProvider.ts:14
49 +- [OpenAIProvider](https://docs.composio.dev/sdk-reference/type-script/provider/OpenAIProvider/classes/OpenAIProvider.mdx): Defined in: ts/packages/core/src/provider/OpenAIProvider.ts:22
50 +- [BaseAgenticProvider](https://docs.composio.dev/sdk-reference/type-script/provider/BaseProvider/classes/BaseAgenticProvider.mdx): Defined in: ts/packages/core/src/provider/BaseProvider.ts:106
51 +- [BaseNonAgenticProvider](https://docs.composio.dev/sdk-reference/type-script/provider/BaseProvider/classes/BaseNonAgenticProvider.mdx): Defined in: ts/packages/core/src/provider/BaseProvider.ts:80
52 +- [Tools](https://docs.composio.dev/sdk-reference/type-script/models/Tools/classes/Tools.mdx): Defined in: ts/packages/core/src/models/Tools.ts:53
53 +- [Toolkits](https://docs.composio.dev/sdk-reference/type-script/models/Toolkits/classes/Toolkits.mdx): Defined in: ts/packages/core/src/models/Toolkits.ts:31
54 +- [Triggers](https://docs.composio.dev/sdk-reference/type-script/models/Triggers/classes/Triggers.mdx): Defined in: ts/packages/core/src/models/Triggers.ts:39
55 +- [AuthConfigs](https://docs.composio.dev/sdk-reference/type-script/AuthConfigs/classes/AuthConfigs.mdx): Defined in: ts/packages/core/src/models/AuthConfigs.ts:43
56 +- [ConnectedAccounts](https://docs.composio.dev/sdk-reference/type-script/ConnectedAccounts/classes/ConnectedAccounts.mdx): Defined in: ts/packages/core/src/models/ConnectedAccounts.ts:42
57 +- [CustomTools](https://docs.composio.dev/sdk-reference/type-script/CustomTools/classes/CustomTools.mdx): Defined in: ts/packages/core/src/models/CustomTools.ts:37
fern/llms-txt/src/index.js new
+13
@@ -0,0 +1,13 @@
1 +export default {
2 + async fetch(request, env, ctx) {
3 + const url = new URL(request.url);
4 +
5 + // Serve static llms.txt
6 + if (url.pathname === '/llms.txt') {
7 + return env.ASSETS.fetch(request);
8 + }
9 +
10 + // Everything else — proxy to origin that docs.composio.dev points to
11 + return fetch(request);
12 + }
13 +}
\ No newline at end of file
fern/llms-txt/turbo.json new
+14
@@ -0,0 +1,14 @@
1 +{
2 + "$schema": "https://turbo.build/schema.json",
3 + "extends": ["//"],
4 + "tasks": {
5 + "build": {
6 + "cache": false
7 + },
8 + "publish": {
9 + "dependsOn": ["^build"],
10 + "cache": false,
11 + "env": ["CLOUDFLARE_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID"]
12 + }
13 + }
14 +}
\ No newline at end of file
fern/llms-txt/wrangler.jsonc new
+13
@@ -0,0 +1,13 @@
1 +{
2 + "$schema": "node_modules/wrangler/config-schema.json",
3 + "name": "composio-docs-proxy",
4 + "main": "src/index.js",
5 + "compatibility_date": "2025-07-26",
6 + "assets": {
7 + "directory": "./public/",
8 + "binding": "ASSETS"
9 + },
10 + "routes": [
11 + { "pattern": "docs.composio.dev/*", "zone_name": "composio.dev" }
12 + ]
13 + }
\ No newline at end of file
fern/package.json
+4 -1
@@ -28,7 +28,10 @@
28 "publish": "fern generate --docs",
29 "generate": "pnpm tools:generate && pnpm sdkdocs",
30 "snippet:new": "bun run scripts/snippet-new.ts",
31 - "doc:new": "bun run scripts/doc-new.ts"
31 + "doc:new": "bun run scripts/doc-new.ts",
32 + "llms:build": "bun run scripts/build-llms-txt.ts",
33 + "llms:dev": "bun run scripts/build-llms-txt.ts --watch",
34 + "llms:deploy": "cd llms-txt && npx wrangler deploy"
35 },
36 "dependencies": {
37 "fern-api": "^0.51.39",
fern/scripts/build-llms-txt.ts new
+335
@@ -0,0 +1,335 @@
1 +#!/usr/bin/env bun
2 +/* eslint-disable no-console */
3 +
4 +import fs from 'fs';
5 +import path from 'path';
6 +import yaml from 'yaml';
7 +import { watch } from 'fs';
8 +
9 +// Define directories
10 +const FERN_DIR = path.join(import.meta.dir, '..');
11 +const DOCS_YML_PATH = path.join(FERN_DIR, 'docs.yml');
12 +const LLMS_TXT_PATH = path.join(FERN_DIR, 'llms-txt', 'public', 'llms.txt');
13 +const PAGES_DIR = path.join(FERN_DIR, 'pages');
14 +const TOOLS_DIR = path.join(FERN_DIR, 'tools');
15 +
16 +interface DocsConfig {
17 + title: string;
18 + navigation: Array<{
19 + tab: string;
20 + layout?: LayoutItem[];
21 + }>;
22 + tabs?: {
23 + [key: string]: {
24 + 'display-name': string;
25 + 'skip-slug'?: boolean;
26 + };
27 + };
28 +}
29 +
30 +interface LayoutItem {
31 + section?: string;
32 + contents?: ContentItem[];
33 + page?: string;
34 + path?: string;
35 + slug?: string;
36 +}
37 +
38 +interface ContentItem {
39 + page?: string;
40 + path?: string;
41 + slug?: string;
42 + section?: string;
43 + contents?: ContentItem[];
44 +}
45 +
46 +interface LlmsEntry {
47 + title: string;
48 + url: string;
49 + description?: string;
50 +}
51 +
52 +// Extract description from MDX content
53 +function extractDescription(mdxPath: string): string | undefined {
54 + try {
55 + const fullPath = path.join(FERN_DIR, mdxPath);
56 + if (!fs.existsSync(fullPath)) {
57 + console.warn(`⚠️ File not found: ${fullPath}`);
58 + return undefined;
59 + }
60 +
61 + const content = fs.readFileSync(fullPath, 'utf8');
62 +
63 + // Try to extract from frontmatter description
64 + const frontmatterMatch = content.match(/^---\s*\n([\s\S]*?)\n---/);
65 + if (frontmatterMatch) {
66 + const frontmatter = frontmatterMatch[1];
67 + const descMatch = frontmatter.match(/description:\s*["']?(.+?)["']?\s*$/m);
68 + if (descMatch) {
69 + return descMatch[1].trim();
70 + }
71 + }
72 +
73 + // Extract first meaningful paragraph after the title
74 + const lines = content.split('\n');
75 + let inFrontmatter = false;
76 + let foundTitle = false;
77 + let description = '';
78 +
79 + for (const line of lines) {
80 + const trimmedLine = line.trim();
81 +
82 + // Handle frontmatter
83 + if (trimmedLine === '---') {
84 + inFrontmatter = !inFrontmatter;
85 + continue;
86 + }
87 +
88 + if (inFrontmatter) continue;
89 +
90 + // Skip titles
91 + if (trimmedLine.startsWith('#')) {
92 + foundTitle = true;
93 + continue;
94 + }
95 +
96 + // Skip empty lines, code blocks, and JSX
97 + if (!trimmedLine ||
98 + trimmedLine.startsWith('```') ||
99 + trimmedLine.startsWith('<') ||
100 + trimmedLine.startsWith('import ') ||
101 + trimmedLine.startsWith('export ')) {
102 + continue;
103 + }
104 +
105 + // Found a paragraph
106 + if (foundTitle && trimmedLine.length > 20) {
107 + description = trimmedLine;
108 + break;
109 + }
110 + }
111 +
112 + // Clean up the description
113 + if (description) {
114 + // Remove MDX components and markdown syntax
115 + description = description
116 + .replace(/<[^>]+>/g, '') // Remove HTML/JSX tags
117 + .replace(/\[([^\]]+)\]\([^)]+\)/g, '$1') // Convert [text](url) to text
118 + .replace(/`([^`]+)`/g, '$1') // Remove inline code backticks
119 + .replace(/\*\*([^*]+)\*\*/g, '$1') // Remove bold
120 + .replace(/\*([^*]+)\*/g, '$1') // Remove italic
121 + .trim();
122 +
123 + // Truncate if too long
124 + if (description.length > 150) {
125 + description = description.substring(0, 147) + '...';
126 + }
127 +
128 + return description;
129 + }
130 +
131 + return undefined;
132 + } catch (error) {
133 + console.warn(`⚠️ Error reading ${mdxPath}:`, error);
134 + return undefined;
135 + }
136 +}
137 +
138 +// Process content items recursively
139 +function processContentItems(items: ContentItem[], tabSlug: string, entries: LlmsEntry[], parentSlug?: string): void {
140 + for (const item of items) {
141 + if (item.page && item.path) {
142 + let url: string;
143 +
144 + if (item.slug) {
145 + // Use explicit slug if provided
146 + const slugParts = [tabSlug, item.slug].filter(Boolean);
147 + url = `https://docs.composio.dev/${slugParts.join('/')}`;
148 + } else if (item.path) {
149 + // For SDK reference pages without explicit slugs, construct from path
150 + const pathMatch = item.path.match(/pages\/dist\/(.+)$/);
151 + if (pathMatch) {
152 + let constructedPath = pathMatch[1];
153 + // Handle sdk-reference special case
154 + if (tabSlug === 'sdk-reference' && constructedPath.startsWith('sdk/')) {
155 + constructedPath = constructedPath.replace('sdk/', 'sdk-reference/');
156 + // Convert typescript to type-script
157 + constructedPath = constructedPath.replace('typescript/', 'type-script/');
158 + }
159 + url = `https://docs.composio.dev/${constructedPath}`;
160 + } else if (item.path.includes('tools/')) {
161 + // Handle tools pages
162 + const toolName = item.path.match(/tools\/(.+)\.mdx$/)?.[1] || item.page.toLowerCase();
163 + url = `https://docs.composio.dev/tools/${toolName}.mdx`;
164 + } else {
165 + // Fallback
166 + const slugParts = [tabSlug, parentSlug].filter(Boolean);
167 + url = `https://docs.composio.dev/${slugParts.join('/')}/${item.page.toLowerCase().replace(/\s+/g, '-')}.mdx`;
168 + }
169 + } else {
170 + // Fallback
171 + const slugParts = [tabSlug, parentSlug].filter(Boolean);
172 + url = `https://docs.composio.dev/${slugParts.join('/')}/${item.page.toLowerCase().replace(/\s+/g, '-')}.mdx`;
173 + }
174 +
175 + const description = extractDescription(item.path);
176 +
177 + // Override specific page titles
178 + let title = item.page;
179 + if (title === 'Overview' && url.includes('mcp-overview')) {
180 + title = 'Composio MCP Servers';
181 + }
182 +
183 + entries.push({
184 + title: title,
185 + url: url,
186 + description
187 + });
188 + }
189 +
190 + // Process nested sections
191 + if (item.section && item.contents) {
192 + const newParentSlug = item.slug || parentSlug;
193 + processContentItems(item.contents, tabSlug, entries, newParentSlug);
194 + }
195 + }
196 +}
197 +
198 +// Process navigation items
199 +function processNavigation(config: DocsConfig): LlmsEntry[] {
200 + const entries: LlmsEntry[] = [];
201 +
202 + for (const navItem of config.navigation) {
203 + if (!navItem.layout) continue;
204 +
205 + const tab = navItem.tab;
206 + const tabConfig = config.tabs?.[tab];
207 + const skipSlug = tabConfig?.['skip-slug'] || false;
208 + const tabSlug = skipSlug ? '' : tab;
209 +
210 + for (const layoutItem of navItem.layout) {
211 + // Process direct pages
212 + if (layoutItem.page && layoutItem.path && layoutItem.slug) {
213 + const slugParts = [tabSlug, layoutItem.slug].filter(Boolean);
214 + const url = `https://docs.composio.dev/${slugParts.join('/')}`;
215 + const description = extractDescription(layoutItem.path);
216 +
217 + entries.push({
218 + title: layoutItem.page,
219 + url: url.endsWith('.mdx') || url.endsWith('.md') ? url : url + '.mdx',
220 + description
221 + });
222 + }
223 +
224 + // Process section contents
225 + if (layoutItem.section && layoutItem.contents) {
226 + processContentItems(layoutItem.contents, tabSlug, entries, layoutItem.slug);
227 + }
228 + }
229 + }
230 +
231 + return entries;
232 +}
233 +
234 +// Generate llms.txt content
235 +function generateLlmsTxt(entries: LlmsEntry[]): string {
236 + let content = '# Composio Docs\n\n## Docs\n\n';
237 +
238 + for (const entry of entries) {
239 + if (entry.description) {
240 + content += `- [${entry.title}](${entry.url}): ${entry.description}\n`;
241 + } else {
242 + content += `- [${entry.title}](${entry.url})\n`;
243 + }
244 + }
245 +
246 + return content;
247 +}
248 +
249 +// Main build function
250 +async function buildLlmsTxt(): Promise<void> {
251 + console.log('🔨 Building llms.txt from docs.yml...');
252 +
253 + try {
254 + // Read and parse docs.yml
255 + const docsYmlContent = fs.readFileSync(DOCS_YML_PATH, 'utf8');
256 + const config = yaml.parse(docsYmlContent) as DocsConfig;
257 +
258 + // Process navigation to extract all entries
259 + const entries = processNavigation(config);
260 + console.log(`📄 Found ${entries.length} documentation pages`);
261 +
262 + // Generate llms.txt content
263 + const llmsTxtContent = generateLlmsTxt(entries);
264 +
265 + // Ensure output directory exists
266 + const outputDir = path.dirname(LLMS_TXT_PATH);
267 + if (!fs.existsSync(outputDir)) {
268 + fs.mkdirSync(outputDir, { recursive: true });
269 + }
270 +
271 + // Write llms.txt
272 + fs.writeFileSync(LLMS_TXT_PATH, llmsTxtContent);
273 + console.log(`✅ Generated llms.txt at ${path.relative(FERN_DIR, LLMS_TXT_PATH)}`);
274 +
275 + } catch (error) {
276 + console.error('❌ Error building llms.txt:', error);
277 + process.exit(1);
278 + }
279 +}
280 +
281 +// Watch mode
282 +function startWatchMode(): void {
283 + console.log('👀 Watching for changes...');
284 +
285 + // Watch docs.yml
286 + const docsWatcher = watch(DOCS_YML_PATH, async (eventType) => {
287 + if (eventType === 'change') {
288 + console.log('🔄 docs.yml changed, rebuilding...');
289 + await buildLlmsTxt();
290 + }
291 + });
292 +
293 + // Watch MDX files in pages directory
294 + const pagesWatcher = watch(PAGES_DIR, { recursive: true }, async (eventType, filename) => {
295 + if (filename && (filename.endsWith('.mdx') || filename.endsWith('.md'))) {
296 + console.log(`🔄 Page changed: ${filename}, rebuilding...`);
297 + await buildLlmsTxt();
298 + }
299 + });
300 +
301 + // Watch MDX files in tools directory
302 + const toolsWatcher = watch(TOOLS_DIR, { recursive: true }, async (eventType, filename) => {
303 + if (filename && (filename.endsWith('.mdx') || filename.endsWith('.md'))) {
304 + console.log(`🔄 Tool doc changed: ${filename}, rebuilding...`);
305 + await buildLlmsTxt();
306 + }
307 + });
308 +
309 + // Cleanup on exit
310 + process.on('SIGINT', () => {
311 + console.log('\n👋 Stopping watchers...');
312 + docsWatcher.close();
313 + pagesWatcher.close();
314 + toolsWatcher.close();
315 + process.exit(0);
316 + });
317 +}
318 +
319 +// Main function
320 +async function main(): Promise<void> {
321 + await buildLlmsTxt();
322 +
323 + // Check if we should run in watch mode
324 + const isWatchMode = process.argv.includes('--watch') || process.argv.includes('-w');
325 +
326 + if (isWatchMode) {
327 + startWatchMode();
328 + }
329 +}
330 +
331 +// Run the script
332 +main().catch(error => {
333 + console.error('❌ Fatal error:', error);
334 + process.exit(1);
335 +});
\ No newline at end of file
fern/turbo.json
+21 -4
@@ -3,8 +3,8 @@
3 "extends": ["//"],
4 "tasks": {
5 "build": {
6 - "dependsOn": ["api:pull", "add-og", "snippets:build", "tools:generate", "sdkdocs"],
7 - "outputs": ["apis/openapi.yml", "apis/openapi-mcp.json", "pages/dist/**", "tools/**"],
6 + "dependsOn": ["api:pull", "add-og", "snippets:build", "tools:generate", "sdkdocs", "llms:build"],
7 + "outputs": ["apis/openapi.yml", "apis/openapi-mcp.json", "pages/dist/**", "tools/**", "llms-txt/public/llms.txt"],
8 "cache": true
9 },
10
@@ -79,6 +79,23 @@
79 "cache": true
80 },
81
82 + "llms:build": {
83 + "outputs": ["llms-txt/public/llms.txt"],
84 + "inputs": ["docs.yml", "pages/**/*.mdx", "pages/**/*.md", "tools/**/*.mdx", "scripts/build-llms-txt.ts"],
85 + "cache": true
86 + },
87 +
88 + "llms:dev": {
89 + "persistent": true,
90 + "cache": false
91 + },
92 +
93 + "llms:deploy": {
94 + "dependsOn": ["llms:build"],
95 + "cache": false,
96 + "env": ["CLOUDFLARE_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID"]
97 + },
98 +
99 "check": {
100 "dependsOn": ["snippets:build"],
101 "cache": false
@@ -96,9 +113,9 @@
113 },
114
115 "publish": {
99 - "dependsOn": ["build"],
116 + "dependsOn": ["build", "llms:deploy"],
117 "cache": false,
101 - "env": ["FERN_TOKEN", "POSTHOG_API_KEY"]
118 + "env": ["FERN_TOKEN", "POSTHOG_API_KEY", "CLOUDFLARE_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID"]
119 },
120
121 "clean": {
pnpm-lock.yaml
+219
@@ -160,6 +160,12 @@ importers:
160 specifier: ^2.8.0
161 version: 2.8.0
162
163 + fern/llms-txt:
164 + devDependencies:
165 + wrangler:
166 + specifier: ^4.26.1
167 + version: 4.26.1
168 +
169 ts/examples/anthropic:
170 dependencies:
171 '@anthropic-ai/sdk':
@@ -1119,6 +1125,15 @@ packages:
1125 workerd:
1126 optional: true
1127
1128 + '@cloudflare/unenv-preset@2.5.0':
1129 + resolution: {integrity: sha512-CZe9B2VbjIQjBTyc+KoZcN1oUcm4T6GgCXoel9O7647djHuSRAa6sM6G+NdxWArATZgeMMbsvn9C50GCcnIatA==}
1130 + peerDependencies:
1131 + unenv: 2.0.0-rc.19
1132 + workerd: ^1.20250722.0
1133 + peerDependenciesMeta:
1134 + workerd:
1135 + optional: true
1136 +
1137 '@cloudflare/vitest-pool-workers@0.8.44':
1138 resolution: {integrity: sha512-axyXWKYZP5XZulJ4MfN4Su6RDx0AM8rfubqTr2jAoeFK5KZG/W396SgIpd59ZSoDQKx+LLGXP75TFEgBIS3Pog==}
1139 peerDependencies:
@@ -1132,30 +1147,60 @@ packages:
1147 cpu: [x64]
1148 os: [darwin]
1149
1150 + '@cloudflare/workerd-darwin-64@1.20250726.0':
1151 + resolution: {integrity: sha512-SOpQqQ2blLY0io/vErve44vJC1M5i7RHuMBdrdEPIEtxiLBTdOOVp4nqZ3KchocxZjskgTc2N4N3b5hNYuKDGw==}
1152 + engines: {node: '>=16'}
1153 + cpu: [x64]
1154 + os: [darwin]
1155 +
1156 '@cloudflare/workerd-darwin-arm64@1.20250617.0':
1157 resolution: {integrity: sha512-JTX0exbC9/ZtMmQQA8tDZEZFMXZrxOpTUj2hHnsUkErWYkr5SSZH04RBhPg6dU4VL8bXuB5/eJAh7+P9cZAp7g==}
1158 engines: {node: '>=16'}
1159 cpu: [arm64]
1160 os: [darwin]
1161
1162 + '@cloudflare/workerd-darwin-arm64@1.20250726.0':
1163 + resolution: {integrity: sha512-I+TOQ+YQahxL/K7eS2GJzv5CZzSVaZoyqfB15Q71MT/+wyzPCaFDTt+fg3uXdwpaIQEMUfqFNpTQSqbKHAYNgA==}
1164 + engines: {node: '>=16'}
1165 + cpu: [arm64]
1166 + os: [darwin]
1167 +
1168 '@cloudflare/workerd-linux-64@1.20250617.0':
1169 resolution: {integrity: sha512-8jkSoVRJ+1bOx3tuWlZCGaGCV2ew7/jFMl6V3CPXOoEtERUHsZBQLVkQIGKcmC/LKSj7f/mpyBUeu2EPTo2HEg==}
1170 engines: {node: '>=16'}
1171 cpu: [x64]
1172 os: [linux]
1173
1174 + '@cloudflare/workerd-linux-64@1.20250726.0':
1175 + resolution: {integrity: sha512-WSCv4o2uOW6b++ROVazrEW+jjZdBqCmXmmt7uVVfvjVxlzoYVwK9IvV2IXe4gsJ99HG9I0YCa7AT743cZ7TNNg==}
1176 + engines: {node: '>=16'}
1177 + cpu: [x64]
1178 + os: [linux]
1179 +
1180 '@cloudflare/workerd-linux-arm64@1.20250617.0':
1181 resolution: {integrity: sha512-YAzcOyu897z5dQKFzme1oujGWMGEJCR7/Wrrm1nSP6dqutxFPTubRADM8BHn2CV3ij//vaPnAeLmZE3jVwOwig==}
1182 engines: {node: '>=16'}
1183 cpu: [arm64]
1184 os: [linux]
1185
1186 + '@cloudflare/workerd-linux-arm64@1.20250726.0':
1187 + resolution: {integrity: sha512-jNokAGL3EQqH+31b0dX8+tlbKdjt/0UtTLvgD1e+7bOD92lzjYMa/CixHyMIY/FVvhsN4TNqfiz4cqroABTlhg==}
1188 + engines: {node: '>=16'}
1189 + cpu: [arm64]
1190 + os: [linux]
1191 +
1192 '@cloudflare/workerd-windows-64@1.20250617.0':
1193 resolution: {integrity: sha512-XWM/6sagDrO0CYDKhXhPjM23qusvIN1ju9ZEml6gOQs8tNOFnq6Cn6X9FAmnyapRFCGUSEC3HZYJAm7zwVKaMA==}
1194 engines: {node: '>=16'}
1195 cpu: [x64]
1196 os: [win32]
1197
1198 + '@cloudflare/workerd-windows-64@1.20250726.0':
1199 + resolution: {integrity: sha512-DiPTY63TNh6/ylvfutNQzYZi688x6NJDjQoqf5uiCp7xHweWx+GpVs42sZPeeXqCNvhm4dYjHjuigXJNh7t8Uw==}
1200 + engines: {node: '>=16'}
1201 + cpu: [x64]
1202 + os: [win32]
1203 +
1204 '@cloudflare/workers-types@4.20250619.0':
1205 resolution: {integrity: sha512-OYmVTA45rEEsOmchtltDnrG6BBaOPB7LUGKoyE8AwkfanUOc3/wwuMZ50i1jq6NKrV1TZLsKUKzrwe1NtVGOzQ==}
1206
@@ -2760,6 +2805,15 @@ packages:
2805 '@polka/url@1.0.0-next.29':
2806 resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==}
2807
2808 + '@poppinss/colors@4.1.5':
2809 + resolution: {integrity: sha512-FvdDqtcRCtz6hThExcFOgW0cWX+xwSMWcRuQe5ZEb2m7cVQOAVZOIMt+/v9RxGiD9/OY16qJBXK4CVKWAPalBw==}
2810 +
2811 + '@poppinss/dumper@0.6.4':
2812 + resolution: {integrity: sha512-iG0TIdqv8xJ3Lt9O8DrPRxw1MRLjNpoqiSGU03P/wNLP/s0ra0udPJ1J2Tx5M0J3H/cVyEgpbn8xUKRY9j59kQ==}
2813 +
2814 + '@poppinss/exception@1.2.2':
2815 + resolution: {integrity: sha512-m7bpKCD4QMlFCjA/nKTs23fuvoVFoA83brRKmObCUNmi/9tVu8Ve3w4YQAnJu4q3Tjf5fr685HYIC/IA2zHRSg==}
2816 +
2817 '@protobufjs/aspromise@1.1.2':
2818 resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
2819
@@ -2905,6 +2959,10 @@ packages:
2959 '@shikijs/vscode-textmate@10.0.2':
2960 resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
2961
2962 + '@sindresorhus/is@7.0.2':
2963 + resolution: {integrity: sha512-d9xRovfKNz1SKieM0qJdO+PQonjnnIfSNWfHYnBSJ9hkjm0ZPw6HlxscDXYstp3z+7V2GOFHc+J0CYrYTjqCJw==}
2964 + engines: {node: '>=18'}
2965 +
2966 '@sindresorhus/slugify@2.2.1':
2967 resolution: {integrity: sha512-MkngSCRZ8JdSOCHRaYd+D01XhvU3Hjy6MGl06zhOk614hp9EOAp5gIkBeQg7wtmxpitU6eAL4kdiRMcJa2dlrw==}
2968 engines: {node: '>=12'}
@@ -3124,6 +3182,9 @@ packages:
3182 resolution: {integrity: sha512-4QvC49HTteI1gfemu0I1syWovJgPvGn7CVUoN9ZFkdvr/cCFkrEL7qNCdx/2eICqDWEGnnr68oMdSIPCLAriSQ==}
3183 engines: {node: '>=18.0.0'}
3184
3185 + '@speed-highlight/core@1.2.7':
3186 + resolution: {integrity: sha512-0dxmVj4gxg3Jg879kvFS/msl4s9F3T9UXC1InxgOf7t5NvcPD97u/WTA5vL/IxWHMn7qSxBozqrnnE2wvl1m8g==}
3187 +
3188 '@standard-schema/spec@1.0.0':
3189 resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}
3190
@@ -3767,6 +3828,10 @@ packages:
3828 resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
3829 engines: {node: '>= 0.6'}
3830
3831 + cookie@1.0.2:
3832 + resolution: {integrity: sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==}
3833 + engines: {node: '>=18'}
3834 +
3835 copy-anything@3.0.5:
3836 resolution: {integrity: sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==}
3837 engines: {node: '>=12.13'}
@@ -3974,6 +4039,9 @@ packages:
4039 resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==}
4040 engines: {node: '>=18'}
4041
4042 + error-stack-parser-es@1.0.5:
4043 + resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==}
4044 +
4045 es-define-property@1.0.1:
4046 resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
4047 engines: {node: '>= 0.4'}
@@ -4742,6 +4810,10 @@ packages:
4810 resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}
4811 engines: {node: '>=0.10.0'}
4812
4813 + kleur@4.1.5:
4814 + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
4815 + engines: {node: '>=6'}
4816 +
4817 langchain@0.3.28:
4818 resolution: {integrity: sha512-h4GGlBJNGU/Sj2PipW9kL+ewj7To3c+SnnNKH3HZaVHEqGPMHVB96T1lLjtCLcZCyUfabMr/zFIkLNI4War+Xg==}
4819 engines: {node: '>=18'}
@@ -4965,6 +5037,11 @@ packages:
5037 engines: {node: '>=18.0.0'}
5038 hasBin: true
5039
5040 + miniflare@4.20250726.0:
5041 + resolution: {integrity: sha512-7+/RQQ9dNsyGfR2XN2RDLultf7HHrJ5YltSXSeyQGUpzGU3iYlFhh9Smg+ygkkOJ3+trf0bgwixOnqnnWpc9ZQ==}
5042 + engines: {node: '>=18.0.0'}
5043 + hasBin: true
5044 +
5045 minimatch@3.1.2:
5046 resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
5047
@@ -5894,6 +5971,10 @@ packages:
5971 resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==}
5972 engines: {node: '>=16'}
5973
5974 + supports-color@10.0.0:
5975 + resolution: {integrity: sha512-HRVVSbCCMbj7/kdWF9Q+bbckjBHLtHMEoJWlkmYzzdwhYMkjkOwubLM6t7NbWKjgKamGDrWL1++KrjUO1t9oAQ==}
5976 + engines: {node: '>=18'}
5977 +
5978 supports-color@7.2.0:
5979 resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
5980 engines: {node: '>=8'}
@@ -6156,9 +6237,16 @@ packages:
6237 resolution: {integrity: sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==}
6238 engines: {node: '>=14.0'}
6239
6240 + undici@7.12.0:
6241 + resolution: {integrity: sha512-GrKEsc3ughskmGA9jevVlIOPMiiAHJ4OFUtaAH+NhfTUSiZ1wMPIQqQvAJUrJspFXJt3EBWgpAeoHEDVT1IBug==}
6242 + engines: {node: '>=20.18.1'}
6243 +
6244 unenv@2.0.0-rc.17:
6245 resolution: {integrity: sha512-B06u0wXkEd+o5gOCMl/ZHl5cfpYbDZKAT+HWTL+Hws6jWu7dCiqBBXXXzMFcFVJb8D4ytAnYmxJA83uwOQRSsg==}
6246
6247 + unenv@2.0.0-rc.19:
6248 + resolution: {integrity: sha512-t/OMHBNAkknVCI7bVB9OWjUUAwhVv9vsPIAGnNUxnu3FxPQN11rjh0sksLMzc3g7IlTgvHmOTl4JM7JHpcv5wA==}
6249 +
6250 unique-string@3.0.0:
6251 resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==}
6252 engines: {node: '>=12'}
@@ -6321,6 +6409,11 @@ packages:
6409 engines: {node: '>=16'}
6410 hasBin: true
6411
6412 + workerd@1.20250726.0:
6413 + resolution: {integrity: sha512-wDZqSKfIfQ2eVTUL6UawXdXEKPPyzRTnVdbhoKGq3NFrMxd+7v1cNH92u8775Qo1zO5S+GyWonQmZPFakXLvGw==}
6414 + engines: {node: '>=16'}
6415 + hasBin: true
6416 +
6417 wrangler@4.21.0:
6418 resolution: {integrity: sha512-37xm0CG2qMvsJUNZYQKje6HbCsJFYuE8dQSnu7981iDRT4DLrEIL1DAUnZJG9HiXteKPvrSj96AkZyomi5sYHw==}
6419 engines: {node: '>=18.0.0'}
@@ -6331,6 +6424,16 @@ packages:
6424 '@cloudflare/workers-types':
6425 optional: true
6426
6427 + wrangler@4.26.1:
6428 + resolution: {integrity: sha512-zGFEtHrjTAWOngm+zwEvYCxFwMSIBrzHa3Yu6rAxYMEzsT8PPvo2rdswyUJiUkpE9s2Depr37opceaY7JxEYFw==}
6429 + engines: {node: '>=18.0.0'}
6430 + hasBin: true
6431 + peerDependencies:
6432 + '@cloudflare/workers-types': ^4.20250726.0
6433 + peerDependenciesMeta:
6434 + '@cloudflare/workers-types':
6435 + optional: true
6436 +
6437 wrap-ansi@6.2.0:
6438 resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==}
6439 engines: {node: '>=8'}
@@ -6417,9 +6520,15 @@ packages:
6520 resolution: {integrity: sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==}
6521 engines: {node: '>=18'}
6522
6523 + youch-core@0.3.3:
6524 + resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==}
6525 +
6526 youch@3.3.4:
6527 resolution: {integrity: sha512-UeVBXie8cA35DS6+nBkls68xaBBXCye0CNznrhszZjTbRVnJKQuNsyLKBTTL4ln1o1rh2PKtv35twV7irj5SEg==}
6528
6529 + youch@4.1.0-beta.10:
6530 + resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==}
6531 +
6532 zod-from-json-schema@0.0.5:
6533 resolution: {integrity: sha512-zYEoo86M1qpA1Pq6329oSyHLS785z/mTwfr9V1Xf/ZLhuuBGaMlDGu/pDVGVUe4H4oa1EFgWZT53DP0U3oT9CQ==}
6534
@@ -7115,6 +7224,12 @@ snapshots:
7224 optionalDependencies:
7225 workerd: 1.20250617.0
7226
7227 + '@cloudflare/unenv-preset@2.5.0(unenv@2.0.0-rc.19)(workerd@1.20250726.0)':
7228 + dependencies:
7229 + unenv: 2.0.0-rc.19
7230 + optionalDependencies:
7231 + workerd: 1.20250726.0
7232 +
7233 '@cloudflare/vitest-pool-workers@0.8.44(@cloudflare/workers-types@4.20250619.0)(@vitest/runner@3.2.4)(@vitest/snapshot@3.2.4)(vitest@3.2.4)':
7234 dependencies:
7235 '@vitest/runner': 3.2.4
@@ -7135,18 +7250,33 @@ snapshots:
7250 '@cloudflare/workerd-darwin-64@1.20250617.0':
7251 optional: true
7252
7253 + '@cloudflare/workerd-darwin-64@1.20250726.0':
7254 + optional: true
7255 +
7256 '@cloudflare/workerd-darwin-arm64@1.20250617.0':
7257 optional: true
7258
7259 + '@cloudflare/workerd-darwin-arm64@1.20250726.0':
7260 + optional: true
7261 +
7262 '@cloudflare/workerd-linux-64@1.20250617.0':
7263 optional: true
7264
7265 + '@cloudflare/workerd-linux-64@1.20250726.0':
7266 + optional: true
7267 +
7268 '@cloudflare/workerd-linux-arm64@1.20250617.0':
7269 optional: true
7270
7271 + '@cloudflare/workerd-linux-arm64@1.20250726.0':
7272 + optional: true
7273 +
7274 '@cloudflare/workerd-windows-64@1.20250617.0':
7275 optional: true
7276
7277 + '@cloudflare/workerd-windows-64@1.20250726.0':
7278 + optional: true
7279 +
7280 '@cloudflare/workers-types@4.20250619.0': {}
7281
7282 '@composio/client@0.1.0-alpha.29': {}
@@ -8904,6 +9034,18 @@ snapshots:
9034
9035 '@polka/url@1.0.0-next.29': {}
9036
9037 + '@poppinss/colors@4.1.5':
9038 + dependencies:
9039 + kleur: 4.1.5
9040 +
9041 + '@poppinss/dumper@0.6.4':
9042 + dependencies:
9043 + '@poppinss/colors': 4.1.5
9044 + '@sindresorhus/is': 7.0.2
9045 + supports-color: 10.0.0
9046 +
9047 + '@poppinss/exception@1.2.2': {}
9048 +
9049 '@protobufjs/aspromise@1.1.2': {}
9050
9051 '@protobufjs/base64@1.1.2': {}
@@ -9007,6 +9149,8 @@ snapshots:
9149
9150 '@shikijs/vscode-textmate@10.0.2': {}
9151
9152 + '@sindresorhus/is@7.0.2': {}
9153 +
9154 '@sindresorhus/slugify@2.2.1':
9155 dependencies:
9156 '@sindresorhus/transliterate': 1.6.0
@@ -9344,6 +9488,8 @@ snapshots:
9488 '@smithy/types': 4.3.1
9489 tslib: 2.8.1
9490
9491 + '@speed-highlight/core@1.2.7': {}
9492 +
9493 '@standard-schema/spec@1.0.0': {}
9494
9495 '@swc/counter@0.1.3': {}
@@ -10079,6 +10225,8 @@ snapshots:
10225
10226 cookie@0.7.2: {}
10227
10228 + cookie@1.0.2: {}
10229 +
10230 copy-anything@3.0.5:
10231 dependencies:
10232 is-what: 4.1.16
@@ -10253,6 +10401,8 @@ snapshots:
10401
10402 environment@1.1.0: {}
10403
10404 + error-stack-parser-es@1.0.5: {}
10405 +
10406 es-define-property@1.0.1: {}
10407
10408 es-errors@1.3.0: {}
@@ -11075,6 +11225,8 @@ snapshots:
11225
11226 kind-of@6.0.3: {}
11227
11228 + kleur@4.1.5: {}
11229 +
11230 langchain@0.3.28(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@3.25.67)))(axios@1.10.0)(openai@4.104.0(ws@8.18.2)(zod@3.25.67))(ws@8.18.2):
11231 dependencies:
11232 '@langchain/core': 0.3.63(openai@4.104.0(ws@8.18.2)(zod@3.25.67))
@@ -11275,6 +11427,24 @@ snapshots:
11427 - bufferutil
11428 - utf-8-validate
11429
11430 + miniflare@4.20250726.0:
11431 + dependencies:
11432 + '@cspotcode/source-map-support': 0.8.1
11433 + acorn: 8.14.0
11434 + acorn-walk: 8.3.2
11435 + exit-hook: 2.2.1
11436 + glob-to-regexp: 0.4.1
11437 + sharp: 0.33.5
11438 + stoppable: 1.1.0
11439 + undici: 7.12.0
11440 + workerd: 1.20250726.0
11441 + ws: 8.18.0
11442 + youch: 4.1.0-beta.10
11443 + zod: 3.22.3
11444 + transitivePeerDependencies:
11445 + - bufferutil
11446 + - utf-8-validate
11447 +
11448 minimatch@3.1.2:
11449 dependencies:
11450 brace-expansion: 1.1.12
@@ -12268,6 +12438,8 @@ snapshots:
12438 dependencies:
12439 copy-anything: 3.0.5
12440
12441 + supports-color@10.0.0: {}
12442 +
12443 supports-color@7.2.0:
12444 dependencies:
12445 has-flag: 4.0.0
@@ -12536,6 +12708,8 @@ snapshots:
12708 dependencies:
12709 '@fastify/busboy': 2.1.1
12710
12711 + undici@7.12.0: {}
12712 +
12713 unenv@2.0.0-rc.17:
12714 dependencies:
12715 defu: 6.1.4
@@ -12544,6 +12718,14 @@ snapshots:
12718 pathe: 2.0.3
12719 ufo: 1.6.1
12720
12721 + unenv@2.0.0-rc.19:
12722 + dependencies:
12723 + defu: 6.1.4
12724 + exsolve: 1.0.7
12725 + ohash: 2.0.11
12726 + pathe: 2.0.3
12727 + ufo: 1.6.1
12728 +
12729 unique-string@3.0.0:
12730 dependencies:
12731 crypto-random-string: 4.0.0
@@ -12856,6 +13038,14 @@ snapshots:
13038 '@cloudflare/workerd-linux-arm64': 1.20250617.0
13039 '@cloudflare/workerd-windows-64': 1.20250617.0
13040
13041 + workerd@1.20250726.0:
13042 + optionalDependencies:
13043 + '@cloudflare/workerd-darwin-64': 1.20250726.0
13044 + '@cloudflare/workerd-darwin-arm64': 1.20250726.0
13045 + '@cloudflare/workerd-linux-64': 1.20250726.0
13046 + '@cloudflare/workerd-linux-arm64': 1.20250726.0
13047 + '@cloudflare/workerd-windows-64': 1.20250726.0
13048 +
13049 wrangler@4.21.0(@cloudflare/workers-types@4.20250619.0):
13050 dependencies:
13051 '@cloudflare/kv-asset-handler': 0.4.0
@@ -12873,6 +13063,22 @@ snapshots:
13063 - bufferutil
13064 - utf-8-validate
13065
13066 + wrangler@4.26.1:
13067 + dependencies:
13068 + '@cloudflare/kv-asset-handler': 0.4.0
13069 + '@cloudflare/unenv-preset': 2.5.0(unenv@2.0.0-rc.19)(workerd@1.20250726.0)
13070 + blake3-wasm: 2.1.5
13071 + esbuild: 0.25.4
13072 + miniflare: 4.20250726.0
13073 + path-to-regexp: 6.3.0
13074 + unenv: 2.0.0-rc.19
13075 + workerd: 1.20250726.0
13076 + optionalDependencies:
13077 + fsevents: 2.3.3
13078 + transitivePeerDependencies:
13079 + - bufferutil
13080 + - utf-8-validate
13081 +
13082 wrap-ansi@6.2.0:
13083 dependencies:
13084 ansi-styles: 4.3.0
@@ -12938,12 +13144,25 @@ snapshots:
13144
13145 yoctocolors-cjs@2.1.2: {}
13146
13147 + youch-core@0.3.3:
13148 + dependencies:
13149 + '@poppinss/exception': 1.2.2
13150 + error-stack-parser-es: 1.0.5
13151 +
13152 youch@3.3.4:
13153 dependencies:
13154 cookie: 0.7.2
13155 mustache: 4.2.0
13156 stacktracey: 2.1.8
13157
13158 + youch@4.1.0-beta.10:
13159 + dependencies:
13160 + '@poppinss/colors': 4.1.5
13161 + '@poppinss/dumper': 0.6.4
13162 + '@speed-highlight/core': 1.2.7
13163 + cookie: 1.0.2
13164 + youch-core: 0.3.3
13165 +
13166 zod-from-json-schema@0.0.5:
13167 dependencies:
13168 zod: 3.25.67