trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
23 lines • 902 B
TypeScript
/**
* Scaffold generators for CMS consumer code.
*
* Used by the agent's `cms` tool (scaffold_consumer action) to write
* starter integration files instead of generating static data dumps.
*/
import type { Framework } from './types.js';
export type ScaffoldOptions = {
collection: string;
framework?: Framework;
/** Field keys to expand as references (e.g. ["author"]). */
expand?: string[];
/** Override the CMS server URL. Default: http://localhost:4096 */
url?: string;
/**
* Project directory for multi-instance backends (e.g. opencode requires this).
* Baked into the generated client literal so requests route to the correct project.
*/
directory?: string;
};
export declare function scaffoldConsumer(opts: ScaffoldOptions): string;
export declare function scaffoldFilename(opts: ScaffoldOptions): string;
//# sourceMappingURL=scaffold.d.ts.map