diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs index 11ff9509..b1d2016b 100644 --- a/crates/config/src/lib.rs +++ b/crates/config/src/lib.rs @@ -185,7 +185,7 @@ impl ProvidersToml { #[derive(Debug, Clone, Serialize, Deserialize, Default)] pub struct ConfigToml { /// TUI-compatible DeepSeek API key. Kept at the root so both `deepseek` - /// and `deepseek-tui` can share a single config file. + /// and `codewhale-tui` can share a single config file. pub api_key: Option, /// TUI-compatible DeepSeek base URL. pub base_url: Option, diff --git a/crates/tui/assets/skills/mcp-builder/SKILL.md b/crates/tui/assets/skills/mcp-builder/SKILL.md index 8871b94e..1408b4d1 100644 --- a/crates/tui/assets/skills/mcp-builder/SKILL.md +++ b/crates/tui/assets/skills/mcp-builder/SKILL.md @@ -1,6 +1,6 @@ --- name: mcp-builder -description: Design, build, configure, or debug Model Context Protocol servers for DeepSeek TUI, including stdio and HTTP/SSE transports. +description: Design, build, configure, or debug Model Context Protocol servers for codewhale, including stdio and HTTP/SSE transports. --- # MCP Builder diff --git a/crates/tui/assets/skills/plugin-creator/SKILL.md b/crates/tui/assets/skills/plugin-creator/SKILL.md index 967d4118..d3e4a150 100644 --- a/crates/tui/assets/skills/plugin-creator/SKILL.md +++ b/crates/tui/assets/skills/plugin-creator/SKILL.md @@ -1,6 +1,6 @@ --- name: plugin-creator -description: Scaffold DeepSeek local plugin directories and activation notes. Use when the user asks to create, package, or sketch a plugin for DeepSeek TUI. +description: Scaffold codewhale local plugin directories and activation notes. Use when the user asks to create, package, or sketch a plugin for codewhale. --- # Plugin Creator diff --git a/crates/tui/assets/skills/skill-creator/SKILL.md b/crates/tui/assets/skills/skill-creator/SKILL.md index cf899c71..f83b4ec6 100644 --- a/crates/tui/assets/skills/skill-creator/SKILL.md +++ b/crates/tui/assets/skills/skill-creator/SKILL.md @@ -1,13 +1,13 @@ --- name: skill-creator -description: Create or improve DeepSeek TUI skills. Use when the user wants a new skill, wants to update an existing skill, or needs guidance on when a skill should be a skill versus MCP, hooks, tools, or a plugin scaffold. +description: Create or improve codewhale skills. Use when the user wants a new skill, wants to update an existing skill, or needs guidance on when a skill should be a skill versus MCP, hooks, tools, or a plugin scaffold. metadata: short-description: Create DeepSeek skills --- # Skill Creator -Use this skill to create small, useful DeepSeek TUI skills that match the +Use this skill to create small, useful codewhale skills that match the runtime this repository actually ships. ## What A Skill Is @@ -94,7 +94,7 @@ plain single-line values. Use lower-case hyphen-case names. unless the user asked for a rewrite. - Tighten descriptions when the skill is under-triggering or over-triggering. - Remove stale tool names, unavailable dependencies, and copied instructions - from other agents that do not apply to DeepSeek TUI. + from other agents that do not apply to codewhale. - Keep examples short and directly tied to this runtime's commands and tools. ## Validation Checklist diff --git a/crates/tui/src/client.rs b/crates/tui/src/client.rs index 20755bea..c5dd2ade 100644 --- a/crates/tui/src/client.rs +++ b/crates/tui/src/client.rs @@ -514,7 +514,7 @@ impl DeepSeekClient { let mut builder = reqwest::Client::builder() .default_headers(headers) .user_agent(concat!( - "Mozilla/5.0 (compatible; deepseek-tui/", + "Mozilla/5.0 (compatible; codewhale/", env!("CARGO_PKG_VERSION"), "; +https://github.com/Hmbown/DeepSeek-TUI)" )) diff --git a/crates/tui/src/core/capacity.rs b/crates/tui/src/core/capacity.rs index 2a9e442a..dde442f8 100644 --- a/crates/tui/src/core/capacity.rs +++ b/crates/tui/src/core/capacity.rs @@ -766,7 +766,7 @@ mod tests { /// Hot-path microbench for `compute_profile`. Run with: /// /// ```text - /// cargo test -p deepseek-tui --release capacity::tests::bench_compute_profile -- --ignored --nocapture + /// cargo test -p codewhale-tui --release capacity::tests::bench_compute_profile -- --ignored --nocapture /// ``` /// /// Establishes a baseline cost so we can detect regressions when the diff --git a/crates/tui/src/core/engine/tool_catalog.rs b/crates/tui/src/core/engine/tool_catalog.rs index 51a4043a..5d949705 100644 --- a/crates/tui/src/core/engine/tool_catalog.rs +++ b/crates/tui/src/core/engine/tool_catalog.rs @@ -689,7 +689,7 @@ pub(super) async fn execute_code_execution_tool( ToolError::execution_failed(format!( "code_execution: no Python interpreter found on PATH (tried {:?}). \ Install Python 3 and ensure one of these is on PATH, then restart \ - deepseek-tui.", + codewhale.", crate::dependencies::PYTHON_CANDIDATES, )) })?; diff --git a/crates/tui/src/features.rs b/crates/tui/src/features.rs index 24633cd1..ffe36344 100644 --- a/crates/tui/src/features.rs +++ b/crates/tui/src/features.rs @@ -1,6 +1,6 @@ #![allow(dead_code)] -//! Feature flags and metadata for DeepSeek TUI. +//! Feature flags and metadata for codewhale. use std::collections::{BTreeMap, BTreeSet}; use std::fmt::{self, Write as _}; diff --git a/crates/tui/src/repl/runtime.rs b/crates/tui/src/repl/runtime.rs index 71e4ead8..e14f0229 100644 --- a/crates/tui/src/repl/runtime.rs +++ b/crates/tui/src/repl/runtime.rs @@ -206,7 +206,7 @@ impl PythonRuntime { let interpreter = resolve_python_interpreter().ok_or_else(|| { format!( "no Python interpreter found on PATH (tried {:?}). \ - Install Python 3 and ensure one of these commands works, then restart deepseek-tui.", + Install Python 3 and ensure one of these commands works, then restart codewhale.", PYTHON_CANDIDATES, ) })?; diff --git a/crates/tui/src/snapshot/repo.rs b/crates/tui/src/snapshot/repo.rs index ed010ca3..a70dc7ce 100644 --- a/crates/tui/src/snapshot/repo.rs +++ b/crates/tui/src/snapshot/repo.rs @@ -272,7 +272,7 @@ impl SnapshotRepo { let _ = run_git( &git_dir, &work_tree, - &["config", "user.email", "snapshots@deepseek-tui.local"], + &["config", "user.email", "snapshots@codewhale.local"], ); // Don't auto-gc on every commit; we manage pruning ourselves. let _ = run_git(&git_dir, &work_tree, &["config", "gc.auto", "0"]); diff --git a/crates/tui/src/task_manager.rs b/crates/tui/src/task_manager.rs index a773edde..164c7fc1 100644 --- a/crates/tui/src/task_manager.rs +++ b/crates/tui/src/task_manager.rs @@ -1814,7 +1814,7 @@ mod tests { "gate": { "id": "gate_test", "gate": "test", - "command": "cargo test -p deepseek-tui --lib", + "command": "cargo test -p codewhale-tui --lib", "cwd": ".", "exit_code": 0, "status": "passed", diff --git a/crates/tui/src/tools/fetch_url.rs b/crates/tui/src/tools/fetch_url.rs index 8c76ccea..6ced8d0f 100644 --- a/crates/tui/src/tools/fetch_url.rs +++ b/crates/tui/src/tools/fetch_url.rs @@ -26,7 +26,7 @@ const DEFAULT_TIMEOUT_MS: u64 = 15_000; const HARD_MAX_TIMEOUT_MS: u64 = 60_000; const MAX_REDIRECTS: usize = 5; const USER_AGENT: &str = - "Mozilla/5.0 (compatible; deepseek-tui/0.5; +https://github.com/Hmbown/DeepSeek-TUI)"; + "Mozilla/5.0 (compatible; codewhale/0.5; +https://github.com/Hmbown/DeepSeek-TUI)"; static SCRIPT_RE: OnceLock = OnceLock::new(); static STYLE_RE: OnceLock = OnceLock::new(); diff --git a/crates/tui/src/tools/image_ocr.rs b/crates/tui/src/tools/image_ocr.rs index 239170c1..43d939c4 100644 --- a/crates/tui/src/tools/image_ocr.rs +++ b/crates/tui/src/tools/image_ocr.rs @@ -81,7 +81,7 @@ pub(crate) fn ocr_image_path(image_path: &Path) -> Result { } Err(ToolError::execution_failed( - "image_ocr: no local OCR backend is available. On macOS, update to a version with the Vision framework; on Linux/Windows install tesseract and restart deepseek-tui.", + "image_ocr: no local OCR backend is available. On macOS, update to a version with the Vision framework; on Linux/Windows install tesseract and restart codewhale.", )) } diff --git a/crates/tui/src/tools/js_execution.rs b/crates/tui/src/tools/js_execution.rs index 63e3dbf5..3bedef6b 100644 --- a/crates/tui/src/tools/js_execution.rs +++ b/crates/tui/src/tools/js_execution.rs @@ -83,7 +83,7 @@ pub async fn execute_js_execution_tool( ToolError::execution_failed( "js_execution: no Node.js runtime found on PATH (tried `node`). \ Install Node 18+ and ensure `node` is on PATH, then restart \ - deepseek-tui." + codewhale." .to_string(), ) })?; diff --git a/crates/tui/src/tools/pandoc.rs b/crates/tui/src/tools/pandoc.rs index 636fbb79..c8a5b78d 100644 --- a/crates/tui/src/tools/pandoc.rs +++ b/crates/tui/src/tools/pandoc.rs @@ -150,7 +150,7 @@ impl ToolSpec for PandocConvertTool { "pandoc_convert: pandoc binary not found on PATH. \ Install pandoc (macOS: `brew install pandoc`; \ Debian/Ubuntu: `apt install pandoc`; \ - Windows: `winget install JohnMacFarlane.Pandoc`) and restart deepseek-tui.", + Windows: `winget install JohnMacFarlane.Pandoc`) and restart codewhale.", ) })?; diff --git a/crates/tui/src/tui/external_editor.rs b/crates/tui/src/tui/external_editor.rs index df9272a1..f37abae4 100644 --- a/crates/tui/src/tui/external_editor.rs +++ b/crates/tui/src/tui/external_editor.rs @@ -252,7 +252,7 @@ mod tests { let _g = EnvGuard::new(&["VISUAL", "EDITOR"]); unsafe { env::remove_var("VISUAL"); - env::set_var("EDITOR", "/nonexistent/deepseek-tui-test-editor"); + env::set_var("EDITOR", "/nonexistent/codewhale-test-editor"); } let out = run_editor_raw("seed").expect("call ok"); assert_eq!(out, EditorOutcome::Cancelled); diff --git a/crates/tui/src/tui/streaming/chunking.rs b/crates/tui/src/tui/streaming/chunking.rs index 3c6245ab..744358e0 100644 --- a/crates/tui/src/tui/streaming/chunking.rs +++ b/crates/tui/src/tui/streaming/chunking.rs @@ -1,6 +1,6 @@ //! Adaptive stream chunking policy for two-gear streaming. //! -//! Ported from `codex-rs/tui/src/streaming/chunking.rs`, adapted for deepseek-tui's +//! Ported from `codex-rs/tui/src/streaming/chunking.rs`, adapted for codewhale's //! text-based streaming pipeline. The policy is queue-pressure driven and //! source-agnostic. //! diff --git a/scripts/tencent-lighthouse/doctor.sh b/scripts/tencent-lighthouse/doctor.sh index 8de5f4a6..8db50353 100755 --- a/scripts/tencent-lighthouse/doctor.sh +++ b/scripts/tencent-lighthouse/doctor.sh @@ -109,7 +109,7 @@ check_binaries() { fi if [[ -x "${tui}" ]]; then pass "${tui} is executable" - "${tui}" --version 2>/dev/null | sed 's/^/[info] deepseek-tui version: /' || warn "deepseek-tui --version failed" + "${tui}" --version 2>/dev/null | sed 's/^/[info] codewhale-tui version: /' || warn "codewhale-tui --version failed" else fail "${tui} is missing or not executable" fi