mirror of
https://github.com/harivansh-afk/deskctl.git
synced 2026-04-15 04:03:28 +00:00
- Cargo.toml with clap, tokio, serde, anyhow dependencies - Entry point with env-var routing to daemon or CLI mode - Core protocol types (Request/Response NDJSON wire format) - Session detection (X11 check with DISPLAY/XDG_SESSION_TYPE) - RefMap with @wN selector resolution (direct, prefix, substring) - Snapshot/WindowInfo shared types with Display impl - clap derive CLI with all subcommands (snapshot, click, type, etc.) - Client connection: socket path resolution, daemon auto-start via self-re-exec, NDJSON send/receive with retry backoff - Tokio async daemon: Unix socket listener, accept loop, graceful shutdown via notify - DaemonState holding session info and ref map - Placeholder handler returning hardcoded snapshot response
17 lines
523 B
TOML
17 lines
523 B
TOML
[package]
|
|
name = "desktop-ctl"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Desktop control CLI for AI agents - screenshot, click, type, window management on Linux X11"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/user/agent-computer"
|
|
|
|
[dependencies]
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
anyhow = "1"
|
|
dirs = "6"
|
|
libc = "0.2"
|
|
uuid = { version = "1", features = ["v4"] }
|