@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
26 lines • 1.55 kB
TypeScript
import type { SandboxKitDescriptor } from '../sandbox-kit.js';
import { type GenerateSandboxKitDocsOptions } from './docs.js';
export interface WriteSandboxKitDocsOptions extends GenerateSandboxKitDocsOptions {
/** Where the descriptor goes, relative to the root. */
output: string;
/** The app's style entries (default: found from `index.html` / the Vite input, when given). */
styles?: string | readonly string[];
/** Guidance on the styles for the model: a file (markdown) or the text itself. */
stylesDocs?: string;
/** Vite's `build.rollupOptions.input`, for finding the style entries without `styles`. */
input?: unknown;
/** Compile the styles with Vite (Sass, PostCSS…). Default true when `vite` is installed. */
compileStyles?: boolean;
/** Extra Vite plugins for compiling the styles. */
plugins?: unknown[];
}
/**
* Generate the kit docs and write them as a descriptor with no asset urls (a dev server or a build
* provides those) — what the assembler hook and the Nest codegen run for an app whose Vite does not
* run in the server's process: the components and their props, the styles' Tailwind tokens or CSS
* vocabulary, the theme's variables, `stylesDocs`. Returns the descriptor, or `null` when the
* project has neither components, a wrapper nor styles. Leaves an unchanged file untouched (no
* needless reloads).
*/
export declare function writeSandboxKitDocs(options: WriteSandboxKitDocsOptions): Promise<SandboxKitDescriptor | null>;
//# sourceMappingURL=write.d.ts.map