remcode
Version:
Turn your AI assistant into a codebase expert. Intelligent code analysis, semantic search, and software engineering guidance through MCP integration.
97 lines (96 loc) • 2.79 kB
TypeScript
/**
* Workflow template types
*/
export declare enum WorkflowType {
REMCODE_BASIC = "remcode_basic",
REMCODE_SCHEDULED = "remcode_scheduled",
REMCODE_ADVANCED = "remcode_advanced",
REMCODE_WITH_CACHE = "remcode_with_cache",
REMCODE_WITH_NOTIFICATIONS = "remcode_with_notifications",
CUSTOM = "custom"
}
/**
* Workflow schedule configuration
*/
export interface WorkflowScheduleConfig {
enabled: boolean;
cron: string;
branches?: string[];
}
/**
* Workflow notification configuration
*/
export interface WorkflowNotificationConfig {
slack?: {
enabled: boolean;
webhook?: string;
channel?: string;
};
email?: {
enabled: boolean;
recipients?: string[];
};
}
/**
* Workflow environment configuration
*/
export interface WorkflowEnvironmentConfig {
nodeVersion: string;
useCache: boolean;
runnerOS: 'ubuntu-latest' | 'windows-latest' | 'macos-latest';
npmVersion?: string;
extraPackages?: string[];
}
/**
* Workflow template options
*/
export interface WorkflowTemplateOptions {
repoName: string;
branches?: string[];
schedule?: WorkflowScheduleConfig;
notifications?: WorkflowNotificationConfig;
environment?: WorkflowEnvironmentConfig;
secrets?: Record<string, string>;
parameters?: Record<string, any>;
version?: string;
customTemplate?: string;
}
/**
* Class for managing workflow templates
*/
export declare class WorkflowTemplates {
private readonly defaultNodeVersion;
private readonly defaultRunnerOS;
private readonly defaultVersion;
/**
* Get a workflow template based on type and options
* @param type Workflow template type
* @param options Template options
* @returns Generated workflow template
*/
getWorkflowTemplate(type: WorkflowType, options: WorkflowTemplateOptions): string;
/**
* Get basic Remcode workflow template
*/
getRemcodeWorkflowTemplate(options: WorkflowTemplateOptions): string;
/**
* Get scheduled Remcode workflow template
*/
getRemcodeScheduledWorkflowTemplate(options: WorkflowTemplateOptions): string;
/**
* Get advanced Remcode workflow template with detailed steps and logs
*/
getRemcodeAdvancedWorkflowTemplate(options: WorkflowTemplateOptions): string;
/**
* Get Remcode workflow template with caching
*/
getRemcodeCachedWorkflowTemplate(options: WorkflowTemplateOptions): string;
/**
* Get Remcode workflow template with notifications
*/
getRemcodeWithNotificationsTemplate(options: WorkflowTemplateOptions): string;
/**
* Get a custom workflow template using options
*/
getCustomWorkflowTemplate(options: WorkflowTemplateOptions): string;
}