Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesPull RequestsActionsSecurityInsightsSettings
✨ AI
More
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.

index.tsBlame28 lines · 1 contributor
fc1817aClaude1import { mkdir } from "fs/promises";
2import app from "./app";
3import { config } from "./lib/config";
eafe8c6Claude4import { startWorker } from "./lib/workflow-runner";
2b821b7Claude5import { startAutopilot } from "./lib/autopilot";
fc1817aClaude6
7// Ensure repos directory exists
8await mkdir(config.gitReposPath, { recursive: true });
9
eafe8c6Claude10// Start the Actions-equivalent workflow worker (Block C1). Polls
11// workflow_runs for queued rows and executes them sequentially.
12startWorker();
13
2b821b7Claude14// Autopilot: periodic mirror sync, merge-queue progress, weekly digests,
15// advisory rescans. No-op when AUTOPILOT_DISABLED=1.
16startAutopilot();
17
fc1817aClaude18console.log(`
19 gluecron v0.1.0
20 ──────────────────────
21 http://localhost:${config.port}
22 repos: ${config.gitReposPath}
23`);
24
25export default {
26 port: config.port,
27 fetch: app.fetch,
28};