UNPKG

@reliverse/rse-sdk

Version:

@reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).

28 lines (27 loc) 973 B
import type { RseConfig } from "@reliverse/cfg"; /** * Describes a lint suggestion with file details and a recommended fix or note. */ export interface LintSuggestion { filePath: string; startLine: number; endLine: number; suggestion: string; severity: "error" | "warning" | "info"; } /** * Coordinates the relinter process. Accepts multiple target paths. */ export declare function agentRelinter(config: RseConfig, targetPaths: string[], task?: string): Promise<void>; /** * Collects a list of recognized code files from a path. */ export declare function collectLintableFiles(dirOrFile: string): Promise<string[]>; /** * Gathers lint suggestions for each file. */ export declare function gatherLintSuggestions(files: string[], task?: string, promptDecision?: boolean): Promise<LintSuggestion[]>; /** * Persists lint suggestions to a JSON file. */ export declare function writeSuggestionsToFile(suggestions: LintSuggestion[]): Promise<void>;