Repository navigation
Interceptor servers can offer sinks. Unchanged from 0.8.3-rc.1.
Upgrading
- No config changes are needed. Sinks only run when an interceptor server in
gateway.interceptorServersoffers one. InterceptorInvokertakes an optional fifth argument,onSinkError. The gateway logs sink failures with it.
@adtl/gateway
- Sinks (#53, following the proposal in experimental-ext-interceptors#28): interceptors with
type: "sink"now run instead of being skipped with a warning. They are dispatched in parallel once validation has passed (sending: mutate, validate, then sinks; receiving: validate, sinks, then mutate) and never awaited, each with its own copy of the payload. A sink that fails or times out is logged and never blocks, whatever itsfailOpen, and the gateway's audit mode doesn't apply to sinks. Startup stops on a sink declared withmode: "audit"or given it by an override, as the proposal requires. Audit entries mark sinks withsink: true. Closing the gateway waits for dispatched sinks to settle. invalidSinks()andInterceptorInvoker.sinksSettled()are exported.unsupportedInterceptors()no longer lists sinks.
@adtl/interceptors
InterceptorDefinition.typeaccepts"sink", andSinkResult(recorded: boolean) joinsInterceptorResult.
Security
- Updated the transitive
hono(4.13.18) and@hono/node-server(2.1.8), pulled in by@modelcontextprotocol/sdk, for published advisories.npm auditis clean, including dev dependencies.