Commit Graph
58 Commits
Author SHA1 Message Date
手瓜一十雪 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
时瑾 ed8e67b21d fix: 转发消息接口返回值兼容gocq (#1066) 2025-06-09 10:02:27 +08:00
手瓜一十雪 d46f129b74 feat: 隔离context传递 避免高并发干扰一个实例 2025-05-18 19:21:14 +08:00
手瓜一十雪andsourcery-ai[bot] f4b5439140 fix: typo
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-05-08 18:04:40 +08:00
手瓜一十雪 238814c594 fix 2025-05-08 17:58:12 +08:00
手瓜一十雪 20b8b8226a feat: 消息context增强识别 2025-04-19 11:36:27 +08:00
手瓜一十雪 ef59181dcd Revert "fix: coerce"
This reverts commit 0f508a511c.
2025-04-19 10:53:29 +08:00
手瓜一十雪 0f508a511c fix: coerce 2025-04-17 22:17:35 +08:00
手瓜一十雪 70945cf2d8 style: 强类型大法 2025-02-02 23:22:21 +08:00
手瓜一十雪 76501bae34 style: lint 2025-02-02 20:17:28 +08:00
pk5ls20 2fc917a07e feat: attempt to enhance type inference 2024-12-14 05:56:49 +08:00
手瓜一十雪 cd6dbd69cc refactor: logger bind (#577) 2024-11-28 20:55:28 +08:00
手瓜一十雪 4dfc72a355 refactor: 项目结构 2024-11-21 11:52:50 +08:00
手瓜一十雪 3254f3fea0 rename: 使用@搜寻 2024-11-21 11:16:25 +08:00
手瓜一十雪 fa6a8816f8 refactor: Action 2024-11-19 12:49:51 +08:00
pk5ls20 fb7a9de679 feat: error stack 2024-11-17 04:43:29 +08:00
手瓜一十雪 e1e903a3e9 fix: type 2024-11-14 13:19:50 +08:00
手瓜一十雪 7fb40f48ab fix: error 2024-11-14 13:10:52 +08:00
手瓜一十雪 5632488d15 fix 2024-11-14 12:48:19 +08:00
手瓜一十雪 c9bb8de442 fix: 代码精简 2024-11-14 12:02:24 +08:00
pk5ls20 7fd94a03b7 refactor: packet x1 2024-11-12 04:02:19 +08:00
pk5ls20 d0dedc1e6e refactor: kill any (#475)
* refactor: kill any stage 1

* refactor: kill any stage 2

* refactor: kill any stage 3
2024-10-30 09:10:30 +08:00
pk5ls20 44684c0841 chore: rename msg to message in packet module 2024-10-28 07:59:24 +08:00
pk5ls20 2307b069f4 fix: compatibility bigint 2024-10-27 10:50:48 +08:00
手瓜一十雪 acfe5ce4b8 style: lint 2024-10-27 10:02:42 +08:00
pk5ls20 e780b02c9e feat: enhance compatibility of upload_forward_msg with go-cqhttp 2024-10-27 09:59:38 +08:00
pk5ls20 0e2d042458 feat: better fake forwardMsg logic & display 2024-10-27 09:33:20 +08:00
pk5ls20 2f3db79460 feat: support node id in fake forward (with auto download richMedia in reference message) 2024-10-27 06:50:59 +08:00
pk5ls20 8d21f896c3 feat: support node id in fake forward (broken impl) 2024-10-27 05:19:53 +08:00
pk5ls20 5d71162279 feat: support for customizing the timestamp of fake forwardMsg 2024-10-26 04:06:42 +08:00
pk5ls20 470ba56fa4 feat: better recursive parsing with depth limits 2024-10-25 22:10:24 +08:00
Clansty b3d3a38364 feat: 嵌套合并转发消息 2024-10-25 19:37:04 +08:00
pk5ls20 0825452f87 feat: allow pass string user_id in handleForwardedNodesPacket 2024-10-25 09:17:16 +08:00
Clansty b65a5327b9 feat: 自定义合并转发外显信息 2024-10-25 02:42:50 +08:00
手瓜一十雪 fbc407e4f4 style: lint 2024-10-21 10:17:31 +08:00
pk5ls20 3404e81033 feat & refactor: decouple the forwardMsg construction logic and implement the OB11 element conversion for the forward node. 2024-10-21 04:05:02 +08:00
pk5ls20 8edab4f20d feat: Implement complete transform & Build & Upload FakeForwardMsg 2024-10-19 22:13:31 +08:00
手瓜一十雪 c5a4613444 fix #431 2024-10-14 21:56:51 +08:00
手瓜一十雪 2ba1ef56e3 feat: bind 2024-09-22 16:59:45 +08:00
手瓜一十雪 5353c464e3 build: fix2 2024-09-11 23:40:05 +08:00
手瓜一十雪 e9ed8bbad8 Revert "update: normalize log"
This reverts commit 48755fbd34.
2024-09-04 18:05:01 +08:00
Seijo Cecilia 48755fbd34 update: normalize log 2024-09-04 15:47:14 +08:00
手瓜一十雪 eef07168a6 build: test 2024-09-03 14:09:17 +08:00
Wesley F. Young 3afd4f29ff refactor: inline all NTQQXxxApi uses 2024-08-31 16:00:03 +08:00
Wesley F. Young 451c18481a refactor: rename createMsg -> createUniqueMsgId to prevent ambiguity 2024-08-28 19:03:19 +08:00
Seijo Cecilia b5dd839996 refactor: remove helper directory in onebot 2024-08-28 15:09:17 +08:00
手瓜一十雪 1fa6323e28 feat: 提高效率 2024-08-28 13:04:05 +08:00
手瓜一十雪 1bdb3cae13 fix: handleQuickOperation 2024-08-27 22:47:30 +08:00
Wesley F. Young e3f6881af9 refactor: move all utility files to /common 2024-08-27 10:18:31 +08:00
Seijo Cecilia 7671174a96 chore: reformat code style 2024-08-26 14:58:04 +08:00