DEPRECATED compatibility shim over @aihu-plugin/agent-readiness (sitemap.xml, robots.txt, llms.txt, JSON-LD).
createSeoRoutesfunction createSeoRoutes(config: SeoConfig): SeoRoutesCreate typed RouteHandler objects for SEO routes.
seofunction seo(config: SeoConfig)seoLlmsSectionsconst seoLlmsSectionsRobotsOptionsinterface RobotsOptions {
readonly disallowAiBots?: boolean // legacy default when absent: true (deny-all)
readonly additionalRules?: ReadonlyArray<{
userAgent: string
allow?: string[]
disallow?: string[]
}>
}SeoConfiginterface SeoConfig {
readonly siteName: string
readonly baseUrl: string // e.g., 'https://example.com' (no trailing slash)
readonly sitemapSources?: ReadonlyArray<SitemapSource>
readonly jsonLdDefaults?: Partial<JsonLdPage>
readonly robotsOptions?: RobotsOptions
}SeoRoutesinterface SeoRoutes {
readonly sitemapXml: RouteHandler
readonly robotsTxt: RouteHandler
readonly llmsTxt: RouteHandler
}SitemapSourceinterface SitemapSource {
readonly path: string // e.g., '/about', '/docs/getting-started'
readonly lastmod?: string // ISO date
readonly changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'
readonly priority?: number // 0.0–1.0
}JsonLdPagetype JsonLdPage