- 添加采集器类型定义 (collector.ts) - 实现采集器基类 (base.collector.ts) - 实现 API 采集器 (api.collector.ts) - 实现 Playwright 网页采集器 (playwright.collector.ts) - 实现 RSS 采集器 (rss.collector.ts) - 创建采集器工厂 (collector.factory.ts) - 实现采集服务 (collector.service.ts) - 安装 rss-parser 依赖 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
897 B
JSON
39 lines
897 B
JSON
{
|
|
"name": "backend",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "tsx watch src/app.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/app.js",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:migrate": "prisma migrate dev",
|
|
"prisma:studio": "prisma studio"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"type": "commonjs",
|
|
"dependencies": {
|
|
"@fastify/cors": "^11.2.0",
|
|
"@fastify/static": "^9.0.0",
|
|
"@prisma/client": "^5.22.0",
|
|
"dotenv": "^17.2.3",
|
|
"fastify": "^5.7.4",
|
|
"node-cron": "^4.2.1",
|
|
"openai": "^6.17.0",
|
|
"playwright": "^1.58.1",
|
|
"prisma": "^5.22.0",
|
|
"rss-parser": "^3.13.0",
|
|
"winston": "^3.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.2.0",
|
|
"@types/node-cron": "^3.0.11",
|
|
"nodemon": "^3.1.11",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|