Bootstrap layering
env.tsloads and types all configuration (host/port, database path, migrations/static overrides).- Server builds the SQLite client and registers it with the core DB provider via
setDbProvider(). start.tsruns migrations, registers the core DB provider, then starts the Bun server.app.tswires routes/services using the injected config/events/services, without reading env directly.entry/dev.tsandentry/prod.tscompose the pieces (env → db → core → app → entrypoint).
title: Server overview
Version endpoint
/api/v1/versionexposes the running server version plus the latest available release.- The running version is resolved from
KANBANAI_VERSIONor the nearestpackage.jsonnamedkanban-ai. - Latest release metadata is fetched from GitHub Releases (
KANBANAI_UPDATE_REPO,KANBANAI_UPDATE_TOKEN) with a short in-memory cache; failures return the current version withupdateAvailable: falseso the UI stays quiet when offline.