Move Epiphany invalidation freshness adapter

This commit is contained in:
Meta Vens 2026-05-14 06:42:39 +01:00
commit d1f5f793d2
5 changed files with 25 additions and 21 deletions

View file

@ -314,8 +314,7 @@ use codex_thread_store::UpdateThreadMetadataParams as StoreUpdateThreadMetadataP
use codex_utils_absolute_path::AbsolutePathBuf;
use codex_utils_pty::DEFAULT_OUTPUT_BYTES_CAP;
use epiphany_codex_bridge::invalidation::EpiphanyInvalidationManager;
use epiphany_codex_bridge::invalidation::EpiphanyInvalidationSnapshot;
use epiphany_codex_bridge::reorient::EpiphanyFreshnessWatcherSnapshot;
use epiphany_codex_bridge::invalidation::epiphany_freshness_watcher_snapshot;
use epiphany_codex_bridge::state::live_thread_epiphany_state;
use std::collections::HashMap;
use std::collections::HashSet;
@ -340,17 +339,6 @@ use tracing::info;
use tracing::warn;
use uuid::Uuid;
fn epiphany_freshness_watcher_snapshot(
snapshot: &EpiphanyInvalidationSnapshot,
) -> EpiphanyFreshnessWatcherSnapshot<'_> {
EpiphanyFreshnessWatcherSnapshot {
available: snapshot.available,
workspace_root: snapshot.workspace_root.as_ref().map(|path| path.as_path()),
observed_at_unix_seconds: snapshot.observed_at_unix_seconds,
changed_paths: snapshot.changed_paths.as_slice(),
}
}
mod token_usage_replay;
use crate::filters::compute_source_filters;