feat: initialize AI agent harness
This commit is contained in:
173
schemas/profile.schema.json
Normal file
173
schemas/profile.schema.json
Normal file
@@ -0,0 +1,173 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://kri.local/agent-harness/profile.schema.json",
|
||||
"title": "KRI Agent Harness Project Profile",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"schema_version",
|
||||
"project",
|
||||
"stack"
|
||||
],
|
||||
"properties": {
|
||||
"schema_version": {
|
||||
"const": 1
|
||||
},
|
||||
"project": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"type",
|
||||
"layer",
|
||||
"legacy"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"$ref": "#/$defs/slug"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"library",
|
||||
"scaffold-cli",
|
||||
"shared-service",
|
||||
"internal-service",
|
||||
"requested-project"
|
||||
]
|
||||
},
|
||||
"layer": {
|
||||
"enum": [
|
||||
"frontend",
|
||||
"backend",
|
||||
"fullstack",
|
||||
"standalone"
|
||||
]
|
||||
},
|
||||
"legacy": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"stack": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"$ref": "#/$defs/stack_id"
|
||||
}
|
||||
},
|
||||
"shared_contracts": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"minProperties": 1,
|
||||
"properties": {
|
||||
"provides": {
|
||||
"$ref": "#/$defs/contract_list"
|
||||
},
|
||||
"consumes": {
|
||||
"$ref": "#/$defs/contract_list"
|
||||
}
|
||||
}
|
||||
},
|
||||
"databases": {
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"id",
|
||||
"engine",
|
||||
"role"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"$ref": "#/$defs/slug"
|
||||
},
|
||||
"engine": {
|
||||
"enum": [
|
||||
"mysql",
|
||||
"mssql"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"$ref": "#/$defs/slug"
|
||||
},
|
||||
"access": {
|
||||
"enum": [
|
||||
"read-only",
|
||||
"read-write"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"migration": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"status",
|
||||
"target_stack",
|
||||
"strategy"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"enum": [
|
||||
"planned",
|
||||
"active",
|
||||
"paused"
|
||||
]
|
||||
},
|
||||
"target_stack": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"$ref": "#/$defs/stack_id"
|
||||
}
|
||||
},
|
||||
"strategy": {
|
||||
"const": "staged"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"slug": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
||||
},
|
||||
"stack_id": {
|
||||
"enum": [
|
||||
"typescript",
|
||||
"react",
|
||||
"nextjs",
|
||||
"java-springboot",
|
||||
"classic-asp",
|
||||
"dotnet-csharp",
|
||||
"python",
|
||||
"ai-llm"
|
||||
]
|
||||
},
|
||||
"contract_id": {
|
||||
"enum": [
|
||||
"kri-front-common",
|
||||
"kri-ui-registry",
|
||||
"kri-common"
|
||||
]
|
||||
},
|
||||
"contract_list": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"$ref": "#/$defs/contract_id"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
39
schemas/workspace.schema.json
Normal file
39
schemas/workspace.schema.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://kri.local/agent-harness/workspace.schema.json",
|
||||
"title": "KRI Agent Harness Workspace",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"schema_version",
|
||||
"projects"
|
||||
],
|
||||
"properties": {
|
||||
"schema_version": {
|
||||
"const": 1
|
||||
},
|
||||
"workspace_root": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"projects": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"$ref": "profile.schema.json#/$defs/slug"
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"path"
|
||||
],
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user