refactor(client): 拆分 HTTP 客户端,分离嵌入模式与 HTTP 模式#141
Merged
MaojiaSheng merged 2 commits intomainfrom Feb 12, 2026
Merged
Conversation
- 将 HTTPClient 重命名为 AsyncHTTPClient,新增 SyncHTTPClient 同步封装 - AsyncOpenViking/SyncOpenViking 仅保留嵌入模式,HTTP 模式使用独立的 AsyncHTTPClient/SyncHTTPClient - HTTP 客户端支持从 ovcli.conf 自动加载 url/api_key - 移除客户端构造函数中的 user 参数,统一使用默认用户 - 简化 CLIContext,直接使用 SyncHTTPClient - 简化 VikingFS._uri_to_path 实现 - 更新文档、示例和测试适配新 API
MaojiaSheng
approved these changes
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
拆分 HTTP 客户端为独立的 AsyncHTTPClient / SyncHTTPClient,与嵌入模式 (AsyncOpenViking / SyncOpenViking) 彻底分离,简化架构并消除模式混用。
Related Issue
N/A
Type of Change
Changes Made
Testing
Checklist
Screenshots (if applicable)
N/A
Additional Notes
这是一个 Breaking Change: