{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "TransformResult",
"description": "NDJSON output for a structural AST-based code transform.",
"type": "object",
"properties": {
"type": {
"description": "Event type discriminator.",
"type": "string"
},
"path": {
"description": "Path of the transformed file.",
"type": "string"
},
"language": {
"description": "Language used for AST parsing.",
"type": "string"
},
"matches": {
"description": "Number of AST pattern matches found.",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"replacements": {
"description": "Number of AST rewrites applied.",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"bytes_before": {
"description": "File size in bytes before transform.",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"bytes_after": {
"description": "File size in bytes after transform.",
"type": "integer",
"format": "uint64",
"minimum": 0
},
"checksum_before": {
"description": "BLAKE3 checksum before transform.",
"type": "string"
},
"checksum_after": {
"description": "BLAKE3 checksum after transform.",
"type": "string"
},
"elapsed_ms": {
"description": "Operation duration in milliseconds.",
"type": "integer",
"format": "uint64",
"minimum": 0
}
},
"required": [
"type",
"path",
"language",
"matches",
"replacements",
"bytes_before",
"bytes_after",
"checksum_before",
"checksum_after",
"elapsed_ms"
]
}