mirror of
https://github.com/Heretek-AI/opencode-v2-plugin-teser.git
synced 2026-11-07 11:05:59 -10:00
221 lines
4.4 KiB
JSON
221 lines
4.4 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"plugin": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"default": ".",
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"entry": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"install": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"build": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"options": {
|
|
"default": {},
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string"
|
|
},
|
|
"additionalProperties": {}
|
|
},
|
|
"ui": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"options"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"opencode": {
|
|
"type": "object",
|
|
"properties": {
|
|
"versions": {
|
|
"default": [
|
|
"2.0.26"
|
|
],
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"const": "latest"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"versions"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"expect": {
|
|
"type": "object",
|
|
"properties": {
|
|
"tools": {
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"commands": {
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"agents": {
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"skills": {
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"mcp": {
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"tools",
|
|
"commands",
|
|
"agents",
|
|
"skills",
|
|
"mcp"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"live": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"keys": {
|
|
"default": [
|
|
"OPENCODE_API_KEY"
|
|
],
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"repeat": {
|
|
"default": 3,
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"pass": {
|
|
"default": 2,
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"budgetUSD": {
|
|
"default": 1,
|
|
"type": "number",
|
|
"exclusiveMinimum": 0
|
|
},
|
|
"timeoutMs": {
|
|
"default": 240000,
|
|
"type": "integer",
|
|
"exclusiveMinimum": 0,
|
|
"maximum": 9007199254740991
|
|
}
|
|
},
|
|
"required": [
|
|
"keys",
|
|
"repeat",
|
|
"pass",
|
|
"budgetUSD",
|
|
"timeoutMs"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"gate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"default": true,
|
|
"type": "boolean"
|
|
},
|
|
"bootstrap": {
|
|
"default": "fail",
|
|
"type": "string",
|
|
"enum": [
|
|
"fail",
|
|
"allow"
|
|
]
|
|
},
|
|
"workflow": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"artifact": {
|
|
"default": "opencode-plugin-ci-results",
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"enabled",
|
|
"bootstrap",
|
|
"artifact"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"logLevel": {
|
|
"default": "info",
|
|
"type": "string",
|
|
"enum": [
|
|
"info",
|
|
"all"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"plugin",
|
|
"opencode",
|
|
"expect",
|
|
"live",
|
|
"gate",
|
|
"logLevel"
|
|
],
|
|
"additionalProperties": false
|
|
}
|