~/bend-docscommunity

restore_graph_runtime.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.5/restore_graph_runtime.bend as Restore_graph_runtime

26 imports
import Base
import ./change_tick.bend as Tick
import ./restore_graph_data.bend as GraphData
import ./restore_graph_validation.bend as Validation
import ./restore_graph_machine.bend as Machine
import ./restore_graph_world.bend as Install
import ./restore_data.bend as R
import ./restore_schema.bend as Schema
import ./restore_public.bend as Basic
import ./restore_prepare.bend as Prepare
import ./restore_apply.bend as Apply
import ./relation_commands.bend as Relation
import ./relation_types.bend as G
import ./relation_failure_reader.bend as Declaration
import ./owner_product.bend as Product
import ./snapshot_data.bend as Snapshot
import ./world.bend as W
import ./decode_data.bend as D
import ./entity_key.bend as Key
import ./restore_graph_public.bend as Public
import ./restore_graph_runtime_engine.bend as Engine
import ./restore_graph_runtime_state.bend as State
import ./event_family_runtime.bend as Family
import ./event_family_routing.bend as Route
import ./event_notice_runtime.bend as Mixed
import ./owned_event_family_catalog.bend as Catalog

Types

type Outcome source · line 28 · raw

@S:Data -> @Custom:Data -> Data

type Returned source · line 32 · raw

@S:Data -> @Runtime:Type -> @Owner:Type -> @Recovery:Type -> @Receipt:Type -> @Custom:Data -> Type

Templates

template pack source · line 34 · raw

@-S:Data -> @-Runtime:Type -> @-Owner:Type -> @-Recovery:Type -> @-Receipt:Type -> @-Custom:Data -> @runtime:Runtime -> @owner:Owner -> @recovery:Recovery -> @receipt:Maybe<&1, Receipt> -> @outcome:Outcome<S, Custom> -> Returned<S, Runtime, Owner, Recovery, Receipt, Custom>

template joined source · line 36 · raw

@-S:Data -> @-C:Type -> @-User:Type -> @-Logs:Type -> @-Machines:Type -> @-P:Data -> @-F:Type -> @-EventOwners:Type -> @-Receipt:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Position -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field -> Pair(State, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clear:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Change<S>>)) -> @-insert:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines> -> @_:State -> @_:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Binding<S>> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/change_tick.Tick -> Pair(Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>), State)) -> @-Recovery:Type -> @-commit:(@_:State -> State) -> @-takeRecovery:(@_:State -> Pair(State, Recovery)) -> @-machineRead:(@_:Machines -> Pair(Machines, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field>)) -> @-machineCheck:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_machine.Dispatch) -> @-machineClear:(@_:Machines -> Machines) -> @-machineInstall:(@_:Machines -> @_:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field> -> Machines) -> @-emit:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Change<S> -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>) -> @-retain:(@_:Logs -> @_:List<&2, P> -> Pair(Logs, Receipt)) -> @-drain:(@_:Logs -> Pair(Logs, Receipt)) -> @-clearStreams:(@_:F -> F) -> @-catalog:0x2a0aaf4f2cb3f416a9b91fd887916a5d/owned_event_family_catalog.Catalog<P, Logs, F, Receipt, retain, drain, clearStreams> -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, P> -> F) -> @result:Pair(Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_notice_runtime.State<S, P, F, EventOwners>, Nat), Pair(Maybe<&1, Receipt>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_public.Returned<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_public.Owner<S, C, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, State, Custom, stage, release, clear, insert, Recovery, commit, takeRecovery, machineRead, machineCheck, machineClear, machineInstall>, Recovery, Custom>)) -> Returned<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_family_routing.Runtime<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_notice_runtime.State<S, P, F, EventOwners>>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_public.Owner<S, C, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, State, Custom, stage, release, clear, insert, Recovery, commit, takeRecovery, machineRead, machineCheck, machineClear, machineInstall>, Recovery, Receipt, Custom>

template detached source · line 41 · raw

@-S:Data -> @-C:Type -> @-User:Type -> @-Logs:Type -> @-Machines:Type -> @-P:Data -> @-F:Type -> @-EventOwners:Type -> @-Receipt:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Position -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field -> Pair(State, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clear:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Change<S>>)) -> @-insert:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines> -> @_:State -> @_:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Binding<S>> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/change_tick.Tick -> Pair(Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>), State)) -> @-Recovery:Type -> @-commit:(@_:State -> State) -> @-takeRecovery:(@_:State -> Pair(State, Recovery)) -> @-machineRead:(@_:Machines -> Pair(Machines, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field>)) -> @-machineCheck:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_machine.Dispatch) -> @-machineClear:(@_:Machines -> Machines) -> @-machineInstall:(@_:Machines -> @_:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field> -> Machines) -> @-emit:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Change<S> -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>) -> @-retain:(@_:Logs -> @_:List<&2, P> -> Pair(Logs, Receipt)) -> @-drain:(@_:Logs -> Pair(Logs, Receipt)) -> @-clearStreams:(@_:F -> F) -> @-catalog:0x2a0aaf4f2cb3f416a9b91fd887916a5d/owned_event_family_catalog.Catalog<P, Logs, F, Receipt, retain, drain, clearStreams> -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, P> -> F) -> @owner:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_public.Owner<S, C, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, State, Custom, stage, release, clear, insert, Recovery, commit, takeRecovery, machineRead, machineCheck, machineClear, machineInstall> -> @input:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_data.Snapshot -> @result:Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.World<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>>, Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_notice_runtime.State<S, P, F, EventOwners>, Nat)) -> Returned<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_family_routing.Runtime<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_notice_runtime.State<S, P, F, EventOwners>>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_public.Owner<S, C, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, State, Custom, stage, release, clear, insert, Recovery, commit, takeRecovery, machineRead, machineCheck, machineClear, machineInstall>, Recovery, Receipt, Custom>

template run source · line 44 · raw

@-S:Data -> @-C:Type -> @-User:Type -> @-Logs:Type -> @-Machines:Type -> @-P:Data -> @-F:Type -> @-EventOwners:Type -> @-Receipt:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Position -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field -> Pair(State, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clear:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/world.Handle<S> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Change<S>>)) -> @-insert:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines> -> @_:State -> @_:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Binding<S>> -> @_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/change_tick.Tick -> Pair(Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>), State)) -> @-Recovery:Type -> @-commit:(@_:State -> State) -> @-takeRecovery:(@_:State -> Pair(State, Recovery)) -> @-machineRead:(@_:Machines -> Pair(Machines, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field>)) -> @-machineCheck:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_machine.Dispatch) -> @-machineClear:(@_:Machines -> Machines) -> @-machineInstall:(@_:Machines -> @_:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/decode_data.Field> -> Machines) -> @-emit:(@_:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_data.Change<S> -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>) -> @-retain:(@_:Logs -> @_:List<&2, P> -> Pair(Logs, Receipt)) -> @-drain:(@_:Logs -> Pair(Logs, Receipt)) -> @-clearStreams:(@_:F -> F) -> @-catalog:0x2a0aaf4f2cb3f416a9b91fd887916a5d/owned_event_family_catalog.Catalog<P, Logs, F, Receipt, retain, drain, clearStreams> -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, P> -> F) -> @owner:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_public.Owner<S, C, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, State, Custom, stage, release, clear, insert, Recovery, commit, takeRecovery, machineRead, machineCheck, machineClear, machineInstall> -> @runtime:0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_family_routing.Runtime<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_notice_runtime.State<S, P, F, EventOwners>> -> @input:0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_data.Snapshot -> Returned<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_family_routing.Runtime<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Store<S, C>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/event_notice_runtime.State<S, P, F, EventOwners>>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/restore_graph_public.Owner<S, C, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/owner_product.Owner<User, Logs>, Machines, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/relation_commands.Notice<S, P>, State, Custom, stage, release, clear, insert, Recovery, commit, takeRecovery, machineRead, machineCheck, machineClear, machineInstall>, Recovery, Receipt, Custom>