Jackhr
Jackhr
Please try download [this](https://productionresultssa12.blob.core.windows.net/actions-results/8cdbb905-17ee-442d-b2f3-2239173f61a6/workflow-job-run-d5c11ce9-a08a-5bde-783f-1bfee628ff52/artifacts/e5671801dc1791f6afeb1b3ff1233dd9034da28d3ff87e5c07ae1ffdf8ff42ea.zip?rscd=attachment%3B+filename%3D%22Linux_Build.zip%22&se=2024-05-09T08%3A37%3A09Z&sig=OeRKIUIyEXRvW9AqP9Ig07aKJp7FNd%2BVwFSEM2dNtGs%3D&sp=r&spr=https&sr=b&st=2024-05-09T08%3A27%3A04Z&sv=2021-12-02) and use `clashtui.debug`, reproduce the bug and upload the log file content along with mihomo service log
> > Please try download [this](https://productionresultssa12.blob.core.windows.net/actions-results/8cdbb905-17ee-442d-b2f3-2239173f61a6/workflow-job-run-d5c11ce9-a08a-5bde-783f-1bfee628ff52/artifacts/e5671801dc1791f6afeb1b3ff1233dd9034da28d3ff87e5c07ae1ffdf8ff42ea.zip?rscd=attachment%3B+filename%3D%22Linux_Build.zip%22&se=2024-05-09T08%3A37%3A09Z&sig=OeRKIUIyEXRvW9AqP9Ig07aKJp7FNd%2BVwFSEM2dNtGs%3D&sp=r&spr=https&sr=b&st=2024-05-09T08%3A27%3A04Z&sv=2021-12-02) and use `clashtui.debug`, reproduce the bug and upload the log file content along with mihomo service log > > ``` > > AuthenticationFailed >...
Do you have any suggestions on creating a timer, or we just manually refresh the connection infos? @JohanChane
This tab is basically ok. @JohanChane I use `ratatui::widgets::Table` to display basic infos, `r` to refresh infos. One press `Enter` on one item turns on the extra infos dialog (Not...
Hi,我用tonic实现了一部分RPC,在[我的分支](https://github.com/Jackhr-arch/maa-cli/tree/rpc)。 目前订阅callback的部分还在写,但client.rs里的都可以实机使用,(而且确实不太依赖cli本体),事实上我找资料的时候还发现官方的[一个示例](https://github.com/MaaAssistantArknights/MaaAssistantArknights/tree/dev/src/Rust)(我觉得天都要塌了,我写了几天啊) 不知道你对目前的api看法如何,希望能得到你的建议 > 还有,真的能单独设置日志目录吗,我在binding里找不到啊
tonic使用protobuf来传输数据,理论上只要支持protobuf就可以直接对接,我觉得兼容性应当不是问题 这个设置日志目录似乎是对一个maa core生效的?而且看起来核心加载好之后就不能改变,我打算把它合并到load_core里 cli支持的功能我也有打算引入,不过目前的代码很混乱,估计要个几天 而且显然,rpc下旧有的summary更新方式没法用,这还需要改一改。。。
代理可以在程序一并实现,tonic走本地socket,另外起一个axum服务http并提供json接口,然后把请求通过socket转发到tonic 不过tower支持中间件,也许可以写一个中间件判断请求的类型然后直接json转protobuf,就不需要axum了 似乎tonic本身就有[json codec的实现](https://github.com/hyperium/tonic/issues/851),也许还能再简单点 日志池是个不错的考虑,目前我使用无界通道缓存消息,客户端拿走了就不存在复件了(是的,实时订阅消息已经实现了(虽然是把callback里的string原封不动的发出来 track目前在用adb device的uuid,正在考虑替换成随机数据生成器。 状态机还没开始,这部分和summary相关,我得想想怎么写 cli的核心就是预定义的配置文件了吧,那些profile和tasks,和资源更新之类,目前我没什么头绪,先放一放吧,等server差不多完善了再整合到cli里作子指令,或者把这些从cli里分离出来给server作依赖
Unbelievable, do you really know what you are doing?