v0.14.0 web replay UI, My games, CLI replay
test / test (push) Canceled after 0s
test / e2e (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-19 18:07:41 -04:00
1 parent 87dcb3e550
commit d48a28fad6
37 files changed
+4058 -1803

No files matched your search

+7 -2
View File
@@ -2,6 +2,7 @@ package session
import (
"github.com/lixenwraith/chess/internal/client/api"
"github.com/lixenwraith/chess/internal/client/replay"
)
// Session maintains client state and configuration
@@ -12,9 +13,13 @@ type Session struct {
AuthToken string
Username string
LastMoveCount int
GamesCursor string // next page of the "games" listing
GamesCursor string // next page of the "games" listing
GamesPage []api.GameSummary // the last "games" page, for "replay <index>"
Client *api.Client
Verbose bool
// Replay is the stored game being stepped through, nil while live. The
// live game, user, and poll state above are untouched by a replay.
Replay *replay.State
Verbose bool
// Game state for prompt
CurrentGameState *api.GameResponse
PlayerColor string // "w", "b", or ""