chore: updated plugin schema definition

This commit is contained in:
saberzero1 2026-03-18 01:17:10 +01:00
parent 7b85aa3464
commit 219bed15bf
No known key found for this signature in database

View File

@ -191,8 +191,37 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"source": { "source": {
"type": "string", "oneOf": [
"description": "Plugin source path or identifier. Supports github:user/repo, git+https://, and https:// URLs. Append #ref to pin to a specific branch or tag (e.g., github:user/repo#my-branch). Local file paths (e.g., ./my-plugin, ../sibling-plugin, /absolute/path) are also supported for local development or airgapped environments." {
"type": "string",
"description": "Plugin source path or identifier. Supports github:user/repo, git+https://, and https:// URLs. Append #ref to pin to a specific branch or tag (e.g., github:user/repo#my-branch). Local file paths (e.g., ./my-plugin, ../sibling-plugin, /absolute/path) are also supported for local development or airgapped environments."
},
{
"type": "object",
"required": ["repo"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Override name for the plugin directory. If omitted, the name is derived from the repository URL."
},
"repo": {
"type": "string",
"description": "Git repository URL (e.g., https://github.com/user/repo.git). Supports the same URL formats as the string source."
},
"subdir": {
"type": "string",
"description": "Subdirectory within the repository containing the plugin. Used when the plugin is not at the repository root."
},
"ref": {
"type": "string",
"description": "Git ref (branch or tag) to pin to. If omitted, the default branch is used."
}
},
"description": "Object source with explicit repo URL and optional subdirectory, ref, and name overrides for monorepo-style plugins."
}
],
"description": "Plugin source: either a string path/identifier or an object with repo/subdir configuration."
}, },
"enabled": { "enabled": {
"type": "boolean", "type": "boolean",