Commit Graph
171 Commits
Author SHA1 Message Date
手瓜一十雪 05f3820bc4 feat: raw包能力增强完成 2025-10-30 10:58:02 +08:00
手瓜一十雪 52289c605a refactor: 重构目录删除旧支持 2025-10-30 10:08:32 +08:00
手瓜一十雪 b851828b45 Remove baseClient.ts from packet client module
Deleted the src/core/packet/client/baseClient.ts file, which contained the PacketClient class and related interfaces. This may be part of a refactor or cleanup to remove unused or redundant code.
2025-10-30 09:11:58 +08:00
手瓜一十雪 f028178216 refactor: 大幅度调整send 2025-10-29 21:42:19 +08:00
手瓜一十雪 052a87b00d fix: 简化代码 2025-10-29 21:37:55 +08:00
手瓜一十雪 7bc631f35f Remove baseClient and simplify packet client selection
Deleted baseClient.ts and moved its logic into nativeClient.ts, making NativePacketClient a standalone class. Refactored PacketClientContext to always use NativePacketClient, removing support for multiple packet backends and related selection logic. Updated binary for napi2native.win32.x64.node.
2025-10-29 21:24:28 +08:00
手瓜一十雪 6841ab1123 feat: new napcat-4.9.0-beta 2025-10-29 20:35:58 +08:00
手瓜一十雪 38409f116f Add native module loading and improve logging
Loaded a native module in NTQQGroupApi and added test calls to sendSsoCmdReqByContend with different parameter types. Changed fileLog default to true in config. Enhanced NativePacketClient with detailed send/receive logging. Updated NodeIKernelMsgService to accept unknown type for sendSsoCmdReqByContend param. Added process PID logging in napcat shell.
2025-10-26 20:05:21 +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
手瓜一十雪 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
手瓜一十雪 3032dbcbef feat: #1179 2025-08-24 15:50:08 +08:00
手瓜一十雪 5797774123 feat: 初步验证win 36580 2025-06-26 18:30:06 +08:00
手瓜一十雪 3d6cf7be08 feat: 更优美的代码 2025-05-18 20:55:11 +08:00
手瓜一十雪 1c3b5060c9 fix 2025-05-18 20:42:03 +08:00
手瓜一十雪 03e82f863a fix 2025-05-18 20:24:49 +08:00
手瓜一十雪 b99e60a258 fix 2025-05-18 20:16:55 +08:00
手瓜一十雪 86d01c77b4 fix: #1018 2025-05-18 20:15:38 +08:00
手瓜一十雪 d704d8b7d0 fix: 增强 2025-05-07 22:26:25 +08:00
手瓜一十雪andCopilot 457a041c57 fix
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 20:51:12 +08:00
手瓜一十雪 567aae6cee feat: fileUrl Get 2025-05-07 18:10:49 +08:00
pk5ls20 af85545d1d fix: fxxking fake forward element
- close #972, #977, #666
2025-04-30 20:31:03 +08:00
Clansty ee1ad556e4 feat: 重命名群文件 2025-04-08 05:14:53 +08:00
Clansty 1bfd8ef2dc feat: 移动群文件 2025-04-08 02:48:48 +08:00
手瓜一十雪 7f98027abd fix: typo 2025-04-03 14:44:59 +08:00
手瓜一十雪 94cf3546be feat: 移除ws 2025-03-21 20:54:59 +08:00
手瓜一十雪 a37012d836 feat: 移除部分淘汰代码 2025-03-21 20:47:38 +08:00
pk5ls20 d5865444e8 fix: #843
- maybe a temporary solution
2025-03-16 20:07:47 +08:00
手瓜一十雪 da6136e3d7 feat: o3拦截 2025-03-03 17:16:36 +08:00
手瓜一十雪 94e98c00fd fix: ts warning 2025-02-23 17:28:30 +08:00
手瓜一十雪 07d687daba feat: get_private_file_url 2025-02-18 16:51:51 +08:00
pk5ls20 db2e86cc3c chore: format 2025-02-09 01:35:37 +08:00
pk5ls20 f86e25d0ae feat: #768 2025-02-09 01:33:56 +08:00
pk5ls20 feb31d6924 fix: fake forwardMsg construct 2025-02-06 01:09:23 +08:00
手瓜一十雪 3b08d526bb Merge pull request #765 from NapNeko/fix/multi-forward-protocol-fetch
fix: #721
2025-02-05 19:08:08 +08:00
pk5ls20 834be1a7c4 try fix: #755 2025-02-05 08:29:37 +08:00
pk5ls20 b758a06ceb fix: #721 2025-02-05 08:07:58 +08:00
手瓜一十雪 70945cf2d8 style: 强类型大法 2025-02-02 23:22:21 +08:00
手瓜一十雪 76501bae34 style: lint 2025-02-02 20:17:28 +08:00
Clansty e38467b7b8 force resultId to string 2025-01-21 22:10:52 +08:00
Clansty 141ea410f3 为新的接龙表情提供 resultId 和 chainCount 返回 2025-01-21 22:02:35 +08:00
pk5ls20 b14d3dd884 feat: packet ocr 2025-01-12 10:13:12 +08:00
pk5ls20 cae0d9949e refactor: packet 2025-01-11 16:23:02 +08:00
pk5ls20 e94bb5796e feat: #702 2025-01-10 15:23:40 +08:00
pk5ls20 5c7fc05061 fix: #677 2024-12-31 21:34:45 +08:00
手瓜一十雪 817e130432 feat: send_packet 2024-12-26 20:36:53 +08:00
手瓜一十雪 e7a1cf574b fix: #637 2024-12-20 18:55:30 +08:00
pk5ls20 9c55bdac87 feat & fix: GetMiniAppArk 2024-12-14 06:56:23 +08:00
pk5ls20 ea82f556e4 fix: #607 2024-12-08 22:23:01 +08:00
手瓜一十雪 6ad32def7a fix: #605 2024-12-06 10:39:49 +08:00