Blame · Line-by-line history
index.ts
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| fc1817a | 1 | import { mkdir } from "fs/promises"; |
| 2 | import app from "./app"; | |
| 3 | import { config } from "./lib/config"; | |
| eafe8c6 | 4 | import { startWorker } from "./lib/workflow-runner"; |
| 2b821b7 | 5 | import { startAutopilot } from "./lib/autopilot"; |
| fc1817a | 6 | |
| 7 | // Ensure repos directory exists | |
| 8 | await mkdir(config.gitReposPath, { recursive: true }); | |
| 9 | ||
| eafe8c6 | 10 | // Start the Actions-equivalent workflow worker (Block C1). Polls |
| 11 | // workflow_runs for queued rows and executes them sequentially. | |
| 12 | startWorker(); | |
| 13 | ||
| 2b821b7 | 14 | // Autopilot: periodic mirror sync, merge-queue progress, weekly digests, |
| 15 | // advisory rescans. No-op when AUTOPILOT_DISABLED=1. | |
| 16 | startAutopilot(); | |
| 17 | ||
| fc1817a | 18 | console.log(` |
| 19 | gluecron v0.1.0 | |
| 20 | ────────────────────── | |
| 21 | http://localhost:${config.port} | |
| 22 | repos: ${config.gitReposPath} | |
| 23 | `); | |
| 24 | ||
| 25 | export default { | |
| 26 | port: config.port, | |
| 27 | fetch: app.fetch, | |
| 28 | }; |