39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { ContextItemId } from "../../../schema/FullState";
|
|
|
|
abstract class AbstractContinueGUIClientProtocol {
|
|
abstract sendMainInput(input: string): void;
|
|
|
|
abstract reverseToIndex(index: number): void;
|
|
|
|
abstract sendRefinementInput(input: string, index: number): void;
|
|
|
|
abstract sendStepUserInput(input: string, index: number): void;
|
|
|
|
abstract onStateUpdate(state: any): void;
|
|
|
|
abstract onAvailableSlashCommands(
|
|
callback: (commands: { name: string; description: string }[]) => void
|
|
): void;
|
|
|
|
abstract sendClear(): void;
|
|
|
|
abstract retryAtIndex(index: number): void;
|
|
|
|
abstract deleteAtIndex(index: number): void;
|
|
|
|
abstract deleteContextWithIds(ids: ContextItemId[]): void;
|
|
|
|
abstract setEditingAtIds(ids: string[]): void;
|
|
|
|
abstract toggleAddingHighlightedCode(): void;
|
|
|
|
abstract showLogsAtIndex(index: number): void;
|
|
|
|
abstract selectContextItem(id: string, query: string): void;
|
|
|
|
abstract loadSession(session_id?: string): void;
|
|
|
|
abstract onReconnectAtSession(session_id: string): void;
|
|
}
|
|
|
|
export default AbstractContinueGUIClientProtocol;
|