Add napcat-database and DatabaseApi support
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.
This commit is contained in:
1 parent
b42b6c3cf0
commit
b9dcedacf5
20 files changed
+775
-39
No files matched your search
Generated
+21
@@ -101,6 +101,9 @@ importers:
|
||||
napcat-common:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-common
|
||||
napcat-database:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-database
|
||||
napcat-image-size:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-image-size
|
||||
@@ -118,6 +121,12 @@ importers:
|
||||
specifier: ^22.0.1
|
||||
version: 22.19.1
|
||||
|
||||
packages/napcat-database:
|
||||
devDependencies:
|
||||
'@types/node':
|
||||
specifier: ^22.0.1
|
||||
version: 22.19.1
|
||||
|
||||
packages/napcat-develop:
|
||||
dependencies:
|
||||
fs-extra:
|
||||
@@ -148,6 +157,12 @@ importers:
|
||||
napcat-core:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-core
|
||||
napcat-database:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-database
|
||||
napcat-protobuf:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-protobuf
|
||||
napcat-qrcode:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-qrcode
|
||||
@@ -347,6 +362,12 @@ importers:
|
||||
napcat-core:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-core
|
||||
napcat-database:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-database
|
||||
napcat-protobuf:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-protobuf
|
||||
napcat-qrcode:
|
||||
specifier: workspace:*
|
||||
version: link:../napcat-qrcode
|
||||
|
||||
Reference in new issue
Block a user