use rho_protocol::{
JobState, ModelOptions, ModelRef, PermissionMode, PermissionModeOptions, Replay,
SessionAttachResponse, SessionOptions, StreamId, TurnId,
};
pub(crate) fn attach_response(
replay: Replay,
replay_events: u64,
state: JobState,
turn: Option<&str>,
) -> SessionAttachResponse {
SessionAttachResponse {
stream: StreamId::new("stream"),
workspace: "/work".into(),
replay,
replay_events,
state,
turn: turn.map(TurnId::new),
turn_elapsed_ms: None,
inputs: Vec::new(),
title: None,
options: SessionOptions {
model: ModelOptions {
auth: "api-key".into(),
current: ModelRef {
provider: "test".into(),
model: "model".into(),
},
available: Vec::new(),
},
reasoning: None,
fast_mode: None,
permission_mode: PermissionModeOptions {
current: PermissionMode::Bypass,
available: Vec::new(),
},
commands: Vec::new(),
added_dirs: Vec::new(),
},
background: Vec::new(),
}
}