fix: resolve multi-page PDF crashes and Gemini API ingestion errors (#2781)

* fix: resolve multi-page PDF crashes and Gemini API ingestion errors

* fix type errors

* refactor: address PR review feedback and prevent call stack recursion in regex payload scanner

---------

Co-authored-by: Ofir <ofir@example.com>
Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
This commit is contained in:
obitton
2026-03-16 18:08:40 -04:00
committed by GitHub
parent ea8fd838d9
commit fb61bb4a63
8 changed files with 818 additions and 278 deletions
+11 -7
View File
@@ -62,12 +62,12 @@
"@tanstack/react-router-ssr-query": "^1.166.2",
"@tanstack/react-start": "^1.166.2",
"@tanstack/zod-adapter": "^1.166.2",
"@tiptap/extension-highlight": "^3.20.0",
"@tiptap/extension-table": "^3.20.0",
"@tiptap/extension-text-align": "^3.20.0",
"@tiptap/pm": "^3.20.0",
"@tiptap/react": "^3.20.0",
"@tiptap/starter-kit": "^3.20.0",
"@tiptap/extension-highlight": "^3.20.1",
"@tiptap/extension-table": "^3.20.1",
"@tiptap/extension-text-align": "^3.20.1",
"@tiptap/pm": "^3.20.1",
"@tiptap/react": "^3.20.1",
"@tiptap/starter-kit": "^3.20.1",
"ai": "^6.0.116",
"ai-sdk-ollama": "^3.8.0",
"bcrypt": "^6.0.0",
@@ -85,9 +85,12 @@
"immer": "^11.1.4",
"input-otp": "^1.4.2",
"js-cookie": "^3.0.5",
"jsonrepair": "^3.13.2",
"mammoth": "^1.11.0",
"monaco-editor": "^0.55.1",
"motion": "^12.35.0",
"nodemailer": "^8.0.1",
"pdf-parse": "^2.4.5",
"pg": "^8.20.0",
"puppeteer-core": "^24.38.0",
"qrcode.react": "^4.2.0",
@@ -156,7 +159,8 @@
"onlyBuiltDependencies": [
"bcrypt",
"esbuild",
"sharp"
"sharp",
"pdf-parse"
]
}
}