summaryrefslogtreecommitdiff
path: root/extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-18 16:31:39 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-18 16:31:39 -0700
commit627f260cee108476e5335584e81f5e36f3e248cb (patch)
tree85e47d3b6c7c13bad339f84dabc7beb67af05d00 /extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts
parent53ac7b93f456b471eaa7f03e015e2d8c0ef393e5 (diff)
downloadsncontinue-627f260cee108476e5335584e81f5e36f3e248cb.tar.gz
sncontinue-627f260cee108476e5335584e81f5e36f3e248cb.tar.bz2
sncontinue-627f260cee108476e5335584e81f5e36f3e248cb.zip
CONTRIBUTING.md
Diffstat (limited to 'extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts')
-rw-r--r--extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts35
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;