Correlated result for one authenticated local client operation.
The receipt separates command admission, BEAM application, and the strongest native readiness boundary that the affected consumer can prove. Receipt lookup observes the original action and never resubmits it.
Summary
Functions
Admits one typed semantic operation against an exact core-scoped target.
Records the exact BEAM target after the open operation applies.
Moves a nonterminal receipt to one terminal result exactly once.
Returns the stable public JSON representation used by the native helper.
Types
@type kind() :: :focus_pane | :select_tab | :goto_location | :activate_picker_choice
@type outcome() ::
:ready
| :applied
| :rejected
| :presentation_failed
| :hidden
| :unavailable
| :superseded
| :app_replaced
| :core_replaced
| :indeterminate
@type phase() :: :admitted | :applied | :terminal
@type t() :: %MingaEditor.NativeIPC.OperationReceipt{ admitted_at_ms: integer(), app_instance_id: String.t(), application_revision: non_neg_integer() | nil, applied_at_ms: integer() | nil, core_instance_id: String.t(), detail: String.t() | nil, evidence: MingaEditor.NativeIPC.OperationReceipt.Evidence.t() | nil, kind: :open | kind(), last_visible: MingaEditor.NativeIPC.OperationReceipt.Evidence.t() | nil, operation_id: pos_integer(), outcome: outcome() | nil, phase: phase(), postcondition: :editor_visible_focused | :beam_applied, result_code: String.t() | nil, target: MingaEditor.NativeIPC.OperationReceipt.Target.t(), terminal_at_ms: integer() | nil }
Functions
@spec admit( String.t(), String.t(), pos_integer(), String.t(), non_neg_integer(), integer() ) :: t()
@spec admit_operation( String.t(), String.t(), pos_integer(), kind(), MingaEditor.NativeIPC.OperationReceipt.Target.t(), :editor_visible_focused | :beam_applied, integer() ) :: t()
Admits one typed semantic operation against an exact core-scoped target.
@spec applied( t(), non_neg_integer(), non_neg_integer(), integer(), non_neg_integer() | nil ) :: t()
Records the exact BEAM target after the open operation applies.
@spec finish( t(), outcome(), MingaEditor.NativeIPC.OperationReceipt.Evidence.t() | nil, MingaEditor.NativeIPC.OperationReceipt.Evidence.t() | nil, String.t() | nil, integer() ) :: t()
Moves a nonterminal receipt to one terminal result exactly once.
Returns the stable public JSON representation used by the native helper.