Files
cursor-byok/server/src/cursor/conversation/delivery.rs
T
leookun 44e2d8057a feat: initialize server structure and database schema
- Added initial server setup with Cargo.toml defining dependencies and project structure.
- Created build.rs for generating protobuf bindings and validating wire contracts.
- Established database schema with initial migration files for conversations, messages, and runs.
- Introduced tools and prompts for Cursor functionality, enhancing user interaction capabilities.
2026-08-30 01:33:39 +08:00

12 lines
385 B
Rust

//! Applies Ignore, InsertMessages, and BreakMessages delivery semantics.
use crate::{model::RunId, run::CommandResult};
pub use crate::cursor::compile::{CompiledMessages, MessageDelivery};
pub fn target_result(target: Option<&RunId>, current: &RunId) -> Option<CommandResult> {
target
.filter(|target| *target != current)
.map(|_| CommandResult::StaleTarget)
}