Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
merge main into feature branch
perf3ct893be24c1de0
diff --cc .github/workflows/playwright.ymlindex 3ad04a23a6,3749f1efd9..9e267ad45d--- a/.github/workflows/playwright.yml+++ b/.github/workflows/playwright.yml@@@ -33,10 -33,9 +33,10 @@@ jobs- name: Install dependenciesrun: pnpm install --frozen-lockfile- - run: pnpx playwright install --with-deps+ - run: pnpm exec playwright install --with-deps- uses: nrwl/nx-set-shas@v4-+ - name: Install playwright+ run: pnpm exec playwright install# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud# - run: npx nx-cloud record -- echo Hello World# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affecteddiff --cc apps/server/src/migrations/migrations.tsindex a7ca34cb2b,2757b4c25a..2566649922--- a/apps/server/src/migrations/migrations.ts+++ b/apps/server/src/migrations/migrations.ts@@@ -6,18 -6,11 +6,23 @@@// Migrations should be kept in descending order, so the latest migration is first.const MIGRATIONS: (SqlMigration | JsMigration)[] = [+ // Add OCR text column to blobs table for storing extracted text from images+ {- version: 233,++ version: 234,+ sql: /*sql*/`\+ -- Add OCR text column to blobs table+ ALTER TABLE blobs ADD COLUMN ocr_text TEXT DEFAULT NULL;++ -- Create index for OCR text searches+ CREATE INDEX IF NOT EXISTS idx_blobs_ocr_text+ ON blobs (ocr_text);+ `+ },+ // Migrate geo map to collection+ {+ version: 233,+ module: async () => import("./0233__migrate_geo_map_to_collection.js")+ },// Remove embedding tables since LLM embedding functionality has been removed{version: 232,diff --cc apps/server/src/routes/routes.tsindex 237608df5e,f1aeb92097..65241b123b--- a/apps/server/src/routes/routes.ts+++ b/apps/server/src/routes/routes.ts@@@ -58,7 -58,7 +58,8 @@@ import ollamaRoute from "./api/ollama.jimport openaiRoute from "./api/openai.js";import anthropicRoute from "./api/anthropic.js";import llmRoute from "./api/llm.js";+import ocrRoute from "./api/ocr.js";+ import systemInfoRoute from "./api/system_info.js";import etapiAuthRoutes from "../etapi/auth.js";import etapiAppInfoRoutes from "../etapi/app_info.js";@@@ -384,15 -385,6 +386,15 @@@ function register(app: express.ApplicatasyncApiRoute(GET, "/api/llm/providers/openai/models", openaiRoute.listModels);asyncApiRoute(GET, "/api/llm/providers/anthropic/models", anthropicRoute.listModels);+ // OCR API+ asyncApiRoute(PST, "/api/ocr/process-note/:noteId", ocrRoute.processNoteOCR);+ asyncApiRoute(PST, "/api/ocr/process-attachment/:attachmentId", ocrRoute.processAttachmentOCR);+ asyncApiRoute(GET, "/api/ocr/search", ocrRoute.searchOCR);+ asyncApiRoute(PST, "/api/ocr/batch-process", ocrRoute.batchProcessOCR);+ asyncApiRoute(GET, "/api/ocr/batch-progress", ocrRoute.getBatchProgress);+ asyncApiRoute(GET, "/api/ocr/stats", ocrRoute.getOCRStats);- asyncApiRoute(DEL, "/api/ocr/delete/:entityType/:entityId", ocrRoute.deleteOCRResults);++ asyncApiRoute(DEL, "/api/ocr/delete/:blobId", ocrRoute.deleteOCRResults);+// API DocumentationapiDocsRoute(app);diff --cc apps/server/src/services/app_info.tsindex 3a0c3fb535,0def562536..47b2b72e6b--- a/apps/server/src/services/app_info.ts+++ b/apps/server/src/services/app_info.ts@@@ -3,8 -3,8 +3,8 @@@ import build from "./build.js"import packageJson from "../../package.json" with { type: "json" };import dataDir from "./data_dir.js";--const APP_DB_VERSION = 233;-const SYNC_VERSION = 36;++const APP_DB_VERSION = 234;+const SYNC_VERSION = 37;const CLIPPER_PROTOCOL_VERSION = "1.0";export default {