diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-18 16:31:39 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-18 16:31:39 -0700 |
commit | b2dba8d5a4a8852fcea8bcd724e2f17d1d909a6e (patch) | |
tree | b0b2b39178dc5146f062bec16594b225b79db515 /extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts | |
parent | 54c975f1454b353590435c262d558a71e6013865 (diff) | |
download | sncontinue-b2dba8d5a4a8852fcea8bcd724e2f17d1d909a6e.tar.gz sncontinue-b2dba8d5a4a8852fcea8bcd724e2f17d1d909a6e.tar.bz2 sncontinue-b2dba8d5a4a8852fcea8bcd724e2f17d1d909a6e.zip |
CONTRIBUTING.md
Diffstat (limited to 'extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts')
-rw-r--r-- | extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts b/extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts new file mode 100644 index 00000000..6c0df8fc --- /dev/null +++ b/extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts @@ -0,0 +1,35 @@ +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 changeDefaultModel(model: string): void; + + abstract sendClear(): void; + + abstract retryAtIndex(index: number): void; + + abstract deleteAtIndex(index: number): void; + + abstract deleteContextAtIndices(indices: number[]): void; + + abstract setEditingAtIndices(indices: number[]): void; + + abstract setPinnedAtIndices(indices: number[]): void; + + abstract toggleAddingHighlightedCode(): void; + + abstract showLogsAtIndex(index: number): void; +} + +export default AbstractContinueGUIClientProtocol; |