refactor: remove dead code and unoptimized structures
This commit is contained in:
@@ -9,95 +9,6 @@
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
// ─── 에이전트 서비스 인터페이스 ───
|
||||
export interface IAgentService {
|
||||
/**
|
||||
* LLM에 프롬프트를 보내고 스트리밍 응답을 가져옴
|
||||
*/
|
||||
chat(prompt: string, context: string, model?: string): Promise<AsyncGenerator<string>>;
|
||||
|
||||
/**
|
||||
* 터미널 명령어 실행 (보안 정책 적용)
|
||||
*/
|
||||
runCommand(command: string): Promise<{ stdout: string; stderr: string }>;
|
||||
}
|
||||
|
||||
// ─── 파일 시스템 서비스 인터페이스 ───
|
||||
export interface IFileSystemService {
|
||||
/**
|
||||
* 파일 생성
|
||||
*/
|
||||
createFile(filePath: string, content: string): Promise<void>;
|
||||
|
||||
/**
|
||||
* 파일 읽기
|
||||
*/
|
||||
readFile(filePath: string): Promise<string>;
|
||||
|
||||
/**
|
||||
* 파일 수정
|
||||
*/
|
||||
editFile(filePath: string, find: string, replace: string): Promise<void>;
|
||||
|
||||
/**
|
||||
* 파일 삭제
|
||||
*/
|
||||
deleteFile(filePath: string): Promise<void>;
|
||||
|
||||
/**
|
||||
* 디렉토리 목록 조회
|
||||
*/
|
||||
listDirectory(dirPath: string): Promise<string[]>;
|
||||
}
|
||||
|
||||
// ─── 두뇌 서비스 인터페이스 ───
|
||||
export interface IBrainService {
|
||||
/**
|
||||
* 두뇌 폴더 경로 가져오기
|
||||
*/
|
||||
getBrainDir(): string;
|
||||
|
||||
/**
|
||||
* 두뇌 폴더가 명시적으로 설정되었는지 확인
|
||||
*/
|
||||
isBrainDirExplicitlySet(): boolean;
|
||||
|
||||
/**
|
||||
* 두뇌 폴더 내 파일 목록 조회
|
||||
*/
|
||||
getBrainFiles(): Promise<string[]>;
|
||||
|
||||
/**
|
||||
* 두뇌 파일 내용 읽기
|
||||
*/
|
||||
readBrainFile(fileName: string): Promise<string>;
|
||||
}
|
||||
|
||||
// ─── 웹뷰 서비스 인터페이스 ───
|
||||
export interface IWebviewService {
|
||||
/**
|
||||
* 웹뷰에 메시지 전송
|
||||
*/
|
||||
postMessage(message: any): void;
|
||||
|
||||
/**
|
||||
* 웹뷰에서 메시지 수신 핸들러 등록
|
||||
*/
|
||||
onDidReceiveMessage(callback: (message: any) => void): vscode.Disposable;
|
||||
}
|
||||
|
||||
// ─── HTTP 서비스 인터페이스 ───
|
||||
export interface IHttpService {
|
||||
/**
|
||||
* HTTP GET 요청
|
||||
*/
|
||||
get(url: string, options?: any): Promise<any>;
|
||||
|
||||
/**
|
||||
* HTTP POST 요청
|
||||
*/
|
||||
post(url: string, data: any, options?: any): Promise<any>;
|
||||
}
|
||||
|
||||
// ─── 공용 오류 처리 타입 (Unified Error Handling) ───
|
||||
|
||||
|
||||
Reference in New Issue
Block a user