refactor(ccgo): CommandCode Go 统一更名为 CommandCode

This commit is contained in:
WaterRain 2026-09-11 06:52:37 +00:00
parent a079a0bfcb
commit 1439e8ca43
No known key found for this signature in database
13 changed files with 19 additions and 19 deletions

View File

@ -5,7 +5,7 @@
[![CI](https://github.com/CATMIAOZHI/Rainytoken/actions/workflows/ci.yml/badge.svg)](https://github.com/CATMIAOZHI/Rainytoken/actions/workflows/ci.yml)
[![Release](https://github.com/CATMIAOZHI/Rainytoken/actions/workflows/release.yml/badge.svg)](https://github.com/CATMIAOZHI/Rainytoken/actions)
[![Version](https://img.shields.io/github/v/release/CATMIAOZHI/Rainytoken?color=ff85a2)](https://github.com/CATMIAOZHI/Rainytoken/releases)
Android app for checking AI balance & usage — unified view of DeepSeek, OpenCode Go, CommandCode Go, Codex / ChatGPT, and Ollama balances and usage quotas. Pink-toned brand UI, with companion home screen widgets.
Android app for checking AI balance & usage — unified view of DeepSeek, OpenCode Go, CommandCode, Codex / ChatGPT, and Ollama balances and usage quotas. Pink-toned brand UI, with companion home screen widgets.
RainyToken (雨晴Token) — AI Balance & Usage Quota Query · the Rainy Family tools.
---
@ -72,7 +72,7 @@ RainyToken (雨晴Token) — AI Balance & Usage Quota Query · the Rainy Family
Download the latest APK from [Releases](https://github.com/CATMIAOZHI/Rainytoken/releases).
> ⚠️ You need a DeepSeek API Key, OpenCode Go login credentials, CommandCode Go API Key, Codex (OAuth sign-in or pasted auth.json), or an Ollama Cookie to fetch data.
> ⚠️ You need a DeepSeek API Key, OpenCode Go login credentials, CommandCode API Key, Codex (OAuth sign-in or pasted auth.json), or an Ollama Cookie to fetch data.
---

View File

@ -5,7 +5,7 @@
[![CI](https://github.com/CATMIAOZHI/Rainytoken/actions/workflows/ci.yml/badge.svg)](https://github.com/CATMIAOZHI/Rainytoken/actions/workflows/ci.yml)
[![Release](https://github.com/CATMIAOZHI/Rainytoken/actions/workflows/release.yml/badge.svg)](https://github.com/CATMIAOZHI/Rainytoken/actions)
[![Version](https://img.shields.io/github/v/release/CATMIAOZHI/Rainytoken?color=ff85a2)](https://github.com/CATMIAOZHI/Rainytoken/releases)
Android AI 余额与用量查询 APP —— 统一查看 DeepSeek、OpenCode Go、CommandCode Go、Codex / ChatGPT、Ollama 的余额与用量配额。粉色调品牌 UI,配套桌面小组件。
Android AI 余额与用量查询 APP —— 统一查看 DeepSeek、OpenCode Go、CommandCode、Codex / ChatGPT、Ollama 的余额与用量配额。粉色调品牌 UI,配套桌面小组件。
RainyToken(雨晴Token)— AI Balance & Usage Quota Query · the Rainy Family tools.
---
@ -72,7 +72,7 @@ RainyToken(雨晴Token)— AI Balance & Usage Quota Query · the Rainy Famil
前往 [Releases](https://github.com/CATMIAOZHI/Rainytoken/releases) 下载最新 APK。
> ⚠️ 需要配置 DeepSeek API Key、OpenCode Go 登录凭据、CommandCode Go API Key、Codex(OAuth 登录或粘贴 auth.json)或 Ollama Cookie 才能拉取数据。
> ⚠️ 需要配置 DeepSeek API Key、OpenCode Go 登录凭据、CommandCode API Key、Codex(OAuth 登录或粘贴 auth.json)或 Ollama Cookie 才能拉取数据。
---

View File

@ -19,7 +19,7 @@ import java.io.IOException
import javax.inject.Singleton
/**
* CommandCode Go 余额仓库。
* CommandCode 余额仓库。
*
* 调 JSON API 获取月度配额余额 + 用量窗口信息:
* GET https://api.commandcode.ai/alpha/billing/credits

View File

@ -22,7 +22,7 @@ import java.util.TimeZone
import javax.inject.Singleton
/**
* CommandCode Go 用量记录仓库。
* CommandCode 用量记录仓库。
*
* 调 JSON API 分页抓取 usage 记录:
* GET https://api.commandcode.ai/internal/usage?limit=50

View File

@ -122,7 +122,7 @@ object NetworkModule {
): OpenCodeGoRepository = OpenCodeGoRepository(okHttpClient, credentialRepository, balanceCache)
/**
* CommandCode Go 用量仓库。
* CommandCode 用量仓库。
*/
@Provides
@Singleton
@ -132,7 +132,7 @@ object NetworkModule {
): CommandCodeUsageRepository = CommandCodeUsageRepository(okHttpClient, credentialRepository)
/**
* CommandCode Go 仓库:API Key 认证,调 JSON API。
* CommandCode 仓库:API Key 认证,调 JSON API。
*/
@Provides
@Singleton

View File

@ -15,7 +15,7 @@ enum class ServiceType(
val storageKey: String
) {
OPENCODE_GO("OpenCode Go", "opencode_go"),
COMMANDCODE_GO("CommandCode Go", "commandcode_go"),
COMMANDCODE_GO("CommandCode", "commandcode_go"),
DEEPSEEK("DeepSeek", "deepseek"),
CODEX("Codex / ChatGPT", "codex"),
OLLAMA("Ollama", "ollama");

View File

@ -6,7 +6,7 @@ import javax.inject.Inject
import javax.inject.Provider
/**
* CommandCode Go 用量同步 UseCase。
* CommandCode 用量同步 UseCase。
*
* 游标协议:每页返回 (记录列表, 下一页游标)。
* - cursor=null → 最新页

View File

@ -62,7 +62,7 @@ fun ServiceIcon(
) {
Image(
painter = painterResource(id = R.drawable.ic_opencode_go_logo),
contentDescription = "CommandCode Go",
contentDescription = "CommandCode",
modifier = Modifier.size((size * 0.85).dp, ((size * 0.85f * 30f / 54f)).dp)
)
}

View File

@ -37,7 +37,7 @@ import com.rainy.token.ui.theme.StrawberryPink
import java.util.Locale
/**
* CommandCode Go 用量统计主卡片 —— 风格与 UsageStatsCard(OCGO)完全一致。
* CommandCode 用量统计主卡片 —— 风格与 UsageStatsCard(OCGO)完全一致。
* 仅展示核心指标:输入 Token(含 Cache)、输出 Token、总花费,
* 外加同步按钮和"查看详情"入口。详细统计在 CCGO 专属详情页。
*/

View File

@ -244,7 +244,7 @@ fun ServiceDetailScreen(
}
/**
* CommandCode Go 专属:月度用量卡 + 窗口进度条。
* CommandCode 专属:月度用量卡 + 窗口进度条。
*
* 数据从 balance.extras 中的 monthlyRemaining / monthlyTotal / fiveHour / weekly 取,
* 展示月度已用/总量 + 5h + 每周窗口进度条。

View File

@ -209,7 +209,7 @@
<string name="help_ocgo_7">6. 找到域名 opencode.ai 下名为 auth 的 Cookie</string>
<string name="help_ocgo_8">7. 复制它的 Value 字段 → auth cookie</string>
<string name="help_ocgo_note">注意:只填 auth 一个 Cookie 即可,不要整个 Cookie 字符串</string>
<string name="help_ccgo_title">如何获取 CommandCode Go 凭据?</string>
<string name="help_ccgo_title">如何获取 CommandCode 凭据?</string>
<string name="help_ccgo_1">1. 打开 https://commandcode.ai 并登录 GitHub</string>
<string name="help_ccgo_2">▸ 获取 API Key(必填):</string>
<string name="help_ccgo_3"> 右上角头像 → Settings → API Keys → 创建一个 Key</string>
@ -407,7 +407,7 @@
<string name="action_how_get_two_values">如何获取这两个值?</string>
<string name="action_open_login_entry">在浏览器中打开登录入口</string>
<string name="hint_opencode_trigger_key">填入 OpenCode Zen API Key 后,可在详情页一键发送请求激活用量统计。从 opencode.ai/settings → API Keys 获取。</string>
<string name="credential_title_ccgo">CommandCode Go 凭据</string>
<string name="credential_title_ccgo">CommandCode 凭据</string>
<string name="credential_hint_ccgo">需要 API Key(拉余额)。Session Cookie(可选)在浏览器 DevTools 复制,用于拉用量记录。不填也可正常查看余额。</string>
<string name="placeholder_api_key_from_settings">从 Settings → API Keys 生成</string>
<string name="field_session_cookie_optional">Session Cookie(可选)</string>

View File

@ -209,7 +209,7 @@
<string name="help_ocgo_7">6. 找到域名 opencode.ai 下名為 auth 的 Cookie</string>
<string name="help_ocgo_8">7. 複製它的 Value 欄位 → auth cookie</string>
<string name="help_ocgo_note">注意:只填 auth 一個 Cookie 即可,不要整個 Cookie 字串</string>
<string name="help_ccgo_title">如何獲取 CommandCode Go 憑據?</string>
<string name="help_ccgo_title">如何獲取 CommandCode 憑據?</string>
<string name="help_ccgo_1">1. 開啟 https://commandcode.ai 並登入 GitHub</string>
<string name="help_ccgo_2">▸ 獲取 API Key(必填):</string>
<string name="help_ccgo_3"> 右上角頭像 → Settings → API Keys → 建立一個 Key</string>
@ -407,7 +407,7 @@
<string name="action_how_get_two_values">如何獲取這兩個值?</string>
<string name="action_open_login_entry">在瀏覽器中開啟登入入口</string>
<string name="hint_opencode_trigger_key">填入 OpenCode Zen API Key 後,可在詳情頁一鍵傳送請求啟用用量統計。從 opencode.ai/settings → API Keys 獲取。</string>
<string name="credential_title_ccgo">CommandCode Go 憑據</string>
<string name="credential_title_ccgo">CommandCode 憑據</string>
<string name="credential_hint_ccgo">需要 API Key(拉餘額)。Session Cookie(可選)在瀏覽器 DevTools 複製,用於拉用量記錄。不填也可正常檢視餘額。</string>
<string name="placeholder_api_key_from_settings">從 Settings → API Keys 生成</string>
<string name="field_session_cookie_optional">Session Cookie(可選)</string>

View File

@ -212,7 +212,7 @@
<string name="help_ocgo_7">6. Find the cookie named auth under opencode.ai</string>
<string name="help_ocgo_8">7. Copy its Value field → auth cookie</string>
<string name="help_ocgo_note">Note: only the auth cookie is needed, not the whole cookie string</string>
<string name="help_ccgo_title">How to get CommandCode Go credentials?</string>
<string name="help_ccgo_title">How to get CommandCode credentials?</string>
<string name="help_ccgo_1">1. Open https://commandcode.ai and sign in with GitHub</string>
<string name="help_ccgo_2">▸ Get API Key (required):</string>
<string name="help_ccgo_3"> Avatar (top right) → Settings → API Keys → Create a Key</string>
@ -410,7 +410,7 @@
<string name="action_how_get_two_values">How to get these two?</string>
<string name="action_open_login_entry">Open login page in browser</string>
<string name="hint_opencode_trigger_key">With an OpenCode Zen API Key, the details page can send one request to activate usage stats. Get it at opencode.ai/settings → API Keys.</string>
<string name="credential_title_ccgo">CommandCode Go credentials</string>
<string name="credential_title_ccgo">CommandCode credentials</string>
<string name="credential_hint_ccgo">Needs an API Key (for balance). Session Cookie (optional) for usage records, copied from browser DevTools. Balance works without it.</string>
<string name="placeholder_api_key_from_settings">Generate at Settings → API Keys</string>
<string name="field_session_cookie_optional">Session Cookie (optional)</string>