Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6a2e059
refactor(sandbox): remove docker/aiosandbox backends, simplify SRT co…
chenjw Mar 4, 2026
9e7d877
refactor(sandbox): remove docker/aiosandbox backends, simplify SRT co…
chenjw Mar 4, 2026
e8aae41
fix: remove unused handle_chat_direct function and fix unused logs va…
chenjw Mar 5, 2026
775ebd0
Fix UTF-8 issues in chat command
chenjw Mar 5, 2026
cda6b55
Add tab indentation to Think, Calling, and Result lines in CLI output
chenjw Mar 5, 2026
92a1876
Add first release workflow
chenjw Mar 5, 2026
8b4dee0
Update release workflow with correct working directory
chenjw Mar 5, 2026
6049dc0
修改 SessionKey 构建逻辑:统一使用 type="cli",channel_id 默认 "default",chat_id 作为…
chenjw Mar 5, 2026
0557391
Implement machine unique ID as default session ID for ov chat
chenjw Mar 5, 2026
6eebae3
Remove unsupported --logs parameter from chat command
chenjw Mar 5, 2026
21f236e
统一 Python 和 Rust CLI 的默认 session ID 生成逻辑
chenjw Mar 5, 2026
e2fc9ef
修改日志
chenjw Mar 5, 2026
1d44c06
rebase main
chenjw Mar 5, 2026
b92e928
去掉log依赖
chenjw Mar 5, 2026
7ceb2d2
docs: add VikingBot quick start section to READMEs
chenjw Mar 5, 2026
59f4e87
fix: use vikingbot chat instead of ov chat in READMEs
chenjw Mar 5, 2026
8fb714a
Revert "fix: use vikingbot chat instead of ov chat in READMEs"
chenjw Mar 5, 2026
fe82005
fix: use UUID v4 for machine ID generation in both Rust and Python
chenjw Mar 5, 2026
86ed2e1
refactor: move truncate_utf8 to utils, fix chat history path, and use…
chenjw Mar 5, 2026
824d15d
refactor: update machine ID generation and remove unused chat_v2
chenjw Mar 5, 2026
c1e9398
优化格式
chenjw Mar 5, 2026
0f35f67
rebase
chenjw Mar 5, 2026
fa86efc
ruff format .
chenjw Mar 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/release-vikingbot-first.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: First Release to PyPI

on:
workflow_dispatch: # 手动触发

jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: bot
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install build dependencies
run: pip install build

- name: Build package
run: python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.VIKINGBOT_PYPI_API_TOKEN }}
packages-dir: bot/dist/
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,21 @@ ov grep "openviking" --uri viking://resources/volcengine/OpenViking/docs/zh

Congratulations! You have successfully run OpenViking 🎉

### VikingBot Quick Start

VikingBot is an AI agent framework built on top of OpenViking. Here's how to get started:

```bash
# Install VikingBot from source (in OpenViking root directory)
uv pip install -e bot/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.[bot] 这种会不会好点

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在vikingbot还是源码安装,下个pr改成.[bot] 这样


# Start OpenViking server with Bot enabled
openviking-server --with-bot

# In another terminal, start interactive chat
ov chat
```

---

## Server Deployment Details
Expand Down
15 changes: 15 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,21 @@ ov grep "openviking" --uri viking://resources/volcengine/OpenViking/docs/zh

恭喜!您已成功运行 OpenViking 🎉

### VikingBot 快速开始

VikingBot 是构建在 OpenViking 之上的 AI 智能体框架。以下是快速开始指南:

```bash
# 在 OpenViking 源码根目录下安装 VikingBot
uv pip install -e bot/

# 启动 OpenViking 服务器(同时启动 Bot)
openviking-server --with-bot

# 在另一个终端启动交互式聊天
ov chat
```

---

## 服务器部署详情
Expand Down
33 changes: 33 additions & 0 deletions bot/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release to PyPI

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install build dependencies
run: |
pip install build
- name: Build package
run: |
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 1 addition & 4 deletions bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ You only need to add sandbox configuration when you want to change these default
{
"bot": {
"sandbox": {
"backend": "opensandbox",
"backend": "srt",
"mode": "per-session"
}
}
Expand All @@ -472,10 +472,8 @@ You only need to add sandbox configuration when you want to change these default
| Backend | Description |
|---------|-------------|
| `direct` | (Default) Runs code directly on the host |
| `docker` | Uses Docker containers for isolation |
| `opensandbox` | Uses OpenSandbox service |
| `srt` | Uses Anthropic's SRT sandbox runtime |
| `aiosandbox` | Uses AIO Sandbox service |

**Available Modes:**
| Mode | Description |
Expand Down Expand Up @@ -543,7 +541,6 @@ You only need to add sandbox configuration when you want to change these default
"backend": "srt",
"backends": {
"srt": {
"settingsPath": "~/.vikingbot/srt-settings.json",
"nodePath": "node",
"network": {
"allowedDomains": [],
Expand Down
36 changes: 0 additions & 36 deletions bot/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,8 @@ vikingbot 支持沙箱执行以增强安全性。
| 后端 | 描述 |
|---------|-------------|
| `direct` | (默认)直接在主机上运行代码 |
| `docker` | 使用 Docker 容器进行隔离 |
| `opensandbox` | 使用 OpenSandbox 服务 |
| `srt` | 使用 Anthropic 的 SRT 沙箱运行时 |
| `aiosandbox` | 使用 AIO Sandbox 服务 |

**可用模式:**
| 模式 | 描述 |
Expand Down Expand Up @@ -521,23 +519,6 @@ vikingbot 支持沙箱执行以增强安全性。
}
```

**Docker 后端:**
```json
{
"bot": {
"sandbox": {
"backend": "docker",
"backends": {
"docker": {
"image": "python:3.11-slim",
"networkMode": "bridge"
}
}
}
}
}
```

**SRT 后端:**
```json
{
Expand All @@ -546,7 +527,6 @@ vikingbot 支持沙箱执行以增强安全性。
"backend": "srt",
"backends": {
"srt": {
"settingsPath": "~/.vikingbot/srt-settings.json",
"nodePath": "node",
"network": {
"allowedDomains": [],
Expand All @@ -569,22 +549,6 @@ vikingbot 支持沙箱执行以增强安全性。
}
```

**AIO Sandbox 后端:**
```json
{
"bot": {
"sandbox": {
"backend": "aiosandbox",
"backends": {
"aiosandbox": {
"baseUrl": "http://localhost:18794"
}
}
}
}
}
```

**SRT 后端设置:**

SRT 后端使用 `@anthropic-ai/sandbox-runtime`
Expand Down
155 changes: 0 additions & 155 deletions bot/scripts/clean_vikingbot.py

This file was deleted.

19 changes: 19 additions & 0 deletions bot/scripts/clean_vikingbot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
BOT_DIR="$HOME/.openviking/data/bot"

echo "🧹 Cleaning VikingBot data directory..."
echo "📂 Cleaning contents of: $BOT_DIR"

if [ -d "$BOT_DIR" ]; then
echo "🗑️ Deleting items:"
for item in "$BOT_DIR"/*; do
if [ -e "$item" ]; then
echo " - $(basename "$item")"
rm -rf "$item"
fi
done
echo "✅ Done!"
else
echo "⚠️ Directory does not exist: $BOT_DIR"
fi

Loading
Loading