aboutsummaryrefslogtreecommitdiff
path: root/src/detect/agents/pi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/detect/agents/pi.rs')
-rw-r--r--src/detect/agents/pi.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/detect/agents/pi.rs b/src/detect/agents/pi.rs
new file mode 100644
index 00000000..272231f5
--- /dev/null
+++ b/src/detect/agents/pi.rs
@@ -0,0 +1,9 @@
+use super::super::AgentState;
+
+pub(super) fn detect(content: &str) -> AgentState {
+ // pi shows "Working..." when the agent is processing
+ if content.contains("Working...") {
+ return AgentState::Working;
+ }
+ AgentState::Idle
+}