Commit Graph

3407 Commits

Author SHA1 Message Date
手瓜一十雪
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
手瓜一十雪
61700c1128 Merge branch 'main' into pr/1303 2025-10-25 16:17:51 +08:00
Mlikiowa
8ad8896ed3 release: v4.8.124 2025-10-22 13:12:25 +00:00
手瓜一十雪
f7bdb4506b Add 40990 version entries to appid and offset configs
Added new entries for version 40990 for multiple platforms in appid.json and offset.json, including appid, qua, and send/recv offsets. This update supports the latest client versions.
2025-10-22 21:09:37 +08:00
Mlikiowa
8724830545 release: v4.8.123 2025-10-21 15:06:10 +00:00
时瑾
16f24378cc fix: go-cqhttp 上传接口返回 file_id (UploadGroupFile, UploadPrivateFile) 2025-10-21 22:49:45 +08:00
Mlikiowa
b31c080e2c release: v4.8.122 2025-10-16 13:28:29 +00:00
手瓜一十雪
8b092e7383 Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2025-10-16 21:13:54 +08:00
手瓜一十雪
83f7d1aeb2 fix: #1286 2025-10-16 21:13:50 +08:00
Mlikiowa
5a89a787b1 release: v4.8.121 2025-10-15 14:31:35 +00:00
手瓜一十雪
4cee132ff9 Add appid and offset entries for version 40824
Added new entries for versions 3.2.20-40824, 9.9.22-40824, and 6.9.82-40824 in appid.json and corresponding offset values for x64 and arm64 architectures in offset.json.
2025-10-15 22:31:08 +08:00
Mlikiowa
819d75e36a release: v4.8.120 2025-10-14 12:33:43 +00:00
手瓜一十雪
05bbecebbb feat: Update QQ version data and add macOS ARM64 native module
Updated qqnt.json, appid.json, and offset.json to support QQ version 9.9.22-40768 and related Linux/macOS versions. Modified calcQQLevel in helper.ts to remove penguinNum from calculation. Added MoeHoo.darwin.arm64.new.node for macOS ARM64 support and updated LiteLoaderWrapper.zip binary.
2025-10-14 20:32:41 +08:00
时瑾
2174561afb fix: #1315 2025-10-14 09:38:18 +08:00
时瑾
8320f263b9 feat: 取消群精华接口支持传递原始参数
- 1. onebot v11标准: 传递message_id
- 2. 通过官方http接口获取到的group_id、msg_random、msg_seq

二者任选其一
2025-10-12 21:13:56 +08:00
手瓜一十雪
62e605d22e Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2025-10-12 20:38:38 +08:00
风小七
fe797b1449 Update helper.ts (#1311)
修复256级以后等级清零的问题。
2025-10-12 20:36:31 +08:00
手瓜一十雪
222989f8f8 feat: Add image and record stream download actions
Introduces BaseDownloadStream as a shared base class for streaming file downloads. Adds DownloadFileImageStream and DownloadFileRecordStream for image and audio file streaming with support for format conversion. Refactors DownloadFileStream to use the new base class, and updates action registration and router to include the new actions.
2025-10-12 15:50:34 +08:00
Clansty
e430302bd5 fix: get_group_info ownerUin is "0" 2025-10-09 02:30:08 +08:00
Mlikiowa
8c91767392 release: v4.8.119 2025-10-03 04:36:00 +00:00
手瓜一十雪
be8759d361 Update key for 9.9.22-40362 offsets in offset.json
Changed the key from '9.9.22-40362' to '9.9.22-40362-x64' to clarify architecture specificity in the offsets mapping.
2025-10-03 12:35:28 +08:00
Mlikiowa
56d1ed8b7e release: v4.8.118 2025-10-03 04:34:56 +00:00
Mlikiowa
5a2ffe4cba release: v4.8.117 2025-10-03 04:21:22 +00:00
手瓜一十雪
1819f1b22c Add support for version 9.9.22-40362
Updated appid.json and offset.json to include entries for version 9.9.22-40362, specifying the new appid, qua, and offset values for send and recv.
2025-10-03 12:20:21 +08:00
手瓜一十雪
6cfe8ab88b fix: #1260 2025-09-29 16:39:37 +08:00
Mlikiowa
7f1bda1cb5 release: v4.8.116 2025-09-20 08:20:05 +00:00
手瓜一十雪
44cdd4dd16 Add file_retention parameter to upload test
Introduces the 'file_retention' field with a value of 30,000 to the upload test payload in OneBotUploadTester. This may be used to specify file retention duration in milliseconds.
2025-09-20 16:19:39 +08:00
手瓜一十雪
4b65d624ed Add file retention option to UploadFileStream
Introduces a 'file_retention' parameter to control how long uploaded files are retained before automatic deletion. If set, files are deleted after the specified duration; otherwise, they are not automatically removed. This helps manage temporary file storage and cleanup.
2025-09-20 16:13:25 +08:00
Mlikiowa
6a0e919511 release: v4.8.115 2025-09-20 07:57:47 +00:00
手瓜一十雪
a7deaf8530 Refactor event handling to use async/await across adapters
Updated all network adapters' onEvent methods to be asynchronous and return Promises, ensuring consistent async event emission and handling. Adjusted related methods and event emission logic to properly await asynchronous operations, improving reliability for streaming, plugin, HTTP, and WebSocket event flows. Also improved error handling and messaging in stream and WebSocket actions.
2025-09-20 15:55:37 +08:00
手瓜一十雪
b154c2257d Fix useStream variable scope in HTTP server adapter
Moved the declaration of useStream inside the action check to prevent referencing it when action is undefined.
2025-09-20 15:23:37 +08:00
手瓜一十雪
44f6c79a24 feat: 标准化 2025-09-20 15:20:43 +08:00
手瓜一十雪
1135089071 Add Readme for stream API actions
Introduces a Readme.txt file in the stream action directory, providing an overview and usage notes for stream-related API functions such as file upload, download, and cleanup.
2025-09-16 23:33:48 +08:00
Mlikiowa
276a1728c2 release: v4.8.114 2025-09-16 15:24:25 +00:00
手瓜一十雪
fe878687ee Add streaming file upload and download actions
Introduces new OneBot actions for streaming file upload and download, including chunked file transfer with memory/disk management and SHA256 verification. Adds CleanStreamTempFile, DownloadFileStream, UploadFileStream, and TestStreamDownload actions, updates action routing and network adapters to support streaming via HTTP and WebSocket, and provides Python test scripts for concurrent upload testing.
2025-09-16 23:24:00 +08:00
837951602
597763d09e 找不到类型时显式报错 (#1256) 2025-09-16 17:19:59 +08:00
Mlikiowa
f8c9b23134 release: v4.8.113 2025-09-13 05:51:02 +00:00
手瓜一十雪
19ae17d041 Update default host and token length in config
Changed the default host to '0.0.0.0' and increased the default token length from 8 to 12 characters in WebUiConfigSchema. Also removed unused getDefaultHost import and made minor formatting adjustments.
2025-09-13 13:49:18 +08:00
Mlikiowa
6455c24bbc release: v4.8.112 2025-09-12 14:15:08 +00:00
时瑾
4fbfae8d30 fix: 更新默认主机地址获取逻辑,支持Docker环境 2025-09-12 21:56:12 +08:00
Mlikiowa
e625d164be release: v4.8.111 2025-09-12 11:19:26 +00:00
时瑾
c28733f150 fix: 移除 defaultToken 字段,彻底移除硬编码的默认密码,采用全随机密码 2025-09-12 18:50:21 +08:00
时瑾
f069843c43 fix(dos): 修复红红的ci 2025-09-12 15:36:30 +08:00
Mlikiowa
959a175109 release: v4.8.110 2025-09-11 05:15:29 +00:00
时瑾
76e82279d4 refactor: 将默认密码相关逻辑重构为后端处理 (#1247)
* refactor: 将默认密码相关逻辑重构为后端处理

* refactor: 日志路由进行脱敏,生成随机密码使用node:crypto.randomBytes

* feat: 更新密码功能增强,添加新密码强度验证和旧密码检查

* feat: 给文件管理添加WebUI配置文件的脱敏处理和验证逻辑

* refactor: 优化网络显示卡片按钮样式和行为,调整按钮属性以提升用户体验

* feat: 增强路径处理逻辑,添加安全验证以防止路径遍历攻击

* feat: 增强文件路径处理逻辑,添加安全验证以防止路径遍历攻击,并优化查询参数提取

* feat: CodeQL不认可 受不了
2025-09-11 13:13:00 +08:00
Mlikiowa
17b75fe71e release: v4.8.109 2025-09-08 08:11:05 +00:00
手瓜一十雪
d28ba233ae fix: 多层解析 2025-09-08 16:05:10 +08:00
Mlikiowa
d09f318e2a release: v4.8.108 2025-09-07 05:57:27 +00:00
Mlikiowa
5c8ea3e276 release: v4.8.107 2025-09-07 05:48:15 +00:00