Add compile-time leaf declarations

Introduce a function-like leaf declaration macro, bind endpoint and TUI hosts to shared generated metadata, and move remote shell endpoint construction out of the leaf module into the examples and runtime assembly code.
This commit is contained in:
Michael Mikovsky
2026-04-26 13:54:44 -06:00
parent fccd61ea29
commit bc22d349bf
17 changed files with 598 additions and 170 deletions
@@ -16,10 +16,7 @@ fn main() -> Result<(), Box<dyn Error>> {
agent_path(),
Some(Vec::new()),
Vec::new(),
vec![unshell::protocol::tree::LeafSpec {
name: remote_shell::endpoint::RemoteShellEndpoint::protocol_leaf_name(),
procedures: vec![remote_shell::endpoint::ProcedureOpen::protocol_procedure_id()],
}],
vec![remote_shell::endpoint::RemoteShellEndpoint::protocol_leaf_spec()],
);
let hook_id = endpoint.allocate_hook_id();