/**
 * Route metadata tagging for build-time route type discovery.
 *
 * Handler wrappers (websocket, sse, stream, cron) stamp this symbol on
 * the returned middleware so the build tool can detect the route type
 * from `router.routes` without AST parsing.
 */
export const ROUTE_META = Symbol.for('agentuity:route-meta');
/**
 * Tag a handler/middleware with route metadata.
 */
export function tagRoute(handler, meta) {
    handler[ROUTE_META] = meta;
    return handler;
}
/**
 * Read route metadata from a handler/middleware.
 */
export function getRouteMeta(handler) {
    if (typeof handler === 'function') {
        return handler[ROUTE_META];
    }
    return undefined;
}
//# sourceMappingURL=_route-meta.js.map