Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalExitStatus (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

Exit status of a terminal command: an exit code (normal exit) and/or a signal name (killed by signal), independently nullable per the schema-oracle.

Fixed defect (missing field, vs. schema-oracle)

Upstream modeled only exitCode; the oracle also has a nullable signal field. Added here.

Ported from the MIT f1729/agent_client_protocol (c) 2025 f1729; see NOTICE.md.

Summary

Functions

Total: never raises, even for a non-map argument.

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalExitStatus{
  _meta: map(),
  exit_code: non_neg_integer() | nil,
  signal: String.t() | nil
}

Functions

from_json(map)

@spec from_json(term()) :: {:ok, t()}

Total: never raises, even for a non-map argument.

new(exit_code \\ nil, signal \\ nil)

@spec new(non_neg_integer() | nil, String.t() | nil) :: t()

to_json(s)

@spec to_json(t()) :: map()