use phi_ext::{phi, pxb};
fn main() -> Result<(), phi::Error> {
let mut m = phi::Extension::new("hello", "0.1.0");
m.register_command(
"hello",
phi::Command::new("Say hi", |_args, ctx| {
ctx.notify("info", "Hello!");
Ok(())
}),
);
m.on_user_input(|_ev| {
None
});
m.on_tool_call(|_ev| {
None
});
m.on_tool_result(|_ev| {
None
});
m.on_turn_stopping(|_ev| {
None
});
m.subscribe(pxb::Event::SessionStart, |ev| {
let _ = ev; });
m.run()
}