@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
14 lines • 534 B
JavaScript
import { getPoppyConnectionsHandler } from './runtime.js';
/**
* Serves the agent identity, the connect pages and the sign-in callback ahead of the router — no
* session, CSRF or bodyparser: the connect id in the URL is the capability.
*/
export default class PoppyConnectionsServerMiddleware {
async handle(ctx, next) {
const handler = getPoppyConnectionsHandler();
if (handler !== null && (await handler(ctx)))
return;
return next();
}
}
//# sourceMappingURL=server_middleware.js.map