intent-cli
Version:
A fully functional CLI built with TypeScript and modern tools
23 lines • 515 B
TypeScript
export interface IntentAction {
type: string;
payload?: Record<string, any>;
}
export interface IntentResponse {
success: boolean;
data?: any;
error?: string;
nextAction?: string;
}
export interface IntentFlow {
id: string;
name: string;
steps: IntentStep[];
}
export interface IntentStep {
id: string;
type: 'input' | 'action' | 'confirmation';
prompt?: string;
action?: string;
validation?: (input: string) => boolean;
}
//# sourceMappingURL=intent.d.ts.map