Documentation
¶
Overview ¶
Package adrsplit implements the direct-runner ADR-to-stories review overlay.
Index ¶
- func IsMessage(message tea.Msg) bool
- type Model
- func (m Model) BrandMounted() bool
- func (m *Model) Close()
- func (m *Model) ConsumeChanged() bool
- func (m Model) Enabled() bool
- func (m Model) IsOpen() bool
- func (m *Model) MouseHandler(width, height int) func(tea.MouseMsg) tea.Cmd
- func (m *Model) Open() tea.Cmd
- func (m *Model) Overlay(background string, width, height int) string
- func (m Model) PointerSession() uint64
- func (m *Model) PointerSurface(width, height int) pointer.Surface
- func (m *Model) SetDataDir(dir string)
- func (m *Model) SetFrontMost(front bool) tea.Cmd
- func (m *Model) SetStyles(styles *theme.Styles)
- func (m *Model) Update(message tea.Msg) tea.Cmd
- func (m *Model) View(width, height int) string
- type Runner
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model owns the source, asynchronous split, review edits, and sequential batch write. Every result is scoped to both the overlay session and its operation generation so a cancelled or reopened dialog cannot be mutated.
func New ¶
New creates a closed overlay. Nil dependencies keep the feature unavailable in lightweight root-model tests.
func (Model) BrandMounted ¶
BrandMounted reports whether this overlay's branded engine is ticking.
func (*Model) Close ¶
func (m *Model) Close()
Close force-closes the overlay and cancels any in-flight read or AI run. A batch write already handed to SQLite is not cancellable; its completion is safely ignored after the session advances.
func (*Model) ConsumeChanged ¶
ConsumeChanged reports durable creations to the root exactly once.
func (*Model) MouseHandler ¶
MouseHandler returns a release-only immutable map derived from the current rendered frame. Updating the model remains the caller's responsibility.
func (*Model) Overlay ¶
Overlay composes the split review over the current board/detail surface. Spec section 4: the panel is an elevation over what is behind it, never a frame, so it takes the shade step and the shadow with it.
func (Model) PointerSession ¶
PointerSession identifies this open ADR owner across harmless renders.
func (*Model) PointerSurface ¶
PointerSurface publishes the rendered handler together with its immutable stable-control topology for root-level stale-generation admission.
func (*Model) SetDataDir ¶
SetDataDir names the directory the active project is resolved from — the one holding the board and its state.json. Empty falls back to $KB_DATA and the default data directory, the same as every other surface.
func (*Model) SetFrontMost ¶
SetFrontMost is the background handoff of spec section 10.2.6: a surface that is not front-most stops its engine and remounts at step 0 on return.
func (*Model) SetStyles ¶
SetStyles hands the overlay the resolved design system. Spec section 6.2: styles are built once by the root and threaded down, never constructed here.