Skip to main content
Glama
patches.json5.98 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Sentinel Patch Schemas", "definitions": { "patch_operation": { "type": "object", "required": ["file", "status", "applied"], "properties": { "file": { "type": "string", "description": "File path relative to project root" }, "status": { "type": "string", "enum": ["added", "modified", "deleted", "renamed"], "description": "Type of file change" }, "applied": { "type": "boolean", "description": "Whether the patch was successfully applied" }, "hunk_count": { "type": "integer", "minimum": 0, "description": "Number of diff hunks in this file" }, "lines_added": { "type": "integer", "minimum": 0, "description": "Number of lines added" }, "lines_removed": { "type": "integer", "minimum": 0, "description": "Number of lines removed" }, "error": { "type": "string", "description": "Error message if patch failed to apply" } } }, "patch_result": { "type": "object", "required": ["success", "timestamp", "files"], "properties": { "success": { "type": "boolean", "description": "Overall success of patch application" }, "timestamp": { "type": "string", "format": "date-time", "description": "When patch was applied" }, "branch_name": { "type": "string", "description": "Git branch where patch was applied" }, "commit_hash": { "type": "string", "description": "Git commit hash if patch was committed" }, "files": { "type": "array", "items": { "$ref": "#/definitions/patch_operation" }, "description": "List of file operations in the patch" }, "total_hunks": { "type": "integer", "minimum": 0, "description": "Total number of diff hunks" }, "total_lines_added": { "type": "integer", "minimum": 0, "description": "Total lines added across all files" }, "total_lines_removed": { "type": "integer", "minimum": 0, "description": "Total lines removed across all files" }, "error": { "type": "string", "description": "Error message if patch failed" }, "git_output": { "type": "string", "description": "Raw git command output" } } }, "patch_validation": { "type": "object", "required": ["valid", "unified_diff_format"], "properties": { "valid": { "type": "boolean", "description": "Whether patch format is valid" }, "unified_diff_format": { "type": "boolean", "description": "Whether patch is in unified diff format" }, "has_sentinel_fences": { "type": "boolean", "description": "Whether patch has sentinel begin/end fences" }, "files_count": { "type": "integer", "minimum": 0, "description": "Number of files modified in patch" }, "hunks_count": { "type": "integer", "minimum": 0, "description": "Number of diff hunks in patch" }, "errors": { "type": "array", "items": { "type": "string" }, "description": "Validation error messages" }, "warnings": { "type": "array", "items": { "type": "string" }, "description": "Validation warning messages" } } }, "patch_history": { "type": "object", "required": ["patches"], "properties": { "patches": { "type": "array", "items": { "type": "object", "required": ["id", "timestamp", "result"], "properties": { "id": { "type": "string", "description": "Unique patch identifier" }, "timestamp": { "type": "string", "format": "date-time", "description": "When patch was created" }, "source": { "type": "string", "enum": ["claude_api", "manual", "automatic"], "description": "Source of the patch" }, "trigger_error": { "$ref": "../events.json#/definitions/script_error", "description": "Error that triggered this patch" }, "result": { "$ref": "#/definitions/patch_result", "description": "Result of applying this patch" }, "diff_content": { "type": "string", "description": "The actual unified diff content" } } } }, "total_patches": { "type": "integer", "minimum": 0, "description": "Total number of patches in history" }, "successful_patches": { "type": "integer", "minimum": 0, "description": "Number of successfully applied patches" }, "last_patch_timestamp": { "type": "string", "format": "date-time", "description": "Timestamp of most recent patch" } } } }, "oneOf": [ { "$ref": "#/definitions/patch_operation" }, { "$ref": "#/definitions/patch_result" }, { "$ref": "#/definitions/patch_validation" }, { "$ref": "#/definitions/patch_history" } ] }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Snack-JPG/Godot-Sentinel-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server