Merge pull request #4341 from continuedev/nate/yaml-schema-v1

add schema: v1
This commit is contained in:
Nate Sesti 2025-03-16 13:33:34 -07:00 • committed by GitHub
commit 10690715e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 25 additions and 14 deletions

View file

@ -8,6 +8,7 @@ export function convertConfigJsonToConfigYaml(
return {
name: "Local Assistant",
version: "1.0.0",
schema: "v1",
models: [
...configJson.models.map(
(model): ModelConfig => ({

View file

@ -6,6 +6,7 @@ export const defaultConfigYaml: AssistantUnrolled = {
context: [],
name: "Local Assistant",
version: "1.0.0",
schema: "v1",
};
export const defaultConfigYamlJetBrains: AssistantUnrolled = {
@ -13,4 +14,5 @@ export const defaultConfigYamlJetBrains: AssistantUnrolled = {
context: [],
name: "Local Assistant",
version: "1.0.0",
schema: "v1",
};

12
core/package-lock.json generated
View file

@ -1,19 +1,19 @@
{
"name": "@continuedev/core",
"version": "1.0.13",
"version": "1.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@continuedev/core",
"version": "1.0.13",
"version": "1.1.0",
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.758.0",
"@aws-sdk/client-sagemaker-runtime": "^3.758.0",
"@aws-sdk/credential-providers": "^3.758.0",
"@continuedev/config-types": "^1.0.13",
"@continuedev/config-yaml": "^1.0.60",
"@continuedev/config-yaml": "^1.0.61",
"@continuedev/fetch": "^1.0.4",
"@continuedev/llm-info": "^1.0.2",
"@continuedev/openai-adapters": "^1.0.10",
@ -2972,9 +2972,9 @@
}
},
"node_modules/@continuedev/config-yaml": {
"version": "1.0.60",
"resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.0.60.tgz",
"integrity": "sha512-AOx8dvgP5+/3a5q+TC90LP9ICLjdUgzL9X+65iauaQfiT5caLaEFJyx1iYZmwZ17KMhtSq7eRXGHzkfQgVAXsA==",
"version": "1.0.61",
"resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.0.61.tgz",
"integrity": "sha512-RJvZxPG9eicy1J0dXAKNH3UsGJdHVZgm8808QStQWW5p/eZEt3ZHeE8KHJ/IE6UylMyBlMYMNBYjC7VdLC4+qA==",
"dependencies": {
"@continuedev/config-types": "^1.0.14",
"yaml": "^2.6.1",

View file

@ -46,7 +46,7 @@
"@aws-sdk/client-sagemaker-runtime": "^3.758.0",
"@aws-sdk/credential-providers": "^3.758.0",
"@continuedev/config-types": "^1.0.13",
"@continuedev/config-yaml": "^1.0.60",
"@continuedev/config-yaml": "^1.0.61",
"@continuedev/fetch": "^1.0.4",
"@continuedev/llm-info": "^1.0.2",
"@continuedev/openai-adapters": "^1.0.10",

View file

@ -23,6 +23,7 @@ Give your configuration a `name` and a `version`:
```yaml title="config.yaml"
name: my-configuration
version: 0.0.1
schema: v1
```
### Models

View file

@ -444,6 +444,7 @@ a `config.yaml` configuration file using anchors:
---
name: MyProject
version: 0.0.1
schema: v1
model_defaults: &model_defaults
provider: openai

View file

@ -1,5 +1,6 @@
name: Test Config
version: 0.0.1
schema: v1
rules:
- TEST_SYS_MSG

10
gui/package-lock.json generated
View file

@ -7,7 +7,7 @@
"name": "gui",
"license": "Apache-2.0",
"dependencies": {
"@continuedev/config-yaml": "^1.0.60",
"@continuedev/config-yaml": "^1.0.61",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@reduxjs/toolkit": "^2.3.0",
@ -107,7 +107,7 @@
"@aws-sdk/client-sagemaker-runtime": "^3.758.0",
"@aws-sdk/credential-providers": "^3.758.0",
"@continuedev/config-types": "^1.0.13",
"@continuedev/config-yaml": "^1.0.60",
"@continuedev/config-yaml": "^1.0.61",
"@continuedev/fetch": "^1.0.4",
"@continuedev/llm-info": "^1.0.2",
"@continuedev/openai-adapters": "^1.0.10",
@ -549,9 +549,9 @@
}
},
"node_modules/@continuedev/config-yaml": {
"version": "1.0.60",
"resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.0.60.tgz",
"integrity": "sha512-AOx8dvgP5+/3a5q+TC90LP9ICLjdUgzL9X+65iauaQfiT5caLaEFJyx1iYZmwZ17KMhtSq7eRXGHzkfQgVAXsA==",
"version": "1.0.61",
"resolved": "https://registry.npmjs.org/@continuedev/config-yaml/-/config-yaml-1.0.61.tgz",
"integrity": "sha512-RJvZxPG9eicy1J0dXAKNH3UsGJdHVZgm8808QStQWW5p/eZEt3ZHeE8KHJ/IE6UylMyBlMYMNBYjC7VdLC4+qA==",
"dependencies": {
"@continuedev/config-types": "^1.0.14",
"yaml": "^2.6.1",

View file

@ -15,7 +15,7 @@
"test:watch": "vitest"
},
"dependencies": {
"@continuedev/config-yaml": "^1.0.60",
"@continuedev/config-yaml": "^1.0.61",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@reduxjs/toolkit": "^2.3.0",

View file

@ -1,6 +1,6 @@
{
"name": "@continuedev/config-yaml",
"version": "1.0.60",
"version": "1.0.61",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View file

@ -1,5 +1,6 @@
name: Assistant
version: 0.0.1
schema: v1
docs:
- uses: test-org/docs

View file

@ -1,5 +1,6 @@
name: Claude 3.5 sonnet latest
version: 0.0.1
schema: v1
models:
- name: claude-3-5-sonnet-latest

View file

@ -1,5 +1,6 @@
name: Docs
version: 0.0.1
schema: v1
docs:
- name: Python

View file

@ -1,5 +1,6 @@
name: Gemini
version: 0.0.1
schema: v1
models:
- name: gemini

View file

@ -1,5 +1,6 @@
name: Rules
version: 0.0.1
schema: v1
rules:
- Be kind