Introduce a new napcat-database package that implements SQLCipher/NTQQ DB handling (constants, key derivation, page decryption, file-level decrypt, and a reader that can list tables using node:sqlite). Add NTQQDatabaseApi to napcat-core (APIs export, NapCatCore field & container) to expose high-level helpers (isSqliteAvailable, readDatabase, scanDatabases, decryptDatabase, formatResults). Add protobuf definitions for OidbSvcTrpcTcp.0xcde_2 and hook packet handlers in framework and shell to capture the DB passphrase and set core.dbPassphrase. Update package.json files and vite configs to include napcat-database/napcat-protobuf and allow node:sqlite, and update pnpm-lock accordingly.
37 lines
823 B
JSON
37 lines
823 B
JSON
{
|
|
"name": "napcat-shell",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "index.ts",
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"build:dev": "vite build --mode development",
|
|
"typecheck": "tsc --noEmit --skipLibCheck -p tsconfig.json"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": "./index.ts"
|
|
},
|
|
"./*": {
|
|
"import": "./*"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"napcat-core": "workspace:*",
|
|
"napcat-common": "workspace:*",
|
|
"napcat-adapter": "workspace:*",
|
|
"napcat-webui-backend": "workspace:*",
|
|
"napcat-qrcode": "workspace:*",
|
|
"napcat-protobuf": "workspace:*",
|
|
"napcat-database": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"json5": "^2.2.3",
|
|
"@types/node": "^22.0.1",
|
|
"napcat-vite": "workspace:*"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |