@devries-cameron20 / composio Mirror · read-only / commits / de0bfa356
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, 18:30 UTC

fix(docs): resolve changelog links and Vercel deploys (#3811)

This PR: - fixes copied changelog date URLs so they stay on `/reference/changelog` and target the selected date - resolves fragment links against the current page while preserving full site-relative links - upgrades the docs app to Vercel-supported `eve@0.18.0` - migrates docs-agent evals from the removed `t.completed()` assertion to `t.succeeded()` - verifies the docs static suite, TypeScript type-check, and production build --- [![Compound Engineering](https://img.shields.io/badge/Built_with-Compound_Engineering-6366f1)](https://github.com/EveryInc/compound-engineering-plugin) ![GPT-5](https://img.shields.io/badge/GPT-5-000000?logoColor=white)

Alberto Schiabel committed Jul 13, 2026 at 13:53 UTC de0bfa356d5b8c8c0a251fc53402c17bc2a6919b
7 files changed +32 -6
docs/bun.lock
+2 -2
@@ -17,7 +17,7 @@
17 "class-variance-authority": "^0.7.1",
18 "clsx": "^2.1.1",
19 "diff": "^9.0.0",
20 - "eve": "^0.13.3",
20 + "eve": "0.18.0",
21 "framer-motion": "^12.39.0",
22 "fumadocs-core": "^16.4.2",
23 "fumadocs-mdx": "^14.2.4",
@@ -1341,7 +1341,7 @@
1341
1342 "etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="],
1343
1344 - "eve": ["eve@0.13.3", "", { "dependencies": { "nitro": "3.0.260610-beta" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", "@sveltejs/kit": "^2.0.0", "ai": "7.0.0-beta.178", "braintrust": "^3.0.0", "just-bash": "^3.0.0", "microsandbox": "^0.5.0", "next": "^16.0.0", "nuxt": "^4.0.0", "react": "^19.0.0", "svelte": "^5.0.0", "vite": "^8.0.0", "vue": "^3.5.0" }, "optionalPeers": ["@opentelemetry/api", "@sveltejs/kit", "braintrust", "just-bash", "microsandbox", "next", "nuxt", "react", "svelte", "vite", "vue"], "bin": { "eve": "./bin/eve.js" } }, "sha512-UeDjzBq+j6XhECSW5FJjz8Lin4yw75rOchxbI/rmeRj9c9ldERwH/tb+aQRRzh3ZhnkFITzsBpNyF2arYcEjXQ=="],
1344 + "eve": ["eve@0.18.0", "", { "dependencies": { "nitro": "3.0.260610-beta" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", "ai": "^7.0.0", "braintrust": "^3.0.0", "just-bash": "^3.0.0", "microsandbox": "^0.5.0" }, "optionalPeers": ["@opentelemetry/api", "braintrust", "just-bash", "microsandbox"], "bin": { "eve": "./bin/eve.js" } }, "sha512-vEYiZe5D3m1s0UvuS5oSsNaJ10PD3oXzmwY1dLxlRncPjHZNGlmb84fG//KOU/HI6AsQuL3/gvgxUuS48jCRnw=="],
1345
1346 "eventemitter3": ["eventemitter3@4.0.7", "", {}, "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="],
1347
docs/components/copy-link.tsx
+2 -1
@@ -2,6 +2,7 @@
2
3 import { useState } from 'react';
4 import { Link, Check } from 'lucide-react';
5 +import { resolveCopyLinkUrl } from '@/lib/copy-link';
6
7 interface CopyLinkProps {
8 href: string;
@@ -13,7 +14,7 @@ export function CopyLink({ href, children, className }: CopyLinkProps) {
14 const [copied, setCopied] = useState(false);
15
16 const handleCopy = async () => {
16 - const fullUrl = `${window.location.origin}${href}`;
17 + const fullUrl = resolveCopyLinkUrl(href, window.location.href);
18 await navigator.clipboard.writeText(fullUrl);
19 setCopied(true);
20 setTimeout(() => setCopied(false), 2000);
docs/evals/docs-agent/grounded-answers.eval.ts
+1 -1
@@ -32,7 +32,7 @@ export default cases.map(row =>
32 async test(t) {
33 await t.send(row.prompt);
34
35 - t.completed();
35 + t.succeeded();
36 t.noFailedActions();
37 // The docs channel now injects eager search context before the model step,
38 // so a good answer may not need an explicit search_docs tool call.
docs/evals/docs-agent/out-of-scope.eval.ts
+1 -1
@@ -9,7 +9,7 @@ export default defineEval({
9 async test(t) {
10 await t.send('Can you check whether my latest Composio invoice has been paid?');
11
12 - t.completed();
12 + t.succeeded();
13 t.noFailedActions();
14 t.usedNoTools();
15 t.messageIncludes(/support|dashboard|billing|account/i);
docs/lib/copy-link.ts new
+3
@@ -0,0 +1,3 @@
1 +export function resolveCopyLinkUrl(href: string, currentUrl: string): string {
2 + return new URL(href, currentUrl).href;
3 +}
docs/package.json
+1 -1
@@ -39,7 +39,7 @@
39 "class-variance-authority": "^0.7.1",
40 "clsx": "^2.1.1",
41 "diff": "^9.0.0",
42 - "eve": "^0.13.3",
42 + "eve": "0.18.0",
43 "framer-motion": "^12.39.0",
44 "fumadocs-core": "^16.4.2",
45 "fumadocs-mdx": "^14.2.4",
docs/tests/static/copy-link.test.ts new
+22
@@ -0,0 +1,22 @@
1 +import { describe, expect, test } from "bun:test";
2 +import { resolveCopyLinkUrl } from "../../lib/copy-link";
3 +
4 +describe("resolveCopyLinkUrl", () => {
5 + test("keeps the current pathname for anchor links", () => {
6 + expect(
7 + resolveCopyLinkUrl(
8 + "#2026-04-08",
9 + "https://docs.composio.dev/reference/changelog"
10 + )
11 + ).toBe("https://docs.composio.dev/reference/changelog#2026-04-08");
12 + });
13 +
14 + test("resolves site-relative links from the docs origin", () => {
15 + expect(
16 + resolveCopyLinkUrl(
17 + "/docs/changelog/2026/04/08",
18 + "https://docs.composio.dev/reference/changelog"
19 + )
20 + ).toBe("https://docs.composio.dev/docs/changelog/2026/04/08");
21 + });
22 +});