Pure owner of Traditional agent presentation and inline session surfaces.
The full agent presentation cache and both per-buffer inline stores are replaced only through this owner. Inline completion and cancellation match the originating session or buffer, so delayed events cannot update a replacement surface.
Summary
Functions
Activates or replaces the inline ask for its buffer.
Activates or replaces the inline edit for its buffer.
Appends output only to the matching inline ask session.
Appends output only to the matching inline edit session.
Returns the inline ask store.
Cancels the inline ask for a buffer and returns its session pid.
Cancels the inline edit for a buffer and returns its session pid.
Completes the matching inline ask session.
Completes the matching inline edit session.
Returns the inline edit store.
Fails the matching inline ask session.
Fails the matching inline edit session.
Returns the full agent presentation cache.
Replaces a current inline ask after an input transition.
Replaces a current inline edit after an input transition.
Replaces the full agent presentation cache.
Types
@type t() :: %MingaEditor.Shell.Traditional.AgentSurfaces{ asks: MingaEditor.State.InlineAsk.store(), edits: MingaEditor.State.InlineEdit.store(), presentation: MingaEditor.State.Agent.t() }
Functions
@spec activate_ask(t(), MingaEditor.State.InlineAsk.t()) :: t()
Activates or replaces the inline ask for its buffer.
@spec activate_edit(t(), MingaEditor.State.InlineEdit.t()) :: t()
Activates or replaces the inline edit for its buffer.
Appends output only to the matching inline ask session.
Appends output only to the matching inline edit session.
@spec asks(t()) :: MingaEditor.State.InlineAsk.store()
Returns the inline ask store.
Cancels the inline ask for a buffer and returns its session pid.
Cancels the inline edit for a buffer and returns its session pid.
Completes the matching inline ask session.
Completes the matching inline edit session.
@spec edits(t()) :: MingaEditor.State.InlineEdit.store()
Returns the inline edit store.
Fails the matching inline ask session.
Fails the matching inline edit session.
@spec presentation(t()) :: MingaEditor.State.Agent.t()
Returns the full agent presentation cache.
@spec replace_ask(t(), MingaEditor.State.InlineAsk.t()) :: t()
Replaces a current inline ask after an input transition.
@spec replace_edit(t(), MingaEditor.State.InlineEdit.t()) :: t()
Replaces a current inline edit after an input transition.
@spec replace_presentation(t(), MingaEditor.State.Agent.t()) :: t()
Replaces the full agent presentation cache.