Documentation
¶
Overview ¶
Package tour implements the interactive getting-started tour: a floating card that teaches docker agent by doing. Each step waits for the user to actually perform the action it describes (send a message, approve a tool call, open the palette…) and observes the TUI's message stream to detect completion. The card never steals focus: the user drives the real UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the tour engine plus its floating card. The zero value is inactive; use New.
func (*Model) Advance ¶
Advance is the manual progression driven by the Enter key: it skips the celebration wait, moves past a read step, or skips an action step the user does not want to perform.
func (*Model) Layer ¶
Layer returns the floating card as a lipgloss layer anchored to the bottom-right of the content area, below the sidebar's agent info and tools so it hides as little as possible. Nil when the tour is inactive.
func (*Model) Observe ¶
Observe inspects a message flowing through the TUI and completes the current step when the user performed its action. It never consumes the message; the returned command only drives the tour's own progression.
func (*Model) OnLastStep ¶
OnLastStep reports whether the tour is showing its final step.