RheaKitScientific UI surfaces for SwiftUI
Components

ProcessesView

Spawn, inspect, and control supervisor sessions without leaving the app shell.

ProcessesView

ProcessesView is the operator pane for supervisor-backed sessions.

Features

  • List active and historical sessions
  • Spawn new agents with optional prompts
  • Kill sessions with confirmation
  • Pull recent output lines
  • Send interactive input to a session
  • Show running versus stopped counts in the toolbar

Core model

public struct SupervisorSession: Codable, Identifiable {
    public let id: String
    public let agent: String?
    public let status: String?
    public let started_at: String?
    public let pid: Int?

    public var isAlive: Bool
    public var stateColor: String
}

API touchpoints

ActionEndpoint
List sessionsGET /supervisor/sessions
SpawnPOST /supervisor/spawn
KillPOST /supervisor/kill/:id
Read outputGET /supervisor/output/:id?lines=50
Send inputPOST /supervisor/input/:id

Notes

  • Output is fetched on demand, not streamed by default
  • Known agent names are exposed in the spawn sheet for fast reuse

On this page