Skip to content

feat(cli): implement docksight agent status - #107

Merged
rodriguecyber merged 1 commit into
Open-Source-Kigali:developfrom
AshSgDe29071999:feat/100-agent-status
Aug 15, 2026
Merged

feat(cli): implement docksight agent status#107
rodriguecyber merged 1 commit into
Open-Source-Kigali:developfrom
AshSgDe29071999:feat/100-agent-status

Conversation

@AshSgDe29071999

Copy link
Copy Markdown
Contributor

Summary

Implements docksight agent status so operators can see whether the agent is installed and running without guessing.

Changes

  • New agent_status.go command using install.NewController, ReadServerURL, IdentityExists
  • Reports service state, platform URL, identity, and LogsCommand() follow hint
  • Exit non-zero when not installed or not running
  • Permission-denied queries surface system.ElevationHint() instead of looking idle
  • Remove status from agentPlaceholders in agent_stubs.go

Test plan

  • cd apps/cli && go build ./... && go vet ./... && go test ./cmd/...
  • Installed + running agent: exits 0 and shows platform URL
  • Not installed: clear error, non-zero exit
  • Installed but stopped: reports not running, non-zero exit

Fixes #100

Replace the placeholder with install detection, IsActive service state,
platform URL, identity, and a platform-specific logs hint. Exit non-zero
when not installed or not running; surface elevation errors clearly.

Fixes Open-Source-Kigali#100
@rodriguecyber
rodriguecyber merged commit 5700dce into Open-Source-Kigali:develop Aug 15, 2026
1 check 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.

Implement docksight agent status

2 participants