dsh-achoverse-community 0.0.0-stage → 0.1.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 +92 -2
- package/cordis.patch.yml +45 -0
- package/dist/client.js +2523 -0
- package/docs/images/community-preview.png +0 -0
- package/docs/index.md +29 -0
- package/docs/install.md +73 -0
- package/icon.svg +11 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +56 -4
- package/src/chat.js +112 -0
- package/src/host.js +675 -0
package/README.md
CHANGED
|
@@ -1,3 +1,93 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Achoverse 社区 · DSH 插件
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
在 DeepSeek Harness 中浏览 Achoverse 社区、参与讨论,也可以让 AI 助手帮你查找帖子、整理内容和发布回复。
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## 你可以做什么
|
|
8
|
+
|
|
9
|
+
- **发现讨论**:浏览社区板块和 AR/VR 专区,查看最近更新、活跃成员,搜索感兴趣的帖子。
|
|
10
|
+
- **参与交流**:发布帖子、发表评论,使用 Markdown 排版,与其他成员发送私信。
|
|
11
|
+
- **管理个人资料**:设置昵称、简介和头像,管理邮箱、密码与私信接收设置。
|
|
12
|
+
- **让助手帮忙**:在社区右侧打开对话抽屉,让助手查找讨论、阅读帖子和评论,或帮你发帖、回复。
|
|
13
|
+
- **接着聊下去**:恢复自己账号的助手对话历史,回答助手的追问,也可以随时停止当前回复。
|
|
14
|
+
|
|
15
|
+
浏览社区无需登录;发帖、评论和使用社区助手前,请先登录社区账号。管理员还可以让助手创建、调整、归档或恢复板块。
|
|
16
|
+
|
|
17
|
+
## 安装与开始使用
|
|
18
|
+
|
|
19
|
+
### 1. 安装插件
|
|
20
|
+
|
|
21
|
+
推荐通过 **npm 包安装**:在 DeepSeek Harness 的插件安装入口选择 npm 包安装,输入以下包名:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
dsh-achoverse-community
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
安装的是插件,请在 DSH 的插件安装入口操作。
|
|
28
|
+
|
|
29
|
+
安装后刷新页面,左侧栏会出现「社区」入口。
|
|
30
|
+
|
|
31
|
+
### 2. 设置社区地址
|
|
32
|
+
|
|
33
|
+
在 DSH 用户目录中创建或编辑 `achoverse-community.json`,添加社区地址;如果文件中已有其他设置,请保留原有字段。
|
|
34
|
+
|
|
35
|
+
默认文件位置为 `~/.dsh/achoverse-community.json`;设置过 `DSH_HOME` 时,使用该目录下的同名文件。
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"baseUrl": "https://community.achoverse.com"
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
如果此前设置过环境变量 `ACV_BASE_URL`,请同步调整该变量,它会优先于文件中的地址。
|
|
44
|
+
|
|
45
|
+
### 3. 打开社区
|
|
46
|
+
|
|
47
|
+
重启 DSH,点击左侧栏「社区」。看到板块列表后,就可以浏览帖子;登录或注册账号后,即可参与讨论。
|
|
48
|
+
|
|
49
|
+
## 试着这样和助手说
|
|
50
|
+
|
|
51
|
+
打开社区右侧的助手抽屉,输入:
|
|
52
|
+
|
|
53
|
+
- 「看看社区最近有哪些新帖子。」
|
|
54
|
+
- 「帮我找找关于 AR 眼镜的讨论。」
|
|
55
|
+
- 「读一下这篇帖子,总结大家的观点。」
|
|
56
|
+
- 「帮我在这个板块发一篇帖子,分享我的体验。」
|
|
57
|
+
- 「帮我回复这篇帖子,补充一下这个思路。」
|
|
58
|
+
|
|
59
|
+
发帖或回复时,请把目标板块或帖子、想表达的内容告诉助手。助手使用当前社区账号参与讨论,操作范围取决于账号权限。
|
|
60
|
+
|
|
61
|
+
## 常见问题
|
|
62
|
+
|
|
63
|
+
**想通过 GitHub 或本地目录安装?**
|
|
64
|
+
|
|
65
|
+
可以在 DSH 中使用 `plugin_manager` 从 GitHub 安装:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
plugin_manager install_bundle target=github:shlan28/dsh-achoverse-community
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
也可以先克隆仓库,再使用本地路径安装:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
git clone https://github.com/shlan28/dsh-achoverse-community.git
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
```text
|
|
78
|
+
plugin_manager install_bundle target=./dsh-achoverse-community
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**打开社区后无法加载?**
|
|
82
|
+
|
|
83
|
+
检查社区地址是否已保存到当前 DSH 使用的配置目录,然后重启 DSH。也可以先在浏览器中打开 [Achoverse 社区](https://community.achoverse.com),检查是否能正常访问。
|
|
84
|
+
|
|
85
|
+
**发帖或回复时提示登录?**
|
|
86
|
+
|
|
87
|
+
请在社区面板中登录;如果已经登录,退出后重新登录再试。
|
|
88
|
+
|
|
89
|
+
更多安装方式、更新步骤和排错说明,见 [安装与配置](docs/install.md)。
|
|
90
|
+
|
|
91
|
+
## 许可
|
|
92
|
+
|
|
93
|
+
MIT
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# dsh-achoverse-community:同一个包提供 host 半片(agent 工具 + 配置下发)与浏览器半片(社区面板)。
|
|
2
|
+
- insert:
|
|
3
|
+
- id: achoverse-community
|
|
4
|
+
name: 'dsh-achoverse-community'
|
|
5
|
+
# 抽屉助手专用预设:只有社区工具链,没有 shell / 文件读写。
|
|
6
|
+
# 用 config.local.json 里的 "agentPreset": "achoverse" 启用。
|
|
7
|
+
- id: preset-achoverse
|
|
8
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
9
|
+
config:
|
|
10
|
+
id: achoverse
|
|
11
|
+
name: 'Achoverse 社区助手'
|
|
12
|
+
description: '只能通过社区接口读写板块、帖子与评论,没有 shell 和文件工具'
|
|
13
|
+
order: 2
|
|
14
|
+
plugins:
|
|
15
|
+
- id: persona
|
|
16
|
+
name: '@deepseek-ai/dsh-persona'
|
|
17
|
+
config:
|
|
18
|
+
prefix: >-
|
|
19
|
+
You are the Achoverse community assistant. You can read boards, posts and
|
|
20
|
+
comments and publish posts or comments through the community tool only.
|
|
21
|
+
You have no shell, no file access and no source code; never claim to have
|
|
22
|
+
inspected files.
|
|
23
|
+
- id: time-context
|
|
24
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
25
|
+
- id: tool-ask-user
|
|
26
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
27
|
+
- id: tool-todo
|
|
28
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
29
|
+
config:
|
|
30
|
+
allowParallelInProgress: true
|
|
31
|
+
- id: compaction
|
|
32
|
+
name: cordis:group
|
|
33
|
+
group: true
|
|
34
|
+
isolate:
|
|
35
|
+
compaction: true
|
|
36
|
+
toolResultPruner: true
|
|
37
|
+
config:
|
|
38
|
+
- id: compaction-basic
|
|
39
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
40
|
+
- id: tool-result-pruner
|
|
41
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
42
|
+
config:
|
|
43
|
+
thresholdChars: 8192
|
|
44
|
+
headChars: 4096
|
|
45
|
+
tailChars: 1024
|