Repository navigation
feat: 优化 HTTP Client 工作台、请求编辑与响应工具 - #3
Merged
Merged
Conversation
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.
改动
HTTP 面板原先使用普通文本框和固定等分布局,缺少请求文件入口、历史和响应导出。本次将它整理为紧凑的请求/响应工作台,并修复 HTML 前导空白、响应头可读性及占位文字导致的异常光标。
.http/.rest文件后读取并解析请求;选择请求会定位编辑器,发送仍须用户操作。preview/openHTML以previewOnly打开;先检查能力和目标,拒绝已打开的文件,避免旧缓冲区冒充新响应。http小字;工具窗口使用 template 模式,选中着色交给宿主;面板与空状态共用该 SVG,并跟随主题着色。shared/i18n/;增加锁定的 UI 构建、生成产物一致性检查、依赖版本/许可证清单,并在 Linux CI 运行真实后端浏览器集成测试,替换原来的模拟桥接测试。兼容与限制
requires.backend从 1 调整为 2,新增workspace.metadata、documents.read、preview.open权限,复用现有公开 SDK/宿主能力,没有修改宿主协议。验证
npm run build、npm run check、git diff --check。cargo fmt --check、cargo clippy --locked -- -D warnings。x86_64-apple-darwinRelease 构建;Universal 打包、架构和 ad-hoc 签名检查,ZIP 完整性及包内 UI/图标与源码逐字节比对。python3 scripts/test_protocol.py --binary target/release/lithe-http-client:12 项通过,包括新默认上限、可调范围、UTF-8 截断、取消与无状态文件写入。HTTP_CLIENT_BINARY=target/release/lithe-http-client node scripts/test_ui.js:Chrome 7 组通过。HTTP_CLIENT_BROWSER=webkit HTTP_CLIENT_BINARY=target/release/lithe-http-client node scripts/test_ui.js:WebKit 7 组通过,覆盖光标/输入/焦点、真实解析和发送、历史、高亮、响应头、分栏、换行、HTML 文本安全与前导空行、截断、取消、真实文件读写、安装目录只读、语言和窄/矮布局。测试使用真实 SDK 进程和回环 HTTP 服务,不模拟业务响应。