add battery charge monitoring

This commit is contained in:
henrygd
2025-08-24 20:45:38 -04:00
parent 0188418055
commit 8b655ef2b9
12 changed files with 130 additions and 36 deletions

View File

@@ -36,6 +36,7 @@ type Agent struct {
server *ssh.Server // SSH server
dataDir string // Directory for persisting data
keys []gossh.PublicKey // SSH public keys
hasBattery bool // true if agent has access to battery stats
}
// NewAgent creates a new agent with the given data directory for persisting data.