fix(stats): restore worker runtime

This commit is contained in:
Adam
2026-06-21 06:16:02 -05:00
parent 418a9e4e66
commit c0dc6e50a7
5 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import { AppConfig } from "@opencode-ai/stats-core/config"
import { runtime } from "@opencode-ai/stats-core/runtime"
import { Effect } from "effect"
export async function GET() {
const { statsRuntime } = await import("../../stats-runtime")
return Response.json(
await runtime.runPromise(
await statsRuntime.runPromise(
Effect.gen(function* () {
const config = yield* AppConfig
return {