mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 02:45:39 -04:00
- Create 18 new query modules under `packages/db/src/queries/` covering every domain (availability, cache, colors, credits, cron, discovery, image-cache, imports, integrations, lists, metadata, person, settings, system-health, thumbhash, title, tracking, webhooks) - Remove all direct `db` client imports and raw Drizzle expressions from `@sofa/core` services and `apps/server` procedures/cron; replace with named query functions - Extract cron DB helpers (`startCronRun`, `completeCronRun`, `failCronRun`, `getLibraryTitleIds`, `getStaleLibraryTitles`, etc.) into `packages/core/src/cron.ts` - Extract integration DB helpers into `packages/core/src/integrations.ts` - Add `drizzle-orm` as a direct dependency of `@sofa/db` and remove it from `@sofa/core` - Update `AGENTS.md` to document the strict layered architecture rule
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"name": "@sofa/core",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
"./availability": "./src/availability.ts",
|
|
"./backup": "./src/backup.ts",
|
|
"./cache": "./src/cache.ts",
|
|
"./colors": "./src/colors.ts",
|
|
"./credits": "./src/credits.ts",
|
|
"./cron": "./src/cron.ts",
|
|
"./discovery": "./src/discovery.ts",
|
|
"./image-cache": "./src/image-cache.ts",
|
|
"./imports": "./src/imports/index.ts",
|
|
"./imports/parsers": "./src/imports/parsers.ts",
|
|
"./integrations": "./src/integrations.ts",
|
|
"./lists": "./src/lists.ts",
|
|
"./metadata": "./src/metadata.ts",
|
|
"./person": "./src/person.ts",
|
|
"./providers": "./src/providers.ts",
|
|
"./settings": "./src/settings.ts",
|
|
"./system-health": "./src/system-health.ts",
|
|
"./telemetry": "./src/telemetry.ts",
|
|
"./thumbhash": "./src/thumbhash.ts",
|
|
"./tracking": "./src/tracking.ts",
|
|
"./update-check": "./src/update-check.ts",
|
|
"./webhooks": "./src/webhooks.ts"
|
|
},
|
|
"scripts": {
|
|
"lint": "oxlint",
|
|
"format": "oxfmt --config ../../.oxfmtrc.json",
|
|
"format:check": "oxfmt --check --config ../../.oxfmtrc.json",
|
|
"check-types": "tsc --noEmit",
|
|
"test": "bun test"
|
|
},
|
|
"dependencies": {
|
|
"@sofa/api": "workspace:*",
|
|
"@sofa/config": "workspace:*",
|
|
"@sofa/db": "workspace:*",
|
|
"@sofa/logger": "workspace:*",
|
|
"@sofa/tmdb": "workspace:*",
|
|
"adm-zip": "0.5.16",
|
|
"node-vibrant": "4.0.4",
|
|
"sharp": "0.34.5",
|
|
"thumbhash": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@types/adm-zip": "0.5.8",
|
|
"@types/bun": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|