Watch
1
0
Fork
You've already forked RedFlag
0
Commit graph RedFlag/agent/cmd
Author SHA1 Message Date
Fimeg
ffffe9b956 feat: FEAT-002 local agent API, desktop tray spine, screenshot handler
Slices 1-3 of the local agent IPC surface:
- Read model (local_status.go, loop wired): update counts, scanner status,
  check-in state, token receipt counts — no token material exposed
- Local IPC (localapi/): Unix socket (group=redflag-local, 0660) + Windows
  named pipe (SDDL: LocalSystem/Admins/RedFlagLocal); five read-only endpoints
- `redflag-agent -local-status` CLI probe of the local API surface
- Screenshot capture handler (screenshot.go, dispatch wired)
- Tauri desktop spine (desktop/): tray icon, left-click window, local IPC reader
- Desktop React entry (web/src/desktop/LocalAgentApp.tsx, index.desktop.html,
  vite.desktop.config.ts)
- Installer group provisioning: linux.sh creates redflag-local, sets
  SupplementaryGroups; windows.ps1 creates RedFlagLocal security group
- Server-side: screenshot receipt handler on agents, updates handler additions
- web/package.json: @tauri-apps/api + tauri CLI dev dep added
2026-06-08 17:08:58 -04:00
Fimeg
c2d683d63b fix: Windows agent — service, logging, local state, CPU parse
Service:
- Build complete LoopContext in Windows service runAgent (was missing
  ReceiptTracker, ConfirmedTracker, scanners, circuit breakers,
  kernel enforcer — nil ReceiptTracker caused immediate panic).
- Wire process logger so log.Printf writes to agent.log on Windows.
- Parse CPU info JSON from PowerShell fallback (wmic absent on
  modern Windows; old code tried CSV parse on JSON output).

Local state cache:
- Agent writes status, scan results, capability token state to
  local disk cache. Enables local observability without a server
  round-trip. Handlers expose /local/state, /local/status endpoints.
- Record agent status (online/backoff) and capability token metrics
  to local cache during polling loop.
2026-06-08 16:00:47 -04:00
Fimeg
e0844760d8 auth: instancelock, GetRefreshTokenForRenew, FOR UPDATE 2026-05-29 13:08:12 -04:00
Fimeg
c8b0ee1040 refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00