/** * Workflows System — Pre-built one-click actions for the dashboard. * * Workflows extend SkillDefinitions with UI metadata (icon, category, color, inputFields) * so the dashboard can render them as clickable cards with input forms. * * Users can also create custom workflows in ~/.codebot/workflows/*.json. */ export interface WorkflowInputField { name: string; label: string; type: 'text' | 'textarea' | 'select' | 'number'; placeholder?: string; required?: boolean; options?: string[]; default?: string; } export interface WorkflowDefinition { name: string; description: string; /** Category for grouping in the UI */ category: 'social' | 'research' | 'productivity' | 'dev' | 'creative' | 'system'; /** SVG icon name (mapped in frontend) */ icon: string; /** Accent color for the card */ color: string; /** Input fields shown in the runner form */ inputFields: WorkflowInputField[]; /** The prompt template sent to the agent. Uses {{fieldName}} placeholders. */ promptTemplate: string; } /** Category display metadata */ export declare const WORKFLOW_CATEGORIES: Record; /** * Load workflow definitions from ~/.codebot/workflows/ + built-ins. */ export declare function loadWorkflows(): WorkflowDefinition[]; /** * Get a single workflow by name. */ export declare function getWorkflow(name: string): WorkflowDefinition | undefined; /** * Resolve a workflow's prompt template with input values. */ export declare function resolveWorkflowPrompt(workflow: WorkflowDefinition, inputs: Record): string; //# sourceMappingURL=workflows.d.ts.map