Commit Graph

7992 Commits

Author SHA1 Message Date
Him188
f527aa9b40 Update docs for commands 2022-06-17 15:00:20 +01:00
Him188
90bc48177a Allow overriding CommandArgumentContext in JCompositeCommand and JSimpleCommand 2022-06-17 15:00:20 +01:00
Him188
eeb361358a Add CommandContext and support retrieving original message chain from command, close #1835 2022-06-17 15:00:20 +01:00
Karlatemp
586c61bbab
Fix navbar of new page ConsoleTerminal 2022-06-15 18:24:40 +08:00
Him188
3e8a8dda50
Update UserManual for command arguments, close #1952 2022-06-15 11:12:25 +01:00
Him188
371673678e
Update hints for builtin ValueArgumentParsers 2022-06-15 11:10:12 +01:00
Karlatemp
90fe69b6f2
Update docs 2022-06-15 12:50:13 +08:00
Him188
2dcff0cf45
Reduce unnecessary logs from packetLogger 2022-06-14 11:22:04 +01:00
Him188
a4e7fda416
Raise deprecation level for 2.12 2022-06-14 11:19:44 +01:00
Him188
9df7c4bda4
Update RunNoticeRecorder 2022-06-14 10:49:48 +01:00
Him188
f97feb32c4
Add docs for mirai-console Logging and update UserManual 2022-06-14 10:38:54 +01:00
Him188
98e05f3bf4
Improve comments in LoggerConfig 2022-06-14 10:24:38 +01:00
Him188
091c86b007
Fix RunTerminal configuration 2022-06-14 10:23:21 +01:00
Hugo
7bf2994706
fix broken link to MCL CLI usage doc (#2095) 2022-06-14 09:00:50 +01:00
Him188
70c8255b6b
相反于加载顺序卸载插件, close #1994 2022-06-13 19:48:09 +01:00
Eritque arcus
4408750847
mark plugin disabled when it throw exception during enable process (#2022)
* Fix bootstrap when no env specified

* add PluginWithExceptionTest

* Add exceptedExceptionMessage in MCIT(Throwable or Exception may not work?)

* Using red color show disabled plugins in /status command

* Catch exception during enable process

* Count plugins without disabled plugins

* Revert "Fix bootstrap when no env specified"

This reverts commit ff9bb180fd6687c5da27b8a38da2658a1b26ad93.

* format

* format

* halt plugin enable process when mirai failed to enable it dependencies.

* Update mirai-console/backend/mirai-console/src/internal/plugin/PluginManagerImpl.kt hint

Co-authored-by: Him188 <Him188@mamoe.net>

* rename tmp to dependsOn

* Revert changes of PluginManagerImpl

* Plugin callback executions assertions

* Improve & Fix Logic

* Fix PluginDependOnErrorPlugin

* Update err msg

* move dependencies check from JvmPluginInternal.kt to BuiltInJvmPluginLoaderImpl.kt

* typo

* don't throw err caused by dependencies fail

Co-authored-by: Him188 <Him188@mamoe.net>
Co-authored-by: Karlatemp <kar@kasukusakura.com>
2022-06-13 19:45:39 +01:00
cssxsh
2d41a617fe
在 MultiFilePluginDataStorage.load 失败时,备份数据文件 (#2089)
* feat: load data failure, backup data file

* feat: load data failure, backup data file

* feat: currentTimeMillis
2022-06-13 19:45:22 +01:00
TheFatCat
342538e31b
修复在插件配置的saveName中使用子路径出现的异常 (#2088) 2022-06-13 19:45:11 +01:00
Him188
1a2241b8b2
Add Java-friendly EventChannel.exceptionHandler API, close #1953 2022-06-08 21:42:20 +01:00
Him188
bcaf9b5060
Fix warningSince for deprecation of GroupEntranceAnnouncementChangeEvent 2022-06-08 21:40:42 +01:00
Him188
67984bfbad
Deprecate GroupEntranceAnnouncementChangeEvent, as per #1873 2022-06-08 21:31:50 +01:00
Karlatemp
8de404a69a
Fix shadowing libraries that another used; fix #2070 2022-06-08 00:28:42 +08:00
Karlatemp
75fea25e38
Disable parallel when running testing 2022-06-07 10:40:13 +08:00
微莹·纤绫
d0c1848c94
Improve console shutdown (#2016)
* Try to improve console shutdown

* Resetting & Better java calling

* Dump crash report when timed out to shutdown

* Ensure `CoroutineScope.cancel()` working; rename to `shutdown`

* Signal handlers

* Force halt system to avoid some magic errors
2022-06-07 00:10:51 +08:00
微莹·纤绫
0b67a6783a
PluginCustomCommandSender (#1964)
* PluginCustomCommandSender

* Update doc & remove lazy

* Update CommandSender.kt
2022-06-07 00:10:28 +08:00
微莹·纤绫
b2c895bc2b
Support launch dev console in idea (#2058)
* Support launch dev console in idea

* Update idea project creator templates

* document update
2022-06-07 00:09:58 +08:00
水纹霖霖
d9c1da275b
fix protocol guideline & update docs (#2067)
* Update Bots.md

* Update AutoLoginConfig.kt
2022-06-06 16:57:27 +01:00
xtyuns
361f7f0cf1 doc(JVMPlugin.md): fix the wrong description 2022-06-06 16:42:40 +01:00
Him188
ca009fdd18
Bots.md: Add reference to solve slider catch 2022-05-31 10:26:52 +01:00
Him188
297592b9f2 Do not throw exception when failed to locate desensitization rules, for tests on CI 2022-05-25 22:39:53 +01:00
Him188
c4a2f19db6 Use empty internalIds for all OnlineMessageSourceToGroupImpl to speed up tests. 2022-05-25 22:39:53 +01:00
Him188
ab3280f6b7 Add more MessageProtocolTest:
Add fragmented test

Fix MusicShareProtocol and implement sending tests for MusicShareProtocolTest

OutgoingMessagePipelineImpl: set stopWhenConsumed

Fix `currentMessageChain` not updated in `processAlso`, add strong message packets checks, add tests for converting messages failed to send at FIRST step to LongMessageInternal

Add notes for receiving ForwardMessage

Add facade parameters to `download ForwardMessage*`

Add ForwardMessageProtocolTest

Add QuoteReplyProtocolTest

Add CONTAINING_MSG for MessageDecoderContext.attributes, for information-use only

Fix MessageReceiptTest

Fix QuoteReplyProtocolTest
2022-05-25 22:39:53 +01:00
Him188
38465972ba Add more details in QuoteReply.toString 2022-05-25 22:39:53 +01:00
Him188
c75d1f7074 Add MessageSource.isOriginalMessageInitialized 2022-05-25 22:39:53 +01:00
Him188
7687749030 Add more details in MessageSource.toString 2022-05-25 22:39:53 +01:00
Him188
3e38f359ba Add ForwardMessage.BuilderNode.toString 2022-05-25 22:39:53 +01:00
Him188
c8fb354d13 Add LongMessageProtocolTest and various improvements:
Change attributes carrying helper objects to components

Make ClockHolder open

Use originalMessage for MessageReceipt
2022-05-25 22:39:53 +01:00
Him188
3b7eb40529 Add implementation notes for MessageSource.originalMessage 2022-05-25 22:39:53 +01:00
Him188
112ce644b4 Add preprocessAndSendOutgoingImpl for tests only 2022-05-25 22:39:53 +01:00
Him188
d5ef2aae64 Add MessageProtocolStrategy.sendPacket 2022-05-25 22:39:53 +01:00
Him188
c510a49adc Generalize ImagePatcher 2022-05-25 22:39:53 +01:00
Him188
52968b172f Rename buildChecks to buildCodingChecks 2022-05-25 22:39:53 +01:00
Him188
3270192715 Remove SendMessageHandler and introduce OutgoingMessagePipeline. 2022-05-25 22:39:53 +01:00
Him188
e6b094031c Re-categorize MessageProtocol packages 2022-05-25 22:39:53 +01:00
Him188
c1a7dd9843 Add some capability for delegation for TypeSafeMap 2022-05-25 22:39:53 +01:00
Him188
9d03260067 Add CustomMessageProtocolTest 2022-05-25 22:39:53 +01:00
Him188
4b79c197e7 Filter out customElem without MIRAI_CUSTOM_ELEM_TYPE 2022-05-25 22:39:53 +01:00
Him188
617b32aa14 Use constant value for MIRAI_CUSTOM_ELEM_TYPE 2022-05-25 22:39:53 +01:00
Him188
1407bcf251 Fix VipFace and add VipFaceProtocolTest 2022-05-25 22:39:53 +01:00
Him188
2dac3b5d92 Add FileMessage tests 2022-05-25 22:39:53 +01:00