feature_provision.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.7/feature_provision.bend as Feature_provision
5 imports
import Base import ./feature.bend as F import ./component.bend as C import ./schema_fragments.bend as SF import ./capabilities.bend as Cap
Definitions
def read source · line 7 · raw
@-H:Type -> @-V:Data -> @cap:0x7e321819d0ff210531780719c7674cef/capabilities.Read<H, V> -> @ctx:H -> Pair(H, 0x7e321819d0ff210531780719c7674cef/component.Access<V>)
Trusted schema author closes the getter; universal gameplay receives only H.
def write source · line 26 · raw
@-H:Type -> @-C:Type -> @-V:Data -> @cap:0x7e321819d0ff210531780719c7674cef/capabilities.Write<H, C, V> -> @ctx:H -> @value:C -> H
def action source · line 29 · raw
@-H:Type -> @cap:0x7e321819d0ff210531780719c7674cef/capabilities.Action<H> -> @ctx:H -> H
Templates
template provide source · line 10 · raw
@-Ctx:Type -> @-V:Data -> @-get:(@_:Ctx -> Pair(Ctx, 0x7e321819d0ff210531780719c7674cef/component.Access<V>)) -> @-body:(@-H:Type -> @_:0x7e321819d0ff210531780719c7674cef/capabilities.Read<H, V> -> @_:H -> Pair(H, 0x7e321819d0ff210531780719c7674cef/component.Access<V>)) -> @ctx:Ctx -> Pair(Ctx, 0x7e321819d0ff210531780719c7674cef/component.Access<V>)
template scope_keep source · line 13 · raw
@-S:Data -> @present:Bool -> @item:0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S> -> @rest:List<&2, 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>>
Exact repeated descriptors collapse in access scope; conflicts remain validation errors.
template scope_seen source · line 17 · raw
@-S:Data -> @items:List<&2, 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>> -> @+seen:List<&2, 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>>
template scope_unique source · line 21 · raw
@-S:Data -> @items:List<&2, 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>> -> List<&2, 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>>
template bind_feature source · line 24 · raw
@-S:Data -> @-Owners:Type -> @-Output:Type -> @-build:(@_:Owners -> Output) -> @definition:0x7e321819d0ff210531780719c7674cef/feature.Definition<S> -> @required:List<&2, 0x7e321819d0ff210531780719c7674cef/schema_fragments.Entry<S>> -> @owners:Owners -> 0x7e321819d0ff210531780719c7674cef/schema_fragments.Bound<S, Owners, Output>
Authoring boundary: actual declared scope checked before closed construction.
template provide_action source · line 32 · raw
@-Ctx:Type -> @-run:(@_:Ctx -> Ctx) -> @-body:(@-H:Type -> @_:0x7e321819d0ff210531780719c7674cef/capabilities.Action<H> -> @_:H -> H) -> @ctx:Ctx -> Ctx