fix(stats): run worker effects directly

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