refactor: restructure db logic and add import alias using tsc-alias

Note: the legacy githubTokensDb migration is not included in this commit.
It's used only in `agents.js` and will be removed in a future commit. We
will directly use credentials repository instead of github tokens repository.
This commit is contained in:
Haileyesus
2026-03-13 17:00:26 +03:00
parent e67738c9fc
commit 695da128f3
21 changed files with 1144 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
import { pathToFileURL } from 'url';
import { getRuntimePaths } from './config/runtime.js';
import type { ServerApplication } from './shared/types/app.js';
import { logger } from './shared/utils/logger.js';
import { getRuntimePaths } from '@/config/runtime.js';
import type { ServerApplication } from '@/shared/types/app.js';
import { logger } from '@/shared/utils/logger.js';
export function createServerApplication(): ServerApplication {
const runtimePaths = getRuntimePaths();