diff --git a/README.md b/README.md index d3822daa..db95b133 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **[English](README.md) | [中文](README.zh-CN.md)** ThinkWatch Lite is a macOS menu-bar app that runs a local AI API gateway. -Claude Code, Codex CLI and other clients of the Anthropic, OpenAI and Gemini +Claude Code, Codex and other clients of the Anthropic, OpenAI and Gemini APIs send their requests to the gateway, and Lite shows what each request cost, which upstream served it and why, and what was sent along with it. @@ -121,7 +121,7 @@ commands. ### Client setup -Claude Code, Codex CLI, opencode, Zed and Aider can be pointed at the gateway +Claude Code, Codex, opencode, Zed and Aider can be pointed at the gateway from the app. The change is shown as a diff before anything is written, the original file is backed up, only the endpoint and key fields change, and the change can be restored at any time. Cursor, Continue and Gemini CLI come with @@ -129,7 +129,7 @@ step-by-step instructions. - The clients page: Claude Code and Codex CLI pointed at the gateway and already serving requests, opencode not yet pointed at it, and the clients that have to be set up by hand + The clients page: Claude Code and Codex pointed at the gateway and already serving requests, opencode not yet pointed at it, and the clients that have to be set up by hand ### Menu bar and notifications diff --git a/README.zh-CN.md b/README.zh-CN.md index c01804d3..9e7d1628 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -105,13 +105,13 @@ MCP 页并排列出各客户端配置的 MCP server,可以把一个 server 复 ### 客户端接管 -Claude Code、Codex CLI、opencode、Zed 与 Aider 可以在应用内一键指向网关。写入 +Claude Code、Codex、opencode、Zed 与 Aider 可以在应用内一键指向网关。写入 前先显示改动差异并完整备份原文件,只修改端点与密钥两个字段,随时可以还原。 Cursor、Continue 与 Gemini CLI 提供逐步的手动配置说明。 - 客户端页:已接管并收到请求的 Claude Code 与 Codex CLI、尚未接管的 opencode,以及需手动配置的客户端 + 客户端页:已接管并收到请求的 Claude Code 与 Codex、尚未接管的 opencode,以及需手动配置的客户端 ### 菜单栏与系统通知 diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 46f54fec..be0536af 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -5008,8 +5008,8 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "tw-api" -version = "0.28.0" -source = "git+https://github.com/ThinkWatchProject/ThinkWatch-Core.git?tag=v0.28.0#914444e1648dc1186b7c4578f8e2efeb38fdb53e" +version = "0.29.0" +source = "git+https://github.com/ThinkWatchProject/ThinkWatch-Core.git?tag=v0.29.0#eb63e1bf781538908c2061b7f9d8bed28a216fe4" dependencies = [ "serde", "serde_json", @@ -5018,8 +5018,8 @@ dependencies = [ [[package]] name = "tw-types" -version = "0.28.0" -source = "git+https://github.com/ThinkWatchProject/ThinkWatch-Core.git?tag=v0.28.0#914444e1648dc1186b7c4578f8e2efeb38fdb53e" +version = "0.29.0" +source = "git+https://github.com/ThinkWatchProject/ThinkWatch-Core.git?tag=v0.29.0#eb63e1bf781538908c2061b7f9d8bed28a216fe4" dependencies = [ "serde", "serde_json", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1b2e192e..ab315226 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -31,7 +31,7 @@ tauri-plugin-deep-link = "2" # 编出来的东西不一样;而更要紧的是,打进 `.app` 的那个 twcore 二进制 # 必须和这里编译进去的协议镜像来自同一个 core 版本 —— 打包脚本正是从 # 这个 tag 去取二进制的(见 scripts/fetch-core.sh)。 -tw-api = { git = "https://github.com/ThinkWatchProject/ThinkWatch-Core.git", tag = "v0.28.0" } +tw-api = { git = "https://github.com/ThinkWatchProject/ThinkWatch-Core.git", tag = "v0.29.0" } anyhow = "1" libc = "0.2" diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index ccec86a3..1e7774ae 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -2283,7 +2283,7 @@ mod tests { fn restore_addresses_a_client_by_id_and_reports_it_by_name() { let list = clients_json(&[ (r#""claude-code""#, r#""Claude Code""#, "1700000000000"), - (r#""codex""#, r#""Codex CLI""#, "null"), + (r#""codex""#, r#""Codex""#, "null"), (r#""opencode""#, r#""opencode""#, "1700000000001"), (r#""zed""#, r#""Zed""#, "1700000000002"), ]); diff --git a/src-tauri/src/menubar/model.rs b/src-tauri/src/menubar/model.rs index 2a18f795..1f901f4f 100644 --- a/src-tauri/src/menubar/model.rs +++ b/src-tauri/src/menubar/model.rs @@ -863,7 +863,7 @@ pub fn app_label(hint: &str) -> &str { match hint { "claude-code" => "Claude Code", "claude-desktop" => "Claude Desktop", - "codex" => "Codex CLI", + "codex" => "Codex", "cursor" => "Cursor", "opencode" => "opencode", "aider" => "Aider", @@ -1114,7 +1114,7 @@ mod tests { }) .collect(); assert_eq!(live.len(), MAX_LIVE); - assert_eq!(live[0], ("Codex CLI", "1:42")); + assert_eq!(live[0], ("Codex", "1:42")); // 认不出应用的用密钥名 assert_eq!(live[1].0, "default"); assert_eq!(item(&rows, "live-more").unwrap().title, "另有 2 个"); diff --git a/src/i18n/core.i18n.ts b/src/i18n/core.i18n.ts index 45113dbc..a5f860d8 100644 --- a/src/i18n/core.i18n.ts +++ b/src/i18n/core.i18n.ts @@ -363,7 +363,9 @@ const ZH: Record = { "adopt.cost.claude_code.welcome_screen": () => "Claude Code 可能会显示一次欢迎页,关闭即可。", "adopt.cost.codex.model_list": () => - "Codex CLI 不从网关获取模型列表,自定义模型名无效,模型列表以本地的模型目录文件为准。", + "Codex 不从网关获取模型列表,自定义模型名无效,模型列表以本地的模型目录文件为准。", + "adopt.cost.codex.chatgpt_desktop": () => + "ChatGPT 桌面版读取同一份配置文件,其本地 Codex 会话也会一并接管,重新启动该应用后生效。", "adopt.cost.codex.reopen_terminal": () => "修改后需要重新打开终端。", "adopt.cost.opencode.restart": () => "修改后需要重新启动 opencode。", "adopt.cost.zed.key_store": () => diff --git a/src/labels.ts b/src/labels.ts index ae9738a5..1c8d4051 100644 --- a/src/labels.ts +++ b/src/labels.ts @@ -239,7 +239,7 @@ export function fieldsOnlyText(): string { const APPS: Record = { "claude-code": "Claude Code", "claude-desktop": "Claude Desktop", - codex: "Codex CLI", + codex: "Codex", cursor: "Cursor", opencode: "opencode", aider: "Aider",