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 { Deposits, WideTimeline, Widened } from "./ledger.ts"; |
| 5 | import { hosted, ledgerWorker } from "./worker.ts"; |
| 6 | |
| 7 | /** The timeline reads the journal too, without a version bump: its backfill read only accounts. */ |
| 8 | export default class DomainCatchUpWorker extends Cloudflare.Worker<DomainCatchUpWorker>()( |
| 9 | "DomainCatchUpWorker", |
| 10 | { main: import.meta.url }, |
| 11 | ledgerWorker("v2-wide", Deposits, WideTimeline).pipe( |
| 12 | Effect.provide(hosted(Widened.layer(Layer.empty))), |
| 13 | ), |
| 14 | ) {} |