The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 07:15 UTC
| 1 | import * as Cloudflare from "@alchemy.run/cloudflare"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as Layer from "effect/Layer"; |
| 4 | import { AfterTotal, BankTotal, benchWorker, hosted } from "./worker.ts"; |
| 5 | |
| 6 | /** The second deploy adds a bank-wide total: the deploy waits for its backfill. */ |
| 7 | export default class DomainBenchWorker extends Cloudflare.Worker<DomainBenchWorker>()( |
| 8 | "DomainBenchWorker", |
| 9 | { |
| 10 | main: import.meta.url, |
| 11 | // Protocol traces (`backfill …`) in the Worker logs. |
| 12 | ...(process.env.DOMAIN_BENCH_DEBUG ? { env: { DEBUG: "1" } } : {}), |
| 13 | }, |
| 14 | benchWorker("v2", { kind: "total", view: BankTotal }).pipe( |
| 15 | Effect.provide(hosted(AfterTotal.layer(Layer.empty))), |
| 16 | ), |
| 17 | ) {} |