Skip to main content

Module agent_state_request

Module agent_state_request 

Source
Expand description

#2196: bynk/agentStateModel — the agent state view’s custom LSP request (agent-state-views track, slice 2).

Agent-scoped, not handler-scoped: the cursor anywhere inside an agent declaration (its header, a store field, a handler body) selects that agent, and the response is the whole agent’s state model (bynk_ide::agent_state). Served from the committed round by re-parsing the snapshot, like bynk/sequenceModel (ADR 0301’s posture); no refresh nudge, since the client re-pulls (ADR 0504).

Also here: the sites of the per-agent Show State lens, and the wire shape — a serde mirror of the model with Spans lowered to LSP Ranges, plus each handler’s name and range (the table’s rows, and what the client highlights for the handler under the cursor).

Structs§

AgentStateModelParams
The bynk/agentStateModel request payload. rename_all = "camelCase" is load-bearing — the client sends textDocument/position (see sequence_request::SequenceModelParams).
WireAgentStateModel
WireEdge
WireEffectRow
WireEffectWrite
WireHandler
WireHandlerEffects
WireNamed
WireStateMachine
WireViolation
#2197: a transition this edge can violate at commit.

Enums§

WireTarget

Functions§

agent_lens_sites
Every agent’s name, for the per-agent Show State lens.
agent_state_at
The agent enclosing offset, with its model built against types (the unit’s combined type table). None outside every agent.
effects_of
#2198: the effects of agent’s handlers, with agents naming the agents a handler can call (the context’s agent table).
to_wire