signalk-parquet
Version:
SignalK plugin and webapp that archives SK data to Parquet files with a regimen control system, advanced querying, Claude integrated AI analysis, spatial capabilities, and REST API.
69 lines • 2.21 kB
TypeScript
import { AnalysisRequest } from './claude-analyzer';
export interface AnalysisTemplate {
id: string;
name: string;
description: string;
category: 'navigation' | 'environment' | 'electrical' | 'safety' | 'performance' | 'maintenance';
requiredPaths: string[];
optionalPaths?: string[];
icon: string;
analysisType: 'summary' | 'anomaly' | 'trend' | 'correlation' | 'custom';
prompt: string;
defaultTimeRange: '1h' | '6h' | '24h' | '7d' | '30d';
complexity: 'simple' | 'moderate' | 'complex';
estimatedTime: string;
}
export interface TemplateCategory {
id: string;
name: string;
description: string;
icon: string;
templates: AnalysisTemplate[];
}
export declare const ANALYSIS_TEMPLATES: Record<string, AnalysisTemplate>;
export declare const TEMPLATE_CATEGORIES: TemplateCategory[];
export declare class AnalysisTemplateManager {
/**
* Get all available templates
*/
static getAllTemplates(): AnalysisTemplate[];
/**
* Get templates by category
*/
static getTemplatesByCategory(category: string): AnalysisTemplate[];
/**
* Get template by ID
*/
static getTemplate(templateId: string): AnalysisTemplate | null;
/**
* Get template categories for UI
*/
static getTemplateCategories(): TemplateCategory[];
/**
* Find templates that can work with given data paths
*/
static findCompatibleTemplates(availablePaths: string[]): AnalysisTemplate[];
/**
* Create analysis request from template
*/
static createAnalysisRequest(templateId: string, dataPath: string, customPrompt?: string, timeRange?: {
start: Date;
end: Date;
}): AnalysisRequest | null;
/**
* Convert default time range string to actual dates
*/
private static getDefaultTimeRange;
/**
* Get template suggestions based on data path
*/
static getTemplateSuggestions(dataPath: string): AnalysisTemplate[];
/**
* Validate template configuration
*/
static validateTemplate(template: AnalysisTemplate): {
valid: boolean;
errors: string[];
};
}
//# sourceMappingURL=analysis-templates.d.ts.map