- 新增 pnpm Monorepo + Expo Router 项目模板(含 Metro monorepo 路径解析及 Windows 兼容修复) - 扩展蓝图系统:新增 api-keys、server-registry、ssh-config-sync、vscode-remote 等 15+ 模块定义 - 新增 .blueprint/rules.md 项目私有规则支持,并在 CLAUDE.md 中集成 - 蓝图版本升级至 1.6.0,优化版本比较逻辑(语义化版本元组对比)
19 lines
955 B
Markdown
19 lines
955 B
Markdown
# SSH Config 自动同步
|
||
|
||
将炼境服务器注册表中的条目自动写入 `~/.ssh/config`,支持 Windows 宿主机和 WSL 两套 SSH Config 同步,使 `ssh server-alias` 直接可用。
|
||
|
||
## 决策记录
|
||
|
||
- 同步时采用「炼境专属 Block」写法(`# BEGIN LIANGJING` / `# END LIANGJING`),不影响用户手动维护的其他条目
|
||
- WSL 侧需额外同步一份,因为 WSL 和 Windows 各有独立的 `~/.ssh/config`
|
||
- 同步是主动触发(服务器变更时 + 用户手动点击),不做定时轮询
|
||
|
||
## 任务卡
|
||
|
||
### ✅ SSH Config 写入与同步
|
||
- status: done
|
||
- complexity: M
|
||
- files: src-tauri/src/commands/ssh_config.rs, src/components/dashboard/ServerManagerPanel.tsx
|
||
- depends: server-registry
|
||
- acceptance: 点击「同步 SSH Config」后,`~/.ssh/config` 出现炼境专属 Block,包含所有已注册服务器的 Host 条目;WSL 侧(若已配置)同步写入;重复触发幂等,不产生重复条目
|