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