mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-10 08:43:34 +08:00
- 识别用户目录与 XDG 路径下的 OpenCode JSON/JSONC 配置 - 保留注释、自定义字段与符号链接并原子写入 MCP 配置 - 增加 CLI 检测、安装状态、自动接入及旧路径修复 - 在客户端选择、浏览器模拟、AI 检查提示和六语言文案中接入 OpenCode - 引入 hujson、补充许可声明及前后端回归测试
10 lines
158 B
Go
10 lines
158 B
Go
//go:build !windows
|
|
|
|
package aiservice
|
|
|
|
import "os"
|
|
|
|
func replaceOpenCodeConfigFile(source string, target string) error {
|
|
return os.Rename(source, target)
|
|
}
|