mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
Add an MCP Streamable HTTP server with token authentication, screenshot capture, keyboard, and mouse tools. Introduce shared control-mode and input-control coordination so MCP, PicoClaw, and local HID paths serialize ownership safely. Integrate PicoClaw gateway/runtime control handoff with PID-managed startup and focused unit coverage.
24 lines
889 B
Go
24 lines
889 B
Go
package picoclaw
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
picoclawBinaryPath = "/usr/bin/picoclaw"
|
|
picoclawCacheDir = "/root/.picoclaw-cache"
|
|
picoclawPIDFileName = ".picoclaw.pid"
|
|
picoclawDownloadURL = "https://cdn.sipeed.com/nanokvm/resources/picoclaw/v0.2.8/picoclaw_Linux_riscv64.tar.gz"
|
|
picoclawChecksumURL = "https://cdn.sipeed.com/nanokvm/resources/picoclaw/v0.2.8/sha512.txt"
|
|
etcInitPicoclawScript = "/etc/init.d/S96picoclaw"
|
|
kvmappPicoclawScript = "/kvmapp/system/init.d/S96picoclaw"
|
|
picoclawStartTimeout = 15 * time.Second
|
|
picoclawStopTimeout = 15 * time.Second
|
|
picoclawOnboardTimeout = 60 * time.Second
|
|
picoclawInstallTimeout = 12 * time.Minute
|
|
picoclawDownloadTimeout = 10 * time.Minute
|
|
picoclawStartWaitPeriod = 1500 * time.Millisecond
|
|
picoclawStopWaitPeriod = 500 * time.Millisecond
|
|
picoclawReadyPollPeriod = 500 * time.Millisecond
|
|
)
|