Handles the outgoing response, processes it, and invokes the next middleware in the pipeline.
The adapter context containing the raw event, execution context, and other data.
The next middleware to be invoked in the pipeline.
A promise that resolves to the processed context.
Middleware for handling raw responses in the Node CLI adapter.
This middleware processes outgoing responses and attaches the necessary exit code, and status codes to the raw response.