execution_relation_resource_publication.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_relation_resource_publication.bend as Execution_relation_resource_publication
9 imports
import Base import ./execution_composer_layout.bend as Layout import ./execution_relation_store.bend as Store import ./execution_relation_operation.bend as O import ./execution_relation_publication.bend as Publication import ./execution_relation_context.bend as Context import ./relation_types.bend as T import ./entity_allocator.bend as Allocator import ./change_tick.bend as Tick
Templates
template slot source · line 13 · raw
@-S:Data -> @-key:String -> @-origin:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-FromP:Type -> @-ToP:Type -> @-FromV:Data -> @-ToV:Data -> @payload:{FromP == ToP : Type} -> @view:{FromV == ToV : Data} -> @value:0x704c77730661eff4309838fc738ef615/execution_composer_layout.ResourceSlot<S, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.Viewed<FromP, FromV>, key, origin> -> 0x704c77730661eff4309838fc738ef615/execution_composer_layout.ResourceSlot<S, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.Viewed<ToP, ToV>, key, origin>These casts use supplied forward schema/payload/view equalities. No layout is inferred from P, R, a string key, a cursor, or an entity index.
template restored source · line 17 · raw
@-S:Data -> @-WR:Type -> @-resources:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-same:{WR == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, resources) : Type} -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-descriptor:0x704c77730661eff4309838fc738ef615/relation_types.Descriptor<S> -> @-payload:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(resources, route) == 0x704c77730661eff4309838fc738ef615/execution_relation_store.Store<S, descriptor> : Type} -> @-view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(resources, route) == 0x704c77730661eff4309838fc738ef615/execution_relation_store.View<S, descriptor> : Data} -> @rest:0x704c77730661eff4309838fc738ef615/execution_composer_layout.resource_rest(S, resources, route) -> @result:Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(0x704c77730661eff4309838fc738ef615/execution_composer_layout.ResourceSlot<S, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.Viewed<0x704c77730661eff4309838fc738ef615/execution_relation_store.Store<S, descriptor>, 0x704c77730661eff4309838fc738ef615/execution_relation_store.View<S, descriptor>>, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.key(resources, route), 0x704c77730661eff4309838fc738ef615/execution_composer_layout.origin(resources, route)>, 0x704c77730661eff4309838fc738ef615/execution_relation_store.Receipt<S>)) -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(WR, 0x704c77730661eff4309838fc738ef615/execution_relation_store.Receipt<S>))
template taken source · line 20 · raw
@-S:Data -> @-WR:Type -> @-resources:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-same:{WR == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, resources) : Type} -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-descriptor:0x704c77730661eff4309838fc738ef615/relation_types.Descriptor<S> -> @-payload:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(resources, route) == 0x704c77730661eff4309838fc738ef615/execution_relation_store.Store<S, descriptor> : Type} -> @-view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(resources, route) == 0x704c77730661eff4309838fc738ef615/execution_relation_store.View<S, descriptor> : Data} -> @namespace:U32 -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @operation:0x704c77730661eff4309838fc738ef615/execution_relation_operation.Operation<S> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @result:Pair(0x704c77730661eff4309838fc738ef615/execution_composer_layout.resource_rest(S, resources, route), 0x704c77730661eff4309838fc738ef615/execution_composer_layout.ResourceSlot<S, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.stored(resources, route), 0x704c77730661eff4309838fc738ef615/execution_composer_layout.key(resources, route), 0x704c77730661eff4309838fc738ef615/execution_composer_layout.origin(resources, route)>) -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(WR, 0x704c77730661eff4309838fc738ef615/execution_relation_store.Receipt<S>))
template checked source · line 23 · raw
@-S:Data -> @-WR:Type -> @-resources:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-same:{WR == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, resources) : Type} -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-valid:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.grant_valid(resources, route) == True{} : Bool} -> @-descriptor:0x704c77730661eff4309838fc738ef615/relation_types.Descriptor<S> -> @-payload:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(resources, route) == 0x704c77730661eff4309838fc738ef615/execution_relation_store.Store<S, descriptor> : Type} -> @-view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(resources, route) == 0x704c77730661eff4309838fc738ef615/execution_relation_store.View<S, descriptor> : Data} -> @allowed:Bool -> @namespace:U32 -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @owners:WR -> @operation:0x704c77730661eff4309838fc738ef615/execution_relation_operation.Operation<S> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(WR, 0x704c77730661eff4309838fc738ef615/execution_relation_store.Receipt<S>))
template apply source · line 29 · raw
@-S:Data -> @-WR:Type -> @-resources:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-same:{WR == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, resources) : Type} -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-valid:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.grant_valid(resources, route) == True{} : Bool} -> @-descriptor:0x704c77730661eff4309838fc738ef615/relation_types.Descriptor<S> -> @-payload:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(resources, route) == 0x704c77730661eff4309838fc738ef615/execution_relation_store.Store<S, descriptor> : Type} -> @-view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(resources, route) == 0x704c77730661eff4309838fc738ef615/execution_relation_store.View<S, descriptor> : Data} -> @context:0x704c77730661eff4309838fc738ef615/execution_relation_context.Context<S, WR, resources, same> -> @+namespace:U32 -> @allocator:0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator -> @owners:WR -> @operation:0x704c77730661eff4309838fc738ef615/execution_relation_operation.Operation<S> -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> Pair(0x704c77730661eff4309838fc738ef615/entity_allocator.Allocator, Pair(WR, 0x704c77730661eff4309838fc738ef615/execution_relation_store.Receipt<S>))The canonical command interpreter supplies actual namespace/allocator/resources from one World. The closed relation grant must also verify protected policy.