llmoptimizer
Version:
Generate an llms.txt summary of your website/docs for LLMs (framework-agnostic with Vite/Next/Nuxt/Astro/Remix helpers).
33 lines (29 loc) • 847 B
text/typescript
import { R as RobotsOptions } from './robots-Cmz7RZLZ.cjs';
type VitePlugin = {
name: string;
apply?: 'build' | 'serve';
configResolved?: (cfg: {
build: {
outDir?: string;
};
}) => void;
closeBundle?: () => void | Promise<void>;
};
interface LLMOptimizerViteOptions {
mode?: 'static' | 'crawl';
baseUrl?: string;
outFile?: string;
format?: 'markdown' | 'json';
obeyRobots?: boolean;
concurrency?: number;
requestDelayMs?: number;
include?: string[];
exclude?: string[];
theme?: 'default' | 'compact' | 'detailed' | 'structured';
robots?: boolean | (RobotsOptions & {
outFile?: string;
});
log?: boolean;
}
declare function llmOptimizer(opts?: LLMOptimizerViteOptions): VitePlugin;
export { type LLMOptimizerViteOptions, llmOptimizer };