Documentation
¶
Overview ¶
Package nudge delivers an operator-triggered "check your inbox" prompt into an agent's tmux pane via send-keys. This is the ONLY place muster types into a pane; automated bus activity uses internal/wake (notify) instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TmuxNudger ¶
TmuxNudger types a nudge into a pane and optionally submits it. Run is the command executor (nil → real tmux) and Sleep is the delay function (nil → time.Sleep); both are injectable for testing.
func (TmuxNudger) Nudge ¶
func (n TmuxNudger) Nudge(socketPath, paneID, modelType string, submit bool) (bool, error)
Nudge types the check-inbox line into the pane and (optionally) submits it.
func (TmuxNudger) TypeLine ¶ added in v0.7.5
func (n TmuxNudger) TypeLine(socketPath, paneID, modelType, text string, submit bool) (bool, error)
TypeLine types text into the pane and optionally submits it — the general form of Nudge, for callers with their own line to deliver (e.g. `muster label`'s /rename sync). Submit semantics are per-model, identical to Nudge: claude accepts an immediate Enter; codex needs codexSubmitDelay first; unknown model types are typed-only (submitted=false) so the caller can tell the operator to press Enter.