- feat(process): comprehensive cross-platform Node.js path discovery, supporting 9 version managers (nvm, nvm-windows, fnm, volta, asdf, mise, n, Homebrew, Scoop) across macOS, Linux, and Windows for reliable agent preflight. - fix(process): use semver-aware sorting for Node.js version selection to prevent older versions being chosen over newer ones (e.g. v20.9 incorrectly ranked above v20.11). - fix(process): harden Node.js path discovery for production readiness with improved error handling and edge-case resilience. - fix(settings): remove ineffective max reasoning effort level for Claude Code. - fix(ci): replace softprops/action-gh-release with gh CLI for server asset upload. - fix(windows): improve fnm Node path discovery with correct platform-specific default directories. (thanks @Kwensiu, #75) ----------------------------- # 发布版本 0.8.9 - 功能(进程):全面的跨平台 Node.js 路径发现,支持 9 种版本管理器(nvm、nvm-windows、fnm、volta、asdf、mise、n、Homebrew、Scoop),覆盖 macOS、Linux 和 Windows,确保代理预检可靠找到 Node.js; - 修复(进程):使用语义化版本排序选择 Node.js 版本,避免旧版本被错误优先选择(如 v20.9 被排在 v20.11 之前); - 修复(进程):增强 Node.js 路径发现的生产环境健壮性,改进错误处理和边界情况适应能力; - 修复(设置):移除 Claude Code 中无效的最大推理力度级别选项; - 修复(CI):将服务器产物上传从 softprops/action-gh-release 替换为 gh CLI; - 修复(Windows):改进 fnm Node 路径发现,使用正确的平台特定默认目录。(感谢 @Kwensiu,#75)
105 lines
3.3 KiB
TOML
105 lines
3.3 KiB
TOML
[package]
|
|
name = "codeg"
|
|
version = "0.8.9"
|
|
description = "Agent Code Generation App"
|
|
authors = ["feitao"]
|
|
edition = "2021"
|
|
default-run = "codeg"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
# The `_lib` suffix may seem redundant but it is necessary
|
|
# to make the lib name unique and wouldn't conflict with the bin name.
|
|
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
|
name = "codeg_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[features]
|
|
default = ["tauri-runtime"]
|
|
tauri-runtime = [
|
|
"dep:tauri",
|
|
"dep:tauri-plugin-opener",
|
|
"dep:tauri-plugin-dialog",
|
|
"dep:fix-path-env",
|
|
"dep:tauri-build",
|
|
"dep:tauri-plugin-window-state",
|
|
"dep:tauri-plugin-updater",
|
|
"dep:tauri-plugin-process",
|
|
"dep:tauri-plugin-notification",
|
|
"dep:keyring",
|
|
]
|
|
|
|
[[bin]]
|
|
name = "codeg"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "codeg-server"
|
|
path = "src/bin/codeg_server.rs"
|
|
required-features = []
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [], optional = true }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = [], optional = true }
|
|
tauri-plugin-opener = { version = "2", optional = true }
|
|
tauri-plugin-dialog = { version = "2", optional = true }
|
|
async-trait = "0.1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
thiserror = "2"
|
|
dirs = "6"
|
|
walkdir = "2"
|
|
sacp = "11.0.0"
|
|
sacp-tokio = "11.0.0"
|
|
tokio = { version = "1", features = ["process", "io-util", "sync", "macros", "rt", "net", "rt-multi-thread"] }
|
|
uuid = { version = "1", features = ["v4"] }
|
|
futures = "0.3"
|
|
reqwest = { version = "0.12", features = ["stream", "json"] }
|
|
flate2 = "1"
|
|
bzip2 = "0.5"
|
|
tar = "0.4"
|
|
zip = "2"
|
|
regex = "1"
|
|
portable-pty = "0.8"
|
|
urlencoding = "2"
|
|
fix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs", version = "0.0.0", optional = true }
|
|
sea-orm = { version = "1.1", features = ["sqlx-sqlite", "runtime-tokio-rustls", "macros"] }
|
|
sea-orm-migration = { version = "1.1", features = ["sqlx-sqlite", "runtime-tokio-rustls"] }
|
|
toml = "0.8"
|
|
notify = "6"
|
|
base64 = "0.22"
|
|
agent-client-protocol-schema = { version = "0.11", features = ["unstable_session_usage", "unstable_session_fork"] }
|
|
kill_tree = { version = "0.2", features = ["tokio"] }
|
|
which = "7"
|
|
keyring = { version = "3", features = ["apple-native", "windows-native", "sync-secret-service"], optional = true }
|
|
axum = { version = "0.8", features = ["ws"] }
|
|
tower-http = { version = "0.6", features = ["fs", "cors"] }
|
|
tokio-tungstenite = { version = "0.26", features = ["native-tls"] }
|
|
futures-util = "0.3"
|
|
prost = "0.13"
|
|
rand = "0.8"
|
|
qrcode = "0.14"
|
|
image = { version = "0.25", default-features = false, features = ["png"] }
|
|
include_dir = "0.7"
|
|
sha2 = "0.10"
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
tauri-plugin-window-state = { version = "2", optional = true }
|
|
tauri-plugin-updater = { version = "2", optional = true }
|
|
tauri-plugin-process = { version = "2", optional = true }
|
|
tauri-plugin-notification = { version = "2", optional = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
mac-notification-sys = "0.6"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows-sys = { version = "0.59", features = ["Win32_Storage_FileSystem"] }
|
|
junction = "1"
|
|
|
|
[patch.crates-io]
|
|
sacp-tokio = { path = "vendor/sacp-tokio" }
|