Commit Graph
431 Commits
Author SHA1 Message Date
手瓜一十雪 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
手瓜一十雪 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
手瓜一十雪 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
手瓜一十雪 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
手瓜一十雪 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
手瓜一十雪 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
手瓜一十雪 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
时瑾 a949413bb9 fix: 修正部分接口的参数、返回值,提高兼容性 (#1072)
* fix: 修正`get_group_system_msg` `get_group_honor_info`接口返回值 提升兼容性

* fix: `create_group_file_folder` 接口兼容性提升
2025-06-11 12:37:29 +08:00
手瓜一十雪 493bf58a53 fix: #1031 2025-05-25 16:18:50 +08:00
手瓜一十雪 3b65724af8 feat: #1031 2025-05-25 16:09:06 +08:00
手瓜一十雪 417a9c7cf4 feat: createGrayTip 2025-05-23 17:22:07 +08:00
手瓜一十雪 ab64672013 fix: image size 2025-05-12 19:18:33 +08:00
手瓜一十雪 238814c594 fix 2025-05-08 17:58:12 +08:00
手瓜一十雪 d704d8b7d0 fix: 增强 2025-05-07 22:26:25 +08:00
手瓜一十雪 1ef85d74ac fix 2025-05-07 22:03:00 +08:00
手瓜一十雪andCopilot 0d9426e291 fix
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 20:51:50 +08:00
手瓜一十雪andCopilot a1e5d879b9 fix
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 20:50:51 +08:00
手瓜一十雪 b568516929 fix 2025-05-07 18:10:58 +08:00
手瓜一十雪 567aae6cee feat: fileUrl Get 2025-05-07 18:10:49 +08:00
手瓜一十雪 d7d31c3c7c fix 2025-04-26 19:10:00 +08:00
手瓜一十雪 e6907aee6d feat: doubt friends支持 2025-04-23 16:46:09 +08:00
手瓜一十雪 8370020702 fix 2025-04-23 16:12:56 +08:00
手瓜一十雪 f315ab15e6 fix 2025-04-19 11:03:03 +08:00
手瓜一十雪 8a116d2d7b 迁移类型校验到zod 2025-04-13 20:05:11 +08:00
手瓜一十雪 d4b6066f77 feat: rkey标准化&rkey server增强&简化rkey端部署 2025-04-10 18:54:18 +08:00
手瓜一十雪 29656a6cfa feat: 更新类型 fetchUserDetailInfo 2025-04-08 10:12:18 +08:00
Clansty 747116c52d feat: 群文件转存永久 2025-04-08 04:40:34 +08:00
手瓜一十雪 34b3f92f74 feat: GroupMemberTitle 2025-04-02 21:30:25 +08:00
手瓜一十雪 bb4586a36b fix: 清理文件 2025-04-02 12:04:05 +08:00
手瓜一十雪 a68e9f86c0 fix: file clean 2025-04-02 11:58:56 +08:00
手瓜一十雪 8e0ebe11e6 fix: #918 2025-04-02 11:51:51 +08:00
手瓜一十雪 ae80ccd477 feat: 好友等级 2025-03-27 12:35:05 +08:00
手瓜一十雪 c39483a11a fix: 修复一些数据问题 2025-03-27 12:15:53 +08:00
手瓜一十雪 ec5f22fac2 Revert "fix: image size"
This reverts commit 803c75de26.
2025-03-19 11:58:19 +08:00
手瓜一十雪 40ec5871f1 Revert "fix: moduleResolution"
This reverts commit c0f2d87a2d.
2025-03-19 11:58:16 +08:00
手瓜一十雪 c0f2d87a2d fix: moduleResolution 2025-03-19 11:54:29 +08:00
手瓜一十雪 803c75de26 fix: image size 2025-03-19 11:09:57 +08:00
手瓜一十雪 5aa740af91 fix: #873 2025-03-14 18:12:58 +08:00
手瓜一十雪 f9cf149ea9 fix: #875 2025-03-14 18:07:03 +08:00
手瓜一十雪 94c509ff82 feat:rkey 2025-03-03 12:28:55 +08:00
手瓜一十雪 2b67c5132e feat: searchMsgWithKeywords 2025-03-02 16:07:27 +08:00
手瓜一十雪 e5b8de881f feat: sisi的妙妙rkey 2025-02-23 17:30:01 +08:00
手瓜一十雪 f243007b03 fix: #824 2025-02-23 16:57:55 +08:00
手瓜一十雪 aacc876fdd fix: #793 2025-02-14 17:15:19 +08:00
pk5ls20 8f294843d8 fix: native rkey 2025-02-07 19:20:35 +08:00
pk5ls20 b758a06ceb fix: #721 2025-02-05 08:07:58 +08:00