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,4 +1,8 @@
import type { ApiErrorShape, ApiMeta, ApiSuccessShape } from '../types/http.js';
import type {
ApiErrorShape,
ApiMeta,
ApiSuccessShape,
} from '@/shared/types/http.js';
export function createApiMeta(requestId?: string, startedAt?: string): ApiMeta {
return {