Karlatemp
d648e56867
[console] Add
https://repo1.maven.org/maven2/ to default servers
2022-10-29 22:57:03 +08:00
Him188
440122d4f9
[console] Enable atomicfu compiler
2022-10-29 13:14:35 +01:00
cssxsh
03fc3a3445
[console] Unwrap InvocationTargetException when executing commands ( #2258 )
2022-10-28 14:07:40 +01:00
cssxsh
5bf9fdf5b6
[console] feat: load SPI Service in jvm plugin ( #2247 )
...
* feat: load SPI Service in jvm plugin
* add: api dump
* fix: docs
2022-10-28 14:06:41 +01:00
cssxsh
1b5f45cd70
feat: more login info ( #2304 )
2022-10-26 18:46:43 +01:00
Karlatemp
48143d7b3c
[console] Process signals later if console not yet initialized; Ignore window resized signal
2022-10-23 12:55:25 +08:00
Him188
1f8524fb04
Fix all compiler warnings throughout the project
2022-10-21 17:00:37 +01:00
ヒューマンワーキング
8cb8a71f16
[intellij] 从 Maven Central 获取 kotlin jvm 版本 ( #2244 )
...
* get kotlin version from Gradle Plugins
* add `kotlinVersion` to project module
* add kotlin version cell to wizard initial step
* get dependency `kotlin-stlib-*` version from maven
* rename `KotlinJvmVersion` to `KotlinStdlibVersion`
* `KotlinJvmVersion.kt` -> `KotlinStdlibVersion.kt`
2022-09-23 22:02:43 +08:00
Karlatemp
bf362f9d75
[console] Add version bar before logo
2022-09-20 12:38:41 +08:00
Karlatemp
678fe6fd6b
[console] Print logo to help users distinguish between mirai-console and mirai-console-loader
2022-09-18 22:26:24 +08:00
Karlatemp
3949c9c08c
Fix terminal resolving; Fix terminal logic error
2022-09-06 18:21:41 +08:00
Karlatemp
500ad3cc9e
Fix console integration test
2022-09-06 18:21:40 +08:00
Karlatemp
d24a5912d3
Redesign terminal
2022-09-06 18:21:39 +08:00
Karlatemp
7952f0c15d
Update terminal dependencies
...
- org.jline:jline:3.21.0
- org.fusesource.jansi:jansi:2.4.0
2022-09-06 18:21:38 +08:00
Karlatemp
5ac74a336f
Create module mirai-console-frontend-base
2022-09-06 18:21:37 +08:00
Karlatemp
af2b38d476
Make MultiFilePluginDataStorageImpl.logger
lazy init
2022-09-06 18:21:36 +08:00
Karlatemp
a94c98d990
Add FrontendLoggingInitContext.invokeAfterInitialization
2022-09-06 18:21:25 +08:00
cssxsh
e00f592b84
[console] feat: login use auto login account configuration ( #2209 )
...
* feat: other account configuration
* add: test
2022-09-02 07:50:08 +08:00
Karlatemp
969c77f146
[console] Change convention of createLoggerFactory()
2022-08-28 22:52:48 +08:00
Him188
f0651c81c6
[core+console] Improve logging hierarchy: ( #2196 )
...
- always use factory API from mirai-core
- Terminal is still overriding standard outputs
- plugins are forbidden to override logging framework (this was allowed but not working before)
2022-08-27 18:46:16 +08:00
Him188
2d393ee0b0
[core+console] Raise deprecation level for 2.13: ( #2213 )
...
- warningSince 2.11 -> errorSince 2.13
- errorSince 2.12 -> hiddenSince 2.13
- some experimental APIs removed
2022-08-27 14:06:03 +08:00
Him188
c1213bb0ca
[docs] Fix typo, close #2207
2022-08-25 16:05:15 +08:00
Him188
de6bf17f0e
[docs] Fix typo, close #2207
2022-08-25 15:05:10 +08:00
Him188
3ae6c2802e
[console] Change Aliyun public repository to central respiratory. Fix #2184
2022-08-20 16:19:40 +08:00
微莹·纤绫
85d81efc4a
[console] Console artifacts downloading progress ( #2140 )
...
* Console artifacts downloading progress
* Add missing code
* Update kdoc & naming
* make `terminalDisplay` internal
* improve performance
* Update DownloadingProgress.kt
[skip ci]
* Rename DownloadingProgress to ProcessProgress
* make ProcessProgress stable
2022-08-20 15:58:03 +08:00
Him188
fa9fa2cb89
[docs] Fix minor typo. Fix #2119
2022-08-16 11:39:15 +08:00
cssxsh
9db5d2c4b5
Add client properties to MessageSyncEvents, add OtherClientCommandSenderOnMessageSync and MessageSyncEvent.toCommandSender
2022-08-03 11:27:39 +08:00
cssxsh
6bb2bf23aa
支持 vararg 和原生类型数组命令参数 ( #1760 )
...
* fix: vararg
* marge
* add: other array test
* api dump
2022-07-31 15:56:14 +08:00
Karlatemp
034e256f2f
update docs [skip ci]
2022-07-30 14:59:57 +08:00
Karlatemp
9a8b696132
[Console] Track plugin file path into error stack; iTXTech/mirai-console-loader#128
2022-07-25 01:47:24 +08:00
Karlatemp
42334c42c5
[Terminal] Force shutdown after double Ctrl+C
2022-07-22 19:30:38 +08:00
Him188
f5ff4be3a2
idea: Support 221-222. fix #2124
2022-07-20 18:51:25 +08:00
微莹·纤绫
f256926821
Fix CommandSender extensions ( #2105 )
2022-07-20 15:09:48 +08:00
Him188
fd67ba9204
Configure shadow relocation and add checks for multiplatform publishing
2022-07-20 00:30:16 +08:00
AdoptOSS
7325c1f7e2
native: 优化 build script 及 actions,修复 ECDH 相关资源释放问题 ( #2110 )
...
* build: fix build on Windows
* test: fix ContentEqualsTest on native
* build: allow disabling targets with property
* fix: free ECDH-related resources properly on native
avoid memory leaking (usually on *nix) or crash (usually on Windows)
Signed-off-by: AdoptOSS <adoptoss@outlook.com>
* build(workflow): remove invalid options
* fix(styling): `mirai.target` property
* build(workflow): try to limit memory usage during mirai-console:tools:gradle-plugin:integTest
* enhance(test): use buildList
* build(workflow): retry
Co-authored-by: ArcticLampyrid <arcticlampyrid@outlook.com>
2022-07-20 00:30:16 +08:00
Him188
f962618bee
Fix compiler warnings
2022-07-20 00:30:16 +08:00
Him188
21c4a5ba04
Use kotlinx-coroutines-test
2022-07-20 00:30:16 +08:00
Him188
7dbb1a5ad7
Add RunConfigurations
2022-07-20 00:30:16 +08:00
Him188
4c6b879873
Upgrade to Ktor 2.0.2, use CIO engine for linux targets; Remove ktor-client-okhttp from mirai-core-api jvmBaseMain
...
Use Input.readAllText instead of Input.readText, because readText only reads one buffer.
#2084
2022-07-20 00:30:16 +08:00
Him188
13dadd5a95
Implement mirai-core for native
2022-07-20 00:30:16 +08:00
Him188
7088835402
HMPP
2022-07-20 00:30:16 +08:00
Him188
ff2a8acb0c
Implement multiplatform modules
2022-07-20 00:30:16 +08:00
Him188
0571be1a55
Commonize projects: mirai-core series, and mirai-console-compiler-annotations
2022-07-20 00:30:16 +08:00
Him188
d96641dedb
Configure HMPP project structure
2022-07-20 00:30:16 +08:00
Karlatemp
1be39eeb0a
Hard linking jdk builtin modules; fix #2141 ; fix #2126
...
- Not allow override jdk modules
2022-07-08 13:08:34 +08:00
Him188
8ef909a306
优化指令文档细节
2022-07-01 00:12:18 +08:00
Karlatemp
1110a6f3fa
Fix private dependencies resolving; fix #2108
2022-06-22 17:43:09 +08:00
Karlatemp
f69fdb7ac1
improve console it project structs
2022-06-22 17:14:21 +08:00
Karlatemp
3c3657969f
skip publication setup for mirai-console-gradle
2022-06-22 17:02:23 +08:00
Karlatemp
f48940a897
Prefer SystemCommandSender; fix SystemCommandSender error message rendering
2022-06-18 23:49:54 +08:00
Him188
16bbfdd36a
Override vulnerable Log4J version in mirai-console-gradle
2022-06-18 13:02:38 +01:00
Him188
36159c39f4
Remove bintray in mirai-console-gradle
2022-06-18 13:02:38 +01:00
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
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
a4e7fda416
Raise deprecation level for 2.12
2022-06-14 11:19:44 +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
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
Karlatemp
8de404a69a
Fix shadowing libraries that another used; fix #2070
2022-06-08 00:28:42 +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
b40b681f81
Deprecate EmptyMessageChain
in favor of emptyMessageChain()
2022-05-25 22:39:53 +01:00
Him188
a9516b401b
Generalize chineseLength
to mirai-core-utils
2022-05-25 22:39:53 +01:00
Karlatemp
167a29e0d8
Fix build
2022-05-24 18:10:18 +08:00
Karlatemp
48c2b04a49
Fix plugin's dependencies classes linking; fix #2054
2022-05-24 17:56:29 +08:00
Karlatemp
e25e604c79
Copy modules as maven module
2022-05-24 17:30:58 +08:00
Karlatemp
50e7462b6b
Rename Access to Classpath
2022-05-24 17:00:30 +08:00
Karlatemp
72d248f1e6
Fix DynLibClassLoader class resolving logic
2022-05-23 18:26:33 +08:00
Karlatemp
237320317e
JvmPluginClassLoaderAccess
2022-05-23 18:26:33 +08:00
Karlatemp
b0711ed9ab
Setup vm-names of JvmPluginClassLoader's libraries classloaders
2022-05-23 17:41:51 +08:00
Him188
26c3bca473
Do not require plugin to be loaded for getPluginDescription
2022-05-21 15:25:28 +01:00
Karlatemp
6d0e5adf95
Fix ktor 2.0.0 linking ( #2051 ); Improve console plugin classloader logic
...
- Drop `io.ktor` in consoleRuntimeClasspath included by `core-api: api(io.ktor)`; Fix #2051
- Fix IT.plugin-resolve-self-dependencies-over-console-ones
- Fix IT.plugin-use-console-deps-fallback
- Fix plugin dependencies linked to AppClassLoader if any external dependencies used
2022-05-21 21:24:09 +08:00
Him188
12dfc6faa7
Update introductory dev docs
2022-05-19 13:39:29 +01:00
Karlatemp
97a37a196f
Fix nested projects building; Fix #2038
2022-05-18 17:24:39 +08:00
Karlatemp
92a5babf1c
Using a released version to run gradle tests
2022-05-18 17:24:39 +08:00
Him188
0da75d31b9
Fix readStringListFromEnv when no env specified
2022-05-08 09:48:10 +01:00
TheFatCat
9d18d79d66
fix docs and add java example ( #2021 )
2022-05-07 07:36:12 +01:00
Him188
008398bd84
Update README.md
2022-05-06 14:47:17 +01:00
Karlatemp
78d0cdd155
Fix bom dependencies again; Fix #1975
2022-05-05 22:44:48 +08:00
Karlatemp
8250c3da65
Using PlatformClassLoader to resolve java.*
; fix #2009
2022-05-04 16:36:13 +08:00
cssxsh
edf7622b0b
fix: ContactOrBot.render ( #2010 )
2022-05-04 16:28:14 +08:00
Karlatemp
115c987c2d
[skip ci] Fix documents building
2022-05-02 19:31:02 +08:00
Him188
61d68c245d
Refine docs examples
2022-05-02 11:16:24 +01:00
Him188
8c9d2e4707
添加插件文档 "使用日志"
2022-05-02 11:14:23 +01:00
Him188
7a6c7a89c0
Update docs for console plugin ( #1995 )
...
* Update docs for console plugin
* Update [skip ci]
* Update docs
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2022-05-01 18:03:10 +01:00
Him188
6b5f9e2eef
Change file suffix of new plugins to '.mirai2.jar'. Ignore '.mirai.jar' if its '.mirai2.jar' counterparts loaded. Close #1999
2022-05-01 17:59:05 +01:00
Him188
4993e59fd0
JavaPluginSchedulerImpl: run jobs with runInterruptible
2022-04-27 12:53:33 +01:00
Him188
bb8cd86daa
Update dependencies:
...
Kotlin 1.6.21
Dokka 1.6.20
coroutines 1.6.1
atomifFU 0.17.2
serialization 1.3.2
ktor 1.6.7
blocking-bridge 2.0.0-162.1
dynamic-delegation 0.3.0-162.2
2022-04-26 11:12:35 +01:00
Him188
e2477645cd
Migrate references of JAutoSavePluginConfig in docs
2022-04-25 14:18:14 +01:00
Him188
3be16c4644
Code cleanup. Remove duplicated internal utilities.
2022-04-25 14:15:29 +01:00