Expand description
The serialisable view layer behind --json (SP5b design §3.1 to §3.7).
Every document is a struct whose field order is its JSON member order; an absent value is null,
never a missing member, so a consumer sees the same members on every run.
Structs§
- Agent
RefView - An agent field of a repository entry.
- Agent
Resolution View - One agent’s resolution within the
statusdocument. - Agent
View - One registry entry of the
agentsdocument. - Agents
Document - The
agentsdocument. - Capability
View - One capability claim.
- Check
View - One record of a
doctordocument. - Doctor
Counts - The per-status counts of a
doctordocument; every key is always present. - Doctor
Document - The
doctordocument (SP5c design §6). - Evidence
View - The evidence the adapter’s claims rest on.
- Executable
View - An agent’s executable evidence.
- Mapping
View - The mapping entry that applies to the current repository.
- Mechanism
View - How the agent is pointed at the profile.
- Presence
View - A profile’s presence: the token, plus the twin’s spelling when the state is
conflict. - Profile
RefView - A profile a repository entry names, and whether its directory exists.
- Profile
View - One profile and the agents materialized for it.
- Profiles
Document - The
profiles(andlist) document. - Repositories
Document - The
repositoriesdocument. - Repository
View - One stored repository mapping with its classification.
- Resolve
Document - The
resolvedocument. - Status
Document - The
statusdocument.
Constants§
- TOOL_
VERSION - The
tool_versionmember of every document.
Functions§
- agent_
view - The JSON view of one registry entry and its executable status.
- agents
- Builds the
agentsdocument from registry metadata and each agent’s executable status. - capability_
token - The closed JSON token for a capability.
- doctor
- executable_
view - The JSON view of one executable status.
- profiles
- Builds the
profilesdocument; with an agent, only rows that materialize it, each row unchanged. - render
- Two-space pretty print plus a trailing newline.
- repositories
- Builds the
repositoriesdocument; the entries arrive sorted and keep their order. - repository_
view - The JSON view of one classified repository entry.
- resolve
- source_
token - The closed JSON token for a resolution source (the text label is for humans).
- state_
token - The closed JSON token for a capability state.
- status
- support_
token - The closed JSON token for a support level.