Repository navigation
docs(design): 设置区域的画布节点原型与构建设置页提案 - #2163
Merged
Merged
Conversation
现状页把作用域与保存、每个插件声明的工具卡片、调试器单步放在同一页, 页面高度随插件数线性增长,同一路径重复三次、插件 ID 和原因码原样显示。 原型改为: - 分组页变成目录,只显示子页、状态摘要和问题汇总 - “工具链”独立成页:作用域进工具栏、说明收进 ⓘ;筛选(需要处理 / 已手动指定 / 未应用)、按类别或插件分组、按需渲染的列表 + 详情 - 详情里路径只出现一次,候选改单选列表并标注来源、生效项和翻译后的 不可用原因;显示“应用后”和决策链 - 提交统一走窗口底部,写明写入目标和作用域 - “调试器”独立成页,单步规则改逐条列表 - 插件页按种类折叠,超过 6 个进可搜索的“全部 N 个…”目录 - 侧栏搜索同时命中工具和调试器 - 演示栏可切换截图现状、示例、1,000、5,000 个插件以及深色模式
- 新增 docs/design/plugin-canvas-scene.html:画布节点(保留场景)原型。 悬停、平移、缩放、提示在宿主本地处理,只把 click/change/viewport 发回插件; 演示预算(2,000 节点、256 KB、每秒应用 30 次、2 秒超时)、缺 label 拒绝、 超时和崩溃回退到声明式设置行,以及消息计数。 - 改写 2026-11-12 插件设置区域提案:设置窗口只用描述模式,自由绘制用画布节点, 不再嵌网页(实测最简网页约 60–70 MB、三个系统进程),网页只留给工具窗口; 新增 2026-11-18 已确认项,更新备选方案、验收标准和风险。 - 新增 2026-11-18 构建、执行、部署设置页提案:目录式分组页、工具链和调试器固定子页、 插件页折叠规则、注入映射和契约缺口。 - build-execution-settings.html:插件内容区说明指向画布原型;修正深色模式下打开的开关显示成灰色。
xiaoyumuxi
marked this pull request as ready for review
November 18, 2026 12:05
This was referenced Nov 18, 2026
Merged
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
PR 类型 / Type
改动说明 / What changes
背景 / Why
「构建、执行、部署」设置页把作用域与保存、每个插件的工具卡片、调试器单步挤在一页。页面高度随插件数量线性增长,以后几千个插件往里注入时会完全不可用。另外,2026-11-12 的提案允许插件在设置区域里嵌自绘网页。实测在 macOS 上,一个最简网页就额外带来三个系统进程,约 60 到 70 MB,用户担心内存。
本 PR 只做设计:两个可以直接在浏览器里打开操作的 HTML 原型,加两份提案 Agent Note。Core 契约、SDK 和桌面端渲染是后续 PR。
改动 / Changes
新原型
docs/design/plugin-canvas-scene.html:画布节点(保留场景)click、控件change,以及平移停下 400 ms 后的一次viewport会发回插件。插件按节点 ID 回set/replace/scene/ui补丁。app/pom.xml的草稿,应用后插件写入并重新读取。label、超时、崩溃。出错时框里显示错误并回退到声明式设置行,这些设置行照样能改,可以重试。另有推送过快(约 120 次/秒)的演示,宿主按节点合并。改写
.agents/notes/proposed/architecture/2026-11-12-plugin-authored-settings-content.mdlabel)、预算和回退、搜索(页面keywords)、首版不做的能力。字段名都标为示意。新增
.agents/notes/proposed/feature/2026-11-18-build-execution-settings-at-scale.mdtoolDefinitions、requiresTools、commandInstallers、debugAdapters[].features、settings[].page、界面树),出现在哪里,对应 API-13/19/23/30。category和audience;settingPage.debugAdapterID;type:"tool");keywords;toolDefinitions最多 32 个。docs/design/build-execution-settings.html(上一个提交里的原型)不在本 PR 范围内 / Out of scope
native-ui.schema.json,加上画布节点、页面keywords、预算,以及上面的契约缺口。在 Lithe-core-rust 另开 PR,字段名在那里定。类型专属:docs
.agents/notes/(中文),docs/只保留操作说明、正式 schema、发布说明和验收材料;改了 Note 已运行./scripts/agent-notes/verify-agent-notes.sh。docs/design/下的两个 HTML 是交互原型,没有承载决策,决策都在两份 Note 里范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:只有设计文档和提案笔记,没有宿主能力或跨平台行为变化。
插件归属 / Plugin ownership
develop-lithe第三节“插件归属与宿主零依赖”的自查命令,结果为空shared/i18n/;插件的构建步骤、资源路径和补丁没有写进docs/ci-builds.md、Agent Note 或 Skill说明:
docs/design/build-execution-settings.html的演示数据里用了 Go、Java、LLDB 三个真实插件名和 ID,只作示例(规则 8)。自查命令不扫描docs/design/。两份 Note 里的 Maven、Gradle、lldb 例子也只用来说明通用的注入方式,没有写成宿主规则。UI 验证 / UI evidence
N/A:没有改产品界面。原型可以直接用浏览器打开
docs/design/plugin-canvas-scene.html和docs/design/build-execution-settings.html。我在本机用 headless Chrome 截图检查过浅色和深色、点击、悬停提示、故障回退几个状态;截图只在本机,没有附到 PR。统一日志系统 / Structured logging
N/A:没有代码改动。
界面文案 / i18n
node scripts/i18n/verify-app-language-localization.mjs和node scripts/i18n/generate-i18n.mjs --check,没有放宽脚本或扩大豁免名单逻辑归属 / Logic placement
N/A:没有业务逻辑改动。提案里的筛选、分组、计数、场景校验、预算都写明由 Core 负责。
性能与内存 / Performance and memory
N/A:没有代码改动。提案的出发点之一是内存:macOS 实测一个最简网页额外带来 WebContent 41/42 MB、GPU 22/12 MB、Networking 6/5 MB(两次测量),合计约 69/59 MB;画布节点只在宿主进程里多存一份场景,没有额外进程。
设置 / Settings
N/A:没有改设置项或设置页。提案里的设置页结构按设置页分类 Note 归属;工具链页遵守“自动(实际生效值)”和真实来源回显规则。
插件契约 / Plugin contract
N/A:不改契约,契约缺口留给 Core PR。
发行包与资源 / Bundle and resources
N/A:没有运行时资源改动。提案的验收标准里要求实现 PR 运行
scripts/desktop/verify/verify-runtime-bundle-immutability.sh。无用代码与重构 / Dead code and refactoring
N/A:没有代码改动。
验证 / Verification
./scripts/agent-notes/verify-agent-notes.shok: 177 active Agent Note(s) verifiednode scripts/i18n/verify-app-language-localization.mjsnode scripts/i18n/generate-i18n.mjs --checkdevelop-lithe第三节)plugin-canvas-scene.html自测脚本(headless Chrome,46 项)footprint,两次)未能执行的检查和原因: Windows WebView2 的内存没有测,本 PR 只有设计文档,不需要 Windows 验证。自测用的 headless Chrome 已全部退出。
提交前确认 / Final checks
main创建;目标分支:feat、fix、docs 为main,release 以发布流程要求为准。分支基于 c2beeb0;main 之后多了 feat(plugins): prepare and reuse managed runtimes before installation #2160,它和本 PR 改的文件不重叠.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图