package com.correx.core.artifacts.kind

import kotlinx.serialization.Serializable

@Serializable
data class FileWrittenPayload(
    val path: String,
    val content: String,
    val mode: String = "0644",
)

@Serializable
data class FileWrittenArtifact(
    val path: String,
    val contentHash: String,
    val size: Long,
    val mode: String,
    // Unified diff of the change, so downstream consumers (e.g. the reviewer stage) can see WHAT
    // changed rather than only metadata. Null/absent when no diff was captured.
    val diff: String? = null,
)
