package com.cameleer.server.core.runtime;

import com.cameleer.common.model.ApplicationConfig;

import java.util.Map;

/**
 * Snapshot of the config that was deployed, captured at the moment a deployment
 * transitions to RUNNING. Used for "last known good" restore (checkpoints) and
 * for dirty-state detection on the deployment page.
 *
 * <p>This is persisted as JSONB in {@code deployments.deployed_config_snapshot}.</p>
 */
public record DeploymentConfigSnapshot(
        String jarVersionId,
        ApplicationConfig agentConfig,
        Map<String, Object> containerConfig
) {
}
