Repository navigation
feat(desktop): 「构建、执行、部署」按原型重构为目录页、工具链与调试器子页 - #2179
Merged
Merged
Conversation
- 分组页改为目录页:列出「工具链」「调试器」和插件声明的构建工具、编译器页,带状态摘要 - 插件页按种类聚合,同一种类满 3 个折叠成侧栏文件夹,展开列 6 个并以「全部 N 个…」打开可筛选的文件夹页 - 插件自己的设置位置不变:插件详情的「设置」标签照样列出全部设置,聚合页和它共用同一份表单与草稿(新增回归测试) - 工具链页按 docs/design/build-execution-settings.html 重做:全局默认 / 当前项目两个作用域、按类别或插件分组、需要处理与已手动指定过滤、列表与详情两栏、安装列表与来源标签、未信任项目的信任提示 - 筛选、分组和计数改用 Core 设置投影(Core #99 已合入;问题项带分组在 Core #102,先固定 6712596),一个插件可注册多个 SDK;固定值不再单独算一个来源标签 - 单步过滤从 Build 页移到「调试器」子页,插件没有声明名称时按调试器名绘制图标 - 只有 Build 页或有草稿时页脚才显示「应用」,没有草稿时「好」直接关闭 - 侧栏搜索覆盖目录页、工具链和调试器 - 新增 build-settings 词条,更新设置页分类笔记、新增已实现与剩余契约缺口两篇笔记,更新功能矩阵 - 截图放在 docs/assets/build-execution-settings/
xiaoyumuxi
marked this pull request as ready for review
November 18, 2026 16:26
This was referenced Nov 18, 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.
关联 Issue / Linked issue
docs/design/build-execution-settings.html)toolchains.settingsView的问题项带上所在分组的键。本 PR 固定到 Core main 上的8d3c16b。PR 类型 / Type
改动说明 / What changes
背景 / Why
设置窗口的「构建、执行、部署」原来是一整页:作用域和保存按钮、每个插件注入的工具卡片、调试器的单步过滤都堆在一起,页面高度随已安装插件的数量线性增长。装几个构建工具和语言插件就很难找到要改的项,插件多到成百上千时,这个结构撑不住。本 PR 按 #2163 的原型把它改成“目录页 + 固定子页 + 按种类聚合的插件页”。
这里只是额外的聚合入口:插件自己的设置位置不变,插件详情的「设置」标签照样列出全部设置,两处编辑的是同一份设置和同一份草稿。
改动 / Changes
目录页(
build_directory_view.go、build_style.go、settings_surfaces.go)plugins.settings.navigation投影给出(limit为 6)。聚合而不搬移(
window.go、window_view.go、model.go)kind:id)过滤出放在该页的设置行,插件详情的「设置」标签不受影响,仍显示全部设置。TestBuildPageGathersSettingsThePluginKeepsInItsOwnTab:先在详情标签里改出草稿,切到 Build 下的页面后,页面只显示放在那里的设置,草稿也保留。工具链子页(
toolchains_view.go、toolchains_state.go)toolchains.settingsView。投影本身在 Core fix(windows): avoid dead project switcher in new-window mode #99(已合入),问题项的分组键在 Core fix(windows): send diff pathspecs the shared core accepts #102(已合入)。desktop/internal/toolchain、core/toolchain.go)。toolchains_state.go。调试器子页(
stepping_view.go)页脚与搜索(
build_apply.go、build_search.go、controller.go)其他
pluginhost声明宿主支持toolDefinitions1,插件才能使用category和audience。scripts/desktop/build-desktop-core.sh的PINNED_CORE_REVISION升到 Core main 上的8d3c16b(fix(windows): send diff pathspecs the shared core accepts #102 合入后的 commit)。shared/i18n/features/build-settings.json中英词条,并重新生成shared.generated.go。proposed/feature/2026-11-18-build-execution-settings-at-scale.md移到implemented/,并写明实现与原型的差别。proposed/feature/2026-11-18-build-settings-remaining-contract-gaps.md,记录需要先改契约的剩余缺口。application-settings、debug-state、plugin-injected-toolchains三条记录的说明和证据,验证状态保持pending。与原型的差别(都已写进已实现笔记)
不在本 PR 范围内 / Out of scope
.agents/notes/proposed/feature/2026-11-18-build-settings-remaining-contract-gaps.md,后续单独做:plugin-canvas-scene.html):先做 Core 的界面树与画布契约和 SDK,再另开桌面 PR。类型专属:feat
多平台对齐
pending。platform-specific),理由:范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/下的application-settings.json、debug-state.json、plugin-injected-toolchains.json:说明、证据和验证动作按实际填写,没有运行的原生验证保持pending./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh(206 条能力通过)和./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD(matrix change gate passed).artifacts/下生成的矩阵视图插件归属 / Plugin ownership
develop-lithe第三节“插件归属与宿主零依赖”的自查命令,结果为空shared/i18n/;新增的词条都是宿主自己的界面文字toolDefinitions1 的支持和聚合入口,已有插件的声明和设置标签行为不变UI 验证 / UI evidence
LITHE_CORE_RUST_DIR=<Core #102 检出> LITHE_VISUAL_OUTPUT_DIR=<目录> ../scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' -run TestVisualSettings ./internal/settingswindow/2a9643adocs/assets/build-execution-settings/,下表的链接按提交 SHA 固定统一日志系统 / Structured logging
N/A:没有新增或改动生命周期里程碑、操作终态、降级或失败路径的日志。工具链的加载、保存和信任仍走原有调用和原有的错误显示。
界面文案 / i18n
shared/i18n/features/build-settings.json中英词条,运行node scripts/i18n/generate-i18n.mjs并提交生成结果,没有手改生成文件;Viva 代码通过desktop/internal/i18n/读取shared/i18n/node scripts/i18n/verify-app-language-localization.mjs和node scripts/i18n/generate-i18n.mjs --check,都通过,没有放宽脚本或扩大豁免名单逻辑归属 / Logic placement
toolchains.settingsView(Core fix(windows): avoid dead project switcher in new-window mode #99、fix(windows): send diff pathspecs the shared core accepts #102);plugins.settings.navigation;性能与内存 / Performance and memory
ui.NewEffect后台任务里完成,界面只读结果设置 / Settings
.agents/notes/implemented/feature/2026-10-15-macos-settings-hierarchy.md确定,该笔记已更新:「工具链」「调试器」是 Build 分组下宿主固定的子页,插件页按种类聚合在它们后面插件契约 / Plugin contract
scripts/desktop/build-desktop-core.sh的PINNED_CORE_REVISION已升到 Core main 上的8d3c16b;不设LITHE_CORE_RUST_DIR时,桌面端测试经scripts/desktop/desktop-go.sh构建并读取的就是这份 Coresdk-e2e.mjs:没有改插件后端协议toolchains.settingsView是 Core 命令,不是宿主方法发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh,通过无用代码与重构 / Dead code and refactoring
toolchainCards、toolchainTool等)、Build 页里的单步过滤卡片(steppingCard、steppingAdapter),以及它们的测试验证 / Verification
../scripts/desktop/desktop-go.sh test ./...(在desktop/下运行,LITHE_CORE_RUST_DIR指向 Core #102 检出)../scripts/desktop/desktop-go.sh test -count=3 ./internal/settingswindow/8d3c16b后(不设LITHE_CORE_RUST_DIR):../scripts/desktop/desktop-go.sh test ./internal/settingswindow/ ./internal/toolchain/ ./internal/core/../scripts/desktop/desktop-go.sh test -race ./internal/settingswindow/ ./internal/toolchain/ ./internal/pluginhost/../scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' -run TestVisualSettings ./internal/settingswindow/gofmt -l、go vet ./internal/settingswindow/ ./internal/workbench/node scripts/i18n/generate-i18n.mjs --check、node scripts/i18n/verify-app-language-localization.mjs./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD./scripts/agent-notes/verify-agent-notes.sh./scripts/desktop/verify/verify-runtime-bundle-immutability.shdevelop-lithe第三节)cargo test -p lithe-toolchain settings_view、node shared/plugins/scripts/verify-docs.mjs未能执行的检查和原因:
提交前确认 / Final checks
main创建,并已变基到b8a173f;目标分支是main.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图