chore(frontend): 移除 Enchante Agent 使用手册链接,只留纯文字提示 - #5
Merged
Conversation
不打包手册了,彻底去掉之前那个占位用的本机微信文件路径 (file:///Users/chenyida/Library/Containers/com.tencent.xinWeChat/...), 避免正式包里残留任何本机路径依赖。 设置页 Agent 分组行 + 引导页结论页,Enchante 的 Agent 项现在都只剩「参考使用 手册」/「配置 Agent 参考使用手册」纯文字,不带任何链接、不带开关。 清理范围: - frontend/js/store.js:删掉 openEnchanteAgentManual() - frontend/index.html:两处都去掉 <a class="ai-platform-row__manual-link"> - frontend/css/components.css:删掉现在没人用的 .ai-platform-row__manual-link - desktop/main.js:删掉 open-manual IPC handler + MANUAL_PATH 常量 - desktop/preload.js:删掉 __mykOpenManual__ 桥 isEnchanteAgentManual() 判定保留(还要用来渲染置灰开关 + 对应文案), Enchante 的 MCP deeplink 完全没动。 测试:只跑改动直接覆盖的精准测试(不含全局前端/浏览器套件): pytest tests/frontend/test_stage3.py::TestStage3StaticStructure # 17 passed pytest tests/frontend/test_stage3.py::TestStage3Build # 1 passed 同步更新了 TestStage3Browser 里对应断言(本地未跑,留给 review/CI)。 node --check 过了 main.js/preload.js/store.js,frontend/build.py 重新打包也过了。
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.
背景
PR #4 给 Enchante 的 Agent 行加了「参考使用手册」链接,点击走桌面 IPC 打开一个本地文件。但那个路径当时就是占位符(
/Users/chenyida/Library/Containers/com.tencent.xinWeChat/...,我本机微信收到的文件),手册没有真正打包进 app。决定不打包手册了,所以把链接整个下线,只保留文字提示。改动
frontend/index.html:设置页 Agent 分组行 + 引导页结论页,两处的「查看手册」链接(<a class="ai-platform-row__manual-link">)都删掉,只留纯文字(「参考使用手册」/「配置 Agent 参考使用手册」)frontend/js/store.js:删掉openEnchanteAgentManual()frontend/css/components.css:删掉不再使用的.ai-platform-row__manual-linkdesktop/main.js:删掉open-manualIPC handler 和硬编码的MANUAL_PATH(本机路径彻底清除)desktop/preload.js:删掉__mykOpenManual__桥isEnchanteAgentManual()判定保留(还要驱动置灰开关渲染),Enchante 的 MCP deeplink 完全没动。测试
只跑改动直接覆盖的精准测试,没跑全局前端/浏览器套件:
同步更新了
TestStage3Browser里的对应断言(本地未跑,留给 CI)。node --check过了改动的三个 JS 文件,frontend/build.py重新打包也过了。