mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
ece1dfece0
Pick up the AgentGraphStore migration. - Inject an explicit optional agent graph store into `ThreadManager` - Move all calls to spawn, close, recursive resume, and subtree/archive/delete/feedback traversal through it - Keep using `LocalAgentGraphStore` when SQLite is available This required some changes to the interface to deal with futures: - The interface now matches `ThreadStore`'s object-safe pattern by returning a boxed `AgentGraphStoreFuture` directly, allowing `ThreadManager` to hold `Arc<dyn AgentGraphStore>` *Slight behavior change!* Unfiltered subtree enumeration now performs a single all-status breadth-first traversal, so a closed grandchild beneath an open edge is included; the previous Open-then-Closed traversals could not cross mixed-status paths and silently omitted it.
14 lines
335 B
Rust
14 lines
335 B
Rust
//! Storage-neutral parent/child topology for thread-spawned agents.
|
|
|
|
mod error;
|
|
mod local;
|
|
mod store;
|
|
mod types;
|
|
|
|
pub use error::AgentGraphStoreError;
|
|
pub use error::AgentGraphStoreResult;
|
|
pub use local::LocalAgentGraphStore;
|
|
pub use store::AgentGraphStore;
|
|
pub use store::AgentGraphStoreFuture;
|
|
pub use types::ThreadSpawnEdgeStatus;
|