machine.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/machine.bend as Machine
1 import
import Base
Types
type Pending source · line 6 · raw
@V:Data -> Data
Experimental machine metadata. World and component owners remain arbitrary Type. This module follows the pinned reference marker snapshot semantics; that behavior is not approval of the disputed blanket next-marker retention requirement.
NoPending@V:Data -> Pending<V>
Queued@V:Data -> @value:V -> @skipSame:Bool -> Pending<V>
type Transition source · line 10 · raw
@V:Data -> Data
Transition@V:Data -> @from:V -> @to:V -> Transition<V>
Initial@V:Data -> @to:V -> Transition<V>
type Slot source · line 14 · raw
@S:Data -> @M:Data -> @V:Data -> Data
Missing@S:Data -> @M:Data -> @V:Data -> Slot<S, M, V>
Present@S:Data -> @M:Data -> @V:Data -> @current:V -> @pending:Pending<V> -> @previous:Maybe<&2, V> -> @changed:Bool -> Slot<S, M, V>
type CurrentView source · line 19 · raw
@S:Data -> @M:Data -> @V:Data -> Data
Public capability projections intentionally expose less than debug metadata.
Current@S:Data -> @M:Data -> @V:Data -> @value:V -> CurrentView<S, M, V>
type NextView source · line 22 · raw
@S:Data -> @M:Data -> @V:Data -> Data
NoNext@S:Data -> @M:Data -> @V:Data -> NextView<S, M, V>
Next@S:Data -> @M:Data -> @V:Data -> @value:V -> NextView<S, M, V>
type Family source · line 53 · raw
@S:Data -> @M:Data -> @V:Data -> @W:Type -> @-take:(@_:W -> Pair(W, Slot<S, M, V>)) -> @-put:(@_:W -> @_:Slot<S, M, V> -> W) -> Data
Family@S:Data -> @M:Data -> @V:Data -> @W:Type -> @-take:(@_:W -> Pair(W, Slot<S, M, V>)) -> @-put:(@_:W -> @_:Slot<S, M, V> -> W) -> @name:String -> Family<S, M, V, W, take, put>
type QueueInput source · line 57 · raw
@V:Data -> Data
Set@V:Data -> @value:V -> @skipSame:Bool -> QueueInput<V>
Reset@V:Data -> QueueInput<V>
type Snapshot source · line 61 · raw
@V:Data -> Data
Unscheduled@V:Data -> Snapshot<V>
Scheduled@V:Data -> @value:V -> @skipSame:Bool -> Snapshot<V>
type Applied source · line 65 · raw
@S:Data -> @M:Data -> @V:Data -> Data
Applied@S:Data -> @M:Data -> @V:Data -> @slot:Slot<S, M, V> -> @event:Maybe<&2, Transition<V>> -> Applied<S, M, V>
type Condition source · line 116 · raw
@V:Data -> Data
InState@V:Data -> @value:V -> Condition<V>
StateChanged@V:Data -> Condition<V>
Not@V:Data -> @inner:Condition<V> -> Condition<V>
Constant@V:Data -> @value:Bool -> Condition<V>
And@V:Data -> @left:Condition<V> -> @right:Condition<V> -> Condition<V>
Or@V:Data -> @left:Condition<V> -> @right:Condition<V> -> Condition<V>
type Marker source · line 157 · raw
@S:Data -> @W:Type -> Type
A heterogeneous marker snapshot owns each callback exactly once. Each callback captures a Data machine value and closed lenses, never a world/component owner.
Marker@S:Data -> @W:Type -> @steps:List<&1, @_:W -> W> -> Marker<S, W>
type OwnedMarker source · line 171 · raw
@S:Data -> @W:Type -> @H:Type -> Type
Registered schedule/transition owners live alongside the world and are also threaded, rather than copied into one closure per machine.
OwnedMarker@S:Data -> @W:Type -> @H:Type -> @steps:List<&1, @_:H -> @_:W -> Pair(H, W)> -> OwnedMarker<S, W, H>
Definitions
def current_view_generic source · line 26 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> CurrentView<S, M, V>
def pending_view_generic source · line 33 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @pending:Pending<V> -> NextView<S, M, V>
def next_view_generic source · line 40 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> NextView<S, M, V>
def queue_generic source · line 68 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> @value:V -> @skipSame:Bool -> Slot<S, M, V>
def reset_generic source · line 76 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Slot<S, M, V>
Templates
template current_view source · line 30 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> CurrentView<S, M, V>
template pending_view source · line 37 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @pending:Pending<V> -> NextView<S, M, V>
template next_view source · line 45 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> NextView<S, M, V>
template is_current source · line 48 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @view:CurrentView<S, M, V> -> @value:V -> Bool
template queue source · line 73 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> @value:V -> @skipSame:Bool -> Slot<S, M, V>
template reset source · line 81 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Slot<S, M, V>
template clear_changed source · line 84 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Slot<S, M, V>
template snapshot_pending source · line 89 · raw
@-V:Data -> @pending:Pending<V> -> Snapshot<V>
template snapshot source · line 94 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Snapshot<V>
template apply_decision source · line 99 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @+current:V -> @+value:V -> @previous:Maybe<&2, V> -> @changed:Bool -> @skip:Bool -> Applied<S, M, V>
template apply_present source · line 104 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @+current:V -> @+value:V -> @previous:Maybe<&2, V> -> @changed:Bool -> @skipSame:Bool -> Applied<S, M, V>
template apply_snapshot source · line 109 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @slot:Slot<S, M, V> -> @captured:Snapshot<V> -> Applied<S, M, V>
Captured initial value is authoritative; current pending is deleted at the machine's turn, matching Runtime.ts:1534 even when an earlier hook overwrote it.
template current_matches source · line 124 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @slot:Slot<S, M, V> -> @value:V -> Bool
template changed source · line 129 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Bool
template all source · line 136 · raw
@-V:Data -> @items:List<&2, Condition<V>> -> Condition<V>
Arbitrary public variadic combinations become a structural Boolean tree. Empty and/or preserve the primary API identities.
template any source · line 141 · raw
@-V:Data -> @items:List<&2, Condition<V>> -> Condition<V>
template evaluate source · line 146 · raw
@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @condition:Condition<V> -> @+slot:Slot<S, M, V> -> Bool
template marker_steps source · line 160 · raw
@-W:Type -> @steps:List<&1, @_:W -> W> -> @world:W -> W
template run_marker source · line 165 · raw
@-S:Data -> @-W:Type -> @marker:Marker<S, W> -> @world:W -> W
template marker_next source · line 174 · raw
@-W:Type -> @-H:Type -> @next:(@_:H -> @_:W -> Pair(H, W)) -> @pair:Pair(H, W) -> Pair(H, W)
template owned_marker_steps source · line 178 · raw
@-W:Type -> @-H:Type -> @steps:List<&1, @_:H -> @_:W -> Pair(H, W)> -> @owners:H -> @world:W -> Pair(H, W)
template run_owned_marker source · line 183 · raw
@-S:Data -> @-W:Type -> @-H:Type -> @marker:OwnedMarker<S, W, H> -> @owners:H -> @world:W -> Pair(H, W)