CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
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"; |
| 988380a | 6 | import { ensureDemoContent } from "./lib/demo-seed"; |
| fc1817a | 7 | |
| 8 | // Ensure repos directory exists | |
| 9 | await mkdir(config.gitReposPath, { recursive: true }); | |
| 10 | ||
| eafe8c6 | 11 | // Start the Actions-equivalent workflow worker (Block C1). Polls |
| 12 | // workflow_runs for queued rows and executes them sequentially. | |
| 13 | startWorker(); | |
| 14 | ||
| 2b821b7 | 15 | // Autopilot: periodic mirror sync, merge-queue progress, weekly digests, |
| 16 | // advisory rescans. No-op when AUTOPILOT_DISABLED=1. | |
| 17 | startAutopilot(); | |
| 18 | ||
| 988380a | 19 | // Opt-in demo content seed on boot (DEMO_SEED_ON_BOOT=1). Idempotent, never |
| 20 | // throws — safe to run on every start. | |
| 21 | if (process.env.DEMO_SEED_ON_BOOT === "1") { | |
| 22 | void ensureDemoContent().catch(() => {}); | |
| 23 | } | |
| 24 | ||
| fc1817a | 25 | console.log(` |
| 26 | gluecron v0.1.0 | |
| 27 | ────────────────────── | |
| 28 | http://localhost:${config.port} | |
| 29 | repos: ${config.gitReposPath} | |
| 30 | `); | |
| 31 | ||
| 32 | export default { | |
| 33 | port: config.port, | |
| 34 | fetch: app.fetch, | |
| 35 | }; |