Commit Graph
100 Commits
Author SHA1 Message Date
手瓜一十雪 036e2a0cfd Declare config property in OB11PluginMangerAdapter
Adds an explicit declaration for the 'config' property in the OB11PluginMangerAdapter class to improve type safety and clarity.
2025-09-02 22:42:09 +08:00
Mlikiowa 9490c39a62 release: v4.8.105 2025-09-02 14:33:33 +00:00
手瓜一十雪 5892ddb6e5 Add quick_reply support to message parsing
Introduces the quick_reply boolean option to message history schema and message parsing logic. Updates relevant functions to handle quick_reply, allowing for conditional behavior during message reply and segment parsing.
2025-09-02 22:33:05 +08:00
手瓜一十雪 518a7c1906 Refactor packet client and update message history actions
Replaced LRUCache with Map for callback and event management in packet clients, and standardized callback hash usage. Updated GetFriendMsgHistory and GetGroupMsgHistory actions to use snake_case for payload keys. Modified OneBotMsgApi to support disabling URL retrieval for ptt elements via a new parameter.
2025-09-02 22:24:53 +08:00
手瓜一十雪 5b2ff5acd3 Add resource health management and enhance message parsing
Introduces a ResourceManager for health checking and retry logic in src/common/health.ts. Updates OneBot message parsing to support disabling URL fetching and multi-message parsing via new payload options. File, image, video, and ptt URL retrievals now use resource health management for improved reliability. Also refactors packet API to allow configurable timeout for FetchRkey.
#1220
2025-09-02 21:19:49 +08:00
手瓜一十雪 78bf20bc3b Add plugin manager and example plugin system
Introduces a plugin manager (OB11PluginMangerAdapter) for dynamic plugin loading, initialization, and event handling. Adds an example plugin with configuration files and updates related code to support plugin directory detection and loading. Refactors plugin adapter logic for extensibility and modularity.
2025-09-02 20:42:54 +08:00
Mlikiowa 95d92cb31f release: v4.8.104 2025-09-02 08:32:22 +00:00
手瓜一十雪 1af63cf651 Add appid and offset entries for new versions
Added appid and qua mappings for versions 3.2.19-39038 and 9.9.21-39038 in appid.json. Updated offset.json with send/recv offsets for these new versions and architectures (x64, arm64).
2025-09-02 16:31:24 +08:00
手瓜一十雪 557dac4838 Add timeout parameter to file and packet API methods
Introduces an optional timeout parameter (defaulting to 20000ms) to various file and packet API methods for improved control over request duration. Updates all relevant method calls and internal usages to support the new timeout argument, including OneBot message API calls with a shorter timeout for file, video, and ptt URL retrieval.
2025-09-02 09:54:42 +08:00
手瓜一十雪 d78db783bb Refactor video thumbnail generation logic
Moved video thumbnail generation to occur before custom thumbnail copying, ensuring fallback to default thumbnail only if video info retrieval fails. Also reordered rkeyManager URLs for consistency.
2025-09-02 09:35:56 +08:00
Mlikiowa 8a543fe354 release: v4.8.103 2025-08-31 13:32:47 +00:00
手瓜一十雪 519617eadc Add new appid and offset entries for version 38960
Updated appid.json and offset.json to include new entries for versions 3.2.19-38960 and 9.9.21-38960, supporting both x64 and arm64 architectures.
2025-08-31 21:32:15 +08:00
Mlikiowa cbf0de4e8b release: v4.8.102 2025-08-26 06:59:25 +00:00
手瓜一十雪 a99bb2f88b Add group album media actions and API integration
Introduces new OneBot actions for group album media: listing, commenting, liking, and deleting. Adds supporting API methods and data structures for album media operations in NTQQWebApi and NodeIKernelAlbumService. Updates action router and index to register new actions.
2025-08-26 14:58:11 +08:00
Mlikiowa bacb4c6c0d release: v4.8.101 2025-08-25 11:05:45 +00:00
手瓜一十雪 1c5f2f1cd2 fix 2025-08-25 19:05:13 +08:00
手瓜一十雪 7b385609d2 Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2025-08-25 19:04:31 +08:00
手瓜一十雪 56708da509 Add NTQQ album list API and update related logic
Introduces getAlbumListByNTQQ to NTQQWebApi for retrieving group album lists via NTQQ. Updates NodeIKernelAlbumService interface for typed getAlbumList parameters and response. Refactors GetQunAlbumList action to use the new NTQQ API and return the correct album list format. Also fixes cookie and bkn usage in album-related methods for consistency.
2025-08-25 19:04:22 +08:00
Mlikiowa 7f13ca51a4 release: v4.8.100 2025-08-25 07:51:18 +00:00
手瓜一十雪 637094d26f fix #1171 && Improve message recall handling and cleanup
Changed recallMsg to return the result of the event call. Added a 5-second cache cleanup for recall events in DeleteMsg. Removed an unnecessary blank line in plugin.ts.
2025-08-25 15:50:05 +08:00
手瓜一十雪 8cce82fc87 Remove redundant upload success log
Eliminated a logger statement that logged successful uploads in the NTQQWebApi class. This reduces unnecessary log output during chunked uploads.
2025-08-25 15:24:30 +08:00
手瓜一十雪 4c88a313bc Refactor Qun album image upload logic
Reworked the group album image upload process to use a new slice-based upload method, replacing the previous chunked upload implementation. Updated related interfaces and removed unused chunk upload code for improved maintainability and clarity.
2025-08-25 14:45:52 +08:00
手瓜一十雪 429b79b133 Simplify recall check for self-operated messages 2025-08-25 13:04:22 +08:00
手瓜一十雪 2b5f4cfea0 Add cookie header to getAlbumList API request
The getAlbumList method in NTQQWebApi now includes a 'Cookie' header with skey, pskey, and uin for authentication. Updated GetQunAlbumList action to use the correct return type from NTQQWebApi.getAlbumList.
2025-08-24 20:39:07 +08:00
手瓜一十雪 3ed5f4cd3c feat: Add group album upload utilities and refactor API && close #1116
Introduces src/core/data/webapi.ts with utilities for chunked group album uploads, including session creation and chunk management. Refactors NTQQWebApi in webapi.ts to use these utilities, adds getAlbumList and uploadImageToQunAlbum methods, and improves upload logic for efficiency and maintainability.
2025-08-24 20:12:35 +08:00
手瓜一十雪 568c20d9b0 feat: #1121 & Add cache cleaning for specific directories
Extended the CleanCache action to remove files from Pic, Ptt, Video, File, and log directories under the nt_data path. This improves cache management by ensuring these directories are also cleaned, with logging for successful and failed deletions. 增强缓存清理
2025-08-24 16:02:05 +08:00
手瓜一十雪 3032dbcbef feat: #1179 2025-08-24 15:50:08 +08:00
手瓜一十雪 53bfab25a4 chore: Update LiteLoaderWrapper.zip binary && close #1169
Replaces the existing LiteLoaderWrapper.zip file with a new version. Details of the changes within the binary are not shown in this commit.
2025-08-24 15:18:49 +08:00
手瓜一十雪 887a37753d fix: #1171 2025-08-24 14:53:58 +08:00
Mlikiowa 7e337a9165 release: v4.8.99 2025-08-24 06:02:30 +00:00
手瓜一十雪 9edd7d6796 feat: 38711 2025-08-24 14:02:03 +08:00
Mlikiowa 79d8985383 release: v4.8.98 2025-08-17 15:35:05 +00:00
手瓜一十雪 6166617a16 Fix typo in getFullQQVersion method call
Corrects the method name from getFullQQVesion to getFullQQVersion in the WebUiDataRuntime.setQQVersion call to ensure proper retrieval of QQ version information.
2025-08-17 23:34:41 +08:00
Mlikiowa f9e6453b4e release: v4.8.97 2025-08-17 14:59:12 +00:00
手瓜一十雪 50e8a1ee1f fix: error 2025-08-17 22:58:30 +08:00
Mlikiowa c3e5eeacaa release: v4.8.96 2025-08-15 11:17:15 +00:00
手瓜一十雪 7c0329c4f3 Update group.ts 2025-08-15 19:12:13 +08:00
手瓜一十雪 5b9b7e1c0a fix: #1191 2025-08-15 19:12:04 +08:00
手瓜一十雪 94d060d99c Add explicit type annotations to AST traversal paths
Updated the performance monitor Vite plugin to add explicit type annotations to AST traversal callback parameters, improving type safety and clarity. Also removed a duplicate import in src/plugin/index.ts.
2025-08-15 19:02:53 +08:00
手瓜一十雪 25ff49e683 Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2025-08-15 19:00:57 +08:00
手瓜一十雪 c436cc91b9 Add appid and offset entries for new versions
Added appid and qua for versions 9.9.21-38503 and 3.2.19-38503 in appid.json. Added send and recv offsets for 9.9.21-38503 in offset.json to support new application versions.
2025-08-15 18:57:43 +08:00
手瓜一十雪 11308d9e01 Pr enhance (#1176)
* fix

* Refactor PacketApi status checks and fix typos

Replaced all usages of PacketApi.available with PacketApi.packetStatus for more accurate status checking. Fixed a typo in getFullQQVesion to getFullQQVersion. Updated plugin_onmessage to fetch and parse messages for a user. These changes improve reliability and consistency in API status handling.

* Fix typo in getFullQQVersion method name

Corrected the method name from getFullQQVesion to getFullQQVersion in multiple locations to ensure consistency and prevent potential runtime errors.

* Remove performance CLI and demo, fix typos, update proto

Deleted the performance CLI and demo files. Fixed a typo in getFullQQVesion to getFullQQVersion across multiple files. Changed the 'time' field type from UINT32 to UINT64 in Oidb.0x9067_202 proto. Commented out performanceMonitorPlugin in vite.config.ts. Removed an unimplemented log statement in NodeIKernelBuddyListener.

* Comment out default plugin adapter registration

The default registration of OB11PluginAdapter in NapCatOneBot11Adapter was commented out, likely to prevent automatic plugin loading or to allow for more flexible plugin management. Also, removed an unnecessary blank line in the plugin_onmessage function.

* fix

* Add shell-analysis mode with performance monitoring

Introduces a new .env.shell-analysis file and a dev:shell-analysis npm script for building in shell-analysis mode. Updates vite.config.ts to support the new mode, enabling the performance monitor plugin with an updated exclude list. Also extends the plugin's exclude patterns to filter out 'packet' files.

* Delete performance-api.ts

* Add commented export for performance-monitor

Added a commented-out export statement for '@/common/performance-monitor' in napcat.ts, possibly for future use or reference. No functional changes to the file.
2025-08-06 20:37:45 +08:00
手瓜一十雪 d0a1ea82bb Remove performance CLI and demo, fix typos, update proto
Deleted the performance CLI and demo files. Fixed a typo in getFullQQVesion to getFullQQVersion across multiple files. Changed the 'time' field type from UINT32 to UINT64 in Oidb.0x9067_202 proto. Commented out performanceMonitorPlugin in vite.config.ts. Removed an unimplemented log statement in NodeIKernelBuddyListener.
2025-08-06 19:57:36 +08:00
手瓜一十雪 958a6b58bc Fix typo in getFullQQVersion method name
Corrected the method name from getFullQQVesion to getFullQQVersion in multiple locations to ensure consistency and prevent potential runtime errors.
2025-08-06 19:32:14 +08:00
手瓜一十雪 d498513bda Refactor PacketApi status checks and fix typos
Replaced all usages of PacketApi.available with PacketApi.packetStatus for more accurate status checking. Fixed a typo in getFullQQVesion to getFullQQVersion. Updated plugin_onmessage to fetch and parse messages for a user. These changes improve reliability and consistency in API status handling.
2025-08-06 19:31:24 +08:00
手瓜一十雪 7f08d62b5b fix 2025-08-06 18:43:44 +08:00
Mlikiowa beb189bd49 release: v4.8.95 2025-07-26 12:19:32 +00:00
手瓜一十雪 f1db0be1ce Add new appid and offset entries for version 37625
Updated appid.json and offset.json to include new entries for versions 9.9.20-37625 and 3.2.18-37625, supporting both x64 and arm64 architectures.
2025-07-26 20:19:04 +08:00
Mlikiowa c5477929c2 release: v4.8.94 2025-07-21 11:49:43 +00:00
手瓜一十雪 82763cac49 feat: 添加新的appid和offset配置以支持版本9.9.20-37475和3.2.18-37475 2025-07-21 19:48:59 +08:00
手瓜一十雪 0450c708b5 fix 2025-07-11 19:28:01 +08:00
Mlikiowa b048ccba36 release: v4.8.93 2025-07-09 11:21:08 +00:00
手瓜一十雪 8771d53521 Add support for 3.2.18-37051 and 9.9.20-37051 versions
Updated appid.json and offset.json to include new entries for versions 3.2.18-37051 and 9.9.20-37051, including their respective app IDs, QUA values, and offset mappings for x64 and arm64 architectures.
2025-07-09 19:06:47 +08:00
Mlikiowa bec33923e1 release: v4.8.92 2025-07-07 12:47:57 +00:00
Mlikiowa 9a2ba76d83 release: v4.8.91 2025-07-07 12:41:15 +00:00
手瓜一十雪 cbc3628cc7 feat: 37012 2025-07-07 20:40:36 +08:00
Mlikiowa c53a8e9be9 release: v4.8.90 2025-06-29 02:01:31 +00:00
手瓜一十雪 f0ab3075e4 feat: Add new Linux native modules for arm64 and x64
Added MoeHoo.linux.arm64.new.node and MoeHoo.linux.x64.new.node binaries to support native packet functionality on both ARM64 and x64 Linux platforms.
2025-06-29 09:58:32 +08:00
Mlikiowa 439ea3cf1f release: v4.7.85 2025-06-26 10:35:59 +00:00
手瓜一十雪 40c577c6aa fix: package 2025-06-26 18:35:12 +08:00
Mlikiowa 41b38eb84e release: v4.7.81 2025-06-26 10:32:56 +00:00
手瓜一十雪 24312ea68d feat: package 2025-06-26 18:32:31 +08:00
Mlikiowa 4527a6d285 release: v4.7.80 2025-06-26 10:30:32 +00:00
手瓜一十雪 5797774123 feat: 初步验证win 36580 2025-06-26 18:30:06 +08:00
手瓜一十雪 119e4a310e feat: 36580 2025-06-26 17:06:37 +08:00
手瓜一十雪 c833274f1e fix: type 2025-06-13 16:58:05 +08:00
Mlikiowa 81c1ad5a2f release: v4.7.78 2025-06-12 04:30:05 +00:00
手瓜一十雪 a600e6593b fix: 35951 2025-06-12 12:29:14 +08:00
Mlikiowa 54bf0dd615 release: v4.7.77 2025-06-10 06:28:20 +00:00
手瓜一十雪 5048a21cb1 fix: #1051 2025-06-10 14:27:50 +08:00
手瓜一十雪 4d38cd1225 feat: 35951 2025-06-10 13:19:19 +08:00
手瓜一十雪 2235d831ff fix: #1049 2025-06-10 13:05:36 +08:00
手瓜一十雪 718cfbfb2e fix: #1058 2025-06-10 12:54:29 +08:00
手瓜一十雪 51c663494d Merge pull request #1054 from NapNeko/dependabot/npm_and_yarn/file-type-21.0.0
build(deps-dev): bump file-type from 20.5.0 to 21.0.0
2025-06-06 11:53:31 +08:00
手瓜一十雪anddependabot[bot] 3bd29d1412 build(deps-dev): bump esbuild from 0.25.4 to 0.25.5 (#1056)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.25.4 to 0.25.5.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.4...v0.25.5)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.25.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 11:53:06 +08:00
Mlikiowa 73ac836cd2 release: v4.7.76 2025-05-29 13:58:02 +00:00
手瓜一十雪 ea1b915ac7 fix: #1048 2025-05-29 21:15:07 +08:00
手瓜一十雪 650251bb84 fix: 支持registerCallback 2025-05-29 20:45:35 +08:00
手瓜一十雪 17bb15ed5c feat: nativeLoader功能预备 2025-05-29 14:39:09 +08:00
Mlikiowa 09bab80533 release: v4.7.75 2025-05-26 12:19:44 +00:00
手瓜一十雪 aa6344a2b2 fix: #1043 2025-05-26 19:58:50 +08:00
手瓜一十雪 fb5263abf6 Merge pull request #1041 from Neboer/main
允许使用环境变量指定napcat工作路径。
2025-05-26 14:41:01 +08:00
Mlikiowa b0d00fbb9e release: v4.7.74 2025-05-26 05:57:44 +00:00
手瓜一十雪 22e3840f8b Revert "fix: #1038"
This reverts commit 8fbb15bb5e.
2025-05-26 13:56:48 +08:00
手瓜一十雪 8c9e42bd7f Revert "fix: #1039"
This reverts commit 593aa90102.
2025-05-26 13:56:14 +08:00
Mlikiowa 4428b5a147 release: v4.7.73 2025-05-26 03:52:01 +00:00
手瓜一十雪 0900910f5a Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2025-05-26 11:51:35 +08:00
手瓜一十雪 539e39a0a5 fix: remove debug 2025-05-26 11:51:25 +08:00
Mlikiowa 37e3db18dd release: v4.7.72 2025-05-26 03:51:12 +00:00
手瓜一十雪 a404247aa9 fix: #1040 2025-05-26 11:50:45 +08:00
手瓜一十雪 593aa90102 fix: #1039 2025-05-26 10:58:01 +08:00
Mlikiowa 86e17f7399 release: v4.7.70 2025-05-25 08:56:20 +00:00
手瓜一十雪 8fbb15bb5e fix: #1038 2025-05-25 16:55:32 +08:00
手瓜一十雪 6047a5aaaa fix 2025-05-25 16:30:15 +08:00
手瓜一十雪 493bf58a53 fix: #1031 2025-05-25 16:18:50 +08:00
手瓜一十雪 3b65724af8 feat: #1031 2025-05-25 16:09:06 +08:00
手瓜一十雪 90be1f636c feat: kill-update 2025-05-24 10:33:14 +08:00
手瓜一十雪 417a9c7cf4 feat: createGrayTip 2025-05-23 17:22:07 +08:00
Mlikiowa fe3101372e release: v4.7.68 2025-05-22 03:48:00 +00:00
手瓜一十雪 e1f3a393d5 fix: #1029 2025-05-22 11:47:31 +08:00