pub mod verbosity;
pub use verbosity::VerbosityLevel;
pub const COMMANDS_YAML : &str = concat!( env!( "CARGO_MANIFEST_DIR" ), "/claude.commands.yaml" );
#[ cfg( feature = "enabled" ) ]
#[ inline ]
pub fn register_commands( _registry : &mut unilang::registry::CommandRegistry ) {}
#[ cfg( feature = "enabled" ) ]
mod cli;
#[ cfg( feature = "enabled" ) ]
#[ doc( hidden ) ]
pub use cli::strip_fences;
#[ cfg( feature = "enabled" ) ]
#[ inline ]
pub fn run_cli()
{
use cli::{
print_help, dispatch_run,
dispatch_ask, dispatch_isolated, dispatch_refresh, dispatch_ps, dispatch_kill,
dispatch_tools, guard_unknown_subcommand,
};
let tokens : Vec< String > = std::env::args().skip( 1 ).collect();
let tokens : Vec< String > = if tokens.first().map( String::as_str ) == Some( "run" )
{
tokens[ 1.. ].to_vec()
}
else
{
tokens
};
if tokens.first().map( String::as_str ) == Some( "help" )
{
print_help();
return;
}
match tokens.first().map( String::as_str )
{
Some( "ask" ) => dispatch_ask( &tokens ),
Some( "isolated" ) => dispatch_isolated( &tokens ),
Some( "refresh" ) => dispatch_refresh( &tokens ),
Some( "ps" ) => dispatch_ps( &tokens ),
Some( "kill" ) => dispatch_kill( &tokens ),
Some( "tools" ) => dispatch_tools( &tokens ),
_ => {}
}
guard_unknown_subcommand( &tokens );
dispatch_run( &tokens );
}