def cleanup_cap
import bendvy-ecs-core@0.1.0.4/ordinary_lifetime_scope.bend as OrdinaryLifetimeScopeimport Base
import bendvy-ecs-core@0.1.0.4/lifetime_scope.bend as Sc
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as A
import bendvy-ecs-core@0.1.0.4/capabilities.bend as Cap
62# Advanced capability projection: consume Ops and obtain its cleanup request.
63# Normal system bodies use cleanup; projection alone queues no work.
64def cleanup_cap(~H:Type,~S:Data,~P:Type,ops:Ops<H,S,P>) -> Cap.Request<H,Sc.Scope<S>,A.QueueStatus>:
65 match ops:
66 case Ops{_,cleanup}:cleanup