MiddlewareContextThe per-run state exposed to middleware via the chain walker. One instance is constructed per CliInvoke.Core.Middleware.MiddlewareChain.RunAsync(CliInvoke.Core.InvocationContext%2cSystem.Threading.CancellationToken) call and shared by every middleware in the chain; it carries the run's single cancellation token.
IProcessMiddlewareThe async-only contract for process middleware. Implementations intercept the pipeline by calling next to continue, or omitting the call to short-circuit the chain.