-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathpage.tsx
More file actions
68 lines (65 loc) · 1.68 KB
/
Copy pathpage.tsx
File metadata and controls
68 lines (65 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import type { Metadata } from "next";
import { AgentsPage } from "@/components/pages/agents/AgentsPage";
import {
agentFaqs,
agentsSeo,
agentsSoftwareSchema,
setupSteps,
} from "@/components/pages/agents/content";
import { buildMarketingMetadata } from "@/lib/og/url";
import {
createBreadcrumbSchema,
createFAQSchema,
createHowToSchema,
} from "@/utils/web-schema";
export const metadata: Metadata = {
...buildMarketingMetadata({
title: agentsSeo.title,
description: agentsSeo.description,
path: agentsSeo.path,
ogTitle: "Cap for Agents",
ogDescription:
"The screen recorder your agent can run. CLI and MCP for Claude Code, Codex, Cursor, and OpenCode.",
ogTag: "Agents",
}),
keywords: [...agentsSeo.keywords],
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
"max-image-preview": "large",
"max-snippet": -1,
},
},
};
const schemas = [
createBreadcrumbSchema([
{ name: "Home", url: "https://cap.so" },
{ name: "Cap for Agents", url: agentsSeo.url },
]),
createHowToSchema({
name: "How to use Cap from an AI agent",
description:
"Set up the Cap screen recorder inside Claude Code, Codex, Cursor, OpenCode, or any shell-capable agent with one pasted prompt.",
totalTime: "PT3M",
steps: setupSteps.map((step) => ({ name: step.name, text: step.text })),
}),
createFAQSchema(
agentFaqs.map((faq) => ({ question: faq.question, answer: faq.answer })),
),
agentsSoftwareSchema,
];
export default function Page() {
return (
<>
{schemas.map((schema) => (
<script key={schema["@type"]} type="application/ld+json">
{JSON.stringify(schema).replace(/</g, "\\u003c")}
</script>
))}
<AgentsPage />
</>
);
}