Skip to content

feat(cli): add usehid-cli for terminal HID control - #1

Merged
jiusanzhou merged 1 commit into
jiusanzhou:mainfrom
CormickKneey:feat/cli
Feb 25, 2026
Merged

jiusanzhou merged 1 commit into
jiusanzhou:mainfrom
CormickKneey:feat/cli

Conversation

@CormickKneey

Copy link
Copy Markdown
Contributor

Summary

  • Add usehid-cli crate that compiles to a single usehid binary for direct HID device control from the terminal
  • Subcommands: mouse, key, type, gamepad, screen, failsafe, exec (raw JSON), run (batch file)
  • Default JSON output for AI agent integration, --human flag for readable output
  • Update CI to build CLI on all platforms; add cross-platform release job in publish workflow

Test plan

  • cargo build -p usehid-cli compiles successfully
  • usehid --help and all subcommand --help display correctly
  • usehid screen size returns JSON with width/height
  • usehid screen position returns JSON with x/y
  • usehid failsafe status returns JSON with enabled/triggered
  • usehid exec '{"action":"size"}' works via JSON passthrough
  • echo '{"action":"position"}' | usehid exec - works via stdin pipe
  • CI builds pass on macOS/Linux/Windows

🤖 Generated with Claude Code

Add a first-class CLI tool that wraps the AgentHID JSON API, enabling
direct HID device control from the terminal without writing code.

Subcommands: mouse, key, type, gamepad, screen, failsafe, exec, run.
Supports JSON (default) and human-readable output via --human flag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jiusanzhou
jiusanzhou merged commit e4958a9 into jiusanzhou:main Feb 25, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants