xbtest-dashboard 1.0.0
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 +51 -0
- package/bundle/index.js +12740 -0
- package/bundle/package.json +6 -0
- package/package.json +32 -0
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Conversation Reporter Plugin
|
|
2
|
+
|
|
3
|
+
对话记录整理和可视化插件,用于 OpenCode。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
|
|
7
|
+
- 列出所有对话会话
|
|
8
|
+
- 查看单个会话的详细记录
|
|
9
|
+
- 生成带目录的完整 HTML 报告
|
|
10
|
+
|
|
11
|
+
## 安装
|
|
12
|
+
|
|
13
|
+
### 本地开发
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
cd ~/conversation-reporter-plugin
|
|
17
|
+
npm install
|
|
18
|
+
npm run build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### 配置 OpenCode
|
|
22
|
+
|
|
23
|
+
在 `~/.config/opencode/opencode.json` 中添加:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"plugins": [
|
|
28
|
+
"/Users/zhangxiaobin/conversation-reporter-plugin"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 使用
|
|
34
|
+
|
|
35
|
+
- **列出所有会话**:`organize()`
|
|
36
|
+
- **查看单个会话**:`organize(session_id: "ses_xxx")`
|
|
37
|
+
- **生成完整报告**:`organize(show_all: true)`
|
|
38
|
+
|
|
39
|
+
## 发布(可选)
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm publish
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
发布后,用户可以通过包名安装:
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"plugins": ["conversation-reporter-plugin"]
|
|
50
|
+
}
|
|
51
|
+
```
|