eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
1 lines • 1.1 kB
JavaScript
import{EVE_DEV_DISPATCH_SCHEDULE_ROUTE_PATTERN,EVE_DEV_RUNTIME_ARTIFACTS_ROUTE_PATH}from"#protocol/routes.js";import{EVE_WORKFLOW_FLOW_ROUTE_PATH}from"#internal/workflow-bundle/eve-service-route-output.js";function createApplicationRouteRegistry(e,t={}){let n=e.compileResult.manifest.channelRoutes,r=n.effective.map(e=>({cors:e.cors,method:e.method,route:e.urlPath})),i=[...n.effective.map(e=>({cors:e.cors,kind:`channel`,method:e.method,path:e.urlPath})),...n.preflight.map(e=>({cors:e.cors,kind:`channel-preflight`,method:`OPTIONS`,path:e.urlPath}))],a=[...i];return t.development===!0&&a.push({kind:`development-artifacts`,method:`GET`,path:EVE_DEV_RUNTIME_ARTIFACTS_ROUTE_PATH},{kind:`development-schedule`,method:`POST`,path:EVE_DEV_DISPATCH_SCHEDULE_ROUTE_PATTERN}),a.push({kind:`workflow`,method:`ALL`,path:EVE_WORKFLOW_FLOW_ROUTE_PATH}),{channelRegistrations:r,channelRoutes:i,routes:a}}function computeApplicationChannelRouteRegistrations(e){return createApplicationRouteRegistry(e).channelRegistrations}export{computeApplicationChannelRouteRegistrations,createApplicationRouteRegistry};