feat: 去core耦合onebot

Moved file element creation methods (for file, picture, video, and ptt) from napcat-core/apis/file.ts to a new OneBotFileApi class in napcat-onebot/api/file.ts. Updated package.json dependencies to remove unused packages and fix workspace references. This improves separation of concerns and modularity between core and onebot-specific logic.
This commit is contained in:
手瓜一十雪
2025-11-15 11:17:57 +08:00
parent aa982b3071
commit 8df54d5cd3
3 changed files with 183 additions and 174 deletions

View File

@@ -14,14 +14,11 @@
},
"dependencies": {
"@protobuf-ts/runtime": "^2.11.1",
"napcat-protobuf": "workspace:*",
"ajv": "^8.13.0",
"@sinclair/typebox": "^0.34.38",
"file-type": "^21.0.0",
"napcat-image-size": "workspace:*",
"napcat-core": "workspace:*",
"napcat-common": "workspace:*",
"napcat-onebot": "workspace:*"
"napcat-protobuf": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.0.1"