summaryrefslogtreecommitdiff
path: root/extension/schema
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-09-28 01:02:52 -0700
committerGitHub <noreply@github.com>2023-09-28 01:02:52 -0700
commit95363a5b52f3bf73531ac76b00178fa79ca97661 (patch)
tree9b9c1614556f1f0d21f363e6a9fe950069affb5d /extension/schema
parentd4acf4bb11dbd7d3d6210e2949d21143d721e81e (diff)
downloadsncontinue-95363a5b52f3bf73531ac76b00178fa79ca97661.tar.gz
sncontinue-95363a5b52f3bf73531ac76b00178fa79ca97661.tar.bz2
sncontinue-95363a5b52f3bf73531ac76b00178fa79ca97661.zip
Past input (#513)
* feat: :construction: use ComboBox in place of UserInputContainer * feat: :construction: adding context to previous inputs steps * feat: :sparkles: preview context items on click * feat: :construction: more work on context items ui * style: :construction: working out the details of ctx item buttons * feat: :sparkles: getting the final details * fix: :bug: fix height of ctx items bar * fix: :bug: last couple of details * fix: :bug: pass model param through to hf inference api * fix: :loud_sound: better logging for timeout * feat: :sparkles: option to set the meilisearch url * fix: :bug: fix height of past inputs
Diffstat (limited to 'extension/schema')
-rw-r--r--extension/schema/ContinueConfig.d.ts13
-rw-r--r--extension/schema/FullState.d.ts34
-rw-r--r--extension/schema/History.d.ts38
-rw-r--r--extension/schema/HistoryNode.d.ts38
-rw-r--r--extension/schema/LLM.d.ts5
-rw-r--r--extension/schema/Models.d.ts13
6 files changed, 116 insertions, 25 deletions
diff --git a/extension/schema/ContinueConfig.d.ts b/extension/schema/ContinueConfig.d.ts
index 92f6e047..64aa5c02 100644
--- a/extension/schema/ContinueConfig.d.ts
+++ b/extension/schema/ContinueConfig.d.ts
@@ -72,10 +72,14 @@ export type VerifySsl = boolean;
*/
export type CaBundlePath = string;
/**
+ * Proxy URL to use when making the HTTP request
+ */
+export type Proxy = string;
+/**
* The API key for the LLM provider.
*/
export type ApiKey = string;
-export type Unused = LLM[];
+export type Saved = LLM[];
/**
* The temperature parameter for sampling from the LLM. Higher temperatures will result in more random output, while lower temperatures will result in more predictable output. This value ranges from 0 to 1.
*/
@@ -205,12 +209,10 @@ export interface FunctionCall {
*/
export interface Models1 {
default: LLM;
- small?: LLM;
- medium?: LLM;
- large?: LLM;
+ summarize?: LLM;
edit?: LLM;
chat?: LLM;
- unused?: Unused;
+ saved?: Saved;
sdk?: ContinueSDK;
[k: string]: unknown;
}
@@ -224,6 +226,7 @@ export interface LLM {
timeout?: Timeout;
verify_ssl?: VerifySsl;
ca_bundle_path?: CaBundlePath;
+ proxy?: Proxy;
prompt_templates?: PromptTemplates;
api_key?: ApiKey;
[k: string]: unknown;
diff --git a/extension/schema/FullState.d.ts b/extension/schema/FullState.d.ts
index 5d5a5444..90b8506b 100644
--- a/extension/schema/FullState.d.ts
+++ b/extension/schema/FullState.d.ts
@@ -23,21 +23,22 @@ export type Depth = number;
export type Deleted = boolean;
export type Active = boolean;
export type Logs = string[];
-export type Timeline = HistoryNode[];
-export type CurrentIndex = number;
-export type Active1 = boolean;
-export type UserInputQueue = string[];
export type Name3 = string;
export type Description1 = string;
-export type SlashCommands = SlashCommandDescription[];
-export type AddingHighlightedCode = boolean;
-export type Name4 = string;
-export type Description2 = string;
export type ProviderTitle = string;
export type ItemId = string;
export type Content1 = string;
export type Editing = boolean;
export type Editable = boolean;
+export type ContextUsed = ContextItem[];
+export type Timeline = HistoryNode[];
+export type CurrentIndex = number;
+export type Active1 = boolean;
+export type UserInputQueue = string[];
+export type Name4 = string;
+export type Description2 = string;
+export type SlashCommands = SlashCommandDescription[];
+export type AddingHighlightedCode = boolean;
export type SelectedContextItems = ContextItem[];
export type SessionId = string;
export type Title = string;
@@ -51,6 +52,7 @@ export type Description3 = string;
export type Dynamic = boolean;
export type RequiresQuery = boolean;
export type ContextProviders = ContextProviderDescription[];
+export type MeilisearchUrl = string;
/**
* A full state of the program, including the history
@@ -66,6 +68,7 @@ export interface FullState1 {
config: ContinueConfig;
saved_context_groups?: SavedContextGroups;
context_providers?: ContextProviders;
+ meilisearch_url?: MeilisearchUrl;
[k: string]: unknown;
}
/**
@@ -86,6 +89,7 @@ export interface HistoryNode {
deleted?: Deleted;
active?: Active;
logs?: Logs;
+ context_used?: ContextUsed;
[k: string]: unknown;
}
export interface Step {
@@ -114,11 +118,6 @@ export interface FunctionCall {
export interface Observation {
[k: string]: unknown;
}
-export interface SlashCommandDescription {
- name: Name3;
- description: Description1;
- [k: string]: unknown;
-}
/**
* A ContextItem is a single item that is stored in the ContextManager.
*/
@@ -135,8 +134,8 @@ export interface ContextItem {
* The id can be used to retrieve the ContextItem from the ContextManager.
*/
export interface ContextItemDescription {
- name: Name4;
- description: Description2;
+ name: Name3;
+ description: Description1;
id: ContextItemId;
[k: string]: unknown;
}
@@ -148,6 +147,11 @@ export interface ContextItemId {
item_id: ItemId;
[k: string]: unknown;
}
+export interface SlashCommandDescription {
+ name: Name4;
+ description: Description2;
+ [k: string]: unknown;
+}
export interface SessionInfo {
session_id: SessionId;
title: Title;
diff --git a/extension/schema/History.d.ts b/extension/schema/History.d.ts
index b00a1505..9b7db18a 100644
--- a/extension/schema/History.d.ts
+++ b/extension/schema/History.d.ts
@@ -23,6 +23,14 @@ export type Depth = number;
export type Deleted = boolean;
export type Active = boolean;
export type Logs = string[];
+export type Name3 = string;
+export type Description1 = string;
+export type ProviderTitle = string;
+export type ItemId = string;
+export type Content1 = string;
+export type Editing = boolean;
+export type Editable = boolean;
+export type ContextUsed = ContextItem[];
export type Timeline = HistoryNode[];
export type CurrentIndex = number;
@@ -44,6 +52,7 @@ export interface HistoryNode {
deleted?: Deleted;
active?: Active;
logs?: Logs;
+ context_used?: ContextUsed;
[k: string]: unknown;
}
export interface Step {
@@ -72,3 +81,32 @@ export interface FunctionCall {
export interface Observation {
[k: string]: unknown;
}
+/**
+ * A ContextItem is a single item that is stored in the ContextManager.
+ */
+export interface ContextItem {
+ description: ContextItemDescription;
+ content: Content1;
+ editing?: Editing;
+ editable?: Editable;
+ [k: string]: unknown;
+}
+/**
+ * A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.
+ *
+ * The id can be used to retrieve the ContextItem from the ContextManager.
+ */
+export interface ContextItemDescription {
+ name: Name3;
+ description: Description1;
+ id: ContextItemId;
+ [k: string]: unknown;
+}
+/**
+ * A ContextItemId is a unique identifier for a ContextItem.
+ */
+export interface ContextItemId {
+ provider_title: ProviderTitle;
+ item_id: ItemId;
+ [k: string]: unknown;
+}
diff --git a/extension/schema/HistoryNode.d.ts b/extension/schema/HistoryNode.d.ts
index 08424d75..ad4c1154 100644
--- a/extension/schema/HistoryNode.d.ts
+++ b/extension/schema/HistoryNode.d.ts
@@ -23,6 +23,14 @@ export type Depth = number;
export type Deleted = boolean;
export type Active = boolean;
export type Logs = string[];
+export type Name3 = string;
+export type Description1 = string;
+export type ProviderTitle = string;
+export type ItemId = string;
+export type Content1 = string;
+export type Editing = boolean;
+export type Editable = boolean;
+export type ContextUsed = ContextItem[];
/**
* A point in history, a list of which make up History
@@ -34,6 +42,7 @@ export interface HistoryNode1 {
deleted?: Deleted;
active?: Active;
logs?: Logs;
+ context_used?: ContextUsed;
[k: string]: unknown;
}
export interface Step {
@@ -62,3 +71,32 @@ export interface FunctionCall {
export interface Observation {
[k: string]: unknown;
}
+/**
+ * A ContextItem is a single item that is stored in the ContextManager.
+ */
+export interface ContextItem {
+ description: ContextItemDescription;
+ content: Content1;
+ editing?: Editing;
+ editable?: Editable;
+ [k: string]: unknown;
+}
+/**
+ * A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.
+ *
+ * The id can be used to retrieve the ContextItem from the ContextManager.
+ */
+export interface ContextItemDescription {
+ name: Name3;
+ description: Description1;
+ id: ContextItemId;
+ [k: string]: unknown;
+}
+/**
+ * A ContextItemId is a unique identifier for a ContextItem.
+ */
+export interface ContextItemId {
+ provider_title: ProviderTitle;
+ item_id: ItemId;
+ [k: string]: unknown;
+}
diff --git a/extension/schema/LLM.d.ts b/extension/schema/LLM.d.ts
index 31d38456..2c1ced29 100644
--- a/extension/schema/LLM.d.ts
+++ b/extension/schema/LLM.d.ts
@@ -43,6 +43,10 @@ export type VerifySsl = boolean;
*/
export type CaBundlePath = string;
/**
+ * Proxy URL to use when making the HTTP request
+ */
+export type Proxy = string;
+/**
* The API key for the LLM provider.
*/
export type ApiKey = string;
@@ -57,6 +61,7 @@ export interface LLM1 {
timeout?: Timeout;
verify_ssl?: VerifySsl;
ca_bundle_path?: CaBundlePath;
+ proxy?: Proxy;
prompt_templates?: PromptTemplates;
api_key?: ApiKey;
[k: string]: unknown;
diff --git a/extension/schema/Models.d.ts b/extension/schema/Models.d.ts
index 9005c08c..67d73cfc 100644
--- a/extension/schema/Models.d.ts
+++ b/extension/schema/Models.d.ts
@@ -43,22 +43,24 @@ export type VerifySsl = boolean;
*/
export type CaBundlePath = string;
/**
+ * Proxy URL to use when making the HTTP request
+ */
+export type Proxy = string;
+/**
* The API key for the LLM provider.
*/
export type ApiKey = string;
-export type Unused = LLM[];
+export type Saved = LLM[];
/**
* Main class that holds the current model configuration
*/
export interface Models1 {
default: LLM;
- small?: LLM;
- medium?: LLM;
- large?: LLM;
+ summarize?: LLM;
edit?: LLM;
chat?: LLM;
- unused?: Unused;
+ saved?: Saved;
sdk?: ContinueSDK;
[k: string]: unknown;
}
@@ -72,6 +74,7 @@ export interface LLM {
timeout?: Timeout;
verify_ssl?: VerifySsl;
ca_bundle_path?: CaBundlePath;
+ proxy?: Proxy;
prompt_templates?: PromptTemplates;
api_key?: ApiKey;
[k: string]: unknown;