summaryrefslogtreecommitdiff
path: root/schema/json
diff options
context:
space:
mode:
Diffstat (limited to 'schema/json')
-rw-r--r--schema/json/FileEdit.json4
-rw-r--r--schema/json/FileEditWithFullContents.json4
-rw-r--r--schema/json/History.json73
-rw-r--r--schema/json/HistoryNode.json51
-rw-r--r--schema/json/Position.json4
-rw-r--r--schema/json/Range.json4
-rw-r--r--schema/json/RangeInFile.json4
-rw-r--r--schema/json/Traceback.json4
-rw-r--r--schema/json/TracebackFrame.json4
9 files changed, 138 insertions, 14 deletions
diff --git a/schema/json/FileEdit.json b/schema/json/FileEdit.json
index 1f7dcb64..011e0462 100644
--- a/schema/json/FileEdit.json
+++ b/schema/json/FileEdit.json
@@ -1,6 +1,6 @@
{
"title": "FileEdit",
- "$ref": "#/definitions/continuedev__src__continuedev__models__filesystem_edit__FileEdit",
+ "$ref": "#/definitions/src__continuedev__models__filesystem_edit__FileEdit",
"definitions": {
"Position": {
"title": "Position",
@@ -37,7 +37,7 @@
"end"
]
},
- "continuedev__src__continuedev__models__filesystem_edit__FileEdit": {
+ "src__continuedev__models__filesystem_edit__FileEdit": {
"title": "FileEdit",
"type": "object",
"properties": {
diff --git a/schema/json/FileEditWithFullContents.json b/schema/json/FileEditWithFullContents.json
index 571ea1d3..2ea75bab 100644
--- a/schema/json/FileEditWithFullContents.json
+++ b/schema/json/FileEditWithFullContents.json
@@ -1,6 +1,6 @@
{
"title": "FileEditWithFullContents",
- "$ref": "#/definitions/continuedev__src__continuedev__models__filesystem_edit__FileEditWithFullContents",
+ "$ref": "#/definitions/src__continuedev__models__filesystem_edit__FileEditWithFullContents",
"definitions": {
"Position": {
"title": "Position",
@@ -59,7 +59,7 @@
"replacement"
]
},
- "continuedev__src__continuedev__models__filesystem_edit__FileEditWithFullContents": {
+ "src__continuedev__models__filesystem_edit__FileEditWithFullContents": {
"title": "FileEditWithFullContents",
"type": "object",
"properties": {
diff --git a/schema/json/History.json b/schema/json/History.json
new file mode 100644
index 00000000..14b82d6d
--- /dev/null
+++ b/schema/json/History.json
@@ -0,0 +1,73 @@
+{
+ "title": "History",
+ "$ref": "#/definitions/src__continuedev__core__main__History",
+ "definitions": {
+ "Step": {
+ "title": "Step",
+ "type": "object",
+ "properties": {
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "hide": {
+ "title": "Hide",
+ "default": false,
+ "type": "boolean"
+ },
+ "system_message": {
+ "title": "System Message",
+ "type": "string"
+ }
+ }
+ },
+ "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"
+ }
+ },
+ "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"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/schema/json/HistoryNode.json b/schema/json/HistoryNode.json
new file mode 100644
index 00000000..87a8729f
--- /dev/null
+++ b/schema/json/HistoryNode.json
@@ -0,0 +1,51 @@
+{
+ "title": "HistoryNode",
+ "$ref": "#/definitions/src__continuedev__core__main__HistoryNode",
+ "definitions": {
+ "Step": {
+ "title": "Step",
+ "type": "object",
+ "properties": {
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "hide": {
+ "title": "Hide",
+ "default": false,
+ "type": "boolean"
+ },
+ "system_message": {
+ "title": "System Message",
+ "type": "string"
+ }
+ }
+ },
+ "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"
+ }
+ },
+ "required": [
+ "step",
+ "depth"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/schema/json/Position.json b/schema/json/Position.json
index e550572e..6b272ce7 100644
--- a/schema/json/Position.json
+++ b/schema/json/Position.json
@@ -1,8 +1,8 @@
{
"title": "Position",
- "$ref": "#/definitions/continuedev__src__continuedev__models__main__Position",
+ "$ref": "#/definitions/src__continuedev__models__main__Position",
"definitions": {
- "continuedev__src__continuedev__models__main__Position": {
+ "src__continuedev__models__main__Position": {
"title": "Position",
"type": "object",
"properties": {
diff --git a/schema/json/Range.json b/schema/json/Range.json
index 52953837..75675183 100644
--- a/schema/json/Range.json
+++ b/schema/json/Range.json
@@ -1,6 +1,6 @@
{
"title": "Range",
- "$ref": "#/definitions/continuedev__src__continuedev__models__main__Range",
+ "$ref": "#/definitions/src__continuedev__models__main__Range",
"definitions": {
"Position": {
"title": "Position",
@@ -20,7 +20,7 @@
"character"
]
},
- "continuedev__src__continuedev__models__main__Range": {
+ "src__continuedev__models__main__Range": {
"title": "Range",
"description": "A range in a file. 0-indexed.",
"type": "object",
diff --git a/schema/json/RangeInFile.json b/schema/json/RangeInFile.json
index 022ca1a8..1f5afaa3 100644
--- a/schema/json/RangeInFile.json
+++ b/schema/json/RangeInFile.json
@@ -1,6 +1,6 @@
{
"title": "RangeInFile",
- "$ref": "#/definitions/continuedev__src__continuedev__models__filesystem__RangeInFile",
+ "$ref": "#/definitions/src__continuedev__models__filesystem__RangeInFile",
"definitions": {
"Position": {
"title": "Position",
@@ -37,7 +37,7 @@
"end"
]
},
- "continuedev__src__continuedev__models__filesystem__RangeInFile": {
+ "src__continuedev__models__filesystem__RangeInFile": {
"title": "RangeInFile",
"type": "object",
"properties": {
diff --git a/schema/json/Traceback.json b/schema/json/Traceback.json
index c3e0e416..45606a2b 100644
--- a/schema/json/Traceback.json
+++ b/schema/json/Traceback.json
@@ -1,6 +1,6 @@
{
"title": "Traceback",
- "$ref": "#/definitions/continuedev__src__continuedev__models__main__Traceback",
+ "$ref": "#/definitions/src__continuedev__models__main__Traceback",
"definitions": {
"TracebackFrame": {
"title": "TracebackFrame",
@@ -29,7 +29,7 @@
"function"
]
},
- "continuedev__src__continuedev__models__main__Traceback": {
+ "src__continuedev__models__main__Traceback": {
"title": "Traceback",
"type": "object",
"properties": {
diff --git a/schema/json/TracebackFrame.json b/schema/json/TracebackFrame.json
index 6321e08c..1907430a 100644
--- a/schema/json/TracebackFrame.json
+++ b/schema/json/TracebackFrame.json
@@ -1,8 +1,8 @@
{
"title": "TracebackFrame",
- "$ref": "#/definitions/continuedev__src__continuedev__models__main__TracebackFrame",
+ "$ref": "#/definitions/src__continuedev__models__main__TracebackFrame",
"definitions": {
- "continuedev__src__continuedev__models__main__TracebackFrame": {
+ "src__continuedev__models__main__TracebackFrame": {
"title": "TracebackFrame",
"type": "object",
"properties": {