vtcode_core/config/core/
security.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Deserialize, Serialize)]
5pub struct SecurityConfig {
6 #[serde(default = "default_true")]
8 pub human_in_the_loop: bool,
9
10 #[serde(default = "default_true")]
14 pub require_write_tool_for_claims: bool,
15
16 #[serde(default)]
19 pub auto_apply_detected_patches: bool,
20}
21
22impl Default for SecurityConfig {
23 fn default() -> Self {
24 Self {
25 human_in_the_loop: default_true(),
26 require_write_tool_for_claims: default_true(),
27 auto_apply_detected_patches: false,
28 }
29 }
30}
31
32fn default_true() -> bool {
33 true
34}