feat(agent): add rpc status command and tests; rpc only path

This commit is contained in:
Peter Steinberger
2025-12-07 05:20:50 +01:00
parent fb1de5c1c6
commit 32720bd372
5 changed files with 54 additions and 0 deletions

View File

@@ -51,6 +51,10 @@ final class ClawdisXPCService: NSObject, ClawdisXPCProtocol {
case .status:
return Response(ok: true, message: "ready")
case .rpcStatus:
let result = await AgentRPC.shared.status()
return Response(ok: result.ok, message: result.error)
case let .screenshot(displayID, windowID, _):
let authorized = await PermissionManager
.ensure([.screenRecording], interactive: false)[.screenRecording] ?? false