Documentation
¶
Overview ¶
Package daemon is `stagent daemon`: the per-user session registry, event log, hook integration (state, notifications, blocking approvals), push notifications, transcript access and scrollback retention. It never sees PTY bytes — holders keep the terminal and report state transitions only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon is one running daemon.
func (*Daemon) Done ¶
func (d *Daemon) Done() <-chan struct{}
Done is closed when Shutdown starts (daemon.shutdown, signals).
type Options ¶
type Options struct {
Layout *paths.Layout
// Roots of the harness transcripts (default: transcript.DefaultRoots).
Roots *transcript.Roots
// GoneGrace: a holder connection that drops without holder.ended counts
// as a lost session unless the holder re-registers within this time.
GoneGrace time.Duration
// EndedLinger: how long an ended session stays listed.
EndedLinger time.Duration
// TranscriptPoll: tail interval while a transcript is subscribed.
TranscriptPoll time.Duration
Logf func(format string, args ...any)
}
Options configures a Daemon. Zero fields take defaults.