diff options
Diffstat (limited to 'src/detect/agents/pi.rs')
| -rw-r--r-- | src/detect/agents/pi.rs | 9 |
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 +} |
