Refactor: Remove security module and related functionality

- Deleted the `security` module and its associated files, including `daemon.rs` and `install.rs`.
- Removed references to security features in various modules, including `mod.rs`, `mode/mod.rs`, and `input.rs`.
- Updated the `MiscState` struct to eliminate security-related fields.
- Adjusted the `apply_action` function to remove security action handling.
- Increased the maximum limits for tool-only turns and agent steps in `actions/mod.rs`.
- Modified the review prompt to exclude security checks.
- Cleaned up the `git_operator` and `shell` tools to remove catastrophic guard checks.
- Removed internet-related tools and their references from the tool module.
This commit is contained in:
asepharyana
2026-07-12 03:56:43 +07:00
parent 4bfbe1d1b9
commit a974118b5a
39 changed files with 79 additions and 2175 deletions
-42
View File
@@ -235,48 +235,6 @@ fn render_overlay(frame: &mut Frame, area: Rect, overlay: crate::app::state::typ
let paragraph = Paragraph::new(lines).block(block);
frame.render_widget(paragraph, overlay_area);
}
crate::app::state::types::Overlay::Security => {
let block = block
.title(" Security ")
.border_style(Style::default().fg(if state.misc.security_armed { Theme::ERROR } else { Theme::WARNING }));
let lines = vec![
Line::from(Span::styled(
if state.misc.security_armed {
"SECURITY ESCALATION ACTIVE"
} else {
"Security Status: Normal"
},
Style::default().fg(if state.misc.security_armed { Theme::ERROR } else { Theme::INFO })
.add_modifier(Modifier::BOLD),
)),
Line::from(Span::styled(
"",
Style::default(),
)),
Line::from(Span::styled(
format!("Armed: {}", state.misc.security_armed),
Style::default().fg(if state.misc.security_armed { Theme::WARNING } else { Theme::DIM }),
)),
Line::from(Span::styled(
format!("Esc presses: {}", state.misc.esc_press_count),
Style::default().fg(Theme::DIM),
)),
Line::from(Span::styled(
"Catastrophic-op guard: active in all modes",
Style::default().fg(Theme::TEXT),
)),
Line::from(Span::styled(
"Credential exfil patterns: monitored",
Style::default().fg(Theme::TEXT),
)),
Line::from(Span::styled(
"Destructive git ops: blocked",
Style::default().fg(Theme::TEXT),
)),
];
let paragraph = Paragraph::new(lines).block(block);
frame.render_widget(paragraph, overlay_area);
}
crate::app::state::types::Overlay::Todo => {
let block = block.title(" Tasks ");
let msg_count = state.transcript_cache.messages.len();