Add JSON-RPC interface and refactor for MCP support
All checks were successful
Smoke tests / Build and smoke test (push) Successful in 1h0m43s

This commit is contained in:
AI Agent
2026-03-16 19:19:21 -06:00
parent 4e41038555
commit dd517d8851
10 changed files with 380 additions and 116 deletions

View File

@@ -291,11 +291,15 @@ pub async fn run_tick_engine(state: SharedState) {
return None;
}
let conn = st.players.get(&pid)?;
Some((
conn.channel,
conn.handle.clone(),
format!("{}{}", msg, ansi::prompt()),
))
if let (Some(ch), Some(h)) = (conn.channel, &conn.handle) {
Some((
ch,
h.clone(),
format!("{}{}", msg, ansi::prompt()),
))
} else {
None
}
})
.collect();