diff --git a/README.md b/README.md index d210add..abe5fad 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ python3 -m ruff check myagents tests scripts ## 完整部署指南 -如果你要部署的是**小荷助理**完整环境(Session API、Desktop、Skills Hub 等),请参见 [xiaohe-agent 仓库 README](../../README.md)(产品包名 **xiaohe-api**)。 +如果你要部署的是**小荷助理**完整环境(Session API、Desktop、Skills Hub 等),请参见 [xiaohe-agent 仓库 README](../../README.md)(产品包名 **xiaohe**)。 ## License diff --git a/myagents/commands/info.py b/myagents/commands/info.py index 8c4f2a6..112bc31 100644 --- a/myagents/commands/info.py +++ b/myagents/commands/info.py @@ -40,6 +40,6 @@ def info_cmd() -> None: console.print() provider_list_table() console.print() - console.print("[dim]Product CLI (xiaohe-api):[/dim]") + console.print("[dim]Product CLI (xiaohe):[/dim]") console.print(" xiaohe switch agent ") console.print(" xiaohe switch provider ") diff --git a/myagents/commands/uninstall.py b/myagents/commands/uninstall.py index 4b567c5..3f35256 100644 --- a/myagents/commands/uninstall.py +++ b/myagents/commands/uninstall.py @@ -31,7 +31,7 @@ def _launcher_paths(home: Path) -> list[Path]: apps = home / ".local" / "share" / "applications" icon = ( home / ".local" / "share" / "icons" / "hicolor" / "512x512" - / "apps" / "xiaohe-api.png" + / "apps" / "xiaohe.png" ) return [ home / "Desktop" / "Xiaohe Agent.app", diff --git a/myagents/commands/upgrade.py b/myagents/commands/upgrade.py index 3afa82f..b79354c 100644 --- a/myagents/commands/upgrade.py +++ b/myagents/commands/upgrade.py @@ -1,4 +1,4 @@ -"""``upgrade`` — forward to ``xiaohe upgrade`` (xiaohe-api wheel).""" +"""``upgrade`` — forward to ``xiaohe upgrade`` (xiaohe wheel).""" from __future__ import annotations @@ -19,12 +19,12 @@ def upgrade_cmd( user: str | None, password: str | None, ) -> None: - """Forward to ``xiaohe upgrade`` (xiaohe-api wheel).""" + """Forward to ``xiaohe upgrade`` (xiaohe wheel).""" del user, password xiaohe = shutil.which("xiaohe") if not xiaohe: raise click.ClickException( - "Install xiaohe-api, then run: xiaohe upgrade" + "Install xiaohe, then run: xiaohe upgrade" ) cmd = [xiaohe, "upgrade"] if version: diff --git a/tests/test_upgrade.py b/tests/test_upgrade.py index d0400f7..f8cc9e8 100644 --- a/tests/test_upgrade.py +++ b/tests/test_upgrade.py @@ -23,4 +23,4 @@ class TestUpgradeCommand: with patch.object(up_mod.shutil, "which", return_value=None): result = CliRunner().invoke(up_mod.upgrade_cmd, []) assert result.exit_code != 0 - assert "Install xiaohe-api" in result.output or "xiaohe upgrade" in result.output + assert "Install xiaohe" in result.output or "xiaohe upgrade" in result.output