JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
feat: add tui md
huanggawa50e88774a35d
diff --git a/README.md b/README.mdindex d20c8f8faf..05ae76a069 100644--- a/README.md+++ b/README.md@@ -80,6 +80,12 @@ jiuwenclaw-init# Start JiuwenClawjiuwenclaw-start++# Install JiuwenClaw-tui+pip install jiuwenclaw-tui++# Start JiuwenClaw-tui+jiuwenclaw-tui```### 💬 How to Use@@ -101,6 +107,7 @@ Set up heartbeat tasks with your to-do items, and JiuwenClaw will wake up on sch| Document | Description || :--------------------------------------------------- | :------------------------------------------------------- || [📖 Quick Start](docs/en/Quickstart.md) | Get up and running with JiuwenClaw in 5 minutes |+| [📖 Quick Start(TUI)](docs/en/Quickstart_tui.md) | Get up and running with JiuwenClaw-tui in 5 minutes || [⚙️ Configuration & Workspace](docs/en/Configuration.md) | Environment setup and workspace management || [📁 Workspace Structure](docs/en/Agent.md) | workspace directory layout, presets, and dynamic content || [🛠️ Skill System](docs/en/Skills.md) | Guide to developing custom skills |diff --git a/README_CN.md b/README_CN.mdindex fb478a3b7d..67fe47cd68 100644--- a/README_CN.md+++ b/README_CN.md@@ -70,6 +70,12 @@ jiuwenclaw-init# 启动 JiuwenClawjiuwenclaw-start++# 安装 JiuwenClaw-tui+pip install jiuwenclaw-tui++# 启动 JiuwenClaw-tui+jiuwenclaw-tui```### 💬 使用方式@@ -141,6 +147,7 @@ jiuwenclaw-start| 文档 | 核心内容 ||:------------------------------------|:-------------------------|| [📖 快速开始](docs/zh/Quickstart.md) | 5分钟上手JiuwenClaw |+| [📖 快速开始(TUI)](docs/zh/Quickstart_tui.md) | 5分钟上手JiuwenClaw-tui || [⚙️ 配置与工作空间](docs/zh/配置信息.md) | 环境配置与工作区管理 || [📁 工作区结构](docs/zh/智能体.md) | workspace 目录说明,预置与动态生成内容 || [🛠️ 技能系统](docs/zh/技能.md) | 自定义技能开发指南 |diff --git a/docs/en/Quickstart_tui.md b/docs/en/Quickstart_tui.mdnew file mode 100644index 0000000000..01f7d8c331--- /dev/null+++ b/docs/en/Quickstart_tui.md@@ -0,0 +1,194 @@+# Quick Start++> **⚠️ Version Sync**: This document should be kept in sync with [`docs/zh/Quickstart_tui.md`](../zh/Quickstart_tui.md). When updating one, please update the other.++JiuwenClaw provides two installation methods: `pip install` or `install from source`.++## Prerequisites++- Download JiuwenClaw code:+ ```bash+ git clone https://gitcode.com/openjiuwen/jiuwenclaw.git+ ```+- Environment dependencies:+ - Python: >=3.11, <3.14+ - Node.js: >=18.0.0 (only needed for building frontend from source or for browser-use functionality; 20 LTS recommended)++**Note: Users can choose any of the following installation methods based on their needs.**++## Method 1: pip Install++Suitable for users who manage their own Python environment. Follow these steps:++- Create a virtual environment & install JiuwenClaw++ ```bash+ # Create a virtual environment named jiuwenclaw+ python -m venv jiuwenclaw++ # Activate the jiuwenclaw virtual environment on Windows+ jiuwenclaw\Scripts\activate++ # Activate the jiuwenclaw virtual environment on Mac+ source .venv/bin/activate++ # Install JiuwenClaw+ pip install jiuwenclaw++ # Install JiuwenClaw-tui+ pip install jiuwenclaw-tui+ ```++- Initialize & start JiuwenClaw++ ```bash+ # Initialize JiuwenClaw (first time setup)+ jiuwenclaw-init++ # Start JiuwenClaw+ jiuwenclaw-start+ ```++- start JiuwenClaw-tui++ ```bash+ # Start JiuwenClaw+ jiuwenclaw-tui+ ```++## Method 2: Install from Source++Suitable for users who perform custom development or adaptation based on JiuwenClaw.++### uv Installation++- Create a virtual environment with `uv`+ ```bash+ # Create a virtual environment with uv (supports any of 3.11, 3.12, 3.13)+ uv venv --python=3.11+ # or: uv venv --python=3.12+ # or: uv venv --python=3.13+ ```++- 激活 Jiuwenclaw 虚拟环境+ ```bash+ # Activate the jiuwenclaw virtual environment on Windows+ jiuwenclaw\Scripts\activate++ # Activate the jiuwenclaw virtual environment on Mac+ source .venv/bin/activate+ ```++- Run uv sync++ Navigate to the project root directory `jiuwenclaw/` and run:+ ```bash+ uv sync+ ```++- Install frontend dependencies++ Navigate to the frontend directory `jiuwenclaw/web` and install dependencies:+ ```bash+ cd jiuwenclaw/web+ npm install+ ```++- Run frontend service++ Two methods are available for running the frontend service:++ - Static frontend service (suitable for production deployment)+ ```bash+ npm run build+ cd ../../+ uv run jiuwenclaw-init+ uv run jiuwenclaw-start+ ```++ - Dynamic frontend service (suitable for development and debugging)+ ```bash+ cd ../../+ uv run jiuwenclaw-init+ uv run jiuwenclaw-start dev+ ```++ After running, you can access the JiuwenClaw web UI.++- Install TUI dependencies+ Open one new erminal,navigate to the TUI directory `jiuwenclaw/cli` and install dependencies:+ ```bash+ cd jiuwenclaw/cli+ npm install+ ```++- Start TUI++ ```bash+ npm run dev+ ```++### conda Installation++- Create a virtual environment with `conda`+ ```bash+ # Create a virtual environment with Anaconda (supports any of 3.11, 3.12, 3.13)+ conda create -n JiuwenClaw python=3.11+ # or: conda create -n JiuwenClaw python=3.12+ # or: conda create -n JiuwenClaw python=3.13+ ```++- Install Python dependencies++ Navigate to the project root directory `jiuwenclaw/` and run:+ ```bash+ # Mode 1: Development installation (recommended, facilitates code modification)+ pip install -e .++ # Mode 2: Regular installation+ pip install .+ ```+ **Note:** This installation method relies on the project's installable package (pyproject.toml) and will install `jiuwenclaw` itself by default.++- Install frontend dependencies++ Navigate to the frontend directory `jiuwenclaw/web` and install dependencies:+ ```bash+ cd jiuwenclaw/web+ npm install+ ```++- Run frontend service++ Two methods are available for running the frontend service:++ - Static frontend service (suitable for production deployment)+ ```bash+ npm run build+ cd ../../+ jiuwenclaw-init+ jiuwenclaw-start+ ```++ - Dynamic frontend service (suitable for development and debugging)+ ```bash+ cd ../../+ # Start directly (without using uv run)+ jiuwenclaw-init+ jiuwenclaw-start dev+ ```++ After running, you can access the JiuwenClaw web UI.++- Install TUI dependencies+ Open one new erminal,navigate to the TUI directory `jiuwenclaw/cli` and install dependencies:+ ```bash+ cd jiuwenclaw/cli+ npm install+ ```++- Start TUI++ ```bash+ npm run dev+ ```\ No newline at end of filediff --git a/docs/zh/Quickstart_tui.md b/docs/zh/Quickstart_tui.mdnew file mode 100644index 0000000000..971c5b978a--- /dev/null+++ b/docs/zh/Quickstart_tui.md@@ -0,0 +1,186 @@+# 快速开始++> **⚠️ 版本同步**: 本文档应与英文版 [`docs/en/Quickstart_tui.md`](../en/Quickstart_tui.md) 保持同步。更新一版时请同时更新另一版。++JiuwenClaw提供两种安装方式:`pip安装`或`源码安装`。++安装前准备:+- JiuwenClaw代码下载+ ```bash+ git clone https://gitcode.com/openjiuwen/jiuwenclaw.git+ ```+- 环境依赖:+ - python:>=3.11,<3.14+ - nodejs:>=18.0.0(仅源码前端构建或 browser-use 功能需要,推荐 20 LTS)++**注意:用户可根据自己实际需要,基于以下任意一种方案安装。**++## **方式一:pip安装**++适合自行管理Python环境的用户。具体操作如下:+- 创建虚拟环境 & 安装 jiuwenclaw 项目++ ```bash+ # 创建名为 Jiuwenclaw 的虚拟环境+ python -m venv jiuwenclaw++ # Windows 激活 Jiuwenclaw 虚拟环境+ jiuwenclaw\Scripts\activate++ # Mac 激活 Jiuwenclaw 虚拟环境+ source .venv/bin/activate++ # 安装 Jiuwenclaw+ pip install jiuwenclaw++ # 安装 Jiuwenclaw-tui+ pip install jiuwenclaw-tui+ ```++- 初始化 & 启动 jiuwenclaw 项目++ ```bash+ # 初始化 JiuwenClaw (首次启动)+ jiuwenclaw-init++ # 启动 JiuwenClaw+ jiuwenclaw-start+ ```++- 启动 jiuwenclaw-tui 项目+ ```bash+ # 另打开终端界面,启动 JiuwenClaw-tui+ jiuwenclaw-tui+ ```++## **方式二:源码运行**++适合基于JiuwenClaw进行二次开发适配的用户。++### `uv`方式安装+- 使用`uv`新建虚拟环境+ ```bash+ # 使用uv新建虚拟环境(支持 3.11、3.12、3.13 任一版本)+ uv venv --python=3.11+ # 或 uv venv --python=3.12+ # 或 uv venv --python=3.13+ ```++- 激活 Jiuwenclaw 虚拟环境+ ```bash+ # Windows 激活 Jiuwenclaw 虚拟环境+ jiuwenclaw\Scripts\activate++ # Mac 激活 Jiuwenclaw 虚拟环境+ source .venv/bin/activate+ ```++- 执行uv同步操作++ 进入项目根目录`jiuwenclaw/`执行:+ ```bash+ uv sync+ ```++- 安装前端依赖++ 进入前端目录 jiuwenclaw/web 安装依赖:+ ```bash+ cd jiuwenclaw/web+ npm install+ ```++- 运行前端服务++ 可以采取两种方式运行前端服务:+ - 静态运行前端服务(适合生产环境部署)+ ```bash+ npm run build+ cd ../../+ uv run jiuwenclaw-init+ uv run jiuwenclaw-start+ ```++ - 动态运行前端服务(适合生开发调试)+ ```bash+ cd ../../+ uv run jiuwenclaw-init+ uv run jiuwenclaw-start dev+ ```++ 运行完成后即可在网页前端访问JiuwenClaw服务。++- 安装TUI依赖+ 另外打开新终端界面,进入TUI目录 jiuwenclaw/cli 安装依赖:+ ```bash+ cd jiuwenclaw/cli+ npm install+ ```++- 运行TUI++ ```bash+ npm run dev+ ```++### `conda`方式安装+- 使用`conda`新建虚拟环境+ ```bash+ # 使用Anaconda新建虚拟环境(支持 3.11、3.12、3.13 任一版本)+ conda create -n JiuwenClaw python=3.11+ # 或 conda create -n JiuwenClaw python=3.12+ # 或 conda create -n JiuwenClaw python=3.13+ ```+- 安装python依赖++ 进入项目根目录`jiuwenclaw/`执行:+ ```bash+ # 模式1:开发模式安装(推荐,便于修改代码)+ pip install -e .++ # 模式2:普通安装+ pip install .+ ```+ **注意:** 该安装方式依赖项目的可安装包(pyproject.toml),同时会默认安装`jiuwenclaw`自己。++- 安装前端依赖++ 进入前端目录 jiuwenclaw/web 安装依赖:+ ```bash+ cd jiuwenclaw/web+ npm install+ ```++- 运行前端服务++ 可以采取两种方式运行前端服务:+ - 静态运行前端服务(适合生产环境部署)+ ```bash+ npm run build+ cd ../../+ jiuwenclaw-init+ jiuwenclaw-start+ ```++ - 动态运行前端服务(适合生开发调试)+ ```bash+ cd ../../+ # 直接启动(不使用 uv run)+ jiuwenclaw-init+ jiuwenclaw-start dev+ ```++ 运行完成后即可在网页前端访问JiuwenClaw服务。++- 安装TUI依赖+ 另外打开新终端界面,进入TUI目录 jiuwenclaw/cli 安装依赖:+ ```bash+ cd jiuwenclaw/cli+ npm install+ ```++- 运行TUI++ ```bash+ npm run dev+ ```\ No newline at end of file