Files
agents_and_robots/pkg/tui/messages.go
T
egutierrez 509d456275 feat: pantalla de tests en el dashboard TUI
Nueva seccion "Tests" en el menu principal del dashboard que permite
ejecutar Go tests, E2E tests (headless y headed), y todos secuencialmente.

- ScreenTests con menu de seleccion de tipo de test
- TestKind enum para identificar el tipo de test ejecutado
- Nuevos intents: IntentRunGoTests, IntentRunE2ETests, IntentRunE2EHeadTests, IntentRunAllTests
- LastTestKind en Model para re-ejecucion con "r"
- runGoTests, runE2ETests, runAllTests en adapter
- "Run Tests" en Server menu reemplazado por navegacion a ScreenTests
- Test output muestra tipo de test en titulo y vuelve a ScreenTests con "0"

Issue: 0023

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 15:43:51 +00:00

50 lines
1.2 KiB
Go

package tui
// Messages are pure data returned by the shell adapter.
// They carry the result of an I/O operation back into the pure Update.
// MsgAgentsLoaded carries refreshed agent data + launcher status.
type MsgAgentsLoaded struct {
Agents []AgentView
LauncherRunning bool
LauncherPID int
LauncherUptime string
LauncherMemory string
LauncherCPU string
LauncherLogSize string
}
// MsgActionDone reports the result of an action (start/stop/enable/disable).
type MsgActionDone struct {
AgentID string
Action string
Err error
}
// MsgLogsLoaded carries log lines for display.
type MsgLogsLoaded struct{ Lines []string }
// MsgServerActionDone reports the result of a launcher action.
type MsgServerActionDone struct {
Action string
Err error
}
// MsgRebuildDone reports the result of a rebuild & restart cycle.
type MsgRebuildDone struct {
BuildOK bool
BuildLog string // last lines of build output
Started bool // launcher started after build
Err error
}
// MsgTestsDone reports the result of running tests.
type MsgTestsDone struct {
Kind TestKind // which test suite was executed
Passed bool
Output []string // lines of test output
}
// MsgTick triggers a periodic refresh.
type MsgTick struct{}