chatluna-plugin-onebot-sandbox 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,19 +1,27 @@
1
1
  # chatluna-plugin-onebot-sandbox
2
2
 
3
- 在 ChatLuna v2 的 WebUI 中提供模拟 QQ(OneBot v11)环境,用于验证 ChatLuna 及其插件在私聊、群聊中的真实行为。
4
-
5
- ## Config
6
-
7
- | Key | Type | Default | Description |
8
- | --- | --- | --- | --- |
9
- | `persistenceMode` | `'memory' \| 'database'` | `'database'` | 模拟环境状态存储方式 |
10
- | `sandboxTimBubbleTail` | `boolean` | `true` | 显示气泡小尖角 |
11
- | `sandboxMarkRecalledMessages` | `boolean` | `true` | 保留撤回气泡并显示撤回线 |
12
- | `sceneMessageLimit` | `number` | `2000` | 每个空间保留的场景消息条数上限 |
13
- | `sceneMessageMaxBytes` | `number` | `8388608` | 每个空间场景 JSON 的字节上限 |
14
- | `testEndpoint.mcp` | `{ enabled, path }` | `{ false, '/mcp' }` | MCP 测试端点 |
15
- | `testEndpoint.http` | `{ enabled, path }` | `{ false, '/api' }` | HTTP 测试端点 |
16
- | `testEndpoint.shared` | object | — | 监听地址、端口、来源与 Origin 白名单、TLS 与调用配额 |
3
+ [![npm](https://img.shields.io/npm/v/chatluna-plugin-onebot-sandbox)](https://www.npmjs.com/package/chatluna-plugin-onebot-sandbox)
4
+
5
+ ChatLuna v2 插件:在 WebUI 中模拟 QQ(OneBot v11)环境,不接入真实 QQ 账号即可测试 ChatLuna 及其插件在私聊、群聊中的行为。
6
+
7
+ ## 功能
8
+
9
+ - **WebQQ 聊天界面**:会话列表、消息气泡、发送框、合并转发、表情回应、群公告与资料卡,可切换任意测试用户的身份发言。
10
+ - **模拟环境管理**:增删改普通用户、机器人与群组,机器人可选 NapCat、LLBot、SnowLuma 三种 OneBot 实现的能力基线。
11
+ - **OneBot 调试**:记录机器人发出的每个 action 及其参数与返回值。
12
+ - **AI 测试空间**:相互隔离的独立场景,可供 AI 通过 MCP 自行操作与观察。
13
+ - **测试端点**:提供 MCP 与 HTTP 两种接口,带凭证与调用配额,供自动化脚本驱动沙盒;默认关闭。
14
+ - **回复出处**:机器人的回复可跳转到 ChatLuna 的 trace 页,查看对应的模型请求。
15
+
16
+ ## 安装
17
+
18
+ 在 ChatLuna v2 的插件市场搜索 `onebot-sandbox` 安装,或在项目目录执行:
19
+
20
+ ```sh
21
+ yarn add chatluna-plugin-onebot-sandbox
22
+ ```
23
+
24
+ 启用插件后,WebUI 侧边栏出现「OneBot 沙盒」页面。插件设置在沙盒的「设置」页中修改。
17
25
 
18
26
  ## License
19
27
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "client/app.tsx": {
3
- "file": "app-63rfTh6w.js",
3
+ "file": "app-sK3yIFCF.js",
4
4
  "name": "app",
5
5
  "src": "client/app.tsx",
6
6
  "isDynamicEntry": true