mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-05 20:44:07 +08:00
- 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.
12 lines
385 B
Rust
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)
|
|
}
|