31 lines
1.4 KiB
YAML
31 lines
1.4 KiB
YAML
{
|
|
"apiVersion": "hub.example.com/v1alpha1",
|
|
"kind": "ToolManifest",
|
|
"metadata": {"name": "Gitea Repository Create", "slug": "gitea-repository-create"},
|
|
"spec": {
|
|
"canonicalName": "gitea.repository.create",
|
|
"version": "1.8.0",
|
|
"connectorType": "gitea",
|
|
"description": "Create or idempotently reuse a branch-ready repository owned by the fixed server-side Gitea write owner. autoInit must be true; an existing empty repository is initialized and the default-branch head is verified before the stable repositoryRef is returned.",
|
|
"riskClass": "R2",
|
|
"readOnly": false,
|
|
"idempotent": true,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,119}$"},
|
|
"description": {"type": "string", "maxLength": 2000},
|
|
"private": {"type": "boolean"},
|
|
"autoInit": {"type": "boolean", "const": true, "description": "Must be true so the default branch exists before the tool returns."},
|
|
"defaultBranch": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]{0,299}$"}
|
|
},
|
|
"required": ["name", "description", "private", "autoInit", "defaultBranch"]
|
|
},
|
|
"outputSchema": {"type": "object"},
|
|
"limits": {"timeoutMs": 20000, "maxOutputBytes": 262144, "maxItems": 1},
|
|
"redactionProfile": "documents",
|
|
"requiredScopes": ["project:{project}:write"]
|
|
}
|
|
}
|