Inspector.run: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/inspector.bend as Inspector Lines 114-125 of bendvy-ecs-core@0.1.0.3/inspector.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/inspector.bend&start_line=114&end_line=125 import Base import world.bend as W # Run a standalone read-only Inspector body with its own Instance cursor. # Returns World and Instance on both body success and failure. Success advances # World clock and observation cursor; failure retains the prior cursor. Neither # path advances a registered system cursor or owns event retention. This raw # Instance has no world namespace check; canonical runtime-bound wrappers # enforce their separate registration/world contracts. Trusted projections # must preserve owners; arbitrary host effects are not automatically rolled back. # Inspection contract and consumers: docs/parity/inspect.md. def run(~S:Data,~Store:Type,~R:Type,~E:Data,~Ops:Type -> Type,~A:Data,~U:Data,~Out:Data,~plan:Plan,~body:@-H:Type -> @-caps:Ops(H) -> A -> H -> H & Result<&2,&2,U,Out>,instance:Instance,args:A,world:W.World) -> Observed: match instance: case Fresh{}:first(~S,~Store,~R,~E,~Ops,~A,~U,~Out,~plan,~body,args,W.clock(~S,~Store,~R,~E,world)) case Active{cursor,registeredAt}:initialized(~S,~Store,~R,~E,~Ops,~A,~U,~Out,~plan,~body,args,cursor,registeredAt,world) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/inspector.bend&name=Instance https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/inspector.bend&name=Observed https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/inspector.bend&name=Plan https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/inspector.bend&name=first https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/inspector.bend&name=initialized https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=clock