diff options
Diffstat (limited to 'src/detect/agents/cline.rs')
| -rw-r--r-- | src/detect/agents/cline.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/detect/agents/cline.rs b/src/detect/agents/cline.rs deleted file mode 100644 index c0ce6f6e..00000000 --- a/src/detect/agents/cline.rs +++ /dev/null @@ -1,19 +0,0 @@ -use super::super::AgentState; - -pub(super) fn detect(content: &str) -> AgentState { - // Blocked - if has_visible_blocker(content) { - return AgentState::Blocked; - } - - // Cline defaults to working (unlike most agents that default to idle) - AgentState::Working -} - -pub(super) fn has_visible_blocker(content: &str) -> bool { - let lower = content.to_lowercase(); - lower.contains("let cline use this tool") - || ((lower.contains("[act mode]") || lower.contains("[plan mode]")) - && (lower.contains("execute command?") || lower.contains("use this tool?")) - && lower.contains("yes")) -} |
