import { getAgentByName, routeAgentRequest } from "agents"; import { TestWorkspaceAgent } from "./agents/workspace"; export { TestWorkspaceAgent }; export interface Env { TestWorkspaceAgent: DurableObjectNamespace; LOADER: unknown; } export default { async fetch(request: Request, env: Env): Promise { return ( (await routeAgentRequest(request, env)) ?? new Response("Not found", { status: 404 }) ); } }; export { getAgentByName };