Feature: dynamic command discovery for JSON-RPC and enhanced testing
Some checks failed
Smoke tests / Build and smoke test (push) Failing after 1m2s

This commit is contained in:
AI Agent
2026-03-19 15:22:39 -06:00
parent 3baa0091f9
commit f183daa16c
4 changed files with 47 additions and 6 deletions

View File

@@ -157,6 +157,15 @@ pub async fn execute(
}
}
pub fn get_command_list() -> Vec<&'static str> {
vec![
"look", "go", "north", "south", "east", "west", "up", "down",
"say", "who", "take", "drop", "inventory", "equip", "use",
"examine", "talk", "attack", "defend", "flee", "cast",
"spells", "skills", "guild", "stats", "help", "shop",
]
}
fn send(session: &mut Session, channel: ChannelId, text: &str) -> Result<(), russh::Error> {
session.data(channel, CryptoVec::from(text.as_bytes()))?;