From d6b185fb92711529b81325b1045f2007fcd160e2 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 13 Apr 2024 13:55:26 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20removing=20unused=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/scripts/typegen.js | 64 -- package-lock.json | 6 - schema/README.md | 3 - schema/json/ContextItem.json | 76 -- schema/json/ContextItemId.json | 25 - schema/json/ContextProviderDescription.json | 39 - schema/json/ContinueConfig.json | 781 -------------- schema/json/ContinueError.json | 24 - schema/json/FileEdit.json | 63 -- schema/json/FileEditWithFullContents.json | 80 -- schema/json/LLM.json | 170 --- schema/json/ModelDescription.json | 195 ---- schema/json/ModelName.json | 30 - schema/json/ModelProvider.json | 20 - schema/json/Models.json | 234 ----- schema/json/PersistedSessionInfo.json | 208 ---- schema/json/Position.json | 24 - schema/json/Range.json | 41 - schema/json/RangeInFile.json | 58 -- schema/json/RangeInFileWithContents.json | 64 -- schema/json/SerializedContinueConfig.json | 544 ---------- schema/json/SessionInfo.json | 33 - schema/json/SessionState.json | 181 ---- schema/json/SessionUpdate.json | 136 --- schema/json/SlashCommandDescription.json | 24 - schema/json/Traceback.json | 63 -- schema/json/TracebackFrame.json | 33 - schema/openapi.json | 1027 ------------------- 28 files changed, 4246 deletions(-) delete mode 100644 extensions/vscode/scripts/typegen.js delete mode 100644 package-lock.json delete mode 100644 schema/README.md delete mode 100644 schema/json/ContextItem.json delete mode 100644 schema/json/ContextItemId.json delete mode 100644 schema/json/ContextProviderDescription.json delete mode 100644 schema/json/ContinueConfig.json delete mode 100644 schema/json/ContinueError.json delete mode 100644 schema/json/FileEdit.json delete mode 100644 schema/json/FileEditWithFullContents.json delete mode 100644 schema/json/LLM.json delete mode 100644 schema/json/ModelDescription.json delete mode 100644 schema/json/ModelName.json delete mode 100644 schema/json/ModelProvider.json delete mode 100644 schema/json/Models.json delete mode 100644 schema/json/PersistedSessionInfo.json delete mode 100644 schema/json/Position.json delete mode 100644 schema/json/Range.json delete mode 100644 schema/json/RangeInFile.json delete mode 100644 schema/json/RangeInFileWithContents.json delete mode 100644 schema/json/SerializedContinueConfig.json delete mode 100644 schema/json/SessionInfo.json delete mode 100644 schema/json/SessionState.json delete mode 100644 schema/json/SessionUpdate.json delete mode 100644 schema/json/SlashCommandDescription.json delete mode 100644 schema/json/Traceback.json delete mode 100644 schema/json/TracebackFrame.json delete mode 100644 schema/openapi.json diff --git a/extensions/vscode/scripts/typegen.js b/extensions/vscode/scripts/typegen.js deleted file mode 100644 index fec9160b1..000000000 --- a/extensions/vscode/scripts/typegen.js +++ /dev/null @@ -1,64 +0,0 @@ -const fs = require("fs"); -const path = require("path"); -const { compile } = require("json-schema-to-typescript"); - -function generateTypesForFile(inputPath, outputPath) { - let schema = JSON.parse(fs.readFileSync(inputPath, "utf8")); - let name = path.parse(path.basename(inputPath)).name; - // This is to solve the issue of json-schema-to-typescript not supporting $ref at the top-level, which is what Pydantic generates for recursive types - if ("$ref" in schema) { - let temp = schema["$ref"]; - delete schema["$ref"]; - schema["allOf"] = [{ $ref: temp }]; - } - - compile(schema, name) - .then((ts) => { - fs.writeFileSync(path.join(outputPath, name + ".d.ts"), ts); - }) - .catch((e) => { - console.log("Error generating types for " + name); - throw e; - }); -} - -function generateAllSchemas(inputDir, outputDir) { - // get the current directory - try { - fs.readdirSync(inputDir).forEach((file) => { - if (file.endsWith(".json")) { - generateTypesForFile(path.join(inputDir, file), outputDir); - } - }); - } catch (e) { - console.log( - "Make sure you are running this script from the extensions/vscode/ directory." - ); - throw e; - } -} - -function deleteAllInDir(dir) { - fs.readdirSync(dir).forEach((file) => { - if (file.endsWith(".d.ts")) { - fs.unlinkSync(path.join(dir, file)); - } - }); -} - -const OUTPUT_DIRS = [ - path.join("schema"), - path.join("..", "..", "gui", "src", "schema"), -]; -const INPUT_DIR = path.join("..", "..", "schema", "json"); -if (!fs.existsSync(INPUT_DIR)) { - throw new Error(`Input directory does not exist: ${INPUT_DIR}`); -} - -OUTPUT_DIRS.forEach((dir) => { - deleteAllInDir(dir); - if (!fs.existsSync(dir)) { - throw new Error(`Output directory does not exist: ${dir}`); - } - generateAllSchemas(INPUT_DIR, dir); -}); diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 55bcf93c5..000000000 --- a/package-lock.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "continue", - "lockfileVersion": 3, - "requires": true, - "packages": {} -} diff --git a/schema/README.md b/schema/README.md deleted file mode 100644 index 42e0f9a18..000000000 --- a/schema/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# JSON Schema Definitions - -These definitions are generated from the Pydantic models that live in `package/libs/models/main.py`, by entering a `poetry shell` and running from the root of the `continue` repository the command `python3 -m package.libs.models.generate_json_schema.py`. Previously you could generate matching Typescript types to the `extensions/vscode/schema` directory using `npm run typegen` from the `extension` directory. diff --git a/schema/json/ContextItem.json b/schema/json/ContextItem.json deleted file mode 100644 index e68f61d30..000000000 --- a/schema/json/ContextItem.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "title": "ContextItem", - "$ref": "#/definitions/continuedev__core__main__ContextItem", - "definitions": { - "ContextItemId": { - "title": "ContextItemId", - "description": "A ContextItemId is a unique identifier for a ContextItem.", - "type": "object", - "properties": { - "provider_title": { - "title": "Provider Title", - "type": "string" - }, - "item_id": { - "title": "Item Id", - "type": "string" - } - }, - "required": [ - "provider_title", - "item_id" - ] - }, - "ContextItemDescription": { - "title": "ContextItemDescription", - "description": "A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.\n\nThe id can be used to retrieve the ContextItem from the ContextManager.", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "id": { - "$ref": "#/definitions/ContextItemId" - } - }, - "required": [ - "name", - "description", - "id" - ] - }, - "continuedev__core__main__ContextItem": { - "title": "ContextItem", - "description": "A ContextItem is a single item that is stored in the ContextManager.", - "type": "object", - "properties": { - "description": { - "$ref": "#/definitions/ContextItemDescription" - }, - "content": { - "title": "Content", - "type": "string" - }, - "editing": { - "title": "Editing", - "default": false, - "type": "boolean" - }, - "editable": { - "title": "Editable", - "default": false, - "type": "boolean" - } - }, - "required": [ - "description", - "content" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/ContextItemId.json b/schema/json/ContextItemId.json deleted file mode 100644 index 569eec865..000000000 --- a/schema/json/ContextItemId.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "title": "ContextItemId", - "$ref": "#/definitions/continuedev__core__main__ContextItemId", - "definitions": { - "continuedev__core__main__ContextItemId": { - "title": "ContextItemId", - "description": "A ContextItemId is a unique identifier for a ContextItem.", - "type": "object", - "properties": { - "provider_title": { - "title": "Provider Title", - "type": "string" - }, - "item_id": { - "title": "Item Id", - "type": "string" - } - }, - "required": [ - "provider_title", - "item_id" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/ContextProviderDescription.json b/schema/json/ContextProviderDescription.json deleted file mode 100644 index b68709646..000000000 --- a/schema/json/ContextProviderDescription.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "title": "ContextProviderDescription", - "$ref": "#/definitions/continuedev__core__main__ContextProviderDescription", - "definitions": { - "continuedev__core__main__ContextProviderDescription": { - "title": "ContextProviderDescription", - "type": "object", - "properties": { - "title": { - "title": "Title", - "type": "string" - }, - "display_title": { - "title": "Display Title", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "dynamic": { - "title": "Dynamic", - "type": "boolean" - }, - "requires_query": { - "title": "Requires Query", - "type": "boolean" - } - }, - "required": [ - "title", - "display_title", - "description", - "dynamic", - "requires_query" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/ContinueConfig.json b/schema/json/ContinueConfig.json deleted file mode 100644 index 8ef88047a..000000000 --- a/schema/json/ContinueConfig.json +++ /dev/null @@ -1,781 +0,0 @@ -{ - "title": "ContinueConfig", - "$ref": "#/definitions/continuedev__core__config__ContinueConfig", - "definitions": { - "FunctionCall": { - "title": "FunctionCall", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "arguments": { - "title": "Arguments", - "type": "string" - } - }, - "required": [ - "name", - "arguments" - ] - }, - "ChatMessage": { - "title": "ChatMessage", - "type": "object", - "properties": { - "role": { - "title": "Role", - "enum": [ - "assistant", - "user", - "system", - "function" - ], - "type": "string" - }, - "content": { - "title": "Content", - "default": "", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "summary": { - "title": "Summary", - "type": "string" - }, - "function_call": { - "$ref": "#/definitions/FunctionCall" - } - }, - "required": [ - "role" - ] - }, - "Step": { - "title": "Step", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "hide": { - "title": "Hide", - "default": false, - "type": "boolean" - }, - "description": { - "title": "Description", - "default": "", - "type": "string" - }, - "class_name": { - "title": "Class Name", - "default": "Step", - "type": "string" - }, - "system_message": { - "title": "System Message", - "type": "string" - }, - "chat_context": { - "title": "Chat Context", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ChatMessage" - } - }, - "manage_own_chat_context": { - "title": "Manage Own Chat Context", - "default": false, - "type": "boolean" - } - } - }, - "BaseCompletionOptions": { - "title": "BaseCompletionOptions", - "type": "object", - "properties": { - "temperature": { - "title": "Temperature", - "description": "The temperature of the completion.", - "type": "number" - }, - "top_p": { - "title": "Top P", - "description": "The top_p of the completion.", - "type": "number" - }, - "top_k": { - "title": "Top K", - "description": "The top_k of the completion.", - "type": "integer" - }, - "presence_penalty": { - "title": "Presence Penalty", - "description": "The presence penalty Aof the completion.", - "type": "number" - }, - "frequency_penalty": { - "title": "Frequency Penalty", - "description": "The frequency penalty of the completion.", - "type": "number" - }, - "stop": { - "title": "Stop", - "description": "The stop tokens of the completion.", - "type": "array", - "items": { - "type": "string" - } - }, - "max_tokens": { - "title": "Max Tokens", - "description": "The maximum number of tokens to generate.", - "default": 1023, - "type": "integer" - } - } - }, - "RequestOptions": { - "title": "RequestOptions", - "type": "object", - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to the LLM. If you are running a local LLM that takes a while to respond, you might want to set this to avoid timeouts.", - "default": 300, - "type": "integer" - }, - "verify_ssl": { - "title": "Verify Ssl", - "description": "Whether to verify SSL certificates for requests.", - "type": "boolean" - }, - "ca_bundle_path": { - "title": "Ca Bundle Path", - "description": "Path to a custom CA bundle to use when making the HTTP request", - "type": "string" - }, - "proxy": { - "title": "Proxy", - "description": "Proxy URL to use when making the HTTP request", - "type": "string" - }, - "headers": { - "title": "Headers", - "description": "Headers to use when making the HTTP request", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "LLM": { - "title": "LLM", - "type": "object", - "properties": { - "title": { - "title": "Title", - "description": "A title that will identify this model in the model selection dropdown", - "type": "string" - }, - "unique_id": { - "title": "Unique Id", - "description": "The unique ID of the user.", - "type": "string" - }, - "model": { - "title": "Model", - "description": "The name of the model to be used (e.g. gpt-4, codellama)", - "type": "string" - }, - "system_message": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "context_length": { - "title": "Context Length", - "description": "The maximum context length of the LLM in tokens, as counted by count_tokens.", - "default": 2048, - "type": "integer" - }, - "completion_options": { - "title": "Completion Options", - "description": "Options for the completion endpoint. Read more about the completion options in the documentation.", - "default": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "request_options": { - "title": "Request Options", - "description": "Options for the HTTP request to the LLM.", - "default": { - "timeout": 300, - "verify_ssl": null, - "ca_bundle_path": null, - "proxy": null, - "headers": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - }, - "prompt_templates": { - "title": "Prompt Templates", - "description": "A dictionary of prompt templates that can be used to customize the behavior of the LLM in certain situations. For example, set the \"edit\" key in order to change the prompt that is used for the /edit slash command. Each value in the dictionary is a string templated in mustache syntax, and filled in at runtime with the variables specific to the situation. See the documentation for more information.", - "type": "object" - }, - "api_key": { - "title": "Api Key", - "description": "The API key for the LLM provider.", - "type": "string" - }, - "api_base": { - "title": "Api Base", - "description": "The base URL of the LLM API.", - "type": "string" - } - }, - "required": [ - "model" - ] - }, - "ModelRoles": { - "title": "ModelRoles", - "type": "object", - "properties": { - "default": { - "title": "Default", - "description": "The default model. If other model roles are not set, they will fall back to default.", - "type": "string" - }, - "chat": { - "title": "Chat", - "description": "The model to use for chat. If not set, will fall back to default.", - "type": "string" - }, - "edit": { - "title": "Edit", - "description": "The model to use for editing. If not set, will fall back to default.", - "type": "string" - }, - "summarize": { - "title": "Summarize", - "description": "The model to use for summarization. If not set, will fall back to default.", - "type": "string" - } - }, - "required": [ - "default" - ] - }, - "CustomCommand": { - "title": "CustomCommand", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "prompt": { - "title": "Prompt", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - } - }, - "required": [ - "name", - "prompt", - "description" - ] - }, - "SlashCommand": { - "title": "SlashCommand", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "step": { - "title": "Step", - "anyOf": [ - {}, - { - "enum": [ - "AnswerQuestionChroma", - "GenerateShellCommandStep", - "EditHighlightedCodeStep", - "ShareSessionStep", - "CommentCodeStep", - "ClearHistoryStep", - "StackOverflowStep", - "OpenConfigStep" - ], - "type": "string" - }, - { - "type": "string" - } - ] - }, - "params": { - "title": "Params", - "default": {}, - "type": "object" - } - }, - "required": [ - "name", - "description", - "step" - ] - }, - "Policy": { - "title": "Policy", - "description": "A rule that determines which step to take next", - "type": "object", - "properties": {} - }, - "ContextItemId": { - "title": "ContextItemId", - "description": "A ContextItemId is a unique identifier for a ContextItem.", - "type": "object", - "properties": { - "provider_title": { - "title": "Provider Title", - "type": "string" - }, - "item_id": { - "title": "Item Id", - "type": "string" - } - }, - "required": [ - "provider_title", - "item_id" - ] - }, - "ContextItemDescription": { - "title": "ContextItemDescription", - "description": "A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.\n\nThe id can be used to retrieve the ContextItem from the ContextManager.", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "id": { - "$ref": "#/definitions/ContextItemId" - } - }, - "required": [ - "name", - "description", - "id" - ] - }, - "ContextItem": { - "title": "ContextItem", - "description": "A ContextItem is a single item that is stored in the ContextManager.", - "type": "object", - "properties": { - "description": { - "$ref": "#/definitions/ContextItemDescription" - }, - "content": { - "title": "Content", - "type": "string" - }, - "editing": { - "title": "Editing", - "default": false, - "type": "boolean" - }, - "editable": { - "title": "Editable", - "default": false, - "type": "boolean" - } - }, - "required": [ - "description", - "content" - ] - }, - "ContextProvider": { - "title": "ContextProvider", - "description": "The ContextProvider class is a plugin that lets you provide new information to the LLM by typing '@'.\nWhen you type '@', the context provider will be asked to populate a list of options.\nThese options will be updated on each keystroke.\nWhen you hit enter on an option, the context provider will add that item to the autopilot's list of context (which is all stored in the ContextManager object).", - "type": "object", - "properties": { - "title": { - "title": "Title", - "description": "The title of the ContextProvider. This is what must be typed in the input to trigger the ContextProvider.", - "type": "string" - }, - "ide": { - "title": "Ide" - }, - "display_title": { - "title": "Display Title", - "description": "The display title of the ContextProvider shown in the dropdown menu", - "type": "string" - }, - "description": { - "title": "Description", - "description": "A description of the ContextProvider displayed in the dropdown menu", - "type": "string" - }, - "dynamic": { - "title": "Dynamic", - "description": "Indicates whether the ContextProvider is dynamic", - "type": "boolean" - }, - "requires_query": { - "title": "Requires Query", - "description": "Indicates whether the ContextProvider requires a query. For example, the SearchContextProvider requires you to type '@search '. This will change the behavior of the UI so that it can indicate the expectation for a query.", - "default": false, - "type": "boolean" - }, - "selected_items": { - "title": "Selected Items", - "description": "List of selected items in the ContextProvider", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ContextItem" - } - } - }, - "required": [ - "title", - "display_title", - "description", - "dynamic" - ] - }, - "RetrievalSettings": { - "title": "RetrievalSettings", - "type": "object", - "properties": { - "n_retrieve": { - "title": "N Retrieve", - "description": "Number of results to initially retrieve from vector database", - "default": 50, - "type": "integer" - }, - "n_final": { - "title": "N Final", - "description": "Final number of results to use after re-ranking", - "default": 10, - "type": "integer" - }, - "use_reranking": { - "title": "Use Reranking", - "description": "Whether to use re-ranking, which will allow initial selection of n_retrieve results, then will use an LLM to select the top n_final results", - "default": true, - "type": "boolean" - }, - "rerank_group_size": { - "title": "Rerank Group Size", - "description": "Number of results to group together when re-ranking. Each group will be processed in parallel.", - "default": 5, - "type": "integer" - }, - "ignore_files": { - "title": "Ignore Files", - "description": "Files to ignore when indexing the codebase. You can use glob patterns, such as **/*.py. This is useful for directories that contain generated code, or other directories that are not relevant to the codebase.", - "default": [], - "type": "array", - "items": { - "type": "string" - } - }, - "openai_api_key": { - "title": "Openai Api Key", - "description": "OpenAI API key", - "type": "string" - }, - "api_base": { - "title": "Api Base", - "description": "OpenAI API base URL", - "type": "string" - }, - "api_type": { - "title": "Api Type", - "description": "OpenAI API type", - "type": "string" - }, - "api_version": { - "title": "Api Version", - "description": "OpenAI API version", - "type": "string" - }, - "organization_id": { - "title": "Organization Id", - "description": "OpenAI organization ID", - "type": "string" - } - } - }, - "continuedev__core__config__ContinueConfig": { - "title": "ContinueConfig", - "description": "Continue can be deeply customized by editing the `ContinueConfig` object in `~/.continue/config.py` (`%userprofile%\\.continue\\config.py` for Windows) on your machine. This class is instantiated from the config file for every new session.", - "type": "object", - "properties": { - "steps_on_startup": { - "title": "Steps On Startup", - "description": "Steps that will be automatically run at the beginning of a new session", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/Step" - } - }, - "disallowed_steps": { - "title": "Disallowed Steps", - "description": "Steps that are not allowed to be run, and will be skipped if attempted", - "default": [], - "type": "array", - "items": { - "type": "string" - } - }, - "allow_anonymous_telemetry": { - "title": "Allow Anonymous Telemetry", - "description": "If this field is set to True, we will collect anonymous telemetry as described in the documentation page on telemetry. If set to False, we will not collect any data.", - "default": true, - "type": "boolean" - }, - "models": { - "title": "Models", - "default": [ - { - "title": "GPT-4 (trial)", - "model": "gpt-4", - "system_message": null, - "context_length": 8192, - "completion_options": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "request_options": { - "timeout": 300, - "verify_ssl": null, - "ca_bundle_path": null, - "proxy": null, - "headers": null - }, - "prompt_templates": {}, - "template_messages": null, - "api_key": "", - "api_base": null, - "llm": { - "title": null, - "model": "gpt-4", - "system_message": null, - "context_length": 2048, - "completion_options": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "request_options": { - "timeout": 300, - "verify_ssl": null, - "ca_bundle_path": null, - "proxy": null, - "headers": null - }, - "prompt_templates": {}, - "template_messages": null, - "api_key": null, - "api_base": null, - "class_name": "ProxyServer" - }, - "class_name": "OpenAIFreeTrial" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/LLM" - } - }, - "model_roles": { - "title": "Model Roles", - "description": "Roles for models. Each entry should be the title of a model in the models array.", - "default": { - "default": "GPT-4 (trial)", - "chat": null, - "edit": null, - "summarize": null - }, - "allOf": [ - { - "$ref": "#/definitions/ModelRoles" - } - ] - }, - "system_message": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "completion_options": { - "title": "Completion Options", - "description": "Options for the completion endpoint. Read more about the completion options in the documentation.", - "default": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "custom_commands": { - "title": "Custom Commands", - "description": "An array of custom commands that allow you to reuse prompts. Each has name, description, and prompt properties. When you enter / in the text input, it will act as a shortcut to the prompt.", - "default": [ - { - "name": "test", - "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", - "description": "This is an example custom command. Use /config to edit it and create more" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/CustomCommand" - } - }, - "slash_commands": { - "title": "Slash Commands", - "description": "An array of slash commands that let you map custom Steps to a shortcut.", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/SlashCommand" - } - }, - "on_traceback": { - "title": "On Traceback", - "description": "The step that will be run when a traceback is detected (when you use the shortcut cmd+shift+R)", - "allOf": [ - { - "$ref": "#/definitions/Step" - } - ] - }, - "policy_override": { - "title": "Policy Override", - "description": "A Policy object that can be used to override the default behavior of Continue, for example in order to build custom agents that take multiple steps at a time.", - "allOf": [ - { - "$ref": "#/definitions/Policy" - } - ] - }, - "context_providers": { - "title": "Context Providers", - "description": "A list of ContextProvider objects that can be used to provide context to the LLM by typing '@'. Read more about ContextProviders in the documentation.", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ContextProvider" - } - }, - "user_token": { - "title": "User Token", - "description": "An optional token to identify the user.", - "type": "string" - }, - "data_server_url": { - "title": "Data Server Url", - "description": "The URL of the server where development data is sent. No data is sent unless you have explicitly set the `user_token` property to a valid token that we have shared.", - "default": "https://us-west1-autodebug.cloudfunctions.net", - "type": "string" - }, - "disable_summaries": { - "title": "Disable Summaries", - "description": "If set to `True`, Continue will not generate summaries for each Step. This can be useful if you want to save on compute.", - "default": false, - "type": "boolean" - }, - "disable_indexing": { - "title": "Disable Indexing", - "description": "If set to `True`, Continue will not index the codebase. This is mainly used for debugging purposes.", - "default": false, - "type": "boolean" - }, - "retrieval_settings": { - "title": "Retrieval Settings", - "description": "Settings for the retrieval system. Read more about the retrieval system in the documentation.", - "default": { - "n_retrieve": 50, - "n_final": 10, - "use_reranking": true, - "rerank_group_size": 5, - "ignore_files": [], - "openai_api_key": null, - "api_base": null, - "api_type": null, - "api_version": null, - "organization_id": null - }, - "allOf": [ - { - "$ref": "#/definitions/RetrievalSettings" - } - ] - } - } - } - } -} \ No newline at end of file diff --git a/schema/json/ContinueError.json b/schema/json/ContinueError.json deleted file mode 100644 index 179c8c9e3..000000000 --- a/schema/json/ContinueError.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "ContinueError", - "$ref": "#/definitions/continuedev__core__main__ContinueError", - "definitions": { - "continuedev__core__main__ContinueError": { - "title": "ContinueError", - "type": "object", - "properties": { - "title": { - "title": "Title", - "type": "string" - }, - "message": { - "title": "Message", - "type": "string" - } - }, - "required": [ - "title", - "message" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/FileEdit.json b/schema/json/FileEdit.json deleted file mode 100644 index b963f9b08..000000000 --- a/schema/json/FileEdit.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "title": "FileEdit", - "$ref": "#/definitions/continuedev__models__filesystem_edit__FileEdit", - "definitions": { - "Position": { - "title": "Position", - "type": "object", - "properties": { - "line": { - "title": "Line", - "type": "integer" - }, - "character": { - "title": "Character", - "type": "integer" - } - }, - "required": [ - "line", - "character" - ] - }, - "Range": { - "title": "Range", - "description": "A range in a file. 0-indexed.", - "type": "object", - "properties": { - "start": { - "$ref": "#/definitions/Position" - }, - "end": { - "$ref": "#/definitions/Position" - } - }, - "required": [ - "start", - "end" - ] - }, - "continuedev__models__filesystem_edit__FileEdit": { - "title": "FileEdit", - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "range": { - "$ref": "#/definitions/Range" - }, - "replacement": { - "title": "Replacement", - "type": "string" - } - }, - "required": [ - "filepath", - "range", - "replacement" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/FileEditWithFullContents.json b/schema/json/FileEditWithFullContents.json deleted file mode 100644 index ad136388c..000000000 --- a/schema/json/FileEditWithFullContents.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "title": "FileEditWithFullContents", - "$ref": "#/definitions/continuedev__models__filesystem_edit__FileEditWithFullContents", - "definitions": { - "Position": { - "title": "Position", - "type": "object", - "properties": { - "line": { - "title": "Line", - "type": "integer" - }, - "character": { - "title": "Character", - "type": "integer" - } - }, - "required": [ - "line", - "character" - ] - }, - "Range": { - "title": "Range", - "description": "A range in a file. 0-indexed.", - "type": "object", - "properties": { - "start": { - "$ref": "#/definitions/Position" - }, - "end": { - "$ref": "#/definitions/Position" - } - }, - "required": [ - "start", - "end" - ] - }, - "FileEdit": { - "title": "FileEdit", - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "range": { - "$ref": "#/definitions/Range" - }, - "replacement": { - "title": "Replacement", - "type": "string" - } - }, - "required": [ - "filepath", - "range", - "replacement" - ] - }, - "continuedev__models__filesystem_edit__FileEditWithFullContents": { - "title": "FileEditWithFullContents", - "type": "object", - "properties": { - "fileEdit": { - "$ref": "#/definitions/FileEdit" - }, - "fileContents": { - "title": "Filecontents", - "type": "string" - } - }, - "required": [ - "fileEdit", - "fileContents" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/LLM.json b/schema/json/LLM.json deleted file mode 100644 index 8003a66a1..000000000 --- a/schema/json/LLM.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "title": "LLM", - "$ref": "#/definitions/continuedev__libs__llm__base__LLM", - "definitions": { - "BaseCompletionOptions": { - "title": "BaseCompletionOptions", - "type": "object", - "properties": { - "temperature": { - "title": "Temperature", - "description": "The temperature of the completion.", - "type": "number" - }, - "top_p": { - "title": "Top P", - "description": "The top_p of the completion.", - "type": "number" - }, - "top_k": { - "title": "Top K", - "description": "The top_k of the completion.", - "type": "integer" - }, - "presence_penalty": { - "title": "Presence Penalty", - "description": "The presence penalty Aof the completion.", - "type": "number" - }, - "frequency_penalty": { - "title": "Frequency Penalty", - "description": "The frequency penalty of the completion.", - "type": "number" - }, - "stop": { - "title": "Stop", - "description": "The stop tokens of the completion.", - "type": "array", - "items": { - "type": "string" - } - }, - "max_tokens": { - "title": "Max Tokens", - "description": "The maximum number of tokens to generate.", - "default": 1023, - "type": "integer" - } - } - }, - "RequestOptions": { - "title": "RequestOptions", - "type": "object", - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to the LLM. If you are running a local LLM that takes a while to respond, you might want to set this to avoid timeouts.", - "default": 300, - "type": "integer" - }, - "verify_ssl": { - "title": "Verify Ssl", - "description": "Whether to verify SSL certificates for requests.", - "type": "boolean" - }, - "ca_bundle_path": { - "title": "Ca Bundle Path", - "description": "Path to a custom CA bundle to use when making the HTTP request", - "type": "string" - }, - "proxy": { - "title": "Proxy", - "description": "Proxy URL to use when making the HTTP request", - "type": "string" - }, - "headers": { - "title": "Headers", - "description": "Headers to use when making the HTTP request", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "continuedev__libs__llm__base__LLM": { - "title": "LLM", - "type": "object", - "properties": { - "title": { - "title": "Title", - "description": "A title that will identify this model in the model selection dropdown", - "type": "string" - }, - "unique_id": { - "title": "Unique Id", - "description": "The unique ID of the user.", - "type": "string" - }, - "model": { - "title": "Model", - "description": "The name of the model to be used (e.g. gpt-4, codellama)", - "type": "string" - }, - "system_message": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "context_length": { - "title": "Context Length", - "description": "The maximum context length of the LLM in tokens, as counted by count_tokens.", - "default": 2048, - "type": "integer" - }, - "completion_options": { - "title": "Completion Options", - "description": "Options for the completion endpoint. Read more about the completion options in the documentation.", - "default": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "request_options": { - "title": "Request Options", - "description": "Options for the HTTP request to the LLM.", - "default": { - "timeout": 300, - "verify_ssl": null, - "ca_bundle_path": null, - "proxy": null, - "headers": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - }, - "prompt_templates": { - "title": "Prompt Templates", - "description": "A dictionary of prompt templates that can be used to customize the behavior of the LLM in certain situations. For example, set the \"edit\" key in order to change the prompt that is used for the /edit slash command. Each value in the dictionary is a string templated in mustache syntax, and filled in at runtime with the variables specific to the situation. See the documentation for more information.", - "type": "object" - }, - "api_key": { - "title": "Api Key", - "description": "The API key for the LLM provider.", - "type": "string" - }, - "api_base": { - "title": "Api Base", - "description": "The base URL of the LLM API.", - "type": "string" - } - }, - "required": [ - "model" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/ModelDescription.json b/schema/json/ModelDescription.json deleted file mode 100644 index 16136e8fe..000000000 --- a/schema/json/ModelDescription.json +++ /dev/null @@ -1,195 +0,0 @@ -{ - "title": "ModelDescription", - "$ref": "#/definitions/continuedev__core__config__ModelDescription", - "definitions": { - "BaseCompletionOptions": { - "title": "BaseCompletionOptions", - "type": "object", - "properties": { - "temperature": { - "title": "Temperature", - "description": "The temperature of the completion.", - "type": "number" - }, - "top_p": { - "title": "Top P", - "description": "The top_p of the completion.", - "type": "number" - }, - "top_k": { - "title": "Top K", - "description": "The top_k of the completion.", - "type": "integer" - }, - "presence_penalty": { - "title": "Presence Penalty", - "description": "The presence penalty Aof the completion.", - "type": "number" - }, - "frequency_penalty": { - "title": "Frequency Penalty", - "description": "The frequency penalty of the completion.", - "type": "number" - }, - "stop": { - "title": "Stop", - "description": "The stop tokens of the completion.", - "type": "array", - "items": { - "type": "string" - } - }, - "max_tokens": { - "title": "Max Tokens", - "description": "The maximum number of tokens to generate.", - "default": 1023, - "type": "integer" - } - } - }, - "RequestOptions": { - "title": "RequestOptions", - "type": "object", - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to the LLM. If you are running a local LLM that takes a while to respond, you might want to set this to avoid timeouts.", - "default": 300, - "type": "integer" - }, - "verify_ssl": { - "title": "Verify Ssl", - "description": "Whether to verify SSL certificates for requests.", - "type": "boolean" - }, - "ca_bundle_path": { - "title": "Ca Bundle Path", - "description": "Path to a custom CA bundle to use when making the HTTP request", - "type": "string" - }, - "proxy": { - "title": "Proxy", - "description": "Proxy URL to use when making the HTTP request", - "type": "string" - }, - "headers": { - "title": "Headers", - "description": "Headers to use when making the HTTP request", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "continuedev__core__config__ModelDescription": { - "title": "ModelDescription", - "type": "object", - "properties": { - "title": { - "title": "Title", - "description": "The title you wish to give your model.", - "type": "string" - }, - "provider": { - "title": "Provider", - "description": "The provider of the model. This is used to determine the type of model, and how to interact with it.", - "enum": [ - "openai", - "free-trial", - "openai-aiohttp", - "anthropic", - "bedrock", - "together", - "ollama", - "huggingface-tgi", - "huggingface-inference-api", - "llama.cpp", - "replicate", - "text-gen-webui", - "gemini", - "lmstudio", - "llamafile" - ], - "type": "string" - }, - "model": { - "title": "Model", - "description": "The name of the model. Used to autodetect prompt template.", - "type": "string" - }, - "api_key": { - "title": "Api Key", - "description": "OpenAI, Anthropic, Together, or other API key", - "type": "string" - }, - "api_base": { - "title": "Api Base", - "description": "The base URL of the LLM API.", - "type": "string" - }, - "context_length": { - "title": "Context Length", - "description": "The maximum context length of the LLM in tokens, as counted by count_tokens.", - "default": 2048, - "type": "integer" - }, - "template": { - "title": "Template", - "description": "The chat template used to format messages. This is auto-detected for most models, but can be overridden here.", - "enum": [ - "llama2", - "alpaca", - "zephyr", - "phind", - "anthropic", - "chatml", - "deepseek", - "neural-chat" - ], - "type": "string" - }, - "completion_options": { - "title": "Completion Options", - "description": "Options for the completion endpoint. Read more about the completion options in the documentation.", - "default": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "system_message": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "request_options": { - "title": "Request Options", - "description": "Options for the HTTP request to the LLM.", - "default": { - "timeout": 300, - "verify_ssl": null, - "ca_bundle_path": null, - "proxy": null, - "headers": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - } - }, - "required": ["title", "provider", "model"] - } - } -} diff --git a/schema/json/ModelName.json b/schema/json/ModelName.json deleted file mode 100644 index c030566da..000000000 --- a/schema/json/ModelName.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "ModelName", - "enum": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k", - "gpt-4", - "gpt-3.5-turbo-0613", - "gpt-4-32k", - "gpt-4-turbo-preview", - "mistral-7b", - "llama2-7b", - "llama2-13b", - "codellama-7b", - "codellama-13b", - "codellama-34b", - "phind-codellama-34b", - "wizardcoder-7b", - "wizardcoder-13b", - "wizardcoder-34b", - "zephyr-7b", - "codeup-13b", - "deepseek-1b", - "deepseek-7b", - "deepseek-33b", - "claude-2", - "chat-bison-001", - "neural-chat-7b" - ], - "type": "string" -} \ No newline at end of file diff --git a/schema/json/ModelProvider.json b/schema/json/ModelProvider.json deleted file mode 100644 index 7e6eb32a1..000000000 --- a/schema/json/ModelProvider.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "ModelProvider", - "enum": [ - "openai", - "free-trial", - "openai-aiohttp", - "anthropic", - "together", - "ollama", - "huggingface-tgi", - "huggingface-inference-api", - "llama.cpp", - "replicate", - "text-gen-webui", - "gemini", - "lmstudio", - "llamafile" - ], - "type": "string" -} diff --git a/schema/json/Models.json b/schema/json/Models.json deleted file mode 100644 index 677a39a5c..000000000 --- a/schema/json/Models.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "title": "Models", - "$ref": "#/definitions/continuedev__core__models__Models", - "definitions": { - "BaseCompletionOptions": { - "title": "BaseCompletionOptions", - "type": "object", - "properties": { - "temperature": { - "title": "Temperature", - "description": "The temperature of the completion.", - "type": "number" - }, - "top_p": { - "title": "Top P", - "description": "The top_p of the completion.", - "type": "number" - }, - "top_k": { - "title": "Top K", - "description": "The top_k of the completion.", - "type": "integer" - }, - "presence_penalty": { - "title": "Presence Penalty", - "description": "The presence penalty Aof the completion.", - "type": "number" - }, - "frequency_penalty": { - "title": "Frequency Penalty", - "description": "The frequency penalty of the completion.", - "type": "number" - }, - "stop": { - "title": "Stop", - "description": "The stop tokens of the completion.", - "type": "array", - "items": { - "type": "string" - } - }, - "max_tokens": { - "title": "Max Tokens", - "description": "The maximum number of tokens to generate.", - "default": 1023, - "type": "integer" - } - } - }, - "RequestOptions": { - "title": "RequestOptions", - "type": "object", - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to the LLM. If you are running a local LLM that takes a while to respond, you might want to set this to avoid timeouts.", - "default": 300, - "type": "integer" - }, - "verify_ssl": { - "title": "Verify Ssl", - "description": "Whether to verify SSL certificates for requests.", - "type": "boolean" - }, - "ca_bundle_path": { - "title": "Ca Bundle Path", - "description": "Path to a custom CA bundle to use when making the HTTP request", - "type": "string" - }, - "proxy": { - "title": "Proxy", - "description": "Proxy URL to use when making the HTTP request", - "type": "string" - }, - "headers": { - "title": "Headers", - "description": "Headers to use when making the HTTP request", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "LLM": { - "title": "LLM", - "type": "object", - "properties": { - "title": { - "title": "Title", - "description": "A title that will identify this model in the model selection dropdown", - "type": "string" - }, - "unique_id": { - "title": "Unique Id", - "description": "The unique ID of the user.", - "type": "string" - }, - "model": { - "title": "Model", - "description": "The name of the model to be used (e.g. gpt-4, codellama)", - "type": "string" - }, - "system_message": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "context_length": { - "title": "Context Length", - "description": "The maximum context length of the LLM in tokens, as counted by count_tokens.", - "default": 2048, - "type": "integer" - }, - "completion_options": { - "title": "Completion Options", - "description": "Options for the completion endpoint. Read more about the completion options in the documentation.", - "default": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "request_options": { - "title": "Request Options", - "description": "Options for the HTTP request to the LLM.", - "default": { - "timeout": 300, - "verify_ssl": null, - "ca_bundle_path": null, - "proxy": null, - "headers": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - }, - "prompt_templates": { - "title": "Prompt Templates", - "description": "A dictionary of prompt templates that can be used to customize the behavior of the LLM in certain situations. For example, set the \"edit\" key in order to change the prompt that is used for the /edit slash command. Each value in the dictionary is a string templated in mustache syntax, and filled in at runtime with the variables specific to the situation. See the documentation for more information.", - "type": "object" - }, - "api_key": { - "title": "Api Key", - "description": "The API key for the LLM provider.", - "type": "string" - }, - "api_base": { - "title": "Api Base", - "description": "The base URL of the LLM API.", - "type": "string" - } - }, - "required": [ - "model" - ] - }, - "continuedev__core__models__Models": { - "title": "Models", - "description": "Main class that holds the current model configuration", - "type": "object", - "properties": { - "default": { - "title": "Default", - "anyOf": [ - {}, - { - "$ref": "#/definitions/LLM" - } - ] - }, - "summarize": { - "title": "Summarize", - "anyOf": [ - {}, - { - "$ref": "#/definitions/LLM" - } - ] - }, - "edit": { - "title": "Edit", - "anyOf": [ - {}, - { - "$ref": "#/definitions/LLM" - } - ] - }, - "chat": { - "title": "Chat", - "anyOf": [ - {}, - { - "$ref": "#/definitions/LLM" - } - ] - }, - "saved": { - "title": "Saved", - "default": [], - "type": "array", - "items": { - "anyOf": [ - {}, - { - "$ref": "#/definitions/LLM" - } - ] - } - }, - "temperature": { - "title": "Temperature", - "type": "number" - }, - "system_message": { - "title": "System Message", - "type": "string" - } - } - } - } -} \ No newline at end of file diff --git a/schema/json/PersistedSessionInfo.json b/schema/json/PersistedSessionInfo.json deleted file mode 100644 index 370ed0c01..000000000 --- a/schema/json/PersistedSessionInfo.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "title": "PersistedSessionInfo", - "$ref": "#/definitions/continuedev__server__sessions__PersistedSessionInfo", - "definitions": { - "ContinueError": { - "title": "ContinueError", - "type": "object", - "properties": { - "title": { - "title": "Title", - "type": "string" - }, - "message": { - "title": "Message", - "type": "string" - } - }, - "required": [ - "title", - "message" - ] - }, - "Observation": { - "title": "Observation", - "type": "object", - "properties": {} - }, - "StepDescription": { - "title": "StepDescription", - "type": "object", - "properties": { - "step_type": { - "title": "Step Type", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "params": { - "title": "Params", - "type": "object" - }, - "hide": { - "title": "Hide", - "type": "boolean" - }, - "depth": { - "title": "Depth", - "type": "integer" - }, - "error": { - "$ref": "#/definitions/ContinueError" - }, - "observations": { - "title": "Observations", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/Observation" - } - }, - "logs": { - "title": "Logs", - "default": [], - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "step_type", - "name", - "description", - "params", - "hide", - "depth" - ] - }, - "ContextItemId": { - "title": "ContextItemId", - "description": "A ContextItemId is a unique identifier for a ContextItem.", - "type": "object", - "properties": { - "provider_title": { - "title": "Provider Title", - "type": "string" - }, - "item_id": { - "title": "Item Id", - "type": "string" - } - }, - "required": [ - "provider_title", - "item_id" - ] - }, - "ContextItemDescription": { - "title": "ContextItemDescription", - "description": "A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.\n\nThe id can be used to retrieve the ContextItem from the ContextManager.", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "id": { - "$ref": "#/definitions/ContextItemId" - } - }, - "required": [ - "name", - "description", - "id" - ] - }, - "ContextItem": { - "title": "ContextItem", - "description": "A ContextItem is a single item that is stored in the ContextManager.", - "type": "object", - "properties": { - "description": { - "$ref": "#/definitions/ContextItemDescription" - }, - "content": { - "title": "Content", - "type": "string" - }, - "editing": { - "title": "Editing", - "default": false, - "type": "boolean" - }, - "editable": { - "title": "Editable", - "default": false, - "type": "boolean" - } - }, - "required": [ - "description", - "content" - ] - }, - "SessionState": { - "title": "SessionState", - "description": "Full session history and important state needed for autopilot to Continue", - "type": "object", - "properties": { - "history": { - "title": "History", - "type": "array", - "items": { - "$ref": "#/definitions/StepDescription" - } - }, - "context_items": { - "title": "Context Items", - "type": "array", - "items": { - "$ref": "#/definitions/ContextItem" - } - } - }, - "required": [ - "history", - "context_items" - ] - }, - "continuedev__server__sessions__PersistedSessionInfo": { - "title": "PersistedSessionInfo", - "type": "object", - "properties": { - "session_state": { - "$ref": "#/definitions/SessionState" - }, - "title": { - "title": "Title", - "type": "string" - }, - "workspace_directory": { - "title": "Workspace Directory", - "type": "string" - }, - "session_id": { - "title": "Session Id", - "type": "string" - } - }, - "required": [ - "session_state", - "title", - "workspace_directory", - "session_id" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/Position.json b/schema/json/Position.json deleted file mode 100644 index 6fc31c7da..000000000 --- a/schema/json/Position.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "Position", - "$ref": "#/definitions/continuedev__models__main__Position", - "definitions": { - "continuedev__models__main__Position": { - "title": "Position", - "type": "object", - "properties": { - "line": { - "title": "Line", - "type": "integer" - }, - "character": { - "title": "Character", - "type": "integer" - } - }, - "required": [ - "line", - "character" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/Range.json b/schema/json/Range.json deleted file mode 100644 index 8d62b6227..000000000 --- a/schema/json/Range.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "title": "Range", - "$ref": "#/definitions/continuedev__models__main__Range", - "definitions": { - "Position": { - "title": "Position", - "type": "object", - "properties": { - "line": { - "title": "Line", - "type": "integer" - }, - "character": { - "title": "Character", - "type": "integer" - } - }, - "required": [ - "line", - "character" - ] - }, - "continuedev__models__main__Range": { - "title": "Range", - "description": "A range in a file. 0-indexed.", - "type": "object", - "properties": { - "start": { - "$ref": "#/definitions/Position" - }, - "end": { - "$ref": "#/definitions/Position" - } - }, - "required": [ - "start", - "end" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/RangeInFile.json b/schema/json/RangeInFile.json deleted file mode 100644 index 243fa6106..000000000 --- a/schema/json/RangeInFile.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "title": "RangeInFile", - "$ref": "#/definitions/continuedev__models__filesystem__RangeInFile", - "definitions": { - "Position": { - "title": "Position", - "type": "object", - "properties": { - "line": { - "title": "Line", - "type": "integer" - }, - "character": { - "title": "Character", - "type": "integer" - } - }, - "required": [ - "line", - "character" - ] - }, - "Range": { - "title": "Range", - "description": "A range in a file. 0-indexed.", - "type": "object", - "properties": { - "start": { - "$ref": "#/definitions/Position" - }, - "end": { - "$ref": "#/definitions/Position" - } - }, - "required": [ - "start", - "end" - ] - }, - "continuedev__models__filesystem__RangeInFile": { - "title": "RangeInFile", - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "range": { - "$ref": "#/definitions/Range" - } - }, - "required": [ - "filepath", - "range" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/RangeInFileWithContents.json b/schema/json/RangeInFileWithContents.json deleted file mode 100644 index 444161eb6..000000000 --- a/schema/json/RangeInFileWithContents.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "title": "RangeInFileWithContents", - "$ref": "#/definitions/continuedev__models__filesystem__RangeInFileWithContents", - "definitions": { - "Position": { - "title": "Position", - "type": "object", - "properties": { - "line": { - "title": "Line", - "type": "integer" - }, - "character": { - "title": "Character", - "type": "integer" - } - }, - "required": [ - "line", - "character" - ] - }, - "Range": { - "title": "Range", - "description": "A range in a file. 0-indexed.", - "type": "object", - "properties": { - "start": { - "$ref": "#/definitions/Position" - }, - "end": { - "$ref": "#/definitions/Position" - } - }, - "required": [ - "start", - "end" - ] - }, - "continuedev__models__filesystem__RangeInFileWithContents": { - "title": "RangeInFileWithContents", - "description": "A range in a file with the contents of the range.", - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "range": { - "$ref": "#/definitions/Range" - }, - "contents": { - "title": "Contents", - "type": "string" - } - }, - "required": [ - "filepath", - "range", - "contents" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/SerializedContinueConfig.json b/schema/json/SerializedContinueConfig.json deleted file mode 100644 index b65b7d0a4..000000000 --- a/schema/json/SerializedContinueConfig.json +++ /dev/null @@ -1,544 +0,0 @@ -{ - "title": "SerializedContinueConfig", - "$ref": "#/definitions/continuedev__core__config__SerializedContinueConfig", - "definitions": { - "BaseCompletionOptions": { - "title": "BaseCompletionOptions", - "type": "object", - "properties": { - "temperature": { - "title": "Temperature", - "description": "The temperature of the completion.", - "type": "number" - }, - "top_p": { - "title": "Top P", - "description": "The top_p of the completion.", - "type": "number" - }, - "top_k": { - "title": "Top K", - "description": "The top_k of the completion.", - "type": "integer" - }, - "presence_penalty": { - "title": "Presence Penalty", - "description": "The presence penalty Aof the completion.", - "type": "number" - }, - "frequency_penalty": { - "title": "Frequency Penalty", - "description": "The frequency penalty of the completion.", - "type": "number" - }, - "stop": { - "title": "Stop", - "description": "The stop tokens of the completion.", - "type": "array", - "items": { - "type": "string" - } - }, - "max_tokens": { - "title": "Max Tokens", - "description": "The maximum number of tokens to generate.", - "default": 1023, - "type": "integer" - } - } - }, - "RequestOptions": { - "title": "RequestOptions", - "type": "object", - "properties": { - "timeout": { - "title": "Timeout", - "description": "Set the timeout for each request to the LLM. If you are running a local LLM that takes a while to respond, you might want to set this to avoid timeouts.", - "default": 300, - "type": "integer" - }, - "verify_ssl": { - "title": "Verify Ssl", - "description": "Whether to verify SSL certificates for requests.", - "type": "boolean" - }, - "ca_bundle_path": { - "title": "Ca Bundle Path", - "description": "Path to a custom CA bundle to use when making the HTTP request", - "type": "string" - }, - "proxy": { - "title": "Proxy", - "description": "Proxy URL to use when making the HTTP request", - "type": "string" - }, - "headers": { - "title": "Headers", - "description": "Headers to use when making the HTTP request", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "ModelDescription": { - "title": "ModelDescription", - "type": "object", - "properties": { - "title": { - "title": "Title", - "description": "The title you wish to give your model.", - "type": "string" - }, - "provider": { - "title": "Provider", - "description": "The provider of the model. This is used to determine the type of model, and how to interact with it.", - "enum": [ - "openai", - "free-trial", - "openai-aiohttp", - "anthropic", - "bedrock", - "together", - "ollama", - "huggingface-tgi", - "huggingface-inference-api", - "llama.cpp", - "replicate", - "text-gen-webui", - "gemini", - "lmstudio", - "llamafile" - ], - "type": "string" - }, - "model": { - "title": "Model", - "description": "The name of the model. Used to autodetect prompt template.", - "type": "string" - }, - "api_key": { - "title": "Api Key", - "description": "OpenAI, Anthropic, Together, or other API key", - "type": "string" - }, - "api_base": { - "title": "Api Base", - "description": "The base URL of the LLM API.", - "type": "string" - }, - "context_length": { - "title": "Context Length", - "description": "The maximum context length of the LLM in tokens, as counted by count_tokens.", - "default": 2048, - "type": "integer" - }, - "template": { - "title": "Template", - "description": "The chat template used to format messages. This is auto-detected for most models, but can be overridden here.", - "enum": [ - "llama2", - "alpaca", - "zephyr", - "phind", - "anthropic", - "chatml", - "deepseek", - "neural-chat" - ], - "type": "string" - }, - "completion_options": { - "title": "Completion Options", - "description": "Options for the completion endpoint. Read more about the completion options in the documentation.", - "default": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "system_message": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "request_options": { - "title": "Request Options", - "description": "Options for the HTTP request to the LLM.", - "default": { - "timeout": 300, - "verify_ssl": null, - "ca_bundle_path": null, - "proxy": null, - "headers": null - }, - "allOf": [ - { - "$ref": "#/definitions/RequestOptions" - } - ] - } - }, - "required": ["title", "provider", "model"] - }, - "ModelRoles": { - "title": "ModelRoles", - "type": "object", - "properties": { - "default": { - "title": "Default", - "description": "The default model. If other model roles are not set, they will fall back to default.", - "type": "string" - }, - "chat": { - "title": "Chat", - "description": "The model to use for chat. If not set, will fall back to default.", - "type": "string" - }, - "edit": { - "title": "Edit", - "description": "The model to use for editing. If not set, will fall back to default.", - "type": "string" - }, - "summarize": { - "title": "Summarize", - "description": "The model to use for summarization. If not set, will fall back to default.", - "type": "string" - } - }, - "required": ["default"] - }, - "SlashCommand": { - "title": "SlashCommand", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "step": { - "title": "Step", - "anyOf": [ - {}, - { - "enum": [ - "AnswerQuestionChroma", - "GenerateShellCommandStep", - "EditHighlightedCodeStep", - "ShareSessionStep", - "CommentCodeStep", - "ClearHistoryStep", - "StackOverflowStep", - "OpenConfigStep" - ], - "type": "string" - }, - { - "type": "string" - } - ] - }, - "params": { - "title": "Params", - "default": {}, - "type": "object" - } - }, - "required": ["name", "description", "step"] - }, - "CustomCommand": { - "title": "CustomCommand", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "prompt": { - "title": "Prompt", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - } - }, - "required": ["name", "prompt", "description"] - }, - "ContextProviderWithParams": { - "title": "ContextProviderWithParams", - "type": "object", - "properties": { - "name": { - "title": "Name", - "enum": [ - "diff", - "github", - "terminal", - "open", - "google", - "search", - "url", - "tree" - ], - "type": "string" - }, - "params": { - "title": "Params", - "default": {}, - "type": "object" - } - }, - "required": ["name"] - }, - "RetrievalSettings": { - "title": "RetrievalSettings", - "type": "object", - "properties": { - "n_retrieve": { - "title": "N Retrieve", - "description": "Number of results to initially retrieve from vector database", - "default": 50, - "type": "integer" - }, - "n_final": { - "title": "N Final", - "description": "Final number of results to use after re-ranking", - "default": 10, - "type": "integer" - }, - "use_reranking": { - "title": "Use Reranking", - "description": "Whether to use re-ranking, which will allow initial selection of n_retrieve results, then will use an LLM to select the top n_final results", - "default": true, - "type": "boolean" - }, - "rerank_group_size": { - "title": "Rerank Group Size", - "description": "Number of results to group together when re-ranking. Each group will be processed in parallel.", - "default": 5, - "type": "integer" - }, - "ignore_files": { - "title": "Ignore Files", - "description": "Files to ignore when indexing the codebase. You can use glob patterns, such as **/*.py. This is useful for directories that contain generated code, or other directories that are not relevant to the codebase.", - "default": [], - "type": "array", - "items": { - "type": "string" - } - }, - "openai_api_key": { - "title": "Openai Api Key", - "description": "OpenAI API key", - "type": "string" - }, - "api_base": { - "title": "Api Base", - "description": "OpenAI API base URL", - "type": "string" - }, - "api_type": { - "title": "Api Type", - "description": "OpenAI API type", - "type": "string" - }, - "api_version": { - "title": "Api Version", - "description": "OpenAI API version", - "type": "string" - }, - "organization_id": { - "title": "Organization Id", - "description": "OpenAI organization ID", - "type": "string" - } - } - }, - "continuedev__core__config__SerializedContinueConfig": { - "title": "SerializedContinueConfig", - "type": "object", - "properties": { - "disallowed_steps": { - "title": "Disallowed Steps", - "description": "Steps that are not allowed to be run, and will be skipped if attempted", - "default": [], - "type": "array", - "items": { - "type": "string" - } - }, - "allow_anonymous_telemetry": { - "title": "Allow Anonymous Telemetry", - "description": "If this field is set to True, we will collect anonymous telemetry as described in the documentation page on telemetry. If set to False, we will not collect any data.", - "default": true, - "type": "boolean" - }, - "models": { - "title": "Models", - "default": [ - { - "title": "GPT-4 (trial)", - "provider": "free-trial", - "model": "gpt-4", - "api_key": "", - "api_base": null, - "context_length": 2048, - "template": null, - "completion_options": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "system_message": null, - "request_options": { - "timeout": 300, - "verify_ssl": null, - "ca_bundle_path": null, - "proxy": null, - "headers": null - } - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/ModelDescription" - } - }, - "model_roles": { - "title": "Model Roles", - "description": "Roles for models. Each entry should be the title of a model in the models array.", - "default": { - "default": "GPT-4 (trial)", - "chat": null, - "edit": null, - "summarize": null - }, - "allOf": [ - { - "$ref": "#/definitions/ModelRoles" - } - ] - }, - "system_message": { - "title": "System Message", - "description": "A system message that will always be followed by the LLM", - "type": "string" - }, - "completion_options": { - "title": "Completion Options", - "description": "Default options for completion. These will be overriden by any options set for a specific model.", - "default": { - "temperature": null, - "top_p": null, - "top_k": null, - "presence_penalty": null, - "frequency_penalty": null, - "stop": null, - "max_tokens": 1023 - }, - "allOf": [ - { - "$ref": "#/definitions/BaseCompletionOptions" - } - ] - }, - "slash_commands": { - "title": "Slash Commands", - "description": "An array of slash commands that let you map custom Steps to a shortcut.", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/SlashCommand" - } - }, - "custom_commands": { - "title": "Custom Commands", - "description": "An array of custom commands that allow you to reuse prompts. Each has name, description, and prompt properties. When you enter / in the text input, it will act as a shortcut to the prompt.", - "default": [ - { - "name": "test", - "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", - "description": "This is an example custom command. Use /config to edit it and create more" - } - ], - "type": "array", - "items": { - "$ref": "#/definitions/CustomCommand" - } - }, - "context_providers": { - "title": "Context Providers", - "description": "A list of ContextProvider objects that can be used to provide context to the LLM by typing '@'. Read more about ContextProviders in the documentation.", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/ContextProviderWithParams" - } - }, - "user_token": { - "title": "User Token", - "description": "An optional token to identify the user.", - "type": "string" - }, - "data_server_url": { - "title": "Data Server Url", - "description": "The URL of the server where development data is sent. No data is sent unless you have explicitly set the `user_token` property to a valid token that we have shared.", - "default": "https://us-west1-autodebug.cloudfunctions.net", - "type": "string" - }, - "disable_summaries": { - "title": "Disable Summaries", - "description": "If set to `True`, Continue will not generate summaries for each Step. This can be useful if you want to save on compute.", - "default": false, - "type": "boolean" - }, - "disable_indexing": { - "title": "Disable Indexing", - "description": "If set to `True`, Continue will not index the codebase. This is mainly used for debugging purposes.", - "default": false, - "type": "boolean" - }, - "retrieval_settings": { - "title": "Retrieval Settings", - "description": "Settings for the retrieval system. Read more about the retrieval system in the documentation.", - "default": { - "n_retrieve": 50, - "n_final": 10, - "use_reranking": true, - "rerank_group_size": 5, - "ignore_files": [], - "openai_api_key": null, - "api_base": null, - "api_type": null, - "api_version": null, - "organization_id": null - }, - "allOf": [ - { - "$ref": "#/definitions/RetrievalSettings" - } - ] - } - } - } - } -} diff --git a/schema/json/SessionInfo.json b/schema/json/SessionInfo.json deleted file mode 100644 index 3957a40fd..000000000 --- a/schema/json/SessionInfo.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "SessionInfo", - "$ref": "#/definitions/continuedev__core__main__SessionInfo", - "definitions": { - "continuedev__core__main__SessionInfo": { - "title": "SessionInfo", - "type": "object", - "properties": { - "session_id": { - "title": "Session Id", - "type": "string" - }, - "title": { - "title": "Title", - "type": "string" - }, - "date_created": { - "title": "Date Created", - "type": "string" - }, - "workspace_directory": { - "title": "Workspace Directory", - "type": "string" - } - }, - "required": [ - "session_id", - "title", - "date_created" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/SessionState.json b/schema/json/SessionState.json deleted file mode 100644 index e2f1fc837..000000000 --- a/schema/json/SessionState.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "title": "SessionState", - "$ref": "#/definitions/continuedev__core__main__SessionState", - "definitions": { - "ContinueError": { - "title": "ContinueError", - "type": "object", - "properties": { - "title": { - "title": "Title", - "type": "string" - }, - "message": { - "title": "Message", - "type": "string" - } - }, - "required": [ - "title", - "message" - ] - }, - "Observation": { - "title": "Observation", - "type": "object", - "properties": {} - }, - "StepDescription": { - "title": "StepDescription", - "type": "object", - "properties": { - "step_type": { - "title": "Step Type", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "params": { - "title": "Params", - "type": "object" - }, - "hide": { - "title": "Hide", - "type": "boolean" - }, - "depth": { - "title": "Depth", - "type": "integer" - }, - "error": { - "$ref": "#/definitions/ContinueError" - }, - "observations": { - "title": "Observations", - "default": [], - "type": "array", - "items": { - "$ref": "#/definitions/Observation" - } - }, - "logs": { - "title": "Logs", - "default": [], - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "step_type", - "name", - "description", - "params", - "hide", - "depth" - ] - }, - "ContextItemId": { - "title": "ContextItemId", - "description": "A ContextItemId is a unique identifier for a ContextItem.", - "type": "object", - "properties": { - "provider_title": { - "title": "Provider Title", - "type": "string" - }, - "item_id": { - "title": "Item Id", - "type": "string" - } - }, - "required": [ - "provider_title", - "item_id" - ] - }, - "ContextItemDescription": { - "title": "ContextItemDescription", - "description": "A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.\n\nThe id can be used to retrieve the ContextItem from the ContextManager.", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "id": { - "$ref": "#/definitions/ContextItemId" - } - }, - "required": [ - "name", - "description", - "id" - ] - }, - "ContextItem": { - "title": "ContextItem", - "description": "A ContextItem is a single item that is stored in the ContextManager.", - "type": "object", - "properties": { - "description": { - "$ref": "#/definitions/ContextItemDescription" - }, - "content": { - "title": "Content", - "type": "string" - }, - "editing": { - "title": "Editing", - "default": false, - "type": "boolean" - }, - "editable": { - "title": "Editable", - "default": false, - "type": "boolean" - } - }, - "required": [ - "description", - "content" - ] - }, - "continuedev__core__main__SessionState": { - "title": "SessionState", - "description": "Full session history and important state needed for autopilot to Continue", - "type": "object", - "properties": { - "history": { - "title": "History", - "type": "array", - "items": { - "$ref": "#/definitions/StepDescription" - } - }, - "context_items": { - "title": "Context Items", - "type": "array", - "items": { - "$ref": "#/definitions/ContextItem" - } - } - }, - "required": [ - "history", - "context_items" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/SessionUpdate.json b/schema/json/SessionUpdate.json deleted file mode 100644 index c2b71ee16..000000000 --- a/schema/json/SessionUpdate.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "title": "SessionUpdate", - "$ref": "#/definitions/continuedev__core__main__SessionUpdate", - "definitions": { - "Observation": { - "title": "Observation", - "type": "object", - "properties": {} - }, - "DeltaStep": { - "title": "DeltaStep", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "observations": { - "title": "Observations", - "type": "array", - "items": { - "$ref": "#/definitions/Observation" - } - }, - "logs": { - "title": "Logs", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ContinueError": { - "title": "ContinueError", - "type": "object", - "properties": { - "title": { - "title": "Title", - "type": "string" - }, - "message": { - "title": "Message", - "type": "string" - } - }, - "required": [ - "title", - "message" - ] - }, - "SetStep": { - "title": "SetStep", - "type": "object", - "properties": { - "step_type": { - "title": "Step Type", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "params": { - "title": "Params", - "type": "object" - }, - "hide": { - "title": "Hide", - "type": "boolean" - }, - "depth": { - "title": "Depth", - "type": "integer" - }, - "error": { - "$ref": "#/definitions/ContinueError" - }, - "observations": { - "title": "Observations", - "type": "array", - "items": { - "$ref": "#/definitions/Observation" - } - }, - "logs": { - "title": "Logs", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "continuedev__core__main__SessionUpdate": { - "title": "SessionUpdate", - "type": "object", - "properties": { - "index": { - "title": "Index", - "type": "integer" - }, - "update": { - "title": "Update", - "anyOf": [ - { - "$ref": "#/definitions/DeltaStep" - }, - { - "$ref": "#/definitions/SetStep" - }, - { - "$ref": "#/definitions/continuedev__core__main__SessionUpdate" - } - ] - }, - "stop": { - "title": "Stop", - "type": "boolean" - } - }, - "required": [ - "index", - "update" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/SlashCommandDescription.json b/schema/json/SlashCommandDescription.json deleted file mode 100644 index 941b7f4b0..000000000 --- a/schema/json/SlashCommandDescription.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "SlashCommandDescription", - "$ref": "#/definitions/continuedev__core__main__SlashCommandDescription", - "definitions": { - "continuedev__core__main__SlashCommandDescription": { - "title": "SlashCommandDescription", - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - } - }, - "required": [ - "name", - "description" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/Traceback.json b/schema/json/Traceback.json deleted file mode 100644 index 0b12dced9..000000000 --- a/schema/json/Traceback.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "title": "Traceback", - "$ref": "#/definitions/continuedev__models__main__Traceback", - "definitions": { - "TracebackFrame": { - "title": "TracebackFrame", - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "lineno": { - "title": "Lineno", - "type": "integer" - }, - "function": { - "title": "Function", - "type": "string" - }, - "code": { - "title": "Code", - "type": "string" - } - }, - "required": [ - "filepath", - "lineno", - "function" - ] - }, - "continuedev__models__main__Traceback": { - "title": "Traceback", - "type": "object", - "properties": { - "frames": { - "title": "Frames", - "type": "array", - "items": { - "$ref": "#/definitions/TracebackFrame" - } - }, - "message": { - "title": "Message", - "type": "string" - }, - "error_type": { - "title": "Error Type", - "type": "string" - }, - "full_traceback": { - "title": "Full Traceback", - "type": "string" - } - }, - "required": [ - "frames", - "message", - "error_type" - ] - } - } -} \ No newline at end of file diff --git a/schema/json/TracebackFrame.json b/schema/json/TracebackFrame.json deleted file mode 100644 index d7925c6ff..000000000 --- a/schema/json/TracebackFrame.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "TracebackFrame", - "$ref": "#/definitions/continuedev__models__main__TracebackFrame", - "definitions": { - "continuedev__models__main__TracebackFrame": { - "title": "TracebackFrame", - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "lineno": { - "title": "Lineno", - "type": "integer" - }, - "function": { - "title": "Function", - "type": "string" - }, - "code": { - "title": "Code", - "type": "string" - } - }, - "required": [ - "filepath", - "lineno", - "function" - ] - } - } -} \ No newline at end of file diff --git a/schema/openapi.json b/schema/openapi.json deleted file mode 100644 index 8880fd200..000000000 --- a/schema/openapi.json +++ /dev/null @@ -1,1027 +0,0 @@ -{ - "openapi": "3.0.2", - "info": { - "title": "Continue API", - "description": "Continue API", - "version": "1.0" - }, - "paths": { - "/debug/run": { - "post": { - "tags": ["debug"], - "summary": "Run", - "description": "Returns boolean indicating whether error was found, edited, and solved, or not all of these.", - "operationId": "run_debug_run_post", - "parameters": [ - { - "required": true, - "schema": { - "title": "Filepath", - "type": "string" - }, - "name": "filepath", - "in": "query" - }, - { - "required": false, - "schema": { - "title": "Make Edit", - "type": "boolean", - "default": false - }, - "name": "make_edit", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/debug/inline": { - "post": { - "tags": ["debug"], - "summary": "Inline", - "operationId": "inline_debug_inline_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InlineBody" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CompletionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/debug/suggestion": { - "get": { - "tags": ["debug"], - "summary": "Suggestion", - "operationId": "suggestion_debug_suggestion_get", - "parameters": [ - { - "required": true, - "schema": { - "title": "Traceback", - "type": "string" - }, - "name": "traceback", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CompletionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/debug/list": { - "post": { - "tags": ["debug"], - "summary": "Listten", - "operationId": "listten_debug_list_post", - "parameters": [ - { - "required": false, - "schema": { - "title": "X-Vsc-Machine-Id", - "type": "string", - "default": "anonymous" - }, - "name": "x-vsc-machine-id", - "in": "header" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SerializedDebugContext" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CompletionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/debug/explain": { - "post": { - "tags": ["debug"], - "summary": "Explain", - "operationId": "explain_debug_explain_post", - "parameters": [ - { - "required": false, - "schema": { - "title": "X-Vsc-Machine-Id", - "type": "string", - "default": "anonymous" - }, - "name": "x-vsc-machine-id", - "in": "header" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SerializedDebugContext" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ExplainResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/debug/edit": { - "post": { - "tags": ["debug"], - "summary": "Edit Endpoint", - "operationId": "edit_endpoint_debug_edit_post", - "parameters": [ - { - "required": false, - "schema": { - "title": "X-Vsc-Machine-Id", - "type": "string", - "default": "anonymous" - }, - "name": "x-vsc-machine-id", - "in": "header" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SerializedDebugContext" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EditResp" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/debug/find": { - "post": { - "tags": ["debug"], - "summary": "Find Sus Code Endpoint", - "operationId": "find_sus_code_endpoint_debug_find_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FindBody" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FindResp" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/debug/parse_traceback": { - "get": { - "tags": ["debug"], - "summary": "Parse Traceback Endpoint", - "operationId": "parse_traceback_endpoint_debug_parse_traceback_get", - "parameters": [ - { - "required": true, - "schema": { - "title": "Traceback", - "type": "string" - }, - "name": "traceback", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Traceback" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/debug/find_docs": { - "get": { - "tags": ["debug"], - "summary": "Find Docs Endpoint", - "operationId": "find_docs_endpoint_debug_find_docs_get", - "parameters": [ - { - "required": true, - "schema": { - "title": "Traceback", - "type": "string" - }, - "name": "traceback", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OptionalCompletionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/docstring/forline": { - "get": { - "tags": ["docstring"], - "summary": "Forline", - "description": "Write a docstring for a function at a line number", - "operationId": "forline_docstring_forline_get", - "parameters": [ - { - "required": true, - "schema": { - "title": "Filecontents", - "type": "string" - }, - "name": "filecontents", - "in": "query" - }, - { - "required": true, - "schema": { - "title": "Lineno", - "type": "integer" - }, - "name": "lineno", - "in": "query" - }, - { - "required": false, - "schema": { - "title": "Format", - "type": "string", - "default": "google" - }, - "name": "format", - "in": "query" - }, - { - "required": false, - "schema": { - "title": "X-Vsc-Machine-Id", - "type": "string", - "default": "anonymous" - }, - "name": "x-vsc-machine-id", - "in": "header" - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/unittest/forline": { - "post": { - "tags": ["unittest"], - "summary": "Forline", - "description": "Write unit test for the function encapsulating the given line number.", - "operationId": "forline_unittest_forline_post", - "parameters": [ - { - "required": false, - "schema": { - "title": "X-Vsc-Machine-Id", - "type": "string", - "default": "anonymous" - }, - "name": "x-vsc-machine-id", - "in": "header" - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FilePosition" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CompletionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/unittest/failingtest": { - "post": { - "tags": ["unittest"], - "summary": "Failingtest", - "description": "Write a failing test for the function encapsulating the given line number.", - "operationId": "failingtest_unittest_failingtest_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailingTestBody" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CompletionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/chat/test": { - "get": { - "tags": ["chat"], - "summary": "Test", - "operationId": "test_chat_test_get", - "parameters": [ - { - "required": true, - "schema": { - "title": "Prompt", - "type": "string" - }, - "name": "prompt", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/chat/complete": { - "post": { - "tags": ["chat"], - "summary": "Complete", - "operationId": "complete_chat_complete_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChatHistory" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/test": { - "get": { - "summary": "Test", - "operationId": "test_test_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - } - } - } - } - }, - "components": { - "schemas": { - "ChatHistory": { - "title": "ChatHistory", - "required": ["messages"], - "type": "object", - "properties": { - "messages": { - "title": "Messages", - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatMessage" - } - } - } - }, - "ChatMessage": { - "title": "ChatMessage", - "required": ["role", "content"], - "type": "object", - "properties": { - "role": { - "title": "Role", - "type": "string" - }, - "content": { - "title": "Content", - "type": "string" - } - } - }, - "CompletionResponse": { - "title": "CompletionResponse", - "required": ["completion"], - "type": "object", - "properties": { - "completion": { - "title": "Completion", - "type": "string" - } - } - }, - "EditResp": { - "title": "EditResp", - "required": ["completion"], - "type": "object", - "properties": { - "completion": { - "title": "Completion", - "type": "array", - "items": { - "$ref": "#/components/schemas/FileEdit" - } - } - } - }, - "ExplainResponse": { - "title": "ExplainResponse", - "required": ["completion"], - "type": "object", - "properties": { - "completion": { - "title": "Completion", - "type": "string" - } - } - }, - "FailingTestBody": { - "title": "FailingTestBody", - "required": ["description", "fp"], - "type": "object", - "properties": { - "description": { - "title": "Description", - "type": "string" - }, - "fp": { - "$ref": "#/components/schemas/FilePosition" - } - }, - "description": "A failing test body." - }, - "FileEdit": { - "title": "FileEdit", - "required": ["filepath", "range", "replacement"], - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "range": { - "$ref": "#/components/schemas/Range" - }, - "replacement": { - "title": "Replacement", - "type": "string" - } - }, - "additionalProperties": false - }, - "FilePosition": { - "title": "FilePosition", - "required": ["filecontents", "lineno"], - "type": "object", - "properties": { - "filecontents": { - "title": "Filecontents", - "type": "string" - }, - "lineno": { - "title": "Lineno", - "type": "integer" - } - }, - "description": "A position in a file." - }, - "FindBody": { - "title": "FindBody", - "required": ["traceback", "filesystem"], - "type": "object", - "properties": { - "traceback": { - "title": "Traceback", - "type": "string" - }, - "filesystem": { - "title": "Filesystem", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "description": { - "title": "Description", - "type": "string" - } - } - }, - "FindResp": { - "title": "FindResp", - "required": ["response"], - "type": "object", - "properties": { - "response": { - "title": "Response", - "type": "array", - "items": { - "$ref": "#/components/schemas/RangeInFile" - } - } - } - }, - "HTTPValidationError": { - "title": "HTTPValidationError", - "type": "object", - "properties": { - "detail": { - "title": "Detail", - "type": "array", - "items": { - "$ref": "#/components/schemas/ValidationError" - } - } - } - }, - "InlineBody": { - "title": "InlineBody", - "required": ["filecontents", "startline", "endline"], - "type": "object", - "properties": { - "filecontents": { - "title": "Filecontents", - "type": "string" - }, - "startline": { - "title": "Startline", - "type": "integer" - }, - "endline": { - "title": "Endline", - "type": "integer" - }, - "traceback": { - "title": "Traceback", - "type": "string", - "default": "" - } - } - }, - "OptionalCompletionResponse": { - "title": "OptionalCompletionResponse", - "type": "object", - "properties": { - "completion": { - "title": "Completion", - "type": "string" - } - } - }, - "Position": { - "title": "Position", - "required": ["line", "character"], - "type": "object", - "properties": { - "line": { - "title": "Line", - "type": "integer" - }, - "character": { - "title": "Character", - "type": "integer" - } - }, - "additionalProperties": false - }, - "ProgrammingLangauge": { - "title": "ProgrammingLangauge", - "enum": ["python", "javascript", "typescript"], - "type": "string", - "description": "An enumeration." - }, - "Range": { - "title": "Range", - "required": ["start", "end"], - "type": "object", - "properties": { - "start": { - "$ref": "#/components/schemas/Position" - }, - "end": { - "$ref": "#/components/schemas/Position" - } - }, - "additionalProperties": false, - "description": "A range in a file. 0-indexed." - }, - "RangeInFile": { - "title": "RangeInFile", - "required": ["filepath", "range"], - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "range": { - "$ref": "#/components/schemas/Range" - } - }, - "additionalProperties": false - }, - "SerializedDebugContext": { - "title": "SerializedDebugContext", - "required": ["ranges_in_files", "filesystem"], - "type": "object", - "properties": { - "traceback": { - "title": "Traceback", - "type": "string" - }, - "ranges_in_files": { - "title": "Ranges In Files", - "type": "array", - "items": { - "$ref": "#/components/schemas/RangeInFile" - } - }, - "filesystem": { - "title": "Filesystem", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "description": { - "title": "Description", - "type": "string" - } - } - }, - "Traceback": { - "title": "Traceback", - "required": ["frames", "message", "error_type", "language"], - "type": "object", - "properties": { - "frames": { - "title": "Frames", - "type": "array", - "items": { - "$ref": "#/components/schemas/TracebackFrame" - } - }, - "message": { - "title": "Message", - "type": "string" - }, - "error_type": { - "title": "Error Type", - "type": "string" - }, - "language": { - "$ref": "#/components/schemas/ProgrammingLangauge" - }, - "full_traceback": { - "title": "Full Traceback", - "type": "string" - } - }, - "additionalProperties": false - }, - "TracebackFrame": { - "title": "TracebackFrame", - "required": ["filepath", "lineno", "function"], - "type": "object", - "properties": { - "filepath": { - "title": "Filepath", - "type": "string" - }, - "lineno": { - "title": "Lineno", - "type": "integer" - }, - "function": { - "title": "Function", - "type": "string" - }, - "code": { - "title": "Code", - "type": "string" - } - }, - "additionalProperties": false - }, - "ValidationError": { - "title": "ValidationError", - "required": ["loc", "msg", "type"], - "type": "object", - "properties": { - "loc": { - "title": "Location", - "type": "array", - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - } - ] - } - }, - "msg": { - "title": "Message", - "type": "string" - }, - "type": { - "title": "Error Type", - "type": "string" - } - } - } - } - } -}