Capabilities
Named tmux primitive requirements on an observed daemon.
Source and package
- Qualified name
-
LibTmux. Capabilities - Module
- LibTmux
- Package
- libtmux
- Source
- lib/libtmux/capabilities.ex
-
Description
Obtain a report with
LibTmux.Server.capabilities/2orLibTmux.Control.capabilities/2. Decisions describe native tmux primitives; they do not advertise an implemented Elixir Program API. Unknown releases refuse discovery. For unknown feature IDs,status/2andrequire/2return an explicit error;supports?/2returnsfalse.Reports are captured data. Pure checks perform no I/O and grant no mutation authority. Editing a report cannot change the registry or another report. A later operation still needs its own identity and capability checks.
Server discovery requires the native, unaliased
list-commandsbootstrap throughout the call, without concurrent administrative changes. Control discovery inherits the connection's host qualification for hooks and aliases.
Members16 members
- command/2 function Looks up a canonical command in an observed native inventory.
- daemon_version: String
.t () property Required: building the struct without this key is an error. - daemon_witness: daemon
_witness () | nil property - daemon_witness/0: daemon
_witness () :: %{ pid: pos_integer (), started: pos_integer (), instance: String.t () } typealias The answering daemon's native PID and start time, bound to its OS incarnation. - decision/0: decision() :: %{
id: String
.t (), since: String.t (), scope: :tmux_primitive, handling: :refuse, source: String.t (), summary: String.t (), commands: [map()], state: :supported | :unsupported | :unknown, supported: boolean() } typealias A native primitive decision, independent of whether the library exposes that operation. - epoch: reference() | nil property
- features: %{required(String
.t ()) => decision()} property Required: building the struct without this key is an error. - native_command/0: native
_command () :: %{ name: String.t (), alias: String.t () | nil, usage: String.t () } typealias Canonical name, alias and usage advertised by the answering daemon. - native_commands: %{required(String
.t ()) => native_command ()} | nil property - option/0: option() :: {:timeout, 1..600_000} | {:native_commands, boolean()} typealias One observation budget, default 1000 ms, and optional one-shot native command evidence.
- require/2 function Returns the supported decision or a no-write refusal, without refreshing daemon evidence.
- server_instance: String
.t () property Required: building the struct without this key is an error. - source: :one_shot | :control property Required: building the struct without this key is an error.
- status/2 function Returns one registry decision without I/O; unknown IDs return an error.
- supports?/2 function Returns whether the observed release supports a named primitive; unknown IDs return false.
- t/0: t() :: %Lib
Tmux { daemon_version: String.Capabilities .t (), daemon_witness: daemon_witness () | nil, epoch: reference() | nil, features: %{required(String.t ()) => decision()}, native_commands: %{required(String.t ()) => native_command ()} | nil, server_instance: String.t (), source: :one_shot | :control } typealias Captured daemon evidence; a one-shot report does not pin the descriptor's future connections.
No members of Capabilities match . The filter searches only this type. Search the whole API.
Order: the accessors that walk the hierarchy, the operations the ports share, then the rest.