{"version":3,"sources":["../src/api/server-client-bridge.ts"],"sourcesContent":["/** Browser-safe bridge: neither handlers nor Node.js imports cross this boundary. */\nexport interface APIRequestRuntime {\n  basePath: string;\n  dispatch(request: Request): Promise<Response>;\n}\n\nconst API_RUNTIME_RESOLVER = Symbol.for(\"farm.apiRequestRuntimeResolver\");\ntype RuntimeGlobal = typeof globalThis & {\n  [API_RUNTIME_RESOLVER]?: () => APIRequestRuntime | undefined;\n};\n\nexport function setAPIRequestRuntimeResolver(resolver: () => APIRequestRuntime | undefined): void {\n  (globalThis as RuntimeGlobal)[API_RUNTIME_RESOLVER] = resolver;\n}\n\nexport function resolveAPIRequestRuntime(): APIRequestRuntime | undefined {\n  return (globalThis as RuntimeGlobal)[API_RUNTIME_RESOLVER]?.();\n}\n"],"mappings":";;;;;AAMA,IAAM,uBAAuB,uBAAO,IAAI,gCAAgC;AAKjE,SAAS,6BAA6B,UAAqD;AAChG,EAAC,WAA6B,oBAAoB,IAAI;AACxD;AAFgB;AAIT,SAAS,2BAA0D;AACxE,SAAQ,WAA6B,oBAAoB,IAAI;AAC/D;AAFgB;","names":[]}