aboutsummaryrefslogtreecommitdiff
path: root/src/detect/agents/cline.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-10 15:24:24 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-10 15:33:45 +0300
commit36a1b7f86444871f0c38ff36510a6e3c2eec48c6 (patch)
tree4a2d100eef7f26af7feaa93ce661423c3994c54e /src/detect/agents/cline.rs
parent8d13492926829c5cf0ea42c8613344cd65ff59fa (diff)
feat: distribute agent detection manifests
Diffstat (limited to 'src/detect/agents/cline.rs')
-rw-r--r--src/detect/agents/cline.rs19
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"))
-}