Crosswake. Compatibility. Target
(crosswake v0.2.0)
View Source
Evaluation context passed to companion callbacks route_gated?/2 and
kill_switch_active?/1.
Carries the request-time compatibility context: runtime versions, origin, active route, capabilities, and pack state. Companion implementations receive this struct and may read any field but must not construct it directly.
Stability
Public stable — part of the Crosswake companion contract surface. Semver-protected
under crosswake >= 0.1.0: no breaking changes to this module's struct fields,
types, or callbacks without a major version bump. Companion packages
(crosswake_rulestead, crosswake_rindle, etc.) may safely alias and
pattern-match on this type.
Summary
Types
@type t() :: %Crosswake.Compatibility.Target{ active_route_id: String.t() | nil, bridge_protocol_version: String.t() | nil, capabilities: %{optional(String.t()) => String.t()}, manifest_schema_version: String.t() | nil, manifest_source: :bundled | :cached | :remote, native_runtime_version: String.t() | nil, origin: String.t() | nil, packs: %{optional(String.t()) => term()} }
Request-time evaluation context passed to companion gate and kill-switch callbacks.