Remove clientgen, fix windows startup errors

This commit is contained in:
sestinj 2023-08-10 01:39:09 -07:00
parent 94ff4ec95f
commit 43d55d705d
19 changed files with 1107 additions and 1099 deletions

2
.vscode/launch.json vendored
View file

@ -52,7 +52,7 @@
],
"preLaunchTask": "vscode-extension:build",
"env": {
"CONTINUE_SERVER_URL": "http://localhost:8001"
"CONTINUE_SERVER_URL": "http://localhost:65432"
}
},
// Has to be run after starting the server (separately or using the compound configuration)

View file

@ -183,19 +183,18 @@
]
},
"scripts": {
"esbuild-base": "rm -rf ./out && node esbuild.mjs",
"esbuild-base": "node esbuild.mjs",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"tsc": "tsc -p ./",
"tsc-watch": "tsc -watch -p ./",
"typegen": "node scripts/typegen.js",
"clientgen": "rm -rf src/client/ && npx @openapitools/openapi-generator-cli generate -i ../schema/openapi.json -g typescript-fetch -o src/client/ --additional-properties=supportsES6=true,npmVersion=8.19.2,typescriptThreePlus=true",
"rebuild": "electron-rebuild -v 19.1.8 node-pty",
"lint": "eslint src --ext ts",
"build-test": "tsc && node esbuild.test.mjs",
"test": "npm run build-test && node ./out/test-runner/runTestOnVSCodeHost.js",
"package": "npm install && npm run typegen && npm run clientgen && cd react-app && npm install && npm run build && cd .. && mkdir -p ./build && vsce package --out ./build"
"package": "npm install && npm run typegen && cd react-app && npm install && npm run build && cd .. && mkdir -p ./build && vsce package --out ./build"
},
"devDependencies": {
"@nestjs/common": "^8.4.7",

View file

@ -3,8 +3,8 @@ import chatReducer from "./slices/chatSlice";
import configReducer from "./slices/configSlice";
import miscReducer from "./slices/miscSlice";
import uiStateReducer from "./slices/uiStateSlice";
import { RangeInFile } from "../../../src/client";
import { FullState } from "../../../schema/FullState";
import { RangeInFile } from "../../../schema/RangeInFile";
import serverStateReducer from "./slices/serverStateReducer";
export interface ChatMessage {

View file

@ -4,7 +4,7 @@ const { compile } = require("json-schema-to-typescript");
function generateTypesForFile(inputPath, outputPath) {
let schema = JSON.parse(fs.readFileSync(inputPath, "utf8"));
let name = (inputPath.split("/").pop() || inputPath).split(".")[0];
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"];
@ -46,8 +46,15 @@ function deleteAllInDir(dir) {
});
}
OUTPUT_DIR = "schema";
INPUT_DIR = "../schema/json";
const OUTPUT_DIR = path.join("schema");
const INPUT_DIR = path.join("..", "schema", "json");
if (!fs.existsSync(INPUT_DIR)) {
throw new Error(`Input directory does not exist: ${INPUT_DIR}`);
}
if (!fs.existsSync(OUTPUT_DIR)) {
throw new Error(`Output directory does not exist: ${OUTPUT_DIR}`);
}
deleteAllInDir(OUTPUT_DIR);
generateAllSchemas(INPUT_DIR, OUTPUT_DIR);
generateAllSchemas(INPUT_DIR, OUTPUT_DIR);

View file

@ -237,10 +237,14 @@ export async function startContinuePythonServer() {
};
try {
const child = spawn(destination, {
detached: true,
stdio: "ignore",
windowsHide: true,
});
child.stdout.on("data", (data: any) => {
console.log(`stdout: ${data}`);
});
child.stderr.on("data", (data: any) => {
console.log(`stderr: ${data}`);
});
child.on("error", (err: any) => {
if (attempts < maxAttempts) {
retry();
@ -248,7 +252,12 @@ export async function startContinuePythonServer() {
console.error("Failed to start subprocess.", err);
}
});
child.unref();
child.on("exit", (code: any, signal: any) => {
console.log("Subprocess exited with code", code, signal);
});
child.on("close", (code: any, signal: any) => {
console.log("Subprocess closed with code", code, signal);
});
} catch (e: any) {
console.log("Error starting server:", e);
retry();

View file

@ -5,7 +5,7 @@ import {
getNonce,
openEditorAndRevealRange,
} from "./util/vscode";
import { RangeInFile } from "./client";
import { RangeInFile } from "../schema/RangeInFile";
import { setFocusedOnContinueInput } from "./commands";
const WebSocket = require("ws");
@ -112,7 +112,7 @@ export function setupDebugPanel(
}
const rangeInFile: RangeInFile = {
range: e.selections[0],
range: e.selections[0] as any,
filepath: e.textEditor.document.fileName,
};
const filesystem = {

View file

@ -1,4 +1,4 @@
import { RangeInFile, SerializedDebugContext } from "../client";
import { RangeInFile } from "../../schema/RangeInFile";
import * as fs from "fs";
const os = require("os");
@ -95,13 +95,6 @@ export function codeSelectionsToVirtualFileSystem(
return virtualFileSystem;
}
export function addFileSystemToDebugContext(
ctx: SerializedDebugContext
): SerializedDebugContext {
ctx.filesystem = codeSelectionsToVirtualFileSystem(ctx.rangesInFiles);
return ctx;
}
export function debounced(delay: number, fn: Function) {
let timerId: NodeJS.Timeout | null;
return function (...args: any[]) {

View file

@ -1,76 +1,76 @@
{
"title": "ContextItem",
"$ref": "#/definitions/src__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"
]
},
"src__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"
]
}
}
{
"title": "ContextItem",
"$ref": "#/definitions/src__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"
]
},
"src__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"
]
}
}
}

View file

@ -1,63 +1,63 @@
{
"title": "FileEdit",
"$ref": "#/definitions/src__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"
]
},
"src__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"
]
}
}
{
"title": "FileEdit",
"$ref": "#/definitions/src__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"
]
},
"src__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"
]
}
}
}

View file

@ -1,80 +1,80 @@
{
"title": "FileEditWithFullContents",
"$ref": "#/definitions/src__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"
]
},
"src__continuedev__models__filesystem_edit__FileEditWithFullContents": {
"title": "FileEditWithFullContents",
"type": "object",
"properties": {
"fileEdit": {
"$ref": "#/definitions/FileEdit"
},
"fileContents": {
"title": "Filecontents",
"type": "string"
}
},
"required": [
"fileEdit",
"fileContents"
]
}
}
{
"title": "FileEditWithFullContents",
"$ref": "#/definitions/src__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"
]
},
"src__continuedev__models__filesystem_edit__FileEditWithFullContents": {
"title": "FileEditWithFullContents",
"type": "object",
"properties": {
"fileEdit": {
"$ref": "#/definitions/FileEdit"
},
"fileContents": {
"title": "Filecontents",
"type": "string"
}
},
"required": [
"fileEdit",
"fileContents"
]
}
}
}

View file

@ -1,322 +1,322 @@
{
"title": "FullState",
"$ref": "#/definitions/src__continuedev__core__main__FullState",
"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",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"summary": {
"title": "Summary",
"type": "string"
},
"function_call": {
"$ref": "#/definitions/FunctionCall"
}
},
"required": [
"role",
"summary"
]
},
"Step": {
"title": "Step",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"hide": {
"title": "Hide",
"default": false,
"type": "boolean"
},
"description": {
"title": "Description",
"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"
}
}
},
"Observation": {
"title": "Observation",
"type": "object",
"properties": {}
},
"HistoryNode": {
"title": "HistoryNode",
"description": "A point in history, a list of which make up History",
"type": "object",
"properties": {
"step": {
"$ref": "#/definitions/Step"
},
"observation": {
"$ref": "#/definitions/Observation"
},
"depth": {
"title": "Depth",
"type": "integer"
},
"deleted": {
"title": "Deleted",
"default": false,
"type": "boolean"
},
"active": {
"title": "Active",
"default": true,
"type": "boolean"
},
"logs": {
"title": "Logs",
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"step",
"depth"
]
},
"History": {
"title": "History",
"description": "A history of steps taken and their results",
"type": "object",
"properties": {
"timeline": {
"title": "Timeline",
"type": "array",
"items": {
"$ref": "#/definitions/HistoryNode"
}
},
"current_index": {
"title": "Current Index",
"type": "integer"
}
},
"required": [
"timeline",
"current_index"
]
},
"SlashCommandDescription": {
"title": "SlashCommandDescription",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"description": {
"title": "Description",
"type": "string"
}
},
"required": [
"name",
"description"
]
},
"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"
]
},
"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"
}
},
"required": [
"session_id",
"title",
"date_created"
]
},
"src__continuedev__core__main__FullState": {
"title": "FullState",
"description": "A full state of the program, including the history",
"type": "object",
"properties": {
"history": {
"$ref": "#/definitions/History"
},
"active": {
"title": "Active",
"type": "boolean"
},
"user_input_queue": {
"title": "User Input Queue",
"type": "array",
"items": {
"type": "string"
}
},
"slash_commands": {
"title": "Slash Commands",
"type": "array",
"items": {
"$ref": "#/definitions/SlashCommandDescription"
}
},
"adding_highlighted_code": {
"title": "Adding Highlighted Code",
"type": "boolean"
},
"selected_context_items": {
"title": "Selected Context Items",
"type": "array",
"items": {
"$ref": "#/definitions/ContextItem"
}
},
"session_info": {
"$ref": "#/definitions/SessionInfo"
}
},
"required": [
"history",
"active",
"user_input_queue",
"slash_commands",
"adding_highlighted_code",
"selected_context_items"
]
}
}
{
"title": "FullState",
"$ref": "#/definitions/src__continuedev__core__main__FullState",
"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",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"summary": {
"title": "Summary",
"type": "string"
},
"function_call": {
"$ref": "#/definitions/FunctionCall"
}
},
"required": [
"role",
"summary"
]
},
"Step": {
"title": "Step",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"hide": {
"title": "Hide",
"default": false,
"type": "boolean"
},
"description": {
"title": "Description",
"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"
}
}
},
"Observation": {
"title": "Observation",
"type": "object",
"properties": {}
},
"HistoryNode": {
"title": "HistoryNode",
"description": "A point in history, a list of which make up History",
"type": "object",
"properties": {
"step": {
"$ref": "#/definitions/Step"
},
"observation": {
"$ref": "#/definitions/Observation"
},
"depth": {
"title": "Depth",
"type": "integer"
},
"deleted": {
"title": "Deleted",
"default": false,
"type": "boolean"
},
"active": {
"title": "Active",
"default": true,
"type": "boolean"
},
"logs": {
"title": "Logs",
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"step",
"depth"
]
},
"History": {
"title": "History",
"description": "A history of steps taken and their results",
"type": "object",
"properties": {
"timeline": {
"title": "Timeline",
"type": "array",
"items": {
"$ref": "#/definitions/HistoryNode"
}
},
"current_index": {
"title": "Current Index",
"type": "integer"
}
},
"required": [
"timeline",
"current_index"
]
},
"SlashCommandDescription": {
"title": "SlashCommandDescription",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"description": {
"title": "Description",
"type": "string"
}
},
"required": [
"name",
"description"
]
},
"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"
]
},
"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"
}
},
"required": [
"session_id",
"title",
"date_created"
]
},
"src__continuedev__core__main__FullState": {
"title": "FullState",
"description": "A full state of the program, including the history",
"type": "object",
"properties": {
"history": {
"$ref": "#/definitions/History"
},
"active": {
"title": "Active",
"type": "boolean"
},
"user_input_queue": {
"title": "User Input Queue",
"type": "array",
"items": {
"type": "string"
}
},
"slash_commands": {
"title": "Slash Commands",
"type": "array",
"items": {
"$ref": "#/definitions/SlashCommandDescription"
}
},
"adding_highlighted_code": {
"title": "Adding Highlighted Code",
"type": "boolean"
},
"selected_context_items": {
"title": "Selected Context Items",
"type": "array",
"items": {
"$ref": "#/definitions/ContextItem"
}
},
"session_info": {
"$ref": "#/definitions/SessionInfo"
}
},
"required": [
"history",
"active",
"user_input_queue",
"slash_commands",
"adding_highlighted_code",
"selected_context_items"
]
}
}
}

View file

@ -1,161 +1,161 @@
{
"title": "History",
"$ref": "#/definitions/src__continuedev__core__main__History",
"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",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"summary": {
"title": "Summary",
"type": "string"
},
"function_call": {
"$ref": "#/definitions/FunctionCall"
}
},
"required": [
"role",
"summary"
]
},
"Step": {
"title": "Step",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"hide": {
"title": "Hide",
"default": false,
"type": "boolean"
},
"description": {
"title": "Description",
"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"
}
}
},
"Observation": {
"title": "Observation",
"type": "object",
"properties": {}
},
"HistoryNode": {
"title": "HistoryNode",
"description": "A point in history, a list of which make up History",
"type": "object",
"properties": {
"step": {
"$ref": "#/definitions/Step"
},
"observation": {
"$ref": "#/definitions/Observation"
},
"depth": {
"title": "Depth",
"type": "integer"
},
"deleted": {
"title": "Deleted",
"default": false,
"type": "boolean"
},
"active": {
"title": "Active",
"default": true,
"type": "boolean"
},
"logs": {
"title": "Logs",
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"step",
"depth"
]
},
"src__continuedev__core__main__History": {
"title": "History",
"description": "A history of steps taken and their results",
"type": "object",
"properties": {
"timeline": {
"title": "Timeline",
"type": "array",
"items": {
"$ref": "#/definitions/HistoryNode"
}
},
"current_index": {
"title": "Current Index",
"type": "integer"
}
},
"required": [
"timeline",
"current_index"
]
}
}
{
"title": "History",
"$ref": "#/definitions/src__continuedev__core__main__History",
"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",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"summary": {
"title": "Summary",
"type": "string"
},
"function_call": {
"$ref": "#/definitions/FunctionCall"
}
},
"required": [
"role",
"summary"
]
},
"Step": {
"title": "Step",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"hide": {
"title": "Hide",
"default": false,
"type": "boolean"
},
"description": {
"title": "Description",
"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"
}
}
},
"Observation": {
"title": "Observation",
"type": "object",
"properties": {}
},
"HistoryNode": {
"title": "HistoryNode",
"description": "A point in history, a list of which make up History",
"type": "object",
"properties": {
"step": {
"$ref": "#/definitions/Step"
},
"observation": {
"$ref": "#/definitions/Observation"
},
"depth": {
"title": "Depth",
"type": "integer"
},
"deleted": {
"title": "Deleted",
"default": false,
"type": "boolean"
},
"active": {
"title": "Active",
"default": true,
"type": "boolean"
},
"logs": {
"title": "Logs",
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"step",
"depth"
]
},
"src__continuedev__core__main__History": {
"title": "History",
"description": "A history of steps taken and their results",
"type": "object",
"properties": {
"timeline": {
"title": "Timeline",
"type": "array",
"items": {
"$ref": "#/definitions/HistoryNode"
}
},
"current_index": {
"title": "Current Index",
"type": "integer"
}
},
"required": [
"timeline",
"current_index"
]
}
}
}

View file

@ -1,139 +1,139 @@
{
"title": "HistoryNode",
"$ref": "#/definitions/src__continuedev__core__main__HistoryNode",
"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",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"summary": {
"title": "Summary",
"type": "string"
},
"function_call": {
"$ref": "#/definitions/FunctionCall"
}
},
"required": [
"role",
"summary"
]
},
"Step": {
"title": "Step",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"hide": {
"title": "Hide",
"default": false,
"type": "boolean"
},
"description": {
"title": "Description",
"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"
}
}
},
"Observation": {
"title": "Observation",
"type": "object",
"properties": {}
},
"src__continuedev__core__main__HistoryNode": {
"title": "HistoryNode",
"description": "A point in history, a list of which make up History",
"type": "object",
"properties": {
"step": {
"$ref": "#/definitions/Step"
},
"observation": {
"$ref": "#/definitions/Observation"
},
"depth": {
"title": "Depth",
"type": "integer"
},
"deleted": {
"title": "Deleted",
"default": false,
"type": "boolean"
},
"active": {
"title": "Active",
"default": true,
"type": "boolean"
},
"logs": {
"title": "Logs",
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"step",
"depth"
]
}
}
{
"title": "HistoryNode",
"$ref": "#/definitions/src__continuedev__core__main__HistoryNode",
"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",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"summary": {
"title": "Summary",
"type": "string"
},
"function_call": {
"$ref": "#/definitions/FunctionCall"
}
},
"required": [
"role",
"summary"
]
},
"Step": {
"title": "Step",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"hide": {
"title": "Hide",
"default": false,
"type": "boolean"
},
"description": {
"title": "Description",
"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"
}
}
},
"Observation": {
"title": "Observation",
"type": "object",
"properties": {}
},
"src__continuedev__core__main__HistoryNode": {
"title": "HistoryNode",
"description": "A point in history, a list of which make up History",
"type": "object",
"properties": {
"step": {
"$ref": "#/definitions/Step"
},
"observation": {
"$ref": "#/definitions/Observation"
},
"depth": {
"title": "Depth",
"type": "integer"
},
"deleted": {
"title": "Deleted",
"default": false,
"type": "boolean"
},
"active": {
"title": "Active",
"default": true,
"type": "boolean"
},
"logs": {
"title": "Logs",
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"step",
"depth"
]
}
}
}

View file

@ -1,24 +1,24 @@
{
"title": "Position",
"$ref": "#/definitions/src__continuedev__models__main__Position",
"definitions": {
"src__continuedev__models__main__Position": {
"title": "Position",
"type": "object",
"properties": {
"line": {
"title": "Line",
"type": "integer"
},
"character": {
"title": "Character",
"type": "integer"
}
},
"required": [
"line",
"character"
]
}
}
{
"title": "Position",
"$ref": "#/definitions/src__continuedev__models__main__Position",
"definitions": {
"src__continuedev__models__main__Position": {
"title": "Position",
"type": "object",
"properties": {
"line": {
"title": "Line",
"type": "integer"
},
"character": {
"title": "Character",
"type": "integer"
}
},
"required": [
"line",
"character"
]
}
}
}

View file

@ -1,41 +1,41 @@
{
"title": "Range",
"$ref": "#/definitions/src__continuedev__models__main__Range",
"definitions": {
"Position": {
"title": "Position",
"type": "object",
"properties": {
"line": {
"title": "Line",
"type": "integer"
},
"character": {
"title": "Character",
"type": "integer"
}
},
"required": [
"line",
"character"
]
},
"src__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"
]
}
}
{
"title": "Range",
"$ref": "#/definitions/src__continuedev__models__main__Range",
"definitions": {
"Position": {
"title": "Position",
"type": "object",
"properties": {
"line": {
"title": "Line",
"type": "integer"
},
"character": {
"title": "Character",
"type": "integer"
}
},
"required": [
"line",
"character"
]
},
"src__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"
]
}
}
}

View file

@ -1,58 +1,58 @@
{
"title": "RangeInFile",
"$ref": "#/definitions/src__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"
]
},
"src__continuedev__models__filesystem__RangeInFile": {
"title": "RangeInFile",
"type": "object",
"properties": {
"filepath": {
"title": "Filepath",
"type": "string"
},
"range": {
"$ref": "#/definitions/Range"
}
},
"required": [
"filepath",
"range"
]
}
}
{
"title": "RangeInFile",
"$ref": "#/definitions/src__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"
]
},
"src__continuedev__models__filesystem__RangeInFile": {
"title": "RangeInFile",
"type": "object",
"properties": {
"filepath": {
"title": "Filepath",
"type": "string"
},
"range": {
"$ref": "#/definitions/Range"
}
},
"required": [
"filepath",
"range"
]
}
}
}

View file

@ -1,29 +1,29 @@
{
"title": "SessionInfo",
"$ref": "#/definitions/src__continuedev__core__main__SessionInfo",
"definitions": {
"src__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"
}
},
"required": [
"session_id",
"title",
"date_created"
]
}
}
{
"title": "SessionInfo",
"$ref": "#/definitions/src__continuedev__core__main__SessionInfo",
"definitions": {
"src__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"
}
},
"required": [
"session_id",
"title",
"date_created"
]
}
}
}

View file

@ -1,63 +1,63 @@
{
"title": "Traceback",
"$ref": "#/definitions/src__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"
]
},
"src__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"
]
}
}
{
"title": "Traceback",
"$ref": "#/definitions/src__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"
]
},
"src__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"
]
}
}
}

View file

@ -1,33 +1,33 @@
{
"title": "TracebackFrame",
"$ref": "#/definitions/src__continuedev__models__main__TracebackFrame",
"definitions": {
"src__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"
]
}
}
{
"title": "TracebackFrame",
"$ref": "#/definitions/src__continuedev__models__main__TracebackFrame",
"definitions": {
"src__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"
]
}
}
}