feat(cli): add Linux wechatide support - #191
Open
zendext wants to merge 1 commit into
Open
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.
Closes #190
问题与修复
Electron 构建已包含官方
wechatide-skill和 skill CLI,但 Linux 缺少命令入口,安装诊断拒绝 Linux,CLI 也无法按 GUI 的数据目录发现服务或启动授权流程。本 PR 补齐这些平台适配,使源码构建能够通过bin/wechatide使用内置 skill 和 MCP。bin/wechatide脚本,使用构建内的 Node 调用官方skill-index.js,保留参数传递和退出码。tools/fix-cli.sh构建步骤,适配 Linux 配置目录、安装路径标识、Electron 授权启动,以及 skill 安装诊断和 CLI 路径处理;继续使用官方客户端授权、回调及令牌校验。验证
node --test test/wechatide-test.js:5 项通过,0 项失败。使用本机已有的resources/app.asar.unpacked构建资源,在临时目录内执行;覆盖符号链接与含空格参数、Linux 端口发现及官方 MCP 客户端调用、授权成功/拒绝回调、补丁幂等与不兼容检测、安装诊断。bash -n bin/wechatide tools/fix-cli.sh:通过。git diff --check upstream/electron...HEAD:通过。运行回归测试前需先生成构建资源;已有构建可通过
bash tools/fix-cli.sh应用补丁。