chore(myagents): 产品包名 xiaohe-api → xiaohe
This commit is contained in:
@@ -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
|
## License
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,6 @@ def info_cmd() -> None:
|
|||||||
console.print()
|
console.print()
|
||||||
provider_list_table()
|
provider_list_table()
|
||||||
console.print()
|
console.print()
|
||||||
console.print("[dim]Product CLI (xiaohe-api):[/dim]")
|
console.print("[dim]Product CLI (xiaohe):[/dim]")
|
||||||
console.print(" xiaohe switch agent <name>")
|
console.print(" xiaohe switch agent <name>")
|
||||||
console.print(" xiaohe switch provider <name>")
|
console.print(" xiaohe switch provider <name>")
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ def _launcher_paths(home: Path) -> list[Path]:
|
|||||||
apps = home / ".local" / "share" / "applications"
|
apps = home / ".local" / "share" / "applications"
|
||||||
icon = (
|
icon = (
|
||||||
home / ".local" / "share" / "icons" / "hicolor" / "512x512"
|
home / ".local" / "share" / "icons" / "hicolor" / "512x512"
|
||||||
/ "apps" / "xiaohe-api.png"
|
/ "apps" / "xiaohe.png"
|
||||||
)
|
)
|
||||||
return [
|
return [
|
||||||
home / "Desktop" / "Xiaohe Agent.app",
|
home / "Desktop" / "Xiaohe Agent.app",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
"""``upgrade`` — forward to ``xiaohe upgrade`` (xiaohe-api wheel)."""
|
"""``upgrade`` — forward to ``xiaohe upgrade`` (xiaohe wheel)."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
@@ -19,12 +19,12 @@ def upgrade_cmd(
|
|||||||
user: str | None,
|
user: str | None,
|
||||||
password: str | None,
|
password: str | None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Forward to ``xiaohe upgrade`` (xiaohe-api wheel)."""
|
"""Forward to ``xiaohe upgrade`` (xiaohe wheel)."""
|
||||||
del user, password
|
del user, password
|
||||||
xiaohe = shutil.which("xiaohe")
|
xiaohe = shutil.which("xiaohe")
|
||||||
if not xiaohe:
|
if not xiaohe:
|
||||||
raise click.ClickException(
|
raise click.ClickException(
|
||||||
"Install xiaohe-api, then run: xiaohe upgrade"
|
"Install xiaohe, then run: xiaohe upgrade"
|
||||||
)
|
)
|
||||||
cmd = [xiaohe, "upgrade"]
|
cmd = [xiaohe, "upgrade"]
|
||||||
if version:
|
if version:
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ class TestUpgradeCommand:
|
|||||||
with patch.object(up_mod.shutil, "which", return_value=None):
|
with patch.object(up_mod.shutil, "which", return_value=None):
|
||||||
result = CliRunner().invoke(up_mod.upgrade_cmd, [])
|
result = CliRunner().invoke(up_mod.upgrade_cmd, [])
|
||||||
assert result.exit_code != 0
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user