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

index.tsBlame35 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";
988380aClaude6import { ensureDemoContent } from "./lib/demo-seed";
fc1817aClaude7
8// Ensure repos directory exists
9await mkdir(config.gitReposPath, { recursive: true });
10
eafe8c6Claude11// Start the Actions-equivalent workflow worker (Block C1). Polls
12// workflow_runs for queued rows and executes them sequentially.
13startWorker();
14
2b821b7Claude15// Autopilot: periodic mirror sync, merge-queue progress, weekly digests,
16// advisory rescans. No-op when AUTOPILOT_DISABLED=1.
17startAutopilot();
18
988380aClaude19// Opt-in demo content seed on boot (DEMO_SEED_ON_BOOT=1). Idempotent, never
20// throws — safe to run on every start.
21if (process.env.DEMO_SEED_ON_BOOT === "1") {
22 void ensureDemoContent().catch(() => {});
23}
24
fc1817aClaude25console.log(`
26 gluecron v0.1.0
27 ──────────────────────
28 http://localhost:${config.port}
29 repos: ${config.gitReposPath}
30`);
31
32export default {
33 port: config.port,
34 fetch: app.fetch,
35};