Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(cli): wire agent commands in main entrypoint
Richie McIlroy00bf8f9f9f3d
diff --git a/apps/cli/src/main.rs b/apps/cli/src/main.rsindex af1f9e4f2..cd77ed972 100644--- a/apps/cli/src/main.rs+++ b/apps/cli/src/main.rs@@ -1,8 +1,22 @@+mod account;+mod agent_auth;+mod agent_client;+mod agents;+mod analytics;+mod atomic;mod automation;+mod caps;+mod confirmation;mod credentials;+mod developers;mod doctor;mod export;mod guide;+mod jobs;+mod library;+mod mcp;+mod notifications;+mod organizations;mod project;mod record;mod recordings;@@ -193,6 +207,26 @@ enum Commands {Update(FormatArgs),/// Show how `cap upload` will authenticate (env key or Cap Desktop login)Auth(AuthArgs),+ /// Read and manage Caps in your personal library+ Caps(caps::CapsArgs),+ /// Read or update the authenticated Cap account+ Account(account::AccountArgs),+ /// Inspect Cap organizations, members, billing, and storage connections+ Organizations(organizations::OrganizationsArgs),+ /// Manage folders, spaces, and space membership+ Library(library::LibraryArgs),+ /// Read and manage account notifications+ Notifications(notifications::NotificationsArgs),+ /// Read organization, space, or Cap analytics+ Analytics(analytics::AnalyticsArgs),+ /// Inspect developer apps, domains, usage, and credits+ Developers(developers::DevelopersArgs),+ /// Inspect or wait for asynchronous Cap operations+ Jobs(jobs::JobsArgs),+ /// Run Cap's local Model Context Protocol server+ Mcp(mcp::McpArgs),+ /// Install Cap integrations for one explicitly selected agent+ Agents(agents::AgentsArgs),/// List available capture targets and devicesTargets(TargetsArgs),/// Report CLI environment and capture-readiness diagnostics@@ -388,6 +422,10 @@ struct AuthArgs {enum AuthCommands {/// Report whether a credential is available and where it comes from (never prints the secret)Status(FormatArgs),+ /// Authorize Cap CLI in the browser using PKCE+ Login(agent_auth::LoginArgs),+ /// Revoke and remove the Cap CLI credential+ Logout(agent_auth::LogoutArgs),}#[derive(Args)]@@ -555,9 +593,21 @@ async fn run(cli: Cli) -> Result<(), String> {Commands::Auth(args) => match args.command {AuthCommands::Status(args) => {let format = resolve_format(json, args.format);- finish_json(format, credentials::status(format))+ finish_json(format, credentials::status(format).await)}+ AuthCommands::Login(args) => args.run(json).await,+ AuthCommands::Logout(args) => args.run(json).await,},+ Commands::Caps(args) => args.run(json).await,+ Commands::Account(args) => args.run(json).await,+ Commands::Organizations(args) => args.run(json).await,+ Commands::Library(args) => args.run(json).await,+ Commands::Notifications(args) => args.run(json).await,+ Commands::Analytics(args) => args.run(json).await,+ Commands::Developers(args) => args.run(json).await,+ Commands::Jobs(args) => args.run(json).await,+ Commands::Mcp(args) => args.run().await,+ Commands::Agents(args) => args.run(json),Commands::Targets(args) => args.run(json),Commands::Doctor(args) => doctor::run_doctor(resolve_format(json, args.format)).await,Commands::Version(args) => {