~/bend-docscommunity

feature_provision.bend checks

raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/capabilities.Read<H, V> -> @ctx:H -> Pair(H, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/capabilities.Write<H, C, V> -> @ctx:H -> @value:C -> H

def action source · line 29 · raw

@-H:Type -> @cap:0x67fd5084c1da4adc13317822045bb11f/capabilities.Action<H> -> @ctx:H -> H

Templates

template provide source · line 10 · raw

@-Ctx:Type -> @-V:Data -> @-get:(@_:Ctx -> Pair(Ctx, 0x67fd5084c1da4adc13317822045bb11f/component.Access<V>)) -> @-body:(@-H:Type -> @_:0x67fd5084c1da4adc13317822045bb11f/capabilities.Read<H, V> -> @_:H -> Pair(H, 0x67fd5084c1da4adc13317822045bb11f/component.Access<V>)) -> @ctx:Ctx -> Pair(Ctx, 0x67fd5084c1da4adc13317822045bb11f/component.Access<V>)

template scope_keep source · line 13 · raw

@-S:Data -> @present:Bool -> @item:0x67fd5084c1da4adc13317822045bb11f/schema_fragments.Entry<S> -> @rest:List<&2, 0x67fd5084c1da4adc13317822045bb11f/schema_fragments.Entry<S>> -> List<&2, 0x67fd5084c1da4adc13317822045bb11f/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, 0x67fd5084c1da4adc13317822045bb11f/schema_fragments.Entry<S>> -> @+seen:List<&2, 0x67fd5084c1da4adc13317822045bb11f/schema_fragments.Entry<S>> -> List<&2, 0x67fd5084c1da4adc13317822045bb11f/schema_fragments.Entry<S>>

template scope_unique source · line 21 · raw

@-S:Data -> @items:List<&2, 0x67fd5084c1da4adc13317822045bb11f/schema_fragments.Entry<S>> -> List<&2, 0x67fd5084c1da4adc13317822045bb11f/schema_fragments.Entry<S>>

template bind_feature source · line 24 · raw

@-S:Data -> @-Owners:Type -> @-Output:Type -> @-build:(@_:Owners -> Output) -> @definition:0x67fd5084c1da4adc13317822045bb11f/feature.Definition<S> -> @required:List<&2, 0x67fd5084c1da4adc13317822045bb11f/schema_fragments.Entry<S>> -> @owners:Owners -> 0x67fd5084c1da4adc13317822045bb11f/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 -> @_:0x67fd5084c1da4adc13317822045bb11f/capabilities.Action<H> -> @_:H -> H) -> @ctx:Ctx -> Ctx