@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
33 lines • 1.45 kB
TypeScript
/** What a build produced. */
export interface KitBuildOutput {
/** The entry chunk (an IIFE). */
code: string;
/** Every CSS file the build emitted, together, its `url()`s made network-less. */
css: string;
/** The app modules the build read (`node_modules` and virtual ones left out). */
modules: string[];
}
export interface KitBuildOptions {
root: string;
/** The entry module's source (a virtual module; may import anything the app can). */
entry: string;
/** `resolve` from the app's Vite config (aliases, dedupe, conditions). */
resolve?: Record<string, unknown>;
/** `css` from the app's Vite config (preprocessorOptions, modules, postcss, transformer…). */
css?: Record<string, unknown>;
/** The app's public directory (absolute urls in CSS are read from it), or `false`. */
publicDir?: string | false;
/** Extra Vite plugins (Tailwind's, one the components need to compile). */
plugins?: unknown[];
/** Largest asset inlined, in bytes. */
inlineAssetLimit?: number;
/** Most bytes inlined in all. */
inlineAssetBudget?: number;
/** Told about every asset left out. */
warn?: (message: string) => void;
/** Default true. */
minify?: boolean;
}
export declare function runKitViteBuild(options: KitBuildOptions): Promise<KitBuildOutput>;
export declare function contentHash(text: string): string;
//# sourceMappingURL=vite-build.d.ts.map