~/bend-docscommunity

ordinary_app_linked_cleanup_system.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/ordinary_app_linked_cleanup_system.bend as Ordinary_app_linked_cleanup_system

16 imports
import Base
import ./world.bend as W
import ./ordinary_app_relation.bend as Relation
import ./relation_failure_reader.bend as Ord
import ./relation_types.bend as G
import ./relation_commands.bend as A
import ./ordinary_app_linked_cleanup.bend as LC
import ./transaction.bend as T
import ./commands.bend as Cmd
import ./system.bend as Sys
import ./capabilities.bend as Cap
import ./ordinary_app_composer.bend as Build
import ./ordinary_app_recipe.bend as Tree
import ./ordinary_app_observation_data.bend as DTO
import ./ordinary_app_registration_fields.bend as Fields
import ./ordinary_component_clear_declaration.bend as Clear

Types

type Ops source · line 19 · raw

@-H:Type -> @-S:Data -> Type

Gameplay receives an abstract affine owner and this single live operation.

type Defined source · line 51 · raw

@-App:Type -> @-Registry:Type -> Type

type Executed source · line 54 · raw

@-App:Type -> @-Registry:Type -> @-Args:Data -> @-U:Data -> @-Out:Data -> Type

Definitions

def cleanup source · line 21 · raw

@-H:Type -> @-S:Data -> @caps:Ops<H, S> -> @owner:H -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus)

def writes source · line 24 · raw

@keys:List<&2, String> -> List<&2, String>

Templates

template relation_accesses source · line 28 · raw

@-S:Data -> @declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> List<&2, String>

template request source · line 32 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>> -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus)

template provide source · line 34 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> Ops<0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, S>

template returned source · line 36 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @output:Out -> @result:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), U> -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), U, Out>

template invoked source · line 40 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out)) -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), U, Out>

template runner source · line 43 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @-Args:Data -> @-U:Data -> @-Out:Data -> @-body:(@-H:Type -> @_:Ops<H, S> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E) -> @args:Args -> 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), U, Out>

template Owner source · line 45 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @-Args:Data -> @-U:Data -> @-Out:Data -> @-body:(@-H:Type -> @_:Ops<H, S> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> Type

template register source · line 47 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @-Args:Data -> @-U:Data -> @-Out:Data -> @-body:(@-H:Type -> @_:Ops<H, S> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-clearDeclaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_component_clear_declaration.Declaration<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, clear> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E) -> @name:String -> 0x14a72e1c180a5ab1f8a056d43822425c/system.RegistrationResult<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)>

template run source · line 49 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @-Args:Data -> @-U:Data -> @-Out:Data -> @-body:(@-H:Type -> @_:Ops<H, S> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E) -> @args:Args -> 0x14a72e1c180a5ab1f8a056d43822425c/system.RunResult<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)>

template registered_app source · line 57 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @-Args:Data -> @-U:Data -> @-Out:Data -> @-body:(@-H:Type -> @_:Ops<H, S> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.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>>)) -> @owners:Owners -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), Rows, observe> -> @debug:Bool -> @result:0x14a72e1c180a5ab1f8a056d43822425c/system.RegistrationResult<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)> -> Defined<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_linked_cleanup.Installed<S, C, R, E, Owners, Rows, observe, fold, declarations, clear, record>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)>>

template register_app source · line 61 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @-Args:Data -> @-U:Data -> @-Out:Data -> @-body:(@-H:Type -> @_:Ops<H, S> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.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>>)) -> @-clearDeclaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_component_clear_declaration.Declaration<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, clear> -> @installed:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_linked_cleanup.Installed<S, C, R, E, Owners, Rows, observe, fold, declarations, clear, record> -> @name:String -> Defined<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_linked_cleanup.Installed<S, C, R, E, Owners, Rows, observe, fold, declarations, clear, record>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)>>

template executed_app source · line 64 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @-Args:Data -> @-U:Data -> @-Out:Data -> @-body:(@-H:Type -> @_:Ops<H, S> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.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>>)) -> @owners:Owners -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E), Rows, observe> -> @debug:Bool -> @result:0x14a72e1c180a5ab1f8a056d43822425c/system.RunResult<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)> -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_linked_cleanup.Installed<S, C, R, E, Owners, Rows, observe, fold, declarations, clear, record>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)>, Args, U, Out>

template run_app source · line 69 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declarations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S>> -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>)) -> @-record:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>) -> @-Args:Data -> @-U:Data -> @-Out:Data -> @-body:(@-H:Type -> @_:Ops<H, S> -> @_:Args -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.World(S, C, R, E) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_relation.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>>)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)> -> @installed:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_linked_cleanup.Installed<S, C, R, E, Owners, Rows, observe, fold, declarations, clear, record> -> @input:Args -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_linked_cleanup.Installed<S, C, R, E, Owners, Rows, observe, fold, declarations, clear, record>, 0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>, Args, U, Out, runner(S, C, R, E, declarations, clear, record, Args, U, Out, body)>, Args, U, Out>