use super::{Lens, LensContext, LensId, LensOutput};
use forge::budget::estimator::TokenEstimator;
pub struct DepthLens;
impl Lens for DepthLens {
fn id(&self) -> LensId {
LensId::Depth
}
fn apply(&self, input: &str, _ctx: &LensContext) -> LensOutput {
let tokens_before = TokenEstimator::count_nonblocking(input);
let content = input.to_string();
let tokens_after = TokenEstimator::count_nonblocking(&content);
LensOutput {
content,
tokens_before,
tokens_after,
applied: vec!["depth".into()],
}
}
}