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 GCP from "@alchemy.run/gcp"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import { Files, FilesGCS } from "./Files.ts"; |
| 4 | |
| 5 | // #region show |
| 6 | export default GCP.Run.Job( |
| 7 | "Report", |
| 8 | Effect.gen(function* () { |
| 9 | return { main: import.meta.url }; |
| 10 | }), |
| 11 | Effect.gen(function* () { |
| 12 | const files = yield* Files; |
| 13 | return { |
| 14 | run: Effect.gen(function* () { |
| 15 | const report = `generated at ${new Date().toISOString()}`; |
| 16 | yield* files.upload("report.txt", report); |
| 17 | }), |
| 18 | }; |
| 19 | }).pipe(Effect.provide(FilesGCS)), |
| 20 | ); |
| 21 | // #endregion show |