Move shared type contracts from `contracts` to new `api-contracts` module in `compute/core` for clearer API boundaries. Remove legacy `contracts`, `pdf`, and `whisper` index files. Update all imports to use `api-contracts`. Refactor server job logic by replacing `parsePdfJob.ts` with modular `user-pdf-layout-job.ts` and `user-whisper-align-job.ts`, updating all relevant API routes and compute integration. This improves maintainability and separation of concerns across compute and server layers.
20 lines
509 B
JSON
20 lines
509 B
JSON
{
|
|
"name": "@openreader/compute-core",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@huggingface/tokenizers": "^0.1.3",
|
|
"@napi-rs/canvas": "^0.1.100",
|
|
"ffmpeg-static": "^5.3.0",
|
|
"jszip": "^3.10.1",
|
|
"onnxruntime-node": "^1.26.0",
|
|
"pdfjs-dist": "4.8.69"
|
|
},
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./local-runtime": "./src/local-runtime.ts",
|
|
"./api-contracts": "./src/api-contracts/index.ts",
|
|
"./types": "./src/types/index.ts"
|
|
}
|
|
}
|