Commit Graph
100 Commits
Author SHA1 Message Date
Mlikiowa b5dec0b583 release: v4.9.4 2025-10-30 13:40:21 +00:00
手瓜一十雪 647f0fc03d Replace console.error with console.log in error handler
Changed error logging in FFmpegAddonAdapter from console.error to console.log when addon loading fails.
2025-10-30 21:39:17 +08:00
手瓜一十雪 2a67453e3a Add mappings for 3.2.20 versions in napi2native.json
Added send and recv address mappings for 3.2.20-x64 and 3.2.20-arm64 builds to support additional versions in napi2native.json.
2025-10-30 12:35:15 +08:00
手瓜一十雪 7ac7488d54 Refactor addon path resolution and rename Windows addon
Simplifies the logic for resolving the ffmpeg addon path by dynamically constructing the filename from process.platform and process.arch. Also renames the Windows x64 addon file to ffmpegAddon.win32.x64.node for consistency.
2025-10-30 11:29:54 +08:00
手瓜一十雪 e88f49e140 feat: 9.9.22-40824 & 9.9.22-40768 2025-10-30 11:07:51 +08:00
手瓜一十雪 58d03805ef feat: packet能力增强 2025-10-30 11:05:19 +08:00
手瓜一十雪 8b584e8f70 refactor: 规范化 2025-10-30 11:01:45 +08:00
手瓜一十雪 05f3820bc4 feat: raw包能力增强完成 2025-10-30 10:58:02 +08:00
手瓜一十雪 52289c605a refactor: 重构目录删除旧支持 2025-10-30 10:08:32 +08:00
手瓜一十雪 dfc70dce63 Remove 'bmp24' argument from getVideoInfo call
Updated the extractThumbnail method to call addon.getVideoInfo without the 'bmp24' argument, aligning with the updated addon API.
2025-10-30 09:23:25 +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
手瓜一十雪 c40c398c7f feat: ffmpeg enhance for native node addon 2025-10-30 09:06:48 +08:00
手瓜一十雪 f028178216 refactor: 大幅度调整send 2025-10-29 21:42:19 +08:00
手瓜一十雪 052a87b00d fix: 简化代码 2025-10-29 21:37:55 +08:00
手瓜一十雪 378dc335bb fix: getQQBuildStr 2025-10-29 21:35:00 +08:00
手瓜一十雪 142db9ac74 Remove debug log for process PID in napcat.ts
Eliminated an unnecessary console.log statement that printed the process PID. This cleans up the output and removes leftover debugging code.
2025-10-29 21:25:24 +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
手瓜一十雪 0c359abf0b feat: Add FFmpeg native addon and TypeScript definitions
Introduced FFmpeg Node.js native addon binaries for multiple platforms (darwin-arm64, linux-arm64, linux-x64, win-x64) and added TypeScript type definitions for the addon interface, including video info extraction, duration detection, audio conversion, and PCM decoding.
2025-10-29 21:14:16 +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
手瓜一十雪 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
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
手瓜一十雪 62e605d22e Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2025-10-12 20:38:38 +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
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
手瓜一十雪 96f11358ad Fix batch variable quoting and case consistency
Updated batch scripts to use proper variable quoting and consistent casing for 'QQPath'. This improves reliability when handling paths with spaces and ensures environment variable names are used consistently.
2025-10-03 12:34:29 +08: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
手瓜一十雪 fb491216db Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2025-10-03 12:20:15 +08:00
手瓜一十雪 6cfe8ab88b fix: #1260 2025-09-29 16:39:37 +08:00
手瓜一十雪 3155c2fd10 Update README with new features in v4.8.115+
Added a section describing new features in version v4.8.115+, including Stream API support and recommendations to use string types for message_id, user_id, and group_id. Also explained the benefits of these changes for Docker, cross-device, large file transfers, and better compatibility with languages lacking large integer support.
2025-09-21 13:29:35 +08:00
手瓜一十雪 a513ba89cc Update DeepWiki badge formatting in README
Reformatted the DeepWiki badge section in the README to match the table style used for other community links.
2025-09-20 16:45:27 +08:00
手瓜一十雪 c8e9c3938c Add DeepWiki badge to README
Added a DeepWiki badge with a link to the project's DeepWiki page for increased visibility and resource access.
2025-09-20 16:44:57 +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
MliKiowa e6c7b21ad3 Fix link for QQ Group#2 in README
Updated the link for QQ Group#2 in the README.
2025-09-13 17:23:21 +08:00
MliKiowa 8c194076d1 Fix QQ Group links in README.md 2025-09-13 17:22:53 +08:00
MliKiowa 563ff3e125 Revise README for clarity and additional resources
Updated README with links to documentation and community guidelines.
2025-09-13 17:20:07 +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
Mlikiowa e625d164be release: v4.8.111 2025-09-12 11:19:26 +00:00
Mlikiowa 959a175109 release: v4.8.110 2025-09-11 05:15:29 +00:00
手瓜一十雪 07b10089db upate: package 2025-09-08 16:16:38 +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
手瓜一十雪 5f72ca05fe Add qq-chat-exporter to recommended tools
Included qq-chat-exporter, a NapCat-based message export tool, in the list of recommended related projects in the README.
2025-09-07 15:20:17 +08:00
Mlikiowa d09f318e2a release: v4.8.108 2025-09-07 05:57:27 +00:00
手瓜一十雪 512cf2bed7 Update Telegram link in About page
Changed the Telegram href in the About page from MelodicMoonlight to napcatqq to reflect the correct contact or channel.
2025-09-07 13:54:44 +08:00
Mlikiowa 5c8ea3e276 release: v4.8.107 2025-09-07 05:48:15 +00:00
手瓜一十雪 80bfae13df Update Telegram link in README
Changed the Telegram badge and link from MelodicMoonlight to napcatqq for accuracy.
2025-09-07 13:47:23 +08:00
手瓜一十雪 d0c2cb4af6 Log WebUI panel URL on server start
Adds logging of the WebUI user panel URL with localhost address when the server starts. Also adjusts QQ login callback invocation in OneBot adapter for improved login flow.
2025-09-07 13:29:37 +08:00
手瓜一十雪 ff33fb9efb Add WebUI token update and callback handling
Introduces callback mechanisms for WebUI token changes and QQ login status updates. The WebUI token is now updated and communicated via a callback after login, and related runtime and type definitions are extended to support these features. Also sets a static default token value in the config schema.
2025-09-06 18:15:35 +08:00
手瓜一十雪 78cd5eab19 Comment out documentation links in README
The section containing links to documentation and Telegram has been commented out in the README.md. This may be for temporary removal or future revision.
2025-09-06 13:13:14 +08:00
Mlikiowa a4207d297c release: v4.8.106 2025-09-06 03:53:33 +00:00
手瓜一十雪 700cd02b1a feat: 支持禁用webui 速率配置 禁用外网访问 禁用webui 2025-09-06 11:53:04 +08:00
手瓜一十雪 f0a607f724 feat: 进一步提高密码安全性 2025-09-06 11:42:12 +08:00
手瓜一十雪 16817807b8 feat: 禁止默认密码 2025-09-06 11:41:06 +08:00
手瓜一十雪 a3c7fd17c5 feat: 安全性提升 2025-09-06 11:32:09 +08:00
手瓜一十雪 53a83b9b60 feat: 安全性提升 2025-09-06 11:23:09 +08:00
手瓜一十雪 a0ef738bcf feat: 安全性提升 2025-09-06 10:49:29 +08:00
手瓜一十雪 2daebf1afe Add README for example plugin
Introduces installation instructions for the example plugin, detailing how to place the build output in the appropriate plugins directory.
2025-09-02 22:54:44 +08:00
手瓜一十雪 75b616568a Update import paths and remove plugin tsconfig
Changed import paths in example-plugin to use alias '@' instead of relative paths. Deleted the example-plugin/tsconfig.json file, likely consolidating TypeScript configuration or relying on a root config.
2025-09-02 22:48:01 +08:00
手瓜一十雪 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