UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

16 lines • 629 B
import { getPoppyHandler } from './runtime.js'; /** * Server middleware that answers Poppy requests before the router runs — before the bodyparser, * the session and CSRF, like the A2A surface: a Poppy request is authenticated by its Session * Token (DPoP), BEFORE its body is read. Everything outside the endpoint passes straight through. */ export default class PoppyServerMiddleware { async handle(ctx, next) { const handler = getPoppyHandler(); if (handler !== null && (await handler(ctx))) { return; } return next(); } } //# sourceMappingURL=server_middleware.js.map