diff --git a/README.md b/README.md index 6f51209350d4792e6ef14187550b6b603d7fb5cf..af302d6c64283c4dd50931033ae4fe3a4347b201 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# OE-CLI 命令行助手 +# Witty Assistant 命令行助手 -OE-CLI 是 openEuler Intelligence 的命令行客户端,提供 AI 驱动的命令行交互体验。支持多种 LLM 后端,集成 MCP 协议,提供现代化的 TUI 界面。 +Witty Assistant 是 openEuler Intelligence 的命令行客户端,提供 AI 驱动的命令行交互体验。支持多种 LLM 后端,集成 MCP 协议,提供现代化的 TUI 界面。 ## 核心特性 @@ -37,44 +37,44 @@ OE-CLI 是 openEuler Intelligence 的命令行客户端,提供 AI 驱动的命 sudo dnf install openeuler-intelligence-cli ``` -安装完成后,可以使用 `oi` 命令启动应用程序。 +安装完成后,可以使用 `witty` 命令启动应用程序。 ## 使用方法 安装 RPM 包后: ```sh -oi +witty ``` 查看最新的日志内容: ```sh -oi --logs +witty --logs ``` 设置日志级别并验证: ```sh -oi --log-level INFO +witty --log-level INFO ``` 初始化 openEuler Intelligence 后端(仅支持 openEuler 操作系统): ```sh -oi --init +witty --init ``` 选择和设置默认智能体(仅适用于 openEuler Intelligence 后端): ```sh -oi --agent +witty --agent ``` 通过浏览器登录并自动保存 API Key(需要已配置的 openEuler Intelligence 后端): ```sh -oi --login +witty --login ``` 运行前请确保运行环境具备图形界面并能启动默认浏览器;在无图形界面的场景下可使用 X11 转发或直接在目标服务器上执行该命令。 @@ -116,8 +116,8 @@ oi --login **注意**: 1. 此命令会自动安装系统服务,请在生产环境使用前仔细评估; -2. 如果需要重启或卸载 openEuler Intelligence 后端,请以管理员身份运行 `oi-manager` 并根据指引操作; -3. `oi-manager` 的卸载功能会清空机器上 MongoDB 和 PostgreSQL 的全部数据并重置 nginx 服务,请谨慎操作。 +2. 如果需要重启或卸载 openEuler Intelligence 后端,请以管理员身份运行 `witty-manager` 并根据指引操作; +3. `witty-manager` 的卸载功能会清空机器上 MongoDB 和 PostgreSQL 的全部数据并重置 nginx 服务,请谨慎操作。 ### `--agent` 命令说明 @@ -218,10 +218,10 @@ oi --login ```sh # 切换到中文 -oi --locale zh_CN +witty --locale zh_CN # 切换到英文 -oi --locale en_US +witty --locale en_US ``` 语言设置会自动保存,下次启动时生效。 @@ -279,7 +279,7 @@ oi --locale en_US ##### 方式一:命令行(修改默认配置) ```sh -oi --agent +witty --agent ``` 通过图形化界面选择默认智能体,选择会自动保存到配置文件。 diff --git a/euler-copilot-shell-0.10.2.tar.gz b/euler-copilot-shell-0.10.2.tar.gz index 256998708449f513ac5ce1b8ab3b19f1b322fe19..74ae390f02e4cde74004070d4923ad9355daa79b 100644 Binary files a/euler-copilot-shell-0.10.2.tar.gz and b/euler-copilot-shell-0.10.2.tar.gz differ diff --git a/euler-copilot-shell.spec b/euler-copilot-shell.spec index 76d0738dbbabaa1b821929cedcdaa1e711bb8045..c97a76e535f70fec4d780d1d5d114e5ba0478548 100644 --- a/euler-copilot-shell.spec +++ b/euler-copilot-shell.spec @@ -1,11 +1,11 @@ -%global pypi_name oi-cli -%global shortcut_name oi +%global pypi_name witty-assistant +%global shortcut_name witty %global debug_package %{nil} Name: euler-copilot-shell Version: 0.10.2 -Release: 7%{?dist} -Summary: openEuler Intelligence 智能命令行工具集 +Release: 8%{?dist} +Summary: Witty Assistant 智能命令行工具集 License: MulanPSL-2.0 URL: https://gitee.com/openeuler/euler-copilot-shell Source0: %{name}-%{version}.tar.gz @@ -16,29 +16,29 @@ BuildRequires: python3-devel python3-virtualenv python3-pip BuildRequires: gettext %description -openEuler Intelligence 智能命令行工具集,包含智能 Shell 命令行程序和部署安装工具。 +Witty Assistant 智能命令行工具集,包含智能 Shell 命令行程序和部署安装工具。 # 智能命令行工具子包 %package -n openeuler-intelligence-cli -Summary: openEuler Intelligence 智能 Shell 命令行工具 +Summary: Witty Assistant 智能 Shell 命令行工具 Requires: glibc # 替换原来的 euler-copilot-shell 包 Obsoletes: euler-copilot-shell < %{version}-%{release} Provides: euler-copilot-shell = %{version}-%{release} %description -n openeuler-intelligence-cli -openEuler Intelligence 智能 Shell 是一个智能命令行程序。 +Witty Assistant 智能 Shell 是一个智能命令行程序。 它允许用户输入命令,通过集成大语言模型提供命令建议,帮助用户更高效地使用命令行。 # 部署安装工具子包 %package -n openeuler-intelligence-installer -Summary: openEuler Intelligence 部署安装脚本 +Summary: Witty Assistant 部署安装脚本 Requires: python3-aiohttp Requires: python3-requests BuildArch: noarch %description -n openeuler-intelligence-installer -openEuler Intelligence 部署安装工具包,包含部署脚本和相关资源文件。 +Witty Assistant 部署安装工具包,包含部署脚本和相关资源文件。 %prep %autosetup -n %{name}-%{version} @@ -67,7 +67,7 @@ uv pip install --index-url https://mirrors.huaweicloud.com/repository/pypi/simpl # 使用虚拟环境中的 PyInstaller 创建单一可执行文件 pyinstaller --noconfirm \ --distpath dist \ - oi-cli.spec + witty-assistant.spec # 退出虚拟环境 deactivate @@ -90,7 +90,7 @@ cp -r scripts/deploy/0-one-click-deploy scripts/deploy/1-check-env scripts/deplo chmod -R +x %{buildroot}/usr/lib/openeuler-intelligence/scripts/ # 创建可执行文件的符号链接 -ln -sf /usr/lib/openeuler-intelligence/scripts/deploy %{buildroot}%{_bindir}/oi-manager +ln -sf /usr/lib/openeuler-intelligence/scripts/deploy %{buildroot}%{_bindir}/witty-manager %files -n openeuler-intelligence-cli %license LICENSE @@ -102,7 +102,7 @@ ln -sf /usr/lib/openeuler-intelligence/scripts/deploy %{buildroot}%{_bindir}/oi- %license LICENSE %doc scripts/deploy/安装部署手册.md /usr/lib/openeuler-intelligence -%{_bindir}/oi-manager +%{_bindir}/witty-manager %postun -n openeuler-intelligence-cli if [ $1 -eq 0 ]; then @@ -137,6 +137,10 @@ rm -f /usr/lib/openeuler-intelligence/scripts/5-resource/env.* fi %changelog +* Fri Dec 12 2025 openEuler - 0.10.2-8 +- chore: Update project name to "Witty Assistant" +- chore: Update program short name to "witty" + * Wed Dec 03 2025 openEuler - 0.10.2-7 - cli: Add support for select text in LLM response TUI