From 08b5f284d3c6a9a155be7feb8087142b99c74c0d Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Thu, 11 Sep 2025 10:57:48 -0300 Subject: [PATCH] feat: Add `is_internal` method to `CompressionEngine` trait Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) --- src/compression_engine.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/compression_engine.rs b/src/compression_engine.rs index e8aec59..e183a1f 100755 --- a/src/compression_engine.rs +++ b/src/compression_engine.rs @@ -110,6 +110,18 @@ pub trait CompressionEngine { true } + /// Checks if this compression engine is internal (built-in) or external (program-based). + /// + /// Internal engines use Rust implementations without external dependencies. + /// External engines rely on system programs. + /// + /// # Returns + /// + /// * `bool` - True if internal, false if external. + fn is_internal(&self) -> bool { + true + } + /// Gets status information for this compression engine. /// /// Provides details about the binary/program used and compression/decompression commands.