tidbManagedStatePathFor function
Returns the path of the flavor-specific TiDB state managed by Katana.
Implementation
String tidbManagedStatePathFor(String environment) {
final normalized = environment.trim();
if (normalized.isEmpty || !RegExp(r"^[A-Za-z0-9_-]+$").hasMatch(normalized)) {
throw ArgumentError.value(environment, "environment", "Invalid flavor");
}
return "cloudflare/tidb.$normalized.yaml";
}