[Feature] 重制GH加速功能(代理重试+缓存+可配置)#101
Conversation
Summary of ChangesHello @DeterMination-Wind, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 此拉取请求旨在通过引入一个全新的、功能更强大的GitHub加速模块来显著提升GitHub相关请求的可靠性和性能。通过支持可配置的代理列表、智能的自动重试机制以及静态资源缓存,它解决了访问GitHub资源时可能遇到的连接问题和延迟,从而为用户提供更流畅的体验。 Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
f037d9f to
594ff9b
Compare
594ff9b to
55a03b6
Compare
Summary
GithubAcceleration模块:支持代理列表配置(Asset/API 分流)、多轮自动重试和静态资源缓存。Httphook 能力(onBeforeRequest+ request success/directResponse):支持请求级重试链路与缓存命中直返,并让HttpResponse可复读响应内容用于缓存。NewToolTable新增GH按钮,长按打开配置面板),并保留旧githubMirror配置向新开关迁移。Changes
src/mindustryX/features/GithubAcceleration.kt(单文件实现代理、重试、缓存、设置 UI)。patches/arc/0001-API-Http.onBeforeRequest.patch,为HttpRequest/HttpResponse增加重试与缓存直返所需能力。Hooks.beforeInit()改为初始化GithubAcceleration;移除旧Hooks.onHttp单镜像替换逻辑。VarsX.githubMirror旧设置项,新增中英文设置文案键(githubAcceleration.*)。Verify
gradle :core:compileKotlin✅gradle :core:compileJava受:core:patchGeneratedSources既有补丁冲突影响(与本改动无关)Fixes #89