ordinary_app_resource_field.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/ordinary_app_resource_field.bend as Ordinary_app_resource_field
13 imports
import Base import ./ordinary_query_declaration.bend as Query import ./ordinary_app_composer.bend as Build import ./ordinary_app_registration_fields.bend as Records import ./ordinary_app_records.bend as Leaf import ./ordinary_app_recipe.bend as Tree import ./ordinary_app_resource_field_observation.bend as Leaves import ./world.bend as W import ./system.bend as Sys import ./transaction.bend as T import ./ordinary_resource_field_system.bend as P import ./ordinary_app_resource_field_declaration.bend as D import ./ordinary_app_observation_data.bend as DTO
Templates
template field_owner source · line 15 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-runner:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:Args -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Out>) -> @-clauses:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_query_declaration.Clause<S>> -> @slot:String -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.Owner<S, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, runner>, clauses> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, runner>>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>)
template extracted source · line 20 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Ops:(@_:Type -> Type) -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-Value:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.Declaration<S, C, R, E, Ops, Value> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> @-Output:Type -> @done:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_composer.Registered<S, 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Pair(Owners, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.Record<S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>>), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<Rows, Value>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.observe_pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, Value, observe, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_observation.resource_observe(S, C, R, E, Ops, Value, declaration)), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.fold_pair(S, Owners, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.Record<S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>>, fold, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.observed(S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>))> -> Output) -> @failed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_composer.Registered<S, 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Owners, Rows, observe, fold> -> Output) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @owners:Owners -> @debug:Bool -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>) -> Output
The same ordinary resource declaration drives registration, observation and metadata.
template defined source · line 23 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Ops:(@_:Type -> Type) -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-Value:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.Declaration<S, C, R, E, Ops, Value> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> @-Output:Type -> @done:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_composer.Registered<S, 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Pair(Owners, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.Record<S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>>), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<Rows, Value>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.observe_pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, Value, observe, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_observation.resource_observe(S, C, R, E, Ops, Value, declaration)), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.fold_pair(S, Owners, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.Record<S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>>, fold, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.observed(S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>))> -> Output) -> @failed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_composer.Registered<S, 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Owners, Rows, observe, fold> -> Output) -> @owners:Owners -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, observe> -> @debug:Bool -> @slot:String -> @result:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.Defined<S, 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.clauses(S, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, E>, Ops(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, E>), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration))> -> Output
template register source · line 31 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Ops:(@_:Type -> Type) -> @-Args:Type -> @-Error:Data -> @-Out:Type -> @-Value:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.Declaration<S, C, R, E, Ops, Value> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Out))) -> @-Output:Type -> @done:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_composer.Registered<S, 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Pair(Owners, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.Record<S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>>), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<Rows, Value>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.observe_pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, Value, observe, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_observation.resource_observe(S, C, R, E, Ops, Value, declaration)), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.fold_pair(S, Owners, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.Record<S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>>, fold, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_records.observed(S, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Token<0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, Args, Error, Out, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>>))> -> Output) -> @failed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_composer.Registered<S, 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Owners, Rows, observe, fold> -> Output) -> @app:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_composer.Registered<S, 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Owners, Rows, observe, fold> -> @name:String -> @slot:String -> Output
Add a selected-resource-field system, deriving access and inspection from the same declaration/binding. done receives extended registration owners; failed returns the prior App shape with World/owners retained. Does not run body or replace a field at registration. Raw schema lenses remain trusted.