Typed structs mirroring bsdkrun's JSON output, plus mapping helpers that
turn a decoded --json row (string keys) into the corresponding struct.
Summary
Functions
Map a GraphQL AiAgent row to an AiAgent struct.
Map a GraphQL AiSession row to an AiSession struct.
Map a GraphQL CommandResult row to a CommandResult struct.
Map a GraphQL DockerContainer row to a DockerContainer struct.
Map a GraphQL DockerStatus row to a DockerStatus struct.
Map an images --json row to an ImageInfo.
Map a network ls --json row to a NetworkInfo.
Map a ports row (from a ps --json row) to a PortForward.
Map a ps --json row to a SandboxInfo.
Map a GraphQL Machine row (camelCase keys, as selected by
Bsdkrun.Client's MACHINE_FIELDS) to a SandboxInfo — the same struct
sandbox_info/1 builds from the CLI's ps --json, just sourced from the
daemon instead.
Map a GraphQL ShellSessionInfo row to a ShellSessionInfo struct.
Map a GraphQL Snapshot row to a SnapshotInfo struct.
Map a volume ls --json row to a VolumeInfo.
Functions
@spec ai_agent_from_graphql(map()) :: Bsdkrun.Types.AiAgent.t()
Map a GraphQL AiAgent row to an AiAgent struct.
@spec ai_session_from_graphql(map()) :: Bsdkrun.Types.AiSession.t()
Map a GraphQL AiSession row to an AiSession struct.
@spec command_result_from_graphql(map()) :: Bsdkrun.Types.CommandResult.t()
Map a GraphQL CommandResult row to a CommandResult struct.
@spec docker_container_from_graphql(map()) :: Bsdkrun.Types.DockerContainer.t()
Map a GraphQL DockerContainer row to a DockerContainer struct.
@spec docker_status_from_graphql(map()) :: Bsdkrun.Types.DockerStatus.t()
Map a GraphQL DockerStatus row to a DockerStatus struct.
@spec image_info(map()) :: Bsdkrun.Types.ImageInfo.t()
Map an images --json row to an ImageInfo.
@spec network_info(map()) :: Bsdkrun.Types.NetworkInfo.t()
Map a network ls --json row to a NetworkInfo.
@spec port_forward(map()) :: Bsdkrun.Types.PortForward.t()
Map a ports row (from a ps --json row) to a PortForward.
@spec sandbox_info(map()) :: Bsdkrun.Types.SandboxInfo.t()
Map a ps --json row to a SandboxInfo.
@spec sandbox_info_from_graphql(map()) :: Bsdkrun.Types.SandboxInfo.t()
Map a GraphQL Machine row (camelCase keys, as selected by
Bsdkrun.Client's MACHINE_FIELDS) to a SandboxInfo — the same struct
sandbox_info/1 builds from the CLI's ps --json, just sourced from the
daemon instead.
@spec shell_session_info_from_graphql(map()) :: Bsdkrun.Types.ShellSessionInfo.t()
Map a GraphQL ShellSessionInfo row to a ShellSessionInfo struct.
@spec snapshot_info_from_graphql(map()) :: Bsdkrun.Types.SnapshotInfo.t()
Map a GraphQL Snapshot row to a SnapshotInfo struct.
@spec volume_info(map()) :: Bsdkrun.Types.VolumeInfo.t()
Map a volume ls --json row to a VolumeInfo.